"use strict";exports.__esModule=!0,exports.default=chooseContactWithComplexPicker;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:o})(e)}function _interopRequireWildcard(e,o){if(!o&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(o);if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var c=n?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(r,i,c):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function chooseContactHandler(e,o){var t=o.resolve,r=o.reject,n=o.context,i=o.containerType,c=o.appType,a=o.platformType;if(i){var l=function(e){_invoker.default.handleBridgeResponse(e,t,r)},u=function(e){_invoker.default.handleBridgeResponse(e,t,r)};c===_invoker.API_INVOKER_TYPE.MINI_APP?n&&n({m:"taurus.common.chooseContactWithComplexPicker",args:e,onSuccess:l,onFail:u}):a===_invoker.PLATFORM_TYPE_ENUM.ANDROID?n&&n(l,u,"taurus.common","chooseContactWithComplexPicker",e):a===_invoker.PLATFORM_TYPE_ENUM.IOS&&n.callHandler("taurus.common.chooseContactWithComplexPicker",Object.assign({},e),(function(e){_invoker.default.handleBridgeResponse(e,t,r)}))}else n&&n.call("chooseContactWithComplexPicker",e,(function(o){o.error&&o.error.toString()===_invoker.BRIDGE_ERROR_CODE.API_UNDEFINED?n.call("complexPicker",e,(function(e){_invoker.default.handleBridgeResponse(e,t,r)})):_invoker.default.handleBridgeResponse(o,t,r)}))}function chooseContactWithComplexPicker(e){return _invoker.default.invoke("chooseContactWithComplexPicker",e)}_invoker.default.registerAPI("chooseContactWithComplexPicker",{mini:chooseContactHandler,mobile:chooseContactHandler,pc:function(e,o){window.dingtalk.platform.invokeAPI(o.msgId,"biz.contact.complexPicker",e)}}),chooseContactWithComplexPicker.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"},module.exports=exports.default,module.exports.default=exports.default;