fcr-ui-scene-mobile 3.4.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 (281) hide show
  1. package/lib/assets/ground_glass_bg.png +0 -0
  2. package/lib/base.d.ts +11 -0
  3. package/lib/base.js +39 -0
  4. package/lib/common/device-store.d.ts +86 -0
  5. package/lib/common/device-store.js +642 -0
  6. package/lib/common/device-stream-store.d.ts +26 -0
  7. package/lib/common/device-stream-store.js +298 -0
  8. package/lib/common/event-store.d.ts +124 -0
  9. package/lib/common/event-store.js +249 -0
  10. package/lib/common/global-context.d.ts +11 -0
  11. package/lib/common/global-context.js +9 -0
  12. package/lib/common/member-list-data-source.d.ts +28 -0
  13. package/lib/common/member-list-data-source.js +305 -0
  14. package/lib/common/participant-store.d.ts +195 -0
  15. package/lib/common/participant-store.js +1577 -0
  16. package/lib/common/security-store.d.ts +119 -0
  17. package/lib/common/security-store.js +948 -0
  18. package/lib/common/setting-store.d.ts +181 -0
  19. package/lib/common/setting-store.js +797 -0
  20. package/lib/common/type.d.ts +73 -0
  21. package/lib/common/type.js +22 -0
  22. package/lib/config/default-config.d.ts +32 -0
  23. package/lib/config/default-config.js +39 -0
  24. package/lib/config/setting-config.d.ts +16 -0
  25. package/lib/config/setting-config.js +17 -0
  26. package/lib/creator.d.ts +10 -0
  27. package/lib/creator.js +49 -0
  28. package/lib/global.d.ts +8 -0
  29. package/lib/hooks/meeting-time.d.ts +15 -0
  30. package/lib/hooks/meeting-time.js +92 -0
  31. package/lib/hooks/useIsNodePresent.d.ts +4 -0
  32. package/lib/hooks/useIsNodePresent.js +53 -0
  33. package/lib/hooks/useOnRefMount.d.ts +2 -0
  34. package/lib/hooks/useOnRefMount.js +27 -0
  35. package/lib/index.d.ts +6 -0
  36. package/lib/index.js +50 -0
  37. package/lib/mobile-global.css +28 -0
  38. package/lib/modules/action-bar/bottom-icons.d.ts +17 -0
  39. package/lib/modules/action-bar/bottom-icons.js +160 -0
  40. package/lib/modules/action-bar/context.d.ts +2 -0
  41. package/lib/modules/action-bar/context.js +9 -0
  42. package/lib/modules/action-bar/index.css +33 -0
  43. package/lib/modules/action-bar/index.d.ts +27 -0
  44. package/lib/modules/action-bar/index.js +46 -0
  45. package/lib/modules/action-bar/member-list-popup/attendee/index.css +130 -0
  46. package/lib/modules/action-bar/member-list-popup/attendee/index.d.ts +19 -0
  47. package/lib/modules/action-bar/member-list-popup/attendee/index.js +252 -0
  48. package/lib/modules/action-bar/member-list-popup/attendee/list.d.ts +1 -0
  49. package/lib/modules/action-bar/member-list-popup/attendee/list.js +82 -0
  50. package/lib/modules/action-bar/member-list-popup/index.css +35 -0
  51. package/lib/modules/action-bar/member-list-popup/index.d.ts +7 -0
  52. package/lib/modules/action-bar/member-list-popup/index.js +40 -0
  53. package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
  54. package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.d.ts +12 -0
  55. package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.js +58 -0
  56. package/lib/modules/action-bar/more-popup/index.css +71 -0
  57. package/lib/modules/action-bar/more-popup/index.d.ts +2 -0
  58. package/lib/modules/action-bar/more-popup/index.js +126 -0
  59. package/lib/modules/action-bar/store.d.ts +196 -0
  60. package/lib/modules/action-bar/store.js +1425 -0
  61. package/lib/modules/action-bar/type.d.ts +6 -0
  62. package/lib/modules/action-bar/type.js +13 -0
  63. package/lib/modules/action-bar/view.d.ts +2 -0
  64. package/lib/modules/action-bar/view.js +75 -0
  65. package/lib/modules/audio-stream/ index.d.ts +19 -0
  66. package/lib/modules/audio-stream/ index.js +109 -0
  67. package/lib/modules/audio-stream/index.d.ts +25 -0
  68. package/lib/modules/audio-stream/index.js +135 -0
  69. package/lib/modules/chat/chat-bar/index.css +97 -0
  70. package/lib/modules/chat/chat-bar/index.d.ts +12 -0
  71. package/lib/modules/chat/chat-bar/index.js +129 -0
  72. package/lib/modules/chat/chat-notification/index.css +71 -0
  73. package/lib/modules/chat/chat-notification/index.d.ts +3 -0
  74. package/lib/modules/chat/chat-notification/index.js +75 -0
  75. package/lib/modules/chat/chat-select/index.css +183 -0
  76. package/lib/modules/chat/chat-select/index.d.ts +12 -0
  77. package/lib/modules/chat/chat-select/index.js +223 -0
  78. package/lib/modules/chat/contex.d.ts +2 -0
  79. package/lib/modules/chat/contex.js +9 -0
  80. package/lib/modules/chat/demo-wrapper.d.ts +1 -0
  81. package/lib/modules/chat/demo-wrapper.js +42 -0
  82. package/lib/modules/chat/index.css +108 -0
  83. package/lib/modules/chat/index.d.ts +28 -0
  84. package/lib/modules/chat/index.dev.d.ts +1 -0
  85. package/lib/modules/chat/index.dev.js +58 -0
  86. package/lib/modules/chat/index.js +208 -0
  87. package/lib/modules/chat/message-list.d.ts +22 -0
  88. package/lib/modules/chat/message-list.js +617 -0
  89. package/lib/modules/chat/mock.d.ts +2 -0
  90. package/lib/modules/chat/mock.js +283 -0
  91. package/lib/modules/chat/store.d.ts +183 -0
  92. package/lib/modules/chat/store.js +1101 -0
  93. package/lib/modules/chat/util.d.ts +6 -0
  94. package/lib/modules/chat/util.js +69 -0
  95. package/lib/modules/chat/view.d.ts +11 -0
  96. package/lib/modules/chat/view.js +414 -0
  97. package/lib/modules/layout/bottom-drawer/index.css +34 -0
  98. package/lib/modules/layout/bottom-drawer/index.d.ts +3 -0
  99. package/lib/modules/layout/bottom-drawer/index.js +129 -0
  100. package/lib/modules/layout/components/Layout.d.ts +1 -0
  101. package/lib/modules/layout/components/Layout.js +98 -0
  102. package/lib/modules/layout/components/equip-request-popup/index.css +30 -0
  103. package/lib/modules/layout/components/equip-request-popup/index.d.ts +3 -0
  104. package/lib/modules/layout/components/equip-request-popup/index.js +78 -0
  105. package/lib/modules/layout/components/index.css +78 -0
  106. package/lib/modules/layout/components/index.d.ts +2 -0
  107. package/lib/modules/layout/components/index.js +25 -0
  108. package/lib/modules/layout/context.d.ts +2 -0
  109. package/lib/modules/layout/context.js +9 -0
  110. package/lib/modules/layout/drawer-header/index.css +27 -0
  111. package/lib/modules/layout/drawer-header/index.d.ts +10 -0
  112. package/lib/modules/layout/drawer-header/index.js +54 -0
  113. package/lib/modules/layout/index.css +22 -0
  114. package/lib/modules/layout/index.d.ts +8 -0
  115. package/lib/modules/layout/index.js +47 -0
  116. package/lib/modules/layout/store.d.ts +59 -0
  117. package/lib/modules/layout/store.js +379 -0
  118. package/lib/modules/layout/type.d.ts +65 -0
  119. package/lib/modules/layout/type.js +52 -0
  120. package/lib/modules/layout/view.d.ts +2 -0
  121. package/lib/modules/layout/view.js +10 -0
  122. package/lib/modules/member-layout/context.d.ts +2 -0
  123. package/lib/modules/member-layout/context.js +9 -0
  124. package/lib/modules/member-layout/data.d.ts +2 -0
  125. package/lib/modules/member-layout/data.js +304 -0
  126. package/lib/modules/member-layout/grid/index.css +98 -0
  127. package/lib/modules/member-layout/grid/index.d.ts +21 -0
  128. package/lib/modules/member-layout/grid/index.js +316 -0
  129. package/lib/modules/member-layout/index.css +88 -0
  130. package/lib/modules/member-layout/index.d.ts +8 -0
  131. package/lib/modules/member-layout/index.js +45 -0
  132. package/lib/modules/member-layout/share-toast/index.css +30 -0
  133. package/lib/modules/member-layout/share-toast/index.d.ts +5 -0
  134. package/lib/modules/member-layout/share-toast/index.js +43 -0
  135. package/lib/modules/member-layout/speaker/index.css +30 -0
  136. package/lib/modules/member-layout/speaker/index.d.ts +9 -0
  137. package/lib/modules/member-layout/speaker/index.js +28 -0
  138. package/lib/modules/member-layout/store.d.ts +70 -0
  139. package/lib/modules/member-layout/store.js +479 -0
  140. package/lib/modules/member-layout/user/index.css +121 -0
  141. package/lib/modules/member-layout/user/index.d.ts +34 -0
  142. package/lib/modules/member-layout/user/index.js +355 -0
  143. package/lib/modules/member-layout/user/types.d.ts +16 -0
  144. package/lib/modules/member-layout/user/types.js +6 -0
  145. package/lib/modules/member-layout/view.d.ts +2 -0
  146. package/lib/modules/member-layout/view.js +225 -0
  147. package/lib/modules/state-bar/context.d.ts +2 -0
  148. package/lib/modules/state-bar/context.js +9 -0
  149. package/lib/modules/state-bar/index.css +79 -0
  150. package/lib/modules/state-bar/index.d.ts +17 -0
  151. package/lib/modules/state-bar/index.js +55 -0
  152. package/lib/modules/state-bar/leaving-room/index.css +14 -0
  153. package/lib/modules/state-bar/leaving-room/index.d.ts +7 -0
  154. package/lib/modules/state-bar/leaving-room/index.js +38 -0
  155. package/lib/modules/state-bar/meeting-detail/index.css +72 -0
  156. package/lib/modules/state-bar/meeting-detail/index.d.ts +2 -0
  157. package/lib/modules/state-bar/meeting-detail/index.js +59 -0
  158. package/lib/modules/state-bar/meeting-detail/meeting-info/copy.d.ts +4 -0
  159. package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +81 -0
  160. package/lib/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
  161. package/lib/modules/state-bar/meeting-detail/meeting-info/index.d.ts +2 -0
  162. package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +188 -0
  163. package/lib/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
  164. package/lib/modules/state-bar/meeting-detail/net-quality/index.d.ts +2 -0
  165. package/lib/modules/state-bar/meeting-detail/net-quality/index.js +87 -0
  166. package/lib/modules/state-bar/store.d.ts +76 -0
  167. package/lib/modules/state-bar/store.js +561 -0
  168. package/lib/modules/state-bar/view.d.ts +7 -0
  169. package/lib/modules/state-bar/view.js +215 -0
  170. package/lib/modules/whiteboard/app.d.ts +2 -0
  171. package/lib/modules/whiteboard/app.js +41 -0
  172. package/lib/modules/whiteboard/components/control-bar/index.css +53 -0
  173. package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
  174. package/lib/modules/whiteboard/components/control-bar/index.js +156 -0
  175. package/lib/modules/whiteboard/components/control-bar/store.d.ts +35 -0
  176. package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
  177. package/lib/modules/whiteboard/components/loading/index.css +76 -0
  178. package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
  179. package/lib/modules/whiteboard/components/loading/index.js +68 -0
  180. package/lib/modules/whiteboard/components/loading/loading.png +0 -0
  181. package/lib/modules/whiteboard/components/multi-window/index.css +65 -0
  182. package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
  183. package/lib/modules/whiteboard/components/multi-window/index.js +39 -0
  184. package/lib/modules/whiteboard/components/pagination/index.css +228 -0
  185. package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
  186. package/lib/modules/whiteboard/components/pagination/index.js +163 -0
  187. package/lib/modules/whiteboard/components/pagination/store.d.ts +18 -0
  188. package/lib/modules/whiteboard/components/pagination/store.js +17 -0
  189. package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
  190. package/lib/modules/whiteboard/components/progress/index.js +43 -0
  191. package/lib/modules/whiteboard/components/progress/style.css +52 -0
  192. package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
  193. package/lib/modules/whiteboard/components/scene-pagination.js +30 -0
  194. package/lib/modules/whiteboard/components/switch-theme/index.css +98 -0
  195. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +3 -0
  196. package/lib/modules/whiteboard/components/switch-theme/index.js +89 -0
  197. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +9 -0
  198. package/lib/modules/whiteboard/components/switch-theme/item.js +53 -0
  199. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +4 -0
  200. package/lib/modules/whiteboard/components/switch-theme/libs.js +29 -0
  201. package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
  202. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
  203. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +38 -0
  204. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
  205. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +107 -0
  206. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
  207. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +59 -0
  208. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
  209. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
  210. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
  211. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +89 -0
  212. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
  213. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +63 -0
  214. package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
  215. package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
  216. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  217. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +39 -0
  218. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
  219. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
  220. package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
  221. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +134 -0
  222. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
  223. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +106 -0
  224. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
  225. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +168 -0
  226. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
  227. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
  228. package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
  229. package/lib/modules/whiteboard/components/toolbar/index.js +183 -0
  230. package/lib/modules/whiteboard/components/toolbar/store.d.ts +51 -0
  231. package/lib/modules/whiteboard/components/toolbar/store.js +248 -0
  232. package/lib/modules/whiteboard/context.d.ts +69 -0
  233. package/lib/modules/whiteboard/context.js +36 -0
  234. package/lib/modules/whiteboard/index.d.ts +119 -0
  235. package/lib/modules/whiteboard/index.js +1134 -0
  236. package/lib/modules/whiteboard/style.css +143 -0
  237. package/lib/modules/whiteboard/type.d.ts +94 -0
  238. package/lib/modules/whiteboard/type.js +89 -0
  239. package/lib/modules/whiteboard/utils.d.ts +12 -0
  240. package/lib/modules/whiteboard/utils.js +36 -0
  241. package/lib/plugins/css-preset-plugin.d.ts +1 -0
  242. package/lib/plugins/css-preset-plugin.js +29 -0
  243. package/lib/plugins/module-dev-plugin.d.ts +12 -0
  244. package/lib/plugins/module-dev-plugin.js +183 -0
  245. package/lib/plugins/multi-lang-plugin.d.ts +1 -0
  246. package/lib/plugins/multi-lang-plugin.js +19 -0
  247. package/lib/plugins/rtm-plugin.d.ts +1 -0
  248. package/lib/plugins/rtm-plugin.js +5 -0
  249. package/lib/plugins/web-rtc-plugin.d.ts +1 -0
  250. package/lib/plugins/web-rtc-plugin.js +5 -0
  251. package/lib/translations/enUS.d.ts +1855 -0
  252. package/lib/translations/enUS.js +1895 -0
  253. package/lib/translations/zhCN.d.ts +1852 -0
  254. package/lib/translations/zhCN.js +1892 -0
  255. package/lib/type.d.ts +121 -0
  256. package/lib/type.js +46 -0
  257. package/lib/ui-manager.d.ts +32 -0
  258. package/lib/ui-manager.js +426 -0
  259. package/lib/ui-scene.d.ts +14 -0
  260. package/lib/ui-scene.js +141 -0
  261. package/lib/utilities/board-context.d.ts +4 -0
  262. package/lib/utilities/board-context.js +12 -0
  263. package/lib/utilities/constant.d.ts +286 -0
  264. package/lib/utilities/constant.js +271 -0
  265. package/lib/utilities/copyText.d.ts +2 -0
  266. package/lib/utilities/copyText.js +43 -0
  267. package/lib/utilities/extract.d.ts +5 -0
  268. package/lib/utilities/extract.js +117 -0
  269. package/lib/utilities/hooks.d.ts +14 -0
  270. package/lib/utilities/hooks.js +101 -0
  271. package/lib/utilities/mute-action.d.ts +4 -0
  272. package/lib/utilities/mute-action.js +48 -0
  273. package/lib/utilities/parameters.d.ts +7 -0
  274. package/lib/utilities/parameters.js +20 -0
  275. package/lib/utilities/regex.d.ts +1 -0
  276. package/lib/utilities/regex.js +14 -0
  277. package/lib/utilities/tools.d.ts +27 -0
  278. package/lib/utilities/tools.js +169 -0
  279. package/lib/utilities/useNamespace.d.ts +15 -0
  280. package/lib/utilities/useNamespace.js +66 -0
  281. package/package.json +63 -0
@@ -0,0 +1,1425 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.name.js");
11
+ require("core-js/modules/es.object.create.js");
12
+ require("core-js/modules/es.object.define-properties.js");
13
+ require("core-js/modules/es.object.define-property.js");
14
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
15
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
16
+ require("core-js/modules/es.object.keys.js");
17
+ require("core-js/modules/esnext.function.metadata.js");
18
+ require("core-js/modules/esnext.symbol.metadata.js");
19
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
20
+ var _typeof = require("@babel/runtime/helpers/typeof");
21
+ Object.defineProperty(exports, "__esModule", {
22
+ value: true
23
+ });
24
+ exports["default"] = exports.MoreMenuType = exports.AudioConnectType = void 0;
25
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
26
+ require("core-js/modules/es.array.filter.js");
27
+ require("core-js/modules/es.array.find.js");
28
+ require("core-js/modules/es.array.find-index.js");
29
+ require("core-js/modules/es.array.for-each.js");
30
+ require("core-js/modules/es.array.includes.js");
31
+ require("core-js/modules/es.array.iterator.js");
32
+ require("core-js/modules/es.array.map.js");
33
+ require("core-js/modules/es.array.push.js");
34
+ require("core-js/modules/es.array.reduce.js");
35
+ require("core-js/modules/es.array.some.js");
36
+ require("core-js/modules/es.array.splice.js");
37
+ require("core-js/modules/es.date.to-string.js");
38
+ require("core-js/modules/es.function.bind.js");
39
+ require("core-js/modules/es.map.js");
40
+ require("core-js/modules/es.number.constructor.js");
41
+ require("core-js/modules/es.object.to-string.js");
42
+ require("core-js/modules/es.object.values.js");
43
+ require("core-js/modules/es.string.includes.js");
44
+ require("core-js/modules/es.string.iterator.js");
45
+ require("core-js/modules/es.weak-map.js");
46
+ require("core-js/modules/esnext.async-iterator.filter.js");
47
+ require("core-js/modules/esnext.async-iterator.find.js");
48
+ require("core-js/modules/esnext.async-iterator.for-each.js");
49
+ require("core-js/modules/esnext.async-iterator.map.js");
50
+ require("core-js/modules/esnext.async-iterator.reduce.js");
51
+ require("core-js/modules/esnext.async-iterator.some.js");
52
+ require("core-js/modules/esnext.iterator.constructor.js");
53
+ require("core-js/modules/esnext.iterator.filter.js");
54
+ require("core-js/modules/esnext.iterator.find.js");
55
+ require("core-js/modules/esnext.iterator.for-each.js");
56
+ require("core-js/modules/esnext.iterator.map.js");
57
+ require("core-js/modules/esnext.iterator.reduce.js");
58
+ require("core-js/modules/esnext.iterator.some.js");
59
+ require("core-js/modules/esnext.map.delete-all.js");
60
+ require("core-js/modules/esnext.map.emplace.js");
61
+ require("core-js/modules/esnext.map.every.js");
62
+ require("core-js/modules/esnext.map.filter.js");
63
+ require("core-js/modules/esnext.map.find.js");
64
+ require("core-js/modules/esnext.map.find-key.js");
65
+ require("core-js/modules/esnext.map.includes.js");
66
+ require("core-js/modules/esnext.map.key-of.js");
67
+ require("core-js/modules/esnext.map.map-keys.js");
68
+ require("core-js/modules/esnext.map.map-values.js");
69
+ require("core-js/modules/esnext.map.merge.js");
70
+ require("core-js/modules/esnext.map.reduce.js");
71
+ require("core-js/modules/esnext.map.some.js");
72
+ require("core-js/modules/esnext.map.update.js");
73
+ require("core-js/modules/esnext.weak-map.delete-all.js");
74
+ require("core-js/modules/esnext.weak-map.emplace.js");
75
+ require("core-js/modules/web.dom-collections.for-each.js");
76
+ require("core-js/modules/web.dom-collections.iterator.js");
77
+ require("core-js/modules/web.timers.js");
78
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
79
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
80
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
81
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
82
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
83
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
84
+ var _logger = require("agora-foundation/lib/logger");
85
+ var _fcrCore = require("fcr-core");
86
+ var _mobx = require("mobx");
87
+ var _type = require("fcr-core/lib/type");
88
+ var _decorator = require("agora-foundation/lib/decorator");
89
+ var _constant = require("../../utilities/constant");
90
+ var _type2 = require("../../type");
91
+ var _type3 = require("./type");
92
+ var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
93
+ var _type4 = require("agora-rte-sdk/lib/core/scene/type");
94
+ var _type5 = require("agora-rte-sdk/lib/type");
95
+ var _i18n = require("agora-ui-foundation/lib/i18n");
96
+ var _type6 = require("fcr-core/lib/room-control/type");
97
+ var _type7 = require("fcr-core/lib/room-control/privilege-control/type");
98
+ var _ActionBarStore;
99
+ var _initProto, _init_users, _init_newMessageTooltipVisible, _init_newMessageCount, _init_latestMessage, _init_totalUser, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_localUserRole, _init_localUser, _init_connectionSettingVisible, _init_connectType, _init_folded, _init_boardOwnerUser, _init_hasScreenShare, _init_showArrow, _init_phoneMicEnabled, _init_isNewWaitingRoomUserEnter, _init_chatTabIndex, _init_popoverOpened, _init_participantsPopoverOpened, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _assignHostDecs, _setPopoverOpenedDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _getWaitingRoomUserCountDecs, _handleRemoteWaitingUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleNewMessageEventDecs, _init__handleNewMessageEvent, _handleChatVisibleDecs, _handlerTraceScreenCaptureStateUpdateDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _handleMicrophoneChangedDecs, _ref;
100
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
101
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
102
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
103
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
104
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
105
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
106
+ 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"); }
107
+ 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)]; } }; }
108
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
109
+ 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); }
110
+ 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; }
111
+ 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; }
112
+ var MoreMenuType = exports.MoreMenuType = /*#__PURE__*/function (MoreMenuType) {
113
+ MoreMenuType[MoreMenuType["DEFAULT"] = 0] = "DEFAULT";
114
+ MoreMenuType[MoreMenuType["SECURITY"] = 1] = "SECURITY";
115
+ return MoreMenuType;
116
+ }({});
117
+ var AudioConnectType = exports.AudioConnectType = /*#__PURE__*/function (AudioConnectType) {
118
+ AudioConnectType[AudioConnectType["NONE"] = 0] = "NONE";
119
+ AudioConnectType[AudioConnectType["COMPUTER"] = 1] = "COMPUTER";
120
+ AudioConnectType[AudioConnectType["PHONE"] = 2] = "PHONE";
121
+ return AudioConnectType;
122
+ }({});
123
+ var _A = /*#__PURE__*/new WeakMap();
124
+ var _B = /*#__PURE__*/new WeakMap();
125
+ var _C = /*#__PURE__*/new WeakMap();
126
+ var _D = /*#__PURE__*/new WeakMap();
127
+ var _E = /*#__PURE__*/new WeakMap();
128
+ var _F = /*#__PURE__*/new WeakMap();
129
+ var _G = /*#__PURE__*/new WeakMap();
130
+ var _H = /*#__PURE__*/new WeakMap();
131
+ var _I = /*#__PURE__*/new WeakMap();
132
+ var _J = /*#__PURE__*/new WeakMap();
133
+ var _K = /*#__PURE__*/new WeakMap();
134
+ var _L = /*#__PURE__*/new WeakMap();
135
+ var _M = /*#__PURE__*/new WeakMap();
136
+ var _N = /*#__PURE__*/new WeakMap();
137
+ var _O = /*#__PURE__*/new WeakMap();
138
+ var _P = /*#__PURE__*/new WeakMap();
139
+ var _Q = /*#__PURE__*/new WeakMap();
140
+ var _R = /*#__PURE__*/new WeakMap();
141
+ var _S = /*#__PURE__*/new WeakMap();
142
+ var _T = /*#__PURE__*/new WeakMap();
143
+ var _U = /*#__PURE__*/new WeakMap();
144
+ var _V = /*#__PURE__*/new WeakMap();
145
+ _ref = (_pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
146
+ leading: true
147
+ })], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
148
+ leading: true
149
+ })], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
150
+ leading: true
151
+ })], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _assignHostDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _getWaitingRoomUserCountDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleNewMessageEventDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _handlerTraceScreenCaptureStateUpdateDecs = [_mobx.action, _mobx.action.bound], _operateWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleStreamsAddedOrUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], "logger");
152
+ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
153
+ function ActionBarStore(args) {
154
+ var _this = this;
155
+ (0, _classCallCheck2["default"])(this, ActionBarStore);
156
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
157
+ (0, _defineProperty2["default"])(this, "_disposers", []);
158
+ (0, _defineProperty2["default"])(this, "_chatRenderAt", 'aside');
159
+ (0, _defineProperty2["default"])(this, "_participantsRenderAt", 'aside');
160
+ (0, _defineProperty2["default"])(this, "_screenVideoTrack", null);
161
+ (0, _defineProperty2["default"])(this, "_userObserver", {
162
+ onRemoteUsersJoined: this._handleRemoteUsersJoined,
163
+ onRemoteUsersLeft: this._handleRemoteUsersLeft,
164
+ onUserInfoUpdated: this._handleUserInfoUpdated,
165
+ onAllUserCountUpdated: this._handleAllUserCountUpdated
166
+ });
167
+ (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
168
+ onRemoteUsersJoined: this._handleRemoteWaitingUserJoined,
169
+ onRemoteUsersLeft: this._handleRemoteWaitingUserLeft
170
+ });
171
+ (0, _defineProperty2["default"])(this, "_roomObserver", {
172
+ onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated,
173
+ onCloudRecordingStateUpdated: this._handleCloudRecordingStateUpdated
174
+ });
175
+ (0, _defineProperty2["default"])(this, "_uiEventObserver", {
176
+ onEvent: this._onEvent
177
+ });
178
+ (0, _defineProperty2["default"])(this, "_streamObserver", {
179
+ onStreamsAdded: this._handleStreamsAddedOrUpdated.bind(this),
180
+ onStreamsUpdated: this._handleStreamsAddedOrUpdated.bind(this),
181
+ onStreamsRemoved: this._handleStreamsAddedOrUpdated.bind(this)
182
+ });
183
+ (0, _defineProperty2["default"])(this, "_deviceObserver", {
184
+ onMicrophoneChanged: this._handleMicrophoneChanged.bind(this)
185
+ });
186
+ (0, _defineProperty2["default"])(this, "_openedDialogIdMap", new Map());
187
+ (0, _defineProperty2["default"])(this, "_participantVisible", false);
188
+ (0, _defineProperty2["default"])(this, "_chatVisible", false);
189
+ (0, _defineProperty2["default"])(this, "_liveStreamingDialogId", '');
190
+ (0, _defineProperty2["default"])(this, "_newMessageTooltipTimer", null);
191
+ (0, _defineProperty2["default"])(this, "_hideBarArrowTimer", null);
192
+ (0, _defineProperty2["default"])(this, "_sharingOwnerUser", undefined);
193
+ (0, _defineProperty2["default"])(this, "_participantTab", _constant.RoomType.MAIN_ROOM);
194
+ _classPrivateFieldInitSpec(this, _A, _init_users(this));
195
+ _classPrivateFieldInitSpec(this, _B, _init_newMessageTooltipVisible(this, false));
196
+ _classPrivateFieldInitSpec(this, _C, _init_newMessageCount(this, (0, _defineProperty2["default"])({}, _constant.RoomType.MAIN_ROOM, 0)));
197
+ _classPrivateFieldInitSpec(this, _D, _init_latestMessage(this));
198
+ _classPrivateFieldInitSpec(this, _E, _init_totalUser(this));
199
+ _classPrivateFieldInitSpec(this, _F, _init_totalWaitingRoomUser(this, 0));
200
+ _classPrivateFieldInitSpec(this, _G, _init_liveStreamingState(this));
201
+ _classPrivateFieldInitSpec(this, _H, _init_currentMenuIs(this, MoreMenuType.DEFAULT));
202
+ _classPrivateFieldInitSpec(this, _I, _init_cloudRecordingState(this));
203
+ _classPrivateFieldInitSpec(this, _J, _init_localUserRole(this));
204
+ _classPrivateFieldInitSpec(this, _K, _init_localUser(this));
205
+ _classPrivateFieldInitSpec(this, _L, _init_connectionSettingVisible(this, false));
206
+ _classPrivateFieldInitSpec(this, _M, _init_connectType(this, _type3.ConnectType.COMPUTER));
207
+ _classPrivateFieldInitSpec(this, _N, _init_folded(this, false));
208
+ _classPrivateFieldInitSpec(this, _O, _init_boardOwnerUser(this, null));
209
+ _classPrivateFieldInitSpec(this, _P, _init_hasScreenShare(this, false));
210
+ _classPrivateFieldInitSpec(this, _Q, _init_showArrow(this, false));
211
+ _classPrivateFieldInitSpec(this, _R, _init_phoneMicEnabled(this, false));
212
+ _classPrivateFieldInitSpec(this, _S, _init_isNewWaitingRoomUserEnter(this, false));
213
+ _classPrivateFieldInitSpec(this, _T, _init_chatTabIndex(this, _constant.RoomType.MAIN_ROOM));
214
+ _classPrivateFieldInitSpec(this, _U, _init_popoverOpened(this, false));
215
+ _classPrivateFieldInitSpec(this, _V, _init_participantsPopoverOpened(this, false));
216
+ (0, _defineProperty2["default"])(this, "_handleNewMessageEvent", _init__handleNewMessageEvent(this, function (e) {
217
+ var _msgObj;
218
+ // if (this._chatVisible) return;
219
+ var msgObj = _objectSpread({}, _this.newMessageCount);
220
+ msgObj[e.type] = ((_msgObj = msgObj[e.type]) !== null && _msgObj !== void 0 ? _msgObj : 0) + Number(e.count);
221
+ _this.newMessageCount = _objectSpread({}, msgObj);
222
+ _this.latestMessage = e.latestMessage;
223
+ _this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
224
+ _this.showNewMessageTooltip();
225
+ _this._newMessageTooltipTimer = window.setTimeout(function () {
226
+ _this.hideNewMessageTooltip();
227
+ }, 4000);
228
+ }));
229
+ this._roomControl = args.roomControl;
230
+ this._userControl = args.userControl;
231
+ this._streamControl = args.streamControl;
232
+ this._uiEventStore = args.uiEventStore;
233
+ this._securityStore = args.securityStore;
234
+ this._deviceStore = args.deviceStore;
235
+ this._mediaControl = args.mediaControl;
236
+ this._deviceStreamStore = args.deviceStreamStore;
237
+ this.localUserRole = this._userControl.getLocalUser().userRole;
238
+ this.localUser = args.userControl.getLocalUser();
239
+ this.users = Object.values(this._userControl.getUsers());
240
+ this.liveStreamingState = this._roomControl.getLiveStreamingState();
241
+ this.cloudRecordingState = this._roomControl.getCloudRecordingState();
242
+ this.totalUser = this._userControl.getAllUserCount();
243
+ this._userControl.addObserver(this._userObserver);
244
+ this._roomControl.addObserver(this._roomObserver);
245
+ this._streamControl.addObserver(this._streamObserver);
246
+ this._uiEventStore.addObserver(this._uiEventObserver);
247
+ this._deviceStore.addObserver(this._deviceObserver);
248
+ this._observer = {
249
+ onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate.bind(this)
250
+ };
251
+ }
252
+ return (0, _createClass2["default"])(ActionBarStore, [{
253
+ key: "users",
254
+ get: function get() {
255
+ return _classPrivateFieldGet(_A, this);
256
+ },
257
+ set: function set(v) {
258
+ _classPrivateFieldSet(_A, this, v);
259
+ }
260
+ }, {
261
+ key: "newMessageTooltipVisible",
262
+ get: function get() {
263
+ return _classPrivateFieldGet(_B, this);
264
+ },
265
+ set: function set(v) {
266
+ _classPrivateFieldSet(_B, this, v);
267
+ }
268
+ }, {
269
+ key: "newMessageCount",
270
+ get: function get() {
271
+ return _classPrivateFieldGet(_C, this);
272
+ },
273
+ set: function set(v) {
274
+ _classPrivateFieldSet(_C, this, v);
275
+ }
276
+ }, {
277
+ key: "latestMessage",
278
+ get: function get() {
279
+ return _classPrivateFieldGet(_D, this);
280
+ },
281
+ set: function set(v) {
282
+ _classPrivateFieldSet(_D, this, v);
283
+ }
284
+ }, {
285
+ key: "totalUser",
286
+ get: function get() {
287
+ return _classPrivateFieldGet(_E, this);
288
+ },
289
+ set: function set(v) {
290
+ _classPrivateFieldSet(_E, this, v);
291
+ }
292
+ }, {
293
+ key: "totalWaitingRoomUser",
294
+ get: function get() {
295
+ return _classPrivateFieldGet(_F, this);
296
+ },
297
+ set: function set(v) {
298
+ _classPrivateFieldSet(_F, this, v);
299
+ }
300
+ }, {
301
+ key: "liveStreamingState",
302
+ get: function get() {
303
+ return _classPrivateFieldGet(_G, this);
304
+ },
305
+ set: function set(v) {
306
+ _classPrivateFieldSet(_G, this, v);
307
+ }
308
+ }, {
309
+ key: "currentMenuIs",
310
+ get: function get() {
311
+ return _classPrivateFieldGet(_H, this);
312
+ },
313
+ set: function set(v) {
314
+ _classPrivateFieldSet(_H, this, v);
315
+ }
316
+ }, {
317
+ key: "cloudRecordingState",
318
+ get: function get() {
319
+ return _classPrivateFieldGet(_I, this);
320
+ },
321
+ set: function set(v) {
322
+ _classPrivateFieldSet(_I, this, v);
323
+ }
324
+ }, {
325
+ key: "localUserRole",
326
+ get: function get() {
327
+ return _classPrivateFieldGet(_J, this);
328
+ },
329
+ set: function set(v) {
330
+ _classPrivateFieldSet(_J, this, v);
331
+ }
332
+ }, {
333
+ key: "localUser",
334
+ get: function get() {
335
+ return _classPrivateFieldGet(_K, this);
336
+ },
337
+ set: function set(v) {
338
+ _classPrivateFieldSet(_K, this, v);
339
+ }
340
+ }, {
341
+ key: "connectionSettingVisible",
342
+ get: function get() {
343
+ return _classPrivateFieldGet(_L, this);
344
+ },
345
+ set: function set(v) {
346
+ _classPrivateFieldSet(_L, this, v);
347
+ }
348
+ }, {
349
+ key: "connectType",
350
+ get: function get() {
351
+ return _classPrivateFieldGet(_M, this);
352
+ },
353
+ set: function set(v) {
354
+ _classPrivateFieldSet(_M, this, v);
355
+ }
356
+ }, {
357
+ key: "folded",
358
+ get: function get() {
359
+ return _classPrivateFieldGet(_N, this);
360
+ },
361
+ set: function set(v) {
362
+ _classPrivateFieldSet(_N, this, v);
363
+ }
364
+ }, {
365
+ key: "boardOwnerUser",
366
+ get: function get() {
367
+ return _classPrivateFieldGet(_O, this);
368
+ },
369
+ set: function set(v) {
370
+ _classPrivateFieldSet(_O, this, v);
371
+ }
372
+ }, {
373
+ key: "hasScreenShare",
374
+ get: function get() {
375
+ return _classPrivateFieldGet(_P, this);
376
+ },
377
+ set: function set(v) {
378
+ _classPrivateFieldSet(_P, this, v);
379
+ }
380
+ }, {
381
+ key: "showArrow",
382
+ get: function get() {
383
+ return _classPrivateFieldGet(_Q, this);
384
+ },
385
+ set: function set(v) {
386
+ _classPrivateFieldSet(_Q, this, v);
387
+ }
388
+ }, {
389
+ key: "phoneMicEnabled",
390
+ get: function get() {
391
+ return _classPrivateFieldGet(_R, this);
392
+ },
393
+ set: function set(v) {
394
+ _classPrivateFieldSet(_R, this, v);
395
+ }
396
+ }, {
397
+ key: "isNewWaitingRoomUserEnter",
398
+ get: function get() {
399
+ return _classPrivateFieldGet(_S, this);
400
+ },
401
+ set: function set(v) {
402
+ _classPrivateFieldSet(_S, this, v);
403
+ }
404
+ }, {
405
+ key: "chatTabIndex",
406
+ get: function get() {
407
+ return _classPrivateFieldGet(_T, this);
408
+ },
409
+ set: function set(v) {
410
+ _classPrivateFieldSet(_T, this, v);
411
+ }
412
+ }, {
413
+ key: "popoverOpened",
414
+ get: function get() {
415
+ return _classPrivateFieldGet(_U, this);
416
+ },
417
+ set: function set(v) {
418
+ _classPrivateFieldSet(_U, this, v);
419
+ }
420
+ }, {
421
+ key: "participantsPopoverOpened",
422
+ get: function get() {
423
+ return _classPrivateFieldGet(_V, this);
424
+ },
425
+ set: function set(v) {
426
+ _classPrivateFieldSet(_V, this, v);
427
+ }
428
+ }, {
429
+ key: "remoteUsers",
430
+ get: function get() {
431
+ var _this2 = this;
432
+ return this.users.filter(function (u) {
433
+ return u.userId !== _this2._userControl.getLocalUser().userId;
434
+ });
435
+ }
436
+ }, {
437
+ key: "hasStartScreenSharePermission",
438
+ get: function get() {
439
+ return this._securityStore.hasStartScreenSharePermission();
440
+ }
441
+ }, {
442
+ key: "hasStartLiveStreamingPermission",
443
+ get: function get() {
444
+ return this._securityStore.hasStartLiveStreamingPermission();
445
+ }
446
+ }, {
447
+ key: "hasEnableStartAudioPermission",
448
+ get: function get() {
449
+ return this._securityStore.hasEnableStartAudioPermission();
450
+ }
451
+ }, {
452
+ key: "hasEnableChangeNamePermission",
453
+ get: function get() {
454
+ return this._securityStore.hasEnableChangeNamePermission();
455
+ }
456
+ }, {
457
+ key: "hasEnableStartVideoPermission",
458
+ get: function get() {
459
+ return this._securityStore.hasEnableStartVideoPermission();
460
+ }
461
+ }, {
462
+ key: "hasLockRoomPermission",
463
+ get: function get() {
464
+ return this._securityStore.hasLockRoomPermission();
465
+ }
466
+ }, {
467
+ key: "hasWaitingRoomPermission",
468
+ get: function get() {
469
+ return this._securityStore.hasWaitingRoomPermission();
470
+ }
471
+ }, {
472
+ key: "hasWatermarkEnablePermission",
473
+ get: function get() {
474
+ return this._securityStore.hasWatermarkEnablePermission();
475
+ }
476
+ }, {
477
+ key: "hasWatermarkDisablePermission",
478
+ get: function get() {
479
+ return this._securityStore.hasWatermarkDisablePermission();
480
+ }
481
+ }, {
482
+ key: "hasEnableStartSharePermission",
483
+ get: function get() {
484
+ return this._securityStore.hasEnableStartScreenSharePermission();
485
+ }
486
+ }, {
487
+ key: "hasAllowWriteBoardPermission",
488
+ get: function get() {
489
+ return this._securityStore.hasAllowWriteBoardPermission();
490
+ }
491
+ }, {
492
+ key: "hasCloseWriteBoardPermission",
493
+ get: function get() {
494
+ return this._securityStore.hasCloseBoardPermission();
495
+ }
496
+ }, {
497
+ key: "hasAllowScreenShareAndBoardPermission",
498
+ get: function get() {
499
+ return this._securityStore.hasAllowScreenShareAndBoardPermission();
500
+ }
501
+ }, {
502
+ key: "hasAllowChatPermission",
503
+ get: function get() {
504
+ return this._securityStore.hasPermissionToControlAllowSendAll();
505
+ }
506
+ }, {
507
+ key: "hasStartCloudRecordingPermission",
508
+ get: function get() {
509
+ return this._securityStore.hasStartCloudRecordingPermission();
510
+ }
511
+ }, {
512
+ key: "hasAssignHostBeforeLeavingPermission",
513
+ get: function get() {
514
+ return this._securityStore.hasAssignHostBeforeLeavingPermission(this.localUserRole);
515
+ }
516
+ }, {
517
+ key: "hasEndRoomPermission",
518
+ get: function get() {
519
+ return this._securityStore.hasEndRoomPermission();
520
+ }
521
+ }, {
522
+ key: "isScreenShareAndBoardEnabled",
523
+ get: function get() {
524
+ return this._securityStore.allowScreenShareAndBoard();
525
+ }
526
+ }, {
527
+ key: "isBoardWriteEnabled",
528
+ get: function get() {
529
+ return this._securityStore.allowBoardWrite();
530
+ }
531
+ }, {
532
+ key: "isWaterMarkEnabled",
533
+ get: function get() {
534
+ return this._securityStore.isWaterMarkEnabled();
535
+ }
536
+ }, {
537
+ key: "isMulti",
538
+ get: function get() {
539
+ return this._securityStore.isMulti();
540
+ }
541
+ }, {
542
+ key: "isPstnUser",
543
+ get: function get() {
544
+ var streams = this._streamControl.getStreamsByUserId(this._userControl.getLocalUser().userId);
545
+ var hasPstnStream = streams.some(function (_ref2) {
546
+ var connectorType = _ref2.connectorType;
547
+ return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
548
+ });
549
+ return hasPstnStream;
550
+ }
551
+ }, {
552
+ key: "cameraEnabled",
553
+ get: function get() {
554
+ return this._deviceStore.cameraEnabled;
555
+ }
556
+ }, {
557
+ key: "cameraId",
558
+ get: function get() {
559
+ return this._deviceStore.cameraId;
560
+ }
561
+ }, {
562
+ key: "cameraList",
563
+ get: function get() {
564
+ return this._deviceStore.cameraList;
565
+ }
566
+ }, {
567
+ key: "microphoneEnabled",
568
+ get: function get() {
569
+ return this._deviceStore.microphoneEnabled;
570
+ }
571
+ }, {
572
+ key: "microphoneId",
573
+ get: function get() {
574
+ return this._deviceStore.microphoneId;
575
+ }
576
+ }, {
577
+ key: "microphoneVolumeLevel",
578
+ get: function get() {
579
+ return this._deviceStore.microphoneVolumeLevel;
580
+ }
581
+ }, {
582
+ key: "microphoneList",
583
+ get: function get() {
584
+ return this._deviceStore.microphoneList;
585
+ }
586
+ }, {
587
+ key: "speakerId",
588
+ get: function get() {
589
+ return this._deviceStore.speakerId;
590
+ }
591
+ }, {
592
+ key: "speakerList",
593
+ get: function get() {
594
+ return this._deviceStore.speakerList;
595
+ }
596
+ }, {
597
+ key: "allNewMessage",
598
+ get: function get() {
599
+ return Object.values(this.newMessageCount).reduce(function (a, b) {
600
+ return a + b;
601
+ }, 0);
602
+ }
603
+ }, {
604
+ key: "isMainRoom",
605
+ get: function get() {
606
+ var _this$_roomControl$ge;
607
+ return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type6.FcrRoomType.Mainroom;
608
+ }
609
+ }, {
610
+ key: "pauseCloudRecording",
611
+ value: function pauseCloudRecording() {
612
+ this._roomControl.pauseCloudRecording();
613
+ }
614
+ }, {
615
+ key: "resumeCloudRecording",
616
+ value: function resumeCloudRecording() {
617
+ this._roomControl.resumeCloudRecording();
618
+ }
619
+ }, {
620
+ key: "stopCloudRecording",
621
+ value: function stopCloudRecording() {
622
+ this._roomControl.stopCloudRecording();
623
+ }
624
+ }, {
625
+ key: "startCloudRecording",
626
+ value: function startCloudRecording() {
627
+ this._roomControl.startCloudRecording({
628
+ audioProfile: _type.FcrCloudRecordingAudioProfile.DEFAULT,
629
+ videoEncoderConfig: {
630
+ dimensions: {
631
+ width: 1280,
632
+ height: 720
633
+ },
634
+ bitrate: 1200,
635
+ frameRate: 15
636
+ },
637
+ retryTimeout: 60
638
+ });
639
+ }
640
+ }, {
641
+ key: "toggleLayoutBarLock",
642
+ value: function toggleLayoutBarLock(payload) {
643
+ this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK, payload);
644
+ }
645
+ }, {
646
+ key: "showNewMessageTooltip",
647
+ value: function showNewMessageTooltip() {
648
+ this.newMessageTooltipVisible = true;
649
+ }
650
+ }, {
651
+ key: "hideNewMessageTooltip",
652
+ value: function hideNewMessageTooltip() {
653
+ this.newMessageTooltipVisible = false;
654
+ }
655
+ }, {
656
+ key: "switchMenu",
657
+ value: function switchMenu(value) {
658
+ this.currentMenuIs = value || MoreMenuType.DEFAULT;
659
+ }
660
+ }, {
661
+ key: "isLocked",
662
+ get: function get() {
663
+ return this._securityStore.isLockRoomEnabled();
664
+ }
665
+ }, {
666
+ key: "isWaitingRoomEnabled",
667
+ value: function isWaitingRoomEnabled() {
668
+ return this._securityStore.isWaitingRoomEnabled();
669
+ }
670
+ }, {
671
+ key: "enableCamera",
672
+ value: function enableCamera(enable) {
673
+ var _this$_roomControl$ge2;
674
+ if (((_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType) === _type6.FcrRoomType.Mainroom) {
675
+ this._deviceStreamStore.enableCameraWithStream(enable);
676
+ } else {
677
+ this._deviceStore.setCameraEnabled(enable);
678
+ }
679
+ }
680
+ }, {
681
+ key: "enableMicrophone",
682
+ value: function enableMicrophone(enable) {
683
+ this._deviceStreamStore.enableMicrophoneWithStream(enable);
684
+ }
685
+ }, {
686
+ key: "closeSpeaker",
687
+ value: function closeSpeaker() {
688
+ this._mediaControl.setSelectedSpeakerVolume(0);
689
+ }
690
+ }, {
691
+ key: "setAllowBoardWrite",
692
+ value: function () {
693
+ var _setAllowBoardWrite = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
694
+ var write;
695
+ return _regenerator["default"].wrap(function _callee$(_context) {
696
+ while (1) switch (_context.prev = _context.next) {
697
+ case 0:
698
+ write = this.isBoardWriteEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
699
+ return _context.abrupt("return", this._securityStore.setAllowWriteBoard(write));
700
+ case 2:
701
+ case "end":
702
+ return _context.stop();
703
+ }
704
+ }, _callee, this);
705
+ }));
706
+ function setAllowBoardWrite() {
707
+ return _setAllowBoardWrite.apply(this, arguments);
708
+ }
709
+ return setAllowBoardWrite;
710
+ }()
711
+ }, {
712
+ key: "setAllowScreenShare",
713
+ value: function setAllowScreenShare() {
714
+ var enable = this.isScreenShareAndBoardEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
715
+ return this._securityStore.allowShare(enable);
716
+ }
717
+ }, {
718
+ key: "closeBoard",
719
+ value: function closeBoard() {
720
+ this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
721
+ }
722
+ }, {
723
+ key: "assignHost",
724
+ value: function assignHost(user) {
725
+ this._userControl.updateRemoteUserRole(user.userId, _type.FcrUserRole.HOST);
726
+ this.leave();
727
+ }
728
+ }, {
729
+ key: "leave",
730
+ value: function leave() {
731
+ var _this$boardOwnerUser;
732
+ this._uiEventStore.exitRoom(_type2.FcrUIExitReason.LEAVE_ROOM, this.getRoomType());
733
+ if (((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userId) === this.localUser.userId) {
734
+ this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
735
+ }
736
+ }
737
+ }, {
738
+ key: "keepPhoneAudioConnection",
739
+ value: function keepPhoneAudioConnection() {
740
+ this._streamControl.splitAudioStream(this._userControl.getLocalUser().userId);
741
+ }
742
+ }, {
743
+ key: "setPopoverOpened",
744
+ value: function setPopoverOpened(isShow) {
745
+ this.popoverOpened = isShow;
746
+ }
747
+ }, {
748
+ key: "getRoomType",
749
+ value: function getRoomType() {
750
+ var _this$_roomControl$ge3;
751
+ return (_this$_roomControl$ge3 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge3 === void 0 ? void 0 : _this$_roomControl$ge3.roomType;
752
+ }
753
+ }, {
754
+ key: "end",
755
+ value: function end() {
756
+ this._roomControl.close();
757
+ }
758
+ }, {
759
+ key: "release",
760
+ value: function release() {
761
+ var _this$_screenVideoTra;
762
+ this._disposers.forEach(function (dispose) {
763
+ return dispose();
764
+ });
765
+ this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
766
+ (_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this._observer);
767
+ this._userControl.removeObserver(this._userObserver);
768
+ this._roomControl.removeObserver(this._roomObserver);
769
+ this._streamControl.removeObserver(this._streamObserver);
770
+ this._uiEventStore.removeObserver(this._uiEventObserver);
771
+ this._deviceStore.removeObserver(this._deviceObserver);
772
+ }
773
+ }, {
774
+ key: "allowJoinWithMuteAudio",
775
+ value: function allowJoinWithMuteAudio() {
776
+ return this._securityStore.allowJoinWithMuteAudio();
777
+ }
778
+ }, {
779
+ key: "setAllowJoinWithMuteAudio",
780
+ value: function setAllowJoinWithMuteAudio(enable) {
781
+ return this._securityStore.setAllowJoinWithMuteAudio(enable);
782
+ }
783
+ }, {
784
+ key: "isLockRoomEnabled",
785
+ value: function isLockRoomEnabled() {
786
+ return this._securityStore.isLockRoomEnabled();
787
+ }
788
+ }, {
789
+ key: "setLockRoomEnabled",
790
+ value: function setLockRoomEnabled(enable) {
791
+ return this._securityStore.setLockRoomEnabled(enable);
792
+ }
793
+ }, {
794
+ key: "setAllowShareScreen",
795
+ value: function setAllowShareScreen(enable) {
796
+ return this._securityStore.setAllowShareScreen(enable);
797
+ }
798
+ }, {
799
+ key: "allowShareScreen",
800
+ value: function allowShareScreen() {
801
+ return this._securityStore.allowShareScreen();
802
+ }
803
+ }, {
804
+ key: "allowWriteBoard",
805
+ value: function allowWriteBoard() {
806
+ return this._securityStore.hasAllowWriteBoardPermission();
807
+ }
808
+ }, {
809
+ key: "allowChat",
810
+ value: function allowChat() {
811
+ return this._securityStore.allowChat();
812
+ }
813
+ }, {
814
+ key: "setAllowChat",
815
+ value: function setAllowChat(enable) {
816
+ return this._securityStore.setAllowChat(enable);
817
+ }
818
+ }, {
819
+ key: "allowUnmuteSelfAudio",
820
+ value: function allowUnmuteSelfAudio() {
821
+ return this._securityStore.allowUnmuteSelfAudio();
822
+ }
823
+ }, {
824
+ key: "setAllowUnmuteSelfAudio",
825
+ value: function setAllowUnmuteSelfAudio(enable) {
826
+ return this._securityStore.setAllowUnmuteSelfAudio(enable);
827
+ }
828
+ }, {
829
+ key: "allowUnmuteSelfVideo",
830
+ value: function allowUnmuteSelfVideo() {
831
+ return this._securityStore.allowUnmuteSelfVideo();
832
+ }
833
+ }, {
834
+ key: "setAllowUnmuteSelfVideo",
835
+ value: function setAllowUnmuteSelfVideo(enable) {
836
+ return this._securityStore.setAllowUnmuteSelfVideo(enable);
837
+ }
838
+ }, {
839
+ key: "toggleChat",
840
+ value: function toggleChat() {
841
+ !this._chatVisible ? this.openChat() : this.closeChat();
842
+ }
843
+ }, {
844
+ key: "openChat",
845
+ value: function openChat() {
846
+ if (this._chatRenderAt === 'aside') {
847
+ this._uiEventStore.updateAside({
848
+ chat: true
849
+ });
850
+ }
851
+ if (this._chatRenderAt === 'dialog') {
852
+ this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
853
+ }
854
+ }
855
+ }, {
856
+ key: "closeChat",
857
+ value: function closeChat() {
858
+ if (!this._chatVisible) return;
859
+ if (this._chatRenderAt === 'aside') {
860
+ this._uiEventStore.updateAside({
861
+ chat: false
862
+ });
863
+ }
864
+ if (this._chatRenderAt === 'dialog') {
865
+ var chatDialogId = '';
866
+ this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
867
+ if (dialogKey === _constant.DialogKey.CHAT) {
868
+ chatDialogId = dialogId;
869
+ }
870
+ });
871
+ chatDialogId && this._uiEventStore.closeDialog(chatDialogId);
872
+ }
873
+ }
874
+ }, {
875
+ key: "toggleParticipants",
876
+ value: function toggleParticipants() {
877
+ !this._participantVisible ? this.openParticipants() : this.closeParticipants();
878
+ }
879
+ }, {
880
+ key: "openParticipants",
881
+ value: function openParticipants() {
882
+ if (this._participantsRenderAt === 'aside') {
883
+ this._uiEventStore.updateAside({
884
+ participant: true
885
+ });
886
+ }
887
+ if (this._participantsRenderAt === 'dialog') {
888
+ this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
889
+ }
890
+ if (this._participantVisible) {
891
+ if (this._participantTab === _constant.RoomType.WAITING_ROOM) {
892
+ this.isNewWaitingRoomUserEnter = false;
893
+ }
894
+ }
895
+ }
896
+ }, {
897
+ key: "closeParticipants",
898
+ value: function closeParticipants() {
899
+ if (!this._participantVisible) return;
900
+ if (this._participantsRenderAt === 'aside') {
901
+ this._uiEventStore.updateAside({
902
+ participant: false
903
+ });
904
+ }
905
+ if (this._participantsRenderAt === 'dialog') {
906
+ var participantDialogId = '';
907
+ this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
908
+ if (dialogKey === _constant.DialogKey.PARTICIPANT) {
909
+ participantDialogId = dialogId;
910
+ }
911
+ });
912
+ participantDialogId && this._uiEventStore.closeDialog(participantDialogId);
913
+ }
914
+ }
915
+ }, {
916
+ key: "startScreenShare",
917
+ value: function startScreenShare() {
918
+ console.log('performance: click button', new Date().getTime());
919
+ // if (!this._interceptShareBoard()) return;
920
+ if (!this._interceptShareScreen()) return;
921
+ this._uiEventStore.startShareScreen();
922
+ }
923
+ }, {
924
+ key: "openWhiteboard",
925
+ value: function openWhiteboard() {
926
+ // if (!this._interceptShareBoard()) return;
927
+ this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
928
+ }
929
+ }, {
930
+ key: "closeWhiteboard",
931
+ value: function closeWhiteboard() {
932
+ this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
933
+ }
934
+ }, {
935
+ key: "closeLiveStreamingDialog",
936
+ value: function closeLiveStreamingDialog() {
937
+ this._uiEventStore.closeDialog(this._liveStreamingDialogId);
938
+ this._liveStreamingDialogId = '';
939
+ this.toggleLayoutBarLock(false);
940
+ }
941
+ }, {
942
+ key: "toggleConnection",
943
+ value: function toggleConnection() {
944
+ this.connectionSettingVisible ? this.closeConnection() : this.openConnection('computer');
945
+ }
946
+ }, {
947
+ key: "openConnection",
948
+ value: function openConnection(type) {
949
+ this._uiEventStore.openDialog(_constant.DialogKey.CONNECTION_GATEWAY, '', {
950
+ type: type
951
+ });
952
+ }
953
+ }, {
954
+ key: "closeConnection",
955
+ value: function closeConnection() {
956
+ var connectionDialogId = '';
957
+ this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
958
+ if (dialogKey === _constant.DialogKey.CONNECTION_GATEWAY) {
959
+ connectionDialogId = dialogId;
960
+ }
961
+ });
962
+ this._uiEventStore.closeDialog(connectionDialogId);
963
+ }
964
+ }, {
965
+ key: "toggleFold",
966
+ value: function toggleFold() {
967
+ this.folded = !this.folded;
968
+ this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN);
969
+ }
970
+ }, {
971
+ key: "setShowArrow",
972
+ value: function setShowArrow(show) {
973
+ var _this3 = this;
974
+ if (this._hideBarArrowTimer) clearTimeout(this._hideBarArrowTimer);
975
+ if (show) {
976
+ this.showArrow = true;
977
+ } else {
978
+ this._hideBarArrowTimer = setTimeout(function () {
979
+ return _this3.showArrow = false;
980
+ }, 1000);
981
+ }
982
+ }
983
+ }, {
984
+ key: "setEnableWaitingRoom",
985
+ value: function () {
986
+ var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(enable, isNeedShowDialog) {
987
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
988
+ while (1) switch (_context2.prev = _context2.next) {
989
+ case 0:
990
+ if (enable) {
991
+ _context2.next = 10;
992
+ break;
993
+ }
994
+ if (!(this.totalWaitingRoomUser && isNeedShowDialog)) {
995
+ _context2.next = 5;
996
+ break;
997
+ }
998
+ this._uiEventStore.openDialog(_constant.DialogKey.WAITING_ROOM, '', {
999
+ totalWaitingRoomUser: this.totalWaitingRoomUser
1000
+ });
1001
+ _context2.next = 8;
1002
+ break;
1003
+ case 5:
1004
+ _context2.next = 7;
1005
+ return this._roomControl.enableWaitingRoom(enable);
1006
+ case 7:
1007
+ this._uiEventStore.showToast({
1008
+ type: 'normal',
1009
+ message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_tips_disable')
1010
+ });
1011
+ case 8:
1012
+ _context2.next = 13;
1013
+ break;
1014
+ case 10:
1015
+ _context2.next = 12;
1016
+ return this._roomControl.enableWaitingRoom(enable);
1017
+ case 12:
1018
+ this._uiEventStore.showToast({
1019
+ type: 'normal',
1020
+ message: (0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable')
1021
+ });
1022
+ case 13:
1023
+ case "end":
1024
+ return _context2.stop();
1025
+ }
1026
+ }, _callee2, this);
1027
+ }));
1028
+ function setEnableWaitingRoom(_x, _x2) {
1029
+ return _setEnableWaitingRoom.apply(this, arguments);
1030
+ }
1031
+ return setEnableWaitingRoom;
1032
+ }()
1033
+ }, {
1034
+ key: "kickOutWaitingRoomAllMember",
1035
+ value: function () {
1036
+ var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(type) {
1037
+ var _this$_userControl;
1038
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
1039
+ while (1) switch (_context3.prev = _context3.next) {
1040
+ case 0:
1041
+ _context3.next = 2;
1042
+ return (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
1043
+ case 2:
1044
+ case "end":
1045
+ return _context3.stop();
1046
+ }
1047
+ }, _callee3, this);
1048
+ }));
1049
+ function kickOutWaitingRoomAllMember(_x3) {
1050
+ return _kickOutWaitingRoomAllMember.apply(this, arguments);
1051
+ }
1052
+ return kickOutWaitingRoomAllMember;
1053
+ }()
1054
+ }, {
1055
+ key: "moveToMainRoomAllMember",
1056
+ value: function () {
1057
+ var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
1058
+ var _this$_waitingRoomCon;
1059
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
1060
+ while (1) switch (_context4.prev = _context4.next) {
1061
+ case 0:
1062
+ _context4.next = 2;
1063
+ return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
1064
+ case 2:
1065
+ case "end":
1066
+ return _context4.stop();
1067
+ }
1068
+ }, _callee4, this);
1069
+ }));
1070
+ function moveToMainRoomAllMember() {
1071
+ return _moveToMainRoomAllMember.apply(this, arguments);
1072
+ }
1073
+ return moveToMainRoomAllMember;
1074
+ }()
1075
+ }, {
1076
+ key: "_interceptShareScreen",
1077
+ value: function _interceptShareScreen() {
1078
+ var _this4 = this;
1079
+ if (this.hasScreenShare || this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
1080
+ var _this$_sharingOwnerUs;
1081
+ var confirmKey = this._uiEventStore.openConfirmDialog({
1082
+ title: (0, _i18n.transI18n)('fmt_share_tips_othsersharing'),
1083
+ content: (0, _i18n.transI18n)("fmt_share_tips_stopothersharing", {
1084
+ reason1: ((_this$_sharingOwnerUs = this._sharingOwnerUser) === null || _this$_sharingOwnerUs === void 0 ? void 0 : _this$_sharingOwnerUs.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
1085
+ }),
1086
+ okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share'),
1087
+ closable: false,
1088
+ alignCenter: true,
1089
+ onOk: function onOk() {
1090
+ _this4._uiEventStore.startShareScreen();
1091
+ _this4._uiEventStore.closeDialog(confirmKey);
1092
+ },
1093
+ onCancel: function onCancel() {
1094
+ _this4._uiEventStore.closeDialog(confirmKey);
1095
+ }
1096
+ });
1097
+ return false;
1098
+ } else {
1099
+ return true;
1100
+ }
1101
+ }
1102
+ }, {
1103
+ key: "_handleRemoteUsersJoined",
1104
+ value: function _handleRemoteUsersJoined(_roomId, events) {
1105
+ var _this5 = this;
1106
+ var modifiedUsers = events.map(function (e) {
1107
+ return e.modifiedUser;
1108
+ });
1109
+ modifiedUsers.forEach(function (user) {
1110
+ var userIndex = _this5.users.findIndex(function (u) {
1111
+ return u.userId === user.userId;
1112
+ });
1113
+ if (userIndex !== -1) {
1114
+ _this5.users[userIndex] = user;
1115
+ } else {
1116
+ _this5.users.push(user);
1117
+ }
1118
+ });
1119
+ this.users = (0, _toConsumableArray2["default"])(this.users);
1120
+ }
1121
+ }, {
1122
+ key: "_handleRemoteUsersLeft",
1123
+ value: function _handleRemoteUsersLeft(_roomId, events) {
1124
+ var _this6 = this;
1125
+ var modifiedUsers = events.map(function (e) {
1126
+ return e.modifiedUser;
1127
+ });
1128
+ modifiedUsers.forEach(function (user) {
1129
+ var userIndex = _this6.users.findIndex(function (u) {
1130
+ return u.userId === user.userId;
1131
+ });
1132
+ if (userIndex !== -1) {
1133
+ _this6.users.splice(userIndex, 1);
1134
+ }
1135
+ });
1136
+ this.users = (0, _toConsumableArray2["default"])(this.users);
1137
+ }
1138
+ }, {
1139
+ key: "_handleAllUserCountUpdated",
1140
+ value: function _handleAllUserCountUpdated(_roomId, count) {
1141
+ this.totalUser = count;
1142
+ }
1143
+ }, {
1144
+ key: "_getWaitingRoomUserCount",
1145
+ value: function _getWaitingRoomUserCount() {
1146
+ var _privilegeControl$get;
1147
+ var userControl = this._waitingRoomControl.getUserControl();
1148
+ var privilegeControl = this._roomControl.getPrivilegeControl();
1149
+ var targetRoles = (_privilegeControl$get = privilegeControl.getSecurityInfo(_type7.FcrSecurityAction.WaitingRoom).info) === null || _privilegeControl$get === void 0 ? void 0 : _privilegeControl$get.targetRoles;
1150
+ this.totalWaitingRoomUser = userControl.getUserList().filter(function (user) {
1151
+ return targetRoles.includes(user.userRole);
1152
+ }).length;
1153
+ if (this.totalWaitingRoomUser === 0) {
1154
+ this._uiEventStore.sendEvent(_constant.UIAction.CHANGE_PARTICIPANT_TAB, _constant.RoomType.MAIN_ROOM);
1155
+ }
1156
+ }
1157
+ }, {
1158
+ key: "_handleRemoteWaitingUserLeft",
1159
+ value: function _handleRemoteWaitingUserLeft(_roomId, _events) {
1160
+ this._getWaitingRoomUserCount();
1161
+ }
1162
+ }, {
1163
+ key: "_handleRemoteWaitingUserJoined",
1164
+ value: function _handleRemoteWaitingUserJoined(_roomId, _events) {
1165
+ if (this._participantVisible) {
1166
+ if (this._participantTab !== _constant.RoomType.WAITING_ROOM) {
1167
+ this.isNewWaitingRoomUserEnter = true;
1168
+ }
1169
+ } else {
1170
+ this.isNewWaitingRoomUserEnter = true;
1171
+ }
1172
+ this._getWaitingRoomUserCount();
1173
+ }
1174
+ }, {
1175
+ key: "_handleUserInfoUpdated",
1176
+ value: function _handleUserInfoUpdated(_roomId, event) {
1177
+ var modifiedUser = event.modifiedUser;
1178
+ var index = this.users.findIndex(function (u) {
1179
+ return u.userId === modifiedUser.userId;
1180
+ });
1181
+ if (index === -1) {
1182
+ return;
1183
+ }
1184
+ this.users[index] = modifiedUser;
1185
+ this.users = (0, _toConsumableArray2["default"])(this.users);
1186
+ this.localUserRole = this._userControl.getLocalUser().userRole;
1187
+ }
1188
+ }, {
1189
+ key: "_handleLiveStreamingStateUpdated",
1190
+ value: function _handleLiveStreamingStateUpdated(_roomId, state) {
1191
+ this.liveStreamingState = state;
1192
+ }
1193
+ }, {
1194
+ key: "_handleChatVisible",
1195
+ value: function _handleChatVisible(visible) {
1196
+ this._chatVisible = visible;
1197
+ this._uiEventStore.sendEvent(_constant.UIAction.CHAT_VISIBLE, visible);
1198
+ this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
1199
+ this.hideNewMessageTooltip();
1200
+ this.newMessageCount[this.chatTabIndex] = 0;
1201
+ }
1202
+ }, {
1203
+ key: "_handlerTraceScreenCaptureStateUpdate",
1204
+ value: function _handlerTraceScreenCaptureStateUpdate(_, state) {
1205
+ this.hasScreenShare = state === _fcrCore.FcrMediaSourceState.OPEN;
1206
+ // if (state === FcrMediaSourceState.STOPPED) {
1207
+ // this.stopScreenShare();
1208
+ // }
1209
+ }
1210
+ }, {
1211
+ key: "setAllowWaterMark",
1212
+ value: function setAllowWaterMark() {
1213
+ var allowState = !this.isWaterMarkEnabled;
1214
+ // 开启关闭前,进行权限判断
1215
+ this._securityStore.setAllowWaterMark(allowState, void 0);
1216
+ }
1217
+ }, {
1218
+ key: "setWaterMarkLineType",
1219
+ value: function setWaterMarkLineType(lineType) {
1220
+ this._securityStore.setAllowWaterMark(this.isWaterMarkEnabled, lineType);
1221
+ }
1222
+ }, {
1223
+ key: "_onEvent",
1224
+ value: function _onEvent(action, payload) {
1225
+ if (action === _constant.UIAction.UPDATE_ASIDE) {
1226
+ var _ref3 = payload,
1227
+ chat = _ref3.chat,
1228
+ participant = _ref3.participant;
1229
+ this.participantsPopoverOpened = false;
1230
+ if (chat) {
1231
+ this._chatRenderAt = 'aside';
1232
+ this._handleChatVisible(true);
1233
+ } else {
1234
+ this._handleChatVisible(false);
1235
+ }
1236
+ if (participant) {
1237
+ this._participantsRenderAt = 'aside';
1238
+ this._participantVisible = true;
1239
+ }
1240
+ if (participant === false) {
1241
+ this._participantVisible = false;
1242
+ }
1243
+ }
1244
+ if (action === _constant.UIAction.RECEIVE_NEW_CHAT_MESSAGES) {
1245
+ this._handleNewMessageEvent(payload);
1246
+ }
1247
+ if (action === _constant.UIAction.CLOSE_DIALOG) {
1248
+ var _ref4 = payload,
1249
+ dialogId = _ref4.dialogId;
1250
+ var dialogKey = this._openedDialogIdMap.get(dialogId);
1251
+ if (dialogKey === _constant.DialogKey.CHAT) {
1252
+ this._handleChatVisible(false);
1253
+ }
1254
+ if (dialogKey === _constant.DialogKey.PARTICIPANT) {
1255
+ this._participantVisible = false;
1256
+ }
1257
+ this._openedDialogIdMap["delete"](dialogId);
1258
+ if (dialogKey === _constant.DialogKey.CONTROL_BAR) {
1259
+ this._chatRenderAt = 'aside';
1260
+ }
1261
+ }
1262
+ if (action === _constant.UIAction.OPEN_DIALOG) {
1263
+ var _ref5 = payload,
1264
+ _dialogKey = _ref5.dialogKey,
1265
+ _dialogId = _ref5.dialogId;
1266
+ this._openedDialogIdMap.set(_dialogId, _dialogKey);
1267
+ if (_dialogKey === _constant.DialogKey.CHAT) {
1268
+ this._chatRenderAt = 'dialog';
1269
+ this._handleChatVisible(true);
1270
+ }
1271
+ if (_dialogKey === _constant.DialogKey.PARTICIPANT) {
1272
+ this._participantsRenderAt = 'dialog';
1273
+ this._participantVisible = true;
1274
+ }
1275
+ if (_dialogKey === _constant.DialogKey.CONTROL_BAR) {}
1276
+ }
1277
+ if (action === _constant.UIAction.CLOSE_LIVE_STEAMING_DIALOG) {
1278
+ this.closeLiveStreamingDialog();
1279
+ }
1280
+ if (action === _constant.UIAction.CLOUD_RECORDING) {
1281
+ var _ref6 = payload,
1282
+ _action = _ref6.action;
1283
+ if (_action === 'start') this.startCloudRecording();else if (_action === 'pause') this.pauseCloudRecording();else if (_action === 'resume') this.resumeCloudRecording();else this.stopCloudRecording();
1284
+ }
1285
+ if (action === _constant.UIAction.OPEN_CONNECTION_DIALOG) {
1286
+ this.openConnection(payload.params.type);
1287
+ }
1288
+ if (action === _constant.UIAction.CLOSE_CONNECTION_DIALOG) {
1289
+ this.closeConnection();
1290
+ }
1291
+ if (action === _constant.UIAction.SET_CURRENT_SHARE_SCREEN) {
1292
+ var _this$_mediaControl, _this$_screenVideoTra2;
1293
+ var _ref7 = payload,
1294
+ id = _ref7.id;
1295
+ this._screenVideoTrack = (_this$_mediaControl = this._mediaControl) === null || _this$_mediaControl === void 0 ? void 0 : _this$_mediaControl.getScreenTrack(id);
1296
+ (_this$_screenVideoTra2 = this._screenVideoTrack) === null || _this$_screenVideoTra2 === void 0 || _this$_screenVideoTra2.addObserver(this._observer);
1297
+ }
1298
+ if (action === _constant.UIAction.TOGGLE_PARTICIPANT_TAB) {
1299
+ if (!this._participantVisible) {
1300
+ this.toggleParticipants();
1301
+ }
1302
+ }
1303
+ if (action === _constant.UIAction.CURRENT_PARTITIPANT_TAB) {
1304
+ if (payload === _constant.RoomType.WAITING_ROOM) {
1305
+ this.isNewWaitingRoomUserEnter = false;
1306
+ }
1307
+ this._participantTab = payload;
1308
+ }
1309
+ if (action === _constant.UIAction.WAITING_ROOM_CREATED) {
1310
+ var room = payload;
1311
+ this._waitingRoomControl = room;
1312
+ var waitingRoomUserControl = room.getUserControl();
1313
+ waitingRoomUserControl.addObserver(this._waitingRoomUserObserver);
1314
+ this.newMessageCount = (0, _defineProperty2["default"])({}, _constant.RoomType.WAITING_ROOM, 0);
1315
+ }
1316
+ if (action === _constant.UIAction.CHAT_ROOM_TAB_CHANGE) {
1317
+ this.chatTabIndex = payload;
1318
+ this.newMessageCount[this.chatTabIndex] = 0;
1319
+ }
1320
+ if (action === _constant.UIAction.CLOSE_WAITING_ROOM_DIALOG) {
1321
+ var waitingDialogId = '';
1322
+ this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
1323
+ if (dialogKey === _constant.DialogKey.WAITING_ROOM) {
1324
+ waitingDialogId = dialogId;
1325
+ }
1326
+ });
1327
+ this._uiEventStore.closeDialog(waitingDialogId);
1328
+ }
1329
+ if (action === _constant.UIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER) {
1330
+ this._operateWaitingRoom(payload);
1331
+ }
1332
+ }
1333
+ }, {
1334
+ key: "_operateWaitingRoom",
1335
+ value: function () {
1336
+ var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(isOperate) {
1337
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
1338
+ while (1) switch (_context5.prev = _context5.next) {
1339
+ case 0:
1340
+ if (!isOperate) {
1341
+ _context5.next = 3;
1342
+ break;
1343
+ }
1344
+ _context5.next = 3;
1345
+ return this.moveToMainRoomAllMember();
1346
+ case 3:
1347
+ _context5.next = 5;
1348
+ return this.setEnableWaitingRoom(false, false);
1349
+ case 5:
1350
+ case "end":
1351
+ return _context5.stop();
1352
+ }
1353
+ }, _callee5, this);
1354
+ }));
1355
+ function _operateWaitingRoom(_x4) {
1356
+ return _operateWaitingRoom2.apply(this, arguments);
1357
+ }
1358
+ return _operateWaitingRoom;
1359
+ }()
1360
+ }, {
1361
+ key: "_handleCloudRecordingStateUpdated",
1362
+ value: function _handleCloudRecordingStateUpdated(_roomId, state) {
1363
+ this.cloudRecordingState = state;
1364
+ }
1365
+ }, {
1366
+ key: "_handleStreamsAddedOrUpdated",
1367
+ value: function _handleStreamsAddedOrUpdated() {
1368
+ var _this$_streamControl$;
1369
+ this.hasScreenShare = this._streamControl.getStreamList().some(function (stream) {
1370
+ return stream.videoSourceType === _type5.AgoraRteVideoSourceType.SCREEN;
1371
+ });
1372
+ this._sharingOwnerUser = (_this$_streamControl$ = this._streamControl.getStreamList().find(function (stream) {
1373
+ return stream.videoSourceType === _type5.AgoraRteVideoSourceType.SCREEN;
1374
+ })) === null || _this$_streamControl$ === void 0 ? void 0 : _this$_streamControl$.owner;
1375
+ var _this$_userControl$ge = this._userControl.getLocalUser(),
1376
+ userId = _this$_userControl$ge.userId;
1377
+ var streams = this._streamControl.getStreamsByUserId(userId);
1378
+ var pstnStream = streams.find(function (_ref8) {
1379
+ var connectorType = _ref8.connectorType;
1380
+ return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
1381
+ });
1382
+ var hasPstnStream = !!pstnStream;
1383
+ this.connectType = hasPstnStream ? _type3.ConnectType.PHONE : this.microphoneId ? _type3.ConnectType.COMPUTER : _type3.ConnectType.NONE;
1384
+ if (hasPstnStream) {
1385
+ this.phoneMicEnabled = pstnStream.streamType === _type4.AgoraRteMediaStreamType.BOTH || pstnStream.audioSourceState === _fcrCore.FcrMediaSourceState.OPEN;
1386
+ }
1387
+ }
1388
+ }, {
1389
+ key: "setParticipantsPopoverOpened",
1390
+ value: function setParticipantsPopoverOpened(visible) {
1391
+ this.participantsPopoverOpened = visible;
1392
+ }
1393
+ }, {
1394
+ key: "_handleMicrophoneChanged",
1395
+ value: function _handleMicrophoneChanged(microphoneId) {
1396
+ this.connectType = microphoneId ? _type3.ConnectType.COMPUTER : _type3.ConnectType.NONE;
1397
+ }
1398
+ }]);
1399
+ }();
1400
+ _ActionBarStore = ActionBarStore;
1401
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "newMessageCount"], [_mobx.observable, 1, "latestMessage"], [_mobx.observable, 1, "totalUser"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "hasScreenShare"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "popoverOpened"], [_mobx.observable, 1, "participantsPopoverOpened"], [_mobx.computed, 3, "remoteUsers"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "isPstnUser"], [_mobx.computed, 3, "cameraId"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "enableCamera"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "closeSpeaker"], [_decorator.bound, 2, "setAllowBoardWrite"], [_decorator.bound, 2, "setAllowScreenShare"], [_decorator.bound, 2, "closeBoard"], [_assignHostDecs, 18, "assignHost"], [_decorator.bound, 2, "leave"], [_decorator.bound, 2, "keepPhoneAudioConnection"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "end"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleAllUserCountUpdatedDecs, 18, "_handleAllUserCountUpdated"], [_getWaitingRoomUserCountDecs, 18, "_getWaitingRoomUserCount"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_handlerTraceScreenCaptureStateUpdateDecs, 18, "_handlerTraceScreenCaptureStateUpdate"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_decorator.bound, 2, "setParticipantsPopoverOpened"], [_handleMicrophoneChangedDecs, 18, "_handleMicrophoneChanged"], [_handleNewMessageEventDecs, 16, "_handleNewMessageEvent"]], []).e, 24);
1402
+ _init_users = _applyDecs$e[0];
1403
+ _init_newMessageTooltipVisible = _applyDecs$e[1];
1404
+ _init_newMessageCount = _applyDecs$e[2];
1405
+ _init_latestMessage = _applyDecs$e[3];
1406
+ _init_totalUser = _applyDecs$e[4];
1407
+ _init_totalWaitingRoomUser = _applyDecs$e[5];
1408
+ _init_liveStreamingState = _applyDecs$e[6];
1409
+ _init_currentMenuIs = _applyDecs$e[7];
1410
+ _init_cloudRecordingState = _applyDecs$e[8];
1411
+ _init_localUserRole = _applyDecs$e[9];
1412
+ _init_localUser = _applyDecs$e[10];
1413
+ _init_connectionSettingVisible = _applyDecs$e[11];
1414
+ _init_connectType = _applyDecs$e[12];
1415
+ _init_folded = _applyDecs$e[13];
1416
+ _init_boardOwnerUser = _applyDecs$e[14];
1417
+ _init_hasScreenShare = _applyDecs$e[15];
1418
+ _init_showArrow = _applyDecs$e[16];
1419
+ _init_phoneMicEnabled = _applyDecs$e[17];
1420
+ _init_isNewWaitingRoomUserEnter = _applyDecs$e[18];
1421
+ _init_chatTabIndex = _applyDecs$e[19];
1422
+ _init_popoverOpened = _applyDecs$e[20];
1423
+ _init_participantsPopoverOpened = _applyDecs$e[21];
1424
+ _init__handleNewMessageEvent = _applyDecs$e[22];
1425
+ _initProto = _applyDecs$e[23];