@pepperdash/mobile-control-react-app-core 1.24.0-feat-essentials-v3.1 → 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.
|
@@ -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,7 +471,7 @@ 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
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
477
|
console.log("WebSocket middleware: Essentials version", {
|
|
@@ -678,7 +678,7 @@ const g3 = {}, O1 = v1({
|
|
|
678
678
|
e.client && C ? e.client.send(
|
|
679
679
|
JSON.stringify({ type: a, clientId: x, content: Z })
|
|
680
680
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
681
|
-
},
|
|
681
|
+
}, d = (a, Z, j) => {
|
|
682
682
|
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
|
|
683
683
|
}, L = (a, Z) => {
|
|
684
684
|
e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
|
|
@@ -713,7 +713,7 @@ const g3 = {}, O1 = v1({
|
|
|
713
713
|
);
|
|
714
714
|
break;
|
|
715
715
|
case $3:
|
|
716
|
-
|
|
716
|
+
d(
|
|
717
717
|
C.payload.eventType,
|
|
718
718
|
C.payload.key,
|
|
719
719
|
C.payload.callback
|
|
@@ -732,19 +732,19 @@ const g3 = {}, O1 = v1({
|
|
|
732
732
|
if (j.type === U.setWebsocketIsConnected.type)
|
|
733
733
|
j.payload === !0 && (console.log(
|
|
734
734
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
735
|
-
), setTimeout(() =>
|
|
735
|
+
), setTimeout(() => u(a.getState), 100));
|
|
736
736
|
else if (j.type === U.setRoomData.type) {
|
|
737
737
|
const x = a.getState(), k = j.payload;
|
|
738
738
|
x.runtimeConfig.websocket.isConnected && (k != null && k.clientId) && (console.log(
|
|
739
739
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
740
|
-
), setTimeout(() =>
|
|
740
|
+
), setTimeout(() => u(a.getState), 100));
|
|
741
741
|
} else if (j.type === U.setCurrentRoomKey.type) {
|
|
742
742
|
const x = j.payload;
|
|
743
743
|
x && (console.log(
|
|
744
744
|
"[WebSocket Middleware] Room changed to:",
|
|
745
745
|
x,
|
|
746
746
|
", requesting room status..."
|
|
747
|
-
), setTimeout(() =>
|
|
747
|
+
), setTimeout(() => u(a.getState, x), 100));
|
|
748
748
|
}
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
@@ -806,14 +806,14 @@ function We() {
|
|
|
806
806
|
if (w3) return i1;
|
|
807
807
|
w3 = 1;
|
|
808
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 };
|
|
809
|
-
function
|
|
810
|
-
var
|
|
809
|
+
function u(g, h, f) {
|
|
810
|
+
var d, L = {}, F = null, a = null;
|
|
811
811
|
f !== void 0 && (F = "" + f), h.key !== void 0 && (F = "" + h.key), h.ref !== void 0 && (a = h.ref);
|
|
812
|
-
for (
|
|
813
|
-
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]);
|
|
814
814
|
return { $$typeof: t, type: g, key: F, ref: a, props: L, _owner: r.current };
|
|
815
815
|
}
|
|
816
|
-
return i1.Fragment = o, i1.jsx =
|
|
816
|
+
return i1.Fragment = o, i1.jsx = u, i1.jsxs = u, i1;
|
|
817
817
|
}
|
|
818
818
|
var a1 = {};
|
|
819
819
|
/**
|
|
@@ -828,7 +828,7 @@ var a1 = {};
|
|
|
828
828
|
var m3;
|
|
829
829
|
function Ve() {
|
|
830
830
|
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
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"),
|
|
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";
|
|
832
832
|
function S(s) {
|
|
833
833
|
if (s === null || typeof s != "object")
|
|
834
834
|
return null;
|
|
@@ -838,16 +838,16 @@ function Ve() {
|
|
|
838
838
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
839
839
|
function x(s) {
|
|
840
840
|
{
|
|
841
|
-
for (var i = arguments.length,
|
|
842
|
-
|
|
843
|
-
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);
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function k(s, i,
|
|
846
|
+
function k(s, i, v) {
|
|
847
847
|
{
|
|
848
848
|
var p = C.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
849
|
-
E !== "" && (i += "%s",
|
|
850
|
-
var T =
|
|
849
|
+
E !== "" && (i += "%s", v = v.concat([E]));
|
|
850
|
+
var T = v.map(function(y) {
|
|
851
851
|
return String(y);
|
|
852
852
|
});
|
|
853
853
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
@@ -856,18 +856,18 @@ function Ve() {
|
|
|
856
856
|
var o1 = !1, H = !1, O = !1, D = !1, z = !1, s1;
|
|
857
857
|
s1 = Symbol.for("react.module.reference");
|
|
858
858
|
function b1(s) {
|
|
859
|
-
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
|
|
860
860
|
// types supported by any Flight configuration anywhere since
|
|
861
861
|
// we don't know which Flight build this will end up being used
|
|
862
862
|
// with.
|
|
863
863
|
s.$$typeof === s1 || s.getModuleId !== void 0));
|
|
864
864
|
}
|
|
865
|
-
function U3(s, i,
|
|
865
|
+
function U3(s, i, v) {
|
|
866
866
|
var p = s.displayName;
|
|
867
867
|
if (p)
|
|
868
868
|
return p;
|
|
869
869
|
var E = i.displayName || i.name || "";
|
|
870
|
-
return E !== "" ?
|
|
870
|
+
return E !== "" ? v + "(" + E + ")" : v;
|
|
871
871
|
}
|
|
872
872
|
function U1(s) {
|
|
873
873
|
return s.displayName || "Context";
|
|
@@ -890,7 +890,7 @@ function Ve() {
|
|
|
890
890
|
return "StrictMode";
|
|
891
891
|
case f:
|
|
892
892
|
return "Suspense";
|
|
893
|
-
case
|
|
893
|
+
case d:
|
|
894
894
|
return "SuspenseList";
|
|
895
895
|
}
|
|
896
896
|
if (typeof s == "object")
|
|
@@ -898,9 +898,9 @@ function Ve() {
|
|
|
898
898
|
case g:
|
|
899
899
|
var i = s;
|
|
900
900
|
return U1(i) + ".Consumer";
|
|
901
|
-
case
|
|
902
|
-
var
|
|
903
|
-
return U1(
|
|
901
|
+
case u:
|
|
902
|
+
var v = s;
|
|
903
|
+
return U1(v._context) + ".Provider";
|
|
904
904
|
case h:
|
|
905
905
|
return U3(s, s.render, "ForwardRef");
|
|
906
906
|
case L:
|
|
@@ -980,7 +980,7 @@ function Ve() {
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
var y1 = C.ReactCurrentDispatcher, I1;
|
|
983
|
-
function h1(s, i,
|
|
983
|
+
function h1(s, i, v) {
|
|
984
984
|
{
|
|
985
985
|
if (I1 === void 0)
|
|
986
986
|
try {
|
|
@@ -1002,9 +1002,9 @@ function Ve() {
|
|
|
1002
1002
|
if (!s || R1)
|
|
1003
1003
|
return "";
|
|
1004
1004
|
{
|
|
1005
|
-
var
|
|
1006
|
-
if (
|
|
1007
|
-
return
|
|
1005
|
+
var v = g1.get(s);
|
|
1006
|
+
if (v !== void 0)
|
|
1007
|
+
return v;
|
|
1008
1008
|
}
|
|
1009
1009
|
var p;
|
|
1010
1010
|
R1 = !0;
|
|
@@ -1069,14 +1069,14 @@ function Ve() {
|
|
|
1069
1069
|
var t1 = s ? s.displayName || s.name : "", Q = t1 ? h1(t1) : "";
|
|
1070
1070
|
return typeof s == "function" && g1.set(s, Q), Q;
|
|
1071
1071
|
}
|
|
1072
|
-
function q3(s, i,
|
|
1072
|
+
function q3(s, i, v) {
|
|
1073
1073
|
return X1(s, !1);
|
|
1074
1074
|
}
|
|
1075
1075
|
function G3(s) {
|
|
1076
1076
|
var i = s.prototype;
|
|
1077
1077
|
return !!(i && i.isReactComponent);
|
|
1078
1078
|
}
|
|
1079
|
-
function f1(s, i,
|
|
1079
|
+
function f1(s, i, v) {
|
|
1080
1080
|
if (s == null)
|
|
1081
1081
|
return "";
|
|
1082
1082
|
if (typeof s == "function")
|
|
@@ -1086,7 +1086,7 @@ function Ve() {
|
|
|
1086
1086
|
switch (s) {
|
|
1087
1087
|
case f:
|
|
1088
1088
|
return h1("Suspense");
|
|
1089
|
-
case
|
|
1089
|
+
case d:
|
|
1090
1090
|
return h1("SuspenseList");
|
|
1091
1091
|
}
|
|
1092
1092
|
if (typeof s == "object")
|
|
@@ -1094,11 +1094,11 @@ function Ve() {
|
|
|
1094
1094
|
case h:
|
|
1095
1095
|
return q3(s.render);
|
|
1096
1096
|
case L:
|
|
1097
|
-
return f1(s.type, i,
|
|
1097
|
+
return f1(s.type, i, v);
|
|
1098
1098
|
case F: {
|
|
1099
1099
|
var p = s, E = p._payload, T = p._init;
|
|
1100
1100
|
try {
|
|
1101
|
-
return f1(T(E), i,
|
|
1101
|
+
return f1(T(E), i, v);
|
|
1102
1102
|
} catch {
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
@@ -1108,12 +1108,12 @@ function Ve() {
|
|
|
1108
1108
|
var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = C.ReactDebugCurrentFrame;
|
|
1109
1109
|
function w1(s) {
|
|
1110
1110
|
if (s) {
|
|
1111
|
-
var i = s._owner,
|
|
1112
|
-
N1.setExtraStackFrame(
|
|
1111
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1112
|
+
N1.setExtraStackFrame(v);
|
|
1113
1113
|
} else
|
|
1114
1114
|
N1.setExtraStackFrame(null);
|
|
1115
1115
|
}
|
|
1116
|
-
function Y3(s, i,
|
|
1116
|
+
function Y3(s, i, v, p, E) {
|
|
1117
1117
|
{
|
|
1118
1118
|
var T = Function.call.bind(r1);
|
|
1119
1119
|
for (var y in s)
|
|
@@ -1121,14 +1121,14 @@ function Ve() {
|
|
|
1121
1121
|
var b = void 0;
|
|
1122
1122
|
try {
|
|
1123
1123
|
if (typeof s[y] != "function") {
|
|
1124
|
-
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`.");
|
|
1125
1125
|
throw B.name = "Invariant Violation", B;
|
|
1126
1126
|
}
|
|
1127
|
-
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");
|
|
1128
1128
|
} catch (P) {
|
|
1129
1129
|
b = P;
|
|
1130
1130
|
}
|
|
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",
|
|
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));
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
@@ -1138,8 +1138,8 @@ function Ve() {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
function J3(s) {
|
|
1140
1140
|
{
|
|
1141
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
1142
|
-
return
|
|
1141
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, v = i && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
1142
|
+
return v;
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
function X3(s) {
|
|
@@ -1183,34 +1183,34 @@ function Ve() {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
function n2(s, i) {
|
|
1185
1185
|
{
|
|
1186
|
-
var
|
|
1186
|
+
var v = function() {
|
|
1187
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));
|
|
1188
1188
|
};
|
|
1189
|
-
|
|
1190
|
-
get:
|
|
1189
|
+
v.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
1190
|
+
get: v,
|
|
1191
1191
|
configurable: !0
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
function o2(s, i) {
|
|
1196
1196
|
{
|
|
1197
|
-
var
|
|
1197
|
+
var v = function() {
|
|
1198
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));
|
|
1199
1199
|
};
|
|
1200
|
-
|
|
1201
|
-
get:
|
|
1200
|
+
v.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
1201
|
+
get: v,
|
|
1202
1202
|
configurable: !0
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
var s2 = function(s, i,
|
|
1206
|
+
var s2 = function(s, i, v, p, E, T, y) {
|
|
1207
1207
|
var b = {
|
|
1208
1208
|
// This tag allows us to uniquely identify this as a React Element
|
|
1209
1209
|
$$typeof: t,
|
|
1210
1210
|
// Built-in properties that belong on the element
|
|
1211
1211
|
type: s,
|
|
1212
1212
|
key: i,
|
|
1213
|
-
ref:
|
|
1213
|
+
ref: v,
|
|
1214
1214
|
props: y,
|
|
1215
1215
|
// Record the component responsible for creating this element.
|
|
1216
1216
|
_owner: T
|
|
@@ -1232,10 +1232,10 @@ function Ve() {
|
|
|
1232
1232
|
value: E
|
|
1233
1233
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
1234
1234
|
};
|
|
1235
|
-
function c2(s, i,
|
|
1235
|
+
function c2(s, i, v, p, E) {
|
|
1236
1236
|
{
|
|
1237
1237
|
var T, y = {}, b = null, B = null;
|
|
1238
|
-
|
|
1238
|
+
v !== void 0 && (t3(v), b = "" + v), e2(i) && (t3(i.key), b = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
|
|
1239
1239
|
for (T in i)
|
|
1240
1240
|
r1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
|
|
1241
1241
|
if (s && s.defaultProps) {
|
|
@@ -1253,8 +1253,8 @@ function Ve() {
|
|
|
1253
1253
|
var T1 = C.ReactCurrentOwner, c3 = C.ReactDebugCurrentFrame;
|
|
1254
1254
|
function e1(s) {
|
|
1255
1255
|
if (s) {
|
|
1256
|
-
var i = s._owner,
|
|
1257
|
-
c3.setExtraStackFrame(
|
|
1256
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1257
|
+
c3.setExtraStackFrame(v);
|
|
1258
1258
|
} else
|
|
1259
1259
|
c3.setExtraStackFrame(null);
|
|
1260
1260
|
}
|
|
@@ -1283,10 +1283,10 @@ Check the render method of \`` + s + "`.";
|
|
|
1283
1283
|
{
|
|
1284
1284
|
var i = r3();
|
|
1285
1285
|
if (!i) {
|
|
1286
|
-
var
|
|
1287
|
-
|
|
1286
|
+
var v = typeof s == "string" ? s : s.displayName || s.name;
|
|
1287
|
+
v && (i = `
|
|
1288
1288
|
|
|
1289
|
-
Check the top-level render call using <` +
|
|
1289
|
+
Check the top-level render call using <` + v + ">.");
|
|
1290
1290
|
}
|
|
1291
1291
|
return i;
|
|
1292
1292
|
}
|
|
@@ -1296,12 +1296,12 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1296
1296
|
if (!s._store || s._store.validated || s.key != null)
|
|
1297
1297
|
return;
|
|
1298
1298
|
s._store.validated = !0;
|
|
1299
|
-
var
|
|
1300
|
-
if (l3[
|
|
1299
|
+
var v = l2(i);
|
|
1300
|
+
if (l3[v])
|
|
1301
1301
|
return;
|
|
1302
|
-
l3[
|
|
1302
|
+
l3[v] = !0;
|
|
1303
1303
|
var p = "";
|
|
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.',
|
|
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);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
function a3(s, i) {
|
|
@@ -1309,8 +1309,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1309
1309
|
if (typeof s != "object")
|
|
1310
1310
|
return;
|
|
1311
1311
|
if (E1(s))
|
|
1312
|
-
for (var
|
|
1313
|
-
var p = s[
|
|
1312
|
+
for (var v = 0; v < s.length; v++) {
|
|
1313
|
+
var p = s[v];
|
|
1314
1314
|
_1(p) && i3(p, i);
|
|
1315
1315
|
}
|
|
1316
1316
|
else if (_1(s))
|
|
@@ -1328,18 +1328,18 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1328
1328
|
var i = s.type;
|
|
1329
1329
|
if (i == null || typeof i == "string")
|
|
1330
1330
|
return;
|
|
1331
|
-
var
|
|
1331
|
+
var v;
|
|
1332
1332
|
if (typeof i == "function")
|
|
1333
|
-
|
|
1333
|
+
v = i.propTypes;
|
|
1334
1334
|
else if (typeof i == "object" && (i.$$typeof === h || // Note: Memo only checks outer props here.
|
|
1335
1335
|
// Inner props are checked in the reconciler.
|
|
1336
1336
|
i.$$typeof === L))
|
|
1337
|
-
|
|
1337
|
+
v = i.propTypes;
|
|
1338
1338
|
else
|
|
1339
1339
|
return;
|
|
1340
|
-
if (
|
|
1340
|
+
if (v) {
|
|
1341
1341
|
var p = J(i);
|
|
1342
|
-
Y3(
|
|
1342
|
+
Y3(v, s.props, "prop", p, s);
|
|
1343
1343
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1344
1344
|
D1 = !0;
|
|
1345
1345
|
var E = J(i);
|
|
@@ -1350,8 +1350,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1350
1350
|
}
|
|
1351
1351
|
function a2(s) {
|
|
1352
1352
|
{
|
|
1353
|
-
for (var i = Object.keys(s.props),
|
|
1354
|
-
var p = i[
|
|
1353
|
+
for (var i = Object.keys(s.props), v = 0; v < i.length; v++) {
|
|
1354
|
+
var p = i[v];
|
|
1355
1355
|
if (p !== "children" && p !== "key") {
|
|
1356
1356
|
e1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), e1(null);
|
|
1357
1357
|
break;
|
|
@@ -1361,7 +1361,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
var u3 = {};
|
|
1364
|
-
function d3(s, i,
|
|
1364
|
+
function d3(s, i, v, p, E, T) {
|
|
1365
1365
|
{
|
|
1366
1366
|
var y = b1(s);
|
|
1367
1367
|
if (!y) {
|
|
@@ -1372,7 +1372,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1372
1372
|
var P;
|
|
1373
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);
|
|
1374
1374
|
}
|
|
1375
|
-
var $ = c2(s, i,
|
|
1375
|
+
var $ = c2(s, i, v, E, T);
|
|
1376
1376
|
if ($ == null)
|
|
1377
1377
|
return $;
|
|
1378
1378
|
if (y) {
|
|
@@ -1405,11 +1405,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1405
1405
|
return s === c ? a2($) : i2($), $;
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function u2(s, i,
|
|
1409
|
-
return d3(s, i,
|
|
1408
|
+
function u2(s, i, v) {
|
|
1409
|
+
return d3(s, i, v, !0);
|
|
1410
1410
|
}
|
|
1411
|
-
function d2(s, i,
|
|
1412
|
-
return d3(s, i,
|
|
1411
|
+
function d2(s, i, v) {
|
|
1412
|
+
return d3(s, i, v, !1);
|
|
1413
1413
|
}
|
|
1414
1414
|
var v2 = d2, h2 = u2;
|
|
1415
1415
|
a1.Fragment = c, a1.jsx = v2, a1.jsxs = h2;
|
|
@@ -1453,11 +1453,11 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1453
1453
|
},
|
|
1454
1454
|
[c]
|
|
1455
1455
|
), l = l1(
|
|
1456
|
-
(h, f,
|
|
1457
|
-
t(Pe(h, f,
|
|
1456
|
+
(h, f, d) => {
|
|
1457
|
+
t(Pe(h, f, d));
|
|
1458
1458
|
},
|
|
1459
1459
|
[t]
|
|
1460
|
-
),
|
|
1460
|
+
), u = l1(
|
|
1461
1461
|
(h, f) => {
|
|
1462
1462
|
t($e(h, f));
|
|
1463
1463
|
},
|
|
@@ -1472,7 +1472,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1472
1472
|
sendMessage: c,
|
|
1473
1473
|
sendSimpleMessage: r,
|
|
1474
1474
|
addEventHandler: l,
|
|
1475
|
-
removeEventHandler:
|
|
1475
|
+
removeEventHandler: u,
|
|
1476
1476
|
reconnect: g
|
|
1477
1477
|
},
|
|
1478
1478
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
@@ -1489,22 +1489,22 @@ function Ge({
|
|
|
1489
1489
|
onPressedButNotHeld: c,
|
|
1490
1490
|
holdTimeMs: r = 500
|
|
1491
1491
|
}) {
|
|
1492
|
-
const l = d1(null),
|
|
1492
|
+
const l = d1(null), u = d1(!1), g = d1(!1);
|
|
1493
1493
|
function h() {
|
|
1494
|
-
|
|
1494
|
+
u.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
|
|
1495
1495
|
g.current = !0, o == null || o(), l.current = null;
|
|
1496
1496
|
}, r);
|
|
1497
1497
|
}
|
|
1498
1498
|
function f() {
|
|
1499
|
-
|
|
1499
|
+
u.current = !1, t == null || t(), l.current && (clearTimeout(l.current), l.current = null, g.current || c == null || c());
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
|
|
1501
|
+
function d() {
|
|
1502
|
+
u.current && f();
|
|
1503
1503
|
}
|
|
1504
1504
|
return {
|
|
1505
1505
|
onPointerDown: h,
|
|
1506
1506
|
onPointerUp: f,
|
|
1507
|
-
onPointerLeave:
|
|
1507
|
+
onPointerLeave: d
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
function w(e, t) {
|
|
@@ -1514,10 +1514,10 @@ function w(e, t) {
|
|
|
1514
1514
|
c(`${e}/${t}`, { value: "held" });
|
|
1515
1515
|
}, 250));
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function u() {
|
|
1518
1518
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1519
1519
|
}
|
|
1520
|
-
return Ge({ onPress: l, onRelease:
|
|
1520
|
+
return Ge({ onPress: l, onRelease: u });
|
|
1521
1521
|
}
|
|
1522
1522
|
function C1(e) {
|
|
1523
1523
|
const { sendMessage: t } = R(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
@@ -1583,14 +1583,15 @@ function Ye(e) {
|
|
|
1583
1583
|
return W3(o, c);
|
|
1584
1584
|
}
|
|
1585
1585
|
function V3(e) {
|
|
1586
|
-
|
|
1586
|
+
var u;
|
|
1587
|
+
const { sendMessage: t } = R(), o = (u = _(e)) == null ? void 0 : u.powerState;
|
|
1587
1588
|
return { powerOn: () => {
|
|
1588
1589
|
t(`/device/${e}/powerOn`, null);
|
|
1589
1590
|
}, powerOff: () => {
|
|
1590
1591
|
t(`/device/${e}/powerOff`, null);
|
|
1591
1592
|
}, powerToggle: () => {
|
|
1592
1593
|
t(`/device/${e}/powerToggle`, null);
|
|
1593
|
-
} };
|
|
1594
|
+
}, powerState: o };
|
|
1594
1595
|
}
|
|
1595
1596
|
function B1(e) {
|
|
1596
1597
|
const { sendMessage: t } = R(), o = _(e);
|
|
@@ -1610,14 +1611,14 @@ function ze(e) {
|
|
|
1610
1611
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1611
1612
|
}
|
|
1612
1613
|
function F6(e) {
|
|
1613
|
-
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);
|
|
1614
1615
|
if (t)
|
|
1615
1616
|
return {
|
|
1616
1617
|
avrState: t,
|
|
1617
1618
|
powerControl: o,
|
|
1618
1619
|
inputControl: c,
|
|
1619
1620
|
surroundSoundModes: r,
|
|
1620
|
-
surroundChannels:
|
|
1621
|
+
surroundChannels: u,
|
|
1621
1622
|
mainVolumeControl: l
|
|
1622
1623
|
};
|
|
1623
1624
|
}
|
|
@@ -1635,10 +1636,10 @@ const H6 = ({ className: e }) => {
|
|
|
1635
1636
|
};
|
|
1636
1637
|
function K6(e) {
|
|
1637
1638
|
const { sendMessage: t } = R(), o = _(e), c = `/device/${e}`;
|
|
1638
|
-
return o ? { state: o, recallPreset: (
|
|
1639
|
-
t(`${c}/presets/recall`, { deviceKey:
|
|
1640
|
-
}, savePresets: (
|
|
1641
|
-
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);
|
|
1642
1643
|
} } : void 0;
|
|
1643
1644
|
}
|
|
1644
1645
|
function q6(e) {
|
|
@@ -1647,8 +1648,8 @@ function q6(e) {
|
|
|
1647
1648
|
return { endpointState: t };
|
|
1648
1649
|
}
|
|
1649
1650
|
function G6(e) {
|
|
1650
|
-
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"),
|
|
1651
|
-
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 };
|
|
1652
1653
|
}
|
|
1653
1654
|
function Y6(e) {
|
|
1654
1655
|
const t = `/device/${e}`, o = w(t, "red"), c = w(t, "green"), r = w(t, "yellow"), l = w(t, "blue");
|
|
@@ -1667,11 +1668,11 @@ function J6(e) {
|
|
|
1667
1668
|
return t.deviceInfo || void 0;
|
|
1668
1669
|
}
|
|
1669
1670
|
function X6(e) {
|
|
1670
|
-
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"),
|
|
1671
|
-
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 };
|
|
1672
1673
|
}
|
|
1673
1674
|
function Q6(e) {
|
|
1674
|
-
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);
|
|
1675
1676
|
if (c)
|
|
1676
1677
|
return {
|
|
1677
1678
|
state: c,
|
|
@@ -1679,9 +1680,9 @@ function Q6(e) {
|
|
|
1679
1680
|
zoomOut: f,
|
|
1680
1681
|
up: r,
|
|
1681
1682
|
down: l,
|
|
1682
|
-
left:
|
|
1683
|
+
left: u,
|
|
1683
1684
|
right: g,
|
|
1684
|
-
recallPreset:
|
|
1685
|
+
recallPreset: d
|
|
1685
1686
|
};
|
|
1686
1687
|
}
|
|
1687
1688
|
function N6(e) {
|
|
@@ -1729,10 +1730,10 @@ function st(e) {
|
|
|
1729
1730
|
const { sendMessage: t, sendSimpleMessage: o } = R(), c = _(e), r = ne(e), l = c || r;
|
|
1730
1731
|
return l ? {
|
|
1731
1732
|
levelState: l,
|
|
1732
|
-
setLevel: (
|
|
1733
|
-
muteToggle: (
|
|
1734
|
-
muteOn: (
|
|
1735
|
-
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)
|
|
1736
1737
|
} : void 0;
|
|
1737
1738
|
}
|
|
1738
1739
|
function ct(e) {
|
|
@@ -1754,17 +1755,17 @@ function lt(e) {
|
|
|
1754
1755
|
} };
|
|
1755
1756
|
}
|
|
1756
1757
|
function it(e) {
|
|
1757
|
-
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");
|
|
1758
1759
|
return {
|
|
1759
1760
|
digit0: o,
|
|
1760
1761
|
digit1: c,
|
|
1761
1762
|
digit2: r,
|
|
1762
1763
|
digit3: l,
|
|
1763
|
-
digit4:
|
|
1764
|
+
digit4: u,
|
|
1764
1765
|
digit5: g,
|
|
1765
1766
|
digit6: h,
|
|
1766
1767
|
digit7: f,
|
|
1767
|
-
digit8:
|
|
1768
|
+
digit8: d,
|
|
1768
1769
|
digit9: L,
|
|
1769
1770
|
keypadAccessoryButton1: F,
|
|
1770
1771
|
keypadAccessoryButton2: a
|
|
@@ -1840,8 +1841,8 @@ function pt(e) {
|
|
|
1840
1841
|
const { sendMessage: t } = R(), o = j1(e);
|
|
1841
1842
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1842
1843
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1843
|
-
}, setPassword: (l,
|
|
1844
|
-
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword:
|
|
1844
|
+
}, setPassword: (l, u) => {
|
|
1845
|
+
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: u });
|
|
1845
1846
|
} } : void 0;
|
|
1846
1847
|
}
|
|
1847
1848
|
function Mt(e) {
|
|
@@ -1858,13 +1859,13 @@ function xt(e) {
|
|
|
1858
1859
|
};
|
|
1859
1860
|
}
|
|
1860
1861
|
function Zt(e) {
|
|
1861
|
-
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");
|
|
1862
1863
|
return {
|
|
1863
1864
|
play: o,
|
|
1864
1865
|
pause: c,
|
|
1865
1866
|
stop: r,
|
|
1866
1867
|
prevTrack: l,
|
|
1867
|
-
nextTrack:
|
|
1868
|
+
nextTrack: u,
|
|
1868
1869
|
rewind: g,
|
|
1869
1870
|
fastForward: h,
|
|
1870
1871
|
record: f
|
|
@@ -1905,29 +1906,29 @@ const bt = ({
|
|
|
1905
1906
|
config: e
|
|
1906
1907
|
}, t = !0) => {
|
|
1907
1908
|
const { sendMessage: o } = R(), c = d1(!1), r = n1(() => {
|
|
1908
|
-
var
|
|
1909
|
+
var u, g, h, f;
|
|
1909
1910
|
if (!e)
|
|
1910
1911
|
return;
|
|
1911
1912
|
const l = /* @__PURE__ */ new Set();
|
|
1912
|
-
if (e.destinations && Object.values(e.destinations).forEach((
|
|
1913
|
-
l.add(
|
|
1914
|
-
}), e.destinationList && Object.values(e.destinationList).forEach((
|
|
1915
|
-
l.add(
|
|
1916
|
-
}), e.audioControlPointList && Object.values((
|
|
1917
|
-
(
|
|
1918
|
-
|
|
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);
|
|
1919
1920
|
}
|
|
1920
|
-
), (g = e.touchpanelKeys) == null || g.forEach((
|
|
1921
|
-
l.add(
|
|
1922
|
-
}), (h = e.environmentalDevices) == null || h.forEach((
|
|
1923
|
-
|
|
1924
|
-
}), (f = e.accessoryDeviceKeys) == null || f.forEach((
|
|
1925
|
-
l.add(
|
|
1926
|
-
}), 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((
|
|
1927
|
-
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);
|
|
1928
1929
|
}), e.sourceList)
|
|
1929
|
-
for (const
|
|
1930
|
-
|
|
1930
|
+
for (const d of Object.values(e.sourceList))
|
|
1931
|
+
d.sourceKey && d.sourceKey !== "$off" && l.add(d.sourceKey);
|
|
1931
1932
|
return l;
|
|
1932
1933
|
}, [e]);
|
|
1933
1934
|
return Z1(() => {
|
|
@@ -1939,11 +1940,11 @@ const bt = ({
|
|
|
1939
1940
|
function yt(e, t) {
|
|
1940
1941
|
const [o, c] = Y(!1), [r, l] = Y(!1);
|
|
1941
1942
|
return Z3(() => {
|
|
1942
|
-
const { current:
|
|
1943
|
-
const h =
|
|
1943
|
+
const { current: u } = e, g = () => {
|
|
1944
|
+
const h = u && u.scrollHeight > u.clientHeight, f = u && u.scrollWidth > u.clientWidth;
|
|
1944
1945
|
l(h ?? !1), c(f ?? !1), t && t(h ?? !1, f ?? !1);
|
|
1945
1946
|
};
|
|
1946
|
-
|
|
1947
|
+
u && g();
|
|
1947
1948
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1948
1949
|
}
|
|
1949
1950
|
function It(e, t) {
|
|
@@ -1957,18 +1958,18 @@ function Rt(e, t) {
|
|
|
1957
1958
|
function Et(e) {
|
|
1958
1959
|
var g, h;
|
|
1959
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) => {
|
|
1960
|
-
const { current:
|
|
1961
|
-
|
|
1962
|
-
},
|
|
1963
|
-
const { current:
|
|
1964
|
-
|
|
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));
|
|
1965
1966
|
};
|
|
1966
1967
|
return Z3(() => {
|
|
1967
|
-
const { current: f } = e,
|
|
1968
|
+
const { current: f } = e, d = () => {
|
|
1968
1969
|
o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
|
|
1969
1970
|
};
|
|
1970
|
-
f &&
|
|
1971
|
-
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical:
|
|
1971
|
+
f && d();
|
|
1972
|
+
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: u };
|
|
1972
1973
|
}
|
|
1973
1974
|
function Tt(e) {
|
|
1974
1975
|
const t = W1();
|
|
@@ -2038,27 +2039,27 @@ const Lt = () => {
|
|
|
2038
2039
|
className: c,
|
|
2039
2040
|
iconClassName: r = "",
|
|
2040
2041
|
otherContentClassName: l = "",
|
|
2041
|
-
disabled:
|
|
2042
|
+
disabled: u,
|
|
2042
2043
|
feedback: g,
|
|
2043
2044
|
feedbackClassName: h,
|
|
2044
2045
|
onPointerDown: f,
|
|
2045
|
-
onPointerUp:
|
|
2046
|
+
onPointerUp: d,
|
|
2046
2047
|
onPointerLeave: L,
|
|
2047
2048
|
...F
|
|
2048
2049
|
}) => {
|
|
2049
|
-
const [a, Z] = Y(!1), j = !
|
|
2050
|
+
const [a, Z] = Y(!1), j = !u && g ? h : "", S = !u && (a || g);
|
|
2050
2051
|
return /* @__PURE__ */ n.jsxs(
|
|
2051
2052
|
"button",
|
|
2052
2053
|
{
|
|
2053
2054
|
type: "button",
|
|
2054
2055
|
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${j}`,
|
|
2055
2056
|
...F,
|
|
2056
|
-
disabled:
|
|
2057
|
+
disabled: u,
|
|
2057
2058
|
onPointerDown: (C) => {
|
|
2058
2059
|
Z(!0), f == null || f(C);
|
|
2059
2060
|
},
|
|
2060
2061
|
onPointerUp: (C) => {
|
|
2061
|
-
Z(!1),
|
|
2062
|
+
Z(!1), d == null || d(C);
|
|
2062
2063
|
},
|
|
2063
2064
|
onPointerLeave: (C) => {
|
|
2064
2065
|
Z(!1), L == null || L(C);
|
|
@@ -2069,7 +2070,7 @@ const Lt = () => {
|
|
|
2069
2070
|
{
|
|
2070
2071
|
className: `${r || $1.iconsm}`,
|
|
2071
2072
|
active: S,
|
|
2072
|
-
disabled:
|
|
2073
|
+
disabled: u
|
|
2073
2074
|
}
|
|
2074
2075
|
),
|
|
2075
2076
|
l ? /* @__PURE__ */ n.jsx("div", { className: l, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
|