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