fcr-ui-scene 1.0.20 → 3.1.0

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 (872) hide show
  1. package/installer/icons/favicon.ico +0 -0
  2. package/installer/icons/favicon.png +0 -0
  3. package/installer/mac/entitlements.mac.plist +16 -0
  4. package/lib/base.d.ts +12 -0
  5. package/lib/base.js +78 -0
  6. package/lib/common/device-store.d.ts +140 -0
  7. package/lib/common/device-store.js +1378 -0
  8. package/lib/common/device-stream-store.d.ts +36 -0
  9. package/lib/common/device-stream-store.js +372 -0
  10. package/lib/common/device-streams-store.d.ts +34 -0
  11. package/lib/common/device-streams-store.js +403 -0
  12. package/lib/common/event-store.d.ts +117 -0
  13. package/lib/common/event-store.js +235 -0
  14. package/lib/common/security-store.d.ts +123 -0
  15. package/lib/common/security-store.js +978 -0
  16. package/lib/creator.d.ts +8 -0
  17. package/lib/creator.js +37 -0
  18. package/lib/fragments/base.d.ts +10 -0
  19. package/lib/fragments/base.js +44 -0
  20. package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
  21. package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
  22. package/lib/fragments/control-bar/context.d.ts +3 -0
  23. package/lib/fragments/control-bar/context.js +9 -0
  24. package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
  25. package/lib/fragments/control-bar/control-bar-store.js +1275 -0
  26. package/lib/fragments/control-bar/device/index.d.ts +31 -0
  27. package/lib/fragments/control-bar/device/index.js +203 -0
  28. package/lib/fragments/control-bar/index.css +276 -0
  29. package/lib/fragments/control-bar/index.d.ts +26 -0
  30. package/lib/fragments/control-bar/index.js +223 -0
  31. package/lib/fragments/control-bar/more-actions/index.css +19 -0
  32. package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
  33. package/lib/fragments/control-bar/more-actions/index.js +259 -0
  34. package/lib/fragments/control-bar/security-content/index.css +24 -0
  35. package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
  36. package/lib/fragments/control-bar/security-content/index.js +145 -0
  37. package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
  38. package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
  39. package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
  40. package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
  41. package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
  42. package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
  43. package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
  44. package/lib/fragments/control-bar/view.d.ts +1 -0
  45. package/lib/fragments/control-bar/view.js +321 -0
  46. package/lib/fragments/live-streaming/context.d.ts +3 -0
  47. package/lib/fragments/live-streaming/context.js +9 -0
  48. package/lib/fragments/live-streaming/index.css +11 -0
  49. package/lib/fragments/live-streaming/index.d.ts +11 -0
  50. package/lib/fragments/live-streaming/index.js +79 -0
  51. package/lib/fragments/live-streaming/store.d.ts +21 -0
  52. package/lib/fragments/live-streaming/store.js +228 -0
  53. package/lib/fragments/live-streaming/view.d.ts +2 -0
  54. package/lib/fragments/live-streaming/view.js +44 -0
  55. package/lib/fragments/participant/context.d.ts +3 -0
  56. package/lib/fragments/participant/context.js +9 -0
  57. package/lib/fragments/participant/index.css +20 -0
  58. package/lib/fragments/participant/index.d.ts +9 -0
  59. package/lib/fragments/participant/index.js +90 -0
  60. package/lib/fragments/participant/room-control-drop-menu/index.css +19 -0
  61. package/lib/fragments/participant/room-control-drop-menu/index.d.ts +2 -0
  62. package/lib/fragments/participant/room-control-drop-menu/index.js +134 -0
  63. package/lib/fragments/participant/store.d.ts +34 -0
  64. package/lib/fragments/participant/store.js +326 -0
  65. package/lib/fragments/participant/view.d.ts +2 -0
  66. package/lib/fragments/participant/view.js +86 -0
  67. package/lib/fragments/share-screen-selection/context.d.ts +3 -0
  68. package/lib/fragments/share-screen-selection/context.js +9 -0
  69. package/lib/fragments/share-screen-selection/index.css +66 -0
  70. package/lib/fragments/share-screen-selection/index.d.ts +9 -0
  71. package/lib/fragments/share-screen-selection/index.js +94 -0
  72. package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
  73. package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
  74. package/lib/fragments/share-screen-selection/selection-store.d.ts +35 -0
  75. package/lib/fragments/share-screen-selection/selection-store.js +351 -0
  76. package/lib/fragments/share-screen-selection/tips.css +33 -0
  77. package/lib/fragments/share-screen-selection/view.d.ts +9 -0
  78. package/lib/fragments/share-screen-selection/view.js +255 -0
  79. package/lib/fragments/state-bar/index.d.ts +9 -0
  80. package/lib/fragments/state-bar/index.js +68 -0
  81. package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
  82. package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
  83. package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
  84. package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
  85. package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
  86. package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
  87. package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
  88. package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
  89. package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
  90. package/lib/fragments/toolbar/components/color-picker.js +127 -0
  91. package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
  92. package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
  93. package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
  94. package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
  95. package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
  96. package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
  97. package/lib/fragments/toolbar/components/fold-icon.js +41 -0
  98. package/lib/fragments/toolbar/components/history.d.ts +2 -0
  99. package/lib/fragments/toolbar/components/history.js +46 -0
  100. package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
  101. package/lib/fragments/toolbar/components/pen-picker.js +132 -0
  102. package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
  103. package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
  104. package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
  105. package/lib/fragments/toolbar/components/shape-picker.js +146 -0
  106. package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
  107. package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
  108. package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
  109. package/lib/fragments/toolbar/components/wrapper.js +138 -0
  110. package/lib/fragments/toolbar/hooks.d.ts +16 -0
  111. package/lib/fragments/toolbar/hooks.js +251 -0
  112. package/lib/fragments/toolbar/index.d.ts +12 -0
  113. package/lib/fragments/toolbar/index.js +80 -0
  114. package/lib/fragments/toolbar/store.d.ts +62 -0
  115. package/lib/fragments/toolbar/store.js +279 -0
  116. package/lib/fragments/toolbar/style.css +347 -0
  117. package/lib/fragments/toolbar/view.d.ts +1 -0
  118. package/lib/fragments/toolbar/view.js +34 -0
  119. package/lib/fragments/type.d.ts +2 -0
  120. package/lib/fragments/type.js +6 -0
  121. package/lib/global.d.ts +8 -0
  122. package/lib/hooks/i18n.d.ts +4 -0
  123. package/lib/hooks/i18n.js +18 -0
  124. package/lib/hooks/meeting-time.d.ts +15 -0
  125. package/lib/hooks/meeting-time.js +92 -0
  126. package/lib/index.d.ts +8 -0
  127. package/lib/index.js +52 -0
  128. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
  129. package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
  130. package/lib/modules/action-bar/board/index.d.ts +4 -0
  131. package/lib/modules/action-bar/board/index.js +34 -0
  132. package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
  133. package/lib/modules/action-bar/breakout-room/index.js +32 -0
  134. package/lib/modules/action-bar/chat/index.css +80 -0
  135. package/lib/modules/action-bar/chat/index.d.ts +5 -0
  136. package/lib/modules/action-bar/chat/index.js +152 -0
  137. package/lib/modules/action-bar/context.d.ts +3 -0
  138. package/lib/modules/action-bar/context.js +9 -0
  139. package/lib/modules/action-bar/device/index.css +157 -0
  140. package/lib/modules/action-bar/device/index.d.ts +8 -0
  141. package/lib/modules/action-bar/device/index.js +611 -0
  142. package/lib/modules/action-bar/index.css +212 -0
  143. package/lib/modules/action-bar/index.d.ts +25 -0
  144. package/lib/modules/action-bar/index.dev.d.ts +1 -0
  145. package/lib/modules/action-bar/index.dev.js +96 -0
  146. package/lib/modules/action-bar/index.js +89 -0
  147. package/lib/modules/action-bar/item-placement.d.ts +8 -0
  148. package/lib/modules/action-bar/item-placement.js +18 -0
  149. package/lib/modules/action-bar/item.d.ts +27 -0
  150. package/lib/modules/action-bar/item.js +154 -0
  151. package/lib/modules/action-bar/leave/assign-host.d.ts +7 -0
  152. package/lib/modules/action-bar/leave/assign-host.js +64 -0
  153. package/lib/modules/action-bar/leave/index.css +116 -0
  154. package/lib/modules/action-bar/leave/index.d.ts +3 -0
  155. package/lib/modules/action-bar/leave/index.js +110 -0
  156. package/lib/modules/action-bar/leave/leave-meeting.d.ts +6 -0
  157. package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
  158. package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
  159. package/lib/modules/action-bar/live-streaming/index.js +39 -0
  160. package/lib/modules/action-bar/more/index.css +114 -0
  161. package/lib/modules/action-bar/more/index.d.ts +5 -0
  162. package/lib/modules/action-bar/more/index.js +80 -0
  163. package/lib/modules/action-bar/more/poppover-content.d.ts +8 -0
  164. package/lib/modules/action-bar/more/poppover-content.js +369 -0
  165. package/lib/modules/action-bar/participants/index.css +9 -0
  166. package/lib/modules/action-bar/participants/index.d.ts +5 -0
  167. package/lib/modules/action-bar/participants/index.js +75 -0
  168. package/lib/modules/action-bar/record/index.css +39 -0
  169. package/lib/modules/action-bar/record/index.d.ts +5 -0
  170. package/lib/modules/action-bar/record/index.js +161 -0
  171. package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
  172. package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
  173. package/lib/modules/action-bar/respond/index.d.ts +4 -0
  174. package/lib/modules/action-bar/respond/index.js +32 -0
  175. package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
  176. package/lib/modules/action-bar/screen-share/index.js +97 -0
  177. package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
  178. package/lib/modules/action-bar/screen-share/submenu.js +159 -0
  179. package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
  180. package/lib/modules/action-bar/security/drop-menu.js +164 -0
  181. package/lib/modules/action-bar/security/index.d.ts +4 -0
  182. package/lib/modules/action-bar/security/index.js +50 -0
  183. package/lib/modules/action-bar/settings/index.d.ts +4 -0
  184. package/lib/modules/action-bar/settings/index.js +41 -0
  185. package/lib/modules/action-bar/smaller.d.ts +1 -0
  186. package/lib/modules/action-bar/smaller.js +52 -0
  187. package/lib/modules/action-bar/store.d.ts +177 -0
  188. package/lib/modules/action-bar/store.js +1179 -0
  189. package/lib/modules/action-bar/type.d.ts +6 -0
  190. package/lib/modules/action-bar/type.js +13 -0
  191. package/lib/modules/action-bar/view.d.ts +5 -0
  192. package/lib/modules/action-bar/view.js +80 -0
  193. package/lib/modules/audio-stream/index.d.ts +21 -0
  194. package/lib/modules/audio-stream/index.js +119 -0
  195. package/lib/modules/chat/chat-bar/index.css +79 -0
  196. package/lib/modules/chat/chat-bar/index.d.ts +11 -0
  197. package/lib/modules/chat/chat-bar/index.js +125 -0
  198. package/lib/modules/chat/chat-select/index.css +156 -0
  199. package/lib/modules/chat/chat-select/index.d.ts +12 -0
  200. package/lib/modules/chat/chat-select/index.js +186 -0
  201. package/lib/modules/chat/chat.d.ts +12 -0
  202. package/lib/modules/chat/chat.js +295 -0
  203. package/lib/modules/chat/contex.d.ts +3 -0
  204. package/lib/modules/chat/contex.js +9 -0
  205. package/lib/modules/chat/demo-wrapper.d.ts +1 -0
  206. package/lib/modules/chat/demo-wrapper.js +42 -0
  207. package/lib/modules/chat/index.css +17 -0
  208. package/lib/modules/chat/index.d.ts +29 -0
  209. package/lib/modules/chat/index.dev.d.ts +1 -0
  210. package/lib/modules/chat/index.dev.js +58 -0
  211. package/lib/modules/chat/index.js +189 -0
  212. package/lib/modules/chat/message-list.d.ts +22 -0
  213. package/lib/modules/chat/message-list.js +595 -0
  214. package/lib/modules/chat/mock.d.ts +2 -0
  215. package/lib/modules/chat/mock.js +283 -0
  216. package/lib/modules/chat/store.d.ts +132 -0
  217. package/lib/modules/chat/store.js +923 -0
  218. package/lib/modules/chat/util.d.ts +6 -0
  219. package/lib/modules/chat/util.js +69 -0
  220. package/lib/modules/connection-gateway/components/computer/index.css +11 -0
  221. package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
  222. package/lib/modules/connection-gateway/components/computer/index.js +66 -0
  223. package/lib/modules/connection-gateway/components/computer/menu.d.ts +0 -0
  224. package/lib/modules/connection-gateway/components/computer/menu.js +1 -0
  225. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
  226. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
  227. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
  228. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
  229. package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
  230. package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
  231. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
  232. package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
  233. package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
  234. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
  235. package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
  236. package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
  237. package/lib/modules/connection-gateway/components/phone/index.css +49 -0
  238. package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
  239. package/lib/modules/connection-gateway/components/phone/index.js +181 -0
  240. package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
  241. package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
  242. package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
  243. package/lib/modules/connection-gateway/index.css +6 -0
  244. package/lib/modules/connection-gateway/index.d.ts +16 -0
  245. package/lib/modules/connection-gateway/index.js +67 -0
  246. package/lib/modules/connection-gateway/store.d.ts +80 -0
  247. package/lib/modules/connection-gateway/store.js +698 -0
  248. package/lib/modules/connection-gateway/view.d.ts +1 -0
  249. package/lib/modules/connection-gateway/view.js +22 -0
  250. package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
  251. package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
  252. package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
  253. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
  254. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +1 -0
  255. package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
  256. package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
  257. package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
  258. package/lib/modules/device-pretest/context.d.ts +3 -0
  259. package/lib/modules/device-pretest/context.js +9 -0
  260. package/lib/modules/device-pretest/index.css +127 -0
  261. package/lib/modules/device-pretest/index.d.ts +12 -0
  262. package/lib/modules/device-pretest/index.js +242 -0
  263. package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
  264. package/lib/modules/device-pretest/settings/beauty.js +103 -0
  265. package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
  266. package/lib/modules/device-pretest/settings/camera-select.js +53 -0
  267. package/lib/modules/device-pretest/settings/index.css +15 -0
  268. package/lib/modules/device-pretest/settings/video-effect.d.ts +11 -0
  269. package/lib/modules/device-pretest/settings/video-effect.js +50 -0
  270. package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
  271. package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
  272. package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
  273. package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
  274. package/lib/modules/device-pretest/store.d.ts +69 -0
  275. package/lib/modules/device-pretest/store.js +413 -0
  276. package/lib/modules/device-settings/audio-settings/audio-settings.d.ts +4 -0
  277. package/lib/modules/device-settings/audio-settings/audio-settings.js +297 -0
  278. package/lib/modules/device-settings/audio-settings/index.css +139 -0
  279. package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +2 -0
  280. package/lib/modules/device-settings/audio-settings/microphone-detection.js +68 -0
  281. package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +2 -0
  282. package/lib/modules/device-settings/audio-settings/speaker-detection.js +72 -0
  283. package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/device-settings/common/advance-link.d.ts} +1 -1
  284. package/lib/modules/device-settings/common/advance-link.js +27 -0
  285. package/lib/modules/device-settings/common/index.css +26 -0
  286. package/lib/modules/device-settings/common/useNamespace.d.ts +15 -0
  287. package/lib/modules/device-settings/common/useNamespace.js +66 -0
  288. package/lib/modules/device-settings/context.d.ts +3 -0
  289. package/lib/modules/device-settings/context.js +9 -0
  290. package/lib/modules/device-settings/dialog-wrapper.d.ts +2 -0
  291. package/lib/modules/device-settings/dialog-wrapper.js +110 -0
  292. package/lib/modules/device-settings/general-settings/general-settings.d.ts +4 -0
  293. package/lib/modules/device-settings/general-settings/general-settings.js +66 -0
  294. package/lib/modules/device-settings/general-settings/index.css +26 -0
  295. package/lib/modules/device-settings/index.css +109 -0
  296. package/lib/modules/device-settings/index.d.ts +21 -0
  297. package/lib/modules/device-settings/index.dev.d.ts +1 -0
  298. package/lib/modules/device-settings/index.dev.js +112 -0
  299. package/lib/modules/device-settings/index.js +84 -0
  300. package/lib/modules/device-settings/state/index.css +211 -0
  301. package/lib/modules/device-settings/state/index.d.ts +4 -0
  302. package/lib/modules/device-settings/state/index.js +330 -0
  303. package/lib/modules/device-settings/storage-settings/index.css +91 -0
  304. package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +3 -0
  305. package/lib/modules/device-settings/storage-settings/storage-settings.js +84 -0
  306. package/lib/modules/device-settings/store.d.ts +205 -0
  307. package/lib/modules/device-settings/store.js +1035 -0
  308. package/lib/modules/device-settings/video-settings/camera-select.d.ts +2 -0
  309. package/lib/modules/device-settings/video-settings/camera-select.js +51 -0
  310. package/lib/modules/device-settings/video-settings/index.css +327 -0
  311. package/lib/modules/device-settings/video-settings/local-video-player.d.ts +3 -0
  312. package/lib/modules/device-settings/video-settings/local-video-player.js +37 -0
  313. package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +2 -0
  314. package/lib/modules/device-settings/video-settings/mirror-toggle.js +62 -0
  315. package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +9 -0
  316. package/lib/modules/device-settings/video-settings/video-settings-basic.js +177 -0
  317. package/lib/modules/device-settings/video-settings/video-settings.d.ts +6 -0
  318. package/lib/modules/device-settings/video-settings/video-settings.js +185 -0
  319. package/lib/modules/device-settings/view.d.ts +10 -0
  320. package/lib/modules/device-settings/view.js +193 -0
  321. package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
  322. package/lib/modules/dialog/components/chat/electron.js +59 -0
  323. package/lib/modules/dialog/components/chat/index.d.ts +7 -0
  324. package/lib/modules/dialog/components/chat/index.js +66 -0
  325. package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
  326. package/lib/modules/dialog/components/confirm/electron.js +84 -0
  327. package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
  328. package/lib/modules/dialog/components/confirm/index.js +75 -0
  329. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
  330. package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
  331. package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
  332. package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
  333. package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
  334. package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
  335. package/lib/modules/dialog/components/participant/electron.js +85 -0
  336. package/lib/modules/dialog/components/participant/index.d.ts +3 -0
  337. package/lib/modules/dialog/components/participant/index.js +61 -0
  338. package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
  339. package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
  340. package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
  341. package/lib/modules/dialog/components/whiteboard/index.js +74 -0
  342. package/lib/modules/dialog/context.d.ts +3 -0
  343. package/lib/modules/dialog/context.js +9 -0
  344. package/lib/modules/dialog/dialogs.d.ts +11 -0
  345. package/lib/modules/dialog/dialogs.js +376 -0
  346. package/lib/modules/dialog/index.css +55 -0
  347. package/lib/modules/dialog/index.d.ts +29 -0
  348. package/lib/modules/dialog/index.js +80 -0
  349. package/lib/modules/dialog/store.d.ts +82 -0
  350. package/lib/modules/dialog/store.js +525 -0
  351. package/lib/modules/dialog/view.d.ts +5 -0
  352. package/lib/modules/dialog/view.js +30 -0
  353. package/lib/modules/event-toast/context.d.ts +3 -0
  354. package/lib/modules/event-toast/context.js +9 -0
  355. package/lib/modules/event-toast/index.d.ts +10 -0
  356. package/lib/modules/event-toast/index.js +41 -0
  357. package/lib/modules/event-toast/store.d.ts +9 -0
  358. package/lib/modules/event-toast/store.js +76 -0
  359. package/lib/modules/event-toast/view.d.ts +1 -0
  360. package/lib/modules/event-toast/view.js +14 -0
  361. package/lib/modules/invite/context.d.ts +3 -0
  362. package/lib/modules/invite/context.js +9 -0
  363. package/lib/modules/invite/index.css +318 -0
  364. package/lib/modules/invite/index.d.ts +13 -0
  365. package/lib/modules/invite/index.js +51 -0
  366. package/lib/modules/invite/pstn-invite.d.ts +2 -0
  367. package/lib/modules/invite/pstn-invite.js +271 -0
  368. package/lib/modules/invite/store.d.ts +71 -0
  369. package/lib/modules/invite/store.js +472 -0
  370. package/lib/modules/invite/view.d.ts +1 -0
  371. package/lib/modules/invite/view.js +47 -0
  372. package/lib/modules/invite/voip-invite.d.ts +1 -0
  373. package/lib/modules/invite/voip-invite.js +294 -0
  374. package/lib/modules/layout/components/Aside.d.ts +6 -0
  375. package/lib/modules/layout/components/Aside.js +144 -0
  376. package/lib/modules/layout/components/Carousel.d.ts +1 -0
  377. package/lib/modules/layout/components/Carousel.js +271 -0
  378. package/lib/modules/layout/components/Gallery.d.ts +1 -0
  379. package/lib/modules/layout/components/Gallery.js +360 -0
  380. package/lib/modules/layout/components/Layout.d.ts +2 -0
  381. package/lib/modules/layout/components/Layout.js +160 -0
  382. package/lib/modules/layout/components/UserWindow.d.ts +8 -0
  383. package/lib/modules/layout/components/UserWindow.js +513 -0
  384. package/lib/modules/layout/components/index.css +608 -0
  385. package/lib/modules/layout/components/index.d.ts +5 -0
  386. package/lib/modules/layout/components/index.js +55 -0
  387. package/lib/modules/layout/components/utils.d.ts +1 -0
  388. package/lib/modules/layout/components/utils.js +10 -0
  389. package/lib/modules/layout/context.d.ts +3 -0
  390. package/lib/modules/layout/context.js +9 -0
  391. package/lib/modules/layout/hooks.d.ts +14 -0
  392. package/lib/modules/layout/hooks.js +48 -0
  393. package/lib/modules/layout/index.css +27 -0
  394. package/lib/modules/layout/index.d.ts +10 -0
  395. package/lib/modules/layout/index.dev.d.ts +1 -0
  396. package/lib/modules/layout/index.dev.js +378 -0
  397. package/lib/modules/layout/index.js +72 -0
  398. package/lib/modules/layout/member-window/index.css +321 -0
  399. package/lib/modules/layout/member-window/index.d.ts +66 -0
  400. package/lib/modules/layout/member-window/index.js +730 -0
  401. package/lib/modules/layout/store.d.ts +176 -0
  402. package/lib/modules/layout/store.js +1278 -0
  403. package/lib/modules/layout/type.d.ts +64 -0
  404. package/lib/modules/layout/type.js +52 -0
  405. package/lib/modules/layout/video-window-datasource.d.ts +119 -0
  406. package/lib/modules/layout/video-window-datasource.js +1031 -0
  407. package/lib/modules/layout/view.d.ts +2 -0
  408. package/lib/modules/layout/view.js +10 -0
  409. package/lib/modules/live-streaming/context.d.ts +3 -0
  410. package/lib/modules/live-streaming/context.js +9 -0
  411. package/lib/modules/live-streaming/index.css +0 -0
  412. package/lib/modules/live-streaming/index.d.ts +13 -0
  413. package/lib/modules/live-streaming/index.dev.d.ts +1 -0
  414. package/lib/modules/live-streaming/index.dev.js +59 -0
  415. package/lib/modules/live-streaming/index.js +76 -0
  416. package/lib/modules/live-streaming/store.d.ts +38 -0
  417. package/lib/modules/live-streaming/store.js +360 -0
  418. package/lib/modules/live-streaming/view.d.ts +1 -0
  419. package/lib/modules/live-streaming/view.js +33 -0
  420. package/lib/modules/participant/attendee/index.css +14 -0
  421. package/lib/modules/participant/attendee/index.d.ts +19 -0
  422. package/lib/modules/participant/attendee/index.js +280 -0
  423. package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
  424. package/lib/modules/participant/attendee/participants-more-action.js +275 -0
  425. package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
  426. package/lib/modules/participant/attendee/user-more-actions.js +76 -0
  427. package/lib/modules/participant/can-moveable/index.d.ts +1 -0
  428. package/lib/modules/participant/can-moveable/index.js +68 -0
  429. package/lib/modules/participant/context.d.ts +3 -0
  430. package/lib/modules/participant/context.js +9 -0
  431. package/lib/modules/participant/index.css +58 -0
  432. package/lib/modules/participant/index.d.ts +25 -0
  433. package/lib/modules/participant/index.dev.d.ts +1 -0
  434. package/lib/modules/participant/index.dev.js +98 -0
  435. package/lib/modules/participant/index.js +93 -0
  436. package/lib/modules/participant/member-list-data-source.d.ts +28 -0
  437. package/lib/modules/participant/member-list-data-source.js +261 -0
  438. package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
  439. package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
  440. package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
  441. package/lib/modules/participant/store.d.ts +145 -0
  442. package/lib/modules/participant/store.js +1334 -0
  443. package/lib/modules/participant/type.d.ts +34 -0
  444. package/lib/modules/participant/type.js +22 -0
  445. package/lib/modules/participant/view.d.ts +11 -0
  446. package/lib/modules/participant/view.js +260 -0
  447. package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
  448. package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
  449. package/lib/modules/setting/audio-settings/index.css +144 -0
  450. package/lib/modules/setting/common/advance-link.d.ts +3 -0
  451. package/lib/modules/setting/common/advance-link.js +27 -0
  452. package/lib/modules/setting/common/index.css +26 -0
  453. package/lib/modules/setting/common/useNamespace.d.ts +15 -0
  454. package/lib/modules/setting/common/useNamespace.js +66 -0
  455. package/lib/modules/setting/config.d.ts +16 -0
  456. package/lib/modules/setting/config.js +17 -0
  457. package/lib/modules/setting/context.d.ts +3 -0
  458. package/lib/modules/setting/context.js +9 -0
  459. package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
  460. package/lib/modules/setting/dialog-wrapper.js +110 -0
  461. package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
  462. package/lib/modules/setting/general-settings/general-settings.js +66 -0
  463. package/lib/modules/setting/general-settings/index.css +26 -0
  464. package/lib/modules/setting/index.css +115 -0
  465. package/lib/modules/setting/index.d.ts +21 -0
  466. package/lib/modules/setting/index.dev.d.ts +1 -0
  467. package/lib/modules/setting/index.dev.js +71 -0
  468. package/lib/modules/setting/index.js +81 -0
  469. package/lib/modules/setting/state/index.css +211 -0
  470. package/lib/modules/setting/state/index.d.ts +4 -0
  471. package/lib/modules/setting/state/index.js +331 -0
  472. package/lib/modules/setting/storage-settings/index.css +91 -0
  473. package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
  474. package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
  475. package/lib/modules/setting/store.d.ts +213 -0
  476. package/lib/modules/setting/store.js +1125 -0
  477. package/lib/modules/setting/video-settings/index.css +339 -0
  478. package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
  479. package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
  480. package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
  481. package/lib/modules/setting/video-settings/video-settings.js +191 -0
  482. package/lib/modules/setting/view.d.ts +10 -0
  483. package/lib/modules/setting/view.js +139 -0
  484. package/lib/modules/share-screen/context.d.ts +3 -0
  485. package/lib/modules/share-screen/context.js +9 -0
  486. package/lib/modules/share-screen/index.css +0 -0
  487. package/lib/modules/share-screen/index.d.ts +26 -0
  488. package/lib/modules/share-screen/index.dev.d.ts +1 -0
  489. package/lib/modules/share-screen/index.dev.js +96 -0
  490. package/lib/modules/share-screen/index.js +171 -0
  491. package/lib/modules/share-screen/selection/index.css +66 -0
  492. package/lib/modules/share-screen/selection/index.d.ts +9 -0
  493. package/lib/modules/share-screen/selection/index.js +224 -0
  494. package/lib/modules/share-screen/share-state-bar/index.css +38 -0
  495. package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
  496. package/lib/modules/share-screen/share-state-bar/index.js +67 -0
  497. package/lib/modules/share-screen/store.d.ts +132 -0
  498. package/lib/modules/share-screen/store.js +1714 -0
  499. package/lib/modules/share-screen/view.d.ts +2 -0
  500. package/lib/modules/share-screen/view.js +45 -0
  501. package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
  502. package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
  503. package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
  504. package/lib/modules/state-bar/context.d.ts +3 -0
  505. package/lib/modules/state-bar/context.js +9 -0
  506. package/lib/modules/state-bar/index.css +630 -0
  507. package/lib/modules/state-bar/index.d.ts +18 -0
  508. package/lib/modules/state-bar/index.dev.d.ts +1 -0
  509. package/lib/modules/state-bar/index.dev.js +82 -0
  510. package/lib/modules/state-bar/index.js +69 -0
  511. package/lib/modules/state-bar/layout-config.d.ts +5 -0
  512. package/lib/modules/state-bar/layout-config.js +151 -0
  513. package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
  514. package/lib/modules/state-bar/live-streaming-state.js +199 -0
  515. package/lib/modules/state-bar/meeting-detail.css +107 -0
  516. package/lib/modules/state-bar/meeting-details.d.ts +2 -0
  517. package/lib/modules/state-bar/meeting-details.js +151 -0
  518. package/lib/modules/state-bar/meeting-network-state.css +131 -0
  519. package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
  520. package/lib/modules/state-bar/meeting-network-state.js +108 -0
  521. package/lib/modules/state-bar/meeting-time.d.ts +2 -0
  522. package/lib/modules/state-bar/meeting-time.js +49 -0
  523. package/lib/modules/state-bar/network-quality.d.ts +2 -0
  524. package/lib/modules/state-bar/network-quality.js +33 -0
  525. package/lib/modules/state-bar/recording.d.ts +1 -0
  526. package/lib/modules/state-bar/recording.js +110 -0
  527. package/lib/modules/state-bar/store.d.ts +70 -0
  528. package/lib/modules/state-bar/store.js +515 -0
  529. package/lib/modules/state-bar/view.d.ts +5 -0
  530. package/lib/modules/state-bar/view.js +182 -0
  531. package/lib/modules/video-window/context.d.ts +3 -0
  532. package/lib/modules/video-window/context.js +9 -0
  533. package/lib/modules/video-window/deviceState/index.d.ts +15 -0
  534. package/lib/modules/video-window/deviceState/index.js +77 -0
  535. package/lib/modules/video-window/index.css +17 -0
  536. package/lib/modules/video-window/index.d.ts +9 -0
  537. package/lib/modules/video-window/index.js +65 -0
  538. package/lib/modules/video-window/members/index.css +50 -0
  539. package/lib/modules/video-window/members/index.d.ts +2 -0
  540. package/lib/modules/video-window/members/index.js +134 -0
  541. package/lib/modules/video-window/speaking/index.css +69 -0
  542. package/lib/modules/video-window/speaking/index.d.ts +3 -0
  543. package/lib/modules/video-window/speaking/index.js +57 -0
  544. package/lib/modules/video-window/store.d.ts +88 -0
  545. package/lib/modules/video-window/store.js +598 -0
  546. package/lib/modules/video-window/topControl/index.css +35 -0
  547. package/lib/modules/video-window/topControl/index.d.ts +3 -0
  548. package/lib/modules/video-window/topControl/index.js +85 -0
  549. package/lib/modules/video-window/type.d.ts +23 -0
  550. package/lib/modules/video-window/type.js +32 -0
  551. package/lib/modules/video-window/view.d.ts +2 -0
  552. package/lib/modules/video-window/view.js +63 -0
  553. package/lib/modules/whiteboard/app.d.ts +2 -0
  554. package/lib/modules/whiteboard/app.js +55 -0
  555. package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
  556. package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
  557. package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
  558. package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
  559. package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
  560. package/lib/modules/whiteboard/components/loading/index.css +76 -0
  561. package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
  562. package/lib/modules/whiteboard/components/loading/index.js +68 -0
  563. package/lib/modules/whiteboard/components/loading/loading.png +0 -0
  564. package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
  565. package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
  566. package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
  567. package/lib/modules/whiteboard/components/pagination/index.css +228 -0
  568. package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
  569. package/lib/modules/whiteboard/components/pagination/index.js +163 -0
  570. package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
  571. package/lib/modules/whiteboard/components/pagination/store.js +17 -0
  572. package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
  573. package/lib/modules/whiteboard/components/progress/electron.js +32 -0
  574. package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
  575. package/lib/modules/whiteboard/components/progress/index.js +43 -0
  576. package/lib/modules/whiteboard/components/progress/style.css +50 -0
  577. package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
  578. package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
  579. package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
  580. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
  581. package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
  582. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
  583. package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
  584. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
  585. package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
  586. package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
  587. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
  588. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
  589. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
  590. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
  591. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
  592. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
  593. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
  594. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
  595. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
  596. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
  597. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
  598. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
  599. package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
  600. package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
  601. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  602. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
  603. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
  604. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
  605. package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
  606. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
  607. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
  608. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
  609. package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
  610. package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
  611. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
  612. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
  613. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
  614. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
  615. package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
  616. package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
  617. package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
  618. package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
  619. package/lib/modules/whiteboard/context.d.ts +66 -0
  620. package/lib/modules/whiteboard/context.js +34 -0
  621. package/lib/modules/whiteboard/i18n/config.d.ts +1 -0
  622. package/lib/modules/whiteboard/i18n/config.js +15 -0
  623. package/lib/modules/whiteboard/i18n/en/index.d.ts +32 -0
  624. package/lib/modules/whiteboard/i18n/en/index.js +38 -0
  625. package/lib/modules/whiteboard/i18n/zh/index.d.ts +32 -0
  626. package/lib/modules/whiteboard/i18n/zh/index.js +38 -0
  627. package/lib/modules/whiteboard/index.d.ts +114 -0
  628. package/lib/modules/whiteboard/index.js +1082 -0
  629. package/lib/modules/whiteboard/style.css +142 -0
  630. package/lib/modules/whiteboard/type.d.ts +96 -0
  631. package/lib/modules/whiteboard/type.js +94 -0
  632. package/lib/modules/whiteboard/utils.d.ts +11 -0
  633. package/lib/modules/whiteboard/utils.js +25 -0
  634. package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
  635. package/lib/plugins/browser-runtime-plugin.js +70 -0
  636. package/lib/plugins/css-preset-plugin.d.ts +1 -0
  637. package/lib/plugins/css-preset-plugin.js +22 -0
  638. package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
  639. package/lib/plugins/electron-rtc-plugin.js +5 -0
  640. package/lib/plugins/module-dev-plugin.d.ts +12 -0
  641. package/lib/plugins/module-dev-plugin.js +181 -0
  642. package/lib/plugins/multi-lang-plugin.d.ts +5 -0
  643. package/lib/plugins/multi-lang-plugin.js +17 -0
  644. package/lib/plugins/rtm-plugin.d.ts +1 -0
  645. package/lib/plugins/rtm-plugin.js +5 -0
  646. package/lib/plugins/web-rtc-plugin.d.ts +1 -0
  647. package/lib/plugins/web-rtc-plugin.js +5 -0
  648. package/lib/translations/enUS.d.ts +993 -0
  649. package/lib/translations/enUS.js +1016 -0
  650. package/lib/translations/zhCN.d.ts +993 -0
  651. package/lib/translations/zhCN.js +1016 -0
  652. package/lib/type.d.ts +107 -0
  653. package/lib/type.js +42 -0
  654. package/lib/ui-manager.d.ts +17 -0
  655. package/lib/ui-manager.js +555 -0
  656. package/lib/ui-scene.d.ts +13 -0
  657. package/lib/ui-scene.js +142 -0
  658. package/lib/utilities/board-context.d.ts +5 -0
  659. package/lib/utilities/board-context.js +12 -0
  660. package/lib/utilities/constant.d.ts +248 -0
  661. package/lib/utilities/constant.js +232 -0
  662. package/lib/utilities/copyText.d.ts +2 -0
  663. package/lib/utilities/copyText.js +43 -0
  664. package/lib/utilities/default-config.d.ts +32 -0
  665. package/lib/utilities/default-config.js +39 -0
  666. package/lib/utilities/extract.d.ts +5 -0
  667. package/lib/utilities/extract.js +97 -0
  668. package/lib/utilities/hooks.d.ts +14 -0
  669. package/lib/utilities/hooks.js +99 -0
  670. package/lib/utilities/mute-action.d.ts +4 -0
  671. package/lib/utilities/mute-action.js +48 -0
  672. package/lib/utilities/parameters.d.ts +7 -0
  673. package/lib/utilities/parameters.js +20 -0
  674. package/lib/utilities/platform.d.ts +1 -0
  675. package/lib/utilities/platform.js +11 -0
  676. package/lib/utilities/regex.d.ts +1 -0
  677. package/lib/utilities/regex.js +14 -0
  678. package/lib/utilities/renderer-event.d.ts +9 -0
  679. package/lib/utilities/renderer-event.js +76 -0
  680. package/lib/utilities/renderer.d.ts +23 -0
  681. package/lib/utilities/renderer.js +109 -0
  682. package/lib/utilities/screen.d.ts +3 -0
  683. package/lib/utilities/screen.js +41 -0
  684. package/lib/utilities/tools.d.ts +25 -0
  685. package/lib/utilities/tools.js +164 -0
  686. package/lib/utilities/ui-resources.d.ts +2 -0
  687. package/lib/utilities/ui-resources.js +9 -0
  688. package/lib/utilities/useNamespace.d.ts +15 -0
  689. package/lib/utilities/useNamespace.js +66 -0
  690. package/lib/utilities/video-track-render-context.d.ts +8 -0
  691. package/lib/utilities/video-track-render-context.js +9 -0
  692. package/package.json +59 -84
  693. package/public/assets/fcr_chat_reddot.svg +5 -0
  694. package/public/assets/fcr_defaultpage.png +0 -0
  695. package/public/assets/fcr_grid_big.svg +3 -0
  696. package/public/assets/fcr_listontop_big.svg +3 -0
  697. package/public/assets/pretest.mp3 +0 -0
  698. package/public/assets/state-bar-logo.png +0 -0
  699. package/public/assets/step-gradient.svg +10 -0
  700. package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
  701. package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
  702. package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
  703. package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
  704. package/public/index.html +26 -0
  705. package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
  706. package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
  707. package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
  708. package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
  709. package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
  710. package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
  711. package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
  712. package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
  713. package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
  714. package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
  715. package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
  716. package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
  717. package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
  718. package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
  719. package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
  720. package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
  721. package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
  722. package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
  723. package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
  724. package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
  725. package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
  726. package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
  727. package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
  728. package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
  729. package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
  730. package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
  731. package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
  732. package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
  733. package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
  734. package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
  735. package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
  736. package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
  737. package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
  738. package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
  739. package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
  740. package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
  741. package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
  742. package/lib/fcr-ui-scene/src/app.d.ts +0 -5
  743. package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
  744. package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
  745. package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
  746. package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
  747. package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
  748. package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
  749. package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
  750. package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
  751. package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
  752. package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
  753. package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
  754. package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
  755. package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
  756. package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
  757. package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
  758. package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
  759. package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
  760. package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
  761. package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
  762. package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
  763. package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
  764. package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
  765. package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
  766. package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
  767. package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
  768. package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
  769. package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
  770. package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
  771. package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
  772. package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
  773. package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
  774. package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
  775. package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
  776. package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
  777. package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
  778. package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
  779. package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
  780. package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
  781. package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
  782. package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
  783. package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
  784. package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
  785. package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
  786. package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
  787. package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
  788. package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
  789. package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
  790. package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
  791. package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
  792. package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
  793. package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
  794. package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
  795. package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
  796. package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
  797. package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
  798. package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
  799. package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
  800. package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
  801. package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
  802. package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
  803. package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
  804. package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
  805. package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -3
  806. package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
  807. package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
  808. package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
  809. package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
  810. package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
  811. package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
  812. package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
  813. package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
  814. package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
  815. package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
  816. package/lib/fcr-ui-scene/src/index.d.ts +0 -39
  817. package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
  818. package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
  819. package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
  820. package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
  821. package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
  822. package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
  823. package/lib/fcr-ui-scene/src/type.d.ts +0 -361
  824. package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
  825. package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
  826. package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
  827. package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
  828. package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
  829. package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
  830. package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
  831. package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -214
  832. package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
  833. package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -40
  834. package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
  835. package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
  836. package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
  837. package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
  838. package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
  839. package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
  840. package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
  841. package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
  842. package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
  843. package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
  844. package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
  845. package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
  846. package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
  847. package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
  848. package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
  849. package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
  850. package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
  851. package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
  852. package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
  853. package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
  854. package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
  855. package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
  856. package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
  857. package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
  858. package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
  859. package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
  860. package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
  861. package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
  862. package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
  863. package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
  864. package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
  865. package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
  866. package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
  867. package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
  868. package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
  869. package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
  870. package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
  871. package/lib/scene.bundle.js +0 -2
  872. /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → fragments/toolbar/components/extension-toolbar-item.d.ts} +0 -0
@@ -0,0 +1,1275 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.array.push.js");
10
+ require("core-js/modules/es.date.to-primitive.js");
11
+ require("core-js/modules/es.function.bind.js");
12
+ require("core-js/modules/es.function.name.js");
13
+ require("core-js/modules/es.map.js");
14
+ require("core-js/modules/es.object.create.js");
15
+ require("core-js/modules/es.object.define-property.js");
16
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
17
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
+ var _typeof = require("@babel/runtime/helpers/typeof");
19
+ Object.defineProperty(exports, "__esModule", {
20
+ value: true
21
+ });
22
+ exports["default"] = void 0;
23
+ require("core-js/modules/es.array.concat.js");
24
+ require("core-js/modules/es.array.find.js");
25
+ require("core-js/modules/es.array.iterator.js");
26
+ require("core-js/modules/es.date.to-json.js");
27
+ require("core-js/modules/es.json.stringify.js");
28
+ require("core-js/modules/es.number.constructor.js");
29
+ require("core-js/modules/es.object.to-string.js");
30
+ require("core-js/modules/es.string.iterator.js");
31
+ require("core-js/modules/es.weak-map.js");
32
+ require("core-js/modules/web.dom-collections.iterator.js");
33
+ require("core-js/modules/web.timers.js");
34
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
35
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
36
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
37
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
38
+ var _mobx = require("mobx");
39
+ var _constant = require("../../utilities/constant");
40
+ var _type = require("agora-rte-sdk/lib/core/rtc/type");
41
+ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
42
+ var _decorator = require("agora-foundation/lib/decorator");
43
+ var _type2 = require("agora-edu-core/lib/type");
44
+ var _rendererEvent = require("../../utilities/renderer-event");
45
+ var _toast = require("agora-ui-foundation/lib/components/toast");
46
+ var _platform = require("../../utilities/platform");
47
+ var _i18n = require("agora-ui-foundation/lib/i18n");
48
+ var _type3 = require("../../modules/action-bar/type");
49
+ var _logger = require("agora-foundation/lib/logger");
50
+ var _ControlBarStore;
51
+ var _initProto, _init_shareWithAudio, _init_shareAudioProcessingChannel, _init_currentShareId, _init_currentShareType, _init_isMuteAudio, _init_isMuteVideo, _init_currentCameraId, _init_currentMicrophoneId, _init_currentSpeakerId, _init_cameraList, _init_microphoneList, _init_speakerList, _init_localAudioVolume, _init_connectType, _init_cloudRecordingState, _init_localUserRole, _init_allowChangeSelfName, _init_allowChat, _init_allowJoinWithMuteAudio, _init_allowShareScreen, _init_allowUnmuteSelfVideo, _init_allowUnmuteSelfAudio, _init_isLockRoomEnabled, _init_isWaitingRoomEnabled, _init_showSecurity, _init_isHost, _init_hasEnableStartScreenSharePermission, _init_hasPermissionToControlAllowSendAll, _init_hasEnableStartAudioPermission, _init_hasEnableChangeNamePermission, _init_hasEnableStartVideoPermission, _init_hasLockRoomPermission, _init_roomDuration, _init_startTime, _init_videoSteamingUrl, _init_videoStreamingKey, _init_playUrl, _init_isStartError, _init_liveStreamingState, _init_hasStartCloudRecordingPermission, _init_hasGetLiveStreamingUrlPermission, _init_hasStopLiveStreamingPermission, _init_hasStartLiveStreamingPermission, _init_allApplicationWindows, _init_phoneMicEnabled, _initControlBarDecs, _updateCurrentShareContentDecs, _setLiveStreamingStateDecs, _setStartScreenSharePermissionDecs, _setPermissionToControlAllowSendAllDecs, _setStartAudioPermissionDecs, _setChangeNamePermissionDecs, _setStartVideoPermissionDecs, _setLockRoomPermissionDecs, _setCloudRecordingStateDecs, _setLocalUserRoleDecs, _setShareWithAudioStateDecs, _setShareWithAudioStateOnlyDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _muteLocalAudioDecs, _setCurrentMicrophoneIdDecs, _setCurrentSpeakerIdDecs, _setMicrophoneListDecs, _setSpeakerListDecs, _setLocalAudioStateDecs, _setConnectTypeDecs, _setPhoneMicEnabledDecs, _handlerOpenAudioSettingDecs, _handlerMicrophoneDeviceChangeDecs, _handlerSpeakerDeviceChangeDecs, _muteLocalVideoDecs, _setLocalAudioVolumeDecs, _setCurrentCameraIdDecs, _setCameraListDecs, _setLocalVideoStateDecs, _handlerCameraDeviceChangeDecs, _setIsHostDecs, _setShowSecurityDecs, _setAllowChangeSelfNameDecs, _setAllowChatDecs, _setAllowJoinWithMuteAudioDecs, _setAllowShareScreenDecs, _setAllowUnmuteSelfVideoDecs, _setAllowUnmuteSelfAudioDecs, _setLockRoomEnabledDecs, _setWaitingRoomEnabledDecs, _handleMoreClickDecs, _ref;
52
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
53
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
54
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
55
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
56
+ 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"); }
57
+ 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)]; } }; }
58
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
59
+ 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); }
60
+ 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; }
61
+ 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; }
62
+ var _A = /*#__PURE__*/new WeakMap();
63
+ var _B = /*#__PURE__*/new WeakMap();
64
+ var _C = /*#__PURE__*/new WeakMap();
65
+ var _D = /*#__PURE__*/new WeakMap();
66
+ var _E = /*#__PURE__*/new WeakMap();
67
+ var _F = /*#__PURE__*/new WeakMap();
68
+ var _G = /*#__PURE__*/new WeakMap();
69
+ var _H = /*#__PURE__*/new WeakMap();
70
+ var _I = /*#__PURE__*/new WeakMap();
71
+ var _J = /*#__PURE__*/new WeakMap();
72
+ var _K = /*#__PURE__*/new WeakMap();
73
+ var _L = /*#__PURE__*/new WeakMap();
74
+ var _M = /*#__PURE__*/new WeakMap();
75
+ var _N = /*#__PURE__*/new WeakMap();
76
+ var _O = /*#__PURE__*/new WeakMap();
77
+ var _P = /*#__PURE__*/new WeakMap();
78
+ var _Q = /*#__PURE__*/new WeakMap();
79
+ var _R = /*#__PURE__*/new WeakMap();
80
+ var _S = /*#__PURE__*/new WeakMap();
81
+ var _T = /*#__PURE__*/new WeakMap();
82
+ var _U = /*#__PURE__*/new WeakMap();
83
+ var _V = /*#__PURE__*/new WeakMap();
84
+ var _W = /*#__PURE__*/new WeakMap();
85
+ var _X = /*#__PURE__*/new WeakMap();
86
+ var _Y = /*#__PURE__*/new WeakMap();
87
+ var _Z = /*#__PURE__*/new WeakMap();
88
+ var _a = /*#__PURE__*/new WeakMap();
89
+ var _b = /*#__PURE__*/new WeakMap();
90
+ var _c = /*#__PURE__*/new WeakMap();
91
+ var _d = /*#__PURE__*/new WeakMap();
92
+ var _e = /*#__PURE__*/new WeakMap();
93
+ var _f = /*#__PURE__*/new WeakMap();
94
+ var _g = /*#__PURE__*/new WeakMap();
95
+ var _h = /*#__PURE__*/new WeakMap();
96
+ var _i = /*#__PURE__*/new WeakMap();
97
+ var _j = /*#__PURE__*/new WeakMap();
98
+ var _k = /*#__PURE__*/new WeakMap();
99
+ var _l = /*#__PURE__*/new WeakMap();
100
+ var _m = /*#__PURE__*/new WeakMap();
101
+ var _n = /*#__PURE__*/new WeakMap();
102
+ var _o = /*#__PURE__*/new WeakMap();
103
+ var _p = /*#__PURE__*/new WeakMap();
104
+ var _q = /*#__PURE__*/new WeakMap();
105
+ var _r = /*#__PURE__*/new WeakMap();
106
+ var _s = /*#__PURE__*/new WeakMap();
107
+ _ref = (_initControlBarDecs = [_mobx.action, _mobx.action.bound], _updateCurrentShareContentDecs = [_mobx.action, _mobx.action.bound], _setLiveStreamingStateDecs = [_mobx.action, _mobx.action.bound], _setStartScreenSharePermissionDecs = [_mobx.action, _mobx.action.bound], _setPermissionToControlAllowSendAllDecs = [_mobx.action, _mobx.action.bound], _setStartAudioPermissionDecs = [_mobx.action, _mobx.action.bound], _setChangeNamePermissionDecs = [_mobx.action, _mobx.action.bound], _setStartVideoPermissionDecs = [_mobx.action, _mobx.action.bound], _setLockRoomPermissionDecs = [_mobx.action, _mobx.action.bound], _setCloudRecordingStateDecs = [_mobx.action, _mobx.action.bound], _setLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateOnlyDecs = [_mobx.action, _mobx.action.bound], _createNewShareDecs = [_mobx.action, _mobx.action.bound], _handlerStopShareDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _muteLocalAudioDecs = [_mobx.action, _mobx.action.bound], _setCurrentMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _setSpeakerListDecs = [_mobx.action, _mobx.action.bound], _setLocalAudioStateDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _setPhoneMicEnabledDecs = [_mobx.action, _mobx.action.bound], _handlerOpenAudioSettingDecs = [_mobx.action, _mobx.action.bound], _handlerMicrophoneDeviceChangeDecs = [_mobx.action, _mobx.action.bound], _handlerSpeakerDeviceChangeDecs = [_mobx.action, _mobx.action.bound], _muteLocalVideoDecs = [_mobx.action, _mobx.action.bound], _setLocalAudioVolumeDecs = [_mobx.action, _mobx.action.bound], _setCurrentCameraIdDecs = [_mobx.action, _mobx.action.bound], _setCameraListDecs = [_mobx.action, _mobx.action.bound], _setLocalVideoStateDecs = [_mobx.action, _mobx.action.bound], _handlerCameraDeviceChangeDecs = [_mobx.action, _mobx.action.bound], _setIsHostDecs = [_mobx.action, _mobx.action.bound], _setShowSecurityDecs = [_mobx.action, _mobx.action.bound], _setAllowChangeSelfNameDecs = [_mobx.action, _mobx.action.bound], _setAllowChatDecs = [_mobx.action, _mobx.action.bound], _setAllowJoinWithMuteAudioDecs = [_mobx.action, _mobx.action.bound], _setAllowShareScreenDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfVideoDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfAudioDecs = [_mobx.action, _mobx.action.bound], _setLockRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _setWaitingRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _handleMoreClickDecs = [_mobx.action, _mobx.action.bound], "logger");
108
+ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
109
+ function ControlBarStore() {
110
+ (0, _classCallCheck2["default"])(this, ControlBarStore);
111
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
112
+ (0, _defineProperty2["default"])(this, "_screenBounds", {
113
+ width: 0,
114
+ height: 0,
115
+ availTop: 0
116
+ });
117
+ _classPrivateFieldInitSpec(this, _A, _init_shareWithAudio(this, false));
118
+ _classPrivateFieldInitSpec(this, _B, _init_shareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
119
+ _classPrivateFieldInitSpec(this, _C, _init_currentShareId(this, ''));
120
+ _classPrivateFieldInitSpec(this, _D, _init_currentShareType(this, _type.AgoraRtcScreenCaptureType.DISPLAY));
121
+ _classPrivateFieldInitSpec(this, _E, _init_isMuteAudio(this, false));
122
+ _classPrivateFieldInitSpec(this, _F, _init_isMuteVideo(this, false));
123
+ _classPrivateFieldInitSpec(this, _G, _init_currentCameraId(this, ''));
124
+ _classPrivateFieldInitSpec(this, _H, _init_currentMicrophoneId(this, ''));
125
+ _classPrivateFieldInitSpec(this, _I, _init_currentSpeakerId(this, ''));
126
+ _classPrivateFieldInitSpec(this, _J, _init_cameraList(this, []));
127
+ _classPrivateFieldInitSpec(this, _K, _init_microphoneList(this, []));
128
+ _classPrivateFieldInitSpec(this, _L, _init_speakerList(this, []));
129
+ _classPrivateFieldInitSpec(this, _M, _init_localAudioVolume(this, 0));
130
+ _classPrivateFieldInitSpec(this, _N, _init_connectType(this, _type3.ConnectType.NONE));
131
+ _classPrivateFieldInitSpec(this, _O, _init_cloudRecordingState(this, _type2.FcrRecordingState.Stopped));
132
+ _classPrivateFieldInitSpec(this, _P, _init_localUserRole(this, _type2.FcrUserRole.PARTICIPANT));
133
+ // security
134
+ _classPrivateFieldInitSpec(this, _Q, _init_allowChangeSelfName(this, false));
135
+ _classPrivateFieldInitSpec(this, _R, _init_allowChat(this, false));
136
+ _classPrivateFieldInitSpec(this, _S, _init_allowJoinWithMuteAudio(this, false));
137
+ _classPrivateFieldInitSpec(this, _T, _init_allowShareScreen(this, false));
138
+ _classPrivateFieldInitSpec(this, _U, _init_allowUnmuteSelfVideo(this, false));
139
+ _classPrivateFieldInitSpec(this, _V, _init_allowUnmuteSelfAudio(this, false));
140
+ _classPrivateFieldInitSpec(this, _W, _init_isLockRoomEnabled(this, false));
141
+ _classPrivateFieldInitSpec(this, _X, _init_isWaitingRoomEnabled(this, false));
142
+ _classPrivateFieldInitSpec(this, _Y, _init_showSecurity(this, false));
143
+ _classPrivateFieldInitSpec(this, _Z, _init_isHost(this, false));
144
+ _classPrivateFieldInitSpec(this, _a, _init_hasEnableStartScreenSharePermission(this, false));
145
+ _classPrivateFieldInitSpec(this, _b, _init_hasPermissionToControlAllowSendAll(this, false));
146
+ _classPrivateFieldInitSpec(this, _c, _init_hasEnableStartAudioPermission(this, false));
147
+ _classPrivateFieldInitSpec(this, _d, _init_hasEnableChangeNamePermission(this, false));
148
+ _classPrivateFieldInitSpec(this, _e, _init_hasEnableStartVideoPermission(this, false));
149
+ _classPrivateFieldInitSpec(this, _f, _init_hasLockRoomPermission(this, false));
150
+ _classPrivateFieldInitSpec(this, _g, _init_roomDuration(this, 0));
151
+ _classPrivateFieldInitSpec(this, _h, _init_startTime(this, 0));
152
+ _classPrivateFieldInitSpec(this, _i, _init_videoSteamingUrl(this, ''));
153
+ _classPrivateFieldInitSpec(this, _j, _init_videoStreamingKey(this, ''));
154
+ _classPrivateFieldInitSpec(this, _k, _init_playUrl(this, ''));
155
+ _classPrivateFieldInitSpec(this, _l, _init_isStartError(this, false));
156
+ _classPrivateFieldInitSpec(this, _m, _init_liveStreamingState(this, _type2.FcrLiveStreamingState.STOPPED));
157
+ _classPrivateFieldInitSpec(this, _n, _init_hasStartCloudRecordingPermission(this, false));
158
+ _classPrivateFieldInitSpec(this, _o, _init_hasGetLiveStreamingUrlPermission(this, false));
159
+ _classPrivateFieldInitSpec(this, _p, _init_hasStopLiveStreamingPermission(this, false));
160
+ _classPrivateFieldInitSpec(this, _q, _init_hasStartLiveStreamingPermission(this, false));
161
+ _classPrivateFieldInitSpec(this, _r, _init_allApplicationWindows(this, []));
162
+ _classPrivateFieldInitSpec(this, _s, _init_phoneMicEnabled(this, false));
163
+ window.runtime.browserWindow.maximizable = false;
164
+ window.runtime.browserWindow.setMaximizable(false);
165
+ // window.runtime.browserWindow.fullScreenable = false;
166
+ // window.runtime.browserWindow.setFullScreenable(false);
167
+ window.runtime.browserWindow.setIgnoreMouseEvents(true, {
168
+ forward: true
169
+ });
170
+ window.runtime.browserWindow.focus();
171
+ }
172
+ return (0, _createClass2["default"])(ControlBarStore, [{
173
+ key: "shareWithAudio",
174
+ get: function get() {
175
+ return _classPrivateFieldGet(_A, this);
176
+ },
177
+ set: function set(v) {
178
+ _classPrivateFieldSet(_A, this, v);
179
+ }
180
+ }, {
181
+ key: "shareAudioProcessingChannel",
182
+ get: function get() {
183
+ return _classPrivateFieldGet(_B, this);
184
+ },
185
+ set: function set(v) {
186
+ _classPrivateFieldSet(_B, this, v);
187
+ }
188
+ }, {
189
+ key: "currentShareId",
190
+ get: function get() {
191
+ return _classPrivateFieldGet(_C, this);
192
+ },
193
+ set: function set(v) {
194
+ _classPrivateFieldSet(_C, this, v);
195
+ }
196
+ }, {
197
+ key: "currentShareType",
198
+ get: function get() {
199
+ return _classPrivateFieldGet(_D, this);
200
+ },
201
+ set: function set(v) {
202
+ _classPrivateFieldSet(_D, this, v);
203
+ }
204
+ }, {
205
+ key: "isMuteAudio",
206
+ get: function get() {
207
+ return _classPrivateFieldGet(_E, this);
208
+ },
209
+ set: function set(v) {
210
+ _classPrivateFieldSet(_E, this, v);
211
+ }
212
+ }, {
213
+ key: "isMuteVideo",
214
+ get: function get() {
215
+ return _classPrivateFieldGet(_F, this);
216
+ },
217
+ set: function set(v) {
218
+ _classPrivateFieldSet(_F, this, v);
219
+ }
220
+ }, {
221
+ key: "currentCameraId",
222
+ get: function get() {
223
+ return _classPrivateFieldGet(_G, this);
224
+ },
225
+ set: function set(v) {
226
+ _classPrivateFieldSet(_G, this, v);
227
+ }
228
+ }, {
229
+ key: "currentMicrophoneId",
230
+ get: function get() {
231
+ return _classPrivateFieldGet(_H, this);
232
+ },
233
+ set: function set(v) {
234
+ _classPrivateFieldSet(_H, this, v);
235
+ }
236
+ }, {
237
+ key: "currentSpeakerId",
238
+ get: function get() {
239
+ return _classPrivateFieldGet(_I, this);
240
+ },
241
+ set: function set(v) {
242
+ _classPrivateFieldSet(_I, this, v);
243
+ }
244
+ }, {
245
+ key: "cameraList",
246
+ get: function get() {
247
+ return _classPrivateFieldGet(_J, this);
248
+ },
249
+ set: function set(v) {
250
+ _classPrivateFieldSet(_J, this, v);
251
+ }
252
+ }, {
253
+ key: "microphoneList",
254
+ get: function get() {
255
+ return _classPrivateFieldGet(_K, this);
256
+ },
257
+ set: function set(v) {
258
+ _classPrivateFieldSet(_K, this, v);
259
+ }
260
+ }, {
261
+ key: "speakerList",
262
+ get: function get() {
263
+ return _classPrivateFieldGet(_L, this);
264
+ },
265
+ set: function set(v) {
266
+ _classPrivateFieldSet(_L, this, v);
267
+ }
268
+ }, {
269
+ key: "localAudioVolume",
270
+ get: function get() {
271
+ return _classPrivateFieldGet(_M, this);
272
+ },
273
+ set: function set(v) {
274
+ _classPrivateFieldSet(_M, this, v);
275
+ }
276
+ }, {
277
+ key: "connectType",
278
+ get: function get() {
279
+ return _classPrivateFieldGet(_N, this);
280
+ },
281
+ set: function set(v) {
282
+ _classPrivateFieldSet(_N, this, v);
283
+ }
284
+ }, {
285
+ key: "cloudRecordingState",
286
+ get: function get() {
287
+ return _classPrivateFieldGet(_O, this);
288
+ },
289
+ set: function set(v) {
290
+ _classPrivateFieldSet(_O, this, v);
291
+ }
292
+ }, {
293
+ key: "localUserRole",
294
+ get: function get() {
295
+ return _classPrivateFieldGet(_P, this);
296
+ },
297
+ set: function set(v) {
298
+ _classPrivateFieldSet(_P, this, v);
299
+ }
300
+ }, {
301
+ key: "allowChangeSelfName",
302
+ get: function get() {
303
+ return _classPrivateFieldGet(_Q, this);
304
+ },
305
+ set: function set(v) {
306
+ _classPrivateFieldSet(_Q, this, v);
307
+ }
308
+ }, {
309
+ key: "allowChat",
310
+ get: function get() {
311
+ return _classPrivateFieldGet(_R, this);
312
+ },
313
+ set: function set(v) {
314
+ _classPrivateFieldSet(_R, this, v);
315
+ }
316
+ }, {
317
+ key: "allowJoinWithMuteAudio",
318
+ get: function get() {
319
+ return _classPrivateFieldGet(_S, this);
320
+ },
321
+ set: function set(v) {
322
+ _classPrivateFieldSet(_S, this, v);
323
+ }
324
+ }, {
325
+ key: "allowShareScreen",
326
+ get: function get() {
327
+ return _classPrivateFieldGet(_T, this);
328
+ },
329
+ set: function set(v) {
330
+ _classPrivateFieldSet(_T, this, v);
331
+ }
332
+ }, {
333
+ key: "allowUnmuteSelfVideo",
334
+ get: function get() {
335
+ return _classPrivateFieldGet(_U, this);
336
+ },
337
+ set: function set(v) {
338
+ _classPrivateFieldSet(_U, this, v);
339
+ }
340
+ }, {
341
+ key: "allowUnmuteSelfAudio",
342
+ get: function get() {
343
+ return _classPrivateFieldGet(_V, this);
344
+ },
345
+ set: function set(v) {
346
+ _classPrivateFieldSet(_V, this, v);
347
+ }
348
+ }, {
349
+ key: "isLockRoomEnabled",
350
+ get: function get() {
351
+ return _classPrivateFieldGet(_W, this);
352
+ },
353
+ set: function set(v) {
354
+ _classPrivateFieldSet(_W, this, v);
355
+ }
356
+ }, {
357
+ key: "isWaitingRoomEnabled",
358
+ get: function get() {
359
+ return _classPrivateFieldGet(_X, this);
360
+ },
361
+ set: function set(v) {
362
+ _classPrivateFieldSet(_X, this, v);
363
+ }
364
+ }, {
365
+ key: "showSecurity",
366
+ get: function get() {
367
+ return _classPrivateFieldGet(_Y, this);
368
+ },
369
+ set: function set(v) {
370
+ _classPrivateFieldSet(_Y, this, v);
371
+ }
372
+ }, {
373
+ key: "isHost",
374
+ get: function get() {
375
+ return _classPrivateFieldGet(_Z, this);
376
+ },
377
+ set: function set(v) {
378
+ _classPrivateFieldSet(_Z, this, v);
379
+ }
380
+ }, {
381
+ key: "hasEnableStartScreenSharePermission",
382
+ get: function get() {
383
+ return _classPrivateFieldGet(_a, this);
384
+ },
385
+ set: function set(v) {
386
+ _classPrivateFieldSet(_a, this, v);
387
+ }
388
+ }, {
389
+ key: "hasPermissionToControlAllowSendAll",
390
+ get: function get() {
391
+ return _classPrivateFieldGet(_b, this);
392
+ },
393
+ set: function set(v) {
394
+ _classPrivateFieldSet(_b, this, v);
395
+ }
396
+ }, {
397
+ key: "hasEnableStartAudioPermission",
398
+ get: function get() {
399
+ return _classPrivateFieldGet(_c, this);
400
+ },
401
+ set: function set(v) {
402
+ _classPrivateFieldSet(_c, this, v);
403
+ }
404
+ }, {
405
+ key: "hasEnableChangeNamePermission",
406
+ get: function get() {
407
+ return _classPrivateFieldGet(_d, this);
408
+ },
409
+ set: function set(v) {
410
+ _classPrivateFieldSet(_d, this, v);
411
+ }
412
+ }, {
413
+ key: "hasEnableStartVideoPermission",
414
+ get: function get() {
415
+ return _classPrivateFieldGet(_e, this);
416
+ },
417
+ set: function set(v) {
418
+ _classPrivateFieldSet(_e, this, v);
419
+ }
420
+ }, {
421
+ key: "hasLockRoomPermission",
422
+ get: function get() {
423
+ return _classPrivateFieldGet(_f, this);
424
+ },
425
+ set: function set(v) {
426
+ _classPrivateFieldSet(_f, this, v);
427
+ }
428
+ }, {
429
+ key: "roomDuration",
430
+ get: function get() {
431
+ return _classPrivateFieldGet(_g, this);
432
+ },
433
+ set: function set(v) {
434
+ _classPrivateFieldSet(_g, this, v);
435
+ }
436
+ }, {
437
+ key: "startTime",
438
+ get: function get() {
439
+ return _classPrivateFieldGet(_h, this);
440
+ },
441
+ set: function set(v) {
442
+ _classPrivateFieldSet(_h, this, v);
443
+ }
444
+ }, {
445
+ key: "videoSteamingUrl",
446
+ get: function get() {
447
+ return _classPrivateFieldGet(_i, this);
448
+ },
449
+ set: function set(v) {
450
+ _classPrivateFieldSet(_i, this, v);
451
+ }
452
+ }, {
453
+ key: "videoStreamingKey",
454
+ get: function get() {
455
+ return _classPrivateFieldGet(_j, this);
456
+ },
457
+ set: function set(v) {
458
+ _classPrivateFieldSet(_j, this, v);
459
+ }
460
+ }, {
461
+ key: "playUrl",
462
+ get: function get() {
463
+ return _classPrivateFieldGet(_k, this);
464
+ },
465
+ set: function set(v) {
466
+ _classPrivateFieldSet(_k, this, v);
467
+ }
468
+ }, {
469
+ key: "isStartError",
470
+ get: function get() {
471
+ return _classPrivateFieldGet(_l, this);
472
+ },
473
+ set: function set(v) {
474
+ _classPrivateFieldSet(_l, this, v);
475
+ }
476
+ }, {
477
+ key: "liveStreamingState",
478
+ get: function get() {
479
+ return _classPrivateFieldGet(_m, this);
480
+ },
481
+ set: function set(v) {
482
+ _classPrivateFieldSet(_m, this, v);
483
+ }
484
+ }, {
485
+ key: "hasStartCloudRecordingPermission",
486
+ get: function get() {
487
+ return _classPrivateFieldGet(_n, this);
488
+ },
489
+ set: function set(v) {
490
+ _classPrivateFieldSet(_n, this, v);
491
+ }
492
+ }, {
493
+ key: "hasGetLiveStreamingUrlPermission",
494
+ get: function get() {
495
+ return _classPrivateFieldGet(_o, this);
496
+ },
497
+ set: function set(v) {
498
+ _classPrivateFieldSet(_o, this, v);
499
+ }
500
+ }, {
501
+ key: "hasStopLiveStreamingPermission",
502
+ get: function get() {
503
+ return _classPrivateFieldGet(_p, this);
504
+ },
505
+ set: function set(v) {
506
+ _classPrivateFieldSet(_p, this, v);
507
+ }
508
+ }, {
509
+ key: "hasStartLiveStreamingPermission",
510
+ get: function get() {
511
+ return _classPrivateFieldGet(_q, this);
512
+ },
513
+ set: function set(v) {
514
+ _classPrivateFieldSet(_q, this, v);
515
+ }
516
+ }, {
517
+ key: "allApplicationWindows",
518
+ get: function get() {
519
+ return _classPrivateFieldGet(_r, this);
520
+ },
521
+ set: function set(v) {
522
+ _classPrivateFieldSet(_r, this, v);
523
+ }
524
+ }, {
525
+ key: "phoneMicEnabled",
526
+ get: function get() {
527
+ return _classPrivateFieldGet(_s, this);
528
+ },
529
+ set: function set(v) {
530
+ _classPrivateFieldSet(_s, this, v);
531
+ }
532
+ }, {
533
+ key: "initControlBar",
534
+ value: function initControlBar(payload) {
535
+ this.shareAudioProcessingChannel = payload.currentShareAudioProcessingChannel;
536
+ this.currentShareId = payload.currentShareId;
537
+ this.currentShareType = payload.currentShareType;
538
+ this.setShareWithAudioState(payload.shareWithAudio);
539
+ // room
540
+ this.setRoomDuration(payload.duration);
541
+ this.setStartTime(payload.startTime);
542
+
543
+ // Video
544
+ this.setCameraList(payload.cameraList);
545
+ this.setCurrentCameraId(payload.currentCameraId);
546
+ this.muteLocalVideo(payload.isMuteVideo);
547
+ // Audio
548
+ this.setMicrophoneList(payload.microphoneList);
549
+ this.setSpeakerList(payload.speakerList);
550
+ this.setCurrentMicrophoneId(payload.currentMicrophoneId);
551
+ this.setCurrentSpeakerId(payload.currentSpeakerId);
552
+ this.muteLocalAudio(payload.isMuteAudio);
553
+ this.setLocalAudioVolume(payload.localAudioVolume);
554
+ // security
555
+ this.setShowSecurity(payload.showSecurity);
556
+ this.setIsHost(payload.isHost);
557
+ this.setAllowChangeSelfName(payload.allowChangeSelfName);
558
+ this.setAllowChat(payload.allowChat);
559
+ this.setAllowJoinWithMuteAudio(payload.allowJoinWithMuteAudio);
560
+ this.setAllowShareScreen(payload.allowShareScreen);
561
+ this.setAllowUnmuteSelfVideo(payload.allowUnmuteSelfVideo);
562
+ this.setAllowUnmuteSelfAudio(payload.allowUnmuteSelfAudio);
563
+ this.setLockRoomEnabled(payload.isLockRoomEnabled);
564
+ this.setWaitingRoomEnabled(payload.isWaitingRoomEnabled);
565
+ this.setHasStartCloudRecordingPermission(payload.hasStartCloudRecordingPermission);
566
+ this.setHasStartLiveStreamingPermission(payload.hasStartLiveStreamingPermission);
567
+ this.setHasStopLiveStreamingPermission(payload.hasStopLiveStreamingPermission);
568
+ this.setHasGetLiveStreamingUrlPermission(payload.hasGetLiveStreamingLinkPermission);
569
+ this.setStartScreenSharePermission(payload.hasEnableStartScreenSharePermission);
570
+ this.setPermissionToControlAllowSendAll(payload.hasPermissionToControlAllowSendAll);
571
+ this.setStartAudioPermission(payload.hasEnableStartAudioPermission);
572
+ this.setChangeNamePermission(payload.hasEnableChangeNamePermission);
573
+ this.setStartVideoPermission(payload.hasEnableStartVideoPermission);
574
+ this.setLockRoomPermission(payload.hasLockRoomPermission);
575
+ // live streaming
576
+ this.setLiveStreamingState(payload.liveStreamingState);
577
+ this.setLiveStreamingInfo({
578
+ videoSteamingUrl: payload.videoSteamingUrl,
579
+ videoStreamingKey: payload.videoStreamingKey,
580
+ playUrl: payload.playUrl,
581
+ isStartError: payload.isStartError
582
+ });
583
+ this.setApplicationWindows(payload.allApplicationWindows);
584
+ this._setControlBarWindowBounds();
585
+ }
586
+ }, {
587
+ key: "_setControlBarWindowBounds",
588
+ value: function _setControlBarWindowBounds() {
589
+ var _this = this;
590
+ var _this$getCurrentWorkA = this.getCurrentWorkArea(),
591
+ workareaX = _this$getCurrentWorkA.x,
592
+ workareaY = _this$getCurrentWorkA.y,
593
+ availWidth = _this$getCurrentWorkA.width,
594
+ availHeight = _this$getCurrentWorkA.height,
595
+ availTop = _this$getCurrentWorkA.availTop;
596
+ this._screenBounds = {
597
+ width: availWidth,
598
+ height: availHeight,
599
+ availTop: availTop
600
+ };
601
+
602
+ /* 使用window.screen.availWidth在windows上会黑屏,详见jira:APAAS-5732
603
+ 怀疑是在windows上BrowserWindow有一个边框,所以需要减去一定的宽度。
604
+ 实验结果最低是4。这里减去10留一点buffer,防止其他操作系统的边框不一致。
605
+ */
606
+ var WINDOWS_SCREEN_BOUNDARY_WIDTH = 10;
607
+ var width = (0, _platform.isWindows)() ? availWidth - WINDOWS_SCREEN_BOUNDARY_WIDTH : availWidth;
608
+ // 重新设置窗口大小
609
+ setTimeout(function () {
610
+ window.runtime.browserWindow.setBounds({
611
+ x: workareaX,
612
+ y: workareaY,
613
+ width: width,
614
+ height: availHeight
615
+ });
616
+ _this.logger.info("set browser window bounds: ".concat(workareaX, ", ").concat(workareaY, ", ").concat(width, ", ").concat(availHeight));
617
+ });
618
+ window.runtime.browserWindow.setMaximumSize(width, availHeight);
619
+ this.logger.info("set browser window max size: ".concat(width, ", ").concat(availHeight));
620
+ window.runtime.setAlwaysOnTop();
621
+ window.runtime.browserWindow.setBounds({
622
+ x: workareaX,
623
+ y: workareaY
624
+ });
625
+ this.logger.info("set browser window position: ".concat(workareaX, ", ").concat(workareaY));
626
+ (0, _rendererEvent.sendEvent)({
627
+ action: _constant.RendererEventAction.SET_CONTROL_BAR_WINDOW_ID,
628
+ payload: {
629
+ controlBarWindowId: window.runtime.browserWindow.id
630
+ }
631
+ });
632
+ }
633
+ }, {
634
+ key: "hasSecurityPermission",
635
+ get: function get() {
636
+ return this.hasEnableStartScreenSharePermission || this.hasPermissionToControlAllowSendAll || this.hasEnableStartAudioPermission || this.hasEnableChangeNamePermission || this.hasEnableStartVideoPermission || this.hasLockRoomPermission;
637
+ }
638
+ }, {
639
+ key: "updateCurrentShareContent",
640
+ value: function updateCurrentShareContent(payload) {
641
+ var id = payload.id,
642
+ type = payload.type;
643
+ this.currentShareId = id;
644
+ this.currentShareType = type;
645
+ this._setControlBarWindowBounds();
646
+ }
647
+ }, {
648
+ key: "updateAllApplicationList",
649
+ value: function updateAllApplicationList(allApplicationWindows) {
650
+ this.setApplicationWindows(allApplicationWindows);
651
+ }
652
+ }, {
653
+ key: "screenBounds",
654
+ get: function get() {
655
+ return this._screenBounds;
656
+ }
657
+ }, {
658
+ key: "setLiveStreamingInfo",
659
+ value: function setLiveStreamingInfo(data) {
660
+ this.videoSteamingUrl = data.videoSteamingUrl;
661
+ this.videoStreamingKey = data.videoStreamingKey;
662
+ this.playUrl = data.playUrl;
663
+ this.isStartError = data.isStartError;
664
+ }
665
+ }, {
666
+ key: "setLiveStreamingState",
667
+ value: function setLiveStreamingState(liveStreamingState) {
668
+ this.liveStreamingState = liveStreamingState;
669
+ }
670
+ }, {
671
+ key: "setStartTime",
672
+ value: function setStartTime(startTime) {
673
+ this.startTime = startTime;
674
+ }
675
+ }, {
676
+ key: "setRoomDuration",
677
+ value: function setRoomDuration(duration) {
678
+ this.roomDuration = duration;
679
+ }
680
+ }, {
681
+ key: "setStartScreenSharePermission",
682
+ value: function setStartScreenSharePermission(hasPermission) {
683
+ this.hasEnableStartScreenSharePermission = hasPermission;
684
+ }
685
+ }, {
686
+ key: "setPermissionToControlAllowSendAll",
687
+ value: function setPermissionToControlAllowSendAll(hasPermission) {
688
+ this.hasPermissionToControlAllowSendAll = hasPermission;
689
+ }
690
+ }, {
691
+ key: "setStartAudioPermission",
692
+ value: function setStartAudioPermission(hasPermission) {
693
+ this.hasEnableStartAudioPermission = hasPermission;
694
+ }
695
+ }, {
696
+ key: "setChangeNamePermission",
697
+ value: function setChangeNamePermission(hasPermission) {
698
+ this.hasEnableChangeNamePermission = hasPermission;
699
+ }
700
+ }, {
701
+ key: "setStartVideoPermission",
702
+ value: function setStartVideoPermission(hasPermission) {
703
+ this.hasEnableStartVideoPermission = hasPermission;
704
+ }
705
+ }, {
706
+ key: "setLockRoomPermission",
707
+ value: function setLockRoomPermission(hasPermission) {
708
+ this.hasLockRoomPermission = hasPermission;
709
+ }
710
+ }, {
711
+ key: "setCloudRecordingState",
712
+ value: function setCloudRecordingState(state) {
713
+ this.cloudRecordingState = state;
714
+ }
715
+ }, {
716
+ key: "setApplicationWindows",
717
+ value: function setApplicationWindows(windows) {
718
+ this.allApplicationWindows = windows;
719
+ }
720
+ }, {
721
+ key: "setLocalUserRole",
722
+ value: function setLocalUserRole(role) {
723
+ this.localUserRole = role;
724
+ this.setShowSecurity(role === _type2.FcrUserRole.HOST);
725
+ }
726
+ }, {
727
+ key: "setShareWithAudioState",
728
+ value: function setShareWithAudioState(withAudio) {
729
+ this.shareWithAudio = withAudio;
730
+ (0, _rendererEvent.sendEvent)({
731
+ action: _constant.RendererEventAction.SET_SHARE_WITH_AUDIO,
732
+ payload: {
733
+ withAudio: withAudio
734
+ }
735
+ });
736
+ }
737
+ }, {
738
+ key: "setShareWithAudioStateOnly",
739
+ value: function setShareWithAudioStateOnly(withAudio) {
740
+ this.shareWithAudio = withAudio;
741
+ }
742
+ }, {
743
+ key: "createNewShare",
744
+ value: function createNewShare() {
745
+ (0, _rendererEvent.sendEvent)({
746
+ action: _constant.RendererEventAction.CHOOSE_NEW_CONTENT_TO_SHARE,
747
+ payload: null
748
+ });
749
+
750
+ // this.shareWithAudio = withAudio;
751
+ }
752
+ }, {
753
+ key: "handlerStopShare",
754
+ value: function handlerStopShare() {
755
+ (0, _rendererEvent.sendEvent)({
756
+ action: _constant.RendererEventAction.STOP_SHARE_SCREEN,
757
+ payload: null
758
+ });
759
+ }
760
+ }, {
761
+ key: "setShareAudioProcessingChannel",
762
+ value: function setShareAudioProcessingChannel(target) {
763
+ this.shareAudioProcessingChannel = target;
764
+ }
765
+ // Audio module
766
+ }, {
767
+ key: "muteLocalAudio",
768
+ value: function muteLocalAudio(mute) {
769
+ this.isMuteAudio = mute;
770
+ }
771
+ }, {
772
+ key: "setCurrentMicrophoneId",
773
+ value: function setCurrentMicrophoneId(deviceId) {
774
+ this.currentMicrophoneId = deviceId;
775
+ }
776
+ }, {
777
+ key: "setCurrentSpeakerId",
778
+ value: function setCurrentSpeakerId(deviceId) {
779
+ this.currentSpeakerId = deviceId;
780
+ }
781
+ }, {
782
+ key: "setMicrophoneList",
783
+ value: function setMicrophoneList(list) {
784
+ this.microphoneList = list;
785
+ }
786
+ }, {
787
+ key: "setSpeakerList",
788
+ value: function setSpeakerList(list) {
789
+ this.speakerList = list;
790
+ }
791
+ }, {
792
+ key: "setLocalAudioState",
793
+ value: function setLocalAudioState() {
794
+ if (this.isMuteAudio) {
795
+ (0, _rendererEvent.sendEvent)({
796
+ action: _constant.RendererEventAction.UNMUTE_LOCAL_AUDIO,
797
+ payload: null
798
+ });
799
+ return;
800
+ }
801
+ (0, _rendererEvent.sendEvent)({
802
+ action: _constant.RendererEventAction.MUTE_LOCAL_AUDIO,
803
+ payload: {
804
+ confirmAudioShareWhileMicOff: this.shareWithAudio
805
+ }
806
+ });
807
+ }
808
+ }, {
809
+ key: "setConnectType",
810
+ value: function setConnectType(type) {
811
+ this.connectType = type;
812
+ }
813
+ }, {
814
+ key: "setPhoneMicEnabled",
815
+ value: function setPhoneMicEnabled(value) {
816
+ this.phoneMicEnabled = value;
817
+ }
818
+ }, {
819
+ key: "getCurrentWorkArea",
820
+ value: function getCurrentWorkArea() {
821
+ var currentShareId = this.currentShareId,
822
+ currentShareType = this.currentShareType,
823
+ allApplicationWindows = this.allApplicationWindows;
824
+ var displays = window.runtime.screen.getAllDisplays();
825
+ var bounds = {
826
+ x: 0,
827
+ y: 0,
828
+ width: 0,
829
+ height: 0,
830
+ displayId: 1,
831
+ availTop: 0
832
+ };
833
+ if (currentShareType === _type.AgoraRtcScreenCaptureType.DISPLAY) {
834
+ var display;
835
+ if ((0, _platform.isWindows)()) {
836
+ display = displays.find(function (display, index) {
837
+ return index === Number(currentShareId);
838
+ });
839
+ } else {
840
+ display = displays.find(function (display, index) {
841
+ return display.id === Number(currentShareId);
842
+ });
843
+ }
844
+ if (!display) {
845
+ this.logger.info("cannot get correct display, use current display. width: ".concat(window.screen.availWidth, ", height: ").concat(window.screen.availHeight));
846
+ bounds = {
847
+ x: 0,
848
+ y: 0,
849
+ width: window.screen.availWidth,
850
+ height: window.screen.availHeight,
851
+ displayId: 0,
852
+ availTop: 0
853
+ };
854
+ } else {
855
+ bounds = {
856
+ x: display.bounds.x,
857
+ y: display.bounds.y,
858
+ width: display.bounds.width,
859
+ height: display.bounds.height,
860
+ displayId: display.id,
861
+ availTop: display.workArea.y
862
+ };
863
+ }
864
+ } else {
865
+ var _appWindow$bounds$x, _appWindow$bounds, _appWindow$bounds$y, _appWindow$bounds2;
866
+ var appWindow = allApplicationWindows.find(function (app) {
867
+ return app.id === currentShareId;
868
+ });
869
+ var _display = window.runtime.screen.getDisplayNearestPoint({
870
+ x: (_appWindow$bounds$x = appWindow === null || appWindow === void 0 || (_appWindow$bounds = appWindow.bounds) === null || _appWindow$bounds === void 0 ? void 0 : _appWindow$bounds.x) !== null && _appWindow$bounds$x !== void 0 ? _appWindow$bounds$x : 0,
871
+ y: (_appWindow$bounds$y = appWindow === null || appWindow === void 0 || (_appWindow$bounds2 = appWindow.bounds) === null || _appWindow$bounds2 === void 0 ? void 0 : _appWindow$bounds2.y) !== null && _appWindow$bounds$y !== void 0 ? _appWindow$bounds$y : 0
872
+ });
873
+ bounds = {
874
+ x: _display.bounds.x,
875
+ y: _display.bounds.y,
876
+ width: _display.bounds.width,
877
+ height: _display.bounds.height,
878
+ displayId: _display.id,
879
+ availTop: _display.workArea.y
880
+ };
881
+ }
882
+ this.logger.info("current work area: ".concat(JSON.stringify(bounds)));
883
+ return bounds;
884
+ }
885
+ }, {
886
+ key: "handlerOpenAudioSetting",
887
+ value: function handlerOpenAudioSetting() {
888
+ window.runtime.browserWindow.blur();
889
+ (0, _rendererEvent.sendEvent)({
890
+ action: _constant.RendererEventAction.OPEN_AUDIO_SETTING,
891
+ payload: null
892
+ });
893
+ }
894
+ }, {
895
+ key: "handlerMicrophoneDeviceChange",
896
+ value: function handlerMicrophoneDeviceChange(value) {
897
+ this.setCurrentMicrophoneId(value);
898
+ (0, _rendererEvent.sendEvent)({
899
+ action: _constant.RendererEventAction.SET_MICROPHONE_DEVICE,
900
+ payload: {
901
+ deviceId: value
902
+ }
903
+ });
904
+ }
905
+ }, {
906
+ key: "handlerSpeakerDeviceChange",
907
+ value: function handlerSpeakerDeviceChange(value) {
908
+ this.setCurrentSpeakerId(value);
909
+ (0, _rendererEvent.sendEvent)({
910
+ action: _constant.RendererEventAction.SET_SPEAKER_DEVICE,
911
+ payload: {
912
+ deviceId: value
913
+ }
914
+ });
915
+ }
916
+ // Video module
917
+ }, {
918
+ key: "muteLocalVideo",
919
+ value: function muteLocalVideo(mute) {
920
+ this.isMuteVideo = mute;
921
+ }
922
+ }, {
923
+ key: "setLocalAudioVolume",
924
+ value: function setLocalAudioVolume(volume) {
925
+ this.localAudioVolume = volume;
926
+ }
927
+ }, {
928
+ key: "setCurrentCameraId",
929
+ value: function setCurrentCameraId(deviceId) {
930
+ this.currentCameraId = deviceId;
931
+ }
932
+ }, {
933
+ key: "setCameraList",
934
+ value: function setCameraList(list) {
935
+ this.cameraList = list;
936
+ }
937
+ }, {
938
+ key: "setLocalVideoState",
939
+ value: function setLocalVideoState() {
940
+ if (this.isMuteVideo) {
941
+ (0, _rendererEvent.sendEvent)({
942
+ action: _constant.RendererEventAction.UNMUTE_LOCAL_VIDEO,
943
+ payload: null
944
+ });
945
+ return;
946
+ }
947
+ (0, _rendererEvent.sendEvent)({
948
+ action: _constant.RendererEventAction.MUTE_LOCAL_VIDEO,
949
+ payload: null
950
+ });
951
+ }
952
+ }, {
953
+ key: "handlerCameraDeviceChange",
954
+ value: function handlerCameraDeviceChange(value) {
955
+ this.setCurrentCameraId(value);
956
+ (0, _rendererEvent.sendEvent)({
957
+ action: _constant.RendererEventAction.SET_CAMERA_DEVICE,
958
+ payload: {
959
+ deviceId: value
960
+ }
961
+ });
962
+ }
963
+ }, {
964
+ key: "handlerOpenVirtualBackground",
965
+ value: function handlerOpenVirtualBackground() {
966
+ window.runtime.browserWindow.blur();
967
+ (0, _rendererEvent.sendEvent)({
968
+ action: _constant.RendererEventAction.OPEN_VIRTUAL_BACKGROUND,
969
+ payload: null
970
+ });
971
+ }
972
+ }, {
973
+ key: "handlerOpenVideoFilter",
974
+ value: function handlerOpenVideoFilter() {
975
+ window.runtime.browserWindow.blur();
976
+ (0, _rendererEvent.sendEvent)({
977
+ action: _constant.RendererEventAction.OPEN_VIDEO_FILTER,
978
+ payload: null
979
+ });
980
+ }
981
+ }, {
982
+ key: "handlerOpenVideoSetting",
983
+ value: function handlerOpenVideoSetting() {
984
+ window.runtime.browserWindow.blur();
985
+ (0, _rendererEvent.sendEvent)({
986
+ action: _constant.RendererEventAction.OPEN_VIDEO_SETTING,
987
+ payload: null
988
+ });
989
+ }
990
+
991
+ // security
992
+ }, {
993
+ key: "setIsHost",
994
+ value: function setIsHost(isHost) {
995
+ this.isHost = isHost;
996
+ }
997
+ }, {
998
+ key: "setShowSecurity",
999
+ value: function setShowSecurity(show) {
1000
+ this.showSecurity = show;
1001
+ }
1002
+ }, {
1003
+ key: "setAllowChangeSelfName",
1004
+ value: function setAllowChangeSelfName(allow) {
1005
+ this.allowChangeSelfName = allow;
1006
+ }
1007
+ }, {
1008
+ key: "updateAllowChangeSelfName",
1009
+ value: function updateAllowChangeSelfName(allow) {
1010
+ (0, _rendererEvent.sendEvent)({
1011
+ action: _constant.RendererEventAction.FRAGMENT_SET_ALLOW_CHANGE_SELF_NAME,
1012
+ payload: {
1013
+ allow: allow
1014
+ }
1015
+ });
1016
+ }
1017
+ }, {
1018
+ key: "setAllowChat",
1019
+ value: function setAllowChat(allow) {
1020
+ this.allowChat = allow;
1021
+ }
1022
+ }, {
1023
+ key: "updateAllowChat",
1024
+ value: function updateAllowChat(allow) {
1025
+ (0, _rendererEvent.sendEvent)({
1026
+ action: _constant.RendererEventAction.FRAGMENT_SET_ALLOW_CHAT,
1027
+ payload: {
1028
+ allow: allow
1029
+ }
1030
+ });
1031
+ }
1032
+ }, {
1033
+ key: "setAllowJoinWithMuteAudio",
1034
+ value: function setAllowJoinWithMuteAudio(allow) {
1035
+ this.allowJoinWithMuteAudio = allow;
1036
+ }
1037
+ }, {
1038
+ key: "updateAllowJoinWithMuteAudio",
1039
+ value: function updateAllowJoinWithMuteAudio(allow) {
1040
+ (0, _rendererEvent.sendEvent)({
1041
+ action: _constant.RendererEventAction.FRAGMENT_SET_ALLOW_JOIN_WITH_MUTE_AUDIO,
1042
+ payload: {
1043
+ allow: allow
1044
+ }
1045
+ });
1046
+ }
1047
+ }, {
1048
+ key: "setAllowShareScreen",
1049
+ value: function setAllowShareScreen(allow) {
1050
+ this.allowShareScreen = allow;
1051
+ }
1052
+ }, {
1053
+ key: "updateAllowShareScreen",
1054
+ value: function updateAllowShareScreen(allow) {
1055
+ (0, _rendererEvent.sendEvent)({
1056
+ action: _constant.RendererEventAction.FRAGMENT_SET_ALLOW_SHARE_SCREEN,
1057
+ payload: {
1058
+ allow: allow
1059
+ }
1060
+ });
1061
+ }
1062
+ }, {
1063
+ key: "setAllowUnmuteSelfVideo",
1064
+ value: function setAllowUnmuteSelfVideo(allow) {
1065
+ this.allowUnmuteSelfVideo = allow;
1066
+ }
1067
+ }, {
1068
+ key: "updateAllowUnmuteSelfVideo",
1069
+ value: function updateAllowUnmuteSelfVideo(allow) {
1070
+ (0, _rendererEvent.sendEvent)({
1071
+ action: _constant.RendererEventAction.FRAGMENT_SET_ALLOW_UNMUTE_SELF_VIDEO,
1072
+ payload: {
1073
+ allow: allow
1074
+ }
1075
+ });
1076
+ }
1077
+ }, {
1078
+ key: "setAllowUnmuteSelfAudio",
1079
+ value: function setAllowUnmuteSelfAudio(allow) {
1080
+ this.allowUnmuteSelfAudio = allow;
1081
+ }
1082
+ }, {
1083
+ key: "updateAllowUnmuteSelfAudio",
1084
+ value: function updateAllowUnmuteSelfAudio(allow) {
1085
+ (0, _rendererEvent.sendEvent)({
1086
+ action: _constant.RendererEventAction.FRAGMENT_SET_ALLOW_UNMUTE_SELF_AUDIO,
1087
+ payload: {
1088
+ allow: allow
1089
+ }
1090
+ });
1091
+ }
1092
+ }, {
1093
+ key: "setLockRoomEnabled",
1094
+ value: function setLockRoomEnabled(lock) {
1095
+ this.isLockRoomEnabled = lock;
1096
+ }
1097
+ }, {
1098
+ key: "updateLockRoomEnabled",
1099
+ value: function updateLockRoomEnabled(lock) {
1100
+ (0, _rendererEvent.sendEvent)({
1101
+ action: _constant.RendererEventAction.FRAGMENT_SET_LOCK_ROOM,
1102
+ payload: {
1103
+ allow: lock
1104
+ }
1105
+ });
1106
+ }
1107
+ }, {
1108
+ key: "setWaitingRoomEnabled",
1109
+ value: function setWaitingRoomEnabled(allow) {
1110
+ this.isWaitingRoomEnabled = allow;
1111
+ }
1112
+ }, {
1113
+ key: "setHasStartCloudRecordingPermission",
1114
+ value: function setHasStartCloudRecordingPermission(allow) {
1115
+ this.hasStartCloudRecordingPermission = allow;
1116
+ }
1117
+ }, {
1118
+ key: "setHasGetLiveStreamingUrlPermission",
1119
+ value: function setHasGetLiveStreamingUrlPermission(hasGetLiveStreamingUrlPermission) {
1120
+ this.hasGetLiveStreamingUrlPermission = hasGetLiveStreamingUrlPermission;
1121
+ }
1122
+ }, {
1123
+ key: "setHasStopLiveStreamingPermission",
1124
+ value: function setHasStopLiveStreamingPermission(hasStopLiveStreamingPermission) {
1125
+ this.hasStopLiveStreamingPermission = hasStopLiveStreamingPermission;
1126
+ }
1127
+ }, {
1128
+ key: "setHasStartLiveStreamingPermission",
1129
+ value: function setHasStartLiveStreamingPermission(hasStartLiveStreamingPermission) {
1130
+ this.hasStartLiveStreamingPermission = hasStartLiveStreamingPermission;
1131
+ }
1132
+ }, {
1133
+ key: "updateWaitingRoomEnabled",
1134
+ value: function updateWaitingRoomEnabled(allow) {
1135
+ (0, _rendererEvent.sendEvent)({
1136
+ action: _constant.RendererEventAction.FRAGMENT_SET_ENABLE_WAITING_ROOM,
1137
+ payload: {
1138
+ allow: allow
1139
+ }
1140
+ });
1141
+ }
1142
+ // more
1143
+ }, {
1144
+ key: "handleMoreClick",
1145
+ value: function handleMoreClick(actionKey) {
1146
+ var _this2 = this;
1147
+ window.runtime.browserWindow.setIgnoreMouseEvents(true, {
1148
+ forward: true
1149
+ });
1150
+ (0, _rendererEvent.sendEvent)({
1151
+ action: actionKey,
1152
+ payload: null
1153
+ });
1154
+ if (actionKey === _constant.RendererEventAction.STOP_LIVE_STREAMING) {
1155
+ var dispose = (0, _mobx.reaction)(function () {
1156
+ return _this2.liveStreamingState;
1157
+ }, function (liveStreamingState) {
1158
+ if (liveStreamingState === _type2.FcrLiveStreamingState.STOPPED) {
1159
+ _this2.showToast({
1160
+ toastProps: {
1161
+ type: 'info',
1162
+ content: (0, _i18n.transI18n)('fmt_broadcast_livestream_stopped')
1163
+ }
1164
+ });
1165
+ dispose();
1166
+ }
1167
+ });
1168
+ }
1169
+ }
1170
+ }, {
1171
+ key: "startCloudRecording",
1172
+ value: function startCloudRecording() {
1173
+ (0, _rendererEvent.sendEvent)({
1174
+ action: _constant.RendererEventAction.CLOUD_RECORDING_START,
1175
+ payload: null
1176
+ });
1177
+ }
1178
+ }, {
1179
+ key: "pauseCloudRecording",
1180
+ value: function pauseCloudRecording() {
1181
+ (0, _rendererEvent.sendEvent)({
1182
+ action: _constant.RendererEventAction.CLOUD_RECORDING_PAUSE,
1183
+ payload: null
1184
+ });
1185
+ }
1186
+ }, {
1187
+ key: "resumeCloudRecording",
1188
+ value: function resumeCloudRecording() {
1189
+ (0, _rendererEvent.sendEvent)({
1190
+ action: _constant.RendererEventAction.CLOUD_RECORDING_RESUME,
1191
+ payload: null
1192
+ });
1193
+ }
1194
+ }, {
1195
+ key: "stopCloudRecording",
1196
+ value: function stopCloudRecording() {
1197
+ (0, _rendererEvent.sendEvent)({
1198
+ action: _constant.RendererEventAction.CLOUD_RECORDING_STOP,
1199
+ payload: null
1200
+ });
1201
+ }
1202
+ }, {
1203
+ key: "getCoordinate",
1204
+ value: function getCoordinate(offsetWidth, offsetHeight) {
1205
+ var _this$getCurrentWorkA2 = this.getCurrentWorkArea(),
1206
+ workareaW = _this$getCurrentWorkA2.width,
1207
+ displayId = _this$getCurrentWorkA2.displayId;
1208
+ var x = workareaW / 2 - offsetWidth / 2;
1209
+ var y = 0;
1210
+ return {
1211
+ x: x,
1212
+ y: y
1213
+ };
1214
+ }
1215
+ }, {
1216
+ key: "showToast",
1217
+ value: function showToast(params) {
1218
+ _toast.FcrToastApi.open({
1219
+ toastProps: {
1220
+ type: params.type,
1221
+ content: params.message
1222
+ },
1223
+ duration: params.duration
1224
+ });
1225
+ }
1226
+ }]);
1227
+ }();
1228
+ _ControlBarStore = ControlBarStore;
1229
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "shareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "isMuteAudio"], [_mobx.observable, 1, "isMuteVideo"], [_mobx.observable, 1, "currentCameraId"], [_mobx.observable, 1, "currentMicrophoneId"], [_mobx.observable, 1, "currentSpeakerId"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "localAudioVolume"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "allowChangeSelfName"], [_mobx.observable, 1, "allowChat"], [_mobx.observable, 1, "allowJoinWithMuteAudio"], [_mobx.observable, 1, "allowShareScreen"], [_mobx.observable, 1, "allowUnmuteSelfVideo"], [_mobx.observable, 1, "allowUnmuteSelfAudio"], [_mobx.observable, 1, "isLockRoomEnabled"], [_mobx.observable, 1, "isWaitingRoomEnabled"], [_mobx.observable, 1, "showSecurity"], [_mobx.observable, 1, "isHost"], [_mobx.observable, 1, "hasEnableStartScreenSharePermission"], [_mobx.observable, 1, "hasPermissionToControlAllowSendAll"], [_mobx.observable, 1, "hasEnableStartAudioPermission"], [_mobx.observable, 1, "hasEnableChangeNamePermission"], [_mobx.observable, 1, "hasEnableStartVideoPermission"], [_mobx.observable, 1, "hasLockRoomPermission"], [_mobx.observable, 1, "roomDuration"], [_mobx.observable, 1, "startTime"], [_mobx.observable, 1, "videoSteamingUrl"], [_mobx.observable, 1, "videoStreamingKey"], [_mobx.observable, 1, "playUrl"], [_mobx.observable, 1, "isStartError"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "hasStartCloudRecordingPermission"], [_mobx.observable, 1, "hasGetLiveStreamingUrlPermission"], [_mobx.observable, 1, "hasStopLiveStreamingPermission"], [_mobx.observable, 1, "hasStartLiveStreamingPermission"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "phoneMicEnabled"], [_initControlBarDecs, 18, "initControlBar"], [_mobx.computed, 3, "hasSecurityPermission"], [_updateCurrentShareContentDecs, 18, "updateCurrentShareContent"], [_setLiveStreamingStateDecs, 18, "setLiveStreamingState"], [_setStartScreenSharePermissionDecs, 18, "setStartScreenSharePermission"], [_setPermissionToControlAllowSendAllDecs, 18, "setPermissionToControlAllowSendAll"], [_setStartAudioPermissionDecs, 18, "setStartAudioPermission"], [_setChangeNamePermissionDecs, 18, "setChangeNamePermission"], [_setStartVideoPermissionDecs, 18, "setStartVideoPermission"], [_setLockRoomPermissionDecs, 18, "setLockRoomPermission"], [_setCloudRecordingStateDecs, 18, "setCloudRecordingState"], [_decorator.bound, 2, "setApplicationWindows"], [_setLocalUserRoleDecs, 18, "setLocalUserRole"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareWithAudioStateOnlyDecs, 18, "setShareWithAudioStateOnly"], [_createNewShareDecs, 18, "createNewShare"], [_handlerStopShareDecs, 18, "handlerStopShare"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_muteLocalAudioDecs, 18, "muteLocalAudio"], [_setCurrentMicrophoneIdDecs, 18, "setCurrentMicrophoneId"], [_setCurrentSpeakerIdDecs, 18, "setCurrentSpeakerId"], [_setMicrophoneListDecs, 18, "setMicrophoneList"], [_setSpeakerListDecs, 18, "setSpeakerList"], [_setLocalAudioStateDecs, 18, "setLocalAudioState"], [_setConnectTypeDecs, 18, "setConnectType"], [_setPhoneMicEnabledDecs, 18, "setPhoneMicEnabled"], [_handlerOpenAudioSettingDecs, 18, "handlerOpenAudioSetting"], [_handlerMicrophoneDeviceChangeDecs, 18, "handlerMicrophoneDeviceChange"], [_handlerSpeakerDeviceChangeDecs, 18, "handlerSpeakerDeviceChange"], [_muteLocalVideoDecs, 18, "muteLocalVideo"], [_setLocalAudioVolumeDecs, 18, "setLocalAudioVolume"], [_setCurrentCameraIdDecs, 18, "setCurrentCameraId"], [_setCameraListDecs, 18, "setCameraList"], [_setLocalVideoStateDecs, 18, "setLocalVideoState"], [_handlerCameraDeviceChangeDecs, 18, "handlerCameraDeviceChange"], [_setIsHostDecs, 18, "setIsHost"], [_setShowSecurityDecs, 18, "setShowSecurity"], [_setAllowChangeSelfNameDecs, 18, "setAllowChangeSelfName"], [_decorator.bound, 2, "updateAllowChangeSelfName"], [_setAllowChatDecs, 18, "setAllowChat"], [_decorator.bound, 2, "updateAllowChat"], [_setAllowJoinWithMuteAudioDecs, 18, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "updateAllowJoinWithMuteAudio"], [_setAllowShareScreenDecs, 18, "setAllowShareScreen"], [_decorator.bound, 2, "updateAllowShareScreen"], [_setAllowUnmuteSelfVideoDecs, 18, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "updateAllowUnmuteSelfVideo"], [_setAllowUnmuteSelfAudioDecs, 18, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "updateAllowUnmuteSelfAudio"], [_setLockRoomEnabledDecs, 18, "setLockRoomEnabled"], [_decorator.bound, 2, "updateLockRoomEnabled"], [_setWaitingRoomEnabledDecs, 18, "setWaitingRoomEnabled"], [_mobx.action, 2, "setHasStartCloudRecordingPermission"], [_mobx.action, 2, "setHasGetLiveStreamingUrlPermission"], [_mobx.action, 2, "setHasStopLiveStreamingPermission"], [_mobx.action, 2, "setHasStartLiveStreamingPermission"], [_decorator.bound, 2, "updateWaitingRoomEnabled"], [_handleMoreClickDecs, 18, "handleMoreClick"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getCoordinate"]], []).e, 46);
1230
+ _init_shareWithAudio = _applyDecs$e[0];
1231
+ _init_shareAudioProcessingChannel = _applyDecs$e[1];
1232
+ _init_currentShareId = _applyDecs$e[2];
1233
+ _init_currentShareType = _applyDecs$e[3];
1234
+ _init_isMuteAudio = _applyDecs$e[4];
1235
+ _init_isMuteVideo = _applyDecs$e[5];
1236
+ _init_currentCameraId = _applyDecs$e[6];
1237
+ _init_currentMicrophoneId = _applyDecs$e[7];
1238
+ _init_currentSpeakerId = _applyDecs$e[8];
1239
+ _init_cameraList = _applyDecs$e[9];
1240
+ _init_microphoneList = _applyDecs$e[10];
1241
+ _init_speakerList = _applyDecs$e[11];
1242
+ _init_localAudioVolume = _applyDecs$e[12];
1243
+ _init_connectType = _applyDecs$e[13];
1244
+ _init_cloudRecordingState = _applyDecs$e[14];
1245
+ _init_localUserRole = _applyDecs$e[15];
1246
+ _init_allowChangeSelfName = _applyDecs$e[16];
1247
+ _init_allowChat = _applyDecs$e[17];
1248
+ _init_allowJoinWithMuteAudio = _applyDecs$e[18];
1249
+ _init_allowShareScreen = _applyDecs$e[19];
1250
+ _init_allowUnmuteSelfVideo = _applyDecs$e[20];
1251
+ _init_allowUnmuteSelfAudio = _applyDecs$e[21];
1252
+ _init_isLockRoomEnabled = _applyDecs$e[22];
1253
+ _init_isWaitingRoomEnabled = _applyDecs$e[23];
1254
+ _init_showSecurity = _applyDecs$e[24];
1255
+ _init_isHost = _applyDecs$e[25];
1256
+ _init_hasEnableStartScreenSharePermission = _applyDecs$e[26];
1257
+ _init_hasPermissionToControlAllowSendAll = _applyDecs$e[27];
1258
+ _init_hasEnableStartAudioPermission = _applyDecs$e[28];
1259
+ _init_hasEnableChangeNamePermission = _applyDecs$e[29];
1260
+ _init_hasEnableStartVideoPermission = _applyDecs$e[30];
1261
+ _init_hasLockRoomPermission = _applyDecs$e[31];
1262
+ _init_roomDuration = _applyDecs$e[32];
1263
+ _init_startTime = _applyDecs$e[33];
1264
+ _init_videoSteamingUrl = _applyDecs$e[34];
1265
+ _init_videoStreamingKey = _applyDecs$e[35];
1266
+ _init_playUrl = _applyDecs$e[36];
1267
+ _init_isStartError = _applyDecs$e[37];
1268
+ _init_liveStreamingState = _applyDecs$e[38];
1269
+ _init_hasStartCloudRecordingPermission = _applyDecs$e[39];
1270
+ _init_hasGetLiveStreamingUrlPermission = _applyDecs$e[40];
1271
+ _init_hasStopLiveStreamingPermission = _applyDecs$e[41];
1272
+ _init_hasStartLiveStreamingPermission = _applyDecs$e[42];
1273
+ _init_allApplicationWindows = _applyDecs$e[43];
1274
+ _init_phoneMicEnabled = _applyDecs$e[44];
1275
+ _initProto = _applyDecs$e[45];