fcr-ui-scene 3.1.1 → 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 (372) 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/base.d.ts +0 -1
  5. package/lib/base.js +16 -0
  6. package/lib/common/device-store.d.ts +4 -5
  7. package/lib/common/device-store.js +178 -86
  8. package/lib/common/device-stream-store.d.ts +3 -2
  9. package/lib/common/device-stream-store.js +94 -72
  10. package/lib/common/event-store.d.ts +20 -3
  11. package/lib/common/event-store.js +43 -5
  12. package/lib/common/security-store.d.ts +16 -16
  13. package/lib/common/security-store.js +278 -124
  14. package/lib/electron/app.js +13 -5
  15. package/lib/electron/bootstrap-dev.d.ts +1 -0
  16. package/lib/electron/bootstrap-dev.js +51 -0
  17. package/lib/electron/bootstrap-sdk.d.ts +1 -0
  18. package/lib/electron/bootstrap-sdk.js +56 -0
  19. package/lib/electron/bootstrap.d.ts +1 -0
  20. package/lib/electron/bootstrap.js +56 -0
  21. package/lib/electron/default-options.js +1 -1
  22. package/lib/electron/dev.d.ts +1 -0
  23. package/lib/electron/dev.js +51 -0
  24. package/lib/electron/injections.d.ts +3 -4
  25. package/lib/electron/injections.js +46 -33
  26. package/lib/electron/logger.d.ts +6 -0
  27. package/lib/electron/logger.js +66 -0
  28. package/lib/electron/main.js +15 -11
  29. package/lib/electron/plugins/meeting-state.d.ts +2 -0
  30. package/lib/electron/plugins/meeting-state.js +39 -0
  31. package/lib/electron/preload.js +2 -1
  32. package/lib/electron/tools.js +9 -0
  33. package/lib/electron/window.d.ts +1 -1
  34. package/lib/electron/window.js +14 -2
  35. package/lib/fragments/control-bar/context.d.ts +0 -1
  36. package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
  37. package/lib/fragments/control-bar/control-bar-store.js +394 -81
  38. package/lib/fragments/control-bar/device/index.js +12 -3
  39. package/lib/fragments/control-bar/index.css +15 -10
  40. package/lib/fragments/control-bar/index.js +19 -1
  41. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
  42. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
  43. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
  44. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
  45. package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
  46. package/lib/fragments/control-bar/more-actions/index.css +53 -0
  47. package/lib/fragments/control-bar/more-actions/index.js +77 -37
  48. package/lib/fragments/control-bar/security-content/index.css +10 -0
  49. package/lib/fragments/control-bar/security-content/index.js +43 -18
  50. package/lib/fragments/control-bar/view.js +8 -2
  51. package/lib/fragments/live-streaming/context.d.ts +0 -1
  52. package/lib/fragments/live-streaming/store.js +27 -17
  53. package/lib/fragments/share-screen-selection/context.d.ts +0 -1
  54. package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
  55. package/lib/fragments/share-screen-selection/selection-store.js +34 -33
  56. package/lib/fragments/share-screen-selection/view.js +7 -0
  57. package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
  58. package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
  59. package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
  60. package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
  61. package/lib/fragments/toolbar/components/color-picker.js +3 -1
  62. package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
  63. package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
  64. package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
  65. package/lib/fragments/toolbar/components/pen-picker.js +2 -0
  66. package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
  67. package/lib/fragments/toolbar/components/shape-picker.js +2 -0
  68. package/lib/fragments/toolbar/hooks.d.ts +1 -1
  69. package/lib/fragments/toolbar/hooks.js +13 -8
  70. package/lib/fragments/toolbar/store.d.ts +4 -4
  71. package/lib/fragments/toolbar/store.js +20 -2
  72. package/lib/fragments/toolbar/view.js +2 -0
  73. package/lib/global.d.ts +1 -0
  74. package/lib/hooks/meeting-time.d.ts +2 -2
  75. package/lib/login-confirm-dialog.d.ts +12 -0
  76. package/lib/login-confirm-dialog.js +80 -0
  77. package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
  78. package/lib/modules/action-bar/chat/index.js +6 -6
  79. package/lib/modules/action-bar/context.d.ts +0 -1
  80. package/lib/modules/action-bar/device/index.css +7 -2
  81. package/lib/modules/action-bar/device/index.d.ts +2 -2
  82. package/lib/modules/action-bar/device/index.js +6 -4
  83. package/lib/modules/action-bar/index.css +63 -12
  84. package/lib/modules/action-bar/index.d.ts +3 -2
  85. package/lib/modules/action-bar/index.dev.js +8 -7
  86. package/lib/modules/action-bar/index.js +21 -0
  87. package/lib/modules/action-bar/item-placement.d.ts +1 -2
  88. package/lib/modules/action-bar/item.js +5 -0
  89. package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
  90. package/lib/modules/action-bar/leave/assign-host.js +7 -7
  91. package/lib/modules/action-bar/leave/index.js +35 -7
  92. package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
  93. package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
  94. package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
  95. package/lib/modules/action-bar/more/poppover-content.js +14 -4
  96. package/lib/modules/action-bar/participants/index.css +12 -0
  97. package/lib/modules/action-bar/participants/index.js +21 -14
  98. package/lib/modules/action-bar/screen-share/index.js +5 -1
  99. package/lib/modules/action-bar/screen-share/submenu.js +17 -22
  100. package/lib/modules/action-bar/security/drop-menu.js +124 -14
  101. package/lib/modules/action-bar/security/index.js +1 -1
  102. package/lib/modules/action-bar/settings/index.js +1 -1
  103. package/lib/modules/action-bar/store.d.ts +45 -21
  104. package/lib/modules/action-bar/store.js +544 -134
  105. package/lib/modules/action-bar/view.js +65 -42
  106. package/lib/modules/audio-stream/index.js +12 -6
  107. package/lib/modules/chat/chat-bar/index.js +46 -27
  108. package/lib/modules/chat/chat-select/index.css +19 -4
  109. package/lib/modules/chat/chat-select/index.d.ts +0 -1
  110. package/lib/modules/chat/chat-select/index.js +29 -3
  111. package/lib/modules/chat/chat.d.ts +2 -3
  112. package/lib/modules/chat/chat.js +210 -107
  113. package/lib/modules/chat/contex.d.ts +0 -1
  114. package/lib/modules/chat/demo-wrapper.d.ts +0 -1
  115. package/lib/modules/chat/index.css +49 -0
  116. package/lib/modules/chat/index.d.ts +3 -3
  117. package/lib/modules/chat/index.dev.js +4 -4
  118. package/lib/modules/chat/index.js +32 -11
  119. package/lib/modules/chat/message-list.js +81 -49
  120. package/lib/modules/chat/store.d.ts +50 -4
  121. package/lib/modules/chat/store.js +303 -124
  122. package/lib/modules/chat/util.js +1 -1
  123. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
  124. package/lib/modules/connection-gateway/components/phone/index.js +2 -0
  125. package/lib/modules/connection-gateway/index.d.ts +3 -2
  126. package/lib/modules/connection-gateway/index.js +2 -0
  127. package/lib/modules/connection-gateway/store.d.ts +6 -4
  128. package/lib/modules/connection-gateway/store.js +46 -15
  129. package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
  130. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
  131. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
  132. package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
  133. package/lib/modules/device-pretest/context.d.ts +0 -1
  134. package/lib/modules/device-pretest/index.css +0 -4
  135. package/lib/modules/device-pretest/index.d.ts +0 -1
  136. package/lib/modules/device-pretest/index.js +2 -1
  137. package/lib/modules/device-pretest/settings/beauty.js +19 -6
  138. package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
  139. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
  140. package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
  141. package/lib/modules/device-pretest/store.js +34 -19
  142. package/lib/modules/dialog/components/chat/electron.js +3 -2
  143. package/lib/modules/dialog/components/chat/index.js +1 -1
  144. package/lib/modules/dialog/components/confirm/electron.js +7 -5
  145. package/lib/modules/dialog/components/confirm/index.js +16 -2
  146. package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
  147. package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
  148. package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
  149. package/lib/modules/dialog/components/device-setting/electron.js +74 -0
  150. package/lib/modules/dialog/components/device-setting/index.css +26 -0
  151. package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
  152. package/lib/modules/dialog/components/device-setting/index.js +60 -0
  153. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
  154. package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
  155. package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
  156. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
  157. package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
  158. package/lib/modules/dialog/components/participant/electron.js +8 -2
  159. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
  160. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
  161. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
  162. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
  163. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
  164. package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
  165. package/lib/modules/dialog/components/whiteboard/index.js +2 -1
  166. package/lib/modules/dialog/context.d.ts +0 -1
  167. package/lib/modules/dialog/dialogs.d.ts +0 -2
  168. package/lib/modules/dialog/dialogs.js +62 -103
  169. package/lib/modules/dialog/index.css +7 -6
  170. package/lib/modules/dialog/index.d.ts +1 -1
  171. package/lib/modules/dialog/index.js +17 -0
  172. package/lib/modules/dialog/store.d.ts +6 -2
  173. package/lib/modules/dialog/store.js +52 -9
  174. package/lib/modules/dialog/view.js +2 -0
  175. package/lib/modules/event-notification/context.d.ts +2 -0
  176. package/lib/modules/event-notification/context.js +9 -0
  177. package/lib/modules/event-notification/index.css +58 -0
  178. package/lib/modules/event-notification/index.d.ts +13 -0
  179. package/lib/modules/event-notification/index.js +48 -0
  180. package/lib/modules/event-notification/store.d.ts +17 -0
  181. package/lib/modules/event-notification/store.js +133 -0
  182. package/lib/modules/event-notification/view.d.ts +5 -0
  183. package/lib/modules/event-notification/view.js +114 -0
  184. package/lib/modules/event-toast/context.d.ts +0 -1
  185. package/lib/modules/event-toast/store.js +16 -0
  186. package/lib/modules/invite/context.d.ts +0 -1
  187. package/lib/modules/invite/index.css +4 -4
  188. package/lib/modules/invite/index.d.ts +2 -2
  189. package/lib/modules/invite/pstn-invite.js +4 -1
  190. package/lib/modules/invite/store.d.ts +2 -2
  191. package/lib/modules/invite/store.js +27 -7
  192. package/lib/modules/invite/voip-invite.d.ts +0 -1
  193. package/lib/modules/invite/voip-invite.js +1 -1
  194. package/lib/modules/layout/components/Aside.d.ts +0 -1
  195. package/lib/modules/layout/components/Aside.js +4 -1
  196. package/lib/modules/layout/components/Carousel.js +6 -5
  197. package/lib/modules/layout/components/Gallery.js +16 -9
  198. package/lib/modules/layout/components/Layout.js +82 -57
  199. package/lib/modules/layout/components/index.css +42 -5
  200. package/lib/modules/layout/components/index.js +3 -0
  201. package/lib/modules/layout/context.d.ts +0 -1
  202. package/lib/modules/layout/index.css +30 -0
  203. package/lib/modules/layout/index.dev.js +11 -11
  204. package/lib/modules/layout/index.js +0 -6
  205. package/lib/modules/layout/member-window/index.css +5 -5
  206. package/lib/modules/layout/member-window/index.d.ts +7 -7
  207. package/lib/modules/layout/member-window/index.js +59 -13
  208. package/lib/modules/layout/store.d.ts +61 -50
  209. package/lib/modules/layout/store.js +517 -342
  210. package/lib/modules/layout/type.d.ts +2 -1
  211. package/lib/modules/layout/video-window-datasource.d.ts +14 -8
  212. package/lib/modules/layout/video-window-datasource.js +129 -78
  213. package/lib/modules/live-streaming/context.d.ts +0 -1
  214. package/lib/modules/live-streaming/index.d.ts +2 -2
  215. package/lib/modules/live-streaming/index.dev.js +5 -4
  216. package/lib/modules/live-streaming/store.d.ts +2 -2
  217. package/lib/modules/live-streaming/store.js +32 -11
  218. package/lib/modules/participant/attendee/index.d.ts +12 -3
  219. package/lib/modules/participant/attendee/index.js +142 -30
  220. package/lib/modules/participant/context.d.ts +0 -1
  221. package/lib/modules/participant/index.css +20 -0
  222. package/lib/modules/participant/index.d.ts +5 -2
  223. package/lib/modules/participant/index.dev.js +14 -12
  224. package/lib/modules/participant/index.js +27 -0
  225. package/lib/modules/participant/member-list-data-source.d.ts +3 -3
  226. package/lib/modules/participant/member-list-data-source.js +29 -3
  227. package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
  228. package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
  229. package/lib/modules/participant/store.d.ts +59 -34
  230. package/lib/modules/participant/store.js +541 -222
  231. package/lib/modules/participant/view.d.ts +6 -6
  232. package/lib/modules/participant/view.js +138 -34
  233. package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
  234. package/lib/modules/setting/audio-settings/index.css +2 -2
  235. package/lib/modules/setting/context.d.ts +0 -1
  236. package/lib/modules/setting/general-settings/general-settings.js +2 -1
  237. package/lib/modules/setting/general-settings/index.css +2 -2
  238. package/lib/modules/setting/index.css +1 -5
  239. package/lib/modules/setting/index.d.ts +2 -2
  240. package/lib/modules/setting/index.dev.js +14 -12
  241. package/lib/modules/setting/index.js +16 -0
  242. package/lib/modules/setting/minutes-settings/index.css +65 -0
  243. package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
  244. package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
  245. package/lib/modules/setting/state/index.css +0 -4
  246. package/lib/modules/setting/state/index.js +11 -1
  247. package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
  248. package/lib/modules/setting/store.d.ts +7 -5
  249. package/lib/modules/setting/store.js +69 -46
  250. package/lib/modules/setting/translate-settings/index.css +45 -0
  251. package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
  252. package/lib/modules/setting/translate-settings/language-select.js +50 -0
  253. package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
  254. package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
  255. package/lib/modules/setting/video-settings/index.css +15 -6
  256. package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
  257. package/lib/modules/setting/video-settings/video-settings.js +5 -1
  258. package/lib/modules/setting/view.js +34 -2
  259. package/lib/modules/share-screen/index.d.ts +4 -2
  260. package/lib/modules/share-screen/index.dev.js +17 -14
  261. package/lib/modules/share-screen/index.js +2 -0
  262. package/lib/modules/share-screen/selection/index.css +2 -0
  263. package/lib/modules/share-screen/selection/index.js +44 -6
  264. package/lib/modules/share-screen/share-state-bar/index.css +49 -11
  265. package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
  266. package/lib/modules/share-screen/share-state-bar/index.js +51 -20
  267. package/lib/modules/share-screen/store.d.ts +23 -13
  268. package/lib/modules/share-screen/store.js +733 -606
  269. package/lib/modules/state-bar/context.d.ts +0 -1
  270. package/lib/modules/state-bar/index.css +2 -2
  271. package/lib/modules/state-bar/index.d.ts +2 -2
  272. package/lib/modules/state-bar/index.dev.js +12 -10
  273. package/lib/modules/state-bar/layout-config.js +2 -0
  274. package/lib/modules/state-bar/live-streaming-state.js +3 -0
  275. package/lib/modules/state-bar/meeting-detail.css +6 -4
  276. package/lib/modules/state-bar/meeting-details.js +29 -3
  277. package/lib/modules/state-bar/meeting-network-state.css +14 -3
  278. package/lib/modules/state-bar/meeting-network-state.js +10 -4
  279. package/lib/modules/state-bar/recording.js +9 -11
  280. package/lib/modules/state-bar/store.d.ts +7 -5
  281. package/lib/modules/state-bar/store.js +68 -8
  282. package/lib/modules/state-bar/view.js +4 -8
  283. package/lib/modules/video-window/context.d.ts +0 -1
  284. package/lib/modules/video-window/deviceState/index.d.ts +3 -3
  285. package/lib/modules/video-window/index.css +1 -0
  286. package/lib/modules/video-window/members/index.js +7 -4
  287. package/lib/modules/video-window/store.d.ts +5 -4
  288. package/lib/modules/video-window/store.js +49 -17
  289. package/lib/modules/video-window/topControl/index.js +7 -0
  290. package/lib/modules/video-window/view.js +2 -0
  291. package/lib/modules/waiting-room-layout/context.d.ts +2 -0
  292. package/lib/modules/waiting-room-layout/context.js +9 -0
  293. package/lib/modules/waiting-room-layout/index.css +71 -0
  294. package/lib/modules/waiting-room-layout/index.d.ts +8 -0
  295. package/lib/modules/waiting-room-layout/index.js +47 -0
  296. package/lib/modules/waiting-room-layout/store.d.ts +30 -0
  297. package/lib/modules/waiting-room-layout/store.js +189 -0
  298. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  299. package/lib/modules/waiting-room-layout/type.js +1 -0
  300. package/lib/modules/waiting-room-layout/view.d.ts +3 -0
  301. package/lib/modules/waiting-room-layout/view.js +67 -0
  302. package/lib/modules/whiteboard/app.js +2 -8
  303. package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
  304. package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
  305. package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
  306. package/lib/modules/whiteboard/components/loading/index.js +2 -2
  307. package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
  308. package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
  309. package/lib/modules/whiteboard/components/progress/electron.js +3 -2
  310. package/lib/modules/whiteboard/components/progress/style.css +4 -3
  311. package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
  312. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
  313. package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
  314. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
  315. package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
  316. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
  317. package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
  318. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
  319. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
  320. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
  321. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
  322. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
  323. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
  324. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
  325. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
  326. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
  327. package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
  328. package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
  329. package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
  330. package/lib/modules/whiteboard/context.d.ts +7 -3
  331. package/lib/modules/whiteboard/context.js +6 -4
  332. package/lib/modules/whiteboard/index.d.ts +6 -8
  333. package/lib/modules/whiteboard/index.js +310 -255
  334. package/lib/modules/whiteboard/type.d.ts +4 -12
  335. package/lib/modules/whiteboard/type.js +6 -16
  336. package/lib/modules/whiteboard/utils.d.ts +1 -0
  337. package/lib/modules/whiteboard/utils.js +12 -1
  338. package/lib/plugins/browser-runtime-plugin.js +2 -1
  339. package/lib/plugins/module-dev-plugin.js +12 -10
  340. package/lib/plugins/multi-lang-plugin.d.ts +1 -5
  341. package/lib/plugins/multi-lang-plugin.js +2 -0
  342. package/lib/runtime.d.ts +3 -5
  343. package/lib/translations/enUS.d.ts +590 -0
  344. package/lib/translations/enUS.js +608 -6
  345. package/lib/translations/zhCN.d.ts +588 -0
  346. package/lib/translations/zhCN.js +604 -4
  347. package/lib/type.d.ts +6 -2
  348. package/lib/ui-manager.d.ts +7 -3
  349. package/lib/ui-manager.js +597 -143
  350. package/lib/ui-scene.d.ts +1 -0
  351. package/lib/ui-scene.js +32 -22
  352. package/lib/utilities/board-context.d.ts +0 -1
  353. package/lib/utilities/constant.d.ts +47 -5
  354. package/lib/utilities/constant.js +44 -1
  355. package/lib/utilities/copyText.js +1 -1
  356. package/lib/utilities/extract.js +26 -3
  357. package/lib/utilities/hooks.js +2 -0
  358. package/lib/utilities/parameters.js +2 -2
  359. package/lib/utilities/renderer-event.js +28 -0
  360. package/lib/utilities/renderer.d.ts +1 -0
  361. package/lib/utilities/renderer.js +15 -6
  362. package/lib/utilities/tools.js +5 -2
  363. package/lib/utilities/ui-resources.d.ts +2 -2
  364. package/lib/utilities/ui-resources.js +20 -3
  365. package/lib/utilities/video-track-render-context.d.ts +0 -1
  366. package/package.json +17 -16
  367. package/public/assets/fcr_defaultpage.png +0 -0
  368. package/public/assets/login_confirm.png +0 -0
  369. package/public/index.html +29 -11
  370. package/lib/modules/device-pretest/settings/index.css +0 -15
  371. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  372. package/lib/modules/participant/attendee/participants-more-action.js +0 -275
@@ -7,12 +7,15 @@ require("core-js/modules/es.error.cause.js");
7
7
  require("core-js/modules/es.error.to-string.js");
8
8
  require("core-js/modules/es.array.is-array.js");
9
9
  require("core-js/modules/es.date.to-primitive.js");
10
- require("core-js/modules/es.function.bind.js");
11
10
  require("core-js/modules/es.function.name.js");
12
- require("core-js/modules/es.number.constructor.js");
13
11
  require("core-js/modules/es.object.create.js");
12
+ require("core-js/modules/es.object.define-properties.js");
14
13
  require("core-js/modules/es.object.define-property.js");
15
14
  require("core-js/modules/es.object.get-own-property-descriptor.js");
15
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
16
+ require("core-js/modules/es.object.keys.js");
17
+ require("core-js/modules/esnext.function.metadata.js");
18
+ require("core-js/modules/esnext.symbol.metadata.js");
16
19
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
17
20
  var _typeof = require("@babel/runtime/helpers/typeof");
18
21
  Object.defineProperty(exports, "__esModule", {
@@ -24,17 +27,51 @@ require("core-js/modules/es.array.filter.js");
24
27
  require("core-js/modules/es.array.find.js");
25
28
  require("core-js/modules/es.array.find-index.js");
26
29
  require("core-js/modules/es.array.for-each.js");
30
+ require("core-js/modules/es.array.includes.js");
27
31
  require("core-js/modules/es.array.iterator.js");
28
32
  require("core-js/modules/es.array.map.js");
29
33
  require("core-js/modules/es.array.push.js");
34
+ require("core-js/modules/es.array.reduce.js");
30
35
  require("core-js/modules/es.array.some.js");
31
36
  require("core-js/modules/es.array.splice.js");
32
37
  require("core-js/modules/es.date.to-string.js");
38
+ require("core-js/modules/es.function.bind.js");
33
39
  require("core-js/modules/es.map.js");
40
+ require("core-js/modules/es.number.constructor.js");
34
41
  require("core-js/modules/es.object.to-string.js");
35
42
  require("core-js/modules/es.object.values.js");
43
+ require("core-js/modules/es.string.includes.js");
36
44
  require("core-js/modules/es.string.iterator.js");
37
45
  require("core-js/modules/es.weak-map.js");
46
+ require("core-js/modules/esnext.async-iterator.filter.js");
47
+ require("core-js/modules/esnext.async-iterator.find.js");
48
+ require("core-js/modules/esnext.async-iterator.for-each.js");
49
+ require("core-js/modules/esnext.async-iterator.map.js");
50
+ require("core-js/modules/esnext.async-iterator.reduce.js");
51
+ require("core-js/modules/esnext.async-iterator.some.js");
52
+ require("core-js/modules/esnext.iterator.constructor.js");
53
+ require("core-js/modules/esnext.iterator.filter.js");
54
+ require("core-js/modules/esnext.iterator.find.js");
55
+ require("core-js/modules/esnext.iterator.for-each.js");
56
+ require("core-js/modules/esnext.iterator.map.js");
57
+ require("core-js/modules/esnext.iterator.reduce.js");
58
+ require("core-js/modules/esnext.iterator.some.js");
59
+ require("core-js/modules/esnext.map.delete-all.js");
60
+ require("core-js/modules/esnext.map.emplace.js");
61
+ require("core-js/modules/esnext.map.every.js");
62
+ require("core-js/modules/esnext.map.filter.js");
63
+ require("core-js/modules/esnext.map.find.js");
64
+ require("core-js/modules/esnext.map.find-key.js");
65
+ require("core-js/modules/esnext.map.includes.js");
66
+ require("core-js/modules/esnext.map.key-of.js");
67
+ require("core-js/modules/esnext.map.map-keys.js");
68
+ require("core-js/modules/esnext.map.map-values.js");
69
+ require("core-js/modules/esnext.map.merge.js");
70
+ require("core-js/modules/esnext.map.reduce.js");
71
+ require("core-js/modules/esnext.map.some.js");
72
+ require("core-js/modules/esnext.map.update.js");
73
+ require("core-js/modules/esnext.weak-map.delete-all.js");
74
+ require("core-js/modules/esnext.weak-map.emplace.js");
38
75
  require("core-js/modules/web.dom-collections.for-each.js");
39
76
  require("core-js/modules/web.dom-collections.iterator.js");
40
77
  require("core-js/modules/web.timers.js");
@@ -45,6 +82,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
45
82
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
46
83
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
47
84
  var _logger = require("agora-foundation/lib/logger");
85
+ var _agoraEduCore = require("agora-edu-core");
48
86
  var _mobx = require("mobx");
49
87
  var _type = require("agora-edu-core/lib/type");
50
88
  var _decorator = require("agora-foundation/lib/decorator");
@@ -59,10 +97,14 @@ var _type5 = require("agora-ui-foundation/lib/components/icon/type");
59
97
  var _type6 = require("agora-rte-sdk/lib/core/scene/type");
60
98
  var _type7 = require("agora-rte-sdk/lib/type");
61
99
  var _i18n = require("agora-ui-foundation/lib/i18n");
100
+ var _type8 = require("agora-edu-core/lib/room-control/type");
101
+ var _type9 = require("agora-edu-core/lib/room-control/privilege-control/type");
62
102
  var _ActionBarStore;
63
- var _initProto, _init_users, _init_newMessageTooltipVisible, _init_newMessageCount, _init_latestMessage, _init_totalUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_localUserRole, _init_localUser, _init_connectionSettingVisible, _init_connectType, _init_folded, _init_boardOwnerUser, _init_hasScreenShare, _init_showArrow, _init_phoneMicEnabled, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _assignHostDecs, _toggleFoldDecs, _setShowArrowDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleNewMessageEventDecs, _init__handleNewMessageEvent, _handleChatVisibleDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _ref;
64
- function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
65
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
103
+ var _initProto, _init_users, _init_newMessageTooltipVisible, _init_newMessageCount, _init_latestMessage, _init_totalUser, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_localUserRole, _init_localUser, _init_connectionSettingVisible, _init_connectType, _init_folded, _init_boardOwnerUser, _init_hasScreenShare, _init_showArrow, _init_phoneMicEnabled, _init_isNewWaitingRoomUserEnter, _init_chatTabIndex, _init_popoverOpened, _init_isPstnUser, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _assignHostDecs, _setPopoverOpenedDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _getWaitingRoomUserCountDecs, _handleRemoteWaitingUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleNewMessageEventDecs, _init__handleNewMessageEvent, _handleChatVisibleDecs, _handlerTraceScreenCaptureStateUpdateDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _ref;
104
+ 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; }
105
+ 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; }
106
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
107
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
66
108
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
67
109
  function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
68
110
  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"); }
@@ -99,13 +141,18 @@ var _N = /*#__PURE__*/new WeakMap();
99
141
  var _O = /*#__PURE__*/new WeakMap();
100
142
  var _P = /*#__PURE__*/new WeakMap();
101
143
  var _Q = /*#__PURE__*/new WeakMap();
144
+ var _R = /*#__PURE__*/new WeakMap();
145
+ var _S = /*#__PURE__*/new WeakMap();
146
+ var _T = /*#__PURE__*/new WeakMap();
147
+ var _U = /*#__PURE__*/new WeakMap();
148
+ var _V = /*#__PURE__*/new WeakMap();
102
149
  _ref = (_pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
103
150
  leading: true
104
151
  })], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
105
152
  leading: true
106
153
  })], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
107
154
  leading: true
108
- })], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _assignHostDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleNewMessageEventDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleStreamsAddedOrUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
155
+ })], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _assignHostDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_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], _handleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _getWaitingRoomUserCountDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleNewMessageEventDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _handlerTraceScreenCaptureStateUpdateDecs = [_mobx.action, _mobx.action.bound], _operateWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleStreamsAddedOrUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
109
156
  var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
110
157
  function ActionBarStore(args) {
111
158
  var _this = this;
@@ -114,12 +161,17 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
114
161
  (0, _defineProperty2["default"])(this, "_disposers", []);
115
162
  (0, _defineProperty2["default"])(this, "_chatRenderAt", 'aside');
116
163
  (0, _defineProperty2["default"])(this, "_participantsRenderAt", 'aside');
164
+ (0, _defineProperty2["default"])(this, "_screenVideoTrack", null);
117
165
  (0, _defineProperty2["default"])(this, "_userObserver", {
118
166
  onRemoteUsersJoined: this._handleRemoteUsersJoined,
119
167
  onRemoteUsersLeft: this._handleRemoteUsersLeft,
120
168
  onUserInfoUpdated: this._handleUserInfoUpdated,
121
169
  onAllUserCountUpdated: this._handleAllUserCountUpdated
122
170
  });
171
+ (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
172
+ onRemoteUsersJoined: this._handleRemoteWaitingUserJoined,
173
+ onRemoteUsersLeft: this._handleRemoteWaitingUserLeft
174
+ });
123
175
  (0, _defineProperty2["default"])(this, "_roomObserver", {
124
176
  onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated,
125
177
  onCloudRecordingStateUpdated: this._handleCloudRecordingStateUpdated
@@ -137,26 +189,35 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
137
189
  (0, _defineProperty2["default"])(this, "_isSharingScreen", false);
138
190
  (0, _defineProperty2["default"])(this, "_microponeInitCount", 0);
139
191
  (0, _defineProperty2["default"])(this, "_speakerInitCount", 0);
192
+ (0, _defineProperty2["default"])(this, "_participantTab", _constant.RoomType.MAIN_ROOM);
140
193
  _classPrivateFieldInitSpec(this, _A, _init_users(this));
141
194
  _classPrivateFieldInitSpec(this, _B, _init_newMessageTooltipVisible(this, false));
142
- _classPrivateFieldInitSpec(this, _C, _init_newMessageCount(this, 0));
195
+ _classPrivateFieldInitSpec(this, _C, _init_newMessageCount(this, (0, _defineProperty2["default"])({}, _constant.RoomType.MAIN_ROOM, 0)));
143
196
  _classPrivateFieldInitSpec(this, _D, _init_latestMessage(this));
144
197
  _classPrivateFieldInitSpec(this, _E, _init_totalUser(this));
145
- _classPrivateFieldInitSpec(this, _F, _init_liveStreamingState(this));
146
- _classPrivateFieldInitSpec(this, _G, _init_currentMenuIs(this, MoreMenuType.DEFAULT));
147
- _classPrivateFieldInitSpec(this, _H, _init_cloudRecordingState(this));
148
- _classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
149
- _classPrivateFieldInitSpec(this, _J, _init_localUser(this));
150
- _classPrivateFieldInitSpec(this, _K, _init_connectionSettingVisible(this, false));
151
- _classPrivateFieldInitSpec(this, _L, _init_connectType(this, _type3.ConnectType.COMPUTER));
152
- _classPrivateFieldInitSpec(this, _M, _init_folded(this, false));
153
- _classPrivateFieldInitSpec(this, _N, _init_boardOwnerUser(this, null));
154
- _classPrivateFieldInitSpec(this, _O, _init_hasScreenShare(this, false));
155
- _classPrivateFieldInitSpec(this, _P, _init_showArrow(this, false));
156
- _classPrivateFieldInitSpec(this, _Q, _init_phoneMicEnabled(this, false));
198
+ _classPrivateFieldInitSpec(this, _F, _init_totalWaitingRoomUser(this, 0));
199
+ _classPrivateFieldInitSpec(this, _G, _init_liveStreamingState(this));
200
+ _classPrivateFieldInitSpec(this, _H, _init_currentMenuIs(this, MoreMenuType.DEFAULT));
201
+ _classPrivateFieldInitSpec(this, _I, _init_cloudRecordingState(this));
202
+ _classPrivateFieldInitSpec(this, _J, _init_localUserRole(this));
203
+ _classPrivateFieldInitSpec(this, _K, _init_localUser(this));
204
+ _classPrivateFieldInitSpec(this, _L, _init_connectionSettingVisible(this, false));
205
+ _classPrivateFieldInitSpec(this, _M, _init_connectType(this, _type3.ConnectType.COMPUTER));
206
+ _classPrivateFieldInitSpec(this, _N, _init_folded(this, false));
207
+ _classPrivateFieldInitSpec(this, _O, _init_boardOwnerUser(this, null));
208
+ _classPrivateFieldInitSpec(this, _P, _init_hasScreenShare(this, false));
209
+ _classPrivateFieldInitSpec(this, _Q, _init_showArrow(this, false));
210
+ _classPrivateFieldInitSpec(this, _R, _init_phoneMicEnabled(this, false));
211
+ _classPrivateFieldInitSpec(this, _S, _init_isNewWaitingRoomUserEnter(this, false));
212
+ _classPrivateFieldInitSpec(this, _T, _init_chatTabIndex(this, _constant.RoomType.MAIN_ROOM));
213
+ _classPrivateFieldInitSpec(this, _U, _init_popoverOpened(this, false));
214
+ _classPrivateFieldInitSpec(this, _V, _init_isPstnUser(this, false));
157
215
  (0, _defineProperty2["default"])(this, "_handleNewMessageEvent", _init__handleNewMessageEvent(this, function (e) {
158
- if (_this._chatVisible) return;
159
- _this.newMessageCount += e.count;
216
+ var _msgObj;
217
+ // if (this._chatVisible) return;
218
+ var msgObj = _objectSpread({}, _this.newMessageCount);
219
+ msgObj[e.type] = ((_msgObj = msgObj[e.type]) !== null && _msgObj !== void 0 ? _msgObj : 0) + Number(e.count);
220
+ _this.newMessageCount = _objectSpread({}, msgObj);
160
221
  _this.latestMessage = e.latestMessage;
161
222
  _this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
162
223
  _this.showNewMessageTooltip();
@@ -193,6 +254,9 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
193
254
  _this.connectType = microphoneId ? _type3.ConnectType.COMPUTER : _type3.ConnectType.NONE;
194
255
  }
195
256
  });
257
+ this._observer = {
258
+ onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate.bind(this)
259
+ };
196
260
  this._disposers.push((0, _mobx.reaction)(function () {
197
261
  return _this.cloudRecordingState;
198
262
  }, function (state) {
@@ -221,6 +285,41 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
221
285
  action: _constant.RendererEventAction.USER_ROLE_CHANGED,
222
286
  payload: role
223
287
  });
288
+ }), (0, _mobx.reaction)(function () {
289
+ return _this.remoteUsers;
290
+ }, function (users) {
291
+ (0, _rendererEvent.sendEvent)({
292
+ action: _constant.RendererEventAction.SET_REMOTE_USERS,
293
+ payload: users
294
+ });
295
+ }), (0, _mobx.reaction)(function () {
296
+ return _this.hasAssignHostBeforeLeavingPermission;
297
+ }, function (hasAssignHostBeforeLeavingPermission) {
298
+ return (0, _rendererEvent.sendEvent)({
299
+ action: _constant.RendererEventAction.SET_HAS_ASSIGN_HOST_BEFORE_LEAVING_PERMISSION,
300
+ payload: hasAssignHostBeforeLeavingPermission
301
+ });
302
+ }), (0, _mobx.reaction)(function () {
303
+ return _this.isPstnUser;
304
+ }, function (isPstnUser) {
305
+ return (0, _rendererEvent.sendEvent)({
306
+ action: _constant.RendererEventAction.SET_IS_PSTN_USER,
307
+ payload: isPstnUser
308
+ });
309
+ }), (0, _mobx.reaction)(function () {
310
+ return _this.hasEndRoomPermission;
311
+ }, function (hasEndRoomPermission) {
312
+ return (0, _rendererEvent.sendEvent)({
313
+ action: _constant.RendererEventAction.SET_HAS_END_ROOM_PERMISSION,
314
+ payload: hasEndRoomPermission
315
+ });
316
+ }), (0, _mobx.reaction)(function () {
317
+ return _this.isLocked;
318
+ }, function (isLocked) {
319
+ (0, _rendererEvent.sendEvent)({
320
+ action: _constant.RendererEventAction.SET_IS_LOCKED,
321
+ payload: isLocked
322
+ });
224
323
  }));
225
324
  }
226
325
  return (0, _createClass2["default"])(ActionBarStore, [{
@@ -264,7 +363,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
264
363
  _classPrivateFieldSet(_E, this, v);
265
364
  }
266
365
  }, {
267
- key: "liveStreamingState",
366
+ key: "totalWaitingRoomUser",
268
367
  get: function get() {
269
368
  return _classPrivateFieldGet(_F, this);
270
369
  },
@@ -272,7 +371,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
272
371
  _classPrivateFieldSet(_F, this, v);
273
372
  }
274
373
  }, {
275
- key: "currentMenuIs",
374
+ key: "liveStreamingState",
276
375
  get: function get() {
277
376
  return _classPrivateFieldGet(_G, this);
278
377
  },
@@ -280,7 +379,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
280
379
  _classPrivateFieldSet(_G, this, v);
281
380
  }
282
381
  }, {
283
- key: "cloudRecordingState",
382
+ key: "currentMenuIs",
284
383
  get: function get() {
285
384
  return _classPrivateFieldGet(_H, this);
286
385
  },
@@ -288,7 +387,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
288
387
  _classPrivateFieldSet(_H, this, v);
289
388
  }
290
389
  }, {
291
- key: "localUserRole",
390
+ key: "cloudRecordingState",
292
391
  get: function get() {
293
392
  return _classPrivateFieldGet(_I, this);
294
393
  },
@@ -296,7 +395,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
296
395
  _classPrivateFieldSet(_I, this, v);
297
396
  }
298
397
  }, {
299
- key: "localUser",
398
+ key: "localUserRole",
300
399
  get: function get() {
301
400
  return _classPrivateFieldGet(_J, this);
302
401
  },
@@ -304,7 +403,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
304
403
  _classPrivateFieldSet(_J, this, v);
305
404
  }
306
405
  }, {
307
- key: "connectionSettingVisible",
406
+ key: "localUser",
308
407
  get: function get() {
309
408
  return _classPrivateFieldGet(_K, this);
310
409
  },
@@ -312,7 +411,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
312
411
  _classPrivateFieldSet(_K, this, v);
313
412
  }
314
413
  }, {
315
- key: "connectType",
414
+ key: "connectionSettingVisible",
316
415
  get: function get() {
317
416
  return _classPrivateFieldGet(_L, this);
318
417
  },
@@ -320,7 +419,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
320
419
  _classPrivateFieldSet(_L, this, v);
321
420
  }
322
421
  }, {
323
- key: "folded",
422
+ key: "connectType",
324
423
  get: function get() {
325
424
  return _classPrivateFieldGet(_M, this);
326
425
  },
@@ -328,7 +427,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
328
427
  _classPrivateFieldSet(_M, this, v);
329
428
  }
330
429
  }, {
331
- key: "boardOwnerUser",
430
+ key: "folded",
332
431
  get: function get() {
333
432
  return _classPrivateFieldGet(_N, this);
334
433
  },
@@ -336,7 +435,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
336
435
  _classPrivateFieldSet(_N, this, v);
337
436
  }
338
437
  }, {
339
- key: "hasScreenShare",
438
+ key: "boardOwnerUser",
340
439
  get: function get() {
341
440
  return _classPrivateFieldGet(_O, this);
342
441
  },
@@ -344,7 +443,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
344
443
  _classPrivateFieldSet(_O, this, v);
345
444
  }
346
445
  }, {
347
- key: "showArrow",
446
+ key: "hasScreenShare",
348
447
  get: function get() {
349
448
  return _classPrivateFieldGet(_P, this);
350
449
  },
@@ -352,13 +451,77 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
352
451
  _classPrivateFieldSet(_P, this, v);
353
452
  }
354
453
  }, {
355
- key: "phoneMicEnabled",
454
+ key: "showArrow",
356
455
  get: function get() {
357
456
  return _classPrivateFieldGet(_Q, this);
358
457
  },
359
458
  set: function set(v) {
360
459
  _classPrivateFieldSet(_Q, this, v);
361
460
  }
461
+ }, {
462
+ key: "phoneMicEnabled",
463
+ get: function get() {
464
+ return _classPrivateFieldGet(_R, this);
465
+ },
466
+ set: function set(v) {
467
+ _classPrivateFieldSet(_R, this, v);
468
+ }
469
+ }, {
470
+ key: "isNewWaitingRoomUserEnter",
471
+ get: function get() {
472
+ return _classPrivateFieldGet(_S, this);
473
+ },
474
+ set: function set(v) {
475
+ _classPrivateFieldSet(_S, this, v);
476
+ }
477
+ }, {
478
+ key: "chatTabIndex",
479
+ get: function get() {
480
+ return _classPrivateFieldGet(_T, this);
481
+ },
482
+ set: function set(v) {
483
+ _classPrivateFieldSet(_T, this, v);
484
+ }
485
+ }, {
486
+ key: "popoverOpened",
487
+ get: function get() {
488
+ return _classPrivateFieldGet(_U, this);
489
+ },
490
+ set: function set(v) {
491
+ _classPrivateFieldSet(_U, this, v);
492
+ }
493
+ }, {
494
+ key: "isPstnUser",
495
+ get: function get() {
496
+ return _classPrivateFieldGet(_V, this);
497
+ },
498
+ set: function set(v) {
499
+ _classPrivateFieldSet(_V, this, v);
500
+ }
501
+ }, {
502
+ key: "fetchNewestLeavingRoomCompProps",
503
+ value: function fetchNewestLeavingRoomCompProps() {
504
+ (0, _rendererEvent.sendEvent)({
505
+ action: _constant.RendererEventAction.SET_REMOTE_USERS,
506
+ payload: this.remoteUsers
507
+ });
508
+ (0, _rendererEvent.sendEvent)({
509
+ action: _constant.RendererEventAction.SET_HAS_ASSIGN_HOST_BEFORE_LEAVING_PERMISSION,
510
+ payload: this.hasAssignHostBeforeLeavingPermission
511
+ });
512
+ (0, _rendererEvent.sendEvent)({
513
+ action: _constant.RendererEventAction.SET_IS_PSTN_USER,
514
+ payload: this.isPstnUser
515
+ });
516
+ (0, _rendererEvent.sendEvent)({
517
+ action: _constant.RendererEventAction.SET_HAS_END_ROOM_PERMISSION,
518
+ payload: this.hasEndRoomPermission
519
+ });
520
+ (0, _rendererEvent.sendEvent)({
521
+ action: _constant.RendererEventAction.SET_IS_LOCKED,
522
+ payload: this.isLocked
523
+ });
524
+ }
362
525
  }, {
363
526
  key: "remoteUsers",
364
527
  get: function get() {
@@ -397,6 +560,21 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
397
560
  get: function get() {
398
561
  return this._securityStore.hasLockRoomPermission();
399
562
  }
563
+ }, {
564
+ key: "hasWaitingRoomPermission",
565
+ get: function get() {
566
+ return this._securityStore.hasWaitingRoomPermission();
567
+ }
568
+ }, {
569
+ key: "hasWatermarkEnablePermission",
570
+ get: function get() {
571
+ return this._securityStore.hasWatermarkEnablePermission();
572
+ }
573
+ }, {
574
+ key: "hasWatermarkDisablePermission",
575
+ get: function get() {
576
+ return this._securityStore.hasWatermarkDisablePermission();
577
+ }
400
578
  }, {
401
579
  key: "hasEnableStartSharePermission",
402
580
  get: function get() {
@@ -448,14 +626,14 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
448
626
  return this._securityStore.allowBoardWrite();
449
627
  }
450
628
  }, {
451
- key: "isPstnUser",
629
+ key: "isWaterMarkEnabled",
452
630
  get: function get() {
453
- var streams = this._streamControl.getStreamsByUserId(this._userControl.getLocalUser().userId);
454
- var hasPstnStream = streams.some(function (_ref2) {
455
- var connectorType = _ref2.connectorType;
456
- return connectorType === _type.FcrRoomConnectorType.PSTN;
457
- });
458
- return hasPstnStream;
631
+ return this._securityStore.isWaterMarkEnabled();
632
+ }
633
+ }, {
634
+ key: "isMulti",
635
+ get: function get() {
636
+ return this._securityStore.isMulti();
459
637
  }
460
638
  }, {
461
639
  key: "cameraEnabled",
@@ -502,6 +680,19 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
502
680
  get: function get() {
503
681
  return this._deviceStore.speakerList;
504
682
  }
683
+ }, {
684
+ key: "allNewMessage",
685
+ get: function get() {
686
+ return Object.values(this.newMessageCount).reduce(function (a, b) {
687
+ return a + b;
688
+ }, 0);
689
+ }
690
+ }, {
691
+ key: "isMainRoom",
692
+ get: function get() {
693
+ var _this$_roomControl$ge;
694
+ return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type8.FcrRoomType.Mainroom;
695
+ }
505
696
  }, {
506
697
  key: "pauseCloudRecording",
507
698
  value: function pauseCloudRecording() {
@@ -555,13 +746,23 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
555
746
  }
556
747
  }, {
557
748
  key: "isLocked",
558
- value: function isLocked() {
749
+ get: function get() {
559
750
  return this._securityStore.isLockRoomEnabled();
560
751
  }
752
+ }, {
753
+ key: "isWaitingRoomEnabled",
754
+ value: function isWaitingRoomEnabled() {
755
+ return this._securityStore.isWaitingRoomEnabled();
756
+ }
561
757
  }, {
562
758
  key: "enableCamera",
563
759
  value: function enableCamera(enable) {
564
- this._deviceStreamStore.enableCameraWithStream(enable);
760
+ var _this$_roomControl$ge2;
761
+ if (((_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType) === _type8.FcrRoomType.Mainroom) {
762
+ this._deviceStreamStore.enableCameraWithStream(enable);
763
+ } else {
764
+ this._deviceStore.setCameraEnabled(enable);
765
+ }
565
766
  }
566
767
  }, {
567
768
  key: "setCameraId",
@@ -571,7 +772,12 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
571
772
  }, {
572
773
  key: "enableMicrophone",
573
774
  value: function enableMicrophone(enable) {
574
- this._deviceStreamStore.enableMicrophoneWithStream(enable);
775
+ var _this$_roomControl$ge3;
776
+ if (((_this$_roomControl$ge3 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge3 === void 0 ? void 0 : _this$_roomControl$ge3.roomType) === _type8.FcrRoomType.Mainroom) {
777
+ this._deviceStreamStore.enableMicrophoneWithStream(enable);
778
+ } else {
779
+ this._deviceStore.setMicrophoneEnabled(enable);
780
+ }
575
781
  }
576
782
  }, {
577
783
  key: "setMicrophoneId",
@@ -583,22 +789,22 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
583
789
  value: function setSpeakerId(speakerId) {
584
790
  this._deviceStore.setSpeakerId(speakerId);
585
791
  }
792
+ }, {
793
+ key: "closeSpeaker",
794
+ value: function closeSpeaker() {
795
+ this._mediaControl.setSelectedSpeakerVolume(0);
796
+ }
586
797
  }, {
587
798
  key: "setAllowBoardWrite",
588
799
  value: function () {
589
- var _setAllowBoardWrite = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
590
- var write, payload;
800
+ var _setAllowBoardWrite = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
801
+ var write;
591
802
  return _regenerator["default"].wrap(function _callee$(_context) {
592
803
  while (1) switch (_context.prev = _context.next) {
593
804
  case 0:
594
805
  write = this.isBoardWriteEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
595
- payload = {
596
- board: {
597
- write: write
598
- }
599
- };
600
- return _context.abrupt("return", this._securityStore.setAllowWriteBoard(_enums.FcrSharePermissionState.ON, payload));
601
- case 3:
806
+ return _context.abrupt("return", this._securityStore.setAllowWriteBoard(write));
807
+ case 2:
602
808
  case "end":
603
809
  return _context.stop();
604
810
  }
@@ -611,68 +817,45 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
611
817
  }()
612
818
  }, {
613
819
  key: "setAllowScreenShare",
614
- value: function setAllowScreenShare(state) {
615
- var enable = state ? state : this.isScreenShareAndBoardEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
616
- var payload = {
617
- screen: enable,
618
- board: {
619
- start: enable
620
- }
621
- };
622
- return this._securityStore.allowShare(_enums.FcrSharePermissionState.ON, payload);
820
+ value: function setAllowScreenShare() {
821
+ var enable = this.isScreenShareAndBoardEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
822
+ return this._securityStore.allowShare(enable);
623
823
  }
624
824
  }, {
625
825
  key: "closeBoard",
626
826
  value: function closeBoard() {
627
827
  this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
628
828
  }
629
- }, {
630
- key: "enableShare",
631
- value: function () {
632
- var _enableShare = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(state) {
633
- var _this$boardOwnerUser;
634
- return _regenerator["default"].wrap(function _callee2$(_context2) {
635
- while (1) switch (_context2.prev = _context2.next) {
636
- case 0:
637
- _context2.next = 2;
638
- return this._securityStore.allowShare(state);
639
- case 2:
640
- if (state === _enums.FcrSharePermissionState.OFF) {
641
- this._uiEventStore.showToast({
642
- type: 'info',
643
- message: this._userControl.getLocalUser().userId === ((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userId) ? (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stoppedboard') : (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stopped')
644
- });
645
- }
646
- case 3:
647
- case "end":
648
- return _context2.stop();
649
- }
650
- }, _callee2, this);
651
- }));
652
- function enableShare(_x) {
653
- return _enableShare.apply(this, arguments);
654
- }
655
- return enableShare;
656
- }()
657
829
  }, {
658
830
  key: "assignHost",
659
831
  value: function assignHost(user) {
660
- this._userControl.updateUserRole(user.userId, _type.FcrUserRole.HOST);
832
+ this._userControl.updateRemoteUserRole(user.userId, _type.FcrUserRole.HOST);
661
833
  this.leave();
662
834
  }
663
835
  }, {
664
836
  key: "leave",
665
837
  value: function leave() {
666
- var _this$boardOwnerUser2;
667
- this._uiEventStore.exitRoom(_type2.FcrUIExitReason.LEAVE_ROOM);
668
- if (((_this$boardOwnerUser2 = this.boardOwnerUser) === null || _this$boardOwnerUser2 === void 0 ? void 0 : _this$boardOwnerUser2.userId) === this.localUser.userId) {
838
+ var _this$boardOwnerUser;
839
+ this._uiEventStore.exitRoom(_type2.FcrUIExitReason.LEAVE_ROOM, this.getRoomType());
840
+ if (((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userId) === this.localUser.userId) {
669
841
  this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
670
842
  }
671
843
  }
672
844
  }, {
673
845
  key: "keepPhoneAudioConnection",
674
846
  value: function keepPhoneAudioConnection() {
675
- this._userControl.splitAudioStream(this._userControl.getLocalUser().userId);
847
+ this._streamControl.splitAudioStream(this._userControl.getLocalUser().userId);
848
+ }
849
+ }, {
850
+ key: "setPopoverOpened",
851
+ value: function setPopoverOpened(isShow) {
852
+ this.popoverOpened = isShow;
853
+ }
854
+ }, {
855
+ key: "getRoomType",
856
+ value: function getRoomType() {
857
+ var _this$_roomControl$ge4;
858
+ return (_this$_roomControl$ge4 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge4 === void 0 ? void 0 : _this$_roomControl$ge4.roomType;
676
859
  }
677
860
  }, {
678
861
  key: "end",
@@ -682,10 +865,12 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
682
865
  }, {
683
866
  key: "release",
684
867
  value: function release() {
868
+ var _this$_screenVideoTra;
685
869
  this._disposers.forEach(function (dispose) {
686
870
  return dispose();
687
871
  });
688
872
  this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
873
+ (_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this._observer);
689
874
  }
690
875
  }, {
691
876
  key: "allowJoinWithMuteAudio",
@@ -804,6 +989,11 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
804
989
  if (this._participantsRenderAt === 'dialog') {
805
990
  this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
806
991
  }
992
+ if (this._participantVisible) {
993
+ if (this._participantTab === _constant.RoomType.WAITING_ROOM) {
994
+ this.isNewWaitingRoomUserEnter = false;
995
+ }
996
+ }
807
997
  }
808
998
  }, {
809
999
  key: "closeParticipants",
@@ -848,11 +1038,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
848
1038
  value: function closeWhiteboard() {
849
1039
  this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
850
1040
  }
851
- }, {
852
- key: "stopScreenShare",
853
- value: function stopScreenShare() {
854
- this._uiEventStore.stopShareScreen();
855
- }
856
1041
  }, {
857
1042
  key: "openLiveStreamingDialog",
858
1043
  value: function openLiveStreamingDialog() {
@@ -914,6 +1099,98 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
914
1099
  }, 1000);
915
1100
  }
916
1101
  }
1102
+ }, {
1103
+ key: "setEnableWaitingRoom",
1104
+ value: function () {
1105
+ var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(enable, isNeedShowDialog) {
1106
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
1107
+ while (1) switch (_context2.prev = _context2.next) {
1108
+ case 0:
1109
+ if (enable) {
1110
+ _context2.next = 10;
1111
+ break;
1112
+ }
1113
+ if (!(this.totalWaitingRoomUser && isNeedShowDialog)) {
1114
+ _context2.next = 5;
1115
+ break;
1116
+ }
1117
+ this._uiEventStore.openDialog(_constant.DialogKey.WAITING_ROOM, '', {
1118
+ totalWaitingRoomUser: this.totalWaitingRoomUser
1119
+ });
1120
+ _context2.next = 8;
1121
+ break;
1122
+ case 5:
1123
+ _context2.next = 7;
1124
+ return this._roomControl.enableWaitingRoom(enable);
1125
+ case 7:
1126
+ this._uiEventStore.showToast({
1127
+ type: 'normal',
1128
+ message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_tips_disable')
1129
+ });
1130
+ case 8:
1131
+ _context2.next = 13;
1132
+ break;
1133
+ case 10:
1134
+ _context2.next = 12;
1135
+ return this._roomControl.enableWaitingRoom(enable);
1136
+ case 12:
1137
+ this._uiEventStore.showToast({
1138
+ type: 'normal',
1139
+ message: (0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable')
1140
+ });
1141
+ case 13:
1142
+ case "end":
1143
+ return _context2.stop();
1144
+ }
1145
+ }, _callee2, this);
1146
+ }));
1147
+ function setEnableWaitingRoom(_x, _x2) {
1148
+ return _setEnableWaitingRoom.apply(this, arguments);
1149
+ }
1150
+ return setEnableWaitingRoom;
1151
+ }()
1152
+ }, {
1153
+ key: "kickOutWaitingRoomAllMember",
1154
+ value: function () {
1155
+ var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(type) {
1156
+ var _this$_userControl;
1157
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
1158
+ while (1) switch (_context3.prev = _context3.next) {
1159
+ case 0:
1160
+ _context3.next = 2;
1161
+ return (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
1162
+ case 2:
1163
+ case "end":
1164
+ return _context3.stop();
1165
+ }
1166
+ }, _callee3, this);
1167
+ }));
1168
+ function kickOutWaitingRoomAllMember(_x3) {
1169
+ return _kickOutWaitingRoomAllMember.apply(this, arguments);
1170
+ }
1171
+ return kickOutWaitingRoomAllMember;
1172
+ }()
1173
+ }, {
1174
+ key: "moveToMainRoomAllMember",
1175
+ value: function () {
1176
+ var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
1177
+ var _this$_waitingRoomCon;
1178
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
1179
+ while (1) switch (_context4.prev = _context4.next) {
1180
+ case 0:
1181
+ _context4.next = 2;
1182
+ return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
1183
+ case 2:
1184
+ case "end":
1185
+ return _context4.stop();
1186
+ }
1187
+ }, _callee4, this);
1188
+ }));
1189
+ function moveToMainRoomAllMember() {
1190
+ return _moveToMainRoomAllMember.apply(this, arguments);
1191
+ }
1192
+ return moveToMainRoomAllMember;
1193
+ }()
917
1194
  }, {
918
1195
  key: "_interceptShareScreen",
919
1196
  value: function _interceptShareScreen() {
@@ -1007,6 +1284,37 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1007
1284
  value: function _handleAllUserCountUpdated(_roomId, count) {
1008
1285
  this.totalUser = count;
1009
1286
  }
1287
+ }, {
1288
+ key: "_getWaitingRoomUserCount",
1289
+ value: function _getWaitingRoomUserCount() {
1290
+ var _privilegeControl$get;
1291
+ var userControl = this._waitingRoomControl.getUserControl();
1292
+ var privilegeControl = this._roomControl.getPrivilegeControl();
1293
+ var targetRoles = (_privilegeControl$get = privilegeControl.getSecurityInfo(_type9.FcrSecurityAction.WaitingRoom).info) === null || _privilegeControl$get === void 0 ? void 0 : _privilegeControl$get.targetRoles;
1294
+ this.totalWaitingRoomUser = userControl.getUserList().filter(function (user) {
1295
+ return targetRoles.includes(user.userRole);
1296
+ }).length;
1297
+ if (this.totalWaitingRoomUser === 0) {
1298
+ this._uiEventStore.sendEvent(_constant.UIAction.CHANGE_PARTICIPANT_TAB, _constant.RoomType.MAIN_ROOM);
1299
+ }
1300
+ }
1301
+ }, {
1302
+ key: "_handleRemoteWaitingUserLeft",
1303
+ value: function _handleRemoteWaitingUserLeft(roomId, events) {
1304
+ this._getWaitingRoomUserCount();
1305
+ }
1306
+ }, {
1307
+ key: "_handleRemoteWaitingUserJoined",
1308
+ value: function _handleRemoteWaitingUserJoined(roomId, events) {
1309
+ if (this._participantVisible) {
1310
+ if (this._participantTab !== _constant.RoomType.WAITING_ROOM) {
1311
+ this.isNewWaitingRoomUserEnter = true;
1312
+ }
1313
+ } else {
1314
+ this.isNewWaitingRoomUserEnter = true;
1315
+ }
1316
+ this._getWaitingRoomUserCount();
1317
+ }
1010
1318
  }, {
1011
1319
  key: "_handleUserInfoUpdated",
1012
1320
  value: function _handleUserInfoUpdated(_roomId, event) {
@@ -1030,19 +1338,38 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1030
1338
  key: "_handleChatVisible",
1031
1339
  value: function _handleChatVisible(visible) {
1032
1340
  this._chatVisible = visible;
1033
- if (visible) {
1034
- this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
1035
- this.hideNewMessageTooltip();
1036
- this.newMessageCount = 0;
1037
- }
1341
+ this._uiEventStore.sendEvent(_constant.UIAction.CHAT_VISIBLE, visible);
1342
+ this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
1343
+ this.hideNewMessageTooltip();
1344
+ this.newMessageCount[this.chatTabIndex] = 0;
1345
+ }
1346
+ }, {
1347
+ key: "_handlerTraceScreenCaptureStateUpdate",
1348
+ value: function _handlerTraceScreenCaptureStateUpdate(_, state) {
1349
+ this.hasScreenShare = state === _agoraEduCore.FcrMediaSourceState.STARTED;
1350
+ // if (state === FcrMediaSourceState.STOPPED) {
1351
+ // this.stopScreenShare();
1352
+ // }
1353
+ }
1354
+ }, {
1355
+ key: "setAllowWaterMark",
1356
+ value: function setAllowWaterMark() {
1357
+ var allowState = !this.isWaterMarkEnabled;
1358
+ // 开启关闭前,进行权限判断
1359
+ this._securityStore.setAllowWaterMark(allowState, void 0);
1360
+ }
1361
+ }, {
1362
+ key: "setWaterMarkLineType",
1363
+ value: function setWaterMarkLineType(lineType) {
1364
+ this._securityStore.setAllowWaterMark(this.isWaterMarkEnabled, lineType);
1038
1365
  }
1039
1366
  }, {
1040
1367
  key: "_onEvent",
1041
1368
  value: function _onEvent(action, payload) {
1042
1369
  if (action === _constant.UIAction.UPDATE_ASIDE) {
1043
- var _ref3 = payload,
1044
- chat = _ref3.chat,
1045
- participant = _ref3.participant;
1370
+ var _ref2 = payload,
1371
+ chat = _ref2.chat,
1372
+ participant = _ref2.participant;
1046
1373
  if (chat) {
1047
1374
  this._chatRenderAt = 'aside';
1048
1375
  this._handleChatVisible(true);
@@ -1062,8 +1389,8 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1062
1389
  this._handleNewMessageEvent(payload);
1063
1390
  }
1064
1391
  if (action === _constant.UIAction.CLOSE_DIALOG) {
1065
- var _ref4 = payload,
1066
- dialogId = _ref4.dialogId;
1392
+ var _ref3 = payload,
1393
+ dialogId = _ref3.dialogId;
1067
1394
  var dialogKey = this._openedDialogIdMap.get(dialogId);
1068
1395
  if (dialogKey === _constant.DialogKey.CHAT) {
1069
1396
  this._handleChatVisible(false);
@@ -1078,9 +1405,9 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1078
1405
  }
1079
1406
  }
1080
1407
  if (action === _constant.UIAction.OPEN_DIALOG) {
1081
- var _ref5 = payload,
1082
- _dialogKey = _ref5.dialogKey,
1083
- _dialogId = _ref5.dialogId;
1408
+ var _ref4 = payload,
1409
+ _dialogKey = _ref4.dialogKey,
1410
+ _dialogId = _ref4.dialogId;
1084
1411
  this._openedDialogIdMap.set(_dialogId, _dialogKey);
1085
1412
  if (_dialogKey === _constant.DialogKey.CHAT) {
1086
1413
  this._chatRenderAt = 'dialog';
@@ -1101,8 +1428,8 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1101
1428
  this.openLiveStreamingDialog();
1102
1429
  }
1103
1430
  if (action === _constant.UIAction.CLOUD_RECORDING) {
1104
- var _ref6 = payload,
1105
- _action = _ref6.action;
1431
+ var _ref5 = payload,
1432
+ _action = _ref5.action;
1106
1433
  if (_action === 'start') this.startCloudRecording();else if (_action === 'pause') this.pauseCloudRecording();else if (_action === 'resume') this.resumeCloudRecording();else this.stopCloudRecording();
1107
1434
  }
1108
1435
  if (action === _constant.UIAction.OPEN_CONNECTION_DIALOG) {
@@ -1112,16 +1439,93 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1112
1439
  this.closeConnection();
1113
1440
  }
1114
1441
  if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
1115
- var _ref7 = payload,
1116
- _action2 = _ref7.action,
1117
- value = _ref7.payload;
1442
+ var _ref6 = payload,
1443
+ _action2 = _ref6.action,
1444
+ value = _ref6.payload;
1118
1445
  if (_action2 === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1119
1446
  this.boardOwnerUser = value ? this.users.find(function (u) {
1120
1447
  return u.userId === value;
1121
1448
  }) : null;
1122
1449
  }
1123
1450
  }
1451
+ if (action === _constant.UIAction.SET_CURRENT_SHARE_SCREEN) {
1452
+ var _this$_mediaControl, _this$_screenVideoTra2;
1453
+ var _ref7 = payload,
1454
+ id = _ref7.id;
1455
+ this._screenVideoTrack = (_this$_mediaControl = this._mediaControl) === null || _this$_mediaControl === void 0 ? void 0 : _this$_mediaControl.getScreenTrack(id);
1456
+ (_this$_screenVideoTra2 = this._screenVideoTrack) === null || _this$_screenVideoTra2 === void 0 || _this$_screenVideoTra2.addObserver(this._observer);
1457
+ }
1458
+ if (action === _constant.UIAction.TOGGLE_PARTICIPANT_TAB) {
1459
+ if (!this._participantVisible) {
1460
+ this.toggleParticipants();
1461
+ }
1462
+ }
1463
+ if (action === _constant.UIAction.CURRENT_PARTITIPANT_TAB) {
1464
+ if (payload === _constant.RoomType.WAITING_ROOM) {
1465
+ this.isNewWaitingRoomUserEnter = false;
1466
+ }
1467
+ this._participantTab = payload;
1468
+ }
1469
+ if (action === _constant.UIAction.WAITING_ROOM_CREATED) {
1470
+ var room = payload.room;
1471
+ this._waitingRoomControl = room;
1472
+ var waitingRoomUserControl = room.getUserControl();
1473
+ waitingRoomUserControl.addObserver(this._waitingRoomUserObserver);
1474
+ this.newMessageCount = (0, _defineProperty2["default"])({}, _constant.RoomType.WAITING_ROOM, 0);
1475
+ }
1476
+ if (action === _constant.UIAction.CHAT_ROOM_TAB_CHANGE) {
1477
+ this.chatTabIndex = payload;
1478
+ this.newMessageCount[this.chatTabIndex] = 0;
1479
+ }
1480
+ if (action === _constant.UIAction.CLOSE_WAITING_ROOM_DIALOG) {
1481
+ var waitingDialogId = '';
1482
+ this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1483
+ if (dialogKey === _constant.DialogKey.WAITING_ROOM) {
1484
+ waitingDialogId = dialogId;
1485
+ }
1486
+ });
1487
+ this._uiEventStore.closeDialog(waitingDialogId);
1488
+ }
1489
+ if (action === _constant.UIAction.CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG) {
1490
+ var operationDialogId = '';
1491
+ this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1492
+ if (dialogKey === payload) {
1493
+ operationDialogId = dialogId;
1494
+ }
1495
+ });
1496
+ this._uiEventStore.closeDialog(operationDialogId);
1497
+ }
1498
+ if (action === _constant.UIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER) {
1499
+ this._operateWaitingRoom(payload);
1500
+ }
1124
1501
  }
1502
+ }, {
1503
+ key: "_operateWaitingRoom",
1504
+ value: function () {
1505
+ var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(isOperate) {
1506
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
1507
+ while (1) switch (_context5.prev = _context5.next) {
1508
+ case 0:
1509
+ if (!isOperate) {
1510
+ _context5.next = 3;
1511
+ break;
1512
+ }
1513
+ _context5.next = 3;
1514
+ return this.moveToMainRoomAllMember();
1515
+ case 3:
1516
+ _context5.next = 5;
1517
+ return this.setEnableWaitingRoom(false, false);
1518
+ case 5:
1519
+ case "end":
1520
+ return _context5.stop();
1521
+ }
1522
+ }, _callee5, this);
1523
+ }));
1524
+ function _operateWaitingRoom(_x4) {
1525
+ return _operateWaitingRoom2.apply(this, arguments);
1526
+ }
1527
+ return _operateWaitingRoom;
1528
+ }()
1125
1529
  }, {
1126
1530
  key: "_handleCloudRecordingStateUpdated",
1127
1531
  value: function _handleCloudRecordingStateUpdated(roomId, state) {
@@ -1142,12 +1546,13 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1142
1546
  var streams = this._streamControl.getStreamsByUserId(userId);
1143
1547
  var pstnStream = streams.find(function (_ref8) {
1144
1548
  var connectorType = _ref8.connectorType;
1145
- return connectorType === _type.FcrRoomConnectorType.PSTN;
1549
+ return connectorType === _agoraEduCore.FcrRoomConnectorType.PSTN;
1146
1550
  });
1147
1551
  var hasPstnStream = !!pstnStream;
1552
+ this.isPstnUser = hasPstnStream;
1148
1553
  this.connectType = hasPstnStream ? _type3.ConnectType.PHONE : this.microphoneId ? _type3.ConnectType.COMPUTER : _type3.ConnectType.NONE;
1149
1554
  if (hasPstnStream) {
1150
- this.phoneMicEnabled = pstnStream.streamType === _type6.AgoraRteMediaStreamType.BOTH || pstnStream.audioSourceState === _type.FcrMediaSourceState.STARTED;
1555
+ this.phoneMicEnabled = pstnStream.streamType === _type6.AgoraRteMediaStreamType.BOTH || pstnStream.audioSourceState === _agoraEduCore.FcrMediaSourceState.STARTED;
1151
1556
  (0, _rendererEvent.sendEvent)({
1152
1557
  action: _constant.RendererEventAction.SET_CONTROL_BAR_PHONECALL_STATE,
1153
1558
  payload: this.phoneMicEnabled
@@ -1157,23 +1562,28 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1157
1562
  }]);
1158
1563
  }();
1159
1564
  _ActionBarStore = ActionBarStore;
1160
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "newMessageCount"], [_mobx.observable, 1, "latestMessage"], [_mobx.observable, 1, "totalUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "hasScreenShare"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.computed, 3, "remoteUsers"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_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, "isPstnUser"], [_mobx.computed, 3, "cameraId"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_decorator.bound, 2, "isLocked"], [_decorator.bound, 2, "enableCamera"], [_decorator.bound, 2, "setCameraId"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setMicrophoneId"], [_decorator.bound, 2, "setSpeakerId"], [_decorator.bound, 2, "setAllowBoardWrite"], [_decorator.bound, 2, "setAllowScreenShare"], [_decorator.bound, 2, "closeBoard"], [_decorator.bound, 2, "enableShare"], [_assignHostDecs, 18, "assignHost"], [_decorator.bound, 2, "leave"], [_decorator.bound, 2, "keepPhoneAudioConnection"], [_decorator.bound, 2, "end"], [_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, "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, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "stopScreenShare"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "closeLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleAllUserCountUpdatedDecs, 18, "_handleAllUserCountUpdated"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_decorator.bound, 2, "_onEvent"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_handleNewMessageEventDecs, 16, "_handleNewMessageEvent"]], []).e, 19);
1565
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "newMessageCount"], [_mobx.observable, 1, "latestMessage"], [_mobx.observable, 1, "totalUser"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "hasScreenShare"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "popoverOpened"], [_mobx.observable, 1, "isPstnUser"], [_mobx.computed, 3, "remoteUsers"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_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, "cameraId"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "enableCamera"], [_decorator.bound, 2, "setCameraId"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setMicrophoneId"], [_decorator.bound, 2, "setSpeakerId"], [_decorator.bound, 2, "closeSpeaker"], [_decorator.bound, 2, "setAllowBoardWrite"], [_decorator.bound, 2, "setAllowScreenShare"], [_decorator.bound, 2, "closeBoard"], [_assignHostDecs, 18, "assignHost"], [_decorator.bound, 2, "leave"], [_decorator.bound, 2, "keepPhoneAudioConnection"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "end"], [_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, "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, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "closeLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_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"], [_handleAllUserCountUpdatedDecs, 18, "_handleAllUserCountUpdated"], [_getWaitingRoomUserCountDecs, 18, "_getWaitingRoomUserCount"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_handlerTraceScreenCaptureStateUpdateDecs, 18, "_handlerTraceScreenCaptureStateUpdate"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_handleNewMessageEventDecs, 16, "_handleNewMessageEvent"]], []).e, 24);
1161
1566
  _init_users = _applyDecs$e[0];
1162
1567
  _init_newMessageTooltipVisible = _applyDecs$e[1];
1163
1568
  _init_newMessageCount = _applyDecs$e[2];
1164
1569
  _init_latestMessage = _applyDecs$e[3];
1165
1570
  _init_totalUser = _applyDecs$e[4];
1166
- _init_liveStreamingState = _applyDecs$e[5];
1167
- _init_currentMenuIs = _applyDecs$e[6];
1168
- _init_cloudRecordingState = _applyDecs$e[7];
1169
- _init_localUserRole = _applyDecs$e[8];
1170
- _init_localUser = _applyDecs$e[9];
1171
- _init_connectionSettingVisible = _applyDecs$e[10];
1172
- _init_connectType = _applyDecs$e[11];
1173
- _init_folded = _applyDecs$e[12];
1174
- _init_boardOwnerUser = _applyDecs$e[13];
1175
- _init_hasScreenShare = _applyDecs$e[14];
1176
- _init_showArrow = _applyDecs$e[15];
1177
- _init_phoneMicEnabled = _applyDecs$e[16];
1178
- _init__handleNewMessageEvent = _applyDecs$e[17];
1179
- _initProto = _applyDecs$e[18];
1571
+ _init_totalWaitingRoomUser = _applyDecs$e[5];
1572
+ _init_liveStreamingState = _applyDecs$e[6];
1573
+ _init_currentMenuIs = _applyDecs$e[7];
1574
+ _init_cloudRecordingState = _applyDecs$e[8];
1575
+ _init_localUserRole = _applyDecs$e[9];
1576
+ _init_localUser = _applyDecs$e[10];
1577
+ _init_connectionSettingVisible = _applyDecs$e[11];
1578
+ _init_connectType = _applyDecs$e[12];
1579
+ _init_folded = _applyDecs$e[13];
1580
+ _init_boardOwnerUser = _applyDecs$e[14];
1581
+ _init_hasScreenShare = _applyDecs$e[15];
1582
+ _init_showArrow = _applyDecs$e[16];
1583
+ _init_phoneMicEnabled = _applyDecs$e[17];
1584
+ _init_isNewWaitingRoomUserEnter = _applyDecs$e[18];
1585
+ _init_chatTabIndex = _applyDecs$e[19];
1586
+ _init_popoverOpened = _applyDecs$e[20];
1587
+ _init_isPstnUser = _applyDecs$e[21];
1588
+ _init__handleNewMessageEvent = _applyDecs$e[22];
1589
+ _initProto = _applyDecs$e[23];