@pepperdash/mobile-control-react-app-core 1.21.0-ibasic-volume.4 → 1.21.0-ibasic-volume.6
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 +342 -327
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/index.d.ts +1 -0
- package/dist/shared/hooks/index.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/index.d.ts +1 -0
- package/dist/shared/hooks/interfaces/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ var G = (e, t, o) => n2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
|
4
4
|
import c2, { AxiosError as r2 } from "axios";
|
|
5
5
|
import { useDispatch as l2, useSelector as i2, Provider as a2 } from "react-redux";
|
|
6
6
|
import { createSelector as w, createSlice as g1, combineReducers as u2, configureStore as d2 } from "@reduxjs/toolkit";
|
|
7
|
-
import x3, { createContext as
|
|
7
|
+
import x3, { createContext as v2, useState as H, useRef as h1, useCallback as a1, useEffect as n1, useContext as h2, useLayoutEffect as M3 } from "react";
|
|
8
8
|
import * as m3 from "lodash";
|
|
9
9
|
import { useNavigate as g2, useRouteError as f2, isRouteErrorResponse as p2 } from "react-router-dom";
|
|
10
|
-
const w2 = l2.withTypes(),
|
|
10
|
+
const w2 = l2.withTypes(), p = i2.withTypes(), j1 = (e) => e.appConfig, x2 = w(
|
|
11
11
|
j1,
|
|
12
12
|
(e) => e.config
|
|
13
13
|
), M2 = w(
|
|
@@ -19,15 +19,15 @@ const w2 = l2.withTypes(), f = i2.withTypes(), j1 = (e) => e.appConfig, x2 = w(
|
|
|
19
19
|
), Z2 = w(
|
|
20
20
|
j1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), j2 = () =>
|
|
22
|
+
), j2 = () => p(x2), V6 = () => p(M2), k6 = () => p(m2), U6 = () => p(Z2), Z3 = (e) => e.devices, j3 = w(
|
|
23
23
|
Z3,
|
|
24
24
|
(e) => e
|
|
25
25
|
), S2 = (e) => w(
|
|
26
26
|
Z3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
), W6 = () =>
|
|
29
|
-
function
|
|
30
|
-
return
|
|
28
|
+
), W6 = () => p(j3);
|
|
29
|
+
function _(e) {
|
|
30
|
+
return p(S2(e));
|
|
31
31
|
}
|
|
32
32
|
const L = (e) => e.rooms, C2 = (e) => w(
|
|
33
33
|
L,
|
|
@@ -47,19 +47,19 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
47
47
|
), E2 = (e) => w(
|
|
48
48
|
L,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
|
-
),
|
|
50
|
+
), T2 = (e) => w(
|
|
51
51
|
L,
|
|
52
52
|
(t) => {
|
|
53
53
|
var o, c;
|
|
54
54
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
|
|
55
55
|
}
|
|
56
|
-
),
|
|
56
|
+
), _2 = (e) => w(
|
|
57
57
|
L,
|
|
58
58
|
(t) => {
|
|
59
59
|
var o, c;
|
|
60
60
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.audioControlPointList : void 0;
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), P2 = (e) => w(
|
|
63
63
|
L,
|
|
64
64
|
(t) => {
|
|
65
65
|
var o, c;
|
|
@@ -80,8 +80,8 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
80
80
|
), $2 = (e) => w(
|
|
81
81
|
L,
|
|
82
82
|
(t) => {
|
|
83
|
-
var o, c, r, i, d, a,
|
|
84
|
-
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (d = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : d.sinkKey : ((x = (
|
|
83
|
+
var o, c, r, i, d, a, v, x;
|
|
84
|
+
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (d = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : d.sinkKey : ((x = (v = (a = t[e]) == null ? void 0 : a.configuration) == null ? void 0 : v.destinationList.defaultDisplay) == null ? void 0 : x.sinkKey) || "";
|
|
85
85
|
}
|
|
86
86
|
), A2 = (e) => w(
|
|
87
87
|
L,
|
|
@@ -147,21 +147,21 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function F6(e) {
|
|
150
|
-
return
|
|
150
|
+
return p(
|
|
151
151
|
C2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function H6() {
|
|
155
|
-
return
|
|
155
|
+
return p(b2);
|
|
156
156
|
}
|
|
157
157
|
function S1(e) {
|
|
158
|
-
return
|
|
158
|
+
return p(I2(e));
|
|
159
159
|
}
|
|
160
|
-
const K6 = S1, G6 = (e) =>
|
|
160
|
+
const K6 = S1, G6 = (e) => p(
|
|
161
161
|
R2(e)
|
|
162
|
-
), K2 = (e, t) =>
|
|
162
|
+
), K2 = (e, t) => p(
|
|
163
163
|
y2(e, t)
|
|
164
|
-
), G2 = (e) =>
|
|
164
|
+
), G2 = (e) => p(E2(e)) || void 0, q6 = (e) => p(T2(e)), Y6 = (e) => p(_2(e)), z6 = (e) => p(P2(e)), J6 = (e) => p(L2(e)), X6 = (e) => p(D2(e)), Q6 = (e) => p($2(e)), N6 = (e) => p(A2(e)), ee = (e) => p(B2(e)), te = (e) => p(O2(e)), se = (e) => p(V2(e)), oe = (e) => p(k2(e)), ne = (e) => p(U2(e)), ce = (e) => p(W2(e)), re = (e) => p((t) => H2(t, e)), le = (e) => p(F2(e)), J = (e) => e.runtimeConfig, q2 = w(
|
|
165
165
|
J,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
167
|
), Y2 = w(
|
|
@@ -191,7 +191,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
191
191
|
), t8 = w(
|
|
192
192
|
J,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
), S3 = () =>
|
|
194
|
+
), S3 = () => p(q2), s8 = () => p(Y2), o8 = () => p(z2), n8 = () => p(J2), c8 = () => p(X2), r8 = () => p(Q2), ie = () => p(N2), ae = () => p(e8), ue = () => p(t8), c1 = (e) => e.ui, W1 = (e) => w(
|
|
195
195
|
c1,
|
|
196
196
|
(t) => t.modalVisibility[e]
|
|
197
197
|
), l8 = (e) => w(
|
|
@@ -216,7 +216,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
216
216
|
), d8 = w(
|
|
217
217
|
c1,
|
|
218
218
|
(e) => e.theme
|
|
219
|
-
), de = () =>
|
|
219
|
+
), de = () => p(W1("showShutdownModal")), ve = () => p(W1("showIncomingCallModal")), he = (e) => p(W1(e)), ge = (e) => p(l8(e)), fe = (e, t) => p(i8(e, t)), v8 = () => p(a8), h8 = () => p(u8), pe = () => p(d8), g8 = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -275,9 +275,9 @@ const K6 = S1, G6 = (e) => f(
|
|
|
275
275
|
e.config = t.payload;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}), w8 = b3.actions, x8 = b3.reducer,
|
|
278
|
+
}), w8 = b3.actions, x8 = b3.reducer, v3 = {}, O1 = g1({
|
|
279
279
|
name: "devices",
|
|
280
|
-
initialState:
|
|
280
|
+
initialState: v3,
|
|
281
281
|
reducers: {
|
|
282
282
|
setDeviceState(e, t) {
|
|
283
283
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
@@ -286,15 +286,15 @@ const K6 = S1, G6 = (e) => f(
|
|
|
286
286
|
e[c] = d;
|
|
287
287
|
},
|
|
288
288
|
clearDevices() {
|
|
289
|
-
return
|
|
289
|
+
return v3;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}), N = {
|
|
293
|
-
setDeviceState:
|
|
294
|
-
clearDevices:
|
|
295
|
-
}, M8 =
|
|
293
|
+
setDeviceState: O1.actions.setDeviceState,
|
|
294
|
+
clearDevices: O1.actions.clearDevices
|
|
295
|
+
}, M8 = O1.reducer, h3 = {}, V1 = g1({
|
|
296
296
|
name: "rooms",
|
|
297
|
-
initialState:
|
|
297
|
+
initialState: h3,
|
|
298
298
|
reducers: {
|
|
299
299
|
setRoomState(e, t) {
|
|
300
300
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
@@ -303,13 +303,13 @@ const K6 = S1, G6 = (e) => f(
|
|
|
303
303
|
e[c] = d;
|
|
304
304
|
},
|
|
305
305
|
clearRooms() {
|
|
306
|
-
return
|
|
306
|
+
return h3;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}), e1 = {
|
|
310
|
-
setRoomState:
|
|
311
|
-
clearRooms:
|
|
312
|
-
}, m8 =
|
|
310
|
+
setRoomState: V1.actions.setRoomState,
|
|
311
|
+
clearRooms: V1.actions.clearRooms
|
|
312
|
+
}, m8 = V1.reducer, Z8 = {
|
|
313
313
|
apiVersion: "",
|
|
314
314
|
serverIsRunningOnProcessorHardware: !1,
|
|
315
315
|
websocket: {
|
|
@@ -376,18 +376,18 @@ const K6 = S1, G6 = (e) => f(
|
|
|
376
376
|
ui: f8
|
|
377
377
|
}), m = d2({
|
|
378
378
|
reducer: S8
|
|
379
|
-
}),
|
|
379
|
+
}), k1 = c2.create();
|
|
380
380
|
function C8() {
|
|
381
381
|
const e = w2();
|
|
382
382
|
return async () => {
|
|
383
383
|
try {
|
|
384
384
|
const t = location.pathname.split("/").filter((r) => r.length > 0);
|
|
385
385
|
t.length >= 5 ? t.length = 5 : t.length = 2;
|
|
386
|
-
const o = `/${t.join("/")}`, c = await
|
|
386
|
+
const o = `/${t.join("/")}`, c = await k1.get("/_local-config/_config.local.json", { baseURL: o });
|
|
387
387
|
if (c.status == 200 && c.data) {
|
|
388
388
|
const r = c.data.apiPath;
|
|
389
389
|
e(w8.setAppConfig(c.data));
|
|
390
|
-
const i = await
|
|
390
|
+
const i = await k1.get(`${r}/version`);
|
|
391
391
|
i.status == 200 && i.data && e(W.setRuntimeConfig(i.data));
|
|
392
392
|
}
|
|
393
393
|
} catch (t) {
|
|
@@ -411,11 +411,11 @@ function b8() {
|
|
|
411
411
|
if (g3) return u1;
|
|
412
412
|
g3 = 1;
|
|
413
413
|
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
414
|
-
function d(a,
|
|
414
|
+
function d(a, v, x) {
|
|
415
415
|
var g, R = {}, D = null, F = null;
|
|
416
|
-
x !== void 0 && (D = "" + x),
|
|
417
|
-
for (g in
|
|
418
|
-
if (a && a.defaultProps) for (g in
|
|
416
|
+
x !== void 0 && (D = "" + x), v.key !== void 0 && (D = "" + v.key), v.ref !== void 0 && (F = v.ref);
|
|
417
|
+
for (g in v) c.call(v, g) && !i.hasOwnProperty(g) && (R[g] = v[g]);
|
|
418
|
+
if (a && a.defaultProps) for (g in v = a.defaultProps, v) R[g] === void 0 && (R[g] = v[g]);
|
|
419
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;
|
|
@@ -433,7 +433,7 @@ var d1 = {};
|
|
|
433
433
|
var f3;
|
|
434
434
|
function I8() {
|
|
435
435
|
return f3 || (f3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
436
|
-
var e = x3, 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"),
|
|
436
|
+
var e = x3, 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"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = 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;
|
|
@@ -443,14 +443,14 @@ function I8() {
|
|
|
443
443
|
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
444
444
|
function A(n) {
|
|
445
445
|
{
|
|
446
|
-
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0),
|
|
447
|
-
u[
|
|
448
|
-
|
|
446
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
|
|
447
|
+
u[h - 1] = arguments[h];
|
|
448
|
+
b1("error", n, u);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function b1(n, l, u) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
453
|
+
var h = $.ReactDebugCurrentFrame, C = h.getStackAddendum();
|
|
454
454
|
C !== "" && (l += "%s", u = u.concat([C]));
|
|
455
455
|
var I = u.map(function(Z) {
|
|
456
456
|
return String(Z);
|
|
@@ -458,19 +458,19 @@ function I8() {
|
|
|
458
458
|
I.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, I);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var I1 = !1, y = !1, S = !1, f1 = !1, R1 = !1, Y;
|
|
462
462
|
Y = Symbol.for("react.module.reference");
|
|
463
463
|
function B(n) {
|
|
464
|
-
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i ||
|
|
464
|
+
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || R1 || n === r || n === x || n === g || f1 || n === F || I1 || y || S || typeof n == "object" && n !== null && (n.$$typeof === D || n.$$typeof === R || n.$$typeof === d || n.$$typeof === a || n.$$typeof === v || // 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
468
|
n.$$typeof === Y || n.getModuleId !== void 0));
|
|
469
469
|
}
|
|
470
470
|
function E(n, l, u) {
|
|
471
|
-
var
|
|
472
|
-
if (
|
|
473
|
-
return
|
|
471
|
+
var h = n.displayName;
|
|
472
|
+
if (h)
|
|
473
|
+
return h;
|
|
474
474
|
var C = l.displayName || l.name || "";
|
|
475
475
|
return C !== "" ? u + "(" + C + ")" : u;
|
|
476
476
|
}
|
|
@@ -506,11 +506,11 @@ function I8() {
|
|
|
506
506
|
case d:
|
|
507
507
|
var u = n;
|
|
508
508
|
return t1(u._context) + ".Provider";
|
|
509
|
-
case
|
|
509
|
+
case v:
|
|
510
510
|
return E(n, n.render, "ForwardRef");
|
|
511
511
|
case R:
|
|
512
|
-
var
|
|
513
|
-
return
|
|
512
|
+
var h = n.displayName || null;
|
|
513
|
+
return h !== null ? h : K(n.type) || "Memo";
|
|
514
514
|
case D: {
|
|
515
515
|
var C = n, I = C._payload, Z = C._init;
|
|
516
516
|
try {
|
|
@@ -526,7 +526,7 @@ function I8() {
|
|
|
526
526
|
function J1() {
|
|
527
527
|
}
|
|
528
528
|
J1.__reactDisabledLog = !0;
|
|
529
|
-
function
|
|
529
|
+
function T3() {
|
|
530
530
|
{
|
|
531
531
|
if (l1 === 0) {
|
|
532
532
|
F1 = console.log, H1 = console.info, K1 = console.warn, G1 = console.error, q1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
|
|
@@ -549,7 +549,7 @@ function I8() {
|
|
|
549
549
|
l1++;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function _3() {
|
|
553
553
|
{
|
|
554
554
|
if (l1--, l1 === 0) {
|
|
555
555
|
var n = {
|
|
@@ -584,39 +584,39 @@ function I8() {
|
|
|
584
584
|
l1 < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
var
|
|
587
|
+
var y1 = $.ReactCurrentDispatcher, E1;
|
|
588
588
|
function p1(n, l, u) {
|
|
589
589
|
{
|
|
590
|
-
if (
|
|
590
|
+
if (E1 === void 0)
|
|
591
591
|
try {
|
|
592
592
|
throw Error();
|
|
593
593
|
} catch (C) {
|
|
594
|
-
var
|
|
595
|
-
|
|
594
|
+
var h = C.stack.trim().match(/\n( *(at )?)/);
|
|
595
|
+
E1 = h && h[1] || "";
|
|
596
596
|
}
|
|
597
597
|
return `
|
|
598
|
-
` +
|
|
598
|
+
` + E1 + n;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
var
|
|
601
|
+
var T1 = !1, w1;
|
|
602
602
|
{
|
|
603
|
-
var
|
|
604
|
-
w1 = new
|
|
603
|
+
var P3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
604
|
+
w1 = new P3();
|
|
605
605
|
}
|
|
606
606
|
function X1(n, l) {
|
|
607
|
-
if (!n ||
|
|
607
|
+
if (!n || T1)
|
|
608
608
|
return "";
|
|
609
609
|
{
|
|
610
610
|
var u = w1.get(n);
|
|
611
611
|
if (u !== void 0)
|
|
612
612
|
return u;
|
|
613
613
|
}
|
|
614
|
-
var
|
|
615
|
-
|
|
614
|
+
var h;
|
|
615
|
+
T1 = !0;
|
|
616
616
|
var C = Error.prepareStackTrace;
|
|
617
617
|
Error.prepareStackTrace = void 0;
|
|
618
618
|
var I;
|
|
619
|
-
I =
|
|
619
|
+
I = y1.current, y1.current = null, T3();
|
|
620
620
|
try {
|
|
621
621
|
if (l) {
|
|
622
622
|
var Z = function() {
|
|
@@ -630,14 +630,14 @@ function I8() {
|
|
|
630
630
|
try {
|
|
631
631
|
Reflect.construct(Z, []);
|
|
632
632
|
} catch (V) {
|
|
633
|
-
|
|
633
|
+
h = V;
|
|
634
634
|
}
|
|
635
635
|
Reflect.construct(n, [], Z);
|
|
636
636
|
} else {
|
|
637
637
|
try {
|
|
638
638
|
Z.call();
|
|
639
639
|
} catch (V) {
|
|
640
|
-
|
|
640
|
+
h = V;
|
|
641
641
|
}
|
|
642
642
|
n.call(Z.prototype);
|
|
643
643
|
}
|
|
@@ -645,31 +645,31 @@ function I8() {
|
|
|
645
645
|
try {
|
|
646
646
|
throw Error();
|
|
647
647
|
} catch (V) {
|
|
648
|
-
|
|
648
|
+
h = V;
|
|
649
649
|
}
|
|
650
650
|
n();
|
|
651
651
|
}
|
|
652
652
|
} catch (V) {
|
|
653
|
-
if (V &&
|
|
653
|
+
if (V && h && typeof V.stack == "string") {
|
|
654
654
|
for (var M = V.stack.split(`
|
|
655
|
-
`), O =
|
|
656
|
-
`),
|
|
657
|
-
|
|
658
|
-
for (;
|
|
659
|
-
if (M[
|
|
660
|
-
if (
|
|
655
|
+
`), O = h.stack.split(`
|
|
656
|
+
`), T = M.length - 1, P = O.length - 1; T >= 1 && P >= 0 && M[T] !== O[P]; )
|
|
657
|
+
P--;
|
|
658
|
+
for (; T >= 1 && P >= 0; T--, P--)
|
|
659
|
+
if (M[T] !== O[P]) {
|
|
660
|
+
if (T !== 1 || P !== 1)
|
|
661
661
|
do
|
|
662
|
-
if (
|
|
662
|
+
if (T--, P--, P < 0 || M[T] !== O[P]) {
|
|
663
663
|
var U = `
|
|
664
|
-
` + M[
|
|
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;
|
|
666
666
|
}
|
|
667
|
-
while (
|
|
667
|
+
while (T >= 1 && P >= 0);
|
|
668
668
|
break;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
} finally {
|
|
672
|
-
|
|
672
|
+
T1 = !1, y1.current = I, _3(), Error.prepareStackTrace = C;
|
|
673
673
|
}
|
|
674
674
|
var o1 = n ? n.displayName || n.name : "", Q = o1 ? p1(o1) : "";
|
|
675
675
|
return typeof n == "function" && w1.set(n, Q), Q;
|
|
@@ -696,12 +696,12 @@ function I8() {
|
|
|
696
696
|
}
|
|
697
697
|
if (typeof n == "object")
|
|
698
698
|
switch (n.$$typeof) {
|
|
699
|
-
case
|
|
699
|
+
case v:
|
|
700
700
|
return L3(n.render);
|
|
701
701
|
case R:
|
|
702
702
|
return x1(n.type, l, u);
|
|
703
703
|
case D: {
|
|
704
|
-
var
|
|
704
|
+
var h = n, C = h._payload, I = h._init;
|
|
705
705
|
try {
|
|
706
706
|
return x1(I(C), l, u);
|
|
707
707
|
} catch {
|
|
@@ -718,7 +718,7 @@ function I8() {
|
|
|
718
718
|
} else
|
|
719
719
|
N1.setExtraStackFrame(null);
|
|
720
720
|
}
|
|
721
|
-
function $3(n, l, u,
|
|
721
|
+
function $3(n, l, u, h, C) {
|
|
722
722
|
{
|
|
723
723
|
var I = Function.call.bind(i1);
|
|
724
724
|
for (var Z in n)
|
|
@@ -726,14 +726,14 @@ function I8() {
|
|
|
726
726
|
var M = void 0;
|
|
727
727
|
try {
|
|
728
728
|
if (typeof n[Z] != "function") {
|
|
729
|
-
var O = Error((
|
|
729
|
+
var O = Error((h || "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
730
|
throw O.name = "Invariant Violation", O;
|
|
731
731
|
}
|
|
732
|
-
M = n[Z](l, Z,
|
|
733
|
-
} catch (
|
|
734
|
-
M =
|
|
732
|
+
M = n[Z](l, Z, h, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
733
|
+
} catch (T) {
|
|
734
|
+
M = T;
|
|
735
735
|
}
|
|
736
|
-
M && !(M instanceof Error) && (M1(C), 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).",
|
|
736
|
+
M && !(M instanceof Error) && (M1(C), 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).", h || "React class", u, Z, typeof M), M1(null)), M instanceof Error && !(M.message in Q1) && (Q1[M.message] = !0, M1(C), A("Failed %s type: %s", u, M.message), M1(null));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
@@ -808,7 +808,7 @@ function I8() {
|
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
var K3 = function(n, l, u,
|
|
811
|
+
var K3 = function(n, l, u, h, C, I, Z) {
|
|
812
812
|
var M = {
|
|
813
813
|
// This tag allows us to uniquely identify this as a React Element
|
|
814
814
|
$$typeof: t,
|
|
@@ -829,7 +829,7 @@ function I8() {
|
|
|
829
829
|
configurable: !1,
|
|
830
830
|
enumerable: !1,
|
|
831
831
|
writable: !1,
|
|
832
|
-
value:
|
|
832
|
+
value: h
|
|
833
833
|
}), Object.defineProperty(M, "_source", {
|
|
834
834
|
configurable: !1,
|
|
835
835
|
enumerable: !1,
|
|
@@ -837,22 +837,22 @@ function I8() {
|
|
|
837
837
|
value: C
|
|
838
838
|
}), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
|
|
839
839
|
};
|
|
840
|
-
function G3(n, l, u,
|
|
840
|
+
function G3(n, l, u, h, C) {
|
|
841
841
|
{
|
|
842
842
|
var I, Z = {}, M = null, O = null;
|
|
843
843
|
u !== void 0 && (t3(u), M = "" + u), U3(l) && (t3(l.key), M = "" + l.key), k3(l) && (O = l.ref, W3(l, C));
|
|
844
844
|
for (I in l)
|
|
845
845
|
i1.call(l, I) && !V3.hasOwnProperty(I) && (Z[I] = l[I]);
|
|
846
846
|
if (n && n.defaultProps) {
|
|
847
|
-
var
|
|
848
|
-
for (I in
|
|
849
|
-
Z[I] === void 0 && (Z[I] =
|
|
847
|
+
var T = n.defaultProps;
|
|
848
|
+
for (I in T)
|
|
849
|
+
Z[I] === void 0 && (Z[I] = T[I]);
|
|
850
850
|
}
|
|
851
851
|
if (M || O) {
|
|
852
|
-
var
|
|
853
|
-
M && F3(Z,
|
|
852
|
+
var P = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
853
|
+
M && F3(Z, P), O && H3(Z, P);
|
|
854
854
|
}
|
|
855
|
-
return K3(n, M, O, C,
|
|
855
|
+
return K3(n, M, O, C, h, s3.current, Z);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
var P1 = $.ReactCurrentOwner, c3 = $.ReactDebugCurrentFrame;
|
|
@@ -863,9 +863,9 @@ function I8() {
|
|
|
863
863
|
} else
|
|
864
864
|
c3.setExtraStackFrame(null);
|
|
865
865
|
}
|
|
866
|
-
var
|
|
867
|
-
|
|
868
|
-
function
|
|
866
|
+
var L1;
|
|
867
|
+
L1 = !1;
|
|
868
|
+
function D1(n) {
|
|
869
869
|
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
870
870
|
}
|
|
871
871
|
function r3() {
|
|
@@ -905,8 +905,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
905
905
|
if (l3[u])
|
|
906
906
|
return;
|
|
907
907
|
l3[u] = !0;
|
|
908
|
-
var
|
|
909
|
-
n && n._owner && n._owner !== P1.current && (
|
|
908
|
+
var h = "";
|
|
909
|
+
n && n._owner && n._owner !== P1.current && (h = " 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, h), s1(null);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
function a3(n, l) {
|
|
@@ -915,16 +915,16 @@ Check the top-level render call using <` + u + ">.");
|
|
|
915
915
|
return;
|
|
916
916
|
if (_1(n))
|
|
917
917
|
for (var u = 0; u < n.length; u++) {
|
|
918
|
-
var
|
|
919
|
-
|
|
918
|
+
var h = n[u];
|
|
919
|
+
D1(h) && i3(h, l);
|
|
920
920
|
}
|
|
921
|
-
else if (
|
|
921
|
+
else if (D1(n))
|
|
922
922
|
n._store && (n._store.validated = !0);
|
|
923
923
|
else if (n) {
|
|
924
924
|
var C = r1(n);
|
|
925
925
|
if (typeof C == "function" && C !== n.entries)
|
|
926
926
|
for (var I = C.call(n), Z; !(Z = I.next()).done; )
|
|
927
|
-
|
|
927
|
+
D1(Z.value) && i3(Z.value, l);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
@@ -936,17 +936,17 @@ Check the top-level render call using <` + u + ">.");
|
|
|
936
936
|
var u;
|
|
937
937
|
if (typeof l == "function")
|
|
938
938
|
u = l.propTypes;
|
|
939
|
-
else if (typeof l == "object" && (l.$$typeof ===
|
|
939
|
+
else if (typeof l == "object" && (l.$$typeof === v || // Note: Memo only checks outer props here.
|
|
940
940
|
// Inner props are checked in the reconciler.
|
|
941
941
|
l.$$typeof === R))
|
|
942
942
|
u = l.propTypes;
|
|
943
943
|
else
|
|
944
944
|
return;
|
|
945
945
|
if (u) {
|
|
946
|
-
var
|
|
947
|
-
$3(u, n.props, "prop",
|
|
948
|
-
} else if (l.PropTypes !== void 0 && !
|
|
949
|
-
|
|
946
|
+
var h = K(l);
|
|
947
|
+
$3(u, n.props, "prop", h, n);
|
|
948
|
+
} else if (l.PropTypes !== void 0 && !L1) {
|
|
949
|
+
L1 = !0;
|
|
950
950
|
var C = K(l);
|
|
951
951
|
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
|
|
952
952
|
}
|
|
@@ -956,9 +956,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
956
956
|
function J3(n) {
|
|
957
957
|
{
|
|
958
958
|
for (var l = Object.keys(n.props), u = 0; u < l.length; u++) {
|
|
959
|
-
var
|
|
960
|
-
if (
|
|
961
|
-
s1(n), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
959
|
+
var h = l[u];
|
|
960
|
+
if (h !== "children" && h !== "key") {
|
|
961
|
+
s1(n), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), s1(null);
|
|
962
962
|
break;
|
|
963
963
|
}
|
|
964
964
|
}
|
|
@@ -966,7 +966,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
var u3 = {};
|
|
969
|
-
function d3(n, l, u,
|
|
969
|
+
function d3(n, l, u, h, C, I) {
|
|
970
970
|
{
|
|
971
971
|
var Z = B(n);
|
|
972
972
|
if (!Z) {
|
|
@@ -974,16 +974,16 @@ Check the top-level render call using <` + u + ">.");
|
|
|
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
975
|
var O = q3();
|
|
976
976
|
O ? M += O : M += r3();
|
|
977
|
-
var
|
|
978
|
-
n === null ?
|
|
977
|
+
var T;
|
|
978
|
+
n === null ? T = "null" : _1(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
|
-
var
|
|
981
|
-
if (
|
|
982
|
-
return
|
|
980
|
+
var P = G3(n, l, u, C, I);
|
|
981
|
+
if (P == null)
|
|
982
|
+
return P;
|
|
983
983
|
if (Z) {
|
|
984
984
|
var U = l.children;
|
|
985
985
|
if (U !== void 0)
|
|
986
|
-
if (
|
|
986
|
+
if (h)
|
|
987
987
|
if (_1(U)) {
|
|
988
988
|
for (var o1 = 0; o1 < U.length; o1++)
|
|
989
989
|
a3(U[o1], n);
|
|
@@ -996,18 +996,18 @@ Check the top-level render call using <` + u + ">.");
|
|
|
996
996
|
if (i1.call(l, "key")) {
|
|
997
997
|
var Q = K(n), V = Object.keys(l).filter(function(s2) {
|
|
998
998
|
return s2 !== "key";
|
|
999
|
-
}),
|
|
1000
|
-
if (!u3[Q +
|
|
999
|
+
}), $1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1000
|
+
if (!u3[Q + $1]) {
|
|
1001
1001
|
var t2 = 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} />`,
|
|
1007
|
+
<%s key={someKey} {...props} />`, $1, Q, t2, Q), u3[Q + $1] = !0;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
return n === c ? J3(
|
|
1010
|
+
return n === c ? J3(P) : z3(P), P;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
function X3(n, l, u) {
|
|
@@ -1027,8 +1027,8 @@ function R8() {
|
|
|
1027
1027
|
var s = R8();
|
|
1028
1028
|
const y8 = "_mwfit_ppa3l_1", E8 = {
|
|
1029
1029
|
mwfit: y8
|
|
1030
|
-
},
|
|
1031
|
-
const { reconnect: e } = b(), t = S3(), o =
|
|
1030
|
+
}, T8 = () => {
|
|
1031
|
+
const { reconnect: e } = b(), t = S3(), o = v8(), c = h8();
|
|
1032
1032
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(
|
|
1033
1033
|
"div",
|
|
1034
1034
|
{
|
|
@@ -1041,7 +1041,7 @@ const y8 = "_mwfit_ppa3l_1", E8 = {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
) });
|
|
1043
1043
|
};
|
|
1044
|
-
class
|
|
1044
|
+
class _8 {
|
|
1045
1045
|
constructor() {
|
|
1046
1046
|
G(this, "uuid", "current-uuid");
|
|
1047
1047
|
G(this, "roomKey", "current-room-key");
|
|
@@ -1049,24 +1049,24 @@ class P8 {
|
|
|
1049
1049
|
G(this, "expiry", "current-uuid-expires");
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
const w3 = new
|
|
1052
|
+
const w3 = new _8(), R3 = v2({
|
|
1053
1053
|
sendMessage: () => null,
|
|
1054
1054
|
sendSimpleMessage: () => null,
|
|
1055
1055
|
addEventHandler: () => null,
|
|
1056
1056
|
removeEventHandler: () => null,
|
|
1057
1057
|
reconnect: () => null
|
|
1058
1058
|
});
|
|
1059
|
-
function
|
|
1059
|
+
function P8(e) {
|
|
1060
1060
|
return sessionStorage.getItem(e) || "";
|
|
1061
1061
|
}
|
|
1062
1062
|
function L8(e, t) {
|
|
1063
1063
|
sessionStorage.setItem(e, t);
|
|
1064
1064
|
}
|
|
1065
1065
|
const D8 = ({ children: e }) => {
|
|
1066
|
-
const [t, o] = H(), c = S3(), r = s8(), i = o8(), d = C8(), a = j2(),
|
|
1066
|
+
const [t, o] = H(), c = S3(), r = s8(), i = o8(), d = C8(), a = j2(), v = n8(), x = c8(), g = r8(), R = h1(null), [D, F] = H(), k = h1({}), X = a1(
|
|
1067
1067
|
async (y) => {
|
|
1068
1068
|
try {
|
|
1069
|
-
const S = await
|
|
1069
|
+
const S = await k1.get(`${y}/ui/joinroom?token=${t}`);
|
|
1070
1070
|
return S.status === 200 && S.data ? (m.dispatch(W.setRoomData(S.data)), !0) : !1;
|
|
1071
1071
|
} catch (S) {
|
|
1072
1072
|
return console.log(S), g ? !0 : S instanceof r2 && S.response && S.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", S), S instanceof Error ? m.dispatch(q.setErrorMessage(S.message)) : m.dispatch(q.setErrorMessage("Error getting room data")), !1);
|
|
@@ -1074,26 +1074,26 @@ const D8 = ({ children: e }) => {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
[t, g]
|
|
1076
1076
|
), r1 = a1(() => {
|
|
1077
|
-
const y = `${a.gatewayAppPath}?uuid=${
|
|
1077
|
+
const y = `${a.gatewayAppPath}?uuid=${v}&roomKey=${r}`;
|
|
1078
1078
|
window.location.href = x ? `${y}&Code=${x}` : y;
|
|
1079
|
-
}, [a.gatewayAppPath, r,
|
|
1079
|
+
}, [a.gatewayAppPath, r, v, x]), $ = a1(
|
|
1080
1080
|
(y, S) => {
|
|
1081
1081
|
R.current && c && R.current.send(JSON.stringify({ type: y, clientId: i, content: S }));
|
|
1082
1082
|
},
|
|
1083
1083
|
[c, i]
|
|
1084
1084
|
), A = (y, S) => {
|
|
1085
1085
|
$(y, { value: S });
|
|
1086
|
-
},
|
|
1086
|
+
}, b1 = a1(
|
|
1087
1087
|
(y, S, f1) => {
|
|
1088
1088
|
k.current[y] || (k.current[y] = {}), k.current[y][S] = f1, console.log("event handler added", y, S);
|
|
1089
1089
|
},
|
|
1090
1090
|
[]
|
|
1091
|
-
),
|
|
1091
|
+
), I1 = a1((y, S) => {
|
|
1092
1092
|
k.current[y] && (delete k.current[y][S], console.log("event handler removed", y, S));
|
|
1093
1093
|
}, []);
|
|
1094
1094
|
return n1(() => {
|
|
1095
1095
|
let S = new URLSearchParams(window.location.search).get("token");
|
|
1096
|
-
S ? (console.log("saving token: ", S), L8(w3.uuid, S)) : (S =
|
|
1096
|
+
S ? (console.log("saving token: ", S), L8(w3.uuid, S)) : (S = P8(w3.uuid), console.log("loading token: ", S)), o(S), d();
|
|
1097
1097
|
}, []), console.log("connection dependencies", a.apiPath, X, t, D, g), n1(() => {
|
|
1098
1098
|
async function y() {
|
|
1099
1099
|
if (console.log("Attempting to join websocket..."), !a.apiPath || D || !t || !await X(a.apiPath)) return;
|
|
@@ -1102,7 +1102,7 @@ const D8 = ({ children: e }) => {
|
|
|
1102
1102
|
return;
|
|
1103
1103
|
}
|
|
1104
1104
|
console.log("connecting to websocket");
|
|
1105
|
-
const
|
|
1105
|
+
const R1 = `${a.apiPath.replace("http", "ws")}/ui/join/${t}`, Y = new WebSocket(R1);
|
|
1106
1106
|
R.current = Y, Y.onopen = (B) => {
|
|
1107
1107
|
console.log("connected", B.type, B.target), m.dispatch(W.setWebsocketIsConnected(!0));
|
|
1108
1108
|
}, Y.onerror = (B) => {
|
|
@@ -1196,16 +1196,16 @@ const D8 = ({ children: e }) => {
|
|
|
1196
1196
|
value: {
|
|
1197
1197
|
sendMessage: $,
|
|
1198
1198
|
sendSimpleMessage: A,
|
|
1199
|
-
addEventHandler:
|
|
1200
|
-
removeEventHandler:
|
|
1199
|
+
addEventHandler: b1,
|
|
1200
|
+
removeEventHandler: I1,
|
|
1201
1201
|
reconnect: r1
|
|
1202
1202
|
},
|
|
1203
|
-
children: c ? e : /* @__PURE__ */ s.jsx(
|
|
1203
|
+
children: c ? e : /* @__PURE__ */ s.jsx(T8, {})
|
|
1204
1204
|
}
|
|
1205
1205
|
);
|
|
1206
1206
|
}, we = ({ children: e }) => /* @__PURE__ */ s.jsx(a2, { store: m, children: /* @__PURE__ */ s.jsx(D8, { children: e }) });
|
|
1207
1207
|
function b() {
|
|
1208
|
-
return
|
|
1208
|
+
return h2(R3);
|
|
1209
1209
|
}
|
|
1210
1210
|
function $8({
|
|
1211
1211
|
onPress: e,
|
|
@@ -1213,7 +1213,7 @@ function $8({
|
|
|
1213
1213
|
onHold: o,
|
|
1214
1214
|
holdTimeMs: c = 500
|
|
1215
1215
|
}) {
|
|
1216
|
-
const r =
|
|
1216
|
+
const r = h1(null), i = h1(!1);
|
|
1217
1217
|
function d() {
|
|
1218
1218
|
i.current = !0, e == null || e(), r.current = setTimeout(() => {
|
|
1219
1219
|
o == null || o(), r.current = null;
|
|
@@ -1222,17 +1222,17 @@ function $8({
|
|
|
1222
1222
|
function a() {
|
|
1223
1223
|
i.current = !1, t == null || t(), r.current && (clearTimeout(r.current), r.current = null);
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function v() {
|
|
1226
1226
|
i.current && a();
|
|
1227
1227
|
}
|
|
1228
1228
|
return {
|
|
1229
1229
|
onPointerDown: d,
|
|
1230
1230
|
onPointerUp: a,
|
|
1231
|
-
onPointerLeave:
|
|
1231
|
+
onPointerLeave: v
|
|
1232
1232
|
};
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1235
|
-
const { sendMessage: c } = b(), r =
|
|
1234
|
+
function f(e, t) {
|
|
1235
|
+
const { sendMessage: c } = b(), r = h1(null);
|
|
1236
1236
|
function i() {
|
|
1237
1237
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1238
1238
|
c(`${e}/${t}`, { value: "held" });
|
|
@@ -1243,8 +1243,16 @@ function p(e, t) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
return $8({ onPress: i, onRelease: d });
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
const { sendMessage: t } = b(), o =
|
|
1246
|
+
function C1(e) {
|
|
1247
|
+
const { sendMessage: t } = b(), o = f(`${e}`, "volumeUp"), c = f(`${e}`, "volumeDown");
|
|
1248
|
+
return {
|
|
1249
|
+
volumeUp: o,
|
|
1250
|
+
volumeDown: c,
|
|
1251
|
+
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
function xe(e) {
|
|
1255
|
+
const { sendMessage: t } = b(), o = f(`${e}`, "volumeUp"), c = f(`${e}`, "volumeDown");
|
|
1248
1256
|
return {
|
|
1249
1257
|
volumeUp: o,
|
|
1250
1258
|
volumeDown: c,
|
|
@@ -1252,7 +1260,7 @@ function W1(e) {
|
|
|
1252
1260
|
};
|
|
1253
1261
|
}
|
|
1254
1262
|
function y3(e, t) {
|
|
1255
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1263
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = C1(e);
|
|
1256
1264
|
if (!r) {
|
|
1257
1265
|
console.log("baseVolume is undefined");
|
|
1258
1266
|
return;
|
|
@@ -1264,13 +1272,13 @@ function y3(e, t) {
|
|
|
1264
1272
|
return {
|
|
1265
1273
|
...r,
|
|
1266
1274
|
volumeState: t,
|
|
1267
|
-
setLevel: (
|
|
1275
|
+
setLevel: (v) => c(`${e}/level`, v),
|
|
1268
1276
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1269
1277
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1270
1278
|
};
|
|
1271
1279
|
}
|
|
1272
|
-
function
|
|
1273
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1280
|
+
function Me(e, t) {
|
|
1281
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = C1(e);
|
|
1274
1282
|
if (!r) {
|
|
1275
1283
|
console.log("baseVolume is undefined");
|
|
1276
1284
|
return;
|
|
@@ -1282,13 +1290,13 @@ function xe(e, t) {
|
|
|
1282
1290
|
return {
|
|
1283
1291
|
...r,
|
|
1284
1292
|
volumeState: t,
|
|
1285
|
-
setLevel: (
|
|
1293
|
+
setLevel: (v) => c(`${e}/level`, v),
|
|
1286
1294
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1287
1295
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1288
1296
|
};
|
|
1289
1297
|
}
|
|
1290
1298
|
function A8(e) {
|
|
1291
|
-
const t =
|
|
1299
|
+
const t = _(e), o = `/device/${e}`;
|
|
1292
1300
|
return y3(o, t == null ? void 0 : t.volume);
|
|
1293
1301
|
}
|
|
1294
1302
|
function E3(e) {
|
|
@@ -1301,14 +1309,14 @@ function E3(e) {
|
|
|
1301
1309
|
t(`/device/${e}/powerToggle`, null);
|
|
1302
1310
|
} };
|
|
1303
1311
|
}
|
|
1304
|
-
function
|
|
1305
|
-
const { sendMessage: t } = b(), o =
|
|
1312
|
+
function U1(e) {
|
|
1313
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1306
1314
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1307
1315
|
t(`/device/${e}/${r}`, null);
|
|
1308
1316
|
} } : void 0;
|
|
1309
1317
|
}
|
|
1310
1318
|
function B8(e) {
|
|
1311
|
-
const { sendMessage: t } = b(), o =
|
|
1319
|
+
const { sendMessage: t } = b(), o = _(e), c = () => {
|
|
1312
1320
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1313
1321
|
}, r = () => {
|
|
1314
1322
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1318,8 +1326,8 @@ function B8(e) {
|
|
|
1318
1326
|
};
|
|
1319
1327
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1320
1328
|
}
|
|
1321
|
-
function
|
|
1322
|
-
const t =
|
|
1329
|
+
function me(e) {
|
|
1330
|
+
const t = _(e), o = E3(e), c = U1(e), r = U1(e), i = A8(e), d = B8(e);
|
|
1323
1331
|
if (t)
|
|
1324
1332
|
return {
|
|
1325
1333
|
avrState: t,
|
|
@@ -1330,7 +1338,7 @@ function Me(e) {
|
|
|
1330
1338
|
mainVolumeControl: i
|
|
1331
1339
|
};
|
|
1332
1340
|
}
|
|
1333
|
-
const
|
|
1341
|
+
const Ze = ({ className: e }) => {
|
|
1334
1342
|
const [t, o] = H();
|
|
1335
1343
|
return n1(() => {
|
|
1336
1344
|
setInterval(() => {
|
|
@@ -1342,74 +1350,74 @@ const me = ({ className: e }) => {
|
|
|
1342
1350
|
" new change"
|
|
1343
1351
|
] });
|
|
1344
1352
|
};
|
|
1345
|
-
function
|
|
1346
|
-
const { sendMessage: t } = b(), o =
|
|
1353
|
+
function je(e) {
|
|
1354
|
+
const { sendMessage: t } = b(), o = _(e), c = `/device/${e}`;
|
|
1347
1355
|
return o ? { state: o, recallPreset: (d, a) => {
|
|
1348
1356
|
t(`${c}/presets/recall`, { deviceKey: d, preset: a });
|
|
1349
1357
|
}, savePresets: (d) => {
|
|
1350
1358
|
t(`${c}/presets/save`, d);
|
|
1351
1359
|
} } : void 0;
|
|
1352
1360
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const t =
|
|
1361
|
+
function Se(e) {
|
|
1362
|
+
const t = _(e);
|
|
1355
1363
|
if (t)
|
|
1356
1364
|
return { endpointState: t };
|
|
1357
1365
|
}
|
|
1358
|
-
function
|
|
1359
|
-
const t = `/device/${e}`, o =
|
|
1366
|
+
function Ce(e) {
|
|
1367
|
+
const t = `/device/${e}`, o = f(t, "chanUp"), c = f(t, "chanDown"), r = f(t, "lastChan"), i = f(t, "guide"), d = f(t, "info"), a = f(t, "exit");
|
|
1360
1368
|
return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: d, exit: a };
|
|
1361
1369
|
}
|
|
1362
|
-
function
|
|
1363
|
-
const t = `/device/${e}`, o =
|
|
1370
|
+
function be(e) {
|
|
1371
|
+
const t = `/device/${e}`, o = f(t, "red"), c = f(t, "green"), r = f(t, "yellow"), i = f(t, "blue");
|
|
1364
1372
|
return { red: o, green: c, yellow: r, blue: i };
|
|
1365
1373
|
}
|
|
1366
|
-
function
|
|
1367
|
-
const t =
|
|
1374
|
+
function Ie(e) {
|
|
1375
|
+
const t = _(e);
|
|
1368
1376
|
if (t)
|
|
1369
1377
|
return {
|
|
1370
1378
|
communicationMonitorState: t
|
|
1371
1379
|
};
|
|
1372
1380
|
}
|
|
1373
|
-
function
|
|
1374
|
-
const t =
|
|
1381
|
+
function Re(e) {
|
|
1382
|
+
const t = _(e);
|
|
1375
1383
|
if (t)
|
|
1376
1384
|
return t.deviceInfo || void 0;
|
|
1377
1385
|
}
|
|
1378
|
-
function Re(e) {
|
|
1379
|
-
const t = `/device/${e}`, o = p(t, "up"), c = p(t, "down"), r = p(t, "left"), i = p(t, "right"), d = p(t, "select"), a = p(t, "menu"), h = p(t, "exit");
|
|
1380
|
-
return { up: o, down: c, left: r, right: i, select: d, menu: a, exit: h };
|
|
1381
|
-
}
|
|
1382
1386
|
function ye(e) {
|
|
1387
|
+
const t = `/device/${e}`, o = f(t, "up"), c = f(t, "down"), r = f(t, "left"), i = f(t, "right"), d = f(t, "select"), a = f(t, "menu"), v = f(t, "exit");
|
|
1388
|
+
return { up: o, down: c, left: r, right: i, select: d, menu: a, exit: v };
|
|
1389
|
+
}
|
|
1390
|
+
function Ee(e) {
|
|
1383
1391
|
const { sendMessage: t } = b();
|
|
1384
1392
|
return { recallPreset: (c) => {
|
|
1385
1393
|
t(`/device/${e}/recallPreset`, c);
|
|
1386
1394
|
} };
|
|
1387
1395
|
}
|
|
1388
|
-
function
|
|
1389
|
-
const t = `/device/${e}`, o =
|
|
1396
|
+
function Te(e) {
|
|
1397
|
+
const t = `/device/${e}`, o = f(t, "dvrList"), c = f(t, "record");
|
|
1390
1398
|
return { dvrList: o, record: c };
|
|
1391
1399
|
}
|
|
1392
1400
|
function _e(e) {
|
|
1393
|
-
const { sendMessage: t } = b(), o =
|
|
1401
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1394
1402
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1395
1403
|
t(`/device/${e}/setAutoMode`, null);
|
|
1396
1404
|
}, setManualMode: () => {
|
|
1397
1405
|
t(`/device/${e}/setManualMode`, null);
|
|
1398
1406
|
}, toggleMode: () => {
|
|
1399
1407
|
t(`/device/${e}/toggleMode`, null);
|
|
1400
|
-
}, togglePartitionState: (
|
|
1401
|
-
t(`/device/${e}/togglePartitionState`,
|
|
1402
|
-
}, setRoomCombinationScenario: (
|
|
1403
|
-
t(`/device/${e}/setRoomCombinationScenario`,
|
|
1408
|
+
}, togglePartitionState: (v) => {
|
|
1409
|
+
t(`/device/${e}/togglePartitionState`, v);
|
|
1410
|
+
}, setRoomCombinationScenario: (v) => {
|
|
1411
|
+
t(`/device/${e}/setRoomCombinationScenario`, v);
|
|
1404
1412
|
} } : void 0;
|
|
1405
1413
|
}
|
|
1406
1414
|
function Pe(e) {
|
|
1407
|
-
const t =
|
|
1415
|
+
const t = _(e);
|
|
1408
1416
|
if (t)
|
|
1409
1417
|
return { state: t };
|
|
1410
1418
|
}
|
|
1411
|
-
function
|
|
1412
|
-
const { sendMessage: t, sendSimpleMessage: o } = b(), c =
|
|
1419
|
+
function Le(e) {
|
|
1420
|
+
const { sendMessage: t, sendSimpleMessage: o } = b(), c = _(e), r = G2(e), i = c || r;
|
|
1413
1421
|
return i ? {
|
|
1414
1422
|
levelState: i,
|
|
1415
1423
|
setLevel: (g, R) => o(`${g}/level`, R),
|
|
@@ -1418,26 +1426,26 @@ function Te(e) {
|
|
|
1418
1426
|
muteOff: (g) => t(`${g}/muteOff`, null)
|
|
1419
1427
|
} : void 0;
|
|
1420
1428
|
}
|
|
1421
|
-
function
|
|
1422
|
-
const { sendMessage: t } = b(), o =
|
|
1429
|
+
function De(e) {
|
|
1430
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1423
1431
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1424
1432
|
t(`/device/${e}/selectScene`, r);
|
|
1425
1433
|
} } : void 0;
|
|
1426
1434
|
}
|
|
1427
|
-
function
|
|
1428
|
-
const { sendMessage: t } = b(), o =
|
|
1435
|
+
function $e(e) {
|
|
1436
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1429
1437
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1430
1438
|
t(`/device/${e}/route`, r);
|
|
1431
1439
|
} } : void 0;
|
|
1432
1440
|
}
|
|
1433
|
-
function
|
|
1441
|
+
function Ae(e) {
|
|
1434
1442
|
const { sendMessage: t } = b();
|
|
1435
1443
|
return { closeApp: () => {
|
|
1436
1444
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1437
1445
|
} };
|
|
1438
1446
|
}
|
|
1439
|
-
function
|
|
1440
|
-
const t = `/device/${e}`, o =
|
|
1447
|
+
function Be(e) {
|
|
1448
|
+
const t = `/device/${e}`, o = f(t, "num0"), c = f(t, "num1"), r = f(t, "num2"), i = f(t, "num3"), d = f(t, "num4"), a = f(t, "num5"), v = f(t, "num6"), x = f(t, "num7"), g = f(t, "num8"), R = f(t, "num9"), D = f(t, "numDash"), F = f(t, "numEnter");
|
|
1441
1449
|
return {
|
|
1442
1450
|
digit0: o,
|
|
1443
1451
|
digit1: c,
|
|
@@ -1445,7 +1453,7 @@ function Ae(e) {
|
|
|
1445
1453
|
digit3: i,
|
|
1446
1454
|
digit4: d,
|
|
1447
1455
|
digit5: a,
|
|
1448
|
-
digit6:
|
|
1456
|
+
digit6: v,
|
|
1449
1457
|
digit7: x,
|
|
1450
1458
|
digit8: g,
|
|
1451
1459
|
digit9: R,
|
|
@@ -1453,44 +1461,44 @@ function Ae(e) {
|
|
|
1453
1461
|
keypadAccessoryButton2: F
|
|
1454
1462
|
};
|
|
1455
1463
|
}
|
|
1456
|
-
function
|
|
1457
|
-
const { sendMessage: t } = b(), o =
|
|
1464
|
+
function Oe(e) {
|
|
1465
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1458
1466
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1459
1467
|
t(`/device/${e}/raise`, null);
|
|
1460
1468
|
}, lower: () => {
|
|
1461
1469
|
t(`/device/${e}/lower`, null);
|
|
1462
1470
|
} } : void 0;
|
|
1463
1471
|
}
|
|
1464
|
-
function
|
|
1472
|
+
function Ve(e) {
|
|
1465
1473
|
const { sendMessage: t } = b(), o = S1(e);
|
|
1466
1474
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1467
1475
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1468
1476
|
} } : void 0;
|
|
1469
1477
|
}
|
|
1470
|
-
function
|
|
1478
|
+
function ke(e) {
|
|
1471
1479
|
const { sendMessage: t } = b();
|
|
1472
1480
|
return { runDefaultPresentRoute: () => {
|
|
1473
1481
|
t(`/room/${e}/defaultsource`, {});
|
|
1474
1482
|
} };
|
|
1475
1483
|
}
|
|
1476
|
-
function
|
|
1484
|
+
function Ue(e) {
|
|
1477
1485
|
const { sendMessage: t } = b();
|
|
1478
1486
|
return { runDirectRoute: (c) => {
|
|
1479
1487
|
t(`/room/${e}/directRoute`, c);
|
|
1480
1488
|
} };
|
|
1481
1489
|
}
|
|
1482
|
-
function
|
|
1490
|
+
function We(e) {
|
|
1483
1491
|
const { sendMessage: t } = b();
|
|
1484
|
-
return { routingState:
|
|
1492
|
+
return { routingState: _(e), runRoute: (r) => {
|
|
1485
1493
|
t(`/room/${e}/source`, r);
|
|
1486
1494
|
} };
|
|
1487
1495
|
}
|
|
1488
|
-
function
|
|
1489
|
-
const t = `/device/${e}`, o =
|
|
1496
|
+
function Fe(e) {
|
|
1497
|
+
const t = `/device/${e}`, o = f(t, "chanUp"), c = f(t, "chanDown");
|
|
1490
1498
|
return { dvrList: o, replay: c };
|
|
1491
1499
|
}
|
|
1492
|
-
function
|
|
1493
|
-
const { sendMessage: t } = b(), o =
|
|
1500
|
+
function He(e) {
|
|
1501
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1494
1502
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1495
1503
|
t(`/device/${e}/shadeUp`, null);
|
|
1496
1504
|
}, shadeDown: () => {
|
|
@@ -1499,7 +1507,7 @@ function Fe(e) {
|
|
|
1499
1507
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1500
1508
|
} } : void 0;
|
|
1501
1509
|
}
|
|
1502
|
-
function
|
|
1510
|
+
function Ke(e) {
|
|
1503
1511
|
const { sendMessage: t } = b(), o = S1(e);
|
|
1504
1512
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (a) => {
|
|
1505
1513
|
t(`/room/${e}/setShutdownPromptSeconds`, a);
|
|
@@ -1511,15 +1519,15 @@ function He(e) {
|
|
|
1511
1519
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1512
1520
|
} } : void 0;
|
|
1513
1521
|
}
|
|
1514
|
-
function
|
|
1515
|
-
const { sendMessage: t } = b(), o =
|
|
1522
|
+
function Ge(e) {
|
|
1523
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1516
1524
|
return o ? { switchedOutputState: o, on: () => {
|
|
1517
1525
|
t(`/device/${e}/on`, null);
|
|
1518
1526
|
}, off: () => {
|
|
1519
1527
|
t(`/device/${e}/off`, null);
|
|
1520
1528
|
} } : void 0;
|
|
1521
1529
|
}
|
|
1522
|
-
function
|
|
1530
|
+
function qe(e) {
|
|
1523
1531
|
const { sendMessage: t } = b(), o = S1(e);
|
|
1524
1532
|
return o ? { techPasswordState: o, validatePassword: (i) => {
|
|
1525
1533
|
t(`/room/${e}/validateTechPassword`, { password: i });
|
|
@@ -1527,12 +1535,12 @@ function Ge(e) {
|
|
|
1527
1535
|
t(`/room/${e}/setTechPassword`, { oldPassword: i, newPassword: d });
|
|
1528
1536
|
} } : void 0;
|
|
1529
1537
|
}
|
|
1530
|
-
function
|
|
1531
|
-
const { sendMessage: t } = b(), o =
|
|
1538
|
+
function Ye(e) {
|
|
1539
|
+
const { sendMessage: t } = b(), o = _(e);
|
|
1532
1540
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1533
1541
|
}
|
|
1534
|
-
function
|
|
1535
|
-
const { sendMessage: t } = b(), o =
|
|
1542
|
+
function ze(e) {
|
|
1543
|
+
const { sendMessage: t } = b(), o = _(e), c = (r) => {
|
|
1536
1544
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1537
1545
|
};
|
|
1538
1546
|
return {
|
|
@@ -1540,8 +1548,8 @@ function Ye(e) {
|
|
|
1540
1548
|
saveTheme: c
|
|
1541
1549
|
};
|
|
1542
1550
|
}
|
|
1543
|
-
function
|
|
1544
|
-
const t = `/device/${e}`, o =
|
|
1551
|
+
function Je(e) {
|
|
1552
|
+
const t = `/device/${e}`, o = f(t, "play"), c = f(t, "pause"), r = f(t, "stop"), i = f(t, "prevTrack"), d = f(t, "nextTrack"), a = f(t, "rewind"), v = f(t, "ffwd"), x = f(t, "record");
|
|
1545
1553
|
return {
|
|
1546
1554
|
play: o,
|
|
1547
1555
|
pause: c,
|
|
@@ -1549,12 +1557,12 @@ function ze(e) {
|
|
|
1549
1557
|
prevTrack: i,
|
|
1550
1558
|
nextTrack: d,
|
|
1551
1559
|
rewind: a,
|
|
1552
|
-
fastForward:
|
|
1560
|
+
fastForward: v,
|
|
1553
1561
|
record: x
|
|
1554
1562
|
};
|
|
1555
1563
|
}
|
|
1556
|
-
function
|
|
1557
|
-
const t =
|
|
1564
|
+
function Xe(e) {
|
|
1565
|
+
const t = _(e), { sendMessage: o } = b();
|
|
1558
1566
|
return t ? {
|
|
1559
1567
|
touchpanelState: t,
|
|
1560
1568
|
appControl: { hideApp: () => {
|
|
@@ -1569,8 +1577,8 @@ function Je(e) {
|
|
|
1569
1577
|
} }
|
|
1570
1578
|
} : void 0;
|
|
1571
1579
|
}
|
|
1572
|
-
function
|
|
1573
|
-
const t =
|
|
1580
|
+
function Qe(e) {
|
|
1581
|
+
const t = _(e), o = E3(e), c = U1(e);
|
|
1574
1582
|
if (!t) return;
|
|
1575
1583
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1576
1584
|
return {
|
|
@@ -1580,11 +1588,11 @@ function Xe(e) {
|
|
|
1580
1588
|
powerFb: { powerOnFb: r, powerOffFb: i }
|
|
1581
1589
|
};
|
|
1582
1590
|
}
|
|
1583
|
-
function
|
|
1591
|
+
function Ne(e) {
|
|
1584
1592
|
const t = `/device/${e}`;
|
|
1585
|
-
return
|
|
1593
|
+
return C1(t);
|
|
1586
1594
|
}
|
|
1587
|
-
const
|
|
1595
|
+
const e5 = ({
|
|
1588
1596
|
config: e
|
|
1589
1597
|
}) => {
|
|
1590
1598
|
const { sendMessage: t } = b();
|
|
@@ -1617,23 +1625,27 @@ const Ne = ({
|
|
|
1617
1625
|
});
|
|
1618
1626
|
}, [e, t]);
|
|
1619
1627
|
};
|
|
1620
|
-
function
|
|
1628
|
+
function t5(e, t) {
|
|
1621
1629
|
const [o, c] = H(!1), [r, i] = H(!1);
|
|
1622
1630
|
return M3(() => {
|
|
1623
1631
|
const { current: d } = e, a = () => {
|
|
1624
|
-
const
|
|
1625
|
-
i(
|
|
1632
|
+
const v = d && d.scrollHeight > d.clientHeight, x = d && d.scrollWidth > d.clientWidth;
|
|
1633
|
+
i(v ?? !1), c(x ?? !1), t && t(v ?? !1, x ?? !1);
|
|
1626
1634
|
};
|
|
1627
1635
|
d && a();
|
|
1628
1636
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1629
1637
|
}
|
|
1630
|
-
function
|
|
1638
|
+
function s5(e, t) {
|
|
1639
|
+
const o = `/room/${e}/volumes/${t}`;
|
|
1640
|
+
return C1(o);
|
|
1641
|
+
}
|
|
1642
|
+
function o5(e, t) {
|
|
1631
1643
|
const o = K2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1632
1644
|
return y3(c, o);
|
|
1633
1645
|
}
|
|
1634
|
-
function
|
|
1635
|
-
var a,
|
|
1636
|
-
const [t, o] = H(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollLeft) ?? 0), [c, r] = H(((
|
|
1646
|
+
function n5(e) {
|
|
1647
|
+
var a, v;
|
|
1648
|
+
const [t, o] = H(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollLeft) ?? 0), [c, r] = H(((v = e == null ? void 0 : e.current) == null ? void 0 : v.scrollTop) ?? 0), i = (x) => {
|
|
1637
1649
|
const { current: g } = e;
|
|
1638
1650
|
g && (console.log(g.scrollLeft), g.scrollLeft += x, console.log(g.scrollLeft));
|
|
1639
1651
|
}, d = (x) => {
|
|
@@ -1647,7 +1659,7 @@ function s5(e) {
|
|
|
1647
1659
|
x && g();
|
|
1648
1660
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: d };
|
|
1649
1661
|
}
|
|
1650
|
-
function
|
|
1662
|
+
function c5() {
|
|
1651
1663
|
const { sendMessage: e } = b();
|
|
1652
1664
|
return {
|
|
1653
1665
|
reboot: () => {
|
|
@@ -1658,7 +1670,7 @@ function o5() {
|
|
|
1658
1670
|
}
|
|
1659
1671
|
};
|
|
1660
1672
|
}
|
|
1661
|
-
function
|
|
1673
|
+
function r5() {
|
|
1662
1674
|
const [e, t] = H(), [o, c] = H();
|
|
1663
1675
|
function r() {
|
|
1664
1676
|
t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
@@ -1673,7 +1685,7 @@ function n5() {
|
|
|
1673
1685
|
return () => clearInterval(i);
|
|
1674
1686
|
}, []), { date: e, time: o };
|
|
1675
1687
|
}
|
|
1676
|
-
const
|
|
1688
|
+
const l5 = () => {
|
|
1677
1689
|
const [e, t] = H(!1), o = g2(), c = f2();
|
|
1678
1690
|
let r;
|
|
1679
1691
|
return p2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
|
|
@@ -1682,7 +1694,7 @@ const c5 = () => {
|
|
|
1682
1694
|
/* @__PURE__ */ s.jsx("button", { className: "btn btn-primary p-2", onClick: () => t(!e), children: e ? "Hide error message" : "Show error message" }),
|
|
1683
1695
|
e && /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1684
1696
|
] });
|
|
1685
|
-
}, O8 = "_iconbtn_16qss_1", V8 = "_iconbtnvert_16qss_7", k8 = "_iconsm_16qss_18",
|
|
1697
|
+
}, O8 = "_iconbtn_16qss_1", V8 = "_iconbtnvert_16qss_7", k8 = "_iconsm_16qss_18", A1 = {
|
|
1686
1698
|
iconbtn: O8,
|
|
1687
1699
|
iconbtnvert: V8,
|
|
1688
1700
|
iconsm: k8
|
|
@@ -1695,18 +1707,18 @@ const c5 = () => {
|
|
|
1695
1707
|
otherContentClassName: i = "",
|
|
1696
1708
|
disabled: d,
|
|
1697
1709
|
feedback: a,
|
|
1698
|
-
feedbackClassName:
|
|
1710
|
+
feedbackClassName: v,
|
|
1699
1711
|
onPointerDown: x,
|
|
1700
1712
|
onPointerUp: g,
|
|
1701
1713
|
onPointerLeave: R,
|
|
1702
1714
|
...D
|
|
1703
1715
|
}) => {
|
|
1704
|
-
const [F, k] = H(!1), X = !d && a ?
|
|
1716
|
+
const [F, k] = H(!1), X = !d && a ? v : "", r1 = !d && (F || a);
|
|
1705
1717
|
return /* @__PURE__ */ s.jsxs(
|
|
1706
1718
|
"button",
|
|
1707
1719
|
{
|
|
1708
1720
|
type: "button",
|
|
1709
|
-
className: `${
|
|
1721
|
+
className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${X}`,
|
|
1710
1722
|
...D,
|
|
1711
1723
|
disabled: d,
|
|
1712
1724
|
onPointerDown: ($) => {
|
|
@@ -1722,7 +1734,7 @@ const c5 = () => {
|
|
|
1722
1734
|
e && /* @__PURE__ */ s.jsx(
|
|
1723
1735
|
e,
|
|
1724
1736
|
{
|
|
1725
|
-
className: `${r ||
|
|
1737
|
+
className: `${r || A1.iconsm}`,
|
|
1726
1738
|
active: r1,
|
|
1727
1739
|
disabled: d
|
|
1728
1740
|
}
|
|
@@ -2937,7 +2949,7 @@ const c5 = () => {
|
|
|
2937
2949
|
active: e,
|
|
2938
2950
|
disabled: o
|
|
2939
2951
|
}
|
|
2940
|
-
),
|
|
2952
|
+
), i5 = ({
|
|
2941
2953
|
active: e,
|
|
2942
2954
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
2943
2955
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -2952,7 +2964,7 @@ const c5 = () => {
|
|
|
2952
2964
|
active: e,
|
|
2953
2965
|
disabled: o
|
|
2954
2966
|
}
|
|
2955
|
-
),
|
|
2967
|
+
), v6 = ({
|
|
2956
2968
|
active: e,
|
|
2957
2969
|
className: t = "",
|
|
2958
2970
|
disabled: o
|
|
@@ -3001,7 +3013,7 @@ const c5 = () => {
|
|
|
3001
3013
|
active: e,
|
|
3002
3014
|
disabled: o
|
|
3003
3015
|
}
|
|
3004
|
-
),
|
|
3016
|
+
), h6 = ({
|
|
3005
3017
|
active: e,
|
|
3006
3018
|
className: t = "",
|
|
3007
3019
|
disabled: o
|
|
@@ -3370,15 +3382,15 @@ const c5 = () => {
|
|
|
3370
3382
|
RoomPC: a6,
|
|
3371
3383
|
Shade: u6,
|
|
3372
3384
|
Sun: d6,
|
|
3373
|
-
UpArrow:
|
|
3374
|
-
VolDown:
|
|
3385
|
+
UpArrow: v6,
|
|
3386
|
+
VolDown: h6,
|
|
3375
3387
|
VolMute: g6,
|
|
3376
3388
|
VolUp: f6,
|
|
3377
3389
|
Wireless: p6,
|
|
3378
3390
|
X: w6,
|
|
3379
3391
|
Xbox: x6
|
|
3380
3392
|
};
|
|
3381
|
-
function
|
|
3393
|
+
function a5({
|
|
3382
3394
|
name: e,
|
|
3383
3395
|
iconsDictionary: t = m6,
|
|
3384
3396
|
...o
|
|
@@ -3386,46 +3398,46 @@ function l5({
|
|
|
3386
3398
|
const c = t[e] ?? null;
|
|
3387
3399
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ s.jsx(U8, { multiIcon: c, ...o });
|
|
3388
3400
|
}
|
|
3389
|
-
const Z6 = "_grid_1cmpp_1", j6 = "_header_1cmpp_11", S6 = "_content_1cmpp_17", C6 = "_footer_1cmpp_23", b6 = "_volume_1cmpp_29",
|
|
3401
|
+
const Z6 = "_grid_1cmpp_1", j6 = "_header_1cmpp_11", S6 = "_content_1cmpp_17", C6 = "_footer_1cmpp_23", b6 = "_volume_1cmpp_29", v1 = {
|
|
3390
3402
|
grid: Z6,
|
|
3391
3403
|
header: j6,
|
|
3392
3404
|
content: S6,
|
|
3393
3405
|
footer: C6,
|
|
3394
3406
|
volume: b6
|
|
3395
|
-
},
|
|
3396
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3397
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3398
|
-
r && /* @__PURE__ */ s.jsx("div", { className:
|
|
3399
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3407
|
+
}, u5 = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ s.jsxs("div", { className: v1.grid, children: [
|
|
3408
|
+
/* @__PURE__ */ s.jsx("div", { className: v1.header, children: e }),
|
|
3409
|
+
/* @__PURE__ */ s.jsx("div", { className: v1.content, children: o }),
|
|
3410
|
+
r && /* @__PURE__ */ s.jsx("div", { className: v1.volume, children: c }),
|
|
3411
|
+
/* @__PURE__ */ s.jsx("div", { className: v1.footer, children: t })
|
|
3400
3412
|
] }), I6 = "_grid_11w5q_1", R6 = "_header_11w5q_11", y6 = "_content_11w5q_17", Z1 = {
|
|
3401
3413
|
grid: I6,
|
|
3402
3414
|
header: R6,
|
|
3403
3415
|
content: y6
|
|
3404
|
-
},
|
|
3416
|
+
}, d5 = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${Z1.grid}`, children: [
|
|
3405
3417
|
/* @__PURE__ */ s.jsx("div", { className: Z1.header, children: t }),
|
|
3406
3418
|
c && /* @__PURE__ */ s.jsx("div", { className: Z1.leftNav, children: c }),
|
|
3407
3419
|
/* @__PURE__ */ s.jsx("div", { className: Z1.content, children: o })
|
|
3408
|
-
] }), E6 = "_grid_1uwfo_1",
|
|
3420
|
+
] }), E6 = "_grid_1uwfo_1", T6 = "_header_1uwfo_11", _6 = "_content_1uwfo_17", B1 = {
|
|
3409
3421
|
grid: E6,
|
|
3410
|
-
header:
|
|
3411
|
-
content:
|
|
3412
|
-
},
|
|
3413
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3414
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3422
|
+
header: T6,
|
|
3423
|
+
content: _6
|
|
3424
|
+
}, v5 = ({ className: e, header: t, content: o }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${B1.grid}`, children: [
|
|
3425
|
+
/* @__PURE__ */ s.jsx("div", { className: B1.header, children: t }),
|
|
3426
|
+
/* @__PURE__ */ s.jsx("div", { className: B1.content, children: o })
|
|
3415
3427
|
] });
|
|
3416
|
-
function
|
|
3428
|
+
function h5() {
|
|
3417
3429
|
return console.log(location.pathname), location.pathname;
|
|
3418
3430
|
}
|
|
3419
|
-
var
|
|
3420
|
-
class
|
|
3431
|
+
var P6 = /* @__PURE__ */ ((e) => (e[e.NotSet = 0] = "NotSet", e[e.Sunday = 1] = "Sunday", e[e.Monday = 2] = "Monday", e[e.Tuesday = 4] = "Tuesday", e[e.Wednesday = 8] = "Wednesday", e[e.Thursday = 16] = "Thursday", e[e.Friday = 32] = "Friday", e[e.Saturday = 64] = "Saturday", e))(P6 || {});
|
|
3432
|
+
class g5 {
|
|
3421
3433
|
constructor(t, o) {
|
|
3422
3434
|
G(this, "path");
|
|
3423
3435
|
G(this, "handler");
|
|
3424
3436
|
this.path = t, this.handler = o;
|
|
3425
3437
|
}
|
|
3426
3438
|
}
|
|
3427
|
-
const
|
|
3428
|
-
class
|
|
3439
|
+
const f5 = "$off";
|
|
3440
|
+
class p5 {
|
|
3429
3441
|
constructor() {
|
|
3430
3442
|
G(this, "currentShareText");
|
|
3431
3443
|
G(this, "enabled");
|
|
@@ -3433,9 +3445,9 @@ class g5 {
|
|
|
3433
3445
|
}
|
|
3434
3446
|
}
|
|
3435
3447
|
export {
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3448
|
+
Ze as Clock,
|
|
3449
|
+
P6 as DaysOfWeek,
|
|
3450
|
+
l5 as ErrorBox,
|
|
3439
3451
|
U8 as IconButton,
|
|
3440
3452
|
W8 as IconMultiAlert,
|
|
3441
3453
|
F8 as IconMultiBan,
|
|
@@ -3462,26 +3474,26 @@ export {
|
|
|
3462
3474
|
a6 as IconMultiRoomPC,
|
|
3463
3475
|
u6 as IconMultiShade,
|
|
3464
3476
|
d6 as IconMultiSun,
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3477
|
+
i5 as IconMultiTemplate,
|
|
3478
|
+
v6 as IconMultiUpArrow,
|
|
3479
|
+
h6 as IconMultiVolDown,
|
|
3468
3480
|
g6 as IconMultiVolMute,
|
|
3469
3481
|
f6 as IconMultiVolUp,
|
|
3470
3482
|
p6 as IconMultiWireless,
|
|
3471
3483
|
w6 as IconMultiX,
|
|
3472
3484
|
x6 as IconMultiXbox,
|
|
3473
|
-
|
|
3474
|
-
|
|
3485
|
+
u5 as MainLayout,
|
|
3486
|
+
g5 as MessageHandler,
|
|
3475
3487
|
we as MobileControlProvider,
|
|
3476
3488
|
j as MultiStateIconContainer,
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3489
|
+
a5 as NamedIconButton,
|
|
3490
|
+
p5 as ShareState,
|
|
3491
|
+
d5 as TechLayout,
|
|
3492
|
+
v5 as TechPinLayout,
|
|
3493
|
+
h5 as getBaseLocation,
|
|
3494
|
+
k1 as httpClient,
|
|
3483
3495
|
m6 as iconsDictionary,
|
|
3484
|
-
|
|
3496
|
+
f5 as roomOffSourceKey,
|
|
3485
3497
|
j3 as selectAllDevices,
|
|
3486
3498
|
M2 as selectApiPath,
|
|
3487
3499
|
x2 as selectAppConfig,
|
|
@@ -3491,15 +3503,15 @@ export {
|
|
|
3491
3503
|
a8 as selectError,
|
|
3492
3504
|
t8 as selectIsTouchpanel,
|
|
3493
3505
|
m2 as selectLogoPath,
|
|
3494
|
-
|
|
3506
|
+
W1 as selectModalVisibility,
|
|
3495
3507
|
Z2 as selectPartnerMetadata,
|
|
3496
3508
|
U2 as selectRoomAdvancedSharingActive,
|
|
3497
|
-
|
|
3509
|
+
_2 as selectRoomAudioControlPointList,
|
|
3498
3510
|
I2 as selectRoomByKey,
|
|
3499
3511
|
A2 as selectRoomCodecContentDestinationKey,
|
|
3500
3512
|
C2 as selectRoomConfiguration,
|
|
3501
3513
|
L2 as selectRoomDestinationList,
|
|
3502
|
-
|
|
3514
|
+
P2 as selectRoomDestinations,
|
|
3503
3515
|
H2 as selectRoomDisplayStates,
|
|
3504
3516
|
D2 as selectRoomEnvironmentalDevices,
|
|
3505
3517
|
B2 as selectRoomInCall,
|
|
@@ -3511,7 +3523,7 @@ export {
|
|
|
3511
3523
|
R2 as selectRoomName,
|
|
3512
3524
|
$2 as selectRoomProgramAudioDestinationKey,
|
|
3513
3525
|
W2 as selectRoomShareState,
|
|
3514
|
-
|
|
3526
|
+
T2 as selectRoomSourceList,
|
|
3515
3527
|
y2 as selectRoomVolume,
|
|
3516
3528
|
b2 as selectRooms,
|
|
3517
3529
|
N2 as selectRuntimeInfo,
|
|
@@ -3530,59 +3542,61 @@ export {
|
|
|
3530
3542
|
V6 as useApiPath,
|
|
3531
3543
|
j2 as useAppConfig,
|
|
3532
3544
|
w2 as useAppDispatch,
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3545
|
+
p as useAppSelector,
|
|
3546
|
+
me as useAvrControl,
|
|
3547
|
+
f as useButtonHeldHeartbeat,
|
|
3536
3548
|
o8 as useClientId,
|
|
3537
|
-
|
|
3549
|
+
Ne as useDeviceIBasicVolume,
|
|
3538
3550
|
A8 as useDeviceIBasicVolumeWithFeedback,
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3551
|
+
je as useDevicePresetsModel,
|
|
3552
|
+
Se as useEndpoint,
|
|
3553
|
+
v8 as useError,
|
|
3554
|
+
e5 as useGetAllDeviceStateFromRoomConfiguration,
|
|
3543
3555
|
W6 as useGetAllDevices,
|
|
3544
3556
|
H6 as useGetAllRooms,
|
|
3545
3557
|
ge as useGetCurrentPopoverIdForGroup,
|
|
3546
|
-
|
|
3547
|
-
xe as
|
|
3558
|
+
_ as useGetDevice,
|
|
3559
|
+
xe as useGetIBasicVolume,
|
|
3560
|
+
Me as useGetIBasicVolumeWithFeedback,
|
|
3548
3561
|
K6 as useGetRoom,
|
|
3549
3562
|
re as useGetRoomDisplayStates,
|
|
3550
3563
|
le as useGetZoomRoomControllerKey,
|
|
3564
|
+
C1 as useIBasicVolume,
|
|
3551
3565
|
y3 as useIBasicVolumeWithFeedback,
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3566
|
+
Ce as useIChannel,
|
|
3567
|
+
be as useIColor,
|
|
3568
|
+
Ie as useICommunicationMonitor,
|
|
3569
|
+
ye as useIDPad,
|
|
3570
|
+
Re as useIDeviceInfoMessenger,
|
|
3571
|
+
Ee as useIDspPresets,
|
|
3572
|
+
Te as useIDvr,
|
|
3559
3573
|
_e as useIEssentialsRoomCombiner,
|
|
3560
3574
|
E3 as useIHasPowerControl,
|
|
3561
|
-
|
|
3575
|
+
U1 as useIHasSelectableItems,
|
|
3562
3576
|
Pe as useIHumiditySensor,
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3577
|
+
Le as useILevelControls,
|
|
3578
|
+
De as useILightingScenes,
|
|
3579
|
+
$e as useIMatrixRouting,
|
|
3580
|
+
Ae as useIMcCiscoCodecUserInterfaceAppControl,
|
|
3581
|
+
Be as useINumeric,
|
|
3582
|
+
Oe as useIProjectorScreenLiftControl,
|
|
3583
|
+
Ve as useIRoomEventSchedule,
|
|
3584
|
+
ke as useIRunDefaultPresentRoute,
|
|
3585
|
+
Ue as useIRunDirectRouteAction,
|
|
3586
|
+
We as useIRunRouteAction,
|
|
3587
|
+
Fe as useISetTopBoxControls,
|
|
3588
|
+
He as useIShadesOpenCloseStop,
|
|
3589
|
+
Ke as useIShutdownPromptTimer,
|
|
3590
|
+
Ge as useISwitchedOutput,
|
|
3591
|
+
qe as useITechPassword,
|
|
3592
|
+
Ye as useITemperatureSensor,
|
|
3593
|
+
ze as useITheme,
|
|
3594
|
+
Je as useITransport,
|
|
3581
3595
|
C8 as useInitialize,
|
|
3582
3596
|
ue as useIsTouchpanel,
|
|
3583
3597
|
k6 as useLogoPath,
|
|
3584
|
-
|
|
3585
|
-
|
|
3598
|
+
Xe as useMobileControlTouchpanelController,
|
|
3599
|
+
t5 as useOverflow,
|
|
3586
3600
|
U6 as usePartnerMetadata,
|
|
3587
3601
|
$8 as usePressHoldRelease,
|
|
3588
3602
|
ne as useRoomAdvancedSharingActive,
|
|
@@ -3592,7 +3606,8 @@ export {
|
|
|
3592
3606
|
J6 as useRoomDestinationList,
|
|
3593
3607
|
z6 as useRoomDestinations,
|
|
3594
3608
|
X6 as useRoomEnvironmentalDevices,
|
|
3595
|
-
|
|
3609
|
+
s5 as useRoomIBasicVolume,
|
|
3610
|
+
o5 as useRoomIBasicVolumeWithFeedback,
|
|
3596
3611
|
ee as useRoomInCall,
|
|
3597
3612
|
se as useRoomIsCoolingDown,
|
|
3598
3613
|
oe as useRoomIsOn,
|
|
@@ -3606,19 +3621,19 @@ export {
|
|
|
3606
3621
|
S1 as useRoomState,
|
|
3607
3622
|
K2 as useRoomVolume,
|
|
3608
3623
|
ie as useRuntimeInfo,
|
|
3609
|
-
|
|
3624
|
+
n5 as useScroll,
|
|
3610
3625
|
r8 as useServerIsRunningOnProcessorHardware,
|
|
3611
|
-
|
|
3612
|
-
|
|
3626
|
+
ve as useShowIncomingCallModal,
|
|
3627
|
+
he as useShowModal,
|
|
3613
3628
|
fe as useShowPopoverById,
|
|
3614
|
-
|
|
3629
|
+
h8 as useShowReconnect,
|
|
3615
3630
|
de as useShowShutdownModal,
|
|
3616
|
-
|
|
3631
|
+
c5 as useSystemControl,
|
|
3617
3632
|
n8 as useSystemUuid,
|
|
3618
3633
|
pe as useTheme,
|
|
3619
|
-
|
|
3634
|
+
r5 as useTimeAndDate,
|
|
3620
3635
|
ae as useTouchpanelKey,
|
|
3621
|
-
|
|
3636
|
+
Qe as useTwoWayDisplayBase,
|
|
3622
3637
|
c8 as useUserCode,
|
|
3623
3638
|
b as useWebsocketContext,
|
|
3624
3639
|
S3 as useWsIsConnected
|