import _extends from"@babel/runtime/helpers/extends";import invoker,{API_INVOKER_TYPE,PLATFORM_TYPE_ENUM}from"./invoker";function createVideoConfHandler(e,n){void 0===e&&(e={});var o=n.resolve,i=n.reject,r=n.context,c=n.containerType,t=n.appType,a=n.platformType;if(c){var d=function(e){invoker.handleBridgeResponse(e,o,i)},f=function(e){invoker.handleBridgeResponse(e,o,i)};t===API_INVOKER_TYPE.MINI_APP?r&&r({m:"biz.conference.createVideoConf",args:e,onSuccess:d,onFail:f}):a===PLATFORM_TYPE_ENUM.ANDROID?r&&r(d,f,"biz.conference","createVideoConf",e):a===PLATFORM_TYPE_ENUM.IOS&&r.callHandler("biz.conference.createVideoConf",Object.assign({},e),(function(e){invoker.handleBridgeResponse(e,o,i)}))}else r&&r.call("createVideoConf",e,(function(){o()}))}invoker.registerAPI("createVideoConf",{mini:createVideoConfHandler,mobile:createVideoConfHandler,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.createVideoConf",_extends({},e))}}),createVideoConf.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};export default function createVideoConf(e){return invoker.invoke("createVideoConf",e)}