fcr-ui-scene 1.0.20 → 3.1.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (813) hide show
  1. package/lib/base.d.ts +13 -0
  2. package/lib/base.js +78 -0
  3. package/lib/common/device-store.d.ts +140 -0
  4. package/lib/common/device-store.js +1378 -0
  5. package/lib/common/device-stream-store.d.ts +36 -0
  6. package/lib/common/device-stream-store.js +372 -0
  7. package/lib/common/event-store.d.ts +118 -0
  8. package/lib/common/event-store.js +235 -0
  9. package/lib/common/security-store.d.ts +123 -0
  10. package/lib/common/security-store.js +978 -0
  11. package/lib/creator.d.ts +8 -0
  12. package/lib/creator.js +37 -0
  13. package/lib/electron/app.d.ts +1 -0
  14. package/lib/electron/app.js +140 -0
  15. package/lib/electron/default-options.d.ts +2 -0
  16. package/lib/electron/default-options.js +26 -0
  17. package/lib/electron/env.d.ts +5 -0
  18. package/lib/electron/env.js +13 -0
  19. package/lib/electron/index.d.ts +2 -0
  20. package/lib/electron/index.js +20 -0
  21. package/lib/electron/injections.d.ts +45 -0
  22. package/lib/electron/injections.js +689 -0
  23. package/lib/electron/main.d.ts +2 -0
  24. package/lib/electron/main.js +63 -0
  25. package/lib/electron/plugins/screenshot.d.ts +2 -0
  26. package/lib/electron/plugins/screenshot.js +49 -0
  27. package/lib/electron/preload.js +35 -0
  28. package/lib/electron/tools.d.ts +5 -0
  29. package/lib/electron/tools.js +57 -0
  30. package/lib/electron/window.d.ts +12 -0
  31. package/lib/electron/window.js +107 -0
  32. package/lib/fragments/base.d.ts +10 -0
  33. package/lib/fragments/base.js +44 -0
  34. package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
  35. package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
  36. package/lib/fragments/control-bar/context.d.ts +3 -0
  37. package/lib/fragments/control-bar/context.js +9 -0
  38. package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
  39. package/lib/fragments/control-bar/control-bar-store.js +1275 -0
  40. package/lib/fragments/control-bar/device/index.d.ts +31 -0
  41. package/lib/fragments/control-bar/device/index.js +203 -0
  42. package/lib/fragments/control-bar/index.css +276 -0
  43. package/lib/fragments/control-bar/index.d.ts +26 -0
  44. package/lib/fragments/control-bar/index.js +223 -0
  45. package/lib/fragments/control-bar/more-actions/index.css +19 -0
  46. package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
  47. package/lib/fragments/control-bar/more-actions/index.js +259 -0
  48. package/lib/fragments/control-bar/security-content/index.css +24 -0
  49. package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
  50. package/lib/fragments/control-bar/security-content/index.js +145 -0
  51. package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
  52. package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
  53. package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
  54. package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
  55. package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
  56. package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
  57. package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
  58. package/lib/fragments/control-bar/view.d.ts +1 -0
  59. package/lib/fragments/control-bar/view.js +321 -0
  60. package/lib/fragments/live-streaming/context.d.ts +3 -0
  61. package/lib/fragments/live-streaming/context.js +9 -0
  62. package/lib/fragments/live-streaming/index.css +11 -0
  63. package/lib/fragments/live-streaming/index.d.ts +11 -0
  64. package/lib/fragments/live-streaming/index.js +79 -0
  65. package/lib/fragments/live-streaming/store.d.ts +21 -0
  66. package/lib/fragments/live-streaming/store.js +228 -0
  67. package/lib/fragments/live-streaming/view.d.ts +2 -0
  68. package/lib/fragments/live-streaming/view.js +44 -0
  69. package/lib/fragments/share-screen-selection/context.d.ts +3 -0
  70. package/lib/fragments/share-screen-selection/context.js +9 -0
  71. package/lib/fragments/share-screen-selection/index.css +66 -0
  72. package/lib/fragments/share-screen-selection/index.d.ts +9 -0
  73. package/lib/fragments/share-screen-selection/index.js +94 -0
  74. package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
  75. package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
  76. package/lib/fragments/share-screen-selection/selection-store.d.ts +36 -0
  77. package/lib/fragments/share-screen-selection/selection-store.js +351 -0
  78. package/lib/fragments/share-screen-selection/tips.css +33 -0
  79. package/lib/fragments/share-screen-selection/view.d.ts +9 -0
  80. package/lib/fragments/share-screen-selection/view.js +255 -0
  81. package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
  82. package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
  83. package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
  84. package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
  85. package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
  86. package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
  87. package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
  88. package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
  89. package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
  90. package/lib/fragments/toolbar/components/color-picker.js +127 -0
  91. package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
  92. package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
  93. package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +1 -0
  94. package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
  95. package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
  96. package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
  97. package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
  98. package/lib/fragments/toolbar/components/fold-icon.js +41 -0
  99. package/lib/fragments/toolbar/components/history.d.ts +2 -0
  100. package/lib/fragments/toolbar/components/history.js +46 -0
  101. package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
  102. package/lib/fragments/toolbar/components/pen-picker.js +132 -0
  103. package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
  104. package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
  105. package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
  106. package/lib/fragments/toolbar/components/shape-picker.js +146 -0
  107. package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
  108. package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
  109. package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
  110. package/lib/fragments/toolbar/components/wrapper.js +138 -0
  111. package/lib/fragments/toolbar/hooks.d.ts +16 -0
  112. package/lib/fragments/toolbar/hooks.js +251 -0
  113. package/lib/fragments/toolbar/index.d.ts +12 -0
  114. package/lib/fragments/toolbar/index.js +80 -0
  115. package/lib/fragments/toolbar/store.d.ts +62 -0
  116. package/lib/fragments/toolbar/store.js +279 -0
  117. package/lib/fragments/toolbar/style.css +347 -0
  118. package/lib/fragments/toolbar/view.d.ts +1 -0
  119. package/lib/fragments/toolbar/view.js +34 -0
  120. package/lib/global.d.ts +8 -0
  121. package/lib/hooks/i18n.d.ts +4 -0
  122. package/lib/hooks/i18n.js +18 -0
  123. package/lib/hooks/meeting-time.d.ts +15 -0
  124. package/lib/hooks/meeting-time.js +92 -0
  125. package/lib/index.d.ts +8 -0
  126. package/lib/index.js +52 -0
  127. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
  128. package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
  129. package/lib/modules/action-bar/board/index.d.ts +4 -0
  130. package/lib/modules/action-bar/board/index.js +34 -0
  131. package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
  132. package/lib/modules/action-bar/breakout-room/index.js +32 -0
  133. package/lib/modules/action-bar/chat/index.css +80 -0
  134. package/lib/modules/action-bar/chat/index.d.ts +5 -0
  135. package/lib/modules/action-bar/chat/index.js +152 -0
  136. package/lib/modules/action-bar/context.d.ts +3 -0
  137. package/lib/modules/action-bar/context.js +9 -0
  138. package/lib/modules/action-bar/device/index.css +157 -0
  139. package/lib/modules/action-bar/device/index.d.ts +8 -0
  140. package/lib/modules/action-bar/device/index.js +611 -0
  141. package/lib/modules/action-bar/index.css +212 -0
  142. package/lib/modules/action-bar/index.d.ts +25 -0
  143. package/lib/modules/action-bar/index.dev.d.ts +1 -0
  144. package/lib/modules/action-bar/index.dev.js +96 -0
  145. package/lib/modules/action-bar/index.js +89 -0
  146. package/lib/modules/action-bar/item-placement.d.ts +8 -0
  147. package/lib/modules/action-bar/item-placement.js +18 -0
  148. package/lib/modules/action-bar/item.d.ts +27 -0
  149. package/lib/modules/action-bar/item.js +154 -0
  150. package/lib/modules/action-bar/leave/assign-host.d.ts +8 -0
  151. package/lib/modules/action-bar/leave/assign-host.js +64 -0
  152. package/lib/modules/action-bar/leave/index.css +116 -0
  153. package/lib/modules/action-bar/leave/index.d.ts +3 -0
  154. package/lib/modules/action-bar/leave/index.js +110 -0
  155. package/lib/modules/action-bar/leave/leave-meeting.d.ts +7 -0
  156. package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
  157. package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
  158. package/lib/modules/action-bar/live-streaming/index.js +39 -0
  159. package/lib/modules/action-bar/more/index.css +114 -0
  160. package/lib/modules/action-bar/more/index.d.ts +5 -0
  161. package/lib/modules/action-bar/more/index.js +80 -0
  162. package/lib/modules/action-bar/more/poppover-content.d.ts +9 -0
  163. package/lib/modules/action-bar/more/poppover-content.js +369 -0
  164. package/lib/modules/action-bar/participants/index.css +9 -0
  165. package/lib/modules/action-bar/participants/index.d.ts +5 -0
  166. package/lib/modules/action-bar/participants/index.js +75 -0
  167. package/lib/modules/action-bar/record/index.css +39 -0
  168. package/lib/modules/action-bar/record/index.d.ts +5 -0
  169. package/lib/modules/action-bar/record/index.js +161 -0
  170. package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
  171. package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
  172. package/lib/modules/action-bar/respond/index.d.ts +4 -0
  173. package/lib/modules/action-bar/respond/index.js +32 -0
  174. package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
  175. package/lib/modules/action-bar/screen-share/index.js +97 -0
  176. package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
  177. package/lib/modules/action-bar/screen-share/submenu.js +159 -0
  178. package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
  179. package/lib/modules/action-bar/security/drop-menu.js +164 -0
  180. package/lib/modules/action-bar/security/index.d.ts +4 -0
  181. package/lib/modules/action-bar/security/index.js +50 -0
  182. package/lib/modules/action-bar/settings/index.d.ts +4 -0
  183. package/lib/modules/action-bar/settings/index.js +41 -0
  184. package/lib/modules/action-bar/smaller.d.ts +1 -0
  185. package/lib/modules/action-bar/smaller.js +52 -0
  186. package/lib/modules/action-bar/store.d.ts +177 -0
  187. package/lib/modules/action-bar/store.js +1179 -0
  188. package/lib/modules/action-bar/type.d.ts +6 -0
  189. package/lib/modules/action-bar/type.js +13 -0
  190. package/lib/modules/action-bar/view.d.ts +5 -0
  191. package/lib/modules/action-bar/view.js +80 -0
  192. package/lib/modules/audio-stream/index.d.ts +21 -0
  193. package/lib/modules/audio-stream/index.js +119 -0
  194. package/lib/modules/chat/chat-bar/index.css +79 -0
  195. package/lib/modules/chat/chat-bar/index.d.ts +11 -0
  196. package/lib/modules/chat/chat-bar/index.js +125 -0
  197. package/lib/modules/chat/chat-select/index.css +156 -0
  198. package/lib/modules/chat/chat-select/index.d.ts +13 -0
  199. package/lib/modules/chat/chat-select/index.js +186 -0
  200. package/lib/modules/chat/chat.d.ts +12 -0
  201. package/lib/modules/chat/chat.js +295 -0
  202. package/lib/modules/chat/contex.d.ts +3 -0
  203. package/lib/modules/chat/contex.js +9 -0
  204. package/lib/modules/chat/demo-wrapper.d.ts +2 -0
  205. package/lib/modules/chat/demo-wrapper.js +42 -0
  206. package/lib/modules/chat/index.css +17 -0
  207. package/lib/modules/chat/index.d.ts +29 -0
  208. package/lib/modules/chat/index.dev.d.ts +1 -0
  209. package/lib/modules/chat/index.dev.js +58 -0
  210. package/lib/modules/chat/index.js +189 -0
  211. package/lib/modules/chat/message-list.d.ts +22 -0
  212. package/lib/modules/chat/message-list.js +595 -0
  213. package/lib/modules/chat/mock.d.ts +2 -0
  214. package/lib/modules/chat/mock.js +283 -0
  215. package/lib/modules/chat/store.d.ts +132 -0
  216. package/lib/modules/chat/store.js +923 -0
  217. package/lib/modules/chat/util.d.ts +6 -0
  218. package/lib/modules/chat/util.js +69 -0
  219. package/lib/modules/connection-gateway/components/computer/index.css +11 -0
  220. package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
  221. package/lib/modules/connection-gateway/components/computer/index.js +66 -0
  222. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
  223. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
  224. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
  225. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
  226. package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
  227. package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
  228. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
  229. package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
  230. package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
  231. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
  232. package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
  233. package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
  234. package/lib/modules/connection-gateway/components/phone/index.css +49 -0
  235. package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
  236. package/lib/modules/connection-gateway/components/phone/index.js +181 -0
  237. package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
  238. package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
  239. package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
  240. package/lib/modules/connection-gateway/index.css +6 -0
  241. package/lib/modules/connection-gateway/index.d.ts +16 -0
  242. package/lib/modules/connection-gateway/index.js +67 -0
  243. package/lib/modules/connection-gateway/store.d.ts +80 -0
  244. package/lib/modules/connection-gateway/store.js +698 -0
  245. package/lib/modules/connection-gateway/view.d.ts +1 -0
  246. package/lib/modules/connection-gateway/view.js +22 -0
  247. package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
  248. package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
  249. package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
  250. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
  251. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +2 -0
  252. package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
  253. package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
  254. package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
  255. package/lib/modules/device-pretest/context.d.ts +3 -0
  256. package/lib/modules/device-pretest/context.js +9 -0
  257. package/lib/modules/device-pretest/index.css +127 -0
  258. package/lib/modules/device-pretest/index.d.ts +13 -0
  259. package/lib/modules/device-pretest/index.js +242 -0
  260. package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
  261. package/lib/modules/device-pretest/settings/beauty.js +103 -0
  262. package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
  263. package/lib/modules/device-pretest/settings/camera-select.js +53 -0
  264. package/lib/modules/device-pretest/settings/index.css +15 -0
  265. package/lib/modules/device-pretest/settings/video-effect.d.ts +12 -0
  266. package/lib/modules/device-pretest/settings/video-effect.js +50 -0
  267. package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
  268. package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
  269. package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
  270. package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
  271. package/lib/modules/device-pretest/store.d.ts +69 -0
  272. package/lib/modules/device-pretest/store.js +413 -0
  273. package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
  274. package/lib/modules/dialog/components/chat/electron.js +59 -0
  275. package/lib/modules/dialog/components/chat/index.d.ts +7 -0
  276. package/lib/modules/dialog/components/chat/index.js +66 -0
  277. package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
  278. package/lib/modules/dialog/components/confirm/electron.js +84 -0
  279. package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
  280. package/lib/modules/dialog/components/confirm/index.js +75 -0
  281. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
  282. package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
  283. package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
  284. package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
  285. package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
  286. package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
  287. package/lib/modules/dialog/components/participant/electron.js +85 -0
  288. package/lib/modules/dialog/components/participant/index.d.ts +3 -0
  289. package/lib/modules/dialog/components/participant/index.js +61 -0
  290. package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
  291. package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
  292. package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
  293. package/lib/modules/dialog/components/whiteboard/index.js +74 -0
  294. package/lib/modules/dialog/context.d.ts +3 -0
  295. package/lib/modules/dialog/context.js +9 -0
  296. package/lib/modules/dialog/dialogs.d.ts +11 -0
  297. package/lib/modules/dialog/dialogs.js +376 -0
  298. package/lib/modules/dialog/index.css +55 -0
  299. package/lib/modules/dialog/index.d.ts +29 -0
  300. package/lib/modules/dialog/index.js +80 -0
  301. package/lib/modules/dialog/store.d.ts +82 -0
  302. package/lib/modules/dialog/store.js +525 -0
  303. package/lib/modules/dialog/view.d.ts +5 -0
  304. package/lib/modules/dialog/view.js +30 -0
  305. package/lib/modules/event-toast/context.d.ts +3 -0
  306. package/lib/modules/event-toast/context.js +9 -0
  307. package/lib/modules/event-toast/index.d.ts +10 -0
  308. package/lib/modules/event-toast/index.js +41 -0
  309. package/lib/modules/event-toast/store.d.ts +9 -0
  310. package/lib/modules/event-toast/store.js +76 -0
  311. package/lib/modules/event-toast/view.d.ts +1 -0
  312. package/lib/modules/event-toast/view.js +14 -0
  313. package/lib/modules/invite/context.d.ts +3 -0
  314. package/lib/modules/invite/context.js +9 -0
  315. package/lib/modules/invite/index.css +318 -0
  316. package/lib/modules/invite/index.d.ts +13 -0
  317. package/lib/modules/invite/index.js +51 -0
  318. package/lib/modules/invite/pstn-invite.d.ts +2 -0
  319. package/lib/modules/invite/pstn-invite.js +271 -0
  320. package/lib/modules/invite/store.d.ts +71 -0
  321. package/lib/modules/invite/store.js +472 -0
  322. package/lib/modules/invite/view.d.ts +1 -0
  323. package/lib/modules/invite/view.js +47 -0
  324. package/lib/modules/invite/voip-invite.d.ts +2 -0
  325. package/lib/modules/invite/voip-invite.js +294 -0
  326. package/lib/modules/layout/components/Aside.d.ts +7 -0
  327. package/lib/modules/layout/components/Aside.js +144 -0
  328. package/lib/modules/layout/components/Carousel.d.ts +1 -0
  329. package/lib/modules/layout/components/Carousel.js +271 -0
  330. package/lib/modules/layout/components/Gallery.d.ts +1 -0
  331. package/lib/modules/layout/components/Gallery.js +360 -0
  332. package/lib/modules/layout/components/Layout.d.ts +2 -0
  333. package/lib/modules/layout/components/Layout.js +160 -0
  334. package/lib/modules/layout/components/index.css +608 -0
  335. package/lib/modules/layout/components/index.d.ts +5 -0
  336. package/lib/modules/layout/components/index.js +55 -0
  337. package/lib/modules/layout/components/utils.d.ts +1 -0
  338. package/lib/modules/layout/components/utils.js +10 -0
  339. package/lib/modules/layout/context.d.ts +3 -0
  340. package/lib/modules/layout/context.js +9 -0
  341. package/lib/modules/layout/index.css +27 -0
  342. package/lib/modules/layout/index.d.ts +10 -0
  343. package/lib/modules/layout/index.dev.d.ts +1 -0
  344. package/lib/modules/layout/index.dev.js +378 -0
  345. package/lib/modules/layout/index.js +72 -0
  346. package/lib/modules/layout/member-window/index.css +321 -0
  347. package/lib/modules/layout/member-window/index.d.ts +67 -0
  348. package/lib/modules/layout/member-window/index.js +730 -0
  349. package/lib/modules/layout/store.d.ts +177 -0
  350. package/lib/modules/layout/store.js +1278 -0
  351. package/lib/modules/layout/type.d.ts +64 -0
  352. package/lib/modules/layout/type.js +52 -0
  353. package/lib/modules/layout/video-window-datasource.d.ts +119 -0
  354. package/lib/modules/layout/video-window-datasource.js +1031 -0
  355. package/lib/modules/layout/view.d.ts +2 -0
  356. package/lib/modules/layout/view.js +10 -0
  357. package/lib/modules/live-streaming/context.d.ts +3 -0
  358. package/lib/modules/live-streaming/context.js +9 -0
  359. package/lib/modules/live-streaming/index.css +0 -0
  360. package/lib/modules/live-streaming/index.d.ts +13 -0
  361. package/lib/modules/live-streaming/index.dev.d.ts +1 -0
  362. package/lib/modules/live-streaming/index.dev.js +59 -0
  363. package/lib/modules/live-streaming/index.js +76 -0
  364. package/lib/modules/live-streaming/store.d.ts +38 -0
  365. package/lib/modules/live-streaming/store.js +360 -0
  366. package/lib/modules/live-streaming/view.d.ts +1 -0
  367. package/lib/modules/live-streaming/view.js +33 -0
  368. package/lib/modules/participant/attendee/index.css +14 -0
  369. package/lib/modules/participant/attendee/index.d.ts +19 -0
  370. package/lib/modules/participant/attendee/index.js +280 -0
  371. package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
  372. package/lib/modules/participant/attendee/participants-more-action.js +275 -0
  373. package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
  374. package/lib/modules/participant/attendee/user-more-actions.js +76 -0
  375. package/lib/modules/participant/can-moveable/index.d.ts +1 -0
  376. package/lib/modules/participant/can-moveable/index.js +68 -0
  377. package/lib/modules/participant/context.d.ts +3 -0
  378. package/lib/modules/participant/context.js +9 -0
  379. package/lib/modules/participant/index.css +58 -0
  380. package/lib/modules/participant/index.d.ts +25 -0
  381. package/lib/modules/participant/index.dev.d.ts +1 -0
  382. package/lib/modules/participant/index.dev.js +98 -0
  383. package/lib/modules/participant/index.js +93 -0
  384. package/lib/modules/participant/member-list-data-source.d.ts +28 -0
  385. package/lib/modules/participant/member-list-data-source.js +261 -0
  386. package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
  387. package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
  388. package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
  389. package/lib/modules/participant/store.d.ts +145 -0
  390. package/lib/modules/participant/store.js +1334 -0
  391. package/lib/modules/participant/type.d.ts +34 -0
  392. package/lib/modules/participant/type.js +22 -0
  393. package/lib/modules/participant/view.d.ts +11 -0
  394. package/lib/modules/participant/view.js +260 -0
  395. package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
  396. package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
  397. package/lib/modules/setting/audio-settings/index.css +144 -0
  398. package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
  399. package/lib/modules/setting/common/advance-link.js +27 -0
  400. package/lib/modules/setting/common/index.css +26 -0
  401. package/lib/modules/setting/common/useNamespace.d.ts +15 -0
  402. package/lib/modules/setting/common/useNamespace.js +66 -0
  403. package/lib/modules/setting/config.d.ts +16 -0
  404. package/lib/modules/setting/config.js +17 -0
  405. package/lib/modules/setting/context.d.ts +3 -0
  406. package/lib/modules/setting/context.js +9 -0
  407. package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
  408. package/lib/modules/setting/dialog-wrapper.js +110 -0
  409. package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
  410. package/lib/modules/setting/general-settings/general-settings.js +66 -0
  411. package/lib/modules/setting/general-settings/index.css +26 -0
  412. package/lib/modules/setting/index.css +115 -0
  413. package/lib/modules/setting/index.d.ts +21 -0
  414. package/lib/modules/setting/index.dev.d.ts +1 -0
  415. package/lib/modules/setting/index.dev.js +71 -0
  416. package/lib/modules/setting/index.js +81 -0
  417. package/lib/modules/setting/state/index.css +211 -0
  418. package/lib/modules/setting/state/index.d.ts +4 -0
  419. package/lib/modules/setting/state/index.js +331 -0
  420. package/lib/modules/setting/storage-settings/index.css +91 -0
  421. package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
  422. package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
  423. package/lib/modules/setting/store.d.ts +213 -0
  424. package/lib/modules/setting/store.js +1125 -0
  425. package/lib/modules/setting/video-settings/index.css +339 -0
  426. package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
  427. package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
  428. package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
  429. package/lib/modules/setting/video-settings/video-settings.js +191 -0
  430. package/lib/modules/setting/view.d.ts +10 -0
  431. package/lib/modules/setting/view.js +139 -0
  432. package/lib/modules/share-screen/index.css +0 -0
  433. package/lib/modules/share-screen/index.d.ts +26 -0
  434. package/lib/modules/share-screen/index.dev.d.ts +1 -0
  435. package/lib/modules/share-screen/index.dev.js +96 -0
  436. package/lib/modules/share-screen/index.js +171 -0
  437. package/lib/modules/share-screen/selection/index.css +66 -0
  438. package/lib/modules/share-screen/selection/index.d.ts +9 -0
  439. package/lib/modules/share-screen/selection/index.js +224 -0
  440. package/lib/modules/share-screen/share-state-bar/index.css +38 -0
  441. package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
  442. package/lib/modules/share-screen/share-state-bar/index.js +67 -0
  443. package/lib/modules/share-screen/store.d.ts +132 -0
  444. package/lib/modules/share-screen/store.js +1714 -0
  445. package/lib/modules/share-screen/view.d.ts +2 -0
  446. package/lib/modules/share-screen/view.js +45 -0
  447. package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
  448. package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
  449. package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
  450. package/lib/modules/state-bar/context.d.ts +3 -0
  451. package/lib/modules/state-bar/context.js +9 -0
  452. package/lib/modules/state-bar/index.css +630 -0
  453. package/lib/modules/state-bar/index.d.ts +18 -0
  454. package/lib/modules/state-bar/index.dev.d.ts +1 -0
  455. package/lib/modules/state-bar/index.dev.js +82 -0
  456. package/lib/modules/state-bar/index.js +69 -0
  457. package/lib/modules/state-bar/layout-config.d.ts +5 -0
  458. package/lib/modules/state-bar/layout-config.js +151 -0
  459. package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
  460. package/lib/modules/state-bar/live-streaming-state.js +199 -0
  461. package/lib/modules/state-bar/meeting-detail.css +107 -0
  462. package/lib/modules/state-bar/meeting-details.d.ts +2 -0
  463. package/lib/modules/state-bar/meeting-details.js +151 -0
  464. package/lib/modules/state-bar/meeting-network-state.css +131 -0
  465. package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
  466. package/lib/modules/state-bar/meeting-network-state.js +108 -0
  467. package/lib/modules/state-bar/meeting-time.d.ts +2 -0
  468. package/lib/modules/state-bar/meeting-time.js +49 -0
  469. package/lib/modules/state-bar/network-quality.d.ts +2 -0
  470. package/lib/modules/state-bar/network-quality.js +33 -0
  471. package/lib/modules/state-bar/recording.d.ts +1 -0
  472. package/lib/modules/state-bar/recording.js +110 -0
  473. package/lib/modules/state-bar/store.d.ts +70 -0
  474. package/lib/modules/state-bar/store.js +515 -0
  475. package/lib/modules/state-bar/view.d.ts +5 -0
  476. package/lib/modules/state-bar/view.js +182 -0
  477. package/lib/modules/video-window/context.d.ts +3 -0
  478. package/lib/modules/video-window/context.js +9 -0
  479. package/lib/modules/video-window/deviceState/index.d.ts +15 -0
  480. package/lib/modules/video-window/deviceState/index.js +77 -0
  481. package/lib/modules/video-window/index.css +17 -0
  482. package/lib/modules/video-window/index.d.ts +9 -0
  483. package/lib/modules/video-window/index.js +65 -0
  484. package/lib/modules/video-window/members/index.css +50 -0
  485. package/lib/modules/video-window/members/index.d.ts +2 -0
  486. package/lib/modules/video-window/members/index.js +134 -0
  487. package/lib/modules/video-window/speaking/index.css +69 -0
  488. package/lib/modules/video-window/speaking/index.d.ts +3 -0
  489. package/lib/modules/video-window/speaking/index.js +57 -0
  490. package/lib/modules/video-window/store.d.ts +88 -0
  491. package/lib/modules/video-window/store.js +598 -0
  492. package/lib/modules/video-window/topControl/index.css +35 -0
  493. package/lib/modules/video-window/topControl/index.d.ts +3 -0
  494. package/lib/modules/video-window/topControl/index.js +85 -0
  495. package/lib/modules/video-window/type.d.ts +23 -0
  496. package/lib/modules/video-window/type.js +32 -0
  497. package/lib/modules/video-window/view.d.ts +2 -0
  498. package/lib/modules/video-window/view.js +63 -0
  499. package/lib/modules/whiteboard/app.d.ts +2 -0
  500. package/lib/modules/whiteboard/app.js +55 -0
  501. package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
  502. package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
  503. package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
  504. package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
  505. package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
  506. package/lib/modules/whiteboard/components/loading/index.css +76 -0
  507. package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
  508. package/lib/modules/whiteboard/components/loading/index.js +68 -0
  509. package/lib/modules/whiteboard/components/loading/loading.png +0 -0
  510. package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
  511. package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
  512. package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
  513. package/lib/modules/whiteboard/components/pagination/index.css +228 -0
  514. package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
  515. package/lib/modules/whiteboard/components/pagination/index.js +163 -0
  516. package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
  517. package/lib/modules/whiteboard/components/pagination/store.js +17 -0
  518. package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
  519. package/lib/modules/whiteboard/components/progress/electron.js +32 -0
  520. package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
  521. package/lib/modules/whiteboard/components/progress/index.js +43 -0
  522. package/lib/modules/whiteboard/components/progress/style.css +50 -0
  523. package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
  524. package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
  525. package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
  526. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
  527. package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
  528. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
  529. package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
  530. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
  531. package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
  532. package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
  533. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
  534. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
  535. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
  536. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
  537. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
  538. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
  539. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
  540. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
  541. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
  542. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
  543. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
  544. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
  545. package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
  546. package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
  547. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  548. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
  549. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
  550. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
  551. package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
  552. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
  553. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
  554. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
  555. package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
  556. package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
  557. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
  558. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
  559. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
  560. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
  561. package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
  562. package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
  563. package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
  564. package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
  565. package/lib/modules/whiteboard/context.d.ts +66 -0
  566. package/lib/modules/whiteboard/context.js +34 -0
  567. package/lib/modules/whiteboard/index.d.ts +115 -0
  568. package/lib/modules/whiteboard/index.js +1082 -0
  569. package/lib/modules/whiteboard/style.css +142 -0
  570. package/lib/modules/whiteboard/type.d.ts +96 -0
  571. package/lib/modules/whiteboard/type.js +94 -0
  572. package/lib/modules/whiteboard/utils.d.ts +11 -0
  573. package/lib/modules/whiteboard/utils.js +25 -0
  574. package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
  575. package/lib/plugins/browser-runtime-plugin.js +67 -0
  576. package/lib/plugins/css-preset-plugin.d.ts +1 -0
  577. package/lib/plugins/css-preset-plugin.js +22 -0
  578. package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
  579. package/lib/plugins/electron-rtc-plugin.js +5 -0
  580. package/lib/plugins/module-dev-plugin.d.ts +12 -0
  581. package/lib/plugins/module-dev-plugin.js +181 -0
  582. package/lib/plugins/multi-lang-plugin.d.ts +5 -0
  583. package/lib/plugins/multi-lang-plugin.js +17 -0
  584. package/lib/plugins/rtm-plugin.d.ts +1 -0
  585. package/lib/plugins/rtm-plugin.js +5 -0
  586. package/lib/plugins/web-rtc-plugin.d.ts +1 -0
  587. package/lib/plugins/web-rtc-plugin.js +5 -0
  588. package/lib/runtime.d.ts +86 -0
  589. package/lib/translations/enUS.d.ts +993 -0
  590. package/lib/translations/enUS.js +1016 -0
  591. package/lib/translations/zhCN.d.ts +993 -0
  592. package/lib/translations/zhCN.js +1016 -0
  593. package/lib/type.d.ts +107 -0
  594. package/lib/type.js +42 -0
  595. package/lib/ui-manager.d.ts +17 -0
  596. package/lib/ui-manager.js +555 -0
  597. package/lib/ui-scene.d.ts +13 -0
  598. package/lib/ui-scene.js +142 -0
  599. package/lib/utilities/board-context.d.ts +5 -0
  600. package/lib/utilities/board-context.js +12 -0
  601. package/lib/utilities/constant.d.ts +248 -0
  602. package/lib/utilities/constant.js +232 -0
  603. package/lib/utilities/copyText.d.ts +2 -0
  604. package/lib/utilities/copyText.js +43 -0
  605. package/lib/utilities/default-config.d.ts +32 -0
  606. package/lib/utilities/default-config.js +39 -0
  607. package/lib/utilities/extract.d.ts +5 -0
  608. package/lib/utilities/extract.js +97 -0
  609. package/lib/utilities/hooks.d.ts +14 -0
  610. package/lib/utilities/hooks.js +99 -0
  611. package/lib/utilities/mute-action.d.ts +4 -0
  612. package/lib/utilities/mute-action.js +48 -0
  613. package/lib/utilities/parameters.d.ts +7 -0
  614. package/lib/utilities/parameters.js +20 -0
  615. package/lib/utilities/platform.d.ts +1 -0
  616. package/lib/utilities/platform.js +11 -0
  617. package/lib/utilities/regex.d.ts +1 -0
  618. package/lib/utilities/regex.js +14 -0
  619. package/lib/utilities/renderer-event.d.ts +9 -0
  620. package/lib/utilities/renderer-event.js +76 -0
  621. package/lib/utilities/renderer.d.ts +23 -0
  622. package/lib/utilities/renderer.js +109 -0
  623. package/lib/utilities/screen.d.ts +3 -0
  624. package/lib/utilities/screen.js +41 -0
  625. package/lib/utilities/tools.d.ts +25 -0
  626. package/lib/utilities/tools.js +164 -0
  627. package/lib/utilities/ui-resources.d.ts +2 -0
  628. package/lib/utilities/ui-resources.js +9 -0
  629. package/lib/utilities/useNamespace.d.ts +15 -0
  630. package/lib/utilities/useNamespace.js +66 -0
  631. package/lib/utilities/video-track-render-context.d.ts +8 -0
  632. package/lib/utilities/video-track-render-context.js +9 -0
  633. package/package.json +61 -85
  634. package/public/assets/fcr_chat_reddot.svg +5 -0
  635. package/public/assets/fcr_defaultpage.png +0 -0
  636. package/public/assets/fcr_grid_big.svg +3 -0
  637. package/public/assets/fcr_listontop_big.svg +3 -0
  638. package/public/assets/pretest.mp3 +0 -0
  639. package/public/assets/state-bar-logo.png +0 -0
  640. package/public/assets/step-gradient.svg +10 -0
  641. package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
  642. package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
  643. package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
  644. package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
  645. package/public/index.html +26 -0
  646. package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
  647. package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
  648. package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
  649. package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
  650. package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
  651. package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
  652. package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
  653. package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
  654. package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
  655. package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
  656. package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
  657. package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
  658. package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
  659. package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
  660. package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
  661. package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
  662. package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
  663. package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
  664. package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
  665. package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
  666. package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
  667. package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
  668. package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
  669. package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
  670. package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
  671. package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
  672. package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
  673. package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
  674. package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
  675. package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
  676. package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
  677. package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
  678. package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
  679. package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
  680. package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
  681. package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
  682. package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
  683. package/lib/fcr-ui-scene/src/app.d.ts +0 -5
  684. package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
  685. package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
  686. package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
  687. package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
  688. package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
  689. package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
  690. package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
  691. package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
  692. package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
  693. package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
  694. package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
  695. package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
  696. package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
  697. package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
  698. package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
  699. package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
  700. package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
  701. package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
  702. package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
  703. package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
  704. package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
  705. package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
  706. package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
  707. package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
  708. package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
  709. package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
  710. package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
  711. package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
  712. package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
  713. package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
  714. package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
  715. package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
  716. package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
  717. package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
  718. package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
  719. package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
  720. package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
  721. package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
  722. package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
  723. package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
  724. package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
  725. package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
  726. package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
  727. package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
  728. package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
  729. package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
  730. package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
  731. package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
  732. package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
  733. package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
  734. package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
  735. package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
  736. package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
  737. package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
  738. package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
  739. package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
  740. package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
  741. package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
  742. package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
  743. package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
  744. package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
  745. package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
  746. package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -3
  747. package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
  748. package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
  749. package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
  750. package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
  751. package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
  752. package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
  753. package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
  754. package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
  755. package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
  756. package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
  757. package/lib/fcr-ui-scene/src/index.d.ts +0 -39
  758. package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
  759. package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
  760. package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
  761. package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
  762. package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
  763. package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
  764. package/lib/fcr-ui-scene/src/type.d.ts +0 -361
  765. package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
  766. package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
  767. package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
  768. package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
  769. package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
  770. package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
  771. package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
  772. package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -214
  773. package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
  774. package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -40
  775. package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
  776. package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
  777. package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
  778. package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
  779. package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
  780. package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
  781. package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
  782. package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
  783. package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
  784. package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
  785. package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
  786. package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
  787. package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
  788. package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
  789. package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
  790. package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
  791. package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
  792. package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
  793. package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
  794. package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
  795. package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
  796. package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
  797. package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
  798. package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
  799. package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
  800. package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
  801. package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
  802. package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
  803. package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
  804. package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
  805. package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
  806. package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
  807. package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
  808. package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
  809. package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
  810. package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
  811. package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
  812. package/lib/scene.bundle.js +0 -2
  813. /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → electron/preload.d.ts} +0 -0
@@ -0,0 +1,1334 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.name.js");
11
+ require("core-js/modules/es.number.constructor.js");
12
+ require("core-js/modules/es.object.create.js");
13
+ require("core-js/modules/es.object.define-property.js");
14
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
15
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
16
+ var _typeof = require("@babel/runtime/helpers/typeof");
17
+ Object.defineProperty(exports, "__esModule", {
18
+ value: true
19
+ });
20
+ exports["default"] = void 0;
21
+ require("core-js/modules/es.array.concat.js");
22
+ require("core-js/modules/es.array.filter.js");
23
+ require("core-js/modules/es.array.find.js");
24
+ require("core-js/modules/es.array.for-each.js");
25
+ require("core-js/modules/es.array.includes.js");
26
+ require("core-js/modules/es.array.iterator.js");
27
+ require("core-js/modules/es.array.map.js");
28
+ require("core-js/modules/es.array.push.js");
29
+ require("core-js/modules/es.array.some.js");
30
+ require("core-js/modules/es.date.now.js");
31
+ require("core-js/modules/es.function.bind.js");
32
+ require("core-js/modules/es.map.js");
33
+ require("core-js/modules/es.object.entries.js");
34
+ require("core-js/modules/es.object.to-string.js");
35
+ require("core-js/modules/es.set.js");
36
+ require("core-js/modules/es.string.includes.js");
37
+ require("core-js/modules/es.string.iterator.js");
38
+ require("core-js/modules/es.weak-map.js");
39
+ require("core-js/modules/web.dom-collections.for-each.js");
40
+ require("core-js/modules/web.dom-collections.iterator.js");
41
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
42
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
43
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
44
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
45
+ var _type = require("agora-edu-core/lib/type");
46
+ var _logger = require("agora-foundation/lib/logger");
47
+ var _type2 = require("agora-rte-sdk/lib/core/scene/type");
48
+ var _type3 = require("agora-rte-sdk/lib/type");
49
+ var _toast = require("agora-ui-foundation/lib/components/toast");
50
+ var _mobx = require("mobx");
51
+ var _constant = require("../../utilities/constant");
52
+ var _decorator = require("agora-foundation/lib/decorator");
53
+ var _rendererEvent = require("../../utilities/renderer-event");
54
+ var _mobxUtils = require("mobx-utils");
55
+ var _memberListDataSource = require("./member-list-data-source");
56
+ var _type4 = require("./type");
57
+ var _i18n = require("agora-ui-foundation/lib/i18n");
58
+ var _i18n2 = require("../../hooks/i18n");
59
+ var _ParticipantStore;
60
+ var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _setSpotlightStreamIdDecs, _handleEventDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _handlerUserActionDecs, _handlerRoomControlActionDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _onUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _getAllowedOperationsDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _ref;
61
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
62
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
63
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
64
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
65
+ 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"); }
66
+ 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)]; } }; }
67
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
68
+ 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); }
69
+ 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; }
70
+ 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; }
71
+ /**
72
+ * seconds
73
+ */
74
+ var SESSION_DURATION = 30;
75
+ var _B = /*#__PURE__*/new WeakMap();
76
+ var _C = /*#__PURE__*/new WeakMap();
77
+ var _D = /*#__PURE__*/new WeakMap();
78
+ var _E = /*#__PURE__*/new WeakMap();
79
+ var _A = /*#__PURE__*/new WeakMap();
80
+ var _F = /*#__PURE__*/new WeakMap();
81
+ var _G = /*#__PURE__*/new WeakMap();
82
+ var _H = /*#__PURE__*/new WeakMap();
83
+ var _I = /*#__PURE__*/new WeakMap();
84
+ var _J = /*#__PURE__*/new WeakMap();
85
+ var _K = /*#__PURE__*/new WeakMap();
86
+ var _L = /*#__PURE__*/new WeakMap();
87
+ var _M = /*#__PURE__*/new WeakMap();
88
+ _ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], "logger");
89
+ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
90
+ function ParticipantStore(_ref2) {
91
+ var _this = this;
92
+ var roomControl = _ref2.roomControl,
93
+ engine = _ref2.engine,
94
+ peerSessionControl = _ref2.peerSessionControl,
95
+ securityStore = _ref2.securityStore,
96
+ uiEventStore = _ref2.uiEventStore,
97
+ deviceStore = _ref2.deviceStore,
98
+ deviceStreamStore = _ref2.deviceStreamStore;
99
+ (0, _classCallCheck2["default"])(this, ParticipantStore);
100
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
101
+ (0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
102
+ (0, _defineProperty2["default"])(this, "_disposers", []);
103
+ (0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
104
+ (0, _defineProperty2["default"])(this, "_unmuteVideoTimestamp", new Map());
105
+ _classPrivateFieldInitSpec(this, _B, _init__mainList(this, []));
106
+ _classPrivateFieldInitSpec(this, _C, _init__participantsWindowActive(this, false));
107
+ _classPrivateFieldInitSpec(this, _D, _init_currentPerspectiveType(this, 'attendee'));
108
+ _classPrivateFieldInitSpec(this, _E, _init_audioVolumeMap(this, new Map()));
109
+ _classPrivateFieldInitSpec(this, _A, _type.FcrMediaSourceState.STOPPED);
110
+ _classPrivateFieldInitSpec(this, _F, _init_enableParticipantsJoinWithMute(this, false));
111
+ _classPrivateFieldInitSpec(this, _G, _init_searchText(this, ''));
112
+ _classPrivateFieldInitSpec(this, _H, _init_currentModal(this, 'modal'));
113
+ _classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
114
+ _classPrivateFieldInitSpec(this, _J, _init_spotlightStreamId(this, ''));
115
+ _classPrivateFieldInitSpec(this, _K, _init_enableSpotlight(this, true));
116
+ _classPrivateFieldInitSpec(this, _L, _init_mergeConfirmDialog(this, false));
117
+ _classPrivateFieldInitSpec(this, _M, _init_mergeUserId(this, ''));
118
+ (0, _defineProperty2["default"])(this, "_processedUserOpenDeviceRequests", new Set());
119
+ (0, _defineProperty2["default"])(this, "_streamsObserver", {
120
+ onStreamsAdded: this._handleStreamsAdded,
121
+ onStreamsUpdated: this._handleStreamsUpdated,
122
+ onAudioVolumeUpdated: this._onAudioVolumeUpdated,
123
+ onStreamsRemoved: this._handleStreamsRemoved
124
+ });
125
+ (0, _defineProperty2["default"])(this, "_peerSessionObserver", {
126
+ onPeerSessionReceived: this._onPeerSessionReceived.bind(this),
127
+ onPeerSessionAccepted: this._onPeerSessionAccepted.bind(this),
128
+ onPeerSessionRejected: this._onPeerSessionRejected.bind(this)
129
+ });
130
+ (0, _defineProperty2["default"])(this, "_userObserver", {
131
+ onRemoteUsersJoined: this._handleRemoteUserJoined.bind(this),
132
+ onRemoteUsersLeft: this._handleRemoteUserLeft.bind(this),
133
+ onUserInfoUpdated: this._onUserInfoUpdated.bind(this)
134
+ });
135
+ (0, _defineProperty2["default"])(this, "_eventObserver", {
136
+ onEvent: this._handleEvent
137
+ });
138
+ (0, _defineProperty2["default"])(this, "_whitebaordObderver", {
139
+ onBoardActiveInfoUpdated: function onBoardActiveInfoUpdated(isActive, operator) {
140
+ _this._updateUserBoardState(operator);
141
+ }
142
+ });
143
+ (0, _defineProperty2["default"])(this, "checkIsPin", (0, _mobxUtils.computedFn)(function (userId) {
144
+ var _this$userMap$get;
145
+ return !!((_this$userMap$get = _this.userMap.get(userId)) !== null && _this$userMap$get !== void 0 && _this$userMap$get.streams.some(function (stream) {
146
+ return _this.pinedStreamIds.includes(stream.streamId);
147
+ }));
148
+ }));
149
+ (0, _defineProperty2["default"])(this, "_formatUser", function (user) {
150
+ var _this$_userControl$ge;
151
+ var targetUsers = user.streams;
152
+ var hasShareScreen = targetUsers.find(function (user) {
153
+ return user.videoSourceType === _type3.AgoraRteVideoSourceType.SCREEN;
154
+ });
155
+ var isSelf = user.userId === _this._userControl.getLocalUser().userId;
156
+ var hasAudioPublishedAndStarted = function hasAudioPublishedAndStarted(stream) {
157
+ return (stream === null || stream === void 0 ? void 0 : stream.audioSourceState) === _type.FcrMediaSourceState.STARTED && ((stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.AUDIO || (stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.BOTH);
158
+ };
159
+ var hasVideoPublishedAndStarted = function hasVideoPublishedAndStarted(stream) {
160
+ return (stream === null || stream === void 0 ? void 0 : stream.videoSourceState) === _type.FcrMediaSourceState.STARTED && ((stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.VIDEO || (stream === null || stream === void 0 ? void 0 : stream.streamType) === _type2.AgoraRteMediaStreamType.BOTH);
161
+ };
162
+ var hasAudio = false;
163
+ var hasVideo = false;
164
+ var audioDeviceType = 'none';
165
+ var videoDeviceType = 'none';
166
+ var userType = 'normal';
167
+ if (user.userInfo.connectorType === _type.FcrRoomConnectorType.NONE) {
168
+ var defaultStream = targetUsers.find(function (user) {
169
+ return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
170
+ });
171
+ var pstnStream = targetUsers.find(function (_ref3) {
172
+ var connectorType = _ref3.connectorType;
173
+ return connectorType == _type.FcrRoomConnectorType.PSTN;
174
+ });
175
+ videoDeviceType = 'computer-cam';
176
+ hasVideo = isSelf ? _this._deviceStore.cameraEnabled : hasVideoPublishedAndStarted(defaultStream);
177
+
178
+ // 4.normal user with camera and phone mic
179
+ if (pstnStream) {
180
+ audioDeviceType = 'phone-mic';
181
+
182
+ // hasAudio = hasAudioPublishedAndStarted(pstnStream);
183
+ hasAudio = true;
184
+ }
185
+ // 1.normal user with computer devices
186
+ else {
187
+ audioDeviceType = 'computer-mic';
188
+ hasAudio = isSelf ? _this._deviceStore.microphoneEnabled : hasAudioPublishedAndStarted(defaultStream);
189
+ }
190
+ }
191
+ // 2.sip user with camera and phone mic
192
+ else if ([_type.FcrRoomConnectorType.SIP, _type.FcrRoomConnectorType.H323].includes(user.userInfo.connectorType)) {
193
+ var firstSipOrH323Stream = targetUsers.find(function (_ref4) {
194
+ var connectorType = _ref4.connectorType;
195
+ return [_type.FcrRoomConnectorType.SIP, _type.FcrRoomConnectorType.H323].includes(connectorType);
196
+ });
197
+ audioDeviceType = 'phone-mic';
198
+ videoDeviceType = 'computer-cam';
199
+ userType = 'meeting-system';
200
+ hasAudio = hasAudioPublishedAndStarted(firstSipOrH323Stream);
201
+ hasVideo = hasVideoPublishedAndStarted(firstSipOrH323Stream);
202
+ }
203
+ // 3.phone user with no camera and phone mic
204
+ else if (user.userInfo.connectorType === _type.FcrRoomConnectorType.PSTN) {
205
+ var _pstnStream = targetUsers.find(function (_ref5) {
206
+ var connectorType = _ref5.connectorType;
207
+ return connectorType == _type.FcrRoomConnectorType.PSTN;
208
+ });
209
+ audioDeviceType = 'phone-mic';
210
+ userType = 'phone';
211
+ hasAudio = hasAudioPublishedAndStarted(_pstnStream);
212
+ hasVideo = false;
213
+ }
214
+ var isSpotlight = user.streams.some(function (stream) {
215
+ return stream.streamId === _this.spotlightStreamId;
216
+ });
217
+ return {
218
+ userId: user.userId,
219
+ userName: user.userInfo.userName,
220
+ isHost: user.userInfo.userRole === _type.FcrUserRole.HOST,
221
+ isMe: user.userId === ((_this$_userControl$ge = _this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId),
222
+ hasAudio: hasAudio,
223
+ hasVideo: hasVideo,
224
+ isScreenSharing: !!hasShareScreen,
225
+ audioDeviceType: audioDeviceType,
226
+ videoDeviceType: videoDeviceType,
227
+ userType: userType,
228
+ userRole: user.userInfo.userRole,
229
+ isSpotlight: isSpotlight,
230
+ isBoardActive: user.userInfo.isBoardActive
231
+ };
232
+ });
233
+ this._roomControl = roomControl;
234
+ this._engine = engine;
235
+ this._streamControl = roomControl.getStreamControl();
236
+ this._peerSessionControl = peerSessionControl;
237
+ this._userControl = roomControl.getUserControl();
238
+ this.localUserRole = this._userControl.getLocalUser().userRole;
239
+ this._userControl.addObserver(this._userObserver);
240
+ this._streamControl.addObserver(this._streamsObserver);
241
+ this._peerSessionControl.addObserver(this._peerSessionObserver);
242
+ this._roomControl.getWhiteboardControl().addObserver(this._whitebaordObderver);
243
+ this._securityStore = securityStore;
244
+ this._uiEventStore = uiEventStore;
245
+ this._deviceStore = deviceStore;
246
+ this._deviceStreamStore = deviceStreamStore;
247
+ this._uiEventStore.addObserver(this._eventObserver);
248
+ this._initUserList();
249
+ this._addReactions();
250
+ this._updateUserBoardState();
251
+ }
252
+ return (0, _createClass2["default"])(ParticipantStore, [{
253
+ key: "_mainList",
254
+ get: function get() {
255
+ return _classPrivateFieldGet(_B, this);
256
+ },
257
+ set: function set(v) {
258
+ _classPrivateFieldSet(_B, this, v);
259
+ }
260
+ }, {
261
+ key: "_participantsWindowActive",
262
+ get: function get() {
263
+ return _classPrivateFieldGet(_C, this);
264
+ },
265
+ set: function set(v) {
266
+ _classPrivateFieldSet(_C, this, v);
267
+ }
268
+ }, {
269
+ key: "currentPerspectiveType",
270
+ get: function get() {
271
+ return _classPrivateFieldGet(_D, this);
272
+ },
273
+ set: function set(v) {
274
+ _classPrivateFieldSet(_D, this, v);
275
+ }
276
+ }, {
277
+ key: "audioVolumeMap",
278
+ get: function get() {
279
+ return _classPrivateFieldGet(_E, this);
280
+ },
281
+ set: function set(v) {
282
+ _classPrivateFieldSet(_E, this, v);
283
+ }
284
+ }, {
285
+ key: "screenSharingState",
286
+ get: function get() {
287
+ return _classPrivateFieldGet(_A, this);
288
+ },
289
+ set: function set(v) {
290
+ _classPrivateFieldSet(_A, this, v);
291
+ }
292
+ }, {
293
+ key: "enableParticipantsJoinWithMute",
294
+ get: function get() {
295
+ return _classPrivateFieldGet(_F, this);
296
+ },
297
+ set: function set(v) {
298
+ _classPrivateFieldSet(_F, this, v);
299
+ }
300
+ }, {
301
+ key: "searchText",
302
+ get: function get() {
303
+ return _classPrivateFieldGet(_G, this);
304
+ },
305
+ set: function set(v) {
306
+ _classPrivateFieldSet(_G, this, v);
307
+ }
308
+ }, {
309
+ key: "currentModal",
310
+ get: function get() {
311
+ return _classPrivateFieldGet(_H, this);
312
+ },
313
+ set: function set(v) {
314
+ _classPrivateFieldSet(_H, this, v);
315
+ }
316
+ }, {
317
+ key: "localUserRole",
318
+ get: function get() {
319
+ return _classPrivateFieldGet(_I, this);
320
+ },
321
+ set: function set(v) {
322
+ _classPrivateFieldSet(_I, this, v);
323
+ }
324
+ }, {
325
+ key: "spotlightStreamId",
326
+ get: function get() {
327
+ return _classPrivateFieldGet(_J, this);
328
+ },
329
+ set: function set(v) {
330
+ _classPrivateFieldSet(_J, this, v);
331
+ }
332
+ }, {
333
+ key: "enableSpotlight",
334
+ get: function get() {
335
+ return _classPrivateFieldGet(_K, this);
336
+ },
337
+ set: function set(v) {
338
+ _classPrivateFieldSet(_K, this, v);
339
+ }
340
+ }, {
341
+ key: "mergeConfirmDialog",
342
+ get: function get() {
343
+ return _classPrivateFieldGet(_L, this);
344
+ },
345
+ set: function set(v) {
346
+ _classPrivateFieldSet(_L, this, v);
347
+ }
348
+ }, {
349
+ key: "mergeUserId",
350
+ get: function get() {
351
+ return _classPrivateFieldGet(_M, this);
352
+ },
353
+ set: function set(v) {
354
+ _classPrivateFieldSet(_M, this, v);
355
+ }
356
+ }, {
357
+ key: "setSpotlightStreamId",
358
+ value: function setSpotlightStreamId(streamId) {
359
+ this.spotlightStreamId = streamId;
360
+ }
361
+ }, {
362
+ key: "release",
363
+ value: function release() {
364
+ this._userControl.removeObserver(this._userObserver);
365
+ this._streamControl.removeObserver(this._streamsObserver);
366
+ this._uiEventStore.removeObserver(this._eventObserver);
367
+ this._disposers.forEach(function (disposer) {
368
+ return disposer();
369
+ });
370
+ }
371
+ }, {
372
+ key: "userListSource",
373
+ get: function get() {
374
+ return this._dataSource.list;
375
+ }
376
+ }, {
377
+ key: "mergeUserInfo",
378
+ get: function get() {
379
+ var _this$userListSource$,
380
+ _this2 = this;
381
+ return (_this$userListSource$ = this.userListSource.find(function (user) {
382
+ return user.userId === _this2.mergeUserId;
383
+ })) === null || _this$userListSource$ === void 0 ? void 0 : _this$userListSource$.userInfo;
384
+ }
385
+ }, {
386
+ key: "userMap",
387
+ get: function get() {
388
+ var res = new Map();
389
+ this.userListSource.forEach(function (u) {
390
+ res.set(u.userId, u);
391
+ });
392
+ return res;
393
+ }
394
+ }, {
395
+ key: "allowUnmuteSelfAudio",
396
+ get: function get() {
397
+ return this._securityStore.allowUnmuteSelfAudio();
398
+ }
399
+ }, {
400
+ key: "allowJoinWithMuteAudio",
401
+ get: function get() {
402
+ return this._securityStore.allowJoinWithMuteAudio();
403
+ }
404
+ }, {
405
+ key: "allowUnmuteSelfVideo",
406
+ get: function get() {
407
+ return this._securityStore.allowUnmuteSelfVideo();
408
+ }
409
+ }, {
410
+ key: "isLockRoomEnabled",
411
+ get: function get() {
412
+ return this._securityStore.isLockRoomEnabled();
413
+ }
414
+ }, {
415
+ key: "isWaitingRoomEnabled",
416
+ get: function get() {
417
+ return this._securityStore.isWaitingRoomEnabled();
418
+ }
419
+ }, {
420
+ key: "allowChangeSelfName",
421
+ get: function get() {
422
+ return this._securityStore.allowChangeSelfName();
423
+ }
424
+ }, {
425
+ key: "allowChat",
426
+ get: function get() {
427
+ return this._securityStore.allowChat();
428
+ }
429
+ }, {
430
+ key: "allowShareScreen",
431
+ get: function get() {
432
+ return this._securityStore.allowShareScreen();
433
+ }
434
+ }, {
435
+ key: "pinedStreamIds",
436
+ get: function get() {
437
+ return this._mainList.filter(function (i) {
438
+ return i.isPin;
439
+ }).map(function (i) {
440
+ return i.windowId;
441
+ });
442
+ }
443
+ }, {
444
+ key: "hasPinnedStream",
445
+ get: function get() {
446
+ return this._mainList.some(function (i) {
447
+ return i.isPin;
448
+ });
449
+ }
450
+ }, {
451
+ key: "hasMutePermission",
452
+ value: function hasMutePermission(targetRole) {
453
+ return this._securityStore.hasMutePermission(targetRole);
454
+ }
455
+ }, {
456
+ key: "hasUnmutePermission",
457
+ value: function hasUnmutePermission(targetRole) {
458
+ return this._securityStore.hasUnmutePermission(targetRole);
459
+ }
460
+ }, {
461
+ key: "hasRequestStartAudioPermission",
462
+ value: function hasRequestStartAudioPermission(targetRole) {
463
+ return this._securityStore.hasRequestStartAudioPermission(targetRole);
464
+ }
465
+ }, {
466
+ key: "_handleEvent",
467
+ value: function _handleEvent(action, payload) {
468
+ if (action === _constant.UIAction.MAIN_LIST_CHANGED) {
469
+ this._mainList = payload || [];
470
+ }
471
+ if (action === _constant.UIAction.SPOTLIGHT_STREAM_CHANGED) {
472
+ var _ref6 = payload,
473
+ type = _ref6.type,
474
+ streamId = _ref6.streamId;
475
+ if (type === 'add') {
476
+ this.setSpotlightStreamId(streamId);
477
+ } else {
478
+ this.setSpotlightStreamId('');
479
+ }
480
+ }
481
+ if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
482
+ var _ref7 = payload,
483
+ spotlightEnabled = _ref7.spotlightEnabled;
484
+ this.enableSpotlight = spotlightEnabled;
485
+ }
486
+ }
487
+ }, {
488
+ key: "setCurrentModal",
489
+ value: function setCurrentModal(modal) {
490
+ this.currentModal = modal;
491
+ }
492
+ }, {
493
+ key: "closeParticipantsAside",
494
+ value: function closeParticipantsAside() {
495
+ this._uiEventStore.updateAside({
496
+ participant: false
497
+ });
498
+ }
499
+ }, {
500
+ key: "openParticipantsWindow",
501
+ value: function openParticipantsWindow() {
502
+ window.runtime.setFragmentOptions('participant', {
503
+ frame: false,
504
+ titleBarStyle: 'hidden',
505
+ resizable: true,
506
+ maxHeight: 700,
507
+ maxWidth: 620,
508
+ maximizable: false,
509
+ fullscreen: false,
510
+ minHeight: 560,
511
+ minWidth: 320,
512
+ width: 320,
513
+ height: 560
514
+ }, {});
515
+ this.openDialog();
516
+ }
517
+ }, {
518
+ key: "closeParticipantsWindow",
519
+ value: function closeParticipantsWindow() {
520
+ if (this._dialogId) {
521
+ this._uiEventStore.closeDialog(this._dialogId);
522
+ }
523
+ }
524
+ }, {
525
+ key: "openDialog",
526
+ value: function openDialog() {
527
+ this._dialogId = this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
528
+ }
529
+ }, {
530
+ key: "openConfirmDialog",
531
+ value: function openConfirmDialog(params, id) {
532
+ var _this3 = this;
533
+ var title = params.title,
534
+ content = params.content,
535
+ _onOk = params.onOk,
536
+ _onCancel = params.onCancel,
537
+ okText = params.okText,
538
+ cancelText = params.cancelText,
539
+ closable = params.closable,
540
+ height = params.height;
541
+ var dialogKey = this._uiEventStore.openConfirmDialog({
542
+ title: title,
543
+ content: content,
544
+ okText: okText,
545
+ cancelText: cancelText,
546
+ height: height,
547
+ onCancel: function onCancel() {
548
+ _this3._uiEventStore.closeDialog(dialogKey);
549
+ _onCancel && _onCancel();
550
+ },
551
+ onOk: function onOk() {
552
+ _this3._uiEventStore.closeDialog(dialogKey);
553
+ _onOk();
554
+ }
555
+ });
556
+ }
557
+ }, {
558
+ key: "userList",
559
+ get: function get() {
560
+ var _this4 = this;
561
+ var list = this.userListSource;
562
+ if (this.searchText.length) {
563
+ list = list.filter(function (user) {
564
+ return user.userInfo.userName.toLocaleLowerCase().includes(_this4.searchText.toLocaleLowerCase());
565
+ });
566
+ }
567
+ var uiDataList = list.map(function (user) {
568
+ return _this4._formatUser(user);
569
+ });
570
+ return uiDataList;
571
+ }
572
+ }, {
573
+ key: "setParticipantsWindowActive",
574
+ value: function setParticipantsWindowActive(active) {
575
+ this._participantsWindowActive = active;
576
+ if (!active) {
577
+ this.setCurrentModal('modal');
578
+ }
579
+ }
580
+ }, {
581
+ key: "handlerSearchUser",
582
+ value: function handlerSearchUser(searchText) {
583
+ this.searchText = searchText;
584
+ }
585
+ }, {
586
+ key: "onInvite",
587
+ value: function onInvite() {
588
+ this._uiEventStore.openInviteDialog();
589
+ }
590
+ }, {
591
+ key: "setMergeConfirmDialog",
592
+ value: function setMergeConfirmDialog(visible) {
593
+ this.mergeConfirmDialog = visible;
594
+ }
595
+ }, {
596
+ key: "mergeConfirmDialogOk",
597
+ value: function mergeConfirmDialogOk(userId) {
598
+ var _this$userMap$get2;
599
+ this._userControl.mergeAudioStream(userId);
600
+ this.setMergeConfirmDialog(false);
601
+ _toast.FcrToastApi.open({
602
+ id: 'mergeVideo',
603
+ toastProps: {
604
+ content: (0, _i18n.transI18n)('fmt_PSTN_toast_merged', {
605
+ reason1: (_this$userMap$get2 = this.userMap.get(userId)) === null || _this$userMap$get2 === void 0 ? void 0 : _this$userMap$get2.userInfo.userName
606
+ }),
607
+ type: 'normal'
608
+ },
609
+ duration: 3000
610
+ });
611
+ }
612
+ }, {
613
+ key: "handlerUserAction",
614
+ value: function handlerUserAction(action, userId) {
615
+ switch (action) {
616
+ case _constant.ParticipantType.MUTE_AUDIO:
617
+ this._muteUserAudio(userId);
618
+ break;
619
+ case _constant.ParticipantType.UNMUTE_AUDIO:
620
+ this._unmuteUserAudio(userId);
621
+ break;
622
+ case _constant.ParticipantType.MUTE_VIDEO:
623
+ this._muteUserVideo(userId);
624
+ break;
625
+ case _constant.ParticipantType.UNMUTE_VIDEO:
626
+ this._unmuteUserVideo(userId);
627
+ break;
628
+ case _constant.ParticipantType.PRIVATE_CHAT:
629
+ this._privateChat(userId);
630
+ break;
631
+ case _constant.ParticipantType.KICK_OUT:
632
+ this._kickOutUser(userId);
633
+ break;
634
+ case _constant.ParticipantType.ADD_PIN:
635
+ this.addPin(userId);
636
+ break;
637
+ case _constant.ParticipantType.REMOVE_PIN:
638
+ this.removePin(userId);
639
+ break;
640
+ case _constant.ParticipantType.SET_AS_HOST:
641
+ this._setAsHost(userId);
642
+ break;
643
+ case _constant.ParticipantType.RENAME:
644
+ break;
645
+ case _constant.ParticipantType.SET_MAIN_SPEAKER:
646
+ this._uiEventStore.setMainSpeaker({
647
+ userId: userId
648
+ });
649
+ break;
650
+ case _constant.ParticipantType.SET_AS_CO_HOST:
651
+ this._setAsCoHost(userId);
652
+ break;
653
+ case _constant.ParticipantType.SET_AS_ATTENDEE:
654
+ this._setAsAttendee(userId);
655
+ break;
656
+ case _constant.ParticipantType.MERGE_VIDEO:
657
+ this.setMergeConfirmDialog(true);
658
+ this.mergeUserId = userId;
659
+ }
660
+ }
661
+ }, {
662
+ key: "getMicStreamVolume",
663
+ value: function getMicStreamVolume(streamId) {
664
+ return this.audioVolumeMap.get(streamId) || 0;
665
+ }
666
+ }, {
667
+ key: "localMicVolume",
668
+ get: function get() {
669
+ return this._deviceStore.microphoneVolumeLevel;
670
+ }
671
+ }, {
672
+ key: "handlerRoomControlAction",
673
+ value: function handlerRoomControlAction(action, data) {
674
+ switch (action) {
675
+ case _constant.RoomControlType.MUTE_ALL_AUDIO:
676
+ this._muteAllAudio(data.allowUnmute, data.joinWithMuteAudio);
677
+ break;
678
+ case _constant.RoomControlType.UNMUTE_ALL_AUDIO:
679
+ this._unmuteAllAudio();
680
+ break;
681
+ case _constant.RoomControlType.ALLOW_ATTENDEE_TO_UNMUTE:
682
+ this._enableSelfUnmute(data);
683
+ break;
684
+ case _constant.RoomControlType.ALLOW_ATTENDEE_TO_OPEN_CAMERA:
685
+ this._enableOpenVideo(data);
686
+ break;
687
+ case _constant.RoomControlType.REVOKE_HOST:
688
+ this._revokeHost();
689
+ break;
690
+ case _constant.RoomControlType.PLAY_JOIN_LEAVE_SOUND:
691
+ this._playJoinLeaveSound();
692
+ break;
693
+ case _constant.RoomControlType.LOCK_ROOM:
694
+ this._lockRoom(data);
695
+ break;
696
+ case _constant.RoomControlType.ENABLE_WAITING_ROOM:
697
+ this._enableWaitingRoom(data);
698
+ break;
699
+ case _constant.RoomControlType.RENAME:
700
+ this._enableRename(data);
701
+ break;
702
+ case _constant.RoomControlType.JOIN_WITH_MUTE_AUDIO:
703
+ this.enableJoinWithMuteAudio(data);
704
+ break;
705
+ }
706
+ }
707
+
708
+ // user actions
709
+ }, {
710
+ key: "_muteUserAudio",
711
+ value: function _muteUserAudio(user) {
712
+ var isSelf = user === this._userControl.getLocalUser().userId;
713
+ if (isSelf) {
714
+ this._deviceStreamStore.enableMicrophoneWithStream(false);
715
+ } else {
716
+ var targetUsers = this._streamControl.getStreamsByUserId(user);
717
+ var targetUser = targetUsers.find(function (user) {
718
+ return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
719
+ });
720
+ if (!targetUser) {
721
+ return;
722
+ }
723
+ this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
724
+ audioPrivilege: _type.FcrStreamPrivilegeOperation.NOPRIVILEGE,
725
+ videoPrivilege: _type.FcrStreamPrivilegeOperation.NOOPERATION
726
+ }));
727
+ }
728
+ }
729
+ }, {
730
+ key: "_unmuteUserAudio",
731
+ value: function _unmuteUserAudio(userId) {
732
+ var isSelf = userId === this._userControl.getLocalUser().userId;
733
+ if (isSelf) {
734
+ this._deviceStreamStore.enableMicrophoneWithStream(true);
735
+ } else {
736
+ var _this$_unmuteAudioTim;
737
+ var targetUsers = this._streamControl.getStreamsByUserId(userId);
738
+ var targetUser = targetUsers.find(function (user) {
739
+ return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
740
+ });
741
+ if (!targetUser) {
742
+ return;
743
+ }
744
+ var now = Date.now();
745
+ if (now - ((_this$_unmuteAudioTim = this._unmuteAudioTimestamp.get(userId)) !== null && _this$_unmuteAudioTim !== void 0 ? _this$_unmuteAudioTim : 0) <= SESSION_DURATION * 1000) {
746
+ return;
747
+ }
748
+ this._unmuteAudioTimestamp.set(userId, now);
749
+ this._peerSessionControl.startPeerSession({
750
+ sessionKey: 'REQUEST_OPEN_MICROPHONE',
751
+ receiverId: userId,
752
+ duration: SESSION_DURATION,
753
+ payload: {
754
+ sender: this._userControl.getLocalUser()
755
+ }
756
+ });
757
+ }
758
+ }
759
+ }, {
760
+ key: "_muteUserVideo",
761
+ value: function _muteUserVideo(user) {
762
+ var isSelf = user === this._userControl.getLocalUser().userId;
763
+ if (isSelf) {
764
+ this._deviceStreamStore.enableCameraWithStream(false);
765
+ } else {
766
+ var targetUsers = this._streamControl.getStreamsByUserId(user);
767
+ var targetUser = targetUsers.find(function (user) {
768
+ return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
769
+ });
770
+ if (!targetUser) {
771
+ return;
772
+ }
773
+ this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
774
+ audioPrivilege: _type.FcrStreamPrivilegeOperation.NOOPERATION,
775
+ videoPrivilege: _type.FcrStreamPrivilegeOperation.NOPRIVILEGE
776
+ }));
777
+ }
778
+ }
779
+
780
+ // 请求对端打开视频
781
+ }, {
782
+ key: "_unmuteUserVideo",
783
+ value: function _unmuteUserVideo(userId) {
784
+ var isSelf = userId === this._userControl.getLocalUser().userId;
785
+ if (isSelf) {
786
+ this._deviceStreamStore.enableCameraWithStream(true);
787
+ } else {
788
+ var localUser = this._userControl.getLocalUser();
789
+ var targetUsers = this._streamControl.getStreamsByUserId(userId);
790
+ var targetUser = targetUsers[0];
791
+ if (localUser.userId === userId) {
792
+ this._deviceStreamStore.enableCameraWithStream(true);
793
+ } else {
794
+ var _this$_unmuteVideoTim;
795
+ var now = Date.now();
796
+ if (now - ((_this$_unmuteVideoTim = this._unmuteVideoTimestamp.get(userId)) !== null && _this$_unmuteVideoTim !== void 0 ? _this$_unmuteVideoTim : 0) <= SESSION_DURATION * 1000) {
797
+ return;
798
+ }
799
+ this._unmuteVideoTimestamp.set(userId, now);
800
+ this._peerSessionControl.startPeerSession({
801
+ sessionKey: _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA,
802
+ receiverId: userId,
803
+ duration: SESSION_DURATION,
804
+ payload: {
805
+ sender: this._userControl.getLocalUser()
806
+ }
807
+ });
808
+ }
809
+ }
810
+ }
811
+ }, {
812
+ key: "_privateChat",
813
+ value: function _privateChat(userId) {
814
+ if (!this._securityStore.permitPrivateChat(userId)) {
815
+ return;
816
+ }
817
+ this._uiEventStore.updateAside({
818
+ chat: true
819
+ });
820
+ var userData = this.userListSource.find(function (u) {
821
+ return u.userId === userId;
822
+ });
823
+ userData && this._uiEventStore.notifyChatUpdateTarget(userData.userInfo);
824
+ }
825
+ }, {
826
+ key: "_kickOutUser",
827
+ value: function _kickOutUser(userId) {
828
+ var _this5 = this,
829
+ _this$userMap$get3;
830
+ this.openConfirmDialog({
831
+ title: '',
832
+ onCancel: function onCancel() {
833
+ _this5._uiEventStore.closeConfirmDialog();
834
+ },
835
+ content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
836
+ reason2: (_this$userMap$get3 = this.userMap.get(userId)) === null || _this$userMap$get3 === void 0 ? void 0 : _this$userMap$get3.userInfo.userName
837
+ }),
838
+ onOk: function onOk() {
839
+ _this5._userControl.kickOut(userId, _type.FcrUserKickOutType.Once);
840
+ _this5._uiEventStore.closeConfirmDialog();
841
+ },
842
+ height: 160
843
+ }, 'KICK_OUT');
844
+ }
845
+ }, {
846
+ key: "removePin",
847
+ value: function removePin(userId) {
848
+ var _this$userMap$get4;
849
+ var streamId = (_this$userMap$get4 = this.userMap.get(userId)) === null || _this$userMap$get4 === void 0 || (_this$userMap$get4 = _this$userMap$get4.streams.find(function (stream) {
850
+ return stream.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
851
+ })) === null || _this$userMap$get4 === void 0 ? void 0 : _this$userMap$get4.streamId;
852
+ if (streamId) {
853
+ this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
854
+ action: _constant.VideoWindowPinType.REMOVE_PIN,
855
+ streamId: streamId
856
+ });
857
+ }
858
+ }
859
+ }, {
860
+ key: "addPin",
861
+ value: function addPin(userId) {
862
+ var _this$userMap$get5;
863
+ var streamId = (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 || (_this$userMap$get5 = _this$userMap$get5.streams.find(function (stream) {
864
+ return stream.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
865
+ })) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.streamId;
866
+ if (streamId) {
867
+ this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
868
+ action: _constant.VideoWindowPinType.ADD_PIN,
869
+ streamId: streamId
870
+ });
871
+ }
872
+ }
873
+ }, {
874
+ key: "_handleSetHostOrCoHost",
875
+ value: function _handleSetHostOrCoHost(userId, type) {
876
+ var _this$userMap$get6,
877
+ _this6 = this;
878
+ var username = (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName;
879
+ var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
880
+ this.openConfirmDialog({
881
+ title: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
882
+ reason1: targetRole
883
+ }),
884
+ onCancel: function onCancel() {
885
+ _this6._uiEventStore.closeConfirmDialog();
886
+ },
887
+ content: (0, _i18n.transI18n)('fmt_uimanager_tips_designedas', {
888
+ reason1: username,
889
+ reason2: targetRole
890
+ }),
891
+ onOk: function onOk() {
892
+ if (!_this6.userMap.has(userId)) {
893
+ _this6._uiEventStore.showToast({
894
+ type: 'error',
895
+ message: (0, _i18n.transI18n)('fmt_uimanager_tips_userleaft')
896
+ });
897
+ return;
898
+ }
899
+ _this6._userControl.updateUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
900
+ _this6._uiEventStore.closeConfirmDialog();
901
+ },
902
+ okText: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
903
+ reason1: targetRole
904
+ }),
905
+ cancelText: (0, _i18n.transI18n)('fmt_security_buttons_cancel'),
906
+ closable: false
907
+ }, 'UPDATE_USER_ROLE');
908
+ }
909
+ }, {
910
+ key: "_setAsHost",
911
+ value: function _setAsHost(userId) {
912
+ this._handleSetHostOrCoHost(userId, 'host');
913
+ }
914
+ }, {
915
+ key: "_setAsCoHost",
916
+ value: function _setAsCoHost(userId) {
917
+ this._handleSetHostOrCoHost(userId, 'cohost');
918
+ }
919
+ }, {
920
+ key: "_setAsAttendee",
921
+ value: function _setAsAttendee(userId) {
922
+ this._userControl.updateUserRole(userId, _type.FcrUserRole.PARTICIPANT);
923
+ }
924
+
925
+ // room control actions
926
+ }, {
927
+ key: "_muteAllAudio",
928
+ value: function _muteAllAudio(allowUnmute, JoinWithMuteAudio) {
929
+ this._securityStore.setAllowJoinWithMuteAudio(JoinWithMuteAudio);
930
+ this._securityStore.setAllowUnmuteSelfAudio(allowUnmute);
931
+ this._securityStore.muteAll();
932
+ _toast.FcrToastApi.open({
933
+ id: 'muteAll',
934
+ toastProps: {
935
+ content: (0, _i18n.transI18n)('fmt_uimanager_tips_allmuted'),
936
+ type: 'normal'
937
+ },
938
+ duration: 3000
939
+ });
940
+ }
941
+ }, {
942
+ key: "_unmuteAllAudio",
943
+ value: function _unmuteAllAudio() {
944
+ this._securityStore.setAllowUnmuteSelfAudio(true);
945
+ }
946
+
947
+ //允许自我解除静音
948
+ }, {
949
+ key: "_enableSelfUnmute",
950
+ value: function _enableSelfUnmute(enable) {
951
+ this._securityStore.setAllowUnmuteSelfAudio(enable);
952
+ }
953
+ }, {
954
+ key: "_enableOpenVideo",
955
+ value: function _enableOpenVideo(enable) {
956
+ this._securityStore.setAllowUnmuteSelfVideo(enable);
957
+ }
958
+ }, {
959
+ key: "_revokeHost",
960
+ value: function _revokeHost() {
961
+ if (!this._securityStore.hasRevokeHostPermission() || this._userControl.getLocalUser().userRole === _type.FcrUserRole.HOST) {
962
+ return;
963
+ }
964
+
965
+ // find current host
966
+ var hostUser;
967
+ this.userMap.forEach(function (user) {
968
+ if (user.userInfo.userRole === _type.FcrUserRole.HOST) {
969
+ hostUser = user.userInfo;
970
+ }
971
+ });
972
+ if (hostUser) {
973
+ this._userControl.revokeHost(hostUser.userId);
974
+ }
975
+ }
976
+ }, {
977
+ key: "_playJoinLeaveSound",
978
+ value: function _playJoinLeaveSound() {
979
+ // TODO
980
+ }
981
+ }, {
982
+ key: "_lockRoom",
983
+ value: function _lockRoom(enable) {
984
+ this._uiEventStore.showToast({
985
+ type: 'info',
986
+ message: enable ? (0, _i18n.transI18n)('fmt_uimanager_tips_meetinglocked') : (0, _i18n.transI18n)('fmt_uimanager_tips_meetingunlocked')
987
+ });
988
+ this._securityStore.setLockRoomEnabled(enable);
989
+ }
990
+ }, {
991
+ key: "_enableWaitingRoom",
992
+ value: function _enableWaitingRoom(enable) {
993
+ this._securityStore.setLockRoomEnabled(enable);
994
+ }
995
+ }, {
996
+ key: "_enableRename",
997
+ value: function _enableRename(enable) {
998
+ // TODO
999
+ // const isAllowChangeSelfName = this._securityStore.allowChangeSelfName();
1000
+ this._securityStore.setAllowChangeSelfName();
1001
+ }
1002
+ // 所有人加入会议时静音
1003
+ }, {
1004
+ key: "enableJoinWithMuteAudio",
1005
+ value: function enableJoinWithMuteAudio(enable) {
1006
+ this._securityStore.setAllowJoinWithMuteAudio(enable);
1007
+ }
1008
+ }, {
1009
+ key: "_onAudioVolumeUpdated",
1010
+ value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
1011
+ var users = this._streamControl.getStreams();
1012
+ var user = users[streamId];
1013
+ if (!user) {
1014
+ return;
1015
+ }
1016
+ this.audioVolumeMap.set(user.owner.userId, volume);
1017
+ }
1018
+ }, {
1019
+ key: "_updateUserBoardState",
1020
+ value: function _updateUserBoardState(modifiedUser) {
1021
+ var _this$_roomControl$ge = this._roomControl.getWhiteboardControl().getBoardActiveInfo(),
1022
+ isActive = _this$_roomControl$ge.isActive,
1023
+ ownerUserId = _this$_roomControl$ge.ownerUserId;
1024
+ if (!ownerUserId && !modifiedUser) return;
1025
+ var ownerUser = this._userControl.getUser(ownerUserId);
1026
+ var targetUser = modifiedUser || ownerUser;
1027
+ this._dataSource.update(!isActive ? ownerUser : targetUser, !isActive ? isActive : ownerUserId === (targetUser === null || targetUser === void 0 ? void 0 : targetUser.userId) && isActive);
1028
+ }
1029
+ }, {
1030
+ key: "_handleRemoteUserJoined",
1031
+ value: function _handleRemoteUserJoined(roomId, events) {
1032
+ var _this7 = this;
1033
+ events.forEach(function (event) {
1034
+ var modifiedUser = event.modifiedUser;
1035
+ _this7._dataSource.add(modifiedUser, _this7._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this7._userControl.getLocalUser().userId);
1036
+ _this7._updateUserBoardState(modifiedUser);
1037
+ });
1038
+ }
1039
+ }, {
1040
+ key: "_handleRemoteUserLeft",
1041
+ value: function _handleRemoteUserLeft(roomId, events) {
1042
+ var _this8 = this;
1043
+ events.forEach(function (event) {
1044
+ var modifiedUser = event.modifiedUser;
1045
+ _this8._dataSource["delete"](modifiedUser);
1046
+ _this8._updateUserBoardState(modifiedUser);
1047
+ });
1048
+ }
1049
+ }, {
1050
+ key: "_onUserInfoUpdated",
1051
+ value: function _onUserInfoUpdated(roomId, event) {
1052
+ var _this$userMap$get7;
1053
+ var targetUser = event.modifiedUser;
1054
+ this._updateUserBoardState(targetUser);
1055
+ this._dataSource.update(targetUser);
1056
+ var originUser = (_this$userMap$get7 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo;
1057
+ var _this$_userControl$ge2 = this._userControl.getLocalUser(),
1058
+ localUserId = _this$_userControl$ge2.userId,
1059
+ localUserRole = _this$_userControl$ge2.userRole;
1060
+ var effectSelf = targetUser.userId === localUserId;
1061
+ if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
1062
+ // 参会者变管理
1063
+ if (targetUser.userRole === _type.FcrUserRole.HOST || targetUser.userRole === _type.FcrUserRole.COHOST) {
1064
+ var userTxt = targetUser.userRole === _type.FcrUserRole.HOST ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
1065
+ this._uiEventStore.showToast({
1066
+ type: effectSelf ? 'info' : 'normal',
1067
+ message: effectSelf ? "".concat((0, _i18n.transI18n)('fmt_uimanager_labels_designate')).concat(userTxt) : (0, _i18n.transI18n)('fmt_uimanager_labels_Becoming', {
1068
+ reason1: "".concat(targetUser.userName, " ").concat(this._isHost(localUserRole) ? '' : (0, _i18n.transI18n)('fmt_pairicipant_label_Now')),
1069
+ reason2: userTxt
1070
+ })
1071
+ });
1072
+ }
1073
+
1074
+ // 管理变参会者
1075
+ if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) === _type.FcrUserRole.COHOST && targetUser.userRole !== _type.FcrUserRole.COHOST) {
1076
+ this._uiEventStore.showToast({
1077
+ type: effectSelf ? 'error' : 'normal',
1078
+ message: effectSelf ? (0, _i18n.transI18n)('fmt_additional_tips_cohostbeenrevoke') : this._isHost(localUserRole) ? (0, _i18n.transI18n)('fmt_additional_tips_cohostbeenrevoke', {
1079
+ reason1: targetUser.userName
1080
+ }) : (0, _i18n.transI18n)('fmt_additional_tips_nolongercohost', {
1081
+ reason1: targetUser.userName
1082
+ }),
1083
+ duration: 3000
1084
+ });
1085
+ }
1086
+ }
1087
+ this._updateLocalUserRole(localUserRole);
1088
+ this._refreshCurrentPerspectiveType();
1089
+ }
1090
+ }, {
1091
+ key: "_initUserList",
1092
+ value: function _initUserList() {
1093
+ this._refreshCurrentPerspectiveType();
1094
+ var users = this._userControl.getUsers();
1095
+ for (var _i = 0, _Object$entries = Object.entries(users); _i < _Object$entries.length; _i++) {
1096
+ var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
1097
+ userId = _Object$entries$_i[0],
1098
+ user = _Object$entries$_i[1];
1099
+ this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
1100
+ }
1101
+ }
1102
+ }, {
1103
+ key: "_handleStreamsAdded",
1104
+ value: function _handleStreamsAdded(roomId, events) {
1105
+ var _this9 = this;
1106
+ events.forEach(function (e) {
1107
+ var modifiedStream = e.modifiedStream;
1108
+ _this9._dataSource.updateWithStreamAdd(modifiedStream);
1109
+ });
1110
+ }
1111
+ }, {
1112
+ key: "_handleStreamsUpdated",
1113
+ value: function _handleStreamsUpdated(roomId, events) {
1114
+ var _this10 = this;
1115
+ events.forEach(function (e) {
1116
+ var modifiedStream = e.modifiedStream;
1117
+ _this10._dataSource.update(modifiedStream);
1118
+ });
1119
+ }
1120
+ }, {
1121
+ key: "_handleStreamsRemoved",
1122
+ value: function _handleStreamsRemoved(roomId, events) {
1123
+ var _this11 = this;
1124
+ events.forEach(function (e) {
1125
+ var modifiedStream = e.modifiedStream;
1126
+ _this11._dataSource.updateWithStreamRemove(modifiedStream);
1127
+ });
1128
+ }
1129
+ }, {
1130
+ key: "_refreshCurrentPerspectiveType",
1131
+ value: function _refreshCurrentPerspectiveType() {
1132
+ var _this$_userControl$ge3;
1133
+ var localUserUid = (_this$_userControl$ge3 = this._userControl.getLocalUser()) === null || _this$_userControl$ge3 === void 0 ? void 0 : _this$_userControl$ge3.userId;
1134
+ if (!localUserUid) {
1135
+ this.currentPerspectiveType = 'attendee';
1136
+ return;
1137
+ }
1138
+ var localUser = this._userControl.getUser(localUserUid);
1139
+ if (!localUser) {
1140
+ this.currentPerspectiveType = 'attendee';
1141
+ return;
1142
+ }
1143
+ if (localUser.userRole === _type.FcrUserRole.HOST) {
1144
+ this.currentPerspectiveType = 'host';
1145
+ return;
1146
+ }
1147
+ if (localUser.userRole === _type.FcrUserRole.COHOST) {
1148
+ this.currentPerspectiveType = 'cohost';
1149
+ return;
1150
+ }
1151
+ this.currentPerspectiveType = 'attendee';
1152
+ }
1153
+ }, {
1154
+ key: "hasRevokeHostPermission",
1155
+ get: function get() {
1156
+ return this._securityStore.hasRevokeHostPermission() && this.localUserRole !== _type.FcrUserRole.HOST;
1157
+ }
1158
+ }, {
1159
+ key: "getAllowedOperations",
1160
+ value: function getAllowedOperations(targetRole, isSelf) {
1161
+ return this._securityStore.getAllowedOperations(targetRole, isSelf);
1162
+ }
1163
+ }, {
1164
+ key: "_onPeerSessionReceived",
1165
+ value: function _onPeerSessionReceived(session) {
1166
+ var _this$_userControl$ge4,
1167
+ _this12 = this;
1168
+ if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
1169
+ return;
1170
+ }
1171
+ this._processedUserOpenDeviceRequests.add(session.sessionId);
1172
+ var localUserUid = (_this$_userControl$ge4 = this._userControl.getLocalUser()) === null || _this$_userControl$ge4 === void 0 ? void 0 : _this$_userControl$ge4.userId;
1173
+ if (!localUserUid) {
1174
+ return;
1175
+ }
1176
+ var localUser = this._streamControl.getStreamsByUserId(localUserUid).find(function (user) {
1177
+ return user.videoSourceType === _type3.AgoraRteVideoSourceType.CAMERA;
1178
+ });
1179
+ if (!localUser) {
1180
+ return;
1181
+ }
1182
+ var localUserHasAudio = this._deviceStore.microphoneEnabled;
1183
+ var localUserHasVideo = this._deviceStore.cameraEnabled;
1184
+ var sessionKey = session.sessionKey,
1185
+ payload = session.payload;
1186
+ if (sessionKey === _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA) {
1187
+ if (localUserHasVideo) {
1188
+ this._peerSessionControl.acceptPeerSession(session);
1189
+ return;
1190
+ }
1191
+ var _ref8 = payload,
1192
+ sender = _ref8.sender;
1193
+ this.openConfirmDialog({
1194
+ title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_video_title', {
1195
+ reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[sender.userRole])
1196
+ }),
1197
+ content: (0, _i18n.transI18n)('fmt_additional_tips_cameraturnon'),
1198
+ okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
1199
+ cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
1200
+ onOk: function onOk() {
1201
+ _this12._peerSessionControl.acceptPeerSession(session);
1202
+ _this12._deviceStreamStore.enableCameraWithStream(true);
1203
+ _this12._uiEventStore.closeConfirmDialog();
1204
+ },
1205
+ onCancel: function onCancel() {
1206
+ _this12._peerSessionControl.rejectPeerSession(session);
1207
+ _this12._uiEventStore.closeConfirmDialog();
1208
+ }
1209
+ }, _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA);
1210
+ return;
1211
+ }
1212
+ if (sessionKey === _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE) {
1213
+ if (localUserHasAudio) {
1214
+ this._peerSessionControl.acceptPeerSession(session);
1215
+ return;
1216
+ }
1217
+ var _ref9 = payload,
1218
+ _sender = _ref9.sender;
1219
+ this.openConfirmDialog({
1220
+ title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
1221
+ reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[_sender.userRole])
1222
+ }),
1223
+ content: (0, _i18n.transI18n)('fmt_additional_tips_agreeturnon'),
1224
+ okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
1225
+ cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
1226
+ onOk: function onOk() {
1227
+ _this12._peerSessionControl.acceptPeerSession(session);
1228
+ _this12._deviceStreamStore.enableMicrophoneWithStream(true);
1229
+ _this12._uiEventStore.closeConfirmDialog();
1230
+ },
1231
+ onCancel: function onCancel() {
1232
+ _this12._peerSessionControl.rejectPeerSession(session);
1233
+ _this12._uiEventStore.closeConfirmDialog();
1234
+ }
1235
+ }, _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
1236
+ }
1237
+ }
1238
+ }, {
1239
+ key: "_onPeerSessionAccepted",
1240
+ value: function _onPeerSessionAccepted(session) {
1241
+ this._updateSessionTimestamp(session);
1242
+ }
1243
+ }, {
1244
+ key: "_onPeerSessionRejected",
1245
+ value: function _onPeerSessionRejected(session) {
1246
+ this._updateSessionTimestamp(session);
1247
+ }
1248
+ }, {
1249
+ key: "_updateSessionTimestamp",
1250
+ value: function _updateSessionTimestamp(session) {
1251
+ var responderId = session.responderId,
1252
+ sessionKey = session.sessionKey;
1253
+ switch (sessionKey) {
1254
+ case _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA:
1255
+ this._unmuteVideoTimestamp["delete"](responderId);
1256
+ break;
1257
+ case _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE:
1258
+ this._unmuteAudioTimestamp["delete"](responderId);
1259
+ break;
1260
+ }
1261
+ }
1262
+ }, {
1263
+ key: "_sendEvent",
1264
+ value: function _sendEvent(action, payload) {
1265
+ (0, _rendererEvent.sendEvent)({
1266
+ action: action,
1267
+ payload: payload
1268
+ });
1269
+ }
1270
+ }, {
1271
+ key: "_addReactions",
1272
+ value: function _addReactions() {
1273
+ var _this13 = this;
1274
+ this._disposers.push((0, _mobx.reaction)(function () {
1275
+ return _this13._participantsWindowActive;
1276
+ }, function (active) {
1277
+ if (active) {
1278
+ _this13._sendEvent(_constant.RendererEventAction.INIT_PARTICIPANT_LIST, {
1279
+ userList: _this13.userList,
1280
+ perspectiveType: _this13.currentPerspectiveType,
1281
+ allowChangeSelfName: _this13._securityStore.allowChangeSelfName(),
1282
+ allowChat: _this13._securityStore.allowChat(),
1283
+ allowJoinWithMuteAudio: _this13._securityStore.allowJoinWithMuteAudio(),
1284
+ allowShareScreen: _this13._securityStore.allowScreenShareAndBoard(),
1285
+ allowUnmuteSelfVideo: _this13._securityStore.allowUnmuteSelfVideo(),
1286
+ allowUnmuteSelfAudio: _this13._securityStore.allowUnmuteSelfAudio(),
1287
+ isLockRoomEnabled: _this13._securityStore.isLockRoomEnabled(),
1288
+ isWaitingRoomEnabled: _this13._securityStore.isWaitingRoomEnabled(),
1289
+ hasRevokeHostPermission: _this13._securityStore.hasRevokeHostPermission() && _this13._userControl.getLocalUser().userRole !== _type.FcrUserRole.HOST,
1290
+ userRole: _this13._userControl.getLocalUser().userRole
1291
+ });
1292
+ }
1293
+ }));
1294
+ this._disposers.push((0, _mobx.reaction)(function () {
1295
+ return _this13.userList;
1296
+ }, function (list) {
1297
+ (0, _rendererEvent.sendEvent)({
1298
+ action: _constant.RendererEventAction.UPDATE_PARTICIPANT,
1299
+ payload: list
1300
+ });
1301
+ }));
1302
+ }
1303
+ }, {
1304
+ key: "_isCohost",
1305
+ value: function _isCohost(userRole) {
1306
+ return userRole === _type.FcrUserRole.COHOST;
1307
+ }
1308
+ }, {
1309
+ key: "_isHost",
1310
+ value: function _isHost(userRole) {
1311
+ return userRole === _type.FcrUserRole.HOST;
1312
+ }
1313
+ }, {
1314
+ key: "_updateLocalUserRole",
1315
+ value: function _updateLocalUserRole(userRole) {
1316
+ this.localUserRole = userRole;
1317
+ }
1318
+ }]);
1319
+ }();
1320
+ _ParticipantStore = ParticipantStore;
1321
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_handleEventDecs, 18, "_handleEvent"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_mobx.computed, 3, "userList"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_decorator.bound, 2, "getMicStreamVolume"], [_mobx.computed, 3, "localMicVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_kickOutUserDecs, 18, "_kickOutUser"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_onUserInfoUpdatedDecs, 18, "_onUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"]], []).e, 13);
1322
+ _init__mainList = _applyDecs$e[0];
1323
+ _init__participantsWindowActive = _applyDecs$e[1];
1324
+ _init_currentPerspectiveType = _applyDecs$e[2];
1325
+ _init_audioVolumeMap = _applyDecs$e[3];
1326
+ _init_enableParticipantsJoinWithMute = _applyDecs$e[4];
1327
+ _init_searchText = _applyDecs$e[5];
1328
+ _init_currentModal = _applyDecs$e[6];
1329
+ _init_localUserRole = _applyDecs$e[7];
1330
+ _init_spotlightStreamId = _applyDecs$e[8];
1331
+ _init_enableSpotlight = _applyDecs$e[9];
1332
+ _init_mergeConfirmDialog = _applyDecs$e[10];
1333
+ _init_mergeUserId = _applyDecs$e[11];
1334
+ _initProto = _applyDecs$e[12];