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
@@ -7,6 +7,7 @@ require("core-js/modules/es.error.cause.js");
7
7
  require("core-js/modules/es.error.to-string.js");
8
8
  require("core-js/modules/es.array.is-array.js");
9
9
  require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.bind.js");
10
11
  require("core-js/modules/es.function.name.js");
11
12
  require("core-js/modules/es.number.constructor.js");
12
13
  require("core-js/modules/es.object.create.js");
@@ -20,34 +21,21 @@ Object.defineProperty(exports, "__esModule", {
20
21
  value: true
21
22
  });
22
23
  exports["default"] = exports.StoreContext = void 0;
23
- require("core-js/modules/es.array.filter.js");
24
24
  require("core-js/modules/es.array.find.js");
25
25
  require("core-js/modules/es.array.for-each.js");
26
- require("core-js/modules/es.array.includes.js");
27
26
  require("core-js/modules/es.array.iterator.js");
28
- require("core-js/modules/es.array.map.js");
29
27
  require("core-js/modules/es.array.push.js");
30
28
  require("core-js/modules/es.array.slice.js");
31
29
  require("core-js/modules/es.array.some.js");
32
- require("core-js/modules/es.function.bind.js");
33
30
  require("core-js/modules/es.map.js");
34
- require("core-js/modules/es.object.entries.js");
35
31
  require("core-js/modules/es.object.to-string.js");
36
32
  require("core-js/modules/es.object.values.js");
37
33
  require("core-js/modules/es.set.js");
38
- require("core-js/modules/es.string.includes.js");
39
34
  require("core-js/modules/es.string.iterator.js");
40
35
  require("core-js/modules/es.weak-map.js");
41
- require("core-js/modules/esnext.async-iterator.filter.js");
42
- require("core-js/modules/esnext.async-iterator.find.js");
43
- require("core-js/modules/esnext.async-iterator.for-each.js");
44
- require("core-js/modules/esnext.async-iterator.map.js");
45
- require("core-js/modules/esnext.async-iterator.some.js");
46
36
  require("core-js/modules/esnext.iterator.constructor.js");
47
- require("core-js/modules/esnext.iterator.filter.js");
48
37
  require("core-js/modules/esnext.iterator.find.js");
49
38
  require("core-js/modules/esnext.iterator.for-each.js");
50
- require("core-js/modules/esnext.iterator.map.js");
51
39
  require("core-js/modules/esnext.iterator.some.js");
52
40
  require("core-js/modules/esnext.map.delete-all.js");
53
41
  require("core-js/modules/esnext.map.emplace.js");
@@ -101,24 +89,19 @@ var _type = require("fcr-core/lib/type");
101
89
  var _decorator = require("agora-foundation/lib/decorator");
102
90
  var _logger = require("agora-foundation/lib/logger");
103
91
  var _type2 = require("../video-window/type");
104
- var _eventStore = require("../../common/event-store");
105
- var _constant = require("../../utilities/constant");
106
92
  var _type3 = require("./type");
107
- var _Layout = require("./components/Layout");
108
- var _videoWindowDatasource = require("./video-window-datasource");
109
93
  var _type4 = require("../whiteboard/type");
110
94
  var _i18n = require("agora-ui-foundation/lib/i18n");
111
95
  var _type5 = require("fcr-core/lib/room-control/chatroom-control/type");
112
96
  var _type6 = require("agora-rte-sdk/lib/core/scene/type");
113
97
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
114
98
  var _type7 = require("fcr-core/lib/room-control/type");
115
- var _type8 = require("fcr-core/lib/room-control/privilege-control/type");
116
- var _get = _interopRequireDefault(require("lodash/get"));
117
- var _parameters = require("../../utilities/parameters");
118
99
  var _react = require("react");
119
100
  var _mobxUtils = require("mobx-utils");
101
+ var _constant = require("../../utilities/constant");
102
+ var _view = require("./view");
120
103
  var _LayoutStore;
121
- var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_galleryMaxSize, _init_aside, _init_asideContent, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_spotlightStreamId, _init_shouldHideNonVideoParticipants, _init_participantCount, _init_ownerUser, _init_localUser, _init_enableSpotlight, _init_isWaitingRoomNotify, _init_interpreterUsers, _init_interpreterState, _notifyParticipantShowWaitingRoomDecs, _setIsWaitingRoomNotifyDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _updateAsideContentDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _setGalleryMaxSizeDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _getInterpreterStateDecs, _ref;
104
+ var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_participantCount, _init_ownerUser, _init_localUser, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
122
105
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
123
106
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
124
107
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -150,35 +133,16 @@ var _R = /*#__PURE__*/new WeakMap();
150
133
  var _S = /*#__PURE__*/new WeakMap();
151
134
  var _T = /*#__PURE__*/new WeakMap();
152
135
  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
- _ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _notifyParticipantShowWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _setIsWaitingRoomNotifyDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _updateAsideContentDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _setGalleryMaxSizeDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _getInterpreterStateDecs = [_mobx.action, _mobx.action.bound], "logger");
136
+ _ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
162
137
  var LayoutStore = exports["default"] = /*#__PURE__*/function () {
163
138
  function LayoutStore(params) {
164
- var _this = this,
165
- _defaultVideoGalleryS;
139
+ var _this = this;
166
140
  (0, _classCallCheck2["default"])(this, LayoutStore);
167
141
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
168
- (0, _defineProperty2["default"])(this, "_videoWindowDataSource", new _videoWindowDatasource.FcrUIVideoWindowDataSource());
169
142
  (0, _defineProperty2["default"])(this, "_localView", null);
170
- (0, _defineProperty2["default"])(this, "_subscriptions", []);
143
+ (0, _defineProperty2["default"])(this, "_disposers", []);
171
144
  (0, _defineProperty2["default"])(this, "_barLockTimer", 0);
172
145
  (0, _defineProperty2["default"])(this, "_liveStreamState", _type.FcrLiveStreamingState.STOPPED);
173
- (0, _defineProperty2["default"])(this, "_chatRoomObserver", {
174
- onConnectionStateUpdated: this._handleConnectionUpdated.bind(this)
175
- });
176
- (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
177
- onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
178
- });
179
- (0, _defineProperty2["default"])(this, "_waitingRoomObserver", {
180
- onRoomMessageReceived: this._handleMessageReceived.bind(this)
181
- });
182
146
  (0, _defineProperty2["default"])(this, "_managerRoleUpdateForToast", new Set([_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST]));
183
147
  // Slots
184
148
  _classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
@@ -190,33 +154,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
190
154
  _classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
191
155
  // State
192
156
  _classPrivateFieldInitSpec(this, _H, _init_collapsed(this, true));
193
- _classPrivateFieldInitSpec(this, _I, _init_galleryMaxSize(this));
194
- _classPrivateFieldInitSpec(this, _J, _init_aside(this, false));
195
- _classPrivateFieldInitSpec(this, _K, _init_asideContent(this, {
196
- participant: false,
197
- chat: false
198
- }));
199
- _classPrivateFieldInitSpec(this, _L, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
200
- _classPrivateFieldInitSpec(this, _M, _init_barHovering(this, true));
201
- _classPrivateFieldInitSpec(this, _N, _init_barLocked(this, true));
202
- _classPrivateFieldInitSpec(this, _O, _init_barHidden(this, false));
203
- _classPrivateFieldInitSpec(this, _P, _init_asideWidth(this, _Layout.MinAsideWidth));
204
- _classPrivateFieldInitSpec(this, _Q, _init_userVolumeMap(this, new Map()));
205
- _classPrivateFieldInitSpec(this, _R, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
206
- _classPrivateFieldInitSpec(this, _S, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
207
- _classPrivateFieldInitSpec(this, _T, _init_whiteboardActive(this, false));
208
- _classPrivateFieldInitSpec(this, _U, _init_spotlightStreamId(this, ''));
209
- _classPrivateFieldInitSpec(this, _V, _init_shouldHideNonVideoParticipants(this, false));
210
- _classPrivateFieldInitSpec(this, _W, _init_participantCount(this, 0));
211
- _classPrivateFieldInitSpec(this, _X, _init_ownerUser(this, undefined));
212
- _classPrivateFieldInitSpec(this, _Y, _init_localUser(this));
213
- _classPrivateFieldInitSpec(this, _Z, _init_enableSpotlight(this, true));
214
- _classPrivateFieldInitSpec(this, _a, _init_isWaitingRoomNotify(this, true));
215
- _classPrivateFieldInitSpec(this, _b, _init_interpreterUsers(this, []));
216
- // 翻译官列表
217
- _classPrivateFieldInitSpec(this, _c, _init_interpreterState(this));
157
+ _classPrivateFieldInitSpec(this, _I, _init_aside(this, false));
158
+ _classPrivateFieldInitSpec(this, _J, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
159
+ _classPrivateFieldInitSpec(this, _K, _init_barHovering(this, true));
160
+ _classPrivateFieldInitSpec(this, _L, _init_barLocked(this, true));
161
+ _classPrivateFieldInitSpec(this, _M, _init_barHidden(this, false));
162
+ _classPrivateFieldInitSpec(this, _N, _init_asideWidth(this, _view.MinAsideWidth));
163
+ _classPrivateFieldInitSpec(this, _O, _init_userVolumeMap(this, new Map()));
164
+ _classPrivateFieldInitSpec(this, _P, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
165
+ _classPrivateFieldInitSpec(this, _Q, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
166
+ _classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
167
+ // @observable accessor spotlightStreamId = '';
168
+ // @observable accessor shouldHideNonVideoParticipants = false;
169
+ _classPrivateFieldInitSpec(this, _S, _init_participantCount(this, 0));
170
+ _classPrivateFieldInitSpec(this, _T, _init_ownerUser(this, undefined));
171
+ _classPrivateFieldInitSpec(this, _U, _init_localUser(this));
218
172
  (0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
219
- return _this._securityStore.getAllowedOperations(targetRole, isSelf);
173
+ return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
220
174
  }));
221
175
  (0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
222
176
  if (layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
@@ -224,9 +178,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
224
178
  } else if (layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
225
179
  _this._switchToGallery();
226
180
  }
227
- _this._uiEventStore.notifyLayoutChanged({
228
- layout: layout
229
- });
230
181
  }));
231
182
  (0, _defineProperty2["default"])(this, "_setSpotlightStream", function () {
232
183
  var spotlightStream = _this._findSpotlightStream();
@@ -234,73 +185,36 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
234
185
  var streamId = spotlightStream.streamId;
235
186
  _this._videoWindowDataSource.setSpeakerSpotlight(streamId);
236
187
  });
237
- var userControl = params.userControl,
238
- chatRoomControl = params.chatRoomControl,
239
- roomControl = params.roomControl,
240
- interpreterControl = params.interpreterControl;
241
- this._securityStore = params.securityStore;
242
- this._deviceStore = params.deviceStore;
243
- this._uiEventStore = params.uiEventStore;
244
- this._userControl = params.userControl;
245
- this._streamControl = params.streamControl;
246
- this._chatRoomControl = chatRoomControl;
247
- this._whiteBoardControl = params.whiteboardControl;
248
- this._privilegeControl = params.privilegeControl;
249
- this._interpreterControl = interpreterControl;
188
+ var roomControl = params.roomControl,
189
+ chatProvider = params.chatProvider;
190
+ this._userControl = roomControl.getUserControl();
191
+ this._streamControl = roomControl.getStreamControl();
192
+ this._chatRoomControl = roomControl.getChatRoomControl();
193
+ this._whiteBoardControl = roomControl.getBoardControl();
250
194
  this._roomControl = roomControl;
251
- var defaultVideoGallerySize = (0, _parameters.getDefaultVideoGallerySize)(params.parameters);
252
- if (defaultVideoGallerySize) {
253
- defaultVideoGallerySize = Math.min(Math.max(defaultVideoGallerySize, 16), 25);
254
- }
255
- this.galleryMaxSize = (_defaultVideoGalleryS = defaultVideoGallerySize) !== null && _defaultVideoGalleryS !== void 0 ? _defaultVideoGalleryS : _type3.GalleryMaxSize.Normal;
256
- this.interpreterUsers = this._interpreterControl.getInterpreterUserList() || [];
257
- this.interpreterState = this.getInterpreterState();
258
- this._interpreterControl.addObserver({
259
- onInterpreterUsersUpdated: function onInterpreterUsersUpdated(roomId, users) {
260
- _this.interpreterUsers = users;
261
- },
262
- onInterpreterStateUpdated: function onInterpreterStateUpdated() {
263
- _this.interpreterState = _this.getInterpreterState();
264
- _this.interpreterUsers = _this._interpreterControl.getInterpreterUserList() || [];
265
- }
266
- });
267
- this.localUser = userControl.getLocalUser();
268
- params.roomStore.addObserver({
269
- onJoinWaitingRoom: function onJoinWaitingRoom(roomControl, securityStore) {
270
- var room = roomControl;
271
- _this._waitingRoomControl = room;
272
- _this._waitingRoomControl.addObserver(_this._waitingRoomObserver);
273
- _this._waitingRoomUserControl = room.getUserControl();
274
- _this._waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
275
- }
276
- });
277
- roomControl.addObserver({
278
- onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(_, state, pageUrl, reason) {
279
- _this._liveStreamState = state;
280
- if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
281
- _this._uiEventStore.showToast({
282
- type: 'info',
283
- message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
284
- });
285
- }
286
- }
287
- });
195
+ this._sharedLayoutDataSource = params.sharedLayoutDataSource;
196
+ this._eventProvider = params.eventProvider;
197
+ this._deviceProvider = params.deviceProvider;
198
+ this._privilegeProvider = params.privilegeProvider;
199
+ this._sharedSettingDataSource = params.sharedSettingDataSource;
200
+ this._sharedInterpreterDataSource = params.sharedInterpreterDataSource;
201
+ this._sharedSettingDataSource = params.sharedSettingDataSource;
202
+ this._chatProvider = chatProvider;
203
+ this._videoWindowDataSource = params.sharedVideoWindowDataSource;
204
+ this.localUser = this._userControl.getLocalUser();
205
+ this.chatRoomState = this._chatRoomControl.getConnectionState();
288
206
  this._addListeners();
289
207
  //@ts-ignore
290
208
  window.layoutStore = this;
291
- this.setLocalUserRole(userControl.getLocalUser().userRole);
209
+ this.setLocalUserRole(this._userControl.getLocalUser().userRole);
292
210
  this._initStream();
293
211
  this._handleFoldListChanged();
294
212
  this._handleMainListChanged();
295
213
  this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
296
214
  this.setWhiteboardActive(this._whiteBoardControl.getBoardActiveInfo().isActive);
297
215
  (0, _mobx.runInAction)(function () {
298
- _this.participantCount = userControl.getAllUserCount();
216
+ _this.participantCount = _this._userControl.getAllUserCount();
299
217
  });
300
- if (this.isRobot) {
301
- this.updateAsideContent(false, true);
302
- }
303
- (0, _parameters.getDefaultVideoGallerySize)(params.parameters);
304
218
  }
305
219
  return (0, _createClass2["default"])(LayoutStore, [{
306
220
  key: "participant",
@@ -367,7 +281,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
367
281
  _classPrivateFieldSet(_H, this, v);
368
282
  }
369
283
  }, {
370
- key: "galleryMaxSize",
284
+ key: "aside",
371
285
  get: function get() {
372
286
  return _classPrivateFieldGet(_I, this);
373
287
  },
@@ -375,7 +289,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
375
289
  _classPrivateFieldSet(_I, this, v);
376
290
  }
377
291
  }, {
378
- key: "aside",
292
+ key: "localUserRole",
379
293
  get: function get() {
380
294
  return _classPrivateFieldGet(_J, this);
381
295
  },
@@ -383,7 +297,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
383
297
  _classPrivateFieldSet(_J, this, v);
384
298
  }
385
299
  }, {
386
- key: "asideContent",
300
+ key: "barHovering",
387
301
  get: function get() {
388
302
  return _classPrivateFieldGet(_K, this);
389
303
  },
@@ -391,7 +305,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
391
305
  _classPrivateFieldSet(_K, this, v);
392
306
  }
393
307
  }, {
394
- key: "localUserRole",
308
+ key: "barLocked",
395
309
  get: function get() {
396
310
  return _classPrivateFieldGet(_L, this);
397
311
  },
@@ -399,7 +313,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
399
313
  _classPrivateFieldSet(_L, this, v);
400
314
  }
401
315
  }, {
402
- key: "barHovering",
316
+ key: "barHidden",
403
317
  get: function get() {
404
318
  return _classPrivateFieldGet(_M, this);
405
319
  },
@@ -407,7 +321,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
407
321
  _classPrivateFieldSet(_M, this, v);
408
322
  }
409
323
  }, {
410
- key: "barLocked",
324
+ key: "asideWidth",
411
325
  get: function get() {
412
326
  return _classPrivateFieldGet(_N, this);
413
327
  },
@@ -415,7 +329,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
415
329
  _classPrivateFieldSet(_N, this, v);
416
330
  }
417
331
  }, {
418
- key: "barHidden",
332
+ key: "userVolumeMap",
419
333
  get: function get() {
420
334
  return _classPrivateFieldGet(_O, this);
421
335
  },
@@ -423,7 +337,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
423
337
  _classPrivateFieldSet(_O, this, v);
424
338
  }
425
339
  }, {
426
- key: "asideWidth",
340
+ key: "chatRoomState",
427
341
  get: function get() {
428
342
  return _classPrivateFieldGet(_P, this);
429
343
  },
@@ -431,7 +345,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
431
345
  _classPrivateFieldSet(_P, this, v);
432
346
  }
433
347
  }, {
434
- key: "userVolumeMap",
348
+ key: "videoWindowPreviewType",
435
349
  get: function get() {
436
350
  return _classPrivateFieldGet(_Q, this);
437
351
  },
@@ -439,7 +353,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
439
353
  _classPrivateFieldSet(_Q, this, v);
440
354
  }
441
355
  }, {
442
- key: "chatRoomState",
356
+ key: "whiteboardActive",
443
357
  get: function get() {
444
358
  return _classPrivateFieldGet(_R, this);
445
359
  },
@@ -447,7 +361,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
447
361
  _classPrivateFieldSet(_R, this, v);
448
362
  }
449
363
  }, {
450
- key: "videoWindowPreviewType",
364
+ key: "participantCount",
451
365
  get: function get() {
452
366
  return _classPrivateFieldGet(_S, this);
453
367
  },
@@ -455,7 +369,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
455
369
  _classPrivateFieldSet(_S, this, v);
456
370
  }
457
371
  }, {
458
- key: "whiteboardActive",
372
+ key: "ownerUser",
459
373
  get: function get() {
460
374
  return _classPrivateFieldGet(_T, this);
461
375
  },
@@ -463,7 +377,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
463
377
  _classPrivateFieldSet(_T, this, v);
464
378
  }
465
379
  }, {
466
- key: "spotlightStreamId",
380
+ key: "localUser",
467
381
  get: function get() {
468
382
  return _classPrivateFieldGet(_U, this);
469
383
  },
@@ -471,88 +385,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
471
385
  _classPrivateFieldSet(_U, this, v);
472
386
  }
473
387
  }, {
474
- key: "shouldHideNonVideoParticipants",
475
- get: function get() {
476
- return _classPrivateFieldGet(_V, this);
477
- },
478
- set: function set(v) {
479
- _classPrivateFieldSet(_V, this, v);
480
- }
481
- }, {
482
- key: "participantCount",
483
- get: function get() {
484
- return _classPrivateFieldGet(_W, this);
485
- },
486
- set: function set(v) {
487
- _classPrivateFieldSet(_W, this, v);
488
- }
489
- }, {
490
- key: "ownerUser",
388
+ key: "streamControl",
491
389
  get: function get() {
492
- return _classPrivateFieldGet(_X, this);
493
- },
494
- set: function set(v) {
495
- _classPrivateFieldSet(_X, this, v);
390
+ return this._streamControl;
496
391
  }
497
392
  }, {
498
- key: "localUser",
393
+ key: "shouldHideNonVideoParticipants",
499
394
  get: function get() {
500
- return _classPrivateFieldGet(_Y, this);
501
- },
502
- set: function set(v) {
503
- _classPrivateFieldSet(_Y, this, v);
395
+ return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants || false;
504
396
  }
505
397
  }, {
506
398
  key: "enableSpotlight",
507
399
  get: function get() {
508
- return _classPrivateFieldGet(_Z, this);
509
- },
510
- set: function set(v) {
511
- _classPrivateFieldSet(_Z, this, v);
512
- }
513
- }, {
514
- key: "isWaitingRoomNotify",
515
- get: function get() {
516
- return _classPrivateFieldGet(_a, this);
517
- },
518
- set: function set(v) {
519
- _classPrivateFieldSet(_a, this, v);
520
- }
521
- }, {
522
- key: "interpreterUsers",
523
- get: function get() {
524
- return _classPrivateFieldGet(_b, this);
525
- },
526
- set: function set(v) {
527
- _classPrivateFieldSet(_b, this, v);
528
- }
529
- }, {
530
- key: "interpreterState",
531
- get: function get() {
532
- return _classPrivateFieldGet(_c, this);
533
- },
534
- set: function set(v) {
535
- _classPrivateFieldSet(_c, this, v);
536
- }
537
- }, {
538
- key: "deviceStore",
539
- get: function get() {
540
- return this._deviceStore;
541
- }
542
- }, {
543
- key: "streamControl",
544
- get: function get() {
545
- return this._streamControl;
400
+ return this._sharedSettingDataSource.setting.spotlightEnabled;
546
401
  }
547
402
  }, {
548
403
  key: "isWaterMarkEnabled",
549
404
  get: function get() {
550
- return this._securityStore.isWaterMarkEnabled();
405
+ return this._privilegeProvider.isWaterMarkEnabled();
551
406
  }
552
407
  }, {
553
408
  key: "isMulti",
554
409
  get: function get() {
555
- return this._securityStore.isMulti();
410
+ return this._privilegeProvider.isMulti();
556
411
  }
557
412
  }, {
558
413
  key: "layout",
@@ -567,20 +422,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
567
422
  }, {
568
423
  key: "mainList",
569
424
  get: function get() {
570
- var _this2 = this;
571
- var sourceList = this._videoWindowDataSource.mainList.filter(function (i) {
572
- return !i.isMySelf || i.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN;
573
- });
574
- var existHasVideoStreamUser = sourceList.some(function (i) {
575
- return i.hasVideoStream;
576
- });
577
- return this.shouldHideNonVideoParticipants ? sourceList.filter(function (i) {
578
- var visible = i.isMySelf && !existHasVideoStreamUser || i.hasVideoStream || i.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || i.type === _type3.FcrUIWindowType.BOARD;
579
- if (!visible && i.isPin) {
580
- _this2.removePin(i.windowId, (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled'));
581
- }
582
- return visible;
583
- }) : sourceList;
425
+ return this._videoWindowDataSource.layoutMainList;
584
426
  }
585
427
  }, {
586
428
  key: "mainListMapByAudioStreamId",
@@ -595,6 +437,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
595
437
  });
596
438
  return map;
597
439
  }
440
+ }, {
441
+ key: "spotlightStreamId",
442
+ get: function get() {
443
+ return this._videoWindowDataSource.spotlightStreamId;
444
+ }
598
445
  }, {
599
446
  key: "foldList",
600
447
  get: function get() {
@@ -612,6 +459,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
612
459
  get: function get() {
613
460
  return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
614
461
  }
462
+ }, {
463
+ key: "asideLayout",
464
+ get: function get() {
465
+ var _this$_sharedLayoutDa;
466
+ return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
467
+ }
615
468
  }, {
616
469
  key: "carouselList",
617
470
  get: function get() {
@@ -637,60 +490,66 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
637
490
  }, {
638
491
  key: "findSpotlightUser",
639
492
  get: function get() {
640
- var _this3 = this;
493
+ var _this2 = this;
641
494
  return this.spotlightStreamId ? this.mainList.find(function (item) {
642
- return item.videoStreamId === _this3.spotlightStreamId || item.audioStreamId === _this3.spotlightStreamId;
495
+ return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
643
496
  }) : null;
644
497
  }
645
498
  }, {
646
499
  key: "microphoneEnabled",
647
500
  get: function get() {
648
- return this._deviceStore.microphoneEnabled;
501
+ return this._deviceProvider.microphoneEnabled;
649
502
  }
650
503
  }, {
651
504
  key: "allowChat",
652
505
  get: function get() {
653
- return this._securityStore.allowChat();
506
+ return this._privilegeProvider.allowChat();
654
507
  }
655
508
  }, {
656
509
  key: "allowUnmuteSelfAudio",
657
510
  get: function get() {
658
- return this._securityStore.allowUnmuteSelfAudio();
511
+ return this._privilegeProvider.allowUnmuteSelfAudio();
659
512
  }
660
513
  }, {
661
514
  key: "allowUnmuteSelfVideo",
662
515
  get: function get() {
663
- return this._securityStore.allowUnmuteSelfVideo();
516
+ return this._privilegeProvider.allowUnmuteSelfVideo();
664
517
  }
665
518
  }, {
666
519
  key: "isHostOrCoHost",
667
520
  get: function get() {
668
521
  return this.localUserRole === _type.FcrUserRole.HOST || this.localUserRole === _type.FcrUserRole.COHOST;
669
522
  }
523
+ }, {
524
+ key: "galleryMaxSize",
525
+ get: function get() {
526
+ var _this$_sharedLayoutDa2;
527
+ return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.layoutSize;
528
+ }
670
529
  }, {
671
530
  key: "allowedAllChat",
672
531
  get: function get() {
673
- return this._securityStore.allowedAllChat();
532
+ return this._privilegeProvider.allowedAllChat();
674
533
  }
675
534
  }, {
676
535
  key: "allowedPublicChatAndDisallowedPrivateChat",
677
536
  get: function get() {
678
- return this._securityStore.allowedPublicChatAndDisallowedPrivateChat();
537
+ return this._privilegeProvider.allowedPublicChatAndDisallowedPrivateChat();
679
538
  }
680
539
  }, {
681
540
  key: "disallowedPublicChatAndDisallowedPrivateChatToParticipant",
682
541
  get: function get() {
683
- return this._securityStore.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
542
+ return this._privilegeProvider.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
684
543
  }
685
544
  }, {
686
545
  key: "disallowedAllChat",
687
546
  get: function get() {
688
- return this._securityStore.disallowedAllChat();
547
+ return this._privilegeProvider.disallowedAllChat();
689
548
  }
690
549
  }, {
691
550
  key: "privilegeOperator",
692
551
  get: function get() {
693
- return this._securityStore.privilegeOperator;
552
+ return this._privilegeProvider.privilegeOperator;
694
553
  }
695
554
  }, {
696
555
  key: "localUserId",
@@ -699,37 +558,49 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
699
558
  return (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId;
700
559
  }
701
560
  }, {
702
- key: "getWaterMarkContent",
703
- value: function getWaterMarkContent() {
704
- return this._securityStore.getWaterMarkContent();
561
+ key: "interpreterUsers",
562
+ get: function get() {
563
+ return this._sharedInterpreterDataSource.interpreterUsers;
564
+ }
565
+ }, {
566
+ key: "interpreterState",
567
+ get: function get() {
568
+ return this._sharedInterpreterDataSource.interpreterOff;
569
+ }
570
+ }, {
571
+ key: "asideContent",
572
+ get: function get() {
573
+ return this._sharedLayoutDataSource.asideLayout;
705
574
  }
706
575
  }, {
707
- key: "notifyParticipantShowWaitingRoom",
708
- value: function notifyParticipantShowWaitingRoom() {
709
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_PARTICIPANT_TAB, _constant.RoomType.WAITING_ROOM);
710
- this._uiEventStore.sendEvent(_constant.UIAction.CHANGE_PARTICIPANT_TAB, _constant.RoomType.WAITING_ROOM);
711
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
576
+ key: "participantsRenderAt",
577
+ get: function get() {
578
+ return this._sharedLayoutDataSource.participantsRenderAt;
579
+ }
580
+ }, {
581
+ key: "chatRenderAt",
582
+ get: function get() {
583
+ return this._sharedLayoutDataSource.chatRenderAt;
712
584
  }
713
585
  }, {
714
- key: "setIsWaitingRoomNotify",
715
- value: function setIsWaitingRoomNotify() {
716
- this.isWaitingRoomNotify = false;
717
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
586
+ key: "getWaterMarkContent",
587
+ value: function getWaterMarkContent() {
588
+ return this._privilegeProvider.getWaterMarkContent();
718
589
  }
719
590
  }, {
720
591
  key: "hasMutePermission",
721
592
  value: function hasMutePermission(targetRole) {
722
- return this._securityStore.hasMutePermission(targetRole);
593
+ return this._privilegeProvider.hasMutePermission(targetRole);
723
594
  }
724
595
  }, {
725
596
  key: "hasUnmutePermission",
726
597
  value: function hasUnmutePermission(targetRole) {
727
- return this._securityStore.hasUnmutePermission(targetRole);
598
+ return this._privilegeProvider.hasUnmutePermission(targetRole);
728
599
  }
729
600
  }, {
730
601
  key: "hasRequestStartAudioPermission",
731
602
  value: function hasRequestStartAudioPermission(targetRole) {
732
- return this._securityStore.hasRequestStartAudioPermission(targetRole);
603
+ return this._privilegeProvider.hasRequestStartAudioPermission(targetRole);
733
604
  }
734
605
  }, {
735
606
  key: "toggleMainStream",
@@ -744,48 +615,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
744
615
  }, {
745
616
  key: "addPin",
746
617
  value: function addPin(streamId) {
747
- if (this.shouldHideNonVideoParticipants) {
748
- var stream = this.mainList.find(function (u) {
749
- return u.windowId === streamId;
750
- });
751
- if (!(stream !== null && stream !== void 0 && stream.hasVideoStream)) {
752
- this._uiEventStore.showToast({
753
- type: 'error',
754
- message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled')
755
- });
756
- return;
757
- }
758
- }
759
- var success = this._videoWindowDataSource.addPin(streamId);
760
- if (success) {
761
- this._uiEventStore.showToast({
762
- type: 'normal',
763
- message: (0, _i18n.transI18n)('fmt_settings_tips_screenlocked')
764
- });
765
- if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
766
- this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
767
- }
768
- }
618
+ this._videoWindowDataSource.addPinToast(streamId);
769
619
  }
770
620
  }, {
771
621
  key: "removePin",
772
622
  value: function removePin(streamId) {
773
623
  var toastText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _i18n.transI18n)('fmt_settings_tips_screenunlock');
774
- this._videoWindowDataSource.removePin(streamId);
775
- this._uiEventStore.showToast({
776
- type: 'normal',
777
- message: toastText
778
- });
624
+ this._videoWindowDataSource.removePinToast(streamId, toastText);
779
625
  }
780
626
  }, {
781
627
  key: "setVideoOrientation",
782
628
  value: function setVideoOrientation() {
783
- this._deviceStore.setVideoOrientation();
629
+ this._deviceProvider.setVideoOrientation();
784
630
  }
785
631
  }, {
786
632
  key: "setAllowChat",
787
633
  value: function setAllowChat(allowChat) {
788
- this._securityStore.setAllowChat(allowChat);
634
+ this._privilegeProvider.setAllowChat(allowChat);
789
635
  }
790
636
  }, {
791
637
  key: "handleSetPinState",
@@ -807,9 +653,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
807
653
  value: function setWhiteboardActive(active) {
808
654
  this.whiteboardActive = active;
809
655
  if (!active && this.manualLayout) {
810
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
811
- layout: this.manualLayout
812
- });
656
+ this._videoWindowDataSource.setLayout(this.manualLayout);
657
+ // this._sharedLayoutDataSource.toggleLayout(this.manualLayout);
813
658
  }
814
659
  }
815
660
  }, {
@@ -839,21 +684,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
839
684
  }
840
685
  }
841
686
  }
842
- }, {
843
- key: "updateAsideContent",
844
- value: function updateAsideContent(participant, chat) {
845
- if (participant === undefined) participant = this.asideContent.participant;
846
- if (chat === undefined) chat = this.asideContent.chat;
847
- if (participant === this.asideContent.participant && chat === this.asideContent.chat) return;
848
- this.asideContent = {
849
- participant: participant,
850
- chat: chat
851
- };
852
- }
853
687
  }, {
854
688
  key: "closeParticipantFromAside",
855
689
  value: function closeParticipantFromAside() {
856
- this._uiEventStore.updateAside({
690
+ this._sharedLayoutDataSource.setAsideLayout({
857
691
  participant: false
858
692
  });
859
693
  }
@@ -861,12 +695,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
861
695
  key: "moveParticipantFromAsideToDialog",
862
696
  value: function moveParticipantFromAsideToDialog() {
863
697
  this.closeParticipantFromAside();
864
- this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
698
+ this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
699
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
865
700
  }
866
701
  }, {
867
702
  key: "closeChatFromAside",
868
703
  value: function closeChatFromAside() {
869
- this._uiEventStore.updateAside({
704
+ this._sharedLayoutDataSource.setAsideLayout({
870
705
  chat: false
871
706
  });
872
707
  }
@@ -874,33 +709,40 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
874
709
  key: "closeAsideChat",
875
710
  value: function closeAsideChat() {
876
711
  this.closeChatFromAside();
877
- this._uiEventStore.notifyChatResetTarget();
712
+ this._eventProvider.notifyChatResetTarget();
878
713
  }
879
714
  }, {
880
715
  key: "moveChatFromAsideToDialog",
881
716
  value: function moveChatFromAsideToDialog() {
882
717
  this.closeChatFromAside();
883
- this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
718
+ this._sharedLayoutDataSource.setChatRenderAt('dialog');
719
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
720
+ this._sharedLayoutDataSource.setAsideLayout({
721
+ chat: true
722
+ });
884
723
  }
885
724
  }, {
886
725
  key: "openPrivateChat",
887
726
  value: function openPrivateChat(userId) {
888
727
  var _this$_userControl;
889
- if (!this._securityStore.permitPrivateChat(userId)) {
728
+ if (!this._privilegeProvider.permitPrivateChat(userId)) {
890
729
  return;
891
730
  }
892
- this._uiEventStore.updateAside({
893
- chat: true
894
- });
731
+ if (!this.asideContent.chat) {
732
+ this._sharedLayoutDataSource.setAsideLayout({
733
+ chat: true
734
+ });
735
+ }
895
736
  var user = Object.values(this === null || this === void 0 || (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.getUsers()).find(function (u) {
896
737
  return u.userId === userId;
897
738
  });
898
- user && this._uiEventStore.notifyChatUpdateTarget(user, _constant.RoomType.MAIN_ROOM);
739
+ // user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
740
+ user && this._chatProvider.setPrivateChatTargetUser(user, _type7.FcrRoomType.Mainroom);
899
741
  }
900
742
  }, {
901
743
  key: "openRenameDialog",
902
744
  value: function openRenameDialog(userId) {
903
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
745
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
904
746
  action: _attendee.ParticipantActionType.RENAME_IN_MEETING,
905
747
  userId: userId
906
748
  });
@@ -915,12 +757,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
915
757
  value: function toggleCollapsed() {
916
758
  var collapsed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !this.collapsed;
917
759
  this.collapsed = collapsed;
918
- this._uiEventStore.sendEvent(_constant.UIAction.CAROUSEL_COLLAPSED, collapsed);
919
- }
920
- }, {
921
- key: "setGalleryMaxSize",
922
- value: function setGalleryMaxSize(size) {
923
- this.galleryMaxSize = size;
760
+ this._eventProvider.sendEvent(_constant.FcrUIAction.CAROUSEL_COLLAPSED, collapsed);
924
761
  }
925
762
  }, {
926
763
  key: "toggleAside",
@@ -931,7 +768,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
931
768
  }, {
932
769
  key: "asideWidthChanged",
933
770
  value: function asideWidthChanged(width) {
934
- this._uiEventStore.sendEvent(_constant.UIAction.ASIDE_WIDTH_CHANGED, width);
771
+ this._eventProvider.sendEvent(_constant.FcrUIAction.ASIDE_WIDTH_CHANGED, width);
935
772
  }
936
773
  }, {
937
774
  key: "toggleLayoutBarLock",
@@ -953,12 +790,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
953
790
  }, {
954
791
  key: "setHoveringHandler",
955
792
  value: function setHoveringHandler() {
956
- var _this4 = this;
793
+ var _this3 = this;
957
794
  this._setBarHovering(true);
958
795
  if (!this._barLockTimer && !this.barLocked) {
959
796
  this._barLockTimer = window.setTimeout(function () {
960
- _this4._setBarHovering(false);
961
- _this4.resetLockTimer();
797
+ _this3._setBarHovering(false);
798
+ _this3.resetLockTimer();
962
799
  }, 3000);
963
800
  }
964
801
  }
@@ -981,44 +818,21 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
981
818
  }, {
982
819
  key: "release",
983
820
  value: function release() {
984
- this._subscriptions.forEach(function (fn) {
821
+ this._disposers.forEach(function (fn) {
985
822
  return fn();
986
823
  });
987
- this._chatRoomControl.removeObserver(this._chatRoomObserver);
824
+ this._disposers = [];
988
825
  }
989
826
  }, {
990
827
  key: "onUserInfoUpdated",
991
828
  value: function onUserInfoUpdated(roomId, event) {
992
- var _this5 = this;
829
+ var _this4 = this;
993
830
  this._videoWindowDataSource.update(event.modifiedUser);
994
831
  this.setLocalUserRole(this._userControl.getLocalUser().userRole);
995
832
  this.handleLiveLayoutChange(event.modifiedUser);
996
- if (this._managerRoleUpdateForToast.has(event.modifiedUser.userRole) && event.reason === _type6.AgoraRteUserUpdatedReason.ROLE) {
997
- var userName = event.modifiedUser.userName;
998
- var isMe = event.modifiedUser.userId === this.getLocalUserId();
999
- var toastContent = function toastContent() {
1000
- var contentText = '';
1001
- if (event.modifiedUser.userRole === _type.FcrUserRole.HOST) {
1002
- contentText = isMe ? (0, _i18n.transI18n)('fmt_attendies_tips_mine_new_host', {
1003
- reason1: userName
1004
- }) : (0, _i18n.transI18n)('fmt_attendies_tips_new_host', {
1005
- reason1: userName
1006
- });
1007
- } else if (event.modifiedUser.userRole === _type.FcrUserRole.COHOST) {
1008
- contentText = isMe ? (0, _i18n.transI18n)('fmt_attendies_tips_mine_new_co_host') : (0, _i18n.transI18n)('fmt_attendies_tips_new_co_host', {
1009
- reason1: userName
1010
- });
1011
- }
1012
- return contentText;
1013
- };
1014
- this._uiEventStore.showToast({
1015
- type: 'info',
1016
- message: toastContent()
1017
- });
1018
- }
1019
833
  if (event.reason === _type6.AgoraRteUserUpdatedReason.NAME) {
1020
834
  setTimeout(function () {
1021
- _this5.localUser = _this5._userControl.getLocalUser();
835
+ _this4.localUser = _this4._userControl.getLocalUser();
1022
836
  }, 1000);
1023
837
  }
1024
838
  }
@@ -1030,13 +844,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1030
844
  }, {
1031
845
  key: "stopLocalPreview",
1032
846
  value: function stopLocalPreview(view) {
1033
- this._deviceStore.stopPlayLocalVideo(view);
847
+ this._deviceProvider.stopPlayLocalVideo(view);
1034
848
  }
1035
849
  }, {
1036
850
  key: "startLocalPreview",
1037
851
  value: function startLocalPreview(div) {
1038
852
  if (div) {
1039
- this._deviceStore.startPlayLocalVideo(div);
853
+ this._deviceProvider.startPlayLocalVideo(div);
1040
854
  }
1041
855
  }
1042
856
  }, {
@@ -1044,17 +858,17 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1044
858
  value: function setAllowChatWithPayload(type) {
1045
859
  switch (type) {
1046
860
  case 'public':
1047
- this._securityStore.setAllowedPublicChatAndDisallowedPrivateChat();
861
+ this._privilegeProvider.setAllowedPublicChatAndDisallowedPrivateChat();
1048
862
  break;
1049
863
  case 'private_to_manager':
1050
- this._securityStore.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
864
+ this._privilegeProvider.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
1051
865
  break;
1052
866
  }
1053
867
  }
1054
868
  }, {
1055
869
  key: "muteAudio",
1056
870
  value: function muteAudio(mute, userId) {
1057
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
871
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
1058
872
  action: mute ? _attendee.ParticipantActionType.MUTE_AUDIO : _attendee.ParticipantActionType.UNMUTE_AUDIO,
1059
873
  userId: userId
1060
874
  });
@@ -1062,97 +876,54 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1062
876
  }, {
1063
877
  key: "sendParticipantEvent",
1064
878
  value: function sendParticipantEvent(payload) {
1065
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, payload);
879
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, payload);
1066
880
  }
881
+
882
+ // onEvent(action: FcrUIAction.UPDATE_ASIDE, payload: FcrUIUpdateAsideParams): void;
1067
883
  }, {
1068
884
  key: "onEvent",
1069
885
  value:
1070
886
  // onEvent(
1071
- // action: UIAction.WHITEBOARD_CHANGED,
887
+ // action: FcrUIAction.WHITEBOARD_CHANGED,
1072
888
  // payload: { action: WhiteboardControlbarEvents; payload: boolean },
1073
889
  // ): void;
1074
890
  function onEvent(action, payload) {
1075
- if (action === _constant.UIAction.UPDATE_ASIDE) {
891
+ if (action === _constant.FcrUIAction.SET_MAIN_SPEAKER) {
1076
892
  var _ref2 = payload,
1077
- participant = _ref2.participant,
1078
- chat = _ref2.chat;
1079
- // this._uiEventStore.sendEvent(UIAction.ASIDE_WIDTH_CHANGED, this.asideWidth);
1080
- this.updateAsideContent(participant, chat);
893
+ userId = _ref2.userId;
1081
894
  }
1082
- if (action === _constant.UIAction.TOGGLE_LAYOUT) {
895
+ if (action === _constant.FcrUIAction.SET_USER_PIN_STATE) {
1083
896
  var _ref3 = payload,
1084
- layout = _ref3.layout,
1085
- manual = _ref3.manual;
1086
- this.toggleLayout(layout, manual);
1087
- }
1088
- if (action === _constant.UIAction.TOGGLE_LAYOUT_SIZE) {
1089
- var _ref4 = payload,
1090
- size = _ref4.size;
1091
- this.setGalleryMaxSize(size);
1092
- }
1093
- if (action === _constant.UIAction.SET_MAIN_SPEAKER) {
1094
- var _ref5 = payload,
1095
- userId = _ref5.userId;
1096
- }
1097
- if (action === _constant.UIAction.SET_USER_PIN_STATE) {
1098
- var _ref6 = payload,
1099
- _userId = _ref6.userId;
897
+ _userId = _ref3.userId;
1100
898
  this.handleSetPinState(_userId);
1101
899
  }
1102
- if (action === _constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK) {
900
+ if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
1103
901
  this.toggleLayoutBarLock(payload);
1104
902
  }
1105
- if (action === _constant.UIAction.VIDEO_WINDOW_BOUNDS) {
1106
- var _ref7 = payload,
1107
- videoWindowPreviewType = _ref7.videoWindowPreviewType;
903
+ if (action === _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS) {
904
+ var _ref4 = payload,
905
+ videoWindowPreviewType = _ref4.videoWindowPreviewType;
1108
906
  this.videoWindowPreviewType = videoWindowPreviewType;
1109
907
  }
1110
- if (action === _constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
908
+ if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
1111
909
  this.toggleLayoutBarHidden();
1112
910
  }
1113
- if (action === _constant.UIAction.VIDEO_WINDOW_PIN_ACTION) {
1114
- var _ref8 = payload,
1115
- _action = _ref8.action,
1116
- streamId = _ref8.streamId;
1117
- if (_action === _constant.VideoWindowPinType.REMOVE_PIN) {
1118
- this.removePin(streamId);
1119
- } else if (_action === _constant.VideoWindowPinType.ADD_PIN) {
1120
- this.addPin(streamId);
1121
- }
1122
- }
1123
- if (action === _constant.UIAction.SPOTLIGHT_STREAM_CHANGED) {
1124
- var _ref9 = payload,
1125
- type = _ref9.type,
1126
- _streamId = _ref9.streamId;
1127
- if (type === 'add') {
1128
- this.spotlightStreamId = _streamId;
1129
- } else {
1130
- this.spotlightStreamId = '';
1131
- }
1132
- }
1133
- if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
1134
- var _ref10 = payload,
1135
- spotlightEnabled = _ref10.spotlightEnabled,
1136
- shouldHideNonVideoParticipants = _ref10.shouldHideNonVideoParticipants;
1137
- this.shouldHideNonVideoParticipants = shouldHideNonVideoParticipants;
1138
- this.enableSpotlight = spotlightEnabled;
1139
- }
1140
- if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
1141
- var _ref11 = payload,
1142
- changeAction = _ref11.action,
1143
- isLoneyWindow = _ref11.payload;
911
+ if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
912
+ var _ref5 = payload,
913
+ changeAction = _ref5.action,
914
+ isLoneyWindow = _ref5.payload;
1144
915
  if (changeAction === _type4.WhiteboardControlbarEvents.LONEYWINDOW) {
1145
916
  if (isLoneyWindow) {
1146
917
  this._videoWindowDataSource.removeBoard();
1147
918
  } else {
1148
919
  var ownerUserId = this._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1149
920
  var ownerUser = this._userControl.getUser(ownerUserId);
1150
- this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._securityStore.hasWriteBoardPermission());
921
+ this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
1151
922
  }
1152
923
  }
1153
924
  if (changeAction === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1154
- var _ref12 = payload,
1155
- _ownerUserId = _ref12.payload;
925
+ var _ref6 = payload,
926
+ _ownerUserId = _ref6.payload;
1156
927
  this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
1157
928
  }
1158
929
  }
@@ -1160,139 +931,151 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1160
931
  }, {
1161
932
  key: "_addListeners",
1162
933
  value: function _addListeners() {
1163
- var _this6 = this;
1164
- this._uiEventStore.addObserver({
934
+ var _this5 = this;
935
+ var chatRoomObserver = {
936
+ onConnectionStateUpdated: this._handleConnectionUpdated
937
+ };
938
+ var roomObserver = {
939
+ onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
940
+ };
941
+ var eventObserver = {
1165
942
  onEvent: this.onEvent
1166
- });
1167
- this._streamControl.addObserver({
943
+ };
944
+ var streamObserver = {
1168
945
  onStreamsAdded: this._onStreamsAdded,
1169
946
  onStreamsUpdated: this._onStreamsUpdated,
1170
947
  onStreamsRemoved: this._onStreamsRemoved,
1171
948
  onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
1172
- });
1173
- this._userControl.addObserver({
949
+ };
950
+ var userObserver = {
1174
951
  onUserInfoUpdated: this.onUserInfoUpdated,
1175
952
  onAllUserCountUpdated: this._onAllUserCountUpdated
1176
- });
1177
- this._videoWindowDataSource.addObserver({
953
+ };
954
+ var videoWindowObserver = {
1178
955
  onLayoutUpdated: this._handleLayoutUpdated,
1179
956
  onFoldListAdded: this._handleFoldListChanged,
1180
957
  onFoldListRemoved: this._handleFoldListChanged,
1181
958
  onFoldListUpdated: this._handleFoldListChanged,
1182
959
  onMainListAdded: this._handleMainListChanged,
1183
960
  onMainListUpdated: this._handleMainListChanged,
1184
- onMainListRemoved: this._handleMainListChanged,
1185
- onSpotlightAdded: this._handleSpotlightAdded,
1186
- onSpotlightRemoved: this._handleSpotlightRemoved
1187
- });
1188
- this._whiteBoardControl.addObserver({
961
+ onMainListRemoved: this._handleMainListChanged
962
+ };
963
+ var whiteboardObserver = {
1189
964
  onActive: function onActive() {
1190
- return _this6.setWhiteboardActive(true);
965
+ return _this5.setWhiteboardActive(true);
1191
966
  },
1192
967
  onInactive: function onInactive() {
1193
- return _this6.setWhiteboardActive(false);
968
+ return _this5.setWhiteboardActive(false);
1194
969
  }
1195
- });
1196
- this._chatRoomControl.addObserver(this._chatRoomObserver);
1197
- this._subscriptions.push((0, _mobx.reaction)(function () {
1198
- return _this6.mainList.length;
970
+ };
971
+ this._roomControl.addObserver(roomObserver);
972
+ this._eventProvider.addObserver(eventObserver);
973
+ this._streamControl.addObserver(streamObserver);
974
+ this._userControl.addObserver(userObserver);
975
+ this._videoWindowDataSource.addObserver(videoWindowObserver);
976
+ this._whiteBoardControl.addObserver(whiteboardObserver);
977
+ this._chatRoomControl.addObserver(chatRoomObserver);
978
+ this._disposers.push(function () {
979
+ _this5._roomControl.addObserver(roomObserver);
980
+ _this5._eventProvider.addObserver(eventObserver);
981
+ _this5._streamControl.addObserver(streamObserver);
982
+ _this5._userControl.addObserver(userObserver);
983
+ _this5._videoWindowDataSource.addObserver(videoWindowObserver);
984
+ _this5._whiteBoardControl.addObserver(whiteboardObserver);
985
+ _this5._chatRoomControl.addObserver(chatRoomObserver);
986
+ }, (0, _mobx.reaction)(function () {
987
+ return _this5.mainList.length;
1199
988
  }, function (length) {
1200
989
  if (length < 2) {
1201
- if (_this6.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
1202
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
990
+ if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
991
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1203
992
  }
1204
993
  }
1205
- _this6._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_LENGTH_CHANGED, length);
994
+ _this5._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, length);
1206
995
  }), (0, _mobx.reaction)(function () {
1207
- return _this6.whiteboardActive;
996
+ return _this5.whiteboardActive;
1208
997
  }, function (opened) {
1209
998
  if (opened) {
1210
- var ownerUserId = _this6._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1211
- var ownerUser = _this6._userControl.getUser(ownerUserId);
1212
- _this6._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this6.localUserId);
1213
- if (_this6.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1214
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
999
+ var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1000
+ var ownerUser = _this5._userControl.getUser(ownerUserId);
1001
+ _this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
1002
+ if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1003
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1215
1004
  }
1216
1005
  } else {
1217
- _this6._videoWindowDataSource.removeBoard();
1006
+ _this5._videoWindowDataSource.removeBoard();
1218
1007
  }
1219
1008
  }), (0, _mobx.reaction)(function () {
1220
- return _this6._securityStore.hasWriteBoardPermission();
1009
+ return _this5._privilegeProvider.hasWriteBoardPermission();
1221
1010
  }, function (canEdit) {
1222
- if (!_this6.mainList.some(function (u) {
1011
+ if (!_this5.mainList.some(function (u) {
1223
1012
  return u.type === _type3.FcrUIWindowType.BOARD;
1224
1013
  })) return;
1225
- _this6._videoWindowDataSource.updateBoard(canEdit);
1226
- }), (0, _mobx.reaction)(function () {
1227
- return _this6.galleryMaxSize;
1228
- }, function (size) {
1229
- _this6._uiEventStore.notifyLayoutSizeChanged({
1230
- size: size
1231
- });
1014
+ _this5._videoWindowDataSource.updateBoard(canEdit);
1232
1015
  }), (0, _mobx.reaction)(function () {
1233
- return _this6.asideContent;
1016
+ return _this5.asideContent;
1234
1017
  }, function (asideContent) {
1235
1018
  if (asideContent.participant || asideContent.chat) {
1236
- _this6.toggleAside(true);
1019
+ _this5.toggleAside(true);
1237
1020
  }
1238
1021
  if (!asideContent.participant && !asideContent.chat) {
1239
- _this6.toggleAside(false);
1022
+ _this5.toggleAside(false);
1240
1023
  }
1241
1024
  }, {
1242
1025
  fireImmediately: true
1243
1026
  }), (0, _mobx.reaction)(function () {
1244
1027
  return {
1245
- cameraEnabled: _this6._deviceStore.cameraEnabled,
1246
- cameraId: _this6._deviceStore.cameraId
1028
+ cameraEnabled: _this5._deviceProvider.cameraEnabled,
1029
+ cameraId: _this5._deviceProvider.cameraId
1247
1030
  };
1248
- }, function (_ref13) {
1249
- var cameraEnabled = _ref13.cameraEnabled,
1250
- cameraId = _ref13.cameraId;
1251
- if (!cameraEnabled && _this6._localView) {
1252
- _this6.stopLocalPreview(_this6._localView);
1031
+ }, function (_ref7) {
1032
+ var cameraEnabled = _ref7.cameraEnabled,
1033
+ cameraId = _ref7.cameraId;
1034
+ if (!cameraEnabled && _this5._localView) {
1035
+ _this5.stopLocalPreview(_this5._localView);
1253
1036
  }
1254
- if (cameraEnabled && cameraId && _this6._localView) {
1255
- _this6.startLocalPreview(_this6._localView);
1037
+ if (cameraEnabled && cameraId && _this5._localView) {
1038
+ _this5.startLocalPreview(_this5._localView);
1256
1039
  }
1257
1040
  }), (0, _mobx.reaction)(function () {
1258
- return _this6.barLocked;
1041
+ return _this5.barLocked;
1259
1042
  }, function (barLocked) {
1260
- if (_this6._barLockTimer && barLocked) {
1261
- _this6.resetLockTimer();
1043
+ if (_this5._barLockTimer && barLocked) {
1044
+ _this5.resetLockTimer();
1262
1045
  } else {
1263
- _this6.setHoveringHandler();
1046
+ _this5.setHoveringHandler();
1264
1047
  }
1265
1048
  }), (0, _mobx.reaction)(function () {
1266
- return _this6._deviceStore.microphoneVolumeLevel;
1049
+ return _this5._deviceProvider.microphoneVolumeLevel;
1267
1050
  }, function (volume) {
1268
1051
  (0, _mobx.runInAction)(function () {
1269
- _this6.userVolumeMap.set('0', volume);
1052
+ _this5.userVolumeMap.set('0', volume);
1270
1053
  });
1271
1054
  }), (0, _mobx.reaction)(function () {
1272
1055
  return {
1273
- count: _this6.participantCount,
1274
- enableSpotlight: _this6.enableSpotlight
1056
+ count: _this5.participantCount,
1057
+ enableSpotlight: _this5.enableSpotlight
1275
1058
  };
1276
- }, function (_ref14) {
1277
- var count = _ref14.count,
1278
- enableSpotlight = _ref14.enableSpotlight;
1279
- var enableSetSpotlight = _this6._isSetSpotlightEnable(count, enableSpotlight);
1280
- _this6._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1059
+ }, function (_ref8) {
1060
+ var count = _ref8.count,
1061
+ enableSpotlight = _ref8.enableSpotlight;
1062
+ var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
1063
+ _this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1281
1064
  }),
1282
1065
  // 录制的特殊逻辑:
1283
1066
  // 因为录制机器人不发流,且当前切换布局的逻辑是有多个人的视频窗口才切换到 speaker layout
1284
1067
  // 所以当房间只有主持人的时候录制机器人的视角不会切换到 speaker layout,故加上以下逻辑
1285
1068
  (0, _mobx.reaction)(function () {
1286
- var _this6$currentShareDa;
1287
- return (_this6$currentShareDa = _this6.currentShareData) === null || _this6$currentShareDa === void 0 ? void 0 : _this6$currentShareDa.hasScreenSharing;
1069
+ var _this5$currentShareDa;
1070
+ return (_this5$currentShareDa = _this5.currentShareData) === null || _this5$currentShareDa === void 0 ? void 0 : _this5$currentShareDa.hasScreenSharing;
1288
1071
  }, function (hasScreenSharing) {
1289
- if (_this6.isRobot) {
1072
+ if (_this5.isRobot) {
1290
1073
  if (hasScreenSharing) {
1291
- _this6.logger.info('set layout to speaker for robot');
1292
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1074
+ _this5.logger.info('set layout to speaker for robot');
1075
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1293
1076
  } else {
1294
- _this6.logger.info('set layout to gallery for robot');
1295
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1077
+ _this5.logger.info('set layout to gallery for robot');
1078
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1296
1079
  }
1297
1080
  }
1298
1081
  }, {
@@ -1302,12 +1085,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1302
1085
  }, {
1303
1086
  key: "_handleFoldListChanged",
1304
1087
  value: function _handleFoldListChanged() {
1305
- this._uiEventStore.sendEvent(_constant.UIAction.FOLD_LIST_CHANGED, this.foldList);
1088
+ this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
1306
1089
  }
1307
1090
  }, {
1308
1091
  key: "_handleMainListChanged",
1309
1092
  value: function _handleMainListChanged() {
1310
- this._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_CHANGED, this.mainList);
1093
+ this._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_CHANGED, this.mainList);
1311
1094
  }
1312
1095
  }, {
1313
1096
  key: "_switchToSpeaker",
@@ -1332,13 +1115,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1332
1115
  }, {
1333
1116
  key: "_initStream",
1334
1117
  value: function _initStream() {
1335
- var _this7 = this;
1118
+ var _this6 = this;
1336
1119
  var isSharingScreen = false;
1337
1120
  this._streamControl.getStreamList().forEach(function (stream) {
1338
1121
  if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
1339
1122
  isSharingScreen = true;
1340
1123
  }
1341
- _this7._handleStreamAdded(stream);
1124
+ _this6._handleStreamAdded(stream);
1342
1125
  });
1343
1126
  if (isSharingScreen && this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1344
1127
  this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
@@ -1350,27 +1133,22 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1350
1133
  var setSpotlightEnable = count > LayoutStore.MIN_USERS_TO_ENABLE_SPOTLIGHT;
1351
1134
  return setSpotlightEnable && enableSpotlight;
1352
1135
  }
1353
- }, {
1354
- key: "_handleSpotlightAdded",
1355
- value: function _handleSpotlightAdded(streamId) {
1356
- this._uiEventStore.notifySpotlightStreamChanged({
1357
- type: 'add',
1358
- streamId: streamId
1359
- });
1360
- }
1361
- }, {
1362
- key: "_handleSpotlightRemoved",
1363
- value: function _handleSpotlightRemoved(streamId) {
1364
- this._uiEventStore.notifySpotlightStreamChanged({
1365
- type: 'remove',
1366
- streamId: streamId
1367
- });
1368
- }
1369
1136
  }, {
1370
1137
  key: "_handleConnectionUpdated",
1371
1138
  value: function _handleConnectionUpdated(_, state) {
1372
1139
  this.chatRoomState = state;
1373
1140
  }
1141
+ }, {
1142
+ key: "_handleLiveStreamingStateUpdated",
1143
+ value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
1144
+ this._liveStreamState = state;
1145
+ if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
1146
+ this._eventProvider.showToast({
1147
+ type: 'info',
1148
+ message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
1149
+ });
1150
+ }
1151
+ }
1374
1152
  }, {
1375
1153
  key: "_handleStreamAdded",
1376
1154
  value: function _handleStreamAdded(modifiedStream) {
@@ -1384,37 +1162,39 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1384
1162
  }, {
1385
1163
  key: "_onStreamsAdded",
1386
1164
  value: function _onStreamsAdded(roomId, events) {
1387
- var _this8 = this;
1388
- events.forEach(function (_ref15) {
1389
- var modifiedStream = _ref15.modifiedStream;
1390
- _this8._handleStreamAdded(modifiedStream);
1165
+ var _this7 = this;
1166
+ events.forEach(function (_ref9) {
1167
+ var modifiedStream = _ref9.modifiedStream;
1168
+ _this7._handleStreamAdded(modifiedStream);
1391
1169
  });
1392
1170
  }
1393
1171
  }, {
1394
1172
  key: "_onStreamsUpdated",
1395
1173
  value: function _onStreamsUpdated(roomId, events) {
1396
- var _this9 = this;
1397
- events.forEach(function (_ref16) {
1398
- var modifiedStream = _ref16.modifiedStream;
1399
- _this9._videoWindowDataSource.update(modifiedStream);
1174
+ var _this8 = this;
1175
+ events.forEach(function (_ref10) {
1176
+ var modifiedStream = _ref10.modifiedStream;
1177
+ _this8._videoWindowDataSource.update(modifiedStream);
1400
1178
  });
1401
1179
  }
1402
1180
  }, {
1403
1181
  key: "_onStreamsRemoved",
1404
1182
  value: function _onStreamsRemoved(roomId, events) {
1405
- var _this10 = this;
1406
- events.forEach(function (_ref17) {
1407
- var modifiedStream = _ref17.modifiedStream;
1408
- _this10._videoWindowDataSource["delete"](modifiedStream);
1183
+ var _this9 = this;
1184
+ events.forEach(function (_ref11) {
1185
+ var modifiedStream = _ref11.modifiedStream;
1186
+ _this9._videoWindowDataSource["delete"](modifiedStream);
1409
1187
  });
1410
1188
  var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
1411
1189
  var videoType = event.modifiedStream.videoSourceType;
1412
1190
  return videoType === _fcrCore.FcrVideoSourceType.SCREEN;
1413
1191
  });
1414
- if (hasScreenStream && this.manualLayout) {
1415
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
1416
- layout: this.manualLayout
1417
- });
1192
+ if (hasScreenStream) {
1193
+ if (this.manualLayout) {
1194
+ this._videoWindowDataSource.setLayout(this.manualLayout);
1195
+ } else {
1196
+ this._videoWindowDataSource.setLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1197
+ }
1418
1198
  }
1419
1199
  }
1420
1200
  }, {
@@ -1426,15 +1206,15 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1426
1206
  }, {
1427
1207
  key: "_findSpotlightStream",
1428
1208
  value: function _findSpotlightStream() {
1429
- var _this11 = this;
1209
+ var _this10 = this;
1430
1210
  //find the max volume stream
1431
1211
  var res = {
1432
1212
  streamId: '',
1433
1213
  volume: 0
1434
1214
  };
1435
1215
  this.userVolumeMap.forEach(function (volume, id) {
1436
- var windowData = _this11.mainListMapByAudioStreamId.get(id);
1437
- if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream) {
1216
+ var windowData = _this10.mainListMapByAudioStreamId.get(id);
1217
+ if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream && windowData.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN) {
1438
1218
  res = {
1439
1219
  streamId: windowData.windowId,
1440
1220
  volume: volume
@@ -1443,47 +1223,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1443
1223
  });
1444
1224
  return res;
1445
1225
  }
1446
- }, {
1447
- key: "_handleRemoteWaitingUserLeft",
1448
- value: function _handleRemoteWaitingUserLeft(roomId, events) {
1449
- var _this$_privilegeContr;
1450
- var targetRoles = (_this$_privilegeContr = this._privilegeControl.getSecurityInfo(_type8.FcrSecurityAction.WaitingRoom).info) === null || _this$_privilegeContr === void 0 ? void 0 : _this$_privilegeContr.targetRoles;
1451
- if (this._waitingRoomUserControl) {
1452
- var users = this._waitingRoomUserControl.getUsers();
1453
- var userCount = Object.entries(users).map(function (_ref18) {
1454
- var _ref19 = (0, _slicedToArray2["default"])(_ref18, 2),
1455
- userId = _ref19[0],
1456
- user = _ref19[1];
1457
- return user;
1458
- }).filter(function (user) {
1459
- return targetRoles.includes(user.userRole);
1460
- }).length;
1461
- if (userCount === 0) {
1462
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
1463
- }
1464
- }
1465
- }
1466
- }, {
1467
- key: "_handleMessageReceived",
1468
- value: function _handleMessageReceived(roomId, message) {
1469
- if ((0, _get["default"])(message, 'payload.data.messageKey') === _type.RoomMessageKey.USER_WAITING_ROOM_JOINED && this.isWaitingRoomNotify) {
1470
- this._uiEventStore.showNotification({
1471
- type: _eventStore.NotificationContentType.WAITING_ROOM,
1472
- onOk: this.notifyParticipantShowWaitingRoom,
1473
- onClose: this.setIsWaitingRoomNotify,
1474
- placement: 'topLeft'
1475
- });
1476
- }
1477
- }
1478
- }, {
1479
- key: "getInterpreterState",
1480
- value: function getInterpreterState() {
1481
- return this._interpreterControl.getState().enable;
1482
- }
1483
1226
  }]);
1484
1227
  }();
1485
1228
  _LayoutStore = LayoutStore;
1486
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "galleryMaxSize"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "asideContent"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "shouldHideNonVideoParticipants"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "isWaitingRoomNotify"], [_mobx.observable, 1, "interpreterUsers"], [_mobx.observable, 1, "interpreterState"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isManager"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_decorator.bound, 2, "getWaterMarkContent"], [_notifyParticipantShowWaitingRoomDecs, 18, "notifyParticipantShowWaitingRoom"], [_setIsWaitingRoomNotifyDecs, 18, "setIsWaitingRoomNotify"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_updateAsideContentDecs, 18, "updateAsideContent"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_setGalleryMaxSizeDecs, 18, "setGalleryMaxSize"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_mobx.action, 2, "setLocalUserRole"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_decorator.bound, 2, "_handleSpotlightAdded"], [_decorator.bound, 2, "_handleSpotlightRemoved"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_decorator.bound, 2, "_handleRemoteWaitingUserLeft"], [_decorator.bound, 2, "_handleMessageReceived"], [_getInterpreterStateDecs, 18, "getInterpreterState"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 31);
1229
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.computed, 3, "shouldHideNonVideoParticipants"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isManager"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_mobx.action, 2, "setLocalUserRole"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 23);
1487
1230
  _init_participant = _applyDecs$e[0];
1488
1231
  _init_chat = _applyDecs$e[1];
1489
1232
  _init_chatAction = _applyDecs$e[2];
@@ -1492,28 +1235,20 @@ _init_actionBar = _applyDecs$e[4];
1492
1235
  _init_layers = _applyDecs$e[5];
1493
1236
  _init_whiteboard = _applyDecs$e[6];
1494
1237
  _init_collapsed = _applyDecs$e[7];
1495
- _init_galleryMaxSize = _applyDecs$e[8];
1496
- _init_aside = _applyDecs$e[9];
1497
- _init_asideContent = _applyDecs$e[10];
1498
- _init_localUserRole = _applyDecs$e[11];
1499
- _init_barHovering = _applyDecs$e[12];
1500
- _init_barLocked = _applyDecs$e[13];
1501
- _init_barHidden = _applyDecs$e[14];
1502
- _init_asideWidth = _applyDecs$e[15];
1503
- _init_userVolumeMap = _applyDecs$e[16];
1504
- _init_chatRoomState = _applyDecs$e[17];
1505
- _init_videoWindowPreviewType = _applyDecs$e[18];
1506
- _init_whiteboardActive = _applyDecs$e[19];
1507
- _init_spotlightStreamId = _applyDecs$e[20];
1508
- _init_shouldHideNonVideoParticipants = _applyDecs$e[21];
1509
- _init_participantCount = _applyDecs$e[22];
1510
- _init_ownerUser = _applyDecs$e[23];
1511
- _init_localUser = _applyDecs$e[24];
1512
- _init_enableSpotlight = _applyDecs$e[25];
1513
- _init_isWaitingRoomNotify = _applyDecs$e[26];
1514
- _init_interpreterUsers = _applyDecs$e[27];
1515
- _init_interpreterState = _applyDecs$e[28];
1516
- _init__handleLayoutUpdated = _applyDecs$e[29];
1517
- _initProto = _applyDecs$e[30];
1238
+ _init_aside = _applyDecs$e[8];
1239
+ _init_localUserRole = _applyDecs$e[9];
1240
+ _init_barHovering = _applyDecs$e[10];
1241
+ _init_barLocked = _applyDecs$e[11];
1242
+ _init_barHidden = _applyDecs$e[12];
1243
+ _init_asideWidth = _applyDecs$e[13];
1244
+ _init_userVolumeMap = _applyDecs$e[14];
1245
+ _init_chatRoomState = _applyDecs$e[15];
1246
+ _init_videoWindowPreviewType = _applyDecs$e[16];
1247
+ _init_whiteboardActive = _applyDecs$e[17];
1248
+ _init_participantCount = _applyDecs$e[18];
1249
+ _init_ownerUser = _applyDecs$e[19];
1250
+ _init_localUser = _applyDecs$e[20];
1251
+ _init__handleLayoutUpdated = _applyDecs$e[21];
1252
+ _initProto = _applyDecs$e[22];
1518
1253
  (0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
1519
1254
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);