@pepperdash/mobile-control-react-app-core 1.24.0-feat-essentials-v3.1 → 1.24.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 +559 -536
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/interfaces/index.d.ts +3 -11
- package/dist/shared/hooks/interfaces/index.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIHasCameraMute.d.ts +13 -0
- package/dist/shared/hooks/interfaces/useIHasCameraMute.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIHasCameraPresets.d.ts +14 -0
- package/dist/shared/hooks/interfaces/useIHasCameraPresets.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIHasPowerControl.d.ts +1 -0
- package/dist/shared/hooks/interfaces/useIHasPowerControl.d.ts.map +1 -1
- package/dist/types/state/state/IHasCameraMuteState.d.ts +6 -0
- package/dist/types/state/state/IHasCameraMuteState.d.ts.map +1 -0
- 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 +2 -0
- package/dist/types/state/state/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -22,29 +22,29 @@ const W1 = M2.withTypes(), m = x2.withTypes(), S1 = (e) => e.appConfig, E2 = M(
|
|
|
22
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
|
+
), P2 = (e) => M(
|
|
26
26
|
j3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
28
|
), t6 = () => m(C3);
|
|
29
|
-
function
|
|
30
|
-
return m(
|
|
29
|
+
function D(e) {
|
|
30
|
+
return m(P2(e));
|
|
31
31
|
}
|
|
32
|
-
const A = (e) => e.rooms,
|
|
32
|
+
const A = (e) => e.rooms, $2 = (e) => M(
|
|
33
33
|
A,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
),
|
|
35
|
+
), L2 = M(
|
|
36
36
|
A,
|
|
37
37
|
(e) => e
|
|
38
38
|
), A2 = (e) => M(
|
|
39
39
|
A,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
),
|
|
41
|
+
), O2 = (e) => M(
|
|
42
42
|
A,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
44
|
+
), B2 = (e, t) => M(
|
|
45
45
|
A,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
),
|
|
47
|
+
), k2 = (e) => M(
|
|
48
48
|
A,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), W2 = (e) => M(
|
|
@@ -80,8 +80,8 @@ const A = (e) => e.rooms, P2 = (e) => M(
|
|
|
80
80
|
), K2 = (e) => M(
|
|
81
81
|
A,
|
|
82
82
|
(t) => {
|
|
83
|
-
var o, c, r, l,
|
|
84
|
-
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (
|
|
83
|
+
var o, c, r, l, a, g, h, f;
|
|
84
|
+
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (a = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : a.sinkKey : ((f = (h = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : f.sinkKey) || "";
|
|
85
85
|
}
|
|
86
86
|
), q2 = (e) => M(
|
|
87
87
|
A,
|
|
@@ -148,20 +148,20 @@ const A = (e) => e.rooms, P2 = (e) => M(
|
|
|
148
148
|
);
|
|
149
149
|
function n6(e) {
|
|
150
150
|
return m(
|
|
151
|
-
|
|
151
|
+
$2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function o6() {
|
|
155
|
-
return m(
|
|
155
|
+
return m(L2);
|
|
156
156
|
}
|
|
157
157
|
function j1(e) {
|
|
158
158
|
return m(A2(e));
|
|
159
159
|
}
|
|
160
160
|
const s6 = j1, c6 = (e) => m(
|
|
161
|
-
|
|
161
|
+
O2(e)
|
|
162
162
|
), te = (e, t) => m(
|
|
163
|
-
|
|
164
|
-
), ne = (e) => m(
|
|
163
|
+
B2(e, t)
|
|
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(F2(e)), u6 = (e) => m(H2(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
|
|
167
167
|
), se = M(
|
|
@@ -216,7 +216,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
216
216
|
), fe = M(N, (e) => e.error), we = M(
|
|
217
217
|
N,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")),
|
|
219
|
+
), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), P6 = () => m(V1("showIncomingCallModal")), $6 = (e) => m(V1(e)), L6 = (e) => m(he(e)), A6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), O6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -289,14 +289,14 @@ 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 = {}, O1 = v1({
|
|
293
293
|
name: "devices",
|
|
294
294
|
initialState: v3,
|
|
295
295
|
reducers: {
|
|
296
296
|
setDeviceState(e, t) {
|
|
297
297
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
298
298
|
if (!c) return;
|
|
299
|
-
const r = t.payload.content, l = e[c] ?? {},
|
|
299
|
+
const r = t.payload.content, l = e[c] ?? {}, a = S3.mergeWith(
|
|
300
300
|
{},
|
|
301
301
|
l,
|
|
302
302
|
r,
|
|
@@ -304,16 +304,16 @@ const s6 = j1, c6 = (e) => m(
|
|
|
304
304
|
if (Array.isArray(h)) return h.slice();
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
e[c] =
|
|
307
|
+
e[c] = a;
|
|
308
308
|
},
|
|
309
309
|
clearDevices() {
|
|
310
310
|
return v3;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}), m1 = {
|
|
314
|
-
setDeviceState:
|
|
315
|
-
clearDevices:
|
|
316
|
-
}, ye =
|
|
314
|
+
setDeviceState: O1.actions.setDeviceState,
|
|
315
|
+
clearDevices: O1.actions.clearDevices
|
|
316
|
+
}, ye = O1.reducer;
|
|
317
317
|
class Ie {
|
|
318
318
|
constructor() {
|
|
319
319
|
q(this, "uuid", "current-uuid");
|
|
@@ -329,26 +329,26 @@ function Re(e) {
|
|
|
329
329
|
function Ee(e, t) {
|
|
330
330
|
sessionStorage.setItem(e, t);
|
|
331
331
|
}
|
|
332
|
-
const g3 = {},
|
|
332
|
+
const g3 = {}, B1 = v1({
|
|
333
333
|
name: "rooms",
|
|
334
334
|
initialState: g3,
|
|
335
335
|
reducers: {
|
|
336
336
|
setRoomState(e, t) {
|
|
337
337
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
338
338
|
if (!c) return;
|
|
339
|
-
const r = t.payload.content, l = e[c] ?? {},
|
|
339
|
+
const r = t.payload.content, l = e[c] ?? {}, a = S3.mergeWith({}, l, r, (g, h) => {
|
|
340
340
|
if (Array.isArray(h)) return h;
|
|
341
341
|
});
|
|
342
|
-
e[c] =
|
|
342
|
+
e[c] = a;
|
|
343
343
|
},
|
|
344
344
|
clearRooms() {
|
|
345
345
|
return g3;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}), p1 = {
|
|
349
|
-
setRoomState:
|
|
350
|
-
clearRooms:
|
|
351
|
-
}, Te =
|
|
349
|
+
setRoomState: B1.actions.setRoomState,
|
|
350
|
+
clearRooms: B1.actions.clearRooms
|
|
351
|
+
}, Te = B1.reducer, De = {
|
|
352
352
|
apiVersion: "",
|
|
353
353
|
serverIsRunningOnProcessorHardware: !1,
|
|
354
354
|
websocket: {
|
|
@@ -414,46 +414,46 @@ const g3 = {}, O1 = v1({
|
|
|
414
414
|
e.touchpanelKey = t.payload;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
}), U = D3.actions, _e = D3.reducer,
|
|
418
|
-
type: P3,
|
|
419
|
-
payload: { messageType: e, content: t }
|
|
420
|
-
}), Pe = (e, t, o) => ({
|
|
417
|
+
}), U = D3.actions, _e = D3.reducer, $1 = M3.create(), _3 = "websocket/connect", P3 = "websocket/disconnect", $3 = "websocket/sendMessage", L3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", O3 = "websocket/reconnect", B3 = () => ({ type: _3 }), B6 = () => ({ type: P3 }), Pe = (e, t) => ({
|
|
421
418
|
type: $3,
|
|
419
|
+
payload: { messageType: e, content: t }
|
|
420
|
+
}), $e = (e, t, o) => ({
|
|
421
|
+
type: L3,
|
|
422
422
|
payload: { eventType: e, key: t, callback: o }
|
|
423
|
-
}),
|
|
423
|
+
}), Le = (e, t) => ({
|
|
424
424
|
type: A3,
|
|
425
425
|
payload: { eventType: e, key: t }
|
|
426
|
-
}), Ae = () => ({ type:
|
|
426
|
+
}), Ae = () => ({ type: O3 }), Oe = () => {
|
|
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 (u) => {
|
|
434
434
|
try {
|
|
435
435
|
const Z = location.pathname.split("/").filter((C) => C.length > 0);
|
|
436
436
|
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
437
|
-
const j = `/${Z.join("/")}`, S = await
|
|
437
|
+
const j = `/${Z.join("/")}`, S = await $1.get(
|
|
438
438
|
"/_local-config/_config.local.json",
|
|
439
439
|
{ baseURL: j }
|
|
440
440
|
);
|
|
441
441
|
if (S.status === 200 && S.data) {
|
|
442
442
|
const C = S.data.apiPath;
|
|
443
|
-
|
|
444
|
-
const x = await
|
|
443
|
+
u(T3.setAppConfig(S.data));
|
|
444
|
+
const x = await $1.get(
|
|
445
445
|
`${C}/version`
|
|
446
446
|
);
|
|
447
|
-
x.status === 200 && x.data &&
|
|
447
|
+
x.status === 200 && x.data && u(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 (u, Z, j) => {
|
|
454
454
|
try {
|
|
455
|
-
const S = await
|
|
456
|
-
`${
|
|
455
|
+
const S = await $1.get(
|
|
456
|
+
`${u}/ui/joinroom?token=${Z}`
|
|
457
457
|
);
|
|
458
458
|
return S.status === 200 && S.data ? (j(U.setRoomData(S.data)), S.data) : null;
|
|
459
459
|
} catch (S) {
|
|
@@ -463,21 +463,21 @@ const g3 = {}, O1 = v1({
|
|
|
463
463
|
)
|
|
464
464
|
), null) : (console.error("Error getting room data", S), S instanceof Error ? j(W.setErrorMessage(S.message)) : j(W.setErrorMessage("Error getting room data")), null);
|
|
465
465
|
}
|
|
466
|
-
}, c = (
|
|
466
|
+
}, c = (u) => {
|
|
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..."), u(B3());
|
|
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
|
-
},
|
|
472
|
+
}, l = (u) => {
|
|
473
|
+
u(W.setShowReconnect(!0)), u(U.setWebsocketIsConnected(!1)), u(m1.clearDevices()), u(p1.clearRooms()), u(W.clearAllModals()), u(W.clearSyncState());
|
|
474
|
+
}, a = (u, Z) => {
|
|
475
475
|
var H;
|
|
476
|
-
const j =
|
|
476
|
+
const j = u(), S = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: C } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected, O = (H = j.runtimeConfig.roomData.config) == null ? void 0 : H.runtimeInfo.essentialsVersion;
|
|
477
477
|
console.log("WebSocket middleware: Essentials version", {
|
|
478
|
-
essentialsVersion:
|
|
478
|
+
essentialsVersion: O
|
|
479
479
|
});
|
|
480
|
-
const o1 =
|
|
480
|
+
const o1 = O == null ? void 0 : O.startsWith("3.");
|
|
481
481
|
if (!Z || !x || !C) {
|
|
482
482
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
483
483
|
hasRoomKey: !!Z,
|
|
@@ -501,7 +501,7 @@ const g3 = {}, O1 = v1({
|
|
|
501
501
|
content: null
|
|
502
502
|
})
|
|
503
503
|
));
|
|
504
|
-
}, g = async (
|
|
504
|
+
}, g = async (u, Z) => {
|
|
505
505
|
console.log("WebSocket middleware: Attempting to connect...");
|
|
506
506
|
const j = Z(), { apiPath: S } = j.appConfig.config, { serverIsRunningOnProcessorHardware: C } = j.runtimeConfig;
|
|
507
507
|
if (!S || !e.token) {
|
|
@@ -526,51 +526,51 @@ const g3 = {}, O1 = 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, u);
|
|
530
530
|
if (!x) {
|
|
531
531
|
console.log(
|
|
532
532
|
"WebSocket middleware: Failed to get room data, will retry..."
|
|
533
|
-
), c(
|
|
533
|
+
), c(u);
|
|
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}`, H = new WebSocket(o1);
|
|
538
|
-
e.client = H, H.onopen = (
|
|
539
|
-
console.log("WebSocket middleware: Connected",
|
|
540
|
-
e.client === H && H.readyState === WebSocket.OPEN &&
|
|
538
|
+
e.client = H, H.onopen = (B) => {
|
|
539
|
+
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
540
|
+
e.client === H && H.readyState === WebSocket.OPEN && u(U.setWebsocketIsConnected(!0));
|
|
541
541
|
}, 100);
|
|
542
|
-
}, H.onerror = (
|
|
543
|
-
console.error("WebSocket middleware: Error",
|
|
544
|
-
}, H.onclose = (
|
|
545
|
-
var
|
|
542
|
+
}, H.onerror = (B) => {
|
|
543
|
+
console.error("WebSocket middleware: Error", B), l(u);
|
|
544
|
+
}, H.onclose = (B) => {
|
|
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
|
+
B.reason,
|
|
549
|
+
B.code
|
|
550
|
+
), B.code === 4100) {
|
|
551
|
+
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(u);
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
if (e.waitingToReconnect = !0,
|
|
555
|
-
console.log("WebSocket middleware: User code changed"), r(),
|
|
554
|
+
if (e.waitingToReconnect = !0, B.code === 4e3) {
|
|
555
|
+
console.log("WebSocket middleware: User code changed"), r(), u(
|
|
556
556
|
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
557
|
-
),
|
|
557
|
+
), u(
|
|
558
558
|
W.setErrorMessage(
|
|
559
559
|
"User code changed. Click reconnect to enter the new code"
|
|
560
560
|
)
|
|
561
|
-
), l(
|
|
561
|
+
), l(u);
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
|
-
if (
|
|
565
|
-
console.log("WebSocket middleware: Room combination changed"), r(),
|
|
564
|
+
if (B.code === 4002) {
|
|
565
|
+
console.log("WebSocket middleware: Room combination changed"), r(), u(
|
|
566
566
|
W.setErrorMessage(
|
|
567
567
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
568
568
|
)
|
|
569
|
-
), l(
|
|
569
|
+
), l(u);
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
if (
|
|
573
|
-
if (!!((
|
|
572
|
+
if (B.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
|
);
|
|
@@ -581,11 +581,11 @@ const g3 = {}, O1 = v1({
|
|
|
581
581
|
else {
|
|
582
582
|
console.log(
|
|
583
583
|
"WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
|
|
584
|
-
), r(),
|
|
584
|
+
), r(), u(
|
|
585
585
|
W.setErrorMessage(
|
|
586
586
|
"Processor has disconnected. Click Reconnect to continue."
|
|
587
587
|
)
|
|
588
|
-
), l(
|
|
588
|
+
), l(u);
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
591
|
if (e.client)
|
|
@@ -596,45 +596,45 @@ const g3 = {}, O1 = 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"), u(
|
|
600
600
|
W.setErrorMessage(
|
|
601
601
|
"Connection lost. Attempting to reconnect..."
|
|
602
602
|
)
|
|
603
|
-
),
|
|
604
|
-
}, H.onmessage = (
|
|
603
|
+
), u(U.setWebsocketIsConnected(!1)), u(m1.clearDevices()), u(p1.clearRooms()), u(W.clearAllModals()), u(W.clearSyncState()), c(u);
|
|
604
|
+
}, H.onmessage = (B) => {
|
|
605
605
|
try {
|
|
606
|
-
const
|
|
607
|
-
if (
|
|
608
|
-
H.close(4001,
|
|
606
|
+
const _ = JSON.parse(B.data);
|
|
607
|
+
if (_.type === "close") {
|
|
608
|
+
H.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
|
+
u(
|
|
615
615
|
U.setTouchpanelKey(
|
|
616
|
-
|
|
616
|
+
_.content
|
|
617
617
|
)
|
|
618
618
|
);
|
|
619
619
|
break;
|
|
620
620
|
case "/system/roomKey":
|
|
621
|
-
|
|
621
|
+
u(p1.clearRooms()), u(m1.clearDevices()), u(W.clearSyncState()), u(
|
|
622
622
|
U.setCurrentRoomKey(
|
|
623
|
-
|
|
623
|
+
_.content
|
|
624
624
|
)
|
|
625
625
|
);
|
|
626
626
|
break;
|
|
627
627
|
case "/system/userCodeChanged":
|
|
628
|
-
|
|
629
|
-
U.setUserCode(
|
|
628
|
+
u(
|
|
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 z =
|
|
637
|
-
|
|
636
|
+
const z = _.content;
|
|
637
|
+
u(
|
|
638
638
|
U.setDeviceInterfaces(
|
|
639
639
|
z.deviceInterfaces
|
|
640
640
|
)
|
|
@@ -644,18 +644,18 @@ const g3 = {}, O1 = 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 z = e.eventHandlers[
|
|
651
|
+
else if (_.type.startsWith("/event/")) {
|
|
652
|
+
const z = e.eventHandlers[_.type];
|
|
653
653
|
z || console.log(
|
|
654
654
|
"WebSocket middleware: No handlers found for event type",
|
|
655
|
-
|
|
655
|
+
_.type
|
|
656
656
|
), z && Object.values(z).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 = {}, O1 = v1({
|
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
|
-
} else
|
|
667
|
-
} catch (
|
|
668
|
-
console.error("WebSocket middleware: Message handling error",
|
|
666
|
+
} else _.type.startsWith("/room/") ? u(p1.setRoomState(_)) : _.type.startsWith("/device/") && u(m1.setDeviceState(_));
|
|
667
|
+
} catch (_) {
|
|
668
|
+
console.error("WebSocket middleware: Message handling error", _);
|
|
669
669
|
}
|
|
670
670
|
}, e.waitingToReconnect = !1;
|
|
671
671
|
} catch (x) {
|
|
@@ -673,24 +673,24 @@ const g3 = {}, O1 = 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 = (
|
|
676
|
+
}, f = (u, Z, j) => {
|
|
677
677
|
const S = j(), C = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
|
|
678
678
|
e.client && C ? e.client.send(
|
|
679
|
-
JSON.stringify({ type:
|
|
679
|
+
JSON.stringify({ type: u, clientId: x, content: Z })
|
|
680
680
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
681
|
-
},
|
|
682
|
-
e.eventHandlers[
|
|
683
|
-
},
|
|
684
|
-
e.eventHandlers[
|
|
681
|
+
}, d = (u, Z, j) => {
|
|
682
|
+
e.eventHandlers[u] || (e.eventHandlers[u] = {}), e.eventHandlers[u][Z] = j, console.log("WebSocket middleware: Event handler added", u, Z);
|
|
683
|
+
}, P = (u, Z) => {
|
|
684
|
+
e.eventHandlers[u] && (delete e.eventHandlers[u][Z], console.log(
|
|
685
685
|
"WebSocket middleware: Event handler removed",
|
|
686
|
-
|
|
686
|
+
u,
|
|
687
687
|
Z
|
|
688
688
|
));
|
|
689
|
-
}, F = (
|
|
690
|
-
const Z =
|
|
691
|
-
window.location.href = x ? `${
|
|
689
|
+
}, F = (u) => {
|
|
690
|
+
const Z = u(), { gatewayAppPath: j } = Z.appConfig.config, S = Z.runtimeConfig.roomData.roomKey, C = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, O = `${j}?uuid=${C}&roomKey=${S}`;
|
|
691
|
+
window.location.href = x ? `${O}&Code=${x}` : O;
|
|
692
692
|
};
|
|
693
|
-
return (
|
|
693
|
+
return (u) => (Z) => (j) => {
|
|
694
694
|
const S = Z(j);
|
|
695
695
|
if (!j || typeof j != "object" || !("type" in j))
|
|
696
696
|
return S;
|
|
@@ -698,53 +698,53 @@ const g3 = {}, O1 = v1({
|
|
|
698
698
|
return (async () => {
|
|
699
699
|
switch (C.type) {
|
|
700
700
|
case _3: {
|
|
701
|
-
let
|
|
702
|
-
|
|
701
|
+
let O = new URLSearchParams(window.location.search).get("token");
|
|
702
|
+
O ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, O)) : (O = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = O, await t(u.dispatch), await g(u.dispatch, u.getState);
|
|
703
703
|
break;
|
|
704
704
|
}
|
|
705
|
-
case
|
|
705
|
+
case P3:
|
|
706
706
|
h();
|
|
707
707
|
break;
|
|
708
|
-
case
|
|
708
|
+
case $3:
|
|
709
709
|
f(
|
|
710
710
|
C.payload.messageType,
|
|
711
711
|
C.payload.content,
|
|
712
|
-
|
|
712
|
+
u.getState
|
|
713
713
|
);
|
|
714
714
|
break;
|
|
715
|
-
case
|
|
716
|
-
|
|
715
|
+
case L3:
|
|
716
|
+
d(
|
|
717
717
|
C.payload.eventType,
|
|
718
718
|
C.payload.key,
|
|
719
719
|
C.payload.callback
|
|
720
720
|
);
|
|
721
721
|
break;
|
|
722
722
|
case A3:
|
|
723
|
-
|
|
723
|
+
P(
|
|
724
724
|
C.payload.eventType,
|
|
725
725
|
C.payload.key
|
|
726
726
|
);
|
|
727
727
|
break;
|
|
728
|
-
case
|
|
729
|
-
F(
|
|
728
|
+
case O3:
|
|
729
|
+
F(u.getState);
|
|
730
730
|
break;
|
|
731
731
|
default:
|
|
732
732
|
if (j.type === U.setWebsocketIsConnected.type)
|
|
733
733
|
j.payload === !0 && (console.log(
|
|
734
734
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
735
|
-
), setTimeout(() =>
|
|
735
|
+
), setTimeout(() => a(u.getState), 100));
|
|
736
736
|
else if (j.type === U.setRoomData.type) {
|
|
737
|
-
const x =
|
|
738
|
-
x.runtimeConfig.websocket.isConnected && (
|
|
737
|
+
const x = u.getState(), O = j.payload;
|
|
738
|
+
x.runtimeConfig.websocket.isConnected && (O != null && O.clientId) && (console.log(
|
|
739
739
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
740
|
-
), setTimeout(() =>
|
|
740
|
+
), setTimeout(() => a(u.getState), 100));
|
|
741
741
|
} else if (j.type === U.setCurrentRoomKey.type) {
|
|
742
742
|
const x = j.payload;
|
|
743
743
|
x && (console.log(
|
|
744
744
|
"[WebSocket Middleware] Room changed to:",
|
|
745
745
|
x,
|
|
746
746
|
", requesting room status..."
|
|
747
|
-
), setTimeout(() =>
|
|
747
|
+
), setTimeout(() => a(u.getState, x), 100));
|
|
748
748
|
}
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
@@ -752,22 +752,22 @@ const g3 = {}, O1 = v1({
|
|
|
752
752
|
console.error("WebSocket middleware: Error handling action", x);
|
|
753
753
|
}), S;
|
|
754
754
|
};
|
|
755
|
-
},
|
|
755
|
+
}, Be = S2({
|
|
756
756
|
appConfig: be,
|
|
757
757
|
runtimeConfig: _e,
|
|
758
758
|
rooms: Te,
|
|
759
759
|
devices: ye,
|
|
760
760
|
ui: je
|
|
761
|
-
}),
|
|
762
|
-
reducer:
|
|
761
|
+
}), ke = j2({
|
|
762
|
+
reducer: Be,
|
|
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(Oe())
|
|
769
769
|
}), f3 = M3.create();
|
|
770
|
-
function
|
|
770
|
+
function k6() {
|
|
771
771
|
const e = W1();
|
|
772
772
|
return async () => {
|
|
773
773
|
try {
|
|
@@ -806,14 +806,14 @@ function We() {
|
|
|
806
806
|
if (w3) return i1;
|
|
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
|
-
function
|
|
810
|
-
var
|
|
811
|
-
f !== void 0 && (F = "" + f), h.key !== void 0 && (F = "" + h.key), h.ref !== void 0 && (
|
|
812
|
-
for (
|
|
813
|
-
if (g && g.defaultProps) for (
|
|
814
|
-
return { $$typeof: t, type: g, key: F, ref:
|
|
809
|
+
function a(g, h, f) {
|
|
810
|
+
var d, P = {}, F = null, u = null;
|
|
811
|
+
f !== void 0 && (F = "" + f), h.key !== void 0 && (F = "" + h.key), h.ref !== void 0 && (u = h.ref);
|
|
812
|
+
for (d in h) c.call(h, d) && !l.hasOwnProperty(d) && (P[d] = h[d]);
|
|
813
|
+
if (g && g.defaultProps) for (d in h = g.defaultProps, h) P[d] === void 0 && (P[d] = h[d]);
|
|
814
|
+
return { $$typeof: t, type: g, key: F, ref: u, props: P, _owner: r.current };
|
|
815
815
|
}
|
|
816
|
-
return i1.Fragment = o, i1.jsx =
|
|
816
|
+
return i1.Fragment = o, i1.jsx = a, i1.jsxs = a, i1;
|
|
817
817
|
}
|
|
818
818
|
var a1 = {};
|
|
819
819
|
/**
|
|
@@ -828,7 +828,7 @@ 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"),
|
|
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"), d = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
|
|
832
832
|
function S(s) {
|
|
833
833
|
if (s === null || typeof s != "object")
|
|
834
834
|
return null;
|
|
@@ -838,36 +838,36 @@ function Ve() {
|
|
|
838
838
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
839
839
|
function x(s) {
|
|
840
840
|
{
|
|
841
|
-
for (var i = arguments.length,
|
|
842
|
-
|
|
843
|
-
|
|
841
|
+
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
842
|
+
v[p - 1] = arguments[p];
|
|
843
|
+
O("error", s, v);
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function O(s, i, v) {
|
|
847
847
|
{
|
|
848
848
|
var p = C.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
849
|
-
E !== "" && (i += "%s",
|
|
850
|
-
var T =
|
|
849
|
+
E !== "" && (i += "%s", v = v.concat([E]));
|
|
850
|
+
var T = v.map(function(y) {
|
|
851
851
|
return String(y);
|
|
852
852
|
});
|
|
853
853
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var o1 = !1, H = !1,
|
|
856
|
+
var o1 = !1, H = !1, B = !1, _ = !1, z = !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 || z || s === r || s === f || s ===
|
|
859
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || _ || s === u || o1 || H || B || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === P || 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.
|
|
863
863
|
s.$$typeof === s1 || s.getModuleId !== void 0));
|
|
864
864
|
}
|
|
865
|
-
function U3(s, i,
|
|
865
|
+
function U3(s, i, v) {
|
|
866
866
|
var p = s.displayName;
|
|
867
867
|
if (p)
|
|
868
868
|
return p;
|
|
869
869
|
var E = i.displayName || i.name || "";
|
|
870
|
-
return E !== "" ?
|
|
870
|
+
return E !== "" ? v + "(" + E + ")" : v;
|
|
871
871
|
}
|
|
872
872
|
function U1(s) {
|
|
873
873
|
return s.displayName || "Context";
|
|
@@ -890,7 +890,7 @@ function Ve() {
|
|
|
890
890
|
return "StrictMode";
|
|
891
891
|
case f:
|
|
892
892
|
return "Suspense";
|
|
893
|
-
case
|
|
893
|
+
case d:
|
|
894
894
|
return "SuspenseList";
|
|
895
895
|
}
|
|
896
896
|
if (typeof s == "object")
|
|
@@ -898,12 +898,12 @@ function Ve() {
|
|
|
898
898
|
case g:
|
|
899
899
|
var i = s;
|
|
900
900
|
return U1(i) + ".Consumer";
|
|
901
|
-
case
|
|
902
|
-
var
|
|
903
|
-
return U1(
|
|
901
|
+
case a:
|
|
902
|
+
var v = s;
|
|
903
|
+
return U1(v._context) + ".Provider";
|
|
904
904
|
case h:
|
|
905
905
|
return U3(s, s.render, "ForwardRef");
|
|
906
|
-
case
|
|
906
|
+
case P:
|
|
907
907
|
var p = s.displayName || null;
|
|
908
908
|
return p !== null ? p : J(s.type) || "Memo";
|
|
909
909
|
case F: {
|
|
@@ -980,7 +980,7 @@ function Ve() {
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
var y1 = C.ReactCurrentDispatcher, I1;
|
|
983
|
-
function h1(s, i,
|
|
983
|
+
function h1(s, i, v) {
|
|
984
984
|
{
|
|
985
985
|
if (I1 === void 0)
|
|
986
986
|
try {
|
|
@@ -1002,9 +1002,9 @@ function Ve() {
|
|
|
1002
1002
|
if (!s || R1)
|
|
1003
1003
|
return "";
|
|
1004
1004
|
{
|
|
1005
|
-
var
|
|
1006
|
-
if (
|
|
1007
|
-
return
|
|
1005
|
+
var v = g1.get(s);
|
|
1006
|
+
if (v !== void 0)
|
|
1007
|
+
return v;
|
|
1008
1008
|
}
|
|
1009
1009
|
var p;
|
|
1010
1010
|
R1 = !0;
|
|
@@ -1047,19 +1047,19 @@ function Ve() {
|
|
|
1047
1047
|
} catch (V) {
|
|
1048
1048
|
if (V && p && typeof V.stack == "string") {
|
|
1049
1049
|
for (var b = V.stack.split(`
|
|
1050
|
-
`),
|
|
1051
|
-
`),
|
|
1052
|
-
|
|
1053
|
-
for (;
|
|
1054
|
-
if (b[
|
|
1055
|
-
if (
|
|
1050
|
+
`), k = p.stack.split(`
|
|
1051
|
+
`), $ = b.length - 1, L = k.length - 1; $ >= 1 && L >= 0 && b[$] !== k[L]; )
|
|
1052
|
+
L--;
|
|
1053
|
+
for (; $ >= 1 && L >= 0; $--, L--)
|
|
1054
|
+
if (b[$] !== k[L]) {
|
|
1055
|
+
if ($ !== 1 || L !== 1)
|
|
1056
1056
|
do
|
|
1057
|
-
if (
|
|
1057
|
+
if ($--, L--, L < 0 || b[$] !== k[L]) {
|
|
1058
1058
|
var K = `
|
|
1059
|
-
` + b[
|
|
1059
|
+
` + b[$].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
|
-
while (
|
|
1062
|
+
while ($ >= 1 && L >= 0);
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
@@ -1069,14 +1069,14 @@ function Ve() {
|
|
|
1069
1069
|
var t1 = s ? s.displayName || s.name : "", Q = t1 ? h1(t1) : "";
|
|
1070
1070
|
return typeof s == "function" && g1.set(s, Q), Q;
|
|
1071
1071
|
}
|
|
1072
|
-
function q3(s, i,
|
|
1072
|
+
function q3(s, i, v) {
|
|
1073
1073
|
return X1(s, !1);
|
|
1074
1074
|
}
|
|
1075
1075
|
function G3(s) {
|
|
1076
1076
|
var i = s.prototype;
|
|
1077
1077
|
return !!(i && i.isReactComponent);
|
|
1078
1078
|
}
|
|
1079
|
-
function f1(s, i,
|
|
1079
|
+
function f1(s, i, v) {
|
|
1080
1080
|
if (s == null)
|
|
1081
1081
|
return "";
|
|
1082
1082
|
if (typeof s == "function")
|
|
@@ -1086,19 +1086,19 @@ function Ve() {
|
|
|
1086
1086
|
switch (s) {
|
|
1087
1087
|
case f:
|
|
1088
1088
|
return h1("Suspense");
|
|
1089
|
-
case
|
|
1089
|
+
case d:
|
|
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
|
|
1097
|
-
return f1(s.type, i,
|
|
1096
|
+
case P:
|
|
1097
|
+
return f1(s.type, i, v);
|
|
1098
1098
|
case F: {
|
|
1099
1099
|
var p = s, E = p._payload, T = p._init;
|
|
1100
1100
|
try {
|
|
1101
|
-
return f1(T(E), i,
|
|
1101
|
+
return f1(T(E), i, v);
|
|
1102
1102
|
} catch {
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
@@ -1108,12 +1108,12 @@ function Ve() {
|
|
|
1108
1108
|
var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = C.ReactDebugCurrentFrame;
|
|
1109
1109
|
function w1(s) {
|
|
1110
1110
|
if (s) {
|
|
1111
|
-
var i = s._owner,
|
|
1112
|
-
N1.setExtraStackFrame(
|
|
1111
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1112
|
+
N1.setExtraStackFrame(v);
|
|
1113
1113
|
} else
|
|
1114
1114
|
N1.setExtraStackFrame(null);
|
|
1115
1115
|
}
|
|
1116
|
-
function Y3(s, i,
|
|
1116
|
+
function Y3(s, i, v, p, E) {
|
|
1117
1117
|
{
|
|
1118
1118
|
var T = Function.call.bind(r1);
|
|
1119
1119
|
for (var y in s)
|
|
@@ -1121,14 +1121,14 @@ function Ve() {
|
|
|
1121
1121
|
var b = void 0;
|
|
1122
1122
|
try {
|
|
1123
1123
|
if (typeof s[y] != "function") {
|
|
1124
|
-
var
|
|
1125
|
-
throw
|
|
1124
|
+
var k = Error((p || "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`.");
|
|
1125
|
+
throw k.name = "Invariant Violation", k;
|
|
1126
1126
|
}
|
|
1127
|
-
b = s[y](i, y, p,
|
|
1128
|
-
} catch (
|
|
1129
|
-
b =
|
|
1127
|
+
b = s[y](i, y, p, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1128
|
+
} catch ($) {
|
|
1129
|
+
b = $;
|
|
1130
1130
|
}
|
|
1131
|
-
b && !(b 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",
|
|
1131
|
+
b && !(b 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, y, typeof b), w1(null)), b instanceof Error && !(b.message in Q1) && (Q1[b.message] = !0, w1(E), x("Failed %s type: %s", v, b.message), w1(null));
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
@@ -1138,8 +1138,8 @@ function Ve() {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
function J3(s) {
|
|
1140
1140
|
{
|
|
1141
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
1142
|
-
return
|
|
1141
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, v = i && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
1142
|
+
return v;
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
function X3(s) {
|
|
@@ -1183,34 +1183,34 @@ function Ve() {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
function n2(s, i) {
|
|
1185
1185
|
{
|
|
1186
|
-
var
|
|
1186
|
+
var v = function() {
|
|
1187
1187
|
o3 || (o3 = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
1188
1188
|
};
|
|
1189
|
-
|
|
1190
|
-
get:
|
|
1189
|
+
v.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
1190
|
+
get: v,
|
|
1191
1191
|
configurable: !0
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
function o2(s, i) {
|
|
1196
1196
|
{
|
|
1197
|
-
var
|
|
1197
|
+
var v = function() {
|
|
1198
1198
|
s3 || (s3 = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
1199
1199
|
};
|
|
1200
|
-
|
|
1201
|
-
get:
|
|
1200
|
+
v.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
1201
|
+
get: v,
|
|
1202
1202
|
configurable: !0
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
var s2 = function(s, i,
|
|
1206
|
+
var s2 = function(s, i, v, p, E, T, y) {
|
|
1207
1207
|
var b = {
|
|
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
|
|
1211
1211
|
type: s,
|
|
1212
1212
|
key: i,
|
|
1213
|
-
ref:
|
|
1213
|
+
ref: v,
|
|
1214
1214
|
props: y,
|
|
1215
1215
|
// Record the component responsible for creating this element.
|
|
1216
1216
|
_owner: T
|
|
@@ -1232,29 +1232,29 @@ function Ve() {
|
|
|
1232
1232
|
value: E
|
|
1233
1233
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
1234
1234
|
};
|
|
1235
|
-
function c2(s, i,
|
|
1235
|
+
function c2(s, i, v, p, E) {
|
|
1236
1236
|
{
|
|
1237
|
-
var T, y = {}, b = null,
|
|
1238
|
-
|
|
1237
|
+
var T, y = {}, b = null, k = null;
|
|
1238
|
+
v !== void 0 && (t3(v), b = "" + v), e2(i) && (t3(i.key), b = "" + i.key), N3(i) && (k = i.ref, t2(i, E));
|
|
1239
1239
|
for (T in i)
|
|
1240
1240
|
r1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
|
|
1241
1241
|
if (s && s.defaultProps) {
|
|
1242
|
-
var
|
|
1243
|
-
for (T in
|
|
1244
|
-
y[T] === void 0 && (y[T] =
|
|
1242
|
+
var $ = s.defaultProps;
|
|
1243
|
+
for (T in $)
|
|
1244
|
+
y[T] === void 0 && (y[T] = $[T]);
|
|
1245
1245
|
}
|
|
1246
|
-
if (b ||
|
|
1247
|
-
var
|
|
1248
|
-
b && n2(y,
|
|
1246
|
+
if (b || k) {
|
|
1247
|
+
var L = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1248
|
+
b && n2(y, L), k && o2(y, L);
|
|
1249
1249
|
}
|
|
1250
|
-
return s2(s, b,
|
|
1250
|
+
return s2(s, b, k, E, p, n3.current, y);
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
var T1 = C.ReactCurrentOwner, c3 = C.ReactDebugCurrentFrame;
|
|
1254
1254
|
function e1(s) {
|
|
1255
1255
|
if (s) {
|
|
1256
|
-
var i = s._owner,
|
|
1257
|
-
c3.setExtraStackFrame(
|
|
1256
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1257
|
+
c3.setExtraStackFrame(v);
|
|
1258
1258
|
} else
|
|
1259
1259
|
c3.setExtraStackFrame(null);
|
|
1260
1260
|
}
|
|
@@ -1283,10 +1283,10 @@ Check the render method of \`` + s + "`.";
|
|
|
1283
1283
|
{
|
|
1284
1284
|
var i = r3();
|
|
1285
1285
|
if (!i) {
|
|
1286
|
-
var
|
|
1287
|
-
|
|
1286
|
+
var v = typeof s == "string" ? s : s.displayName || s.name;
|
|
1287
|
+
v && (i = `
|
|
1288
1288
|
|
|
1289
|
-
Check the top-level render call using <` +
|
|
1289
|
+
Check the top-level render call using <` + v + ">.");
|
|
1290
1290
|
}
|
|
1291
1291
|
return i;
|
|
1292
1292
|
}
|
|
@@ -1296,12 +1296,12 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1296
1296
|
if (!s._store || s._store.validated || s.key != null)
|
|
1297
1297
|
return;
|
|
1298
1298
|
s._store.validated = !0;
|
|
1299
|
-
var
|
|
1300
|
-
if (l3[
|
|
1299
|
+
var v = l2(i);
|
|
1300
|
+
if (l3[v])
|
|
1301
1301
|
return;
|
|
1302
|
-
l3[
|
|
1302
|
+
l3[v] = !0;
|
|
1303
1303
|
var p = "";
|
|
1304
|
-
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(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.',
|
|
1304
|
+
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(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), e1(null);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
function a3(s, i) {
|
|
@@ -1309,8 +1309,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1309
1309
|
if (typeof s != "object")
|
|
1310
1310
|
return;
|
|
1311
1311
|
if (E1(s))
|
|
1312
|
-
for (var
|
|
1313
|
-
var p = s[
|
|
1312
|
+
for (var v = 0; v < s.length; v++) {
|
|
1313
|
+
var p = s[v];
|
|
1314
1314
|
_1(p) && i3(p, i);
|
|
1315
1315
|
}
|
|
1316
1316
|
else if (_1(s))
|
|
@@ -1328,18 +1328,18 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1328
1328
|
var i = s.type;
|
|
1329
1329
|
if (i == null || typeof i == "string")
|
|
1330
1330
|
return;
|
|
1331
|
-
var
|
|
1331
|
+
var v;
|
|
1332
1332
|
if (typeof i == "function")
|
|
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 ===
|
|
1337
|
-
|
|
1336
|
+
i.$$typeof === P))
|
|
1337
|
+
v = i.propTypes;
|
|
1338
1338
|
else
|
|
1339
1339
|
return;
|
|
1340
|
-
if (
|
|
1340
|
+
if (v) {
|
|
1341
1341
|
var p = J(i);
|
|
1342
|
-
Y3(
|
|
1342
|
+
Y3(v, s.props, "prop", p, s);
|
|
1343
1343
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1344
1344
|
D1 = !0;
|
|
1345
1345
|
var E = J(i);
|
|
@@ -1350,8 +1350,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1350
1350
|
}
|
|
1351
1351
|
function a2(s) {
|
|
1352
1352
|
{
|
|
1353
|
-
for (var i = Object.keys(s.props),
|
|
1354
|
-
var p = i[
|
|
1353
|
+
for (var i = Object.keys(s.props), v = 0; v < i.length; v++) {
|
|
1354
|
+
var p = i[v];
|
|
1355
1355
|
if (p !== "children" && p !== "key") {
|
|
1356
1356
|
e1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), e1(null);
|
|
1357
1357
|
break;
|
|
@@ -1361,20 +1361,20 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
var u3 = {};
|
|
1364
|
-
function d3(s, i,
|
|
1364
|
+
function d3(s, i, v, p, E, T) {
|
|
1365
1365
|
{
|
|
1366
1366
|
var y = b1(s);
|
|
1367
1367
|
if (!y) {
|
|
1368
1368
|
var b = "";
|
|
1369
1369
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (b += " 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
|
-
var
|
|
1371
|
-
|
|
1372
|
-
var
|
|
1373
|
-
s === null ?
|
|
1374
|
-
}
|
|
1375
|
-
var
|
|
1376
|
-
if (
|
|
1377
|
-
return
|
|
1370
|
+
var k = r2();
|
|
1371
|
+
k ? b += k : b += r3();
|
|
1372
|
+
var $;
|
|
1373
|
+
s === null ? $ = "null" : E1(s) ? $ = "array" : s !== void 0 && s.$$typeof === t ? ($ = "<" + (J(s.type) || "Unknown") + " />", b = " 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", $, b);
|
|
1374
|
+
}
|
|
1375
|
+
var L = c2(s, i, v, E, T);
|
|
1376
|
+
if (L == null)
|
|
1377
|
+
return L;
|
|
1378
1378
|
if (y) {
|
|
1379
1379
|
var K = i.children;
|
|
1380
1380
|
if (K !== void 0)
|
|
@@ -1391,25 +1391,25 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1391
1391
|
if (r1.call(i, "key")) {
|
|
1392
1392
|
var Q = J(s), V = Object.keys(i).filter(function(f2) {
|
|
1393
1393
|
return f2 !== "key";
|
|
1394
|
-
}),
|
|
1395
|
-
if (!u3[Q +
|
|
1394
|
+
}), P1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1395
|
+
if (!u3[Q + P1]) {
|
|
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} />`, P1, Q, g2, Q), u3[Q + P1] = !0;
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
|
-
return s === c ? a2(
|
|
1405
|
+
return s === c ? a2(L) : i2(L), L;
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function u2(s, i,
|
|
1409
|
-
return d3(s, i,
|
|
1408
|
+
function u2(s, i, v) {
|
|
1409
|
+
return d3(s, i, v, !0);
|
|
1410
1410
|
}
|
|
1411
|
-
function d2(s, i,
|
|
1412
|
-
return d3(s, i,
|
|
1411
|
+
function d2(s, i, v) {
|
|
1412
|
+
return d3(s, i, v, !1);
|
|
1413
1413
|
}
|
|
1414
1414
|
var v2 = d2, h2 = u2;
|
|
1415
1415
|
a1.Fragment = c, a1.jsx = v2, a1.jsxs = h2;
|
|
@@ -1423,7 +1423,7 @@ var n = Ue();
|
|
|
1423
1423
|
const Fe = "_mwfit_ppa3l_1", He = {
|
|
1424
1424
|
mwfit: Fe
|
|
1425
1425
|
}, Ke = () => {
|
|
1426
|
-
const { reconnect: e } =
|
|
1426
|
+
const { reconnect: e } = I(), 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: `${He.mwfit} mx-auto text-center`, children: [
|
|
1429
1429
|
t === void 0 ? /* @__PURE__ */ n.jsx("h2", { children: "Connecting..." }) : /* @__PURE__ */ n.jsx("h2", { children: "Disconnected" }),
|
|
@@ -1431,7 +1431,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1431
1431
|
] }),
|
|
1432
1432
|
c && /* @__PURE__ */ n.jsx("button", { className: "btn btn-secondary btn-lg", onPointerDown: e, children: "Reconnect" })
|
|
1433
1433
|
] });
|
|
1434
|
-
},
|
|
1434
|
+
}, k3 = C2({
|
|
1435
1435
|
sendMessage: () => null,
|
|
1436
1436
|
sendSimpleMessage: () => null,
|
|
1437
1437
|
addEventHandler: () => null,
|
|
@@ -1440,11 +1440,11 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1440
1440
|
}), qe = ({ children: e }) => {
|
|
1441
1441
|
const t = W1(), o = I3();
|
|
1442
1442
|
Z1(() => {
|
|
1443
|
-
t(
|
|
1443
|
+
t(B3());
|
|
1444
1444
|
}, [t]);
|
|
1445
1445
|
const c = l1(
|
|
1446
1446
|
(h, f) => {
|
|
1447
|
-
t(
|
|
1447
|
+
t(Pe(h, f));
|
|
1448
1448
|
},
|
|
1449
1449
|
[t]
|
|
1450
1450
|
), r = l1(
|
|
@@ -1453,34 +1453,34 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1453
1453
|
},
|
|
1454
1454
|
[c]
|
|
1455
1455
|
), l = l1(
|
|
1456
|
-
(h, f,
|
|
1457
|
-
t(
|
|
1456
|
+
(h, f, d) => {
|
|
1457
|
+
t($e(h, f, d));
|
|
1458
1458
|
},
|
|
1459
1459
|
[t]
|
|
1460
|
-
),
|
|
1460
|
+
), a = l1(
|
|
1461
1461
|
(h, f) => {
|
|
1462
|
-
t(
|
|
1462
|
+
t(Le(h, f));
|
|
1463
1463
|
},
|
|
1464
1464
|
[t]
|
|
1465
1465
|
), g = l1(() => {
|
|
1466
1466
|
t(Ae());
|
|
1467
1467
|
}, [t]);
|
|
1468
1468
|
return /* @__PURE__ */ n.jsx(
|
|
1469
|
-
|
|
1469
|
+
k3.Provider,
|
|
1470
1470
|
{
|
|
1471
1471
|
value: {
|
|
1472
1472
|
sendMessage: c,
|
|
1473
1473
|
sendSimpleMessage: r,
|
|
1474
1474
|
addEventHandler: l,
|
|
1475
|
-
removeEventHandler:
|
|
1475
|
+
removeEventHandler: a,
|
|
1476
1476
|
reconnect: g
|
|
1477
1477
|
},
|
|
1478
1478
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
1479
1479
|
}
|
|
1480
1480
|
);
|
|
1481
|
-
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store:
|
|
1482
|
-
function
|
|
1483
|
-
return b2(
|
|
1481
|
+
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: ke, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
|
|
1482
|
+
function I() {
|
|
1483
|
+
return b2(k3);
|
|
1484
1484
|
}
|
|
1485
1485
|
function Ge({
|
|
1486
1486
|
onPress: e,
|
|
@@ -1489,38 +1489,38 @@ function Ge({
|
|
|
1489
1489
|
onPressedButNotHeld: c,
|
|
1490
1490
|
holdTimeMs: r = 500
|
|
1491
1491
|
}) {
|
|
1492
|
-
const l = d1(null),
|
|
1492
|
+
const l = d1(null), a = d1(!1), g = d1(!1);
|
|
1493
1493
|
function h() {
|
|
1494
|
-
|
|
1494
|
+
a.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
|
|
1495
1495
|
g.current = !0, o == null || o(), l.current = null;
|
|
1496
1496
|
}, r);
|
|
1497
1497
|
}
|
|
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
|
|
1502
|
-
|
|
1501
|
+
function d() {
|
|
1502
|
+
a.current && f();
|
|
1503
1503
|
}
|
|
1504
1504
|
return {
|
|
1505
1505
|
onPointerDown: h,
|
|
1506
1506
|
onPointerUp: f,
|
|
1507
|
-
onPointerLeave:
|
|
1507
|
+
onPointerLeave: d
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
function w(e, t) {
|
|
1511
|
-
const { sendMessage: c } =
|
|
1511
|
+
const { sendMessage: c } = I(), 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" });
|
|
1515
1515
|
}, 250));
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function a() {
|
|
1518
1518
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1519
1519
|
}
|
|
1520
|
-
return Ge({ onPress: l, onRelease:
|
|
1520
|
+
return Ge({ onPress: l, onRelease: a });
|
|
1521
1521
|
}
|
|
1522
1522
|
function C1(e) {
|
|
1523
|
-
const { sendMessage: t } =
|
|
1523
|
+
const { sendMessage: t } = I(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1524
1524
|
return n1(() => ({
|
|
1525
1525
|
volumeUp: o,
|
|
1526
1526
|
volumeDown: c,
|
|
@@ -1528,7 +1528,7 @@ function C1(e) {
|
|
|
1528
1528
|
}), [e, t, o, c]);
|
|
1529
1529
|
}
|
|
1530
1530
|
function V6(e) {
|
|
1531
|
-
const { sendMessage: t } =
|
|
1531
|
+
const { sendMessage: t } = I(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1532
1532
|
return n1(() => ({
|
|
1533
1533
|
volumeUp: o,
|
|
1534
1534
|
volumeDown: c,
|
|
@@ -1536,7 +1536,7 @@ function V6(e) {
|
|
|
1536
1536
|
}), [e, t, o, c]);
|
|
1537
1537
|
}
|
|
1538
1538
|
function W3(e, t) {
|
|
1539
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1539
|
+
const { sendMessage: o, sendSimpleMessage: c } = I(), r = C1(e);
|
|
1540
1540
|
return n1(() => {
|
|
1541
1541
|
if (!r) {
|
|
1542
1542
|
console.log("baseVolume is undefined");
|
|
@@ -1556,7 +1556,7 @@ 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 } =
|
|
1559
|
+
const { sendMessage: o, sendSimpleMessage: c } = I(), r = C1(e);
|
|
1560
1560
|
return n1(() => {
|
|
1561
1561
|
if (!r) {
|
|
1562
1562
|
console.log("baseVolume is undefined");
|
|
@@ -1576,30 +1576,31 @@ function U6(e, t) {
|
|
|
1576
1576
|
}, [r, t, e, o, c]);
|
|
1577
1577
|
}
|
|
1578
1578
|
function Ye(e) {
|
|
1579
|
-
const t =
|
|
1579
|
+
const t = D(e), o = `/device/${e}`, c = n1(() => {
|
|
1580
1580
|
if (t)
|
|
1581
1581
|
return t.volume;
|
|
1582
1582
|
}, [t]);
|
|
1583
1583
|
return W3(o, c);
|
|
1584
1584
|
}
|
|
1585
1585
|
function V3(e) {
|
|
1586
|
-
|
|
1586
|
+
var a;
|
|
1587
|
+
const { sendMessage: t } = I(), o = (a = D(e)) == null ? void 0 : a.powerState;
|
|
1587
1588
|
return { powerOn: () => {
|
|
1588
1589
|
t(`/device/${e}/powerOn`, null);
|
|
1589
1590
|
}, powerOff: () => {
|
|
1590
1591
|
t(`/device/${e}/powerOff`, null);
|
|
1591
1592
|
}, powerToggle: () => {
|
|
1592
1593
|
t(`/device/${e}/powerToggle`, null);
|
|
1593
|
-
} };
|
|
1594
|
+
}, powerState: o };
|
|
1594
1595
|
}
|
|
1595
|
-
function
|
|
1596
|
-
const { sendMessage: t } =
|
|
1596
|
+
function k1(e) {
|
|
1597
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1597
1598
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1598
1599
|
t(`/device/${e}/${r}`, null);
|
|
1599
1600
|
} } : void 0;
|
|
1600
1601
|
}
|
|
1601
1602
|
function ze(e) {
|
|
1602
|
-
const { sendMessage: t } =
|
|
1603
|
+
const { sendMessage: t } = I(), o = D(e), c = () => {
|
|
1603
1604
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1604
1605
|
}, r = () => {
|
|
1605
1606
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1610,18 +1611,32 @@ function ze(e) {
|
|
|
1610
1611
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1611
1612
|
}
|
|
1612
1613
|
function F6(e) {
|
|
1613
|
-
const t =
|
|
1614
|
+
const t = D(e), o = V3(e), c = k1(e), r = k1(e), l = Ye(e), a = ze(e);
|
|
1614
1615
|
if (t)
|
|
1615
1616
|
return {
|
|
1616
1617
|
avrState: t,
|
|
1617
1618
|
powerControl: o,
|
|
1618
1619
|
inputControl: c,
|
|
1619
1620
|
surroundSoundModes: r,
|
|
1620
|
-
surroundChannels:
|
|
1621
|
+
surroundChannels: a,
|
|
1621
1622
|
mainVolumeControl: l
|
|
1622
1623
|
};
|
|
1623
1624
|
}
|
|
1624
|
-
|
|
1625
|
+
function H6(e) {
|
|
1626
|
+
const { sendMessage: t } = I(), o = `/device/${e}`, c = D(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"), d = (P) => t("/camera/recallPreset", P);
|
|
1627
|
+
if (c)
|
|
1628
|
+
return {
|
|
1629
|
+
state: c,
|
|
1630
|
+
zoomIn: h,
|
|
1631
|
+
zoomOut: f,
|
|
1632
|
+
up: r,
|
|
1633
|
+
down: l,
|
|
1634
|
+
left: a,
|
|
1635
|
+
right: g,
|
|
1636
|
+
recallPreset: d
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
const K6 = ({ className: e }) => {
|
|
1625
1640
|
const [t, o] = Y();
|
|
1626
1641
|
return Z1(() => {
|
|
1627
1642
|
setInterval(() => {
|
|
@@ -1633,59 +1648,45 @@ const H6 = ({ className: e }) => {
|
|
|
1633
1648
|
" new change"
|
|
1634
1649
|
] });
|
|
1635
1650
|
};
|
|
1636
|
-
function
|
|
1637
|
-
const { sendMessage: t } =
|
|
1638
|
-
return o ? { state: o, recallPreset: (
|
|
1639
|
-
t(`${c}/presets/recall`, { deviceKey:
|
|
1640
|
-
}, savePresets: (
|
|
1641
|
-
t(`${c}/presets/save`,
|
|
1651
|
+
function q6(e) {
|
|
1652
|
+
const { sendMessage: t } = I(), o = D(e), c = `/device/${e}`;
|
|
1653
|
+
return o ? { state: o, recallPreset: (a, g) => {
|
|
1654
|
+
t(`${c}/presets/recall`, { deviceKey: a, preset: g });
|
|
1655
|
+
}, savePresets: (a) => {
|
|
1656
|
+
t(`${c}/presets/save`, a);
|
|
1642
1657
|
} } : void 0;
|
|
1643
1658
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const t =
|
|
1659
|
+
function G6(e) {
|
|
1660
|
+
const t = D(e);
|
|
1646
1661
|
if (t)
|
|
1647
1662
|
return { endpointState: t };
|
|
1648
1663
|
}
|
|
1649
|
-
function G6(e) {
|
|
1650
|
-
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"), v = w(t, "info"), g = w(t, "exit");
|
|
1651
|
-
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: v, exit: g };
|
|
1652
|
-
}
|
|
1653
1664
|
function Y6(e) {
|
|
1665
|
+
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"), a = w(t, "info"), g = w(t, "exit");
|
|
1666
|
+
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: a, exit: g };
|
|
1667
|
+
}
|
|
1668
|
+
function z6(e) {
|
|
1654
1669
|
const t = `/device/${e}`, o = w(t, "red"), c = w(t, "green"), r = w(t, "yellow"), l = w(t, "blue");
|
|
1655
1670
|
return { red: o, green: c, yellow: r, blue: l };
|
|
1656
1671
|
}
|
|
1657
|
-
function
|
|
1658
|
-
const t =
|
|
1672
|
+
function J6(e) {
|
|
1673
|
+
const t = D(e);
|
|
1659
1674
|
if (t)
|
|
1660
1675
|
return {
|
|
1661
1676
|
communicationMonitorState: t
|
|
1662
1677
|
};
|
|
1663
1678
|
}
|
|
1664
|
-
function
|
|
1665
|
-
const t =
|
|
1679
|
+
function X6(e) {
|
|
1680
|
+
const t = D(e);
|
|
1666
1681
|
if (t)
|
|
1667
1682
|
return t.deviceInfo || void 0;
|
|
1668
1683
|
}
|
|
1669
|
-
function X6(e) {
|
|
1670
|
-
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"), v = w(t, "select"), g = w(t, "menu"), h = w(t, "exit");
|
|
1671
|
-
return { up: o, down: c, left: r, right: l, select: v, menu: g, exit: h };
|
|
1672
|
-
}
|
|
1673
1684
|
function Q6(e) {
|
|
1674
|
-
const
|
|
1675
|
-
|
|
1676
|
-
return {
|
|
1677
|
-
state: c,
|
|
1678
|
-
zoomIn: h,
|
|
1679
|
-
zoomOut: f,
|
|
1680
|
-
up: r,
|
|
1681
|
-
down: l,
|
|
1682
|
-
left: v,
|
|
1683
|
-
right: g,
|
|
1684
|
-
recallPreset: u
|
|
1685
|
-
};
|
|
1685
|
+
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");
|
|
1686
|
+
return { up: o, down: c, left: r, right: l, select: a, menu: g, exit: h };
|
|
1686
1687
|
}
|
|
1687
1688
|
function N6(e) {
|
|
1688
|
-
const { sendMessage: t } =
|
|
1689
|
+
const { sendMessage: t } = I();
|
|
1689
1690
|
return { recallPreset: (c) => {
|
|
1690
1691
|
t(
|
|
1691
1692
|
`/device/${e}/recallPreset`,
|
|
@@ -1698,7 +1699,7 @@ function et(e) {
|
|
|
1698
1699
|
return { dvrList: o, record: c };
|
|
1699
1700
|
}
|
|
1700
1701
|
function tt(e) {
|
|
1701
|
-
const { sendMessage: t } =
|
|
1702
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1702
1703
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1703
1704
|
t(`/device/${e}/setAutoMode`, null);
|
|
1704
1705
|
}, setManualMode: () => {
|
|
@@ -1712,7 +1713,27 @@ function tt(e) {
|
|
|
1712
1713
|
} } : void 0;
|
|
1713
1714
|
}
|
|
1714
1715
|
function nt(e) {
|
|
1715
|
-
|
|
1716
|
+
var a;
|
|
1717
|
+
const { sendMessage: t } = I(), o = (a = D(e)) == null ? void 0 : a.cameraIsMuted;
|
|
1718
|
+
return { cameraMuteOn: () => {
|
|
1719
|
+
t(`/device/${e}/cameraMuteOn`, null);
|
|
1720
|
+
}, cameraMuteOff: () => {
|
|
1721
|
+
t(`/device/${e}/cameraMuteOff`, null);
|
|
1722
|
+
}, cameraMuteToggle: () => {
|
|
1723
|
+
t(`/device/${e}/cameraMuteToggle`, null);
|
|
1724
|
+
}, cameraIsMuted: o };
|
|
1725
|
+
}
|
|
1726
|
+
function ot(e) {
|
|
1727
|
+
var l;
|
|
1728
|
+
const { sendMessage: t } = I(), o = (l = D(e)) == null ? void 0 : l.presets;
|
|
1729
|
+
return { recallPreset: (a) => {
|
|
1730
|
+
t(`/device/${e}/recallPreset`, a);
|
|
1731
|
+
}, savePreset: (a) => {
|
|
1732
|
+
t(`/device/${e}/savePreset`, a);
|
|
1733
|
+
}, presets: o };
|
|
1734
|
+
}
|
|
1735
|
+
function st(e) {
|
|
1736
|
+
const { sendMessage: t } = I(), o = `/device/${e}`, c = D(e);
|
|
1716
1737
|
return c ? {
|
|
1717
1738
|
state: c,
|
|
1718
1739
|
selectCamera: (l) => {
|
|
@@ -1720,94 +1741,94 @@ function nt(e) {
|
|
|
1720
1741
|
}
|
|
1721
1742
|
} : void 0;
|
|
1722
1743
|
}
|
|
1723
|
-
function
|
|
1724
|
-
const t =
|
|
1744
|
+
function ct(e) {
|
|
1745
|
+
const t = D(e);
|
|
1725
1746
|
if (t)
|
|
1726
1747
|
return { state: t };
|
|
1727
1748
|
}
|
|
1728
|
-
function
|
|
1729
|
-
const { sendMessage: t, sendSimpleMessage: o } =
|
|
1749
|
+
function rt(e) {
|
|
1750
|
+
const { sendMessage: t, sendSimpleMessage: o } = I(), c = D(e), r = ne(e), l = c || r;
|
|
1730
1751
|
return l ? {
|
|
1731
1752
|
levelState: l,
|
|
1732
|
-
setLevel: (
|
|
1733
|
-
muteToggle: (
|
|
1734
|
-
muteOn: (
|
|
1735
|
-
muteOff: (
|
|
1753
|
+
setLevel: (d, P) => o(`${d}/level`, P),
|
|
1754
|
+
muteToggle: (d) => t(`${d}/muteToggle`, null),
|
|
1755
|
+
muteOn: (d) => t(`${d}/muteOn`, null),
|
|
1756
|
+
muteOff: (d) => t(`${d}/muteOff`, null)
|
|
1736
1757
|
} : void 0;
|
|
1737
1758
|
}
|
|
1738
|
-
function
|
|
1739
|
-
const { sendMessage: t } =
|
|
1759
|
+
function lt(e) {
|
|
1760
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1740
1761
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1741
1762
|
t(`/device/${e}/selectScene`, r);
|
|
1742
1763
|
} } : void 0;
|
|
1743
1764
|
}
|
|
1744
|
-
function
|
|
1745
|
-
const { sendMessage: t } =
|
|
1765
|
+
function it(e) {
|
|
1766
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1746
1767
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1747
1768
|
t(`/device/${e}/route`, r);
|
|
1748
1769
|
} } : void 0;
|
|
1749
1770
|
}
|
|
1750
|
-
function
|
|
1751
|
-
const { sendMessage: t } =
|
|
1771
|
+
function at(e) {
|
|
1772
|
+
const { sendMessage: t } = I();
|
|
1752
1773
|
return { closeApp: () => {
|
|
1753
1774
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1754
1775
|
} };
|
|
1755
1776
|
}
|
|
1756
|
-
function
|
|
1757
|
-
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"),
|
|
1777
|
+
function ut(e) {
|
|
1778
|
+
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"), d = w(t, "num8"), P = w(t, "num9"), F = w(t, "numDash"), u = w(t, "numEnter");
|
|
1758
1779
|
return {
|
|
1759
1780
|
digit0: o,
|
|
1760
1781
|
digit1: c,
|
|
1761
1782
|
digit2: r,
|
|
1762
1783
|
digit3: l,
|
|
1763
|
-
digit4:
|
|
1784
|
+
digit4: a,
|
|
1764
1785
|
digit5: g,
|
|
1765
1786
|
digit6: h,
|
|
1766
1787
|
digit7: f,
|
|
1767
|
-
digit8:
|
|
1768
|
-
digit9:
|
|
1788
|
+
digit8: d,
|
|
1789
|
+
digit9: P,
|
|
1769
1790
|
keypadAccessoryButton1: F,
|
|
1770
|
-
keypadAccessoryButton2:
|
|
1791
|
+
keypadAccessoryButton2: u
|
|
1771
1792
|
};
|
|
1772
1793
|
}
|
|
1773
|
-
function
|
|
1774
|
-
const { sendMessage: t } =
|
|
1794
|
+
function dt(e) {
|
|
1795
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1775
1796
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1776
1797
|
t(`/device/${e}/raise`, null);
|
|
1777
1798
|
}, lower: () => {
|
|
1778
1799
|
t(`/device/${e}/lower`, null);
|
|
1779
1800
|
} } : void 0;
|
|
1780
1801
|
}
|
|
1781
|
-
function
|
|
1782
|
-
const { sendMessage: t } =
|
|
1802
|
+
function vt(e) {
|
|
1803
|
+
const { sendMessage: t } = I(), o = j1(e);
|
|
1783
1804
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1784
1805
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1785
1806
|
} } : void 0;
|
|
1786
1807
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const { sendMessage: t } =
|
|
1808
|
+
function ht(e) {
|
|
1809
|
+
const { sendMessage: t } = I();
|
|
1789
1810
|
return { runDefaultPresentRoute: () => {
|
|
1790
1811
|
t(`/room/${e}/defaultsource`, {});
|
|
1791
1812
|
} };
|
|
1792
1813
|
}
|
|
1793
|
-
function
|
|
1794
|
-
const { sendMessage: t } =
|
|
1814
|
+
function gt(e) {
|
|
1815
|
+
const { sendMessage: t } = I();
|
|
1795
1816
|
return { runDirectRoute: (c) => {
|
|
1796
1817
|
t(`/room/${e}/directRoute`, c);
|
|
1797
1818
|
} };
|
|
1798
1819
|
}
|
|
1799
|
-
function
|
|
1800
|
-
const { sendMessage: t } =
|
|
1801
|
-
return { routingState:
|
|
1820
|
+
function ft(e) {
|
|
1821
|
+
const { sendMessage: t } = I();
|
|
1822
|
+
return { routingState: D(e), runRoute: (r) => {
|
|
1802
1823
|
t(`/room/${e}/source`, r);
|
|
1803
1824
|
} };
|
|
1804
1825
|
}
|
|
1805
|
-
function
|
|
1826
|
+
function wt(e) {
|
|
1806
1827
|
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown");
|
|
1807
1828
|
return { dvrList: o, replay: c };
|
|
1808
1829
|
}
|
|
1809
|
-
function
|
|
1810
|
-
const { sendMessage: t } =
|
|
1830
|
+
function mt(e) {
|
|
1831
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1811
1832
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1812
1833
|
t(`/device/${e}/shadeUp`, null);
|
|
1813
1834
|
}, shadeDown: () => {
|
|
@@ -1816,8 +1837,8 @@ function ft(e) {
|
|
|
1816
1837
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1817
1838
|
} } : void 0;
|
|
1818
1839
|
}
|
|
1819
|
-
function
|
|
1820
|
-
const { sendMessage: t } =
|
|
1840
|
+
function pt(e) {
|
|
1841
|
+
const { sendMessage: t } = I(), o = j1(e);
|
|
1821
1842
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
|
|
1822
1843
|
t(`/room/${e}/setShutdownPromptSeconds`, g);
|
|
1823
1844
|
}, shutdownStart: () => {
|
|
@@ -1828,28 +1849,28 @@ function wt(e) {
|
|
|
1828
1849
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1829
1850
|
} } : void 0;
|
|
1830
1851
|
}
|
|
1831
|
-
function
|
|
1832
|
-
const { sendMessage: t } =
|
|
1852
|
+
function Mt(e) {
|
|
1853
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1833
1854
|
return o ? { switchedOutputState: o, on: () => {
|
|
1834
1855
|
t(`/device/${e}/on`, null);
|
|
1835
1856
|
}, off: () => {
|
|
1836
1857
|
t(`/device/${e}/off`, null);
|
|
1837
1858
|
} } : void 0;
|
|
1838
1859
|
}
|
|
1839
|
-
function
|
|
1840
|
-
const { sendMessage: t } =
|
|
1860
|
+
function xt(e) {
|
|
1861
|
+
const { sendMessage: t } = I(), o = j1(e);
|
|
1841
1862
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1842
1863
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1843
|
-
}, setPassword: (l,
|
|
1844
|
-
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword:
|
|
1864
|
+
}, setPassword: (l, a) => {
|
|
1865
|
+
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: a });
|
|
1845
1866
|
} } : void 0;
|
|
1846
1867
|
}
|
|
1847
|
-
function
|
|
1848
|
-
const { sendMessage: t } =
|
|
1868
|
+
function Zt(e) {
|
|
1869
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1849
1870
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1850
1871
|
}
|
|
1851
|
-
function
|
|
1852
|
-
const { sendMessage: t } =
|
|
1872
|
+
function St(e) {
|
|
1873
|
+
const { sendMessage: t } = I(), o = D(e), c = (r) => {
|
|
1853
1874
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1854
1875
|
};
|
|
1855
1876
|
return {
|
|
@@ -1857,21 +1878,21 @@ function xt(e) {
|
|
|
1857
1878
|
saveTheme: c
|
|
1858
1879
|
};
|
|
1859
1880
|
}
|
|
1860
|
-
function
|
|
1861
|
-
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"),
|
|
1881
|
+
function jt(e) {
|
|
1882
|
+
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");
|
|
1862
1883
|
return {
|
|
1863
1884
|
play: o,
|
|
1864
1885
|
pause: c,
|
|
1865
1886
|
stop: r,
|
|
1866
1887
|
prevTrack: l,
|
|
1867
|
-
nextTrack:
|
|
1888
|
+
nextTrack: a,
|
|
1868
1889
|
rewind: g,
|
|
1869
1890
|
fastForward: h,
|
|
1870
1891
|
record: f
|
|
1871
1892
|
};
|
|
1872
1893
|
}
|
|
1873
|
-
function
|
|
1874
|
-
const t =
|
|
1894
|
+
function Ct(e) {
|
|
1895
|
+
const t = D(e), { sendMessage: o } = I();
|
|
1875
1896
|
return t ? {
|
|
1876
1897
|
touchpanelState: t,
|
|
1877
1898
|
appControl: { hideApp: () => {
|
|
@@ -1886,8 +1907,8 @@ function St(e) {
|
|
|
1886
1907
|
} }
|
|
1887
1908
|
} : void 0;
|
|
1888
1909
|
}
|
|
1889
|
-
function
|
|
1890
|
-
const t =
|
|
1910
|
+
function bt(e) {
|
|
1911
|
+
const t = D(e), o = V3(e), c = k1(e);
|
|
1891
1912
|
if (!t) return;
|
|
1892
1913
|
const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1893
1914
|
return {
|
|
@@ -1897,37 +1918,37 @@ function jt(e) {
|
|
|
1897
1918
|
powerFb: { powerOnFb: r, powerOffFb: l }
|
|
1898
1919
|
};
|
|
1899
1920
|
}
|
|
1900
|
-
function
|
|
1921
|
+
function yt(e) {
|
|
1901
1922
|
const t = `/device/${e}`;
|
|
1902
1923
|
return C1(t);
|
|
1903
1924
|
}
|
|
1904
|
-
const
|
|
1925
|
+
const It = ({
|
|
1905
1926
|
config: e
|
|
1906
1927
|
}, t = !0) => {
|
|
1907
|
-
const { sendMessage: o } =
|
|
1908
|
-
var
|
|
1928
|
+
const { sendMessage: o } = I(), c = d1(!1), r = n1(() => {
|
|
1929
|
+
var a, g, h, f;
|
|
1909
1930
|
if (!e)
|
|
1910
1931
|
return;
|
|
1911
1932
|
const l = /* @__PURE__ */ new Set();
|
|
1912
|
-
if (e.destinations && Object.values(e.destinations).forEach((
|
|
1913
|
-
l.add(
|
|
1914
|
-
}), e.destinationList && Object.values(e.destinationList).forEach((
|
|
1915
|
-
l.add(
|
|
1916
|
-
}), e.audioControlPointList && Object.values((
|
|
1917
|
-
(
|
|
1918
|
-
|
|
1933
|
+
if (e.destinations && Object.values(e.destinations).forEach((d) => {
|
|
1934
|
+
l.add(d);
|
|
1935
|
+
}), e.destinationList && Object.values(e.destinationList).forEach((d) => {
|
|
1936
|
+
l.add(d.sinkKey);
|
|
1937
|
+
}), e.audioControlPointList && Object.values((a = e.audioControlPointList) == null ? void 0 : a.levelControls).forEach(
|
|
1938
|
+
(d) => {
|
|
1939
|
+
d.itemKey ? l.add(d.parentDeviceKey + "--" + d.itemKey) : l.add(d.parentDeviceKey);
|
|
1919
1940
|
}
|
|
1920
|
-
), (g = e.touchpanelKeys) == null || g.forEach((
|
|
1921
|
-
l.add(
|
|
1922
|
-
}), (h = e.environmentalDevices) == null || h.forEach((
|
|
1923
|
-
|
|
1924
|
-
}), (f = e.accessoryDeviceKeys) == null || f.forEach((
|
|
1925
|
-
l.add(
|
|
1926
|
-
}), 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((
|
|
1927
|
-
l.add(
|
|
1941
|
+
), (g = e.touchpanelKeys) == null || g.forEach((d) => {
|
|
1942
|
+
l.add(d);
|
|
1943
|
+
}), (h = e.environmentalDevices) == null || h.forEach((d) => {
|
|
1944
|
+
d.deviceKey && l.add(d.deviceKey);
|
|
1945
|
+
}), (f = e.accessoryDeviceKeys) == null || f.forEach((d) => {
|
|
1946
|
+
l.add(d);
|
|
1947
|
+
}), 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((d) => {
|
|
1948
|
+
l.add(d);
|
|
1928
1949
|
}), e.sourceList)
|
|
1929
|
-
for (const
|
|
1930
|
-
|
|
1950
|
+
for (const d of Object.values(e.sourceList))
|
|
1951
|
+
d.sourceKey && d.sourceKey !== "$off" && l.add(d.sourceKey);
|
|
1931
1952
|
return l;
|
|
1932
1953
|
}, [e]);
|
|
1933
1954
|
return Z1(() => {
|
|
@@ -1936,41 +1957,41 @@ const bt = ({
|
|
|
1936
1957
|
}), c.current = !0);
|
|
1937
1958
|
}, [r, t, o]), r;
|
|
1938
1959
|
};
|
|
1939
|
-
function
|
|
1960
|
+
function Rt(e, t) {
|
|
1940
1961
|
const [o, c] = Y(!1), [r, l] = Y(!1);
|
|
1941
1962
|
return Z3(() => {
|
|
1942
|
-
const { current:
|
|
1943
|
-
const h =
|
|
1963
|
+
const { current: a } = e, g = () => {
|
|
1964
|
+
const h = a && a.scrollHeight > a.clientHeight, f = a && a.scrollWidth > a.clientWidth;
|
|
1944
1965
|
l(h ?? !1), c(f ?? !1), t && t(h ?? !1, f ?? !1);
|
|
1945
1966
|
};
|
|
1946
|
-
|
|
1967
|
+
a && g();
|
|
1947
1968
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1948
1969
|
}
|
|
1949
|
-
function
|
|
1970
|
+
function Et(e, t) {
|
|
1950
1971
|
const o = `/room/${e}/volumes/${t}`;
|
|
1951
1972
|
return C1(o);
|
|
1952
1973
|
}
|
|
1953
|
-
function
|
|
1974
|
+
function Tt(e, t) {
|
|
1954
1975
|
const o = te(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1955
1976
|
return W3(c, o);
|
|
1956
1977
|
}
|
|
1957
|
-
function
|
|
1978
|
+
function Dt(e) {
|
|
1958
1979
|
var g, h;
|
|
1959
1980
|
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) => {
|
|
1960
|
-
const { current:
|
|
1961
|
-
|
|
1962
|
-
},
|
|
1963
|
-
const { current:
|
|
1964
|
-
|
|
1981
|
+
const { current: d } = e;
|
|
1982
|
+
d && (console.log(d.scrollLeft), d.scrollLeft += f, console.log(d.scrollLeft));
|
|
1983
|
+
}, a = (f) => {
|
|
1984
|
+
const { current: d } = e;
|
|
1985
|
+
d && (console.log(d.scrollTop), d.scrollTop += f, console.log(d.scrollTop));
|
|
1965
1986
|
};
|
|
1966
1987
|
return Z3(() => {
|
|
1967
|
-
const { current: f } = e,
|
|
1988
|
+
const { current: f } = e, d = () => {
|
|
1968
1989
|
o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
|
|
1969
1990
|
};
|
|
1970
|
-
f &&
|
|
1971
|
-
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical:
|
|
1991
|
+
f && d();
|
|
1992
|
+
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: a };
|
|
1972
1993
|
}
|
|
1973
|
-
function
|
|
1994
|
+
function _t(e) {
|
|
1974
1995
|
const t = W1();
|
|
1975
1996
|
return [() => {
|
|
1976
1997
|
t(W.addSyncState(e));
|
|
@@ -1978,8 +1999,8 @@ function Tt(e) {
|
|
|
1978
1999
|
t(W.removeSyncState(e));
|
|
1979
2000
|
}, Ze(e)];
|
|
1980
2001
|
}
|
|
1981
|
-
function
|
|
1982
|
-
const { sendMessage: e } =
|
|
2002
|
+
function Pt() {
|
|
2003
|
+
const { sendMessage: e } = I();
|
|
1983
2004
|
return {
|
|
1984
2005
|
reboot: () => {
|
|
1985
2006
|
e("/system/reboot", null);
|
|
@@ -1989,7 +2010,7 @@ function Dt() {
|
|
|
1989
2010
|
}
|
|
1990
2011
|
};
|
|
1991
2012
|
}
|
|
1992
|
-
function
|
|
2013
|
+
function $t() {
|
|
1993
2014
|
const [e, t] = Y(), [o, c] = Y();
|
|
1994
2015
|
function r() {
|
|
1995
2016
|
t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
@@ -2027,7 +2048,7 @@ const Lt = () => {
|
|
|
2027
2048
|
),
|
|
2028
2049
|
e && /* @__PURE__ */ n.jsx("p", { children: r })
|
|
2029
2050
|
] });
|
|
2030
|
-
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18",
|
|
2051
|
+
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", L1 = {
|
|
2031
2052
|
iconbtn: Je,
|
|
2032
2053
|
iconbtnvert: Xe,
|
|
2033
2054
|
iconsm: Qe
|
|
@@ -2038,45 +2059,45 @@ const Lt = () => {
|
|
|
2038
2059
|
className: c,
|
|
2039
2060
|
iconClassName: r = "",
|
|
2040
2061
|
otherContentClassName: l = "",
|
|
2041
|
-
disabled:
|
|
2062
|
+
disabled: a,
|
|
2042
2063
|
feedback: g,
|
|
2043
2064
|
feedbackClassName: h,
|
|
2044
2065
|
onPointerDown: f,
|
|
2045
|
-
onPointerUp:
|
|
2046
|
-
onPointerLeave:
|
|
2066
|
+
onPointerUp: d,
|
|
2067
|
+
onPointerLeave: P,
|
|
2047
2068
|
...F
|
|
2048
2069
|
}) => {
|
|
2049
|
-
const [
|
|
2070
|
+
const [u, Z] = Y(!1), j = !a && g ? h : "", S = !a && (u || g);
|
|
2050
2071
|
return /* @__PURE__ */ n.jsxs(
|
|
2051
2072
|
"button",
|
|
2052
2073
|
{
|
|
2053
2074
|
type: "button",
|
|
2054
|
-
className: `${
|
|
2075
|
+
className: `${L1.iconbtn} ${o ? L1.iconbtnvert : ""} ${c} ${j}`,
|
|
2055
2076
|
...F,
|
|
2056
|
-
disabled:
|
|
2077
|
+
disabled: a,
|
|
2057
2078
|
onPointerDown: (C) => {
|
|
2058
2079
|
Z(!0), f == null || f(C);
|
|
2059
2080
|
},
|
|
2060
2081
|
onPointerUp: (C) => {
|
|
2061
|
-
Z(!1),
|
|
2082
|
+
Z(!1), d == null || d(C);
|
|
2062
2083
|
},
|
|
2063
2084
|
onPointerLeave: (C) => {
|
|
2064
|
-
Z(!1),
|
|
2085
|
+
Z(!1), P == null || P(C);
|
|
2065
2086
|
},
|
|
2066
2087
|
children: [
|
|
2067
2088
|
e && /* @__PURE__ */ n.jsx(
|
|
2068
2089
|
e,
|
|
2069
2090
|
{
|
|
2070
|
-
className: `${r ||
|
|
2091
|
+
className: `${r || L1.iconsm}`,
|
|
2071
2092
|
active: S,
|
|
2072
|
-
disabled:
|
|
2093
|
+
disabled: a
|
|
2073
2094
|
}
|
|
2074
2095
|
),
|
|
2075
2096
|
l ? /* @__PURE__ */ n.jsx("div", { className: l, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
|
|
2076
2097
|
]
|
|
2077
2098
|
}
|
|
2078
2099
|
);
|
|
2079
|
-
},
|
|
2100
|
+
}, R = ({
|
|
2080
2101
|
ActiveImage: e,
|
|
2081
2102
|
DisabledImage: t,
|
|
2082
2103
|
EnabledImage: o,
|
|
@@ -2087,7 +2108,7 @@ const Lt = () => {
|
|
|
2087
2108
|
className: t = "",
|
|
2088
2109
|
disabled: o
|
|
2089
2110
|
}) => /* @__PURE__ */ n.jsx(
|
|
2090
|
-
|
|
2111
|
+
R,
|
|
2091
2112
|
{
|
|
2092
2113
|
ActiveImage: /* @__PURE__ */ n.jsx(
|
|
2093
2114
|
"svg",
|
|
@@ -2139,7 +2160,7 @@ const Lt = () => {
|
|
|
2139
2160
|
className: t = "",
|
|
2140
2161
|
disabled: o
|
|
2141
2162
|
}) => /* @__PURE__ */ n.jsx(
|
|
2142
|
-
|
|
2163
|
+
R,
|
|
2143
2164
|
{
|
|
2144
2165
|
ActiveImage: (
|
|
2145
2166
|
/* icon-ban-active.svg */
|
|
@@ -2188,7 +2209,7 @@ const Lt = () => {
|
|
|
2188
2209
|
className: t = "",
|
|
2189
2210
|
disabled: o
|
|
2190
2211
|
}) => /* @__PURE__ */ n.jsx(
|
|
2191
|
-
|
|
2212
|
+
R,
|
|
2192
2213
|
{
|
|
2193
2214
|
ActiveImage: /* @__PURE__ */ n.jsx(
|
|
2194
2215
|
"svg",
|
|
@@ -2228,7 +2249,7 @@ const Lt = () => {
|
|
|
2228
2249
|
className: t = "",
|
|
2229
2250
|
disabled: o
|
|
2230
2251
|
}) => /* @__PURE__ */ n.jsx(
|
|
2231
|
-
|
|
2252
|
+
R,
|
|
2232
2253
|
{
|
|
2233
2254
|
ActiveImage: (
|
|
2234
2255
|
/* icon-check-active.svg */
|
|
@@ -2278,7 +2299,7 @@ const Lt = () => {
|
|
|
2278
2299
|
className: t = "",
|
|
2279
2300
|
disabled: o
|
|
2280
2301
|
}) => /* @__PURE__ */ n.jsx(
|
|
2281
|
-
|
|
2302
|
+
R,
|
|
2282
2303
|
{
|
|
2283
2304
|
ActiveImage: (
|
|
2284
2305
|
/* icon-controller-active.svg */
|
|
@@ -2345,7 +2366,7 @@ const Lt = () => {
|
|
|
2345
2366
|
className: t = "",
|
|
2346
2367
|
disabled: o
|
|
2347
2368
|
}) => /* @__PURE__ */ n.jsx(
|
|
2348
|
-
|
|
2369
|
+
R,
|
|
2349
2370
|
{
|
|
2350
2371
|
ActiveImage: (
|
|
2351
2372
|
/* icon-down-active.svg */
|
|
@@ -2394,7 +2415,7 @@ const Lt = () => {
|
|
|
2394
2415
|
className: t = "",
|
|
2395
2416
|
disabled: o
|
|
2396
2417
|
}) => /* @__PURE__ */ n.jsx(
|
|
2397
|
-
|
|
2418
|
+
R,
|
|
2398
2419
|
{
|
|
2399
2420
|
ActiveImage: (
|
|
2400
2421
|
/* icon-elipses-active.svg */
|
|
@@ -2443,7 +2464,7 @@ const Lt = () => {
|
|
|
2443
2464
|
className: t = "",
|
|
2444
2465
|
disabled: o
|
|
2445
2466
|
}) => /* @__PURE__ */ n.jsx(
|
|
2446
|
-
|
|
2467
|
+
R,
|
|
2447
2468
|
{
|
|
2448
2469
|
ActiveImage: (
|
|
2449
2470
|
/* icon-flag-active.svg */
|
|
@@ -2492,7 +2513,7 @@ const Lt = () => {
|
|
|
2492
2513
|
className: t = "",
|
|
2493
2514
|
disabled: o
|
|
2494
2515
|
}) => /* @__PURE__ */ n.jsx(
|
|
2495
|
-
|
|
2516
|
+
R,
|
|
2496
2517
|
{
|
|
2497
2518
|
ActiveImage: (
|
|
2498
2519
|
/* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
|
|
@@ -2541,7 +2562,7 @@ const Lt = () => {
|
|
|
2541
2562
|
className: t = "",
|
|
2542
2563
|
disabled: o
|
|
2543
2564
|
}) => /* @__PURE__ */ n.jsx(
|
|
2544
|
-
|
|
2565
|
+
R,
|
|
2545
2566
|
{
|
|
2546
2567
|
ActiveImage: (
|
|
2547
2568
|
/* icon-glass-active.svg */
|
|
@@ -2591,7 +2612,7 @@ const Lt = () => {
|
|
|
2591
2612
|
className: t = "",
|
|
2592
2613
|
disabled: o
|
|
2593
2614
|
}) => /* @__PURE__ */ n.jsx(
|
|
2594
|
-
|
|
2615
|
+
R,
|
|
2595
2616
|
{
|
|
2596
2617
|
ActiveImage: (
|
|
2597
2618
|
/* icon-hdmi-active.svg */
|
|
@@ -2658,7 +2679,7 @@ const Lt = () => {
|
|
|
2658
2679
|
className: t = "",
|
|
2659
2680
|
disabled: o
|
|
2660
2681
|
}) => /* @__PURE__ */ n.jsx(
|
|
2661
|
-
|
|
2682
|
+
R,
|
|
2662
2683
|
{
|
|
2663
2684
|
ActiveImage: (
|
|
2664
2685
|
/* icon-laptop-active.svg */
|
|
@@ -2707,7 +2728,7 @@ const Lt = () => {
|
|
|
2707
2728
|
className: t = "",
|
|
2708
2729
|
disabled: o
|
|
2709
2730
|
}) => /* @__PURE__ */ n.jsx(
|
|
2710
|
-
|
|
2731
|
+
R,
|
|
2711
2732
|
{
|
|
2712
2733
|
ActiveImage: (
|
|
2713
2734
|
/* icon-left-active.svg */
|
|
@@ -2756,7 +2777,7 @@ const Lt = () => {
|
|
|
2756
2777
|
className: t = "",
|
|
2757
2778
|
disabled: o
|
|
2758
2779
|
}) => /* @__PURE__ */ n.jsx(
|
|
2759
|
-
|
|
2780
|
+
R,
|
|
2760
2781
|
{
|
|
2761
2782
|
ActiveImage: (
|
|
2762
2783
|
/* icon-light-active.svg */
|
|
@@ -2805,7 +2826,7 @@ const Lt = () => {
|
|
|
2805
2826
|
className: t = "",
|
|
2806
2827
|
disabled: o
|
|
2807
2828
|
}) => /* @__PURE__ */ n.jsx(
|
|
2808
|
-
|
|
2829
|
+
R,
|
|
2809
2830
|
{
|
|
2810
2831
|
ActiveImage: (
|
|
2811
2832
|
/* icon-moon-active.svg */
|
|
@@ -2854,7 +2875,7 @@ const Lt = () => {
|
|
|
2854
2875
|
className: t = "",
|
|
2855
2876
|
disabled: o
|
|
2856
2877
|
}) => /* @__PURE__ */ n.jsx(
|
|
2857
|
-
|
|
2878
|
+
R,
|
|
2858
2879
|
{
|
|
2859
2880
|
ActiveImage: (
|
|
2860
2881
|
/* icon-playstation-active.svg */
|
|
@@ -2876,7 +2897,7 @@ const Lt = () => {
|
|
|
2876
2897
|
className: t = "",
|
|
2877
2898
|
disabled: o
|
|
2878
2899
|
}) => /* @__PURE__ */ n.jsx(
|
|
2879
|
-
|
|
2900
|
+
R,
|
|
2880
2901
|
{
|
|
2881
2902
|
ActiveImage: (
|
|
2882
2903
|
/* icon-podium-active.svg */
|
|
@@ -2925,7 +2946,7 @@ const Lt = () => {
|
|
|
2925
2946
|
className: t = "",
|
|
2926
2947
|
disabled: o
|
|
2927
2948
|
}) => /* @__PURE__ */ n.jsx(
|
|
2928
|
-
|
|
2949
|
+
R,
|
|
2929
2950
|
{
|
|
2930
2951
|
ActiveImage: (
|
|
2931
2952
|
/* icon-power-active.svg */
|
|
@@ -2974,7 +2995,7 @@ const Lt = () => {
|
|
|
2974
2995
|
className: t = "",
|
|
2975
2996
|
disabled: o
|
|
2976
2997
|
}) => /* @__PURE__ */ n.jsx(
|
|
2977
|
-
|
|
2998
|
+
R,
|
|
2978
2999
|
{
|
|
2979
3000
|
ActiveImage: (
|
|
2980
3001
|
/* icon-privacy-active.svg */
|
|
@@ -3023,7 +3044,7 @@ const Lt = () => {
|
|
|
3023
3044
|
className: t = "",
|
|
3024
3045
|
disabled: o
|
|
3025
3046
|
}) => /* @__PURE__ */ n.jsx(
|
|
3026
|
-
|
|
3047
|
+
R,
|
|
3027
3048
|
{
|
|
3028
3049
|
ActiveImage: (
|
|
3029
3050
|
/* icon-question-active.svg */
|
|
@@ -3072,7 +3093,7 @@ const Lt = () => {
|
|
|
3072
3093
|
className: t = "",
|
|
3073
3094
|
disabled: o
|
|
3074
3095
|
}) => /* @__PURE__ */ n.jsx(
|
|
3075
|
-
|
|
3096
|
+
R,
|
|
3076
3097
|
{
|
|
3077
3098
|
ActiveImage: (
|
|
3078
3099
|
/* icon-right-active.svg */
|
|
@@ -3122,7 +3143,7 @@ const Lt = () => {
|
|
|
3122
3143
|
className: t = "",
|
|
3123
3144
|
disabled: o
|
|
3124
3145
|
}) => /* @__PURE__ */ n.jsx(
|
|
3125
|
-
|
|
3146
|
+
R,
|
|
3126
3147
|
{
|
|
3127
3148
|
ActiveImage: (
|
|
3128
3149
|
/* icon-roomPC-active.svg */
|
|
@@ -3189,7 +3210,7 @@ const Lt = () => {
|
|
|
3189
3210
|
className: t = "",
|
|
3190
3211
|
disabled: o
|
|
3191
3212
|
}) => /* @__PURE__ */ n.jsx(
|
|
3192
|
-
|
|
3213
|
+
R,
|
|
3193
3214
|
{
|
|
3194
3215
|
ActiveImage: (
|
|
3195
3216
|
/* icon-shade-active.svg */
|
|
@@ -3238,7 +3259,7 @@ const Lt = () => {
|
|
|
3238
3259
|
className: t = "",
|
|
3239
3260
|
disabled: o
|
|
3240
3261
|
}) => /* @__PURE__ */ n.jsx(
|
|
3241
|
-
|
|
3262
|
+
R,
|
|
3242
3263
|
{
|
|
3243
3264
|
ActiveImage: (
|
|
3244
3265
|
/* icon-sun-active.svg */
|
|
@@ -3282,14 +3303,14 @@ const Lt = () => {
|
|
|
3282
3303
|
active: e,
|
|
3283
3304
|
disabled: o
|
|
3284
3305
|
}
|
|
3285
|
-
),
|
|
3306
|
+
), At = ({
|
|
3286
3307
|
active: e,
|
|
3287
3308
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
3288
3309
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3289
3310
|
className: t = "",
|
|
3290
3311
|
disabled: o
|
|
3291
3312
|
}) => /* @__PURE__ */ n.jsx(
|
|
3292
|
-
|
|
3313
|
+
R,
|
|
3293
3314
|
{
|
|
3294
3315
|
ActiveImage: void 0,
|
|
3295
3316
|
DisabledImage: void 0,
|
|
@@ -3302,7 +3323,7 @@ const Lt = () => {
|
|
|
3302
3323
|
className: t = "",
|
|
3303
3324
|
disabled: o
|
|
3304
3325
|
}) => /* @__PURE__ */ n.jsx(
|
|
3305
|
-
|
|
3326
|
+
R,
|
|
3306
3327
|
{
|
|
3307
3328
|
ActiveImage: (
|
|
3308
3329
|
/* icon-up-active.svg */
|
|
@@ -3351,7 +3372,7 @@ const Lt = () => {
|
|
|
3351
3372
|
className: t = "",
|
|
3352
3373
|
disabled: o
|
|
3353
3374
|
}) => /* @__PURE__ */ n.jsx(
|
|
3354
|
-
|
|
3375
|
+
R,
|
|
3355
3376
|
{
|
|
3356
3377
|
ActiveImage: (
|
|
3357
3378
|
/* icon-volDown-active.svg */
|
|
@@ -3400,7 +3421,7 @@ const Lt = () => {
|
|
|
3400
3421
|
className: t = "",
|
|
3401
3422
|
disabled: o
|
|
3402
3423
|
}) => /* @__PURE__ */ n.jsx(
|
|
3403
|
-
|
|
3424
|
+
R,
|
|
3404
3425
|
{
|
|
3405
3426
|
ActiveImage: (
|
|
3406
3427
|
/* icon-volMute-active.svg */
|
|
@@ -3449,7 +3470,7 @@ const Lt = () => {
|
|
|
3449
3470
|
className: t = "",
|
|
3450
3471
|
disabled: o
|
|
3451
3472
|
}) => /* @__PURE__ */ n.jsx(
|
|
3452
|
-
|
|
3473
|
+
R,
|
|
3453
3474
|
{
|
|
3454
3475
|
ActiveImage: (
|
|
3455
3476
|
/* icon-volUp-active.svg */
|
|
@@ -3498,7 +3519,7 @@ const Lt = () => {
|
|
|
3498
3519
|
className: t = "",
|
|
3499
3520
|
disabled: o
|
|
3500
3521
|
}) => /* @__PURE__ */ n.jsx(
|
|
3501
|
-
|
|
3522
|
+
R,
|
|
3502
3523
|
{
|
|
3503
3524
|
ActiveImage: (
|
|
3504
3525
|
/* icon-wireless-active.svg */
|
|
@@ -3547,7 +3568,7 @@ const Lt = () => {
|
|
|
3547
3568
|
className: t = "",
|
|
3548
3569
|
disabled: o
|
|
3549
3570
|
}) => /* @__PURE__ */ n.jsx(
|
|
3550
|
-
|
|
3571
|
+
R,
|
|
3551
3572
|
{
|
|
3552
3573
|
ActiveImage: (
|
|
3553
3574
|
/* icon-x-active.svg */
|
|
@@ -3596,7 +3617,7 @@ const Lt = () => {
|
|
|
3596
3617
|
className: t = "",
|
|
3597
3618
|
disabled: o
|
|
3598
3619
|
}) => /* @__PURE__ */ n.jsx(
|
|
3599
|
-
|
|
3620
|
+
R,
|
|
3600
3621
|
{
|
|
3601
3622
|
ActiveImage: (
|
|
3602
3623
|
/* icon-xbox-active.svg */
|
|
@@ -3645,7 +3666,7 @@ const Lt = () => {
|
|
|
3645
3666
|
className: t = "",
|
|
3646
3667
|
disabled: o
|
|
3647
3668
|
}) => /* @__PURE__ */ n.jsx(
|
|
3648
|
-
|
|
3669
|
+
R,
|
|
3649
3670
|
{
|
|
3650
3671
|
ActiveImage: (
|
|
3651
3672
|
/* icon-mic-active.svg */
|
|
@@ -3723,7 +3744,7 @@ const Lt = () => {
|
|
|
3723
3744
|
X: E8,
|
|
3724
3745
|
Xbox: T8
|
|
3725
3746
|
};
|
|
3726
|
-
function
|
|
3747
|
+
function Ot({
|
|
3727
3748
|
name: e,
|
|
3728
3749
|
iconsDictionary: t = _8,
|
|
3729
3750
|
...o
|
|
@@ -3731,20 +3752,20 @@ function $t({
|
|
|
3731
3752
|
const c = t[e] ?? null;
|
|
3732
3753
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3733
3754
|
}
|
|
3734
|
-
const
|
|
3735
|
-
grid:
|
|
3736
|
-
header:
|
|
3737
|
-
content:
|
|
3755
|
+
const P8 = "_grid_1cmpp_1", $8 = "_header_1cmpp_11", L8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", O8 = "_volume_1cmpp_29", u1 = {
|
|
3756
|
+
grid: P8,
|
|
3757
|
+
header: $8,
|
|
3758
|
+
content: L8,
|
|
3738
3759
|
footer: A8,
|
|
3739
|
-
volume:
|
|
3740
|
-
},
|
|
3760
|
+
volume: O8
|
|
3761
|
+
}, Bt = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: u1.grid, children: [
|
|
3741
3762
|
/* @__PURE__ */ n.jsx("div", { className: u1.header, children: e }),
|
|
3742
3763
|
/* @__PURE__ */ n.jsx("div", { className: u1.content, children: o }),
|
|
3743
3764
|
r && /* @__PURE__ */ n.jsx("div", { className: u1.volume, children: c }),
|
|
3744
3765
|
/* @__PURE__ */ n.jsx("div", { className: u1.footer, children: t })
|
|
3745
|
-
] }),
|
|
3746
|
-
grid:
|
|
3747
|
-
header:
|
|
3766
|
+
] }), B8 = "_grid_11w5q_1", k8 = "_header_11w5q_11", W8 = "_content_11w5q_17", x1 = {
|
|
3767
|
+
grid: B8,
|
|
3768
|
+
header: k8,
|
|
3748
3769
|
content: W8
|
|
3749
3770
|
}, kt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${x1.grid}`, children: [
|
|
3750
3771
|
/* @__PURE__ */ n.jsx("div", { className: x1.header, children: t }),
|
|
@@ -3754,31 +3775,31 @@ const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A
|
|
|
3754
3775
|
grid: V8,
|
|
3755
3776
|
header: U8,
|
|
3756
3777
|
content: F8
|
|
3757
|
-
},
|
|
3778
|
+
}, Wt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${A1.grid}`, children: [
|
|
3758
3779
|
/* @__PURE__ */ n.jsx("div", { className: A1.header, children: t }),
|
|
3759
3780
|
/* @__PURE__ */ n.jsx("div", { className: A1.content, children: o })
|
|
3760
3781
|
] });
|
|
3761
|
-
class
|
|
3782
|
+
class Vt {
|
|
3762
3783
|
constructor() {
|
|
3763
3784
|
q(this, "currentShareText");
|
|
3764
3785
|
q(this, "enabled");
|
|
3765
3786
|
q(this, "isSharing");
|
|
3766
3787
|
}
|
|
3767
3788
|
}
|
|
3768
|
-
function
|
|
3789
|
+
function Ut() {
|
|
3769
3790
|
return console.log(location.pathname), location.pathname;
|
|
3770
3791
|
}
|
|
3771
3792
|
var H8 = /* @__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))(H8 || {});
|
|
3772
|
-
class
|
|
3793
|
+
class Ft {
|
|
3773
3794
|
constructor(t, o) {
|
|
3774
3795
|
q(this, "path");
|
|
3775
3796
|
q(this, "handler");
|
|
3776
3797
|
this.path = t, this.handler = o;
|
|
3777
3798
|
}
|
|
3778
3799
|
}
|
|
3779
|
-
const
|
|
3800
|
+
const Ht = "$off";
|
|
3780
3801
|
export {
|
|
3781
|
-
|
|
3802
|
+
K6 as Clock,
|
|
3782
3803
|
H8 as DaysOfWeek,
|
|
3783
3804
|
Lt as ErrorBox,
|
|
3784
3805
|
Ne as IconButton,
|
|
@@ -3807,7 +3828,7 @@ export {
|
|
|
3807
3828
|
Z8 as IconMultiRoomPC,
|
|
3808
3829
|
S8 as IconMultiShade,
|
|
3809
3830
|
j8 as IconMultiSun,
|
|
3810
|
-
|
|
3831
|
+
At as IconMultiTemplate,
|
|
3811
3832
|
C8 as IconMultiUpArrow,
|
|
3812
3833
|
b8 as IconMultiVolDown,
|
|
3813
3834
|
y8 as IconMultiVolMute,
|
|
@@ -3815,28 +3836,28 @@ export {
|
|
|
3815
3836
|
R8 as IconMultiWireless,
|
|
3816
3837
|
E8 as IconMultiX,
|
|
3817
3838
|
T8 as IconMultiXbox,
|
|
3818
|
-
|
|
3819
|
-
|
|
3839
|
+
Bt as MainLayout,
|
|
3840
|
+
Ft as MessageHandler,
|
|
3820
3841
|
W6 as MobileControlProvider,
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3842
|
+
R as MultiStateIconContainer,
|
|
3843
|
+
Ot as NamedIconButton,
|
|
3844
|
+
Vt as ShareState,
|
|
3824
3845
|
kt as TechLayout,
|
|
3825
|
-
|
|
3826
|
-
|
|
3846
|
+
Wt as TechPinLayout,
|
|
3847
|
+
L3 as WS_ADD_EVENT_HANDLER,
|
|
3827
3848
|
_3 as WS_CONNECT,
|
|
3828
|
-
|
|
3829
|
-
|
|
3849
|
+
P3 as WS_DISCONNECT,
|
|
3850
|
+
O3 as WS_RECONNECT,
|
|
3830
3851
|
A3 as WS_REMOVE_EVENT_HANDLER,
|
|
3831
|
-
|
|
3832
|
-
|
|
3852
|
+
$3 as WS_SEND_MESSAGE,
|
|
3853
|
+
k3 as WebsocketContext,
|
|
3833
3854
|
T3 as appConfigActions,
|
|
3834
|
-
|
|
3855
|
+
Oe as createWebSocketMiddleware,
|
|
3835
3856
|
m1 as devicesActions,
|
|
3836
|
-
|
|
3857
|
+
Ut as getBaseLocation,
|
|
3837
3858
|
f3 as httpClient,
|
|
3838
3859
|
_8 as iconsDictionary,
|
|
3839
|
-
|
|
3860
|
+
Ht as roomOffSourceKey,
|
|
3840
3861
|
p1 as roomsActions,
|
|
3841
3862
|
U as runtimeConfigActions,
|
|
3842
3863
|
C3 as selectAllDevices,
|
|
@@ -3844,7 +3865,7 @@ export {
|
|
|
3844
3865
|
E2 as selectAppConfig,
|
|
3845
3866
|
ce as selectClientId,
|
|
3846
3867
|
he as selectCurrentPopoverIdForGroup,
|
|
3847
|
-
|
|
3868
|
+
P2 as selectDeviceByKey,
|
|
3848
3869
|
b3 as selectDeviceInterfaceSupport,
|
|
3849
3870
|
ve as selectDeviceSupportsInterface,
|
|
3850
3871
|
fe as selectError,
|
|
@@ -3858,7 +3879,7 @@ export {
|
|
|
3858
3879
|
V2 as selectRoomAudioControlPointList,
|
|
3859
3880
|
A2 as selectRoomByKey,
|
|
3860
3881
|
q2 as selectRoomCodecContentDestinationKey,
|
|
3861
|
-
|
|
3882
|
+
$2 as selectRoomConfiguration,
|
|
3862
3883
|
F2 as selectRoomDestinationList,
|
|
3863
3884
|
U2 as selectRoomDestinations,
|
|
3864
3885
|
ee as selectRoomDisplayStates,
|
|
@@ -3868,13 +3889,13 @@ export {
|
|
|
3868
3889
|
J2 as selectRoomIsOn,
|
|
3869
3890
|
Y2 as selectRoomIsWarmingUp,
|
|
3870
3891
|
se as selectRoomKey,
|
|
3871
|
-
|
|
3872
|
-
|
|
3892
|
+
k2 as selectRoomLevelControls,
|
|
3893
|
+
O2 as selectRoomName,
|
|
3873
3894
|
K2 as selectRoomProgramAudioDestinationKey,
|
|
3874
3895
|
Q2 as selectRoomShareState,
|
|
3875
3896
|
W2 as selectRoomSourceList,
|
|
3876
|
-
|
|
3877
|
-
|
|
3897
|
+
B2 as selectRoomVolume,
|
|
3898
|
+
L2 as selectRooms,
|
|
3878
3899
|
ae as selectRuntimeInfo,
|
|
3879
3900
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
3880
3901
|
ge as selectShowPopoverById,
|
|
@@ -3885,7 +3906,7 @@ export {
|
|
|
3885
3906
|
le as selectUserCode,
|
|
3886
3907
|
oe as selectWsIsConnected,
|
|
3887
3908
|
N2 as selectZoomRoomControllerKey,
|
|
3888
|
-
|
|
3909
|
+
ke as store,
|
|
3889
3910
|
W as uiActions,
|
|
3890
3911
|
je as uiReducer,
|
|
3891
3912
|
Q8 as useApiPath,
|
|
@@ -3894,20 +3915,20 @@ export {
|
|
|
3894
3915
|
m as useAppSelector,
|
|
3895
3916
|
F6 as useAvrControl,
|
|
3896
3917
|
w as useButtonHeldHeartbeat,
|
|
3897
|
-
|
|
3918
|
+
H6 as useCameraBase,
|
|
3898
3919
|
S6 as useClientId,
|
|
3899
|
-
|
|
3920
|
+
yt as useDeviceIBasicVolume,
|
|
3900
3921
|
Ye as useDeviceIBasicVolumeWithFeedback,
|
|
3901
3922
|
E6 as useDeviceInterfaceSupport,
|
|
3902
|
-
|
|
3923
|
+
q6 as useDevicePresetsModel,
|
|
3903
3924
|
D6 as useDeviceSupportsInterface,
|
|
3904
|
-
|
|
3925
|
+
G6 as useEndpoint,
|
|
3905
3926
|
Me as useError,
|
|
3906
|
-
|
|
3927
|
+
It as useGetAllDeviceStateFromRoomConfiguration,
|
|
3907
3928
|
t6 as useGetAllDevices,
|
|
3908
3929
|
o6 as useGetAllRooms,
|
|
3909
|
-
|
|
3910
|
-
|
|
3930
|
+
L6 as useGetCurrentPopoverIdForGroup,
|
|
3931
|
+
D as useGetDevice,
|
|
3911
3932
|
V6 as useGetIBasicVolume,
|
|
3912
3933
|
U6 as useGetIBasicVolumeWithFeedback,
|
|
3913
3934
|
s6 as useGetRoom,
|
|
@@ -3915,43 +3936,45 @@ export {
|
|
|
3915
3936
|
x6 as useGetZoomRoomControllerKey,
|
|
3916
3937
|
C1 as useIBasicVolume,
|
|
3917
3938
|
W3 as useIBasicVolumeWithFeedback,
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3939
|
+
Y6 as useIChannel,
|
|
3940
|
+
z6 as useIColor,
|
|
3941
|
+
J6 as useICommunicationMonitor,
|
|
3942
|
+
Q6 as useIDPad,
|
|
3943
|
+
X6 as useIDeviceInfoMessenger,
|
|
3923
3944
|
N6 as useIDspPresets,
|
|
3924
3945
|
et as useIDvr,
|
|
3925
3946
|
tt as useIEssentialsRoomCombiner,
|
|
3926
|
-
nt as
|
|
3947
|
+
nt as useIHasCameraMute,
|
|
3948
|
+
ot as useIHasCameraPresets,
|
|
3949
|
+
st as useIHasCameras,
|
|
3927
3950
|
V3 as useIHasPowerControl,
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3951
|
+
k1 as useIHasSelectableItems,
|
|
3952
|
+
ct as useIHumiditySensor,
|
|
3953
|
+
rt as useILevelControls,
|
|
3954
|
+
lt as useILightingScenes,
|
|
3955
|
+
it as useIMatrixRouting,
|
|
3956
|
+
at as useIMcCiscoCodecUserInterfaceAppControl,
|
|
3957
|
+
ut as useINumeric,
|
|
3958
|
+
dt as useIProjectorScreenLiftControl,
|
|
3959
|
+
vt as useIRoomEventSchedule,
|
|
3960
|
+
ht as useIRunDefaultPresentRoute,
|
|
3961
|
+
gt as useIRunDirectRouteAction,
|
|
3962
|
+
ft as useIRunRouteAction,
|
|
3963
|
+
wt as useISetTopBoxControls,
|
|
3964
|
+
mt as useIShadesOpenCloseStop,
|
|
3965
|
+
pt as useIShutdownPromptTimer,
|
|
3966
|
+
Mt as useISwitchedOutput,
|
|
3967
|
+
xt as useITechPassword,
|
|
3968
|
+
Zt as useITemperatureSensor,
|
|
3969
|
+
St as useITheme,
|
|
3970
|
+
jt as useITransport,
|
|
3971
|
+
k6 as useInitialize,
|
|
3949
3972
|
T6 as useInterfacesForDevice,
|
|
3950
3973
|
Ze as useIsSyncStateValuePresent,
|
|
3951
3974
|
R6 as useIsTouchpanel,
|
|
3952
3975
|
N8 as useLogoPath,
|
|
3953
|
-
|
|
3954
|
-
|
|
3976
|
+
Ct as useMobileControlTouchpanelController,
|
|
3977
|
+
Rt as useOverflow,
|
|
3955
3978
|
e6 as usePartnerMetadata,
|
|
3956
3979
|
Ge as usePressHoldRelease,
|
|
3957
3980
|
m6 as useRoomAdvancedSharingActive,
|
|
@@ -3961,8 +3984,8 @@ export {
|
|
|
3961
3984
|
a6 as useRoomDestinationList,
|
|
3962
3985
|
i6 as useRoomDestinations,
|
|
3963
3986
|
u6 as useRoomEnvironmentalDevices,
|
|
3964
|
-
|
|
3965
|
-
|
|
3987
|
+
Et as useRoomIBasicVolume,
|
|
3988
|
+
Tt as useRoomIBasicVolumeWithFeedback,
|
|
3966
3989
|
h6 as useRoomInCall,
|
|
3967
3990
|
f6 as useRoomIsCoolingDown,
|
|
3968
3991
|
w6 as useRoomIsOn,
|
|
@@ -3976,27 +3999,27 @@ export {
|
|
|
3976
3999
|
j1 as useRoomState,
|
|
3977
4000
|
te as useRoomVolume,
|
|
3978
4001
|
y6 as useRuntimeInfo,
|
|
3979
|
-
|
|
4002
|
+
Dt as useScroll,
|
|
3980
4003
|
b6 as useServerIsRunningOnProcessorHardware,
|
|
3981
|
-
|
|
3982
|
-
|
|
4004
|
+
P6 as useShowIncomingCallModal,
|
|
4005
|
+
$6 as useShowModal,
|
|
3983
4006
|
A6 as useShowPopoverById,
|
|
3984
4007
|
xe as useShowReconnect,
|
|
3985
4008
|
_6 as useShowShutdownModal,
|
|
3986
|
-
|
|
3987
|
-
|
|
4009
|
+
_t as useStateIsSynced,
|
|
4010
|
+
Pt as useSystemControl,
|
|
3988
4011
|
j6 as useSystemUuid,
|
|
3989
|
-
|
|
3990
|
-
|
|
4012
|
+
O6 as useTheme,
|
|
4013
|
+
$t as useTimeAndDate,
|
|
3991
4014
|
I6 as useTouchpanelKey,
|
|
3992
|
-
|
|
4015
|
+
bt as useTwoWayDisplayBase,
|
|
3993
4016
|
C6 as useUserCode,
|
|
3994
|
-
|
|
4017
|
+
I as useWebsocketContext,
|
|
3995
4018
|
I3 as useWsIsConnected,
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4019
|
+
$e as wsAddEventHandler,
|
|
4020
|
+
B3 as wsConnect,
|
|
4021
|
+
B6 as wsDisconnect,
|
|
3999
4022
|
Ae as wsReconnect,
|
|
4000
|
-
|
|
4001
|
-
|
|
4023
|
+
Le as wsRemoveEventHandler,
|
|
4024
|
+
Pe as wsSendMessage
|
|
4002
4025
|
};
|