fcr-ui-scene 3.2.0 → 3.3.0

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 (219) hide show
  1. package/installer/icons/favicon.ico +0 -0
  2. package/installer/icons/favicon.png +0 -0
  3. package/installer/mac/entitlements.mac.plist +16 -0
  4. package/lib/common/device-store.d.ts +1 -1
  5. package/lib/common/device-store.js +11 -3
  6. package/lib/common/event-store.d.ts +17 -1
  7. package/lib/common/event-store.js +38 -5
  8. package/lib/common/security-store.d.ts +14 -4
  9. package/lib/common/security-store.js +149 -30
  10. package/lib/electron/bootstrap-dev.d.ts +1 -0
  11. package/lib/electron/bootstrap-dev.js +51 -0
  12. package/lib/electron/bootstrap-sdk.d.ts +1 -0
  13. package/lib/electron/bootstrap-sdk.js +56 -0
  14. package/lib/electron/bootstrap.d.ts +1 -0
  15. package/lib/electron/bootstrap.js +56 -0
  16. package/lib/electron/default-options.js +1 -1
  17. package/lib/electron/dev.d.ts +1 -0
  18. package/lib/electron/dev.js +51 -0
  19. package/lib/electron/injections.d.ts +1 -1
  20. package/lib/electron/injections.js +3 -6
  21. package/lib/electron/main.js +4 -16
  22. package/lib/electron/plugins/meeting-state.d.ts +2 -0
  23. package/lib/electron/plugins/meeting-state.js +39 -0
  24. package/lib/electron/preload.js +1 -1
  25. package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
  26. package/lib/fragments/control-bar/control-bar-store.js +371 -79
  27. package/lib/fragments/control-bar/device/index.js +5 -3
  28. package/lib/fragments/control-bar/index.css +15 -10
  29. package/lib/fragments/control-bar/index.js +18 -0
  30. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
  31. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
  32. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
  33. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
  34. package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
  35. package/lib/fragments/control-bar/more-actions/index.css +53 -0
  36. package/lib/fragments/control-bar/more-actions/index.js +72 -37
  37. package/lib/fragments/control-bar/security-content/index.css +10 -0
  38. package/lib/fragments/control-bar/security-content/index.js +40 -18
  39. package/lib/fragments/control-bar/view.js +8 -2
  40. package/lib/login-confirm-dialog.d.ts +12 -0
  41. package/lib/login-confirm-dialog.js +80 -0
  42. package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
  43. package/lib/modules/action-bar/chat/index.js +5 -5
  44. package/lib/modules/action-bar/device/index.css +7 -2
  45. package/lib/modules/action-bar/device/index.js +4 -4
  46. package/lib/modules/action-bar/index.css +59 -12
  47. package/lib/modules/action-bar/index.d.ts +3 -2
  48. package/lib/modules/action-bar/index.dev.js +1 -1
  49. package/lib/modules/action-bar/index.js +21 -0
  50. package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
  51. package/lib/modules/action-bar/leave/assign-host.js +2 -4
  52. package/lib/modules/action-bar/leave/index.js +29 -6
  53. package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
  54. package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
  55. package/lib/modules/action-bar/more/poppover-content.js +4 -4
  56. package/lib/modules/action-bar/participants/index.css +12 -0
  57. package/lib/modules/action-bar/participants/index.js +21 -14
  58. package/lib/modules/action-bar/screen-share/index.js +5 -1
  59. package/lib/modules/action-bar/screen-share/submenu.js +16 -22
  60. package/lib/modules/action-bar/security/drop-menu.js +90 -13
  61. package/lib/modules/action-bar/store.d.ts +38 -6
  62. package/lib/modules/action-bar/store.js +487 -95
  63. package/lib/modules/action-bar/view.js +65 -42
  64. package/lib/modules/chat/chat-bar/index.js +39 -27
  65. package/lib/modules/chat/chat-select/index.css +14 -4
  66. package/lib/modules/chat/chat.d.ts +1 -2
  67. package/lib/modules/chat/chat.js +184 -105
  68. package/lib/modules/chat/index.css +49 -0
  69. package/lib/modules/chat/index.d.ts +2 -2
  70. package/lib/modules/chat/index.dev.js +1 -1
  71. package/lib/modules/chat/index.js +13 -8
  72. package/lib/modules/chat/message-list.js +59 -48
  73. package/lib/modules/chat/store.d.ts +48 -2
  74. package/lib/modules/chat/store.js +258 -45
  75. package/lib/modules/connection-gateway/index.d.ts +2 -1
  76. package/lib/modules/connection-gateway/store.d.ts +6 -3
  77. package/lib/modules/connection-gateway/store.js +5 -1
  78. package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
  79. package/lib/modules/device-pretest/index.css +0 -4
  80. package/lib/modules/device-pretest/settings/beauty.js +17 -6
  81. package/lib/modules/device-pretest/store.js +7 -11
  82. package/lib/modules/dialog/components/chat/electron.js +2 -1
  83. package/lib/modules/dialog/components/confirm/electron.js +5 -3
  84. package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
  85. package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
  86. package/lib/modules/dialog/components/device-setting/electron.js +3 -1
  87. package/lib/modules/dialog/components/device-setting/index.css +0 -1
  88. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
  89. package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
  90. package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
  91. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
  92. package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
  93. package/lib/modules/dialog/components/participant/electron.js +2 -1
  94. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
  95. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
  96. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
  97. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
  98. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
  99. package/lib/modules/dialog/components/whiteboard/index.js +2 -1
  100. package/lib/modules/dialog/dialogs.js +17 -13
  101. package/lib/modules/dialog/index.css +2 -0
  102. package/lib/modules/dialog/store.d.ts +4 -0
  103. package/lib/modules/dialog/store.js +16 -2
  104. package/lib/modules/event-notification/context.d.ts +2 -0
  105. package/lib/modules/event-notification/context.js +9 -0
  106. package/lib/modules/event-notification/index.css +58 -0
  107. package/lib/modules/event-notification/index.d.ts +13 -0
  108. package/lib/modules/event-notification/index.js +48 -0
  109. package/lib/modules/event-notification/store.d.ts +17 -0
  110. package/lib/modules/event-notification/store.js +133 -0
  111. package/lib/modules/event-notification/view.d.ts +5 -0
  112. package/lib/modules/event-notification/view.js +114 -0
  113. package/lib/modules/invite/index.css +4 -4
  114. package/lib/modules/invite/pstn-invite.js +1 -0
  115. package/lib/modules/layout/components/Gallery.js +7 -1
  116. package/lib/modules/layout/components/Layout.js +82 -57
  117. package/lib/modules/layout/components/index.css +33 -6
  118. package/lib/modules/layout/index.css +30 -0
  119. package/lib/modules/layout/member-window/index.js +9 -3
  120. package/lib/modules/layout/store.d.ts +19 -2
  121. package/lib/modules/layout/store.js +177 -70
  122. package/lib/modules/layout/video-window-datasource.d.ts +1 -1
  123. package/lib/modules/layout/video-window-datasource.js +1 -1
  124. package/lib/modules/live-streaming/index.dev.js +1 -1
  125. package/lib/modules/participant/attendee/index.d.ts +12 -3
  126. package/lib/modules/participant/attendee/index.js +132 -30
  127. package/lib/modules/participant/index.css +20 -0
  128. package/lib/modules/participant/index.d.ts +5 -2
  129. package/lib/modules/participant/index.dev.js +1 -1
  130. package/lib/modules/participant/index.js +27 -0
  131. package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
  132. package/lib/modules/participant/store.d.ts +30 -5
  133. package/lib/modules/participant/store.js +347 -74
  134. package/lib/modules/participant/view.js +133 -34
  135. package/lib/modules/setting/index.css +1 -5
  136. package/lib/modules/setting/index.dev.js +1 -1
  137. package/lib/modules/setting/store.d.ts +2 -2
  138. package/lib/modules/setting/store.js +3 -8
  139. package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
  140. package/lib/modules/setting/video-settings/index.css +9 -6
  141. package/lib/modules/share-screen/index.d.ts +2 -0
  142. package/lib/modules/share-screen/index.dev.js +3 -2
  143. package/lib/modules/share-screen/selection/index.css +2 -0
  144. package/lib/modules/share-screen/store.d.ts +6 -3
  145. package/lib/modules/share-screen/store.js +170 -129
  146. package/lib/modules/state-bar/index.css +2 -2
  147. package/lib/modules/state-bar/index.d.ts +2 -2
  148. package/lib/modules/state-bar/index.dev.js +1 -1
  149. package/lib/modules/state-bar/meeting-detail.css +6 -4
  150. package/lib/modules/state-bar/meeting-details.js +29 -3
  151. package/lib/modules/state-bar/meeting-network-state.css +14 -3
  152. package/lib/modules/state-bar/meeting-network-state.js +10 -4
  153. package/lib/modules/state-bar/recording.js +3 -5
  154. package/lib/modules/state-bar/store.d.ts +4 -2
  155. package/lib/modules/state-bar/store.js +18 -3
  156. package/lib/modules/state-bar/view.js +1 -6
  157. package/lib/modules/video-window/index.css +1 -0
  158. package/lib/modules/video-window/store.d.ts +2 -2
  159. package/lib/modules/video-window/store.js +14 -11
  160. package/lib/modules/waiting-room-layout/context.d.ts +2 -0
  161. package/lib/modules/waiting-room-layout/context.js +9 -0
  162. package/lib/modules/waiting-room-layout/index.css +71 -0
  163. package/lib/modules/waiting-room-layout/index.d.ts +8 -0
  164. package/lib/modules/waiting-room-layout/index.js +47 -0
  165. package/lib/modules/waiting-room-layout/store.d.ts +30 -0
  166. package/lib/modules/waiting-room-layout/store.js +189 -0
  167. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  168. package/lib/modules/waiting-room-layout/type.js +1 -0
  169. package/lib/modules/waiting-room-layout/view.d.ts +3 -0
  170. package/lib/modules/waiting-room-layout/view.js +67 -0
  171. package/lib/modules/whiteboard/app.js +0 -6
  172. package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
  173. package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
  174. package/lib/modules/whiteboard/components/progress/electron.js +2 -1
  175. package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
  176. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
  177. package/lib/modules/whiteboard/components/switch-theme/index.js +20 -15
  178. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
  179. package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
  180. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
  181. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
  182. package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
  183. package/lib/modules/whiteboard/context.d.ts +4 -0
  184. package/lib/modules/whiteboard/context.js +4 -2
  185. package/lib/modules/whiteboard/index.js +22 -6
  186. package/lib/plugins/browser-runtime-plugin.js +1 -1
  187. package/lib/plugins/module-dev-plugin.js +8 -6
  188. package/lib/runtime.d.ts +1 -1
  189. package/lib/translations/enUS.d.ts +449 -6
  190. package/lib/translations/enUS.js +485 -32
  191. package/lib/translations/zhCN.d.ts +447 -6
  192. package/lib/translations/zhCN.js +468 -17
  193. package/lib/type.d.ts +6 -2
  194. package/lib/ui-manager.d.ts +7 -3
  195. package/lib/ui-manager.js +576 -139
  196. package/lib/ui-scene.d.ts +1 -0
  197. package/lib/ui-scene.js +26 -21
  198. package/lib/utilities/constant.d.ts +43 -4
  199. package/lib/utilities/constant.js +41 -1
  200. package/lib/utilities/parameters.js +2 -2
  201. package/lib/utilities/renderer.d.ts +1 -0
  202. package/lib/utilities/renderer.js +6 -2
  203. package/package.json +14 -14
  204. package/public/assets/fcr_defaultpage.png +0 -0
  205. package/public/assets/login_confirm.png +0 -0
  206. package/public/index.html +29 -11
  207. package/dist/132.js +0 -2
  208. package/dist/132.js.LICENSE.txt +0 -311
  209. package/dist/651.js +0 -2
  210. package/dist/651.js.LICENSE.txt +0 -1
  211. package/dist/73.js +0 -1
  212. package/dist/index.html +0 -13
  213. package/dist/main.da7c203ab32d15742cfe.css +0 -11760
  214. package/dist/main.js +0 -2
  215. package/dist/main.js.LICENSE.txt +0 -254
  216. package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
  217. package/lib/modules/device-pretest/settings/index.css +0 -15
  218. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  219. package/lib/modules/participant/attendee/participants-more-action.js +0 -278
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
22
  exports["default"] = void 0;
23
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
23
24
  require("core-js/modules/es.array.concat.js");
24
25
  require("core-js/modules/es.array.filter.js");
25
26
  require("core-js/modules/es.array.find.js");
@@ -91,17 +92,19 @@ require("core-js/modules/esnext.weak-map.emplace.js");
91
92
  require("core-js/modules/web.dom-collections.for-each.js");
92
93
  require("core-js/modules/web.dom-collections.iterator.js");
93
94
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
95
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
94
96
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
95
97
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
96
98
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
97
99
  var _agoraEduCore = require("agora-edu-core");
98
100
  var _type = require("agora-edu-core/lib/type");
101
+ var _constant = require("../../utilities/constant");
99
102
  var _logger = require("agora-foundation/lib/logger");
100
103
  var _type2 = require("agora-rte-sdk/lib/core/scene/type");
101
104
  var _type3 = require("agora-rte-sdk/lib/type");
105
+ var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
102
106
  var _toast = require("agora-ui-foundation/lib/components/toast");
103
107
  var _mobx = require("mobx");
104
- var _constant = require("../../utilities/constant");
105
108
  var _decorator = require("agora-foundation/lib/decorator");
106
109
  var _rendererEvent = require("../../utilities/renderer-event");
107
110
  var _mobxUtils = require("mobx-utils");
@@ -111,7 +114,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
111
114
  var _i18n2 = require("../../hooks/i18n");
112
115
  var _type5 = require("agora-edu-core/lib/room-control/user-control/type");
113
116
  var _ParticipantStore;
114
- var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _getAllowedOperationsDecs, _handlerUserActionDecs, _handlerRoomControlActionDecs, _handleEventDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _onUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _ref;
117
+ var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_isNewWaitingRoomUserEnter, _init_waitingRoomUserCount, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _getAllowedOperationsDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _handlerUserActionDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _onUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _ref;
115
118
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
116
119
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
117
120
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -139,7 +142,10 @@ var _J = /*#__PURE__*/new WeakMap();
139
142
  var _K = /*#__PURE__*/new WeakMap();
140
143
  var _L = /*#__PURE__*/new WeakMap();
141
144
  var _M = /*#__PURE__*/new WeakMap();
142
- _ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], "logger");
145
+ var _N = /*#__PURE__*/new WeakMap();
146
+ var _O = /*#__PURE__*/new WeakMap();
147
+ var _P = /*#__PURE__*/new WeakMap();
148
+ _ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], "logger");
143
149
  var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
144
150
  function ParticipantStore(_ref2) {
145
151
  var _this = this;
@@ -153,6 +159,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
153
159
  (0, _classCallCheck2["default"])(this, ParticipantStore);
154
160
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
155
161
  (0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
162
+ (0, _defineProperty2["default"])(this, "_waitingRoomDataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
156
163
  (0, _defineProperty2["default"])(this, "_disposers", []);
157
164
  (0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
158
165
  (0, _defineProperty2["default"])(this, "_unmuteVideoTimestamp", new Map());
@@ -176,6 +183,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
176
183
  (0, _defineProperty2["default"])(this, "_eventObserver", {
177
184
  onEvent: this._handleEvent
178
185
  });
186
+ (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
187
+ onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
188
+ onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
189
+ });
179
190
  (0, _defineProperty2["default"])(this, "_whitebaordObderver", {
180
191
  onActive: function onActive(ownerId, operatorUser) {
181
192
  _this._updateUserBoardState(operatorUser);
@@ -197,6 +208,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
197
208
  _classPrivateFieldInitSpec(this, _K, _init_enableSpotlight(this, true));
198
209
  _classPrivateFieldInitSpec(this, _L, _init_mergeConfirmDialog(this, false));
199
210
  _classPrivateFieldInitSpec(this, _M, _init_mergeUserId(this, ''));
211
+ _classPrivateFieldInitSpec(this, _N, _init_activeTab(this, _constant.RoomType.MAIN_ROOM));
212
+ _classPrivateFieldInitSpec(this, _O, _init_isNewWaitingRoomUserEnter(this, false));
213
+ _classPrivateFieldInitSpec(this, _P, _init_waitingRoomUserCount(this, 0));
214
+ (0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
215
+ var _this$_userControl$ge;
216
+ return _this.getAllowedOperations(userRole, userId === ((_this$_userControl$ge = _this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId));
217
+ }));
200
218
  (0, _defineProperty2["default"])(this, "checkIsPin", (0, _mobxUtils.computedFn)(function (userId) {
201
219
  var _this$userMap$get;
202
220
  return !!((_this$userMap$get = _this.userMap.get(userId)) !== null && _this$userMap$get !== void 0 && _this$userMap$get.streams.some(function (stream) {
@@ -204,7 +222,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
204
222
  }));
205
223
  }));
206
224
  (0, _defineProperty2["default"])(this, "_formatUser", function (user) {
207
- var _this$_userControl$ge;
225
+ var _this$_userControl$ge2;
208
226
  var targetUsers = user.streams;
209
227
  var hasShareScreen = targetUsers.find(function (user) {
210
228
  return user.videoSourceType === _type3.AgoraRteVideoSourceType.SCREEN;
@@ -275,7 +293,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
275
293
  userId: user.userId,
276
294
  userName: user.userInfo.userName,
277
295
  isHost: user.userInfo.userRole === _type.FcrUserRole.HOST,
278
- isMe: user.userId === ((_this$_userControl$ge = _this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId),
296
+ isMe: user.userId === ((_this$_userControl$ge2 = _this._userControl.getLocalUser()) === null || _this$_userControl$ge2 === void 0 ? void 0 : _this$_userControl$ge2.userId),
279
297
  hasAudio: hasAudio,
280
298
  hasVideo: hasVideo,
281
299
  isScreenSharing: !!hasShareScreen,
@@ -284,7 +302,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
284
302
  userType: userType,
285
303
  userRole: user.userInfo.userRole,
286
304
  isSpotlight: isSpotlight,
287
- isBoardActive: user.userInfo.isBoardActive
305
+ isBoardActive: user.userInfo.isBoardActive,
306
+ allowedOperations: _this.allowedOperations(user.userId, user.userInfo.userRole),
307
+ isPin: _this.checkIsPin(user.userId)
288
308
  };
289
309
  });
290
310
  this._roomControl = roomControl;
@@ -410,10 +430,38 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
410
430
  set: function set(v) {
411
431
  _classPrivateFieldSet(_M, this, v);
412
432
  }
433
+ }, {
434
+ key: "activeTab",
435
+ get: function get() {
436
+ return _classPrivateFieldGet(_N, this);
437
+ },
438
+ set: function set(v) {
439
+ _classPrivateFieldSet(_N, this, v);
440
+ }
441
+ }, {
442
+ key: "isNewWaitingRoomUserEnter",
443
+ get: function get() {
444
+ return _classPrivateFieldGet(_O, this);
445
+ },
446
+ set: function set(v) {
447
+ _classPrivateFieldSet(_O, this, v);
448
+ }
449
+ }, {
450
+ key: "waitingRoomUserCount",
451
+ get: function get() {
452
+ return _classPrivateFieldGet(_P, this);
453
+ },
454
+ set: function set(v) {
455
+ _classPrivateFieldSet(_P, this, v);
456
+ }
413
457
  }, {
414
458
  key: "userListSource",
415
459
  get: function get() {
416
- return this._dataSource.list;
460
+ if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
461
+ return this._dataSource.list;
462
+ } else {
463
+ return this._waitingRoomDataSource.list;
464
+ }
417
465
  }
418
466
  }, {
419
467
  key: "mergeUserInfo",
@@ -534,6 +582,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
534
582
  value: function hasMutePermission(targetRole) {
535
583
  return this._securityStore.hasMutePermission(targetRole);
536
584
  }
585
+ }, {
586
+ key: "hasWaitingRoomPermission",
587
+ value: function hasWaitingRoomPermission() {
588
+ return this._securityStore.isWaitingRoomEnabled() && this._securityStore.hasWaitingRoomPermission();
589
+ }
537
590
  }, {
538
591
  key: "hasUnmutePermission",
539
592
  value: function hasUnmutePermission(targetRole) {
@@ -687,55 +740,184 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
687
740
  value: function getAllowedOperations(targetRole, isSelf) {
688
741
  return this._securityStore.getAllowedOperations(targetRole, isSelf);
689
742
  }
743
+ }, {
744
+ key: "closeRemoveAdmitWaitingRoomDialog",
745
+ value: function closeRemoveAdmitWaitingRoomDialog(dialogKey) {
746
+ this._uiEventStore.closeRemoveAdmitWaitingRoomDialog(dialogKey);
747
+ }
748
+ }, {
749
+ key: "openRemoveAdmitWaitingRoomDialog",
750
+ value: function openRemoveAdmitWaitingRoomDialog(dialogKey, params) {
751
+ this._uiEventStore.openDialog(dialogKey, '', {
752
+ userId: params.userId,
753
+ type: params.type,
754
+ title: params.title,
755
+ tooltip: params.tooltip
756
+ });
757
+ }
690
758
  }, {
691
759
  key: "handlerUserAction",
692
760
  value: function handlerUserAction(action, userId) {
693
761
  switch (action) {
694
- case _constant.ParticipantType.MUTE_AUDIO:
762
+ case _attendee.ParticipantActionType.MUTE_AUDIO:
695
763
  this._muteUserAudio(userId);
696
764
  break;
697
- case _constant.ParticipantType.UNMUTE_AUDIO:
765
+ case _attendee.ParticipantActionType.UNMUTE_AUDIO:
698
766
  this._unmuteUserAudio(userId);
699
767
  break;
700
- case _constant.ParticipantType.MUTE_VIDEO:
768
+ case _attendee.ParticipantActionType.MUTE_VIDEO:
701
769
  this._muteUserVideo(userId);
702
770
  break;
703
- case _constant.ParticipantType.UNMUTE_VIDEO:
771
+ case _attendee.ParticipantActionType.UNMUTE_VIDEO:
704
772
  this._unmuteUserVideo(userId);
705
773
  break;
706
- case _constant.ParticipantType.PRIVATE_CHAT:
774
+ case _attendee.ParticipantActionType.PRIVATE_CHAT:
707
775
  this._privateChat(userId);
708
776
  break;
709
- case _constant.ParticipantType.KICK_OUT:
710
- this._kickOutUser(userId);
777
+ case _attendee.ParticipantActionType.KICK_OUT:
778
+ if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
779
+ this._kickOutUser(userId);
780
+ } else {
781
+ var _this$userMap$get5;
782
+ this.openRemoveAdmitWaitingRoomDialog(_constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE, {
783
+ userId: userId,
784
+ type: 'remove',
785
+ title: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_removeall'),
786
+ tooltip: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_label_remove', {
787
+ reason1: (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.userInfo.userName
788
+ })
789
+ });
790
+ }
711
791
  break;
712
- case _constant.ParticipantType.ADD_PIN:
792
+ case _attendee.ParticipantActionType.ADD_PIN:
713
793
  this.addPin(userId);
714
794
  break;
715
- case _constant.ParticipantType.REMOVE_PIN:
795
+ case _attendee.ParticipantActionType.REMOVE_PIN:
716
796
  this.removePin(userId);
717
797
  break;
718
- case _constant.ParticipantType.SET_AS_HOST:
798
+ case _attendee.ParticipantActionType.SET_AS_HOST:
719
799
  this._setAsHost(userId);
720
800
  break;
721
- case _constant.ParticipantType.RENAME:
801
+ case _attendee.ParticipantActionType.RENAME:
722
802
  break;
723
- case _constant.ParticipantType.SET_MAIN_SPEAKER:
803
+ case _attendee.ParticipantActionType.SET_MAIN_SPEAKER:
724
804
  this._uiEventStore.setMainSpeaker({
725
805
  userId: userId
726
806
  });
727
807
  break;
728
- case _constant.ParticipantType.SET_AS_CO_HOST:
808
+ case _attendee.ParticipantActionType.SET_AS_CO_HOST:
729
809
  this._setAsCoHost(userId);
730
810
  break;
731
- case _constant.ParticipantType.SET_AS_ATTENDEE:
811
+ case _attendee.ParticipantActionType.SET_AS_ATTENDEE:
732
812
  this._setAsAttendee(userId);
733
813
  break;
734
- case _constant.ParticipantType.MERGE_VIDEO:
814
+ case _attendee.ParticipantActionType.MERGE_VIDEO:
735
815
  this.setMergeConfirmDialog(true);
736
816
  this.mergeUserId = userId;
817
+ break;
818
+ case _attendee.ParticipantActionType.PUT_IN_WAITING_ROOM:
819
+ this._moveToWaitingRoomByUserIds(userId);
820
+ break;
737
821
  }
738
822
  }
823
+ }, {
824
+ key: "_moveToWaitingRoomByUserIds",
825
+ value: function () {
826
+ var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(userId) {
827
+ var _this$userMap$get6;
828
+ var username;
829
+ return _regenerator["default"].wrap(function _callee$(_context) {
830
+ while (1) switch (_context.prev = _context.next) {
831
+ case 0:
832
+ username = (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName;
833
+ _context.prev = 1;
834
+ _context.next = 4;
835
+ return this._roomControl.moveToWaitingRoomByUserIds([userId]);
836
+ case 4:
837
+ this._uiEventStore.showToast({
838
+ type: 'normal',
839
+ message: (0, _i18n.transI18n)('fmt_waitingroom_put_in_success', {
840
+ reason1: username
841
+ })
842
+ });
843
+ _context.next = 10;
844
+ break;
845
+ case 7:
846
+ _context.prev = 7;
847
+ _context.t0 = _context["catch"](1);
848
+ this._uiEventStore.showToast({
849
+ type: 'error',
850
+ message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_move_in_failed')
851
+ });
852
+ case 10:
853
+ case "end":
854
+ return _context.stop();
855
+ }
856
+ }, _callee, this, [[1, 7]]);
857
+ }));
858
+ function _moveToWaitingRoomByUserIds(_x) {
859
+ return _moveToWaitingRoomByUserIds2.apply(this, arguments);
860
+ }
861
+ return _moveToWaitingRoomByUserIds;
862
+ }()
863
+ }, {
864
+ key: "removeWaitingRoomUser",
865
+ value: function removeWaitingRoomUser(userId, type) {
866
+ var _this$_waitingRoomUse;
867
+ (_this$_waitingRoomUse = this._waitingRoomUserControl) === null || _this$_waitingRoomUse === void 0 || _this$_waitingRoomUse.kickOutByUserIds([userId], type);
868
+ }
869
+ }, {
870
+ key: "kickOutWaitingRoomAllMember",
871
+ value: function () {
872
+ var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(type) {
873
+ var _this$_waitingRoomUse2;
874
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
875
+ while (1) switch (_context2.prev = _context2.next) {
876
+ case 0:
877
+ _context2.next = 2;
878
+ return (_this$_waitingRoomUse2 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse2 === void 0 ? void 0 : _this$_waitingRoomUse2.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
879
+ case 2:
880
+ this._uiEventStore.showToast({
881
+ type: 'normal',
882
+ message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_memberlist_tips_all_removed')
883
+ });
884
+ case 3:
885
+ case "end":
886
+ return _context2.stop();
887
+ }
888
+ }, _callee2, this);
889
+ }));
890
+ function kickOutWaitingRoomAllMember(_x2) {
891
+ return _kickOutWaitingRoomAllMember.apply(this, arguments);
892
+ }
893
+ return kickOutWaitingRoomAllMember;
894
+ }()
895
+ }, {
896
+ key: "moveToMainRoomAllMember",
897
+ value: function () {
898
+ var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
899
+ var _this$_waitingRoomCon;
900
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
901
+ while (1) switch (_context3.prev = _context3.next) {
902
+ case 0:
903
+ _context3.next = 2;
904
+ return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
905
+ case 2:
906
+ this._uiEventStore.showToast({
907
+ type: 'normal',
908
+ message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_memberlist_tips_all_amitted')
909
+ });
910
+ case 3:
911
+ case "end":
912
+ return _context3.stop();
913
+ }
914
+ }, _callee3, this);
915
+ }));
916
+ function moveToMainRoomAllMember() {
917
+ return _moveToMainRoomAllMember.apply(this, arguments);
918
+ }
919
+ return moveToMainRoomAllMember;
920
+ }()
739
921
  }, {
740
922
  key: "getMicStreamVolume",
741
923
  value: function getMicStreamVolume(streamId) {
@@ -798,6 +980,56 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
798
980
  spotlightEnabled = _ref7.spotlightEnabled;
799
981
  this.enableSpotlight = spotlightEnabled;
800
982
  }
983
+ if (action === _constant.UIAction.WAITING_ROOM_CREATED) {
984
+ var room = payload.room;
985
+ this._waitingRoomControl = room;
986
+ var waitingRoomUserControl = room.getUserControl();
987
+ this._waitingRoomUserControl = waitingRoomUserControl;
988
+ waitingRoomUserControl.addObserver(this._waitingRoomUserObserver);
989
+ this.waitingRoomUserCount = this._getWaitingRoomUserCount();
990
+ this._initWaitingRoomUserList();
991
+ }
992
+ if (action === _constant.UIAction.CHANGE_PARTICIPANT_TAB) {
993
+ this.handleActiveTab(payload);
994
+ }
995
+ if (action === _constant.UIAction.WAITING_ROOM_DESTROYED) {
996
+ var _this$_waitingRoomUse3;
997
+ (_this$_waitingRoomUse3 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse3 === void 0 || _this$_waitingRoomUse3.removeObserver(this._waitingRoomUserObserver);
998
+ this._waitingRoomControl = undefined;
999
+ this._waitingRoomUserControl = undefined;
1000
+ this.waitingRoomUserCount = 0;
1001
+ this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
1002
+ }
1003
+ }
1004
+ }, {
1005
+ key: "moveToMainRoomByUserIds",
1006
+ value: function moveToMainRoomByUserIds(userId) {
1007
+ if (this._waitingRoomControl) {
1008
+ this._waitingRoomControl.moveToMainRoomByUserIds(userId);
1009
+ }
1010
+ }
1011
+ }, {
1012
+ key: "handleActiveTab",
1013
+ value: function handleActiveTab(tab) {
1014
+ this.activeTab = tab;
1015
+ this._uiEventStore.sendEvent(_constant.UIAction.CURRENT_PARTITIPANT_TAB, tab);
1016
+ if (this.activeTab === _constant.RoomType.WAITING_ROOM) {
1017
+ this.isNewWaitingRoomUserEnter = false;
1018
+ }
1019
+ }
1020
+ }, {
1021
+ key: "_initWaitingRoomUserList",
1022
+ value: function _initWaitingRoomUserList() {
1023
+ if (!this._waitingRoomUserControl) return;
1024
+ var users = this._waitingRoomUserControl.getUsers();
1025
+ for (var _i = 0, _Object$entries = Object.entries(users); _i < _Object$entries.length; _i++) {
1026
+ var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
1027
+ userId = _Object$entries$_i[0],
1028
+ user = _Object$entries$_i[1];
1029
+ if (userId !== this._userControl.getLocalUser().userId && user.userRole === _type.FcrUserRole.PARTICIPANT) {
1030
+ this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
1031
+ }
1032
+ }
801
1033
  }
802
1034
  }, {
803
1035
  key: "_muteUserAudio",
@@ -921,14 +1153,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
921
1153
  key: "_kickOutUser",
922
1154
  value: function _kickOutUser(userId) {
923
1155
  var _this5 = this,
924
- _this$userMap$get5;
1156
+ _this$userMap$get7;
925
1157
  this.openConfirmDialog({
926
1158
  title: '',
927
1159
  onCancel: function onCancel() {
928
1160
  _this5._uiEventStore.closeConfirmDialog();
929
1161
  },
930
1162
  content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
931
- reason2: (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.userInfo.userName
1163
+ reason2: (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName
932
1164
  }),
933
1165
  onOk: function onOk() {
934
1166
  _this5._userControl.kickOut(userId, _type5.FcrUserKickOutType.Once);
@@ -940,9 +1172,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
940
1172
  }, {
941
1173
  key: "_handleSetHostOrCoHost",
942
1174
  value: function _handleSetHostOrCoHost(userId, type) {
943
- var _this$userMap$get6,
1175
+ var _this$userMap$get8,
944
1176
  _this6 = this;
945
- var username = (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName;
1177
+ var username = (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName;
946
1178
  var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
947
1179
  this.openConfirmDialog({
948
1180
  title: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
@@ -1102,17 +1334,55 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1102
1334
  _this8._updateUserBoardState(modifiedUser);
1103
1335
  });
1104
1336
  }
1337
+ }, {
1338
+ key: "_handleRemoteWaitingUserJoined",
1339
+ value: function _handleRemoteWaitingUserJoined(roomId, events) {
1340
+ var _this9 = this;
1341
+ events.forEach(function (event) {
1342
+ var modifiedUser = event.modifiedUser;
1343
+ if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
1344
+ _this9._waitingRoomDataSource.add(modifiedUser, _this9._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this9._userControl.getLocalUser().userId);
1345
+ // this._updateUserBoardState(modifiedUser);
1346
+ }
1347
+ });
1348
+ if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
1349
+ this.isNewWaitingRoomUserEnter = true;
1350
+ }
1351
+ this.waitingRoomUserCount = this._getWaitingRoomUserCount();
1352
+ }
1353
+ }, {
1354
+ key: "_getWaitingRoomUserCount",
1355
+ value: function _getWaitingRoomUserCount() {
1356
+ var _this$_waitingRoomUse4;
1357
+ return (_this$_waitingRoomUse4 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse4 === void 0 ? void 0 : _this$_waitingRoomUse4.getUserList().filter(function (user) {
1358
+ return user.userRole === _type.FcrUserRole.PARTICIPANT;
1359
+ }).length;
1360
+ }
1361
+ }, {
1362
+ key: "_handleRemoteWaitingUserLeft",
1363
+ value: function _handleRemoteWaitingUserLeft(roomId, events) {
1364
+ var _this10 = this;
1365
+ events.forEach(function (event) {
1366
+ var modifiedUser = event.modifiedUser;
1367
+ _this10._waitingRoomDataSource["delete"](modifiedUser);
1368
+ _this10._updateUserBoardState(modifiedUser);
1369
+ });
1370
+ this.waitingRoomUserCount = this._getWaitingRoomUserCount();
1371
+ if (this._getWaitingRoomUserCount() === 0) {
1372
+ this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
1373
+ }
1374
+ }
1105
1375
  }, {
1106
1376
  key: "_onUserInfoUpdated",
1107
1377
  value: function _onUserInfoUpdated(roomId, event) {
1108
- var _this$userMap$get7;
1378
+ var _this$userMap$get9;
1109
1379
  var targetUser = event.modifiedUser;
1110
1380
  this._updateUserBoardState(targetUser);
1111
1381
  this._dataSource.update(targetUser);
1112
- var originUser = (_this$userMap$get7 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo;
1113
- var _this$_userControl$ge2 = this._userControl.getLocalUser(),
1114
- localUserId = _this$_userControl$ge2.userId,
1115
- localUserRole = _this$_userControl$ge2.userRole;
1382
+ var originUser = (_this$userMap$get9 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get9 === void 0 ? void 0 : _this$userMap$get9.userInfo;
1383
+ var _this$_userControl$ge3 = this._userControl.getLocalUser(),
1384
+ localUserId = _this$_userControl$ge3.userId,
1385
+ localUserRole = _this$_userControl$ge3.userRole;
1116
1386
  var effectSelf = targetUser.userId === localUserId;
1117
1387
  if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
1118
1388
  // 参会者变管理
@@ -1148,45 +1418,45 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1148
1418
  value: function _initUserList() {
1149
1419
  this._refreshCurrentPerspectiveType();
1150
1420
  var users = this._userControl.getUsers();
1151
- for (var _i = 0, _Object$entries = Object.entries(users); _i < _Object$entries.length; _i++) {
1152
- var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
1153
- userId = _Object$entries$_i[0],
1154
- user = _Object$entries$_i[1];
1421
+ for (var _i2 = 0, _Object$entries2 = Object.entries(users); _i2 < _Object$entries2.length; _i2++) {
1422
+ var _Object$entries2$_i = (0, _slicedToArray2["default"])(_Object$entries2[_i2], 2),
1423
+ userId = _Object$entries2$_i[0],
1424
+ user = _Object$entries2$_i[1];
1155
1425
  this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
1156
1426
  }
1157
1427
  }
1158
1428
  }, {
1159
1429
  key: "_handleStreamsAdded",
1160
1430
  value: function _handleStreamsAdded(roomId, events) {
1161
- var _this9 = this;
1431
+ var _this11 = this;
1162
1432
  events.forEach(function (e) {
1163
1433
  var modifiedStream = e.modifiedStream;
1164
- _this9._dataSource.updateWithStreamAdd(modifiedStream);
1434
+ _this11._dataSource.updateWithStreamAdd(modifiedStream);
1165
1435
  });
1166
1436
  }
1167
1437
  }, {
1168
1438
  key: "_handleStreamsUpdated",
1169
1439
  value: function _handleStreamsUpdated(roomId, events) {
1170
- var _this10 = this;
1440
+ var _this12 = this;
1171
1441
  events.forEach(function (e) {
1172
1442
  var modifiedStream = e.modifiedStream;
1173
- _this10._dataSource.update(modifiedStream);
1443
+ _this12._dataSource.update(modifiedStream);
1174
1444
  });
1175
1445
  }
1176
1446
  }, {
1177
1447
  key: "_handleStreamsRemoved",
1178
1448
  value: function _handleStreamsRemoved(roomId, events) {
1179
- var _this11 = this;
1449
+ var _this13 = this;
1180
1450
  events.forEach(function (e) {
1181
1451
  var modifiedStream = e.modifiedStream;
1182
- _this11._dataSource.updateWithStreamRemove(modifiedStream);
1452
+ _this13._dataSource.updateWithStreamRemove(modifiedStream);
1183
1453
  });
1184
1454
  }
1185
1455
  }, {
1186
1456
  key: "_refreshCurrentPerspectiveType",
1187
1457
  value: function _refreshCurrentPerspectiveType() {
1188
- var _this$_userControl$ge3;
1189
- var localUserUid = (_this$_userControl$ge3 = this._userControl.getLocalUser()) === null || _this$_userControl$ge3 === void 0 ? void 0 : _this$_userControl$ge3.userId;
1458
+ var _this$_userControl$ge4;
1459
+ var localUserUid = (_this$_userControl$ge4 = this._userControl.getLocalUser()) === null || _this$_userControl$ge4 === void 0 ? void 0 : _this$_userControl$ge4.userId;
1190
1460
  if (!localUserUid) {
1191
1461
  this.currentPerspectiveType = 'attendee';
1192
1462
  return;
@@ -1209,13 +1479,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1209
1479
  }, {
1210
1480
  key: "_onPeerSessionReceived",
1211
1481
  value: function _onPeerSessionReceived(session) {
1212
- var _this$_userControl$ge4,
1213
- _this12 = this;
1482
+ var _this$_userControl$ge5,
1483
+ _this14 = this;
1214
1484
  if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
1215
1485
  return;
1216
1486
  }
1217
1487
  this._processedUserOpenDeviceRequests.add(session.sessionId);
1218
- var localUserUid = (_this$_userControl$ge4 = this._userControl.getLocalUser()) === null || _this$_userControl$ge4 === void 0 ? void 0 : _this$_userControl$ge4.userId;
1488
+ var localUserUid = (_this$_userControl$ge5 = this._userControl.getLocalUser()) === null || _this$_userControl$ge5 === void 0 ? void 0 : _this$_userControl$ge5.userId;
1219
1489
  if (!localUserUid) {
1220
1490
  return;
1221
1491
  }
@@ -1244,13 +1514,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1244
1514
  okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
1245
1515
  cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
1246
1516
  onOk: function onOk() {
1247
- _this12._peerSessionControl.acceptPeerSession(session);
1248
- _this12._deviceStreamStore.enableCameraWithStream(true);
1249
- _this12._uiEventStore.closeConfirmDialog();
1517
+ _this14._peerSessionControl.acceptPeerSession(session);
1518
+ _this14._deviceStreamStore.enableCameraWithStream(true);
1519
+ _this14._uiEventStore.closeConfirmDialog();
1250
1520
  },
1251
1521
  onCancel: function onCancel() {
1252
- _this12._peerSessionControl.rejectPeerSession(session);
1253
- _this12._uiEventStore.closeConfirmDialog();
1522
+ _this14._peerSessionControl.rejectPeerSession(session);
1523
+ _this14._uiEventStore.closeConfirmDialog();
1254
1524
  }
1255
1525
  }, _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA);
1256
1526
  return;
@@ -1270,13 +1540,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1270
1540
  okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
1271
1541
  cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
1272
1542
  onOk: function onOk() {
1273
- _this12._peerSessionControl.acceptPeerSession(session);
1274
- _this12._deviceStreamStore.enableMicrophoneWithStream(true);
1275
- _this12._uiEventStore.closeConfirmDialog();
1543
+ _this14._peerSessionControl.acceptPeerSession(session);
1544
+ _this14._deviceStreamStore.enableMicrophoneWithStream(true);
1545
+ _this14._uiEventStore.closeConfirmDialog();
1276
1546
  },
1277
1547
  onCancel: function onCancel() {
1278
- _this12._peerSessionControl.rejectPeerSession(session);
1279
- _this12._uiEventStore.closeConfirmDialog();
1548
+ _this14._peerSessionControl.rejectPeerSession(session);
1549
+ _this14._uiEventStore.closeConfirmDialog();
1280
1550
  }
1281
1551
  }, _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
1282
1552
  }
@@ -1316,29 +1586,29 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1316
1586
  }, {
1317
1587
  key: "_addReactions",
1318
1588
  value: function _addReactions() {
1319
- var _this13 = this;
1589
+ var _this15 = this;
1320
1590
  this._disposers.push((0, _mobx.reaction)(function () {
1321
- return _this13._participantsWindowActive;
1591
+ return _this15._participantsWindowActive;
1322
1592
  }, function (active) {
1323
1593
  if (active) {
1324
- _this13._sendEvent(_constant.RendererEventAction.INIT_PARTICIPANT_LIST, {
1325
- userList: _this13.userList,
1326
- perspectiveType: _this13.currentPerspectiveType,
1327
- allowChangeSelfName: _this13._securityStore.allowChangeSelfName(),
1328
- allowChat: _this13._securityStore.allowChat(),
1329
- allowJoinWithMuteAudio: _this13._securityStore.allowJoinWithMuteAudio(),
1330
- allowShareScreen: _this13._securityStore.allowScreenShareAndBoard(),
1331
- allowUnmuteSelfVideo: _this13._securityStore.allowUnmuteSelfVideo(),
1332
- allowUnmuteSelfAudio: _this13._securityStore.allowUnmuteSelfAudio(),
1333
- isLockRoomEnabled: _this13._securityStore.isLockRoomEnabled(),
1334
- isWaitingRoomEnabled: _this13._securityStore.isWaitingRoomEnabled(),
1335
- hasRevokeHostPermission: _this13._securityStore.hasRevokeHostPermission() && _this13._userControl.getLocalUser().userRole !== _type.FcrUserRole.HOST,
1336
- userRole: _this13._userControl.getLocalUser().userRole
1594
+ _this15._sendEvent(_constant.RendererEventAction.INIT_PARTICIPANT_LIST, {
1595
+ userList: _this15.userList,
1596
+ perspectiveType: _this15.currentPerspectiveType,
1597
+ allowChangeSelfName: _this15._securityStore.allowChangeSelfName(),
1598
+ allowChat: _this15._securityStore.allowChat(),
1599
+ allowJoinWithMuteAudio: _this15._securityStore.allowJoinWithMuteAudio(),
1600
+ allowShareScreen: _this15._securityStore.allowScreenShareAndBoard(),
1601
+ allowUnmuteSelfVideo: _this15._securityStore.allowUnmuteSelfVideo(),
1602
+ allowUnmuteSelfAudio: _this15._securityStore.allowUnmuteSelfAudio(),
1603
+ isLockRoomEnabled: _this15._securityStore.isLockRoomEnabled(),
1604
+ isWaitingRoomEnabled: _this15._securityStore.isWaitingRoomEnabled(),
1605
+ hasRevokeHostPermission: _this15._securityStore.hasRevokeHostPermission() && _this15._userControl.getLocalUser().userRole !== _type.FcrUserRole.HOST,
1606
+ userRole: _this15._userControl.getLocalUser().userRole
1337
1607
  });
1338
1608
  }
1339
1609
  }));
1340
1610
  this._disposers.push((0, _mobx.reaction)(function () {
1341
- return _this13.userList;
1611
+ return _this15.userList;
1342
1612
  }, function (list) {
1343
1613
  (0, _rendererEvent.sendEvent)({
1344
1614
  action: _constant.RendererEventAction.UPDATE_PARTICIPANT,
@@ -1364,7 +1634,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1364
1634
  }]);
1365
1635
  }();
1366
1636
  _ParticipantStore = ParticipantStore;
1367
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_onUserInfoUpdatedDecs, 18, "_onUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"]], []).e, 13);
1637
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "waitingRoomUserCount"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_onUserInfoUpdatedDecs, 18, "_onUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"]], []).e, 16);
1368
1638
  _init__mainList = _applyDecs$e[0];
1369
1639
  _init__participantsWindowActive = _applyDecs$e[1];
1370
1640
  _init_currentPerspectiveType = _applyDecs$e[2];
@@ -1377,4 +1647,7 @@ _init_spotlightStreamId = _applyDecs$e[8];
1377
1647
  _init_enableSpotlight = _applyDecs$e[9];
1378
1648
  _init_mergeConfirmDialog = _applyDecs$e[10];
1379
1649
  _init_mergeUserId = _applyDecs$e[11];
1380
- _initProto = _applyDecs$e[12];
1650
+ _init_activeTab = _applyDecs$e[12];
1651
+ _init_isNewWaitingRoomUserEnter = _applyDecs$e[13];
1652
+ _init_waitingRoomUserCount = _applyDecs$e[14];
1653
+ _initProto = _applyDecs$e[15];