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
@@ -0,0 +1,899 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.name.js");
11
+ require("core-js/modules/es.map.js");
12
+ require("core-js/modules/es.object.create.js");
13
+ require("core-js/modules/es.object.define-property.js");
14
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
15
+ require("core-js/modules/esnext.function.metadata.js");
16
+ require("core-js/modules/esnext.map.delete-all.js");
17
+ require("core-js/modules/esnext.map.emplace.js");
18
+ require("core-js/modules/esnext.map.every.js");
19
+ require("core-js/modules/esnext.map.filter.js");
20
+ require("core-js/modules/esnext.map.find.js");
21
+ require("core-js/modules/esnext.map.find-key.js");
22
+ require("core-js/modules/esnext.map.includes.js");
23
+ require("core-js/modules/esnext.map.key-of.js");
24
+ require("core-js/modules/esnext.map.map-keys.js");
25
+ require("core-js/modules/esnext.map.map-values.js");
26
+ require("core-js/modules/esnext.map.merge.js");
27
+ require("core-js/modules/esnext.map.reduce.js");
28
+ require("core-js/modules/esnext.map.some.js");
29
+ require("core-js/modules/esnext.map.update.js");
30
+ require("core-js/modules/esnext.symbol.metadata.js");
31
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
32
+ var _typeof = require("@babel/runtime/helpers/typeof");
33
+ Object.defineProperty(exports, "__esModule", {
34
+ value: true
35
+ });
36
+ exports["default"] = exports.StoreContext = void 0;
37
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
38
+ require("core-js/modules/es.array.concat.js");
39
+ require("core-js/modules/es.array.filter.js");
40
+ require("core-js/modules/es.array.find.js");
41
+ require("core-js/modules/es.array.find-index.js");
42
+ require("core-js/modules/es.array.for-each.js");
43
+ require("core-js/modules/es.array.iterator.js");
44
+ require("core-js/modules/es.array.map.js");
45
+ require("core-js/modules/es.array.push.js");
46
+ require("core-js/modules/es.array.splice.js");
47
+ require("core-js/modules/es.date.to-string.js");
48
+ require("core-js/modules/es.function.bind.js");
49
+ require("core-js/modules/es.number.constructor.js");
50
+ require("core-js/modules/es.object.to-string.js");
51
+ require("core-js/modules/es.string.iterator.js");
52
+ require("core-js/modules/es.weak-map.js");
53
+ require("core-js/modules/esnext.async-iterator.filter.js");
54
+ require("core-js/modules/esnext.async-iterator.find.js");
55
+ require("core-js/modules/esnext.async-iterator.for-each.js");
56
+ require("core-js/modules/esnext.async-iterator.map.js");
57
+ require("core-js/modules/esnext.iterator.constructor.js");
58
+ require("core-js/modules/esnext.iterator.filter.js");
59
+ require("core-js/modules/esnext.iterator.find.js");
60
+ require("core-js/modules/esnext.iterator.for-each.js");
61
+ require("core-js/modules/esnext.iterator.map.js");
62
+ require("core-js/modules/esnext.weak-map.delete-all.js");
63
+ require("core-js/modules/esnext.weak-map.emplace.js");
64
+ require("core-js/modules/web.dom-collections.for-each.js");
65
+ require("core-js/modules/web.dom-collections.iterator.js");
66
+ require("core-js/modules/web.timers.js");
67
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
68
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
69
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
70
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
71
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
72
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
73
+ var _mobx = require("mobx");
74
+ var _constant = require("../../utilities/constant");
75
+ var _type = require("agora-rte-sdk/lib/core/rtc/type");
76
+ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
77
+ var _decorator = require("agora-foundation/lib/decorator");
78
+ var _platform = require("../../utilities/platform");
79
+ var _logger = require("agora-foundation/lib/logger");
80
+ var _dialogs = require("../dialog/dialogs");
81
+ var _type2 = require("fcr-core/lib/room-control/type");
82
+ var _fcrCore = require("fcr-core");
83
+ var _type3 = require("fcr-core/lib/type");
84
+ var _react = require("react");
85
+ var _type4 = require("../../type");
86
+ var _leaveMeeting = require("../action-bar/components/leave/leave-meeting");
87
+ var _type5 = require("./type");
88
+ var _stopButton = _interopRequireDefault(require("./components/stop-live-streaming/stop-button"));
89
+ var _env = require("agora-foundation/lib/utilities/env");
90
+ var _jsxRuntime = require("react/jsx-runtime");
91
+ var _ControlBarStore;
92
+ var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_shareWithAudio, _init_shareAudioProcessingChannel, _init_currentShareId, _init_currentShareType, _init_cloudRecordingState, _init_localUserRole, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_users, _init_isPstnUser, _init_isMuteAudio, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_meetingId, _init_currentShareDisplayId, _initControlBarDecs, _setControlBarWindowBoundsDecs, _updateCurrentShareContentDecs, _setLocalUserRoleDecs, _setShareWithAudioStateDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _sendLeaveDecs, _sendEndDecs, _keepPhoneAudioConnectionDecs, _sendAssignDecs, _handleLeaveRoomDecs, _getCurrentSharingWorkAreaDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleUserInfoUpdatedDecs, _ref;
93
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
94
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
95
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
96
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
97
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
98
+ function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
99
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
100
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
101
+ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
102
+ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
103
+ var _A = /*#__PURE__*/new WeakMap();
104
+ var _B = /*#__PURE__*/new WeakMap();
105
+ var _C = /*#__PURE__*/new WeakMap();
106
+ var _D = /*#__PURE__*/new WeakMap();
107
+ var _E = /*#__PURE__*/new WeakMap();
108
+ var _F = /*#__PURE__*/new WeakMap();
109
+ var _G = /*#__PURE__*/new WeakMap();
110
+ var _H = /*#__PURE__*/new WeakMap();
111
+ var _I = /*#__PURE__*/new WeakMap();
112
+ var _J = /*#__PURE__*/new WeakMap();
113
+ var _K = /*#__PURE__*/new WeakMap();
114
+ var _L = /*#__PURE__*/new WeakMap();
115
+ var _M = /*#__PURE__*/new WeakMap();
116
+ var _N = /*#__PURE__*/new WeakMap();
117
+ var _O = /*#__PURE__*/new WeakMap();
118
+ var _P = /*#__PURE__*/new WeakMap();
119
+ var _Q = /*#__PURE__*/new WeakMap();
120
+ var _R = /*#__PURE__*/new WeakMap();
121
+ var _S = /*#__PURE__*/new WeakMap();
122
+ var _T = /*#__PURE__*/new WeakMap();
123
+ var _U = /*#__PURE__*/new WeakMap();
124
+ var _V = /*#__PURE__*/new WeakMap();
125
+ _ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _initControlBarDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowBoundsDecs = [_mobx.action, _mobx.action.bound], _updateCurrentShareContentDecs = [_mobx.action, _mobx.action.bound], _setLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _createNewShareDecs = [_mobx.action, _mobx.action.bound], _handlerStopShareDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleMoreClickDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
126
+ leading: true
127
+ })], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
128
+ leading: true
129
+ })], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
130
+ leading: true
131
+ })], _showToastDecs = [_mobx.action, _mobx.action.bound], _setShowMeetingDetailPortalDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _sendLeaveDecs = [_mobx.action, _mobx.action.bound], _sendEndDecs = [_mobx.action, _mobx.action.bound], _keepPhoneAudioConnectionDecs = [_mobx.action, _mobx.action.bound], _sendAssignDecs = [_mobx.action, _mobx.action.bound], _handleLeaveRoomDecs = [_mobx.action, _mobx.action.bound], _getCurrentSharingWorkAreaDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
132
+ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
133
+ function ControlBarStore(_ref2) {
134
+ var _roomControl$getRoomS,
135
+ _roomControl$getRoomS2,
136
+ _roomControl$getRoomS3,
137
+ _roomControl$getRoomS4,
138
+ _this = this;
139
+ var uiEventStore = _ref2.uiEventStore,
140
+ securityStore = _ref2.securityStore,
141
+ roomControl = _ref2.roomControl,
142
+ mediaControl = _ref2.mediaControl,
143
+ userControl = _ref2.userControl,
144
+ streamControl = _ref2.streamControl,
145
+ deviceStore = _ref2.deviceStore;
146
+ (0, _classCallCheck2["default"])(this, ControlBarStore);
147
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
148
+ (0, _defineProperty2["default"])(this, "_screenBounds", {
149
+ width: 0,
150
+ height: 0,
151
+ availTop: 0,
152
+ x: 0,
153
+ y: 0
154
+ });
155
+ (0, _defineProperty2["default"])(this, "_disposers", []);
156
+ (0, _defineProperty2["default"])(this, "_liveStreamingDialogKey", null);
157
+ _classPrivateFieldInitSpec(this, _A, _init_leaveConfirmRef(this, undefined));
158
+ _classPrivateFieldInitSpec(this, _B, _init_shareWithAudio(this, false));
159
+ _classPrivateFieldInitSpec(this, _C, _init_shareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
160
+ _classPrivateFieldInitSpec(this, _D, _init_currentShareId(this, ''));
161
+ _classPrivateFieldInitSpec(this, _E, _init_currentShareType(this, _type.AgoraRtcScreenCaptureType.SCREEN));
162
+ _classPrivateFieldInitSpec(this, _F, _init_cloudRecordingState(this, _type3.FcrRecordingState.Stopped));
163
+ _classPrivateFieldInitSpec(this, _G, _init_localUserRole(this, _type3.FcrUserRole.PARTICIPANT));
164
+ _classPrivateFieldInitSpec(this, _H, _init_isHost(this, false));
165
+ _classPrivateFieldInitSpec(this, _I, _init_roomDuration(this, 0));
166
+ _classPrivateFieldInitSpec(this, _J, _init_startTime(this, new Date().getTime()));
167
+ _classPrivateFieldInitSpec(this, _K, _init_playUrl(this, ''));
168
+ _classPrivateFieldInitSpec(this, _L, _init_liveStreamingState(this, _type3.FcrLiveStreamingState.STOPPED));
169
+ _classPrivateFieldInitSpec(this, _M, _init_allApplicationWindows(this, []));
170
+ _classPrivateFieldInitSpec(this, _N, _init_roomInfo(this, {
171
+ roomId: '',
172
+ roomName: '',
173
+ roomType: _type2.FcrRoomType.Mainroom,
174
+ password: '',
175
+ inviteLink: ''
176
+ }));
177
+ _classPrivateFieldInitSpec(this, _O, _init_isShowMeetingDetailPortal(this, false));
178
+ _classPrivateFieldInitSpec(this, _P, _init_users(this, []));
179
+ _classPrivateFieldInitSpec(this, _Q, _init_isPstnUser(this, false));
180
+ _classPrivateFieldInitSpec(this, _R, _init_isMuteAudio(this, false));
181
+ _classPrivateFieldInitSpec(this, _S, _init_hiddenShareActionNav(this, false));
182
+ _classPrivateFieldInitSpec(this, _T, _init_boardOwnerUser(this, ''));
183
+ _classPrivateFieldInitSpec(this, _U, _init_meetingId(this, undefined));
184
+ _classPrivateFieldInitSpec(this, _V, _init_currentShareDisplayId(this, 0));
185
+ this._uiEventStore = uiEventStore;
186
+ this._roomControl = roomControl;
187
+ this._securityStore = securityStore;
188
+ this._userControl = userControl;
189
+ this._streamControl = streamControl;
190
+ this.startTime = (_roomControl$getRoomS = (_roomControl$getRoomS2 = roomControl.getRoomSchedule()) === null || _roomControl$getRoomS2 === void 0 ? void 0 : _roomControl$getRoomS2.startTime) !== null && _roomControl$getRoomS !== void 0 ? _roomControl$getRoomS : new Date().getTime();
191
+ this.roomInfo = roomControl.getRoomInfo();
192
+ this.roomDuration = (_roomControl$getRoomS3 = (_roomControl$getRoomS4 = roomControl.getRoomSchedule()) === null || _roomControl$getRoomS4 === void 0 ? void 0 : _roomControl$getRoomS4.duration) !== null && _roomControl$getRoomS3 !== void 0 ? _roomControl$getRoomS3 : 0;
193
+ this.liveStreamingState = roomControl.getLiveStreamingState();
194
+ this.isMuteAudio = !deviceStore.microphoneEnabled;
195
+ this.users = (0, _toConsumableArray2["default"])(userControl.getUserList());
196
+ this.meetingId = roomControl.getRoomPropertiesByKeyPath('meetingId');
197
+ (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
198
+ return _regenerator["default"].wrap(function _callee$(_context) {
199
+ while (1) switch (_context.prev = _context.next) {
200
+ case 0:
201
+ _context.next = 2;
202
+ return mediaControl === null || mediaControl === void 0 ? void 0 : mediaControl.getWindowList();
203
+ case 2:
204
+ _this.allApplicationWindows = _context.sent;
205
+ case 3:
206
+ case "end":
207
+ return _context.stop();
208
+ }
209
+ }, _callee);
210
+ }))();
211
+ roomControl.addObserver({
212
+ onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(roomId, state, url) {
213
+ _this.liveStreamingState = state;
214
+ _this.playUrl = url;
215
+ },
216
+ onCloudRecordingStateUpdated: function onCloudRecordingStateUpdated(roomId, state) {
217
+ return _this.cloudRecordingState = state;
218
+ }
219
+ });
220
+ roomControl.getBoardControl().addObserver({
221
+ onActive: function onActive(ownerId) {
222
+ _this.boardOwnerUser = ownerId;
223
+ },
224
+ onInactive: function onInactive() {
225
+ _this.boardOwnerUser = '';
226
+ }
227
+ });
228
+ streamControl.addObserver({
229
+ onStreamsAdded: this._handleStreamUpdate.bind(this),
230
+ onStreamsUpdated: this._handleStreamUpdate.bind(this),
231
+ onStreamsRemoved: this._handleStreamUpdate.bind(this)
232
+ });
233
+ userControl.addObserver({
234
+ onRemoteUsersJoined: this._handleRemoteUsersJoined.bind(this),
235
+ onRemoteUsersLeft: this._handleRemoteUsersLeft.bind(this),
236
+ onUserInfoUpdated: this._handleUserInfoUpdated.bind(this)
237
+ });
238
+ this._disposers.push((0, _mobx.reaction)(function () {
239
+ return _this.localUser.userRole;
240
+ }, this.setLocalUserRole));
241
+ }
242
+ return (0, _createClass2["default"])(ControlBarStore, [{
243
+ key: "leaveConfirmRef",
244
+ get: function get() {
245
+ return _classPrivateFieldGet(_A, this);
246
+ },
247
+ set: function set(v) {
248
+ _classPrivateFieldSet(_A, this, v);
249
+ }
250
+ }, {
251
+ key: "shareWithAudio",
252
+ get: function get() {
253
+ return _classPrivateFieldGet(_B, this);
254
+ },
255
+ set: function set(v) {
256
+ _classPrivateFieldSet(_B, this, v);
257
+ }
258
+ }, {
259
+ key: "shareAudioProcessingChannel",
260
+ get: function get() {
261
+ return _classPrivateFieldGet(_C, this);
262
+ },
263
+ set: function set(v) {
264
+ _classPrivateFieldSet(_C, this, v);
265
+ }
266
+ }, {
267
+ key: "currentShareId",
268
+ get: function get() {
269
+ return _classPrivateFieldGet(_D, this);
270
+ },
271
+ set: function set(v) {
272
+ _classPrivateFieldSet(_D, this, v);
273
+ }
274
+ }, {
275
+ key: "currentShareType",
276
+ get: function get() {
277
+ return _classPrivateFieldGet(_E, this);
278
+ },
279
+ set: function set(v) {
280
+ _classPrivateFieldSet(_E, this, v);
281
+ }
282
+ }, {
283
+ key: "cloudRecordingState",
284
+ get: function get() {
285
+ return _classPrivateFieldGet(_F, this);
286
+ },
287
+ set: function set(v) {
288
+ _classPrivateFieldSet(_F, this, v);
289
+ }
290
+ }, {
291
+ key: "localUserRole",
292
+ get: function get() {
293
+ return _classPrivateFieldGet(_G, this);
294
+ },
295
+ set: function set(v) {
296
+ _classPrivateFieldSet(_G, this, v);
297
+ }
298
+ }, {
299
+ key: "isHost",
300
+ get: function get() {
301
+ return _classPrivateFieldGet(_H, this);
302
+ },
303
+ set: function set(v) {
304
+ _classPrivateFieldSet(_H, this, v);
305
+ }
306
+ }, {
307
+ key: "roomDuration",
308
+ get: function get() {
309
+ return _classPrivateFieldGet(_I, this);
310
+ },
311
+ set: function set(v) {
312
+ _classPrivateFieldSet(_I, this, v);
313
+ }
314
+ }, {
315
+ key: "startTime",
316
+ get: function get() {
317
+ return _classPrivateFieldGet(_J, this);
318
+ },
319
+ set: function set(v) {
320
+ _classPrivateFieldSet(_J, this, v);
321
+ }
322
+ }, {
323
+ key: "playUrl",
324
+ get: function get() {
325
+ return _classPrivateFieldGet(_K, this);
326
+ },
327
+ set: function set(v) {
328
+ _classPrivateFieldSet(_K, this, v);
329
+ }
330
+ }, {
331
+ key: "liveStreamingState",
332
+ get: function get() {
333
+ return _classPrivateFieldGet(_L, this);
334
+ },
335
+ set: function set(v) {
336
+ _classPrivateFieldSet(_L, this, v);
337
+ }
338
+ }, {
339
+ key: "allApplicationWindows",
340
+ get: function get() {
341
+ return _classPrivateFieldGet(_M, this);
342
+ },
343
+ set: function set(v) {
344
+ _classPrivateFieldSet(_M, this, v);
345
+ }
346
+ }, {
347
+ key: "roomInfo",
348
+ get: function get() {
349
+ return _classPrivateFieldGet(_N, this);
350
+ },
351
+ set: function set(v) {
352
+ _classPrivateFieldSet(_N, this, v);
353
+ }
354
+ }, {
355
+ key: "isShowMeetingDetailPortal",
356
+ get: function get() {
357
+ return _classPrivateFieldGet(_O, this);
358
+ },
359
+ set: function set(v) {
360
+ _classPrivateFieldSet(_O, this, v);
361
+ }
362
+ }, {
363
+ key: "users",
364
+ get: function get() {
365
+ return _classPrivateFieldGet(_P, this);
366
+ },
367
+ set: function set(v) {
368
+ _classPrivateFieldSet(_P, this, v);
369
+ }
370
+ }, {
371
+ key: "isPstnUser",
372
+ get: function get() {
373
+ return _classPrivateFieldGet(_Q, this);
374
+ },
375
+ set: function set(v) {
376
+ _classPrivateFieldSet(_Q, this, v);
377
+ }
378
+ }, {
379
+ key: "isMuteAudio",
380
+ get: function get() {
381
+ return _classPrivateFieldGet(_R, this);
382
+ },
383
+ set: function set(v) {
384
+ _classPrivateFieldSet(_R, this, v);
385
+ }
386
+ }, {
387
+ key: "hiddenShareActionNav",
388
+ get: function get() {
389
+ return _classPrivateFieldGet(_S, this);
390
+ },
391
+ set: function set(v) {
392
+ _classPrivateFieldSet(_S, this, v);
393
+ }
394
+ }, {
395
+ key: "boardOwnerUser",
396
+ get: function get() {
397
+ return _classPrivateFieldGet(_T, this);
398
+ },
399
+ set: function set(v) {
400
+ _classPrivateFieldSet(_T, this, v);
401
+ }
402
+ }, {
403
+ key: "meetingId",
404
+ get: function get() {
405
+ return _classPrivateFieldGet(_U, this);
406
+ },
407
+ set: function set(v) {
408
+ _classPrivateFieldSet(_U, this, v);
409
+ }
410
+ }, {
411
+ key: "currentShareDisplayId",
412
+ get: function get() {
413
+ return _classPrivateFieldGet(_V, this);
414
+ },
415
+ set: function set(v) {
416
+ _classPrivateFieldSet(_V, this, v);
417
+ }
418
+ }, {
419
+ key: "localUser",
420
+ get: function get() {
421
+ return this._userControl.getLocalUser();
422
+ }
423
+ }, {
424
+ key: "remoteUsers",
425
+ get: function get() {
426
+ var _this2 = this;
427
+ return this.users.filter(function (user) {
428
+ return user.userId !== _this2.localUser.userId;
429
+ });
430
+ }
431
+ }, {
432
+ key: "screenBounds",
433
+ get: function get() {
434
+ return this._screenBounds;
435
+ }
436
+ }, {
437
+ key: "hasSecurityPermission",
438
+ get: function get() {
439
+ return this._securityStore.hasSecurityPermission;
440
+ }
441
+ }, {
442
+ key: "hasStartCloudRecordingPermission",
443
+ get: function get() {
444
+ return this._securityStore.hasStartCloudRecordingPermission();
445
+ }
446
+ }, {
447
+ key: "hasStopLiveStreamingPermission",
448
+ get: function get() {
449
+ return this._securityStore.hasStopLiveStreamingPermission();
450
+ }
451
+ }, {
452
+ key: "hasGetLiveStreamingUrlPermission",
453
+ get: function get() {
454
+ return this._securityStore.hasGetLiveStreamingLinkPermission();
455
+ }
456
+ }, {
457
+ key: "hasStartLiveStreamingPermission",
458
+ get: function get() {
459
+ return this._securityStore.hasStartLiveStreamingPermission();
460
+ }
461
+ }, {
462
+ key: "hasAssignHostBeforeLeavingPermission",
463
+ get: function get() {
464
+ return this._securityStore.hasAssignHostBeforeLeavingPermission(_fcrCore.FcrPrivilegeUserRole.HOST);
465
+ }
466
+ }, {
467
+ key: "hasEndRoomPermission",
468
+ get: function get() {
469
+ return this._securityStore.hasEndRoomPermission();
470
+ }
471
+ }, {
472
+ key: "initControlBar",
473
+ value: function initControlBar(payload, browserWindow) {
474
+ this.shareAudioProcessingChannel = payload.currentShareAudioProcessingChannel;
475
+ this.currentShareId = payload.currentShareId;
476
+ this.currentShareType = payload.currentShareType;
477
+ this.setShareWithAudioState(payload.shareWithAudio);
478
+ this.setControlBarWindowBounds(browserWindow);
479
+ }
480
+ }, {
481
+ key: "setControlBarWindowBounds",
482
+ value: function setControlBarWindowBounds(window) {
483
+ var _this3 = this;
484
+ if (!(0, _env.isElectron)()) return;
485
+ var needFollowWindows = [_constant.DialogKey.CONTROL_BAR, _constant.DialogKey.SHOW_TOAST];
486
+ var browserWindows = needFollowWindows.map(function (win) {
487
+ return _dialogs.dialogWindows.get(win) || window;
488
+ });
489
+ var _this$getCurrentShari = this.getCurrentSharingWorkArea(),
490
+ x = _this$getCurrentShari.x,
491
+ y = _this$getCurrentShari.y,
492
+ width = _this$getCurrentShari.width,
493
+ height = _this$getCurrentShari.height,
494
+ availTop = _this$getCurrentShari.availTop;
495
+ this._screenBounds = {
496
+ width: width,
497
+ height: height,
498
+ availTop: availTop,
499
+ x: x,
500
+ y: y
501
+ };
502
+
503
+ /* 使用window.screen.availWidth在windows上会黑屏,详见jira:APAAS-5732
504
+ 怀疑是在windows上BrowserWindow有一个边框,所以需要减去一定的宽度。
505
+ 实验结果最低是4。这里减去10留一点buffer,防止其他操作系统的边框不一致。
506
+ */
507
+ var WINDOWS_SCREEN_BOUNDARY_WIDTH = 10;
508
+ var availWidth = (0, _platform.isWindows)() ? width - WINDOWS_SCREEN_BOUNDARY_WIDTH : width;
509
+
510
+ // 重新设置窗口大小
511
+ setTimeout(function () {
512
+ browserWindows.forEach(function (win) {
513
+ win === null || win === void 0 || win.setBounds({
514
+ x: x,
515
+ y: y,
516
+ width: availWidth,
517
+ height: height
518
+ });
519
+ });
520
+ _this3.logger.info("set browser window bounds: ".concat(x, ", ").concat(y, ", ").concat(availWidth, ", ").concat(height));
521
+ });
522
+ browserWindows.forEach(function (win) {
523
+ win === null || win === void 0 || win.setMaximumSize(availWidth, height);
524
+ win === null || win === void 0 || win.setBounds({
525
+ x: x,
526
+ y: y
527
+ });
528
+ });
529
+ }
530
+ }, {
531
+ key: "updateCurrentShareContent",
532
+ value: function updateCurrentShareContent(payload) {
533
+ var id = payload.id,
534
+ type = payload.type;
535
+ this.currentShareId = id;
536
+ this.currentShareType = type;
537
+ this.setControlBarWindowBounds();
538
+ }
539
+ }, {
540
+ key: "setLocalUserRole",
541
+ value: function setLocalUserRole(role) {
542
+ this.localUserRole = role;
543
+ // this.setShowSecurity(role === FcrUserRole.HOST);
544
+ }
545
+ }, {
546
+ key: "setShareWithAudioState",
547
+ value: function setShareWithAudioState(withAudio) {
548
+ this.shareWithAudio = withAudio;
549
+ this._uiEventStore.sendEvent(_constant.UIAction.SET_SHARE_WITH_AUDIO, {
550
+ withAudio: withAudio
551
+ });
552
+ }
553
+ }, {
554
+ key: "createNewShare",
555
+ value: function createNewShare() {
556
+ this._uiEventStore.sendEvent(_constant.UIAction.START_SHARE_SCREEN);
557
+ }
558
+ }, {
559
+ key: "handlerStopShare",
560
+ value: function handlerStopShare() {
561
+ this._uiEventStore.sendEvent(_constant.UIAction.STOP_SHARE_SCREEN);
562
+ }
563
+ }, {
564
+ key: "setShareAudioProcessingChannel",
565
+ value: function setShareAudioProcessingChannel(target) {
566
+ this.shareAudioProcessingChannel = target;
567
+ }
568
+
569
+ // more
570
+ }, {
571
+ key: "handleMoreClick",
572
+ value: function handleMoreClick(actionKey) {
573
+ var _this4 = this;
574
+ switch (actionKey) {
575
+ case _type5.MoreAction.OPEN_PARTICIPANTS:
576
+ this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
577
+ this._uiEventStore.updateAside({
578
+ participant: false
579
+ });
580
+ break;
581
+ case _type5.MoreAction.OPEN_CHAT:
582
+ this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
583
+ this._uiEventStore.updateAside({
584
+ chat: false
585
+ });
586
+ break;
587
+ case _type5.MoreAction.OPEN_LIVE_STEAMING_DIALOG:
588
+ this._uiEventStore.openDialog(_constant.DialogKey.LIVE_STREAMING);
589
+ break;
590
+ case _type5.MoreAction.OPEN_SETTING:
591
+ this._uiEventStore.openDialog(_constant.DialogKey.DEVICE_SETTINGS);
592
+ break;
593
+ case _type5.MoreAction.CLOUD_RECORDING_START:
594
+ this.startCloudRecording();
595
+ break;
596
+ case _type5.MoreAction.CLOUD_RECORDING_STOP:
597
+ this.stopCloudRecording();
598
+ break;
599
+ case _type5.MoreAction.STOP_LIVE_STREAMING:
600
+ this._uiEventStore.sendEvent(_constant.UIAction.STOP_LIVE_STREAMING);
601
+ var dispose = (0, _mobx.reaction)(function () {
602
+ return _this4.liveStreamingState;
603
+ }, function (liveStreamingState) {
604
+ if (liveStreamingState === _type3.FcrLiveStreamingState.STOPPED) {
605
+ _this4._liveStreamingDialogKey && _this4._uiEventStore.closeDialog(_this4._liveStreamingDialogKey);
606
+ dispose();
607
+ }
608
+ });
609
+ break;
610
+ default:
611
+ break;
612
+ }
613
+ }
614
+ }, {
615
+ key: "openLiveStreamingDialog",
616
+ value: function openLiveStreamingDialog() {
617
+ var _this5 = this;
618
+ var dialogKey = this._uiEventStore.openConfirmDialog({
619
+ width: 256,
620
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_stopButton["default"], {
621
+ onCancel: function onCancel() {
622
+ _this5._uiEventStore.closeDialog(dialogKey);
623
+ },
624
+ handleMoreClick: function handleMoreClick(type) {
625
+ _this5.handleMoreClick(type);
626
+ _this5._uiEventStore.closeDialog(dialogKey);
627
+ }
628
+ }),
629
+ showCancel: false,
630
+ showOk: false
631
+ });
632
+ this._liveStreamingDialogKey = dialogKey;
633
+ }
634
+ }, {
635
+ key: "pauseCloudRecording",
636
+ value: function pauseCloudRecording() {
637
+ this._roomControl.pauseCloudRecording();
638
+ }
639
+ }, {
640
+ key: "resumeCloudRecording",
641
+ value: function resumeCloudRecording() {
642
+ this._roomControl.resumeCloudRecording();
643
+ }
644
+ }, {
645
+ key: "stopCloudRecording",
646
+ value: function stopCloudRecording() {
647
+ this._roomControl.stopCloudRecording();
648
+ }
649
+ }, {
650
+ key: "startCloudRecording",
651
+ value: function startCloudRecording() {
652
+ this._roomControl.startCloudRecording({
653
+ audioProfile: _type3.FcrCloudRecordingAudioProfile.DEFAULT,
654
+ videoEncoderConfig: {
655
+ dimensions: {
656
+ width: 1280,
657
+ height: 720
658
+ },
659
+ bitrate: 1200,
660
+ frameRate: 15
661
+ },
662
+ retryTimeout: 60
663
+ });
664
+ }
665
+ }, {
666
+ key: "getCoordinate",
667
+ value: function getCoordinate(offsetWidth, offsetHeight) {
668
+ var _this$getCurrentShari2 = this.getCurrentSharingWorkArea(),
669
+ workareaW = _this$getCurrentShari2.width,
670
+ displayId = _this$getCurrentShari2.displayId;
671
+ var x = workareaW / 2 - offsetWidth / 2;
672
+ var y = 0;
673
+ return {
674
+ x: x,
675
+ y: y
676
+ };
677
+ }
678
+ }, {
679
+ key: "showToast",
680
+ value: function showToast(params) {
681
+ this._uiEventStore.openDialog(_constant.DialogKey.SHOW_TOAST, _constant.DialogKey.SHOW_TOAST, {
682
+ type: params.type,
683
+ message: params.content,
684
+ duration: params.duration
685
+ });
686
+ }
687
+ }, {
688
+ key: "setShowMeetingDetailPortal",
689
+ value: function setShowMeetingDetailPortal(show) {
690
+ this.isShowMeetingDetailPortal = show;
691
+ }
692
+ }, {
693
+ key: "setEnableWaitingRoom",
694
+ value: function setEnableWaitingRoom(enable) {
695
+ this._uiEventStore.sendEvent(_constant.UIAction.ENABLE_WAITING_ROOM, enable);
696
+ }
697
+ }, {
698
+ key: "sendLeave",
699
+ value: function sendLeave() {
700
+ this._uiEventStore.sendEvent(_constant.UIAction.EXIT_ROOM, {
701
+ reason: _type4.FcrUIExitReason.LEAVE_ROOM,
702
+ roomType: this.roomInfo.roomType
703
+ });
704
+ }
705
+ }, {
706
+ key: "sendEnd",
707
+ value: function sendEnd() {
708
+ this._roomControl.close();
709
+ }
710
+ }, {
711
+ key: "keepPhoneAudioConnection",
712
+ value: function keepPhoneAudioConnection() {
713
+ this._streamControl.splitAudioStream(this.localUser.userId);
714
+ }
715
+ }, {
716
+ key: "sendAssign",
717
+ value: function sendAssign(user) {
718
+ this._userControl.updateRemoteUserRole(user.userId, _type3.FcrUserRole.HOST);
719
+ this.sendLeave();
720
+ this.handlerStopShare();
721
+ }
722
+ }, {
723
+ key: "handleLeaveRoom",
724
+ value: function handleLeaveRoom() {
725
+ var _this6 = this;
726
+ var dailogKey = this._uiEventStore.openConfirmDialog({
727
+ width: 260,
728
+ height: 180,
729
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_leaveMeeting.LeaveMeeting, {
730
+ setPopoverOpened: function setPopoverOpened(value) {
731
+ if (!value) {
732
+ _this6._uiEventStore.closeDialog(dailogKey);
733
+ }
734
+ },
735
+ localUserRole: this.localUser.userRole,
736
+ leave: this.sendLeave,
737
+ isLocked: false,
738
+ hasAssignHostBeforeLeavingPermission: this.hasAssignHostBeforeLeavingPermission,
739
+ hasEndRoomPermission: this.hasEndRoomPermission,
740
+ keepPhoneAudioConnection: this.keepPhoneAudioConnection,
741
+ isPstnUser: this.isPstnUser,
742
+ remoteUsers: this.remoteUsers,
743
+ end: this.sendEnd,
744
+ assignHost: this.sendAssign,
745
+ setHeight: function setHeight() {
746
+ _this6._uiEventStore.sendEvent(_constant.UIAction.SET_DIALOG_BOUNDS, {
747
+ height: 230
748
+ });
749
+ }
750
+ }),
751
+ onCancel: function onCancel() {
752
+ _this6._uiEventStore.closeDialog(dailogKey);
753
+ },
754
+ showCancel: false,
755
+ showOk: false
756
+ });
757
+ }
758
+ }, {
759
+ key: "getCurrentSharingWorkArea",
760
+ value: function getCurrentSharingWorkArea() {
761
+ var _appWindow$bounds$x, _appWindow$bounds, _appWindow$bounds$y, _appWindow$bounds2;
762
+ var currentShareId = this.currentShareId,
763
+ currentShareType = this.currentShareType,
764
+ allApplicationWindows = this.allApplicationWindows;
765
+ var _window$screen = window.screen,
766
+ availWidth = _window$screen.availWidth,
767
+ availHeight = _window$screen.availHeight;
768
+ var displays = window.runtime.screen.getAllDisplays();
769
+ var isDisplay = currentShareType === _type.AgoraRtcScreenCaptureType.SCREEN;
770
+ var appWindow = allApplicationWindows.find(function (app) {
771
+ return app.id === currentShareId;
772
+ });
773
+ var nearDisplay = window.runtime.screen.getDisplayNearestPoint({
774
+ x: (_appWindow$bounds$x = appWindow === null || appWindow === void 0 || (_appWindow$bounds = appWindow.bounds) === null || _appWindow$bounds === void 0 ? void 0 : _appWindow$bounds.x) !== null && _appWindow$bounds$x !== void 0 ? _appWindow$bounds$x : 0,
775
+ y: (_appWindow$bounds$y = appWindow === null || appWindow === void 0 || (_appWindow$bounds2 = appWindow.bounds) === null || _appWindow$bounds2 === void 0 ? void 0 : _appWindow$bounds2.y) !== null && _appWindow$bounds$y !== void 0 ? _appWindow$bounds$y : 0
776
+ });
777
+ var dataStruct = {
778
+ bounds: {
779
+ x: 0,
780
+ y: 0,
781
+ width: availWidth,
782
+ height: availHeight
783
+ },
784
+ id: 0,
785
+ workArea: {
786
+ y: 0
787
+ }
788
+ };
789
+ var _ref4 = (isDisplay ? displays.find(function (display, index) {
790
+ var id = (0, _platform.isWindows)() ? index : display.id;
791
+ return id === Number(currentShareId);
792
+ }) : nearDisplay) || dataStruct,
793
+ _ref4$bounds = _ref4.bounds,
794
+ x = _ref4$bounds.x,
795
+ y = _ref4$bounds.y,
796
+ width = _ref4$bounds.width,
797
+ height = _ref4$bounds.height,
798
+ displayId = _ref4.id,
799
+ availTop = _ref4.workArea.y;
800
+ this.currentShareDisplayId = displayId;
801
+ return {
802
+ x: x,
803
+ y: y,
804
+ width: width,
805
+ height: height,
806
+ displayId: displayId,
807
+ availTop: availTop
808
+ };
809
+ }
810
+ }, {
811
+ key: "_handleStreamUpdate",
812
+ value: function _handleStreamUpdate() {
813
+ var streams = this._streamControl.getStreamsByUserId(this.localUser.userId);
814
+ var pstnStream = streams.find(function (_ref5) {
815
+ var connectorType = _ref5.connectorType;
816
+ return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
817
+ });
818
+ this.isPstnUser = !!pstnStream;
819
+ }
820
+ }, {
821
+ key: "_handleRemoteUsersJoined",
822
+ value: function _handleRemoteUsersJoined(roomId, events) {
823
+ var _this7 = this;
824
+ var modifiedUsers = events.map(function (e) {
825
+ return e.modifiedUser;
826
+ });
827
+ var users = (0, _toConsumableArray2["default"])(this.users);
828
+ modifiedUsers.forEach(function (user) {
829
+ var userIndex = _this7.users.findIndex(function (u) {
830
+ return u.userId === user.userId;
831
+ });
832
+ if (userIndex !== -1) {
833
+ users[userIndex] = user;
834
+ } else {
835
+ users.push(user);
836
+ }
837
+ });
838
+ this.users = users;
839
+ }
840
+ }, {
841
+ key: "_handleRemoteUsersLeft",
842
+ value: function _handleRemoteUsersLeft(roomId, events) {
843
+ var _this8 = this;
844
+ var modifiedUsers = events.map(function (e) {
845
+ return e.modifiedUser;
846
+ });
847
+ var users = (0, _toConsumableArray2["default"])(this.users);
848
+ modifiedUsers.forEach(function (user) {
849
+ var userIndex = _this8.users.findIndex(function (u) {
850
+ return u.userId === user.userId;
851
+ });
852
+ if (userIndex !== -1) {
853
+ users.splice(userIndex, 1);
854
+ }
855
+ });
856
+ this.users = users;
857
+ }
858
+ }, {
859
+ key: "_handleUserInfoUpdated",
860
+ value: function _handleUserInfoUpdated(_roomId, event) {
861
+ var modifiedUser = event.modifiedUser;
862
+ var index = this.users.findIndex(function (u) {
863
+ return u.userId === modifiedUser.userId;
864
+ });
865
+ if (index === -1) {
866
+ return;
867
+ }
868
+ this.users[index] = modifiedUser;
869
+ this.users = (0, _toConsumableArray2["default"])(this.users);
870
+ this.localUserRole = this._userControl.getLocalUser().userRole;
871
+ }
872
+ }]);
873
+ }();
874
+ _ControlBarStore = ControlBarStore;
875
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "shareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "isHost"], [_mobx.observable, 1, "roomDuration"], [_mobx.observable, 1, "startTime"], [_mobx.observable, 1, "playUrl"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isShowMeetingDetailPortal"], [_mobx.observable, 1, "users"], [_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "isMuteAudio"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "meetingId"], [_mobx.observable, 1, "currentShareDisplayId"], [_mobx.computed, 3, "hasSecurityPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingUrlPermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_initControlBarDecs, 18, "initControlBar"], [_setControlBarWindowBoundsDecs, 18, "setControlBarWindowBounds"], [_updateCurrentShareContentDecs, 18, "updateCurrentShareContent"], [_setLocalUserRoleDecs, 18, "setLocalUserRole"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_createNewShareDecs, 18, "createNewShare"], [_handlerStopShareDecs, 18, "handlerStopShare"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_handleMoreClickDecs, 18, "handleMoreClick"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "getCoordinate"], [_showToastDecs, 18, "showToast"], [_setShowMeetingDetailPortalDecs, 18, "setShowMeetingDetailPortal"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_sendLeaveDecs, 18, "sendLeave"], [_sendEndDecs, 18, "sendEnd"], [_keepPhoneAudioConnectionDecs, 18, "keepPhoneAudioConnection"], [_sendAssignDecs, 18, "sendAssign"], [_handleLeaveRoomDecs, 18, "handleLeaveRoom"], [_getCurrentSharingWorkAreaDecs, 18, "getCurrentSharingWorkArea"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"]], []).e, 23);
876
+ _init_leaveConfirmRef = _applyDecs$e[0];
877
+ _init_shareWithAudio = _applyDecs$e[1];
878
+ _init_shareAudioProcessingChannel = _applyDecs$e[2];
879
+ _init_currentShareId = _applyDecs$e[3];
880
+ _init_currentShareType = _applyDecs$e[4];
881
+ _init_cloudRecordingState = _applyDecs$e[5];
882
+ _init_localUserRole = _applyDecs$e[6];
883
+ _init_isHost = _applyDecs$e[7];
884
+ _init_roomDuration = _applyDecs$e[8];
885
+ _init_startTime = _applyDecs$e[9];
886
+ _init_playUrl = _applyDecs$e[10];
887
+ _init_liveStreamingState = _applyDecs$e[11];
888
+ _init_allApplicationWindows = _applyDecs$e[12];
889
+ _init_roomInfo = _applyDecs$e[13];
890
+ _init_isShowMeetingDetailPortal = _applyDecs$e[14];
891
+ _init_users = _applyDecs$e[15];
892
+ _init_isPstnUser = _applyDecs$e[16];
893
+ _init_isMuteAudio = _applyDecs$e[17];
894
+ _init_hiddenShareActionNav = _applyDecs$e[18];
895
+ _init_boardOwnerUser = _applyDecs$e[19];
896
+ _init_meetingId = _applyDecs$e[20];
897
+ _init_currentShareDisplayId = _applyDecs$e[21];
898
+ _initProto = _applyDecs$e[22];
899
+ var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);