fcr-ui-scene 3.7.8 → 3.7.9-alpha

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.
Files changed (216) hide show
  1. package/installer/icons/icon.png +0 -0
  2. package/installer/mac/entitlements.mac.plist +1 -5
  3. package/lib/creator/index.js +13 -19
  4. package/lib/creator/provider-initializer.browser.js +4 -3
  5. package/lib/electron/app.js +1 -0
  6. package/lib/electron/bootstrap-sdk.js +19 -2
  7. package/lib/electron/sdk-helper.js +6 -2
  8. package/lib/electron/until.js +3 -0
  9. package/lib/index.js +8 -1
  10. package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
  11. package/lib/modules/components/leave-meeting/store.base.js +46 -5
  12. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +1 -0
  13. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +2 -1
  14. package/lib/modules/dialog/dialogs/share-screen-selection/index.js +0 -12
  15. package/lib/modules/setting/store.base.d.ts +1 -1
  16. package/lib/modules/setting/store.base.js +3 -2
  17. package/lib/modules/share-screen/store.base.js +0 -2
  18. package/lib/modules/share-screen/store.electron.js +54 -31
  19. package/lib/modules/video-window/popover-watcher.js +4 -1
  20. package/lib/modules/video-window/store.js +7 -1
  21. package/lib/modules/video-window/view.js +14 -4
  22. package/lib/providers/device-provider.js +1 -1
  23. package/lib/providers/screen-share/strategy/browser.js +1 -1
  24. package/lib/providers/window/main-window.js +0 -3
  25. package/lib/providers/window/renderer-window.d.ts +3 -0
  26. package/lib/providers/window/renderer-window.js +47 -4
  27. package/lib/providers/window/type.d.ts +1 -0
  28. package/lib/scenes/main-scene.d.ts +1 -0
  29. package/lib/scenes/main-scene.js +32 -1
  30. package/lib/shared-data/setting.js +1 -1
  31. package/lib/utilities/default-config.js +1 -1
  32. package/lib/utilities/logger.js +1 -1
  33. package/package.json +6 -6
  34. package/public/index.html +2 -149
  35. package/public/meeting-manager.js +391 -0
  36. package/lib/creator.d.ts +0 -36
  37. package/lib/creator.js +0 -465
  38. package/lib/modules/action-bar/index.d.ts +0 -56
  39. package/lib/modules/action-bar/index.dev.d.ts +0 -0
  40. package/lib/modules/action-bar/index.dev.js +0 -94
  41. package/lib/modules/action-bar/index.js +0 -108
  42. package/lib/modules/action-bar/store.d.ts +0 -256
  43. package/lib/modules/action-bar/store.js +0 -1572
  44. package/lib/modules/action-bar/types.d.ts +0 -90
  45. package/lib/modules/action-bar/types.js +0 -6
  46. package/lib/modules/action-bar/view.d.ts +0 -5
  47. package/lib/modules/action-bar/view.js +0 -112
  48. package/lib/modules/annotation/annotation-index.d.ts +0 -2
  49. package/lib/modules/annotation/annotation-index.js +0 -80
  50. package/lib/modules/annotation/annotation-toolbar-store.d.ts +0 -75
  51. package/lib/modules/annotation/annotation-toolbar-store.js +0 -459
  52. package/lib/modules/annotation/board-cursor.css +0 -77
  53. package/lib/modules/annotation/components/color-picker/components/color.d.ts +0 -5
  54. package/lib/modules/annotation/components/color-picker/components/color.js +0 -38
  55. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +0 -1
  56. package/lib/modules/annotation/components/color-picker/components/panel.js +0 -109
  57. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +0 -1
  58. package/lib/modules/annotation/components/color-picker/components/picker.js +0 -75
  59. package/lib/modules/annotation/components/color-picker/index.d.ts +0 -2
  60. package/lib/modules/annotation/components/color-picker/index.js +0 -47
  61. package/lib/modules/annotation/components/eraser-picker.d.ts +0 -4
  62. package/lib/modules/annotation/components/eraser-picker.js +0 -144
  63. package/lib/modules/annotation/components/expansion/index.d.ts +0 -1
  64. package/lib/modules/annotation/components/expansion/index.js +0 -100
  65. package/lib/modules/annotation/components/extra-tool-picker.d.ts +0 -1
  66. package/lib/modules/annotation/components/extra-tool-picker.js +0 -62
  67. package/lib/modules/annotation/components/history.d.ts +0 -2
  68. package/lib/modules/annotation/components/history.js +0 -78
  69. package/lib/modules/annotation/components/icons/fold-icon.d.ts +0 -2
  70. package/lib/modules/annotation/components/icons/fold-icon.js +0 -41
  71. package/lib/modules/annotation/components/icons/move-icon.d.ts +0 -1
  72. package/lib/modules/annotation/components/icons/move-icon.js +0 -66
  73. package/lib/modules/annotation/components/item/index.d.ts +0 -1
  74. package/lib/modules/annotation/components/item/index.js +0 -43
  75. package/lib/modules/annotation/components/move-handle.d.ts +0 -5
  76. package/lib/modules/annotation/components/move-handle.js +0 -134
  77. package/lib/modules/annotation/components/pen-picker.d.ts +0 -4
  78. package/lib/modules/annotation/components/pen-picker.js +0 -155
  79. package/lib/modules/annotation/components/screen-capture-picker.d.ts +0 -4
  80. package/lib/modules/annotation/components/screen-capture-picker.js +0 -85
  81. package/lib/modules/annotation/components/shape-picker.d.ts +0 -4
  82. package/lib/modules/annotation/components/shape-picker.js +0 -210
  83. package/lib/modules/annotation/hooks/index.d.ts +0 -14
  84. package/lib/modules/annotation/hooks/index.js +0 -292
  85. package/lib/modules/annotation/index.d.ts +0 -45
  86. package/lib/modules/annotation/index.js +0 -168
  87. package/lib/modules/annotation/store.d.ts +0 -98
  88. package/lib/modules/annotation/store.js +0 -621
  89. package/lib/modules/annotation/style.css +0 -36
  90. package/lib/modules/annotation/view.d.ts +0 -3
  91. package/lib/modules/annotation/view.js +0 -44
  92. package/lib/modules/components/device-control/store.d.ts +0 -42
  93. package/lib/modules/components/device-control/store.js +0 -241
  94. package/lib/modules/components/leave-meeting/store.d.ts +0 -39
  95. package/lib/modules/components/leave-meeting/store.js +0 -270
  96. package/lib/modules/control-bar/components/annotation-button/index.d.ts +0 -1
  97. package/lib/modules/control-bar/components/annotation-button/index.js +0 -72
  98. package/lib/modules/control-bar/reactor.d.ts +0 -2
  99. package/lib/modules/control-bar/reactor.js +0 -8
  100. package/lib/modules/control-bar/types.d.ts +0 -20
  101. package/lib/modules/control-bar/types.js +0 -6
  102. package/lib/modules/dialog/dialogs/pre-setting/index.css +0 -26
  103. package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +0 -6
  104. package/lib/modules/dialog/dialogs/pre-setting/index.js +0 -62
  105. package/lib/modules/dialog/dialogs/widget/electron.d.ts +0 -6
  106. package/lib/modules/dialog/dialogs/widget/electron.js +0 -38
  107. package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +0 -14
  108. package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -110
  109. package/lib/modules/dialog/hooks/useElectron.d.ts +0 -28
  110. package/lib/modules/dialog/hooks/useElectron.js +0 -277
  111. package/lib/modules/dialog/store.d.ts +0 -135
  112. package/lib/modules/dialog/store.js +0 -616
  113. package/lib/modules/event-confirm/components/window/index.d.ts +0 -4
  114. package/lib/modules/event-confirm/components/window/index.js +0 -197
  115. package/lib/modules/event-confirm/index.css +0 -24
  116. package/lib/modules/event-confirm/index.d.ts +0 -27
  117. package/lib/modules/event-confirm/index.js +0 -76
  118. package/lib/modules/event-confirm/store.d.ts +0 -45
  119. package/lib/modules/event-confirm/store.js +0 -345
  120. package/lib/modules/event-confirm/view.d.ts +0 -2
  121. package/lib/modules/event-confirm/view.js +0 -53
  122. package/lib/modules/event-toast/store.d.ts +0 -27
  123. package/lib/modules/event-toast/store.js +0 -205
  124. package/lib/modules/layout/store.d.ts +0 -176
  125. package/lib/modules/layout/store.js +0 -1466
  126. package/lib/modules/participant/store.d.ts +0 -222
  127. package/lib/modules/participant/store.js +0 -1927
  128. package/lib/modules/pc-audio-connect/index.d.ts +0 -22
  129. package/lib/modules/pc-audio-connect/index.js +0 -67
  130. package/lib/modules/pc-audio-connect/store.d.ts +0 -46
  131. package/lib/modules/pc-audio-connect/store.js +0 -304
  132. package/lib/modules/setting/common/advance-link.d.ts +0 -3
  133. package/lib/modules/setting/common/advance-link.js +0 -27
  134. package/lib/modules/setting/common/index.css +0 -26
  135. package/lib/modules/setting/common/useNamespace.d.ts +0 -15
  136. package/lib/modules/setting/common/useNamespace.js +0 -66
  137. package/lib/modules/setting/dialog-wrapper.d.ts +0 -2
  138. package/lib/modules/setting/dialog-wrapper.js +0 -110
  139. package/lib/modules/setting/store.d.ts +0 -261
  140. package/lib/modules/setting/store.js +0 -1321
  141. package/lib/modules/share-screen/store.d.ts +0 -148
  142. package/lib/modules/share-screen/store.js +0 -950
  143. package/lib/modules/share-screen/types.d.ts +0 -26
  144. package/lib/modules/share-screen/types.js +0 -6
  145. package/lib/modules/state-bar/store.d.ts +0 -124
  146. package/lib/modules/state-bar/store.js +0 -664
  147. package/lib/modules/whiteboard/components/progress/electron.d.ts +0 -1
  148. package/lib/modules/whiteboard/components/progress/electron.js +0 -33
  149. package/lib/modules/widget/store.d.ts +0 -14
  150. package/lib/modules/widget/store.js +0 -28
  151. package/lib/providers/annotation-provider.d.ts +0 -124
  152. package/lib/providers/annotation-provider.js +0 -369
  153. package/lib/providers/dialog-provider.d.ts +0 -137
  154. package/lib/providers/dialog-provider.js +0 -194
  155. package/lib/providers/message-provider.d.ts +0 -69
  156. package/lib/providers/message-provider.js +0 -140
  157. package/lib/providers/room-provider.d.ts +0 -194
  158. package/lib/providers/room-provider.js +0 -916
  159. package/lib/providers/screen-share-provider.d.ts +0 -244
  160. package/lib/providers/screen-share-provider.js +0 -835
  161. package/lib/providers/sharing-provider.d.ts +0 -42
  162. package/lib/providers/sharing-provider.js +0 -221
  163. package/lib/providers/user-setting-storage-provider.d.ts +0 -21
  164. package/lib/providers/user-setting-storage-provider.js +0 -65
  165. package/lib/providers/whiteboard-provider.d.ts +0 -24
  166. package/lib/providers/whiteboard-provider.js +0 -127
  167. package/lib/shared-data-source/annotation-data.d.ts +0 -17
  168. package/lib/shared-data-source/annotation-data.js +0 -110
  169. package/lib/shared-data-source/app-list-data.d.ts +0 -34
  170. package/lib/shared-data-source/app-list-data.js +0 -133
  171. package/lib/shared-data-source/chat-data.d.ts +0 -25
  172. package/lib/shared-data-source/chat-data.js +0 -139
  173. package/lib/shared-data-source/config.d.ts +0 -35
  174. package/lib/shared-data-source/config.js +0 -40
  175. package/lib/shared-data-source/confirm-data.d.ts +0 -25
  176. package/lib/shared-data-source/confirm-data.js +0 -97
  177. package/lib/shared-data-source/device-privilege-data.d.ts +0 -8
  178. package/lib/shared-data-source/device-privilege-data.js +0 -25
  179. package/lib/shared-data-source/interpreter.d.ts +0 -77
  180. package/lib/shared-data-source/interpreter.js +0 -247
  181. package/lib/shared-data-source/layout-data.d.ts +0 -31
  182. package/lib/shared-data-source/layout-data.js +0 -189
  183. package/lib/shared-data-source/meeting-time.d.ts +0 -90
  184. package/lib/shared-data-source/meeting-time.js +0 -416
  185. package/lib/shared-data-source/member-data.d.ts +0 -139
  186. package/lib/shared-data-source/member-data.js +0 -517
  187. package/lib/shared-data-source/pin-data.d.ts +0 -13
  188. package/lib/shared-data-source/pin-data.js +0 -111
  189. package/lib/shared-data-source/screen-share-data.d.ts +0 -364
  190. package/lib/shared-data-source/screen-share-data.js +0 -520
  191. package/lib/shared-data-source/security-data.d.ts +0 -39
  192. package/lib/shared-data-source/security-data.js +0 -156
  193. package/lib/shared-data-source/setting.d.ts +0 -67
  194. package/lib/shared-data-source/setting.js +0 -220
  195. package/lib/shared-data-source/speaker-spotlight.d.ts +0 -5
  196. package/lib/shared-data-source/speaker-spotlight.js +0 -15
  197. package/lib/shared-data-source/video-window.d.ts +0 -165
  198. package/lib/shared-data-source/video-window.js +0 -1266
  199. package/lib/shared-data-source/waiting-room.d.ts +0 -46
  200. package/lib/shared-data-source/waiting-room.js +0 -222
  201. package/lib/shared-data-source/whiteboard-data.d.ts +0 -68
  202. package/lib/shared-data-source/whiteboard-data.js +0 -347
  203. package/lib/utilities/board-context.d.ts +0 -4
  204. package/lib/utilities/board-context.js +0 -12
  205. package/lib/utilities/copyText.d.ts +0 -2
  206. package/lib/utilities/copyText.js +0 -48
  207. package/lib/utilities/renderer-event.d.ts +0 -10
  208. package/lib/utilities/renderer-event.js +0 -95
  209. package/lib/utilities/screen-capture-permission.d.ts +0 -2
  210. package/lib/utilities/screen-capture-permission.js +0 -24
  211. package/lib/utilities/screen.d.ts +0 -3
  212. package/lib/utilities/screen.js +0 -53
  213. package/lib/utilities/video-track-render-context.d.ts +0 -6
  214. package/lib/utilities/video-track-render-context.js +0 -9
  215. package/lib/waiting-room-control-manager.d.ts +0 -28
  216. package/lib/waiting-room-control-manager.js +0 -230
@@ -1,1572 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.symbol.js");
4
- require("core-js/modules/es.symbol.description.js");
5
- require("core-js/modules/es.symbol.to-primitive.js");
6
- require("core-js/modules/es.error.cause.js");
7
- require("core-js/modules/es.error.to-string.js");
8
- require("core-js/modules/es.array.filter.js");
9
- require("core-js/modules/es.array.is-array.js");
10
- require("core-js/modules/es.date.to-primitive.js");
11
- require("core-js/modules/es.function.name.js");
12
- require("core-js/modules/es.number.constructor.js");
13
- require("core-js/modules/es.object.create.js");
14
- require("core-js/modules/es.object.define-properties.js");
15
- require("core-js/modules/es.object.define-property.js");
16
- require("core-js/modules/es.object.get-own-property-descriptor.js");
17
- require("core-js/modules/es.object.get-own-property-descriptors.js");
18
- require("core-js/modules/es.object.keys.js");
19
- require("core-js/modules/esnext.function.metadata.js");
20
- require("core-js/modules/esnext.iterator.filter.js");
21
- require("core-js/modules/esnext.symbol.metadata.js");
22
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
23
- var _typeof = require("@babel/runtime/helpers/typeof");
24
- Object.defineProperty(exports, "__esModule", {
25
- value: true
26
- });
27
- exports["default"] = exports.AudioConnectType = exports.ActionBarContext = void 0;
28
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
29
- require("core-js/modules/es.array.find.js");
30
- require("core-js/modules/es.array.for-each.js");
31
- require("core-js/modules/es.array.includes.js");
32
- require("core-js/modules/es.array.iterator.js");
33
- require("core-js/modules/es.array.push.js");
34
- require("core-js/modules/es.array.reduce.js");
35
- require("core-js/modules/es.array.some.js");
36
- require("core-js/modules/es.function.bind.js");
37
- require("core-js/modules/es.map.js");
38
- require("core-js/modules/es.object.to-string.js");
39
- require("core-js/modules/es.object.values.js");
40
- require("core-js/modules/es.string.includes.js");
41
- require("core-js/modules/es.string.iterator.js");
42
- require("core-js/modules/es.weak-map.js");
43
- require("core-js/modules/esnext.iterator.constructor.js");
44
- require("core-js/modules/esnext.iterator.find.js");
45
- require("core-js/modules/esnext.iterator.for-each.js");
46
- require("core-js/modules/esnext.iterator.reduce.js");
47
- require("core-js/modules/esnext.iterator.some.js");
48
- require("core-js/modules/esnext.map.delete-all.js");
49
- require("core-js/modules/esnext.map.emplace.js");
50
- require("core-js/modules/esnext.map.every.js");
51
- require("core-js/modules/esnext.map.filter.js");
52
- require("core-js/modules/esnext.map.find.js");
53
- require("core-js/modules/esnext.map.find-key.js");
54
- require("core-js/modules/esnext.map.includes.js");
55
- require("core-js/modules/esnext.map.key-of.js");
56
- require("core-js/modules/esnext.map.map-keys.js");
57
- require("core-js/modules/esnext.map.map-values.js");
58
- require("core-js/modules/esnext.map.merge.js");
59
- require("core-js/modules/esnext.map.reduce.js");
60
- require("core-js/modules/esnext.map.some.js");
61
- require("core-js/modules/esnext.map.update.js");
62
- require("core-js/modules/esnext.weak-map.delete-all.js");
63
- require("core-js/modules/esnext.weak-map.emplace.js");
64
- require("core-js/modules/web.dom-collections.for-each.js");
65
- require("core-js/modules/web.dom-collections.iterator.js");
66
- require("core-js/modules/web.timers.js");
67
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
68
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
69
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
70
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
71
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
72
- var _fcrCore = require("fcr-core");
73
- var _mobx = require("mobx");
74
- var _type = require("fcr-core/lib/type");
75
- var _decorator = require("agora-foundation/lib/decorator");
76
- var _type2 = require("../../type");
77
- var _env = require("agora-foundation/lib/utilities/env");
78
- var _type3 = require("../whiteboard/type");
79
- var _type4 = require("agora-ui-foundation/lib/components/icon/type");
80
- var _i18n = require("agora-ui-foundation/lib/i18n");
81
- var _type5 = require("fcr-core/lib/room-control/type");
82
- var _react = require("react");
83
- var _constant = require("../../utilities/constant");
84
- var _enums = require("./enums");
85
- var _logger = require("../../utilities/logger");
86
- var _ActionBarStore;
87
- var _initProto, _init_newMessageTooltipVisible, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_connectionSettingVisible, _init_folded, _init_boardOwnerUser, _init_showArrow, _init_phoneMicEnabled, _init_chatTabIndex, _init_stateBarLeaveMeeting, _init_hasOfflineUserExistence, _init_connectionState, _init_appActionbarPopoverVisible, _setCheckedStateMapDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showLockedRoomToastDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _setPopoverOpenedDecs, _setStateBarLeaveMeetingDecs, _handleJoinWaitingRoomDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleLiveStreamingStateUpdatedDecs, _handleChatVisibleDecs, _setAppActionbarPopoverVisibleDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _setOutputLanguageDecs, _subscribeLanguageDecs, _subscribeExtraOriginLanguageDecs, _getOfflineUserExistenceStateDecs, _clickWidgetDecs, _closeWidgetDecs, _ref;
88
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
89
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
90
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
91
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
92
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
93
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
94
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
95
- function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
96
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
97
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
98
- function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
99
- function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
100
- var AudioConnectType = exports.AudioConnectType = /*#__PURE__*/function (AudioConnectType) {
101
- AudioConnectType[AudioConnectType["NONE"] = 0] = "NONE";
102
- AudioConnectType[AudioConnectType["COMPUTER"] = 1] = "COMPUTER";
103
- AudioConnectType[AudioConnectType["PHONE"] = 2] = "PHONE";
104
- return AudioConnectType;
105
- }({});
106
- var _A = /*#__PURE__*/new WeakMap();
107
- var _B = /*#__PURE__*/new WeakMap();
108
- var _C = /*#__PURE__*/new WeakMap();
109
- var _D = /*#__PURE__*/new WeakMap();
110
- var _E = /*#__PURE__*/new WeakMap();
111
- var _F = /*#__PURE__*/new WeakMap();
112
- var _G = /*#__PURE__*/new WeakMap();
113
- var _H = /*#__PURE__*/new WeakMap();
114
- var _I = /*#__PURE__*/new WeakMap();
115
- var _J = /*#__PURE__*/new WeakMap();
116
- var _K = /*#__PURE__*/new WeakMap();
117
- var _L = /*#__PURE__*/new WeakMap();
118
- var _M = /*#__PURE__*/new WeakMap();
119
- var _N = /*#__PURE__*/new WeakMap();
120
- var _O = /*#__PURE__*/new WeakMap();
121
- _ref = (_setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
122
- leading: true
123
- })], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
124
- leading: true
125
- })], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
126
- leading: true
127
- })], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_mobx.action, _mobx.action.bound], _setStateBarLeaveMeetingDecs = [_mobx.action, _mobx.action.bound], _handleJoinWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _setAppActionbarPopoverVisibleDecs = [_mobx.action, _mobx.action.bound], _operateWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setOutputLanguageDecs = [_mobx.action, _mobx.action.bound], _subscribeLanguageDecs = [_mobx.action, _mobx.action.bound], _subscribeExtraOriginLanguageDecs = [_mobx.action, _mobx.action.bound], _getOfflineUserExistenceStateDecs = [_mobx.action, _mobx.action.bound], _clickWidgetDecs = [_mobx.action, _mobx.action.bound], _closeWidgetDecs = [_mobx.action, _mobx.action.bound], "logger");
128
- var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
129
- function ActionBarStore(args) {
130
- var _this = this,
131
- _this$_roomControl$ge;
132
- (0, _classCallCheck2["default"])(this, ActionBarStore);
133
- (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
134
- prefix: 'ActionBarStore'
135
- })));
136
- (0, _defineProperty2["default"])(this, "_disposers", []);
137
- (0, _defineProperty2["default"])(this, "_userObserver", {
138
- onRemoteUsersJoined: this._handleRemoteUsersJoined,
139
- onRemoteUsersLeft: this._handleRemoteUsersLeft
140
- });
141
- // private _waitingRoomUserObserver: FcrUserObserver = {
142
- // onRemoteUsersJoined: this._handleRemoteWaitingUserJoined,
143
- // onRemoteUsersLeft: this._handleRemoteWaitingUserLeft,
144
- // };
145
- (0, _defineProperty2["default"])(this, "_roomObserver", {
146
- onJoinWaitingRoom: this._handleJoinWaitingRoom.bind(this)
147
- });
148
- (0, _defineProperty2["default"])(this, "_mainRoomObserver", {
149
- onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated,
150
- onCloudRecordingStateUpdated: this._handleCloudRecordingStateUpdated
151
- });
152
- (0, _defineProperty2["default"])(this, "_uiEventObserver", {
153
- onEvent: this._onEvent
154
- });
155
- (0, _defineProperty2["default"])(this, "_openedDialogIdMap", new Map());
156
- (0, _defineProperty2["default"])(this, "_newMessageTooltipTimer", null);
157
- (0, _defineProperty2["default"])(this, "_hideBarArrowTimer", null);
158
- (0, _defineProperty2["default"])(this, "_interpreterProviderObserver", {
159
- onInterpreterListUpdated: function onInterpreterListUpdated() {
160
- _this.hasOfflineUserExistence = _this.getOfflineUserExistenceState();
161
- }
162
- });
163
- (0, _defineProperty2["default"])(this, "_applistObserver", {
164
- onApplistItemClick: this._handleApplistItemClick.bind(this)
165
- });
166
- _classPrivateFieldInitSpec(this, _A, _init_newMessageTooltipVisible(this, false));
167
- _classPrivateFieldInitSpec(this, _B, _init_totalWaitingRoomUser(this, 0));
168
- _classPrivateFieldInitSpec(this, _C, _init_liveStreamingState(this));
169
- _classPrivateFieldInitSpec(this, _D, _init_currentMenuIs(this, _enums.MoreMenuType.DEFAULT));
170
- _classPrivateFieldInitSpec(this, _E, _init_cloudRecordingState(this));
171
- _classPrivateFieldInitSpec(this, _F, _init_connectionSettingVisible(this, false));
172
- _classPrivateFieldInitSpec(this, _G, _init_folded(this, false));
173
- _classPrivateFieldInitSpec(this, _H, _init_boardOwnerUser(this, null));
174
- _classPrivateFieldInitSpec(this, _I, _init_showArrow(this, false));
175
- _classPrivateFieldInitSpec(this, _J, _init_phoneMicEnabled(this, false));
176
- _classPrivateFieldInitSpec(this, _K, _init_chatTabIndex(this, _type2.FcrUIRoomType.MAIN_ROOM));
177
- _classPrivateFieldInitSpec(this, _L, _init_stateBarLeaveMeeting(this, false));
178
- _classPrivateFieldInitSpec(this, _M, _init_hasOfflineUserExistence(this, true));
179
- _classPrivateFieldInitSpec(this, _N, _init_connectionState(this, _fcrCore.FcrConnectionState.CONNECTED));
180
- _classPrivateFieldInitSpec(this, _O, _init_appActionbarPopoverVisible(this, false));
181
- this._roomProvider = args.roomProvider;
182
- this._roomControl = args.roomControl;
183
- this._deviceProvider = args.deviceProvider;
184
- this._sharedLayoutDataSource = args.sharedLayoutDataSource;
185
- this._eventProvider = args.eventProvider;
186
- this._dialogProvider = args.dialogProvider;
187
- this._messageProvider = args.messageProvider;
188
- this._privilegeProvider = args.privilegeProvider;
189
- this._deviceStreamProvider = args.deviceStreamProvider;
190
- this._screenShareProvider = args.screenShareProvider;
191
- this._sharedWaitingRoomDataSource = args.sharedWaitingRoomDataSource;
192
- this._sharedInterpreterDataSource = args.sharedInterpreterDataSource;
193
- this._sharedChatDataSource = args.sharedChatDataSource;
194
- this._sharedDevicePrivilegeDataSource = args.sharedDevicePrivilegeDataSource;
195
- this._sharedMemberDataSource = args.sharedMemberDataSource;
196
- this._widgetProvider = args.widgetProvider;
197
- this._sharedSecuritySharedDataSource = args.sharedSecuritySharedDataSource;
198
- this._sharedScreenShareSharedDataSource = args.sharedScreenShareSharedDataSource;
199
- this._abilityProvider = args.abilityProvider;
200
- this._applistProvider = args.applistProvider;
201
- this._sharedApplistDataSource = args.sharedApplistDataSource;
202
- this._applistProvider.addObserver(this._applistObserver);
203
- this._userControl = this._roomControl.getUserControl();
204
- this._roomType = (_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType;
205
- this.liveStreamingState = this._roomControl.getLiveStreamingState();
206
- this.cloudRecordingState = this._roomControl.getCloudRecordingState();
207
- if (args.interpreterProvider) {
208
- this._interpreterProvider = args.interpreterProvider;
209
- if (this._roomType === _type5.FcrRoomType.Mainroom) {
210
- this._roomProvider.addObserver(this._roomObserver);
211
- this._interpreterProvider.addObserver(this._interpreterProviderObserver);
212
- }
213
- }
214
- this.hasOfflineUserExistence = this.getOfflineUserExistenceState();
215
- this._userControl.addObserver(this._userObserver);
216
- this._roomControl.addObserver(this._mainRoomObserver);
217
- this._eventProvider.addObserver(this._uiEventObserver);
218
- this._disposers.push((0, _mobx.reaction)(function () {
219
- return _this.localUserRole;
220
- }, function (role) {
221
- _this._widgetProvider.openedWidgets.forEach(function (_widget, widgetId) {
222
- var widgetConfig = _this._widgetProvider.registeredWidgetConfigs.get(widgetId);
223
- if (widgetConfig) {
224
- if (!_this._checkIsWidgetSupportedRole(widgetConfig, role)) {
225
- _this.closeWidget(widgetId);
226
- }
227
- }
228
- });
229
- }), (0, _mobx.reaction)(function () {
230
- return _this.chatVisible;
231
- }, function (chatVisible) {
232
- if (chatVisible) {
233
- _this._handleChatVisible(true);
234
- } else {
235
- _this._handleChatVisible(false);
236
- }
237
- }),
238
- // reaction(
239
- // () => this._sharedWaitingRoomDataSource.totalWaitingRoomUser,
240
- // (totalWaitingRoomUser) => {
241
- // if (totalWaitingRoomUser === 0) {
242
- // this.newMessageCount = {
243
- // ...this.newMessageCount,
244
- // [FcrRoomType.Waitingroom]: 0,
245
- // };
246
- // }
247
- // },
248
- // ),
249
- (0, _mobx.reaction)(function () {
250
- return _this.newMessageCount;
251
- }, function (count) {
252
- var hasMainRoomMessage = count[_type2.FcrUIRoomType.MAIN_ROOM] && count[_type2.FcrUIRoomType.MAIN_ROOM] > 0;
253
- var hasWaitingRoomMessage = count[_type2.FcrUIRoomType.WAITING_ROOM] && count[_type2.FcrUIRoomType.WAITING_ROOM] > 0;
254
- if (hasMainRoomMessage || hasWaitingRoomMessage) {
255
- _this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
256
- _this.showNewMessageTooltip();
257
- _this._newMessageTooltipTimer = window.setTimeout(function () {
258
- _this.hideNewMessageTooltip();
259
- }, 4000);
260
- }
261
- }));
262
- }
263
- return (0, _createClass2["default"])(ActionBarStore, [{
264
- key: "newMessageTooltipVisible",
265
- get: function get() {
266
- return _classPrivateFieldGet(_A, this);
267
- },
268
- set: function set(v) {
269
- _classPrivateFieldSet(_A, this, v);
270
- }
271
- }, {
272
- key: "totalWaitingRoomUser",
273
- get: function get() {
274
- return _classPrivateFieldGet(_B, this);
275
- },
276
- set: function set(v) {
277
- _classPrivateFieldSet(_B, this, v);
278
- }
279
- }, {
280
- key: "liveStreamingState",
281
- get: function get() {
282
- return _classPrivateFieldGet(_C, this);
283
- },
284
- set: function set(v) {
285
- _classPrivateFieldSet(_C, this, v);
286
- }
287
- }, {
288
- key: "currentMenuIs",
289
- get: function get() {
290
- return _classPrivateFieldGet(_D, this);
291
- },
292
- set: function set(v) {
293
- _classPrivateFieldSet(_D, this, v);
294
- }
295
- }, {
296
- key: "cloudRecordingState",
297
- get: function get() {
298
- return _classPrivateFieldGet(_E, this);
299
- },
300
- set: function set(v) {
301
- _classPrivateFieldSet(_E, this, v);
302
- }
303
- }, {
304
- key: "connectionSettingVisible",
305
- get: function get() {
306
- return _classPrivateFieldGet(_F, this);
307
- },
308
- set: function set(v) {
309
- _classPrivateFieldSet(_F, this, v);
310
- }
311
- }, {
312
- key: "folded",
313
- get: function get() {
314
- return _classPrivateFieldGet(_G, this);
315
- },
316
- set: function set(v) {
317
- _classPrivateFieldSet(_G, this, v);
318
- }
319
- }, {
320
- key: "boardOwnerUser",
321
- get: function get() {
322
- return _classPrivateFieldGet(_H, this);
323
- },
324
- set: function set(v) {
325
- _classPrivateFieldSet(_H, this, v);
326
- }
327
- }, {
328
- key: "showArrow",
329
- get: function get() {
330
- return _classPrivateFieldGet(_I, this);
331
- },
332
- set: function set(v) {
333
- _classPrivateFieldSet(_I, this, v);
334
- }
335
- }, {
336
- key: "phoneMicEnabled",
337
- get: function get() {
338
- return _classPrivateFieldGet(_J, this);
339
- },
340
- set: function set(v) {
341
- _classPrivateFieldSet(_J, this, v);
342
- }
343
- }, {
344
- key: "chatTabIndex",
345
- get: function get() {
346
- return _classPrivateFieldGet(_K, this);
347
- },
348
- set: function set(v) {
349
- _classPrivateFieldSet(_K, this, v);
350
- }
351
- }, {
352
- key: "stateBarLeaveMeeting",
353
- get: function get() {
354
- return _classPrivateFieldGet(_L, this);
355
- },
356
- set: function set(v) {
357
- _classPrivateFieldSet(_L, this, v);
358
- }
359
- }, {
360
- key: "hasOfflineUserExistence",
361
- get: function get() {
362
- return _classPrivateFieldGet(_M, this);
363
- },
364
- set: function set(v) {
365
- _classPrivateFieldSet(_M, this, v);
366
- }
367
- }, {
368
- key: "connectionState",
369
- get: function get() {
370
- return _classPrivateFieldGet(_N, this);
371
- },
372
- set: function set(v) {
373
- _classPrivateFieldSet(_N, this, v);
374
- }
375
- }, {
376
- key: "appActionbarPopoverVisible",
377
- get: function get() {
378
- return _classPrivateFieldGet(_O, this);
379
- },
380
- set: function set(v) {
381
- _classPrivateFieldSet(_O, this, v);
382
- }
383
- }, {
384
- key: "_handleApplistItemClick",
385
- value: function _handleApplistItemClick() {
386
- this.setAppActionbarPopoverVisible(false);
387
- }
388
- }, {
389
- key: "checkedStateMap",
390
- get: function get() {
391
- return this._sharedSecuritySharedDataSource.checkedStateMap;
392
- }
393
- }, {
394
- key: "setCheckedStateMap",
395
- value: function setCheckedStateMap(val) {
396
- this._sharedSecuritySharedDataSource.setCheckedStateMap(val);
397
- }
398
- }, {
399
- key: "registeredWidgetConfigs",
400
- get: function get() {
401
- var _this2 = this;
402
- var widgetConfigs = [];
403
- this._widgetProvider.registeredWidgetConfigs.forEach(function (widgetConfig) {
404
- if (_this2._checkIsWidgetSupportedRole(widgetConfig, _this2.localUserRole)) {
405
- widgetConfigs.push(widgetConfig);
406
- }
407
- });
408
- return widgetConfigs;
409
- }
410
- }, {
411
- key: "appItemOptions",
412
- get: function get() {
413
- return this._applistProvider.appItemOptions;
414
- }
415
- }, {
416
- key: "supportedLanguages",
417
- get: function get() {
418
- return this._sharedInterpreterDataSource.supportedLanguages;
419
- }
420
- }, {
421
- key: "users",
422
- get: function get() {
423
- return this._sharedMemberDataSource.memberUserInfoList;
424
- }
425
- }, {
426
- key: "localUserRole",
427
- get: function get() {
428
- return this._sharedMemberDataSource.localUserRole;
429
- }
430
- }, {
431
- key: "localUserId",
432
- get: function get() {
433
- return this._sharedMemberDataSource.localUser.userId;
434
- }
435
- }, {
436
- key: "totalUser",
437
- get: function get() {
438
- return this._sharedMemberDataSource.totalUserCount;
439
- }
440
- }, {
441
- key: "isPstnUser",
442
- get: function get() {
443
- return this._sharedMemberDataSource.hasOwnPstnStream;
444
- }
445
- }, {
446
- key: "localInterpreterUserInfo",
447
- get: function get() {
448
- return this._sharedInterpreterDataSource.localInterpreterUserInfo;
449
- }
450
- }, {
451
- key: "interpreterUserList",
452
- get: function get() {
453
- return this._sharedInterpreterDataSource.interpreterUserList;
454
- }
455
- }, {
456
- key: "isInterpreterEnabled",
457
- get: function get() {
458
- return this._sharedInterpreterDataSource.isInterpreterEnabled;
459
- }
460
- }, {
461
- key: "outputLanguage",
462
- get: function get() {
463
- return this._sharedInterpreterDataSource.outputLanguage;
464
- }
465
- }, {
466
- key: "hasSubscribedLanguageList",
467
- get: function get() {
468
- return this._sharedInterpreterDataSource.hasSubscribedLanguageList;
469
- }
470
- }, {
471
- key: "preHasSubscribedLanguageList",
472
- get: function get() {
473
- return this._sharedInterpreterDataSource.preHasSubscribedLanguageList;
474
- }
475
- }, {
476
- key: "subscribeLanguageOptionList",
477
- get: function get() {
478
- return this._sharedInterpreterDataSource.subscribeLanguageOptionList;
479
- }
480
- }, {
481
- key: "isNewWaitingRoomUserEnter",
482
- get: function get() {
483
- return this._sharedWaitingRoomDataSource.unReadState;
484
- }
485
- }, {
486
- key: "privilegeProvider",
487
- get: function get() {
488
- return this._privilegeProvider;
489
- }
490
- }, {
491
- key: "asideLayout",
492
- get: function get() {
493
- var _this$_sharedLayoutDa;
494
- return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
495
- }
496
- }, {
497
- key: "chatRenderAt",
498
- get: function get() {
499
- return this._sharedLayoutDataSource.chatRenderAt;
500
- }
501
- }, {
502
- key: "participantsRenderAt",
503
- get: function get() {
504
- return this._sharedLayoutDataSource.participantsRenderAt;
505
- }
506
- }, {
507
- key: "participantVisible",
508
- get: function get() {
509
- return this._sharedLayoutDataSource.asideLayout.participant;
510
- }
511
- }, {
512
- key: "chatVisible",
513
- get: function get() {
514
- return this._sharedLayoutDataSource.asideLayout.chat;
515
- }
516
- }, {
517
- key: "remoteUsers",
518
- get: function get() {
519
- return this._sharedMemberDataSource.memberUserInfoList;
520
- }
521
- }, {
522
- key: "hasStartScreenSharePermission",
523
- get: function get() {
524
- return this._privilegeProvider.hasStartScreenSharePermission();
525
- }
526
- }, {
527
- key: "hasStopScreenSharePermission",
528
- get: function get() {
529
- var _this$sharingOwnerUse;
530
- return this.hasScreenShare && this.hasEnableStartScreenSharePermission && this.sharingOwnerUser && this.localUserId !== ((_this$sharingOwnerUse = this.sharingOwnerUser) === null || _this$sharingOwnerUse === void 0 ? void 0 : _this$sharingOwnerUse.userId);
531
- }
532
- }, {
533
- key: "sharingOwnerUser",
534
- get: function get() {
535
- return this._sharedScreenShareSharedDataSource.screenSharingOwner;
536
- }
537
- }, {
538
- key: "hasEnableStartScreenSharePermission",
539
- get: function get() {
540
- var _this$sharingOwnerUse2;
541
- return this._privilegeProvider.hasStopScreenSharePermission((_this$sharingOwnerUse2 = this.sharingOwnerUser) === null || _this$sharingOwnerUse2 === void 0 ? void 0 : _this$sharingOwnerUse2.userRole);
542
- }
543
- }, {
544
- key: "hasStartLiveStreamingPermission",
545
- get: function get() {
546
- return this._abilityProvider.isLiveSupported() && this._privilegeProvider.hasStartLiveStreamingPermission();
547
- }
548
- }, {
549
- key: "hasEnableStartAudioPermission",
550
- get: function get() {
551
- return this._privilegeProvider.hasEnableStartAudioPermission();
552
- }
553
- }, {
554
- key: "hasEnableChangeNamePermission",
555
- get: function get() {
556
- return this._privilegeProvider.hasEnableChangeNamePermission();
557
- }
558
- }, {
559
- key: "hasEnableStartVideoPermission",
560
- get: function get() {
561
- return this._privilegeProvider.hasEnableStartVideoPermission();
562
- }
563
- }, {
564
- key: "hasLockRoomPermission",
565
- get: function get() {
566
- return this._privilegeProvider.hasLockRoomPermission();
567
- }
568
- }, {
569
- key: "hasEnableJoinWithAudioPermission",
570
- get: function get() {
571
- return this._privilegeProvider.hasEnableJoinWithAudioPermission();
572
- }
573
- }, {
574
- key: "hasWaitingRoomPermission",
575
- get: function get() {
576
- return this._privilegeProvider.hasWaitingRoomPermission();
577
- }
578
- }, {
579
- key: "hasWatermarkEnablePermission",
580
- get: function get() {
581
- return this._privilegeProvider.hasWatermarkEnablePermission();
582
- }
583
- }, {
584
- key: "hasWatermarkDisablePermission",
585
- get: function get() {
586
- return this._privilegeProvider.hasWatermarkDisablePermission();
587
- }
588
- }, {
589
- key: "hasEnableStartSharePermission",
590
- get: function get() {
591
- return this._privilegeProvider.hasEnableStartScreenSharePermission();
592
- }
593
- }, {
594
- key: "hasAllowWriteBoardPermission",
595
- get: function get() {
596
- return this._privilegeProvider.hasAllowWriteBoardPermission();
597
- }
598
- }, {
599
- key: "hasCloseWriteBoardPermission",
600
- get: function get() {
601
- var _this$boardOwnerUser;
602
- return this._privilegeProvider.hasCloseBoardPermission((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
603
- }
604
- }, {
605
- key: "hasScreenShare",
606
- get: function get() {
607
- return this._sharedScreenShareSharedDataSource.isSharingScreen;
608
- }
609
- }, {
610
- key: "hasAllowScreenShareAndBoardPermission",
611
- get: function get() {
612
- return this._privilegeProvider.hasAllowScreenShareAndBoardPermission();
613
- }
614
- }, {
615
- key: "hasAllowChatPermission",
616
- get: function get() {
617
- return this._privilegeProvider.hasPermissionToControlAllowSendAll();
618
- }
619
- }, {
620
- key: "hasStartCloudRecordingPermission",
621
- get: function get() {
622
- return this._privilegeProvider.hasStartCloudRecordingPermission();
623
- }
624
- }, {
625
- key: "hasAssignHostBeforeLeavingPermission",
626
- get: function get() {
627
- return this._privilegeProvider.hasAssignHostBeforeLeavingPermission(this.localUserRole);
628
- }
629
- }, {
630
- key: "hasEndRoomPermission",
631
- get: function get() {
632
- return this._privilegeProvider.hasEndRoomPermission();
633
- }
634
- }, {
635
- key: "isScreenShareAndBoardEnabled",
636
- get: function get() {
637
- return this._privilegeProvider.allowScreenShareAndBoard();
638
- }
639
- }, {
640
- key: "isBoardWriteEnabled",
641
- get: function get() {
642
- return this._privilegeProvider.allowBoardWriteState();
643
- }
644
- }, {
645
- key: "isWaterMarkEnabled",
646
- get: function get() {
647
- return this._privilegeProvider.isWaterMarkEnabled();
648
- }
649
- }, {
650
- key: "isMulti",
651
- get: function get() {
652
- return this._privilegeProvider.isMulti();
653
- }
654
- }, {
655
- key: "hasEnableInterpreterPermission",
656
- get: function get() {
657
- return this._abilityProvider.isInterpreterSupported() && this._privilegeProvider.hasEnableInterpreterPermission();
658
- }
659
- }, {
660
- key: "hasDisableInterpreterPermission",
661
- get: function get() {
662
- return this._privilegeProvider.hasDisableInterpreterPermission();
663
- }
664
- }, {
665
- key: "microphoneEnabled",
666
- get: function get() {
667
- return this._deviceProvider.microphoneEnabled;
668
- }
669
- }, {
670
- key: "allNewMessage",
671
- get: function get() {
672
- return Object.values(this._sharedChatDataSource.newMessageCount).reduce(function (a, b) {
673
- return a + b;
674
- }, 0);
675
- }
676
- }, {
677
- key: "isMainRoom",
678
- get: function get() {
679
- return this._roomType === _type5.FcrRoomType.Mainroom;
680
- }
681
- }, {
682
- key: "hasAllowChangeNamePromission",
683
- get: function get() {
684
- return this._privilegeProvider.hasAllowChangeNamePermission();
685
- }
686
- }, {
687
- key: "hasDisallowChangeNamePromission",
688
- get: function get() {
689
- return this._privilegeProvider.hasDisallowChangeNamePermission();
690
- }
691
- }, {
692
- key: "newMessageCount",
693
- get: function get() {
694
- return this._sharedChatDataSource.newMessageCount;
695
- },
696
- set: function set(value) {
697
- this._sharedChatDataSource.newMessageCount = value;
698
- }
699
- }, {
700
- key: "endMeetingPopoverOpened",
701
- get: function get() {
702
- return this._sharedLayoutDataSource.endMeetingPopoverOpened;
703
- }
704
- }, {
705
- key: "latestMessage",
706
- get: function get() {
707
- return this._sharedChatDataSource.latestMessage;
708
- }
709
- }, {
710
- key: "isRecordingSupported",
711
- get: function get() {
712
- return this._abilityProvider.isRecordingSupported();
713
- }
714
- }, {
715
- key: "hasSecurityPermissions",
716
- get: function get() {
717
- return this.hasEnableStartSharePermission || this.hasAllowChatPermission || this.hasEnableStartAudioPermission || this.hasEnableChangeNamePermission || this.hasEnableStartVideoPermission || this.hasLockRoomPermission;
718
- }
719
- }, {
720
- key: "pauseCloudRecording",
721
- value: function pauseCloudRecording() {
722
- this._roomControl.pauseCloudRecording();
723
- }
724
- }, {
725
- key: "resumeCloudRecording",
726
- value: function resumeCloudRecording() {
727
- this._roomControl.resumeCloudRecording();
728
- }
729
- }, {
730
- key: "stopCloudRecording",
731
- value: function stopCloudRecording() {
732
- this._roomControl.stopCloudRecording();
733
- }
734
- }, {
735
- key: "startCloudRecording",
736
- value: function startCloudRecording() {
737
- this._roomControl.startCloudRecording({
738
- audioProfile: _type.FcrCloudRecordingAudioProfile.DEFAULT,
739
- videoEncoderConfig: {
740
- dimensions: {
741
- width: 1280,
742
- height: 720
743
- },
744
- bitrate: 1200,
745
- frameRate: 15,
746
- isMirror: false
747
- },
748
- retryTimeout: 60
749
- });
750
- }
751
- }, {
752
- key: "showLockedRoomToast",
753
- value: function showLockedRoomToast(enable) {
754
- this._messageProvider.showToast({
755
- type: 'info',
756
- message: enable ? (0, _i18n.transI18n)('fmt_security_tips_lock_meeting_on') : (0, _i18n.transI18n)('fmt_uimanager_tips_meetingunlocked')
757
- });
758
- }
759
- }, {
760
- key: "toggleLayoutBarLock",
761
- value: function toggleLayoutBarLock(payload) {
762
- this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, payload);
763
- }
764
- }, {
765
- key: "showNewMessageTooltip",
766
- value: function showNewMessageTooltip() {
767
- this.newMessageTooltipVisible = true;
768
- }
769
- }, {
770
- key: "hideNewMessageTooltip",
771
- value: function hideNewMessageTooltip() {
772
- this.newMessageTooltipVisible = false;
773
- }
774
- }, {
775
- key: "switchMenu",
776
- value: function switchMenu(value) {
777
- this.currentMenuIs = value || _enums.MoreMenuType.DEFAULT;
778
- }
779
- }, {
780
- key: "isLocked",
781
- get: function get() {
782
- return this._privilegeProvider.isLockRoomEnabled();
783
- }
784
- }, {
785
- key: "isWaitingRoomEnabled",
786
- value: function isWaitingRoomEnabled() {
787
- return this._privilegeProvider.isWaitingRoomEnabled();
788
- }
789
- }, {
790
- key: "isAllowJoinWithAudioEnabled",
791
- value: function isAllowJoinWithAudioEnabled() {
792
- return this._privilegeProvider.allowJoinWithMuteAudio();
793
- }
794
- }, {
795
- key: "enableMicrophone",
796
- value: function enableMicrophone(enable) {
797
- this._deviceStreamProvider.enableMicrophoneWithPreCheck(enable);
798
- this._sharedDevicePrivilegeDataSource.setShouldIncludeMicrophone(true);
799
- }
800
- }, {
801
- key: "setAllowWriteBoard",
802
- value: function setAllowWriteBoard(state) {
803
- this._privilegeProvider.setAllowWriteBoard(state);
804
- }
805
- }, {
806
- key: "setAllowAnnotation",
807
- value: function setAllowAnnotation(state) {
808
- this._privilegeProvider.setAllowWriteBoard(state);
809
- }
810
- }, {
811
- key: "setAllowScreenShare",
812
- value: function setAllowScreenShare(state) {
813
- this._privilegeProvider.setAllowShareScreen(state);
814
- }
815
- }, {
816
- key: "setPopoverOpened",
817
- value: function setPopoverOpened(isShow) {
818
- this._sharedLayoutDataSource.endMeetingPopoverOpened = isShow;
819
- if (this.stateBarLeaveMeeting && !isShow) {
820
- this.stateBarLeaveMeeting = false;
821
- }
822
- }
823
- }, {
824
- key: "setStateBarLeaveMeeting",
825
- value: function setStateBarLeaveMeeting(isShow) {
826
- this.stateBarLeaveMeeting = isShow;
827
- }
828
- }, {
829
- key: "release",
830
- value: function release() {
831
- this._disposers.forEach(function (dispose) {
832
- return dispose();
833
- });
834
- this._disposers = [];
835
- this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
836
- this._userControl.removeObserver(this._userObserver);
837
- this._roomControl.removeObserver(this._mainRoomObserver);
838
- this._eventProvider.removeObserver(this._uiEventObserver);
839
- this._applistProvider.removeObserver(this._applistObserver);
840
- if (this._roomType === _type5.FcrRoomType.Mainroom) {
841
- var _this$_interpreterPro;
842
- this._roomProvider.removeObserver(this._roomObserver);
843
- (_this$_interpreterPro = this._interpreterProvider) === null || _this$_interpreterPro === void 0 || _this$_interpreterPro.removeObserver(this._interpreterProviderObserver);
844
- }
845
- }
846
- }, {
847
- key: "allowJoinWithMuteAudio",
848
- value: function allowJoinWithMuteAudio() {
849
- return this._privilegeProvider.allowJoinWithMuteAudio();
850
- }
851
- }, {
852
- key: "setAllowJoinWithMuteAudio",
853
- value: function setAllowJoinWithMuteAudio(enable) {
854
- return this._privilegeProvider.setAllowJoinWithMuteAudio(enable);
855
- }
856
- }, {
857
- key: "isLockRoomEnabled",
858
- value: function isLockRoomEnabled() {
859
- return this._privilegeProvider.isLockRoomEnabled();
860
- }
861
- }, {
862
- key: "setLockRoomEnabled",
863
- value: function setLockRoomEnabled(enable) {
864
- return this._privilegeProvider.setLockRoomEnabled(enable);
865
- }
866
- }, {
867
- key: "setAllowShareScreen",
868
- value: function setAllowShareScreen(enable) {
869
- return this._privilegeProvider.setAllowShareScreen(enable);
870
- }
871
- }, {
872
- key: "allowShareScreen",
873
- value: function allowShareScreen() {
874
- return this._privilegeProvider.allowShareScreen();
875
- }
876
- }, {
877
- key: "allowWriteBoard",
878
- value: function allowWriteBoard() {
879
- return this._privilegeProvider.hasAllowWriteBoardPermission();
880
- }
881
- }, {
882
- key: "allowChat",
883
- value: function allowChat() {
884
- return this._privilegeProvider.allowChat();
885
- }
886
- }, {
887
- key: "setAllowChat",
888
- value: function setAllowChat(enable) {
889
- return this._privilegeProvider.setAllowChat(enable);
890
- }
891
- }, {
892
- key: "allowUnmuteSelfAudio",
893
- value: function allowUnmuteSelfAudio() {
894
- return this._privilegeProvider.allowUnmuteSelfAudio();
895
- }
896
- }, {
897
- key: "setAllowUnmuteSelfAudio",
898
- value: function setAllowUnmuteSelfAudio(enable) {
899
- return this._privilegeProvider.setAllowUnmuteSelfAudio(enable);
900
- }
901
- }, {
902
- key: "allowUnmuteSelfVideo",
903
- value: function allowUnmuteSelfVideo() {
904
- return this._privilegeProvider.allowUnmuteSelfVideo();
905
- }
906
- }, {
907
- key: "setAllowUnmuteSelfVideo",
908
- value: function setAllowUnmuteSelfVideo(enable) {
909
- return this._privilegeProvider.setAllowUnmuteSelfVideo(enable);
910
- }
911
- }, {
912
- key: "allowChangeName",
913
- value: function allowChangeName() {
914
- return this._privilegeProvider.allowChangeSelfName();
915
- }
916
- }, {
917
- key: "setAllowChangeName",
918
- value: function setAllowChangeName(enable) {
919
- return this._privilegeProvider.setAllowChangeSelfName(enable);
920
- }
921
- }, {
922
- key: "toggleChat",
923
- value: function toggleChat() {
924
- !this.chatVisible || (0, _env.isElectron)() && this.chatRenderAt === 'dialog' ? this.openChat() : this.closeChat();
925
- }
926
- }, {
927
- key: "openChat",
928
- value: function openChat() {
929
- if (this.chatRenderAt === 'aside') {
930
- this._sharedLayoutDataSource.setChatRenderAt('aside');
931
- }
932
- if (this.chatRenderAt === 'dialog') {
933
- this._sharedLayoutDataSource.setChatRenderAt('dialog');
934
- this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
935
- }
936
- this._sharedLayoutDataSource.setAsideLayout({
937
- chat: true
938
- });
939
- }
940
- }, {
941
- key: "closeChat",
942
- value: function closeChat() {
943
- if (!this.chatVisible) return;
944
- if (this.chatRenderAt === 'dialog') {
945
- var chatDialogId = '';
946
- this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
947
- if (dialogKey === _constant.FcrUIDialogKey.CHAT) {
948
- chatDialogId = dialogId;
949
- }
950
- });
951
- chatDialogId && this._dialogProvider.closeDialog(chatDialogId);
952
- }
953
- this._sharedLayoutDataSource.setAsideLayout({
954
- chat: false
955
- });
956
- }
957
- }, {
958
- key: "toggleParticipants",
959
- value: function toggleParticipants() {
960
- !this.participantVisible || (0, _env.isElectron)() && this.participantsRenderAt === 'dialog' ? this.openParticipants() : this.closeParticipants();
961
- }
962
- }, {
963
- key: "openParticipants",
964
- value: function openParticipants() {
965
- if (this.participantsRenderAt === 'dialog') {
966
- this._dialogProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
967
- }
968
- this._sharedLayoutDataSource.setAsideLayout({
969
- participant: true
970
- });
971
- // if (this._participantVisible) {
972
- // if (this._participantTab === FcrRoomType.Waitingroom) {
973
- // this.isNewWaitingRoomUserEnter = false;
974
- // }
975
- // }
976
- }
977
- }, {
978
- key: "closeParticipants",
979
- value: function closeParticipants() {
980
- if (!this.participantVisible) return;
981
- if (this.participantsRenderAt === 'dialog') {
982
- var participantDialogId = '';
983
- this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
984
- if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
985
- participantDialogId = dialogId;
986
- }
987
- });
988
- this._sharedLayoutDataSource.setAsideLayout({
989
- participant: false
990
- });
991
- participantDialogId && this._dialogProvider.closeDialog(participantDialogId);
992
- }
993
- this._sharedLayoutDataSource.setAsideLayout({
994
- participant: false
995
- });
996
- }
997
- }, {
998
- key: "openDeviceSettingDialog",
999
- value: function openDeviceSettingDialog(arg) {
1000
- this._dialogProvider.openDeviceSettingDialog(arg);
1001
- }
1002
- }, {
1003
- key: "startScreenShare",
1004
- value: function startScreenShare() {
1005
- if (!this._interceptShareScreen()) return;
1006
- this._screenShareProvider.bootstrap();
1007
- }
1008
- }, {
1009
- key: "openInterpreterDialog",
1010
- value: function openInterpreterDialog() {
1011
- this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_INTERPRETER_DIALOG);
1012
- }
1013
- }, {
1014
- key: "openWhiteboard",
1015
- value: function openWhiteboard() {
1016
- if (!this._interceptShareBoard()) return;
1017
- this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
1018
- }
1019
- }, {
1020
- key: "closeWhiteboard",
1021
- value: function closeWhiteboard() {
1022
- this._eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_WHITEBOARD);
1023
- }
1024
- }, {
1025
- key: "closeShareScreen",
1026
- value: function closeShareScreen() {
1027
- this._screenShareProvider.removeScreenStream();
1028
- }
1029
- }, {
1030
- key: "openLiveStreamingDialog",
1031
- value: function openLiveStreamingDialog() {
1032
- this._dialogProvider.openDialog(_constant.FcrUIDialogKey.LIVE_STREAMING);
1033
- this.toggleLayoutBarLock(true);
1034
- }
1035
- }, {
1036
- key: "toggleConnection",
1037
- value: function toggleConnection() {
1038
- this.connectionSettingVisible ? this.closeConnection() : this.openConnection('computer');
1039
- }
1040
- }, {
1041
- key: "openConnection",
1042
- value: function openConnection(type) {
1043
- this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONNECTION_GATEWAY, '', {
1044
- type: type
1045
- });
1046
- }
1047
- }, {
1048
- key: "closeConnection",
1049
- value: function closeConnection() {
1050
- var connectionDialogId = '';
1051
- this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1052
- if (dialogKey === _constant.FcrUIDialogKey.CONNECTION_GATEWAY) {
1053
- connectionDialogId = dialogId;
1054
- }
1055
- });
1056
- this._dialogProvider.closeDialog(connectionDialogId);
1057
- }
1058
- }, {
1059
- key: "_handleJoinWaitingRoom",
1060
- value: function _handleJoinWaitingRoom(room) {
1061
- this._waitingRoomControl = room;
1062
- this.newMessageCount = (0, _defineProperty2["default"])({}, _type2.FcrUIRoomType.WAITING_ROOM, 0);
1063
- }
1064
- }, {
1065
- key: "toggleFold",
1066
- value: function toggleFold() {
1067
- this.folded = !this.folded;
1068
- this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN);
1069
- }
1070
- }, {
1071
- key: "setShowArrow",
1072
- value: function setShowArrow(show) {
1073
- var _this3 = this;
1074
- if (this._hideBarArrowTimer) clearTimeout(this._hideBarArrowTimer);
1075
- if (show) {
1076
- this.showArrow = true;
1077
- } else {
1078
- this._hideBarArrowTimer = setTimeout(function () {
1079
- return _this3.showArrow = false;
1080
- }, 1000);
1081
- }
1082
- }
1083
- }, {
1084
- key: "setEnableWaitingRoom",
1085
- value: function () {
1086
- var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(enable, isNeedShowDialog) {
1087
- var _this4 = this;
1088
- var dialogId;
1089
- return _regenerator["default"].wrap(function (_context) {
1090
- while (1) switch (_context.prev = _context.next) {
1091
- case 0:
1092
- if (enable) {
1093
- _context.next = 4;
1094
- break;
1095
- }
1096
- if (!(this._sharedWaitingRoomDataSource.totalWaitingRoomUser && isNeedShowDialog)) {
1097
- _context.next = 1;
1098
- break;
1099
- }
1100
- dialogId = this._dialogProvider.openConfirmDialog({
1101
- title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_label_close'),
1102
- content: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_label_choose', {
1103
- reason1: this._sharedWaitingRoomDataSource.totalWaitingRoomUser
1104
- }),
1105
- onCancel: function onCancel() {
1106
- _this4.setCheckedStateMap(_objectSpread(_objectSpread({}, _this4.checkedStateMap), {
1107
- enableWaitingRoom: false
1108
- }));
1109
- _this4._eventProvider.sendEvent(_constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, false);
1110
- _this4._dialogProvider.closeConfirm(dialogId);
1111
- },
1112
- onOk: function onOk() {
1113
- _this4.setCheckedStateMap(_objectSpread(_objectSpread({}, _this4.checkedStateMap), {
1114
- enableWaitingRoom: false
1115
- }));
1116
- _this4._eventProvider.sendEvent(_constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, true);
1117
- _this4._dialogProvider.closeConfirm(dialogId);
1118
- },
1119
- okText: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_button_admit_all'),
1120
- cancelText: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_button_cancel'),
1121
- cancelButtonProps: {
1122
- block: true
1123
- },
1124
- okButtonProps: {
1125
- block: true
1126
- },
1127
- alignCenter: true
1128
- });
1129
- _context.next = 3;
1130
- break;
1131
- case 1:
1132
- _context.next = 2;
1133
- return this._roomControl.enableWaitingRoom(enable);
1134
- case 2:
1135
- this._messageProvider.showToast({
1136
- type: 'normal',
1137
- message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_tips_disable')
1138
- });
1139
- case 3:
1140
- _context.next = 6;
1141
- break;
1142
- case 4:
1143
- _context.next = 5;
1144
- return this._roomControl.enableWaitingRoom(enable);
1145
- case 5:
1146
- this._messageProvider.showToast({
1147
- type: 'normal',
1148
- message: (0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable')
1149
- });
1150
- case 6:
1151
- case "end":
1152
- return _context.stop();
1153
- }
1154
- }, _callee, this);
1155
- }));
1156
- function setEnableWaitingRoom(_x, _x2) {
1157
- return _setEnableWaitingRoom.apply(this, arguments);
1158
- }
1159
- return setEnableWaitingRoom;
1160
- }()
1161
- }, {
1162
- key: "kickOutWaitingRoomAllMember",
1163
- value: function () {
1164
- var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(type) {
1165
- var _this$_userControl;
1166
- return _regenerator["default"].wrap(function (_context2) {
1167
- while (1) switch (_context2.prev = _context2.next) {
1168
- case 0:
1169
- _context2.next = 1;
1170
- return (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
1171
- case 1:
1172
- case "end":
1173
- return _context2.stop();
1174
- }
1175
- }, _callee2, this);
1176
- }));
1177
- function kickOutWaitingRoomAllMember(_x3) {
1178
- return _kickOutWaitingRoomAllMember.apply(this, arguments);
1179
- }
1180
- return kickOutWaitingRoomAllMember;
1181
- }()
1182
- }, {
1183
- key: "moveToMainRoomAllMember",
1184
- value: function () {
1185
- var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
1186
- var _this$_waitingRoomCon;
1187
- return _regenerator["default"].wrap(function (_context3) {
1188
- while (1) switch (_context3.prev = _context3.next) {
1189
- case 0:
1190
- _context3.next = 1;
1191
- return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
1192
- case 1:
1193
- case "end":
1194
- return _context3.stop();
1195
- }
1196
- }, _callee3, this);
1197
- }));
1198
- function moveToMainRoomAllMember() {
1199
- return _moveToMainRoomAllMember.apply(this, arguments);
1200
- }
1201
- return moveToMainRoomAllMember;
1202
- }()
1203
- }, {
1204
- key: "_interceptShareScreen",
1205
- value: function _interceptShareScreen() {
1206
- var _this5 = this;
1207
- if (this.hasScreenShare || this.boardOwnerUser && this.boardOwnerUser.userId !== this.localUserId) {
1208
- var _this$sharingOwnerUse3;
1209
- var confirmKey = this._dialogProvider.openConfirmDialog({
1210
- title: (0, _i18n.transI18n)('fmt_share_tips_otherssharing'),
1211
- content: (0, _i18n.transI18n)("fmt_share_tips_stopothersharing", {
1212
- reason1: ((_this$sharingOwnerUse3 = this.sharingOwnerUser) === null || _this$sharingOwnerUse3 === void 0 ? void 0 : _this$sharingOwnerUse3.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
1213
- }),
1214
- okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share'),
1215
- okButtonProps: {
1216
- className: 'fcr-screenshare-continue-share'
1217
- },
1218
- closable: false,
1219
- alignCenter: true,
1220
- onOk: function onOk() {
1221
- _this5._screenShareProvider.bootstrap();
1222
- _this5._dialogProvider.closeConfirm(confirmKey);
1223
- },
1224
- onCancel: function onCancel() {
1225
- _this5._dialogProvider.closeConfirm(confirmKey);
1226
- }
1227
- });
1228
- return false;
1229
- } else {
1230
- return true;
1231
- }
1232
- }
1233
- }, {
1234
- key: "_interceptShareBoard",
1235
- value: function _interceptShareBoard() {
1236
- var _this6 = this;
1237
- if (this.boardOwnerUser && this.boardOwnerUser.userId !== this.localUserId) {
1238
- var confirmKey = this._dialogProvider.openConfirmDialog({
1239
- icon: _type4.FcrIconType.FCR_SCREENSHARING,
1240
- title: (0, _i18n.transI18n)('fmt_share_tips_othersharingboard'),
1241
- content: (0, _i18n.transI18n)("fmt_share_tips_boardonly"),
1242
- okText: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_button_gotit'),
1243
- closable: false,
1244
- showCancel: false,
1245
- onOk: function onOk() {
1246
- _this6._screenShareProvider.bootstrap();
1247
- _this6._dialogProvider.closeDialog(confirmKey);
1248
- },
1249
- onCancel: function onCancel() {
1250
- _this6._dialogProvider.closeDialog(confirmKey);
1251
- }
1252
- });
1253
- return false;
1254
- } else {
1255
- return true;
1256
- }
1257
- }
1258
- }, {
1259
- key: "_handleRemoteUsersJoined",
1260
- value: function _handleRemoteUsersJoined(_roomId, _events) {
1261
- this.hasOfflineUserExistence = this.getOfflineUserExistenceState();
1262
- }
1263
- }, {
1264
- key: "_handleRemoteUsersLeft",
1265
- value: function _handleRemoteUsersLeft(_roomId, _events) {
1266
- this.hasOfflineUserExistence = this.getOfflineUserExistenceState();
1267
- }
1268
- }, {
1269
- key: "_handleLiveStreamingStateUpdated",
1270
- value: function _handleLiveStreamingStateUpdated(_roomId, state) {
1271
- this.liveStreamingState = state;
1272
- }
1273
- }, {
1274
- key: "_handleChatVisible",
1275
- value: function _handleChatVisible(visible) {
1276
- this._eventProvider.sendEvent(_constant.FcrUIAction.CHAT_VISIBLE, visible);
1277
- this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
1278
- this.hideNewMessageTooltip();
1279
- this.newMessageCount[this.chatTabIndex] = 0;
1280
- }
1281
- }, {
1282
- key: "setAppActionbarPopoverVisible",
1283
- value: function setAppActionbarPopoverVisible(visible) {
1284
- this.appActionbarPopoverVisible = visible;
1285
- }
1286
- }, {
1287
- key: "setAllowWaterMark",
1288
- value: function setAllowWaterMark() {
1289
- var allowState = !this.isWaterMarkEnabled;
1290
- // 开启关闭前,进行权限判断
1291
- this._privilegeProvider.setAllowWaterMark(allowState, void 0);
1292
- }
1293
- }, {
1294
- key: "setWaterMarkLineType",
1295
- value: function setWaterMarkLineType(lineType) {
1296
- this._privilegeProvider.setAllowWaterMark(this.isWaterMarkEnabled, lineType);
1297
- }
1298
- }, {
1299
- key: "setAlllowChangeName",
1300
- value: function setAlllowChangeName(enable) {
1301
- this._privilegeProvider.setAllowChangeSelfName(enable);
1302
- }
1303
- }, {
1304
- key: "_onEvent",
1305
- value: function _onEvent(action, payload) {
1306
- // if (action === FcrUIAction.UPDATE_ASIDE) {
1307
- // const { chat, participant } = payload as FcrUIUpdateAsideParams;
1308
- // if (chat) {
1309
- // this._chatRenderAt = 'aside';
1310
- // this._handleChatVisible(true);
1311
- // }
1312
- // if (chat === false) {
1313
- // this._handleChatVisible(false);
1314
- // }
1315
- // if (participant) {
1316
- // this._participantsRenderAt = 'aside';
1317
- // this._participantVisible = true;
1318
- // }
1319
- // if (participant === false) {
1320
- // this._participantVisible = false;
1321
- // }
1322
- // }
1323
- // if (action === FcrUIAction.RECEIVE_NEW_CHAT_MESSAGES) {
1324
- // this._handleNewMessageEvent(payload as FcrUINewChatMessagesParams);
1325
- // }
1326
- if (action === _constant.FcrUIAction.CLOSE_DIALOG) {
1327
- var _ref2 = payload,
1328
- dialogId = _ref2.dialogId;
1329
- var dialogKey = this._openedDialogIdMap.get(dialogId);
1330
- if (dialogKey === _constant.FcrUIDialogKey.CHAT) {
1331
- this._handleChatVisible(false);
1332
- }
1333
- if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
1334
- this._sharedLayoutDataSource.setAsideLayout({
1335
- participant: false
1336
- });
1337
- }
1338
- this._openedDialogIdMap["delete"](dialogId);
1339
- }
1340
- if (action === _constant.FcrUIAction.OPEN_DIALOG) {
1341
- var _ref3 = payload,
1342
- _dialogKey = _ref3.dialogKey,
1343
- _dialogId = _ref3.dialogId;
1344
- this._openedDialogIdMap.set(_dialogId, _dialogKey);
1345
- if (_dialogKey === _constant.FcrUIDialogKey.CHAT) {
1346
- this._sharedLayoutDataSource.setChatRenderAt('dialog');
1347
- this._handleChatVisible(true);
1348
- }
1349
- if (_dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
1350
- this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
1351
- this._sharedLayoutDataSource.setAsideLayout({
1352
- participant: true
1353
- });
1354
- }
1355
- }
1356
- if (action === _constant.FcrUIAction.OPEN_LIVE_STEAMING_DIALOG) {
1357
- this.openLiveStreamingDialog();
1358
- }
1359
- if (action === _constant.FcrUIAction.OPEN_CONNECTION_DIALOG) {
1360
- this.openConnection(payload.params.type);
1361
- }
1362
- if (action === _constant.FcrUIAction.CLOSE_CONNECTION_DIALOG) {
1363
- this.closeConnection();
1364
- }
1365
- if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
1366
- var _ref4 = payload,
1367
- _action = _ref4.action,
1368
- value = _ref4.payload;
1369
- if (_action === _type3.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1370
- this.boardOwnerUser = value ? this.users.find(function (u) {
1371
- return u.userId === value;
1372
- }) : null;
1373
- }
1374
- }
1375
- if (action === _constant.FcrUIAction.TOGGLE_PARTICIPANT_TAB) {
1376
- if (!this.participantVisible) {
1377
- this.toggleParticipants();
1378
- }
1379
- }
1380
- // if (action === FcrUIAction.CURRENT_PARTITIPANT_TAB) {
1381
- // if (payload === FcrRoomType.Waitingroom) {
1382
- // this.isNewWaitingRoomUserEnter = false;
1383
- // }
1384
- // this._participantTab = payload as FcrRoomType;
1385
- // }
1386
- if (action === _constant.FcrUIAction.CHAT_ROOM_TAB_CHANGE) {
1387
- this.chatTabIndex = payload;
1388
- this.newMessageCount[this.chatTabIndex] = 0;
1389
- }
1390
- if (action === _constant.FcrUIAction.CLOSE_WAITING_ROOM_DIALOG) {
1391
- var waitingDialogId = '';
1392
- this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1393
- if (dialogKey === _constant.FcrUIDialogKey.WAITING_ROOM) {
1394
- waitingDialogId = dialogId;
1395
- }
1396
- });
1397
- this._dialogProvider.closeDialog(waitingDialogId);
1398
- }
1399
- if (action === _constant.FcrUIAction.CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG) {
1400
- var operationDialogId = '';
1401
- this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1402
- if (dialogKey === payload) {
1403
- operationDialogId = dialogId;
1404
- }
1405
- });
1406
- this._dialogProvider.closeDialog(operationDialogId);
1407
- }
1408
- if (action === _constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER) {
1409
- this._operateWaitingRoom(payload);
1410
- }
1411
- if (action === _constant.FcrUIAction.ENABLE_WAITING_ROOM) {
1412
- this.setEnableWaitingRoom(payload, true);
1413
- }
1414
- }
1415
- }, {
1416
- key: "_operateWaitingRoom",
1417
- value: function () {
1418
- var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(isOperate) {
1419
- return _regenerator["default"].wrap(function (_context4) {
1420
- while (1) switch (_context4.prev = _context4.next) {
1421
- case 0:
1422
- if (!isOperate) {
1423
- _context4.next = 1;
1424
- break;
1425
- }
1426
- _context4.next = 1;
1427
- return this.moveToMainRoomAllMember();
1428
- case 1:
1429
- _context4.next = 2;
1430
- return this.setEnableWaitingRoom(false, false);
1431
- case 2:
1432
- case "end":
1433
- return _context4.stop();
1434
- }
1435
- }, _callee4, this);
1436
- }));
1437
- function _operateWaitingRoom(_x4) {
1438
- return _operateWaitingRoom2.apply(this, arguments);
1439
- }
1440
- return _operateWaitingRoom;
1441
- }()
1442
- }, {
1443
- key: "_handleCloudRecordingStateUpdated",
1444
- value: function _handleCloudRecordingStateUpdated(_roomId, state) {
1445
- this.cloudRecordingState = state;
1446
- }
1447
- }, {
1448
- key: "setOutputLanguage",
1449
- value: function () {
1450
- var _setOutputLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(language) {
1451
- var _this$_interpreterPro2,
1452
- _this7 = this;
1453
- return _regenerator["default"].wrap(function (_context5) {
1454
- while (1) switch (_context5.prev = _context5.next) {
1455
- case 0:
1456
- _context5.next = 1;
1457
- return (_this$_interpreterPro2 = this._interpreterProvider) === null || _this$_interpreterPro2 === void 0 ? void 0 : _this$_interpreterPro2.setOutputLanguage(language, function () {
1458
- if (!_this7._deviceProvider.microphoneEnabled) {
1459
- _this7._messageProvider.showToast({
1460
- type: 'info',
1461
- message: (0, _i18n.transI18n)('fmt_interpretation_interpreter_toast_label_open_micro')
1462
- });
1463
- }
1464
- });
1465
- case 1:
1466
- case "end":
1467
- return _context5.stop();
1468
- }
1469
- }, _callee5, this);
1470
- }));
1471
- function setOutputLanguage(_x5) {
1472
- return _setOutputLanguage.apply(this, arguments);
1473
- }
1474
- return setOutputLanguage;
1475
- }()
1476
- }, {
1477
- key: "subscribeLanguage",
1478
- value: function () {
1479
- var _subscribeLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(language) {
1480
- var _this$_interpreterPro3;
1481
- return _regenerator["default"].wrap(function (_context6) {
1482
- while (1) switch (_context6.prev = _context6.next) {
1483
- case 0:
1484
- _context6.next = 1;
1485
- return (_this$_interpreterPro3 = this._interpreterProvider) === null || _this$_interpreterPro3 === void 0 ? void 0 : _this$_interpreterPro3.subscribeLanguage(language);
1486
- case 1:
1487
- case "end":
1488
- return _context6.stop();
1489
- }
1490
- }, _callee6, this);
1491
- }));
1492
- function subscribeLanguage(_x6) {
1493
- return _subscribeLanguage.apply(this, arguments);
1494
- }
1495
- return subscribeLanguage;
1496
- }()
1497
- }, {
1498
- key: "subscribeExtraOriginLanguage",
1499
- value: function () {
1500
- var _subscribeExtraOriginLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(enable) {
1501
- var _this$_interpreterPro4;
1502
- return _regenerator["default"].wrap(function (_context7) {
1503
- while (1) switch (_context7.prev = _context7.next) {
1504
- case 0:
1505
- (_this$_interpreterPro4 = this._interpreterProvider) === null || _this$_interpreterPro4 === void 0 || _this$_interpreterPro4.subscribeExtraOriginLanguage(enable);
1506
- case 1:
1507
- case "end":
1508
- return _context7.stop();
1509
- }
1510
- }, _callee7, this);
1511
- }));
1512
- function subscribeExtraOriginLanguage(_x7) {
1513
- return _subscribeExtraOriginLanguage.apply(this, arguments);
1514
- }
1515
- return subscribeExtraOriginLanguage;
1516
- }() //是否有离线翻译官
1517
- }, {
1518
- key: "getOfflineUserExistenceState",
1519
- value: function getOfflineUserExistenceState() {
1520
- var _this$_interpreterPro5,
1521
- _this8 = this;
1522
- var isOffLine = (_this$_interpreterPro5 = this._interpreterProvider) === null || _this$_interpreterPro5 === void 0 || (_this$_interpreterPro5 = _this$_interpreterPro5.getInterpreterList()) === null || _this$_interpreterPro5 === void 0 ? void 0 : _this$_interpreterPro5.some(function (ele) {
1523
- return !_this8._userControl.getUserList().find(function (item) {
1524
- return item.userId === ele.userId;
1525
- });
1526
- });
1527
- return !!isOffLine;
1528
- }
1529
- }, {
1530
- key: "clickWidget",
1531
- value: function clickWidget(widgetConfig) {
1532
- if (widgetConfig.type === _type2.FcrWidgetType.eventWidget) {
1533
- this._widgetProvider.onWidgetClick(widgetConfig.id);
1534
- } else {
1535
- this._widgetProvider.openWidget(widgetConfig.id);
1536
- }
1537
- }
1538
- }, {
1539
- key: "closeWidget",
1540
- value: function closeWidget(widgetId) {
1541
- this._widgetProvider.closeWidget(widgetId);
1542
- }
1543
- }, {
1544
- key: "_checkIsWidgetSupportedRole",
1545
- value: function _checkIsWidgetSupportedRole(widgetConfig, _role) {
1546
- var _widgetConfig$support;
1547
- if (!widgetConfig.supportedRoles || widgetConfig.supportedRoles.length === 0 || (_widgetConfig$support = widgetConfig.supportedRoles) !== null && _widgetConfig$support !== void 0 && _widgetConfig$support.includes(this.localUserRole)) {
1548
- return true;
1549
- }
1550
- return false;
1551
- }
1552
- }]);
1553
- }();
1554
- _ActionBarStore = ActionBarStore;
1555
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.observable, 1, "hasOfflineUserExistence"], [_mobx.observable, 1, "connectionState"], [_mobx.observable, 1, "appActionbarPopoverVisible"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_mobx.computed, 3, "registeredWidgetConfigs"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "sharingOwnerUser"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_mobx.computed, 3, "newMessageCount"], [_mobx.computed, 3, "endMeetingPopoverOpened"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "isAllowJoinWithAudioEnabled"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setAllowWriteBoard"], [_decorator.bound, 2, "setAllowAnnotation"], [_decorator.bound, 2, "setAllowScreenShare"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeShareScreen"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_handleJoinWaitingRoomDecs, 18, "_handleJoinWaitingRoom"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_setAppActionbarPopoverVisibleDecs, 18, "setAppActionbarPopoverVisible"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "setAlllowChangeName"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_setOutputLanguageDecs, 18, "setOutputLanguage"], [_subscribeLanguageDecs, 18, "subscribeLanguage"], [_subscribeExtraOriginLanguageDecs, 18, "subscribeExtraOriginLanguage"], [_getOfflineUserExistenceStateDecs, 18, "getOfflineUserExistenceState"], [_clickWidgetDecs, 18, "clickWidget"], [_closeWidgetDecs, 18, "closeWidget"]], []).e, 16);
1556
- _init_newMessageTooltipVisible = _applyDecs$e[0];
1557
- _init_totalWaitingRoomUser = _applyDecs$e[1];
1558
- _init_liveStreamingState = _applyDecs$e[2];
1559
- _init_currentMenuIs = _applyDecs$e[3];
1560
- _init_cloudRecordingState = _applyDecs$e[4];
1561
- _init_connectionSettingVisible = _applyDecs$e[5];
1562
- _init_folded = _applyDecs$e[6];
1563
- _init_boardOwnerUser = _applyDecs$e[7];
1564
- _init_showArrow = _applyDecs$e[8];
1565
- _init_phoneMicEnabled = _applyDecs$e[9];
1566
- _init_chatTabIndex = _applyDecs$e[10];
1567
- _init_stateBarLeaveMeeting = _applyDecs$e[11];
1568
- _init_hasOfflineUserExistence = _applyDecs$e[12];
1569
- _init_connectionState = _applyDecs$e[13];
1570
- _init_appActionbarPopoverVisible = _applyDecs$e[14];
1571
- _initProto = _applyDecs$e[15];
1572
- var ActionBarContext = exports.ActionBarContext = /*#__PURE__*/(0, _react.createContext)(null);