"use strict";exports.__esModule=!0,exports.default=pickGroupConversation;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(e){return e?o:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=_getRequireWildcardCache(r);if(o&&o.has(e))return o.get(e);var n={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=t?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n}function pickGroupConversationHandler(e,r){void 0===e&&(e={});var o=r.resolve,n=r.reject,t=r.context,i=r.containerType,a=r.appType,u=r.platformType;if(i){var p=function(e){_invoker.default.handleBridgeResponse(e,o,n)},c=function(e){_invoker.default.handleBridgeResponse(e,o,n)};a===_invoker.API_INVOKER_TYPE.MINI_APP?t&&t({m:u===_invoker.PLATFORM_TYPE_ENUM.ANDROID?"taurus.common.pickGroupConversation":"internal.chat.pickGroupConversation",args:e,onSuccess:p,onFail:c}):u===_invoker.PLATFORM_TYPE_ENUM.ANDROID?t&&t(p,c,"taurus.common","pickGroupConversation",e):u===_invoker.PLATFORM_TYPE_ENUM.IOS&&t.callHandler("internal.chat.pickGroupConversation",Object.assign({},e),(function(e){o(e)}))}else t&&t.call("pickGroupConversation",e,(function(){o()}))}function pickGroupConversation(e){return void 0===e&&(e={owner:!1}),_invoker.default.invoke("pickGroupConversation",e)}_invoker.default.registerAPI("pickGroupConversation",{mini:pickGroupConversationHandler,mobile:pickGroupConversationHandler}),pickGroupConversation.version={android:"2.8.0",ios:"2.8.0"},module.exports=exports.default,module.exports.default=exports.default;