yach.open.jssdk 4.3.3 → 4.3.5
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.3.5.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/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/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/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/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/openLink.js +0 -2
- package/es/api/biz/util/openMediaFileDialog.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/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/uploadAttachment.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 -2
- package/es/api/device/notification/showPreloader.js +0 -2
- 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/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.js +14 -25
- package/es/lib/bridge/mobile.js +56 -39
- package/es/lib/bridge/pc.js +47 -19
- 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 +20 -50
- package/es/lib/index.js +7 -21
- package/es/lib/sdk/index.js +31 -40
- 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 +14 -19
- package/es/utils/index.js +2 -7
- 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/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/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/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/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/openLink.js +1 -7
- package/libs/api/biz/util/openMediaFileDialog.js +2 -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/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/uploadAttachment.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 +1 -7
- package/libs/api/device/notification/showPreloader.js +1 -7
- 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/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.js +253 -507
- package/libs/lib/bridge/index.js +6 -13
- package/libs/lib/bridge/mobile.js +60 -61
- package/libs/lib/bridge/pc.js +52 -36
- 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 +19 -57
- package/libs/lib/index.js +9 -33
- package/libs/lib/sdk/index.js +31 -49
- 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 +14 -21
- package/libs/utils/index.js +9 -22
- package/package.json +1 -1
- package/dist/yach_jssdk_4.3.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 (window && window.console) {
|
|
27
20
|
myconsole = window.console;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
if (document && 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,46 +1,38 @@
|
|
|
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
|
-
|
|
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
|
+
// platform
|
|
26
22
|
var platform = _sdk.ENV_ENUM.notInYach;
|
|
27
|
-
|
|
28
23
|
if (inIOS) {
|
|
29
24
|
platform = _sdk.ENV_ENUM.ios;
|
|
30
25
|
}
|
|
31
|
-
|
|
32
26
|
if (inAndroid) {
|
|
33
27
|
platform = _sdk.ENV_ENUM.android;
|
|
34
28
|
}
|
|
35
|
-
|
|
36
29
|
if (inPC) {
|
|
37
30
|
platform = _sdk.ENV_ENUM.pc;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
}
|
|
32
|
+
// version
|
|
41
33
|
var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
|
|
42
|
-
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
43
|
-
|
|
34
|
+
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
35
|
+
// language
|
|
44
36
|
var language = typeof navigator !== 'undefined' ? navigator.language : '*';
|
|
45
37
|
return {
|
|
46
38
|
platform: platform,
|
|
@@ -53,6 +45,7 @@ function getENV() {
|
|
|
53
45
|
inIPhone: inIPhone
|
|
54
46
|
},
|
|
55
47
|
version: version,
|
|
56
|
-
language: language
|
|
48
|
+
language: language,
|
|
49
|
+
env: isTest ? 'test' : 'online'
|
|
57
50
|
};
|
|
58
51
|
}
|
package/libs/utils/index.js
CHANGED
|
@@ -1,55 +1,42 @@
|
|
|
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
|
-
var env =
|
|
39
|
+
var env = (0, _env.getENV)().env;
|
|
53
40
|
var version = (0, _env.getENV)().version;
|
|
54
41
|
var timestamp = (0, _now["default"])();
|
|
55
42
|
var params = (0, _assign["default"])({
|
package/package.json
CHANGED
package/dist/yach_jssdk_4.3.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.3.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=o.notInYach;return t&&(c=o.ios),i&&(c=o.android),r&&(c=o.pc),{platform:c,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:"*"}}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 Eo})),t.d(e,"sdkVersion",(function(){return Fo})),t.d(e,"env",(function(){return Do})),t.d(e,"platform",(function(){return jo})),t.d(e,"platformV2",(function(){return Vo})),t.d(e,"config",(function(){return Wo})),t.d(e,"ready",(function(){return Ro})),t.d(e,"error",(function(){return _o})),t.d(e,"on",(function(){return Bo})),t.d(e,"off",(function(){return Oo})),t.d(e,"openLink",(function(){return B})),t.d(e,"feedback",(function(){return O})),t.d(e,"open",(function(){return L})),t.d(e,"openSlidePanel",(function(){return U})),t.d(e,"share",(function(){return q})),t.d(e,"previewFile",(function(){return Y})),t.d(e,"previewImage",(function(){return J})),t.d(e,"downloadFile",(function(){return K})),t.d(e,"uploadAttachment",(function(){return G})),t.d(e,"clipboardFileUpload",(function(){return $})),t.d(e,"proxy",(function(){return X})),t.d(e,"datepicker",(function(){return Q})),t.d(e,"scan",(function(){return on})),t.d(e,"chosen",(function(){return dn})),t.d(e,"openSingleWebview",(function(){return ln})),t.d(e,"getSingleWebviewData",(function(){return fn})),t.d(e,"injectScript",(function(){return vn})),t.d(e,"closeWindow",(function(){return gn})),t.d(e,"showCallMenu",(function(){return ro})),t.d(e,"call",(function(){return so})),t.d(e,"setIcon",(function(){return pe})),t.d(e,"setTitle",(function(){return le})),t.d(e,"setMenu",(function(){return me})),t.d(e,"close",(function(){return ge})),t.d(e,"replacePage",(function(){return he})),t.d(e,"quit",(function(){return we})),t.d(e,"setRight",(function(){return Pe})),t.d(e,"setTitleExpandIcon",(function(){return Ie})),t.d(e,"updateExpandTitle",(function(){return Te})),t.d(e,"setLeft",(function(){return xe})),t.d(e,"goBack",(function(){return Ee})),t.d(e,"complexPicker",(function(){return Be})),t.d(e,"departmentsPicker",(function(){return Oe})),t.d(e,"groupComplexPicker",(function(){return Le})),t.d(e,"chooseConversationByCorpId",(function(){return Ne})),t.d(e,"pickConversation",(function(){return He})),t.d(e,"openSingleChat",(function(){return qe})),t.d(e,"openTeamChat",(function(){return Ye})),t.d(e,"openSquad",(function(){return Je})),t.d(e,"sendP2PMsg",(function(){return Ke})),t.d(e,"mapView",(function(){return an})),t.d(e,"multipointView",(function(){return cn})),t.d(e,"requestAuthCode",(function(){return ot})),t.d(e,"createTab",(function(){return $e})),t.d(e,"weeklyShare",(function(){return Ze})),t.d(e,"fullScreen",(function(){return nt})),t.d(e,"exitFullScreen",(function(){return tt})),t.d(e,"showPreloader",(function(){return rt})),t.d(e,"hidePreloader",(function(){return st})),t.d(e,"vibrate",(function(){return ut})),t.d(e,"toast",(function(){return dt})),t.d(e,"alert",(function(){return gt})),t.d(e,"confirm",(function(){return bt})),t.d(e,"getPhoneInfo",(function(){return vt})),t.d(e,"getUUID",(function(){return Jt})),t.d(e,"checkStepPermission",(function(){return Gt})),t.d(e,"getGeolocation",(function(){return yt})),t.d(e,"getGeolocationSwitch",(function(){return Pt})),t.d(e,"getLang",(function(){return St})),t.d(e,"startRecord",(function(){return It})),t.d(e,"stopRecord",(function(){return Ct})),t.d(e,"onRecordEnd",(function(){return xt})),t.d(e,"downloadAudio",(function(){return Et})),t.d(e,"playAudio",(function(){return Dt})),t.d(e,"pauseAudio",(function(){return Vt})),t.d(e,"stopAudio",(function(){return Rt})),t.d(e,"onPlayEnd",(function(){return Bt})),t.d(e,"resumeAudio",(function(){return Lt})),t.d(e,"getNetworkType",(function(){return Ut})),t.d(e,"isAtTal",(function(){return qt})),t.d(e,"webViewBounceDisable",(function(){return uo})),t.d(e,"pullToRefreshEnable",(function(){return lo})),t.d(e,"pullToRefreshStop",(function(){return vo})),t.d(e,"pullToRefreshDisable",(function(){return go})),t.d(e,"getItem",(function(){return bo})),t.d(e,"setItem",(function(){return yo})),t.d(e,"removeItem",(function(){return Po})),t.d(e,"writeLog",(function(){return zo})),t.d(e,"flushLog",(function(){return To})),t.d(e,"remind",(function(){return bn})),t.d(e,"takePicture",(function(){return wn})),t.d(e,"datetimepicker",(function(){return en})),t.d(e,"actionSheet",(function(){return lt})),t.d(e,"webViewMessageSend",(function(){return Mo})),t.d(e,"talYoungFilesUpload",(function(){return xo})),t.d(e,"openVideoPlayer",(function(){return kn})),t.d(e,"openMediaFileDialog",(function(){return Pn})),t.d(e,"mediaFileUpload",(function(){return Sn})),t.d(e,"invoice",(function(){return zn})),t.d(e,"pushWorkMsg",(function(){return In})),t.d(e,"openTalYoungToTopic",(function(){return Tn})),t.d(e,"getToken",(function(){return Mn})),t.d(e,"authStart",(function(){return An})),t.d(e,"authFinish",(function(){return Fn})),t.d(e,"assistantCreate",(function(){return jn})),t.d(e,"yachEvent",(function(){return Wn})),t.d(e,"openTogetherEyeWebview",(function(){return _n})),t.d(e,"getTogetherConfig",(function(){return On})),t.d(e,"rouseApp",(function(){return Ln})),t.d(e,"externalLinkPreviewFile",(function(){return Nn})),t.d(e,"savePic",(function(){return Yn})),t.d(e,"zfbAuth",(function(){return Hn})),t.d(e,"complain",(function(){return Jn})),t.d(e,"onRecordEnd_v2",(function(){return Xt})),t.d(e,"startRecord_v2",(function(){return Qt})),t.d(e,"stopRecord_v2",(function(){return eo})),t.d(e,"selectDepartment",(function(){return Kn})),t.d(e,"setWindowBig",(function(){return De})),t.d(e,"tencentMeeting",(function(){return je})),t.d(e,"tencentMeetingBegin",(function(){return Ve})),t.d(e,"createModifySchedule",(function(){return $n})),t.d(e,"onlineDocmentOpenTeamChat",(function(){return ne})),t.d(e,"entergroupCheck",(function(){return te})),t.d(e,"resetSessionUnread",(function(){return ie})),t.d(e,"setLight",(function(){return oo})),t.d(e,"openUserSchedule",(function(){return Zn})),t.d(e,"disableScreenCapture",(function(){return ae})),t.d(e,"setPanGestureEnable",(function(){return _e})),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().version,t=Date.now(),o=a({group:"yach",project:"yach_31_jssdk",env:"test",version:e,timestamp:t},n);console.log("jssdk 项目 bpit 上报数据:",o),r(o)}var c=function(n,e){var t=d(n),o=d(e),i=t.pop(),r=o.pop(),a=v(t,o);return 0!==a?a:i&&r?v(i.split("."),r.split(".")):i||r?i?-1:1:0},u=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,d=function(n){if("string"!=typeof n)throw new TypeError("Invalid argument expected string");var e=n.match(u);if(!e)throw new Error("Invalid argument not valid semver ('"+n+"' received)");return e.shift(),e},p=function(n){return"*"===n||"x"===n||"X"===n},l=function(n){var e=parseInt(n,10);return isNaN(e)?n:e},f=function(n,e){if(p(n)||p(e))return 0;var t=function(n,e){return typeof n!=typeof e?[String(n),String(e)]:[n,e]}(l(n),l(e)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},v=function(n,e){for(var t=0;t<Math.max(n.length,e.length);t++){var o=f(n[t]||"0",e[t]||"0");if(0!==o)return o}return 0},m={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},g=(Object.keys(m),t(0)),h=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:g.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(c(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(){})).catch((function(n){}))})).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}(),b={log:function(){},warn:function(){},error:function(){}};if(window&&window.console&&(b=window.console),document&&document.body){var w=document.createElement("iframe");w&&w.contentWindow&&w.contentWindow.console&&(w.style.display="none",document.body.appendChild(w),b=w.contentWindow.console)}var y=b.log.bind(b),k=(b.warn.bind(b),b.error.bind(b),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function P(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return y("%c Yach-jssdk log: ",k,n)}var 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},I=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=e.code,u=e.message;if("request"===o)switch(i){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":S.execEvent(r,s);break;case"zoomInClick":var d=document.documentElement.scrollTop||document.body.scrollTop,p=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:p,title:s&&s.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:p,title:s&&s.title}}))}else if("response"===o){var l=n.getPending(a);l&&l.receiveResponse({data:s,code:c,message:u}),-3!=c&&n.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(e){P("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 C(n){return T.get(n)||"onFail"}var M=function(n,e){return new Promise((function(t){return I.invokeAPI(n,e,(function(o){var i=o.data,r=o.code,a=o.message,c=parseInt(r),u=C(c);-2===c&&s({method:n,errorcode:c,message:a||"SDK执行失败回调,相关参数"});var d=e[u];P("SDK执行后回调,相关参数 ",{method:n,param:e,data:i,_code:c,message:a,callbackFun:d}),"function"==typeof d&&d(i||a),t({_code:c,message:a,data:i})}))}))},x=function(){return(x=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=x({},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=C(d);-2!==d&&7!==d||(s({method:n,errorcode:d,message:c||"SDK执行失败回调,相关参数"}),P("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c}),o({_code:d,message:c}));var l=i[p];P("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c,callbackFun:l}),"function"==typeof l&&l(u||c),t({_code:d,message:c,data:u})}))}))}))},F=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])}}},j=i(),V=j.platform,W=new h(j);!function(){var n=this,e={platform:V,authMethod:"config",bridgeInit:"pc"===V?function(){return F(n,void 0,void 0,(function(){return D(this,(function(n){return I.init(),[2,M]}))}))}:function(){return new Promise((function(n,e){A((function(e){P("注册resume事件 "),e.registerHandler("resume",(function(n){P("resume监听到回调,相关参数 ",{resData:n}),S.execEvent("resume",n)})),P("注册unreadMsgAction事件 "),e.registerHandler("unreadMsgAction",(function(n){P("unreadMsgAction监听到回调,相关参数 ",{resData:n}),S.execEvent("unreadMsgAction",n)})),P("注册webViewMsgReceive事件 "),e.registerHandler("webViewMsgReceive",(function(n){P("webViewMsgReceive监听到回调,相关参数 ",{resData:n}),S.execEvent("webViewMsgReceive",n)})),e.registerHandler("pushWorkMsg",(function(n){P("pushWorkMsg监听到回调,相关参数 ",{resData:n}),S.execEvent("pushWorkMsg",n)})),e.registerHandler("getTogetherCallback",(function(n){P("getTogetherCallback监听到回调,相关参数 ",{resData:n}),S.execEvent("getTogetherCallback",n)})),e.registerHandler("sendMsgCommon",(function(n){P("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)}}};W.setPlatform(e)}();var R={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var _=function(n,e){var t=e.params,o=void 0===t?{}:t,i=e.platform,r=void 0===i?R:i;W.setAPI(n,r),W.invokeAPI(n,o)};function B(n){_("biz.util.openLink",{params:n})}function O(n){_("biz.util.feedback",{params:n})}function L(n){_("biz.util.open",{params:n})}var N={pc:{vs:"0.0.0"}};function U(n){_("biz.util.openSlidePanel",{params:n,platform:N})}var H={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function q(n){_("biz.util.share",{params:n,platform:H})}function Y(n){_("biz.util.previewFile",{params:n})}function J(n){_("biz.util.previewImage",{params:n})}function K(n){_("biz.util.downloadFile",{params:n})}function G(n){_("biz.util.uploadAttachment",{params:n})}function $(n){_("biz.util.clipboardFileUpload",{params:n})}function X(n){_("biz.util.proxy",{params:n})}var Z={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Q(n){_("biz.util.datepicker",{params:n,platform:Z})}var nn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function en(n){_("biz.util.datetimepicker",{params:n,platform:nn})}var tn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function on(n){_("biz.util.scan",{params:n,platform:tn})}var rn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function an(n){_("biz.map.view",{params:n,platform:rn})}var sn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function cn(n){_("biz.map.multipointView",{params:n,platform:sn})}var un={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function dn(n){_("biz.util.chosen",{params:n,platform:un})}var pn={pc:{vs:"0.0.0"}};function ln(n){_("biz.util.openSingleWebview",{params:n,platform:pn})}function fn(n){_("biz.util.getSingleWebviewData",{params:n})}function vn(n){_("biz.util.injectScript",{params:n})}var mn={pc:{vs:"0.0.0"}};function gn(n){_("biz.util.closeWindow",{params:n,platform:mn})}var hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function bn(n){_("biz.util.remind",{params:n,platform:hn})}function wn(n){_("biz.util.takePicture",{params:n})}var yn={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function kn(n){_("biz.util.openVideoPlayer",{params:n,platform:yn})}function Pn(n){_("biz.util.openMediaFileDialog",{params:n})}function Sn(n){_("biz.util.mediaFileUpload",{params:n})}function zn(n){_("biz.util.invoice",{params:n})}function In(n){_("biz.util.pushWorkMsg",{params:n})}function Tn(n){_("biz.util.openTalYoungToTopic",{params:n})}var Cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mn(n){_("biz.util.getToken",{params:n,platform:Cn})}var xn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function An(n){_("biz.util.authStart",{params:n,platform:xn})}var En={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fn(n){_("biz.util.authFinish",{params:n,platform:En})}var Dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jn(n){_("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 Wn(n){_("biz.util.yachEvent",{params:n,platform:Vn})}var Rn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function _n(n){_("biz.util.openTogetherEyeWebview",{params:n,platform:Rn})}var Bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function On(n){_("biz.util.getTogetherConfig",{params:n,platform:Bn})}function Ln(n){_("biz.util.rouseApp",{params:n})}function Nn(n){_("biz.util.externalLinkPreviewFile",{params:n})}var Un={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Hn(n){_("biz.util.zfbAuth",{params:n,platform:Un})}var qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yn(n){_("biz.util.savePic",{params:n,platform:qn})}function Jn(n){_("biz.util.complain",{params:n})}function Kn(n){_("biz.util.selectDepartment",{params:n})}var Gn={pc:{vs:"0.0.0"}};function $n(n){_("biz.util.createModifySchedule",{params:n,platform:Gn})}var Xn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Zn(n){_("biz.util.openUserSchedule",{params:n,platform:Xn})}var Qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function ne(n){_("onlineDocmentOpenTeamChat",{params:n,platform:Qn})}var ee={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function te(n){_("biz.util.entergroupCheck",{params:n,platform:ee})}var oe={pc:{vs:"1.8.0"}};function ie(n){_("biz.util.resetSessionUnread",{params:n,platform:oe})}var re={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ae(n){_("biz.util.disableScreenCapture",{params:n,platform:re})}var se=function(){return(se=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 ce(n){return function(e){return se(se({},n),e)}}var ue=ce({control:!0,showIcon:!0,iconIndex:1}),de={ios:{vs:"0.0.0",paramsDeal:ue},android:{vs:"0.0.0",paramsDeal:ue}};function pe(n){_("biz.navigation.setIcon",{params:n,platform:de})}function le(n){_("biz.navigation.setTitle",{params:n})}var fe=ce({control:!0}),ve={ios:{vs:"0.0.0",paramsDeal:fe},android:{vs:"0.0.0",paramsDeal:fe}};function me(n){_("biz.navigation.setMenu",{params:n,platform:ve})}function ge(n){_("biz.navigation.close",{params:n})}function he(n){_("biz.navigation.replace",{params:n})}var be={pc:{vs:"0.0.0"}};function we(n){_("biz.navigation.quit",{params:n,platform:be})}var ye=ce({show:!0,control:!1,text:""}),ke={ios:{vs:"0.0.0",paramsDeal:ye},android:{vs:"0.0.0",paramsDeal:ye},pc:{vs:"0.0.0"}};function Pe(n){_("biz.navigation.setRight",{params:n,platform:ke})}var Se=ce({control:!0}),ze={ios:{vs:"0.0.0",paramsDeal:Se},android:{vs:"0.0.0",paramsDeal:Se}};function Ie(n){_("biz.navigation.setTitleExpandIcon",{params:n,platform:ze})}function Te(n){_("biz.navigation.updateExpandTitle",{params:n})}var Ce=ce({show:!0,control:!1,text:""}),Me={ios:{vs:"0.0.0",paramsDeal:Ce},android:{vs:"0.0.0",paramsDeal:Ce},pc:{vs:"0.0.0"}};function xe(n){_("biz.navigation.setLeft",{params:n,platform:Me})}var Ae={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ee(n){_("biz.navigation.goBack",{params:n,platform:Ae})}var Fe={pc:{vs:"0.0.0"}};function De(n){_("biz.navigation.setWindowBig",{params:n,platform:Fe})}function je(n){_("biz.navigation.tencentMeeting",{params:n})}function Ve(n){_("biz.navigation.tencentMeetingBegin",{params:n})}var We=ce({nativePanEnable:!0,webPanEnable:!0}),Re={ios:{vs:"0.0.0",paramsDeal:We},android:{vs:"0.0.0",paramsDeal:We}};function _e(n){_("biz.navigation.setPanGestureEnable",{params:n,platform:Re})}function Be(n){_("biz.contact.complexPicker",{params:n})}function Oe(n){_("biz.contact.departmentsPicker",{params:n})}function Le(n){_("biz.group.groupComplexPicker",{params:n})}function Ne(n){_("biz.chat.chooseConversationByCorpId",{params:n})}var Ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function He(n){_("biz.chat.pickConversation",{params:n,platform:Ue})}function qe(n){_("biz.chat.openSingleChat",{params:n})}function Ye(n){_("biz.chat.openTeamChat",{params:n})}function Je(n){_("biz.chat.openSquad",{params:n})}function Ke(n){_("biz.chat.sendP2PMsg",{params:n})}var Ge={pc:{vs:"0.0.0"}};function $e(n){_("primary.createTab",{params:n,platform:Ge})}var Xe={pc:{vs:"0.0.0"}};function Ze(n){_("primary.weeklyShare",{params:n,platform:Xe})}var Qe={pc:{vs:"0.0.0"}};function nt(n){_("primary.fullScreen",{params:n,platform:Qe})}var et={pc:{vs:"0.0.0"}};function tt(n){_("primary.exitFullScreen",{params:n,platform:et})}function ot(n){_("runtime.permission.requestAuthCode",{params:n})}var it={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rt(n){_("device.notification.showPreloader",{params:n,platform:it})}var at={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function st(n){_("device.notification.hidePreloader",{params:n,platform:at})}var ct={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ut(n){_("device.notification.vibrate",{params:n,platform:ct})}function dt(n){_("device.notification.toast",{params:n})}var pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lt(n){_("device.notification.actionSheet",{params:n,platform:pt})}var ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vt(n){_("device.base.getPhoneInfo",{params:n,platform:ft})}var mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function gt(n){_("device.notification.alert",{params:n,platform:mt})}var ht={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function bt(n){_("device.notification.confirm",{params:n,platform:ht})}var wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yt(n){_("device.geolocation.get",{params:n,platform:wt})}var kt={android:{vs:"0.0.0"}};function Pt(n){_("device.geolocation.getSwitch",{params:n,platform:kt})}function St(n){_("device.system.getLang",{params:n})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function It(n){_("device.audio.startRecord",{params:n,platform:zt})}var Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ct(n){_("device.audio.stopRecord",{params:n,platform:Tt})}var Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xt(n){_("device.audio.onRecordEnd",{params:n,platform:Mt})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(n){_("device.audio.download",{params:n,platform:At})}var Ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Dt(n){_("device.audio.play",{params:n,platform:Ft})}var jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vt(n){_("device.audio.pause",{params:n,platform:jt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Rt(n){_("device.audio.stop",{params:n,platform:Wt})}var _t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(n){_("device.audio.onPlayEnd",{params:n,platform:_t})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(n){_("device.audio.resume",{params:n,platform:Ot})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ut(n){_("device.connection.getNetworkType",{params:n,platform:Nt})}var Ht={pc:{vs:"0.0.0"}};function qt(n){_("device.connection.isAtTal",{params:n,platform:Ht})}var Yt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function Jt(n){_("device.base.getUUID",{params:n,platform:Yt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(n){_("device.base.checkStepPermission",{params:n,platform:Kt})}var $t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Xt(n){_("device.audio.onRecordEnd_v2",{params:n,platform:$t})}var Zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Qt(n){_("device.audio.startRecord_v2",{params:n,platform:Zt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(n){_("device.audio.stopRecord_v2",{params:n,platform:no})}var to={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function oo(n){_("device.system.setLight",{params:n,platform:to})}var io={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ro(n){_("biz.telephone.showCallMenu",{params:n,platform:io})}var ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function so(n){_("biz.telephone.call",{params:n,platform:ao})}var co={ios:{vs:"0.0.0"}};function uo(n){_("ui.webViewBounce.disable",{params:n,platform:co})}var po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lo(n){_("ui.pullToRefresh.enable",{params:n,platform:po})}var fo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vo(n){_("ui.pullToRefresh.stop",{params:n,platform:fo})}var mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function go(n){_("ui.pullToRefresh.disable",{params:n,platform:mo})}var ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function bo(n){_("util.domainStorage.getItem",{params:n,platform:ho})}var wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yo(n){_("util.domainStorage.setItem",{params:n,platform:wo})}var ko={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Po(n){_("util.domainStorage.removeItem",{params:n,platform:ko})}var So={pc:{vs:"1.7.0"}};function zo(n){_("util.tool.writeLog",{params:n,platform:So})}var Io={pc:{vs:"1.7.0"}};function To(n){_("util.tool.flushLog",{params:n,platform:Io})}var Co={ios:{vs:"0.0.0"}};function Mo(n){_("biz.webViewMessage.send",{params:n,platform:Co})}function xo(n){_("app.custom.talYoungFilesUpload",{params:n})}console.log("add rouseApp ------------\x3e",Ln);var Ao=W.exportSdk,Eo=Ao.version,Fo=Ao.sdkVersion,Do=Ao.env,jo=Ao.platform,Vo=Ao.platformV2,Wo=Ao.config,Ro=Ao.ready,_o=Ao.error,Bo=Ao.on,Oo=Ao.off;e.default={version:Eo,sdkVersion:Fo,env:Do,platform:jo,platformV2:Vo,config:Wo,ready:Ro,error:_o,on:Bo,off:Oo,biz:{util:{openLink:B,feedback:O,open:L,openSlidePanel:U,share:q,previewFile:Y,previewImage:J,downloadFile:K,uploadAttachment:G,clipboardFileUpload:$,proxy:X,datepicker:Q,datetimepicker:en,scan:on,chosen:dn,openSingleWebview:ln,getSingleWebviewData:fn,injectScript:vn,onlineDocmentOpenTeamChat:ne,entergroupCheck:te,resetSessionUnread:ie,closeWindow:gn,remind:bn,takePicture:wn,openVideoPlayer:kn,openMediaFileDialog:Pn,mediaFileUpload:Sn,invoice:zn,pushWorkMsg:In,openTalYoungToTopic:Tn,getToken:Mn,authStart:An,authFinish:Fn,assistantCreate:jn,yachEvent:Wn,openTogetherEyeWebview:_n,getTogetherConfig:On,rouseApp:Ln,externalLinkPreviewFile:Nn,savePic:Yn,zfbAuth:Hn,complain:Jn,selectDepartment:Kn,createModifySchedule:$n,openUserSchedule:Zn,disableScreenCapture:ae},telephone:{showCallMenu:ro,call:so},navigation:{setIcon:pe,setTitle:le,setMenu:me,close:ge,replace:he,quit:we,setRight:Pe,setTitleExpandIcon:Ie,updateExpandTitle:Te,setLeft:xe,goBack:Ee,setWindowBig:De,tencentMeeting:je,tencentMeetingBegin:Ve,setPanGestureEnable:_e},contact:{complexPicker:Be,departmentsPicker:Oe},group:{groupComplexPicker:Le},chat:{chooseConversationByCorpId:Ne,pickConversation:He,openSingleChat:qe,openTeamChat:Ye,openSquad:Je,sendP2PMsg:Ke},map:{view:an,multipointView:cn},webViewMessage:{send:Mo}},runtime:{permission:{requestAuthCode:ot}},primary:{createTab:$e,weeklyShare:Ze,fullScreen:nt,exitFullScreen:tt},device:{notification:{showPreloader:rt,hidePreloader:st,vibrate:ut,toast:dt,alert:gt,confirm:bt,actionSheet:lt},base:{getPhoneInfo:vt,getUUID:Jt,checkStepPermission:Gt},geolocation:{get:yt,getSwitch:Pt},system:{getLang:St,setLight:oo},audio:{startRecord:It,stopRecord:Ct,onRecordEnd:xt,download:Et,play:Dt,pause:Vt,stop:Rt,onPlayEnd:Bt,resume:Lt,onRecordEnd_v2:Xt,startRecord_v2:Qt,stopRecord_v2:eo},connection:{getNetworkType:Ut,isAtTal:qt}},ui:{webViewBounce:{disable:uo},pullToRefresh:{enable:lo,stop:vo,disable:go}},util:{domainStorage:{getItem:bo,setItem:yo,removeItem:Po},tool:{writeLog:zo,flushLog:To}},app:{custom:{talYoungFilesUpload:xo}}}}]).default;
|