fcr-ui-scene 3.4.1 → 3.4.3

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