@pepperdash/mobile-control-react-app-core 1.25.0-feat-deprecate-interfaces-array.5 → 1.25.0-feat-essentials-v3.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.
- package/dist/mobile-control-react-app-core.es.js +602 -584
- package/dist/mobile-control-react-app-core.umd.js +9 -9
- package/dist/shared/hooks/interfaces/index.d.ts +2 -2
- package/dist/shared/hooks/interfaces/index.d.ts.map +1 -1
- package/dist/shared/hooks/interfaces/useIHasCameraMute.d.ts +13 -0
- package/dist/shared/hooks/interfaces/useIHasCameraMute.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIHasCameraPresets.d.ts +15 -0
- package/dist/shared/hooks/interfaces/useIHasCameraPresets.d.ts.map +1 -0
- package/dist/shared/hooks/interfaces/useIHasPowerControl.d.ts +1 -0
- package/dist/shared/hooks/interfaces/useIHasPowerControl.d.ts.map +1 -1
- package/dist/store/middleware/websocketMiddleware.d.ts.map +1 -1
- package/dist/types/state/state/IHasCameraMuteState.d.ts +6 -0
- package/dist/types/state/state/IHasCameraMuteState.d.ts.map +1 -0
- package/dist/types/state/state/IHasCameraPresetsState.d.ts +12 -0
- package/dist/types/state/state/IHasCameraPresetsState.d.ts.map +1 -0
- package/dist/types/state/state/index.d.ts +2 -0
- package/dist/types/state/state/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,132 +1,132 @@
|
|
|
1
1
|
var w2 = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var q = (e, t, o) =>
|
|
4
|
-
import M3, { AxiosError as
|
|
2
|
+
var m2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import M3, { AxiosError as p2 } from "axios";
|
|
5
5
|
import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
|
|
6
|
-
import { createSelector as M, createSlice as
|
|
7
|
-
import x3, { createContext as C2, useEffect as
|
|
6
|
+
import { createSelector as M, createSlice as v1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
|
|
7
|
+
import x3, { createContext as C2, useEffect as Z1, useCallback as l1, useContext as b2, useRef as d1, useMemo as N, 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(),
|
|
11
|
-
|
|
10
|
+
const W1 = M2.withTypes(), m = x2.withTypes(), S1 = (e) => e.appConfig, E2 = M(
|
|
11
|
+
S1,
|
|
12
12
|
(e) => e.config
|
|
13
13
|
), T2 = M(
|
|
14
|
-
|
|
14
|
+
S1,
|
|
15
15
|
(e) => e.config.apiPath
|
|
16
16
|
), D2 = M(
|
|
17
|
-
|
|
17
|
+
S1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
19
|
), _2 = M(
|
|
20
|
-
|
|
20
|
+
S1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), X8 = () =>
|
|
22
|
+
), X8 = () => m(E2), Q8 = () => m(T2), N8 = () => m(D2), e6 = () => m(_2), j3 = (e) => e.devices, C3 = M(
|
|
23
23
|
j3,
|
|
24
24
|
(e) => e
|
|
25
|
-
),
|
|
25
|
+
), $2 = (e) => M(
|
|
26
26
|
j3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
), t6 = () =>
|
|
28
|
+
), t6 = () => m(C3);
|
|
29
29
|
function D(e) {
|
|
30
|
-
return
|
|
30
|
+
return m($2(e));
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const A = (e) => e.rooms, P2 = (e) => M(
|
|
33
|
+
A,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
35
|
), L2 = M(
|
|
36
|
-
|
|
36
|
+
A,
|
|
37
37
|
(e) => e
|
|
38
|
-
),
|
|
39
|
-
|
|
38
|
+
), A2 = (e) => M(
|
|
39
|
+
A,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
),
|
|
42
|
-
|
|
41
|
+
), O2 = (e) => M(
|
|
42
|
+
A,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
45
|
-
|
|
44
|
+
), B2 = (e, t) => M(
|
|
45
|
+
A,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
47
|
), k2 = (e) => M(
|
|
48
|
-
|
|
48
|
+
A,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), W2 = (e) => M(
|
|
51
|
-
|
|
51
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
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
|
-
),
|
|
69
|
-
|
|
68
|
+
), H2 = (e) => M(
|
|
69
|
+
A,
|
|
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
|
-
),
|
|
75
|
-
|
|
74
|
+
), F2 = (e) => M(
|
|
75
|
+
A,
|
|
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
|
+
A,
|
|
82
82
|
(t) => {
|
|
83
|
-
var o, c, r, l,
|
|
84
|
-
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (
|
|
83
|
+
var o, c, r, l, a, g, h, f;
|
|
84
|
+
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (a = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : a.sinkKey : ((f = (h = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : f.sinkKey) || "";
|
|
85
85
|
}
|
|
86
86
|
), q2 = (e) => M(
|
|
87
|
-
|
|
87
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
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
|
+
A,
|
|
130
130
|
(t) => {
|
|
131
131
|
var o, c;
|
|
132
132
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
|
|
@@ -147,21 +147,21 @@ const P = (e) => e.rooms, $2 = (e) => M(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function n6(e) {
|
|
150
|
-
return
|
|
151
|
-
|
|
150
|
+
return m(
|
|
151
|
+
P2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function o6() {
|
|
155
|
-
return
|
|
155
|
+
return m(L2);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function j1(e) {
|
|
158
|
+
return m(A2(e));
|
|
159
159
|
}
|
|
160
|
-
const s6 =
|
|
161
|
-
|
|
162
|
-
), te = (e, t) =>
|
|
163
|
-
|
|
164
|
-
), ne = (e) =>
|
|
160
|
+
const s6 = j1, c6 = (e) => m(
|
|
161
|
+
O2(e)
|
|
162
|
+
), te = (e, t) => m(
|
|
163
|
+
B2(e, t)
|
|
164
|
+
), ne = (e) => m(k2(e)) || void 0, r6 = (e) => m(W2(e)), l6 = (e) => m(V2(e)), i6 = (e) => m(U2(e)), a6 = (e) => m(H2(e)), u6 = (e) => m(F2(e)), d6 = (e) => m(K2(e)), v6 = (e) => m(q2(e)), h6 = (e) => m(G2(e)), g6 = (e) => m(Y2(e)), f6 = (e) => m(z2(e)), w6 = (e) => m(J2(e)), m6 = (e) => m(X2(e)), p6 = (e) => m(Q2(e)), M6 = (e) => m((t) => ee(t, e)), x6 = (e) => m(N2(e)), G = (e) => e.runtimeConfig, oe = M(
|
|
165
165
|
G,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
167
|
), se = M(
|
|
@@ -203,7 +203,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
203
203
|
), ve = (e, t) => M(
|
|
204
204
|
y3(e),
|
|
205
205
|
(o) => o.includes(t)
|
|
206
|
-
), I3 = () =>
|
|
206
|
+
), I3 = () => m(oe), Z6 = () => m(se), S6 = () => m(ce), j6 = () => m(re), C6 = () => m(le), b6 = () => m(ie), y6 = () => m(ae), I6 = () => m(ue), R6 = () => m(de), E6 = () => m(b3), T6 = (e) => m(y3(e)), D6 = (e, t) => m(ve(e, t)), e1 = (e) => e.ui, V1 = (e) => M(e1, (t) => t.modalVisibility[e]), he = (e) => M(e1, (t) => {
|
|
207
207
|
const o = t.popoverVisibility[e];
|
|
208
208
|
if (o)
|
|
209
209
|
return Object.keys(o).find((c) => o[c]);
|
|
@@ -216,7 +216,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
216
216
|
), fe = M(e1, (e) => e.error), we = M(
|
|
217
217
|
e1,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
),
|
|
219
|
+
), me = M(e1, (e) => e.theme), pe = (e) => M(e1, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), $6 = () => m(V1("showIncomingCallModal")), P6 = (e) => m(V1(e)), L6 = (e) => m(he(e)), A6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), O6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -225,7 +225,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
225
225
|
},
|
|
226
226
|
popoverVisibility: {},
|
|
227
227
|
syncState: []
|
|
228
|
-
}, R3 =
|
|
228
|
+
}, R3 = v1({
|
|
229
229
|
name: "ui",
|
|
230
230
|
initialState: Se,
|
|
231
231
|
reducers: {
|
|
@@ -271,7 +271,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
271
271
|
e.syncState = [];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
274
|
+
}), W = R3.actions, je = R3.reducer, Ce = {
|
|
275
275
|
config: {
|
|
276
276
|
enableDev: !1,
|
|
277
277
|
apiPath: "",
|
|
@@ -281,7 +281,7 @@ const s6 = S1, c6 = (e) => p(
|
|
|
281
281
|
loginMode: "",
|
|
282
282
|
modes: {}
|
|
283
283
|
}
|
|
284
|
-
}, E3 =
|
|
284
|
+
}, E3 = v1({
|
|
285
285
|
name: "appConfig",
|
|
286
286
|
initialState: Ce,
|
|
287
287
|
reducers: {
|
|
@@ -289,14 +289,14 @@ const s6 = S1, c6 = (e) => p(
|
|
|
289
289
|
e.config = t.payload;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}), T3 = E3.actions, be = E3.reducer, v3 = {},
|
|
292
|
+
}), T3 = E3.actions, be = E3.reducer, v3 = {}, O1 = v1({
|
|
293
293
|
name: "devices",
|
|
294
294
|
initialState: v3,
|
|
295
295
|
reducers: {
|
|
296
296
|
setDeviceState(e, t) {
|
|
297
297
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
298
298
|
if (!c) return;
|
|
299
|
-
const r = t.payload.content, l = e[c] ?? {},
|
|
299
|
+
const r = t.payload.content, l = e[c] ?? {}, a = S3.mergeWith(
|
|
300
300
|
{},
|
|
301
301
|
l,
|
|
302
302
|
r,
|
|
@@ -304,16 +304,16 @@ const s6 = S1, c6 = (e) => p(
|
|
|
304
304
|
if (Array.isArray(h)) return h.slice();
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
e[c] =
|
|
307
|
+
e[c] = a;
|
|
308
308
|
},
|
|
309
309
|
clearDevices() {
|
|
310
310
|
return v3;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
314
|
-
setDeviceState:
|
|
315
|
-
clearDevices:
|
|
316
|
-
}, ye =
|
|
313
|
+
}), m1 = {
|
|
314
|
+
setDeviceState: O1.actions.setDeviceState,
|
|
315
|
+
clearDevices: O1.actions.clearDevices
|
|
316
|
+
}, ye = O1.reducer;
|
|
317
317
|
class Ie {
|
|
318
318
|
constructor() {
|
|
319
319
|
q(this, "uuid", "current-uuid");
|
|
@@ -329,26 +329,26 @@ function Re(e) {
|
|
|
329
329
|
function Ee(e, t) {
|
|
330
330
|
sessionStorage.setItem(e, t);
|
|
331
331
|
}
|
|
332
|
-
const g3 = {},
|
|
332
|
+
const g3 = {}, B1 = v1({
|
|
333
333
|
name: "rooms",
|
|
334
334
|
initialState: g3,
|
|
335
335
|
reducers: {
|
|
336
336
|
setRoomState(e, t) {
|
|
337
337
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
338
338
|
if (!c) return;
|
|
339
|
-
const r = t.payload.content, l = e[c] ?? {},
|
|
339
|
+
const r = t.payload.content, l = e[c] ?? {}, a = S3.mergeWith({}, l, r, (g, h) => {
|
|
340
340
|
if (Array.isArray(h)) return h;
|
|
341
341
|
});
|
|
342
|
-
e[c] =
|
|
342
|
+
e[c] = a;
|
|
343
343
|
},
|
|
344
344
|
clearRooms() {
|
|
345
345
|
return g3;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}), p1 = {
|
|
349
|
-
setRoomState:
|
|
350
|
-
clearRooms:
|
|
351
|
-
}, Te =
|
|
349
|
+
setRoomState: B1.actions.setRoomState,
|
|
350
|
+
clearRooms: B1.actions.clearRooms
|
|
351
|
+
}, Te = B1.reducer, De = {
|
|
352
352
|
apiVersion: "",
|
|
353
353
|
serverIsRunningOnProcessorHardware: !1,
|
|
354
354
|
websocket: {
|
|
@@ -379,7 +379,7 @@ const g3 = {}, O1 = d1({
|
|
|
379
379
|
userCode: "",
|
|
380
380
|
qrUrl: ""
|
|
381
381
|
}
|
|
382
|
-
}, D3 =
|
|
382
|
+
}, D3 = v1({
|
|
383
383
|
name: "runtimeConfig",
|
|
384
384
|
initialState: De,
|
|
385
385
|
reducers: {
|
|
@@ -414,83 +414,96 @@ const g3 = {}, O1 = d1({
|
|
|
414
414
|
e.touchpanelKey = t.payload;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
}), U = D3.actions, _e = D3.reducer,
|
|
418
|
-
type:
|
|
417
|
+
}), U = D3.actions, _e = D3.reducer, P1 = M3.create(), _3 = "websocket/connect", $3 = "websocket/disconnect", P3 = "websocket/sendMessage", L3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", O3 = "websocket/reconnect", B3 = () => ({ type: _3 }), B6 = () => ({ type: $3 }), $e = (e, t) => ({
|
|
418
|
+
type: P3,
|
|
419
419
|
payload: { messageType: e, content: t }
|
|
420
|
-
}),
|
|
420
|
+
}), Pe = (e, t, o) => ({
|
|
421
421
|
type: L3,
|
|
422
422
|
payload: { eventType: e, key: t, callback: o }
|
|
423
423
|
}), Le = (e, t) => ({
|
|
424
|
-
type:
|
|
424
|
+
type: A3,
|
|
425
425
|
payload: { eventType: e, key: t }
|
|
426
|
-
}),
|
|
426
|
+
}), Ae = () => ({ type: O3 }), Oe = () => {
|
|
427
427
|
const e = {
|
|
428
428
|
client: null,
|
|
429
429
|
token: null,
|
|
430
430
|
waitingToReconnect: !1,
|
|
431
431
|
reconnectTimer: null,
|
|
432
432
|
eventHandlers: {}
|
|
433
|
-
}, t = async (
|
|
433
|
+
}, t = async (u) => {
|
|
434
434
|
try {
|
|
435
|
-
const Z = location.pathname.split("/").filter((
|
|
435
|
+
const Z = location.pathname.split("/").filter((C) => C.length > 0);
|
|
436
436
|
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
437
|
-
const
|
|
437
|
+
const j = `/${Z.join("/")}`, S = await P1.get(
|
|
438
438
|
"/_local-config/_config.local.json",
|
|
439
|
-
{ baseURL:
|
|
439
|
+
{ baseURL: j }
|
|
440
440
|
);
|
|
441
441
|
if (S.status === 200 && S.data) {
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
const x = await
|
|
445
|
-
`${
|
|
442
|
+
const C = S.data.apiPath;
|
|
443
|
+
u(T3.setAppConfig(S.data));
|
|
444
|
+
const x = await P1.get(
|
|
445
|
+
`${C}/version`
|
|
446
446
|
);
|
|
447
|
-
x.status === 200 && x.data &&
|
|
447
|
+
x.status === 200 && x.data && u(U.setRuntimeConfig(x.data));
|
|
448
448
|
}
|
|
449
449
|
} catch (Z) {
|
|
450
450
|
console.error("Error getting config", Z);
|
|
451
451
|
}
|
|
452
452
|
return !0;
|
|
453
|
-
}, o = async (
|
|
453
|
+
}, o = async (u, Z, j) => {
|
|
454
454
|
try {
|
|
455
|
-
const S = await
|
|
456
|
-
`${
|
|
455
|
+
const S = await P1.get(
|
|
456
|
+
`${u}/ui/joinroom?token=${Z}`
|
|
457
457
|
);
|
|
458
|
-
return S.status === 200 && S.data ? (
|
|
458
|
+
return S.status === 200 && S.data ? (j(U.setRoomData(S.data)), S.data) : null;
|
|
459
459
|
} catch (S) {
|
|
460
|
-
return console.log(S), S instanceof
|
|
461
|
-
|
|
460
|
+
return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), j(
|
|
461
|
+
W.setErrorMessage(
|
|
462
462
|
`Token ${Z} is invalid. Unable to join room`
|
|
463
463
|
)
|
|
464
|
-
), null) : (console.error("Error getting room data", S), S instanceof Error ?
|
|
464
|
+
), null) : (console.error("Error getting room data", S), S instanceof Error ? j(W.setErrorMessage(S.message)) : j(W.setErrorMessage("Error getting room data")), null);
|
|
465
465
|
}
|
|
466
|
-
}, c = (
|
|
466
|
+
}, c = (u) => {
|
|
467
467
|
e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
|
|
468
|
-
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."),
|
|
468
|
+
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), u(B3());
|
|
469
469
|
}, 5e3);
|
|
470
470
|
}, r = () => {
|
|
471
471
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
472
|
-
}, l = (
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
|
|
472
|
+
}, l = (u) => {
|
|
473
|
+
u(W.setShowReconnect(!0)), u(U.setWebsocketIsConnected(!1)), u(m1.clearDevices()), u(p1.clearRooms()), u(W.clearAllModals()), u(W.clearSyncState());
|
|
474
|
+
}, a = (u, Z) => {
|
|
475
|
+
var F;
|
|
476
|
+
const j = u(), S = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: C } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected, O = (F = j.runtimeConfig.roomData.config) == null ? void 0 : F.runtimeInfo.essentialsVersion;
|
|
477
|
+
console.log("WebSocket middleware: Essentials version", {
|
|
478
|
+
essentialsVersion: O
|
|
479
|
+
});
|
|
480
|
+
const o1 = O == null ? void 0 : O.startsWith("3.");
|
|
481
|
+
if (!Z || !x || !C) {
|
|
477
482
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
478
483
|
hasRoomKey: !!Z,
|
|
479
484
|
isConnected: x,
|
|
480
|
-
hasClientId: !!
|
|
485
|
+
hasClientId: !!C
|
|
481
486
|
});
|
|
482
487
|
return;
|
|
483
488
|
}
|
|
484
|
-
console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x &&
|
|
489
|
+
console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && (o1 ? (console.log(
|
|
490
|
+
"WebSocket middleware: Essentials V3 detected, requesting additional status..."
|
|
491
|
+
), e.client.send(
|
|
492
|
+
JSON.stringify({
|
|
493
|
+
type: `/room/${S}/fullStatus`,
|
|
494
|
+
clientId: C,
|
|
495
|
+
content: null
|
|
496
|
+
})
|
|
497
|
+
)) : e.client.send(
|
|
485
498
|
JSON.stringify({
|
|
486
499
|
type: `/room/${S}/status`,
|
|
487
|
-
clientId:
|
|
500
|
+
clientId: C,
|
|
488
501
|
content: null
|
|
489
502
|
})
|
|
490
|
-
);
|
|
491
|
-
}, g = async (
|
|
503
|
+
));
|
|
504
|
+
}, g = async (u, Z) => {
|
|
492
505
|
console.log("WebSocket middleware: Attempting to connect...");
|
|
493
|
-
const
|
|
506
|
+
const j = Z(), { apiPath: S } = j.appConfig.config, { serverIsRunningOnProcessorHardware: C } = j.runtimeConfig;
|
|
494
507
|
if (!S || !e.token) {
|
|
495
508
|
console.log(
|
|
496
509
|
"WebSocket middleware: Cannot connect - missing requirements",
|
|
@@ -513,47 +526,47 @@ const g3 = {}, O1 = d1({
|
|
|
513
526
|
}
|
|
514
527
|
e.waitingToReconnect = !0;
|
|
515
528
|
try {
|
|
516
|
-
const x = await o(S, e.token,
|
|
529
|
+
const x = await o(S, e.token, u);
|
|
517
530
|
if (!x) {
|
|
518
531
|
console.log(
|
|
519
532
|
"WebSocket middleware: Failed to get room data, will retry..."
|
|
520
|
-
), c(
|
|
533
|
+
), c(u);
|
|
521
534
|
return;
|
|
522
535
|
}
|
|
523
536
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
524
|
-
const
|
|
525
|
-
e.client =
|
|
537
|
+
const o1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, F = new WebSocket(o1);
|
|
538
|
+
e.client = F, F.onopen = (B) => {
|
|
526
539
|
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
527
|
-
e.client ===
|
|
540
|
+
e.client === F && F.readyState === WebSocket.OPEN && u(U.setWebsocketIsConnected(!0));
|
|
528
541
|
}, 100);
|
|
529
|
-
},
|
|
530
|
-
console.error("WebSocket middleware: Error", B), l(
|
|
531
|
-
},
|
|
542
|
+
}, F.onerror = (B) => {
|
|
543
|
+
console.error("WebSocket middleware: Error", B), l(u);
|
|
544
|
+
}, F.onclose = (B) => {
|
|
532
545
|
var _;
|
|
533
546
|
if (console.log(
|
|
534
547
|
"WebSocket middleware: Disconnected",
|
|
535
548
|
B.reason,
|
|
536
549
|
B.code
|
|
537
550
|
), B.code === 4100) {
|
|
538
|
-
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(
|
|
551
|
+
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(u);
|
|
539
552
|
return;
|
|
540
553
|
}
|
|
541
554
|
if (e.waitingToReconnect = !0, B.code === 4e3) {
|
|
542
|
-
console.log("WebSocket middleware: User code changed"), r(),
|
|
555
|
+
console.log("WebSocket middleware: User code changed"), r(), u(
|
|
543
556
|
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
544
|
-
),
|
|
545
|
-
|
|
557
|
+
), u(
|
|
558
|
+
W.setErrorMessage(
|
|
546
559
|
"User code changed. Click reconnect to enter the new code"
|
|
547
560
|
)
|
|
548
|
-
), l(
|
|
561
|
+
), l(u);
|
|
549
562
|
return;
|
|
550
563
|
}
|
|
551
564
|
if (B.code === 4002) {
|
|
552
|
-
console.log("WebSocket middleware: Room combination changed"), r(),
|
|
553
|
-
|
|
565
|
+
console.log("WebSocket middleware: Room combination changed"), r(), u(
|
|
566
|
+
W.setErrorMessage(
|
|
554
567
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
555
568
|
)
|
|
556
|
-
), l(
|
|
569
|
+
), l(u);
|
|
557
570
|
return;
|
|
558
571
|
}
|
|
559
572
|
if (B.code === 4001)
|
|
@@ -561,18 +574,18 @@ const g3 = {}, O1 = d1({
|
|
|
561
574
|
console.log(
|
|
562
575
|
"WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
|
|
563
576
|
);
|
|
564
|
-
else if (
|
|
577
|
+
else if (C)
|
|
565
578
|
console.log(
|
|
566
579
|
"WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
|
|
567
580
|
);
|
|
568
581
|
else {
|
|
569
582
|
console.log(
|
|
570
583
|
"WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
|
|
571
|
-
), r(),
|
|
572
|
-
|
|
584
|
+
), r(), u(
|
|
585
|
+
W.setErrorMessage(
|
|
573
586
|
"Processor has disconnected. Click Reconnect to continue."
|
|
574
587
|
)
|
|
575
|
-
), l(
|
|
588
|
+
), l(u);
|
|
576
589
|
return;
|
|
577
590
|
}
|
|
578
591
|
if (e.client)
|
|
@@ -583,36 +596,36 @@ const g3 = {}, O1 = d1({
|
|
|
583
596
|
console.log("WebSocket middleware: Closed by client");
|
|
584
597
|
return;
|
|
585
598
|
}
|
|
586
|
-
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"),
|
|
587
|
-
|
|
599
|
+
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), u(
|
|
600
|
+
W.setErrorMessage(
|
|
588
601
|
"Connection lost. Attempting to reconnect..."
|
|
589
602
|
)
|
|
590
|
-
),
|
|
591
|
-
},
|
|
603
|
+
), u(U.setWebsocketIsConnected(!1)), u(m1.clearDevices()), u(p1.clearRooms()), u(W.clearAllModals()), u(W.clearSyncState()), c(u);
|
|
604
|
+
}, F.onmessage = (B) => {
|
|
592
605
|
try {
|
|
593
606
|
const _ = JSON.parse(B.data);
|
|
594
607
|
if (_.type === "close") {
|
|
595
|
-
|
|
608
|
+
F.close(4001, _.content);
|
|
596
609
|
return;
|
|
597
610
|
}
|
|
598
611
|
if (_.type.startsWith("/system/"))
|
|
599
612
|
switch (_.type) {
|
|
600
613
|
case "/system/touchpanelKey":
|
|
601
|
-
|
|
614
|
+
u(
|
|
602
615
|
U.setTouchpanelKey(
|
|
603
616
|
_.content
|
|
604
617
|
)
|
|
605
618
|
);
|
|
606
619
|
break;
|
|
607
620
|
case "/system/roomKey":
|
|
608
|
-
|
|
621
|
+
u(p1.clearRooms()), u(m1.clearDevices()), u(W.clearSyncState()), u(
|
|
609
622
|
U.setCurrentRoomKey(
|
|
610
623
|
_.content
|
|
611
624
|
)
|
|
612
625
|
);
|
|
613
626
|
break;
|
|
614
627
|
case "/system/userCodeChanged":
|
|
615
|
-
|
|
628
|
+
u(
|
|
616
629
|
U.setUserCode(_.content)
|
|
617
630
|
);
|
|
618
631
|
break;
|
|
@@ -621,7 +634,7 @@ const g3 = {}, O1 = d1({
|
|
|
621
634
|
break;
|
|
622
635
|
case "/system/deviceInterfaces": {
|
|
623
636
|
const z = _.content;
|
|
624
|
-
|
|
637
|
+
u(
|
|
625
638
|
U.setDeviceInterfaces(
|
|
626
639
|
z.deviceInterfaces
|
|
627
640
|
)
|
|
@@ -640,9 +653,9 @@ const g3 = {}, O1 = d1({
|
|
|
640
653
|
z || console.log(
|
|
641
654
|
"WebSocket middleware: No handlers found for event type",
|
|
642
655
|
_.type
|
|
643
|
-
), z && Object.values(z).forEach((
|
|
656
|
+
), z && Object.values(z).forEach((s1) => {
|
|
644
657
|
try {
|
|
645
|
-
|
|
658
|
+
s1(_);
|
|
646
659
|
} catch (b1) {
|
|
647
660
|
console.error(
|
|
648
661
|
"WebSocket middleware: Event handler error",
|
|
@@ -650,7 +663,7 @@ const g3 = {}, O1 = d1({
|
|
|
650
663
|
);
|
|
651
664
|
}
|
|
652
665
|
});
|
|
653
|
-
} else _.type.startsWith("/room/") ?
|
|
666
|
+
} else _.type.startsWith("/room/") ? u(p1.setRoomState(_)) : _.type.startsWith("/device/") && u(m1.setDeviceState(_));
|
|
654
667
|
} catch (_) {
|
|
655
668
|
console.error("WebSocket middleware: Message handling error", _);
|
|
656
669
|
}
|
|
@@ -660,78 +673,78 @@ const g3 = {}, O1 = d1({
|
|
|
660
673
|
}
|
|
661
674
|
}, h = () => {
|
|
662
675
|
e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
|
|
663
|
-
}, f = (
|
|
664
|
-
const S =
|
|
665
|
-
e.client &&
|
|
666
|
-
JSON.stringify({ type:
|
|
676
|
+
}, f = (u, Z, j) => {
|
|
677
|
+
const S = j(), C = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
|
|
678
|
+
e.client && C ? e.client.send(
|
|
679
|
+
JSON.stringify({ type: u, clientId: x, content: Z })
|
|
667
680
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
668
|
-
}, d = (
|
|
669
|
-
e.eventHandlers[
|
|
670
|
-
},
|
|
671
|
-
e.eventHandlers[
|
|
681
|
+
}, d = (u, Z, j) => {
|
|
682
|
+
e.eventHandlers[u] || (e.eventHandlers[u] = {}), e.eventHandlers[u][Z] = j, console.log("WebSocket middleware: Event handler added", u, Z);
|
|
683
|
+
}, $ = (u, Z) => {
|
|
684
|
+
e.eventHandlers[u] && (delete e.eventHandlers[u][Z], console.log(
|
|
672
685
|
"WebSocket middleware: Event handler removed",
|
|
673
|
-
|
|
686
|
+
u,
|
|
674
687
|
Z
|
|
675
688
|
));
|
|
676
|
-
},
|
|
677
|
-
const Z =
|
|
678
|
-
window.location.href = x ? `${
|
|
689
|
+
}, H = (u) => {
|
|
690
|
+
const Z = u(), { gatewayAppPath: j } = Z.appConfig.config, S = Z.runtimeConfig.roomData.roomKey, C = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, O = `${j}?uuid=${C}&roomKey=${S}`;
|
|
691
|
+
window.location.href = x ? `${O}&Code=${x}` : O;
|
|
679
692
|
};
|
|
680
|
-
return (
|
|
681
|
-
const S = Z(
|
|
682
|
-
if (!
|
|
693
|
+
return (u) => (Z) => (j) => {
|
|
694
|
+
const S = Z(j);
|
|
695
|
+
if (!j || typeof j != "object" || !("type" in j))
|
|
683
696
|
return S;
|
|
684
|
-
const
|
|
697
|
+
const C = j;
|
|
685
698
|
return (async () => {
|
|
686
|
-
switch (
|
|
699
|
+
switch (C.type) {
|
|
687
700
|
case _3: {
|
|
688
|
-
let
|
|
689
|
-
|
|
701
|
+
let O = new URLSearchParams(window.location.search).get("token");
|
|
702
|
+
O ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, O)) : (O = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = O, await t(u.dispatch), await g(u.dispatch, u.getState);
|
|
690
703
|
break;
|
|
691
704
|
}
|
|
692
|
-
case
|
|
705
|
+
case $3:
|
|
693
706
|
h();
|
|
694
707
|
break;
|
|
695
|
-
case
|
|
708
|
+
case P3:
|
|
696
709
|
f(
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
710
|
+
C.payload.messageType,
|
|
711
|
+
C.payload.content,
|
|
712
|
+
u.getState
|
|
700
713
|
);
|
|
701
714
|
break;
|
|
702
715
|
case L3:
|
|
703
716
|
d(
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
717
|
+
C.payload.eventType,
|
|
718
|
+
C.payload.key,
|
|
719
|
+
C.payload.callback
|
|
707
720
|
);
|
|
708
721
|
break;
|
|
709
|
-
case
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
722
|
+
case A3:
|
|
723
|
+
$(
|
|
724
|
+
C.payload.eventType,
|
|
725
|
+
C.payload.key
|
|
713
726
|
);
|
|
714
727
|
break;
|
|
715
|
-
case
|
|
716
|
-
|
|
728
|
+
case O3:
|
|
729
|
+
H(u.getState);
|
|
717
730
|
break;
|
|
718
731
|
default:
|
|
719
|
-
if (
|
|
720
|
-
|
|
732
|
+
if (j.type === U.setWebsocketIsConnected.type)
|
|
733
|
+
j.payload === !0 && (console.log(
|
|
721
734
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
722
|
-
), setTimeout(() => u
|
|
723
|
-
else if (
|
|
724
|
-
const x =
|
|
725
|
-
x.runtimeConfig.websocket.isConnected && (
|
|
735
|
+
), setTimeout(() => a(u.getState), 100));
|
|
736
|
+
else if (j.type === U.setRoomData.type) {
|
|
737
|
+
const x = u.getState(), O = j.payload;
|
|
738
|
+
x.runtimeConfig.websocket.isConnected && (O != null && O.clientId) && (console.log(
|
|
726
739
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
727
|
-
), setTimeout(() => u
|
|
728
|
-
} else if (
|
|
729
|
-
const x =
|
|
740
|
+
), setTimeout(() => a(u.getState), 100));
|
|
741
|
+
} else if (j.type === U.setCurrentRoomKey.type) {
|
|
742
|
+
const x = j.payload;
|
|
730
743
|
x && (console.log(
|
|
731
744
|
"[WebSocket Middleware] Room changed to:",
|
|
732
745
|
x,
|
|
733
746
|
", requesting room status..."
|
|
734
|
-
), setTimeout(() => u
|
|
747
|
+
), setTimeout(() => a(u.getState, x), 100));
|
|
735
748
|
}
|
|
736
749
|
break;
|
|
737
750
|
}
|
|
@@ -739,20 +752,20 @@ const g3 = {}, O1 = d1({
|
|
|
739
752
|
console.error("WebSocket middleware: Error handling action", x);
|
|
740
753
|
}), S;
|
|
741
754
|
};
|
|
742
|
-
},
|
|
755
|
+
}, Be = S2({
|
|
743
756
|
appConfig: be,
|
|
744
757
|
runtimeConfig: _e,
|
|
745
758
|
rooms: Te,
|
|
746
759
|
devices: ye,
|
|
747
760
|
ui: je
|
|
748
761
|
}), ke = j2({
|
|
749
|
-
reducer:
|
|
762
|
+
reducer: Be,
|
|
750
763
|
middleware: (e) => e({
|
|
751
764
|
serializableCheck: {
|
|
752
765
|
// Ignore WebSocket actions with callbacks
|
|
753
766
|
ignoredActions: ["websocket/addEventHandler"]
|
|
754
767
|
}
|
|
755
|
-
}).concat(
|
|
768
|
+
}).concat(Oe())
|
|
756
769
|
}), f3 = M3.create();
|
|
757
770
|
function k6() {
|
|
758
771
|
const e = W1();
|
|
@@ -778,7 +791,7 @@ function k6() {
|
|
|
778
791
|
return !0;
|
|
779
792
|
};
|
|
780
793
|
}
|
|
781
|
-
var
|
|
794
|
+
var M1 = { exports: {} }, i1 = {};
|
|
782
795
|
/**
|
|
783
796
|
* @license React
|
|
784
797
|
* react-jsx-runtime.production.min.js
|
|
@@ -790,19 +803,19 @@ var m1 = { exports: {} }, l1 = {};
|
|
|
790
803
|
*/
|
|
791
804
|
var w3;
|
|
792
805
|
function We() {
|
|
793
|
-
if (w3) return
|
|
806
|
+
if (w3) return i1;
|
|
794
807
|
w3 = 1;
|
|
795
808
|
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
796
|
-
function
|
|
797
|
-
var d,
|
|
798
|
-
f !== void 0 && (
|
|
799
|
-
for (d in h) c.call(h, d) && !l.hasOwnProperty(d) && (
|
|
800
|
-
if (g && g.defaultProps) for (d in h = g.defaultProps, h)
|
|
801
|
-
return { $$typeof: t, type: g, key:
|
|
809
|
+
function a(g, h, f) {
|
|
810
|
+
var d, $ = {}, H = null, u = null;
|
|
811
|
+
f !== void 0 && (H = "" + f), h.key !== void 0 && (H = "" + h.key), h.ref !== void 0 && (u = h.ref);
|
|
812
|
+
for (d in h) c.call(h, d) && !l.hasOwnProperty(d) && ($[d] = h[d]);
|
|
813
|
+
if (g && g.defaultProps) for (d in h = g.defaultProps, h) $[d] === void 0 && ($[d] = h[d]);
|
|
814
|
+
return { $$typeof: t, type: g, key: H, ref: u, props: $, _owner: r.current };
|
|
802
815
|
}
|
|
803
|
-
return
|
|
816
|
+
return i1.Fragment = o, i1.jsx = a, i1.jsxs = a, i1;
|
|
804
817
|
}
|
|
805
|
-
var
|
|
818
|
+
var a1 = {};
|
|
806
819
|
/**
|
|
807
820
|
* @license React
|
|
808
821
|
* react-jsx-runtime.development.js
|
|
@@ -812,47 +825,47 @@ var i1 = {};
|
|
|
812
825
|
* This source code is licensed under the MIT license found in the
|
|
813
826
|
* LICENSE file in the root directory of this source tree.
|
|
814
827
|
*/
|
|
815
|
-
var
|
|
828
|
+
var m3;
|
|
816
829
|
function Ve() {
|
|
817
|
-
return
|
|
818
|
-
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"),
|
|
830
|
+
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
831
|
+
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
|
|
819
832
|
function S(s) {
|
|
820
833
|
if (s === null || typeof s != "object")
|
|
821
834
|
return null;
|
|
822
|
-
var i = Z && s[Z] || s[
|
|
835
|
+
var i = Z && s[Z] || s[j];
|
|
823
836
|
return typeof i == "function" ? i : null;
|
|
824
837
|
}
|
|
825
|
-
var
|
|
838
|
+
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
826
839
|
function x(s) {
|
|
827
840
|
{
|
|
828
|
-
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0),
|
|
829
|
-
v[
|
|
830
|
-
|
|
841
|
+
for (var i = arguments.length, v = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
842
|
+
v[p - 1] = arguments[p];
|
|
843
|
+
O("error", s, v);
|
|
831
844
|
}
|
|
832
845
|
}
|
|
833
|
-
function
|
|
846
|
+
function O(s, i, v) {
|
|
834
847
|
{
|
|
835
|
-
var
|
|
848
|
+
var p = C.ReactDebugCurrentFrame, E = p.getStackAddendum();
|
|
836
849
|
E !== "" && (i += "%s", v = v.concat([E]));
|
|
837
|
-
var T = v.map(function(
|
|
838
|
-
return String(
|
|
850
|
+
var T = v.map(function(I) {
|
|
851
|
+
return String(I);
|
|
839
852
|
});
|
|
840
853
|
T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
|
|
841
854
|
}
|
|
842
855
|
}
|
|
843
|
-
var
|
|
844
|
-
|
|
856
|
+
var o1 = !1, F = !1, B = !1, _ = !1, z = !1, s1;
|
|
857
|
+
s1 = Symbol.for("react.module.reference");
|
|
845
858
|
function b1(s) {
|
|
846
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || _ || s ===
|
|
859
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === d || _ || s === u || o1 || F || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === $ || s.$$typeof === a || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
|
|
847
860
|
// types supported by any Flight configuration anywhere since
|
|
848
861
|
// we don't know which Flight build this will end up being used
|
|
849
862
|
// with.
|
|
850
|
-
s.$$typeof ===
|
|
863
|
+
s.$$typeof === s1 || s.getModuleId !== void 0));
|
|
851
864
|
}
|
|
852
865
|
function U3(s, i, v) {
|
|
853
|
-
var
|
|
854
|
-
if (
|
|
855
|
-
return
|
|
866
|
+
var p = s.displayName;
|
|
867
|
+
if (p)
|
|
868
|
+
return p;
|
|
856
869
|
var E = i.displayName || i.name || "";
|
|
857
870
|
return E !== "" ? v + "(" + E + ")" : v;
|
|
858
871
|
}
|
|
@@ -885,18 +898,18 @@ function Ve() {
|
|
|
885
898
|
case g:
|
|
886
899
|
var i = s;
|
|
887
900
|
return U1(i) + ".Consumer";
|
|
888
|
-
case
|
|
901
|
+
case a:
|
|
889
902
|
var v = s;
|
|
890
903
|
return U1(v._context) + ".Provider";
|
|
891
904
|
case h:
|
|
892
905
|
return U3(s, s.render, "ForwardRef");
|
|
893
|
-
case
|
|
894
|
-
var
|
|
895
|
-
return
|
|
896
|
-
case
|
|
897
|
-
var E = s, T = E._payload,
|
|
906
|
+
case $:
|
|
907
|
+
var p = s.displayName || null;
|
|
908
|
+
return p !== null ? p : J(s.type) || "Memo";
|
|
909
|
+
case H: {
|
|
910
|
+
var E = s, T = E._payload, I = E._init;
|
|
898
911
|
try {
|
|
899
|
-
return J(
|
|
912
|
+
return J(I(T));
|
|
900
913
|
} catch {
|
|
901
914
|
return null;
|
|
902
915
|
}
|
|
@@ -904,14 +917,14 @@ function Ve() {
|
|
|
904
917
|
}
|
|
905
918
|
return null;
|
|
906
919
|
}
|
|
907
|
-
var
|
|
920
|
+
var X = Object.assign, c1 = 0, H1, F1, K1, q1, G1, Y1, z1;
|
|
908
921
|
function J1() {
|
|
909
922
|
}
|
|
910
923
|
J1.__reactDisabledLog = !0;
|
|
911
|
-
function
|
|
924
|
+
function H3() {
|
|
912
925
|
{
|
|
913
|
-
if (
|
|
914
|
-
|
|
926
|
+
if (c1 === 0) {
|
|
927
|
+
H1 = console.log, F1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
|
|
915
928
|
var s = {
|
|
916
929
|
configurable: !0,
|
|
917
930
|
enumerable: !0,
|
|
@@ -928,133 +941,133 @@ function Ve() {
|
|
|
928
941
|
groupEnd: s
|
|
929
942
|
});
|
|
930
943
|
}
|
|
931
|
-
|
|
944
|
+
c1++;
|
|
932
945
|
}
|
|
933
946
|
}
|
|
934
|
-
function
|
|
947
|
+
function F3() {
|
|
935
948
|
{
|
|
936
|
-
if (
|
|
949
|
+
if (c1--, c1 === 0) {
|
|
937
950
|
var s = {
|
|
938
951
|
configurable: !0,
|
|
939
952
|
enumerable: !0,
|
|
940
953
|
writable: !0
|
|
941
954
|
};
|
|
942
955
|
Object.defineProperties(console, {
|
|
943
|
-
log:
|
|
944
|
-
value: F1
|
|
945
|
-
}),
|
|
946
|
-
info: Q({}, s, {
|
|
956
|
+
log: X({}, s, {
|
|
947
957
|
value: H1
|
|
948
958
|
}),
|
|
949
|
-
|
|
959
|
+
info: X({}, s, {
|
|
960
|
+
value: F1
|
|
961
|
+
}),
|
|
962
|
+
warn: X({}, s, {
|
|
950
963
|
value: K1
|
|
951
964
|
}),
|
|
952
|
-
error:
|
|
965
|
+
error: X({}, s, {
|
|
953
966
|
value: q1
|
|
954
967
|
}),
|
|
955
|
-
group:
|
|
968
|
+
group: X({}, s, {
|
|
956
969
|
value: G1
|
|
957
970
|
}),
|
|
958
|
-
groupCollapsed:
|
|
971
|
+
groupCollapsed: X({}, s, {
|
|
959
972
|
value: Y1
|
|
960
973
|
}),
|
|
961
|
-
groupEnd:
|
|
974
|
+
groupEnd: X({}, s, {
|
|
962
975
|
value: z1
|
|
963
976
|
})
|
|
964
977
|
});
|
|
965
978
|
}
|
|
966
|
-
|
|
979
|
+
c1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
967
980
|
}
|
|
968
981
|
}
|
|
969
|
-
var y1 =
|
|
970
|
-
function
|
|
982
|
+
var y1 = C.ReactCurrentDispatcher, I1;
|
|
983
|
+
function h1(s, i, v) {
|
|
971
984
|
{
|
|
972
985
|
if (I1 === void 0)
|
|
973
986
|
try {
|
|
974
987
|
throw Error();
|
|
975
988
|
} catch (E) {
|
|
976
|
-
var
|
|
977
|
-
I1 =
|
|
989
|
+
var p = E.stack.trim().match(/\n( *(at )?)/);
|
|
990
|
+
I1 = p && p[1] || "";
|
|
978
991
|
}
|
|
979
992
|
return `
|
|
980
993
|
` + I1 + s;
|
|
981
994
|
}
|
|
982
995
|
}
|
|
983
|
-
var R1 = !1,
|
|
996
|
+
var R1 = !1, g1;
|
|
984
997
|
{
|
|
985
998
|
var K3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
986
|
-
|
|
999
|
+
g1 = new K3();
|
|
987
1000
|
}
|
|
988
1001
|
function X1(s, i) {
|
|
989
1002
|
if (!s || R1)
|
|
990
1003
|
return "";
|
|
991
1004
|
{
|
|
992
|
-
var v =
|
|
1005
|
+
var v = g1.get(s);
|
|
993
1006
|
if (v !== void 0)
|
|
994
1007
|
return v;
|
|
995
1008
|
}
|
|
996
|
-
var
|
|
1009
|
+
var p;
|
|
997
1010
|
R1 = !0;
|
|
998
1011
|
var E = Error.prepareStackTrace;
|
|
999
1012
|
Error.prepareStackTrace = void 0;
|
|
1000
1013
|
var T;
|
|
1001
|
-
T = y1.current, y1.current = null,
|
|
1014
|
+
T = y1.current, y1.current = null, H3();
|
|
1002
1015
|
try {
|
|
1003
1016
|
if (i) {
|
|
1004
|
-
var
|
|
1017
|
+
var I = function() {
|
|
1005
1018
|
throw Error();
|
|
1006
1019
|
};
|
|
1007
|
-
if (Object.defineProperty(
|
|
1020
|
+
if (Object.defineProperty(I.prototype, "props", {
|
|
1008
1021
|
set: function() {
|
|
1009
1022
|
throw Error();
|
|
1010
1023
|
}
|
|
1011
1024
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1012
1025
|
try {
|
|
1013
|
-
Reflect.construct(
|
|
1026
|
+
Reflect.construct(I, []);
|
|
1014
1027
|
} catch (V) {
|
|
1015
|
-
|
|
1028
|
+
p = V;
|
|
1016
1029
|
}
|
|
1017
|
-
Reflect.construct(s, [],
|
|
1030
|
+
Reflect.construct(s, [], I);
|
|
1018
1031
|
} else {
|
|
1019
1032
|
try {
|
|
1020
|
-
|
|
1033
|
+
I.call();
|
|
1021
1034
|
} catch (V) {
|
|
1022
|
-
|
|
1035
|
+
p = V;
|
|
1023
1036
|
}
|
|
1024
|
-
s.call(
|
|
1037
|
+
s.call(I.prototype);
|
|
1025
1038
|
}
|
|
1026
1039
|
} else {
|
|
1027
1040
|
try {
|
|
1028
1041
|
throw Error();
|
|
1029
1042
|
} catch (V) {
|
|
1030
|
-
|
|
1043
|
+
p = V;
|
|
1031
1044
|
}
|
|
1032
1045
|
s();
|
|
1033
1046
|
}
|
|
1034
1047
|
} catch (V) {
|
|
1035
|
-
if (V &&
|
|
1036
|
-
for (var
|
|
1037
|
-
`),
|
|
1038
|
-
`),
|
|
1048
|
+
if (V && p && typeof V.stack == "string") {
|
|
1049
|
+
for (var b = V.stack.split(`
|
|
1050
|
+
`), k = p.stack.split(`
|
|
1051
|
+
`), P = b.length - 1, L = k.length - 1; P >= 1 && L >= 0 && b[P] !== k[L]; )
|
|
1039
1052
|
L--;
|
|
1040
|
-
for (;
|
|
1041
|
-
if (
|
|
1042
|
-
if (
|
|
1053
|
+
for (; P >= 1 && L >= 0; P--, L--)
|
|
1054
|
+
if (b[P] !== k[L]) {
|
|
1055
|
+
if (P !== 1 || L !== 1)
|
|
1043
1056
|
do
|
|
1044
|
-
if (
|
|
1045
|
-
var
|
|
1046
|
-
` +
|
|
1047
|
-
return s.displayName &&
|
|
1057
|
+
if (P--, L--, L < 0 || b[P] !== k[L]) {
|
|
1058
|
+
var K = `
|
|
1059
|
+
` + b[P].replace(" at new ", " at ");
|
|
1060
|
+
return s.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", s.displayName)), typeof s == "function" && g1.set(s, K), K;
|
|
1048
1061
|
}
|
|
1049
|
-
while (
|
|
1062
|
+
while (P >= 1 && L >= 0);
|
|
1050
1063
|
break;
|
|
1051
1064
|
}
|
|
1052
1065
|
}
|
|
1053
1066
|
} finally {
|
|
1054
|
-
R1 = !1, y1.current = T,
|
|
1067
|
+
R1 = !1, y1.current = T, F3(), Error.prepareStackTrace = E;
|
|
1055
1068
|
}
|
|
1056
|
-
var n1 = s ? s.displayName || s.name : "",
|
|
1057
|
-
return typeof s == "function" &&
|
|
1069
|
+
var n1 = s ? s.displayName || s.name : "", Q = n1 ? h1(n1) : "";
|
|
1070
|
+
return typeof s == "function" && g1.set(s, Q), Q;
|
|
1058
1071
|
}
|
|
1059
1072
|
function q3(s, i, v) {
|
|
1060
1073
|
return X1(s, !1);
|
|
@@ -1063,59 +1076,59 @@ function Ve() {
|
|
|
1063
1076
|
var i = s.prototype;
|
|
1064
1077
|
return !!(i && i.isReactComponent);
|
|
1065
1078
|
}
|
|
1066
|
-
function
|
|
1079
|
+
function f1(s, i, v) {
|
|
1067
1080
|
if (s == null)
|
|
1068
1081
|
return "";
|
|
1069
1082
|
if (typeof s == "function")
|
|
1070
1083
|
return X1(s, G3(s));
|
|
1071
1084
|
if (typeof s == "string")
|
|
1072
|
-
return
|
|
1085
|
+
return h1(s);
|
|
1073
1086
|
switch (s) {
|
|
1074
1087
|
case f:
|
|
1075
|
-
return
|
|
1088
|
+
return h1("Suspense");
|
|
1076
1089
|
case d:
|
|
1077
|
-
return
|
|
1090
|
+
return h1("SuspenseList");
|
|
1078
1091
|
}
|
|
1079
1092
|
if (typeof s == "object")
|
|
1080
1093
|
switch (s.$$typeof) {
|
|
1081
1094
|
case h:
|
|
1082
1095
|
return q3(s.render);
|
|
1083
|
-
case
|
|
1084
|
-
return
|
|
1085
|
-
case
|
|
1086
|
-
var
|
|
1096
|
+
case $:
|
|
1097
|
+
return f1(s.type, i, v);
|
|
1098
|
+
case H: {
|
|
1099
|
+
var p = s, E = p._payload, T = p._init;
|
|
1087
1100
|
try {
|
|
1088
|
-
return
|
|
1101
|
+
return f1(T(E), i, v);
|
|
1089
1102
|
} catch {
|
|
1090
1103
|
}
|
|
1091
1104
|
}
|
|
1092
1105
|
}
|
|
1093
1106
|
return "";
|
|
1094
1107
|
}
|
|
1095
|
-
var
|
|
1096
|
-
function
|
|
1108
|
+
var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = C.ReactDebugCurrentFrame;
|
|
1109
|
+
function w1(s) {
|
|
1097
1110
|
if (s) {
|
|
1098
|
-
var i = s._owner, v =
|
|
1111
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1099
1112
|
N1.setExtraStackFrame(v);
|
|
1100
1113
|
} else
|
|
1101
1114
|
N1.setExtraStackFrame(null);
|
|
1102
1115
|
}
|
|
1103
|
-
function Y3(s, i, v,
|
|
1116
|
+
function Y3(s, i, v, p, E) {
|
|
1104
1117
|
{
|
|
1105
|
-
var T = Function.call.bind(
|
|
1106
|
-
for (var
|
|
1107
|
-
if (T(s,
|
|
1108
|
-
var
|
|
1118
|
+
var T = Function.call.bind(r1);
|
|
1119
|
+
for (var I in s)
|
|
1120
|
+
if (T(s, I)) {
|
|
1121
|
+
var b = void 0;
|
|
1109
1122
|
try {
|
|
1110
|
-
if (typeof s[
|
|
1111
|
-
var
|
|
1112
|
-
throw
|
|
1123
|
+
if (typeof s[I] != "function") {
|
|
1124
|
+
var k = Error((p || "React class") + ": " + v + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1125
|
+
throw k.name = "Invariant Violation", k;
|
|
1113
1126
|
}
|
|
1114
|
-
|
|
1115
|
-
} catch (
|
|
1116
|
-
|
|
1127
|
+
b = s[I](i, I, p, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1128
|
+
} catch (P) {
|
|
1129
|
+
b = P;
|
|
1117
1130
|
}
|
|
1118
|
-
|
|
1131
|
+
b && !(b instanceof Error) && (w1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", v, I, typeof b), w1(null)), b instanceof Error && !(b.message in Q1) && (Q1[b.message] = !0, w1(E), x("Failed %s type: %s", v, b.message), w1(null));
|
|
1119
1132
|
}
|
|
1120
1133
|
}
|
|
1121
1134
|
}
|
|
@@ -1143,14 +1156,14 @@ function Ve() {
|
|
|
1143
1156
|
if (X3(s))
|
|
1144
1157
|
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
|
|
1145
1158
|
}
|
|
1146
|
-
var n3 =
|
|
1159
|
+
var n3 = C.ReactCurrentOwner, Q3 = {
|
|
1147
1160
|
key: !0,
|
|
1148
1161
|
ref: !0,
|
|
1149
1162
|
__self: !0,
|
|
1150
1163
|
__source: !0
|
|
1151
1164
|
}, o3, s3;
|
|
1152
1165
|
function N3(s) {
|
|
1153
|
-
if (
|
|
1166
|
+
if (r1.call(s, "ref")) {
|
|
1154
1167
|
var i = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
1155
1168
|
if (i && i.isReactWarning)
|
|
1156
1169
|
return !1;
|
|
@@ -1158,7 +1171,7 @@ function Ve() {
|
|
|
1158
1171
|
return s.ref !== void 0;
|
|
1159
1172
|
}
|
|
1160
1173
|
function e2(s) {
|
|
1161
|
-
if (
|
|
1174
|
+
if (r1.call(s, "key")) {
|
|
1162
1175
|
var i = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
1163
1176
|
if (i && i.isReactWarning)
|
|
1164
1177
|
return !1;
|
|
@@ -1190,57 +1203,57 @@ function Ve() {
|
|
|
1190
1203
|
});
|
|
1191
1204
|
}
|
|
1192
1205
|
}
|
|
1193
|
-
var s2 = function(s, i, v,
|
|
1194
|
-
var
|
|
1206
|
+
var s2 = function(s, i, v, p, E, T, I) {
|
|
1207
|
+
var b = {
|
|
1195
1208
|
// This tag allows us to uniquely identify this as a React Element
|
|
1196
1209
|
$$typeof: t,
|
|
1197
1210
|
// Built-in properties that belong on the element
|
|
1198
1211
|
type: s,
|
|
1199
1212
|
key: i,
|
|
1200
1213
|
ref: v,
|
|
1201
|
-
props:
|
|
1214
|
+
props: I,
|
|
1202
1215
|
// Record the component responsible for creating this element.
|
|
1203
1216
|
_owner: T
|
|
1204
1217
|
};
|
|
1205
|
-
return
|
|
1218
|
+
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
1206
1219
|
configurable: !1,
|
|
1207
1220
|
enumerable: !1,
|
|
1208
1221
|
writable: !0,
|
|
1209
1222
|
value: !1
|
|
1210
|
-
}), Object.defineProperty(
|
|
1223
|
+
}), Object.defineProperty(b, "_self", {
|
|
1211
1224
|
configurable: !1,
|
|
1212
1225
|
enumerable: !1,
|
|
1213
1226
|
writable: !1,
|
|
1214
|
-
value:
|
|
1215
|
-
}), Object.defineProperty(
|
|
1227
|
+
value: p
|
|
1228
|
+
}), Object.defineProperty(b, "_source", {
|
|
1216
1229
|
configurable: !1,
|
|
1217
1230
|
enumerable: !1,
|
|
1218
1231
|
writable: !1,
|
|
1219
1232
|
value: E
|
|
1220
|
-
}), Object.freeze && (Object.freeze(
|
|
1233
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
1221
1234
|
};
|
|
1222
|
-
function c2(s, i, v,
|
|
1235
|
+
function c2(s, i, v, p, E) {
|
|
1223
1236
|
{
|
|
1224
|
-
var T,
|
|
1225
|
-
v !== void 0 && (t3(v),
|
|
1237
|
+
var T, I = {}, b = null, k = null;
|
|
1238
|
+
v !== void 0 && (t3(v), b = "" + v), e2(i) && (t3(i.key), b = "" + i.key), N3(i) && (k = i.ref, t2(i, E));
|
|
1226
1239
|
for (T in i)
|
|
1227
|
-
|
|
1240
|
+
r1.call(i, T) && !Q3.hasOwnProperty(T) && (I[T] = i[T]);
|
|
1228
1241
|
if (s && s.defaultProps) {
|
|
1229
|
-
var
|
|
1230
|
-
for (T in
|
|
1231
|
-
|
|
1242
|
+
var P = s.defaultProps;
|
|
1243
|
+
for (T in P)
|
|
1244
|
+
I[T] === void 0 && (I[T] = P[T]);
|
|
1232
1245
|
}
|
|
1233
|
-
if (
|
|
1246
|
+
if (b || k) {
|
|
1234
1247
|
var L = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1235
|
-
|
|
1248
|
+
b && n2(I, L), k && o2(I, L);
|
|
1236
1249
|
}
|
|
1237
|
-
return s2(s,
|
|
1250
|
+
return s2(s, b, k, E, p, n3.current, I);
|
|
1238
1251
|
}
|
|
1239
1252
|
}
|
|
1240
|
-
var T1 =
|
|
1253
|
+
var T1 = C.ReactCurrentOwner, c3 = C.ReactDebugCurrentFrame;
|
|
1241
1254
|
function t1(s) {
|
|
1242
1255
|
if (s) {
|
|
1243
|
-
var i = s._owner, v =
|
|
1256
|
+
var i = s._owner, v = f1(s.type, s._source, i ? i.type : null);
|
|
1244
1257
|
c3.setExtraStackFrame(v);
|
|
1245
1258
|
} else
|
|
1246
1259
|
c3.setExtraStackFrame(null);
|
|
@@ -1287,8 +1300,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1287
1300
|
if (l3[v])
|
|
1288
1301
|
return;
|
|
1289
1302
|
l3[v] = !0;
|
|
1290
|
-
var
|
|
1291
|
-
s && s._owner && s._owner !== T1.current && (
|
|
1303
|
+
var p = "";
|
|
1304
|
+
s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), t1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, p), t1(null);
|
|
1292
1305
|
}
|
|
1293
1306
|
}
|
|
1294
1307
|
function a3(s, i) {
|
|
@@ -1297,16 +1310,16 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1297
1310
|
return;
|
|
1298
1311
|
if (E1(s))
|
|
1299
1312
|
for (var v = 0; v < s.length; v++) {
|
|
1300
|
-
var
|
|
1301
|
-
_1(
|
|
1313
|
+
var p = s[v];
|
|
1314
|
+
_1(p) && i3(p, i);
|
|
1302
1315
|
}
|
|
1303
1316
|
else if (_1(s))
|
|
1304
1317
|
s._store && (s._store.validated = !0);
|
|
1305
1318
|
else if (s) {
|
|
1306
1319
|
var E = S(s);
|
|
1307
1320
|
if (typeof E == "function" && E !== s.entries)
|
|
1308
|
-
for (var T = E.call(s),
|
|
1309
|
-
_1(
|
|
1321
|
+
for (var T = E.call(s), I; !(I = T.next()).done; )
|
|
1322
|
+
_1(I.value) && i3(I.value, i);
|
|
1310
1323
|
}
|
|
1311
1324
|
}
|
|
1312
1325
|
}
|
|
@@ -1320,13 +1333,13 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1320
1333
|
v = i.propTypes;
|
|
1321
1334
|
else if (typeof i == "object" && (i.$$typeof === h || // Note: Memo only checks outer props here.
|
|
1322
1335
|
// Inner props are checked in the reconciler.
|
|
1323
|
-
i.$$typeof ===
|
|
1336
|
+
i.$$typeof === $))
|
|
1324
1337
|
v = i.propTypes;
|
|
1325
1338
|
else
|
|
1326
1339
|
return;
|
|
1327
1340
|
if (v) {
|
|
1328
|
-
var
|
|
1329
|
-
Y3(v, s.props, "prop",
|
|
1341
|
+
var p = J(i);
|
|
1342
|
+
Y3(v, s.props, "prop", p, s);
|
|
1330
1343
|
} else if (i.PropTypes !== void 0 && !D1) {
|
|
1331
1344
|
D1 = !0;
|
|
1332
1345
|
var E = J(i);
|
|
@@ -1338,9 +1351,9 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1338
1351
|
function a2(s) {
|
|
1339
1352
|
{
|
|
1340
1353
|
for (var i = Object.keys(s.props), v = 0; v < i.length; v++) {
|
|
1341
|
-
var
|
|
1342
|
-
if (
|
|
1343
|
-
t1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
1354
|
+
var p = i[v];
|
|
1355
|
+
if (p !== "children" && p !== "key") {
|
|
1356
|
+
t1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), t1(null);
|
|
1344
1357
|
break;
|
|
1345
1358
|
}
|
|
1346
1359
|
}
|
|
@@ -1348,45 +1361,45 @@ Check the top-level render call using <` + v + ">.");
|
|
|
1348
1361
|
}
|
|
1349
1362
|
}
|
|
1350
1363
|
var u3 = {};
|
|
1351
|
-
function d3(s, i, v,
|
|
1364
|
+
function d3(s, i, v, p, E, T) {
|
|
1352
1365
|
{
|
|
1353
|
-
var
|
|
1354
|
-
if (!
|
|
1355
|
-
var
|
|
1356
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
1357
|
-
var
|
|
1358
|
-
|
|
1359
|
-
var
|
|
1360
|
-
s === null ?
|
|
1366
|
+
var I = b1(s);
|
|
1367
|
+
if (!I) {
|
|
1368
|
+
var b = "";
|
|
1369
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1370
|
+
var k = r2();
|
|
1371
|
+
k ? b += k : b += r3();
|
|
1372
|
+
var P;
|
|
1373
|
+
s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (J(s.type) || "Unknown") + " />", b = " 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, b);
|
|
1361
1374
|
}
|
|
1362
1375
|
var L = c2(s, i, v, E, T);
|
|
1363
1376
|
if (L == null)
|
|
1364
1377
|
return L;
|
|
1365
|
-
if (
|
|
1366
|
-
var
|
|
1367
|
-
if (
|
|
1368
|
-
if (
|
|
1369
|
-
if (E1(
|
|
1370
|
-
for (var n1 = 0; n1 <
|
|
1371
|
-
a3(
|
|
1372
|
-
Object.freeze && Object.freeze(
|
|
1378
|
+
if (I) {
|
|
1379
|
+
var K = i.children;
|
|
1380
|
+
if (K !== void 0)
|
|
1381
|
+
if (p)
|
|
1382
|
+
if (E1(K)) {
|
|
1383
|
+
for (var n1 = 0; n1 < K.length; n1++)
|
|
1384
|
+
a3(K[n1], s);
|
|
1385
|
+
Object.freeze && Object.freeze(K);
|
|
1373
1386
|
} else
|
|
1374
1387
|
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.");
|
|
1375
1388
|
else
|
|
1376
|
-
a3(
|
|
1389
|
+
a3(K, s);
|
|
1377
1390
|
}
|
|
1378
|
-
if (
|
|
1379
|
-
var
|
|
1391
|
+
if (r1.call(i, "key")) {
|
|
1392
|
+
var Q = J(s), V = Object.keys(i).filter(function(f2) {
|
|
1380
1393
|
return f2 !== "key";
|
|
1381
|
-
}),
|
|
1382
|
-
if (!u3[
|
|
1394
|
+
}), $1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1395
|
+
if (!u3[Q + $1]) {
|
|
1383
1396
|
var g2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1384
1397
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
1385
1398
|
let props = %s;
|
|
1386
1399
|
<%s {...props} />
|
|
1387
1400
|
React keys must be passed directly to JSX without using spread:
|
|
1388
1401
|
let props = %s;
|
|
1389
|
-
<%s key={someKey} {...props} />`,
|
|
1402
|
+
<%s key={someKey} {...props} />`, $1, Q, g2, Q), u3[Q + $1] = !0;
|
|
1390
1403
|
}
|
|
1391
1404
|
}
|
|
1392
1405
|
return s === c ? a2(L) : i2(L), L;
|
|
@@ -1399,20 +1412,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1399
1412
|
return d3(s, i, v, !1);
|
|
1400
1413
|
}
|
|
1401
1414
|
var v2 = d2, h2 = u2;
|
|
1402
|
-
|
|
1403
|
-
})()),
|
|
1415
|
+
a1.Fragment = c, a1.jsx = v2, a1.jsxs = h2;
|
|
1416
|
+
})()), a1;
|
|
1404
1417
|
}
|
|
1405
|
-
var
|
|
1418
|
+
var p3;
|
|
1406
1419
|
function Ue() {
|
|
1407
|
-
return
|
|
1420
|
+
return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? M1.exports = We() : M1.exports = Ve()), M1.exports;
|
|
1408
1421
|
}
|
|
1409
1422
|
var n = Ue();
|
|
1410
|
-
const
|
|
1411
|
-
mwfit:
|
|
1423
|
+
const He = "_mwfit_ppa3l_1", Fe = {
|
|
1424
|
+
mwfit: He
|
|
1412
1425
|
}, Ke = () => {
|
|
1413
|
-
const { reconnect: e } =
|
|
1426
|
+
const { reconnect: e } = y(), t = I3(), o = Me(), c = xe();
|
|
1414
1427
|
return /* @__PURE__ */ n.jsxs("div", { className: "vh-100 d-flex flex-column flex-grow-1 justify-content-center align-items-center gap-5 ", children: [
|
|
1415
|
-
/* @__PURE__ */ n.jsxs("div", { className: `${
|
|
1428
|
+
/* @__PURE__ */ n.jsxs("div", { className: `${Fe.mwfit} mx-auto text-center`, children: [
|
|
1416
1429
|
t === void 0 ? /* @__PURE__ */ n.jsx("h2", { children: "Connecting..." }) : /* @__PURE__ */ n.jsx("h2", { children: "Disconnected" }),
|
|
1417
1430
|
o && /* @__PURE__ */ n.jsx("h5", { className: "mt-1", children: o })
|
|
1418
1431
|
] }),
|
|
@@ -1426,31 +1439,31 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1426
1439
|
reconnect: () => null
|
|
1427
1440
|
}), qe = ({ children: e }) => {
|
|
1428
1441
|
const t = W1(), o = I3();
|
|
1429
|
-
|
|
1430
|
-
t(
|
|
1442
|
+
Z1(() => {
|
|
1443
|
+
t(B3());
|
|
1431
1444
|
}, [t]);
|
|
1432
|
-
const c =
|
|
1445
|
+
const c = l1(
|
|
1433
1446
|
(h, f) => {
|
|
1434
|
-
t(
|
|
1447
|
+
t($e(h, f));
|
|
1435
1448
|
},
|
|
1436
1449
|
[t]
|
|
1437
|
-
), r =
|
|
1450
|
+
), r = l1(
|
|
1438
1451
|
(h, f) => {
|
|
1439
1452
|
c(h, { value: f });
|
|
1440
1453
|
},
|
|
1441
1454
|
[c]
|
|
1442
|
-
), l =
|
|
1455
|
+
), l = l1(
|
|
1443
1456
|
(h, f, d) => {
|
|
1444
|
-
t(
|
|
1457
|
+
t(Pe(h, f, d));
|
|
1445
1458
|
},
|
|
1446
1459
|
[t]
|
|
1447
|
-
),
|
|
1460
|
+
), a = l1(
|
|
1448
1461
|
(h, f) => {
|
|
1449
1462
|
t(Le(h, f));
|
|
1450
1463
|
},
|
|
1451
1464
|
[t]
|
|
1452
|
-
), g =
|
|
1453
|
-
t(
|
|
1465
|
+
), g = l1(() => {
|
|
1466
|
+
t(Ae());
|
|
1454
1467
|
}, [t]);
|
|
1455
1468
|
return /* @__PURE__ */ n.jsx(
|
|
1456
1469
|
k3.Provider,
|
|
@@ -1459,14 +1472,14 @@ const Fe = "_mwfit_ppa3l_1", He = {
|
|
|
1459
1472
|
sendMessage: c,
|
|
1460
1473
|
sendSimpleMessage: r,
|
|
1461
1474
|
addEventHandler: l,
|
|
1462
|
-
removeEventHandler:
|
|
1475
|
+
removeEventHandler: a,
|
|
1463
1476
|
reconnect: g
|
|
1464
1477
|
},
|
|
1465
1478
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
1466
1479
|
}
|
|
1467
1480
|
);
|
|
1468
1481
|
}, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: ke, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
|
|
1469
|
-
function
|
|
1482
|
+
function y() {
|
|
1470
1483
|
return b2(k3);
|
|
1471
1484
|
}
|
|
1472
1485
|
function Ge({
|
|
@@ -1476,17 +1489,17 @@ function Ge({
|
|
|
1476
1489
|
onPressedButNotHeld: c,
|
|
1477
1490
|
holdTimeMs: r = 500
|
|
1478
1491
|
}) {
|
|
1479
|
-
const l =
|
|
1492
|
+
const l = d1(null), a = d1(!1), g = d1(!1);
|
|
1480
1493
|
function h() {
|
|
1481
|
-
|
|
1494
|
+
a.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
|
|
1482
1495
|
g.current = !0, o == null || o(), l.current = null;
|
|
1483
1496
|
}, r);
|
|
1484
1497
|
}
|
|
1485
1498
|
function f() {
|
|
1486
|
-
|
|
1499
|
+
a.current = !1, t == null || t(), l.current && (clearTimeout(l.current), l.current = null, g.current || c == null || c());
|
|
1487
1500
|
}
|
|
1488
1501
|
function d() {
|
|
1489
|
-
|
|
1502
|
+
a.current && f();
|
|
1490
1503
|
}
|
|
1491
1504
|
return {
|
|
1492
1505
|
onPointerDown: h,
|
|
@@ -1495,36 +1508,36 @@ function Ge({
|
|
|
1495
1508
|
};
|
|
1496
1509
|
}
|
|
1497
1510
|
function w(e, t) {
|
|
1498
|
-
const { sendMessage: c } =
|
|
1511
|
+
const { sendMessage: c } = y(), r = d1(null);
|
|
1499
1512
|
function l() {
|
|
1500
1513
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1501
1514
|
c(`${e}/${t}`, { value: "held" });
|
|
1502
1515
|
}, 250));
|
|
1503
1516
|
}
|
|
1504
|
-
function
|
|
1517
|
+
function a() {
|
|
1505
1518
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1506
1519
|
}
|
|
1507
|
-
return Ge({ onPress: l, onRelease:
|
|
1520
|
+
return Ge({ onPress: l, onRelease: a });
|
|
1508
1521
|
}
|
|
1509
|
-
function
|
|
1510
|
-
const { sendMessage: t } =
|
|
1511
|
-
return
|
|
1522
|
+
function C1(e) {
|
|
1523
|
+
const { sendMessage: t } = y(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1524
|
+
return N(() => ({
|
|
1512
1525
|
volumeUp: o,
|
|
1513
1526
|
volumeDown: c,
|
|
1514
1527
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1515
1528
|
}), [e, t, o, c]);
|
|
1516
1529
|
}
|
|
1517
1530
|
function V6(e) {
|
|
1518
|
-
const { sendMessage: t } =
|
|
1519
|
-
return
|
|
1531
|
+
const { sendMessage: t } = y(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
|
|
1532
|
+
return N(() => ({
|
|
1520
1533
|
volumeUp: o,
|
|
1521
1534
|
volumeDown: c,
|
|
1522
1535
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1523
1536
|
}), [e, t, o, c]);
|
|
1524
1537
|
}
|
|
1525
1538
|
function W3(e, t) {
|
|
1526
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1527
|
-
return
|
|
1539
|
+
const { sendMessage: o, sendSimpleMessage: c } = y(), r = C1(e);
|
|
1540
|
+
return N(() => {
|
|
1528
1541
|
if (!r) {
|
|
1529
1542
|
console.log("baseVolume is undefined");
|
|
1530
1543
|
return;
|
|
@@ -1543,8 +1556,8 @@ function W3(e, t) {
|
|
|
1543
1556
|
}, [r, t, e, o, c]);
|
|
1544
1557
|
}
|
|
1545
1558
|
function U6(e, t) {
|
|
1546
|
-
const { sendMessage: o, sendSimpleMessage: c } =
|
|
1547
|
-
return
|
|
1559
|
+
const { sendMessage: o, sendSimpleMessage: c } = y(), r = C1(e);
|
|
1560
|
+
return N(() => !r || !t ? void 0 : {
|
|
1548
1561
|
...r,
|
|
1549
1562
|
volumeState: t,
|
|
1550
1563
|
setLevel: (h) => c(`${e}/level`, h),
|
|
@@ -1553,30 +1566,31 @@ function U6(e, t) {
|
|
|
1553
1566
|
}, [r, t, e, o, c]);
|
|
1554
1567
|
}
|
|
1555
1568
|
function Ye(e) {
|
|
1556
|
-
const t = D(e), o = `/device/${e}`, c =
|
|
1569
|
+
const t = D(e), o = `/device/${e}`, c = N(() => {
|
|
1557
1570
|
if (t)
|
|
1558
1571
|
return t.volume;
|
|
1559
1572
|
}, [t]);
|
|
1560
1573
|
return W3(o, c);
|
|
1561
1574
|
}
|
|
1562
1575
|
function V3(e) {
|
|
1563
|
-
|
|
1576
|
+
var a;
|
|
1577
|
+
const { sendMessage: t } = y(), o = (a = D(e)) == null ? void 0 : a.powerState;
|
|
1564
1578
|
return { powerOn: () => {
|
|
1565
1579
|
t(`/device/${e}/powerOn`, null);
|
|
1566
1580
|
}, powerOff: () => {
|
|
1567
1581
|
t(`/device/${e}/powerOff`, null);
|
|
1568
1582
|
}, powerToggle: () => {
|
|
1569
1583
|
t(`/device/${e}/powerToggle`, null);
|
|
1570
|
-
} };
|
|
1584
|
+
}, powerState: o };
|
|
1571
1585
|
}
|
|
1572
1586
|
function k1(e) {
|
|
1573
|
-
const { sendMessage: t } =
|
|
1587
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1574
1588
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1575
1589
|
t(`/device/${e}/${r}`, null);
|
|
1576
1590
|
} } : void 0;
|
|
1577
1591
|
}
|
|
1578
1592
|
function ze(e) {
|
|
1579
|
-
const { sendMessage: t } =
|
|
1593
|
+
const { sendMessage: t } = y(), o = D(e), c = () => {
|
|
1580
1594
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1581
1595
|
}, r = () => {
|
|
1582
1596
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1586,20 +1600,20 @@ function ze(e) {
|
|
|
1586
1600
|
};
|
|
1587
1601
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1588
1602
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const t = D(e), o = V3(e), c = k1(e), r = k1(e), l = Ye(e),
|
|
1603
|
+
function H6(e) {
|
|
1604
|
+
const t = D(e), o = V3(e), c = k1(e), r = k1(e), l = Ye(e), a = ze(e);
|
|
1591
1605
|
if (t)
|
|
1592
1606
|
return {
|
|
1593
1607
|
avrState: t,
|
|
1594
1608
|
powerControl: o,
|
|
1595
1609
|
inputControl: c,
|
|
1596
1610
|
surroundSoundModes: r,
|
|
1597
|
-
surroundChannels:
|
|
1611
|
+
surroundChannels: a,
|
|
1598
1612
|
mainVolumeControl: l
|
|
1599
1613
|
};
|
|
1600
1614
|
}
|
|
1601
|
-
function
|
|
1602
|
-
const { sendMessage: t } =
|
|
1615
|
+
function F6(e) {
|
|
1616
|
+
const { sendMessage: t } = y(), o = `/device/${e}`, c = D(e), r = w(o, "cameraUp"), l = w(o, "cameraDown"), a = w(o, "cameraLeft"), g = w(o, "cameraRight"), h = w(o, "cameraZoomIn"), f = w(o, "cameraZoomOut"), d = ($) => t("/camera/recallPreset", $);
|
|
1603
1617
|
if (c)
|
|
1604
1618
|
return {
|
|
1605
1619
|
state: c,
|
|
@@ -1607,14 +1621,14 @@ function H6(e) {
|
|
|
1607
1621
|
zoomOut: f,
|
|
1608
1622
|
up: r,
|
|
1609
1623
|
down: l,
|
|
1610
|
-
left:
|
|
1624
|
+
left: a,
|
|
1611
1625
|
right: g,
|
|
1612
1626
|
recallPreset: d
|
|
1613
1627
|
};
|
|
1614
1628
|
}
|
|
1615
1629
|
const K6 = ({ className: e }) => {
|
|
1616
1630
|
const [t, o] = Y();
|
|
1617
|
-
return
|
|
1631
|
+
return Z1(() => {
|
|
1618
1632
|
setInterval(() => {
|
|
1619
1633
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1620
1634
|
o(c);
|
|
@@ -1625,11 +1639,11 @@ const K6 = ({ className: e }) => {
|
|
|
1625
1639
|
] });
|
|
1626
1640
|
};
|
|
1627
1641
|
function q6(e) {
|
|
1628
|
-
const { sendMessage: t } =
|
|
1629
|
-
return o ? { state: o, recallPreset: (
|
|
1630
|
-
t(`${c}/presets/recall`, { deviceKey:
|
|
1631
|
-
}, savePresets: (
|
|
1632
|
-
t(`${c}/presets/save`,
|
|
1642
|
+
const { sendMessage: t } = y(), o = D(e), c = `/device/${e}`;
|
|
1643
|
+
return o ? { state: o, recallPreset: (a, g) => {
|
|
1644
|
+
t(`${c}/presets/recall`, { deviceKey: a, preset: g });
|
|
1645
|
+
}, savePresets: (a) => {
|
|
1646
|
+
t(`${c}/presets/save`, a);
|
|
1633
1647
|
} } : void 0;
|
|
1634
1648
|
}
|
|
1635
1649
|
function G6(e) {
|
|
@@ -1638,49 +1652,31 @@ function G6(e) {
|
|
|
1638
1652
|
return { endpointState: t };
|
|
1639
1653
|
}
|
|
1640
1654
|
function Y6(e) {
|
|
1641
|
-
const t =
|
|
1642
|
-
|
|
1643
|
-
return {
|
|
1644
|
-
state: t
|
|
1645
|
-
};
|
|
1655
|
+
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"), a = w(t, "info"), g = w(t, "exit");
|
|
1656
|
+
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: a, exit: g };
|
|
1646
1657
|
}
|
|
1647
1658
|
function z6(e) {
|
|
1648
|
-
const { sendMessage: t } = I(), o = D(e), c = X(() => {
|
|
1649
|
-
const r = `/device/${e}`;
|
|
1650
|
-
return { setEntry: (u, g, h) => t(`${r}/setEntry`, { index: u, name: g, number: h }) };
|
|
1651
|
-
}, [e, t]);
|
|
1652
|
-
if (o)
|
|
1653
|
-
return {
|
|
1654
|
-
phonebookEntries: o.phonebookEntries ?? [],
|
|
1655
|
-
...c
|
|
1656
|
-
};
|
|
1657
|
-
}
|
|
1658
|
-
function J6(e) {
|
|
1659
|
-
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown"), r = w(t, "lastChan"), l = w(t, "guide"), u = w(t, "info"), g = w(t, "exit");
|
|
1660
|
-
return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: u, exit: g };
|
|
1661
|
-
}
|
|
1662
|
-
function X6(e) {
|
|
1663
1659
|
const t = `/device/${e}`, o = w(t, "red"), c = w(t, "green"), r = w(t, "yellow"), l = w(t, "blue");
|
|
1664
1660
|
return { red: o, green: c, yellow: r, blue: l };
|
|
1665
1661
|
}
|
|
1666
|
-
function
|
|
1662
|
+
function J6(e) {
|
|
1667
1663
|
const t = D(e);
|
|
1668
1664
|
if (t)
|
|
1669
1665
|
return {
|
|
1670
1666
|
communicationMonitorState: t
|
|
1671
1667
|
};
|
|
1672
1668
|
}
|
|
1673
|
-
function
|
|
1669
|
+
function X6(e) {
|
|
1674
1670
|
const t = D(e);
|
|
1675
1671
|
if (t)
|
|
1676
1672
|
return t.deviceInfo || void 0;
|
|
1677
1673
|
}
|
|
1678
|
-
function
|
|
1679
|
-
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"),
|
|
1680
|
-
return { up: o, down: c, left: r, right: l, select:
|
|
1674
|
+
function Q6(e) {
|
|
1675
|
+
const t = `/device/${e}`, o = w(t, "up"), c = w(t, "down"), r = w(t, "left"), l = w(t, "right"), a = w(t, "select"), g = w(t, "menu"), h = w(t, "exit");
|
|
1676
|
+
return { up: o, down: c, left: r, right: l, select: a, menu: g, exit: h };
|
|
1681
1677
|
}
|
|
1682
|
-
function
|
|
1683
|
-
const { sendMessage: t } =
|
|
1678
|
+
function N6(e) {
|
|
1679
|
+
const { sendMessage: t } = y();
|
|
1684
1680
|
return { recallPreset: (c) => {
|
|
1685
1681
|
t(
|
|
1686
1682
|
`/device/${e}/recallPreset`,
|
|
@@ -1688,12 +1684,12 @@ function tt(e) {
|
|
|
1688
1684
|
);
|
|
1689
1685
|
} };
|
|
1690
1686
|
}
|
|
1691
|
-
function
|
|
1687
|
+
function et(e) {
|
|
1692
1688
|
const t = `/device/${e}`, o = w(t, "dvrList"), c = w(t, "record");
|
|
1693
1689
|
return { dvrList: o, record: c };
|
|
1694
1690
|
}
|
|
1695
|
-
function
|
|
1696
|
-
const { sendMessage: t } =
|
|
1691
|
+
function tt(e) {
|
|
1692
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1697
1693
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1698
1694
|
t(`/device/${e}/setAutoMode`, null);
|
|
1699
1695
|
}, setManualMode: () => {
|
|
@@ -1706,8 +1702,30 @@ function ot(e) {
|
|
|
1706
1702
|
t(`/device/${e}/setRoomCombinationScenario`, h);
|
|
1707
1703
|
} } : void 0;
|
|
1708
1704
|
}
|
|
1705
|
+
function nt(e) {
|
|
1706
|
+
var a;
|
|
1707
|
+
const { sendMessage: t } = y(), o = (a = D(e)) == null ? void 0 : a.cameraIsMuted, c = () => {
|
|
1708
|
+
t(`/device/${e}/cameraMuteOn`, null);
|
|
1709
|
+
}, r = () => {
|
|
1710
|
+
t(`/device/${e}/cameraMuteOff`, null);
|
|
1711
|
+
}, l = () => {
|
|
1712
|
+
t(`/device/${e}/cameraMuteToggle`, null);
|
|
1713
|
+
};
|
|
1714
|
+
if (o)
|
|
1715
|
+
return { cameraMuteOn: c, cameraMuteOff: r, cameraMuteToggle: l, cameraIsMuted: o };
|
|
1716
|
+
}
|
|
1717
|
+
function ot(e) {
|
|
1718
|
+
var l;
|
|
1719
|
+
const { sendMessage: t } = y(), o = (l = D(e)) == null ? void 0 : l.presets, c = (a) => {
|
|
1720
|
+
t(`/device/${e}/recallPreset`, a);
|
|
1721
|
+
}, r = (a) => {
|
|
1722
|
+
t(`/device/${e}/savePreset`, a);
|
|
1723
|
+
};
|
|
1724
|
+
if (o)
|
|
1725
|
+
return { recallPreset: c, savePreset: r, presets: o };
|
|
1726
|
+
}
|
|
1709
1727
|
function st(e) {
|
|
1710
|
-
const { sendMessage: t } =
|
|
1728
|
+
const { sendMessage: t } = y(), o = `/device/${e}`, c = D(e);
|
|
1711
1729
|
return c ? {
|
|
1712
1730
|
state: c,
|
|
1713
1731
|
selectCamera: (l) => {
|
|
@@ -1716,12 +1734,12 @@ function st(e) {
|
|
|
1716
1734
|
} : void 0;
|
|
1717
1735
|
}
|
|
1718
1736
|
function ct(e) {
|
|
1719
|
-
const { sendMessage: t } =
|
|
1720
|
-
return
|
|
1737
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1738
|
+
return N(() => o ? {
|
|
1721
1739
|
state: o,
|
|
1722
|
-
dial: (
|
|
1740
|
+
dial: (a) => t(`/device/${e}/dial`, { value: a }),
|
|
1723
1741
|
endAllCalls: () => t(`/device/${e}/endAllCalls`, null),
|
|
1724
|
-
sendDtmf: (
|
|
1742
|
+
sendDtmf: (a) => t(`/device/${e}/dtmf`, { value: a })
|
|
1725
1743
|
} : void 0, [e, t, o]);
|
|
1726
1744
|
}
|
|
1727
1745
|
function rt(e) {
|
|
@@ -1730,52 +1748,52 @@ function rt(e) {
|
|
|
1730
1748
|
return { state: t };
|
|
1731
1749
|
}
|
|
1732
1750
|
function lt(e) {
|
|
1733
|
-
const { sendMessage: t, sendSimpleMessage: o } =
|
|
1751
|
+
const { sendMessage: t, sendSimpleMessage: o } = y(), c = D(e), r = ne(e), l = c || r;
|
|
1734
1752
|
return l ? {
|
|
1735
1753
|
levelState: l,
|
|
1736
|
-
setLevel: (d,
|
|
1754
|
+
setLevel: (d, $) => o(`${d}/level`, $),
|
|
1737
1755
|
muteToggle: (d) => t(`${d}/muteToggle`, null),
|
|
1738
1756
|
muteOn: (d) => t(`${d}/muteOn`, null),
|
|
1739
1757
|
muteOff: (d) => t(`${d}/muteOff`, null)
|
|
1740
1758
|
} : void 0;
|
|
1741
1759
|
}
|
|
1742
1760
|
function it(e) {
|
|
1743
|
-
const { sendMessage: t } =
|
|
1761
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1744
1762
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1745
1763
|
t(`/device/${e}/selectScene`, r);
|
|
1746
1764
|
} } : void 0;
|
|
1747
1765
|
}
|
|
1748
1766
|
function at(e) {
|
|
1749
|
-
const { sendMessage: t } =
|
|
1767
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1750
1768
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1751
1769
|
t(`/device/${e}/route`, r);
|
|
1752
1770
|
} } : void 0;
|
|
1753
1771
|
}
|
|
1754
1772
|
function ut(e) {
|
|
1755
|
-
const { sendMessage: t } =
|
|
1773
|
+
const { sendMessage: t } = y();
|
|
1756
1774
|
return { closeApp: () => {
|
|
1757
1775
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1758
1776
|
} };
|
|
1759
1777
|
}
|
|
1760
1778
|
function dt(e) {
|
|
1761
|
-
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"),
|
|
1779
|
+
const t = `/device/${e}`, o = w(t, "num0"), c = w(t, "num1"), r = w(t, "num2"), l = w(t, "num3"), a = w(t, "num4"), g = w(t, "num5"), h = w(t, "num6"), f = w(t, "num7"), d = w(t, "num8"), $ = w(t, "num9"), H = w(t, "numDash"), u = w(t, "numEnter");
|
|
1762
1780
|
return {
|
|
1763
1781
|
digit0: o,
|
|
1764
1782
|
digit1: c,
|
|
1765
1783
|
digit2: r,
|
|
1766
1784
|
digit3: l,
|
|
1767
|
-
digit4:
|
|
1785
|
+
digit4: a,
|
|
1768
1786
|
digit5: g,
|
|
1769
1787
|
digit6: h,
|
|
1770
1788
|
digit7: f,
|
|
1771
1789
|
digit8: d,
|
|
1772
|
-
digit9:
|
|
1773
|
-
keypadAccessoryButton1:
|
|
1774
|
-
keypadAccessoryButton2:
|
|
1790
|
+
digit9: $,
|
|
1791
|
+
keypadAccessoryButton1: H,
|
|
1792
|
+
keypadAccessoryButton2: u
|
|
1775
1793
|
};
|
|
1776
1794
|
}
|
|
1777
1795
|
function vt(e) {
|
|
1778
|
-
const { sendMessage: t } =
|
|
1796
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1779
1797
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1780
1798
|
t(`/device/${e}/raise`, null);
|
|
1781
1799
|
}, lower: () => {
|
|
@@ -1783,35 +1801,35 @@ function vt(e) {
|
|
|
1783
1801
|
} } : void 0;
|
|
1784
1802
|
}
|
|
1785
1803
|
function ht(e) {
|
|
1786
|
-
const { sendMessage: t } =
|
|
1804
|
+
const { sendMessage: t } = y(), o = j1(e);
|
|
1787
1805
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1788
1806
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1789
1807
|
} } : void 0;
|
|
1790
1808
|
}
|
|
1791
1809
|
function gt(e) {
|
|
1792
|
-
const { sendMessage: t } =
|
|
1810
|
+
const { sendMessage: t } = y();
|
|
1793
1811
|
return { runDefaultPresentRoute: () => {
|
|
1794
1812
|
t(`/room/${e}/defaultsource`, {});
|
|
1795
1813
|
} };
|
|
1796
1814
|
}
|
|
1797
1815
|
function ft(e) {
|
|
1798
|
-
const { sendMessage: t } =
|
|
1816
|
+
const { sendMessage: t } = y();
|
|
1799
1817
|
return { runDirectRoute: (c) => {
|
|
1800
1818
|
t(`/room/${e}/directRoute`, c);
|
|
1801
1819
|
} };
|
|
1802
1820
|
}
|
|
1803
1821
|
function wt(e) {
|
|
1804
|
-
const { sendMessage: t } =
|
|
1822
|
+
const { sendMessage: t } = y();
|
|
1805
1823
|
return { routingState: D(e), runRoute: (r) => {
|
|
1806
1824
|
t(`/room/${e}/source`, r);
|
|
1807
1825
|
} };
|
|
1808
1826
|
}
|
|
1809
|
-
function
|
|
1827
|
+
function mt(e) {
|
|
1810
1828
|
const t = `/device/${e}`, o = w(t, "chanUp"), c = w(t, "chanDown");
|
|
1811
1829
|
return { dvrList: o, replay: c };
|
|
1812
1830
|
}
|
|
1813
|
-
function
|
|
1814
|
-
const { sendMessage: t } =
|
|
1831
|
+
function pt(e) {
|
|
1832
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1815
1833
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1816
1834
|
t(`/device/${e}/shadeUp`, null);
|
|
1817
1835
|
}, shadeDown: () => {
|
|
@@ -1821,7 +1839,7 @@ function mt(e) {
|
|
|
1821
1839
|
} } : void 0;
|
|
1822
1840
|
}
|
|
1823
1841
|
function Mt(e) {
|
|
1824
|
-
const { sendMessage: t } =
|
|
1842
|
+
const { sendMessage: t } = y(), o = j1(e);
|
|
1825
1843
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
|
|
1826
1844
|
t(`/room/${e}/setShutdownPromptSeconds`, g);
|
|
1827
1845
|
}, shutdownStart: () => {
|
|
@@ -1833,7 +1851,7 @@ function Mt(e) {
|
|
|
1833
1851
|
} } : void 0;
|
|
1834
1852
|
}
|
|
1835
1853
|
function xt(e) {
|
|
1836
|
-
const { sendMessage: t } =
|
|
1854
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1837
1855
|
return o ? { switchedOutputState: o, on: () => {
|
|
1838
1856
|
t(`/device/${e}/on`, null);
|
|
1839
1857
|
}, off: () => {
|
|
@@ -1841,19 +1859,19 @@ function xt(e) {
|
|
|
1841
1859
|
} } : void 0;
|
|
1842
1860
|
}
|
|
1843
1861
|
function Zt(e) {
|
|
1844
|
-
const { sendMessage: t } =
|
|
1862
|
+
const { sendMessage: t } = y(), o = j1(e);
|
|
1845
1863
|
return o ? { techPasswordState: o, validatePassword: (l) => {
|
|
1846
1864
|
t(`/room/${e}/validateTechPassword`, { password: l });
|
|
1847
|
-
}, setPassword: (l,
|
|
1848
|
-
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword:
|
|
1865
|
+
}, setPassword: (l, a) => {
|
|
1866
|
+
t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: a });
|
|
1849
1867
|
} } : void 0;
|
|
1850
1868
|
}
|
|
1851
1869
|
function St(e) {
|
|
1852
|
-
const { sendMessage: t } =
|
|
1870
|
+
const { sendMessage: t } = y(), o = D(e);
|
|
1853
1871
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1854
1872
|
}
|
|
1855
1873
|
function jt(e) {
|
|
1856
|
-
const { sendMessage: t } =
|
|
1874
|
+
const { sendMessage: t } = y(), o = D(e), c = (r) => {
|
|
1857
1875
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1858
1876
|
};
|
|
1859
1877
|
return {
|
|
@@ -1862,20 +1880,20 @@ function jt(e) {
|
|
|
1862
1880
|
};
|
|
1863
1881
|
}
|
|
1864
1882
|
function Ct(e) {
|
|
1865
|
-
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"),
|
|
1883
|
+
const t = `/device/${e}`, o = w(t, "play"), c = w(t, "pause"), r = w(t, "stop"), l = w(t, "prevTrack"), a = w(t, "nextTrack"), g = w(t, "rewind"), h = w(t, "ffwd"), f = w(t, "record");
|
|
1866
1884
|
return {
|
|
1867
1885
|
play: o,
|
|
1868
1886
|
pause: c,
|
|
1869
1887
|
stop: r,
|
|
1870
1888
|
prevTrack: l,
|
|
1871
|
-
nextTrack:
|
|
1889
|
+
nextTrack: a,
|
|
1872
1890
|
rewind: g,
|
|
1873
1891
|
fastForward: h,
|
|
1874
1892
|
record: f
|
|
1875
1893
|
};
|
|
1876
1894
|
}
|
|
1877
1895
|
function bt(e) {
|
|
1878
|
-
const t = D(e), { sendMessage: o } =
|
|
1896
|
+
const t = D(e), { sendMessage: o } = y();
|
|
1879
1897
|
return t ? {
|
|
1880
1898
|
touchpanelState: t,
|
|
1881
1899
|
appControl: { hideApp: () => {
|
|
@@ -1903,13 +1921,13 @@ function yt(e) {
|
|
|
1903
1921
|
}
|
|
1904
1922
|
function It(e) {
|
|
1905
1923
|
const t = `/device/${e}`;
|
|
1906
|
-
return
|
|
1924
|
+
return C1(t);
|
|
1907
1925
|
}
|
|
1908
1926
|
const Rt = ({
|
|
1909
1927
|
config: e
|
|
1910
1928
|
}, t = !0) => {
|
|
1911
|
-
const { sendMessage: o } =
|
|
1912
|
-
var
|
|
1929
|
+
const { sendMessage: o } = y(), c = d1(!1), r = N(() => {
|
|
1930
|
+
var a, g, h, f;
|
|
1913
1931
|
if (!e)
|
|
1914
1932
|
return;
|
|
1915
1933
|
const l = /* @__PURE__ */ new Set();
|
|
@@ -1917,7 +1935,7 @@ const Rt = ({
|
|
|
1917
1935
|
l.add(d);
|
|
1918
1936
|
}), e.destinationList && Object.values(e.destinationList).forEach((d) => {
|
|
1919
1937
|
l.add(d.sinkKey);
|
|
1920
|
-
}), e.audioControlPointList && Object.values((
|
|
1938
|
+
}), e.audioControlPointList && Object.values((a = e.audioControlPointList) == null ? void 0 : a.levelControls).forEach(
|
|
1921
1939
|
(d) => {
|
|
1922
1940
|
d.itemKey ? l.add(d.parentDeviceKey + "--" + d.itemKey) : l.add(d.parentDeviceKey);
|
|
1923
1941
|
}
|
|
@@ -1934,7 +1952,7 @@ const Rt = ({
|
|
|
1934
1952
|
d.sourceKey && d.sourceKey !== "$off" && l.add(d.sourceKey);
|
|
1935
1953
|
return l;
|
|
1936
1954
|
}, [e]);
|
|
1937
|
-
return
|
|
1955
|
+
return Z1(() => {
|
|
1938
1956
|
!t || !r || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((l) => {
|
|
1939
1957
|
o(`/device/${l}/fullStatus`, { deviceKey: l });
|
|
1940
1958
|
}), c.current = !0);
|
|
@@ -1943,16 +1961,16 @@ const Rt = ({
|
|
|
1943
1961
|
function Et(e, t) {
|
|
1944
1962
|
const [o, c] = Y(!1), [r, l] = Y(!1);
|
|
1945
1963
|
return Z3(() => {
|
|
1946
|
-
const { current:
|
|
1947
|
-
const h =
|
|
1964
|
+
const { current: a } = e, g = () => {
|
|
1965
|
+
const h = a && a.scrollHeight > a.clientHeight, f = a && a.scrollWidth > a.clientWidth;
|
|
1948
1966
|
l(h ?? !1), c(f ?? !1), t && t(h ?? !1, f ?? !1);
|
|
1949
1967
|
};
|
|
1950
|
-
|
|
1968
|
+
a && g();
|
|
1951
1969
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1952
1970
|
}
|
|
1953
1971
|
function Tt(e, t) {
|
|
1954
1972
|
const o = `/room/${e}/volumes/${t}`;
|
|
1955
|
-
return
|
|
1973
|
+
return C1(o);
|
|
1956
1974
|
}
|
|
1957
1975
|
function Dt(e, t) {
|
|
1958
1976
|
const o = te(e, t), c = `/room/${e}/volumes/${t}`;
|
|
@@ -1963,7 +1981,7 @@ function _t(e) {
|
|
|
1963
1981
|
const [t, o] = Y(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollLeft) ?? 0), [c, r] = Y(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), l = (f) => {
|
|
1964
1982
|
const { current: d } = e;
|
|
1965
1983
|
d && (console.log(d.scrollLeft), d.scrollLeft += f, console.log(d.scrollLeft));
|
|
1966
|
-
},
|
|
1984
|
+
}, a = (f) => {
|
|
1967
1985
|
const { current: d } = e;
|
|
1968
1986
|
d && (console.log(d.scrollTop), d.scrollTop += f, console.log(d.scrollTop));
|
|
1969
1987
|
};
|
|
@@ -1972,18 +1990,18 @@ function _t(e) {
|
|
|
1972
1990
|
o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
|
|
1973
1991
|
};
|
|
1974
1992
|
f && d();
|
|
1975
|
-
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical:
|
|
1993
|
+
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: a };
|
|
1976
1994
|
}
|
|
1977
|
-
function
|
|
1995
|
+
function $t(e) {
|
|
1978
1996
|
const t = W1();
|
|
1979
1997
|
return [() => {
|
|
1980
|
-
t(
|
|
1998
|
+
t(W.addSyncState(e));
|
|
1981
1999
|
}, () => {
|
|
1982
|
-
t(
|
|
2000
|
+
t(W.removeSyncState(e));
|
|
1983
2001
|
}, Ze(e)];
|
|
1984
2002
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const { sendMessage: e } =
|
|
2003
|
+
function Pt() {
|
|
2004
|
+
const { sendMessage: e } = y();
|
|
1987
2005
|
return {
|
|
1988
2006
|
reboot: () => {
|
|
1989
2007
|
e("/system/reboot", null);
|
|
@@ -2000,7 +2018,7 @@ function Lt() {
|
|
|
2000
2018
|
const l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
2001
2019
|
c(l);
|
|
2002
2020
|
}
|
|
2003
|
-
return
|
|
2021
|
+
return Z1(() => {
|
|
2004
2022
|
r();
|
|
2005
2023
|
const l = setInterval(() => {
|
|
2006
2024
|
r();
|
|
@@ -2008,7 +2026,7 @@ function Lt() {
|
|
|
2008
2026
|
return () => clearInterval(l);
|
|
2009
2027
|
}, []), { date: e, time: o };
|
|
2010
2028
|
}
|
|
2011
|
-
const
|
|
2029
|
+
const At = () => {
|
|
2012
2030
|
const [e, t] = Y(!1), o = y2(), c = I2();
|
|
2013
2031
|
let r;
|
|
2014
2032
|
return R2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
|
|
@@ -2042,30 +2060,30 @@ const Pt = () => {
|
|
|
2042
2060
|
className: c,
|
|
2043
2061
|
iconClassName: r = "",
|
|
2044
2062
|
otherContentClassName: l = "",
|
|
2045
|
-
disabled:
|
|
2063
|
+
disabled: a,
|
|
2046
2064
|
feedback: g,
|
|
2047
2065
|
feedbackClassName: h,
|
|
2048
2066
|
onPointerDown: f,
|
|
2049
2067
|
onPointerUp: d,
|
|
2050
|
-
onPointerLeave:
|
|
2051
|
-
...
|
|
2068
|
+
onPointerLeave: $,
|
|
2069
|
+
...H
|
|
2052
2070
|
}) => {
|
|
2053
|
-
const [
|
|
2071
|
+
const [u, Z] = Y(!1), j = !a && g ? h : "", S = !a && (u || g);
|
|
2054
2072
|
return /* @__PURE__ */ n.jsxs(
|
|
2055
2073
|
"button",
|
|
2056
2074
|
{
|
|
2057
2075
|
type: "button",
|
|
2058
|
-
className: `${L1.iconbtn} ${o ? L1.iconbtnvert : ""} ${c} ${
|
|
2059
|
-
...
|
|
2060
|
-
disabled:
|
|
2061
|
-
onPointerDown: (
|
|
2062
|
-
Z(!0), f == null || f(
|
|
2076
|
+
className: `${L1.iconbtn} ${o ? L1.iconbtnvert : ""} ${c} ${j}`,
|
|
2077
|
+
...H,
|
|
2078
|
+
disabled: a,
|
|
2079
|
+
onPointerDown: (C) => {
|
|
2080
|
+
Z(!0), f == null || f(C);
|
|
2063
2081
|
},
|
|
2064
|
-
onPointerUp: (
|
|
2065
|
-
Z(!1), d == null || d(
|
|
2082
|
+
onPointerUp: (C) => {
|
|
2083
|
+
Z(!1), d == null || d(C);
|
|
2066
2084
|
},
|
|
2067
|
-
onPointerLeave: (
|
|
2068
|
-
Z(!1),
|
|
2085
|
+
onPointerLeave: (C) => {
|
|
2086
|
+
Z(!1), $ == null || $(C);
|
|
2069
2087
|
},
|
|
2070
2088
|
children: [
|
|
2071
2089
|
e && /* @__PURE__ */ n.jsx(
|
|
@@ -2073,7 +2091,7 @@ const Pt = () => {
|
|
|
2073
2091
|
{
|
|
2074
2092
|
className: `${r || L1.iconsm}`,
|
|
2075
2093
|
active: S,
|
|
2076
|
-
disabled:
|
|
2094
|
+
disabled: a
|
|
2077
2095
|
}
|
|
2078
2096
|
),
|
|
2079
2097
|
l ? /* @__PURE__ */ n.jsx("div", { className: l, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
|
|
@@ -2924,7 +2942,7 @@ const Pt = () => {
|
|
|
2924
2942
|
active: e,
|
|
2925
2943
|
disabled: o
|
|
2926
2944
|
}
|
|
2927
|
-
),
|
|
2945
|
+
), m8 = ({
|
|
2928
2946
|
active: e,
|
|
2929
2947
|
className: t = "",
|
|
2930
2948
|
disabled: o
|
|
@@ -2973,7 +2991,7 @@ const Pt = () => {
|
|
|
2973
2991
|
active: e,
|
|
2974
2992
|
disabled: o
|
|
2975
2993
|
}
|
|
2976
|
-
),
|
|
2994
|
+
), p8 = ({
|
|
2977
2995
|
active: e,
|
|
2978
2996
|
className: t = "",
|
|
2979
2997
|
disabled: o
|
|
@@ -3286,7 +3304,7 @@ const Pt = () => {
|
|
|
3286
3304
|
active: e,
|
|
3287
3305
|
disabled: o
|
|
3288
3306
|
}
|
|
3289
|
-
),
|
|
3307
|
+
), Ot = ({
|
|
3290
3308
|
active: e,
|
|
3291
3309
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
3292
3310
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3712,8 +3730,8 @@ const Pt = () => {
|
|
|
3712
3730
|
Moon: g8,
|
|
3713
3731
|
Playstation: f8,
|
|
3714
3732
|
Podium: w8,
|
|
3715
|
-
Power:
|
|
3716
|
-
Privacy:
|
|
3733
|
+
Power: m8,
|
|
3734
|
+
Privacy: p8,
|
|
3717
3735
|
Question: M8,
|
|
3718
3736
|
RightArrow: x8,
|
|
3719
3737
|
RoomPC: Z8,
|
|
@@ -3727,7 +3745,7 @@ const Pt = () => {
|
|
|
3727
3745
|
X: E8,
|
|
3728
3746
|
Xbox: T8
|
|
3729
3747
|
};
|
|
3730
|
-
function
|
|
3748
|
+
function Bt({
|
|
3731
3749
|
name: e,
|
|
3732
3750
|
iconsDictionary: t = _8,
|
|
3733
3751
|
...o
|
|
@@ -3735,32 +3753,32 @@ function Ot({
|
|
|
3735
3753
|
const c = t[e] ?? null;
|
|
3736
3754
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3737
3755
|
}
|
|
3738
|
-
const
|
|
3739
|
-
grid:
|
|
3740
|
-
header:
|
|
3756
|
+
const $8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", L8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", O8 = "_volume_1cmpp_29", u1 = {
|
|
3757
|
+
grid: $8,
|
|
3758
|
+
header: P8,
|
|
3741
3759
|
content: L8,
|
|
3742
|
-
footer:
|
|
3743
|
-
volume:
|
|
3744
|
-
}, kt = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
3745
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3746
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3747
|
-
r && /* @__PURE__ */ n.jsx("div", { className:
|
|
3748
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3749
|
-
] }),
|
|
3750
|
-
grid:
|
|
3760
|
+
footer: A8,
|
|
3761
|
+
volume: O8
|
|
3762
|
+
}, kt = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: u1.grid, children: [
|
|
3763
|
+
/* @__PURE__ */ n.jsx("div", { className: u1.header, children: e }),
|
|
3764
|
+
/* @__PURE__ */ n.jsx("div", { className: u1.content, children: o }),
|
|
3765
|
+
r && /* @__PURE__ */ n.jsx("div", { className: u1.volume, children: c }),
|
|
3766
|
+
/* @__PURE__ */ n.jsx("div", { className: u1.footer, children: t })
|
|
3767
|
+
] }), B8 = "_grid_11w5q_1", k8 = "_header_11w5q_11", W8 = "_content_11w5q_17", x1 = {
|
|
3768
|
+
grid: B8,
|
|
3751
3769
|
header: k8,
|
|
3752
3770
|
content: W8
|
|
3753
|
-
}, Wt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${
|
|
3754
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3755
|
-
c && /* @__PURE__ */ n.jsx("div", { className:
|
|
3756
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3757
|
-
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11",
|
|
3771
|
+
}, Wt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${x1.grid}`, children: [
|
|
3772
|
+
/* @__PURE__ */ n.jsx("div", { className: x1.header, children: t }),
|
|
3773
|
+
c && /* @__PURE__ */ n.jsx("div", { className: x1.leftNav, children: c }),
|
|
3774
|
+
/* @__PURE__ */ n.jsx("div", { className: x1.content, children: o })
|
|
3775
|
+
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", A1 = {
|
|
3758
3776
|
grid: V8,
|
|
3759
3777
|
header: U8,
|
|
3760
|
-
content:
|
|
3761
|
-
}, Vt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${
|
|
3762
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3763
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3778
|
+
content: H8
|
|
3779
|
+
}, Vt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${A1.grid}`, children: [
|
|
3780
|
+
/* @__PURE__ */ n.jsx("div", { className: A1.header, children: t }),
|
|
3781
|
+
/* @__PURE__ */ n.jsx("div", { className: A1.content, children: o })
|
|
3764
3782
|
] });
|
|
3765
3783
|
class Ut {
|
|
3766
3784
|
constructor() {
|
|
@@ -3769,11 +3787,11 @@ class Ut {
|
|
|
3769
3787
|
q(this, "isSharing");
|
|
3770
3788
|
}
|
|
3771
3789
|
}
|
|
3772
|
-
function
|
|
3790
|
+
function Ht() {
|
|
3773
3791
|
return console.log(location.pathname), location.pathname;
|
|
3774
3792
|
}
|
|
3775
|
-
var
|
|
3776
|
-
class
|
|
3793
|
+
var F8 = /* @__PURE__ */ ((e) => (e[e.NotSet = 0] = "NotSet", e[e.Sunday = 1] = "Sunday", e[e.Monday = 2] = "Monday", e[e.Tuesday = 4] = "Tuesday", e[e.Wednesday = 8] = "Wednesday", e[e.Thursday = 16] = "Thursday", e[e.Friday = 32] = "Friday", e[e.Saturday = 64] = "Saturday", e))(F8 || {});
|
|
3794
|
+
class Ft {
|
|
3777
3795
|
constructor(t, o) {
|
|
3778
3796
|
q(this, "path");
|
|
3779
3797
|
q(this, "handler");
|
|
@@ -3783,8 +3801,8 @@ class Ht {
|
|
|
3783
3801
|
const Kt = "$off";
|
|
3784
3802
|
export {
|
|
3785
3803
|
K6 as Clock,
|
|
3786
|
-
|
|
3787
|
-
|
|
3804
|
+
F8 as DaysOfWeek,
|
|
3805
|
+
At as ErrorBox,
|
|
3788
3806
|
Ne as IconButton,
|
|
3789
3807
|
e8 as IconMultiAlert,
|
|
3790
3808
|
t8 as IconMultiBan,
|
|
@@ -3804,14 +3822,14 @@ export {
|
|
|
3804
3822
|
g8 as IconMultiMoon,
|
|
3805
3823
|
f8 as IconMultiPlaystation,
|
|
3806
3824
|
w8 as IconMultiPodium,
|
|
3807
|
-
|
|
3808
|
-
|
|
3825
|
+
m8 as IconMultiPower,
|
|
3826
|
+
p8 as IconMultiPrivacy,
|
|
3809
3827
|
M8 as IconMultiQuestion,
|
|
3810
3828
|
x8 as IconMultiRightArrow,
|
|
3811
3829
|
Z8 as IconMultiRoomPC,
|
|
3812
3830
|
S8 as IconMultiShade,
|
|
3813
3831
|
j8 as IconMultiSun,
|
|
3814
|
-
|
|
3832
|
+
Ot as IconMultiTemplate,
|
|
3815
3833
|
C8 as IconMultiUpArrow,
|
|
3816
3834
|
b8 as IconMultiVolDown,
|
|
3817
3835
|
y8 as IconMultiVolMute,
|
|
@@ -3820,24 +3838,24 @@ export {
|
|
|
3820
3838
|
E8 as IconMultiX,
|
|
3821
3839
|
T8 as IconMultiXbox,
|
|
3822
3840
|
kt as MainLayout,
|
|
3823
|
-
|
|
3841
|
+
Ft as MessageHandler,
|
|
3824
3842
|
W6 as MobileControlProvider,
|
|
3825
3843
|
R as MultiStateIconContainer,
|
|
3826
|
-
|
|
3844
|
+
Bt as NamedIconButton,
|
|
3827
3845
|
Ut as ShareState,
|
|
3828
3846
|
Wt as TechLayout,
|
|
3829
3847
|
Vt as TechPinLayout,
|
|
3830
3848
|
L3 as WS_ADD_EVENT_HANDLER,
|
|
3831
3849
|
_3 as WS_CONNECT,
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3850
|
+
$3 as WS_DISCONNECT,
|
|
3851
|
+
O3 as WS_RECONNECT,
|
|
3852
|
+
A3 as WS_REMOVE_EVENT_HANDLER,
|
|
3853
|
+
P3 as WS_SEND_MESSAGE,
|
|
3836
3854
|
k3 as WebsocketContext,
|
|
3837
3855
|
T3 as appConfigActions,
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3856
|
+
Oe as createWebSocketMiddleware,
|
|
3857
|
+
m1 as devicesActions,
|
|
3858
|
+
Ht as getBaseLocation,
|
|
3841
3859
|
f3 as httpClient,
|
|
3842
3860
|
_8 as iconsDictionary,
|
|
3843
3861
|
Kt as roomOffSourceKey,
|
|
@@ -3848,57 +3866,57 @@ export {
|
|
|
3848
3866
|
E2 as selectAppConfig,
|
|
3849
3867
|
ce as selectClientId,
|
|
3850
3868
|
he as selectCurrentPopoverIdForGroup,
|
|
3851
|
-
|
|
3869
|
+
$2 as selectDeviceByKey,
|
|
3852
3870
|
b3 as selectDeviceInterfaceSupport,
|
|
3853
3871
|
ve as selectDeviceSupportsInterface,
|
|
3854
3872
|
fe as selectError,
|
|
3855
3873
|
y3 as selectInterfacesForDevice,
|
|
3856
|
-
|
|
3874
|
+
pe as selectIsSyncStateValuePresent,
|
|
3857
3875
|
de as selectIsTouchpanel,
|
|
3858
3876
|
D2 as selectLogoPath,
|
|
3859
3877
|
V1 as selectModalVisibility,
|
|
3860
3878
|
_2 as selectPartnerMetadata,
|
|
3861
3879
|
X2 as selectRoomAdvancedSharingActive,
|
|
3862
3880
|
V2 as selectRoomAudioControlPointList,
|
|
3863
|
-
|
|
3881
|
+
A2 as selectRoomByKey,
|
|
3864
3882
|
q2 as selectRoomCodecContentDestinationKey,
|
|
3865
|
-
|
|
3866
|
-
|
|
3883
|
+
P2 as selectRoomConfiguration,
|
|
3884
|
+
H2 as selectRoomDestinationList,
|
|
3867
3885
|
U2 as selectRoomDestinations,
|
|
3868
3886
|
ee as selectRoomDisplayStates,
|
|
3869
|
-
|
|
3887
|
+
F2 as selectRoomEnvironmentalDevices,
|
|
3870
3888
|
G2 as selectRoomInCall,
|
|
3871
3889
|
z2 as selectRoomIsCoolingDown,
|
|
3872
3890
|
J2 as selectRoomIsOn,
|
|
3873
3891
|
Y2 as selectRoomIsWarmingUp,
|
|
3874
3892
|
se as selectRoomKey,
|
|
3875
3893
|
k2 as selectRoomLevelControls,
|
|
3876
|
-
|
|
3894
|
+
O2 as selectRoomName,
|
|
3877
3895
|
K2 as selectRoomProgramAudioDestinationKey,
|
|
3878
3896
|
Q2 as selectRoomShareState,
|
|
3879
3897
|
W2 as selectRoomSourceList,
|
|
3880
|
-
|
|
3898
|
+
B2 as selectRoomVolume,
|
|
3881
3899
|
L2 as selectRooms,
|
|
3882
3900
|
ae as selectRuntimeInfo,
|
|
3883
3901
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
3884
3902
|
ge as selectShowPopoverById,
|
|
3885
3903
|
we as selectShowReconnect,
|
|
3886
3904
|
re as selectSystemUuid,
|
|
3887
|
-
|
|
3905
|
+
me as selectTheme,
|
|
3888
3906
|
ue as selectTouchpanelKey,
|
|
3889
3907
|
le as selectUserCode,
|
|
3890
3908
|
oe as selectWsIsConnected,
|
|
3891
3909
|
N2 as selectZoomRoomControllerKey,
|
|
3892
3910
|
ke as store,
|
|
3893
|
-
|
|
3911
|
+
W as uiActions,
|
|
3894
3912
|
je as uiReducer,
|
|
3895
3913
|
Q8 as useApiPath,
|
|
3896
3914
|
X8 as useAppConfig,
|
|
3897
3915
|
W1 as useAppDispatch,
|
|
3898
|
-
|
|
3899
|
-
|
|
3916
|
+
m as useAppSelector,
|
|
3917
|
+
H6 as useAvrControl,
|
|
3900
3918
|
w as useButtonHeldHeartbeat,
|
|
3901
|
-
|
|
3919
|
+
F6 as useCameraBase,
|
|
3902
3920
|
S6 as useClientId,
|
|
3903
3921
|
It as useDeviceIBasicVolume,
|
|
3904
3922
|
Ye as useDeviceIBasicVolumeWithFeedback,
|
|
@@ -3917,18 +3935,18 @@ export {
|
|
|
3917
3935
|
s6 as useGetRoom,
|
|
3918
3936
|
M6 as useGetRoomDisplayStates,
|
|
3919
3937
|
x6 as useGetZoomRoomControllerKey,
|
|
3920
|
-
|
|
3921
|
-
z6 as useIAudioCodecPhonebook,
|
|
3922
|
-
j1 as useIBasicVolume,
|
|
3938
|
+
C1 as useIBasicVolume,
|
|
3923
3939
|
W3 as useIBasicVolumeWithFeedback,
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3940
|
+
Y6 as useIChannel,
|
|
3941
|
+
z6 as useIColor,
|
|
3942
|
+
J6 as useICommunicationMonitor,
|
|
3943
|
+
Q6 as useIDPad,
|
|
3944
|
+
X6 as useIDeviceInfoMessenger,
|
|
3945
|
+
N6 as useIDspPresets,
|
|
3946
|
+
et as useIDvr,
|
|
3947
|
+
tt as useIEssentialsRoomCombiner,
|
|
3948
|
+
nt as useIHasCameraMute,
|
|
3949
|
+
ot as useIHasCameraPresets,
|
|
3932
3950
|
st as useIHasCameras,
|
|
3933
3951
|
ct as useIHasDialer,
|
|
3934
3952
|
V3 as useIHasPowerControl,
|
|
@@ -3944,8 +3962,8 @@ export {
|
|
|
3944
3962
|
gt as useIRunDefaultPresentRoute,
|
|
3945
3963
|
ft as useIRunDirectRouteAction,
|
|
3946
3964
|
wt as useIRunRouteAction,
|
|
3947
|
-
|
|
3948
|
-
|
|
3965
|
+
mt as useISetTopBoxControls,
|
|
3966
|
+
pt as useIShadesOpenCloseStop,
|
|
3949
3967
|
Mt as useIShutdownPromptTimer,
|
|
3950
3968
|
xt as useISwitchedOutput,
|
|
3951
3969
|
Zt as useITechPassword,
|
|
@@ -3961,7 +3979,7 @@ export {
|
|
|
3961
3979
|
Et as useOverflow,
|
|
3962
3980
|
e6 as usePartnerMetadata,
|
|
3963
3981
|
Ge as usePressHoldRelease,
|
|
3964
|
-
|
|
3982
|
+
m6 as useRoomAdvancedSharingActive,
|
|
3965
3983
|
l6 as useRoomAudioControlPointList,
|
|
3966
3984
|
v6 as useRoomCodecContentDestinationKey,
|
|
3967
3985
|
n6 as useRoomConfiguration,
|
|
@@ -3978,32 +3996,32 @@ export {
|
|
|
3978
3996
|
ne as useRoomLevelControls,
|
|
3979
3997
|
c6 as useRoomName,
|
|
3980
3998
|
d6 as useRoomProgramAudioDestinationKey,
|
|
3981
|
-
|
|
3999
|
+
p6 as useRoomShareState,
|
|
3982
4000
|
r6 as useRoomSourceList,
|
|
3983
|
-
|
|
4001
|
+
j1 as useRoomState,
|
|
3984
4002
|
te as useRoomVolume,
|
|
3985
4003
|
y6 as useRuntimeInfo,
|
|
3986
4004
|
_t as useScroll,
|
|
3987
4005
|
b6 as useServerIsRunningOnProcessorHardware,
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
4006
|
+
$6 as useShowIncomingCallModal,
|
|
4007
|
+
P6 as useShowModal,
|
|
4008
|
+
A6 as useShowPopoverById,
|
|
3991
4009
|
xe as useShowReconnect,
|
|
3992
4010
|
_6 as useShowShutdownModal,
|
|
3993
|
-
|
|
3994
|
-
|
|
4011
|
+
$t as useStateIsSynced,
|
|
4012
|
+
Pt as useSystemControl,
|
|
3995
4013
|
j6 as useSystemUuid,
|
|
3996
|
-
|
|
4014
|
+
O6 as useTheme,
|
|
3997
4015
|
Lt as useTimeAndDate,
|
|
3998
4016
|
I6 as useTouchpanelKey,
|
|
3999
4017
|
yt as useTwoWayDisplayBase,
|
|
4000
4018
|
C6 as useUserCode,
|
|
4001
|
-
|
|
4019
|
+
y as useWebsocketContext,
|
|
4002
4020
|
I3 as useWsIsConnected,
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4021
|
+
Pe as wsAddEventHandler,
|
|
4022
|
+
B3 as wsConnect,
|
|
4023
|
+
B6 as wsDisconnect,
|
|
4024
|
+
Ae as wsReconnect,
|
|
4007
4025
|
Le as wsRemoveEventHandler,
|
|
4008
|
-
|
|
4026
|
+
$e as wsSendMessage
|
|
4009
4027
|
};
|