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