import invoker,{API_INVOKER_TYPE,PLATFORM_TYPE_ENUM}from"./invoker";function chooseContactHandler(o,n){var e=n.resolve,t=n.reject,a=n.context,i=n.containerType,r=n.appType,s=n.platformType;if(i){var c=function(o){invoker.handleBridgeResponse(o,e,t)},l=function(o){invoker.handleBridgeResponse(o,e,t)};r===API_INVOKER_TYPE.MINI_APP?a&&a({m:"taurus.common.bizCustomContactChooseExternal",args:o,onSuccess:c,onFail:l}):s===PLATFORM_TYPE_ENUM.ANDROID?a&&a(c,l,"taurus.common","bizCustomContactChooseExternal",o):s===PLATFORM_TYPE_ENUM.IOS&&a.callHandler("taurus.common.bizCustomContactChooseExternal",Object.assign({},o),(function(o){invoker.handleBridgeResponse(o,e,t)}))}else a&&a.call("bizCustomContactChooseExternal",o,(function(o){invoker.handleBridgeResponse(o,e,t)}))}invoker.registerAPI("bizCustomContactChooseExternal",{mini:chooseContactHandler,mobile:chooseContactHandler,pc:function(o,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.chooseEx",o)}}),bizCustomContactChooseExternal.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};export default function bizCustomContactChooseExternal(o){return invoker.invoke("bizCustomContactChooseExternal",o)}