yach.open.jssdk 4.4.6 → 4.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yach_jssdk_4.4.5-beta.3.js +1 -0
- package/es/api/biz/util/mediaFileUploadV2.d.ts +26 -0
- package/es/api/biz/util/mediaFileUploadV2.js +15 -0
- package/es/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
- package/es/api/biz/util/openMediaFileDialogV2.js +16 -0
- package/es/api/biz/util/openPublish.d.ts +2 -2
- package/es/index.d.ts +5 -5
- package/es/index.js +5 -5
- package/libs/api/biz/util/mediaFileUploadV2.d.ts +26 -0
- package/libs/api/biz/util/{focus.js → mediaFileUploadV2.js} +12 -19
- package/libs/api/biz/util/openMediaFileDialogV2.d.ts +23 -0
- package/libs/api/biz/util/openMediaFileDialogV2.js +24 -0
- package/libs/api/biz/util/openPublish.d.ts +2 -2
- package/libs/index.d.ts +5 -5
- package/libs/index.js +16 -16
- package/package.json +1 -1
- package/dist/yach_jssdk_4.4.6.js +0 -1
- package/es/api/biz/util/focus.d.ts +0 -7
- package/es/api/biz/util/focus.js +0 -23
- package/es/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/es/api/biz/util/openAudioPlayer.js +0 -23
- package/libs/api/biz/util/focus.d.ts +0 -7
- package/libs/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/libs/api/biz/util/openAudioPlayer.js +0 -30
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.yy=function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,t){"use strict";var o=new function(){var e=this;this.on=function(n,t){if(!n||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(e.eventsHandle[n])||(e.eventsHandle[n]=[]),e.eventsHandle[n].push(t)},this.off=function(n,t){if(!n)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(e.eventsHandle[n])){var o=e.eventsHandle[n].indexOf(t);-1!==o&&e.eventsHandle[n].splice(o,1)}}else e.eventsHandle[n]=[]},this.execEvent=function(e,n){Array.isArray(this.eventsHandle[e])&&this.eventsHandle[e].forEach((function(e){try{e(n)}catch(e){console.error(n)}}))},this.eventsHandle={}};n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var o=t(3);function i(e){if(e)if(e.group)if(e.project)if(e.hasOwnProperty("env"))if(e.hasOwnProperty("version")){var n=["https://es.zhiyinlou.com/log.js?"];n.push("group="+e.group),n.push("&project="+e.project),n.push("&env="+e.env),n.push("&version="+e.version),n.push("&method="+e.method),e.yachid&&n.push("&yachid="+e.yachid),e.workcode&&n.push("&workcode="+e.workcode),e.timestamp&&n.push("×tamp="+e.timestamp),e.errorcode&&n.push("&errorcode="+e.errorcode),e.message&&n.push("&message="+e.message),e.api&&e.time&&(n.push("&api="+e.api),n.push("&load_time="+e.time));var t,o,i=n.join("");t=i,(o=document.createElement("script")).type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,document.getElementsByTagName("head")[0].removeChild(o))}:o.onload=function(){document.getElementsByTagName("head")[0].removeChild(o)},o.src=t,document.getElementsByTagName("head")[0].appendChild(o),"online"!=e.env&&console.log(i)}else console.log("bpit error: need options.version");else console.log("bpit error: need options.env");else console.log("bpit error: need options.project");else console.log("bpit error: need options.group");else console.log("bpit error: need options")}var r=function(){return(r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function a(e){var n=Object(o.a)().env,t=Object(o.a)().version,a=Date.now(),s=r({group:"yach",project:"yach_31_jssdk",env:n,version:t,timestamp:a},e);console.log("jssdk 项目 bpit 上报数据:",s),i(s)}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var o={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(o=window.console),"undefined"!=typeof document&&document.body){var i=document.createElement("iframe");i&&i.contentWindow&&i.contentWindow.console&&(i.style.display="none",document.body.appendChild(i),o=i.contentWindow.console)}var r=o.log.bind(o),a=(o.warn.bind(o),o.error.bind(o),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function s(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r("%c Yach-jssdk log: ",a,e)}},function(e,n,t){"use strict";var o;function i(){var e="undefined"!=typeof navigator?navigator.userAgent:"",n=/Yach/i.test(e),t=/iPhone|iPad|iPod|iOS/i.test(e)&&n,i=/Android/i.test(e)&&n,r=/YachPc/i.test(e),a=/iPad/i.test(e)&&n,s=/iPhone/i.test(e)&&n,c=/Yachtest/.test(e)&&n,u=/HarmonyOSNext/i.test(e)&&n,d=o.notInYach;return t&&(d=o.ios),i&&(d=o.android),r&&(d=o.pc),{platform:d,platformV2:{inYach:n,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s,inHarmonyNext:u},version:((e.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*",env:c?"test":"online"}}t.d(n,"a",(function(){return i})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInYach="notInYach"}(o||(o={}))},function(e,n,t){"use strict";(function(e){var o=t(2),i=t(0),r=function(e,n,t){var o=this;this.genid=function(){var e=Date.now().toString(36);return e+=Math.random().toString(36).substr(3)},this.receiveResponse=function(e){o.callback(e)},this.getPayload=function(){return{msgId:o.id,methodName:o.methodName,moduleId:o.moduleId,body:o.plainMsg,type:"request",invokeType:o.invokeType}},this.id=this.genid(),this.PromiseObj={resolve:null,reject:null},this.methodName=e,this.plainMsg=n,this.invokeType=null==n?void 0:n.invokeType,this.moduleId=null==n?void 0:n.moduleId,this.callback=t},a=new function(){var n=this;this.addPending=function(e){n.pendingMsgs[e.id]=e},this.deletePending=function(e){delete n.pendingMsgs[e.id]},this.getPending=function(e){return this.pendingMsgs[e]},this.invokeAPIInBrowserView=function(e){window.sendTo(e)},this.invokeAPIInWebview=function(e){window.sendToHost(e)},this.invokeAPIInModuleFederation=function(e){window.remoteSendToHost(e)},this.invokeAPI=function(e,t,o){var i;if("moduleFederation"===n.invokeType){t.invokeType=n.invokeType,t.moduleId=n.moduleId,i=new r(e,t,o);var a=JSON.stringify(i.getPayload());n.invokeAPIInModuleFederation(a)}else{i=new r(e,t,o),a=JSON.stringify(i.getPayload());var s=t.invokeType;"browserView"===(void 0===s?"":s)?n.invokeAPIInBrowserView(a):n.invokeAPIInWebview(a)}return n.addPending(i),i},this.handleCallback=function(e,t){var o=e.type,r=e.methodName,a=e.eventName,s=e.msgId,c=e.data,u=void 0===c?{}:c,d=e.code,l=e.message,p=e.msg;if("request"===o)switch(r){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":i.a.execEvent(a,u);break;case"zoomInClick":var f=document.documentElement.scrollTop||document.body.scrollTop,v=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}})):window.sendToHost(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}}))}else if("response"===o){var m=n.getPending(s);m&&m.receiveResponse({data:u,code:d,message:l||p||u.msg||u.message}),-3!=d&&n.deletePending(s)}},this.init=function(){var e;"moduleFederation"!==n.invokeType?(window.addEventListener("message",(function(e){Object(o.a)("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))):null===(e=window.remoteReceiveFromHost)||void 0===e||e.call(window,(function(e){n.handleCallback(e)}),n.moduleId)},this.pendingMsgs={},this.invokeType=window.remoteSendToHost&&window.remoteReceiveFromHost&&e?"moduleFederation":"",this.moduleId=Math.random().toString(36).substring(2,15)};n.a=a}).call(this,t(6))},function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.5-beta.3","description":"","module":"./es/index.js","main":"./libs/index.js","files":["es","libs","dist"],"sideEffects":false,"scripts":{"start":"yach del es && tsc -w","build":"node ./tools/run compile","lint":"eslint \'src/**/*.{js,ts}\'","lint-fix":"eslint --fix \'src/**/*.{js,ts}\'","p:beta":"npm publish --tag=beta --access public","p":"npm publish"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3"},"authors":[{"name":"ostwind","email":"9837438@qq.com"}],"license":"ISC","devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.5","@types/node":"^13.9.8","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","babel-loader":"^8.1.0","colorful":"^2.1.0","commander":"^5.1.0","dingtalk-jsapi":"^2.10.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-concat":"^2.6.1","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-umd":"^2.0.0","gulp-util":"^3.0.8","lint-staged":"^10.0.9","prettier":"^2.0.2","qiao.ext.cos":"^0.1.2","ts-loader":"^7.0.1","typescript":"^3.9.7","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1","npm-cli-login":"1.0.0"}}')},function(e,n){var t,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,u=[],d=!1,l=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):l=-1,u.length&&f())}function f(){if(!d){var e=s(p);d=!0;for(var n=u.length;n;){for(c=u,u=[];++l<n;)c&&c[l].run();l=-1,n=u.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(n){try{return o.call(null,e)}catch(n){return o.call(this,e)}}}(e)}}function v(e,n){this.fun=e,this.array=n}function m(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new v(e,n)),1!==u.length||d||s(f)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,n,t){"use strict";t.r(n),t.d(n,"version",(function(){return ti})),t.d(n,"sdkVersion",(function(){return oi})),t.d(n,"env",(function(){return ii})),t.d(n,"platform",(function(){return ri})),t.d(n,"platformV2",(function(){return ai})),t.d(n,"config",(function(){return si})),t.d(n,"ready",(function(){return ci})),t.d(n,"error",(function(){return ui})),t.d(n,"on",(function(){return di})),t.d(n,"off",(function(){return li})),t.d(n,"openLink",(function(){return O})),t.d(n,"feedback",(function(){return E})),t.d(n,"open",(function(){return A})),t.d(n,"openSlidePanel",(function(){return V})),t.d(n,"share",(function(){return W})),t.d(n,"previewFile",(function(){return B})),t.d(n,"previewImage",(function(){return L})),t.d(n,"downloadFile",(function(){return _})),t.d(n,"uploadAttachment",(function(){return N})),t.d(n,"clipboardFileUpload",(function(){return H})),t.d(n,"proxy",(function(){return U})),t.d(n,"datepicker",(function(){return Y})),t.d(n,"scan",(function(){return $})),t.d(n,"chosen",(function(){return te})),t.d(n,"openSingleWebview",(function(){return ie})),t.d(n,"getSingleWebviewData",(function(){return re})),t.d(n,"injectScript",(function(){return ae})),t.d(n,"closeWindow",(function(){return ce})),t.d(n,"showCallMenu",(function(){return Io})),t.d(n,"call",(function(){return Fo})),t.d(n,"setIcon",(function(){return Cn})),t.d(n,"setTitle",(function(){return In})),t.d(n,"setMenu",(function(){return jn})),t.d(n,"close",(function(){return xn})),t.d(n,"replacePage",(function(){return On})),t.d(n,"quit",(function(){return An})),t.d(n,"setRight",(function(){return Rn})),t.d(n,"setTitleExpandIcon",(function(){return Ln})),t.d(n,"updateExpandTitle",(function(){return _n})),t.d(n,"setLeft",(function(){return Un})),t.d(n,"goBack",(function(){return Yn})),t.d(n,"complexPicker",(function(){return et})),t.d(n,"departmentsPicker",(function(){return nt})),t.d(n,"groupComplexPicker",(function(){return tt})),t.d(n,"chooseConversationByCorpId",(function(){return ot})),t.d(n,"pickConversation",(function(){return rt})),t.d(n,"openSingleChat",(function(){return at})),t.d(n,"openTeamChat",(function(){return st})),t.d(n,"openSquad",(function(){return ct})),t.d(n,"sendP2PMsg",(function(){return ut})),t.d(n,"mapView",(function(){return Z})),t.d(n,"multipointView",(function(){return ee})),t.d(n,"requestAuthCode",(function(){return yt})),t.d(n,"createTab",(function(){return lt})),t.d(n,"updateTab",(function(){return ft})),t.d(n,"weeklyShare",(function(){return mt})),t.d(n,"fullScreen",(function(){return gt})),t.d(n,"exitFullScreen",(function(){return wt})),t.d(n,"showPreloader",(function(){return St})),t.d(n,"showCustomOverlayContent",(function(){return Tt})),t.d(n,"hidePreloader",(function(){return It})),t.d(n,"hideCustomOverlayContent",(function(){return Mt})),t.d(n,"vibrate",(function(){return jt})),t.d(n,"toast",(function(){return xt})),t.d(n,"alert",(function(){return Rt})),t.d(n,"confirm",(function(){return Bt})),t.d(n,"getPhoneInfo",(function(){return Dt})),t.d(n,"getUUID",(function(){return mo})),t.d(n,"checkStepPermission",(function(){return go})),t.d(n,"getGeolocation",(function(){return _t})),t.d(n,"getGeolocationSwitch",(function(){return Ht})),t.d(n,"getLang",(function(){return Ut})),t.d(n,"startRecord",(function(){return Yt})),t.d(n,"stopRecord",(function(){return Gt})),t.d(n,"onRecordEnd",(function(){return $t})),t.d(n,"downloadAudio",(function(){return Zt})),t.d(n,"playAudio",(function(){return eo})),t.d(n,"pauseAudio",(function(){return to})),t.d(n,"stopAudio",(function(){return io})),t.d(n,"onPlayEnd",(function(){return ao})),t.d(n,"resumeAudio",(function(){return co})),t.d(n,"getNetworkType",(function(){return lo})),t.d(n,"isAtTal",(function(){return fo})),t.d(n,"webViewBounceDisable",(function(){return xo})),t.d(n,"pullToRefreshEnable",(function(){return Eo})),t.d(n,"pullToRefreshStop",(function(){return Do})),t.d(n,"pullToRefreshDisable",(function(){return Ro})),t.d(n,"getItem",(function(){return Bo})),t.d(n,"setItem",(function(){return _o})),t.d(n,"removeItem",(function(){return Ho})),t.d(n,"writeLog",(function(){return Jo})),t.d(n,"flushLog",(function(){return qo})),t.d(n,"remind",(function(){return de})),t.d(n,"takePicture",(function(){return le})),t.d(n,"datetimepicker",(function(){return G})),t.d(n,"actionSheet",(function(){return Et})),t.d(n,"webViewMessageSend",(function(){return Xo})),t.d(n,"talYoungFilesUpload",(function(){return Zo})),t.d(n,"openVideoPlayer",(function(){return fe})),t.d(n,"openMediaFileDialog",(function(){return ve})),t.d(n,"openMediaFileDialogV2",(function(){return me})),t.d(n,"mediaFileUpload",(function(){return he})),t.d(n,"mediaFileUploadV2",(function(){return ge})),t.d(n,"invoice",(function(){return be})),t.d(n,"pushWorkMsg",(function(){return we})),t.d(n,"openTalYoungToTopic",(function(){return ye})),t.d(n,"getToken",(function(){return Pe})),t.d(n,"authStart",(function(){return Te})),t.d(n,"authFinish",(function(){return Ce})),t.d(n,"assistantCreate",(function(){return Me})),t.d(n,"yachEvent",(function(){return je})),t.d(n,"topicEvent",(function(){return Oe})),t.d(n,"openTogetherEyeWebview",(function(){return Ae})),t.d(n,"getTogetherConfig",(function(){return Ve})),t.d(n,"rouseApp",(function(){return Re})),t.d(n,"externalLinkPreviewFile",(function(){return We})),t.d(n,"savePic",(function(){return Ne})),t.d(n,"zfbAuth",(function(){return Le})),t.d(n,"complain",(function(){return He})),t.d(n,"onRecordEnd_v2",(function(){return wo})),t.d(n,"startRecord_v2",(function(){return ko})),t.d(n,"stopRecord_v2",(function(){return So})),t.d(n,"selectDepartment",(function(){return Ue})),t.d(n,"setWindowBig",(function(){return Gn})),t.d(n,"tencentMeeting",(function(){return Kn})),t.d(n,"tencentMeetingBegin",(function(){return $n})),t.d(n,"createModifySchedule",(function(){return Ye})),t.d(n,"onlineDocmentOpenTeamChat",(function(){return $e})),t.d(n,"entergroupCheck",(function(){return Ze})),t.d(n,"resetSessionUnread",(function(){return en})),t.d(n,"weeklyRead",(function(){return tn})),t.d(n,"openFutureGroup",(function(){return sn})),t.d(n,"knowledgeBaseSelect",(function(){return un})),t.d(n,"knowledgeSelectParams",(function(){return ln})),t.d(n,"lorebaseShowList",(function(){return fn})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return mn})),t.d(n,"openPublish",(function(){return wn})),t.d(n,"setLight",(function(){return zo})),t.d(n,"openUserSchedule",(function(){return Ge})),t.d(n,"disableScreenCapture",(function(){return rn})),t.d(n,"setPanGestureEnable",(function(){return Qn})),t.d(n,"addAppToNav",(function(){return ei})),t.d(n,"copy",(function(){return gn})),t.d(n,"capturePage",(function(){return Ko})),t.d(n,"getConfig",(function(){return kn}));var o=t(3),i=t(1),r=t(2),a=function(e,n){var t=c(e),o=c(n),i=t.pop(),r=o.pop(),a=p(t,o);return 0!==a?a:i&&r?p(i.split("."),r.split(".")):i||r?i?-1:1:0},s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,c=function(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var n=e.match(s);if(!n)throw new Error("Invalid argument not valid semver ('"+e+"' received)");return n.shift(),n},u=function(e){return"*"===e||"x"===e||"X"===e},d=function(e){var n=parseInt(e,10);return isNaN(n)?e:n},l=function(e,n){if(u(e)||u(n))return 0;var t=function(e,n){return typeof e!=typeof n?[String(e),String(n)]:[e,n]}(d(e),d(n)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},p=function(e,n){for(var t=0;t<Math.max(e.length,n.length);t++){var o=l(e[t]||"0",n[t]||"0");if(0!==o)return o}return 0},f={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},v=(Object.keys(f),t(5)),m=function(){function e(e){var n=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(e,t){n.cacheP.resolve=e,n.cacheP.reject=t})),this.env=e,this.exportSdk={version:e.version,sdkVersion:v.version,env:e,platform:e.platform,platformV2:e.platformV2,config:function(e){void 0===e&&(e={});var t=e.jsApiList,o=void 0===t?[]:t;n.hadConfig?console.log("Config has been executed"):n.bridgeInitFn().then((function(t){t("config",e).then((function(e){n.cacheP.resolve(e),n.hadConfig=!0,n.configJsApiList=o})).catch((function(e){n.cacheP.reject(e)}))}))},ready:function(e){n.bridgeInitFn().then((function(){e()}))},error:function(e){n.config$.catch((function(n){e(n)}))},on:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.on(t,o)}))},off:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.off(t,o)}))}}}return e.prototype.setAPI=function(e,n){this.invokeAPIConfigMapByMethod[e]=n},e.prototype.setPlatform=function(e){var n=e.platform;e.bridgeInit;this.platformConfigMap[n]=e},e.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var e=this.platformConfigMap[this.env.platform];if(e)this.bridgeInitFnPromise=e.bridgeInit();else{var n="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(n))}return this.bridgeInitFnPromise},e.prototype._onFail=function(e,n,t,o){Object(i.a)({method:e,errorcode:n,message:t}),o&&"function"==typeof o&&o({code:n,message:t})},e.prototype.invokeAPI=function(e,n){if(n||(n={}),e){var t=this.invokeAPIConfigMapByMethod[e];if(!t)return this._onFail(e,"-1","["+e+"] method is not exist",n.onFail);var o=t[this.env.platform];if(o){var i=o.vs||"0.0.0";if(a(this.env.version,i)<0)return this._onFail(e,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,n.onFail);var s=o.paramsDeal?o.paramsDeal(n):n;if("function"==typeof s.onSuccess){var c=s.onSuccess;s.onSuccess=function(e){c(e)}}this.bridgeInitFn().then((function(n){n(e,s).then((function(n){Object(r.a)("SDK 返回结果成功 ",{method:e,params:s,result:n})})).catch((function(n){Object(r.a)("SDK 返回结果失败",{method:e,params:s,error:n})}))})).catch((function(e){console.log("wenai err",e)}))}else this._onFail(e,"-1","["+e+"] method do not support the current platform ("+this.env.platform+")",n.onFail)}},e}(),h=t(4),g=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function b(e){return g.get(e)||"onFail"}var w=function(){return(w=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},y=function(e,n){return new Promise((function(t,o){return h.a.invokeAPI(e,n,(function(a){var s=a.data,c=a.code,u=a.message,d=parseInt(c),l=b(d),p=n[l];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:s,_code:d,message:u,callbackFun:p}),"onFail"!==l)"function"==typeof p&&p(s||u),t({_code:d,message:u,data:s});else{if(Object(i.a)({method:e,errorcode:d,message:u||JSON.stringify(s)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",c,d);var f="[object Object]"===Object.prototype.toString.call(s)?w(w({},s),{code:c,message:u}):{data:s,code:c,message:u};p(u?f:s)}o({_code:d,message:u,data:s})}}))}))},k=t(0),P=function(){return(P=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function S(e){if(window.WebViewJavascriptBridge)return e(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return e(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout((function(){document.documentElement.removeChild(n)}),0)}var T=function(e,n){return new Promise((function(t,o){var a=P({},n);S((function(s){n.control&&s.registerHandler(e,(function(e){var o=n.onSuccess;delete a.onSuccess,"function"==typeof o&&(o(e),t({code:"0",message:"success"}))})),s.callHandler(e,n,(function(s){var c=s.code,u=s.message,d=s.data,l=parseInt(c),p=b(l),f=a[p];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:d,_code:l,message:u,callbackFun:f}),"onFail"===p)return Object(i.a)({method:e,errorcode:l,message:u||JSON.stringify(d)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(u?{code:c,message:u}:d),void o({_code:l,message:u,data:d});"function"==typeof f&&f(d||u),t({_code:l,message:u,data:d})}))}))}))},z=function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}))},C=function(e,n){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},I=Object(o.a)(),M=I.platform,F=new m(I);!function(){var e=this,n={platform:M,authMethod:"config",bridgeInit:"pc"===M?function(){return z(e,void 0,void 0,(function(){return C(this,(function(e){return h.a.init(),[2,y]}))}))}:function(){return new Promise((function(e,n){S((function(n){Object(r.a)("注册resume事件 "),n.registerHandler("resume",(function(e){Object(r.a)("resume监听到回调,相关参数 ",{resData:e}),k.a.execEvent("resume",e)})),Object(r.a)("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){Object(r.a)("unreadMsgAction监听到回调,相关参数 ",{resData:e}),k.a.execEvent("unreadMsgAction",e)})),Object(r.a)("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){Object(r.a)("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),k.a.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){Object(r.a)("pushWorkMsg监听到回调,相关参数 ",{resData:e}),k.a.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){Object(r.a)("getTogetherCallback监听到回调,相关参数 ",{resData:e}),k.a.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){Object(r.a)("sendMsgCommon ",{resData:e}),k.a.execEvent("sendMsgCommon",e)})),n.registerHandler("toolbarClickEvent",(function(e,n){Object(r.a)("toolbarClickEvent ",{resData:e});var t={data:e,callback:n};k.a.execEvent("toolbarClickEvent",t)})),e()}))})).then((function(){return T}))},event:{on:function(e,n){k.a.on(e,n)},off:function(e,n){k.a.off(e,n)}}};F.setPlatform(n)}();var j={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var x=function(e,n){var t=n.params,o=void 0===t?{}:t,i=n.platform,r=void 0===i?j:i;F.setAPI(e,r),F.invokeAPI(e,o)};function O(e){x("biz.util.openLink",{params:e})}function E(e){x("biz.util.feedback",{params:e})}function A(e){x("biz.util.open",{params:e})}var D={pc:{vs:"0.0.0"}};function V(e){x("biz.util.openSlidePanel",{params:e,platform:D})}var R={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function W(e){x("biz.util.share",{params:e,platform:R})}function B(e){x("biz.util.previewFile",{params:e})}function L(e){x("biz.util.previewImage",{params:e})}function _(e){x("biz.util.downloadFile",{params:e})}function N(e){x("biz.util.uploadAttachment",{params:e})}function H(e){x("biz.util.clipboardFileUpload",{params:e})}function U(e){x("biz.util.proxy",{params:e})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(e){x("biz.util.datepicker",{params:e,platform:J})}var q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function G(e){x("biz.util.datetimepicker",{params:e,platform:q})}var K={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $(e){x("biz.util.scan",{params:e,platform:K})}var X={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Z(e){x("biz.map.view",{params:e,platform:X})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ee(e){x("biz.map.multipointView",{params:e,platform:Q})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function te(e){x("biz.util.chosen",{params:e,platform:ne})}var oe={pc:{vs:"0.0.0"}};function ie(e){x("biz.util.openSingleWebview",{params:e,platform:oe})}function re(e){x("biz.util.getSingleWebviewData",{params:e})}function ae(e){x("biz.util.injectScript",{params:e})}var se={pc:{vs:"0.0.0"}};function ce(e){x("biz.util.closeWindow",{params:e,platform:se})}var ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function de(e){x("biz.util.remind",{params:e,platform:ue})}function le(e){x("biz.util.takePicture",{params:e})}var pe={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fe(e){x("biz.util.openVideoPlayer",{params:e,platform:pe})}function ve(e){x("biz.util.openMediaFileDialog",{params:e})}function me(e){x("biz.util.openMediaFileDialogV2",{params:e})}function he(e){x("biz.util.mediaFileUpload",{params:e})}function ge(e){x("biz.util.mediaFileUploadV2",{params:e})}function be(e){x("biz.util.invoice",{params:e})}function we(e){x("biz.util.pushWorkMsg",{params:e})}function ye(e){x("biz.util.openTalYoungToTopic",{params:e})}var ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pe(e){x("biz.util.getToken",{params:e,platform:ke})}var Se={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Te(e){x("biz.util.authStart",{params:e,platform:Se})}var ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ce(e){x("biz.util.authFinish",{params:e,platform:ze})}var Ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Me(e){x("biz.util.assistantCreate",{params:e,platform:Ie})}var Fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function je(e){x("biz.util.yachEvent",{params:e,platform:Fe})}var xe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Oe(e){x("biz.util.topicEvent",{params:e,platform:xe})}var Ee={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ae(e){x("biz.util.openTogetherEyeWebview",{params:e,platform:Ee})}var De={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ve(e){x("biz.util.getTogetherConfig",{params:e,platform:De})}function Re(e){x("biz.util.rouseApp",{params:e})}function We(e){x("biz.util.externalLinkPreviewFile",{params:e})}var Be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Le(e){x("biz.util.zfbAuth",{params:e,platform:Be})}var _e={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ne(e){x("biz.util.savePic",{params:e,platform:_e})}function He(e){x("biz.util.complain",{params:e})}function Ue(e){x("biz.util.selectDepartment",{params:e})}var Je={pc:{vs:"0.0.0"}};function Ye(e){x("biz.util.createModifySchedule",{params:e,platform:Je})}var qe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ge(e){x("biz.util.openUserSchedule",{params:e,platform:qe})}var Ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function $e(e){x("onlineDocmentOpenTeamChat",{params:e,platform:Ke})}var Xe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function Ze(e){x("biz.util.entergroupCheck",{params:e,platform:Xe})}var Qe={pc:{vs:"1.8.0"}};function en(e){x("biz.util.resetSessionUnread",{params:e,platform:Qe})}var nn={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function tn(e){x("biz.util.weeklyRead",{params:e,platform:nn})}var on={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rn(e){x("biz.util.disableScreenCapture",{params:e,platform:on})}var an={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function sn(e){x("biz.util.openFutureGroup",{params:e,platform:an})}var cn={pc:{vs:"1.8.8"},ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function un(e){x("biz.util.knowledgeBaseSelect",{params:e,platform:cn})}var dn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function ln(e){x("biz.util.knowledgeSelectParams",{params:e,platform:dn})}var pn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fn(e){x("biz.util.lorebaseShowList",{params:e,platform:pn})}var vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mn(e){x("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:vn})}var hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function gn(e){x("biz.util.copy",{params:e,platform:hn})}var bn={pc:{vs:"1.8.8"}};function wn(e){x("biz.util.openPublish",{params:e,platform:bn})}var yn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function kn(e){x("biz.util.getConfig",{params:e,platform:yn})}var Pn=function(){return(Pn=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function Sn(e){return function(n){return Pn(Pn({},e),n)}}var Tn=Sn({control:!0,showIcon:!0,iconIndex:1}),zn={ios:{vs:"0.0.0",paramsDeal:Tn},android:{vs:"0.0.0",paramsDeal:Tn}};function Cn(e){x("biz.navigation.setIcon",{params:e,platform:zn})}function In(e){x("biz.navigation.setTitle",{params:e})}var Mn=Sn({control:!0}),Fn={ios:{vs:"0.0.0",paramsDeal:Mn},android:{vs:"0.0.0",paramsDeal:Mn}};function jn(e){x("biz.navigation.setMenu",{params:e,platform:Fn})}function xn(e){x("biz.navigation.close",{params:e})}function On(e){x("biz.navigation.replace",{params:e})}var En={pc:{vs:"0.0.0"}};function An(e){x("biz.navigation.quit",{params:e,platform:En})}var Dn=Sn({show:!0,control:!1,text:""}),Vn={ios:{vs:"0.0.0",paramsDeal:Dn},android:{vs:"0.0.0",paramsDeal:Dn},pc:{vs:"0.0.0"}};function Rn(e){x("biz.navigation.setRight",{params:e,platform:Vn})}var Wn=Sn({control:!0}),Bn={ios:{vs:"0.0.0",paramsDeal:Wn},android:{vs:"0.0.0",paramsDeal:Wn}};function Ln(e){x("biz.navigation.setTitleExpandIcon",{params:e,platform:Bn})}function _n(e){x("biz.navigation.updateExpandTitle",{params:e})}var Nn=Sn({show:!0,control:!1,text:""}),Hn={ios:{vs:"0.0.0",paramsDeal:Nn},android:{vs:"0.0.0",paramsDeal:Nn},pc:{vs:"0.0.0"}};function Un(e){x("biz.navigation.setLeft",{params:e,platform:Hn})}var Jn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yn(e){x("biz.navigation.goBack",{params:e,platform:Jn})}var qn={pc:{vs:"0.0.0"}};function Gn(e){x("biz.navigation.setWindowBig",{params:e,platform:qn})}function Kn(e){x("biz.navigation.tencentMeeting",{params:e})}function $n(e){x("biz.navigation.tencentMeetingBegin",{params:e})}var Xn=Sn({nativePanEnable:!0,webPanEnable:!0}),Zn={ios:{vs:"0.0.0",paramsDeal:Xn},android:{vs:"0.0.0",paramsDeal:Xn}};function Qn(e){x("biz.navigation.setPanGestureEnable",{params:e,platform:Zn})}function et(e){x("biz.contact.complexPicker",{params:e})}function nt(e){x("biz.contact.departmentsPicker",{params:e})}function tt(e){x("biz.group.groupComplexPicker",{params:e})}function ot(e){x("biz.chat.chooseConversationByCorpId",{params:e})}var it={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rt(e){x("biz.chat.pickConversation",{params:e,platform:it})}function at(e){x("biz.chat.openSingleChat",{params:e})}function st(e){x("biz.chat.openTeamChat",{params:e})}function ct(e){x("biz.chat.openSquad",{params:e})}function ut(e){x("biz.chat.sendP2PMsg",{params:e})}var dt={pc:{vs:"0.0.0"}};function lt(e){x("primary.createTab",{params:e,platform:dt})}var pt={pc:{vs:"1.9.12"}};function ft(e){x("primary.updateTab",{params:e,platform:pt})}var vt={pc:{vs:"0.0.0"}};function mt(e){x("primary.weeklyShare",{params:e,platform:vt})}var ht={pc:{vs:"0.0.0"}};function gt(e){x("primary.fullScreen",{params:e,platform:ht})}var bt={pc:{vs:"0.0.0"}};function wt(e){x("primary.exitFullScreen",{params:e,platform:bt})}function yt(e){x("runtime.permission.requestAuthCode",{params:e})}var kt={vs:"1.9.9"},Pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:kt};function St(e){x("device.notification.showPreloader",{params:e,platform:Pt})}function Tt(e){x("device.notification.showCustomOverlayContent",{params:e,platform:{pc:kt}})}var zt={vs:"1.9.9"},Ct={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:zt};function It(e){x("device.notification.hidePreloader",{params:e,platform:Ct})}function Mt(e){x("device.notification.hideCustomOverlayContent",{params:e,platform:{pc:zt}})}var Ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jt(e){x("device.notification.vibrate",{params:e,platform:Ft})}function xt(e){x("device.notification.toast",{params:e})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(e){x("device.notification.actionSheet",{params:e,platform:Ot})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Dt(e){x("device.base.getPhoneInfo",{params:e,platform:At})}var Vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Rt(e){x("device.notification.alert",{params:e,platform:Vt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Bt(e){x("device.notification.confirm",{params:e,platform:Wt})}var Lt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _t(e){x("device.geolocation.get",{params:e,platform:Lt})}var Nt={android:{vs:"0.0.0"}};function Ht(e){x("device.geolocation.getSwitch",{params:e,platform:Nt})}function Ut(e){x("device.system.getLang",{params:e})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(e){x("device.audio.startRecord",{params:e,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(e){x("device.audio.stopRecord",{params:e,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(e){x("device.audio.onRecordEnd",{params:e,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(e){x("device.audio.download",{params:e,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(e){x("device.audio.play",{params:e,platform:Qt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(e){x("device.audio.pause",{params:e,platform:no})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function io(e){x("device.audio.stop",{params:e,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(e){x("device.audio.onPlayEnd",{params:e,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(e){x("device.audio.resume",{params:e,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lo(e){x("device.connection.getNetworkType",{params:e,platform:uo})}var po={pc:{vs:"0.0.0"}};function fo(e){x("device.connection.isAtTal",{params:e,platform:po})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function mo(e){x("device.base.getUUID",{params:e,platform:vo})}var ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function go(e){x("device.base.checkStepPermission",{params:e,platform:ho})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(e){x("device.audio.onRecordEnd_v2",{params:e,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(e){x("device.audio.startRecord_v2",{params:e,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(e){x("device.audio.stopRecord_v2",{params:e,platform:Po})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function zo(e){x("device.system.setLight",{params:e,platform:To})}var Co={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(e){x("biz.telephone.showCallMenu",{params:e,platform:Co})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fo(e){x("biz.telephone.call",{params:e,platform:Mo})}var jo={ios:{vs:"0.0.0"}};function xo(e){x("ui.webViewBounce.disable",{params:e,platform:jo})}var Oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Eo(e){x("ui.pullToRefresh.enable",{params:e,platform:Oo})}var Ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Do(e){x("ui.pullToRefresh.stop",{params:e,platform:Ao})}var Vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ro(e){x("ui.pullToRefresh.disable",{params:e,platform:Vo})}var Wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bo(e){x("util.domainStorage.getItem",{params:e,platform:Wo})}var Lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _o(e){x("util.domainStorage.setItem",{params:e,platform:Lo})}var No={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ho(e){x("util.domainStorage.removeItem",{params:e,platform:No})}var Uo={pc:{vs:"1.7.0"}};function Jo(e){x("util.tool.writeLog",{params:e,platform:Uo})}var Yo={pc:{vs:"1.7.0"}};function qo(e){x("util.tool.flushLog",{params:e,platform:Yo})}var Go={pc:{vs:"1.9.9"}};function Ko(e){x("biz.util.capturePage",{params:e,platform:Go})}var $o={ios:{vs:"0.0.0"}};function Xo(e){x("biz.webViewMessage.send",{params:e,platform:$o})}function Zo(e){x("app.custom.talYoungFilesUpload",{params:e})}var Qo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function ei(e){x("biz.util.addAppToNav",{params:e,platform:Qo})}console.log("add rouseApp ------------\x3e",Re);var ni=F.exportSdk,ti=ni.version,oi=ni.sdkVersion,ii=ni.env,ri=ni.platform,ai=ni.platformV2,si=ni.config,ci=ni.ready,ui=ni.error,di=ni.on,li=ni.off;n.default={version:ti,sdkVersion:oi,env:ii,platform:ri,platformV2:ai,config:si,ready:ci,error:ui,on:di,off:li,biz:{util:{openLink:O,feedback:E,open:A,openSlidePanel:V,share:W,previewFile:B,previewImage:L,downloadFile:_,uploadAttachment:N,clipboardFileUpload:H,proxy:U,datepicker:Y,datetimepicker:G,scan:$,chosen:te,openSingleWebview:ie,getSingleWebviewData:re,injectScript:ae,onlineDocmentOpenTeamChat:$e,entergroupCheck:Ze,resetSessionUnread:en,weeklyRead:tn,openFutureGroup:sn,closeWindow:ce,remind:de,takePicture:le,openVideoPlayer:fe,openMediaFileDialog:ve,openMediaFileDialogV2:me,mediaFileUpload:he,mediaFileUploadV2:ge,invoice:be,pushWorkMsg:we,openTalYoungToTopic:ye,getToken:Pe,authStart:Te,authFinish:Ce,assistantCreate:Me,yachEvent:je,topicEvent:Oe,openTogetherEyeWebview:Ae,getTogetherConfig:Ve,rouseApp:Re,externalLinkPreviewFile:We,savePic:Ne,zfbAuth:Le,complain:He,selectDepartment:Ue,createModifySchedule:Ye,openUserSchedule:Ge,disableScreenCapture:rn,addAppToNav:ei,knowledgeBaseSelect:un,knowledgeSelectParams:ln,lorebaseShowList:fn,lorebaseRefreshNodeWebview:mn,copy:gn,openPublish:wn,capturePage:Ko,getConfig:kn},telephone:{showCallMenu:Io,call:Fo},navigation:{setIcon:Cn,setTitle:In,setMenu:jn,close:xn,replace:On,quit:An,setRight:Rn,setTitleExpandIcon:Ln,updateExpandTitle:_n,setLeft:Un,goBack:Yn,setWindowBig:Gn,tencentMeeting:Kn,tencentMeetingBegin:$n,setPanGestureEnable:Qn},contact:{complexPicker:et,departmentsPicker:nt},group:{groupComplexPicker:tt},chat:{chooseConversationByCorpId:ot,pickConversation:rt,openSingleChat:at,openTeamChat:st,openSquad:ct,sendP2PMsg:ut},map:{view:Z,multipointView:ee},webViewMessage:{send:Xo}},runtime:{permission:{requestAuthCode:yt}},primary:{createTab:lt,updateTab:ft,weeklyShare:mt,fullScreen:gt,exitFullScreen:wt},device:{notification:{showPreloader:St,showCustomOverlayContent:Tt,hidePreloader:It,hideCustomOverlayContent:Mt,vibrate:jt,toast:xt,alert:Rt,confirm:Bt,actionSheet:Et},base:{getPhoneInfo:Dt,getUUID:mo,checkStepPermission:go},geolocation:{get:_t,getSwitch:Ht},system:{getLang:Ut,setLight:zo},audio:{startRecord:Yt,stopRecord:Gt,onRecordEnd:$t,download:Zt,play:eo,pause:to,stop:io,onPlayEnd:ao,resume:co,onRecordEnd_v2:wo,startRecord_v2:ko,stopRecord_v2:So},connection:{getNetworkType:lo,isAtTal:fo}},ui:{webViewBounce:{disable:xo},pullToRefresh:{enable:Eo,stop:Do,disable:Ro}},util:{domainStorage:{getItem:Bo,setItem:_o,removeItem:Ho},tool:{writeLog:Jo,flushLog:qo}},app:{custom:{talYoungFilesUpload:Zo}}}}]).default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilFileUploadProgress {
|
|
3
|
+
loaded: number;
|
|
4
|
+
total: number;
|
|
5
|
+
speed: number;
|
|
6
|
+
percent: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IBizUtilFileUploadResult {
|
|
9
|
+
data?: {
|
|
10
|
+
fileId?: string;
|
|
11
|
+
filePath?: string;
|
|
12
|
+
fileName?: string;
|
|
13
|
+
sourcePath?: string;
|
|
14
|
+
relation_id?: string;
|
|
15
|
+
videoPic?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface IBizUtilFileUploadParams {
|
|
19
|
+
/** 支持上传附件的文件类型,至少一个,支持多种类型 */
|
|
20
|
+
files?: Array<Object>;
|
|
21
|
+
onSuccess?: (data: IBizUtilFileUploadResult) => void;
|
|
22
|
+
onFail?: (err: IError) => void;
|
|
23
|
+
onProgress?: (data: IBizUtilFileUploadProgress) => void;
|
|
24
|
+
}
|
|
25
|
+
declare function mediaFileUploadV2(params: IBizUtilFileUploadParams): void;
|
|
26
|
+
export { mediaFileUploadV2 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Descripttion:
|
|
3
|
+
* @Author: olei<wangzheng_jzb@100tal.com>
|
|
4
|
+
* @Date: 2020-09-08 17:15:21
|
|
5
|
+
* @LastEditors: olei<wangzheng_jzb@100tal.com>
|
|
6
|
+
* @LastEditTime: 2020-09-15 11:48:01
|
|
7
|
+
*/
|
|
8
|
+
import initAPI from '../../initAPI';
|
|
9
|
+
var apiName = 'biz.util.mediaFileUploadV2';
|
|
10
|
+
function mediaFileUploadV2(params) {
|
|
11
|
+
initAPI(apiName, {
|
|
12
|
+
params: params
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export { mediaFileUploadV2 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilOpenFileDialogResult {
|
|
3
|
+
data?: {
|
|
4
|
+
files?: Array<Object>;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface IBizUtilOpenFileDialogParams {
|
|
8
|
+
/** multiple是否支持多文件 */
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
/** 支持图片附件的文件类型 */
|
|
11
|
+
imageOpt?: {
|
|
12
|
+
max?: Number;
|
|
13
|
+
};
|
|
14
|
+
/** 支持视频附件的文件类型 */
|
|
15
|
+
videoOpt?: {
|
|
16
|
+
max?: Number;
|
|
17
|
+
duration?: Number;
|
|
18
|
+
};
|
|
19
|
+
onSuccess?: (data: IBizUtilOpenFileDialogResult) => void;
|
|
20
|
+
onFail?: (err: IError) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function openMediaFileDialogV2(params: IBizUtilOpenFileDialogParams): void;
|
|
23
|
+
export { openMediaFileDialogV2 };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Descripttion:
|
|
3
|
+
* @Author: zhangyong<zhangyong_jzb@100tal.com>
|
|
4
|
+
* @Date: 2025-07-28 17:15:05
|
|
5
|
+
* @LastEditors: zhangyong<zhangyong_jzb@100tal.com>
|
|
6
|
+
* @LastEditTime: 2025-07-28 17:16:05
|
|
7
|
+
* 新增文件选择器——针对移动端专用——支持ios文件导出
|
|
8
|
+
*/
|
|
9
|
+
import initAPI from '../../initAPI';
|
|
10
|
+
var apiName = 'biz.util.openMediaFileDialogV2';
|
|
11
|
+
function openMediaFileDialogV2(params) {
|
|
12
|
+
initAPI(apiName, {
|
|
13
|
+
params: params
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export { openMediaFileDialogV2 };
|
|
@@ -7,10 +7,10 @@ export interface IOpenPublishResult {
|
|
|
7
7
|
export interface IOpenPublishParams {
|
|
8
8
|
squadId?: string;
|
|
9
9
|
squadName?: string;
|
|
10
|
-
|
|
10
|
+
source: string;
|
|
11
11
|
multiple?: boolean;
|
|
12
12
|
topicType: '0' | '1' | '2';
|
|
13
|
-
|
|
13
|
+
topicTypeMultiple?: boolean;
|
|
14
14
|
content?: string;
|
|
15
15
|
pic?: string;
|
|
16
16
|
video?: string;
|
package/es/index.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ import { injectScript } from './api/biz/util/injectScript';
|
|
|
22
22
|
import { closeWindow } from './api/biz/util/closeWindow';
|
|
23
23
|
import { remind } from './api/biz/util/remind';
|
|
24
24
|
import { takePicture } from './api/biz/util/takePicture';
|
|
25
|
-
import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
|
|
26
25
|
import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
|
|
27
26
|
import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
|
|
27
|
+
import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
|
|
28
28
|
import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
|
|
29
|
+
import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
|
|
29
30
|
import { invoice } from './api/biz/util/invoice';
|
|
30
31
|
import { pushWorkMsg } from './api/biz/util/pushWorkMsg';
|
|
31
32
|
import { openTalYoungToTopic } from './api/biz/util/openTalYoungToTopic';
|
|
@@ -58,7 +59,6 @@ import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWe
|
|
|
58
59
|
import { copy } from './api/biz/util/copy';
|
|
59
60
|
import { openPublish } from './api/biz/util/openPublish';
|
|
60
61
|
import { getConfig } from './api/biz/util/getConfig';
|
|
61
|
-
import { focus } from './api/biz/util/focus';
|
|
62
62
|
/**navigation*/
|
|
63
63
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
64
64
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -140,7 +140,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
140
140
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
141
141
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
142
142
|
declare const version: string, sdkVersion: string, env: import("./lib/sdk/sdk.typings").IENV, platform: import("./lib/sdk/sdk.typings").ENV_ENUM, platformV2: import("./lib/sdk/sdk.typings").PlatformV2Props, config: (configParams: import("./lib/sdk/sdk.typings").IConfigParams) => void, ready: (readyCallback: () => void) => void, error: (callback: (err: any) => void) => void, on: (methodName: string, listener: (e: any) => void) => void, off: (methodName: string, listener: (e: any) => void) => void;
|
|
143
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload,
|
|
143
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, mediaFileUploadV2, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, getConfig, };
|
|
144
144
|
declare const _default: {
|
|
145
145
|
version: string;
|
|
146
146
|
sdkVersion: string;
|
|
@@ -156,7 +156,6 @@ declare const _default: {
|
|
|
156
156
|
util: {
|
|
157
157
|
openLink: typeof openLink;
|
|
158
158
|
feedback: typeof feedback;
|
|
159
|
-
focus: typeof focus;
|
|
160
159
|
open: typeof open;
|
|
161
160
|
openSlidePanel: typeof openSlidePanel;
|
|
162
161
|
share: typeof share;
|
|
@@ -181,10 +180,11 @@ declare const _default: {
|
|
|
181
180
|
closeWindow: typeof closeWindow;
|
|
182
181
|
remind: typeof remind;
|
|
183
182
|
takePicture: typeof takePicture;
|
|
184
|
-
openAudioPlayer: typeof openAudioPlayer;
|
|
185
183
|
openVideoPlayer: typeof openVideoPlayer;
|
|
186
184
|
openMediaFileDialog: typeof openMediaFileDialog;
|
|
185
|
+
openMediaFileDialogV2: typeof openMediaFileDialogV2;
|
|
187
186
|
mediaFileUpload: typeof mediaFileUpload;
|
|
187
|
+
mediaFileUploadV2: typeof mediaFileUploadV2;
|
|
188
188
|
invoice: typeof invoice;
|
|
189
189
|
pushWorkMsg: typeof pushWorkMsg;
|
|
190
190
|
openTalYoungToTopic: typeof openTalYoungToTopic;
|
package/es/index.js
CHANGED
|
@@ -24,10 +24,11 @@ import { injectScript } from './api/biz/util/injectScript';
|
|
|
24
24
|
import { closeWindow } from './api/biz/util/closeWindow';
|
|
25
25
|
import { remind } from './api/biz/util/remind';
|
|
26
26
|
import { takePicture } from './api/biz/util/takePicture';
|
|
27
|
-
import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
|
|
28
27
|
import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
|
|
29
28
|
import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
|
|
29
|
+
import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
|
|
30
30
|
import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
|
|
31
|
+
import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
|
|
31
32
|
import { invoice } from './api/biz/util/invoice';
|
|
32
33
|
import { pushWorkMsg } from './api/biz/util/pushWorkMsg';
|
|
33
34
|
import { openTalYoungToTopic } from './api/biz/util/openTalYoungToTopic';
|
|
@@ -60,7 +61,6 @@ import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWe
|
|
|
60
61
|
import { copy } from './api/biz/util/copy';
|
|
61
62
|
import { openPublish } from './api/biz/util/openPublish';
|
|
62
63
|
import { getConfig } from './api/biz/util/getConfig';
|
|
63
|
-
import { focus } from './api/biz/util/focus';
|
|
64
64
|
/**navigation*/
|
|
65
65
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
66
66
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -158,7 +158,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
|
158
158
|
error = _yachSdk$exportSdk.error,
|
|
159
159
|
on = _yachSdk$exportSdk.on,
|
|
160
160
|
off = _yachSdk$exportSdk.off;
|
|
161
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload,
|
|
161
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, mediaFileUploadV2, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, getConfig };
|
|
162
162
|
export default {
|
|
163
163
|
version: version,
|
|
164
164
|
sdkVersion: sdkVersion,
|
|
@@ -174,7 +174,6 @@ export default {
|
|
|
174
174
|
util: {
|
|
175
175
|
openLink: openLink,
|
|
176
176
|
feedback: feedback,
|
|
177
|
-
focus: focus,
|
|
178
177
|
open: open,
|
|
179
178
|
openSlidePanel: openSlidePanel,
|
|
180
179
|
share: share,
|
|
@@ -199,10 +198,11 @@ export default {
|
|
|
199
198
|
closeWindow: closeWindow,
|
|
200
199
|
remind: remind,
|
|
201
200
|
takePicture: takePicture,
|
|
202
|
-
openAudioPlayer: openAudioPlayer,
|
|
203
201
|
openVideoPlayer: openVideoPlayer,
|
|
204
202
|
openMediaFileDialog: openMediaFileDialog,
|
|
203
|
+
openMediaFileDialogV2: openMediaFileDialogV2,
|
|
205
204
|
mediaFileUpload: mediaFileUpload,
|
|
205
|
+
mediaFileUploadV2: mediaFileUploadV2,
|
|
206
206
|
invoice: invoice,
|
|
207
207
|
pushWorkMsg: pushWorkMsg,
|
|
208
208
|
openTalYoungToTopic: openTalYoungToTopic,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilFileUploadProgress {
|
|
3
|
+
loaded: number;
|
|
4
|
+
total: number;
|
|
5
|
+
speed: number;
|
|
6
|
+
percent: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IBizUtilFileUploadResult {
|
|
9
|
+
data?: {
|
|
10
|
+
fileId?: string;
|
|
11
|
+
filePath?: string;
|
|
12
|
+
fileName?: string;
|
|
13
|
+
sourcePath?: string;
|
|
14
|
+
relation_id?: string;
|
|
15
|
+
videoPic?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface IBizUtilFileUploadParams {
|
|
19
|
+
/** 支持上传附件的文件类型,至少一个,支持多种类型 */
|
|
20
|
+
files?: Array<Object>;
|
|
21
|
+
onSuccess?: (data: IBizUtilFileUploadResult) => void;
|
|
22
|
+
onFail?: (err: IError) => void;
|
|
23
|
+
onProgress?: (data: IBizUtilFileUploadProgress) => void;
|
|
24
|
+
}
|
|
25
|
+
declare function mediaFileUploadV2(params: IBizUtilFileUploadParams): void;
|
|
26
|
+
export { mediaFileUploadV2 };
|
|
@@ -5,26 +5,19 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
5
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.mediaFileUploadV2 = mediaFileUploadV2;
|
|
9
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
pc: pc,
|
|
21
|
-
ios: ios,
|
|
22
|
-
android: android
|
|
23
|
-
};
|
|
24
|
-
var apiName = 'biz.util.focus';
|
|
25
|
-
function focus(params) {
|
|
10
|
+
/*
|
|
11
|
+
* @Descripttion:
|
|
12
|
+
* @Author: olei<wangzheng_jzb@100tal.com>
|
|
13
|
+
* @Date: 2020-09-08 17:15:21
|
|
14
|
+
* @LastEditors: olei<wangzheng_jzb@100tal.com>
|
|
15
|
+
* @LastEditTime: 2020-09-15 11:48:01
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var apiName = 'biz.util.mediaFileUploadV2';
|
|
19
|
+
function mediaFileUploadV2(params) {
|
|
26
20
|
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params
|
|
28
|
-
platform: platform
|
|
21
|
+
params: params
|
|
29
22
|
});
|
|
30
23
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilOpenFileDialogResult {
|
|
3
|
+
data?: {
|
|
4
|
+
files?: Array<Object>;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface IBizUtilOpenFileDialogParams {
|
|
8
|
+
/** multiple是否支持多文件 */
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
/** 支持图片附件的文件类型 */
|
|
11
|
+
imageOpt?: {
|
|
12
|
+
max?: Number;
|
|
13
|
+
};
|
|
14
|
+
/** 支持视频附件的文件类型 */
|
|
15
|
+
videoOpt?: {
|
|
16
|
+
max?: Number;
|
|
17
|
+
duration?: Number;
|
|
18
|
+
};
|
|
19
|
+
onSuccess?: (data: IBizUtilOpenFileDialogResult) => void;
|
|
20
|
+
onFail?: (err: IError) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function openMediaFileDialogV2(params: IBizUtilOpenFileDialogParams): void;
|
|
23
|
+
export { openMediaFileDialogV2 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.openMediaFileDialogV2 = openMediaFileDialogV2;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
+
/*
|
|
11
|
+
* @Descripttion:
|
|
12
|
+
* @Author: zhangyong<zhangyong_jzb@100tal.com>
|
|
13
|
+
* @Date: 2025-07-28 17:15:05
|
|
14
|
+
* @LastEditors: zhangyong<zhangyong_jzb@100tal.com>
|
|
15
|
+
* @LastEditTime: 2025-07-28 17:16:05
|
|
16
|
+
* 新增文件选择器——针对移动端专用——支持ios文件导出
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
var apiName = 'biz.util.openMediaFileDialogV2';
|
|
20
|
+
function openMediaFileDialogV2(params) {
|
|
21
|
+
(0, _initAPI["default"])(apiName, {
|
|
22
|
+
params: params
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -7,10 +7,10 @@ export interface IOpenPublishResult {
|
|
|
7
7
|
export interface IOpenPublishParams {
|
|
8
8
|
squadId?: string;
|
|
9
9
|
squadName?: string;
|
|
10
|
-
|
|
10
|
+
source: string;
|
|
11
11
|
multiple?: boolean;
|
|
12
12
|
topicType: '0' | '1' | '2';
|
|
13
|
-
|
|
13
|
+
topicTypeMultiple?: boolean;
|
|
14
14
|
content?: string;
|
|
15
15
|
pic?: string;
|
|
16
16
|
video?: string;
|
package/libs/index.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ import { injectScript } from './api/biz/util/injectScript';
|
|
|
22
22
|
import { closeWindow } from './api/biz/util/closeWindow';
|
|
23
23
|
import { remind } from './api/biz/util/remind';
|
|
24
24
|
import { takePicture } from './api/biz/util/takePicture';
|
|
25
|
-
import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
|
|
26
25
|
import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
|
|
27
26
|
import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
|
|
27
|
+
import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
|
|
28
28
|
import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
|
|
29
|
+
import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
|
|
29
30
|
import { invoice } from './api/biz/util/invoice';
|
|
30
31
|
import { pushWorkMsg } from './api/biz/util/pushWorkMsg';
|
|
31
32
|
import { openTalYoungToTopic } from './api/biz/util/openTalYoungToTopic';
|
|
@@ -58,7 +59,6 @@ import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWe
|
|
|
58
59
|
import { copy } from './api/biz/util/copy';
|
|
59
60
|
import { openPublish } from './api/biz/util/openPublish';
|
|
60
61
|
import { getConfig } from './api/biz/util/getConfig';
|
|
61
|
-
import { focus } from './api/biz/util/focus';
|
|
62
62
|
/**navigation*/
|
|
63
63
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
64
64
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -140,7 +140,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
140
140
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
141
141
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
142
142
|
declare const version: string, sdkVersion: string, env: import("./lib/sdk/sdk.typings").IENV, platform: import("./lib/sdk/sdk.typings").ENV_ENUM, platformV2: import("./lib/sdk/sdk.typings").PlatformV2Props, config: (configParams: import("./lib/sdk/sdk.typings").IConfigParams) => void, ready: (readyCallback: () => void) => void, error: (callback: (err: any) => void) => void, on: (methodName: string, listener: (e: any) => void) => void, off: (methodName: string, listener: (e: any) => void) => void;
|
|
143
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload,
|
|
143
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, openMediaFileDialogV2, mediaFileUpload, mediaFileUploadV2, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, getConfig, };
|
|
144
144
|
declare const _default: {
|
|
145
145
|
version: string;
|
|
146
146
|
sdkVersion: string;
|
|
@@ -156,7 +156,6 @@ declare const _default: {
|
|
|
156
156
|
util: {
|
|
157
157
|
openLink: typeof openLink;
|
|
158
158
|
feedback: typeof feedback;
|
|
159
|
-
focus: typeof focus;
|
|
160
159
|
open: typeof open;
|
|
161
160
|
openSlidePanel: typeof openSlidePanel;
|
|
162
161
|
share: typeof share;
|
|
@@ -181,10 +180,11 @@ declare const _default: {
|
|
|
181
180
|
closeWindow: typeof closeWindow;
|
|
182
181
|
remind: typeof remind;
|
|
183
182
|
takePicture: typeof takePicture;
|
|
184
|
-
openAudioPlayer: typeof openAudioPlayer;
|
|
185
183
|
openVideoPlayer: typeof openVideoPlayer;
|
|
186
184
|
openMediaFileDialog: typeof openMediaFileDialog;
|
|
185
|
+
openMediaFileDialogV2: typeof openMediaFileDialogV2;
|
|
187
186
|
mediaFileUpload: typeof mediaFileUpload;
|
|
187
|
+
mediaFileUploadV2: typeof mediaFileUploadV2;
|
|
188
188
|
invoice: typeof invoice;
|
|
189
189
|
pushWorkMsg: typeof pushWorkMsg;
|
|
190
190
|
openTalYoungToTopic: typeof openTalYoungToTopic;
|
package/libs/index.js
CHANGED
|
@@ -193,12 +193,6 @@ _Object$defineProperty(exports, "flushLog", {
|
|
|
193
193
|
return _flushLog.flushLog;
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
_Object$defineProperty(exports, "focus", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function get() {
|
|
199
|
-
return _focus.focus;
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
196
|
_Object$defineProperty(exports, "fullScreen", {
|
|
203
197
|
enumerable: true,
|
|
204
198
|
get: function get() {
|
|
@@ -349,6 +343,12 @@ _Object$defineProperty(exports, "mediaFileUpload", {
|
|
|
349
343
|
return _mediaFileUpload.mediaFileUpload;
|
|
350
344
|
}
|
|
351
345
|
});
|
|
346
|
+
_Object$defineProperty(exports, "mediaFileUploadV2", {
|
|
347
|
+
enumerable: true,
|
|
348
|
+
get: function get() {
|
|
349
|
+
return _mediaFileUploadV.mediaFileUploadV2;
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
352
|
_Object$defineProperty(exports, "multipointView", {
|
|
353
353
|
enumerable: true,
|
|
354
354
|
get: function get() {
|
|
@@ -386,12 +386,6 @@ _Object$defineProperty(exports, "open", {
|
|
|
386
386
|
return _open.open;
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
|
-
_Object$defineProperty(exports, "openAudioPlayer", {
|
|
390
|
-
enumerable: true,
|
|
391
|
-
get: function get() {
|
|
392
|
-
return _openAudioPlayer.openAudioPlayer;
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
389
|
_Object$defineProperty(exports, "openFutureGroup", {
|
|
396
390
|
enumerable: true,
|
|
397
391
|
get: function get() {
|
|
@@ -410,6 +404,12 @@ _Object$defineProperty(exports, "openMediaFileDialog", {
|
|
|
410
404
|
return _openMediaFileDialog.openMediaFileDialog;
|
|
411
405
|
}
|
|
412
406
|
});
|
|
407
|
+
_Object$defineProperty(exports, "openMediaFileDialogV2", {
|
|
408
|
+
enumerable: true,
|
|
409
|
+
get: function get() {
|
|
410
|
+
return _openMediaFileDialogV.openMediaFileDialogV2;
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
413
|
_Object$defineProperty(exports, "openPublish", {
|
|
414
414
|
enumerable: true,
|
|
415
415
|
get: function get() {
|
|
@@ -846,10 +846,11 @@ var _injectScript = require("./api/biz/util/injectScript");
|
|
|
846
846
|
var _closeWindow = require("./api/biz/util/closeWindow");
|
|
847
847
|
var _remind = require("./api/biz/util/remind");
|
|
848
848
|
var _takePicture = require("./api/biz/util/takePicture");
|
|
849
|
-
var _openAudioPlayer = require("./api/biz/util/openAudioPlayer");
|
|
850
849
|
var _openVideoPlayer = require("./api/biz/util/openVideoPlayer");
|
|
851
850
|
var _openMediaFileDialog = require("./api/biz/util/openMediaFileDialog");
|
|
851
|
+
var _openMediaFileDialogV = require("./api/biz/util/openMediaFileDialogV2");
|
|
852
852
|
var _mediaFileUpload = require("./api/biz/util/mediaFileUpload");
|
|
853
|
+
var _mediaFileUploadV = require("./api/biz/util/mediaFileUploadV2");
|
|
853
854
|
var _invoice = require("./api/biz/util/invoice");
|
|
854
855
|
var _pushWorkMsg = require("./api/biz/util/pushWorkMsg");
|
|
855
856
|
var _openTalYoungToTopic = require("./api/biz/util/openTalYoungToTopic");
|
|
@@ -882,7 +883,6 @@ var _lorebaseRefreshNodeWebview = require("./api/biz/util/lorebaseRefreshNodeWeb
|
|
|
882
883
|
var _copy = require("./api/biz/util/copy");
|
|
883
884
|
var _openPublish = require("./api/biz/util/openPublish");
|
|
884
885
|
var _getConfig = require("./api/biz/util/getConfig");
|
|
885
|
-
var _focus = require("./api/biz/util/focus");
|
|
886
886
|
var _setIcon = require("./api/biz/navigation/setIcon");
|
|
887
887
|
var _setTitle = require("./api/biz/navigation/setTitle");
|
|
888
888
|
var _setMenu = require("./api/biz/navigation/setMenu");
|
|
@@ -1010,7 +1010,6 @@ var _default = exports["default"] = {
|
|
|
1010
1010
|
util: {
|
|
1011
1011
|
openLink: _openLink.openLink,
|
|
1012
1012
|
feedback: _feedback.feedback,
|
|
1013
|
-
focus: _focus.focus,
|
|
1014
1013
|
open: _open.open,
|
|
1015
1014
|
openSlidePanel: _openSlidePanel.openSlidePanel,
|
|
1016
1015
|
share: _share.share,
|
|
@@ -1035,10 +1034,11 @@ var _default = exports["default"] = {
|
|
|
1035
1034
|
closeWindow: _closeWindow.closeWindow,
|
|
1036
1035
|
remind: _remind.remind,
|
|
1037
1036
|
takePicture: _takePicture.takePicture,
|
|
1038
|
-
openAudioPlayer: _openAudioPlayer.openAudioPlayer,
|
|
1039
1037
|
openVideoPlayer: _openVideoPlayer.openVideoPlayer,
|
|
1040
1038
|
openMediaFileDialog: _openMediaFileDialog.openMediaFileDialog,
|
|
1039
|
+
openMediaFileDialogV2: _openMediaFileDialogV.openMediaFileDialogV2,
|
|
1041
1040
|
mediaFileUpload: _mediaFileUpload.mediaFileUpload,
|
|
1041
|
+
mediaFileUploadV2: _mediaFileUploadV.mediaFileUploadV2,
|
|
1042
1042
|
invoice: _invoice.invoice,
|
|
1043
1043
|
pushWorkMsg: _pushWorkMsg.pushWorkMsg,
|
|
1044
1044
|
openTalYoungToTopic: _openTalYoungToTopic.openTalYoungToTopic,
|
package/package.json
CHANGED
package/dist/yach_jssdk_4.4.6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.yy=function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,t){"use strict";var o=new function(){var e=this;this.on=function(n,t){if(!n||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(e.eventsHandle[n])||(e.eventsHandle[n]=[]),e.eventsHandle[n].push(t)},this.off=function(n,t){if(!n)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(e.eventsHandle[n])){var o=e.eventsHandle[n].indexOf(t);-1!==o&&e.eventsHandle[n].splice(o,1)}}else e.eventsHandle[n]=[]},this.execEvent=function(e,n){Array.isArray(this.eventsHandle[e])&&this.eventsHandle[e].forEach((function(e){try{e(n)}catch(e){console.error(n)}}))},this.eventsHandle={}};n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var o=t(3);function i(e){if(e)if(e.group)if(e.project)if(e.hasOwnProperty("env"))if(e.hasOwnProperty("version")){var n=["https://es.zhiyinlou.com/log.js?"];n.push("group="+e.group),n.push("&project="+e.project),n.push("&env="+e.env),n.push("&version="+e.version),n.push("&method="+e.method),e.yachid&&n.push("&yachid="+e.yachid),e.workcode&&n.push("&workcode="+e.workcode),e.timestamp&&n.push("×tamp="+e.timestamp),e.errorcode&&n.push("&errorcode="+e.errorcode),e.message&&n.push("&message="+e.message),e.api&&e.time&&(n.push("&api="+e.api),n.push("&load_time="+e.time));var t,o,i=n.join("");t=i,(o=document.createElement("script")).type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,document.getElementsByTagName("head")[0].removeChild(o))}:o.onload=function(){document.getElementsByTagName("head")[0].removeChild(o)},o.src=t,document.getElementsByTagName("head")[0].appendChild(o),"online"!=e.env&&console.log(i)}else console.log("bpit error: need options.version");else console.log("bpit error: need options.env");else console.log("bpit error: need options.project");else console.log("bpit error: need options.group");else console.log("bpit error: need options")}var r=function(){return(r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function a(e){var n=Object(o.a)().env,t=Object(o.a)().version,a=Date.now(),s=r({group:"yach",project:"yach_31_jssdk",env:n,version:t,timestamp:a},e);console.log("jssdk 项目 bpit 上报数据:",s),i(s)}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var o={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(o=window.console),"undefined"!=typeof document&&document.body){var i=document.createElement("iframe");i&&i.contentWindow&&i.contentWindow.console&&(i.style.display="none",document.body.appendChild(i),o=i.contentWindow.console)}var r=o.log.bind(o),a=(o.warn.bind(o),o.error.bind(o),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function s(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r("%c Yach-jssdk log: ",a,e)}},function(e,n,t){"use strict";var o;function i(){var e="undefined"!=typeof navigator?navigator.userAgent:"",n=/Yach/i.test(e),t=/iPhone|iPad|iPod|iOS/i.test(e)&&n,i=/Android/i.test(e)&&n,r=/YachPc/i.test(e),a=/iPad/i.test(e)&&n,s=/iPhone/i.test(e)&&n,c=/Yachtest/.test(e)&&n,u=/HarmonyOSNext/i.test(e)&&n,d=o.notInYach;return t&&(d=o.ios),i&&(d=o.android),r&&(d=o.pc),{platform:d,platformV2:{inYach:n,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s,inHarmonyNext:u},version:((e.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*",env:c?"test":"online"}}t.d(n,"a",(function(){return i})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInYach="notInYach"}(o||(o={}))},function(e,n,t){"use strict";(function(e){var o=t(2),i=t(0),r=function(e,n,t){var o=this;this.genid=function(){var e=Date.now().toString(36);return e+=Math.random().toString(36).substr(3)},this.receiveResponse=function(e){o.callback(e)},this.getPayload=function(){return{msgId:o.id,methodName:o.methodName,moduleId:o.moduleId,body:o.plainMsg,type:"request",invokeType:o.invokeType}},this.id=this.genid(),this.PromiseObj={resolve:null,reject:null},this.methodName=e,this.plainMsg=n,this.invokeType=null==n?void 0:n.invokeType,this.moduleId=null==n?void 0:n.moduleId,this.callback=t},a=new function(){var n=this;this.addPending=function(e){n.pendingMsgs[e.id]=e},this.deletePending=function(e){delete n.pendingMsgs[e.id]},this.getPending=function(e){return this.pendingMsgs[e]},this.invokeAPIInBrowserView=function(e){window.sendTo(e)},this.invokeAPIInWebview=function(e){window.sendToHost(e)},this.invokeAPIInModuleFederation=function(e){window.remoteSendToHost(e)},this.invokeAPI=function(e,t,o){var i;if("moduleFederation"===n.invokeType){t.invokeType=n.invokeType,t.moduleId=n.moduleId,i=new r(e,t,o);var a=JSON.stringify(i.getPayload());n.invokeAPIInModuleFederation(a)}else{i=new r(e,t,o),a=JSON.stringify(i.getPayload());var s=t.invokeType;"browserView"===(void 0===s?"":s)?n.invokeAPIInBrowserView(a):n.invokeAPIInWebview(a)}return n.addPending(i),i},this.handleCallback=function(e,t){var o=e.type,r=e.methodName,a=e.eventName,s=e.msgId,c=e.data,u=void 0===c?{}:c,d=e.code,l=e.message,p=e.msg;if("request"===o)switch(r){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":i.a.execEvent(a,u);break;case"zoomInClick":var f=document.documentElement.scrollTop||document.body.scrollTop,v=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}})):window.sendToHost(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}}))}else if("response"===o){var m=n.getPending(s);m&&m.receiveResponse({data:u,code:d,message:l||p||u.msg||u.message}),-3!=d&&n.deletePending(s)}},this.init=function(){var e;"moduleFederation"!==n.invokeType?(window.addEventListener("message",(function(e){Object(o.a)("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))):null===(e=window.remoteReceiveFromHost)||void 0===e||e.call(window,(function(e){n.handleCallback(e)}),n.moduleId)},this.pendingMsgs={},this.invokeType=window.remoteSendToHost&&window.remoteReceiveFromHost&&e?"moduleFederation":"",this.moduleId=Math.random().toString(36).substring(2,15)};n.a=a}).call(this,t(6))},function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.6","description":"","module":"./es/index.js","main":"./libs/index.js","files":["es","libs","dist"],"sideEffects":false,"scripts":{"start":"yach del es && tsc -w","build":"node ./tools/run compile","lint":"eslint \'src/**/*.{js,ts}\'","lint-fix":"eslint --fix \'src/**/*.{js,ts}\'","p:beta":"npm publish --tag=beta --access public","p":"npm publish"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3"},"authors":[{"name":"ostwind","email":"9837438@qq.com"}],"license":"ISC","devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.5","@types/node":"^13.9.8","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","babel-loader":"^8.1.0","colorful":"^2.1.0","commander":"^5.1.0","dingtalk-jsapi":"^2.10.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-concat":"^2.6.1","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-umd":"^2.0.0","gulp-util":"^3.0.8","lint-staged":"^10.0.9","npm-cli-login":"1.0.0","prettier":"^2.0.2","qiao.ext.cos":"^0.1.2","ts-loader":"^7.0.1","typescript":"^3.9.7","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1"}}')},function(e,n){var t,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,u=[],d=!1,l=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):l=-1,u.length&&f())}function f(){if(!d){var e=s(p);d=!0;for(var n=u.length;n;){for(c=u,u=[];++l<n;)c&&c[l].run();l=-1,n=u.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(n){try{return o.call(null,e)}catch(n){return o.call(this,e)}}}(e)}}function v(e,n){this.fun=e,this.array=n}function m(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new v(e,n)),1!==u.length||d||s(f)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,n,t){"use strict";t.r(n),t.d(n,"version",(function(){return ii})),t.d(n,"sdkVersion",(function(){return ri})),t.d(n,"env",(function(){return ai})),t.d(n,"platform",(function(){return si})),t.d(n,"platformV2",(function(){return ci})),t.d(n,"config",(function(){return ui})),t.d(n,"ready",(function(){return di})),t.d(n,"error",(function(){return li})),t.d(n,"on",(function(){return pi})),t.d(n,"off",(function(){return fi})),t.d(n,"openLink",(function(){return E})),t.d(n,"feedback",(function(){return F})),t.d(n,"open",(function(){return A})),t.d(n,"openSlidePanel",(function(){return R})),t.d(n,"share",(function(){return W})),t.d(n,"previewFile",(function(){return B})),t.d(n,"previewImage",(function(){return L})),t.d(n,"downloadFile",(function(){return _})),t.d(n,"uploadAttachment",(function(){return N})),t.d(n,"clipboardFileUpload",(function(){return H})),t.d(n,"proxy",(function(){return U})),t.d(n,"datepicker",(function(){return Y})),t.d(n,"scan",(function(){return $})),t.d(n,"chosen",(function(){return te})),t.d(n,"openSingleWebview",(function(){return ie})),t.d(n,"getSingleWebviewData",(function(){return re})),t.d(n,"injectScript",(function(){return ae})),t.d(n,"closeWindow",(function(){return ce})),t.d(n,"showCallMenu",(function(){return jo})),t.d(n,"call",(function(){return Oo})),t.d(n,"setIcon",(function(){return Mn})),t.d(n,"setTitle",(function(){return jn})),t.d(n,"setMenu",(function(){return En})),t.d(n,"close",(function(){return Fn})),t.d(n,"replacePage",(function(){return An})),t.d(n,"quit",(function(){return Rn})),t.d(n,"setRight",(function(){return Bn})),t.d(n,"setTitleExpandIcon",(function(){return Nn})),t.d(n,"updateExpandTitle",(function(){return Hn})),t.d(n,"setLeft",(function(){return Yn})),t.d(n,"goBack",(function(){return Gn})),t.d(n,"complexPicker",(function(){return tt})),t.d(n,"departmentsPicker",(function(){return ot})),t.d(n,"groupComplexPicker",(function(){return it})),t.d(n,"chooseConversationByCorpId",(function(){return rt})),t.d(n,"pickConversation",(function(){return st})),t.d(n,"openSingleChat",(function(){return ct})),t.d(n,"openTeamChat",(function(){return ut})),t.d(n,"openSquad",(function(){return dt})),t.d(n,"sendP2PMsg",(function(){return lt})),t.d(n,"mapView",(function(){return Z})),t.d(n,"multipointView",(function(){return ee})),t.d(n,"requestAuthCode",(function(){return Pt})),t.d(n,"createTab",(function(){return ft})),t.d(n,"updateTab",(function(){return mt})),t.d(n,"weeklyShare",(function(){return gt})),t.d(n,"fullScreen",(function(){return wt})),t.d(n,"exitFullScreen",(function(){return kt})),t.d(n,"showPreloader",(function(){return zt})),t.d(n,"showCustomOverlayContent",(function(){return Ct})),t.d(n,"hidePreloader",(function(){return jt})),t.d(n,"hideCustomOverlayContent",(function(){return xt})),t.d(n,"vibrate",(function(){return Et})),t.d(n,"toast",(function(){return Ft})),t.d(n,"alert",(function(){return Bt})),t.d(n,"confirm",(function(){return _t})),t.d(n,"getPhoneInfo",(function(){return Vt})),t.d(n,"getUUID",(function(){return go})),t.d(n,"checkStepPermission",(function(){return wo})),t.d(n,"getGeolocation",(function(){return Ht})),t.d(n,"getGeolocationSwitch",(function(){return Jt})),t.d(n,"getLang",(function(){return Yt})),t.d(n,"startRecord",(function(){return Gt})),t.d(n,"stopRecord",(function(){return $t})),t.d(n,"onRecordEnd",(function(){return Zt})),t.d(n,"downloadAudio",(function(){return eo})),t.d(n,"playAudio",(function(){return to})),t.d(n,"pauseAudio",(function(){return io})),t.d(n,"stopAudio",(function(){return ao})),t.d(n,"onPlayEnd",(function(){return co})),t.d(n,"resumeAudio",(function(){return lo})),t.d(n,"getNetworkType",(function(){return fo})),t.d(n,"isAtTal",(function(){return mo})),t.d(n,"webViewBounceDisable",(function(){return Fo})),t.d(n,"pullToRefreshEnable",(function(){return Do})),t.d(n,"pullToRefreshStop",(function(){return Vo})),t.d(n,"pullToRefreshDisable",(function(){return Bo})),t.d(n,"getItem",(function(){return _o})),t.d(n,"setItem",(function(){return Ho})),t.d(n,"removeItem",(function(){return Jo})),t.d(n,"writeLog",(function(){return qo})),t.d(n,"flushLog",(function(){return Ko})),t.d(n,"remind",(function(){return de})),t.d(n,"takePicture",(function(){return le})),t.d(n,"datetimepicker",(function(){return G})),t.d(n,"actionSheet",(function(){return Dt})),t.d(n,"webViewMessageSend",(function(){return Qo})),t.d(n,"talYoungFilesUpload",(function(){return ei})),t.d(n,"openAudioPlayer",(function(){return fe})),t.d(n,"openVideoPlayer",(function(){return me})),t.d(n,"openMediaFileDialog",(function(){return he})),t.d(n,"mediaFileUpload",(function(){return ge})),t.d(n,"invoice",(function(){return be})),t.d(n,"pushWorkMsg",(function(){return we})),t.d(n,"openTalYoungToTopic",(function(){return ye})),t.d(n,"getToken",(function(){return Pe})),t.d(n,"authStart",(function(){return Te})),t.d(n,"authFinish",(function(){return Ce})),t.d(n,"assistantCreate",(function(){return Me})),t.d(n,"yachEvent",(function(){return xe})),t.d(n,"topicEvent",(function(){return Ee})),t.d(n,"openTogetherEyeWebview",(function(){return Ae})),t.d(n,"getTogetherConfig",(function(){return Re})),t.d(n,"rouseApp",(function(){return Ve})),t.d(n,"externalLinkPreviewFile",(function(){return We})),t.d(n,"savePic",(function(){return Ne})),t.d(n,"zfbAuth",(function(){return Le})),t.d(n,"complain",(function(){return He})),t.d(n,"onRecordEnd_v2",(function(){return ko})),t.d(n,"startRecord_v2",(function(){return So})),t.d(n,"stopRecord_v2",(function(){return zo})),t.d(n,"selectDepartment",(function(){return Ue})),t.d(n,"setWindowBig",(function(){return $n})),t.d(n,"tencentMeeting",(function(){return Xn})),t.d(n,"tencentMeetingBegin",(function(){return Zn})),t.d(n,"createModifySchedule",(function(){return Ye})),t.d(n,"onlineDocmentOpenTeamChat",(function(){return $e})),t.d(n,"entergroupCheck",(function(){return Ze})),t.d(n,"resetSessionUnread",(function(){return en})),t.d(n,"weeklyRead",(function(){return tn})),t.d(n,"openFutureGroup",(function(){return sn})),t.d(n,"knowledgeBaseSelect",(function(){return un})),t.d(n,"knowledgeSelectParams",(function(){return ln})),t.d(n,"lorebaseShowList",(function(){return fn})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return mn})),t.d(n,"openPublish",(function(){return wn})),t.d(n,"setLight",(function(){return Io})),t.d(n,"openUserSchedule",(function(){return Ge})),t.d(n,"disableScreenCapture",(function(){return rn})),t.d(n,"setPanGestureEnable",(function(){return nt})),t.d(n,"addAppToNav",(function(){return ti})),t.d(n,"copy",(function(){return gn})),t.d(n,"capturePage",(function(){return Xo})),t.d(n,"getConfig",(function(){return kn})),t.d(n,"focus",(function(){return Sn}));var o=t(3),i=t(1),r=t(2),a=function(e,n){var t=c(e),o=c(n),i=t.pop(),r=o.pop(),a=p(t,o);return 0!==a?a:i&&r?p(i.split("."),r.split(".")):i||r?i?-1:1:0},s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,c=function(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var n=e.match(s);if(!n)throw new Error("Invalid argument not valid semver ('"+e+"' received)");return n.shift(),n},u=function(e){return"*"===e||"x"===e||"X"===e},d=function(e){var n=parseInt(e,10);return isNaN(n)?e:n},l=function(e,n){if(u(e)||u(n))return 0;var t=function(e,n){return typeof e!=typeof n?[String(e),String(n)]:[e,n]}(d(e),d(n)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},p=function(e,n){for(var t=0;t<Math.max(e.length,n.length);t++){var o=l(e[t]||"0",n[t]||"0");if(0!==o)return o}return 0},f={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},v=(Object.keys(f),t(5)),m=function(){function e(e){var n=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(e,t){n.cacheP.resolve=e,n.cacheP.reject=t})),this.env=e,this.exportSdk={version:e.version,sdkVersion:v.version,env:e,platform:e.platform,platformV2:e.platformV2,config:function(e){void 0===e&&(e={});var t=e.jsApiList,o=void 0===t?[]:t;n.hadConfig?console.log("Config has been executed"):n.bridgeInitFn().then((function(t){t("config",e).then((function(e){n.cacheP.resolve(e),n.hadConfig=!0,n.configJsApiList=o})).catch((function(e){n.cacheP.reject(e)}))}))},ready:function(e){n.bridgeInitFn().then((function(){e()}))},error:function(e){n.config$.catch((function(n){e(n)}))},on:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.on(t,o)}))},off:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.off(t,o)}))}}}return e.prototype.setAPI=function(e,n){this.invokeAPIConfigMapByMethod[e]=n},e.prototype.setPlatform=function(e){var n=e.platform;e.bridgeInit;this.platformConfigMap[n]=e},e.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var e=this.platformConfigMap[this.env.platform];if(e)this.bridgeInitFnPromise=e.bridgeInit();else{var n="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(n))}return this.bridgeInitFnPromise},e.prototype._onFail=function(e,n,t,o){Object(i.a)({method:e,errorcode:n,message:t}),o&&"function"==typeof o&&o({code:n,message:t})},e.prototype.invokeAPI=function(e,n){if(n||(n={}),e){var t=this.invokeAPIConfigMapByMethod[e];if(!t)return this._onFail(e,"-1","["+e+"] method is not exist",n.onFail);var o=t[this.env.platform];if(o){var i=o.vs||"0.0.0";if(a(this.env.version,i)<0)return this._onFail(e,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,n.onFail);var s=o.paramsDeal?o.paramsDeal(n):n;if("function"==typeof s.onSuccess){var c=s.onSuccess;s.onSuccess=function(e){c(e)}}this.bridgeInitFn().then((function(n){n(e,s).then((function(n){Object(r.a)("SDK 返回结果成功 ",{method:e,params:s,result:n})})).catch((function(n){Object(r.a)("SDK 返回结果失败",{method:e,params:s,error:n})}))})).catch((function(e){console.log("wenai err",e)}))}else this._onFail(e,"-1","["+e+"] method do not support the current platform ("+this.env.platform+")",n.onFail)}},e}(),h=t(4),g=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function b(e){return g.get(e)||"onFail"}var w=function(){return(w=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},y=function(e,n){return new Promise((function(t,o){return h.a.invokeAPI(e,n,(function(a){var s=a.data,c=a.code,u=a.message,d=parseInt(c),l=b(d),p=n[l];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:s,_code:d,message:u,callbackFun:p}),"onFail"!==l)"function"==typeof p&&p(s||u),t({_code:d,message:u,data:s});else{if(Object(i.a)({method:e,errorcode:d,message:u||JSON.stringify(s)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",c,d);var f="[object Object]"===Object.prototype.toString.call(s)?w(w({},s),{code:c,message:u}):{data:s,code:c,message:u};p(u?f:s)}o({_code:d,message:u,data:s})}}))}))},k=t(0),P=function(){return(P=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function S(e){if(window.WebViewJavascriptBridge)return e(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return e(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout((function(){document.documentElement.removeChild(n)}),0)}var T=function(e,n){return new Promise((function(t,o){var a=P({},n);S((function(s){n.control&&s.registerHandler(e,(function(e){var o=n.onSuccess;delete a.onSuccess,"function"==typeof o&&(o(e),t({code:"0",message:"success"}))})),s.callHandler(e,n,(function(s){var c=s.code,u=s.message,d=s.data,l=parseInt(c),p=b(l),f=a[p];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:d,_code:l,message:u,callbackFun:f}),"onFail"===p)return Object(i.a)({method:e,errorcode:l,message:u||JSON.stringify(d)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(u?{code:c,message:u}:d),void o({_code:l,message:u,data:d});"function"==typeof f&&f(d||u),t({_code:l,message:u,data:d})}))}))}))},z=function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}))},C=function(e,n){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},I=Object(o.a)(),M=I.platform,j=new m(I);!function(){var e=this,n={platform:M,authMethod:"config",bridgeInit:"pc"===M?function(){return z(e,void 0,void 0,(function(){return C(this,(function(e){return h.a.init(),[2,y]}))}))}:function(){return new Promise((function(e,n){S((function(n){Object(r.a)("注册resume事件 "),n.registerHandler("resume",(function(e){Object(r.a)("resume监听到回调,相关参数 ",{resData:e}),k.a.execEvent("resume",e)})),Object(r.a)("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){Object(r.a)("unreadMsgAction监听到回调,相关参数 ",{resData:e}),k.a.execEvent("unreadMsgAction",e)})),Object(r.a)("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){Object(r.a)("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),k.a.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){Object(r.a)("pushWorkMsg监听到回调,相关参数 ",{resData:e}),k.a.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){Object(r.a)("getTogetherCallback监听到回调,相关参数 ",{resData:e}),k.a.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){Object(r.a)("sendMsgCommon ",{resData:e}),k.a.execEvent("sendMsgCommon",e)})),n.registerHandler("toolbarClickEvent",(function(e,n){Object(r.a)("toolbarClickEvent ",{resData:e});var t={data:e,callback:n};k.a.execEvent("toolbarClickEvent",t)})),e()}))})).then((function(){return T}))},event:{on:function(e,n){k.a.on(e,n)},off:function(e,n){k.a.off(e,n)}}};j.setPlatform(n)}();var x={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var O=function(e,n){var t=n.params,o=void 0===t?{}:t,i=n.platform,r=void 0===i?x:i;j.setAPI(e,r),j.invokeAPI(e,o)};function E(e){O("biz.util.openLink",{params:e})}function F(e){O("biz.util.feedback",{params:e})}function A(e){O("biz.util.open",{params:e})}var D={pc:{vs:"0.0.0"}};function R(e){O("biz.util.openSlidePanel",{params:e,platform:D})}var V={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function W(e){O("biz.util.share",{params:e,platform:V})}function B(e){O("biz.util.previewFile",{params:e})}function L(e){O("biz.util.previewImage",{params:e})}function _(e){O("biz.util.downloadFile",{params:e})}function N(e){O("biz.util.uploadAttachment",{params:e})}function H(e){O("biz.util.clipboardFileUpload",{params:e})}function U(e){O("biz.util.proxy",{params:e})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(e){O("biz.util.datepicker",{params:e,platform:J})}var q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function G(e){O("biz.util.datetimepicker",{params:e,platform:q})}var K={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $(e){O("biz.util.scan",{params:e,platform:K})}var X={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Z(e){O("biz.map.view",{params:e,platform:X})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ee(e){O("biz.map.multipointView",{params:e,platform:Q})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function te(e){O("biz.util.chosen",{params:e,platform:ne})}var oe={pc:{vs:"0.0.0"}};function ie(e){O("biz.util.openSingleWebview",{params:e,platform:oe})}function re(e){O("biz.util.getSingleWebviewData",{params:e})}function ae(e){O("biz.util.injectScript",{params:e})}var se={pc:{vs:"0.0.0"}};function ce(e){O("biz.util.closeWindow",{params:e,platform:se})}var ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function de(e){O("biz.util.remind",{params:e,platform:ue})}function le(e){O("biz.util.takePicture",{params:e})}var pe={pc:{vs:"1.9.13"},ios:{vs:"1.9.13"},android:{vs:"1.9.13"}};function fe(e){O("biz.util.openAudioPlayer",{params:e,platform:pe})}var ve={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function me(e){O("biz.util.openVideoPlayer",{params:e,platform:ve})}function he(e){O("biz.util.openMediaFileDialog",{params:e})}function ge(e){O("biz.util.mediaFileUpload",{params:e})}function be(e){O("biz.util.invoice",{params:e})}function we(e){O("biz.util.pushWorkMsg",{params:e})}function ye(e){O("biz.util.openTalYoungToTopic",{params:e})}var ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pe(e){O("biz.util.getToken",{params:e,platform:ke})}var Se={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Te(e){O("biz.util.authStart",{params:e,platform:Se})}var ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ce(e){O("biz.util.authFinish",{params:e,platform:ze})}var Ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Me(e){O("biz.util.assistantCreate",{params:e,platform:Ie})}var je={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function xe(e){O("biz.util.yachEvent",{params:e,platform:je})}var Oe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ee(e){O("biz.util.topicEvent",{params:e,platform:Oe})}var Fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ae(e){O("biz.util.openTogetherEyeWebview",{params:e,platform:Fe})}var De={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Re(e){O("biz.util.getTogetherConfig",{params:e,platform:De})}function Ve(e){O("biz.util.rouseApp",{params:e})}function We(e){O("biz.util.externalLinkPreviewFile",{params:e})}var Be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Le(e){O("biz.util.zfbAuth",{params:e,platform:Be})}var _e={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ne(e){O("biz.util.savePic",{params:e,platform:_e})}function He(e){O("biz.util.complain",{params:e})}function Ue(e){O("biz.util.selectDepartment",{params:e})}var Je={pc:{vs:"0.0.0"}};function Ye(e){O("biz.util.createModifySchedule",{params:e,platform:Je})}var qe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ge(e){O("biz.util.openUserSchedule",{params:e,platform:qe})}var Ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function $e(e){O("onlineDocmentOpenTeamChat",{params:e,platform:Ke})}var Xe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function Ze(e){O("biz.util.entergroupCheck",{params:e,platform:Xe})}var Qe={pc:{vs:"1.8.0"}};function en(e){O("biz.util.resetSessionUnread",{params:e,platform:Qe})}var nn={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function tn(e){O("biz.util.weeklyRead",{params:e,platform:nn})}var on={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rn(e){O("biz.util.disableScreenCapture",{params:e,platform:on})}var an={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function sn(e){O("biz.util.openFutureGroup",{params:e,platform:an})}var cn={pc:{vs:"1.8.8"},ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function un(e){O("biz.util.knowledgeBaseSelect",{params:e,platform:cn})}var dn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function ln(e){O("biz.util.knowledgeSelectParams",{params:e,platform:dn})}var pn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fn(e){O("biz.util.lorebaseShowList",{params:e,platform:pn})}var vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mn(e){O("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:vn})}var hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function gn(e){O("biz.util.copy",{params:e,platform:hn})}var bn={pc:{vs:"1.8.8"}};function wn(e){O("biz.util.openPublish",{params:e,platform:bn})}var yn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function kn(e){O("biz.util.getConfig",{params:e,platform:yn})}var Pn={pc:{vs:"1.9.13"},ios:{vs:"1.9.13"},android:{vs:"1.9.13"}};function Sn(e){O("biz.util.focus",{params:e,platform:Pn})}var Tn=function(){return(Tn=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function zn(e){return function(n){return Tn(Tn({},e),n)}}var Cn=zn({control:!0,showIcon:!0,iconIndex:1}),In={ios:{vs:"0.0.0",paramsDeal:Cn},android:{vs:"0.0.0",paramsDeal:Cn}};function Mn(e){O("biz.navigation.setIcon",{params:e,platform:In})}function jn(e){O("biz.navigation.setTitle",{params:e})}var xn=zn({control:!0}),On={ios:{vs:"0.0.0",paramsDeal:xn},android:{vs:"0.0.0",paramsDeal:xn}};function En(e){O("biz.navigation.setMenu",{params:e,platform:On})}function Fn(e){O("biz.navigation.close",{params:e})}function An(e){O("biz.navigation.replace",{params:e})}var Dn={pc:{vs:"0.0.0"}};function Rn(e){O("biz.navigation.quit",{params:e,platform:Dn})}var Vn=zn({show:!0,control:!1,text:""}),Wn={ios:{vs:"0.0.0",paramsDeal:Vn},android:{vs:"0.0.0",paramsDeal:Vn},pc:{vs:"0.0.0"}};function Bn(e){O("biz.navigation.setRight",{params:e,platform:Wn})}var Ln=zn({control:!0}),_n={ios:{vs:"0.0.0",paramsDeal:Ln},android:{vs:"0.0.0",paramsDeal:Ln}};function Nn(e){O("biz.navigation.setTitleExpandIcon",{params:e,platform:_n})}function Hn(e){O("biz.navigation.updateExpandTitle",{params:e})}var Un=zn({show:!0,control:!1,text:""}),Jn={ios:{vs:"0.0.0",paramsDeal:Un},android:{vs:"0.0.0",paramsDeal:Un},pc:{vs:"0.0.0"}};function Yn(e){O("biz.navigation.setLeft",{params:e,platform:Jn})}var qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gn(e){O("biz.navigation.goBack",{params:e,platform:qn})}var Kn={pc:{vs:"0.0.0"}};function $n(e){O("biz.navigation.setWindowBig",{params:e,platform:Kn})}function Xn(e){O("biz.navigation.tencentMeeting",{params:e})}function Zn(e){O("biz.navigation.tencentMeetingBegin",{params:e})}var Qn=zn({nativePanEnable:!0,webPanEnable:!0}),et={ios:{vs:"0.0.0",paramsDeal:Qn},android:{vs:"0.0.0",paramsDeal:Qn}};function nt(e){O("biz.navigation.setPanGestureEnable",{params:e,platform:et})}function tt(e){O("biz.contact.complexPicker",{params:e})}function ot(e){O("biz.contact.departmentsPicker",{params:e})}function it(e){O("biz.group.groupComplexPicker",{params:e})}function rt(e){O("biz.chat.chooseConversationByCorpId",{params:e})}var at={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function st(e){O("biz.chat.pickConversation",{params:e,platform:at})}function ct(e){O("biz.chat.openSingleChat",{params:e})}function ut(e){O("biz.chat.openTeamChat",{params:e})}function dt(e){O("biz.chat.openSquad",{params:e})}function lt(e){O("biz.chat.sendP2PMsg",{params:e})}var pt={pc:{vs:"0.0.0"}};function ft(e){O("primary.createTab",{params:e,platform:pt})}var vt={pc:{vs:"1.9.12"}};function mt(e){O("primary.updateTab",{params:e,platform:vt})}var ht={pc:{vs:"0.0.0"}};function gt(e){O("primary.weeklyShare",{params:e,platform:ht})}var bt={pc:{vs:"0.0.0"}};function wt(e){O("primary.fullScreen",{params:e,platform:bt})}var yt={pc:{vs:"0.0.0"}};function kt(e){O("primary.exitFullScreen",{params:e,platform:yt})}function Pt(e){O("runtime.permission.requestAuthCode",{params:e})}var St={vs:"1.9.9"},Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:St};function zt(e){O("device.notification.showPreloader",{params:e,platform:Tt})}function Ct(e){O("device.notification.showCustomOverlayContent",{params:e,platform:{pc:St}})}var It={vs:"1.9.9"},Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:It};function jt(e){O("device.notification.hidePreloader",{params:e,platform:Mt})}function xt(e){O("device.notification.hideCustomOverlayContent",{params:e,platform:{pc:It}})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(e){O("device.notification.vibrate",{params:e,platform:Ot})}function Ft(e){O("device.notification.toast",{params:e})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Dt(e){O("device.notification.actionSheet",{params:e,platform:At})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vt(e){O("device.base.getPhoneInfo",{params:e,platform:Rt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Bt(e){O("device.notification.alert",{params:e,platform:Wt})}var Lt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function _t(e){O("device.notification.confirm",{params:e,platform:Lt})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ht(e){O("device.geolocation.get",{params:e,platform:Nt})}var Ut={android:{vs:"0.0.0"}};function Jt(e){O("device.geolocation.getSwitch",{params:e,platform:Ut})}function Yt(e){O("device.system.getLang",{params:e})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(e){O("device.audio.startRecord",{params:e,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(e){O("device.audio.stopRecord",{params:e,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(e){O("device.audio.onRecordEnd",{params:e,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(e){O("device.audio.download",{params:e,platform:Qt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(e){O("device.audio.play",{params:e,platform:no})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function io(e){O("device.audio.pause",{params:e,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(e){O("device.audio.stop",{params:e,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(e){O("device.audio.onPlayEnd",{params:e,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lo(e){O("device.audio.resume",{params:e,platform:uo})}var po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fo(e){O("device.connection.getNetworkType",{params:e,platform:po})}var vo={pc:{vs:"0.0.0"}};function mo(e){O("device.connection.isAtTal",{params:e,platform:vo})}var ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function go(e){O("device.base.getUUID",{params:e,platform:ho})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(e){O("device.base.checkStepPermission",{params:e,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(e){O("device.audio.onRecordEnd_v2",{params:e,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(e){O("device.audio.startRecord_v2",{params:e,platform:Po})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function zo(e){O("device.audio.stopRecord_v2",{params:e,platform:To})}var Co={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(e){O("device.system.setLight",{params:e,platform:Co})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jo(e){O("biz.telephone.showCallMenu",{params:e,platform:Mo})}var xo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oo(e){O("biz.telephone.call",{params:e,platform:xo})}var Eo={ios:{vs:"0.0.0"}};function Fo(e){O("ui.webViewBounce.disable",{params:e,platform:Eo})}var Ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Do(e){O("ui.pullToRefresh.enable",{params:e,platform:Ao})}var Ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vo(e){O("ui.pullToRefresh.stop",{params:e,platform:Ro})}var Wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bo(e){O("ui.pullToRefresh.disable",{params:e,platform:Wo})}var Lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _o(e){O("util.domainStorage.getItem",{params:e,platform:Lo})}var No={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ho(e){O("util.domainStorage.setItem",{params:e,platform:No})}var Uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Jo(e){O("util.domainStorage.removeItem",{params:e,platform:Uo})}var Yo={pc:{vs:"1.7.0"}};function qo(e){O("util.tool.writeLog",{params:e,platform:Yo})}var Go={pc:{vs:"1.7.0"}};function Ko(e){O("util.tool.flushLog",{params:e,platform:Go})}var $o={pc:{vs:"1.9.9"}};function Xo(e){O("biz.util.capturePage",{params:e,platform:$o})}var Zo={ios:{vs:"0.0.0"}};function Qo(e){O("biz.webViewMessage.send",{params:e,platform:Zo})}function ei(e){O("app.custom.talYoungFilesUpload",{params:e})}var ni={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function ti(e){O("biz.util.addAppToNav",{params:e,platform:ni})}console.log("add rouseApp ------------\x3e",Ve);var oi=j.exportSdk,ii=oi.version,ri=oi.sdkVersion,ai=oi.env,si=oi.platform,ci=oi.platformV2,ui=oi.config,di=oi.ready,li=oi.error,pi=oi.on,fi=oi.off;n.default={version:ii,sdkVersion:ri,env:ai,platform:si,platformV2:ci,config:ui,ready:di,error:li,on:pi,off:fi,biz:{util:{openLink:E,feedback:F,focus:Sn,open:A,openSlidePanel:R,share:W,previewFile:B,previewImage:L,downloadFile:_,uploadAttachment:N,clipboardFileUpload:H,proxy:U,datepicker:Y,datetimepicker:G,scan:$,chosen:te,openSingleWebview:ie,getSingleWebviewData:re,injectScript:ae,onlineDocmentOpenTeamChat:$e,entergroupCheck:Ze,resetSessionUnread:en,weeklyRead:tn,openFutureGroup:sn,closeWindow:ce,remind:de,takePicture:le,openAudioPlayer:fe,openVideoPlayer:me,openMediaFileDialog:he,mediaFileUpload:ge,invoice:be,pushWorkMsg:we,openTalYoungToTopic:ye,getToken:Pe,authStart:Te,authFinish:Ce,assistantCreate:Me,yachEvent:xe,topicEvent:Ee,openTogetherEyeWebview:Ae,getTogetherConfig:Re,rouseApp:Ve,externalLinkPreviewFile:We,savePic:Ne,zfbAuth:Le,complain:He,selectDepartment:Ue,createModifySchedule:Ye,openUserSchedule:Ge,disableScreenCapture:rn,addAppToNav:ti,knowledgeBaseSelect:un,knowledgeSelectParams:ln,lorebaseShowList:fn,lorebaseRefreshNodeWebview:mn,copy:gn,openPublish:wn,capturePage:Xo,getConfig:kn},telephone:{showCallMenu:jo,call:Oo},navigation:{setIcon:Mn,setTitle:jn,setMenu:En,close:Fn,replace:An,quit:Rn,setRight:Bn,setTitleExpandIcon:Nn,updateExpandTitle:Hn,setLeft:Yn,goBack:Gn,setWindowBig:$n,tencentMeeting:Xn,tencentMeetingBegin:Zn,setPanGestureEnable:nt},contact:{complexPicker:tt,departmentsPicker:ot},group:{groupComplexPicker:it},chat:{chooseConversationByCorpId:rt,pickConversation:st,openSingleChat:ct,openTeamChat:ut,openSquad:dt,sendP2PMsg:lt},map:{view:Z,multipointView:ee},webViewMessage:{send:Qo}},runtime:{permission:{requestAuthCode:Pt}},primary:{createTab:ft,updateTab:mt,weeklyShare:gt,fullScreen:wt,exitFullScreen:kt},device:{notification:{showPreloader:zt,showCustomOverlayContent:Ct,hidePreloader:jt,hideCustomOverlayContent:xt,vibrate:Et,toast:Ft,alert:Bt,confirm:_t,actionSheet:Dt},base:{getPhoneInfo:Vt,getUUID:go,checkStepPermission:wo},geolocation:{get:Ht,getSwitch:Jt},system:{getLang:Yt,setLight:Io},audio:{startRecord:Gt,stopRecord:$t,onRecordEnd:Zt,download:eo,play:to,pause:io,stop:ao,onPlayEnd:co,resume:lo,onRecordEnd_v2:ko,startRecord_v2:So,stopRecord_v2:zo},connection:{getNetworkType:fo,isAtTal:mo}},ui:{webViewBounce:{disable:Fo},pullToRefresh:{enable:Do,stop:Vo,disable:Bo}},util:{domainStorage:{getItem:_o,setItem:Ho,removeItem:Jo},tool:{writeLog:qo,flushLog:Ko}},app:{custom:{talYoungFilesUpload:ei}}}}]).default;
|
package/es/api/biz/util/focus.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var pc = {
|
|
3
|
-
vs: '1.9.13'
|
|
4
|
-
};
|
|
5
|
-
var ios = {
|
|
6
|
-
vs: '1.9.13'
|
|
7
|
-
};
|
|
8
|
-
var android = {
|
|
9
|
-
vs: '1.9.13'
|
|
10
|
-
};
|
|
11
|
-
var platform = {
|
|
12
|
-
pc: pc,
|
|
13
|
-
ios: ios,
|
|
14
|
-
android: android
|
|
15
|
-
};
|
|
16
|
-
var apiName = 'biz.util.focus';
|
|
17
|
-
function focus(params) {
|
|
18
|
-
initAPI(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { focus };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilopenAudioPlayerParams {
|
|
3
|
-
/**
|
|
4
|
-
* 播放地址
|
|
5
|
-
*/
|
|
6
|
-
url?: string;
|
|
7
|
-
/**
|
|
8
|
-
* 腾讯云所返回,可根据 relationId 获取到视频资源
|
|
9
|
-
*/
|
|
10
|
-
relationId?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
size?: number;
|
|
13
|
-
onSuccess?: () => void;
|
|
14
|
-
onFail?: (err: IError) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function openAudioPlayer(params: IBizUtilopenAudioPlayerParams): void;
|
|
17
|
-
export { openAudioPlayer };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var apiName = 'biz.util.openAudioPlayer';
|
|
3
|
-
var pc = {
|
|
4
|
-
vs: '1.9.13'
|
|
5
|
-
};
|
|
6
|
-
var ios = {
|
|
7
|
-
vs: '1.9.13'
|
|
8
|
-
};
|
|
9
|
-
var android = {
|
|
10
|
-
vs: '1.9.13'
|
|
11
|
-
};
|
|
12
|
-
var platform = {
|
|
13
|
-
pc: pc,
|
|
14
|
-
ios: ios,
|
|
15
|
-
android: android
|
|
16
|
-
};
|
|
17
|
-
function openAudioPlayer(params) {
|
|
18
|
-
initAPI(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { openAudioPlayer };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilopenAudioPlayerParams {
|
|
3
|
-
/**
|
|
4
|
-
* 播放地址
|
|
5
|
-
*/
|
|
6
|
-
url?: string;
|
|
7
|
-
/**
|
|
8
|
-
* 腾讯云所返回,可根据 relationId 获取到视频资源
|
|
9
|
-
*/
|
|
10
|
-
relationId?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
size?: number;
|
|
13
|
-
onSuccess?: () => void;
|
|
14
|
-
onFail?: (err: IError) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function openAudioPlayer(params: IBizUtilopenAudioPlayerParams): void;
|
|
17
|
-
export { openAudioPlayer };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.openAudioPlayer = openAudioPlayer;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var apiName = 'biz.util.openAudioPlayer';
|
|
11
|
-
var pc = {
|
|
12
|
-
vs: '1.9.13'
|
|
13
|
-
};
|
|
14
|
-
var ios = {
|
|
15
|
-
vs: '1.9.13'
|
|
16
|
-
};
|
|
17
|
-
var android = {
|
|
18
|
-
vs: '1.9.13'
|
|
19
|
-
};
|
|
20
|
-
var platform = {
|
|
21
|
-
pc: pc,
|
|
22
|
-
ios: ios,
|
|
23
|
-
android: android
|
|
24
|
-
};
|
|
25
|
-
function openAudioPlayer(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params,
|
|
28
|
-
platform: platform
|
|
29
|
-
});
|
|
30
|
-
}
|