yach.open.jssdk 4.4.4-beta.10 → 4.4.4-beta.12
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.4-beta.12.js +1 -0
- package/es/api/app/custom/talYoungFilesUpload.js +0 -2
- package/es/api/biz/chat/chooseConversationByCorpId.js +0 -2
- package/es/api/biz/chat/openSingleChat.js +0 -2
- package/es/api/biz/chat/openSquad.js +0 -2
- package/es/api/biz/chat/openTeamChat.js +0 -2
- package/es/api/biz/chat/pickConversation.js +0 -2
- package/es/api/biz/chat/sendP2PMsg.js +0 -2
- package/es/api/biz/contact/complexPicker.js +0 -2
- package/es/api/biz/contact/departmentsPicker.js +0 -2
- package/es/api/biz/group/groupComplexPicker.js +0 -2
- package/es/api/biz/map/multipointView.js +0 -2
- package/es/api/biz/map/view.js +0 -2
- package/es/api/biz/navigation/close.js +0 -2
- package/es/api/biz/navigation/goBack.js +0 -2
- package/es/api/biz/navigation/quit.js +0 -2
- package/es/api/biz/navigation/replace.js +0 -2
- package/es/api/biz/navigation/setIcon.js +0 -2
- package/es/api/biz/navigation/setLeft.js +0 -2
- package/es/api/biz/navigation/setMenu.js +0 -2
- package/es/api/biz/navigation/setPanGestureEnable.js +0 -2
- package/es/api/biz/navigation/setRight.js +0 -2
- package/es/api/biz/navigation/setTitle.js +0 -2
- package/es/api/biz/navigation/setTitleExpandIcon.js +0 -2
- package/es/api/biz/navigation/setWindowBig.js +0 -2
- package/es/api/biz/navigation/tencentMeeting.js +0 -2
- package/es/api/biz/navigation/tencentMeetingBegin.js +0 -2
- package/es/api/biz/navigation/updateExpandTitle.js +0 -2
- package/es/api/biz/telephone/call.js +0 -2
- package/es/api/biz/telephone/showCallMenu.js +0 -2
- package/es/api/biz/util/addAppToNav.js +0 -2
- package/es/api/biz/util/assistantCreate.js +0 -2
- package/es/api/biz/util/authFinish.js +0 -2
- package/es/api/biz/util/authStart.js +0 -2
- package/es/api/biz/util/chosen.js +0 -2
- package/es/api/biz/util/clipboardFileUpload.js +0 -2
- package/es/api/biz/util/closeWindow.js +0 -2
- package/es/api/biz/util/complain.js +0 -2
- package/es/api/biz/util/copy.js +0 -2
- package/es/api/biz/util/createModifySchedule.js +0 -2
- package/es/api/biz/util/datepicker.js +0 -2
- package/es/api/biz/util/datetimepicker.js +0 -2
- package/es/api/biz/util/disableScreenCapture.js +0 -2
- package/es/api/biz/util/downloadFile.js +0 -2
- package/es/api/biz/util/entergroupCheck.js +0 -2
- package/es/api/biz/util/externalLinkPreviewFile.js +0 -2
- package/es/api/biz/util/feedback.js +0 -2
- package/es/api/biz/util/getConfig.d.ts +13 -0
- package/es/api/biz/util/getConfig.js +19 -0
- package/es/api/biz/util/getSingleWebviewData.js +0 -2
- package/es/api/biz/util/getTogetherConfig.js +0 -2
- package/es/api/biz/util/getToken.js +0 -2
- package/es/api/biz/util/injectScript.js +0 -2
- package/es/api/biz/util/invoice.js +0 -2
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -2
- package/es/api/biz/util/knowledgeSelectParams.d.ts +5 -5
- package/es/api/biz/util/knowledgeSelectParams.js +0 -2
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -2
- package/es/api/biz/util/lorebaseShowList.js +0 -2
- package/es/api/biz/util/mediaFileUpload.js +0 -2
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -2
- package/es/api/biz/util/open.js +0 -2
- package/es/api/biz/util/openFutureGroup.js +0 -2
- package/es/api/biz/util/openLink.js +0 -2
- package/es/api/biz/util/openMediaFileDialog.js +0 -2
- package/es/api/biz/util/openPublish.js +0 -2
- package/es/api/biz/util/openSingleWebview.js +0 -2
- package/es/api/biz/util/openSlidePanel.js +0 -2
- package/es/api/biz/util/openTalYoungToTopic.js +0 -2
- package/es/api/biz/util/openTogetherEyeWebview.js +0 -2
- package/es/api/biz/util/openUserSchedule.js +0 -2
- package/es/api/biz/util/openVideoPlayer.js +0 -2
- package/es/api/biz/util/previewFile.js +0 -2
- package/es/api/biz/util/previewImage.js +0 -2
- package/es/api/biz/util/proxy.js +0 -2
- package/es/api/biz/util/pushWorkMsg.js +0 -2
- package/es/api/biz/util/remind.js +0 -2
- package/es/api/biz/util/resetSessionUnread.js +0 -2
- package/es/api/biz/util/rouseApp.js +0 -2
- package/es/api/biz/util/savePic.js +0 -2
- package/es/api/biz/util/scan.js +0 -2
- package/es/api/biz/util/screen.js +0 -2
- package/es/api/biz/util/selectDepartment.js +0 -2
- package/es/api/biz/util/share.js +0 -2
- package/es/api/biz/util/takePicture.js +0 -2
- package/es/api/biz/util/topicEvent.js +0 -2
- package/es/api/biz/util/uploadAttachment.js +0 -2
- package/es/api/biz/util/weeklyRead.js +0 -2
- package/es/api/biz/util/yachEvent.js +0 -2
- package/es/api/biz/util/zfbAuth.js +0 -2
- package/es/api/biz/webViewMessage/send.js +0 -2
- package/es/api/device/audio/download.js +0 -2
- package/es/api/device/audio/onPlayEnd.js +0 -2
- package/es/api/device/audio/onRecordEnd.js +0 -2
- package/es/api/device/audio/onRecordEnd_v2.js +0 -2
- package/es/api/device/audio/pause.js +0 -2
- package/es/api/device/audio/play.js +0 -2
- package/es/api/device/audio/resume.js +0 -2
- package/es/api/device/audio/startRecord.js +0 -2
- package/es/api/device/audio/startRecord_v2.js +0 -2
- package/es/api/device/audio/stop.js +0 -2
- package/es/api/device/audio/stopRecord.js +0 -2
- package/es/api/device/audio/stopRecord_v2.js +0 -2
- package/es/api/device/base/checkStepPermission.js +0 -2
- package/es/api/device/base/getPhoneInfo.js +0 -2
- package/es/api/device/base/getUUID.js +0 -2
- package/es/api/device/connection/getNetworkType.js +0 -2
- package/es/api/device/connection/isAtTal.js +2 -4
- package/es/api/device/geolocation/get.js +0 -2
- package/es/api/device/geolocation/getSwitch.js +0 -2
- package/es/api/device/notification/actionSheet.js +0 -2
- package/es/api/device/notification/alert.js +0 -2
- package/es/api/device/notification/confirm.js +0 -2
- package/es/api/device/notification/hidePreloader.js +0 -4
- package/es/api/device/notification/showPreloader.js +0 -4
- package/es/api/device/notification/toast.js +0 -2
- package/es/api/device/notification/vibrate.js +0 -2
- package/es/api/device/system/getLang.js +0 -2
- package/es/api/device/system/setLight.js +0 -2
- package/es/api/initAPI.js +3 -5
- package/es/api/primary/createTab.js +0 -2
- package/es/api/primary/exitFullScreen.js +0 -2
- package/es/api/primary/fullScreen.js +0 -2
- package/es/api/primary/updateTab.js +0 -2
- package/es/api/primary/weeklyShare.js +0 -2
- package/es/api/runtime/permission/requestAuthCode.js +0 -2
- package/es/api/ui/pullToRefresh/disable.js +0 -2
- package/es/api/ui/pullToRefresh/enable.js +0 -2
- package/es/api/ui/pullToRefresh/stop.js +0 -2
- package/es/api/ui/webViewBounce/disable.js +0 -2
- package/es/api/util/domainStorage/getItem.js +0 -2
- package/es/api/util/domainStorage/removeItem.js +0 -2
- package/es/api/util/domainStorage/setItem.js +0 -2
- package/es/api/util/tool/flushLog.js +0 -2
- package/es/api/util/tool/log.js +0 -2
- package/es/index.d.ts +3 -1
- package/es/index.js +20 -29
- package/es/lib/bridge/mobile.js +12 -27
- package/es/lib/bridge/pc.js +11 -18
- package/es/lib/helper/apiHelper.js +0 -2
- package/es/lib/helper/codeMap.js +0 -2
- package/es/lib/helper/event.js +7 -19
- package/es/lib/helper/pcIframe.js +23 -59
- package/es/lib/index.js +7 -21
- package/es/lib/sdk/index.js +16 -37
- package/es/lib/sdk/sdk.typings.js +0 -1
- package/es/utils/bpitLog.js +4 -13
- package/es/utils/compareVersions.js +26 -53
- package/es/utils/console.js +1 -17
- package/es/utils/env.js +13 -20
- package/es/utils/index.js +1 -6
- package/libs/api/app/custom/talYoungFilesUpload.js +2 -7
- package/libs/api/biz/chat/chooseConversationByCorpId.js +1 -7
- package/libs/api/biz/chat/openSingleChat.js +1 -7
- package/libs/api/biz/chat/openSquad.js +1 -7
- package/libs/api/biz/chat/openTeamChat.js +1 -7
- package/libs/api/biz/chat/pickConversation.js +1 -7
- package/libs/api/biz/chat/sendP2PMsg.js +1 -7
- package/libs/api/biz/contact/complexPicker.js +1 -7
- package/libs/api/biz/contact/departmentsPicker.js +1 -7
- package/libs/api/biz/group/groupComplexPicker.js +1 -7
- package/libs/api/biz/map/multipointView.js +1 -7
- package/libs/api/biz/map/view.js +1 -7
- package/libs/api/biz/navigation/close.js +1 -7
- package/libs/api/biz/navigation/goBack.js +1 -7
- package/libs/api/biz/navigation/quit.js +1 -7
- package/libs/api/biz/navigation/replace.js +1 -7
- package/libs/api/biz/navigation/setIcon.js +1 -8
- package/libs/api/biz/navigation/setLeft.js +1 -8
- package/libs/api/biz/navigation/setMenu.js +1 -8
- package/libs/api/biz/navigation/setPanGestureEnable.js +1 -8
- package/libs/api/biz/navigation/setRight.js +1 -8
- package/libs/api/biz/navigation/setTitle.js +1 -7
- package/libs/api/biz/navigation/setTitleExpandIcon.js +1 -8
- package/libs/api/biz/navigation/setWindowBig.js +2 -7
- package/libs/api/biz/navigation/tencentMeeting.js +1 -7
- package/libs/api/biz/navigation/tencentMeetingBegin.js +1 -7
- package/libs/api/biz/navigation/updateExpandTitle.js +1 -7
- package/libs/api/biz/telephone/call.js +1 -7
- package/libs/api/biz/telephone/showCallMenu.js +1 -7
- package/libs/api/biz/util/addAppToNav.js +1 -7
- package/libs/api/biz/util/assistantCreate.js +1 -7
- package/libs/api/biz/util/authFinish.js +1 -7
- package/libs/api/biz/util/authStart.js +1 -7
- package/libs/api/biz/util/chosen.js +1 -7
- package/libs/api/biz/util/clipboardFileUpload.js +1 -7
- package/libs/api/biz/util/closeWindow.js +1 -7
- package/libs/api/biz/util/complain.js +1 -7
- package/libs/api/biz/util/copy.js +1 -7
- package/libs/api/biz/util/createModifySchedule.js +1 -7
- package/libs/api/biz/util/datepicker.js +1 -7
- package/libs/api/biz/util/datetimepicker.js +1 -7
- package/libs/api/biz/util/disableScreenCapture.js +1 -7
- package/libs/api/biz/util/downloadFile.js +1 -7
- package/libs/api/biz/util/entergroupCheck.js +1 -7
- package/libs/api/biz/util/externalLinkPreviewFile.js +1 -7
- package/libs/api/biz/util/feedback.js +1 -7
- package/libs/api/biz/util/getConfig.d.ts +13 -0
- package/libs/api/biz/util/getConfig.js +26 -0
- package/libs/api/biz/util/getSingleWebviewData.js +1 -7
- package/libs/api/biz/util/getTogetherConfig.js +1 -7
- package/libs/api/biz/util/getToken.js +1 -7
- package/libs/api/biz/util/injectScript.js +1 -7
- package/libs/api/biz/util/invoice.js +2 -7
- package/libs/api/biz/util/knowledgeBaseSelect.js +1 -7
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +5 -5
- package/libs/api/biz/util/knowledgeSelectParams.js +1 -7
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +1 -7
- package/libs/api/biz/util/lorebaseShowList.js +1 -7
- package/libs/api/biz/util/mediaFileUpload.js +2 -7
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +1 -7
- package/libs/api/biz/util/open.js +1 -7
- package/libs/api/biz/util/openFutureGroup.js +1 -7
- package/libs/api/biz/util/openLink.js +1 -7
- package/libs/api/biz/util/openMediaFileDialog.js +2 -7
- package/libs/api/biz/util/openPublish.js +1 -7
- package/libs/api/biz/util/openSingleWebview.js +1 -7
- package/libs/api/biz/util/openSlidePanel.js +1 -7
- package/libs/api/biz/util/openTalYoungToTopic.js +2 -7
- package/libs/api/biz/util/openTogetherEyeWebview.js +1 -7
- package/libs/api/biz/util/openUserSchedule.js +1 -7
- package/libs/api/biz/util/openVideoPlayer.js +1 -7
- package/libs/api/biz/util/previewFile.js +1 -7
- package/libs/api/biz/util/previewImage.js +1 -7
- package/libs/api/biz/util/proxy.js +1 -7
- package/libs/api/biz/util/pushWorkMsg.js +2 -7
- package/libs/api/biz/util/remind.js +1 -7
- package/libs/api/biz/util/resetSessionUnread.js +1 -7
- package/libs/api/biz/util/rouseApp.js +2 -7
- package/libs/api/biz/util/savePic.js +1 -7
- package/libs/api/biz/util/scan.js +1 -7
- package/libs/api/biz/util/screen.js +1 -7
- package/libs/api/biz/util/selectDepartment.js +1 -7
- package/libs/api/biz/util/share.js +1 -7
- package/libs/api/biz/util/takePicture.js +1 -7
- package/libs/api/biz/util/topicEvent.js +1 -7
- package/libs/api/biz/util/uploadAttachment.js +1 -7
- package/libs/api/biz/util/weeklyRead.js +1 -7
- package/libs/api/biz/util/yachEvent.js +1 -7
- package/libs/api/biz/util/zfbAuth.js +1 -7
- package/libs/api/biz/webViewMessage/send.js +1 -7
- package/libs/api/device/audio/download.js +1 -7
- package/libs/api/device/audio/onPlayEnd.js +1 -7
- package/libs/api/device/audio/onRecordEnd.js +1 -7
- package/libs/api/device/audio/onRecordEnd_v2.js +1 -7
- package/libs/api/device/audio/pause.js +1 -7
- package/libs/api/device/audio/play.js +1 -7
- package/libs/api/device/audio/resume.js +1 -7
- package/libs/api/device/audio/startRecord.js +1 -7
- package/libs/api/device/audio/startRecord_v2.js +1 -7
- package/libs/api/device/audio/stop.js +1 -7
- package/libs/api/device/audio/stopRecord.js +1 -7
- package/libs/api/device/audio/stopRecord_v2.js +1 -7
- package/libs/api/device/base/checkStepPermission.js +1 -7
- package/libs/api/device/base/getPhoneInfo.js +1 -7
- package/libs/api/device/base/getUUID.js +1 -7
- package/libs/api/device/connection/getNetworkType.js +1 -7
- package/libs/api/device/connection/isAtTal.js +3 -9
- package/libs/api/device/geolocation/get.js +1 -7
- package/libs/api/device/geolocation/getSwitch.js +1 -7
- package/libs/api/device/notification/actionSheet.js +1 -7
- package/libs/api/device/notification/alert.js +1 -7
- package/libs/api/device/notification/confirm.js +1 -7
- package/libs/api/device/notification/hidePreloader.js +2 -10
- package/libs/api/device/notification/showPreloader.js +2 -10
- package/libs/api/device/notification/toast.js +1 -7
- package/libs/api/device/notification/vibrate.js +1 -7
- package/libs/api/device/system/getLang.js +1 -7
- package/libs/api/device/system/setLight.js +1 -7
- package/libs/api/initAPI.js +4 -13
- package/libs/api/primary/createTab.js +1 -7
- package/libs/api/primary/exitFullScreen.js +1 -7
- package/libs/api/primary/fullScreen.js +1 -7
- package/libs/api/primary/updateTab.js +1 -7
- package/libs/api/primary/weeklyShare.js +1 -7
- package/libs/api/runtime/permission/requestAuthCode.js +1 -7
- package/libs/api/ui/pullToRefresh/disable.js +1 -7
- package/libs/api/ui/pullToRefresh/enable.js +1 -7
- package/libs/api/ui/pullToRefresh/stop.js +1 -7
- package/libs/api/ui/webViewBounce/disable.js +1 -7
- package/libs/api/util/domainStorage/getItem.js +1 -7
- package/libs/api/util/domainStorage/removeItem.js +1 -7
- package/libs/api/util/domainStorage/setItem.js +1 -7
- package/libs/api/util/tool/flushLog.js +1 -7
- package/libs/api/util/tool/log.js +1 -7
- package/libs/index.d.ts +3 -1
- package/libs/index.js +287 -559
- package/libs/lib/bridge/index.js +6 -13
- package/libs/lib/bridge/mobile.js +16 -51
- package/libs/lib/bridge/pc.js +16 -37
- package/libs/lib/helper/apiHelper.js +1 -7
- package/libs/lib/helper/codeMap.js +1 -7
- package/libs/lib/helper/event.js +8 -28
- package/libs/lib/helper/pcIframe.js +22 -67
- package/libs/lib/index.js +9 -33
- package/libs/lib/sdk/index.js +17 -47
- package/libs/lib/sdk/sdk.typings.js +0 -4
- package/libs/utils/bpitLog.js +4 -16
- package/libs/utils/compareVersions.js +32 -77
- package/libs/utils/console.js +2 -18
- package/libs/utils/env.js +13 -22
- package/libs/utils/index.js +8 -21
- package/package.json +1 -1
- package/dist/yach_jssdk_4.4.4-beta.10.js +0 -1
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
|
-
exports.satisfies = exports.compare = exports.validate = exports.compareVersions = void 0;
|
|
12
|
-
|
|
13
|
-
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
|
|
14
|
-
|
|
15
|
-
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/keys"));
|
|
16
|
-
|
|
8
|
+
exports.validate = exports.satisfies = exports.compareVersions = exports.compare = void 0;
|
|
17
9
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
|
|
18
|
-
|
|
19
|
-
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
20
|
-
|
|
21
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
22
|
-
|
|
23
11
|
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/includes"));
|
|
24
|
-
|
|
12
|
+
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
13
|
+
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/keys"));
|
|
14
|
+
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
|
|
25
15
|
/**
|
|
26
16
|
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
|
|
27
17
|
* This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
|
|
@@ -29,23 +19,22 @@ var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/i
|
|
|
29
19
|
* @param v2 - Second version to compare
|
|
30
20
|
* @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
|
|
31
21
|
*/
|
|
32
|
-
var compareVersions = function compareVersions(v1, v2) {
|
|
22
|
+
var compareVersions = exports.compareVersions = function compareVersions(v1, v2) {
|
|
33
23
|
// validate input and split into segments
|
|
34
24
|
var n1 = validateAndParse(v1);
|
|
35
|
-
var n2 = validateAndParse(v2);
|
|
36
|
-
|
|
25
|
+
var n2 = validateAndParse(v2);
|
|
26
|
+
// pop off the patch
|
|
37
27
|
var p1 = n1.pop();
|
|
38
|
-
var p2 = n2.pop();
|
|
39
|
-
|
|
28
|
+
var p2 = n2.pop();
|
|
29
|
+
// validate numbers
|
|
40
30
|
var r = compareSegments(n1, n2);
|
|
41
|
-
if (r !== 0) return r;
|
|
42
|
-
|
|
31
|
+
if (r !== 0) return r;
|
|
32
|
+
// validate pre-release
|
|
43
33
|
if (p1 && p2) {
|
|
44
34
|
return compareSegments(p1.split('.'), p2.split('.'));
|
|
45
35
|
} else if (p1 || p2) {
|
|
46
36
|
return p1 ? -1 : 1;
|
|
47
37
|
}
|
|
48
|
-
|
|
49
38
|
return 0;
|
|
50
39
|
};
|
|
51
40
|
/**
|
|
@@ -61,11 +50,7 @@ var compareVersions = function compareVersions(v1, v2) {
|
|
|
61
50
|
* validate('foo'); // return false
|
|
62
51
|
* ```
|
|
63
52
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
exports.compareVersions = compareVersions;
|
|
67
|
-
|
|
68
|
-
var validate = function validate(version) {
|
|
53
|
+
var validate = exports.validate = function validate(version) {
|
|
69
54
|
return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
|
70
55
|
};
|
|
71
56
|
/**
|
|
@@ -85,17 +70,12 @@ var validate = function validate(version) {
|
|
|
85
70
|
* compare('10.1.1', '10.2.2', '>='); // return false
|
|
86
71
|
* ```
|
|
87
72
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
exports.validate = validate;
|
|
91
|
-
|
|
92
|
-
var compare = function compare(v1, v2, operator) {
|
|
73
|
+
var compare = exports.compare = function compare(v1, v2, operator) {
|
|
93
74
|
var _context;
|
|
94
|
-
|
|
95
75
|
// validate input operator
|
|
96
|
-
assertValidOperator(operator);
|
|
76
|
+
assertValidOperator(operator);
|
|
77
|
+
// since result of compareVersions can only be -1 or 0 or 1
|
|
97
78
|
// a simple map can be used to replace switch
|
|
98
|
-
|
|
99
79
|
var res = compareVersions(v1, v2);
|
|
100
80
|
return (0, _includes["default"])(_context = operatorResMap[operator]).call(_context, res);
|
|
101
81
|
};
|
|
@@ -112,92 +92,69 @@ var compare = function compare(v1, v2, operator) {
|
|
|
112
92
|
* satisfies('1.1.0', '~1.0.0'); // return false
|
|
113
93
|
* ```
|
|
114
94
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
exports.compare = compare;
|
|
118
|
-
|
|
119
|
-
var satisfies = function satisfies(version, range) {
|
|
95
|
+
var satisfies = exports.satisfies = function satisfies(version, range) {
|
|
120
96
|
// if no range operator then "="
|
|
121
97
|
var m = range.match(/^([<>=~^]+)/);
|
|
122
|
-
var op = m ? m[1] : '=';
|
|
123
|
-
|
|
124
|
-
if (op !== '^' && op !== '~') return compare(version, range, op);
|
|
125
|
-
|
|
98
|
+
var op = m ? m[1] : '=';
|
|
99
|
+
// if gt/lt/eq then operator compare
|
|
100
|
+
if (op !== '^' && op !== '~') return compare(version, range, op);
|
|
101
|
+
// else range of either "~" or "^" is assumed
|
|
126
102
|
var _validateAndParse = validateAndParse(version),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
103
|
+
_validateAndParse2 = (0, _slicedToArray2["default"])(_validateAndParse, 3),
|
|
104
|
+
v1 = _validateAndParse2[0],
|
|
105
|
+
v2 = _validateAndParse2[1],
|
|
106
|
+
v3 = _validateAndParse2[2];
|
|
132
107
|
var _validateAndParse3 = validateAndParse(range),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
108
|
+
_validateAndParse4 = (0, _slicedToArray2["default"])(_validateAndParse3, 3),
|
|
109
|
+
r1 = _validateAndParse4[0],
|
|
110
|
+
r2 = _validateAndParse4[1],
|
|
111
|
+
r3 = _validateAndParse4[2];
|
|
138
112
|
if (compareStrings(v1, r1) !== 0) return false;
|
|
139
|
-
|
|
140
113
|
if (op === '^') {
|
|
141
114
|
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
142
115
|
}
|
|
143
|
-
|
|
144
116
|
if (compareStrings(v2, r2) !== 0) return false;
|
|
145
117
|
return compareStrings(v3, r3) >= 0;
|
|
146
118
|
};
|
|
147
|
-
|
|
148
|
-
exports.satisfies = satisfies;
|
|
149
119
|
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
150
|
-
|
|
151
120
|
var validateAndParse = function validateAndParse(version) {
|
|
152
121
|
if (typeof version !== 'string') {
|
|
153
122
|
throw new TypeError('Invalid argument expected string');
|
|
154
123
|
}
|
|
155
|
-
|
|
156
124
|
var match = version.match(semver);
|
|
157
|
-
|
|
158
125
|
if (!match) {
|
|
159
126
|
throw new Error("Invalid argument not valid semver ('".concat(version, "' received)"));
|
|
160
127
|
}
|
|
161
|
-
|
|
162
128
|
match.shift();
|
|
163
129
|
return match;
|
|
164
130
|
};
|
|
165
|
-
|
|
166
131
|
var isWildcard = function isWildcard(s) {
|
|
167
132
|
return s === '*' || s === 'x' || s === 'X';
|
|
168
133
|
};
|
|
169
|
-
|
|
170
134
|
var tryParse = function tryParse(v) {
|
|
171
135
|
var n = (0, _parseInt2["default"])(v, 10);
|
|
172
136
|
return isNaN(n) ? v : n;
|
|
173
137
|
};
|
|
174
|
-
|
|
175
138
|
var forceType = function forceType(a, b) {
|
|
176
139
|
return (0, _typeof2["default"])(a) !== (0, _typeof2["default"])(b) ? [String(a), String(b)] : [a, b];
|
|
177
140
|
};
|
|
178
|
-
|
|
179
141
|
var compareStrings = function compareStrings(a, b) {
|
|
180
142
|
if (isWildcard(a) || isWildcard(b)) return 0;
|
|
181
|
-
|
|
182
143
|
var _forceType = forceType(tryParse(a), tryParse(b)),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
144
|
+
_forceType2 = (0, _slicedToArray2["default"])(_forceType, 2),
|
|
145
|
+
ap = _forceType2[0],
|
|
146
|
+
bp = _forceType2[1];
|
|
187
147
|
if (ap > bp) return 1;
|
|
188
148
|
if (ap < bp) return -1;
|
|
189
149
|
return 0;
|
|
190
150
|
};
|
|
191
|
-
|
|
192
151
|
var compareSegments = function compareSegments(a, b) {
|
|
193
152
|
for (var i = 0; i < Math.max(a.length, b.length); i++) {
|
|
194
153
|
var r = compareStrings(a[i] || '0', b[i] || '0');
|
|
195
154
|
if (r !== 0) return r;
|
|
196
155
|
}
|
|
197
|
-
|
|
198
156
|
return 0;
|
|
199
157
|
};
|
|
200
|
-
|
|
201
158
|
var operatorResMap = {
|
|
202
159
|
'>': [1],
|
|
203
160
|
'>=': [0, 1],
|
|
@@ -206,12 +163,10 @@ var operatorResMap = {
|
|
|
206
163
|
'<': [-1]
|
|
207
164
|
};
|
|
208
165
|
var allowedOperators = (0, _keys["default"])(operatorResMap);
|
|
209
|
-
|
|
210
166
|
var assertValidOperator = function assertValidOperator(op) {
|
|
211
167
|
if (typeof op !== 'string') {
|
|
212
168
|
throw new TypeError("Invalid operator type, expected string but got ".concat((0, _typeof2["default"])(op)));
|
|
213
169
|
}
|
|
214
|
-
|
|
215
170
|
if ((0, _indexOf["default"])(allowedOperators).call(allowedOperators, op) === -1) {
|
|
216
171
|
throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
|
|
217
172
|
}
|
package/libs/utils/console.js
CHANGED
|
@@ -1,69 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
|
-
exports.log = log;
|
|
12
8
|
exports.error = error;
|
|
9
|
+
exports.log = log;
|
|
13
10
|
exports.warn = warn;
|
|
14
|
-
|
|
15
11
|
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/bind"));
|
|
16
|
-
|
|
17
12
|
var _context, _context2, _context3;
|
|
18
|
-
|
|
19
13
|
// 防止被应用复写console
|
|
20
14
|
var myconsole = {
|
|
21
15
|
log: function log() {},
|
|
22
16
|
warn: function warn() {},
|
|
23
17
|
error: function error() {}
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
if (typeof window !== 'undefined' && window.console) {
|
|
27
20
|
myconsole = window.console;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
if (typeof document !== 'undefined' && document.body) {
|
|
31
23
|
var iframe = document.createElement('iframe');
|
|
32
|
-
|
|
33
24
|
if (iframe && iframe.contentWindow && iframe.contentWindow.console) {
|
|
34
25
|
iframe.style.display = 'none';
|
|
35
26
|
document.body.appendChild(iframe);
|
|
36
27
|
myconsole = iframe.contentWindow.console;
|
|
37
28
|
}
|
|
38
29
|
}
|
|
39
|
-
|
|
40
30
|
var myLog = (0, _bind["default"])(_context = myconsole.log).call(_context, myconsole);
|
|
41
31
|
var myWarn = (0, _bind["default"])(_context2 = myconsole.warn).call(_context2, myconsole);
|
|
42
32
|
var myError = (0, _bind["default"])(_context3 = myconsole.error).call(_context3, myconsole);
|
|
43
33
|
var style = 'color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;';
|
|
44
34
|
var styleError = "".concat(style, "background-color:red;");
|
|
45
35
|
var styleWarn = "".concat(style, "background-color:orange;");
|
|
46
|
-
|
|
47
36
|
function log() {
|
|
48
37
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
38
|
args[_key] = arguments[_key];
|
|
50
39
|
}
|
|
51
|
-
|
|
52
40
|
return myLog("%c Yach-jssdk log: ", style, args);
|
|
53
41
|
}
|
|
54
|
-
|
|
55
42
|
function error() {
|
|
56
43
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
57
44
|
args[_key2] = arguments[_key2];
|
|
58
45
|
}
|
|
59
|
-
|
|
60
46
|
return myWarn("%c Yach-jssdk log: ", styleError, args);
|
|
61
47
|
}
|
|
62
|
-
|
|
63
48
|
function warn() {
|
|
64
49
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
65
50
|
args[_key3] = arguments[_key3];
|
|
66
51
|
}
|
|
67
|
-
|
|
68
52
|
return myError("%c Yach-jssdk log: ", styleWarn, args);
|
|
69
53
|
}
|
package/libs/utils/env.js
CHANGED
|
@@ -1,48 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
|
|
9
7
|
exports.getENV = getENV;
|
|
10
|
-
|
|
11
8
|
var _sdk = require("../lib/sdk/sdk.typings");
|
|
12
|
-
|
|
13
9
|
function getUA() {
|
|
14
10
|
return typeof navigator !== 'undefined' ? navigator.userAgent : '';
|
|
15
11
|
}
|
|
16
|
-
|
|
17
12
|
function getENV() {
|
|
18
13
|
var ua = getUA(),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
inYach = /Yach/i.test(ua),
|
|
15
|
+
inIOS = /iPhone|iPad|iPod|iOS/i.test(ua) && inYach,
|
|
16
|
+
inAndroid = /Android/i.test(ua) && inYach,
|
|
17
|
+
inPC = /YachPc/i.test(ua),
|
|
18
|
+
inIpad = /iPad/i.test(ua) && inYach,
|
|
19
|
+
inIPhone = /iPhone/i.test(ua) && inYach,
|
|
20
|
+
isTest = /Yachtest/.test(ua) && inYach,
|
|
21
|
+
inHarmonyNext = /HarmonyOSNext/i.test(ua) && inYach;
|
|
22
|
+
// platform
|
|
28
23
|
var platform = _sdk.ENV_ENUM.notInYach;
|
|
29
|
-
|
|
30
24
|
if (inIOS) {
|
|
31
25
|
platform = _sdk.ENV_ENUM.ios;
|
|
32
26
|
}
|
|
33
|
-
|
|
34
27
|
if (inAndroid) {
|
|
35
28
|
platform = _sdk.ENV_ENUM.android;
|
|
36
29
|
}
|
|
37
|
-
|
|
38
30
|
if (inPC) {
|
|
39
31
|
platform = _sdk.ENV_ENUM.pc;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
}
|
|
33
|
+
// version
|
|
43
34
|
var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
|
|
44
|
-
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
45
|
-
|
|
35
|
+
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
36
|
+
// language
|
|
46
37
|
var language = typeof navigator !== 'undefined' ? navigator.language : '*';
|
|
47
38
|
return {
|
|
48
39
|
platform: platform,
|
package/libs/utils/index.js
CHANGED
|
@@ -1,53 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.bpitLog = staticsLog;
|
|
12
|
-
|
|
13
|
-
_Object$defineProperty(exports, "getENV", {
|
|
9
|
+
_Object$defineProperty(exports, "error", {
|
|
14
10
|
enumerable: true,
|
|
15
11
|
get: function get() {
|
|
16
|
-
return
|
|
12
|
+
return _console.error;
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
|
-
|
|
20
|
-
_Object$defineProperty(exports, "log", {
|
|
15
|
+
_Object$defineProperty(exports, "getENV", {
|
|
21
16
|
enumerable: true,
|
|
22
17
|
get: function get() {
|
|
23
|
-
return
|
|
18
|
+
return _env.getENV;
|
|
24
19
|
}
|
|
25
20
|
});
|
|
26
|
-
|
|
27
|
-
_Object$defineProperty(exports, "error", {
|
|
21
|
+
_Object$defineProperty(exports, "log", {
|
|
28
22
|
enumerable: true,
|
|
29
23
|
get: function get() {
|
|
30
|
-
return _console.
|
|
24
|
+
return _console.log;
|
|
31
25
|
}
|
|
32
26
|
});
|
|
33
|
-
|
|
34
27
|
_Object$defineProperty(exports, "warn", {
|
|
35
28
|
enumerable: true,
|
|
36
29
|
get: function get() {
|
|
37
30
|
return _console.warn;
|
|
38
31
|
}
|
|
39
32
|
});
|
|
40
|
-
|
|
41
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
42
|
-
|
|
43
33
|
var _now = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/date/now"));
|
|
44
|
-
|
|
34
|
+
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
45
35
|
var _env = require("./env");
|
|
46
|
-
|
|
47
36
|
var _bpitLog = _interopRequireDefault(require("./bpitLog"));
|
|
48
|
-
|
|
49
37
|
var _console = require("./console");
|
|
50
|
-
|
|
51
38
|
function staticsLog(config) {
|
|
52
39
|
var env = (0, _env.getENV)().env;
|
|
53
40
|
var version = (0, _env.getENV)().version;
|
package/package.json
CHANGED
|
@@ -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.4-beta.10","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"},"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 Zo})),t.d(n,"sdkVersion",(function(){return Qo})),t.d(n,"env",(function(){return ei})),t.d(n,"platform",(function(){return ni})),t.d(n,"platformV2",(function(){return ti})),t.d(n,"config",(function(){return oi})),t.d(n,"ready",(function(){return ii})),t.d(n,"error",(function(){return ri})),t.d(n,"on",(function(){return ai})),t.d(n,"off",(function(){return si})),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 So})),t.d(n,"call",(function(){return zo})),t.d(n,"setIcon",(function(){return Pn})),t.d(n,"setTitle",(function(){return Sn})),t.d(n,"setMenu",(function(){return Cn})),t.d(n,"close",(function(){return In})),t.d(n,"replacePage",(function(){return Mn})),t.d(n,"quit",(function(){return xn})),t.d(n,"setRight",(function(){return Fn})),t.d(n,"setTitleExpandIcon",(function(){return Rn})),t.d(n,"updateExpandTitle",(function(){return Vn})),t.d(n,"setLeft",(function(){return Ln})),t.d(n,"goBack",(function(){return Nn})),t.d(n,"complexPicker",(function(){return $n})),t.d(n,"departmentsPicker",(function(){return Xn})),t.d(n,"groupComplexPicker",(function(){return Zn})),t.d(n,"chooseConversationByCorpId",(function(){return Qn})),t.d(n,"pickConversation",(function(){return nt})),t.d(n,"openSingleChat",(function(){return tt})),t.d(n,"openTeamChat",(function(){return ot})),t.d(n,"openSquad",(function(){return it})),t.d(n,"sendP2PMsg",(function(){return rt})),t.d(n,"mapView",(function(){return Z})),t.d(n,"multipointView",(function(){return ee})),t.d(n,"requestAuthCode",(function(){return ht})),t.d(n,"createTab",(function(){return st})),t.d(n,"updateTab",(function(){return ut})),t.d(n,"weeklyShare",(function(){return lt})),t.d(n,"fullScreen",(function(){return ft})),t.d(n,"exitFullScreen",(function(){return mt})),t.d(n,"showPreloader",(function(){return wt})),t.d(n,"showCustomOverlayContent",(function(){return yt})),t.d(n,"hidePreloader",(function(){return St})),t.d(n,"hideCustomOverlayContent",(function(){return Tt})),t.d(n,"vibrate",(function(){return Ct})),t.d(n,"toast",(function(){return It})),t.d(n,"alert",(function(){return Ft})),t.d(n,"confirm",(function(){return Dt})),t.d(n,"getPhoneInfo",(function(){return Ot})),t.d(n,"getUUID",(function(){return lo})),t.d(n,"checkStepPermission",(function(){return fo})),t.d(n,"getGeolocation",(function(){return Vt})),t.d(n,"getGeolocationSwitch",(function(){return Bt})),t.d(n,"getLang",(function(){return Lt})),t.d(n,"startRecord",(function(){return Nt})),t.d(n,"stopRecord",(function(){return Ut})),t.d(n,"onRecordEnd",(function(){return Yt})),t.d(n,"downloadAudio",(function(){return Gt})),t.d(n,"playAudio",(function(){return $t})),t.d(n,"pauseAudio",(function(){return Zt})),t.d(n,"stopAudio",(function(){return eo})),t.d(n,"onPlayEnd",(function(){return to})),t.d(n,"resumeAudio",(function(){return io})),t.d(n,"getNetworkType",(function(){return ao})),t.d(n,"isAtTal",(function(){return co})),t.d(n,"webViewBounceDisable",(function(){return Io})),t.d(n,"pullToRefreshEnable",(function(){return jo})),t.d(n,"pullToRefreshStop",(function(){return Oo})),t.d(n,"pullToRefreshDisable",(function(){return Fo})),t.d(n,"getItem",(function(){return Do})),t.d(n,"setItem",(function(){return Vo})),t.d(n,"removeItem",(function(){return Bo})),t.d(n,"writeLog",(function(){return _o})),t.d(n,"flushLog",(function(){return Ho})),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 jt})),t.d(n,"webViewMessageSend",(function(){return qo})),t.d(n,"talYoungFilesUpload",(function(){return Go})),t.d(n,"openVideoPlayer",(function(){return fe})),t.d(n,"openMediaFileDialog",(function(){return ve})),t.d(n,"mediaFileUpload",(function(){return me})),t.d(n,"invoice",(function(){return he})),t.d(n,"pushWorkMsg",(function(){return ge})),t.d(n,"openTalYoungToTopic",(function(){return be})),t.d(n,"getToken",(function(){return ye})),t.d(n,"authStart",(function(){return Pe})),t.d(n,"authFinish",(function(){return Te})),t.d(n,"assistantCreate",(function(){return Ce})),t.d(n,"yachEvent",(function(){return Me})),t.d(n,"topicEvent",(function(){return xe})),t.d(n,"openTogetherEyeWebview",(function(){return Ee})),t.d(n,"getTogetherConfig",(function(){return Ae})),t.d(n,"rouseApp",(function(){return De})),t.d(n,"externalLinkPreviewFile",(function(){return Re})),t.d(n,"savePic",(function(){return Le})),t.d(n,"zfbAuth",(function(){return We})),t.d(n,"complain",(function(){return _e})),t.d(n,"onRecordEnd_v2",(function(){return mo})),t.d(n,"startRecord_v2",(function(){return go})),t.d(n,"stopRecord_v2",(function(){return wo})),t.d(n,"selectDepartment",(function(){return Ne})),t.d(n,"setWindowBig",(function(){return Un})),t.d(n,"tencentMeeting",(function(){return Jn})),t.d(n,"tencentMeetingBegin",(function(){return Yn})),t.d(n,"createModifySchedule",(function(){return Ue})),t.d(n,"onlineDocmentOpenTeamChat",(function(){return Ge})),t.d(n,"entergroupCheck",(function(){return $e})),t.d(n,"resetSessionUnread",(function(){return Ze})),t.d(n,"weeklyRead",(function(){return en})),t.d(n,"openFutureGroup",(function(){return rn})),t.d(n,"knowledgeBaseSelect",(function(){return sn})),t.d(n,"knowledgeSelectParams",(function(){return un})),t.d(n,"lorebaseShowList",(function(){return ln})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return fn})),t.d(n,"openPublish",(function(){return gn})),t.d(n,"setLight",(function(){return ko})),t.d(n,"openUserSchedule",(function(){return Ye})),t.d(n,"disableScreenCapture",(function(){return tn})),t.d(n,"setPanGestureEnable",(function(){return Kn})),t.d(n,"addAppToNav",(function(){return $o})),t.d(n,"copy",(function(){return mn})),t.d(n,"capturePage",(function(){return Jo}));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:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fe(e){O("biz.util.openVideoPlayer",{params:e,platform:pe})}function ve(e){O("biz.util.openMediaFileDialog",{params:e})}function me(e){O("biz.util.mediaFileUpload",{params:e})}function he(e){O("biz.util.invoice",{params:e})}function ge(e){O("biz.util.pushWorkMsg",{params:e})}function be(e){O("biz.util.openTalYoungToTopic",{params:e})}var we={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ye(e){O("biz.util.getToken",{params:e,platform:we})}var ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pe(e){O("biz.util.authStart",{params:e,platform:ke})}var Se={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Te(e){O("biz.util.authFinish",{params:e,platform:Se})}var ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ce(e){O("biz.util.assistantCreate",{params:e,platform:ze})}var Ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Me(e){O("biz.util.yachEvent",{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.topicEvent",{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.openTogetherEyeWebview",{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.getTogetherConfig",{params:e,platform:Fe})}function De(e){O("biz.util.rouseApp",{params:e})}function Re(e){O("biz.util.externalLinkPreviewFile",{params:e})}var Ve={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function We(e){O("biz.util.zfbAuth",{params:e,platform:Ve})}var Be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Le(e){O("biz.util.savePic",{params:e,platform:Be})}function _e(e){O("biz.util.complain",{params:e})}function Ne(e){O("biz.util.selectDepartment",{params:e})}var He={pc:{vs:"0.0.0"}};function Ue(e){O("biz.util.createModifySchedule",{params:e,platform:He})}var Je={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ye(e){O("biz.util.openUserSchedule",{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("onlineDocmentOpenTeamChat",{params:e,platform:qe})}var Ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function $e(e){O("biz.util.entergroupCheck",{params:e,platform:Ke})}var Xe={pc:{vs:"1.8.0"}};function Ze(e){O("biz.util.resetSessionUnread",{params:e,platform:Xe})}var Qe={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function en(e){O("biz.util.weeklyRead",{params:e,platform:Qe})}var nn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function tn(e){O("biz.util.disableScreenCapture",{params:e,platform:nn})}var on={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function rn(e){O("biz.util.openFutureGroup",{params:e,platform:on})}var an={pc:{vs:"1.8.8"},ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function sn(e){O("biz.util.knowledgeBaseSelect",{params:e,platform:an})}var cn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function un(e){O("biz.util.knowledgeSelectParams",{params:e,platform:cn})}var dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ln(e){O("biz.util.lorebaseShowList",{params:e,platform:dn})}var pn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fn(e){O("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:pn})}var vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mn(e){O("biz.util.copy",{params:e,platform:vn})}var hn={pc:{vs:"1.8.8"}};function gn(e){O("biz.util.openPublish",{params:e,platform:hn})}var bn=function(){return(bn=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 wn(e){return function(n){return bn(bn({},e),n)}}var yn=wn({control:!0,showIcon:!0,iconIndex:1}),kn={ios:{vs:"0.0.0",paramsDeal:yn},android:{vs:"0.0.0",paramsDeal:yn}};function Pn(e){O("biz.navigation.setIcon",{params:e,platform:kn})}function Sn(e){O("biz.navigation.setTitle",{params:e})}var Tn=wn({control:!0}),zn={ios:{vs:"0.0.0",paramsDeal:Tn},android:{vs:"0.0.0",paramsDeal:Tn}};function Cn(e){O("biz.navigation.setMenu",{params:e,platform:zn})}function In(e){O("biz.navigation.close",{params:e})}function Mn(e){O("biz.navigation.replace",{params:e})}var jn={pc:{vs:"0.0.0"}};function xn(e){O("biz.navigation.quit",{params:e,platform:jn})}var On=wn({show:!0,control:!1,text:""}),En={ios:{vs:"0.0.0",paramsDeal:On},android:{vs:"0.0.0",paramsDeal:On},pc:{vs:"0.0.0"}};function Fn(e){O("biz.navigation.setRight",{params:e,platform:En})}var An=wn({control:!0}),Dn={ios:{vs:"0.0.0",paramsDeal:An},android:{vs:"0.0.0",paramsDeal:An}};function Rn(e){O("biz.navigation.setTitleExpandIcon",{params:e,platform:Dn})}function Vn(e){O("biz.navigation.updateExpandTitle",{params:e})}var Wn=wn({show:!0,control:!1,text:""}),Bn={ios:{vs:"0.0.0",paramsDeal:Wn},android:{vs:"0.0.0",paramsDeal:Wn},pc:{vs:"0.0.0"}};function Ln(e){O("biz.navigation.setLeft",{params:e,platform:Bn})}var _n={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Nn(e){O("biz.navigation.goBack",{params:e,platform:_n})}var Hn={pc:{vs:"0.0.0"}};function Un(e){O("biz.navigation.setWindowBig",{params:e,platform:Hn})}function Jn(e){O("biz.navigation.tencentMeeting",{params:e})}function Yn(e){O("biz.navigation.tencentMeetingBegin",{params:e})}var qn=wn({nativePanEnable:!0,webPanEnable:!0}),Gn={ios:{vs:"0.0.0",paramsDeal:qn},android:{vs:"0.0.0",paramsDeal:qn}};function Kn(e){O("biz.navigation.setPanGestureEnable",{params:e,platform:Gn})}function $n(e){O("biz.contact.complexPicker",{params:e})}function Xn(e){O("biz.contact.departmentsPicker",{params:e})}function Zn(e){O("biz.group.groupComplexPicker",{params:e})}function Qn(e){O("biz.chat.chooseConversationByCorpId",{params:e})}var et={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function nt(e){O("biz.chat.pickConversation",{params:e,platform:et})}function tt(e){O("biz.chat.openSingleChat",{params:e})}function ot(e){O("biz.chat.openTeamChat",{params:e})}function it(e){O("biz.chat.openSquad",{params:e})}function rt(e){O("biz.chat.sendP2PMsg",{params:e})}var at={pc:{vs:"0.0.0"}};function st(e){O("primary.createTab",{params:e,platform:at})}var ct={pc:{vs:"1.9.12"}};function ut(e){O("primary.updateTab",{params:e,platform:ct})}var dt={pc:{vs:"0.0.0"}};function lt(e){O("primary.weeklyShare",{params:e,platform:dt})}var pt={pc:{vs:"0.0.0"}};function ft(e){O("primary.fullScreen",{params:e,platform:pt})}var vt={pc:{vs:"0.0.0"}};function mt(e){O("primary.exitFullScreen",{params:e,platform:vt})}function ht(e){O("runtime.permission.requestAuthCode",{params:e})}var gt={vs:"1.9.9"},bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:gt};function wt(e){O("device.notification.showPreloader",{params:e,platform:bt})}function yt(e){O("device.notification.showCustomOverlayContent",{params:e,platform:{pc:gt}})}var kt={vs:"1.9.9"},Pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:kt};function St(e){O("device.notification.hidePreloader",{params:e,platform:Pt})}function Tt(e){O("device.notification.hideCustomOverlayContent",{params:e,platform:{pc:kt}})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ct(e){O("device.notification.vibrate",{params:e,platform:zt})}function It(e){O("device.notification.toast",{params:e})}var Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jt(e){O("device.notification.actionSheet",{params:e,platform:Mt})}var xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ot(e){O("device.base.getPhoneInfo",{params:e,platform:xt})}var Et={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ft(e){O("device.notification.alert",{params:e,platform:Et})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Dt(e){O("device.notification.confirm",{params:e,platform:At})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vt(e){O("device.geolocation.get",{params:e,platform:Rt})}var Wt={android:{vs:"0.0.0"}};function Bt(e){O("device.geolocation.getSwitch",{params:e,platform:Wt})}function Lt(e){O("device.system.getLang",{params:e})}var _t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Nt(e){O("device.audio.startRecord",{params:e,platform:_t})}var Ht={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ut(e){O("device.audio.stopRecord",{params:e,platform:Ht})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(e){O("device.audio.onRecordEnd",{params:e,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(e){O("device.audio.download",{params:e,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(e){O("device.audio.play",{params:e,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(e){O("device.audio.pause",{params:e,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(e){O("device.audio.stop",{params:e,platform:Qt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(e){O("device.audio.onPlayEnd",{params:e,platform:no})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function io(e){O("device.audio.resume",{params:e,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(e){O("device.connection.getNetworkType",{params:e,platform:ro})}var so={pc:{vs:"0.0.0"}};function co(e){O("device.connection.isAtTal",{params:e,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function lo(e){O("device.base.getUUID",{params:e,platform:uo})}var po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fo(e){O("device.base.checkStepPermission",{params:e,platform:po})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mo(e){O("device.audio.onRecordEnd_v2",{params:e,platform:vo})}var ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function go(e){O("device.audio.startRecord_v2",{params:e,platform:ho})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(e){O("device.audio.stopRecord_v2",{params:e,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(e){O("device.system.setLight",{params:e,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(e){O("biz.telephone.showCallMenu",{params:e,platform:Po})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function zo(e){O("biz.telephone.call",{params:e,platform:To})}var Co={ios:{vs:"0.0.0"}};function Io(e){O("ui.webViewBounce.disable",{params:e,platform:Co})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jo(e){O("ui.pullToRefresh.enable",{params:e,platform:Mo})}var xo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oo(e){O("ui.pullToRefresh.stop",{params:e,platform:xo})}var Eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fo(e){O("ui.pullToRefresh.disable",{params:e,platform:Eo})}var Ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Do(e){O("util.domainStorage.getItem",{params:e,platform:Ao})}var Ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vo(e){O("util.domainStorage.setItem",{params:e,platform:Ro})}var Wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bo(e){O("util.domainStorage.removeItem",{params:e,platform:Wo})}var Lo={pc:{vs:"1.7.0"}};function _o(e){O("util.tool.writeLog",{params:e,platform:Lo})}var No={pc:{vs:"1.7.0"}};function Ho(e){O("util.tool.flushLog",{params:e,platform:No})}var Uo={pc:{vs:"1.9.9"}};function Jo(e){O("biz.util.capturePage",{params:e,platform:Uo})}var Yo={ios:{vs:"0.0.0"}};function qo(e){O("biz.webViewMessage.send",{params:e,platform:Yo})}function Go(e){O("app.custom.talYoungFilesUpload",{params:e})}var Ko={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function $o(e){O("biz.util.addAppToNav",{params:e,platform:Ko})}console.log("add rouseApp ------------\x3e",De);var Xo=j.exportSdk,Zo=Xo.version,Qo=Xo.sdkVersion,ei=Xo.env,ni=Xo.platform,ti=Xo.platformV2,oi=Xo.config,ii=Xo.ready,ri=Xo.error,ai=Xo.on,si=Xo.off;n.default={version:Zo,sdkVersion:Qo,env:ei,platform:ni,platformV2:ti,config:oi,ready:ii,error:ri,on:ai,off:si,biz:{util:{openLink:E,feedback:F,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:Ge,entergroupCheck:$e,resetSessionUnread:Ze,weeklyRead:en,openFutureGroup:rn,closeWindow:ce,remind:de,takePicture:le,openVideoPlayer:fe,openMediaFileDialog:ve,mediaFileUpload:me,invoice:he,pushWorkMsg:ge,openTalYoungToTopic:be,getToken:ye,authStart:Pe,authFinish:Te,assistantCreate:Ce,yachEvent:Me,topicEvent:xe,openTogetherEyeWebview:Ee,getTogetherConfig:Ae,rouseApp:De,externalLinkPreviewFile:Re,savePic:Le,zfbAuth:We,complain:_e,selectDepartment:Ne,createModifySchedule:Ue,openUserSchedule:Ye,disableScreenCapture:tn,addAppToNav:$o,knowledgeBaseSelect:sn,knowledgeSelectParams:un,lorebaseShowList:ln,lorebaseRefreshNodeWebview:fn,copy:mn,openPublish:gn,capturePage:Jo},telephone:{showCallMenu:So,call:zo},navigation:{setIcon:Pn,setTitle:Sn,setMenu:Cn,close:In,replace:Mn,quit:xn,setRight:Fn,setTitleExpandIcon:Rn,updateExpandTitle:Vn,setLeft:Ln,goBack:Nn,setWindowBig:Un,tencentMeeting:Jn,tencentMeetingBegin:Yn,setPanGestureEnable:Kn},contact:{complexPicker:$n,departmentsPicker:Xn},group:{groupComplexPicker:Zn},chat:{chooseConversationByCorpId:Qn,pickConversation:nt,openSingleChat:tt,openTeamChat:ot,openSquad:it,sendP2PMsg:rt},map:{view:Z,multipointView:ee},webViewMessage:{send:qo}},runtime:{permission:{requestAuthCode:ht}},primary:{createTab:st,updateTab:ut,weeklyShare:lt,fullScreen:ft,exitFullScreen:mt},device:{notification:{showPreloader:wt,showCustomOverlayContent:yt,hidePreloader:St,hideCustomOverlayContent:Tt,vibrate:Ct,toast:It,alert:Ft,confirm:Dt,actionSheet:jt},base:{getPhoneInfo:Ot,getUUID:lo,checkStepPermission:fo},geolocation:{get:Vt,getSwitch:Bt},system:{getLang:Lt,setLight:ko},audio:{startRecord:Nt,stopRecord:Ut,onRecordEnd:Yt,download:Gt,play:$t,pause:Zt,stop:eo,onPlayEnd:to,resume:io,onRecordEnd_v2:mo,startRecord_v2:go,stopRecord_v2:wo},connection:{getNetworkType:ao,isAtTal:co}},ui:{webViewBounce:{disable:Io},pullToRefresh:{enable:jo,stop:Oo,disable:Fo}},util:{domainStorage:{getItem:Do,setItem:Vo,removeItem:Bo},tool:{writeLog:_o,flushLog:Ho}},app:{custom:{talYoungFilesUpload:Go}}}}]).default;
|