fcr-ui-scene 3.8.1-beta → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1039) hide show
  1. package/lib/base.js +2 -2
  2. package/lib/creator/provider-initializer.browser.js +8 -7
  3. package/lib/creator/provider-initializer.electron.js +8 -8
  4. package/lib/electron/asar-validation.d.ts +12 -0
  5. package/lib/electron/asar-validation.js +115 -0
  6. package/lib/electron/bootstrap-sdk.js +20 -12
  7. package/lib/electron/default-options.js +2 -1
  8. package/lib/electron/env.d.ts +1 -0
  9. package/lib/electron/env.js +6 -4
  10. package/lib/electron/exit-codes.js +11 -11
  11. package/lib/electron/hang-detection/manager.js +4 -4
  12. package/lib/electron/ipc-protocol.js +12 -12
  13. package/lib/electron/process-manager/event-manager.js +30 -30
  14. package/lib/electron/process-manager/index.js +88 -88
  15. package/lib/electron/process-manager/state-manager.js +57 -57
  16. package/lib/electron/process-manager/types.js +16 -16
  17. package/lib/electron/sdk-helper.js +3 -3
  18. package/lib/electron/window-proxy/browser-window-proxy.js +13 -13
  19. package/lib/electron/window-proxy/main-process-handler.js +14 -14
  20. package/lib/fragments/annotation/style.css +9 -9
  21. package/lib/fragments/annotation/toolbar/components/item/style.css +45 -45
  22. package/lib/fragments/annotation/toolbar/components/panel/style.css +24 -24
  23. package/lib/fragments/annotation/toolbar/components/tips/style.css +19 -19
  24. package/lib/fragments/annotation/toolbar/style.css +55 -55
  25. package/lib/fragments/whiteboard/cursor.css +77 -77
  26. package/lib/fragments/whiteboard/style.css +4 -4
  27. package/lib/global.css +62 -62
  28. package/lib/global.d.ts +27 -27
  29. package/lib/index.js +9 -1
  30. package/lib/modules/action-bar/components/chat/index.css +88 -88
  31. package/lib/modules/action-bar/components/more/index.css +114 -114
  32. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -58
  33. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -56
  34. package/lib/modules/action-bar/components/notification-bar/index.css +74 -74
  35. package/lib/modules/action-bar/components/participants/index.css +21 -21
  36. package/lib/modules/action-bar/components/record/index.css +39 -39
  37. package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -86
  38. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -22
  39. package/lib/modules/action-bar/index.css +358 -358
  40. package/lib/modules/action-bar/main-scene/store.base.d.ts +3 -2
  41. package/lib/modules/action-bar/main-scene/store.base.js +29 -57
  42. package/lib/modules/action-bar/main-scene/view.js +3 -3
  43. package/lib/modules/audio-stream/index.js +3 -3
  44. package/lib/modules/caption/draggable-container/index.css +10 -10
  45. package/lib/modules/caption/view.css +158 -158
  46. package/lib/modules/chat/components/chat-bar/index.css +89 -89
  47. package/lib/modules/chat/components/chat-select/index.css +185 -185
  48. package/lib/modules/chat/index.css +124 -124
  49. package/lib/modules/components/apps/app-item/index.css +49 -49
  50. package/lib/modules/components/apps/index.css +9 -9
  51. package/lib/modules/components/caption-menu/index.css +58 -58
  52. package/lib/modules/components/caption-menu/steps/index.css +73 -73
  53. package/lib/modules/components/control-bar/components/loading/index.css +76 -76
  54. package/lib/modules/components/control-bar/components/progress/style.css +51 -51
  55. package/lib/modules/components/control-bar/components/switch-theme/index.css +101 -101
  56. package/lib/modules/components/control-bar/index.css +99 -99
  57. package/lib/modules/components/device-control/index.css +177 -177
  58. package/lib/modules/components/leave-meeting/components/index.css +151 -151
  59. package/lib/modules/components/leave-meeting/style.css +9 -9
  60. package/lib/modules/components/member-window/components/member-actions/store.js +22 -22
  61. package/lib/modules/components/member-window/index.css +502 -502
  62. package/lib/modules/components/security-menu/index.css +42 -42
  63. package/lib/modules/components/tab-frame/index.css +40 -40
  64. package/lib/modules/components/toolbar/components/item/style.css +94 -94
  65. package/lib/modules/components/toolbar/components/panel/style.css +86 -86
  66. package/lib/modules/components/toolbar/style.css +85 -85
  67. package/lib/modules/connection-gateway/components/computer/index.css +12 -12
  68. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -36
  69. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -72
  70. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -10
  71. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -46
  72. package/lib/modules/connection-gateway/components/phone/index.css +49 -49
  73. package/lib/modules/connection-gateway/index.css +6 -6
  74. package/lib/modules/control-bar/components/meeting-details/index.css +133 -133
  75. package/lib/modules/control-bar/components/more-actions/index.css +103 -103
  76. package/lib/modules/control-bar/components/share-audio/index.css +90 -90
  77. package/lib/modules/control-bar/components/share-state-nav/index.css +79 -79
  78. package/lib/modules/control-bar/index.css +340 -340
  79. package/lib/modules/control-bar/index.js +4 -4
  80. package/lib/modules/device-pretest/index.css +123 -123
  81. package/lib/modules/dialog/components/confirm/index.css +24 -24
  82. package/lib/modules/dialog/components/dialog-container/index.css +112 -112
  83. package/lib/modules/dialog/dialogs/confirm/index.css +24 -24
  84. package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +14 -12
  85. package/lib/modules/dialog/dialogs/device-setting/index.css +26 -26
  86. package/lib/modules/dialog/dialogs/interpreter/index.css +30 -30
  87. package/lib/modules/dialog/dialogs/mute-all/index.css +20 -20
  88. package/lib/modules/dialog/dialogs/system-preference/index.css +52 -52
  89. package/lib/modules/dialog/dialogs/widget/index.js +4 -4
  90. package/lib/modules/dialog/index.css +56 -56
  91. package/lib/modules/event-toast/index.css +25 -25
  92. package/lib/modules/interpreter/action/add-btn/index.css +4 -4
  93. package/lib/modules/interpreter/action/delete-btn/index.css +14 -14
  94. package/lib/modules/interpreter/action/switch-btn/index.css +3 -3
  95. package/lib/modules/interpreter/dialog-content/index.css +33 -33
  96. package/lib/modules/interpreter/footer/index.css +11 -11
  97. package/lib/modules/interpreter/index.css +4 -4
  98. package/lib/modules/interpreter/interpreter-list/index.css +8 -8
  99. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +46 -46
  100. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +46 -46
  101. package/lib/modules/interpreter/interpreter-list/interpreter-item/index.css +32 -32
  102. package/lib/modules/interpreter/loading-wrapper/index.css +53 -53
  103. package/lib/modules/invite/components/pstn-invite.js +1 -1
  104. package/lib/modules/invite/components/voip-invite.css +26 -26
  105. package/lib/modules/invite/index.css +331 -331
  106. package/lib/modules/invite/index.d.ts +4 -1
  107. package/lib/modules/invite/index.js +5 -2
  108. package/lib/modules/invite/store.d.ts +4 -0
  109. package/lib/modules/invite/store.js +48 -9
  110. package/lib/modules/invite/view.d.ts +4 -1
  111. package/lib/modules/invite/view.js +25 -10
  112. package/lib/modules/layout/components/CommonVideoRenderer.js +4 -4
  113. package/lib/modules/layout/components/index.css +653 -653
  114. package/lib/modules/layout/index.css +59 -59
  115. package/lib/modules/layout/store.base.js +5 -5
  116. package/lib/modules/layout/type.js +5 -5
  117. package/lib/modules/notification/index.css +77 -77
  118. package/lib/modules/notification/interpreter-status/index.css +76 -76
  119. package/lib/modules/participant/components/confirm-input/index.css +4 -4
  120. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +83 -83
  121. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +87 -87
  122. package/lib/modules/participant/index.css +102 -102
  123. package/lib/modules/participant/store.base.js +175 -175
  124. package/lib/modules/pc-audio-connect/index.css +12 -12
  125. package/lib/modules/pc-audio-connect/main-scene/index.d.ts +1 -1
  126. package/lib/modules/pc-audio-connect/main-scene/index.js +2 -3
  127. package/lib/modules/pc-audio-connect/main-scene/store.js +1 -0
  128. package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -36
  129. package/lib/modules/phone-audio-connect/components/calling/index.css +72 -72
  130. package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -10
  131. package/lib/modules/phone-audio-connect/components/useing/index.css +46 -46
  132. package/lib/modules/phone-audio-connect/index.css +56 -56
  133. package/lib/modules/secondary-window/store.js +7 -7
  134. package/lib/modules/setting/audio-settings/index.css +195 -195
  135. package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +14 -14
  136. package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +6 -6
  137. package/lib/modules/setting/caption_and_transcribing/index.css +88 -88
  138. package/lib/modules/setting/general-settings/index.css +41 -41
  139. package/lib/modules/setting/index.css +112 -112
  140. package/lib/modules/setting/minutes-settings/index.css +65 -65
  141. package/lib/modules/setting/state/index.css +207 -207
  142. package/lib/modules/setting/storage-settings/index.css +91 -91
  143. package/lib/modules/setting/translate-settings/index.css +47 -47
  144. package/lib/modules/setting/video-settings/index.css +357 -357
  145. package/lib/modules/share-screen/components/control-bar/index.css +75 -75
  146. package/lib/modules/share-screen/components/selection/index.css +73 -73
  147. package/lib/modules/share-screen/components/share-state-bar/index.css +76 -76
  148. package/lib/modules/share-screen/index.js +10 -10
  149. package/lib/modules/share-screen/store.base.js +2 -2
  150. package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -3
  151. package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -3
  152. package/lib/modules/state-bar/index.css +706 -706
  153. package/lib/modules/state-bar/main-scene/store.base.js +2 -2
  154. package/lib/modules/state-bar/meeting-detail.css +137 -137
  155. package/lib/modules/state-bar/meeting-network-state.css +150 -150
  156. package/lib/modules/state-bar/waiting-scene/store.base.js +2 -2
  157. package/lib/modules/subtitles-history/components/settings/index.css +5 -5
  158. package/lib/modules/subtitles-history/index.css +129 -129
  159. package/lib/modules/video-window/components/members/index.css +51 -51
  160. package/lib/modules/video-window/components/speaking/index.css +86 -86
  161. package/lib/modules/video-window/components/topControl/index.css +35 -35
  162. package/lib/modules/video-window/index.css +21 -21
  163. package/lib/modules/video-window/popover-watcher.js +3 -3
  164. package/lib/modules/video-window/store.js +10 -10
  165. package/lib/modules/waiting-room-layout/index.css +96 -96
  166. package/lib/modules/whiteboard/components/control-bar/index.css +52 -52
  167. package/lib/modules/whiteboard/components/loading/index.css +76 -76
  168. package/lib/modules/whiteboard/components/multi-window/index.css +63 -63
  169. package/lib/modules/whiteboard/components/pagination/index.css +228 -228
  170. package/lib/modules/whiteboard/components/progress/style.css +51 -51
  171. package/lib/modules/whiteboard/components/switch-theme/index.css +99 -99
  172. package/lib/modules/whiteboard/components/toolbar/style.css +591 -591
  173. package/lib/modules/whiteboard/style.css +140 -140
  174. package/lib/modules/widget/index.css +9 -9
  175. package/lib/modules/widget/index.d.ts +1 -0
  176. package/lib/modules/widget/index.js +16 -1
  177. package/lib/modules/widget/store.base.d.ts +1 -0
  178. package/lib/modules/widget/store.base.js +12 -0
  179. package/lib/modules/widget/store.electron.js +5 -0
  180. package/lib/modules/widget/web-widget.d.ts +6 -1
  181. package/lib/modules/widget/web-widget.js +66 -22
  182. package/lib/object-manager.js +8 -8
  183. package/lib/plugins/module-dev-plugin.js +11 -11
  184. package/lib/providers/ability-provider.js +17 -17
  185. package/lib/providers/app-list-provider.d.ts +1 -1
  186. package/lib/providers/app-list-provider.js +9 -7
  187. package/lib/providers/board-share/bar-control/base.d.ts +1 -1
  188. package/lib/providers/board-share/bar-control/browser.d.ts +1 -1
  189. package/lib/providers/board-share/bar-control/electron.d.ts +1 -1
  190. package/lib/providers/board-share/struct.js +6 -6
  191. package/lib/providers/device-stream-provider.d.ts +1 -1
  192. package/lib/providers/dialog/provider.base.js +2 -2
  193. package/lib/providers/dialog/type.js +3 -3
  194. package/lib/providers/multi-display-provider.js +4 -4
  195. package/lib/providers/privilege-provider.js +7 -7
  196. package/lib/providers/screen-share/provider.base.js +23 -23
  197. package/lib/providers/screen-share/stream-state-sync.js +18 -18
  198. package/lib/providers/screen-share/struct.js +24 -24
  199. package/lib/providers/widget-provider.d.ts +13 -2
  200. package/lib/providers/widget-provider.js +60 -9
  201. package/lib/providers/window/main-window.js +2 -2
  202. package/lib/providers/window/provider.js +5 -5
  203. package/lib/providers/window/renderer-window.js +2 -2
  204. package/lib/scenes/main-scene.js +3 -1
  205. package/lib/schema.js +26 -26
  206. package/lib/shared-data/app-list-data.d.ts +0 -3
  207. package/lib/shared-data/app-list-data.js +3 -30
  208. package/lib/shared-data/meeting-time.js +8 -8
  209. package/lib/shared-data/setting.js +3 -3
  210. package/lib/shared-data/video-window.d.ts +1 -1
  211. package/lib/shared-data/video-window.js +1 -1
  212. package/lib/shared-data/widget-data.d.ts +0 -1
  213. package/lib/type.d.ts +1 -0
  214. package/lib/type.js +23 -21
  215. package/lib/ui-scene-switch.js +2 -2
  216. package/lib/utilities/constant.js +6 -6
  217. package/lib/utilities/renderer.js +8 -8
  218. package/lib/utilities/shared-storage.js +2 -2
  219. package/lib/utilities/tools.js +14 -14
  220. package/lib-es/assets/mic-loading.gif +0 -0
  221. package/lib-es/base.js +335 -0
  222. package/lib-es/creator/index.js +543 -0
  223. package/lib-es/creator/provider-initializer.browser.js +322 -0
  224. package/lib-es/creator/provider-initializer.electron.js +359 -0
  225. package/lib-es/creator/type.js +1 -0
  226. package/lib-es/electron/app.js +247 -0
  227. package/lib-es/electron/asar-validation.js +106 -0
  228. package/lib-es/electron/bootstrap-dev.js +45 -0
  229. package/lib-es/electron/bootstrap-sdk.js +198 -0
  230. package/lib-es/electron/default-options.js +18 -0
  231. package/lib-es/electron/env.js +8 -0
  232. package/lib-es/electron/exit-codes.js +20 -0
  233. package/lib-es/electron/hang-detection/index.js +2 -0
  234. package/lib-es/electron/hang-detection/manager.js +225 -0
  235. package/lib-es/electron/hang-detection/types.js +1 -0
  236. package/lib-es/electron/index.js +2 -0
  237. package/lib-es/electron/injections.js +830 -0
  238. package/lib-es/electron/ipc/ipc.js +134 -0
  239. package/lib-es/electron/ipc/type.js +22 -0
  240. package/lib-es/electron/ipc-protocol.js +58 -0
  241. package/lib-es/electron/logger.js +57 -0
  242. package/lib-es/electron/main.js +116 -0
  243. package/lib-es/electron/plugins/devtool-shortcut.js +26 -0
  244. package/lib-es/electron/plugins/meeting-state.js +32 -0
  245. package/lib-es/electron/plugins/screenshot.js +46 -0
  246. package/lib-es/electron/preload.js +42 -0
  247. package/lib-es/electron/process-manager/constants.js +1 -0
  248. package/lib-es/electron/process-manager/event-manager.js +242 -0
  249. package/lib-es/electron/process-manager/index.js +842 -0
  250. package/lib-es/electron/process-manager/state-manager.js +354 -0
  251. package/lib-es/electron/process-manager/types.js +78 -0
  252. package/lib-es/electron/sdk-helper.js +305 -0
  253. package/lib-es/electron/struct.js +21 -0
  254. package/lib-es/electron/until.js +64 -0
  255. package/lib-es/electron/window-proxy/browser-window-proxy.js +720 -0
  256. package/lib-es/electron/window-proxy/main-process-handler.js +441 -0
  257. package/lib-es/electron/window.js +91 -0
  258. package/lib-es/fragments/annotation/index.js +130 -0
  259. package/lib-es/fragments/annotation/libs.js +86 -0
  260. package/lib-es/fragments/annotation/store.js +866 -0
  261. package/lib-es/fragments/annotation/style.css +9 -0
  262. package/lib-es/fragments/annotation/toolbar/components/color-tool/color-panel/index.js +40 -0
  263. package/lib-es/fragments/annotation/toolbar/components/color-tool/index.js +48 -0
  264. package/lib-es/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/index.js +55 -0
  265. package/lib-es/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.js +57 -0
  266. package/lib-es/fragments/annotation/toolbar/components/graphic-tool/index.js +62 -0
  267. package/lib-es/fragments/annotation/toolbar/components/item/item.js +106 -0
  268. package/lib-es/fragments/annotation/toolbar/components/item/style.css +45 -0
  269. package/lib-es/fragments/annotation/toolbar/components/panel/index.js +15 -0
  270. package/lib-es/fragments/annotation/toolbar/components/panel/style.css +24 -0
  271. package/lib-es/fragments/annotation/toolbar/components/pen-tool/index.js +54 -0
  272. package/lib-es/fragments/annotation/toolbar/components/pen-tool/pen-panel/index.js +28 -0
  273. package/lib-es/fragments/annotation/toolbar/components/tips/index.js +18 -0
  274. package/lib-es/fragments/annotation/toolbar/components/tips/style.css +19 -0
  275. package/lib-es/fragments/annotation/toolbar/store.js +292 -0
  276. package/lib-es/fragments/annotation/toolbar/style.css +55 -0
  277. package/lib-es/fragments/annotation/toolbar/view.js +140 -0
  278. package/lib-es/fragments/annotation/utils.js +20 -0
  279. package/lib-es/fragments/annotation/view.js +59 -0
  280. package/lib-es/fragments/base.js +40 -0
  281. package/lib-es/fragments/whiteboard/cursor.css +77 -0
  282. package/lib-es/fragments/whiteboard/index.js +80 -0
  283. package/lib-es/fragments/whiteboard/store.js +487 -0
  284. package/lib-es/fragments/whiteboard/style.css +4 -0
  285. package/lib-es/fragments/whiteboard/view.js +24 -0
  286. package/lib-es/global.css +62 -0
  287. package/lib-es/global.d.ts +27 -0
  288. package/lib-es/hooks/i18n.js +10 -0
  289. package/lib-es/index.js +38 -0
  290. package/lib-es/modules/action-bar/components/apps/index.js +43 -0
  291. package/lib-es/modules/action-bar/components/board/index.js +25 -0
  292. package/lib-es/modules/action-bar/components/breakout-room/index.js +23 -0
  293. package/lib-es/modules/action-bar/components/chat/index.css +88 -0
  294. package/lib-es/modules/action-bar/components/chat/index.js +126 -0
  295. package/lib-es/modules/action-bar/components/collapse/index.js +203 -0
  296. package/lib-es/modules/action-bar/components/confirm-leave-meeting/index.js +70 -0
  297. package/lib-es/modules/action-bar/components/interpreter/index.js +34 -0
  298. package/lib-es/modules/action-bar/components/item/index.js +158 -0
  299. package/lib-es/modules/action-bar/components/leave/index.js +118 -0
  300. package/lib-es/modules/action-bar/components/live-streaming/index.js +32 -0
  301. package/lib-es/modules/action-bar/components/more/index.css +114 -0
  302. package/lib-es/modules/action-bar/components/more/index.js +79 -0
  303. package/lib-es/modules/action-bar/components/more/poppover-content.js +410 -0
  304. package/lib-es/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
  305. package/lib-es/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
  306. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
  307. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +93 -0
  308. package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
  309. package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +25 -0
  310. package/lib-es/modules/action-bar/components/notification-bar/index.css +74 -0
  311. package/lib-es/modules/action-bar/components/notification-bar/index.js +96 -0
  312. package/lib-es/modules/action-bar/components/participants/index.css +21 -0
  313. package/lib-es/modules/action-bar/components/participants/index.js +52 -0
  314. package/lib-es/modules/action-bar/components/placement/index.js +10 -0
  315. package/lib-es/modules/action-bar/components/record/index.css +39 -0
  316. package/lib-es/modules/action-bar/components/record/index.js +89 -0
  317. package/lib-es/modules/action-bar/components/record/popover.js +50 -0
  318. package/lib-es/modules/action-bar/components/record/stop-record-dialog.js +41 -0
  319. package/lib-es/modules/action-bar/components/respond/index.js +25 -0
  320. package/lib-es/modules/action-bar/components/screen-share/index.browser.js +61 -0
  321. package/lib-es/modules/action-bar/components/screen-share/index.electron.js +78 -0
  322. package/lib-es/modules/action-bar/components/screen-share/index.js +4 -0
  323. package/lib-es/modules/action-bar/components/screen-share/submenu.js +219 -0
  324. package/lib-es/modules/action-bar/components/security/index.js +42 -0
  325. package/lib-es/modules/action-bar/components/settings/index.js +29 -0
  326. package/lib-es/modules/action-bar/components/smaller/index.js +45 -0
  327. package/lib-es/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
  328. package/lib-es/modules/action-bar/components/trigger-output-language/index.css +86 -0
  329. package/lib-es/modules/action-bar/components/trigger-output-language/index.js +228 -0
  330. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
  331. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +62 -0
  332. package/lib-es/modules/action-bar/components/trigger-subscribe-language/index.js +216 -0
  333. package/lib-es/modules/action-bar/constants.js +1 -0
  334. package/lib-es/modules/action-bar/enums.js +28 -0
  335. package/lib-es/modules/action-bar/index.css +358 -0
  336. package/lib-es/modules/action-bar/main-scene/index.js +123 -0
  337. package/lib-es/modules/action-bar/main-scene/store.base.js +1486 -0
  338. package/lib-es/modules/action-bar/main-scene/store.browser.js +105 -0
  339. package/lib-es/modules/action-bar/main-scene/store.electron.js +94 -0
  340. package/lib-es/modules/action-bar/main-scene/view.js +105 -0
  341. package/lib-es/modules/action-bar/type.js +6 -0
  342. package/lib-es/modules/action-bar/waiting-scene/index.js +94 -0
  343. package/lib-es/modules/action-bar/waiting-scene/store.base.js +88 -0
  344. package/lib-es/modules/action-bar/waiting-scene/store.browser.js +17 -0
  345. package/lib-es/modules/action-bar/waiting-scene/store.electron.js +37 -0
  346. package/lib-es/modules/action-bar/waiting-scene/view.js +116 -0
  347. package/lib-es/modules/audio-stream/index.js +393 -0
  348. package/lib-es/modules/caption/draggable-container/index.css +10 -0
  349. package/lib-es/modules/caption/draggable-container/index.js +159 -0
  350. package/lib-es/modules/caption/index.js +117 -0
  351. package/lib-es/modules/caption/store.js +352 -0
  352. package/lib-es/modules/caption/type.js +7 -0
  353. package/lib-es/modules/caption/view.css +158 -0
  354. package/lib-es/modules/caption/view.js +266 -0
  355. package/lib-es/modules/chat/chat-room-store.js +923 -0
  356. package/lib-es/modules/chat/components/chat-action/index.js +21 -0
  357. package/lib-es/modules/chat/components/chat-bar/index.css +89 -0
  358. package/lib-es/modules/chat/components/chat-bar/index.js +141 -0
  359. package/lib-es/modules/chat/components/chat-select/index.css +185 -0
  360. package/lib-es/modules/chat/components/chat-select/index.js +100 -0
  361. package/lib-es/modules/chat/components/chat-select/select-input/index.js +27 -0
  362. package/lib-es/modules/chat/components/chat-select/select-item/index.js +150 -0
  363. package/lib-es/modules/chat/components/chat-tabs/index.js +53 -0
  364. package/lib-es/modules/chat/components/message-list/chat-empty/index.js +18 -0
  365. package/lib-es/modules/chat/components/message-list/history-unread-message-button/index.js +48 -0
  366. package/lib-es/modules/chat/components/message-list/index.js +327 -0
  367. package/lib-es/modules/chat/components/message-list/message-item/index.js +343 -0
  368. package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +60 -0
  369. package/lib-es/modules/chat/index.css +124 -0
  370. package/lib-es/modules/chat/index.dev.js +71 -0
  371. package/lib-es/modules/chat/index.js +168 -0
  372. package/lib-es/modules/chat/mock.js +276 -0
  373. package/lib-es/modules/chat/store.js +359 -0
  374. package/lib-es/modules/chat/types.js +12 -0
  375. package/lib-es/modules/chat/util.js +63 -0
  376. package/lib-es/modules/chat/view.js +312 -0
  377. package/lib-es/modules/components/annotation-menu/index.js +104 -0
  378. package/lib-es/modules/components/apps/app-item/index.css +49 -0
  379. package/lib-es/modules/components/apps/app-item/index.js +130 -0
  380. package/lib-es/modules/components/apps/app-list.js +49 -0
  381. package/lib-es/modules/components/apps/index.css +9 -0
  382. package/lib-es/modules/components/apps/types.js +1 -0
  383. package/lib-es/modules/components/caption-menu/index.css +58 -0
  384. package/lib-es/modules/components/caption-menu/index.js +108 -0
  385. package/lib-es/modules/components/caption-menu/participants-privilege-control-options.js +65 -0
  386. package/lib-es/modules/components/caption-menu/steps/index.css +73 -0
  387. package/lib-es/modules/components/caption-menu/steps/index.js +49 -0
  388. package/lib-es/modules/components/caption-menu/translation-setting-options.js +180 -0
  389. package/lib-es/modules/components/control-bar/components/loading/index.css +76 -0
  390. package/lib-es/modules/components/control-bar/components/loading/index.js +56 -0
  391. package/lib-es/modules/components/control-bar/components/loading/loading.png +0 -0
  392. package/lib-es/modules/components/control-bar/components/progress/index.js +36 -0
  393. package/lib-es/modules/components/control-bar/components/progress/style.css +51 -0
  394. package/lib-es/modules/components/control-bar/components/switch-theme/index.css +101 -0
  395. package/lib-es/modules/components/control-bar/components/switch-theme/index.js +86 -0
  396. package/lib-es/modules/components/control-bar/components/switch-theme/item.js +46 -0
  397. package/lib-es/modules/components/control-bar/components/switch-theme/libs.js +24 -0
  398. package/lib-es/modules/components/control-bar/index.css +99 -0
  399. package/lib-es/modules/components/control-bar/index.js +357 -0
  400. package/lib-es/modules/components/device-control/components/audio-menu/index.js +167 -0
  401. package/lib-es/modules/components/device-control/components/carmera/index.js +108 -0
  402. package/lib-es/modules/components/device-control/components/microphone/index.js +182 -0
  403. package/lib-es/modules/components/device-control/components/none-menu/index.js +61 -0
  404. package/lib-es/modules/components/device-control/components/phone-menu/index.js +54 -0
  405. package/lib-es/modules/components/device-control/components/video-menu/index.js +105 -0
  406. package/lib-es/modules/components/device-control/hooks/index.js +34 -0
  407. package/lib-es/modules/components/device-control/index.css +177 -0
  408. package/lib-es/modules/components/device-control/index.js +14 -0
  409. package/lib-es/modules/components/device-control/main-scene/store.js +88 -0
  410. package/lib-es/modules/components/device-control/store.base.js +242 -0
  411. package/lib-es/modules/components/device-control/type.js +1 -0
  412. package/lib-es/modules/components/device-control/waiting-scene/store.js +84 -0
  413. package/lib-es/modules/components/leave-meeting/components/assign-host.js +101 -0
  414. package/lib-es/modules/components/leave-meeting/components/index.css +151 -0
  415. package/lib-es/modules/components/leave-meeting/index.js +148 -0
  416. package/lib-es/modules/components/leave-meeting/main-scene/store.js +107 -0
  417. package/lib-es/modules/components/leave-meeting/portal.js +22 -0
  418. package/lib-es/modules/components/leave-meeting/store.base.js +299 -0
  419. package/lib-es/modules/components/leave-meeting/style.css +9 -0
  420. package/lib-es/modules/components/leave-meeting/type.js +1 -0
  421. package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +98 -0
  422. package/lib-es/modules/components/member-window/components/member-actions/components/audio-control.js +35 -0
  423. package/lib-es/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +162 -0
  424. package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +80 -0
  425. package/lib-es/modules/components/member-window/components/member-actions/components/layout/index.js +23 -0
  426. package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +128 -0
  427. package/lib-es/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
  428. package/lib-es/modules/components/member-window/components/member-actions/components/user-info.js +105 -0
  429. package/lib-es/modules/components/member-window/components/member-actions/components/user-tag.js +51 -0
  430. package/lib-es/modules/components/member-window/components/member-actions/index.js +98 -0
  431. package/lib-es/modules/components/member-window/components/member-actions/libs/index.js +14 -0
  432. package/lib-es/modules/components/member-window/components/member-actions/provider.js +70 -0
  433. package/lib-es/modules/components/member-window/components/member-actions/store.js +430 -0
  434. package/lib-es/modules/components/member-window/components/mic-volume.js +16 -0
  435. package/lib-es/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +104 -0
  436. package/lib-es/modules/components/member-window/components/video-player/components/local-video-player.js +1 -0
  437. package/lib-es/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +60 -0
  438. package/lib-es/modules/components/member-window/components/video-player/components/remote-video-player.js +1 -0
  439. package/lib-es/modules/components/member-window/components/video-player/components/zoomable-container.js +223 -0
  440. package/lib-es/modules/components/member-window/components/video-player/index.js +37 -0
  441. package/lib-es/modules/components/member-window/index.css +502 -0
  442. package/lib-es/modules/components/member-window/index.js +179 -0
  443. package/lib-es/modules/components/member-window/types.js +1 -0
  444. package/lib-es/modules/components/security-menu/index.css +42 -0
  445. package/lib-es/modules/components/security-menu/index.js +472 -0
  446. package/lib-es/modules/components/security-menu/store.js +388 -0
  447. package/lib-es/modules/components/security-menu/type.js +1 -0
  448. package/lib-es/modules/components/tab-frame/index.css +40 -0
  449. package/lib-es/modules/components/tab-frame/index.js +51 -0
  450. package/lib-es/modules/components/toolbar/components/capture-tool/index.js +58 -0
  451. package/lib-es/modules/components/toolbar/components/clean-tool/index.js +63 -0
  452. package/lib-es/modules/components/toolbar/components/color-tool/color-panel/index.js +70 -0
  453. package/lib-es/modules/components/toolbar/components/color-tool/index.js +58 -0
  454. package/lib-es/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +57 -0
  455. package/lib-es/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +57 -0
  456. package/lib-es/modules/components/toolbar/components/graphic-tool/index.js +72 -0
  457. package/lib-es/modules/components/toolbar/components/group-tool/index.js +35 -0
  458. package/lib-es/modules/components/toolbar/components/icons/fold-icon.js +33 -0
  459. package/lib-es/modules/components/toolbar/components/icons/move-icon.js +59 -0
  460. package/lib-es/modules/components/toolbar/components/item/index.js +157 -0
  461. package/lib-es/modules/components/toolbar/components/item/style.css +94 -0
  462. package/lib-es/modules/components/toolbar/components/multiple-color-tool/index.js +67 -0
  463. package/lib-es/modules/components/toolbar/components/panel/index.js +21 -0
  464. package/lib-es/modules/components/toolbar/components/panel/style.css +86 -0
  465. package/lib-es/modules/components/toolbar/components/pen-tool/index.js +54 -0
  466. package/lib-es/modules/components/toolbar/components/pen-tool/pen-panel/index.js +32 -0
  467. package/lib-es/modules/components/toolbar/components/save-draft/index.js +51 -0
  468. package/lib-es/modules/components/toolbar/components/vertical-frame/index.js +176 -0
  469. package/lib-es/modules/components/toolbar/hooks/use-resize-visible.js +64 -0
  470. package/lib-es/modules/components/toolbar/index.js +235 -0
  471. package/lib-es/modules/components/toolbar/style.css +85 -0
  472. package/lib-es/modules/components/toolbar/types.js +1 -0
  473. package/lib-es/modules/connection-gateway/components/computer/index.css +12 -0
  474. package/lib-es/modules/connection-gateway/components/computer/index.js +59 -0
  475. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
  476. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +71 -0
  477. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
  478. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +51 -0
  479. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
  480. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +17 -0
  481. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
  482. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +29 -0
  483. package/lib-es/modules/connection-gateway/components/phone/index.css +49 -0
  484. package/lib-es/modules/connection-gateway/components/phone/index.js +177 -0
  485. package/lib-es/modules/connection-gateway/enums.js +5 -0
  486. package/lib-es/modules/connection-gateway/index.css +6 -0
  487. package/lib-es/modules/connection-gateway/index.js +60 -0
  488. package/lib-es/modules/connection-gateway/store.js +709 -0
  489. package/lib-es/modules/connection-gateway/types.js +1 -0
  490. package/lib-es/modules/connection-gateway/view.js +31 -0
  491. package/lib-es/modules/control-bar/components/apps-popover/index.js +34 -0
  492. package/lib-es/modules/control-bar/components/boundary-detector.js +49 -0
  493. package/lib-es/modules/control-bar/components/carmera/index.js +107 -0
  494. package/lib-es/modules/control-bar/components/cloud-recording-buttons.js +109 -0
  495. package/lib-es/modules/control-bar/components/meeting-details/index.css +133 -0
  496. package/lib-es/modules/control-bar/components/meeting-details/index.js +230 -0
  497. package/lib-es/modules/control-bar/components/microphone/index.js +185 -0
  498. package/lib-es/modules/control-bar/components/more-actions/index.css +103 -0
  499. package/lib-es/modules/control-bar/components/more-actions/index.js +158 -0
  500. package/lib-es/modules/control-bar/components/share-audio/index.css +90 -0
  501. package/lib-es/modules/control-bar/components/share-audio/index.js +142 -0
  502. package/lib-es/modules/control-bar/components/share-state-nav/index.css +79 -0
  503. package/lib-es/modules/control-bar/components/share-state-nav/index.js +122 -0
  504. package/lib-es/modules/control-bar/components/stop-live-streaming/index.js +29 -0
  505. package/lib-es/modules/control-bar/components/stop-live-streaming/stop-button.js +28 -0
  506. package/lib-es/modules/control-bar/components/transfer-position-icon/index.js +34 -0
  507. package/lib-es/modules/control-bar/context.js +5 -0
  508. package/lib-es/modules/control-bar/enums.js +27 -0
  509. package/lib-es/modules/control-bar/hooks.js +168 -0
  510. package/lib-es/modules/control-bar/index.css +340 -0
  511. package/lib-es/modules/control-bar/index.dev.js +37 -0
  512. package/lib-es/modules/control-bar/index.js +144 -0
  513. package/lib-es/modules/control-bar/store.js +781 -0
  514. package/lib-es/modules/control-bar/type.js +1 -0
  515. package/lib-es/modules/control-bar/view.js +663 -0
  516. package/lib-es/modules/device-pretest/assets/virtual-backdound-resources.js +14 -0
  517. package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +64 -0
  518. package/lib-es/modules/device-pretest/audio-preview/speaker-control.js +58 -0
  519. package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +63 -0
  520. package/lib-es/modules/device-pretest/index.css +123 -0
  521. package/lib-es/modules/device-pretest/index.js +234 -0
  522. package/lib-es/modules/device-pretest/settings/beauty.js +107 -0
  523. package/lib-es/modules/device-pretest/settings/camera-select.js +45 -0
  524. package/lib-es/modules/device-pretest/settings/video-effect.js +43 -0
  525. package/lib-es/modules/device-pretest/settings/video-settings-basic.js +137 -0
  526. package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +94 -0
  527. package/lib-es/modules/device-pretest/store.js +437 -0
  528. package/lib-es/modules/dialog/components/confirm/index.css +24 -0
  529. package/lib-es/modules/dialog/components/confirm/index.js +154 -0
  530. package/lib-es/modules/dialog/components/dialog-container/component/body.js +103 -0
  531. package/lib-es/modules/dialog/components/dialog-container/index.css +112 -0
  532. package/lib-es/modules/dialog/components/dialog-container/index.js +135 -0
  533. package/lib-es/modules/dialog/components/host-area-container/index.js +146 -0
  534. package/lib-es/modules/dialog/components/normal-window/index.js +53 -0
  535. package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +47 -0
  536. package/lib-es/modules/dialog/dialogs/caption/index.js +35 -0
  537. package/lib-es/modules/dialog/dialogs/chat/components/actions.js +36 -0
  538. package/lib-es/modules/dialog/dialogs/chat/index.js +74 -0
  539. package/lib-es/modules/dialog/dialogs/confirm/index.css +24 -0
  540. package/lib-es/modules/dialog/dialogs/confirm/index.js +51 -0
  541. package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +38 -0
  542. package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +40 -0
  543. package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +40 -0
  544. package/lib-es/modules/dialog/dialogs/control-bar/index.js +29 -0
  545. package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +33 -0
  546. package/lib-es/modules/dialog/dialogs/device-setting/index.css +26 -0
  547. package/lib-es/modules/dialog/dialogs/device-setting/index.js +36 -0
  548. package/lib-es/modules/dialog/dialogs/end-meeting/index.js +48 -0
  549. package/lib-es/modules/dialog/dialogs/interpreter/index.css +30 -0
  550. package/lib-es/modules/dialog/dialogs/interpreter/index.js +38 -0
  551. package/lib-es/modules/dialog/dialogs/invite/index.js +51 -0
  552. package/lib-es/modules/dialog/dialogs/live-streaming/index.js +30 -0
  553. package/lib-es/modules/dialog/dialogs/mute-all/index.css +20 -0
  554. package/lib-es/modules/dialog/dialogs/mute-all/index.js +42 -0
  555. package/lib-es/modules/dialog/dialogs/participant/components/actions.js +23 -0
  556. package/lib-es/modules/dialog/dialogs/participant/components/title.js +9 -0
  557. package/lib-es/modules/dialog/dialogs/participant/index.js +52 -0
  558. package/lib-es/modules/dialog/dialogs/rename/index.js +43 -0
  559. package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +48 -0
  560. package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +32 -0
  561. package/lib-es/modules/dialog/dialogs/sub-window/index.js +31 -0
  562. package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +44 -0
  563. package/lib-es/modules/dialog/dialogs/system-preference/assets/bg1.png +0 -0
  564. package/lib-es/modules/dialog/dialogs/system-preference/assets/bg2.png +0 -0
  565. package/lib-es/modules/dialog/dialogs/system-preference/assets/fcr_png_host.png +0 -0
  566. package/lib-es/modules/dialog/dialogs/system-preference/electron.js +31 -0
  567. package/lib-es/modules/dialog/dialogs/system-preference/index.css +52 -0
  568. package/lib-es/modules/dialog/dialogs/system-preference/index.js +130 -0
  569. package/lib-es/modules/dialog/dialogs/toast/index.js +28 -0
  570. package/lib-es/modules/dialog/dialogs/video-window/index.js +55 -0
  571. package/lib-es/modules/dialog/dialogs/whiteboard/index.js +60 -0
  572. package/lib-es/modules/dialog/dialogs/widget/index.js +40 -0
  573. package/lib-es/modules/dialog/hooks/use-web-drag.js +64 -0
  574. package/lib-es/modules/dialog/index.css +56 -0
  575. package/lib-es/modules/dialog/index.js +70 -0
  576. package/lib-es/modules/dialog/level-config.js +11 -0
  577. package/lib-es/modules/dialog/store.base.js +272 -0
  578. package/lib-es/modules/dialog/store.browser.js +135 -0
  579. package/lib-es/modules/dialog/store.electron.js +284 -0
  580. package/lib-es/modules/dialog/type.js +1 -0
  581. package/lib-es/modules/dialog/view.js +28 -0
  582. package/lib-es/modules/event-sound/enum.js +13 -0
  583. package/lib-es/modules/event-sound/index.js +49 -0
  584. package/lib-es/modules/event-sound/sound-effect-player.js +49 -0
  585. package/lib-es/modules/event-sound/store.js +275 -0
  586. package/lib-es/modules/event-sound/type.js +1 -0
  587. package/lib-es/modules/event-toast/index.css +25 -0
  588. package/lib-es/modules/event-toast/index.js +82 -0
  589. package/lib-es/modules/event-toast/store.base.js +193 -0
  590. package/lib-es/modules/event-toast/store.browser.js +23 -0
  591. package/lib-es/modules/event-toast/store.electron.js +138 -0
  592. package/lib-es/modules/event-toast/type.js +1 -0
  593. package/lib-es/modules/event-toast/view.js +37 -0
  594. package/lib-es/modules/interpreter/action/add-btn/index.css +4 -0
  595. package/lib-es/modules/interpreter/action/add-btn/index.js +35 -0
  596. package/lib-es/modules/interpreter/action/delete-btn/index.css +14 -0
  597. package/lib-es/modules/interpreter/action/delete-btn/index.js +31 -0
  598. package/lib-es/modules/interpreter/action/edit-btn/index.js +39 -0
  599. package/lib-es/modules/interpreter/action/switch-btn/index.css +3 -0
  600. package/lib-es/modules/interpreter/action/switch-btn/index.js +44 -0
  601. package/lib-es/modules/interpreter/dialog-content/index.css +33 -0
  602. package/lib-es/modules/interpreter/dialog-content/index.js +30 -0
  603. package/lib-es/modules/interpreter/footer/index.css +11 -0
  604. package/lib-es/modules/interpreter/footer/index.js +18 -0
  605. package/lib-es/modules/interpreter/index.css +4 -0
  606. package/lib-es/modules/interpreter/index.js +109 -0
  607. package/lib-es/modules/interpreter/interpreter-list/index.css +8 -0
  608. package/lib-es/modules/interpreter/interpreter-list/index.js +30 -0
  609. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +46 -0
  610. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +173 -0
  611. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  612. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  613. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  614. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  615. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  616. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  617. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  618. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  619. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  620. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  621. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  622. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  623. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  624. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  625. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  626. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  627. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  628. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +169 -0
  629. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +46 -0
  630. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +120 -0
  631. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +51 -0
  632. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/index.css +32 -0
  633. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/index.js +40 -0
  634. package/lib-es/modules/interpreter/loading-wrapper/index.css +53 -0
  635. package/lib-es/modules/interpreter/loading-wrapper/index.js +20 -0
  636. package/lib-es/modules/interpreter/store.js +614 -0
  637. package/lib-es/modules/interpreter/tooltip-wrapper/index.js +23 -0
  638. package/lib-es/modules/interpreter/type.js +5 -0
  639. package/lib-es/modules/interpreter/utils.js +54 -0
  640. package/lib-es/modules/interpreter/view.js +62 -0
  641. package/lib-es/modules/invite/components/error-tips.js +11 -0
  642. package/lib-es/modules/invite/components/pstn-invite.js +245 -0
  643. package/lib-es/modules/invite/components/voip-invite.css +26 -0
  644. package/lib-es/modules/invite/components/voip-invite.js +265 -0
  645. package/lib-es/modules/invite/enums.js +27 -0
  646. package/lib-es/modules/invite/index.css +331 -0
  647. package/lib-es/modules/invite/index.js +64 -0
  648. package/lib-es/modules/invite/store.js +578 -0
  649. package/lib-es/modules/invite/types.js +1 -0
  650. package/lib-es/modules/invite/view.js +46 -0
  651. package/lib-es/modules/layout/components/Aside.js +208 -0
  652. package/lib-es/modules/layout/components/Carousel.js +192 -0
  653. package/lib-es/modules/layout/components/CommonVideoRenderer.js +265 -0
  654. package/lib-es/modules/layout/components/Gallery.js +256 -0
  655. package/lib-es/modules/layout/components/index.css +653 -0
  656. package/lib-es/modules/layout/components/index.js +5 -0
  657. package/lib-es/modules/layout/components/utils.js +3 -0
  658. package/lib-es/modules/layout/components/who-is-speaking.js +49 -0
  659. package/lib-es/modules/layout/index.css +59 -0
  660. package/lib-es/modules/layout/index.dev.js +313 -0
  661. package/lib-es/modules/layout/index.js +74 -0
  662. package/lib-es/modules/layout/store.base.js +1468 -0
  663. package/lib-es/modules/layout/store.browser.js +49 -0
  664. package/lib-es/modules/layout/store.electron.js +175 -0
  665. package/lib-es/modules/layout/type.js +59 -0
  666. package/lib-es/modules/layout/view.js +149 -0
  667. package/lib-es/modules/live-streaming/index.css +0 -0
  668. package/lib-es/modules/live-streaming/index.dev.js +56 -0
  669. package/lib-es/modules/live-streaming/index.js +60 -0
  670. package/lib-es/modules/live-streaming/store.js +246 -0
  671. package/lib-es/modules/live-streaming/type.js +1 -0
  672. package/lib-es/modules/live-streaming/view.js +26 -0
  673. package/lib-es/modules/notification/index.css +77 -0
  674. package/lib-es/modules/notification/index.js +59 -0
  675. package/lib-es/modules/notification/interpreter-status/index.css +76 -0
  676. package/lib-es/modules/notification/interpreter-status/index.js +55 -0
  677. package/lib-es/modules/notification/store.js +122 -0
  678. package/lib-es/modules/notification/type.js +1 -0
  679. package/lib-es/modules/notification/view.js +127 -0
  680. package/lib-es/modules/offscreen-pulling/index.js +122 -0
  681. package/lib-es/modules/participant/components/can-moveable/index.js +59 -0
  682. package/lib-es/modules/participant/components/confirm-input/index.css +4 -0
  683. package/lib-es/modules/participant/components/confirm-input/index.js +112 -0
  684. package/lib-es/modules/participant/components/mute-all/index.js +67 -0
  685. package/lib-es/modules/participant/components/operate-waitingroom-member/index.js +40 -0
  686. package/lib-es/modules/participant/components/participants/components/footer/components/buttons.js +45 -0
  687. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.css +83 -0
  688. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +156 -0
  689. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +21 -0
  690. package/lib-es/modules/participant/components/participants/components/footer/index.js +42 -0
  691. package/lib-es/modules/participant/components/participants/components/merge/index.js +40 -0
  692. package/lib-es/modules/participant/components/participants/components/render-tab/index.js +42 -0
  693. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +40 -0
  694. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +21 -0
  695. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +32 -0
  696. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +87 -0
  697. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.js +138 -0
  698. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +25 -0
  699. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +70 -0
  700. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +20 -0
  701. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +70 -0
  702. package/lib-es/modules/participant/components/participants/components/render-user/index.js +16 -0
  703. package/lib-es/modules/participant/components/participants/index.js +71 -0
  704. package/lib-es/modules/participant/index.css +102 -0
  705. package/lib-es/modules/participant/index.dev.js +87 -0
  706. package/lib-es/modules/participant/index.js +137 -0
  707. package/lib-es/modules/participant/member-list-data-source.js +297 -0
  708. package/lib-es/modules/participant/store.base.js +2354 -0
  709. package/lib-es/modules/participant/store.browser.js +117 -0
  710. package/lib-es/modules/participant/store.electron.js +124 -0
  711. package/lib-es/modules/participant/struct.js +55 -0
  712. package/lib-es/modules/participant/type.js +7 -0
  713. package/lib-es/modules/participant/view.js +18 -0
  714. package/lib-es/modules/pc-audio-connect/index.css +12 -0
  715. package/lib-es/modules/pc-audio-connect/main-scene/index.js +67 -0
  716. package/lib-es/modules/pc-audio-connect/main-scene/store.js +313 -0
  717. package/lib-es/modules/pc-audio-connect/types.js +1 -0
  718. package/lib-es/modules/pc-audio-connect/view.js +60 -0
  719. package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +61 -0
  720. package/lib-es/modules/pc-audio-connect/waiting-scene/store.js +293 -0
  721. package/lib-es/modules/phone-audio-connect/components/callinfo/index.css +36 -0
  722. package/lib-es/modules/phone-audio-connect/components/callinfo/index.js +71 -0
  723. package/lib-es/modules/phone-audio-connect/components/calling/index.css +72 -0
  724. package/lib-es/modules/phone-audio-connect/components/calling/index.js +51 -0
  725. package/lib-es/modules/phone-audio-connect/components/remeber/index.css +10 -0
  726. package/lib-es/modules/phone-audio-connect/components/remeber/index.js +17 -0
  727. package/lib-es/modules/phone-audio-connect/components/useing/index.css +46 -0
  728. package/lib-es/modules/phone-audio-connect/components/useing/index.js +29 -0
  729. package/lib-es/modules/phone-audio-connect/enums.js +5 -0
  730. package/lib-es/modules/phone-audio-connect/index.css +56 -0
  731. package/lib-es/modules/phone-audio-connect/index.js +52 -0
  732. package/lib-es/modules/phone-audio-connect/store.js +317 -0
  733. package/lib-es/modules/phone-audio-connect/types.js +1 -0
  734. package/lib-es/modules/phone-audio-connect/view.js +177 -0
  735. package/lib-es/modules/secondary-window/index.js +147 -0
  736. package/lib-es/modules/secondary-window/store.js +502 -0
  737. package/lib-es/modules/secondary-window/type.js +28 -0
  738. package/lib-es/modules/secondary-window/view.js +281 -0
  739. package/lib-es/modules/setting/audio-settings/audio-settings.js +292 -0
  740. package/lib-es/modules/setting/audio-settings/index.css +195 -0
  741. package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +62 -0
  742. package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +368 -0
  743. package/lib-es/modules/setting/caption_and_transcribing/index.css +88 -0
  744. package/lib-es/modules/setting/caption_and_transcribing/index.js +89 -0
  745. package/lib-es/modules/setting/general-settings/general-settings.js +148 -0
  746. package/lib-es/modules/setting/general-settings/index.css +41 -0
  747. package/lib-es/modules/setting/index.css +112 -0
  748. package/lib-es/modules/setting/index.dev.js +120 -0
  749. package/lib-es/modules/setting/index.js +145 -0
  750. package/lib-es/modules/setting/minutes-settings/index.css +65 -0
  751. package/lib-es/modules/setting/minutes-settings/minutes-settings.js +146 -0
  752. package/lib-es/modules/setting/state/index.css +207 -0
  753. package/lib-es/modules/setting/state/index.js +322 -0
  754. package/lib-es/modules/setting/storage-settings/index.css +91 -0
  755. package/lib-es/modules/setting/storage-settings/storage-settings.js +65 -0
  756. package/lib-es/modules/setting/store.base.js +1440 -0
  757. package/lib-es/modules/setting/store.browser.js +43 -0
  758. package/lib-es/modules/setting/store.electron.js +168 -0
  759. package/lib-es/modules/setting/translate-settings/index.css +47 -0
  760. package/lib-es/modules/setting/translate-settings/language-select.js +40 -0
  761. package/lib-es/modules/setting/translate-settings/translate-settings.js +131 -0
  762. package/lib-es/modules/setting/type.js +14 -0
  763. package/lib-es/modules/setting/video-settings/index.css +357 -0
  764. package/lib-es/modules/setting/video-settings/video-settings-basic.js +131 -0
  765. package/lib-es/modules/setting/video-settings/video-settings.js +167 -0
  766. package/lib-es/modules/setting/view.js +147 -0
  767. package/lib-es/modules/share-screen/components/control-bar/index.css +75 -0
  768. package/lib-es/modules/share-screen/components/control-bar/index.js +92 -0
  769. package/lib-es/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +38 -0
  770. package/lib-es/modules/share-screen/components/control-bar/items/full-container-btn/index.js +25 -0
  771. package/lib-es/modules/share-screen/components/control-bar/items/original-size-btn/index.js +25 -0
  772. package/lib-es/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +25 -0
  773. package/lib-es/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +25 -0
  774. package/lib-es/modules/share-screen/components/selection/index.css +73 -0
  775. package/lib-es/modules/share-screen/components/selection/index.js +220 -0
  776. package/lib-es/modules/share-screen/components/share-scenario/index.js +40 -0
  777. package/lib-es/modules/share-screen/components/share-state-bar/index.css +76 -0
  778. package/lib-es/modules/share-screen/components/share-state-bar/index.js +90 -0
  779. package/lib-es/modules/share-screen/index.css +0 -0
  780. package/lib-es/modules/share-screen/index.dev.js +90 -0
  781. package/lib-es/modules/share-screen/index.js +99 -0
  782. package/lib-es/modules/share-screen/store.base.js +464 -0
  783. package/lib-es/modules/share-screen/store.browser.js +36 -0
  784. package/lib-es/modules/share-screen/store.electron.js +429 -0
  785. package/lib-es/modules/share-screen/type.js +8 -0
  786. package/lib-es/modules/share-screen/view.js +24 -0
  787. package/lib-es/modules/state-bar/assets/fcr_grid_big.svg +3 -0
  788. package/lib-es/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
  789. package/lib-es/modules/state-bar/assets/live-streaming.gif +0 -0
  790. package/lib-es/modules/state-bar/index.css +706 -0
  791. package/lib-es/modules/state-bar/index.dev.js +78 -0
  792. package/lib-es/modules/state-bar/index.js +41 -0
  793. package/lib-es/modules/state-bar/layout-config.js +168 -0
  794. package/lib-es/modules/state-bar/live-streaming-state.js +169 -0
  795. package/lib-es/modules/state-bar/main-scene/index.js +39 -0
  796. package/lib-es/modules/state-bar/main-scene/store.base.js +137 -0
  797. package/lib-es/modules/state-bar/main-scene/store.browser.js +80 -0
  798. package/lib-es/modules/state-bar/main-scene/store.electron.js +107 -0
  799. package/lib-es/modules/state-bar/meeting-detail.css +137 -0
  800. package/lib-es/modules/state-bar/meeting-details.js +219 -0
  801. package/lib-es/modules/state-bar/meeting-network-state.css +150 -0
  802. package/lib-es/modules/state-bar/meeting-network-state.js +107 -0
  803. package/lib-es/modules/state-bar/meeting-time.js +25 -0
  804. package/lib-es/modules/state-bar/network-quality.js +26 -0
  805. package/lib-es/modules/state-bar/recording.js +103 -0
  806. package/lib-es/modules/state-bar/store.base.electron.js +108 -0
  807. package/lib-es/modules/state-bar/store.base.js +616 -0
  808. package/lib-es/modules/state-bar/subtitles-history-state.js +101 -0
  809. package/lib-es/modules/state-bar/type.js +1 -0
  810. package/lib-es/modules/state-bar/view.js +241 -0
  811. package/lib-es/modules/state-bar/waiting-scene/index.js +39 -0
  812. package/lib-es/modules/state-bar/waiting-scene/store.base.js +48 -0
  813. package/lib-es/modules/state-bar/waiting-scene/store.browser.js +80 -0
  814. package/lib-es/modules/state-bar/waiting-scene/store.electron.js +99 -0
  815. package/lib-es/modules/subtitles-history/components/actions.js +29 -0
  816. package/lib-es/modules/subtitles-history/components/list-item.js +95 -0
  817. package/lib-es/modules/subtitles-history/components/list.js +175 -0
  818. package/lib-es/modules/subtitles-history/components/respond-dialog-content.js +36 -0
  819. package/lib-es/modules/subtitles-history/components/settings/index.css +5 -0
  820. package/lib-es/modules/subtitles-history/components/settings/index.js +46 -0
  821. package/lib-es/modules/subtitles-history/components/timer.js +36 -0
  822. package/lib-es/modules/subtitles-history/components/title.js +8 -0
  823. package/lib-es/modules/subtitles-history/empty.js +14 -0
  824. package/lib-es/modules/subtitles-history/index.css +129 -0
  825. package/lib-es/modules/subtitles-history/index.js +89 -0
  826. package/lib-es/modules/subtitles-history/store.base.js +790 -0
  827. package/lib-es/modules/subtitles-history/store.electron.js +148 -0
  828. package/lib-es/modules/subtitles-history/type.js +1 -0
  829. package/lib-es/modules/subtitles-history/view.js +96 -0
  830. package/lib-es/modules/video-window/components/deviceState/index.js +68 -0
  831. package/lib-es/modules/video-window/components/members/index.css +51 -0
  832. package/lib-es/modules/video-window/components/members/index.js +116 -0
  833. package/lib-es/modules/video-window/components/speaking/index.css +86 -0
  834. package/lib-es/modules/video-window/components/speaking/index.js +40 -0
  835. package/lib-es/modules/video-window/components/topControl/index.css +35 -0
  836. package/lib-es/modules/video-window/components/topControl/index.js +68 -0
  837. package/lib-es/modules/video-window/index.css +21 -0
  838. package/lib-es/modules/video-window/index.js +82 -0
  839. package/lib-es/modules/video-window/popover-watcher.js +69 -0
  840. package/lib-es/modules/video-window/store.js +512 -0
  841. package/lib-es/modules/video-window/type.js +19 -0
  842. package/lib-es/modules/video-window/view.js +107 -0
  843. package/lib-es/modules/waiting-room-layout/index.css +96 -0
  844. package/lib-es/modules/waiting-room-layout/index.js +67 -0
  845. package/lib-es/modules/waiting-room-layout/store.js +231 -0
  846. package/lib-es/modules/waiting-room-layout/view.js +87 -0
  847. package/lib-es/modules/whiteboard/components/control-bar/index.css +52 -0
  848. package/lib-es/modules/whiteboard/components/control-bar/index.js +151 -0
  849. package/lib-es/modules/whiteboard/components/control-bar/store.js +298 -0
  850. package/lib-es/modules/whiteboard/components/loading/index.css +76 -0
  851. package/lib-es/modules/whiteboard/components/loading/index.js +57 -0
  852. package/lib-es/modules/whiteboard/components/loading/loading.png +0 -0
  853. package/lib-es/modules/whiteboard/components/multi-window/index.css +63 -0
  854. package/lib-es/modules/whiteboard/components/multi-window/index.js +31 -0
  855. package/lib-es/modules/whiteboard/components/pagination/index.css +228 -0
  856. package/lib-es/modules/whiteboard/components/pagination/index.js +155 -0
  857. package/lib-es/modules/whiteboard/components/pagination/store.js +10 -0
  858. package/lib-es/modules/whiteboard/components/progress/index.js +36 -0
  859. package/lib-es/modules/whiteboard/components/progress/style.css +51 -0
  860. package/lib-es/modules/whiteboard/components/scene-pagination.js +23 -0
  861. package/lib-es/modules/whiteboard/components/switch-theme/index.css +99 -0
  862. package/lib-es/modules/whiteboard/components/switch-theme/index.js +89 -0
  863. package/lib-es/modules/whiteboard/components/switch-theme/item.js +46 -0
  864. package/lib-es/modules/whiteboard/components/switch-theme/libs.js +24 -0
  865. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +30 -0
  866. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +101 -0
  867. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +67 -0
  868. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/index.js +40 -0
  869. package/lib-es/modules/whiteboard/components/toolbar/components/eraser-picker.js +136 -0
  870. package/lib-es/modules/whiteboard/components/toolbar/components/expansion/index.js +85 -0
  871. package/lib-es/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +46 -0
  872. package/lib-es/modules/whiteboard/components/toolbar/components/history.js +70 -0
  873. package/lib-es/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +33 -0
  874. package/lib-es/modules/whiteboard/components/toolbar/components/icons/move-icon.js +59 -0
  875. package/lib-es/modules/whiteboard/components/toolbar/components/item/index.js +35 -0
  876. package/lib-es/modules/whiteboard/components/toolbar/components/move-handle.js +127 -0
  877. package/lib-es/modules/whiteboard/components/toolbar/components/pen-picker.js +147 -0
  878. package/lib-es/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +78 -0
  879. package/lib-es/modules/whiteboard/components/toolbar/components/shape-picker.js +202 -0
  880. package/lib-es/modules/whiteboard/components/toolbar/hooks/index.js +285 -0
  881. package/lib-es/modules/whiteboard/components/toolbar/index.js +72 -0
  882. package/lib-es/modules/whiteboard/components/toolbar/store.js +484 -0
  883. package/lib-es/modules/whiteboard/components/toolbar/style.css +591 -0
  884. package/lib-es/modules/whiteboard/context.js +28 -0
  885. package/lib-es/modules/whiteboard/index.js +67 -0
  886. package/lib-es/modules/whiteboard/libs/theme.js +24 -0
  887. package/lib-es/modules/whiteboard/store.browser.js +20 -0
  888. package/lib-es/modules/whiteboard/store.electron.js +163 -0
  889. package/lib-es/modules/whiteboard/store.js +457 -0
  890. package/lib-es/modules/whiteboard/style.css +140 -0
  891. package/lib-es/modules/whiteboard/type.js +52 -0
  892. package/lib-es/modules/whiteboard/utils.js +29 -0
  893. package/lib-es/modules/whiteboard/view.js +105 -0
  894. package/lib-es/modules/widget/index.css +9 -0
  895. package/lib-es/modules/widget/index.js +129 -0
  896. package/lib-es/modules/widget/store.base.js +35 -0
  897. package/lib-es/modules/widget/store.browser.js +74 -0
  898. package/lib-es/modules/widget/store.electron.js +127 -0
  899. package/lib-es/modules/widget/type.js +1 -0
  900. package/lib-es/modules/widget/view.js +49 -0
  901. package/lib-es/modules/widget/web-widget.js +263 -0
  902. package/lib-es/object-manager.js +194 -0
  903. package/lib-es/plugins/browser-runtime-plugin.js +0 -0
  904. package/lib-es/plugins/css-preset-plugin.js +18 -0
  905. package/lib-es/plugins/electron-rtc-plugin.js +3 -0
  906. package/lib-es/plugins/module-dev-plugin.js +162 -0
  907. package/lib-es/plugins/multi-lang-plugin.js +18 -0
  908. package/lib-es/plugins/rtm-plugin.js +3 -0
  909. package/lib-es/plugins/web-rtc-plugin.js +3 -0
  910. package/lib-es/providers/ability-provider.js +76 -0
  911. package/lib-es/providers/annotation/provider.js +61 -0
  912. package/lib-es/providers/annotation/type.js +1 -0
  913. package/lib-es/providers/app-list-provider.js +392 -0
  914. package/lib-es/providers/board-share/bar-control/base.js +318 -0
  915. package/lib-es/providers/board-share/bar-control/browser.js +34 -0
  916. package/lib-es/providers/board-share/bar-control/electron.js +211 -0
  917. package/lib-es/providers/board-share/provider.base.js +406 -0
  918. package/lib-es/providers/board-share/provider.browser.js +147 -0
  919. package/lib-es/providers/board-share/provider.electron.js +162 -0
  920. package/lib-es/providers/board-share/struct.js +16 -0
  921. package/lib-es/providers/board-share/type.js +1 -0
  922. package/lib-es/providers/chat-provider.js +166 -0
  923. package/lib-es/providers/device-privilege-provider.js +402 -0
  924. package/lib-es/providers/device-provider.js +2148 -0
  925. package/lib-es/providers/device-stream-provider.js +418 -0
  926. package/lib-es/providers/dialog/provider.base.js +282 -0
  927. package/lib-es/providers/dialog/provider.browser.js +160 -0
  928. package/lib-es/providers/dialog/provider.electron.js +273 -0
  929. package/lib-es/providers/dialog/type.js +8 -0
  930. package/lib-es/providers/event-provider.js +50 -0
  931. package/lib-es/providers/facility/provider.base.js +152 -0
  932. package/lib-es/providers/facility/provider.browser.js +67 -0
  933. package/lib-es/providers/facility/provider.electron.js +83 -0
  934. package/lib-es/providers/facility/struct.js +6 -0
  935. package/lib-es/providers/facility/type.js +1 -0
  936. package/lib-es/providers/interpreter-provider.js +955 -0
  937. package/lib-es/providers/local-storage-provider.js +37 -0
  938. package/lib-es/providers/message/provider.js +97 -0
  939. package/lib-es/providers/message/struct.js +5 -0
  940. package/lib-es/providers/message/type.js +1 -0
  941. package/lib-es/providers/monitor-provider.js +22 -0
  942. package/lib-es/providers/mouse-detect/provider.js +312 -0
  943. package/lib-es/providers/mouse-detect/struct.js +5 -0
  944. package/lib-es/providers/mouse-detect/type.js +1 -0
  945. package/lib-es/providers/multi-display-provider.js +603 -0
  946. package/lib-es/providers/phone-audio-provider.js +512 -0
  947. package/lib-es/providers/privilege-provider.js +1158 -0
  948. package/lib-es/providers/renderer-provider.js +310 -0
  949. package/lib-es/providers/room-provider/room-provider.js +730 -0
  950. package/lib-es/providers/room-provider/waiting-room-control-manager.js +224 -0
  951. package/lib-es/providers/screen-share/constant.js +1 -0
  952. package/lib-es/providers/screen-share/provider.base.js +511 -0
  953. package/lib-es/providers/screen-share/provider.browser.js +290 -0
  954. package/lib-es/providers/screen-share/provider.electron.js +486 -0
  955. package/lib-es/providers/screen-share/strategy/browser.js +306 -0
  956. package/lib-es/providers/screen-share/strategy/electron.js +364 -0
  957. package/lib-es/providers/screen-share/strategy/type.js +31 -0
  958. package/lib-es/providers/screen-share/stream-state-sync.js +312 -0
  959. package/lib-es/providers/screen-share/struct.js +60 -0
  960. package/lib-es/providers/screen-share/type.js +1 -0
  961. package/lib-es/providers/session-provider.js +42 -0
  962. package/lib-es/providers/setting-storage/provider.base.js +6 -0
  963. package/lib-es/providers/setting-storage/provider.browser.js +57 -0
  964. package/lib-es/providers/setting-storage/provider.electron.js +55 -0
  965. package/lib-es/providers/setting-storage/type.js +1 -0
  966. package/lib-es/providers/stt-provider/stt-provider.js +1000 -0
  967. package/lib-es/providers/stt-provider/type.js +14 -0
  968. package/lib-es/providers/widget-provider.js +236 -0
  969. package/lib-es/providers/window/main-window.js +259 -0
  970. package/lib-es/providers/window/provider.js +158 -0
  971. package/lib-es/providers/window/renderer-window.js +576 -0
  972. package/lib-es/providers/window/type.js +1 -0
  973. package/lib-es/runtime.js +1 -0
  974. package/lib-es/scenes/main-scene.js +696 -0
  975. package/lib-es/scenes/type.js +1 -0
  976. package/lib-es/scenes/waiting-scene.js +155 -0
  977. package/lib-es/schema.js +88 -0
  978. package/lib-es/shared-context/board-context.js +7 -0
  979. package/lib-es/shared-context/dialog-context.js +3 -0
  980. package/lib-es/shared-context/video-track-render-context.js +2 -0
  981. package/lib-es/shared-data/app-list-data.js +122 -0
  982. package/lib-es/shared-data/chat-data.js +135 -0
  983. package/lib-es/shared-data/config.js +38 -0
  984. package/lib-es/shared-data/confirm-data.js +195 -0
  985. package/lib-es/shared-data/device-privilege-data.js +18 -0
  986. package/lib-es/shared-data/interpreter.js +235 -0
  987. package/lib-es/shared-data/layout-data.js +211 -0
  988. package/lib-es/shared-data/meeting-time.js +409 -0
  989. package/lib-es/shared-data/member-data.js +482 -0
  990. package/lib-es/shared-data/pin-data.js +107 -0
  991. package/lib-es/shared-data/screen-share/index.js +188 -0
  992. package/lib-es/shared-data/screen-share/type.js +1 -0
  993. package/lib-es/shared-data/security-data.js +153 -0
  994. package/lib-es/shared-data/setting.js +244 -0
  995. package/lib-es/shared-data/speaker-spotlight.js +11 -0
  996. package/lib-es/shared-data/stt-setting.ts/constant.js +27 -0
  997. package/lib-es/shared-data/stt-setting.ts/index.js +195 -0
  998. package/lib-es/shared-data/stt-setting.ts/type.js +7 -0
  999. package/lib-es/shared-data/video-window.js +1248 -0
  1000. package/lib-es/shared-data/waiting-room.js +216 -0
  1001. package/lib-es/shared-data/widget-data.js +42 -0
  1002. package/lib-es/translations/enUS.js +2075 -0
  1003. package/lib-es/translations/zhCN.js +2073 -0
  1004. package/lib-es/type.js +149 -0
  1005. package/lib-es/ui-manager.js +213 -0
  1006. package/lib-es/ui-scene-switch.js +572 -0
  1007. package/lib-es/utilities/browser-api.js +74 -0
  1008. package/lib-es/utilities/constant.js +190 -0
  1009. package/lib-es/utilities/debug.js +33 -0
  1010. package/lib-es/utilities/default-config.js +89 -0
  1011. package/lib-es/utilities/dialog-utils.js +210 -0
  1012. package/lib-es/utilities/focus-helper.js +26 -0
  1013. package/lib-es/utilities/hooks.js +82 -0
  1014. package/lib-es/utilities/i18n-common-data.js +7 -0
  1015. package/lib-es/utilities/logger.js +48 -0
  1016. package/lib-es/utilities/meeting-detail.js +74 -0
  1017. package/lib-es/utilities/mute-action.js +41 -0
  1018. package/lib-es/utilities/package-info.js +7 -0
  1019. package/lib-es/utilities/parameters.js +47 -0
  1020. package/lib-es/utilities/platform.js +7 -0
  1021. package/lib-es/utilities/privilege.js +21 -0
  1022. package/lib-es/utilities/regex.js +7 -0
  1023. package/lib-es/utilities/renderer.js +430 -0
  1024. package/lib-es/utilities/shared-storage.js +56 -0
  1025. package/lib-es/utilities/tools.js +252 -0
  1026. package/lib-es/utilities/ui-resources.js +84 -0
  1027. package/lib-es/utilities/useNamespace.js +59 -0
  1028. package/lib-es/utilities/validate-params.js +9 -0
  1029. package/package.json +85 -79
  1030. package/public/assets/fcr_chat_reddot.svg +5 -5
  1031. package/public/assets/fcr_grid_big.svg +3 -3
  1032. package/public/assets/fcr_leave2.svg +58 -58
  1033. package/public/assets/fcr_listontop_big.svg +3 -3
  1034. package/public/assets/step-gradient.svg +10 -10
  1035. package/public/fragment.html +10 -10
  1036. package/public/index.html +107 -183
  1037. package/public/index.vite.html +109 -0
  1038. package/public/js/init.js +75 -0
  1039. package/public/{meeting-manager.js → js/meeting-manager.js} +405 -405
@@ -0,0 +1,1248 @@
1
+ import "core-js/modules/es.symbol.js";
2
+ import "core-js/modules/es.symbol.description.js";
3
+ import "core-js/modules/es.symbol.iterator.js";
4
+ import "core-js/modules/es.symbol.to-primitive.js";
5
+ import "core-js/modules/es.error.cause.js";
6
+ import "core-js/modules/es.error.to-string.js";
7
+ import "core-js/modules/es.array.from.js";
8
+ import "core-js/modules/es.array.is-array.js";
9
+ import "core-js/modules/es.array.slice.js";
10
+ import "core-js/modules/es.date.to-primitive.js";
11
+ import "core-js/modules/es.date.to-string.js";
12
+ import "core-js/modules/es.function.name.js";
13
+ import "core-js/modules/es.number.constructor.js";
14
+ import "core-js/modules/es.object.create.js";
15
+ import "core-js/modules/es.object.define-property.js";
16
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
17
+ import "core-js/modules/es.regexp.exec.js";
18
+ import "core-js/modules/es.regexp.test.js";
19
+ import "core-js/modules/es.regexp.to-string.js";
20
+ import "core-js/modules/esnext.function.metadata.js";
21
+ import "core-js/modules/esnext.symbol.metadata.js";
22
+ import _typeof from "@babel/runtime/helpers/typeof";
23
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
24
+ import _readOnlyError from "@babel/runtime/helpers/readOnlyError";
25
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
26
+ import _createClass from "@babel/runtime/helpers/createClass";
27
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
28
+ var _FcrUIVideoWindowDataImpl, _FcrUIVideoWindowDataSourceImpl;
29
+ var _initProto, _init__boardUserInfo, _init__videoStream, _init__audioStream, _init__spotlightEnabled, _init__isSpeakerSpotlight, _init__boardCanEdit, _init__isFirstCameraOpen, _init_isPin, _init_hasScreenSharing, _init_hasBoardSharing, _init_hasLoopbackSharing, _setVideoStreamDecs, _setVideoStreamOwnerInfoDecs, _setAudioStreamDecs, _setAudioStreamOwnerInfoDecs, _setPinDecs, _setSpotlightEnabledDecs, _setHasBoardSharingDecs, _setBoardUserInfoDecs, _setSpeakerSpotlightDecs, _setHasScreenSharingDecs, _setHasLoopbackSharingDecs, _setBoardCanEditDecs, _getVideoStreamDecs, _ref, _initProto2, _init_spotlightEnabled, _init_layoutType, _init_manualLayout, _init_pinLimitedCount, _init_mainListLimitedCount, _init_foldListLimitedCount, _init_mainList, _init_foldList, _init_spotlightStreamId, _setSpotlightEnabledDecs2, _setLayoutDecs, _onSpotlightRemovedDecs, _resetListDecs, _addBoardDecs, _updateBoardDecs, _removeBoardDecs, _mergePstnStreamOrInsertNewDataDecs, _addDecs, _updateDecs, _deleteDecs, _addPinDecs, _removePinDecs, _setSpeakerSpotlightDecs2, _toggleMainStreamDecs, _insertBeginningByPriorityDecs, _insertEndByPriorityDecs, _findInsertBeginningIndexDecs, _findInsertEndIndexDecs, _insertBoardDecs, _insertNewDataDecs, _ref5;
30
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
32
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33
+ import "core-js/modules/es.array.filter.js";
34
+ import "core-js/modules/es.array.find.js";
35
+ import "core-js/modules/es.array.find-index.js";
36
+ import "core-js/modules/es.array.find-last-index.js";
37
+ import "core-js/modules/es.array.for-each.js";
38
+ import "core-js/modules/es.array.iterator.js";
39
+ import "core-js/modules/es.array.push.js";
40
+ import "core-js/modules/es.array.some.js";
41
+ import "core-js/modules/es.array.sort.js";
42
+ import "core-js/modules/es.array.splice.js";
43
+ import "core-js/modules/es.array.unshift.js";
44
+ import "core-js/modules/es.date.now.js";
45
+ import "core-js/modules/es.function.bind.js";
46
+ import "core-js/modules/es.map.js";
47
+ import "core-js/modules/es.object.assign.js";
48
+ import "core-js/modules/es.object.to-string.js";
49
+ import "core-js/modules/es.string.iterator.js";
50
+ import "core-js/modules/es.weak-map.js";
51
+ import "core-js/modules/esnext.iterator.constructor.js";
52
+ import "core-js/modules/esnext.iterator.filter.js";
53
+ import "core-js/modules/esnext.iterator.find.js";
54
+ import "core-js/modules/esnext.iterator.for-each.js";
55
+ import "core-js/modules/esnext.iterator.some.js";
56
+ import "core-js/modules/esnext.map.delete-all.js";
57
+ import "core-js/modules/esnext.map.emplace.js";
58
+ import "core-js/modules/esnext.map.every.js";
59
+ import "core-js/modules/esnext.map.filter.js";
60
+ import "core-js/modules/esnext.map.find.js";
61
+ import "core-js/modules/esnext.map.find-key.js";
62
+ import "core-js/modules/esnext.map.includes.js";
63
+ import "core-js/modules/esnext.map.key-of.js";
64
+ import "core-js/modules/esnext.map.map-keys.js";
65
+ import "core-js/modules/esnext.map.map-values.js";
66
+ import "core-js/modules/esnext.map.merge.js";
67
+ import "core-js/modules/esnext.map.reduce.js";
68
+ import "core-js/modules/esnext.map.some.js";
69
+ import "core-js/modules/esnext.map.update.js";
70
+ import "core-js/modules/esnext.weak-map.delete-all.js";
71
+ import "core-js/modules/esnext.weak-map.emplace.js";
72
+ import "core-js/modules/web.dom-collections.for-each.js";
73
+ import "core-js/modules/web.dom-collections.iterator.js";
74
+ import "core-js/modules/web.timers.js";
75
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
76
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
77
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
78
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
79
+ 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"); }
80
+ 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)]; } }; }
81
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
82
+ 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); }
83
+ 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; }
84
+ 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; }
85
+ import { AgoraObservable } from 'agora-foundation/lib/utilities/observable';
86
+ import { FcrUIVideoWindowFoldSortingPriority, FcrUIVideoWindowLayoutType, FcrUIVideoWindowMainSortingPriority, FcrUIWindowType } from '../type';
87
+ import { action, computed, observable } from 'mobx';
88
+ import { FcrUserRole } from 'fcr-core/lib/type';
89
+ import { FcrAudioSourceType, FcrMediaSourceState, FcrRoomConnectorType, FcrStreamType, FcrVideoSourceType } from 'fcr-core';
90
+ var _A = /*#__PURE__*/new WeakMap();
91
+ var _B = /*#__PURE__*/new WeakMap();
92
+ var _C = /*#__PURE__*/new WeakMap();
93
+ var _D = /*#__PURE__*/new WeakMap();
94
+ var _E = /*#__PURE__*/new WeakMap();
95
+ var _F = /*#__PURE__*/new WeakMap();
96
+ var _G = /*#__PURE__*/new WeakMap();
97
+ var _H = /*#__PURE__*/new WeakMap();
98
+ var _I = /*#__PURE__*/new WeakMap();
99
+ var _J = /*#__PURE__*/new WeakMap();
100
+ var _K = /*#__PURE__*/new WeakMap();
101
+ _ref = (_setVideoStreamDecs = [action, action.bound], _setVideoStreamOwnerInfoDecs = [action, action.bound], _setAudioStreamDecs = [action, action.bound], _setAudioStreamOwnerInfoDecs = [action, action.bound], _setPinDecs = [action, action.bound], _setSpotlightEnabledDecs = [action, action.bound], _setHasBoardSharingDecs = [action, action.bound], _setBoardUserInfoDecs = [action, action.bound], _setSpeakerSpotlightDecs = [action, action.bound], _setHasScreenSharingDecs = [action, action.bound], _setHasLoopbackSharingDecs = [action, action.bound], _setBoardCanEditDecs = [action, action.bound], _getVideoStreamDecs = [action, action.bound], "_boardUserInfo");
102
+ export var FcrUIVideoWindowDataImpl = /*#__PURE__*/function () {
103
+ function FcrUIVideoWindowDataImpl(type, _ref2, _placement, _isMySelf) {
104
+ var videoStream = _ref2.videoStream,
105
+ audioStream = _ref2.audioStream,
106
+ boardUserInfo = _ref2.boardUserInfo;
107
+ var layoutType = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : FcrUIVideoWindowLayoutType.Gallery;
108
+ var spotlightEnabled = arguments.length > 5 ? arguments[5] : undefined;
109
+ var canEdit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
110
+ _classCallCheck(this, FcrUIVideoWindowDataImpl);
111
+ _classPrivateFieldInitSpec(this, _A, (_initProto(this), _init__boardUserInfo(this)));
112
+ _defineProperty(this, "_layoutType", FcrUIVideoWindowLayoutType.Gallery);
113
+ _classPrivateFieldInitSpec(this, _B, _init__videoStream(this));
114
+ _classPrivateFieldInitSpec(this, _C, _init__audioStream(this));
115
+ _classPrivateFieldInitSpec(this, _D, _init__spotlightEnabled(this, true));
116
+ _classPrivateFieldInitSpec(this, _E, _init__isSpeakerSpotlight(this, false));
117
+ _classPrivateFieldInitSpec(this, _F, _init__boardCanEdit(this, false));
118
+ _classPrivateFieldInitSpec(this, _G, _init__isFirstCameraOpen(this, false));
119
+ _defineProperty(this, "needToSort", false);
120
+ _classPrivateFieldInitSpec(this, _H, _init_isPin(this, false));
121
+ _classPrivateFieldInitSpec(this, _I, _init_hasScreenSharing(this, false));
122
+ _classPrivateFieldInitSpec(this, _J, _init_hasBoardSharing(this, false));
123
+ _classPrivateFieldInitSpec(this, _K, _init_hasLoopbackSharing(this, false));
124
+ this._placement = _placement;
125
+ this._isMySelf = _isMySelf;
126
+ this.type = type;
127
+ this.setVideoStream(videoStream);
128
+ this.setAudioStream(audioStream);
129
+ this.setLayoutType(layoutType);
130
+ this.setSpotlightEnabled(spotlightEnabled);
131
+ this._boardUserInfo = boardUserInfo;
132
+ this._boardCanEdit = canEdit;
133
+ }
134
+ return _createClass(FcrUIVideoWindowDataImpl, [{
135
+ key: _ref,
136
+ get: function get() {
137
+ return _classPrivateFieldGet(_A, this);
138
+ }
139
+ }, {
140
+ key: "_boardUserInfo",
141
+ set: function set(v) {
142
+ _classPrivateFieldSet(_A, this, v);
143
+ }
144
+ }, {
145
+ key: "_videoStream",
146
+ get: function get() {
147
+ return _classPrivateFieldGet(_B, this);
148
+ },
149
+ set: function set(v) {
150
+ _classPrivateFieldSet(_B, this, v);
151
+ }
152
+ }, {
153
+ key: "_audioStream",
154
+ get: function get() {
155
+ return _classPrivateFieldGet(_C, this);
156
+ },
157
+ set: function set(v) {
158
+ _classPrivateFieldSet(_C, this, v);
159
+ }
160
+ }, {
161
+ key: "_spotlightEnabled",
162
+ get: function get() {
163
+ return _classPrivateFieldGet(_D, this);
164
+ },
165
+ set: function set(v) {
166
+ _classPrivateFieldSet(_D, this, v);
167
+ }
168
+ }, {
169
+ key: "_isSpeakerSpotlight",
170
+ get: function get() {
171
+ return _classPrivateFieldGet(_E, this);
172
+ },
173
+ set: function set(v) {
174
+ _classPrivateFieldSet(_E, this, v);
175
+ }
176
+ }, {
177
+ key: "_boardCanEdit",
178
+ get: function get() {
179
+ return _classPrivateFieldGet(_F, this);
180
+ },
181
+ set: function set(v) {
182
+ _classPrivateFieldSet(_F, this, v);
183
+ }
184
+ }, {
185
+ key: "_isFirstCameraOpen",
186
+ get: function get() {
187
+ return _classPrivateFieldGet(_G, this);
188
+ },
189
+ set: function set(v) {
190
+ _classPrivateFieldSet(_G, this, v);
191
+ }
192
+ }, {
193
+ key: "isPin",
194
+ get: function get() {
195
+ return _classPrivateFieldGet(_H, this);
196
+ },
197
+ set: function set(v) {
198
+ _classPrivateFieldSet(_H, this, v);
199
+ }
200
+ }, {
201
+ key: "hasScreenSharing",
202
+ get: function get() {
203
+ return _classPrivateFieldGet(_I, this);
204
+ },
205
+ set: function set(v) {
206
+ _classPrivateFieldSet(_I, this, v);
207
+ }
208
+ }, {
209
+ key: "hasBoardSharing",
210
+ get: function get() {
211
+ return _classPrivateFieldGet(_J, this);
212
+ },
213
+ set: function set(v) {
214
+ _classPrivateFieldSet(_J, this, v);
215
+ }
216
+ }, {
217
+ key: "hasLoopbackSharing",
218
+ get: function get() {
219
+ return _classPrivateFieldGet(_K, this);
220
+ },
221
+ set: function set(v) {
222
+ _classPrivateFieldSet(_K, this, v);
223
+ }
224
+ }, {
225
+ key: "isSpeakerSpotlight",
226
+ get: function get() {
227
+ return this._isSpeakerSpotlight && this._spotlightEnabled;
228
+ }
229
+ }, {
230
+ key: "windowId",
231
+ get: function get() {
232
+ return this.type === FcrUIWindowType.BOARD ? 'boardId' : this.videoStreamId || this.audioStreamId || '';
233
+ }
234
+ }, {
235
+ key: "videoStreamId",
236
+ get: function get() {
237
+ var _this$_videoStream;
238
+ return (_this$_videoStream = this._videoStream) === null || _this$_videoStream === void 0 ? void 0 : _this$_videoStream.streamId;
239
+ }
240
+ }, {
241
+ key: "audioStreamId",
242
+ get: function get() {
243
+ var _this$_audioStream;
244
+ return (_this$_audioStream = this._audioStream) === null || _this$_audioStream === void 0 ? void 0 : _this$_audioStream.streamId;
245
+ }
246
+ }, {
247
+ key: "audioStreamConnectorType",
248
+ get: function get() {
249
+ var _this$_audioStream2;
250
+ return ((_this$_audioStream2 = this._audioStream) === null || _this$_audioStream2 === void 0 ? void 0 : _this$_audioStream2.connectorType) || FcrRoomConnectorType.NONE;
251
+ }
252
+ }, {
253
+ key: "videoStreamConnectorType",
254
+ get: function get() {
255
+ var _this$_videoStream2;
256
+ return ((_this$_videoStream2 = this._videoStream) === null || _this$_videoStream2 === void 0 ? void 0 : _this$_videoStream2.connectorType) || FcrRoomConnectorType.NONE;
257
+ }
258
+
259
+ // @computed
260
+ // get hasMicrophoneAudioStream() {
261
+ // if (this.audioStreamConnectorType === FcrRoomConnectorType.NONE) {
262
+ // return (
263
+ // this._videoStream?.audioSourceState === FcrMediaSourceState.OPEN &&
264
+ // (this._videoStream.streamType === FcrStreamType.BOTH ||
265
+ // this._videoStream.streamType === FcrStreamType.AUDIO)
266
+ // );
267
+ // } else {
268
+ // return true;
269
+ // }
270
+ // }
271
+ }, {
272
+ key: "hasMicrophoneAudioStream",
273
+ get: function get() {
274
+ if (this.audioStreamConnectorType === FcrRoomConnectorType.NONE) {
275
+ var _ref3 = this._videoStream || {},
276
+ audioSourceState = _ref3.audioSourceState;
277
+ return audioSourceState === FcrMediaSourceState.OPEN;
278
+ } else {
279
+ return true;
280
+ }
281
+ }
282
+ }, {
283
+ key: "hasLoopbackAudioStream",
284
+ get: function get() {
285
+ var _this$_videoStream3;
286
+ if (((_this$_videoStream3 = this._videoStream) === null || _this$_videoStream3 === void 0 ? void 0 : _this$_videoStream3.audioSourceType) === FcrAudioSourceType.LOOPBACK
287
+ // &&
288
+ // this._videoStream?.audioSourceState === FcrMediaSourceState.OPEN
289
+ ) {
290
+ return true;
291
+ }
292
+ return false;
293
+ }
294
+ }, {
295
+ key: "phoneMicEnabled",
296
+ get: function get() {
297
+ if (this.audioStreamConnectorType === FcrRoomConnectorType.PSTN) {
298
+ var _ref4 = this._audioStream || {},
299
+ audioSourceState = _ref4.audioSourceState;
300
+ return audioSourceState === FcrMediaSourceState.OPEN;
301
+ } else {
302
+ return false;
303
+ }
304
+ }
305
+ }, {
306
+ key: "hasVideoStream",
307
+ get: function get() {
308
+ var _this$_videoStream4, _this$_videoStream5, _this$_videoStream6;
309
+ return ((_this$_videoStream4 = this._videoStream) === null || _this$_videoStream4 === void 0 ? void 0 : _this$_videoStream4.videoSourceState) === FcrMediaSourceState.OPEN && (((_this$_videoStream5 = this._videoStream) === null || _this$_videoStream5 === void 0 ? void 0 : _this$_videoStream5.streamType) === FcrStreamType.BOTH || ((_this$_videoStream6 = this._videoStream) === null || _this$_videoStream6 === void 0 ? void 0 : _this$_videoStream6.streamType) === FcrStreamType.VIDEO);
310
+ }
311
+ }, {
312
+ key: "hasBoard",
313
+ get: function get() {
314
+ return this.type === FcrUIWindowType.BOARD;
315
+ }
316
+ }, {
317
+ key: "userId",
318
+ get: function get() {
319
+ var _this$_videoStream7, _this$_audioStream3, _this$_boardUserInfo;
320
+ return ((_this$_videoStream7 = this._videoStream) === null || _this$_videoStream7 === void 0 ? void 0 : _this$_videoStream7.owner.userId) || ((_this$_audioStream3 = this._audioStream) === null || _this$_audioStream3 === void 0 ? void 0 : _this$_audioStream3.owner.userId) || ((_this$_boardUserInfo = this._boardUserInfo) === null || _this$_boardUserInfo === void 0 ? void 0 : _this$_boardUserInfo.userId) || '';
321
+ }
322
+ }, {
323
+ key: "userName",
324
+ get: function get() {
325
+ var _this$_videoStream8, _this$_audioStream4, _this$_boardUserInfo2;
326
+ return ((_this$_videoStream8 = this._videoStream) === null || _this$_videoStream8 === void 0 ? void 0 : _this$_videoStream8.owner.userName) || ((_this$_audioStream4 = this._audioStream) === null || _this$_audioStream4 === void 0 ? void 0 : _this$_audioStream4.owner.userName) || ((_this$_boardUserInfo2 = this._boardUserInfo) === null || _this$_boardUserInfo2 === void 0 ? void 0 : _this$_boardUserInfo2.userName) || '';
327
+ }
328
+ }, {
329
+ key: "ownerRoleType",
330
+ get: function get() {
331
+ var _this$_videoStream9, _this$_audioStream5, _this$_boardUserInfo3;
332
+ return ((_this$_videoStream9 = this._videoStream) === null || _this$_videoStream9 === void 0 ? void 0 : _this$_videoStream9.owner.userRole) || ((_this$_audioStream5 = this._audioStream) === null || _this$_audioStream5 === void 0 ? void 0 : _this$_audioStream5.owner.userRole) || ((_this$_boardUserInfo3 = this._boardUserInfo) === null || _this$_boardUserInfo3 === void 0 ? void 0 : _this$_boardUserInfo3.userRole) || FcrUserRole.AUDIENCE;
333
+ }
334
+ }, {
335
+ key: "videoSourceType",
336
+ get: function get() {
337
+ var _this$_videoStream0;
338
+ return ((_this$_videoStream0 = this._videoStream) === null || _this$_videoStream0 === void 0 ? void 0 : _this$_videoStream0.videoSourceType) || FcrVideoSourceType.CAMERA;
339
+ }
340
+ }, {
341
+ key: "audioSourceType",
342
+ get: function get() {
343
+ var _this$_audioStream6;
344
+ return ((_this$_audioStream6 = this._audioStream) === null || _this$_audioStream6 === void 0 ? void 0 : _this$_audioStream6.audioSourceType) || FcrAudioSourceType.MICROPHONE;
345
+ }
346
+ }, {
347
+ key: "isMySelf",
348
+ get: function get() {
349
+ return this._isMySelf;
350
+ }
351
+ }, {
352
+ key: "avatar",
353
+ get: function get() {
354
+ var _this$_videoStream1;
355
+ // 如果是pstn没有头像
356
+ // 其他用户取videoStream的owner的avatar
357
+ if (this.audioStreamConnectorType === FcrRoomConnectorType.PSTN) {
358
+ return '';
359
+ }
360
+ return ((_this$_videoStream1 = this._videoStream) === null || _this$_videoStream1 === void 0 ? void 0 : _this$_videoStream1.owner.avatar) || '';
361
+ }
362
+ }, {
363
+ key: "sortingPriority",
364
+ get: function get() {
365
+ if (this._placement === 'main-list') {
366
+ var _this$_videoStream10;
367
+ if (this.type === FcrUIWindowType.BOARD && this._boardCanEdit) {
368
+ return FcrUIVideoWindowMainSortingPriority.HIGHEST;
369
+ }
370
+ if (this.isPin || ((_this$_videoStream10 = this._videoStream) === null || _this$_videoStream10 === void 0 ? void 0 : _this$_videoStream10.videoSourceType) === FcrVideoSourceType.SCREEN || this.type === FcrUIWindowType.BOARD) {
371
+ return FcrUIVideoWindowMainSortingPriority.FOCUS;
372
+ }
373
+ if (this.isSpeakerSpotlight) {
374
+ return FcrUIVideoWindowMainSortingPriority.SPEAKER_SPOTLIGHT;
375
+ }
376
+ if (this.hasScreenSharing) {
377
+ return FcrUIVideoWindowMainSortingPriority.SCREEN_SHARING_OWNER;
378
+ }
379
+ if (this.ownerRoleType === FcrUserRole.HOST) {
380
+ return FcrUIVideoWindowMainSortingPriority.HOST;
381
+ }
382
+ if (this.isMySelf) {
383
+ return FcrUIVideoWindowMainSortingPriority.MYSELF;
384
+ }
385
+ if (this.ownerRoleType === FcrUserRole.COHOST) {
386
+ return FcrUIVideoWindowMainSortingPriority.CO_HOST;
387
+ }
388
+ // if (this.hasMicrophoneAudioStream && this.hasVideoStream) {
389
+ // return FcrUIVideoWindowMainSortingPriority.BOTH_OPEN;
390
+ // }
391
+ var isFirstCameraOpen = this.hasVideoStream && !this._isFirstCameraOpen;
392
+ if (isFirstCameraOpen) {
393
+ return FcrUIVideoWindowMainSortingPriority.CAMERA_OPEN;
394
+ }
395
+ // if (this.hasMicrophoneAudioStream) {
396
+ // return FcrUIVideoWindowMainSortingPriority.MICROPHONE_OPEN;
397
+ // }
398
+ } else {
399
+ var _this$_videoStream11;
400
+ if (this.isSpeakerSpotlight) {
401
+ return FcrUIVideoWindowFoldSortingPriority.FOCUS;
402
+ }
403
+ if (this.isPin) {
404
+ return FcrUIVideoWindowFoldSortingPriority.PIN;
405
+ }
406
+ if (((_this$_videoStream11 = this._videoStream) === null || _this$_videoStream11 === void 0 ? void 0 : _this$_videoStream11.videoSourceType) === FcrVideoSourceType.SCREEN) {
407
+ return FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_STREAM;
408
+ }
409
+ if (this.hasScreenSharing) {
410
+ return FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_OWNER;
411
+ }
412
+ if (this.ownerRoleType === FcrUserRole.HOST) {
413
+ return FcrUIVideoWindowFoldSortingPriority.HOST;
414
+ }
415
+ if (this.isMySelf) {
416
+ return FcrUIVideoWindowFoldSortingPriority.MYSELF;
417
+ }
418
+ if (this.ownerRoleType === FcrUserRole.COHOST) {
419
+ return FcrUIVideoWindowFoldSortingPriority.CO_HOST;
420
+ }
421
+ // if (this.hasMicrophoneAudioStream && this.hasVideoStream) {
422
+ // return FcrUIVideoWindowFoldSortingPriority.BOTH_OPEN;
423
+ // }
424
+ if (this.hasVideoStream) {
425
+ return FcrUIVideoWindowFoldSortingPriority.CAMERA_OPEN;
426
+ }
427
+ // if (this.hasMicrophoneAudioStream) {
428
+ // return FcrUIVideoWindowFoldSortingPriority.MICROPHONE_OPEN;
429
+ // }
430
+ }
431
+ return FcrUIVideoWindowMainSortingPriority.NONE;
432
+ }
433
+ }, {
434
+ key: "release",
435
+ value: function release() {}
436
+ }, {
437
+ key: "setLayoutType",
438
+ value: function setLayoutType(layoutType) {
439
+ this._layoutType = layoutType;
440
+ }
441
+ }, {
442
+ key: "setIsFirstCameraOpen",
443
+ value: function setIsFirstCameraOpen(isFirstCameraOpen) {
444
+ this._isFirstCameraOpen = isFirstCameraOpen;
445
+ }
446
+ }, {
447
+ key: "setVideoStream",
448
+ value: function setVideoStream(videoStream) {
449
+ this._videoStream = videoStream;
450
+ }
451
+ }, {
452
+ key: "setVideoStreamOwnerInfo",
453
+ value: function setVideoStreamOwnerInfo(userInfo) {
454
+ if (this._videoStream) {
455
+ this._videoStream.owner = userInfo;
456
+ }
457
+ }
458
+ }, {
459
+ key: "setAudioStream",
460
+ value: function setAudioStream(audioStream) {
461
+ this._audioStream = audioStream;
462
+ }
463
+ }, {
464
+ key: "setAudioStreamOwnerInfo",
465
+ value: function setAudioStreamOwnerInfo(userInfo) {
466
+ if (this._audioStream) {
467
+ this._audioStream.owner = userInfo;
468
+ }
469
+ }
470
+ }, {
471
+ key: "setPin",
472
+ value: function setPin(pin) {
473
+ this.isPin = pin;
474
+ }
475
+ }, {
476
+ key: "setSpotlightEnabled",
477
+ value: function setSpotlightEnabled(enabled) {
478
+ this._spotlightEnabled = enabled;
479
+ }
480
+ }, {
481
+ key: "setHasBoardSharing",
482
+ value: function setHasBoardSharing(isSharing) {
483
+ this.hasBoardSharing = isSharing;
484
+ }
485
+ }, {
486
+ key: "setBoardUserInfo",
487
+ value: function setBoardUserInfo(userInfo) {
488
+ if (this.type === FcrUIWindowType.BOARD) {
489
+ this._boardUserInfo = userInfo;
490
+ }
491
+ }
492
+ }, {
493
+ key: "setSpeakerSpotlight",
494
+ value: function setSpeakerSpotlight(speakerSpotlight) {
495
+ this._isSpeakerSpotlight = speakerSpotlight;
496
+ }
497
+ }, {
498
+ key: "setHasScreenSharing",
499
+ value: function setHasScreenSharing(screenSharing) {
500
+ this.hasScreenSharing = screenSharing;
501
+ }
502
+ }, {
503
+ key: "setHasLoopbackSharing",
504
+ value: function setHasLoopbackSharing(hasLoopbackSharing) {
505
+ this.hasLoopbackSharing = hasLoopbackSharing;
506
+ }
507
+ }, {
508
+ key: "setBoardCanEdit",
509
+ value: function setBoardCanEdit(canEdit) {
510
+ this._boardCanEdit = canEdit;
511
+ }
512
+ }, {
513
+ key: "getVideoStream",
514
+ value: function getVideoStream() {
515
+ return this._videoStream;
516
+ }
517
+ }]);
518
+ }();
519
+ _FcrUIVideoWindowDataImpl = FcrUIVideoWindowDataImpl;
520
+ var _applyDecs$e = _slicedToArray(_applyDecs(_FcrUIVideoWindowDataImpl, [[observable, 1, "_boardUserInfo"], [observable, 1, "_videoStream"], [observable, 1, "_audioStream"], [observable, 1, "_spotlightEnabled"], [observable, 1, "_isSpeakerSpotlight"], [observable, 1, "_boardCanEdit"], [observable, 1, "_isFirstCameraOpen"], [observable, 1, "isPin"], [observable, 1, "hasScreenSharing"], [observable, 1, "hasBoardSharing"], [observable, 1, "hasLoopbackSharing"], [computed, 3, "isSpeakerSpotlight"], [computed, 3, "windowId"], [computed, 3, "videoStreamId"], [computed, 3, "audioStreamId"], [computed, 3, "audioStreamConnectorType"], [computed, 3, "videoStreamConnectorType"], [computed, 3, "hasMicrophoneAudioStream"], [computed, 3, "hasLoopbackAudioStream"], [computed, 3, "phoneMicEnabled"], [computed, 3, "hasVideoStream"], [computed, 3, "hasBoard"], [computed, 3, "userId"], [computed, 3, "ownerRoleType"], [computed, 3, "videoSourceType"], [computed, 3, "audioSourceType"], [computed, 3, "avatar"], [computed, 3, "sortingPriority"], [_setVideoStreamDecs, 18, "setVideoStream"], [_setVideoStreamOwnerInfoDecs, 18, "setVideoStreamOwnerInfo"], [_setAudioStreamDecs, 18, "setAudioStream"], [_setAudioStreamOwnerInfoDecs, 18, "setAudioStreamOwnerInfo"], [_setPinDecs, 18, "setPin"], [_setSpotlightEnabledDecs, 18, "setSpotlightEnabled"], [_setHasBoardSharingDecs, 18, "setHasBoardSharing"], [_setBoardUserInfoDecs, 18, "setBoardUserInfo"], [_setSpeakerSpotlightDecs, 18, "setSpeakerSpotlight"], [_setHasScreenSharingDecs, 18, "setHasScreenSharing"], [_setHasLoopbackSharingDecs, 18, "setHasLoopbackSharing"], [_setBoardCanEditDecs, 18, "setBoardCanEdit"], [_getVideoStreamDecs, 18, "getVideoStream"]], []).e, 12);
521
+ _init__boardUserInfo = _applyDecs$e[0];
522
+ _init__videoStream = _applyDecs$e[1];
523
+ _init__audioStream = _applyDecs$e[2];
524
+ _init__spotlightEnabled = _applyDecs$e[3];
525
+ _init__isSpeakerSpotlight = _applyDecs$e[4];
526
+ _init__boardCanEdit = _applyDecs$e[5];
527
+ _init__isFirstCameraOpen = _applyDecs$e[6];
528
+ _init_isPin = _applyDecs$e[7];
529
+ _init_hasScreenSharing = _applyDecs$e[8];
530
+ _init_hasBoardSharing = _applyDecs$e[9];
531
+ _init_hasLoopbackSharing = _applyDecs$e[10];
532
+ _initProto = _applyDecs$e[11];
533
+ var _A2 = /*#__PURE__*/new WeakMap();
534
+ var _B2 = /*#__PURE__*/new WeakMap();
535
+ var _C2 = /*#__PURE__*/new WeakMap();
536
+ var _D2 = /*#__PURE__*/new WeakMap();
537
+ var _E2 = /*#__PURE__*/new WeakMap();
538
+ var _F2 = /*#__PURE__*/new WeakMap();
539
+ var _G2 = /*#__PURE__*/new WeakMap();
540
+ var _H2 = /*#__PURE__*/new WeakMap();
541
+ var _I2 = /*#__PURE__*/new WeakMap();
542
+ _ref5 = (_setSpotlightEnabledDecs2 = [action, action.bound], _setLayoutDecs = [action, action.bound], _onSpotlightRemovedDecs = [action, action.bound], _resetListDecs = [action, action.bound], _addBoardDecs = [action, action.bound], _updateBoardDecs = [action, action.bound], _removeBoardDecs = [action, action.bound], _mergePstnStreamOrInsertNewDataDecs = [action, action.bound], _addDecs = [action, action.bound], _updateDecs = [action, action.bound], _deleteDecs = [action, action.bound], _addPinDecs = [action, action.bound], _removePinDecs = [action, action.bound], _setSpeakerSpotlightDecs2 = [action, action.bound], _toggleMainStreamDecs = [action, action.bound], _insertBeginningByPriorityDecs = [action, action.bound], _insertEndByPriorityDecs = [action, action.bound], _findInsertBeginningIndexDecs = [action, action.bound], _findInsertEndIndexDecs = [action, action.bound], _insertBoardDecs = [action, action.bound], _insertNewDataDecs = [action, action.bound], "_observer");
543
+ export var FcrUIVideoWindowDataSourceImpl = /*#__PURE__*/function () {
544
+ function FcrUIVideoWindowDataSourceImpl(_sharedSettingDataSource) {
545
+ _classCallCheck(this, FcrUIVideoWindowDataSourceImpl);
546
+ _defineProperty(this, _ref5, (_initProto2(this), new AgoraObservable()));
547
+ _defineProperty(this, "_spotlightPool", new FcrUISpeakerSpotlightPool());
548
+ _classPrivateFieldInitSpec(this, _A2, _init_spotlightEnabled(this, true));
549
+ _classPrivateFieldInitSpec(this, _B2, _init_layoutType(this, FcrUIVideoWindowLayoutType.Gallery));
550
+ _classPrivateFieldInitSpec(this, _C2, _init_manualLayout(this, undefined));
551
+ _classPrivateFieldInitSpec(this, _D2, _init_pinLimitedCount(this, 1));
552
+ _classPrivateFieldInitSpec(this, _E2, _init_mainListLimitedCount(this, 255));
553
+ _classPrivateFieldInitSpec(this, _F2, _init_foldListLimitedCount(this, 255));
554
+ _classPrivateFieldInitSpec(this, _G2, _init_mainList(this, []));
555
+ _classPrivateFieldInitSpec(this, _H2, _init_foldList(this, []));
556
+ _classPrivateFieldInitSpec(this, _I2, _init_spotlightStreamId(this, ''));
557
+ this._sharedSettingDataSource = _sharedSettingDataSource;
558
+ this.spotlightEnabled = _sharedSettingDataSource.setting.spotlightEnabled;
559
+ this._spotlightPool.addObserver({
560
+ onRemoved: this.onSpotlightRemoved
561
+ });
562
+ }
563
+ return _createClass(FcrUIVideoWindowDataSourceImpl, [{
564
+ key: "spotlightEnabled",
565
+ get: function get() {
566
+ return _classPrivateFieldGet(_A2, this);
567
+ },
568
+ set: function set(v) {
569
+ _classPrivateFieldSet(_A2, this, v);
570
+ }
571
+ }, {
572
+ key: "layoutType",
573
+ get: function get() {
574
+ return _classPrivateFieldGet(_B2, this);
575
+ },
576
+ set: function set(v) {
577
+ _classPrivateFieldSet(_B2, this, v);
578
+ }
579
+ }, {
580
+ key: "manualLayout",
581
+ get: function get() {
582
+ return _classPrivateFieldGet(_C2, this);
583
+ },
584
+ set: function set(v) {
585
+ _classPrivateFieldSet(_C2, this, v);
586
+ }
587
+ }, {
588
+ key: "pinLimitedCount",
589
+ get: function get() {
590
+ return _classPrivateFieldGet(_D2, this);
591
+ },
592
+ set: function set(v) {
593
+ _classPrivateFieldSet(_D2, this, v);
594
+ }
595
+ }, {
596
+ key: "mainListLimitedCount",
597
+ get: function get() {
598
+ return _classPrivateFieldGet(_E2, this);
599
+ },
600
+ set: function set(v) {
601
+ _classPrivateFieldSet(_E2, this, v);
602
+ }
603
+ }, {
604
+ key: "foldListLimitedCount",
605
+ get: function get() {
606
+ return _classPrivateFieldGet(_F2, this);
607
+ },
608
+ set: function set(v) {
609
+ _classPrivateFieldSet(_F2, this, v);
610
+ }
611
+ }, {
612
+ key: "mainList",
613
+ get: function get() {
614
+ return _classPrivateFieldGet(_G2, this);
615
+ },
616
+ set: function set(v) {
617
+ _classPrivateFieldSet(_G2, this, v);
618
+ }
619
+ }, {
620
+ key: "foldList",
621
+ get: function get() {
622
+ return _classPrivateFieldGet(_H2, this);
623
+ },
624
+ set: function set(v) {
625
+ _classPrivateFieldSet(_H2, this, v);
626
+ }
627
+ }, {
628
+ key: "spotlightStreamId",
629
+ get: function get() {
630
+ return _classPrivateFieldGet(_I2, this);
631
+ },
632
+ set: function set(v) {
633
+ _classPrivateFieldSet(_I2, this, v);
634
+ }
635
+ }, {
636
+ key: "shouldHideNonVideoParticipants",
637
+ get: function get() {
638
+ return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants || false;
639
+ }
640
+ }, {
641
+ key: "setSpotlightEnabled",
642
+ value: function setSpotlightEnabled(enabled) {
643
+ var _this = this;
644
+ this.spotlightEnabled = enabled;
645
+ this.mainList.forEach(function (item) {
646
+ item.setSpotlightEnabled(enabled);
647
+ });
648
+ this.foldList.forEach(function (item) {
649
+ item.setSpotlightEnabled(enabled);
650
+ });
651
+ if (!enabled) {
652
+ this.clearSpeakerSpotlight();
653
+ var processPendingSorts = function processPendingSorts(list, limitCount) {
654
+ list.forEach(function (item) {
655
+ if (item.needToSort) {
656
+ _this._insertByPriority(item, list, limitCount);
657
+ }
658
+ });
659
+ };
660
+ processPendingSorts(this.mainList, this.mainListLimitedCount);
661
+ processPendingSorts(this.foldList, this.foldListLimitedCount);
662
+ }
663
+ }
664
+ }, {
665
+ key: "setLayout",
666
+ value: function setLayout(layout, manual) {
667
+ var _this2 = this;
668
+ if (manual) {
669
+ this.manualLayout = layout;
670
+ }
671
+ var windowList = this.mainList.filter(function (item) {
672
+ if (_this2.shouldHideNonVideoParticipants) {
673
+ return item.hasVideoStream;
674
+ }
675
+ return true;
676
+ });
677
+ // 有白板共享时,即使隐藏了未开启视频的参数者,数量总是大于等于2,不应提前return,setLayout失效
678
+ var boardInShow = this.mainList.some(function (item) {
679
+ return item.hasBoard;
680
+ });
681
+ if (this.layoutType === FcrUIVideoWindowLayoutType.Gallery && layout === FcrUIVideoWindowLayoutType.Speaker && windowList.length < 2 && !boardInShow || this.layoutType === layout) {
682
+ return;
683
+ }
684
+ this.layoutType = layout;
685
+ this._observer.notifyObservers('onLayoutUpdated', layout);
686
+ this.mainList.forEach(function (item) {
687
+ item.setLayoutType(layout);
688
+ });
689
+ this.foldList.forEach(function (item) {
690
+ item.setLayoutType(layout);
691
+ });
692
+ // if (layout === FcrUIVideoWindowLayoutType.Gallery) {
693
+ // this.resetList();
694
+ // }
695
+ }
696
+ }, {
697
+ key: "onSpotlightRemoved",
698
+ value: function onSpotlightRemoved(streamId) {
699
+ var _this3 = this;
700
+ var removeSpotlight = function removeSpotlight(streamId, list) {
701
+ var index = _this3._findItemIndexWithWindowId(streamId, list);
702
+ if (index !== -1) {
703
+ var item = list[index];
704
+ if (item) {
705
+ item.setSpeakerSpotlight(false);
706
+ if (_this3.layoutType === FcrUIVideoWindowLayoutType.Speaker) {
707
+ item.needToSort = true;
708
+ }
709
+ }
710
+ }
711
+ };
712
+ removeSpotlight(streamId, this.mainList);
713
+ removeSpotlight(streamId, this.foldList);
714
+ this.spotlightStreamId = '';
715
+ this._observer.notifyObservers('onSpotlightRemoved', streamId);
716
+ }
717
+ }, {
718
+ key: "resetList",
719
+ value: function resetList() {
720
+ this.mainList = this.mainList.sort(function (a, b) {
721
+ return b.sortingPriority - a.sortingPriority;
722
+ });
723
+ this.foldList = this.foldList.sort(function (a, b) {
724
+ return b.sortingPriority - a.sortingPriority;
725
+ });
726
+ this._observer.notifyObservers('onMainListUpdated', -1);
727
+ this._observer.notifyObservers('onFoldListUpdated', -1);
728
+ }
729
+ }, {
730
+ key: "addBoard",
731
+ value: function addBoard(userInfo, isMySelf, canEdit) {
732
+ this._insertBoard(userInfo, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list', canEdit);
733
+ this._syncHasScreenSharing(true, true, userInfo.userId, this.mainList, this.mainListLimitedCount, 'main-list');
734
+ this._syncHasScreenSharing(true, true, userInfo.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
735
+ }
736
+ }, {
737
+ key: "updateBoard",
738
+ value: function updateBoard(canEdit) {
739
+ var windowData = this.mainList.find(function (item) {
740
+ return item.type === FcrUIWindowType.BOARD;
741
+ });
742
+ windowData === null || windowData === void 0 || windowData.setBoardCanEdit(canEdit);
743
+ var insertIndex = this._insertByPriority(windowData, this.mainList, this.mainListLimitedCount);
744
+ this._observer.notifyObservers('onMainListUpdated', insertIndex);
745
+ }
746
+ }, {
747
+ key: "removeBoard",
748
+ value: function removeBoard() {
749
+ var boardIndex = this.mainList.findIndex(function (i) {
750
+ return i.type === FcrUIWindowType.BOARD;
751
+ });
752
+ if (boardIndex !== -1) {
753
+ var board = this.mainList[boardIndex];
754
+ this.mainList.splice(boardIndex, 1);
755
+ this._syncHasScreenSharing(false, false, board.userId, this.mainList, this.mainListLimitedCount, 'main-list');
756
+ this._syncHasScreenSharing(false, false, board.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
757
+ }
758
+ }
759
+ }, {
760
+ key: "_mergePstnStreamOrInsertNewData",
761
+ value: function _mergePstnStreamOrInsertNewData(stream, list, limitCount, isMySelf, placement) {
762
+ var existedUserPstnStream = list.find(function (item) {
763
+ return item.userId === stream.owner.userId && item.audioStreamConnectorType === FcrRoomConnectorType.PSTN;
764
+ });
765
+ if (existedUserPstnStream) {
766
+ existedUserPstnStream.setVideoStream(stream);
767
+ } else {
768
+ this._insertNewData(stream, list, limitCount, isMySelf, placement);
769
+ }
770
+ }
771
+ }, {
772
+ key: "add",
773
+ value: function add(stream, isMySelf) {
774
+ var _this4 = this;
775
+ var streamCopy = this.copyStreamInfo(stream);
776
+ if (streamCopy.connectorType === FcrRoomConnectorType.PSTN) {
777
+ var handlePSTNStreamAdded = function handlePSTNStreamAdded(stream, list, limitCount, isMySelf, placement) {
778
+ var existedUserStream = list.find(function (item) {
779
+ return item.userId === stream.owner.userId && item.videoSourceType === FcrVideoSourceType.CAMERA;
780
+ });
781
+ if (existedUserStream) {
782
+ existedUserStream.setAudioStream(stream);
783
+ } else {
784
+ _this4._insertNewData(stream, list, limitCount, isMySelf, placement);
785
+ }
786
+ };
787
+ handlePSTNStreamAdded(streamCopy, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list');
788
+ handlePSTNStreamAdded(streamCopy, this.foldList, this.foldListLimitedCount, isMySelf, 'fold-list');
789
+ } else {
790
+ this._mergePstnStreamOrInsertNewData(streamCopy, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list');
791
+ this._mergePstnStreamOrInsertNewData(streamCopy, this.foldList, this.foldListLimitedCount, isMySelf, 'fold-list');
792
+ }
793
+ var hasScreenSharing = streamCopy.videoSourceType === FcrVideoSourceType.SCREEN || this.mainList.some(function (item) {
794
+ return item.hasScreenSharing && item.userId === streamCopy.owner.userId;
795
+ });
796
+ if (!hasScreenSharing) {
797
+ return;
798
+ }
799
+ this._syncHasScreenSharing(hasScreenSharing, false, streamCopy.owner.userId, this.mainList, this.mainListLimitedCount, 'main-list');
800
+ this._syncHasScreenSharing(hasScreenSharing, false, streamCopy.owner.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
801
+ }
802
+ }, {
803
+ key: "update",
804
+ value: function update(param) {
805
+ var _this5 = this;
806
+ var handleStreamInfoUpdated = function handleStreamInfoUpdated(stream, list, limitCount, placement) {
807
+ var existedUserStream = list[_this5._findItemIndexWithWindowId(stream.streamId, list)];
808
+ if (existedUserStream) {
809
+ var oldSortingPriority = existedUserStream.sortingPriority;
810
+ if (param.connectorType === FcrRoomConnectorType.PSTN) {
811
+ existedUserStream.setAudioStream(stream);
812
+ } else {
813
+ existedUserStream.setVideoStream(stream);
814
+ }
815
+ var newSortingPriority = existedUserStream.sortingPriority;
816
+ if (oldSortingPriority !== newSortingPriority) {
817
+ var index = _this5._insertByPriority(existedUserStream, list, limitCount);
818
+ _this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
819
+ }
820
+ }
821
+ };
822
+ var handleUserInfoUpdated = function handleUserInfoUpdated(user, list, limitCount, placement) {
823
+ var modifiedItems = [];
824
+ list.forEach(function (item) {
825
+ if (item.userId === user.userId) {
826
+ var oldSortingPriority = item.sortingPriority;
827
+ item.setVideoStreamOwnerInfo(user);
828
+ item.setAudioStreamOwnerInfo(user);
829
+ item.setBoardUserInfo(user);
830
+ var newSortingPriority = item.sortingPriority;
831
+ if (oldSortingPriority !== newSortingPriority) {
832
+ modifiedItems.push(item);
833
+ }
834
+ }
835
+ });
836
+ modifiedItems.forEach(function (item) {
837
+ var index = _this5._insertByPriority(item, list, limitCount);
838
+ _this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
839
+ });
840
+ };
841
+ if ('streamId' in param) {
842
+ var streamCopy = this.copyStreamInfo(param);
843
+ handleStreamInfoUpdated(streamCopy, this.mainList, this.mainListLimitedCount, 'main-list');
844
+ handleStreamInfoUpdated(streamCopy, this.foldList, this.foldListLimitedCount, 'fold-list');
845
+ } else {
846
+ handleUserInfoUpdated(param, this.mainList, this.mainListLimitedCount, 'main-list');
847
+ handleUserInfoUpdated(param, this.foldList, this.foldListLimitedCount, 'fold-list');
848
+ }
849
+ }
850
+ }, {
851
+ key: "delete",
852
+ value: function _delete(stream) {
853
+ var _this6 = this;
854
+ var streamCopy = this.copyStreamInfo(stream);
855
+ var handlePSTNStreamDeleted = function handlePSTNStreamDeleted(stream, list, placement) {
856
+ var index = _this6._findItemIndexWithAudioStreamId(stream.streamId, list);
857
+ var existedUserStream = list[index];
858
+ if (existedUserStream) {
859
+ if (existedUserStream.videoStreamId) {
860
+ existedUserStream.setAudioStream(undefined);
861
+ _this6._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
862
+ } else {
863
+ list.splice(index, 1);
864
+ _this6._observer.notifyObservers(placement === 'main-list' ? 'onMainListRemoved' : 'onFoldListRemoved', index);
865
+ }
866
+ }
867
+ };
868
+ if (stream.connectorType === FcrRoomConnectorType.PSTN) {
869
+ handlePSTNStreamDeleted(streamCopy, this.mainList, 'main-list');
870
+ handlePSTNStreamDeleted(streamCopy, this.foldList, 'fold-list');
871
+ } else {
872
+ var handleVideoStreamDeleted = function handleVideoStreamDeleted(streamId, list, placement) {
873
+ var existStreamIndex = list.findIndex(function (item) {
874
+ return item.videoStreamId === streamId;
875
+ });
876
+ if (existStreamIndex === -1) {
877
+ return;
878
+ }
879
+ list.splice(existStreamIndex, 1);
880
+ _this6._observer.notifyObservers(placement === 'main-list' ? 'onMainListRemoved' : 'onFoldListRemoved', existStreamIndex);
881
+ };
882
+ handleVideoStreamDeleted(streamCopy.streamId, this.mainList, 'main-list');
883
+ handleVideoStreamDeleted(streamCopy.streamId, this.foldList, 'fold-list');
884
+ }
885
+ // if it is the last screen share stream of the user, remove the screen sharing flag
886
+
887
+ if (stream.videoSourceType === FcrVideoSourceType.SCREEN) {
888
+ this._syncHasScreenSharing(false, false, streamCopy.owner.userId, this.mainList, this.mainListLimitedCount, 'main-list');
889
+ this._syncHasScreenSharing(false, false, streamCopy.owner.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
890
+ }
891
+ }
892
+ }, {
893
+ key: "addPin",
894
+ value: function addPin(streamId) {
895
+ var _this7 = this;
896
+ var handlePin = function handlePin(streamId, list, limitCount, placement) {
897
+ var existedUserStreamIndex = _this7._findItemIndexWithWindowId(streamId, list);
898
+ var existedUserStream = list[existedUserStreamIndex];
899
+ if (!existedUserStream || existedUserStream !== null && existedUserStream !== void 0 && existedUserStream.isPin) {
900
+ return false;
901
+ }
902
+ var currentPinStreams = list.filter(function (item) {
903
+ return item.isPin;
904
+ });
905
+ if (currentPinStreams.length >= _this7.pinLimitedCount) {
906
+ var lastPinStream = currentPinStreams[currentPinStreams.length - 1];
907
+ var _streamId = lastPinStream.videoStreamId || lastPinStream.audioStreamId;
908
+ if (_streamId) {
909
+ _this7.removePin(_streamId);
910
+ }
911
+ }
912
+ existedUserStream.setPin(true);
913
+ _this7._insertBeginningByPriority(existedUserStream, list, limitCount);
914
+ _this7._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
915
+ return true;
916
+ };
917
+ var success = handlePin(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
918
+ handlePin(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
919
+ return success;
920
+ }
921
+ }, {
922
+ key: "removePin",
923
+ value: function removePin(streamId) {
924
+ var _this8 = this;
925
+ var handleRemovePin = function handleRemovePin(streamId, list, limitCount, placement) {
926
+ var existedUserStreamIndex = _this8._findItemIndexWithWindowId(streamId, list);
927
+ var existedUserStream = list[existedUserStreamIndex];
928
+ if (!(existedUserStream !== null && existedUserStream !== void 0 && existedUserStream.isPin)) {
929
+ return;
930
+ }
931
+ existedUserStream.setPin(false);
932
+ _this8._insertByPriority(existedUserStream, list, limitCount);
933
+ _this8._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
934
+ return true;
935
+ };
936
+ var removePinMainRes = handleRemovePin(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
937
+ var removePinFoldRes = handleRemovePin(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
938
+ return removePinMainRes && removePinFoldRes;
939
+ }
940
+ }, {
941
+ key: "setSpeakerSpotlight",
942
+ value: function setSpeakerSpotlight(streamId) {
943
+ var _this9 = this;
944
+ var checkStreamExist = function checkStreamExist(streamId) {
945
+ return _this9._findItemIndexWithWindowId(streamId, _this9.mainList) !== -1 && _this9._findItemIndexWithWindowId(streamId, _this9.foldList) !== -1;
946
+ };
947
+ if (!checkStreamExist(streamId)) return;
948
+ var isRefreshSpotlight = this._spotlightPool.streams.has(streamId);
949
+ var success = this._spotlightPool.add(streamId);
950
+ if (!success || isRefreshSpotlight) {
951
+ return;
952
+ }
953
+ var setSpeakerSpotlight = function setSpeakerSpotlight(streamId, list, limitCount, placement) {
954
+ var existedUserStreamIndex = _this9._findItemIndexWithWindowId(streamId, list);
955
+ var existedUserStream = list[existedUserStreamIndex];
956
+ if (existedUserStream) {
957
+ existedUserStream.setSpeakerSpotlight(true);
958
+ }
959
+ var isSpeakerSpotlightSortingPriority = existedUserStream.sortingPriority === (placement === 'main-list' ? FcrUIVideoWindowMainSortingPriority.SPEAKER_SPOTLIGHT : FcrUIVideoWindowFoldSortingPriority.FOCUS);
960
+ if (isSpeakerSpotlightSortingPriority) {
961
+ _this9._insertBeginningByPriority(existedUserStream, list, limitCount);
962
+ }
963
+ list.forEach(function (item) {
964
+ if (item.needToSort) {
965
+ _this9._insertByPriority(item, list, limitCount);
966
+ }
967
+ });
968
+ _this9._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
969
+ };
970
+ setSpeakerSpotlight(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
971
+ setSpeakerSpotlight(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
972
+ this._observer.notifyObservers('onSpotlightAdded', streamId);
973
+ this.spotlightStreamId = streamId;
974
+ }
975
+ }, {
976
+ key: "toggleMainStream",
977
+ value: function toggleMainStream(windowId) {
978
+ var streamIndex = this._findItemIndexWithWindowId(windowId, this.mainList);
979
+ if (streamIndex === -1) {
980
+ return false;
981
+ }
982
+ var streamData = this.mainList[streamIndex];
983
+ // bring the stream to the start of the list
984
+ this.mainList.splice(streamIndex, 1);
985
+ this.mainList.unshift(streamData);
986
+ this._observer.notifyObservers('onMainListUpdated', streamIndex);
987
+ return true;
988
+ }
989
+ }, {
990
+ key: "clearSpeakerSpotlight",
991
+ value: function clearSpeakerSpotlight() {
992
+ this._spotlightPool.clear();
993
+ }
994
+ }, {
995
+ key: "addObserver",
996
+ value: function addObserver(observer) {
997
+ this._observer.addObserver(observer);
998
+ }
999
+ }, {
1000
+ key: "removeObserver",
1001
+ value: function removeObserver(observer) {
1002
+ this._observer.removeObserver(observer);
1003
+ }
1004
+ }, {
1005
+ key: "release",
1006
+ value: function release() {
1007
+ this._spotlightPool.clear();
1008
+ }
1009
+ }, {
1010
+ key: "copyStreamInfo",
1011
+ value: function copyStreamInfo(stream) {
1012
+ var streamCopy = Object.assign({}, stream);
1013
+ return streamCopy;
1014
+ }
1015
+ }, {
1016
+ key: "_syncHasScreenSharing",
1017
+ value: function _syncHasScreenSharing(enable, hasBoardSharing, userId, list, limitCount, placement) {
1018
+ var _this0 = this;
1019
+ if (enable) {
1020
+ list.forEach(function (item, index) {
1021
+ if (item.userId === userId) {
1022
+ var itemIndex = index;
1023
+ var originalPriority = item.sortingPriority;
1024
+ item.setHasScreenSharing(enable);
1025
+ item.setHasBoardSharing(hasBoardSharing);
1026
+ if (item.sortingPriority !== originalPriority) {
1027
+ itemIndex = _this0._insertByPriority(item, list, limitCount);
1028
+ }
1029
+ _this0._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', itemIndex);
1030
+ var hasLoopbackAudioStream = _this0 === null || _this0 === void 0 ? void 0 : _this0.mainList.some(function (item) {
1031
+ return item.userId === userId && item.hasScreenSharing && item.hasLoopbackAudioStream;
1032
+ });
1033
+ item.setHasLoopbackSharing(hasLoopbackAudioStream);
1034
+ }
1035
+ });
1036
+ } else {
1037
+ var remainingShare = list.some(function (item) {
1038
+ return item.userId === userId && (item.type === FcrUIWindowType.BOARD || item.videoSourceType === FcrVideoSourceType.SCREEN);
1039
+ });
1040
+ if (!remainingShare) {
1041
+ list.forEach(function (item) {
1042
+ if (item.userId === userId) {
1043
+ item.setHasScreenSharing(enable);
1044
+ item.setHasBoardSharing(hasBoardSharing);
1045
+ var index = _this0._insertByPriority(item, list, limitCount);
1046
+ _this0._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
1047
+ }
1048
+ });
1049
+ }
1050
+ }
1051
+ }
1052
+ }, {
1053
+ key: "_insertByPriority",
1054
+ value: function _insertByPriority(data, list, limitCount) {
1055
+ var insertIndex = -1;
1056
+ if (data.sortingPriority >= FcrUIVideoWindowMainSortingPriority.FOCUS) {
1057
+ insertIndex = this._insertBeginningByPriority(data, list, limitCount);
1058
+ } else {
1059
+ insertIndex = this._insertEndByPriority(data, list, limitCount);
1060
+ }
1061
+ if (data.hasVideoStream) {
1062
+ data.setIsFirstCameraOpen(true);
1063
+ }
1064
+ return insertIndex;
1065
+ }
1066
+ }, {
1067
+ key: "_insertBeginningByPriority",
1068
+ value: function _insertBeginningByPriority(data, list, limitedCount) {
1069
+ var currentIndex = this._findItemIndexWithWindowId(data.windowId, list);
1070
+ if (currentIndex !== -1) {
1071
+ list.splice(currentIndex, 1);
1072
+ }
1073
+ var index = this._findInsertBeginningIndex(data.sortingPriority, list);
1074
+ list.splice(index, 0, data);
1075
+ if (list.length > limitedCount) {
1076
+ list.splice(limitedCount);
1077
+ }
1078
+ data.needToSort = false;
1079
+ return index;
1080
+ }
1081
+ }, {
1082
+ key: "_insertEndByPriority",
1083
+ value: function _insertEndByPriority(data, list, limitedCount) {
1084
+ var currentIndex = this._findItemIndexWithWindowId(data.windowId, list);
1085
+ if (currentIndex !== -1) {
1086
+ list.splice(currentIndex, 1);
1087
+ }
1088
+ var index = this._findInsertEndIndex(data.sortingPriority, list);
1089
+ list.splice(index, 0, data);
1090
+ if (list.length > limitedCount) {
1091
+ list.splice(limitedCount);
1092
+ }
1093
+ data.needToSort = false;
1094
+ return index;
1095
+ }
1096
+ }, {
1097
+ key: "_findInsertBeginningIndex",
1098
+ value: function _findInsertBeginningIndex(priority, list) {
1099
+ // list is sorted by priority
1100
+ var index = list.findIndex(function (item) {
1101
+ return item.sortingPriority <= priority;
1102
+ });
1103
+ if (index === -1) {
1104
+ return list.length;
1105
+ } else {
1106
+ return index;
1107
+ }
1108
+ }
1109
+ }, {
1110
+ key: "_findInsertEndIndex",
1111
+ value: function _findInsertEndIndex(priority, list) {
1112
+ // list is sorted by priority
1113
+ var index = list.findLastIndex(function (item) {
1114
+ return item.sortingPriority >= priority;
1115
+ });
1116
+ if (index === -1) {
1117
+ return 0;
1118
+ } else {
1119
+ return index + 1;
1120
+ }
1121
+ }
1122
+ }, {
1123
+ key: "_findItemIndexWithWindowId",
1124
+ value: function _findItemIndexWithWindowId(windowId, list) {
1125
+ return list.findIndex(function (item) {
1126
+ return item.windowId === windowId;
1127
+ });
1128
+ }
1129
+ }, {
1130
+ key: "_findItemIndexWithAudioStreamId",
1131
+ value: function _findItemIndexWithAudioStreamId(audioStreamId, list) {
1132
+ return list.findIndex(function (item) {
1133
+ return item.audioStreamId === audioStreamId;
1134
+ });
1135
+ }
1136
+ }, {
1137
+ key: "_insertBoard",
1138
+ value: function _insertBoard(userInfo, list, limitCount, isMySelf, placement) {
1139
+ var canEdit = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
1140
+ var windowData = new FcrUIVideoWindowDataImpl(FcrUIWindowType.BOARD, {
1141
+ boardUserInfo: userInfo
1142
+ }, placement, isMySelf, this.layoutType, this.spotlightEnabled, canEdit);
1143
+ var insertIndex = this._insertByPriority(windowData, list, limitCount);
1144
+ this._observer.notifyObservers(placement === 'main-list' ? 'onMainListAdded' : 'onFoldListAdded', insertIndex);
1145
+ }
1146
+ }, {
1147
+ key: "_insertNewData",
1148
+ value: function _insertNewData(stream, list, limitCount, isMySelf, placement) {
1149
+ var videoWindowData = new FcrUIVideoWindowDataImpl(FcrUIWindowType.VIDEO, stream.connectorType === FcrRoomConnectorType.PSTN ? {
1150
+ audioStream: stream
1151
+ } : {
1152
+ videoStream: stream
1153
+ }, placement, isMySelf, this.layoutType, this.spotlightEnabled);
1154
+ var insertIndex = this._insertByPriority(videoWindowData, list, limitCount);
1155
+ this._observer.notifyObservers(placement === 'main-list' ? 'onMainListAdded' : 'onFoldListAdded', insertIndex);
1156
+ }
1157
+ }]);
1158
+ }();
1159
+ _FcrUIVideoWindowDataSourceImpl = FcrUIVideoWindowDataSourceImpl;
1160
+ var _applyDecs$e2 = _slicedToArray(_applyDecs(_FcrUIVideoWindowDataSourceImpl, [[observable, 1, "spotlightEnabled"], [observable, 1, "layoutType"], [observable, 1, "manualLayout"], [observable, 1, "pinLimitedCount"], [observable, 1, "mainListLimitedCount"], [observable, 1, "foldListLimitedCount"], [observable, 1, "mainList"], [observable, 1, "foldList"], [observable, 1, "spotlightStreamId"], [computed, 3, "shouldHideNonVideoParticipants"], [_setSpotlightEnabledDecs2, 18, "setSpotlightEnabled"], [_setLayoutDecs, 18, "setLayout"], [_onSpotlightRemovedDecs, 18, "onSpotlightRemoved"], [_resetListDecs, 18, "resetList"], [_addBoardDecs, 18, "addBoard"], [_updateBoardDecs, 18, "updateBoard"], [_removeBoardDecs, 18, "removeBoard"], [_mergePstnStreamOrInsertNewDataDecs, 18, "_mergePstnStreamOrInsertNewData"], [_addDecs, 18, "add"], [_updateDecs, 18, "update"], [_deleteDecs, 18, "delete"], [_addPinDecs, 18, "addPin"], [_removePinDecs, 18, "removePin"], [_setSpeakerSpotlightDecs2, 18, "setSpeakerSpotlight"], [_toggleMainStreamDecs, 18, "toggleMainStream"], [_insertBeginningByPriorityDecs, 18, "_insertBeginningByPriority"], [_insertEndByPriorityDecs, 18, "_insertEndByPriority"], [_findInsertBeginningIndexDecs, 18, "_findInsertBeginningIndex"], [_findInsertEndIndexDecs, 18, "_findInsertEndIndex"], [_insertBoardDecs, 18, "_insertBoard"], [_insertNewDataDecs, 18, "_insertNewData"]], []).e, 10);
1161
+ _init_spotlightEnabled = _applyDecs$e2[0];
1162
+ _init_layoutType = _applyDecs$e2[1];
1163
+ _init_manualLayout = _applyDecs$e2[2];
1164
+ _init_pinLimitedCount = _applyDecs$e2[3];
1165
+ _init_mainListLimitedCount = _applyDecs$e2[4];
1166
+ _init_foldListLimitedCount = _applyDecs$e2[5];
1167
+ _init_mainList = _applyDecs$e2[6];
1168
+ _init_foldList = _applyDecs$e2[7];
1169
+ _init_spotlightStreamId = _applyDecs$e2[8];
1170
+ _initProto2 = _applyDecs$e2[9];
1171
+ export var FcrUISpeakerSpotlightPool = /*#__PURE__*/function () {
1172
+ function FcrUISpeakerSpotlightPool() {
1173
+ _classCallCheck(this, FcrUISpeakerSpotlightPool);
1174
+ _defineProperty(this, "streams", new Map());
1175
+ _defineProperty(this, "limitCount", 1);
1176
+ _defineProperty(this, "duration", 2);
1177
+ _defineProperty(this, "_timer", null);
1178
+ _defineProperty(this, "_observer", new AgoraObservable());
1179
+ this._scan = this._scan.bind(this);
1180
+ }
1181
+ return _createClass(FcrUISpeakerSpotlightPool, [{
1182
+ key: "add",
1183
+ value: function add(streamId) {
1184
+ if (this.streams.size >= this.limitCount && !this.streams.has(streamId)) {
1185
+ return false;
1186
+ }
1187
+ this.streams.set(streamId, Date.now());
1188
+ this._scan();
1189
+ return true;
1190
+ }
1191
+ }, {
1192
+ key: "_scan",
1193
+ value: function _scan() {
1194
+ var _this1 = this;
1195
+ if (this._timer) {
1196
+ window.clearInterval(this._timer);
1197
+ this._timer = null;
1198
+ }
1199
+ this._timer = window.setInterval(function () {
1200
+ var now = Date.now();
1201
+ var _iterator = _createForOfIteratorHelper(_this1.streams),
1202
+ _step;
1203
+ try {
1204
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1205
+ var _step$value = _slicedToArray(_step.value, 2),
1206
+ _streamId2 = _step$value[0],
1207
+ time = _step$value[1];
1208
+ if (now - time - _this1.duration * 1000 >= 0) {
1209
+ _this1.streams["delete"](_streamId2);
1210
+ _this1._observer.notifyObservers('onRemoved', _streamId2);
1211
+ }
1212
+ }
1213
+ } catch (err) {
1214
+ _iterator.e(err);
1215
+ } finally {
1216
+ _iterator.f();
1217
+ }
1218
+ if (_this1.streams.size === 0) {
1219
+ _this1._timer && window.clearInterval(_this1._timer);
1220
+ _this1._timer = null;
1221
+ }
1222
+ }, 1000);
1223
+ }
1224
+ }, {
1225
+ key: "clear",
1226
+ value: function clear() {
1227
+ var _this10 = this;
1228
+ this.streams.forEach(function (_, streamId) {
1229
+ _this10._observer.notifyObservers('onRemoved', streamId);
1230
+ });
1231
+ this.streams.clear();
1232
+ if (this._timer) {
1233
+ window.clearInterval(this._timer);
1234
+ this._timer = null;
1235
+ }
1236
+ }
1237
+ }, {
1238
+ key: "addObserver",
1239
+ value: function addObserver(observer) {
1240
+ this._observer.addObserver(observer);
1241
+ }
1242
+ }, {
1243
+ key: "removeObserver",
1244
+ value: function removeObserver(observer) {
1245
+ this._observer.removeObserver(observer);
1246
+ }
1247
+ }]);
1248
+ }();