@pepperdash/mobile-control-react-app-core 1.23.1-feat-essentials-v3.2 → 1.24.0-feat-essentials-v3.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.
- package/dist/mobile-control-react-app-core.es.js +161 -156
- package/dist/mobile-control-react-app-core.umd.js +8 -8
- package/dist/shared/hooks/interfaces/useIHasPowerControl.d.ts +1 -0
- package/dist/shared/hooks/interfaces/useIHasPowerControl.d.ts.map +1 -1
- package/dist/store/middleware/websocketMiddleware.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -80,8 +80,8 @@ const A = (e) => e.rooms, P2 = (e) => M(
|
|
|
80
80
|
), K2 = (e) => M(
|
|
81
81
|
A,
|
|
82
82
|
(t) => {
|
|
83
|
-
var o, c, r, l,
|
|
84
|
-
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (
|
|
83
|
+
var o, c, r, l, u, g, h, f;
|
|
84
|
+
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (u = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : u.sinkKey : ((f = (h = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : f.sinkKey) || "";
|
|
85
85
|
}
|
|
86
86
|
), q2 = (e) => M(
|
|
87
87
|
A,
|
|
@@ -296,7 +296,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
296
296
|
setDeviceState(e, t) {
|
|
297
297
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
298
298
|
if (!c) return;
|
|
299
|
-
const r = t.payload.content, l = e[c] ?? {},
|
|
299
|
+
const r = t.payload.content, l = e[c] ?? {}, u = S3.mergeWith(
|
|
300
300
|
{},
|
|
301
301
|
l,
|
|
302
302
|
r,
|
|
@@ -304,7 +304,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
304
304
|
if (Array.isArray(h)) return h.slice();
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
e[c] =
|
|
307
|
+
e[c] = u;
|
|
308
308
|
},
|
|
309
309
|
clearDevices() {
|
|
310
310
|
return v3;
|
|
@@ -336,10 +336,10 @@ const g3 = {}, O1 = v1({
|
|
|
336
336
|
setRoomState(e, t) {
|
|
337
337
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
338
338
|
if (!c) return;
|
|
339
|
-
const r = t.payload.content, l = e[c] ?? {},
|
|
339
|
+
const r = t.payload.content, l = e[c] ?? {}, u = S3.mergeWith({}, l, r, (g, h) => {
|
|
340
340
|
if (Array.isArray(h)) return h;
|
|
341
341
|
});
|
|
342
|
-
e[c] =
|
|
342
|
+
e[c] = u;
|
|
343
343
|
},
|
|
344
344
|
clearRooms() {
|
|
345
345
|
return g3;
|
|
@@ -471,9 +471,13 @@ const g3 = {}, O1 = v1({
|
|
|
471
471
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
472
472
|
}, l = (a) => {
|
|
473
473
|
a(W.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(m1.clearDevices()), a(p1.clearRooms()), a(W.clearAllModals()), a(W.clearSyncState());
|
|
474
|
-
},
|
|
474
|
+
}, u = (a, Z) => {
|
|
475
475
|
var H;
|
|
476
|
-
const j = a(), S = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: C } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected, k = (H = j.runtimeConfig.roomData.config) == null ? void 0 : H.runtimeInfo.essentialsVersion
|
|
476
|
+
const j = a(), S = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: C } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected, k = (H = j.runtimeConfig.roomData.config) == null ? void 0 : H.runtimeInfo.essentialsVersion;
|
|
477
|
+
console.log("WebSocket middleware: Essentials version", {
|
|
478
|
+
essentialsVersion: k
|
|
479
|
+
});
|
|
480
|
+
const o1 = k == null ? void 0 : k.startsWith("3.");
|
|
477
481
|
if (!Z || !x || !C) {
|
|
478
482
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
479
483
|
hasRoomKey: !!Z,
|
|
@@ -674,7 +678,7 @@ const g3 = {}, O1 = v1({
|
|
|
674
678
|
e.client && C ? e.client.send(
|
|
675
679
|
JSON.stringify({ type: a, clientId: x, content: Z })
|
|
676
680
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
677
|
-
},
|
|
681
|
+
}, d = (a, Z, j) => {
|
|
678
682
|
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
|
|
679
683
|
}, L = (a, Z) => {
|
|
680
684
|
e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
|
|
@@ -709,7 +713,7 @@ const g3 = {}, O1 = v1({
|
|
|
709
713
|
);
|
|
710
714
|
break;
|
|
711
715
|
case $3:
|
|
712
|
-
|
|
716
|
+
d(
|
|
713
717
|
C.payload.eventType,
|
|
714
718
|
C.payload.key,
|
|
715
719
|
C.payload.callback
|
|
@@ -728,19 +732,19 @@ const g3 = {}, O1 = v1({
|
|
|
728
732
|
if (j.type === U.setWebsocketIsConnected.type)
|
|
729
733
|
j.payload === !0 && (console.log(
|
|
730
734
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
731
|
-
), setTimeout(() =>
|
|
735
|
+
), setTimeout(() => u(a.getState), 100));
|
|
732
736
|
else if (j.type === U.setRoomData.type) {
|
|
733
737
|
const x = a.getState(), k = j.payload;
|
|
734
738
|
x.runtimeConfig.websocket.isConnected && (k != null && k.clientId) && (console.log(
|
|
735
739
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
736
|
-
), setTimeout(() =>
|
|
740
|
+
), setTimeout(() => u(a.getState), 100));
|
|
737
741
|
} else if (j.type === U.setCurrentRoomKey.type) {
|
|
738
742
|
const x = j.payload;
|
|
739
743
|
x && (console.log(
|
|
740
744
|
"[WebSocket Middleware] Room changed to:",
|
|
741
745
|
x,
|
|
742
746
|
", requesting room status..."
|
|
743
|
-
), setTimeout(() =>
|
|
747
|
+
), setTimeout(() => u(a.getState, x), 100));
|
|
744
748
|
}
|
|
745
749
|
break;
|
|
746
750
|
}
|
|
@@ -802,14 +806,14 @@ function We() {
|
|
|
802
806
|
if (w3) return i1;
|
|
803
807
|
w3 = 1;
|
|
804
808
|
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
805
|
-
function
|
|
806
|
-
var
|
|
809
|
+
function u(g, h, f) {
|
|
810
|
+
var d, L = {}, F = null, a = null;
|
|
807
811
|
f !== void 0 && (F = "" + f), h.key !== void 0 && (F = "" + h.key), h.ref !== void 0 && (a = h.ref);
|
|
808
|
-
for (
|
|
809
|
-
if (g && g.defaultProps) for (
|
|
812
|
+
for (d in h) c.call(h, d) && !l.hasOwnProperty(d) && (L[d] = h[d]);
|
|
813
|
+
if (g && g.defaultProps) for (d in h = g.defaultProps, h) L[d] === void 0 && (L[d] = h[d]);
|
|
810
814
|
return { $$typeof: t, type: g, key: F, ref: a, props: L, _owner: r.current };
|
|
811
815
|
}
|
|
812
|
-
return i1.Fragment = o, i1.jsx =
|
|
816
|
+
return i1.Fragment = o, i1.jsx = u, i1.jsxs = u, i1;
|
|
813
817
|
}
|
|
814
818
|
var a1 = {};
|
|
815
819
|
/**
|
|
@@ -824,7 +828,7 @@ var a1 = {};
|
|
|
824
828
|
var m3;
|
|
825
829
|
function Ve() {
|
|
826
830
|
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
827
|
-
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"),
|
|
831
|
+
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
|
|
828
832
|
function S(s) {
|
|
829
833
|
if (s === null || typeof s != "object")
|
|
830
834
|
return null;
|
|
@@ -834,16 +838,16 @@ function Ve() {
|
|
|
834
838
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
835
839
|
function x(s) {
|
|
836
840
|
{
|
|
837
|
-
for (var i = arguments.length,
|
|
838
|
-
|
|
839
|
-
k("error", s,
|
|
841
|
+
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
842
|
+
v[p - 1] = arguments[p];
|
|
843
|
+
k("error", s, v);
|
|
840
844
|
}
|
|
841
845
|
}
|
|
842
|
-
function k(s, i,
|
|
846
|
+
function k(s, i, v) {
|
|
843
847
|
{
|
|
844
848
|
var p = C.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
845
|
-
E !== "" && (i += "%s",
|
|
846
|
-
var T =
|
|
849
|
+
E !== "" && (i += "%s", v = v.concat([E]));
|
|
850
|
+
var T = v.map(function(y) {
|
|
847
851
|
return String(y);
|
|
848
852
|
});
|
|
849
853
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
@@ -852,18 +856,18 @@ function Ve() {
|
|
|
852
856
|
var o1 = !1, H = !1, O = !1, D = !1, z = !1, s1;
|
|
853
857
|
s1 = Symbol.for("react.module.reference");
|
|
854
858
|
function b1(s) {
|
|
855
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s ===
|
|
859
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || D || s === a || o1 || H || O || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === L || s.$$typeof === u || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
|
|
856
860
|
// types supported by any Flight configuration anywhere since
|
|
857
861
|
// we don't know which Flight build this will end up being used
|
|
858
862
|
// with.
|
|
859
863
|
s.$$typeof === s1 || s.getModuleId !== void 0));
|
|
860
864
|
}
|
|
861
|
-
function U3(s, i,
|
|
865
|
+
function U3(s, i, v) {
|
|
862
866
|
var p = s.displayName;
|
|
863
867
|
if (p)
|
|
864
868
|
return p;
|
|
865
869
|
var E = i.displayName || i.name || "";
|
|
866
|
-
return E !== "" ?
|
|
870
|
+
return E !== "" ? v + "(" + E + ")" : v;
|
|
867
871
|
}
|
|
868
872
|
function U1(s) {
|
|
869
873
|
return s.displayName || "Context";
|
|
@@ -886,7 +890,7 @@ function Ve() {
|
|
|
886
890
|
return "StrictMode";
|
|
887
891
|
case f:
|
|
888
892
|
return "Suspense";
|
|
889
|
-
case
|
|
893
|
+
case d:
|
|
890
894
|
return "SuspenseList";
|
|
891
895
|
}
|
|
892
896
|
if (typeof s == "object")
|
|
@@ -894,9 +898,9 @@ function Ve() {
|
|
|
894
898
|
case g:
|
|
895
899
|
var i = s;
|
|
896
900
|
return U1(i) + ".Consumer";
|
|
897
|
-
case
|
|
898
|
-
var
|
|
899
|
-
return U1(
|
|
901
|
+
case u:
|
|
902
|
+
var v = s;
|
|
903
|
+
return U1(v._context) + ".Provider";
|
|
900
904
|
case h:
|
|
901
905
|
return U3(s, s.render, "ForwardRef");
|
|
902
906
|
case L:
|
|
@@ -976,7 +980,7 @@ function Ve() {
|
|
|
976
980
|
}
|
|
977
981
|
}
|
|
978
982
|
var y1 = C.ReactCurrentDispatcher, I1;
|
|
979
|
-
function h1(s, i,
|
|
983
|
+
function h1(s, i, v) {
|
|
980
984
|
{
|
|
981
985
|
if (I1 === void 0)
|
|
982
986
|
try {
|
|
@@ -998,9 +1002,9 @@ function Ve() {
|
|
|
998
1002
|
if (!s || R1)
|
|
999
1003
|
return "";
|
|
1000
1004
|
{
|
|
1001
|
-
var
|
|
1002
|
-
if (
|
|
1003
|
-
return
|
|
1005
|
+
var v = g1.get(s);
|
|
1006
|
+
if (v !== void 0)
|
|
1007
|
+
return v;
|
|
1004
1008
|
}
|
|
1005
1009
|
var p;
|
|
1006
1010
|
R1 = !0;
|
|
@@ -1065,14 +1069,14 @@ function Ve() {
|
|
|
1065
1069
|
var t1 = s ? s.displayName || s.name : "", Q = t1 ? h1(t1) : "";
|
|
1066
1070
|
return typeof s == "function" && g1.set(s, Q), Q;
|
|
1067
1071
|
}
|
|
1068
|
-
function q3(s, i,
|
|
1072
|
+
function q3(s, i, v) {
|
|
1069
1073
|
return X1(s, !1);
|
|
1070
1074
|
}
|
|
1071
1075
|
function G3(s) {
|
|
1072
1076
|
var i = s.prototype;
|
|
1073
1077
|
return !!(i && i.isReactComponent);
|
|
1074
1078
|
}
|
|
1075
|
-
function f1(s, i,
|
|
1079
|
+
function f1(s, i, v) {
|
|
1076
1080
|
if (s == null)
|
|
1077
1081
|
return "";
|
|
1078
1082
|
if (typeof s == "function")
|
|
@@ -1082,7 +1086,7 @@ function Ve() {
|
|
|
1082
1086
|
switch (s) {
|
|
1083
1087
|
case f:
|
|
1084
1088
|
return h1("Suspense");
|
|
1085
|
-
case
|
|
1089
|
+
case d:
|
|
1086
1090
|
return h1("SuspenseList");
|
|
1087
1091
|
}
|
|
1088
1092
|
if (typeof s == "object")
|
|
@@ -1090,11 +1094,11 @@ function Ve() {
|
|
|
1090
1094
|
case h:
|
|
1091
1095
|
return q3(s.render);
|
|
1092
1096
|
case L:
|
|
1093
|
-
return f1(s.type, i,
|
|
1097
|
+
return f1(s.type, i, v);
|
|
1094
1098
|
case F: {
|
|
1095
1099
|
var p = s, E = p._payload, T = p._init;
|
|
1096
1100
|
try {
|
|
1097
|
-
return f1(T(E), i,
|
|
1101
|
+
return f1(T(E), i, v);
|
|
1098
1102
|
} catch {
|
|
1099
1103
|
}
|
|
1100
1104
|
}
|
|
@@ -1104,12 +1108,12 @@ function Ve() {
|
|
|
1104
1108
|
var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = C.ReactDebugCurrentFrame;
|
|
1105
1109
|
function w1(s) {
|
|
1106
1110
|
if (s) {
|
|
1107
|
-
var i = s._owner,
|
|
1108
|
-
N1.setExtraStackFrame(
|
|
1111
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1112
|
+
N1.setExtraStackFrame(v);
|
|
1109
1113
|
} else
|
|
1110
1114
|
N1.setExtraStackFrame(null);
|
|
1111
1115
|
}
|
|
1112
|
-
function Y3(s, i,
|
|
1116
|
+
function Y3(s, i, v, p, E) {
|
|
1113
1117
|
{
|
|
1114
1118
|
var T = Function.call.bind(r1);
|
|
1115
1119
|
for (var y in s)
|
|
@@ -1117,14 +1121,14 @@ function Ve() {
|
|
|
1117
1121
|
var b = void 0;
|
|
1118
1122
|
try {
|
|
1119
1123
|
if (typeof s[y] != "function") {
|
|
1120
|
-
var B = Error((p || "React class") + ": " +
|
|
1124
|
+
var B = Error((p || "React class") + ": " + v + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1121
1125
|
throw B.name = "Invariant Violation", B;
|
|
1122
1126
|
}
|
|
1123
|
-
b = s[y](i, y, p,
|
|
1127
|
+
b = s[y](i, y, p, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1124
1128
|
} catch (P) {
|
|
1125
1129
|
b = P;
|
|
1126
1130
|
}
|
|
1127
|
-
b && !(b instanceof Error) && (w1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class",
|
|
1131
|
+
b && !(b instanceof Error) && (w1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", v, y, typeof b), w1(null)), b instanceof Error && !(b.message in Q1) && (Q1[b.message] = !0, w1(E), x("Failed %s type: %s", v, b.message), w1(null));
|
|
1128
1132
|
}
|
|
1129
1133
|
}
|
|
1130
1134
|
}
|
|
@@ -1134,8 +1138,8 @@ function Ve() {
|
|
|
1134
1138
|
}
|
|
1135
1139
|
function J3(s) {
|
|
1136
1140
|
{
|
|
1137
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
1138
|
-
return
|
|
1141
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, v = i && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
1142
|
+
return v;
|
|
1139
1143
|
}
|
|
1140
1144
|
}
|
|
1141
1145
|
function X3(s) {
|
|
@@ -1179,34 +1183,34 @@ function Ve() {
|
|
|
1179
1183
|
}
|
|
1180
1184
|
function n2(s, i) {
|
|
1181
1185
|
{
|
|
1182
|
-
var
|
|
1186
|
+
var v = function() {
|
|
1183
1187
|
o3 || (o3 = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
1184
1188
|
};
|
|
1185
|
-
|
|
1186
|
-
get:
|
|
1189
|
+
v.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
1190
|
+
get: v,
|
|
1187
1191
|
configurable: !0
|
|
1188
1192
|
});
|
|
1189
1193
|
}
|
|
1190
1194
|
}
|
|
1191
1195
|
function o2(s, i) {
|
|
1192
1196
|
{
|
|
1193
|
-
var
|
|
1197
|
+
var v = function() {
|
|
1194
1198
|
s3 || (s3 = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
1195
1199
|
};
|
|
1196
|
-
|
|
1197
|
-
get:
|
|
1200
|
+
v.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
1201
|
+
get: v,
|
|
1198
1202
|
configurable: !0
|
|
1199
1203
|
});
|
|
1200
1204
|
}
|
|
1201
1205
|
}
|
|
1202
|
-
var s2 = function(s, i,
|
|
1206
|
+
var s2 = function(s, i, v, p, E, T, y) {
|
|
1203
1207
|
var b = {
|
|
1204
1208
|
// This tag allows us to uniquely identify this as a React Element
|
|
1205
1209
|
$$typeof: t,
|
|
1206
1210
|
// Built-in properties that belong on the element
|
|
1207
1211
|
type: s,
|
|
1208
1212
|
key: i,
|
|
1209
|
-
ref:
|
|
1213
|
+
ref: v,
|
|
1210
1214
|
props: y,
|
|
1211
1215
|
// Record the component responsible for creating this element.
|
|
1212
1216
|
_owner: T
|
|
@@ -1228,10 +1232,10 @@ function Ve() {
|
|
|
1228
1232
|
value: E
|
|
1229
1233
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
1230
1234
|
};
|
|
1231
|
-
function c2(s, i,
|
|
1235
|
+
function c2(s, i, v, p, E) {
|
|
1232
1236
|
{
|
|
1233
1237
|
var T, y = {}, b = null, B = null;
|
|
1234
|
-
|
|
1238
|
+
v !== void 0 && (t3(v), b = "" + v), e2(i) && (t3(i.key), b = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
|
|
1235
1239
|
for (T in i)
|
|
1236
1240
|
r1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
|
|
1237
1241
|
if (s && s.defaultProps) {
|
|
@@ -1249,8 +1253,8 @@ function Ve() {
|
|
|
1249
1253
|
var T1 = C.ReactCurrentOwner, c3 = C.ReactDebugCurrentFrame;
|
|
1250
1254
|
function e1(s) {
|
|
1251
1255
|
if (s) {
|
|
1252
|
-
var i = s._owner,
|
|
1253
|
-
c3.setExtraStackFrame(
|
|
1256
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1257
|
+
c3.setExtraStackFrame(v);
|
|
1254
1258
|
} else
|
|
1255
1259
|
c3.setExtraStackFrame(null);
|
|
1256
1260
|
}
|
|
@@ -1279,10 +1283,10 @@ Check the render method of \`` + s + "`.";
|
|
|
1279
1283
|
{
|
|
1280
1284
|
var i = r3();
|
|
1281
1285
|
if (!i) {
|
|
1282
|
-
var
|
|
1283
|
-
|
|
1286
|
+
var v = typeof s == "string" ? s : s.displayName || s.name;
|
|
1287
|
+
v && (i = `
|
|
1284
1288
|
|
|
1285
|
-
Check the top-level render call using <` +
|
|
1289
|
+
Check the top-level render call using <` + v + ">.");
|
|
1286
1290
|
}
|
|
1287
1291
|
return i;
|
|
1288
1292
|
}
|
|
@@ -1292,12 +1296,12 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1292
1296
|
if (!s._store || s._store.validated || s.key != null)
|
|
1293
1297
|
return;
|
|
1294
1298
|
s._store.validated = !0;
|
|
1295
|
-
var
|
|
1296
|
-
if (l3[
|
|
1299
|
+
var v = l2(i);
|
|
1300
|
+
if (l3[v])
|
|
1297
1301
|
return;
|
|
1298
|
-
l3[
|
|
1302
|
+
l3[v] = !0;
|
|
1299
1303
|
var p = "";
|
|
1300
|
-
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
1304
|
+
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, p), e1(null);
|
|
1301
1305
|
}
|
|
1302
1306
|
}
|
|
1303
1307
|
function a3(s, i) {
|
|
@@ -1305,8 +1309,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1305
1309
|
if (typeof s != "object")
|
|
1306
1310
|
return;
|
|
1307
1311
|
if (E1(s))
|
|
1308
|
-
for (var
|
|
1309
|
-
var p = s[
|
|
1312
|
+
for (var v = 0; v < s.length; v++) {
|
|
1313
|
+
var p = s[v];
|
|
1310
1314
|
_1(p) && i3(p, i);
|
|
1311
1315
|
}
|
|
1312
1316
|
else if (_1(s))
|
|
@@ -1324,18 +1328,18 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1324
1328
|
var i = s.type;
|
|
1325
1329
|
if (i == null || typeof i == "string")
|
|
1326
1330
|
return;
|
|
1327
|
-
var
|
|
1331
|
+
var v;
|
|
1328
1332
|
if (typeof i == "function")
|
|
1329
|
-
|
|
1333
|
+
v = i.propTypes;
|
|
1330
1334
|
else if (typeof i == "object" && (i.$$typeof === h || // Note: Memo only checks outer props here.
|
|
1331
1335
|
// Inner props are checked in the reconciler.
|
|
1332
1336
|
i.$$typeof === L))
|
|
1333
|
-
|
|
1337
|
+
v = i.propTypes;
|
|
1334
1338
|
else
|
|
1335
1339
|
return;
|
|
1336
|
-
if (
|
|
1340
|
+
if (v) {
|
|
1337
1341
|
var p = J(i);
|
|
1338
|
-
Y3(
|
|
1342
|
+
Y3(v, s.props, "prop", p, s);
|
|
1339
1343
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1340
1344
|
D1 = !0;
|
|
1341
1345
|
var E = J(i);
|
|
@@ -1346,8 +1350,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1346
1350
|
}
|
|
1347
1351
|
function a2(s) {
|
|
1348
1352
|
{
|
|
1349
|
-
for (var i = Object.keys(s.props),
|
|
1350
|
-
var p = i[
|
|
1353
|
+
for (var i = Object.keys(s.props), v = 0; v < i.length; v++) {
|
|
1354
|
+
var p = i[v];
|
|
1351
1355
|
if (p !== "children" && p !== "key") {
|
|
1352
1356
|
e1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), e1(null);
|
|
1353
1357
|
break;
|
|
@@ -1357,7 +1361,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1357
1361
|
}
|
|
1358
1362
|
}
|
|
1359
1363
|
var u3 = {};
|
|
1360
|
-
function d3(s, i,
|
|
1364
|
+
function d3(s, i, v, p, E, T) {
|
|
1361
1365
|
{
|
|
1362
1366
|
var y = b1(s);
|
|
1363
1367
|
if (!y) {
|
|
@@ -1368,7 +1372,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1368
1372
|
var P;
|
|
1369
1373
|
s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (J(s.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : P = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, b);
|
|
1370
1374
|
}
|
|
1371
|
-
var $ = c2(s, i,
|
|
1375
|
+
var $ = c2(s, i, v, E, T);
|
|
1372
1376
|
if ($ == null)
|
|
1373
1377
|
return $;
|
|
1374
1378
|
if (y) {
|
|
@@ -1401,11 +1405,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1401
1405
|
return s === c ? a2($) : i2($), $;
|
|
1402
1406
|
}
|
|
1403
1407
|
}
|
|
1404
|
-
function u2(s, i,
|
|
1405
|
-
return d3(s, i,
|
|
1408
|
+
function u2(s, i, v) {
|
|
1409
|
+
return d3(s, i, v, !0);
|
|
1406
1410
|
}
|
|
1407
|
-
function d2(s, i,
|
|
1408
|
-
return d3(s, i,
|
|
1411
|
+
function d2(s, i, v) {
|
|
1412
|
+
return d3(s, i, v, !1);
|
|
1409
1413
|
}
|
|
1410
1414
|
var v2 = d2, h2 = u2;
|
|
1411
1415
|
a1.Fragment = c, a1.jsx = v2, a1.jsxs = h2;
|
|
@@ -1449,11 +1453,11 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1449
1453
|
},
|
|
1450
1454
|
[c]
|
|
1451
1455
|
), l = l1(
|
|
1452
|
-
(h, f,
|
|
1453
|
-
t(Pe(h, f,
|
|
1456
|
+
(h, f, d) => {
|
|
1457
|
+
t(Pe(h, f, d));
|
|
1454
1458
|
},
|
|
1455
1459
|
[t]
|
|
1456
|
-
),
|
|
1460
|
+
), u = l1(
|
|
1457
1461
|
(h, f) => {
|
|
1458
1462
|
t($e(h, f));
|
|
1459
1463
|
},
|
|
@@ -1468,7 +1472,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1468
1472
|
sendMessage: c,
|
|
1469
1473
|
sendSimpleMessage: r,
|
|
1470
1474
|
addEventHandler: l,
|
|
1471
|
-
removeEventHandler:
|
|
1475
|
+
removeEventHandler: u,
|
|
1472
1476
|
reconnect: g
|
|
1473
1477
|
},
|
|
1474
1478
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
@@ -1485,22 +1489,22 @@ function Ge({
|
|
|
1485
1489
|
onPressedButNotHeld: c,
|
|
1486
1490
|
holdTimeMs: r = 500
|
|
1487
1491
|
}) {
|
|
1488
|
-
const l = d1(null),
|
|
1492
|
+
const l = d1(null), u = d1(!1), g = d1(!1);
|
|
1489
1493
|
function h() {
|
|
1490
|
-
|
|
1494
|
+
u.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
|
|
1491
1495
|
g.current = !0, o == null || o(), l.current = null;
|
|
1492
1496
|
}, r);
|
|
1493
1497
|
}
|
|
1494
1498
|
function f() {
|
|
1495
|
-
|
|
1499
|
+
u.current = !1, t == null || t(), l.current && (clearTimeout(l.current), l.current = null, g.current || c == null || c());
|
|
1496
1500
|
}
|
|
1497
|
-
function
|
|
1498
|
-
|
|
1501
|
+
function d() {
|
|
1502
|
+
u.current && f();
|
|
1499
1503
|
}
|
|
1500
1504
|
return {
|
|
1501
1505
|
onPointerDown: h,
|
|
1502
1506
|
onPointerUp: f,
|
|
1503
|
-
onPointerLeave:
|
|
1507
|
+
onPointerLeave: d
|
|
1504
1508
|
};
|
|
1505
1509
|
}
|
|
1506
1510
|
function w(e, t) {
|
|
@@ -1510,10 +1514,10 @@ function w(e, t) {
|
|
|
1510
1514
|
c(`${e}/${t}`, { value: "held" });
|
|
1511
1515
|
}, 250));
|
|
1512
1516
|
}
|
|
1513
|
-
function
|
|
1517
|
+
function u() {
|
|
1514
1518
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1515
1519
|
}
|
|
1516
|
-
return Ge({ onPress: l, onRelease:
|
|
1520
|
+
return Ge({ onPress: l, onRelease: u });
|
|
1517
1521
|
}
|
|
1518
1522
|
function C1(e) {
|
|
1519
1523
|
const { sendMessage: t } = R(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
@@ -1579,14 +1583,15 @@ function Ye(e) {
|
|
|
1579
1583
|
return W3(o, c);
|
|
1580
1584
|
}
|
|
1581
1585
|
function V3(e) {
|
|
1582
|
-
|
|
1586
|
+
var u;
|
|
1587
|
+
const { sendMessage: t } = R(), o = (u = _(e)) == null ? void 0 : u.powerState;
|
|
1583
1588
|
return { powerOn: () => {
|
|
1584
1589
|
t(`/device/${e}/powerOn`, null);
|
|
1585
1590
|
}, powerOff: () => {
|
|
1586
1591
|
t(`/device/${e}/powerOff`, null);
|
|
1587
1592
|
}, powerToggle: () => {
|
|
1588
1593
|
t(`/device/${e}/powerToggle`, null);
|
|
1589
|
-
} };
|
|
1594
|
+
}, powerState: o };
|
|
1590
1595
|
}
|
|
1591
1596
|
function B1(e) {
|
|
1592
1597
|
const { sendMessage: t } = R(), o = _(e);
|
|
@@ -1606,14 +1611,14 @@ function ze(e) {
|
|
|
1606
1611
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1607
1612
|
}
|
|
1608
1613
|
function F6(e) {
|
|
1609
|
-
const t = _(e), o = V3(e), c = B1(e), r = B1(e), l = Ye(e),
|
|
1614
|
+
const t = _(e), o = V3(e), c = B1(e), r = B1(e), l = Ye(e), u = ze(e);
|
|
1610
1615
|
if (t)
|
|
1611
1616
|
return {
|
|
1612
1617
|
avrState: t,
|
|
1613
1618
|
powerControl: o,
|
|
1614
1619
|
inputControl: c,
|
|
1615
1620
|
surroundSoundModes: r,
|
|
1616
|
-
surroundChannels:
|
|
1621
|
+
surroundChannels: u,
|
|
1617
1622
|
mainVolumeControl: l
|
|
1618
1623
|
};
|
|
1619
1624
|
}
|
|
@@ -1631,10 +1636,10 @@ const H6 = ({ className: e }) => {
|
|
|
1631
1636
|
};
|
|
1632
1637
|
function K6(e) {
|
|
1633
1638
|
const { sendMessage: t } = R(), o = _(e), c = `/device/${e}`;
|
|
1634
|
-
return o ? { state: o, recallPreset: (
|
|
1635
|
-
t(`${c}/presets/recall`, { deviceKey:
|
|
1636
|
-
}, savePresets: (
|
|
1637
|
-
t(`${c}/presets/save`,
|
|
1639
|
+
return o ? { state: o, recallPreset: (u, g) => {
|
|
1640
|
+
t(`${c}/presets/recall`, { deviceKey: u, preset: g });
|
|
1641
|
+
}, savePresets: (u) => {
|
|
1642
|
+
t(`${c}/presets/save`, u);
|
|
1638
1643
|
} } : void 0;
|
|
1639
1644
|
}
|
|
1640
1645
|
function q6(e) {
|
|
@@ -1643,8 +1648,8 @@ function q6(e) {
|
|
|
1643
1648
|
return { endpointState: t };
|
|
1644
1649
|
}
|
|
1645
1650
|
function G6(e) {
|
|
1646
|
-
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"),
|
|
1647
|
-
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info:
|
|
1651
|
+
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"), u = w(t, "info"), g = w(t, "exit");
|
|
1652
|
+
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: u, exit: g };
|
|
1648
1653
|
}
|
|
1649
1654
|
function Y6(e) {
|
|
1650
1655
|
const t = `/device/${e}`, o = w(t, "red"), c = w(t, "green"), r = w(t, "yellow"), l = w(t, "blue");
|
|
@@ -1663,11 +1668,11 @@ function J6(e) {
|
|
|
1663
1668
|
return t.deviceInfo || void 0;
|
|
1664
1669
|
}
|
|
1665
1670
|
function X6(e) {
|
|
1666
|
-
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"),
|
|
1667
|
-
return { up: o, down: c, left: r, right: l, select:
|
|
1671
|
+
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"), u = w(t, "select"), g = w(t, "menu"), h = w(t, "exit");
|
|
1672
|
+
return { up: o, down: c, left: r, right: l, select: u, menu: g, exit: h };
|
|
1668
1673
|
}
|
|
1669
1674
|
function Q6(e) {
|
|
1670
|
-
const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e), r = w(o, "cameraUp"), l = w(o, "cameraDown"),
|
|
1675
|
+
const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e), r = w(o, "cameraUp"), l = w(o, "cameraDown"), u = w(o, "cameraLeft"), g = w(o, "cameraRight"), h = w(o, "cameraZoomIn"), f = w(o, "cameraZoomOut"), d = (L) => t("/camera/recallPreset", L);
|
|
1671
1676
|
if (c)
|
|
1672
1677
|
return {
|
|
1673
1678
|
state: c,
|
|
@@ -1675,9 +1680,9 @@ function Q6(e) {
|
|
|
1675
1680
|
zoomOut: f,
|
|
1676
1681
|
up: r,
|
|
1677
1682
|
down: l,
|
|
1678
|
-
left:
|
|
1683
|
+
left: u,
|
|
1679
1684
|
right: g,
|
|
1680
|
-
recallPreset:
|
|
1685
|
+
recallPreset: d
|
|
1681
1686
|
};
|
|
1682
1687
|
}
|
|
1683
1688
|
function N6(e) {
|
|
@@ -1725,10 +1730,10 @@ function st(e) {
|
|
|
1725
1730
|
const { sendMessage: t, sendSimpleMessage: o } = R(), c = _(e), r = ne(e), l = c || r;
|
|
1726
1731
|
return l ? {
|
|
1727
1732
|
levelState: l,
|
|
1728
|
-
setLevel: (
|
|
1729
|
-
muteToggle: (
|
|
1730
|
-
muteOn: (
|
|
1731
|
-
muteOff: (
|
|
1733
|
+
setLevel: (d, L) => o(`${d}/level`, L),
|
|
1734
|
+
muteToggle: (d) => t(`${d}/muteToggle`, null),
|
|
1735
|
+
muteOn: (d) => t(`${d}/muteOn`, null),
|
|
1736
|
+
muteOff: (d) => t(`${d}/muteOff`, null)
|
|
1732
1737
|
} : void 0;
|
|
1733
1738
|
}
|
|
1734
1739
|
function ct(e) {
|
|
@@ -1750,17 +1755,17 @@ function lt(e) {
|
|
|
1750
1755
|
} };
|
|
1751
1756
|
}
|
|
1752
1757
|
function it(e) {
|
|
1753
|
-
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"),
|
|
1758
|
+
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"), u = w(t, "num4"), g = w(t, "num5"), h = w(t, "num6"), f = w(t, "num7"), d = w(t, "num8"), L = w(t, "num9"), F = w(t, "numDash"), a = w(t, "numEnter");
|
|
1754
1759
|
return {
|
|
1755
1760
|
digit0: o,
|
|
1756
1761
|
digit1: c,
|
|
1757
1762
|
digit2: r,
|
|
1758
1763
|
digit3: l,
|
|
1759
|
-
digit4:
|
|
1764
|
+
digit4: u,
|
|
1760
1765
|
digit5: g,
|
|
1761
1766
|
digit6: h,
|
|
1762
1767
|
digit7: f,
|
|
1763
|
-
digit8:
|
|
1768
|
+
digit8: d,
|
|
1764
1769
|
digit9: L,
|
|
1765
1770
|
keypadAccessoryButton1: F,
|
|
1766
1771
|
keypadAccessoryButton2: a
|
|
@@ -1836,8 +1841,8 @@ function pt(e) {
|
|
|
1836
1841
|
const { sendMessage: t } = R(), o = j1(e);
|
|
1837
1842
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1838
1843
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1839
|
-
}, setPassword: (l,
|
|
1840
|
-
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword:
|
|
1844
|
+
}, setPassword: (l, u) => {
|
|
1845
|
+
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: u });
|
|
1841
1846
|
} } : void 0;
|
|
1842
1847
|
}
|
|
1843
1848
|
function Mt(e) {
|
|
@@ -1854,13 +1859,13 @@ function xt(e) {
|
|
|
1854
1859
|
};
|
|
1855
1860
|
}
|
|
1856
1861
|
function Zt(e) {
|
|
1857
|
-
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"),
|
|
1862
|
+
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"), u = w(t, "nextTrack"), g = w(t, "rewind"), h = w(t, "ffwd"), f = w(t, "record");
|
|
1858
1863
|
return {
|
|
1859
1864
|
play: o,
|
|
1860
1865
|
pause: c,
|
|
1861
1866
|
stop: r,
|
|
1862
1867
|
prevTrack: l,
|
|
1863
|
-
nextTrack:
|
|
1868
|
+
nextTrack: u,
|
|
1864
1869
|
rewind: g,
|
|
1865
1870
|
fastForward: h,
|
|
1866
1871
|
record: f
|
|
@@ -1901,29 +1906,29 @@ const bt = ({
|
|
|
1901
1906
|
config: e
|
|
1902
1907
|
}, t = !0) => {
|
|
1903
1908
|
const { sendMessage: o } = R(), c = d1(!1), r = n1(() => {
|
|
1904
|
-
var
|
|
1909
|
+
var u, g, h, f;
|
|
1905
1910
|
if (!e)
|
|
1906
1911
|
return;
|
|
1907
1912
|
const l = /* @__PURE__ */ new Set();
|
|
1908
|
-
if (e.destinations && Object.values(e.destinations).forEach((
|
|
1909
|
-
l.add(
|
|
1910
|
-
}), e.destinationList && Object.values(e.destinationList).forEach((
|
|
1911
|
-
l.add(
|
|
1912
|
-
}), e.audioControlPointList && Object.values((
|
|
1913
|
-
(
|
|
1914
|
-
|
|
1913
|
+
if (e.destinations && Object.values(e.destinations).forEach((d) => {
|
|
1914
|
+
l.add(d);
|
|
1915
|
+
}), e.destinationList && Object.values(e.destinationList).forEach((d) => {
|
|
1916
|
+
l.add(d.sinkKey);
|
|
1917
|
+
}), e.audioControlPointList && Object.values((u = e.audioControlPointList) == null ? void 0 : u.levelControls).forEach(
|
|
1918
|
+
(d) => {
|
|
1919
|
+
d.itemKey ? l.add(d.parentDeviceKey + "--" + d.itemKey) : l.add(d.parentDeviceKey);
|
|
1915
1920
|
}
|
|
1916
|
-
), (g = e.touchpanelKeys) == null || g.forEach((
|
|
1917
|
-
l.add(
|
|
1918
|
-
}), (h = e.environmentalDevices) == null || h.forEach((
|
|
1919
|
-
|
|
1920
|
-
}), (f = e.accessoryDeviceKeys) == null || f.forEach((
|
|
1921
|
-
l.add(
|
|
1922
|
-
}), e.audioCodecKey && l.add(e.audioCodecKey), e.videoCodecKey && l.add(e.videoCodecKey), e.matrixRoutingKey && l.add(e.matrixRoutingKey), e.roomCombinerKey && l.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((
|
|
1923
|
-
l.add(
|
|
1921
|
+
), (g = e.touchpanelKeys) == null || g.forEach((d) => {
|
|
1922
|
+
l.add(d);
|
|
1923
|
+
}), (h = e.environmentalDevices) == null || h.forEach((d) => {
|
|
1924
|
+
d.deviceKey && l.add(d.deviceKey);
|
|
1925
|
+
}), (f = e.accessoryDeviceKeys) == null || f.forEach((d) => {
|
|
1926
|
+
l.add(d);
|
|
1927
|
+
}), e.audioCodecKey && l.add(e.audioCodecKey), e.videoCodecKey && l.add(e.videoCodecKey), e.matrixRoutingKey && l.add(e.matrixRoutingKey), e.roomCombinerKey && l.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((d) => {
|
|
1928
|
+
l.add(d);
|
|
1924
1929
|
}), e.sourceList)
|
|
1925
|
-
for (const
|
|
1926
|
-
|
|
1930
|
+
for (const d of Object.values(e.sourceList))
|
|
1931
|
+
d.sourceKey && d.sourceKey !== "$off" && l.add(d.sourceKey);
|
|
1927
1932
|
return l;
|
|
1928
1933
|
}, [e]);
|
|
1929
1934
|
return Z1(() => {
|
|
@@ -1935,11 +1940,11 @@ const bt = ({
|
|
|
1935
1940
|
function yt(e, t) {
|
|
1936
1941
|
const [o, c] = Y(!1), [r, l] = Y(!1);
|
|
1937
1942
|
return Z3(() => {
|
|
1938
|
-
const { current:
|
|
1939
|
-
const h =
|
|
1943
|
+
const { current: u } = e, g = () => {
|
|
1944
|
+
const h = u && u.scrollHeight > u.clientHeight, f = u && u.scrollWidth > u.clientWidth;
|
|
1940
1945
|
l(h ?? !1), c(f ?? !1), t && t(h ?? !1, f ?? !1);
|
|
1941
1946
|
};
|
|
1942
|
-
|
|
1947
|
+
u && g();
|
|
1943
1948
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1944
1949
|
}
|
|
1945
1950
|
function It(e, t) {
|
|
@@ -1953,18 +1958,18 @@ function Rt(e, t) {
|
|
|
1953
1958
|
function Et(e) {
|
|
1954
1959
|
var g, h;
|
|
1955
1960
|
const [t, o] = Y(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollLeft) ?? 0), [c, r] = Y(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), l = (f) => {
|
|
1956
|
-
const { current:
|
|
1957
|
-
|
|
1958
|
-
},
|
|
1959
|
-
const { current:
|
|
1960
|
-
|
|
1961
|
+
const { current: d } = e;
|
|
1962
|
+
d && (console.log(d.scrollLeft), d.scrollLeft += f, console.log(d.scrollLeft));
|
|
1963
|
+
}, u = (f) => {
|
|
1964
|
+
const { current: d } = e;
|
|
1965
|
+
d && (console.log(d.scrollTop), d.scrollTop += f, console.log(d.scrollTop));
|
|
1961
1966
|
};
|
|
1962
1967
|
return Z3(() => {
|
|
1963
|
-
const { current: f } = e,
|
|
1968
|
+
const { current: f } = e, d = () => {
|
|
1964
1969
|
o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
|
|
1965
1970
|
};
|
|
1966
|
-
f &&
|
|
1967
|
-
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical:
|
|
1971
|
+
f && d();
|
|
1972
|
+
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: u };
|
|
1968
1973
|
}
|
|
1969
1974
|
function Tt(e) {
|
|
1970
1975
|
const t = W1();
|
|
@@ -2034,27 +2039,27 @@ const Lt = () => {
|
|
|
2034
2039
|
className: c,
|
|
2035
2040
|
iconClassName: r = "",
|
|
2036
2041
|
otherContentClassName: l = "",
|
|
2037
|
-
disabled:
|
|
2042
|
+
disabled: u,
|
|
2038
2043
|
feedback: g,
|
|
2039
2044
|
feedbackClassName: h,
|
|
2040
2045
|
onPointerDown: f,
|
|
2041
|
-
onPointerUp:
|
|
2046
|
+
onPointerUp: d,
|
|
2042
2047
|
onPointerLeave: L,
|
|
2043
2048
|
...F
|
|
2044
2049
|
}) => {
|
|
2045
|
-
const [a, Z] = Y(!1), j = !
|
|
2050
|
+
const [a, Z] = Y(!1), j = !u && g ? h : "", S = !u && (a || g);
|
|
2046
2051
|
return /* @__PURE__ */ n.jsxs(
|
|
2047
2052
|
"button",
|
|
2048
2053
|
{
|
|
2049
2054
|
type: "button",
|
|
2050
2055
|
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${j}`,
|
|
2051
2056
|
...F,
|
|
2052
|
-
disabled:
|
|
2057
|
+
disabled: u,
|
|
2053
2058
|
onPointerDown: (C) => {
|
|
2054
2059
|
Z(!0), f == null || f(C);
|
|
2055
2060
|
},
|
|
2056
2061
|
onPointerUp: (C) => {
|
|
2057
|
-
Z(!1),
|
|
2062
|
+
Z(!1), d == null || d(C);
|
|
2058
2063
|
},
|
|
2059
2064
|
onPointerLeave: (C) => {
|
|
2060
2065
|
Z(!1), L == null || L(C);
|
|
@@ -2065,7 +2070,7 @@ const Lt = () => {
|
|
|
2065
2070
|
{
|
|
2066
2071
|
className: `${r || $1.iconsm}`,
|
|
2067
2072
|
active: S,
|
|
2068
|
-
disabled:
|
|
2073
|
+
disabled: u
|
|
2069
2074
|
}
|
|
2070
2075
|
),
|
|
2071
2076
|
l ? /* @__PURE__ */ n.jsx("div", { className: l, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
|