yach.open.jssdk 4.4.3 → 4.4.4-beta.11
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.11.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.d.ts +11 -0
- package/es/api/biz/util/copy.js +19 -0
- 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 +9 -3
- package/es/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/es/api/biz/util/knowledgeSelectParams.js +19 -0
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +19 -0
- package/es/api/biz/util/lorebaseShowList.d.ts +11 -0
- package/es/api/biz/util/lorebaseShowList.js +19 -0
- 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.d.ts +22 -0
- package/es/api/biz/util/openPublish.js +15 -0
- 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.d.ts +9 -0
- package/es/api/primary/updateTab.js +15 -0
- 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 +13 -1
- package/es/index.js +29 -28
- package/es/lib/bridge/mobile.js +22 -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.d.ts +8 -25
- package/es/lib/helper/pcIframe.js +48 -54
- package/es/lib/index.js +7 -21
- package/es/lib/sdk/index.js +16 -37
- package/es/lib/sdk/sdk.typings.d.ts +1 -0
- 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 +15 -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.d.ts +11 -0
- package/libs/api/biz/util/copy.js +26 -0
- 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 +10 -8
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/libs/api/biz/util/knowledgeSelectParams.js +26 -0
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +26 -0
- package/libs/api/biz/util/lorebaseShowList.d.ts +11 -0
- package/libs/api/biz/util/lorebaseShowList.js +26 -0
- 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.d.ts +22 -0
- package/libs/api/biz/util/openPublish.js +22 -0
- 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.d.ts +9 -0
- package/libs/api/primary/updateTab.js +22 -0
- 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 +13 -1
- package/libs/index.js +316 -536
- package/libs/lib/bridge/index.js +6 -13
- package/libs/lib/bridge/mobile.js +26 -50
- 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.d.ts +8 -25
- package/libs/lib/helper/pcIframe.js +47 -61
- package/libs/lib/index.js +9 -33
- package/libs/lib/sdk/index.js +17 -47
- package/libs/lib/sdk/sdk.typings.d.ts +1 -0
- 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 +15 -22
- package/libs/utils/index.js +8 -21
- package/package.json +4 -6
- package/dist/yach_jssdk_4.4.3.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,47 +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
|
-
|
|
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
|
|
27
23
|
var platform = _sdk.ENV_ENUM.notInYach;
|
|
28
|
-
|
|
29
24
|
if (inIOS) {
|
|
30
25
|
platform = _sdk.ENV_ENUM.ios;
|
|
31
26
|
}
|
|
32
|
-
|
|
33
27
|
if (inAndroid) {
|
|
34
28
|
platform = _sdk.ENV_ENUM.android;
|
|
35
29
|
}
|
|
36
|
-
|
|
37
30
|
if (inPC) {
|
|
38
31
|
platform = _sdk.ENV_ENUM.pc;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
}
|
|
33
|
+
// version
|
|
42
34
|
var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
|
|
43
|
-
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
44
|
-
|
|
35
|
+
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
36
|
+
// language
|
|
45
37
|
var language = typeof navigator !== 'undefined' ? navigator.language : '*';
|
|
46
38
|
return {
|
|
47
39
|
platform: platform,
|
|
@@ -51,7 +43,8 @@ function getENV() {
|
|
|
51
43
|
inAndroid: inAndroid,
|
|
52
44
|
inPC: inPC,
|
|
53
45
|
inIpad: inIpad,
|
|
54
|
-
inIPhone: inIPhone
|
|
46
|
+
inIPhone: inIPhone,
|
|
47
|
+
inHarmonyNext: inHarmonyNext
|
|
55
48
|
},
|
|
56
49
|
version: version,
|
|
57
50
|
language: language,
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yach.open.jssdk",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4-beta.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"main": "./libs/index.js",
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"start": "yach del es && tsc -w",
|
|
15
15
|
"build": "node ./tools/run compile",
|
|
16
|
-
"prepublish": "npm run upload-cdn",
|
|
17
|
-
"postpublish": "yach open https://www.npmjs.com/package/yach.open.jssdk",
|
|
18
|
-
"upload-cdn": "npm run build && node ./upload/upload.js",
|
|
19
16
|
"lint": "eslint 'src/**/*.{js,ts}'",
|
|
20
17
|
"lint-fix": "eslint --fix 'src/**/*.{js,ts}'",
|
|
21
18
|
"p:beta": "npm publish --tag=beta --access public"
|
|
@@ -56,10 +53,11 @@
|
|
|
56
53
|
"prettier": "^2.0.2",
|
|
57
54
|
"qiao.ext.cos": "^0.1.2",
|
|
58
55
|
"ts-loader": "^7.0.1",
|
|
59
|
-
"typescript": "^3.
|
|
56
|
+
"typescript": "^3.9.7",
|
|
60
57
|
"webpack": "^4.43.0",
|
|
61
58
|
"webpack-cli": "^3.3.11",
|
|
62
59
|
"webpack-merge": "^4.2.2",
|
|
63
|
-
"yach.open.cli": "^1.0.1"
|
|
60
|
+
"yach.open.cli": "^1.0.1",
|
|
61
|
+
"npm-cli-login": "1.0.0"
|
|
64
62
|
}
|
|
65
63
|
}
|
package/dist/yach_jssdk_4.4.3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.yy=function(n){var e={};function t(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(o,i,function(e){return n[e]}.bind(null,i));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=1)}([function(n){n.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.3","description":"","module":"./es/index.js","main":"./libs/index.js","files":["es","libs","dist"],"sideEffects":false,"scripts":{"start":"yach del es && tsc -w","build":"node ./tools/run compile","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(n,e,t){"use strict";var o;function i(){var n="undefined"!=typeof navigator?navigator.userAgent:"",e=/Yach/i.test(n),t=/iPhone|iPad|iPod|iOS/i.test(n)&&e,i=/Android/i.test(n)&&e,r=/YachPc/i.test(n),a=/iPad/i.test(n)&&e,s=/iPhone/i.test(n)&&e,c=/Yachtest/.test(n)&&e,u=o.notInYach;return t&&(u=o.ios),i&&(u=o.android),r&&(u=o.pc),{platform:u,platformV2:{inYach:e,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s},version:((n.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*",env:c?"test":"online"}}function r(n){if(n)if(n.group)if(n.project)if(n.hasOwnProperty("env"))if(n.hasOwnProperty("version")){var e=["https://es.zhiyinlou.com/log.js?"];e.push("group="+n.group),e.push("&project="+n.project),e.push("&env="+n.env),e.push("&version="+n.version),e.push("&method="+n.method),n.yachid&&e.push("&yachid="+n.yachid),n.workcode&&e.push("&workcode="+n.workcode),n.timestamp&&e.push("×tamp="+n.timestamp),n.errorcode&&e.push("&errorcode="+n.errorcode),n.message&&e.push("&message="+n.message),n.api&&n.time&&(e.push("&api="+n.api),e.push("&load_time="+n.time));var t,o,i=e.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"!=n.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(e),t.d(e,"version",(function(){return Go})),t.d(e,"sdkVersion",(function(){return Ko})),t.d(e,"env",(function(){return $o})),t.d(e,"platform",(function(){return Xo})),t.d(e,"platformV2",(function(){return Zo})),t.d(e,"config",(function(){return Qo})),t.d(e,"ready",(function(){return ni})),t.d(e,"error",(function(){return ei})),t.d(e,"on",(function(){return ti})),t.d(e,"off",(function(){return oi})),t.d(e,"openLink",(function(){return _})),t.d(e,"feedback",(function(){return N})),t.d(e,"open",(function(){return L})),t.d(e,"openSlidePanel",(function(){return H})),t.d(e,"share",(function(){return Y})),t.d(e,"previewFile",(function(){return q})),t.d(e,"previewImage",(function(){return G})),t.d(e,"downloadFile",(function(){return K})),t.d(e,"uploadAttachment",(function(){return $})),t.d(e,"clipboardFileUpload",(function(){return X})),t.d(e,"proxy",(function(){return Z})),t.d(e,"datepicker",(function(){return nn})),t.d(e,"scan",(function(){return rn})),t.d(e,"chosen",(function(){return pn})),t.d(e,"openSingleWebview",(function(){return fn})),t.d(e,"getSingleWebviewData",(function(){return vn})),t.d(e,"injectScript",(function(){return mn})),t.d(e,"closeWindow",(function(){return hn})),t.d(e,"showCallMenu",(function(){return wo})),t.d(e,"call",(function(){return ko})),t.d(e,"setIcon",(function(){return ye})),t.d(e,"setTitle",(function(){return ke})),t.d(e,"setMenu",(function(){return ze})),t.d(e,"close",(function(){return Ce})),t.d(e,"replacePage",(function(){return Te})),t.d(e,"quit",(function(){return Me})),t.d(e,"setRight",(function(){return Ae})),t.d(e,"setTitleExpandIcon",(function(){return De})),t.d(e,"updateExpandTitle",(function(){return Oe})),t.d(e,"setLeft",(function(){return Be})),t.d(e,"goBack",(function(){return _e})),t.d(e,"complexPicker",(function(){return Ge})),t.d(e,"departmentsPicker",(function(){return Ke})),t.d(e,"groupComplexPicker",(function(){return $e})),t.d(e,"chooseConversationByCorpId",(function(){return Xe})),t.d(e,"pickConversation",(function(){return Qe})),t.d(e,"openSingleChat",(function(){return nt})),t.d(e,"openTeamChat",(function(){return et})),t.d(e,"openSquad",(function(){return tt})),t.d(e,"sendP2PMsg",(function(){return ot})),t.d(e,"mapView",(function(){return sn})),t.d(e,"multipointView",(function(){return un})),t.d(e,"requestAuthCode",(function(){return lt})),t.d(e,"createTab",(function(){return rt})),t.d(e,"weeklyShare",(function(){return st})),t.d(e,"fullScreen",(function(){return ut})),t.d(e,"exitFullScreen",(function(){return pt})),t.d(e,"showPreloader",(function(){return mt})),t.d(e,"showCustomOverlayContent",(function(){return gt})),t.d(e,"hidePreloader",(function(){return wt})),t.d(e,"hideCustomOverlayContent",(function(){return yt})),t.d(e,"vibrate",(function(){return Pt})),t.d(e,"toast",(function(){return St})),t.d(e,"alert",(function(){return xt})),t.d(e,"confirm",(function(){return At})),t.d(e,"getPhoneInfo",(function(){return It})),t.d(e,"getUUID",(function(){return ao})),t.d(e,"checkStepPermission",(function(){return co})),t.d(e,"getGeolocation",(function(){return jt})),t.d(e,"getGeolocationSwitch",(function(){return Ot})),t.d(e,"getLang",(function(){return Vt})),t.d(e,"startRecord",(function(){return Bt})),t.d(e,"stopRecord",(function(){return _t})),t.d(e,"onRecordEnd",(function(){return Lt})),t.d(e,"downloadAudio",(function(){return Ht})),t.d(e,"playAudio",(function(){return Yt})),t.d(e,"pauseAudio",(function(){return Gt})),t.d(e,"stopAudio",(function(){return $t})),t.d(e,"onPlayEnd",(function(){return Zt})),t.d(e,"resumeAudio",(function(){return no})),t.d(e,"getNetworkType",(function(){return to})),t.d(e,"isAtTal",(function(){return io})),t.d(e,"webViewBounceDisable",(function(){return So})),t.d(e,"pullToRefreshEnable",(function(){return Co})),t.d(e,"pullToRefreshStop",(function(){return Io})),t.d(e,"pullToRefreshDisable",(function(){return xo})),t.d(e,"getItem",(function(){return Ao})),t.d(e,"setItem",(function(){return jo})),t.d(e,"removeItem",(function(){return Oo})),t.d(e,"writeLog",(function(){return Ro})),t.d(e,"flushLog",(function(){return Wo})),t.d(e,"remind",(function(){return wn})),t.d(e,"takePicture",(function(){return yn})),t.d(e,"datetimepicker",(function(){return tn})),t.d(e,"actionSheet",(function(){return Ct})),t.d(e,"webViewMessageSend",(function(){return Uo})),t.d(e,"talYoungFilesUpload",(function(){return Ho})),t.d(e,"openVideoPlayer",(function(){return Pn})),t.d(e,"openMediaFileDialog",(function(){return Sn})),t.d(e,"mediaFileUpload",(function(){return zn})),t.d(e,"invoice",(function(){return Cn})),t.d(e,"pushWorkMsg",(function(){return Tn})),t.d(e,"openTalYoungToTopic",(function(){return In})),t.d(e,"getToken",(function(){return xn})),t.d(e,"authStart",(function(){return An})),t.d(e,"authFinish",(function(){return jn})),t.d(e,"assistantCreate",(function(){return On})),t.d(e,"yachEvent",(function(){return Rn})),t.d(e,"topicEvent",(function(){return Wn})),t.d(e,"openTogetherEyeWebview",(function(){return Nn})),t.d(e,"getTogetherConfig",(function(){return Un})),t.d(e,"rouseApp",(function(){return Hn})),t.d(e,"externalLinkPreviewFile",(function(){return Jn})),t.d(e,"savePic",(function(){return Kn})),t.d(e,"zfbAuth",(function(){return qn})),t.d(e,"complain",(function(){return $n})),t.d(e,"onRecordEnd_v2",(function(){return po})),t.d(e,"startRecord_v2",(function(){return fo})),t.d(e,"stopRecord_v2",(function(){return mo})),t.d(e,"selectDepartment",(function(){return Xn})),t.d(e,"setWindowBig",(function(){return Le})),t.d(e,"tencentMeeting",(function(){return Ue})),t.d(e,"tencentMeetingBegin",(function(){return He})),t.d(e,"createModifySchedule",(function(){return Qn})),t.d(e,"onlineDocmentOpenTeamChat",(function(){return oe})),t.d(e,"entergroupCheck",(function(){return re})),t.d(e,"resetSessionUnread",(function(){return se})),t.d(e,"weeklyRead",(function(){return ue})),t.d(e,"openFutureGroup",(function(){return fe})),t.d(e,"knowledgeBaseSelect",(function(){return me})),t.d(e,"setLight",(function(){return ho})),t.d(e,"openUserSchedule",(function(){return ee})),t.d(e,"disableScreenCapture",(function(){return pe})),t.d(e,"setPanGestureEnable",(function(){return qe})),t.d(e,"addAppToNav",(function(){return Yo})),t.d(e,"capturePage",(function(){return No})),function(n){n.pc="pc",n.android="android",n.ios="ios",n.notInYach="notInYach"}(o||(o={}));var a=function(){return(a=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function s(n){var e=i().env,t=i().version,o=Date.now(),s=a({group:"yach",project:"yach_31_jssdk",env:e,version:t,timestamp:o},n);console.log("jssdk 项目 bpit 上报数据:",s),r(s)}var c={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(c=window.console),"undefined"!=typeof document&&document.body){var u=document.createElement("iframe");u&&u.contentWindow&&u.contentWindow.console&&(u.style.display="none",document.body.appendChild(u),c=u.contentWindow.console)}var d=c.log.bind(c),p=(c.warn.bind(c),c.error.bind(c),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function l(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return d("%c Yach-jssdk log: ",p,n)}var f=function(n,e){var t=m(n),o=m(e),i=t.pop(),r=o.pop(),a=w(t,o);return 0!==a?a:i&&r?w(i.split("."),r.split(".")):i||r?i?-1:1:0},v=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,m=function(n){if("string"!=typeof n)throw new TypeError("Invalid argument expected string");var e=n.match(v);if(!e)throw new Error("Invalid argument not valid semver ('"+n+"' received)");return e.shift(),e},g=function(n){return"*"===n||"x"===n||"X"===n},h=function(n){var e=parseInt(n,10);return isNaN(e)?n:e},b=function(n,e){if(g(n)||g(e))return 0;var t=function(n,e){return typeof n!=typeof e?[String(n),String(e)]:[n,e]}(h(n),h(e)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},w=function(n,e){for(var t=0;t<Math.max(n.length,e.length);t++){var o=b(n[t]||"0",e[t]||"0");if(0!==o)return o}return 0},y={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},k=(Object.keys(y),t(0)),P=function(){function n(n){var e=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(n,t){e.cacheP.resolve=n,e.cacheP.reject=t})),this.env=n,this.exportSdk={version:n.version,sdkVersion:k.version,env:n,platform:n.platform,platformV2:n.platformV2,config:function(n){void 0===n&&(n={});var t=n.jsApiList,o=void 0===t?[]:t;e.hadConfig?console.log("Config has been executed"):e.bridgeInitFn().then((function(t){t("config",n).then((function(n){e.cacheP.resolve(n),e.hadConfig=!0,e.configJsApiList=o})).catch((function(n){e.cacheP.reject(n)}))}))},ready:function(n){e.bridgeInitFn().then((function(){n()}))},error:function(n){e.config$.catch((function(e){n(e)}))},on:function(t,o){e.bridgeInitFn().then((function(){e.platformConfigMap[n.platform].event.on(t,o)}))},off:function(t,o){e.bridgeInitFn().then((function(){e.platformConfigMap[n.platform].event.off(t,o)}))}}}return n.prototype.setAPI=function(n,e){this.invokeAPIConfigMapByMethod[n]=e},n.prototype.setPlatform=function(n){var e=n.platform;n.bridgeInit;this.platformConfigMap[e]=n},n.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var n=this.platformConfigMap[this.env.platform];if(n)this.bridgeInitFnPromise=n.bridgeInit();else{var e="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(e))}return this.bridgeInitFnPromise},n.prototype._onFail=function(n,e,t,o){s({method:n,errorcode:e,message:t}),o&&"function"==typeof o&&o({code:e,message:t})},n.prototype.invokeAPI=function(n,e){if(e||(e={}),n){var t=this.invokeAPIConfigMapByMethod[n];if(!t)return this._onFail(n,"-1","["+n+"] method is not exist",e.onFail);var o=t[this.env.platform];if(o){var i=o.vs||"0.0.0";if(f(this.env.version,i)<0)return this._onFail(n,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,e.onFail);var r=o.paramsDeal?o.paramsDeal(e):e;if("function"==typeof r.onSuccess){var a=r.onSuccess;r.onSuccess=function(n){a(n)}}this.bridgeInitFn().then((function(e){e(n,r).then((function(e){l("SDK 返回结果成功 ",{method:n,params:r,result:e})})).catch((function(e){l("SDK 返回结果失败",{method:n,params:r,error:e})}))})).catch((function(n){console.log("wenai err",n)}))}else this._onFail(n,"-1","["+n+"] method do not support the current platform ("+this.env.platform+")",e.onFail)}},n}(),S=new function(){var n=this;this.on=function(e,t){if(!e||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(n.eventsHandle[e])||(n.eventsHandle[e]=[]),n.eventsHandle[e].push(t)},this.off=function(e,t){if(!e)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(n.eventsHandle[e])){var o=n.eventsHandle[e].indexOf(t);-1!==o&&n.eventsHandle[e].splice(o,1)}}else n.eventsHandle[e]=[]},this.execEvent=function(n,e){Array.isArray(this.eventsHandle[n])&&this.eventsHandle[n].forEach((function(n){try{n(e)}catch(n){console.error(e)}}))},this.eventsHandle={}},z=function(n,e,t){var o=this;this.genid=function(){var n=Date.now().toString(36);return n+=Math.random().toString(36).substr(3)},this.receiveResponse=function(n){o.callback(n)},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=n,this.plainMsg=e,this.invokeType=null==e?void 0:e.invokeType,this.callback=t},C=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(n){return this.pendingMsgs[n]},this.invokeAPIInBrowserView=function(n){window.sendTo(n)},this.invokeAPIInWebview=function(n){window.sendToHost(n)},this.invokeAPI=function(e,t,o){var i=new z(e,t,o),r=JSON.stringify(i.getPayload()),a=t.invokeType;return"browserView"===(void 0===a?"":a)?n.invokeAPIInBrowserView(r):n.invokeAPIInWebview(r),n.addPending(i),i},this.handleCallback=function(e,t){var o=e.type,i=e.methodName,r=e.eventName,a=e.msgId,s=e.data,c=void 0===s?{}:s,u=e.code,d=e.message,p=e.msg;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":S.execEvent(r,c);break;case"zoomInClick":var l=document.documentElement.scrollTop||document.body.scrollTop,f=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}}))}else if("response"===o){var v=n.getPending(a);v&&v.receiveResponse({data:c,code:u,message:d||p||c.msg||c.message}),-3!=u&&n.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(e){l("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))},this.pendingMsgs={}},T=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function I(n){return T.get(n)||"onFail"}var M=function(){return(M=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)},x=function(n,e){return new Promise((function(t,o){return C.invokeAPI(n,e,(function(i){var r=i.data,a=i.code,c=i.message,u=parseInt(a),d=I(u),p=e[d];if(l("SDK执行后回调,相关参数 ",{method:n,param:e,data:r,_code:u,message:c,callbackFun:p}),"onFail"!==d)"function"==typeof p&&p(r||c),t({_code:u,message:c,data:r});else{if(s({method:n,errorcode:u,message:c||JSON.stringify(r)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",a,u);var f="[object Object]"===Object.prototype.toString.call(r)?M(M({},r),{code:a,message:c}):{data:r,code:a,message:c};p(c?f:r)}o({_code:u,message:c,data:r})}}))}))},F=function(){return(F=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function A(n){if(window.WebViewJavascriptBridge)return n(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return n(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(n);window.WVJBCallbacks=[n];var e=document.createElement("iframe");e.style.display="none",e.src="https://__bridge_loaded__",document.documentElement.appendChild(e),setTimeout((function(){document.documentElement.removeChild(e)}),0)}var E=function(n,e){return new Promise((function(t,o){var i=F({},e);A((function(r){e.control&&r.registerHandler(n,(function(n){var o=e.onSuccess;delete i.onSuccess,"function"==typeof o&&(o(n),t({code:"0",message:"success"}))})),r.callHandler(n,e,(function(r){var a=r.code,c=r.message,u=r.data,d=parseInt(a),p=I(d),f=i[p];if(l("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c,callbackFun:f}),"onFail"===p)return s({method:n,errorcode:d,message:c||JSON.stringify(u)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(c?{code:a,message:c}:u),void o({_code:d,message:c,data:u});"function"==typeof f&&f(u||c),t({_code:d,message:c,data:u})}))}))}))},j=function(n,e,t,o){return new(t||(t=Promise))((function(i,r){function a(n){try{c(o.next(n))}catch(n){r(n)}}function s(n){try{c(o.throw(n))}catch(n){r(n)}}function c(n){var e;n.done?i(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(a,s)}c((o=o.apply(n,e||[])).next())}))},D=function(n,e){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=e.call(n,a)}catch(n){r=[6,n],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])}}},O=i(),V=O.platform,R=new P(O);!function(){var n=this,e={platform:V,authMethod:"config",bridgeInit:"pc"===V?function(){return j(n,void 0,void 0,(function(){return D(this,(function(n){return C.init(),[2,x]}))}))}:function(){return new Promise((function(n,e){A((function(e){l("注册resume事件 "),e.registerHandler("resume",(function(n){l("resume监听到回调,相关参数 ",{resData:n}),S.execEvent("resume",n)})),l("注册unreadMsgAction事件 "),e.registerHandler("unreadMsgAction",(function(n){l("unreadMsgAction监听到回调,相关参数 ",{resData:n}),S.execEvent("unreadMsgAction",n)})),l("注册webViewMsgReceive事件 "),e.registerHandler("webViewMsgReceive",(function(n){l("webViewMsgReceive监听到回调,相关参数 ",{resData:n}),S.execEvent("webViewMsgReceive",n)})),e.registerHandler("pushWorkMsg",(function(n){l("pushWorkMsg监听到回调,相关参数 ",{resData:n}),S.execEvent("pushWorkMsg",n)})),e.registerHandler("getTogetherCallback",(function(n){l("getTogetherCallback监听到回调,相关参数 ",{resData:n}),S.execEvent("getTogetherCallback",n)})),e.registerHandler("sendMsgCommon",(function(n){l("sendMsgCommon ",{resData:n}),S.execEvent("sendMsgCommon",n)})),n()}))})).then((function(){return E}))},event:{on:function(n,e){S.on(n,e)},off:function(n,e){S.off(n,e)}}};R.setPlatform(e)}();var B={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var W=function(n,e){var t=e.params,o=void 0===t?{}:t,i=e.platform,r=void 0===i?B:i;R.setAPI(n,r),R.invokeAPI(n,o)};function _(n){W("biz.util.openLink",{params:n})}function N(n){W("biz.util.feedback",{params:n})}function L(n){W("biz.util.open",{params:n})}var U={pc:{vs:"0.0.0"}};function H(n){W("biz.util.openSlidePanel",{params:n,platform:U})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(n){W("biz.util.share",{params:n,platform:J})}function q(n){W("biz.util.previewFile",{params:n})}function G(n){W("biz.util.previewImage",{params:n})}function K(n){W("biz.util.downloadFile",{params:n})}function $(n){W("biz.util.uploadAttachment",{params:n})}function X(n){W("biz.util.clipboardFileUpload",{params:n})}function Z(n){W("biz.util.proxy",{params:n})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function nn(n){W("biz.util.datepicker",{params:n,platform:Q})}var en={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function tn(n){W("biz.util.datetimepicker",{params:n,platform:en})}var on={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rn(n){W("biz.util.scan",{params:n,platform:on})}var an={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function sn(n){W("biz.map.view",{params:n,platform:an})}var cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function un(n){W("biz.map.multipointView",{params:n,platform:cn})}var dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function pn(n){W("biz.util.chosen",{params:n,platform:dn})}var ln={pc:{vs:"0.0.0"}};function fn(n){W("biz.util.openSingleWebview",{params:n,platform:ln})}function vn(n){W("biz.util.getSingleWebviewData",{params:n})}function mn(n){W("biz.util.injectScript",{params:n})}var gn={pc:{vs:"0.0.0"}};function hn(n){W("biz.util.closeWindow",{params:n,platform:gn})}var bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function wn(n){W("biz.util.remind",{params:n,platform:bn})}function yn(n){W("biz.util.takePicture",{params:n})}var kn={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pn(n){W("biz.util.openVideoPlayer",{params:n,platform:kn})}function Sn(n){W("biz.util.openMediaFileDialog",{params:n})}function zn(n){W("biz.util.mediaFileUpload",{params:n})}function Cn(n){W("biz.util.invoice",{params:n})}function Tn(n){W("biz.util.pushWorkMsg",{params:n})}function In(n){W("biz.util.openTalYoungToTopic",{params:n})}var Mn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xn(n){W("biz.util.getToken",{params:n,platform:Mn})}var Fn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function An(n){W("biz.util.authStart",{params:n,platform:Fn})}var En={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jn(n){W("biz.util.authFinish",{params:n,platform:En})}var Dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function On(n){W("biz.util.assistantCreate",{params:n,platform:Dn})}var Vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Rn(n){W("biz.util.yachEvent",{params:n,platform:Vn})}var Bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Wn(n){W("biz.util.topicEvent",{params:n,platform:Bn})}var _n={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Nn(n){W("biz.util.openTogetherEyeWebview",{params:n,platform:_n})}var Ln={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Un(n){W("biz.util.getTogetherConfig",{params:n,platform:Ln})}function Hn(n){W("biz.util.rouseApp",{params:n})}function Jn(n){W("biz.util.externalLinkPreviewFile",{params:n})}var Yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function qn(n){W("biz.util.zfbAuth",{params:n,platform:Yn})}var Gn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Kn(n){W("biz.util.savePic",{params:n,platform:Gn})}function $n(n){W("biz.util.complain",{params:n})}function Xn(n){W("biz.util.selectDepartment",{params:n})}var Zn={pc:{vs:"0.0.0"}};function Qn(n){W("biz.util.createModifySchedule",{params:n,platform:Zn})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function ee(n){W("biz.util.openUserSchedule",{params:n,platform:ne})}var te={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function oe(n){W("onlineDocmentOpenTeamChat",{params:n,platform:te})}var ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function re(n){W("biz.util.entergroupCheck",{params:n,platform:ie})}var ae={pc:{vs:"1.8.0"}};function se(n){W("biz.util.resetSessionUnread",{params:n,platform:ae})}var ce={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function ue(n){W("biz.util.weeklyRead",{params:n,platform:ce})}var de={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function pe(n){W("biz.util.disableScreenCapture",{params:n,platform:de})}var le={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function fe(n){W("biz.util.openFutureGroup",{params:n,platform:le})}var ve={pc:{vs:"1.8.8"}};function me(n){W("biz.util.knowledgeBaseSelect",{params:n,platform:ve})}var ge=function(){return(ge=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function he(n){return function(e){return ge(ge({},n),e)}}var be=he({control:!0,showIcon:!0,iconIndex:1}),we={ios:{vs:"0.0.0",paramsDeal:be},android:{vs:"0.0.0",paramsDeal:be}};function ye(n){W("biz.navigation.setIcon",{params:n,platform:we})}function ke(n){W("biz.navigation.setTitle",{params:n})}var Pe=he({control:!0}),Se={ios:{vs:"0.0.0",paramsDeal:Pe},android:{vs:"0.0.0",paramsDeal:Pe}};function ze(n){W("biz.navigation.setMenu",{params:n,platform:Se})}function Ce(n){W("biz.navigation.close",{params:n})}function Te(n){W("biz.navigation.replace",{params:n})}var Ie={pc:{vs:"0.0.0"}};function Me(n){W("biz.navigation.quit",{params:n,platform:Ie})}var xe=he({show:!0,control:!1,text:""}),Fe={ios:{vs:"0.0.0",paramsDeal:xe},android:{vs:"0.0.0",paramsDeal:xe},pc:{vs:"0.0.0"}};function Ae(n){W("biz.navigation.setRight",{params:n,platform:Fe})}var Ee=he({control:!0}),je={ios:{vs:"0.0.0",paramsDeal:Ee},android:{vs:"0.0.0",paramsDeal:Ee}};function De(n){W("biz.navigation.setTitleExpandIcon",{params:n,platform:je})}function Oe(n){W("biz.navigation.updateExpandTitle",{params:n})}var Ve=he({show:!0,control:!1,text:""}),Re={ios:{vs:"0.0.0",paramsDeal:Ve},android:{vs:"0.0.0",paramsDeal:Ve},pc:{vs:"0.0.0"}};function Be(n){W("biz.navigation.setLeft",{params:n,platform:Re})}var We={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _e(n){W("biz.navigation.goBack",{params:n,platform:We})}var Ne={pc:{vs:"0.0.0"}};function Le(n){W("biz.navigation.setWindowBig",{params:n,platform:Ne})}function Ue(n){W("biz.navigation.tencentMeeting",{params:n})}function He(n){W("biz.navigation.tencentMeetingBegin",{params:n})}var Je=he({nativePanEnable:!0,webPanEnable:!0}),Ye={ios:{vs:"0.0.0",paramsDeal:Je},android:{vs:"0.0.0",paramsDeal:Je}};function qe(n){W("biz.navigation.setPanGestureEnable",{params:n,platform:Ye})}function Ge(n){W("biz.contact.complexPicker",{params:n})}function Ke(n){W("biz.contact.departmentsPicker",{params:n})}function $e(n){W("biz.group.groupComplexPicker",{params:n})}function Xe(n){W("biz.chat.chooseConversationByCorpId",{params:n})}var Ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Qe(n){W("biz.chat.pickConversation",{params:n,platform:Ze})}function nt(n){W("biz.chat.openSingleChat",{params:n})}function et(n){W("biz.chat.openTeamChat",{params:n})}function tt(n){W("biz.chat.openSquad",{params:n})}function ot(n){W("biz.chat.sendP2PMsg",{params:n})}var it={pc:{vs:"0.0.0"}};function rt(n){W("primary.createTab",{params:n,platform:it})}var at={pc:{vs:"0.0.0"}};function st(n){W("primary.weeklyShare",{params:n,platform:at})}var ct={pc:{vs:"0.0.0"}};function ut(n){W("primary.fullScreen",{params:n,platform:ct})}var dt={pc:{vs:"0.0.0"}};function pt(n){W("primary.exitFullScreen",{params:n,platform:dt})}function lt(n){W("runtime.permission.requestAuthCode",{params:n})}var ft={vs:"1.9.9"},vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:ft};function mt(n){W("device.notification.showPreloader",{params:n,platform:vt})}function gt(n){W("device.notification.showCustomOverlayContent",{params:n,platform:{pc:ft}})}var ht={vs:"1.9.9"},bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:ht};function wt(n){W("device.notification.hidePreloader",{params:n,platform:bt})}function yt(n){W("device.notification.hideCustomOverlayContent",{params:n,platform:{pc:ht}})}var kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pt(n){W("device.notification.vibrate",{params:n,platform:kt})}function St(n){W("device.notification.toast",{params:n})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ct(n){W("device.notification.actionSheet",{params:n,platform:zt})}var Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function It(n){W("device.base.getPhoneInfo",{params:n,platform:Tt})}var Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function xt(n){W("device.notification.alert",{params:n,platform:Mt})}var Ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function At(n){W("device.notification.confirm",{params:n,platform:Ft})}var Et={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jt(n){W("device.geolocation.get",{params:n,platform:Et})}var Dt={android:{vs:"0.0.0"}};function Ot(n){W("device.geolocation.getSwitch",{params:n,platform:Dt})}function Vt(n){W("device.system.getLang",{params:n})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(n){W("device.audio.startRecord",{params:n,platform:Rt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _t(n){W("device.audio.stopRecord",{params:n,platform:Wt})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(n){W("device.audio.onRecordEnd",{params:n,platform:Nt})}var Ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ht(n){W("device.audio.download",{params:n,platform:Ut})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(n){W("device.audio.play",{params:n,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(n){W("device.audio.pause",{params:n,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(n){W("device.audio.stop",{params:n,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(n){W("device.audio.onPlayEnd",{params:n,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function no(n){W("device.audio.resume",{params:n,platform:Qt})}var eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(n){W("device.connection.getNetworkType",{params:n,platform:eo})}var oo={pc:{vs:"0.0.0"}};function io(n){W("device.connection.isAtTal",{params:n,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function ao(n){W("device.base.getUUID",{params:n,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(n){W("device.base.checkStepPermission",{params:n,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function po(n){W("device.audio.onRecordEnd_v2",{params:n,platform:uo})}var lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fo(n){W("device.audio.startRecord_v2",{params:n,platform:lo})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mo(n){W("device.audio.stopRecord_v2",{params:n,platform:vo})}var go={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ho(n){W("device.system.setLight",{params:n,platform:go})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(n){W("biz.telephone.showCallMenu",{params:n,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(n){W("biz.telephone.call",{params:n,platform:yo})}var Po={ios:{vs:"0.0.0"}};function So(n){W("ui.webViewBounce.disable",{params:n,platform:Po})}var zo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Co(n){W("ui.pullToRefresh.enable",{params:n,platform:zo})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(n){W("ui.pullToRefresh.stop",{params:n,platform:To})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xo(n){W("ui.pullToRefresh.disable",{params:n,platform:Mo})}var Fo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ao(n){W("util.domainStorage.getItem",{params:n,platform:Fo})}var Eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jo(n){W("util.domainStorage.setItem",{params:n,platform:Eo})}var Do={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oo(n){W("util.domainStorage.removeItem",{params:n,platform:Do})}var Vo={pc:{vs:"1.7.0"}};function Ro(n){W("util.tool.writeLog",{params:n,platform:Vo})}var Bo={pc:{vs:"1.7.0"}};function Wo(n){W("util.tool.flushLog",{params:n,platform:Bo})}var _o={pc:{vs:"1.9.9"}};function No(n){W("biz.util.capturePage",{params:n,platform:_o})}var Lo={ios:{vs:"0.0.0"}};function Uo(n){W("biz.webViewMessage.send",{params:n,platform:Lo})}function Ho(n){W("app.custom.talYoungFilesUpload",{params:n})}var Jo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function Yo(n){W("biz.util.addAppToNav",{params:n,platform:Jo})}console.log("add rouseApp ------------\x3e",Hn);var qo=R.exportSdk,Go=qo.version,Ko=qo.sdkVersion,$o=qo.env,Xo=qo.platform,Zo=qo.platformV2,Qo=qo.config,ni=qo.ready,ei=qo.error,ti=qo.on,oi=qo.off;e.default={version:Go,sdkVersion:Ko,env:$o,platform:Xo,platformV2:Zo,config:Qo,ready:ni,error:ei,on:ti,off:oi,biz:{util:{openLink:_,feedback:N,open:L,openSlidePanel:H,share:Y,previewFile:q,previewImage:G,downloadFile:K,uploadAttachment:$,clipboardFileUpload:X,proxy:Z,datepicker:nn,datetimepicker:tn,scan:rn,chosen:pn,openSingleWebview:fn,getSingleWebviewData:vn,injectScript:mn,onlineDocmentOpenTeamChat:oe,entergroupCheck:re,resetSessionUnread:se,weeklyRead:ue,openFutureGroup:fe,closeWindow:hn,remind:wn,takePicture:yn,openVideoPlayer:Pn,openMediaFileDialog:Sn,mediaFileUpload:zn,invoice:Cn,pushWorkMsg:Tn,openTalYoungToTopic:In,getToken:xn,authStart:An,authFinish:jn,assistantCreate:On,yachEvent:Rn,topicEvent:Wn,openTogetherEyeWebview:Nn,getTogetherConfig:Un,rouseApp:Hn,externalLinkPreviewFile:Jn,savePic:Kn,zfbAuth:qn,complain:$n,selectDepartment:Xn,createModifySchedule:Qn,openUserSchedule:ee,disableScreenCapture:pe,addAppToNav:Yo,knowledgeBaseSelect:me,capturePage:No},telephone:{showCallMenu:wo,call:ko},navigation:{setIcon:ye,setTitle:ke,setMenu:ze,close:Ce,replace:Te,quit:Me,setRight:Ae,setTitleExpandIcon:De,updateExpandTitle:Oe,setLeft:Be,goBack:_e,setWindowBig:Le,tencentMeeting:Ue,tencentMeetingBegin:He,setPanGestureEnable:qe},contact:{complexPicker:Ge,departmentsPicker:Ke},group:{groupComplexPicker:$e},chat:{chooseConversationByCorpId:Xe,pickConversation:Qe,openSingleChat:nt,openTeamChat:et,openSquad:tt,sendP2PMsg:ot},map:{view:sn,multipointView:un},webViewMessage:{send:Uo}},runtime:{permission:{requestAuthCode:lt}},primary:{createTab:rt,weeklyShare:st,fullScreen:ut,exitFullScreen:pt},device:{notification:{showPreloader:mt,showCustomOverlayContent:gt,hidePreloader:wt,hideCustomOverlayContent:yt,vibrate:Pt,toast:St,alert:xt,confirm:At,actionSheet:Ct},base:{getPhoneInfo:It,getUUID:ao,checkStepPermission:co},geolocation:{get:jt,getSwitch:Ot},system:{getLang:Vt,setLight:ho},audio:{startRecord:Bt,stopRecord:_t,onRecordEnd:Lt,download:Ht,play:Yt,pause:Gt,stop:$t,onPlayEnd:Zt,resume:no,onRecordEnd_v2:po,startRecord_v2:fo,stopRecord_v2:mo},connection:{getNetworkType:to,isAtTal:io}},ui:{webViewBounce:{disable:So},pullToRefresh:{enable:Co,stop:Io,disable:xo}},util:{domainStorage:{getItem:Ao,setItem:jo,removeItem:Oo},tool:{writeLog:Ro,flushLog:Wo}},app:{custom:{talYoungFilesUpload:Ho}}}}]).default;
|