@pepperdash/mobile-control-react-app-core 1.22.0 → 1.22.1-device-interface-system.1
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 +99 -84
- package/dist/mobile-control-react-app-core.umd.js +8 -8
- package/dist/store/middleware/websocketMiddleware.d.ts.map +1 -1
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts +55 -1
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -194,20 +194,20 @@ const t6 = x1, n6 = (e) => w(
|
|
|
194
194
|
), ae = M(
|
|
195
195
|
q,
|
|
196
196
|
(e) => e.roomData.deviceInterfaceSupport
|
|
197
|
-
), C3 = () => w(ee), p6 = () => w(te), M6 = () => w(ne), x6 = () => w(oe), Z6 = () => w(se), S6 = () => w(ce), j6 = () => w(re), C6 = () => w(le), b6 = () => w(ie), y6 = () => w(ae),
|
|
197
|
+
), C3 = () => w(ee), p6 = () => w(te), M6 = () => w(ne), x6 = () => w(oe), Z6 = () => w(se), S6 = () => w(ce), j6 = () => w(re), C6 = () => w(le), b6 = () => w(ie), y6 = () => w(ae), N = (e) => e.ui, W1 = (e) => M(N, (t) => t.modalVisibility[e]), ue = (e) => M(N, (t) => {
|
|
198
198
|
const o = t.popoverVisibility[e];
|
|
199
199
|
if (o)
|
|
200
200
|
return Object.keys(o).find((c) => o[c]);
|
|
201
201
|
}), de = (e, t) => M(
|
|
202
|
-
|
|
202
|
+
N,
|
|
203
203
|
(o) => {
|
|
204
204
|
var c;
|
|
205
205
|
return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
|
|
206
206
|
}
|
|
207
|
-
), ve = M(
|
|
208
|
-
|
|
207
|
+
), ve = M(N, (e) => e.error), he = M(
|
|
208
|
+
N,
|
|
209
209
|
(e) => e.showReconnect
|
|
210
|
-
), ge = M(
|
|
210
|
+
), ge = M(N, (e) => e.theme), fe = (e) => M(N, (t) => t.syncState.includes(e)), I6 = () => w(W1("showShutdownModal")), R6 = () => w(W1("showIncomingCallModal")), E6 = (e) => w(W1(e)), T6 = (e) => w(ue(e)), D6 = (e, t) => w(de(e, t)), we = () => w(ve), me = () => w(he), _6 = () => w(ge), pe = (e) => w(fe(e)), Me = {
|
|
211
211
|
showReconnect: !1,
|
|
212
212
|
error: "",
|
|
213
213
|
modalVisibility: {
|
|
@@ -380,6 +380,12 @@ const h3 = {}, B1 = i1({
|
|
|
380
380
|
setRoomData(e, t) {
|
|
381
381
|
e.roomData = t.payload;
|
|
382
382
|
},
|
|
383
|
+
setDeviceInterfaces(e, t) {
|
|
384
|
+
e.roomData.deviceInterfaceSupport = {
|
|
385
|
+
...e.roomData.deviceInterfaceSupport,
|
|
386
|
+
...t.payload
|
|
387
|
+
};
|
|
388
|
+
},
|
|
383
389
|
setCurrentRoomKey(e, t) {
|
|
384
390
|
e.currentRoomKey = t.payload;
|
|
385
391
|
},
|
|
@@ -390,7 +396,7 @@ const h3 = {}, B1 = i1({
|
|
|
390
396
|
e.touchpanelKey = t.payload;
|
|
391
397
|
}
|
|
392
398
|
}
|
|
393
|
-
}),
|
|
399
|
+
}), U = R3.actions, Ee = R3.reducer, _1 = p3.create(), E3 = "websocket/connect", T3 = "websocket/disconnect", D3 = "websocket/sendMessage", _3 = "websocket/addEventHandler", P3 = "websocket/removeEventHandler", L3 = "websocket/reconnect", $3 = () => ({ type: E3 }), P6 = () => ({ type: T3 }), Te = (e, t) => ({
|
|
394
400
|
type: D3,
|
|
395
401
|
payload: { messageType: e, content: t }
|
|
396
402
|
}), De = (e, t, o) => ({
|
|
@@ -420,7 +426,7 @@ const h3 = {}, B1 = i1({
|
|
|
420
426
|
const j = await _1.get(
|
|
421
427
|
`${b}/version`
|
|
422
428
|
);
|
|
423
|
-
j.status === 200 && j.data && a(
|
|
429
|
+
j.status === 200 && j.data && a(U.setRuntimeConfig(j.data));
|
|
424
430
|
}
|
|
425
431
|
} catch (x) {
|
|
426
432
|
console.error("Error getting config", x);
|
|
@@ -431,7 +437,7 @@ const h3 = {}, B1 = i1({
|
|
|
431
437
|
const Z = await _1.get(
|
|
432
438
|
`${a}/ui/joinroom?token=${x}`
|
|
433
439
|
);
|
|
434
|
-
return Z.status === 200 && Z.data ? (S(
|
|
440
|
+
return Z.status === 200 && Z.data ? (S(U.setRoomData(Z.data)), !0) : !1;
|
|
435
441
|
} catch (Z) {
|
|
436
442
|
return console.log(Z), Z instanceof f2 && Z.response && Z.response.status === 498 ? (console.error("Invalid token. Unable to join room"), S(
|
|
437
443
|
k.setErrorMessage(
|
|
@@ -446,7 +452,7 @@ const h3 = {}, B1 = i1({
|
|
|
446
452
|
}, r = () => {
|
|
447
453
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
448
454
|
}, i = (a) => {
|
|
449
|
-
a(k.setShowReconnect(!0)), a(
|
|
455
|
+
a(k.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState());
|
|
450
456
|
}, v = (a) => {
|
|
451
457
|
const x = a(), { roomKey: S } = x.runtimeConfig.roomData, { clientId: Z } = x.runtimeConfig.roomData, b = x.runtimeConfig.websocket.isConnected;
|
|
452
458
|
if (!S || !b || !Z) {
|
|
@@ -498,7 +504,7 @@ const h3 = {}, B1 = i1({
|
|
|
498
504
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
499
505
|
const S1 = `${Z.replace("http", "ws")}/ui/join/${e.token}`, Y = new WebSocket(S1);
|
|
500
506
|
e.client = Y, Y.onopen = (B) => {
|
|
501
|
-
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), a(
|
|
507
|
+
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), a(U.setWebsocketIsConnected(!0));
|
|
502
508
|
}, Y.onerror = (B) => {
|
|
503
509
|
console.error("WebSocket middleware: Error", B), i(a);
|
|
504
510
|
}, Y.onclose = (B) => {
|
|
@@ -512,7 +518,7 @@ const h3 = {}, B1 = i1({
|
|
|
512
518
|
}
|
|
513
519
|
if (e.waitingToReconnect = !0, B.code === 4e3) {
|
|
514
520
|
console.log("WebSocket middleware: User code changed"), r(), a(
|
|
515
|
-
|
|
521
|
+
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
516
522
|
), a(
|
|
517
523
|
k.setErrorMessage(
|
|
518
524
|
"User code changed. Click reconnect to enter the new code"
|
|
@@ -550,53 +556,62 @@ const h3 = {}, B1 = i1({
|
|
|
550
556
|
k.setErrorMessage(
|
|
551
557
|
"Connection lost. Attempting to reconnect..."
|
|
552
558
|
)
|
|
553
|
-
), a(
|
|
559
|
+
), a(U.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState()), c(a);
|
|
554
560
|
}, Y.onmessage = (B) => {
|
|
555
561
|
try {
|
|
556
|
-
const
|
|
557
|
-
if (
|
|
558
|
-
Y.close(4001,
|
|
562
|
+
const P = JSON.parse(B.data);
|
|
563
|
+
if (P.type === "close") {
|
|
564
|
+
Y.close(4001, P.content);
|
|
559
565
|
return;
|
|
560
566
|
}
|
|
561
|
-
if (
|
|
562
|
-
switch (
|
|
567
|
+
if (P.type.startsWith("/system/"))
|
|
568
|
+
switch (P.type) {
|
|
563
569
|
case "/system/touchpanelKey":
|
|
564
570
|
a(
|
|
565
|
-
|
|
566
|
-
|
|
571
|
+
U.setTouchpanelKey(
|
|
572
|
+
P.content
|
|
567
573
|
)
|
|
568
574
|
);
|
|
569
575
|
break;
|
|
570
576
|
case "/system/roomKey":
|
|
571
577
|
a(f1.clearRooms()), a(g1.clearDevices()), a(k.clearSyncState()), a(
|
|
572
|
-
|
|
573
|
-
|
|
578
|
+
U.setCurrentRoomKey(
|
|
579
|
+
P.content
|
|
574
580
|
)
|
|
575
581
|
);
|
|
576
582
|
break;
|
|
577
583
|
case "/system/userCodeChanged":
|
|
578
584
|
a(
|
|
579
|
-
|
|
585
|
+
U.setUserCode(P.content)
|
|
580
586
|
);
|
|
581
587
|
break;
|
|
582
588
|
case "/system/roomCombinationChanged":
|
|
583
589
|
window.location.reload();
|
|
584
590
|
break;
|
|
591
|
+
case "/system/deviceInterfaces": {
|
|
592
|
+
const J = P.content;
|
|
593
|
+
a(
|
|
594
|
+
U.setDeviceInterfaces(
|
|
595
|
+
J.deviceInterfaces
|
|
596
|
+
)
|
|
597
|
+
);
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
585
600
|
default:
|
|
586
601
|
console.log(
|
|
587
602
|
"WebSocket middleware: Unhandled system message",
|
|
588
|
-
|
|
603
|
+
P
|
|
589
604
|
);
|
|
590
605
|
break;
|
|
591
606
|
}
|
|
592
|
-
else if (
|
|
593
|
-
const
|
|
594
|
-
|
|
607
|
+
else if (P.type.startsWith("/event/")) {
|
|
608
|
+
const J = e.eventHandlers[P.type];
|
|
609
|
+
J || console.log(
|
|
595
610
|
"WebSocket middleware: No handlers found for event type",
|
|
596
|
-
|
|
597
|
-
),
|
|
611
|
+
P.type
|
|
612
|
+
), J && Object.values(J).forEach((a1) => {
|
|
598
613
|
try {
|
|
599
|
-
a1(
|
|
614
|
+
a1(P);
|
|
600
615
|
} catch (j1) {
|
|
601
616
|
console.error(
|
|
602
617
|
"WebSocket middleware: Event handler error",
|
|
@@ -604,9 +619,9 @@ const h3 = {}, B1 = i1({
|
|
|
604
619
|
);
|
|
605
620
|
}
|
|
606
621
|
});
|
|
607
|
-
} else
|
|
608
|
-
} catch (
|
|
609
|
-
console.error("WebSocket middleware: Message handling error",
|
|
622
|
+
} else P.type.startsWith("/room/") ? a(f1.setRoomState(P)) : P.type.startsWith("/device/") && a(g1.setDeviceState(P));
|
|
623
|
+
} catch (P) {
|
|
624
|
+
console.error("WebSocket middleware: Message handling error", P);
|
|
610
625
|
}
|
|
611
626
|
}, e.waitingToReconnect = !1;
|
|
612
627
|
} catch (j) {
|
|
@@ -627,7 +642,7 @@ const h3 = {}, B1 = i1({
|
|
|
627
642
|
a,
|
|
628
643
|
x
|
|
629
644
|
));
|
|
630
|
-
},
|
|
645
|
+
}, H = (a) => {
|
|
631
646
|
const x = a(), { gatewayAppPath: S } = x.appConfig.config, Z = x.runtimeConfig.roomData.roomKey, b = x.runtimeConfig.roomData.systemUuid, j = x.runtimeConfig.roomData.userCode, W = `${S}?uuid=${b}&roomKey=${Z}`;
|
|
632
647
|
window.location.href = j ? `${W}&Code=${j}` : W;
|
|
633
648
|
};
|
|
@@ -667,19 +682,19 @@ const h3 = {}, B1 = i1({
|
|
|
667
682
|
);
|
|
668
683
|
break;
|
|
669
684
|
case L3:
|
|
670
|
-
|
|
685
|
+
H(a.getState);
|
|
671
686
|
break;
|
|
672
687
|
default:
|
|
673
|
-
if (S.type ===
|
|
688
|
+
if (S.type === U.setWebsocketIsConnected.type)
|
|
674
689
|
S.payload === !0 && (console.log(
|
|
675
690
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
676
691
|
), setTimeout(() => v(a.getState), 100));
|
|
677
|
-
else if (S.type ===
|
|
692
|
+
else if (S.type === U.setRoomData.type) {
|
|
678
693
|
const j = a.getState(), W = S.payload;
|
|
679
694
|
j.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
|
|
680
695
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
681
696
|
), setTimeout(() => v(a.getState), 100));
|
|
682
|
-
} else if (S.type ===
|
|
697
|
+
} else if (S.type === U.setCurrentRoomKey.type) {
|
|
683
698
|
const j = S.payload;
|
|
684
699
|
j && (console.log(
|
|
685
700
|
"[WebSocket Middleware] Room changed to:",
|
|
@@ -724,7 +739,7 @@ function L6() {
|
|
|
724
739
|
const i = await g3.get(
|
|
725
740
|
`${r}/version`
|
|
726
741
|
);
|
|
727
|
-
i.status == 200 && i.data && e(
|
|
742
|
+
i.status == 200 && i.data && e(U.setRuntimeConfig(i.data));
|
|
728
743
|
}
|
|
729
744
|
} catch (t) {
|
|
730
745
|
console.error("Error getting config", t);
|
|
@@ -748,11 +763,11 @@ function Be() {
|
|
|
748
763
|
f3 = 1;
|
|
749
764
|
var e = M3, 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, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
750
765
|
function v(u, h, m) {
|
|
751
|
-
var p, _ = {},
|
|
752
|
-
m !== void 0 && (
|
|
766
|
+
var p, _ = {}, H = null, a = null;
|
|
767
|
+
m !== void 0 && (H = "" + m), h.key !== void 0 && (H = "" + h.key), h.ref !== void 0 && (a = h.ref);
|
|
753
768
|
for (p in h) c.call(h, p) && !i.hasOwnProperty(p) && (_[p] = h[p]);
|
|
754
769
|
if (u && u.defaultProps) for (p in h = u.defaultProps, h) _[p] === void 0 && (_[p] = h[p]);
|
|
755
|
-
return { $$typeof: t, type: u, key:
|
|
770
|
+
return { $$typeof: t, type: u, key: H, ref: a, props: _, _owner: r.current };
|
|
756
771
|
}
|
|
757
772
|
return c1.Fragment = o, c1.jsx = v, c1.jsxs = v, c1;
|
|
758
773
|
}
|
|
@@ -769,7 +784,7 @@ var r1 = {};
|
|
|
769
784
|
var w3;
|
|
770
785
|
function Oe() {
|
|
771
786
|
return w3 || (w3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
772
|
-
var e = M3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), u = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"),
|
|
787
|
+
var e = M3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), u = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), x = Symbol.iterator, S = "@@iterator";
|
|
773
788
|
function Z(s) {
|
|
774
789
|
if (s === null || typeof s != "object")
|
|
775
790
|
return null;
|
|
@@ -794,10 +809,10 @@ function Oe() {
|
|
|
794
809
|
T.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, T);
|
|
795
810
|
}
|
|
796
811
|
}
|
|
797
|
-
var S1 = !1, Y = !1, B = !1,
|
|
812
|
+
var S1 = !1, Y = !1, B = !1, P = !1, J = !1, a1;
|
|
798
813
|
a1 = Symbol.for("react.module.reference");
|
|
799
814
|
function j1(s) {
|
|
800
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === i ||
|
|
815
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || J || s === r || s === m || s === p || P || s === a || S1 || Y || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === _ || s.$$typeof === v || s.$$typeof === u || s.$$typeof === h || // This needs to include all possible module reference object
|
|
801
816
|
// types supported by any Flight configuration anywhere since
|
|
802
817
|
// we don't know which Flight build this will end up being used
|
|
803
818
|
// with.
|
|
@@ -847,7 +862,7 @@ function Oe() {
|
|
|
847
862
|
case _:
|
|
848
863
|
var f = s.displayName || null;
|
|
849
864
|
return f !== null ? f : z(s.type) || "Memo";
|
|
850
|
-
case
|
|
865
|
+
case H: {
|
|
851
866
|
var E = s, T = E._payload, y = E._init;
|
|
852
867
|
try {
|
|
853
868
|
return z(y(T));
|
|
@@ -858,7 +873,7 @@ function Oe() {
|
|
|
858
873
|
}
|
|
859
874
|
return null;
|
|
860
875
|
}
|
|
861
|
-
var
|
|
876
|
+
var X = Object.assign, n1 = 0, U1, H1, F1, K1, q1, G1, Y1;
|
|
862
877
|
function z1() {
|
|
863
878
|
}
|
|
864
879
|
z1.__reactDisabledLog = !0;
|
|
@@ -894,25 +909,25 @@ function Oe() {
|
|
|
894
909
|
writable: !0
|
|
895
910
|
};
|
|
896
911
|
Object.defineProperties(console, {
|
|
897
|
-
log:
|
|
912
|
+
log: X({}, s, {
|
|
898
913
|
value: U1
|
|
899
914
|
}),
|
|
900
|
-
info:
|
|
915
|
+
info: X({}, s, {
|
|
901
916
|
value: H1
|
|
902
917
|
}),
|
|
903
|
-
warn:
|
|
918
|
+
warn: X({}, s, {
|
|
904
919
|
value: F1
|
|
905
920
|
}),
|
|
906
|
-
error:
|
|
921
|
+
error: X({}, s, {
|
|
907
922
|
value: K1
|
|
908
923
|
}),
|
|
909
|
-
group:
|
|
924
|
+
group: X({}, s, {
|
|
910
925
|
value: q1
|
|
911
926
|
}),
|
|
912
|
-
groupCollapsed:
|
|
927
|
+
groupCollapsed: X({}, s, {
|
|
913
928
|
value: G1
|
|
914
929
|
}),
|
|
915
|
-
groupEnd:
|
|
930
|
+
groupEnd: X({}, s, {
|
|
916
931
|
value: Y1
|
|
917
932
|
})
|
|
918
933
|
});
|
|
@@ -989,26 +1004,26 @@ function Oe() {
|
|
|
989
1004
|
if (V && f && typeof V.stack == "string") {
|
|
990
1005
|
for (var C = V.stack.split(`
|
|
991
1006
|
`), O = f.stack.split(`
|
|
992
|
-
`),
|
|
1007
|
+
`), L = C.length - 1, $ = O.length - 1; L >= 1 && $ >= 0 && C[L] !== O[$]; )
|
|
993
1008
|
$--;
|
|
994
|
-
for (;
|
|
995
|
-
if (C[
|
|
996
|
-
if (
|
|
1009
|
+
for (; L >= 1 && $ >= 0; L--, $--)
|
|
1010
|
+
if (C[L] !== O[$]) {
|
|
1011
|
+
if (L !== 1 || $ !== 1)
|
|
997
1012
|
do
|
|
998
|
-
if (
|
|
1013
|
+
if (L--, $--, $ < 0 || C[L] !== O[$]) {
|
|
999
1014
|
var F = `
|
|
1000
|
-
` + C[
|
|
1015
|
+
` + C[L].replace(" at new ", " at ");
|
|
1001
1016
|
return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && d1.set(s, F), F;
|
|
1002
1017
|
}
|
|
1003
|
-
while (
|
|
1018
|
+
while (L >= 1 && $ >= 0);
|
|
1004
1019
|
break;
|
|
1005
1020
|
}
|
|
1006
1021
|
}
|
|
1007
1022
|
} finally {
|
|
1008
1023
|
y1 = !1, C1.current = T, V3(), Error.prepareStackTrace = E;
|
|
1009
1024
|
}
|
|
1010
|
-
var
|
|
1011
|
-
return typeof s == "function" && d1.set(s,
|
|
1025
|
+
var t1 = s ? s.displayName || s.name : "", Q = t1 ? u1(t1) : "";
|
|
1026
|
+
return typeof s == "function" && d1.set(s, Q), Q;
|
|
1012
1027
|
}
|
|
1013
1028
|
function H3(s, l, d) {
|
|
1014
1029
|
return J1(s, !1);
|
|
@@ -1036,7 +1051,7 @@ function Oe() {
|
|
|
1036
1051
|
return H3(s.render);
|
|
1037
1052
|
case _:
|
|
1038
1053
|
return v1(s.type, l, d);
|
|
1039
|
-
case
|
|
1054
|
+
case H: {
|
|
1040
1055
|
var f = s, E = f._payload, T = f._init;
|
|
1041
1056
|
try {
|
|
1042
1057
|
return v1(T(E), l, d);
|
|
@@ -1066,8 +1081,8 @@ function Oe() {
|
|
|
1066
1081
|
throw O.name = "Invariant Violation", O;
|
|
1067
1082
|
}
|
|
1068
1083
|
C = s[y](l, y, f, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1069
|
-
} catch (
|
|
1070
|
-
C =
|
|
1084
|
+
} catch (L) {
|
|
1085
|
+
C = L;
|
|
1071
1086
|
}
|
|
1072
1087
|
C && !(C instanceof Error) && (h1(E), j("%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).", f || "React class", d, y, typeof C), h1(null)), C instanceof Error && !(C.message in X1) && (X1[C.message] = !0, h1(E), j("Failed %s type: %s", d, C.message), h1(null));
|
|
1073
1088
|
}
|
|
@@ -1180,9 +1195,9 @@ function Oe() {
|
|
|
1180
1195
|
for (T in l)
|
|
1181
1196
|
o1.call(l, T) && !z3.hasOwnProperty(T) && (y[T] = l[T]);
|
|
1182
1197
|
if (s && s.defaultProps) {
|
|
1183
|
-
var
|
|
1184
|
-
for (T in
|
|
1185
|
-
y[T] === void 0 && (y[T] =
|
|
1198
|
+
var L = s.defaultProps;
|
|
1199
|
+
for (T in L)
|
|
1200
|
+
y[T] === void 0 && (y[T] = L[T]);
|
|
1186
1201
|
}
|
|
1187
1202
|
if (C || O) {
|
|
1188
1203
|
var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
@@ -1192,7 +1207,7 @@ function Oe() {
|
|
|
1192
1207
|
}
|
|
1193
1208
|
}
|
|
1194
1209
|
var R1 = b.ReactCurrentOwner, s3 = b.ReactDebugCurrentFrame;
|
|
1195
|
-
function
|
|
1210
|
+
function e1(s) {
|
|
1196
1211
|
if (s) {
|
|
1197
1212
|
var l = s._owner, d = v1(s.type, s._source, l ? l.type : null);
|
|
1198
1213
|
s3.setExtraStackFrame(d);
|
|
@@ -1242,7 +1257,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1242
1257
|
return;
|
|
1243
1258
|
r3[d] = !0;
|
|
1244
1259
|
var f = "";
|
|
1245
|
-
s && s._owner && s._owner !== R1.current && (f = " It was passed a child from " + z(s._owner.type) + "."),
|
|
1260
|
+
s && s._owner && s._owner !== R1.current && (f = " It was passed a child from " + z(s._owner.type) + "."), e1(s), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, f), e1(null);
|
|
1246
1261
|
}
|
|
1247
1262
|
}
|
|
1248
1263
|
function i3(s, l) {
|
|
@@ -1294,11 +1309,11 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1294
1309
|
for (var l = Object.keys(s.props), d = 0; d < l.length; d++) {
|
|
1295
1310
|
var f = l[d];
|
|
1296
1311
|
if (f !== "children" && f !== "key") {
|
|
1297
|
-
|
|
1312
|
+
e1(s), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), e1(null);
|
|
1298
1313
|
break;
|
|
1299
1314
|
}
|
|
1300
1315
|
}
|
|
1301
|
-
s.ref !== null && (
|
|
1316
|
+
s.ref !== null && (e1(s), j("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
|
|
1302
1317
|
}
|
|
1303
1318
|
}
|
|
1304
1319
|
var a3 = {};
|
|
@@ -1310,8 +1325,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1310
1325
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1311
1326
|
var O = o2();
|
|
1312
1327
|
O ? C += O : C += c3();
|
|
1313
|
-
var
|
|
1314
|
-
s === null ?
|
|
1328
|
+
var L;
|
|
1329
|
+
s === null ? L = "null" : I1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (z(s.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, C);
|
|
1315
1330
|
}
|
|
1316
1331
|
var $ = n2(s, l, d, E, T);
|
|
1317
1332
|
if ($ == null)
|
|
@@ -1321,8 +1336,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1321
1336
|
if (F !== void 0)
|
|
1322
1337
|
if (f)
|
|
1323
1338
|
if (I1(F)) {
|
|
1324
|
-
for (var
|
|
1325
|
-
i3(F[
|
|
1339
|
+
for (var t1 = 0; t1 < F.length; t1++)
|
|
1340
|
+
i3(F[t1], s);
|
|
1326
1341
|
Object.freeze && Object.freeze(F);
|
|
1327
1342
|
} else
|
|
1328
1343
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -1330,17 +1345,17 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1330
1345
|
i3(F, s);
|
|
1331
1346
|
}
|
|
1332
1347
|
if (o1.call(l, "key")) {
|
|
1333
|
-
var
|
|
1348
|
+
var Q = z(s), V = Object.keys(l).filter(function(v2) {
|
|
1334
1349
|
return v2 !== "key";
|
|
1335
1350
|
}), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1336
|
-
if (!a3[
|
|
1351
|
+
if (!a3[Q + D1]) {
|
|
1337
1352
|
var d2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1338
1353
|
j(`A props object containing a "key" prop is being spread into JSX:
|
|
1339
1354
|
let props = %s;
|
|
1340
1355
|
<%s {...props} />
|
|
1341
1356
|
React keys must be passed directly to JSX without using spread:
|
|
1342
1357
|
let props = %s;
|
|
1343
|
-
<%s key={someKey} {...props} />`, D1,
|
|
1358
|
+
<%s key={someKey} {...props} />`, D1, Q, d2, Q), a3[Q + D1] = !0;
|
|
1344
1359
|
}
|
|
1345
1360
|
}
|
|
1346
1361
|
return s === c ? r2($) : c2($), $;
|
|
@@ -1698,7 +1713,7 @@ function nt(e) {
|
|
|
1698
1713
|
} };
|
|
1699
1714
|
}
|
|
1700
1715
|
function ot(e) {
|
|
1701
|
-
const t = `/device/${e}`, o = g(t, "num0"), c = g(t, "num1"), r = g(t, "num2"), i = g(t, "num3"), v = g(t, "num4"), u = g(t, "num5"), h = g(t, "num6"), m = g(t, "num7"), p = g(t, "num8"), _ = g(t, "num9"),
|
|
1716
|
+
const t = `/device/${e}`, o = g(t, "num0"), c = g(t, "num1"), r = g(t, "num2"), i = g(t, "num3"), v = g(t, "num4"), u = g(t, "num5"), h = g(t, "num6"), m = g(t, "num7"), p = g(t, "num8"), _ = g(t, "num9"), H = g(t, "numDash"), a = g(t, "numEnter");
|
|
1702
1717
|
return {
|
|
1703
1718
|
digit0: o,
|
|
1704
1719
|
digit1: c,
|
|
@@ -1710,7 +1725,7 @@ function ot(e) {
|
|
|
1710
1725
|
digit7: m,
|
|
1711
1726
|
digit8: p,
|
|
1712
1727
|
digit9: _,
|
|
1713
|
-
keypadAccessoryButton1:
|
|
1728
|
+
keypadAccessoryButton1: H,
|
|
1714
1729
|
keypadAccessoryButton2: a
|
|
1715
1730
|
};
|
|
1716
1731
|
}
|
|
@@ -1986,7 +2001,7 @@ const Rt = () => {
|
|
|
1986
2001
|
onPointerDown: m,
|
|
1987
2002
|
onPointerUp: p,
|
|
1988
2003
|
onPointerLeave: _,
|
|
1989
|
-
...
|
|
2004
|
+
...H
|
|
1990
2005
|
}) => {
|
|
1991
2006
|
const [a, x] = G(!1), S = !v && u ? h : "", Z = !v && (a || u);
|
|
1992
2007
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -1994,7 +2009,7 @@ const Rt = () => {
|
|
|
1994
2009
|
{
|
|
1995
2010
|
type: "button",
|
|
1996
2011
|
className: `${P1.iconbtn} ${o ? P1.iconbtnvert : ""} ${c} ${S}`,
|
|
1997
|
-
...
|
|
2012
|
+
...H,
|
|
1998
2013
|
disabled: v,
|
|
1999
2014
|
onPointerDown: (b) => {
|
|
2000
2015
|
x(!0), m == null || m(b);
|
|
@@ -3780,7 +3795,7 @@ export {
|
|
|
3780
3795
|
E8 as iconsDictionary,
|
|
3781
3796
|
Bt as roomOffSourceKey,
|
|
3782
3797
|
f1 as roomsActions,
|
|
3783
|
-
|
|
3798
|
+
U as runtimeConfigActions,
|
|
3784
3799
|
j3 as selectAllDevices,
|
|
3785
3800
|
I2 as selectApiPath,
|
|
3786
3801
|
y2 as selectAppConfig,
|