@pepperdash/mobile-control-react-app-core 1.23.1-feat-essentials-v3.2 → 1.24.0-explanation-docs-92-95-96.1
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.
|
@@ -3,21 +3,21 @@ var m2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import M3, { AxiosError as p2 } from "axios";
|
|
5
5
|
import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
|
|
6
|
-
import { createSelector as M, createSlice as
|
|
7
|
-
import x3, { createContext as C2, useEffect as
|
|
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 n1, 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(), m = x2.withTypes(),
|
|
11
|
-
|
|
10
|
+
const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
|
|
11
|
+
Z1,
|
|
12
12
|
(e) => e.config
|
|
13
13
|
), T2 = M(
|
|
14
|
-
|
|
14
|
+
Z1,
|
|
15
15
|
(e) => e.config.apiPath
|
|
16
16
|
), D2 = M(
|
|
17
|
-
|
|
17
|
+
Z1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
19
|
), _2 = M(
|
|
20
|
-
|
|
20
|
+
Z1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
22
|
), X8 = () => m(E2), Q8 = () => m(T2), N8 = () => m(D2), e6 = () => m(_2), j3 = (e) => e.devices, C3 = M(
|
|
23
23
|
j3,
|
|
@@ -29,104 +29,104 @@ const W1 = M2.withTypes(), m = x2.withTypes(), S1 = (e) => e.appConfig, E2 = M(
|
|
|
29
29
|
function _(e) {
|
|
30
30
|
return m(L2(e));
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const $ = (e) => e.rooms, P2 = (e) => M(
|
|
33
|
+
$,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
),
|
|
36
|
-
|
|
35
|
+
), A2 = M(
|
|
36
|
+
$,
|
|
37
37
|
(e) => e
|
|
38
|
-
),
|
|
39
|
-
|
|
38
|
+
), $2 = (e) => M(
|
|
39
|
+
$,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
41
|
), k2 = (e) => M(
|
|
42
|
-
|
|
42
|
+
$,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
45
|
-
|
|
44
|
+
), B2 = (e, t) => M(
|
|
45
|
+
$,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
),
|
|
48
|
-
|
|
47
|
+
), O2 = (e) => M(
|
|
48
|
+
$,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), W2 = (e) => M(
|
|
51
|
-
|
|
51
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
82
82
|
(t) => {
|
|
83
83
|
var o, c, r, l, v, g, h, f;
|
|
84
84
|
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (v = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : v.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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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
|
+
$,
|
|
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;
|
|
@@ -152,16 +152,16 @@ function n6(e) {
|
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function o6() {
|
|
155
|
-
return m(
|
|
155
|
+
return m(A2);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return m(
|
|
157
|
+
function S1(e) {
|
|
158
|
+
return m($2(e));
|
|
159
159
|
}
|
|
160
|
-
const s6 =
|
|
160
|
+
const s6 = S1, c6 = (e) => m(
|
|
161
161
|
k2(e)
|
|
162
162
|
), te = (e, t) => m(
|
|
163
|
-
|
|
164
|
-
), ne = (e) => m(
|
|
163
|
+
B2(e, t)
|
|
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(
|
|
@@ -216,7 +216,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
216
216
|
), fe = M(N, (e) => e.error), we = M(
|
|
217
217
|
N,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), L6 = () => m(V1("showIncomingCallModal")), P6 = (e) => m(V1(e)),
|
|
219
|
+
), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), L6 = () => m(V1("showIncomingCallModal")), P6 = (e) => m(V1(e)), A6 = (e) => m(he(e)), $6 = (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: {
|
|
@@ -225,7 +225,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
225
225
|
},
|
|
226
226
|
popoverVisibility: {},
|
|
227
227
|
syncState: []
|
|
228
|
-
}, R3 =
|
|
228
|
+
}, R3 = d1({
|
|
229
229
|
name: "ui",
|
|
230
230
|
initialState: Se,
|
|
231
231
|
reducers: {
|
|
@@ -271,7 +271,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
271
271
|
e.syncState = [];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
274
|
+
}), O = R3.actions, je = R3.reducer, Ce = {
|
|
275
275
|
config: {
|
|
276
276
|
enableDev: !1,
|
|
277
277
|
apiPath: "",
|
|
@@ -281,7 +281,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
281
281
|
loginMode: "",
|
|
282
282
|
modes: {}
|
|
283
283
|
}
|
|
284
|
-
}, E3 =
|
|
284
|
+
}, E3 = d1({
|
|
285
285
|
name: "appConfig",
|
|
286
286
|
initialState: Ce,
|
|
287
287
|
reducers: {
|
|
@@ -289,7 +289,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
289
289
|
e.config = t.payload;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}), T3 = E3.actions, be = E3.reducer, v3 = {}, k1 =
|
|
292
|
+
}), T3 = E3.actions, be = E3.reducer, v3 = {}, k1 = d1({
|
|
293
293
|
name: "devices",
|
|
294
294
|
initialState: v3,
|
|
295
295
|
reducers: {
|
|
@@ -310,7 +310,7 @@ const s6 = j1, c6 = (e) => m(
|
|
|
310
310
|
return v3;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), w1 = {
|
|
314
314
|
setDeviceState: k1.actions.setDeviceState,
|
|
315
315
|
clearDevices: k1.actions.clearDevices
|
|
316
316
|
}, ye = k1.reducer;
|
|
@@ -329,7 +329,7 @@ function Re(e) {
|
|
|
329
329
|
function Ee(e, t) {
|
|
330
330
|
sessionStorage.setItem(e, t);
|
|
331
331
|
}
|
|
332
|
-
const g3 = {},
|
|
332
|
+
const g3 = {}, B1 = d1({
|
|
333
333
|
name: "rooms",
|
|
334
334
|
initialState: g3,
|
|
335
335
|
reducers: {
|
|
@@ -345,10 +345,10 @@ const g3 = {}, O1 = v1({
|
|
|
345
345
|
return g3;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
349
|
-
setRoomState:
|
|
350
|
-
clearRooms:
|
|
351
|
-
}, Te =
|
|
348
|
+
}), m1 = {
|
|
349
|
+
setRoomState: B1.actions.setRoomState,
|
|
350
|
+
clearRooms: B1.actions.clearRooms
|
|
351
|
+
}, Te = B1.reducer, De = {
|
|
352
352
|
apiVersion: "",
|
|
353
353
|
serverIsRunningOnProcessorHardware: !1,
|
|
354
354
|
websocket: {
|
|
@@ -379,7 +379,7 @@ const g3 = {}, O1 = v1({
|
|
|
379
379
|
userCode: "",
|
|
380
380
|
qrUrl: ""
|
|
381
381
|
}
|
|
382
|
-
}, D3 =
|
|
382
|
+
}, D3 = d1({
|
|
383
383
|
name: "runtimeConfig",
|
|
384
384
|
initialState: De,
|
|
385
385
|
reducers: {
|
|
@@ -414,16 +414,16 @@ const g3 = {}, O1 = v1({
|
|
|
414
414
|
e.touchpanelKey = t.payload;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
}), U = D3.actions, _e = D3.reducer, P1 = M3.create(), _3 = "websocket/connect", L3 = "websocket/disconnect", P3 = "websocket/sendMessage",
|
|
417
|
+
}), U = D3.actions, _e = D3.reducer, P1 = M3.create(), _3 = "websocket/connect", L3 = "websocket/disconnect", P3 = "websocket/sendMessage", A3 = "websocket/addEventHandler", $3 = "websocket/removeEventHandler", k3 = "websocket/reconnect", B3 = () => ({ type: _3 }), B6 = () => ({ type: L3 }), Le = (e, t) => ({
|
|
418
418
|
type: P3,
|
|
419
419
|
payload: { messageType: e, content: t }
|
|
420
420
|
}), Pe = (e, t, o) => ({
|
|
421
|
-
type: $3,
|
|
422
|
-
payload: { eventType: e, key: t, callback: o }
|
|
423
|
-
}), $e = (e, t) => ({
|
|
424
421
|
type: A3,
|
|
422
|
+
payload: { eventType: e, key: t, callback: o }
|
|
423
|
+
}), Ae = (e, t) => ({
|
|
424
|
+
type: $3,
|
|
425
425
|
payload: { eventType: e, key: t }
|
|
426
|
-
}),
|
|
426
|
+
}), $e = () => ({ type: k3 }), ke = () => {
|
|
427
427
|
const e = {
|
|
428
428
|
client: null,
|
|
429
429
|
token: null,
|
|
@@ -432,17 +432,17 @@ const g3 = {}, O1 = v1({
|
|
|
432
432
|
eventHandlers: {}
|
|
433
433
|
}, t = async (a) => {
|
|
434
434
|
try {
|
|
435
|
-
const Z = location.pathname.split("/").filter((
|
|
435
|
+
const Z = location.pathname.split("/").filter((b) => b.length > 0);
|
|
436
436
|
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
437
|
-
const
|
|
437
|
+
const C = `/${Z.join("/")}`, S = await P1.get(
|
|
438
438
|
"/_local-config/_config.local.json",
|
|
439
|
-
{ baseURL:
|
|
439
|
+
{ baseURL: C }
|
|
440
440
|
);
|
|
441
441
|
if (S.status === 200 && S.data) {
|
|
442
|
-
const
|
|
442
|
+
const b = S.data.apiPath;
|
|
443
443
|
a(T3.setAppConfig(S.data));
|
|
444
444
|
const x = await P1.get(
|
|
445
|
-
`${
|
|
445
|
+
`${b}/version`
|
|
446
446
|
);
|
|
447
447
|
x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
|
|
448
448
|
}
|
|
@@ -450,56 +450,47 @@ const g3 = {}, O1 = v1({
|
|
|
450
450
|
console.error("Error getting config", Z);
|
|
451
451
|
}
|
|
452
452
|
return !0;
|
|
453
|
-
}, o = async (a, Z,
|
|
453
|
+
}, o = async (a, Z, C) => {
|
|
454
454
|
try {
|
|
455
455
|
const S = await P1.get(
|
|
456
456
|
`${a}/ui/joinroom?token=${Z}`
|
|
457
457
|
);
|
|
458
|
-
return S.status === 200 && S.data ? (
|
|
458
|
+
return S.status === 200 && S.data ? (C(U.setRoomData(S.data)), S.data) : null;
|
|
459
459
|
} catch (S) {
|
|
460
|
-
return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"),
|
|
461
|
-
|
|
460
|
+
return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
|
|
461
|
+
O.setErrorMessage(
|
|
462
462
|
`Token ${Z} is invalid. Unable to join room`
|
|
463
463
|
)
|
|
464
|
-
), null) : (console.error("Error getting room data", S), S instanceof Error ?
|
|
464
|
+
), null) : (console.error("Error getting room data", S), S instanceof Error ? C(O.setErrorMessage(S.message)) : C(O.setErrorMessage("Error getting room data")), null);
|
|
465
465
|
}
|
|
466
466
|
}, c = (a) => {
|
|
467
467
|
e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
|
|
468
|
-
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(
|
|
468
|
+
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(B3());
|
|
469
469
|
}, 5e3);
|
|
470
470
|
}, r = () => {
|
|
471
471
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
472
472
|
}, l = (a) => {
|
|
473
|
-
a(
|
|
473
|
+
a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState());
|
|
474
474
|
}, v = (a, Z) => {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
if (!Z || !x || !C) {
|
|
475
|
+
const C = a(), S = Z ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected;
|
|
476
|
+
if (!Z || !x || !b) {
|
|
478
477
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
479
478
|
hasRoomKey: !!Z,
|
|
480
479
|
isConnected: x,
|
|
481
|
-
hasClientId: !!
|
|
480
|
+
hasClientId: !!b
|
|
482
481
|
});
|
|
483
482
|
return;
|
|
484
483
|
}
|
|
485
|
-
console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x &&
|
|
486
|
-
"WebSocket middleware: Essentials V3 detected, requesting additional status..."
|
|
487
|
-
), e.client.send(
|
|
488
|
-
JSON.stringify({
|
|
489
|
-
type: `/room/${S}/fullStatus`,
|
|
490
|
-
clientId: C,
|
|
491
|
-
content: null
|
|
492
|
-
})
|
|
493
|
-
)) : e.client.send(
|
|
484
|
+
console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
|
|
494
485
|
JSON.stringify({
|
|
495
486
|
type: `/room/${S}/status`,
|
|
496
|
-
clientId:
|
|
487
|
+
clientId: b,
|
|
497
488
|
content: null
|
|
498
489
|
})
|
|
499
|
-
)
|
|
490
|
+
);
|
|
500
491
|
}, g = async (a, Z) => {
|
|
501
492
|
console.log("WebSocket middleware: Attempting to connect...");
|
|
502
|
-
const
|
|
493
|
+
const C = Z(), { apiPath: S } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
|
|
503
494
|
if (!S || !e.token) {
|
|
504
495
|
console.log(
|
|
505
496
|
"WebSocket middleware: Cannot connect - missing requirements",
|
|
@@ -530,47 +521,47 @@ const g3 = {}, O1 = v1({
|
|
|
530
521
|
return;
|
|
531
522
|
}
|
|
532
523
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
533
|
-
const
|
|
534
|
-
e.client =
|
|
535
|
-
console.log("WebSocket middleware: Connected",
|
|
536
|
-
e.client ===
|
|
524
|
+
const C1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(C1);
|
|
525
|
+
e.client = K, K.onopen = (k) => {
|
|
526
|
+
console.log("WebSocket middleware: Connected", k.type, k.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
527
|
+
e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
|
|
537
528
|
}, 100);
|
|
538
|
-
},
|
|
539
|
-
console.error("WebSocket middleware: Error",
|
|
540
|
-
},
|
|
529
|
+
}, K.onerror = (k) => {
|
|
530
|
+
console.error("WebSocket middleware: Error", k), l(a);
|
|
531
|
+
}, K.onclose = (k) => {
|
|
541
532
|
var D;
|
|
542
533
|
if (console.log(
|
|
543
534
|
"WebSocket middleware: Disconnected",
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
),
|
|
535
|
+
k.reason,
|
|
536
|
+
k.code
|
|
537
|
+
), k.code === 4100) {
|
|
547
538
|
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(a);
|
|
548
539
|
return;
|
|
549
540
|
}
|
|
550
|
-
if (e.waitingToReconnect = !0,
|
|
541
|
+
if (e.waitingToReconnect = !0, k.code === 4e3) {
|
|
551
542
|
console.log("WebSocket middleware: User code changed"), r(), a(
|
|
552
543
|
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
553
544
|
), a(
|
|
554
|
-
|
|
545
|
+
O.setErrorMessage(
|
|
555
546
|
"User code changed. Click reconnect to enter the new code"
|
|
556
547
|
)
|
|
557
548
|
), l(a);
|
|
558
549
|
return;
|
|
559
550
|
}
|
|
560
|
-
if (
|
|
551
|
+
if (k.code === 4002) {
|
|
561
552
|
console.log("WebSocket middleware: Room combination changed"), r(), a(
|
|
562
|
-
|
|
553
|
+
O.setErrorMessage(
|
|
563
554
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
564
555
|
)
|
|
565
556
|
), l(a);
|
|
566
557
|
return;
|
|
567
558
|
}
|
|
568
|
-
if (
|
|
559
|
+
if (k.code === 4001)
|
|
569
560
|
if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
|
|
570
561
|
console.log(
|
|
571
562
|
"WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
|
|
572
563
|
);
|
|
573
|
-
else if (
|
|
564
|
+
else if (b)
|
|
574
565
|
console.log(
|
|
575
566
|
"WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
|
|
576
567
|
);
|
|
@@ -578,7 +569,7 @@ const g3 = {}, O1 = v1({
|
|
|
578
569
|
console.log(
|
|
579
570
|
"WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
|
|
580
571
|
), r(), a(
|
|
581
|
-
|
|
572
|
+
O.setErrorMessage(
|
|
582
573
|
"Processor has disconnected. Click Reconnect to continue."
|
|
583
574
|
)
|
|
584
575
|
), l(a);
|
|
@@ -593,15 +584,15 @@ const g3 = {}, O1 = v1({
|
|
|
593
584
|
return;
|
|
594
585
|
}
|
|
595
586
|
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
|
|
596
|
-
|
|
587
|
+
O.setErrorMessage(
|
|
597
588
|
"Connection lost. Attempting to reconnect..."
|
|
598
589
|
)
|
|
599
|
-
), a(U.setWebsocketIsConnected(!1)), a(
|
|
600
|
-
},
|
|
590
|
+
), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState()), c(a);
|
|
591
|
+
}, K.onmessage = (k) => {
|
|
601
592
|
try {
|
|
602
|
-
const D = JSON.parse(
|
|
593
|
+
const D = JSON.parse(k.data);
|
|
603
594
|
if (D.type === "close") {
|
|
604
|
-
|
|
595
|
+
K.close(4001, D.content);
|
|
605
596
|
return;
|
|
606
597
|
}
|
|
607
598
|
if (D.type.startsWith("/system/"))
|
|
@@ -614,7 +605,7 @@ const g3 = {}, O1 = v1({
|
|
|
614
605
|
);
|
|
615
606
|
break;
|
|
616
607
|
case "/system/roomKey":
|
|
617
|
-
a(
|
|
608
|
+
a(m1.clearRooms()), a(w1.clearDevices()), a(O.clearSyncState()), a(
|
|
618
609
|
U.setCurrentRoomKey(
|
|
619
610
|
D.content
|
|
620
611
|
)
|
|
@@ -649,9 +640,9 @@ const g3 = {}, O1 = v1({
|
|
|
649
640
|
z || console.log(
|
|
650
641
|
"WebSocket middleware: No handlers found for event type",
|
|
651
642
|
D.type
|
|
652
|
-
), z && Object.values(z).forEach((
|
|
643
|
+
), z && Object.values(z).forEach((o1) => {
|
|
653
644
|
try {
|
|
654
|
-
|
|
645
|
+
o1(D);
|
|
655
646
|
} catch (b1) {
|
|
656
647
|
console.error(
|
|
657
648
|
"WebSocket middleware: Event handler error",
|
|
@@ -659,7 +650,7 @@ const g3 = {}, O1 = v1({
|
|
|
659
650
|
);
|
|
660
651
|
}
|
|
661
652
|
});
|
|
662
|
-
} else D.type.startsWith("/room/") ? a(
|
|
653
|
+
} else D.type.startsWith("/room/") ? a(m1.setRoomState(D)) : D.type.startsWith("/device/") && a(w1.setDeviceState(D));
|
|
663
654
|
} catch (D) {
|
|
664
655
|
console.error("WebSocket middleware: Message handling error", D);
|
|
665
656
|
}
|
|
@@ -669,13 +660,13 @@ const g3 = {}, O1 = v1({
|
|
|
669
660
|
}
|
|
670
661
|
}, h = () => {
|
|
671
662
|
e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
|
|
672
|
-
}, f = (a, Z,
|
|
673
|
-
const S =
|
|
674
|
-
e.client &&
|
|
663
|
+
}, f = (a, Z, C) => {
|
|
664
|
+
const S = C(), b = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
|
|
665
|
+
e.client && b ? e.client.send(
|
|
675
666
|
JSON.stringify({ type: a, clientId: x, content: Z })
|
|
676
667
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
677
|
-
}, u = (a, Z,
|
|
678
|
-
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] =
|
|
668
|
+
}, u = (a, Z, C) => {
|
|
669
|
+
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = C, console.log("WebSocket middleware: Event handler added", a, Z);
|
|
679
670
|
}, L = (a, Z) => {
|
|
680
671
|
e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
|
|
681
672
|
"WebSocket middleware: Event handler removed",
|
|
@@ -683,19 +674,19 @@ const g3 = {}, O1 = v1({
|
|
|
683
674
|
Z
|
|
684
675
|
));
|
|
685
676
|
}, F = (a) => {
|
|
686
|
-
const Z = a(), { gatewayAppPath:
|
|
687
|
-
window.location.href = x ? `${
|
|
677
|
+
const Z = a(), { gatewayAppPath: C } = Z.appConfig.config, S = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, W = `${C}?uuid=${b}&roomKey=${S}`;
|
|
678
|
+
window.location.href = x ? `${W}&Code=${x}` : W;
|
|
688
679
|
};
|
|
689
|
-
return (a) => (Z) => (
|
|
690
|
-
const S = Z(
|
|
691
|
-
if (!
|
|
680
|
+
return (a) => (Z) => (C) => {
|
|
681
|
+
const S = Z(C);
|
|
682
|
+
if (!C || typeof C != "object" || !("type" in C))
|
|
692
683
|
return S;
|
|
693
|
-
const
|
|
684
|
+
const b = C;
|
|
694
685
|
return (async () => {
|
|
695
|
-
switch (
|
|
686
|
+
switch (b.type) {
|
|
696
687
|
case _3: {
|
|
697
|
-
let
|
|
698
|
-
|
|
688
|
+
let W = new URLSearchParams(window.location.search).get("token");
|
|
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);
|
|
699
690
|
break;
|
|
700
691
|
}
|
|
701
692
|
case L3:
|
|
@@ -703,39 +694,39 @@ const g3 = {}, O1 = v1({
|
|
|
703
694
|
break;
|
|
704
695
|
case P3:
|
|
705
696
|
f(
|
|
706
|
-
|
|
707
|
-
|
|
697
|
+
b.payload.messageType,
|
|
698
|
+
b.payload.content,
|
|
708
699
|
a.getState
|
|
709
700
|
);
|
|
710
701
|
break;
|
|
711
|
-
case
|
|
702
|
+
case A3:
|
|
712
703
|
u(
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
704
|
+
b.payload.eventType,
|
|
705
|
+
b.payload.key,
|
|
706
|
+
b.payload.callback
|
|
716
707
|
);
|
|
717
708
|
break;
|
|
718
|
-
case
|
|
709
|
+
case $3:
|
|
719
710
|
L(
|
|
720
|
-
|
|
721
|
-
|
|
711
|
+
b.payload.eventType,
|
|
712
|
+
b.payload.key
|
|
722
713
|
);
|
|
723
714
|
break;
|
|
724
715
|
case k3:
|
|
725
716
|
F(a.getState);
|
|
726
717
|
break;
|
|
727
718
|
default:
|
|
728
|
-
if (
|
|
729
|
-
|
|
719
|
+
if (C.type === U.setWebsocketIsConnected.type)
|
|
720
|
+
C.payload === !0 && (console.log(
|
|
730
721
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
731
722
|
), setTimeout(() => v(a.getState), 100));
|
|
732
|
-
else if (
|
|
733
|
-
const x = a.getState(),
|
|
734
|
-
x.runtimeConfig.websocket.isConnected && (
|
|
723
|
+
else if (C.type === U.setRoomData.type) {
|
|
724
|
+
const x = a.getState(), W = C.payload;
|
|
725
|
+
x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
|
|
735
726
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
736
727
|
), setTimeout(() => v(a.getState), 100));
|
|
737
|
-
} else if (
|
|
738
|
-
const x =
|
|
728
|
+
} else if (C.type === U.setCurrentRoomKey.type) {
|
|
729
|
+
const x = C.payload;
|
|
739
730
|
x && (console.log(
|
|
740
731
|
"[WebSocket Middleware] Room changed to:",
|
|
741
732
|
x,
|
|
@@ -748,14 +739,14 @@ const g3 = {}, O1 = v1({
|
|
|
748
739
|
console.error("WebSocket middleware: Error handling action", x);
|
|
749
740
|
}), S;
|
|
750
741
|
};
|
|
751
|
-
},
|
|
742
|
+
}, Be = S2({
|
|
752
743
|
appConfig: be,
|
|
753
744
|
runtimeConfig: _e,
|
|
754
745
|
rooms: Te,
|
|
755
746
|
devices: ye,
|
|
756
747
|
ui: je
|
|
757
|
-
}),
|
|
758
|
-
reducer:
|
|
748
|
+
}), Oe = j2({
|
|
749
|
+
reducer: Be,
|
|
759
750
|
middleware: (e) => e({
|
|
760
751
|
serializableCheck: {
|
|
761
752
|
// Ignore WebSocket actions with callbacks
|
|
@@ -763,7 +754,7 @@ const g3 = {}, O1 = v1({
|
|
|
763
754
|
}
|
|
764
755
|
}).concat(ke())
|
|
765
756
|
}), f3 = M3.create();
|
|
766
|
-
function
|
|
757
|
+
function O6() {
|
|
767
758
|
const e = W1();
|
|
768
759
|
return async () => {
|
|
769
760
|
try {
|
|
@@ -787,7 +778,7 @@ function B6() {
|
|
|
787
778
|
return !0;
|
|
788
779
|
};
|
|
789
780
|
}
|
|
790
|
-
var
|
|
781
|
+
var p1 = { exports: {} }, l1 = {};
|
|
791
782
|
/**
|
|
792
783
|
* @license React
|
|
793
784
|
* react-jsx-runtime.production.min.js
|
|
@@ -799,7 +790,7 @@ var M1 = { exports: {} }, i1 = {};
|
|
|
799
790
|
*/
|
|
800
791
|
var w3;
|
|
801
792
|
function We() {
|
|
802
|
-
if (w3) return
|
|
793
|
+
if (w3) return l1;
|
|
803
794
|
w3 = 1;
|
|
804
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 };
|
|
805
796
|
function v(g, h, f) {
|
|
@@ -809,9 +800,9 @@ function We() {
|
|
|
809
800
|
if (g && g.defaultProps) for (u in h = g.defaultProps, h) L[u] === void 0 && (L[u] = h[u]);
|
|
810
801
|
return { $$typeof: t, type: g, key: F, ref: a, props: L, _owner: r.current };
|
|
811
802
|
}
|
|
812
|
-
return
|
|
803
|
+
return l1.Fragment = o, l1.jsx = v, l1.jsxs = v, l1;
|
|
813
804
|
}
|
|
814
|
-
var
|
|
805
|
+
var i1 = {};
|
|
815
806
|
/**
|
|
816
807
|
* @license React
|
|
817
808
|
* react-jsx-runtime.development.js
|
|
@@ -824,24 +815,24 @@ var a1 = {};
|
|
|
824
815
|
var m3;
|
|
825
816
|
function Ve() {
|
|
826
817
|
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
827
|
-
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"), v = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator,
|
|
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"), v = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, C = "@@iterator";
|
|
828
819
|
function S(s) {
|
|
829
820
|
if (s === null || typeof s != "object")
|
|
830
821
|
return null;
|
|
831
|
-
var i = Z && s[Z] || s[
|
|
822
|
+
var i = Z && s[Z] || s[C];
|
|
832
823
|
return typeof i == "function" ? i : null;
|
|
833
824
|
}
|
|
834
|
-
var
|
|
825
|
+
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
835
826
|
function x(s) {
|
|
836
827
|
{
|
|
837
828
|
for (var i = arguments.length, d = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
838
829
|
d[p - 1] = arguments[p];
|
|
839
|
-
|
|
830
|
+
W("error", s, d);
|
|
840
831
|
}
|
|
841
832
|
}
|
|
842
|
-
function
|
|
833
|
+
function W(s, i, d) {
|
|
843
834
|
{
|
|
844
|
-
var p =
|
|
835
|
+
var p = b.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
845
836
|
E !== "" && (i += "%s", d = d.concat([E]));
|
|
846
837
|
var T = d.map(function(y) {
|
|
847
838
|
return String(y);
|
|
@@ -849,14 +840,14 @@ function Ve() {
|
|
|
849
840
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
850
841
|
}
|
|
851
842
|
}
|
|
852
|
-
var
|
|
853
|
-
|
|
843
|
+
var C1 = !1, K = !1, k = !1, D = !1, z = !1, o1;
|
|
844
|
+
o1 = Symbol.for("react.module.reference");
|
|
854
845
|
function b1(s) {
|
|
855
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === u || D || s === a ||
|
|
846
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === u || D || s === a || C1 || K || k || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === L || s.$$typeof === v || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
|
|
856
847
|
// types supported by any Flight configuration anywhere since
|
|
857
848
|
// we don't know which Flight build this will end up being used
|
|
858
849
|
// with.
|
|
859
|
-
s.$$typeof ===
|
|
850
|
+
s.$$typeof === o1 || s.getModuleId !== void 0));
|
|
860
851
|
}
|
|
861
852
|
function U3(s, i, d) {
|
|
862
853
|
var p = s.displayName;
|
|
@@ -913,13 +904,13 @@ function Ve() {
|
|
|
913
904
|
}
|
|
914
905
|
return null;
|
|
915
906
|
}
|
|
916
|
-
var X = Object.assign,
|
|
907
|
+
var X = Object.assign, s1 = 0, F1, H1, K1, q1, G1, Y1, z1;
|
|
917
908
|
function J1() {
|
|
918
909
|
}
|
|
919
910
|
J1.__reactDisabledLog = !0;
|
|
920
911
|
function F3() {
|
|
921
912
|
{
|
|
922
|
-
if (
|
|
913
|
+
if (s1 === 0) {
|
|
923
914
|
F1 = console.log, H1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
|
|
924
915
|
var s = {
|
|
925
916
|
configurable: !0,
|
|
@@ -937,12 +928,12 @@ function Ve() {
|
|
|
937
928
|
groupEnd: s
|
|
938
929
|
});
|
|
939
930
|
}
|
|
940
|
-
|
|
931
|
+
s1++;
|
|
941
932
|
}
|
|
942
933
|
}
|
|
943
934
|
function H3() {
|
|
944
935
|
{
|
|
945
|
-
if (
|
|
936
|
+
if (s1--, s1 === 0) {
|
|
946
937
|
var s = {
|
|
947
938
|
configurable: !0,
|
|
948
939
|
enumerable: !0,
|
|
@@ -972,11 +963,11 @@ function Ve() {
|
|
|
972
963
|
})
|
|
973
964
|
});
|
|
974
965
|
}
|
|
975
|
-
|
|
966
|
+
s1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
976
967
|
}
|
|
977
968
|
}
|
|
978
|
-
var y1 =
|
|
979
|
-
function
|
|
969
|
+
var y1 = b.ReactCurrentDispatcher, I1;
|
|
970
|
+
function v1(s, i, d) {
|
|
980
971
|
{
|
|
981
972
|
if (I1 === void 0)
|
|
982
973
|
try {
|
|
@@ -989,16 +980,16 @@ function Ve() {
|
|
|
989
980
|
` + I1 + s;
|
|
990
981
|
}
|
|
991
982
|
}
|
|
992
|
-
var R1 = !1,
|
|
983
|
+
var R1 = !1, h1;
|
|
993
984
|
{
|
|
994
985
|
var K3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
995
|
-
|
|
986
|
+
h1 = new K3();
|
|
996
987
|
}
|
|
997
988
|
function X1(s, i) {
|
|
998
989
|
if (!s || R1)
|
|
999
990
|
return "";
|
|
1000
991
|
{
|
|
1001
|
-
var d =
|
|
992
|
+
var d = h1.get(s);
|
|
1002
993
|
if (d !== void 0)
|
|
1003
994
|
return d;
|
|
1004
995
|
}
|
|
@@ -1042,28 +1033,28 @@ function Ve() {
|
|
|
1042
1033
|
}
|
|
1043
1034
|
} catch (V) {
|
|
1044
1035
|
if (V && p && typeof V.stack == "string") {
|
|
1045
|
-
for (var
|
|
1036
|
+
for (var j = V.stack.split(`
|
|
1046
1037
|
`), B = p.stack.split(`
|
|
1047
|
-
`), P =
|
|
1048
|
-
|
|
1049
|
-
for (; P >= 1 &&
|
|
1050
|
-
if (
|
|
1051
|
-
if (P !== 1 ||
|
|
1038
|
+
`), P = j.length - 1, A = B.length - 1; P >= 1 && A >= 0 && j[P] !== B[A]; )
|
|
1039
|
+
A--;
|
|
1040
|
+
for (; P >= 1 && A >= 0; P--, A--)
|
|
1041
|
+
if (j[P] !== B[A]) {
|
|
1042
|
+
if (P !== 1 || A !== 1)
|
|
1052
1043
|
do
|
|
1053
|
-
if (P--,
|
|
1054
|
-
var
|
|
1055
|
-
` +
|
|
1056
|
-
return s.displayName &&
|
|
1044
|
+
if (P--, A--, A < 0 || j[P] !== B[A]) {
|
|
1045
|
+
var H = `
|
|
1046
|
+
` + j[P].replace(" at new ", " at ");
|
|
1047
|
+
return s.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", s.displayName)), typeof s == "function" && h1.set(s, H), H;
|
|
1057
1048
|
}
|
|
1058
|
-
while (P >= 1 &&
|
|
1049
|
+
while (P >= 1 && A >= 0);
|
|
1059
1050
|
break;
|
|
1060
1051
|
}
|
|
1061
1052
|
}
|
|
1062
1053
|
} finally {
|
|
1063
1054
|
R1 = !1, y1.current = T, H3(), Error.prepareStackTrace = E;
|
|
1064
1055
|
}
|
|
1065
|
-
var t1 = s ? s.displayName || s.name : "", Q = t1 ?
|
|
1066
|
-
return typeof s == "function" &&
|
|
1056
|
+
var t1 = s ? s.displayName || s.name : "", Q = t1 ? v1(t1) : "";
|
|
1057
|
+
return typeof s == "function" && h1.set(s, Q), Q;
|
|
1067
1058
|
}
|
|
1068
1059
|
function q3(s, i, d) {
|
|
1069
1060
|
return X1(s, !1);
|
|
@@ -1072,59 +1063,59 @@ function Ve() {
|
|
|
1072
1063
|
var i = s.prototype;
|
|
1073
1064
|
return !!(i && i.isReactComponent);
|
|
1074
1065
|
}
|
|
1075
|
-
function
|
|
1066
|
+
function g1(s, i, d) {
|
|
1076
1067
|
if (s == null)
|
|
1077
1068
|
return "";
|
|
1078
1069
|
if (typeof s == "function")
|
|
1079
1070
|
return X1(s, G3(s));
|
|
1080
1071
|
if (typeof s == "string")
|
|
1081
|
-
return
|
|
1072
|
+
return v1(s);
|
|
1082
1073
|
switch (s) {
|
|
1083
1074
|
case f:
|
|
1084
|
-
return
|
|
1075
|
+
return v1("Suspense");
|
|
1085
1076
|
case u:
|
|
1086
|
-
return
|
|
1077
|
+
return v1("SuspenseList");
|
|
1087
1078
|
}
|
|
1088
1079
|
if (typeof s == "object")
|
|
1089
1080
|
switch (s.$$typeof) {
|
|
1090
1081
|
case h:
|
|
1091
1082
|
return q3(s.render);
|
|
1092
1083
|
case L:
|
|
1093
|
-
return
|
|
1084
|
+
return g1(s.type, i, d);
|
|
1094
1085
|
case F: {
|
|
1095
1086
|
var p = s, E = p._payload, T = p._init;
|
|
1096
1087
|
try {
|
|
1097
|
-
return
|
|
1088
|
+
return g1(T(E), i, d);
|
|
1098
1089
|
} catch {
|
|
1099
1090
|
}
|
|
1100
1091
|
}
|
|
1101
1092
|
}
|
|
1102
1093
|
return "";
|
|
1103
1094
|
}
|
|
1104
|
-
var
|
|
1105
|
-
function
|
|
1095
|
+
var c1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
|
|
1096
|
+
function f1(s) {
|
|
1106
1097
|
if (s) {
|
|
1107
|
-
var i = s._owner, d =
|
|
1098
|
+
var i = s._owner, d = g1(s.type, s._source, i ? i.type : null);
|
|
1108
1099
|
N1.setExtraStackFrame(d);
|
|
1109
1100
|
} else
|
|
1110
1101
|
N1.setExtraStackFrame(null);
|
|
1111
1102
|
}
|
|
1112
1103
|
function Y3(s, i, d, p, E) {
|
|
1113
1104
|
{
|
|
1114
|
-
var T = Function.call.bind(
|
|
1105
|
+
var T = Function.call.bind(c1);
|
|
1115
1106
|
for (var y in s)
|
|
1116
1107
|
if (T(s, y)) {
|
|
1117
|
-
var
|
|
1108
|
+
var j = void 0;
|
|
1118
1109
|
try {
|
|
1119
1110
|
if (typeof s[y] != "function") {
|
|
1120
1111
|
var B = Error((p || "React class") + ": " + d + " 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`.");
|
|
1121
1112
|
throw B.name = "Invariant Violation", B;
|
|
1122
1113
|
}
|
|
1123
|
-
|
|
1114
|
+
j = s[y](i, y, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1124
1115
|
} catch (P) {
|
|
1125
|
-
|
|
1116
|
+
j = P;
|
|
1126
1117
|
}
|
|
1127
|
-
|
|
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", d, y, typeof j), f1(null)), j instanceof Error && !(j.message in Q1) && (Q1[j.message] = !0, f1(E), x("Failed %s type: %s", d, j.message), f1(null));
|
|
1128
1119
|
}
|
|
1129
1120
|
}
|
|
1130
1121
|
}
|
|
@@ -1152,14 +1143,14 @@ function Ve() {
|
|
|
1152
1143
|
if (X3(s))
|
|
1153
1144
|
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
|
|
1154
1145
|
}
|
|
1155
|
-
var n3 =
|
|
1146
|
+
var n3 = b.ReactCurrentOwner, Q3 = {
|
|
1156
1147
|
key: !0,
|
|
1157
1148
|
ref: !0,
|
|
1158
1149
|
__self: !0,
|
|
1159
1150
|
__source: !0
|
|
1160
1151
|
}, o3, s3;
|
|
1161
1152
|
function N3(s) {
|
|
1162
|
-
if (
|
|
1153
|
+
if (c1.call(s, "ref")) {
|
|
1163
1154
|
var i = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
1164
1155
|
if (i && i.isReactWarning)
|
|
1165
1156
|
return !1;
|
|
@@ -1167,7 +1158,7 @@ function Ve() {
|
|
|
1167
1158
|
return s.ref !== void 0;
|
|
1168
1159
|
}
|
|
1169
1160
|
function e2(s) {
|
|
1170
|
-
if (
|
|
1161
|
+
if (c1.call(s, "key")) {
|
|
1171
1162
|
var i = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
1172
1163
|
if (i && i.isReactWarning)
|
|
1173
1164
|
return !1;
|
|
@@ -1200,7 +1191,7 @@ function Ve() {
|
|
|
1200
1191
|
}
|
|
1201
1192
|
}
|
|
1202
1193
|
var s2 = function(s, i, d, p, E, T, y) {
|
|
1203
|
-
var
|
|
1194
|
+
var j = {
|
|
1204
1195
|
// This tag allows us to uniquely identify this as a React Element
|
|
1205
1196
|
$$typeof: t,
|
|
1206
1197
|
// Built-in properties that belong on the element
|
|
@@ -1211,45 +1202,45 @@ function Ve() {
|
|
|
1211
1202
|
// Record the component responsible for creating this element.
|
|
1212
1203
|
_owner: T
|
|
1213
1204
|
};
|
|
1214
|
-
return
|
|
1205
|
+
return j._store = {}, Object.defineProperty(j._store, "validated", {
|
|
1215
1206
|
configurable: !1,
|
|
1216
1207
|
enumerable: !1,
|
|
1217
1208
|
writable: !0,
|
|
1218
1209
|
value: !1
|
|
1219
|
-
}), Object.defineProperty(
|
|
1210
|
+
}), Object.defineProperty(j, "_self", {
|
|
1220
1211
|
configurable: !1,
|
|
1221
1212
|
enumerable: !1,
|
|
1222
1213
|
writable: !1,
|
|
1223
1214
|
value: p
|
|
1224
|
-
}), Object.defineProperty(
|
|
1215
|
+
}), Object.defineProperty(j, "_source", {
|
|
1225
1216
|
configurable: !1,
|
|
1226
1217
|
enumerable: !1,
|
|
1227
1218
|
writable: !1,
|
|
1228
1219
|
value: E
|
|
1229
|
-
}), Object.freeze && (Object.freeze(
|
|
1220
|
+
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
1230
1221
|
};
|
|
1231
1222
|
function c2(s, i, d, p, E) {
|
|
1232
1223
|
{
|
|
1233
|
-
var T, y = {},
|
|
1234
|
-
d !== void 0 && (t3(d),
|
|
1224
|
+
var T, y = {}, j = null, B = null;
|
|
1225
|
+
d !== void 0 && (t3(d), j = "" + d), e2(i) && (t3(i.key), j = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
|
|
1235
1226
|
for (T in i)
|
|
1236
|
-
|
|
1227
|
+
c1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
|
|
1237
1228
|
if (s && s.defaultProps) {
|
|
1238
1229
|
var P = s.defaultProps;
|
|
1239
1230
|
for (T in P)
|
|
1240
1231
|
y[T] === void 0 && (y[T] = P[T]);
|
|
1241
1232
|
}
|
|
1242
|
-
if (
|
|
1243
|
-
var
|
|
1244
|
-
|
|
1233
|
+
if (j || B) {
|
|
1234
|
+
var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1235
|
+
j && n2(y, A), B && o2(y, A);
|
|
1245
1236
|
}
|
|
1246
|
-
return s2(s,
|
|
1237
|
+
return s2(s, j, B, E, p, n3.current, y);
|
|
1247
1238
|
}
|
|
1248
1239
|
}
|
|
1249
|
-
var T1 =
|
|
1240
|
+
var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
|
|
1250
1241
|
function e1(s) {
|
|
1251
1242
|
if (s) {
|
|
1252
|
-
var i = s._owner, d =
|
|
1243
|
+
var i = s._owner, d = g1(s.type, s._source, i ? i.type : null);
|
|
1253
1244
|
c3.setExtraStackFrame(d);
|
|
1254
1245
|
} else
|
|
1255
1246
|
c3.setExtraStackFrame(null);
|
|
@@ -1361,30 +1352,30 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1361
1352
|
{
|
|
1362
1353
|
var y = b1(s);
|
|
1363
1354
|
if (!y) {
|
|
1364
|
-
var
|
|
1365
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
1355
|
+
var j = "";
|
|
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.");
|
|
1366
1357
|
var B = r2();
|
|
1367
|
-
B ?
|
|
1358
|
+
B ? j += B : j += r3();
|
|
1368
1359
|
var P;
|
|
1369
|
-
s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (J(s.type) || "Unknown") + " />",
|
|
1360
|
+
s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : P = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, j);
|
|
1370
1361
|
}
|
|
1371
|
-
var
|
|
1372
|
-
if (
|
|
1373
|
-
return
|
|
1362
|
+
var A = c2(s, i, d, E, T);
|
|
1363
|
+
if (A == null)
|
|
1364
|
+
return A;
|
|
1374
1365
|
if (y) {
|
|
1375
|
-
var
|
|
1376
|
-
if (
|
|
1366
|
+
var H = i.children;
|
|
1367
|
+
if (H !== void 0)
|
|
1377
1368
|
if (p)
|
|
1378
|
-
if (E1(
|
|
1379
|
-
for (var t1 = 0; t1 <
|
|
1380
|
-
a3(
|
|
1381
|
-
Object.freeze && Object.freeze(
|
|
1369
|
+
if (E1(H)) {
|
|
1370
|
+
for (var t1 = 0; t1 < H.length; t1++)
|
|
1371
|
+
a3(H[t1], s);
|
|
1372
|
+
Object.freeze && Object.freeze(H);
|
|
1382
1373
|
} else
|
|
1383
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.");
|
|
1384
1375
|
else
|
|
1385
|
-
a3(
|
|
1376
|
+
a3(H, s);
|
|
1386
1377
|
}
|
|
1387
|
-
if (
|
|
1378
|
+
if (c1.call(i, "key")) {
|
|
1388
1379
|
var Q = J(s), V = Object.keys(i).filter(function(f2) {
|
|
1389
1380
|
return f2 !== "key";
|
|
1390
1381
|
}), L1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -1398,7 +1389,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1398
1389
|
<%s key={someKey} {...props} />`, L1, Q, g2, Q), u3[Q + L1] = !0;
|
|
1399
1390
|
}
|
|
1400
1391
|
}
|
|
1401
|
-
return s === c ? a2(
|
|
1392
|
+
return s === c ? a2(A) : i2(A), A;
|
|
1402
1393
|
}
|
|
1403
1394
|
}
|
|
1404
1395
|
function u2(s, i, d) {
|
|
@@ -1408,12 +1399,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1408
1399
|
return d3(s, i, d, !1);
|
|
1409
1400
|
}
|
|
1410
1401
|
var v2 = d2, h2 = u2;
|
|
1411
|
-
|
|
1412
|
-
})()),
|
|
1402
|
+
i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
|
|
1403
|
+
})()), i1;
|
|
1413
1404
|
}
|
|
1414
1405
|
var p3;
|
|
1415
1406
|
function Ue() {
|
|
1416
|
-
return p3 || (p3 = 1, process.env.NODE_ENV === "production" ?
|
|
1407
|
+
return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? p1.exports = We() : p1.exports = Ve()), p1.exports;
|
|
1417
1408
|
}
|
|
1418
1409
|
var n = Ue();
|
|
1419
1410
|
const Fe = "_mwfit_ppa3l_1", He = {
|
|
@@ -1427,7 +1418,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1427
1418
|
] }),
|
|
1428
1419
|
c && /* @__PURE__ */ n.jsx("button", { className: "btn btn-secondary btn-lg", onPointerDown: e, children: "Reconnect" })
|
|
1429
1420
|
] });
|
|
1430
|
-
},
|
|
1421
|
+
}, O3 = C2({
|
|
1431
1422
|
sendMessage: () => null,
|
|
1432
1423
|
sendSimpleMessage: () => null,
|
|
1433
1424
|
addEventHandler: () => null,
|
|
@@ -1435,34 +1426,34 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1435
1426
|
reconnect: () => null
|
|
1436
1427
|
}), qe = ({ children: e }) => {
|
|
1437
1428
|
const t = W1(), o = I3();
|
|
1438
|
-
|
|
1439
|
-
t(
|
|
1429
|
+
x1(() => {
|
|
1430
|
+
t(B3());
|
|
1440
1431
|
}, [t]);
|
|
1441
|
-
const c =
|
|
1432
|
+
const c = r1(
|
|
1442
1433
|
(h, f) => {
|
|
1443
1434
|
t(Le(h, f));
|
|
1444
1435
|
},
|
|
1445
1436
|
[t]
|
|
1446
|
-
), r =
|
|
1437
|
+
), r = r1(
|
|
1447
1438
|
(h, f) => {
|
|
1448
1439
|
c(h, { value: f });
|
|
1449
1440
|
},
|
|
1450
1441
|
[c]
|
|
1451
|
-
), l =
|
|
1442
|
+
), l = r1(
|
|
1452
1443
|
(h, f, u) => {
|
|
1453
1444
|
t(Pe(h, f, u));
|
|
1454
1445
|
},
|
|
1455
1446
|
[t]
|
|
1456
|
-
), v =
|
|
1447
|
+
), v = r1(
|
|
1457
1448
|
(h, f) => {
|
|
1458
|
-
t(
|
|
1449
|
+
t(Ae(h, f));
|
|
1459
1450
|
},
|
|
1460
1451
|
[t]
|
|
1461
|
-
), g =
|
|
1462
|
-
t(
|
|
1452
|
+
), g = r1(() => {
|
|
1453
|
+
t($e());
|
|
1463
1454
|
}, [t]);
|
|
1464
1455
|
return /* @__PURE__ */ n.jsx(
|
|
1465
|
-
|
|
1456
|
+
O3.Provider,
|
|
1466
1457
|
{
|
|
1467
1458
|
value: {
|
|
1468
1459
|
sendMessage: c,
|
|
@@ -1474,9 +1465,9 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1474
1465
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
1475
1466
|
}
|
|
1476
1467
|
);
|
|
1477
|
-
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store:
|
|
1468
|
+
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Oe, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
|
|
1478
1469
|
function R() {
|
|
1479
|
-
return b2(
|
|
1470
|
+
return b2(O3);
|
|
1480
1471
|
}
|
|
1481
1472
|
function Ge({
|
|
1482
1473
|
onPress: e,
|
|
@@ -1485,7 +1476,7 @@ function Ge({
|
|
|
1485
1476
|
onPressedButNotHeld: c,
|
|
1486
1477
|
holdTimeMs: r = 500
|
|
1487
1478
|
}) {
|
|
1488
|
-
const l =
|
|
1479
|
+
const l = u1(null), v = u1(!1), g = u1(!1);
|
|
1489
1480
|
function h() {
|
|
1490
1481
|
v.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
|
|
1491
1482
|
g.current = !0, o == null || o(), l.current = null;
|
|
@@ -1504,7 +1495,7 @@ function Ge({
|
|
|
1504
1495
|
};
|
|
1505
1496
|
}
|
|
1506
1497
|
function w(e, t) {
|
|
1507
|
-
const { sendMessage: c } = R(), r =
|
|
1498
|
+
const { sendMessage: c } = R(), r = u1(null);
|
|
1508
1499
|
function l() {
|
|
1509
1500
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1510
1501
|
c(`${e}/${t}`, { value: "held" });
|
|
@@ -1515,7 +1506,7 @@ function w(e, t) {
|
|
|
1515
1506
|
}
|
|
1516
1507
|
return Ge({ onPress: l, onRelease: v });
|
|
1517
1508
|
}
|
|
1518
|
-
function
|
|
1509
|
+
function j1(e) {
|
|
1519
1510
|
const { sendMessage: t } = R(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1520
1511
|
return n1(() => ({
|
|
1521
1512
|
volumeUp: o,
|
|
@@ -1532,7 +1523,7 @@ function V6(e) {
|
|
|
1532
1523
|
}), [e, t, o, c]);
|
|
1533
1524
|
}
|
|
1534
1525
|
function W3(e, t) {
|
|
1535
|
-
const { sendMessage: o, sendSimpleMessage: c } = R(), r =
|
|
1526
|
+
const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
|
|
1536
1527
|
return n1(() => {
|
|
1537
1528
|
if (!r) {
|
|
1538
1529
|
console.log("baseVolume is undefined");
|
|
@@ -1552,7 +1543,7 @@ function W3(e, t) {
|
|
|
1552
1543
|
}, [r, t, e, o, c]);
|
|
1553
1544
|
}
|
|
1554
1545
|
function U6(e, t) {
|
|
1555
|
-
const { sendMessage: o, sendSimpleMessage: c } = R(), r =
|
|
1546
|
+
const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
|
|
1556
1547
|
return n1(() => {
|
|
1557
1548
|
if (!r) {
|
|
1558
1549
|
console.log("baseVolume is undefined");
|
|
@@ -1588,7 +1579,7 @@ function V3(e) {
|
|
|
1588
1579
|
t(`/device/${e}/powerToggle`, null);
|
|
1589
1580
|
} };
|
|
1590
1581
|
}
|
|
1591
|
-
function
|
|
1582
|
+
function O1(e) {
|
|
1592
1583
|
const { sendMessage: t } = R(), o = _(e);
|
|
1593
1584
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1594
1585
|
t(`/device/${e}/${r}`, null);
|
|
@@ -1606,7 +1597,7 @@ function ze(e) {
|
|
|
1606
1597
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1607
1598
|
}
|
|
1608
1599
|
function F6(e) {
|
|
1609
|
-
const t = _(e), o = V3(e), c =
|
|
1600
|
+
const t = _(e), o = V3(e), c = O1(e), r = O1(e), l = Ye(e), v = ze(e);
|
|
1610
1601
|
if (t)
|
|
1611
1602
|
return {
|
|
1612
1603
|
avrState: t,
|
|
@@ -1619,7 +1610,7 @@ function F6(e) {
|
|
|
1619
1610
|
}
|
|
1620
1611
|
const H6 = ({ className: e }) => {
|
|
1621
1612
|
const [t, o] = Y();
|
|
1622
|
-
return
|
|
1613
|
+
return x1(() => {
|
|
1623
1614
|
setInterval(() => {
|
|
1624
1615
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1625
1616
|
o(c);
|
|
@@ -1775,7 +1766,7 @@ function at(e) {
|
|
|
1775
1766
|
} } : void 0;
|
|
1776
1767
|
}
|
|
1777
1768
|
function ut(e) {
|
|
1778
|
-
const { sendMessage: t } = R(), o =
|
|
1769
|
+
const { sendMessage: t } = R(), o = S1(e);
|
|
1779
1770
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1780
1771
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1781
1772
|
} } : void 0;
|
|
@@ -1813,7 +1804,7 @@ function ft(e) {
|
|
|
1813
1804
|
} } : void 0;
|
|
1814
1805
|
}
|
|
1815
1806
|
function wt(e) {
|
|
1816
|
-
const { sendMessage: t } = R(), o =
|
|
1807
|
+
const { sendMessage: t } = R(), o = S1(e);
|
|
1817
1808
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
|
|
1818
1809
|
t(`/room/${e}/setShutdownPromptSeconds`, g);
|
|
1819
1810
|
}, shutdownStart: () => {
|
|
@@ -1833,7 +1824,7 @@ function mt(e) {
|
|
|
1833
1824
|
} } : void 0;
|
|
1834
1825
|
}
|
|
1835
1826
|
function pt(e) {
|
|
1836
|
-
const { sendMessage: t } = R(), o =
|
|
1827
|
+
const { sendMessage: t } = R(), o = S1(e);
|
|
1837
1828
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1838
1829
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1839
1830
|
}, setPassword: (l, v) => {
|
|
@@ -1883,7 +1874,7 @@ function St(e) {
|
|
|
1883
1874
|
} : void 0;
|
|
1884
1875
|
}
|
|
1885
1876
|
function jt(e) {
|
|
1886
|
-
const t = _(e), o = V3(e), c =
|
|
1877
|
+
const t = _(e), o = V3(e), c = O1(e);
|
|
1887
1878
|
if (!t) return;
|
|
1888
1879
|
const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1889
1880
|
return {
|
|
@@ -1895,12 +1886,12 @@ function jt(e) {
|
|
|
1895
1886
|
}
|
|
1896
1887
|
function Ct(e) {
|
|
1897
1888
|
const t = `/device/${e}`;
|
|
1898
|
-
return
|
|
1889
|
+
return j1(t);
|
|
1899
1890
|
}
|
|
1900
1891
|
const bt = ({
|
|
1901
1892
|
config: e
|
|
1902
1893
|
}, t = !0) => {
|
|
1903
|
-
const { sendMessage: o } = R(), c =
|
|
1894
|
+
const { sendMessage: o } = R(), c = u1(!1), r = n1(() => {
|
|
1904
1895
|
var v, g, h, f;
|
|
1905
1896
|
if (!e)
|
|
1906
1897
|
return;
|
|
@@ -1926,7 +1917,7 @@ const bt = ({
|
|
|
1926
1917
|
u.sourceKey && u.sourceKey !== "$off" && l.add(u.sourceKey);
|
|
1927
1918
|
return l;
|
|
1928
1919
|
}, [e]);
|
|
1929
|
-
return
|
|
1920
|
+
return x1(() => {
|
|
1930
1921
|
!t || !r || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((l) => {
|
|
1931
1922
|
o(`/device/${l}/fullStatus`, { deviceKey: l });
|
|
1932
1923
|
}), c.current = !0);
|
|
@@ -1944,7 +1935,7 @@ function yt(e, t) {
|
|
|
1944
1935
|
}
|
|
1945
1936
|
function It(e, t) {
|
|
1946
1937
|
const o = `/room/${e}/volumes/${t}`;
|
|
1947
|
-
return
|
|
1938
|
+
return j1(o);
|
|
1948
1939
|
}
|
|
1949
1940
|
function Rt(e, t) {
|
|
1950
1941
|
const o = te(e, t), c = `/room/${e}/volumes/${t}`;
|
|
@@ -1969,9 +1960,9 @@ function Et(e) {
|
|
|
1969
1960
|
function Tt(e) {
|
|
1970
1961
|
const t = W1();
|
|
1971
1962
|
return [() => {
|
|
1972
|
-
t(
|
|
1963
|
+
t(O.addSyncState(e));
|
|
1973
1964
|
}, () => {
|
|
1974
|
-
t(
|
|
1965
|
+
t(O.removeSyncState(e));
|
|
1975
1966
|
}, Ze(e)];
|
|
1976
1967
|
}
|
|
1977
1968
|
function Dt() {
|
|
@@ -1992,7 +1983,7 @@ function _t() {
|
|
|
1992
1983
|
const l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1993
1984
|
c(l);
|
|
1994
1985
|
}
|
|
1995
|
-
return
|
|
1986
|
+
return x1(() => {
|
|
1996
1987
|
r();
|
|
1997
1988
|
const l = setInterval(() => {
|
|
1998
1989
|
r();
|
|
@@ -2023,7 +2014,7 @@ const Lt = () => {
|
|
|
2023
2014
|
),
|
|
2024
2015
|
e && /* @__PURE__ */ n.jsx("p", { children: r })
|
|
2025
2016
|
] });
|
|
2026
|
-
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18",
|
|
2017
|
+
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", A1 = {
|
|
2027
2018
|
iconbtn: Je,
|
|
2028
2019
|
iconbtnvert: Xe,
|
|
2029
2020
|
iconsm: Qe
|
|
@@ -2042,28 +2033,28 @@ const Lt = () => {
|
|
|
2042
2033
|
onPointerLeave: L,
|
|
2043
2034
|
...F
|
|
2044
2035
|
}) => {
|
|
2045
|
-
const [a, Z] = Y(!1),
|
|
2036
|
+
const [a, Z] = Y(!1), C = !v && g ? h : "", S = !v && (a || g);
|
|
2046
2037
|
return /* @__PURE__ */ n.jsxs(
|
|
2047
2038
|
"button",
|
|
2048
2039
|
{
|
|
2049
2040
|
type: "button",
|
|
2050
|
-
className: `${
|
|
2041
|
+
className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${C}`,
|
|
2051
2042
|
...F,
|
|
2052
2043
|
disabled: v,
|
|
2053
|
-
onPointerDown: (
|
|
2054
|
-
Z(!0), f == null || f(
|
|
2044
|
+
onPointerDown: (b) => {
|
|
2045
|
+
Z(!0), f == null || f(b);
|
|
2055
2046
|
},
|
|
2056
|
-
onPointerUp: (
|
|
2057
|
-
Z(!1), u == null || u(
|
|
2047
|
+
onPointerUp: (b) => {
|
|
2048
|
+
Z(!1), u == null || u(b);
|
|
2058
2049
|
},
|
|
2059
|
-
onPointerLeave: (
|
|
2060
|
-
Z(!1), L == null || L(
|
|
2050
|
+
onPointerLeave: (b) => {
|
|
2051
|
+
Z(!1), L == null || L(b);
|
|
2061
2052
|
},
|
|
2062
2053
|
children: [
|
|
2063
2054
|
e && /* @__PURE__ */ n.jsx(
|
|
2064
2055
|
e,
|
|
2065
2056
|
{
|
|
2066
|
-
className: `${r ||
|
|
2057
|
+
className: `${r || A1.iconsm}`,
|
|
2067
2058
|
active: S,
|
|
2068
2059
|
disabled: v
|
|
2069
2060
|
}
|
|
@@ -3719,7 +3710,7 @@ const Lt = () => {
|
|
|
3719
3710
|
X: E8,
|
|
3720
3711
|
Xbox: T8
|
|
3721
3712
|
};
|
|
3722
|
-
function
|
|
3713
|
+
function At({
|
|
3723
3714
|
name: e,
|
|
3724
3715
|
iconsDictionary: t = _8,
|
|
3725
3716
|
...o
|
|
@@ -3727,34 +3718,34 @@ function $t({
|
|
|
3727
3718
|
const c = t[e] ?? null;
|
|
3728
3719
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3729
3720
|
}
|
|
3730
|
-
const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11",
|
|
3721
|
+
const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", $8 = "_footer_1cmpp_23", k8 = "_volume_1cmpp_29", a1 = {
|
|
3731
3722
|
grid: L8,
|
|
3732
3723
|
header: P8,
|
|
3733
|
-
content:
|
|
3734
|
-
footer:
|
|
3724
|
+
content: A8,
|
|
3725
|
+
footer: $8,
|
|
3735
3726
|
volume: k8
|
|
3736
|
-
},
|
|
3737
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3738
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3739
|
-
r && /* @__PURE__ */ n.jsx("div", { className:
|
|
3740
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3741
|
-
] }),
|
|
3742
|
-
grid:
|
|
3743
|
-
header:
|
|
3727
|
+
}, $t = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
|
|
3728
|
+
/* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
|
|
3729
|
+
/* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
|
|
3730
|
+
r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
|
|
3731
|
+
/* @__PURE__ */ n.jsx("div", { className: a1.footer, children: t })
|
|
3732
|
+
] }), B8 = "_grid_11w5q_1", O8 = "_header_11w5q_11", W8 = "_content_11w5q_17", M1 = {
|
|
3733
|
+
grid: B8,
|
|
3734
|
+
header: O8,
|
|
3744
3735
|
content: W8
|
|
3745
|
-
}, kt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${
|
|
3746
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3747
|
-
c && /* @__PURE__ */ n.jsx("div", { className:
|
|
3748
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3749
|
-
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17",
|
|
3736
|
+
}, kt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${M1.grid}`, children: [
|
|
3737
|
+
/* @__PURE__ */ n.jsx("div", { className: M1.header, children: t }),
|
|
3738
|
+
c && /* @__PURE__ */ n.jsx("div", { className: M1.leftNav, children: c }),
|
|
3739
|
+
/* @__PURE__ */ n.jsx("div", { className: M1.content, children: o })
|
|
3740
|
+
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17", $1 = {
|
|
3750
3741
|
grid: V8,
|
|
3751
3742
|
header: U8,
|
|
3752
3743
|
content: F8
|
|
3753
|
-
},
|
|
3754
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3755
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3744
|
+
}, Bt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${$1.grid}`, children: [
|
|
3745
|
+
/* @__PURE__ */ n.jsx("div", { className: $1.header, children: t }),
|
|
3746
|
+
/* @__PURE__ */ n.jsx("div", { className: $1.content, children: o })
|
|
3756
3747
|
] });
|
|
3757
|
-
class
|
|
3748
|
+
class Ot {
|
|
3758
3749
|
constructor() {
|
|
3759
3750
|
q(this, "currentShareText");
|
|
3760
3751
|
q(this, "enabled");
|
|
@@ -3811,29 +3802,29 @@ export {
|
|
|
3811
3802
|
R8 as IconMultiWireless,
|
|
3812
3803
|
E8 as IconMultiX,
|
|
3813
3804
|
T8 as IconMultiXbox,
|
|
3814
|
-
|
|
3805
|
+
$t as MainLayout,
|
|
3815
3806
|
Vt as MessageHandler,
|
|
3816
3807
|
W6 as MobileControlProvider,
|
|
3817
3808
|
I as MultiStateIconContainer,
|
|
3818
|
-
|
|
3819
|
-
|
|
3809
|
+
At as NamedIconButton,
|
|
3810
|
+
Ot as ShareState,
|
|
3820
3811
|
kt as TechLayout,
|
|
3821
|
-
|
|
3822
|
-
|
|
3812
|
+
Bt as TechPinLayout,
|
|
3813
|
+
A3 as WS_ADD_EVENT_HANDLER,
|
|
3823
3814
|
_3 as WS_CONNECT,
|
|
3824
3815
|
L3 as WS_DISCONNECT,
|
|
3825
3816
|
k3 as WS_RECONNECT,
|
|
3826
|
-
|
|
3817
|
+
$3 as WS_REMOVE_EVENT_HANDLER,
|
|
3827
3818
|
P3 as WS_SEND_MESSAGE,
|
|
3828
|
-
|
|
3819
|
+
O3 as WebsocketContext,
|
|
3829
3820
|
T3 as appConfigActions,
|
|
3830
3821
|
ke as createWebSocketMiddleware,
|
|
3831
|
-
|
|
3822
|
+
w1 as devicesActions,
|
|
3832
3823
|
Wt as getBaseLocation,
|
|
3833
3824
|
f3 as httpClient,
|
|
3834
3825
|
_8 as iconsDictionary,
|
|
3835
3826
|
Ut as roomOffSourceKey,
|
|
3836
|
-
|
|
3827
|
+
m1 as roomsActions,
|
|
3837
3828
|
U as runtimeConfigActions,
|
|
3838
3829
|
C3 as selectAllDevices,
|
|
3839
3830
|
T2 as selectApiPath,
|
|
@@ -3852,7 +3843,7 @@ export {
|
|
|
3852
3843
|
_2 as selectPartnerMetadata,
|
|
3853
3844
|
X2 as selectRoomAdvancedSharingActive,
|
|
3854
3845
|
V2 as selectRoomAudioControlPointList,
|
|
3855
|
-
|
|
3846
|
+
$2 as selectRoomByKey,
|
|
3856
3847
|
q2 as selectRoomCodecContentDestinationKey,
|
|
3857
3848
|
P2 as selectRoomConfiguration,
|
|
3858
3849
|
F2 as selectRoomDestinationList,
|
|
@@ -3864,13 +3855,13 @@ export {
|
|
|
3864
3855
|
J2 as selectRoomIsOn,
|
|
3865
3856
|
Y2 as selectRoomIsWarmingUp,
|
|
3866
3857
|
se as selectRoomKey,
|
|
3867
|
-
|
|
3858
|
+
O2 as selectRoomLevelControls,
|
|
3868
3859
|
k2 as selectRoomName,
|
|
3869
3860
|
K2 as selectRoomProgramAudioDestinationKey,
|
|
3870
3861
|
Q2 as selectRoomShareState,
|
|
3871
3862
|
W2 as selectRoomSourceList,
|
|
3872
|
-
|
|
3873
|
-
|
|
3863
|
+
B2 as selectRoomVolume,
|
|
3864
|
+
A2 as selectRooms,
|
|
3874
3865
|
ae as selectRuntimeInfo,
|
|
3875
3866
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
3876
3867
|
ge as selectShowPopoverById,
|
|
@@ -3881,8 +3872,8 @@ export {
|
|
|
3881
3872
|
le as selectUserCode,
|
|
3882
3873
|
oe as selectWsIsConnected,
|
|
3883
3874
|
N2 as selectZoomRoomControllerKey,
|
|
3884
|
-
|
|
3885
|
-
|
|
3875
|
+
Oe as store,
|
|
3876
|
+
O as uiActions,
|
|
3886
3877
|
je as uiReducer,
|
|
3887
3878
|
Q8 as useApiPath,
|
|
3888
3879
|
X8 as useAppConfig,
|
|
@@ -3902,14 +3893,14 @@ export {
|
|
|
3902
3893
|
bt as useGetAllDeviceStateFromRoomConfiguration,
|
|
3903
3894
|
t6 as useGetAllDevices,
|
|
3904
3895
|
o6 as useGetAllRooms,
|
|
3905
|
-
|
|
3896
|
+
A6 as useGetCurrentPopoverIdForGroup,
|
|
3906
3897
|
_ as useGetDevice,
|
|
3907
3898
|
V6 as useGetIBasicVolume,
|
|
3908
3899
|
U6 as useGetIBasicVolumeWithFeedback,
|
|
3909
3900
|
s6 as useGetRoom,
|
|
3910
3901
|
M6 as useGetRoomDisplayStates,
|
|
3911
3902
|
x6 as useGetZoomRoomControllerKey,
|
|
3912
|
-
|
|
3903
|
+
j1 as useIBasicVolume,
|
|
3913
3904
|
W3 as useIBasicVolumeWithFeedback,
|
|
3914
3905
|
G6 as useIChannel,
|
|
3915
3906
|
Y6 as useIColor,
|
|
@@ -3921,7 +3912,7 @@ export {
|
|
|
3921
3912
|
tt as useIEssentialsRoomCombiner,
|
|
3922
3913
|
nt as useIHasCameras,
|
|
3923
3914
|
V3 as useIHasPowerControl,
|
|
3924
|
-
|
|
3915
|
+
O1 as useIHasSelectableItems,
|
|
3925
3916
|
ot as useIHumiditySensor,
|
|
3926
3917
|
st as useILevelControls,
|
|
3927
3918
|
ct as useILightingScenes,
|
|
@@ -3941,7 +3932,7 @@ export {
|
|
|
3941
3932
|
Mt as useITemperatureSensor,
|
|
3942
3933
|
xt as useITheme,
|
|
3943
3934
|
Zt as useITransport,
|
|
3944
|
-
|
|
3935
|
+
O6 as useInitialize,
|
|
3945
3936
|
T6 as useInterfacesForDevice,
|
|
3946
3937
|
Ze as useIsSyncStateValuePresent,
|
|
3947
3938
|
R6 as useIsTouchpanel,
|
|
@@ -3969,14 +3960,14 @@ export {
|
|
|
3969
3960
|
d6 as useRoomProgramAudioDestinationKey,
|
|
3970
3961
|
p6 as useRoomShareState,
|
|
3971
3962
|
r6 as useRoomSourceList,
|
|
3972
|
-
|
|
3963
|
+
S1 as useRoomState,
|
|
3973
3964
|
te as useRoomVolume,
|
|
3974
3965
|
y6 as useRuntimeInfo,
|
|
3975
3966
|
Et as useScroll,
|
|
3976
3967
|
b6 as useServerIsRunningOnProcessorHardware,
|
|
3977
3968
|
L6 as useShowIncomingCallModal,
|
|
3978
3969
|
P6 as useShowModal,
|
|
3979
|
-
|
|
3970
|
+
$6 as useShowPopoverById,
|
|
3980
3971
|
xe as useShowReconnect,
|
|
3981
3972
|
_6 as useShowShutdownModal,
|
|
3982
3973
|
Tt as useStateIsSynced,
|
|
@@ -3990,9 +3981,9 @@ export {
|
|
|
3990
3981
|
R as useWebsocketContext,
|
|
3991
3982
|
I3 as useWsIsConnected,
|
|
3992
3983
|
Pe as wsAddEventHandler,
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3984
|
+
B3 as wsConnect,
|
|
3985
|
+
B6 as wsDisconnect,
|
|
3986
|
+
$e as wsReconnect,
|
|
3987
|
+
Ae as wsRemoveEventHandler,
|
|
3997
3988
|
Le as wsSendMessage
|
|
3998
3989
|
};
|