@pepperdash/mobile-control-react-app-core 1.20.2 → 1.20.4
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 +199 -199
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/index.d.ts +1 -1
- package/dist/shared/hooks/index.d.ts.map +1 -1
- package/dist/shared/hooks/{useGetDeviceStateFromRoomConfiguration.d.ts → useGetAllDeviceStateFromRoomConfiguration.d.ts} +1 -1
- package/dist/shared/hooks/useGetAllDeviceStateFromRoomConfiguration.d.ts.map +1 -0
- package/dist/store/rooms/rooms.slice.d.ts +6 -2
- package/dist/store/rooms/rooms.slice.d.ts.map +1 -1
- package/dist/store/rooms/roomsSelectors.d.ts +1 -1
- package/dist/store/rooms/roomsSelectors.d.ts.map +1 -1
- package/dist/types/state/DestinationListItem.d.ts +3 -1
- package/dist/types/state/DestinationListItem.d.ts.map +1 -1
- package/dist/types/state/index.d.ts +3 -2
- package/dist/types/state/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/shared/hooks/useGetDeviceStateFromRoomConfiguration.d.ts.map +0 -1
|
@@ -36,8 +36,8 @@ const d2 = {
|
|
|
36
36
|
setDeviceState(t, e) {
|
|
37
37
|
const o = e.payload.type, r = o.slice(o.lastIndexOf("/") + 1);
|
|
38
38
|
if (!r) return;
|
|
39
|
-
const c = e.payload.content,
|
|
40
|
-
return t[r] =
|
|
39
|
+
const c = e.payload.content, i = t[r] ?? {}, d = a3.merge(i, c);
|
|
40
|
+
return t[r] = d, t;
|
|
41
41
|
},
|
|
42
42
|
clearDevices() {
|
|
43
43
|
return n3;
|
|
@@ -52,8 +52,8 @@ const d2 = {
|
|
|
52
52
|
if (console.log(o, r), !r) return;
|
|
53
53
|
const c = e.payload.content;
|
|
54
54
|
console.log(c);
|
|
55
|
-
const
|
|
56
|
-
return t[r] =
|
|
55
|
+
const i = t[r] ?? {}, d = a3.merge(i, c);
|
|
56
|
+
return t[r] = d, console.log(t), t;
|
|
57
57
|
},
|
|
58
58
|
clearRooms() {
|
|
59
59
|
return r3;
|
|
@@ -213,8 +213,8 @@ const d2 = {
|
|
|
213
213
|
}
|
|
214
214
|
), t6 = (t) => p(
|
|
215
215
|
(e) => {
|
|
216
|
-
var o, r, c,
|
|
217
|
-
return (r = (o = e.rooms[t]) == null ? void 0 : o.configuration) != null && r.destinationList.programAudio ? (
|
|
216
|
+
var o, r, c, i, d, u, f, w;
|
|
217
|
+
return (r = (o = e.rooms[t]) == null ? void 0 : o.configuration) != null && r.destinationList.programAudio ? (d = (i = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : d.sinkKey : ((w = (f = (u = e.rooms[t]) == null ? void 0 : u.configuration) == null ? void 0 : f.destinationList.defaultDisplay) == null ? void 0 : w.sinkKey) || "";
|
|
218
218
|
}
|
|
219
219
|
), s6 = (t) => p(
|
|
220
220
|
(e) => {
|
|
@@ -262,8 +262,8 @@ const d2 = {
|
|
|
262
262
|
],
|
|
263
263
|
(e, o, r) => {
|
|
264
264
|
if (console.log("roomKey", e), console.log("devices", o), console.log("destinations", r), !r) return;
|
|
265
|
-
const c = Object.entries(r).filter(([
|
|
266
|
-
return Object.values(o).filter((
|
|
265
|
+
const c = Object.entries(r).filter(([d]) => d !== "programAudio" && d !== "codecContent").map(([, d]) => d);
|
|
266
|
+
return Object.values(o).filter((d) => Object.values(c).includes(d.key));
|
|
267
267
|
}
|
|
268
268
|
)(m.getState(), t), u6 = (t) => p(
|
|
269
269
|
(e) => {
|
|
@@ -291,8 +291,8 @@ function T2() {
|
|
|
291
291
|
if (r.status == 200 && r.data) {
|
|
292
292
|
const c = r.data.apiPath;
|
|
293
293
|
t(h2.setAppConfig(r.data));
|
|
294
|
-
const
|
|
295
|
-
|
|
294
|
+
const i = await L1.get(`${c}/version`);
|
|
295
|
+
i.status == 200 && i.data && t(F.setRuntimeConfig(i.data));
|
|
296
296
|
}
|
|
297
297
|
} catch (e) {
|
|
298
298
|
console.error("Error getting config", e);
|
|
@@ -314,15 +314,15 @@ var c3;
|
|
|
314
314
|
function L2() {
|
|
315
315
|
if (c3) return l1;
|
|
316
316
|
c3 = 1;
|
|
317
|
-
var t = u3, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
318
|
-
function
|
|
319
|
-
var
|
|
317
|
+
var t = u3, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
318
|
+
function d(u, f, w) {
|
|
319
|
+
var h, I = {}, $ = null, U = null;
|
|
320
320
|
w !== void 0 && ($ = "" + w), f.key !== void 0 && ($ = "" + f.key), f.ref !== void 0 && (U = f.ref);
|
|
321
|
-
for (
|
|
322
|
-
if (
|
|
323
|
-
return { $$typeof: e, type:
|
|
321
|
+
for (h in f) r.call(f, h) && !i.hasOwnProperty(h) && (I[h] = f[h]);
|
|
322
|
+
if (u && u.defaultProps) for (h in f = u.defaultProps, f) I[h] === void 0 && (I[h] = f[h]);
|
|
323
|
+
return { $$typeof: e, type: u, key: $, ref: U, props: I, _owner: c.current };
|
|
324
324
|
}
|
|
325
|
-
return l1.Fragment = o, l1.jsx =
|
|
325
|
+
return l1.Fragment = o, l1.jsx = d, l1.jsxs = d, l1;
|
|
326
326
|
}
|
|
327
327
|
var i1 = {};
|
|
328
328
|
/**
|
|
@@ -337,7 +337,7 @@ var i1 = {};
|
|
|
337
337
|
var l3;
|
|
338
338
|
function P2() {
|
|
339
339
|
return l3 || (l3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
340
|
-
var t = u3, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"),
|
|
340
|
+
var t = u3, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), U = Symbol.for("react.offscreen"), O = Symbol.iterator, z = "@@iterator";
|
|
341
341
|
function s1(n) {
|
|
342
342
|
if (n === null || typeof n != "object")
|
|
343
343
|
return null;
|
|
@@ -347,16 +347,16 @@ function P2() {
|
|
|
347
347
|
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
348
348
|
function L(n) {
|
|
349
349
|
{
|
|
350
|
-
for (var l = arguments.length,
|
|
351
|
-
|
|
352
|
-
x1("error", n,
|
|
350
|
+
for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
351
|
+
a[v - 1] = arguments[v];
|
|
352
|
+
x1("error", n, a);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function x1(n, l,
|
|
355
|
+
function x1(n, l, a) {
|
|
356
356
|
{
|
|
357
357
|
var v = P.ReactDebugCurrentFrame, C = v.getStackAddendum();
|
|
358
|
-
C !== "" && (l += "%s",
|
|
359
|
-
var b =
|
|
358
|
+
C !== "" && (l += "%s", a = a.concat([C]));
|
|
359
|
+
var b = a.map(function(M) {
|
|
360
360
|
return String(M);
|
|
361
361
|
});
|
|
362
362
|
b.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, b);
|
|
@@ -365,18 +365,18 @@ function P2() {
|
|
|
365
365
|
var M1 = !1, y = !1, j = !1, h1 = !1, m1 = !1, K;
|
|
366
366
|
K = Symbol.for("react.module.reference");
|
|
367
367
|
function A(n) {
|
|
368
|
-
return !!(typeof n == "string" || typeof n == "function" || n === r || n ===
|
|
368
|
+
return !!(typeof n == "string" || typeof n == "function" || n === r || n === i || m1 || n === c || n === w || n === h || h1 || n === U || M1 || y || j || typeof n == "object" && n !== null && (n.$$typeof === $ || n.$$typeof === I || n.$$typeof === d || n.$$typeof === u || n.$$typeof === f || // This needs to include all possible module reference object
|
|
369
369
|
// types supported by any Flight configuration anywhere since
|
|
370
370
|
// we don't know which Flight build this will end up being used
|
|
371
371
|
// with.
|
|
372
372
|
n.$$typeof === K || n.getModuleId !== void 0));
|
|
373
373
|
}
|
|
374
|
-
function R(n, l,
|
|
374
|
+
function R(n, l, a) {
|
|
375
375
|
var v = n.displayName;
|
|
376
376
|
if (v)
|
|
377
377
|
return v;
|
|
378
378
|
var C = l.displayName || l.name || "";
|
|
379
|
-
return C !== "" ?
|
|
379
|
+
return C !== "" ? a + "(" + C + ")" : a;
|
|
380
380
|
}
|
|
381
381
|
function J(n) {
|
|
382
382
|
return n.displayName || "Context";
|
|
@@ -393,23 +393,23 @@ function P2() {
|
|
|
393
393
|
return "Fragment";
|
|
394
394
|
case o:
|
|
395
395
|
return "Portal";
|
|
396
|
-
case
|
|
396
|
+
case i:
|
|
397
397
|
return "Profiler";
|
|
398
398
|
case c:
|
|
399
399
|
return "StrictMode";
|
|
400
400
|
case w:
|
|
401
401
|
return "Suspense";
|
|
402
|
-
case
|
|
402
|
+
case h:
|
|
403
403
|
return "SuspenseList";
|
|
404
404
|
}
|
|
405
405
|
if (typeof n == "object")
|
|
406
406
|
switch (n.$$typeof) {
|
|
407
|
-
case
|
|
407
|
+
case u:
|
|
408
408
|
var l = n;
|
|
409
409
|
return J(l) + ".Consumer";
|
|
410
|
-
case
|
|
411
|
-
var
|
|
412
|
-
return J(
|
|
410
|
+
case d:
|
|
411
|
+
var a = n;
|
|
412
|
+
return J(a._context) + ".Provider";
|
|
413
413
|
case f:
|
|
414
414
|
return R(n, n.render, "ForwardRef");
|
|
415
415
|
case I:
|
|
@@ -489,7 +489,7 @@ function P2() {
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
var Z1 = P.ReactCurrentDispatcher, j1;
|
|
492
|
-
function v1(n, l,
|
|
492
|
+
function v1(n, l, a) {
|
|
493
493
|
{
|
|
494
494
|
if (j1 === void 0)
|
|
495
495
|
try {
|
|
@@ -511,9 +511,9 @@ function P2() {
|
|
|
511
511
|
if (!n || C1)
|
|
512
512
|
return "";
|
|
513
513
|
{
|
|
514
|
-
var
|
|
515
|
-
if (
|
|
516
|
-
return
|
|
514
|
+
var a = g1.get(n);
|
|
515
|
+
if (a !== void 0)
|
|
516
|
+
return a;
|
|
517
517
|
}
|
|
518
518
|
var v;
|
|
519
519
|
C1 = !0;
|
|
@@ -578,14 +578,14 @@ function P2() {
|
|
|
578
578
|
var Q = n ? n.displayName || n.name : "", Y = Q ? v1(Q) : "";
|
|
579
579
|
return typeof n == "function" && g1.set(n, Y), Y;
|
|
580
580
|
}
|
|
581
|
-
function C3(n, l,
|
|
581
|
+
function C3(n, l, a) {
|
|
582
582
|
return H1(n, !1);
|
|
583
583
|
}
|
|
584
584
|
function S3(n) {
|
|
585
585
|
var l = n.prototype;
|
|
586
586
|
return !!(l && l.isReactComponent);
|
|
587
587
|
}
|
|
588
|
-
function f1(n, l,
|
|
588
|
+
function f1(n, l, a) {
|
|
589
589
|
if (n == null)
|
|
590
590
|
return "";
|
|
591
591
|
if (typeof n == "function")
|
|
@@ -595,7 +595,7 @@ function P2() {
|
|
|
595
595
|
switch (n) {
|
|
596
596
|
case w:
|
|
597
597
|
return v1("Suspense");
|
|
598
|
-
case
|
|
598
|
+
case h:
|
|
599
599
|
return v1("SuspenseList");
|
|
600
600
|
}
|
|
601
601
|
if (typeof n == "object")
|
|
@@ -603,11 +603,11 @@ function P2() {
|
|
|
603
603
|
case f:
|
|
604
604
|
return C3(n.render);
|
|
605
605
|
case I:
|
|
606
|
-
return f1(n.type, l,
|
|
606
|
+
return f1(n.type, l, a);
|
|
607
607
|
case $: {
|
|
608
608
|
var v = n, C = v._payload, b = v._init;
|
|
609
609
|
try {
|
|
610
|
-
return f1(b(C), l,
|
|
610
|
+
return f1(b(C), l, a);
|
|
611
611
|
} catch {
|
|
612
612
|
}
|
|
613
613
|
}
|
|
@@ -617,12 +617,12 @@ function P2() {
|
|
|
617
617
|
var n1 = Object.prototype.hasOwnProperty, K1 = {}, G1 = P.ReactDebugCurrentFrame;
|
|
618
618
|
function p1(n) {
|
|
619
619
|
if (n) {
|
|
620
|
-
var l = n._owner,
|
|
621
|
-
G1.setExtraStackFrame(
|
|
620
|
+
var l = n._owner, a = f1(n.type, n._source, l ? l.type : null);
|
|
621
|
+
G1.setExtraStackFrame(a);
|
|
622
622
|
} else
|
|
623
623
|
G1.setExtraStackFrame(null);
|
|
624
624
|
}
|
|
625
|
-
function b3(n, l,
|
|
625
|
+
function b3(n, l, a, v, C) {
|
|
626
626
|
{
|
|
627
627
|
var b = Function.call.bind(n1);
|
|
628
628
|
for (var M in n)
|
|
@@ -630,14 +630,14 @@ function P2() {
|
|
|
630
630
|
var x = void 0;
|
|
631
631
|
try {
|
|
632
632
|
if (typeof n[M] != "function") {
|
|
633
|
-
var D = Error((v || "React class") + ": " +
|
|
633
|
+
var D = Error((v || "React class") + ": " + a + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
634
634
|
throw D.name = "Invariant Violation", D;
|
|
635
635
|
}
|
|
636
|
-
x = n[M](l, M, v,
|
|
636
|
+
x = n[M](l, M, v, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
637
637
|
} catch (E) {
|
|
638
638
|
x = E;
|
|
639
639
|
}
|
|
640
|
-
x && !(x instanceof Error) && (p1(C), L("%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",
|
|
640
|
+
x && !(x instanceof Error) && (p1(C), L("%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", a, M, typeof x), p1(null)), x instanceof Error && !(x.message in K1) && (K1[x.message] = !0, p1(C), L("Failed %s type: %s", a, x.message), p1(null));
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}
|
|
@@ -647,8 +647,8 @@ function P2() {
|
|
|
647
647
|
}
|
|
648
648
|
function y3(n) {
|
|
649
649
|
{
|
|
650
|
-
var l = typeof Symbol == "function" && Symbol.toStringTag,
|
|
651
|
-
return
|
|
650
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, a = l && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
651
|
+
return a;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
function R3(n) {
|
|
@@ -690,40 +690,40 @@ function P2() {
|
|
|
690
690
|
}
|
|
691
691
|
function L3(n, l) {
|
|
692
692
|
if (typeof n.ref == "string" && r1.current && l && r1.current.stateNode !== l) {
|
|
693
|
-
var
|
|
694
|
-
b1[
|
|
693
|
+
var a = V(r1.current.type);
|
|
694
|
+
b1[a] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(r1.current.type), n.ref), b1[a] = !0);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
function P3(n, l) {
|
|
698
698
|
{
|
|
699
|
-
var
|
|
699
|
+
var a = function() {
|
|
700
700
|
z1 || (z1 = !0, L("%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));
|
|
701
701
|
};
|
|
702
|
-
|
|
703
|
-
get:
|
|
702
|
+
a.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
703
|
+
get: a,
|
|
704
704
|
configurable: !0
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
function $3(n, l) {
|
|
709
709
|
{
|
|
710
|
-
var
|
|
710
|
+
var a = function() {
|
|
711
711
|
J1 || (J1 = !0, L("%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));
|
|
712
712
|
};
|
|
713
|
-
|
|
714
|
-
get:
|
|
713
|
+
a.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
714
|
+
get: a,
|
|
715
715
|
configurable: !0
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
var D3 = function(n, l,
|
|
719
|
+
var D3 = function(n, l, a, v, C, b, M) {
|
|
720
720
|
var x = {
|
|
721
721
|
// This tag allows us to uniquely identify this as a React Element
|
|
722
722
|
$$typeof: e,
|
|
723
723
|
// Built-in properties that belong on the element
|
|
724
724
|
type: n,
|
|
725
725
|
key: l,
|
|
726
|
-
ref:
|
|
726
|
+
ref: a,
|
|
727
727
|
props: M,
|
|
728
728
|
// Record the component responsible for creating this element.
|
|
729
729
|
_owner: b
|
|
@@ -745,10 +745,10 @@ function P2() {
|
|
|
745
745
|
value: C
|
|
746
746
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
747
747
|
};
|
|
748
|
-
function A3(n, l,
|
|
748
|
+
function A3(n, l, a, v, C) {
|
|
749
749
|
{
|
|
750
750
|
var b, M = {}, x = null, D = null;
|
|
751
|
-
|
|
751
|
+
a !== void 0 && (Y1(a), x = "" + a), T3(l) && (Y1(l.key), x = "" + l.key), _3(l) && (D = l.ref, L3(l, C));
|
|
752
752
|
for (b in l)
|
|
753
753
|
n1.call(l, b) && !E3.hasOwnProperty(b) && (M[b] = l[b]);
|
|
754
754
|
if (n && n.defaultProps) {
|
|
@@ -766,8 +766,8 @@ function P2() {
|
|
|
766
766
|
var I1 = P.ReactCurrentOwner, X1 = P.ReactDebugCurrentFrame;
|
|
767
767
|
function X(n) {
|
|
768
768
|
if (n) {
|
|
769
|
-
var l = n._owner,
|
|
770
|
-
X1.setExtraStackFrame(
|
|
769
|
+
var l = n._owner, a = f1(n.type, n._source, l ? l.type : null);
|
|
770
|
+
X1.setExtraStackFrame(a);
|
|
771
771
|
} else
|
|
772
772
|
X1.setExtraStackFrame(null);
|
|
773
773
|
}
|
|
@@ -796,10 +796,10 @@ Check the render method of \`` + n + "`.";
|
|
|
796
796
|
{
|
|
797
797
|
var l = Q1();
|
|
798
798
|
if (!l) {
|
|
799
|
-
var
|
|
800
|
-
|
|
799
|
+
var a = typeof n == "string" ? n : n.displayName || n.name;
|
|
800
|
+
a && (l = `
|
|
801
801
|
|
|
802
|
-
Check the top-level render call using <` +
|
|
802
|
+
Check the top-level render call using <` + a + ">.");
|
|
803
803
|
}
|
|
804
804
|
return l;
|
|
805
805
|
}
|
|
@@ -809,12 +809,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
809
809
|
if (!n._store || n._store.validated || n.key != null)
|
|
810
810
|
return;
|
|
811
811
|
n._store.validated = !0;
|
|
812
|
-
var
|
|
813
|
-
if (N1[
|
|
812
|
+
var a = O3(l);
|
|
813
|
+
if (N1[a])
|
|
814
814
|
return;
|
|
815
|
-
N1[
|
|
815
|
+
N1[a] = !0;
|
|
816
816
|
var v = "";
|
|
817
|
-
n && n._owner && n._owner !== I1.current && (v = " It was passed a child from " + V(n._owner.type) + "."), X(n), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
817
|
+
n && n._owner && n._owner !== I1.current && (v = " It was passed a child from " + V(n._owner.type) + "."), X(n), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, v), X(null);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
function t3(n, l) {
|
|
@@ -822,8 +822,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
822
822
|
if (typeof n != "object")
|
|
823
823
|
return;
|
|
824
824
|
if (S1(n))
|
|
825
|
-
for (var
|
|
826
|
-
var v = n[
|
|
825
|
+
for (var a = 0; a < n.length; a++) {
|
|
826
|
+
var v = n[a];
|
|
827
827
|
R1(v) && e3(v, l);
|
|
828
828
|
}
|
|
829
829
|
else if (R1(n))
|
|
@@ -841,18 +841,18 @@ Check the top-level render call using <` + u + ">.");
|
|
|
841
841
|
var l = n.type;
|
|
842
842
|
if (l == null || typeof l == "string")
|
|
843
843
|
return;
|
|
844
|
-
var
|
|
844
|
+
var a;
|
|
845
845
|
if (typeof l == "function")
|
|
846
|
-
|
|
846
|
+
a = l.propTypes;
|
|
847
847
|
else if (typeof l == "object" && (l.$$typeof === f || // Note: Memo only checks outer props here.
|
|
848
848
|
// Inner props are checked in the reconciler.
|
|
849
849
|
l.$$typeof === I))
|
|
850
|
-
|
|
850
|
+
a = l.propTypes;
|
|
851
851
|
else
|
|
852
852
|
return;
|
|
853
|
-
if (
|
|
853
|
+
if (a) {
|
|
854
854
|
var v = V(l);
|
|
855
|
-
b3(
|
|
855
|
+
b3(a, n.props, "prop", v, n);
|
|
856
856
|
} else if (l.PropTypes !== void 0 && !y1) {
|
|
857
857
|
y1 = !0;
|
|
858
858
|
var C = V(l);
|
|
@@ -863,8 +863,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
863
863
|
}
|
|
864
864
|
function k3(n) {
|
|
865
865
|
{
|
|
866
|
-
for (var l = Object.keys(n.props),
|
|
867
|
-
var v = l[
|
|
866
|
+
for (var l = Object.keys(n.props), a = 0; a < l.length; a++) {
|
|
867
|
+
var v = l[a];
|
|
868
868
|
if (v !== "children" && v !== "key") {
|
|
869
869
|
X(n), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), X(null);
|
|
870
870
|
break;
|
|
@@ -874,7 +874,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
var s3 = {};
|
|
877
|
-
function o3(n, l,
|
|
877
|
+
function o3(n, l, a, v, C, b) {
|
|
878
878
|
{
|
|
879
879
|
var M = A(n);
|
|
880
880
|
if (!M) {
|
|
@@ -885,7 +885,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
885
885
|
var E;
|
|
886
886
|
n === null ? E = "null" : S1(n) ? E = "array" : n !== void 0 && n.$$typeof === e ? (E = "<" + (V(n.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : E = typeof n, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, x);
|
|
887
887
|
}
|
|
888
|
-
var T = A3(n, l,
|
|
888
|
+
var T = A3(n, l, a, C, b);
|
|
889
889
|
if (T == null)
|
|
890
890
|
return T;
|
|
891
891
|
if (M) {
|
|
@@ -918,11 +918,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
918
918
|
return n === r ? k3(T) : V3(T), T;
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
function U3(n, l,
|
|
922
|
-
return o3(n, l,
|
|
921
|
+
function U3(n, l, a) {
|
|
922
|
+
return o3(n, l, a, !0);
|
|
923
923
|
}
|
|
924
|
-
function F3(n, l,
|
|
925
|
-
return o3(n, l,
|
|
924
|
+
function F3(n, l, a) {
|
|
925
|
+
return o3(n, l, a, !1);
|
|
926
926
|
}
|
|
927
927
|
var W3 = F3, H3 = U3;
|
|
928
928
|
i1.Fragment = r, i1.jsx = W3, i1.jsxs = H3;
|
|
@@ -962,24 +962,24 @@ function V2(t, e) {
|
|
|
962
962
|
sessionStorage.setItem(t, e);
|
|
963
963
|
}
|
|
964
964
|
const k2 = ({ children: t }) => {
|
|
965
|
-
const [e, o] = W(), r = C2(), c = S2(),
|
|
965
|
+
const [e, o] = W(), r = C2(), c = S2(), i = b2(), d = T2(), u = a2(), f = I2(), w = y2(), h = R2(), I = u1(null), [$, U] = W(), O = u1({}), z = c1(
|
|
966
966
|
async (y) => {
|
|
967
967
|
try {
|
|
968
968
|
const j = await L1.get(`${y}/ui/joinroom?token=${e}`);
|
|
969
969
|
return j.status === 200 && j.data ? (m.dispatch(F.setRoomData(j.data)), !0) : !1;
|
|
970
970
|
} catch (j) {
|
|
971
|
-
return console.log(j),
|
|
971
|
+
return console.log(j), h ? !0 : j instanceof J3 && j.response && j.response.status === 498 ? (console.error("Invalid token. Unable to join room"), m.dispatch(q.setErrorMessage(`Token ${e} is invalid. Unable to join room`)), !1) : (console.error("Error getting room data", j), j instanceof Error ? m.dispatch(q.setErrorMessage(j.message)) : m.dispatch(q.setErrorMessage("Error getting room data")), !1);
|
|
972
972
|
}
|
|
973
973
|
},
|
|
974
|
-
[e,
|
|
974
|
+
[e, h]
|
|
975
975
|
), s1 = c1(() => {
|
|
976
|
-
const y = `${
|
|
976
|
+
const y = `${u.gatewayAppPath}?uuid=${f}&roomKey=${c}`;
|
|
977
977
|
window.location.href = w ? `${y}&Code=${w}` : y;
|
|
978
|
-
}, [
|
|
978
|
+
}, [u.gatewayAppPath, c, f, w]), P = c1(
|
|
979
979
|
(y, j) => {
|
|
980
|
-
I.current && r && I.current.send(JSON.stringify({ type: y, clientId:
|
|
980
|
+
I.current && r && I.current.send(JSON.stringify({ type: y, clientId: i, content: j }));
|
|
981
981
|
},
|
|
982
|
-
[r,
|
|
982
|
+
[r, i]
|
|
983
983
|
), L = (y, j) => {
|
|
984
984
|
P(y, { value: j });
|
|
985
985
|
}, x1 = c1(
|
|
@@ -992,12 +992,12 @@ const k2 = ({ children: t }) => {
|
|
|
992
992
|
}, []);
|
|
993
993
|
return t1(() => {
|
|
994
994
|
let j = new URLSearchParams(window.location.search).get("token");
|
|
995
|
-
j ? (console.log("saving token: ", j), V2(i3.uuid, j)) : (j = O2(i3.uuid), console.log("loading token: ", j)), o(j),
|
|
995
|
+
j ? (console.log("saving token: ", j), V2(i3.uuid, j)) : (j = O2(i3.uuid), console.log("loading token: ", j)), o(j), d();
|
|
996
996
|
}, []), t1(() => {
|
|
997
997
|
async function y() {
|
|
998
|
-
if (console.log("effect is running"), !(!
|
|
998
|
+
if (console.log("effect is running"), !(!u.apiPath || $ || !e || !await z(u.apiPath)) && !I.current) {
|
|
999
999
|
console.log("connecting to websocket");
|
|
1000
|
-
const m1 = `${
|
|
1000
|
+
const m1 = `${u.apiPath.replace("http", "ws")}/ui/join/${e}`, K = new WebSocket(m1);
|
|
1001
1001
|
I.current = K, K.onopen = (A) => {
|
|
1002
1002
|
console.log("connected", A.type, A.target), m.dispatch(F.setWebsocketIsConnected(!0));
|
|
1003
1003
|
}, K.onerror = (A) => {
|
|
@@ -1007,7 +1007,7 @@ const k2 = ({ children: t }) => {
|
|
|
1007
1007
|
console.log("user code changed"), m.dispatch(F.setUserCode({ userCode: "", qrUrl: "" })), m.dispatch(q.setErrorMessage("User code changed. Click reconnect to enter the new code")), m.dispatch(q.setShowReconnect(!0)), m.dispatch(F.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
|
-
if (A.code === 4001 && !
|
|
1010
|
+
if (A.code === 4001 && !h) {
|
|
1011
1011
|
console.log("processor disconnected"), m.dispatch(q.setErrorMessage("Processor has disconnected. Click Reconnect")), m.dispatch(q.setShowReconnect(!0)), m.dispatch(F.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1012
1012
|
return;
|
|
1013
1013
|
}
|
|
@@ -1080,9 +1080,9 @@ const k2 = ({ children: t }) => {
|
|
|
1080
1080
|
return y(), () => {
|
|
1081
1081
|
I.current && I.current.close(), I.current = null;
|
|
1082
1082
|
};
|
|
1083
|
-
}, [
|
|
1084
|
-
!c || !r || (console.log("clientId: ",
|
|
1085
|
-
}, [c,
|
|
1083
|
+
}, [u.apiPath, z, e, $, h]), t1(() => {
|
|
1084
|
+
!c || !r || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", c), P(`/room/${c}/status`, null)));
|
|
1085
|
+
}, [c, i, r, P]), /* @__PURE__ */ s.jsx(
|
|
1086
1086
|
w3.Provider,
|
|
1087
1087
|
{
|
|
1088
1088
|
value: {
|
|
@@ -1105,55 +1105,55 @@ function U2({
|
|
|
1105
1105
|
onHold: o,
|
|
1106
1106
|
holdTimeMs: r = 500
|
|
1107
1107
|
}) {
|
|
1108
|
-
const c = u1(null),
|
|
1109
|
-
function
|
|
1110
|
-
|
|
1108
|
+
const c = u1(null), i = u1(!1);
|
|
1109
|
+
function d() {
|
|
1110
|
+
i.current = !0, t == null || t(), c.current = setTimeout(() => {
|
|
1111
1111
|
o == null || o(), c.current = null;
|
|
1112
1112
|
}, r);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1114
|
+
function u() {
|
|
1115
|
+
i.current = !1, e == null || e(), c.current && (clearTimeout(c.current), c.current = null);
|
|
1116
1116
|
}
|
|
1117
1117
|
function f() {
|
|
1118
|
-
|
|
1118
|
+
i.current && u();
|
|
1119
1119
|
}
|
|
1120
1120
|
return {
|
|
1121
|
-
onPointerDown:
|
|
1122
|
-
onPointerUp:
|
|
1121
|
+
onPointerDown: d,
|
|
1122
|
+
onPointerUp: u,
|
|
1123
1123
|
onPointerLeave: f
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
1126
|
function g(t, e) {
|
|
1127
1127
|
const { sendMessage: r } = S(), c = u1(null);
|
|
1128
|
-
function
|
|
1128
|
+
function i() {
|
|
1129
1129
|
r(`${t}/${e}`, { value: "pressed" }), c.current || (c.current = setInterval(() => {
|
|
1130
1130
|
r(`${t}/${e}`, { value: "held" });
|
|
1131
1131
|
}, 250));
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function d() {
|
|
1134
1134
|
c.current && (clearInterval(c.current), c.current = null), r(`${t}/${e}`, { value: "released" });
|
|
1135
1135
|
}
|
|
1136
|
-
return U2({ onPress:
|
|
1136
|
+
return U2({ onPress: i, onRelease: d });
|
|
1137
1137
|
}
|
|
1138
1138
|
function x3(t, e) {
|
|
1139
|
-
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"),
|
|
1139
|
+
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"), i = g(`${t}`, "volumeDown");
|
|
1140
1140
|
return e ? {
|
|
1141
1141
|
volumeState: e,
|
|
1142
1142
|
volumeUp: c,
|
|
1143
|
-
volumeDown:
|
|
1144
|
-
setLevel: (
|
|
1143
|
+
volumeDown: i,
|
|
1144
|
+
setLevel: (h) => r(`${t}/level`, h),
|
|
1145
1145
|
muteToggle: () => o(`${t}/muteToggle`, null),
|
|
1146
1146
|
muteOn: () => o(`${t}/muteOn`, null),
|
|
1147
1147
|
muteOff: () => o(`${t}/muteOff`, null)
|
|
1148
1148
|
} : void 0;
|
|
1149
1149
|
}
|
|
1150
1150
|
function Z6(t, e) {
|
|
1151
|
-
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"),
|
|
1151
|
+
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"), i = g(`${t}`, "volumeDown");
|
|
1152
1152
|
return e ? {
|
|
1153
1153
|
volumeState: e,
|
|
1154
1154
|
volumeUp: c,
|
|
1155
|
-
volumeDown:
|
|
1156
|
-
setLevel: (
|
|
1155
|
+
volumeDown: i,
|
|
1156
|
+
setLevel: (h) => r(`${t}/level`, h),
|
|
1157
1157
|
muteToggle: () => o(`${t}/muteToggle`, null),
|
|
1158
1158
|
muteOn: () => o(`${t}/muteOn`, null),
|
|
1159
1159
|
muteOff: () => o(`${t}/muteOff`, null)
|
|
@@ -1184,22 +1184,22 @@ function W2(t) {
|
|
|
1184
1184
|
e(`/device/${t}/setDefaultChannelLevels`, null);
|
|
1185
1185
|
}, c = () => {
|
|
1186
1186
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
1187
|
-
Object.keys(o == null ? void 0 : o.levelControls).forEach((
|
|
1188
|
-
e(`/device/${t}/${
|
|
1187
|
+
Object.keys(o == null ? void 0 : o.levelControls).forEach((u) => {
|
|
1188
|
+
e(`/device/${t}/${u}/fullStatus`, null);
|
|
1189
1189
|
});
|
|
1190
1190
|
};
|
|
1191
1191
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: r, getFullStatus: c } : void 0;
|
|
1192
1192
|
}
|
|
1193
1193
|
function j6(t) {
|
|
1194
|
-
const e = _(t), o = M3(t), r = $1(t), c = $1(t),
|
|
1194
|
+
const e = _(t), o = M3(t), r = $1(t), c = $1(t), i = F2(t), d = W2(t);
|
|
1195
1195
|
if (e)
|
|
1196
1196
|
return {
|
|
1197
1197
|
avrState: e,
|
|
1198
1198
|
powerControl: o,
|
|
1199
1199
|
inputControl: r,
|
|
1200
1200
|
surroundSoundModes: c,
|
|
1201
|
-
surroundChannels:
|
|
1202
|
-
mainVolumeControl:
|
|
1201
|
+
surroundChannels: d,
|
|
1202
|
+
mainVolumeControl: i
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
1205
|
const C6 = ({ className: t }) => {
|
|
@@ -1216,10 +1216,10 @@ const C6 = ({ className: t }) => {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
function S6(t) {
|
|
1218
1218
|
const { sendMessage: e } = S(), o = _(t), r = `/device/${t}`;
|
|
1219
|
-
return o ? { state: o, recallPreset: (
|
|
1220
|
-
e(`${r}/presets/recall`, { deviceKey:
|
|
1221
|
-
}, savePresets: (
|
|
1222
|
-
e(`${r}/presets/save`,
|
|
1219
|
+
return o ? { state: o, recallPreset: (d, u) => {
|
|
1220
|
+
e(`${r}/presets/recall`, { deviceKey: d, preset: u });
|
|
1221
|
+
}, savePresets: (d) => {
|
|
1222
|
+
e(`${r}/presets/save`, d);
|
|
1223
1223
|
} } : void 0;
|
|
1224
1224
|
}
|
|
1225
1225
|
function b6(t) {
|
|
@@ -1228,12 +1228,12 @@ function b6(t) {
|
|
|
1228
1228
|
return { endpointState: e };
|
|
1229
1229
|
}
|
|
1230
1230
|
function I6(t) {
|
|
1231
|
-
const e = `/device/${t}`, o = g(e, "chanUp"), r = g(e, "chanDown"), c = g(e, "lastChan"),
|
|
1232
|
-
return { channelUp: o, channelDown: r, lastChannel: c, guide:
|
|
1231
|
+
const e = `/device/${t}`, o = g(e, "chanUp"), r = g(e, "chanDown"), c = g(e, "lastChan"), i = g(e, "guide"), d = g(e, "info"), u = g(e, "exit");
|
|
1232
|
+
return { channelUp: o, channelDown: r, lastChannel: c, guide: i, info: d, exit: u };
|
|
1233
1233
|
}
|
|
1234
1234
|
function y6(t) {
|
|
1235
|
-
const e = `/device/${t}`, o = g(e, "red"), r = g(e, "green"), c = g(e, "yellow"),
|
|
1236
|
-
return { red: o, green: r, yellow: c, blue:
|
|
1235
|
+
const e = `/device/${t}`, o = g(e, "red"), r = g(e, "green"), c = g(e, "yellow"), i = g(e, "blue");
|
|
1236
|
+
return { red: o, green: r, yellow: c, blue: i };
|
|
1237
1237
|
}
|
|
1238
1238
|
function R6(t) {
|
|
1239
1239
|
const e = _(t);
|
|
@@ -1248,8 +1248,8 @@ function E6(t) {
|
|
|
1248
1248
|
return e.deviceInfo || void 0;
|
|
1249
1249
|
}
|
|
1250
1250
|
function _6(t) {
|
|
1251
|
-
const e = `/device/${t}`, o = g(e, "up"), r = g(e, "down"), c = g(e, "left"),
|
|
1252
|
-
return { up: o, down: r, left: c, right:
|
|
1251
|
+
const e = `/device/${t}`, o = g(e, "up"), r = g(e, "down"), c = g(e, "left"), i = g(e, "right"), d = g(e, "select"), u = g(e, "menu"), f = g(e, "exit");
|
|
1252
|
+
return { up: o, down: r, left: c, right: i, select: d, menu: u, exit: f };
|
|
1253
1253
|
}
|
|
1254
1254
|
function T6(t) {
|
|
1255
1255
|
const { sendMessage: e } = S();
|
|
@@ -1281,13 +1281,13 @@ function $6(t) {
|
|
|
1281
1281
|
return { state: e };
|
|
1282
1282
|
}
|
|
1283
1283
|
function D6(t) {
|
|
1284
|
-
const { sendMessage: e, sendSimpleMessage: o } = S(), r = _(t), c = j2(t),
|
|
1285
|
-
return
|
|
1286
|
-
levelState:
|
|
1287
|
-
setLevel: (
|
|
1288
|
-
muteToggle: (
|
|
1289
|
-
muteOn: (
|
|
1290
|
-
muteOff: (
|
|
1284
|
+
const { sendMessage: e, sendSimpleMessage: o } = S(), r = _(t), c = j2(t), i = r || c;
|
|
1285
|
+
return i ? {
|
|
1286
|
+
levelState: i,
|
|
1287
|
+
setLevel: (h, I) => o(`${h}/level`, I),
|
|
1288
|
+
muteToggle: (h) => e(`${h}/muteToggle`, null),
|
|
1289
|
+
muteOn: (h) => e(`${h}/muteOn`, null),
|
|
1290
|
+
muteOff: (h) => e(`${h}/muteOff`, null)
|
|
1291
1291
|
} : void 0;
|
|
1292
1292
|
}
|
|
1293
1293
|
function A6(t) {
|
|
@@ -1309,8 +1309,8 @@ function O6(t) {
|
|
|
1309
1309
|
} };
|
|
1310
1310
|
}
|
|
1311
1311
|
function V6(t) {
|
|
1312
|
-
const e = `/device/${t}`, o = g(e, "num0"), r = g(e, "num1"), c = g(e, "num2"),
|
|
1313
|
-
return { digit0: o, digit1: r, digit2: c, digit3:
|
|
1312
|
+
const e = `/device/${t}`, o = g(e, "num0"), r = g(e, "num1"), c = g(e, "num2"), i = g(e, "num3"), d = g(e, "num4"), u = g(e, "num5"), f = g(e, "num6"), w = g(e, "num7"), h = g(e, "num8"), I = g(e, "num9"), $ = g(e, "numDash"), U = g(e, "numEnter");
|
|
1313
|
+
return { digit0: o, digit1: r, digit2: c, digit3: i, digit4: d, digit5: u, digit6: f, digit7: w, digit8: h, digit9: I, keypadAccessoryButton1: $, keypadAccessoryButton2: U };
|
|
1314
1314
|
}
|
|
1315
1315
|
function k6(t) {
|
|
1316
1316
|
const { sendMessage: e } = S(), o = _(t);
|
|
@@ -1360,8 +1360,8 @@ function G6(t) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
function q6(t) {
|
|
1362
1362
|
const { sendMessage: e } = S(), o = D1(t);
|
|
1363
|
-
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (
|
|
1364
|
-
e(`/room/${t}/setShutdownPromptSeconds`,
|
|
1363
|
+
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (u) => {
|
|
1364
|
+
e(`/room/${t}/setShutdownPromptSeconds`, u);
|
|
1365
1365
|
}, shutdownStart: () => {
|
|
1366
1366
|
e(`/room/${t}/shutdownStart`, null);
|
|
1367
1367
|
}, shutdownEnd: () => {
|
|
@@ -1380,10 +1380,10 @@ function Y6(t) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
function z6(t) {
|
|
1382
1382
|
const { sendMessage: e } = S(), o = D1(t);
|
|
1383
|
-
return o ? { techPasswordState: o, validatePassword: (
|
|
1384
|
-
e(`/room/${t}/validateTechPassword`, { password:
|
|
1385
|
-
}, setPassword: (
|
|
1386
|
-
e(`/room/${t}/setTechPassword`, { oldPassword:
|
|
1383
|
+
return o ? { techPasswordState: o, validatePassword: (i) => {
|
|
1384
|
+
e(`/room/${t}/validateTechPassword`, { password: i });
|
|
1385
|
+
}, setPassword: (i, d) => {
|
|
1386
|
+
e(`/room/${t}/setTechPassword`, { oldPassword: i, newPassword: d });
|
|
1387
1387
|
} } : void 0;
|
|
1388
1388
|
}
|
|
1389
1389
|
function J6(t) {
|
|
@@ -1400,8 +1400,8 @@ function X6(t) {
|
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
1402
|
function Q6(t) {
|
|
1403
|
-
const e = `/device/${t}`, o = g(e, "play"), r = g(e, "pause"), c = g(e, "stop"),
|
|
1404
|
-
return { play: o, pause: r, stop: c, prevTrack:
|
|
1403
|
+
const e = `/device/${t}`, o = g(e, "play"), r = g(e, "pause"), c = g(e, "stop"), i = g(e, "prevTrack"), d = g(e, "nextTrack"), u = g(e, "rewind"), f = g(e, "ffwd"), w = g(e, "record");
|
|
1404
|
+
return { play: o, pause: r, stop: c, prevTrack: i, nextTrack: d, rewind: u, fastForward: f, record: w };
|
|
1405
1405
|
}
|
|
1406
1406
|
function N6(t) {
|
|
1407
1407
|
const e = _(t), { sendMessage: o } = S();
|
|
@@ -1422,51 +1422,51 @@ function N6(t) {
|
|
|
1422
1422
|
function ee(t) {
|
|
1423
1423
|
const e = _(t), o = M3(t), r = $1(t);
|
|
1424
1424
|
if (!e) return;
|
|
1425
|
-
const c = (e.powerState || e.isWarming) && !e.isCooling,
|
|
1425
|
+
const c = (e.powerState || e.isWarming) && !e.isCooling, i = (!e.powerState || e.isCooling) && !e.isWarming;
|
|
1426
1426
|
return {
|
|
1427
1427
|
displayState: e,
|
|
1428
1428
|
powerControl: o,
|
|
1429
1429
|
inputControl: r,
|
|
1430
|
-
powerFb: { powerOnFb: c, powerOffFb:
|
|
1430
|
+
powerFb: { powerOnFb: c, powerOffFb: i }
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
1433
|
const te = ({ config: t }) => {
|
|
1434
1434
|
const { sendMessage: e } = S();
|
|
1435
1435
|
t1(() => {
|
|
1436
|
-
var r, c,
|
|
1436
|
+
var r, c, i, d;
|
|
1437
1437
|
if (!t)
|
|
1438
1438
|
return;
|
|
1439
1439
|
const o = [];
|
|
1440
|
-
Object.values(t.destinations).forEach((
|
|
1441
|
-
o.push(
|
|
1442
|
-
}), Object.values(t.destinationList).forEach((
|
|
1443
|
-
o.push(
|
|
1444
|
-
}), t.audioControlPointList && Object.values((r = t.audioControlPointList) == null ? void 0 : r.levelControls).forEach((
|
|
1445
|
-
|
|
1446
|
-
}), (c = t.touchpanelKeys) == null || c.forEach((
|
|
1447
|
-
o.push(
|
|
1448
|
-
}), t.environmentalDevices.forEach((
|
|
1449
|
-
o.push(
|
|
1450
|
-
}), (
|
|
1451
|
-
o.push(
|
|
1452
|
-
}), t.audioCodecKey && o.push(t.audioCodecKey), t.videoCodecKey && o.push(t.videoCodecKey), t.matrixRoutingKey && o.push(t.matrixRoutingKey), t.roomCombinerKey && o.push(t.roomCombinerKey), t.endpointKeys && t.endpointKeys.forEach((
|
|
1453
|
-
o.push(
|
|
1454
|
-
})
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
console.log("deviceKeys", o), o.forEach((
|
|
1458
|
-
e(`/device/${
|
|
1440
|
+
if (t.destinations && Object.values(t.destinations).forEach((u) => {
|
|
1441
|
+
o.push(u);
|
|
1442
|
+
}), t.destinationList && Object.values(t.destinationList).forEach((u) => {
|
|
1443
|
+
o.push(u.sinkKey);
|
|
1444
|
+
}), t.audioControlPointList && Object.values((r = t.audioControlPointList) == null ? void 0 : r.levelControls).forEach((u) => {
|
|
1445
|
+
u.itemKey ? o.push(u.parentDeviceKey + "--" + u.itemKey) : o.push(u.parentDeviceKey);
|
|
1446
|
+
}), (c = t.touchpanelKeys) == null || c.forEach((u) => {
|
|
1447
|
+
o.push(u);
|
|
1448
|
+
}), (i = t.environmentalDevices) == null || i.forEach((u) => {
|
|
1449
|
+
o.push(u.deviceKey);
|
|
1450
|
+
}), (d = t.accessoryDeviceKeys) == null || d.forEach((u) => {
|
|
1451
|
+
o.push(u);
|
|
1452
|
+
}), t.audioCodecKey && o.push(t.audioCodecKey), t.videoCodecKey && o.push(t.videoCodecKey), t.matrixRoutingKey && o.push(t.matrixRoutingKey), t.roomCombinerKey && o.push(t.roomCombinerKey), t.endpointKeys && t.endpointKeys.forEach((u) => {
|
|
1453
|
+
o.push(u);
|
|
1454
|
+
}), t.sourceList)
|
|
1455
|
+
for (const u of Object.values(t.sourceList))
|
|
1456
|
+
u.sourceKey && u.sourceKey !== "$off" && o.push(u.sourceKey);
|
|
1457
|
+
console.log("deviceKeys", o), o.forEach((u) => {
|
|
1458
|
+
e(`/device/${u}/fullStatus`, { deviceKey: u });
|
|
1459
1459
|
});
|
|
1460
1460
|
}, [t, e]);
|
|
1461
1461
|
};
|
|
1462
1462
|
function se(t, e) {
|
|
1463
|
-
const [o, r] = W(!1), [c,
|
|
1463
|
+
const [o, r] = W(!1), [c, i] = W(!1);
|
|
1464
1464
|
return d3(() => {
|
|
1465
|
-
const { current:
|
|
1466
|
-
const f =
|
|
1467
|
-
|
|
1465
|
+
const { current: d } = t, u = () => {
|
|
1466
|
+
const f = d && d.scrollHeight > d.clientHeight, w = d && d.scrollWidth > d.clientWidth;
|
|
1467
|
+
i(f ?? !1), r(w ?? !1), e && e(f ?? !1, w ?? !1);
|
|
1468
1468
|
};
|
|
1469
|
-
|
|
1469
|
+
d && u();
|
|
1470
1470
|
}, [t, e]), { overflowHorizontal: o, overflowVertical: c };
|
|
1471
1471
|
}
|
|
1472
1472
|
function oe(t, e) {
|
|
@@ -1474,20 +1474,20 @@ function oe(t, e) {
|
|
|
1474
1474
|
return x3(r, o);
|
|
1475
1475
|
}
|
|
1476
1476
|
function ne(t) {
|
|
1477
|
-
var
|
|
1478
|
-
const [e, o] = W(((
|
|
1479
|
-
const { current:
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1482
|
-
const { current:
|
|
1483
|
-
|
|
1477
|
+
var u, f;
|
|
1478
|
+
const [e, o] = W(((u = t == null ? void 0 : t.current) == null ? void 0 : u.scrollLeft) ?? 0), [r, c] = W(((f = t == null ? void 0 : t.current) == null ? void 0 : f.scrollTop) ?? 0), i = (w) => {
|
|
1479
|
+
const { current: h } = t;
|
|
1480
|
+
h && (console.log(h.scrollLeft), h.scrollLeft += w, console.log(h.scrollLeft));
|
|
1481
|
+
}, d = (w) => {
|
|
1482
|
+
const { current: h } = t;
|
|
1483
|
+
h && (console.log(h.scrollTop), h.scrollTop += w, console.log(h.scrollTop));
|
|
1484
1484
|
};
|
|
1485
1485
|
return d3(() => {
|
|
1486
|
-
const { current: w } = t,
|
|
1486
|
+
const { current: w } = t, h = () => {
|
|
1487
1487
|
o((w == null ? void 0 : w.scrollLeft) ?? 0), c((w == null ? void 0 : w.scrollTop) ?? 0);
|
|
1488
1488
|
};
|
|
1489
|
-
w &&
|
|
1490
|
-
}, [t]), { horizontalScrollPosition: e, verticalScrollPosition: r, scrollHorizontal:
|
|
1489
|
+
w && h();
|
|
1490
|
+
}, [t]), { horizontalScrollPosition: e, verticalScrollPosition: r, scrollHorizontal: i, scrollVertical: d };
|
|
1491
1491
|
}
|
|
1492
1492
|
function re() {
|
|
1493
1493
|
const { sendMessage: t } = S();
|
|
@@ -1504,15 +1504,15 @@ function ce() {
|
|
|
1504
1504
|
const [t, e] = W(), [o, r] = W();
|
|
1505
1505
|
function c() {
|
|
1506
1506
|
e((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
1507
|
-
const
|
|
1508
|
-
r(
|
|
1507
|
+
const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1508
|
+
r(i);
|
|
1509
1509
|
}
|
|
1510
1510
|
return t1(() => {
|
|
1511
1511
|
c();
|
|
1512
|
-
const
|
|
1512
|
+
const i = setInterval(() => {
|
|
1513
1513
|
c();
|
|
1514
1514
|
}, 1e3);
|
|
1515
|
-
return () => clearInterval(
|
|
1515
|
+
return () => clearInterval(i);
|
|
1516
1516
|
}, []), { date: t, time: o };
|
|
1517
1517
|
}
|
|
1518
1518
|
const le = () => {
|
|
@@ -1534,28 +1534,28 @@ const le = () => {
|
|
|
1534
1534
|
vert: o = !1,
|
|
1535
1535
|
className: r,
|
|
1536
1536
|
iconClassName: c = "",
|
|
1537
|
-
otherContentClassName:
|
|
1538
|
-
disabled:
|
|
1539
|
-
feedback:
|
|
1537
|
+
otherContentClassName: i = "",
|
|
1538
|
+
disabled: d,
|
|
1539
|
+
feedback: u,
|
|
1540
1540
|
feedbackClassName: f,
|
|
1541
1541
|
onPointerDown: w,
|
|
1542
|
-
onPointerUp:
|
|
1542
|
+
onPointerUp: h,
|
|
1543
1543
|
onPointerLeave: I,
|
|
1544
1544
|
...$
|
|
1545
1545
|
}) => {
|
|
1546
|
-
const [U, O] = W(!1), z = !
|
|
1546
|
+
const [U, O] = W(!1), z = !d && u ? f : "", s1 = !d && (U || u);
|
|
1547
1547
|
return /* @__PURE__ */ s.jsxs(
|
|
1548
1548
|
"button",
|
|
1549
1549
|
{
|
|
1550
1550
|
type: "button",
|
|
1551
1551
|
className: `${_1.iconbtn} ${o ? _1.iconbtnvert : ""} ${r} ${z}`,
|
|
1552
1552
|
...$,
|
|
1553
|
-
disabled:
|
|
1553
|
+
disabled: d,
|
|
1554
1554
|
onPointerDown: (P) => {
|
|
1555
1555
|
O(!0), w == null || w(P);
|
|
1556
1556
|
},
|
|
1557
1557
|
onPointerUp: (P) => {
|
|
1558
|
-
O(!1),
|
|
1558
|
+
O(!1), h == null || h(P);
|
|
1559
1559
|
},
|
|
1560
1560
|
onPointerLeave: (P) => {
|
|
1561
1561
|
O(!1), I == null || I(P);
|
|
@@ -1566,10 +1566,10 @@ const le = () => {
|
|
|
1566
1566
|
{
|
|
1567
1567
|
className: `${c || _1.iconsm}`,
|
|
1568
1568
|
active: s1,
|
|
1569
|
-
disabled:
|
|
1569
|
+
disabled: d
|
|
1570
1570
|
}
|
|
1571
1571
|
),
|
|
1572
|
-
|
|
1572
|
+
i ? /* @__PURE__ */ s.jsx("div", { className: i, children: e }) : /* @__PURE__ */ s.jsx("div", { children: e })
|
|
1573
1573
|
]
|
|
1574
1574
|
}
|
|
1575
1575
|
);
|