@pepperdash/mobile-control-react-app-core 1.25.0-feat-deprecate-interfaces-array.4 → 1.25.0-feat-deprecate-interfaces-array.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 +174 -173
- package/dist/mobile-control-react-app-core.umd.js +6 -6
- package/dist/shared/hooks/interfaces/useIAudioCodecInfo.d.ts +1 -1
- package/dist/shared/hooks/interfaces/useIAudioCodecInfo.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIHasCameraPresets.d.ts +15 -0
- package/dist/shared/hooks/interfaces/useIHasCameraPresets.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIHasDialer.d.ts +3 -2
- package/dist/shared/hooks/interfaces/useIHasDialer.d.ts.map +1 -1
- package/dist/types/state/state/IHasCameraPresetsState.d.ts +12 -0
- package/dist/types/state/state/IHasCameraPresetsState.d.ts.map +1 -0
- package/dist/types/state/state/index.d.ts +1 -0
- package/dist/types/state/state/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var w2 = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var q = (e, t, o) =>
|
|
4
|
-
import M3, { AxiosError as
|
|
2
|
+
var p2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var q = (e, t, o) => p2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import M3, { AxiosError as m2 } from "axios";
|
|
5
5
|
import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
|
|
6
6
|
import { createSelector as M, createSlice as d1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
|
|
7
7
|
import x3, { createContext as C2, useEffect as x1, useCallback as r1, useContext as b2, useRef as u1, useMemo as X, useState as Y, useLayoutEffect as Z3 } from "react";
|
|
8
8
|
import { useNavigate as y2, useRouteError as I2, isRouteErrorResponse as R2 } from "react-router-dom";
|
|
9
9
|
import * as S3 from "lodash";
|
|
10
|
-
const W1 = M2.withTypes(),
|
|
10
|
+
const W1 = M2.withTypes(), p = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
|
|
11
11
|
Z1,
|
|
12
12
|
(e) => e.config
|
|
13
13
|
), T2 = M(
|
|
@@ -19,15 +19,15 @@ const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
|
|
|
19
19
|
), _2 = M(
|
|
20
20
|
Z1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), X8 = () =>
|
|
22
|
+
), X8 = () => p(E2), Q8 = () => p(T2), N8 = () => p(D2), e6 = () => p(_2), j3 = (e) => e.devices, C3 = M(
|
|
23
23
|
j3,
|
|
24
24
|
(e) => e
|
|
25
25
|
), A2 = (e) => M(
|
|
26
26
|
j3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
), t6 = () =>
|
|
28
|
+
), t6 = () => p(C3);
|
|
29
29
|
function D(e) {
|
|
30
|
-
return
|
|
30
|
+
return p(A2(e));
|
|
31
31
|
}
|
|
32
32
|
const P = (e) => e.rooms, $2 = (e) => M(
|
|
33
33
|
P,
|
|
@@ -38,13 +38,13 @@ const P = (e) => e.rooms, $2 = (e) => M(
|
|
|
38
38
|
), P2 = (e) => M(
|
|
39
39
|
P,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
),
|
|
41
|
+
), B2 = (e) => M(
|
|
42
42
|
P,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
44
|
+
), O2 = (e, t) => M(
|
|
45
45
|
P,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
),
|
|
47
|
+
), k2 = (e) => M(
|
|
48
48
|
P,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), W2 = (e) => M(
|
|
@@ -147,21 +147,21 @@ const P = (e) => e.rooms, $2 = (e) => M(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function n6(e) {
|
|
150
|
-
return
|
|
150
|
+
return p(
|
|
151
151
|
$2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function o6() {
|
|
155
|
-
return
|
|
155
|
+
return p(L2);
|
|
156
156
|
}
|
|
157
157
|
function S1(e) {
|
|
158
|
-
return
|
|
158
|
+
return p(P2(e));
|
|
159
159
|
}
|
|
160
|
-
const s6 = S1, c6 = (e) =>
|
|
161
|
-
|
|
162
|
-
), te = (e, t) =>
|
|
163
|
-
|
|
164
|
-
), ne = (e) =>
|
|
160
|
+
const s6 = S1, c6 = (e) => p(
|
|
161
|
+
B2(e)
|
|
162
|
+
), te = (e, t) => p(
|
|
163
|
+
O2(e, t)
|
|
164
|
+
), ne = (e) => p(k2(e)) || void 0, r6 = (e) => p(W2(e)), l6 = (e) => p(V2(e)), i6 = (e) => p(U2(e)), a6 = (e) => p(F2(e)), u6 = (e) => p(H2(e)), d6 = (e) => p(K2(e)), v6 = (e) => p(q2(e)), h6 = (e) => p(G2(e)), g6 = (e) => p(Y2(e)), f6 = (e) => p(z2(e)), w6 = (e) => p(J2(e)), p6 = (e) => p(X2(e)), m6 = (e) => p(Q2(e)), M6 = (e) => p((t) => ee(t, e)), x6 = (e) => p(N2(e)), G = (e) => e.runtimeConfig, oe = M(
|
|
165
165
|
G,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
167
|
), se = M(
|
|
@@ -203,7 +203,7 @@ const s6 = S1, c6 = (e) => m(
|
|
|
203
203
|
), ve = (e, t) => M(
|
|
204
204
|
y3(e),
|
|
205
205
|
(o) => o.includes(t)
|
|
206
|
-
), I3 = () =>
|
|
206
|
+
), I3 = () => p(oe), Z6 = () => p(se), S6 = () => p(ce), j6 = () => p(re), C6 = () => p(le), b6 = () => p(ie), y6 = () => p(ae), I6 = () => p(ue), R6 = () => p(de), E6 = () => p(b3), T6 = (e) => p(y3(e)), D6 = (e, t) => p(ve(e, t)), e1 = (e) => e.ui, V1 = (e) => M(e1, (t) => t.modalVisibility[e]), he = (e) => M(e1, (t) => {
|
|
207
207
|
const o = t.popoverVisibility[e];
|
|
208
208
|
if (o)
|
|
209
209
|
return Object.keys(o).find((c) => o[c]);
|
|
@@ -216,7 +216,7 @@ const s6 = S1, c6 = (e) => m(
|
|
|
216
216
|
), fe = M(e1, (e) => e.error), we = M(
|
|
217
217
|
e1,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
),
|
|
219
|
+
), pe = M(e1, (e) => e.theme), me = (e) => M(e1, (t) => t.syncState.includes(e)), _6 = () => p(V1("showShutdownModal")), A6 = () => p(V1("showIncomingCallModal")), $6 = (e) => p(V1(e)), L6 = (e) => p(he(e)), P6 = (e, t) => p(ge(e, t)), Me = () => p(fe), xe = () => p(we), B6 = () => p(pe), Ze = (e) => p(me(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -271,7 +271,7 @@ const s6 = S1, c6 = (e) => m(
|
|
|
271
271
|
e.syncState = [];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
274
|
+
}), k = R3.actions, je = R3.reducer, Ce = {
|
|
275
275
|
config: {
|
|
276
276
|
enableDev: !1,
|
|
277
277
|
apiPath: "",
|
|
@@ -289,7 +289,7 @@ const s6 = S1, c6 = (e) => m(
|
|
|
289
289
|
e.config = t.payload;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}), T3 = E3.actions, be = E3.reducer, v3 = {},
|
|
292
|
+
}), T3 = E3.actions, be = E3.reducer, v3 = {}, B1 = d1({
|
|
293
293
|
name: "devices",
|
|
294
294
|
initialState: v3,
|
|
295
295
|
reducers: {
|
|
@@ -311,9 +311,9 @@ const s6 = S1, c6 = (e) => m(
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}), w1 = {
|
|
314
|
-
setDeviceState:
|
|
315
|
-
clearDevices:
|
|
316
|
-
}, ye =
|
|
314
|
+
setDeviceState: B1.actions.setDeviceState,
|
|
315
|
+
clearDevices: B1.actions.clearDevices
|
|
316
|
+
}, ye = B1.reducer;
|
|
317
317
|
class Ie {
|
|
318
318
|
constructor() {
|
|
319
319
|
q(this, "uuid", "current-uuid");
|
|
@@ -329,7 +329,7 @@ function Re(e) {
|
|
|
329
329
|
function Ee(e, t) {
|
|
330
330
|
sessionStorage.setItem(e, t);
|
|
331
331
|
}
|
|
332
|
-
const g3 = {},
|
|
332
|
+
const g3 = {}, O1 = d1({
|
|
333
333
|
name: "rooms",
|
|
334
334
|
initialState: g3,
|
|
335
335
|
reducers: {
|
|
@@ -345,10 +345,10 @@ const g3 = {}, B1 = d1({
|
|
|
345
345
|
return g3;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
349
|
-
setRoomState:
|
|
350
|
-
clearRooms:
|
|
351
|
-
}, Te =
|
|
348
|
+
}), p1 = {
|
|
349
|
+
setRoomState: O1.actions.setRoomState,
|
|
350
|
+
clearRooms: O1.actions.clearRooms
|
|
351
|
+
}, Te = O1.reducer, De = {
|
|
352
352
|
apiVersion: "",
|
|
353
353
|
serverIsRunningOnProcessorHardware: !1,
|
|
354
354
|
websocket: {
|
|
@@ -414,7 +414,7 @@ const g3 = {}, B1 = d1({
|
|
|
414
414
|
e.touchpanelKey = t.payload;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
}), U = D3.actions, _e = D3.reducer, $1 = M3.create(), _3 = "websocket/connect", A3 = "websocket/disconnect", $3 = "websocket/sendMessage", L3 = "websocket/addEventHandler", P3 = "websocket/removeEventHandler",
|
|
417
|
+
}), U = D3.actions, _e = D3.reducer, $1 = M3.create(), _3 = "websocket/connect", A3 = "websocket/disconnect", $3 = "websocket/sendMessage", L3 = "websocket/addEventHandler", P3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", O3 = () => ({ type: _3 }), O6 = () => ({ type: A3 }), Ae = (e, t) => ({
|
|
418
418
|
type: $3,
|
|
419
419
|
payload: { messageType: e, content: t }
|
|
420
420
|
}), $e = (e, t, o) => ({
|
|
@@ -423,7 +423,7 @@ const g3 = {}, B1 = d1({
|
|
|
423
423
|
}), Le = (e, t) => ({
|
|
424
424
|
type: P3,
|
|
425
425
|
payload: { eventType: e, key: t }
|
|
426
|
-
}), Pe = () => ({ type:
|
|
426
|
+
}), Pe = () => ({ type: B3 }), Be = () => {
|
|
427
427
|
const e = {
|
|
428
428
|
client: null,
|
|
429
429
|
token: null,
|
|
@@ -457,20 +457,20 @@ const g3 = {}, B1 = d1({
|
|
|
457
457
|
);
|
|
458
458
|
return S.status === 200 && S.data ? (C(U.setRoomData(S.data)), S.data) : null;
|
|
459
459
|
} catch (S) {
|
|
460
|
-
return console.log(S), S instanceof
|
|
461
|
-
|
|
460
|
+
return console.log(S), S instanceof m2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
|
|
461
|
+
k.setErrorMessage(
|
|
462
462
|
`Token ${Z} is invalid. Unable to join room`
|
|
463
463
|
)
|
|
464
|
-
), null) : (console.error("Error getting room data", S), S instanceof Error ? C(
|
|
464
|
+
), null) : (console.error("Error getting room data", S), S instanceof Error ? C(k.setErrorMessage(S.message)) : C(k.setErrorMessage("Error getting room data")), null);
|
|
465
465
|
}
|
|
466
466
|
}, c = (a) => {
|
|
467
467
|
e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
|
|
468
|
-
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(
|
|
468
|
+
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(O3());
|
|
469
469
|
}, 5e3);
|
|
470
470
|
}, r = () => {
|
|
471
471
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
472
472
|
}, l = (a) => {
|
|
473
|
-
a(
|
|
473
|
+
a(k.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(p1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState());
|
|
474
474
|
}, u = (a, Z) => {
|
|
475
475
|
const C = a(), S = Z ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected;
|
|
476
476
|
if (!Z || !x || !b) {
|
|
@@ -522,41 +522,41 @@ const g3 = {}, B1 = d1({
|
|
|
522
522
|
}
|
|
523
523
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
524
524
|
const C1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(C1);
|
|
525
|
-
e.client = K, K.onopen = (
|
|
526
|
-
console.log("WebSocket middleware: Connected",
|
|
525
|
+
e.client = K, K.onopen = (B) => {
|
|
526
|
+
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
527
527
|
e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
|
|
528
528
|
}, 100);
|
|
529
|
-
}, K.onerror = (
|
|
530
|
-
console.error("WebSocket middleware: Error",
|
|
531
|
-
}, K.onclose = (
|
|
529
|
+
}, K.onerror = (B) => {
|
|
530
|
+
console.error("WebSocket middleware: Error", B), l(a);
|
|
531
|
+
}, K.onclose = (B) => {
|
|
532
532
|
var _;
|
|
533
533
|
if (console.log(
|
|
534
534
|
"WebSocket middleware: Disconnected",
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
),
|
|
535
|
+
B.reason,
|
|
536
|
+
B.code
|
|
537
|
+
), B.code === 4100) {
|
|
538
538
|
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(a);
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
|
-
if (e.waitingToReconnect = !0,
|
|
541
|
+
if (e.waitingToReconnect = !0, B.code === 4e3) {
|
|
542
542
|
console.log("WebSocket middleware: User code changed"), r(), a(
|
|
543
543
|
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
544
544
|
), a(
|
|
545
|
-
|
|
545
|
+
k.setErrorMessage(
|
|
546
546
|
"User code changed. Click reconnect to enter the new code"
|
|
547
547
|
)
|
|
548
548
|
), l(a);
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
551
|
-
if (
|
|
551
|
+
if (B.code === 4002) {
|
|
552
552
|
console.log("WebSocket middleware: Room combination changed"), r(), a(
|
|
553
|
-
|
|
553
|
+
k.setErrorMessage(
|
|
554
554
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
555
555
|
)
|
|
556
556
|
), l(a);
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
|
-
if (
|
|
559
|
+
if (B.code === 4001)
|
|
560
560
|
if (!!((_ = Z().runtimeConfig) != null && _.touchpanelKey))
|
|
561
561
|
console.log(
|
|
562
562
|
"WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
|
|
@@ -569,7 +569,7 @@ const g3 = {}, B1 = d1({
|
|
|
569
569
|
console.log(
|
|
570
570
|
"WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
|
|
571
571
|
), r(), a(
|
|
572
|
-
|
|
572
|
+
k.setErrorMessage(
|
|
573
573
|
"Processor has disconnected. Click Reconnect to continue."
|
|
574
574
|
)
|
|
575
575
|
), l(a);
|
|
@@ -584,13 +584,13 @@ const g3 = {}, B1 = d1({
|
|
|
584
584
|
return;
|
|
585
585
|
}
|
|
586
586
|
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
|
|
587
|
-
|
|
587
|
+
k.setErrorMessage(
|
|
588
588
|
"Connection lost. Attempting to reconnect..."
|
|
589
589
|
)
|
|
590
|
-
), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(
|
|
591
|
-
}, K.onmessage = (
|
|
590
|
+
), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(p1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState()), c(a);
|
|
591
|
+
}, K.onmessage = (B) => {
|
|
592
592
|
try {
|
|
593
|
-
const _ = JSON.parse(
|
|
593
|
+
const _ = JSON.parse(B.data);
|
|
594
594
|
if (_.type === "close") {
|
|
595
595
|
K.close(4001, _.content);
|
|
596
596
|
return;
|
|
@@ -605,7 +605,7 @@ const g3 = {}, B1 = d1({
|
|
|
605
605
|
);
|
|
606
606
|
break;
|
|
607
607
|
case "/system/roomKey":
|
|
608
|
-
a(
|
|
608
|
+
a(p1.clearRooms()), a(w1.clearDevices()), a(k.clearSyncState()), a(
|
|
609
609
|
U.setCurrentRoomKey(
|
|
610
610
|
_.content
|
|
611
611
|
)
|
|
@@ -650,7 +650,7 @@ const g3 = {}, B1 = d1({
|
|
|
650
650
|
);
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
|
-
} else _.type.startsWith("/room/") ? a(
|
|
653
|
+
} else _.type.startsWith("/room/") ? a(p1.setRoomState(_)) : _.type.startsWith("/device/") && a(w1.setDeviceState(_));
|
|
654
654
|
} catch (_) {
|
|
655
655
|
console.error("WebSocket middleware: Message handling error", _);
|
|
656
656
|
}
|
|
@@ -712,7 +712,7 @@ const g3 = {}, B1 = d1({
|
|
|
712
712
|
b.payload.key
|
|
713
713
|
);
|
|
714
714
|
break;
|
|
715
|
-
case
|
|
715
|
+
case B3:
|
|
716
716
|
F(a.getState);
|
|
717
717
|
break;
|
|
718
718
|
default:
|
|
@@ -739,22 +739,22 @@ const g3 = {}, B1 = d1({
|
|
|
739
739
|
console.error("WebSocket middleware: Error handling action", x);
|
|
740
740
|
}), S;
|
|
741
741
|
};
|
|
742
|
-
},
|
|
742
|
+
}, Oe = S2({
|
|
743
743
|
appConfig: be,
|
|
744
744
|
runtimeConfig: _e,
|
|
745
745
|
rooms: Te,
|
|
746
746
|
devices: ye,
|
|
747
747
|
ui: je
|
|
748
|
-
}),
|
|
749
|
-
reducer:
|
|
748
|
+
}), ke = j2({
|
|
749
|
+
reducer: Oe,
|
|
750
750
|
middleware: (e) => e({
|
|
751
751
|
serializableCheck: {
|
|
752
752
|
// Ignore WebSocket actions with callbacks
|
|
753
753
|
ignoredActions: ["websocket/addEventHandler"]
|
|
754
754
|
}
|
|
755
|
-
}).concat(
|
|
755
|
+
}).concat(Be())
|
|
756
756
|
}), f3 = M3.create();
|
|
757
|
-
function
|
|
757
|
+
function k6() {
|
|
758
758
|
const e = W1();
|
|
759
759
|
return async () => {
|
|
760
760
|
try {
|
|
@@ -778,7 +778,7 @@ function O6() {
|
|
|
778
778
|
return !0;
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
|
-
var
|
|
781
|
+
var m1 = { exports: {} }, l1 = {};
|
|
782
782
|
/**
|
|
783
783
|
* @license React
|
|
784
784
|
* react-jsx-runtime.production.min.js
|
|
@@ -812,9 +812,9 @@ var i1 = {};
|
|
|
812
812
|
* This source code is licensed under the MIT license found in the
|
|
813
813
|
* LICENSE file in the root directory of this source tree.
|
|
814
814
|
*/
|
|
815
|
-
var
|
|
815
|
+
var p3;
|
|
816
816
|
function Ve() {
|
|
817
|
-
return
|
|
817
|
+
return p3 || (p3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
818
818
|
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, C = "@@iterator";
|
|
819
819
|
function S(s) {
|
|
820
820
|
if (s === null || typeof s != "object")
|
|
@@ -825,14 +825,14 @@ function Ve() {
|
|
|
825
825
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
826
826
|
function x(s) {
|
|
827
827
|
{
|
|
828
|
-
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0),
|
|
829
|
-
v[
|
|
828
|
+
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
|
|
829
|
+
v[m - 1] = arguments[m];
|
|
830
830
|
W("error", s, v);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
function W(s, i, v) {
|
|
834
834
|
{
|
|
835
|
-
var
|
|
835
|
+
var m = b.ReactDebugCurrentFrame, E = m.getStackAddendum();
|
|
836
836
|
E !== "" && (i += "%s", v = v.concat([E]));
|
|
837
837
|
var T = v.map(function(y) {
|
|
838
838
|
return String(y);
|
|
@@ -840,19 +840,19 @@ function Ve() {
|
|
|
840
840
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
var C1 = !1, K = !1,
|
|
843
|
+
var C1 = !1, K = !1, B = !1, _ = !1, z = !1, o1;
|
|
844
844
|
o1 = Symbol.for("react.module.reference");
|
|
845
845
|
function b1(s) {
|
|
846
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || _ || s === a || C1 || K ||
|
|
846
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || _ || s === a || C1 || K || B || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === A || s.$$typeof === u || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
|
|
847
847
|
// types supported by any Flight configuration anywhere since
|
|
848
848
|
// we don't know which Flight build this will end up being used
|
|
849
849
|
// with.
|
|
850
850
|
s.$$typeof === o1 || s.getModuleId !== void 0));
|
|
851
851
|
}
|
|
852
852
|
function U3(s, i, v) {
|
|
853
|
-
var
|
|
854
|
-
if (
|
|
855
|
-
return
|
|
853
|
+
var m = s.displayName;
|
|
854
|
+
if (m)
|
|
855
|
+
return m;
|
|
856
856
|
var E = i.displayName || i.name || "";
|
|
857
857
|
return E !== "" ? v + "(" + E + ")" : v;
|
|
858
858
|
}
|
|
@@ -891,8 +891,8 @@ function Ve() {
|
|
|
891
891
|
case h:
|
|
892
892
|
return U3(s, s.render, "ForwardRef");
|
|
893
893
|
case A:
|
|
894
|
-
var
|
|
895
|
-
return
|
|
894
|
+
var m = s.displayName || null;
|
|
895
|
+
return m !== null ? m : J(s.type) || "Memo";
|
|
896
896
|
case F: {
|
|
897
897
|
var E = s, T = E._payload, y = E._init;
|
|
898
898
|
try {
|
|
@@ -973,8 +973,8 @@ function Ve() {
|
|
|
973
973
|
try {
|
|
974
974
|
throw Error();
|
|
975
975
|
} catch (E) {
|
|
976
|
-
var
|
|
977
|
-
I1 =
|
|
976
|
+
var m = E.stack.trim().match(/\n( *(at )?)/);
|
|
977
|
+
I1 = m && m[1] || "";
|
|
978
978
|
}
|
|
979
979
|
return `
|
|
980
980
|
` + I1 + s;
|
|
@@ -993,7 +993,7 @@ function Ve() {
|
|
|
993
993
|
if (v !== void 0)
|
|
994
994
|
return v;
|
|
995
995
|
}
|
|
996
|
-
var
|
|
996
|
+
var m;
|
|
997
997
|
R1 = !0;
|
|
998
998
|
var E = Error.prepareStackTrace;
|
|
999
999
|
Error.prepareStackTrace = void 0;
|
|
@@ -1012,14 +1012,14 @@ function Ve() {
|
|
|
1012
1012
|
try {
|
|
1013
1013
|
Reflect.construct(y, []);
|
|
1014
1014
|
} catch (V) {
|
|
1015
|
-
|
|
1015
|
+
m = V;
|
|
1016
1016
|
}
|
|
1017
1017
|
Reflect.construct(s, [], y);
|
|
1018
1018
|
} else {
|
|
1019
1019
|
try {
|
|
1020
1020
|
y.call();
|
|
1021
1021
|
} catch (V) {
|
|
1022
|
-
|
|
1022
|
+
m = V;
|
|
1023
1023
|
}
|
|
1024
1024
|
s.call(y.prototype);
|
|
1025
1025
|
}
|
|
@@ -1027,21 +1027,21 @@ function Ve() {
|
|
|
1027
1027
|
try {
|
|
1028
1028
|
throw Error();
|
|
1029
1029
|
} catch (V) {
|
|
1030
|
-
|
|
1030
|
+
m = V;
|
|
1031
1031
|
}
|
|
1032
1032
|
s();
|
|
1033
1033
|
}
|
|
1034
1034
|
} catch (V) {
|
|
1035
|
-
if (V &&
|
|
1035
|
+
if (V && m && typeof V.stack == "string") {
|
|
1036
1036
|
for (var j = V.stack.split(`
|
|
1037
|
-
`),
|
|
1038
|
-
`), $ = j.length - 1, L =
|
|
1037
|
+
`), O = m.stack.split(`
|
|
1038
|
+
`), $ = j.length - 1, L = O.length - 1; $ >= 1 && L >= 0 && j[$] !== O[L]; )
|
|
1039
1039
|
L--;
|
|
1040
1040
|
for (; $ >= 1 && L >= 0; $--, L--)
|
|
1041
|
-
if (j[$] !==
|
|
1041
|
+
if (j[$] !== O[L]) {
|
|
1042
1042
|
if ($ !== 1 || L !== 1)
|
|
1043
1043
|
do
|
|
1044
|
-
if ($--, L--, L < 0 || j[$] !==
|
|
1044
|
+
if ($--, L--, L < 0 || j[$] !== O[L]) {
|
|
1045
1045
|
var H = `
|
|
1046
1046
|
` + j[$].replace(" at new ", " at ");
|
|
1047
1047
|
return s.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", s.displayName)), typeof s == "function" && h1.set(s, H), H;
|
|
@@ -1083,7 +1083,7 @@ function Ve() {
|
|
|
1083
1083
|
case A:
|
|
1084
1084
|
return g1(s.type, i, v);
|
|
1085
1085
|
case F: {
|
|
1086
|
-
var
|
|
1086
|
+
var m = s, E = m._payload, T = m._init;
|
|
1087
1087
|
try {
|
|
1088
1088
|
return g1(T(E), i, v);
|
|
1089
1089
|
} catch {
|
|
@@ -1100,7 +1100,7 @@ function Ve() {
|
|
|
1100
1100
|
} else
|
|
1101
1101
|
N1.setExtraStackFrame(null);
|
|
1102
1102
|
}
|
|
1103
|
-
function Y3(s, i, v,
|
|
1103
|
+
function Y3(s, i, v, m, E) {
|
|
1104
1104
|
{
|
|
1105
1105
|
var T = Function.call.bind(c1);
|
|
1106
1106
|
for (var y in s)
|
|
@@ -1108,14 +1108,14 @@ function Ve() {
|
|
|
1108
1108
|
var j = void 0;
|
|
1109
1109
|
try {
|
|
1110
1110
|
if (typeof s[y] != "function") {
|
|
1111
|
-
var
|
|
1112
|
-
throw
|
|
1111
|
+
var O = Error((m || "React class") + ": " + v + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1112
|
+
throw O.name = "Invariant Violation", O;
|
|
1113
1113
|
}
|
|
1114
|
-
j = s[y](i, y,
|
|
1114
|
+
j = s[y](i, y, m, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1115
1115
|
} catch ($) {
|
|
1116
1116
|
j = $;
|
|
1117
1117
|
}
|
|
1118
|
-
j && !(j instanceof Error) && (f1(E), x("%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).",
|
|
1118
|
+
j && !(j instanceof Error) && (f1(E), x("%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).", m || "React class", v, y, typeof j), f1(null)), j instanceof Error && !(j.message in Q1) && (Q1[j.message] = !0, f1(E), x("Failed %s type: %s", v, j.message), f1(null));
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
@@ -1190,7 +1190,7 @@ function Ve() {
|
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
var s2 = function(s, i, v,
|
|
1193
|
+
var s2 = function(s, i, v, m, E, T, y) {
|
|
1194
1194
|
var j = {
|
|
1195
1195
|
// This tag allows us to uniquely identify this as a React Element
|
|
1196
1196
|
$$typeof: t,
|
|
@@ -1211,7 +1211,7 @@ function Ve() {
|
|
|
1211
1211
|
configurable: !1,
|
|
1212
1212
|
enumerable: !1,
|
|
1213
1213
|
writable: !1,
|
|
1214
|
-
value:
|
|
1214
|
+
value: m
|
|
1215
1215
|
}), Object.defineProperty(j, "_source", {
|
|
1216
1216
|
configurable: !1,
|
|
1217
1217
|
enumerable: !1,
|
|
@@ -1219,10 +1219,10 @@ function Ve() {
|
|
|
1219
1219
|
value: E
|
|
1220
1220
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
1221
1221
|
};
|
|
1222
|
-
function c2(s, i, v,
|
|
1222
|
+
function c2(s, i, v, m, E) {
|
|
1223
1223
|
{
|
|
1224
|
-
var T, y = {}, j = null,
|
|
1225
|
-
v !== void 0 && (t3(v), j = "" + v), e2(i) && (t3(i.key), j = "" + i.key), N3(i) && (
|
|
1224
|
+
var T, y = {}, j = null, O = null;
|
|
1225
|
+
v !== void 0 && (t3(v), j = "" + v), e2(i) && (t3(i.key), j = "" + i.key), N3(i) && (O = i.ref, t2(i, E));
|
|
1226
1226
|
for (T in i)
|
|
1227
1227
|
c1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
|
|
1228
1228
|
if (s && s.defaultProps) {
|
|
@@ -1230,11 +1230,11 @@ function Ve() {
|
|
|
1230
1230
|
for (T in $)
|
|
1231
1231
|
y[T] === void 0 && (y[T] = $[T]);
|
|
1232
1232
|
}
|
|
1233
|
-
if (j ||
|
|
1233
|
+
if (j || O) {
|
|
1234
1234
|
var L = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1235
|
-
j && n2(y, L),
|
|
1235
|
+
j && n2(y, L), O && o2(y, L);
|
|
1236
1236
|
}
|
|
1237
|
-
return s2(s, j,
|
|
1237
|
+
return s2(s, j, O, E, m, n3.current, y);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
|
|
@@ -1287,8 +1287,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1287
1287
|
if (l3[v])
|
|
1288
1288
|
return;
|
|
1289
1289
|
l3[v] = !0;
|
|
1290
|
-
var
|
|
1291
|
-
s && s._owner && s._owner !== T1.current && (
|
|
1290
|
+
var m = "";
|
|
1291
|
+
s && s._owner && s._owner !== T1.current && (m = " It was passed a child from " + J(s._owner.type) + "."), t1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, m), t1(null);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
function a3(s, i) {
|
|
@@ -1297,8 +1297,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1297
1297
|
return;
|
|
1298
1298
|
if (E1(s))
|
|
1299
1299
|
for (var v = 0; v < s.length; v++) {
|
|
1300
|
-
var
|
|
1301
|
-
_1(
|
|
1300
|
+
var m = s[v];
|
|
1301
|
+
_1(m) && i3(m, i);
|
|
1302
1302
|
}
|
|
1303
1303
|
else if (_1(s))
|
|
1304
1304
|
s._store && (s._store.validated = !0);
|
|
@@ -1325,8 +1325,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1325
1325
|
else
|
|
1326
1326
|
return;
|
|
1327
1327
|
if (v) {
|
|
1328
|
-
var
|
|
1329
|
-
Y3(v, s.props, "prop",
|
|
1328
|
+
var m = J(i);
|
|
1329
|
+
Y3(v, s.props, "prop", m, s);
|
|
1330
1330
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1331
1331
|
D1 = !0;
|
|
1332
1332
|
var E = J(i);
|
|
@@ -1338,9 +1338,9 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1338
1338
|
function a2(s) {
|
|
1339
1339
|
{
|
|
1340
1340
|
for (var i = Object.keys(s.props), v = 0; v < i.length; v++) {
|
|
1341
|
-
var
|
|
1342
|
-
if (
|
|
1343
|
-
t1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
1341
|
+
var m = i[v];
|
|
1342
|
+
if (m !== "children" && m !== "key") {
|
|
1343
|
+
t1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), t1(null);
|
|
1344
1344
|
break;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
@@ -1348,14 +1348,14 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
var u3 = {};
|
|
1351
|
-
function d3(s, i, v,
|
|
1351
|
+
function d3(s, i, v, m, E, T) {
|
|
1352
1352
|
{
|
|
1353
1353
|
var y = b1(s);
|
|
1354
1354
|
if (!y) {
|
|
1355
1355
|
var j = "";
|
|
1356
1356
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1357
|
-
var
|
|
1358
|
-
|
|
1357
|
+
var O = r2();
|
|
1358
|
+
O ? j += O : j += r3();
|
|
1359
1359
|
var $;
|
|
1360
1360
|
s === null ? $ = "null" : E1(s) ? $ = "array" : s !== void 0 && s.$$typeof === t ? ($ = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, j);
|
|
1361
1361
|
}
|
|
@@ -1365,7 +1365,7 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1365
1365
|
if (y) {
|
|
1366
1366
|
var H = i.children;
|
|
1367
1367
|
if (H !== void 0)
|
|
1368
|
-
if (
|
|
1368
|
+
if (m)
|
|
1369
1369
|
if (E1(H)) {
|
|
1370
1370
|
for (var n1 = 0; n1 < H.length; n1++)
|
|
1371
1371
|
a3(H[n1], s);
|
|
@@ -1402,9 +1402,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1402
1402
|
i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
|
|
1403
1403
|
})()), i1;
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1405
|
+
var m3;
|
|
1406
1406
|
function Ue() {
|
|
1407
|
-
return
|
|
1407
|
+
return m3 || (m3 = 1, process.env.NODE_ENV === "production" ? m1.exports = We() : m1.exports = Ve()), m1.exports;
|
|
1408
1408
|
}
|
|
1409
1409
|
var n = Ue();
|
|
1410
1410
|
const Fe = "_mwfit_ppa3l_1", He = {
|
|
@@ -1418,7 +1418,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1418
1418
|
] }),
|
|
1419
1419
|
c && /* @__PURE__ */ n.jsx("button", { className: "btn btn-secondary btn-lg", onPointerDown: e, children: "Reconnect" })
|
|
1420
1420
|
] });
|
|
1421
|
-
},
|
|
1421
|
+
}, k3 = C2({
|
|
1422
1422
|
sendMessage: () => null,
|
|
1423
1423
|
sendSimpleMessage: () => null,
|
|
1424
1424
|
addEventHandler: () => null,
|
|
@@ -1427,7 +1427,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1427
1427
|
}), qe = ({ children: e }) => {
|
|
1428
1428
|
const t = W1(), o = I3();
|
|
1429
1429
|
x1(() => {
|
|
1430
|
-
t(
|
|
1430
|
+
t(O3());
|
|
1431
1431
|
}, [t]);
|
|
1432
1432
|
const c = r1(
|
|
1433
1433
|
(h, f) => {
|
|
@@ -1453,7 +1453,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1453
1453
|
t(Pe());
|
|
1454
1454
|
}, [t]);
|
|
1455
1455
|
return /* @__PURE__ */ n.jsx(
|
|
1456
|
-
|
|
1456
|
+
k3.Provider,
|
|
1457
1457
|
{
|
|
1458
1458
|
value: {
|
|
1459
1459
|
sendMessage: c,
|
|
@@ -1465,9 +1465,9 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1465
1465
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
|
-
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store:
|
|
1468
|
+
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: ke, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
|
|
1469
1469
|
function I() {
|
|
1470
|
-
return b2(
|
|
1470
|
+
return b2(k3);
|
|
1471
1471
|
}
|
|
1472
1472
|
function Ge({
|
|
1473
1473
|
onPress: e,
|
|
@@ -1569,7 +1569,7 @@ function V3(e) {
|
|
|
1569
1569
|
t(`/device/${e}/powerToggle`, null);
|
|
1570
1570
|
} };
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function k1(e) {
|
|
1573
1573
|
const { sendMessage: t } = I(), o = D(e);
|
|
1574
1574
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1575
1575
|
t(`/device/${e}/${r}`, null);
|
|
@@ -1587,7 +1587,7 @@ function ze(e) {
|
|
|
1587
1587
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1588
1588
|
}
|
|
1589
1589
|
function F6(e) {
|
|
1590
|
-
const t = D(e), o = V3(e), c =
|
|
1590
|
+
const t = D(e), o = V3(e), c = k1(e), r = k1(e), l = Ye(e), u = ze(e);
|
|
1591
1591
|
if (t)
|
|
1592
1592
|
return {
|
|
1593
1593
|
avrState: t,
|
|
@@ -1641,7 +1641,7 @@ function Y6(e) {
|
|
|
1641
1641
|
const t = D(e);
|
|
1642
1642
|
if (t)
|
|
1643
1643
|
return {
|
|
1644
|
-
|
|
1644
|
+
state: t
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
1647
|
function z6(e) {
|
|
@@ -1716,12 +1716,13 @@ function st(e) {
|
|
|
1716
1716
|
} : void 0;
|
|
1717
1717
|
}
|
|
1718
1718
|
function ct(e) {
|
|
1719
|
-
const { sendMessage: t } = I();
|
|
1720
|
-
return X(() =>
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1719
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1720
|
+
return X(() => o ? {
|
|
1721
|
+
state: o,
|
|
1722
|
+
dial: (u) => t(`/device/${e}/dial`, { value: u }),
|
|
1723
|
+
endAllCalls: () => t(`/device/${e}/endAllCalls`, null),
|
|
1724
|
+
sendDtmf: (u) => t(`/device/${e}/dtmf`, { value: u })
|
|
1725
|
+
} : void 0, [e, t, o]);
|
|
1725
1726
|
}
|
|
1726
1727
|
function rt(e) {
|
|
1727
1728
|
const t = D(e);
|
|
@@ -1805,11 +1806,11 @@ function wt(e) {
|
|
|
1805
1806
|
t(`/room/${e}/source`, r);
|
|
1806
1807
|
} };
|
|
1807
1808
|
}
|
|
1808
|
-
function
|
|
1809
|
+
function pt(e) {
|
|
1809
1810
|
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown");
|
|
1810
1811
|
return { dvrList: o, replay: c };
|
|
1811
1812
|
}
|
|
1812
|
-
function
|
|
1813
|
+
function mt(e) {
|
|
1813
1814
|
const { sendMessage: t } = I(), o = D(e);
|
|
1814
1815
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1815
1816
|
t(`/device/${e}/shadeUp`, null);
|
|
@@ -1890,7 +1891,7 @@ function bt(e) {
|
|
|
1890
1891
|
} : void 0;
|
|
1891
1892
|
}
|
|
1892
1893
|
function yt(e) {
|
|
1893
|
-
const t = D(e), o = V3(e), c =
|
|
1894
|
+
const t = D(e), o = V3(e), c = k1(e);
|
|
1894
1895
|
if (!t) return;
|
|
1895
1896
|
const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1896
1897
|
return {
|
|
@@ -1976,9 +1977,9 @@ function _t(e) {
|
|
|
1976
1977
|
function At(e) {
|
|
1977
1978
|
const t = W1();
|
|
1978
1979
|
return [() => {
|
|
1979
|
-
t(
|
|
1980
|
+
t(k.addSyncState(e));
|
|
1980
1981
|
}, () => {
|
|
1981
|
-
t(
|
|
1982
|
+
t(k.removeSyncState(e));
|
|
1982
1983
|
}, Ze(e)];
|
|
1983
1984
|
}
|
|
1984
1985
|
function $t() {
|
|
@@ -2923,7 +2924,7 @@ const Pt = () => {
|
|
|
2923
2924
|
active: e,
|
|
2924
2925
|
disabled: o
|
|
2925
2926
|
}
|
|
2926
|
-
),
|
|
2927
|
+
), p8 = ({
|
|
2927
2928
|
active: e,
|
|
2928
2929
|
className: t = "",
|
|
2929
2930
|
disabled: o
|
|
@@ -2972,7 +2973,7 @@ const Pt = () => {
|
|
|
2972
2973
|
active: e,
|
|
2973
2974
|
disabled: o
|
|
2974
2975
|
}
|
|
2975
|
-
),
|
|
2976
|
+
), m8 = ({
|
|
2976
2977
|
active: e,
|
|
2977
2978
|
className: t = "",
|
|
2978
2979
|
disabled: o
|
|
@@ -3285,7 +3286,7 @@ const Pt = () => {
|
|
|
3285
3286
|
active: e,
|
|
3286
3287
|
disabled: o
|
|
3287
3288
|
}
|
|
3288
|
-
),
|
|
3289
|
+
), Bt = ({
|
|
3289
3290
|
active: e,
|
|
3290
3291
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
3291
3292
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3711,8 +3712,8 @@ const Pt = () => {
|
|
|
3711
3712
|
Moon: g8,
|
|
3712
3713
|
Playstation: f8,
|
|
3713
3714
|
Podium: w8,
|
|
3714
|
-
Power:
|
|
3715
|
-
Privacy:
|
|
3715
|
+
Power: p8,
|
|
3716
|
+
Privacy: m8,
|
|
3716
3717
|
Question: M8,
|
|
3717
3718
|
RightArrow: x8,
|
|
3718
3719
|
RoomPC: Z8,
|
|
@@ -3726,7 +3727,7 @@ const Pt = () => {
|
|
|
3726
3727
|
X: E8,
|
|
3727
3728
|
Xbox: T8
|
|
3728
3729
|
};
|
|
3729
|
-
function
|
|
3730
|
+
function Ot({
|
|
3730
3731
|
name: e,
|
|
3731
3732
|
iconsDictionary: t = _8,
|
|
3732
3733
|
...o
|
|
@@ -3734,20 +3735,20 @@ function Bt({
|
|
|
3734
3735
|
const c = t[e] ?? null;
|
|
3735
3736
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3736
3737
|
}
|
|
3737
|
-
const A8 = "_grid_1cmpp_1", $8 = "_header_1cmpp_11", L8 = "_content_1cmpp_17", P8 = "_footer_1cmpp_23",
|
|
3738
|
+
const A8 = "_grid_1cmpp_1", $8 = "_header_1cmpp_11", L8 = "_content_1cmpp_17", P8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", a1 = {
|
|
3738
3739
|
grid: A8,
|
|
3739
3740
|
header: $8,
|
|
3740
3741
|
content: L8,
|
|
3741
3742
|
footer: P8,
|
|
3742
|
-
volume:
|
|
3743
|
-
},
|
|
3743
|
+
volume: B8
|
|
3744
|
+
}, kt = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
|
|
3744
3745
|
/* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
|
|
3745
3746
|
/* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
|
|
3746
3747
|
r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
|
|
3747
3748
|
/* @__PURE__ */ n.jsx("div", { className: a1.footer, children: t })
|
|
3748
|
-
] }),
|
|
3749
|
-
grid:
|
|
3750
|
-
header:
|
|
3749
|
+
] }), O8 = "_grid_11w5q_1", k8 = "_header_11w5q_11", W8 = "_content_11w5q_17", M1 = {
|
|
3750
|
+
grid: O8,
|
|
3751
|
+
header: k8,
|
|
3751
3752
|
content: W8
|
|
3752
3753
|
}, Wt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${M1.grid}`, children: [
|
|
3753
3754
|
/* @__PURE__ */ n.jsx("div", { className: M1.header, children: t }),
|
|
@@ -3803,14 +3804,14 @@ export {
|
|
|
3803
3804
|
g8 as IconMultiMoon,
|
|
3804
3805
|
f8 as IconMultiPlaystation,
|
|
3805
3806
|
w8 as IconMultiPodium,
|
|
3806
|
-
|
|
3807
|
-
|
|
3807
|
+
p8 as IconMultiPower,
|
|
3808
|
+
m8 as IconMultiPrivacy,
|
|
3808
3809
|
M8 as IconMultiQuestion,
|
|
3809
3810
|
x8 as IconMultiRightArrow,
|
|
3810
3811
|
Z8 as IconMultiRoomPC,
|
|
3811
3812
|
S8 as IconMultiShade,
|
|
3812
3813
|
j8 as IconMultiSun,
|
|
3813
|
-
|
|
3814
|
+
Bt as IconMultiTemplate,
|
|
3814
3815
|
C8 as IconMultiUpArrow,
|
|
3815
3816
|
b8 as IconMultiVolDown,
|
|
3816
3817
|
y8 as IconMultiVolMute,
|
|
@@ -3818,29 +3819,29 @@ export {
|
|
|
3818
3819
|
R8 as IconMultiWireless,
|
|
3819
3820
|
E8 as IconMultiX,
|
|
3820
3821
|
T8 as IconMultiXbox,
|
|
3821
|
-
|
|
3822
|
+
kt as MainLayout,
|
|
3822
3823
|
Ht as MessageHandler,
|
|
3823
3824
|
W6 as MobileControlProvider,
|
|
3824
3825
|
R as MultiStateIconContainer,
|
|
3825
|
-
|
|
3826
|
+
Ot as NamedIconButton,
|
|
3826
3827
|
Ut as ShareState,
|
|
3827
3828
|
Wt as TechLayout,
|
|
3828
3829
|
Vt as TechPinLayout,
|
|
3829
3830
|
L3 as WS_ADD_EVENT_HANDLER,
|
|
3830
3831
|
_3 as WS_CONNECT,
|
|
3831
3832
|
A3 as WS_DISCONNECT,
|
|
3832
|
-
|
|
3833
|
+
B3 as WS_RECONNECT,
|
|
3833
3834
|
P3 as WS_REMOVE_EVENT_HANDLER,
|
|
3834
3835
|
$3 as WS_SEND_MESSAGE,
|
|
3835
|
-
|
|
3836
|
+
k3 as WebsocketContext,
|
|
3836
3837
|
T3 as appConfigActions,
|
|
3837
|
-
|
|
3838
|
+
Be as createWebSocketMiddleware,
|
|
3838
3839
|
w1 as devicesActions,
|
|
3839
3840
|
Ft as getBaseLocation,
|
|
3840
3841
|
f3 as httpClient,
|
|
3841
3842
|
_8 as iconsDictionary,
|
|
3842
3843
|
Kt as roomOffSourceKey,
|
|
3843
|
-
|
|
3844
|
+
p1 as roomsActions,
|
|
3844
3845
|
U as runtimeConfigActions,
|
|
3845
3846
|
C3 as selectAllDevices,
|
|
3846
3847
|
T2 as selectApiPath,
|
|
@@ -3852,7 +3853,7 @@ export {
|
|
|
3852
3853
|
ve as selectDeviceSupportsInterface,
|
|
3853
3854
|
fe as selectError,
|
|
3854
3855
|
y3 as selectInterfacesForDevice,
|
|
3855
|
-
|
|
3856
|
+
me as selectIsSyncStateValuePresent,
|
|
3856
3857
|
de as selectIsTouchpanel,
|
|
3857
3858
|
D2 as selectLogoPath,
|
|
3858
3859
|
V1 as selectModalVisibility,
|
|
@@ -3871,30 +3872,30 @@ export {
|
|
|
3871
3872
|
J2 as selectRoomIsOn,
|
|
3872
3873
|
Y2 as selectRoomIsWarmingUp,
|
|
3873
3874
|
se as selectRoomKey,
|
|
3874
|
-
|
|
3875
|
-
|
|
3875
|
+
k2 as selectRoomLevelControls,
|
|
3876
|
+
B2 as selectRoomName,
|
|
3876
3877
|
K2 as selectRoomProgramAudioDestinationKey,
|
|
3877
3878
|
Q2 as selectRoomShareState,
|
|
3878
3879
|
W2 as selectRoomSourceList,
|
|
3879
|
-
|
|
3880
|
+
O2 as selectRoomVolume,
|
|
3880
3881
|
L2 as selectRooms,
|
|
3881
3882
|
ae as selectRuntimeInfo,
|
|
3882
3883
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
3883
3884
|
ge as selectShowPopoverById,
|
|
3884
3885
|
we as selectShowReconnect,
|
|
3885
3886
|
re as selectSystemUuid,
|
|
3886
|
-
|
|
3887
|
+
pe as selectTheme,
|
|
3887
3888
|
ue as selectTouchpanelKey,
|
|
3888
3889
|
le as selectUserCode,
|
|
3889
3890
|
oe as selectWsIsConnected,
|
|
3890
3891
|
N2 as selectZoomRoomControllerKey,
|
|
3891
|
-
|
|
3892
|
-
|
|
3892
|
+
ke as store,
|
|
3893
|
+
k as uiActions,
|
|
3893
3894
|
je as uiReducer,
|
|
3894
3895
|
Q8 as useApiPath,
|
|
3895
3896
|
X8 as useAppConfig,
|
|
3896
3897
|
W1 as useAppDispatch,
|
|
3897
|
-
|
|
3898
|
+
p as useAppSelector,
|
|
3898
3899
|
F6 as useAvrControl,
|
|
3899
3900
|
w as useButtonHeldHeartbeat,
|
|
3900
3901
|
H6 as useCameraBase,
|
|
@@ -3931,7 +3932,7 @@ export {
|
|
|
3931
3932
|
st as useIHasCameras,
|
|
3932
3933
|
ct as useIHasDialer,
|
|
3933
3934
|
V3 as useIHasPowerControl,
|
|
3934
|
-
|
|
3935
|
+
k1 as useIHasSelectableItems,
|
|
3935
3936
|
rt as useIHumiditySensor,
|
|
3936
3937
|
lt as useILevelControls,
|
|
3937
3938
|
it as useILightingScenes,
|
|
@@ -3943,15 +3944,15 @@ export {
|
|
|
3943
3944
|
gt as useIRunDefaultPresentRoute,
|
|
3944
3945
|
ft as useIRunDirectRouteAction,
|
|
3945
3946
|
wt as useIRunRouteAction,
|
|
3946
|
-
|
|
3947
|
-
|
|
3947
|
+
pt as useISetTopBoxControls,
|
|
3948
|
+
mt as useIShadesOpenCloseStop,
|
|
3948
3949
|
Mt as useIShutdownPromptTimer,
|
|
3949
3950
|
xt as useISwitchedOutput,
|
|
3950
3951
|
Zt as useITechPassword,
|
|
3951
3952
|
St as useITemperatureSensor,
|
|
3952
3953
|
jt as useITheme,
|
|
3953
3954
|
Ct as useITransport,
|
|
3954
|
-
|
|
3955
|
+
k6 as useInitialize,
|
|
3955
3956
|
T6 as useInterfacesForDevice,
|
|
3956
3957
|
Ze as useIsSyncStateValuePresent,
|
|
3957
3958
|
R6 as useIsTouchpanel,
|
|
@@ -3960,7 +3961,7 @@ export {
|
|
|
3960
3961
|
Et as useOverflow,
|
|
3961
3962
|
e6 as usePartnerMetadata,
|
|
3962
3963
|
Ge as usePressHoldRelease,
|
|
3963
|
-
|
|
3964
|
+
p6 as useRoomAdvancedSharingActive,
|
|
3964
3965
|
l6 as useRoomAudioControlPointList,
|
|
3965
3966
|
v6 as useRoomCodecContentDestinationKey,
|
|
3966
3967
|
n6 as useRoomConfiguration,
|
|
@@ -3977,7 +3978,7 @@ export {
|
|
|
3977
3978
|
ne as useRoomLevelControls,
|
|
3978
3979
|
c6 as useRoomName,
|
|
3979
3980
|
d6 as useRoomProgramAudioDestinationKey,
|
|
3980
|
-
|
|
3981
|
+
m6 as useRoomShareState,
|
|
3981
3982
|
r6 as useRoomSourceList,
|
|
3982
3983
|
S1 as useRoomState,
|
|
3983
3984
|
te as useRoomVolume,
|
|
@@ -3992,7 +3993,7 @@ export {
|
|
|
3992
3993
|
At as useStateIsSynced,
|
|
3993
3994
|
$t as useSystemControl,
|
|
3994
3995
|
j6 as useSystemUuid,
|
|
3995
|
-
|
|
3996
|
+
B6 as useTheme,
|
|
3996
3997
|
Lt as useTimeAndDate,
|
|
3997
3998
|
I6 as useTouchpanelKey,
|
|
3998
3999
|
yt as useTwoWayDisplayBase,
|
|
@@ -4000,8 +4001,8 @@ export {
|
|
|
4000
4001
|
I as useWebsocketContext,
|
|
4001
4002
|
I3 as useWsIsConnected,
|
|
4002
4003
|
$e as wsAddEventHandler,
|
|
4003
|
-
|
|
4004
|
-
|
|
4004
|
+
O3 as wsConnect,
|
|
4005
|
+
O6 as wsDisconnect,
|
|
4005
4006
|
Pe as wsReconnect,
|
|
4006
4007
|
Le as wsRemoveEventHandler,
|
|
4007
4008
|
Ae as wsSendMessage
|