yach.open.jssdk 4.1.22 → 4.1.24-beta1
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.1.24-beta1.js +1 -0
- package/es/lib/bridge/mobile.js +3 -3
- package/es/lib/bridge/pc.js +1 -1
- package/es/lib/helper/event.js +6 -7
- package/es/lib/helper/pcIframe.d.ts +12 -1
- package/es/lib/helper/pcIframe.js +93 -58
- package/es/lib/sdk/index.js +2 -2
- package/es/utils/console.js +2 -1
- package/es/utils/index.js +1 -1
- package/libs/api/app/custom/talYoungFilesUpload.js +2 -2
- package/libs/api/biz/chat/chooseConversationByCorpId.js +2 -2
- package/libs/api/biz/chat/openSingleChat.js +2 -2
- package/libs/api/biz/chat/openSquad.js +2 -2
- package/libs/api/biz/chat/openTeamChat.js +2 -2
- package/libs/api/biz/chat/pickConversation.js +2 -2
- package/libs/api/biz/chat/sendP2PMsg.js +2 -2
- package/libs/api/biz/contact/complexPicker.js +2 -2
- package/libs/api/biz/contact/departmentsPicker.js +2 -2
- package/libs/api/biz/group/groupComplexPicker.js +2 -2
- package/libs/api/biz/map/multipointView.js +2 -2
- package/libs/api/biz/map/view.js +2 -2
- package/libs/api/biz/navigation/close.js +2 -2
- package/libs/api/biz/navigation/goBack.js +2 -2
- package/libs/api/biz/navigation/quit.js +2 -2
- package/libs/api/biz/navigation/replace.js +2 -2
- package/libs/api/biz/navigation/setIcon.js +2 -2
- package/libs/api/biz/navigation/setLeft.js +2 -2
- package/libs/api/biz/navigation/setMenu.js +2 -2
- package/libs/api/biz/navigation/setRight.js +2 -2
- package/libs/api/biz/navigation/setTitle.js +2 -2
- package/libs/api/biz/navigation/setTitleExpandIcon.js +2 -2
- package/libs/api/biz/navigation/setWindowBig.js +2 -2
- package/libs/api/biz/navigation/updateExpandTitle.js +2 -2
- package/libs/api/biz/telephone/call.js +2 -2
- package/libs/api/biz/telephone/showCallMenu.js +2 -2
- package/libs/api/biz/util/authFinish.js +2 -2
- package/libs/api/biz/util/authStart.js +2 -2
- package/libs/api/biz/util/chosen.js +2 -2
- package/libs/api/biz/util/clipboardFileUpload.js +2 -2
- package/libs/api/biz/util/closeWindow.js +2 -2
- package/libs/api/biz/util/complain.js +2 -2
- package/libs/api/biz/util/createModifySchedule.js +2 -2
- package/libs/api/biz/util/datepicker.js +2 -2
- package/libs/api/biz/util/datetimepicker.js +2 -2
- package/libs/api/biz/util/downloadFile.js +2 -2
- package/libs/api/biz/util/externalLinkPreviewFile.js +2 -2
- package/libs/api/biz/util/feedback.js +2 -2
- package/libs/api/biz/util/getSingleWebviewData.js +2 -2
- package/libs/api/biz/util/getTogetherConfig.js +2 -2
- package/libs/api/biz/util/getToken.js +2 -2
- package/libs/api/biz/util/invoice.js +2 -2
- package/libs/api/biz/util/mediaFileUpload.js +2 -2
- package/libs/api/biz/util/open.js +2 -2
- package/libs/api/biz/util/openLink.js +2 -2
- package/libs/api/biz/util/openMediaFileDialog.js +2 -2
- package/libs/api/biz/util/openSingleWebview.js +2 -2
- package/libs/api/biz/util/openSlidePanel.js +2 -2
- package/libs/api/biz/util/openTalYoungToTopic.js +2 -2
- package/libs/api/biz/util/openTogetherEyeWebview.js +2 -2
- package/libs/api/biz/util/openVideoPlayer.js +2 -2
- package/libs/api/biz/util/previewFile.js +2 -2
- package/libs/api/biz/util/previewImage.js +2 -2
- package/libs/api/biz/util/proxy.js +2 -2
- package/libs/api/biz/util/pushWorkMsg.js +2 -2
- package/libs/api/biz/util/remind.js +2 -2
- package/libs/api/biz/util/rouseApp.js +2 -2
- package/libs/api/biz/util/savePic.js +2 -2
- package/libs/api/biz/util/scan.js +2 -2
- package/libs/api/biz/util/selectDepartment.js +2 -2
- package/libs/api/biz/util/share.js +2 -2
- package/libs/api/biz/util/takePicture.js +2 -2
- package/libs/api/biz/util/uploadAttachment.js +2 -2
- package/libs/api/biz/util/zfbAuth.js +2 -2
- package/libs/api/biz/webViewMessage/send.js +2 -2
- package/libs/api/device/audio/download.js +2 -2
- package/libs/api/device/audio/onPlayEnd.js +2 -2
- package/libs/api/device/audio/onRecordEnd.js +2 -2
- package/libs/api/device/audio/onRecordEnd_v2.js +2 -2
- package/libs/api/device/audio/pause.js +2 -2
- package/libs/api/device/audio/play.js +2 -2
- package/libs/api/device/audio/resume.js +2 -2
- package/libs/api/device/audio/startRecord.js +2 -2
- package/libs/api/device/audio/startRecord_v2.js +2 -2
- package/libs/api/device/audio/stop.js +2 -2
- package/libs/api/device/audio/stopRecord.js +2 -2
- package/libs/api/device/audio/stopRecord_v2.js +2 -2
- package/libs/api/device/base/checkStepPermission.js +2 -2
- package/libs/api/device/base/getPhoneInfo.js +2 -2
- package/libs/api/device/base/getUUID.js +2 -2
- package/libs/api/device/connection/getNetworkType.js +2 -2
- package/libs/api/device/connection/isAtTal.js +2 -2
- package/libs/api/device/geolocation/get.js +2 -2
- package/libs/api/device/geolocation/getSwitch.js +2 -2
- package/libs/api/device/notification/actionSheet.js +2 -2
- package/libs/api/device/notification/alert.js +2 -2
- package/libs/api/device/notification/confirm.js +2 -2
- package/libs/api/device/notification/hidePreloader.js +2 -2
- package/libs/api/device/notification/showPreloader.js +2 -2
- package/libs/api/device/notification/toast.js +2 -2
- package/libs/api/device/notification/vibrate.js +2 -2
- package/libs/api/device/system/getLang.js +2 -2
- package/libs/api/device/system/setLight.js +2 -2
- package/libs/api/primary/createTab.js +2 -2
- package/libs/api/primary/weeklyShare.js +2 -2
- package/libs/api/runtime/permission/requestAuthCode.js +2 -2
- package/libs/api/ui/pullToRefresh/disable.js +2 -2
- package/libs/api/ui/pullToRefresh/enable.js +2 -2
- package/libs/api/ui/pullToRefresh/stop.js +2 -2
- package/libs/api/ui/webViewBounce/disable.js +2 -2
- package/libs/api/util/domainStorage/getItem.js +2 -2
- package/libs/api/util/domainStorage/removeItem.js +2 -2
- package/libs/api/util/domainStorage/setItem.js +2 -2
- package/libs/index.js +204 -218
- package/libs/lib/bridge/index.js +7 -7
- package/libs/lib/bridge/mobile.js +6 -6
- package/libs/lib/bridge/pc.js +5 -5
- package/libs/lib/helper/apiHelper.js +2 -2
- package/libs/lib/helper/codeMap.js +2 -2
- package/libs/lib/helper/event.js +8 -9
- package/libs/lib/helper/pcIframe.d.ts +12 -1
- package/libs/lib/helper/pcIframe.js +95 -61
- package/libs/lib/index.js +2 -2
- package/libs/lib/sdk/index.js +4 -4
- package/libs/utils/console.js +3 -3
- package/libs/utils/index.js +10 -10
- package/package.json +2 -2
- package/dist/yach_jssdk_4.1.22.js +0 -1
|
@@ -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=1)}([function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.1.24-beta1","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","prepublish":"npm run upload-cdn","postpublish":"yach open https://www.npmjs.com/package/yach.open.jssdk","upload-cdn":"npm run build && node ./upload/upload.js","lint":"eslint \'src/**/*.{js,ts}\'","lint-fix":"eslint --fix \'src/**/*.{js,ts}\'","p:beta":"npm publish --tag=beta --access public"},"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.8.3","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1"}}')},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=o.notInYach;return t&&(c=o.ios),i&&(c=o.android),r&&(c=o.pc),{platform:c,platformV2:{inYach:n,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s},version:((e.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*"}}function r(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")}t.r(n),t.d(n,"version",(function(){return Jt})),t.d(n,"sdkVersion",(function(){return Kt})),t.d(n,"env",(function(){return Gt})),t.d(n,"platform",(function(){return $t})),t.d(n,"platformV2",(function(){return Zt})),t.d(n,"config",(function(){return Qt})),t.d(n,"ready",(function(){return Xt})),t.d(n,"error",(function(){return eo})),t.d(n,"on",(function(){return no})),t.d(n,"off",(function(){return to})),t.d(n,"openLink",(function(){return A})),t.d(n,"feedback",(function(){return D})),t.d(n,"open",(function(){return F})),t.d(n,"openSlidePanel",(function(){return E})),t.d(n,"share",(function(){return W})),t.d(n,"previewFile",(function(){return R})),t.d(n,"previewImage",(function(){return B})),t.d(n,"downloadFile",(function(){return _})),t.d(n,"uploadAttachment",(function(){return O})),t.d(n,"clipboardFileUpload",(function(){return H})),t.d(n,"proxy",(function(){return L})),t.d(n,"datepicker",(function(){return U})),t.d(n,"scan",(function(){return K})),t.d(n,"chosen",(function(){return ee})),t.d(n,"openSingleWebview",(function(){return te})),t.d(n,"getSingleWebviewData",(function(){return oe})),t.d(n,"closeWindow",(function(){return re})),t.d(n,"showCallMenu",(function(){return Tt})),t.d(n,"call",(function(){return Mt})),t.d(n,"setIcon",(function(){return Oe})),t.d(n,"setTitle",(function(){return He})),t.d(n,"setMenu",(function(){return Ue})),t.d(n,"close",(function(){return qe})),t.d(n,"replacePage",(function(){return Ye})),t.d(n,"quit",(function(){return Ke})),t.d(n,"setRight",(function(){return Ze})),t.d(n,"setTitleExpandIcon",(function(){return en})),t.d(n,"updateExpandTitle",(function(){return nn})),t.d(n,"setLeft",(function(){return rn})),t.d(n,"goBack",(function(){return sn})),t.d(n,"complexPicker",(function(){return dn})),t.d(n,"departmentsPicker",(function(){return ln})),t.d(n,"groupComplexPicker",(function(){return pn})),t.d(n,"chooseConversationByCorpId",(function(){return fn})),t.d(n,"pickConversation",(function(){return mn})),t.d(n,"openSingleChat",(function(){return gn})),t.d(n,"openTeamChat",(function(){return hn})),t.d(n,"openSquad",(function(){return bn})),t.d(n,"sendP2PMsg",(function(){return wn})),t.d(n,"mapView",(function(){return $})),t.d(n,"multipointView",(function(){return Q})),t.d(n,"requestAuthCode",(function(){return Sn})),t.d(n,"createTab",(function(){return kn})),t.d(n,"weeklyShare",(function(){return In})),t.d(n,"showPreloader",(function(){return Tn})),t.d(n,"hidePreloader",(function(){return Mn})),t.d(n,"vibrate",(function(){return An})),t.d(n,"toast",(function(){return Dn})),t.d(n,"alert",(function(){return Rn})),t.d(n,"confirm",(function(){return _n})),t.d(n,"getPhoneInfo",(function(){return jn})),t.d(n,"getUUID",(function(){return vt})),t.d(n,"checkStepPermission",(function(){return gt})),t.d(n,"getGeolocation",(function(){return Hn})),t.d(n,"getGeolocationSwitch",(function(){return Nn})),t.d(n,"getLang",(function(){return Un})),t.d(n,"startRecord",(function(){return Yn})),t.d(n,"stopRecord",(function(){return Kn})),t.d(n,"onRecordEnd",(function(){return $n})),t.d(n,"downloadAudio",(function(){return Qn})),t.d(n,"playAudio",(function(){return et})),t.d(n,"pauseAudio",(function(){return tt})),t.d(n,"stopAudio",(function(){return it})),t.d(n,"onPlayEnd",(function(){return at})),t.d(n,"resumeAudio",(function(){return ct})),t.d(n,"getNetworkType",(function(){return dt})),t.d(n,"isAtTal",(function(){return pt})),t.d(n,"webViewBounceDisable",(function(){return At})),t.d(n,"pullToRefreshEnable",(function(){return Ft})),t.d(n,"pullToRefreshStop",(function(){return Et})),t.d(n,"pullToRefreshDisable",(function(){return Wt})),t.d(n,"getItem",(function(){return Bt})),t.d(n,"setItem",(function(){return Ot})),t.d(n,"removeItem",(function(){return Lt})),t.d(n,"remind",(function(){return se})),t.d(n,"takePicture",(function(){return ce})),t.d(n,"datetimepicker",(function(){return Y})),t.d(n,"actionSheet",(function(){return Vn})),t.d(n,"webViewMessageSend",(function(){return Ut})),t.d(n,"talYoungFilesUpload",(function(){return qt})),t.d(n,"openVideoPlayer",(function(){return de})),t.d(n,"openMediaFileDialog",(function(){return le})),t.d(n,"mediaFileUpload",(function(){return pe})),t.d(n,"invoice",(function(){return fe})),t.d(n,"pushWorkMsg",(function(){return ve})),t.d(n,"openTalYoungToTopic",(function(){return me})),t.d(n,"getToken",(function(){return he})),t.d(n,"authStart",(function(){return we})),t.d(n,"authFinish",(function(){return ke})),t.d(n,"openTogetherEyeWebview",(function(){return Ie})),t.d(n,"getTogetherConfig",(function(){return ze})),t.d(n,"rouseApp",(function(){return Te})),t.d(n,"externalLinkPreviewFile",(function(){return Ce})),t.d(n,"savePic",(function(){return De})),t.d(n,"zfbAuth",(function(){return xe})),t.d(n,"complain",(function(){return Fe})),t.d(n,"onRecordEnd_v2",(function(){return bt})),t.d(n,"startRecord_v2",(function(){return yt})),t.d(n,"stopRecord_v2",(function(){return Pt})),t.d(n,"selectDepartment",(function(){return Ve})),t.d(n,"setWindowBig",(function(){return un})),t.d(n,"createModifySchedule",(function(){return je})),t.d(n,"setLight",(function(){return St})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInYach="notInYach"}(o||(o={}));var a=function(){return(a=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){var n=i().version,t=Date.now(),o=a({group:"yach",project:"yach_31_jssdk",env:"test",version:n,timestamp:t},e);console.log("jssdk 项目 bpit 上报数据:",o),r(o)}var c=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:t(0).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.invokeAPI=function(e,n){if(n||(n={}),e){var t=this.invokeAPIConfigMapByMethod[e];if(!t)return s({method:e,errorcode:"-1",message:e+" do not exist"}),void n.onFail({code:"-1",message:e+" do not exist"});var o=t[this.env.platform];if(o){var i=o.paramsDeal?o.paramsDeal(n):n;if("function"==typeof i.onSuccess){var r=i.onSuccess;i.onSuccess=function(e){r(e)}}this.bridgeInitFn().then((function(n){n(e,i).then((function(){})).catch((function(e){}))})).catch((function(e){console.log("wenai err",e)}))}else"function"==typeof n.onFail&&(s({method:e,errorcode:"-1",message:e+" do not support the current platform ("+this.env.platform+")"}),n.onFail({code:"-1",message:e+" do not support the current platform ("+this.env.platform+")"}))}},e}(),u={log:function(){},warn:function(){},error:function(){}};if(window&&window.console&&(u=window.console),document&&document.body){var d=document.createElement("iframe");d&&d.contentWindow&&d.contentWindow.console&&(d.style.display="none",document.body.appendChild(d),u=d.contentWindow.console)}var l=u.log.bind(u),p=(u.warn.bind(u),u.error.bind(u),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function f(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return l("%c Yach-jssdk log: ",p,e)}var v=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={}},m=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,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.callback=t},g=new function(){var e=this;this.addPending=function(n){e.pendingMsgs[n.id]=n},this.deletePending=function(n){delete e.pendingMsgs[n.id]},this.getPending=function(e){return this.pendingMsgs[e]},this.invokeAPIInBrowserView=function(e){window.sendTo(e)},this.invokeAPIInWebview=function(e){window.sendToHost(e)},this.invokeAPI=function(n,t,o){var i=new m(n,t,o),r=JSON.stringify(i.getPayload()),a=t.invokeType;return"browserView"===(void 0===a?"":a)?e.invokeAPIInBrowserView(r):e.invokeAPIInWebview(r),e.addPending(i),i},this.handleCallback=function(n,t){var o=n.type,i=n.methodName,r=n.eventName,a=n.msgId,s=n.data,c=n.code,u=n.message;if("request"===o)switch(i){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":v.execEvent(r,s);break;case"zoomInClick":var d=document.documentElement.scrollTop||document.body.scrollTop,l=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:l,title:s&&s.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:l,title:s&&s.title}}))}else if("response"===o){var p=e.getPending(a);p&&p.receiveResponse({data:s,code:c,message:u}),-3!=c&&e.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(n){f("electron res: ",n),e.handleCallback(n.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(n,t){return e.handleCallback(t)}))},this.pendingMsgs={}},h=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function b(e){return h.get(e)||"onFail"}var w=function(e,n){return new Promise((function(t){return g.invokeAPI(e,n,(function(o){var i=o.data,r=o.code,a=o.message,c=parseInt(r),u=b(c);-2===c&&s({method:e,errorcode:c,message:a||"SDK执行失败回调,相关参数"});var d=n[u];f("SDK执行后回调,相关参数 ",{method:e,param:n,data:i,_code:c,message:a,callbackFun:d}),"function"==typeof d&&d(i||a),t({_code:c,message:a,data:i})}))}))},y=function(){return(y=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 k(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 P=function(e,n){return new Promise((function(t,o){var i=y({},n);k((function(r){n.control&&r.registerHandler(e,(function(e){var o=n.onSuccess;delete i.onSuccess,"function"==typeof o&&(o(e),t({code:"0",message:"success"}))})),r.callHandler(e,n,(function(r){var a=r.code,c=r.message,u=r.data,d=parseInt(a),l=b(d);-2!==d&&7!==d||(s({method:e,errorcode:d,message:c||"SDK执行失败回调,相关参数"}),f("SDK执行后回调,相关参数 ",{method:e,param:n,data:u,_code:d,message:c}),o({_code:d,message:c}));var p=i[l];f("SDK执行后回调,相关参数 ",{method:e,param:n,data:u,_code:d,message:c,callbackFun:p}),"function"==typeof p&&p(u||c),t({_code:d,message:c,data:u})}))}))}))},I=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())}))},S=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])}}},z=i(),T=z.platform,C=new c(z);!function(){var e=this,n={platform:T,authMethod:"config",bridgeInit:"pc"===T?function(){return I(e,void 0,void 0,(function(){return S(this,(function(e){return g.init(),[2,w]}))}))}:function(){return new Promise((function(e,n){k((function(n){f("注册resume事件 "),n.registerHandler("resume",(function(e){f("resume监听到回调,相关参数 ",{resData:e}),v.execEvent("resume",e)})),f("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){f("unreadMsgAction监听到回调,相关参数 ",{resData:e}),v.execEvent("unreadMsgAction",e)})),f("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){f("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),v.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){f("pushWorkMsg监听到回调,相关参数 ",{resData:e}),v.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){f("getTogetherCallback监听到回调,相关参数 ",{resData:e}),v.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){f("sendMsgCommon ",{resData:e}),v.execEvent("sendMsgCommon",e)})),e()}))})).then((function(){return P}))},event:{on:function(e,n){v.on(e,n)},off:function(e,n){v.off(e,n)}}};C.setPlatform(n)}();var M={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?M:i;C.setAPI(e,r),C.invokeAPI(e,o)};function A(e){x("biz.util.openLink",{params:e})}function D(e){x("biz.util.feedback",{params:e})}function F(e){x("biz.util.open",{params:e})}var V={pc:{vs:"0.0.0"}};function E(e){x("biz.util.openSlidePanel",{params:e,platform:V})}var j={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function W(e){x("biz.util.share",{params:e,platform:j})}function R(e){x("biz.util.previewFile",{params:e})}function B(e){x("biz.util.previewImage",{params:e})}function _(e){x("biz.util.downloadFile",{params:e})}function O(e){x("biz.util.uploadAttachment",{params:e})}function H(e){x("biz.util.clipboardFileUpload",{params:e})}function L(e){x("biz.util.proxy",{params:e})}var N={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function U(e){x("biz.util.datepicker",{params:e,platform:N})}var q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(e){x("biz.util.datetimepicker",{params:e,platform:q})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function K(e){x("biz.util.scan",{params:e,platform:J})}var G={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $(e){x("biz.map.view",{params:e,platform:G})}var Z={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Q(e){x("biz.map.multipointView",{params:e,platform:Z})}var X={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ee(e){x("biz.util.chosen",{params:e,platform:X})}var ne={pc:{vs:"0.0.0"}};function te(e){x("biz.util.openSingleWebview",{params:e,platform:ne})}function oe(e){x("biz.util.getSingleWebviewData",{params:e})}var ie={pc:{vs:"0.0.0"}};function re(e){x("biz.util.closeWindow",{params:e,platform:ie})}var ae={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function se(e){x("biz.util.remind",{params:e,platform:ae})}function ce(e){x("biz.util.takePicture",{params:e})}var ue={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function de(e){x("biz.util.openVideoPlayer",{params:e,platform:ue})}function le(e){x("biz.util.openMediaFileDialog",{params:e})}function pe(e){x("biz.util.mediaFileUpload",{params:e})}function fe(e){x("biz.util.invoice",{params:e})}function ve(e){x("biz.util.pushWorkMsg",{params:e})}function me(e){x("biz.util.openTalYoungToTopic",{params:e})}var ge={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function he(e){x("biz.util.getToken",{params:e,platform:ge})}var be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function we(e){x("biz.util.authStart",{params:e,platform:be})}var ye={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ke(e){x("biz.util.authFinish",{params:e,platform:ye})}var Pe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ie(e){x("biz.util.openTogetherEyeWebview",{params:e,platform:Pe})}var Se={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function ze(e){x("biz.util.getTogetherConfig",{params:e,platform:Se})}function Te(e){x("biz.util.rouseApp",{params:e})}function Ce(e){x("biz.util.externalLinkPreviewFile",{params:e})}var Me={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xe(e){x("biz.util.zfbAuth",{params:e,platform:Me})}var Ae={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function De(e){x("biz.util.savePic",{params:e,platform:Ae})}function Fe(e){x("biz.util.complain",{params:e})}function Ve(e){x("biz.util.selectDepartment",{params:e})}var Ee={pc:{vs:"0.0.0"}};function je(e){x("biz.util.createModifySchedule",{params:e,platform:Ee})}var We=function(){return(We=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 Re(e){return function(n){return We(We({},e),n)}}var Be=Re({control:!0,showIcon:!0,iconIndex:1}),_e={ios:{vs:"0.0.0",paramsDeal:Be},android:{vs:"0.0.0",paramsDeal:Be}};function Oe(e){x("biz.navigation.setIcon",{params:e,platform:_e})}function He(e){x("biz.navigation.setTitle",{params:e})}var Le=Re({control:!0}),Ne={ios:{vs:"0.0.0",paramsDeal:Le},android:{vs:"0.0.0",paramsDeal:Le}};function Ue(e){x("biz.navigation.setMenu",{params:e,platform:Ne})}function qe(e){x("biz.navigation.close",{params:e})}function Ye(e){x("biz.navigation.replace",{params:e})}var Je={pc:{vs:"0.0.0"}};function Ke(e){x("biz.navigation.quit",{params:e,platform:Je})}var Ge=Re({show:!0,control:!1,text:""}),$e={ios:{vs:"0.0.0",paramsDeal:Ge},android:{vs:"0.0.0",paramsDeal:Ge},pc:{vs:"0.0.0"}};function Ze(e){x("biz.navigation.setRight",{params:e,platform:$e})}var Qe=Re({control:!0}),Xe={ios:{vs:"0.0.0",paramsDeal:Qe},android:{vs:"0.0.0",paramsDeal:Qe}};function en(e){x("biz.navigation.setTitleExpandIcon",{params:e,platform:Xe})}function nn(e){x("biz.navigation.updateExpandTitle",{params:e})}var tn=Re({show:!0,control:!1,text:""}),on={ios:{vs:"0.0.0",paramsDeal:tn},android:{vs:"0.0.0",paramsDeal:tn},pc:{vs:"0.0.0"}};function rn(e){x("biz.navigation.setLeft",{params:e,platform:on})}var an={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function sn(e){x("biz.navigation.goBack",{params:e,platform:an})}var cn={pc:{vs:"0.0.0"}};function un(e){x("biz.navigation.setWindowBig",{params:e,platform:cn})}function dn(e){x("biz.contact.complexPicker",{params:e})}function ln(e){x("biz.contact.departmentsPicker",{params:e})}function pn(e){x("biz.group.groupComplexPicker",{params:e})}function fn(e){x("biz.chat.chooseConversationByCorpId",{params:e})}var vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mn(e){x("biz.chat.pickConversation",{params:e,platform:vn})}function gn(e){x("biz.chat.openSingleChat",{params:e})}function hn(e){x("biz.chat.openTeamChat",{params:e})}function bn(e){x("biz.chat.openSquad",{params:e})}function wn(e){x("biz.chat.sendP2PMsg",{params:e})}var yn={pc:{vs:"0.0.0"}};function kn(e){x("primary.createTab",{params:e,platform:yn})}var Pn={pc:{vs:"0.0.0"}};function In(e){x("primary.weeklyShare",{params:e,platform:Pn})}function Sn(e){x("runtime.permission.requestAuthCode",{params:e})}var zn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Tn(e){x("device.notification.showPreloader",{params:e,platform:zn})}var Cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mn(e){x("device.notification.hidePreloader",{params:e,platform:Cn})}var xn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function An(e){x("device.notification.vibrate",{params:e,platform:xn})}function Dn(e){x("device.notification.toast",{params:e})}var Fn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vn(e){x("device.notification.actionSheet",{params:e,platform:Fn})}var En={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jn(e){x("device.base.getPhoneInfo",{params:e,platform:En})}var Wn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Rn(e){x("device.notification.alert",{params:e,platform:Wn})}var Bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function _n(e){x("device.notification.confirm",{params:e,platform:Bn})}var On={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Hn(e){x("device.geolocation.get",{params:e,platform:On})}var Ln={android:{vs:"0.0.0"}};function Nn(e){x("device.geolocation.getSwitch",{params:e,platform:Ln})}function Un(e){x("device.system.getLang",{params:e})}var qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yn(e){x("device.audio.startRecord",{params:e,platform:qn})}var Jn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Kn(e){x("device.audio.stopRecord",{params:e,platform:Jn})}var Gn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $n(e){x("device.audio.onRecordEnd",{params:e,platform:Gn})}var Zn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Qn(e){x("device.audio.download",{params:e,platform:Zn})}var Xn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function et(e){x("device.audio.play",{params:e,platform:Xn})}var nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function tt(e){x("device.audio.pause",{params:e,platform:nt})}var ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function it(e){x("device.audio.stop",{params:e,platform:ot})}var rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function at(e){x("device.audio.onPlayEnd",{params:e,platform:rt})}var st={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ct(e){x("device.audio.resume",{params:e,platform:st})}var ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function dt(e){x("device.connection.getNetworkType",{params:e,platform:ut})}var lt={pc:{vs:"0.0.0"}};function pt(e){x("device.connection.isAtTal",{params:e,platform:lt})}var ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vt(e){x("device.base.getUUID",{params:e,platform:ft})}var mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function gt(e){x("device.base.checkStepPermission",{params:e,platform:mt})}var ht={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function bt(e){x("device.audio.onRecordEnd_v2",{params:e,platform:ht})}var wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yt(e){x("device.audio.startRecord_v2",{params:e,platform:wt})}var kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pt(e){x("device.audio.stopRecord_v2",{params:e,platform:kt})}var It={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function St(e){x("device.system.setLight",{params:e,platform:It})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Tt(e){x("biz.telephone.showCallMenu",{params:e,platform:zt})}var Ct={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mt(e){x("biz.telephone.call",{params:e,platform:Ct})}var xt={ios:{vs:"0.0.0"}};function At(e){x("ui.webViewBounce.disable",{params:e,platform:xt})}var Dt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ft(e){x("ui.pullToRefresh.enable",{params:e,platform:Dt})}var Vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(e){x("ui.pullToRefresh.stop",{params:e,platform:Vt})}var jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Wt(e){x("ui.pullToRefresh.disable",{params:e,platform:jt})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(e){x("util.domainStorage.getItem",{params:e,platform:Rt})}var _t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ot(e){x("util.domainStorage.setItem",{params:e,platform:_t})}var Ht={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(e){x("util.domainStorage.removeItem",{params:e,platform:Ht})}var Nt={ios:{vs:"0.0.0"}};function Ut(e){x("biz.webViewMessage.send",{params:e,platform:Nt})}function qt(e){x("app.custom.talYoungFilesUpload",{params:e})}console.log("add rouseApp ------------\x3e",Te);var Yt=C.exportSdk,Jt=Yt.version,Kt=Yt.sdkVersion,Gt=Yt.env,$t=Yt.platform,Zt=Yt.platformV2,Qt=Yt.config,Xt=Yt.ready,eo=Yt.error,no=Yt.on,to=Yt.off;n.default={version:Jt,sdkVersion:Kt,env:Gt,platform:$t,platformV2:Zt,config:Qt,ready:Xt,error:eo,on:no,off:to,biz:{util:{openLink:A,feedback:D,open:F,openSlidePanel:E,share:W,previewFile:R,previewImage:B,downloadFile:_,uploadAttachment:O,clipboardFileUpload:H,proxy:L,datepicker:U,datetimepicker:Y,scan:K,chosen:ee,openSingleWebview:te,getSingleWebviewData:oe,closeWindow:re,remind:se,takePicture:ce,openVideoPlayer:de,openMediaFileDialog:le,mediaFileUpload:pe,invoice:fe,pushWorkMsg:ve,openTalYoungToTopic:me,getToken:he,authStart:we,authFinish:ke,openTogetherEyeWebview:Ie,getTogetherConfig:ze,rouseApp:Te,externalLinkPreviewFile:Ce,savePic:De,zfbAuth:xe,complain:Fe,selectDepartment:Ve,createModifySchedule:je},telephone:{showCallMenu:Tt,call:Mt},navigation:{setIcon:Oe,setTitle:He,setMenu:Ue,close:qe,replace:Ye,quit:Ke,setRight:Ze,setTitleExpandIcon:en,updateExpandTitle:nn,setLeft:rn,goBack:sn,setWindowBig:un},contact:{complexPicker:dn,departmentsPicker:ln},group:{groupComplexPicker:pn},chat:{chooseConversationByCorpId:fn,pickConversation:mn,openSingleChat:gn,openTeamChat:hn,openSquad:bn,sendP2PMsg:wn},map:{view:$,multipointView:Q},webViewMessage:{send:Ut}},runtime:{permission:{requestAuthCode:Sn}},primary:{createTab:kn,weeklyShare:In},device:{notification:{showPreloader:Tn,hidePreloader:Mn,vibrate:An,toast:Dn,alert:Rn,confirm:_n,actionSheet:Vn},base:{getPhoneInfo:jn,getUUID:vt,checkStepPermission:gt},geolocation:{get:Hn,getSwitch:Nn},system:{getLang:Un,setLight:St},audio:{startRecord:Yn,stopRecord:Kn,onRecordEnd:$n,download:Qn,play:et,pause:tt,stop:it,onPlayEnd:at,resume:ct,onRecordEnd_v2:bt,startRecord_v2:yt,stopRecord_v2:Pt},connection:{getNetworkType:dt,isAtTal:pt}},ui:{webViewBounce:{disable:At},pullToRefresh:{enable:Ft,stop:Et,disable:Wt}},util:{domainStorage:{getItem:Bt,setItem:Ot,removeItem:Lt}},app:{custom:{talYoungFilesUpload:qt}}}}]).default;
|
package/es/lib/bridge/mobile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _setTimeout from "@babel/runtime-corejs3/core-js/set-timeout";
|
|
2
|
-
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
3
|
-
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
4
1
|
import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
|
|
2
|
+
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
3
|
+
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
4
|
+
import _setTimeout from "@babel/runtime-corejs3/core-js/set-timeout";
|
|
5
5
|
import Event from '../helper/event';
|
|
6
6
|
import { electronResCodeMap } from '../helper/codeMap';
|
|
7
7
|
import { log, bpitLog } from '../../utils';
|
package/es/lib/bridge/pc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
2
1
|
import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
|
|
2
|
+
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
3
3
|
import PcIframe from '../helper/pcIframe';
|
|
4
4
|
import { electronResCodeMap } from '../helper/codeMap';
|
|
5
5
|
import { log, bpitLog } from '../../utils';
|
package/es/lib/helper/event.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
2
|
-
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
3
|
-
import _Array$isArray from "@babel/runtime-corejs3/core-js/array/is-array";
|
|
4
|
-
import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of";
|
|
5
|
-
import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/splice";
|
|
6
1
|
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js/instance/for-each";
|
|
2
|
+
import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/splice";
|
|
3
|
+
import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of";
|
|
4
|
+
import _Array$isArray from "@babel/runtime-corejs3/core-js/array/is-array";
|
|
5
|
+
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
7
6
|
|
|
8
|
-
var Event =
|
|
7
|
+
var Event = function Event() {
|
|
9
8
|
var _this = this;
|
|
10
9
|
|
|
11
10
|
_classCallCheck(this, Event);
|
|
@@ -47,7 +46,7 @@ var Event = /*#__PURE__*/_createClass(function Event() {
|
|
|
47
46
|
};
|
|
48
47
|
|
|
49
48
|
this.eventsHandle = {};
|
|
50
|
-
}
|
|
49
|
+
};
|
|
51
50
|
|
|
52
51
|
var event = new Event();
|
|
53
52
|
export default event;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
interface Window {
|
|
3
3
|
sendToHost: any;
|
|
4
|
+
sendTo: any;
|
|
5
|
+
receiveBrowserViewData: any;
|
|
4
6
|
}
|
|
5
7
|
}
|
|
8
|
+
interface APIParams {
|
|
9
|
+
invokeType?: 'browserView' | '';
|
|
10
|
+
[propName: string]: any;
|
|
11
|
+
}
|
|
6
12
|
declare class GenPostMsg {
|
|
7
13
|
private id;
|
|
8
14
|
private PromiseObj;
|
|
@@ -10,7 +16,8 @@ declare class GenPostMsg {
|
|
|
10
16
|
private plainMsg;
|
|
11
17
|
callback: (v: any) => void;
|
|
12
18
|
result: Promise<any>;
|
|
13
|
-
|
|
19
|
+
invokeType: 'browserView' | '';
|
|
20
|
+
constructor(method: string, param: APIParams, callback: any);
|
|
14
21
|
genid: () => string;
|
|
15
22
|
receiveResponse: (data: any) => void;
|
|
16
23
|
getPayload: () => {
|
|
@@ -18,6 +25,7 @@ declare class GenPostMsg {
|
|
|
18
25
|
methodName: string;
|
|
19
26
|
body: object;
|
|
20
27
|
type: string;
|
|
28
|
+
invokeType: "" | "browserView";
|
|
21
29
|
};
|
|
22
30
|
}
|
|
23
31
|
declare class Frame {
|
|
@@ -26,7 +34,10 @@ declare class Frame {
|
|
|
26
34
|
addPending: (e: any) => void;
|
|
27
35
|
deletePending: (e: any) => void;
|
|
28
36
|
getPending: (t: any) => any;
|
|
37
|
+
invokeAPIInBrowserView: (payload: string) => void;
|
|
38
|
+
invokeAPIInWebview: (payload: string) => void;
|
|
29
39
|
invokeAPI: (method: string, param: any, callback: any) => GenPostMsg;
|
|
40
|
+
handleCallback: (datas: any, invokeType?: 'browserView' | '') => void;
|
|
30
41
|
init: () => void;
|
|
31
42
|
}
|
|
32
43
|
declare const frame: Frame;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
2
|
-
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
3
|
-
import _Date$now from "@babel/runtime-corejs3/core-js/date/now";
|
|
4
1
|
import _JSON$stringify from "@babel/runtime-corejs3/core-js/json/stringify";
|
|
2
|
+
import _Date$now from "@babel/runtime-corejs3/core-js/date/now";
|
|
3
|
+
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
5
4
|
import { log } from '../../utils';
|
|
6
5
|
import Event from './event'; // 处理posmessage参数
|
|
7
6
|
|
|
8
|
-
var GenPostMsg =
|
|
7
|
+
var GenPostMsg = function GenPostMsg(method, param, callback) {
|
|
9
8
|
var _this = this;
|
|
10
9
|
|
|
11
10
|
_classCallCheck(this, GenPostMsg);
|
|
@@ -27,7 +26,8 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
|
|
|
27
26
|
msgId: _this.id,
|
|
28
27
|
methodName: _this.methodName,
|
|
29
28
|
body: _this.plainMsg,
|
|
30
|
-
type: 'request'
|
|
29
|
+
type: 'request',
|
|
30
|
+
invokeType: _this.invokeType
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -38,6 +38,7 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
|
|
|
38
38
|
};
|
|
39
39
|
this.methodName = method;
|
|
40
40
|
this.plainMsg = param;
|
|
41
|
+
this.invokeType = param === null || param === void 0 ? void 0 : param.invokeType;
|
|
41
42
|
this.callback = callback; // this.result = new Promise(
|
|
42
43
|
// function (resolve, reject) {
|
|
43
44
|
// this.PromiseObj = {
|
|
@@ -46,9 +47,9 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
|
|
|
46
47
|
// };
|
|
47
48
|
// }.bind(this)
|
|
48
49
|
// );
|
|
49
|
-
}
|
|
50
|
+
};
|
|
50
51
|
|
|
51
|
-
var Frame =
|
|
52
|
+
var Frame = function Frame() {
|
|
52
53
|
var _this2 = this;
|
|
53
54
|
|
|
54
55
|
_classCallCheck(this, Frame);
|
|
@@ -65,49 +66,71 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
|
|
|
65
66
|
return this.pendingMsgs[t];
|
|
66
67
|
};
|
|
67
68
|
|
|
69
|
+
this.invokeAPIInBrowserView = function (payload) {
|
|
70
|
+
window.sendTo(payload);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
this.invokeAPIInWebview = function (payload) {
|
|
74
|
+
window.sendToHost(payload);
|
|
75
|
+
};
|
|
76
|
+
|
|
68
77
|
this.invokeAPI = function (method, param, callback) {
|
|
69
78
|
var genPostMsg = new GenPostMsg(method, param, callback);
|
|
70
|
-
|
|
79
|
+
|
|
80
|
+
var payload = _JSON$stringify(genPostMsg.getPayload());
|
|
81
|
+
|
|
82
|
+
var _param$invokeType = param.invokeType,
|
|
83
|
+
invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
|
|
84
|
+
invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(payload) : _this2.invokeAPIInWebview(payload);
|
|
71
85
|
|
|
72
86
|
_this2.addPending(genPostMsg);
|
|
73
87
|
|
|
74
88
|
return genPostMsg;
|
|
75
89
|
};
|
|
76
90
|
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
91
|
+
this.handleCallback = function (datas, invokeType) {
|
|
92
|
+
var type = datas.type,
|
|
93
|
+
methodName = datas.methodName,
|
|
94
|
+
eventName = datas.eventName,
|
|
95
|
+
msgId = datas.msgId,
|
|
96
|
+
data = datas.data,
|
|
97
|
+
code = datas.code,
|
|
98
|
+
message = datas.message;
|
|
99
|
+
|
|
100
|
+
if (type === 'request') {
|
|
101
|
+
// 壳子的调用
|
|
102
|
+
switch (methodName) {
|
|
103
|
+
case 'refresh':
|
|
104
|
+
window.location.reload();
|
|
105
|
+
break;
|
|
106
|
+
|
|
107
|
+
case 'back':
|
|
108
|
+
window.history.back();
|
|
109
|
+
break;
|
|
110
|
+
|
|
111
|
+
case 'forward':
|
|
112
|
+
window.history.forward();
|
|
113
|
+
break;
|
|
114
|
+
|
|
115
|
+
case 'event':
|
|
116
|
+
Event.execEvent(eventName, data);
|
|
117
|
+
break;
|
|
118
|
+
|
|
119
|
+
case 'zoomInClick':
|
|
120
|
+
var scrollTopVal = document.documentElement.scrollTop || document.body.scrollTop,
|
|
121
|
+
url = window.location.href;
|
|
122
|
+
|
|
123
|
+
if (invokeType === 'browserView') {
|
|
124
|
+
window.sendTo(_JSON$stringify({
|
|
125
|
+
type: type,
|
|
126
|
+
methodName: methodName,
|
|
127
|
+
body: {
|
|
128
|
+
scrollTopVal: scrollTopVal,
|
|
129
|
+
url: url,
|
|
130
|
+
title: data && data.title
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
} else {
|
|
111
134
|
window.sendToHost(_JSON$stringify({
|
|
112
135
|
type: type,
|
|
113
136
|
methodName: methodName,
|
|
@@ -117,27 +140,39 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
|
|
|
117
140
|
title: data && data.title
|
|
118
141
|
}
|
|
119
142
|
}));
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
// 响应壳子的回调
|
|
127
|
-
var pending = _this2.getPending(msgId);
|
|
128
|
-
|
|
129
|
-
pending && pending.receiveResponse({
|
|
130
|
-
data: data,
|
|
131
|
-
code: code,
|
|
132
|
-
message: message
|
|
133
|
-
});
|
|
134
|
-
code != -3 && _this2.deletePending(msgId);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
break;
|
|
146
|
+
|
|
147
|
+
default:
|
|
148
|
+
break;
|
|
135
149
|
}
|
|
150
|
+
} else if (type === 'response') {
|
|
151
|
+
// 响应壳子的回调
|
|
152
|
+
var pending = _this2.getPending(msgId);
|
|
153
|
+
|
|
154
|
+
pending && pending.receiveResponse({
|
|
155
|
+
data: data,
|
|
156
|
+
code: code,
|
|
157
|
+
message: message
|
|
158
|
+
});
|
|
159
|
+
code != -3 && _this2.deletePending(msgId);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
this.init = function () {
|
|
164
|
+
window.addEventListener('message', function (msg) {
|
|
165
|
+
log('electron res: ', msg);
|
|
166
|
+
|
|
167
|
+
_this2.handleCallback(msg.data || {});
|
|
168
|
+
});
|
|
169
|
+
window.receiveBrowserViewData && window.receiveBrowserViewData(function (e, response) {
|
|
170
|
+
return _this2.handleCallback(response);
|
|
136
171
|
});
|
|
137
172
|
};
|
|
138
173
|
|
|
139
174
|
this.pendingMsgs = {};
|
|
140
|
-
}
|
|
175
|
+
};
|
|
141
176
|
|
|
142
177
|
var frame = new Frame();
|
|
143
178
|
export default frame;
|
package/es/lib/sdk/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
2
|
+
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
1
3
|
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
2
4
|
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
3
|
-
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
4
|
-
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
5
5
|
import { bpitLog } from '../../utils';
|
|
6
6
|
|
|
7
7
|
var Sdk = /*#__PURE__*/function () {
|
package/es/utils/console.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js/instance/bind";
|
|
2
|
+
|
|
1
3
|
var _context, _context2, _context3;
|
|
2
4
|
|
|
3
|
-
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js/instance/bind";
|
|
4
5
|
// 防止被应用复写console
|
|
5
6
|
var myconsole = {
|
|
6
7
|
log: function log() {},
|
package/es/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _Date$now from "@babel/runtime-corejs3/core-js/date/now";
|
|
2
1
|
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
2
|
+
import _Date$now from "@babel/runtime-corejs3/core-js/date/now";
|
|
3
3
|
import { getENV } from './env';
|
|
4
4
|
import bpitLog from './bpitLog';
|
|
5
5
|
import { log, error, warn } from './console';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
package/libs/api/biz/map/view.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|