fcr-ui-scene 3.4.1 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (567) hide show
  1. package/lib/base.d.ts +40 -5
  2. package/lib/base.js +237 -22
  3. package/lib/common/device-store.d.ts +14 -23
  4. package/lib/common/device-store.js +252 -361
  5. package/lib/common/device-stream-store.d.ts +14 -8
  6. package/lib/common/device-stream-store.js +116 -254
  7. package/lib/common/event-store.d.ts +10 -35
  8. package/lib/common/event-store.js +13 -64
  9. package/lib/common/security-store.d.ts +39 -47
  10. package/lib/common/security-store.js +379 -335
  11. package/lib/creator.d.ts +1 -1
  12. package/lib/creator.js +4 -9
  13. package/lib/electron/app.js +4 -2
  14. package/lib/electron/bootstrap-dev.js +0 -7
  15. package/lib/electron/bootstrap-sdk.js +10 -0
  16. package/lib/electron/injections.d.ts +2 -0
  17. package/lib/electron/injections.js +17 -2
  18. package/lib/electron/logger.d.ts +0 -4
  19. package/lib/electron/logger.js +2 -5
  20. package/lib/electron/main.js +1 -1
  21. package/lib/electron/plugins/devtool-shortcut.js +10 -1
  22. package/lib/electron/plugins/meeting-state.js +1 -1
  23. package/lib/electron/preload.js +3 -1
  24. package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
  25. package/lib/fragments/control-bar/control-bar-store.d.ts +1 -44
  26. package/lib/fragments/control-bar/control-bar-store.js +80 -457
  27. package/lib/fragments/control-bar/device/index.js +3 -5
  28. package/lib/fragments/control-bar/index.css +10 -15
  29. package/lib/fragments/control-bar/index.js +0 -24
  30. package/lib/fragments/control-bar/more-actions/index.css +0 -53
  31. package/lib/fragments/control-bar/more-actions/index.js +38 -73
  32. package/lib/fragments/control-bar/security-content/index.css +0 -75
  33. package/lib/fragments/control-bar/security-content/index.js +19 -105
  34. package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
  35. package/lib/fragments/control-bar/view.js +8 -23
  36. package/lib/fragments/live-streaming/store.d.ts +1 -1
  37. package/lib/fragments/live-streaming/store.js +1 -1
  38. package/lib/fragments/live-streaming/view.js +2 -4
  39. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
  40. package/lib/fragments/share-screen-selection/selection-store.js +1 -1
  41. package/lib/fragments/share-screen-selection/view.js +20 -20
  42. package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
  43. package/lib/fragments/toolbar/components/pen-picker.js +1 -1
  44. package/lib/fragments/toolbar/components/shape-picker.js +1 -1
  45. package/lib/fragments/toolbar/components/wrapper.js +1 -1
  46. package/lib/fragments/toolbar/hooks.js +1 -1
  47. package/lib/fragments/toolbar/store.d.ts +1 -1
  48. package/lib/global.css +5 -0
  49. package/lib/index.d.ts +1 -0
  50. package/lib/index.js +7 -4
  51. package/lib/login-confirm-dialog.d.ts +1 -0
  52. package/lib/login-confirm-dialog.js +7 -2
  53. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +2 -2
  54. package/lib/modules/Interpreter/action/edit-btn/index.js +2 -2
  55. package/lib/modules/Interpreter/action/switch-btn/index.js +5 -5
  56. package/lib/modules/Interpreter/dialog-content/index.d.ts +2 -2
  57. package/lib/modules/Interpreter/dialog-content/index.js +4 -4
  58. package/lib/modules/Interpreter/index.d.ts +11 -4
  59. package/lib/modules/Interpreter/index.js +23 -8
  60. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
  61. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
  62. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -2
  63. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +14 -14
  64. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +2 -2
  65. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +2 -2
  66. package/lib/modules/Interpreter/store.d.ts +23 -84
  67. package/lib/modules/Interpreter/store.js +204 -1216
  68. package/lib/modules/Interpreter/type.d.ts +12 -29
  69. package/lib/modules/Interpreter/type.js +2 -10
  70. package/lib/modules/Interpreter/utils.d.ts +1 -5
  71. package/lib/modules/Interpreter/utils.js +28 -86
  72. package/lib/modules/Interpreter/view.js +19 -3
  73. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -4
  74. package/lib/modules/action-bar/action-bar-collapes-items.js +21 -38
  75. package/lib/modules/action-bar/chat/index.js +8 -8
  76. package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
  77. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
  78. package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
  79. package/lib/modules/action-bar/components/apps/index.css +2 -2
  80. package/lib/modules/action-bar/components/apps/index.js +2 -3
  81. package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
  82. package/lib/modules/action-bar/components/collapse/index.js +222 -0
  83. package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
  84. package/lib/modules/action-bar/components/item/index.d.ts +9 -0
  85. package/lib/modules/action-bar/components/item/index.js +164 -0
  86. package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
  87. package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
  88. package/lib/modules/action-bar/components/leave/index.js +9 -24
  89. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
  90. package/lib/modules/action-bar/components/more/index.js +13 -9
  91. package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
  92. package/lib/modules/action-bar/components/more/poppover-content.js +28 -5
  93. package/lib/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
  94. package/lib/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
  95. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
  96. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +8 -0
  97. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +100 -0
  98. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
  99. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +5 -0
  100. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +33 -0
  101. package/lib/modules/action-bar/components/notification-bar/index.css +74 -0
  102. package/lib/modules/action-bar/components/notification-bar/index.d.ts +2 -0
  103. package/lib/modules/action-bar/components/notification-bar/index.js +99 -0
  104. package/lib/modules/action-bar/components/participants/index.js +2 -2
  105. package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
  106. package/lib/modules/action-bar/components/placement/index.js +18 -0
  107. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
  108. package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
  109. package/lib/modules/action-bar/components/security/index.js +3 -1
  110. package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
  111. package/lib/modules/action-bar/components/smaller/index.js +52 -0
  112. package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
  113. package/lib/modules/action-bar/components/trigger-input-language-room/index.css +86 -0
  114. package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +3 -0
  115. package/lib/modules/action-bar/components/trigger-input-language-room/index.js +215 -0
  116. package/lib/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
  117. package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -0
  118. package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
  119. package/lib/modules/action-bar/components/trigger-output-language/index.js +230 -0
  120. package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +10 -0
  121. package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +8 -0
  122. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +22 -0
  123. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +3 -0
  124. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +75 -0
  125. package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +8 -0
  126. package/lib/modules/action-bar/components/trigger-output-language-room/index.js +98 -0
  127. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  128. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +66 -0
  129. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  130. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +37 -0
  131. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  132. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  133. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
  134. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
  135. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +70 -0
  136. package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
  137. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +209 -0
  138. package/lib/modules/action-bar/device/index.css +2 -7
  139. package/lib/modules/action-bar/device/index.js +24 -22
  140. package/lib/modules/action-bar/enums.d.ts +23 -0
  141. package/lib/modules/action-bar/enums.js +35 -0
  142. package/lib/modules/action-bar/index.d.ts +36 -6
  143. package/lib/modules/action-bar/index.dev.d.ts +0 -1
  144. package/lib/modules/action-bar/index.dev.js +94 -121
  145. package/lib/modules/action-bar/index.js +46 -18
  146. package/lib/modules/action-bar/leave/assign-host.d.ts +0 -3
  147. package/lib/modules/action-bar/leave/assign-host.js +4 -2
  148. package/lib/modules/action-bar/leave/index.css +0 -10
  149. package/lib/modules/action-bar/leave/index.js +34 -84
  150. package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -13
  151. package/lib/modules/action-bar/leave/leave-meeting.js +19 -37
  152. package/lib/modules/action-bar/live-streaming/index.js +3 -3
  153. package/lib/modules/action-bar/more/index.js +6 -9
  154. package/lib/modules/action-bar/more/poppover-content.js +16 -37
  155. package/lib/modules/action-bar/participants/index.css +0 -12
  156. package/lib/modules/action-bar/participants/index.js +16 -23
  157. package/lib/modules/action-bar/record/index.js +4 -4
  158. package/lib/modules/action-bar/screen-share/index.js +5 -14
  159. package/lib/modules/action-bar/screen-share/submenu.js +26 -20
  160. package/lib/modules/action-bar/security/drop-menu.js +22 -137
  161. package/lib/modules/action-bar/security/index.js +6 -12
  162. package/lib/modules/action-bar/settings/index.js +4 -4
  163. package/lib/modules/action-bar/smaller.js +5 -5
  164. package/lib/modules/action-bar/store.d.ts +84 -98
  165. package/lib/modules/action-bar/store.js +567 -707
  166. package/lib/modules/action-bar/types.d.ts +94 -0
  167. package/lib/modules/action-bar/types.js +6 -0
  168. package/lib/modules/action-bar/view.d.ts +1 -2
  169. package/lib/modules/action-bar/view.js +11 -11
  170. package/lib/modules/audio-stream/index.d.ts +22 -10
  171. package/lib/modules/audio-stream/index.js +78 -82
  172. package/lib/modules/chat/chat-bar/index.css +0 -6
  173. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  174. package/lib/modules/chat/chat-bar/index.js +39 -51
  175. package/lib/modules/chat/chat-room-store.d.ts +135 -0
  176. package/lib/modules/chat/chat-room-store.js +954 -0
  177. package/lib/modules/chat/chat-select/index.css +7 -27
  178. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  179. package/lib/modules/chat/chat-select/index.js +4 -18
  180. package/lib/modules/chat/chat.d.ts +2 -1
  181. package/lib/modules/chat/chat.js +128 -196
  182. package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
  183. package/lib/modules/chat/components/chat-action/index.js +28 -0
  184. package/lib/modules/chat/components/chat-bar/index.css +85 -0
  185. package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
  186. package/lib/modules/chat/components/chat-bar/index.js +145 -0
  187. package/lib/modules/chat/components/chat-select/index.css +185 -0
  188. package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
  189. package/lib/modules/chat/components/chat-select/index.js +237 -0
  190. package/lib/modules/chat/components/message-list/index.d.ts +4 -0
  191. package/lib/modules/chat/components/message-list/index.js +650 -0
  192. package/lib/modules/chat/index.d.ts +13 -5
  193. package/lib/modules/chat/index.dev.d.ts +0 -1
  194. package/lib/modules/chat/index.dev.js +71 -72
  195. package/lib/modules/chat/index.js +45 -22
  196. package/lib/modules/chat/message-list.js +51 -68
  197. package/lib/modules/chat/mock.d.ts +1 -1
  198. package/lib/modules/chat/store.d.ts +17 -162
  199. package/lib/modules/chat/store.js +95 -963
  200. package/lib/modules/chat/types.d.ts +70 -0
  201. package/lib/modules/chat/types.js +17 -0
  202. package/lib/modules/chat/view.d.ts +10 -0
  203. package/lib/modules/chat/view.js +372 -0
  204. package/lib/modules/components/device-control/components/audio-menu/index.js +2 -2
  205. package/lib/modules/components/device-control/components/microphone/index.js +7 -7
  206. package/lib/modules/components/device-control/store.d.ts +11 -12
  207. package/lib/modules/components/device-control/store.js +46 -49
  208. package/lib/modules/components/dialog-container/component/body.js +2 -1
  209. package/lib/modules/components/dialog-container/index.d.ts +2 -2
  210. package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
  211. package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
  212. package/lib/modules/components/leave-meeting/components/index.css +125 -0
  213. package/lib/modules/components/leave-meeting/index.d.ts +4 -0
  214. package/lib/modules/components/leave-meeting/index.js +147 -0
  215. package/lib/modules/components/leave-meeting/store.d.ts +31 -0
  216. package/lib/modules/components/leave-meeting/store.js +292 -0
  217. package/lib/modules/components/member-window/index.d.ts +1 -1
  218. package/lib/modules/components/member-window/index.js +12 -6
  219. package/lib/modules/components/security-menu/index.d.ts +2 -0
  220. package/lib/modules/components/security-menu/index.js +34 -35
  221. package/lib/modules/components/tab-frame/index.d.ts +2 -2
  222. package/lib/modules/components/tab-frame/index.js +26 -5
  223. package/lib/modules/connection-gateway/components/computer/index.js +4 -4
  224. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
  225. package/lib/modules/connection-gateway/components/phone/index.js +2 -2
  226. package/lib/modules/connection-gateway/components/tabs/index.js +1 -2
  227. package/lib/modules/connection-gateway/enums.d.ts +4 -0
  228. package/lib/modules/connection-gateway/enums.js +12 -0
  229. package/lib/modules/connection-gateway/index.d.ts +13 -4
  230. package/lib/modules/connection-gateway/index.js +25 -15
  231. package/lib/modules/connection-gateway/store.d.ts +22 -18
  232. package/lib/modules/connection-gateway/store.js +60 -36
  233. package/lib/modules/connection-gateway/types.d.ts +4 -0
  234. package/lib/modules/connection-gateway/types.js +6 -0
  235. package/lib/modules/connection-gateway/view.js +2 -2
  236. package/lib/modules/control-bar/components/meeting-details/index.js +30 -25
  237. package/lib/modules/control-bar/components/more-actions/index.css +18 -0
  238. package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
  239. package/lib/modules/control-bar/components/more-actions/index.js +58 -9
  240. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
  241. package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
  242. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
  243. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
  244. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
  245. package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
  246. package/lib/modules/control-bar/enums.d.ts +21 -0
  247. package/lib/modules/control-bar/enums.js +31 -0
  248. package/lib/modules/control-bar/index.d.ts +30 -7
  249. package/lib/modules/control-bar/index.js +46 -27
  250. package/lib/modules/control-bar/store.d.ts +38 -26
  251. package/lib/modules/control-bar/store.js +172 -282
  252. package/lib/modules/control-bar/types.d.ts +20 -0
  253. package/lib/modules/control-bar/types.js +6 -0
  254. package/lib/modules/control-bar/view.js +68 -34
  255. package/lib/modules/device-pretest/index.js +4 -4
  256. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
  257. package/lib/modules/device-pretest/store.d.ts +8 -9
  258. package/lib/modules/device-pretest/store.js +52 -36
  259. package/lib/modules/dialog/components/Interpreter/electron.js +21 -15
  260. package/lib/modules/dialog/components/Interpreter/index.js +2 -2
  261. package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
  262. package/lib/modules/dialog/components/chat/electron.js +19 -10
  263. package/lib/modules/dialog/components/chat/index.js +2 -2
  264. package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
  265. package/lib/modules/dialog/components/confirm/electron.js +68 -38
  266. package/lib/modules/dialog/components/confirm/index.js +1 -1
  267. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
  268. package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
  269. package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
  270. package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
  271. package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
  272. package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
  273. package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
  274. package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
  275. package/lib/modules/dialog/components/control-bar/index.js +122 -9
  276. package/lib/modules/dialog/components/device-setting/electron.js +6 -2
  277. package/lib/modules/dialog/components/device-setting/index.js +2 -2
  278. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +7 -0
  279. package/lib/modules/dialog/components/dialog-container/component/body.js +77 -0
  280. package/lib/modules/dialog/components/dialog-container/index.css +81 -0
  281. package/lib/modules/dialog/components/dialog-container/index.d.ts +16 -0
  282. package/lib/modules/dialog/components/dialog-container/index.js +112 -0
  283. package/lib/modules/dialog/components/invite/index.js +32 -7
  284. package/lib/modules/dialog/components/live-streaming/index.js +9 -5
  285. package/lib/modules/dialog/components/participant/electron.js +11 -5
  286. package/lib/modules/dialog/components/participant/index.js +4 -3
  287. package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
  288. package/lib/modules/dialog/components/system-preference/electron.js +1 -1
  289. package/lib/modules/dialog/components/toast/index.js +1 -1
  290. package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
  291. package/lib/modules/dialog/components/video-window/index.js +148 -0
  292. package/lib/modules/dialog/components/whiteboard/index.js +2 -2
  293. package/lib/modules/dialog/dialogs.d.ts +2 -5
  294. package/lib/modules/dialog/dialogs.js +2 -157
  295. package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
  296. package/lib/modules/dialog/hooks/useElectron.js +91 -35
  297. package/lib/modules/dialog/index.d.ts +30 -4
  298. package/lib/modules/dialog/index.js +62 -6
  299. package/lib/modules/dialog/store.d.ts +46 -12
  300. package/lib/modules/dialog/store.js +121 -65
  301. package/lib/modules/dialog/types/index.d.ts +14 -3
  302. package/lib/modules/event-confirm/index.css +1 -1
  303. package/lib/modules/event-confirm/index.d.ts +13 -6
  304. package/lib/modules/event-confirm/index.js +28 -11
  305. package/lib/modules/event-confirm/store.d.ts +9 -3
  306. package/lib/modules/event-confirm/store.js +16 -7
  307. package/lib/modules/event-confirm/view.js +5 -1
  308. package/lib/modules/event-toast/index.d.ts +7 -6
  309. package/lib/modules/event-toast/index.js +19 -8
  310. package/lib/modules/event-toast/store.d.ts +8 -3
  311. package/lib/modules/event-toast/store.js +15 -6
  312. package/lib/modules/invite/components/error-tips.d.ts +4 -0
  313. package/lib/modules/invite/components/error-tips.js +18 -0
  314. package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
  315. package/lib/modules/invite/components/pstn-invite.js +297 -0
  316. package/lib/modules/invite/components/voip-invite.d.ts +1 -0
  317. package/lib/modules/invite/components/voip-invite.js +276 -0
  318. package/lib/modules/invite/enums.d.ts +22 -0
  319. package/lib/modules/invite/enums.js +33 -0
  320. package/lib/modules/invite/index.d.ts +7 -8
  321. package/lib/modules/invite/index.js +17 -15
  322. package/lib/modules/invite/pstn-invite.js +9 -7
  323. package/lib/modules/invite/store.d.ts +11 -26
  324. package/lib/modules/invite/store.js +55 -25
  325. package/lib/modules/invite/types.d.ts +14 -0
  326. package/lib/modules/invite/types.js +6 -0
  327. package/lib/modules/invite/view.d.ts +0 -4
  328. package/lib/modules/invite/view.js +7 -11
  329. package/lib/modules/invite/voip-invite.js +6 -5
  330. package/lib/modules/layout/components/Aside.js +34 -17
  331. package/lib/modules/layout/components/Carousel.js +1 -1
  332. package/lib/modules/layout/components/Gallery.js +1 -1
  333. package/lib/modules/layout/components/index.d.ts +1 -1
  334. package/lib/modules/layout/components/index.js +4 -4
  335. package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
  336. package/lib/modules/layout/components/who-is-speaking.js +60 -0
  337. package/lib/modules/layout/index.d.ts +26 -4
  338. package/lib/modules/layout/index.dev.d.ts +0 -1
  339. package/lib/modules/layout/index.dev.js +312 -386
  340. package/lib/modules/layout/index.js +25 -10
  341. package/lib/modules/layout/member-window/index.css +18 -116
  342. package/lib/modules/layout/member-window/index.d.ts +3 -10
  343. package/lib/modules/layout/member-window/index.js +115 -227
  344. package/lib/modules/layout/store.d.ts +61 -71
  345. package/lib/modules/layout/store.js +311 -573
  346. package/lib/modules/layout/view.d.ts +2 -0
  347. package/lib/modules/layout/view.js +127 -2
  348. package/lib/modules/live-streaming/index.d.ts +15 -7
  349. package/lib/modules/live-streaming/index.dev.js +13 -13
  350. package/lib/modules/live-streaming/index.js +20 -15
  351. package/lib/modules/live-streaming/store.d.ts +21 -14
  352. package/lib/modules/live-streaming/store.js +84 -144
  353. package/lib/modules/live-streaming/view.js +2 -2
  354. package/lib/modules/notification/index.d.ts +9 -11
  355. package/lib/modules/notification/index.js +21 -14
  356. package/lib/modules/notification/interpreter-status/index.js +1 -2
  357. package/lib/modules/notification/store.d.ts +5 -11
  358. package/lib/modules/notification/store.js +12 -62
  359. package/lib/modules/notification/view.d.ts +5 -3
  360. package/lib/modules/notification/view.js +8 -5
  361. package/lib/modules/offscreen-pulling/index.js +1 -1
  362. package/lib/modules/participant/attendee/index.css +51 -0
  363. package/lib/modules/participant/attendee/index.d.ts +5 -8
  364. package/lib/modules/participant/attendee/index.js +15 -61
  365. package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  366. package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
  367. package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
  368. package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
  369. package/lib/modules/participant/components/attendee/index.css +69 -0
  370. package/lib/modules/participant/components/attendee/index.d.ts +4 -0
  371. package/lib/modules/participant/components/attendee/index.js +337 -0
  372. package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
  373. package/lib/modules/participant/components/can-moveable/index.js +68 -0
  374. package/lib/modules/participant/components/drop-menu/index.js +8 -8
  375. package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
  376. package/lib/modules/participant/components/footer/buttons.js +2 -3
  377. package/lib/modules/participant/components/footer/index.js +2 -2
  378. package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
  379. package/lib/modules/participant/components/mute-all/index.js +31 -44
  380. package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
  381. package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
  382. package/lib/modules/participant/components/participants/index.js +27 -50
  383. package/lib/modules/participant/components/user-action/index.d.ts +17 -0
  384. package/lib/modules/participant/components/user-action/index.js +169 -0
  385. package/lib/modules/participant/index.d.ts +34 -7
  386. package/lib/modules/participant/index.dev.d.ts +0 -1
  387. package/lib/modules/participant/index.dev.js +87 -116
  388. package/lib/modules/participant/index.js +39 -13
  389. package/lib/modules/participant/member-list-data-source.d.ts +4 -1
  390. package/lib/modules/participant/member-list-data-source.js +58 -31
  391. package/lib/modules/participant/room-control-drop-menu/index.css +0 -37
  392. package/lib/modules/participant/store.d.ts +58 -25
  393. package/lib/modules/participant/store.js +321 -298
  394. package/lib/modules/participant/type.d.ts +45 -1
  395. package/lib/modules/participant/type.js +15 -1
  396. package/lib/modules/pc-audio-connect/index.css +12 -0
  397. package/lib/modules/pc-audio-connect/index.d.ts +22 -0
  398. package/lib/modules/pc-audio-connect/index.js +68 -0
  399. package/lib/modules/pc-audio-connect/store.d.ts +46 -0
  400. package/lib/modules/pc-audio-connect/store.js +301 -0
  401. package/lib/modules/pc-audio-connect/types.d.ts +0 -0
  402. package/lib/modules/pc-audio-connect/types.js +1 -0
  403. package/lib/modules/pc-audio-connect/view.d.ts +3 -0
  404. package/lib/modules/pc-audio-connect/view.js +66 -0
  405. package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
  406. package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
  407. package/lib/modules/phone-audio-connect/components/callinfo/index.js +77 -0
  408. package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
  409. package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
  410. package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
  411. package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
  412. package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
  413. package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
  414. package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
  415. package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
  416. package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
  417. package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
  418. package/lib/modules/phone-audio-connect/enums.js +12 -0
  419. package/lib/modules/phone-audio-connect/index.css +56 -0
  420. package/lib/modules/phone-audio-connect/index.d.ts +16 -0
  421. package/lib/modules/phone-audio-connect/index.js +63 -0
  422. package/lib/modules/phone-audio-connect/store.d.ts +46 -0
  423. package/lib/modules/phone-audio-connect/store.js +320 -0
  424. package/lib/modules/phone-audio-connect/types.d.ts +4 -0
  425. package/lib/modules/phone-audio-connect/types.js +6 -0
  426. package/lib/modules/phone-audio-connect/view.d.ts +3 -0
  427. package/lib/modules/phone-audio-connect/view.js +184 -0
  428. package/lib/modules/setting/audio-settings/audio-settings.js +5 -5
  429. package/lib/modules/setting/index.d.ts +25 -5
  430. package/lib/modules/setting/index.dev.d.ts +0 -1
  431. package/lib/modules/setting/index.dev.js +120 -81
  432. package/lib/modules/setting/index.js +35 -9
  433. package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
  434. package/lib/modules/setting/state/index.js +3 -3
  435. package/lib/modules/setting/store.d.ts +48 -14
  436. package/lib/modules/setting/store.js +105 -114
  437. package/lib/modules/setting/translate-settings/translate-settings.js +3 -3
  438. package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
  439. package/lib/modules/setting/view.js +6 -35
  440. package/lib/modules/share-screen/components/selection/index.css +70 -0
  441. package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
  442. package/lib/modules/share-screen/components/selection/index.js +267 -0
  443. package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
  444. package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
  445. package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
  446. package/lib/modules/share-screen/index.d.ts +15 -18
  447. package/lib/modules/share-screen/index.dev.d.ts +0 -1
  448. package/lib/modules/share-screen/index.dev.js +90 -91
  449. package/lib/modules/share-screen/index.js +22 -22
  450. package/lib/modules/share-screen/selection/index.css +0 -4
  451. package/lib/modules/share-screen/selection/index.js +129 -126
  452. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  453. package/lib/modules/share-screen/store.d.ts +36 -32
  454. package/lib/modules/share-screen/store.js +250 -219
  455. package/lib/modules/share-screen/types.d.ts +27 -0
  456. package/lib/modules/share-screen/types.js +6 -0
  457. package/lib/modules/share-screen/view.js +1 -1
  458. package/lib/modules/sound-effect/index.d.ts +9 -4
  459. package/lib/modules/sound-effect/index.js +72 -40
  460. package/lib/modules/sound-effect/sound-effect-player.js +1 -1
  461. package/lib/modules/state-bar/index.d.ts +16 -13
  462. package/lib/modules/state-bar/index.dev.d.ts +0 -1
  463. package/lib/modules/state-bar/index.dev.js +78 -83
  464. package/lib/modules/state-bar/index.js +23 -7
  465. package/lib/modules/state-bar/meeting-details.js +24 -12
  466. package/lib/modules/state-bar/meeting-network-state.js +1 -1
  467. package/lib/modules/state-bar/store.d.ts +20 -10
  468. package/lib/modules/state-bar/store.js +84 -87
  469. package/lib/modules/state-bar/view.js +2 -2
  470. package/lib/modules/video-window/deviceState/index.d.ts +2 -2
  471. package/lib/modules/video-window/deviceState/index.js +4 -6
  472. package/lib/modules/video-window/index.css +1 -4
  473. package/lib/modules/video-window/index.d.ts +33 -6
  474. package/lib/modules/video-window/index.js +63 -15
  475. package/lib/modules/video-window/members/index.css +1 -0
  476. package/lib/modules/video-window/members/index.js +25 -11
  477. package/lib/modules/video-window/store.d.ts +58 -27
  478. package/lib/modules/video-window/store.js +166 -161
  479. package/lib/modules/waiting-room-layout/index.d.ts +11 -4
  480. package/lib/modules/waiting-room-layout/index.js +26 -13
  481. package/lib/modules/waiting-room-layout/store.d.ts +6 -3
  482. package/lib/modules/waiting-room-layout/store.js +17 -15
  483. package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
  484. package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
  485. package/lib/modules/whiteboard/index.d.ts +20 -14
  486. package/lib/modules/whiteboard/index.js +250 -223
  487. package/lib/modules/whiteboard/view.d.ts +2 -0
  488. package/lib/modules/whiteboard/view.js +49 -0
  489. package/lib/plugins/browser-runtime-plugin.js +5 -1
  490. package/lib/providers/chat-provider.d.ts +71 -0
  491. package/lib/providers/chat-provider.js +91 -0
  492. package/lib/providers/device-privilege-provider.d.ts +52 -6
  493. package/lib/providers/device-privilege-provider.js +212 -183
  494. package/lib/providers/device-provider.d.ts +203 -45
  495. package/lib/providers/device-provider.js +486 -398
  496. package/lib/providers/device-stream-provider.d.ts +12 -13
  497. package/lib/providers/device-stream-provider.js +86 -193
  498. package/lib/providers/dialog-provider.d.ts +135 -0
  499. package/lib/providers/dialog-provider.js +204 -0
  500. package/lib/providers/event-provider.d.ts +1 -21
  501. package/lib/providers/event-provider.js +19 -57
  502. package/lib/providers/interpreter-provider.d.ts +218 -7
  503. package/lib/providers/interpreter-provider.js +1072 -80
  504. package/lib/providers/local-storage-provider.d.ts +9 -0
  505. package/lib/providers/message-provider.d.ts +69 -0
  506. package/lib/providers/message-provider.js +98 -0
  507. package/lib/providers/monitor-provider.d.ts +5 -0
  508. package/lib/providers/phone-audio-provider.d.ts +131 -0
  509. package/lib/providers/phone-audio-provider.js +515 -0
  510. package/lib/providers/privilege-provider.d.ts +325 -12
  511. package/lib/providers/privilege-provider.js +111 -295
  512. package/lib/providers/renderer-provider.d.ts +46 -4
  513. package/lib/providers/renderer-provider.js +57 -60
  514. package/lib/providers/room-provider.d.ts +113 -6
  515. package/lib/providers/room-provider.js +667 -87
  516. package/lib/providers/screen-share-provider.d.ts +65 -0
  517. package/lib/providers/screen-share-provider.js +238 -0
  518. package/lib/providers/session-provider.d.ts +30 -0
  519. package/lib/runtime.d.ts +2 -0
  520. package/lib/scenes/main-scene.d.ts +41 -3
  521. package/lib/scenes/main-scene.js +407 -246
  522. package/lib/scenes/waiting-scene.d.ts +34 -4
  523. package/lib/scenes/waiting-scene.js +163 -56
  524. package/lib/shared-data-source/chat-data.d.ts +14 -0
  525. package/lib/shared-data-source/chat-data.js +130 -0
  526. package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
  527. package/lib/shared-data-source/device-privilege-data.js +25 -0
  528. package/lib/shared-data-source/interpreter.d.ts +63 -0
  529. package/lib/shared-data-source/interpreter.js +248 -0
  530. package/lib/shared-data-source/layout-data.d.ts +29 -0
  531. package/lib/shared-data-source/layout-data.js +181 -0
  532. package/lib/shared-data-source/pin-data.d.ts +9 -0
  533. package/lib/shared-data-source/pin-data.js +24 -0
  534. package/lib/shared-data-source/setting.d.ts +32 -0
  535. package/lib/shared-data-source/setting.js +153 -0
  536. package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
  537. package/lib/shared-data-source/speaker-spotlight.js +15 -0
  538. package/lib/shared-data-source/video-window.d.ts +161 -0
  539. package/lib/shared-data-source/video-window.js +1202 -0
  540. package/lib/shared-data-source/waiting-room.d.ts +19 -0
  541. package/lib/shared-data-source/waiting-room.js +158 -0
  542. package/lib/translations/enUS.d.ts +43 -17
  543. package/lib/translations/enUS.js +59 -33
  544. package/lib/translations/zhCN.d.ts +43 -17
  545. package/lib/translations/zhCN.js +57 -31
  546. package/lib/type.d.ts +270 -25
  547. package/lib/type.js +67 -2
  548. package/lib/ui-manager.d.ts +20 -16
  549. package/lib/ui-manager.js +59 -795
  550. package/lib/ui-scene.d.ts +6 -1
  551. package/lib/ui-scene.js +372 -42
  552. package/lib/utilities/constant.d.ts +63 -86
  553. package/lib/utilities/constant.js +151 -175
  554. package/lib/utilities/copyText.js +8 -7
  555. package/lib/utilities/extract.d.ts +1 -1
  556. package/lib/utilities/privilege.d.ts +4 -0
  557. package/lib/utilities/privilege.js +31 -0
  558. package/lib/utilities/setting-config-storage.d.ts +12 -0
  559. package/lib/utilities/setting-config-storage.js +102 -0
  560. package/lib/utilities/tools.d.ts +35 -3
  561. package/lib/utilities/tools.js +104 -2
  562. package/lib/utilities/video-track-render-context.d.ts +3 -4
  563. package/lib/utilities/video-track-render-context.js +1 -1
  564. package/package.json +5 -5
  565. package/public/assets/full-screen-error-boundary-img.png +0 -0
  566. package/public/assets/leave-meeting.png +0 -0
  567. package/public/index.html +24 -14
@@ -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,24 @@ 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
36
  require("core-js/modules/esnext.async-iterator.find.js");
43
37
  require("core-js/modules/esnext.async-iterator.for-each.js");
44
- require("core-js/modules/esnext.async-iterator.map.js");
45
38
  require("core-js/modules/esnext.async-iterator.some.js");
46
39
  require("core-js/modules/esnext.iterator.constructor.js");
47
- require("core-js/modules/esnext.iterator.filter.js");
48
40
  require("core-js/modules/esnext.iterator.find.js");
49
41
  require("core-js/modules/esnext.iterator.for-each.js");
50
- require("core-js/modules/esnext.iterator.map.js");
51
42
  require("core-js/modules/esnext.iterator.some.js");
52
43
  require("core-js/modules/esnext.map.delete-all.js");
53
44
  require("core-js/modules/esnext.map.emplace.js");
@@ -101,24 +92,19 @@ var _type = require("fcr-core/lib/type");
101
92
  var _decorator = require("agora-foundation/lib/decorator");
102
93
  var _logger = require("agora-foundation/lib/logger");
103
94
  var _type2 = require("../video-window/type");
104
- var _eventStore = require("../../common/event-store");
105
- var _constant = require("../../utilities/constant");
106
95
  var _type3 = require("./type");
107
- var _Layout = require("./components/Layout");
108
- var _videoWindowDatasource = require("./video-window-datasource");
109
96
  var _type4 = require("../whiteboard/type");
110
97
  var _i18n = require("agora-ui-foundation/lib/i18n");
111
98
  var _type5 = require("fcr-core/lib/room-control/chatroom-control/type");
112
99
  var _type6 = require("agora-rte-sdk/lib/core/scene/type");
113
100
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
114
101
  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
102
  var _react = require("react");
119
103
  var _mobxUtils = require("mobx-utils");
104
+ var _constant = require("../../utilities/constant");
105
+ var _view = require("./view");
120
106
  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;
107
+ 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
108
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
123
109
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
124
110
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -150,35 +136,16 @@ var _R = /*#__PURE__*/new WeakMap();
150
136
  var _S = /*#__PURE__*/new WeakMap();
151
137
  var _T = /*#__PURE__*/new WeakMap();
152
138
  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");
139
+ _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
140
  var LayoutStore = exports["default"] = /*#__PURE__*/function () {
163
141
  function LayoutStore(params) {
164
- var _this = this,
165
- _defaultVideoGalleryS;
142
+ var _this = this;
166
143
  (0, _classCallCheck2["default"])(this, LayoutStore);
167
144
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
168
- (0, _defineProperty2["default"])(this, "_videoWindowDataSource", new _videoWindowDatasource.FcrUIVideoWindowDataSource());
169
145
  (0, _defineProperty2["default"])(this, "_localView", null);
170
- (0, _defineProperty2["default"])(this, "_subscriptions", []);
146
+ (0, _defineProperty2["default"])(this, "_disposers", []);
171
147
  (0, _defineProperty2["default"])(this, "_barLockTimer", 0);
172
148
  (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
149
  (0, _defineProperty2["default"])(this, "_managerRoleUpdateForToast", new Set([_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST]));
183
150
  // Slots
184
151
  _classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
@@ -190,33 +157,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
190
157
  _classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
191
158
  // State
192
159
  _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));
160
+ _classPrivateFieldInitSpec(this, _I, _init_aside(this, false));
161
+ _classPrivateFieldInitSpec(this, _J, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
162
+ _classPrivateFieldInitSpec(this, _K, _init_barHovering(this, true));
163
+ _classPrivateFieldInitSpec(this, _L, _init_barLocked(this, true));
164
+ _classPrivateFieldInitSpec(this, _M, _init_barHidden(this, false));
165
+ _classPrivateFieldInitSpec(this, _N, _init_asideWidth(this, _view.MinAsideWidth));
166
+ _classPrivateFieldInitSpec(this, _O, _init_userVolumeMap(this, new Map()));
167
+ _classPrivateFieldInitSpec(this, _P, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
168
+ _classPrivateFieldInitSpec(this, _Q, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
169
+ _classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
170
+ // @observable accessor spotlightStreamId = '';
171
+ // @observable accessor shouldHideNonVideoParticipants = false;
172
+ _classPrivateFieldInitSpec(this, _S, _init_participantCount(this, 0));
173
+ _classPrivateFieldInitSpec(this, _T, _init_ownerUser(this, undefined));
174
+ _classPrivateFieldInitSpec(this, _U, _init_localUser(this));
218
175
  (0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
219
- return _this._securityStore.getAllowedOperations(targetRole, isSelf);
176
+ return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
220
177
  }));
221
178
  (0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
222
179
  if (layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
@@ -224,9 +181,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
224
181
  } else if (layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
225
182
  _this._switchToGallery();
226
183
  }
227
- _this._uiEventStore.notifyLayoutChanged({
228
- layout: layout
229
- });
230
184
  }));
231
185
  (0, _defineProperty2["default"])(this, "_setSpotlightStream", function () {
232
186
  var spotlightStream = _this._findSpotlightStream();
@@ -234,73 +188,36 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
234
188
  var streamId = spotlightStream.streamId;
235
189
  _this._videoWindowDataSource.setSpeakerSpotlight(streamId);
236
190
  });
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;
191
+ var roomControl = params.roomControl,
192
+ chatProvider = params.chatProvider;
193
+ this._userControl = roomControl.getUserControl();
194
+ this._streamControl = roomControl.getStreamControl();
195
+ this._chatRoomControl = roomControl.getChatRoomControl();
196
+ this._whiteBoardControl = roomControl.getBoardControl();
250
197
  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
- });
198
+ this._sharedLayoutDataSource = params.sharedLayoutDataSource;
199
+ this._eventProvider = params.eventProvider;
200
+ this._deviceProvider = params.deviceProvider;
201
+ this._privilegeProvider = params.privilegeProvider;
202
+ this._sharedSettingDataSource = params.sharedSettingDataSource;
203
+ this._sharedInterpreterDataSource = params.sharedInterpreterDataSource;
204
+ this._sharedSettingDataSource = params.sharedSettingDataSource;
205
+ this._chatProvider = chatProvider;
206
+ this._videoWindowDataSource = params.sharedVideoWindowDataSource;
207
+ this.localUser = this._userControl.getLocalUser();
208
+ this.chatRoomState = this._chatRoomControl.getConnectionState();
288
209
  this._addListeners();
289
210
  //@ts-ignore
290
211
  window.layoutStore = this;
291
- this.setLocalUserRole(userControl.getLocalUser().userRole);
212
+ this.setLocalUserRole(this._userControl.getLocalUser().userRole);
292
213
  this._initStream();
293
214
  this._handleFoldListChanged();
294
215
  this._handleMainListChanged();
295
216
  this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
296
217
  this.setWhiteboardActive(this._whiteBoardControl.getBoardActiveInfo().isActive);
297
218
  (0, _mobx.runInAction)(function () {
298
- _this.participantCount = userControl.getAllUserCount();
219
+ _this.participantCount = _this._userControl.getAllUserCount();
299
220
  });
300
- if (this.isRobot) {
301
- this.updateAsideContent(false, true);
302
- }
303
- (0, _parameters.getDefaultVideoGallerySize)(params.parameters);
304
221
  }
305
222
  return (0, _createClass2["default"])(LayoutStore, [{
306
223
  key: "participant",
@@ -367,7 +284,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
367
284
  _classPrivateFieldSet(_H, this, v);
368
285
  }
369
286
  }, {
370
- key: "galleryMaxSize",
287
+ key: "aside",
371
288
  get: function get() {
372
289
  return _classPrivateFieldGet(_I, this);
373
290
  },
@@ -375,7 +292,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
375
292
  _classPrivateFieldSet(_I, this, v);
376
293
  }
377
294
  }, {
378
- key: "aside",
295
+ key: "localUserRole",
379
296
  get: function get() {
380
297
  return _classPrivateFieldGet(_J, this);
381
298
  },
@@ -383,7 +300,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
383
300
  _classPrivateFieldSet(_J, this, v);
384
301
  }
385
302
  }, {
386
- key: "asideContent",
303
+ key: "barHovering",
387
304
  get: function get() {
388
305
  return _classPrivateFieldGet(_K, this);
389
306
  },
@@ -391,7 +308,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
391
308
  _classPrivateFieldSet(_K, this, v);
392
309
  }
393
310
  }, {
394
- key: "localUserRole",
311
+ key: "barLocked",
395
312
  get: function get() {
396
313
  return _classPrivateFieldGet(_L, this);
397
314
  },
@@ -399,7 +316,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
399
316
  _classPrivateFieldSet(_L, this, v);
400
317
  }
401
318
  }, {
402
- key: "barHovering",
319
+ key: "barHidden",
403
320
  get: function get() {
404
321
  return _classPrivateFieldGet(_M, this);
405
322
  },
@@ -407,7 +324,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
407
324
  _classPrivateFieldSet(_M, this, v);
408
325
  }
409
326
  }, {
410
- key: "barLocked",
327
+ key: "asideWidth",
411
328
  get: function get() {
412
329
  return _classPrivateFieldGet(_N, this);
413
330
  },
@@ -415,7 +332,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
415
332
  _classPrivateFieldSet(_N, this, v);
416
333
  }
417
334
  }, {
418
- key: "barHidden",
335
+ key: "userVolumeMap",
419
336
  get: function get() {
420
337
  return _classPrivateFieldGet(_O, this);
421
338
  },
@@ -423,7 +340,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
423
340
  _classPrivateFieldSet(_O, this, v);
424
341
  }
425
342
  }, {
426
- key: "asideWidth",
343
+ key: "chatRoomState",
427
344
  get: function get() {
428
345
  return _classPrivateFieldGet(_P, this);
429
346
  },
@@ -431,7 +348,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
431
348
  _classPrivateFieldSet(_P, this, v);
432
349
  }
433
350
  }, {
434
- key: "userVolumeMap",
351
+ key: "videoWindowPreviewType",
435
352
  get: function get() {
436
353
  return _classPrivateFieldGet(_Q, this);
437
354
  },
@@ -439,7 +356,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
439
356
  _classPrivateFieldSet(_Q, this, v);
440
357
  }
441
358
  }, {
442
- key: "chatRoomState",
359
+ key: "whiteboardActive",
443
360
  get: function get() {
444
361
  return _classPrivateFieldGet(_R, this);
445
362
  },
@@ -447,7 +364,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
447
364
  _classPrivateFieldSet(_R, this, v);
448
365
  }
449
366
  }, {
450
- key: "videoWindowPreviewType",
367
+ key: "participantCount",
451
368
  get: function get() {
452
369
  return _classPrivateFieldGet(_S, this);
453
370
  },
@@ -455,7 +372,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
455
372
  _classPrivateFieldSet(_S, this, v);
456
373
  }
457
374
  }, {
458
- key: "whiteboardActive",
375
+ key: "ownerUser",
459
376
  get: function get() {
460
377
  return _classPrivateFieldGet(_T, this);
461
378
  },
@@ -463,7 +380,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
463
380
  _classPrivateFieldSet(_T, this, v);
464
381
  }
465
382
  }, {
466
- key: "spotlightStreamId",
383
+ key: "localUser",
467
384
  get: function get() {
468
385
  return _classPrivateFieldGet(_U, this);
469
386
  },
@@ -471,88 +388,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
471
388
  _classPrivateFieldSet(_U, this, v);
472
389
  }
473
390
  }, {
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",
391
+ key: "streamControl",
491
392
  get: function get() {
492
- return _classPrivateFieldGet(_X, this);
493
- },
494
- set: function set(v) {
495
- _classPrivateFieldSet(_X, this, v);
393
+ return this._streamControl;
496
394
  }
497
395
  }, {
498
- key: "localUser",
396
+ key: "shouldHideNonVideoParticipants",
499
397
  get: function get() {
500
- return _classPrivateFieldGet(_Y, this);
501
- },
502
- set: function set(v) {
503
- _classPrivateFieldSet(_Y, this, v);
398
+ return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants || false;
504
399
  }
505
400
  }, {
506
401
  key: "enableSpotlight",
507
402
  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;
403
+ return this._sharedSettingDataSource.setting.spotlightEnabled;
546
404
  }
547
405
  }, {
548
406
  key: "isWaterMarkEnabled",
549
407
  get: function get() {
550
- return this._securityStore.isWaterMarkEnabled();
408
+ return this._privilegeProvider.isWaterMarkEnabled();
551
409
  }
552
410
  }, {
553
411
  key: "isMulti",
554
412
  get: function get() {
555
- return this._securityStore.isMulti();
413
+ return this._privilegeProvider.isMulti();
556
414
  }
557
415
  }, {
558
416
  key: "layout",
@@ -567,20 +425,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
567
425
  }, {
568
426
  key: "mainList",
569
427
  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;
428
+ return this._videoWindowDataSource.layoutMainList;
584
429
  }
585
430
  }, {
586
431
  key: "mainListMapByAudioStreamId",
@@ -595,6 +440,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
595
440
  });
596
441
  return map;
597
442
  }
443
+ }, {
444
+ key: "spotlightStreamId",
445
+ get: function get() {
446
+ return this._videoWindowDataSource.spotlightStreamId;
447
+ }
598
448
  }, {
599
449
  key: "foldList",
600
450
  get: function get() {
@@ -612,6 +462,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
612
462
  get: function get() {
613
463
  return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
614
464
  }
465
+ }, {
466
+ key: "asideLayout",
467
+ get: function get() {
468
+ var _this$_sharedLayoutDa;
469
+ return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
470
+ }
615
471
  }, {
616
472
  key: "carouselList",
617
473
  get: function get() {
@@ -637,60 +493,66 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
637
493
  }, {
638
494
  key: "findSpotlightUser",
639
495
  get: function get() {
640
- var _this3 = this;
496
+ var _this2 = this;
641
497
  return this.spotlightStreamId ? this.mainList.find(function (item) {
642
- return item.videoStreamId === _this3.spotlightStreamId || item.audioStreamId === _this3.spotlightStreamId;
498
+ return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
643
499
  }) : null;
644
500
  }
645
501
  }, {
646
502
  key: "microphoneEnabled",
647
503
  get: function get() {
648
- return this._deviceStore.microphoneEnabled;
504
+ return this._deviceProvider.microphoneEnabled;
649
505
  }
650
506
  }, {
651
507
  key: "allowChat",
652
508
  get: function get() {
653
- return this._securityStore.allowChat();
509
+ return this._privilegeProvider.allowChat();
654
510
  }
655
511
  }, {
656
512
  key: "allowUnmuteSelfAudio",
657
513
  get: function get() {
658
- return this._securityStore.allowUnmuteSelfAudio();
514
+ return this._privilegeProvider.allowUnmuteSelfAudio();
659
515
  }
660
516
  }, {
661
517
  key: "allowUnmuteSelfVideo",
662
518
  get: function get() {
663
- return this._securityStore.allowUnmuteSelfVideo();
519
+ return this._privilegeProvider.allowUnmuteSelfVideo();
664
520
  }
665
521
  }, {
666
522
  key: "isHostOrCoHost",
667
523
  get: function get() {
668
524
  return this.localUserRole === _type.FcrUserRole.HOST || this.localUserRole === _type.FcrUserRole.COHOST;
669
525
  }
526
+ }, {
527
+ key: "galleryMaxSize",
528
+ get: function get() {
529
+ var _this$_sharedLayoutDa2;
530
+ return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.layoutSize;
531
+ }
670
532
  }, {
671
533
  key: "allowedAllChat",
672
534
  get: function get() {
673
- return this._securityStore.allowedAllChat();
535
+ return this._privilegeProvider.allowedAllChat();
674
536
  }
675
537
  }, {
676
538
  key: "allowedPublicChatAndDisallowedPrivateChat",
677
539
  get: function get() {
678
- return this._securityStore.allowedPublicChatAndDisallowedPrivateChat();
540
+ return this._privilegeProvider.allowedPublicChatAndDisallowedPrivateChat();
679
541
  }
680
542
  }, {
681
543
  key: "disallowedPublicChatAndDisallowedPrivateChatToParticipant",
682
544
  get: function get() {
683
- return this._securityStore.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
545
+ return this._privilegeProvider.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
684
546
  }
685
547
  }, {
686
548
  key: "disallowedAllChat",
687
549
  get: function get() {
688
- return this._securityStore.disallowedAllChat();
550
+ return this._privilegeProvider.disallowedAllChat();
689
551
  }
690
552
  }, {
691
553
  key: "privilegeOperator",
692
554
  get: function get() {
693
- return this._securityStore.privilegeOperator;
555
+ return this._privilegeProvider.privilegeOperator;
694
556
  }
695
557
  }, {
696
558
  key: "localUserId",
@@ -699,37 +561,49 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
699
561
  return (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId;
700
562
  }
701
563
  }, {
702
- key: "getWaterMarkContent",
703
- value: function getWaterMarkContent() {
704
- return this._securityStore.getWaterMarkContent();
564
+ key: "interpreterUsers",
565
+ get: function get() {
566
+ return this._sharedInterpreterDataSource.interpreterUsers;
567
+ }
568
+ }, {
569
+ key: "interpreterState",
570
+ get: function get() {
571
+ return this._sharedInterpreterDataSource.interpreterOff;
572
+ }
573
+ }, {
574
+ key: "asideContent",
575
+ get: function get() {
576
+ return this._sharedLayoutDataSource.asideLayout;
705
577
  }
706
578
  }, {
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);
579
+ key: "participantsRenderAt",
580
+ get: function get() {
581
+ return this._sharedLayoutDataSource.participantsRenderAt;
582
+ }
583
+ }, {
584
+ key: "chatRenderAt",
585
+ get: function get() {
586
+ return this._sharedLayoutDataSource.chatRenderAt;
712
587
  }
713
588
  }, {
714
- key: "setIsWaitingRoomNotify",
715
- value: function setIsWaitingRoomNotify() {
716
- this.isWaitingRoomNotify = false;
717
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
589
+ key: "getWaterMarkContent",
590
+ value: function getWaterMarkContent() {
591
+ return this._privilegeProvider.getWaterMarkContent();
718
592
  }
719
593
  }, {
720
594
  key: "hasMutePermission",
721
595
  value: function hasMutePermission(targetRole) {
722
- return this._securityStore.hasMutePermission(targetRole);
596
+ return this._privilegeProvider.hasMutePermission(targetRole);
723
597
  }
724
598
  }, {
725
599
  key: "hasUnmutePermission",
726
600
  value: function hasUnmutePermission(targetRole) {
727
- return this._securityStore.hasUnmutePermission(targetRole);
601
+ return this._privilegeProvider.hasUnmutePermission(targetRole);
728
602
  }
729
603
  }, {
730
604
  key: "hasRequestStartAudioPermission",
731
605
  value: function hasRequestStartAudioPermission(targetRole) {
732
- return this._securityStore.hasRequestStartAudioPermission(targetRole);
606
+ return this._privilegeProvider.hasRequestStartAudioPermission(targetRole);
733
607
  }
734
608
  }, {
735
609
  key: "toggleMainStream",
@@ -744,48 +618,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
744
618
  }, {
745
619
  key: "addPin",
746
620
  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
- }
621
+ this._videoWindowDataSource.addPinToast(streamId);
769
622
  }
770
623
  }, {
771
624
  key: "removePin",
772
625
  value: function removePin(streamId) {
773
626
  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
- });
627
+ this._videoWindowDataSource.removePinToast(streamId, toastText);
779
628
  }
780
629
  }, {
781
630
  key: "setVideoOrientation",
782
631
  value: function setVideoOrientation() {
783
- this._deviceStore.setVideoOrientation();
632
+ this._deviceProvider.setVideoOrientation();
784
633
  }
785
634
  }, {
786
635
  key: "setAllowChat",
787
636
  value: function setAllowChat(allowChat) {
788
- this._securityStore.setAllowChat(allowChat);
637
+ this._privilegeProvider.setAllowChat(allowChat);
789
638
  }
790
639
  }, {
791
640
  key: "handleSetPinState",
@@ -807,9 +656,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
807
656
  value: function setWhiteboardActive(active) {
808
657
  this.whiteboardActive = active;
809
658
  if (!active && this.manualLayout) {
810
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
811
- layout: this.manualLayout
812
- });
659
+ this._videoWindowDataSource.setLayout(this.manualLayout);
660
+ // this._sharedLayoutDataSource.toggleLayout(this.manualLayout);
813
661
  }
814
662
  }
815
663
  }, {
@@ -839,21 +687,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
839
687
  }
840
688
  }
841
689
  }
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
690
  }, {
854
691
  key: "closeParticipantFromAside",
855
692
  value: function closeParticipantFromAside() {
856
- this._uiEventStore.updateAside({
693
+ this._sharedLayoutDataSource.setAsideLayout({
857
694
  participant: false
858
695
  });
859
696
  }
@@ -861,12 +698,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
861
698
  key: "moveParticipantFromAsideToDialog",
862
699
  value: function moveParticipantFromAsideToDialog() {
863
700
  this.closeParticipantFromAside();
864
- this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
701
+ this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
702
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
865
703
  }
866
704
  }, {
867
705
  key: "closeChatFromAside",
868
706
  value: function closeChatFromAside() {
869
- this._uiEventStore.updateAside({
707
+ this._sharedLayoutDataSource.setAsideLayout({
870
708
  chat: false
871
709
  });
872
710
  }
@@ -874,33 +712,40 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
874
712
  key: "closeAsideChat",
875
713
  value: function closeAsideChat() {
876
714
  this.closeChatFromAside();
877
- this._uiEventStore.notifyChatResetTarget();
715
+ this._eventProvider.notifyChatResetTarget();
878
716
  }
879
717
  }, {
880
718
  key: "moveChatFromAsideToDialog",
881
719
  value: function moveChatFromAsideToDialog() {
882
720
  this.closeChatFromAside();
883
- this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
721
+ this._sharedLayoutDataSource.setChatRenderAt('dialog');
722
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
723
+ this._sharedLayoutDataSource.setAsideLayout({
724
+ chat: true
725
+ });
884
726
  }
885
727
  }, {
886
728
  key: "openPrivateChat",
887
729
  value: function openPrivateChat(userId) {
888
730
  var _this$_userControl;
889
- if (!this._securityStore.permitPrivateChat(userId)) {
731
+ if (!this._privilegeProvider.permitPrivateChat(userId)) {
890
732
  return;
891
733
  }
892
- this._uiEventStore.updateAside({
893
- chat: true
894
- });
734
+ if (!this.asideContent.chat) {
735
+ this._sharedLayoutDataSource.setAsideLayout({
736
+ chat: true
737
+ });
738
+ }
895
739
  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
740
  return u.userId === userId;
897
741
  });
898
- user && this._uiEventStore.notifyChatUpdateTarget(user, _constant.RoomType.MAIN_ROOM);
742
+ // user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
743
+ user && this._chatProvider.setPrivateChatTargetUser(user, _type7.FcrRoomType.Mainroom);
899
744
  }
900
745
  }, {
901
746
  key: "openRenameDialog",
902
747
  value: function openRenameDialog(userId) {
903
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
748
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
904
749
  action: _attendee.ParticipantActionType.RENAME_IN_MEETING,
905
750
  userId: userId
906
751
  });
@@ -915,12 +760,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
915
760
  value: function toggleCollapsed() {
916
761
  var collapsed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !this.collapsed;
917
762
  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;
763
+ this._eventProvider.sendEvent(_constant.FcrUIAction.CAROUSEL_COLLAPSED, collapsed);
924
764
  }
925
765
  }, {
926
766
  key: "toggleAside",
@@ -931,7 +771,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
931
771
  }, {
932
772
  key: "asideWidthChanged",
933
773
  value: function asideWidthChanged(width) {
934
- this._uiEventStore.sendEvent(_constant.UIAction.ASIDE_WIDTH_CHANGED, width);
774
+ this._eventProvider.sendEvent(_constant.FcrUIAction.ASIDE_WIDTH_CHANGED, width);
935
775
  }
936
776
  }, {
937
777
  key: "toggleLayoutBarLock",
@@ -953,12 +793,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
953
793
  }, {
954
794
  key: "setHoveringHandler",
955
795
  value: function setHoveringHandler() {
956
- var _this4 = this;
796
+ var _this3 = this;
957
797
  this._setBarHovering(true);
958
798
  if (!this._barLockTimer && !this.barLocked) {
959
799
  this._barLockTimer = window.setTimeout(function () {
960
- _this4._setBarHovering(false);
961
- _this4.resetLockTimer();
800
+ _this3._setBarHovering(false);
801
+ _this3.resetLockTimer();
962
802
  }, 3000);
963
803
  }
964
804
  }
@@ -981,44 +821,21 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
981
821
  }, {
982
822
  key: "release",
983
823
  value: function release() {
984
- this._subscriptions.forEach(function (fn) {
824
+ this._disposers.forEach(function (fn) {
985
825
  return fn();
986
826
  });
987
- this._chatRoomControl.removeObserver(this._chatRoomObserver);
827
+ this._disposers = [];
988
828
  }
989
829
  }, {
990
830
  key: "onUserInfoUpdated",
991
831
  value: function onUserInfoUpdated(roomId, event) {
992
- var _this5 = this;
832
+ var _this4 = this;
993
833
  this._videoWindowDataSource.update(event.modifiedUser);
994
834
  this.setLocalUserRole(this._userControl.getLocalUser().userRole);
995
835
  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
836
  if (event.reason === _type6.AgoraRteUserUpdatedReason.NAME) {
1020
837
  setTimeout(function () {
1021
- _this5.localUser = _this5._userControl.getLocalUser();
838
+ _this4.localUser = _this4._userControl.getLocalUser();
1022
839
  }, 1000);
1023
840
  }
1024
841
  }
@@ -1030,13 +847,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1030
847
  }, {
1031
848
  key: "stopLocalPreview",
1032
849
  value: function stopLocalPreview(view) {
1033
- this._deviceStore.stopPlayLocalVideo(view);
850
+ this._deviceProvider.stopPlayLocalVideo(view);
1034
851
  }
1035
852
  }, {
1036
853
  key: "startLocalPreview",
1037
854
  value: function startLocalPreview(div) {
1038
855
  if (div) {
1039
- this._deviceStore.startPlayLocalVideo(div);
856
+ this._deviceProvider.startPlayLocalVideo(div);
1040
857
  }
1041
858
  }
1042
859
  }, {
@@ -1044,17 +861,17 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1044
861
  value: function setAllowChatWithPayload(type) {
1045
862
  switch (type) {
1046
863
  case 'public':
1047
- this._securityStore.setAllowedPublicChatAndDisallowedPrivateChat();
864
+ this._privilegeProvider.setAllowedPublicChatAndDisallowedPrivateChat();
1048
865
  break;
1049
866
  case 'private_to_manager':
1050
- this._securityStore.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
867
+ this._privilegeProvider.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
1051
868
  break;
1052
869
  }
1053
870
  }
1054
871
  }, {
1055
872
  key: "muteAudio",
1056
873
  value: function muteAudio(mute, userId) {
1057
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
874
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
1058
875
  action: mute ? _attendee.ParticipantActionType.MUTE_AUDIO : _attendee.ParticipantActionType.UNMUTE_AUDIO,
1059
876
  userId: userId
1060
877
  });
@@ -1062,97 +879,54 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1062
879
  }, {
1063
880
  key: "sendParticipantEvent",
1064
881
  value: function sendParticipantEvent(payload) {
1065
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, payload);
882
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, payload);
1066
883
  }
884
+
885
+ // onEvent(action: FcrUIAction.UPDATE_ASIDE, payload: FcrUIUpdateAsideParams): void;
1067
886
  }, {
1068
887
  key: "onEvent",
1069
888
  value:
1070
889
  // onEvent(
1071
- // action: UIAction.WHITEBOARD_CHANGED,
890
+ // action: FcrUIAction.WHITEBOARD_CHANGED,
1072
891
  // payload: { action: WhiteboardControlbarEvents; payload: boolean },
1073
892
  // ): void;
1074
893
  function onEvent(action, payload) {
1075
- if (action === _constant.UIAction.UPDATE_ASIDE) {
894
+ if (action === _constant.FcrUIAction.SET_MAIN_SPEAKER) {
1076
895
  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);
896
+ userId = _ref2.userId;
1081
897
  }
1082
- if (action === _constant.UIAction.TOGGLE_LAYOUT) {
898
+ if (action === _constant.FcrUIAction.SET_USER_PIN_STATE) {
1083
899
  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;
900
+ _userId = _ref3.userId;
1100
901
  this.handleSetPinState(_userId);
1101
902
  }
1102
- if (action === _constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK) {
903
+ if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
1103
904
  this.toggleLayoutBarLock(payload);
1104
905
  }
1105
- if (action === _constant.UIAction.VIDEO_WINDOW_BOUNDS) {
1106
- var _ref7 = payload,
1107
- videoWindowPreviewType = _ref7.videoWindowPreviewType;
906
+ if (action === _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS) {
907
+ var _ref4 = payload,
908
+ videoWindowPreviewType = _ref4.videoWindowPreviewType;
1108
909
  this.videoWindowPreviewType = videoWindowPreviewType;
1109
910
  }
1110
- if (action === _constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
911
+ if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
1111
912
  this.toggleLayoutBarHidden();
1112
913
  }
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;
914
+ if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
915
+ var _ref5 = payload,
916
+ changeAction = _ref5.action,
917
+ isLoneyWindow = _ref5.payload;
1144
918
  if (changeAction === _type4.WhiteboardControlbarEvents.LONEYWINDOW) {
1145
919
  if (isLoneyWindow) {
1146
920
  this._videoWindowDataSource.removeBoard();
1147
921
  } else {
1148
922
  var ownerUserId = this._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1149
923
  var ownerUser = this._userControl.getUser(ownerUserId);
1150
- this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._securityStore.hasWriteBoardPermission());
924
+ this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
1151
925
  }
1152
926
  }
1153
927
  if (changeAction === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1154
- var _ref12 = payload,
1155
- _ownerUserId = _ref12.payload;
928
+ var _ref6 = payload,
929
+ _ownerUserId = _ref6.payload;
1156
930
  this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
1157
931
  }
1158
932
  }
@@ -1160,139 +934,151 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1160
934
  }, {
1161
935
  key: "_addListeners",
1162
936
  value: function _addListeners() {
1163
- var _this6 = this;
1164
- this._uiEventStore.addObserver({
937
+ var _this5 = this;
938
+ var chatRoomObserver = {
939
+ onConnectionStateUpdated: this._handleConnectionUpdated
940
+ };
941
+ var roomObserver = {
942
+ onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
943
+ };
944
+ var eventObserver = {
1165
945
  onEvent: this.onEvent
1166
- });
1167
- this._streamControl.addObserver({
946
+ };
947
+ var streamObserver = {
1168
948
  onStreamsAdded: this._onStreamsAdded,
1169
949
  onStreamsUpdated: this._onStreamsUpdated,
1170
950
  onStreamsRemoved: this._onStreamsRemoved,
1171
951
  onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
1172
- });
1173
- this._userControl.addObserver({
952
+ };
953
+ var userObserver = {
1174
954
  onUserInfoUpdated: this.onUserInfoUpdated,
1175
955
  onAllUserCountUpdated: this._onAllUserCountUpdated
1176
- });
1177
- this._videoWindowDataSource.addObserver({
956
+ };
957
+ var videoWindowObserver = {
1178
958
  onLayoutUpdated: this._handleLayoutUpdated,
1179
959
  onFoldListAdded: this._handleFoldListChanged,
1180
960
  onFoldListRemoved: this._handleFoldListChanged,
1181
961
  onFoldListUpdated: this._handleFoldListChanged,
1182
962
  onMainListAdded: this._handleMainListChanged,
1183
963
  onMainListUpdated: this._handleMainListChanged,
1184
- onMainListRemoved: this._handleMainListChanged,
1185
- onSpotlightAdded: this._handleSpotlightAdded,
1186
- onSpotlightRemoved: this._handleSpotlightRemoved
1187
- });
1188
- this._whiteBoardControl.addObserver({
964
+ onMainListRemoved: this._handleMainListChanged
965
+ };
966
+ var whiteboardObserver = {
1189
967
  onActive: function onActive() {
1190
- return _this6.setWhiteboardActive(true);
968
+ return _this5.setWhiteboardActive(true);
1191
969
  },
1192
970
  onInactive: function onInactive() {
1193
- return _this6.setWhiteboardActive(false);
971
+ return _this5.setWhiteboardActive(false);
1194
972
  }
1195
- });
1196
- this._chatRoomControl.addObserver(this._chatRoomObserver);
1197
- this._subscriptions.push((0, _mobx.reaction)(function () {
1198
- return _this6.mainList.length;
973
+ };
974
+ this._roomControl.addObserver(roomObserver);
975
+ this._eventProvider.addObserver(eventObserver);
976
+ this._streamControl.addObserver(streamObserver);
977
+ this._userControl.addObserver(userObserver);
978
+ this._videoWindowDataSource.addObserver(videoWindowObserver);
979
+ this._whiteBoardControl.addObserver(whiteboardObserver);
980
+ this._chatRoomControl.addObserver(chatRoomObserver);
981
+ this._disposers.push(function () {
982
+ _this5._roomControl.addObserver(roomObserver);
983
+ _this5._eventProvider.addObserver(eventObserver);
984
+ _this5._streamControl.addObserver(streamObserver);
985
+ _this5._userControl.addObserver(userObserver);
986
+ _this5._videoWindowDataSource.addObserver(videoWindowObserver);
987
+ _this5._whiteBoardControl.addObserver(whiteboardObserver);
988
+ _this5._chatRoomControl.addObserver(chatRoomObserver);
989
+ }, (0, _mobx.reaction)(function () {
990
+ return _this5.mainList.length;
1199
991
  }, function (length) {
1200
992
  if (length < 2) {
1201
- if (_this6.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
1202
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
993
+ if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
994
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1203
995
  }
1204
996
  }
1205
- _this6._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_LENGTH_CHANGED, length);
997
+ _this5._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, length);
1206
998
  }), (0, _mobx.reaction)(function () {
1207
- return _this6.whiteboardActive;
999
+ return _this5.whiteboardActive;
1208
1000
  }, function (opened) {
1209
1001
  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);
1002
+ var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1003
+ var ownerUser = _this5._userControl.getUser(ownerUserId);
1004
+ _this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
1005
+ if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1006
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1215
1007
  }
1216
1008
  } else {
1217
- _this6._videoWindowDataSource.removeBoard();
1009
+ _this5._videoWindowDataSource.removeBoard();
1218
1010
  }
1219
1011
  }), (0, _mobx.reaction)(function () {
1220
- return _this6._securityStore.hasWriteBoardPermission();
1012
+ return _this5._privilegeProvider.hasWriteBoardPermission();
1221
1013
  }, function (canEdit) {
1222
- if (!_this6.mainList.some(function (u) {
1014
+ if (!_this5.mainList.some(function (u) {
1223
1015
  return u.type === _type3.FcrUIWindowType.BOARD;
1224
1016
  })) 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
- });
1017
+ _this5._videoWindowDataSource.updateBoard(canEdit);
1232
1018
  }), (0, _mobx.reaction)(function () {
1233
- return _this6.asideContent;
1019
+ return _this5.asideContent;
1234
1020
  }, function (asideContent) {
1235
1021
  if (asideContent.participant || asideContent.chat) {
1236
- _this6.toggleAside(true);
1022
+ _this5.toggleAside(true);
1237
1023
  }
1238
1024
  if (!asideContent.participant && !asideContent.chat) {
1239
- _this6.toggleAside(false);
1025
+ _this5.toggleAside(false);
1240
1026
  }
1241
1027
  }, {
1242
1028
  fireImmediately: true
1243
1029
  }), (0, _mobx.reaction)(function () {
1244
1030
  return {
1245
- cameraEnabled: _this6._deviceStore.cameraEnabled,
1246
- cameraId: _this6._deviceStore.cameraId
1031
+ cameraEnabled: _this5._deviceProvider.cameraEnabled,
1032
+ cameraId: _this5._deviceProvider.cameraId
1247
1033
  };
1248
- }, function (_ref13) {
1249
- var cameraEnabled = _ref13.cameraEnabled,
1250
- cameraId = _ref13.cameraId;
1251
- if (!cameraEnabled && _this6._localView) {
1252
- _this6.stopLocalPreview(_this6._localView);
1034
+ }, function (_ref7) {
1035
+ var cameraEnabled = _ref7.cameraEnabled,
1036
+ cameraId = _ref7.cameraId;
1037
+ if (!cameraEnabled && _this5._localView) {
1038
+ _this5.stopLocalPreview(_this5._localView);
1253
1039
  }
1254
- if (cameraEnabled && cameraId && _this6._localView) {
1255
- _this6.startLocalPreview(_this6._localView);
1040
+ if (cameraEnabled && cameraId && _this5._localView) {
1041
+ _this5.startLocalPreview(_this5._localView);
1256
1042
  }
1257
1043
  }), (0, _mobx.reaction)(function () {
1258
- return _this6.barLocked;
1044
+ return _this5.barLocked;
1259
1045
  }, function (barLocked) {
1260
- if (_this6._barLockTimer && barLocked) {
1261
- _this6.resetLockTimer();
1046
+ if (_this5._barLockTimer && barLocked) {
1047
+ _this5.resetLockTimer();
1262
1048
  } else {
1263
- _this6.setHoveringHandler();
1049
+ _this5.setHoveringHandler();
1264
1050
  }
1265
1051
  }), (0, _mobx.reaction)(function () {
1266
- return _this6._deviceStore.microphoneVolumeLevel;
1052
+ return _this5._deviceProvider.microphoneVolumeLevel;
1267
1053
  }, function (volume) {
1268
1054
  (0, _mobx.runInAction)(function () {
1269
- _this6.userVolumeMap.set('0', volume);
1055
+ _this5.userVolumeMap.set('0', volume);
1270
1056
  });
1271
1057
  }), (0, _mobx.reaction)(function () {
1272
1058
  return {
1273
- count: _this6.participantCount,
1274
- enableSpotlight: _this6.enableSpotlight
1059
+ count: _this5.participantCount,
1060
+ enableSpotlight: _this5.enableSpotlight
1275
1061
  };
1276
- }, function (_ref14) {
1277
- var count = _ref14.count,
1278
- enableSpotlight = _ref14.enableSpotlight;
1279
- var enableSetSpotlight = _this6._isSetSpotlightEnable(count, enableSpotlight);
1280
- _this6._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1062
+ }, function (_ref8) {
1063
+ var count = _ref8.count,
1064
+ enableSpotlight = _ref8.enableSpotlight;
1065
+ var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
1066
+ _this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1281
1067
  }),
1282
1068
  // 录制的特殊逻辑:
1283
1069
  // 因为录制机器人不发流,且当前切换布局的逻辑是有多个人的视频窗口才切换到 speaker layout
1284
1070
  // 所以当房间只有主持人的时候录制机器人的视角不会切换到 speaker layout,故加上以下逻辑
1285
1071
  (0, _mobx.reaction)(function () {
1286
- var _this6$currentShareDa;
1287
- return (_this6$currentShareDa = _this6.currentShareData) === null || _this6$currentShareDa === void 0 ? void 0 : _this6$currentShareDa.hasScreenSharing;
1072
+ var _this5$currentShareDa;
1073
+ return (_this5$currentShareDa = _this5.currentShareData) === null || _this5$currentShareDa === void 0 ? void 0 : _this5$currentShareDa.hasScreenSharing;
1288
1074
  }, function (hasScreenSharing) {
1289
- if (_this6.isRobot) {
1075
+ if (_this5.isRobot) {
1290
1076
  if (hasScreenSharing) {
1291
- _this6.logger.info('set layout to speaker for robot');
1292
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1077
+ _this5.logger.info('set layout to speaker for robot');
1078
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1293
1079
  } else {
1294
- _this6.logger.info('set layout to gallery for robot');
1295
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1080
+ _this5.logger.info('set layout to gallery for robot');
1081
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1296
1082
  }
1297
1083
  }
1298
1084
  }, {
@@ -1302,12 +1088,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1302
1088
  }, {
1303
1089
  key: "_handleFoldListChanged",
1304
1090
  value: function _handleFoldListChanged() {
1305
- this._uiEventStore.sendEvent(_constant.UIAction.FOLD_LIST_CHANGED, this.foldList);
1091
+ this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
1306
1092
  }
1307
1093
  }, {
1308
1094
  key: "_handleMainListChanged",
1309
1095
  value: function _handleMainListChanged() {
1310
- this._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_CHANGED, this.mainList);
1096
+ this._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_CHANGED, this.mainList);
1311
1097
  }
1312
1098
  }, {
1313
1099
  key: "_switchToSpeaker",
@@ -1332,13 +1118,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1332
1118
  }, {
1333
1119
  key: "_initStream",
1334
1120
  value: function _initStream() {
1335
- var _this7 = this;
1121
+ var _this6 = this;
1336
1122
  var isSharingScreen = false;
1337
1123
  this._streamControl.getStreamList().forEach(function (stream) {
1338
1124
  if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
1339
1125
  isSharingScreen = true;
1340
1126
  }
1341
- _this7._handleStreamAdded(stream);
1127
+ _this6._handleStreamAdded(stream);
1342
1128
  });
1343
1129
  if (isSharingScreen && this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1344
1130
  this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
@@ -1350,27 +1136,22 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1350
1136
  var setSpotlightEnable = count > LayoutStore.MIN_USERS_TO_ENABLE_SPOTLIGHT;
1351
1137
  return setSpotlightEnable && enableSpotlight;
1352
1138
  }
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
1139
  }, {
1370
1140
  key: "_handleConnectionUpdated",
1371
1141
  value: function _handleConnectionUpdated(_, state) {
1372
1142
  this.chatRoomState = state;
1373
1143
  }
1144
+ }, {
1145
+ key: "_handleLiveStreamingStateUpdated",
1146
+ value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
1147
+ this._liveStreamState = state;
1148
+ if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
1149
+ this._eventProvider.showToast({
1150
+ type: 'info',
1151
+ message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
1152
+ });
1153
+ }
1154
+ }
1374
1155
  }, {
1375
1156
  key: "_handleStreamAdded",
1376
1157
  value: function _handleStreamAdded(modifiedStream) {
@@ -1384,37 +1165,39 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1384
1165
  }, {
1385
1166
  key: "_onStreamsAdded",
1386
1167
  value: function _onStreamsAdded(roomId, events) {
1387
- var _this8 = this;
1388
- events.forEach(function (_ref15) {
1389
- var modifiedStream = _ref15.modifiedStream;
1390
- _this8._handleStreamAdded(modifiedStream);
1168
+ var _this7 = this;
1169
+ events.forEach(function (_ref9) {
1170
+ var modifiedStream = _ref9.modifiedStream;
1171
+ _this7._handleStreamAdded(modifiedStream);
1391
1172
  });
1392
1173
  }
1393
1174
  }, {
1394
1175
  key: "_onStreamsUpdated",
1395
1176
  value: function _onStreamsUpdated(roomId, events) {
1396
- var _this9 = this;
1397
- events.forEach(function (_ref16) {
1398
- var modifiedStream = _ref16.modifiedStream;
1399
- _this9._videoWindowDataSource.update(modifiedStream);
1177
+ var _this8 = this;
1178
+ events.forEach(function (_ref10) {
1179
+ var modifiedStream = _ref10.modifiedStream;
1180
+ _this8._videoWindowDataSource.update(modifiedStream);
1400
1181
  });
1401
1182
  }
1402
1183
  }, {
1403
1184
  key: "_onStreamsRemoved",
1404
1185
  value: function _onStreamsRemoved(roomId, events) {
1405
- var _this10 = this;
1406
- events.forEach(function (_ref17) {
1407
- var modifiedStream = _ref17.modifiedStream;
1408
- _this10._videoWindowDataSource["delete"](modifiedStream);
1186
+ var _this9 = this;
1187
+ events.forEach(function (_ref11) {
1188
+ var modifiedStream = _ref11.modifiedStream;
1189
+ _this9._videoWindowDataSource["delete"](modifiedStream);
1409
1190
  });
1410
1191
  var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
1411
1192
  var videoType = event.modifiedStream.videoSourceType;
1412
1193
  return videoType === _fcrCore.FcrVideoSourceType.SCREEN;
1413
1194
  });
1414
- if (hasScreenStream && this.manualLayout) {
1415
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
1416
- layout: this.manualLayout
1417
- });
1195
+ if (hasScreenStream) {
1196
+ if (this.manualLayout) {
1197
+ this._videoWindowDataSource.setLayout(this.manualLayout);
1198
+ } else {
1199
+ this._videoWindowDataSource.setLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1200
+ }
1418
1201
  }
1419
1202
  }
1420
1203
  }, {
@@ -1426,15 +1209,15 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1426
1209
  }, {
1427
1210
  key: "_findSpotlightStream",
1428
1211
  value: function _findSpotlightStream() {
1429
- var _this11 = this;
1212
+ var _this10 = this;
1430
1213
  //find the max volume stream
1431
1214
  var res = {
1432
1215
  streamId: '',
1433
1216
  volume: 0
1434
1217
  };
1435
1218
  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) {
1219
+ var windowData = _this10.mainListMapByAudioStreamId.get(id);
1220
+ if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream && windowData.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN) {
1438
1221
  res = {
1439
1222
  streamId: windowData.windowId,
1440
1223
  volume: volume
@@ -1443,47 +1226,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1443
1226
  });
1444
1227
  return res;
1445
1228
  }
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
1229
  }]);
1484
1230
  }();
1485
1231
  _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);
1232
+ 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
1233
  _init_participant = _applyDecs$e[0];
1488
1234
  _init_chat = _applyDecs$e[1];
1489
1235
  _init_chatAction = _applyDecs$e[2];
@@ -1492,28 +1238,20 @@ _init_actionBar = _applyDecs$e[4];
1492
1238
  _init_layers = _applyDecs$e[5];
1493
1239
  _init_whiteboard = _applyDecs$e[6];
1494
1240
  _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];
1241
+ _init_aside = _applyDecs$e[8];
1242
+ _init_localUserRole = _applyDecs$e[9];
1243
+ _init_barHovering = _applyDecs$e[10];
1244
+ _init_barLocked = _applyDecs$e[11];
1245
+ _init_barHidden = _applyDecs$e[12];
1246
+ _init_asideWidth = _applyDecs$e[13];
1247
+ _init_userVolumeMap = _applyDecs$e[14];
1248
+ _init_chatRoomState = _applyDecs$e[15];
1249
+ _init_videoWindowPreviewType = _applyDecs$e[16];
1250
+ _init_whiteboardActive = _applyDecs$e[17];
1251
+ _init_participantCount = _applyDecs$e[18];
1252
+ _init_ownerUser = _applyDecs$e[19];
1253
+ _init_localUser = _applyDecs$e[20];
1254
+ _init__handleLayoutUpdated = _applyDecs$e[21];
1255
+ _initProto = _applyDecs$e[22];
1518
1256
  (0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
1519
1257
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);