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