fcr-ui-scene 3.3.1 → 3.4.1

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 (681) hide show
  1. package/installer/icons/icon.png +0 -0
  2. package/lib/ scenes/base.d.ts +10 -0
  3. package/lib/ scenes/base.js +75 -0
  4. package/lib/ scenes/main-scene.d.ts +43 -0
  5. package/lib/ scenes/main-scene.js +368 -0
  6. package/lib/ scenes/waiting-scene.d.ts +31 -0
  7. package/lib/ scenes/waiting-scene.js +119 -0
  8. package/lib/common/device-store.d.ts +22 -13
  9. package/lib/common/device-store.js +350 -249
  10. package/lib/common/device-stream-store.d.ts +8 -14
  11. package/lib/common/device-stream-store.js +254 -116
  12. package/lib/common/event-store.d.ts +19 -10
  13. package/lib/common/event-store.js +28 -10
  14. package/lib/common/remote-renderer.d.ts +15 -0
  15. package/lib/common/remote-renderer.js +138 -0
  16. package/lib/common/room-store.d.ts +21 -18
  17. package/lib/common/room-store.js +54 -47
  18. package/lib/common/security-store.d.ts +38 -40
  19. package/lib/common/security-store.js +231 -394
  20. package/lib/common/type.d.ts +8 -0
  21. package/lib/common/type.js +6 -0
  22. package/lib/creator.d.ts +3 -1
  23. package/lib/creator.js +13 -1
  24. package/lib/electron/app.js +59 -0
  25. package/lib/electron/injections.d.ts +6 -4
  26. package/lib/electron/injections.js +138 -113
  27. package/lib/electron/logger.js +3 -1
  28. package/lib/electron/main.js +13 -1
  29. package/lib/electron/plugins/devtool-shortcut.d.ts +2 -0
  30. package/lib/electron/plugins/devtool-shortcut.js +19 -0
  31. package/lib/electron/preload.js +5 -3
  32. package/lib/error-fallback.css +62 -0
  33. package/lib/error-fallback.d.ts +2 -0
  34. package/lib/error-fallback.js +19 -0
  35. package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
  36. package/lib/fragments/control-bar/control-bar-store.d.ts +11 -1
  37. package/lib/fragments/control-bar/control-bar-store.js +196 -111
  38. package/lib/fragments/control-bar/index.js +6 -0
  39. package/lib/fragments/control-bar/more-actions/index.js +1 -1
  40. package/lib/fragments/control-bar/security-content/index.css +65 -0
  41. package/lib/fragments/control-bar/security-content/index.js +66 -2
  42. package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
  43. package/lib/fragments/control-bar/view.js +15 -6
  44. package/lib/fragments/live-streaming/store.d.ts +1 -1
  45. package/lib/fragments/live-streaming/store.js +1 -1
  46. package/lib/fragments/live-streaming/view.js +4 -2
  47. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
  48. package/lib/fragments/share-screen-selection/selection-store.js +1 -1
  49. package/lib/fragments/share-screen-selection/view.js +20 -20
  50. package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
  51. package/lib/fragments/toolbar/components/pen-picker.js +1 -1
  52. package/lib/fragments/toolbar/components/shape-picker.js +1 -1
  53. package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +11 -0
  54. package/lib/fragments/toolbar/components/transfer-position-icon/index.js +46 -0
  55. package/lib/fragments/toolbar/components/wrapper.js +1 -1
  56. package/lib/fragments/toolbar/hooks.js +1 -1
  57. package/lib/fragments/toolbar/store.d.ts +1 -1
  58. package/lib/hooks/meeting-time.d.ts +1 -1
  59. package/lib/modules/Interpreter/action/add-btn/index.css +4 -0
  60. package/lib/modules/Interpreter/action/add-btn/index.d.ts +11 -0
  61. package/lib/modules/Interpreter/action/add-btn/index.js +43 -0
  62. package/lib/modules/Interpreter/action/delete-btn/index.css +14 -0
  63. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +6 -0
  64. package/lib/modules/Interpreter/action/delete-btn/index.js +38 -0
  65. package/lib/modules/Interpreter/action/edit-btn/index.css +3 -0
  66. package/lib/modules/Interpreter/action/edit-btn/index.d.ts +4 -0
  67. package/lib/modules/Interpreter/action/edit-btn/index.js +47 -0
  68. package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
  69. package/lib/modules/Interpreter/action/switch-btn/index.d.ts +3 -0
  70. package/lib/modules/Interpreter/action/switch-btn/index.js +52 -0
  71. package/lib/modules/Interpreter/add-button/index.js +6 -4
  72. package/lib/modules/Interpreter/constant.d.ts +23 -12
  73. package/lib/modules/Interpreter/constant.js +53 -13
  74. package/lib/modules/Interpreter/dialog-content/index.js +2 -2
  75. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +10 -13
  76. package/lib/modules/Interpreter/footer/components/set-btn/index.js +8 -5
  77. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +3 -1
  78. package/lib/modules/Interpreter/footer/index.css +6 -5
  79. package/lib/modules/Interpreter/footer/index.d.ts +4 -1
  80. package/lib/modules/Interpreter/footer/index.js +8 -17
  81. package/lib/modules/Interpreter/index.css +10 -3
  82. package/lib/modules/Interpreter/index.d.ts +2 -15
  83. package/lib/modules/Interpreter/index.js +9 -19
  84. package/lib/modules/Interpreter/interpreter-list/index.css +5 -18
  85. package/lib/modules/Interpreter/interpreter-list/index.d.ts +5 -1
  86. package/lib/modules/Interpreter/interpreter-list/index.js +15 -32
  87. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +23 -8
  88. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +4 -1
  89. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +51 -13
  90. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  91. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  92. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  93. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  94. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  95. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  96. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  97. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  98. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  99. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  100. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  101. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  102. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  103. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  104. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  105. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  106. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  107. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +9 -4
  108. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +98 -39
  109. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +9 -4
  110. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
  111. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +74 -64
  112. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
  113. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
  114. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +3 -5
  115. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
  116. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +7 -24
  117. package/lib/modules/Interpreter/store.d.ts +70 -41
  118. package/lib/modules/Interpreter/store.js +1033 -814
  119. package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +6 -0
  120. package/lib/modules/Interpreter/tooltip-wrapper/index.js +30 -0
  121. package/lib/modules/Interpreter/type.d.ts +41 -0
  122. package/lib/modules/Interpreter/type.js +20 -0
  123. package/lib/modules/Interpreter/utils.d.ts +12 -0
  124. package/lib/modules/Interpreter/utils.js +139 -0
  125. package/lib/modules/Interpreter/view.d.ts +0 -1
  126. package/lib/modules/Interpreter/view.js +48 -13
  127. package/lib/modules/action-bar/Interpreter/index.d.ts +1 -1
  128. package/lib/modules/action-bar/Interpreter/index.js +7 -10
  129. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
  130. package/lib/modules/action-bar/action-bar-collapes-items.js +39 -22
  131. package/lib/modules/action-bar/apps/app-item/index.css +35 -0
  132. package/lib/modules/action-bar/apps/app-item/index.d.ts +12 -0
  133. package/{dist/electron/bootstrap-sdk.js → lib/modules/action-bar/apps/app-item/index.js} +38 -33
  134. package/lib/modules/action-bar/apps/appitems.d.ts +4 -1
  135. package/lib/modules/action-bar/apps/appitems.js +30 -25
  136. package/lib/modules/action-bar/apps/index.css +5 -3
  137. package/lib/modules/action-bar/apps/index.js +13 -14
  138. package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +9 -0
  139. package/lib/modules/action-bar/apps/useAppItemOptions.js +29 -0
  140. package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +10 -0
  141. package/lib/modules/action-bar/apps/useBeautyBackground.js +34 -0
  142. package/lib/modules/action-bar/apps/useInterpreter.d.ts +14 -0
  143. package/lib/modules/action-bar/apps/useInterpreter.js +37 -0
  144. package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +16 -0
  145. package/lib/modules/action-bar/apps/useLiveStreaming.js +41 -0
  146. package/lib/modules/action-bar/chat/index.js +3 -3
  147. package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
  148. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
  149. package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
  150. package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
  151. package/{dist/electron/bootstrap-dev.js → lib/modules/action-bar/components/apps/appitems.js} +21 -27
  152. package/lib/modules/action-bar/components/apps/index.css +8 -0
  153. package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
  154. package/lib/modules/action-bar/components/apps/index.js +57 -0
  155. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
  156. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
  157. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
  158. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
  159. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
  160. package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
  161. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
  162. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
  163. package/lib/modules/action-bar/components/board/index.d.ts +4 -0
  164. package/lib/modules/action-bar/components/board/index.js +34 -0
  165. package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
  166. package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
  167. package/lib/modules/action-bar/components/chat/index.css +80 -0
  168. package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
  169. package/lib/modules/action-bar/components/chat/index.js +154 -0
  170. package/lib/modules/action-bar/components/device/index.css +162 -0
  171. package/lib/modules/action-bar/components/device/index.d.ts +8 -0
  172. package/lib/modules/action-bar/components/device/index.js +611 -0
  173. package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
  174. package/lib/modules/action-bar/components/interpreter/index.js +41 -0
  175. package/lib/modules/action-bar/components/item.d.ts +27 -0
  176. package/lib/modules/action-bar/components/item.js +164 -0
  177. package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
  178. package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
  179. package/lib/modules/action-bar/components/leave/index.css +126 -0
  180. package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
  181. package/lib/modules/action-bar/components/leave/index.js +159 -0
  182. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
  183. package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
  184. package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
  185. package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
  186. package/lib/modules/action-bar/components/more/index.css +114 -0
  187. package/lib/modules/action-bar/components/more/index.d.ts +5 -0
  188. package/lib/modules/action-bar/components/more/index.js +83 -0
  189. package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
  190. package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
  191. package/lib/modules/action-bar/components/participants/index.css +21 -0
  192. package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
  193. package/lib/modules/action-bar/components/participants/index.js +83 -0
  194. package/lib/modules/action-bar/components/record/index.css +39 -0
  195. package/lib/modules/action-bar/components/record/index.d.ts +5 -0
  196. package/lib/modules/action-bar/components/record/index.js +166 -0
  197. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
  198. package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
  199. package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
  200. package/lib/modules/action-bar/components/respond/index.js +32 -0
  201. package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
  202. package/lib/modules/action-bar/components/screen-share/index.js +106 -0
  203. package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
  204. package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
  205. package/lib/modules/action-bar/components/security/index.d.ts +4 -0
  206. package/lib/modules/action-bar/components/security/index.js +58 -0
  207. package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
  208. package/lib/modules/action-bar/components/settings/index.js +42 -0
  209. package/lib/modules/action-bar/device/index.js +22 -24
  210. package/lib/modules/action-bar/index.css +53 -4
  211. package/lib/modules/action-bar/index.d.ts +4 -18
  212. package/lib/modules/action-bar/index.dev.js +40 -16
  213. package/lib/modules/action-bar/index.js +25 -61
  214. package/lib/modules/action-bar/leave/assign-host.d.ts +1 -1
  215. package/lib/modules/action-bar/leave/index.css +10 -0
  216. package/lib/modules/action-bar/leave/index.js +66 -39
  217. package/lib/modules/action-bar/leave/leave-meeting.d.ts +3 -2
  218. package/lib/modules/action-bar/leave/leave-meeting.js +13 -4
  219. package/lib/modules/action-bar/live-streaming/index.js +3 -3
  220. package/lib/modules/action-bar/more/index.js +9 -6
  221. package/lib/modules/action-bar/more/poppover-content.js +33 -12
  222. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
  223. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
  224. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
  225. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
  226. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
  227. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
  228. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  229. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  230. package/lib/modules/action-bar/notification-bar/index.css +74 -0
  231. package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
  232. package/lib/modules/action-bar/notification-bar/index.js +99 -0
  233. package/lib/modules/action-bar/participants/index.js +2 -2
  234. package/lib/modules/action-bar/record/index.js +4 -4
  235. package/lib/modules/action-bar/screen-share/index.js +9 -4
  236. package/lib/modules/action-bar/screen-share/submenu.js +4 -4
  237. package/lib/modules/action-bar/security/drop-menu.js +49 -11
  238. package/lib/modules/action-bar/security/index.js +12 -6
  239. package/lib/modules/action-bar/settings/index.js +4 -4
  240. package/lib/modules/action-bar/smaller.js +5 -5
  241. package/lib/modules/action-bar/store.d.ts +54 -12
  242. package/lib/modules/action-bar/store.js +423 -211
  243. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +1 -2
  244. package/lib/modules/action-bar/switch-input-language-room/index.js +134 -43
  245. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +3 -3
  246. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +7 -1
  247. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +32 -19
  248. package/lib/modules/action-bar/switch-output-language-room/index.js +134 -69
  249. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +12 -8
  250. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +13 -7
  251. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +52 -4
  252. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +1 -0
  253. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +12 -10
  254. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  255. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +6 -3
  256. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +30 -13
  257. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  258. package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
  259. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
  260. package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
  261. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
  262. package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
  263. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
  264. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
  265. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
  266. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
  267. package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
  268. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  269. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
  270. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  271. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
  272. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  273. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  274. package/lib/modules/action-bar/view.js +26 -12
  275. package/lib/modules/audio-stream/index.d.ts +24 -14
  276. package/lib/modules/audio-stream/index.js +256 -57
  277. package/lib/modules/chat/chat-bar/index.css +6 -0
  278. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  279. package/lib/modules/chat/chat-bar/index.js +23 -23
  280. package/lib/modules/chat/chat-select/index.css +13 -3
  281. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  282. package/lib/modules/chat/chat-select/index.js +18 -4
  283. package/lib/modules/chat/chat.js +20 -31
  284. package/lib/modules/chat/index.css +10 -0
  285. package/lib/modules/chat/index.d.ts +3 -11
  286. package/lib/modules/chat/index.dev.js +19 -4
  287. package/lib/modules/chat/index.js +19 -25
  288. package/lib/modules/chat/message-list.js +9 -3
  289. package/lib/modules/chat/store.d.ts +12 -6
  290. package/lib/modules/chat/store.js +109 -69
  291. package/lib/modules/components/device-control/components/audio-menu/index.d.ts +6 -0
  292. package/lib/modules/components/device-control/components/audio-menu/index.js +156 -0
  293. package/lib/modules/components/device-control/components/carmera/index.d.ts +3 -0
  294. package/lib/modules/components/device-control/components/carmera/index.js +111 -0
  295. package/lib/modules/components/device-control/components/microphone/index.d.ts +7 -0
  296. package/lib/modules/components/device-control/components/microphone/index.js +170 -0
  297. package/lib/modules/components/device-control/components/none-menu/index.d.ts +4 -0
  298. package/lib/modules/components/device-control/components/none-menu/index.js +68 -0
  299. package/lib/modules/components/device-control/components/phone-menu/index.d.ts +4 -0
  300. package/lib/modules/components/device-control/components/phone-menu/index.js +61 -0
  301. package/lib/modules/components/device-control/components/video-menu/index.d.ts +5 -0
  302. package/lib/modules/components/device-control/components/video-menu/index.js +111 -0
  303. package/lib/modules/components/device-control/hooks/index.d.ts +9 -0
  304. package/lib/modules/components/device-control/hooks/index.js +42 -0
  305. package/lib/modules/components/device-control/index.css +166 -0
  306. package/lib/modules/components/device-control/index.d.ts +3 -0
  307. package/lib/modules/components/device-control/index.js +21 -0
  308. package/lib/modules/components/device-control/store.d.ts +42 -0
  309. package/lib/modules/components/device-control/store.js +256 -0
  310. package/lib/modules/components/device-control/type.d.ts +6 -0
  311. package/lib/modules/components/device-control/type.js +13 -0
  312. package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
  313. package/lib/modules/components/dialog-container/component/body.js +46 -0
  314. package/lib/modules/components/dialog-container/index.css +78 -0
  315. package/lib/modules/components/dialog-container/index.d.ts +11 -0
  316. package/lib/modules/components/dialog-container/index.js +110 -0
  317. package/lib/modules/components/member-window/index.css +419 -0
  318. package/lib/modules/components/member-window/index.d.ts +76 -0
  319. package/lib/modules/components/member-window/index.js +888 -0
  320. package/lib/modules/components/security-menu/index.css +44 -0
  321. package/lib/modules/components/security-menu/index.d.ts +5 -0
  322. package/lib/modules/components/security-menu/index.js +366 -0
  323. package/lib/modules/components/tab-frame/index.css +40 -0
  324. package/lib/modules/components/tab-frame/index.d.ts +12 -0
  325. package/lib/modules/components/tab-frame/index.js +57 -0
  326. package/lib/modules/components/toast/index.css +12 -0
  327. package/lib/modules/components/toast/index.d.ts +10 -0
  328. package/lib/modules/components/toast/index.js +66 -0
  329. package/lib/modules/components/toast/store.d.ts +17 -0
  330. package/lib/modules/components/toast/store.js +149 -0
  331. package/lib/modules/components/toast/view.d.ts +2 -0
  332. package/lib/modules/components/toast/view.js +35 -0
  333. package/lib/modules/connection-gateway/components/computer/index.css +1 -0
  334. package/lib/modules/connection-gateway/components/computer/index.js +6 -6
  335. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +1 -1
  336. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
  337. package/lib/modules/connection-gateway/components/phone/index.css +1 -1
  338. package/lib/modules/connection-gateway/components/phone/index.js +3 -2
  339. package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
  340. package/lib/modules/connection-gateway/index.d.ts +2 -9
  341. package/lib/modules/connection-gateway/index.js +1 -1
  342. package/lib/modules/connection-gateway/store.d.ts +8 -20
  343. package/lib/modules/connection-gateway/store.js +87 -127
  344. package/lib/modules/connection-gateway/view.js +21 -4
  345. package/lib/modules/control-bar/components/cloud-recording-buttons.d.ts +1 -0
  346. package/lib/modules/control-bar/components/cloud-recording-buttons.js +67 -0
  347. package/lib/modules/control-bar/components/meeting-details/index.css +133 -0
  348. package/lib/modules/control-bar/components/meeting-details/index.d.ts +2 -0
  349. package/lib/modules/control-bar/components/meeting-details/index.js +251 -0
  350. package/lib/modules/control-bar/components/more-actions/index.css +72 -0
  351. package/lib/modules/control-bar/components/more-actions/index.d.ts +7 -0
  352. package/lib/modules/control-bar/components/more-actions/index.js +182 -0
  353. package/lib/modules/control-bar/components/share-state-nav/index.css +74 -0
  354. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +10 -0
  355. package/lib/modules/control-bar/components/share-state-nav/index.js +116 -0
  356. package/lib/modules/control-bar/components/stop-live-streaming/index.d.ts +1 -0
  357. package/lib/modules/control-bar/components/stop-live-streaming/index.js +36 -0
  358. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +6 -0
  359. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +35 -0
  360. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +11 -0
  361. package/lib/modules/control-bar/components/transfer-position-icon/index.js +46 -0
  362. package/lib/modules/control-bar/index.css +341 -0
  363. package/lib/modules/control-bar/index.d.ts +15 -0
  364. package/lib/modules/control-bar/index.js +102 -0
  365. package/lib/modules/control-bar/store.d.ts +98 -0
  366. package/lib/modules/control-bar/store.js +899 -0
  367. package/lib/modules/control-bar/type.d.ts +10 -0
  368. package/lib/modules/control-bar/type.js +18 -0
  369. package/lib/modules/control-bar/view.d.ts +1 -0
  370. package/lib/modules/control-bar/view.js +358 -0
  371. package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +9 -0
  372. package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +7 -1
  373. package/lib/modules/device-pretest/audio-preview/speaker-control.js +2 -2
  374. package/lib/modules/device-pretest/index.js +2 -2
  375. package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
  376. package/lib/modules/device-pretest/settings/video-settings-basic.js +2 -2
  377. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  378. package/lib/modules/device-pretest/store.d.ts +2 -1
  379. package/lib/modules/device-pretest/store.js +7 -7
  380. package/lib/modules/dialog/components/Interpreter/electron.js +21 -62
  381. package/lib/modules/dialog/components/Interpreter/index.js +14 -42
  382. package/lib/modules/dialog/components/chat/electron.d.ts +2 -2
  383. package/lib/modules/dialog/components/chat/electron.js +15 -49
  384. package/lib/modules/dialog/components/chat/index.d.ts +1 -4
  385. package/lib/modules/dialog/components/chat/index.js +38 -44
  386. package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
  387. package/lib/modules/dialog/components/confirm/electron.js +38 -70
  388. package/lib/modules/dialog/components/confirm/index.d.ts +1 -9
  389. package/lib/modules/dialog/components/confirm/index.js +33 -80
  390. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
  391. package/lib/modules/dialog/components/connection-gateway/electron.js +26 -55
  392. package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -2
  393. package/lib/modules/dialog/components/connection-gateway/index.js +17 -57
  394. package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
  395. package/lib/modules/dialog/components/control-bar/index.js +41 -0
  396. package/lib/modules/dialog/components/device-setting/electron.js +23 -64
  397. package/lib/modules/dialog/components/device-setting/index.js +14 -41
  398. package/lib/modules/dialog/components/invite/index.d.ts +3 -0
  399. package/lib/modules/dialog/components/invite/index.js +49 -0
  400. package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
  401. package/lib/modules/dialog/components/live-streaming/index.js +53 -0
  402. package/lib/modules/dialog/components/operation-waiting-room/electron.js +28 -75
  403. package/lib/modules/dialog/components/operation-waiting-room/index.js +4 -4
  404. package/lib/modules/dialog/components/participant/electron.js +19 -81
  405. package/lib/modules/dialog/components/participant/index.js +41 -29
  406. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +8 -1
  407. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +22 -78
  408. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
  409. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +7 -17
  410. package/lib/modules/dialog/components/share-screen-selection/index.js +28 -31
  411. package/lib/modules/dialog/components/switch-language-channels/electron.js +4 -4
  412. package/lib/modules/dialog/components/switch-language-channels/index.js +3 -3
  413. package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
  414. package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
  415. package/lib/modules/dialog/components/system-preference/electron.d.ts +5 -0
  416. package/lib/modules/dialog/components/system-preference/electron.js +39 -0
  417. package/lib/modules/dialog/components/system-preference/index.css +49 -0
  418. package/lib/modules/dialog/components/system-preference/index.d.ts +5 -0
  419. package/lib/modules/dialog/components/system-preference/index.js +139 -0
  420. package/lib/modules/dialog/components/toast/index.d.ts +3 -0
  421. package/lib/modules/dialog/components/toast/index.js +58 -0
  422. package/lib/modules/dialog/components/whiteboard/index.js +2 -2
  423. package/lib/modules/dialog/dialogs.d.ts +1 -5
  424. package/lib/modules/dialog/dialogs.js +24 -177
  425. package/lib/modules/dialog/hooks/useElectron.d.ts +32 -0
  426. package/lib/modules/dialog/hooks/useElectron.js +151 -0
  427. package/lib/modules/dialog/index.css +7 -4
  428. package/lib/modules/dialog/index.d.ts +3 -18
  429. package/lib/modules/dialog/index.js +9 -18
  430. package/lib/modules/dialog/store.d.ts +14 -48
  431. package/lib/modules/dialog/store.js +109 -258
  432. package/lib/modules/dialog/types/index.d.ts +59 -0
  433. package/lib/modules/dialog/view.js +2 -2
  434. package/lib/modules/event-confirm/index.css +12 -0
  435. package/lib/modules/event-confirm/index.d.ts +10 -0
  436. package/lib/modules/event-confirm/index.js +55 -0
  437. package/lib/modules/event-confirm/store.d.ts +18 -0
  438. package/lib/modules/event-confirm/store.js +172 -0
  439. package/lib/modules/event-confirm/view.d.ts +2 -0
  440. package/lib/modules/event-confirm/view.js +159 -0
  441. package/lib/modules/event-toast/index.css +16 -0
  442. package/lib/modules/event-toast/index.d.ts +1 -1
  443. package/lib/modules/event-toast/index.js +19 -3
  444. package/lib/modules/event-toast/store.d.ts +13 -0
  445. package/lib/modules/event-toast/store.js +114 -17
  446. package/lib/modules/event-toast/view.d.ts +4 -1
  447. package/lib/modules/event-toast/view.js +28 -4
  448. package/lib/modules/invite/index.d.ts +1 -1
  449. package/lib/modules/invite/index.js +13 -3
  450. package/lib/modules/invite/pstn-invite.js +6 -9
  451. package/lib/modules/invite/store.d.ts +24 -25
  452. package/lib/modules/invite/store.js +148 -147
  453. package/lib/modules/invite/view.d.ts +4 -0
  454. package/lib/modules/invite/view.js +18 -22
  455. package/lib/modules/invite/voip-invite.js +5 -6
  456. package/lib/modules/layout/components/Aside.js +14 -4
  457. package/lib/modules/layout/components/Carousel.js +16 -10
  458. package/lib/modules/layout/components/Gallery.js +25 -17
  459. package/lib/modules/layout/components/Layout.js +17 -9
  460. package/lib/modules/layout/components/index.css +17 -5
  461. package/lib/modules/layout/index.css +1 -0
  462. package/lib/modules/layout/index.d.ts +4 -2
  463. package/lib/modules/layout/index.dev.js +20 -10
  464. package/lib/modules/layout/index.js +26 -19
  465. package/lib/modules/layout/member-window/index.css +116 -18
  466. package/lib/modules/layout/member-window/index.d.ts +10 -3
  467. package/lib/modules/layout/member-window/index.js +218 -112
  468. package/lib/modules/layout/store.d.ts +21 -8
  469. package/lib/modules/layout/store.js +138 -72
  470. package/lib/modules/layout/type.d.ts +2 -2
  471. package/lib/modules/layout/video-window-datasource.d.ts +5 -3
  472. package/lib/modules/layout/video-window-datasource.js +72 -29
  473. package/lib/modules/live-streaming/index.d.ts +1 -2
  474. package/lib/modules/live-streaming/index.js +13 -29
  475. package/lib/modules/live-streaming/store.d.ts +3 -7
  476. package/lib/modules/live-streaming/store.js +7 -73
  477. package/lib/modules/live-streaming/view.js +3 -3
  478. package/lib/modules/notification/index.css +3 -1
  479. package/lib/modules/notification/index.js +13 -3
  480. package/lib/modules/notification/interpreter-status/index.css +5 -1
  481. package/lib/modules/notification/interpreter-status/index.js +4 -1
  482. package/lib/modules/notification/store.d.ts +1 -0
  483. package/lib/modules/notification/store.js +4 -2
  484. package/lib/modules/notification/view.js +2 -2
  485. package/lib/modules/offscreen-pulling/index.d.ts +19 -0
  486. package/lib/modules/offscreen-pulling/index.js +127 -0
  487. package/lib/modules/participant/attendee/index.css +4 -0
  488. package/lib/modules/participant/attendee/index.d.ts +14 -3
  489. package/lib/modules/participant/attendee/index.js +89 -34
  490. package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
  491. package/lib/modules/participant/attendee/participants-more-action.js +278 -0
  492. package/lib/modules/participant/components/drop-menu/index.css +60 -0
  493. package/lib/modules/participant/components/drop-menu/index.d.ts +2 -0
  494. package/lib/modules/participant/components/drop-menu/index.js +189 -0
  495. package/lib/modules/participant/components/footer/buttons.d.ts +7 -0
  496. package/lib/modules/participant/components/footer/buttons.js +53 -0
  497. package/lib/modules/participant/components/footer/index.d.ts +4 -0
  498. package/lib/modules/participant/components/footer/index.js +37 -0
  499. package/lib/modules/participant/components/merge/index.d.ts +11 -0
  500. package/lib/modules/participant/components/merge/index.js +49 -0
  501. package/lib/modules/participant/components/mute-all/index.d.ts +9 -0
  502. package/lib/modules/participant/components/mute-all/index.js +78 -0
  503. package/lib/modules/participant/components/participants/index.d.ts +2 -0
  504. package/lib/modules/participant/components/participants/index.js +201 -0
  505. package/lib/modules/participant/components/rename/index.d.ts +4 -0
  506. package/lib/modules/participant/components/rename/index.js +45 -0
  507. package/lib/modules/participant/index.css +11 -0
  508. package/lib/modules/participant/index.d.ts +4 -17
  509. package/lib/modules/participant/index.dev.js +40 -23
  510. package/lib/modules/participant/index.js +13 -33
  511. package/lib/modules/participant/member-list-data-source.d.ts +1 -1
  512. package/lib/modules/participant/member-list-data-source.js +3 -3
  513. package/lib/modules/participant/store.d.ts +35 -37
  514. package/lib/modules/participant/store.js +456 -292
  515. package/lib/modules/participant/type.d.ts +1 -1
  516. package/lib/modules/participant/view.d.ts +0 -9
  517. package/lib/modules/participant/view.js +8 -346
  518. package/lib/modules/setting/audio-settings/audio-settings.js +23 -20
  519. package/lib/modules/setting/audio-settings/index.css +26 -1
  520. package/lib/modules/setting/dialog-wrapper.js +2 -2
  521. package/lib/modules/setting/general-settings/general-settings.js +2 -2
  522. package/lib/modules/setting/general-settings/index.css +1 -1
  523. package/lib/modules/setting/index.css +2 -1
  524. package/lib/modules/setting/index.d.ts +2 -14
  525. package/lib/modules/setting/index.dev.js +20 -11
  526. package/lib/modules/setting/index.js +7 -3
  527. package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -2
  528. package/lib/modules/setting/state/index.js +3 -3
  529. package/lib/modules/setting/storage-settings/storage-settings.js +2 -2
  530. package/lib/modules/setting/store.d.ts +17 -27
  531. package/lib/modules/setting/store.js +129 -71
  532. package/lib/modules/setting/translate-settings/index.css +3 -1
  533. package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
  534. package/lib/modules/setting/video-settings/index.css +5 -2
  535. package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
  536. package/lib/modules/setting/video-settings/video-settings.js +2 -11
  537. package/lib/modules/setting/view.js +1 -2
  538. package/lib/modules/share-screen/index.d.ts +1 -5
  539. package/lib/modules/share-screen/index.dev.js +23 -30
  540. package/lib/modules/share-screen/index.js +2 -99
  541. package/lib/modules/share-screen/selection/index.css +2 -0
  542. package/lib/modules/share-screen/selection/index.js +126 -129
  543. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  544. package/lib/modules/share-screen/store.d.ts +13 -47
  545. package/lib/modules/share-screen/store.js +450 -924
  546. package/lib/modules/share-screen/view.js +6 -19
  547. package/lib/modules/sound-effect/index.d.ts +43 -0
  548. package/lib/modules/sound-effect/index.js +294 -0
  549. package/lib/modules/sound-effect/sound-effect-player.d.ts +12 -0
  550. package/lib/modules/sound-effect/sound-effect-player.js +57 -0
  551. package/lib/modules/state-bar/index.css +16 -2
  552. package/lib/modules/state-bar/index.d.ts +3 -3
  553. package/lib/modules/state-bar/index.dev.js +1 -1
  554. package/lib/modules/state-bar/index.js +15 -28
  555. package/lib/modules/state-bar/layout-config.js +7 -8
  556. package/lib/modules/state-bar/live-streaming-state.js +10 -15
  557. package/lib/modules/state-bar/meeting-detail.css +32 -13
  558. package/lib/modules/state-bar/meeting-details.js +118 -58
  559. package/lib/modules/state-bar/meeting-network-state.css +1 -1
  560. package/lib/modules/state-bar/meeting-network-state.js +4 -4
  561. package/lib/modules/state-bar/meeting-time.js +2 -2
  562. package/lib/modules/state-bar/network-quality.js +2 -2
  563. package/lib/modules/state-bar/recording.js +9 -7
  564. package/lib/modules/state-bar/store.d.ts +9 -6
  565. package/lib/modules/state-bar/store.js +45 -41
  566. package/lib/modules/state-bar/view.js +42 -29
  567. package/lib/modules/video-window/deviceState/index.d.ts +2 -1
  568. package/lib/modules/video-window/deviceState/index.js +8 -8
  569. package/lib/modules/video-window/index.d.ts +4 -3
  570. package/lib/modules/video-window/index.js +23 -16
  571. package/lib/modules/video-window/members/index.js +14 -8
  572. package/lib/modules/video-window/speaking/index.js +2 -2
  573. package/lib/modules/video-window/store.d.ts +15 -6
  574. package/lib/modules/video-window/store.js +73 -20
  575. package/lib/modules/video-window/topControl/index.js +2 -2
  576. package/lib/modules/video-window/type.d.ts +0 -5
  577. package/lib/modules/video-window/type.js +1 -7
  578. package/lib/modules/video-window/view.js +2 -2
  579. package/lib/modules/waiting-room-layout/index.css +16 -4
  580. package/lib/modules/waiting-room-layout/index.d.ts +3 -1
  581. package/lib/modules/waiting-room-layout/index.js +22 -5
  582. package/lib/modules/waiting-room-layout/store.d.ts +5 -2
  583. package/lib/modules/waiting-room-layout/store.js +12 -5
  584. package/lib/modules/waiting-room-layout/view.js +43 -33
  585. package/lib/modules/whiteboard/app.js +2 -2
  586. package/lib/modules/whiteboard/components/control-bar/index.js +4 -6
  587. package/lib/modules/whiteboard/components/control-bar/store.d.ts +2 -2
  588. package/lib/modules/whiteboard/components/control-bar/store.js +1 -1
  589. package/lib/modules/whiteboard/components/loading/index.js +2 -2
  590. package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
  591. package/lib/modules/whiteboard/components/progress/electron.js +3 -3
  592. package/lib/modules/whiteboard/components/switch-theme/index.css +1 -0
  593. package/lib/modules/whiteboard/components/switch-theme/index.js +19 -9
  594. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +1 -1
  595. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +1 -1
  596. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -1
  597. package/lib/modules/whiteboard/context.d.ts +1 -1
  598. package/lib/modules/whiteboard/context.js +2 -2
  599. package/lib/modules/whiteboard/index.d.ts +4 -20
  600. package/lib/modules/whiteboard/index.js +36 -79
  601. package/lib/modules/whiteboard/type.d.ts +1 -1
  602. package/lib/plugins/browser-runtime-plugin.js +24 -3
  603. package/lib/plugins/electron-rtc-plugin.js +3 -3
  604. package/lib/plugins/module-dev-plugin.d.ts +1 -1
  605. package/lib/plugins/module-dev-plugin.js +3 -3
  606. package/lib/plugins/rtm-plugin.js +3 -3
  607. package/lib/plugins/web-rtc-plugin.js +3 -3
  608. package/lib/providers/device-privilege-provider.d.ts +30 -0
  609. package/lib/providers/device-privilege-provider.js +386 -0
  610. package/lib/providers/device-provider.d.ts +246 -0
  611. package/lib/providers/device-provider.js +1741 -0
  612. package/lib/providers/device-stream-provider.d.ts +36 -0
  613. package/lib/providers/device-stream-provider.js +460 -0
  614. package/lib/providers/event-provider.d.ts +108 -0
  615. package/lib/providers/event-provider.js +288 -0
  616. package/lib/providers/interpreter-provider.d.ts +25 -0
  617. package/lib/providers/interpreter-provider.js +151 -0
  618. package/lib/providers/local-storage-provider.d.ts +8 -0
  619. package/lib/providers/local-storage-provider.js +31 -0
  620. package/lib/providers/monitor-provider.d.ts +15 -0
  621. package/lib/providers/monitor-provider.js +29 -0
  622. package/lib/providers/privilege-provider.d.ts +216 -0
  623. package/lib/providers/privilege-provider.js +966 -0
  624. package/lib/providers/renderer-provider.d.ts +43 -0
  625. package/lib/providers/renderer-provider.js +245 -0
  626. package/lib/providers/room-provider.d.ts +79 -0
  627. package/lib/providers/room-provider.js +439 -0
  628. package/lib/providers/session-provider.d.ts +26 -0
  629. package/lib/providers/session-provider.js +49 -0
  630. package/lib/runtime.d.ts +14 -4
  631. package/lib/scenes/base.d.ts +10 -0
  632. package/lib/scenes/base.js +75 -0
  633. package/lib/scenes/main-scene.d.ts +48 -0
  634. package/lib/scenes/main-scene.js +390 -0
  635. package/lib/scenes/waiting-scene.d.ts +31 -0
  636. package/lib/scenes/waiting-scene.js +129 -0
  637. package/lib/shared-data-source/config.d.ts +16 -0
  638. package/lib/shared-data-source/config.js +21 -0
  639. package/lib/translations/enUS.d.ts +267 -2
  640. package/lib/translations/enUS.js +373 -103
  641. package/lib/translations/zhCN.d.ts +267 -3
  642. package/lib/translations/zhCN.js +299 -30
  643. package/lib/type.d.ts +38 -4
  644. package/lib/type.js +4 -4
  645. package/lib/ui-manager.d.ts +11 -9
  646. package/lib/ui-manager.js +551 -683
  647. package/lib/ui-node.d.ts +25 -0
  648. package/lib/ui-node.js +156 -0
  649. package/lib/ui-scene.d.ts +3 -3
  650. package/lib/ui-scene.js +9 -22
  651. package/lib/utilities/constant.d.ts +45 -156
  652. package/lib/utilities/constant.js +43 -130
  653. package/lib/utilities/extract.d.ts +1 -1
  654. package/lib/utilities/parameters.d.ts +4 -0
  655. package/lib/utilities/parameters.js +19 -1
  656. package/lib/utilities/renderer.d.ts +2 -1
  657. package/lib/utilities/renderer.js +6 -3
  658. package/lib/utilities/screen-capture-permission.d.ts +1 -0
  659. package/lib/utilities/screen-capture-permission.js +16 -0
  660. package/lib/utilities/screen.js +32 -23
  661. package/lib/utilities/tools.d.ts +12 -1
  662. package/lib/utilities/tools.js +101 -4
  663. package/lib/utilities/ui-resources.d.ts +1 -0
  664. package/lib/utilities/ui-resources.js +5 -2
  665. package/lib/utilities/video-track-render-context.d.ts +2 -2
  666. package/package.json +14 -13
  667. package/public/assets/fcr_leave2.svg +58 -0
  668. package/public/assets/loading.gif +0 -0
  669. package/public/index.html +186 -10
  670. package/dist/electron/app.js +0 -148
  671. package/dist/electron/default-options.js +0 -25
  672. package/dist/electron/env.js +0 -13
  673. package/dist/electron/index.js +0 -20
  674. package/dist/electron/injections.js +0 -702
  675. package/dist/electron/logger.js +0 -66
  676. package/dist/electron/main.js +0 -67
  677. package/dist/electron/plugins/meeting-state.js +0 -39
  678. package/dist/electron/plugins/screenshot.js +0 -49
  679. package/dist/electron/preload.js +0 -36
  680. package/dist/electron/tools.js +0 -66
  681. package/dist/electron/window.js +0 -124
@@ -10,8 +10,11 @@ require("core-js/modules/es.date.to-primitive.js");
10
10
  require("core-js/modules/es.function.name.js");
11
11
  require("core-js/modules/es.number.constructor.js");
12
12
  require("core-js/modules/es.object.create.js");
13
+ require("core-js/modules/es.object.define-properties.js");
13
14
  require("core-js/modules/es.object.define-property.js");
14
15
  require("core-js/modules/es.object.get-own-property-descriptor.js");
16
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
17
+ require("core-js/modules/es.object.keys.js");
15
18
  require("core-js/modules/esnext.function.metadata.js");
16
19
  require("core-js/modules/esnext.symbol.metadata.js");
17
20
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -19,7 +22,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
19
22
  Object.defineProperty(exports, "__esModule", {
20
23
  value: true
21
24
  });
22
- exports["default"] = void 0;
25
+ exports["default"] = exports.StoreContext = void 0;
23
26
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
24
27
  require("core-js/modules/es.array.concat.js");
25
28
  require("core-js/modules/es.array.filter.js");
@@ -96,25 +99,29 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
96
99
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
97
100
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
98
101
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
99
- var _agoraEduCore = require("agora-edu-core");
100
- var _type = require("agora-edu-core/lib/type");
102
+ var _fcrCore = require("fcr-core");
103
+ var _type = require("fcr-core/lib/type");
101
104
  var _constant = require("../../utilities/constant");
102
105
  var _logger = require("agora-foundation/lib/logger");
103
- var _type2 = require("agora-rte-sdk/lib/core/scene/type");
104
- var _type3 = require("agora-rte-sdk/lib/type");
106
+ var _type2 = require("agora-rte-sdk/lib/type");
105
107
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
106
- var _toast = require("agora-ui-foundation/lib/components/toast");
107
108
  var _mobx = require("mobx");
108
109
  var _decorator = require("agora-foundation/lib/decorator");
109
- var _rendererEvent = require("../../utilities/renderer-event");
110
110
  var _mobxUtils = require("mobx-utils");
111
111
  var _memberListDataSource = require("./member-list-data-source");
112
- var _type4 = require("./type");
112
+ var _type3 = require("./type");
113
113
  var _i18n = require("agora-ui-foundation/lib/i18n");
114
114
  var _i18n2 = require("../../hooks/i18n");
115
- var _type5 = require("agora-edu-core/lib/room-control/user-control/type");
115
+ var _type4 = require("fcr-core/lib/room-control/user-control/type");
116
+ var _react = require("react");
117
+ var _rename = _interopRequireDefault(require("./components/rename"));
118
+ var _type5 = require("fcr-core/lib/room-control/privilege-control/type");
119
+ var _env = require("agora-foundation/lib/utilities/env");
120
+ var _jsxRuntime = require("react/jsx-runtime");
116
121
  var _ParticipantStore;
117
- var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_isNewWaitingRoomUserEnter, _init_waitingRoomUserCount, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _getAllowedOperationsDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _handlerUserActionDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _onUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _ref;
122
+ var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_isNewWaitingRoomUserEnter, _init_waitingRoomUserCount, _init_interpreterUsers, _init_interpreterState, _init_interpreterInputLanguageList, _init_newName, _init_refreshList, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _handlerUserActionDecs, _closeChangeNameDialogDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _getInterpreterStateDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _handleUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _getOutputLanguageDecs, _ref;
123
+ 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; }
124
+ 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; }
118
125
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
119
126
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
120
127
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -129,11 +136,11 @@ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side
129
136
  * seconds
130
137
  */
131
138
  var SESSION_DURATION = 30;
139
+ var _A = /*#__PURE__*/new WeakMap();
132
140
  var _B = /*#__PURE__*/new WeakMap();
133
141
  var _C = /*#__PURE__*/new WeakMap();
134
142
  var _D = /*#__PURE__*/new WeakMap();
135
143
  var _E = /*#__PURE__*/new WeakMap();
136
- var _A = /*#__PURE__*/new WeakMap();
137
144
  var _F = /*#__PURE__*/new WeakMap();
138
145
  var _G = /*#__PURE__*/new WeakMap();
139
146
  var _H = /*#__PURE__*/new WeakMap();
@@ -145,22 +152,28 @@ var _M = /*#__PURE__*/new WeakMap();
145
152
  var _N = /*#__PURE__*/new WeakMap();
146
153
  var _O = /*#__PURE__*/new WeakMap();
147
154
  var _P = /*#__PURE__*/new WeakMap();
148
- _ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], "logger");
155
+ var _Q = /*#__PURE__*/new WeakMap();
156
+ var _R = /*#__PURE__*/new WeakMap();
157
+ var _S = /*#__PURE__*/new WeakMap();
158
+ var _T = /*#__PURE__*/new WeakMap();
159
+ _ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _closeChangeNameDialogDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _getInterpreterStateDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _getOutputLanguageDecs = [_mobx.action, _mobx.action.bound], "logger");
149
160
  var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
150
161
  function ParticipantStore(_ref2) {
151
162
  var _this = this;
152
- var roomControl = _ref2.roomControl,
153
- engine = _ref2.engine,
154
- peerSessionControl = _ref2.peerSessionControl,
163
+ var _roomControl = _ref2.roomControl,
155
164
  securityStore = _ref2.securityStore,
156
165
  uiEventStore = _ref2.uiEventStore,
157
166
  deviceStore = _ref2.deviceStore,
158
- deviceStreamStore = _ref2.deviceStreamStore;
167
+ deviceStreamStore = _ref2.deviceStreamStore,
168
+ roomStore = _ref2.roomStore,
169
+ engine = _ref2.engine;
159
170
  (0, _classCallCheck2["default"])(this, ParticipantStore);
160
171
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
161
172
  (0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
162
173
  (0, _defineProperty2["default"])(this, "_waitingRoomDataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
174
+ (0, _defineProperty2["default"])(this, "_screenSharingState", _fcrCore.FcrMediaSourceState.CLOSE);
163
175
  (0, _defineProperty2["default"])(this, "_disposers", []);
176
+ (0, _defineProperty2["default"])(this, "_changeNameDialogKey", []);
164
177
  (0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
165
178
  (0, _defineProperty2["default"])(this, "_unmuteVideoTimestamp", new Map());
166
179
  (0, _defineProperty2["default"])(this, "_processedUserOpenDeviceRequests", new Set());
@@ -178,15 +191,47 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
178
191
  (0, _defineProperty2["default"])(this, "_userObserver", {
179
192
  onRemoteUsersJoined: this._handleRemoteUserJoined.bind(this),
180
193
  onRemoteUsersLeft: this._handleRemoteUserLeft.bind(this),
181
- onUserInfoUpdated: this._onUserInfoUpdated.bind(this)
194
+ onUserInfoUpdated: this._handleUserInfoUpdated.bind(this),
195
+ onUserPropertiesUpdated: this._handleUserPropertiesUpdated.bind(this)
182
196
  });
183
- (0, _defineProperty2["default"])(this, "_eventObserver", {
184
- onEvent: this._handleEvent
197
+ (0, _defineProperty2["default"])(this, "_interpreterObserver", {
198
+ onInterpreterUsersUpdated: function onInterpreterUsersUpdated(roomId, users) {
199
+ _this.interpreterUsers = users;
200
+ },
201
+ onInterpreterStateUpdated: function onInterpreterStateUpdated() {
202
+ _this.interpreterState = _this.getInterpreterState();
203
+ _this.interpreterUsers = _this._interpreterControl.getInterpreterUserList();
204
+ }
185
205
  });
186
206
  (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
187
207
  onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
188
208
  onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
189
209
  });
210
+ (0, _defineProperty2["default"])(this, "_roomStoreObserver", {
211
+ onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
212
+ var room = roomControl;
213
+ _this._waitingRoomControl = room;
214
+ var waitingRoomUserControl = room.getUserControl();
215
+ _this._waitingRoomUserControl = waitingRoomUserControl;
216
+ waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
217
+ _this.waitingRoomUserCount = _this._getWaitingRoomUserCount();
218
+ _this._initWaitingRoomUserList();
219
+ }
220
+ });
221
+ (0, _defineProperty2["default"])(this, "_privilegeControlObserver", {
222
+ onSecurityInfoUpdated: function onSecurityInfoUpdated(roomId, event) {
223
+ var _event$securityInfo$i;
224
+ _this.refreshList = Math.random();
225
+ if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type5.FcrSecurityAction.ChangeName) {
226
+ if (!event.securityInfo.enable) {
227
+ _this._closeChangeNameDialog();
228
+ }
229
+ }
230
+ }
231
+ });
232
+ (0, _defineProperty2["default"])(this, "_eventObserver", {
233
+ onEvent: this._handleEvent
234
+ });
190
235
  (0, _defineProperty2["default"])(this, "_whitebaordObderver", {
191
236
  onActive: function onActive(ownerId, operatorUser) {
192
237
  _this._updateUserBoardState(operatorUser);
@@ -195,25 +240,30 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
195
240
  _this._updateUserBoardState(operatorUser);
196
241
  }
197
242
  });
198
- _classPrivateFieldInitSpec(this, _B, _init__mainList(this, []));
199
- _classPrivateFieldInitSpec(this, _C, _init__participantsWindowActive(this, false));
200
- _classPrivateFieldInitSpec(this, _D, _init_currentPerspectiveType(this, 'attendee'));
201
- _classPrivateFieldInitSpec(this, _E, _init_audioVolumeMap(this, new Map()));
202
- _classPrivateFieldInitSpec(this, _A, _agoraEduCore.FcrMediaSourceState.STOPPED);
203
- _classPrivateFieldInitSpec(this, _F, _init_enableParticipantsJoinWithMute(this, false));
204
- _classPrivateFieldInitSpec(this, _G, _init_searchText(this, ''));
205
- _classPrivateFieldInitSpec(this, _H, _init_currentModal(this, 'modal'));
206
- _classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
207
- _classPrivateFieldInitSpec(this, _J, _init_spotlightStreamId(this, ''));
208
- _classPrivateFieldInitSpec(this, _K, _init_enableSpotlight(this, true));
209
- _classPrivateFieldInitSpec(this, _L, _init_mergeConfirmDialog(this, false));
210
- _classPrivateFieldInitSpec(this, _M, _init_mergeUserId(this, ''));
211
- _classPrivateFieldInitSpec(this, _N, _init_activeTab(this, _constant.RoomType.MAIN_ROOM));
212
- _classPrivateFieldInitSpec(this, _O, _init_isNewWaitingRoomUserEnter(this, false));
213
- _classPrivateFieldInitSpec(this, _P, _init_waitingRoomUserCount(this, 0));
243
+ _classPrivateFieldInitSpec(this, _A, _init__mainList(this, []));
244
+ _classPrivateFieldInitSpec(this, _B, _init__participantsWindowActive(this, false));
245
+ _classPrivateFieldInitSpec(this, _C, _init_currentPerspectiveType(this, 'attendee'));
246
+ _classPrivateFieldInitSpec(this, _D, _init_audioVolumeMap(this, new Map()));
247
+ _classPrivateFieldInitSpec(this, _E, _init_enableParticipantsJoinWithMute(this, false));
248
+ _classPrivateFieldInitSpec(this, _F, _init_searchText(this, ''));
249
+ _classPrivateFieldInitSpec(this, _G, _init_currentModal(this, 'modal'));
250
+ _classPrivateFieldInitSpec(this, _H, _init_localUserRole(this));
251
+ _classPrivateFieldInitSpec(this, _I, _init_spotlightStreamId(this, ''));
252
+ _classPrivateFieldInitSpec(this, _J, _init_enableSpotlight(this, true));
253
+ _classPrivateFieldInitSpec(this, _K, _init_mergeConfirmDialog(this, false));
254
+ _classPrivateFieldInitSpec(this, _L, _init_mergeUserId(this, ''));
255
+ _classPrivateFieldInitSpec(this, _M, _init_activeTab(this, _constant.RoomType.MAIN_ROOM));
256
+ _classPrivateFieldInitSpec(this, _N, _init_isNewWaitingRoomUserEnter(this, false));
257
+ _classPrivateFieldInitSpec(this, _O, _init_waitingRoomUserCount(this, 0));
258
+ _classPrivateFieldInitSpec(this, _P, _init_interpreterUsers(this, []));
259
+ // 翻译官列表
260
+ _classPrivateFieldInitSpec(this, _Q, _init_interpreterState(this));
261
+ _classPrivateFieldInitSpec(this, _R, _init_interpreterInputLanguageList(this, []));
262
+ _classPrivateFieldInitSpec(this, _S, _init_newName(this, ''));
263
+ _classPrivateFieldInitSpec(this, _T, _init_refreshList(this, Math.random()));
214
264
  (0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
215
- var _this$_userControl$ge;
216
- return _this.getAllowedOperations(userRole, userId === ((_this$_userControl$ge = _this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId));
265
+ var _this$_localUser;
266
+ return _this.getAllowedOperations(userRole, userId === ((_this$_localUser = _this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.userId));
217
267
  }));
218
268
  (0, _defineProperty2["default"])(this, "checkIsPin", (0, _mobxUtils.computedFn)(function (userId) {
219
269
  var _this$userMap$get;
@@ -221,31 +271,46 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
221
271
  return _this.pinedStreamIds.includes(stream.streamId);
222
272
  }));
223
273
  }));
274
+ (0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
275
+ return _this._securityStore.getAllowedOperations(targetRole, isSelf);
276
+ }));
224
277
  (0, _defineProperty2["default"])(this, "_formatUser", function (user) {
225
- var _this$_userControl$ge2;
278
+ var _this$_localUser2;
226
279
  var targetUsers = user.streams;
227
280
  var hasShareScreen = targetUsers.find(function (user) {
228
- return user.videoSourceType === _type3.AgoraRteVideoSourceType.SCREEN;
281
+ return user.videoSourceType === _type2.AgoraRteVideoSourceType.SCREEN;
229
282
  });
230
- var isSelf = user.userId === _this._userControl.getLocalUser().userId;
283
+ var isSelf = user.userId === _this._localUser.userId;
284
+
285
+ // const hasAudioPublishedAndStarted = (stream?: FcrStreamInfo) =>
286
+ // stream?.audioSourceState === FcrMediaSourceState.OPEN &&
287
+ // (stream?.streamType === AgoraRteMediaStreamType.AUDIO ||
288
+ // stream?.streamType === AgoraRteMediaStreamType.BOTH);
289
+
231
290
  var hasAudioPublishedAndStarted = function hasAudioPublishedAndStarted(stream) {
232
- return (stream === null || stream === void 0 ? void 0 : stream.audioSourceState) === _agoraEduCore.FcrMediaSourceState.STARTED && ((stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.AUDIO || (stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.BOTH);
291
+ return (stream === null || stream === void 0 ? void 0 : stream.audioSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
233
292
  };
293
+
294
+ // const hasVideoPublishedAndStarted = (stream?: FcrStreamInfo) =>
295
+ // stream?.videoSourceState === FcrMediaSourceState.OPEN &&
296
+ // (stream?.streamType === AgoraRteMediaStreamType.VIDEO ||
297
+ // stream?.streamType === AgoraRteMediaStreamType.BOTH);
298
+
234
299
  var hasVideoPublishedAndStarted = function hasVideoPublishedAndStarted(stream) {
235
- return (stream === null || stream === void 0 ? void 0 : stream.videoSourceState) === _agoraEduCore.FcrMediaSourceState.STARTED && ((stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.VIDEO || (stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.BOTH);
300
+ return (stream === null || stream === void 0 ? void 0 : stream.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
236
301
  };
237
302
  var hasAudio = false;
238
303
  var hasVideo = false;
239
304
  var audioDeviceType = 'none';
240
305
  var videoDeviceType = 'none';
241
306
  var userType = 'normal';
242
- if (user.userInfo.connectorType === _agoraEduCore.FcrRoomConnectorType.NONE) {
307
+ if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.NONE) {
243
308
  var defaultStream = targetUsers.find(function (user) {
244
- return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
309
+ return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
245
310
  });
246
311
  var pstnStream = targetUsers.find(function (_ref3) {
247
312
  var connectorType = _ref3.connectorType;
248
- return connectorType == _agoraEduCore.FcrRoomConnectorType.PSTN;
313
+ return connectorType == _fcrCore.FcrRoomConnectorType.PSTN;
249
314
  });
250
315
  videoDeviceType = 'computer-cam';
251
316
  hasVideo = isSelf ? _this._deviceStore.cameraEnabled : hasVideoPublishedAndStarted(defaultStream);
@@ -264,10 +329,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
264
329
  }
265
330
  }
266
331
  // 2.sip user with camera and phone mic
267
- else if ([_agoraEduCore.FcrRoomConnectorType.SIP, _agoraEduCore.FcrRoomConnectorType.H323].includes(user.userInfo.connectorType)) {
332
+ else if ([_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(user.userInfo.connectorType)) {
268
333
  var firstSipOrH323Stream = targetUsers.find(function (_ref4) {
269
334
  var connectorType = _ref4.connectorType;
270
- return [_agoraEduCore.FcrRoomConnectorType.SIP, _agoraEduCore.FcrRoomConnectorType.H323].includes(connectorType);
335
+ return [_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(connectorType);
271
336
  });
272
337
  audioDeviceType = 'phone-mic';
273
338
  videoDeviceType = 'computer-cam';
@@ -276,10 +341,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
276
341
  hasVideo = hasVideoPublishedAndStarted(firstSipOrH323Stream);
277
342
  }
278
343
  // 3.phone user with no camera and phone mic
279
- else if (user.userInfo.connectorType === _agoraEduCore.FcrRoomConnectorType.PSTN) {
344
+ else if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
280
345
  var _pstnStream = targetUsers.find(function (_ref5) {
281
346
  var connectorType = _ref5.connectorType;
282
- return connectorType == _agoraEduCore.FcrRoomConnectorType.PSTN;
347
+ return connectorType == _fcrCore.FcrRoomConnectorType.PSTN;
283
348
  });
284
349
  audioDeviceType = 'phone-mic';
285
350
  userType = 'phone';
@@ -293,7 +358,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
293
358
  userId: user.userId,
294
359
  userName: user.userInfo.userName,
295
360
  isHost: user.userInfo.userRole === _type.FcrUserRole.HOST,
296
- isMe: user.userId === ((_this$_userControl$ge2 = _this._userControl.getLocalUser()) === null || _this$_userControl$ge2 === void 0 ? void 0 : _this$_userControl$ge2.userId),
361
+ isMe: user.userId === ((_this$_localUser2 = _this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.userId),
297
362
  hasAudio: hasAudio,
298
363
  hasVideo: hasVideo,
299
364
  isScreenSharing: !!hasShareScreen,
@@ -307,67 +372,78 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
307
372
  isPin: _this.checkIsPin(user.userId)
308
373
  };
309
374
  });
310
- this._roomControl = roomControl;
311
- this._engine = engine;
312
- this._streamControl = roomControl.getStreamControl();
313
- this._peerSessionControl = peerSessionControl;
314
- this._userControl = roomControl.getUserControl();
315
- this.localUserRole = this._userControl.getLocalUser().userRole;
316
- this._userControl.addObserver(this._userObserver);
317
- this._streamControl.addObserver(this._streamsObserver);
318
- this._peerSessionControl.addObserver(this._peerSessionObserver);
319
- this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
375
+ this._roomControl = _roomControl;
376
+ this._streamControl = _roomControl.getStreamControl();
377
+ this._peerSessionControl = engine.getPeerSessionControl();
378
+ this._userControl = _roomControl.getUserControl();
320
379
  this._securityStore = securityStore;
321
380
  this._uiEventStore = uiEventStore;
322
381
  this._deviceStore = deviceStore;
323
382
  this._deviceStreamStore = deviceStreamStore;
383
+ this._roomStore = roomStore;
384
+ this._interpreterControl = _roomControl.getInterpreterControl();
324
385
  this._uiEventStore.addObserver(this._eventObserver);
386
+ this._userControl.addObserver(this._userObserver);
387
+ this._streamControl.addObserver(this._streamsObserver);
388
+ this._peerSessionControl.addObserver(this._peerSessionObserver);
389
+ this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
390
+ this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
391
+ this._interpreterControl.addObserver(this._interpreterObserver);
392
+ this._roomStore.addObserver(this._roomStoreObserver);
325
393
  this._initUserList();
326
- this._addReactions();
327
394
  this._updateUserBoardState();
395
+ this.interpreterUsers = this._interpreterControl.getInterpreterUserList();
396
+ this.interpreterState = this.getInterpreterState();
397
+ this._getOutputLanguage();
398
+ this.localUserRole = this._localUser.userRole;
328
399
  }
329
400
  return (0, _createClass2["default"])(ParticipantStore, [{
401
+ key: "_localUser",
402
+ get: function get() {
403
+ return this._userControl.getLocalUser();
404
+ }
405
+ }, {
330
406
  key: "_mainList",
331
407
  get: function get() {
332
- return _classPrivateFieldGet(_B, this);
408
+ return _classPrivateFieldGet(_A, this);
333
409
  },
334
410
  set: function set(v) {
335
- _classPrivateFieldSet(_B, this, v);
411
+ _classPrivateFieldSet(_A, this, v);
336
412
  }
337
413
  }, {
338
414
  key: "_participantsWindowActive",
339
415
  get: function get() {
340
- return _classPrivateFieldGet(_C, this);
416
+ return _classPrivateFieldGet(_B, this);
341
417
  },
342
418
  set: function set(v) {
343
- _classPrivateFieldSet(_C, this, v);
419
+ _classPrivateFieldSet(_B, this, v);
344
420
  }
345
421
  }, {
346
422
  key: "currentPerspectiveType",
347
423
  get: function get() {
348
- return _classPrivateFieldGet(_D, this);
424
+ return _classPrivateFieldGet(_C, this);
349
425
  },
350
426
  set: function set(v) {
351
- _classPrivateFieldSet(_D, this, v);
427
+ _classPrivateFieldSet(_C, this, v);
352
428
  }
353
429
  }, {
354
430
  key: "audioVolumeMap",
355
431
  get: function get() {
356
- return _classPrivateFieldGet(_E, this);
432
+ return _classPrivateFieldGet(_D, this);
357
433
  },
358
434
  set: function set(v) {
359
- _classPrivateFieldSet(_E, this, v);
435
+ _classPrivateFieldSet(_D, this, v);
360
436
  }
361
437
  }, {
362
- key: "screenSharingState",
438
+ key: "enableParticipantsJoinWithMute",
363
439
  get: function get() {
364
- return _classPrivateFieldGet(_A, this);
440
+ return _classPrivateFieldGet(_E, this);
365
441
  },
366
442
  set: function set(v) {
367
- _classPrivateFieldSet(_A, this, v);
443
+ _classPrivateFieldSet(_E, this, v);
368
444
  }
369
445
  }, {
370
- key: "enableParticipantsJoinWithMute",
446
+ key: "searchText",
371
447
  get: function get() {
372
448
  return _classPrivateFieldGet(_F, this);
373
449
  },
@@ -375,7 +451,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
375
451
  _classPrivateFieldSet(_F, this, v);
376
452
  }
377
453
  }, {
378
- key: "searchText",
454
+ key: "currentModal",
379
455
  get: function get() {
380
456
  return _classPrivateFieldGet(_G, this);
381
457
  },
@@ -383,7 +459,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
383
459
  _classPrivateFieldSet(_G, this, v);
384
460
  }
385
461
  }, {
386
- key: "currentModal",
462
+ key: "localUserRole",
387
463
  get: function get() {
388
464
  return _classPrivateFieldGet(_H, this);
389
465
  },
@@ -391,7 +467,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
391
467
  _classPrivateFieldSet(_H, this, v);
392
468
  }
393
469
  }, {
394
- key: "localUserRole",
470
+ key: "spotlightStreamId",
395
471
  get: function get() {
396
472
  return _classPrivateFieldGet(_I, this);
397
473
  },
@@ -399,7 +475,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
399
475
  _classPrivateFieldSet(_I, this, v);
400
476
  }
401
477
  }, {
402
- key: "spotlightStreamId",
478
+ key: "enableSpotlight",
403
479
  get: function get() {
404
480
  return _classPrivateFieldGet(_J, this);
405
481
  },
@@ -407,7 +483,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
407
483
  _classPrivateFieldSet(_J, this, v);
408
484
  }
409
485
  }, {
410
- key: "enableSpotlight",
486
+ key: "mergeConfirmDialog",
411
487
  get: function get() {
412
488
  return _classPrivateFieldGet(_K, this);
413
489
  },
@@ -415,7 +491,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
415
491
  _classPrivateFieldSet(_K, this, v);
416
492
  }
417
493
  }, {
418
- key: "mergeConfirmDialog",
494
+ key: "mergeUserId",
419
495
  get: function get() {
420
496
  return _classPrivateFieldGet(_L, this);
421
497
  },
@@ -423,7 +499,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
423
499
  _classPrivateFieldSet(_L, this, v);
424
500
  }
425
501
  }, {
426
- key: "mergeUserId",
502
+ key: "activeTab",
427
503
  get: function get() {
428
504
  return _classPrivateFieldGet(_M, this);
429
505
  },
@@ -431,7 +507,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
431
507
  _classPrivateFieldSet(_M, this, v);
432
508
  }
433
509
  }, {
434
- key: "activeTab",
510
+ key: "isNewWaitingRoomUserEnter",
435
511
  get: function get() {
436
512
  return _classPrivateFieldGet(_N, this);
437
513
  },
@@ -439,7 +515,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
439
515
  _classPrivateFieldSet(_N, this, v);
440
516
  }
441
517
  }, {
442
- key: "isNewWaitingRoomUserEnter",
518
+ key: "waitingRoomUserCount",
443
519
  get: function get() {
444
520
  return _classPrivateFieldGet(_O, this);
445
521
  },
@@ -447,13 +523,45 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
447
523
  _classPrivateFieldSet(_O, this, v);
448
524
  }
449
525
  }, {
450
- key: "waitingRoomUserCount",
526
+ key: "interpreterUsers",
451
527
  get: function get() {
452
528
  return _classPrivateFieldGet(_P, this);
453
529
  },
454
530
  set: function set(v) {
455
531
  _classPrivateFieldSet(_P, this, v);
456
532
  }
533
+ }, {
534
+ key: "interpreterState",
535
+ get: function get() {
536
+ return _classPrivateFieldGet(_Q, this);
537
+ },
538
+ set: function set(v) {
539
+ _classPrivateFieldSet(_Q, this, v);
540
+ }
541
+ }, {
542
+ key: "interpreterInputLanguageList",
543
+ get: function get() {
544
+ return _classPrivateFieldGet(_R, this);
545
+ },
546
+ set: function set(v) {
547
+ _classPrivateFieldSet(_R, this, v);
548
+ }
549
+ }, {
550
+ key: "newName",
551
+ get: function get() {
552
+ return _classPrivateFieldGet(_S, this);
553
+ },
554
+ set: function set(v) {
555
+ _classPrivateFieldSet(_S, this, v);
556
+ }
557
+ }, {
558
+ key: "refreshList",
559
+ get: function get() {
560
+ return _classPrivateFieldGet(_T, this);
561
+ },
562
+ set: function set(v) {
563
+ _classPrivateFieldSet(_T, this, v);
564
+ }
457
565
  }, {
458
566
  key: "userListSource",
459
567
  get: function get() {
@@ -570,9 +678,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
570
678
  }, {
571
679
  key: "release",
572
680
  value: function release() {
681
+ this._uiEventStore.removeObserver(this._eventObserver);
573
682
  this._userControl.removeObserver(this._userObserver);
574
683
  this._streamControl.removeObserver(this._streamsObserver);
575
- this._uiEventStore.removeObserver(this._eventObserver);
684
+ this._peerSessionControl.removeObserver(this._peerSessionObserver);
685
+ this._roomControl.getBoardControl().removeObserver(this._whitebaordObderver);
686
+ this._interpreterControl.removeObserver(this._interpreterObserver);
687
+ this._roomControl.getPrivilegeControl().removeObserver(this._privilegeControlObserver);
688
+ this._roomStore.removeObserver(this._roomStoreObserver);
576
689
  this._disposers.forEach(function (disposer) {
577
690
  return disposer();
578
691
  });
@@ -643,29 +756,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
643
756
  key: "openConfirmDialog",
644
757
  value: function openConfirmDialog(params, id) {
645
758
  var _this4 = this;
646
- var title = params.title,
647
- content = params.content,
648
- _onOk = params.onOk,
649
- _onCancel = params.onCancel,
650
- okText = params.okText,
651
- cancelText = params.cancelText,
652
- closable = params.closable,
653
- height = params.height;
654
- var dialogKey = this._uiEventStore.openConfirmDialog({
655
- title: title,
656
- content: content,
657
- okText: okText,
658
- cancelText: cancelText,
659
- height: height,
759
+ var dialogId = this._uiEventStore.openConfirmDialog(_objectSpread(_objectSpread({}, params), {}, {
660
760
  onCancel: function onCancel() {
661
- _this4._uiEventStore.closeDialog(dialogKey);
662
- _onCancel && _onCancel();
761
+ _this4._uiEventStore.closeConfirm(dialogId);
762
+ params.onCancel && params.onCancel();
663
763
  },
664
764
  onOk: function onOk() {
665
- _this4._uiEventStore.closeDialog(dialogKey);
666
- _onOk();
765
+ var _params$onOk;
766
+ _this4._uiEventStore.closeConfirm(dialogId);
767
+ (_params$onOk = params.onOk) === null || _params$onOk === void 0 || _params$onOk.call(params);
667
768
  }
668
- });
769
+ }));
770
+ return dialogId;
669
771
  }
670
772
  }, {
671
773
  key: "setParticipantsWindowActive",
@@ -696,15 +798,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
696
798
  var _this$userMap$get2;
697
799
  this._streamControl.mergeAudioStream(userId);
698
800
  this.setMergeConfirmDialog(false);
699
- _toast.FcrToastApi.open({
700
- id: 'mergeVideo',
701
- toastProps: {
702
- content: (0, _i18n.transI18n)('fmt_PSTN_toast_merged', {
703
- reason1: (_this$userMap$get2 = this.userMap.get(userId)) === null || _this$userMap$get2 === void 0 ? void 0 : _this$userMap$get2.userInfo.userName
704
- }),
705
- type: 'normal'
706
- },
707
- duration: 3000
801
+ this._uiEventStore.showToast({
802
+ message: (0, _i18n.transI18n)('fmt_PSTN_toast_merged', {
803
+ reason1: (_this$userMap$get2 = this.userMap.get(userId)) === null || _this$userMap$get2 === void 0 ? void 0 : _this$userMap$get2.userInfo.userName
804
+ }),
805
+ type: 'normal'
708
806
  });
709
807
  }
710
808
  }, {
@@ -712,7 +810,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
712
810
  value: function removePin(userId) {
713
811
  var _this$userMap$get3;
714
812
  var streamId = (_this$userMap$get3 = this.userMap.get(userId)) === null || _this$userMap$get3 === void 0 || (_this$userMap$get3 = _this$userMap$get3.streams.find(function (stream) {
715
- return stream.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
813
+ return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
716
814
  })) === null || _this$userMap$get3 === void 0 ? void 0 : _this$userMap$get3.streamId;
717
815
  if (streamId) {
718
816
  this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
@@ -726,7 +824,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
726
824
  value: function addPin(userId) {
727
825
  var _this$userMap$get4;
728
826
  var streamId = (_this$userMap$get4 = this.userMap.get(userId)) === null || _this$userMap$get4 === void 0 || (_this$userMap$get4 = _this$userMap$get4.streams.find(function (stream) {
729
- return stream.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
827
+ return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
730
828
  })) === null || _this$userMap$get4 === void 0 ? void 0 : _this$userMap$get4.streamId;
731
829
  if (streamId) {
732
830
  this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
@@ -735,11 +833,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
735
833
  });
736
834
  }
737
835
  }
738
- }, {
739
- key: "getAllowedOperations",
740
- value: function getAllowedOperations(targetRole, isSelf) {
741
- return this._securityStore.getAllowedOperations(targetRole, isSelf);
742
- }
743
836
  }, {
744
837
  key: "closeRemoveAdmitWaitingRoomDialog",
745
838
  value: function closeRemoveAdmitWaitingRoomDialog(dialogKey) {
@@ -758,6 +851,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
758
851
  }, {
759
852
  key: "handlerUserAction",
760
853
  value: function handlerUserAction(action, userId) {
854
+ var _this5 = this;
761
855
  switch (action) {
762
856
  case _attendee.ParticipantActionType.MUTE_AUDIO:
763
857
  this._muteUserAudio(userId);
@@ -818,20 +912,73 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
818
912
  case _attendee.ParticipantActionType.PUT_IN_WAITING_ROOM:
819
913
  this._moveToWaitingRoomByUserIds(userId);
820
914
  break;
915
+ case _attendee.ParticipantActionType.RENAME_IN_MEETING:
916
+ var key = this._uiEventStore.openConfirmDialog({
917
+ title: (0, _i18n.transI18n)('fmt_additional_option_rename_in_meeting'),
918
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_rename["default"], {
919
+ onChange: function onChange(value) {
920
+ return _this5.newName = value;
921
+ }
922
+ }),
923
+ onOk: function () {
924
+ var _onOk = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
925
+ return _regenerator["default"].wrap(function _callee$(_context) {
926
+ while (1) switch (_context.prev = _context.next) {
927
+ case 0:
928
+ _context.next = 2;
929
+ return _this5._userControl.updateUserName(userId, _this5.newName);
930
+ case 2:
931
+ (0, _mobx.runInAction)(function () {
932
+ _this5._closeChangeNameDialog();
933
+ _this5._uiEventStore.showToast({
934
+ type: 'normal',
935
+ message: (0, _i18n.transI18n)('fmt_additional_tips_nickname_change_success')
936
+ });
937
+ });
938
+ case 3:
939
+ case "end":
940
+ return _context.stop();
941
+ }
942
+ }, _callee);
943
+ }));
944
+ function onOk() {
945
+ return _onOk.apply(this, arguments);
946
+ }
947
+ return onOk;
948
+ }(),
949
+ alignCenter: true,
950
+ onCancel: function onCancel() {
951
+ _this5._closeChangeNameDialog();
952
+ },
953
+ closable: false,
954
+ height: 190
955
+ });
956
+ this._changeNameDialogKey.push(key);
957
+ }
958
+ }
959
+ }, {
960
+ key: "_closeChangeNameDialog",
961
+ value: function _closeChangeNameDialog() {
962
+ var _this6 = this;
963
+ if (this._changeNameDialogKey.length > 0) {
964
+ this._changeNameDialogKey.forEach(function (key) {
965
+ _this6._uiEventStore.closeConfirm(key);
966
+ });
967
+ this._changeNameDialogKey = [];
821
968
  }
822
969
  }
823
970
  }, {
824
971
  key: "_moveToWaitingRoomByUserIds",
825
972
  value: function () {
826
- var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(userId) {
973
+ var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(userId) {
827
974
  var _this$userMap$get6;
828
975
  var username;
829
- return _regenerator["default"].wrap(function _callee$(_context) {
830
- while (1) switch (_context.prev = _context.next) {
976
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
977
+ while (1) switch (_context2.prev = _context2.next) {
831
978
  case 0:
832
979
  username = (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName;
833
- _context.prev = 1;
834
- _context.next = 4;
980
+ _context2.prev = 1;
981
+ _context2.next = 4;
835
982
  return this._roomControl.moveToWaitingRoomByUserIds([userId]);
836
983
  case 4:
837
984
  this._uiEventStore.showToast({
@@ -840,20 +987,30 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
840
987
  reason1: username
841
988
  })
842
989
  });
843
- _context.next = 10;
990
+ _context2.next = 13;
844
991
  break;
845
992
  case 7:
846
- _context.prev = 7;
847
- _context.t0 = _context["catch"](1);
993
+ _context2.prev = 7;
994
+ _context2.t0 = _context2["catch"](1);
995
+ if (!(_context2.t0.code === '732403470')) {
996
+ _context2.next = 12;
997
+ break;
998
+ }
999
+ this._uiEventStore.showToast({
1000
+ type: 'error',
1001
+ message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_unable_move_creator')
1002
+ });
1003
+ return _context2.abrupt("return");
1004
+ case 12:
848
1005
  this._uiEventStore.showToast({
849
1006
  type: 'error',
850
1007
  message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_move_in_failed')
851
1008
  });
852
- case 10:
1009
+ case 13:
853
1010
  case "end":
854
- return _context.stop();
1011
+ return _context2.stop();
855
1012
  }
856
- }, _callee, this, [[1, 7]]);
1013
+ }, _callee2, this, [[1, 7]]);
857
1014
  }));
858
1015
  function _moveToWaitingRoomByUserIds(_x) {
859
1016
  return _moveToWaitingRoomByUserIds2.apply(this, arguments);
@@ -869,12 +1026,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
869
1026
  }, {
870
1027
  key: "kickOutWaitingRoomAllMember",
871
1028
  value: function () {
872
- var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(type) {
1029
+ var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(type) {
873
1030
  var _this$_waitingRoomUse2;
874
- return _regenerator["default"].wrap(function _callee2$(_context2) {
875
- while (1) switch (_context2.prev = _context2.next) {
1031
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
1032
+ while (1) switch (_context3.prev = _context3.next) {
876
1033
  case 0:
877
- _context2.next = 2;
1034
+ _context3.next = 2;
878
1035
  return (_this$_waitingRoomUse2 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse2 === void 0 ? void 0 : _this$_waitingRoomUse2.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
879
1036
  case 2:
880
1037
  this._uiEventStore.showToast({
@@ -883,9 +1040,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
883
1040
  });
884
1041
  case 3:
885
1042
  case "end":
886
- return _context2.stop();
1043
+ return _context3.stop();
887
1044
  }
888
- }, _callee2, this);
1045
+ }, _callee3, this);
889
1046
  }));
890
1047
  function kickOutWaitingRoomAllMember(_x2) {
891
1048
  return _kickOutWaitingRoomAllMember.apply(this, arguments);
@@ -895,12 +1052,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
895
1052
  }, {
896
1053
  key: "moveToMainRoomAllMember",
897
1054
  value: function () {
898
- var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
1055
+ var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
899
1056
  var _this$_waitingRoomCon;
900
- return _regenerator["default"].wrap(function _callee3$(_context3) {
901
- while (1) switch (_context3.prev = _context3.next) {
1057
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
1058
+ while (1) switch (_context4.prev = _context4.next) {
902
1059
  case 0:
903
- _context3.next = 2;
1060
+ _context4.next = 2;
904
1061
  return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
905
1062
  case 2:
906
1063
  this._uiEventStore.showToast({
@@ -909,9 +1066,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
909
1066
  });
910
1067
  case 3:
911
1068
  case "end":
912
- return _context3.stop();
1069
+ return _context4.stop();
913
1070
  }
914
- }, _callee3, this);
1071
+ }, _callee4, this);
915
1072
  }));
916
1073
  function moveToMainRoomAllMember() {
917
1074
  return _moveToMainRoomAllMember.apply(this, arguments);
@@ -952,7 +1109,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
952
1109
  this._enableWaitingRoom(data);
953
1110
  break;
954
1111
  case _constant.RoomControlType.RENAME:
955
- this._enableRename(data);
1112
+ this._enableRename();
956
1113
  break;
957
1114
  case _constant.RoomControlType.JOIN_WITH_MUTE_AUDIO:
958
1115
  this.enableJoinWithMuteAudio(data);
@@ -980,15 +1137,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
980
1137
  spotlightEnabled = _ref7.spotlightEnabled;
981
1138
  this.enableSpotlight = spotlightEnabled;
982
1139
  }
983
- if (action === _constant.UIAction.WAITING_ROOM_CREATED) {
984
- var room = payload.room;
985
- this._waitingRoomControl = room;
986
- var waitingRoomUserControl = room.getUserControl();
987
- this._waitingRoomUserControl = waitingRoomUserControl;
988
- waitingRoomUserControl.addObserver(this._waitingRoomUserObserver);
989
- this.waitingRoomUserCount = this._getWaitingRoomUserCount();
990
- this._initWaitingRoomUserList();
991
- }
992
1140
  if (action === _constant.UIAction.CHANGE_PARTICIPANT_TAB) {
993
1141
  this.handleActiveTab(payload);
994
1142
  }
@@ -1000,6 +1148,15 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1000
1148
  this.waitingRoomUserCount = 0;
1001
1149
  this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
1002
1150
  }
1151
+ if (action === _constant.UIAction.START_SHARE_SCREEN) {
1152
+ this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
1153
+ }
1154
+ if (action === _constant.UIAction.STOP_SHARE_SCREEN) {
1155
+ this._screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
1156
+ }
1157
+ if (action === _constant.UIAction.PARTICIPANT_ACTION) {
1158
+ this.handlerUserAction(payload.action, payload.userId);
1159
+ }
1003
1160
  }
1004
1161
  }, {
1005
1162
  key: "moveToMainRoomByUserIds",
@@ -1017,6 +1174,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1017
1174
  this.isNewWaitingRoomUserEnter = false;
1018
1175
  }
1019
1176
  }
1177
+ }, {
1178
+ key: "getInterpreterState",
1179
+ value: function getInterpreterState() {
1180
+ return this._interpreterControl.getState().enable;
1181
+ }
1020
1182
  }, {
1021
1183
  key: "_initWaitingRoomUserList",
1022
1184
  value: function _initWaitingRoomUserList() {
@@ -1026,8 +1188,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1026
1188
  var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
1027
1189
  userId = _Object$entries$_i[0],
1028
1190
  user = _Object$entries$_i[1];
1029
- if (userId !== this._userControl.getLocalUser().userId && user.userRole === _type.FcrUserRole.PARTICIPANT) {
1030
- this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
1191
+ if (userId !== this._localUser.userId && user.userRole === _type.FcrUserRole.PARTICIPANT) {
1192
+ this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._localUser.userId === userId);
1031
1193
  }
1032
1194
  }
1033
1195
  }
@@ -1036,34 +1198,34 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1036
1198
  value:
1037
1199
  // user actions
1038
1200
  function _muteUserAudio(user) {
1039
- var isSelf = user === this._userControl.getLocalUser().userId;
1201
+ var isSelf = user === this._localUser.userId;
1040
1202
  if (isSelf) {
1041
1203
  this._deviceStreamStore.enableMicrophoneWithStream(false);
1042
1204
  } else {
1043
1205
  var targetUsers = this._streamControl.getStreamsByUserId(user);
1044
1206
  var targetUser = targetUsers.find(function (user) {
1045
- return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
1207
+ return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
1046
1208
  });
1047
1209
  if (!targetUser) {
1048
1210
  return;
1049
1211
  }
1050
1212
  this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
1051
- audioPrivilege: _agoraEduCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
1052
- videoPrivilege: _agoraEduCore.FcrStreamPrivilegeOperation.NOOPERATION
1213
+ audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
1214
+ videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
1053
1215
  }));
1054
1216
  }
1055
1217
  }
1056
1218
  }, {
1057
1219
  key: "_unmuteUserAudio",
1058
1220
  value: function _unmuteUserAudio(userId) {
1059
- var isSelf = userId === this._userControl.getLocalUser().userId;
1221
+ var isSelf = userId === this._localUser.userId;
1060
1222
  if (isSelf) {
1061
1223
  this._deviceStreamStore.enableMicrophoneWithStream(true);
1062
1224
  } else {
1063
1225
  var _this$_unmuteAudioTim;
1064
1226
  var targetUsers = this._streamControl.getStreamsByUserId(userId);
1065
1227
  var targetUser = targetUsers.find(function (user) {
1066
- return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
1228
+ return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
1067
1229
  });
1068
1230
  if (!targetUser) {
1069
1231
  return;
@@ -1078,7 +1240,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1078
1240
  receiverId: userId,
1079
1241
  duration: SESSION_DURATION,
1080
1242
  payload: {
1081
- sender: this._userControl.getLocalUser()
1243
+ sender: this._localUser
1082
1244
  }
1083
1245
  });
1084
1246
  }
@@ -1086,20 +1248,20 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1086
1248
  }, {
1087
1249
  key: "_muteUserVideo",
1088
1250
  value: function _muteUserVideo(user) {
1089
- var isSelf = user === this._userControl.getLocalUser().userId;
1251
+ var isSelf = user === this._localUser.userId;
1090
1252
  if (isSelf) {
1091
1253
  this._deviceStreamStore.enableCameraWithStream(false);
1092
1254
  } else {
1093
1255
  var targetUsers = this._streamControl.getStreamsByUserId(user);
1094
1256
  var targetUser = targetUsers.find(function (user) {
1095
- return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
1257
+ return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
1096
1258
  });
1097
1259
  if (!targetUser) {
1098
1260
  return;
1099
1261
  }
1100
1262
  this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
1101
- audioPrivilege: _agoraEduCore.FcrStreamPrivilegeOperation.NOOPERATION,
1102
- videoPrivilege: _agoraEduCore.FcrStreamPrivilegeOperation.NOPRIVILEGE
1263
+ audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION,
1264
+ videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE
1103
1265
  }));
1104
1266
  }
1105
1267
  }
@@ -1108,11 +1270,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1108
1270
  }, {
1109
1271
  key: "_unmuteUserVideo",
1110
1272
  value: function _unmuteUserVideo(userId) {
1111
- var isSelf = userId === this._userControl.getLocalUser().userId;
1273
+ var isSelf = userId === this._localUser.userId;
1112
1274
  if (isSelf) {
1113
1275
  this._deviceStreamStore.enableCameraWithStream(true);
1114
1276
  } else {
1115
- var localUser = this._userControl.getLocalUser();
1277
+ var localUser = this._localUser;
1116
1278
  var targetUsers = this._streamControl.getStreamsByUserId(userId);
1117
1279
  var targetUser = targetUsers[0];
1118
1280
  if (localUser.userId === userId) {
@@ -1125,11 +1287,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1125
1287
  }
1126
1288
  this._unmuteVideoTimestamp.set(userId, now);
1127
1289
  this._peerSessionControl.startPeerSession({
1128
- sessionKey: _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA,
1290
+ sessionKey: _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA,
1129
1291
  receiverId: userId,
1130
1292
  duration: SESSION_DURATION,
1131
1293
  payload: {
1132
- sender: this._userControl.getLocalUser()
1294
+ sender: this._localUser
1133
1295
  }
1134
1296
  });
1135
1297
  }
@@ -1144,27 +1306,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1144
1306
  this._uiEventStore.updateAside({
1145
1307
  chat: true
1146
1308
  });
1309
+ this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_CHAT_ROOM_TAB, this.activeTab);
1147
1310
  var userData = this.userListSource.find(function (u) {
1148
1311
  return u.userId === userId;
1149
1312
  });
1150
- userData && this._uiEventStore.notifyChatUpdateTarget(userData.userInfo);
1313
+ userData && this._uiEventStore.notifyChatUpdateTarget(userData.userInfo, this.activeTab);
1314
+ if ((0, _env.isElectron)() && this._screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) {
1315
+ this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
1316
+ }
1151
1317
  }
1152
1318
  }, {
1153
1319
  key: "_kickOutUser",
1154
1320
  value: function _kickOutUser(userId) {
1155
- var _this5 = this,
1321
+ var _this7 = this,
1156
1322
  _this$userMap$get7;
1157
- this.openConfirmDialog({
1323
+ var dialogId = this.openConfirmDialog({
1158
1324
  title: '',
1159
1325
  onCancel: function onCancel() {
1160
- _this5._uiEventStore.closeConfirmDialog();
1326
+ _this7._uiEventStore.closeConfirm(dialogId);
1161
1327
  },
1162
1328
  content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
1163
1329
  reason2: (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName
1164
1330
  }),
1165
1331
  onOk: function onOk() {
1166
- _this5._userControl.kickOut(userId, _type5.FcrUserKickOutType.Once);
1167
- _this5._uiEventStore.closeConfirmDialog();
1332
+ _this7._userControl.kickOut(userId, _type4.FcrUserKickedOutType.Once);
1333
+ _this7._uiEventStore.closeConfirm(dialogId);
1168
1334
  },
1169
1335
  height: 160
1170
1336
  }, 'KICK_OUT');
@@ -1173,36 +1339,38 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1173
1339
  key: "_handleSetHostOrCoHost",
1174
1340
  value: function _handleSetHostOrCoHost(userId, type) {
1175
1341
  var _this$userMap$get8,
1176
- _this6 = this;
1342
+ _this8 = this;
1177
1343
  var username = (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName;
1178
1344
  var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
1179
- this.openConfirmDialog({
1345
+ var dialogId = this.openConfirmDialog({
1180
1346
  title: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
1181
1347
  reason1: targetRole
1182
1348
  }),
1183
1349
  onCancel: function onCancel() {
1184
- _this6._uiEventStore.closeConfirmDialog();
1350
+ _this8._uiEventStore.closeConfirm(dialogId);
1185
1351
  },
1186
1352
  content: (0, _i18n.transI18n)('fmt_uimanager_tips_designedas', {
1187
1353
  reason1: username,
1188
1354
  reason2: targetRole
1189
1355
  }),
1190
1356
  onOk: function onOk() {
1191
- if (!_this6.userMap.has(userId)) {
1192
- _this6._uiEventStore.showToast({
1357
+ if (!_this8.userMap.has(userId)) {
1358
+ _this8._uiEventStore.showToast({
1193
1359
  type: 'error',
1194
1360
  message: (0, _i18n.transI18n)('fmt_uimanager_tips_userleaft')
1195
1361
  });
1196
1362
  return;
1197
1363
  }
1198
- _this6._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
1199
- _this6._uiEventStore.closeConfirmDialog();
1364
+ _this8._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
1365
+ _this8._uiEventStore.closeConfirm(dialogId);
1200
1366
  },
1201
1367
  okText: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
1202
1368
  reason1: targetRole
1203
1369
  }),
1204
1370
  cancelText: (0, _i18n.transI18n)('fmt_security_buttons_cancel'),
1205
- closable: false
1371
+ closable: false,
1372
+ width: 400,
1373
+ alignCenter: true
1206
1374
  }, 'UPDATE_USER_ROLE');
1207
1375
  }
1208
1376
  }, {
@@ -1228,13 +1396,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1228
1396
  this._securityStore.setAllowJoinWithMuteAudio(JoinWithMuteAudio);
1229
1397
  this._securityStore.setAllowUnmuteSelfAudio(allowUnmute);
1230
1398
  this._securityStore.muteAll();
1231
- _toast.FcrToastApi.open({
1232
- id: 'muteAll',
1233
- toastProps: {
1234
- content: (0, _i18n.transI18n)('fmt_uimanager_tips_allmuted'),
1235
- type: 'normal'
1236
- },
1237
- duration: 3000
1399
+ this._uiEventStore.showToast({
1400
+ message: (0, _i18n.transI18n)('fmt_uimanager_tips_allmuted'),
1401
+ type: 'normal'
1238
1402
  });
1239
1403
  }
1240
1404
  }, {
@@ -1257,7 +1421,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1257
1421
  }, {
1258
1422
  key: "_revokeHost",
1259
1423
  value: function _revokeHost() {
1260
- if (!this._securityStore.hasRevokeHostPermission() || this._userControl.getLocalUser().userRole === _type.FcrUserRole.HOST) {
1424
+ if (!this._securityStore.hasRevokeHostPermission() || this._localUser.userRole === _type.FcrUserRole.HOST) {
1261
1425
  return;
1262
1426
  }
1263
1427
  this._userControl.revokeHost();
@@ -1283,11 +1447,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1283
1447
  }
1284
1448
  }, {
1285
1449
  key: "_enableRename",
1286
- value: function _enableRename(enable) {
1287
- // TODO
1288
- // const isAllowChangeSelfName = this._securityStore.allowChangeSelfName();
1289
- this._securityStore.setAllowChangeSelfName();
1450
+ value: function _enableRename() {
1451
+ var isAllowChangeSelfName = this._securityStore.allowChangeSelfName();
1452
+ this._securityStore.setAllowChangeSelfName(!isAllowChangeSelfName);
1290
1453
  }
1454
+
1291
1455
  // 所有人加入会议时静音
1292
1456
  }, {
1293
1457
  key: "enableJoinWithMuteAudio",
@@ -1301,7 +1465,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1301
1465
  if (!stream) {
1302
1466
  return;
1303
1467
  }
1304
- this.audioVolumeMap.set(stream.owner.userId, volume);
1468
+ this.audioVolumeMap.set(stream.owner.userId, Math.floor(volume / 255 * 100));
1305
1469
  }
1306
1470
  }, {
1307
1471
  key: "_updateUserBoardState",
@@ -1317,31 +1481,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1317
1481
  }, {
1318
1482
  key: "_handleRemoteUserJoined",
1319
1483
  value: function _handleRemoteUserJoined(roomId, events) {
1320
- var _this7 = this;
1484
+ var _this9 = this;
1321
1485
  events.forEach(function (event) {
1322
1486
  var modifiedUser = event.modifiedUser;
1323
- _this7._dataSource.add(modifiedUser, _this7._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this7._userControl.getLocalUser().userId);
1324
- _this7._updateUserBoardState(modifiedUser);
1487
+ _this9._dataSource.add(modifiedUser, _this9._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this9._localUser.userId);
1488
+ _this9._updateUserBoardState(modifiedUser);
1325
1489
  });
1326
1490
  }
1327
1491
  }, {
1328
1492
  key: "_handleRemoteUserLeft",
1329
1493
  value: function _handleRemoteUserLeft(roomId, events) {
1330
- var _this8 = this;
1494
+ var _this10 = this;
1331
1495
  events.forEach(function (event) {
1332
1496
  var modifiedUser = event.modifiedUser;
1333
- _this8._dataSource["delete"](modifiedUser);
1334
- _this8._updateUserBoardState(modifiedUser);
1497
+ _this10._dataSource["delete"](modifiedUser);
1498
+ _this10._updateUserBoardState(modifiedUser);
1335
1499
  });
1336
1500
  }
1337
1501
  }, {
1338
1502
  key: "_handleRemoteWaitingUserJoined",
1339
1503
  value: function _handleRemoteWaitingUserJoined(roomId, events) {
1340
- var _this9 = this;
1504
+ var _this11 = this;
1341
1505
  events.forEach(function (event) {
1342
1506
  var modifiedUser = event.modifiedUser;
1343
1507
  if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
1344
- _this9._waitingRoomDataSource.add(modifiedUser, _this9._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this9._userControl.getLocalUser().userId);
1508
+ _this11._waitingRoomDataSource.add(modifiedUser, _this11._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this11._localUser.userId);
1345
1509
  // this._updateUserBoardState(modifiedUser);
1346
1510
  }
1347
1511
  });
@@ -1361,11 +1525,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1361
1525
  }, {
1362
1526
  key: "_handleRemoteWaitingUserLeft",
1363
1527
  value: function _handleRemoteWaitingUserLeft(roomId, events) {
1364
- var _this10 = this;
1528
+ var _this12 = this;
1365
1529
  events.forEach(function (event) {
1366
1530
  var modifiedUser = event.modifiedUser;
1367
- _this10._waitingRoomDataSource["delete"](modifiedUser);
1368
- _this10._updateUserBoardState(modifiedUser);
1531
+ _this12._waitingRoomDataSource["delete"](modifiedUser);
1532
+ _this12._updateUserBoardState(modifiedUser);
1369
1533
  });
1370
1534
  this.waitingRoomUserCount = this._getWaitingRoomUserCount();
1371
1535
  if (this._getWaitingRoomUserCount() === 0) {
@@ -1373,16 +1537,16 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1373
1537
  }
1374
1538
  }
1375
1539
  }, {
1376
- key: "_onUserInfoUpdated",
1377
- value: function _onUserInfoUpdated(roomId, event) {
1540
+ key: "_handleUserInfoUpdated",
1541
+ value: function _handleUserInfoUpdated(roomId, event) {
1378
1542
  var _this$userMap$get9;
1379
1543
  var targetUser = event.modifiedUser;
1380
1544
  this._updateUserBoardState(targetUser);
1381
1545
  this._dataSource.update(targetUser);
1382
1546
  var originUser = (_this$userMap$get9 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get9 === void 0 ? void 0 : _this$userMap$get9.userInfo;
1383
- var _this$_userControl$ge3 = this._userControl.getLocalUser(),
1384
- localUserId = _this$_userControl$ge3.userId,
1385
- localUserRole = _this$_userControl$ge3.userRole;
1547
+ var _this$_localUser3 = this._localUser,
1548
+ localUserId = _this$_localUser3.userId,
1549
+ localUserRole = _this$_localUser3.userRole;
1386
1550
  var effectSelf = targetUser.userId === localUserId;
1387
1551
  if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
1388
1552
  // 参会者变管理
@@ -1413,6 +1577,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1413
1577
  this._updateLocalUserRole(localUserRole);
1414
1578
  this._refreshCurrentPerspectiveType();
1415
1579
  }
1580
+ }, {
1581
+ key: "_handleUserPropertiesUpdated",
1582
+ value: function _handleUserPropertiesUpdated() {
1583
+ this._getOutputLanguage();
1584
+ }
1416
1585
  }, {
1417
1586
  key: "_initUserList",
1418
1587
  value: function _initUserList() {
@@ -1422,41 +1591,41 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1422
1591
  var _Object$entries2$_i = (0, _slicedToArray2["default"])(_Object$entries2[_i2], 2),
1423
1592
  userId = _Object$entries2$_i[0],
1424
1593
  user = _Object$entries2$_i[1];
1425
- this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
1594
+ this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._localUser.userId === userId);
1426
1595
  }
1427
1596
  }
1428
1597
  }, {
1429
1598
  key: "_handleStreamsAdded",
1430
1599
  value: function _handleStreamsAdded(roomId, events) {
1431
- var _this11 = this;
1600
+ var _this13 = this;
1432
1601
  events.forEach(function (e) {
1433
1602
  var modifiedStream = e.modifiedStream;
1434
- _this11._dataSource.updateWithStreamAdd(modifiedStream);
1603
+ _this13._dataSource.updateWithStreamAdd(modifiedStream);
1435
1604
  });
1436
1605
  }
1437
1606
  }, {
1438
1607
  key: "_handleStreamsUpdated",
1439
1608
  value: function _handleStreamsUpdated(roomId, events) {
1440
- var _this12 = this;
1609
+ var _this14 = this;
1441
1610
  events.forEach(function (e) {
1442
1611
  var modifiedStream = e.modifiedStream;
1443
- _this12._dataSource.update(modifiedStream);
1612
+ _this14._dataSource.update(modifiedStream);
1444
1613
  });
1445
1614
  }
1446
1615
  }, {
1447
1616
  key: "_handleStreamsRemoved",
1448
1617
  value: function _handleStreamsRemoved(roomId, events) {
1449
- var _this13 = this;
1618
+ var _this15 = this;
1450
1619
  events.forEach(function (e) {
1451
1620
  var modifiedStream = e.modifiedStream;
1452
- _this13._dataSource.updateWithStreamRemove(modifiedStream);
1621
+ _this15._dataSource.updateWithStreamRemove(modifiedStream);
1453
1622
  });
1454
1623
  }
1455
1624
  }, {
1456
1625
  key: "_refreshCurrentPerspectiveType",
1457
1626
  value: function _refreshCurrentPerspectiveType() {
1458
- var _this$_userControl$ge4;
1459
- var localUserUid = (_this$_userControl$ge4 = this._userControl.getLocalUser()) === null || _this$_userControl$ge4 === void 0 ? void 0 : _this$_userControl$ge4.userId;
1627
+ var _this$_localUser4;
1628
+ var localUserUid = (_this$_localUser4 = this._localUser) === null || _this$_localUser4 === void 0 ? void 0 : _this$_localUser4.userId;
1460
1629
  if (!localUserUid) {
1461
1630
  this.currentPerspectiveType = 'attendee';
1462
1631
  return;
@@ -1479,18 +1648,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1479
1648
  }, {
1480
1649
  key: "_onPeerSessionReceived",
1481
1650
  value: function _onPeerSessionReceived(session) {
1482
- var _this$_userControl$ge5,
1483
- _this14 = this;
1651
+ var _this$_localUser5,
1652
+ _this16 = this;
1484
1653
  if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
1485
1654
  return;
1486
1655
  }
1487
1656
  this._processedUserOpenDeviceRequests.add(session.sessionId);
1488
- var localUserUid = (_this$_userControl$ge5 = this._userControl.getLocalUser()) === null || _this$_userControl$ge5 === void 0 ? void 0 : _this$_userControl$ge5.userId;
1657
+ var localUserUid = (_this$_localUser5 = this._localUser) === null || _this$_localUser5 === void 0 ? void 0 : _this$_localUser5.userId;
1489
1658
  if (!localUserUid) {
1490
1659
  return;
1491
1660
  }
1492
1661
  var localUser = this._streamControl.getStreamsByUserId(localUserUid).find(function (user) {
1493
- return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
1662
+ return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
1494
1663
  });
1495
1664
  if (!localUser) {
1496
1665
  return;
@@ -1499,14 +1668,16 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1499
1668
  var localUserHasVideo = this._deviceStore.cameraEnabled;
1500
1669
  var sessionKey = session.sessionKey,
1501
1670
  payload = session.payload;
1502
- if (sessionKey === _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA) {
1671
+ if (sessionKey === _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA) {
1503
1672
  if (localUserHasVideo) {
1504
1673
  this._peerSessionControl.acceptPeerSession(session);
1505
1674
  return;
1506
1675
  }
1507
1676
  var _ref8 = payload,
1508
1677
  sender = _ref8.sender;
1509
- this.openConfirmDialog({
1678
+ var dialogId = this.openConfirmDialog({
1679
+ width: 400,
1680
+ height: 166,
1510
1681
  title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_video_title', {
1511
1682
  reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[sender.userRole])
1512
1683
  }),
@@ -1514,25 +1685,25 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1514
1685
  okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
1515
1686
  cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
1516
1687
  onOk: function onOk() {
1517
- _this14._peerSessionControl.acceptPeerSession(session);
1518
- _this14._deviceStreamStore.enableCameraWithStream(true);
1519
- _this14._uiEventStore.closeConfirmDialog();
1688
+ _this16._peerSessionControl.acceptPeerSession(session);
1689
+ _this16._deviceStreamStore.enableCameraWithStream(true);
1690
+ _this16._uiEventStore.closeConfirm(dialogId);
1520
1691
  },
1521
1692
  onCancel: function onCancel() {
1522
- _this14._peerSessionControl.rejectPeerSession(session);
1523
- _this14._uiEventStore.closeConfirmDialog();
1693
+ _this16._peerSessionControl.rejectPeerSession(session);
1694
+ _this16._uiEventStore.closeConfirm(dialogId);
1524
1695
  }
1525
- }, _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA);
1696
+ }, _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA);
1526
1697
  return;
1527
1698
  }
1528
- if (sessionKey === _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE) {
1699
+ if (sessionKey === _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE) {
1529
1700
  if (localUserHasAudio) {
1530
1701
  this._peerSessionControl.acceptPeerSession(session);
1531
1702
  return;
1532
1703
  }
1533
1704
  var _ref9 = payload,
1534
1705
  _sender = _ref9.sender;
1535
- this.openConfirmDialog({
1706
+ var _dialogId = this.openConfirmDialog({
1536
1707
  title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
1537
1708
  reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[_sender.userRole])
1538
1709
  }),
@@ -1540,15 +1711,17 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1540
1711
  okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
1541
1712
  cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
1542
1713
  onOk: function onOk() {
1543
- _this14._peerSessionControl.acceptPeerSession(session);
1544
- _this14._deviceStreamStore.enableMicrophoneWithStream(true);
1545
- _this14._uiEventStore.closeConfirmDialog();
1714
+ _this16._peerSessionControl.acceptPeerSession(session);
1715
+ _this16._deviceStreamStore.enableMicrophoneWithStream(true);
1716
+ _this16._uiEventStore.closeConfirm(_dialogId);
1546
1717
  },
1547
1718
  onCancel: function onCancel() {
1548
- _this14._peerSessionControl.rejectPeerSession(session);
1549
- _this14._uiEventStore.closeConfirmDialog();
1550
- }
1551
- }, _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
1719
+ _this16._peerSessionControl.rejectPeerSession(session);
1720
+ _this16._uiEventStore.closeConfirm(_dialogId);
1721
+ },
1722
+ width: 400,
1723
+ height: 166
1724
+ }, _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
1552
1725
  }
1553
1726
  }
1554
1727
  }, {
@@ -1567,60 +1740,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1567
1740
  var responderId = session.responderId,
1568
1741
  sessionKey = session.sessionKey;
1569
1742
  switch (sessionKey) {
1570
- case _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA:
1743
+ case _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA:
1571
1744
  this._unmuteVideoTimestamp["delete"](responderId);
1572
1745
  break;
1573
- case _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE:
1746
+ case _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE:
1574
1747
  this._unmuteAudioTimestamp["delete"](responderId);
1575
1748
  break;
1576
1749
  }
1577
1750
  }
1578
- }, {
1579
- key: "_sendEvent",
1580
- value: function _sendEvent(action, payload) {
1581
- (0, _rendererEvent.sendEvent)({
1582
- action: action,
1583
- payload: payload
1584
- });
1585
- }
1586
- }, {
1587
- key: "_addReactions",
1588
- value: function _addReactions() {
1589
- var _this15 = this;
1590
- this._disposers.push((0, _mobx.reaction)(function () {
1591
- return _this15._participantsWindowActive;
1592
- }, function (active) {
1593
- if (active) {
1594
- _this15._sendEvent(_constant.RendererEventAction.INIT_PARTICIPANT_LIST, {
1595
- userList: _this15.userList,
1596
- perspectiveType: _this15.currentPerspectiveType,
1597
- allowChangeSelfName: _this15._securityStore.allowChangeSelfName(),
1598
- allowChat: _this15._securityStore.allowChat(),
1599
- allowJoinWithMuteAudio: _this15._securityStore.allowJoinWithMuteAudio(),
1600
- allowShareScreen: _this15._securityStore.allowScreenShareAndBoard(),
1601
- allowUnmuteSelfVideo: _this15._securityStore.allowUnmuteSelfVideo(),
1602
- allowUnmuteSelfAudio: _this15._securityStore.allowUnmuteSelfAudio(),
1603
- isLockRoomEnabled: _this15._securityStore.isLockRoomEnabled(),
1604
- isWaitingRoomEnabled: _this15._securityStore.isWaitingRoomEnabled(),
1605
- hasRevokeHostPermission: _this15._securityStore.hasRevokeHostPermission() && _this15._userControl.getLocalUser().userRole !== _type.FcrUserRole.HOST,
1606
- userRole: _this15._userControl.getLocalUser().userRole
1607
- });
1608
- }
1609
- }));
1610
- this._disposers.push((0, _mobx.reaction)(function () {
1611
- return _this15.userList;
1612
- }, function (list) {
1613
- (0, _rendererEvent.sendEvent)({
1614
- action: _constant.RendererEventAction.UPDATE_PARTICIPANT,
1615
- payload: list
1616
- });
1617
- }));
1618
- }
1619
- }, {
1620
- key: "_isCohost",
1621
- value: function _isCohost(userRole) {
1622
- return userRole === _type.FcrUserRole.COHOST;
1623
- }
1624
1751
  }, {
1625
1752
  key: "_isHost",
1626
1753
  value: function _isHost(userRole) {
@@ -1631,10 +1758,41 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1631
1758
  value: function _updateLocalUserRole(userRole) {
1632
1759
  this.localUserRole = userRole;
1633
1760
  }
1761
+ }, {
1762
+ key: "_getOutputLanguage",
1763
+ value: function () {
1764
+ var _getOutputLanguage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
1765
+ var interpreterInputLanguageList, index, user, language;
1766
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
1767
+ while (1) switch (_context5.prev = _context5.next) {
1768
+ case 0:
1769
+ interpreterInputLanguageList = [];
1770
+ for (index = 0; index < this.userList.length; index++) {
1771
+ user = this.userList[index];
1772
+ language = this._userControl.getUserPropertiesByKeyPath('interpreterLangCode', user.userId);
1773
+ if (language) {
1774
+ interpreterInputLanguageList.push({
1775
+ userId: user.userId,
1776
+ language: language
1777
+ });
1778
+ }
1779
+ }
1780
+ this.interpreterInputLanguageList = interpreterInputLanguageList;
1781
+ case 3:
1782
+ case "end":
1783
+ return _context5.stop();
1784
+ }
1785
+ }, _callee5, this);
1786
+ }));
1787
+ function _getOutputLanguage() {
1788
+ return _getOutputLanguage2.apply(this, arguments);
1789
+ }
1790
+ return _getOutputLanguage;
1791
+ }()
1634
1792
  }]);
1635
1793
  }();
1636
1794
  _ParticipantStore = ParticipantStore;
1637
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "waitingRoomUserCount"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_onUserInfoUpdatedDecs, 18, "_onUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"]], []).e, 16);
1795
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "waitingRoomUserCount"], [_mobx.observable, 1, "interpreterUsers"], [_mobx.observable, 1, "interpreterState"], [_mobx.observable, 1, "interpreterInputLanguageList"], [_mobx.observable, 1, "newName"], [_mobx.observable, 1, "refreshList"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_closeChangeNameDialogDecs, 18, "_closeChangeNameDialog"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_getInterpreterStateDecs, 18, "getInterpreterState"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"], [_getOutputLanguageDecs, 18, "_getOutputLanguage"]], []).e, 21);
1638
1796
  _init__mainList = _applyDecs$e[0];
1639
1797
  _init__participantsWindowActive = _applyDecs$e[1];
1640
1798
  _init_currentPerspectiveType = _applyDecs$e[2];
@@ -1650,4 +1808,10 @@ _init_mergeUserId = _applyDecs$e[11];
1650
1808
  _init_activeTab = _applyDecs$e[12];
1651
1809
  _init_isNewWaitingRoomUserEnter = _applyDecs$e[13];
1652
1810
  _init_waitingRoomUserCount = _applyDecs$e[14];
1653
- _initProto = _applyDecs$e[15];
1811
+ _init_interpreterUsers = _applyDecs$e[15];
1812
+ _init_interpreterState = _applyDecs$e[16];
1813
+ _init_interpreterInputLanguageList = _applyDecs$e[17];
1814
+ _init_newName = _applyDecs$e[18];
1815
+ _init_refreshList = _applyDecs$e[19];
1816
+ _initProto = _applyDecs$e[20];
1817
+ var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);