@pepperdash/mobile-control-react-app-core 1.21.0-ibasic-volume.3 → 1.21.0-ibasic-volume.5
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.
|
@@ -4,8 +4,8 @@ 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
|
|
8
|
-
import * as
|
|
7
|
+
import x3, { createContext as h2, useState as H, useRef as v1, useCallback as a1, useEffect as n1, useContext as v2, useLayoutEffect as M3 } from "react";
|
|
8
|
+
import * as m3 from "lodash";
|
|
9
9
|
import { useNavigate as g2, useRouteError as f2, isRouteErrorResponse as p2 } from "react-router-dom";
|
|
10
10
|
const w2 = l2.withTypes(), f = i2.withTypes(), j1 = (e) => e.appConfig, x2 = w(
|
|
11
11
|
j1,
|
|
@@ -19,13 +19,13 @@ 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 = () => f(x2), V6 = () => f(M2), k6 = () => f(m2), U6 = () => f(Z2),
|
|
23
|
-
|
|
22
|
+
), j2 = () => f(x2), V6 = () => f(M2), k6 = () => f(m2), U6 = () => f(Z2), Z3 = (e) => e.devices, j3 = w(
|
|
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 = () => f(
|
|
28
|
+
), W6 = () => f(j3);
|
|
29
29
|
function P(e) {
|
|
30
30
|
return f(S2(e));
|
|
31
31
|
}
|
|
@@ -134,7 +134,7 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
134
134
|
), H2 = w(
|
|
135
135
|
[
|
|
136
136
|
(e, t) => t,
|
|
137
|
-
() =>
|
|
137
|
+
() => j3,
|
|
138
138
|
(e, t) => {
|
|
139
139
|
var o, c;
|
|
140
140
|
return (c = (o = e.rooms[t]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations;
|
|
@@ -191,7 +191,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
191
191
|
), t8 = w(
|
|
192
192
|
J,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
),
|
|
194
|
+
), S3 = () => f(q2), s8 = () => f(Y2), o8 = () => f(z2), n8 = () => f(J2), c8 = () => f(X2), r8 = () => f(Q2), ie = () => f(N2), ae = () => f(e8), ue = () => f(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 = () => f(
|
|
219
|
+
), de = () => f(W1("showShutdownModal")), he = () => f(W1("showIncomingCallModal")), ve = (e) => f(W1(e)), ge = (e) => f(l8(e)), fe = (e, t) => f(i8(e, t)), h8 = () => f(a8), v8 = () => f(u8), pe = () => f(d8), g8 = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -224,7 +224,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
224
224
|
showIncomingCallModal: !1
|
|
225
225
|
},
|
|
226
226
|
popoverVisibility: {}
|
|
227
|
-
},
|
|
227
|
+
}, C3 = g1({
|
|
228
228
|
name: "ui",
|
|
229
229
|
initialState: g8,
|
|
230
230
|
reducers: {
|
|
@@ -257,7 +257,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
257
257
|
e.theme = t.payload;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
}), q =
|
|
260
|
+
}), q = C3.actions, f8 = C3.reducer, p8 = {
|
|
261
261
|
config: {
|
|
262
262
|
enableDev: !1,
|
|
263
263
|
apiPath: "",
|
|
@@ -267,7 +267,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
267
267
|
loginMode: "",
|
|
268
268
|
modes: {}
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, b3 = g1({
|
|
271
271
|
name: "appConfig",
|
|
272
272
|
initialState: p8,
|
|
273
273
|
reducers: {
|
|
@@ -275,41 +275,41 @@ const K6 = S1, G6 = (e) => f(
|
|
|
275
275
|
e.config = t.payload;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}), w8 =
|
|
278
|
+
}), w8 = b3.actions, x8 = b3.reducer, h3 = {}, O1 = g1({
|
|
279
279
|
name: "devices",
|
|
280
|
-
initialState:
|
|
280
|
+
initialState: h3,
|
|
281
281
|
reducers: {
|
|
282
282
|
setDeviceState(e, t) {
|
|
283
283
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
284
284
|
if (!c) return;
|
|
285
|
-
const r = t.payload.content, i = e[c] ?? {}, d =
|
|
285
|
+
const r = t.payload.content, i = e[c] ?? {}, d = m3.merge(i, r);
|
|
286
286
|
e[c] = d;
|
|
287
287
|
},
|
|
288
288
|
clearDevices() {
|
|
289
|
-
return
|
|
289
|
+
return h3;
|
|
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, v3 = {}, V1 = g1({
|
|
296
296
|
name: "rooms",
|
|
297
|
-
initialState:
|
|
297
|
+
initialState: v3,
|
|
298
298
|
reducers: {
|
|
299
299
|
setRoomState(e, t) {
|
|
300
300
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
301
301
|
if (!c) return;
|
|
302
|
-
const r = t.payload.content, i = e[c] ?? {}, d =
|
|
302
|
+
const r = t.payload.content, i = e[c] ?? {}, d = m3.merge(i, r);
|
|
303
303
|
e[c] = d;
|
|
304
304
|
},
|
|
305
305
|
clearRooms() {
|
|
306
|
-
return
|
|
306
|
+
return v3;
|
|
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: {
|
|
@@ -339,7 +339,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
339
339
|
userCode: "",
|
|
340
340
|
qrUrl: ""
|
|
341
341
|
}
|
|
342
|
-
},
|
|
342
|
+
}, I3 = g1({
|
|
343
343
|
name: "runtimeConfig",
|
|
344
344
|
initialState: Z8,
|
|
345
345
|
reducers: {
|
|
@@ -368,7 +368,7 @@ const K6 = S1, G6 = (e) => f(
|
|
|
368
368
|
e.touchpanelKey = t.payload;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
}), W =
|
|
371
|
+
}), W = I3.actions, j8 = I3.reducer, S8 = u2({
|
|
372
372
|
appConfig: x8,
|
|
373
373
|
runtimeConfig: j8,
|
|
374
374
|
rooms: m8,
|
|
@@ -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) {
|
|
@@ -406,11 +406,11 @@ var m1 = { exports: {} }, u1 = {};
|
|
|
406
406
|
* This source code is licensed under the MIT license found in the
|
|
407
407
|
* LICENSE file in the root directory of this source tree.
|
|
408
408
|
*/
|
|
409
|
-
var
|
|
409
|
+
var g3;
|
|
410
410
|
function b8() {
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
var e =
|
|
411
|
+
if (g3) return u1;
|
|
412
|
+
g3 = 1;
|
|
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
414
|
function d(a, h, x) {
|
|
415
415
|
var g, R = {}, D = null, F = null;
|
|
416
416
|
x !== void 0 && (D = "" + x), h.key !== void 0 && (D = "" + h.key), h.ref !== void 0 && (F = h.ref);
|
|
@@ -430,10 +430,10 @@ var d1 = {};
|
|
|
430
430
|
* This source code is licensed under the MIT license found in the
|
|
431
431
|
* LICENSE file in the root directory of this source tree.
|
|
432
432
|
*/
|
|
433
|
-
var
|
|
433
|
+
var f3;
|
|
434
434
|
function I8() {
|
|
435
|
-
return
|
|
436
|
-
var e =
|
|
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"), h = 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;
|
|
@@ -445,10 +445,10 @@ function I8() {
|
|
|
445
445
|
{
|
|
446
446
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
447
447
|
u[v - 1] = arguments[v];
|
|
448
|
-
|
|
448
|
+
b1("error", n, u);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function b1(n, l, u) {
|
|
452
452
|
{
|
|
453
453
|
var v = $.ReactDebugCurrentFrame, C = v.getStackAddendum();
|
|
454
454
|
C !== "" && (l += "%s", u = u.concat([C]));
|
|
@@ -458,10 +458,10 @@ 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 === h || // 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.
|
|
@@ -522,18 +522,18 @@ function I8() {
|
|
|
522
522
|
}
|
|
523
523
|
return null;
|
|
524
524
|
}
|
|
525
|
-
var z = Object.assign, l1 = 0,
|
|
526
|
-
function
|
|
525
|
+
var z = Object.assign, l1 = 0, F1, H1, K1, G1, q1, Y1, z1;
|
|
526
|
+
function J1() {
|
|
527
527
|
}
|
|
528
|
-
|
|
528
|
+
J1.__reactDisabledLog = !0;
|
|
529
529
|
function _3() {
|
|
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;
|
|
533
533
|
var n = {
|
|
534
534
|
configurable: !0,
|
|
535
535
|
enumerable: !0,
|
|
536
|
-
value:
|
|
536
|
+
value: J1,
|
|
537
537
|
writable: !0
|
|
538
538
|
};
|
|
539
539
|
Object.defineProperties(console, {
|
|
@@ -559,52 +559,52 @@ function I8() {
|
|
|
559
559
|
};
|
|
560
560
|
Object.defineProperties(console, {
|
|
561
561
|
log: z({}, n, {
|
|
562
|
-
value:
|
|
562
|
+
value: F1
|
|
563
563
|
}),
|
|
564
564
|
info: z({}, n, {
|
|
565
|
-
value:
|
|
565
|
+
value: H1
|
|
566
566
|
}),
|
|
567
567
|
warn: z({}, n, {
|
|
568
|
-
value:
|
|
568
|
+
value: K1
|
|
569
569
|
}),
|
|
570
570
|
error: z({}, n, {
|
|
571
|
-
value:
|
|
571
|
+
value: G1
|
|
572
572
|
}),
|
|
573
573
|
group: z({}, n, {
|
|
574
|
-
value:
|
|
574
|
+
value: q1
|
|
575
575
|
}),
|
|
576
576
|
groupCollapsed: z({}, n, {
|
|
577
|
-
value:
|
|
577
|
+
value: Y1
|
|
578
578
|
}),
|
|
579
579
|
groupEnd: z({}, n, {
|
|
580
|
-
value:
|
|
580
|
+
value: z1
|
|
581
581
|
})
|
|
582
582
|
});
|
|
583
583
|
}
|
|
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
594
|
var v = C.stack.trim().match(/\n( *(at )?)/);
|
|
595
|
-
|
|
595
|
+
E1 = v && v[1] || "";
|
|
596
596
|
}
|
|
597
597
|
return `
|
|
598
|
-
` +
|
|
598
|
+
` + E1 + n;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
var
|
|
601
|
+
var _1 = !1, w1;
|
|
602
602
|
{
|
|
603
603
|
var T3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
604
604
|
w1 = new T3();
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
if (!n ||
|
|
606
|
+
function X1(n, l) {
|
|
607
|
+
if (!n || _1)
|
|
608
608
|
return "";
|
|
609
609
|
{
|
|
610
610
|
var u = w1.get(n);
|
|
@@ -612,11 +612,11 @@ function I8() {
|
|
|
612
612
|
return u;
|
|
613
613
|
}
|
|
614
614
|
var v;
|
|
615
|
-
|
|
615
|
+
_1 = !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, _3();
|
|
620
620
|
try {
|
|
621
621
|
if (l) {
|
|
622
622
|
var Z = function() {
|
|
@@ -669,13 +669,13 @@ function I8() {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
} finally {
|
|
672
|
-
|
|
672
|
+
_1 = !1, y1.current = I, P3(), 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;
|
|
676
676
|
}
|
|
677
677
|
function L3(n, l, u) {
|
|
678
|
-
return
|
|
678
|
+
return X1(n, !1);
|
|
679
679
|
}
|
|
680
680
|
function D3(n) {
|
|
681
681
|
var l = n.prototype;
|
|
@@ -685,7 +685,7 @@ function I8() {
|
|
|
685
685
|
if (n == null)
|
|
686
686
|
return "";
|
|
687
687
|
if (typeof n == "function")
|
|
688
|
-
return
|
|
688
|
+
return X1(n, D3(n));
|
|
689
689
|
if (typeof n == "string")
|
|
690
690
|
return p1(n);
|
|
691
691
|
switch (n) {
|
|
@@ -710,13 +710,13 @@ function I8() {
|
|
|
710
710
|
}
|
|
711
711
|
return "";
|
|
712
712
|
}
|
|
713
|
-
var i1 = Object.prototype.hasOwnProperty,
|
|
713
|
+
var i1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = $.ReactDebugCurrentFrame;
|
|
714
714
|
function M1(n) {
|
|
715
715
|
if (n) {
|
|
716
716
|
var l = n._owner, u = x1(n.type, n._source, l ? l.type : null);
|
|
717
|
-
|
|
717
|
+
N1.setExtraStackFrame(u);
|
|
718
718
|
} else
|
|
719
|
-
|
|
719
|
+
N1.setExtraStackFrame(null);
|
|
720
720
|
}
|
|
721
721
|
function $3(n, l, u, v, C) {
|
|
722
722
|
{
|
|
@@ -733,12 +733,12 @@ function I8() {
|
|
|
733
733
|
} catch (_) {
|
|
734
734
|
M = _;
|
|
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).", v || "React class", u, Z, typeof M), M1(null)), M instanceof Error && !(M.message in
|
|
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).", v || "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
|
}
|
|
740
740
|
var A3 = Array.isArray;
|
|
741
|
-
function
|
|
741
|
+
function P1(n) {
|
|
742
742
|
return A3(n);
|
|
743
743
|
}
|
|
744
744
|
function B3(n) {
|
|
@@ -749,24 +749,24 @@ function I8() {
|
|
|
749
749
|
}
|
|
750
750
|
function O3(n) {
|
|
751
751
|
try {
|
|
752
|
-
return
|
|
752
|
+
return e3(n), !1;
|
|
753
753
|
} catch {
|
|
754
754
|
return !0;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function e3(n) {
|
|
758
758
|
return "" + n;
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function t3(n) {
|
|
761
761
|
if (O3(n))
|
|
762
|
-
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", B3(n)),
|
|
762
|
+
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", B3(n)), e3(n);
|
|
763
763
|
}
|
|
764
|
-
var
|
|
764
|
+
var s3 = $.ReactCurrentOwner, V3 = {
|
|
765
765
|
key: !0,
|
|
766
766
|
ref: !0,
|
|
767
767
|
__self: !0,
|
|
768
768
|
__source: !0
|
|
769
|
-
},
|
|
769
|
+
}, o3, n3;
|
|
770
770
|
function k3(n) {
|
|
771
771
|
if (i1.call(n, "ref")) {
|
|
772
772
|
var l = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
@@ -784,12 +784,12 @@ function I8() {
|
|
|
784
784
|
return n.key !== void 0;
|
|
785
785
|
}
|
|
786
786
|
function W3(n, l) {
|
|
787
|
-
typeof n.ref == "string" &&
|
|
787
|
+
typeof n.ref == "string" && s3.current;
|
|
788
788
|
}
|
|
789
789
|
function F3(n, l) {
|
|
790
790
|
{
|
|
791
791
|
var u = function() {
|
|
792
|
-
|
|
792
|
+
o3 || (o3 = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
793
793
|
};
|
|
794
794
|
u.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
795
795
|
get: u,
|
|
@@ -800,7 +800,7 @@ function I8() {
|
|
|
800
800
|
function H3(n, l) {
|
|
801
801
|
{
|
|
802
802
|
var u = function() {
|
|
803
|
-
|
|
803
|
+
n3 || (n3 = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
804
804
|
};
|
|
805
805
|
u.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
806
806
|
get: u,
|
|
@@ -840,7 +840,7 @@ function I8() {
|
|
|
840
840
|
function G3(n, l, u, v, C) {
|
|
841
841
|
{
|
|
842
842
|
var I, Z = {}, M = null, O = null;
|
|
843
|
-
u !== void 0 && (
|
|
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) {
|
|
@@ -852,26 +852,26 @@ function I8() {
|
|
|
852
852
|
var T = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
853
853
|
M && F3(Z, T), O && H3(Z, T);
|
|
854
854
|
}
|
|
855
|
-
return K3(n, M, O, C, v,
|
|
855
|
+
return K3(n, M, O, C, v, s3.current, Z);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
var
|
|
858
|
+
var T1 = $.ReactCurrentOwner, c3 = $.ReactDebugCurrentFrame;
|
|
859
859
|
function s1(n) {
|
|
860
860
|
if (n) {
|
|
861
861
|
var l = n._owner, u = x1(n.type, n._source, l ? l.type : null);
|
|
862
|
-
|
|
862
|
+
c3.setExtraStackFrame(u);
|
|
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
|
-
function
|
|
871
|
+
function r3() {
|
|
872
872
|
{
|
|
873
|
-
if (
|
|
874
|
-
var n = K(
|
|
873
|
+
if (T1.current) {
|
|
874
|
+
var n = K(T1.current.type);
|
|
875
875
|
if (n)
|
|
876
876
|
return `
|
|
877
877
|
|
|
@@ -883,10 +883,10 @@ Check the render method of \`` + n + "`.";
|
|
|
883
883
|
function q3(n) {
|
|
884
884
|
return "";
|
|
885
885
|
}
|
|
886
|
-
var
|
|
886
|
+
var l3 = {};
|
|
887
887
|
function Y3(n) {
|
|
888
888
|
{
|
|
889
|
-
var l =
|
|
889
|
+
var l = r3();
|
|
890
890
|
if (!l) {
|
|
891
891
|
var u = typeof n == "string" ? n : n.displayName || n.name;
|
|
892
892
|
u && (l = `
|
|
@@ -896,35 +896,35 @@ Check the top-level render call using <` + u + ">.");
|
|
|
896
896
|
return l;
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function i3(n, l) {
|
|
900
900
|
{
|
|
901
901
|
if (!n._store || n._store.validated || n.key != null)
|
|
902
902
|
return;
|
|
903
903
|
n._store.validated = !0;
|
|
904
904
|
var u = Y3(l);
|
|
905
|
-
if (
|
|
905
|
+
if (l3[u])
|
|
906
906
|
return;
|
|
907
|
-
|
|
907
|
+
l3[u] = !0;
|
|
908
908
|
var v = "";
|
|
909
|
-
n && n._owner && n._owner !==
|
|
909
|
+
n && n._owner && n._owner !== T1.current && (v = " It was passed a child from " + K(n._owner.type) + "."), s1(n), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), s1(null);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function a3(n, l) {
|
|
913
913
|
{
|
|
914
914
|
if (typeof n != "object")
|
|
915
915
|
return;
|
|
916
|
-
if (
|
|
916
|
+
if (P1(n))
|
|
917
917
|
for (var u = 0; u < n.length; u++) {
|
|
918
918
|
var v = n[u];
|
|
919
|
-
|
|
919
|
+
D1(v) && i3(v, 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
|
}
|
|
@@ -945,8 +945,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
945
945
|
if (u) {
|
|
946
946
|
var v = K(l);
|
|
947
947
|
$3(u, n.props, "prop", v, n);
|
|
948
|
-
} else if (l.PropTypes !== void 0 && !
|
|
949
|
-
|
|
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
|
}
|
|
@@ -965,17 +965,17 @@ Check the top-level render call using <` + u + ">.");
|
|
|
965
965
|
n.ref !== null && (s1(n), A("Invalid attribute `ref` supplied to `React.Fragment`."), s1(null));
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
var
|
|
969
|
-
function
|
|
968
|
+
var u3 = {};
|
|
969
|
+
function d3(n, l, u, v, C, I) {
|
|
970
970
|
{
|
|
971
971
|
var Z = B(n);
|
|
972
972
|
if (!Z) {
|
|
973
973
|
var M = "";
|
|
974
974
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
975
975
|
var O = q3();
|
|
976
|
-
O ? M += O : M +=
|
|
976
|
+
O ? M += O : M += r3();
|
|
977
977
|
var _;
|
|
978
|
-
n === null ? _ = "null" :
|
|
978
|
+
n === null ? _ = "null" : P1(n) ? _ = "array" : n !== void 0 && n.$$typeof === t ? (_ = "<" + (K(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, M);
|
|
979
979
|
}
|
|
980
980
|
var T = G3(n, l, u, C, I);
|
|
981
981
|
if (T == null)
|
|
@@ -984,51 +984,51 @@ Check the top-level render call using <` + u + ">.");
|
|
|
984
984
|
var U = l.children;
|
|
985
985
|
if (U !== void 0)
|
|
986
986
|
if (v)
|
|
987
|
-
if (
|
|
987
|
+
if (P1(U)) {
|
|
988
988
|
for (var o1 = 0; o1 < U.length; o1++)
|
|
989
|
-
|
|
989
|
+
a3(U[o1], n);
|
|
990
990
|
Object.freeze && Object.freeze(U);
|
|
991
991
|
} else
|
|
992
992
|
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
993
993
|
else
|
|
994
|
-
|
|
994
|
+
a3(U, n);
|
|
995
995
|
}
|
|
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 (!
|
|
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
1010
|
return n === c ? J3(T) : z3(T), T;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
function X3(n, l, u) {
|
|
1014
|
-
return
|
|
1014
|
+
return d3(n, l, u, !0);
|
|
1015
1015
|
}
|
|
1016
1016
|
function Q3(n, l, u) {
|
|
1017
|
-
return
|
|
1017
|
+
return d3(n, l, u, !1);
|
|
1018
1018
|
}
|
|
1019
1019
|
var N3 = Q3, e2 = X3;
|
|
1020
1020
|
d1.Fragment = c, d1.jsx = N3, d1.jsxs = e2;
|
|
1021
1021
|
}()), d1;
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1023
|
+
var p3;
|
|
1024
1024
|
function R8() {
|
|
1025
|
-
return
|
|
1025
|
+
return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? m1.exports = b8() : m1.exports = I8()), m1.exports;
|
|
1026
1026
|
}
|
|
1027
1027
|
var s = R8();
|
|
1028
1028
|
const y8 = "_mwfit_ppa3l_1", E8 = {
|
|
1029
1029
|
mwfit: y8
|
|
1030
1030
|
}, _8 = () => {
|
|
1031
|
-
const { reconnect: e } = b(), t =
|
|
1031
|
+
const { reconnect: e } = b(), t = S3(), o = h8(), c = v8();
|
|
1032
1032
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(
|
|
1033
1033
|
"div",
|
|
1034
1034
|
{
|
|
@@ -1049,7 +1049,7 @@ class P8 {
|
|
|
1049
1049
|
G(this, "expiry", "current-uuid-expires");
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
const
|
|
1052
|
+
const w3 = new P8(), R3 = h2({
|
|
1053
1053
|
sendMessage: () => null,
|
|
1054
1054
|
sendSimpleMessage: () => null,
|
|
1055
1055
|
addEventHandler: () => null,
|
|
@@ -1063,10 +1063,10 @@ function L8(e, t) {
|
|
|
1063
1063
|
sessionStorage.setItem(e, t);
|
|
1064
1064
|
}
|
|
1065
1065
|
const D8 = ({ children: e }) => {
|
|
1066
|
-
const [t, o] = H(), c =
|
|
1066
|
+
const [t, o] = H(), c = S3(), r = s8(), i = o8(), d = C8(), a = j2(), h = n8(), x = c8(), g = r8(), R = v1(null), [D, F] = H(), k = v1({}), 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);
|
|
@@ -1083,17 +1083,17 @@ const D8 = ({ children: e }) => {
|
|
|
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(
|
|
1096
|
+
S ? (console.log("saving token: ", S), L8(w3.uuid, S)) : (S = T8(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) => {
|
|
@@ -1191,13 +1191,13 @@ const D8 = ({ children: e }) => {
|
|
|
1191
1191
|
}, [a.apiPath, X, t, D, g]), n1(() => {
|
|
1192
1192
|
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
|
|
1193
1193
|
}, [r, i, c, $]), /* @__PURE__ */ s.jsx(
|
|
1194
|
-
|
|
1194
|
+
R3.Provider,
|
|
1195
1195
|
{
|
|
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
1203
|
children: c ? e : /* @__PURE__ */ s.jsx(_8, {})
|
|
@@ -1205,7 +1205,7 @@ const D8 = ({ children: e }) => {
|
|
|
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 v2(
|
|
1208
|
+
return v2(R3);
|
|
1209
1209
|
}
|
|
1210
1210
|
function $8({
|
|
1211
1211
|
onPress: e,
|
|
@@ -1243,7 +1243,7 @@ function p(e, t) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
return $8({ onPress: i, onRelease: d });
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function C1(e) {
|
|
1247
1247
|
const { sendMessage: t } = b(), o = p(`${e}`, "volumeUp"), c = p(`${e}`, "volumeDown");
|
|
1248
1248
|
return {
|
|
1249
1249
|
volumeUp: o,
|
|
@@ -1252,7 +1252,7 @@ function R3(e) {
|
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
1254
1254
|
function y3(e, t) {
|
|
1255
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1255
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = C1(e);
|
|
1256
1256
|
if (!r) {
|
|
1257
1257
|
console.log("baseVolume is undefined");
|
|
1258
1258
|
return;
|
|
@@ -1270,7 +1270,7 @@ function y3(e, t) {
|
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
1272
|
function xe(e, t) {
|
|
1273
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1273
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = C1(e);
|
|
1274
1274
|
if (!r) {
|
|
1275
1275
|
console.log("baseVolume is undefined");
|
|
1276
1276
|
return;
|
|
@@ -1301,7 +1301,7 @@ function E3(e) {
|
|
|
1301
1301
|
t(`/device/${e}/powerToggle`, null);
|
|
1302
1302
|
} };
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function U1(e) {
|
|
1305
1305
|
const { sendMessage: t } = b(), o = P(e);
|
|
1306
1306
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1307
1307
|
t(`/device/${e}/${r}`, null);
|
|
@@ -1319,7 +1319,7 @@ function B8(e) {
|
|
|
1319
1319
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1320
1320
|
}
|
|
1321
1321
|
function Me(e) {
|
|
1322
|
-
const t = P(e), o = E3(e), c =
|
|
1322
|
+
const t = P(e), o = E3(e), c = U1(e), r = U1(e), i = A8(e), d = B8(e);
|
|
1323
1323
|
if (t)
|
|
1324
1324
|
return {
|
|
1325
1325
|
avrState: t,
|
|
@@ -1570,7 +1570,7 @@ function Je(e) {
|
|
|
1570
1570
|
} : void 0;
|
|
1571
1571
|
}
|
|
1572
1572
|
function Xe(e) {
|
|
1573
|
-
const t = P(e), o = E3(e), c =
|
|
1573
|
+
const t = P(e), o = E3(e), c = U1(e);
|
|
1574
1574
|
if (!t) return;
|
|
1575
1575
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1576
1576
|
return {
|
|
@@ -1580,7 +1580,11 @@ function Xe(e) {
|
|
|
1580
1580
|
powerFb: { powerOnFb: r, powerOffFb: i }
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
|
|
1583
|
+
function Qe(e) {
|
|
1584
|
+
const t = `/device/${e}`;
|
|
1585
|
+
return C1(t);
|
|
1586
|
+
}
|
|
1587
|
+
const Ne = ({
|
|
1584
1588
|
config: e
|
|
1585
1589
|
}) => {
|
|
1586
1590
|
const { sendMessage: t } = b();
|
|
@@ -1613,9 +1617,9 @@ const Qe = ({
|
|
|
1613
1617
|
});
|
|
1614
1618
|
}, [e, t]);
|
|
1615
1619
|
};
|
|
1616
|
-
function
|
|
1620
|
+
function e5(e, t) {
|
|
1617
1621
|
const [o, c] = H(!1), [r, i] = H(!1);
|
|
1618
|
-
return
|
|
1622
|
+
return M3(() => {
|
|
1619
1623
|
const { current: d } = e, a = () => {
|
|
1620
1624
|
const h = d && d.scrollHeight > d.clientHeight, x = d && d.scrollWidth > d.clientWidth;
|
|
1621
1625
|
i(h ?? !1), c(x ?? !1), t && t(h ?? !1, x ?? !1);
|
|
@@ -1623,11 +1627,15 @@ function Ne(e, t) {
|
|
|
1623
1627
|
d && a();
|
|
1624
1628
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1625
1629
|
}
|
|
1626
|
-
function
|
|
1630
|
+
function t5(e, t) {
|
|
1631
|
+
const o = `/room/${e}/volumes/${t}`;
|
|
1632
|
+
return C1(o);
|
|
1633
|
+
}
|
|
1634
|
+
function s5(e, t) {
|
|
1627
1635
|
const o = K2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1628
1636
|
return y3(c, o);
|
|
1629
1637
|
}
|
|
1630
|
-
function
|
|
1638
|
+
function o5(e) {
|
|
1631
1639
|
var a, h;
|
|
1632
1640
|
const [t, o] = H(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollLeft) ?? 0), [c, r] = H(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), i = (x) => {
|
|
1633
1641
|
const { current: g } = e;
|
|
@@ -1636,14 +1644,14 @@ function t5(e) {
|
|
|
1636
1644
|
const { current: g } = e;
|
|
1637
1645
|
g && (console.log(g.scrollTop), g.scrollTop += x, console.log(g.scrollTop));
|
|
1638
1646
|
};
|
|
1639
|
-
return
|
|
1647
|
+
return M3(() => {
|
|
1640
1648
|
const { current: x } = e, g = () => {
|
|
1641
1649
|
o((x == null ? void 0 : x.scrollLeft) ?? 0), r((x == null ? void 0 : x.scrollTop) ?? 0);
|
|
1642
1650
|
};
|
|
1643
1651
|
x && g();
|
|
1644
1652
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: d };
|
|
1645
1653
|
}
|
|
1646
|
-
function
|
|
1654
|
+
function n5() {
|
|
1647
1655
|
const { sendMessage: e } = b();
|
|
1648
1656
|
return {
|
|
1649
1657
|
reboot: () => {
|
|
@@ -1654,7 +1662,7 @@ function s5() {
|
|
|
1654
1662
|
}
|
|
1655
1663
|
};
|
|
1656
1664
|
}
|
|
1657
|
-
function
|
|
1665
|
+
function c5() {
|
|
1658
1666
|
const [e, t] = H(), [o, c] = H();
|
|
1659
1667
|
function r() {
|
|
1660
1668
|
t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
@@ -1669,7 +1677,7 @@ function o5() {
|
|
|
1669
1677
|
return () => clearInterval(i);
|
|
1670
1678
|
}, []), { date: e, time: o };
|
|
1671
1679
|
}
|
|
1672
|
-
const
|
|
1680
|
+
const r5 = () => {
|
|
1673
1681
|
const [e, t] = H(!1), o = g2(), c = f2();
|
|
1674
1682
|
let r;
|
|
1675
1683
|
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: [
|
|
@@ -1678,7 +1686,7 @@ const n5 = () => {
|
|
|
1678
1686
|
/* @__PURE__ */ s.jsx("button", { className: "btn btn-primary p-2", onClick: () => t(!e), children: e ? "Hide error message" : "Show error message" }),
|
|
1679
1687
|
e && /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1680
1688
|
] });
|
|
1681
|
-
}, O8 = "_iconbtn_16qss_1", V8 = "_iconbtnvert_16qss_7", k8 = "_iconsm_16qss_18",
|
|
1689
|
+
}, O8 = "_iconbtn_16qss_1", V8 = "_iconbtnvert_16qss_7", k8 = "_iconsm_16qss_18", A1 = {
|
|
1682
1690
|
iconbtn: O8,
|
|
1683
1691
|
iconbtnvert: V8,
|
|
1684
1692
|
iconsm: k8
|
|
@@ -1702,7 +1710,7 @@ const n5 = () => {
|
|
|
1702
1710
|
"button",
|
|
1703
1711
|
{
|
|
1704
1712
|
type: "button",
|
|
1705
|
-
className: `${
|
|
1713
|
+
className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${X}`,
|
|
1706
1714
|
...D,
|
|
1707
1715
|
disabled: d,
|
|
1708
1716
|
onPointerDown: ($) => {
|
|
@@ -1718,7 +1726,7 @@ const n5 = () => {
|
|
|
1718
1726
|
e && /* @__PURE__ */ s.jsx(
|
|
1719
1727
|
e,
|
|
1720
1728
|
{
|
|
1721
|
-
className: `${r ||
|
|
1729
|
+
className: `${r || A1.iconsm}`,
|
|
1722
1730
|
active: r1,
|
|
1723
1731
|
disabled: d
|
|
1724
1732
|
}
|
|
@@ -2933,7 +2941,7 @@ const n5 = () => {
|
|
|
2933
2941
|
active: e,
|
|
2934
2942
|
disabled: o
|
|
2935
2943
|
}
|
|
2936
|
-
),
|
|
2944
|
+
), l5 = ({
|
|
2937
2945
|
active: e,
|
|
2938
2946
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
2939
2947
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3374,7 +3382,7 @@ const n5 = () => {
|
|
|
3374
3382
|
X: w6,
|
|
3375
3383
|
Xbox: x6
|
|
3376
3384
|
};
|
|
3377
|
-
function
|
|
3385
|
+
function i5({
|
|
3378
3386
|
name: e,
|
|
3379
3387
|
iconsDictionary: t = m6,
|
|
3380
3388
|
...o
|
|
@@ -3388,7 +3396,7 @@ const Z6 = "_grid_1cmpp_1", j6 = "_header_1cmpp_11", S6 = "_content_1cmpp_17", C
|
|
|
3388
3396
|
content: S6,
|
|
3389
3397
|
footer: C6,
|
|
3390
3398
|
volume: b6
|
|
3391
|
-
},
|
|
3399
|
+
}, a5 = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ s.jsxs("div", { className: h1.grid, children: [
|
|
3392
3400
|
/* @__PURE__ */ s.jsx("div", { className: h1.header, children: e }),
|
|
3393
3401
|
/* @__PURE__ */ s.jsx("div", { className: h1.content, children: o }),
|
|
3394
3402
|
r && /* @__PURE__ */ s.jsx("div", { className: h1.volume, children: c }),
|
|
@@ -3397,31 +3405,31 @@ const Z6 = "_grid_1cmpp_1", j6 = "_header_1cmpp_11", S6 = "_content_1cmpp_17", C
|
|
|
3397
3405
|
grid: I6,
|
|
3398
3406
|
header: R6,
|
|
3399
3407
|
content: y6
|
|
3400
|
-
},
|
|
3408
|
+
}, u5 = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${Z1.grid}`, children: [
|
|
3401
3409
|
/* @__PURE__ */ s.jsx("div", { className: Z1.header, children: t }),
|
|
3402
3410
|
c && /* @__PURE__ */ s.jsx("div", { className: Z1.leftNav, children: c }),
|
|
3403
3411
|
/* @__PURE__ */ s.jsx("div", { className: Z1.content, children: o })
|
|
3404
|
-
] }), E6 = "_grid_1uwfo_1", _6 = "_header_1uwfo_11", P6 = "_content_1uwfo_17",
|
|
3412
|
+
] }), E6 = "_grid_1uwfo_1", _6 = "_header_1uwfo_11", P6 = "_content_1uwfo_17", B1 = {
|
|
3405
3413
|
grid: E6,
|
|
3406
3414
|
header: _6,
|
|
3407
3415
|
content: P6
|
|
3408
|
-
},
|
|
3409
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3410
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3416
|
+
}, d5 = ({ className: e, header: t, content: o }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${B1.grid}`, children: [
|
|
3417
|
+
/* @__PURE__ */ s.jsx("div", { className: B1.header, children: t }),
|
|
3418
|
+
/* @__PURE__ */ s.jsx("div", { className: B1.content, children: o })
|
|
3411
3419
|
] });
|
|
3412
|
-
function
|
|
3420
|
+
function h5() {
|
|
3413
3421
|
return console.log(location.pathname), location.pathname;
|
|
3414
3422
|
}
|
|
3415
3423
|
var T6 = /* @__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))(T6 || {});
|
|
3416
|
-
class
|
|
3424
|
+
class v5 {
|
|
3417
3425
|
constructor(t, o) {
|
|
3418
3426
|
G(this, "path");
|
|
3419
3427
|
G(this, "handler");
|
|
3420
3428
|
this.path = t, this.handler = o;
|
|
3421
3429
|
}
|
|
3422
3430
|
}
|
|
3423
|
-
const
|
|
3424
|
-
class
|
|
3431
|
+
const g5 = "$off";
|
|
3432
|
+
class f5 {
|
|
3425
3433
|
constructor() {
|
|
3426
3434
|
G(this, "currentShareText");
|
|
3427
3435
|
G(this, "enabled");
|
|
@@ -3431,7 +3439,7 @@ class v5 {
|
|
|
3431
3439
|
export {
|
|
3432
3440
|
me as Clock,
|
|
3433
3441
|
T6 as DaysOfWeek,
|
|
3434
|
-
|
|
3442
|
+
r5 as ErrorBox,
|
|
3435
3443
|
U8 as IconButton,
|
|
3436
3444
|
W8 as IconMultiAlert,
|
|
3437
3445
|
F8 as IconMultiBan,
|
|
@@ -3458,7 +3466,7 @@ export {
|
|
|
3458
3466
|
a6 as IconMultiRoomPC,
|
|
3459
3467
|
u6 as IconMultiShade,
|
|
3460
3468
|
d6 as IconMultiSun,
|
|
3461
|
-
|
|
3469
|
+
l5 as IconMultiTemplate,
|
|
3462
3470
|
h6 as IconMultiUpArrow,
|
|
3463
3471
|
v6 as IconMultiVolDown,
|
|
3464
3472
|
g6 as IconMultiVolMute,
|
|
@@ -3466,19 +3474,19 @@ export {
|
|
|
3466
3474
|
p6 as IconMultiWireless,
|
|
3467
3475
|
w6 as IconMultiX,
|
|
3468
3476
|
x6 as IconMultiXbox,
|
|
3469
|
-
|
|
3470
|
-
|
|
3477
|
+
a5 as MainLayout,
|
|
3478
|
+
v5 as MessageHandler,
|
|
3471
3479
|
we as MobileControlProvider,
|
|
3472
3480
|
j as MultiStateIconContainer,
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3481
|
+
i5 as NamedIconButton,
|
|
3482
|
+
f5 as ShareState,
|
|
3483
|
+
u5 as TechLayout,
|
|
3484
|
+
d5 as TechPinLayout,
|
|
3485
|
+
h5 as getBaseLocation,
|
|
3486
|
+
k1 as httpClient,
|
|
3479
3487
|
m6 as iconsDictionary,
|
|
3480
|
-
|
|
3481
|
-
|
|
3488
|
+
g5 as roomOffSourceKey,
|
|
3489
|
+
j3 as selectAllDevices,
|
|
3482
3490
|
M2 as selectApiPath,
|
|
3483
3491
|
x2 as selectAppConfig,
|
|
3484
3492
|
z2 as selectClientId,
|
|
@@ -3487,7 +3495,7 @@ export {
|
|
|
3487
3495
|
a8 as selectError,
|
|
3488
3496
|
t8 as selectIsTouchpanel,
|
|
3489
3497
|
m2 as selectLogoPath,
|
|
3490
|
-
|
|
3498
|
+
W1 as selectModalVisibility,
|
|
3491
3499
|
Z2 as selectPartnerMetadata,
|
|
3492
3500
|
U2 as selectRoomAdvancedSharingActive,
|
|
3493
3501
|
P2 as selectRoomAudioControlPointList,
|
|
@@ -3530,11 +3538,12 @@ export {
|
|
|
3530
3538
|
Me as useAvrControl,
|
|
3531
3539
|
p as useButtonHeldHeartbeat,
|
|
3532
3540
|
o8 as useClientId,
|
|
3541
|
+
Qe as useDeviceIBasicVolume,
|
|
3533
3542
|
A8 as useDeviceIBasicVolumeWithFeedback,
|
|
3534
3543
|
Ze as useDevicePresetsModel,
|
|
3535
3544
|
je as useEndpoint,
|
|
3536
3545
|
h8 as useError,
|
|
3537
|
-
|
|
3546
|
+
Ne as useGetAllDeviceStateFromRoomConfiguration,
|
|
3538
3547
|
W6 as useGetAllDevices,
|
|
3539
3548
|
H6 as useGetAllRooms,
|
|
3540
3549
|
ge as useGetCurrentPopoverIdForGroup,
|
|
@@ -3553,7 +3562,7 @@ export {
|
|
|
3553
3562
|
Ee as useIDvr,
|
|
3554
3563
|
_e as useIEssentialsRoomCombiner,
|
|
3555
3564
|
E3 as useIHasPowerControl,
|
|
3556
|
-
|
|
3565
|
+
U1 as useIHasSelectableItems,
|
|
3557
3566
|
Pe as useIHumiditySensor,
|
|
3558
3567
|
Te as useILevelControls,
|
|
3559
3568
|
Le as useILightingScenes,
|
|
@@ -3577,7 +3586,7 @@ export {
|
|
|
3577
3586
|
ue as useIsTouchpanel,
|
|
3578
3587
|
k6 as useLogoPath,
|
|
3579
3588
|
Je as useMobileControlTouchpanelController,
|
|
3580
|
-
|
|
3589
|
+
e5 as useOverflow,
|
|
3581
3590
|
U6 as usePartnerMetadata,
|
|
3582
3591
|
$8 as usePressHoldRelease,
|
|
3583
3592
|
ne as useRoomAdvancedSharingActive,
|
|
@@ -3587,7 +3596,8 @@ export {
|
|
|
3587
3596
|
J6 as useRoomDestinationList,
|
|
3588
3597
|
z6 as useRoomDestinations,
|
|
3589
3598
|
X6 as useRoomEnvironmentalDevices,
|
|
3590
|
-
|
|
3599
|
+
t5 as useRoomIBasicVolume,
|
|
3600
|
+
s5 as useRoomIBasicVolumeWithFeedback,
|
|
3591
3601
|
ee as useRoomInCall,
|
|
3592
3602
|
se as useRoomIsCoolingDown,
|
|
3593
3603
|
oe as useRoomIsOn,
|
|
@@ -3601,20 +3611,20 @@ export {
|
|
|
3601
3611
|
S1 as useRoomState,
|
|
3602
3612
|
K2 as useRoomVolume,
|
|
3603
3613
|
ie as useRuntimeInfo,
|
|
3604
|
-
|
|
3614
|
+
o5 as useScroll,
|
|
3605
3615
|
r8 as useServerIsRunningOnProcessorHardware,
|
|
3606
3616
|
he as useShowIncomingCallModal,
|
|
3607
3617
|
ve as useShowModal,
|
|
3608
3618
|
fe as useShowPopoverById,
|
|
3609
3619
|
v8 as useShowReconnect,
|
|
3610
3620
|
de as useShowShutdownModal,
|
|
3611
|
-
|
|
3621
|
+
n5 as useSystemControl,
|
|
3612
3622
|
n8 as useSystemUuid,
|
|
3613
3623
|
pe as useTheme,
|
|
3614
|
-
|
|
3624
|
+
c5 as useTimeAndDate,
|
|
3615
3625
|
ae as useTouchpanelKey,
|
|
3616
3626
|
Xe as useTwoWayDisplayBase,
|
|
3617
3627
|
c8 as useUserCode,
|
|
3618
3628
|
b as useWebsocketContext,
|
|
3619
|
-
|
|
3629
|
+
S3 as useWsIsConnected
|
|
3620
3630
|
};
|