@pepperdash/mobile-control-react-app-core 1.25.0-feat-essentials-v3.2 → 1.25.0-feat-essentials-v3.3
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 +427 -410
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/interfaces/index.d.ts +1 -0
- package/dist/shared/hooks/interfaces/index.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIDialerCallStatus.d.ts +36 -0
- package/dist/shared/hooks/interfaces/useIDialerCallStatus.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
|
4
4
|
import M3, { AxiosError as p2 } 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 v1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
|
|
7
|
-
import x3, { createContext as C2, useEffect as Z1, useCallback as l1, useContext as b2, useRef as d1, useMemo as
|
|
7
|
+
import x3, { createContext as C2, useEffect as Z1, useCallback as l1, useContext as b2, useRef as d1, useMemo as z, 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
10
|
const W1 = M2.withTypes(), m = x2.withTypes(), S1 = (e) => e.appConfig, E2 = M(
|
|
@@ -16,18 +16,18 @@ const W1 = M2.withTypes(), m = x2.withTypes(), S1 = (e) => e.appConfig, E2 = M(
|
|
|
16
16
|
), D2 = M(
|
|
17
17
|
S1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
|
-
),
|
|
19
|
+
), $2 = M(
|
|
20
20
|
S1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), X8 = () => m(E2), Q8 = () => m(T2), N8 = () => m(D2), e6 = () => m(
|
|
22
|
+
), X8 = () => m(E2), Q8 = () => m(T2), N8 = () => m(D2), e6 = () => m($2), j3 = (e) => e.devices, C3 = M(
|
|
23
23
|
j3,
|
|
24
24
|
(e) => e
|
|
25
|
-
),
|
|
25
|
+
), _2 = (e) => M(
|
|
26
26
|
j3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
28
|
), t6 = () => m(C3);
|
|
29
29
|
function T(e) {
|
|
30
|
-
return m(
|
|
30
|
+
return m(_2(e));
|
|
31
31
|
}
|
|
32
32
|
const L = (e) => e.rooms, P2 = (e) => M(
|
|
33
33
|
L,
|
|
@@ -38,10 +38,10 @@ const L = (e) => e.rooms, P2 = (e) => M(
|
|
|
38
38
|
), L2 = (e) => M(
|
|
39
39
|
L,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
),
|
|
41
|
+
), B2 = (e) => M(
|
|
42
42
|
L,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
44
|
+
), O2 = (e, t) => M(
|
|
45
45
|
L,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
47
|
), k2 = (e) => M(
|
|
@@ -158,9 +158,9 @@ function j1(e) {
|
|
|
158
158
|
return m(L2(e));
|
|
159
159
|
}
|
|
160
160
|
const s6 = j1, c6 = (e) => m(
|
|
161
|
-
|
|
161
|
+
B2(e)
|
|
162
162
|
), te = (e, t) => m(
|
|
163
|
-
|
|
163
|
+
O2(e, t)
|
|
164
164
|
), ne = (e) => m(k2(e)) || void 0, r6 = (e) => m(W2(e)), l6 = (e) => m(V2(e)), i6 = (e) => m(U2(e)), a6 = (e) => m(H2(e)), u6 = (e) => m(F2(e)), d6 = (e) => m(K2(e)), v6 = (e) => m(q2(e)), h6 = (e) => m(G2(e)), g6 = (e) => m(Y2(e)), f6 = (e) => m(z2(e)), w6 = (e) => m(J2(e)), m6 = (e) => m(X2(e)), p6 = (e) => m(Q2(e)), M6 = (e) => m((t) => ee(t, e)), x6 = (e) => m(N2(e)), G = (e) => e.runtimeConfig, oe = M(
|
|
165
165
|
G,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
@@ -216,7 +216,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
216
216
|
), fe = M(e1, (e) => e.error), we = M(
|
|
217
217
|
e1,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
), me = M(e1, (e) => e.theme), pe = (e) => M(e1, (t) => t.syncState.includes(e)),
|
|
219
|
+
), me = M(e1, (e) => e.theme), pe = (e) => M(e1, (t) => t.syncState.includes(e)), $6 = () => m(V1("showShutdownModal")), _6 = () => m(V1("showIncomingCallModal")), P6 = (e) => m(V1(e)), A6 = (e) => m(he(e)), L6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), B6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -289,7 +289,7 @@ const s6 = j1, 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 = v1({
|
|
293
293
|
name: "devices",
|
|
294
294
|
initialState: v3,
|
|
295
295
|
reducers: {
|
|
@@ -311,9 +311,9 @@ const s6 = j1, c6 = (e) => m(
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}), m1 = {
|
|
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 = v1({
|
|
333
333
|
name: "rooms",
|
|
334
334
|
initialState: g3,
|
|
335
335
|
reducers: {
|
|
@@ -346,9 +346,9 @@ const g3 = {}, B1 = v1({
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}), p1 = {
|
|
349
|
-
setRoomState:
|
|
350
|
-
clearRooms:
|
|
351
|
-
}, Te =
|
|
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 = v1({
|
|
|
414
414
|
e.touchpanelKey = t.payload;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
}), U = D3.actions,
|
|
417
|
+
}), U = D3.actions, $e = D3.reducer, P1 = M3.create(), $3 = "websocket/connect", _3 = "websocket/disconnect", P3 = "websocket/sendMessage", A3 = "websocket/addEventHandler", L3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", O3 = () => ({ type: $3 }), O6 = () => ({ type: _3 }), _e = (e, t) => ({
|
|
418
418
|
type: P3,
|
|
419
419
|
payload: { messageType: e, content: t }
|
|
420
420
|
}), Pe = (e, t, o) => ({
|
|
@@ -423,66 +423,66 @@ const g3 = {}, B1 = v1({
|
|
|
423
423
|
}), Ae = (e, t) => ({
|
|
424
424
|
type: L3,
|
|
425
425
|
payload: { eventType: e, key: t }
|
|
426
|
-
}), Le = () => ({ type:
|
|
426
|
+
}), Le = () => ({ type: B3 }), Be = () => {
|
|
427
427
|
const e = {
|
|
428
428
|
client: null,
|
|
429
429
|
token: null,
|
|
430
430
|
waitingToReconnect: !1,
|
|
431
431
|
reconnectTimer: null,
|
|
432
432
|
eventHandlers: {}
|
|
433
|
-
}, t = async (
|
|
433
|
+
}, t = async (d) => {
|
|
434
434
|
try {
|
|
435
|
-
const Z = location.pathname.split("/").filter((
|
|
435
|
+
const Z = location.pathname.split("/").filter((b) => b.length > 0);
|
|
436
436
|
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
437
|
-
const
|
|
437
|
+
const C = `/${Z.join("/")}`, S = await P1.get(
|
|
438
438
|
"/_local-config/_config.local.json",
|
|
439
|
-
{ baseURL:
|
|
439
|
+
{ baseURL: C }
|
|
440
440
|
);
|
|
441
441
|
if (S.status === 200 && S.data) {
|
|
442
|
-
const
|
|
443
|
-
|
|
442
|
+
const b = S.data.apiPath;
|
|
443
|
+
d(T3.setAppConfig(S.data));
|
|
444
444
|
const x = await P1.get(
|
|
445
|
-
`${
|
|
445
|
+
`${b}/version`
|
|
446
446
|
);
|
|
447
|
-
x.status === 200 && x.data &&
|
|
447
|
+
x.status === 200 && x.data && d(U.setRuntimeConfig(x.data));
|
|
448
448
|
}
|
|
449
449
|
} catch (Z) {
|
|
450
450
|
console.error("Error getting config", Z);
|
|
451
451
|
}
|
|
452
452
|
return !0;
|
|
453
|
-
}, o = async (
|
|
453
|
+
}, o = async (d, Z, C) => {
|
|
454
454
|
try {
|
|
455
455
|
const S = await P1.get(
|
|
456
|
-
`${
|
|
456
|
+
`${d}/ui/joinroom?token=${Z}`
|
|
457
457
|
);
|
|
458
|
-
return S.status === 200 && S.data ? (
|
|
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 p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"),
|
|
460
|
+
return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
|
|
461
461
|
W.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 ?
|
|
464
|
+
), null) : (console.error("Error getting room data", S), S instanceof Error ? C(W.setErrorMessage(S.message)) : C(W.setErrorMessage("Error getting room data")), null);
|
|
465
465
|
}
|
|
466
|
-
}, c = (
|
|
466
|
+
}, c = (d) => {
|
|
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..."),
|
|
468
|
+
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), d(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
|
-
}, l = (
|
|
473
|
-
|
|
474
|
-
}, a = (
|
|
472
|
+
}, l = (d) => {
|
|
473
|
+
d(W.setShowReconnect(!0)), d(U.setWebsocketIsConnected(!1)), d(m1.clearDevices()), d(p1.clearRooms()), d(W.clearAllModals()), d(W.clearSyncState());
|
|
474
|
+
}, a = (d, Z) => {
|
|
475
475
|
var F;
|
|
476
|
-
const
|
|
476
|
+
const C = d(), S = Z ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected, B = (F = C.runtimeConfig.roomData.config) == null ? void 0 : F.runtimeInfo.essentialsVersion;
|
|
477
477
|
console.log("WebSocket middleware: Essentials version", {
|
|
478
|
-
essentialsVersion:
|
|
478
|
+
essentialsVersion: B
|
|
479
479
|
});
|
|
480
|
-
const o1 =
|
|
481
|
-
if (!Z || !x || !
|
|
480
|
+
const o1 = B == null ? void 0 : B.startsWith("3.");
|
|
481
|
+
if (!Z || !x || !b) {
|
|
482
482
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
483
483
|
hasRoomKey: !!Z,
|
|
484
484
|
isConnected: x,
|
|
485
|
-
hasClientId: !!
|
|
485
|
+
hasClientId: !!b
|
|
486
486
|
});
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
@@ -491,19 +491,19 @@ const g3 = {}, B1 = v1({
|
|
|
491
491
|
), e.client.send(
|
|
492
492
|
JSON.stringify({
|
|
493
493
|
type: `/room/${S}/fullStatus`,
|
|
494
|
-
clientId:
|
|
494
|
+
clientId: b,
|
|
495
495
|
content: null
|
|
496
496
|
})
|
|
497
497
|
)) : e.client.send(
|
|
498
498
|
JSON.stringify({
|
|
499
499
|
type: `/room/${S}/status`,
|
|
500
|
-
clientId:
|
|
500
|
+
clientId: b,
|
|
501
501
|
content: null
|
|
502
502
|
})
|
|
503
503
|
));
|
|
504
|
-
}, g = async (
|
|
504
|
+
}, g = async (d, Z) => {
|
|
505
505
|
console.log("WebSocket middleware: Attempting to connect...");
|
|
506
|
-
const
|
|
506
|
+
const C = Z(), { apiPath: S } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
|
|
507
507
|
if (!S || !e.token) {
|
|
508
508
|
console.log(
|
|
509
509
|
"WebSocket middleware: Cannot connect - missing requirements",
|
|
@@ -526,66 +526,66 @@ const g3 = {}, B1 = v1({
|
|
|
526
526
|
}
|
|
527
527
|
e.waitingToReconnect = !0;
|
|
528
528
|
try {
|
|
529
|
-
const x = await o(S, e.token,
|
|
529
|
+
const x = await o(S, e.token, d);
|
|
530
530
|
if (!x) {
|
|
531
531
|
console.log(
|
|
532
532
|
"WebSocket middleware: Failed to get room data, will retry..."
|
|
533
|
-
), c(
|
|
533
|
+
), c(d);
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
536
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
537
537
|
const o1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, F = new WebSocket(o1);
|
|
538
|
-
e.client = F, F.onopen = (
|
|
539
|
-
console.log("WebSocket middleware: Connected",
|
|
540
|
-
e.client === F && F.readyState === WebSocket.OPEN &&
|
|
538
|
+
e.client = F, F.onopen = (O) => {
|
|
539
|
+
console.log("WebSocket middleware: Connected", O.type, O.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
540
|
+
e.client === F && F.readyState === WebSocket.OPEN && d(U.setWebsocketIsConnected(!0));
|
|
541
541
|
}, 100);
|
|
542
|
-
}, F.onerror = (
|
|
543
|
-
console.error("WebSocket middleware: Error",
|
|
544
|
-
}, F.onclose = (
|
|
545
|
-
var
|
|
542
|
+
}, F.onerror = (O) => {
|
|
543
|
+
console.error("WebSocket middleware: Error", O), l(d);
|
|
544
|
+
}, F.onclose = (O) => {
|
|
545
|
+
var $;
|
|
546
546
|
if (console.log(
|
|
547
547
|
"WebSocket middleware: Disconnected",
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
),
|
|
551
|
-
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(
|
|
548
|
+
O.reason,
|
|
549
|
+
O.code
|
|
550
|
+
), O.code === 4100) {
|
|
551
|
+
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(d);
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
if (e.waitingToReconnect = !0,
|
|
555
|
-
console.log("WebSocket middleware: User code changed"), r(),
|
|
554
|
+
if (e.waitingToReconnect = !0, O.code === 4e3) {
|
|
555
|
+
console.log("WebSocket middleware: User code changed"), r(), d(
|
|
556
556
|
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
557
|
-
),
|
|
557
|
+
), d(
|
|
558
558
|
W.setErrorMessage(
|
|
559
559
|
"User code changed. Click reconnect to enter the new code"
|
|
560
560
|
)
|
|
561
|
-
), l(
|
|
561
|
+
), l(d);
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
|
-
if (
|
|
565
|
-
console.log("WebSocket middleware: Room combination changed"), r(),
|
|
564
|
+
if (O.code === 4002) {
|
|
565
|
+
console.log("WebSocket middleware: Room combination changed"), r(), d(
|
|
566
566
|
W.setErrorMessage(
|
|
567
567
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
568
568
|
)
|
|
569
|
-
), l(
|
|
569
|
+
), l(d);
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
if (
|
|
573
|
-
if (!!((
|
|
572
|
+
if (O.code === 4001)
|
|
573
|
+
if (!!(($ = Z().runtimeConfig) != null && $.touchpanelKey))
|
|
574
574
|
console.log(
|
|
575
575
|
"WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
|
|
576
576
|
);
|
|
577
|
-
else if (
|
|
577
|
+
else if (b)
|
|
578
578
|
console.log(
|
|
579
579
|
"WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
|
|
580
580
|
);
|
|
581
581
|
else {
|
|
582
582
|
console.log(
|
|
583
583
|
"WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
|
|
584
|
-
), r(),
|
|
584
|
+
), r(), d(
|
|
585
585
|
W.setErrorMessage(
|
|
586
586
|
"Processor has disconnected. Click Reconnect to continue."
|
|
587
587
|
)
|
|
588
|
-
), l(
|
|
588
|
+
), l(d);
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
591
|
if (e.client)
|
|
@@ -596,47 +596,47 @@ const g3 = {}, B1 = v1({
|
|
|
596
596
|
console.log("WebSocket middleware: Closed by client");
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"),
|
|
599
|
+
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), d(
|
|
600
600
|
W.setErrorMessage(
|
|
601
601
|
"Connection lost. Attempting to reconnect..."
|
|
602
602
|
)
|
|
603
|
-
),
|
|
604
|
-
}, F.onmessage = (
|
|
603
|
+
), d(U.setWebsocketIsConnected(!1)), d(m1.clearDevices()), d(p1.clearRooms()), d(W.clearAllModals()), d(W.clearSyncState()), c(d);
|
|
604
|
+
}, F.onmessage = (O) => {
|
|
605
605
|
try {
|
|
606
|
-
const
|
|
607
|
-
if (
|
|
608
|
-
F.close(4001,
|
|
606
|
+
const $ = JSON.parse(O.data);
|
|
607
|
+
if ($.type === "close") {
|
|
608
|
+
F.close(4001, $.content);
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
|
-
if (
|
|
612
|
-
switch (
|
|
611
|
+
if ($.type.startsWith("/system/"))
|
|
612
|
+
switch ($.type) {
|
|
613
613
|
case "/system/touchpanelKey":
|
|
614
|
-
|
|
614
|
+
d(
|
|
615
615
|
U.setTouchpanelKey(
|
|
616
|
-
|
|
616
|
+
$.content
|
|
617
617
|
)
|
|
618
618
|
);
|
|
619
619
|
break;
|
|
620
620
|
case "/system/roomKey":
|
|
621
|
-
|
|
621
|
+
d(p1.clearRooms()), d(m1.clearDevices()), d(W.clearSyncState()), d(
|
|
622
622
|
U.setCurrentRoomKey(
|
|
623
|
-
|
|
623
|
+
$.content
|
|
624
624
|
)
|
|
625
625
|
);
|
|
626
626
|
break;
|
|
627
627
|
case "/system/userCodeChanged":
|
|
628
|
-
|
|
629
|
-
U.setUserCode(
|
|
628
|
+
d(
|
|
629
|
+
U.setUserCode($.content)
|
|
630
630
|
);
|
|
631
631
|
break;
|
|
632
632
|
case "/system/roomCombinationChanged":
|
|
633
633
|
window.location.reload();
|
|
634
634
|
break;
|
|
635
635
|
case "/system/deviceInterfaces": {
|
|
636
|
-
const
|
|
637
|
-
|
|
636
|
+
const J = $.content;
|
|
637
|
+
d(
|
|
638
638
|
U.setDeviceInterfaces(
|
|
639
|
-
|
|
639
|
+
J.deviceInterfaces
|
|
640
640
|
)
|
|
641
641
|
);
|
|
642
642
|
break;
|
|
@@ -644,18 +644,18 @@ const g3 = {}, B1 = v1({
|
|
|
644
644
|
default:
|
|
645
645
|
console.log(
|
|
646
646
|
"WebSocket middleware: Unhandled system message",
|
|
647
|
-
|
|
647
|
+
$
|
|
648
648
|
);
|
|
649
649
|
break;
|
|
650
650
|
}
|
|
651
|
-
else if (
|
|
652
|
-
const
|
|
653
|
-
|
|
651
|
+
else if ($.type.startsWith("/event/")) {
|
|
652
|
+
const J = e.eventHandlers[$.type];
|
|
653
|
+
J || console.log(
|
|
654
654
|
"WebSocket middleware: No handlers found for event type",
|
|
655
|
-
|
|
656
|
-
),
|
|
655
|
+
$.type
|
|
656
|
+
), J && Object.values(J).forEach((s1) => {
|
|
657
657
|
try {
|
|
658
|
-
s1(
|
|
658
|
+
s1($);
|
|
659
659
|
} catch (b1) {
|
|
660
660
|
console.error(
|
|
661
661
|
"WebSocket middleware: Event handler error",
|
|
@@ -663,9 +663,9 @@ const g3 = {}, B1 = v1({
|
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
|
-
} else
|
|
667
|
-
} catch (
|
|
668
|
-
console.error("WebSocket middleware: Message handling error",
|
|
666
|
+
} else $.type.startsWith("/room/") ? d(p1.setRoomState($)) : $.type.startsWith("/device/") && d(m1.setDeviceState($));
|
|
667
|
+
} catch ($) {
|
|
668
|
+
console.error("WebSocket middleware: Message handling error", $);
|
|
669
669
|
}
|
|
670
670
|
}, e.waitingToReconnect = !1;
|
|
671
671
|
} catch (x) {
|
|
@@ -673,78 +673,78 @@ const g3 = {}, B1 = v1({
|
|
|
673
673
|
}
|
|
674
674
|
}, h = () => {
|
|
675
675
|
e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
|
|
676
|
-
}, f = (
|
|
677
|
-
const S =
|
|
678
|
-
e.client &&
|
|
679
|
-
JSON.stringify({ type:
|
|
676
|
+
}, f = (d, Z, C) => {
|
|
677
|
+
const S = C(), b = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
|
|
678
|
+
e.client && b ? e.client.send(
|
|
679
|
+
JSON.stringify({ type: d, clientId: x, content: Z })
|
|
680
680
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
681
|
-
},
|
|
682
|
-
e.eventHandlers[
|
|
683
|
-
},
|
|
684
|
-
e.eventHandlers[
|
|
681
|
+
}, u = (d, Z, C) => {
|
|
682
|
+
e.eventHandlers[d] || (e.eventHandlers[d] = {}), e.eventHandlers[d][Z] = C, console.log("WebSocket middleware: Event handler added", d, Z);
|
|
683
|
+
}, _ = (d, Z) => {
|
|
684
|
+
e.eventHandlers[d] && (delete e.eventHandlers[d][Z], console.log(
|
|
685
685
|
"WebSocket middleware: Event handler removed",
|
|
686
|
-
|
|
686
|
+
d,
|
|
687
687
|
Z
|
|
688
688
|
));
|
|
689
|
-
}, H = (
|
|
690
|
-
const Z =
|
|
691
|
-
window.location.href = x ? `${
|
|
689
|
+
}, H = (d) => {
|
|
690
|
+
const Z = d(), { gatewayAppPath: C } = Z.appConfig.config, S = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, B = `${C}?uuid=${b}&roomKey=${S}`;
|
|
691
|
+
window.location.href = x ? `${B}&Code=${x}` : B;
|
|
692
692
|
};
|
|
693
|
-
return (
|
|
694
|
-
const S = Z(
|
|
695
|
-
if (!
|
|
693
|
+
return (d) => (Z) => (C) => {
|
|
694
|
+
const S = Z(C);
|
|
695
|
+
if (!C || typeof C != "object" || !("type" in C))
|
|
696
696
|
return S;
|
|
697
|
-
const
|
|
697
|
+
const b = C;
|
|
698
698
|
return (async () => {
|
|
699
|
-
switch (
|
|
700
|
-
case
|
|
701
|
-
let
|
|
702
|
-
|
|
699
|
+
switch (b.type) {
|
|
700
|
+
case $3: {
|
|
701
|
+
let B = new URLSearchParams(window.location.search).get("token");
|
|
702
|
+
B ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, B)) : (B = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = B, await t(d.dispatch), await g(d.dispatch, d.getState);
|
|
703
703
|
break;
|
|
704
704
|
}
|
|
705
|
-
case
|
|
705
|
+
case _3:
|
|
706
706
|
h();
|
|
707
707
|
break;
|
|
708
708
|
case P3:
|
|
709
709
|
f(
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
b.payload.messageType,
|
|
711
|
+
b.payload.content,
|
|
712
|
+
d.getState
|
|
713
713
|
);
|
|
714
714
|
break;
|
|
715
715
|
case A3:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
716
|
+
u(
|
|
717
|
+
b.payload.eventType,
|
|
718
|
+
b.payload.key,
|
|
719
|
+
b.payload.callback
|
|
720
720
|
);
|
|
721
721
|
break;
|
|
722
722
|
case L3:
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
723
|
+
_(
|
|
724
|
+
b.payload.eventType,
|
|
725
|
+
b.payload.key
|
|
726
726
|
);
|
|
727
727
|
break;
|
|
728
|
-
case
|
|
729
|
-
H(
|
|
728
|
+
case B3:
|
|
729
|
+
H(d.getState);
|
|
730
730
|
break;
|
|
731
731
|
default:
|
|
732
|
-
if (
|
|
733
|
-
|
|
732
|
+
if (C.type === U.setWebsocketIsConnected.type)
|
|
733
|
+
C.payload === !0 && (console.log(
|
|
734
734
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
735
|
-
), setTimeout(() => a(
|
|
736
|
-
else if (
|
|
737
|
-
const x =
|
|
738
|
-
x.runtimeConfig.websocket.isConnected && (
|
|
735
|
+
), setTimeout(() => a(d.getState), 100));
|
|
736
|
+
else if (C.type === U.setRoomData.type) {
|
|
737
|
+
const x = d.getState(), B = C.payload;
|
|
738
|
+
x.runtimeConfig.websocket.isConnected && (B != null && B.clientId) && (console.log(
|
|
739
739
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
740
|
-
), setTimeout(() => a(
|
|
741
|
-
} else if (
|
|
742
|
-
const x =
|
|
740
|
+
), setTimeout(() => a(d.getState), 100));
|
|
741
|
+
} else if (C.type === U.setCurrentRoomKey.type) {
|
|
742
|
+
const x = C.payload;
|
|
743
743
|
x && (console.log(
|
|
744
744
|
"[WebSocket Middleware] Room changed to:",
|
|
745
745
|
x,
|
|
746
746
|
", requesting room status..."
|
|
747
|
-
), setTimeout(() => a(
|
|
747
|
+
), setTimeout(() => a(d.getState, x), 100));
|
|
748
748
|
}
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
@@ -752,20 +752,20 @@ const g3 = {}, B1 = v1({
|
|
|
752
752
|
console.error("WebSocket middleware: Error handling action", x);
|
|
753
753
|
}), S;
|
|
754
754
|
};
|
|
755
|
-
},
|
|
755
|
+
}, Oe = S2({
|
|
756
756
|
appConfig: be,
|
|
757
|
-
runtimeConfig:
|
|
757
|
+
runtimeConfig: $e,
|
|
758
758
|
rooms: Te,
|
|
759
759
|
devices: ye,
|
|
760
760
|
ui: je
|
|
761
761
|
}), ke = j2({
|
|
762
|
-
reducer:
|
|
762
|
+
reducer: Oe,
|
|
763
763
|
middleware: (e) => e({
|
|
764
764
|
serializableCheck: {
|
|
765
765
|
// Ignore WebSocket actions with callbacks
|
|
766
766
|
ignoredActions: ["websocket/addEventHandler"]
|
|
767
767
|
}
|
|
768
|
-
}).concat(
|
|
768
|
+
}).concat(Be())
|
|
769
769
|
}), f3 = M3.create();
|
|
770
770
|
function k6() {
|
|
771
771
|
const e = W1();
|
|
@@ -807,11 +807,11 @@ function We() {
|
|
|
807
807
|
w3 = 1;
|
|
808
808
|
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, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
809
809
|
function a(g, h, f) {
|
|
810
|
-
var
|
|
811
|
-
f !== void 0 && (H = "" + f), h.key !== void 0 && (H = "" + h.key), h.ref !== void 0 && (
|
|
812
|
-
for (
|
|
813
|
-
if (g && g.defaultProps) for (
|
|
814
|
-
return { $$typeof: t, type: g, key: H, ref:
|
|
810
|
+
var u, _ = {}, H = null, d = null;
|
|
811
|
+
f !== void 0 && (H = "" + f), h.key !== void 0 && (H = "" + h.key), h.ref !== void 0 && (d = h.ref);
|
|
812
|
+
for (u in h) c.call(h, u) && !l.hasOwnProperty(u) && (_[u] = h[u]);
|
|
813
|
+
if (g && g.defaultProps) for (u in h = g.defaultProps, h) _[u] === void 0 && (_[u] = h[u]);
|
|
814
|
+
return { $$typeof: t, type: g, key: H, ref: d, props: _, _owner: r.current };
|
|
815
815
|
}
|
|
816
816
|
return i1.Fragment = o, i1.jsx = a, i1.jsxs = a, i1;
|
|
817
817
|
}
|
|
@@ -828,24 +828,24 @@ var a1 = {};
|
|
|
828
828
|
var m3;
|
|
829
829
|
function Ve() {
|
|
830
830
|
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
831
|
-
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"), a = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"),
|
|
831
|
+
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"), a = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), Z = Symbol.iterator, C = "@@iterator";
|
|
832
832
|
function S(s) {
|
|
833
833
|
if (s === null || typeof s != "object")
|
|
834
834
|
return null;
|
|
835
|
-
var i = Z && s[Z] || s[
|
|
835
|
+
var i = Z && s[Z] || s[C];
|
|
836
836
|
return typeof i == "function" ? i : null;
|
|
837
837
|
}
|
|
838
|
-
var
|
|
838
|
+
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
839
839
|
function x(s) {
|
|
840
840
|
{
|
|
841
841
|
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
842
842
|
v[p - 1] = arguments[p];
|
|
843
|
-
|
|
843
|
+
B("error", s, v);
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function B(s, i, v) {
|
|
847
847
|
{
|
|
848
|
-
var p =
|
|
848
|
+
var p = b.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
849
849
|
E !== "" && (i += "%s", v = v.concat([E]));
|
|
850
850
|
var D = v.map(function(I) {
|
|
851
851
|
return String(I);
|
|
@@ -853,10 +853,10 @@ function Ve() {
|
|
|
853
853
|
D.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, D);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var o1 = !1, F = !1,
|
|
856
|
+
var o1 = !1, F = !1, O = !1, $ = !1, J = !1, s1;
|
|
857
857
|
s1 = Symbol.for("react.module.reference");
|
|
858
858
|
function b1(s) {
|
|
859
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l ||
|
|
859
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || J || s === r || s === f || s === u || $ || s === d || o1 || F || O || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === _ || s.$$typeof === a || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
|
|
860
860
|
// types supported by any Flight configuration anywhere since
|
|
861
861
|
// we don't know which Flight build this will end up being used
|
|
862
862
|
// with.
|
|
@@ -872,7 +872,7 @@ function Ve() {
|
|
|
872
872
|
function U1(s) {
|
|
873
873
|
return s.displayName || "Context";
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function X(s) {
|
|
876
876
|
if (s == null)
|
|
877
877
|
return null;
|
|
878
878
|
if (typeof s.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
@@ -890,7 +890,7 @@ function Ve() {
|
|
|
890
890
|
return "StrictMode";
|
|
891
891
|
case f:
|
|
892
892
|
return "Suspense";
|
|
893
|
-
case
|
|
893
|
+
case u:
|
|
894
894
|
return "SuspenseList";
|
|
895
895
|
}
|
|
896
896
|
if (typeof s == "object")
|
|
@@ -903,13 +903,13 @@ function Ve() {
|
|
|
903
903
|
return U1(v._context) + ".Provider";
|
|
904
904
|
case h:
|
|
905
905
|
return U3(s, s.render, "ForwardRef");
|
|
906
|
-
case
|
|
906
|
+
case _:
|
|
907
907
|
var p = s.displayName || null;
|
|
908
|
-
return p !== null ? p :
|
|
908
|
+
return p !== null ? p : X(s.type) || "Memo";
|
|
909
909
|
case H: {
|
|
910
910
|
var E = s, D = E._payload, I = E._init;
|
|
911
911
|
try {
|
|
912
|
-
return
|
|
912
|
+
return X(I(D));
|
|
913
913
|
} catch {
|
|
914
914
|
return null;
|
|
915
915
|
}
|
|
@@ -979,7 +979,7 @@ function Ve() {
|
|
|
979
979
|
c1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
var y1 =
|
|
982
|
+
var y1 = b.ReactCurrentDispatcher, I1;
|
|
983
983
|
function h1(s, i, v) {
|
|
984
984
|
{
|
|
985
985
|
if (I1 === void 0)
|
|
@@ -1046,17 +1046,17 @@ function Ve() {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
} catch (V) {
|
|
1048
1048
|
if (V && p && typeof V.stack == "string") {
|
|
1049
|
-
for (var
|
|
1049
|
+
for (var y = V.stack.split(`
|
|
1050
1050
|
`), k = p.stack.split(`
|
|
1051
|
-
`), P =
|
|
1051
|
+
`), P = y.length - 1, A = k.length - 1; P >= 1 && A >= 0 && y[P] !== k[A]; )
|
|
1052
1052
|
A--;
|
|
1053
1053
|
for (; P >= 1 && A >= 0; P--, A--)
|
|
1054
|
-
if (
|
|
1054
|
+
if (y[P] !== k[A]) {
|
|
1055
1055
|
if (P !== 1 || A !== 1)
|
|
1056
1056
|
do
|
|
1057
|
-
if (P--, A--, A < 0 ||
|
|
1057
|
+
if (P--, A--, A < 0 || y[P] !== k[A]) {
|
|
1058
1058
|
var K = `
|
|
1059
|
-
` +
|
|
1059
|
+
` + y[P].replace(" at new ", " at ");
|
|
1060
1060
|
return s.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", s.displayName)), typeof s == "function" && g1.set(s, K), K;
|
|
1061
1061
|
}
|
|
1062
1062
|
while (P >= 1 && A >= 0);
|
|
@@ -1086,14 +1086,14 @@ function Ve() {
|
|
|
1086
1086
|
switch (s) {
|
|
1087
1087
|
case f:
|
|
1088
1088
|
return h1("Suspense");
|
|
1089
|
-
case
|
|
1089
|
+
case u:
|
|
1090
1090
|
return h1("SuspenseList");
|
|
1091
1091
|
}
|
|
1092
1092
|
if (typeof s == "object")
|
|
1093
1093
|
switch (s.$$typeof) {
|
|
1094
1094
|
case h:
|
|
1095
1095
|
return q3(s.render);
|
|
1096
|
-
case
|
|
1096
|
+
case _:
|
|
1097
1097
|
return f1(s.type, i, v);
|
|
1098
1098
|
case H: {
|
|
1099
1099
|
var p = s, E = p._payload, D = p._init;
|
|
@@ -1105,7 +1105,7 @@ function Ve() {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return "";
|
|
1107
1107
|
}
|
|
1108
|
-
var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 =
|
|
1108
|
+
var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
|
|
1109
1109
|
function w1(s) {
|
|
1110
1110
|
if (s) {
|
|
1111
1111
|
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
@@ -1118,17 +1118,17 @@ function Ve() {
|
|
|
1118
1118
|
var D = Function.call.bind(r1);
|
|
1119
1119
|
for (var I in s)
|
|
1120
1120
|
if (D(s, I)) {
|
|
1121
|
-
var
|
|
1121
|
+
var y = void 0;
|
|
1122
1122
|
try {
|
|
1123
1123
|
if (typeof s[I] != "function") {
|
|
1124
1124
|
var k = Error((p || "React class") + ": " + v + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1125
1125
|
throw k.name = "Invariant Violation", k;
|
|
1126
1126
|
}
|
|
1127
|
-
|
|
1127
|
+
y = s[I](i, I, p, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1128
1128
|
} catch (P) {
|
|
1129
|
-
|
|
1129
|
+
y = P;
|
|
1130
1130
|
}
|
|
1131
|
-
|
|
1131
|
+
y && !(y instanceof Error) && (w1(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).", p || "React class", v, I, typeof y), w1(null)), y instanceof Error && !(y.message in Q1) && (Q1[y.message] = !0, w1(E), x("Failed %s type: %s", v, y.message), w1(null));
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
@@ -1156,7 +1156,7 @@ function Ve() {
|
|
|
1156
1156
|
if (X3(s))
|
|
1157
1157
|
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
|
|
1158
1158
|
}
|
|
1159
|
-
var n3 =
|
|
1159
|
+
var n3 = b.ReactCurrentOwner, Q3 = {
|
|
1160
1160
|
key: !0,
|
|
1161
1161
|
ref: !0,
|
|
1162
1162
|
__self: !0,
|
|
@@ -1204,7 +1204,7 @@ function Ve() {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
var s2 = function(s, i, v, p, E, D, I) {
|
|
1207
|
-
var
|
|
1207
|
+
var y = {
|
|
1208
1208
|
// This tag allows us to uniquely identify this as a React Element
|
|
1209
1209
|
$$typeof: t,
|
|
1210
1210
|
// Built-in properties that belong on the element
|
|
@@ -1215,27 +1215,27 @@ function Ve() {
|
|
|
1215
1215
|
// Record the component responsible for creating this element.
|
|
1216
1216
|
_owner: D
|
|
1217
1217
|
};
|
|
1218
|
-
return
|
|
1218
|
+
return y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
1219
1219
|
configurable: !1,
|
|
1220
1220
|
enumerable: !1,
|
|
1221
1221
|
writable: !0,
|
|
1222
1222
|
value: !1
|
|
1223
|
-
}), Object.defineProperty(
|
|
1223
|
+
}), Object.defineProperty(y, "_self", {
|
|
1224
1224
|
configurable: !1,
|
|
1225
1225
|
enumerable: !1,
|
|
1226
1226
|
writable: !1,
|
|
1227
1227
|
value: p
|
|
1228
|
-
}), Object.defineProperty(
|
|
1228
|
+
}), Object.defineProperty(y, "_source", {
|
|
1229
1229
|
configurable: !1,
|
|
1230
1230
|
enumerable: !1,
|
|
1231
1231
|
writable: !1,
|
|
1232
1232
|
value: E
|
|
1233
|
-
}), Object.freeze && (Object.freeze(
|
|
1233
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
1234
1234
|
};
|
|
1235
1235
|
function c2(s, i, v, p, E) {
|
|
1236
1236
|
{
|
|
1237
|
-
var D, I = {},
|
|
1238
|
-
v !== void 0 && (t3(v),
|
|
1237
|
+
var D, I = {}, y = null, k = null;
|
|
1238
|
+
v !== void 0 && (t3(v), y = "" + v), e2(i) && (t3(i.key), y = "" + i.key), N3(i) && (k = i.ref, t2(i, E));
|
|
1239
1239
|
for (D in i)
|
|
1240
1240
|
r1.call(i, D) && !Q3.hasOwnProperty(D) && (I[D] = i[D]);
|
|
1241
1241
|
if (s && s.defaultProps) {
|
|
@@ -1243,14 +1243,14 @@ function Ve() {
|
|
|
1243
1243
|
for (D in P)
|
|
1244
1244
|
I[D] === void 0 && (I[D] = P[D]);
|
|
1245
1245
|
}
|
|
1246
|
-
if (
|
|
1246
|
+
if (y || k) {
|
|
1247
1247
|
var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1248
|
-
|
|
1248
|
+
y && n2(I, A), k && o2(I, A);
|
|
1249
1249
|
}
|
|
1250
|
-
return s2(s,
|
|
1250
|
+
return s2(s, y, k, E, p, n3.current, I);
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
var T1 =
|
|
1253
|
+
var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
|
|
1254
1254
|
function t1(s) {
|
|
1255
1255
|
if (s) {
|
|
1256
1256
|
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
@@ -1260,13 +1260,13 @@ function Ve() {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
var D1;
|
|
1262
1262
|
D1 = !1;
|
|
1263
|
-
function
|
|
1263
|
+
function $1(s) {
|
|
1264
1264
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
1265
1265
|
}
|
|
1266
1266
|
function r3() {
|
|
1267
1267
|
{
|
|
1268
1268
|
if (T1.current) {
|
|
1269
|
-
var s =
|
|
1269
|
+
var s = X(T1.current.type);
|
|
1270
1270
|
if (s)
|
|
1271
1271
|
return `
|
|
1272
1272
|
|
|
@@ -1301,7 +1301,7 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1301
1301
|
return;
|
|
1302
1302
|
l3[v] = !0;
|
|
1303
1303
|
var p = "";
|
|
1304
|
-
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " +
|
|
1304
|
+
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + X(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, p), t1(null);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
function a3(s, i) {
|
|
@@ -1311,15 +1311,15 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1311
1311
|
if (E1(s))
|
|
1312
1312
|
for (var v = 0; v < s.length; v++) {
|
|
1313
1313
|
var p = s[v];
|
|
1314
|
-
|
|
1314
|
+
$1(p) && i3(p, i);
|
|
1315
1315
|
}
|
|
1316
|
-
else if (
|
|
1316
|
+
else if ($1(s))
|
|
1317
1317
|
s._store && (s._store.validated = !0);
|
|
1318
1318
|
else if (s) {
|
|
1319
1319
|
var E = S(s);
|
|
1320
1320
|
if (typeof E == "function" && E !== s.entries)
|
|
1321
1321
|
for (var D = E.call(s), I; !(I = D.next()).done; )
|
|
1322
|
-
|
|
1322
|
+
$1(I.value) && i3(I.value, i);
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
@@ -1333,16 +1333,16 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1333
1333
|
v = i.propTypes;
|
|
1334
1334
|
else if (typeof i == "object" && (i.$$typeof === h || // Note: Memo only checks outer props here.
|
|
1335
1335
|
// Inner props are checked in the reconciler.
|
|
1336
|
-
i.$$typeof ===
|
|
1336
|
+
i.$$typeof === _))
|
|
1337
1337
|
v = i.propTypes;
|
|
1338
1338
|
else
|
|
1339
1339
|
return;
|
|
1340
1340
|
if (v) {
|
|
1341
|
-
var p =
|
|
1341
|
+
var p = X(i);
|
|
1342
1342
|
Y3(v, s.props, "prop", p, s);
|
|
1343
1343
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1344
1344
|
D1 = !0;
|
|
1345
|
-
var E =
|
|
1345
|
+
var E = X(i);
|
|
1346
1346
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
1347
1347
|
}
|
|
1348
1348
|
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -1365,12 +1365,12 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1365
1365
|
{
|
|
1366
1366
|
var I = b1(s);
|
|
1367
1367
|
if (!I) {
|
|
1368
|
-
var
|
|
1369
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
1368
|
+
var y = "";
|
|
1369
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1370
1370
|
var k = r2();
|
|
1371
|
-
k ?
|
|
1371
|
+
k ? y += k : y += r3();
|
|
1372
1372
|
var P;
|
|
1373
|
-
s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (
|
|
1373
|
+
s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (X(s.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : P = 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", P, y);
|
|
1374
1374
|
}
|
|
1375
1375
|
var A = c2(s, i, v, E, D);
|
|
1376
1376
|
if (A == null)
|
|
@@ -1389,17 +1389,17 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1389
1389
|
a3(K, s);
|
|
1390
1390
|
}
|
|
1391
1391
|
if (r1.call(i, "key")) {
|
|
1392
|
-
var N =
|
|
1392
|
+
var N = X(s), V = Object.keys(i).filter(function(f2) {
|
|
1393
1393
|
return f2 !== "key";
|
|
1394
|
-
}),
|
|
1395
|
-
if (!u3[N +
|
|
1394
|
+
}), _1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1395
|
+
if (!u3[N + _1]) {
|
|
1396
1396
|
var g2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1397
1397
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
1398
1398
|
let props = %s;
|
|
1399
1399
|
<%s {...props} />
|
|
1400
1400
|
React keys must be passed directly to JSX without using spread:
|
|
1401
1401
|
let props = %s;
|
|
1402
|
-
<%s key={someKey} {...props} />`,
|
|
1402
|
+
<%s key={someKey} {...props} />`, _1, N, g2, N), u3[N + _1] = !0;
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
1405
|
return s === c ? a2(A) : i2(A), A;
|
|
@@ -1423,7 +1423,7 @@ var n = Ue();
|
|
|
1423
1423
|
const He = "_mwfit_ppa3l_1", Fe = {
|
|
1424
1424
|
mwfit: He
|
|
1425
1425
|
}, Ke = () => {
|
|
1426
|
-
const { reconnect: e } =
|
|
1426
|
+
const { reconnect: e } = j(), t = I3(), o = Me(), c = xe();
|
|
1427
1427
|
return /* @__PURE__ */ n.jsxs("div", { className: "vh-100 d-flex flex-column flex-grow-1 justify-content-center align-items-center gap-5 ", children: [
|
|
1428
1428
|
/* @__PURE__ */ n.jsxs("div", { className: `${Fe.mwfit} mx-auto text-center`, children: [
|
|
1429
1429
|
t === void 0 ? /* @__PURE__ */ n.jsx("h2", { children: "Connecting..." }) : /* @__PURE__ */ n.jsx("h2", { children: "Disconnected" }),
|
|
@@ -1440,11 +1440,11 @@ const He = "_mwfit_ppa3l_1", Fe = {
|
|
|
1440
1440
|
}), qe = ({ children: e }) => {
|
|
1441
1441
|
const t = W1(), o = I3();
|
|
1442
1442
|
Z1(() => {
|
|
1443
|
-
t(
|
|
1443
|
+
t(O3());
|
|
1444
1444
|
}, [t]);
|
|
1445
1445
|
const c = l1(
|
|
1446
1446
|
(h, f) => {
|
|
1447
|
-
t(
|
|
1447
|
+
t(_e(h, f));
|
|
1448
1448
|
},
|
|
1449
1449
|
[t]
|
|
1450
1450
|
), r = l1(
|
|
@@ -1453,8 +1453,8 @@ const He = "_mwfit_ppa3l_1", Fe = {
|
|
|
1453
1453
|
},
|
|
1454
1454
|
[c]
|
|
1455
1455
|
), l = l1(
|
|
1456
|
-
(h, f,
|
|
1457
|
-
t(Pe(h, f,
|
|
1456
|
+
(h, f, u) => {
|
|
1457
|
+
t(Pe(h, f, u));
|
|
1458
1458
|
},
|
|
1459
1459
|
[t]
|
|
1460
1460
|
), a = l1(
|
|
@@ -1479,7 +1479,7 @@ const He = "_mwfit_ppa3l_1", Fe = {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
);
|
|
1481
1481
|
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: ke, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
|
|
1482
|
-
function
|
|
1482
|
+
function j() {
|
|
1483
1483
|
return b2(k3);
|
|
1484
1484
|
}
|
|
1485
1485
|
function Ge({
|
|
@@ -1498,17 +1498,17 @@ function Ge({
|
|
|
1498
1498
|
function f() {
|
|
1499
1499
|
a.current = !1, t == null || t(), l.current && (clearTimeout(l.current), l.current = null, g.current || c == null || c());
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function u() {
|
|
1502
1502
|
a.current && f();
|
|
1503
1503
|
}
|
|
1504
1504
|
return {
|
|
1505
1505
|
onPointerDown: h,
|
|
1506
1506
|
onPointerUp: f,
|
|
1507
|
-
onPointerLeave:
|
|
1507
|
+
onPointerLeave: u
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
function w(e, t) {
|
|
1511
|
-
const { sendMessage: c } =
|
|
1511
|
+
const { sendMessage: c } = j(), r = d1(null);
|
|
1512
1512
|
function l() {
|
|
1513
1513
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1514
1514
|
c(`${e}/${t}`, { value: "held" });
|
|
@@ -1520,24 +1520,24 @@ function w(e, t) {
|
|
|
1520
1520
|
return Ge({ onPress: l, onRelease: a });
|
|
1521
1521
|
}
|
|
1522
1522
|
function C1(e) {
|
|
1523
|
-
const { sendMessage: t } =
|
|
1524
|
-
return
|
|
1523
|
+
const { sendMessage: t } = j(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1524
|
+
return z(() => ({
|
|
1525
1525
|
volumeUp: o,
|
|
1526
1526
|
volumeDown: c,
|
|
1527
1527
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1528
1528
|
}), [e, t, o, c]);
|
|
1529
1529
|
}
|
|
1530
1530
|
function V6(e) {
|
|
1531
|
-
const { sendMessage: t } =
|
|
1532
|
-
return
|
|
1531
|
+
const { sendMessage: t } = j(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1532
|
+
return z(() => ({
|
|
1533
1533
|
volumeUp: o,
|
|
1534
1534
|
volumeDown: c,
|
|
1535
1535
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1536
1536
|
}), [e, t, o, c]);
|
|
1537
1537
|
}
|
|
1538
1538
|
function W3(e, t) {
|
|
1539
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1540
|
-
return
|
|
1539
|
+
const { sendMessage: o, sendSimpleMessage: c } = j(), r = C1(e);
|
|
1540
|
+
return z(() => {
|
|
1541
1541
|
if (!r) {
|
|
1542
1542
|
console.log("baseVolume is undefined");
|
|
1543
1543
|
return;
|
|
@@ -1556,8 +1556,8 @@ function W3(e, t) {
|
|
|
1556
1556
|
}, [r, t, e, o, c]);
|
|
1557
1557
|
}
|
|
1558
1558
|
function U6(e, t) {
|
|
1559
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1560
|
-
return
|
|
1559
|
+
const { sendMessage: o, sendSimpleMessage: c } = j(), r = C1(e);
|
|
1560
|
+
return z(() => !r || !t ? void 0 : {
|
|
1561
1561
|
...r,
|
|
1562
1562
|
volumeState: t,
|
|
1563
1563
|
setLevel: (h) => c(`${e}/level`, h),
|
|
@@ -1566,7 +1566,7 @@ function U6(e, t) {
|
|
|
1566
1566
|
}, [r, t, e, o, c]);
|
|
1567
1567
|
}
|
|
1568
1568
|
function Ye(e) {
|
|
1569
|
-
const t = T(e), o = `/device/${e}`, c =
|
|
1569
|
+
const t = T(e), o = `/device/${e}`, c = z(() => {
|
|
1570
1570
|
if (t)
|
|
1571
1571
|
return t.volume;
|
|
1572
1572
|
}, [t]);
|
|
@@ -1574,7 +1574,7 @@ function Ye(e) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
function V3(e) {
|
|
1576
1576
|
var a;
|
|
1577
|
-
const { sendMessage: t } =
|
|
1577
|
+
const { sendMessage: t } = j(), o = (a = T(e)) == null ? void 0 : a.powerState;
|
|
1578
1578
|
return { powerOn: () => {
|
|
1579
1579
|
t(`/device/${e}/powerOn`, null);
|
|
1580
1580
|
}, powerOff: () => {
|
|
@@ -1584,13 +1584,13 @@ function V3(e) {
|
|
|
1584
1584
|
}, powerState: o };
|
|
1585
1585
|
}
|
|
1586
1586
|
function k1(e) {
|
|
1587
|
-
const { sendMessage: t } =
|
|
1587
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1588
1588
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1589
1589
|
t(`/device/${e}/${r}`, null);
|
|
1590
1590
|
} } : void 0;
|
|
1591
1591
|
}
|
|
1592
1592
|
function ze(e) {
|
|
1593
|
-
const { sendMessage: t } =
|
|
1593
|
+
const { sendMessage: t } = j(), o = T(e), c = () => {
|
|
1594
1594
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1595
1595
|
}, r = () => {
|
|
1596
1596
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1613,7 +1613,7 @@ function H6(e) {
|
|
|
1613
1613
|
};
|
|
1614
1614
|
}
|
|
1615
1615
|
function F6(e) {
|
|
1616
|
-
const { sendMessage: t } =
|
|
1616
|
+
const { sendMessage: t } = j(), o = `/device/${e}`, c = T(e), r = w(o, "cameraUp"), l = w(o, "cameraDown"), a = w(o, "cameraLeft"), g = w(o, "cameraRight"), h = w(o, "cameraZoomIn"), f = w(o, "cameraZoomOut"), u = (_) => t("/camera/recallPreset", _);
|
|
1617
1617
|
if (c)
|
|
1618
1618
|
return {
|
|
1619
1619
|
state: c,
|
|
@@ -1623,7 +1623,7 @@ function F6(e) {
|
|
|
1623
1623
|
down: l,
|
|
1624
1624
|
left: a,
|
|
1625
1625
|
right: g,
|
|
1626
|
-
recallPreset:
|
|
1626
|
+
recallPreset: u
|
|
1627
1627
|
};
|
|
1628
1628
|
}
|
|
1629
1629
|
const K6 = ({ className: e }) => {
|
|
@@ -1639,7 +1639,7 @@ const K6 = ({ className: e }) => {
|
|
|
1639
1639
|
] });
|
|
1640
1640
|
};
|
|
1641
1641
|
function q6(e) {
|
|
1642
|
-
const { sendMessage: t } =
|
|
1642
|
+
const { sendMessage: t } = j(), o = T(e), c = `/device/${e}`;
|
|
1643
1643
|
return o ? { state: o, recallPreset: (a, g) => {
|
|
1644
1644
|
t(`${c}/presets/recall`, { deviceKey: a, preset: g });
|
|
1645
1645
|
}, savePresets: (a) => {
|
|
@@ -1659,7 +1659,7 @@ function Y6(e) {
|
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
1661
|
function z6(e) {
|
|
1662
|
-
const { sendMessage: t } =
|
|
1662
|
+
const { sendMessage: t } = j(), o = T(e), c = z(() => {
|
|
1663
1663
|
const r = `/device/${e}`;
|
|
1664
1664
|
return { setEntry: (g, h, f) => t(`${r}/setEntry`, { index: g, name: h, number: f }), dialEntry: (g) => t(`${r}/dialEntry`, { value: g }) };
|
|
1665
1665
|
}, [e, t]);
|
|
@@ -1690,11 +1690,27 @@ function N6(e) {
|
|
|
1690
1690
|
return t.deviceInfo || void 0;
|
|
1691
1691
|
}
|
|
1692
1692
|
function et(e) {
|
|
1693
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1694
|
+
return z(() => {
|
|
1695
|
+
if (!o) return;
|
|
1696
|
+
const c = `/device/${e}`;
|
|
1697
|
+
return {
|
|
1698
|
+
state: o,
|
|
1699
|
+
dial: (u) => t(`${c}/dial`, { value: u }),
|
|
1700
|
+
endCallById: (u) => t(`${c}/endCallById`, { value: u }),
|
|
1701
|
+
endAllCalls: () => t(`${c}/endAllCalls`, null),
|
|
1702
|
+
sendDtmf: (u) => t(`${c}/dtmf`, { value: u }),
|
|
1703
|
+
acceptById: (u) => t(`${c}/acceptById`, { value: u }),
|
|
1704
|
+
rejectById: (u) => t(`${c}/rejectById`, { value: u })
|
|
1705
|
+
};
|
|
1706
|
+
}, [e, t, o]);
|
|
1707
|
+
}
|
|
1708
|
+
function tt(e) {
|
|
1693
1709
|
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"), a = w(t, "select"), g = w(t, "menu"), h = w(t, "exit");
|
|
1694
1710
|
return { up: o, down: c, left: r, right: l, select: a, menu: g, exit: h };
|
|
1695
1711
|
}
|
|
1696
|
-
function
|
|
1697
|
-
const { sendMessage: t } =
|
|
1712
|
+
function nt(e) {
|
|
1713
|
+
const { sendMessage: t } = j();
|
|
1698
1714
|
return { recallPreset: (c) => {
|
|
1699
1715
|
t(
|
|
1700
1716
|
`/device/${e}/recallPreset`,
|
|
@@ -1702,12 +1718,12 @@ function tt(e) {
|
|
|
1702
1718
|
);
|
|
1703
1719
|
} };
|
|
1704
1720
|
}
|
|
1705
|
-
function
|
|
1721
|
+
function ot(e) {
|
|
1706
1722
|
const t = `/device/${e}`, o = w(t, "dvrList"), c = w(t, "record");
|
|
1707
1723
|
return { dvrList: o, record: c };
|
|
1708
1724
|
}
|
|
1709
|
-
function
|
|
1710
|
-
const { sendMessage: t } =
|
|
1725
|
+
function st(e) {
|
|
1726
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1711
1727
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1712
1728
|
t(`/device/${e}/setAutoMode`, null);
|
|
1713
1729
|
}, setManualMode: () => {
|
|
@@ -1720,9 +1736,9 @@ function ot(e) {
|
|
|
1720
1736
|
t(`/device/${e}/setRoomCombinationScenario`, h);
|
|
1721
1737
|
} } : void 0;
|
|
1722
1738
|
}
|
|
1723
|
-
function
|
|
1739
|
+
function ct(e) {
|
|
1724
1740
|
var a;
|
|
1725
|
-
const { sendMessage: t } =
|
|
1741
|
+
const { sendMessage: t } = j(), o = (a = T(e)) == null ? void 0 : a.cameraIsMuted, c = () => {
|
|
1726
1742
|
t(`/device/${e}/cameraMuteOn`, null);
|
|
1727
1743
|
}, r = () => {
|
|
1728
1744
|
t(`/device/${e}/cameraMuteOff`, null);
|
|
@@ -1732,9 +1748,9 @@ function st(e) {
|
|
|
1732
1748
|
if (o)
|
|
1733
1749
|
return { cameraMuteOn: c, cameraMuteOff: r, cameraMuteToggle: l, cameraIsMuted: o };
|
|
1734
1750
|
}
|
|
1735
|
-
function
|
|
1751
|
+
function rt(e) {
|
|
1736
1752
|
var l;
|
|
1737
|
-
const { sendMessage: t } =
|
|
1753
|
+
const { sendMessage: t } = j(), o = (l = T(e)) == null ? void 0 : l.presets, c = (a) => {
|
|
1738
1754
|
t(`/device/${e}/recallPreset`, a);
|
|
1739
1755
|
}, r = (a) => {
|
|
1740
1756
|
t(`/device/${e}/savePreset`, a);
|
|
@@ -1742,8 +1758,8 @@ function ct(e) {
|
|
|
1742
1758
|
if (o)
|
|
1743
1759
|
return { recallPreset: c, savePreset: r, presets: o };
|
|
1744
1760
|
}
|
|
1745
|
-
function
|
|
1746
|
-
const { sendMessage: t } =
|
|
1761
|
+
function lt(e) {
|
|
1762
|
+
const { sendMessage: t } = j(), o = `/device/${e}`, c = T(e);
|
|
1747
1763
|
return c ? {
|
|
1748
1764
|
state: c,
|
|
1749
1765
|
selectCamera: (l) => {
|
|
@@ -1751,50 +1767,50 @@ function rt(e) {
|
|
|
1751
1767
|
}
|
|
1752
1768
|
} : void 0;
|
|
1753
1769
|
}
|
|
1754
|
-
function
|
|
1755
|
-
const { sendMessage: t } =
|
|
1756
|
-
return
|
|
1770
|
+
function it(e) {
|
|
1771
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1772
|
+
return z(() => o ? {
|
|
1757
1773
|
state: o,
|
|
1758
1774
|
dial: (a) => t(`/device/${e}/dial`, { value: a }),
|
|
1759
1775
|
endAllCalls: () => t(`/device/${e}/endAllCalls`, null),
|
|
1760
1776
|
sendDtmf: (a) => t(`/device/${e}/dtmf`, { value: a })
|
|
1761
1777
|
} : void 0, [e, t, o]);
|
|
1762
1778
|
}
|
|
1763
|
-
function
|
|
1779
|
+
function at(e) {
|
|
1764
1780
|
const t = T(e);
|
|
1765
1781
|
if (t)
|
|
1766
1782
|
return { state: t };
|
|
1767
1783
|
}
|
|
1768
|
-
function
|
|
1769
|
-
const { sendMessage: t, sendSimpleMessage: o } =
|
|
1784
|
+
function ut(e) {
|
|
1785
|
+
const { sendMessage: t, sendSimpleMessage: o } = j(), c = T(e), r = ne(e), l = c || r;
|
|
1770
1786
|
return l ? {
|
|
1771
1787
|
levelState: l,
|
|
1772
|
-
setLevel: (
|
|
1773
|
-
muteToggle: (
|
|
1774
|
-
muteOn: (
|
|
1775
|
-
muteOff: (
|
|
1788
|
+
setLevel: (u, _) => o(`${u}/level`, _),
|
|
1789
|
+
muteToggle: (u) => t(`${u}/muteToggle`, null),
|
|
1790
|
+
muteOn: (u) => t(`${u}/muteOn`, null),
|
|
1791
|
+
muteOff: (u) => t(`${u}/muteOff`, null)
|
|
1776
1792
|
} : void 0;
|
|
1777
1793
|
}
|
|
1778
|
-
function
|
|
1779
|
-
const { sendMessage: t } =
|
|
1794
|
+
function dt(e) {
|
|
1795
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1780
1796
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1781
1797
|
t(`/device/${e}/selectScene`, r);
|
|
1782
1798
|
} } : void 0;
|
|
1783
1799
|
}
|
|
1784
|
-
function
|
|
1785
|
-
const { sendMessage: t } =
|
|
1800
|
+
function vt(e) {
|
|
1801
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1786
1802
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1787
1803
|
t(`/device/${e}/route`, r);
|
|
1788
1804
|
} } : void 0;
|
|
1789
1805
|
}
|
|
1790
|
-
function
|
|
1791
|
-
const { sendMessage: t } =
|
|
1806
|
+
function ht(e) {
|
|
1807
|
+
const { sendMessage: t } = j();
|
|
1792
1808
|
return { closeApp: () => {
|
|
1793
1809
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1794
1810
|
} };
|
|
1795
1811
|
}
|
|
1796
|
-
function
|
|
1797
|
-
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"), a = w(t, "num4"), g = w(t, "num5"), h = w(t, "num6"), f = w(t, "num7"),
|
|
1812
|
+
function gt(e) {
|
|
1813
|
+
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"), a = w(t, "num4"), g = w(t, "num5"), h = w(t, "num6"), f = w(t, "num7"), u = w(t, "num8"), _ = w(t, "num9"), H = w(t, "numDash"), d = w(t, "numEnter");
|
|
1798
1814
|
return {
|
|
1799
1815
|
digit0: o,
|
|
1800
1816
|
digit1: c,
|
|
@@ -1804,50 +1820,50 @@ function ht(e) {
|
|
|
1804
1820
|
digit5: g,
|
|
1805
1821
|
digit6: h,
|
|
1806
1822
|
digit7: f,
|
|
1807
|
-
digit8:
|
|
1808
|
-
digit9:
|
|
1823
|
+
digit8: u,
|
|
1824
|
+
digit9: _,
|
|
1809
1825
|
keypadAccessoryButton1: H,
|
|
1810
|
-
keypadAccessoryButton2:
|
|
1826
|
+
keypadAccessoryButton2: d
|
|
1811
1827
|
};
|
|
1812
1828
|
}
|
|
1813
|
-
function
|
|
1814
|
-
const { sendMessage: t } =
|
|
1829
|
+
function ft(e) {
|
|
1830
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1815
1831
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1816
1832
|
t(`/device/${e}/raise`, null);
|
|
1817
1833
|
}, lower: () => {
|
|
1818
1834
|
t(`/device/${e}/lower`, null);
|
|
1819
1835
|
} } : void 0;
|
|
1820
1836
|
}
|
|
1821
|
-
function
|
|
1822
|
-
const { sendMessage: t } =
|
|
1837
|
+
function wt(e) {
|
|
1838
|
+
const { sendMessage: t } = j(), o = j1(e);
|
|
1823
1839
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1824
1840
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1825
1841
|
} } : void 0;
|
|
1826
1842
|
}
|
|
1827
|
-
function
|
|
1828
|
-
const { sendMessage: t } =
|
|
1843
|
+
function mt(e) {
|
|
1844
|
+
const { sendMessage: t } = j();
|
|
1829
1845
|
return { runDefaultPresentRoute: () => {
|
|
1830
1846
|
t(`/room/${e}/defaultsource`, {});
|
|
1831
1847
|
} };
|
|
1832
1848
|
}
|
|
1833
|
-
function
|
|
1834
|
-
const { sendMessage: t } =
|
|
1849
|
+
function pt(e) {
|
|
1850
|
+
const { sendMessage: t } = j();
|
|
1835
1851
|
return { runDirectRoute: (c) => {
|
|
1836
1852
|
t(`/room/${e}/directRoute`, c);
|
|
1837
1853
|
} };
|
|
1838
1854
|
}
|
|
1839
|
-
function
|
|
1840
|
-
const { sendMessage: t } =
|
|
1855
|
+
function Mt(e) {
|
|
1856
|
+
const { sendMessage: t } = j();
|
|
1841
1857
|
return { routingState: T(e), runRoute: (r) => {
|
|
1842
1858
|
t(`/room/${e}/source`, r);
|
|
1843
1859
|
} };
|
|
1844
1860
|
}
|
|
1845
|
-
function
|
|
1861
|
+
function xt(e) {
|
|
1846
1862
|
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown");
|
|
1847
1863
|
return { dvrList: o, replay: c };
|
|
1848
1864
|
}
|
|
1849
|
-
function
|
|
1850
|
-
const { sendMessage: t } =
|
|
1865
|
+
function Zt(e) {
|
|
1866
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1851
1867
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1852
1868
|
t(`/device/${e}/shadeUp`, null);
|
|
1853
1869
|
}, shadeDown: () => {
|
|
@@ -1856,8 +1872,8 @@ function xt(e) {
|
|
|
1856
1872
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1857
1873
|
} } : void 0;
|
|
1858
1874
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const { sendMessage: t } =
|
|
1875
|
+
function St(e) {
|
|
1876
|
+
const { sendMessage: t } = j(), o = j1(e);
|
|
1861
1877
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
|
|
1862
1878
|
t(`/room/${e}/setShutdownPromptSeconds`, g);
|
|
1863
1879
|
}, shutdownStart: () => {
|
|
@@ -1868,28 +1884,28 @@ function Zt(e) {
|
|
|
1868
1884
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1869
1885
|
} } : void 0;
|
|
1870
1886
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const { sendMessage: t } =
|
|
1887
|
+
function jt(e) {
|
|
1888
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1873
1889
|
return o ? { switchedOutputState: o, on: () => {
|
|
1874
1890
|
t(`/device/${e}/on`, null);
|
|
1875
1891
|
}, off: () => {
|
|
1876
1892
|
t(`/device/${e}/off`, null);
|
|
1877
1893
|
} } : void 0;
|
|
1878
1894
|
}
|
|
1879
|
-
function
|
|
1880
|
-
const { sendMessage: t } =
|
|
1895
|
+
function Ct(e) {
|
|
1896
|
+
const { sendMessage: t } = j(), o = j1(e);
|
|
1881
1897
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1882
1898
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1883
1899
|
}, setPassword: (l, a) => {
|
|
1884
1900
|
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: a });
|
|
1885
1901
|
} } : void 0;
|
|
1886
1902
|
}
|
|
1887
|
-
function
|
|
1888
|
-
const { sendMessage: t } =
|
|
1903
|
+
function bt(e) {
|
|
1904
|
+
const { sendMessage: t } = j(), o = T(e);
|
|
1889
1905
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1890
1906
|
}
|
|
1891
|
-
function
|
|
1892
|
-
const { sendMessage: t } =
|
|
1907
|
+
function yt(e) {
|
|
1908
|
+
const { sendMessage: t } = j(), o = T(e), c = (r) => {
|
|
1893
1909
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1894
1910
|
};
|
|
1895
1911
|
return {
|
|
@@ -1897,7 +1913,7 @@ function bt(e) {
|
|
|
1897
1913
|
saveTheme: c
|
|
1898
1914
|
};
|
|
1899
1915
|
}
|
|
1900
|
-
function
|
|
1916
|
+
function It(e) {
|
|
1901
1917
|
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"), a = w(t, "nextTrack"), g = w(t, "rewind"), h = w(t, "ffwd"), f = w(t, "record");
|
|
1902
1918
|
return {
|
|
1903
1919
|
play: o,
|
|
@@ -1910,8 +1926,8 @@ function yt(e) {
|
|
|
1910
1926
|
record: f
|
|
1911
1927
|
};
|
|
1912
1928
|
}
|
|
1913
|
-
function
|
|
1914
|
-
const t = T(e), { sendMessage: o } =
|
|
1929
|
+
function Rt(e) {
|
|
1930
|
+
const t = T(e), { sendMessage: o } = j();
|
|
1915
1931
|
return t ? {
|
|
1916
1932
|
touchpanelState: t,
|
|
1917
1933
|
appControl: { hideApp: () => {
|
|
@@ -1926,7 +1942,7 @@ function It(e) {
|
|
|
1926
1942
|
} }
|
|
1927
1943
|
} : void 0;
|
|
1928
1944
|
}
|
|
1929
|
-
function
|
|
1945
|
+
function Et(e) {
|
|
1930
1946
|
const t = T(e), o = V3(e), c = k1(e);
|
|
1931
1947
|
if (!t) return;
|
|
1932
1948
|
const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
@@ -1937,37 +1953,37 @@ function Rt(e) {
|
|
|
1937
1953
|
powerFb: { powerOnFb: r, powerOffFb: l }
|
|
1938
1954
|
};
|
|
1939
1955
|
}
|
|
1940
|
-
function
|
|
1956
|
+
function Tt(e) {
|
|
1941
1957
|
const t = `/device/${e}`;
|
|
1942
1958
|
return C1(t);
|
|
1943
1959
|
}
|
|
1944
|
-
const
|
|
1960
|
+
const Dt = ({
|
|
1945
1961
|
config: e
|
|
1946
1962
|
}, t = !0) => {
|
|
1947
|
-
const { sendMessage: o } =
|
|
1963
|
+
const { sendMessage: o } = j(), c = d1(!1), r = z(() => {
|
|
1948
1964
|
var a, g, h, f;
|
|
1949
1965
|
if (!e)
|
|
1950
1966
|
return;
|
|
1951
1967
|
const l = /* @__PURE__ */ new Set();
|
|
1952
|
-
if (e.destinations && Object.values(e.destinations).forEach((
|
|
1953
|
-
l.add(
|
|
1954
|
-
}), e.destinationList && Object.values(e.destinationList).forEach((
|
|
1955
|
-
l.add(
|
|
1968
|
+
if (e.destinations && Object.values(e.destinations).forEach((u) => {
|
|
1969
|
+
l.add(u);
|
|
1970
|
+
}), e.destinationList && Object.values(e.destinationList).forEach((u) => {
|
|
1971
|
+
l.add(u.sinkKey);
|
|
1956
1972
|
}), e.audioControlPointList && Object.values((a = e.audioControlPointList) == null ? void 0 : a.levelControls).forEach(
|
|
1957
|
-
(
|
|
1958
|
-
|
|
1973
|
+
(u) => {
|
|
1974
|
+
u.itemKey ? l.add(u.parentDeviceKey + "--" + u.itemKey) : l.add(u.parentDeviceKey);
|
|
1959
1975
|
}
|
|
1960
|
-
), (g = e.touchpanelKeys) == null || g.forEach((
|
|
1961
|
-
l.add(
|
|
1962
|
-
}), (h = e.environmentalDevices) == null || h.forEach((
|
|
1963
|
-
|
|
1964
|
-
}), (f = e.accessoryDeviceKeys) == null || f.forEach((
|
|
1965
|
-
l.add(
|
|
1966
|
-
}), e.audioCodecKey && l.add(e.audioCodecKey), e.videoCodecKey && l.add(e.videoCodecKey), e.matrixRoutingKey && l.add(e.matrixRoutingKey), e.roomCombinerKey && l.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((
|
|
1967
|
-
l.add(
|
|
1976
|
+
), (g = e.touchpanelKeys) == null || g.forEach((u) => {
|
|
1977
|
+
l.add(u);
|
|
1978
|
+
}), (h = e.environmentalDevices) == null || h.forEach((u) => {
|
|
1979
|
+
u.deviceKey && l.add(u.deviceKey);
|
|
1980
|
+
}), (f = e.accessoryDeviceKeys) == null || f.forEach((u) => {
|
|
1981
|
+
l.add(u);
|
|
1982
|
+
}), e.audioCodecKey && l.add(e.audioCodecKey), e.videoCodecKey && l.add(e.videoCodecKey), e.matrixRoutingKey && l.add(e.matrixRoutingKey), e.roomCombinerKey && l.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((u) => {
|
|
1983
|
+
l.add(u);
|
|
1968
1984
|
}), e.sourceList)
|
|
1969
|
-
for (const
|
|
1970
|
-
|
|
1985
|
+
for (const u of Object.values(e.sourceList))
|
|
1986
|
+
u.sourceKey && u.sourceKey !== "$off" && l.add(u.sourceKey);
|
|
1971
1987
|
return l;
|
|
1972
1988
|
}, [e]);
|
|
1973
1989
|
return Z1(() => {
|
|
@@ -1976,7 +1992,7 @@ const Tt = ({
|
|
|
1976
1992
|
}), c.current = !0);
|
|
1977
1993
|
}, [r, t, o]), r;
|
|
1978
1994
|
};
|
|
1979
|
-
function
|
|
1995
|
+
function $t(e, t) {
|
|
1980
1996
|
const [o, c] = Y(!1), [r, l] = Y(!1);
|
|
1981
1997
|
return Z3(() => {
|
|
1982
1998
|
const { current: a } = e, g = () => {
|
|
@@ -1990,27 +2006,27 @@ function _t(e, t) {
|
|
|
1990
2006
|
const o = `/room/${e}/volumes/${t}`;
|
|
1991
2007
|
return C1(o);
|
|
1992
2008
|
}
|
|
1993
|
-
function
|
|
2009
|
+
function Pt(e, t) {
|
|
1994
2010
|
const o = te(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1995
2011
|
return W3(c, o);
|
|
1996
2012
|
}
|
|
1997
|
-
function
|
|
2013
|
+
function At(e) {
|
|
1998
2014
|
var g, h;
|
|
1999
2015
|
const [t, o] = Y(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollLeft) ?? 0), [c, r] = Y(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), l = (f) => {
|
|
2000
|
-
const { current:
|
|
2001
|
-
|
|
2016
|
+
const { current: u } = e;
|
|
2017
|
+
u && (console.log(u.scrollLeft), u.scrollLeft += f, console.log(u.scrollLeft));
|
|
2002
2018
|
}, a = (f) => {
|
|
2003
|
-
const { current:
|
|
2004
|
-
|
|
2019
|
+
const { current: u } = e;
|
|
2020
|
+
u && (console.log(u.scrollTop), u.scrollTop += f, console.log(u.scrollTop));
|
|
2005
2021
|
};
|
|
2006
2022
|
return Z3(() => {
|
|
2007
|
-
const { current: f } = e,
|
|
2023
|
+
const { current: f } = e, u = () => {
|
|
2008
2024
|
o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
|
|
2009
2025
|
};
|
|
2010
|
-
f &&
|
|
2026
|
+
f && u();
|
|
2011
2027
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: a };
|
|
2012
2028
|
}
|
|
2013
|
-
function
|
|
2029
|
+
function Lt(e) {
|
|
2014
2030
|
const t = W1();
|
|
2015
2031
|
return [() => {
|
|
2016
2032
|
t(W.addSyncState(e));
|
|
@@ -2018,8 +2034,8 @@ function At(e) {
|
|
|
2018
2034
|
t(W.removeSyncState(e));
|
|
2019
2035
|
}, Ze(e)];
|
|
2020
2036
|
}
|
|
2021
|
-
function
|
|
2022
|
-
const { sendMessage: e } =
|
|
2037
|
+
function Bt() {
|
|
2038
|
+
const { sendMessage: e } = j();
|
|
2023
2039
|
return {
|
|
2024
2040
|
reboot: () => {
|
|
2025
2041
|
e("/system/reboot", null);
|
|
@@ -2044,7 +2060,7 @@ function Ot() {
|
|
|
2044
2060
|
return () => clearInterval(l);
|
|
2045
2061
|
}, []), { date: e, time: o };
|
|
2046
2062
|
}
|
|
2047
|
-
const
|
|
2063
|
+
const kt = () => {
|
|
2048
2064
|
const [e, t] = Y(!1), o = y2(), c = I2();
|
|
2049
2065
|
let r;
|
|
2050
2066
|
return R2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
|
|
@@ -2082,26 +2098,26 @@ const Bt = () => {
|
|
|
2082
2098
|
feedback: g,
|
|
2083
2099
|
feedbackClassName: h,
|
|
2084
2100
|
onPointerDown: f,
|
|
2085
|
-
onPointerUp:
|
|
2086
|
-
onPointerLeave:
|
|
2101
|
+
onPointerUp: u,
|
|
2102
|
+
onPointerLeave: _,
|
|
2087
2103
|
...H
|
|
2088
2104
|
}) => {
|
|
2089
|
-
const [
|
|
2105
|
+
const [d, Z] = Y(!1), C = !a && g ? h : "", S = !a && (d || g);
|
|
2090
2106
|
return /* @__PURE__ */ n.jsxs(
|
|
2091
2107
|
"button",
|
|
2092
2108
|
{
|
|
2093
2109
|
type: "button",
|
|
2094
|
-
className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${
|
|
2110
|
+
className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${C}`,
|
|
2095
2111
|
...H,
|
|
2096
2112
|
disabled: a,
|
|
2097
|
-
onPointerDown: (
|
|
2098
|
-
Z(!0), f == null || f(
|
|
2113
|
+
onPointerDown: (b) => {
|
|
2114
|
+
Z(!0), f == null || f(b);
|
|
2099
2115
|
},
|
|
2100
|
-
onPointerUp: (
|
|
2101
|
-
Z(!1),
|
|
2116
|
+
onPointerUp: (b) => {
|
|
2117
|
+
Z(!1), u == null || u(b);
|
|
2102
2118
|
},
|
|
2103
|
-
onPointerLeave: (
|
|
2104
|
-
Z(!1),
|
|
2119
|
+
onPointerLeave: (b) => {
|
|
2120
|
+
Z(!1), _ == null || _(b);
|
|
2105
2121
|
},
|
|
2106
2122
|
children: [
|
|
2107
2123
|
e && /* @__PURE__ */ n.jsx(
|
|
@@ -3322,7 +3338,7 @@ const Bt = () => {
|
|
|
3322
3338
|
active: e,
|
|
3323
3339
|
disabled: o
|
|
3324
3340
|
}
|
|
3325
|
-
),
|
|
3341
|
+
), Wt = ({
|
|
3326
3342
|
active: e,
|
|
3327
3343
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
3328
3344
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3729,7 +3745,7 @@ const Bt = () => {
|
|
|
3729
3745
|
active: e,
|
|
3730
3746
|
disabled: o
|
|
3731
3747
|
}
|
|
3732
|
-
),
|
|
3748
|
+
), $8 = {
|
|
3733
3749
|
Alert: e8,
|
|
3734
3750
|
Camera: n8,
|
|
3735
3751
|
DownArrow: c8,
|
|
@@ -3763,30 +3779,30 @@ const Bt = () => {
|
|
|
3763
3779
|
X: E8,
|
|
3764
3780
|
Xbox: T8
|
|
3765
3781
|
};
|
|
3766
|
-
function
|
|
3782
|
+
function Vt({
|
|
3767
3783
|
name: e,
|
|
3768
|
-
iconsDictionary: t =
|
|
3784
|
+
iconsDictionary: t = $8,
|
|
3769
3785
|
...o
|
|
3770
3786
|
}) {
|
|
3771
3787
|
const c = t[e] ?? null;
|
|
3772
3788
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3773
3789
|
}
|
|
3774
|
-
const
|
|
3775
|
-
grid:
|
|
3790
|
+
const _8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", L8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", u1 = {
|
|
3791
|
+
grid: _8,
|
|
3776
3792
|
header: P8,
|
|
3777
3793
|
content: A8,
|
|
3778
3794
|
footer: L8,
|
|
3779
|
-
volume:
|
|
3780
|
-
},
|
|
3795
|
+
volume: B8
|
|
3796
|
+
}, Ut = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: u1.grid, children: [
|
|
3781
3797
|
/* @__PURE__ */ n.jsx("div", { className: u1.header, children: e }),
|
|
3782
3798
|
/* @__PURE__ */ n.jsx("div", { className: u1.content, children: o }),
|
|
3783
3799
|
r && /* @__PURE__ */ n.jsx("div", { className: u1.volume, children: c }),
|
|
3784
3800
|
/* @__PURE__ */ n.jsx("div", { className: u1.footer, children: t })
|
|
3785
|
-
] }),
|
|
3786
|
-
grid:
|
|
3801
|
+
] }), O8 = "_grid_11w5q_1", k8 = "_header_11w5q_11", W8 = "_content_11w5q_17", x1 = {
|
|
3802
|
+
grid: O8,
|
|
3787
3803
|
header: k8,
|
|
3788
3804
|
content: W8
|
|
3789
|
-
},
|
|
3805
|
+
}, Ht = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${x1.grid}`, children: [
|
|
3790
3806
|
/* @__PURE__ */ n.jsx("div", { className: x1.header, children: t }),
|
|
3791
3807
|
c && /* @__PURE__ */ n.jsx("div", { className: x1.leftNav, children: c }),
|
|
3792
3808
|
/* @__PURE__ */ n.jsx("div", { className: x1.content, children: o })
|
|
@@ -3794,33 +3810,33 @@ const $8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", L
|
|
|
3794
3810
|
grid: V8,
|
|
3795
3811
|
header: U8,
|
|
3796
3812
|
content: H8
|
|
3797
|
-
},
|
|
3813
|
+
}, Ft = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${L1.grid}`, children: [
|
|
3798
3814
|
/* @__PURE__ */ n.jsx("div", { className: L1.header, children: t }),
|
|
3799
3815
|
/* @__PURE__ */ n.jsx("div", { className: L1.content, children: o })
|
|
3800
3816
|
] });
|
|
3801
|
-
class
|
|
3817
|
+
class Kt {
|
|
3802
3818
|
constructor() {
|
|
3803
3819
|
q(this, "currentShareText");
|
|
3804
3820
|
q(this, "enabled");
|
|
3805
3821
|
q(this, "isSharing");
|
|
3806
3822
|
}
|
|
3807
3823
|
}
|
|
3808
|
-
function
|
|
3824
|
+
function qt() {
|
|
3809
3825
|
return console.log(location.pathname), location.pathname;
|
|
3810
3826
|
}
|
|
3811
3827
|
var F8 = /* @__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))(F8 || {});
|
|
3812
|
-
class
|
|
3828
|
+
class Gt {
|
|
3813
3829
|
constructor(t, o) {
|
|
3814
3830
|
q(this, "path");
|
|
3815
3831
|
q(this, "handler");
|
|
3816
3832
|
this.path = t, this.handler = o;
|
|
3817
3833
|
}
|
|
3818
3834
|
}
|
|
3819
|
-
const
|
|
3835
|
+
const Yt = "$off";
|
|
3820
3836
|
export {
|
|
3821
3837
|
K6 as Clock,
|
|
3822
3838
|
F8 as DaysOfWeek,
|
|
3823
|
-
|
|
3839
|
+
kt as ErrorBox,
|
|
3824
3840
|
Ne as IconButton,
|
|
3825
3841
|
e8 as IconMultiAlert,
|
|
3826
3842
|
t8 as IconMultiBan,
|
|
@@ -3847,7 +3863,7 @@ export {
|
|
|
3847
3863
|
Z8 as IconMultiRoomPC,
|
|
3848
3864
|
S8 as IconMultiShade,
|
|
3849
3865
|
j8 as IconMultiSun,
|
|
3850
|
-
|
|
3866
|
+
Wt as IconMultiTemplate,
|
|
3851
3867
|
C8 as IconMultiUpArrow,
|
|
3852
3868
|
b8 as IconMultiVolDown,
|
|
3853
3869
|
y8 as IconMultiVolMute,
|
|
@@ -3855,28 +3871,28 @@ export {
|
|
|
3855
3871
|
R8 as IconMultiWireless,
|
|
3856
3872
|
E8 as IconMultiX,
|
|
3857
3873
|
T8 as IconMultiXbox,
|
|
3858
|
-
|
|
3859
|
-
|
|
3874
|
+
Ut as MainLayout,
|
|
3875
|
+
Gt as MessageHandler,
|
|
3860
3876
|
W6 as MobileControlProvider,
|
|
3861
3877
|
R as MultiStateIconContainer,
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3878
|
+
Vt as NamedIconButton,
|
|
3879
|
+
Kt as ShareState,
|
|
3880
|
+
Ht as TechLayout,
|
|
3881
|
+
Ft as TechPinLayout,
|
|
3866
3882
|
A3 as WS_ADD_EVENT_HANDLER,
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3883
|
+
$3 as WS_CONNECT,
|
|
3884
|
+
_3 as WS_DISCONNECT,
|
|
3885
|
+
B3 as WS_RECONNECT,
|
|
3870
3886
|
L3 as WS_REMOVE_EVENT_HANDLER,
|
|
3871
3887
|
P3 as WS_SEND_MESSAGE,
|
|
3872
3888
|
k3 as WebsocketContext,
|
|
3873
3889
|
T3 as appConfigActions,
|
|
3874
|
-
|
|
3890
|
+
Be as createWebSocketMiddleware,
|
|
3875
3891
|
m1 as devicesActions,
|
|
3876
|
-
|
|
3892
|
+
qt as getBaseLocation,
|
|
3877
3893
|
f3 as httpClient,
|
|
3878
|
-
|
|
3879
|
-
|
|
3894
|
+
$8 as iconsDictionary,
|
|
3895
|
+
Yt as roomOffSourceKey,
|
|
3880
3896
|
p1 as roomsActions,
|
|
3881
3897
|
U as runtimeConfigActions,
|
|
3882
3898
|
C3 as selectAllDevices,
|
|
@@ -3884,7 +3900,7 @@ export {
|
|
|
3884
3900
|
E2 as selectAppConfig,
|
|
3885
3901
|
ce as selectClientId,
|
|
3886
3902
|
he as selectCurrentPopoverIdForGroup,
|
|
3887
|
-
|
|
3903
|
+
_2 as selectDeviceByKey,
|
|
3888
3904
|
b3 as selectDeviceInterfaceSupport,
|
|
3889
3905
|
ve as selectDeviceSupportsInterface,
|
|
3890
3906
|
fe as selectError,
|
|
@@ -3893,7 +3909,7 @@ export {
|
|
|
3893
3909
|
de as selectIsTouchpanel,
|
|
3894
3910
|
D2 as selectLogoPath,
|
|
3895
3911
|
V1 as selectModalVisibility,
|
|
3896
|
-
|
|
3912
|
+
$2 as selectPartnerMetadata,
|
|
3897
3913
|
X2 as selectRoomAdvancedSharingActive,
|
|
3898
3914
|
V2 as selectRoomAudioControlPointList,
|
|
3899
3915
|
L2 as selectRoomByKey,
|
|
@@ -3909,11 +3925,11 @@ export {
|
|
|
3909
3925
|
Y2 as selectRoomIsWarmingUp,
|
|
3910
3926
|
se as selectRoomKey,
|
|
3911
3927
|
k2 as selectRoomLevelControls,
|
|
3912
|
-
|
|
3928
|
+
B2 as selectRoomName,
|
|
3913
3929
|
K2 as selectRoomProgramAudioDestinationKey,
|
|
3914
3930
|
Q2 as selectRoomShareState,
|
|
3915
3931
|
W2 as selectRoomSourceList,
|
|
3916
|
-
|
|
3932
|
+
O2 as selectRoomVolume,
|
|
3917
3933
|
A2 as selectRooms,
|
|
3918
3934
|
ae as selectRuntimeInfo,
|
|
3919
3935
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
@@ -3936,14 +3952,14 @@ export {
|
|
|
3936
3952
|
w as useButtonHeldHeartbeat,
|
|
3937
3953
|
F6 as useCameraBase,
|
|
3938
3954
|
S6 as useClientId,
|
|
3939
|
-
|
|
3955
|
+
Tt as useDeviceIBasicVolume,
|
|
3940
3956
|
Ye as useDeviceIBasicVolumeWithFeedback,
|
|
3941
3957
|
E6 as useDeviceInterfaceSupport,
|
|
3942
3958
|
q6 as useDevicePresetsModel,
|
|
3943
3959
|
D6 as useDeviceSupportsInterface,
|
|
3944
3960
|
G6 as useEndpoint,
|
|
3945
3961
|
Me as useError,
|
|
3946
|
-
|
|
3962
|
+
Dt as useGetAllDeviceStateFromRoomConfiguration,
|
|
3947
3963
|
t6 as useGetAllDevices,
|
|
3948
3964
|
o6 as useGetAllRooms,
|
|
3949
3965
|
A6 as useGetCurrentPopoverIdForGroup,
|
|
@@ -3960,43 +3976,44 @@ export {
|
|
|
3960
3976
|
J6 as useIChannel,
|
|
3961
3977
|
X6 as useIColor,
|
|
3962
3978
|
Q6 as useICommunicationMonitor,
|
|
3963
|
-
|
|
3979
|
+
tt as useIDPad,
|
|
3964
3980
|
N6 as useIDeviceInfoMessenger,
|
|
3965
|
-
|
|
3966
|
-
nt as
|
|
3967
|
-
ot as
|
|
3968
|
-
st as
|
|
3969
|
-
ct as
|
|
3970
|
-
rt as
|
|
3971
|
-
lt as
|
|
3981
|
+
et as useIDialerCallStatus,
|
|
3982
|
+
nt as useIDspPresets,
|
|
3983
|
+
ot as useIDvr,
|
|
3984
|
+
st as useIEssentialsRoomCombiner,
|
|
3985
|
+
ct as useIHasCameraMute,
|
|
3986
|
+
rt as useIHasCameraPresets,
|
|
3987
|
+
lt as useIHasCameras,
|
|
3988
|
+
it as useIHasDialer,
|
|
3972
3989
|
V3 as useIHasPowerControl,
|
|
3973
3990
|
k1 as useIHasSelectableItems,
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3991
|
+
at as useIHumiditySensor,
|
|
3992
|
+
ut as useILevelControls,
|
|
3993
|
+
dt as useILightingScenes,
|
|
3994
|
+
vt as useIMatrixRouting,
|
|
3995
|
+
ht as useIMcCiscoCodecUserInterfaceAppControl,
|
|
3996
|
+
gt as useINumeric,
|
|
3997
|
+
ft as useIProjectorScreenLiftControl,
|
|
3998
|
+
wt as useIRoomEventSchedule,
|
|
3999
|
+
mt as useIRunDefaultPresentRoute,
|
|
4000
|
+
pt as useIRunDirectRouteAction,
|
|
4001
|
+
Mt as useIRunRouteAction,
|
|
4002
|
+
xt as useISetTopBoxControls,
|
|
4003
|
+
Zt as useIShadesOpenCloseStop,
|
|
4004
|
+
St as useIShutdownPromptTimer,
|
|
4005
|
+
jt as useISwitchedOutput,
|
|
4006
|
+
Ct as useITechPassword,
|
|
4007
|
+
bt as useITemperatureSensor,
|
|
4008
|
+
yt as useITheme,
|
|
4009
|
+
It as useITransport,
|
|
3993
4010
|
k6 as useInitialize,
|
|
3994
4011
|
T6 as useInterfacesForDevice,
|
|
3995
4012
|
Ze as useIsSyncStateValuePresent,
|
|
3996
4013
|
R6 as useIsTouchpanel,
|
|
3997
4014
|
N8 as useLogoPath,
|
|
3998
|
-
|
|
3999
|
-
|
|
4015
|
+
Rt as useMobileControlTouchpanelController,
|
|
4016
|
+
$t as useOverflow,
|
|
4000
4017
|
e6 as usePartnerMetadata,
|
|
4001
4018
|
Ge as usePressHoldRelease,
|
|
4002
4019
|
m6 as useRoomAdvancedSharingActive,
|
|
@@ -4007,7 +4024,7 @@ export {
|
|
|
4007
4024
|
i6 as useRoomDestinations,
|
|
4008
4025
|
u6 as useRoomEnvironmentalDevices,
|
|
4009
4026
|
_t as useRoomIBasicVolume,
|
|
4010
|
-
|
|
4027
|
+
Pt as useRoomIBasicVolumeWithFeedback,
|
|
4011
4028
|
h6 as useRoomInCall,
|
|
4012
4029
|
f6 as useRoomIsCoolingDown,
|
|
4013
4030
|
w6 as useRoomIsOn,
|
|
@@ -4021,27 +4038,27 @@ export {
|
|
|
4021
4038
|
j1 as useRoomState,
|
|
4022
4039
|
te as useRoomVolume,
|
|
4023
4040
|
y6 as useRuntimeInfo,
|
|
4024
|
-
|
|
4041
|
+
At as useScroll,
|
|
4025
4042
|
b6 as useServerIsRunningOnProcessorHardware,
|
|
4026
|
-
|
|
4043
|
+
_6 as useShowIncomingCallModal,
|
|
4027
4044
|
P6 as useShowModal,
|
|
4028
4045
|
L6 as useShowPopoverById,
|
|
4029
4046
|
xe as useShowReconnect,
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4047
|
+
$6 as useShowShutdownModal,
|
|
4048
|
+
Lt as useStateIsSynced,
|
|
4049
|
+
Bt as useSystemControl,
|
|
4033
4050
|
j6 as useSystemUuid,
|
|
4034
|
-
|
|
4051
|
+
B6 as useTheme,
|
|
4035
4052
|
Ot as useTimeAndDate,
|
|
4036
4053
|
I6 as useTouchpanelKey,
|
|
4037
|
-
|
|
4054
|
+
Et as useTwoWayDisplayBase,
|
|
4038
4055
|
C6 as useUserCode,
|
|
4039
|
-
|
|
4056
|
+
j as useWebsocketContext,
|
|
4040
4057
|
I3 as useWsIsConnected,
|
|
4041
4058
|
Pe as wsAddEventHandler,
|
|
4042
|
-
|
|
4043
|
-
|
|
4059
|
+
O3 as wsConnect,
|
|
4060
|
+
O6 as wsDisconnect,
|
|
4044
4061
|
Le as wsReconnect,
|
|
4045
4062
|
Ae as wsRemoveEventHandler,
|
|
4046
|
-
|
|
4063
|
+
_e as wsSendMessage
|
|
4047
4064
|
};
|