@pepperdash/mobile-control-react-app-core 1.22.6 → 1.22.7
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 +369 -366
- package/dist/mobile-control-react-app-core.umd.js +6 -6
- package/dist/shared/hooks/useDeviceIBasicVolumeWithFeedback.d.ts.map +1 -1
- package/dist/shared/hooks/useGetAllDeviceStateFromRoomConfiguration.d.ts +1 -1
- package/dist/shared/hooks/useGetAllDeviceStateFromRoomConfiguration.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,137 +1,137 @@
|
|
|
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
|
|
7
|
-
import x3, { createContext as C2, useEffect as
|
|
6
|
+
import { createSelector as m, createSlice as u1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
|
|
7
|
+
import x3, { createContext as C2, useEffect as O1, useCallback as r1, useContext as b2, useRef as $1, useMemo as n1, useState as Y, useLayoutEffect as Z3 } from "react";
|
|
8
8
|
import { useNavigate as y2, useRouteError as I2, isRouteErrorResponse as R2 } from "react-router-dom";
|
|
9
9
|
import * as S3 from "lodash";
|
|
10
|
-
const W1 = M2.withTypes(), f = x2.withTypes(),
|
|
11
|
-
|
|
10
|
+
const W1 = M2.withTypes(), f = x2.withTypes(), M1 = (e) => e.appConfig, E2 = m(
|
|
11
|
+
M1,
|
|
12
12
|
(e) => e.config
|
|
13
|
-
), T2 =
|
|
14
|
-
|
|
13
|
+
), T2 = m(
|
|
14
|
+
M1,
|
|
15
15
|
(e) => e.config.apiPath
|
|
16
|
-
), D2 =
|
|
17
|
-
|
|
16
|
+
), D2 = m(
|
|
17
|
+
M1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
|
-
), _2 =
|
|
20
|
-
|
|
19
|
+
), _2 = m(
|
|
20
|
+
M1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), X8 = () => f(E2), Q8 = () => f(T2), N8 = () => f(D2), e6 = () => f(_2), j3 = (e) => e.devices, C3 =
|
|
22
|
+
), X8 = () => f(E2), Q8 = () => f(T2), N8 = () => f(D2), e6 = () => f(_2), j3 = (e) => e.devices, C3 = m(
|
|
23
23
|
j3,
|
|
24
24
|
(e) => e
|
|
25
|
-
), P2 = (e) =>
|
|
25
|
+
), P2 = (e) => m(
|
|
26
26
|
j3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
28
|
), t6 = () => f(C3);
|
|
29
29
|
function _(e) {
|
|
30
30
|
return f(P2(e));
|
|
31
31
|
}
|
|
32
|
-
const A = (e) => e.rooms, L2 = (e) =>
|
|
32
|
+
const A = (e) => e.rooms, L2 = (e) => m(
|
|
33
33
|
A,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
), $2 =
|
|
35
|
+
), $2 = m(
|
|
36
36
|
A,
|
|
37
37
|
(e) => e
|
|
38
|
-
), A2 = (e) =>
|
|
38
|
+
), A2 = (e) => m(
|
|
39
39
|
A,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
), B2 = (e) =>
|
|
41
|
+
), B2 = (e) => m(
|
|
42
42
|
A,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
), k2 = (e, t) =>
|
|
44
|
+
), k2 = (e, t) => m(
|
|
45
45
|
A,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
), O2 = (e) =>
|
|
47
|
+
), O2 = (e) => m(
|
|
48
48
|
A,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
|
-
), W2 = (e) =>
|
|
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
|
-
), V2 = (e) =>
|
|
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
|
-
), U2 = (e) =>
|
|
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
|
-
), H2 = (e) =>
|
|
68
|
+
), H2 = (e) => m(
|
|
69
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
|
-
), F2 = (e) =>
|
|
74
|
+
), F2 = (e) => m(
|
|
75
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
|
-
), K2 = (e) =>
|
|
80
|
+
), K2 = (e) => m(
|
|
81
81
|
A,
|
|
82
82
|
(t) => {
|
|
83
|
-
var o, c, r, i, v,
|
|
84
|
-
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (v = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : v.sinkKey : ((
|
|
83
|
+
var o, c, r, i, v, g, a, p;
|
|
84
|
+
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (v = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : v.sinkKey : ((p = (a = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : a.destinationList.defaultDisplay) == null ? void 0 : p.sinkKey) || "";
|
|
85
85
|
}
|
|
86
|
-
), q2 = (e) =>
|
|
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
|
-
), G2 = (e) =>
|
|
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
|
-
), Y2 = (e) =>
|
|
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
|
-
), z2 = (e) =>
|
|
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
|
-
), J2 = (e) =>
|
|
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
|
-
), X2 = (e) =>
|
|
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
|
-
), Q2 = (e) =>
|
|
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
|
-
), N2 = (e) =>
|
|
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;
|
|
133
133
|
}
|
|
134
|
-
), ee =
|
|
134
|
+
), ee = m(
|
|
135
135
|
[
|
|
136
136
|
(e, t) => t,
|
|
137
137
|
() => C3,
|
|
@@ -154,69 +154,69 @@ function n6(e) {
|
|
|
154
154
|
function o6() {
|
|
155
155
|
return f($2);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function x1(e) {
|
|
158
158
|
return f(A2(e));
|
|
159
159
|
}
|
|
160
|
-
const s6 =
|
|
160
|
+
const s6 = x1, c6 = (e) => f(
|
|
161
161
|
B2(e)
|
|
162
162
|
), te = (e, t) => f(
|
|
163
163
|
k2(e, t)
|
|
164
|
-
), ne = (e) => f(O2(e)) || void 0, r6 = (e) => f(W2(e)), l6 = (e) => f(V2(e)), i6 = (e) => f(U2(e)), a6 = (e) => f(H2(e)), u6 = (e) => f(F2(e)), d6 = (e) => f(K2(e)), v6 = (e) => f(q2(e)), h6 = (e) => f(G2(e)), g6 = (e) => f(Y2(e)), f6 = (e) => f(z2(e)), w6 = (e) => f(J2(e)),
|
|
164
|
+
), ne = (e) => f(O2(e)) || void 0, r6 = (e) => f(W2(e)), l6 = (e) => f(V2(e)), i6 = (e) => f(U2(e)), a6 = (e) => f(H2(e)), u6 = (e) => f(F2(e)), d6 = (e) => f(K2(e)), v6 = (e) => f(q2(e)), h6 = (e) => f(G2(e)), g6 = (e) => f(Y2(e)), f6 = (e) => f(z2(e)), w6 = (e) => f(J2(e)), m6 = (e) => f(X2(e)), p6 = (e) => f(Q2(e)), M6 = (e) => f((t) => ee(t, e)), x6 = (e) => f(N2(e)), G = (e) => e.runtimeConfig, oe = m(
|
|
165
165
|
G,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
|
-
), se =
|
|
167
|
+
), se = m(
|
|
168
168
|
G,
|
|
169
169
|
(e) => e.currentRoomKey
|
|
170
|
-
), ce =
|
|
170
|
+
), ce = m(
|
|
171
171
|
G,
|
|
172
172
|
(e) => e.roomData.clientId
|
|
173
|
-
), re =
|
|
173
|
+
), re = m(
|
|
174
174
|
G,
|
|
175
175
|
(e) => e.roomData.systemUuid
|
|
176
|
-
), le =
|
|
176
|
+
), le = m(
|
|
177
177
|
G,
|
|
178
178
|
(e) => e.roomData.userCode
|
|
179
|
-
), ie =
|
|
179
|
+
), ie = m(
|
|
180
180
|
G,
|
|
181
181
|
(e) => e.serverIsRunningOnProcessorHardware
|
|
182
|
-
), ae =
|
|
182
|
+
), ae = m(
|
|
183
183
|
G,
|
|
184
184
|
(e) => {
|
|
185
185
|
var t;
|
|
186
186
|
return (t = e.roomData.config) == null ? void 0 : t.runtimeInfo;
|
|
187
187
|
}
|
|
188
|
-
), ue =
|
|
188
|
+
), ue = m(
|
|
189
189
|
G,
|
|
190
190
|
(e) => e.touchpanelKey
|
|
191
|
-
), de =
|
|
191
|
+
), de = m(
|
|
192
192
|
G,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
), b3 =
|
|
194
|
+
), b3 = m(
|
|
195
195
|
G,
|
|
196
196
|
(e) => e.roomData.deviceInterfaceSupport
|
|
197
|
-
), y3 = (e) =>
|
|
197
|
+
), y3 = (e) => m(
|
|
198
198
|
b3,
|
|
199
199
|
(t) => {
|
|
200
200
|
var o;
|
|
201
201
|
return ((o = t == null ? void 0 : t[e]) == null ? void 0 : o.interfaces) ?? [];
|
|
202
202
|
}
|
|
203
|
-
), ve = (e, t) =>
|
|
203
|
+
), ve = (e, t) => m(
|
|
204
204
|
y3(e),
|
|
205
205
|
(o) => o.includes(t)
|
|
206
|
-
), I3 = () => f(oe), Z6 = () => f(se), S6 = () => f(ce), j6 = () => f(re), C6 = () => f(le), b6 = () => f(ie), y6 = () => f(ae), I6 = () => f(ue), R6 = () => f(de), E6 = () => f(b3), T6 = (e) => f(y3(e)), D6 = (e, t) => f(ve(e, t)), N = (e) => e.ui, V1 = (e) =>
|
|
206
|
+
), I3 = () => f(oe), Z6 = () => f(se), S6 = () => f(ce), j6 = () => f(re), C6 = () => f(le), b6 = () => f(ie), y6 = () => f(ae), I6 = () => f(ue), R6 = () => f(de), E6 = () => f(b3), T6 = (e) => f(y3(e)), D6 = (e, t) => f(ve(e, t)), N = (e) => e.ui, V1 = (e) => m(N, (t) => t.modalVisibility[e]), he = (e) => m(N, (t) => {
|
|
207
207
|
const o = t.popoverVisibility[e];
|
|
208
208
|
if (o)
|
|
209
209
|
return Object.keys(o).find((c) => o[c]);
|
|
210
|
-
}), ge = (e, t) =>
|
|
210
|
+
}), ge = (e, t) => m(
|
|
211
211
|
N,
|
|
212
212
|
(o) => {
|
|
213
213
|
var c;
|
|
214
214
|
return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
|
|
215
215
|
}
|
|
216
|
-
), fe =
|
|
216
|
+
), fe = m(N, (e) => e.error), we = m(
|
|
217
217
|
N,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
),
|
|
219
|
+
), me = m(N, (e) => e.theme), pe = (e) => m(N, (t) => t.syncState.includes(e)), _6 = () => f(V1("showShutdownModal")), P6 = () => f(V1("showIncomingCallModal")), L6 = (e) => f(V1(e)), $6 = (e) => f(he(e)), A6 = (e, t) => f(ge(e, t)), Me = () => f(fe), xe = () => f(we), B6 = () => f(me), Ze = (e) => f(pe(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -225,7 +225,7 @@ const s6 = Z1, c6 = (e) => f(
|
|
|
225
225
|
},
|
|
226
226
|
popoverVisibility: {},
|
|
227
227
|
syncState: []
|
|
228
|
-
}, R3 =
|
|
228
|
+
}, R3 = u1({
|
|
229
229
|
name: "ui",
|
|
230
230
|
initialState: Se,
|
|
231
231
|
reducers: {
|
|
@@ -281,7 +281,7 @@ const s6 = Z1, c6 = (e) => f(
|
|
|
281
281
|
loginMode: "",
|
|
282
282
|
modes: {}
|
|
283
283
|
}
|
|
284
|
-
}, E3 =
|
|
284
|
+
}, E3 = u1({
|
|
285
285
|
name: "appConfig",
|
|
286
286
|
initialState: Ce,
|
|
287
287
|
reducers: {
|
|
@@ -289,7 +289,7 @@ const s6 = Z1, c6 = (e) => f(
|
|
|
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 = {}, A1 = u1({
|
|
293
293
|
name: "devices",
|
|
294
294
|
initialState: v3,
|
|
295
295
|
reducers: {
|
|
@@ -303,10 +303,10 @@ const s6 = Z1, c6 = (e) => f(
|
|
|
303
303
|
return v3;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
307
|
-
setDeviceState:
|
|
308
|
-
clearDevices:
|
|
309
|
-
}, ye =
|
|
306
|
+
}), f1 = {
|
|
307
|
+
setDeviceState: A1.actions.setDeviceState,
|
|
308
|
+
clearDevices: A1.actions.clearDevices
|
|
309
|
+
}, ye = A1.reducer;
|
|
310
310
|
class Ie {
|
|
311
311
|
constructor() {
|
|
312
312
|
q(this, "uuid", "current-uuid");
|
|
@@ -322,7 +322,7 @@ function Re(e) {
|
|
|
322
322
|
function Ee(e, t) {
|
|
323
323
|
sessionStorage.setItem(e, t);
|
|
324
324
|
}
|
|
325
|
-
const g3 = {},
|
|
325
|
+
const g3 = {}, B1 = u1({
|
|
326
326
|
name: "rooms",
|
|
327
327
|
initialState: g3,
|
|
328
328
|
reducers: {
|
|
@@ -336,10 +336,10 @@ const g3 = {}, k1 = a1({
|
|
|
336
336
|
return g3;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
}),
|
|
340
|
-
setRoomState:
|
|
341
|
-
clearRooms:
|
|
342
|
-
}, Te =
|
|
339
|
+
}), w1 = {
|
|
340
|
+
setRoomState: B1.actions.setRoomState,
|
|
341
|
+
clearRooms: B1.actions.clearRooms
|
|
342
|
+
}, Te = B1.reducer, De = {
|
|
343
343
|
apiVersion: "",
|
|
344
344
|
serverIsRunningOnProcessorHardware: !1,
|
|
345
345
|
websocket: {
|
|
@@ -370,7 +370,7 @@ const g3 = {}, k1 = a1({
|
|
|
370
370
|
userCode: "",
|
|
371
371
|
qrUrl: ""
|
|
372
372
|
}
|
|
373
|
-
}, D3 =
|
|
373
|
+
}, D3 = u1({
|
|
374
374
|
name: "runtimeConfig",
|
|
375
375
|
initialState: De,
|
|
376
376
|
reducers: {
|
|
@@ -405,7 +405,7 @@ const g3 = {}, k1 = a1({
|
|
|
405
405
|
e.touchpanelKey = t.payload;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
}), U = D3.actions, _e = D3.reducer,
|
|
408
|
+
}), U = D3.actions, _e = D3.reducer, _1 = M3.create(), _3 = "websocket/connect", P3 = "websocket/disconnect", L3 = "websocket/sendMessage", $3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", k3 = () => ({ type: _3 }), k6 = () => ({ type: P3 }), Pe = (e, t) => ({
|
|
409
409
|
type: L3,
|
|
410
410
|
payload: { messageType: e, content: t }
|
|
411
411
|
}), Le = (e, t, o) => ({
|
|
@@ -421,49 +421,49 @@ const g3 = {}, k1 = a1({
|
|
|
421
421
|
waitingToReconnect: !1,
|
|
422
422
|
reconnectTimer: null,
|
|
423
423
|
eventHandlers: {}
|
|
424
|
-
}, t = async (
|
|
424
|
+
}, t = async (u) => {
|
|
425
425
|
try {
|
|
426
426
|
const Z = location.pathname.split("/").filter((b) => b.length > 0);
|
|
427
427
|
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
428
|
-
const j = `/${Z.join("/")}`, C = await
|
|
428
|
+
const j = `/${Z.join("/")}`, C = await _1.get(
|
|
429
429
|
"/_local-config/_config.local.json",
|
|
430
430
|
{ baseURL: j }
|
|
431
431
|
);
|
|
432
432
|
if (C.status === 200 && C.data) {
|
|
433
433
|
const b = C.data.apiPath;
|
|
434
|
-
|
|
435
|
-
const x = await
|
|
434
|
+
u(T3.setAppConfig(C.data));
|
|
435
|
+
const x = await _1.get(
|
|
436
436
|
`${b}/version`
|
|
437
437
|
);
|
|
438
|
-
x.status === 200 && x.data &&
|
|
438
|
+
x.status === 200 && x.data && u(U.setRuntimeConfig(x.data));
|
|
439
439
|
}
|
|
440
440
|
} catch (Z) {
|
|
441
441
|
console.error("Error getting config", Z);
|
|
442
442
|
}
|
|
443
443
|
return !0;
|
|
444
|
-
}, o = async (
|
|
444
|
+
}, o = async (u, Z, j) => {
|
|
445
445
|
try {
|
|
446
|
-
const C = await
|
|
447
|
-
`${
|
|
446
|
+
const C = await _1.get(
|
|
447
|
+
`${u}/ui/joinroom?token=${Z}`
|
|
448
448
|
);
|
|
449
449
|
return C.status === 200 && C.data ? (j(U.setRoomData(C.data)), !0) : !1;
|
|
450
450
|
} catch (C) {
|
|
451
|
-
return console.log(C), C instanceof
|
|
451
|
+
return console.log(C), C instanceof p2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), j(
|
|
452
452
|
O.setErrorMessage(
|
|
453
453
|
`Token ${Z} is invalid. Unable to join room`
|
|
454
454
|
)
|
|
455
455
|
), !1) : (console.error("Error getting room data", C), C instanceof Error ? j(O.setErrorMessage(C.message)) : j(O.setErrorMessage("Error getting room data")), !1);
|
|
456
456
|
}
|
|
457
|
-
}, c = (
|
|
457
|
+
}, c = (u) => {
|
|
458
458
|
e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
|
|
459
|
-
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."),
|
|
459
|
+
e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), u(k3());
|
|
460
460
|
}, 5e3);
|
|
461
461
|
}, r = () => {
|
|
462
462
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
463
|
-
}, i = (
|
|
464
|
-
|
|
465
|
-
}, v = (
|
|
466
|
-
const j =
|
|
463
|
+
}, i = (u) => {
|
|
464
|
+
u(O.setShowReconnect(!0)), u(U.setWebsocketIsConnected(!1)), u(f1.clearDevices()), u(w1.clearRooms()), u(O.clearAllModals()), u(O.clearSyncState());
|
|
465
|
+
}, v = (u, Z) => {
|
|
466
|
+
const j = u(), C = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: b } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected;
|
|
467
467
|
if (!Z || !x || !b) {
|
|
468
468
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
469
469
|
hasRoomKey: !!Z,
|
|
@@ -479,7 +479,7 @@ const g3 = {}, k1 = a1({
|
|
|
479
479
|
content: null
|
|
480
480
|
})
|
|
481
481
|
);
|
|
482
|
-
},
|
|
482
|
+
}, g = async (u, Z) => {
|
|
483
483
|
console.log("WebSocket middleware: Attempting to connect...");
|
|
484
484
|
const j = Z(), { apiPath: C } = j.appConfig.config, { serverIsRunningOnProcessorHardware: b } = j.runtimeConfig;
|
|
485
485
|
if (!C || !e.token) {
|
|
@@ -504,20 +504,20 @@ const g3 = {}, k1 = a1({
|
|
|
504
504
|
}
|
|
505
505
|
e.waitingToReconnect = !0;
|
|
506
506
|
try {
|
|
507
|
-
if (!await o(C, e.token,
|
|
507
|
+
if (!await o(C, e.token, u)) {
|
|
508
508
|
console.log(
|
|
509
509
|
"WebSocket middleware: Failed to get room data, will retry..."
|
|
510
|
-
), c(
|
|
510
|
+
), c(u);
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
513
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
514
|
-
const
|
|
514
|
+
const S1 = `${C.replace("http", "ws")}/ui/join/${e.token}`, K = new WebSocket(S1);
|
|
515
515
|
e.client = K, K.onopen = (B) => {
|
|
516
516
|
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
517
|
-
e.client === K && K.readyState === WebSocket.OPEN &&
|
|
517
|
+
e.client === K && K.readyState === WebSocket.OPEN && u(U.setWebsocketIsConnected(!0));
|
|
518
518
|
}, 100);
|
|
519
519
|
}, K.onerror = (B) => {
|
|
520
|
-
console.error("WebSocket middleware: Error", B), i(
|
|
520
|
+
console.error("WebSocket middleware: Error", B), i(u);
|
|
521
521
|
}, K.onclose = (B) => {
|
|
522
522
|
var D;
|
|
523
523
|
if (console.log(
|
|
@@ -525,25 +525,25 @@ const g3 = {}, k1 = a1({
|
|
|
525
525
|
B.reason,
|
|
526
526
|
B.code
|
|
527
527
|
), B.code === 4100) {
|
|
528
|
-
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), i(
|
|
528
|
+
console.log("WebSocket middleware: Closed by client (cleanup)"), r(), i(u);
|
|
529
529
|
return;
|
|
530
530
|
}
|
|
531
531
|
if (e.waitingToReconnect = !0, B.code === 4e3) {
|
|
532
|
-
console.log("WebSocket middleware: User code changed"), r(),
|
|
532
|
+
console.log("WebSocket middleware: User code changed"), r(), u(
|
|
533
533
|
U.setUserCode({ userCode: "", qrUrl: "" })
|
|
534
|
-
),
|
|
534
|
+
), u(
|
|
535
535
|
O.setErrorMessage(
|
|
536
536
|
"User code changed. Click reconnect to enter the new code"
|
|
537
537
|
)
|
|
538
|
-
), i(
|
|
538
|
+
), i(u);
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
541
|
if (B.code === 4002) {
|
|
542
|
-
console.log("WebSocket middleware: Room combination changed"), r(),
|
|
542
|
+
console.log("WebSocket middleware: Room combination changed"), r(), u(
|
|
543
543
|
O.setErrorMessage(
|
|
544
544
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
545
545
|
)
|
|
546
|
-
), i(
|
|
546
|
+
), i(u);
|
|
547
547
|
return;
|
|
548
548
|
}
|
|
549
549
|
if (B.code === 4001)
|
|
@@ -558,11 +558,11 @@ const g3 = {}, k1 = a1({
|
|
|
558
558
|
else {
|
|
559
559
|
console.log(
|
|
560
560
|
"WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
|
|
561
|
-
), r(),
|
|
561
|
+
), r(), u(
|
|
562
562
|
O.setErrorMessage(
|
|
563
563
|
"Processor has disconnected. Click Reconnect to continue."
|
|
564
564
|
)
|
|
565
|
-
), i(
|
|
565
|
+
), i(u);
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
568
568
|
if (e.client)
|
|
@@ -573,11 +573,11 @@ const g3 = {}, k1 = a1({
|
|
|
573
573
|
console.log("WebSocket middleware: Closed by client");
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
576
|
-
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"),
|
|
576
|
+
e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), u(
|
|
577
577
|
O.setErrorMessage(
|
|
578
578
|
"Connection lost. Attempting to reconnect..."
|
|
579
579
|
)
|
|
580
|
-
),
|
|
580
|
+
), u(U.setWebsocketIsConnected(!1)), u(f1.clearDevices()), u(w1.clearRooms()), u(O.clearAllModals()), u(O.clearSyncState()), c(u);
|
|
581
581
|
}, K.onmessage = (B) => {
|
|
582
582
|
try {
|
|
583
583
|
const D = JSON.parse(B.data);
|
|
@@ -588,21 +588,21 @@ const g3 = {}, k1 = a1({
|
|
|
588
588
|
if (D.type.startsWith("/system/"))
|
|
589
589
|
switch (D.type) {
|
|
590
590
|
case "/system/touchpanelKey":
|
|
591
|
-
|
|
591
|
+
u(
|
|
592
592
|
U.setTouchpanelKey(
|
|
593
593
|
D.content
|
|
594
594
|
)
|
|
595
595
|
);
|
|
596
596
|
break;
|
|
597
597
|
case "/system/roomKey":
|
|
598
|
-
|
|
598
|
+
u(w1.clearRooms()), u(f1.clearDevices()), u(O.clearSyncState()), u(
|
|
599
599
|
U.setCurrentRoomKey(
|
|
600
600
|
D.content
|
|
601
601
|
)
|
|
602
602
|
);
|
|
603
603
|
break;
|
|
604
604
|
case "/system/userCodeChanged":
|
|
605
|
-
|
|
605
|
+
u(
|
|
606
606
|
U.setUserCode(D.content)
|
|
607
607
|
);
|
|
608
608
|
break;
|
|
@@ -611,7 +611,7 @@ const g3 = {}, k1 = a1({
|
|
|
611
611
|
break;
|
|
612
612
|
case "/system/deviceInterfaces": {
|
|
613
613
|
const z = D.content;
|
|
614
|
-
|
|
614
|
+
u(
|
|
615
615
|
U.setDeviceInterfaces(
|
|
616
616
|
z.deviceInterfaces
|
|
617
617
|
)
|
|
@@ -630,17 +630,17 @@ const g3 = {}, k1 = a1({
|
|
|
630
630
|
z || console.log(
|
|
631
631
|
"WebSocket middleware: No handlers found for event type",
|
|
632
632
|
D.type
|
|
633
|
-
), z && Object.values(z).forEach((
|
|
633
|
+
), z && Object.values(z).forEach((o1) => {
|
|
634
634
|
try {
|
|
635
|
-
|
|
636
|
-
} catch (
|
|
635
|
+
o1(D);
|
|
636
|
+
} catch (j1) {
|
|
637
637
|
console.error(
|
|
638
638
|
"WebSocket middleware: Event handler error",
|
|
639
|
-
|
|
639
|
+
j1
|
|
640
640
|
);
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
|
-
} else D.type.startsWith("/room/") ?
|
|
643
|
+
} else D.type.startsWith("/room/") ? u(w1.setRoomState(D)) : D.type.startsWith("/device/") && u(f1.setDeviceState(D));
|
|
644
644
|
} catch (D) {
|
|
645
645
|
console.error("WebSocket middleware: Message handling error", D);
|
|
646
646
|
}
|
|
@@ -648,26 +648,26 @@ const g3 = {}, k1 = a1({
|
|
|
648
648
|
} catch (x) {
|
|
649
649
|
console.error("WebSocket middleware: Connection error", x), e.waitingToReconnect = !1, e.client = null;
|
|
650
650
|
}
|
|
651
|
-
},
|
|
651
|
+
}, a = () => {
|
|
652
652
|
e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
|
|
653
|
-
},
|
|
653
|
+
}, p = (u, Z, j) => {
|
|
654
654
|
const C = j(), b = C.runtimeConfig.websocket.isConnected, x = C.runtimeConfig.roomData.clientId;
|
|
655
655
|
e.client && b ? e.client.send(
|
|
656
|
-
JSON.stringify({ type:
|
|
656
|
+
JSON.stringify({ type: u, clientId: x, content: Z })
|
|
657
657
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
658
|
-
}, M = (
|
|
659
|
-
e.eventHandlers[
|
|
660
|
-
}, P = (
|
|
661
|
-
e.eventHandlers[
|
|
658
|
+
}, M = (u, Z, j) => {
|
|
659
|
+
e.eventHandlers[u] || (e.eventHandlers[u] = {}), e.eventHandlers[u][Z] = j, console.log("WebSocket middleware: Event handler added", u, Z);
|
|
660
|
+
}, P = (u, Z) => {
|
|
661
|
+
e.eventHandlers[u] && (delete e.eventHandlers[u][Z], console.log(
|
|
662
662
|
"WebSocket middleware: Event handler removed",
|
|
663
|
-
|
|
663
|
+
u,
|
|
664
664
|
Z
|
|
665
665
|
));
|
|
666
|
-
}, H = (
|
|
667
|
-
const Z =
|
|
666
|
+
}, H = (u) => {
|
|
667
|
+
const Z = u(), { gatewayAppPath: j } = Z.appConfig.config, C = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, W = `${j}?uuid=${b}&roomKey=${C}`;
|
|
668
668
|
window.location.href = x ? `${W}&Code=${x}` : W;
|
|
669
669
|
};
|
|
670
|
-
return (
|
|
670
|
+
return (u) => (Z) => (j) => {
|
|
671
671
|
const C = Z(j);
|
|
672
672
|
if (!j || typeof j != "object" || !("type" in j))
|
|
673
673
|
return C;
|
|
@@ -676,17 +676,17 @@ const g3 = {}, k1 = a1({
|
|
|
676
676
|
switch (b.type) {
|
|
677
677
|
case _3: {
|
|
678
678
|
let W = new URLSearchParams(window.location.search).get("token");
|
|
679
|
-
W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(
|
|
679
|
+
W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(u.dispatch), await g(u.dispatch, u.getState);
|
|
680
680
|
break;
|
|
681
681
|
}
|
|
682
682
|
case P3:
|
|
683
|
-
|
|
683
|
+
a();
|
|
684
684
|
break;
|
|
685
685
|
case L3:
|
|
686
|
-
|
|
686
|
+
p(
|
|
687
687
|
b.payload.messageType,
|
|
688
688
|
b.payload.content,
|
|
689
|
-
|
|
689
|
+
u.getState
|
|
690
690
|
);
|
|
691
691
|
break;
|
|
692
692
|
case $3:
|
|
@@ -703,25 +703,25 @@ const g3 = {}, k1 = a1({
|
|
|
703
703
|
);
|
|
704
704
|
break;
|
|
705
705
|
case B3:
|
|
706
|
-
H(
|
|
706
|
+
H(u.getState);
|
|
707
707
|
break;
|
|
708
708
|
default:
|
|
709
709
|
if (j.type === U.setWebsocketIsConnected.type)
|
|
710
710
|
j.payload === !0 && (console.log(
|
|
711
711
|
"[WebSocket Middleware] Connection established, requesting room status..."
|
|
712
|
-
), setTimeout(() => v(
|
|
712
|
+
), setTimeout(() => v(u.getState), 100));
|
|
713
713
|
else if (j.type === U.setRoomData.type) {
|
|
714
|
-
const x =
|
|
714
|
+
const x = u.getState(), W = j.payload;
|
|
715
715
|
x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
|
|
716
716
|
"[WebSocket Middleware] Room data received, requesting room status..."
|
|
717
|
-
), setTimeout(() => v(
|
|
717
|
+
), setTimeout(() => v(u.getState), 100));
|
|
718
718
|
} else if (j.type === U.setCurrentRoomKey.type) {
|
|
719
719
|
const x = j.payload;
|
|
720
720
|
x && (console.log(
|
|
721
721
|
"[WebSocket Middleware] Room changed to:",
|
|
722
722
|
x,
|
|
723
723
|
", requesting room status..."
|
|
724
|
-
), setTimeout(() => v(
|
|
724
|
+
), setTimeout(() => v(u.getState, x), 100));
|
|
725
725
|
}
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
@@ -768,7 +768,7 @@ function O6() {
|
|
|
768
768
|
return !0;
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
|
-
var
|
|
771
|
+
var m1 = { exports: {} }, l1 = {};
|
|
772
772
|
/**
|
|
773
773
|
* @license React
|
|
774
774
|
* react-jsx-runtime.production.min.js
|
|
@@ -780,19 +780,19 @@ var w1 = { exports: {} }, r1 = {};
|
|
|
780
780
|
*/
|
|
781
781
|
var w3;
|
|
782
782
|
function We() {
|
|
783
|
-
if (w3) return
|
|
783
|
+
if (w3) return l1;
|
|
784
784
|
w3 = 1;
|
|
785
785
|
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, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
786
|
-
function v(
|
|
787
|
-
var M, P = {}, H = null,
|
|
788
|
-
|
|
789
|
-
for (M in
|
|
790
|
-
if (
|
|
791
|
-
return { $$typeof: t, type:
|
|
786
|
+
function v(g, a, p) {
|
|
787
|
+
var M, P = {}, H = null, u = null;
|
|
788
|
+
p !== void 0 && (H = "" + p), a.key !== void 0 && (H = "" + a.key), a.ref !== void 0 && (u = a.ref);
|
|
789
|
+
for (M in a) c.call(a, M) && !i.hasOwnProperty(M) && (P[M] = a[M]);
|
|
790
|
+
if (g && g.defaultProps) for (M in a = g.defaultProps, a) P[M] === void 0 && (P[M] = a[M]);
|
|
791
|
+
return { $$typeof: t, type: g, key: H, ref: u, props: P, _owner: r.current };
|
|
792
792
|
}
|
|
793
|
-
return
|
|
793
|
+
return l1.Fragment = o, l1.jsx = v, l1.jsxs = v, l1;
|
|
794
794
|
}
|
|
795
|
-
var
|
|
795
|
+
var i1 = {};
|
|
796
796
|
/**
|
|
797
797
|
* @license React
|
|
798
798
|
* react-jsx-runtime.development.js
|
|
@@ -802,10 +802,10 @@ var l1 = {};
|
|
|
802
802
|
* This source code is licensed under the MIT license found in the
|
|
803
803
|
* LICENSE file in the root directory of this source tree.
|
|
804
804
|
*/
|
|
805
|
-
var
|
|
805
|
+
var m3;
|
|
806
806
|
function Ve() {
|
|
807
|
-
return
|
|
808
|
-
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"),
|
|
807
|
+
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
808
|
+
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), g = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
|
|
809
809
|
function C(s) {
|
|
810
810
|
if (s === null || typeof s != "object")
|
|
811
811
|
return null;
|
|
@@ -830,14 +830,14 @@ function Ve() {
|
|
|
830
830
|
T.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, T);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
var
|
|
834
|
-
|
|
835
|
-
function
|
|
836
|
-
return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || z || s === r || s ===
|
|
833
|
+
var S1 = !1, K = !1, B = !1, D = !1, z = !1, o1;
|
|
834
|
+
o1 = Symbol.for("react.module.reference");
|
|
835
|
+
function j1(s) {
|
|
836
|
+
return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || z || s === r || s === p || s === M || D || s === u || S1 || K || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === P || s.$$typeof === v || s.$$typeof === g || s.$$typeof === a || // This needs to include all possible module reference object
|
|
837
837
|
// types supported by any Flight configuration anywhere since
|
|
838
838
|
// we don't know which Flight build this will end up being used
|
|
839
839
|
// with.
|
|
840
|
-
s.$$typeof ===
|
|
840
|
+
s.$$typeof === o1 || s.getModuleId !== void 0));
|
|
841
841
|
}
|
|
842
842
|
function U3(s, l, d) {
|
|
843
843
|
var w = s.displayName;
|
|
@@ -865,20 +865,20 @@ function Ve() {
|
|
|
865
865
|
return "Profiler";
|
|
866
866
|
case r:
|
|
867
867
|
return "StrictMode";
|
|
868
|
-
case
|
|
868
|
+
case p:
|
|
869
869
|
return "Suspense";
|
|
870
870
|
case M:
|
|
871
871
|
return "SuspenseList";
|
|
872
872
|
}
|
|
873
873
|
if (typeof s == "object")
|
|
874
874
|
switch (s.$$typeof) {
|
|
875
|
-
case
|
|
875
|
+
case g:
|
|
876
876
|
var l = s;
|
|
877
877
|
return U1(l) + ".Consumer";
|
|
878
878
|
case v:
|
|
879
879
|
var d = s;
|
|
880
880
|
return U1(d._context) + ".Provider";
|
|
881
|
-
case
|
|
881
|
+
case a:
|
|
882
882
|
return U3(s, s.render, "ForwardRef");
|
|
883
883
|
case P:
|
|
884
884
|
var w = s.displayName || null;
|
|
@@ -894,13 +894,13 @@ function Ve() {
|
|
|
894
894
|
}
|
|
895
895
|
return null;
|
|
896
896
|
}
|
|
897
|
-
var X = Object.assign,
|
|
897
|
+
var X = Object.assign, s1 = 0, H1, F1, K1, q1, G1, Y1, z1;
|
|
898
898
|
function J1() {
|
|
899
899
|
}
|
|
900
900
|
J1.__reactDisabledLog = !0;
|
|
901
901
|
function H3() {
|
|
902
902
|
{
|
|
903
|
-
if (
|
|
903
|
+
if (s1 === 0) {
|
|
904
904
|
H1 = console.log, F1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
|
|
905
905
|
var s = {
|
|
906
906
|
configurable: !0,
|
|
@@ -918,12 +918,12 @@ function Ve() {
|
|
|
918
918
|
groupEnd: s
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
|
|
921
|
+
s1++;
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
function F3() {
|
|
925
925
|
{
|
|
926
|
-
if (
|
|
926
|
+
if (s1--, s1 === 0) {
|
|
927
927
|
var s = {
|
|
928
928
|
configurable: !0,
|
|
929
929
|
enumerable: !0,
|
|
@@ -953,42 +953,42 @@ function Ve() {
|
|
|
953
953
|
})
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
|
|
956
|
+
s1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
var
|
|
960
|
-
function
|
|
959
|
+
var C1 = b.ReactCurrentDispatcher, b1;
|
|
960
|
+
function d1(s, l, d) {
|
|
961
961
|
{
|
|
962
|
-
if (
|
|
962
|
+
if (b1 === void 0)
|
|
963
963
|
try {
|
|
964
964
|
throw Error();
|
|
965
965
|
} catch (E) {
|
|
966
966
|
var w = E.stack.trim().match(/\n( *(at )?)/);
|
|
967
|
-
|
|
967
|
+
b1 = w && w[1] || "";
|
|
968
968
|
}
|
|
969
969
|
return `
|
|
970
|
-
` +
|
|
970
|
+
` + b1 + s;
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
var
|
|
973
|
+
var y1 = !1, v1;
|
|
974
974
|
{
|
|
975
975
|
var K3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
976
|
-
|
|
976
|
+
v1 = new K3();
|
|
977
977
|
}
|
|
978
978
|
function X1(s, l) {
|
|
979
|
-
if (!s ||
|
|
979
|
+
if (!s || y1)
|
|
980
980
|
return "";
|
|
981
981
|
{
|
|
982
|
-
var d =
|
|
982
|
+
var d = v1.get(s);
|
|
983
983
|
if (d !== void 0)
|
|
984
984
|
return d;
|
|
985
985
|
}
|
|
986
986
|
var w;
|
|
987
|
-
|
|
987
|
+
y1 = !0;
|
|
988
988
|
var E = Error.prepareStackTrace;
|
|
989
989
|
Error.prepareStackTrace = void 0;
|
|
990
990
|
var T;
|
|
991
|
-
T =
|
|
991
|
+
T = C1.current, C1.current = null, H3();
|
|
992
992
|
try {
|
|
993
993
|
if (l) {
|
|
994
994
|
var y = function() {
|
|
@@ -1034,17 +1034,17 @@ function Ve() {
|
|
|
1034
1034
|
if (L--, $--, $ < 0 || S[L] !== k[$]) {
|
|
1035
1035
|
var F = `
|
|
1036
1036
|
` + S[L].replace(" at new ", " at ");
|
|
1037
|
-
return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" &&
|
|
1037
|
+
return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && v1.set(s, F), F;
|
|
1038
1038
|
}
|
|
1039
1039
|
while (L >= 1 && $ >= 0);
|
|
1040
1040
|
break;
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
} finally {
|
|
1044
|
-
|
|
1044
|
+
y1 = !1, C1.current = T, F3(), Error.prepareStackTrace = E;
|
|
1045
1045
|
}
|
|
1046
|
-
var t1 = s ? s.displayName || s.name : "", Q = t1 ?
|
|
1047
|
-
return typeof s == "function" &&
|
|
1046
|
+
var t1 = s ? s.displayName || s.name : "", Q = t1 ? d1(t1) : "";
|
|
1047
|
+
return typeof s == "function" && v1.set(s, Q), Q;
|
|
1048
1048
|
}
|
|
1049
1049
|
function q3(s, l, d) {
|
|
1050
1050
|
return X1(s, !1);
|
|
@@ -1053,46 +1053,46 @@ function Ve() {
|
|
|
1053
1053
|
var l = s.prototype;
|
|
1054
1054
|
return !!(l && l.isReactComponent);
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function h1(s, l, d) {
|
|
1057
1057
|
if (s == null)
|
|
1058
1058
|
return "";
|
|
1059
1059
|
if (typeof s == "function")
|
|
1060
1060
|
return X1(s, G3(s));
|
|
1061
1061
|
if (typeof s == "string")
|
|
1062
|
-
return
|
|
1062
|
+
return d1(s);
|
|
1063
1063
|
switch (s) {
|
|
1064
|
-
case
|
|
1065
|
-
return
|
|
1064
|
+
case p:
|
|
1065
|
+
return d1("Suspense");
|
|
1066
1066
|
case M:
|
|
1067
|
-
return
|
|
1067
|
+
return d1("SuspenseList");
|
|
1068
1068
|
}
|
|
1069
1069
|
if (typeof s == "object")
|
|
1070
1070
|
switch (s.$$typeof) {
|
|
1071
|
-
case
|
|
1071
|
+
case a:
|
|
1072
1072
|
return q3(s.render);
|
|
1073
1073
|
case P:
|
|
1074
|
-
return
|
|
1074
|
+
return h1(s.type, l, d);
|
|
1075
1075
|
case H: {
|
|
1076
1076
|
var w = s, E = w._payload, T = w._init;
|
|
1077
1077
|
try {
|
|
1078
|
-
return
|
|
1078
|
+
return h1(T(E), l, d);
|
|
1079
1079
|
} catch {
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
return "";
|
|
1084
1084
|
}
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1085
|
+
var c1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
|
|
1086
|
+
function g1(s) {
|
|
1087
1087
|
if (s) {
|
|
1088
|
-
var l = s._owner, d =
|
|
1088
|
+
var l = s._owner, d = h1(s.type, s._source, l ? l.type : null);
|
|
1089
1089
|
N1.setExtraStackFrame(d);
|
|
1090
1090
|
} else
|
|
1091
1091
|
N1.setExtraStackFrame(null);
|
|
1092
1092
|
}
|
|
1093
1093
|
function Y3(s, l, d, w, E) {
|
|
1094
1094
|
{
|
|
1095
|
-
var T = Function.call.bind(
|
|
1095
|
+
var T = Function.call.bind(c1);
|
|
1096
1096
|
for (var y in s)
|
|
1097
1097
|
if (T(s, y)) {
|
|
1098
1098
|
var S = void 0;
|
|
@@ -1105,12 +1105,12 @@ function Ve() {
|
|
|
1105
1105
|
} catch (L) {
|
|
1106
1106
|
S = L;
|
|
1107
1107
|
}
|
|
1108
|
-
S && !(S instanceof Error) && (
|
|
1108
|
+
S && !(S instanceof Error) && (g1(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).", w || "React class", d, y, typeof S), g1(null)), S instanceof Error && !(S.message in Q1) && (Q1[S.message] = !0, g1(E), x("Failed %s type: %s", d, S.message), g1(null));
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
var z3 = Array.isArray;
|
|
1113
|
-
function
|
|
1113
|
+
function I1(s) {
|
|
1114
1114
|
return z3(s);
|
|
1115
1115
|
}
|
|
1116
1116
|
function J3(s) {
|
|
@@ -1140,7 +1140,7 @@ function Ve() {
|
|
|
1140
1140
|
__source: !0
|
|
1141
1141
|
}, o3, s3;
|
|
1142
1142
|
function N3(s) {
|
|
1143
|
-
if (
|
|
1143
|
+
if (c1.call(s, "ref")) {
|
|
1144
1144
|
var l = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
1145
1145
|
if (l && l.isReactWarning)
|
|
1146
1146
|
return !1;
|
|
@@ -1148,7 +1148,7 @@ function Ve() {
|
|
|
1148
1148
|
return s.ref !== void 0;
|
|
1149
1149
|
}
|
|
1150
1150
|
function e2(s) {
|
|
1151
|
-
if (
|
|
1151
|
+
if (c1.call(s, "key")) {
|
|
1152
1152
|
var l = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
1153
1153
|
if (l && l.isReactWarning)
|
|
1154
1154
|
return !1;
|
|
@@ -1214,7 +1214,7 @@ function Ve() {
|
|
|
1214
1214
|
var T, y = {}, S = null, k = null;
|
|
1215
1215
|
d !== void 0 && (t3(d), S = "" + d), e2(l) && (t3(l.key), S = "" + l.key), N3(l) && (k = l.ref, t2(l, E));
|
|
1216
1216
|
for (T in l)
|
|
1217
|
-
|
|
1217
|
+
c1.call(l, T) && !Q3.hasOwnProperty(T) && (y[T] = l[T]);
|
|
1218
1218
|
if (s && s.defaultProps) {
|
|
1219
1219
|
var L = s.defaultProps;
|
|
1220
1220
|
for (T in L)
|
|
@@ -1227,23 +1227,23 @@ function Ve() {
|
|
|
1227
1227
|
return s2(s, S, k, E, w, n3.current, y);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
var
|
|
1230
|
+
var R1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
|
|
1231
1231
|
function e1(s) {
|
|
1232
1232
|
if (s) {
|
|
1233
|
-
var l = s._owner, d =
|
|
1233
|
+
var l = s._owner, d = h1(s.type, s._source, l ? l.type : null);
|
|
1234
1234
|
c3.setExtraStackFrame(d);
|
|
1235
1235
|
} else
|
|
1236
1236
|
c3.setExtraStackFrame(null);
|
|
1237
1237
|
}
|
|
1238
|
-
var
|
|
1239
|
-
|
|
1240
|
-
function
|
|
1238
|
+
var E1;
|
|
1239
|
+
E1 = !1;
|
|
1240
|
+
function T1(s) {
|
|
1241
1241
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
1242
1242
|
}
|
|
1243
1243
|
function r3() {
|
|
1244
1244
|
{
|
|
1245
|
-
if (
|
|
1246
|
-
var s = J(
|
|
1245
|
+
if (R1.current) {
|
|
1246
|
+
var s = J(R1.current.type);
|
|
1247
1247
|
if (s)
|
|
1248
1248
|
return `
|
|
1249
1249
|
|
|
@@ -1278,25 +1278,25 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1278
1278
|
return;
|
|
1279
1279
|
l3[d] = !0;
|
|
1280
1280
|
var w = "";
|
|
1281
|
-
s && s._owner && s._owner !==
|
|
1281
|
+
s && s._owner && s._owner !== R1.current && (w = " It was passed a child from " + J(s._owner.type) + "."), e1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, w), e1(null);
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
function a3(s, l) {
|
|
1285
1285
|
{
|
|
1286
1286
|
if (typeof s != "object")
|
|
1287
1287
|
return;
|
|
1288
|
-
if (
|
|
1288
|
+
if (I1(s))
|
|
1289
1289
|
for (var d = 0; d < s.length; d++) {
|
|
1290
1290
|
var w = s[d];
|
|
1291
|
-
|
|
1291
|
+
T1(w) && i3(w, l);
|
|
1292
1292
|
}
|
|
1293
|
-
else if (
|
|
1293
|
+
else if (T1(s))
|
|
1294
1294
|
s._store && (s._store.validated = !0);
|
|
1295
1295
|
else if (s) {
|
|
1296
1296
|
var E = C(s);
|
|
1297
1297
|
if (typeof E == "function" && E !== s.entries)
|
|
1298
1298
|
for (var T = E.call(s), y; !(y = T.next()).done; )
|
|
1299
|
-
|
|
1299
|
+
T1(y.value) && i3(y.value, l);
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
@@ -1308,7 +1308,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1308
1308
|
var d;
|
|
1309
1309
|
if (typeof l == "function")
|
|
1310
1310
|
d = l.propTypes;
|
|
1311
|
-
else if (typeof l == "object" && (l.$$typeof ===
|
|
1311
|
+
else if (typeof l == "object" && (l.$$typeof === a || // Note: Memo only checks outer props here.
|
|
1312
1312
|
// Inner props are checked in the reconciler.
|
|
1313
1313
|
l.$$typeof === P))
|
|
1314
1314
|
d = l.propTypes;
|
|
@@ -1317,8 +1317,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1317
1317
|
if (d) {
|
|
1318
1318
|
var w = J(l);
|
|
1319
1319
|
Y3(d, s.props, "prop", w, s);
|
|
1320
|
-
} else if (l.PropTypes !== void 0 && !
|
|
1321
|
-
|
|
1320
|
+
} else if (l.PropTypes !== void 0 && !E1) {
|
|
1321
|
+
E1 = !0;
|
|
1322
1322
|
var E = J(l);
|
|
1323
1323
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
1324
1324
|
}
|
|
@@ -1340,14 +1340,14 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1340
1340
|
var u3 = {};
|
|
1341
1341
|
function d3(s, l, d, w, E, T) {
|
|
1342
1342
|
{
|
|
1343
|
-
var y =
|
|
1343
|
+
var y = j1(s);
|
|
1344
1344
|
if (!y) {
|
|
1345
1345
|
var S = "";
|
|
1346
1346
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1347
1347
|
var k = r2();
|
|
1348
1348
|
k ? S += k : S += r3();
|
|
1349
1349
|
var L;
|
|
1350
|
-
s === null ? L = "null" :
|
|
1350
|
+
s === null ? L = "null" : I1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (J(s.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : L = 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", L, S);
|
|
1351
1351
|
}
|
|
1352
1352
|
var $ = c2(s, l, d, E, T);
|
|
1353
1353
|
if ($ == null)
|
|
@@ -1356,7 +1356,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1356
1356
|
var F = l.children;
|
|
1357
1357
|
if (F !== void 0)
|
|
1358
1358
|
if (w)
|
|
1359
|
-
if (
|
|
1359
|
+
if (I1(F)) {
|
|
1360
1360
|
for (var t1 = 0; t1 < F.length; t1++)
|
|
1361
1361
|
a3(F[t1], s);
|
|
1362
1362
|
Object.freeze && Object.freeze(F);
|
|
@@ -1365,18 +1365,18 @@ Check the top-level render call using <` + d + ">.");
|
|
|
1365
1365
|
else
|
|
1366
1366
|
a3(F, s);
|
|
1367
1367
|
}
|
|
1368
|
-
if (
|
|
1368
|
+
if (c1.call(l, "key")) {
|
|
1369
1369
|
var Q = J(s), V = Object.keys(l).filter(function(f2) {
|
|
1370
1370
|
return f2 !== "key";
|
|
1371
|
-
}),
|
|
1372
|
-
if (!u3[Q +
|
|
1371
|
+
}), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1372
|
+
if (!u3[Q + D1]) {
|
|
1373
1373
|
var g2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1374
1374
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
1375
1375
|
let props = %s;
|
|
1376
1376
|
<%s {...props} />
|
|
1377
1377
|
React keys must be passed directly to JSX without using spread:
|
|
1378
1378
|
let props = %s;
|
|
1379
|
-
<%s key={someKey} {...props} />`,
|
|
1379
|
+
<%s key={someKey} {...props} />`, D1, Q, g2, Q), u3[Q + D1] = !0;
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
return s === c ? a2($) : i2($), $;
|
|
@@ -1389,12 +1389,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1389
1389
|
return d3(s, l, d, !1);
|
|
1390
1390
|
}
|
|
1391
1391
|
var v2 = d2, h2 = u2;
|
|
1392
|
-
|
|
1393
|
-
}()),
|
|
1392
|
+
i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
|
|
1393
|
+
}()), i1;
|
|
1394
1394
|
}
|
|
1395
|
-
var
|
|
1395
|
+
var p3;
|
|
1396
1396
|
function Ue() {
|
|
1397
|
-
return
|
|
1397
|
+
return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? m1.exports = We() : m1.exports = Ve()), m1.exports;
|
|
1398
1398
|
}
|
|
1399
1399
|
var n = Ue();
|
|
1400
1400
|
const He = "_mwfit_ppa3l_1", Fe = {
|
|
@@ -1416,30 +1416,30 @@ const He = "_mwfit_ppa3l_1", Fe = {
|
|
|
1416
1416
|
reconnect: () => null
|
|
1417
1417
|
}), qe = ({ children: e }) => {
|
|
1418
1418
|
const t = W1(), o = I3();
|
|
1419
|
-
|
|
1419
|
+
O1(() => {
|
|
1420
1420
|
t(k3());
|
|
1421
1421
|
}, [t]);
|
|
1422
|
-
const c =
|
|
1423
|
-
(
|
|
1424
|
-
t(Pe(
|
|
1422
|
+
const c = r1(
|
|
1423
|
+
(a, p) => {
|
|
1424
|
+
t(Pe(a, p));
|
|
1425
1425
|
},
|
|
1426
1426
|
[t]
|
|
1427
|
-
), r =
|
|
1428
|
-
(
|
|
1429
|
-
c(
|
|
1427
|
+
), r = r1(
|
|
1428
|
+
(a, p) => {
|
|
1429
|
+
c(a, { value: p });
|
|
1430
1430
|
},
|
|
1431
1431
|
[c]
|
|
1432
|
-
), i =
|
|
1433
|
-
(
|
|
1434
|
-
t(Le(
|
|
1432
|
+
), i = r1(
|
|
1433
|
+
(a, p, M) => {
|
|
1434
|
+
t(Le(a, p, M));
|
|
1435
1435
|
},
|
|
1436
1436
|
[t]
|
|
1437
|
-
), v =
|
|
1438
|
-
(
|
|
1439
|
-
t($e(
|
|
1437
|
+
), v = r1(
|
|
1438
|
+
(a, p) => {
|
|
1439
|
+
t($e(a, p));
|
|
1440
1440
|
},
|
|
1441
1441
|
[t]
|
|
1442
|
-
),
|
|
1442
|
+
), g = r1(() => {
|
|
1443
1443
|
t(Ae());
|
|
1444
1444
|
}, [t]);
|
|
1445
1445
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1450,7 +1450,7 @@ const He = "_mwfit_ppa3l_1", Fe = {
|
|
|
1450
1450
|
sendSimpleMessage: r,
|
|
1451
1451
|
addEventHandler: i,
|
|
1452
1452
|
removeEventHandler: v,
|
|
1453
|
-
reconnect:
|
|
1453
|
+
reconnect: g
|
|
1454
1454
|
},
|
|
1455
1455
|
children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
|
|
1456
1456
|
}
|
|
@@ -1465,26 +1465,26 @@ function Ge({
|
|
|
1465
1465
|
onHold: o,
|
|
1466
1466
|
holdTimeMs: c = 500
|
|
1467
1467
|
}) {
|
|
1468
|
-
const r =
|
|
1468
|
+
const r = $1(null), i = $1(!1);
|
|
1469
1469
|
function v() {
|
|
1470
1470
|
i.current = !0, e == null || e(), r.current = setTimeout(() => {
|
|
1471
1471
|
o == null || o(), r.current = null;
|
|
1472
1472
|
}, c);
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function g() {
|
|
1475
1475
|
i.current = !1, t == null || t(), r.current && (clearTimeout(r.current), r.current = null);
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1478
|
-
i.current &&
|
|
1477
|
+
function a() {
|
|
1478
|
+
i.current && g();
|
|
1479
1479
|
}
|
|
1480
1480
|
return {
|
|
1481
1481
|
onPointerDown: v,
|
|
1482
|
-
onPointerUp:
|
|
1483
|
-
onPointerLeave:
|
|
1482
|
+
onPointerUp: g,
|
|
1483
|
+
onPointerLeave: a
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1487
|
-
const { sendMessage: c } = R(), r =
|
|
1486
|
+
function h(e, t) {
|
|
1487
|
+
const { sendMessage: c } = R(), r = $1(null);
|
|
1488
1488
|
function i() {
|
|
1489
1489
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1490
1490
|
c(`${e}/${t}`, { value: "held" });
|
|
@@ -1495,25 +1495,25 @@ function g(e, t) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
return Ge({ onPress: i, onRelease: v });
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1499
|
-
const { sendMessage: t } = R(), o =
|
|
1500
|
-
return
|
|
1498
|
+
function Z1(e) {
|
|
1499
|
+
const { sendMessage: t } = R(), o = h(`${e}`, "volumeUp"), c = h(`${e}`, "volumeDown");
|
|
1500
|
+
return n1(() => ({
|
|
1501
1501
|
volumeUp: o,
|
|
1502
1502
|
volumeDown: c,
|
|
1503
1503
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1504
1504
|
}), [e, t, o, c]);
|
|
1505
1505
|
}
|
|
1506
1506
|
function V6(e) {
|
|
1507
|
-
const { sendMessage: t } = R(), o =
|
|
1508
|
-
return
|
|
1507
|
+
const { sendMessage: t } = R(), o = h(`${e}`, "volumeUp"), c = h(`${e}`, "volumeDown");
|
|
1508
|
+
return n1(() => ({
|
|
1509
1509
|
volumeUp: o,
|
|
1510
1510
|
volumeDown: c,
|
|
1511
1511
|
muteToggle: () => t(`${e}/muteToggle`, null)
|
|
1512
1512
|
}), [e, t, o, c]);
|
|
1513
1513
|
}
|
|
1514
1514
|
function W3(e, t) {
|
|
1515
|
-
const { sendMessage: o, sendSimpleMessage: c } = R(), r =
|
|
1516
|
-
return
|
|
1515
|
+
const { sendMessage: o, sendSimpleMessage: c } = R(), r = Z1(e);
|
|
1516
|
+
return n1(() => {
|
|
1517
1517
|
if (!r) {
|
|
1518
1518
|
console.log("baseVolume is undefined");
|
|
1519
1519
|
return;
|
|
@@ -1525,15 +1525,15 @@ function W3(e, t) {
|
|
|
1525
1525
|
return {
|
|
1526
1526
|
...r,
|
|
1527
1527
|
volumeState: t,
|
|
1528
|
-
setLevel: (
|
|
1528
|
+
setLevel: (a) => c(`${e}/level`, a),
|
|
1529
1529
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1530
1530
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1531
1531
|
};
|
|
1532
1532
|
}, [r, t, e, o, c]);
|
|
1533
1533
|
}
|
|
1534
1534
|
function U6(e, t) {
|
|
1535
|
-
const { sendMessage: o, sendSimpleMessage: c } = R(), r =
|
|
1536
|
-
return
|
|
1535
|
+
const { sendMessage: o, sendSimpleMessage: c } = R(), r = Z1(e);
|
|
1536
|
+
return n1(() => {
|
|
1537
1537
|
if (!r) {
|
|
1538
1538
|
console.log("baseVolume is undefined");
|
|
1539
1539
|
return;
|
|
@@ -1545,15 +1545,18 @@ function U6(e, t) {
|
|
|
1545
1545
|
return {
|
|
1546
1546
|
...r,
|
|
1547
1547
|
volumeState: t,
|
|
1548
|
-
setLevel: (
|
|
1548
|
+
setLevel: (a) => c(`${e}/level`, a),
|
|
1549
1549
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1550
1550
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1551
1551
|
};
|
|
1552
1552
|
}, [r, t, e, o, c]);
|
|
1553
1553
|
}
|
|
1554
1554
|
function Ye(e) {
|
|
1555
|
-
const t = _(e), o = `/device/${e}
|
|
1556
|
-
|
|
1555
|
+
const t = _(e), o = `/device/${e}`, c = n1(() => {
|
|
1556
|
+
if (t)
|
|
1557
|
+
return t.volume;
|
|
1558
|
+
}, [t]);
|
|
1559
|
+
return W3(o, c);
|
|
1557
1560
|
}
|
|
1558
1561
|
function V3(e) {
|
|
1559
1562
|
const { sendMessage: t } = R();
|
|
@@ -1565,7 +1568,7 @@ function V3(e) {
|
|
|
1565
1568
|
t(`/device/${e}/powerToggle`, null);
|
|
1566
1569
|
} };
|
|
1567
1570
|
}
|
|
1568
|
-
function
|
|
1571
|
+
function k1(e) {
|
|
1569
1572
|
const { sendMessage: t } = R(), o = _(e);
|
|
1570
1573
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1571
1574
|
t(`/device/${e}/${r}`, null);
|
|
@@ -1576,14 +1579,14 @@ function ze(e) {
|
|
|
1576
1579
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1577
1580
|
}, r = () => {
|
|
1578
1581
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
1579
|
-
Object.keys(o == null ? void 0 : o.levelControls).forEach((
|
|
1580
|
-
t(`/device/${e}/${
|
|
1582
|
+
Object.keys(o == null ? void 0 : o.levelControls).forEach((g) => {
|
|
1583
|
+
t(`/device/${e}/${g}/fullStatus`, null);
|
|
1581
1584
|
});
|
|
1582
1585
|
};
|
|
1583
1586
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1584
1587
|
}
|
|
1585
1588
|
function H6(e) {
|
|
1586
|
-
const t = _(e), o = V3(e), c =
|
|
1589
|
+
const t = _(e), o = V3(e), c = k1(e), r = k1(e), i = Ye(e), v = ze(e);
|
|
1587
1590
|
if (t)
|
|
1588
1591
|
return {
|
|
1589
1592
|
avrState: t,
|
|
@@ -1596,7 +1599,7 @@ function H6(e) {
|
|
|
1596
1599
|
}
|
|
1597
1600
|
const F6 = ({ className: e }) => {
|
|
1598
1601
|
const [t, o] = Y();
|
|
1599
|
-
return
|
|
1602
|
+
return O1(() => {
|
|
1600
1603
|
setInterval(() => {
|
|
1601
1604
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1602
1605
|
o(c);
|
|
@@ -1608,8 +1611,8 @@ const F6 = ({ className: e }) => {
|
|
|
1608
1611
|
};
|
|
1609
1612
|
function K6(e) {
|
|
1610
1613
|
const { sendMessage: t } = R(), o = _(e), c = `/device/${e}`;
|
|
1611
|
-
return o ? { state: o, recallPreset: (v,
|
|
1612
|
-
t(`${c}/presets/recall`, { deviceKey: v, preset:
|
|
1614
|
+
return o ? { state: o, recallPreset: (v, g) => {
|
|
1615
|
+
t(`${c}/presets/recall`, { deviceKey: v, preset: g });
|
|
1613
1616
|
}, savePresets: (v) => {
|
|
1614
1617
|
t(`${c}/presets/save`, v);
|
|
1615
1618
|
} } : void 0;
|
|
@@ -1620,11 +1623,11 @@ function q6(e) {
|
|
|
1620
1623
|
return { endpointState: t };
|
|
1621
1624
|
}
|
|
1622
1625
|
function G6(e) {
|
|
1623
|
-
const t = `/device/${e}`, o =
|
|
1624
|
-
return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: v, exit:
|
|
1626
|
+
const t = `/device/${e}`, o = h(t, "chanUp"), c = h(t, "chanDown"), r = h(t, "lastChan"), i = h(t, "guide"), v = h(t, "info"), g = h(t, "exit");
|
|
1627
|
+
return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: v, exit: g };
|
|
1625
1628
|
}
|
|
1626
1629
|
function Y6(e) {
|
|
1627
|
-
const t = `/device/${e}`, o =
|
|
1630
|
+
const t = `/device/${e}`, o = h(t, "red"), c = h(t, "green"), r = h(t, "yellow"), i = h(t, "blue");
|
|
1628
1631
|
return { red: o, green: c, yellow: r, blue: i };
|
|
1629
1632
|
}
|
|
1630
1633
|
function z6(e) {
|
|
@@ -1640,20 +1643,20 @@ function J6(e) {
|
|
|
1640
1643
|
return t.deviceInfo || void 0;
|
|
1641
1644
|
}
|
|
1642
1645
|
function X6(e) {
|
|
1643
|
-
const t = `/device/${e}`, o =
|
|
1644
|
-
return { up: o, down: c, left: r, right: i, select: v, menu:
|
|
1646
|
+
const t = `/device/${e}`, o = h(t, "up"), c = h(t, "down"), r = h(t, "left"), i = h(t, "right"), v = h(t, "select"), g = h(t, "menu"), a = h(t, "exit");
|
|
1647
|
+
return { up: o, down: c, left: r, right: i, select: v, menu: g, exit: a };
|
|
1645
1648
|
}
|
|
1646
1649
|
function Q6(e) {
|
|
1647
|
-
const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e), r =
|
|
1650
|
+
const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e), r = h(o, "cameraUp"), i = h(o, "cameraDown"), v = h(o, "cameraLeft"), g = h(o, "cameraRight"), a = h(o, "cameraZoomIn"), p = h(o, "cameraZoomOut"), M = (P) => t("/camera/recallPreset", P);
|
|
1648
1651
|
if (c)
|
|
1649
1652
|
return {
|
|
1650
1653
|
state: c,
|
|
1651
|
-
zoomIn:
|
|
1652
|
-
zoomOut:
|
|
1654
|
+
zoomIn: a,
|
|
1655
|
+
zoomOut: p,
|
|
1653
1656
|
up: r,
|
|
1654
1657
|
down: i,
|
|
1655
1658
|
left: v,
|
|
1656
|
-
right:
|
|
1659
|
+
right: g,
|
|
1657
1660
|
recallPreset: M
|
|
1658
1661
|
};
|
|
1659
1662
|
}
|
|
@@ -1667,7 +1670,7 @@ function N6(e) {
|
|
|
1667
1670
|
} };
|
|
1668
1671
|
}
|
|
1669
1672
|
function et(e) {
|
|
1670
|
-
const t = `/device/${e}`, o =
|
|
1673
|
+
const t = `/device/${e}`, o = h(t, "dvrList"), c = h(t, "record");
|
|
1671
1674
|
return { dvrList: o, record: c };
|
|
1672
1675
|
}
|
|
1673
1676
|
function tt(e) {
|
|
@@ -1678,10 +1681,10 @@ function tt(e) {
|
|
|
1678
1681
|
t(`/device/${e}/setManualMode`, null);
|
|
1679
1682
|
}, toggleMode: () => {
|
|
1680
1683
|
t(`/device/${e}/toggleMode`, null);
|
|
1681
|
-
}, togglePartitionState: (
|
|
1682
|
-
t(`/device/${e}/togglePartitionState`,
|
|
1683
|
-
}, setRoomCombinationScenario: (
|
|
1684
|
-
t(`/device/${e}/setRoomCombinationScenario`,
|
|
1684
|
+
}, togglePartitionState: (a) => {
|
|
1685
|
+
t(`/device/${e}/togglePartitionState`, a);
|
|
1686
|
+
}, setRoomCombinationScenario: (a) => {
|
|
1687
|
+
t(`/device/${e}/setRoomCombinationScenario`, a);
|
|
1685
1688
|
} } : void 0;
|
|
1686
1689
|
}
|
|
1687
1690
|
function nt(e) {
|
|
@@ -1727,20 +1730,20 @@ function lt(e) {
|
|
|
1727
1730
|
} };
|
|
1728
1731
|
}
|
|
1729
1732
|
function it(e) {
|
|
1730
|
-
const t = `/device/${e}`, o =
|
|
1733
|
+
const t = `/device/${e}`, o = h(t, "num0"), c = h(t, "num1"), r = h(t, "num2"), i = h(t, "num3"), v = h(t, "num4"), g = h(t, "num5"), a = h(t, "num6"), p = h(t, "num7"), M = h(t, "num8"), P = h(t, "num9"), H = h(t, "numDash"), u = h(t, "numEnter");
|
|
1731
1734
|
return {
|
|
1732
1735
|
digit0: o,
|
|
1733
1736
|
digit1: c,
|
|
1734
1737
|
digit2: r,
|
|
1735
1738
|
digit3: i,
|
|
1736
1739
|
digit4: v,
|
|
1737
|
-
digit5:
|
|
1738
|
-
digit6:
|
|
1739
|
-
digit7:
|
|
1740
|
+
digit5: g,
|
|
1741
|
+
digit6: a,
|
|
1742
|
+
digit7: p,
|
|
1740
1743
|
digit8: M,
|
|
1741
1744
|
digit9: P,
|
|
1742
1745
|
keypadAccessoryButton1: H,
|
|
1743
|
-
keypadAccessoryButton2:
|
|
1746
|
+
keypadAccessoryButton2: u
|
|
1744
1747
|
};
|
|
1745
1748
|
}
|
|
1746
1749
|
function at(e) {
|
|
@@ -1752,7 +1755,7 @@ function at(e) {
|
|
|
1752
1755
|
} } : void 0;
|
|
1753
1756
|
}
|
|
1754
1757
|
function ut(e) {
|
|
1755
|
-
const { sendMessage: t } = R(), o =
|
|
1758
|
+
const { sendMessage: t } = R(), o = x1(e);
|
|
1756
1759
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1757
1760
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
1758
1761
|
} } : void 0;
|
|
@@ -1776,7 +1779,7 @@ function ht(e) {
|
|
|
1776
1779
|
} };
|
|
1777
1780
|
}
|
|
1778
1781
|
function gt(e) {
|
|
1779
|
-
const t = `/device/${e}`, o =
|
|
1782
|
+
const t = `/device/${e}`, o = h(t, "chanUp"), c = h(t, "chanDown");
|
|
1780
1783
|
return { dvrList: o, replay: c };
|
|
1781
1784
|
}
|
|
1782
1785
|
function ft(e) {
|
|
@@ -1790,9 +1793,9 @@ function ft(e) {
|
|
|
1790
1793
|
} } : void 0;
|
|
1791
1794
|
}
|
|
1792
1795
|
function wt(e) {
|
|
1793
|
-
const { sendMessage: t } = R(), o =
|
|
1794
|
-
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (
|
|
1795
|
-
t(`/room/${e}/setShutdownPromptSeconds`,
|
|
1796
|
+
const { sendMessage: t } = R(), o = x1(e);
|
|
1797
|
+
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
|
|
1798
|
+
t(`/room/${e}/setShutdownPromptSeconds`, g);
|
|
1796
1799
|
}, shutdownStart: () => {
|
|
1797
1800
|
t(`/room/${e}/shutdownStart`, null);
|
|
1798
1801
|
}, shutdownEnd: () => {
|
|
@@ -1801,7 +1804,7 @@ function wt(e) {
|
|
|
1801
1804
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1802
1805
|
} } : void 0;
|
|
1803
1806
|
}
|
|
1804
|
-
function
|
|
1807
|
+
function mt(e) {
|
|
1805
1808
|
const { sendMessage: t } = R(), o = _(e);
|
|
1806
1809
|
return o ? { switchedOutputState: o, on: () => {
|
|
1807
1810
|
t(`/device/${e}/on`, null);
|
|
@@ -1809,8 +1812,8 @@ function pt(e) {
|
|
|
1809
1812
|
t(`/device/${e}/off`, null);
|
|
1810
1813
|
} } : void 0;
|
|
1811
1814
|
}
|
|
1812
|
-
function
|
|
1813
|
-
const { sendMessage: t } = R(), o =
|
|
1815
|
+
function pt(e) {
|
|
1816
|
+
const { sendMessage: t } = R(), o = x1(e);
|
|
1814
1817
|
return o ? { techPasswordState: o, validatePassword: (i) => {
|
|
1815
1818
|
t(`/room/${e}/validateTechPassword`, { password: i });
|
|
1816
1819
|
}, setPassword: (i, v) => {
|
|
@@ -1831,16 +1834,16 @@ function xt(e) {
|
|
|
1831
1834
|
};
|
|
1832
1835
|
}
|
|
1833
1836
|
function Zt(e) {
|
|
1834
|
-
const t = `/device/${e}`, o =
|
|
1837
|
+
const t = `/device/${e}`, o = h(t, "play"), c = h(t, "pause"), r = h(t, "stop"), i = h(t, "prevTrack"), v = h(t, "nextTrack"), g = h(t, "rewind"), a = h(t, "ffwd"), p = h(t, "record");
|
|
1835
1838
|
return {
|
|
1836
1839
|
play: o,
|
|
1837
1840
|
pause: c,
|
|
1838
1841
|
stop: r,
|
|
1839
1842
|
prevTrack: i,
|
|
1840
1843
|
nextTrack: v,
|
|
1841
|
-
rewind:
|
|
1842
|
-
fastForward:
|
|
1843
|
-
record:
|
|
1844
|
+
rewind: g,
|
|
1845
|
+
fastForward: a,
|
|
1846
|
+
record: p
|
|
1844
1847
|
};
|
|
1845
1848
|
}
|
|
1846
1849
|
function St(e) {
|
|
@@ -1860,7 +1863,7 @@ function St(e) {
|
|
|
1860
1863
|
} : void 0;
|
|
1861
1864
|
}
|
|
1862
1865
|
function jt(e) {
|
|
1863
|
-
const t = _(e), o = V3(e), c =
|
|
1866
|
+
const t = _(e), o = V3(e), c = k1(e);
|
|
1864
1867
|
if (!t) return;
|
|
1865
1868
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1866
1869
|
return {
|
|
@@ -1872,73 +1875,73 @@ function jt(e) {
|
|
|
1872
1875
|
}
|
|
1873
1876
|
function Ct(e) {
|
|
1874
1877
|
const t = `/device/${e}`;
|
|
1875
|
-
return
|
|
1878
|
+
return Z1(t);
|
|
1876
1879
|
}
|
|
1877
1880
|
const bt = ({
|
|
1878
1881
|
config: e
|
|
1879
|
-
}) => {
|
|
1880
|
-
const { sendMessage:
|
|
1881
|
-
|
|
1882
|
-
var
|
|
1882
|
+
}, t = !0) => {
|
|
1883
|
+
const { sendMessage: o } = R();
|
|
1884
|
+
return n1(() => {
|
|
1885
|
+
var r, i, v, g;
|
|
1883
1886
|
if (!e)
|
|
1884
1887
|
return;
|
|
1885
|
-
const
|
|
1886
|
-
if (e.destinations && Object.values(e.destinations).forEach((
|
|
1887
|
-
|
|
1888
|
-
}), e.destinationList && Object.values(e.destinationList).forEach((
|
|
1889
|
-
|
|
1890
|
-
}), e.audioControlPointList && Object.values((
|
|
1891
|
-
(
|
|
1892
|
-
|
|
1888
|
+
const c = /* @__PURE__ */ new Set();
|
|
1889
|
+
if (e.destinations && Object.values(e.destinations).forEach((a) => {
|
|
1890
|
+
c.add(a);
|
|
1891
|
+
}), e.destinationList && Object.values(e.destinationList).forEach((a) => {
|
|
1892
|
+
c.add(a.sinkKey);
|
|
1893
|
+
}), e.audioControlPointList && Object.values((r = e.audioControlPointList) == null ? void 0 : r.levelControls).forEach(
|
|
1894
|
+
(a) => {
|
|
1895
|
+
a.itemKey ? c.add(a.parentDeviceKey + "--" + a.itemKey) : c.add(a.parentDeviceKey);
|
|
1893
1896
|
}
|
|
1894
|
-
), (
|
|
1895
|
-
|
|
1896
|
-
}), (
|
|
1897
|
-
|
|
1898
|
-
}), (
|
|
1899
|
-
|
|
1900
|
-
}), e.audioCodecKey &&
|
|
1901
|
-
|
|
1897
|
+
), (i = e.touchpanelKeys) == null || i.forEach((a) => {
|
|
1898
|
+
c.add(a);
|
|
1899
|
+
}), (v = e.environmentalDevices) == null || v.forEach((a) => {
|
|
1900
|
+
a.deviceKey && c.add(a.deviceKey);
|
|
1901
|
+
}), (g = e.accessoryDeviceKeys) == null || g.forEach((a) => {
|
|
1902
|
+
c.add(a);
|
|
1903
|
+
}), e.audioCodecKey && c.add(e.audioCodecKey), e.videoCodecKey && c.add(e.videoCodecKey), e.matrixRoutingKey && c.add(e.matrixRoutingKey), e.roomCombinerKey && c.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((a) => {
|
|
1904
|
+
c.add(a);
|
|
1902
1905
|
}), e.sourceList)
|
|
1903
|
-
for (const
|
|
1904
|
-
|
|
1905
|
-
console.log("requesting state for deviceKeys:",
|
|
1906
|
-
|
|
1907
|
-
});
|
|
1908
|
-
}, [e, t]);
|
|
1906
|
+
for (const a of Object.values(e.sourceList))
|
|
1907
|
+
a.sourceKey && a.sourceKey !== "$off" && c.add(a.sourceKey);
|
|
1908
|
+
return console.log("requesting state for deviceKeys:", c), t && c.forEach((a) => {
|
|
1909
|
+
o(`/device/${a}/fullStatus`, { deviceKey: a });
|
|
1910
|
+
}), c;
|
|
1911
|
+
}, [e, o, t]);
|
|
1909
1912
|
};
|
|
1910
1913
|
function yt(e, t) {
|
|
1911
1914
|
const [o, c] = Y(!1), [r, i] = Y(!1);
|
|
1912
1915
|
return Z3(() => {
|
|
1913
|
-
const { current: v } = e,
|
|
1914
|
-
const
|
|
1915
|
-
i(
|
|
1916
|
+
const { current: v } = e, g = () => {
|
|
1917
|
+
const a = v && v.scrollHeight > v.clientHeight, p = v && v.scrollWidth > v.clientWidth;
|
|
1918
|
+
i(a ?? !1), c(p ?? !1), t && t(a ?? !1, p ?? !1);
|
|
1916
1919
|
};
|
|
1917
|
-
v &&
|
|
1920
|
+
v && g();
|
|
1918
1921
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1919
1922
|
}
|
|
1920
1923
|
function It(e, t) {
|
|
1921
1924
|
const o = `/room/${e}/volumes/${t}`;
|
|
1922
|
-
return
|
|
1925
|
+
return Z1(o);
|
|
1923
1926
|
}
|
|
1924
1927
|
function Rt(e, t) {
|
|
1925
1928
|
const o = te(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1926
1929
|
return W3(c, o);
|
|
1927
1930
|
}
|
|
1928
1931
|
function Et(e) {
|
|
1929
|
-
var
|
|
1930
|
-
const [t, o] = Y(((
|
|
1932
|
+
var g, a;
|
|
1933
|
+
const [t, o] = Y(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollLeft) ?? 0), [c, r] = Y(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollTop) ?? 0), i = (p) => {
|
|
1931
1934
|
const { current: M } = e;
|
|
1932
|
-
M && (console.log(M.scrollLeft), M.scrollLeft +=
|
|
1933
|
-
}, v = (
|
|
1935
|
+
M && (console.log(M.scrollLeft), M.scrollLeft += p, console.log(M.scrollLeft));
|
|
1936
|
+
}, v = (p) => {
|
|
1934
1937
|
const { current: M } = e;
|
|
1935
|
-
M && (console.log(M.scrollTop), M.scrollTop +=
|
|
1938
|
+
M && (console.log(M.scrollTop), M.scrollTop += p, console.log(M.scrollTop));
|
|
1936
1939
|
};
|
|
1937
1940
|
return Z3(() => {
|
|
1938
|
-
const { current:
|
|
1939
|
-
o((
|
|
1941
|
+
const { current: p } = e, M = () => {
|
|
1942
|
+
o((p == null ? void 0 : p.scrollLeft) ?? 0), r((p == null ? void 0 : p.scrollTop) ?? 0);
|
|
1940
1943
|
};
|
|
1941
|
-
|
|
1944
|
+
p && M();
|
|
1942
1945
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: v };
|
|
1943
1946
|
}
|
|
1944
1947
|
function Tt(e) {
|
|
@@ -1967,7 +1970,7 @@ function _t() {
|
|
|
1967
1970
|
const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
1968
1971
|
c(i);
|
|
1969
1972
|
}
|
|
1970
|
-
return
|
|
1973
|
+
return O1(() => {
|
|
1971
1974
|
r();
|
|
1972
1975
|
const i = setInterval(() => {
|
|
1973
1976
|
r();
|
|
@@ -1998,7 +2001,7 @@ const Pt = () => {
|
|
|
1998
2001
|
),
|
|
1999
2002
|
e && /* @__PURE__ */ n.jsx("p", { children: r })
|
|
2000
2003
|
] });
|
|
2001
|
-
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18",
|
|
2004
|
+
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", P1 = {
|
|
2002
2005
|
iconbtn: Je,
|
|
2003
2006
|
iconbtnvert: Xe,
|
|
2004
2007
|
iconsm: Qe
|
|
@@ -2010,23 +2013,23 @@ const Pt = () => {
|
|
|
2010
2013
|
iconClassName: r = "",
|
|
2011
2014
|
otherContentClassName: i = "",
|
|
2012
2015
|
disabled: v,
|
|
2013
|
-
feedback:
|
|
2014
|
-
feedbackClassName:
|
|
2015
|
-
onPointerDown:
|
|
2016
|
+
feedback: g,
|
|
2017
|
+
feedbackClassName: a,
|
|
2018
|
+
onPointerDown: p,
|
|
2016
2019
|
onPointerUp: M,
|
|
2017
2020
|
onPointerLeave: P,
|
|
2018
2021
|
...H
|
|
2019
2022
|
}) => {
|
|
2020
|
-
const [
|
|
2023
|
+
const [u, Z] = Y(!1), j = !v && g ? a : "", C = !v && (u || g);
|
|
2021
2024
|
return /* @__PURE__ */ n.jsxs(
|
|
2022
2025
|
"button",
|
|
2023
2026
|
{
|
|
2024
2027
|
type: "button",
|
|
2025
|
-
className: `${
|
|
2028
|
+
className: `${P1.iconbtn} ${o ? P1.iconbtnvert : ""} ${c} ${j}`,
|
|
2026
2029
|
...H,
|
|
2027
2030
|
disabled: v,
|
|
2028
2031
|
onPointerDown: (b) => {
|
|
2029
|
-
Z(!0),
|
|
2032
|
+
Z(!0), p == null || p(b);
|
|
2030
2033
|
},
|
|
2031
2034
|
onPointerUp: (b) => {
|
|
2032
2035
|
Z(!1), M == null || M(b);
|
|
@@ -2038,7 +2041,7 @@ const Pt = () => {
|
|
|
2038
2041
|
e && /* @__PURE__ */ n.jsx(
|
|
2039
2042
|
e,
|
|
2040
2043
|
{
|
|
2041
|
-
className: `${r ||
|
|
2044
|
+
className: `${r || P1.iconsm}`,
|
|
2042
2045
|
active: C,
|
|
2043
2046
|
disabled: v
|
|
2044
2047
|
}
|
|
@@ -2891,7 +2894,7 @@ const Pt = () => {
|
|
|
2891
2894
|
active: e,
|
|
2892
2895
|
disabled: o
|
|
2893
2896
|
}
|
|
2894
|
-
),
|
|
2897
|
+
), m8 = ({
|
|
2895
2898
|
active: e,
|
|
2896
2899
|
className: t = "",
|
|
2897
2900
|
disabled: o
|
|
@@ -2940,7 +2943,7 @@ const Pt = () => {
|
|
|
2940
2943
|
active: e,
|
|
2941
2944
|
disabled: o
|
|
2942
2945
|
}
|
|
2943
|
-
),
|
|
2946
|
+
), p8 = ({
|
|
2944
2947
|
active: e,
|
|
2945
2948
|
className: t = "",
|
|
2946
2949
|
disabled: o
|
|
@@ -3679,8 +3682,8 @@ const Pt = () => {
|
|
|
3679
3682
|
Moon: g8,
|
|
3680
3683
|
Playstation: f8,
|
|
3681
3684
|
Podium: w8,
|
|
3682
|
-
Power:
|
|
3683
|
-
Privacy:
|
|
3685
|
+
Power: m8,
|
|
3686
|
+
Privacy: p8,
|
|
3684
3687
|
Question: M8,
|
|
3685
3688
|
RightArrow: x8,
|
|
3686
3689
|
RoomPC: Z8,
|
|
@@ -3702,17 +3705,17 @@ function $t({
|
|
|
3702
3705
|
const c = t[e] ?? null;
|
|
3703
3706
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3704
3707
|
}
|
|
3705
|
-
const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29",
|
|
3708
|
+
const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", a1 = {
|
|
3706
3709
|
grid: P8,
|
|
3707
3710
|
header: L8,
|
|
3708
3711
|
content: $8,
|
|
3709
3712
|
footer: A8,
|
|
3710
3713
|
volume: B8
|
|
3711
|
-
}, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
3712
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3713
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3714
|
-
r && /* @__PURE__ */ n.jsx("div", { className:
|
|
3715
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3714
|
+
}, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
|
|
3715
|
+
/* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
|
|
3716
|
+
/* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
|
|
3717
|
+
r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
|
|
3718
|
+
/* @__PURE__ */ n.jsx("div", { className: a1.footer, children: t })
|
|
3716
3719
|
] }), k8 = "_grid_11w5q_1", O8 = "_header_11w5q_11", W8 = "_content_11w5q_17", p1 = {
|
|
3717
3720
|
grid: k8,
|
|
3718
3721
|
header: O8,
|
|
@@ -3721,13 +3724,13 @@ const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A
|
|
|
3721
3724
|
/* @__PURE__ */ n.jsx("div", { className: p1.header, children: t }),
|
|
3722
3725
|
c && /* @__PURE__ */ n.jsx("div", { className: p1.leftNav, children: c }),
|
|
3723
3726
|
/* @__PURE__ */ n.jsx("div", { className: p1.content, children: o })
|
|
3724
|
-
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17",
|
|
3727
|
+
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", L1 = {
|
|
3725
3728
|
grid: V8,
|
|
3726
3729
|
header: U8,
|
|
3727
3730
|
content: H8
|
|
3728
|
-
}, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${
|
|
3729
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3730
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3731
|
+
}, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${L1.grid}`, children: [
|
|
3732
|
+
/* @__PURE__ */ n.jsx("div", { className: L1.header, children: t }),
|
|
3733
|
+
/* @__PURE__ */ n.jsx("div", { className: L1.content, children: o })
|
|
3731
3734
|
] });
|
|
3732
3735
|
class Ot {
|
|
3733
3736
|
constructor() {
|
|
@@ -3771,8 +3774,8 @@ export {
|
|
|
3771
3774
|
g8 as IconMultiMoon,
|
|
3772
3775
|
f8 as IconMultiPlaystation,
|
|
3773
3776
|
w8 as IconMultiPodium,
|
|
3774
|
-
|
|
3775
|
-
|
|
3777
|
+
m8 as IconMultiPower,
|
|
3778
|
+
p8 as IconMultiPrivacy,
|
|
3776
3779
|
M8 as IconMultiQuestion,
|
|
3777
3780
|
x8 as IconMultiRightArrow,
|
|
3778
3781
|
Z8 as IconMultiRoomPC,
|
|
@@ -3803,12 +3806,12 @@ export {
|
|
|
3803
3806
|
O3 as WebsocketContext,
|
|
3804
3807
|
T3 as appConfigActions,
|
|
3805
3808
|
Be as createWebSocketMiddleware,
|
|
3806
|
-
|
|
3809
|
+
f1 as devicesActions,
|
|
3807
3810
|
Wt as getBaseLocation,
|
|
3808
3811
|
f3 as httpClient,
|
|
3809
3812
|
_8 as iconsDictionary,
|
|
3810
3813
|
Ut as roomOffSourceKey,
|
|
3811
|
-
|
|
3814
|
+
w1 as roomsActions,
|
|
3812
3815
|
U as runtimeConfigActions,
|
|
3813
3816
|
C3 as selectAllDevices,
|
|
3814
3817
|
T2 as selectApiPath,
|
|
@@ -3820,7 +3823,7 @@ export {
|
|
|
3820
3823
|
ve as selectDeviceSupportsInterface,
|
|
3821
3824
|
fe as selectError,
|
|
3822
3825
|
y3 as selectInterfacesForDevice,
|
|
3823
|
-
|
|
3826
|
+
pe as selectIsSyncStateValuePresent,
|
|
3824
3827
|
de as selectIsTouchpanel,
|
|
3825
3828
|
D2 as selectLogoPath,
|
|
3826
3829
|
V1 as selectModalVisibility,
|
|
@@ -3851,7 +3854,7 @@ export {
|
|
|
3851
3854
|
ge as selectShowPopoverById,
|
|
3852
3855
|
we as selectShowReconnect,
|
|
3853
3856
|
re as selectSystemUuid,
|
|
3854
|
-
|
|
3857
|
+
me as selectTheme,
|
|
3855
3858
|
ue as selectTouchpanelKey,
|
|
3856
3859
|
le as selectUserCode,
|
|
3857
3860
|
oe as selectWsIsConnected,
|
|
@@ -3864,7 +3867,7 @@ export {
|
|
|
3864
3867
|
W1 as useAppDispatch,
|
|
3865
3868
|
f as useAppSelector,
|
|
3866
3869
|
H6 as useAvrControl,
|
|
3867
|
-
|
|
3870
|
+
h as useButtonHeldHeartbeat,
|
|
3868
3871
|
Q6 as useCameraBase,
|
|
3869
3872
|
S6 as useClientId,
|
|
3870
3873
|
Ct as useDeviceIBasicVolume,
|
|
@@ -3884,7 +3887,7 @@ export {
|
|
|
3884
3887
|
s6 as useGetRoom,
|
|
3885
3888
|
M6 as useGetRoomDisplayStates,
|
|
3886
3889
|
x6 as useGetZoomRoomControllerKey,
|
|
3887
|
-
|
|
3890
|
+
Z1 as useIBasicVolume,
|
|
3888
3891
|
W3 as useIBasicVolumeWithFeedback,
|
|
3889
3892
|
G6 as useIChannel,
|
|
3890
3893
|
Y6 as useIColor,
|
|
@@ -3896,7 +3899,7 @@ export {
|
|
|
3896
3899
|
tt as useIEssentialsRoomCombiner,
|
|
3897
3900
|
nt as useIHasCameras,
|
|
3898
3901
|
V3 as useIHasPowerControl,
|
|
3899
|
-
|
|
3902
|
+
k1 as useIHasSelectableItems,
|
|
3900
3903
|
ot as useIHumiditySensor,
|
|
3901
3904
|
st as useILevelControls,
|
|
3902
3905
|
ct as useILightingScenes,
|
|
@@ -3911,8 +3914,8 @@ export {
|
|
|
3911
3914
|
gt as useISetTopBoxControls,
|
|
3912
3915
|
ft as useIShadesOpenCloseStop,
|
|
3913
3916
|
wt as useIShutdownPromptTimer,
|
|
3914
|
-
|
|
3915
|
-
|
|
3917
|
+
mt as useISwitchedOutput,
|
|
3918
|
+
pt as useITechPassword,
|
|
3916
3919
|
Mt as useITemperatureSensor,
|
|
3917
3920
|
xt as useITheme,
|
|
3918
3921
|
Zt as useITransport,
|
|
@@ -3925,7 +3928,7 @@ export {
|
|
|
3925
3928
|
yt as useOverflow,
|
|
3926
3929
|
e6 as usePartnerMetadata,
|
|
3927
3930
|
Ge as usePressHoldRelease,
|
|
3928
|
-
|
|
3931
|
+
m6 as useRoomAdvancedSharingActive,
|
|
3929
3932
|
l6 as useRoomAudioControlPointList,
|
|
3930
3933
|
v6 as useRoomCodecContentDestinationKey,
|
|
3931
3934
|
n6 as useRoomConfiguration,
|
|
@@ -3942,9 +3945,9 @@ export {
|
|
|
3942
3945
|
ne as useRoomLevelControls,
|
|
3943
3946
|
c6 as useRoomName,
|
|
3944
3947
|
d6 as useRoomProgramAudioDestinationKey,
|
|
3945
|
-
|
|
3948
|
+
p6 as useRoomShareState,
|
|
3946
3949
|
r6 as useRoomSourceList,
|
|
3947
|
-
|
|
3950
|
+
x1 as useRoomState,
|
|
3948
3951
|
te as useRoomVolume,
|
|
3949
3952
|
y6 as useRuntimeInfo,
|
|
3950
3953
|
Et as useScroll,
|