fcr-ui-scene 3.4.1 → 3.4.2

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 (567) hide show
  1. package/lib/base.d.ts +40 -5
  2. package/lib/base.js +237 -22
  3. package/lib/common/device-store.d.ts +14 -23
  4. package/lib/common/device-store.js +252 -361
  5. package/lib/common/device-stream-store.d.ts +14 -8
  6. package/lib/common/device-stream-store.js +116 -254
  7. package/lib/common/event-store.d.ts +10 -35
  8. package/lib/common/event-store.js +13 -64
  9. package/lib/common/security-store.d.ts +39 -47
  10. package/lib/common/security-store.js +379 -335
  11. package/lib/creator.d.ts +1 -1
  12. package/lib/creator.js +4 -9
  13. package/lib/electron/app.js +4 -2
  14. package/lib/electron/bootstrap-dev.js +0 -7
  15. package/lib/electron/bootstrap-sdk.js +10 -0
  16. package/lib/electron/injections.d.ts +2 -0
  17. package/lib/electron/injections.js +17 -2
  18. package/lib/electron/logger.d.ts +0 -4
  19. package/lib/electron/logger.js +2 -5
  20. package/lib/electron/main.js +1 -1
  21. package/lib/electron/plugins/devtool-shortcut.js +10 -1
  22. package/lib/electron/plugins/meeting-state.js +1 -1
  23. package/lib/electron/preload.js +3 -1
  24. package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
  25. package/lib/fragments/control-bar/control-bar-store.d.ts +1 -44
  26. package/lib/fragments/control-bar/control-bar-store.js +80 -457
  27. package/lib/fragments/control-bar/device/index.js +3 -5
  28. package/lib/fragments/control-bar/index.css +10 -15
  29. package/lib/fragments/control-bar/index.js +0 -24
  30. package/lib/fragments/control-bar/more-actions/index.css +0 -53
  31. package/lib/fragments/control-bar/more-actions/index.js +38 -73
  32. package/lib/fragments/control-bar/security-content/index.css +0 -75
  33. package/lib/fragments/control-bar/security-content/index.js +19 -105
  34. package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
  35. package/lib/fragments/control-bar/view.js +8 -23
  36. package/lib/fragments/live-streaming/store.d.ts +1 -1
  37. package/lib/fragments/live-streaming/store.js +1 -1
  38. package/lib/fragments/live-streaming/view.js +2 -4
  39. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
  40. package/lib/fragments/share-screen-selection/selection-store.js +1 -1
  41. package/lib/fragments/share-screen-selection/view.js +20 -20
  42. package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
  43. package/lib/fragments/toolbar/components/pen-picker.js +1 -1
  44. package/lib/fragments/toolbar/components/shape-picker.js +1 -1
  45. package/lib/fragments/toolbar/components/wrapper.js +1 -1
  46. package/lib/fragments/toolbar/hooks.js +1 -1
  47. package/lib/fragments/toolbar/store.d.ts +1 -1
  48. package/lib/global.css +5 -0
  49. package/lib/index.d.ts +1 -0
  50. package/lib/index.js +7 -4
  51. package/lib/login-confirm-dialog.d.ts +1 -0
  52. package/lib/login-confirm-dialog.js +7 -2
  53. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +2 -2
  54. package/lib/modules/Interpreter/action/edit-btn/index.js +2 -2
  55. package/lib/modules/Interpreter/action/switch-btn/index.js +5 -5
  56. package/lib/modules/Interpreter/dialog-content/index.d.ts +2 -2
  57. package/lib/modules/Interpreter/dialog-content/index.js +4 -4
  58. package/lib/modules/Interpreter/index.d.ts +11 -4
  59. package/lib/modules/Interpreter/index.js +23 -8
  60. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
  61. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
  62. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -2
  63. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +14 -14
  64. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +2 -2
  65. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +2 -2
  66. package/lib/modules/Interpreter/store.d.ts +23 -84
  67. package/lib/modules/Interpreter/store.js +204 -1216
  68. package/lib/modules/Interpreter/type.d.ts +12 -29
  69. package/lib/modules/Interpreter/type.js +2 -10
  70. package/lib/modules/Interpreter/utils.d.ts +1 -5
  71. package/lib/modules/Interpreter/utils.js +28 -86
  72. package/lib/modules/Interpreter/view.js +19 -3
  73. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -4
  74. package/lib/modules/action-bar/action-bar-collapes-items.js +21 -38
  75. package/lib/modules/action-bar/chat/index.js +8 -8
  76. package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
  77. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
  78. package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
  79. package/lib/modules/action-bar/components/apps/index.css +2 -2
  80. package/lib/modules/action-bar/components/apps/index.js +2 -3
  81. package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
  82. package/lib/modules/action-bar/components/collapse/index.js +222 -0
  83. package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
  84. package/lib/modules/action-bar/components/item/index.d.ts +9 -0
  85. package/lib/modules/action-bar/components/item/index.js +164 -0
  86. package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
  87. package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
  88. package/lib/modules/action-bar/components/leave/index.js +9 -24
  89. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
  90. package/lib/modules/action-bar/components/more/index.js +13 -9
  91. package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
  92. package/lib/modules/action-bar/components/more/poppover-content.js +28 -5
  93. package/lib/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
  94. package/lib/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
  95. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
  96. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +8 -0
  97. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +100 -0
  98. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
  99. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +5 -0
  100. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +33 -0
  101. package/lib/modules/action-bar/components/notification-bar/index.css +74 -0
  102. package/lib/modules/action-bar/components/notification-bar/index.d.ts +2 -0
  103. package/lib/modules/action-bar/components/notification-bar/index.js +99 -0
  104. package/lib/modules/action-bar/components/participants/index.js +2 -2
  105. package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
  106. package/lib/modules/action-bar/components/placement/index.js +18 -0
  107. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
  108. package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
  109. package/lib/modules/action-bar/components/security/index.js +3 -1
  110. package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
  111. package/lib/modules/action-bar/components/smaller/index.js +52 -0
  112. package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
  113. package/lib/modules/action-bar/components/trigger-input-language-room/index.css +86 -0
  114. package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +3 -0
  115. package/lib/modules/action-bar/components/trigger-input-language-room/index.js +215 -0
  116. package/lib/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
  117. package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -0
  118. package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
  119. package/lib/modules/action-bar/components/trigger-output-language/index.js +230 -0
  120. package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +10 -0
  121. package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +8 -0
  122. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +22 -0
  123. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +3 -0
  124. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +75 -0
  125. package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +8 -0
  126. package/lib/modules/action-bar/components/trigger-output-language-room/index.js +98 -0
  127. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  128. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +66 -0
  129. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  130. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +37 -0
  131. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  132. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  133. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
  134. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
  135. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +70 -0
  136. package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
  137. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +209 -0
  138. package/lib/modules/action-bar/device/index.css +2 -7
  139. package/lib/modules/action-bar/device/index.js +24 -22
  140. package/lib/modules/action-bar/enums.d.ts +23 -0
  141. package/lib/modules/action-bar/enums.js +35 -0
  142. package/lib/modules/action-bar/index.d.ts +36 -6
  143. package/lib/modules/action-bar/index.dev.d.ts +0 -1
  144. package/lib/modules/action-bar/index.dev.js +94 -121
  145. package/lib/modules/action-bar/index.js +46 -18
  146. package/lib/modules/action-bar/leave/assign-host.d.ts +0 -3
  147. package/lib/modules/action-bar/leave/assign-host.js +4 -2
  148. package/lib/modules/action-bar/leave/index.css +0 -10
  149. package/lib/modules/action-bar/leave/index.js +34 -84
  150. package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -13
  151. package/lib/modules/action-bar/leave/leave-meeting.js +19 -37
  152. package/lib/modules/action-bar/live-streaming/index.js +3 -3
  153. package/lib/modules/action-bar/more/index.js +6 -9
  154. package/lib/modules/action-bar/more/poppover-content.js +16 -37
  155. package/lib/modules/action-bar/participants/index.css +0 -12
  156. package/lib/modules/action-bar/participants/index.js +16 -23
  157. package/lib/modules/action-bar/record/index.js +4 -4
  158. package/lib/modules/action-bar/screen-share/index.js +5 -14
  159. package/lib/modules/action-bar/screen-share/submenu.js +26 -20
  160. package/lib/modules/action-bar/security/drop-menu.js +22 -137
  161. package/lib/modules/action-bar/security/index.js +6 -12
  162. package/lib/modules/action-bar/settings/index.js +4 -4
  163. package/lib/modules/action-bar/smaller.js +5 -5
  164. package/lib/modules/action-bar/store.d.ts +84 -98
  165. package/lib/modules/action-bar/store.js +567 -707
  166. package/lib/modules/action-bar/types.d.ts +94 -0
  167. package/lib/modules/action-bar/types.js +6 -0
  168. package/lib/modules/action-bar/view.d.ts +1 -2
  169. package/lib/modules/action-bar/view.js +11 -11
  170. package/lib/modules/audio-stream/index.d.ts +22 -10
  171. package/lib/modules/audio-stream/index.js +78 -82
  172. package/lib/modules/chat/chat-bar/index.css +0 -6
  173. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  174. package/lib/modules/chat/chat-bar/index.js +39 -51
  175. package/lib/modules/chat/chat-room-store.d.ts +135 -0
  176. package/lib/modules/chat/chat-room-store.js +954 -0
  177. package/lib/modules/chat/chat-select/index.css +7 -27
  178. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  179. package/lib/modules/chat/chat-select/index.js +4 -18
  180. package/lib/modules/chat/chat.d.ts +2 -1
  181. package/lib/modules/chat/chat.js +128 -196
  182. package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
  183. package/lib/modules/chat/components/chat-action/index.js +28 -0
  184. package/lib/modules/chat/components/chat-bar/index.css +85 -0
  185. package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
  186. package/lib/modules/chat/components/chat-bar/index.js +145 -0
  187. package/lib/modules/chat/components/chat-select/index.css +185 -0
  188. package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
  189. package/lib/modules/chat/components/chat-select/index.js +237 -0
  190. package/lib/modules/chat/components/message-list/index.d.ts +4 -0
  191. package/lib/modules/chat/components/message-list/index.js +650 -0
  192. package/lib/modules/chat/index.d.ts +13 -5
  193. package/lib/modules/chat/index.dev.d.ts +0 -1
  194. package/lib/modules/chat/index.dev.js +71 -72
  195. package/lib/modules/chat/index.js +45 -22
  196. package/lib/modules/chat/message-list.js +51 -68
  197. package/lib/modules/chat/mock.d.ts +1 -1
  198. package/lib/modules/chat/store.d.ts +17 -162
  199. package/lib/modules/chat/store.js +95 -963
  200. package/lib/modules/chat/types.d.ts +70 -0
  201. package/lib/modules/chat/types.js +17 -0
  202. package/lib/modules/chat/view.d.ts +10 -0
  203. package/lib/modules/chat/view.js +372 -0
  204. package/lib/modules/components/device-control/components/audio-menu/index.js +2 -2
  205. package/lib/modules/components/device-control/components/microphone/index.js +7 -7
  206. package/lib/modules/components/device-control/store.d.ts +11 -12
  207. package/lib/modules/components/device-control/store.js +46 -49
  208. package/lib/modules/components/dialog-container/component/body.js +2 -1
  209. package/lib/modules/components/dialog-container/index.d.ts +2 -2
  210. package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
  211. package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
  212. package/lib/modules/components/leave-meeting/components/index.css +125 -0
  213. package/lib/modules/components/leave-meeting/index.d.ts +4 -0
  214. package/lib/modules/components/leave-meeting/index.js +147 -0
  215. package/lib/modules/components/leave-meeting/store.d.ts +31 -0
  216. package/lib/modules/components/leave-meeting/store.js +292 -0
  217. package/lib/modules/components/member-window/index.d.ts +1 -1
  218. package/lib/modules/components/member-window/index.js +12 -6
  219. package/lib/modules/components/security-menu/index.d.ts +2 -0
  220. package/lib/modules/components/security-menu/index.js +34 -35
  221. package/lib/modules/components/tab-frame/index.d.ts +2 -2
  222. package/lib/modules/components/tab-frame/index.js +26 -5
  223. package/lib/modules/connection-gateway/components/computer/index.js +4 -4
  224. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
  225. package/lib/modules/connection-gateway/components/phone/index.js +2 -2
  226. package/lib/modules/connection-gateway/components/tabs/index.js +1 -2
  227. package/lib/modules/connection-gateway/enums.d.ts +4 -0
  228. package/lib/modules/connection-gateway/enums.js +12 -0
  229. package/lib/modules/connection-gateway/index.d.ts +13 -4
  230. package/lib/modules/connection-gateway/index.js +25 -15
  231. package/lib/modules/connection-gateway/store.d.ts +22 -18
  232. package/lib/modules/connection-gateway/store.js +60 -36
  233. package/lib/modules/connection-gateway/types.d.ts +4 -0
  234. package/lib/modules/connection-gateway/types.js +6 -0
  235. package/lib/modules/connection-gateway/view.js +2 -2
  236. package/lib/modules/control-bar/components/meeting-details/index.js +30 -25
  237. package/lib/modules/control-bar/components/more-actions/index.css +18 -0
  238. package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
  239. package/lib/modules/control-bar/components/more-actions/index.js +58 -9
  240. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
  241. package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
  242. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
  243. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
  244. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
  245. package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
  246. package/lib/modules/control-bar/enums.d.ts +21 -0
  247. package/lib/modules/control-bar/enums.js +31 -0
  248. package/lib/modules/control-bar/index.d.ts +30 -7
  249. package/lib/modules/control-bar/index.js +46 -27
  250. package/lib/modules/control-bar/store.d.ts +38 -26
  251. package/lib/modules/control-bar/store.js +172 -282
  252. package/lib/modules/control-bar/types.d.ts +20 -0
  253. package/lib/modules/control-bar/types.js +6 -0
  254. package/lib/modules/control-bar/view.js +68 -34
  255. package/lib/modules/device-pretest/index.js +4 -4
  256. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
  257. package/lib/modules/device-pretest/store.d.ts +8 -9
  258. package/lib/modules/device-pretest/store.js +52 -36
  259. package/lib/modules/dialog/components/Interpreter/electron.js +21 -15
  260. package/lib/modules/dialog/components/Interpreter/index.js +2 -2
  261. package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
  262. package/lib/modules/dialog/components/chat/electron.js +19 -10
  263. package/lib/modules/dialog/components/chat/index.js +2 -2
  264. package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
  265. package/lib/modules/dialog/components/confirm/electron.js +68 -38
  266. package/lib/modules/dialog/components/confirm/index.js +1 -1
  267. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
  268. package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
  269. package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
  270. package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
  271. package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
  272. package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
  273. package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
  274. package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
  275. package/lib/modules/dialog/components/control-bar/index.js +122 -9
  276. package/lib/modules/dialog/components/device-setting/electron.js +6 -2
  277. package/lib/modules/dialog/components/device-setting/index.js +2 -2
  278. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +7 -0
  279. package/lib/modules/dialog/components/dialog-container/component/body.js +77 -0
  280. package/lib/modules/dialog/components/dialog-container/index.css +81 -0
  281. package/lib/modules/dialog/components/dialog-container/index.d.ts +16 -0
  282. package/lib/modules/dialog/components/dialog-container/index.js +112 -0
  283. package/lib/modules/dialog/components/invite/index.js +32 -7
  284. package/lib/modules/dialog/components/live-streaming/index.js +9 -5
  285. package/lib/modules/dialog/components/participant/electron.js +11 -5
  286. package/lib/modules/dialog/components/participant/index.js +4 -3
  287. package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
  288. package/lib/modules/dialog/components/system-preference/electron.js +1 -1
  289. package/lib/modules/dialog/components/toast/index.js +1 -1
  290. package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
  291. package/lib/modules/dialog/components/video-window/index.js +148 -0
  292. package/lib/modules/dialog/components/whiteboard/index.js +2 -2
  293. package/lib/modules/dialog/dialogs.d.ts +2 -5
  294. package/lib/modules/dialog/dialogs.js +2 -157
  295. package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
  296. package/lib/modules/dialog/hooks/useElectron.js +91 -35
  297. package/lib/modules/dialog/index.d.ts +30 -4
  298. package/lib/modules/dialog/index.js +62 -6
  299. package/lib/modules/dialog/store.d.ts +46 -12
  300. package/lib/modules/dialog/store.js +121 -65
  301. package/lib/modules/dialog/types/index.d.ts +14 -3
  302. package/lib/modules/event-confirm/index.css +1 -1
  303. package/lib/modules/event-confirm/index.d.ts +13 -6
  304. package/lib/modules/event-confirm/index.js +28 -11
  305. package/lib/modules/event-confirm/store.d.ts +9 -3
  306. package/lib/modules/event-confirm/store.js +16 -7
  307. package/lib/modules/event-confirm/view.js +5 -1
  308. package/lib/modules/event-toast/index.d.ts +7 -6
  309. package/lib/modules/event-toast/index.js +19 -8
  310. package/lib/modules/event-toast/store.d.ts +8 -3
  311. package/lib/modules/event-toast/store.js +15 -6
  312. package/lib/modules/invite/components/error-tips.d.ts +4 -0
  313. package/lib/modules/invite/components/error-tips.js +18 -0
  314. package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
  315. package/lib/modules/invite/components/pstn-invite.js +297 -0
  316. package/lib/modules/invite/components/voip-invite.d.ts +1 -0
  317. package/lib/modules/invite/components/voip-invite.js +276 -0
  318. package/lib/modules/invite/enums.d.ts +22 -0
  319. package/lib/modules/invite/enums.js +33 -0
  320. package/lib/modules/invite/index.d.ts +7 -8
  321. package/lib/modules/invite/index.js +17 -15
  322. package/lib/modules/invite/pstn-invite.js +9 -7
  323. package/lib/modules/invite/store.d.ts +11 -26
  324. package/lib/modules/invite/store.js +55 -25
  325. package/lib/modules/invite/types.d.ts +14 -0
  326. package/lib/modules/invite/types.js +6 -0
  327. package/lib/modules/invite/view.d.ts +0 -4
  328. package/lib/modules/invite/view.js +7 -11
  329. package/lib/modules/invite/voip-invite.js +6 -5
  330. package/lib/modules/layout/components/Aside.js +34 -17
  331. package/lib/modules/layout/components/Carousel.js +1 -1
  332. package/lib/modules/layout/components/Gallery.js +1 -1
  333. package/lib/modules/layout/components/index.d.ts +1 -1
  334. package/lib/modules/layout/components/index.js +4 -4
  335. package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
  336. package/lib/modules/layout/components/who-is-speaking.js +60 -0
  337. package/lib/modules/layout/index.d.ts +26 -4
  338. package/lib/modules/layout/index.dev.d.ts +0 -1
  339. package/lib/modules/layout/index.dev.js +312 -386
  340. package/lib/modules/layout/index.js +25 -10
  341. package/lib/modules/layout/member-window/index.css +18 -116
  342. package/lib/modules/layout/member-window/index.d.ts +3 -10
  343. package/lib/modules/layout/member-window/index.js +115 -227
  344. package/lib/modules/layout/store.d.ts +61 -71
  345. package/lib/modules/layout/store.js +311 -573
  346. package/lib/modules/layout/view.d.ts +2 -0
  347. package/lib/modules/layout/view.js +127 -2
  348. package/lib/modules/live-streaming/index.d.ts +15 -7
  349. package/lib/modules/live-streaming/index.dev.js +13 -13
  350. package/lib/modules/live-streaming/index.js +20 -15
  351. package/lib/modules/live-streaming/store.d.ts +21 -14
  352. package/lib/modules/live-streaming/store.js +84 -144
  353. package/lib/modules/live-streaming/view.js +2 -2
  354. package/lib/modules/notification/index.d.ts +9 -11
  355. package/lib/modules/notification/index.js +21 -14
  356. package/lib/modules/notification/interpreter-status/index.js +1 -2
  357. package/lib/modules/notification/store.d.ts +5 -11
  358. package/lib/modules/notification/store.js +12 -62
  359. package/lib/modules/notification/view.d.ts +5 -3
  360. package/lib/modules/notification/view.js +8 -5
  361. package/lib/modules/offscreen-pulling/index.js +1 -1
  362. package/lib/modules/participant/attendee/index.css +51 -0
  363. package/lib/modules/participant/attendee/index.d.ts +5 -8
  364. package/lib/modules/participant/attendee/index.js +15 -61
  365. package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  366. package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
  367. package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
  368. package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
  369. package/lib/modules/participant/components/attendee/index.css +69 -0
  370. package/lib/modules/participant/components/attendee/index.d.ts +4 -0
  371. package/lib/modules/participant/components/attendee/index.js +337 -0
  372. package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
  373. package/lib/modules/participant/components/can-moveable/index.js +68 -0
  374. package/lib/modules/participant/components/drop-menu/index.js +8 -8
  375. package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
  376. package/lib/modules/participant/components/footer/buttons.js +2 -3
  377. package/lib/modules/participant/components/footer/index.js +2 -2
  378. package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
  379. package/lib/modules/participant/components/mute-all/index.js +31 -44
  380. package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
  381. package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
  382. package/lib/modules/participant/components/participants/index.js +27 -50
  383. package/lib/modules/participant/components/user-action/index.d.ts +17 -0
  384. package/lib/modules/participant/components/user-action/index.js +169 -0
  385. package/lib/modules/participant/index.d.ts +34 -7
  386. package/lib/modules/participant/index.dev.d.ts +0 -1
  387. package/lib/modules/participant/index.dev.js +87 -116
  388. package/lib/modules/participant/index.js +39 -13
  389. package/lib/modules/participant/member-list-data-source.d.ts +4 -1
  390. package/lib/modules/participant/member-list-data-source.js +58 -31
  391. package/lib/modules/participant/room-control-drop-menu/index.css +0 -37
  392. package/lib/modules/participant/store.d.ts +58 -25
  393. package/lib/modules/participant/store.js +321 -298
  394. package/lib/modules/participant/type.d.ts +45 -1
  395. package/lib/modules/participant/type.js +15 -1
  396. package/lib/modules/pc-audio-connect/index.css +12 -0
  397. package/lib/modules/pc-audio-connect/index.d.ts +22 -0
  398. package/lib/modules/pc-audio-connect/index.js +68 -0
  399. package/lib/modules/pc-audio-connect/store.d.ts +46 -0
  400. package/lib/modules/pc-audio-connect/store.js +301 -0
  401. package/lib/modules/pc-audio-connect/types.d.ts +0 -0
  402. package/lib/modules/pc-audio-connect/types.js +1 -0
  403. package/lib/modules/pc-audio-connect/view.d.ts +3 -0
  404. package/lib/modules/pc-audio-connect/view.js +66 -0
  405. package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
  406. package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
  407. package/lib/modules/phone-audio-connect/components/callinfo/index.js +77 -0
  408. package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
  409. package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
  410. package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
  411. package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
  412. package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
  413. package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
  414. package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
  415. package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
  416. package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
  417. package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
  418. package/lib/modules/phone-audio-connect/enums.js +12 -0
  419. package/lib/modules/phone-audio-connect/index.css +56 -0
  420. package/lib/modules/phone-audio-connect/index.d.ts +16 -0
  421. package/lib/modules/phone-audio-connect/index.js +63 -0
  422. package/lib/modules/phone-audio-connect/store.d.ts +46 -0
  423. package/lib/modules/phone-audio-connect/store.js +320 -0
  424. package/lib/modules/phone-audio-connect/types.d.ts +4 -0
  425. package/lib/modules/phone-audio-connect/types.js +6 -0
  426. package/lib/modules/phone-audio-connect/view.d.ts +3 -0
  427. package/lib/modules/phone-audio-connect/view.js +184 -0
  428. package/lib/modules/setting/audio-settings/audio-settings.js +5 -5
  429. package/lib/modules/setting/index.d.ts +25 -5
  430. package/lib/modules/setting/index.dev.d.ts +0 -1
  431. package/lib/modules/setting/index.dev.js +120 -81
  432. package/lib/modules/setting/index.js +35 -9
  433. package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
  434. package/lib/modules/setting/state/index.js +3 -3
  435. package/lib/modules/setting/store.d.ts +48 -14
  436. package/lib/modules/setting/store.js +105 -114
  437. package/lib/modules/setting/translate-settings/translate-settings.js +3 -3
  438. package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
  439. package/lib/modules/setting/view.js +6 -35
  440. package/lib/modules/share-screen/components/selection/index.css +70 -0
  441. package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
  442. package/lib/modules/share-screen/components/selection/index.js +267 -0
  443. package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
  444. package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
  445. package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
  446. package/lib/modules/share-screen/index.d.ts +15 -18
  447. package/lib/modules/share-screen/index.dev.d.ts +0 -1
  448. package/lib/modules/share-screen/index.dev.js +90 -91
  449. package/lib/modules/share-screen/index.js +22 -22
  450. package/lib/modules/share-screen/selection/index.css +0 -4
  451. package/lib/modules/share-screen/selection/index.js +129 -126
  452. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  453. package/lib/modules/share-screen/store.d.ts +36 -32
  454. package/lib/modules/share-screen/store.js +250 -219
  455. package/lib/modules/share-screen/types.d.ts +27 -0
  456. package/lib/modules/share-screen/types.js +6 -0
  457. package/lib/modules/share-screen/view.js +1 -1
  458. package/lib/modules/sound-effect/index.d.ts +9 -4
  459. package/lib/modules/sound-effect/index.js +72 -40
  460. package/lib/modules/sound-effect/sound-effect-player.js +1 -1
  461. package/lib/modules/state-bar/index.d.ts +16 -13
  462. package/lib/modules/state-bar/index.dev.d.ts +0 -1
  463. package/lib/modules/state-bar/index.dev.js +78 -83
  464. package/lib/modules/state-bar/index.js +23 -7
  465. package/lib/modules/state-bar/meeting-details.js +24 -12
  466. package/lib/modules/state-bar/meeting-network-state.js +1 -1
  467. package/lib/modules/state-bar/store.d.ts +20 -10
  468. package/lib/modules/state-bar/store.js +84 -87
  469. package/lib/modules/state-bar/view.js +2 -2
  470. package/lib/modules/video-window/deviceState/index.d.ts +2 -2
  471. package/lib/modules/video-window/deviceState/index.js +4 -6
  472. package/lib/modules/video-window/index.css +1 -4
  473. package/lib/modules/video-window/index.d.ts +33 -6
  474. package/lib/modules/video-window/index.js +63 -15
  475. package/lib/modules/video-window/members/index.css +1 -0
  476. package/lib/modules/video-window/members/index.js +25 -11
  477. package/lib/modules/video-window/store.d.ts +58 -27
  478. package/lib/modules/video-window/store.js +166 -161
  479. package/lib/modules/waiting-room-layout/index.d.ts +11 -4
  480. package/lib/modules/waiting-room-layout/index.js +26 -13
  481. package/lib/modules/waiting-room-layout/store.d.ts +6 -3
  482. package/lib/modules/waiting-room-layout/store.js +17 -15
  483. package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
  484. package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
  485. package/lib/modules/whiteboard/index.d.ts +20 -14
  486. package/lib/modules/whiteboard/index.js +250 -223
  487. package/lib/modules/whiteboard/view.d.ts +2 -0
  488. package/lib/modules/whiteboard/view.js +49 -0
  489. package/lib/plugins/browser-runtime-plugin.js +5 -1
  490. package/lib/providers/chat-provider.d.ts +71 -0
  491. package/lib/providers/chat-provider.js +91 -0
  492. package/lib/providers/device-privilege-provider.d.ts +52 -6
  493. package/lib/providers/device-privilege-provider.js +212 -183
  494. package/lib/providers/device-provider.d.ts +203 -45
  495. package/lib/providers/device-provider.js +486 -398
  496. package/lib/providers/device-stream-provider.d.ts +12 -13
  497. package/lib/providers/device-stream-provider.js +86 -193
  498. package/lib/providers/dialog-provider.d.ts +135 -0
  499. package/lib/providers/dialog-provider.js +204 -0
  500. package/lib/providers/event-provider.d.ts +1 -21
  501. package/lib/providers/event-provider.js +19 -57
  502. package/lib/providers/interpreter-provider.d.ts +218 -7
  503. package/lib/providers/interpreter-provider.js +1072 -80
  504. package/lib/providers/local-storage-provider.d.ts +9 -0
  505. package/lib/providers/message-provider.d.ts +69 -0
  506. package/lib/providers/message-provider.js +98 -0
  507. package/lib/providers/monitor-provider.d.ts +5 -0
  508. package/lib/providers/phone-audio-provider.d.ts +131 -0
  509. package/lib/providers/phone-audio-provider.js +515 -0
  510. package/lib/providers/privilege-provider.d.ts +325 -12
  511. package/lib/providers/privilege-provider.js +111 -295
  512. package/lib/providers/renderer-provider.d.ts +46 -4
  513. package/lib/providers/renderer-provider.js +57 -60
  514. package/lib/providers/room-provider.d.ts +113 -6
  515. package/lib/providers/room-provider.js +667 -87
  516. package/lib/providers/screen-share-provider.d.ts +65 -0
  517. package/lib/providers/screen-share-provider.js +238 -0
  518. package/lib/providers/session-provider.d.ts +30 -0
  519. package/lib/runtime.d.ts +2 -0
  520. package/lib/scenes/main-scene.d.ts +41 -3
  521. package/lib/scenes/main-scene.js +407 -246
  522. package/lib/scenes/waiting-scene.d.ts +34 -4
  523. package/lib/scenes/waiting-scene.js +163 -56
  524. package/lib/shared-data-source/chat-data.d.ts +14 -0
  525. package/lib/shared-data-source/chat-data.js +130 -0
  526. package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
  527. package/lib/shared-data-source/device-privilege-data.js +25 -0
  528. package/lib/shared-data-source/interpreter.d.ts +63 -0
  529. package/lib/shared-data-source/interpreter.js +248 -0
  530. package/lib/shared-data-source/layout-data.d.ts +29 -0
  531. package/lib/shared-data-source/layout-data.js +181 -0
  532. package/lib/shared-data-source/pin-data.d.ts +9 -0
  533. package/lib/shared-data-source/pin-data.js +24 -0
  534. package/lib/shared-data-source/setting.d.ts +32 -0
  535. package/lib/shared-data-source/setting.js +153 -0
  536. package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
  537. package/lib/shared-data-source/speaker-spotlight.js +15 -0
  538. package/lib/shared-data-source/video-window.d.ts +161 -0
  539. package/lib/shared-data-source/video-window.js +1202 -0
  540. package/lib/shared-data-source/waiting-room.d.ts +19 -0
  541. package/lib/shared-data-source/waiting-room.js +158 -0
  542. package/lib/translations/enUS.d.ts +43 -17
  543. package/lib/translations/enUS.js +59 -33
  544. package/lib/translations/zhCN.d.ts +43 -17
  545. package/lib/translations/zhCN.js +57 -31
  546. package/lib/type.d.ts +270 -25
  547. package/lib/type.js +67 -2
  548. package/lib/ui-manager.d.ts +20 -16
  549. package/lib/ui-manager.js +59 -795
  550. package/lib/ui-scene.d.ts +6 -1
  551. package/lib/ui-scene.js +372 -42
  552. package/lib/utilities/constant.d.ts +63 -86
  553. package/lib/utilities/constant.js +151 -175
  554. package/lib/utilities/copyText.js +8 -7
  555. package/lib/utilities/extract.d.ts +1 -1
  556. package/lib/utilities/privilege.d.ts +4 -0
  557. package/lib/utilities/privilege.js +31 -0
  558. package/lib/utilities/setting-config-storage.d.ts +12 -0
  559. package/lib/utilities/setting-config-storage.js +102 -0
  560. package/lib/utilities/tools.d.ts +35 -3
  561. package/lib/utilities/tools.js +104 -2
  562. package/lib/utilities/video-track-render-context.d.ts +3 -4
  563. package/lib/utilities/video-track-render-context.js +1 -1
  564. package/package.json +5 -5
  565. package/public/assets/full-screen-error-boundary-img.png +0 -0
  566. package/public/assets/leave-meeting.png +0 -0
  567. package/public/index.html +24 -14
@@ -8,12 +8,10 @@ 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
10
  require("core-js/modules/es.function.name.js");
11
+ require("core-js/modules/es.number.constructor.js");
11
12
  require("core-js/modules/es.object.create.js");
12
- require("core-js/modules/es.object.define-properties.js");
13
13
  require("core-js/modules/es.object.define-property.js");
14
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
15
  require("core-js/modules/esnext.function.metadata.js");
18
16
  require("core-js/modules/esnext.symbol.metadata.js");
19
17
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -21,13 +19,13 @@ var _typeof = require("@babel/runtime/helpers/typeof");
21
19
  Object.defineProperty(exports, "__esModule", {
22
20
  value: true
23
21
  });
24
- exports["default"] = exports.MoreMenuType = exports.EventType = exports.AudioConnectType = exports.ActionBarContext = void 0;
22
+ exports["default"] = exports.AudioConnectType = exports.ActionBarContext = void 0;
25
23
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
24
+ require("core-js/modules/es.array.concat.js");
26
25
  require("core-js/modules/es.array.filter.js");
27
26
  require("core-js/modules/es.array.find.js");
28
27
  require("core-js/modules/es.array.find-index.js");
29
28
  require("core-js/modules/es.array.for-each.js");
30
- require("core-js/modules/es.array.includes.js");
31
29
  require("core-js/modules/es.array.iterator.js");
32
30
  require("core-js/modules/es.array.map.js");
33
31
  require("core-js/modules/es.array.push.js");
@@ -37,10 +35,8 @@ require("core-js/modules/es.array.splice.js");
37
35
  require("core-js/modules/es.date.to-string.js");
38
36
  require("core-js/modules/es.function.bind.js");
39
37
  require("core-js/modules/es.map.js");
40
- require("core-js/modules/es.number.constructor.js");
41
38
  require("core-js/modules/es.object.to-string.js");
42
39
  require("core-js/modules/es.object.values.js");
43
- require("core-js/modules/es.string.includes.js");
44
40
  require("core-js/modules/es.string.iterator.js");
45
41
  require("core-js/modules/es.weak-map.js");
46
42
  require("core-js/modules/esnext.async-iterator.filter.js");
@@ -86,22 +82,19 @@ var _fcrCore = require("fcr-core");
86
82
  var _mobx = require("mobx");
87
83
  var _type = require("fcr-core/lib/type");
88
84
  var _decorator = require("agora-foundation/lib/decorator");
89
- var _constant = require("../../utilities/constant");
90
- var _type2 = require("../../type");
91
- var _deviceStore = require("../../common/device-store");
92
85
  var _env = require("agora-foundation/lib/utilities/env");
93
- var _type3 = require("../whiteboard/type");
86
+ var _type2 = require("../whiteboard/type");
94
87
  var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
95
- var _type4 = require("agora-ui-foundation/lib/components/icon/type");
96
- var _type5 = require("agora-rte-sdk/lib/type");
88
+ var _type3 = require("agora-ui-foundation/lib/components/icon/type");
89
+ var _type4 = require("agora-rte-sdk/lib/type");
97
90
  var _i18n = require("agora-ui-foundation/lib/i18n");
98
- var _type6 = require("fcr-core/lib/room-control/type");
99
- var _type7 = require("fcr-core/lib/room-control/privilege-control/type");
91
+ var _type5 = require("fcr-core/lib/room-control/type");
100
92
  var _react = require("react");
93
+ var _constant = require("../../utilities/constant");
94
+ var _interpreter = require("../../shared-data-source/interpreter");
95
+ var _enums2 = require("./enums");
101
96
  var _ActionBarStore;
102
- 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_stateBarLeaveMeeting, _init_isPstnUser, _init_interpreter, _init_interpreterState, _init_interpreterUsers, _init_securityStore, _init_interpreterUsersOffline, _init_initShowGuide, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _assignHostDecs, _setPopoverOpenedDecs, _setStateBarLeaveMeetingDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _getWaitingRoomUserCountDecs, _handleRemoteWaitingUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleNewMessageEventDecs, _init__handleNewMessageEvent, _handleChatVisibleDecs, _handlerTraceScreenCaptureStateUpdateDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _setInitShowGuideDecs, _getInterpreterUsersDecs, _getInterpreterDecs, _getInterpreterStateDecs, _triggerOutputLanguageDecs, _changeOutputByMainRoomDecs, _updateInterpreterDecs, _resetInterpreterDecs, _setInputLanguageRoomDecs, _getInterpreterUsersAllOnlineDecs, _ref;
103
- 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; }
104
- 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; }
97
+ var _initProto, _init_users, _init_newMessageTooltipVisible, _init_totalUser, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_localUserRole, _init_localUser, _init_connectionSettingVisible, _init_folded, _init_boardOwnerUser, _init_hasScreenShare, _init_showArrow, _init_phoneMicEnabled, _init_chatTabIndex, _init_popoverOpened, _init_stateBarLeaveMeeting, _init_isPstnUser, _init_interpreterUsersOffline, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _setPopoverOpenedDecs, _setStateBarLeaveMeetingDecs, _handleJoinWaitingRoomDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleChatVisibleDecs, _handlerTraceScreenCaptureStateUpdateDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _setOutputLanguageDecs, _subscribeLanguageDecs, _setSubscribeMainRoomDecs, _getInterpreterUsersAllOnlineDecs, _ref;
105
98
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
106
99
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
107
100
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -112,17 +105,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
112
105
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
113
106
  function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
114
107
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
115
- var EventType = exports.EventType = /*#__PURE__*/function (EventType) {
116
- EventType["START"] = "start";
117
- EventType["STOP"] = "stop";
118
- return EventType;
119
- }({});
120
- var MoreMenuType = exports.MoreMenuType = /*#__PURE__*/function (MoreMenuType) {
121
- MoreMenuType[MoreMenuType["DEFAULT"] = 0] = "DEFAULT";
122
- MoreMenuType[MoreMenuType["SECURITY"] = 1] = "SECURITY";
123
- MoreMenuType[MoreMenuType["APPS"] = 2] = "APPS";
124
- return MoreMenuType;
125
- }({});
126
108
  var AudioConnectType = exports.AudioConnectType = /*#__PURE__*/function (AudioConnectType) {
127
109
  AudioConnectType[AudioConnectType["NONE"] = 0] = "NONE";
128
110
  AudioConnectType[AudioConnectType["COMPUTER"] = 1] = "COMPUTER";
@@ -149,31 +131,20 @@ var _Q = /*#__PURE__*/new WeakMap();
149
131
  var _R = /*#__PURE__*/new WeakMap();
150
132
  var _S = /*#__PURE__*/new WeakMap();
151
133
  var _T = /*#__PURE__*/new WeakMap();
152
- var _U = /*#__PURE__*/new WeakMap();
153
- var _V = /*#__PURE__*/new WeakMap();
154
- var _W = /*#__PURE__*/new WeakMap();
155
- var _X = /*#__PURE__*/new WeakMap();
156
- var _Y = /*#__PURE__*/new WeakMap();
157
- var _Z = /*#__PURE__*/new WeakMap();
158
- var _a = /*#__PURE__*/new WeakMap();
159
- var _b = /*#__PURE__*/new WeakMap();
160
- var _c = /*#__PURE__*/new WeakMap();
161
134
  _ref = (_pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
162
135
  leading: true
163
136
  })], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
164
137
  leading: true
165
138
  })], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
166
139
  leading: true
167
- })], _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], _setStateBarLeaveMeetingDecs = [_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], _setInitShowGuideDecs = [_mobx.action, _mobx.action.bound], _getInterpreterUsersDecs = [_mobx.action, _mobx.action.bound], _getInterpreterDecs = [_mobx.action, _mobx.action.bound], _getInterpreterStateDecs = [_mobx.action, _mobx.action.bound], _triggerOutputLanguageDecs = [_mobx.action, _mobx.action.bound], _changeOutputByMainRoomDecs = [_mobx.action, _mobx.action.bound], _updateInterpreterDecs = [_mobx.action, _mobx.action.bound], _resetInterpreterDecs = [_mobx.action, _mobx.action.bound], _setInputLanguageRoomDecs = [_mobx.action, _mobx.action.bound], _getInterpreterUsersAllOnlineDecs = [_mobx.action, _mobx.action.bound], "logger");
140
+ })], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_mobx.action, _mobx.action.bound], _setStateBarLeaveMeetingDecs = [_mobx.action, _mobx.action.bound], _handleJoinWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_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], _setOutputLanguageDecs = [_mobx.action, _mobx.action.bound], _subscribeLanguageDecs = [_mobx.action, _mobx.action.bound], _setSubscribeMainRoomDecs = [_mobx.action, _mobx.action.bound], _getInterpreterUsersAllOnlineDecs = [_mobx.action, _mobx.action.bound], "logger");
168
141
  var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
169
142
  function ActionBarStore(args) {
170
143
  var _this = this,
171
- _this$_interpreterCon;
144
+ _this$_roomControl$ge;
172
145
  (0, _classCallCheck2["default"])(this, ActionBarStore);
173
146
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
174
147
  (0, _defineProperty2["default"])(this, "_disposers", []);
175
- (0, _defineProperty2["default"])(this, "_chatRenderAt", 'aside');
176
- (0, _defineProperty2["default"])(this, "_participantsRenderAt", 'aside');
177
148
  (0, _defineProperty2["default"])(this, "_screenVideoTrack", null);
178
149
  (0, _defineProperty2["default"])(this, "_userObserver", {
179
150
  onRemoteUsersJoined: this._handleRemoteUsersJoined,
@@ -181,11 +152,14 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
181
152
  onUserInfoUpdated: this._handleUserInfoUpdated,
182
153
  onAllUserCountUpdated: this._handleAllUserCountUpdated
183
154
  });
184
- (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
185
- onRemoteUsersJoined: this._handleRemoteWaitingUserJoined,
186
- onRemoteUsersLeft: this._handleRemoteWaitingUserLeft
187
- });
155
+ // private _waitingRoomUserObserver: FcrUserObserver = {
156
+ // onRemoteUsersJoined: this._handleRemoteWaitingUserJoined,
157
+ // onRemoteUsersLeft: this._handleRemoteWaitingUserLeft,
158
+ // };
188
159
  (0, _defineProperty2["default"])(this, "_roomObserver", {
160
+ onJoinWaitingRoom: this._handleJoinWaitingRoom.bind(this)
161
+ });
162
+ (0, _defineProperty2["default"])(this, "_mainRoomObserver", {
189
163
  onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated,
190
164
  onCloudRecordingStateUpdated: this._handleCloudRecordingStateUpdated
191
165
  });
@@ -193,121 +167,84 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
193
167
  onEvent: this._onEvent
194
168
  });
195
169
  (0, _defineProperty2["default"])(this, "_openedDialogIdMap", new Map());
196
- (0, _defineProperty2["default"])(this, "_participantVisible", false);
197
- (0, _defineProperty2["default"])(this, "_chatVisible", false);
198
- (0, _defineProperty2["default"])(this, "_liveStreamingDialogId", '');
199
170
  (0, _defineProperty2["default"])(this, "_newMessageTooltipTimer", null);
200
171
  (0, _defineProperty2["default"])(this, "_hideBarArrowTimer", null);
201
172
  (0, _defineProperty2["default"])(this, "_sharingOwnerUser", undefined);
202
- (0, _defineProperty2["default"])(this, "_isSharingScreen", false);
203
- (0, _defineProperty2["default"])(this, "_microponeInitCount", 0);
204
- (0, _defineProperty2["default"])(this, "_speakerInitCount", 0);
205
- (0, _defineProperty2["default"])(this, "_participantTab", _constant.RoomType.MAIN_ROOM);
173
+ (0, _defineProperty2["default"])(this, "_participantTab", _type5.FcrRoomType.Mainroom);
174
+ (0, _defineProperty2["default"])(this, "_streamObserver", {
175
+ onStreamsAdded: this._handleStreamsAddedOrUpdated,
176
+ onStreamsUpdated: this._handleStreamsAddedOrUpdated,
177
+ onStreamsRemoved: this._handleStreamsAddedOrUpdated
178
+ });
179
+ (0, _defineProperty2["default"])(this, "_interpreterObserver", {
180
+ onInterpreterUsersUpdated: function onInterpreterUsersUpdated() {
181
+ _this.interpreterUsersOffline = _this.getInterpreterUsersAllOnline();
182
+ }
183
+ });
184
+ (0, _defineProperty2["default"])(this, "_interpreterProviderObserver", {
185
+ onLocalBecameInterpreter: function onLocalBecameInterpreter() {},
186
+ onLocalNotInterpreter: function onLocalNotInterpreter() {}
187
+ });
206
188
  _classPrivateFieldInitSpec(this, _A, _init_users(this));
207
189
  _classPrivateFieldInitSpec(this, _B, _init_newMessageTooltipVisible(this, false));
208
- _classPrivateFieldInitSpec(this, _C, _init_newMessageCount(this, (0, _defineProperty2["default"])({}, _constant.RoomType.MAIN_ROOM, 0)));
209
- _classPrivateFieldInitSpec(this, _D, _init_latestMessage(this));
210
- _classPrivateFieldInitSpec(this, _E, _init_totalUser(this));
211
- _classPrivateFieldInitSpec(this, _F, _init_totalWaitingRoomUser(this, 0));
212
- _classPrivateFieldInitSpec(this, _G, _init_liveStreamingState(this));
213
- _classPrivateFieldInitSpec(this, _H, _init_currentMenuIs(this, MoreMenuType.DEFAULT));
214
- _classPrivateFieldInitSpec(this, _I, _init_cloudRecordingState(this));
215
- _classPrivateFieldInitSpec(this, _J, _init_localUserRole(this));
216
- _classPrivateFieldInitSpec(this, _K, _init_localUser(this));
217
- _classPrivateFieldInitSpec(this, _L, _init_connectionSettingVisible(this, false));
218
- _classPrivateFieldInitSpec(this, _M, _init_connectType(this, _deviceStore.ConnectType.COMPUTER));
219
- _classPrivateFieldInitSpec(this, _N, _init_folded(this, false));
220
- _classPrivateFieldInitSpec(this, _O, _init_boardOwnerUser(this, null));
221
- _classPrivateFieldInitSpec(this, _P, _init_hasScreenShare(this, false));
222
- _classPrivateFieldInitSpec(this, _Q, _init_showArrow(this, false));
223
- _classPrivateFieldInitSpec(this, _R, _init_phoneMicEnabled(this, false));
224
- _classPrivateFieldInitSpec(this, _S, _init_isNewWaitingRoomUserEnter(this, false));
225
- _classPrivateFieldInitSpec(this, _T, _init_chatTabIndex(this, _constant.RoomType.MAIN_ROOM));
226
- _classPrivateFieldInitSpec(this, _U, _init_popoverOpened(this, false));
227
- _classPrivateFieldInitSpec(this, _V, _init_stateBarLeaveMeeting(this, false));
228
- _classPrivateFieldInitSpec(this, _W, _init_isPstnUser(this, false));
229
- _classPrivateFieldInitSpec(this, _X, _init_interpreter(this));
230
- _classPrivateFieldInitSpec(this, _Y, _init_interpreterState(this));
231
- _classPrivateFieldInitSpec(this, _Z, _init_interpreterUsers(this));
232
- _classPrivateFieldInitSpec(this, _a, _init_securityStore(this));
233
- _classPrivateFieldInitSpec(this, _b, _init_interpreterUsersOffline(this, true));
234
- _classPrivateFieldInitSpec(this, _c, _init_initShowGuide(this, true));
235
- (0, _defineProperty2["default"])(this, "_handleNewMessageEvent", _init__handleNewMessageEvent(this, function (e) {
236
- var _msgObj;
237
- // if (this._chatVisible) return;
238
- var msgObj = _objectSpread({}, _this.newMessageCount);
239
- msgObj[e.type] = ((_msgObj = msgObj[e.type]) !== null && _msgObj !== void 0 ? _msgObj : 0) + Number(e.count);
240
- _this.newMessageCount = _objectSpread({}, msgObj);
241
- _this.latestMessage = e.latestMessage;
242
- _this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
243
- _this.showNewMessageTooltip();
244
- _this._newMessageTooltipTimer = window.setTimeout(function () {
245
- _this.hideNewMessageTooltip();
246
- }, 4000);
247
- }));
190
+ _classPrivateFieldInitSpec(this, _C, _init_totalUser(this));
191
+ _classPrivateFieldInitSpec(this, _D, _init_totalWaitingRoomUser(this, 0));
192
+ _classPrivateFieldInitSpec(this, _E, _init_liveStreamingState(this));
193
+ _classPrivateFieldInitSpec(this, _F, _init_currentMenuIs(this, _enums2.MoreMenuType.DEFAULT));
194
+ _classPrivateFieldInitSpec(this, _G, _init_cloudRecordingState(this));
195
+ _classPrivateFieldInitSpec(this, _H, _init_localUserRole(this));
196
+ _classPrivateFieldInitSpec(this, _I, _init_localUser(this));
197
+ _classPrivateFieldInitSpec(this, _J, _init_connectionSettingVisible(this, false));
198
+ _classPrivateFieldInitSpec(this, _K, _init_folded(this, false));
199
+ _classPrivateFieldInitSpec(this, _L, _init_boardOwnerUser(this, null));
200
+ _classPrivateFieldInitSpec(this, _M, _init_hasScreenShare(this, false));
201
+ _classPrivateFieldInitSpec(this, _N, _init_showArrow(this, false));
202
+ _classPrivateFieldInitSpec(this, _O, _init_phoneMicEnabled(this, false));
203
+ _classPrivateFieldInitSpec(this, _P, _init_chatTabIndex(this, _type5.FcrRoomType.Mainroom));
204
+ _classPrivateFieldInitSpec(this, _Q, _init_popoverOpened(this, false));
205
+ _classPrivateFieldInitSpec(this, _R, _init_stateBarLeaveMeeting(this, false));
206
+ _classPrivateFieldInitSpec(this, _S, _init_isPstnUser(this, false));
207
+ _classPrivateFieldInitSpec(this, _T, _init_interpreterUsersOffline(this, true));
208
+ this._roomProvider = args.roomProvider;
248
209
  this._roomControl = args.roomControl;
249
- this._userControl = args.userControl;
250
- this._streamControl = args.streamControl;
251
- this._uiEventStore = args.uiEventStore;
252
- this._securityStore = args.securityStore;
253
- this.securityStore = args.securityStore;
254
- this._deviceStore = args.deviceStore;
255
- this._mediaControl = args.mediaControl;
256
- this._deviceStreamStore = args.deviceStreamStore;
210
+ this._deviceProvider = args.deviceProvider;
211
+ this._sharedLayoutDataSource = args.sharedLayoutDataSource;
212
+ this._eventProvider = args.eventProvider;
213
+ this._dialogProvider = args.dialogProvider;
214
+ this._messageProvider = args.messageProvider;
215
+ this._privilegeProvider = args.privilegeProvider;
216
+ this._deviceStreamProvider = args.deviceStreamProvider;
217
+ this._screenShareProvider = args.screenShareProvider;
218
+ this._sharedWaitingRoomDataSource = args.sharedWaitingRoomDataSource;
219
+ this._sharedInterpreterDataSource = args.sharedInterpreterDataSource;
220
+ this._sharedChatDataSource = args.sharedChatDataSource;
221
+ this._interpreterProvider = args.interpreterProvider;
222
+ this._sharedDevicePrivilegeDataSource = args.sharedDevicePrivilegeDataSource;
223
+ this._userControl = args.roomControl.getUserControl();
224
+ this._streamControl = args.roomControl.getStreamControl();
225
+ this._userControl = this._roomControl.getUserControl();
226
+ this._streamControl = this._roomControl.getStreamControl();
257
227
  this.localUserRole = this._userControl.getLocalUser().userRole;
258
- this.localUser = args.userControl.getLocalUser();
228
+ this.localUser = this._userControl.getLocalUser();
229
+ this._roomType = (_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType;
259
230
  this.users = Object.values(this._userControl.getUsers());
260
231
  this.liveStreamingState = this._roomControl.getLiveStreamingState();
261
232
  this.cloudRecordingState = this._roomControl.getCloudRecordingState();
262
233
  this.totalUser = this._userControl.getAllUserCount();
263
- this._microponeInitCount = this.microphoneList.length;
264
- this._speakerInitCount = this.speakerList.length;
265
- this._interpreterControl = args.interpreterControl;
266
- this._roomStore = args.roomStore;
267
- this.interpreter = this.getInterpreter();
268
- this.interpreterState = this.getInterpreterState();
269
- this.interpreterUsers = this.getInterpreterUsers('constructor');
270
234
  this.interpreterUsersOffline = this.getInterpreterUsersAllOnline();
271
- (_this$_interpreterCon = this._interpreterControl) === null || _this$_interpreterCon === void 0 || _this$_interpreterCon.addObserver({
272
- onInterpreterUsersUpdated: function onInterpreterUsersUpdated() {
273
- _this.interpreterUsers = _this.getInterpreterUsers('onInterpreterUsersUpdated');
274
- _this.interpreter = _this.getInterpreter();
275
- _this.interpreterUsersOffline = _this.getInterpreterUsersAllOnline();
276
- },
277
- onInterpreterStateUpdated: function onInterpreterStateUpdated() {
278
- _this.interpreterUsers = _this.getInterpreterUsers('onInterpreterStateUpdated');
279
- _this.interpreter = _this.getInterpreter();
280
- var updatedInterpreterState = _this.getInterpreterState();
281
- if (!_this.interpreterState && updatedInterpreterState) {
282
- _this.setInitShowGuide(true);
283
- }
284
- _this.interpreterState = updatedInterpreterState;
285
- }
286
- });
287
- this._userControl.addObserver(this._userObserver);
288
- this._roomControl.addObserver(this._roomObserver);
289
- this._streamControl.addObserver({
290
- onStreamsAdded: this._handleStreamsAddedOrUpdated,
291
- onStreamsUpdated: this._handleStreamsAddedOrUpdated,
292
- onStreamsRemoved: this._handleStreamsAddedOrUpdated
293
- });
294
- this._roomStore.addObserver({
295
- onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
296
- _this._waitingRoomControl = roomControl;
297
- var waitingRoomUserControl = roomControl.getUserControl();
298
- waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
299
- _this.newMessageCount = (0, _defineProperty2["default"])({}, _constant.RoomType.WAITING_ROOM, 0);
300
- }
301
- });
302
- this._uiEventStore.addObserver(this._uiEventObserver);
303
- this._deviceStore.addObserver({
304
- onMicrophoneChanged: function onMicrophoneChanged(microphoneId) {
305
- _this.connectType = microphoneId ? _deviceStore.ConnectType.COMPUTER : _deviceStore.ConnectType.NONE;
306
- }
307
- });
308
- this._observer = {
309
- onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate.bind(this)
235
+ this._screenObserver = {
236
+ onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate
310
237
  };
238
+ this._userControl.addObserver(this._userObserver);
239
+ this._roomControl.addObserver(this._mainRoomObserver);
240
+ this._streamControl.addObserver(this._streamObserver);
241
+ this._eventProvider.addObserver(this._uiEventObserver);
242
+ if (this._roomType === _type5.FcrRoomType.Mainroom) {
243
+ this._interpreterControl = this._roomControl.getInterpreterControl();
244
+ this._interpreterControl.addObserver(this._interpreterObserver);
245
+ this._roomProvider.addObserver(this._roomObserver);
246
+ this._interpreterProvider.addObserver(this._interpreterProviderObserver);
247
+ }
311
248
  this._disposers.push((0, _mobx.reaction)(function () {
312
249
  return _this.cloudRecordingState;
313
250
  }, function (state) {
@@ -318,13 +255,43 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
318
255
  message = (0, _i18n.transI18n)('fmt_actionbar_button_disable');
319
256
  }
320
257
  if (message) {
321
- _this._uiEventStore.showToast({
258
+ _this._messageProvider.showToast({
322
259
  type: 'normal',
323
260
  message: (0, _i18n.transI18n)('fmt_actionbar_tips_cloudrecording_already', {
324
261
  reason1: message
325
262
  })
326
263
  });
327
264
  }
265
+ }), (0, _mobx.reaction)(function () {
266
+ return _this.chatVisible;
267
+ }, function (chatVisible) {
268
+ if (chatVisible) {
269
+ _this._handleChatVisible(true);
270
+ } else {
271
+ _this._handleChatVisible(false);
272
+ }
273
+ }),
274
+ // reaction(
275
+ // () => this._sharedWaitingRoomDataSource.totalWaitingRoomUser,
276
+ // (totalWaitingRoomUser) => {
277
+ // if (totalWaitingRoomUser === 0) {
278
+ // this.newMessageCount = {
279
+ // ...this.newMessageCount,
280
+ // [FcrRoomType.Waitingroom]: 0,
281
+ // };
282
+ // }
283
+ // },
284
+ // ),
285
+ (0, _mobx.reaction)(function () {
286
+ return _this.newMessageCount;
287
+ }, function (count) {
288
+ if (count[_type5.FcrRoomType.Mainroom] && count[_type5.FcrRoomType.Mainroom] > 0) {
289
+ _this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
290
+ _this.showNewMessageTooltip();
291
+ _this._newMessageTooltipTimer = window.setTimeout(function () {
292
+ _this.hideNewMessageTooltip();
293
+ }, 4000);
294
+ }
328
295
  }));
329
296
  }
330
297
  return (0, _createClass2["default"])(ActionBarStore, [{
@@ -344,7 +311,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
344
311
  _classPrivateFieldSet(_B, this, v);
345
312
  }
346
313
  }, {
347
- key: "newMessageCount",
314
+ key: "totalUser",
348
315
  get: function get() {
349
316
  return _classPrivateFieldGet(_C, this);
350
317
  },
@@ -352,7 +319,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
352
319
  _classPrivateFieldSet(_C, this, v);
353
320
  }
354
321
  }, {
355
- key: "latestMessage",
322
+ key: "totalWaitingRoomUser",
356
323
  get: function get() {
357
324
  return _classPrivateFieldGet(_D, this);
358
325
  },
@@ -360,7 +327,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
360
327
  _classPrivateFieldSet(_D, this, v);
361
328
  }
362
329
  }, {
363
- key: "totalUser",
330
+ key: "liveStreamingState",
364
331
  get: function get() {
365
332
  return _classPrivateFieldGet(_E, this);
366
333
  },
@@ -368,7 +335,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
368
335
  _classPrivateFieldSet(_E, this, v);
369
336
  }
370
337
  }, {
371
- key: "totalWaitingRoomUser",
338
+ key: "currentMenuIs",
372
339
  get: function get() {
373
340
  return _classPrivateFieldGet(_F, this);
374
341
  },
@@ -376,7 +343,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
376
343
  _classPrivateFieldSet(_F, this, v);
377
344
  }
378
345
  }, {
379
- key: "liveStreamingState",
346
+ key: "cloudRecordingState",
380
347
  get: function get() {
381
348
  return _classPrivateFieldGet(_G, this);
382
349
  },
@@ -384,7 +351,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
384
351
  _classPrivateFieldSet(_G, this, v);
385
352
  }
386
353
  }, {
387
- key: "currentMenuIs",
354
+ key: "localUserRole",
388
355
  get: function get() {
389
356
  return _classPrivateFieldGet(_H, this);
390
357
  },
@@ -392,7 +359,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
392
359
  _classPrivateFieldSet(_H, this, v);
393
360
  }
394
361
  }, {
395
- key: "cloudRecordingState",
362
+ key: "localUser",
396
363
  get: function get() {
397
364
  return _classPrivateFieldGet(_I, this);
398
365
  },
@@ -400,7 +367,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
400
367
  _classPrivateFieldSet(_I, this, v);
401
368
  }
402
369
  }, {
403
- key: "localUserRole",
370
+ key: "connectionSettingVisible",
404
371
  get: function get() {
405
372
  return _classPrivateFieldGet(_J, this);
406
373
  },
@@ -408,7 +375,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
408
375
  _classPrivateFieldSet(_J, this, v);
409
376
  }
410
377
  }, {
411
- key: "localUser",
378
+ key: "folded",
412
379
  get: function get() {
413
380
  return _classPrivateFieldGet(_K, this);
414
381
  },
@@ -416,7 +383,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
416
383
  _classPrivateFieldSet(_K, this, v);
417
384
  }
418
385
  }, {
419
- key: "connectionSettingVisible",
386
+ key: "boardOwnerUser",
420
387
  get: function get() {
421
388
  return _classPrivateFieldGet(_L, this);
422
389
  },
@@ -424,7 +391,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
424
391
  _classPrivateFieldSet(_L, this, v);
425
392
  }
426
393
  }, {
427
- key: "connectType",
394
+ key: "hasScreenShare",
428
395
  get: function get() {
429
396
  return _classPrivateFieldGet(_M, this);
430
397
  },
@@ -432,7 +399,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
432
399
  _classPrivateFieldSet(_M, this, v);
433
400
  }
434
401
  }, {
435
- key: "folded",
402
+ key: "showArrow",
436
403
  get: function get() {
437
404
  return _classPrivateFieldGet(_N, this);
438
405
  },
@@ -440,7 +407,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
440
407
  _classPrivateFieldSet(_N, this, v);
441
408
  }
442
409
  }, {
443
- key: "boardOwnerUser",
410
+ key: "phoneMicEnabled",
444
411
  get: function get() {
445
412
  return _classPrivateFieldGet(_O, this);
446
413
  },
@@ -448,7 +415,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
448
415
  _classPrivateFieldSet(_O, this, v);
449
416
  }
450
417
  }, {
451
- key: "hasScreenShare",
418
+ key: "chatTabIndex",
452
419
  get: function get() {
453
420
  return _classPrivateFieldGet(_P, this);
454
421
  },
@@ -456,7 +423,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
456
423
  _classPrivateFieldSet(_P, this, v);
457
424
  }
458
425
  }, {
459
- key: "showArrow",
426
+ key: "popoverOpened",
460
427
  get: function get() {
461
428
  return _classPrivateFieldGet(_Q, this);
462
429
  },
@@ -464,7 +431,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
464
431
  _classPrivateFieldSet(_Q, this, v);
465
432
  }
466
433
  }, {
467
- key: "phoneMicEnabled",
434
+ key: "stateBarLeaveMeeting",
468
435
  get: function get() {
469
436
  return _classPrivateFieldGet(_R, this);
470
437
  },
@@ -472,7 +439,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
472
439
  _classPrivateFieldSet(_R, this, v);
473
440
  }
474
441
  }, {
475
- key: "isNewWaitingRoomUserEnter",
442
+ key: "isPstnUser",
476
443
  get: function get() {
477
444
  return _classPrivateFieldGet(_S, this);
478
445
  },
@@ -480,7 +447,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
480
447
  _classPrivateFieldSet(_S, this, v);
481
448
  }
482
449
  }, {
483
- key: "chatTabIndex",
450
+ key: "interpreterUsersOffline",
484
451
  get: function get() {
485
452
  return _classPrivateFieldGet(_T, this);
486
453
  },
@@ -488,77 +455,78 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
488
455
  _classPrivateFieldSet(_T, this, v);
489
456
  }
490
457
  }, {
491
- key: "popoverOpened",
458
+ key: "interpreter",
492
459
  get: function get() {
493
- return _classPrivateFieldGet(_U, this);
494
- },
495
- set: function set(v) {
496
- _classPrivateFieldSet(_U, this, v);
460
+ return this._sharedInterpreterDataSource.interpreterInfo;
497
461
  }
498
462
  }, {
499
- key: "stateBarLeaveMeeting",
463
+ key: "interpreterUsers",
500
464
  get: function get() {
501
- return _classPrivateFieldGet(_V, this);
502
- },
503
- set: function set(v) {
504
- _classPrivateFieldSet(_V, this, v);
465
+ return this._sharedInterpreterDataSource.interpreterUsers;
505
466
  }
506
467
  }, {
507
- key: "isPstnUser",
468
+ key: "interpreterState",
508
469
  get: function get() {
509
- return _classPrivateFieldGet(_W, this);
510
- },
511
- set: function set(v) {
512
- _classPrivateFieldSet(_W, this, v);
470
+ return this._sharedInterpreterDataSource.interpreterOff;
513
471
  }
514
472
  }, {
515
- key: "interpreter",
473
+ key: "outputLanguage",
516
474
  get: function get() {
517
- return _classPrivateFieldGet(_X, this);
518
- },
519
- set: function set(v) {
520
- _classPrivateFieldSet(_X, this, v);
475
+ return this._sharedInterpreterDataSource.outputLanguage;
521
476
  }
522
477
  }, {
523
- key: "interpreterState",
478
+ key: "subscribeLanguageList",
524
479
  get: function get() {
525
- return _classPrivateFieldGet(_Y, this);
526
- },
527
- set: function set(v) {
528
- _classPrivateFieldSet(_Y, this, v);
480
+ return this._sharedInterpreterDataSource.subscribeLanguageList;
529
481
  }
530
482
  }, {
531
- key: "interpreterUsers",
483
+ key: "preSubscribeLanguageList",
532
484
  get: function get() {
533
- return _classPrivateFieldGet(_Z, this);
534
- },
535
- set: function set(v) {
536
- _classPrivateFieldSet(_Z, this, v);
485
+ return this._sharedInterpreterDataSource.preSubscribeLanguageList;
537
486
  }
538
487
  }, {
539
- key: "securityStore",
488
+ key: "subscribeLanguageOptionList",
540
489
  get: function get() {
541
- return _classPrivateFieldGet(_a, this);
542
- },
543
- set: function set(v) {
544
- _classPrivateFieldSet(_a, this, v);
490
+ return this._sharedInterpreterDataSource.subscribeLanguageOptionList;
545
491
  }
546
492
  }, {
547
- key: "interpreterUsersOffline",
493
+ key: "isNewWaitingRoomUserEnter",
548
494
  get: function get() {
549
- return _classPrivateFieldGet(_b, this);
550
- },
551
- set: function set(v) {
552
- _classPrivateFieldSet(_b, this, v);
495
+ return this._sharedWaitingRoomDataSource.unReadState;
553
496
  }
554
497
  }, {
555
- key: "initShowGuide",
498
+ key: "privilegeProvider",
556
499
  get: function get() {
557
- return _classPrivateFieldGet(_c, this);
558
- },
559
- set: function set(v) {
560
- _classPrivateFieldSet(_c, this, v);
500
+ return this._privilegeProvider;
501
+ }
502
+ }, {
503
+ key: "asideLayout",
504
+ get: function get() {
505
+ var _this$_sharedLayoutDa;
506
+ return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
561
507
  }
508
+ }, {
509
+ key: "chatRenderAt",
510
+ get: function get() {
511
+ return this._sharedLayoutDataSource.chatRenderAt;
512
+ }
513
+ }, {
514
+ key: "participantsRenderAt",
515
+ get: function get() {
516
+ return this._sharedLayoutDataSource.participantsRenderAt;
517
+ }
518
+ }, {
519
+ key: "participantVisible",
520
+ get: function get() {
521
+ return this._sharedLayoutDataSource.asideLayout.participant;
522
+ }
523
+ }, {
524
+ key: "chatVisible",
525
+ get: function get() {
526
+ return this._sharedLayoutDataSource.asideLayout.chat;
527
+ }
528
+
529
+ // REPEAT:Users
562
530
  }, {
563
531
  key: "remoteUsers",
564
532
  get: function get() {
@@ -570,190 +538,180 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
570
538
  }, {
571
539
  key: "hasStartScreenSharePermission",
572
540
  get: function get() {
573
- return this._securityStore.hasStartScreenSharePermission();
541
+ return this._privilegeProvider.hasStartScreenSharePermission();
542
+ }
543
+ }, {
544
+ key: "hasStopScreenSharePermission",
545
+ get: function get() {
546
+ var _this$_sharingOwnerUs;
547
+ return this.hasScreenShare && this.hasEnableStartScreenSharePermission && this._sharingOwnerUser && this.localUser.userId !== ((_this$_sharingOwnerUs = this._sharingOwnerUser) === null || _this$_sharingOwnerUs === void 0 ? void 0 : _this$_sharingOwnerUs.userId);
548
+ }
549
+ }, {
550
+ key: "sharingOwnerUser",
551
+ get: function get() {
552
+ return this._sharingOwnerUser;
553
+ }
554
+ }, {
555
+ key: "hasEnableStartScreenSharePermission",
556
+ get: function get() {
557
+ var _this$sharingOwnerUse;
558
+ return this._privilegeProvider.hasStopScreenSharePermission((_this$sharingOwnerUse = this.sharingOwnerUser) === null || _this$sharingOwnerUse === void 0 ? void 0 : _this$sharingOwnerUse.userRole);
574
559
  }
575
560
  }, {
576
561
  key: "hasStartLiveStreamingPermission",
577
562
  get: function get() {
578
- return this._securityStore.hasStartLiveStreamingPermission();
563
+ return this._privilegeProvider.hasStartLiveStreamingPermission();
579
564
  }
580
565
  }, {
581
566
  key: "hasEnableStartAudioPermission",
582
567
  get: function get() {
583
- return this._securityStore.hasEnableStartAudioPermission();
568
+ return this._privilegeProvider.hasEnableStartAudioPermission();
584
569
  }
585
570
  }, {
586
571
  key: "hasEnableChangeNamePermission",
587
572
  get: function get() {
588
- return this._securityStore.hasEnableChangeNamePermission();
573
+ return this._privilegeProvider.hasEnableChangeNamePermission();
589
574
  }
590
575
  }, {
591
576
  key: "hasEnableStartVideoPermission",
592
577
  get: function get() {
593
- return this._securityStore.hasEnableStartVideoPermission();
578
+ return this._privilegeProvider.hasEnableStartVideoPermission();
594
579
  }
595
580
  }, {
596
581
  key: "hasLockRoomPermission",
597
582
  get: function get() {
598
- return this._securityStore.hasLockRoomPermission();
583
+ return this._privilegeProvider.hasLockRoomPermission();
599
584
  }
600
585
  }, {
601
586
  key: "hasEnableJoinWithAudioPermission",
602
587
  get: function get() {
603
- return this._securityStore.hasEnableJoinWithAudioPermission();
588
+ return this._privilegeProvider.hasEnableJoinWithAudioPermission();
604
589
  }
605
590
  }, {
606
591
  key: "hasWaitingRoomPermission",
607
592
  get: function get() {
608
- return this._securityStore.hasWaitingRoomPermission();
593
+ return this._privilegeProvider.hasWaitingRoomPermission();
609
594
  }
610
595
  }, {
611
596
  key: "hasWatermarkEnablePermission",
612
597
  get: function get() {
613
- return this._securityStore.hasWatermarkEnablePermission();
598
+ return this._privilegeProvider.hasWatermarkEnablePermission();
614
599
  }
615
600
  }, {
616
601
  key: "hasWatermarkDisablePermission",
617
602
  get: function get() {
618
- return this._securityStore.hasWatermarkDisablePermission();
603
+ return this._privilegeProvider.hasWatermarkDisablePermission();
619
604
  }
620
605
  }, {
621
606
  key: "hasEnableStartSharePermission",
622
607
  get: function get() {
623
- return this._securityStore.hasEnableStartScreenSharePermission();
608
+ return this._privilegeProvider.hasEnableStartScreenSharePermission();
624
609
  }
625
610
  }, {
626
611
  key: "hasAllowWriteBoardPermission",
627
612
  get: function get() {
628
- return this._securityStore.hasAllowWriteBoardPermission();
613
+ return this._privilegeProvider.hasAllowWriteBoardPermission();
629
614
  }
630
615
  }, {
631
616
  key: "hasCloseWriteBoardPermission",
632
617
  get: function get() {
633
- return this._securityStore.hasCloseBoardPermission();
618
+ var _this$boardOwnerUser;
619
+ return this._privilegeProvider.hasCloseBoardPermission((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
634
620
  }
635
621
  }, {
636
622
  key: "hasAllowScreenShareAndBoardPermission",
637
623
  get: function get() {
638
- return this._securityStore.hasAllowScreenShareAndBoardPermission();
624
+ return this._privilegeProvider.hasAllowScreenShareAndBoardPermission();
639
625
  }
640
626
  }, {
641
627
  key: "hasAllowChatPermission",
642
628
  get: function get() {
643
- return this._securityStore.hasPermissionToControlAllowSendAll();
629
+ return this._privilegeProvider.hasPermissionToControlAllowSendAll();
644
630
  }
645
631
  }, {
646
632
  key: "hasStartCloudRecordingPermission",
647
633
  get: function get() {
648
- return this._securityStore.hasStartCloudRecordingPermission();
634
+ return this._privilegeProvider.hasStartCloudRecordingPermission();
649
635
  }
650
636
  }, {
651
637
  key: "hasAssignHostBeforeLeavingPermission",
652
638
  get: function get() {
653
- return this._securityStore.hasAssignHostBeforeLeavingPermission(this.localUserRole);
639
+ return this._privilegeProvider.hasAssignHostBeforeLeavingPermission(this.localUserRole);
654
640
  }
655
641
  }, {
656
642
  key: "hasEndRoomPermission",
657
643
  get: function get() {
658
- return this._securityStore.hasEndRoomPermission();
644
+ return this._privilegeProvider.hasEndRoomPermission();
659
645
  }
660
646
  }, {
661
647
  key: "isScreenShareAndBoardEnabled",
662
648
  get: function get() {
663
- return this._securityStore.allowScreenShareAndBoard();
649
+ return this._privilegeProvider.allowScreenShareAndBoard();
664
650
  }
665
651
  }, {
666
652
  key: "isBoardWriteEnabled",
667
653
  get: function get() {
668
- return this._securityStore.allowBoardWrite();
654
+ return this._privilegeProvider.allowBoardWrite();
669
655
  }
670
656
  }, {
671
657
  key: "isWaterMarkEnabled",
672
658
  get: function get() {
673
- return this._securityStore.isWaterMarkEnabled();
659
+ return this._privilegeProvider.isWaterMarkEnabled();
674
660
  }
675
661
  }, {
676
662
  key: "isMulti",
677
663
  get: function get() {
678
- return this._securityStore.isMulti();
664
+ return this._privilegeProvider.isMulti();
679
665
  }
680
666
  }, {
681
667
  key: "hasEnableInterpreterPermission",
682
668
  get: function get() {
683
- return this._securityStore.hasEnableInterpreterPermission();
669
+ return this._privilegeProvider.hasEnableInterpreterPermission();
684
670
  }
685
671
  }, {
686
672
  key: "hasDisableInterpreterPermission",
687
673
  get: function get() {
688
- return this._securityStore.hasDisableInterpreterPermission();
689
- }
690
- }, {
691
- key: "cameraEnabled",
692
- get: function get() {
693
- return this._deviceStore.cameraEnabled;
694
- }
695
- }, {
696
- key: "cameraId",
697
- get: function get() {
698
- return this._deviceStore.cameraId;
699
- }
700
- }, {
701
- key: "cameraList",
702
- get: function get() {
703
- return this._deviceStore.cameraList;
674
+ return this._privilegeProvider.hasDisableInterpreterPermission();
704
675
  }
705
676
  }, {
706
677
  key: "microphoneEnabled",
707
678
  get: function get() {
708
- return this._deviceStore.microphoneEnabled;
709
- }
710
- }, {
711
- key: "microphoneId",
712
- get: function get() {
713
- return this._deviceStore.microphoneId;
714
- }
715
- }, {
716
- key: "microphoneVolumeLevel",
717
- get: function get() {
718
- return this._deviceStore.microphoneVolumeLevel;
719
- }
720
- }, {
721
- key: "microphoneList",
722
- get: function get() {
723
- return this._deviceStore.microphoneList;
724
- }
725
- }, {
726
- key: "speakerId",
727
- get: function get() {
728
- return this._deviceStore.speakerId;
729
- }
730
- }, {
731
- key: "speakerList",
732
- get: function get() {
733
- return this._deviceStore.speakerList;
679
+ return this._deviceProvider.microphoneEnabled;
734
680
  }
735
681
  }, {
736
682
  key: "allNewMessage",
737
683
  get: function get() {
738
- return Object.values(this.newMessageCount).reduce(function (a, b) {
684
+ return Object.values(this._sharedChatDataSource.newMessageCount).reduce(function (a, b) {
739
685
  return a + b;
740
686
  }, 0);
741
687
  }
742
688
  }, {
743
689
  key: "isMainRoom",
744
690
  get: function get() {
745
- var _this$_roomControl$ge;
746
- return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type6.FcrRoomType.Mainroom;
691
+ return this._roomType === _type5.FcrRoomType.Mainroom;
747
692
  }
748
693
  }, {
749
694
  key: "hasAllowChangeNamePromission",
750
695
  get: function get() {
751
- return this._securityStore.hasAllowChangeNamePermission();
696
+ return this._privilegeProvider.hasAllowChangeNamePermission();
752
697
  }
753
698
  }, {
754
699
  key: "hasDisallowChangeNamePromission",
755
700
  get: function get() {
756
- return this._securityStore.hasDisallowChangeNamePermission();
701
+ return this._privilegeProvider.hasDisallowChangeNamePermission();
702
+ }
703
+ }, {
704
+ key: "newMessageCount",
705
+ get: function get() {
706
+ return this._sharedChatDataSource.newMessageCount;
707
+ },
708
+ set: function set(value) {
709
+ this._sharedChatDataSource.newMessageCount = value;
710
+ }
711
+ }, {
712
+ key: "latestMessage",
713
+ get: function get() {
714
+ return this._sharedChatDataSource.latestMessage;
757
715
  }
758
716
  }, {
759
717
  key: "pauseCloudRecording",
@@ -789,7 +747,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
789
747
  }, {
790
748
  key: "toggleLayoutBarLock",
791
749
  value: function toggleLayoutBarLock(payload) {
792
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK, payload);
750
+ this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, payload);
793
751
  }
794
752
  }, {
795
753
  key: "showNewMessageTooltip",
@@ -804,47 +762,28 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
804
762
  }, {
805
763
  key: "switchMenu",
806
764
  value: function switchMenu(value) {
807
- this.currentMenuIs = value || MoreMenuType.DEFAULT;
765
+ this.currentMenuIs = value || _enums2.MoreMenuType.DEFAULT;
808
766
  }
809
767
  }, {
810
768
  key: "isLocked",
811
769
  get: function get() {
812
- return this._securityStore.isLockRoomEnabled();
770
+ return this._privilegeProvider.isLockRoomEnabled();
813
771
  }
814
772
  }, {
815
773
  key: "isWaitingRoomEnabled",
816
774
  value: function isWaitingRoomEnabled() {
817
- return this._securityStore.isWaitingRoomEnabled();
775
+ return this._privilegeProvider.isWaitingRoomEnabled();
818
776
  }
819
777
  }, {
820
778
  key: "isAllowJoinWithAudioEnabled",
821
779
  value: function isAllowJoinWithAudioEnabled() {
822
- return this._securityStore.allowJoinWithMuteAudio();
823
- }
824
- }, {
825
- key: "enableCamera",
826
- value: function enableCamera(enable) {
827
- this._deviceStreamStore.enableCameraWithStream(enable);
828
- }
829
- }, {
830
- key: "setCameraId",
831
- value: function setCameraId(cameraId) {
832
- this._deviceStore.setCameraId(cameraId);
780
+ return this._privilegeProvider.allowJoinWithMuteAudio();
833
781
  }
834
782
  }, {
835
783
  key: "enableMicrophone",
836
784
  value: function enableMicrophone(enable) {
837
- this._deviceStreamStore.enableMicrophoneWithStream(enable);
838
- }
839
- }, {
840
- key: "setMicrophoneId",
841
- value: function setMicrophoneId(microphoneId) {
842
- this._deviceStore.setMicrophoneId(microphoneId);
843
- }
844
- }, {
845
- key: "setSpeakerId",
846
- value: function setSpeakerId(speakerId) {
847
- this._deviceStore.setSpeakerId(speakerId);
785
+ this._deviceStreamProvider.enableMicrophoneWithPreCheck(enable);
786
+ this._sharedDevicePrivilegeDataSource.setShouldIncludeMicrophone(true);
848
787
  }
849
788
  }, {
850
789
  key: "setAllowBoardWrite",
@@ -855,7 +794,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
855
794
  while (1) switch (_context.prev = _context.next) {
856
795
  case 0:
857
796
  write = this.isBoardWriteEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
858
- return _context.abrupt("return", this._securityStore.setAllowWriteBoard(write));
797
+ return _context.abrupt("return", this._privilegeProvider.setAllowWriteBoard(write));
859
798
  case 2:
860
799
  case "end":
861
800
  return _context.stop();
@@ -871,32 +810,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
871
810
  key: "setAllowScreenShare",
872
811
  value: function setAllowScreenShare() {
873
812
  var enable = this.isScreenShareAndBoardEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
874
- return this._securityStore.allowShare(enable);
875
- }
876
- }, {
877
- key: "closeBoard",
878
- value: function closeBoard() {
879
- this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
880
- }
881
- }, {
882
- key: "assignHost",
883
- value: function assignHost(user) {
884
- this._userControl.updateRemoteUserRole(user.userId, _type.FcrUserRole.HOST);
885
- this.leave();
886
- }
887
- }, {
888
- key: "leave",
889
- value: function leave() {
890
- var _this$_roomControl$ge2;
891
- this._uiEventStore.sendEvent(_constant.UIAction.EXIT_ROOM, {
892
- reason: _type2.FcrUIExitReason.LEAVE_ROOM,
893
- roomType: (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType
894
- });
895
- }
896
- }, {
897
- key: "keepPhoneAudioConnection",
898
- value: function keepPhoneAudioConnection() {
899
- this._streamControl.splitAudioStream(this._userControl.getLocalUser().userId);
813
+ return this._privilegeProvider.allowShare(enable);
900
814
  }
901
815
  }, {
902
816
  key: "setPopoverOpened",
@@ -914,31 +828,9 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
914
828
  }, {
915
829
  key: "getRoomType",
916
830
  value: function getRoomType() {
917
- var _this$_roomControl$ge3;
918
- return (_this$_roomControl$ge3 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge3 === void 0 ? void 0 : _this$_roomControl$ge3.roomType;
831
+ var _this$_roomControl$ge2;
832
+ return (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType;
919
833
  }
920
- }, {
921
- key: "end",
922
- value: function () {
923
- var _end = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
924
- return _regenerator["default"].wrap(function _callee2$(_context2) {
925
- while (1) switch (_context2.prev = _context2.next) {
926
- case 0:
927
- _context2.next = 2;
928
- return this._roomControl.close();
929
- case 2:
930
- this.leave();
931
- case 3:
932
- case "end":
933
- return _context2.stop();
934
- }
935
- }, _callee2, this);
936
- }));
937
- function end() {
938
- return _end.apply(this, arguments);
939
- }
940
- return end;
941
- }()
942
834
  }, {
943
835
  key: "release",
944
836
  value: function release() {
@@ -946,165 +838,175 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
946
838
  this._disposers.forEach(function (dispose) {
947
839
  return dispose();
948
840
  });
841
+ this._disposers = [];
949
842
  this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
950
- (_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this._observer);
843
+ (_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this._screenObserver);
844
+ this._userControl.removeObserver(this._userObserver);
845
+ this._roomControl.removeObserver(this._mainRoomObserver);
846
+ this._streamControl.removeObserver(this._streamObserver);
847
+ this._eventProvider.removeObserver(this._uiEventObserver);
848
+ if (this._roomType === _type5.FcrRoomType.Mainroom) {
849
+ this._interpreterControl = this._roomControl.getInterpreterControl();
850
+ this._interpreterControl.removeObserver(this._interpreterObserver);
851
+ this._roomProvider.removeObserver(this._roomObserver);
852
+ this._interpreterProvider.removeObserver(this._interpreterProviderObserver);
853
+ }
951
854
  }
952
855
  }, {
953
856
  key: "allowJoinWithMuteAudio",
954
857
  value: function allowJoinWithMuteAudio() {
955
- return this._securityStore.allowJoinWithMuteAudio();
858
+ return this._privilegeProvider.allowJoinWithMuteAudio();
956
859
  }
957
860
  }, {
958
861
  key: "setAllowJoinWithMuteAudio",
959
862
  value: function setAllowJoinWithMuteAudio(enable) {
960
- return this._securityStore.setAllowJoinWithMuteAudio(enable);
863
+ return this._privilegeProvider.setAllowJoinWithMuteAudio(enable);
961
864
  }
962
865
  }, {
963
866
  key: "isLockRoomEnabled",
964
867
  value: function isLockRoomEnabled() {
965
- return this._securityStore.isLockRoomEnabled();
868
+ return this._privilegeProvider.isLockRoomEnabled();
966
869
  }
967
870
  }, {
968
871
  key: "setLockRoomEnabled",
969
872
  value: function setLockRoomEnabled(enable) {
970
- return this._securityStore.setLockRoomEnabled(enable);
873
+ return this._privilegeProvider.setLockRoomEnabled(enable);
971
874
  }
972
875
  }, {
973
876
  key: "setAllowShareScreen",
974
877
  value: function setAllowShareScreen(enable) {
975
- return this._securityStore.setAllowShareScreen(enable);
878
+ return this._privilegeProvider.setAllowShareScreen(enable);
976
879
  }
977
880
  }, {
978
881
  key: "allowShareScreen",
979
882
  value: function allowShareScreen() {
980
- return this._securityStore.allowShareScreen();
883
+ return this._privilegeProvider.allowShareScreen();
981
884
  }
982
885
  }, {
983
886
  key: "allowWriteBoard",
984
887
  value: function allowWriteBoard() {
985
- return this._securityStore.hasAllowWriteBoardPermission();
888
+ return this._privilegeProvider.hasAllowWriteBoardPermission();
986
889
  }
987
890
  }, {
988
891
  key: "allowChat",
989
892
  value: function allowChat() {
990
- return this._securityStore.allowChat();
893
+ return this._privilegeProvider.allowChat();
991
894
  }
992
895
  }, {
993
896
  key: "setAllowChat",
994
897
  value: function setAllowChat(enable) {
995
- return this._securityStore.setAllowChat(enable);
898
+ return this._privilegeProvider.setAllowChat(enable);
996
899
  }
997
900
  }, {
998
901
  key: "allowUnmuteSelfAudio",
999
902
  value: function allowUnmuteSelfAudio() {
1000
- return this._securityStore.allowUnmuteSelfAudio();
903
+ return this._privilegeProvider.allowUnmuteSelfAudio();
1001
904
  }
1002
905
  }, {
1003
906
  key: "setAllowUnmuteSelfAudio",
1004
907
  value: function setAllowUnmuteSelfAudio(enable) {
1005
- return this._securityStore.setAllowUnmuteSelfAudio(enable);
908
+ return this._privilegeProvider.setAllowUnmuteSelfAudio(enable);
1006
909
  }
1007
910
  }, {
1008
911
  key: "allowUnmuteSelfVideo",
1009
912
  value: function allowUnmuteSelfVideo() {
1010
- return this._securityStore.allowUnmuteSelfVideo();
913
+ return this._privilegeProvider.allowUnmuteSelfVideo();
1011
914
  }
1012
915
  }, {
1013
916
  key: "setAllowUnmuteSelfVideo",
1014
917
  value: function setAllowUnmuteSelfVideo(enable) {
1015
- return this._securityStore.setAllowUnmuteSelfVideo(enable);
918
+ return this._privilegeProvider.setAllowUnmuteSelfVideo(enable);
1016
919
  }
1017
920
  }, {
1018
921
  key: "allowChangeName",
1019
922
  value: function allowChangeName() {
1020
- return this._securityStore.allowChangeSelfName();
923
+ return this._privilegeProvider.allowChangeSelfName();
1021
924
  }
1022
925
  }, {
1023
926
  key: "setAllowChangeName",
1024
927
  value: function setAllowChangeName(enable) {
1025
- return this._securityStore.setAllowChangeSelfName(enable);
928
+ return this._privilegeProvider.setAllowChangeSelfName(enable);
1026
929
  }
1027
930
  }, {
1028
931
  key: "toggleChat",
1029
932
  value: function toggleChat() {
1030
- !this._chatVisible || (0, _env.isElectron)() && this._chatRenderAt === 'dialog' ? this.openChat() : this.closeChat();
933
+ !this.chatVisible || (0, _env.isElectron)() && this.chatRenderAt === 'dialog' ? this.openChat() : this.closeChat();
1031
934
  }
1032
935
  }, {
1033
936
  key: "openChat",
1034
937
  value: function openChat() {
1035
- if (this._chatRenderAt === 'aside') {
1036
- this._uiEventStore.updateAside({
1037
- chat: true
1038
- });
938
+ if (this.chatRenderAt === 'aside') {
939
+ this._sharedLayoutDataSource.setChatRenderAt('aside');
1039
940
  }
1040
- if (this._chatRenderAt === 'dialog') {
1041
- this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
941
+ if (this.chatRenderAt === 'dialog') {
942
+ this._sharedLayoutDataSource.setChatRenderAt('dialog');
943
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
1042
944
  }
945
+ this._sharedLayoutDataSource.setAsideLayout({
946
+ chat: true
947
+ });
1043
948
  }
1044
949
  }, {
1045
950
  key: "closeChat",
1046
951
  value: function closeChat() {
1047
- if (!this._chatVisible) return;
1048
- if (this._chatRenderAt === 'aside') {
1049
- this._uiEventStore.updateAside({
1050
- chat: false
1051
- });
1052
- }
1053
- if (this._chatRenderAt === 'dialog') {
952
+ if (!this.chatVisible) return;
953
+ if (this.chatRenderAt === 'dialog') {
1054
954
  var chatDialogId = '';
1055
955
  this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1056
- if (dialogKey === _constant.DialogKey.CHAT) {
956
+ if (dialogKey === _constant.FcrUIDialogKey.CHAT) {
1057
957
  chatDialogId = dialogId;
1058
958
  }
1059
959
  });
1060
- chatDialogId && this._uiEventStore.closeDialog(chatDialogId);
960
+ chatDialogId && this._dialogProvider.closeDialog(chatDialogId);
1061
961
  }
962
+ this._sharedLayoutDataSource.setAsideLayout({
963
+ chat: false
964
+ });
1062
965
  }
1063
966
  }, {
1064
967
  key: "toggleParticipants",
1065
968
  value: function toggleParticipants() {
1066
- !this._participantVisible || (0, _env.isElectron)() && this._participantsRenderAt === 'dialog' ? this.openParticipants() : this.closeParticipants();
969
+ !this.participantVisible || (0, _env.isElectron)() && this.participantsRenderAt === 'dialog' ? this.openParticipants() : this.closeParticipants();
1067
970
  }
1068
971
  }, {
1069
972
  key: "openParticipants",
1070
973
  value: function openParticipants() {
1071
- if (this._participantsRenderAt === 'aside') {
1072
- this._uiEventStore.updateAside({
1073
- participant: true
1074
- });
1075
- }
1076
- if (this._participantsRenderAt === 'dialog') {
1077
- this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
1078
- }
1079
- if (this._participantVisible) {
1080
- if (this._participantTab === _constant.RoomType.WAITING_ROOM) {
1081
- this.isNewWaitingRoomUserEnter = false;
1082
- }
974
+ if (this.participantsRenderAt === 'dialog') {
975
+ this._dialogProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
1083
976
  }
977
+ this._sharedLayoutDataSource.setAsideLayout({
978
+ participant: true
979
+ });
980
+ // if (this._participantVisible) {
981
+ // if (this._participantTab === FcrRoomType.Waitingroom) {
982
+ // this.isNewWaitingRoomUserEnter = false;
983
+ // }
984
+ // }
1084
985
  }
1085
986
  }, {
1086
987
  key: "closeParticipants",
1087
988
  value: function closeParticipants() {
1088
- if (!this._participantVisible) return;
1089
- if (this._participantsRenderAt === 'aside') {
1090
- this._uiEventStore.updateAside({
1091
- participant: false
1092
- });
1093
- }
1094
- if (this._participantsRenderAt === 'dialog') {
989
+ if (!this.participantVisible) return;
990
+ if (this.participantsRenderAt === 'dialog') {
1095
991
  var participantDialogId = '';
1096
992
  this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1097
- if (dialogKey === _constant.DialogKey.PARTICIPANT) {
993
+ if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
1098
994
  participantDialogId = dialogId;
1099
995
  }
1100
996
  });
1101
- participantDialogId && this._uiEventStore.closeDialog(participantDialogId);
997
+ this._sharedLayoutDataSource.setAsideLayout({
998
+ participant: false
999
+ });
1000
+ participantDialogId && this._dialogProvider.closeDialog(participantDialogId);
1102
1001
  }
1002
+ this._sharedLayoutDataSource.setAsideLayout({
1003
+ participant: false
1004
+ });
1103
1005
  }
1104
1006
  }, {
1105
1007
  key: "openDeviceSettingDialog",
1106
1008
  value: function openDeviceSettingDialog(arg) {
1107
- this._uiEventStore.openDeviceSettingDialog(arg);
1009
+ this._dialogProvider.openDeviceSettingDialog(arg);
1108
1010
  }
1109
1011
  }, {
1110
1012
  key: "startScreenShare",
@@ -1112,28 +1014,33 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1112
1014
  console.log('performance: click button', new Date().getTime());
1113
1015
  // if (!this._interceptShareBoard()) return;
1114
1016
  if (!this._interceptShareScreen()) return;
1115
- this._uiEventStore.startShareScreen();
1017
+ this._eventProvider.startShareScreen();
1116
1018
  }
1117
1019
  }, {
1118
1020
  key: "openInterpreterDialog",
1119
1021
  value: function openInterpreterDialog() {
1120
- this._uiEventStore.sendEvent(_constant.UIAction.OPEN_INTERPRETER_DIALOG);
1022
+ this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_INTERPRETER_DIALOG);
1121
1023
  }
1122
1024
  }, {
1123
1025
  key: "openWhiteboard",
1124
1026
  value: function openWhiteboard() {
1125
1027
  if (!this._interceptShareBoard()) return;
1126
- this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
1028
+ this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
1127
1029
  }
1128
1030
  }, {
1129
1031
  key: "closeWhiteboard",
1130
1032
  value: function closeWhiteboard() {
1131
- this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
1033
+ this._eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_WHITEBOARD);
1034
+ }
1035
+ }, {
1036
+ key: "closeShareScreen",
1037
+ value: function closeShareScreen() {
1038
+ this._streamControl.removeScreenStream();
1132
1039
  }
1133
1040
  }, {
1134
1041
  key: "openLiveStreamingDialog",
1135
1042
  value: function openLiveStreamingDialog() {
1136
- this._liveStreamingDialogId = this._uiEventStore.openDialog(_constant.DialogKey.LIVE_STREAMING);
1043
+ this._dialogProvider.openDialog(_constant.FcrUIDialogKey.LIVE_STREAMING);
1137
1044
  this.toggleLayoutBarLock(true);
1138
1045
  }
1139
1046
  }, {
@@ -1144,7 +1051,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1144
1051
  }, {
1145
1052
  key: "openConnection",
1146
1053
  value: function openConnection(type) {
1147
- this._uiEventStore.openDialog(_constant.DialogKey.CONNECTION_GATEWAY, '', {
1054
+ this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONNECTION_GATEWAY, '', {
1148
1055
  type: type
1149
1056
  });
1150
1057
  }
@@ -1153,17 +1060,23 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1153
1060
  value: function closeConnection() {
1154
1061
  var connectionDialogId = '';
1155
1062
  this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1156
- if (dialogKey === _constant.DialogKey.CONNECTION_GATEWAY) {
1063
+ if (dialogKey === _constant.FcrUIDialogKey.CONNECTION_GATEWAY) {
1157
1064
  connectionDialogId = dialogId;
1158
1065
  }
1159
1066
  });
1160
- this._uiEventStore.closeDialog(connectionDialogId);
1067
+ this._dialogProvider.closeDialog(connectionDialogId);
1068
+ }
1069
+ }, {
1070
+ key: "_handleJoinWaitingRoom",
1071
+ value: function _handleJoinWaitingRoom(room) {
1072
+ this._waitingRoomControl = room;
1073
+ this.newMessageCount = (0, _defineProperty2["default"])({}, _type5.FcrRoomType.Waitingroom, 0);
1161
1074
  }
1162
1075
  }, {
1163
1076
  key: "toggleFold",
1164
1077
  value: function toggleFold() {
1165
1078
  this.folded = !this.folded;
1166
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN);
1079
+ this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN);
1167
1080
  }
1168
1081
  }, {
1169
1082
  key: "setShowArrow",
@@ -1181,63 +1094,63 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1181
1094
  }, {
1182
1095
  key: "setEnableWaitingRoom",
1183
1096
  value: function () {
1184
- var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(enable, isNeedShowDialog) {
1097
+ var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(enable, isNeedShowDialog) {
1185
1098
  var _this4 = this;
1186
1099
  var dialogId;
1187
- return _regenerator["default"].wrap(function _callee3$(_context3) {
1188
- while (1) switch (_context3.prev = _context3.next) {
1100
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
1101
+ while (1) switch (_context2.prev = _context2.next) {
1189
1102
  case 0:
1190
1103
  if (enable) {
1191
- _context3.next = 10;
1104
+ _context2.next = 10;
1192
1105
  break;
1193
1106
  }
1194
- if (!(this.totalWaitingRoomUser && isNeedShowDialog)) {
1195
- _context3.next = 5;
1107
+ if (!(this._sharedWaitingRoomDataSource.totalWaitingRoomUser && isNeedShowDialog)) {
1108
+ _context2.next = 5;
1196
1109
  break;
1197
1110
  }
1198
- dialogId = this._uiEventStore.openConfirmDialog({
1111
+ dialogId = this._dialogProvider.openConfirmDialog({
1199
1112
  title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_label_close'),
1200
1113
  content: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_label_choose', {
1201
- reason1: this.totalWaitingRoomUser
1114
+ reason1: this._sharedWaitingRoomDataSource.totalWaitingRoomUser
1202
1115
  }),
1203
1116
  onCancel: function onCancel() {
1204
- _this4._uiEventStore.sendEvent(_constant.UIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, false);
1205
- _this4._uiEventStore.closeConfirm(dialogId);
1117
+ _this4._eventProvider.sendEvent(_constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, false);
1118
+ _this4._dialogProvider.closeConfirm(dialogId);
1206
1119
  },
1207
1120
  onOk: function onOk() {
1208
- _this4._uiEventStore.sendEvent(_constant.UIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, true);
1209
- _this4._uiEventStore.closeConfirm(dialogId);
1121
+ _this4._eventProvider.sendEvent(_constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, true);
1122
+ _this4._dialogProvider.closeConfirm(dialogId);
1210
1123
  },
1211
1124
  okText: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_button_admit_all'),
1212
1125
  cancelText: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_button_cancel'),
1213
1126
  alignCenter: true
1214
1127
  });
1215
- _context3.next = 8;
1128
+ _context2.next = 8;
1216
1129
  break;
1217
1130
  case 5:
1218
- _context3.next = 7;
1131
+ _context2.next = 7;
1219
1132
  return this._roomControl.enableWaitingRoom(enable);
1220
1133
  case 7:
1221
- this._uiEventStore.showToast({
1134
+ this._messageProvider.showToast({
1222
1135
  type: 'normal',
1223
1136
  message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_tips_disable')
1224
1137
  });
1225
1138
  case 8:
1226
- _context3.next = 13;
1139
+ _context2.next = 13;
1227
1140
  break;
1228
1141
  case 10:
1229
- _context3.next = 12;
1142
+ _context2.next = 12;
1230
1143
  return this._roomControl.enableWaitingRoom(enable);
1231
1144
  case 12:
1232
- this._uiEventStore.showToast({
1145
+ this._messageProvider.showToast({
1233
1146
  type: 'normal',
1234
1147
  message: (0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable')
1235
1148
  });
1236
1149
  case 13:
1237
1150
  case "end":
1238
- return _context3.stop();
1151
+ return _context2.stop();
1239
1152
  }
1240
- }, _callee3, this);
1153
+ }, _callee2, this);
1241
1154
  }));
1242
1155
  function setEnableWaitingRoom(_x, _x2) {
1243
1156
  return _setEnableWaitingRoom.apply(this, arguments);
@@ -1247,18 +1160,18 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1247
1160
  }, {
1248
1161
  key: "kickOutWaitingRoomAllMember",
1249
1162
  value: function () {
1250
- var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(type) {
1163
+ var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(type) {
1251
1164
  var _this$_userControl;
1252
- return _regenerator["default"].wrap(function _callee4$(_context4) {
1253
- while (1) switch (_context4.prev = _context4.next) {
1165
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
1166
+ while (1) switch (_context3.prev = _context3.next) {
1254
1167
  case 0:
1255
- _context4.next = 2;
1168
+ _context3.next = 2;
1256
1169
  return (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
1257
1170
  case 2:
1258
1171
  case "end":
1259
- return _context4.stop();
1172
+ return _context3.stop();
1260
1173
  }
1261
- }, _callee4, this);
1174
+ }, _callee3, this);
1262
1175
  }));
1263
1176
  function kickOutWaitingRoomAllMember(_x3) {
1264
1177
  return _kickOutWaitingRoomAllMember.apply(this, arguments);
@@ -1268,18 +1181,18 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1268
1181
  }, {
1269
1182
  key: "moveToMainRoomAllMember",
1270
1183
  value: function () {
1271
- var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
1184
+ var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
1272
1185
  var _this$_waitingRoomCon;
1273
- return _regenerator["default"].wrap(function _callee5$(_context5) {
1274
- while (1) switch (_context5.prev = _context5.next) {
1186
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
1187
+ while (1) switch (_context4.prev = _context4.next) {
1275
1188
  case 0:
1276
- _context5.next = 2;
1189
+ _context4.next = 2;
1277
1190
  return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
1278
1191
  case 2:
1279
1192
  case "end":
1280
- return _context5.stop();
1193
+ return _context4.stop();
1281
1194
  }
1282
- }, _callee5, this);
1195
+ }, _callee4, this);
1283
1196
  }));
1284
1197
  function moveToMainRoomAllMember() {
1285
1198
  return _moveToMainRoomAllMember.apply(this, arguments);
@@ -1291,21 +1204,21 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1291
1204
  value: function _interceptShareScreen() {
1292
1205
  var _this5 = this;
1293
1206
  if (this.hasScreenShare || this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
1294
- var _this$_sharingOwnerUs;
1295
- var confirmKey = this._uiEventStore.openConfirmDialog({
1207
+ var _this$_sharingOwnerUs2;
1208
+ var confirmKey = this._dialogProvider.openConfirmDialog({
1296
1209
  title: (0, _i18n.transI18n)('fmt_share_tips_otherssharing'),
1297
1210
  content: (0, _i18n.transI18n)("fmt_share_tips_stopothersharing", {
1298
- reason1: ((_this$_sharingOwnerUs = this._sharingOwnerUser) === null || _this$_sharingOwnerUs === void 0 ? void 0 : _this$_sharingOwnerUs.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
1211
+ reason1: ((_this$_sharingOwnerUs2 = this._sharingOwnerUser) === null || _this$_sharingOwnerUs2 === void 0 ? void 0 : _this$_sharingOwnerUs2.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
1299
1212
  }),
1300
1213
  okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share'),
1301
1214
  closable: false,
1302
1215
  alignCenter: true,
1303
1216
  onOk: function onOk() {
1304
- _this5._uiEventStore.startShareScreen();
1305
- _this5._uiEventStore.closeConfirm(confirmKey);
1217
+ _this5._eventProvider.startShareScreen();
1218
+ _this5._dialogProvider.closeConfirm(confirmKey);
1306
1219
  },
1307
1220
  onCancel: function onCancel() {
1308
- _this5._uiEventStore.closeConfirm(confirmKey);
1221
+ _this5._dialogProvider.closeConfirm(confirmKey);
1309
1222
  }
1310
1223
  });
1311
1224
  return false;
@@ -1318,19 +1231,19 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1318
1231
  value: function _interceptShareBoard() {
1319
1232
  var _this6 = this;
1320
1233
  if (this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
1321
- var confirmKey = this._uiEventStore.openConfirmDialog({
1322
- icon: _type4.FcrIconType.FCR_SCREENSHARING,
1234
+ var confirmKey = this._dialogProvider.openConfirmDialog({
1235
+ icon: _type3.FcrIconType.FCR_SCREENSHARING,
1323
1236
  title: (0, _i18n.transI18n)('fmt_share_tips_othersharingboard'),
1324
1237
  content: (0, _i18n.transI18n)("fmt_share_tips_boardonly"),
1325
1238
  okText: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_button_gotit'),
1326
1239
  closable: false,
1327
1240
  showCancel: false,
1328
1241
  onOk: function onOk() {
1329
- _this6._uiEventStore.startShareScreen();
1330
- _this6._uiEventStore.closeDialog(confirmKey);
1242
+ _this6._eventProvider.startShareScreen();
1243
+ _this6._dialogProvider.closeDialog(confirmKey);
1331
1244
  },
1332
1245
  onCancel: function onCancel() {
1333
- _this6._uiEventStore.closeDialog(confirmKey);
1246
+ _this6._dialogProvider.closeDialog(confirmKey);
1334
1247
  }
1335
1248
  });
1336
1249
  return false;
@@ -1383,40 +1296,40 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1383
1296
  value: function _handleAllUserCountUpdated(_roomId, count) {
1384
1297
  this.totalUser = count;
1385
1298
  }
1386
- }, {
1387
- key: "_getWaitingRoomUserCount",
1388
- value: function _getWaitingRoomUserCount() {
1389
- var _privilegeControl$get;
1390
- var userControl = this._waitingRoomControl.getUserControl();
1391
- var privilegeControl = this._roomControl.getPrivilegeControl();
1392
- var targetRoles = (_privilegeControl$get = privilegeControl.getSecurityInfo(_type7.FcrSecurityAction.WaitingRoom).info) === null || _privilegeControl$get === void 0 ? void 0 : _privilegeControl$get.targetRoles;
1393
- this.totalWaitingRoomUser = userControl.getUserList().filter(function (user) {
1394
- return targetRoles.includes(user.userRole);
1395
- }).length;
1396
- if (this.totalWaitingRoomUser === 0) {
1397
- this._uiEventStore.sendEvent(_constant.UIAction.CHANGE_PARTICIPANT_TAB, _constant.RoomType.MAIN_ROOM);
1398
- }
1399
- return this.totalWaitingRoomUser;
1400
- }
1401
- }, {
1402
- key: "_handleRemoteWaitingUserLeft",
1403
- value: function _handleRemoteWaitingUserLeft(roomId, events) {
1404
- this._getWaitingRoomUserCount();
1405
- }
1406
- }, {
1407
- key: "_handleRemoteWaitingUserJoined",
1408
- value: function _handleRemoteWaitingUserJoined(roomId, events) {
1409
- var totalWaitingRoomUsers = this._getWaitingRoomUserCount();
1410
- if (this._participantVisible) {
1411
- if (this._participantTab !== _constant.RoomType.WAITING_ROOM && totalWaitingRoomUsers > 0) {
1412
- this.isNewWaitingRoomUserEnter = true;
1413
- }
1414
- } else {
1415
- if (totalWaitingRoomUsers > 0) {
1416
- this.isNewWaitingRoomUserEnter = true;
1417
- }
1418
- }
1419
- }
1299
+
1300
+ // @action.bound
1301
+ // private _getWaitingRoomUserCount() {
1302
+ // const userControl = (this._waitingRoomControl as FcrWaitingRoomControl).getUserControl();
1303
+ // const privilegeControl = (this._roomControl as FcrMainRoomControl).getPrivilegeControl();
1304
+ // const targetRoles = privilegeControl.getSecurityInfo(FcrSecurityAction.WaitingRoom).info
1305
+ // ?.targetRoles as unknown as FcrUserRole[];
1306
+ // this.totalWaitingRoomUser = userControl
1307
+ // .getUserList()
1308
+ // .filter((user) => targetRoles.includes(user.userRole)).length;
1309
+ // if (this.totalWaitingRoomUser === 0) {
1310
+ // this._uiEventStore.sendEvent(FcrUIAction.CHANGE_PARTICIPANT_TAB, FcrRoomType.Mainroom);
1311
+ // }
1312
+ // return this.totalWaitingRoomUser;
1313
+ // }
1314
+
1315
+ // @action.bound
1316
+ // private _handleRemoteWaitingUserLeft(roomId: string, events: FcrUserJoinedEvent[]) {
1317
+ // this._getWaitingRoomUserCount();
1318
+ // }
1319
+
1320
+ // @action.bound
1321
+ // private _handleRemoteWaitingUserJoined(roomId: string, events: FcrUserJoinedEvent[]) {
1322
+ // const totalWaitingRoomUsers = this._getWaitingRoomUserCount();
1323
+ // if (this._participantVisible) {
1324
+ // if (this._participantTab !== FcrRoomType.Waitingroom && totalWaitingRoomUsers > 0) {
1325
+ // this.isNewWaitingRoomUserEnter = true;
1326
+ // }
1327
+ // } else {
1328
+ // if (totalWaitingRoomUsers > 0) {
1329
+ // this.isNewWaitingRoomUserEnter = true;
1330
+ // }
1331
+ // }
1332
+ // }
1420
1333
  }, {
1421
1334
  key: "_handleUserInfoUpdated",
1422
1335
  value: function _handleUserInfoUpdated(_roomId, event) {
@@ -1439,8 +1352,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1439
1352
  }, {
1440
1353
  key: "_handleChatVisible",
1441
1354
  value: function _handleChatVisible(visible) {
1442
- this._chatVisible = visible;
1443
- this._uiEventStore.sendEvent(_constant.UIAction.CHAT_VISIBLE, visible);
1355
+ this._eventProvider.sendEvent(_constant.FcrUIAction.CHAT_VISIBLE, visible);
1444
1356
  this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
1445
1357
  this.hideNewMessageTooltip();
1446
1358
  this.newMessageCount[this.chatTabIndex] = 0;
@@ -1458,167 +1370,161 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1458
1370
  value: function setAllowWaterMark() {
1459
1371
  var allowState = !this.isWaterMarkEnabled;
1460
1372
  // 开启关闭前,进行权限判断
1461
- this._securityStore.setAllowWaterMark(allowState, void 0);
1373
+ this._privilegeProvider.setAllowWaterMark(allowState, void 0);
1462
1374
  }
1463
1375
  }, {
1464
1376
  key: "setWaterMarkLineType",
1465
1377
  value: function setWaterMarkLineType(lineType) {
1466
- this._securityStore.setAllowWaterMark(this.isWaterMarkEnabled, lineType);
1378
+ this._privilegeProvider.setAllowWaterMark(this.isWaterMarkEnabled, lineType);
1467
1379
  }
1468
1380
  }, {
1469
1381
  key: "setAlllowChangeName",
1470
1382
  value: function setAlllowChangeName(enable) {
1471
- this._securityStore.setAllowChangeSelfName(enable);
1383
+ this._privilegeProvider.setAllowChangeSelfName(enable);
1472
1384
  }
1473
1385
  }, {
1474
1386
  key: "_onEvent",
1475
1387
  value: function _onEvent(action, payload) {
1476
- if (action === _constant.UIAction.UPDATE_ASIDE) {
1388
+ // if (action === FcrUIAction.UPDATE_ASIDE) {
1389
+ // const { chat, participant } = payload as FcrUIUpdateAsideParams;
1390
+ // if (chat) {
1391
+ // this._chatRenderAt = 'aside';
1392
+ // this._handleChatVisible(true);
1393
+ // }
1394
+ // if (chat === false) {
1395
+ // this._handleChatVisible(false);
1396
+ // }
1397
+ // if (participant) {
1398
+ // this._participantsRenderAt = 'aside';
1399
+ // this._participantVisible = true;
1400
+ // }
1401
+ // if (participant === false) {
1402
+ // this._participantVisible = false;
1403
+ // }
1404
+ // }
1405
+ // if (action === FcrUIAction.RECEIVE_NEW_CHAT_MESSAGES) {
1406
+ // this._handleNewMessageEvent(payload as FcrUINewChatMessagesParams);
1407
+ // }
1408
+ if (action === _constant.FcrUIAction.CLOSE_DIALOG) {
1477
1409
  var _ref2 = payload,
1478
- chat = _ref2.chat,
1479
- participant = _ref2.participant;
1480
- if (chat) {
1481
- this._chatRenderAt = 'aside';
1482
- this._handleChatVisible(true);
1483
- }
1484
- if (chat === false) {
1485
- this._handleChatVisible(false);
1486
- }
1487
- if (participant) {
1488
- this._participantsRenderAt = 'aside';
1489
- this._participantVisible = true;
1490
- }
1491
- if (participant === false) {
1492
- this._participantVisible = false;
1493
- }
1494
- }
1495
- if (action === _constant.UIAction.RECEIVE_NEW_CHAT_MESSAGES) {
1496
- this._handleNewMessageEvent(payload);
1497
- }
1498
- if (action === _constant.UIAction.CLOSE_DIALOG) {
1499
- var _ref3 = payload,
1500
- dialogId = _ref3.dialogId;
1410
+ dialogId = _ref2.dialogId;
1501
1411
  var dialogKey = this._openedDialogIdMap.get(dialogId);
1502
- if (dialogKey === _constant.DialogKey.CHAT) {
1412
+ if (dialogKey === _constant.FcrUIDialogKey.CHAT) {
1503
1413
  this._handleChatVisible(false);
1504
1414
  }
1505
- if (dialogKey === _constant.DialogKey.PARTICIPANT) {
1506
- this._participantVisible = false;
1415
+ if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
1416
+ this._sharedLayoutDataSource.setAsideLayout({
1417
+ participant: false
1418
+ });
1507
1419
  }
1508
1420
  this._openedDialogIdMap["delete"](dialogId);
1509
- if (dialogKey === _constant.DialogKey.CONTROL_BAR) {
1510
- this._isSharingScreen = false;
1511
- }
1512
1421
  }
1513
- if (action === _constant.UIAction.OPEN_DIALOG) {
1514
- var _ref4 = payload,
1515
- _dialogKey = _ref4.dialogKey,
1516
- _dialogId = _ref4.dialogId;
1422
+ if (action === _constant.FcrUIAction.OPEN_DIALOG) {
1423
+ var _ref3 = payload,
1424
+ _dialogKey = _ref3.dialogKey,
1425
+ _dialogId = _ref3.dialogId;
1517
1426
  this._openedDialogIdMap.set(_dialogId, _dialogKey);
1518
- if (_dialogKey === _constant.DialogKey.CHAT) {
1519
- this._chatRenderAt = 'dialog';
1427
+ if (_dialogKey === _constant.FcrUIDialogKey.CHAT) {
1428
+ this._sharedLayoutDataSource.setChatRenderAt('dialog');
1520
1429
  this._handleChatVisible(true);
1521
1430
  }
1522
- if (_dialogKey === _constant.DialogKey.PARTICIPANT) {
1523
- this._participantsRenderAt = 'dialog';
1524
- this._participantVisible = true;
1525
- }
1526
- if (_dialogKey === _constant.DialogKey.CONTROL_BAR) {
1527
- this._isSharingScreen = true;
1431
+ if (_dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
1432
+ this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
1433
+ this._sharedLayoutDataSource.setAsideLayout({
1434
+ participant: true
1435
+ });
1528
1436
  }
1529
1437
  }
1530
- if (action === _constant.UIAction.OPEN_LIVE_STEAMING_DIALOG) {
1438
+ if (action === _constant.FcrUIAction.OPEN_LIVE_STEAMING_DIALOG) {
1531
1439
  this.openLiveStreamingDialog();
1532
1440
  }
1533
- if (action === _constant.UIAction.CLOUD_RECORDING) {
1534
- var _ref5 = payload,
1535
- _action = _ref5.action;
1536
- if (_action === 'start') this.startCloudRecording();else if (_action === 'pause') this.pauseCloudRecording();else if (_action === 'resume') this.resumeCloudRecording();else this.stopCloudRecording();
1537
- }
1538
- if (action === _constant.UIAction.OPEN_CONNECTION_DIALOG) {
1441
+ if (action === _constant.FcrUIAction.OPEN_CONNECTION_DIALOG) {
1539
1442
  this.openConnection(payload.params.type);
1540
1443
  }
1541
- if (action === _constant.UIAction.CLOSE_CONNECTION_DIALOG) {
1444
+ if (action === _constant.FcrUIAction.CLOSE_CONNECTION_DIALOG) {
1542
1445
  this.closeConnection();
1543
1446
  }
1544
- if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
1545
- var _ref6 = payload,
1546
- _action2 = _ref6.action,
1547
- value = _ref6.payload;
1548
- if (_action2 === _type3.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1447
+ if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
1448
+ var _ref4 = payload,
1449
+ _action = _ref4.action,
1450
+ value = _ref4.payload;
1451
+ if (_action === _type2.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1549
1452
  this.boardOwnerUser = value ? this.users.find(function (u) {
1550
1453
  return u.userId === value;
1551
1454
  }) : null;
1552
1455
  }
1553
1456
  }
1554
- if (action === _constant.UIAction.SET_CURRENT_SHARE_SCREEN) {
1555
- var _this$_mediaControl, _this$_screenVideoTra2;
1556
- var _ref7 = payload,
1557
- id = _ref7.id;
1558
- this._screenVideoTrack = (_this$_mediaControl = this._mediaControl) === null || _this$_mediaControl === void 0 ? void 0 : _this$_mediaControl.getScreenTrack(id);
1559
- (_this$_screenVideoTra2 = this._screenVideoTrack) === null || _this$_screenVideoTra2 === void 0 || _this$_screenVideoTra2.addObserver(this._observer);
1560
- }
1561
- if (action === _constant.UIAction.TOGGLE_PARTICIPANT_TAB) {
1562
- if (!this._participantVisible) {
1563
- this.toggleParticipants();
1457
+ if (action === _constant.FcrUIAction.SET_CURRENT_SHARE_SCREEN) {
1458
+ var _this$_deviceProvider, _this$_screenVideoTra2;
1459
+ var _ref5 = payload,
1460
+ id = _ref5.id;
1461
+ if (this._screenVideoTrack) {
1462
+ this._screenVideoTrack.removeObserver(this._screenObserver);
1564
1463
  }
1464
+ this._screenVideoTrack = (_this$_deviceProvider = this._deviceProvider) === null || _this$_deviceProvider === void 0 ? void 0 : _this$_deviceProvider.getScreenTrack(id);
1465
+ (_this$_screenVideoTra2 = this._screenVideoTrack) === null || _this$_screenVideoTra2 === void 0 || _this$_screenVideoTra2.addObserver(this._screenObserver);
1565
1466
  }
1566
- if (action === _constant.UIAction.CURRENT_PARTITIPANT_TAB) {
1567
- if (payload === _constant.RoomType.WAITING_ROOM) {
1568
- this.isNewWaitingRoomUserEnter = false;
1467
+ if (action === _constant.FcrUIAction.TOGGLE_PARTICIPANT_TAB) {
1468
+ if (!this.participantVisible) {
1469
+ this.toggleParticipants();
1569
1470
  }
1570
- this._participantTab = payload;
1571
1471
  }
1572
- if (action === _constant.UIAction.CHAT_ROOM_TAB_CHANGE) {
1472
+ // if (action === FcrUIAction.CURRENT_PARTITIPANT_TAB) {
1473
+ // if (payload === FcrRoomType.Waitingroom) {
1474
+ // this.isNewWaitingRoomUserEnter = false;
1475
+ // }
1476
+ // this._participantTab = payload as FcrRoomType;
1477
+ // }
1478
+ if (action === _constant.FcrUIAction.CHAT_ROOM_TAB_CHANGE) {
1573
1479
  this.chatTabIndex = payload;
1574
1480
  this.newMessageCount[this.chatTabIndex] = 0;
1575
1481
  }
1576
- if (action === _constant.UIAction.CLOSE_WAITING_ROOM_DIALOG) {
1482
+ if (action === _constant.FcrUIAction.CLOSE_WAITING_ROOM_DIALOG) {
1577
1483
  var waitingDialogId = '';
1578
1484
  this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1579
- if (dialogKey === _constant.DialogKey.WAITING_ROOM) {
1485
+ if (dialogKey === _constant.FcrUIDialogKey.WAITING_ROOM) {
1580
1486
  waitingDialogId = dialogId;
1581
1487
  }
1582
1488
  });
1583
- this._uiEventStore.closeDialog(waitingDialogId);
1489
+ this._dialogProvider.closeDialog(waitingDialogId);
1584
1490
  }
1585
- if (action === _constant.UIAction.CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG) {
1491
+ if (action === _constant.FcrUIAction.CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG) {
1586
1492
  var operationDialogId = '';
1587
1493
  this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1588
1494
  if (dialogKey === payload) {
1589
1495
  operationDialogId = dialogId;
1590
1496
  }
1591
1497
  });
1592
- this._uiEventStore.closeDialog(operationDialogId);
1498
+ this._dialogProvider.closeDialog(operationDialogId);
1593
1499
  }
1594
- if (action === _constant.UIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER) {
1500
+ if (action === _constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER) {
1595
1501
  this._operateWaitingRoom(payload);
1596
1502
  }
1597
- if (action === _constant.UIAction.ENABLE_WAITING_ROOM) {
1503
+ if (action === _constant.FcrUIAction.ENABLE_WAITING_ROOM) {
1598
1504
  this.setEnableWaitingRoom(payload, true);
1599
1505
  }
1600
1506
  }
1601
1507
  }, {
1602
1508
  key: "_operateWaitingRoom",
1603
1509
  value: function () {
1604
- var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(isOperate) {
1605
- return _regenerator["default"].wrap(function _callee6$(_context6) {
1606
- while (1) switch (_context6.prev = _context6.next) {
1510
+ var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(isOperate) {
1511
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
1512
+ while (1) switch (_context5.prev = _context5.next) {
1607
1513
  case 0:
1608
1514
  if (!isOperate) {
1609
- _context6.next = 3;
1515
+ _context5.next = 3;
1610
1516
  break;
1611
1517
  }
1612
- _context6.next = 3;
1518
+ _context5.next = 3;
1613
1519
  return this.moveToMainRoomAllMember();
1614
1520
  case 3:
1615
- _context6.next = 5;
1521
+ _context5.next = 5;
1616
1522
  return this.setEnableWaitingRoom(false, false);
1617
1523
  case 5:
1618
1524
  case "end":
1619
- return _context6.stop();
1525
+ return _context5.stop();
1620
1526
  }
1621
- }, _callee6, this);
1527
+ }, _callee5, this);
1622
1528
  }));
1623
1529
  function _operateWaitingRoom(_x4) {
1624
1530
  return _operateWaitingRoom2.apply(this, arguments);
@@ -1635,127 +1541,91 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1635
1541
  value: function _handleStreamsAddedOrUpdated() {
1636
1542
  var _this$_streamControl$;
1637
1543
  this.hasScreenShare = this._streamControl.getStreamList().some(function (stream) {
1638
- return stream.videoSourceType === _type5.AgoraRteVideoSourceType.SCREEN;
1544
+ return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN;
1639
1545
  });
1640
1546
  this._sharingOwnerUser = (_this$_streamControl$ = this._streamControl.getStreamList().find(function (stream) {
1641
- return stream.videoSourceType === _type5.AgoraRteVideoSourceType.SCREEN;
1547
+ return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN;
1642
1548
  })) === null || _this$_streamControl$ === void 0 ? void 0 : _this$_streamControl$.owner;
1643
1549
  var _this$_userControl$ge = this._userControl.getLocalUser(),
1644
1550
  userId = _this$_userControl$ge.userId;
1645
1551
  var streams = this._streamControl.getStreamsByUserId(userId);
1646
- var pstnStream = streams.find(function (_ref8) {
1647
- var connectorType = _ref8.connectorType;
1552
+ var pstnStream = streams.find(function (_ref6) {
1553
+ var connectorType = _ref6.connectorType;
1648
1554
  return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
1649
1555
  });
1650
1556
  var hasPstnStream = !!pstnStream;
1651
1557
  this.isPstnUser = hasPstnStream;
1652
- this.connectType = hasPstnStream ? _deviceStore.ConnectType.PHONE : this.microphoneId ? _deviceStore.ConnectType.COMPUTER : _deviceStore.ConnectType.NONE;
1653
- }
1654
-
1655
- // 获取翻译员列表
1656
- }, {
1657
- key: "setInitShowGuide",
1658
- value: function setInitShowGuide(value) {
1659
- this.initShowGuide = value;
1660
1558
  }
1661
-
1662
- // 获取翻译员列表
1663
- }, {
1664
- key: "getInterpreterUsers",
1665
- value: function getInterpreterUsers(fnName) {
1666
- if (this._interpreterControl) {
1667
- return this._interpreterControl.getInterpreterUserList();
1668
- }
1669
- return null;
1670
- }
1671
-
1672
- // 获取翻译官信息
1673
- }, {
1674
- key: "getInterpreter",
1675
- value: function getInterpreter() {
1676
- var _this9 = this;
1677
- if (this._interpreterControl) {
1678
- var _this$_interpreterCon2;
1679
- return ((_this$_interpreterCon2 = this._interpreterControl.getInterpreterUserList()) === null || _this$_interpreterCon2 === void 0 ? void 0 : _this$_interpreterCon2.find(function (ele) {
1680
- return ele.userId === _this9._userControl.getLocalUser().userId;
1681
- })) || null;
1682
- }
1683
- return null;
1684
- }
1685
- // 获取同声传译开启状态
1686
1559
  }, {
1687
- key: "getInterpreterState",
1688
- value: function getInterpreterState() {
1689
- if (this._interpreterControl) {
1690
- return this._interpreterControl.getState().enable;
1691
- }
1692
- return false;
1693
- }
1694
-
1695
- // / 切换输出语言房间
1696
- }, {
1697
- key: "triggerOutputLanguage",
1560
+ key: "setOutputLanguage",
1698
1561
  value: function () {
1699
- var _triggerOutputLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(payload) {
1700
- return _regenerator["default"].wrap(function _callee7$(_context7) {
1701
- while (1) switch (_context7.prev = _context7.next) {
1562
+ var _setOutputLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(language) {
1563
+ return _regenerator["default"].wrap(function _callee6$(_context6) {
1564
+ while (1) switch (_context6.prev = _context6.next) {
1702
1565
  case 0:
1703
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_INTERPRETER_OUTPUT_LANGUE, payload);
1704
- case 1:
1566
+ _context6.next = 2;
1567
+ return this._interpreterProvider.setOutputLanguage(language);
1568
+ case 2:
1705
1569
  case "end":
1706
- return _context7.stop();
1570
+ return _context6.stop();
1707
1571
  }
1708
- }, _callee7, this);
1572
+ }, _callee6, this);
1709
1573
  }));
1710
- function triggerOutputLanguage(_x5) {
1711
- return _triggerOutputLanguage.apply(this, arguments);
1574
+ function setOutputLanguage(_x5) {
1575
+ return _setOutputLanguage.apply(this, arguments);
1712
1576
  }
1713
- return triggerOutputLanguage;
1714
- }() // 主房间-输出流-开/关
1577
+ return setOutputLanguage;
1578
+ }()
1715
1579
  }, {
1716
- key: "changeOutputByMainRoom",
1580
+ key: "subscribeLanguage",
1717
1581
  value: function () {
1718
- var _changeOutputByMainRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(payload) {
1719
- return _regenerator["default"].wrap(function _callee8$(_context8) {
1720
- while (1) switch (_context8.prev = _context8.next) {
1582
+ var _subscribeLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(language) {
1583
+ return _regenerator["default"].wrap(function _callee7$(_context7) {
1584
+ while (1) switch (_context7.prev = _context7.next) {
1721
1585
  case 0:
1722
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_MAINROOM_REMOTE_AUDIO, payload);
1723
- case 1:
1586
+ _context7.next = 2;
1587
+ return this._interpreterProvider.subscribeLanguage(language);
1588
+ case 2:
1724
1589
  case "end":
1725
- return _context8.stop();
1590
+ return _context7.stop();
1726
1591
  }
1727
- }, _callee8, this);
1592
+ }, _callee7, this);
1728
1593
  }));
1729
- function changeOutputByMainRoom(_x6) {
1730
- return _changeOutputByMainRoom.apply(this, arguments);
1594
+ function subscribeLanguage(_x6) {
1595
+ return _subscribeLanguage.apply(this, arguments);
1731
1596
  }
1732
- return changeOutputByMainRoom;
1597
+ return subscribeLanguage;
1733
1598
  }()
1734
1599
  }, {
1735
- key: "updateInterpreter",
1736
- value: function updateInterpreter(payload) {
1737
- this._uiEventStore.sendEvent(_constant.UIAction.UPDATE_INTERPRETER, payload);
1738
- }
1739
- }, {
1740
- key: "resetInterpreter",
1741
- value: function resetInterpreter(payload) {
1742
- this._uiEventStore.sendEvent(_constant.UIAction.RESET_INTERPRETER, payload);
1743
- }
1744
- }, {
1745
- key: "setInputLanguageRoom",
1746
- value: function setInputLanguageRoom(payload) {
1747
- this._uiEventStore.sendEvent(_constant.UIAction.SET_INPUT_LANGUAGE_ROOM, payload);
1600
+ key: "setSubscribeMainRoom",
1601
+ value: function setSubscribeMainRoom(enable) {
1602
+ var event = enable ? _enums2.EventType.START : _enums2.EventType.STOP;
1603
+ this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_MAINROOM_REMOTE_AUDIO, {
1604
+ event: event
1605
+ });
1606
+
1607
+ // TODO 更新 subscribeLanguageList
1608
+ var subscribeLanguageList = this._sharedInterpreterDataSource.subscribeLanguageList;
1609
+ var languageList = subscribeLanguageList.filter(function (language) {
1610
+ return language !== _interpreter.ORIGIN;
1611
+ });
1612
+ this._sharedInterpreterDataSource.preSubscribeLanguageList = subscribeLanguageList;
1613
+ if (event === _enums2.EventType.START) {
1614
+ this._sharedInterpreterDataSource.subscribeLanguageList = [].concat((0, _toConsumableArray2["default"])(languageList), [_interpreter.ORIGIN]);
1615
+ } else {
1616
+ this._sharedInterpreterDataSource.subscribeLanguageList = languageList;
1617
+ }
1748
1618
  }
1749
1619
 
1750
1620
  //是否有离线翻译官
1751
1621
  }, {
1752
1622
  key: "getInterpreterUsersAllOnline",
1753
1623
  value: function getInterpreterUsersAllOnline() {
1754
- var _this10 = this;
1624
+ var _this9 = this;
1755
1625
  if (this._interpreterControl) {
1756
- var _this$_interpreterCon3;
1757
- var isOffLine = (_this$_interpreterCon3 = this._interpreterControl.getInterpreterUserList()) === null || _this$_interpreterCon3 === void 0 ? void 0 : _this$_interpreterCon3.some(function (ele) {
1758
- return !_this10._userControl.getUserList().find(function (item) {
1626
+ var _this$_interpreterCon;
1627
+ var isOffLine = (_this$_interpreterCon = this._interpreterControl.getInterpreterUserList()) === null || _this$_interpreterCon === void 0 ? void 0 : _this$_interpreterCon.some(function (ele) {
1628
+ return !_this9._userControl.getUserList().find(function (item) {
1759
1629
  return item.userId === ele.userId;
1760
1630
  });
1761
1631
  });
@@ -1766,36 +1636,26 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
1766
1636
  }]);
1767
1637
  }();
1768
1638
  _ActionBarStore = ActionBarStore;
1769
- 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, "stateBarLeaveMeeting"], [_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "interpreter"], [_mobx.observable, 1, "interpreterState"], [_mobx.observable, 1, "interpreterUsers"], [_mobx.observable, 1, "securityStore"], [_mobx.observable, 1, "interpreterUsersOffline"], [_mobx.observable, 1, "initShowGuide"], [_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, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "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"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_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, "isAllowJoinWithAudioEnabled"], [_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"], [_assignHostDecs, 18, "assignHost"], [_decorator.bound, 2, "leave"], [_decorator.bound, 2, "keepPhoneAudioConnection"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_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, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_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, "setAlllowChangeName"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_setInitShowGuideDecs, 18, "setInitShowGuide"], [_getInterpreterUsersDecs, 18, "getInterpreterUsers"], [_getInterpreterDecs, 18, "getInterpreter"], [_getInterpreterStateDecs, 18, "getInterpreterState"], [_triggerOutputLanguageDecs, 18, "triggerOutputLanguage"], [_changeOutputByMainRoomDecs, 18, "changeOutputByMainRoom"], [_updateInterpreterDecs, 18, "updateInterpreter"], [_resetInterpreterDecs, 18, "resetInterpreter"], [_setInputLanguageRoomDecs, 18, "setInputLanguageRoom"], [_getInterpreterUsersAllOnlineDecs, 18, "getInterpreterUsersAllOnline"], [_handleNewMessageEventDecs, 16, "_handleNewMessageEvent"]], []).e, 31);
1639
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_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, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "hasScreenShare"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "popoverOpened"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "interpreterUsersOffline"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "remoteUsers"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "sharingOwnerUser"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_mobx.computed, 3, "newMessageCount"], [_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, "isAllowJoinWithAudioEnabled"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setAllowBoardWrite"], [_decorator.bound, 2, "setAllowScreenShare"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeShareScreen"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_handleJoinWaitingRoomDecs, 18, "_handleJoinWaitingRoom"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleAllUserCountUpdatedDecs, 18, "_handleAllUserCountUpdated"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_handlerTraceScreenCaptureStateUpdateDecs, 18, "_handlerTraceScreenCaptureStateUpdate"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "setAlllowChangeName"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_setOutputLanguageDecs, 18, "setOutputLanguage"], [_subscribeLanguageDecs, 18, "subscribeLanguage"], [_setSubscribeMainRoomDecs, 18, "setSubscribeMainRoom"], [_getInterpreterUsersAllOnlineDecs, 18, "getInterpreterUsersAllOnline"]], []).e, 21);
1770
1640
  _init_users = _applyDecs$e[0];
1771
1641
  _init_newMessageTooltipVisible = _applyDecs$e[1];
1772
- _init_newMessageCount = _applyDecs$e[2];
1773
- _init_latestMessage = _applyDecs$e[3];
1774
- _init_totalUser = _applyDecs$e[4];
1775
- _init_totalWaitingRoomUser = _applyDecs$e[5];
1776
- _init_liveStreamingState = _applyDecs$e[6];
1777
- _init_currentMenuIs = _applyDecs$e[7];
1778
- _init_cloudRecordingState = _applyDecs$e[8];
1779
- _init_localUserRole = _applyDecs$e[9];
1780
- _init_localUser = _applyDecs$e[10];
1781
- _init_connectionSettingVisible = _applyDecs$e[11];
1782
- _init_connectType = _applyDecs$e[12];
1783
- _init_folded = _applyDecs$e[13];
1784
- _init_boardOwnerUser = _applyDecs$e[14];
1785
- _init_hasScreenShare = _applyDecs$e[15];
1786
- _init_showArrow = _applyDecs$e[16];
1787
- _init_phoneMicEnabled = _applyDecs$e[17];
1788
- _init_isNewWaitingRoomUserEnter = _applyDecs$e[18];
1789
- _init_chatTabIndex = _applyDecs$e[19];
1790
- _init_popoverOpened = _applyDecs$e[20];
1791
- _init_stateBarLeaveMeeting = _applyDecs$e[21];
1792
- _init_isPstnUser = _applyDecs$e[22];
1793
- _init_interpreter = _applyDecs$e[23];
1794
- _init_interpreterState = _applyDecs$e[24];
1795
- _init_interpreterUsers = _applyDecs$e[25];
1796
- _init_securityStore = _applyDecs$e[26];
1797
- _init_interpreterUsersOffline = _applyDecs$e[27];
1798
- _init_initShowGuide = _applyDecs$e[28];
1799
- _init__handleNewMessageEvent = _applyDecs$e[29];
1800
- _initProto = _applyDecs$e[30];
1642
+ _init_totalUser = _applyDecs$e[2];
1643
+ _init_totalWaitingRoomUser = _applyDecs$e[3];
1644
+ _init_liveStreamingState = _applyDecs$e[4];
1645
+ _init_currentMenuIs = _applyDecs$e[5];
1646
+ _init_cloudRecordingState = _applyDecs$e[6];
1647
+ _init_localUserRole = _applyDecs$e[7];
1648
+ _init_localUser = _applyDecs$e[8];
1649
+ _init_connectionSettingVisible = _applyDecs$e[9];
1650
+ _init_folded = _applyDecs$e[10];
1651
+ _init_boardOwnerUser = _applyDecs$e[11];
1652
+ _init_hasScreenShare = _applyDecs$e[12];
1653
+ _init_showArrow = _applyDecs$e[13];
1654
+ _init_phoneMicEnabled = _applyDecs$e[14];
1655
+ _init_chatTabIndex = _applyDecs$e[15];
1656
+ _init_popoverOpened = _applyDecs$e[16];
1657
+ _init_stateBarLeaveMeeting = _applyDecs$e[17];
1658
+ _init_isPstnUser = _applyDecs$e[18];
1659
+ _init_interpreterUsersOffline = _applyDecs$e[19];
1660
+ _initProto = _applyDecs$e[20];
1801
1661
  var ActionBarContext = exports.ActionBarContext = /*#__PURE__*/(0, _react.createContext)(null);