@pepperdash/mobile-control-react-app-core 1.25.0-feat-deprecate-interfaces-array.2 → 1.25.0-feat-deprecate-interfaces-array.4
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 +577 -548
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/interfaces/index.d.ts +4 -11
- package/dist/shared/hooks/interfaces/index.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIAudioCodecInfo.d.ts +16 -0
- package/dist/shared/hooks/interfaces/useIAudioCodecInfo.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIAudioCodecPhonebook.d.ts +21 -0
- package/dist/shared/hooks/interfaces/useIAudioCodecPhonebook.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIHasDialer.d.ts +18 -0
- package/dist/shared/hooks/interfaces/useIHasDialer.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var w2 = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var q = (e, t, o) =>
|
|
4
|
-
import M3, { AxiosError as
|
|
2
|
+
var m2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import M3, { AxiosError as p2 } from "axios";
|
|
5
5
|
import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
|
|
6
6
|
import { createSelector as M, createSlice as d1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
|
|
7
|
-
import x3, { createContext as C2, useEffect as x1, useCallback as r1, useContext as b2, useRef as u1, useMemo as
|
|
7
|
+
import x3, { createContext as C2, useEffect as x1, useCallback as r1, useContext as b2, useRef as u1, useMemo as X, useState as Y, useLayoutEffect as Z3 } from "react";
|
|
8
8
|
import { useNavigate as y2, useRouteError as I2, isRouteErrorResponse as R2 } from "react-router-dom";
|
|
9
9
|
import * as S3 from "lodash";
|
|
10
|
-
const W1 = M2.withTypes(),
|
|
10
|
+
const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
|
|
11
11
|
Z1,
|
|
12
12
|
(e) => e.config
|
|
13
13
|
), T2 = M(
|
|
@@ -19,114 +19,114 @@ const W1 = M2.withTypes(), p = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
|
|
|
19
19
|
), _2 = M(
|
|
20
20
|
Z1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), X8 = () =>
|
|
22
|
+
), X8 = () => 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
|
+
), A2 = (e) => M(
|
|
26
26
|
j3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
), t6 = () =>
|
|
29
|
-
function
|
|
30
|
-
return
|
|
28
|
+
), t6 = () => m(C3);
|
|
29
|
+
function D(e) {
|
|
30
|
+
return m(A2(e));
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const P = (e) => e.rooms, $2 = (e) => M(
|
|
33
|
+
P,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
),
|
|
36
|
-
|
|
35
|
+
), L2 = M(
|
|
36
|
+
P,
|
|
37
37
|
(e) => e
|
|
38
|
-
),
|
|
39
|
-
|
|
38
|
+
), P2 = (e) => M(
|
|
39
|
+
P,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
41
|
), k2 = (e) => M(
|
|
42
|
-
|
|
42
|
+
P,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
44
|
), B2 = (e, t) => M(
|
|
45
|
-
|
|
45
|
+
P,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
47
|
), O2 = (e) => M(
|
|
48
|
-
|
|
48
|
+
P,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), W2 = (e) => M(
|
|
51
|
-
|
|
51
|
+
P,
|
|
52
52
|
(t) => {
|
|
53
53
|
var o, c;
|
|
54
54
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
|
|
55
55
|
}
|
|
56
56
|
), V2 = (e) => M(
|
|
57
|
-
|
|
57
|
+
P,
|
|
58
58
|
(t) => {
|
|
59
59
|
var o, c;
|
|
60
60
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.audioControlPointList : void 0;
|
|
61
61
|
}
|
|
62
62
|
), U2 = (e) => M(
|
|
63
|
-
|
|
63
|
+
P,
|
|
64
64
|
(t) => {
|
|
65
65
|
var o, c;
|
|
66
66
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations : void 0;
|
|
67
67
|
}
|
|
68
68
|
), F2 = (e) => M(
|
|
69
|
-
|
|
69
|
+
P,
|
|
70
70
|
(t) => {
|
|
71
71
|
var o, c;
|
|
72
72
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList : void 0;
|
|
73
73
|
}
|
|
74
74
|
), H2 = (e) => M(
|
|
75
|
-
|
|
75
|
+
P,
|
|
76
76
|
(t) => {
|
|
77
77
|
var o, c;
|
|
78
78
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.environmentalDevices : void 0;
|
|
79
79
|
}
|
|
80
80
|
), K2 = (e) => M(
|
|
81
|
-
|
|
81
|
+
P,
|
|
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, u, g, h, f;
|
|
84
|
+
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (u = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : u.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
|
+
P,
|
|
88
88
|
(t) => {
|
|
89
89
|
var o, c, r;
|
|
90
90
|
return t[e] ? (r = (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList.codecContent) == null ? void 0 : r.sinkKey : void 0;
|
|
91
91
|
}
|
|
92
92
|
), G2 = (e) => M(
|
|
93
|
-
|
|
93
|
+
P,
|
|
94
94
|
(t) => {
|
|
95
95
|
var o;
|
|
96
96
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isInCall : void 0;
|
|
97
97
|
}
|
|
98
98
|
), Y2 = (e) => M(
|
|
99
|
-
|
|
99
|
+
P,
|
|
100
100
|
(t) => {
|
|
101
101
|
var o;
|
|
102
102
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isWarmingUp : void 0;
|
|
103
103
|
}
|
|
104
104
|
), z2 = (e) => M(
|
|
105
|
-
|
|
105
|
+
P,
|
|
106
106
|
(t) => {
|
|
107
107
|
var o;
|
|
108
108
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isCoolingDown : void 0;
|
|
109
109
|
}
|
|
110
110
|
), J2 = (e) => M(
|
|
111
|
-
|
|
111
|
+
P,
|
|
112
112
|
(t) => {
|
|
113
113
|
var o;
|
|
114
114
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isOn : void 0;
|
|
115
115
|
}
|
|
116
116
|
), X2 = (e) => M(
|
|
117
|
-
|
|
117
|
+
P,
|
|
118
118
|
(t) => {
|
|
119
119
|
var o;
|
|
120
120
|
return t[e] ? (o = t[e]) == null ? void 0 : o.advancedSharingActive : void 0;
|
|
121
121
|
}
|
|
122
122
|
), Q2 = (e) => M(
|
|
123
|
-
|
|
123
|
+
P,
|
|
124
124
|
(t) => {
|
|
125
125
|
var o;
|
|
126
126
|
return t[e] ? (o = t[e]) == null ? void 0 : o.share : void 0;
|
|
127
127
|
}
|
|
128
128
|
), N2 = (e) => M(
|
|
129
|
-
|
|
129
|
+
P,
|
|
130
130
|
(t) => {
|
|
131
131
|
var o, c;
|
|
132
132
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
|
|
@@ -147,21 +147,21 @@ const $ = (e) => e.rooms, P2 = (e) => M(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function n6(e) {
|
|
150
|
-
return
|
|
151
|
-
|
|
150
|
+
return m(
|
|
151
|
+
$2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function o6() {
|
|
155
|
-
return
|
|
155
|
+
return m(L2);
|
|
156
156
|
}
|
|
157
157
|
function S1(e) {
|
|
158
|
-
return
|
|
158
|
+
return m(P2(e));
|
|
159
159
|
}
|
|
160
|
-
const s6 = S1, c6 = (e) =>
|
|
160
|
+
const s6 = S1, c6 = (e) => m(
|
|
161
161
|
k2(e)
|
|
162
|
-
), te = (e, t) =>
|
|
162
|
+
), te = (e, t) => m(
|
|
163
163
|
B2(e, t)
|
|
164
|
-
), ne = (e) =>
|
|
164
|
+
), ne = (e) => m(O2(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(
|
|
@@ -203,20 +203,20 @@ const s6 = S1, c6 = (e) => p(
|
|
|
203
203
|
), ve = (e, t) => M(
|
|
204
204
|
y3(e),
|
|
205
205
|
(o) => o.includes(t)
|
|
206
|
-
), I3 = () =>
|
|
206
|
+
), I3 = () => m(oe), Z6 = () => m(se), S6 = () => m(ce), j6 = () => m(re), C6 = () => m(le), b6 = () => m(ie), y6 = () => m(ae), I6 = () => m(ue), R6 = () => m(de), E6 = () => m(b3), T6 = (e) => m(y3(e)), D6 = (e, t) => m(ve(e, t)), e1 = (e) => e.ui, V1 = (e) => M(e1, (t) => t.modalVisibility[e]), he = (e) => M(e1, (t) => {
|
|
207
207
|
const o = t.popoverVisibility[e];
|
|
208
208
|
if (o)
|
|
209
209
|
return Object.keys(o).find((c) => o[c]);
|
|
210
210
|
}), ge = (e, t) => M(
|
|
211
|
-
|
|
211
|
+
e1,
|
|
212
212
|
(o) => {
|
|
213
213
|
var c;
|
|
214
214
|
return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
|
|
215
215
|
}
|
|
216
|
-
), fe = M(
|
|
217
|
-
|
|
216
|
+
), fe = M(e1, (e) => e.error), we = M(
|
|
217
|
+
e1,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
),
|
|
219
|
+
), me = M(e1, (e) => e.theme), pe = (e) => M(e1, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), A6 = () => m(V1("showIncomingCallModal")), $6 = (e) => m(V1(e)), L6 = (e) => m(he(e)), P6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), k6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -296,7 +296,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
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] ?? {}, u = S3.mergeWith(
|
|
300
300
|
{},
|
|
301
301
|
l,
|
|
302
302
|
r,
|
|
@@ -304,7 +304,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
304
304
|
if (Array.isArray(h)) return h.slice();
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
e[c] =
|
|
307
|
+
e[c] = u;
|
|
308
308
|
},
|
|
309
309
|
clearDevices() {
|
|
310
310
|
return v3;
|
|
@@ -336,16 +336,16 @@ const g3 = {}, B1 = d1({
|
|
|
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] ?? {}, u = S3.mergeWith({}, l, r, (g, h) => {
|
|
340
340
|
if (Array.isArray(h)) return h;
|
|
341
341
|
});
|
|
342
|
-
e[c] =
|
|
342
|
+
e[c] = u;
|
|
343
343
|
},
|
|
344
344
|
clearRooms() {
|
|
345
345
|
return g3;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
348
|
+
}), m1 = {
|
|
349
349
|
setRoomState: B1.actions.setRoomState,
|
|
350
350
|
clearRooms: B1.actions.clearRooms
|
|
351
351
|
}, Te = B1.reducer, De = {
|
|
@@ -414,16 +414,16 @@ const g3 = {}, B1 = d1({
|
|
|
414
414
|
e.touchpanelKey = t.payload;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
}), U = D3.actions, _e = D3.reducer,
|
|
418
|
-
type:
|
|
417
|
+
}), U = D3.actions, _e = D3.reducer, $1 = M3.create(), _3 = "websocket/connect", A3 = "websocket/disconnect", $3 = "websocket/sendMessage", L3 = "websocket/addEventHandler", P3 = "websocket/removeEventHandler", k3 = "websocket/reconnect", B3 = () => ({ type: _3 }), B6 = () => ({ type: A3 }), Ae = (e, t) => ({
|
|
418
|
+
type: $3,
|
|
419
419
|
payload: { messageType: e, content: t }
|
|
420
|
-
}),
|
|
421
|
-
type:
|
|
420
|
+
}), $e = (e, t, o) => ({
|
|
421
|
+
type: L3,
|
|
422
422
|
payload: { eventType: e, key: t, callback: o }
|
|
423
|
-
}),
|
|
424
|
-
type:
|
|
423
|
+
}), Le = (e, t) => ({
|
|
424
|
+
type: P3,
|
|
425
425
|
payload: { eventType: e, key: t }
|
|
426
|
-
}),
|
|
426
|
+
}), Pe = () => ({ type: k3 }), ke = () => {
|
|
427
427
|
const e = {
|
|
428
428
|
client: null,
|
|
429
429
|
token: null,
|
|
@@ -434,14 +434,14 @@ const g3 = {}, B1 = d1({
|
|
|
434
434
|
try {
|
|
435
435
|
const Z = location.pathname.split("/").filter((b) => b.length > 0);
|
|
436
436
|
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
437
|
-
const C = `/${Z.join("/")}`, S = await
|
|
437
|
+
const C = `/${Z.join("/")}`, S = await $1.get(
|
|
438
438
|
"/_local-config/_config.local.json",
|
|
439
439
|
{ baseURL: C }
|
|
440
440
|
);
|
|
441
441
|
if (S.status === 200 && S.data) {
|
|
442
442
|
const b = S.data.apiPath;
|
|
443
443
|
a(T3.setAppConfig(S.data));
|
|
444
|
-
const x = await
|
|
444
|
+
const x = await $1.get(
|
|
445
445
|
`${b}/version`
|
|
446
446
|
);
|
|
447
447
|
x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
|
|
@@ -452,12 +452,12 @@ const g3 = {}, B1 = d1({
|
|
|
452
452
|
return !0;
|
|
453
453
|
}, o = async (a, Z, C) => {
|
|
454
454
|
try {
|
|
455
|
-
const S = await
|
|
455
|
+
const S = await $1.get(
|
|
456
456
|
`${a}/ui/joinroom?token=${Z}`
|
|
457
457
|
);
|
|
458
458
|
return S.status === 200 && S.data ? (C(U.setRoomData(S.data)), S.data) : null;
|
|
459
459
|
} catch (S) {
|
|
460
|
-
return console.log(S), S instanceof
|
|
460
|
+
return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
|
|
461
461
|
O.setErrorMessage(
|
|
462
462
|
`Token ${Z} is invalid. Unable to join room`
|
|
463
463
|
)
|
|
@@ -470,8 +470,8 @@ const g3 = {}, B1 = d1({
|
|
|
470
470
|
}, r = () => {
|
|
471
471
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
472
472
|
}, l = (a) => {
|
|
473
|
-
a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(
|
|
474
|
-
},
|
|
473
|
+
a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState());
|
|
474
|
+
}, u = (a, Z) => {
|
|
475
475
|
const C = a(), S = Z ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected;
|
|
476
476
|
if (!Z || !x || !b) {
|
|
477
477
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
@@ -529,7 +529,7 @@ const g3 = {}, B1 = d1({
|
|
|
529
529
|
}, K.onerror = (k) => {
|
|
530
530
|
console.error("WebSocket middleware: Error", k), l(a);
|
|
531
531
|
}, K.onclose = (k) => {
|
|
532
|
-
var
|
|
532
|
+
var _;
|
|
533
533
|
if (console.log(
|
|
534
534
|
"WebSocket middleware: Disconnected",
|
|
535
535
|
k.reason,
|
|
@@ -557,7 +557,7 @@ const g3 = {}, B1 = d1({
|
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
559
|
if (k.code === 4001)
|
|
560
|
-
if (!!((
|
|
560
|
+
if (!!((_ = Z().runtimeConfig) != null && _.touchpanelKey))
|
|
561
561
|
console.log(
|
|
562
562
|
"WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
|
|
563
563
|
);
|
|
@@ -587,40 +587,40 @@ const g3 = {}, B1 = d1({
|
|
|
587
587
|
O.setErrorMessage(
|
|
588
588
|
"Connection lost. Attempting to reconnect..."
|
|
589
589
|
)
|
|
590
|
-
), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(
|
|
590
|
+
), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState()), c(a);
|
|
591
591
|
}, K.onmessage = (k) => {
|
|
592
592
|
try {
|
|
593
|
-
const
|
|
594
|
-
if (
|
|
595
|
-
K.close(4001,
|
|
593
|
+
const _ = JSON.parse(k.data);
|
|
594
|
+
if (_.type === "close") {
|
|
595
|
+
K.close(4001, _.content);
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
|
-
if (
|
|
599
|
-
switch (
|
|
598
|
+
if (_.type.startsWith("/system/"))
|
|
599
|
+
switch (_.type) {
|
|
600
600
|
case "/system/touchpanelKey":
|
|
601
601
|
a(
|
|
602
602
|
U.setTouchpanelKey(
|
|
603
|
-
|
|
603
|
+
_.content
|
|
604
604
|
)
|
|
605
605
|
);
|
|
606
606
|
break;
|
|
607
607
|
case "/system/roomKey":
|
|
608
|
-
a(
|
|
608
|
+
a(m1.clearRooms()), a(w1.clearDevices()), a(O.clearSyncState()), a(
|
|
609
609
|
U.setCurrentRoomKey(
|
|
610
|
-
|
|
610
|
+
_.content
|
|
611
611
|
)
|
|
612
612
|
);
|
|
613
613
|
break;
|
|
614
614
|
case "/system/userCodeChanged":
|
|
615
615
|
a(
|
|
616
|
-
U.setUserCode(
|
|
616
|
+
U.setUserCode(_.content)
|
|
617
617
|
);
|
|
618
618
|
break;
|
|
619
619
|
case "/system/roomCombinationChanged":
|
|
620
620
|
window.location.reload();
|
|
621
621
|
break;
|
|
622
622
|
case "/system/deviceInterfaces": {
|
|
623
|
-
const z =
|
|
623
|
+
const z = _.content;
|
|
624
624
|
a(
|
|
625
625
|
U.setDeviceInterfaces(
|
|
626
626
|
z.deviceInterfaces
|
|
@@ -631,18 +631,18 @@ const g3 = {}, B1 = d1({
|
|
|
631
631
|
default:
|
|
632
632
|
console.log(
|
|
633
633
|
"WebSocket middleware: Unhandled system message",
|
|
634
|
-
|
|
634
|
+
_
|
|
635
635
|
);
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
|
-
else if (
|
|
639
|
-
const z = e.eventHandlers[
|
|
638
|
+
else if (_.type.startsWith("/event/")) {
|
|
639
|
+
const z = e.eventHandlers[_.type];
|
|
640
640
|
z || console.log(
|
|
641
641
|
"WebSocket middleware: No handlers found for event type",
|
|
642
|
-
|
|
642
|
+
_.type
|
|
643
643
|
), z && Object.values(z).forEach((o1) => {
|
|
644
644
|
try {
|
|
645
|
-
o1(
|
|
645
|
+
o1(_);
|
|
646
646
|
} catch (b1) {
|
|
647
647
|
console.error(
|
|
648
648
|
"WebSocket middleware: Event handler error",
|
|
@@ -650,9 +650,9 @@ const g3 = {}, B1 = d1({
|
|
|
650
650
|
);
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
|
-
} else
|
|
654
|
-
} catch (
|
|
655
|
-
console.error("WebSocket middleware: Message handling error",
|
|
653
|
+
} else _.type.startsWith("/room/") ? a(m1.setRoomState(_)) : _.type.startsWith("/device/") && a(w1.setDeviceState(_));
|
|
654
|
+
} catch (_) {
|
|
655
|
+
console.error("WebSocket middleware: Message handling error", _);
|
|
656
656
|
}
|
|
657
657
|
}, e.waitingToReconnect = !1;
|
|
658
658
|
} catch (x) {
|
|
@@ -665,9 +665,9 @@ const g3 = {}, B1 = d1({
|
|
|
665
665
|
e.client && b ? e.client.send(
|
|
666
666
|
JSON.stringify({ type: a, clientId: x, content: Z })
|
|
667
667
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
668
|
-
},
|
|
668
|
+
}, d = (a, Z, C) => {
|
|
669
669
|
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = C, console.log("WebSocket middleware: Event handler added", a, Z);
|
|
670
|
-
},
|
|
670
|
+
}, A = (a, Z) => {
|
|
671
671
|
e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
|
|
672
672
|
"WebSocket middleware: Event handler removed",
|
|
673
673
|
a,
|
|
@@ -689,25 +689,25 @@ const g3 = {}, B1 = d1({
|
|
|
689
689
|
W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(a.dispatch), await g(a.dispatch, a.getState);
|
|
690
690
|
break;
|
|
691
691
|
}
|
|
692
|
-
case
|
|
692
|
+
case A3:
|
|
693
693
|
h();
|
|
694
694
|
break;
|
|
695
|
-
case
|
|
695
|
+
case $3:
|
|
696
696
|
f(
|
|
697
697
|
b.payload.messageType,
|
|
698
698
|
b.payload.content,
|
|
699
699
|
a.getState
|
|
700
700
|
);
|
|
701
701
|
break;
|
|
702
|
-
case
|
|
703
|
-
|
|
702
|
+
case L3:
|
|
703
|
+
d(
|
|
704
704
|
b.payload.eventType,
|
|
705
705
|
b.payload.key,
|
|
706
706
|
b.payload.callback
|
|
707
707
|
);
|
|
708
708
|
break;
|
|
709
|
-
case
|
|
710
|
-
|
|
709
|
+
case P3:
|
|
710
|
+
A(
|
|
711
711
|
b.payload.eventType,
|
|
712
712
|
b.payload.key
|
|
713
713
|
);
|
|
@@ -719,19 +719,19 @@ const g3 = {}, B1 = d1({
|
|
|
719
719
|
if (C.type === U.setWebsocketIsConnected.type)
|
|
720
720
|
C.payload === !0 && (console.log(
|
|
721
721
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
722
|
-
), setTimeout(() =>
|
|
722
|
+
), setTimeout(() => u(a.getState), 100));
|
|
723
723
|
else if (C.type === U.setRoomData.type) {
|
|
724
724
|
const x = a.getState(), W = C.payload;
|
|
725
725
|
x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
|
|
726
726
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
727
|
-
), setTimeout(() =>
|
|
727
|
+
), setTimeout(() => u(a.getState), 100));
|
|
728
728
|
} else if (C.type === U.setCurrentRoomKey.type) {
|
|
729
729
|
const x = C.payload;
|
|
730
730
|
x && (console.log(
|
|
731
731
|
"[WebSocket Middleware] Room changed to:",
|
|
732
732
|
x,
|
|
733
733
|
", requesting room status..."
|
|
734
|
-
), setTimeout(() =>
|
|
734
|
+
), setTimeout(() => u(a.getState, x), 100));
|
|
735
735
|
}
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
@@ -778,7 +778,7 @@ function O6() {
|
|
|
778
778
|
return !0;
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
|
-
var
|
|
781
|
+
var p1 = { exports: {} }, l1 = {};
|
|
782
782
|
/**
|
|
783
783
|
* @license React
|
|
784
784
|
* react-jsx-runtime.production.min.js
|
|
@@ -793,14 +793,14 @@ function We() {
|
|
|
793
793
|
if (w3) return l1;
|
|
794
794
|
w3 = 1;
|
|
795
795
|
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 };
|
|
796
|
-
function
|
|
797
|
-
var
|
|
796
|
+
function u(g, h, f) {
|
|
797
|
+
var d, A = {}, F = null, a = null;
|
|
798
798
|
f !== void 0 && (F = "" + f), h.key !== void 0 && (F = "" + h.key), h.ref !== void 0 && (a = h.ref);
|
|
799
|
-
for (
|
|
800
|
-
if (g && g.defaultProps) for (
|
|
801
|
-
return { $$typeof: t, type: g, key: F, ref: a, props:
|
|
799
|
+
for (d in h) c.call(h, d) && !l.hasOwnProperty(d) && (A[d] = h[d]);
|
|
800
|
+
if (g && g.defaultProps) for (d in h = g.defaultProps, h) A[d] === void 0 && (A[d] = h[d]);
|
|
801
|
+
return { $$typeof: t, type: g, key: F, ref: a, props: A, _owner: r.current };
|
|
802
802
|
}
|
|
803
|
-
return l1.Fragment = o, l1.jsx =
|
|
803
|
+
return l1.Fragment = o, l1.jsx = u, l1.jsxs = u, l1;
|
|
804
804
|
}
|
|
805
805
|
var i1 = {};
|
|
806
806
|
/**
|
|
@@ -812,10 +812,10 @@ var i1 = {};
|
|
|
812
812
|
* This source code is licensed under the MIT license found in the
|
|
813
813
|
* LICENSE file in the root directory of this source tree.
|
|
814
814
|
*/
|
|
815
|
-
var
|
|
815
|
+
var m3;
|
|
816
816
|
function Ve() {
|
|
817
|
-
return
|
|
818
|
-
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"),
|
|
817
|
+
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
818
|
+
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, C = "@@iterator";
|
|
819
819
|
function S(s) {
|
|
820
820
|
if (s === null || typeof s != "object")
|
|
821
821
|
return null;
|
|
@@ -825,36 +825,36 @@ function Ve() {
|
|
|
825
825
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
826
826
|
function x(s) {
|
|
827
827
|
{
|
|
828
|
-
for (var i = arguments.length,
|
|
829
|
-
|
|
830
|
-
W("error", s,
|
|
828
|
+
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
829
|
+
v[p - 1] = arguments[p];
|
|
830
|
+
W("error", s, v);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
function W(s, i,
|
|
833
|
+
function W(s, i, v) {
|
|
834
834
|
{
|
|
835
|
-
var
|
|
836
|
-
E !== "" && (i += "%s",
|
|
837
|
-
var T =
|
|
835
|
+
var p = b.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
836
|
+
E !== "" && (i += "%s", v = v.concat([E]));
|
|
837
|
+
var T = v.map(function(y) {
|
|
838
838
|
return String(y);
|
|
839
839
|
});
|
|
840
840
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
var C1 = !1, K = !1, k = !1,
|
|
843
|
+
var C1 = !1, K = !1, k = !1, _ = !1, z = !1, o1;
|
|
844
844
|
o1 = Symbol.for("react.module.reference");
|
|
845
845
|
function b1(s) {
|
|
846
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s ===
|
|
846
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || _ || s === a || C1 || K || k || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === A || s.$$typeof === u || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
|
|
847
847
|
// types supported by any Flight configuration anywhere since
|
|
848
848
|
// we don't know which Flight build this will end up being used
|
|
849
849
|
// with.
|
|
850
850
|
s.$$typeof === o1 || s.getModuleId !== void 0));
|
|
851
851
|
}
|
|
852
|
-
function U3(s, i,
|
|
853
|
-
var
|
|
854
|
-
if (
|
|
855
|
-
return
|
|
852
|
+
function U3(s, i, v) {
|
|
853
|
+
var p = s.displayName;
|
|
854
|
+
if (p)
|
|
855
|
+
return p;
|
|
856
856
|
var E = i.displayName || i.name || "";
|
|
857
|
-
return E !== "" ?
|
|
857
|
+
return E !== "" ? v + "(" + E + ")" : v;
|
|
858
858
|
}
|
|
859
859
|
function U1(s) {
|
|
860
860
|
return s.displayName || "Context";
|
|
@@ -877,7 +877,7 @@ function Ve() {
|
|
|
877
877
|
return "StrictMode";
|
|
878
878
|
case f:
|
|
879
879
|
return "Suspense";
|
|
880
|
-
case
|
|
880
|
+
case d:
|
|
881
881
|
return "SuspenseList";
|
|
882
882
|
}
|
|
883
883
|
if (typeof s == "object")
|
|
@@ -885,14 +885,14 @@ function Ve() {
|
|
|
885
885
|
case g:
|
|
886
886
|
var i = s;
|
|
887
887
|
return U1(i) + ".Consumer";
|
|
888
|
-
case
|
|
889
|
-
var
|
|
890
|
-
return U1(
|
|
888
|
+
case u:
|
|
889
|
+
var v = s;
|
|
890
|
+
return U1(v._context) + ".Provider";
|
|
891
891
|
case h:
|
|
892
892
|
return U3(s, s.render, "ForwardRef");
|
|
893
|
-
case
|
|
894
|
-
var
|
|
895
|
-
return
|
|
893
|
+
case A:
|
|
894
|
+
var p = s.displayName || null;
|
|
895
|
+
return p !== null ? p : J(s.type) || "Memo";
|
|
896
896
|
case F: {
|
|
897
897
|
var E = s, T = E._payload, y = E._init;
|
|
898
898
|
try {
|
|
@@ -904,7 +904,7 @@ function Ve() {
|
|
|
904
904
|
}
|
|
905
905
|
return null;
|
|
906
906
|
}
|
|
907
|
-
var
|
|
907
|
+
var Q = Object.assign, s1 = 0, F1, H1, K1, q1, G1, Y1, z1;
|
|
908
908
|
function J1() {
|
|
909
909
|
}
|
|
910
910
|
J1.__reactDisabledLog = !0;
|
|
@@ -940,25 +940,25 @@ function Ve() {
|
|
|
940
940
|
writable: !0
|
|
941
941
|
};
|
|
942
942
|
Object.defineProperties(console, {
|
|
943
|
-
log:
|
|
943
|
+
log: Q({}, s, {
|
|
944
944
|
value: F1
|
|
945
945
|
}),
|
|
946
|
-
info:
|
|
946
|
+
info: Q({}, s, {
|
|
947
947
|
value: H1
|
|
948
948
|
}),
|
|
949
|
-
warn:
|
|
949
|
+
warn: Q({}, s, {
|
|
950
950
|
value: K1
|
|
951
951
|
}),
|
|
952
|
-
error:
|
|
952
|
+
error: Q({}, s, {
|
|
953
953
|
value: q1
|
|
954
954
|
}),
|
|
955
|
-
group:
|
|
955
|
+
group: Q({}, s, {
|
|
956
956
|
value: G1
|
|
957
957
|
}),
|
|
958
|
-
groupCollapsed:
|
|
958
|
+
groupCollapsed: Q({}, s, {
|
|
959
959
|
value: Y1
|
|
960
960
|
}),
|
|
961
|
-
groupEnd:
|
|
961
|
+
groupEnd: Q({}, s, {
|
|
962
962
|
value: z1
|
|
963
963
|
})
|
|
964
964
|
});
|
|
@@ -967,14 +967,14 @@ function Ve() {
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
var y1 = b.ReactCurrentDispatcher, I1;
|
|
970
|
-
function v1(s, i,
|
|
970
|
+
function v1(s, i, v) {
|
|
971
971
|
{
|
|
972
972
|
if (I1 === void 0)
|
|
973
973
|
try {
|
|
974
974
|
throw Error();
|
|
975
975
|
} catch (E) {
|
|
976
|
-
var
|
|
977
|
-
I1 =
|
|
976
|
+
var p = E.stack.trim().match(/\n( *(at )?)/);
|
|
977
|
+
I1 = p && p[1] || "";
|
|
978
978
|
}
|
|
979
979
|
return `
|
|
980
980
|
` + I1 + s;
|
|
@@ -989,11 +989,11 @@ function Ve() {
|
|
|
989
989
|
if (!s || R1)
|
|
990
990
|
return "";
|
|
991
991
|
{
|
|
992
|
-
var
|
|
993
|
-
if (
|
|
994
|
-
return
|
|
992
|
+
var v = h1.get(s);
|
|
993
|
+
if (v !== void 0)
|
|
994
|
+
return v;
|
|
995
995
|
}
|
|
996
|
-
var
|
|
996
|
+
var p;
|
|
997
997
|
R1 = !0;
|
|
998
998
|
var E = Error.prepareStackTrace;
|
|
999
999
|
Error.prepareStackTrace = void 0;
|
|
@@ -1012,14 +1012,14 @@ function Ve() {
|
|
|
1012
1012
|
try {
|
|
1013
1013
|
Reflect.construct(y, []);
|
|
1014
1014
|
} catch (V) {
|
|
1015
|
-
|
|
1015
|
+
p = V;
|
|
1016
1016
|
}
|
|
1017
1017
|
Reflect.construct(s, [], y);
|
|
1018
1018
|
} else {
|
|
1019
1019
|
try {
|
|
1020
1020
|
y.call();
|
|
1021
1021
|
} catch (V) {
|
|
1022
|
-
|
|
1022
|
+
p = V;
|
|
1023
1023
|
}
|
|
1024
1024
|
s.call(y.prototype);
|
|
1025
1025
|
}
|
|
@@ -1027,43 +1027,43 @@ function Ve() {
|
|
|
1027
1027
|
try {
|
|
1028
1028
|
throw Error();
|
|
1029
1029
|
} catch (V) {
|
|
1030
|
-
|
|
1030
|
+
p = V;
|
|
1031
1031
|
}
|
|
1032
1032
|
s();
|
|
1033
1033
|
}
|
|
1034
1034
|
} catch (V) {
|
|
1035
|
-
if (V &&
|
|
1035
|
+
if (V && p && typeof V.stack == "string") {
|
|
1036
1036
|
for (var j = V.stack.split(`
|
|
1037
|
-
`), B =
|
|
1038
|
-
`),
|
|
1039
|
-
|
|
1040
|
-
for (;
|
|
1041
|
-
if (j[
|
|
1042
|
-
if (
|
|
1037
|
+
`), B = p.stack.split(`
|
|
1038
|
+
`), $ = j.length - 1, L = B.length - 1; $ >= 1 && L >= 0 && j[$] !== B[L]; )
|
|
1039
|
+
L--;
|
|
1040
|
+
for (; $ >= 1 && L >= 0; $--, L--)
|
|
1041
|
+
if (j[$] !== B[L]) {
|
|
1042
|
+
if ($ !== 1 || L !== 1)
|
|
1043
1043
|
do
|
|
1044
|
-
if (
|
|
1044
|
+
if ($--, L--, L < 0 || j[$] !== B[L]) {
|
|
1045
1045
|
var H = `
|
|
1046
|
-
` + j[
|
|
1046
|
+
` + j[$].replace(" at new ", " at ");
|
|
1047
1047
|
return s.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", s.displayName)), typeof s == "function" && h1.set(s, H), H;
|
|
1048
1048
|
}
|
|
1049
|
-
while (
|
|
1049
|
+
while ($ >= 1 && L >= 0);
|
|
1050
1050
|
break;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
1053
|
} finally {
|
|
1054
1054
|
R1 = !1, y1.current = T, H3(), Error.prepareStackTrace = E;
|
|
1055
1055
|
}
|
|
1056
|
-
var
|
|
1057
|
-
return typeof s == "function" && h1.set(s,
|
|
1056
|
+
var n1 = s ? s.displayName || s.name : "", N = n1 ? v1(n1) : "";
|
|
1057
|
+
return typeof s == "function" && h1.set(s, N), N;
|
|
1058
1058
|
}
|
|
1059
|
-
function q3(s, i,
|
|
1059
|
+
function q3(s, i, v) {
|
|
1060
1060
|
return X1(s, !1);
|
|
1061
1061
|
}
|
|
1062
1062
|
function G3(s) {
|
|
1063
1063
|
var i = s.prototype;
|
|
1064
1064
|
return !!(i && i.isReactComponent);
|
|
1065
1065
|
}
|
|
1066
|
-
function g1(s, i,
|
|
1066
|
+
function g1(s, i, v) {
|
|
1067
1067
|
if (s == null)
|
|
1068
1068
|
return "";
|
|
1069
1069
|
if (typeof s == "function")
|
|
@@ -1073,19 +1073,19 @@ function Ve() {
|
|
|
1073
1073
|
switch (s) {
|
|
1074
1074
|
case f:
|
|
1075
1075
|
return v1("Suspense");
|
|
1076
|
-
case
|
|
1076
|
+
case d:
|
|
1077
1077
|
return v1("SuspenseList");
|
|
1078
1078
|
}
|
|
1079
1079
|
if (typeof s == "object")
|
|
1080
1080
|
switch (s.$$typeof) {
|
|
1081
1081
|
case h:
|
|
1082
1082
|
return q3(s.render);
|
|
1083
|
-
case
|
|
1084
|
-
return g1(s.type, i,
|
|
1083
|
+
case A:
|
|
1084
|
+
return g1(s.type, i, v);
|
|
1085
1085
|
case F: {
|
|
1086
|
-
var
|
|
1086
|
+
var p = s, E = p._payload, T = p._init;
|
|
1087
1087
|
try {
|
|
1088
|
-
return g1(T(E), i,
|
|
1088
|
+
return g1(T(E), i, v);
|
|
1089
1089
|
} catch {
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
@@ -1095,12 +1095,12 @@ function Ve() {
|
|
|
1095
1095
|
var c1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
|
|
1096
1096
|
function f1(s) {
|
|
1097
1097
|
if (s) {
|
|
1098
|
-
var i = s._owner,
|
|
1099
|
-
N1.setExtraStackFrame(
|
|
1098
|
+
var i = s._owner, v = g1(s.type, s._source, i ? i.type : null);
|
|
1099
|
+
N1.setExtraStackFrame(v);
|
|
1100
1100
|
} else
|
|
1101
1101
|
N1.setExtraStackFrame(null);
|
|
1102
1102
|
}
|
|
1103
|
-
function Y3(s, i,
|
|
1103
|
+
function Y3(s, i, v, p, E) {
|
|
1104
1104
|
{
|
|
1105
1105
|
var T = Function.call.bind(c1);
|
|
1106
1106
|
for (var y in s)
|
|
@@ -1108,14 +1108,14 @@ function Ve() {
|
|
|
1108
1108
|
var j = void 0;
|
|
1109
1109
|
try {
|
|
1110
1110
|
if (typeof s[y] != "function") {
|
|
1111
|
-
var B = Error((
|
|
1111
|
+
var B = 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`.");
|
|
1112
1112
|
throw B.name = "Invariant Violation", B;
|
|
1113
1113
|
}
|
|
1114
|
-
j = s[y](i, y,
|
|
1115
|
-
} catch (
|
|
1116
|
-
j =
|
|
1114
|
+
j = s[y](i, y, p, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1115
|
+
} catch ($) {
|
|
1116
|
+
j = $;
|
|
1117
1117
|
}
|
|
1118
|
-
j && !(j instanceof Error) && (f1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
1118
|
+
j && !(j instanceof Error) && (f1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", v, y, typeof j), f1(null)), j instanceof Error && !(j.message in Q1) && (Q1[j.message] = !0, f1(E), x("Failed %s type: %s", v, j.message), f1(null));
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
@@ -1125,8 +1125,8 @@ function Ve() {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
function J3(s) {
|
|
1127
1127
|
{
|
|
1128
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
1129
|
-
return
|
|
1128
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, v = i && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
1129
|
+
return v;
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
function X3(s) {
|
|
@@ -1170,34 +1170,34 @@ function Ve() {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
function n2(s, i) {
|
|
1172
1172
|
{
|
|
1173
|
-
var
|
|
1173
|
+
var v = function() {
|
|
1174
1174
|
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));
|
|
1175
1175
|
};
|
|
1176
|
-
|
|
1177
|
-
get:
|
|
1176
|
+
v.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
1177
|
+
get: v,
|
|
1178
1178
|
configurable: !0
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
function o2(s, i) {
|
|
1183
1183
|
{
|
|
1184
|
-
var
|
|
1184
|
+
var v = function() {
|
|
1185
1185
|
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));
|
|
1186
1186
|
};
|
|
1187
|
-
|
|
1188
|
-
get:
|
|
1187
|
+
v.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
1188
|
+
get: v,
|
|
1189
1189
|
configurable: !0
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
var s2 = function(s, i,
|
|
1193
|
+
var s2 = function(s, i, v, p, E, T, y) {
|
|
1194
1194
|
var j = {
|
|
1195
1195
|
// This tag allows us to uniquely identify this as a React Element
|
|
1196
1196
|
$$typeof: t,
|
|
1197
1197
|
// Built-in properties that belong on the element
|
|
1198
1198
|
type: s,
|
|
1199
1199
|
key: i,
|
|
1200
|
-
ref:
|
|
1200
|
+
ref: v,
|
|
1201
1201
|
props: y,
|
|
1202
1202
|
// Record the component responsible for creating this element.
|
|
1203
1203
|
_owner: T
|
|
@@ -1211,7 +1211,7 @@ function Ve() {
|
|
|
1211
1211
|
configurable: !1,
|
|
1212
1212
|
enumerable: !1,
|
|
1213
1213
|
writable: !1,
|
|
1214
|
-
value:
|
|
1214
|
+
value: p
|
|
1215
1215
|
}), Object.defineProperty(j, "_source", {
|
|
1216
1216
|
configurable: !1,
|
|
1217
1217
|
enumerable: !1,
|
|
@@ -1219,29 +1219,29 @@ function Ve() {
|
|
|
1219
1219
|
value: E
|
|
1220
1220
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
1221
1221
|
};
|
|
1222
|
-
function c2(s, i,
|
|
1222
|
+
function c2(s, i, v, p, E) {
|
|
1223
1223
|
{
|
|
1224
1224
|
var T, y = {}, j = null, B = null;
|
|
1225
|
-
|
|
1225
|
+
v !== void 0 && (t3(v), j = "" + v), e2(i) && (t3(i.key), j = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
|
|
1226
1226
|
for (T in i)
|
|
1227
1227
|
c1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
|
|
1228
1228
|
if (s && s.defaultProps) {
|
|
1229
|
-
var
|
|
1230
|
-
for (T in
|
|
1231
|
-
y[T] === void 0 && (y[T] =
|
|
1229
|
+
var $ = s.defaultProps;
|
|
1230
|
+
for (T in $)
|
|
1231
|
+
y[T] === void 0 && (y[T] = $[T]);
|
|
1232
1232
|
}
|
|
1233
1233
|
if (j || B) {
|
|
1234
|
-
var
|
|
1235
|
-
j && n2(y,
|
|
1234
|
+
var L = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1235
|
+
j && n2(y, L), B && o2(y, L);
|
|
1236
1236
|
}
|
|
1237
|
-
return s2(s, j, B, E,
|
|
1237
|
+
return s2(s, j, B, E, p, n3.current, y);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
|
|
1241
|
-
function
|
|
1241
|
+
function t1(s) {
|
|
1242
1242
|
if (s) {
|
|
1243
|
-
var i = s._owner,
|
|
1244
|
-
c3.setExtraStackFrame(
|
|
1243
|
+
var i = s._owner, v = g1(s.type, s._source, i ? i.type : null);
|
|
1244
|
+
c3.setExtraStackFrame(v);
|
|
1245
1245
|
} else
|
|
1246
1246
|
c3.setExtraStackFrame(null);
|
|
1247
1247
|
}
|
|
@@ -1270,10 +1270,10 @@ Check the render method of \`` + s + "`.";
|
|
|
1270
1270
|
{
|
|
1271
1271
|
var i = r3();
|
|
1272
1272
|
if (!i) {
|
|
1273
|
-
var
|
|
1274
|
-
|
|
1273
|
+
var v = typeof s == "string" ? s : s.displayName || s.name;
|
|
1274
|
+
v && (i = `
|
|
1275
1275
|
|
|
1276
|
-
Check the top-level render call using <` +
|
|
1276
|
+
Check the top-level render call using <` + v + ">.");
|
|
1277
1277
|
}
|
|
1278
1278
|
return i;
|
|
1279
1279
|
}
|
|
@@ -1283,12 +1283,12 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1283
1283
|
if (!s._store || s._store.validated || s.key != null)
|
|
1284
1284
|
return;
|
|
1285
1285
|
s._store.validated = !0;
|
|
1286
|
-
var
|
|
1287
|
-
if (l3[
|
|
1286
|
+
var v = l2(i);
|
|
1287
|
+
if (l3[v])
|
|
1288
1288
|
return;
|
|
1289
|
-
l3[
|
|
1290
|
-
var
|
|
1291
|
-
s && s._owner && s._owner !== T1.current && (
|
|
1289
|
+
l3[v] = !0;
|
|
1290
|
+
var p = "";
|
|
1291
|
+
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), t1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, p), t1(null);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
function a3(s, i) {
|
|
@@ -1296,9 +1296,9 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1296
1296
|
if (typeof s != "object")
|
|
1297
1297
|
return;
|
|
1298
1298
|
if (E1(s))
|
|
1299
|
-
for (var
|
|
1300
|
-
var
|
|
1301
|
-
_1(
|
|
1299
|
+
for (var v = 0; v < s.length; v++) {
|
|
1300
|
+
var p = s[v];
|
|
1301
|
+
_1(p) && i3(p, i);
|
|
1302
1302
|
}
|
|
1303
1303
|
else if (_1(s))
|
|
1304
1304
|
s._store && (s._store.validated = !0);
|
|
@@ -1315,18 +1315,18 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1315
1315
|
var i = s.type;
|
|
1316
1316
|
if (i == null || typeof i == "string")
|
|
1317
1317
|
return;
|
|
1318
|
-
var
|
|
1318
|
+
var v;
|
|
1319
1319
|
if (typeof i == "function")
|
|
1320
|
-
|
|
1320
|
+
v = i.propTypes;
|
|
1321
1321
|
else if (typeof i == "object" && (i.$$typeof === h || // Note: Memo only checks outer props here.
|
|
1322
1322
|
// Inner props are checked in the reconciler.
|
|
1323
|
-
i.$$typeof ===
|
|
1324
|
-
|
|
1323
|
+
i.$$typeof === A))
|
|
1324
|
+
v = i.propTypes;
|
|
1325
1325
|
else
|
|
1326
1326
|
return;
|
|
1327
|
-
if (
|
|
1328
|
-
var
|
|
1329
|
-
Y3(
|
|
1327
|
+
if (v) {
|
|
1328
|
+
var p = J(i);
|
|
1329
|
+
Y3(v, s.props, "prop", p, s);
|
|
1330
1330
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1331
1331
|
D1 = !0;
|
|
1332
1332
|
var E = J(i);
|
|
@@ -1337,18 +1337,18 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1337
1337
|
}
|
|
1338
1338
|
function a2(s) {
|
|
1339
1339
|
{
|
|
1340
|
-
for (var i = Object.keys(s.props),
|
|
1341
|
-
var
|
|
1342
|
-
if (
|
|
1343
|
-
|
|
1340
|
+
for (var i = Object.keys(s.props), v = 0; v < i.length; v++) {
|
|
1341
|
+
var p = i[v];
|
|
1342
|
+
if (p !== "children" && p !== "key") {
|
|
1343
|
+
t1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), t1(null);
|
|
1344
1344
|
break;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
s.ref !== null && (
|
|
1347
|
+
s.ref !== null && (t1(s), x("Invalid attribute `ref` supplied to `React.Fragment`."), t1(null));
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
var u3 = {};
|
|
1351
|
-
function d3(s, i,
|
|
1351
|
+
function d3(s, i, v, p, E, T) {
|
|
1352
1352
|
{
|
|
1353
1353
|
var y = b1(s);
|
|
1354
1354
|
if (!y) {
|
|
@@ -1356,19 +1356,19 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1356
1356
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1357
1357
|
var B = r2();
|
|
1358
1358
|
B ? j += B : j += r3();
|
|
1359
|
-
var
|
|
1360
|
-
s === null ?
|
|
1359
|
+
var $;
|
|
1360
|
+
s === null ? $ = "null" : E1(s) ? $ = "array" : s !== void 0 && s.$$typeof === t ? ($ = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, j);
|
|
1361
1361
|
}
|
|
1362
|
-
var
|
|
1363
|
-
if (
|
|
1364
|
-
return
|
|
1362
|
+
var L = c2(s, i, v, E, T);
|
|
1363
|
+
if (L == null)
|
|
1364
|
+
return L;
|
|
1365
1365
|
if (y) {
|
|
1366
1366
|
var H = i.children;
|
|
1367
1367
|
if (H !== void 0)
|
|
1368
|
-
if (
|
|
1368
|
+
if (p)
|
|
1369
1369
|
if (E1(H)) {
|
|
1370
|
-
for (var
|
|
1371
|
-
a3(H[
|
|
1370
|
+
for (var n1 = 0; n1 < H.length; n1++)
|
|
1371
|
+
a3(H[n1], s);
|
|
1372
1372
|
Object.freeze && Object.freeze(H);
|
|
1373
1373
|
} else
|
|
1374
1374
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -1376,41 +1376,41 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1376
1376
|
a3(H, s);
|
|
1377
1377
|
}
|
|
1378
1378
|
if (c1.call(i, "key")) {
|
|
1379
|
-
var
|
|
1379
|
+
var N = J(s), V = Object.keys(i).filter(function(f2) {
|
|
1380
1380
|
return f2 !== "key";
|
|
1381
|
-
}),
|
|
1382
|
-
if (!u3[
|
|
1381
|
+
}), A1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1382
|
+
if (!u3[N + A1]) {
|
|
1383
1383
|
var g2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1384
1384
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
1385
1385
|
let props = %s;
|
|
1386
1386
|
<%s {...props} />
|
|
1387
1387
|
React keys must be passed directly to JSX without using spread:
|
|
1388
1388
|
let props = %s;
|
|
1389
|
-
<%s key={someKey} {...props} />`,
|
|
1389
|
+
<%s key={someKey} {...props} />`, A1, N, g2, N), u3[N + A1] = !0;
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
|
-
return s === c ? a2(
|
|
1392
|
+
return s === c ? a2(L) : i2(L), L;
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
function u2(s, i,
|
|
1396
|
-
return d3(s, i,
|
|
1395
|
+
function u2(s, i, v) {
|
|
1396
|
+
return d3(s, i, v, !0);
|
|
1397
1397
|
}
|
|
1398
|
-
function d2(s, i,
|
|
1399
|
-
return d3(s, i,
|
|
1398
|
+
function d2(s, i, v) {
|
|
1399
|
+
return d3(s, i, v, !1);
|
|
1400
1400
|
}
|
|
1401
1401
|
var v2 = d2, h2 = u2;
|
|
1402
1402
|
i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
|
|
1403
1403
|
})()), i1;
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1405
|
+
var p3;
|
|
1406
1406
|
function Ue() {
|
|
1407
|
-
return
|
|
1407
|
+
return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? p1.exports = We() : p1.exports = Ve()), p1.exports;
|
|
1408
1408
|
}
|
|
1409
1409
|
var n = Ue();
|
|
1410
1410
|
const Fe = "_mwfit_ppa3l_1", He = {
|
|
1411
1411
|
mwfit: Fe
|
|
1412
1412
|
}, Ke = () => {
|
|
1413
|
-
const { reconnect: e } =
|
|
1413
|
+
const { reconnect: e } = I(), t = I3(), o = Me(), c = xe();
|
|
1414
1414
|
return /* @__PURE__ */ n.jsxs("div", { className: "vh-100 d-flex flex-column flex-grow-1 justify-content-center align-items-center gap-5 ", children: [
|
|
1415
1415
|
/* @__PURE__ */ n.jsxs("div", { className: `${He.mwfit} mx-auto text-center`, children: [
|
|
1416
1416
|
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
|
}, [t]);
|
|
1432
1432
|
const c = r1(
|
|
1433
1433
|
(h, f) => {
|
|
1434
|
-
t(
|
|
1434
|
+
t(Ae(h, f));
|
|
1435
1435
|
},
|
|
1436
1436
|
[t]
|
|
1437
1437
|
), r = r1(
|
|
@@ -1440,17 +1440,17 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1440
1440
|
},
|
|
1441
1441
|
[c]
|
|
1442
1442
|
), l = r1(
|
|
1443
|
-
(h, f,
|
|
1444
|
-
t(
|
|
1443
|
+
(h, f, d) => {
|
|
1444
|
+
t($e(h, f, d));
|
|
1445
1445
|
},
|
|
1446
1446
|
[t]
|
|
1447
|
-
),
|
|
1447
|
+
), u = r1(
|
|
1448
1448
|
(h, f) => {
|
|
1449
|
-
t(
|
|
1449
|
+
t(Le(h, f));
|
|
1450
1450
|
},
|
|
1451
1451
|
[t]
|
|
1452
1452
|
), g = r1(() => {
|
|
1453
|
-
t(
|
|
1453
|
+
t(Pe());
|
|
1454
1454
|
}, [t]);
|
|
1455
1455
|
return /* @__PURE__ */ n.jsx(
|
|
1456
1456
|
O3.Provider,
|
|
@@ -1459,14 +1459,14 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1459
1459
|
sendMessage: c,
|
|
1460
1460
|
sendSimpleMessage: r,
|
|
1461
1461
|
addEventHandler: l,
|
|
1462
|
-
removeEventHandler:
|
|
1462
|
+
removeEventHandler: u,
|
|
1463
1463
|
reconnect: g
|
|
1464
1464
|
},
|
|
1465
1465
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
1468
|
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Oe, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
|
|
1469
|
-
function
|
|
1469
|
+
function I() {
|
|
1470
1470
|
return b2(O3);
|
|
1471
1471
|
}
|
|
1472
1472
|
function Ge({
|
|
@@ -1476,55 +1476,55 @@ function Ge({
|
|
|
1476
1476
|
onPressedButNotHeld: c,
|
|
1477
1477
|
holdTimeMs: r = 500
|
|
1478
1478
|
}) {
|
|
1479
|
-
const l = u1(null),
|
|
1479
|
+
const l = u1(null), u = u1(!1), g = u1(!1);
|
|
1480
1480
|
function h() {
|
|
1481
|
-
|
|
1481
|
+
u.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
|
|
1482
1482
|
g.current = !0, o == null || o(), l.current = null;
|
|
1483
1483
|
}, r);
|
|
1484
1484
|
}
|
|
1485
1485
|
function f() {
|
|
1486
|
-
|
|
1486
|
+
u.current = !1, t == null || t(), l.current && (clearTimeout(l.current), l.current = null, g.current || c == null || c());
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1489
|
-
|
|
1488
|
+
function d() {
|
|
1489
|
+
u.current && f();
|
|
1490
1490
|
}
|
|
1491
1491
|
return {
|
|
1492
1492
|
onPointerDown: h,
|
|
1493
1493
|
onPointerUp: f,
|
|
1494
|
-
onPointerLeave:
|
|
1494
|
+
onPointerLeave: d
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
1497
|
function w(e, t) {
|
|
1498
|
-
const { sendMessage: c } =
|
|
1498
|
+
const { sendMessage: c } = I(), r = u1(null);
|
|
1499
1499
|
function l() {
|
|
1500
1500
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1501
1501
|
c(`${e}/${t}`, { value: "held" });
|
|
1502
1502
|
}, 250));
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function u() {
|
|
1505
1505
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1506
1506
|
}
|
|
1507
|
-
return Ge({ onPress: l, onRelease:
|
|
1507
|
+
return Ge({ onPress: l, onRelease: u });
|
|
1508
1508
|
}
|
|
1509
1509
|
function j1(e) {
|
|
1510
|
-
const { sendMessage: t } =
|
|
1511
|
-
return
|
|
1510
|
+
const { sendMessage: t } = I(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1511
|
+
return X(() => ({
|
|
1512
1512
|
volumeUp: o,
|
|
1513
1513
|
volumeDown: c,
|
|
1514
1514
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1515
1515
|
}), [e, t, o, c]);
|
|
1516
1516
|
}
|
|
1517
1517
|
function V6(e) {
|
|
1518
|
-
const { sendMessage: t } =
|
|
1519
|
-
return
|
|
1518
|
+
const { sendMessage: t } = I(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1519
|
+
return X(() => ({
|
|
1520
1520
|
volumeUp: o,
|
|
1521
1521
|
volumeDown: c,
|
|
1522
1522
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1523
1523
|
}), [e, t, o, c]);
|
|
1524
1524
|
}
|
|
1525
1525
|
function W3(e, t) {
|
|
1526
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1527
|
-
return
|
|
1526
|
+
const { sendMessage: o, sendSimpleMessage: c } = I(), r = j1(e);
|
|
1527
|
+
return X(() => {
|
|
1528
1528
|
if (!r) {
|
|
1529
1529
|
console.log("baseVolume is undefined");
|
|
1530
1530
|
return;
|
|
@@ -1543,8 +1543,8 @@ function W3(e, t) {
|
|
|
1543
1543
|
}, [r, t, e, o, c]);
|
|
1544
1544
|
}
|
|
1545
1545
|
function U6(e, t) {
|
|
1546
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1547
|
-
return
|
|
1546
|
+
const { sendMessage: o, sendSimpleMessage: c } = I(), r = j1(e);
|
|
1547
|
+
return X(() => !r || !t ? void 0 : {
|
|
1548
1548
|
...r,
|
|
1549
1549
|
volumeState: t,
|
|
1550
1550
|
setLevel: (h) => c(`${e}/level`, h),
|
|
@@ -1553,14 +1553,14 @@ function U6(e, t) {
|
|
|
1553
1553
|
}, [r, t, e, o, c]);
|
|
1554
1554
|
}
|
|
1555
1555
|
function Ye(e) {
|
|
1556
|
-
const t =
|
|
1556
|
+
const t = D(e), o = `/device/${e}`, c = X(() => {
|
|
1557
1557
|
if (t)
|
|
1558
1558
|
return t.volume;
|
|
1559
1559
|
}, [t]);
|
|
1560
1560
|
return W3(o, c);
|
|
1561
1561
|
}
|
|
1562
1562
|
function V3(e) {
|
|
1563
|
-
const { sendMessage: t } =
|
|
1563
|
+
const { sendMessage: t } = I();
|
|
1564
1564
|
return { powerOn: () => {
|
|
1565
1565
|
t(`/device/${e}/powerOn`, null);
|
|
1566
1566
|
}, powerOff: () => {
|
|
@@ -1570,13 +1570,13 @@ function V3(e) {
|
|
|
1570
1570
|
} };
|
|
1571
1571
|
}
|
|
1572
1572
|
function O1(e) {
|
|
1573
|
-
const { sendMessage: t } =
|
|
1573
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1574
1574
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1575
1575
|
t(`/device/${e}/${r}`, null);
|
|
1576
1576
|
} } : void 0;
|
|
1577
1577
|
}
|
|
1578
1578
|
function ze(e) {
|
|
1579
|
-
const { sendMessage: t } =
|
|
1579
|
+
const { sendMessage: t } = I(), o = D(e), c = () => {
|
|
1580
1580
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1581
1581
|
}, r = () => {
|
|
1582
1582
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1587,18 +1587,32 @@ function ze(e) {
|
|
|
1587
1587
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1588
1588
|
}
|
|
1589
1589
|
function F6(e) {
|
|
1590
|
-
const t =
|
|
1590
|
+
const t = D(e), o = V3(e), c = O1(e), r = O1(e), l = Ye(e), u = ze(e);
|
|
1591
1591
|
if (t)
|
|
1592
1592
|
return {
|
|
1593
1593
|
avrState: t,
|
|
1594
1594
|
powerControl: o,
|
|
1595
1595
|
inputControl: c,
|
|
1596
1596
|
surroundSoundModes: r,
|
|
1597
|
-
surroundChannels:
|
|
1597
|
+
surroundChannels: u,
|
|
1598
1598
|
mainVolumeControl: l
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
|
-
|
|
1601
|
+
function H6(e) {
|
|
1602
|
+
const { sendMessage: t } = I(), o = `/device/${e}`, c = D(e), r = w(o, "cameraUp"), l = w(o, "cameraDown"), u = w(o, "cameraLeft"), g = w(o, "cameraRight"), h = w(o, "cameraZoomIn"), f = w(o, "cameraZoomOut"), d = (A) => t("/camera/recallPreset", A);
|
|
1603
|
+
if (c)
|
|
1604
|
+
return {
|
|
1605
|
+
state: c,
|
|
1606
|
+
zoomIn: h,
|
|
1607
|
+
zoomOut: f,
|
|
1608
|
+
up: r,
|
|
1609
|
+
down: l,
|
|
1610
|
+
left: u,
|
|
1611
|
+
right: g,
|
|
1612
|
+
recallPreset: d
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
const K6 = ({ className: e }) => {
|
|
1602
1616
|
const [t, o] = Y();
|
|
1603
1617
|
return x1(() => {
|
|
1604
1618
|
setInterval(() => {
|
|
@@ -1610,59 +1624,63 @@ const H6 = ({ className: e }) => {
|
|
|
1610
1624
|
" new change"
|
|
1611
1625
|
] });
|
|
1612
1626
|
};
|
|
1613
|
-
function
|
|
1614
|
-
const { sendMessage: t } =
|
|
1615
|
-
return o ? { state: o, recallPreset: (
|
|
1616
|
-
t(`${c}/presets/recall`, { deviceKey:
|
|
1617
|
-
}, savePresets: (
|
|
1618
|
-
t(`${c}/presets/save`,
|
|
1627
|
+
function q6(e) {
|
|
1628
|
+
const { sendMessage: t } = I(), o = D(e), c = `/device/${e}`;
|
|
1629
|
+
return o ? { state: o, recallPreset: (u, g) => {
|
|
1630
|
+
t(`${c}/presets/recall`, { deviceKey: u, preset: g });
|
|
1631
|
+
}, savePresets: (u) => {
|
|
1632
|
+
t(`${c}/presets/save`, u);
|
|
1619
1633
|
} } : void 0;
|
|
1620
1634
|
}
|
|
1621
|
-
function
|
|
1622
|
-
const t =
|
|
1635
|
+
function G6(e) {
|
|
1636
|
+
const t = D(e);
|
|
1623
1637
|
if (t)
|
|
1624
1638
|
return { endpointState: t };
|
|
1625
1639
|
}
|
|
1626
|
-
function G6(e) {
|
|
1627
|
-
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");
|
|
1628
|
-
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: v, exit: g };
|
|
1629
|
-
}
|
|
1630
1640
|
function Y6(e) {
|
|
1631
|
-
const t =
|
|
1632
|
-
|
|
1641
|
+
const t = D(e);
|
|
1642
|
+
if (t)
|
|
1643
|
+
return {
|
|
1644
|
+
phoneNumber: t.phoneNumber
|
|
1645
|
+
};
|
|
1633
1646
|
}
|
|
1634
1647
|
function z6(e) {
|
|
1635
|
-
const t =
|
|
1636
|
-
|
|
1648
|
+
const { sendMessage: t } = I(), o = D(e), c = X(() => {
|
|
1649
|
+
const r = `/device/${e}`;
|
|
1650
|
+
return { setEntry: (u, g, h) => t(`${r}/setEntry`, { index: u, name: g, number: h }) };
|
|
1651
|
+
}, [e, t]);
|
|
1652
|
+
if (o)
|
|
1637
1653
|
return {
|
|
1638
|
-
|
|
1654
|
+
phonebookEntries: o.phonebookEntries ?? [],
|
|
1655
|
+
...c
|
|
1639
1656
|
};
|
|
1640
1657
|
}
|
|
1641
1658
|
function J6(e) {
|
|
1642
|
-
const t =
|
|
1643
|
-
|
|
1644
|
-
return t.deviceInfo || void 0;
|
|
1659
|
+
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"), u = w(t, "info"), g = w(t, "exit");
|
|
1660
|
+
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: u, exit: g };
|
|
1645
1661
|
}
|
|
1646
1662
|
function X6(e) {
|
|
1647
|
-
const t = `/device/${e}`, o = w(t, "
|
|
1648
|
-
return {
|
|
1663
|
+
const t = `/device/${e}`, o = w(t, "red"), c = w(t, "green"), r = w(t, "yellow"), l = w(t, "blue");
|
|
1664
|
+
return { red: o, green: c, yellow: r, blue: l };
|
|
1649
1665
|
}
|
|
1650
1666
|
function Q6(e) {
|
|
1651
|
-
const
|
|
1652
|
-
if (
|
|
1667
|
+
const t = D(e);
|
|
1668
|
+
if (t)
|
|
1653
1669
|
return {
|
|
1654
|
-
|
|
1655
|
-
zoomIn: h,
|
|
1656
|
-
zoomOut: f,
|
|
1657
|
-
up: r,
|
|
1658
|
-
down: l,
|
|
1659
|
-
left: v,
|
|
1660
|
-
right: g,
|
|
1661
|
-
recallPreset: u
|
|
1670
|
+
communicationMonitorState: t
|
|
1662
1671
|
};
|
|
1663
1672
|
}
|
|
1664
1673
|
function N6(e) {
|
|
1665
|
-
const
|
|
1674
|
+
const t = D(e);
|
|
1675
|
+
if (t)
|
|
1676
|
+
return t.deviceInfo || void 0;
|
|
1677
|
+
}
|
|
1678
|
+
function et(e) {
|
|
1679
|
+
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"), u = w(t, "select"), g = w(t, "menu"), h = w(t, "exit");
|
|
1680
|
+
return { up: o, down: c, left: r, right: l, select: u, menu: g, exit: h };
|
|
1681
|
+
}
|
|
1682
|
+
function tt(e) {
|
|
1683
|
+
const { sendMessage: t } = I();
|
|
1666
1684
|
return { recallPreset: (c) => {
|
|
1667
1685
|
t(
|
|
1668
1686
|
`/device/${e}/recallPreset`,
|
|
@@ -1670,12 +1688,12 @@ function N6(e) {
|
|
|
1670
1688
|
);
|
|
1671
1689
|
} };
|
|
1672
1690
|
}
|
|
1673
|
-
function
|
|
1691
|
+
function nt(e) {
|
|
1674
1692
|
const t = `/device/${e}`, o = w(t, "dvrList"), c = w(t, "record");
|
|
1675
1693
|
return { dvrList: o, record: c };
|
|
1676
1694
|
}
|
|
1677
|
-
function
|
|
1678
|
-
const { sendMessage: t } =
|
|
1695
|
+
function ot(e) {
|
|
1696
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1679
1697
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1680
1698
|
t(`/device/${e}/setAutoMode`, null);
|
|
1681
1699
|
}, setManualMode: () => {
|
|
@@ -1688,8 +1706,8 @@ function tt(e) {
|
|
|
1688
1706
|
t(`/device/${e}/setRoomCombinationScenario`, h);
|
|
1689
1707
|
} } : void 0;
|
|
1690
1708
|
}
|
|
1691
|
-
function
|
|
1692
|
-
const { sendMessage: t } =
|
|
1709
|
+
function st(e) {
|
|
1710
|
+
const { sendMessage: t } = I(), o = `/device/${e}`, c = D(e);
|
|
1693
1711
|
return c ? {
|
|
1694
1712
|
state: c,
|
|
1695
1713
|
selectCamera: (l) => {
|
|
@@ -1697,94 +1715,102 @@ function nt(e) {
|
|
|
1697
1715
|
}
|
|
1698
1716
|
} : void 0;
|
|
1699
1717
|
}
|
|
1700
|
-
function
|
|
1701
|
-
const t =
|
|
1718
|
+
function ct(e) {
|
|
1719
|
+
const { sendMessage: t } = I();
|
|
1720
|
+
return X(() => ({
|
|
1721
|
+
dial: (l) => t(`${e}/dial`, { value: l }),
|
|
1722
|
+
endAllCalls: () => t(`${e}/endAllCalls`, null),
|
|
1723
|
+
sendDtmf: (l) => t(`${e}/dtmf`, { value: l })
|
|
1724
|
+
}), [e, t]);
|
|
1725
|
+
}
|
|
1726
|
+
function rt(e) {
|
|
1727
|
+
const t = D(e);
|
|
1702
1728
|
if (t)
|
|
1703
1729
|
return { state: t };
|
|
1704
1730
|
}
|
|
1705
|
-
function
|
|
1706
|
-
const { sendMessage: t, sendSimpleMessage: o } =
|
|
1731
|
+
function lt(e) {
|
|
1732
|
+
const { sendMessage: t, sendSimpleMessage: o } = I(), c = D(e), r = ne(e), l = c || r;
|
|
1707
1733
|
return l ? {
|
|
1708
1734
|
levelState: l,
|
|
1709
|
-
setLevel: (
|
|
1710
|
-
muteToggle: (
|
|
1711
|
-
muteOn: (
|
|
1712
|
-
muteOff: (
|
|
1735
|
+
setLevel: (d, A) => o(`${d}/level`, A),
|
|
1736
|
+
muteToggle: (d) => t(`${d}/muteToggle`, null),
|
|
1737
|
+
muteOn: (d) => t(`${d}/muteOn`, null),
|
|
1738
|
+
muteOff: (d) => t(`${d}/muteOff`, null)
|
|
1713
1739
|
} : void 0;
|
|
1714
1740
|
}
|
|
1715
|
-
function
|
|
1716
|
-
const { sendMessage: t } =
|
|
1741
|
+
function it(e) {
|
|
1742
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1717
1743
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1718
1744
|
t(`/device/${e}/selectScene`, r);
|
|
1719
1745
|
} } : void 0;
|
|
1720
1746
|
}
|
|
1721
|
-
function
|
|
1722
|
-
const { sendMessage: t } =
|
|
1747
|
+
function at(e) {
|
|
1748
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1723
1749
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1724
1750
|
t(`/device/${e}/route`, r);
|
|
1725
1751
|
} } : void 0;
|
|
1726
1752
|
}
|
|
1727
|
-
function
|
|
1728
|
-
const { sendMessage: t } =
|
|
1753
|
+
function ut(e) {
|
|
1754
|
+
const { sendMessage: t } = I();
|
|
1729
1755
|
return { closeApp: () => {
|
|
1730
1756
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1731
1757
|
} };
|
|
1732
1758
|
}
|
|
1733
|
-
function
|
|
1734
|
-
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"),
|
|
1759
|
+
function dt(e) {
|
|
1760
|
+
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"), u = w(t, "num4"), g = w(t, "num5"), h = w(t, "num6"), f = w(t, "num7"), d = w(t, "num8"), A = w(t, "num9"), F = w(t, "numDash"), a = w(t, "numEnter");
|
|
1735
1761
|
return {
|
|
1736
1762
|
digit0: o,
|
|
1737
1763
|
digit1: c,
|
|
1738
1764
|
digit2: r,
|
|
1739
1765
|
digit3: l,
|
|
1740
|
-
digit4:
|
|
1766
|
+
digit4: u,
|
|
1741
1767
|
digit5: g,
|
|
1742
1768
|
digit6: h,
|
|
1743
1769
|
digit7: f,
|
|
1744
|
-
digit8:
|
|
1745
|
-
digit9:
|
|
1770
|
+
digit8: d,
|
|
1771
|
+
digit9: A,
|
|
1746
1772
|
keypadAccessoryButton1: F,
|
|
1747
1773
|
keypadAccessoryButton2: a
|
|
1748
1774
|
};
|
|
1749
1775
|
}
|
|
1750
|
-
function
|
|
1751
|
-
const { sendMessage: t } =
|
|
1776
|
+
function vt(e) {
|
|
1777
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1752
1778
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1753
1779
|
t(`/device/${e}/raise`, null);
|
|
1754
1780
|
}, lower: () => {
|
|
1755
1781
|
t(`/device/${e}/lower`, null);
|
|
1756
1782
|
} } : void 0;
|
|
1757
1783
|
}
|
|
1758
|
-
function
|
|
1759
|
-
const { sendMessage: t } =
|
|
1784
|
+
function ht(e) {
|
|
1785
|
+
const { sendMessage: t } = I(), o = S1(e);
|
|
1760
1786
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1761
1787
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1762
1788
|
} } : void 0;
|
|
1763
1789
|
}
|
|
1764
|
-
function
|
|
1765
|
-
const { sendMessage: t } =
|
|
1790
|
+
function gt(e) {
|
|
1791
|
+
const { sendMessage: t } = I();
|
|
1766
1792
|
return { runDefaultPresentRoute: () => {
|
|
1767
1793
|
t(`/room/${e}/defaultsource`, {});
|
|
1768
1794
|
} };
|
|
1769
1795
|
}
|
|
1770
|
-
function
|
|
1771
|
-
const { sendMessage: t } =
|
|
1796
|
+
function ft(e) {
|
|
1797
|
+
const { sendMessage: t } = I();
|
|
1772
1798
|
return { runDirectRoute: (c) => {
|
|
1773
1799
|
t(`/room/${e}/directRoute`, c);
|
|
1774
1800
|
} };
|
|
1775
1801
|
}
|
|
1776
|
-
function
|
|
1777
|
-
const { sendMessage: t } =
|
|
1778
|
-
return { routingState:
|
|
1802
|
+
function wt(e) {
|
|
1803
|
+
const { sendMessage: t } = I();
|
|
1804
|
+
return { routingState: D(e), runRoute: (r) => {
|
|
1779
1805
|
t(`/room/${e}/source`, r);
|
|
1780
1806
|
} };
|
|
1781
1807
|
}
|
|
1782
|
-
function
|
|
1808
|
+
function mt(e) {
|
|
1783
1809
|
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown");
|
|
1784
1810
|
return { dvrList: o, replay: c };
|
|
1785
1811
|
}
|
|
1786
|
-
function
|
|
1787
|
-
const { sendMessage: t } =
|
|
1812
|
+
function pt(e) {
|
|
1813
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1788
1814
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1789
1815
|
t(`/device/${e}/shadeUp`, null);
|
|
1790
1816
|
}, shadeDown: () => {
|
|
@@ -1793,8 +1819,8 @@ function ft(e) {
|
|
|
1793
1819
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1794
1820
|
} } : void 0;
|
|
1795
1821
|
}
|
|
1796
|
-
function
|
|
1797
|
-
const { sendMessage: t } =
|
|
1822
|
+
function Mt(e) {
|
|
1823
|
+
const { sendMessage: t } = I(), o = S1(e);
|
|
1798
1824
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
|
|
1799
1825
|
t(`/room/${e}/setShutdownPromptSeconds`, g);
|
|
1800
1826
|
}, shutdownStart: () => {
|
|
@@ -1805,28 +1831,28 @@ function wt(e) {
|
|
|
1805
1831
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1806
1832
|
} } : void 0;
|
|
1807
1833
|
}
|
|
1808
|
-
function
|
|
1809
|
-
const { sendMessage: t } =
|
|
1834
|
+
function xt(e) {
|
|
1835
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1810
1836
|
return o ? { switchedOutputState: o, on: () => {
|
|
1811
1837
|
t(`/device/${e}/on`, null);
|
|
1812
1838
|
}, off: () => {
|
|
1813
1839
|
t(`/device/${e}/off`, null);
|
|
1814
1840
|
} } : void 0;
|
|
1815
1841
|
}
|
|
1816
|
-
function
|
|
1817
|
-
const { sendMessage: t } =
|
|
1842
|
+
function Zt(e) {
|
|
1843
|
+
const { sendMessage: t } = I(), o = S1(e);
|
|
1818
1844
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1819
1845
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1820
|
-
}, setPassword: (l,
|
|
1821
|
-
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword:
|
|
1846
|
+
}, setPassword: (l, u) => {
|
|
1847
|
+
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: u });
|
|
1822
1848
|
} } : void 0;
|
|
1823
1849
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const { sendMessage: t } =
|
|
1850
|
+
function St(e) {
|
|
1851
|
+
const { sendMessage: t } = I(), o = D(e);
|
|
1826
1852
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1827
1853
|
}
|
|
1828
|
-
function
|
|
1829
|
-
const { sendMessage: t } =
|
|
1854
|
+
function jt(e) {
|
|
1855
|
+
const { sendMessage: t } = I(), o = D(e), c = (r) => {
|
|
1830
1856
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1831
1857
|
};
|
|
1832
1858
|
return {
|
|
@@ -1834,21 +1860,21 @@ function xt(e) {
|
|
|
1834
1860
|
saveTheme: c
|
|
1835
1861
|
};
|
|
1836
1862
|
}
|
|
1837
|
-
function
|
|
1838
|
-
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"),
|
|
1863
|
+
function Ct(e) {
|
|
1864
|
+
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"), u = w(t, "nextTrack"), g = w(t, "rewind"), h = w(t, "ffwd"), f = w(t, "record");
|
|
1839
1865
|
return {
|
|
1840
1866
|
play: o,
|
|
1841
1867
|
pause: c,
|
|
1842
1868
|
stop: r,
|
|
1843
1869
|
prevTrack: l,
|
|
1844
|
-
nextTrack:
|
|
1870
|
+
nextTrack: u,
|
|
1845
1871
|
rewind: g,
|
|
1846
1872
|
fastForward: h,
|
|
1847
1873
|
record: f
|
|
1848
1874
|
};
|
|
1849
1875
|
}
|
|
1850
|
-
function
|
|
1851
|
-
const t =
|
|
1876
|
+
function bt(e) {
|
|
1877
|
+
const t = D(e), { sendMessage: o } = I();
|
|
1852
1878
|
return t ? {
|
|
1853
1879
|
touchpanelState: t,
|
|
1854
1880
|
appControl: { hideApp: () => {
|
|
@@ -1863,8 +1889,8 @@ function St(e) {
|
|
|
1863
1889
|
} }
|
|
1864
1890
|
} : void 0;
|
|
1865
1891
|
}
|
|
1866
|
-
function
|
|
1867
|
-
const t =
|
|
1892
|
+
function yt(e) {
|
|
1893
|
+
const t = D(e), o = V3(e), c = O1(e);
|
|
1868
1894
|
if (!t) return;
|
|
1869
1895
|
const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1870
1896
|
return {
|
|
@@ -1874,37 +1900,37 @@ function jt(e) {
|
|
|
1874
1900
|
powerFb: { powerOnFb: r, powerOffFb: l }
|
|
1875
1901
|
};
|
|
1876
1902
|
}
|
|
1877
|
-
function
|
|
1903
|
+
function It(e) {
|
|
1878
1904
|
const t = `/device/${e}`;
|
|
1879
1905
|
return j1(t);
|
|
1880
1906
|
}
|
|
1881
|
-
const
|
|
1907
|
+
const Rt = ({
|
|
1882
1908
|
config: e
|
|
1883
1909
|
}, t = !0) => {
|
|
1884
|
-
const { sendMessage: o } =
|
|
1885
|
-
var
|
|
1910
|
+
const { sendMessage: o } = I(), c = u1(!1), r = X(() => {
|
|
1911
|
+
var u, g, h, f;
|
|
1886
1912
|
if (!e)
|
|
1887
1913
|
return;
|
|
1888
1914
|
const l = /* @__PURE__ */ new Set();
|
|
1889
|
-
if (e.destinations && Object.values(e.destinations).forEach((
|
|
1890
|
-
l.add(
|
|
1891
|
-
}), e.destinationList && Object.values(e.destinationList).forEach((
|
|
1892
|
-
l.add(
|
|
1893
|
-
}), e.audioControlPointList && Object.values((
|
|
1894
|
-
(
|
|
1895
|
-
|
|
1915
|
+
if (e.destinations && Object.values(e.destinations).forEach((d) => {
|
|
1916
|
+
l.add(d);
|
|
1917
|
+
}), e.destinationList && Object.values(e.destinationList).forEach((d) => {
|
|
1918
|
+
l.add(d.sinkKey);
|
|
1919
|
+
}), e.audioControlPointList && Object.values((u = e.audioControlPointList) == null ? void 0 : u.levelControls).forEach(
|
|
1920
|
+
(d) => {
|
|
1921
|
+
d.itemKey ? l.add(d.parentDeviceKey + "--" + d.itemKey) : l.add(d.parentDeviceKey);
|
|
1896
1922
|
}
|
|
1897
|
-
), (g = e.touchpanelKeys) == null || g.forEach((
|
|
1898
|
-
l.add(
|
|
1899
|
-
}), (h = e.environmentalDevices) == null || h.forEach((
|
|
1900
|
-
|
|
1901
|
-
}), (f = e.accessoryDeviceKeys) == null || f.forEach((
|
|
1902
|
-
l.add(
|
|
1903
|
-
}), 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((
|
|
1904
|
-
l.add(
|
|
1923
|
+
), (g = e.touchpanelKeys) == null || g.forEach((d) => {
|
|
1924
|
+
l.add(d);
|
|
1925
|
+
}), (h = e.environmentalDevices) == null || h.forEach((d) => {
|
|
1926
|
+
d.deviceKey && l.add(d.deviceKey);
|
|
1927
|
+
}), (f = e.accessoryDeviceKeys) == null || f.forEach((d) => {
|
|
1928
|
+
l.add(d);
|
|
1929
|
+
}), 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) => {
|
|
1930
|
+
l.add(d);
|
|
1905
1931
|
}), e.sourceList)
|
|
1906
|
-
for (const
|
|
1907
|
-
|
|
1932
|
+
for (const d of Object.values(e.sourceList))
|
|
1933
|
+
d.sourceKey && d.sourceKey !== "$off" && l.add(d.sourceKey);
|
|
1908
1934
|
return l;
|
|
1909
1935
|
}, [e]);
|
|
1910
1936
|
return x1(() => {
|
|
@@ -1913,41 +1939,41 @@ const bt = ({
|
|
|
1913
1939
|
}), c.current = !0);
|
|
1914
1940
|
}, [r, t, o]), r;
|
|
1915
1941
|
};
|
|
1916
|
-
function
|
|
1942
|
+
function Et(e, t) {
|
|
1917
1943
|
const [o, c] = Y(!1), [r, l] = Y(!1);
|
|
1918
1944
|
return Z3(() => {
|
|
1919
|
-
const { current:
|
|
1920
|
-
const h =
|
|
1945
|
+
const { current: u } = e, g = () => {
|
|
1946
|
+
const h = u && u.scrollHeight > u.clientHeight, f = u && u.scrollWidth > u.clientWidth;
|
|
1921
1947
|
l(h ?? !1), c(f ?? !1), t && t(h ?? !1, f ?? !1);
|
|
1922
1948
|
};
|
|
1923
|
-
|
|
1949
|
+
u && g();
|
|
1924
1950
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1925
1951
|
}
|
|
1926
|
-
function
|
|
1952
|
+
function Tt(e, t) {
|
|
1927
1953
|
const o = `/room/${e}/volumes/${t}`;
|
|
1928
1954
|
return j1(o);
|
|
1929
1955
|
}
|
|
1930
|
-
function
|
|
1956
|
+
function Dt(e, t) {
|
|
1931
1957
|
const o = te(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1932
1958
|
return W3(c, o);
|
|
1933
1959
|
}
|
|
1934
|
-
function
|
|
1960
|
+
function _t(e) {
|
|
1935
1961
|
var g, h;
|
|
1936
1962
|
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) => {
|
|
1937
|
-
const { current:
|
|
1938
|
-
|
|
1939
|
-
},
|
|
1940
|
-
const { current:
|
|
1941
|
-
|
|
1963
|
+
const { current: d } = e;
|
|
1964
|
+
d && (console.log(d.scrollLeft), d.scrollLeft += f, console.log(d.scrollLeft));
|
|
1965
|
+
}, u = (f) => {
|
|
1966
|
+
const { current: d } = e;
|
|
1967
|
+
d && (console.log(d.scrollTop), d.scrollTop += f, console.log(d.scrollTop));
|
|
1942
1968
|
};
|
|
1943
1969
|
return Z3(() => {
|
|
1944
|
-
const { current: f } = e,
|
|
1970
|
+
const { current: f } = e, d = () => {
|
|
1945
1971
|
o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
|
|
1946
1972
|
};
|
|
1947
|
-
f &&
|
|
1948
|
-
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical:
|
|
1973
|
+
f && d();
|
|
1974
|
+
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: u };
|
|
1949
1975
|
}
|
|
1950
|
-
function
|
|
1976
|
+
function At(e) {
|
|
1951
1977
|
const t = W1();
|
|
1952
1978
|
return [() => {
|
|
1953
1979
|
t(O.addSyncState(e));
|
|
@@ -1955,8 +1981,8 @@ function Tt(e) {
|
|
|
1955
1981
|
t(O.removeSyncState(e));
|
|
1956
1982
|
}, Ze(e)];
|
|
1957
1983
|
}
|
|
1958
|
-
function
|
|
1959
|
-
const { sendMessage: e } =
|
|
1984
|
+
function $t() {
|
|
1985
|
+
const { sendMessage: e } = I();
|
|
1960
1986
|
return {
|
|
1961
1987
|
reboot: () => {
|
|
1962
1988
|
e("/system/reboot", null);
|
|
@@ -1966,7 +1992,7 @@ function Dt() {
|
|
|
1966
1992
|
}
|
|
1967
1993
|
};
|
|
1968
1994
|
}
|
|
1969
|
-
function
|
|
1995
|
+
function Lt() {
|
|
1970
1996
|
const [e, t] = Y(), [o, c] = Y();
|
|
1971
1997
|
function r() {
|
|
1972
1998
|
t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
@@ -1981,7 +2007,7 @@ function _t() {
|
|
|
1981
2007
|
return () => clearInterval(l);
|
|
1982
2008
|
}, []), { date: e, time: o };
|
|
1983
2009
|
}
|
|
1984
|
-
const
|
|
2010
|
+
const Pt = () => {
|
|
1985
2011
|
const [e, t] = Y(!1), o = y2(), c = I2();
|
|
1986
2012
|
let r;
|
|
1987
2013
|
return R2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
|
|
@@ -2004,7 +2030,7 @@ const Lt = () => {
|
|
|
2004
2030
|
),
|
|
2005
2031
|
e && /* @__PURE__ */ n.jsx("p", { children: r })
|
|
2006
2032
|
] });
|
|
2007
|
-
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18",
|
|
2033
|
+
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", L1 = {
|
|
2008
2034
|
iconbtn: Je,
|
|
2009
2035
|
iconbtnvert: Xe,
|
|
2010
2036
|
iconsm: Qe
|
|
@@ -2015,45 +2041,45 @@ const Lt = () => {
|
|
|
2015
2041
|
className: c,
|
|
2016
2042
|
iconClassName: r = "",
|
|
2017
2043
|
otherContentClassName: l = "",
|
|
2018
|
-
disabled:
|
|
2044
|
+
disabled: u,
|
|
2019
2045
|
feedback: g,
|
|
2020
2046
|
feedbackClassName: h,
|
|
2021
2047
|
onPointerDown: f,
|
|
2022
|
-
onPointerUp:
|
|
2023
|
-
onPointerLeave:
|
|
2048
|
+
onPointerUp: d,
|
|
2049
|
+
onPointerLeave: A,
|
|
2024
2050
|
...F
|
|
2025
2051
|
}) => {
|
|
2026
|
-
const [a, Z] = Y(!1), C = !
|
|
2052
|
+
const [a, Z] = Y(!1), C = !u && g ? h : "", S = !u && (a || g);
|
|
2027
2053
|
return /* @__PURE__ */ n.jsxs(
|
|
2028
2054
|
"button",
|
|
2029
2055
|
{
|
|
2030
2056
|
type: "button",
|
|
2031
|
-
className: `${
|
|
2057
|
+
className: `${L1.iconbtn} ${o ? L1.iconbtnvert : ""} ${c} ${C}`,
|
|
2032
2058
|
...F,
|
|
2033
|
-
disabled:
|
|
2059
|
+
disabled: u,
|
|
2034
2060
|
onPointerDown: (b) => {
|
|
2035
2061
|
Z(!0), f == null || f(b);
|
|
2036
2062
|
},
|
|
2037
2063
|
onPointerUp: (b) => {
|
|
2038
|
-
Z(!1),
|
|
2064
|
+
Z(!1), d == null || d(b);
|
|
2039
2065
|
},
|
|
2040
2066
|
onPointerLeave: (b) => {
|
|
2041
|
-
Z(!1),
|
|
2067
|
+
Z(!1), A == null || A(b);
|
|
2042
2068
|
},
|
|
2043
2069
|
children: [
|
|
2044
2070
|
e && /* @__PURE__ */ n.jsx(
|
|
2045
2071
|
e,
|
|
2046
2072
|
{
|
|
2047
|
-
className: `${r ||
|
|
2073
|
+
className: `${r || L1.iconsm}`,
|
|
2048
2074
|
active: S,
|
|
2049
|
-
disabled:
|
|
2075
|
+
disabled: u
|
|
2050
2076
|
}
|
|
2051
2077
|
),
|
|
2052
2078
|
l ? /* @__PURE__ */ n.jsx("div", { className: l, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
|
|
2053
2079
|
]
|
|
2054
2080
|
}
|
|
2055
2081
|
);
|
|
2056
|
-
},
|
|
2082
|
+
}, R = ({
|
|
2057
2083
|
ActiveImage: e,
|
|
2058
2084
|
DisabledImage: t,
|
|
2059
2085
|
EnabledImage: o,
|
|
@@ -2064,7 +2090,7 @@ const Lt = () => {
|
|
|
2064
2090
|
className: t = "",
|
|
2065
2091
|
disabled: o
|
|
2066
2092
|
}) => /* @__PURE__ */ n.jsx(
|
|
2067
|
-
|
|
2093
|
+
R,
|
|
2068
2094
|
{
|
|
2069
2095
|
ActiveImage: /* @__PURE__ */ n.jsx(
|
|
2070
2096
|
"svg",
|
|
@@ -2116,7 +2142,7 @@ const Lt = () => {
|
|
|
2116
2142
|
className: t = "",
|
|
2117
2143
|
disabled: o
|
|
2118
2144
|
}) => /* @__PURE__ */ n.jsx(
|
|
2119
|
-
|
|
2145
|
+
R,
|
|
2120
2146
|
{
|
|
2121
2147
|
ActiveImage: (
|
|
2122
2148
|
/* icon-ban-active.svg */
|
|
@@ -2165,7 +2191,7 @@ const Lt = () => {
|
|
|
2165
2191
|
className: t = "",
|
|
2166
2192
|
disabled: o
|
|
2167
2193
|
}) => /* @__PURE__ */ n.jsx(
|
|
2168
|
-
|
|
2194
|
+
R,
|
|
2169
2195
|
{
|
|
2170
2196
|
ActiveImage: /* @__PURE__ */ n.jsx(
|
|
2171
2197
|
"svg",
|
|
@@ -2205,7 +2231,7 @@ const Lt = () => {
|
|
|
2205
2231
|
className: t = "",
|
|
2206
2232
|
disabled: o
|
|
2207
2233
|
}) => /* @__PURE__ */ n.jsx(
|
|
2208
|
-
|
|
2234
|
+
R,
|
|
2209
2235
|
{
|
|
2210
2236
|
ActiveImage: (
|
|
2211
2237
|
/* icon-check-active.svg */
|
|
@@ -2255,7 +2281,7 @@ const Lt = () => {
|
|
|
2255
2281
|
className: t = "",
|
|
2256
2282
|
disabled: o
|
|
2257
2283
|
}) => /* @__PURE__ */ n.jsx(
|
|
2258
|
-
|
|
2284
|
+
R,
|
|
2259
2285
|
{
|
|
2260
2286
|
ActiveImage: (
|
|
2261
2287
|
/* icon-controller-active.svg */
|
|
@@ -2322,7 +2348,7 @@ const Lt = () => {
|
|
|
2322
2348
|
className: t = "",
|
|
2323
2349
|
disabled: o
|
|
2324
2350
|
}) => /* @__PURE__ */ n.jsx(
|
|
2325
|
-
|
|
2351
|
+
R,
|
|
2326
2352
|
{
|
|
2327
2353
|
ActiveImage: (
|
|
2328
2354
|
/* icon-down-active.svg */
|
|
@@ -2371,7 +2397,7 @@ const Lt = () => {
|
|
|
2371
2397
|
className: t = "",
|
|
2372
2398
|
disabled: o
|
|
2373
2399
|
}) => /* @__PURE__ */ n.jsx(
|
|
2374
|
-
|
|
2400
|
+
R,
|
|
2375
2401
|
{
|
|
2376
2402
|
ActiveImage: (
|
|
2377
2403
|
/* icon-elipses-active.svg */
|
|
@@ -2420,7 +2446,7 @@ const Lt = () => {
|
|
|
2420
2446
|
className: t = "",
|
|
2421
2447
|
disabled: o
|
|
2422
2448
|
}) => /* @__PURE__ */ n.jsx(
|
|
2423
|
-
|
|
2449
|
+
R,
|
|
2424
2450
|
{
|
|
2425
2451
|
ActiveImage: (
|
|
2426
2452
|
/* icon-flag-active.svg */
|
|
@@ -2469,7 +2495,7 @@ const Lt = () => {
|
|
|
2469
2495
|
className: t = "",
|
|
2470
2496
|
disabled: o
|
|
2471
2497
|
}) => /* @__PURE__ */ n.jsx(
|
|
2472
|
-
|
|
2498
|
+
R,
|
|
2473
2499
|
{
|
|
2474
2500
|
ActiveImage: (
|
|
2475
2501
|
/* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
|
|
@@ -2518,7 +2544,7 @@ const Lt = () => {
|
|
|
2518
2544
|
className: t = "",
|
|
2519
2545
|
disabled: o
|
|
2520
2546
|
}) => /* @__PURE__ */ n.jsx(
|
|
2521
|
-
|
|
2547
|
+
R,
|
|
2522
2548
|
{
|
|
2523
2549
|
ActiveImage: (
|
|
2524
2550
|
/* icon-glass-active.svg */
|
|
@@ -2568,7 +2594,7 @@ const Lt = () => {
|
|
|
2568
2594
|
className: t = "",
|
|
2569
2595
|
disabled: o
|
|
2570
2596
|
}) => /* @__PURE__ */ n.jsx(
|
|
2571
|
-
|
|
2597
|
+
R,
|
|
2572
2598
|
{
|
|
2573
2599
|
ActiveImage: (
|
|
2574
2600
|
/* icon-hdmi-active.svg */
|
|
@@ -2635,7 +2661,7 @@ const Lt = () => {
|
|
|
2635
2661
|
className: t = "",
|
|
2636
2662
|
disabled: o
|
|
2637
2663
|
}) => /* @__PURE__ */ n.jsx(
|
|
2638
|
-
|
|
2664
|
+
R,
|
|
2639
2665
|
{
|
|
2640
2666
|
ActiveImage: (
|
|
2641
2667
|
/* icon-laptop-active.svg */
|
|
@@ -2684,7 +2710,7 @@ const Lt = () => {
|
|
|
2684
2710
|
className: t = "",
|
|
2685
2711
|
disabled: o
|
|
2686
2712
|
}) => /* @__PURE__ */ n.jsx(
|
|
2687
|
-
|
|
2713
|
+
R,
|
|
2688
2714
|
{
|
|
2689
2715
|
ActiveImage: (
|
|
2690
2716
|
/* icon-left-active.svg */
|
|
@@ -2733,7 +2759,7 @@ const Lt = () => {
|
|
|
2733
2759
|
className: t = "",
|
|
2734
2760
|
disabled: o
|
|
2735
2761
|
}) => /* @__PURE__ */ n.jsx(
|
|
2736
|
-
|
|
2762
|
+
R,
|
|
2737
2763
|
{
|
|
2738
2764
|
ActiveImage: (
|
|
2739
2765
|
/* icon-light-active.svg */
|
|
@@ -2782,7 +2808,7 @@ const Lt = () => {
|
|
|
2782
2808
|
className: t = "",
|
|
2783
2809
|
disabled: o
|
|
2784
2810
|
}) => /* @__PURE__ */ n.jsx(
|
|
2785
|
-
|
|
2811
|
+
R,
|
|
2786
2812
|
{
|
|
2787
2813
|
ActiveImage: (
|
|
2788
2814
|
/* icon-moon-active.svg */
|
|
@@ -2831,7 +2857,7 @@ const Lt = () => {
|
|
|
2831
2857
|
className: t = "",
|
|
2832
2858
|
disabled: o
|
|
2833
2859
|
}) => /* @__PURE__ */ n.jsx(
|
|
2834
|
-
|
|
2860
|
+
R,
|
|
2835
2861
|
{
|
|
2836
2862
|
ActiveImage: (
|
|
2837
2863
|
/* icon-playstation-active.svg */
|
|
@@ -2853,7 +2879,7 @@ const Lt = () => {
|
|
|
2853
2879
|
className: t = "",
|
|
2854
2880
|
disabled: o
|
|
2855
2881
|
}) => /* @__PURE__ */ n.jsx(
|
|
2856
|
-
|
|
2882
|
+
R,
|
|
2857
2883
|
{
|
|
2858
2884
|
ActiveImage: (
|
|
2859
2885
|
/* icon-podium-active.svg */
|
|
@@ -2897,12 +2923,12 @@ const Lt = () => {
|
|
|
2897
2923
|
active: e,
|
|
2898
2924
|
disabled: o
|
|
2899
2925
|
}
|
|
2900
|
-
),
|
|
2926
|
+
), m8 = ({
|
|
2901
2927
|
active: e,
|
|
2902
2928
|
className: t = "",
|
|
2903
2929
|
disabled: o
|
|
2904
2930
|
}) => /* @__PURE__ */ n.jsx(
|
|
2905
|
-
|
|
2931
|
+
R,
|
|
2906
2932
|
{
|
|
2907
2933
|
ActiveImage: (
|
|
2908
2934
|
/* icon-power-active.svg */
|
|
@@ -2946,12 +2972,12 @@ const Lt = () => {
|
|
|
2946
2972
|
active: e,
|
|
2947
2973
|
disabled: o
|
|
2948
2974
|
}
|
|
2949
|
-
),
|
|
2975
|
+
), p8 = ({
|
|
2950
2976
|
active: e,
|
|
2951
2977
|
className: t = "",
|
|
2952
2978
|
disabled: o
|
|
2953
2979
|
}) => /* @__PURE__ */ n.jsx(
|
|
2954
|
-
|
|
2980
|
+
R,
|
|
2955
2981
|
{
|
|
2956
2982
|
ActiveImage: (
|
|
2957
2983
|
/* icon-privacy-active.svg */
|
|
@@ -3000,7 +3026,7 @@ const Lt = () => {
|
|
|
3000
3026
|
className: t = "",
|
|
3001
3027
|
disabled: o
|
|
3002
3028
|
}) => /* @__PURE__ */ n.jsx(
|
|
3003
|
-
|
|
3029
|
+
R,
|
|
3004
3030
|
{
|
|
3005
3031
|
ActiveImage: (
|
|
3006
3032
|
/* icon-question-active.svg */
|
|
@@ -3049,7 +3075,7 @@ const Lt = () => {
|
|
|
3049
3075
|
className: t = "",
|
|
3050
3076
|
disabled: o
|
|
3051
3077
|
}) => /* @__PURE__ */ n.jsx(
|
|
3052
|
-
|
|
3078
|
+
R,
|
|
3053
3079
|
{
|
|
3054
3080
|
ActiveImage: (
|
|
3055
3081
|
/* icon-right-active.svg */
|
|
@@ -3099,7 +3125,7 @@ const Lt = () => {
|
|
|
3099
3125
|
className: t = "",
|
|
3100
3126
|
disabled: o
|
|
3101
3127
|
}) => /* @__PURE__ */ n.jsx(
|
|
3102
|
-
|
|
3128
|
+
R,
|
|
3103
3129
|
{
|
|
3104
3130
|
ActiveImage: (
|
|
3105
3131
|
/* icon-roomPC-active.svg */
|
|
@@ -3166,7 +3192,7 @@ const Lt = () => {
|
|
|
3166
3192
|
className: t = "",
|
|
3167
3193
|
disabled: o
|
|
3168
3194
|
}) => /* @__PURE__ */ n.jsx(
|
|
3169
|
-
|
|
3195
|
+
R,
|
|
3170
3196
|
{
|
|
3171
3197
|
ActiveImage: (
|
|
3172
3198
|
/* icon-shade-active.svg */
|
|
@@ -3215,7 +3241,7 @@ const Lt = () => {
|
|
|
3215
3241
|
className: t = "",
|
|
3216
3242
|
disabled: o
|
|
3217
3243
|
}) => /* @__PURE__ */ n.jsx(
|
|
3218
|
-
|
|
3244
|
+
R,
|
|
3219
3245
|
{
|
|
3220
3246
|
ActiveImage: (
|
|
3221
3247
|
/* icon-sun-active.svg */
|
|
@@ -3259,14 +3285,14 @@ const Lt = () => {
|
|
|
3259
3285
|
active: e,
|
|
3260
3286
|
disabled: o
|
|
3261
3287
|
}
|
|
3262
|
-
),
|
|
3288
|
+
), kt = ({
|
|
3263
3289
|
active: e,
|
|
3264
3290
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
3265
3291
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3266
3292
|
className: t = "",
|
|
3267
3293
|
disabled: o
|
|
3268
3294
|
}) => /* @__PURE__ */ n.jsx(
|
|
3269
|
-
|
|
3295
|
+
R,
|
|
3270
3296
|
{
|
|
3271
3297
|
ActiveImage: void 0,
|
|
3272
3298
|
DisabledImage: void 0,
|
|
@@ -3279,7 +3305,7 @@ const Lt = () => {
|
|
|
3279
3305
|
className: t = "",
|
|
3280
3306
|
disabled: o
|
|
3281
3307
|
}) => /* @__PURE__ */ n.jsx(
|
|
3282
|
-
|
|
3308
|
+
R,
|
|
3283
3309
|
{
|
|
3284
3310
|
ActiveImage: (
|
|
3285
3311
|
/* icon-up-active.svg */
|
|
@@ -3328,7 +3354,7 @@ const Lt = () => {
|
|
|
3328
3354
|
className: t = "",
|
|
3329
3355
|
disabled: o
|
|
3330
3356
|
}) => /* @__PURE__ */ n.jsx(
|
|
3331
|
-
|
|
3357
|
+
R,
|
|
3332
3358
|
{
|
|
3333
3359
|
ActiveImage: (
|
|
3334
3360
|
/* icon-volDown-active.svg */
|
|
@@ -3377,7 +3403,7 @@ const Lt = () => {
|
|
|
3377
3403
|
className: t = "",
|
|
3378
3404
|
disabled: o
|
|
3379
3405
|
}) => /* @__PURE__ */ n.jsx(
|
|
3380
|
-
|
|
3406
|
+
R,
|
|
3381
3407
|
{
|
|
3382
3408
|
ActiveImage: (
|
|
3383
3409
|
/* icon-volMute-active.svg */
|
|
@@ -3426,7 +3452,7 @@ const Lt = () => {
|
|
|
3426
3452
|
className: t = "",
|
|
3427
3453
|
disabled: o
|
|
3428
3454
|
}) => /* @__PURE__ */ n.jsx(
|
|
3429
|
-
|
|
3455
|
+
R,
|
|
3430
3456
|
{
|
|
3431
3457
|
ActiveImage: (
|
|
3432
3458
|
/* icon-volUp-active.svg */
|
|
@@ -3475,7 +3501,7 @@ const Lt = () => {
|
|
|
3475
3501
|
className: t = "",
|
|
3476
3502
|
disabled: o
|
|
3477
3503
|
}) => /* @__PURE__ */ n.jsx(
|
|
3478
|
-
|
|
3504
|
+
R,
|
|
3479
3505
|
{
|
|
3480
3506
|
ActiveImage: (
|
|
3481
3507
|
/* icon-wireless-active.svg */
|
|
@@ -3524,7 +3550,7 @@ const Lt = () => {
|
|
|
3524
3550
|
className: t = "",
|
|
3525
3551
|
disabled: o
|
|
3526
3552
|
}) => /* @__PURE__ */ n.jsx(
|
|
3527
|
-
|
|
3553
|
+
R,
|
|
3528
3554
|
{
|
|
3529
3555
|
ActiveImage: (
|
|
3530
3556
|
/* icon-x-active.svg */
|
|
@@ -3573,7 +3599,7 @@ const Lt = () => {
|
|
|
3573
3599
|
className: t = "",
|
|
3574
3600
|
disabled: o
|
|
3575
3601
|
}) => /* @__PURE__ */ n.jsx(
|
|
3576
|
-
|
|
3602
|
+
R,
|
|
3577
3603
|
{
|
|
3578
3604
|
ActiveImage: (
|
|
3579
3605
|
/* icon-xbox-active.svg */
|
|
@@ -3622,7 +3648,7 @@ const Lt = () => {
|
|
|
3622
3648
|
className: t = "",
|
|
3623
3649
|
disabled: o
|
|
3624
3650
|
}) => /* @__PURE__ */ n.jsx(
|
|
3625
|
-
|
|
3651
|
+
R,
|
|
3626
3652
|
{
|
|
3627
3653
|
ActiveImage: (
|
|
3628
3654
|
/* icon-mic-active.svg */
|
|
@@ -3685,8 +3711,8 @@ const Lt = () => {
|
|
|
3685
3711
|
Moon: g8,
|
|
3686
3712
|
Playstation: f8,
|
|
3687
3713
|
Podium: w8,
|
|
3688
|
-
Power:
|
|
3689
|
-
Privacy:
|
|
3714
|
+
Power: m8,
|
|
3715
|
+
Privacy: p8,
|
|
3690
3716
|
Question: M8,
|
|
3691
3717
|
RightArrow: x8,
|
|
3692
3718
|
RoomPC: Z8,
|
|
@@ -3700,7 +3726,7 @@ const Lt = () => {
|
|
|
3700
3726
|
X: E8,
|
|
3701
3727
|
Xbox: T8
|
|
3702
3728
|
};
|
|
3703
|
-
function
|
|
3729
|
+
function Bt({
|
|
3704
3730
|
name: e,
|
|
3705
3731
|
iconsDictionary: t = _8,
|
|
3706
3732
|
...o
|
|
@@ -3708,13 +3734,13 @@ function At({
|
|
|
3708
3734
|
const c = t[e] ?? null;
|
|
3709
3735
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3710
3736
|
}
|
|
3711
|
-
const
|
|
3712
|
-
grid:
|
|
3713
|
-
header:
|
|
3714
|
-
content:
|
|
3715
|
-
footer:
|
|
3737
|
+
const A8 = "_grid_1cmpp_1", $8 = "_header_1cmpp_11", L8 = "_content_1cmpp_17", P8 = "_footer_1cmpp_23", k8 = "_volume_1cmpp_29", a1 = {
|
|
3738
|
+
grid: A8,
|
|
3739
|
+
header: $8,
|
|
3740
|
+
content: L8,
|
|
3741
|
+
footer: P8,
|
|
3716
3742
|
volume: k8
|
|
3717
|
-
},
|
|
3743
|
+
}, Ot = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
|
|
3718
3744
|
/* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
|
|
3719
3745
|
/* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
|
|
3720
3746
|
r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
|
|
@@ -3723,41 +3749,41 @@ const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", $
|
|
|
3723
3749
|
grid: B8,
|
|
3724
3750
|
header: O8,
|
|
3725
3751
|
content: W8
|
|
3726
|
-
},
|
|
3752
|
+
}, Wt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${M1.grid}`, children: [
|
|
3727
3753
|
/* @__PURE__ */ n.jsx("div", { className: M1.header, children: t }),
|
|
3728
3754
|
c && /* @__PURE__ */ n.jsx("div", { className: M1.leftNav, children: c }),
|
|
3729
3755
|
/* @__PURE__ */ n.jsx("div", { className: M1.content, children: o })
|
|
3730
|
-
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17",
|
|
3756
|
+
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17", P1 = {
|
|
3731
3757
|
grid: V8,
|
|
3732
3758
|
header: U8,
|
|
3733
3759
|
content: F8
|
|
3734
|
-
},
|
|
3735
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3736
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3760
|
+
}, Vt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${P1.grid}`, children: [
|
|
3761
|
+
/* @__PURE__ */ n.jsx("div", { className: P1.header, children: t }),
|
|
3762
|
+
/* @__PURE__ */ n.jsx("div", { className: P1.content, children: o })
|
|
3737
3763
|
] });
|
|
3738
|
-
class
|
|
3764
|
+
class Ut {
|
|
3739
3765
|
constructor() {
|
|
3740
3766
|
q(this, "currentShareText");
|
|
3741
3767
|
q(this, "enabled");
|
|
3742
3768
|
q(this, "isSharing");
|
|
3743
3769
|
}
|
|
3744
3770
|
}
|
|
3745
|
-
function
|
|
3771
|
+
function Ft() {
|
|
3746
3772
|
return console.log(location.pathname), location.pathname;
|
|
3747
3773
|
}
|
|
3748
3774
|
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 || {});
|
|
3749
|
-
class
|
|
3775
|
+
class Ht {
|
|
3750
3776
|
constructor(t, o) {
|
|
3751
3777
|
q(this, "path");
|
|
3752
3778
|
q(this, "handler");
|
|
3753
3779
|
this.path = t, this.handler = o;
|
|
3754
3780
|
}
|
|
3755
3781
|
}
|
|
3756
|
-
const
|
|
3782
|
+
const Kt = "$off";
|
|
3757
3783
|
export {
|
|
3758
|
-
|
|
3784
|
+
K6 as Clock,
|
|
3759
3785
|
H8 as DaysOfWeek,
|
|
3760
|
-
|
|
3786
|
+
Pt as ErrorBox,
|
|
3761
3787
|
Ne as IconButton,
|
|
3762
3788
|
e8 as IconMultiAlert,
|
|
3763
3789
|
t8 as IconMultiBan,
|
|
@@ -3777,14 +3803,14 @@ export {
|
|
|
3777
3803
|
g8 as IconMultiMoon,
|
|
3778
3804
|
f8 as IconMultiPlaystation,
|
|
3779
3805
|
w8 as IconMultiPodium,
|
|
3780
|
-
|
|
3781
|
-
|
|
3806
|
+
m8 as IconMultiPower,
|
|
3807
|
+
p8 as IconMultiPrivacy,
|
|
3782
3808
|
M8 as IconMultiQuestion,
|
|
3783
3809
|
x8 as IconMultiRightArrow,
|
|
3784
3810
|
Z8 as IconMultiRoomPC,
|
|
3785
3811
|
S8 as IconMultiShade,
|
|
3786
3812
|
j8 as IconMultiSun,
|
|
3787
|
-
|
|
3813
|
+
kt as IconMultiTemplate,
|
|
3788
3814
|
C8 as IconMultiUpArrow,
|
|
3789
3815
|
b8 as IconMultiVolDown,
|
|
3790
3816
|
y8 as IconMultiVolMute,
|
|
@@ -3792,50 +3818,50 @@ export {
|
|
|
3792
3818
|
R8 as IconMultiWireless,
|
|
3793
3819
|
E8 as IconMultiX,
|
|
3794
3820
|
T8 as IconMultiXbox,
|
|
3795
|
-
|
|
3796
|
-
|
|
3821
|
+
Ot as MainLayout,
|
|
3822
|
+
Ht as MessageHandler,
|
|
3797
3823
|
W6 as MobileControlProvider,
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3824
|
+
R as MultiStateIconContainer,
|
|
3825
|
+
Bt as NamedIconButton,
|
|
3826
|
+
Ut as ShareState,
|
|
3827
|
+
Wt as TechLayout,
|
|
3828
|
+
Vt as TechPinLayout,
|
|
3829
|
+
L3 as WS_ADD_EVENT_HANDLER,
|
|
3804
3830
|
_3 as WS_CONNECT,
|
|
3805
|
-
|
|
3831
|
+
A3 as WS_DISCONNECT,
|
|
3806
3832
|
k3 as WS_RECONNECT,
|
|
3807
|
-
|
|
3808
|
-
|
|
3833
|
+
P3 as WS_REMOVE_EVENT_HANDLER,
|
|
3834
|
+
$3 as WS_SEND_MESSAGE,
|
|
3809
3835
|
O3 as WebsocketContext,
|
|
3810
3836
|
T3 as appConfigActions,
|
|
3811
3837
|
ke as createWebSocketMiddleware,
|
|
3812
3838
|
w1 as devicesActions,
|
|
3813
|
-
|
|
3839
|
+
Ft as getBaseLocation,
|
|
3814
3840
|
f3 as httpClient,
|
|
3815
3841
|
_8 as iconsDictionary,
|
|
3816
|
-
|
|
3817
|
-
|
|
3842
|
+
Kt as roomOffSourceKey,
|
|
3843
|
+
m1 as roomsActions,
|
|
3818
3844
|
U as runtimeConfigActions,
|
|
3819
3845
|
C3 as selectAllDevices,
|
|
3820
3846
|
T2 as selectApiPath,
|
|
3821
3847
|
E2 as selectAppConfig,
|
|
3822
3848
|
ce as selectClientId,
|
|
3823
3849
|
he as selectCurrentPopoverIdForGroup,
|
|
3824
|
-
|
|
3850
|
+
A2 as selectDeviceByKey,
|
|
3825
3851
|
b3 as selectDeviceInterfaceSupport,
|
|
3826
3852
|
ve as selectDeviceSupportsInterface,
|
|
3827
3853
|
fe as selectError,
|
|
3828
3854
|
y3 as selectInterfacesForDevice,
|
|
3829
|
-
|
|
3855
|
+
pe as selectIsSyncStateValuePresent,
|
|
3830
3856
|
de as selectIsTouchpanel,
|
|
3831
3857
|
D2 as selectLogoPath,
|
|
3832
3858
|
V1 as selectModalVisibility,
|
|
3833
3859
|
_2 as selectPartnerMetadata,
|
|
3834
3860
|
X2 as selectRoomAdvancedSharingActive,
|
|
3835
3861
|
V2 as selectRoomAudioControlPointList,
|
|
3836
|
-
|
|
3862
|
+
P2 as selectRoomByKey,
|
|
3837
3863
|
q2 as selectRoomCodecContentDestinationKey,
|
|
3838
|
-
|
|
3864
|
+
$2 as selectRoomConfiguration,
|
|
3839
3865
|
F2 as selectRoomDestinationList,
|
|
3840
3866
|
U2 as selectRoomDestinations,
|
|
3841
3867
|
ee as selectRoomDisplayStates,
|
|
@@ -3851,13 +3877,13 @@ export {
|
|
|
3851
3877
|
Q2 as selectRoomShareState,
|
|
3852
3878
|
W2 as selectRoomSourceList,
|
|
3853
3879
|
B2 as selectRoomVolume,
|
|
3854
|
-
|
|
3880
|
+
L2 as selectRooms,
|
|
3855
3881
|
ae as selectRuntimeInfo,
|
|
3856
3882
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
3857
3883
|
ge as selectShowPopoverById,
|
|
3858
3884
|
we as selectShowReconnect,
|
|
3859
3885
|
re as selectSystemUuid,
|
|
3860
|
-
|
|
3886
|
+
me as selectTheme,
|
|
3861
3887
|
ue as selectTouchpanelKey,
|
|
3862
3888
|
le as selectUserCode,
|
|
3863
3889
|
oe as selectWsIsConnected,
|
|
@@ -3868,78 +3894,81 @@ export {
|
|
|
3868
3894
|
Q8 as useApiPath,
|
|
3869
3895
|
X8 as useAppConfig,
|
|
3870
3896
|
W1 as useAppDispatch,
|
|
3871
|
-
|
|
3897
|
+
m as useAppSelector,
|
|
3872
3898
|
F6 as useAvrControl,
|
|
3873
3899
|
w as useButtonHeldHeartbeat,
|
|
3874
|
-
|
|
3900
|
+
H6 as useCameraBase,
|
|
3875
3901
|
S6 as useClientId,
|
|
3876
|
-
|
|
3902
|
+
It as useDeviceIBasicVolume,
|
|
3877
3903
|
Ye as useDeviceIBasicVolumeWithFeedback,
|
|
3878
3904
|
E6 as useDeviceInterfaceSupport,
|
|
3879
|
-
|
|
3905
|
+
q6 as useDevicePresetsModel,
|
|
3880
3906
|
D6 as useDeviceSupportsInterface,
|
|
3881
|
-
|
|
3907
|
+
G6 as useEndpoint,
|
|
3882
3908
|
Me as useError,
|
|
3883
|
-
|
|
3909
|
+
Rt as useGetAllDeviceStateFromRoomConfiguration,
|
|
3884
3910
|
t6 as useGetAllDevices,
|
|
3885
3911
|
o6 as useGetAllRooms,
|
|
3886
|
-
|
|
3887
|
-
|
|
3912
|
+
L6 as useGetCurrentPopoverIdForGroup,
|
|
3913
|
+
D as useGetDevice,
|
|
3888
3914
|
V6 as useGetIBasicVolume,
|
|
3889
3915
|
U6 as useGetIBasicVolumeWithFeedback,
|
|
3890
3916
|
s6 as useGetRoom,
|
|
3891
3917
|
M6 as useGetRoomDisplayStates,
|
|
3892
3918
|
x6 as useGetZoomRoomControllerKey,
|
|
3919
|
+
Y6 as useIAudioCodecInfo,
|
|
3920
|
+
z6 as useIAudioCodecPhonebook,
|
|
3893
3921
|
j1 as useIBasicVolume,
|
|
3894
3922
|
W3 as useIBasicVolumeWithFeedback,
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3923
|
+
J6 as useIChannel,
|
|
3924
|
+
X6 as useIColor,
|
|
3925
|
+
Q6 as useICommunicationMonitor,
|
|
3926
|
+
et as useIDPad,
|
|
3927
|
+
N6 as useIDeviceInfoMessenger,
|
|
3928
|
+
tt as useIDspPresets,
|
|
3929
|
+
nt as useIDvr,
|
|
3930
|
+
ot as useIEssentialsRoomCombiner,
|
|
3931
|
+
st as useIHasCameras,
|
|
3932
|
+
ct as useIHasDialer,
|
|
3904
3933
|
V3 as useIHasPowerControl,
|
|
3905
3934
|
O1 as useIHasSelectableItems,
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3935
|
+
rt as useIHumiditySensor,
|
|
3936
|
+
lt as useILevelControls,
|
|
3937
|
+
it as useILightingScenes,
|
|
3938
|
+
at as useIMatrixRouting,
|
|
3939
|
+
ut as useIMcCiscoCodecUserInterfaceAppControl,
|
|
3940
|
+
dt as useINumeric,
|
|
3941
|
+
vt as useIProjectorScreenLiftControl,
|
|
3942
|
+
ht as useIRoomEventSchedule,
|
|
3943
|
+
gt as useIRunDefaultPresentRoute,
|
|
3944
|
+
ft as useIRunDirectRouteAction,
|
|
3945
|
+
wt as useIRunRouteAction,
|
|
3946
|
+
mt as useISetTopBoxControls,
|
|
3947
|
+
pt as useIShadesOpenCloseStop,
|
|
3948
|
+
Mt as useIShutdownPromptTimer,
|
|
3949
|
+
xt as useISwitchedOutput,
|
|
3950
|
+
Zt as useITechPassword,
|
|
3951
|
+
St as useITemperatureSensor,
|
|
3952
|
+
jt as useITheme,
|
|
3953
|
+
Ct as useITransport,
|
|
3925
3954
|
O6 as useInitialize,
|
|
3926
3955
|
T6 as useInterfacesForDevice,
|
|
3927
3956
|
Ze as useIsSyncStateValuePresent,
|
|
3928
3957
|
R6 as useIsTouchpanel,
|
|
3929
3958
|
N8 as useLogoPath,
|
|
3930
|
-
|
|
3931
|
-
|
|
3959
|
+
bt as useMobileControlTouchpanelController,
|
|
3960
|
+
Et as useOverflow,
|
|
3932
3961
|
e6 as usePartnerMetadata,
|
|
3933
3962
|
Ge as usePressHoldRelease,
|
|
3934
|
-
|
|
3963
|
+
m6 as useRoomAdvancedSharingActive,
|
|
3935
3964
|
l6 as useRoomAudioControlPointList,
|
|
3936
3965
|
v6 as useRoomCodecContentDestinationKey,
|
|
3937
3966
|
n6 as useRoomConfiguration,
|
|
3938
3967
|
a6 as useRoomDestinationList,
|
|
3939
3968
|
i6 as useRoomDestinations,
|
|
3940
3969
|
u6 as useRoomEnvironmentalDevices,
|
|
3941
|
-
|
|
3942
|
-
|
|
3970
|
+
Tt as useRoomIBasicVolume,
|
|
3971
|
+
Dt as useRoomIBasicVolumeWithFeedback,
|
|
3943
3972
|
h6 as useRoomInCall,
|
|
3944
3973
|
f6 as useRoomIsCoolingDown,
|
|
3945
3974
|
w6 as useRoomIsOn,
|
|
@@ -3948,32 +3977,32 @@ export {
|
|
|
3948
3977
|
ne as useRoomLevelControls,
|
|
3949
3978
|
c6 as useRoomName,
|
|
3950
3979
|
d6 as useRoomProgramAudioDestinationKey,
|
|
3951
|
-
|
|
3980
|
+
p6 as useRoomShareState,
|
|
3952
3981
|
r6 as useRoomSourceList,
|
|
3953
3982
|
S1 as useRoomState,
|
|
3954
3983
|
te as useRoomVolume,
|
|
3955
3984
|
y6 as useRuntimeInfo,
|
|
3956
|
-
|
|
3985
|
+
_t as useScroll,
|
|
3957
3986
|
b6 as useServerIsRunningOnProcessorHardware,
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3987
|
+
A6 as useShowIncomingCallModal,
|
|
3988
|
+
$6 as useShowModal,
|
|
3989
|
+
P6 as useShowPopoverById,
|
|
3961
3990
|
xe as useShowReconnect,
|
|
3962
3991
|
_6 as useShowShutdownModal,
|
|
3963
|
-
|
|
3964
|
-
|
|
3992
|
+
At as useStateIsSynced,
|
|
3993
|
+
$t as useSystemControl,
|
|
3965
3994
|
j6 as useSystemUuid,
|
|
3966
3995
|
k6 as useTheme,
|
|
3967
|
-
|
|
3996
|
+
Lt as useTimeAndDate,
|
|
3968
3997
|
I6 as useTouchpanelKey,
|
|
3969
|
-
|
|
3998
|
+
yt as useTwoWayDisplayBase,
|
|
3970
3999
|
C6 as useUserCode,
|
|
3971
|
-
|
|
4000
|
+
I as useWebsocketContext,
|
|
3972
4001
|
I3 as useWsIsConnected,
|
|
3973
|
-
|
|
4002
|
+
$e as wsAddEventHandler,
|
|
3974
4003
|
B3 as wsConnect,
|
|
3975
4004
|
B6 as wsDisconnect,
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
4005
|
+
Pe as wsReconnect,
|
|
4006
|
+
Le as wsRemoveEventHandler,
|
|
4007
|
+
Ae as wsSendMessage
|
|
3979
4008
|
};
|