fcr-ui-scene 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (824) hide show
  1. package/lib/modules/dialog/dialogs/connection-gateway/tabs.d.ts +0 -1
  2. package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +2 -13
  3. package/lib/modules/invite/index.d.ts +4 -1
  4. package/lib/modules/invite/index.js +5 -2
  5. package/lib/modules/invite/store.d.ts +4 -0
  6. package/lib/modules/invite/store.js +48 -9
  7. package/lib/modules/invite/view.d.ts +4 -1
  8. package/lib/modules/invite/view.js +25 -10
  9. package/lib/modules/pc-audio-connect/main-scene/index.d.ts +0 -1
  10. package/lib/modules/pc-audio-connect/main-scene/index.js +2 -4
  11. package/lib/modules/pc-audio-connect/main-scene/store.d.ts +0 -3
  12. package/lib/modules/pc-audio-connect/main-scene/store.js +7 -43
  13. package/lib/modules/widget/store.electron.js +1 -1
  14. package/lib/scenes/main-scene.js +3 -2
  15. package/lib-es/assets/mic-loading.gif +0 -0
  16. package/lib-es/base.js +335 -0
  17. package/lib-es/creator/index.js +543 -0
  18. package/lib-es/creator/provider-initializer.browser.js +322 -0
  19. package/lib-es/creator/provider-initializer.electron.js +359 -0
  20. package/lib-es/creator/type.js +1 -0
  21. package/lib-es/electron/app.js +247 -0
  22. package/lib-es/electron/asar-validation.js +106 -0
  23. package/lib-es/electron/bootstrap-dev.js +45 -0
  24. package/lib-es/electron/bootstrap-sdk.js +198 -0
  25. package/lib-es/electron/default-options.js +18 -0
  26. package/lib-es/electron/env.js +8 -0
  27. package/lib-es/electron/exit-codes.js +20 -0
  28. package/lib-es/electron/hang-detection/index.js +2 -0
  29. package/lib-es/electron/hang-detection/manager.js +225 -0
  30. package/lib-es/electron/hang-detection/types.js +1 -0
  31. package/lib-es/electron/index.js +2 -0
  32. package/lib-es/electron/injections.js +830 -0
  33. package/lib-es/electron/ipc/ipc.js +134 -0
  34. package/lib-es/electron/ipc/type.js +22 -0
  35. package/lib-es/electron/ipc-protocol.js +58 -0
  36. package/lib-es/electron/logger.js +57 -0
  37. package/lib-es/electron/main.js +116 -0
  38. package/lib-es/electron/plugins/devtool-shortcut.js +26 -0
  39. package/lib-es/electron/plugins/meeting-state.js +32 -0
  40. package/lib-es/electron/plugins/screenshot.js +46 -0
  41. package/lib-es/electron/preload.js +42 -0
  42. package/lib-es/electron/process-manager/constants.js +1 -0
  43. package/lib-es/electron/process-manager/event-manager.js +242 -0
  44. package/lib-es/electron/process-manager/index.js +842 -0
  45. package/lib-es/electron/process-manager/state-manager.js +354 -0
  46. package/lib-es/electron/process-manager/types.js +78 -0
  47. package/lib-es/electron/sdk-helper.js +305 -0
  48. package/lib-es/electron/struct.js +21 -0
  49. package/lib-es/electron/until.js +64 -0
  50. package/lib-es/electron/window-proxy/browser-window-proxy.js +720 -0
  51. package/lib-es/electron/window-proxy/main-process-handler.js +441 -0
  52. package/lib-es/electron/window.js +91 -0
  53. package/lib-es/fragments/annotation/index.js +130 -0
  54. package/lib-es/fragments/annotation/libs.js +86 -0
  55. package/lib-es/fragments/annotation/store.js +866 -0
  56. package/lib-es/fragments/annotation/style.css +9 -0
  57. package/lib-es/fragments/annotation/toolbar/components/color-tool/color-panel/index.js +40 -0
  58. package/lib-es/fragments/annotation/toolbar/components/color-tool/index.js +48 -0
  59. package/lib-es/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/index.js +55 -0
  60. package/lib-es/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.js +57 -0
  61. package/lib-es/fragments/annotation/toolbar/components/graphic-tool/index.js +62 -0
  62. package/lib-es/fragments/annotation/toolbar/components/item/item.js +106 -0
  63. package/lib-es/fragments/annotation/toolbar/components/item/style.css +45 -0
  64. package/lib-es/fragments/annotation/toolbar/components/panel/index.js +15 -0
  65. package/lib-es/fragments/annotation/toolbar/components/panel/style.css +24 -0
  66. package/lib-es/fragments/annotation/toolbar/components/pen-tool/index.js +54 -0
  67. package/lib-es/fragments/annotation/toolbar/components/pen-tool/pen-panel/index.js +28 -0
  68. package/lib-es/fragments/annotation/toolbar/components/tips/index.js +18 -0
  69. package/lib-es/fragments/annotation/toolbar/components/tips/style.css +19 -0
  70. package/lib-es/fragments/annotation/toolbar/store.js +292 -0
  71. package/lib-es/fragments/annotation/toolbar/style.css +55 -0
  72. package/lib-es/fragments/annotation/toolbar/view.js +140 -0
  73. package/lib-es/fragments/annotation/utils.js +20 -0
  74. package/lib-es/fragments/annotation/view.js +59 -0
  75. package/lib-es/fragments/base.js +40 -0
  76. package/lib-es/fragments/whiteboard/cursor.css +77 -0
  77. package/lib-es/fragments/whiteboard/index.js +80 -0
  78. package/lib-es/fragments/whiteboard/store.js +487 -0
  79. package/lib-es/fragments/whiteboard/style.css +4 -0
  80. package/lib-es/fragments/whiteboard/view.js +24 -0
  81. package/lib-es/global.css +62 -0
  82. package/lib-es/global.d.ts +27 -0
  83. package/lib-es/hooks/i18n.js +10 -0
  84. package/lib-es/index.js +38 -0
  85. package/lib-es/modules/action-bar/components/apps/index.js +43 -0
  86. package/lib-es/modules/action-bar/components/board/index.js +25 -0
  87. package/lib-es/modules/action-bar/components/breakout-room/index.js +23 -0
  88. package/lib-es/modules/action-bar/components/chat/index.css +88 -0
  89. package/lib-es/modules/action-bar/components/chat/index.js +126 -0
  90. package/lib-es/modules/action-bar/components/collapse/index.js +203 -0
  91. package/lib-es/modules/action-bar/components/confirm-leave-meeting/index.js +70 -0
  92. package/lib-es/modules/action-bar/components/interpreter/index.js +34 -0
  93. package/lib-es/modules/action-bar/components/item/index.js +158 -0
  94. package/lib-es/modules/action-bar/components/leave/index.js +118 -0
  95. package/lib-es/modules/action-bar/components/live-streaming/index.js +32 -0
  96. package/lib-es/modules/action-bar/components/more/index.css +114 -0
  97. package/lib-es/modules/action-bar/components/more/index.js +79 -0
  98. package/lib-es/modules/action-bar/components/more/poppover-content.js +410 -0
  99. package/lib-es/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
  100. package/lib-es/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
  101. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
  102. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +93 -0
  103. package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
  104. package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +25 -0
  105. package/lib-es/modules/action-bar/components/notification-bar/index.css +74 -0
  106. package/lib-es/modules/action-bar/components/notification-bar/index.js +96 -0
  107. package/lib-es/modules/action-bar/components/participants/index.css +21 -0
  108. package/lib-es/modules/action-bar/components/participants/index.js +52 -0
  109. package/lib-es/modules/action-bar/components/placement/index.js +10 -0
  110. package/lib-es/modules/action-bar/components/record/index.css +39 -0
  111. package/lib-es/modules/action-bar/components/record/index.js +89 -0
  112. package/lib-es/modules/action-bar/components/record/popover.js +50 -0
  113. package/lib-es/modules/action-bar/components/record/stop-record-dialog.js +41 -0
  114. package/lib-es/modules/action-bar/components/respond/index.js +25 -0
  115. package/lib-es/modules/action-bar/components/screen-share/index.browser.js +61 -0
  116. package/lib-es/modules/action-bar/components/screen-share/index.electron.js +78 -0
  117. package/lib-es/modules/action-bar/components/screen-share/index.js +4 -0
  118. package/lib-es/modules/action-bar/components/screen-share/submenu.js +219 -0
  119. package/lib-es/modules/action-bar/components/security/index.js +42 -0
  120. package/lib-es/modules/action-bar/components/settings/index.js +29 -0
  121. package/lib-es/modules/action-bar/components/smaller/index.js +45 -0
  122. package/lib-es/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
  123. package/lib-es/modules/action-bar/components/trigger-output-language/index.css +86 -0
  124. package/lib-es/modules/action-bar/components/trigger-output-language/index.js +228 -0
  125. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
  126. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +62 -0
  127. package/lib-es/modules/action-bar/components/trigger-subscribe-language/index.js +216 -0
  128. package/lib-es/modules/action-bar/constants.js +1 -0
  129. package/lib-es/modules/action-bar/enums.js +28 -0
  130. package/lib-es/modules/action-bar/index.css +358 -0
  131. package/lib-es/modules/action-bar/main-scene/index.js +123 -0
  132. package/lib-es/modules/action-bar/main-scene/store.base.js +1486 -0
  133. package/lib-es/modules/action-bar/main-scene/store.browser.js +105 -0
  134. package/lib-es/modules/action-bar/main-scene/store.electron.js +94 -0
  135. package/lib-es/modules/action-bar/main-scene/view.js +105 -0
  136. package/lib-es/modules/action-bar/type.js +6 -0
  137. package/lib-es/modules/action-bar/waiting-scene/index.js +94 -0
  138. package/lib-es/modules/action-bar/waiting-scene/store.base.js +88 -0
  139. package/lib-es/modules/action-bar/waiting-scene/store.browser.js +17 -0
  140. package/lib-es/modules/action-bar/waiting-scene/store.electron.js +37 -0
  141. package/lib-es/modules/action-bar/waiting-scene/view.js +116 -0
  142. package/lib-es/modules/audio-stream/index.js +393 -0
  143. package/lib-es/modules/caption/draggable-container/index.css +10 -0
  144. package/lib-es/modules/caption/draggable-container/index.js +159 -0
  145. package/lib-es/modules/caption/index.js +117 -0
  146. package/lib-es/modules/caption/store.js +352 -0
  147. package/lib-es/modules/caption/type.js +7 -0
  148. package/lib-es/modules/caption/view.css +158 -0
  149. package/lib-es/modules/caption/view.js +266 -0
  150. package/lib-es/modules/chat/chat-room-store.js +923 -0
  151. package/lib-es/modules/chat/components/chat-action/index.js +21 -0
  152. package/lib-es/modules/chat/components/chat-bar/index.css +89 -0
  153. package/lib-es/modules/chat/components/chat-bar/index.js +141 -0
  154. package/lib-es/modules/chat/components/chat-select/index.css +185 -0
  155. package/lib-es/modules/chat/components/chat-select/index.js +100 -0
  156. package/lib-es/modules/chat/components/chat-select/select-input/index.js +27 -0
  157. package/lib-es/modules/chat/components/chat-select/select-item/index.js +150 -0
  158. package/lib-es/modules/chat/components/chat-tabs/index.js +53 -0
  159. package/lib-es/modules/chat/components/message-list/chat-empty/index.js +18 -0
  160. package/lib-es/modules/chat/components/message-list/history-unread-message-button/index.js +48 -0
  161. package/lib-es/modules/chat/components/message-list/index.js +327 -0
  162. package/lib-es/modules/chat/components/message-list/message-item/index.js +343 -0
  163. package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +60 -0
  164. package/lib-es/modules/chat/index.css +124 -0
  165. package/lib-es/modules/chat/index.dev.js +71 -0
  166. package/lib-es/modules/chat/index.js +168 -0
  167. package/lib-es/modules/chat/mock.js +276 -0
  168. package/lib-es/modules/chat/store.js +359 -0
  169. package/lib-es/modules/chat/types.js +12 -0
  170. package/lib-es/modules/chat/util.js +63 -0
  171. package/lib-es/modules/chat/view.js +312 -0
  172. package/lib-es/modules/components/annotation-menu/index.js +104 -0
  173. package/lib-es/modules/components/apps/app-item/index.css +49 -0
  174. package/lib-es/modules/components/apps/app-item/index.js +130 -0
  175. package/lib-es/modules/components/apps/app-list.js +49 -0
  176. package/lib-es/modules/components/apps/index.css +9 -0
  177. package/lib-es/modules/components/apps/types.js +1 -0
  178. package/lib-es/modules/components/caption-menu/index.css +58 -0
  179. package/lib-es/modules/components/caption-menu/index.js +108 -0
  180. package/lib-es/modules/components/caption-menu/participants-privilege-control-options.js +65 -0
  181. package/lib-es/modules/components/caption-menu/steps/index.css +73 -0
  182. package/lib-es/modules/components/caption-menu/steps/index.js +49 -0
  183. package/lib-es/modules/components/caption-menu/translation-setting-options.js +180 -0
  184. package/lib-es/modules/components/control-bar/components/loading/index.css +76 -0
  185. package/lib-es/modules/components/control-bar/components/loading/index.js +56 -0
  186. package/lib-es/modules/components/control-bar/components/loading/loading.png +0 -0
  187. package/lib-es/modules/components/control-bar/components/progress/index.js +36 -0
  188. package/lib-es/modules/components/control-bar/components/progress/style.css +51 -0
  189. package/lib-es/modules/components/control-bar/components/switch-theme/index.css +101 -0
  190. package/lib-es/modules/components/control-bar/components/switch-theme/index.js +86 -0
  191. package/lib-es/modules/components/control-bar/components/switch-theme/item.js +46 -0
  192. package/lib-es/modules/components/control-bar/components/switch-theme/libs.js +24 -0
  193. package/lib-es/modules/components/control-bar/index.css +99 -0
  194. package/lib-es/modules/components/control-bar/index.js +357 -0
  195. package/lib-es/modules/components/device-control/components/audio-menu/index.js +167 -0
  196. package/lib-es/modules/components/device-control/components/carmera/index.js +108 -0
  197. package/lib-es/modules/components/device-control/components/microphone/index.js +182 -0
  198. package/lib-es/modules/components/device-control/components/none-menu/index.js +61 -0
  199. package/lib-es/modules/components/device-control/components/phone-menu/index.js +54 -0
  200. package/lib-es/modules/components/device-control/components/video-menu/index.js +105 -0
  201. package/lib-es/modules/components/device-control/hooks/index.js +34 -0
  202. package/lib-es/modules/components/device-control/index.css +177 -0
  203. package/lib-es/modules/components/device-control/index.js +14 -0
  204. package/lib-es/modules/components/device-control/main-scene/store.js +88 -0
  205. package/lib-es/modules/components/device-control/store.base.js +242 -0
  206. package/lib-es/modules/components/device-control/type.js +1 -0
  207. package/lib-es/modules/components/device-control/waiting-scene/store.js +84 -0
  208. package/lib-es/modules/components/leave-meeting/components/assign-host.js +101 -0
  209. package/lib-es/modules/components/leave-meeting/components/index.css +151 -0
  210. package/lib-es/modules/components/leave-meeting/index.js +148 -0
  211. package/lib-es/modules/components/leave-meeting/main-scene/store.js +107 -0
  212. package/lib-es/modules/components/leave-meeting/portal.js +22 -0
  213. package/lib-es/modules/components/leave-meeting/store.base.js +299 -0
  214. package/lib-es/modules/components/leave-meeting/style.css +9 -0
  215. package/lib-es/modules/components/leave-meeting/type.js +1 -0
  216. package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +98 -0
  217. package/lib-es/modules/components/member-window/components/member-actions/components/audio-control.js +35 -0
  218. package/lib-es/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +162 -0
  219. package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +80 -0
  220. package/lib-es/modules/components/member-window/components/member-actions/components/layout/index.js +23 -0
  221. package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +128 -0
  222. package/lib-es/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
  223. package/lib-es/modules/components/member-window/components/member-actions/components/user-info.js +105 -0
  224. package/lib-es/modules/components/member-window/components/member-actions/components/user-tag.js +51 -0
  225. package/lib-es/modules/components/member-window/components/member-actions/index.js +98 -0
  226. package/lib-es/modules/components/member-window/components/member-actions/libs/index.js +14 -0
  227. package/lib-es/modules/components/member-window/components/member-actions/provider.js +70 -0
  228. package/lib-es/modules/components/member-window/components/member-actions/store.js +430 -0
  229. package/lib-es/modules/components/member-window/components/mic-volume.js +16 -0
  230. package/lib-es/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +104 -0
  231. package/lib-es/modules/components/member-window/components/video-player/components/local-video-player.js +1 -0
  232. package/lib-es/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +60 -0
  233. package/lib-es/modules/components/member-window/components/video-player/components/remote-video-player.js +1 -0
  234. package/lib-es/modules/components/member-window/components/video-player/components/zoomable-container.js +223 -0
  235. package/lib-es/modules/components/member-window/components/video-player/index.js +37 -0
  236. package/lib-es/modules/components/member-window/index.css +502 -0
  237. package/lib-es/modules/components/member-window/index.js +179 -0
  238. package/lib-es/modules/components/member-window/types.js +1 -0
  239. package/lib-es/modules/components/security-menu/index.css +42 -0
  240. package/lib-es/modules/components/security-menu/index.js +472 -0
  241. package/lib-es/modules/components/security-menu/store.js +388 -0
  242. package/lib-es/modules/components/security-menu/type.js +1 -0
  243. package/lib-es/modules/components/tab-frame/index.css +40 -0
  244. package/lib-es/modules/components/tab-frame/index.js +51 -0
  245. package/lib-es/modules/components/toolbar/components/capture-tool/index.js +58 -0
  246. package/lib-es/modules/components/toolbar/components/clean-tool/index.js +63 -0
  247. package/lib-es/modules/components/toolbar/components/color-tool/color-panel/index.js +70 -0
  248. package/lib-es/modules/components/toolbar/components/color-tool/index.js +58 -0
  249. package/lib-es/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +57 -0
  250. package/lib-es/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +57 -0
  251. package/lib-es/modules/components/toolbar/components/graphic-tool/index.js +72 -0
  252. package/lib-es/modules/components/toolbar/components/group-tool/index.js +35 -0
  253. package/lib-es/modules/components/toolbar/components/icons/fold-icon.js +33 -0
  254. package/lib-es/modules/components/toolbar/components/icons/move-icon.js +59 -0
  255. package/lib-es/modules/components/toolbar/components/item/index.js +157 -0
  256. package/lib-es/modules/components/toolbar/components/item/style.css +94 -0
  257. package/lib-es/modules/components/toolbar/components/multiple-color-tool/index.js +67 -0
  258. package/lib-es/modules/components/toolbar/components/panel/index.js +21 -0
  259. package/lib-es/modules/components/toolbar/components/panel/style.css +86 -0
  260. package/lib-es/modules/components/toolbar/components/pen-tool/index.js +54 -0
  261. package/lib-es/modules/components/toolbar/components/pen-tool/pen-panel/index.js +32 -0
  262. package/lib-es/modules/components/toolbar/components/save-draft/index.js +51 -0
  263. package/lib-es/modules/components/toolbar/components/vertical-frame/index.js +176 -0
  264. package/lib-es/modules/components/toolbar/hooks/use-resize-visible.js +64 -0
  265. package/lib-es/modules/components/toolbar/index.js +235 -0
  266. package/lib-es/modules/components/toolbar/style.css +85 -0
  267. package/lib-es/modules/components/toolbar/types.js +1 -0
  268. package/lib-es/modules/connection-gateway/components/computer/index.css +12 -0
  269. package/lib-es/modules/connection-gateway/components/computer/index.js +59 -0
  270. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
  271. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +71 -0
  272. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
  273. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +51 -0
  274. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
  275. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +17 -0
  276. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
  277. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +29 -0
  278. package/lib-es/modules/connection-gateway/components/phone/index.css +49 -0
  279. package/lib-es/modules/connection-gateway/components/phone/index.js +177 -0
  280. package/lib-es/modules/connection-gateway/enums.js +5 -0
  281. package/lib-es/modules/connection-gateway/index.css +6 -0
  282. package/lib-es/modules/connection-gateway/index.js +60 -0
  283. package/lib-es/modules/connection-gateway/store.js +709 -0
  284. package/lib-es/modules/connection-gateway/types.js +1 -0
  285. package/lib-es/modules/connection-gateway/view.js +31 -0
  286. package/lib-es/modules/control-bar/components/apps-popover/index.js +34 -0
  287. package/lib-es/modules/control-bar/components/boundary-detector.js +49 -0
  288. package/lib-es/modules/control-bar/components/carmera/index.js +107 -0
  289. package/lib-es/modules/control-bar/components/cloud-recording-buttons.js +109 -0
  290. package/lib-es/modules/control-bar/components/meeting-details/index.css +133 -0
  291. package/lib-es/modules/control-bar/components/meeting-details/index.js +230 -0
  292. package/lib-es/modules/control-bar/components/microphone/index.js +185 -0
  293. package/lib-es/modules/control-bar/components/more-actions/index.css +103 -0
  294. package/lib-es/modules/control-bar/components/more-actions/index.js +158 -0
  295. package/lib-es/modules/control-bar/components/share-audio/index.css +90 -0
  296. package/lib-es/modules/control-bar/components/share-audio/index.js +142 -0
  297. package/lib-es/modules/control-bar/components/share-state-nav/index.css +79 -0
  298. package/lib-es/modules/control-bar/components/share-state-nav/index.js +122 -0
  299. package/lib-es/modules/control-bar/components/stop-live-streaming/index.js +29 -0
  300. package/lib-es/modules/control-bar/components/stop-live-streaming/stop-button.js +28 -0
  301. package/lib-es/modules/control-bar/components/transfer-position-icon/index.js +34 -0
  302. package/lib-es/modules/control-bar/context.js +5 -0
  303. package/lib-es/modules/control-bar/enums.js +27 -0
  304. package/lib-es/modules/control-bar/hooks.js +168 -0
  305. package/lib-es/modules/control-bar/index.css +340 -0
  306. package/lib-es/modules/control-bar/index.dev.js +37 -0
  307. package/lib-es/modules/control-bar/index.js +144 -0
  308. package/lib-es/modules/control-bar/store.js +781 -0
  309. package/lib-es/modules/control-bar/type.js +1 -0
  310. package/lib-es/modules/control-bar/view.js +663 -0
  311. package/lib-es/modules/device-pretest/assets/virtual-backdound-resources.js +14 -0
  312. package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +64 -0
  313. package/lib-es/modules/device-pretest/audio-preview/speaker-control.js +58 -0
  314. package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +63 -0
  315. package/lib-es/modules/device-pretest/index.css +123 -0
  316. package/lib-es/modules/device-pretest/index.js +234 -0
  317. package/lib-es/modules/device-pretest/settings/beauty.js +107 -0
  318. package/lib-es/modules/device-pretest/settings/camera-select.js +45 -0
  319. package/lib-es/modules/device-pretest/settings/video-effect.js +43 -0
  320. package/lib-es/modules/device-pretest/settings/video-settings-basic.js +137 -0
  321. package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +94 -0
  322. package/lib-es/modules/device-pretest/store.js +437 -0
  323. package/lib-es/modules/dialog/components/confirm/index.css +24 -0
  324. package/lib-es/modules/dialog/components/confirm/index.js +154 -0
  325. package/lib-es/modules/dialog/components/dialog-container/component/body.js +103 -0
  326. package/lib-es/modules/dialog/components/dialog-container/index.css +112 -0
  327. package/lib-es/modules/dialog/components/dialog-container/index.js +135 -0
  328. package/lib-es/modules/dialog/components/host-area-container/index.js +146 -0
  329. package/lib-es/modules/dialog/components/normal-window/index.js +53 -0
  330. package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +47 -0
  331. package/lib-es/modules/dialog/dialogs/caption/index.js +35 -0
  332. package/lib-es/modules/dialog/dialogs/chat/components/actions.js +36 -0
  333. package/lib-es/modules/dialog/dialogs/chat/index.js +74 -0
  334. package/lib-es/modules/dialog/dialogs/confirm/index.css +24 -0
  335. package/lib-es/modules/dialog/dialogs/confirm/index.js +51 -0
  336. package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +38 -0
  337. package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +40 -0
  338. package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +40 -0
  339. package/lib-es/modules/dialog/dialogs/control-bar/index.js +29 -0
  340. package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +33 -0
  341. package/lib-es/modules/dialog/dialogs/device-setting/index.css +26 -0
  342. package/lib-es/modules/dialog/dialogs/device-setting/index.js +36 -0
  343. package/lib-es/modules/dialog/dialogs/end-meeting/index.js +48 -0
  344. package/lib-es/modules/dialog/dialogs/interpreter/index.css +30 -0
  345. package/lib-es/modules/dialog/dialogs/interpreter/index.js +38 -0
  346. package/lib-es/modules/dialog/dialogs/invite/index.js +51 -0
  347. package/lib-es/modules/dialog/dialogs/live-streaming/index.js +30 -0
  348. package/lib-es/modules/dialog/dialogs/mute-all/index.css +20 -0
  349. package/lib-es/modules/dialog/dialogs/mute-all/index.js +42 -0
  350. package/lib-es/modules/dialog/dialogs/participant/components/actions.js +23 -0
  351. package/lib-es/modules/dialog/dialogs/participant/components/title.js +9 -0
  352. package/lib-es/modules/dialog/dialogs/participant/index.js +52 -0
  353. package/lib-es/modules/dialog/dialogs/rename/index.js +43 -0
  354. package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +48 -0
  355. package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +32 -0
  356. package/lib-es/modules/dialog/dialogs/sub-window/index.js +31 -0
  357. package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +44 -0
  358. package/lib-es/modules/dialog/dialogs/system-preference/assets/bg1.png +0 -0
  359. package/lib-es/modules/dialog/dialogs/system-preference/assets/bg2.png +0 -0
  360. package/lib-es/modules/dialog/dialogs/system-preference/assets/fcr_png_host.png +0 -0
  361. package/lib-es/modules/dialog/dialogs/system-preference/electron.js +31 -0
  362. package/lib-es/modules/dialog/dialogs/system-preference/index.css +52 -0
  363. package/lib-es/modules/dialog/dialogs/system-preference/index.js +130 -0
  364. package/lib-es/modules/dialog/dialogs/toast/index.js +28 -0
  365. package/lib-es/modules/dialog/dialogs/video-window/index.js +55 -0
  366. package/lib-es/modules/dialog/dialogs/whiteboard/index.js +60 -0
  367. package/lib-es/modules/dialog/dialogs/widget/index.js +40 -0
  368. package/lib-es/modules/dialog/hooks/use-web-drag.js +64 -0
  369. package/lib-es/modules/dialog/index.css +56 -0
  370. package/lib-es/modules/dialog/index.js +70 -0
  371. package/lib-es/modules/dialog/level-config.js +11 -0
  372. package/lib-es/modules/dialog/store.base.js +272 -0
  373. package/lib-es/modules/dialog/store.browser.js +135 -0
  374. package/lib-es/modules/dialog/store.electron.js +284 -0
  375. package/lib-es/modules/dialog/type.js +1 -0
  376. package/lib-es/modules/dialog/view.js +28 -0
  377. package/lib-es/modules/event-sound/enum.js +13 -0
  378. package/lib-es/modules/event-sound/index.js +49 -0
  379. package/lib-es/modules/event-sound/sound-effect-player.js +49 -0
  380. package/lib-es/modules/event-sound/store.js +275 -0
  381. package/lib-es/modules/event-sound/type.js +1 -0
  382. package/lib-es/modules/event-toast/index.css +25 -0
  383. package/lib-es/modules/event-toast/index.js +82 -0
  384. package/lib-es/modules/event-toast/store.base.js +193 -0
  385. package/lib-es/modules/event-toast/store.browser.js +23 -0
  386. package/lib-es/modules/event-toast/store.electron.js +138 -0
  387. package/lib-es/modules/event-toast/type.js +1 -0
  388. package/lib-es/modules/event-toast/view.js +37 -0
  389. package/lib-es/modules/interpreter/action/add-btn/index.css +4 -0
  390. package/lib-es/modules/interpreter/action/add-btn/index.js +35 -0
  391. package/lib-es/modules/interpreter/action/delete-btn/index.css +14 -0
  392. package/lib-es/modules/interpreter/action/delete-btn/index.js +31 -0
  393. package/lib-es/modules/interpreter/action/edit-btn/index.js +39 -0
  394. package/lib-es/modules/interpreter/action/switch-btn/index.css +3 -0
  395. package/lib-es/modules/interpreter/action/switch-btn/index.js +44 -0
  396. package/lib-es/modules/interpreter/dialog-content/index.css +33 -0
  397. package/lib-es/modules/interpreter/dialog-content/index.js +30 -0
  398. package/lib-es/modules/interpreter/footer/index.css +11 -0
  399. package/lib-es/modules/interpreter/footer/index.js +18 -0
  400. package/lib-es/modules/interpreter/index.css +4 -0
  401. package/lib-es/modules/interpreter/index.js +109 -0
  402. package/lib-es/modules/interpreter/interpreter-list/index.css +8 -0
  403. package/lib-es/modules/interpreter/interpreter-list/index.js +30 -0
  404. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +46 -0
  405. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +173 -0
  406. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  407. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  408. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  409. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  410. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  411. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  412. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  413. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  414. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  415. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  416. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  417. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  418. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  419. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  420. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  421. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  422. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  423. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +169 -0
  424. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +46 -0
  425. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +120 -0
  426. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +51 -0
  427. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/index.css +32 -0
  428. package/lib-es/modules/interpreter/interpreter-list/interpreter-item/index.js +40 -0
  429. package/lib-es/modules/interpreter/loading-wrapper/index.css +53 -0
  430. package/lib-es/modules/interpreter/loading-wrapper/index.js +20 -0
  431. package/lib-es/modules/interpreter/store.js +614 -0
  432. package/lib-es/modules/interpreter/tooltip-wrapper/index.js +23 -0
  433. package/lib-es/modules/interpreter/type.js +5 -0
  434. package/lib-es/modules/interpreter/utils.js +54 -0
  435. package/lib-es/modules/interpreter/view.js +62 -0
  436. package/lib-es/modules/invite/components/error-tips.js +11 -0
  437. package/lib-es/modules/invite/components/pstn-invite.js +245 -0
  438. package/lib-es/modules/invite/components/voip-invite.css +26 -0
  439. package/lib-es/modules/invite/components/voip-invite.js +265 -0
  440. package/lib-es/modules/invite/enums.js +27 -0
  441. package/lib-es/modules/invite/index.css +331 -0
  442. package/lib-es/modules/invite/index.js +64 -0
  443. package/lib-es/modules/invite/store.js +578 -0
  444. package/lib-es/modules/invite/types.js +1 -0
  445. package/lib-es/modules/invite/view.js +46 -0
  446. package/lib-es/modules/layout/components/Aside.js +208 -0
  447. package/lib-es/modules/layout/components/Carousel.js +192 -0
  448. package/lib-es/modules/layout/components/CommonVideoRenderer.js +265 -0
  449. package/lib-es/modules/layout/components/Gallery.js +256 -0
  450. package/lib-es/modules/layout/components/index.css +653 -0
  451. package/lib-es/modules/layout/components/index.js +5 -0
  452. package/lib-es/modules/layout/components/utils.js +3 -0
  453. package/lib-es/modules/layout/components/who-is-speaking.js +49 -0
  454. package/lib-es/modules/layout/index.css +59 -0
  455. package/lib-es/modules/layout/index.dev.js +313 -0
  456. package/lib-es/modules/layout/index.js +74 -0
  457. package/lib-es/modules/layout/store.base.js +1468 -0
  458. package/lib-es/modules/layout/store.browser.js +49 -0
  459. package/lib-es/modules/layout/store.electron.js +175 -0
  460. package/lib-es/modules/layout/type.js +59 -0
  461. package/lib-es/modules/layout/view.js +149 -0
  462. package/lib-es/modules/live-streaming/index.css +0 -0
  463. package/lib-es/modules/live-streaming/index.dev.js +56 -0
  464. package/lib-es/modules/live-streaming/index.js +60 -0
  465. package/lib-es/modules/live-streaming/store.js +246 -0
  466. package/lib-es/modules/live-streaming/type.js +1 -0
  467. package/lib-es/modules/live-streaming/view.js +26 -0
  468. package/lib-es/modules/notification/index.css +77 -0
  469. package/lib-es/modules/notification/index.js +59 -0
  470. package/lib-es/modules/notification/interpreter-status/index.css +76 -0
  471. package/lib-es/modules/notification/interpreter-status/index.js +55 -0
  472. package/lib-es/modules/notification/store.js +122 -0
  473. package/lib-es/modules/notification/type.js +1 -0
  474. package/lib-es/modules/notification/view.js +127 -0
  475. package/lib-es/modules/offscreen-pulling/index.js +122 -0
  476. package/lib-es/modules/participant/components/can-moveable/index.js +59 -0
  477. package/lib-es/modules/participant/components/confirm-input/index.css +4 -0
  478. package/lib-es/modules/participant/components/confirm-input/index.js +112 -0
  479. package/lib-es/modules/participant/components/mute-all/index.js +67 -0
  480. package/lib-es/modules/participant/components/operate-waitingroom-member/index.js +40 -0
  481. package/lib-es/modules/participant/components/participants/components/footer/components/buttons.js +45 -0
  482. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.css +83 -0
  483. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +156 -0
  484. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +21 -0
  485. package/lib-es/modules/participant/components/participants/components/footer/index.js +42 -0
  486. package/lib-es/modules/participant/components/participants/components/merge/index.js +40 -0
  487. package/lib-es/modules/participant/components/participants/components/render-tab/index.js +42 -0
  488. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +40 -0
  489. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +21 -0
  490. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +32 -0
  491. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +87 -0
  492. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.js +138 -0
  493. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +25 -0
  494. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +70 -0
  495. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +20 -0
  496. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +70 -0
  497. package/lib-es/modules/participant/components/participants/components/render-user/index.js +16 -0
  498. package/lib-es/modules/participant/components/participants/index.js +71 -0
  499. package/lib-es/modules/participant/index.css +102 -0
  500. package/lib-es/modules/participant/index.dev.js +87 -0
  501. package/lib-es/modules/participant/index.js +137 -0
  502. package/lib-es/modules/participant/member-list-data-source.js +297 -0
  503. package/lib-es/modules/participant/store.base.js +2354 -0
  504. package/lib-es/modules/participant/store.browser.js +117 -0
  505. package/lib-es/modules/participant/store.electron.js +124 -0
  506. package/lib-es/modules/participant/struct.js +55 -0
  507. package/lib-es/modules/participant/type.js +7 -0
  508. package/lib-es/modules/participant/view.js +18 -0
  509. package/lib-es/modules/pc-audio-connect/index.css +12 -0
  510. package/lib-es/modules/pc-audio-connect/main-scene/index.js +67 -0
  511. package/lib-es/modules/pc-audio-connect/main-scene/store.js +313 -0
  512. package/lib-es/modules/pc-audio-connect/types.js +1 -0
  513. package/lib-es/modules/pc-audio-connect/view.js +60 -0
  514. package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +61 -0
  515. package/lib-es/modules/pc-audio-connect/waiting-scene/store.js +293 -0
  516. package/lib-es/modules/phone-audio-connect/components/callinfo/index.css +36 -0
  517. package/lib-es/modules/phone-audio-connect/components/callinfo/index.js +71 -0
  518. package/lib-es/modules/phone-audio-connect/components/calling/index.css +72 -0
  519. package/lib-es/modules/phone-audio-connect/components/calling/index.js +51 -0
  520. package/lib-es/modules/phone-audio-connect/components/remeber/index.css +10 -0
  521. package/lib-es/modules/phone-audio-connect/components/remeber/index.js +17 -0
  522. package/lib-es/modules/phone-audio-connect/components/useing/index.css +46 -0
  523. package/lib-es/modules/phone-audio-connect/components/useing/index.js +29 -0
  524. package/lib-es/modules/phone-audio-connect/enums.js +5 -0
  525. package/lib-es/modules/phone-audio-connect/index.css +56 -0
  526. package/lib-es/modules/phone-audio-connect/index.js +52 -0
  527. package/lib-es/modules/phone-audio-connect/store.js +317 -0
  528. package/lib-es/modules/phone-audio-connect/types.js +1 -0
  529. package/lib-es/modules/phone-audio-connect/view.js +177 -0
  530. package/lib-es/modules/secondary-window/index.js +147 -0
  531. package/lib-es/modules/secondary-window/store.js +502 -0
  532. package/lib-es/modules/secondary-window/type.js +28 -0
  533. package/lib-es/modules/secondary-window/view.js +281 -0
  534. package/lib-es/modules/setting/audio-settings/audio-settings.js +292 -0
  535. package/lib-es/modules/setting/audio-settings/index.css +195 -0
  536. package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +62 -0
  537. package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +368 -0
  538. package/lib-es/modules/setting/caption_and_transcribing/index.css +88 -0
  539. package/lib-es/modules/setting/caption_and_transcribing/index.js +89 -0
  540. package/lib-es/modules/setting/general-settings/general-settings.js +148 -0
  541. package/lib-es/modules/setting/general-settings/index.css +41 -0
  542. package/lib-es/modules/setting/index.css +112 -0
  543. package/lib-es/modules/setting/index.dev.js +120 -0
  544. package/lib-es/modules/setting/index.js +145 -0
  545. package/lib-es/modules/setting/minutes-settings/index.css +65 -0
  546. package/lib-es/modules/setting/minutes-settings/minutes-settings.js +146 -0
  547. package/lib-es/modules/setting/state/index.css +207 -0
  548. package/lib-es/modules/setting/state/index.js +322 -0
  549. package/lib-es/modules/setting/storage-settings/index.css +91 -0
  550. package/lib-es/modules/setting/storage-settings/storage-settings.js +65 -0
  551. package/lib-es/modules/setting/store.base.js +1440 -0
  552. package/lib-es/modules/setting/store.browser.js +43 -0
  553. package/lib-es/modules/setting/store.electron.js +168 -0
  554. package/lib-es/modules/setting/translate-settings/index.css +47 -0
  555. package/lib-es/modules/setting/translate-settings/language-select.js +40 -0
  556. package/lib-es/modules/setting/translate-settings/translate-settings.js +131 -0
  557. package/lib-es/modules/setting/type.js +14 -0
  558. package/lib-es/modules/setting/video-settings/index.css +357 -0
  559. package/lib-es/modules/setting/video-settings/video-settings-basic.js +131 -0
  560. package/lib-es/modules/setting/video-settings/video-settings.js +167 -0
  561. package/lib-es/modules/setting/view.js +147 -0
  562. package/lib-es/modules/share-screen/components/control-bar/index.css +75 -0
  563. package/lib-es/modules/share-screen/components/control-bar/index.js +92 -0
  564. package/lib-es/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +38 -0
  565. package/lib-es/modules/share-screen/components/control-bar/items/full-container-btn/index.js +25 -0
  566. package/lib-es/modules/share-screen/components/control-bar/items/original-size-btn/index.js +25 -0
  567. package/lib-es/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +25 -0
  568. package/lib-es/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +25 -0
  569. package/lib-es/modules/share-screen/components/selection/index.css +73 -0
  570. package/lib-es/modules/share-screen/components/selection/index.js +220 -0
  571. package/lib-es/modules/share-screen/components/share-scenario/index.js +40 -0
  572. package/lib-es/modules/share-screen/components/share-state-bar/index.css +76 -0
  573. package/lib-es/modules/share-screen/components/share-state-bar/index.js +90 -0
  574. package/lib-es/modules/share-screen/index.css +0 -0
  575. package/lib-es/modules/share-screen/index.dev.js +90 -0
  576. package/lib-es/modules/share-screen/index.js +99 -0
  577. package/lib-es/modules/share-screen/store.base.js +464 -0
  578. package/lib-es/modules/share-screen/store.browser.js +36 -0
  579. package/lib-es/modules/share-screen/store.electron.js +429 -0
  580. package/lib-es/modules/share-screen/type.js +8 -0
  581. package/lib-es/modules/share-screen/view.js +24 -0
  582. package/lib-es/modules/state-bar/assets/fcr_grid_big.svg +3 -0
  583. package/lib-es/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
  584. package/lib-es/modules/state-bar/assets/live-streaming.gif +0 -0
  585. package/lib-es/modules/state-bar/index.css +706 -0
  586. package/lib-es/modules/state-bar/index.dev.js +78 -0
  587. package/lib-es/modules/state-bar/index.js +41 -0
  588. package/lib-es/modules/state-bar/layout-config.js +168 -0
  589. package/lib-es/modules/state-bar/live-streaming-state.js +169 -0
  590. package/lib-es/modules/state-bar/main-scene/index.js +39 -0
  591. package/lib-es/modules/state-bar/main-scene/store.base.js +137 -0
  592. package/lib-es/modules/state-bar/main-scene/store.browser.js +80 -0
  593. package/lib-es/modules/state-bar/main-scene/store.electron.js +107 -0
  594. package/lib-es/modules/state-bar/meeting-detail.css +137 -0
  595. package/lib-es/modules/state-bar/meeting-details.js +219 -0
  596. package/lib-es/modules/state-bar/meeting-network-state.css +150 -0
  597. package/lib-es/modules/state-bar/meeting-network-state.js +107 -0
  598. package/lib-es/modules/state-bar/meeting-time.js +25 -0
  599. package/lib-es/modules/state-bar/network-quality.js +26 -0
  600. package/lib-es/modules/state-bar/recording.js +103 -0
  601. package/lib-es/modules/state-bar/store.base.electron.js +108 -0
  602. package/lib-es/modules/state-bar/store.base.js +616 -0
  603. package/lib-es/modules/state-bar/subtitles-history-state.js +101 -0
  604. package/lib-es/modules/state-bar/type.js +1 -0
  605. package/lib-es/modules/state-bar/view.js +241 -0
  606. package/lib-es/modules/state-bar/waiting-scene/index.js +39 -0
  607. package/lib-es/modules/state-bar/waiting-scene/store.base.js +48 -0
  608. package/lib-es/modules/state-bar/waiting-scene/store.browser.js +80 -0
  609. package/lib-es/modules/state-bar/waiting-scene/store.electron.js +99 -0
  610. package/lib-es/modules/subtitles-history/components/actions.js +29 -0
  611. package/lib-es/modules/subtitles-history/components/list-item.js +95 -0
  612. package/lib-es/modules/subtitles-history/components/list.js +175 -0
  613. package/lib-es/modules/subtitles-history/components/respond-dialog-content.js +36 -0
  614. package/lib-es/modules/subtitles-history/components/settings/index.css +5 -0
  615. package/lib-es/modules/subtitles-history/components/settings/index.js +46 -0
  616. package/lib-es/modules/subtitles-history/components/timer.js +36 -0
  617. package/lib-es/modules/subtitles-history/components/title.js +8 -0
  618. package/lib-es/modules/subtitles-history/empty.js +14 -0
  619. package/lib-es/modules/subtitles-history/index.css +129 -0
  620. package/lib-es/modules/subtitles-history/index.js +89 -0
  621. package/lib-es/modules/subtitles-history/store.base.js +790 -0
  622. package/lib-es/modules/subtitles-history/store.electron.js +148 -0
  623. package/lib-es/modules/subtitles-history/type.js +1 -0
  624. package/lib-es/modules/subtitles-history/view.js +96 -0
  625. package/lib-es/modules/video-window/components/deviceState/index.js +68 -0
  626. package/lib-es/modules/video-window/components/members/index.css +51 -0
  627. package/lib-es/modules/video-window/components/members/index.js +116 -0
  628. package/lib-es/modules/video-window/components/speaking/index.css +86 -0
  629. package/lib-es/modules/video-window/components/speaking/index.js +40 -0
  630. package/lib-es/modules/video-window/components/topControl/index.css +35 -0
  631. package/lib-es/modules/video-window/components/topControl/index.js +68 -0
  632. package/lib-es/modules/video-window/index.css +21 -0
  633. package/lib-es/modules/video-window/index.js +82 -0
  634. package/lib-es/modules/video-window/popover-watcher.js +69 -0
  635. package/lib-es/modules/video-window/store.js +512 -0
  636. package/lib-es/modules/video-window/type.js +19 -0
  637. package/lib-es/modules/video-window/view.js +107 -0
  638. package/lib-es/modules/waiting-room-layout/index.css +96 -0
  639. package/lib-es/modules/waiting-room-layout/index.js +67 -0
  640. package/lib-es/modules/waiting-room-layout/store.js +231 -0
  641. package/lib-es/modules/waiting-room-layout/view.js +87 -0
  642. package/lib-es/modules/whiteboard/components/control-bar/index.css +52 -0
  643. package/lib-es/modules/whiteboard/components/control-bar/index.js +151 -0
  644. package/lib-es/modules/whiteboard/components/control-bar/store.js +298 -0
  645. package/lib-es/modules/whiteboard/components/loading/index.css +76 -0
  646. package/lib-es/modules/whiteboard/components/loading/index.js +57 -0
  647. package/lib-es/modules/whiteboard/components/loading/loading.png +0 -0
  648. package/lib-es/modules/whiteboard/components/multi-window/index.css +63 -0
  649. package/lib-es/modules/whiteboard/components/multi-window/index.js +31 -0
  650. package/lib-es/modules/whiteboard/components/pagination/index.css +228 -0
  651. package/lib-es/modules/whiteboard/components/pagination/index.js +155 -0
  652. package/lib-es/modules/whiteboard/components/pagination/store.js +10 -0
  653. package/lib-es/modules/whiteboard/components/progress/index.js +36 -0
  654. package/lib-es/modules/whiteboard/components/progress/style.css +51 -0
  655. package/lib-es/modules/whiteboard/components/scene-pagination.js +23 -0
  656. package/lib-es/modules/whiteboard/components/switch-theme/index.css +99 -0
  657. package/lib-es/modules/whiteboard/components/switch-theme/index.js +89 -0
  658. package/lib-es/modules/whiteboard/components/switch-theme/item.js +46 -0
  659. package/lib-es/modules/whiteboard/components/switch-theme/libs.js +24 -0
  660. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +30 -0
  661. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +101 -0
  662. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +67 -0
  663. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/index.js +40 -0
  664. package/lib-es/modules/whiteboard/components/toolbar/components/eraser-picker.js +136 -0
  665. package/lib-es/modules/whiteboard/components/toolbar/components/expansion/index.js +85 -0
  666. package/lib-es/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +46 -0
  667. package/lib-es/modules/whiteboard/components/toolbar/components/history.js +70 -0
  668. package/lib-es/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +33 -0
  669. package/lib-es/modules/whiteboard/components/toolbar/components/icons/move-icon.js +59 -0
  670. package/lib-es/modules/whiteboard/components/toolbar/components/item/index.js +35 -0
  671. package/lib-es/modules/whiteboard/components/toolbar/components/move-handle.js +127 -0
  672. package/lib-es/modules/whiteboard/components/toolbar/components/pen-picker.js +147 -0
  673. package/lib-es/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +78 -0
  674. package/lib-es/modules/whiteboard/components/toolbar/components/shape-picker.js +202 -0
  675. package/lib-es/modules/whiteboard/components/toolbar/hooks/index.js +285 -0
  676. package/lib-es/modules/whiteboard/components/toolbar/index.js +72 -0
  677. package/lib-es/modules/whiteboard/components/toolbar/store.js +484 -0
  678. package/lib-es/modules/whiteboard/components/toolbar/style.css +591 -0
  679. package/lib-es/modules/whiteboard/context.js +28 -0
  680. package/lib-es/modules/whiteboard/index.js +67 -0
  681. package/lib-es/modules/whiteboard/libs/theme.js +24 -0
  682. package/lib-es/modules/whiteboard/store.browser.js +20 -0
  683. package/lib-es/modules/whiteboard/store.electron.js +163 -0
  684. package/lib-es/modules/whiteboard/store.js +457 -0
  685. package/lib-es/modules/whiteboard/style.css +140 -0
  686. package/lib-es/modules/whiteboard/type.js +52 -0
  687. package/lib-es/modules/whiteboard/utils.js +29 -0
  688. package/lib-es/modules/whiteboard/view.js +105 -0
  689. package/lib-es/modules/widget/index.css +9 -0
  690. package/lib-es/modules/widget/index.js +129 -0
  691. package/lib-es/modules/widget/store.base.js +35 -0
  692. package/lib-es/modules/widget/store.browser.js +74 -0
  693. package/lib-es/modules/widget/store.electron.js +127 -0
  694. package/lib-es/modules/widget/type.js +1 -0
  695. package/lib-es/modules/widget/view.js +49 -0
  696. package/lib-es/modules/widget/web-widget.js +263 -0
  697. package/lib-es/object-manager.js +194 -0
  698. package/lib-es/plugins/browser-runtime-plugin.js +0 -0
  699. package/lib-es/plugins/css-preset-plugin.js +18 -0
  700. package/lib-es/plugins/electron-rtc-plugin.js +3 -0
  701. package/lib-es/plugins/module-dev-plugin.js +162 -0
  702. package/lib-es/plugins/multi-lang-plugin.js +18 -0
  703. package/lib-es/plugins/rtm-plugin.js +3 -0
  704. package/lib-es/plugins/web-rtc-plugin.js +3 -0
  705. package/lib-es/providers/ability-provider.js +76 -0
  706. package/lib-es/providers/annotation/provider.js +61 -0
  707. package/lib-es/providers/annotation/type.js +1 -0
  708. package/lib-es/providers/app-list-provider.js +392 -0
  709. package/lib-es/providers/board-share/bar-control/base.js +318 -0
  710. package/lib-es/providers/board-share/bar-control/browser.js +34 -0
  711. package/lib-es/providers/board-share/bar-control/electron.js +211 -0
  712. package/lib-es/providers/board-share/provider.base.js +406 -0
  713. package/lib-es/providers/board-share/provider.browser.js +147 -0
  714. package/lib-es/providers/board-share/provider.electron.js +162 -0
  715. package/lib-es/providers/board-share/struct.js +16 -0
  716. package/lib-es/providers/board-share/type.js +1 -0
  717. package/lib-es/providers/chat-provider.js +166 -0
  718. package/lib-es/providers/device-privilege-provider.js +402 -0
  719. package/lib-es/providers/device-provider.js +2148 -0
  720. package/lib-es/providers/device-stream-provider.js +418 -0
  721. package/lib-es/providers/dialog/provider.base.js +282 -0
  722. package/lib-es/providers/dialog/provider.browser.js +160 -0
  723. package/lib-es/providers/dialog/provider.electron.js +273 -0
  724. package/lib-es/providers/dialog/type.js +8 -0
  725. package/lib-es/providers/event-provider.js +50 -0
  726. package/lib-es/providers/facility/provider.base.js +152 -0
  727. package/lib-es/providers/facility/provider.browser.js +67 -0
  728. package/lib-es/providers/facility/provider.electron.js +83 -0
  729. package/lib-es/providers/facility/struct.js +6 -0
  730. package/lib-es/providers/facility/type.js +1 -0
  731. package/lib-es/providers/interpreter-provider.js +955 -0
  732. package/lib-es/providers/local-storage-provider.js +37 -0
  733. package/lib-es/providers/message/provider.js +97 -0
  734. package/lib-es/providers/message/struct.js +5 -0
  735. package/lib-es/providers/message/type.js +1 -0
  736. package/lib-es/providers/monitor-provider.js +22 -0
  737. package/lib-es/providers/mouse-detect/provider.js +312 -0
  738. package/lib-es/providers/mouse-detect/struct.js +5 -0
  739. package/lib-es/providers/mouse-detect/type.js +1 -0
  740. package/lib-es/providers/multi-display-provider.js +603 -0
  741. package/lib-es/providers/phone-audio-provider.js +512 -0
  742. package/lib-es/providers/privilege-provider.js +1158 -0
  743. package/lib-es/providers/renderer-provider.js +310 -0
  744. package/lib-es/providers/room-provider/room-provider.js +730 -0
  745. package/lib-es/providers/room-provider/waiting-room-control-manager.js +224 -0
  746. package/lib-es/providers/screen-share/constant.js +1 -0
  747. package/lib-es/providers/screen-share/provider.base.js +511 -0
  748. package/lib-es/providers/screen-share/provider.browser.js +290 -0
  749. package/lib-es/providers/screen-share/provider.electron.js +486 -0
  750. package/lib-es/providers/screen-share/strategy/browser.js +306 -0
  751. package/lib-es/providers/screen-share/strategy/electron.js +364 -0
  752. package/lib-es/providers/screen-share/strategy/type.js +31 -0
  753. package/lib-es/providers/screen-share/stream-state-sync.js +312 -0
  754. package/lib-es/providers/screen-share/struct.js +60 -0
  755. package/lib-es/providers/screen-share/type.js +1 -0
  756. package/lib-es/providers/session-provider.js +42 -0
  757. package/lib-es/providers/setting-storage/provider.base.js +6 -0
  758. package/lib-es/providers/setting-storage/provider.browser.js +57 -0
  759. package/lib-es/providers/setting-storage/provider.electron.js +55 -0
  760. package/lib-es/providers/setting-storage/type.js +1 -0
  761. package/lib-es/providers/stt-provider/stt-provider.js +1000 -0
  762. package/lib-es/providers/stt-provider/type.js +14 -0
  763. package/lib-es/providers/widget-provider.js +236 -0
  764. package/lib-es/providers/window/main-window.js +259 -0
  765. package/lib-es/providers/window/provider.js +158 -0
  766. package/lib-es/providers/window/renderer-window.js +576 -0
  767. package/lib-es/providers/window/type.js +1 -0
  768. package/lib-es/runtime.js +1 -0
  769. package/lib-es/scenes/main-scene.js +696 -0
  770. package/lib-es/scenes/type.js +1 -0
  771. package/lib-es/scenes/waiting-scene.js +155 -0
  772. package/lib-es/schema.js +88 -0
  773. package/lib-es/shared-context/board-context.js +7 -0
  774. package/lib-es/shared-context/dialog-context.js +3 -0
  775. package/lib-es/shared-context/video-track-render-context.js +2 -0
  776. package/lib-es/shared-data/app-list-data.js +122 -0
  777. package/lib-es/shared-data/chat-data.js +135 -0
  778. package/lib-es/shared-data/config.js +38 -0
  779. package/lib-es/shared-data/confirm-data.js +195 -0
  780. package/lib-es/shared-data/device-privilege-data.js +18 -0
  781. package/lib-es/shared-data/interpreter.js +235 -0
  782. package/lib-es/shared-data/layout-data.js +211 -0
  783. package/lib-es/shared-data/meeting-time.js +409 -0
  784. package/lib-es/shared-data/member-data.js +482 -0
  785. package/lib-es/shared-data/pin-data.js +107 -0
  786. package/lib-es/shared-data/screen-share/index.js +188 -0
  787. package/lib-es/shared-data/screen-share/type.js +1 -0
  788. package/lib-es/shared-data/security-data.js +153 -0
  789. package/lib-es/shared-data/setting.js +244 -0
  790. package/lib-es/shared-data/speaker-spotlight.js +11 -0
  791. package/lib-es/shared-data/stt-setting.ts/constant.js +27 -0
  792. package/lib-es/shared-data/stt-setting.ts/index.js +195 -0
  793. package/lib-es/shared-data/stt-setting.ts/type.js +7 -0
  794. package/lib-es/shared-data/video-window.js +1248 -0
  795. package/lib-es/shared-data/waiting-room.js +216 -0
  796. package/lib-es/shared-data/widget-data.js +42 -0
  797. package/lib-es/translations/enUS.js +2075 -0
  798. package/lib-es/translations/zhCN.js +2073 -0
  799. package/lib-es/type.js +149 -0
  800. package/lib-es/ui-manager.js +213 -0
  801. package/lib-es/ui-scene-switch.js +572 -0
  802. package/lib-es/utilities/browser-api.js +74 -0
  803. package/lib-es/utilities/constant.js +190 -0
  804. package/lib-es/utilities/debug.js +33 -0
  805. package/lib-es/utilities/default-config.js +89 -0
  806. package/lib-es/utilities/dialog-utils.js +210 -0
  807. package/lib-es/utilities/focus-helper.js +26 -0
  808. package/lib-es/utilities/hooks.js +82 -0
  809. package/lib-es/utilities/i18n-common-data.js +7 -0
  810. package/lib-es/utilities/logger.js +48 -0
  811. package/lib-es/utilities/meeting-detail.js +74 -0
  812. package/lib-es/utilities/mute-action.js +41 -0
  813. package/lib-es/utilities/package-info.js +7 -0
  814. package/lib-es/utilities/parameters.js +47 -0
  815. package/lib-es/utilities/platform.js +7 -0
  816. package/lib-es/utilities/privilege.js +21 -0
  817. package/lib-es/utilities/regex.js +7 -0
  818. package/lib-es/utilities/renderer.js +430 -0
  819. package/lib-es/utilities/shared-storage.js +56 -0
  820. package/lib-es/utilities/tools.js +252 -0
  821. package/lib-es/utilities/ui-resources.js +84 -0
  822. package/lib-es/utilities/useNamespace.js +59 -0
  823. package/lib-es/utilities/validate-params.js +9 -0
  824. package/package.json +11 -9
@@ -0,0 +1,1158 @@
1
+ import "core-js/modules/es.symbol.js";
2
+ import "core-js/modules/es.symbol.description.js";
3
+ import "core-js/modules/es.symbol.to-primitive.js";
4
+ import "core-js/modules/es.error.cause.js";
5
+ import "core-js/modules/es.error.to-string.js";
6
+ import "core-js/modules/es.array.is-array.js";
7
+ import "core-js/modules/es.date.to-primitive.js";
8
+ import "core-js/modules/es.function.name.js";
9
+ import "core-js/modules/es.map.js";
10
+ import "core-js/modules/es.number.constructor.js";
11
+ import "core-js/modules/es.object.create.js";
12
+ import "core-js/modules/es.object.define-property.js";
13
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
14
+ import "core-js/modules/esnext.function.metadata.js";
15
+ import "core-js/modules/esnext.map.delete-all.js";
16
+ import "core-js/modules/esnext.map.emplace.js";
17
+ import "core-js/modules/esnext.map.every.js";
18
+ import "core-js/modules/esnext.map.filter.js";
19
+ import "core-js/modules/esnext.map.find.js";
20
+ import "core-js/modules/esnext.map.find-key.js";
21
+ import "core-js/modules/esnext.map.includes.js";
22
+ import "core-js/modules/esnext.map.key-of.js";
23
+ import "core-js/modules/esnext.map.map-keys.js";
24
+ import "core-js/modules/esnext.map.map-values.js";
25
+ import "core-js/modules/esnext.map.merge.js";
26
+ import "core-js/modules/esnext.map.reduce.js";
27
+ import "core-js/modules/esnext.map.some.js";
28
+ import "core-js/modules/esnext.map.update.js";
29
+ import "core-js/modules/esnext.symbol.metadata.js";
30
+ import _typeof from "@babel/runtime/helpers/typeof";
31
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
32
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
33
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
34
+ import _createClass from "@babel/runtime/helpers/createClass";
35
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
36
+ var _FcrUIPrivilegeProviderImpl;
37
+ var _initProto, _init__isWatermarkOperationAllowed, _init__isWatermarkMultiLine, _init_securityInfos, _init_permissionInfos, _init__privilegeOperator, _allowWatermarkDecs, _setAllowWaterMarkLineDecs, _allowJoinWithPromptSoundDecs, _handlePermissionUpdatedDecs, _handleSecurityUpdatedDecs, _ref;
38
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
39
+ import "core-js/modules/es.array.find.js";
40
+ import "core-js/modules/es.array.for-each.js";
41
+ import "core-js/modules/es.array.includes.js";
42
+ import "core-js/modules/es.array.iterator.js";
43
+ import "core-js/modules/es.array.push.js";
44
+ import "core-js/modules/es.array.some.js";
45
+ import "core-js/modules/es.function.bind.js";
46
+ import "core-js/modules/es.object.keys.js";
47
+ import "core-js/modules/es.object.to-string.js";
48
+ import "core-js/modules/es.string.includes.js";
49
+ import "core-js/modules/es.string.iterator.js";
50
+ import "core-js/modules/es.weak-map.js";
51
+ import "core-js/modules/esnext.iterator.constructor.js";
52
+ import "core-js/modules/esnext.iterator.find.js";
53
+ import "core-js/modules/esnext.iterator.for-each.js";
54
+ import "core-js/modules/esnext.iterator.some.js";
55
+ import "core-js/modules/esnext.weak-map.delete-all.js";
56
+ import "core-js/modules/esnext.weak-map.emplace.js";
57
+ import "core-js/modules/web.dom-collections.for-each.js";
58
+ import "core-js/modules/web.dom-collections.iterator.js";
59
+ import "core-js/modules/web.timers.js";
60
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
61
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
62
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
63
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
64
+ 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"); }
65
+ 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)]; } }; }
66
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
67
+ 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); }
68
+ 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; }
69
+ 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; }
70
+ import { FcrStreamPrivilegeOperation } from 'fcr-core';
71
+ import { FcrUserRole, FcrLineType } from 'fcr-core/lib/type';
72
+ import { action, observable, reaction, toJS } from 'mobx';
73
+ import { computedFn } from 'mobx-utils';
74
+ import { every } from 'lodash';
75
+ import { convertFcrPrivilegeRoleToStringPrivilegeRole } from 'fcr-core/lib/utilities/user';
76
+ import { FcrToastApi } from 'agora-ui-foundation/lib/components/toast';
77
+ import { transI18n } from 'agora-ui-foundation/lib/i18n';
78
+ import { FcrPermissionAction, FcrPrivilegeUserRole, FcrSecurityAction } from 'fcr-core/lib/room-control/privilege-control/type';
79
+ import { createLogger } from '../utilities/logger';
80
+ import { AgoraObservable, jsonstring } from 'fcr-core/lib/imports';
81
+ import { FcrSharePermissionState } from 'fcr-core/lib/room-control/sharing-control/type';
82
+ var _A = /*#__PURE__*/new WeakMap();
83
+ var _B = /*#__PURE__*/new WeakMap();
84
+ var _C = /*#__PURE__*/new WeakMap();
85
+ var _D = /*#__PURE__*/new WeakMap();
86
+ var _E = /*#__PURE__*/new WeakMap();
87
+ _ref = (_allowWatermarkDecs = [action, action.bound], _setAllowWaterMarkLineDecs = [action, action.bound], _allowJoinWithPromptSoundDecs = [action, action.bound], _handlePermissionUpdatedDecs = [action, action.bound], _handleSecurityUpdatedDecs = [action, action.bound], "logger");
88
+ export var FcrUIPrivilegeProviderImpl = /*#__PURE__*/function () {
89
+ function FcrUIPrivilegeProviderImpl(_privilegeControl, _userControl, _streamControl, _eventProvider) {
90
+ var _this = this;
91
+ _classCallCheck(this, FcrUIPrivilegeProviderImpl);
92
+ _defineProperty(this, _ref, (_initProto(this), createLogger({
93
+ prefix: 'FcrUIPrivilegeProviderImpl'
94
+ })));
95
+ _defineProperty(this, "_disposers", []);
96
+ _defineProperty(this, "_observable", new AgoraObservable());
97
+ _defineProperty(this, "_watermarkLoadingTimber", null);
98
+ _classPrivateFieldInitSpec(this, _A, _init__isWatermarkOperationAllowed(this, true));
99
+ _classPrivateFieldInitSpec(this, _B, _init__isWatermarkMultiLine(this, false));
100
+ _classPrivateFieldInitSpec(this, _C, _init_securityInfos(this));
101
+ _classPrivateFieldInitSpec(this, _D, _init_permissionInfos(this));
102
+ _classPrivateFieldInitSpec(this, _E, _init__privilegeOperator(this));
103
+ _defineProperty(this, "isWatermarkOperationAllowed", computedFn(function () {
104
+ return _this._isWatermarkOperationAllowed;
105
+ }));
106
+ _defineProperty(this, "isWatermarkMultiLine", computedFn(function () {
107
+ return _this._isWatermarkMultiLine;
108
+ }));
109
+ _defineProperty(this, "getPrivilegeOperator", computedFn(function () {
110
+ return _this._privilegeOperator;
111
+ }));
112
+ _defineProperty(this, "hasSecurityPermission", computedFn(function () {
113
+ return _this.hasEnableStartScreenSharePermission() || _this.hasPermissionToControlAllowSendAll() || _this.hasEnableStartAudioPermission() || _this.hasEnableChangeNamePermission() || _this.hasEnableStartVideoPermission() || _this.hasLockRoomPermission();
114
+ }));
115
+ _defineProperty(this, "getWaterMarkContent", function () {
116
+ return _this._userControl.getWaterMarkContent() || 'Watermark';
117
+ });
118
+ _defineProperty(this, "convertSendChatPayload", function (payload) {
119
+ return {
120
+ "public": !!payload["public"],
121
+ "private": {
122
+ host: !!payload["private"].host,
123
+ cohost: !!payload["private"].cohost,
124
+ participant: !!payload["private"].participant
125
+ }
126
+ };
127
+ });
128
+ _defineProperty(this, "getAllowedOperations", function (targetUserRole, isSelf) {
129
+ var operations = [];
130
+ if (_this.hasRequestStartVideoPermission(targetUserRole)) {
131
+ //请求开启摄像头权限
132
+ operations.push('request_start_video');
133
+ }
134
+ if (_this.hasStartVideoPermission(isSelf ? FcrPrivilegeUserRole.SELF : targetUserRole)) {
135
+ //开启摄像头权限
136
+ operations.push('start_video');
137
+ }
138
+ if (_this.hasStopVideoPermission(isSelf ? FcrPrivilegeUserRole.SELF : targetUserRole)) {
139
+ //关闭摄像头权限
140
+ operations.push('stop_video');
141
+ }
142
+ //私聊权限
143
+ operations.push('private_chat');
144
+ operations.push('pin');
145
+ if (_this.hasSetRolePermission(targetUserRole, FcrPrivilegeUserRole.HOST)) {
146
+ //设为主持人权限
147
+ operations.push('set_as_host');
148
+ }
149
+ if (_this.hasSetRolePermission(targetUserRole, FcrPrivilegeUserRole.COHOST)) {
150
+ //设为联席主持人权限
151
+ operations.push('set_as_co_host');
152
+ }
153
+ if (_this.hasSetRolePermission(targetUserRole, FcrPrivilegeUserRole.PARTICIPANT)) {
154
+ //撤销联席主持人权限
155
+ operations.push('revoke_co_host');
156
+ }
157
+ if (_this.hasCallMergePermission()) {
158
+ //与视频合并权限
159
+ operations.push('merge_video');
160
+ }
161
+ if (_this.hasKickOutPermission(targetUserRole)) {
162
+ //移除房间权限
163
+ operations.push('kick_out');
164
+ }
165
+ if (_this.hasWaitingRoomPermission(targetUserRole)) {
166
+ operations.push('put_into_waiting_room');
167
+ }
168
+ if (_this.hasChangeNamePermission(isSelf ? FcrPrivilegeUserRole.SELF : targetUserRole)) {
169
+ operations.push('change_name');
170
+ }
171
+ return operations;
172
+ });
173
+ /**
174
+ * 互译安全开关
175
+ */
176
+ _defineProperty(this, "isChangeSelfNameAllowed", computedFn(function () {
177
+ var info = _this.securityInfos.find(function (_ref2) {
178
+ var info = _ref2.info;
179
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.ChangeName;
180
+ });
181
+ return !!(info !== null && info !== void 0 && info.enable);
182
+ }));
183
+ _defineProperty(this, "isChatAllowed", computedFn(function () {
184
+ var info = _this.securityInfos.find(function (_ref3) {
185
+ var info = _ref3.info;
186
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SendChat;
187
+ });
188
+ return !!(info !== null && info !== void 0 && info.enable);
189
+ }));
190
+ // 允许发送公聊和私聊
191
+ _defineProperty(this, "isAllChatAllowed", computedFn(function () {
192
+ var info = _this.securityInfos.find(function (_ref4) {
193
+ var info = _ref4.info;
194
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SendChat;
195
+ });
196
+ var payload = info && info.info && _this.convertSendChatPayload(info.info.payload);
197
+ return !!(!!(info !== null && info !== void 0 && info.enable) && payload && payload["public"] && payload["private"].host && payload["private"].cohost && payload["private"].participant);
198
+ }));
199
+ // 禁止发送所有聊天
200
+ _defineProperty(this, "isAllChatDisallowed", computedFn(function () {
201
+ var info = _this.securityInfos.find(function (_ref5) {
202
+ var info = _ref5.info;
203
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SendChat;
204
+ });
205
+ var payload = info && info.info && _this.convertSendChatPayload(info.info.payload);
206
+ return !!(!(info !== null && info !== void 0 && info.enable) || payload && !payload["public"] && !payload["private"].host && !payload["private"].cohost && !payload["private"].participant);
207
+ }));
208
+ // 允许发送公聊,禁止发送私聊
209
+ _defineProperty(this, "isPublicChatAllowedAndPrivateChatDisallowed", computedFn(function () {
210
+ var info = _this.securityInfos.find(function (_ref6) {
211
+ var info = _ref6.info;
212
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SendChat;
213
+ });
214
+ var payload = info && info.info && _this.convertSendChatPayload(info.info.payload);
215
+ return !!(!!(info !== null && info !== void 0 && info.enable) && payload && payload["public"] && payload["private"].host && !payload["private"].cohost && !payload["private"].participant);
216
+ }));
217
+ // 禁止发送公聊,只能私聊给主持人和联席主持人
218
+ _defineProperty(this, "isPublicChatAndPrivateChatToParticipantDisallowed", computedFn(function () {
219
+ var info = _this.securityInfos.find(function (_ref7) {
220
+ var info = _ref7.info;
221
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SendChat;
222
+ });
223
+ var payload = info && info.info && _this.convertSendChatPayload(info.info.payload);
224
+ return !!(!!(info !== null && info !== void 0 && info.enable) && payload && !payload["public"] && payload["private"].host && payload["private"].cohost && !payload["private"].participant);
225
+ }));
226
+ _defineProperty(this, "isJoinWithMutedVideoEnabled", computedFn(function () {
227
+ var info = _this.securityInfos.find(function (_ref8) {
228
+ var info = _ref8.info;
229
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.JoinWithCloseVideo;
230
+ });
231
+ return !!(info !== null && info !== void 0 && info.enable);
232
+ }));
233
+ _defineProperty(this, "isJoinWithMutedAudioEnabled", computedFn(function () {
234
+ var info = _this.securityInfos.find(function (_ref9) {
235
+ var info = _ref9.info;
236
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.JoinWithMuteAudio;
237
+ });
238
+ return !!(info !== null && info !== void 0 && info.enable);
239
+ }));
240
+ _defineProperty(this, "isShareScreenAllowed", computedFn(function () {
241
+ var _info$info;
242
+ var info = _this.securityInfos.find(function (_ref0) {
243
+ var info = _ref0.info;
244
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.Sharing;
245
+ });
246
+ var shareState = info === null || info === void 0 || (_info$info = info.info) === null || _info$info === void 0 ? void 0 : _info$info.payload;
247
+ var screenShareState = (shareState === null || shareState === void 0 ? void 0 : shareState.screen) === FcrSharePermissionState.ON;
248
+ return screenShareState;
249
+ }));
250
+ _defineProperty(this, "isBoardStartAllowed", computedFn(function () {
251
+ var _info$info2, _shareState$board;
252
+ var info = _this.securityInfos.find(function (_ref1) {
253
+ var info = _ref1.info;
254
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.Sharing;
255
+ });
256
+ var shareState = info === null || info === void 0 || (_info$info2 = info.info) === null || _info$info2 === void 0 ? void 0 : _info$info2.payload;
257
+ var boardWriteState = (shareState === null || shareState === void 0 || (_shareState$board = shareState.board) === null || _shareState$board === void 0 ? void 0 : _shareState$board.start) === FcrSharePermissionState.ON;
258
+ return boardWriteState;
259
+ }));
260
+ _defineProperty(this, "isBoardWriteAllowed", computedFn(function () {
261
+ var _info$info3, _shareState$board2;
262
+ var info = _this.securityInfos.find(function (_ref10) {
263
+ var info = _ref10.info;
264
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.Sharing;
265
+ });
266
+ var shareState = info === null || info === void 0 || (_info$info3 = info.info) === null || _info$info3 === void 0 ? void 0 : _info$info3.payload;
267
+ var boardWriteState = (shareState === null || shareState === void 0 || (_shareState$board2 = shareState.board) === null || _shareState$board2 === void 0 ? void 0 : _shareState$board2.write) === FcrSharePermissionState.ON;
268
+ return boardWriteState;
269
+ }));
270
+ _defineProperty(this, "isAnnotationStartAllowed", computedFn(function () {
271
+ var info = _this.securityInfos.find(function (_ref11) {
272
+ var info = _ref11.info;
273
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.Annotation;
274
+ });
275
+ var shareState = info === null || info === void 0 ? void 0 : info.payload;
276
+ var annotationWriteState = (shareState === null || shareState === void 0 ? void 0 : shareState.start) === FcrSharePermissionState.ON;
277
+ return annotationWriteState;
278
+ }));
279
+ _defineProperty(this, "isAnnotationWriteAllowed", computedFn(function () {
280
+ var info = _this.securityInfos.find(function (_ref12) {
281
+ var info = _ref12.info;
282
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.Annotation;
283
+ });
284
+ var shareState = info === null || info === void 0 ? void 0 : info.payload;
285
+ var annotationWriteState = (shareState === null || shareState === void 0 ? void 0 : shareState.write) === FcrSharePermissionState.ON;
286
+ return annotationWriteState;
287
+ }));
288
+ _defineProperty(this, "isUnmuteSelfVideoAllowed", computedFn(function () {
289
+ var info = _this.securityInfos.find(function (_ref13) {
290
+ var info = _ref13.info;
291
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.StartVideo;
292
+ });
293
+ return !!(info !== null && info !== void 0 && info.enable);
294
+ }));
295
+ _defineProperty(this, "isUnmuteSelfAudioAllowed", computedFn(function () {
296
+ var info = _this.securityInfos.find(function (_ref14) {
297
+ var info = _ref14.info;
298
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.StartAudio;
299
+ });
300
+ return !!(info !== null && info !== void 0 && info.enable);
301
+ }));
302
+ _defineProperty(this, "isJoinWithPromptSoundEnabled", computedFn(function () {
303
+ var info = _this.securityInfos.find(function (_ref15) {
304
+ var info = _ref15.info;
305
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.JoinWithPromptSound;
306
+ });
307
+ return !!(info !== null && info !== void 0 && info.enable);
308
+ }));
309
+ _defineProperty(this, "isLockRoomEnabled", computedFn(function () {
310
+ var info = _this.securityInfos.find(function (_ref16) {
311
+ var info = _ref16.info;
312
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.LockedRoom;
313
+ });
314
+ return !!(info !== null && info !== void 0 && info.enable);
315
+ }));
316
+ _defineProperty(this, "isWaitingRoomEnabled", computedFn(function () {
317
+ var info = _this.securityInfos.find(function (_ref17) {
318
+ var info = _ref17.info;
319
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.WaitingRoom;
320
+ });
321
+ return !!(info !== null && info !== void 0 && info.enable);
322
+ }));
323
+ _defineProperty(this, "isWaterMarkEnabled", computedFn(function () {
324
+ var info = _this.securityInfos.find(function (_ref18) {
325
+ var info = _ref18.info;
326
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.WaterMark;
327
+ });
328
+ return !!(info !== null && info !== void 0 && info.enable);
329
+ }));
330
+ _defineProperty(this, "isStartCaptionAllowed", computedFn(function () {
331
+ var info = _this.securityInfos.find(function (_ref19) {
332
+ var info = _ref19.info;
333
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SttStartCaption;
334
+ });
335
+ return !!(info !== null && info !== void 0 && info.enable);
336
+ }));
337
+ _defineProperty(this, "isStartTranscribeAllowed", computedFn(function () {
338
+ var info = _this.securityInfos.find(function (_ref20) {
339
+ var info = _ref20.info;
340
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SttStartTranscribe;
341
+ });
342
+ return !!(info !== null && info !== void 0 && info.enable);
343
+ }));
344
+ _defineProperty(this, "isSetSourceLanguageAllowed", computedFn(function () {
345
+ var info = _this.securityInfos.find(function (_ref21) {
346
+ var info = _ref21.info;
347
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.SttSourceLanguage;
348
+ });
349
+ return !!(info !== null && info !== void 0 && info.enable);
350
+ }));
351
+ _defineProperty(this, "isMultiWaterMarkEnabled", computedFn(function () {
352
+ var _info$info4;
353
+ var info = _this.securityInfos.find(function (_ref22) {
354
+ var info = _ref22.info;
355
+ return (info === null || info === void 0 ? void 0 : info.action) === FcrSecurityAction.WaterMark;
356
+ });
357
+ return (info === null || info === void 0 || (_info$info4 = info.info) === null || _info$info4 === void 0 ? void 0 : _info$info4.payload.lineType) === FcrLineType.MULTI_ROW;
358
+ }));
359
+ /**
360
+ * 权限判断,例:某角色有 XX 权限
361
+ */
362
+ _defineProperty(this, "hasChangeNamePermission", function (targetRole) {
363
+ return _this._hasPermission(FcrPermissionAction.UserChangeName, targetRole);
364
+ });
365
+ _defineProperty(this, "hasWaitingRoomPermission", function () {
366
+ var role = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : FcrPrivilegeUserRole.PARTICIPANT;
367
+ return _this._hasPermission(FcrPermissionAction.WaitingRoomOpen, role);
368
+ });
369
+ _defineProperty(this, "hasAllowJoinWithPromptSoundPermission", function () {
370
+ return _this._hasPermission(FcrPermissionAction.StreamAllowJoinWithPromptSound, FcrPrivilegeUserRole.PARTICIPANT);
371
+ });
372
+ _defineProperty(this, "hasEnableWaitingRoomPermission", function () {
373
+ return _this._hasPermission(FcrPermissionAction.WaitingRoomOpen, FcrPrivilegeUserRole.PARTICIPANT);
374
+ });
375
+ _defineProperty(this, "hasMutePermission", function (targetRole) {
376
+ return _this._hasPermission(FcrPermissionAction.StreamMuteAudio, targetRole);
377
+ });
378
+ _defineProperty(this, "hasStopScreenSharePermission", function () {
379
+ return _this._hasPermission(FcrPermissionAction.StreamEnableStartScreenShare, FcrPrivilegeUserRole.SELF);
380
+ });
381
+ _defineProperty(this, "hasEnableCaptionPermission", function () {
382
+ return _this._hasPermission(FcrPermissionAction.SttAllowStartCaption, FcrPrivilegeUserRole.PARTICIPANT);
383
+ });
384
+ _defineProperty(this, "hasDisableCaptionPermission", function () {
385
+ return _this._hasPermission(FcrPermissionAction.SttDisallowStartCaption, FcrPrivilegeUserRole.PARTICIPANT);
386
+ });
387
+ _defineProperty(this, "hasEnableTranscribePermission", function () {
388
+ return _this._hasPermission(FcrPermissionAction.SttAllowStartTranscribe, FcrPrivilegeUserRole.PARTICIPANT);
389
+ });
390
+ _defineProperty(this, "hasDisableTranscribePermission", function () {
391
+ return _this._hasPermission(FcrPermissionAction.SttDisallowStartTranscribe, FcrPrivilegeUserRole.PARTICIPANT);
392
+ });
393
+ _defineProperty(this, "hasEnableSourceLanguagePermission", function () {
394
+ return _this._hasPermission(FcrPermissionAction.SttAllowModifySpeechLanguage, FcrPrivilegeUserRole.PARTICIPANT);
395
+ });
396
+ _defineProperty(this, "hasDisableSourceLanguagePermission", function () {
397
+ return _this._hasPermission(FcrPermissionAction.SttDisallowModifySpeechLanguage, FcrPrivilegeUserRole.PARTICIPANT);
398
+ });
399
+ _defineProperty(this, "hasStartCaptionPermission", function () {
400
+ return _this._hasPermission(FcrPermissionAction.SttStartCaption, FcrPrivilegeUserRole.SELF);
401
+ });
402
+ _defineProperty(this, "hasStopCaptionPermission", function () {
403
+ return _this._hasPermission(FcrPermissionAction.SttStopCaption, FcrPrivilegeUserRole.SELF);
404
+ });
405
+ _defineProperty(this, "hasStartTranscribePermission", function () {
406
+ return _this._hasPermission(FcrPermissionAction.SttStartTranscribe, FcrPrivilegeUserRole.SELF);
407
+ });
408
+ _defineProperty(this, "hasStopTranscribePermission", function () {
409
+ return _this._hasPermission(FcrPermissionAction.SttStopTranscribe, FcrPrivilegeUserRole.SELF);
410
+ });
411
+ _defineProperty(this, "hasSetSourceLanguagePermission", function () {
412
+ return _this._hasPermission(FcrPermissionAction.SttModifySpeechLanguage, FcrPrivilegeUserRole.SELF);
413
+ });
414
+ _defineProperty(this, "hasUnmutePermission", function (targetRole) {
415
+ return _this._hasPermission(FcrPermissionAction.StreamStartAudio, targetRole);
416
+ });
417
+ _defineProperty(this, "hasRequestStartAudioPermission", function (targetRole) {
418
+ return _this._hasPermission(FcrPermissionAction.StreamRequestStartAudio, targetRole);
419
+ });
420
+ _defineProperty(this, "hasRequestStartVideoPermission", function (targetRole) {
421
+ return _this._hasPermission(FcrPermissionAction.StreamRequestStartVideo, targetRole);
422
+ });
423
+ _defineProperty(this, "hasStartVideoPermission", function (targetRole) {
424
+ return _this._hasPermission(FcrPermissionAction.StreamStartVideo, targetRole);
425
+ });
426
+ _defineProperty(this, "hasStopVideoPermission", function (targetRole) {
427
+ return _this._hasPermission(FcrPermissionAction.StreamStopVideo, targetRole);
428
+ });
429
+ _defineProperty(this, "hasSelfMutePermission", function () {
430
+ return _this._hasPermission(FcrPermissionAction.StreamMuteAudio, FcrPrivilegeUserRole.SELF);
431
+ });
432
+ _defineProperty(this, "hasAllMutePermission", function () {
433
+ return _this._hasPermission(FcrPermissionAction.StreamMuteAudio, FcrPrivilegeUserRole.PARTICIPANT);
434
+ });
435
+ _defineProperty(this, "hasSelfUnmutePermission", function () {
436
+ return _this._hasPermission(FcrPermissionAction.StreamStartAudio, FcrPrivilegeUserRole.SELF);
437
+ });
438
+ _defineProperty(this, "hasAllUnmutePermission", function () {
439
+ return _this._hasPermission(FcrPermissionAction.StreamStartAudio, FcrPrivilegeUserRole.PARTICIPANT);
440
+ });
441
+ _defineProperty(this, "hasRevokeHostPermission", function () {
442
+ return _this._hasPermission(FcrPermissionAction.UserRevokeRole, FcrPrivilegeUserRole.HOST);
443
+ });
444
+ _defineProperty(this, "hasKickOutPermission", function (targetRole) {
445
+ return _this._hasPermission(FcrPermissionAction.UserKickOut, targetRole);
446
+ });
447
+ _defineProperty(this, "hasCallMergePermission", function () {
448
+ return _this._hasPermission(FcrPermissionAction.CallMerge, FcrPrivilegeUserRole.PARTICIPANT);
449
+ });
450
+ _defineProperty(this, "hasCallSplitPermission", function () {
451
+ return _this._hasPermission(FcrPermissionAction.CallSplit, FcrPrivilegeUserRole.PARTICIPANT);
452
+ });
453
+ _defineProperty(this, "hasStartScreenSharePermission", function () {
454
+ return _this._hasPermission(FcrPermissionAction.StreamStartScreenShare, FcrPrivilegeUserRole.SELF);
455
+ });
456
+ _defineProperty(this, "hasChatSendPublicPermission", function () {
457
+ return _this._hasPermission(FcrPermissionAction.ChatSendPublic, FcrPrivilegeUserRole.SELF);
458
+ });
459
+ // 是否有权限发送私信息
460
+ _defineProperty(this, "hasPermissionToSendPrivateMessage", function (targetRole) {
461
+ return _this._hasPermission(FcrPermissionAction.ChatSendPrivate, targetRole);
462
+ });
463
+ // 是否有“控制发送所有人消息”的权限
464
+ _defineProperty(this, "hasPermissionToControlAllowSendAll", function () {
465
+ return _this._hasPermission(FcrPermissionAction.ChatAllowSendPublic, FcrPrivilegeUserRole.PARTICIPANT);
466
+ });
467
+ // 是否有“控制禁止发送所有人消息”的权限
468
+ _defineProperty(this, "hasPermissionToControlDisallowSendAll", function () {
469
+ return _this._hasPermission(FcrPermissionAction.ChatDisallowSendPublic, FcrPrivilegeUserRole.SELF);
470
+ });
471
+ // 是否有“控制发送私信”的权限
472
+ _defineProperty(this, "hasPermissionToControlAllowSendPrivate", function () {
473
+ return _this._hasPermission(FcrPermissionAction.ChatAllowSendPrivate, FcrPrivilegeUserRole.SELF);
474
+ });
475
+ // 是否有“控制禁止发送私信”的权限
476
+ _defineProperty(this, "hasPermissionToControlDisallowSendPrivate", function () {
477
+ return _this._hasPermission(FcrPermissionAction.ChatDisallowSendPrivate, FcrPrivilegeUserRole.SELF);
478
+ });
479
+ // 是否有设置角色的权限
480
+ _defineProperty(this, "hasSetRolePermission", function (targetRole, setToRole) {
481
+ return _this._hasPermissionWithParams(FcrPermissionAction.UserSetRole, targetRole, {
482
+ role: convertFcrPrivilegeRoleToStringPrivilegeRole(setToRole)
483
+ });
484
+ });
485
+ _defineProperty(this, "hasStartCloudRecordingPermission", function () {
486
+ return _this._hasPermission(FcrPermissionAction.RecordStartCloudRecording, FcrPrivilegeUserRole.SELF);
487
+ });
488
+ _defineProperty(this, "hasStartLiveStreamingPermission", function () {
489
+ return _this._hasPermission(FcrPermissionAction.LiveStart, FcrPrivilegeUserRole.SELF);
490
+ });
491
+ _defineProperty(this, "hasStopLiveStreamingPermission", function () {
492
+ return _this._hasPermission(FcrPermissionAction.LiveStop, FcrPrivilegeUserRole.SELF);
493
+ });
494
+ _defineProperty(this, "hasGetLiveStreamingLinkPermission", function () {
495
+ return _this._hasPermission(FcrPermissionAction.LiveGetLink, FcrPrivilegeUserRole.SELF);
496
+ });
497
+ _defineProperty(this, "hasEnableStartAudioPermission", function () {
498
+ return _this._hasPermission(FcrPermissionAction.StreamEnableStartAudio, FcrPrivilegeUserRole.PARTICIPANT);
499
+ });
500
+ _defineProperty(this, "hasEnableChangeNamePermission", function () {
501
+ return _this._hasPermission(FcrPermissionAction.UserEnableChangeName, FcrPrivilegeUserRole.PARTICIPANT);
502
+ });
503
+ _defineProperty(this, "hasEnableStartVideoPermission", function () {
504
+ return _this._hasPermission(FcrPermissionAction.StreamEnableStartVideo, FcrPrivilegeUserRole.PARTICIPANT);
505
+ });
506
+ _defineProperty(this, "hasEnableJoinWithAudioPermission", function () {
507
+ return _this._hasPermission(FcrPermissionAction.StreamEnableJoinWithAudio, FcrPrivilegeUserRole.PARTICIPANT);
508
+ });
509
+ _defineProperty(this, "hasEnableJoinWithVideoPermission", function () {
510
+ return _this._hasPermission(FcrPermissionAction.StreamDisableJoinWithVideo, FcrPrivilegeUserRole.PARTICIPANT);
511
+ });
512
+ _defineProperty(this, "hasEnableStartScreenSharePermission", function () {
513
+ return _this._hasPermission(FcrPermissionAction.StreamEnableStartScreenShare, FcrPrivilegeUserRole.PARTICIPANT);
514
+ });
515
+ _defineProperty(this, "hasLockRoomPermission", function () {
516
+ return _this._hasPermission(FcrPermissionAction.RoomLock, FcrPrivilegeUserRole.PARTICIPANT);
517
+ });
518
+ _defineProperty(this, "hasWatermarkEnablePermission", function () {
519
+ return _this._hasPermission(FcrPermissionAction.RoomEnableWatermark, FcrPrivilegeUserRole.PARTICIPANT);
520
+ });
521
+ _defineProperty(this, "hasWatermarkDisablePermission", function () {
522
+ return _this._hasPermission(FcrPermissionAction.RoomDisableWatermark, FcrPrivilegeUserRole.PARTICIPANT);
523
+ });
524
+ _defineProperty(this, "hasEndRoomPermission", function () {
525
+ return _this._hasPermission(FcrPermissionAction.RoomEnd, FcrPrivilegeUserRole.PARTICIPANT);
526
+ });
527
+ _defineProperty(this, "hasAssignHostBeforeLeavingPermission", function (role) {
528
+ return _this._hasPermissionWithParams(FcrPermissionAction.UserSetRole, FcrPrivilegeUserRole.PARTICIPANT, {
529
+ role: convertFcrPrivilegeRoleToStringPrivilegeRole(role)
530
+ });
531
+ });
532
+ _defineProperty(this, "hasStartBoardPermission", function () {
533
+ return _this._hasPermission(FcrPermissionAction.BoardStart, FcrPrivilegeUserRole.SELF);
534
+ });
535
+ _defineProperty(this, "hasWriteBoardPermission", function () {
536
+ return _this._hasPermission(FcrPermissionAction.BoardWrite, FcrPrivilegeUserRole.SELF);
537
+ });
538
+ _defineProperty(this, "hasAnnotationAllowWritePermission", function () {
539
+ return _this._hasPermission(FcrPermissionAction.AnnotationAllowWrite, FcrPrivilegeUserRole.PARTICIPANT);
540
+ });
541
+ _defineProperty(this, "hasAnnotationWritePermission", function () {
542
+ return _this._hasPermission(FcrPermissionAction.AnnotationWrite, FcrPrivilegeUserRole.SELF);
543
+ });
544
+ _defineProperty(this, "hasAnnotationStartPermission", function () {
545
+ return _this._hasPermission(FcrPermissionAction.AnnotationStart, FcrPrivilegeUserRole.SELF);
546
+ });
547
+ _defineProperty(this, "hasAllowStartBoardPermission", function () {
548
+ return _this._hasPermission(FcrPermissionAction.BoardAllowStart, FcrPrivilegeUserRole.SELF);
549
+ });
550
+ _defineProperty(this, "hasDisallowStartBoardPermission", function () {
551
+ return _this._hasPermission(FcrPermissionAction.BoardDisallowStart, FcrPrivilegeUserRole.SELF);
552
+ });
553
+ _defineProperty(this, "hasAllowWriteBoardPermission", function () {
554
+ return _this._hasPermission(FcrPermissionAction.BoardAllowWrite, FcrPrivilegeUserRole.SELF);
555
+ });
556
+ _defineProperty(this, "hasDisallowWriteBoardPermission", function () {
557
+ return _this._hasPermission(FcrPermissionAction.BoardDisallowWrite, FcrPrivilegeUserRole.SELF);
558
+ });
559
+ _defineProperty(this, "hasAllowScreenShareAndBoardPermission", function () {
560
+ var _this$_privilegeContr;
561
+ return (_this$_privilegeContr = _this._privilegeControl.getSecurityInfo(FcrSecurityAction.Sharing)) === null || _this$_privilegeContr === void 0 ? void 0 : _this$_privilegeContr.enable;
562
+ });
563
+ _defineProperty(this, "hasAllowWaterMarkPermission", function () {
564
+ var _this$_privilegeContr2;
565
+ return (_this$_privilegeContr2 = _this._privilegeControl.getSecurityInfo(FcrSecurityAction.WaterMark)) === null || _this$_privilegeContr2 === void 0 ? void 0 : _this$_privilegeContr2.enable;
566
+ });
567
+ _defineProperty(this, "hasEnableInterpreterPermission", function () {
568
+ return _this._hasPermission(FcrPermissionAction.InterpreterStart, FcrPrivilegeUserRole.SELF);
569
+ });
570
+ _defineProperty(this, "hasDisableInterpreterPermission", function () {
571
+ return _this._hasPermission(FcrPermissionAction.InterpreterStop, FcrPrivilegeUserRole.SELF);
572
+ });
573
+ _defineProperty(this, "hasAllowChangeNamePermission", function () {
574
+ return _this._hasPermission(FcrPermissionAction.UserAllowChangeName, FcrPrivilegeUserRole.PARTICIPANT);
575
+ });
576
+ _defineProperty(this, "hasDisallowChangeNamePermission", function () {
577
+ return _this._hasPermission(FcrPermissionAction.UserDisallowChangeName, FcrPrivilegeUserRole.PARTICIPANT);
578
+ });
579
+ /**
580
+ * 权限操作
581
+ * @param enable
582
+ */
583
+ _defineProperty(this, "allowStartTranscribe", /*#__PURE__*/function () {
584
+ var _ref23 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(enable) {
585
+ return _regeneratorRuntime.wrap(function (_context) {
586
+ while (1) switch (_context.prev = _context.next) {
587
+ case 0:
588
+ return _context.abrupt("return", _this._privilegeControl.allowStartTranscribing(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
589
+ case 1:
590
+ case "end":
591
+ return _context.stop();
592
+ }
593
+ }, _callee);
594
+ }));
595
+ return function (_x) {
596
+ return _ref23.apply(this, arguments);
597
+ };
598
+ }());
599
+ _defineProperty(this, "allowSetSourceLanguage", /*#__PURE__*/function () {
600
+ var _ref24 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(enable) {
601
+ return _regeneratorRuntime.wrap(function (_context2) {
602
+ while (1) switch (_context2.prev = _context2.next) {
603
+ case 0:
604
+ return _context2.abrupt("return", _this._privilegeControl.allowUpdateSttSourceLanguage(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
605
+ case 1:
606
+ case "end":
607
+ return _context2.stop();
608
+ }
609
+ }, _callee2);
610
+ }));
611
+ return function (_x2) {
612
+ return _ref24.apply(this, arguments);
613
+ };
614
+ }());
615
+ _defineProperty(this, "allowStartCaption", /*#__PURE__*/function () {
616
+ var _ref25 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(enable) {
617
+ return _regeneratorRuntime.wrap(function (_context3) {
618
+ while (1) switch (_context3.prev = _context3.next) {
619
+ case 0:
620
+ return _context3.abrupt("return", _this._privilegeControl.allowStartCaption(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
621
+ case 1:
622
+ case "end":
623
+ return _context3.stop();
624
+ }
625
+ }, _callee3);
626
+ }));
627
+ return function (_x3) {
628
+ return _ref25.apply(this, arguments);
629
+ };
630
+ }());
631
+ _defineProperty(this, "allowWriteAnnotation", /*#__PURE__*/function () {
632
+ var _ref26 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(allow) {
633
+ return _regeneratorRuntime.wrap(function (_context4) {
634
+ while (1) switch (_context4.prev = _context4.next) {
635
+ case 0:
636
+ return _context4.abrupt("return", _this._privilegeControl.allowWriteAnnotation(allow, [FcrPrivilegeUserRole.PARTICIPANT]));
637
+ case 1:
638
+ case "end":
639
+ return _context4.stop();
640
+ }
641
+ }, _callee4);
642
+ }));
643
+ return function (_x4) {
644
+ return _ref26.apply(this, arguments);
645
+ };
646
+ }());
647
+ _defineProperty(this, "allowWriteBoard", /*#__PURE__*/function () {
648
+ var _ref27 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(allow) {
649
+ return _regeneratorRuntime.wrap(function (_context5) {
650
+ while (1) switch (_context5.prev = _context5.next) {
651
+ case 0:
652
+ return _context5.abrupt("return", _this._privilegeControl.allowWriteBoard(allow, [FcrPrivilegeUserRole.PARTICIPANT]));
653
+ case 1:
654
+ case "end":
655
+ return _context5.stop();
656
+ }
657
+ }, _callee5);
658
+ }));
659
+ return function (_x5) {
660
+ return _ref27.apply(this, arguments);
661
+ };
662
+ }());
663
+ //全体静音
664
+ _defineProperty(this, "muteAll", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
665
+ return _regeneratorRuntime.wrap(function (_context6) {
666
+ while (1) switch (_context6.prev = _context6.next) {
667
+ case 0:
668
+ return _context6.abrupt("return", _this._streamControl.updatePublishPrivilegeOfStreams({
669
+ audioPrivilege: FcrStreamPrivilegeOperation.NOPRIVILEGE,
670
+ videoPrivilege: FcrStreamPrivilegeOperation.NOOPERATION
671
+ }, {
672
+ targetRoleType: [FcrUserRole.PARTICIPANT],
673
+ targetRoleTypeIsInclude: true
674
+ }));
675
+ case 1:
676
+ case "end":
677
+ return _context6.stop();
678
+ }
679
+ }, _callee6);
680
+ })));
681
+ //要求所有人解除静音
682
+ _defineProperty(this, "unmuteAll", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
683
+ return _regeneratorRuntime.wrap(function (_context7) {
684
+ while (1) switch (_context7.prev = _context7.next) {
685
+ case 0:
686
+ return _context7.abrupt("return", _this._streamControl.updatePublishPrivilegeOfStreams({
687
+ audioPrivilege: FcrStreamPrivilegeOperation.HAS_PRIVILEGE,
688
+ videoPrivilege: FcrStreamPrivilegeOperation.NOOPERATION
689
+ }, {
690
+ targetRoleType: [FcrUserRole.PARTICIPANT],
691
+ targetRoleTypeIsInclude: true
692
+ }));
693
+ case 1:
694
+ case "end":
695
+ return _context7.stop();
696
+ }
697
+ }, _callee7);
698
+ })));
699
+ _defineProperty(this, "enableLockedRoom", /*#__PURE__*/function () {
700
+ var _ref30 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(enable) {
701
+ return _regeneratorRuntime.wrap(function (_context8) {
702
+ while (1) switch (_context8.prev = _context8.next) {
703
+ case 0:
704
+ return _context8.abrupt("return", _this._privilegeControl.enableLockedRoom(enable, [FcrPrivilegeUserRole.COHOST, FcrPrivilegeUserRole.PARTICIPANT]));
705
+ case 1:
706
+ case "end":
707
+ return _context8.stop();
708
+ }
709
+ }, _callee8);
710
+ }));
711
+ return function (_x6) {
712
+ return _ref30.apply(this, arguments);
713
+ };
714
+ }());
715
+ _defineProperty(this, "allowChangeUserName", /*#__PURE__*/function () {
716
+ var _ref31 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(enable) {
717
+ return _regeneratorRuntime.wrap(function (_context9) {
718
+ while (1) switch (_context9.prev = _context9.next) {
719
+ case 0:
720
+ return _context9.abrupt("return", _this._privilegeControl.allowChangeUserName(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
721
+ case 1:
722
+ case "end":
723
+ return _context9.stop();
724
+ }
725
+ }, _callee9);
726
+ }));
727
+ return function (_x7) {
728
+ return _ref31.apply(this, arguments);
729
+ };
730
+ }());
731
+ //设置是否允许聊天
732
+ _defineProperty(this, "setAllowChat", /*#__PURE__*/function () {
733
+ var _ref32 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee0(enable) {
734
+ var payload;
735
+ return _regeneratorRuntime.wrap(function (_context0) {
736
+ while (1) switch (_context0.prev = _context0.next) {
737
+ case 0:
738
+ payload = {
739
+ "public": enable,
740
+ "private": {
741
+ host: enable,
742
+ cohost: enable,
743
+ participant: enable
744
+ }
745
+ };
746
+ return _context0.abrupt("return", _this._privilegeControl.allowSendChat(enable, [FcrPrivilegeUserRole.PARTICIPANT], payload));
747
+ case 1:
748
+ case "end":
749
+ return _context0.stop();
750
+ }
751
+ }, _callee0);
752
+ }));
753
+ return function (_x8) {
754
+ return _ref32.apply(this, arguments);
755
+ };
756
+ }());
757
+ _defineProperty(this, "setAllowChatWithPayload", /*#__PURE__*/function () {
758
+ var _ref33 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee1(enable, payload) {
759
+ return _regeneratorRuntime.wrap(function (_context1) {
760
+ while (1) switch (_context1.prev = _context1.next) {
761
+ case 0:
762
+ return _context1.abrupt("return", _this._privilegeControl.allowSendChat(enable, [FcrPrivilegeUserRole.PARTICIPANT], payload));
763
+ case 1:
764
+ case "end":
765
+ return _context1.stop();
766
+ }
767
+ }, _callee1);
768
+ }));
769
+ return function (_x9, _x0) {
770
+ return _ref33.apply(this, arguments);
771
+ };
772
+ }());
773
+ //设置成允许公聊但不允许私聊
774
+ _defineProperty(this, "setAllowedPublicChatAndDisallowedPrivateChat", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
775
+ return _regeneratorRuntime.wrap(function (_context10) {
776
+ while (1) switch (_context10.prev = _context10.next) {
777
+ case 0:
778
+ return _context10.abrupt("return", _this.setAllowChatWithPayload(true, {
779
+ "public": true,
780
+ "private": {
781
+ host: true,
782
+ cohost: false,
783
+ participant: false
784
+ }
785
+ }));
786
+ case 1:
787
+ case "end":
788
+ return _context10.stop();
789
+ }
790
+ }, _callee10);
791
+ })));
792
+ //设置成不允许公聊,只允许私聊给主持人和联席主持人
793
+ _defineProperty(this, "setDisallowedPublicChatAndDisallowedPrivateChatToParticipant", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
794
+ return _regeneratorRuntime.wrap(function (_context11) {
795
+ while (1) switch (_context11.prev = _context11.next) {
796
+ case 0:
797
+ return _context11.abrupt("return", _this.setAllowChatWithPayload(true, {
798
+ "public": false,
799
+ "private": {
800
+ host: true,
801
+ cohost: true,
802
+ participant: false
803
+ }
804
+ }));
805
+ case 1:
806
+ case "end":
807
+ return _context11.stop();
808
+ }
809
+ }, _callee11);
810
+ })));
811
+ //所有人加入会议时静音
812
+ _defineProperty(this, "allowJoinWithMutedAudio", /*#__PURE__*/function () {
813
+ var _ref36 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(enable) {
814
+ return _regeneratorRuntime.wrap(function (_context12) {
815
+ while (1) switch (_context12.prev = _context12.next) {
816
+ case 0:
817
+ _this._privilegeControl.allowJoinWithMutedAudio(enable, [FcrPrivilegeUserRole.PARTICIPANT, FcrPrivilegeUserRole.COHOST]);
818
+ case 1:
819
+ case "end":
820
+ return _context12.stop();
821
+ }
822
+ }, _callee12);
823
+ }));
824
+ return function (_x1) {
825
+ return _ref36.apply(this, arguments);
826
+ };
827
+ }());
828
+ _defineProperty(this, "allowJoinWithMutedVideo", /*#__PURE__*/function () {
829
+ var _ref37 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(enable) {
830
+ return _regeneratorRuntime.wrap(function (_context13) {
831
+ while (1) switch (_context13.prev = _context13.next) {
832
+ case 0:
833
+ _this._privilegeControl.allowJoinWithMutedVideo(enable, [FcrPrivilegeUserRole.PARTICIPANT, FcrPrivilegeUserRole.COHOST]);
834
+ case 1:
835
+ case "end":
836
+ return _context13.stop();
837
+ }
838
+ }, _callee13);
839
+ }));
840
+ return function (_x10) {
841
+ return _ref37.apply(this, arguments);
842
+ };
843
+ }());
844
+ //允许屏幕共享
845
+ _defineProperty(this, "allowShareAndWrite", /*#__PURE__*/function () {
846
+ var _ref38 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(state) {
847
+ return _regeneratorRuntime.wrap(function (_context14) {
848
+ while (1) switch (_context14.prev = _context14.next) {
849
+ case 0:
850
+ _this._privilegeControl.allowShareAndWrite(state, [FcrPrivilegeUserRole.PARTICIPANT]);
851
+ case 1:
852
+ case "end":
853
+ return _context14.stop();
854
+ }
855
+ }, _callee14);
856
+ }));
857
+ return function (_x11) {
858
+ return _ref38.apply(this, arguments);
859
+ };
860
+ }());
861
+ //允许开启视频
862
+ _defineProperty(this, "allowStartVideo", /*#__PURE__*/function () {
863
+ var _ref39 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(enable) {
864
+ return _regeneratorRuntime.wrap(function (_context15) {
865
+ while (1) switch (_context15.prev = _context15.next) {
866
+ case 0:
867
+ return _context15.abrupt("return", _this._privilegeControl.allowStartVideo(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
868
+ case 1:
869
+ case "end":
870
+ return _context15.stop();
871
+ }
872
+ }, _callee15);
873
+ }));
874
+ return function (_x12) {
875
+ return _ref39.apply(this, arguments);
876
+ };
877
+ }());
878
+ //允许自我解除静音
879
+ _defineProperty(this, "allowStartAudio", /*#__PURE__*/function () {
880
+ var _ref40 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(enable) {
881
+ return _regeneratorRuntime.wrap(function (_context16) {
882
+ while (1) switch (_context16.prev = _context16.next) {
883
+ case 0:
884
+ return _context16.abrupt("return", _this._privilegeControl.allowStartAudio(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
885
+ case 1:
886
+ case "end":
887
+ return _context16.stop();
888
+ }
889
+ }, _callee16);
890
+ }));
891
+ return function (_x13) {
892
+ return _ref40.apply(this, arguments);
893
+ };
894
+ }());
895
+ _defineProperty(this, "_hasPermission", computedFn(function (action, targetRole) {
896
+ var _this$permissionInfos;
897
+ var convertedRole = targetRole === FcrPrivilegeUserRole.SELF ? [_this._localUser.userRole, FcrPrivilegeUserRole.SELF] : [targetRole];
898
+ var info = (_this$permissionInfos = _this.permissionInfos) === null || _this$permissionInfos === void 0 ? void 0 : _this$permissionInfos.find(function (_ref41) {
899
+ var _info$targetRoles;
900
+ var info = _ref41.info;
901
+ return (info === null || info === void 0 ? void 0 : info.action) === action && ((info === null || info === void 0 || (_info$targetRoles = info.targetRoles) === null || _info$targetRoles === void 0 ? void 0 : _info$targetRoles.length) === 0 || convertedRole.some(function (role) {
902
+ var _info$targetRoles2;
903
+ return info === null || info === void 0 || (_info$targetRoles2 = info.targetRoles) === null || _info$targetRoles2 === void 0 ? void 0 : _info$targetRoles2.includes(role);
904
+ }));
905
+ });
906
+ return !!(info !== null && info !== void 0 && info.enable);
907
+ }));
908
+ _defineProperty(this, "_hasPermissionWithParams", computedFn(function (action, targetRole, params) {
909
+ var _this$permissionInfos2;
910
+ var convertedRole = targetRole === FcrPrivilegeUserRole.SELF ? [_this._localUser.userRole, FcrPrivilegeUserRole.SELF] : [targetRole];
911
+ var matchParams = function matchParams(_params) {
912
+ return every(Object.keys(params), function (key) {
913
+ return _params && _params[key].includes(params[key]);
914
+ });
915
+ };
916
+ var info = (_this$permissionInfos2 = _this.permissionInfos) === null || _this$permissionInfos2 === void 0 ? void 0 : _this$permissionInfos2.find(function (_ref42) {
917
+ var _info$targetRoles3, _info$params;
918
+ var info = _ref42.info;
919
+ return (info === null || info === void 0 ? void 0 : info.action) === action && ((info === null || info === void 0 || (_info$targetRoles3 = info.targetRoles) === null || _info$targetRoles3 === void 0 ? void 0 : _info$targetRoles3.length) === 0 || convertedRole.some(function (role) {
920
+ var _info$targetRoles4;
921
+ return info === null || info === void 0 || (_info$targetRoles4 = info.targetRoles) === null || _info$targetRoles4 === void 0 ? void 0 : _info$targetRoles4.includes(role);
922
+ })) && matchParams((_info$params = info.params) !== null && _info$params !== void 0 ? _info$params : {});
923
+ });
924
+ return !!(info !== null && info !== void 0 && info.enable);
925
+ }));
926
+ this._privilegeControl = _privilegeControl;
927
+ this._userControl = _userControl;
928
+ this._streamControl = _streamControl;
929
+ this._eventProvider = _eventProvider;
930
+ this.securityInfos = this._privilegeControl.getAllSecurityInfo();
931
+ this.permissionInfos = this._privilegeControl.getAllLocalUserPermissionInfo() || [];
932
+ this._localUser = this._userControl.getLocalUser();
933
+ var userObserver = {
934
+ onUserInfoUpdated: function onUserInfoUpdated(roomId, event) {
935
+ _this._localUser = event.modifiedUser;
936
+ }
937
+ };
938
+ var privilegeObserver = {
939
+ onLocalUserPermissionInfoAdded: this._handlePermissionUpdated.bind(this),
940
+ onLocalUserPermissionInfoDeleted: this._handlePermissionUpdated.bind(this),
941
+ onSecurityInfoUpdated: this._handleSecurityUpdated.bind(this)
942
+ };
943
+ this._isWatermarkMultiLine = this.isMultiWaterMarkEnabled();
944
+ this._userControl.addObserver(userObserver);
945
+ this._privilegeControl.addObserver(privilegeObserver);
946
+ this._disposers.push(reaction(function () {
947
+ return _this.isMultiWaterMarkEnabled();
948
+ }, function (isMultiWaterMarkEnabled) {
949
+ _this._isWatermarkOperationAllowed = true;
950
+ _this._isWatermarkMultiLine = isMultiWaterMarkEnabled;
951
+ }));
952
+ this._disposers.push(function () {
953
+ _this._userControl.removeObserver(userObserver);
954
+ _this._privilegeControl.removeObserver(privilegeObserver);
955
+ });
956
+ }
957
+ return _createClass(FcrUIPrivilegeProviderImpl, [{
958
+ key: "_isWatermarkOperationAllowed",
959
+ get: function get() {
960
+ return _classPrivateFieldGet(_A, this);
961
+ },
962
+ set: function set(v) {
963
+ _classPrivateFieldSet(_A, this, v);
964
+ }
965
+ }, {
966
+ key: "_isWatermarkMultiLine",
967
+ get: function get() {
968
+ return _classPrivateFieldGet(_B, this);
969
+ },
970
+ set: function set(v) {
971
+ _classPrivateFieldSet(_B, this, v);
972
+ }
973
+ }, {
974
+ key: "securityInfos",
975
+ get: function get() {
976
+ return _classPrivateFieldGet(_C, this);
977
+ },
978
+ set: function set(v) {
979
+ _classPrivateFieldSet(_C, this, v);
980
+ }
981
+ }, {
982
+ key: "permissionInfos",
983
+ get: function get() {
984
+ return _classPrivateFieldGet(_D, this);
985
+ },
986
+ set: function set(v) {
987
+ _classPrivateFieldSet(_D, this, v);
988
+ }
989
+ }, {
990
+ key: "_privilegeOperator",
991
+ get: function get() {
992
+ return _classPrivateFieldGet(_E, this);
993
+ },
994
+ set: function set(v) {
995
+ _classPrivateFieldSet(_E, this, v);
996
+ }
997
+ }, {
998
+ key: "addObserver",
999
+ value: function addObserver(observer) {
1000
+ this._observable.addObserver(observer);
1001
+ }
1002
+ }, {
1003
+ key: "removeObserver",
1004
+ value: function removeObserver(observer) {
1005
+ this._observable.removeObserver(observer);
1006
+ }
1007
+
1008
+ // for debug use
1009
+ }, {
1010
+ key: "printAllPermissions",
1011
+ value: function printAllPermissions() {
1012
+ this.logger.debug(jsonstring(toJS(this.permissionInfos)));
1013
+ }
1014
+ }, {
1015
+ key: "release",
1016
+ value: function release() {
1017
+ this._disposers.forEach(function (d) {
1018
+ return d();
1019
+ });
1020
+ this._disposers = [];
1021
+ }
1022
+ }, {
1023
+ key: "allowWatermark",
1024
+ value: function () {
1025
+ var _allowWatermark = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(state, lineType) {
1026
+ return _regeneratorRuntime.wrap(function (_context17) {
1027
+ while (1) switch (_context17.prev = _context17.next) {
1028
+ case 0:
1029
+ return _context17.abrupt("return", this._privilegeControl.allowWatermark(state, [FcrPrivilegeUserRole.PARTICIPANT], lineType));
1030
+ case 1:
1031
+ case "end":
1032
+ return _context17.stop();
1033
+ }
1034
+ }, _callee17, this);
1035
+ }));
1036
+ function allowWatermark(_x14, _x15) {
1037
+ return _allowWatermark.apply(this, arguments);
1038
+ }
1039
+ return allowWatermark;
1040
+ }()
1041
+ }, {
1042
+ key: "setAllowWaterMarkLine",
1043
+ value: function () {
1044
+ var _setAllowWaterMarkLine = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(state, lineType) {
1045
+ var _this2 = this;
1046
+ return _regeneratorRuntime.wrap(function (_context18) {
1047
+ while (1) switch (_context18.prev = _context18.next) {
1048
+ case 0:
1049
+ if (this._watermarkLoadingTimber) {
1050
+ _context18.next = 1;
1051
+ break;
1052
+ }
1053
+ this._isWatermarkMultiLine = !this._isWatermarkMultiLine;
1054
+ this._isWatermarkOperationAllowed = false;
1055
+ this._watermarkLoadingTimber = setTimeout(function () {
1056
+ _this2._isWatermarkOperationAllowed = true;
1057
+ _this2._watermarkLoadingTimber && clearTimeout(_this2._watermarkLoadingTimber);
1058
+ _this2._watermarkLoadingTimber = null;
1059
+ }, 1000);
1060
+ return _context18.abrupt("return", this._privilegeControl.allowWatermark(state, [FcrPrivilegeUserRole.PARTICIPANT], lineType));
1061
+ case 1:
1062
+ case "end":
1063
+ return _context18.stop();
1064
+ }
1065
+ }, _callee18, this);
1066
+ }));
1067
+ function setAllowWaterMarkLine(_x16, _x17) {
1068
+ return _setAllowWaterMarkLine.apply(this, arguments);
1069
+ }
1070
+ return setAllowWaterMarkLine;
1071
+ }()
1072
+ }, {
1073
+ key: "allowJoinWithPromptSound",
1074
+ value: function () {
1075
+ var _allowJoinWithPromptSound = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(enable) {
1076
+ return _regeneratorRuntime.wrap(function (_context19) {
1077
+ while (1) switch (_context19.prev = _context19.next) {
1078
+ case 0:
1079
+ return _context19.abrupt("return", this._privilegeControl.allowJoinWithPromptSound(enable, [FcrPrivilegeUserRole.PARTICIPANT]));
1080
+ case 1:
1081
+ case "end":
1082
+ return _context19.stop();
1083
+ }
1084
+ }, _callee19, this);
1085
+ }));
1086
+ function allowJoinWithPromptSound(_x18) {
1087
+ return _allowJoinWithPromptSound.apply(this, arguments);
1088
+ }
1089
+ return allowJoinWithPromptSound;
1090
+ }()
1091
+ }, {
1092
+ key: "permitPrivateChat",
1093
+ value: function permitPrivateChat(userId) {
1094
+ var _this$_userControl$ge;
1095
+ var localUserRole = (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userRole;
1096
+ // 参会者才需要权限控制
1097
+ if (localUserRole === FcrUserRole.PARTICIPANT) {
1098
+ var _this$_userControl$ge2;
1099
+ var toastObj = {
1100
+ id: 'private-toast',
1101
+ toastProps: {
1102
+ type: 'error',
1103
+ content: transI18n('fmt_settings_tips_Blockallchat'),
1104
+ size: 'small'
1105
+ },
1106
+ customRootClass: 'participants-container'
1107
+ };
1108
+ var needToast = false;
1109
+ // 禁止所有聊天
1110
+ if (!this.isChatAllowed() || this.isAllChatDisallowed()) {
1111
+ needToast = true;
1112
+ }
1113
+ var _targetUserRole = (_this$_userControl$ge2 = this._userControl.getUser(userId)) === null || _this$_userControl$ge2 === void 0 ? void 0 : _this$_userControl$ge2.userRole;
1114
+
1115
+ // 公聊但允许私聊主持人和联席主持人
1116
+ if (this.isPublicChatAllowedAndPrivateChatDisallowed() && _targetUserRole === FcrUserRole.PARTICIPANT) {
1117
+ toastObj.toastProps.content = transI18n('fmt_settings_tips_groupchatonly');
1118
+ needToast = true;
1119
+ }
1120
+
1121
+ // 仅允许私聊主持人和联席主持人
1122
+ if (this.isPublicChatAndPrivateChatToParticipantDisallowed() && _targetUserRole === FcrUserRole.PARTICIPANT) {
1123
+ toastObj.toastProps.content = transI18n('fmt_settings_tips_hostchatonly');
1124
+ needToast = true;
1125
+ }
1126
+ if (needToast) {
1127
+ FcrToastApi.open(toastObj);
1128
+ return false;
1129
+ }
1130
+ return true;
1131
+ }
1132
+ return true;
1133
+ }
1134
+ }, {
1135
+ key: "_handlePermissionUpdated",
1136
+ value: function _handlePermissionUpdated() {
1137
+ this.permissionInfos = this._privilegeControl.getAllLocalUserPermissionInfo() || [];
1138
+ }
1139
+ }, {
1140
+ key: "_handleSecurityUpdated",
1141
+ value: function _handleSecurityUpdated(roomId, event) {
1142
+ var newSecurityInfos = this._privilegeControl.getAllSecurityInfo();
1143
+ this.securityInfos = newSecurityInfos;
1144
+ this._privilegeOperator = event.operatorUser;
1145
+ this._observable.notifyObservers('onLocalUserSecurityInfosUpdated', event);
1146
+ }
1147
+ }]);
1148
+ }();
1149
+ _FcrUIPrivilegeProviderImpl = FcrUIPrivilegeProviderImpl;
1150
+ var _applyDecs$e = _applyDecs(_FcrUIPrivilegeProviderImpl, [[observable, 1, "_isWatermarkOperationAllowed"], [observable, 1, "_isWatermarkMultiLine"], [observable, 1, "securityInfos"], [observable, 1, "permissionInfos"], [observable, 1, "_privilegeOperator"], [_allowWatermarkDecs, 18, "allowWatermark"], [_setAllowWaterMarkLineDecs, 18, "setAllowWaterMarkLine"], [_allowJoinWithPromptSoundDecs, 18, "allowJoinWithPromptSound"], [_handlePermissionUpdatedDecs, 18, "_handlePermissionUpdated"], [_handleSecurityUpdatedDecs, 18, "_handleSecurityUpdated"]], []).e;
1151
+ var _applyDecs$e2 = _slicedToArray(_applyDecs$e, 6);
1152
+ _init__isWatermarkOperationAllowed = _applyDecs$e2[0];
1153
+ _init__isWatermarkMultiLine = _applyDecs$e2[1];
1154
+ _init_securityInfos = _applyDecs$e2[2];
1155
+ _init_permissionInfos = _applyDecs$e2[3];
1156
+ _init__privilegeOperator = _applyDecs$e2[4];
1157
+ _initProto = _applyDecs$e2[5];
1158
+ _applyDecs$e;