fcr-ui-scene-mobile 3.8.1-beta → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/lib-es/assets/ground_glass_bg.png +0 -0
  2. package/lib-es/base.js +34 -0
  3. package/lib-es/common/device-store.js +635 -0
  4. package/lib-es/common/device-stream-store.js +292 -0
  5. package/lib-es/common/event-store.js +243 -0
  6. package/lib-es/common/global-context.js +2 -0
  7. package/lib-es/common/member-list-data-source.js +291 -0
  8. package/lib-es/common/participant-store.js +1534 -0
  9. package/lib-es/common/security-store.js +938 -0
  10. package/lib-es/common/setting-store.js +782 -0
  11. package/lib-es/common/type.js +15 -0
  12. package/lib-es/config/default-config.js +36 -0
  13. package/lib-es/config/setting-config.js +10 -0
  14. package/lib-es/creator.js +102 -0
  15. package/lib-es/error-fallback.js +13 -0
  16. package/lib-es/global.d.ts +8 -0
  17. package/lib-es/hooks/meeting-time.js +96 -0
  18. package/lib-es/hooks/useIsNodePresent.js +46 -0
  19. package/lib-es/hooks/useOnRefMount.js +19 -0
  20. package/lib-es/index.js +14 -0
  21. package/lib-es/mobile-global.css +28 -0
  22. package/lib-es/modules/action-bar/bottom-icons.js +153 -0
  23. package/lib-es/modules/action-bar/context.js +2 -0
  24. package/lib-es/modules/action-bar/index.css +33 -0
  25. package/lib-es/modules/action-bar/index.js +38 -0
  26. package/lib-es/modules/action-bar/member-list-popup/attendee/index.css +130 -0
  27. package/lib-es/modules/action-bar/member-list-popup/attendee/index.js +247 -0
  28. package/lib-es/modules/action-bar/member-list-popup/attendee/list.js +63 -0
  29. package/lib-es/modules/action-bar/member-list-popup/index.css +35 -0
  30. package/lib-es/modules/action-bar/member-list-popup/index.js +33 -0
  31. package/lib-es/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
  32. package/lib-es/modules/action-bar/member-list-popup/participant-more-actions/index.js +48 -0
  33. package/lib-es/modules/action-bar/more-popup/index.css +71 -0
  34. package/lib-es/modules/action-bar/more-popup/index.js +119 -0
  35. package/lib-es/modules/action-bar/store.js +1343 -0
  36. package/lib-es/modules/action-bar/type.js +6 -0
  37. package/lib-es/modules/action-bar/view.js +68 -0
  38. package/lib-es/modules/audio-stream/index.js +125 -0
  39. package/lib-es/modules/chat/chat-bar/index.css +97 -0
  40. package/lib-es/modules/chat/chat-bar/index.js +115 -0
  41. package/lib-es/modules/chat/chat-notification/index.css +71 -0
  42. package/lib-es/modules/chat/chat-notification/index.js +67 -0
  43. package/lib-es/modules/chat/chat-select/index.css +183 -0
  44. package/lib-es/modules/chat/chat-select/index.js +213 -0
  45. package/lib-es/modules/chat/contex.js +2 -0
  46. package/lib-es/modules/chat/demo-wrapper.js +35 -0
  47. package/lib-es/modules/chat/index.css +109 -0
  48. package/lib-es/modules/chat/index.dev.js +55 -0
  49. package/lib-es/modules/chat/index.js +196 -0
  50. package/lib-es/modules/chat/message-list.js +605 -0
  51. package/lib-es/modules/chat/mock.js +276 -0
  52. package/lib-es/modules/chat/store.js +1094 -0
  53. package/lib-es/modules/chat/util.js +62 -0
  54. package/lib-es/modules/chat/view.js +406 -0
  55. package/lib-es/modules/layout/bottom-drawer/index.css +34 -0
  56. package/lib-es/modules/layout/bottom-drawer/index.js +110 -0
  57. package/lib-es/modules/layout/components/Layout.js +76 -0
  58. package/lib-es/modules/layout/components/equip-request-popup/index.css +30 -0
  59. package/lib-es/modules/layout/components/equip-request-popup/index.js +71 -0
  60. package/lib-es/modules/layout/components/index.css +78 -0
  61. package/lib-es/modules/layout/components/index.js +2 -0
  62. package/lib-es/modules/layout/context.js +2 -0
  63. package/lib-es/modules/layout/drawer-header/index.css +27 -0
  64. package/lib-es/modules/layout/drawer-header/index.js +46 -0
  65. package/lib-es/modules/layout/index.css +22 -0
  66. package/lib-es/modules/layout/index.js +39 -0
  67. package/lib-es/modules/layout/store.js +372 -0
  68. package/lib-es/modules/layout/type.js +47 -0
  69. package/lib-es/modules/layout/view.js +3 -0
  70. package/lib-es/modules/member-layout/context.js +2 -0
  71. package/lib-es/modules/member-layout/data.js +316 -0
  72. package/lib-es/modules/member-layout/grid/index.css +98 -0
  73. package/lib-es/modules/member-layout/grid/index.js +299 -0
  74. package/lib-es/modules/member-layout/index.css +88 -0
  75. package/lib-es/modules/member-layout/index.js +37 -0
  76. package/lib-es/modules/member-layout/share-toast/index.css +30 -0
  77. package/lib-es/modules/member-layout/share-toast/index.js +35 -0
  78. package/lib-es/modules/member-layout/speaker/index.css +30 -0
  79. package/lib-es/modules/member-layout/speaker/index.js +20 -0
  80. package/lib-es/modules/member-layout/store.js +521 -0
  81. package/lib-es/modules/member-layout/user/index.css +125 -0
  82. package/lib-es/modules/member-layout/user/index.js +351 -0
  83. package/lib-es/modules/member-layout/user/types.js +1 -0
  84. package/lib-es/modules/member-layout/view.js +203 -0
  85. package/lib-es/modules/state-bar/context.js +2 -0
  86. package/lib-es/modules/state-bar/index.css +79 -0
  87. package/lib-es/modules/state-bar/index.js +47 -0
  88. package/lib-es/modules/state-bar/leaving-room/index.css +14 -0
  89. package/lib-es/modules/state-bar/leaving-room/index.js +31 -0
  90. package/lib-es/modules/state-bar/meeting-detail/index.css +72 -0
  91. package/lib-es/modules/state-bar/meeting-detail/index.js +51 -0
  92. package/lib-es/modules/state-bar/meeting-detail/meeting-info/copy.js +74 -0
  93. package/lib-es/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
  94. package/lib-es/modules/state-bar/meeting-detail/meeting-info/index.js +176 -0
  95. package/lib-es/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
  96. package/lib-es/modules/state-bar/meeting-detail/net-quality/index.js +81 -0
  97. package/lib-es/modules/state-bar/store.js +543 -0
  98. package/lib-es/modules/state-bar/view.js +212 -0
  99. package/lib-es/modules/whiteboard/app.js +33 -0
  100. package/lib-es/modules/whiteboard/components/control-bar/index.css +53 -0
  101. package/lib-es/modules/whiteboard/components/control-bar/index.js +148 -0
  102. package/lib-es/modules/whiteboard/components/control-bar/store.js +280 -0
  103. package/lib-es/modules/whiteboard/components/loading/index.css +76 -0
  104. package/lib-es/modules/whiteboard/components/loading/index.js +60 -0
  105. package/lib-es/modules/whiteboard/components/loading/loading.png +0 -0
  106. package/lib-es/modules/whiteboard/components/multi-window/index.css +65 -0
  107. package/lib-es/modules/whiteboard/components/multi-window/index.js +31 -0
  108. package/lib-es/modules/whiteboard/components/pagination/index.css +228 -0
  109. package/lib-es/modules/whiteboard/components/pagination/index.js +155 -0
  110. package/lib-es/modules/whiteboard/components/pagination/store.js +10 -0
  111. package/lib-es/modules/whiteboard/components/progress/index.js +36 -0
  112. package/lib-es/modules/whiteboard/components/progress/style.css +52 -0
  113. package/lib-es/modules/whiteboard/components/scene-pagination.js +23 -0
  114. package/lib-es/modules/whiteboard/components/switch-theme/index.css +98 -0
  115. package/lib-es/modules/whiteboard/components/switch-theme/index.js +79 -0
  116. package/lib-es/modules/whiteboard/components/switch-theme/item.js +46 -0
  117. package/lib-es/modules/whiteboard/components/switch-theme/libs.js +22 -0
  118. package/lib-es/modules/whiteboard/components/toolbar/ style.css +588 -0
  119. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +30 -0
  120. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +100 -0
  121. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +51 -0
  122. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/index.js +38 -0
  123. package/lib-es/modules/whiteboard/components/toolbar/components/eraser-picker.js +81 -0
  124. package/lib-es/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +46 -0
  125. package/lib-es/modules/whiteboard/components/toolbar/components/history.js +39 -0
  126. package/lib-es/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +32 -0
  127. package/lib-es/modules/whiteboard/components/toolbar/components/icons/move-icon.js +59 -0
  128. package/lib-es/modules/whiteboard/components/toolbar/components/move-handle.js +125 -0
  129. package/lib-es/modules/whiteboard/components/toolbar/components/pen-picker.js +97 -0
  130. package/lib-es/modules/whiteboard/components/toolbar/components/shape-picker.js +158 -0
  131. package/lib-es/modules/whiteboard/components/toolbar/hooks/index.js +201 -0
  132. package/lib-es/modules/whiteboard/components/toolbar/index.js +164 -0
  133. package/lib-es/modules/whiteboard/components/toolbar/store.js +243 -0
  134. package/lib-es/modules/whiteboard/context.js +28 -0
  135. package/lib-es/modules/whiteboard/index.js +1128 -0
  136. package/lib-es/modules/whiteboard/style.css +143 -0
  137. package/lib-es/modules/whiteboard/type.js +59 -0
  138. package/lib-es/modules/whiteboard/utils.js +29 -0
  139. package/lib-es/plugins/browser-runtime-plugin.js +106 -0
  140. package/lib-es/plugins/css-preset-plugin.js +27 -0
  141. package/lib-es/plugins/module-dev-plugin.js +184 -0
  142. package/lib-es/plugins/multi-lang-plugin.js +18 -0
  143. package/lib-es/plugins/rtm-plugin.js +3 -0
  144. package/lib-es/plugins/web-rtc-plugin.js +3 -0
  145. package/lib-es/runtime.d.ts +94 -0
  146. package/lib-es/translations/enUS.js +2075 -0
  147. package/lib-es/translations/zhCN.js +2073 -0
  148. package/lib-es/type.js +36 -0
  149. package/lib-es/ui-manager.js +465 -0
  150. package/lib-es/ui-scene.js +116 -0
  151. package/lib-es/utilities/board-context.js +5 -0
  152. package/lib-es/utilities/constant.js +298 -0
  153. package/lib-es/utilities/copyText.js +36 -0
  154. package/lib-es/utilities/extract.js +109 -0
  155. package/lib-es/utilities/hooks.js +82 -0
  156. package/lib-es/utilities/lang.js +6 -0
  157. package/lib-es/utilities/logger.js +32 -0
  158. package/lib-es/utilities/meeting-detail-message.js +49 -0
  159. package/lib-es/utilities/mute-action.js +41 -0
  160. package/lib-es/utilities/package-info.js +7 -0
  161. package/lib-es/utilities/parameters.js +13 -0
  162. package/lib-es/utilities/regex.js +7 -0
  163. package/lib-es/utilities/tools.js +171 -0
  164. package/lib-es/utilities/useNamespace.js +59 -0
  165. package/package.json +10 -6
package/lib-es/base.js ADDED
@@ -0,0 +1,34 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/createClass";
3
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
+ import { createLogger } from './utilities/logger';
5
+
6
+ /**
7
+ * UI Module
8
+ */
9
+ export var UIModule = /*#__PURE__*/function () {
10
+ function UIModule() {
11
+ _classCallCheck(this, UIModule);
12
+ _defineProperty(this, "logger", createLogger({
13
+ prefix: 'UIModule'
14
+ }));
15
+ this.onLoad();
16
+ }
17
+ return _createClass(UIModule, [{
18
+ key: "release",
19
+ value: function release() {
20
+ this.onUnload();
21
+ }
22
+ }, {
23
+ key: "getComponent",
24
+ value: function getComponent(_props) {
25
+ return null;
26
+ }
27
+ }, {
28
+ key: "onLoad",
29
+ value: function onLoad() {}
30
+ }, {
31
+ key: "onUnload",
32
+ value: function onUnload() {}
33
+ }]);
34
+ }();
@@ -0,0 +1,635 @@
1
+ import _typeof from "@babel/runtime/helpers/typeof";
2
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
+ import _createClass from "@babel/runtime/helpers/createClass";
5
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
+ var _FcrDeviceStore;
7
+ var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_microphoneDetecting, _init_speakerDetecting, _init_autoPlayFailedDialogShow, _setAutoPlayFailedDialogShowDecs, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _setEditBeautyKeyDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleMicrophoneStateUpdatedDecs, _ref;
8
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
9
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
10
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
11
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
12
+ 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"); }
13
+ 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)]; } }; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); }
16
+ 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; }
17
+ 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; }
18
+ import "core-js/modules/es.symbol.js";
19
+ import "core-js/modules/es.symbol.description.js";
20
+ import "core-js/modules/es.symbol.to-primitive.js";
21
+ import "core-js/modules/es.error.cause.js";
22
+ import "core-js/modules/es.error.to-string.js";
23
+ import "core-js/modules/es.array.for-each.js";
24
+ import "core-js/modules/es.array.is-array.js";
25
+ import "core-js/modules/es.array.iterator.js";
26
+ import "core-js/modules/es.array.map.js";
27
+ import "core-js/modules/es.array.push.js";
28
+ import "core-js/modules/es.date.to-primitive.js";
29
+ import "core-js/modules/es.function.bind.js";
30
+ import "core-js/modules/es.function.name.js";
31
+ import "core-js/modules/es.map.js";
32
+ import "core-js/modules/es.number.constructor.js";
33
+ import "core-js/modules/es.object.create.js";
34
+ import "core-js/modules/es.object.define-property.js";
35
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
36
+ import "core-js/modules/es.object.to-string.js";
37
+ import "core-js/modules/es.set.js";
38
+ import "core-js/modules/es.string.iterator.js";
39
+ import "core-js/modules/es.weak-map.js";
40
+ import "core-js/modules/esnext.function.metadata.js";
41
+ import "core-js/modules/esnext.iterator.constructor.js";
42
+ import "core-js/modules/esnext.iterator.for-each.js";
43
+ import "core-js/modules/esnext.iterator.map.js";
44
+ import "core-js/modules/esnext.map.delete-all.js";
45
+ import "core-js/modules/esnext.map.emplace.js";
46
+ import "core-js/modules/esnext.map.every.js";
47
+ import "core-js/modules/esnext.map.filter.js";
48
+ import "core-js/modules/esnext.map.find.js";
49
+ import "core-js/modules/esnext.map.find-key.js";
50
+ import "core-js/modules/esnext.map.includes.js";
51
+ import "core-js/modules/esnext.map.key-of.js";
52
+ import "core-js/modules/esnext.map.map-keys.js";
53
+ import "core-js/modules/esnext.map.map-values.js";
54
+ import "core-js/modules/esnext.map.merge.js";
55
+ import "core-js/modules/esnext.map.reduce.js";
56
+ import "core-js/modules/esnext.map.some.js";
57
+ import "core-js/modules/esnext.map.update.js";
58
+ import "core-js/modules/esnext.set.add-all.js";
59
+ import "core-js/modules/esnext.set.delete-all.js";
60
+ import "core-js/modules/esnext.set.difference.v2.js";
61
+ import "core-js/modules/esnext.set.difference.js";
62
+ import "core-js/modules/esnext.set.every.js";
63
+ import "core-js/modules/esnext.set.filter.js";
64
+ import "core-js/modules/esnext.set.find.js";
65
+ import "core-js/modules/esnext.set.intersection.v2.js";
66
+ import "core-js/modules/esnext.set.intersection.js";
67
+ import "core-js/modules/esnext.set.is-disjoint-from.v2.js";
68
+ import "core-js/modules/esnext.set.is-disjoint-from.js";
69
+ import "core-js/modules/esnext.set.is-subset-of.v2.js";
70
+ import "core-js/modules/esnext.set.is-subset-of.js";
71
+ import "core-js/modules/esnext.set.is-superset-of.v2.js";
72
+ import "core-js/modules/esnext.set.is-superset-of.js";
73
+ import "core-js/modules/esnext.set.join.js";
74
+ import "core-js/modules/esnext.set.map.js";
75
+ import "core-js/modules/esnext.set.reduce.js";
76
+ import "core-js/modules/esnext.set.some.js";
77
+ import "core-js/modules/esnext.set.symmetric-difference.v2.js";
78
+ import "core-js/modules/esnext.set.symmetric-difference.js";
79
+ import "core-js/modules/esnext.set.union.v2.js";
80
+ import "core-js/modules/esnext.set.union.js";
81
+ import "core-js/modules/esnext.symbol.metadata.js";
82
+ import "core-js/modules/esnext.weak-map.delete-all.js";
83
+ import "core-js/modules/esnext.weak-map.emplace.js";
84
+ import "core-js/modules/web.dom-collections.for-each.js";
85
+ import "core-js/modules/web.dom-collections.iterator.js";
86
+ import { action, computed, observable } from 'mobx';
87
+ import { FcrDeviceType } from 'fcr-core/lib/type';
88
+ import { bound } from 'agora-foundation/lib/decorator';
89
+ import { DEFAULT_BEAUTY_VALUE } from 'agora-ui-foundation/lib/components/local-video-player';
90
+ import { AgoraObservable } from 'agora-foundation/lib/utilities/observable';
91
+ import { FcrMediaSourceState, FcrVideoRenderMode } from 'fcr-core';
92
+ import { createLogger } from '../utilities/logger';
93
+ // device id for default device (follow system)
94
+ var DEFAULT_DEVICE_ID = process.env.Dev === 'true' ? 'default' : 'default';
95
+ var mapDevice2Option = function mapDevice2Option(deviceList) {
96
+ return deviceList.map(function (item) {
97
+ return {
98
+ text: item.deviceName,
99
+ value: item.deviceId
100
+ };
101
+ });
102
+ };
103
+ var _A = /*#__PURE__*/new WeakMap();
104
+ var _B = /*#__PURE__*/new WeakMap();
105
+ var _C = /*#__PURE__*/new WeakMap();
106
+ var _D = /*#__PURE__*/new WeakMap();
107
+ var _E = /*#__PURE__*/new WeakMap();
108
+ var _F = /*#__PURE__*/new WeakMap();
109
+ var _G = /*#__PURE__*/new WeakMap();
110
+ var _H = /*#__PURE__*/new WeakMap();
111
+ var _I = /*#__PURE__*/new WeakMap();
112
+ var _J = /*#__PURE__*/new WeakMap();
113
+ var _K = /*#__PURE__*/new WeakMap();
114
+ var _L = /*#__PURE__*/new WeakMap();
115
+ var _M = /*#__PURE__*/new WeakMap();
116
+ var _N = /*#__PURE__*/new WeakMap();
117
+ var _O = /*#__PURE__*/new WeakMap();
118
+ var _P = /*#__PURE__*/new WeakMap();
119
+ var _Q = /*#__PURE__*/new WeakMap();
120
+ var _R = /*#__PURE__*/new WeakMap();
121
+ var _S = /*#__PURE__*/new WeakMap();
122
+ var _T = /*#__PURE__*/new WeakMap();
123
+ var _U = /*#__PURE__*/new WeakMap();
124
+ var _V = /*#__PURE__*/new WeakMap();
125
+ var _W = /*#__PURE__*/new WeakMap();
126
+ var _X = /*#__PURE__*/new WeakMap();
127
+ var _Y = /*#__PURE__*/new WeakMap();
128
+ var _Z = /*#__PURE__*/new WeakMap();
129
+ _ref = (_setAutoPlayFailedDialogShowDecs = [action, action.bound], _startPlayLocalVideoDecs = [action, action.bound], _stopPlayLocalVideoDecs = [action, action.bound], _setCurrentIsMirrorDecs = [action, action.bound], _toggleLocalMirrorPreviewDecs = [action, action.bound], _setCameraEnabledDecs = [action, action.bound], _setMicrophoneEnabledDecs = [action, action.bound], _toggleLocalMirrorDecs = [action, action.bound], _resetMirrorDecs = [action, action.bound], _setEditBeautyKeyDecs = [action, action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [action, action.bound], _handleMicrophoneStateUpdatedDecs = [action, action.bound], "logger");
130
+ export var FcrDeviceStore = /*#__PURE__*/function () {
131
+ function FcrDeviceStore(_userName, _mediaControl) {
132
+ _classCallCheck(this, FcrDeviceStore);
133
+ _defineProperty(this, _ref, (_initProto(this), createLogger({
134
+ prefix: 'FcrDeviceStore'
135
+ })));
136
+ _defineProperty(this, "_observable", new AgoraObservable());
137
+ _defineProperty(this, "_localVideoViewSet", new Set());
138
+ _defineProperty(this, "_defaultMirror", true);
139
+ _defineProperty(this, "_mediaObserver", {
140
+ onAutoPlayFailed: this._handleAutoPlayFailed.bind(this),
141
+ onMicrophoneVolumeIndicationUpdated: this._handleMicrophoneVolumeIndicationUpdated,
142
+ onMicrophoneStateUpdated: this._handleMicrophoneStateUpdated
143
+ });
144
+ // real microphone device id
145
+ _classPrivateFieldInitSpec(this, _A, _init__microphoneDeviceId(this, ''));
146
+ // real speaker device id
147
+ _classPrivateFieldInitSpec(this, _B, _init__speakerDeviceId(this, ''));
148
+ // 是否开启镜像
149
+ _classPrivateFieldInitSpec(this, _C, _init_currentIsMirror(this, true));
150
+ // 是否展示展示强制开启特效弹窗
151
+ _classPrivateFieldInitSpec(this, _D, _init_showForceOpenEffectDialog(this, false));
152
+ // selected camera id, it is the real device id
153
+ _classPrivateFieldInitSpec(this, _E, _init_cameraId(this, ''));
154
+ // selected microphone id, for ui display, could be 'default' or real device id
155
+ _classPrivateFieldInitSpec(this, _F, _init_microphoneId(this, 'default'));
156
+ // selected speaker id, for ui display, could be 'default' or real device id
157
+ _classPrivateFieldInitSpec(this, _G, _init_speakerId(this, ''));
158
+ _classPrivateFieldInitSpec(this, _H, _init_cameraEnabled(this, false));
159
+ _classPrivateFieldInitSpec(this, _I, _init_showCameraPreview(this, false));
160
+ _classPrivateFieldInitSpec(this, _J, _init_microphoneEnabled(this, false));
161
+ _classPrivateFieldInitSpec(this, _K, _init_cameraList(this, []));
162
+ _classPrivateFieldInitSpec(this, _L, _init_microphoneList(this, []));
163
+ _classPrivateFieldInitSpec(this, _M, _init_microphoneVolumeLevel(this, 0));
164
+ _classPrivateFieldInitSpec(this, _N, _init_speakerList(this, []));
165
+ _classPrivateFieldInitSpec(this, _O, _init_isLocalMirrorEnabled(this, true));
166
+ _classPrivateFieldInitSpec(this, _P, _init_isLocalEditBeautyOptions(this, false));
167
+ _classPrivateFieldInitSpec(this, _Q, _init_speakerVolumeLevel(this, 0));
168
+ _classPrivateFieldInitSpec(this, _R, _init_speakerVolume(this, 30));
169
+ _classPrivateFieldInitSpec(this, _S, _init_microphoneVolume(this, 100));
170
+ _classPrivateFieldInitSpec(this, _T, _init_currentVirtualBackgroundName(this, 'None'));
171
+ _classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
172
+ _classPrivateFieldInitSpec(this, _V, _init_currentBeautyKey(this, 'none'));
173
+ _classPrivateFieldInitSpec(this, _W, _init_beautyOptions(this, {
174
+ lighteningContrastLevel: 0,
175
+ lighteningLevel: DEFAULT_BEAUTY_VALUE,
176
+ smoothnessLevel: DEFAULT_BEAUTY_VALUE,
177
+ sharpnessLevel: DEFAULT_BEAUTY_VALUE,
178
+ rednessLevel: DEFAULT_BEAUTY_VALUE
179
+ }));
180
+ _classPrivateFieldInitSpec(this, _X, _init_microphoneDetecting(this, false));
181
+ _classPrivateFieldInitSpec(this, _Y, _init_speakerDetecting(this, false));
182
+ _classPrivateFieldInitSpec(this, _Z, _init_autoPlayFailedDialogShow(this, false));
183
+ this._userName = _userName;
184
+ this._mediaControl = _mediaControl;
185
+ _mediaControl.addObserver(this._mediaObserver);
186
+ }
187
+ return _createClass(FcrDeviceStore, [{
188
+ key: "_microphoneDeviceId",
189
+ get: function get() {
190
+ return _classPrivateFieldGet(_A, this);
191
+ },
192
+ set: function set(v) {
193
+ _classPrivateFieldSet(_A, this, v);
194
+ }
195
+ }, {
196
+ key: "_speakerDeviceId",
197
+ get: function get() {
198
+ return _classPrivateFieldGet(_B, this);
199
+ },
200
+ set: function set(v) {
201
+ _classPrivateFieldSet(_B, this, v);
202
+ }
203
+ }, {
204
+ key: "currentIsMirror",
205
+ get: function get() {
206
+ return _classPrivateFieldGet(_C, this);
207
+ },
208
+ set: function set(v) {
209
+ _classPrivateFieldSet(_C, this, v);
210
+ }
211
+ }, {
212
+ key: "showForceOpenEffectDialog",
213
+ get: function get() {
214
+ return _classPrivateFieldGet(_D, this);
215
+ },
216
+ set: function set(v) {
217
+ _classPrivateFieldSet(_D, this, v);
218
+ }
219
+ }, {
220
+ key: "cameraId",
221
+ get: function get() {
222
+ return _classPrivateFieldGet(_E, this);
223
+ },
224
+ set: function set(v) {
225
+ _classPrivateFieldSet(_E, this, v);
226
+ }
227
+ }, {
228
+ key: "microphoneId",
229
+ get: function get() {
230
+ return _classPrivateFieldGet(_F, this);
231
+ },
232
+ set: function set(v) {
233
+ _classPrivateFieldSet(_F, this, v);
234
+ }
235
+ }, {
236
+ key: "speakerId",
237
+ get: function get() {
238
+ return _classPrivateFieldGet(_G, this);
239
+ },
240
+ set: function set(v) {
241
+ _classPrivateFieldSet(_G, this, v);
242
+ }
243
+ }, {
244
+ key: "cameraEnabled",
245
+ get: function get() {
246
+ return _classPrivateFieldGet(_H, this);
247
+ },
248
+ set: function set(v) {
249
+ _classPrivateFieldSet(_H, this, v);
250
+ }
251
+ }, {
252
+ key: "showCameraPreview",
253
+ get: function get() {
254
+ return _classPrivateFieldGet(_I, this);
255
+ },
256
+ set: function set(v) {
257
+ _classPrivateFieldSet(_I, this, v);
258
+ }
259
+ }, {
260
+ key: "microphoneEnabled",
261
+ get: function get() {
262
+ return _classPrivateFieldGet(_J, this);
263
+ },
264
+ set: function set(v) {
265
+ _classPrivateFieldSet(_J, this, v);
266
+ }
267
+ }, {
268
+ key: "cameraList",
269
+ get: function get() {
270
+ return _classPrivateFieldGet(_K, this);
271
+ },
272
+ set: function set(v) {
273
+ _classPrivateFieldSet(_K, this, v);
274
+ }
275
+ }, {
276
+ key: "microphoneList",
277
+ get: function get() {
278
+ return _classPrivateFieldGet(_L, this);
279
+ },
280
+ set: function set(v) {
281
+ _classPrivateFieldSet(_L, this, v);
282
+ }
283
+ }, {
284
+ key: "microphoneVolumeLevel",
285
+ get: function get() {
286
+ return _classPrivateFieldGet(_M, this);
287
+ },
288
+ set: function set(v) {
289
+ _classPrivateFieldSet(_M, this, v);
290
+ }
291
+ }, {
292
+ key: "speakerList",
293
+ get: function get() {
294
+ return _classPrivateFieldGet(_N, this);
295
+ },
296
+ set: function set(v) {
297
+ _classPrivateFieldSet(_N, this, v);
298
+ }
299
+ }, {
300
+ key: "isLocalMirrorEnabled",
301
+ get: function get() {
302
+ return _classPrivateFieldGet(_O, this);
303
+ },
304
+ set: function set(v) {
305
+ _classPrivateFieldSet(_O, this, v);
306
+ }
307
+ }, {
308
+ key: "isLocalEditBeautyOptions",
309
+ get: function get() {
310
+ return _classPrivateFieldGet(_P, this);
311
+ },
312
+ set: function set(v) {
313
+ _classPrivateFieldSet(_P, this, v);
314
+ }
315
+ }, {
316
+ key: "speakerVolumeLevel",
317
+ get: function get() {
318
+ return _classPrivateFieldGet(_Q, this);
319
+ },
320
+ set: function set(v) {
321
+ _classPrivateFieldSet(_Q, this, v);
322
+ }
323
+ }, {
324
+ key: "speakerVolume",
325
+ get: function get() {
326
+ return _classPrivateFieldGet(_R, this);
327
+ },
328
+ set: function set(v) {
329
+ _classPrivateFieldSet(_R, this, v);
330
+ }
331
+ }, {
332
+ key: "microphoneVolume",
333
+ get: function get() {
334
+ return _classPrivateFieldGet(_S, this);
335
+ },
336
+ set: function set(v) {
337
+ _classPrivateFieldSet(_S, this, v);
338
+ }
339
+ }, {
340
+ key: "currentVirtualBackgroundName",
341
+ get: function get() {
342
+ return _classPrivateFieldGet(_T, this);
343
+ },
344
+ set: function set(v) {
345
+ _classPrivateFieldSet(_T, this, v);
346
+ }
347
+ }, {
348
+ key: "enableBeauty",
349
+ get: function get() {
350
+ return _classPrivateFieldGet(_U, this);
351
+ },
352
+ set: function set(v) {
353
+ _classPrivateFieldSet(_U, this, v);
354
+ }
355
+ }, {
356
+ key: "currentBeautyKey",
357
+ get: function get() {
358
+ return _classPrivateFieldGet(_V, this);
359
+ },
360
+ set: function set(v) {
361
+ _classPrivateFieldSet(_V, this, v);
362
+ }
363
+ }, {
364
+ key: "beautyOptions",
365
+ get: function get() {
366
+ return _classPrivateFieldGet(_W, this);
367
+ },
368
+ set: function set(v) {
369
+ _classPrivateFieldSet(_W, this, v);
370
+ }
371
+ }, {
372
+ key: "microphoneDetecting",
373
+ get: function get() {
374
+ return _classPrivateFieldGet(_X, this);
375
+ },
376
+ set: function set(v) {
377
+ _classPrivateFieldSet(_X, this, v);
378
+ }
379
+ }, {
380
+ key: "speakerDetecting",
381
+ get: function get() {
382
+ return _classPrivateFieldGet(_Y, this);
383
+ },
384
+ set: function set(v) {
385
+ _classPrivateFieldSet(_Y, this, v);
386
+ }
387
+ }, {
388
+ key: "autoPlayFailedDialogShow",
389
+ get: function get() {
390
+ return _classPrivateFieldGet(_Z, this);
391
+ },
392
+ set: function set(v) {
393
+ _classPrivateFieldSet(_Z, this, v);
394
+ }
395
+ }, {
396
+ key: "defaultMirror",
397
+ get: function get() {
398
+ return this._defaultMirror;
399
+ }
400
+ }, {
401
+ key: "userName",
402
+ get: function get() {
403
+ return this._userName;
404
+ }
405
+ }, {
406
+ key: "followSystemMicrophoneDevice",
407
+ get: function get() {
408
+ return this.microphoneId === DEFAULT_DEVICE_ID;
409
+ }
410
+ }, {
411
+ key: "followSystemSpeakerDevice",
412
+ get: function get() {
413
+ return this.speakerId === DEFAULT_DEVICE_ID;
414
+ }
415
+ }, {
416
+ key: "cameraDeviceList",
417
+ get: function get() {
418
+ return mapDevice2Option(this.cameraList);
419
+ }
420
+ }, {
421
+ key: "microphoneDeviceList",
422
+ get: function get() {
423
+ return mapDevice2Option(this.microphoneList);
424
+ }
425
+ }, {
426
+ key: "speakerDeviceList",
427
+ get: function get() {
428
+ return mapDevice2Option(this.speakerList);
429
+ }
430
+ }, {
431
+ key: "currentDeviceId",
432
+ get: function get() {
433
+ return {
434
+ cameraDeviceId: this.cameraId,
435
+ microphoneDeviceId: this._microphoneDeviceId,
436
+ speakerDeviceId: this._speakerDeviceId
437
+ };
438
+ }
439
+ }, {
440
+ key: "addObserver",
441
+ value: function addObserver(observer) {
442
+ this._observable.addObserver(observer);
443
+ }
444
+ }, {
445
+ key: "removeObserver",
446
+ value: function removeObserver(observer) {
447
+ this._observable.removeObserver(observer);
448
+ }
449
+ }, {
450
+ key: "_handleAutoPlayFailed",
451
+ value: function _handleAutoPlayFailed() {
452
+ this.logger.warn('[FcrDeviceStore] current h5 _handleAutoPlayFailed');
453
+ this.setAutoPlayFailedDialogShow(true);
454
+ }
455
+ }, {
456
+ key: "setAutoPlayFailedDialogShow",
457
+ value: function setAutoPlayFailedDialogShow(flag) {
458
+ this.autoPlayFailedDialogShow = flag;
459
+ }
460
+ }, {
461
+ key: "startPlayLocalVideo",
462
+ value: function startPlayLocalVideo(view) {
463
+ var isMirror = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.currentIsMirror;
464
+ if (!view) return;
465
+ this._localVideoViewSet.add(view);
466
+ this._mediaControl.startCameraPreview(view, {
467
+ renderMode: FcrVideoRenderMode.HIDDEN,
468
+ isMirror: isMirror
469
+ });
470
+ this.currentIsMirror = isMirror;
471
+ }
472
+ }, {
473
+ key: "stopPlayLocalVideo",
474
+ value: function stopPlayLocalVideo(view) {
475
+ if (!view) return;
476
+ this._localVideoViewSet["delete"](view);
477
+ this._mediaControl.stopCameraPreview(view);
478
+ }
479
+ }, {
480
+ key: "switchCamera",
481
+ value: function switchCamera() {
482
+ this._mediaControl.switchCamera();
483
+ }
484
+ }, {
485
+ key: "setCurrentIsMirror",
486
+ value: function setCurrentIsMirror(isMirror) {
487
+ this.currentIsMirror = isMirror;
488
+ }
489
+ }, {
490
+ key: "toggleLocalMirrorPreview",
491
+ value: function toggleLocalMirrorPreview(isMirror) {
492
+ var _this = this;
493
+ this.currentIsMirror = isMirror;
494
+ this._localVideoViewSet.forEach(function (view) {
495
+ _this._mediaControl.stopCameraPreview(view);
496
+ _this._mediaControl.startCameraPreview(view, {
497
+ renderMode: FcrVideoRenderMode.HIDDEN,
498
+ isMirror: isMirror
499
+ });
500
+ });
501
+ }
502
+ }, {
503
+ key: "setCameraEnabled",
504
+ value: function setCameraEnabled(enable) {
505
+ if (enable) {
506
+ this._mediaControl.openDevice(FcrDeviceType.Camera);
507
+ } else {
508
+ this._mediaControl.closeDevice(FcrDeviceType.Camera);
509
+ }
510
+ this.setShowCameraPreview(enable);
511
+ this.cameraEnabled = enable;
512
+ }
513
+ }, {
514
+ key: "setMicrophoneEnabled",
515
+ value: function setMicrophoneEnabled(enable) {
516
+ if (enable) {
517
+ this._mediaControl.openDevice(FcrDeviceType.Microphone);
518
+ } else {
519
+ this._mediaControl.closeDevice(FcrDeviceType.Microphone);
520
+ }
521
+ this.microphoneEnabled = enable;
522
+ }
523
+ }, {
524
+ key: "toggleLocalMirror",
525
+ value: function toggleLocalMirror(enable) {
526
+ this._defaultMirror = enable;
527
+ this.isLocalMirrorEnabled = enable;
528
+ this.toggleLocalMirrorPreview(enable);
529
+ }
530
+ }, {
531
+ key: "resetMirror",
532
+ value: function resetMirror() {
533
+ this.isLocalMirrorEnabled = false;
534
+ this.setCurrentIsMirror(false);
535
+ }
536
+ }, {
537
+ key: "setEditBeautyKey",
538
+ value: function setEditBeautyKey(key) {
539
+ this.isLocalEditBeautyOptions = key !== 'none';
540
+ this.currentBeautyKey = key;
541
+ }
542
+ }, {
543
+ key: "startOrStopCamera",
544
+ value: function startOrStopCamera(enable) {
545
+ var _this2 = this;
546
+ var localVideoViewSet = this._localVideoViewSet;
547
+ if (enable) {
548
+ this.openFirstCamera();
549
+ } else {
550
+ if (localVideoViewSet.size > 0) {
551
+ localVideoViewSet.forEach(function (view) {
552
+ _this2._mediaControl.stopCameraPreview(view);
553
+ });
554
+ }
555
+ this._mediaControl.closeDevice(FcrDeviceType.Camera);
556
+ }
557
+ }
558
+ }, {
559
+ key: "setShowCameraPreview",
560
+ value: function setShowCameraPreview(enable) {
561
+ this.showCameraPreview = enable;
562
+ }
563
+ }, {
564
+ key: "handleRealCameraEnabledChanged",
565
+ value: function handleRealCameraEnabledChanged(realEnable) {
566
+ this.startOrStopCamera(realEnable);
567
+ this.setShowCameraPreview(realEnable);
568
+ }
569
+ }, {
570
+ key: "release",
571
+ value: function release() {
572
+ var _this3 = this;
573
+ if (this._localVideoViewSet.size > 0) {
574
+ this._localVideoViewSet.forEach(function (view) {
575
+ _this3._mediaControl.stopCameraPreview(view);
576
+ });
577
+ this._localVideoViewSet.clear();
578
+ }
579
+ this._mediaControl.removeObserver(this._mediaObserver);
580
+ }
581
+ }, {
582
+ key: "openFirstCamera",
583
+ value: function openFirstCamera() {
584
+ this._mediaControl.openDevice(FcrDeviceType.Camera);
585
+ }
586
+ }, {
587
+ key: "openFirstMicrophone",
588
+ value: function openFirstMicrophone() {
589
+ this._mediaControl.closeDevice(FcrDeviceType.Microphone);
590
+ }
591
+ }, {
592
+ key: "_handleMicrophoneVolumeIndicationUpdated",
593
+ value: function _handleMicrophoneVolumeIndicationUpdated(volume) {
594
+ this.microphoneVolumeLevel = volume;
595
+ }
596
+ }, {
597
+ key: "_handleMicrophoneStateUpdated",
598
+ value: function _handleMicrophoneStateUpdated(state) {
599
+ if (state === FcrMediaSourceState.CLOSE) {
600
+ this.microphoneVolumeLevel = 0;
601
+ }
602
+ }
603
+ }]);
604
+ }();
605
+ _FcrDeviceStore = FcrDeviceStore;
606
+ var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[observable, 1, "_microphoneDeviceId"], [observable, 1, "_speakerDeviceId"], [observable, 1, "currentIsMirror"], [observable, 1, "showForceOpenEffectDialog"], [observable, 1, "cameraId"], [observable, 1, "microphoneId"], [observable, 1, "speakerId"], [observable, 1, "cameraEnabled"], [observable, 1, "showCameraPreview"], [observable, 1, "microphoneEnabled"], [observable, 1, "cameraList"], [observable, 1, "microphoneList"], [observable, 1, "microphoneVolumeLevel"], [observable, 1, "speakerList"], [observable, 1, "isLocalMirrorEnabled"], [observable, 1, "isLocalEditBeautyOptions"], [observable, 1, "speakerVolumeLevel"], [observable, 1, "speakerVolume"], [observable, 1, "microphoneVolume"], [observable, 1, "currentVirtualBackgroundName"], [observable, 1, "enableBeauty"], [observable, 1, "currentBeautyKey"], [observable, 1, "beautyOptions"], [observable, 1, "microphoneDetecting"], [observable, 1, "speakerDetecting"], [observable, 1, "autoPlayFailedDialogShow"], [computed, 3, "cameraDeviceList"], [computed, 3, "microphoneDeviceList"], [computed, 3, "speakerDeviceList"], [_setAutoPlayFailedDialogShowDecs, 18, "setAutoPlayFailedDialogShow"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [bound, 2, "switchCamera"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_handleMicrophoneStateUpdatedDecs, 18, "_handleMicrophoneStateUpdated"]], []).e;
607
+ var _applyDecs$e2 = _slicedToArray(_applyDecs$e, 27);
608
+ _init__microphoneDeviceId = _applyDecs$e2[0];
609
+ _init__speakerDeviceId = _applyDecs$e2[1];
610
+ _init_currentIsMirror = _applyDecs$e2[2];
611
+ _init_showForceOpenEffectDialog = _applyDecs$e2[3];
612
+ _init_cameraId = _applyDecs$e2[4];
613
+ _init_microphoneId = _applyDecs$e2[5];
614
+ _init_speakerId = _applyDecs$e2[6];
615
+ _init_cameraEnabled = _applyDecs$e2[7];
616
+ _init_showCameraPreview = _applyDecs$e2[8];
617
+ _init_microphoneEnabled = _applyDecs$e2[9];
618
+ _init_cameraList = _applyDecs$e2[10];
619
+ _init_microphoneList = _applyDecs$e2[11];
620
+ _init_microphoneVolumeLevel = _applyDecs$e2[12];
621
+ _init_speakerList = _applyDecs$e2[13];
622
+ _init_isLocalMirrorEnabled = _applyDecs$e2[14];
623
+ _init_isLocalEditBeautyOptions = _applyDecs$e2[15];
624
+ _init_speakerVolumeLevel = _applyDecs$e2[16];
625
+ _init_speakerVolume = _applyDecs$e2[17];
626
+ _init_microphoneVolume = _applyDecs$e2[18];
627
+ _init_currentVirtualBackgroundName = _applyDecs$e2[19];
628
+ _init_enableBeauty = _applyDecs$e2[20];
629
+ _init_currentBeautyKey = _applyDecs$e2[21];
630
+ _init_beautyOptions = _applyDecs$e2[22];
631
+ _init_microphoneDetecting = _applyDecs$e2[23];
632
+ _init_speakerDetecting = _applyDecs$e2[24];
633
+ _init_autoPlayFailedDialogShow = _applyDecs$e2[25];
634
+ _initProto = _applyDecs$e2[26];
635
+ _applyDecs$e;