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