fcr-ui-scene 3.4.4 → 3.4.5

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 (653) hide show
  1. package/package.json +5 -5
  2. package/lib/ scenes/base.d.ts +0 -10
  3. package/lib/ scenes/base.js +0 -75
  4. package/lib/ scenes/main-scene.d.ts +0 -43
  5. package/lib/ scenes/main-scene.js +0 -368
  6. package/lib/ scenes/waiting-scene.d.ts +0 -31
  7. package/lib/ scenes/waiting-scene.js +0 -119
  8. package/lib/common/device-store.d.ts +0 -148
  9. package/lib/common/device-store.js +0 -1571
  10. package/lib/common/device-stream-store.d.ts +0 -31
  11. package/lib/common/device-stream-store.js +0 -532
  12. package/lib/common/event-store.d.ts +0 -144
  13. package/lib/common/event-store.js +0 -291
  14. package/lib/common/remote-renderer.d.ts +0 -15
  15. package/lib/common/remote-renderer.js +0 -138
  16. package/lib/common/room-store.d.ts +0 -58
  17. package/lib/common/room-store.js +0 -402
  18. package/lib/common/security-store.d.ts +0 -121
  19. package/lib/common/security-store.js +0 -969
  20. package/lib/common/type.d.ts +0 -8
  21. package/lib/common/type.js +0 -6
  22. package/lib/electron/bootstrap.d.ts +0 -1
  23. package/lib/electron/bootstrap.js +0 -56
  24. package/lib/electron/dev.d.ts +0 -1
  25. package/lib/electron/dev.js +0 -51
  26. package/lib/error-fallback.css +0 -62
  27. package/lib/error-fallback.d.ts +0 -2
  28. package/lib/error-fallback.js +0 -19
  29. package/lib/fragments/base.d.ts +0 -10
  30. package/lib/fragments/base.js +0 -44
  31. package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +0 -1
  32. package/lib/fragments/control-bar/cloud-recording-buttons.js +0 -67
  33. package/lib/fragments/control-bar/context.d.ts +0 -2
  34. package/lib/fragments/control-bar/context.js +0 -9
  35. package/lib/fragments/control-bar/control-bar-store.d.ts +0 -152
  36. package/lib/fragments/control-bar/control-bar-store.js +0 -1296
  37. package/lib/fragments/control-bar/device/index.d.ts +0 -31
  38. package/lib/fragments/control-bar/device/index.js +0 -210
  39. package/lib/fragments/control-bar/index.css +0 -276
  40. package/lib/fragments/control-bar/index.d.ts +0 -26
  41. package/lib/fragments/control-bar/index.js +0 -233
  42. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +0 -109
  43. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +0 -3
  44. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +0 -60
  45. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +0 -2
  46. package/lib/fragments/control-bar/meeting-details/meeting-details.js +0 -179
  47. package/lib/fragments/control-bar/more-actions/index.css +0 -19
  48. package/lib/fragments/control-bar/more-actions/index.d.ts +0 -7
  49. package/lib/fragments/control-bar/more-actions/index.js +0 -264
  50. package/lib/fragments/control-bar/security-content/index.css +0 -24
  51. package/lib/fragments/control-bar/security-content/index.d.ts +0 -2
  52. package/lib/fragments/control-bar/security-content/index.js +0 -148
  53. package/lib/fragments/control-bar/share-state-nav/index.css +0 -70
  54. package/lib/fragments/control-bar/share-state-nav/index.d.ts +0 -10
  55. package/lib/fragments/control-bar/share-state-nav/index.js +0 -134
  56. package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +0 -1
  57. package/lib/fragments/control-bar/stop-live-streaming/index.js +0 -82
  58. package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +0 -11
  59. package/lib/fragments/control-bar/transfer-position-icon/index.js +0 -46
  60. package/lib/fragments/control-bar/view.d.ts +0 -1
  61. package/lib/fragments/control-bar/view.js +0 -321
  62. package/lib/fragments/live-streaming/context.d.ts +0 -2
  63. package/lib/fragments/live-streaming/context.js +0 -9
  64. package/lib/fragments/live-streaming/index.css +0 -11
  65. package/lib/fragments/live-streaming/index.d.ts +0 -11
  66. package/lib/fragments/live-streaming/index.js +0 -79
  67. package/lib/fragments/live-streaming/store.d.ts +0 -21
  68. package/lib/fragments/live-streaming/store.js +0 -238
  69. package/lib/fragments/live-streaming/view.d.ts +0 -2
  70. package/lib/fragments/live-streaming/view.js +0 -44
  71. package/lib/fragments/share-screen-selection/context.d.ts +0 -2
  72. package/lib/fragments/share-screen-selection/context.js +0 -9
  73. package/lib/fragments/share-screen-selection/index.css +0 -66
  74. package/lib/fragments/share-screen-selection/index.d.ts +0 -9
  75. package/lib/fragments/share-screen-selection/index.js +0 -94
  76. package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +0 -9
  77. package/lib/fragments/share-screen-selection/open-mic-tips.js +0 -55
  78. package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -35
  79. package/lib/fragments/share-screen-selection/selection-store.js +0 -352
  80. package/lib/fragments/share-screen-selection/tips.css +0 -33
  81. package/lib/fragments/share-screen-selection/view.d.ts +0 -9
  82. package/lib/fragments/share-screen-selection/view.js +0 -262
  83. package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +0 -5
  84. package/lib/fragments/toolbar/components/color-picker/components/color.js +0 -56
  85. package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +0 -1
  86. package/lib/fragments/toolbar/components/color-picker/components/panel.js +0 -118
  87. package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +0 -1
  88. package/lib/fragments/toolbar/components/color-picker/components/picker.js +0 -77
  89. package/lib/fragments/toolbar/components/color-picker/index.d.ts +0 -2
  90. package/lib/fragments/toolbar/components/color-picker/index.js +0 -57
  91. package/lib/fragments/toolbar/components/color-picker.d.ts +0 -2
  92. package/lib/fragments/toolbar/components/color-picker.js +0 -129
  93. package/lib/fragments/toolbar/components/eraser-picker.d.ts +0 -4
  94. package/lib/fragments/toolbar/components/eraser-picker.js +0 -75
  95. package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +0 -1
  96. package/lib/fragments/toolbar/components/extension-toolbar-item.js +0 -83
  97. package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +0 -1
  98. package/lib/fragments/toolbar/components/extra-tool-picker.js +0 -64
  99. package/lib/fragments/toolbar/components/fold-icon.d.ts +0 -2
  100. package/lib/fragments/toolbar/components/fold-icon.js +0 -41
  101. package/lib/fragments/toolbar/components/history.d.ts +0 -2
  102. package/lib/fragments/toolbar/components/history.js +0 -46
  103. package/lib/fragments/toolbar/components/pen-picker.d.ts +0 -4
  104. package/lib/fragments/toolbar/components/pen-picker.js +0 -134
  105. package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +0 -4
  106. package/lib/fragments/toolbar/components/screen-capture-picker.js +0 -86
  107. package/lib/fragments/toolbar/components/shape-picker.d.ts +0 -4
  108. package/lib/fragments/toolbar/components/shape-picker.js +0 -148
  109. package/lib/fragments/toolbar/components/toolbar-item.d.ts +0 -1
  110. package/lib/fragments/toolbar/components/toolbar-item.js +0 -42
  111. package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +0 -11
  112. package/lib/fragments/toolbar/components/transfer-position-icon/index.js +0 -46
  113. package/lib/fragments/toolbar/components/wrapper.d.ts +0 -1
  114. package/lib/fragments/toolbar/components/wrapper.js +0 -138
  115. package/lib/fragments/toolbar/hooks.d.ts +0 -16
  116. package/lib/fragments/toolbar/hooks.js +0 -256
  117. package/lib/fragments/toolbar/index.d.ts +0 -12
  118. package/lib/fragments/toolbar/index.js +0 -80
  119. package/lib/fragments/toolbar/store.d.ts +0 -62
  120. package/lib/fragments/toolbar/store.js +0 -297
  121. package/lib/fragments/toolbar/style.css +0 -347
  122. package/lib/fragments/toolbar/view.d.ts +0 -1
  123. package/lib/fragments/toolbar/view.js +0 -36
  124. package/lib/modules/Interpreter/action/edit-btn/index.css +0 -3
  125. package/lib/modules/Interpreter/add-button/index.css +0 -4
  126. package/lib/modules/Interpreter/add-button/index.d.ts +0 -11
  127. package/lib/modules/Interpreter/add-button/index.js +0 -43
  128. package/lib/modules/Interpreter/config.d.ts +0 -16
  129. package/lib/modules/Interpreter/config.js +0 -17
  130. package/lib/modules/Interpreter/constant.d.ts +0 -55
  131. package/lib/modules/Interpreter/constant.js +0 -100
  132. package/lib/modules/Interpreter/context.d.ts +0 -2
  133. package/lib/modules/Interpreter/context.js +0 -9
  134. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +0 -5
  135. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +0 -53
  136. package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +0 -5
  137. package/lib/modules/Interpreter/footer/components/set-btn/index.js +0 -49
  138. package/lib/modules/Interpreter/index.css +0 -15
  139. package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +0 -6
  140. package/lib/modules/Interpreter/tooltip-wrapper/index.js +0 -30
  141. package/lib/modules/action-bar/Interpreter/index.d.ts +0 -6
  142. package/lib/modules/action-bar/Interpreter/index.js +0 -41
  143. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +0 -20
  144. package/lib/modules/action-bar/action-bar-collapes-items.js +0 -225
  145. package/lib/modules/action-bar/apps/app-item/index.css +0 -35
  146. package/lib/modules/action-bar/apps/app-item/index.d.ts +0 -12
  147. package/lib/modules/action-bar/apps/app-item/index.js +0 -61
  148. package/lib/modules/action-bar/apps/appitems.d.ts +0 -5
  149. package/lib/modules/action-bar/apps/appitems.js +0 -45
  150. package/lib/modules/action-bar/apps/index.css +0 -8
  151. package/lib/modules/action-bar/apps/index.d.ts +0 -4
  152. package/lib/modules/action-bar/apps/index.js +0 -57
  153. package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +0 -9
  154. package/lib/modules/action-bar/apps/useAppItemOptions.js +0 -29
  155. package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +0 -10
  156. package/lib/modules/action-bar/apps/useBeautyBackground.js +0 -34
  157. package/lib/modules/action-bar/apps/useInterpreter.d.ts +0 -14
  158. package/lib/modules/action-bar/apps/useInterpreter.js +0 -37
  159. package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +0 -16
  160. package/lib/modules/action-bar/apps/useLiveStreaming.js +0 -41
  161. package/lib/modules/action-bar/board/index.d.ts +0 -4
  162. package/lib/modules/action-bar/board/index.js +0 -34
  163. package/lib/modules/action-bar/breakout-room/index.d.ts +0 -4
  164. package/lib/modules/action-bar/breakout-room/index.js +0 -32
  165. package/lib/modules/action-bar/chat/index.css +0 -80
  166. package/lib/modules/action-bar/chat/index.d.ts +0 -5
  167. package/lib/modules/action-bar/chat/index.js +0 -152
  168. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -7
  169. package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -43
  170. package/lib/modules/action-bar/components/device/index.css +0 -162
  171. package/lib/modules/action-bar/components/device/index.d.ts +0 -8
  172. package/lib/modules/action-bar/components/device/index.js +0 -611
  173. package/lib/modules/action-bar/components/item.d.ts +0 -27
  174. package/lib/modules/action-bar/components/item.js +0 -164
  175. package/lib/modules/action-bar/components/leave/assign-host.d.ts +0 -10
  176. package/lib/modules/action-bar/components/leave/assign-host.js +0 -64
  177. package/lib/modules/action-bar/components/leave/index.css +0 -126
  178. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +0 -18
  179. package/lib/modules/action-bar/components/leave/leave-meeting.js +0 -153
  180. package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
  181. package/lib/modules/action-bar/components/trigger-input-language-room/index.css +0 -86
  182. package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +0 -3
  183. package/lib/modules/action-bar/components/trigger-input-language-room/index.js +0 -215
  184. package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +0 -10
  185. package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +0 -8
  186. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +0 -22
  187. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +0 -3
  188. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +0 -75
  189. package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +0 -8
  190. package/lib/modules/action-bar/components/trigger-output-language-room/index.js +0 -98
  191. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +0 -5
  192. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +0 -66
  193. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +0 -5
  194. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +0 -37
  195. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
  196. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
  197. package/lib/modules/action-bar/context.d.ts +0 -2
  198. package/lib/modules/action-bar/context.js +0 -9
  199. package/lib/modules/action-bar/device/index.css +0 -157
  200. package/lib/modules/action-bar/device/index.d.ts +0 -8
  201. package/lib/modules/action-bar/device/index.js +0 -613
  202. package/lib/modules/action-bar/item-placement.d.ts +0 -7
  203. package/lib/modules/action-bar/item-placement.js +0 -18
  204. package/lib/modules/action-bar/item.d.ts +0 -27
  205. package/lib/modules/action-bar/item.js +0 -159
  206. package/lib/modules/action-bar/leave/assign-host.d.ts +0 -7
  207. package/lib/modules/action-bar/leave/assign-host.js +0 -66
  208. package/lib/modules/action-bar/leave/index.css +0 -116
  209. package/lib/modules/action-bar/leave/index.d.ts +0 -3
  210. package/lib/modules/action-bar/leave/index.js +0 -115
  211. package/lib/modules/action-bar/leave/leave-meeting.d.ts +0 -6
  212. package/lib/modules/action-bar/leave/leave-meeting.js +0 -135
  213. package/lib/modules/action-bar/live-streaming/index.d.ts +0 -4
  214. package/lib/modules/action-bar/live-streaming/index.js +0 -39
  215. package/lib/modules/action-bar/more/index.css +0 -114
  216. package/lib/modules/action-bar/more/index.d.ts +0 -5
  217. package/lib/modules/action-bar/more/index.js +0 -80
  218. package/lib/modules/action-bar/more/poppover-content.d.ts +0 -8
  219. package/lib/modules/action-bar/more/poppover-content.js +0 -379
  220. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +0 -58
  221. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +0 -8
  222. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +0 -100
  223. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +0 -56
  224. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +0 -5
  225. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +0 -33
  226. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  227. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  228. package/lib/modules/action-bar/notification-bar/index.css +0 -74
  229. package/lib/modules/action-bar/notification-bar/index.d.ts +0 -2
  230. package/lib/modules/action-bar/notification-bar/index.js +0 -99
  231. package/lib/modules/action-bar/participants/index.css +0 -9
  232. package/lib/modules/action-bar/participants/index.d.ts +0 -5
  233. package/lib/modules/action-bar/participants/index.js +0 -75
  234. package/lib/modules/action-bar/record/index.css +0 -39
  235. package/lib/modules/action-bar/record/index.d.ts +0 -5
  236. package/lib/modules/action-bar/record/index.js +0 -161
  237. package/lib/modules/action-bar/record/stop-record-dialog.d.ts +0 -5
  238. package/lib/modules/action-bar/record/stop-record-dialog.js +0 -48
  239. package/lib/modules/action-bar/respond/index.d.ts +0 -4
  240. package/lib/modules/action-bar/respond/index.js +0 -32
  241. package/lib/modules/action-bar/screen-share/index.d.ts +0 -4
  242. package/lib/modules/action-bar/screen-share/index.js +0 -97
  243. package/lib/modules/action-bar/screen-share/submenu.d.ts +0 -1
  244. package/lib/modules/action-bar/screen-share/submenu.js +0 -160
  245. package/lib/modules/action-bar/security/drop-menu.d.ts +0 -1
  246. package/lib/modules/action-bar/security/drop-menu.js +0 -197
  247. package/lib/modules/action-bar/security/index.d.ts +0 -4
  248. package/lib/modules/action-bar/security/index.js +0 -50
  249. package/lib/modules/action-bar/settings/index.d.ts +0 -4
  250. package/lib/modules/action-bar/settings/index.js +0 -41
  251. package/lib/modules/action-bar/smaller.d.ts +0 -1
  252. package/lib/modules/action-bar/smaller.js +0 -52
  253. package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
  254. package/lib/modules/action-bar/switch-input-language-room/index.css +0 -86
  255. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +0 -16
  256. package/lib/modules/action-bar/switch-input-language-room/index.js +0 -236
  257. package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +0 -1
  258. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +0 -197
  259. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +0 -18
  260. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +0 -14
  261. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +0 -72
  262. package/lib/modules/action-bar/switch-output-language-room/index.d.ts +0 -12
  263. package/lib/modules/action-bar/switch-output-language-room/index.js +0 -303
  264. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +0 -58
  265. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +0 -8
  266. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +0 -100
  267. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +0 -56
  268. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +0 -5
  269. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +0 -33
  270. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  271. package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
  272. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +0 -74
  273. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +0 -2
  274. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +0 -99
  275. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  276. package/lib/modules/action-bar/trigger-input-language-room/index.css +0 -86
  277. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
  278. package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
  279. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
  280. package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
  281. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +0 -22
  282. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
  283. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +0 -75
  284. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
  285. package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
  286. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
  287. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
  288. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
  289. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
  290. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
  291. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
  292. package/lib/modules/action-bar/type.d.ts +0 -6
  293. package/lib/modules/action-bar/type.js +0 -13
  294. package/lib/modules/chat/chat-bar/index.css +0 -85
  295. package/lib/modules/chat/chat-bar/index.d.ts +0 -11
  296. package/lib/modules/chat/chat-bar/index.js +0 -144
  297. package/lib/modules/chat/chat-select/index.css +0 -181
  298. package/lib/modules/chat/chat-select/index.d.ts +0 -12
  299. package/lib/modules/chat/chat-select/index.js +0 -226
  300. package/lib/modules/chat/chat.d.ts +0 -11
  301. package/lib/modules/chat/chat.js +0 -387
  302. package/lib/modules/chat/components/chat-select/select-input/index.d.ts +0 -7
  303. package/lib/modules/chat/components/chat-select/select-input/index.js +0 -35
  304. package/lib/modules/chat/components/chat-select/select-item/index.d.ts +0 -12
  305. package/lib/modules/chat/components/chat-select/select-item/index.js +0 -153
  306. package/lib/modules/chat/components/chat-tabs/index.d.ts +0 -2
  307. package/lib/modules/chat/components/chat-tabs/index.js +0 -61
  308. package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +0 -2
  309. package/lib/modules/chat/components/message-list/chat-empty/index.js +0 -26
  310. package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +0 -7
  311. package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +0 -55
  312. package/lib/modules/chat/components/message-list/message-item/index.d.ts +0 -15
  313. package/lib/modules/chat/components/message-list/message-item/index.js +0 -279
  314. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +0 -9
  315. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +0 -67
  316. package/lib/modules/chat/contex.d.ts +0 -2
  317. package/lib/modules/chat/contex.js +0 -9
  318. package/lib/modules/chat/demo-wrapper.d.ts +0 -1
  319. package/lib/modules/chat/demo-wrapper.js +0 -42
  320. package/lib/modules/chat/message-list.d.ts +0 -22
  321. package/lib/modules/chat/message-list.js +0 -633
  322. package/lib/modules/components/device-control/type.d.ts +0 -6
  323. package/lib/modules/components/device-control/type.js +0 -13
  324. package/lib/modules/components/dialog-container/component/body.d.ts +0 -7
  325. package/lib/modules/components/dialog-container/component/body.js +0 -46
  326. package/lib/modules/components/dialog-container/index.css +0 -78
  327. package/lib/modules/components/dialog-container/index.d.ts +0 -11
  328. package/lib/modules/components/dialog-container/index.js +0 -110
  329. package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +0 -6
  330. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +0 -36
  331. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -40
  332. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +0 -170
  333. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -11
  334. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +0 -105
  335. package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +0 -9
  336. package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +0 -42
  337. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +0 -11
  338. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +0 -159
  339. package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +0 -2
  340. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +0 -32
  341. package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +0 -16
  342. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -130
  343. package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +0 -12
  344. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +0 -57
  345. package/lib/modules/components/member-window/components/member-actions/index.d.ts +0 -3
  346. package/lib/modules/components/member-window/components/member-actions/index.js +0 -122
  347. package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +0 -2
  348. package/lib/modules/components/member-window/components/member-actions/libs/index.js +0 -24
  349. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +0 -21
  350. package/lib/modules/components/member-window/components/member-actions/provider.js +0 -77
  351. package/lib/modules/components/member-window/components/member-actions/store.d.ts +0 -48
  352. package/lib/modules/components/member-window/components/member-actions/store.js +0 -306
  353. package/lib/modules/components/member-window/components/member-board.d.ts +0 -2
  354. package/lib/modules/components/member-window/components/member-board.js +0 -63
  355. package/lib/modules/components/member-window/components/mic-volume.d.ts +0 -2
  356. package/lib/modules/components/member-window/components/mic-volume.js +0 -23
  357. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +0 -4
  358. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +0 -40
  359. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +0 -8
  360. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +0 -62
  361. package/lib/modules/components/member-window/components/video-player/index.d.ts +0 -9
  362. package/lib/modules/components/member-window/components/video-player/index.js +0 -38
  363. package/lib/modules/components/member-window/types.d.ts +0 -78
  364. package/lib/modules/components/member-window/types.js +0 -6
  365. package/lib/modules/components/toast/index.css +0 -12
  366. package/lib/modules/components/toast/index.d.ts +0 -10
  367. package/lib/modules/components/toast/index.js +0 -66
  368. package/lib/modules/components/toast/store.d.ts +0 -17
  369. package/lib/modules/components/toast/store.js +0 -149
  370. package/lib/modules/components/toast/view.d.ts +0 -2
  371. package/lib/modules/components/toast/view.js +0 -35
  372. package/lib/modules/connection-gateway/components/tabs/index.css +0 -31
  373. package/lib/modules/connection-gateway/components/tabs/index.d.ts +0 -4
  374. package/lib/modules/connection-gateway/components/tabs/index.js +0 -44
  375. package/lib/modules/control-bar/type.d.ts +0 -10
  376. package/lib/modules/control-bar/type.js +0 -18
  377. package/lib/modules/device-pretest/context.d.ts +0 -2
  378. package/lib/modules/device-pretest/context.js +0 -9
  379. package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
  380. package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
  381. package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
  382. package/lib/modules/dialog/components/confirm/electron.d.ts +0 -10
  383. package/lib/modules/dialog/components/confirm/electron.js +0 -84
  384. package/lib/modules/dialog/components/connection-gateway/index.css +0 -27
  385. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +0 -5
  386. package/lib/modules/dialog/components/operation-waiting-room/electron.js +0 -42
  387. package/lib/modules/dialog/components/operation-waiting-room/index.css +0 -44
  388. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +0 -5
  389. package/lib/modules/dialog/components/operation-waiting-room/index.js +0 -156
  390. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +0 -12
  391. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +0 -33
  392. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +0 -50
  393. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +0 -5
  394. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +0 -80
  395. package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +0 -2
  396. package/lib/modules/dialog/components/switch-language-channels/electron.js +0 -72
  397. package/lib/modules/dialog/components/switch-language-channels/index.css +0 -30
  398. package/lib/modules/dialog/components/switch-language-channels/index.d.ts +0 -4
  399. package/lib/modules/dialog/components/switch-language-channels/index.js +0 -63
  400. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +0 -36
  401. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +0 -3
  402. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +0 -47
  403. package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
  404. package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
  405. package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
  406. package/lib/modules/dialog/components/widget/electron.d.ts +0 -5
  407. package/lib/modules/dialog/components/widget/electron.js +0 -41
  408. package/lib/modules/dialog/components/widget/index.d.ts +0 -6
  409. package/lib/modules/dialog/components/widget/index.js +0 -41
  410. package/lib/modules/dialog/context.d.ts +0 -2
  411. package/lib/modules/dialog/context.js +0 -9
  412. package/lib/modules/dialog/type.d.ts +0 -84
  413. package/lib/modules/dialog/type.js +0 -6
  414. package/lib/modules/event-notification/context.d.ts +0 -2
  415. package/lib/modules/event-notification/context.js +0 -9
  416. package/lib/modules/event-notification/index.css +0 -58
  417. package/lib/modules/event-notification/index.d.ts +0 -13
  418. package/lib/modules/event-notification/index.js +0 -48
  419. package/lib/modules/event-notification/store.d.ts +0 -17
  420. package/lib/modules/event-notification/store.js +0 -133
  421. package/lib/modules/event-notification/view.d.ts +0 -5
  422. package/lib/modules/event-notification/view.js +0 -114
  423. package/lib/modules/event-toast/context.d.ts +0 -2
  424. package/lib/modules/event-toast/context.js +0 -9
  425. package/lib/modules/invite/context.d.ts +0 -2
  426. package/lib/modules/invite/context.js +0 -9
  427. package/lib/modules/invite/pstn-invite.d.ts +0 -2
  428. package/lib/modules/invite/pstn-invite.js +0 -271
  429. package/lib/modules/invite/voip-invite.d.ts +0 -1
  430. package/lib/modules/invite/voip-invite.js +0 -293
  431. package/lib/modules/layout/components/Layout.d.ts +0 -2
  432. package/lib/modules/layout/components/Layout.js +0 -193
  433. package/lib/modules/layout/context.d.ts +0 -2
  434. package/lib/modules/layout/context.js +0 -9
  435. package/lib/modules/layout/member-window/index.css +0 -419
  436. package/lib/modules/layout/member-window/index.d.ts +0 -74
  437. package/lib/modules/layout/member-window/index.js +0 -882
  438. package/lib/modules/layout/video-window-datasource.d.ts +0 -127
  439. package/lib/modules/layout/video-window-datasource.js +0 -1125
  440. package/lib/modules/live-streaming/context.d.ts +0 -2
  441. package/lib/modules/live-streaming/context.js +0 -9
  442. package/lib/modules/notification/context.d.ts +0 -2
  443. package/lib/modules/notification/context.js +0 -9
  444. package/lib/modules/participant/attendee/index.css +0 -18
  445. package/lib/modules/participant/attendee/index.d.ts +0 -39
  446. package/lib/modules/participant/attendee/index.js +0 -447
  447. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  448. package/lib/modules/participant/attendee/participants-more-action.js +0 -278
  449. package/lib/modules/participant/attendee/user-more-actions.d.ts +0 -22
  450. package/lib/modules/participant/attendee/user-more-actions.js +0 -76
  451. package/lib/modules/participant/can-moveable/index.d.ts +0 -1
  452. package/lib/modules/participant/can-moveable/index.js +0 -68
  453. package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +0 -3
  454. package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +0 -48
  455. package/lib/modules/participant/components/confirm-input/index.d.ts +0 -6
  456. package/lib/modules/participant/components/confirm-input/index.js +0 -49
  457. package/lib/modules/participant/components/drop-menu/util.d.ts +0 -5
  458. package/lib/modules/participant/components/drop-menu/util.js +0 -28
  459. package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +0 -6
  460. package/lib/modules/participant/components/participants/components/footer/components/buttons.js +0 -52
  461. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +0 -60
  462. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +0 -2
  463. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +0 -166
  464. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +0 -5
  465. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +0 -28
  466. package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +0 -13
  467. package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +0 -5
  468. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +0 -242
  469. package/lib/modules/participant/components/participants/components/footer/index.d.ts +0 -5
  470. package/lib/modules/participant/components/participants/components/footer/index.js +0 -47
  471. package/lib/modules/participant/components/participants/components/merge/index.d.ts +0 -11
  472. package/lib/modules/participant/components/participants/components/merge/index.js +0 -49
  473. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +0 -191
  474. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +0 -4
  475. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -204
  476. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +0 -49
  477. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +0 -5
  478. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -219
  479. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +0 -5
  480. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +0 -70
  481. package/lib/modules/participant/components/participants/components/participants/index.css +0 -104
  482. package/lib/modules/participant/components/participants/components/participants/index.d.ts +0 -3
  483. package/lib/modules/participant/components/participants/components/participants/index.js +0 -110
  484. package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +0 -2
  485. package/lib/modules/participant/components/participants/components/render-tab/index.js +0 -49
  486. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +0 -3
  487. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -48
  488. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +0 -6
  489. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +0 -28
  490. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +0 -7
  491. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +0 -39
  492. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +0 -69
  493. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +0 -5
  494. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -135
  495. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +0 -7
  496. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +0 -31
  497. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +0 -12
  498. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +0 -82
  499. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +0 -4
  500. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +0 -26
  501. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +0 -2
  502. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +0 -75
  503. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +0 -5
  504. package/lib/modules/participant/components/participants/components/render-user/index.js +0 -21
  505. package/lib/modules/participant/components/participants/render-tab/index.d.ts +0 -2
  506. package/lib/modules/participant/components/participants/render-tab/index.js +0 -49
  507. package/lib/modules/participant/components/participants/render-user/index.d.ts +0 -5
  508. package/lib/modules/participant/components/participants/render-user/index.js +0 -21
  509. package/lib/modules/participant/components/participants/types.d.ts +0 -96
  510. package/lib/modules/participant/components/participants/types.js +0 -37
  511. package/lib/modules/participant/components/user-action/audio-button/index.d.ts +0 -7
  512. package/lib/modules/participant/components/user-action/audio-button/index.js +0 -31
  513. package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +0 -12
  514. package/lib/modules/participant/components/user-action/move-actions-popover/index.js +0 -82
  515. package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +0 -4
  516. package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +0 -26
  517. package/lib/modules/participant/context.d.ts +0 -2
  518. package/lib/modules/participant/context.js +0 -9
  519. package/lib/modules/participant/room-control-drop-menu/index.css +0 -19
  520. package/lib/modules/participant/room-control-drop-menu/index.d.ts +0 -2
  521. package/lib/modules/participant/room-control-drop-menu/index.js +0 -188
  522. package/lib/modules/setting/context.d.ts +0 -2
  523. package/lib/modules/setting/context.js +0 -9
  524. package/lib/modules/share-screen/selection/index.css +0 -70
  525. package/lib/modules/share-screen/selection/index.d.ts +0 -9
  526. package/lib/modules/share-screen/selection/index.js +0 -259
  527. package/lib/modules/share-screen/share-state-bar/index.css +0 -76
  528. package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -4
  529. package/lib/modules/share-screen/share-state-bar/index.js +0 -98
  530. package/lib/modules/state-bar/context.d.ts +0 -2
  531. package/lib/modules/state-bar/context.js +0 -9
  532. package/lib/modules/video-window/components/deviceState/index.d.ts +0 -7
  533. package/lib/modules/video-window/components/deviceState/index.js +0 -75
  534. package/lib/modules/video-window/components/members/index.css +0 -51
  535. package/lib/modules/video-window/components/members/index.d.ts +0 -2
  536. package/lib/modules/video-window/components/members/index.js +0 -130
  537. package/lib/modules/video-window/components/speaking/index.css +0 -86
  538. package/lib/modules/video-window/components/speaking/index.d.ts +0 -3
  539. package/lib/modules/video-window/components/speaking/index.js +0 -48
  540. package/lib/modules/video-window/components/topControl/index.css +0 -35
  541. package/lib/modules/video-window/components/topControl/index.d.ts +0 -3
  542. package/lib/modules/video-window/components/topControl/index.js +0 -79
  543. package/lib/modules/video-window/context.d.ts +0 -2
  544. package/lib/modules/video-window/context.js +0 -9
  545. package/lib/modules/waiting-room-layout/context.d.ts +0 -2
  546. package/lib/modules/waiting-room-layout/context.js +0 -9
  547. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  548. package/lib/modules/waiting-room-layout/type.js +0 -1
  549. package/lib/modules/whiteboard/app.d.ts +0 -2
  550. package/lib/modules/whiteboard/app.js +0 -49
  551. package/lib/modules/widget/index.css +0 -17
  552. package/lib/modules/widget/index.d.ts +0 -10
  553. package/lib/modules/widget/index.js +0 -114
  554. package/lib/modules/widget/sdk.d.ts +0 -30
  555. package/lib/modules/widget/sdk.js +0 -221
  556. package/lib/modules/widget/store.d.ts +0 -14
  557. package/lib/modules/widget/store.js +0 -28
  558. package/lib/modules/widget/type.d.ts +0 -155
  559. package/lib/modules/widget/type.js +0 -6
  560. package/lib/modules/widget/view.d.ts +0 -2
  561. package/lib/modules/widget/view.js +0 -47
  562. package/lib/modules/widget/web-widget.d.ts +0 -29
  563. package/lib/modules/widget/web-widget.js +0 -234
  564. package/lib/providers/ability-provider.d.ts +0 -24
  565. package/lib/providers/ability-provider.js +0 -36
  566. package/lib/providers/widget-provider.d.ts +0 -44
  567. package/lib/providers/widget-provider.js +0 -167
  568. package/lib/scenes/base.d.ts +0 -10
  569. package/lib/scenes/base.js +0 -75
  570. package/lib/schema.d.ts +0 -114
  571. package/lib/schema.js +0 -77
  572. package/lib/shared-data-source/member-data.d.ts +0 -126
  573. package/lib/shared-data-source/member-data.js +0 -465
  574. package/lib/ui-node.d.ts +0 -25
  575. package/lib/ui-node.js +0 -156
  576. package/lib/utilities/extract.d.ts +0 -5
  577. package/lib/utilities/extract.js +0 -120
  578. package/lib/utilities/logger.d.ts +0 -8
  579. package/lib/utilities/logger.js +0 -42
  580. package/lib/utilities/validate-params.d.ts +0 -2
  581. package/lib/utilities/validate-params.js +0 -16
  582. package/lib/widget-sdk.d.ts +0 -2
  583. package/lib/widget-sdk.js +0 -13
  584. /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +0 -0
  585. /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.js +0 -0
  586. /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.css +0 -0
  587. /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.d.ts +0 -0
  588. /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +0 -0
  589. /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.css +0 -0
  590. /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.d.ts +0 -0
  591. /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.js +0 -0
  592. /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.css +0 -0
  593. /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +0 -0
  594. /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.js +0 -0
  595. /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.d.ts +0 -0
  596. /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +0 -0
  597. /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.css +0 -0
  598. /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +0 -0
  599. /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +0 -0
  600. /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.css +0 -0
  601. /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +0 -0
  602. /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +0 -0
  603. /package/lib/modules/{Interpreter → interpreter}/footer/index.css +0 -0
  604. /package/lib/modules/{Interpreter → interpreter}/footer/index.d.ts +0 -0
  605. /package/lib/modules/{Interpreter → interpreter}/footer/index.js +0 -0
  606. /package/lib/modules/{Interpreter → interpreter}/index.d.ts +0 -0
  607. /package/lib/modules/{Interpreter → interpreter}/index.js +0 -0
  608. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.css +0 -0
  609. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.d.ts +0 -0
  610. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +0 -0
  611. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
  612. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +0 -0
  613. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +0 -0
  614. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  615. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  616. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  617. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  618. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  619. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  620. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  621. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  622. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  623. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  624. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  625. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  626. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  627. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  628. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  629. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  630. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  631. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
  632. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -0
  633. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
  634. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +0 -0
  635. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +0 -0
  636. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
  637. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
  638. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +0 -0
  639. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +0 -0
  640. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +0 -0
  641. /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.css +0 -0
  642. /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.d.ts +0 -0
  643. /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.js +0 -0
  644. /package/lib/modules/{Interpreter → interpreter}/store.d.ts +0 -0
  645. /package/lib/modules/{Interpreter → interpreter}/store.js +0 -0
  646. /package/lib/modules/{Interpreter/footer/components → interpreter}/tooltip-wrapper/index.d.ts +0 -0
  647. /package/lib/modules/{Interpreter/footer/components → interpreter}/tooltip-wrapper/index.js +0 -0
  648. /package/lib/modules/{Interpreter → interpreter}/type.d.ts +0 -0
  649. /package/lib/modules/{Interpreter → interpreter}/type.js +0 -0
  650. /package/lib/modules/{Interpreter → interpreter}/utils.d.ts +0 -0
  651. /package/lib/modules/{Interpreter → interpreter}/utils.js +0 -0
  652. /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
  653. /package/lib/modules/{Interpreter → interpreter}/view.js +0 -0
@@ -1,1125 +0,0 @@
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.iterator.js");
6
- require("core-js/modules/es.symbol.to-primitive.js");
7
- require("core-js/modules/es.error.cause.js");
8
- require("core-js/modules/es.error.to-string.js");
9
- require("core-js/modules/es.array.from.js");
10
- require("core-js/modules/es.array.is-array.js");
11
- require("core-js/modules/es.array.slice.js");
12
- require("core-js/modules/es.date.to-primitive.js");
13
- require("core-js/modules/es.date.to-string.js");
14
- require("core-js/modules/es.function.name.js");
15
- require("core-js/modules/es.number.constructor.js");
16
- require("core-js/modules/es.object.create.js");
17
- require("core-js/modules/es.object.define-property.js");
18
- require("core-js/modules/es.object.get-own-property-descriptor.js");
19
- require("core-js/modules/es.regexp.exec.js");
20
- require("core-js/modules/es.regexp.test.js");
21
- require("core-js/modules/es.regexp.to-string.js");
22
- require("core-js/modules/esnext.function.metadata.js");
23
- require("core-js/modules/esnext.symbol.metadata.js");
24
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
25
- var _typeof = require("@babel/runtime/helpers/typeof");
26
- Object.defineProperty(exports, "__esModule", {
27
- value: true
28
- });
29
- exports.FcrUIVideoWindowDataSource = exports.FcrUIVideoWindowDataImpl = exports.FcrUISpeakerSpotlightPool = void 0;
30
- require("core-js/modules/es.array.filter.js");
31
- require("core-js/modules/es.array.find.js");
32
- require("core-js/modules/es.array.find-index.js");
33
- require("core-js/modules/es.array.find-last-index.js");
34
- require("core-js/modules/es.array.for-each.js");
35
- require("core-js/modules/es.array.iterator.js");
36
- require("core-js/modules/es.array.push.js");
37
- require("core-js/modules/es.array.some.js");
38
- require("core-js/modules/es.array.sort.js");
39
- require("core-js/modules/es.array.splice.js");
40
- require("core-js/modules/es.array.unshift.js");
41
- require("core-js/modules/es.date.now.js");
42
- require("core-js/modules/es.function.bind.js");
43
- require("core-js/modules/es.map.js");
44
- require("core-js/modules/es.object.assign.js");
45
- require("core-js/modules/es.object.to-string.js");
46
- require("core-js/modules/es.string.iterator.js");
47
- require("core-js/modules/es.weak-map.js");
48
- require("core-js/modules/esnext.async-iterator.filter.js");
49
- require("core-js/modules/esnext.async-iterator.find.js");
50
- require("core-js/modules/esnext.async-iterator.for-each.js");
51
- require("core-js/modules/esnext.async-iterator.some.js");
52
- require("core-js/modules/esnext.iterator.constructor.js");
53
- require("core-js/modules/esnext.iterator.filter.js");
54
- require("core-js/modules/esnext.iterator.find.js");
55
- require("core-js/modules/esnext.iterator.for-each.js");
56
- require("core-js/modules/esnext.iterator.some.js");
57
- require("core-js/modules/esnext.map.delete-all.js");
58
- require("core-js/modules/esnext.map.emplace.js");
59
- require("core-js/modules/esnext.map.every.js");
60
- require("core-js/modules/esnext.map.filter.js");
61
- require("core-js/modules/esnext.map.find.js");
62
- require("core-js/modules/esnext.map.find-key.js");
63
- require("core-js/modules/esnext.map.includes.js");
64
- require("core-js/modules/esnext.map.key-of.js");
65
- require("core-js/modules/esnext.map.map-keys.js");
66
- require("core-js/modules/esnext.map.map-values.js");
67
- require("core-js/modules/esnext.map.merge.js");
68
- require("core-js/modules/esnext.map.reduce.js");
69
- require("core-js/modules/esnext.map.some.js");
70
- require("core-js/modules/esnext.map.update.js");
71
- require("core-js/modules/esnext.weak-map.delete-all.js");
72
- require("core-js/modules/esnext.weak-map.emplace.js");
73
- require("core-js/modules/web.dom-collections.for-each.js");
74
- require("core-js/modules/web.dom-collections.iterator.js");
75
- require("core-js/modules/web.timers.js");
76
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
77
- var _readOnlyError2 = _interopRequireDefault(require("@babel/runtime/helpers/readOnlyError"));
78
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
79
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
80
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
81
- var _observable = require("agora-foundation/lib/utilities/observable");
82
- var _type = require("./type");
83
- var _mobx = require("mobx");
84
- var _type2 = require("fcr-core/lib/type");
85
- var _fcrCore = require("fcr-core");
86
- var _FcrUIVideoWindowDataImpl, _FcrUIVideoWindowDataSource;
87
- var _initProto, _init__videoStream, _init__audioStream, _init__spotlightEnabled, _init__isSpeakerSpotlight, _init__boardCanEdit, _init_isPin, _init_hasScreenSharing, _setVideoStreamDecs, _setVideoStreamOwnerInfoDecs, _setAudioStreamDecs, _setAudioStreamOwnerInfoDecs, _setPinDecs, _setSpotlightEnabledDecs, _setSpeakerSpotlightDecs, _setHasScreenSharingDecs, _setBoardCanEditDecs, _ref, _initProto2, _init_spotlightEnabled, _init_layoutType, _init_manualLayout, _init_pinLimitedCount, _init_mainListLimitedCount, _init_foldListLimitedCount, _init_mainList, _init_foldList, _setSpotlightEnabledDecs2, _setLayoutDecs, _onSpotlightRemovedDecs, _resetListDecs, _addBoardDecs, _updateBoardDecs, _removeBoardDecs, _mergePstnStreamOrInsertNewDataDecs, _addDecs, _updateDecs, _deleteDecs, _addPinDecs, _updateSpeakerSpotlightPositionDecs, _removePinDecs, _setSpeakerSpotlightDecs2, _toggleMainStreamDecs, _insertBeginningByPriorityDecs, _insertEndByPriorityDecs, _findInsertBeginningIndexDecs, _findInsertEndIndexDecs, _insertBoardDecs, _insertNewDataDecs, _ref3;
88
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
89
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
90
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
91
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
92
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
93
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
94
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
95
- 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"); }
96
- 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)]; } }; }
97
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
98
- 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); }
99
- 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; }
100
- 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; }
101
- var _A = /*#__PURE__*/new WeakMap();
102
- var _B = /*#__PURE__*/new WeakMap();
103
- var _C = /*#__PURE__*/new WeakMap();
104
- var _D = /*#__PURE__*/new WeakMap();
105
- var _E = /*#__PURE__*/new WeakMap();
106
- var _F = /*#__PURE__*/new WeakMap();
107
- var _G = /*#__PURE__*/new WeakMap();
108
- _ref = (_setVideoStreamDecs = [_mobx.action, _mobx.action.bound], _setVideoStreamOwnerInfoDecs = [_mobx.action, _mobx.action.bound], _setAudioStreamDecs = [_mobx.action, _mobx.action.bound], _setAudioStreamOwnerInfoDecs = [_mobx.action, _mobx.action.bound], _setPinDecs = [_mobx.action, _mobx.action.bound], _setSpotlightEnabledDecs = [_mobx.action, _mobx.action.bound], _setSpeakerSpotlightDecs = [_mobx.action, _mobx.action.bound], _setHasScreenSharingDecs = [_mobx.action, _mobx.action.bound], _setBoardCanEditDecs = [_mobx.action, _mobx.action.bound], "_boardUserInfo");
109
- var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/function () {
110
- function FcrUIVideoWindowDataImpl(type, _ref2, _placement, _isMySelf) {
111
- var videoStream = _ref2.videoStream,
112
- audioStream = _ref2.audioStream,
113
- boardUserInfo = _ref2.boardUserInfo;
114
- var layoutType = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _type.FcrUIVideoWindowLayoutType.Gallery;
115
- var spotlightEnabled = arguments.length > 5 ? arguments[5] : undefined;
116
- var canEdit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
117
- (0, _classCallCheck2["default"])(this, FcrUIVideoWindowDataImpl);
118
- (0, _defineProperty2["default"])(this, _ref, void _initProto(this));
119
- (0, _defineProperty2["default"])(this, "_layoutType", _type.FcrUIVideoWindowLayoutType.Gallery);
120
- _classPrivateFieldInitSpec(this, _A, _init__videoStream(this));
121
- _classPrivateFieldInitSpec(this, _B, _init__audioStream(this));
122
- _classPrivateFieldInitSpec(this, _C, _init__spotlightEnabled(this, true));
123
- _classPrivateFieldInitSpec(this, _D, _init__isSpeakerSpotlight(this, false));
124
- _classPrivateFieldInitSpec(this, _E, _init__boardCanEdit(this, false));
125
- (0, _defineProperty2["default"])(this, "needToSort", false);
126
- _classPrivateFieldInitSpec(this, _F, _init_isPin(this, false));
127
- _classPrivateFieldInitSpec(this, _G, _init_hasScreenSharing(this, false));
128
- this._placement = _placement;
129
- this._isMySelf = _isMySelf;
130
- this.type = type;
131
- this.setVideoStream(videoStream);
132
- this.setAudioStream(audioStream);
133
- this.setLayoutType(layoutType);
134
- this.setSpotlightEnabled(spotlightEnabled);
135
- this._boardUserInfo = boardUserInfo;
136
- this._boardCanEdit = canEdit;
137
- }
138
- return (0, _createClass2["default"])(FcrUIVideoWindowDataImpl, [{
139
- key: "_videoStream",
140
- get: function get() {
141
- return _classPrivateFieldGet(_A, this);
142
- },
143
- set: function set(v) {
144
- _classPrivateFieldSet(_A, this, v);
145
- }
146
- }, {
147
- key: "_audioStream",
148
- get: function get() {
149
- return _classPrivateFieldGet(_B, this);
150
- },
151
- set: function set(v) {
152
- _classPrivateFieldSet(_B, this, v);
153
- }
154
- }, {
155
- key: "_spotlightEnabled",
156
- get: function get() {
157
- return _classPrivateFieldGet(_C, this);
158
- },
159
- set: function set(v) {
160
- _classPrivateFieldSet(_C, this, v);
161
- }
162
- }, {
163
- key: "_isSpeakerSpotlight",
164
- get: function get() {
165
- return _classPrivateFieldGet(_D, this);
166
- },
167
- set: function set(v) {
168
- _classPrivateFieldSet(_D, this, v);
169
- }
170
- }, {
171
- key: "_boardCanEdit",
172
- get: function get() {
173
- return _classPrivateFieldGet(_E, this);
174
- },
175
- set: function set(v) {
176
- _classPrivateFieldSet(_E, this, v);
177
- }
178
- }, {
179
- key: "isPin",
180
- get: function get() {
181
- return _classPrivateFieldGet(_F, this);
182
- },
183
- set: function set(v) {
184
- _classPrivateFieldSet(_F, this, v);
185
- }
186
- }, {
187
- key: "hasScreenSharing",
188
- get: function get() {
189
- return _classPrivateFieldGet(_G, this);
190
- },
191
- set: function set(v) {
192
- _classPrivateFieldSet(_G, this, v);
193
- }
194
- }, {
195
- key: "isSpeakerSpotlight",
196
- get: function get() {
197
- return this._isSpeakerSpotlight && this._spotlightEnabled;
198
- }
199
- }, {
200
- key: "windowId",
201
- get: function get() {
202
- return this.type === _type.FcrUIWindowType.BOARD ? 'boardId' : this.videoStreamId || this.audioStreamId || '';
203
- }
204
- }, {
205
- key: "videoStreamId",
206
- get: function get() {
207
- var _this$_videoStream;
208
- return (_this$_videoStream = this._videoStream) === null || _this$_videoStream === void 0 ? void 0 : _this$_videoStream.streamId;
209
- }
210
- }, {
211
- key: "audioStreamId",
212
- get: function get() {
213
- var _this$_audioStream;
214
- return (_this$_audioStream = this._audioStream) === null || _this$_audioStream === void 0 ? void 0 : _this$_audioStream.streamId;
215
- }
216
- }, {
217
- key: "audioStreamConnectorType",
218
- get: function get() {
219
- var _this$_audioStream2;
220
- return ((_this$_audioStream2 = this._audioStream) === null || _this$_audioStream2 === void 0 ? void 0 : _this$_audioStream2.connectorType) || _fcrCore.FcrRoomConnectorType.NONE;
221
- }
222
- }, {
223
- key: "videoStreamConnectorType",
224
- get: function get() {
225
- var _this$_videoStream2;
226
- return ((_this$_videoStream2 = this._videoStream) === null || _this$_videoStream2 === void 0 ? void 0 : _this$_videoStream2.connectorType) || _fcrCore.FcrRoomConnectorType.NONE;
227
- }
228
-
229
- // @computed
230
- // get hasMicrophoneAudioStream() {
231
- // if (this.audioStreamConnectorType === FcrRoomConnectorType.NONE) {
232
- // return (
233
- // this._videoStream?.audioSourceState === FcrMediaSourceState.OPEN &&
234
- // (this._videoStream.streamType === FcrStreamType.BOTH ||
235
- // this._videoStream.streamType === FcrStreamType.AUDIO)
236
- // );
237
- // } else {
238
- // return true;
239
- // }
240
- // }
241
- }, {
242
- key: "hasMicrophoneAudioStream",
243
- get: function get() {
244
- if (this.audioStreamConnectorType === _fcrCore.FcrRoomConnectorType.NONE) {
245
- var _this$_videoStream3;
246
- return ((_this$_videoStream3 = this._videoStream) === null || _this$_videoStream3 === void 0 ? void 0 : _this$_videoStream3.audioSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
247
- } else {
248
- return true;
249
- }
250
- }
251
- }, {
252
- key: "phoneMicEnabled",
253
- get: function get() {
254
- if (this.audioStreamConnectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
255
- var _this$_audioStream3, _this$_videoStream4;
256
- return ((_this$_audioStream3 = this._audioStream) === null || _this$_audioStream3 === void 0 ? void 0 : _this$_audioStream3.audioSourceState) === _fcrCore.FcrMediaSourceState.OPEN || ((_this$_videoStream4 = this._videoStream) === null || _this$_videoStream4 === void 0 ? void 0 : _this$_videoStream4.streamType) === _fcrCore.FcrStreamType.BOTH;
257
- } else {
258
- return false;
259
- }
260
- }
261
- }, {
262
- key: "hasVideoStream",
263
- get: function get() {
264
- var _this$_videoStream5, _this$_videoStream6, _this$_videoStream7;
265
- return ((_this$_videoStream5 = this._videoStream) === null || _this$_videoStream5 === void 0 ? void 0 : _this$_videoStream5.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN && (((_this$_videoStream6 = this._videoStream) === null || _this$_videoStream6 === void 0 ? void 0 : _this$_videoStream6.streamType) === _fcrCore.FcrStreamType.BOTH || ((_this$_videoStream7 = this._videoStream) === null || _this$_videoStream7 === void 0 ? void 0 : _this$_videoStream7.streamType) === _fcrCore.FcrStreamType.VIDEO);
266
- }
267
- }, {
268
- key: "hasLoopbackAudioStream",
269
- get: function get() {
270
- var _this$_videoStream8;
271
- return ((_this$_videoStream8 = this._videoStream) === null || _this$_videoStream8 === void 0 ? void 0 : _this$_videoStream8.audioSourceType) === _fcrCore.FcrAudioSourceType.LOOPBACK;
272
- }
273
- }, {
274
- key: "userId",
275
- get: function get() {
276
- var _this$_videoStream9, _this$_audioStream4, _this$_boardUserInfo;
277
- return ((_this$_videoStream9 = this._videoStream) === null || _this$_videoStream9 === void 0 ? void 0 : _this$_videoStream9.owner.userId) || ((_this$_audioStream4 = this._audioStream) === null || _this$_audioStream4 === void 0 ? void 0 : _this$_audioStream4.owner.userId) || ((_this$_boardUserInfo = this._boardUserInfo) === null || _this$_boardUserInfo === void 0 ? void 0 : _this$_boardUserInfo.userId) || '';
278
- }
279
- }, {
280
- key: "userName",
281
- get: function get() {
282
- var _this$_videoStream10, _this$_audioStream5, _this$_boardUserInfo2;
283
- return ((_this$_videoStream10 = this._videoStream) === null || _this$_videoStream10 === void 0 ? void 0 : _this$_videoStream10.owner.userName) || ((_this$_audioStream5 = this._audioStream) === null || _this$_audioStream5 === void 0 ? void 0 : _this$_audioStream5.owner.userName) || ((_this$_boardUserInfo2 = this._boardUserInfo) === null || _this$_boardUserInfo2 === void 0 ? void 0 : _this$_boardUserInfo2.userName) || '';
284
- }
285
- }, {
286
- key: "ownerRoleType",
287
- get: function get() {
288
- var _this$_videoStream11, _this$_audioStream6, _this$_boardUserInfo3;
289
- return ((_this$_videoStream11 = this._videoStream) === null || _this$_videoStream11 === void 0 ? void 0 : _this$_videoStream11.owner.userRole) || ((_this$_audioStream6 = this._audioStream) === null || _this$_audioStream6 === void 0 ? void 0 : _this$_audioStream6.owner.userRole) || ((_this$_boardUserInfo3 = this._boardUserInfo) === null || _this$_boardUserInfo3 === void 0 ? void 0 : _this$_boardUserInfo3.userRole) || _type2.FcrUserRole.AUDIENCE;
290
- }
291
- }, {
292
- key: "videoSourceType",
293
- get: function get() {
294
- var _this$_videoStream12;
295
- return ((_this$_videoStream12 = this._videoStream) === null || _this$_videoStream12 === void 0 ? void 0 : _this$_videoStream12.videoSourceType) || _fcrCore.FcrVideoSourceType.CAMERA;
296
- }
297
- }, {
298
- key: "isMySelf",
299
- get: function get() {
300
- return this._isMySelf;
301
- }
302
- }, {
303
- key: "sortingPriority",
304
- get: function get() {
305
- if (this._placement === 'main-list') {
306
- var _this$_videoStream13;
307
- if (this.type === _type.FcrUIWindowType.BOARD && this._boardCanEdit) {
308
- return _type.FcrUIVideoWindowMainSortingPriority.HIGHEST;
309
- }
310
- if (this.isPin || ((_this$_videoStream13 = this._videoStream) === null || _this$_videoStream13 === void 0 ? void 0 : _this$_videoStream13.videoSourceType) === _fcrCore.FcrVideoSourceType.SCREEN || this.type === _type.FcrUIWindowType.BOARD) {
311
- return _type.FcrUIVideoWindowMainSortingPriority.FOCUS;
312
- }
313
- if (this.isSpeakerSpotlight && this._layoutType === _type.FcrUIVideoWindowLayoutType.Speaker) {
314
- return _type.FcrUIVideoWindowMainSortingPriority.SPEAKER_SPOTLIGHT;
315
- }
316
- if (this.hasScreenSharing) {
317
- return _type.FcrUIVideoWindowMainSortingPriority.SCREEN_SHARING_OWNER;
318
- }
319
- if (this.ownerRoleType === _type2.FcrUserRole.HOST) {
320
- return _type.FcrUIVideoWindowMainSortingPriority.HOST;
321
- }
322
- if (this.isMySelf) {
323
- return _type.FcrUIVideoWindowMainSortingPriority.MYSELF;
324
- }
325
- if (this.ownerRoleType === _type2.FcrUserRole.COHOST) {
326
- return _type.FcrUIVideoWindowMainSortingPriority.CO_HOST;
327
- }
328
- if (this.hasMicrophoneAudioStream && this.hasVideoStream) {
329
- return _type.FcrUIVideoWindowMainSortingPriority.BOTH_OPEN;
330
- }
331
- if (this.hasVideoStream) {
332
- return _type.FcrUIVideoWindowMainSortingPriority.CAMERA_OPEN;
333
- }
334
- if (this.hasMicrophoneAudioStream) {
335
- return _type.FcrUIVideoWindowMainSortingPriority.MICROPHONE_OPEN;
336
- }
337
- } else {
338
- var _this$_videoStream14;
339
- if (this.isSpeakerSpotlight) {
340
- return _type.FcrUIVideoWindowFoldSortingPriority.FOCUS;
341
- }
342
- if (this.isPin) {
343
- return _type.FcrUIVideoWindowFoldSortingPriority.PIN;
344
- }
345
- if (((_this$_videoStream14 = this._videoStream) === null || _this$_videoStream14 === void 0 ? void 0 : _this$_videoStream14.videoSourceType) === _fcrCore.FcrVideoSourceType.SCREEN) {
346
- return _type.FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_STREAM;
347
- }
348
- if (this.hasScreenSharing) {
349
- return _type.FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_OWNER;
350
- }
351
- if (this.ownerRoleType === _type2.FcrUserRole.HOST) {
352
- return _type.FcrUIVideoWindowFoldSortingPriority.HOST;
353
- }
354
- if (this.isMySelf) {
355
- return _type.FcrUIVideoWindowFoldSortingPriority.MYSELF;
356
- }
357
- if (this.ownerRoleType === _type2.FcrUserRole.COHOST) {
358
- return _type.FcrUIVideoWindowFoldSortingPriority.CO_HOST;
359
- }
360
- if (this.hasMicrophoneAudioStream && this.hasVideoStream) {
361
- return _type.FcrUIVideoWindowFoldSortingPriority.BOTH_OPEN;
362
- }
363
- if (this.hasVideoStream) {
364
- return _type.FcrUIVideoWindowFoldSortingPriority.CAMERA_OPEN;
365
- }
366
- if (this.hasMicrophoneAudioStream) {
367
- return _type.FcrUIVideoWindowFoldSortingPriority.MICROPHONE_OPEN;
368
- }
369
- }
370
- return _type.FcrUIVideoWindowMainSortingPriority.NONE;
371
- }
372
- }, {
373
- key: "setLayoutType",
374
- value: function setLayoutType(layoutType) {
375
- this._layoutType = layoutType;
376
- }
377
- }, {
378
- key: "setVideoStream",
379
- value: function setVideoStream(videoStream) {
380
- this._videoStream = videoStream;
381
- }
382
- }, {
383
- key: "setVideoStreamOwnerInfo",
384
- value: function setVideoStreamOwnerInfo(userInfo) {
385
- if (this._videoStream) {
386
- this._videoStream.owner = userInfo;
387
- }
388
- }
389
- }, {
390
- key: "setAudioStream",
391
- value: function setAudioStream(audioStream) {
392
- this._audioStream = audioStream;
393
- }
394
- }, {
395
- key: "setAudioStreamOwnerInfo",
396
- value: function setAudioStreamOwnerInfo(userInfo) {
397
- if (this._audioStream) {
398
- this._audioStream.owner = userInfo;
399
- }
400
- }
401
- }, {
402
- key: "setPin",
403
- value: function setPin(pin) {
404
- this.isPin = pin;
405
- }
406
- }, {
407
- key: "setSpotlightEnabled",
408
- value: function setSpotlightEnabled(enabled) {
409
- this._spotlightEnabled = enabled;
410
- }
411
- }, {
412
- key: "setSpeakerSpotlight",
413
- value: function setSpeakerSpotlight(speakerSpotlight) {
414
- this._isSpeakerSpotlight = speakerSpotlight;
415
- }
416
- }, {
417
- key: "setHasScreenSharing",
418
- value: function setHasScreenSharing(screenSharing) {
419
- this.hasScreenSharing = screenSharing;
420
- }
421
- }, {
422
- key: "setBoardCanEdit",
423
- value: function setBoardCanEdit(canEdit) {
424
- this._boardCanEdit = canEdit;
425
- }
426
- }]);
427
- }();
428
- _FcrUIVideoWindowDataImpl = FcrUIVideoWindowDataImpl;
429
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIVideoWindowDataImpl, [[_mobx.observable, 1, "_videoStream"], [_mobx.observable, 1, "_audioStream"], [_mobx.observable, 1, "_spotlightEnabled"], [_mobx.observable, 1, "_isSpeakerSpotlight"], [_mobx.observable, 1, "_boardCanEdit"], [_mobx.observable, 1, "isPin"], [_mobx.observable, 1, "hasScreenSharing"], [_mobx.computed, 3, "isSpeakerSpotlight"], [_mobx.computed, 3, "windowId"], [_mobx.computed, 3, "videoStreamId"], [_mobx.computed, 3, "audioStreamId"], [_mobx.computed, 3, "audioStreamConnectorType"], [_mobx.computed, 3, "videoStreamConnectorType"], [_mobx.computed, 3, "hasMicrophoneAudioStream"], [_mobx.computed, 3, "phoneMicEnabled"], [_mobx.computed, 3, "hasVideoStream"], [_mobx.computed, 3, "hasLoopbackAudioStream"], [_mobx.computed, 3, "userId"], [_mobx.computed, 3, "userName"], [_mobx.computed, 3, "ownerRoleType"], [_mobx.computed, 3, "videoSourceType"], [_mobx.computed, 3, "sortingPriority"], [_setVideoStreamDecs, 18, "setVideoStream"], [_setVideoStreamOwnerInfoDecs, 18, "setVideoStreamOwnerInfo"], [_setAudioStreamDecs, 18, "setAudioStream"], [_setAudioStreamOwnerInfoDecs, 18, "setAudioStreamOwnerInfo"], [_setPinDecs, 18, "setPin"], [_setSpotlightEnabledDecs, 18, "setSpotlightEnabled"], [_setSpeakerSpotlightDecs, 18, "setSpeakerSpotlight"], [_setHasScreenSharingDecs, 18, "setHasScreenSharing"], [_setBoardCanEditDecs, 18, "setBoardCanEdit"]], []).e, 8);
430
- _init__videoStream = _applyDecs$e[0];
431
- _init__audioStream = _applyDecs$e[1];
432
- _init__spotlightEnabled = _applyDecs$e[2];
433
- _init__isSpeakerSpotlight = _applyDecs$e[3];
434
- _init__boardCanEdit = _applyDecs$e[4];
435
- _init_isPin = _applyDecs$e[5];
436
- _init_hasScreenSharing = _applyDecs$e[6];
437
- _initProto = _applyDecs$e[7];
438
- var _A2 = /*#__PURE__*/new WeakMap();
439
- var _B2 = /*#__PURE__*/new WeakMap();
440
- var _C2 = /*#__PURE__*/new WeakMap();
441
- var _D2 = /*#__PURE__*/new WeakMap();
442
- var _E2 = /*#__PURE__*/new WeakMap();
443
- var _F2 = /*#__PURE__*/new WeakMap();
444
- var _G2 = /*#__PURE__*/new WeakMap();
445
- var _H = /*#__PURE__*/new WeakMap();
446
- _ref3 = (_setSpotlightEnabledDecs2 = [_mobx.action, _mobx.action.bound], _setLayoutDecs = [_mobx.action, _mobx.action.bound], _onSpotlightRemovedDecs = [_mobx.action, _mobx.action.bound], _resetListDecs = [_mobx.action, _mobx.action.bound], _addBoardDecs = [_mobx.action, _mobx.action.bound], _updateBoardDecs = [_mobx.action, _mobx.action.bound], _removeBoardDecs = [_mobx.action, _mobx.action.bound], _mergePstnStreamOrInsertNewDataDecs = [_mobx.action, _mobx.action.bound], _addDecs = [_mobx.action, _mobx.action.bound], _updateDecs = [_mobx.action, _mobx.action.bound], _deleteDecs = [_mobx.action, _mobx.action.bound], _addPinDecs = [_mobx.action, _mobx.action.bound], _updateSpeakerSpotlightPositionDecs = [_mobx.action, _mobx.action.bound], _removePinDecs = [_mobx.action, _mobx.action.bound], _setSpeakerSpotlightDecs2 = [_mobx.action, _mobx.action.bound], _toggleMainStreamDecs = [_mobx.action, _mobx.action.bound], _insertBeginningByPriorityDecs = [_mobx.action, _mobx.action.bound], _insertEndByPriorityDecs = [_mobx.action, _mobx.action.bound], _findInsertBeginningIndexDecs = [_mobx.action, _mobx.action.bound], _findInsertEndIndexDecs = [_mobx.action, _mobx.action.bound], _insertBoardDecs = [_mobx.action, _mobx.action.bound], _insertNewDataDecs = [_mobx.action, _mobx.action.bound], "_observer");
447
- var FcrUIVideoWindowDataSource = exports.FcrUIVideoWindowDataSource = /*#__PURE__*/function () {
448
- function FcrUIVideoWindowDataSource() {
449
- (0, _classCallCheck2["default"])(this, FcrUIVideoWindowDataSource);
450
- (0, _defineProperty2["default"])(this, _ref3, (_initProto2(this), new _observable.AgoraObservable()));
451
- (0, _defineProperty2["default"])(this, "_spotlightPool", new FcrUISpeakerSpotlightPool());
452
- _classPrivateFieldInitSpec(this, _A2, _init_spotlightEnabled(this, true));
453
- _classPrivateFieldInitSpec(this, _B2, _init_layoutType(this, _type.FcrUIVideoWindowLayoutType.Gallery));
454
- _classPrivateFieldInitSpec(this, _C2, _init_manualLayout(this, undefined));
455
- _classPrivateFieldInitSpec(this, _D2, _init_pinLimitedCount(this, 1));
456
- _classPrivateFieldInitSpec(this, _E2, _init_mainListLimitedCount(this, 255));
457
- _classPrivateFieldInitSpec(this, _F2, _init_foldListLimitedCount(this, 255));
458
- _classPrivateFieldInitSpec(this, _G2, _init_mainList(this, []));
459
- _classPrivateFieldInitSpec(this, _H, _init_foldList(this, []));
460
- this._spotlightPool.addObserver({
461
- onRemoved: this.onSpotlightRemoved
462
- });
463
- }
464
- return (0, _createClass2["default"])(FcrUIVideoWindowDataSource, [{
465
- key: "spotlightEnabled",
466
- get: function get() {
467
- return _classPrivateFieldGet(_A2, this);
468
- },
469
- set: function set(v) {
470
- _classPrivateFieldSet(_A2, this, v);
471
- }
472
- }, {
473
- key: "layoutType",
474
- get: function get() {
475
- return _classPrivateFieldGet(_B2, this);
476
- },
477
- set: function set(v) {
478
- _classPrivateFieldSet(_B2, this, v);
479
- }
480
- }, {
481
- key: "manualLayout",
482
- get: function get() {
483
- return _classPrivateFieldGet(_C2, this);
484
- },
485
- set: function set(v) {
486
- _classPrivateFieldSet(_C2, this, v);
487
- }
488
- }, {
489
- key: "pinLimitedCount",
490
- get: function get() {
491
- return _classPrivateFieldGet(_D2, this);
492
- },
493
- set: function set(v) {
494
- _classPrivateFieldSet(_D2, this, v);
495
- }
496
- }, {
497
- key: "mainListLimitedCount",
498
- get: function get() {
499
- return _classPrivateFieldGet(_E2, this);
500
- },
501
- set: function set(v) {
502
- _classPrivateFieldSet(_E2, this, v);
503
- }
504
- }, {
505
- key: "foldListLimitedCount",
506
- get: function get() {
507
- return _classPrivateFieldGet(_F2, this);
508
- },
509
- set: function set(v) {
510
- _classPrivateFieldSet(_F2, this, v);
511
- }
512
- }, {
513
- key: "mainList",
514
- get: function get() {
515
- return _classPrivateFieldGet(_G2, this);
516
- },
517
- set: function set(v) {
518
- _classPrivateFieldSet(_G2, this, v);
519
- }
520
- }, {
521
- key: "foldList",
522
- get: function get() {
523
- return _classPrivateFieldGet(_H, this);
524
- },
525
- set: function set(v) {
526
- _classPrivateFieldSet(_H, this, v);
527
- }
528
- }, {
529
- key: "setSpotlightEnabled",
530
- value: function setSpotlightEnabled(enabled) {
531
- var _this = this;
532
- var currentSpeakerSpotlightIndex_mainList = this._findCurrentSpeakerSpotlight(this.mainList);
533
- var currentSpeakerSpotlightIndex_foldList = this._findCurrentSpeakerSpotlight(this.foldList);
534
- this.spotlightEnabled = enabled;
535
- this.mainList.forEach(function (item) {
536
- item.setSpotlightEnabled(enabled);
537
- });
538
- this.foldList.forEach(function (item) {
539
- item.setSpotlightEnabled(enabled);
540
- });
541
- this._spotlightPool.streams.forEach(function (_ts, streamId) {
542
- _this.setSpeakerSpotlight(streamId);
543
- });
544
- // update speaker spotlight position
545
- this._updateSpeakerSpotlightPosition(currentSpeakerSpotlightIndex_mainList, this.mainList, this.mainListLimitedCount, 'main-list');
546
- this._updateSpeakerSpotlightPosition(currentSpeakerSpotlightIndex_foldList, this.foldList, this.foldListLimitedCount, 'fold-list');
547
- }
548
- }, {
549
- key: "setLayout",
550
- value: function setLayout(layout, manual) {
551
- if (manual) {
552
- this.manualLayout = layout;
553
- }
554
- if (this.layoutType === _type.FcrUIVideoWindowLayoutType.Gallery && layout === _type.FcrUIVideoWindowLayoutType.Speaker && this.mainList.length < 2 || this.layoutType === layout) {
555
- return;
556
- }
557
- this.layoutType = layout;
558
- this._observer.notifyObservers('onLayoutUpdated', layout);
559
- this.mainList.forEach(function (item) {
560
- item.setLayoutType(layout);
561
- });
562
- this.foldList.forEach(function (item) {
563
- item.setLayoutType(layout);
564
- });
565
- if (layout === _type.FcrUIVideoWindowLayoutType.Gallery) {
566
- this.resetList();
567
- }
568
- }
569
- }, {
570
- key: "onSpotlightRemoved",
571
- value: function onSpotlightRemoved(streamId) {
572
- var _this2 = this;
573
- var removeSpotlight = function removeSpotlight(streamId, list, limitCount) {
574
- var index = _this2._findItemIndexWithWindowId(streamId, list);
575
- if (index !== -1) {
576
- var item = list[index];
577
- if (item) {
578
- item.setSpeakerSpotlight(false);
579
- if (_this2.layoutType === _type.FcrUIVideoWindowLayoutType.Speaker) {
580
- item.needToSort = true;
581
- }
582
- }
583
- }
584
- };
585
- removeSpotlight(streamId, this.mainList, this.mainListLimitedCount);
586
- removeSpotlight(streamId, this.foldList, this.foldListLimitedCount);
587
- this._observer.notifyObservers('onSpotlightRemoved', streamId);
588
- }
589
- }, {
590
- key: "resetList",
591
- value: function resetList() {
592
- this.mainList = this.mainList.sort(function (a, b) {
593
- return b.sortingPriority - a.sortingPriority;
594
- });
595
- this.foldList = this.foldList.sort(function (a, b) {
596
- return b.sortingPriority - a.sortingPriority;
597
- });
598
- this._observer.notifyObservers('onMainListUpdated', -1);
599
- this._observer.notifyObservers('onFoldListUpdated', -1);
600
- }
601
- }, {
602
- key: "addBoard",
603
- value: function addBoard(userInfo, isMySelf, canEdit) {
604
- this._insertBoard(userInfo, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list', canEdit);
605
- this._syncHasScreenSharing(true, userInfo.userId, this.mainList, this.mainListLimitedCount, 'main-list');
606
- this._syncHasScreenSharing(true, userInfo.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
607
- }
608
- }, {
609
- key: "updateBoard",
610
- value: function updateBoard(canEdit) {
611
- var windowData = this.mainList.find(function (item) {
612
- return item.type === _type.FcrUIWindowType.BOARD;
613
- });
614
- windowData === null || windowData === void 0 || windowData.setBoardCanEdit(canEdit);
615
- var insertIndex = this._insertByPriority(windowData, this.mainList, this.mainListLimitedCount);
616
- this._observer.notifyObservers('onMainListUpdated', insertIndex);
617
- }
618
- }, {
619
- key: "removeBoard",
620
- value: function removeBoard() {
621
- var boardIndex = this.mainList.findIndex(function (i) {
622
- return i.type === _type.FcrUIWindowType.BOARD;
623
- });
624
- if (boardIndex !== -1) {
625
- var board = this.mainList[boardIndex];
626
- this.mainList.splice(boardIndex, 1);
627
- this._syncHasScreenSharing(false, board.userId, this.mainList, this.mainListLimitedCount, 'main-list');
628
- this._syncHasScreenSharing(false, board.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
629
- }
630
- }
631
- }, {
632
- key: "_mergePstnStreamOrInsertNewData",
633
- value: function _mergePstnStreamOrInsertNewData(stream, list, limitCount, isMySelf, placement) {
634
- var existedUserPstnStream = list.find(function (item) {
635
- return item.userId === stream.owner.userId && item.audioStreamConnectorType === _fcrCore.FcrRoomConnectorType.PSTN;
636
- });
637
- if (existedUserPstnStream) {
638
- existedUserPstnStream.setVideoStream(stream);
639
- } else {
640
- this._insertNewData(stream, list, limitCount, isMySelf, placement);
641
- }
642
- }
643
- }, {
644
- key: "add",
645
- value: function add(stream, isMySelf) {
646
- var _this3 = this;
647
- var streamCopy = this.copyStreamInfo(stream);
648
- if (streamCopy.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
649
- var handlePSTNStreamAdded = function handlePSTNStreamAdded(stream, list, limitCount, isMySelf, placement) {
650
- var existedUserStream = list.find(function (item) {
651
- return item.userId === stream.owner.userId && item.videoSourceType === _fcrCore.FcrVideoSourceType.CAMERA;
652
- });
653
- if (existedUserStream) {
654
- existedUserStream.setAudioStream(stream);
655
- } else {
656
- _this3._insertNewData(stream, list, limitCount, isMySelf, placement);
657
- }
658
- };
659
- handlePSTNStreamAdded(streamCopy, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list');
660
- handlePSTNStreamAdded(streamCopy, this.foldList, this.foldListLimitedCount, isMySelf, 'fold-list');
661
- } else {
662
- this._mergePstnStreamOrInsertNewData(streamCopy, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list');
663
- this._mergePstnStreamOrInsertNewData(streamCopy, this.foldList, this.foldListLimitedCount, isMySelf, 'fold-list');
664
- }
665
- if (streamCopy.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
666
- this._syncHasScreenSharing(true, streamCopy.owner.userId, this.mainList, this.mainListLimitedCount, 'main-list');
667
- this._syncHasScreenSharing(true, streamCopy.owner.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
668
- }
669
- }
670
- }, {
671
- key: "update",
672
- value: function update(param) {
673
- var _this4 = this;
674
- var handleStreamInfoUpdated = function handleStreamInfoUpdated(stream, list, limitCount, placement) {
675
- var existedUserStream = list[_this4._findItemIndexWithWindowId(stream.streamId, list)];
676
- if (existedUserStream) {
677
- var oldSortingPriority = existedUserStream.sortingPriority;
678
- if (param.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
679
- existedUserStream.setAudioStream(stream);
680
- } else {
681
- existedUserStream.setVideoStream(stream);
682
- }
683
- var newSortingPriority = existedUserStream.sortingPriority;
684
- if (oldSortingPriority !== newSortingPriority) {
685
- var index = _this4._insertByPriority(existedUserStream, list, limitCount);
686
- _this4._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
687
- }
688
- }
689
- };
690
- var handleUserInfoUpdated = function handleUserInfoUpdated(user, list, limitCount, placement) {
691
- var modifiedItems = [];
692
- list.forEach(function (item) {
693
- if (item.userId === user.userId) {
694
- var oldSortingPriority = item.sortingPriority;
695
- item.setVideoStreamOwnerInfo(user);
696
- item.setAudioStreamOwnerInfo(user);
697
- var newSortingPriority = item.sortingPriority;
698
- if (oldSortingPriority !== newSortingPriority) {
699
- modifiedItems.push(item);
700
- }
701
- }
702
- });
703
- modifiedItems.forEach(function (item) {
704
- var index = _this4._insertByPriority(item, list, limitCount);
705
- _this4._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
706
- });
707
- };
708
- if ('streamId' in param) {
709
- var streamCopy = this.copyStreamInfo(param);
710
- handleStreamInfoUpdated(streamCopy, this.mainList, this.mainListLimitedCount, 'main-list');
711
- handleStreamInfoUpdated(streamCopy, this.foldList, this.foldListLimitedCount, 'fold-list');
712
- } else {
713
- handleUserInfoUpdated(param, this.mainList, this.mainListLimitedCount, 'main-list');
714
- handleUserInfoUpdated(param, this.foldList, this.foldListLimitedCount, 'fold-list');
715
- }
716
- }
717
- }, {
718
- key: "delete",
719
- value: function _delete(stream) {
720
- var _this5 = this;
721
- var streamCopy = this.copyStreamInfo(stream);
722
- var handlePSTNStreamDeleted = function handlePSTNStreamDeleted(stream, list, placement) {
723
- var index = _this5._findItemIndexWithAudioStreamId(stream.streamId, list);
724
- var existedUserStream = list[index];
725
- if (existedUserStream) {
726
- if (existedUserStream.videoStreamId) {
727
- existedUserStream.setAudioStream(undefined);
728
- _this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
729
- } else {
730
- list.splice(index, 1);
731
- _this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListRemoved' : 'onFoldListRemoved', index);
732
- }
733
- }
734
- };
735
- if (stream.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
736
- handlePSTNStreamDeleted(streamCopy, this.mainList, 'main-list');
737
- handlePSTNStreamDeleted(streamCopy, this.foldList, 'fold-list');
738
- } else {
739
- var handleVideoStreamDeleted = function handleVideoStreamDeleted(streamId, list, placement) {
740
- var existStreamIndex = list.findIndex(function (item) {
741
- return item.videoStreamId === streamId;
742
- });
743
- if (existStreamIndex === -1) {
744
- return;
745
- }
746
- list.splice(existStreamIndex, 1);
747
- _this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListRemoved' : 'onFoldListRemoved', existStreamIndex);
748
- };
749
- handleVideoStreamDeleted(streamCopy.streamId, this.mainList, 'main-list');
750
- handleVideoStreamDeleted(streamCopy.streamId, this.foldList, 'fold-list');
751
- }
752
- // if it is the last screen share stream of the user, remove the screen sharing flag
753
-
754
- if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
755
- this._syncHasScreenSharing(false, streamCopy.owner.userId, this.mainList, this.mainListLimitedCount, 'main-list');
756
- this._syncHasScreenSharing(false, streamCopy.owner.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
757
- }
758
- }
759
- }, {
760
- key: "addPin",
761
- value: function addPin(streamId) {
762
- var _this6 = this;
763
- var handlePin = function handlePin(streamId, list, limitCount, placement) {
764
- var existedUserStreamIndex = _this6._findItemIndexWithWindowId(streamId, list);
765
- var existedUserStream = list[existedUserStreamIndex];
766
- if (!existedUserStream || existedUserStream !== null && existedUserStream !== void 0 && existedUserStream.isPin) {
767
- return false;
768
- }
769
- var currentPinStreams = list.filter(function (item) {
770
- return item.isPin;
771
- });
772
- if (currentPinStreams.length >= _this6.pinLimitedCount) {
773
- var lastPinStream = currentPinStreams[currentPinStreams.length - 1];
774
- var _streamId = lastPinStream.videoStreamId || lastPinStream.audioStreamId;
775
- if (_streamId) {
776
- _this6.removePin(_streamId);
777
- }
778
- }
779
- existedUserStream.setPin(true);
780
- _this6._insertBeginningByPriority(existedUserStream, list, limitCount);
781
- _this6._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
782
- return true;
783
- };
784
- var success = handlePin(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
785
- handlePin(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
786
- return success;
787
- }
788
- }, {
789
- key: "_updateSpeakerSpotlightPosition",
790
- value: function _updateSpeakerSpotlightPosition(index, list, limitCount, placement) {
791
- var existedUserStream = list[index];
792
- if (!existedUserStream) {
793
- return;
794
- }
795
- this._insertByPriority(existedUserStream, list, limitCount);
796
- this._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
797
- }
798
- }, {
799
- key: "removePin",
800
- value: function removePin(streamId) {
801
- var _this7 = this;
802
- var handleRemovePin = function handleRemovePin(streamId, list, limitCount, placement) {
803
- var existedUserStreamIndex = _this7._findItemIndexWithWindowId(streamId, list);
804
- var existedUserStream = list[existedUserStreamIndex];
805
- if (!(existedUserStream !== null && existedUserStream !== void 0 && existedUserStream.isPin)) {
806
- return;
807
- }
808
- existedUserStream.setPin(false);
809
- _this7._insertByPriority(existedUserStream, list, limitCount);
810
- _this7._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
811
- return true;
812
- };
813
- var removePinMainRes = handleRemovePin(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
814
- var removePinFoldRes = handleRemovePin(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
815
- return removePinMainRes && removePinFoldRes;
816
- }
817
- }, {
818
- key: "setSpeakerSpotlight",
819
- value: function setSpeakerSpotlight(streamId) {
820
- var _this8 = this;
821
- var checkStreamExist = function checkStreamExist(streamId) {
822
- return _this8._findItemIndexWithWindowId(streamId, _this8.mainList) !== -1 && _this8._findItemIndexWithWindowId(streamId, _this8.foldList) !== -1;
823
- };
824
- if (!checkStreamExist(streamId)) return;
825
- var isRefreshSpotlight = this._spotlightPool.streams.has(streamId);
826
- var success = this._spotlightPool.add(streamId);
827
- if (!success || isRefreshSpotlight) {
828
- return;
829
- }
830
- var setSpeakerSpotlight = function setSpeakerSpotlight(streamId, list, limitCount, placement) {
831
- var existedUserStreamIndex = _this8._findItemIndexWithWindowId(streamId, list);
832
- var existedUserStream = list[existedUserStreamIndex];
833
- if (existedUserStream) {
834
- existedUserStream.setSpeakerSpotlight(true);
835
- }
836
- if (_this8.layoutType === _type.FcrUIVideoWindowLayoutType.Speaker || list === _this8.foldList) {
837
- var isSpeakerSpotlightSortingPriority = existedUserStream.sortingPriority === (placement === 'main-list' ? _type.FcrUIVideoWindowMainSortingPriority.SPEAKER_SPOTLIGHT : _type.FcrUIVideoWindowFoldSortingPriority.FOCUS);
838
- if (isSpeakerSpotlightSortingPriority) {
839
- _this8._insertBeginningByPriority(existedUserStream, list, limitCount);
840
- }
841
- }
842
- list.forEach(function (item) {
843
- if (item.needToSort) {
844
- _this8._insertByPriority(item, list, limitCount);
845
- }
846
- });
847
- _this8._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
848
- };
849
- setSpeakerSpotlight(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
850
- setSpeakerSpotlight(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
851
- this._observer.notifyObservers('onSpotlightAdded', streamId);
852
- }
853
- }, {
854
- key: "toggleMainStream",
855
- value: function toggleMainStream(windowId) {
856
- var streamIndex = this._findItemIndexWithWindowId(windowId, this.mainList);
857
- if (streamIndex === -1) {
858
- return false;
859
- }
860
- var streamData = this.mainList[streamIndex];
861
- // bring the stream to the start of the list
862
- this.mainList.splice(streamIndex, 1);
863
- this.mainList.unshift(streamData);
864
- this._observer.notifyObservers('onMainListUpdated', streamIndex);
865
- return true;
866
- }
867
- }, {
868
- key: "clearSpeakerSpotlight",
869
- value: function clearSpeakerSpotlight() {
870
- this._spotlightPool.clear();
871
- }
872
- }, {
873
- key: "addObserver",
874
- value: function addObserver(observer) {
875
- this._observer.addObserver(observer);
876
- }
877
- }, {
878
- key: "removeObserver",
879
- value: function removeObserver(observer) {
880
- this._observer.removeObserver(observer);
881
- }
882
- }, {
883
- key: "copyStreamInfo",
884
- value: function copyStreamInfo(stream) {
885
- var streamCopy = Object.assign({}, stream);
886
- return streamCopy;
887
- }
888
- }, {
889
- key: "_syncHasScreenSharing",
890
- value: function _syncHasScreenSharing(enable, userId, list, limitCount, placement) {
891
- var _this9 = this;
892
- if (enable) {
893
- list.forEach(function (item, index) {
894
- if (item.userId === userId) {
895
- var itemIndex = index;
896
- var originalPriority = item.sortingPriority;
897
- item.setHasScreenSharing(enable);
898
- if (item.sortingPriority !== originalPriority) {
899
- itemIndex = _this9._insertByPriority(item, list, limitCount);
900
- }
901
- _this9._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', itemIndex);
902
- }
903
- });
904
- } else {
905
- var remainingShare = list.some(function (item) {
906
- return item.userId === userId && (item.type === _type.FcrUIWindowType.BOARD || item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN);
907
- });
908
- if (!remainingShare) {
909
- list.forEach(function (item) {
910
- if (item.userId === userId) {
911
- item.setHasScreenSharing(enable);
912
- var index = _this9._insertByPriority(item, list, limitCount);
913
- _this9._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
914
- }
915
- });
916
- }
917
- }
918
- }
919
- }, {
920
- key: "_insertByPriority",
921
- value: function _insertByPriority(data, list, limitCount) {
922
- var insertIndex = -1;
923
- if (data.sortingPriority >= _type.FcrUIVideoWindowMainSortingPriority.FOCUS) {
924
- insertIndex = this._insertBeginningByPriority(data, list, limitCount);
925
- } else {
926
- insertIndex = this._insertEndByPriority(data, list, limitCount);
927
- }
928
- return insertIndex;
929
- }
930
- }, {
931
- key: "_insertBeginningByPriority",
932
- value: function _insertBeginningByPriority(data, list, limitedCount) {
933
- var currentIndex = this._findItemIndexWithWindowId(data.windowId, list);
934
- if (currentIndex !== -1) {
935
- list.splice(currentIndex, 1);
936
- }
937
- var index = this._findInsertBeginningIndex(data.sortingPriority, list);
938
- list.splice(index, 0, data);
939
- if (list.length > limitedCount) {
940
- list.splice(limitedCount);
941
- }
942
- data.needToSort = false;
943
- return index;
944
- }
945
- }, {
946
- key: "_insertEndByPriority",
947
- value: function _insertEndByPriority(data, list, limitedCount) {
948
- var currentIndex = this._findItemIndexWithWindowId(data.windowId, list);
949
- if (currentIndex !== -1) {
950
- list.splice(currentIndex, 1);
951
- }
952
- var index = this._findInsertEndIndex(data.sortingPriority, list);
953
- list.splice(index, 0, data);
954
- if (list.length > limitedCount) {
955
- list.splice(limitedCount);
956
- }
957
- data.needToSort = false;
958
- return index;
959
- }
960
- }, {
961
- key: "_findInsertBeginningIndex",
962
- value: function _findInsertBeginningIndex(priority, list) {
963
- // list is sorted by priority
964
- var index = list.findIndex(function (item) {
965
- return item.sortingPriority <= priority;
966
- });
967
- if (index === -1) {
968
- return list.length;
969
- } else {
970
- return index;
971
- }
972
- }
973
- }, {
974
- key: "_findInsertEndIndex",
975
- value: function _findInsertEndIndex(priority, list) {
976
- // list is sorted by priority
977
- var index = list.findLastIndex(function (item) {
978
- return item.sortingPriority >= priority;
979
- });
980
- if (index === -1) {
981
- return 0;
982
- } else {
983
- return index + 1;
984
- }
985
- }
986
- }, {
987
- key: "_findCurrentSpeakerSpotlight",
988
- value: function _findCurrentSpeakerSpotlight(list) {
989
- return list.findIndex(function (item) {
990
- return item.isSpeakerSpotlight;
991
- });
992
- }
993
- }, {
994
- key: "_findItemIndexWithWindowId",
995
- value: function _findItemIndexWithWindowId(windowId, list) {
996
- return list.findIndex(function (item) {
997
- return item.windowId === windowId;
998
- });
999
- }
1000
- }, {
1001
- key: "_findItemIndexWithUserId",
1002
- value: function _findItemIndexWithUserId(userId, list) {
1003
- return list.findIndex(function (item) {
1004
- return item.userId === userId;
1005
- });
1006
- }
1007
- }, {
1008
- key: "_findItemIndexWithAudioStreamId",
1009
- value: function _findItemIndexWithAudioStreamId(audioStreamId, list) {
1010
- return list.findIndex(function (item) {
1011
- return item.audioStreamId === audioStreamId;
1012
- });
1013
- }
1014
- }, {
1015
- key: "_insertBoard",
1016
- value: function _insertBoard(userInfo, list, limitCount, isMySelf, placement) {
1017
- var canEdit = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
1018
- var windowData = new FcrUIVideoWindowDataImpl(_type.FcrUIWindowType.BOARD, {
1019
- boardUserInfo: userInfo
1020
- }, placement, isMySelf, this.layoutType, this.spotlightEnabled, canEdit);
1021
- var insertIndex = this._insertByPriority(windowData, list, limitCount);
1022
- this._observer.notifyObservers(placement === 'main-list' ? 'onMainListAdded' : 'onFoldListAdded', insertIndex);
1023
- }
1024
- }, {
1025
- key: "_insertNewData",
1026
- value: function _insertNewData(stream, list, limitCount, isMySelf, placement) {
1027
- var videoWindowData = new FcrUIVideoWindowDataImpl(_type.FcrUIWindowType.VIDEO, stream.connectorType === _fcrCore.FcrRoomConnectorType.PSTN ? {
1028
- audioStream: stream
1029
- } : {
1030
- videoStream: stream
1031
- }, placement, isMySelf, this.layoutType, this.spotlightEnabled);
1032
- var insertIndex = this._insertByPriority(videoWindowData, list, limitCount);
1033
- this._observer.notifyObservers(placement === 'main-list' ? 'onMainListAdded' : 'onFoldListAdded', insertIndex);
1034
- }
1035
- }]);
1036
- }();
1037
- _FcrUIVideoWindowDataSource = FcrUIVideoWindowDataSource;
1038
- var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIVideoWindowDataSource, [[_mobx.observable, 1, "spotlightEnabled"], [_mobx.observable, 1, "layoutType"], [_mobx.observable, 1, "manualLayout"], [_mobx.observable, 1, "pinLimitedCount"], [_mobx.observable, 1, "mainListLimitedCount"], [_mobx.observable, 1, "foldListLimitedCount"], [_mobx.observable, 1, "mainList"], [_mobx.observable, 1, "foldList"], [_setSpotlightEnabledDecs2, 18, "setSpotlightEnabled"], [_setLayoutDecs, 18, "setLayout"], [_onSpotlightRemovedDecs, 18, "onSpotlightRemoved"], [_resetListDecs, 18, "resetList"], [_addBoardDecs, 18, "addBoard"], [_updateBoardDecs, 18, "updateBoard"], [_removeBoardDecs, 18, "removeBoard"], [_mergePstnStreamOrInsertNewDataDecs, 18, "_mergePstnStreamOrInsertNewData"], [_addDecs, 18, "add"], [_updateDecs, 18, "update"], [_deleteDecs, 18, "delete"], [_addPinDecs, 18, "addPin"], [_updateSpeakerSpotlightPositionDecs, 18, "_updateSpeakerSpotlightPosition"], [_removePinDecs, 18, "removePin"], [_setSpeakerSpotlightDecs2, 18, "setSpeakerSpotlight"], [_toggleMainStreamDecs, 18, "toggleMainStream"], [_insertBeginningByPriorityDecs, 18, "_insertBeginningByPriority"], [_insertEndByPriorityDecs, 18, "_insertEndByPriority"], [_findInsertBeginningIndexDecs, 18, "_findInsertBeginningIndex"], [_findInsertEndIndexDecs, 18, "_findInsertEndIndex"], [_insertBoardDecs, 18, "_insertBoard"], [_insertNewDataDecs, 18, "_insertNewData"]], []).e, 9);
1039
- _init_spotlightEnabled = _applyDecs$e2[0];
1040
- _init_layoutType = _applyDecs$e2[1];
1041
- _init_manualLayout = _applyDecs$e2[2];
1042
- _init_pinLimitedCount = _applyDecs$e2[3];
1043
- _init_mainListLimitedCount = _applyDecs$e2[4];
1044
- _init_foldListLimitedCount = _applyDecs$e2[5];
1045
- _init_mainList = _applyDecs$e2[6];
1046
- _init_foldList = _applyDecs$e2[7];
1047
- _initProto2 = _applyDecs$e2[8];
1048
- var FcrUISpeakerSpotlightPool = exports.FcrUISpeakerSpotlightPool = /*#__PURE__*/function () {
1049
- function FcrUISpeakerSpotlightPool() {
1050
- (0, _classCallCheck2["default"])(this, FcrUISpeakerSpotlightPool);
1051
- (0, _defineProperty2["default"])(this, "streams", new Map());
1052
- (0, _defineProperty2["default"])(this, "limitCount", 1);
1053
- (0, _defineProperty2["default"])(this, "duration", 2);
1054
- (0, _defineProperty2["default"])(this, "_timer", null);
1055
- (0, _defineProperty2["default"])(this, "_observer", new _observable.AgoraObservable());
1056
- this._scan = this._scan.bind(this);
1057
- }
1058
- return (0, _createClass2["default"])(FcrUISpeakerSpotlightPool, [{
1059
- key: "add",
1060
- value: function add(streamId) {
1061
- if (this.streams.size >= this.limitCount && !this.streams.has(streamId)) {
1062
- return false;
1063
- }
1064
- this.streams.set(streamId, Date.now());
1065
- this._scan();
1066
- return true;
1067
- }
1068
- }, {
1069
- key: "_scan",
1070
- value: function _scan() {
1071
- var _this10 = this;
1072
- if (this._timer) {
1073
- window.clearInterval(this._timer);
1074
- this._timer = null;
1075
- }
1076
- this._timer = window.setInterval(function () {
1077
- var now = Date.now();
1078
- var _iterator = _createForOfIteratorHelper(_this10.streams),
1079
- _step;
1080
- try {
1081
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
1082
- var _step$value = (0, _slicedToArray2["default"])(_step.value, 2),
1083
- streamId = _step$value[0],
1084
- time = _step$value[1];
1085
- if (now - time - _this10.duration * 1000 >= 0) {
1086
- _this10.streams["delete"](streamId);
1087
- _this10._observer.notifyObservers('onRemoved', streamId);
1088
- }
1089
- }
1090
- } catch (err) {
1091
- _iterator.e(err);
1092
- } finally {
1093
- _iterator.f();
1094
- }
1095
- if (_this10.streams.size === 0) {
1096
- _this10._timer && window.clearInterval(_this10._timer);
1097
- _this10._timer = null;
1098
- }
1099
- }, 1000);
1100
- }
1101
- }, {
1102
- key: "clear",
1103
- value: function clear() {
1104
- var _this11 = this;
1105
- this.streams.forEach(function (_, streamId) {
1106
- _this11._observer.notifyObservers('onRemoved', streamId);
1107
- });
1108
- this.streams.clear();
1109
- if (this._timer) {
1110
- window.clearInterval(this._timer);
1111
- this._timer = null;
1112
- }
1113
- }
1114
- }, {
1115
- key: "addObserver",
1116
- value: function addObserver(observer) {
1117
- this._observer.addObserver(observer);
1118
- }
1119
- }, {
1120
- key: "removeObserver",
1121
- value: function removeObserver(observer) {
1122
- this._observer.removeObserver(observer);
1123
- }
1124
- }]);
1125
- }();