"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.default=joinVideoConf;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends")),_invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(e){return e?o:n})(e)}function _interopRequireWildcard(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=_getRequireWildcardCache(n);if(o&&o.has(e))return o.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in e)if("default"!==t&&Object.prototype.hasOwnProperty.call(e,t)){var a=i?Object.getOwnPropertyDescriptor(e,t):null;a&&(a.get||a.set)?Object.defineProperty(r,t,a):r[t]=e[t]}return r.default=e,o&&o.set(e,r),r}function joinVideoConfHandler(e,n){void 0===e&&(e={});var o=n.resolve,r=n.reject,i=n.context,t=n.containerType,a=n.appType,d=n.platformType;if(t){var f=function(e){_invoker.default.handleBridgeResponse(e,o,r)},u=function(e){_invoker.default.handleBridgeResponse(e,o,r)};a===_invoker.API_INVOKER_TYPE.MINI_APP?i&&i({m:"biz.conference.joinVideoConf",args:e,onSuccess:f,onFail:u}):d===_invoker.PLATFORM_TYPE_ENUM.ANDROID?i&&i(f,u,"biz.conference","joinVideoConf",e):d===_invoker.PLATFORM_TYPE_ENUM.IOS&&i.callHandler("biz.conference.joinVideoConf",Object.assign({},e),(function(e){_invoker.default.handleBridgeResponse(e,o,r)}))}else i&&i.call("joinVideoConf",e,(function(){o()}))}function joinVideoConf(e){return _invoker.default.invoke("joinVideoConf",e)}_invoker.default.registerAPI("joinVideoConf",{mini:joinVideoConfHandler,mobile:joinVideoConfHandler,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.joinVideoConf",(0,_extends2.default)({},e))}}),joinVideoConf.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"},module.exports=exports.default,module.exports.default=exports.default;