@pepperdash/mobile-control-react-app-core 1.20.0 → 1.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mobile-control-react-app-core.es.js +160 -176
- package/dist/mobile-control-react-app-core.umd.js +15 -17
- package/dist/shared/Buttons/IconButton/IconButton.d.ts.map +1 -1
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts +80 -0
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -1
- package/dist/types/classes/room-data.d.ts +7 -0
- package/dist/types/classes/room-data.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var q3 = Object.defineProperty;
|
|
2
2
|
var Y3 = (t, e, o) => e in t ? q3(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var H = (t, e, o) =>
|
|
3
|
+
var H = (t, e, o) => Y3(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import z3, { AxiosError as J3 } from "axios";
|
|
5
5
|
import { useDispatch as X3, useSelector as Q3, Provider as N3 } from "react-redux";
|
|
6
6
|
import { createSlice as d1, combineReducers as e2, configureStore as t2, createSelector as s2 } from "@reduxjs/toolkit";
|
|
@@ -35,9 +35,8 @@ const d2 = {
|
|
|
35
35
|
reducers: {
|
|
36
36
|
setDeviceState(t, e) {
|
|
37
37
|
const o = e.payload.type, r = o.slice(o.lastIndexOf("/") + 1);
|
|
38
|
-
if (!r)
|
|
39
|
-
|
|
40
|
-
const c = e.payload.content, u = t[r] ?? {}, i = a3.merge(u, c);
|
|
38
|
+
if (!r) return;
|
|
39
|
+
const c = e.payload.content, a = t[r] ?? {}, i = a3.merge(a, c);
|
|
41
40
|
return t[r] = i, t;
|
|
42
41
|
},
|
|
43
42
|
clearDevices() {
|
|
@@ -50,11 +49,10 @@ const d2 = {
|
|
|
50
49
|
reducers: {
|
|
51
50
|
setRoomState(t, e) {
|
|
52
51
|
const o = e.payload.type, r = o.slice(o.lastIndexOf("/") + 1);
|
|
53
|
-
if (console.log(o, r), !r)
|
|
54
|
-
return;
|
|
52
|
+
if (console.log(o, r), !r) return;
|
|
55
53
|
const c = e.payload.content;
|
|
56
54
|
console.log(c);
|
|
57
|
-
const
|
|
55
|
+
const a = t[r] ?? {}, i = a3.merge(a, c);
|
|
58
56
|
return t[r] = i, console.log(t), t;
|
|
59
57
|
},
|
|
60
58
|
clearRooms() {
|
|
@@ -84,7 +82,9 @@ const d2 = {
|
|
|
84
82
|
essentialsVersion: "",
|
|
85
83
|
pepperDashCoreVersion: "",
|
|
86
84
|
essentialsPlugins: []
|
|
87
|
-
}
|
|
85
|
+
},
|
|
86
|
+
rooms: [],
|
|
87
|
+
devices: []
|
|
88
88
|
},
|
|
89
89
|
userCode: "",
|
|
90
90
|
qrUrl: ""
|
|
@@ -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 ? (i = (
|
|
216
|
+
var o, r, c, a, i, h, f, w;
|
|
217
|
+
return (r = (o = e.rooms[t]) == null ? void 0 : o.configuration) != null && r.destinationList.programAudio ? (i = (a = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : a.destinationList.programAudio) == null ? void 0 : i.sinkKey : ((w = (f = (h = e.rooms[t]) == null ? void 0 : h.configuration) == null ? void 0 : f.destinationList.defaultDisplay) == null ? void 0 : w.sinkKey) || "";
|
|
218
218
|
}
|
|
219
219
|
), s6 = (t) => p(
|
|
220
220
|
(e) => {
|
|
@@ -261,8 +261,7 @@ const d2 = {
|
|
|
261
261
|
}
|
|
262
262
|
],
|
|
263
263
|
(e, o, r) => {
|
|
264
|
-
if (console.log("roomKey", e), console.log("devices", o), console.log("destinations", r), !r)
|
|
265
|
-
return;
|
|
264
|
+
if (console.log("roomKey", e), console.log("devices", o), console.log("destinations", r), !r) return;
|
|
266
265
|
const c = Object.entries(r).filter(([i]) => i !== "programAudio" && i !== "codecContent").map(([, i]) => i);
|
|
267
266
|
return Object.values(o).filter((i) => Object.values(c).includes(i.key));
|
|
268
267
|
}
|
|
@@ -292,8 +291,8 @@ function T2() {
|
|
|
292
291
|
if (r.status == 200 && r.data) {
|
|
293
292
|
const c = r.data.apiPath;
|
|
294
293
|
t(h2.setAppConfig(r.data));
|
|
295
|
-
const
|
|
296
|
-
|
|
294
|
+
const a = await L1.get(`${c}/version`);
|
|
295
|
+
a.status == 200 && a.data && t(F.setRuntimeConfig(a.data));
|
|
297
296
|
}
|
|
298
297
|
} catch (e) {
|
|
299
298
|
console.error("Error getting config", e);
|
|
@@ -304,7 +303,7 @@ function T2() {
|
|
|
304
303
|
var P1 = { exports: {} }, l1 = {};
|
|
305
304
|
/**
|
|
306
305
|
* @license React
|
|
307
|
-
* react-jsx-runtime.
|
|
306
|
+
* react-jsx-runtime.production.min.js
|
|
308
307
|
*
|
|
309
308
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
310
309
|
*
|
|
@@ -313,8 +312,32 @@ var P1 = { exports: {} }, l1 = {};
|
|
|
313
312
|
*/
|
|
314
313
|
var c3;
|
|
315
314
|
function L2() {
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
if (c3) return l1;
|
|
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, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
318
|
+
function i(h, f, w) {
|
|
319
|
+
var d, I = {}, $ = null, U = null;
|
|
320
|
+
w !== void 0 && ($ = "" + w), f.key !== void 0 && ($ = "" + f.key), f.ref !== void 0 && (U = f.ref);
|
|
321
|
+
for (d in f) r.call(f, d) && !a.hasOwnProperty(d) && (I[d] = f[d]);
|
|
322
|
+
if (h && h.defaultProps) for (d in f = h.defaultProps, f) I[d] === void 0 && (I[d] = f[d]);
|
|
323
|
+
return { $$typeof: e, type: h, key: $, ref: U, props: I, _owner: c.current };
|
|
324
|
+
}
|
|
325
|
+
return l1.Fragment = o, l1.jsx = i, l1.jsxs = i, l1;
|
|
326
|
+
}
|
|
327
|
+
var i1 = {};
|
|
328
|
+
/**
|
|
329
|
+
* @license React
|
|
330
|
+
* react-jsx-runtime.development.js
|
|
331
|
+
*
|
|
332
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the MIT license found in the
|
|
335
|
+
* LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/
|
|
337
|
+
var l3;
|
|
338
|
+
function P2() {
|
|
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"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), U = Symbol.for("react.offscreen"), O = Symbol.iterator, z = "@@iterator";
|
|
318
341
|
function s1(n) {
|
|
319
342
|
if (n === null || typeof n != "object")
|
|
320
343
|
return null;
|
|
@@ -324,16 +347,16 @@ function L2() {
|
|
|
324
347
|
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
325
348
|
function L(n) {
|
|
326
349
|
{
|
|
327
|
-
for (var l = arguments.length,
|
|
328
|
-
|
|
329
|
-
x1("error", n,
|
|
350
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
351
|
+
u[v - 1] = arguments[v];
|
|
352
|
+
x1("error", n, u);
|
|
330
353
|
}
|
|
331
354
|
}
|
|
332
|
-
function x1(n, l,
|
|
355
|
+
function x1(n, l, u) {
|
|
333
356
|
{
|
|
334
357
|
var v = P.ReactDebugCurrentFrame, C = v.getStackAddendum();
|
|
335
|
-
C !== "" && (l += "%s",
|
|
336
|
-
var b =
|
|
358
|
+
C !== "" && (l += "%s", u = u.concat([C]));
|
|
359
|
+
var b = u.map(function(M) {
|
|
337
360
|
return String(M);
|
|
338
361
|
});
|
|
339
362
|
b.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, b);
|
|
@@ -342,18 +365,18 @@ function L2() {
|
|
|
342
365
|
var M1 = !1, y = !1, j = !1, h1 = !1, m1 = !1, K;
|
|
343
366
|
K = Symbol.for("react.module.reference");
|
|
344
367
|
function A(n) {
|
|
345
|
-
return !!(typeof n == "string" || typeof n == "function" || n === r || n ===
|
|
368
|
+
return !!(typeof n == "string" || typeof n == "function" || n === r || n === a || m1 || n === c || n === w || n === d || h1 || n === U || M1 || y || j || typeof n == "object" && n !== null && (n.$$typeof === $ || n.$$typeof === I || n.$$typeof === i || n.$$typeof === h || n.$$typeof === f || // This needs to include all possible module reference object
|
|
346
369
|
// types supported by any Flight configuration anywhere since
|
|
347
370
|
// we don't know which Flight build this will end up being used
|
|
348
371
|
// with.
|
|
349
372
|
n.$$typeof === K || n.getModuleId !== void 0));
|
|
350
373
|
}
|
|
351
|
-
function R(n, l,
|
|
374
|
+
function R(n, l, u) {
|
|
352
375
|
var v = n.displayName;
|
|
353
376
|
if (v)
|
|
354
377
|
return v;
|
|
355
378
|
var C = l.displayName || l.name || "";
|
|
356
|
-
return C !== "" ?
|
|
379
|
+
return C !== "" ? u + "(" + C + ")" : u;
|
|
357
380
|
}
|
|
358
381
|
function J(n) {
|
|
359
382
|
return n.displayName || "Context";
|
|
@@ -370,7 +393,7 @@ function L2() {
|
|
|
370
393
|
return "Fragment";
|
|
371
394
|
case o:
|
|
372
395
|
return "Portal";
|
|
373
|
-
case
|
|
396
|
+
case a:
|
|
374
397
|
return "Profiler";
|
|
375
398
|
case c:
|
|
376
399
|
return "StrictMode";
|
|
@@ -385,8 +408,8 @@ function L2() {
|
|
|
385
408
|
var l = n;
|
|
386
409
|
return J(l) + ".Consumer";
|
|
387
410
|
case i:
|
|
388
|
-
var
|
|
389
|
-
return J(
|
|
411
|
+
var u = n;
|
|
412
|
+
return J(u._context) + ".Provider";
|
|
390
413
|
case f:
|
|
391
414
|
return R(n, n.render, "ForwardRef");
|
|
392
415
|
case I:
|
|
@@ -466,7 +489,7 @@ function L2() {
|
|
|
466
489
|
}
|
|
467
490
|
}
|
|
468
491
|
var Z1 = P.ReactCurrentDispatcher, j1;
|
|
469
|
-
function v1(n, l,
|
|
492
|
+
function v1(n, l, u) {
|
|
470
493
|
{
|
|
471
494
|
if (j1 === void 0)
|
|
472
495
|
try {
|
|
@@ -488,9 +511,9 @@ function L2() {
|
|
|
488
511
|
if (!n || C1)
|
|
489
512
|
return "";
|
|
490
513
|
{
|
|
491
|
-
var
|
|
492
|
-
if (
|
|
493
|
-
return
|
|
514
|
+
var u = g1.get(n);
|
|
515
|
+
if (u !== void 0)
|
|
516
|
+
return u;
|
|
494
517
|
}
|
|
495
518
|
var v;
|
|
496
519
|
C1 = !0;
|
|
@@ -555,14 +578,14 @@ function L2() {
|
|
|
555
578
|
var Q = n ? n.displayName || n.name : "", Y = Q ? v1(Q) : "";
|
|
556
579
|
return typeof n == "function" && g1.set(n, Y), Y;
|
|
557
580
|
}
|
|
558
|
-
function C3(n, l,
|
|
581
|
+
function C3(n, l, u) {
|
|
559
582
|
return H1(n, !1);
|
|
560
583
|
}
|
|
561
584
|
function S3(n) {
|
|
562
585
|
var l = n.prototype;
|
|
563
586
|
return !!(l && l.isReactComponent);
|
|
564
587
|
}
|
|
565
|
-
function f1(n, l,
|
|
588
|
+
function f1(n, l, u) {
|
|
566
589
|
if (n == null)
|
|
567
590
|
return "";
|
|
568
591
|
if (typeof n == "function")
|
|
@@ -580,11 +603,11 @@ function L2() {
|
|
|
580
603
|
case f:
|
|
581
604
|
return C3(n.render);
|
|
582
605
|
case I:
|
|
583
|
-
return f1(n.type, l,
|
|
606
|
+
return f1(n.type, l, u);
|
|
584
607
|
case $: {
|
|
585
608
|
var v = n, C = v._payload, b = v._init;
|
|
586
609
|
try {
|
|
587
|
-
return f1(b(C), l,
|
|
610
|
+
return f1(b(C), l, u);
|
|
588
611
|
} catch {
|
|
589
612
|
}
|
|
590
613
|
}
|
|
@@ -594,12 +617,12 @@ function L2() {
|
|
|
594
617
|
var n1 = Object.prototype.hasOwnProperty, K1 = {}, G1 = P.ReactDebugCurrentFrame;
|
|
595
618
|
function p1(n) {
|
|
596
619
|
if (n) {
|
|
597
|
-
var l = n._owner,
|
|
598
|
-
G1.setExtraStackFrame(
|
|
620
|
+
var l = n._owner, u = f1(n.type, n._source, l ? l.type : null);
|
|
621
|
+
G1.setExtraStackFrame(u);
|
|
599
622
|
} else
|
|
600
623
|
G1.setExtraStackFrame(null);
|
|
601
624
|
}
|
|
602
|
-
function b3(n, l,
|
|
625
|
+
function b3(n, l, u, v, C) {
|
|
603
626
|
{
|
|
604
627
|
var b = Function.call.bind(n1);
|
|
605
628
|
for (var M in n)
|
|
@@ -607,14 +630,14 @@ function L2() {
|
|
|
607
630
|
var x = void 0;
|
|
608
631
|
try {
|
|
609
632
|
if (typeof n[M] != "function") {
|
|
610
|
-
var D = Error((v || "React class") + ": " +
|
|
633
|
+
var D = Error((v || "React class") + ": " + u + " 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`.");
|
|
611
634
|
throw D.name = "Invariant Violation", D;
|
|
612
635
|
}
|
|
613
|
-
x = n[M](l, M, v,
|
|
636
|
+
x = n[M](l, M, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
614
637
|
} catch (E) {
|
|
615
638
|
x = E;
|
|
616
639
|
}
|
|
617
|
-
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", u, M, typeof x), p1(null)), x instanceof Error && !(x.message in K1) && (K1[x.message] = !0, p1(C), L("Failed %s type: %s", u, x.message), p1(null));
|
|
618
641
|
}
|
|
619
642
|
}
|
|
620
643
|
}
|
|
@@ -624,8 +647,8 @@ function L2() {
|
|
|
624
647
|
}
|
|
625
648
|
function y3(n) {
|
|
626
649
|
{
|
|
627
|
-
var l = typeof Symbol == "function" && Symbol.toStringTag,
|
|
628
|
-
return
|
|
650
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
651
|
+
return u;
|
|
629
652
|
}
|
|
630
653
|
}
|
|
631
654
|
function R3(n) {
|
|
@@ -667,40 +690,40 @@ function L2() {
|
|
|
667
690
|
}
|
|
668
691
|
function L3(n, l) {
|
|
669
692
|
if (typeof n.ref == "string" && r1.current && l && r1.current.stateNode !== l) {
|
|
670
|
-
var
|
|
671
|
-
b1[
|
|
693
|
+
var u = V(r1.current.type);
|
|
694
|
+
b1[u] || (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[u] = !0);
|
|
672
695
|
}
|
|
673
696
|
}
|
|
674
697
|
function P3(n, l) {
|
|
675
698
|
{
|
|
676
|
-
var
|
|
699
|
+
var u = function() {
|
|
677
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));
|
|
678
701
|
};
|
|
679
|
-
|
|
680
|
-
get:
|
|
702
|
+
u.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
703
|
+
get: u,
|
|
681
704
|
configurable: !0
|
|
682
705
|
});
|
|
683
706
|
}
|
|
684
707
|
}
|
|
685
708
|
function $3(n, l) {
|
|
686
709
|
{
|
|
687
|
-
var
|
|
710
|
+
var u = function() {
|
|
688
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));
|
|
689
712
|
};
|
|
690
|
-
|
|
691
|
-
get:
|
|
713
|
+
u.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
714
|
+
get: u,
|
|
692
715
|
configurable: !0
|
|
693
716
|
});
|
|
694
717
|
}
|
|
695
718
|
}
|
|
696
|
-
var D3 = function(n, l,
|
|
719
|
+
var D3 = function(n, l, u, v, C, b, M) {
|
|
697
720
|
var x = {
|
|
698
721
|
// This tag allows us to uniquely identify this as a React Element
|
|
699
722
|
$$typeof: e,
|
|
700
723
|
// Built-in properties that belong on the element
|
|
701
724
|
type: n,
|
|
702
725
|
key: l,
|
|
703
|
-
ref:
|
|
726
|
+
ref: u,
|
|
704
727
|
props: M,
|
|
705
728
|
// Record the component responsible for creating this element.
|
|
706
729
|
_owner: b
|
|
@@ -722,10 +745,10 @@ function L2() {
|
|
|
722
745
|
value: C
|
|
723
746
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
724
747
|
};
|
|
725
|
-
function A3(n, l,
|
|
748
|
+
function A3(n, l, u, v, C) {
|
|
726
749
|
{
|
|
727
750
|
var b, M = {}, x = null, D = null;
|
|
728
|
-
|
|
751
|
+
u !== void 0 && (Y1(u), x = "" + u), T3(l) && (Y1(l.key), x = "" + l.key), _3(l) && (D = l.ref, L3(l, C));
|
|
729
752
|
for (b in l)
|
|
730
753
|
n1.call(l, b) && !E3.hasOwnProperty(b) && (M[b] = l[b]);
|
|
731
754
|
if (n && n.defaultProps) {
|
|
@@ -743,8 +766,8 @@ function L2() {
|
|
|
743
766
|
var I1 = P.ReactCurrentOwner, X1 = P.ReactDebugCurrentFrame;
|
|
744
767
|
function X(n) {
|
|
745
768
|
if (n) {
|
|
746
|
-
var l = n._owner,
|
|
747
|
-
X1.setExtraStackFrame(
|
|
769
|
+
var l = n._owner, u = f1(n.type, n._source, l ? l.type : null);
|
|
770
|
+
X1.setExtraStackFrame(u);
|
|
748
771
|
} else
|
|
749
772
|
X1.setExtraStackFrame(null);
|
|
750
773
|
}
|
|
@@ -766,25 +789,17 @@ Check the render method of \`` + n + "`.";
|
|
|
766
789
|
}
|
|
767
790
|
}
|
|
768
791
|
function B3(n) {
|
|
769
|
-
|
|
770
|
-
if (n !== void 0) {
|
|
771
|
-
var l = n.fileName.replace(/^.*[\\\/]/, ""), a = n.lineNumber;
|
|
772
|
-
return `
|
|
773
|
-
|
|
774
|
-
Check your code at ` + l + ":" + a + ".";
|
|
775
|
-
}
|
|
776
|
-
return "";
|
|
777
|
-
}
|
|
792
|
+
return "";
|
|
778
793
|
}
|
|
779
794
|
var N1 = {};
|
|
780
795
|
function O3(n) {
|
|
781
796
|
{
|
|
782
797
|
var l = Q1();
|
|
783
798
|
if (!l) {
|
|
784
|
-
var
|
|
785
|
-
|
|
799
|
+
var u = typeof n == "string" ? n : n.displayName || n.name;
|
|
800
|
+
u && (l = `
|
|
786
801
|
|
|
787
|
-
Check the top-level render call using <` +
|
|
802
|
+
Check the top-level render call using <` + u + ">.");
|
|
788
803
|
}
|
|
789
804
|
return l;
|
|
790
805
|
}
|
|
@@ -794,12 +809,12 @@ Check the top-level render call using <` + a + ">.");
|
|
|
794
809
|
if (!n._store || n._store.validated || n.key != null)
|
|
795
810
|
return;
|
|
796
811
|
n._store.validated = !0;
|
|
797
|
-
var
|
|
798
|
-
if (N1[
|
|
812
|
+
var u = O3(l);
|
|
813
|
+
if (N1[u])
|
|
799
814
|
return;
|
|
800
|
-
N1[
|
|
815
|
+
N1[u] = !0;
|
|
801
816
|
var v = "";
|
|
802
|
-
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.', u, v), X(null);
|
|
803
818
|
}
|
|
804
819
|
}
|
|
805
820
|
function t3(n, l) {
|
|
@@ -807,8 +822,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
807
822
|
if (typeof n != "object")
|
|
808
823
|
return;
|
|
809
824
|
if (S1(n))
|
|
810
|
-
for (var
|
|
811
|
-
var v = n[
|
|
825
|
+
for (var u = 0; u < n.length; u++) {
|
|
826
|
+
var v = n[u];
|
|
812
827
|
R1(v) && e3(v, l);
|
|
813
828
|
}
|
|
814
829
|
else if (R1(n))
|
|
@@ -826,18 +841,18 @@ Check the top-level render call using <` + a + ">.");
|
|
|
826
841
|
var l = n.type;
|
|
827
842
|
if (l == null || typeof l == "string")
|
|
828
843
|
return;
|
|
829
|
-
var
|
|
844
|
+
var u;
|
|
830
845
|
if (typeof l == "function")
|
|
831
|
-
|
|
846
|
+
u = l.propTypes;
|
|
832
847
|
else if (typeof l == "object" && (l.$$typeof === f || // Note: Memo only checks outer props here.
|
|
833
848
|
// Inner props are checked in the reconciler.
|
|
834
849
|
l.$$typeof === I))
|
|
835
|
-
|
|
850
|
+
u = l.propTypes;
|
|
836
851
|
else
|
|
837
852
|
return;
|
|
838
|
-
if (
|
|
853
|
+
if (u) {
|
|
839
854
|
var v = V(l);
|
|
840
|
-
b3(
|
|
855
|
+
b3(u, n.props, "prop", v, n);
|
|
841
856
|
} else if (l.PropTypes !== void 0 && !y1) {
|
|
842
857
|
y1 = !0;
|
|
843
858
|
var C = V(l);
|
|
@@ -848,8 +863,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
848
863
|
}
|
|
849
864
|
function k3(n) {
|
|
850
865
|
{
|
|
851
|
-
for (var l = Object.keys(n.props),
|
|
852
|
-
var v = l[
|
|
866
|
+
for (var l = Object.keys(n.props), u = 0; u < l.length; u++) {
|
|
867
|
+
var v = l[u];
|
|
853
868
|
if (v !== "children" && v !== "key") {
|
|
854
869
|
X(n), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), X(null);
|
|
855
870
|
break;
|
|
@@ -859,18 +874,18 @@ Check the top-level render call using <` + a + ">.");
|
|
|
859
874
|
}
|
|
860
875
|
}
|
|
861
876
|
var s3 = {};
|
|
862
|
-
function o3(n, l,
|
|
877
|
+
function o3(n, l, u, v, C, b) {
|
|
863
878
|
{
|
|
864
879
|
var M = A(n);
|
|
865
880
|
if (!M) {
|
|
866
881
|
var x = "";
|
|
867
882
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
868
|
-
var D = B3(
|
|
883
|
+
var D = B3();
|
|
869
884
|
D ? x += D : x += Q1();
|
|
870
885
|
var E;
|
|
871
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);
|
|
872
887
|
}
|
|
873
|
-
var T = A3(n, l,
|
|
888
|
+
var T = A3(n, l, u, C, b);
|
|
874
889
|
if (T == null)
|
|
875
890
|
return T;
|
|
876
891
|
if (M) {
|
|
@@ -903,45 +918,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
903
918
|
return n === r ? k3(T) : V3(T), T;
|
|
904
919
|
}
|
|
905
920
|
}
|
|
906
|
-
function U3(n, l,
|
|
907
|
-
return o3(n, l,
|
|
921
|
+
function U3(n, l, u) {
|
|
922
|
+
return o3(n, l, u, !0);
|
|
908
923
|
}
|
|
909
|
-
function F3(n, l,
|
|
910
|
-
return o3(n, l,
|
|
924
|
+
function F3(n, l, u) {
|
|
925
|
+
return o3(n, l, u, !1);
|
|
911
926
|
}
|
|
912
927
|
var W3 = F3, H3 = U3;
|
|
913
|
-
|
|
914
|
-
}()),
|
|
915
|
-
}
|
|
916
|
-
var i1 = {};
|
|
917
|
-
/**
|
|
918
|
-
* @license React
|
|
919
|
-
* react-jsx-runtime.production.min.js
|
|
920
|
-
*
|
|
921
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
922
|
-
*
|
|
923
|
-
* This source code is licensed under the MIT license found in the
|
|
924
|
-
* LICENSE file in the root directory of this source tree.
|
|
925
|
-
*/
|
|
926
|
-
var l3;
|
|
927
|
-
function P2() {
|
|
928
|
-
if (l3)
|
|
929
|
-
return i1;
|
|
930
|
-
l3 = 1;
|
|
931
|
-
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, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
932
|
-
function i(h, f, w) {
|
|
933
|
-
var d, I = {}, $ = null, U = null;
|
|
934
|
-
w !== void 0 && ($ = "" + w), f.key !== void 0 && ($ = "" + f.key), f.ref !== void 0 && (U = f.ref);
|
|
935
|
-
for (d in f)
|
|
936
|
-
r.call(f, d) && !u.hasOwnProperty(d) && (I[d] = f[d]);
|
|
937
|
-
if (h && h.defaultProps)
|
|
938
|
-
for (d in f = h.defaultProps, f)
|
|
939
|
-
I[d] === void 0 && (I[d] = f[d]);
|
|
940
|
-
return { $$typeof: e, type: h, key: $, ref: U, props: I, _owner: c.current };
|
|
941
|
-
}
|
|
942
|
-
return i1.Fragment = o, i1.jsx = i, i1.jsxs = i, i1;
|
|
928
|
+
i1.Fragment = r, i1.jsx = W3, i1.jsxs = H3;
|
|
929
|
+
}()), i1;
|
|
943
930
|
}
|
|
944
|
-
process.env.NODE_ENV === "production" ? P1.exports =
|
|
931
|
+
process.env.NODE_ENV === "production" ? P1.exports = L2() : P1.exports = P2();
|
|
945
932
|
var s = P1.exports;
|
|
946
933
|
const $2 = "_mwfit_ppa3l_1", D2 = {
|
|
947
934
|
mwfit: $2
|
|
@@ -975,7 +962,7 @@ function V2(t, e) {
|
|
|
975
962
|
sessionStorage.setItem(t, e);
|
|
976
963
|
}
|
|
977
964
|
const k2 = ({ children: t }) => {
|
|
978
|
-
const [e, o] = W(), r = C2(), c = S2(),
|
|
965
|
+
const [e, o] = W(), r = C2(), c = S2(), a = b2(), i = T2(), h = a2(), f = I2(), w = y2(), d = R2(), I = u1(null), [$, U] = W(), O = u1({}), z = c1(
|
|
979
966
|
async (y) => {
|
|
980
967
|
try {
|
|
981
968
|
const j = await L1.get(`${y}/ui/joinroom?token=${e}`);
|
|
@@ -990,9 +977,9 @@ const k2 = ({ children: t }) => {
|
|
|
990
977
|
window.location.href = w ? `${y}&Code=${w}` : y;
|
|
991
978
|
}, [h.gatewayAppPath, c, f, w]), P = c1(
|
|
992
979
|
(y, j) => {
|
|
993
|
-
I.current && r && I.current.send(JSON.stringify({ type: y, clientId:
|
|
980
|
+
I.current && r && I.current.send(JSON.stringify({ type: y, clientId: a, content: j }));
|
|
994
981
|
},
|
|
995
|
-
[r,
|
|
982
|
+
[r, a]
|
|
996
983
|
), L = (y, j) => {
|
|
997
984
|
P(y, { value: j });
|
|
998
985
|
}, x1 = c1(
|
|
@@ -1083,8 +1070,7 @@ const k2 = ({ children: t }) => {
|
|
|
1083
1070
|
console.error(G);
|
|
1084
1071
|
}
|
|
1085
1072
|
});
|
|
1086
|
-
} else
|
|
1087
|
-
R.type.startsWith("/room/") ? m.dispatch(e1.setRoomState(R)) : R.type.startsWith("/device/") && m.dispatch(N.setDeviceState(R));
|
|
1073
|
+
} else R.type.startsWith("/room/") ? m.dispatch(e1.setRoomState(R)) : R.type.startsWith("/device/") && m.dispatch(N.setDeviceState(R));
|
|
1088
1074
|
} catch (R) {
|
|
1089
1075
|
console.log(R);
|
|
1090
1076
|
}
|
|
@@ -1095,8 +1081,8 @@ const k2 = ({ children: t }) => {
|
|
|
1095
1081
|
I.current && I.current.close(), I.current = null;
|
|
1096
1082
|
};
|
|
1097
1083
|
}, [h.apiPath, z, e, $, d]), t1(() => {
|
|
1098
|
-
!c || !r || (console.log("clientId: ",
|
|
1099
|
-
}, [c,
|
|
1084
|
+
!c || !r || (console.log("clientId: ", a), a && (console.log("requesting status from room: ", c), P(`/room/${c}/status`, null)));
|
|
1085
|
+
}, [c, a, r, P]), /* @__PURE__ */ s.jsx(
|
|
1100
1086
|
w3.Provider,
|
|
1101
1087
|
{
|
|
1102
1088
|
value: {
|
|
@@ -1119,17 +1105,17 @@ function U2({
|
|
|
1119
1105
|
onHold: o,
|
|
1120
1106
|
holdTimeMs: r = 500
|
|
1121
1107
|
}) {
|
|
1122
|
-
const c = u1(null),
|
|
1108
|
+
const c = u1(null), a = u1(!1);
|
|
1123
1109
|
function i() {
|
|
1124
|
-
|
|
1110
|
+
a.current = !0, t == null || t(), c.current = setTimeout(() => {
|
|
1125
1111
|
o == null || o(), c.current = null;
|
|
1126
1112
|
}, r);
|
|
1127
1113
|
}
|
|
1128
1114
|
function h() {
|
|
1129
|
-
|
|
1115
|
+
a.current = !1, e == null || e(), c.current && (clearTimeout(c.current), c.current = null);
|
|
1130
1116
|
}
|
|
1131
1117
|
function f() {
|
|
1132
|
-
|
|
1118
|
+
a.current && h();
|
|
1133
1119
|
}
|
|
1134
1120
|
return {
|
|
1135
1121
|
onPointerDown: i,
|
|
@@ -1139,7 +1125,7 @@ function U2({
|
|
|
1139
1125
|
}
|
|
1140
1126
|
function g(t, e) {
|
|
1141
1127
|
const { sendMessage: r } = S(), c = u1(null);
|
|
1142
|
-
function
|
|
1128
|
+
function a() {
|
|
1143
1129
|
r(`${t}/${e}`, { value: "pressed" }), c.current || (c.current = setInterval(() => {
|
|
1144
1130
|
r(`${t}/${e}`, { value: "held" });
|
|
1145
1131
|
}, 250));
|
|
@@ -1147,14 +1133,14 @@ function g(t, e) {
|
|
|
1147
1133
|
function i() {
|
|
1148
1134
|
c.current && (clearInterval(c.current), c.current = null), r(`${t}/${e}`, { value: "released" });
|
|
1149
1135
|
}
|
|
1150
|
-
return U2({ onPress:
|
|
1136
|
+
return U2({ onPress: a, onRelease: i });
|
|
1151
1137
|
}
|
|
1152
1138
|
function x3(t, e) {
|
|
1153
|
-
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"),
|
|
1139
|
+
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"), a = g(`${t}`, "volumeDown");
|
|
1154
1140
|
return e ? {
|
|
1155
1141
|
volumeState: e,
|
|
1156
1142
|
volumeUp: c,
|
|
1157
|
-
volumeDown:
|
|
1143
|
+
volumeDown: a,
|
|
1158
1144
|
setLevel: (d) => r(`${t}/level`, d),
|
|
1159
1145
|
muteToggle: () => o(`${t}/muteToggle`, null),
|
|
1160
1146
|
muteOn: () => o(`${t}/muteOn`, null),
|
|
@@ -1162,11 +1148,11 @@ function x3(t, e) {
|
|
|
1162
1148
|
} : void 0;
|
|
1163
1149
|
}
|
|
1164
1150
|
function Z6(t, e) {
|
|
1165
|
-
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"),
|
|
1151
|
+
const { sendMessage: o, sendSimpleMessage: r } = S(), c = g(`${t}`, "volumeUp"), a = g(`${t}`, "volumeDown");
|
|
1166
1152
|
return e ? {
|
|
1167
1153
|
volumeState: e,
|
|
1168
1154
|
volumeUp: c,
|
|
1169
|
-
volumeDown:
|
|
1155
|
+
volumeDown: a,
|
|
1170
1156
|
setLevel: (d) => r(`${t}/level`, d),
|
|
1171
1157
|
muteToggle: () => o(`${t}/muteToggle`, null),
|
|
1172
1158
|
muteOn: () => o(`${t}/muteOn`, null),
|
|
@@ -1197,8 +1183,7 @@ function W2(t) {
|
|
|
1197
1183
|
const { sendMessage: e } = S(), o = _(t), r = () => {
|
|
1198
1184
|
e(`/device/${t}/setDefaultChannelLevels`, null);
|
|
1199
1185
|
}, c = () => {
|
|
1200
|
-
if ((o == null ? void 0 : o.levelControls) === void 0)
|
|
1201
|
-
return;
|
|
1186
|
+
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
1202
1187
|
Object.keys(o == null ? void 0 : o.levelControls).forEach((h) => {
|
|
1203
1188
|
e(`/device/${t}/${h}/fullStatus`, null);
|
|
1204
1189
|
});
|
|
@@ -1206,7 +1191,7 @@ function W2(t) {
|
|
|
1206
1191
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: r, getFullStatus: c } : void 0;
|
|
1207
1192
|
}
|
|
1208
1193
|
function j6(t) {
|
|
1209
|
-
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), a = F2(t), i = W2(t);
|
|
1210
1195
|
if (e)
|
|
1211
1196
|
return {
|
|
1212
1197
|
avrState: e,
|
|
@@ -1214,7 +1199,7 @@ function j6(t) {
|
|
|
1214
1199
|
inputControl: r,
|
|
1215
1200
|
surroundSoundModes: c,
|
|
1216
1201
|
surroundChannels: i,
|
|
1217
|
-
mainVolumeControl:
|
|
1202
|
+
mainVolumeControl: a
|
|
1218
1203
|
};
|
|
1219
1204
|
}
|
|
1220
1205
|
const C6 = ({ className: t }) => {
|
|
@@ -1243,12 +1228,12 @@ function b6(t) {
|
|
|
1243
1228
|
return { endpointState: e };
|
|
1244
1229
|
}
|
|
1245
1230
|
function I6(t) {
|
|
1246
|
-
const e = `/device/${t}`, o = g(e, "chanUp"), r = g(e, "chanDown"), c = g(e, "lastChan"),
|
|
1247
|
-
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"), a = g(e, "guide"), i = g(e, "info"), h = g(e, "exit");
|
|
1232
|
+
return { channelUp: o, channelDown: r, lastChannel: c, guide: a, info: i, exit: h };
|
|
1248
1233
|
}
|
|
1249
1234
|
function y6(t) {
|
|
1250
|
-
const e = `/device/${t}`, o = g(e, "red"), r = g(e, "green"), c = g(e, "yellow"),
|
|
1251
|
-
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"), a = g(e, "blue");
|
|
1236
|
+
return { red: o, green: r, yellow: c, blue: a };
|
|
1252
1237
|
}
|
|
1253
1238
|
function R6(t) {
|
|
1254
1239
|
const e = _(t);
|
|
@@ -1263,8 +1248,8 @@ function E6(t) {
|
|
|
1263
1248
|
return e.deviceInfo || void 0;
|
|
1264
1249
|
}
|
|
1265
1250
|
function _6(t) {
|
|
1266
|
-
const e = `/device/${t}`, o = g(e, "up"), r = g(e, "down"), c = g(e, "left"),
|
|
1267
|
-
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"), a = g(e, "right"), i = g(e, "select"), h = g(e, "menu"), f = g(e, "exit");
|
|
1252
|
+
return { up: o, down: r, left: c, right: a, select: i, menu: h, exit: f };
|
|
1268
1253
|
}
|
|
1269
1254
|
function T6(t) {
|
|
1270
1255
|
const { sendMessage: e } = S();
|
|
@@ -1296,9 +1281,9 @@ function $6(t) {
|
|
|
1296
1281
|
return { state: e };
|
|
1297
1282
|
}
|
|
1298
1283
|
function D6(t) {
|
|
1299
|
-
const { sendMessage: e, sendSimpleMessage: o } = S(), r = _(t), c = j2(t),
|
|
1300
|
-
return
|
|
1301
|
-
levelState:
|
|
1284
|
+
const { sendMessage: e, sendSimpleMessage: o } = S(), r = _(t), c = j2(t), a = r || c;
|
|
1285
|
+
return a ? {
|
|
1286
|
+
levelState: a,
|
|
1302
1287
|
setLevel: (d, I) => o(`${d}/level`, I),
|
|
1303
1288
|
muteToggle: (d) => e(`${d}/muteToggle`, null),
|
|
1304
1289
|
muteOn: (d) => e(`${d}/muteOn`, null),
|
|
@@ -1324,8 +1309,8 @@ function O6(t) {
|
|
|
1324
1309
|
} };
|
|
1325
1310
|
}
|
|
1326
1311
|
function V6(t) {
|
|
1327
|
-
const e = `/device/${t}`, o = g(e, "num0"), r = g(e, "num1"), c = g(e, "num2"),
|
|
1328
|
-
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"), a = g(e, "num3"), i = g(e, "num4"), h = g(e, "num5"), f = g(e, "num6"), w = g(e, "num7"), d = g(e, "num8"), I = g(e, "num9"), $ = g(e, "numDash"), U = g(e, "numEnter");
|
|
1313
|
+
return { digit0: o, digit1: r, digit2: c, digit3: a, digit4: i, digit5: h, digit6: f, digit7: w, digit8: d, digit9: I, keypadAccessoryButton1: $, keypadAccessoryButton2: U };
|
|
1329
1314
|
}
|
|
1330
1315
|
function k6(t) {
|
|
1331
1316
|
const { sendMessage: e } = S(), o = _(t);
|
|
@@ -1395,10 +1380,10 @@ function Y6(t) {
|
|
|
1395
1380
|
}
|
|
1396
1381
|
function z6(t) {
|
|
1397
1382
|
const { sendMessage: e } = S(), o = D1(t);
|
|
1398
|
-
return o ? { techPasswordState: o, validatePassword: (
|
|
1399
|
-
e(`/room/${t}/validateTechPassword`, { password:
|
|
1400
|
-
}, setPassword: (
|
|
1401
|
-
e(`/room/${t}/setTechPassword`, { oldPassword:
|
|
1383
|
+
return o ? { techPasswordState: o, validatePassword: (a) => {
|
|
1384
|
+
e(`/room/${t}/validateTechPassword`, { password: a });
|
|
1385
|
+
}, setPassword: (a, i) => {
|
|
1386
|
+
e(`/room/${t}/setTechPassword`, { oldPassword: a, newPassword: i });
|
|
1402
1387
|
} } : void 0;
|
|
1403
1388
|
}
|
|
1404
1389
|
function J6(t) {
|
|
@@ -1415,8 +1400,8 @@ function X6(t) {
|
|
|
1415
1400
|
};
|
|
1416
1401
|
}
|
|
1417
1402
|
function Q6(t) {
|
|
1418
|
-
const e = `/device/${t}`, o = g(e, "play"), r = g(e, "pause"), c = g(e, "stop"),
|
|
1419
|
-
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"), a = g(e, "prevTrack"), i = g(e, "nextTrack"), h = g(e, "rewind"), f = g(e, "ffwd"), w = g(e, "record");
|
|
1404
|
+
return { play: o, pause: r, stop: c, prevTrack: a, nextTrack: i, rewind: h, fastForward: f, record: w };
|
|
1420
1405
|
}
|
|
1421
1406
|
function N6(t) {
|
|
1422
1407
|
const e = _(t), { sendMessage: o } = S();
|
|
@@ -1436,20 +1421,19 @@ function N6(t) {
|
|
|
1436
1421
|
}
|
|
1437
1422
|
function ee(t) {
|
|
1438
1423
|
const e = _(t), o = M3(t), r = $1(t);
|
|
1439
|
-
if (!e)
|
|
1440
|
-
|
|
1441
|
-
const c = (e.powerState || e.isWarming) && !e.isCooling, u = (!e.powerState || e.isCooling) && !e.isWarming;
|
|
1424
|
+
if (!e) return;
|
|
1425
|
+
const c = (e.powerState || e.isWarming) && !e.isCooling, a = (!e.powerState || e.isCooling) && !e.isWarming;
|
|
1442
1426
|
return {
|
|
1443
1427
|
displayState: e,
|
|
1444
1428
|
powerControl: o,
|
|
1445
1429
|
inputControl: r,
|
|
1446
|
-
powerFb: { powerOnFb: c, powerOffFb:
|
|
1430
|
+
powerFb: { powerOnFb: c, powerOffFb: a }
|
|
1447
1431
|
};
|
|
1448
1432
|
}
|
|
1449
1433
|
const te = ({ config: t }) => {
|
|
1450
1434
|
const { sendMessage: e } = S();
|
|
1451
1435
|
t1(() => {
|
|
1452
|
-
var r, c,
|
|
1436
|
+
var r, c, a;
|
|
1453
1437
|
if (!t)
|
|
1454
1438
|
return;
|
|
1455
1439
|
const o = [];
|
|
@@ -1463,7 +1447,7 @@ const te = ({ config: t }) => {
|
|
|
1463
1447
|
o.push(i);
|
|
1464
1448
|
}), t.environmentalDevices.forEach((i) => {
|
|
1465
1449
|
o.push(i.deviceKey);
|
|
1466
|
-
}), (
|
|
1450
|
+
}), (a = t.accessoryDeviceKeys) == null || a.forEach((i) => {
|
|
1467
1451
|
o.push(i);
|
|
1468
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((i) => {
|
|
1469
1453
|
o.push(i);
|
|
@@ -1476,11 +1460,11 @@ const te = ({ config: t }) => {
|
|
|
1476
1460
|
}, [t, e]);
|
|
1477
1461
|
};
|
|
1478
1462
|
function se(t, e) {
|
|
1479
|
-
const [o, r] = W(!1), [c,
|
|
1463
|
+
const [o, r] = W(!1), [c, a] = W(!1);
|
|
1480
1464
|
return d3(() => {
|
|
1481
1465
|
const { current: i } = t, h = () => {
|
|
1482
1466
|
const f = i && i.scrollHeight > i.clientHeight, w = i && i.scrollWidth > i.clientWidth;
|
|
1483
|
-
|
|
1467
|
+
a(f ?? !1), r(w ?? !1), e && e(f ?? !1, w ?? !1);
|
|
1484
1468
|
};
|
|
1485
1469
|
i && h();
|
|
1486
1470
|
}, [t, e]), { overflowHorizontal: o, overflowVertical: c };
|
|
@@ -1491,7 +1475,7 @@ function oe(t, e) {
|
|
|
1491
1475
|
}
|
|
1492
1476
|
function ne(t) {
|
|
1493
1477
|
var h, f;
|
|
1494
|
-
const [e, o] = W(((h = t == null ? void 0 : t.current) == null ? void 0 : h.scrollLeft) ?? 0), [r, c] = W(((f = t == null ? void 0 : t.current) == null ? void 0 : f.scrollTop) ?? 0),
|
|
1478
|
+
const [e, o] = W(((h = t == null ? void 0 : t.current) == null ? void 0 : h.scrollLeft) ?? 0), [r, c] = W(((f = t == null ? void 0 : t.current) == null ? void 0 : f.scrollTop) ?? 0), a = (w) => {
|
|
1495
1479
|
const { current: d } = t;
|
|
1496
1480
|
d && (console.log(d.scrollLeft), d.scrollLeft += w, console.log(d.scrollLeft));
|
|
1497
1481
|
}, i = (w) => {
|
|
@@ -1503,7 +1487,7 @@ function ne(t) {
|
|
|
1503
1487
|
o((w == null ? void 0 : w.scrollLeft) ?? 0), c((w == null ? void 0 : w.scrollTop) ?? 0);
|
|
1504
1488
|
};
|
|
1505
1489
|
w && d();
|
|
1506
|
-
}, [t]), { horizontalScrollPosition: e, verticalScrollPosition: r, scrollHorizontal:
|
|
1490
|
+
}, [t]), { horizontalScrollPosition: e, verticalScrollPosition: r, scrollHorizontal: a, scrollVertical: i };
|
|
1507
1491
|
}
|
|
1508
1492
|
function re() {
|
|
1509
1493
|
const { sendMessage: t } = S();
|
|
@@ -1520,15 +1504,15 @@ function ce() {
|
|
|
1520
1504
|
const [t, e] = W(), [o, r] = W();
|
|
1521
1505
|
function c() {
|
|
1522
1506
|
e((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
1523
|
-
const
|
|
1524
|
-
r(
|
|
1507
|
+
const a = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1508
|
+
r(a);
|
|
1525
1509
|
}
|
|
1526
1510
|
return t1(() => {
|
|
1527
1511
|
c();
|
|
1528
|
-
const
|
|
1512
|
+
const a = setInterval(() => {
|
|
1529
1513
|
c();
|
|
1530
1514
|
}, 1e3);
|
|
1531
|
-
return () => clearInterval(
|
|
1515
|
+
return () => clearInterval(a);
|
|
1532
1516
|
}, []), { date: t, time: o };
|
|
1533
1517
|
}
|
|
1534
1518
|
const le = () => {
|
|
@@ -1550,7 +1534,7 @@ const le = () => {
|
|
|
1550
1534
|
vert: o = !1,
|
|
1551
1535
|
className: r,
|
|
1552
1536
|
iconClassName: c = "",
|
|
1553
|
-
otherContentClassName:
|
|
1537
|
+
otherContentClassName: a = "",
|
|
1554
1538
|
disabled: i,
|
|
1555
1539
|
feedback: h,
|
|
1556
1540
|
feedbackClassName: f,
|
|
@@ -1585,7 +1569,7 @@ const le = () => {
|
|
|
1585
1569
|
disabled: i
|
|
1586
1570
|
}
|
|
1587
1571
|
),
|
|
1588
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
1572
|
+
a ? /* @__PURE__ */ s.jsx("div", { className: a, children: e }) : /* @__PURE__ */ s.jsx("div", { children: e })
|
|
1589
1573
|
]
|
|
1590
1574
|
}
|
|
1591
1575
|
);
|