fcr-ui-scene 3.7.7-rc.1 → 3.7.8

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 (211) hide show
  1. package/lib/creator/provider-initializer.browser.js +2 -2
  2. package/lib/creator/provider-initializer.electron.js +2 -2
  3. package/lib/creator.d.ts +36 -0
  4. package/lib/creator.js +465 -0
  5. package/lib/electron/bootstrap-sdk.js +70 -33
  6. package/lib/electron/hang-detection/index.d.ts +3 -0
  7. package/lib/electron/hang-detection/index.js +15 -0
  8. package/lib/electron/hang-detection/manager.d.ts +28 -0
  9. package/lib/electron/hang-detection/manager.js +231 -0
  10. package/lib/electron/hang-detection/types.d.ts +14 -0
  11. package/lib/electron/hang-detection/types.js +6 -0
  12. package/lib/electron/until.d.ts +1 -4
  13. package/lib/electron/until.js +9 -4
  14. package/lib/modules/action-bar/components/screen-share/index.electron.js +1 -1
  15. package/lib/modules/action-bar/index.d.ts +56 -0
  16. package/lib/modules/action-bar/index.dev.d.ts +0 -0
  17. package/lib/modules/action-bar/index.dev.js +94 -0
  18. package/lib/modules/action-bar/index.js +108 -0
  19. package/lib/modules/action-bar/store.d.ts +256 -0
  20. package/lib/modules/action-bar/store.js +1572 -0
  21. package/lib/modules/action-bar/types.d.ts +90 -0
  22. package/lib/modules/action-bar/types.js +6 -0
  23. package/lib/modules/action-bar/view.d.ts +5 -0
  24. package/lib/modules/action-bar/view.js +112 -0
  25. package/lib/modules/annotation/annotation-index.d.ts +2 -0
  26. package/lib/modules/annotation/annotation-index.js +80 -0
  27. package/lib/modules/annotation/annotation-toolbar-store.d.ts +75 -0
  28. package/lib/modules/annotation/annotation-toolbar-store.js +459 -0
  29. package/lib/modules/annotation/board-cursor.css +77 -0
  30. package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
  31. package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
  32. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
  33. package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
  34. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
  35. package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
  36. package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
  37. package/lib/modules/annotation/components/color-picker/index.js +47 -0
  38. package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
  39. package/lib/modules/annotation/components/eraser-picker.js +144 -0
  40. package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
  41. package/lib/modules/annotation/components/expansion/index.js +100 -0
  42. package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
  43. package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
  44. package/lib/modules/annotation/components/history.d.ts +2 -0
  45. package/lib/modules/annotation/components/history.js +78 -0
  46. package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
  47. package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
  48. package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
  49. package/lib/modules/annotation/components/icons/move-icon.js +66 -0
  50. package/lib/modules/annotation/components/item/index.d.ts +1 -0
  51. package/lib/modules/annotation/components/item/index.js +43 -0
  52. package/lib/modules/annotation/components/move-handle.d.ts +5 -0
  53. package/lib/modules/annotation/components/move-handle.js +134 -0
  54. package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
  55. package/lib/modules/annotation/components/pen-picker.js +155 -0
  56. package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
  57. package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
  58. package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
  59. package/lib/modules/annotation/components/shape-picker.js +210 -0
  60. package/lib/modules/annotation/hooks/index.d.ts +14 -0
  61. package/lib/modules/annotation/hooks/index.js +292 -0
  62. package/lib/modules/annotation/index.d.ts +45 -0
  63. package/lib/modules/annotation/index.js +168 -0
  64. package/lib/modules/annotation/store.d.ts +98 -0
  65. package/lib/modules/annotation/store.js +621 -0
  66. package/lib/modules/annotation/style.css +36 -0
  67. package/lib/modules/annotation/view.d.ts +3 -0
  68. package/lib/modules/annotation/view.js +44 -0
  69. package/lib/modules/components/control-bar/components/switch-theme/index.js +4 -2
  70. package/lib/modules/components/control-bar/index.js +1 -3
  71. package/lib/modules/components/device-control/store.d.ts +42 -0
  72. package/lib/modules/components/device-control/store.js +241 -0
  73. package/lib/modules/components/leave-meeting/store.d.ts +39 -0
  74. package/lib/modules/components/leave-meeting/store.js +270 -0
  75. package/lib/modules/control-bar/components/annotation-button/index.d.ts +1 -0
  76. package/lib/modules/control-bar/components/annotation-button/index.js +72 -0
  77. package/lib/modules/control-bar/types.d.ts +20 -0
  78. package/lib/modules/control-bar/types.js +6 -0
  79. package/lib/modules/dialog/dialogs/pre-setting/index.css +26 -0
  80. package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +6 -0
  81. package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
  82. package/lib/modules/dialog/dialogs/widget/electron.d.ts +6 -0
  83. package/lib/modules/dialog/dialogs/widget/electron.js +38 -0
  84. package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +14 -0
  85. package/lib/modules/dialog/hooks/use-popover-watcher.js +110 -0
  86. package/lib/modules/dialog/hooks/useElectron.d.ts +28 -0
  87. package/lib/modules/dialog/hooks/useElectron.js +277 -0
  88. package/lib/modules/dialog/store.d.ts +135 -0
  89. package/lib/modules/dialog/store.js +616 -0
  90. package/lib/modules/event-confirm/components/window/index.d.ts +4 -0
  91. package/lib/modules/event-confirm/components/window/index.js +197 -0
  92. package/lib/modules/event-confirm/index.css +24 -0
  93. package/lib/modules/event-confirm/index.d.ts +27 -0
  94. package/lib/modules/event-confirm/index.js +76 -0
  95. package/lib/modules/event-confirm/store.d.ts +45 -0
  96. package/lib/modules/event-confirm/store.js +345 -0
  97. package/lib/modules/event-confirm/view.d.ts +2 -0
  98. package/lib/modules/event-confirm/view.js +53 -0
  99. package/lib/modules/event-toast/store.d.ts +27 -0
  100. package/lib/modules/event-toast/store.js +205 -0
  101. package/lib/modules/layout/store.d.ts +176 -0
  102. package/lib/modules/layout/store.js +1466 -0
  103. package/lib/modules/participant/store.base.js +0 -1
  104. package/lib/modules/participant/store.d.ts +222 -0
  105. package/lib/modules/participant/store.js +1927 -0
  106. package/lib/modules/pc-audio-connect/index.d.ts +22 -0
  107. package/lib/modules/pc-audio-connect/index.js +67 -0
  108. package/lib/modules/pc-audio-connect/store.d.ts +46 -0
  109. package/lib/modules/pc-audio-connect/store.js +304 -0
  110. package/lib/modules/setting/common/advance-link.d.ts +3 -0
  111. package/lib/modules/setting/common/advance-link.js +27 -0
  112. package/lib/modules/setting/common/index.css +26 -0
  113. package/lib/modules/setting/common/useNamespace.d.ts +15 -0
  114. package/lib/modules/setting/common/useNamespace.js +66 -0
  115. package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
  116. package/lib/modules/setting/dialog-wrapper.js +110 -0
  117. package/lib/modules/setting/store.d.ts +261 -0
  118. package/lib/modules/setting/store.js +1321 -0
  119. package/lib/modules/share-screen/store.d.ts +148 -0
  120. package/lib/modules/share-screen/store.electron.js +9 -0
  121. package/lib/modules/share-screen/store.js +950 -0
  122. package/lib/modules/share-screen/types.d.ts +26 -0
  123. package/lib/modules/share-screen/types.js +6 -0
  124. package/lib/modules/state-bar/store.base.electron.js +6 -2
  125. package/lib/modules/state-bar/store.d.ts +124 -0
  126. package/lib/modules/state-bar/store.js +664 -0
  127. package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
  128. package/lib/modules/whiteboard/components/progress/electron.js +33 -0
  129. package/lib/modules/widget/store.d.ts +14 -0
  130. package/lib/modules/widget/store.js +28 -0
  131. package/lib/providers/annotation-provider.d.ts +124 -0
  132. package/lib/providers/annotation-provider.js +369 -0
  133. package/lib/providers/board-share/bar-control/base.d.ts +2 -0
  134. package/lib/providers/board-share/bar-control/base.js +13 -3
  135. package/lib/providers/board-share/bar-control/electron.d.ts +1 -0
  136. package/lib/providers/board-share/bar-control/electron.js +15 -4
  137. package/lib/providers/board-share/provider.base.d.ts +1 -0
  138. package/lib/providers/board-share/provider.base.js +3 -1
  139. package/lib/providers/board-share/provider.electron.d.ts +1 -0
  140. package/lib/providers/board-share/provider.electron.js +8 -2
  141. package/lib/providers/board-share/type.d.ts +2 -0
  142. package/lib/providers/dialog/provider.electron.js +10 -2
  143. package/lib/providers/dialog-provider.d.ts +137 -0
  144. package/lib/providers/dialog-provider.js +194 -0
  145. package/lib/providers/message-provider.d.ts +69 -0
  146. package/lib/providers/message-provider.js +140 -0
  147. package/lib/providers/room-provider.d.ts +194 -0
  148. package/lib/providers/room-provider.js +916 -0
  149. package/lib/providers/screen-share/strategy/browser.js +50 -3
  150. package/lib/providers/screen-share/strategy/electron.js +77 -8
  151. package/lib/providers/screen-share/stream-state-sync.d.ts +3 -1
  152. package/lib/providers/screen-share/stream-state-sync.js +133 -40
  153. package/lib/providers/screen-share-provider.d.ts +244 -0
  154. package/lib/providers/screen-share-provider.js +835 -0
  155. package/lib/providers/sharing-provider.d.ts +42 -0
  156. package/lib/providers/sharing-provider.js +221 -0
  157. package/lib/providers/user-setting-storage-provider.d.ts +21 -0
  158. package/lib/providers/user-setting-storage-provider.js +65 -0
  159. package/lib/providers/whiteboard-provider.d.ts +24 -0
  160. package/lib/providers/whiteboard-provider.js +127 -0
  161. package/lib/shared-data-source/annotation-data.d.ts +17 -0
  162. package/lib/shared-data-source/annotation-data.js +110 -0
  163. package/lib/shared-data-source/app-list-data.d.ts +34 -0
  164. package/lib/shared-data-source/app-list-data.js +133 -0
  165. package/lib/shared-data-source/chat-data.d.ts +25 -0
  166. package/lib/shared-data-source/chat-data.js +139 -0
  167. package/lib/shared-data-source/config.d.ts +35 -0
  168. package/lib/shared-data-source/config.js +40 -0
  169. package/lib/shared-data-source/confirm-data.d.ts +25 -0
  170. package/lib/shared-data-source/confirm-data.js +97 -0
  171. package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
  172. package/lib/shared-data-source/device-privilege-data.js +25 -0
  173. package/lib/shared-data-source/interpreter.d.ts +77 -0
  174. package/lib/shared-data-source/interpreter.js +247 -0
  175. package/lib/shared-data-source/layout-data.d.ts +31 -0
  176. package/lib/shared-data-source/layout-data.js +189 -0
  177. package/lib/shared-data-source/meeting-time.d.ts +90 -0
  178. package/lib/shared-data-source/meeting-time.js +416 -0
  179. package/lib/shared-data-source/member-data.d.ts +139 -0
  180. package/lib/shared-data-source/member-data.js +517 -0
  181. package/lib/shared-data-source/pin-data.d.ts +13 -0
  182. package/lib/shared-data-source/pin-data.js +111 -0
  183. package/lib/shared-data-source/screen-share-data.d.ts +364 -0
  184. package/lib/shared-data-source/screen-share-data.js +520 -0
  185. package/lib/shared-data-source/security-data.d.ts +39 -0
  186. package/lib/shared-data-source/security-data.js +156 -0
  187. package/lib/shared-data-source/setting.d.ts +67 -0
  188. package/lib/shared-data-source/setting.js +220 -0
  189. package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
  190. package/lib/shared-data-source/speaker-spotlight.js +15 -0
  191. package/lib/shared-data-source/video-window.d.ts +165 -0
  192. package/lib/shared-data-source/video-window.js +1266 -0
  193. package/lib/shared-data-source/waiting-room.d.ts +46 -0
  194. package/lib/shared-data-source/waiting-room.js +222 -0
  195. package/lib/shared-data-source/whiteboard-data.d.ts +68 -0
  196. package/lib/shared-data-source/whiteboard-data.js +347 -0
  197. package/lib/utilities/board-context.d.ts +4 -0
  198. package/lib/utilities/board-context.js +12 -0
  199. package/lib/utilities/copyText.d.ts +2 -0
  200. package/lib/utilities/copyText.js +48 -0
  201. package/lib/utilities/renderer-event.d.ts +10 -0
  202. package/lib/utilities/renderer-event.js +95 -0
  203. package/lib/utilities/screen-capture-permission.d.ts +2 -0
  204. package/lib/utilities/screen-capture-permission.js +24 -0
  205. package/lib/utilities/screen.d.ts +3 -0
  206. package/lib/utilities/screen.js +53 -0
  207. package/lib/utilities/video-track-render-context.d.ts +6 -0
  208. package/lib/utilities/video-track-render-context.js +9 -0
  209. package/lib/waiting-room-control-manager.d.ts +28 -0
  210. package/lib/waiting-room-control-manager.js +230 -0
  211. package/package.json +5 -5
@@ -0,0 +1,616 @@
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.bind.js");
11
+ require("core-js/modules/es.function.name.js");
12
+ require("core-js/modules/es.number.constructor.js");
13
+ require("core-js/modules/es.object.create.js");
14
+ require("core-js/modules/es.object.define-properties.js");
15
+ require("core-js/modules/es.object.define-property.js");
16
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
17
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
18
+ require("core-js/modules/es.object.keys.js");
19
+ require("core-js/modules/esnext.function.metadata.js");
20
+ require("core-js/modules/esnext.symbol.metadata.js");
21
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
22
+ var _typeof = require("@babel/runtime/helpers/typeof");
23
+ Object.defineProperty(exports, "__esModule", {
24
+ value: true
25
+ });
26
+ exports.dialogWindows = exports.dialogIdWindows = exports["default"] = exports.StoreContext = void 0;
27
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
28
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
29
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
30
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
31
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
32
+ require("core-js/modules/es.array.concat.js");
33
+ require("core-js/modules/es.array.filter.js");
34
+ require("core-js/modules/es.array.find.js");
35
+ require("core-js/modules/es.array.for-each.js");
36
+ require("core-js/modules/es.array.includes.js");
37
+ require("core-js/modules/es.array.iterator.js");
38
+ require("core-js/modules/es.array.push.js");
39
+ require("core-js/modules/es.array.some.js");
40
+ require("core-js/modules/es.map.js");
41
+ require("core-js/modules/es.object.to-string.js");
42
+ require("core-js/modules/es.string.iterator.js");
43
+ require("core-js/modules/es.weak-map.js");
44
+ require("core-js/modules/esnext.iterator.constructor.js");
45
+ require("core-js/modules/esnext.iterator.filter.js");
46
+ require("core-js/modules/esnext.iterator.find.js");
47
+ require("core-js/modules/esnext.iterator.for-each.js");
48
+ require("core-js/modules/esnext.iterator.some.js");
49
+ require("core-js/modules/esnext.map.delete-all.js");
50
+ require("core-js/modules/esnext.map.emplace.js");
51
+ require("core-js/modules/esnext.map.every.js");
52
+ require("core-js/modules/esnext.map.filter.js");
53
+ require("core-js/modules/esnext.map.find.js");
54
+ require("core-js/modules/esnext.map.find-key.js");
55
+ require("core-js/modules/esnext.map.includes.js");
56
+ require("core-js/modules/esnext.map.key-of.js");
57
+ require("core-js/modules/esnext.map.map-keys.js");
58
+ require("core-js/modules/esnext.map.map-values.js");
59
+ require("core-js/modules/esnext.map.merge.js");
60
+ require("core-js/modules/esnext.map.reduce.js");
61
+ require("core-js/modules/esnext.map.some.js");
62
+ require("core-js/modules/esnext.map.update.js");
63
+ require("core-js/modules/esnext.weak-map.delete-all.js");
64
+ require("core-js/modules/esnext.weak-map.emplace.js");
65
+ require("core-js/modules/web.dom-collections.for-each.js");
66
+ require("core-js/modules/web.dom-collections.iterator.js");
67
+ var _type = require("fcr-core/lib/type");
68
+ var _decorator = require("agora-foundation/lib/decorator");
69
+ var _env = require("agora-foundation/lib/utilities/env");
70
+ var _mobx = require("mobx");
71
+ var _react = require("react");
72
+ var _constant = require("../../utilities/constant");
73
+ var _dialogProvider = require("../../providers/dialog-provider");
74
+ var _logger = require("../../utilities/logger");
75
+ var _dialogUtils = require("../../utilities/dialog-utils");
76
+ var _type2 = require("../secondary-window/type");
77
+ var _excluded = ["x", "y"];
78
+ var _DialogStore;
79
+ var _initProto, _init_openedDialogs, _init_confirmDialogs, _init_userCount, _init_participantElectronDialogContainer, _init_currentDialogBounds, _init_videoWindowBounds, _init_recordShareBounds, _init_allApplicationWindows, _init_interceptClose, _setConfirmPositionDecs, _setVideoWindowBoundsDecs, _recordCurrentSharingScreenBoundsDecs, _handleDialogEventDecs, _hanleAllUserCountUpdatedDecs, _handleSecondaryWindowEventDecs, _setInterceptCloseDecs, _ref;
80
+ 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; }
81
+ 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; }
82
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
83
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
84
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
85
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
86
+ 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"); }
87
+ 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)]; } }; }
88
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
89
+ 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); }
90
+ 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; }
91
+ 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; }
92
+ var dialogWindows = exports.dialogWindows = new Map();
93
+ var dialogIdWindows = exports.dialogIdWindows = new Map();
94
+ var _A = /*#__PURE__*/new WeakMap();
95
+ var _B = /*#__PURE__*/new WeakMap();
96
+ var _C = /*#__PURE__*/new WeakMap();
97
+ var _D = /*#__PURE__*/new WeakMap();
98
+ var _E = /*#__PURE__*/new WeakMap();
99
+ var _F = /*#__PURE__*/new WeakMap();
100
+ var _G = /*#__PURE__*/new WeakMap();
101
+ var _H = /*#__PURE__*/new WeakMap();
102
+ var _I = /*#__PURE__*/new WeakMap();
103
+ _ref = (_setConfirmPositionDecs = [_mobx.action, _mobx.action.bound], _setVideoWindowBoundsDecs = [_mobx.action, _mobx.action.bound], _recordCurrentSharingScreenBoundsDecs = [_mobx.action, _mobx.action.bound], _handleDialogEventDecs = [_mobx.action, _mobx.action.bound], _hanleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSecondaryWindowEventDecs = [_mobx.action, _mobx.action.bound], _setInterceptCloseDecs = [_mobx.action, _mobx.action.bound], "logger");
104
+ var DialogStore = exports["default"] = /*#__PURE__*/function () {
105
+ function DialogStore(_ref2) {
106
+ var _this = this;
107
+ var eventProvider = _ref2.eventProvider,
108
+ userControl = _ref2.userControl,
109
+ deviceStore = _ref2.deviceStore,
110
+ streamControl = _ref2.streamControl,
111
+ localVideoRenderProvider = _ref2.localVideoRenderProvider,
112
+ remoteVideoRenderManager = _ref2.remoteVideoRenderManager,
113
+ securityStore = _ref2.securityStore,
114
+ sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
115
+ dialogProvider = _ref2.dialogProvider,
116
+ phoneAudioConnectorProvider = _ref2.phoneAudioConnectorProvider,
117
+ dialogsByKey = _ref2.dialogsByKey,
118
+ widgetProvider = _ref2.widgetProvider,
119
+ chatProvider = _ref2.chatProvider,
120
+ sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
121
+ sharedConfirmDataSource = _ref2.sharedConfirmDataSource,
122
+ annotationProvider = _ref2.annotationProvider,
123
+ multiDisplayProvider = _ref2.multiDisplayProvider,
124
+ roomProvider = _ref2.roomProvider,
125
+ sharedSettingDataSource = _ref2.sharedSettingDataSource;
126
+ (0, _classCallCheck2["default"])(this, DialogStore);
127
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
128
+ prefix: 'DialogStore'
129
+ })));
130
+ (0, _defineProperty2["default"])(this, "_electronDialogs", new Map());
131
+ (0, _defineProperty2["default"])(this, "_disposers", []);
132
+ (0, _defineProperty2["default"])(this, "_handleDialogEventObserver", {
133
+ onEvent: this._handleDialogEvent
134
+ });
135
+ (0, _defineProperty2["default"])(this, "_userObserver", {
136
+ onAllUserCountUpdated: this._hanleAllUserCountUpdated
137
+ });
138
+ (0, _defineProperty2["default"])(this, "_roomObserver", {
139
+ onExitRoom: this._setInterceptClose,
140
+ onRoutingChanged: this._setInterceptClose,
141
+ onRoomClosed: this._setInterceptClose,
142
+ onLeaveMainRoom: this._setInterceptClose,
143
+ onLocalUserKickedOut: this._setInterceptClose
144
+ });
145
+ (0, _defineProperty2["default"])(this, "_handleSecondaryWindowEventObserver", {
146
+ onContentDistributionUpdated: this._handleSecondaryWindowEvent
147
+ });
148
+ _classPrivateFieldInitSpec(this, _A, _init_openedDialogs(this, []));
149
+ _classPrivateFieldInitSpec(this, _B, _init_confirmDialogs(this, new Map()));
150
+ _classPrivateFieldInitSpec(this, _C, _init_userCount(this, 0));
151
+ _classPrivateFieldInitSpec(this, _D, _init_participantElectronDialogContainer(this, null));
152
+ _classPrivateFieldInitSpec(this, _E, _init_currentDialogBounds(this, new Map()));
153
+ _classPrivateFieldInitSpec(this, _F, _init_videoWindowBounds(this, {}));
154
+ _classPrivateFieldInitSpec(this, _G, _init_recordShareBounds(this, new Map()));
155
+ _classPrivateFieldInitSpec(this, _H, _init_allApplicationWindows(this, []));
156
+ // 是否拦截窗口关闭的行为,只在退出房间时修改此值,不可作为它用,如需拦截都通过这个值进行全局控制,否则在退出房间的时候无法关闭窗口
157
+ _classPrivateFieldInitSpec(this, _I, _init_interceptClose(this, true));
158
+ this._sharedScreenShareSharedDataSource = sharedScreenShareSharedDataSource;
159
+ this._eventProvider = eventProvider;
160
+ this._streamControl = streamControl;
161
+ this._userControl = userControl;
162
+ this._remoteVideoRenderManager = remoteVideoRenderManager;
163
+ this._localVideoRenderProvider = localVideoRenderProvider;
164
+ this._deviceStore = deviceStore;
165
+ this._securityStore = securityStore;
166
+ this._sharedLayoutDataSource = sharedLayoutDataSource;
167
+ this._sharedConfirmDataSource = sharedConfirmDataSource;
168
+ this._dialogProvider = dialogProvider;
169
+ this._phoneAudioConnectorProvider = phoneAudioConnectorProvider;
170
+ this._dialogComponentMapByKey = dialogsByKey;
171
+ this._widgetProvider = widgetProvider;
172
+ this._chatProvider = chatProvider;
173
+ this._annotationProvider = annotationProvider;
174
+ this._multiDisplayProvider = multiDisplayProvider;
175
+ this._roomProvider = roomProvider;
176
+ this._sharedSettingDataSource = sharedSettingDataSource;
177
+ this._userControl.addObserver(this._userObserver);
178
+ this._eventProvider.addObserver(this._handleDialogEventObserver);
179
+ this._dialogProvider.addObserver(this._handleDialogEventObserver);
180
+ this._roomProvider.addObserver(this._roomObserver);
181
+ if (this._multiDisplayProvider) {
182
+ this._multiDisplayProvider.addObserver(this._handleSecondaryWindowEventObserver);
183
+ }
184
+ this._userInfo = userControl.getLocalUser();
185
+ (0, _mobx.runInAction)(function () {
186
+ _this.userCount = _this._userControl.getAllUserCount();
187
+ // this._annotationProvider.initAnnotationWindow();
188
+ });
189
+ this._disposers.push((0, _mobx.reaction)(function () {
190
+ return _this._sharedSettingDataSource.settingConfig.setting.isDualDisplayMode;
191
+ }, function (isDualDisplayMode) {
192
+ console.log('isDualDisplayMode =>', isDualDisplayMode);
193
+ _this.interceptClose = isDualDisplayMode;
194
+ }));
195
+ }
196
+ return (0, _createClass2["default"])(DialogStore, [{
197
+ key: "openedDialogs",
198
+ get: function get() {
199
+ return _classPrivateFieldGet(_A, this);
200
+ },
201
+ set: function set(v) {
202
+ _classPrivateFieldSet(_A, this, v);
203
+ }
204
+ }, {
205
+ key: "confirmDialogs",
206
+ get: function get() {
207
+ return _classPrivateFieldGet(_B, this);
208
+ },
209
+ set: function set(v) {
210
+ _classPrivateFieldSet(_B, this, v);
211
+ }
212
+ }, {
213
+ key: "userCount",
214
+ get: function get() {
215
+ return _classPrivateFieldGet(_C, this);
216
+ },
217
+ set: function set(v) {
218
+ _classPrivateFieldSet(_C, this, v);
219
+ }
220
+ }, {
221
+ key: "participantElectronDialogContainer",
222
+ get: function get() {
223
+ return _classPrivateFieldGet(_D, this);
224
+ },
225
+ set: function set(v) {
226
+ _classPrivateFieldSet(_D, this, v);
227
+ }
228
+ }, {
229
+ key: "currentDialogBounds",
230
+ get: function get() {
231
+ return _classPrivateFieldGet(_E, this);
232
+ },
233
+ set: function set(v) {
234
+ _classPrivateFieldSet(_E, this, v);
235
+ }
236
+ }, {
237
+ key: "videoWindowBounds",
238
+ get: function get() {
239
+ return _classPrivateFieldGet(_F, this);
240
+ },
241
+ set: function set(v) {
242
+ _classPrivateFieldSet(_F, this, v);
243
+ }
244
+ }, {
245
+ key: "recordShareBounds",
246
+ get: function get() {
247
+ return _classPrivateFieldGet(_G, this);
248
+ },
249
+ set: function set(v) {
250
+ _classPrivateFieldSet(_G, this, v);
251
+ }
252
+ }, {
253
+ key: "allApplicationWindows",
254
+ get: function get() {
255
+ return _classPrivateFieldGet(_H, this);
256
+ },
257
+ set: function set(v) {
258
+ _classPrivateFieldSet(_H, this, v);
259
+ }
260
+ }, {
261
+ key: "interceptClose",
262
+ get: function get() {
263
+ return _classPrivateFieldGet(_I, this);
264
+ },
265
+ set: function set(v) {
266
+ _classPrivateFieldSet(_I, this, v);
267
+ }
268
+ }, {
269
+ key: "currentShareId",
270
+ get: function get() {
271
+ return this._sharedScreenShareSharedDataSource.currentShareId;
272
+ }
273
+ }, {
274
+ key: "currentShareType",
275
+ get: function get() {
276
+ return this._sharedScreenShareSharedDataSource.currentShareType;
277
+ }
278
+ }, {
279
+ key: "currentShareBounds",
280
+ get: function get() {
281
+ return this._sharedScreenShareSharedDataSource.currentSelectionBounds;
282
+ }
283
+ }, {
284
+ key: "dialogComponentMapByKey",
285
+ get: function get() {
286
+ return this._dialogComponentMapByKey;
287
+ }
288
+ }, {
289
+ key: "participantCount",
290
+ get: function get() {
291
+ return this.userCount;
292
+ }
293
+ }, {
294
+ key: "isManager",
295
+ get: function get() {
296
+ return this._userInfo.userRole === _type.FcrUserRole.HOST;
297
+ }
298
+ }, {
299
+ key: "dialogs",
300
+ get: function get() {
301
+ return this.openedDialogs.length > 1 && this.openedDialogs.some(function (_ref3) {
302
+ var dialogKey = _ref3.dialogKey;
303
+ dialogKey === _constant.FcrUIDialogKey.SYSTEM_PREFERENCE;
304
+ }) ? this.openedDialogs.filter(function (dialog) {
305
+ return dialog.dialogKey === _constant.FcrUIDialogKey.SYSTEM_PREFERENCE;
306
+ }) : this.openedDialogs;
307
+ }
308
+ }, {
309
+ key: "streamControl",
310
+ get: function get() {
311
+ return this._streamControl;
312
+ }
313
+ }, {
314
+ key: "deviceStore",
315
+ get: function get() {
316
+ return this._deviceStore;
317
+ }
318
+ }, {
319
+ key: "remoteVideoRenderManager",
320
+ get: function get() {
321
+ return this._remoteVideoRenderManager;
322
+ }
323
+ }, {
324
+ key: "localVideoRenderProvider",
325
+ get: function get() {
326
+ return this._localVideoRenderProvider;
327
+ }
328
+ }, {
329
+ key: "waitingRoomState",
330
+ get: function get() {
331
+ return this._securityStore.isWaitingRoomEnabled();
332
+ }
333
+ }, {
334
+ key: "isMultiDisplayActive",
335
+ get: function get() {
336
+ if (this._multiDisplayProvider) {
337
+ return this._multiDisplayProvider.isActive;
338
+ }
339
+ return false;
340
+ }
341
+ }, {
342
+ key: "connectType",
343
+ get: function get() {
344
+ return this._deviceStore.connectType;
345
+ }
346
+ }, {
347
+ key: "hasOwnPstnStream",
348
+ get: function get() {
349
+ return this._phoneAudioConnectorProvider.hasOwnPstnStream;
350
+ }
351
+ }, {
352
+ key: "widgetDialogIds",
353
+ get: function get() {
354
+ return this._widgetProvider.dialogIds;
355
+ }
356
+ }, {
357
+ key: "chatRoomState",
358
+ get: function get() {
359
+ return this._chatProvider.chatConnectionState;
360
+ }
361
+ }, {
362
+ key: "isSharingScreen",
363
+ get: function get() {
364
+ return this._sharedScreenShareSharedDataSource.isSharingScreen;
365
+ }
366
+ }, {
367
+ key: "isSharingScreenOwner",
368
+ get: function get() {
369
+ var _this$_sharedScreenSh;
370
+ return ((_this$_sharedScreenSh = this._sharedScreenShareSharedDataSource.screenSharingOwner) === null || _this$_sharedScreenSh === void 0 ? void 0 : _this$_sharedScreenSh.userId) === this._userInfo.userId;
371
+ }
372
+ }, {
373
+ key: "setConfirmPosition",
374
+ value: function setConfirmPosition(position) {
375
+ this._sharedConfirmDataSource.setPosition(position);
376
+ }
377
+ }, {
378
+ key: "setParticipantElectronDialogContainer",
379
+ value: function setParticipantElectronDialogContainer(dom) {
380
+ this.participantElectronDialogContainer = dom;
381
+ }
382
+ }, {
383
+ key: "setVideoWindowBounds",
384
+ value: function setVideoWindowBounds(payload) {
385
+ this.videoWindowBounds = payload;
386
+ }
387
+ }, {
388
+ key: "closeDialogByKey",
389
+ value: function closeDialogByKey(dialogKey) {
390
+ var _this$openedDialogs$f;
391
+ var dialogId = (_this$openedDialogs$f = this.openedDialogs.find(function (dialog) {
392
+ return dialog.dialogKey === dialogKey;
393
+ })) === null || _this$openedDialogs$f === void 0 ? void 0 : _this$openedDialogs$f.dialogId;
394
+ dialogId && this._dialogProvider.closeDialog(dialogId);
395
+ }
396
+ }, {
397
+ key: "closeDilaogByDialogId",
398
+ value: function closeDilaogByDialogId(dialogId) {
399
+ var _this$openedDialogs$f2;
400
+ var id = (_this$openedDialogs$f2 = this.openedDialogs.find(function (dialog) {
401
+ return dialog.dialogId === dialogId;
402
+ })) === null || _this$openedDialogs$f2 === void 0 ? void 0 : _this$openedDialogs$f2.dialogId;
403
+ id && this._dialogProvider.closeDialog(id);
404
+ }
405
+ }, {
406
+ key: "closeSystemPreferenceDialog",
407
+ value: function closeSystemPreferenceDialog() {
408
+ this.closeDialogByKey(_constant.FcrUIDialogKey.SYSTEM_PREFERENCE);
409
+ }
410
+ }, {
411
+ key: "closeChatFromDialog",
412
+ value: function closeChatFromDialog() {
413
+ this.closeDialogByKey(_constant.FcrUIDialogKey.CHAT);
414
+ this._sharedLayoutDataSource.setAsideLayout({
415
+ chat: false
416
+ });
417
+ }
418
+ }, {
419
+ key: "moveChatFromDialogToAside",
420
+ value: function moveChatFromDialogToAside() {
421
+ this.closeChatFromDialog();
422
+ this._sharedLayoutDataSource.setChatRenderAt('aside');
423
+ this._sharedLayoutDataSource.setAsideLayout({
424
+ chat: true
425
+ });
426
+ }
427
+ }, {
428
+ key: "closeConnectionDialog",
429
+ value: function closeConnectionDialog() {
430
+ return this._dialogProvider.emitIntercepter(_dialogProvider.FcrDialogInterceptorEventName.ON_CLOSE, _constant.FcrUIDialogKey.CONNECTION_GATEWAY);
431
+ }
432
+ }, {
433
+ key: "closeParticipantDialog",
434
+ value: function closeParticipantDialog() {
435
+ this.closeDialogByKey(_constant.FcrUIDialogKey.PARTICIPANT);
436
+ this._sharedLayoutDataSource.setAsideLayout({
437
+ participant: false
438
+ });
439
+ }
440
+ }, {
441
+ key: "moveParticipantFromDialogToAside",
442
+ value: function moveParticipantFromDialogToAside() {
443
+ this.closeParticipantDialog();
444
+ this._sharedLayoutDataSource.setParticipantsRenderAt('aside');
445
+ this._sharedLayoutDataSource.setAsideLayout({
446
+ participant: true
447
+ });
448
+ }
449
+ }, {
450
+ key: "release",
451
+ value: function release() {
452
+ this._userControl.removeObserver(this._userObserver);
453
+ this._dialogProvider.removeObserver(this._handleDialogEventObserver);
454
+ this._eventProvider.removeObserver(this._handleDialogEventObserver);
455
+ this._roomProvider.removeObserver(this._roomObserver);
456
+ if (this._multiDisplayProvider) {
457
+ this._multiDisplayProvider.removeObserver(this._handleSecondaryWindowEventObserver);
458
+ }
459
+ this._disposers.forEach(function (disposer) {
460
+ return disposer();
461
+ });
462
+ dialogWindows.clear();
463
+ }
464
+ }, {
465
+ key: "resizeVideoWindow",
466
+ value: function resizeVideoWindow(width, height) {
467
+ this._eventProvider.sendEvent(_constant.FcrUIAction.VIDEO_WINDOW_RESIZE, {
468
+ width: width,
469
+ height: height
470
+ });
471
+ }
472
+ }, {
473
+ key: "recordCurrentSharingScreenBounds",
474
+ value: function recordCurrentSharingScreenBounds() {
475
+ var recordShareBounds = this.recordShareBounds;
476
+ var currentShareBounds = this.currentShareBounds;
477
+ var screenBounds = undefined;
478
+ if (recordShareBounds.has(currentShareBounds)) {
479
+ var _window$runtime$scree;
480
+ var _ref4 = recordShareBounds.get(currentShareBounds),
481
+ ox = _ref4.x,
482
+ oy = _ref4.y,
483
+ bounds = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
484
+ var _ref5 = ((_window$runtime$scree = window.runtime.screen.getAllDisplays().find(function (display) {
485
+ return bounds.displayId === display.id;
486
+ })) === null || _window$runtime$scree === void 0 ? void 0 : _window$runtime$scree.bounds) || {
487
+ x: ox,
488
+ y: oy
489
+ },
490
+ x = _ref5.x,
491
+ y = _ref5.y;
492
+ screenBounds = _objectSpread({
493
+ x: x,
494
+ y: y
495
+ }, bounds);
496
+ this.logger.info('recordCurrentSharingScreenBounds is called and the recordShareBounds has currentShareBounds value, the value is', screenBounds);
497
+ } else {
498
+ recordShareBounds.clear();
499
+ screenBounds = (0, _dialogUtils.getCurrentSharingWorkArea)({
500
+ currentShareBounds: this.currentShareBounds
501
+ });
502
+ recordShareBounds.set(currentShareBounds, screenBounds);
503
+ this.logger.info('recordCurrentSharingScreenBounds is called and the recordShareBounds is initialled, the value is', screenBounds);
504
+ }
505
+ return screenBounds;
506
+ }
507
+ }, {
508
+ key: "moveMainWindowToIndexLeastDisplay",
509
+ value: function moveMainWindowToIndexLeastDisplay() {
510
+ if (this._multiDisplayProvider) {
511
+ this._multiDisplayProvider.moveMainWindowToIndexLeastDisplay();
512
+ }
513
+ }
514
+ }, {
515
+ key: "log",
516
+ value: function log(info) {
517
+ this.logger.info(info);
518
+ }
519
+ }, {
520
+ key: "_handleDialogEvent",
521
+ value: function _handleDialogEvent(action, payload) {
522
+ var _ref6 = payload || {},
523
+ dialogKey = _ref6.dialogKey,
524
+ dialogId = _ref6.dialogId,
525
+ _ref6$params = _ref6.params,
526
+ params = _ref6$params === void 0 ? {} : _ref6$params;
527
+ var openInFragments = [_constant.FcrUIDialogKey.ANNOTATION];
528
+ switch (action) {
529
+ case _constant.FcrUIAction.OPEN_DIALOG:
530
+ // 如果 dialogKey 是 openInFragments 中的一个,则打开 Fragment 窗口
531
+ if ((0, _env.isElectron)()) {
532
+ if (openInFragments.includes(dialogKey)) {
533
+ this._electronDialogs.set(dialogId, dialogKey);
534
+ window.runtime.open(dialogKey, dialogId);
535
+ return;
536
+ }
537
+ }
538
+ this.logger.info("[dialog]: open dialog with dialogKey: ".concat(dialogKey, ", dialogId: ").concat(dialogId));
539
+ var currentDialog = this.openedDialogs.find(function (dialog) {
540
+ return dialog.dialogId === dialogId;
541
+ });
542
+ if (currentDialog) {
543
+ this.logger.info("[dialog]: find dialog with ".concat(dialogIdWindows.has(dialogId) ? 'dialogId' : 'dialogKey', ": ").concat(dialogKey, ", focus it"));
544
+ if (dialogIdWindows.has(dialogId)) {
545
+ var _window = dialogIdWindows.get(dialogId);
546
+ _window === null || _window === void 0 || _window.show();
547
+ _window === null || _window === void 0 || _window.focus();
548
+ } else {
549
+ var _window2 = dialogWindows.get(dialogKey);
550
+ _window2 === null || _window2 === void 0 || _window2.show();
551
+ _window2 === null || _window2 === void 0 || _window2.focus();
552
+ }
553
+ } else {
554
+ this.logger.info("[dialog]: can't find dialog with dialogKey: ".concat(dialogKey, " or dialogId: ").concat(dialogId, ", push to openedDialogs"));
555
+ this.openedDialogs.push({
556
+ dialogKey: dialogKey,
557
+ dialogId: dialogId,
558
+ params: params
559
+ });
560
+ }
561
+ break;
562
+ case _constant.FcrUIAction.CLOSE_DIALOG:
563
+ if ((0, _env.isElectron)()) {
564
+ var electronDialogKey = this._electronDialogs.get(dialogId);
565
+ if (electronDialogKey && openInFragments.includes(electronDialogKey)) {
566
+ window.runtime.close(electronDialogKey, dialogId);
567
+ return;
568
+ }
569
+ }
570
+ this.openedDialogs = this.openedDialogs.filter(function (dialog) {
571
+ return dialog.dialogId !== dialogId;
572
+ });
573
+ this.closeDialogByKey(dialogKey);
574
+ break;
575
+ case _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS:
576
+ this.setVideoWindowBounds(payload);
577
+ break;
578
+ case _constant.FcrUIAction.SET_DIALOG_BOUNDS:
579
+ var _ref7 = payload,
580
+ height = _ref7.height;
581
+ if (dialogKey) this.currentDialogBounds.set(dialogKey, height);
582
+ break;
583
+ }
584
+ }
585
+ }, {
586
+ key: "_hanleAllUserCountUpdated",
587
+ value: function _hanleAllUserCountUpdated(_roomId, count) {
588
+ this.userCount = count;
589
+ }
590
+ }, {
591
+ key: "_handleSecondaryWindowEvent",
592
+ value: function _handleSecondaryWindowEvent(distribution) {
593
+ if (distribution.secondaryWindow.type === _type2.FcrUIDisplayDistributionContentType.HIDDEN) {
594
+ this.interceptClose = false;
595
+ }
596
+ }
597
+ }, {
598
+ key: "_setInterceptClose",
599
+ value: function _setInterceptClose() {
600
+ this.interceptClose = false;
601
+ }
602
+ }]);
603
+ }();
604
+ _DialogStore = DialogStore;
605
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_DialogStore, [[_mobx.observable, 1, "openedDialogs"], [_mobx.observable, 1, "confirmDialogs"], [_mobx.observable, 1, "userCount"], [_mobx.observable, 1, "participantElectronDialogContainer"], [_mobx.observable, 1, "currentDialogBounds"], [_mobx.observable, 1, "videoWindowBounds"], [_mobx.observable, 1, "recordShareBounds"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "interceptClose"], [_mobx.computed, 3, "connectType"], [_mobx.computed, 3, "hasOwnPstnStream"], [_mobx.computed, 3, "chatRoomState"], [_mobx.computed, 3, "isSharingScreen"], [_setConfirmPositionDecs, 18, "setConfirmPosition"], [_mobx.action, 2, "setParticipantElectronDialogContainer"], [_setVideoWindowBoundsDecs, 18, "setVideoWindowBounds"], [_decorator.bound, 2, "closeDialogByKey"], [_decorator.bound, 2, "closeDilaogByDialogId"], [_decorator.bound, 2, "closeSystemPreferenceDialog"], [_decorator.bound, 2, "closeChatFromDialog"], [_decorator.bound, 2, "moveChatFromDialogToAside"], [_decorator.bound, 2, "closeConnectionDialog"], [_decorator.bound, 2, "closeParticipantDialog"], [_decorator.bound, 2, "moveParticipantFromDialogToAside"], [_decorator.bound, 2, "resizeVideoWindow"], [_recordCurrentSharingScreenBoundsDecs, 18, "recordCurrentSharingScreenBounds"], [_decorator.bound, 2, "moveMainWindowToIndexLeastDisplay"], [_decorator.bound, 2, "log"], [_handleDialogEventDecs, 18, "_handleDialogEvent"], [_hanleAllUserCountUpdatedDecs, 18, "_hanleAllUserCountUpdated"], [_handleSecondaryWindowEventDecs, 18, "_handleSecondaryWindowEvent"], [_setInterceptCloseDecs, 18, "_setInterceptClose"]], []).e, 10);
606
+ _init_openedDialogs = _applyDecs$e[0];
607
+ _init_confirmDialogs = _applyDecs$e[1];
608
+ _init_userCount = _applyDecs$e[2];
609
+ _init_participantElectronDialogContainer = _applyDecs$e[3];
610
+ _init_currentDialogBounds = _applyDecs$e[4];
611
+ _init_videoWindowBounds = _applyDecs$e[5];
612
+ _init_recordShareBounds = _applyDecs$e[6];
613
+ _init_allApplicationWindows = _applyDecs$e[7];
614
+ _init_interceptClose = _applyDecs$e[8];
615
+ _initProto = _applyDecs$e[9];
616
+ var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
@@ -0,0 +1,4 @@
1
+ import { ConfirmContentProps } from 'agora-ui-foundation/lib/components/confirm-content';
2
+ export declare const ConfirmWindow: ({ confirm }: {
3
+ confirm: ConfirmContentProps;
4
+ }) => import("react/jsx-runtime").JSX.Element;