import invoker,{API_INVOKER_TYPE,PLATFORM_TYPE_ENUM}from"./invoker";function pickGroupConversationHandler(o,n){void 0===o&&(o={});var r=n.resolve,i=n.reject,e=n.context,a=n.containerType,t=n.appType,p=n.platformType;if(a){var c=function(o){invoker.handleBridgeResponse(o,r,i)},s=function(o){invoker.handleBridgeResponse(o,r,i)};t===API_INVOKER_TYPE.MINI_APP?e&&e({m:p===PLATFORM_TYPE_ENUM.ANDROID?"taurus.common.pickGroupConversation":"internal.chat.pickGroupConversation",args:o,onSuccess:c,onFail:s}):p===PLATFORM_TYPE_ENUM.ANDROID?e&&e(c,s,"taurus.common","pickGroupConversation",o):p===PLATFORM_TYPE_ENUM.IOS&&e.callHandler("internal.chat.pickGroupConversation",Object.assign({},o),(function(o){r(o)}))}else e&&e.call("pickGroupConversation",o,(function(){r()}))}invoker.registerAPI("pickGroupConversation",{mini:pickGroupConversationHandler,mobile:pickGroupConversationHandler}),pickGroupConversation.version={android:"2.8.0",ios:"2.8.0"};export default function pickGroupConversation(o){return void 0===o&&(o={owner:!1}),invoker.invoke("pickGroupConversation",o)}