@pepperdash/mobile-control-react-app-core 1.20.9 → 1.20.11
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 +251 -225
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/index.d.ts +10 -10
- package/dist/shared/hooks/index.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useCameraBase.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIBasicVolumeWithFeedback.d.ts +2 -2
- package/dist/shared/hooks/interfaces/useIBasicVolumeWithFeedback.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIChannel.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIDPad.d.ts +1 -1
- package/dist/shared/hooks/interfaces/useIDvr.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useINumeric.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useISetTopBoxcontrols.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useITransport.d.ts.map +1 -1
- package/dist/shared/hooks/{useHeldButtonAction.d.ts → useButtonHeldHeartbeat.d.ts} +1 -1
- package/dist/shared/hooks/useButtonHeldHeartbeat.d.ts.map +1 -0
- package/dist/utils/WebsocketProvider.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/shared/hooks/useHeldButtonAction.d.ts.map +0 -1
|
@@ -131,7 +131,7 @@ const L = (e) => e.rooms, j2 = (e) => w(
|
|
|
131
131
|
var o, c;
|
|
132
132
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
|
|
133
133
|
}
|
|
134
|
-
),
|
|
134
|
+
), W2 = w(
|
|
135
135
|
[
|
|
136
136
|
(e, t) => t,
|
|
137
137
|
() => Z3,
|
|
@@ -146,12 +146,12 @@ const L = (e) => e.rooms, j2 = (e) => w(
|
|
|
146
146
|
return Object.values(t).filter((i) => Object.values(c).includes(i.key));
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
|
-
function
|
|
149
|
+
function W6(e) {
|
|
150
150
|
return p(
|
|
151
151
|
j2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function F6() {
|
|
155
155
|
return p(C2);
|
|
156
156
|
}
|
|
157
157
|
function C1(e) {
|
|
@@ -159,9 +159,9 @@ function C1(e) {
|
|
|
159
159
|
}
|
|
160
160
|
const H6 = C1, K6 = (e) => p(
|
|
161
161
|
b2(e)
|
|
162
|
-
),
|
|
162
|
+
), F2 = (e, t) => p(
|
|
163
163
|
I2(e, t)
|
|
164
|
-
), H2 = (e) => p(R2(e)) || void 0, G6 = (e) => p(y2(e)), q6 = (e) => p(E2(e)), Y6 = (e) => p(T2(e)), z6 = (e) => p(_2(e)), J6 = (e) => p(P2(e)), X6 = (e) => p(L2(e)), Q6 = (e) => p(D2(e)), N6 = (e) => p($2(e)), ee = (e) => p(A2(e)), te = (e) => p(B2(e)), se = (e) => p(O2(e)), oe = (e) => p(V2(e)), ne = (e) => p(k2(e)), ce = (e) => p((t) =>
|
|
164
|
+
), H2 = (e) => p(R2(e)) || void 0, G6 = (e) => p(y2(e)), q6 = (e) => p(E2(e)), Y6 = (e) => p(T2(e)), z6 = (e) => p(_2(e)), J6 = (e) => p(P2(e)), X6 = (e) => p(L2(e)), Q6 = (e) => p(D2(e)), N6 = (e) => p($2(e)), ee = (e) => p(A2(e)), te = (e) => p(B2(e)), se = (e) => p(O2(e)), oe = (e) => p(V2(e)), ne = (e) => p(k2(e)), ce = (e) => p((t) => W2(t, e)), re = (e) => p(U2(e)), J = (e) => e.runtimeConfig, K2 = w(
|
|
165
165
|
J,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
167
|
), G2 = w(
|
|
@@ -257,7 +257,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
257
257
|
e.theme = t.payload;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), q = j3.actions, g8 = j3.reducer, f8 = {
|
|
261
261
|
config: {
|
|
262
262
|
enableDev: !1,
|
|
263
263
|
apiPath: "",
|
|
@@ -289,7 +289,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
289
289
|
return d3;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}),
|
|
292
|
+
}), N = {
|
|
293
293
|
setDeviceState: B1.actions.setDeviceState,
|
|
294
294
|
clearDevices: B1.actions.clearDevices
|
|
295
295
|
}, x8 = B1.reducer, h3 = {}, O1 = g1({
|
|
@@ -306,7 +306,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
306
306
|
return h3;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
309
|
+
}), e1 = {
|
|
310
310
|
setRoomState: O1.actions.setRoomState,
|
|
311
311
|
clearRooms: O1.actions.clearRooms
|
|
312
312
|
}, M8 = O1.reducer, m8 = {
|
|
@@ -374,7 +374,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
374
374
|
rooms: M8,
|
|
375
375
|
devices: x8,
|
|
376
376
|
ui: g8
|
|
377
|
-
}),
|
|
377
|
+
}), m = a2({
|
|
378
378
|
reducer: j8
|
|
379
379
|
}), V1 = o2.create();
|
|
380
380
|
function C8() {
|
|
@@ -412,11 +412,11 @@ function S8() {
|
|
|
412
412
|
v3 = 1;
|
|
413
413
|
var e = w3, 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 };
|
|
414
414
|
function d(a, f, x) {
|
|
415
|
-
var h, R = {},
|
|
416
|
-
x !== void 0 && (
|
|
415
|
+
var h, R = {}, D = null, F = null;
|
|
416
|
+
x !== void 0 && (D = "" + x), f.key !== void 0 && (D = "" + f.key), f.ref !== void 0 && (F = f.ref);
|
|
417
417
|
for (h in f) c.call(f, h) && !i.hasOwnProperty(h) && (R[h] = f[h]);
|
|
418
418
|
if (a && a.defaultProps) for (h in f = a.defaultProps, f) R[h] === void 0 && (R[h] = f[h]);
|
|
419
|
-
return { $$typeof: t, type: a, key:
|
|
419
|
+
return { $$typeof: t, type: a, key: D, ref: F, props: R, _owner: r.current };
|
|
420
420
|
}
|
|
421
421
|
return u1.Fragment = o, u1.jsx = d, u1.jsxs = d, u1;
|
|
422
422
|
}
|
|
@@ -433,15 +433,15 @@ var d1 = {};
|
|
|
433
433
|
var g3;
|
|
434
434
|
function b8() {
|
|
435
435
|
return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
436
|
-
var e = w3, 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"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"),
|
|
436
|
+
var e = w3, 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"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), k = Symbol.iterator, X = "@@iterator";
|
|
437
437
|
function r1(n) {
|
|
438
438
|
if (n === null || typeof n != "object")
|
|
439
439
|
return null;
|
|
440
|
-
var l = k && n[k] || n[
|
|
440
|
+
var l = k && n[k] || n[X];
|
|
441
441
|
return typeof l == "function" ? l : null;
|
|
442
442
|
}
|
|
443
|
-
var
|
|
444
|
-
function
|
|
443
|
+
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
444
|
+
function A(n) {
|
|
445
445
|
{
|
|
446
446
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
447
447
|
u[v - 1] = arguments[v];
|
|
@@ -450,22 +450,22 @@ function b8() {
|
|
|
450
450
|
}
|
|
451
451
|
function S1(n, l, u) {
|
|
452
452
|
{
|
|
453
|
-
var v =
|
|
453
|
+
var v = $.ReactDebugCurrentFrame, S = v.getStackAddendum();
|
|
454
454
|
S !== "" && (l += "%s", u = u.concat([S]));
|
|
455
|
-
var I = u.map(function(
|
|
456
|
-
return String(
|
|
455
|
+
var I = u.map(function(Z) {
|
|
456
|
+
return String(Z);
|
|
457
457
|
});
|
|
458
458
|
I.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, I);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var b1 = !1, y = !1, C = !1, f1 = !1, I1 = !1,
|
|
462
|
-
|
|
463
|
-
function
|
|
464
|
-
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || I1 || n === r || n === x || n === h || f1 || n === F || b1 || y || C || typeof n == "object" && n !== null && (n.$$typeof ===
|
|
461
|
+
var b1 = !1, y = !1, C = !1, f1 = !1, I1 = !1, Y;
|
|
462
|
+
Y = Symbol.for("react.module.reference");
|
|
463
|
+
function B(n) {
|
|
464
|
+
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || I1 || n === r || n === x || n === h || f1 || n === F || b1 || y || C || typeof n == "object" && n !== null && (n.$$typeof === D || n.$$typeof === R || n.$$typeof === d || n.$$typeof === a || n.$$typeof === f || // This needs to include all possible module reference object
|
|
465
465
|
// types supported by any Flight configuration anywhere since
|
|
466
466
|
// we don't know which Flight build this will end up being used
|
|
467
467
|
// with.
|
|
468
|
-
n.$$typeof ===
|
|
468
|
+
n.$$typeof === Y || n.getModuleId !== void 0));
|
|
469
469
|
}
|
|
470
470
|
function E(n, l, u) {
|
|
471
471
|
var v = n.displayName;
|
|
@@ -474,13 +474,13 @@ function b8() {
|
|
|
474
474
|
var S = l.displayName || l.name || "";
|
|
475
475
|
return S !== "" ? u + "(" + S + ")" : u;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function t1(n) {
|
|
478
478
|
return n.displayName || "Context";
|
|
479
479
|
}
|
|
480
480
|
function K(n) {
|
|
481
481
|
if (n == null)
|
|
482
482
|
return null;
|
|
483
|
-
if (typeof n.tag == "number" &&
|
|
483
|
+
if (typeof n.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
484
484
|
return n.displayName || n.name || null;
|
|
485
485
|
if (typeof n == "string")
|
|
486
486
|
return n;
|
|
@@ -502,19 +502,19 @@ function b8() {
|
|
|
502
502
|
switch (n.$$typeof) {
|
|
503
503
|
case a:
|
|
504
504
|
var l = n;
|
|
505
|
-
return
|
|
505
|
+
return t1(l) + ".Consumer";
|
|
506
506
|
case d:
|
|
507
507
|
var u = n;
|
|
508
|
-
return
|
|
508
|
+
return t1(u._context) + ".Provider";
|
|
509
509
|
case f:
|
|
510
510
|
return E(n, n.render, "ForwardRef");
|
|
511
511
|
case R:
|
|
512
512
|
var v = n.displayName || null;
|
|
513
513
|
return v !== null ? v : K(n.type) || "Memo";
|
|
514
|
-
case
|
|
515
|
-
var S = n, I = S._payload,
|
|
514
|
+
case D: {
|
|
515
|
+
var S = n, I = S._payload, Z = S._init;
|
|
516
516
|
try {
|
|
517
|
-
return K(
|
|
517
|
+
return K(Z(I));
|
|
518
518
|
} catch {
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
@@ -522,14 +522,14 @@ function b8() {
|
|
|
522
522
|
}
|
|
523
523
|
return null;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
525
|
+
var z = Object.assign, l1 = 0, W1, F1, H1, K1, G1, q1, Y1;
|
|
526
526
|
function z1() {
|
|
527
527
|
}
|
|
528
528
|
z1.__reactDisabledLog = !0;
|
|
529
529
|
function y3() {
|
|
530
530
|
{
|
|
531
531
|
if (l1 === 0) {
|
|
532
|
-
|
|
532
|
+
W1 = console.log, F1 = console.info, H1 = console.warn, K1 = console.error, G1 = console.group, q1 = console.groupCollapsed, Y1 = console.groupEnd;
|
|
533
533
|
var n = {
|
|
534
534
|
configurable: !0,
|
|
535
535
|
enumerable: !0,
|
|
@@ -558,33 +558,33 @@ function b8() {
|
|
|
558
558
|
writable: !0
|
|
559
559
|
};
|
|
560
560
|
Object.defineProperties(console, {
|
|
561
|
-
log:
|
|
562
|
-
value: F1
|
|
563
|
-
}),
|
|
564
|
-
info: Y({}, n, {
|
|
561
|
+
log: z({}, n, {
|
|
565
562
|
value: W1
|
|
566
563
|
}),
|
|
567
|
-
|
|
564
|
+
info: z({}, n, {
|
|
565
|
+
value: F1
|
|
566
|
+
}),
|
|
567
|
+
warn: z({}, n, {
|
|
568
568
|
value: H1
|
|
569
569
|
}),
|
|
570
|
-
error:
|
|
570
|
+
error: z({}, n, {
|
|
571
571
|
value: K1
|
|
572
572
|
}),
|
|
573
|
-
group:
|
|
573
|
+
group: z({}, n, {
|
|
574
574
|
value: G1
|
|
575
575
|
}),
|
|
576
|
-
groupCollapsed:
|
|
576
|
+
groupCollapsed: z({}, n, {
|
|
577
577
|
value: q1
|
|
578
578
|
}),
|
|
579
|
-
groupEnd:
|
|
579
|
+
groupEnd: z({}, n, {
|
|
580
580
|
value: Y1
|
|
581
581
|
})
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
l1 < 0 &&
|
|
584
|
+
l1 < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
var R1 =
|
|
587
|
+
var R1 = $.ReactCurrentDispatcher, y1;
|
|
588
588
|
function p1(n, l, u) {
|
|
589
589
|
{
|
|
590
590
|
if (y1 === void 0)
|
|
@@ -619,27 +619,27 @@ function b8() {
|
|
|
619
619
|
I = R1.current, R1.current = null, y3();
|
|
620
620
|
try {
|
|
621
621
|
if (l) {
|
|
622
|
-
var
|
|
622
|
+
var Z = function() {
|
|
623
623
|
throw Error();
|
|
624
624
|
};
|
|
625
|
-
if (Object.defineProperty(
|
|
625
|
+
if (Object.defineProperty(Z.prototype, "props", {
|
|
626
626
|
set: function() {
|
|
627
627
|
throw Error();
|
|
628
628
|
}
|
|
629
629
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
630
630
|
try {
|
|
631
|
-
Reflect.construct(
|
|
631
|
+
Reflect.construct(Z, []);
|
|
632
632
|
} catch (V) {
|
|
633
633
|
v = V;
|
|
634
634
|
}
|
|
635
|
-
Reflect.construct(n, [],
|
|
635
|
+
Reflect.construct(n, [], Z);
|
|
636
636
|
} else {
|
|
637
637
|
try {
|
|
638
|
-
|
|
638
|
+
Z.call();
|
|
639
639
|
} catch (V) {
|
|
640
640
|
v = V;
|
|
641
641
|
}
|
|
642
|
-
n.call(
|
|
642
|
+
n.call(Z.prototype);
|
|
643
643
|
}
|
|
644
644
|
} else {
|
|
645
645
|
try {
|
|
@@ -652,14 +652,14 @@ function b8() {
|
|
|
652
652
|
} catch (V) {
|
|
653
653
|
if (V && v && typeof V.stack == "string") {
|
|
654
654
|
for (var M = V.stack.split(`
|
|
655
|
-
`),
|
|
656
|
-
`), T = M.length - 1, P =
|
|
655
|
+
`), O = v.stack.split(`
|
|
656
|
+
`), T = M.length - 1, P = O.length - 1; T >= 1 && P >= 0 && M[T] !== O[P]; )
|
|
657
657
|
P--;
|
|
658
658
|
for (; T >= 1 && P >= 0; T--, P--)
|
|
659
|
-
if (M[T] !==
|
|
659
|
+
if (M[T] !== O[P]) {
|
|
660
660
|
if (T !== 1 || P !== 1)
|
|
661
661
|
do
|
|
662
|
-
if (T--, P--, P < 0 || M[T] !==
|
|
662
|
+
if (T--, P--, P < 0 || M[T] !== O[P]) {
|
|
663
663
|
var U = `
|
|
664
664
|
` + M[T].replace(" at new ", " at ");
|
|
665
665
|
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" && w1.set(n, U), U;
|
|
@@ -671,8 +671,8 @@ function b8() {
|
|
|
671
671
|
} finally {
|
|
672
672
|
E1 = !1, R1.current = I, E3(), Error.prepareStackTrace = S;
|
|
673
673
|
}
|
|
674
|
-
var
|
|
675
|
-
return typeof n == "function" && w1.set(n,
|
|
674
|
+
var o1 = n ? n.displayName || n.name : "", Q = o1 ? p1(o1) : "";
|
|
675
|
+
return typeof n == "function" && w1.set(n, Q), Q;
|
|
676
676
|
}
|
|
677
677
|
function _3(n, l, u) {
|
|
678
678
|
return J1(n, !1);
|
|
@@ -700,7 +700,7 @@ function b8() {
|
|
|
700
700
|
return _3(n.render);
|
|
701
701
|
case R:
|
|
702
702
|
return x1(n.type, l, u);
|
|
703
|
-
case
|
|
703
|
+
case D: {
|
|
704
704
|
var v = n, S = v._payload, I = v._init;
|
|
705
705
|
try {
|
|
706
706
|
return x1(I(S), l, u);
|
|
@@ -710,7 +710,7 @@ function b8() {
|
|
|
710
710
|
}
|
|
711
711
|
return "";
|
|
712
712
|
}
|
|
713
|
-
var i1 = Object.prototype.hasOwnProperty, X1 = {}, Q1 =
|
|
713
|
+
var i1 = Object.prototype.hasOwnProperty, X1 = {}, Q1 = $.ReactDebugCurrentFrame;
|
|
714
714
|
function M1(n) {
|
|
715
715
|
if (n) {
|
|
716
716
|
var l = n._owner, u = x1(n.type, n._source, l ? l.type : null);
|
|
@@ -721,19 +721,19 @@ function b8() {
|
|
|
721
721
|
function L3(n, l, u, v, S) {
|
|
722
722
|
{
|
|
723
723
|
var I = Function.call.bind(i1);
|
|
724
|
-
for (var
|
|
725
|
-
if (I(n,
|
|
724
|
+
for (var Z in n)
|
|
725
|
+
if (I(n, Z)) {
|
|
726
726
|
var M = void 0;
|
|
727
727
|
try {
|
|
728
|
-
if (typeof n[
|
|
729
|
-
var
|
|
730
|
-
throw
|
|
728
|
+
if (typeof n[Z] != "function") {
|
|
729
|
+
var O = Error((v || "React class") + ": " + u + " type `" + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[Z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
730
|
+
throw O.name = "Invariant Violation", O;
|
|
731
731
|
}
|
|
732
|
-
M = n[
|
|
732
|
+
M = n[Z](l, Z, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
733
733
|
} catch (T) {
|
|
734
734
|
M = T;
|
|
735
735
|
}
|
|
736
|
-
M && !(M instanceof Error) && (M1(S),
|
|
736
|
+
M && !(M instanceof Error) && (M1(S), A("%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).", v || "React class", u, Z, typeof M), M1(null)), M instanceof Error && !(M.message in X1) && (X1[M.message] = !0, M1(S), A("Failed %s type: %s", u, M.message), M1(null));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
@@ -759,9 +759,9 @@ function b8() {
|
|
|
759
759
|
}
|
|
760
760
|
function e3(n) {
|
|
761
761
|
if (A3(n))
|
|
762
|
-
return
|
|
762
|
+
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $3(n)), N1(n);
|
|
763
763
|
}
|
|
764
|
-
var t3 =
|
|
764
|
+
var t3 = $.ReactCurrentOwner, B3 = {
|
|
765
765
|
key: !0,
|
|
766
766
|
ref: !0,
|
|
767
767
|
__self: !0,
|
|
@@ -789,7 +789,7 @@ function b8() {
|
|
|
789
789
|
function U3(n, l) {
|
|
790
790
|
{
|
|
791
791
|
var u = function() {
|
|
792
|
-
s3 || (s3 = !0,
|
|
792
|
+
s3 || (s3 = !0, A("%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)", l));
|
|
793
793
|
};
|
|
794
794
|
u.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
795
795
|
get: u,
|
|
@@ -797,10 +797,10 @@ function b8() {
|
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function W3(n, l) {
|
|
801
801
|
{
|
|
802
802
|
var u = function() {
|
|
803
|
-
o3 || (o3 = !0,
|
|
803
|
+
o3 || (o3 = !0, A("%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)", l));
|
|
804
804
|
};
|
|
805
805
|
u.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
806
806
|
get: u,
|
|
@@ -808,7 +808,7 @@ function b8() {
|
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
var
|
|
811
|
+
var F3 = function(n, l, u, v, S, I, Z) {
|
|
812
812
|
var M = {
|
|
813
813
|
// This tag allows us to uniquely identify this as a React Element
|
|
814
814
|
$$typeof: t,
|
|
@@ -816,7 +816,7 @@ function b8() {
|
|
|
816
816
|
type: n,
|
|
817
817
|
key: l,
|
|
818
818
|
ref: u,
|
|
819
|
-
props:
|
|
819
|
+
props: Z,
|
|
820
820
|
// Record the component responsible for creating this element.
|
|
821
821
|
_owner: I
|
|
822
822
|
};
|
|
@@ -839,24 +839,24 @@ function b8() {
|
|
|
839
839
|
};
|
|
840
840
|
function H3(n, l, u, v, S) {
|
|
841
841
|
{
|
|
842
|
-
var I,
|
|
843
|
-
u !== void 0 && (e3(u), M = "" + u), V3(l) && (e3(l.key), M = "" + l.key), O3(l) && (
|
|
842
|
+
var I, Z = {}, M = null, O = null;
|
|
843
|
+
u !== void 0 && (e3(u), M = "" + u), V3(l) && (e3(l.key), M = "" + l.key), O3(l) && (O = l.ref, k3(l, S));
|
|
844
844
|
for (I in l)
|
|
845
|
-
i1.call(l, I) && !B3.hasOwnProperty(I) && (
|
|
845
|
+
i1.call(l, I) && !B3.hasOwnProperty(I) && (Z[I] = l[I]);
|
|
846
846
|
if (n && n.defaultProps) {
|
|
847
847
|
var T = n.defaultProps;
|
|
848
848
|
for (I in T)
|
|
849
|
-
|
|
849
|
+
Z[I] === void 0 && (Z[I] = T[I]);
|
|
850
850
|
}
|
|
851
|
-
if (M ||
|
|
851
|
+
if (M || O) {
|
|
852
852
|
var P = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
853
|
-
M && U3(
|
|
853
|
+
M && U3(Z, P), O && W3(Z, P);
|
|
854
854
|
}
|
|
855
|
-
return
|
|
855
|
+
return F3(n, M, O, S, v, t3.current, Z);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
var _1 =
|
|
859
|
-
function
|
|
858
|
+
var _1 = $.ReactCurrentOwner, n3 = $.ReactDebugCurrentFrame;
|
|
859
|
+
function s1(n) {
|
|
860
860
|
if (n) {
|
|
861
861
|
var l = n._owner, u = x1(n.type, n._source, l ? l.type : null);
|
|
862
862
|
n3.setExtraStackFrame(u);
|
|
@@ -906,7 +906,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
906
906
|
return;
|
|
907
907
|
r3[u] = !0;
|
|
908
908
|
var v = "";
|
|
909
|
-
n && n._owner && n._owner !== _1.current && (v = " It was passed a child from " + K(n._owner.type) + "."),
|
|
909
|
+
n && n._owner && n._owner !== _1.current && (v = " It was passed a child from " + K(n._owner.type) + "."), s1(n), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), s1(null);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
function i3(n, l) {
|
|
@@ -923,8 +923,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
923
923
|
else if (n) {
|
|
924
924
|
var S = r1(n);
|
|
925
925
|
if (typeof S == "function" && S !== n.entries)
|
|
926
|
-
for (var I = S.call(n),
|
|
927
|
-
L1(
|
|
926
|
+
for (var I = S.call(n), Z; !(Z = I.next()).done; )
|
|
927
|
+
L1(Z.value) && l3(Z.value, l);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
@@ -948,9 +948,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
948
948
|
} else if (l.PropTypes !== void 0 && !P1) {
|
|
949
949
|
P1 = !0;
|
|
950
950
|
var S = K(l);
|
|
951
|
-
|
|
951
|
+
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
952
952
|
}
|
|
953
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
953
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
function Y3(n) {
|
|
@@ -958,53 +958,53 @@ Check the top-level render call using <` + u + ">.");
|
|
|
958
958
|
for (var l = Object.keys(n.props), u = 0; u < l.length; u++) {
|
|
959
959
|
var v = l[u];
|
|
960
960
|
if (v !== "children" && v !== "key") {
|
|
961
|
-
|
|
961
|
+
s1(n), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), s1(null);
|
|
962
962
|
break;
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
|
-
n.ref !== null && (
|
|
965
|
+
n.ref !== null && (s1(n), A("Invalid attribute `ref` supplied to `React.Fragment`."), s1(null));
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
var a3 = {};
|
|
969
969
|
function u3(n, l, u, v, S, I) {
|
|
970
970
|
{
|
|
971
|
-
var
|
|
972
|
-
if (!
|
|
971
|
+
var Z = B(n);
|
|
972
|
+
if (!Z) {
|
|
973
973
|
var M = "";
|
|
974
974
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
975
|
-
var
|
|
976
|
-
|
|
975
|
+
var O = K3();
|
|
976
|
+
O ? M += O : M += c3();
|
|
977
977
|
var T;
|
|
978
|
-
n === null ? T = "null" : T1(n) ? T = "array" : n !== void 0 && n.$$typeof === t ? (T = "<" + (K(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof n,
|
|
978
|
+
n === null ? T = "null" : T1(n) ? T = "array" : n !== void 0 && n.$$typeof === t ? (T = "<" + (K(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof n, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, M);
|
|
979
979
|
}
|
|
980
980
|
var P = H3(n, l, u, S, I);
|
|
981
981
|
if (P == null)
|
|
982
982
|
return P;
|
|
983
|
-
if (
|
|
983
|
+
if (Z) {
|
|
984
984
|
var U = l.children;
|
|
985
985
|
if (U !== void 0)
|
|
986
986
|
if (v)
|
|
987
987
|
if (T1(U)) {
|
|
988
|
-
for (var
|
|
989
|
-
i3(U[
|
|
988
|
+
for (var o1 = 0; o1 < U.length; o1++)
|
|
989
|
+
i3(U[o1], n);
|
|
990
990
|
Object.freeze && Object.freeze(U);
|
|
991
991
|
} else
|
|
992
|
-
|
|
992
|
+
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
993
993
|
else
|
|
994
994
|
i3(U, n);
|
|
995
995
|
}
|
|
996
996
|
if (i1.call(l, "key")) {
|
|
997
|
-
var
|
|
997
|
+
var Q = K(n), V = Object.keys(l).filter(function(e2) {
|
|
998
998
|
return e2 !== "key";
|
|
999
999
|
}), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1000
|
-
if (!a3[
|
|
1000
|
+
if (!a3[Q + D1]) {
|
|
1001
1001
|
var N3 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1002
|
-
|
|
1002
|
+
A(`A props object containing a "key" prop is being spread into JSX:
|
|
1003
1003
|
let props = %s;
|
|
1004
1004
|
<%s {...props} />
|
|
1005
1005
|
React keys must be passed directly to JSX without using spread:
|
|
1006
1006
|
let props = %s;
|
|
1007
|
-
<%s key={someKey} {...props} />`, D1,
|
|
1007
|
+
<%s key={someKey} {...props} />`, D1, Q, N3, Q), a3[Q + D1] = !0;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
return n === c ? Y3(P) : q3(P), P;
|
|
@@ -1057,26 +1057,26 @@ function P8(e, t) {
|
|
|
1057
1057
|
sessionStorage.setItem(e, t);
|
|
1058
1058
|
}
|
|
1059
1059
|
const L8 = ({ children: e }) => {
|
|
1060
|
-
const [t, o] = H(), c = e8(), r = t8(), i = s8(), d = C8(), a = m2(), f = o8(), x = n8(), h = c8(), R = v1(null), [
|
|
1060
|
+
const [t, o] = H(), c = e8(), r = t8(), i = s8(), d = C8(), a = m2(), f = o8(), x = n8(), h = c8(), R = v1(null), [D, F] = H(), k = v1({}), X = a1(
|
|
1061
1061
|
async (y) => {
|
|
1062
1062
|
try {
|
|
1063
1063
|
const C = await V1.get(`${y}/ui/joinroom?token=${t}`);
|
|
1064
|
-
return C.status === 200 && C.data ? (
|
|
1064
|
+
return C.status === 200 && C.data ? (m.dispatch(W.setRoomData(C.data)), !0) : !1;
|
|
1065
1065
|
} catch (C) {
|
|
1066
|
-
return console.log(C), h ? !0 : C instanceof n2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"),
|
|
1066
|
+
return console.log(C), h ? !0 : C instanceof n2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), m.dispatch(q.setErrorMessage(`Token ${t} is invalid. Unable to join room`)), !1) : (console.error("Error getting room data", C), C instanceof Error ? m.dispatch(q.setErrorMessage(C.message)) : m.dispatch(q.setErrorMessage("Error getting room data")), !1);
|
|
1067
1067
|
}
|
|
1068
1068
|
},
|
|
1069
1069
|
[t, h]
|
|
1070
1070
|
), r1 = a1(() => {
|
|
1071
1071
|
const y = `${a.gatewayAppPath}?uuid=${f}&roomKey=${r}`;
|
|
1072
1072
|
window.location.href = x ? `${y}&Code=${x}` : y;
|
|
1073
|
-
}, [a.gatewayAppPath, r, f, x]),
|
|
1073
|
+
}, [a.gatewayAppPath, r, f, x]), $ = a1(
|
|
1074
1074
|
(y, C) => {
|
|
1075
1075
|
R.current && c && R.current.send(JSON.stringify({ type: y, clientId: i, content: C }));
|
|
1076
1076
|
},
|
|
1077
1077
|
[c, i]
|
|
1078
|
-
),
|
|
1079
|
-
|
|
1078
|
+
), A = (y, C) => {
|
|
1079
|
+
$(y, { value: C });
|
|
1080
1080
|
}, S1 = a1(
|
|
1081
1081
|
(y, C, f1) => {
|
|
1082
1082
|
k.current[y] || (k.current[y] = {}), k.current[y][C] = f1, console.log("event handler added", y, C);
|
|
@@ -1088,101 +1088,108 @@ const L8 = ({ children: e }) => {
|
|
|
1088
1088
|
return n1(() => {
|
|
1089
1089
|
let C = new URLSearchParams(window.location.search).get("token");
|
|
1090
1090
|
C ? (console.log("saving token: ", C), P8(p3.uuid, C)) : (C = _8(p3.uuid), console.log("loading token: ", C)), o(C), d();
|
|
1091
|
-
}, []), n1(() => {
|
|
1091
|
+
}, []), console.log("connection dependencies", a.apiPath, X, t, D, h), n1(() => {
|
|
1092
1092
|
async function y() {
|
|
1093
|
-
if (console.log("Attempting to join websocket..."), !
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1093
|
+
if (console.log("Attempting to join websocket..."), !a.apiPath || D || !t || !await X(a.apiPath)) return;
|
|
1094
|
+
if (R.current) {
|
|
1095
|
+
console.log("websocket exists");
|
|
1096
|
+
return;
|
|
1097
|
+
}
|
|
1098
|
+
console.log("connecting to websocket");
|
|
1099
|
+
const I1 = `${a.apiPath.replace("http", "ws")}/ui/join/${t}`, Y = new WebSocket(I1);
|
|
1100
|
+
R.current = Y, Y.onopen = (B) => {
|
|
1101
|
+
console.log("connected", B.type, B.target), m.dispatch(W.setWebsocketIsConnected(!0));
|
|
1102
|
+
}, Y.onerror = (B) => {
|
|
1103
|
+
console.error("Websocket error", B);
|
|
1104
|
+
}, Y.onclose = (B) => {
|
|
1105
|
+
if (console.log("disconnected: ", B.reason, B.code), B.code === 4100) {
|
|
1106
|
+
console.log("WebSocket closed by client (useEffect cleanup)."), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
if (F(!0), B.code === 4e3) {
|
|
1110
|
+
console.log("user code changed"), m.dispatch(W.setUserCode({ userCode: "", qrUrl: "" })), m.dispatch(q.setErrorMessage("User code changed. Click reconnect to enter the new code")), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
if (B.code === 4001 && !h) {
|
|
1114
|
+
console.log("processor disconnected"), m.dispatch(q.setErrorMessage("Processor has disconnected. Click Reconnect")), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
if (B.code === 4002) {
|
|
1118
|
+
console.log("room combination changed"), m.dispatch(q.setErrorMessage("Room combination changed. Click Reconnect to re-join the room")), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
if (R.current)
|
|
1122
|
+
console.log("WebSocket closed by server.");
|
|
1123
|
+
else {
|
|
1124
|
+
console.log("WebSocket closed by client.");
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
console.log("websocket waitingToReconnect", D), !D && (console.log("websocket clearing state on disconnect"), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms()), setTimeout(() => F(void 0), 5e3));
|
|
1128
|
+
}, Y.onmessage = (B) => {
|
|
1129
|
+
try {
|
|
1130
|
+
const E = JSON.parse(B.data);
|
|
1131
|
+
if (console.log(E), E.type === "close") {
|
|
1132
|
+
Y.close(4001, E.content);
|
|
1117
1133
|
return;
|
|
1118
1134
|
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1135
|
+
if (E.type.startsWith("/system/"))
|
|
1136
|
+
switch (E.type) {
|
|
1137
|
+
case "/system/touchpanelKey":
|
|
1138
|
+
m.dispatch(
|
|
1139
|
+
W.setTouchpanelKey(
|
|
1140
|
+
E.content
|
|
1141
|
+
)
|
|
1142
|
+
);
|
|
1143
|
+
break;
|
|
1144
|
+
case "/system/roomKey": {
|
|
1145
|
+
m.dispatch(e1.clearRooms()), m.dispatch(N.clearDevices()), m.dispatch(
|
|
1146
|
+
W.setCurrentRoomKey(
|
|
1147
|
+
E.content
|
|
1148
|
+
)
|
|
1149
|
+
);
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
case "/system/userCodeChanged":
|
|
1153
|
+
m.dispatch(
|
|
1154
|
+
W.setUserCode(
|
|
1155
|
+
E.content
|
|
1156
|
+
)
|
|
1157
|
+
);
|
|
1158
|
+
break;
|
|
1159
|
+
case "/system/roomCombinationChanged":
|
|
1160
|
+
window.location.reload();
|
|
1161
|
+
break;
|
|
1162
|
+
default:
|
|
1163
|
+
console.log("unhandled system message", E);
|
|
1164
|
+
break;
|
|
1126
1165
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
break;
|
|
1136
|
-
case "/system/roomKey": {
|
|
1137
|
-
Z.dispatch(o1.clearRooms()), Z.dispatch(s1.clearDevices()), Z.dispatch(
|
|
1138
|
-
W.setCurrentRoomKey(
|
|
1139
|
-
E.content
|
|
1140
|
-
)
|
|
1141
|
-
);
|
|
1142
|
-
break;
|
|
1143
|
-
}
|
|
1144
|
-
case "/system/userCodeChanged":
|
|
1145
|
-
Z.dispatch(
|
|
1146
|
-
W.setUserCode(
|
|
1147
|
-
E.content
|
|
1148
|
-
)
|
|
1149
|
-
);
|
|
1150
|
-
break;
|
|
1151
|
-
case "/system/roomCombinationChanged":
|
|
1152
|
-
window.location.reload();
|
|
1153
|
-
break;
|
|
1154
|
-
default:
|
|
1155
|
-
console.log("unhandled system message", E);
|
|
1156
|
-
break;
|
|
1166
|
+
else if (E.type.startsWith("/event/")) {
|
|
1167
|
+
console.log("event message received", E);
|
|
1168
|
+
const t1 = k.current[E.type];
|
|
1169
|
+
t1 || console.log("no handlers found for event type", E.type), t1 && Object.values(t1).forEach((K) => {
|
|
1170
|
+
try {
|
|
1171
|
+
K(E);
|
|
1172
|
+
} catch (z) {
|
|
1173
|
+
console.error(z);
|
|
1157
1174
|
}
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
} catch (Y) {
|
|
1165
|
-
console.error(Y);
|
|
1166
|
-
}
|
|
1167
|
-
});
|
|
1168
|
-
} else E.type.startsWith("/room/") ? Z.dispatch(o1.setRoomState(E)) : E.type.startsWith("/device/") && Z.dispatch(s1.setDeviceState(E));
|
|
1169
|
-
} catch (E) {
|
|
1170
|
-
console.error("websocket message handling error", E);
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
}
|
|
1175
|
+
});
|
|
1176
|
+
} else E.type.startsWith("/room/") ? m.dispatch(e1.setRoomState(E)) : E.type.startsWith("/device/") && m.dispatch(N.setDeviceState(E));
|
|
1177
|
+
} catch (E) {
|
|
1178
|
+
console.error("websocket message handling error", E);
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1174
1181
|
}
|
|
1175
1182
|
return y(), console.log("App mode: production"), console.log("Is dev mode: false"), () => {
|
|
1176
|
-
R.current && (console.log("closing websocket dev mode"), R.current.close(4100, "app running in dev mode")
|
|
1183
|
+
R.current && (console.log("closing websocket dev mode"), R.current.close(4100, "app running in dev mode"), R.current = null);
|
|
1177
1184
|
};
|
|
1178
|
-
}, [a.apiPath,
|
|
1179
|
-
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r),
|
|
1180
|
-
}, [r, i, c,
|
|
1185
|
+
}, [a.apiPath, X, t, D, h]), n1(() => {
|
|
1186
|
+
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
|
|
1187
|
+
}, [r, i, c, $]), /* @__PURE__ */ s.jsx(
|
|
1181
1188
|
b3.Provider,
|
|
1182
1189
|
{
|
|
1183
1190
|
value: {
|
|
1184
|
-
sendMessage:
|
|
1185
|
-
sendSimpleMessage:
|
|
1191
|
+
sendMessage: $,
|
|
1192
|
+
sendSimpleMessage: A,
|
|
1186
1193
|
addEventHandler: S1,
|
|
1187
1194
|
removeEventHandler: b1,
|
|
1188
1195
|
reconnect: r1
|
|
@@ -1190,7 +1197,7 @@ const L8 = ({ children: e }) => {
|
|
|
1190
1197
|
children: c ? e : /* @__PURE__ */ s.jsx(E8, {})
|
|
1191
1198
|
}
|
|
1192
1199
|
);
|
|
1193
|
-
}, pe = ({ children: e }) => /* @__PURE__ */ s.jsx(l2, { store:
|
|
1200
|
+
}, pe = ({ children: e }) => /* @__PURE__ */ s.jsx(l2, { store: m, children: /* @__PURE__ */ s.jsx(L8, { children: e }) });
|
|
1194
1201
|
function b() {
|
|
1195
1202
|
return d2(b3);
|
|
1196
1203
|
}
|
|
@@ -1404,8 +1411,21 @@ function De(e) {
|
|
|
1404
1411
|
} };
|
|
1405
1412
|
}
|
|
1406
1413
|
function $e(e) {
|
|
1407
|
-
const t = `/device/${e}`, o = g(t, "num0"), c = g(t, "num1"), r = g(t, "num2"), i = g(t, "num3"), d = g(t, "num4"), a = g(t, "num5"), f = g(t, "num6"), x = g(t, "num7"), h = g(t, "num8"), R = g(t, "num9"),
|
|
1408
|
-
return {
|
|
1414
|
+
const t = `/device/${e}`, o = g(t, "num0"), c = g(t, "num1"), r = g(t, "num2"), i = g(t, "num3"), d = g(t, "num4"), a = g(t, "num5"), f = g(t, "num6"), x = g(t, "num7"), h = g(t, "num8"), R = g(t, "num9"), D = g(t, "numDash"), F = g(t, "numEnter");
|
|
1415
|
+
return {
|
|
1416
|
+
digit0: o,
|
|
1417
|
+
digit1: c,
|
|
1418
|
+
digit2: r,
|
|
1419
|
+
digit3: i,
|
|
1420
|
+
digit4: d,
|
|
1421
|
+
digit5: a,
|
|
1422
|
+
digit6: f,
|
|
1423
|
+
digit7: x,
|
|
1424
|
+
digit8: h,
|
|
1425
|
+
digit9: R,
|
|
1426
|
+
keypadAccessoryButton1: D,
|
|
1427
|
+
keypadAccessoryButton2: F
|
|
1428
|
+
};
|
|
1409
1429
|
}
|
|
1410
1430
|
function Ae(e) {
|
|
1411
1431
|
const { sendMessage: t } = b(), o = _(e);
|
|
@@ -1443,7 +1463,7 @@ function Ue(e) {
|
|
|
1443
1463
|
const t = `/device/${e}`, o = g(t, "chanUp"), c = g(t, "chanDown");
|
|
1444
1464
|
return { dvrList: o, replay: c };
|
|
1445
1465
|
}
|
|
1446
|
-
function
|
|
1466
|
+
function We(e) {
|
|
1447
1467
|
const { sendMessage: t } = b(), o = _(e);
|
|
1448
1468
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1449
1469
|
t(`/device/${e}/shadeUp`, null);
|
|
@@ -1453,7 +1473,7 @@ function Fe(e) {
|
|
|
1453
1473
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1454
1474
|
} } : void 0;
|
|
1455
1475
|
}
|
|
1456
|
-
function
|
|
1476
|
+
function Fe(e) {
|
|
1457
1477
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1458
1478
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (a) => {
|
|
1459
1479
|
t(`/room/${e}/setShutdownPromptSeconds`, a);
|
|
@@ -1496,7 +1516,16 @@ function qe(e) {
|
|
|
1496
1516
|
}
|
|
1497
1517
|
function Ye(e) {
|
|
1498
1518
|
const t = `/device/${e}`, o = g(t, "play"), c = g(t, "pause"), r = g(t, "stop"), i = g(t, "prevTrack"), d = g(t, "nextTrack"), a = g(t, "rewind"), f = g(t, "ffwd"), x = g(t, "record");
|
|
1499
|
-
return {
|
|
1519
|
+
return {
|
|
1520
|
+
play: o,
|
|
1521
|
+
pause: c,
|
|
1522
|
+
stop: r,
|
|
1523
|
+
prevTrack: i,
|
|
1524
|
+
nextTrack: d,
|
|
1525
|
+
rewind: a,
|
|
1526
|
+
fastForward: f,
|
|
1527
|
+
record: x
|
|
1528
|
+
};
|
|
1500
1529
|
}
|
|
1501
1530
|
function ze(e) {
|
|
1502
1531
|
const t = _(e), { sendMessage: o } = b();
|
|
@@ -1565,7 +1594,7 @@ function Qe(e, t) {
|
|
|
1565
1594
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1566
1595
|
}
|
|
1567
1596
|
function Ne(e, t) {
|
|
1568
|
-
const o =
|
|
1597
|
+
const o = F2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1569
1598
|
return I3(c, o);
|
|
1570
1599
|
}
|
|
1571
1600
|
function e5(e) {
|
|
@@ -1636,24 +1665,24 @@ const o5 = () => {
|
|
|
1636
1665
|
onPointerDown: x,
|
|
1637
1666
|
onPointerUp: h,
|
|
1638
1667
|
onPointerLeave: R,
|
|
1639
|
-
...
|
|
1668
|
+
...D
|
|
1640
1669
|
}) => {
|
|
1641
|
-
const [F, k] = H(!1),
|
|
1670
|
+
const [F, k] = H(!1), X = !d && a ? f : "", r1 = !d && (F || a);
|
|
1642
1671
|
return /* @__PURE__ */ s.jsxs(
|
|
1643
1672
|
"button",
|
|
1644
1673
|
{
|
|
1645
1674
|
type: "button",
|
|
1646
|
-
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${
|
|
1647
|
-
...
|
|
1675
|
+
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${X}`,
|
|
1676
|
+
...D,
|
|
1648
1677
|
disabled: d,
|
|
1649
|
-
onPointerDown: (
|
|
1650
|
-
k(!0), x == null || x(
|
|
1678
|
+
onPointerDown: ($) => {
|
|
1679
|
+
k(!0), x == null || x($);
|
|
1651
1680
|
},
|
|
1652
|
-
onPointerUp: (
|
|
1653
|
-
k(!1), h == null || h(
|
|
1681
|
+
onPointerUp: ($) => {
|
|
1682
|
+
k(!1), h == null || h($);
|
|
1654
1683
|
},
|
|
1655
|
-
onPointerLeave: (
|
|
1656
|
-
k(!1), R == null || R(
|
|
1684
|
+
onPointerLeave: ($) => {
|
|
1685
|
+
k(!1), R == null || R($);
|
|
1657
1686
|
},
|
|
1658
1687
|
children: [
|
|
1659
1688
|
e && /* @__PURE__ */ s.jsx(
|
|
@@ -1726,7 +1755,7 @@ const o5 = () => {
|
|
|
1726
1755
|
active: e,
|
|
1727
1756
|
disabled: o
|
|
1728
1757
|
}
|
|
1729
|
-
),
|
|
1758
|
+
), W8 = ({
|
|
1730
1759
|
active: e,
|
|
1731
1760
|
className: t = "",
|
|
1732
1761
|
disabled: o
|
|
@@ -1775,7 +1804,7 @@ const o5 = () => {
|
|
|
1775
1804
|
active: e,
|
|
1776
1805
|
disabled: o
|
|
1777
1806
|
}
|
|
1778
|
-
),
|
|
1807
|
+
), F8 = ({
|
|
1779
1808
|
active: e,
|
|
1780
1809
|
className: t = "",
|
|
1781
1810
|
disabled: o
|
|
@@ -1867,7 +1896,6 @@ const o5 = () => {
|
|
|
1867
1896
|
), K8 = ({
|
|
1868
1897
|
active: e,
|
|
1869
1898
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
1870
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1871
1899
|
className: t = "",
|
|
1872
1900
|
disabled: o
|
|
1873
1901
|
}) => /* @__PURE__ */ s.jsx(
|
|
@@ -2181,7 +2209,6 @@ const o5 = () => {
|
|
|
2181
2209
|
), X8 = ({
|
|
2182
2210
|
active: e,
|
|
2183
2211
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
2184
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2185
2212
|
className: t = "",
|
|
2186
2213
|
disabled: o
|
|
2187
2214
|
}) => /* @__PURE__ */ s.jsx(
|
|
@@ -2713,7 +2740,6 @@ const o5 = () => {
|
|
|
2713
2740
|
), i6 = ({
|
|
2714
2741
|
active: e,
|
|
2715
2742
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
2716
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2717
2743
|
className: t = "",
|
|
2718
2744
|
disabled: o
|
|
2719
2745
|
}) => /* @__PURE__ */ s.jsx(
|
|
@@ -3271,9 +3297,9 @@ const o5 = () => {
|
|
|
3271
3297
|
}
|
|
3272
3298
|
), M6 = {
|
|
3273
3299
|
Alert: U8,
|
|
3274
|
-
Camera:
|
|
3300
|
+
Camera: F8,
|
|
3275
3301
|
DownArrow: G8,
|
|
3276
|
-
Ban:
|
|
3302
|
+
Ban: W8,
|
|
3277
3303
|
Check: H8,
|
|
3278
3304
|
Controller: K8,
|
|
3279
3305
|
Elipses: q8,
|
|
@@ -3363,8 +3389,8 @@ export {
|
|
|
3363
3389
|
o5 as ErrorBox,
|
|
3364
3390
|
k8 as IconButton,
|
|
3365
3391
|
U8 as IconMultiAlert,
|
|
3366
|
-
|
|
3367
|
-
|
|
3392
|
+
W8 as IconMultiBan,
|
|
3393
|
+
F8 as IconMultiCamera,
|
|
3368
3394
|
H8 as IconMultiCheck,
|
|
3369
3395
|
K8 as IconMultiController,
|
|
3370
3396
|
G8 as IconMultiDownArrow,
|
|
@@ -3422,7 +3448,7 @@ export {
|
|
|
3422
3448
|
j2 as selectRoomConfiguration,
|
|
3423
3449
|
_2 as selectRoomDestinationList,
|
|
3424
3450
|
T2 as selectRoomDestinations,
|
|
3425
|
-
|
|
3451
|
+
W2 as selectRoomDisplayStates,
|
|
3426
3452
|
P2 as selectRoomEnvironmentalDevices,
|
|
3427
3453
|
$2 as selectRoomInCall,
|
|
3428
3454
|
B2 as selectRoomIsCoolingDown,
|
|
@@ -3446,8 +3472,8 @@ export {
|
|
|
3446
3472
|
z2 as selectUserCode,
|
|
3447
3473
|
K2 as selectWsIsConnected,
|
|
3448
3474
|
U2 as selectZoomRoomControllerKey,
|
|
3449
|
-
|
|
3450
|
-
|
|
3475
|
+
m as store,
|
|
3476
|
+
q as uiActions,
|
|
3451
3477
|
g8 as uiReducer,
|
|
3452
3478
|
O6 as useApiPath,
|
|
3453
3479
|
m2 as useAppConfig,
|
|
@@ -3462,7 +3488,7 @@ export {
|
|
|
3462
3488
|
d8 as useError,
|
|
3463
3489
|
Xe as useGetAllDeviceStateFromRoomConfiguration,
|
|
3464
3490
|
U6 as useGetAllDevices,
|
|
3465
|
-
|
|
3491
|
+
F6 as useGetAllRooms,
|
|
3466
3492
|
ve as useGetCurrentPopoverIdForGroup,
|
|
3467
3493
|
_ as useGetDevice,
|
|
3468
3494
|
we as useGetIBasicVolumeWithFeedback,
|
|
@@ -3492,8 +3518,8 @@ export {
|
|
|
3492
3518
|
Ve as useIRunDirectRouteAction,
|
|
3493
3519
|
ke as useIRunRouteAction,
|
|
3494
3520
|
Ue as useISetTopBoxControls,
|
|
3495
|
-
|
|
3496
|
-
|
|
3521
|
+
We as useIShadesOpenCloseStop,
|
|
3522
|
+
Fe as useIShutdownPromptTimer,
|
|
3497
3523
|
He as useISwitchedOutput,
|
|
3498
3524
|
Ke as useITechPassword,
|
|
3499
3525
|
Ge as useITemperatureSensor,
|
|
@@ -3509,7 +3535,7 @@ export {
|
|
|
3509
3535
|
oe as useRoomAdvancedSharingActive,
|
|
3510
3536
|
q6 as useRoomAudioControlPointList,
|
|
3511
3537
|
Q6 as useRoomCodecContentDestinationKey,
|
|
3512
|
-
|
|
3538
|
+
W6 as useRoomConfiguration,
|
|
3513
3539
|
z6 as useRoomDestinationList,
|
|
3514
3540
|
Y6 as useRoomDestinations,
|
|
3515
3541
|
J6 as useRoomEnvironmentalDevices,
|
|
@@ -3525,7 +3551,7 @@ export {
|
|
|
3525
3551
|
ne as useRoomShareState,
|
|
3526
3552
|
G6 as useRoomSourceList,
|
|
3527
3553
|
C1 as useRoomState,
|
|
3528
|
-
|
|
3554
|
+
F2 as useRoomVolume,
|
|
3529
3555
|
le as useRuntimeInfo,
|
|
3530
3556
|
e5 as useScroll,
|
|
3531
3557
|
c8 as useServerIsRunningOnProcessorHardware,
|