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