@pepperdash/mobile-control-react-app-core 1.21.0-feature-export-useCameraBase.4 → 1.21.0-feature-export-useCameraBase.6
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 +523 -515
- package/dist/mobile-control-react-app-core.umd.js +10 -10
- package/dist/shared/hooks/interfaces/useIDspPresets.d.ts +1 -1
- package/dist/shared/hooks/interfaces/useIDspPresets.d.ts.map +1 -1
- package/dist/store/rooms/rooms.hooks.d.ts +2 -2
- package/dist/store/rooms/rooms.hooks.d.ts.map +1 -1
- package/dist/store/rooms/rooms.selectors.d.ts +8 -8
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts +0 -16
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -1
- package/dist/types/interfaces/IKeyName.d.ts +0 -1
- package/dist/types/interfaces/IKeyName.d.ts.map +1 -1
- package/dist/types/state/index.d.ts +13 -0
- package/dist/types/state/index.d.ts.map +1 -1
- package/dist/types/state/state/MatrixRoutingState.d.ts +1 -1
- package/dist/types/state/state/MatrixRoutingState.d.ts.map +1 -1
- package/dist/utils/WebsocketContext.d.ts +1 -2
- package/dist/utils/WebsocketContext.d.ts.map +1 -1
- package/dist/utils/WebsocketProvider.d.ts.map +1 -1
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/useWebsocketContext.d.ts.map +1 -1
- package/package.json +6 -3
- /package/dist/{mobile-control-react-app-core.css → style.css} +0 -0
|
@@ -1,137 +1,137 @@
|
|
|
1
1
|
var s2 = Object.defineProperty;
|
|
2
2
|
var o2 = (e, t, o) => t in e ? s2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
-
var
|
|
3
|
+
var G = (e, t, o) => o2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import n2, { AxiosError as c2 } from "axios";
|
|
5
5
|
import { useDispatch as r2, useSelector as l2, Provider as i2 } from "react-redux";
|
|
6
|
-
import { createSelector as
|
|
7
|
-
import
|
|
6
|
+
import { createSelector as p, createSlice as g1, combineReducers as a2, configureStore as u2 } from "@reduxjs/toolkit";
|
|
7
|
+
import p3, { createContext as d2, useState as H, useRef as v1, useCallback as a1, useEffect as n1, useContext as h2, useLayoutEffect as x3 } from "react";
|
|
8
8
|
import * as M3 from "lodash";
|
|
9
|
-
import { useNavigate as
|
|
10
|
-
const
|
|
9
|
+
import { useNavigate as v2, useRouteError as g2, isRouteErrorResponse as f2 } from "react-router-dom";
|
|
10
|
+
const w2 = r2.withTypes(), w = l2.withTypes(), j1 = (e) => e.appConfig, p2 = p(
|
|
11
11
|
j1,
|
|
12
12
|
(e) => e.config
|
|
13
|
-
), x2 =
|
|
13
|
+
), x2 = p(
|
|
14
14
|
j1,
|
|
15
15
|
(e) => e.config.apiPath
|
|
16
|
-
), M2 =
|
|
16
|
+
), M2 = p(
|
|
17
17
|
j1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
|
-
), m2 =
|
|
19
|
+
), m2 = p(
|
|
20
20
|
j1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), Z2 = () =>
|
|
22
|
+
), Z2 = () => w(p2), O6 = () => w(x2), V6 = () => w(M2), k6 = () => w(m2), m3 = (e) => e.devices, Z3 = p(
|
|
23
23
|
m3,
|
|
24
24
|
(e) => e
|
|
25
|
-
), j2 = (e) =>
|
|
25
|
+
), j2 = (e) => p(
|
|
26
26
|
m3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
),
|
|
29
|
-
function
|
|
30
|
-
return
|
|
28
|
+
), U6 = () => w(Z3);
|
|
29
|
+
function y(e) {
|
|
30
|
+
return w(j2(e));
|
|
31
31
|
}
|
|
32
|
-
const L = (e) => e.rooms, C2 = (e) =>
|
|
32
|
+
const L = (e) => e.rooms, C2 = (e) => p(
|
|
33
33
|
L,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
), S2 =
|
|
35
|
+
), S2 = p(
|
|
36
36
|
L,
|
|
37
37
|
(e) => e
|
|
38
|
-
), b2 = (e) =>
|
|
38
|
+
), b2 = (e) => p(
|
|
39
39
|
L,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
), I2 = (e) =>
|
|
41
|
+
), I2 = (e) => p(
|
|
42
42
|
L,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
), R2 = (e, t) =>
|
|
44
|
+
), R2 = (e, t) => p(
|
|
45
45
|
L,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
), y2 = (e) =>
|
|
47
|
+
), y2 = (e) => p(
|
|
48
48
|
L,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
|
-
), E2 = (e) =>
|
|
50
|
+
), E2 = (e) => p(
|
|
51
51
|
L,
|
|
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
|
+
), P2 = (e) => p(
|
|
57
57
|
L,
|
|
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
|
+
), T2 = (e) => p(
|
|
63
63
|
L,
|
|
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
|
-
), _2 = (e) =>
|
|
68
|
+
), _2 = (e) => p(
|
|
69
69
|
L,
|
|
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
|
-
), L2 = (e) =>
|
|
74
|
+
), L2 = (e) => p(
|
|
75
75
|
L,
|
|
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
|
+
), D2 = (e) => p(
|
|
81
81
|
L,
|
|
82
82
|
(t) => {
|
|
83
83
|
var o, c, r, i, d, a, g, x;
|
|
84
84
|
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (d = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : d.sinkKey : ((x = (g = (a = t[e]) == null ? void 0 : a.configuration) == null ? void 0 : g.destinationList.defaultDisplay) == null ? void 0 : x.sinkKey) || "";
|
|
85
85
|
}
|
|
86
|
-
), $2 = (e) =>
|
|
86
|
+
), $2 = (e) => p(
|
|
87
87
|
L,
|
|
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
|
-
), A2 = (e) =>
|
|
92
|
+
), A2 = (e) => p(
|
|
93
93
|
L,
|
|
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
|
+
), B2 = (e) => p(
|
|
99
99
|
L,
|
|
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
|
+
), O2 = (e) => p(
|
|
105
105
|
L,
|
|
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
|
+
), V2 = (e) => p(
|
|
111
111
|
L,
|
|
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
|
+
), k2 = (e) => p(
|
|
117
117
|
L,
|
|
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
|
+
), U2 = (e) => p(
|
|
123
123
|
L,
|
|
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
|
+
), W2 = (e) => p(
|
|
129
129
|
L,
|
|
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
|
-
), F2 =
|
|
134
|
+
), F2 = p(
|
|
135
135
|
[
|
|
136
136
|
(e, t) => t,
|
|
137
137
|
() => Z3,
|
|
@@ -147,76 +147,76 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function W6(e) {
|
|
150
|
-
return
|
|
150
|
+
return w(
|
|
151
151
|
C2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function F6() {
|
|
155
|
+
return w(S2);
|
|
156
156
|
}
|
|
157
157
|
function C1(e) {
|
|
158
|
-
return
|
|
158
|
+
return w(b2(e));
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const H6 = C1, K6 = (e) => w(
|
|
161
161
|
I2(e)
|
|
162
|
-
), H2 = (e, t) =>
|
|
162
|
+
), H2 = (e, t) => w(
|
|
163
163
|
R2(e, t)
|
|
164
|
-
), K2 = (e) =>
|
|
164
|
+
), K2 = (e) => w(y2(e)) || void 0, G6 = (e) => w(E2(e)), q6 = (e) => w(P2(e)), Y6 = (e) => w(T2(e)), z6 = (e) => w(_2(e)), J6 = (e) => w(L2(e)), X6 = (e) => w(D2(e)), Q6 = (e) => w($2(e)), N6 = (e) => w(A2(e)), ee = (e) => w(B2(e)), te = (e) => w(O2(e)), se = (e) => w(V2(e)), oe = (e) => w(k2(e)), ne = (e) => w(U2(e)), ce = (e) => w((t) => F2(t, e)), re = (e) => w(W2(e)), J = (e) => e.runtimeConfig, G2 = p(
|
|
165
165
|
J,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
|
-
), q2 =
|
|
167
|
+
), q2 = p(
|
|
168
168
|
J,
|
|
169
169
|
(e) => e.currentRoomKey
|
|
170
|
-
), Y2 =
|
|
170
|
+
), Y2 = p(
|
|
171
171
|
J,
|
|
172
172
|
(e) => e.roomData.clientId
|
|
173
|
-
), z2 =
|
|
173
|
+
), z2 = p(
|
|
174
174
|
J,
|
|
175
175
|
(e) => e.roomData.systemUuid
|
|
176
|
-
), J2 =
|
|
176
|
+
), J2 = p(
|
|
177
177
|
J,
|
|
178
178
|
(e) => e.roomData.userCode
|
|
179
|
-
), X2 =
|
|
179
|
+
), X2 = p(
|
|
180
180
|
J,
|
|
181
181
|
(e) => e.serverIsRunningOnProcessorHardware
|
|
182
|
-
), Q2 =
|
|
182
|
+
), Q2 = p(
|
|
183
183
|
J,
|
|
184
184
|
(e) => {
|
|
185
185
|
var t;
|
|
186
186
|
return (t = e.roomData.config) == null ? void 0 : t.runtimeInfo;
|
|
187
187
|
}
|
|
188
|
-
), N2 =
|
|
188
|
+
), N2 = p(
|
|
189
189
|
J,
|
|
190
190
|
(e) => e.touchpanelKey
|
|
191
|
-
), e8 =
|
|
191
|
+
), e8 = p(
|
|
192
192
|
J,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
), j3 = () =>
|
|
194
|
+
), j3 = () => w(G2), t8 = () => w(q2), s8 = () => w(Y2), o8 = () => w(z2), n8 = () => w(J2), c8 = () => w(X2), le = () => w(Q2), ie = () => w(N2), ae = () => w(e8), c1 = (e) => e.ui, U1 = (e) => p(
|
|
195
195
|
c1,
|
|
196
196
|
(t) => t.modalVisibility[e]
|
|
197
|
-
), r8 = (e) =>
|
|
197
|
+
), r8 = (e) => p(
|
|
198
198
|
c1,
|
|
199
199
|
(t) => {
|
|
200
200
|
const o = t.popoverVisibility[e];
|
|
201
201
|
if (o)
|
|
202
202
|
return Object.keys(o).find((c) => o[c]);
|
|
203
203
|
}
|
|
204
|
-
), l8 = (e, t) =>
|
|
204
|
+
), l8 = (e, t) => p(
|
|
205
205
|
c1,
|
|
206
206
|
(o) => {
|
|
207
207
|
var c;
|
|
208
208
|
return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
|
|
209
209
|
}
|
|
210
|
-
), i8 =
|
|
210
|
+
), i8 = p(
|
|
211
211
|
c1,
|
|
212
212
|
(e) => e.error
|
|
213
|
-
), a8 =
|
|
213
|
+
), a8 = p(
|
|
214
214
|
c1,
|
|
215
215
|
(e) => e.showReconnect
|
|
216
|
-
), u8 =
|
|
216
|
+
), u8 = p(
|
|
217
217
|
c1,
|
|
218
218
|
(e) => e.theme
|
|
219
|
-
),
|
|
219
|
+
), ue = () => w(U1("showShutdownModal")), de = () => w(U1("showIncomingCallModal")), he = (e) => w(U1(e)), ve = (e) => w(r8(e)), ge = (e, t) => w(l8(e, t)), d8 = () => w(i8), h8 = () => w(a8), fe = () => w(u8), v8 = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -226,7 +226,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
226
226
|
popoverVisibility: {}
|
|
227
227
|
}, C3 = g1({
|
|
228
228
|
name: "ui",
|
|
229
|
-
initialState:
|
|
229
|
+
initialState: v8,
|
|
230
230
|
reducers: {
|
|
231
231
|
clearAllModals(e) {
|
|
232
232
|
Object.entries(e.modalVisibility).forEach(([t]) => {
|
|
@@ -257,7 +257,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
257
257
|
e.theme = t.payload;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), q = C3.actions, g8 = C3.reducer, f8 = {
|
|
261
261
|
config: {
|
|
262
262
|
enableDev: !1,
|
|
263
263
|
apiPath: "",
|
|
@@ -275,7 +275,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
275
275
|
e.config = t.payload;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), w8 = S3.actions, p8 = S3.reducer, d3 = {}, B1 = g1({
|
|
279
279
|
name: "devices",
|
|
280
280
|
initialState: d3,
|
|
281
281
|
reducers: {
|
|
@@ -289,12 +289,12 @@ const F6 = C1, H6 = (e) => p(
|
|
|
289
289
|
return d3;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}),
|
|
293
|
-
setDeviceState:
|
|
294
|
-
clearDevices:
|
|
295
|
-
}, x8 =
|
|
292
|
+
}), N = {
|
|
293
|
+
setDeviceState: B1.actions.setDeviceState,
|
|
294
|
+
clearDevices: B1.actions.clearDevices
|
|
295
|
+
}, x8 = B1.reducer, h3 = {}, O1 = g1({
|
|
296
296
|
name: "rooms",
|
|
297
|
-
initialState:
|
|
297
|
+
initialState: h3,
|
|
298
298
|
reducers: {
|
|
299
299
|
setRoomState(e, t) {
|
|
300
300
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
@@ -303,13 +303,13 @@ const F6 = C1, H6 = (e) => p(
|
|
|
303
303
|
e[c] = d;
|
|
304
304
|
},
|
|
305
305
|
clearRooms() {
|
|
306
|
-
return
|
|
306
|
+
return h3;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
310
|
-
setRoomState:
|
|
311
|
-
clearRooms:
|
|
312
|
-
}, M8 =
|
|
309
|
+
}), e1 = {
|
|
310
|
+
setRoomState: O1.actions.setRoomState,
|
|
311
|
+
clearRooms: O1.actions.clearRooms
|
|
312
|
+
}, M8 = O1.reducer, m8 = {
|
|
313
313
|
apiVersion: "",
|
|
314
314
|
serverIsRunningOnProcessorHardware: !1,
|
|
315
315
|
websocket: {
|
|
@@ -368,27 +368,27 @@ const F6 = C1, H6 = (e) => p(
|
|
|
368
368
|
e.touchpanelKey = t.payload;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
}),
|
|
372
|
-
appConfig:
|
|
371
|
+
}), W = b3.actions, Z8 = b3.reducer, j8 = a2({
|
|
372
|
+
appConfig: p8,
|
|
373
373
|
runtimeConfig: Z8,
|
|
374
374
|
rooms: M8,
|
|
375
375
|
devices: x8,
|
|
376
376
|
ui: g8
|
|
377
377
|
}), m = u2({
|
|
378
378
|
reducer: j8
|
|
379
|
-
}),
|
|
379
|
+
}), V1 = n2.create();
|
|
380
380
|
function C8() {
|
|
381
|
-
const e =
|
|
381
|
+
const e = w2();
|
|
382
382
|
return async () => {
|
|
383
383
|
try {
|
|
384
384
|
const t = location.pathname.split("/").filter((r) => r.length > 0);
|
|
385
385
|
t.length >= 5 ? t.length = 5 : t.length = 2;
|
|
386
|
-
const o = `/${t.join("/")}`, c = await
|
|
386
|
+
const o = `/${t.join("/")}`, c = await V1.get("/_local-config/_config.local.json", { baseURL: o });
|
|
387
387
|
if (c.status == 200 && c.data) {
|
|
388
388
|
const r = c.data.apiPath;
|
|
389
|
-
e(
|
|
390
|
-
const i = await
|
|
391
|
-
i.status == 200 && i.data && e(
|
|
389
|
+
e(w8.setAppConfig(c.data));
|
|
390
|
+
const i = await V1.get(`${r}/version`);
|
|
391
|
+
i.status == 200 && i.data && e(W.setRuntimeConfig(i.data));
|
|
392
392
|
}
|
|
393
393
|
} catch (t) {
|
|
394
394
|
console.error("Error getting config", t);
|
|
@@ -406,17 +406,17 @@ var m1 = { exports: {} }, u1 = {};
|
|
|
406
406
|
* This source code is licensed under the MIT license found in the
|
|
407
407
|
* LICENSE file in the root directory of this source tree.
|
|
408
408
|
*/
|
|
409
|
-
var
|
|
409
|
+
var v3;
|
|
410
410
|
function S8() {
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
var e =
|
|
411
|
+
if (v3) return u1;
|
|
412
|
+
v3 = 1;
|
|
413
|
+
var e = p3, 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 };
|
|
414
414
|
function d(a, g, x) {
|
|
415
|
-
var
|
|
416
|
-
x !== void 0 && (
|
|
417
|
-
for (
|
|
418
|
-
if (a && a.defaultProps) for (
|
|
419
|
-
return { $$typeof: t, type: a, key:
|
|
415
|
+
var h, I = {}, D = null, F = null;
|
|
416
|
+
x !== void 0 && (D = "" + x), g.key !== void 0 && (D = "" + g.key), g.ref !== void 0 && (F = g.ref);
|
|
417
|
+
for (h in g) c.call(g, h) && !i.hasOwnProperty(h) && (I[h] = g[h]);
|
|
418
|
+
if (a && a.defaultProps) for (h in g = a.defaultProps, g) I[h] === void 0 && (I[h] = g[h]);
|
|
419
|
+
return { $$typeof: t, type: a, key: D, ref: F, props: I, _owner: r.current };
|
|
420
420
|
}
|
|
421
421
|
return u1.Fragment = o, u1.jsx = d, u1.jsxs = d, u1;
|
|
422
422
|
}
|
|
@@ -433,11 +433,11 @@ var d1 = {};
|
|
|
433
433
|
var g3;
|
|
434
434
|
function b8() {
|
|
435
435
|
return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
436
|
-
var e =
|
|
436
|
+
var e = p3, 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"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), k = Symbol.iterator, X = "@@iterator";
|
|
437
437
|
function r1(n) {
|
|
438
438
|
if (n === null || typeof n != "object")
|
|
439
439
|
return null;
|
|
440
|
-
var l = k && n[k] || n[
|
|
440
|
+
var l = k && n[k] || n[X];
|
|
441
441
|
return typeof l == "function" ? l : null;
|
|
442
442
|
}
|
|
443
443
|
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -458,26 +458,26 @@ function b8() {
|
|
|
458
458
|
R.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, R);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var b1 = !1,
|
|
462
|
-
|
|
463
|
-
function
|
|
464
|
-
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || I1 || n === r || n === x || n ===
|
|
461
|
+
var b1 = !1, E = !1, C = !1, f1 = !1, I1 = !1, Y;
|
|
462
|
+
Y = Symbol.for("react.module.reference");
|
|
463
|
+
function B(n) {
|
|
464
|
+
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || I1 || n === r || n === x || n === h || f1 || n === F || b1 || E || C || typeof n == "object" && n !== null && (n.$$typeof === D || n.$$typeof === I || n.$$typeof === d || n.$$typeof === a || n.$$typeof === g || // This needs to include all possible module reference object
|
|
465
465
|
// types supported by any Flight configuration anywhere since
|
|
466
466
|
// we don't know which Flight build this will end up being used
|
|
467
467
|
// with.
|
|
468
|
-
n.$$typeof ===
|
|
468
|
+
n.$$typeof === Y || n.getModuleId !== void 0));
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function P(n, l, u) {
|
|
471
471
|
var f = n.displayName;
|
|
472
472
|
if (f)
|
|
473
473
|
return f;
|
|
474
474
|
var S = l.displayName || l.name || "";
|
|
475
475
|
return S !== "" ? u + "(" + S + ")" : u;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function t1(n) {
|
|
478
478
|
return n.displayName || "Context";
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function K(n) {
|
|
481
481
|
if (n == null)
|
|
482
482
|
return null;
|
|
483
483
|
if (typeof n.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
@@ -495,26 +495,26 @@ function b8() {
|
|
|
495
495
|
return "StrictMode";
|
|
496
496
|
case x:
|
|
497
497
|
return "Suspense";
|
|
498
|
-
case
|
|
498
|
+
case h:
|
|
499
499
|
return "SuspenseList";
|
|
500
500
|
}
|
|
501
501
|
if (typeof n == "object")
|
|
502
502
|
switch (n.$$typeof) {
|
|
503
503
|
case a:
|
|
504
504
|
var l = n;
|
|
505
|
-
return
|
|
505
|
+
return t1(l) + ".Consumer";
|
|
506
506
|
case d:
|
|
507
507
|
var u = n;
|
|
508
|
-
return
|
|
508
|
+
return t1(u._context) + ".Provider";
|
|
509
509
|
case g:
|
|
510
|
-
return
|
|
510
|
+
return P(n, n.render, "ForwardRef");
|
|
511
511
|
case I:
|
|
512
512
|
var f = n.displayName || null;
|
|
513
|
-
return f !== null ? f :
|
|
514
|
-
case
|
|
513
|
+
return f !== null ? f : K(n.type) || "Memo";
|
|
514
|
+
case D: {
|
|
515
515
|
var S = n, R = S._payload, Z = S._init;
|
|
516
516
|
try {
|
|
517
|
-
return
|
|
517
|
+
return K(Z(R));
|
|
518
518
|
} catch {
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
@@ -522,14 +522,14 @@ function b8() {
|
|
|
522
522
|
}
|
|
523
523
|
return null;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
525
|
+
var z = Object.assign, l1 = 0, W1, F1, H1, K1, G1, q1, Y1;
|
|
526
526
|
function z1() {
|
|
527
527
|
}
|
|
528
528
|
z1.__reactDisabledLog = !0;
|
|
529
529
|
function E3() {
|
|
530
530
|
{
|
|
531
531
|
if (l1 === 0) {
|
|
532
|
-
|
|
532
|
+
W1 = console.log, F1 = console.info, H1 = console.warn, K1 = console.error, G1 = console.group, q1 = console.groupCollapsed, Y1 = console.groupEnd;
|
|
533
533
|
var n = {
|
|
534
534
|
configurable: !0,
|
|
535
535
|
enumerable: !0,
|
|
@@ -549,7 +549,7 @@ function b8() {
|
|
|
549
549
|
l1++;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function P3() {
|
|
553
553
|
{
|
|
554
554
|
if (l1--, l1 === 0) {
|
|
555
555
|
var n = {
|
|
@@ -558,25 +558,25 @@ function b8() {
|
|
|
558
558
|
writable: !0
|
|
559
559
|
};
|
|
560
560
|
Object.defineProperties(console, {
|
|
561
|
-
log:
|
|
562
|
-
value:
|
|
561
|
+
log: z({}, n, {
|
|
562
|
+
value: W1
|
|
563
563
|
}),
|
|
564
|
-
info:
|
|
564
|
+
info: z({}, n, {
|
|
565
565
|
value: F1
|
|
566
566
|
}),
|
|
567
|
-
warn:
|
|
567
|
+
warn: z({}, n, {
|
|
568
568
|
value: H1
|
|
569
569
|
}),
|
|
570
|
-
error:
|
|
570
|
+
error: z({}, n, {
|
|
571
571
|
value: K1
|
|
572
572
|
}),
|
|
573
|
-
group:
|
|
573
|
+
group: z({}, n, {
|
|
574
574
|
value: G1
|
|
575
575
|
}),
|
|
576
|
-
groupCollapsed:
|
|
576
|
+
groupCollapsed: z({}, n, {
|
|
577
577
|
value: q1
|
|
578
578
|
}),
|
|
579
|
-
groupEnd:
|
|
579
|
+
groupEnd: z({}, n, {
|
|
580
580
|
value: Y1
|
|
581
581
|
})
|
|
582
582
|
});
|
|
@@ -585,7 +585,7 @@ function b8() {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
var R1 = $.ReactCurrentDispatcher, y1;
|
|
588
|
-
function
|
|
588
|
+
function w1(n, l, u) {
|
|
589
589
|
{
|
|
590
590
|
if (y1 === void 0)
|
|
591
591
|
try {
|
|
@@ -598,16 +598,16 @@ function b8() {
|
|
|
598
598
|
` + y1 + n;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
var E1 = !1,
|
|
601
|
+
var E1 = !1, p1;
|
|
602
602
|
{
|
|
603
|
-
var
|
|
604
|
-
|
|
603
|
+
var T3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
604
|
+
p1 = new T3();
|
|
605
605
|
}
|
|
606
606
|
function J1(n, l) {
|
|
607
607
|
if (!n || E1)
|
|
608
608
|
return "";
|
|
609
609
|
{
|
|
610
|
-
var u =
|
|
610
|
+
var u = p1.get(n);
|
|
611
611
|
if (u !== void 0)
|
|
612
612
|
return u;
|
|
613
613
|
}
|
|
@@ -652,27 +652,27 @@ function b8() {
|
|
|
652
652
|
} catch (V) {
|
|
653
653
|
if (V && f && typeof V.stack == "string") {
|
|
654
654
|
for (var M = V.stack.split(`
|
|
655
|
-
`),
|
|
656
|
-
`),
|
|
655
|
+
`), O = f.stack.split(`
|
|
656
|
+
`), T = M.length - 1, _ = O.length - 1; T >= 1 && _ >= 0 && M[T] !== O[_]; )
|
|
657
657
|
_--;
|
|
658
|
-
for (;
|
|
659
|
-
if (M[
|
|
660
|
-
if (
|
|
658
|
+
for (; T >= 1 && _ >= 0; T--, _--)
|
|
659
|
+
if (M[T] !== O[_]) {
|
|
660
|
+
if (T !== 1 || _ !== 1)
|
|
661
661
|
do
|
|
662
|
-
if (
|
|
662
|
+
if (T--, _--, _ < 0 || M[T] !== O[_]) {
|
|
663
663
|
var U = `
|
|
664
|
-
` + M[
|
|
665
|
-
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
664
|
+
` + M[T].replace(" at new ", " at ");
|
|
665
|
+
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" && p1.set(n, U), U;
|
|
666
666
|
}
|
|
667
|
-
while (
|
|
667
|
+
while (T >= 1 && _ >= 0);
|
|
668
668
|
break;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
} finally {
|
|
672
|
-
E1 = !1, R1.current = R,
|
|
672
|
+
E1 = !1, R1.current = R, P3(), Error.prepareStackTrace = S;
|
|
673
673
|
}
|
|
674
|
-
var o1 = n ? n.displayName || n.name : "",
|
|
675
|
-
return typeof n == "function" &&
|
|
674
|
+
var o1 = n ? n.displayName || n.name : "", Q = o1 ? w1(o1) : "";
|
|
675
|
+
return typeof n == "function" && p1.set(n, Q), Q;
|
|
676
676
|
}
|
|
677
677
|
function _3(n, l, u) {
|
|
678
678
|
return J1(n, !1);
|
|
@@ -687,12 +687,12 @@ function b8() {
|
|
|
687
687
|
if (typeof n == "function")
|
|
688
688
|
return J1(n, L3(n));
|
|
689
689
|
if (typeof n == "string")
|
|
690
|
-
return
|
|
690
|
+
return w1(n);
|
|
691
691
|
switch (n) {
|
|
692
692
|
case x:
|
|
693
|
-
return
|
|
694
|
-
case
|
|
695
|
-
return
|
|
693
|
+
return w1("Suspense");
|
|
694
|
+
case h:
|
|
695
|
+
return w1("SuspenseList");
|
|
696
696
|
}
|
|
697
697
|
if (typeof n == "object")
|
|
698
698
|
switch (n.$$typeof) {
|
|
@@ -700,7 +700,7 @@ function b8() {
|
|
|
700
700
|
return _3(n.render);
|
|
701
701
|
case I:
|
|
702
702
|
return x1(n.type, l, u);
|
|
703
|
-
case
|
|
703
|
+
case D: {
|
|
704
704
|
var f = n, S = f._payload, R = f._init;
|
|
705
705
|
try {
|
|
706
706
|
return x1(R(S), l, u);
|
|
@@ -718,7 +718,7 @@ function b8() {
|
|
|
718
718
|
} else
|
|
719
719
|
Q1.setExtraStackFrame(null);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function D3(n, l, u, f, S) {
|
|
722
722
|
{
|
|
723
723
|
var R = Function.call.bind(i1);
|
|
724
724
|
for (var Z in n)
|
|
@@ -726,19 +726,19 @@ function b8() {
|
|
|
726
726
|
var M = void 0;
|
|
727
727
|
try {
|
|
728
728
|
if (typeof n[Z] != "function") {
|
|
729
|
-
var
|
|
730
|
-
throw
|
|
729
|
+
var O = Error((f || "React class") + ": " + u + " type `" + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[Z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
730
|
+
throw O.name = "Invariant Violation", O;
|
|
731
731
|
}
|
|
732
732
|
M = n[Z](l, Z, f, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
733
|
-
} catch (
|
|
734
|
-
M =
|
|
733
|
+
} catch (T) {
|
|
734
|
+
M = T;
|
|
735
735
|
}
|
|
736
736
|
M && !(M instanceof Error) && (M1(S), A("%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).", f || "React class", u, Z, typeof M), M1(null)), M instanceof Error && !(M.message in X1) && (X1[M.message] = !0, M1(S), A("Failed %s type: %s", u, M.message), M1(null));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
var $3 = Array.isArray;
|
|
741
|
-
function
|
|
741
|
+
function P1(n) {
|
|
742
742
|
return $3(n);
|
|
743
743
|
}
|
|
744
744
|
function A3(n) {
|
|
@@ -747,7 +747,7 @@ function b8() {
|
|
|
747
747
|
return u;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function B3(n) {
|
|
751
751
|
try {
|
|
752
752
|
return N1(n), !1;
|
|
753
753
|
} catch {
|
|
@@ -758,16 +758,16 @@ function b8() {
|
|
|
758
758
|
return "" + n;
|
|
759
759
|
}
|
|
760
760
|
function e3(n) {
|
|
761
|
-
if (
|
|
761
|
+
if (B3(n))
|
|
762
762
|
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", A3(n)), N1(n);
|
|
763
763
|
}
|
|
764
|
-
var t3 = $.ReactCurrentOwner,
|
|
764
|
+
var t3 = $.ReactCurrentOwner, O3 = {
|
|
765
765
|
key: !0,
|
|
766
766
|
ref: !0,
|
|
767
767
|
__self: !0,
|
|
768
768
|
__source: !0
|
|
769
769
|
}, s3, o3;
|
|
770
|
-
function
|
|
770
|
+
function V3(n) {
|
|
771
771
|
if (i1.call(n, "ref")) {
|
|
772
772
|
var l = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
773
773
|
if (l && l.isReactWarning)
|
|
@@ -775,7 +775,7 @@ function b8() {
|
|
|
775
775
|
}
|
|
776
776
|
return n.ref !== void 0;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function k3(n) {
|
|
779
779
|
if (i1.call(n, "key")) {
|
|
780
780
|
var l = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
781
781
|
if (l && l.isReactWarning)
|
|
@@ -783,10 +783,10 @@ function b8() {
|
|
|
783
783
|
}
|
|
784
784
|
return n.key !== void 0;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function U3(n, l) {
|
|
787
787
|
typeof n.ref == "string" && t3.current;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function W3(n, l) {
|
|
790
790
|
{
|
|
791
791
|
var u = function() {
|
|
792
792
|
s3 || (s3 = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
@@ -839,23 +839,23 @@ function b8() {
|
|
|
839
839
|
};
|
|
840
840
|
function K3(n, l, u, f, S) {
|
|
841
841
|
{
|
|
842
|
-
var R, Z = {}, M = null,
|
|
843
|
-
u !== void 0 && (e3(u), M = "" + u),
|
|
842
|
+
var R, Z = {}, M = null, O = null;
|
|
843
|
+
u !== void 0 && (e3(u), M = "" + u), k3(l) && (e3(l.key), M = "" + l.key), V3(l) && (O = l.ref, U3(l, S));
|
|
844
844
|
for (R in l)
|
|
845
|
-
i1.call(l, R) && !
|
|
845
|
+
i1.call(l, R) && !O3.hasOwnProperty(R) && (Z[R] = l[R]);
|
|
846
846
|
if (n && n.defaultProps) {
|
|
847
|
-
var
|
|
848
|
-
for (R in
|
|
849
|
-
Z[R] === void 0 && (Z[R] =
|
|
847
|
+
var T = n.defaultProps;
|
|
848
|
+
for (R in T)
|
|
849
|
+
Z[R] === void 0 && (Z[R] = T[R]);
|
|
850
850
|
}
|
|
851
|
-
if (M ||
|
|
851
|
+
if (M || O) {
|
|
852
852
|
var _ = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
853
|
-
M &&
|
|
853
|
+
M && W3(Z, _), O && F3(Z, _);
|
|
854
854
|
}
|
|
855
|
-
return H3(n, M,
|
|
855
|
+
return H3(n, M, O, S, f, t3.current, Z);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
var
|
|
858
|
+
var T1 = $.ReactCurrentOwner, n3 = $.ReactDebugCurrentFrame;
|
|
859
859
|
function s1(n) {
|
|
860
860
|
if (n) {
|
|
861
861
|
var l = n._owner, u = x1(n.type, n._source, l ? l.type : null);
|
|
@@ -870,8 +870,8 @@ function b8() {
|
|
|
870
870
|
}
|
|
871
871
|
function c3() {
|
|
872
872
|
{
|
|
873
|
-
if (
|
|
874
|
-
var n =
|
|
873
|
+
if (T1.current) {
|
|
874
|
+
var n = K(T1.current.type);
|
|
875
875
|
if (n)
|
|
876
876
|
return `
|
|
877
877
|
|
|
@@ -906,14 +906,14 @@ Check the top-level render call using <` + u + ">.");
|
|
|
906
906
|
return;
|
|
907
907
|
r3[u] = !0;
|
|
908
908
|
var f = "";
|
|
909
|
-
n && n._owner && n._owner !==
|
|
909
|
+
n && n._owner && n._owner !== T1.current && (f = " It was passed a child from " + K(n._owner.type) + "."), s1(n), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), s1(null);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
function i3(n, l) {
|
|
913
913
|
{
|
|
914
914
|
if (typeof n != "object")
|
|
915
915
|
return;
|
|
916
|
-
if (
|
|
916
|
+
if (P1(n))
|
|
917
917
|
for (var u = 0; u < n.length; u++) {
|
|
918
918
|
var f = n[u];
|
|
919
919
|
L1(f) && l3(f, l);
|
|
@@ -943,11 +943,11 @@ Check the top-level render call using <` + u + ">.");
|
|
|
943
943
|
else
|
|
944
944
|
return;
|
|
945
945
|
if (u) {
|
|
946
|
-
var f =
|
|
947
|
-
|
|
946
|
+
var f = K(l);
|
|
947
|
+
D3(u, n.props, "prop", f, n);
|
|
948
948
|
} else if (l.PropTypes !== void 0 && !_1) {
|
|
949
949
|
_1 = !0;
|
|
950
|
-
var S =
|
|
950
|
+
var S = K(l);
|
|
951
951
|
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
952
952
|
}
|
|
953
953
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -968,14 +968,14 @@ Check the top-level render call using <` + u + ">.");
|
|
|
968
968
|
var a3 = {};
|
|
969
969
|
function u3(n, l, u, f, S, R) {
|
|
970
970
|
{
|
|
971
|
-
var Z =
|
|
971
|
+
var Z = B(n);
|
|
972
972
|
if (!Z) {
|
|
973
973
|
var M = "";
|
|
974
974
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
975
|
-
var
|
|
976
|
-
|
|
977
|
-
var
|
|
978
|
-
n === null ?
|
|
975
|
+
var O = G3();
|
|
976
|
+
O ? M += O : M += c3();
|
|
977
|
+
var T;
|
|
978
|
+
n === null ? T = "null" : P1(n) ? T = "array" : n !== void 0 && n.$$typeof === t ? (T = "<" + (K(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof n, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, M);
|
|
979
979
|
}
|
|
980
980
|
var _ = K3(n, l, u, S, R);
|
|
981
981
|
if (_ == null)
|
|
@@ -984,7 +984,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
984
984
|
var U = l.children;
|
|
985
985
|
if (U !== void 0)
|
|
986
986
|
if (f)
|
|
987
|
-
if (
|
|
987
|
+
if (P1(U)) {
|
|
988
988
|
for (var o1 = 0; o1 < U.length; o1++)
|
|
989
989
|
i3(U[o1], n);
|
|
990
990
|
Object.freeze && Object.freeze(U);
|
|
@@ -994,17 +994,17 @@ Check the top-level render call using <` + u + ">.");
|
|
|
994
994
|
i3(U, n);
|
|
995
995
|
}
|
|
996
996
|
if (i1.call(l, "key")) {
|
|
997
|
-
var
|
|
997
|
+
var Q = K(n), V = Object.keys(l).filter(function(t2) {
|
|
998
998
|
return t2 !== "key";
|
|
999
|
-
}),
|
|
1000
|
-
if (!a3[
|
|
999
|
+
}), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1000
|
+
if (!a3[Q + D1]) {
|
|
1001
1001
|
var e2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1002
1002
|
A(`A props object containing a "key" prop is being spread into JSX:
|
|
1003
1003
|
let props = %s;
|
|
1004
1004
|
<%s {...props} />
|
|
1005
1005
|
React keys must be passed directly to JSX without using spread:
|
|
1006
1006
|
let props = %s;
|
|
1007
|
-
<%s key={someKey} {...props} />`,
|
|
1007
|
+
<%s key={someKey} {...props} />`, D1, Q, e2, Q), a3[Q + D1] = !0;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
return n === c ? z3(_) : Y3(_), _;
|
|
@@ -1028,7 +1028,7 @@ var s = I8();
|
|
|
1028
1028
|
const R8 = "_mwfit_ppa3l_1", y8 = {
|
|
1029
1029
|
mwfit: R8
|
|
1030
1030
|
}, E8 = () => {
|
|
1031
|
-
const { reconnect: e } = b(), t = j3(), o = d8(), c =
|
|
1031
|
+
const { reconnect: e } = b(), t = j3(), o = d8(), c = h8();
|
|
1032
1032
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(
|
|
1033
1033
|
"div",
|
|
1034
1034
|
{
|
|
@@ -1041,114 +1041,114 @@ const R8 = "_mwfit_ppa3l_1", y8 = {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
) });
|
|
1043
1043
|
};
|
|
1044
|
-
class
|
|
1044
|
+
class P8 {
|
|
1045
1045
|
constructor() {
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1046
|
+
G(this, "uuid", "current-uuid");
|
|
1047
|
+
G(this, "roomKey", "current-room-key");
|
|
1048
|
+
G(this, "code", "current-code");
|
|
1049
|
+
G(this, "expiry", "current-uuid-expires");
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
const
|
|
1052
|
+
const w3 = new P8(), I3 = d2({
|
|
1053
1053
|
sendMessage: () => null,
|
|
1054
1054
|
sendSimpleMessage: () => null,
|
|
1055
1055
|
addEventHandler: () => null,
|
|
1056
1056
|
removeEventHandler: () => null,
|
|
1057
1057
|
reconnect: () => null
|
|
1058
1058
|
});
|
|
1059
|
-
function
|
|
1059
|
+
function T8(e) {
|
|
1060
1060
|
return sessionStorage.getItem(e) || "";
|
|
1061
1061
|
}
|
|
1062
1062
|
function _8(e, t) {
|
|
1063
1063
|
sessionStorage.setItem(e, t);
|
|
1064
1064
|
}
|
|
1065
1065
|
const L8 = ({ children: e }) => {
|
|
1066
|
-
const [t, o] =
|
|
1067
|
-
async (
|
|
1066
|
+
const [t, o] = H(), c = j3(), r = t8(), i = s8(), d = C8(), a = Z2(), g = o8(), x = n8(), h = c8(), I = v1(null), [D, F] = H(), k = v1({}), X = a1(
|
|
1067
|
+
async (E) => {
|
|
1068
1068
|
try {
|
|
1069
|
-
const C = await
|
|
1070
|
-
`${
|
|
1069
|
+
const C = await V1.get(
|
|
1070
|
+
`${E}/ui/joinroom?token=${t}`
|
|
1071
1071
|
);
|
|
1072
|
-
return C.status === 200 && C.data ? (m.dispatch(
|
|
1072
|
+
return C.status === 200 && C.data ? (m.dispatch(W.setRoomData(C.data)), !0) : !1;
|
|
1073
1073
|
} catch (C) {
|
|
1074
|
-
return console.log(C),
|
|
1075
|
-
|
|
1074
|
+
return console.log(C), h ? !0 : C instanceof c2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), m.dispatch(
|
|
1075
|
+
q.setErrorMessage(
|
|
1076
1076
|
`Token ${t} is invalid. Unable to join room`
|
|
1077
1077
|
)
|
|
1078
|
-
), !1) : (console.error("Error getting room data", C), C instanceof Error ? m.dispatch(
|
|
1078
|
+
), !1) : (console.error("Error getting room data", C), C instanceof Error ? m.dispatch(q.setErrorMessage(C.message)) : m.dispatch(q.setErrorMessage("Error getting room data")), !1);
|
|
1079
1079
|
}
|
|
1080
1080
|
},
|
|
1081
|
-
[t,
|
|
1081
|
+
[t, h]
|
|
1082
1082
|
), r1 = a1(() => {
|
|
1083
|
-
const
|
|
1084
|
-
window.location.href = x ? `${
|
|
1083
|
+
const E = `${a.gatewayAppPath}?uuid=${g}&roomKey=${r}`;
|
|
1084
|
+
window.location.href = x ? `${E}&Code=${x}` : E;
|
|
1085
1085
|
}, [a.gatewayAppPath, r, g, x]), $ = a1(
|
|
1086
|
-
(
|
|
1087
|
-
I.current && c && I.current.send(JSON.stringify({ type:
|
|
1086
|
+
(E, C) => {
|
|
1087
|
+
I.current && c && I.current.send(JSON.stringify({ type: E, clientId: i, content: C }));
|
|
1088
1088
|
},
|
|
1089
1089
|
[c, i]
|
|
1090
|
-
), A = (
|
|
1091
|
-
$(
|
|
1090
|
+
), A = (E, C) => {
|
|
1091
|
+
$(E, { value: C });
|
|
1092
1092
|
}, S1 = a1(
|
|
1093
|
-
(
|
|
1094
|
-
k.current[
|
|
1093
|
+
(E, C, f1) => {
|
|
1094
|
+
k.current[E] || (k.current[E] = {}), k.current[E][C] = f1, console.log("event handler added", E, C);
|
|
1095
1095
|
},
|
|
1096
1096
|
[]
|
|
1097
|
-
), b1 = a1((
|
|
1098
|
-
k.current[
|
|
1097
|
+
), b1 = a1((E, C) => {
|
|
1098
|
+
k.current[E] && (delete k.current[E][C], console.log("event handler removed", E, C));
|
|
1099
1099
|
}, []);
|
|
1100
1100
|
return n1(() => {
|
|
1101
1101
|
let C = new URLSearchParams(window.location.search).get("token");
|
|
1102
|
-
C ? (console.log("saving token: ", C), _8(
|
|
1102
|
+
C ? (console.log("saving token: ", C), _8(w3.uuid, C)) : (C = T8(w3.uuid), console.log("loading token: ", C)), o(C), d();
|
|
1103
1103
|
}, []), console.log(
|
|
1104
1104
|
"connection dependencies",
|
|
1105
1105
|
a.apiPath,
|
|
1106
|
-
|
|
1106
|
+
X,
|
|
1107
1107
|
t,
|
|
1108
|
-
|
|
1109
|
-
|
|
1108
|
+
D,
|
|
1109
|
+
h
|
|
1110
1110
|
), n1(() => {
|
|
1111
|
-
async function
|
|
1112
|
-
if (console.log("Attempting to join websocket..."), !a.apiPath ||
|
|
1111
|
+
async function E() {
|
|
1112
|
+
if (console.log("Attempting to join websocket..."), !a.apiPath || D || !t || !await X(a.apiPath)) return;
|
|
1113
1113
|
if (I.current) {
|
|
1114
1114
|
console.log("websocket exists");
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
1117
|
console.log("connecting to websocket");
|
|
1118
|
-
const I1 = `${a.apiPath.replace("http", "ws")}/ui/join/${t}`,
|
|
1119
|
-
I.current =
|
|
1120
|
-
console.log("connected",
|
|
1121
|
-
},
|
|
1122
|
-
console.error("Websocket error",
|
|
1123
|
-
},
|
|
1124
|
-
if (console.log("disconnected: ",
|
|
1125
|
-
console.log("WebSocket closed by client (useEffect cleanup)."), m.dispatch(
|
|
1118
|
+
const I1 = `${a.apiPath.replace("http", "ws")}/ui/join/${t}`, Y = new WebSocket(I1);
|
|
1119
|
+
I.current = Y, Y.onopen = (B) => {
|
|
1120
|
+
console.log("connected", B.type, B.target), m.dispatch(W.setWebsocketIsConnected(!0));
|
|
1121
|
+
}, Y.onerror = (B) => {
|
|
1122
|
+
console.error("Websocket error", B);
|
|
1123
|
+
}, Y.onclose = (B) => {
|
|
1124
|
+
if (console.log("disconnected: ", B.reason, B.code), B.code === 4100) {
|
|
1125
|
+
console.log("WebSocket closed by client (useEffect cleanup)."), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1126
1126
|
return;
|
|
1127
1127
|
}
|
|
1128
|
-
if (
|
|
1128
|
+
if (F(!0), B.code === 4e3) {
|
|
1129
1129
|
console.log("user code changed"), m.dispatch(
|
|
1130
|
-
|
|
1130
|
+
W.setUserCode({ userCode: "", qrUrl: "" })
|
|
1131
1131
|
), m.dispatch(
|
|
1132
|
-
|
|
1132
|
+
q.setErrorMessage(
|
|
1133
1133
|
"User code changed. Click reconnect to enter the new code"
|
|
1134
1134
|
)
|
|
1135
|
-
), m.dispatch(
|
|
1135
|
+
), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
|
-
if (
|
|
1138
|
+
if (B.code === 4001 && !h) {
|
|
1139
1139
|
console.log("processor disconnected"), m.dispatch(
|
|
1140
|
-
|
|
1140
|
+
q.setErrorMessage(
|
|
1141
1141
|
"Processor has disconnected. Click Reconnect"
|
|
1142
1142
|
)
|
|
1143
|
-
), m.dispatch(
|
|
1143
|
+
), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
|
-
if (
|
|
1146
|
+
if (B.code === 4002) {
|
|
1147
1147
|
console.log("room combination changed"), m.dispatch(
|
|
1148
|
-
|
|
1148
|
+
q.setErrorMessage(
|
|
1149
1149
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
1150
1150
|
)
|
|
1151
|
-
), m.dispatch(
|
|
1151
|
+
), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1152
1152
|
return;
|
|
1153
1153
|
}
|
|
1154
1154
|
if (I.current)
|
|
@@ -1157,80 +1157,68 @@ const L8 = ({ children: e }) => {
|
|
|
1157
1157
|
console.log("WebSocket closed by client.");
|
|
1158
1158
|
return;
|
|
1159
1159
|
}
|
|
1160
|
-
console.log("websocket waitingToReconnect",
|
|
1161
|
-
},
|
|
1160
|
+
console.log("websocket waitingToReconnect", D), !D && (console.log("websocket clearing state on disconnect"), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms()), setTimeout(() => F(void 0), 5e3));
|
|
1161
|
+
}, Y.onmessage = (B) => {
|
|
1162
1162
|
try {
|
|
1163
|
-
const
|
|
1164
|
-
if (console.log(
|
|
1165
|
-
|
|
1163
|
+
const P = JSON.parse(B.data);
|
|
1164
|
+
if (console.log(P), P.type === "close") {
|
|
1165
|
+
Y.close(4001, P.content);
|
|
1166
1166
|
return;
|
|
1167
1167
|
}
|
|
1168
|
-
if (
|
|
1169
|
-
switch (
|
|
1168
|
+
if (P.type.startsWith("/system/"))
|
|
1169
|
+
switch (P.type) {
|
|
1170
1170
|
case "/system/touchpanelKey":
|
|
1171
1171
|
m.dispatch(
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
W.setTouchpanelKey(
|
|
1173
|
+
P.content
|
|
1174
1174
|
)
|
|
1175
1175
|
);
|
|
1176
1176
|
break;
|
|
1177
1177
|
case "/system/roomKey": {
|
|
1178
|
-
m.dispatch(
|
|
1179
|
-
|
|
1180
|
-
|
|
1178
|
+
m.dispatch(e1.clearRooms()), m.dispatch(N.clearDevices()), m.dispatch(
|
|
1179
|
+
W.setCurrentRoomKey(
|
|
1180
|
+
P.content
|
|
1181
1181
|
)
|
|
1182
1182
|
);
|
|
1183
1183
|
break;
|
|
1184
1184
|
}
|
|
1185
1185
|
case "/system/userCodeChanged":
|
|
1186
1186
|
m.dispatch(
|
|
1187
|
-
|
|
1187
|
+
W.setUserCode(P.content)
|
|
1188
1188
|
);
|
|
1189
1189
|
break;
|
|
1190
|
-
case "/system/roomCombinationChanged":
|
|
1191
|
-
|
|
1192
|
-
const q = k.current[y.type];
|
|
1193
|
-
q || (console.log(
|
|
1194
|
-
"no handlers found for room combination changed. Reloading application.",
|
|
1195
|
-
y.type
|
|
1196
|
-
), window.location.reload()), q && Object.values(q).forEach((W) => {
|
|
1197
|
-
try {
|
|
1198
|
-
W(y);
|
|
1199
|
-
} catch (K) {
|
|
1200
|
-
console.error(K);
|
|
1201
|
-
}
|
|
1202
|
-
});
|
|
1190
|
+
case "/system/roomCombinationChanged":
|
|
1191
|
+
window.location.reload();
|
|
1203
1192
|
break;
|
|
1204
|
-
}
|
|
1205
1193
|
default:
|
|
1206
|
-
console.log("unhandled system message",
|
|
1194
|
+
console.log("unhandled system message", P);
|
|
1207
1195
|
break;
|
|
1208
1196
|
}
|
|
1209
|
-
else if (
|
|
1210
|
-
console.log("event message received",
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1197
|
+
else if (P.type.startsWith("/event/")) {
|
|
1198
|
+
console.log("event message received", P);
|
|
1199
|
+
const t1 = k.current[P.type];
|
|
1200
|
+
t1 || console.log("no handlers found for event type", P.type), t1 && Object.values(t1).forEach((K) => {
|
|
1213
1201
|
try {
|
|
1214
|
-
|
|
1215
|
-
} catch (
|
|
1216
|
-
console.error(
|
|
1202
|
+
K(P);
|
|
1203
|
+
} catch (z) {
|
|
1204
|
+
console.error(z);
|
|
1217
1205
|
}
|
|
1218
1206
|
});
|
|
1219
|
-
} else
|
|
1220
|
-
} catch (
|
|
1221
|
-
console.error("websocket message handling error",
|
|
1207
|
+
} else P.type.startsWith("/room/") ? m.dispatch(e1.setRoomState(P)) : P.type.startsWith("/device/") && m.dispatch(N.setDeviceState(P));
|
|
1208
|
+
} catch (P) {
|
|
1209
|
+
console.error("websocket message handling error", P);
|
|
1222
1210
|
}
|
|
1223
1211
|
};
|
|
1224
1212
|
}
|
|
1225
|
-
return
|
|
1213
|
+
return E(), console.log("App mode: production"), console.log("Is dev mode: false"), () => {
|
|
1226
1214
|
I.current && (console.log("closing websocket dev mode"), I.current.close(4100, "app running in dev mode"), I.current = null);
|
|
1227
1215
|
};
|
|
1228
1216
|
}, [
|
|
1229
1217
|
a.apiPath,
|
|
1230
|
-
|
|
1218
|
+
X,
|
|
1231
1219
|
t,
|
|
1232
|
-
|
|
1233
|
-
|
|
1220
|
+
D,
|
|
1221
|
+
h
|
|
1234
1222
|
]), n1(() => {
|
|
1235
1223
|
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
|
|
1236
1224
|
}, [r, i, c, $]), /* @__PURE__ */ s.jsx(
|
|
@@ -1246,17 +1234,17 @@ const L8 = ({ children: e }) => {
|
|
|
1246
1234
|
children: c ? e : /* @__PURE__ */ s.jsx(E8, {})
|
|
1247
1235
|
}
|
|
1248
1236
|
);
|
|
1249
|
-
},
|
|
1237
|
+
}, we = ({ children: e }) => /* @__PURE__ */ s.jsx(i2, { store: m, children: /* @__PURE__ */ s.jsx(L8, { children: e }) });
|
|
1250
1238
|
function b() {
|
|
1251
|
-
return
|
|
1239
|
+
return h2(I3);
|
|
1252
1240
|
}
|
|
1253
|
-
function
|
|
1241
|
+
function D8({
|
|
1254
1242
|
onPress: e,
|
|
1255
1243
|
onRelease: t,
|
|
1256
1244
|
onHold: o,
|
|
1257
1245
|
holdTimeMs: c = 500
|
|
1258
1246
|
}) {
|
|
1259
|
-
const r =
|
|
1247
|
+
const r = v1(null), i = v1(!1);
|
|
1260
1248
|
function d() {
|
|
1261
1249
|
i.current = !0, e == null || e(), r.current = setTimeout(() => {
|
|
1262
1250
|
o == null || o(), r.current = null;
|
|
@@ -1274,8 +1262,8 @@ function T8({
|
|
|
1274
1262
|
onPointerLeave: g
|
|
1275
1263
|
};
|
|
1276
1264
|
}
|
|
1277
|
-
function
|
|
1278
|
-
const { sendMessage: c } = b(), r =
|
|
1265
|
+
function v(e, t) {
|
|
1266
|
+
const { sendMessage: c } = b(), r = v1(null);
|
|
1279
1267
|
function i() {
|
|
1280
1268
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1281
1269
|
c(`${e}/${t}`, { value: "held" });
|
|
@@ -1284,34 +1272,34 @@ function h(e, t) {
|
|
|
1284
1272
|
function d() {
|
|
1285
1273
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1286
1274
|
}
|
|
1287
|
-
return
|
|
1275
|
+
return D8({ onPress: i, onRelease: d });
|
|
1288
1276
|
}
|
|
1289
1277
|
function R3(e, t) {
|
|
1290
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1278
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1291
1279
|
return t ? {
|
|
1292
1280
|
volumeState: t,
|
|
1293
1281
|
volumeUp: r,
|
|
1294
1282
|
volumeDown: i,
|
|
1295
|
-
setLevel: (
|
|
1283
|
+
setLevel: (h) => c(`${e}/level`, h),
|
|
1296
1284
|
muteToggle: () => o(`${e}/muteToggle`, null),
|
|
1297
1285
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1298
1286
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1299
1287
|
} : void 0;
|
|
1300
1288
|
}
|
|
1301
1289
|
function pe(e, t) {
|
|
1302
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1290
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1303
1291
|
return t ? {
|
|
1304
1292
|
volumeState: t,
|
|
1305
1293
|
volumeUp: r,
|
|
1306
1294
|
volumeDown: i,
|
|
1307
|
-
setLevel: (
|
|
1295
|
+
setLevel: (h) => c(`${e}/level`, h),
|
|
1308
1296
|
muteToggle: () => o(`${e}/muteToggle`, null),
|
|
1309
1297
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1310
1298
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1311
1299
|
} : void 0;
|
|
1312
1300
|
}
|
|
1313
1301
|
function $8(e) {
|
|
1314
|
-
const t =
|
|
1302
|
+
const t = y(e), o = `/device/${e}`;
|
|
1315
1303
|
return R3(o, t == null ? void 0 : t.volume);
|
|
1316
1304
|
}
|
|
1317
1305
|
function y3(e) {
|
|
@@ -1324,14 +1312,14 @@ function y3(e) {
|
|
|
1324
1312
|
t(`/device/${e}/powerToggle`, null);
|
|
1325
1313
|
} };
|
|
1326
1314
|
}
|
|
1327
|
-
function
|
|
1328
|
-
const { sendMessage: t } = b(), o =
|
|
1315
|
+
function k1(e) {
|
|
1316
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1329
1317
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1330
1318
|
t(`/device/${e}/${r}`, null);
|
|
1331
1319
|
} } : void 0;
|
|
1332
1320
|
}
|
|
1333
1321
|
function A8(e) {
|
|
1334
|
-
const { sendMessage: t } = b(), o =
|
|
1322
|
+
const { sendMessage: t } = b(), o = y(e), c = () => {
|
|
1335
1323
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1336
1324
|
}, r = () => {
|
|
1337
1325
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1341,8 +1329,8 @@ function A8(e) {
|
|
|
1341
1329
|
};
|
|
1342
1330
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1343
1331
|
}
|
|
1344
|
-
function
|
|
1345
|
-
const t =
|
|
1332
|
+
function xe(e) {
|
|
1333
|
+
const t = y(e), o = y3(e), c = k1(e), r = k1(e), i = $8(e), d = A8(e);
|
|
1346
1334
|
if (t)
|
|
1347
1335
|
return {
|
|
1348
1336
|
avrState: t,
|
|
@@ -1353,8 +1341,8 @@ function we(e) {
|
|
|
1353
1341
|
mainVolumeControl: i
|
|
1354
1342
|
};
|
|
1355
1343
|
}
|
|
1356
|
-
function
|
|
1357
|
-
const { sendMessage: t } = b(), o = `/device/${e}`, c =
|
|
1344
|
+
function Me(e) {
|
|
1345
|
+
const { sendMessage: t } = b(), o = `/device/${e}`, c = y(e), r = v(o, "cameraUp"), i = v(o, "cameraDown"), d = v(o, "cameraLeft"), a = v(o, "cameraRight"), g = v(o, "cameraZoomIn"), x = v(o, "cameraZoomOut"), h = (I) => t("/camera/recallPreset", I);
|
|
1358
1346
|
if (c)
|
|
1359
1347
|
return {
|
|
1360
1348
|
state: c,
|
|
@@ -1364,11 +1352,11 @@ function xe(e) {
|
|
|
1364
1352
|
down: i,
|
|
1365
1353
|
left: d,
|
|
1366
1354
|
right: a,
|
|
1367
|
-
recallPreset:
|
|
1355
|
+
recallPreset: h
|
|
1368
1356
|
};
|
|
1369
1357
|
}
|
|
1370
|
-
const
|
|
1371
|
-
const [t, o] =
|
|
1358
|
+
const me = ({ className: e }) => {
|
|
1359
|
+
const [t, o] = H();
|
|
1372
1360
|
return n1(() => {
|
|
1373
1361
|
setInterval(() => {
|
|
1374
1362
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
@@ -1379,55 +1367,58 @@ const Me = ({ className: e }) => {
|
|
|
1379
1367
|
" new change"
|
|
1380
1368
|
] });
|
|
1381
1369
|
};
|
|
1382
|
-
function
|
|
1383
|
-
const { sendMessage: t } = b(), o =
|
|
1370
|
+
function Ze(e) {
|
|
1371
|
+
const { sendMessage: t } = b(), o = y(e), c = `/device/${e}`;
|
|
1384
1372
|
return o ? { state: o, recallPreset: (d, a) => {
|
|
1385
1373
|
t(`${c}/presets/recall`, { deviceKey: d, preset: a });
|
|
1386
1374
|
}, savePresets: (d) => {
|
|
1387
1375
|
t(`${c}/presets/save`, d);
|
|
1388
1376
|
} } : void 0;
|
|
1389
1377
|
}
|
|
1390
|
-
function
|
|
1391
|
-
const t =
|
|
1378
|
+
function je(e) {
|
|
1379
|
+
const t = y(e);
|
|
1392
1380
|
if (t)
|
|
1393
1381
|
return { endpointState: t };
|
|
1394
1382
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const t = `/device/${e}`, o =
|
|
1383
|
+
function Ce(e) {
|
|
1384
|
+
const t = `/device/${e}`, o = v(t, "chanUp"), c = v(t, "chanDown"), r = v(t, "lastChan"), i = v(t, "guide"), d = v(t, "info"), a = v(t, "exit");
|
|
1397
1385
|
return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: d, exit: a };
|
|
1398
1386
|
}
|
|
1399
|
-
function
|
|
1400
|
-
const t = `/device/${e}`, o =
|
|
1387
|
+
function Se(e) {
|
|
1388
|
+
const t = `/device/${e}`, o = v(t, "red"), c = v(t, "green"), r = v(t, "yellow"), i = v(t, "blue");
|
|
1401
1389
|
return { red: o, green: c, yellow: r, blue: i };
|
|
1402
1390
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const t =
|
|
1391
|
+
function be(e) {
|
|
1392
|
+
const t = y(e);
|
|
1405
1393
|
if (t)
|
|
1406
1394
|
return {
|
|
1407
1395
|
communicationMonitorState: t
|
|
1408
1396
|
};
|
|
1409
1397
|
}
|
|
1410
|
-
function
|
|
1411
|
-
const t =
|
|
1398
|
+
function Ie(e) {
|
|
1399
|
+
const t = y(e);
|
|
1412
1400
|
if (t)
|
|
1413
1401
|
return t.deviceInfo || void 0;
|
|
1414
1402
|
}
|
|
1415
|
-
function
|
|
1416
|
-
const t = `/device/${e}`, o =
|
|
1403
|
+
function Re(e) {
|
|
1404
|
+
const t = `/device/${e}`, o = v(t, "up"), c = v(t, "down"), r = v(t, "left"), i = v(t, "right"), d = v(t, "select"), a = v(t, "menu"), g = v(t, "exit");
|
|
1417
1405
|
return { up: o, down: c, left: r, right: i, select: d, menu: a, exit: g };
|
|
1418
1406
|
}
|
|
1419
|
-
function
|
|
1407
|
+
function ye(e) {
|
|
1420
1408
|
const { sendMessage: t } = b();
|
|
1421
1409
|
return { recallPreset: (c) => {
|
|
1422
|
-
t(
|
|
1410
|
+
t(
|
|
1411
|
+
`/device/${e}/recallPreset`,
|
|
1412
|
+
c.key || c
|
|
1413
|
+
);
|
|
1423
1414
|
} };
|
|
1424
1415
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const t = `/device/${e}`, o =
|
|
1416
|
+
function Ee(e) {
|
|
1417
|
+
const t = `/device/${e}`, o = v(t, "dvrList"), c = v(t, "record");
|
|
1427
1418
|
return { dvrList: o, record: c };
|
|
1428
1419
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const { sendMessage: t } = b(), o =
|
|
1420
|
+
function Pe(e) {
|
|
1421
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1431
1422
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1432
1423
|
t(`/device/${e}/setAutoMode`, null);
|
|
1433
1424
|
}, setManualMode: () => {
|
|
@@ -1440,8 +1431,8 @@ function Ee(e) {
|
|
|
1440
1431
|
t(`/device/${e}/setRoomCombinationScenario`, g);
|
|
1441
1432
|
} } : void 0;
|
|
1442
1433
|
}
|
|
1443
|
-
function
|
|
1444
|
-
const { sendMessage: t } = b(), o = `/device/${e}`, c =
|
|
1434
|
+
function Te(e) {
|
|
1435
|
+
const { sendMessage: t } = b(), o = `/device/${e}`, c = y(e);
|
|
1445
1436
|
return c ? {
|
|
1446
1437
|
state: c,
|
|
1447
1438
|
selectCamera: (i) => {
|
|
@@ -1449,41 +1440,41 @@ function De(e) {
|
|
|
1449
1440
|
}
|
|
1450
1441
|
} : void 0;
|
|
1451
1442
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const t =
|
|
1443
|
+
function _e(e) {
|
|
1444
|
+
const t = y(e);
|
|
1454
1445
|
if (t)
|
|
1455
1446
|
return { state: t };
|
|
1456
1447
|
}
|
|
1457
|
-
function
|
|
1458
|
-
const { sendMessage: t, sendSimpleMessage: o } = b(), c =
|
|
1448
|
+
function Le(e) {
|
|
1449
|
+
const { sendMessage: t, sendSimpleMessage: o } = b(), c = y(e), r = K2(e), i = c || r;
|
|
1459
1450
|
return i ? {
|
|
1460
1451
|
levelState: i,
|
|
1461
|
-
setLevel: (
|
|
1462
|
-
muteToggle: (
|
|
1463
|
-
muteOn: (
|
|
1464
|
-
muteOff: (
|
|
1452
|
+
setLevel: (h, I) => o(`${h}/level`, I),
|
|
1453
|
+
muteToggle: (h) => t(`${h}/muteToggle`, null),
|
|
1454
|
+
muteOn: (h) => t(`${h}/muteOn`, null),
|
|
1455
|
+
muteOff: (h) => t(`${h}/muteOff`, null)
|
|
1465
1456
|
} : void 0;
|
|
1466
1457
|
}
|
|
1467
|
-
function
|
|
1468
|
-
const { sendMessage: t } = b(), o =
|
|
1458
|
+
function De(e) {
|
|
1459
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1469
1460
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1470
1461
|
t(`/device/${e}/selectScene`, r);
|
|
1471
1462
|
} } : void 0;
|
|
1472
1463
|
}
|
|
1473
|
-
function
|
|
1474
|
-
const { sendMessage: t } = b(), o =
|
|
1464
|
+
function $e(e) {
|
|
1465
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1475
1466
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1476
1467
|
t(`/device/${e}/route`, r);
|
|
1477
1468
|
} } : void 0;
|
|
1478
1469
|
}
|
|
1479
|
-
function
|
|
1470
|
+
function Ae(e) {
|
|
1480
1471
|
const { sendMessage: t } = b();
|
|
1481
1472
|
return { closeApp: () => {
|
|
1482
1473
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1483
1474
|
} };
|
|
1484
1475
|
}
|
|
1485
|
-
function
|
|
1486
|
-
const t = `/device/${e}`, o =
|
|
1476
|
+
function Be(e) {
|
|
1477
|
+
const t = `/device/${e}`, o = v(t, "num0"), c = v(t, "num1"), r = v(t, "num2"), i = v(t, "num3"), d = v(t, "num4"), a = v(t, "num5"), g = v(t, "num6"), x = v(t, "num7"), h = v(t, "num8"), I = v(t, "num9"), D = v(t, "numDash"), F = v(t, "numEnter");
|
|
1487
1478
|
return {
|
|
1488
1479
|
digit0: o,
|
|
1489
1480
|
digit1: c,
|
|
@@ -1493,21 +1484,21 @@ function Ae(e) {
|
|
|
1493
1484
|
digit5: a,
|
|
1494
1485
|
digit6: g,
|
|
1495
1486
|
digit7: x,
|
|
1496
|
-
digit8:
|
|
1487
|
+
digit8: h,
|
|
1497
1488
|
digit9: I,
|
|
1498
|
-
keypadAccessoryButton1:
|
|
1499
|
-
keypadAccessoryButton2:
|
|
1489
|
+
keypadAccessoryButton1: D,
|
|
1490
|
+
keypadAccessoryButton2: F
|
|
1500
1491
|
};
|
|
1501
1492
|
}
|
|
1502
1493
|
function Oe(e) {
|
|
1503
|
-
const { sendMessage: t } = b(), o =
|
|
1494
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1504
1495
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1505
1496
|
t(`/device/${e}/raise`, null);
|
|
1506
1497
|
}, lower: () => {
|
|
1507
1498
|
t(`/device/${e}/lower`, null);
|
|
1508
1499
|
} } : void 0;
|
|
1509
1500
|
}
|
|
1510
|
-
function
|
|
1501
|
+
function Ve(e) {
|
|
1511
1502
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1512
1503
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1513
1504
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
@@ -1519,7 +1510,7 @@ function ke(e) {
|
|
|
1519
1510
|
t(`/room/${e}/defaultsource`, {});
|
|
1520
1511
|
} };
|
|
1521
1512
|
}
|
|
1522
|
-
function
|
|
1513
|
+
function Ue(e) {
|
|
1523
1514
|
const { sendMessage: t } = b();
|
|
1524
1515
|
return { runDirectRoute: (c) => {
|
|
1525
1516
|
t(`/room/${e}/directRoute`, c);
|
|
@@ -1527,16 +1518,16 @@ function Ve(e) {
|
|
|
1527
1518
|
}
|
|
1528
1519
|
function We(e) {
|
|
1529
1520
|
const { sendMessage: t } = b();
|
|
1530
|
-
return { routingState:
|
|
1521
|
+
return { routingState: y(e), runRoute: (r) => {
|
|
1531
1522
|
t(`/room/${e}/source`, r);
|
|
1532
1523
|
} };
|
|
1533
1524
|
}
|
|
1534
|
-
function
|
|
1535
|
-
const t = `/device/${e}`, o =
|
|
1525
|
+
function Fe(e) {
|
|
1526
|
+
const t = `/device/${e}`, o = v(t, "chanUp"), c = v(t, "chanDown");
|
|
1536
1527
|
return { dvrList: o, replay: c };
|
|
1537
1528
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const { sendMessage: t } = b(), o =
|
|
1529
|
+
function He(e) {
|
|
1530
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1540
1531
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1541
1532
|
t(`/device/${e}/shadeUp`, null);
|
|
1542
1533
|
}, shadeDown: () => {
|
|
@@ -1545,7 +1536,7 @@ function Fe(e) {
|
|
|
1545
1536
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1546
1537
|
} } : void 0;
|
|
1547
1538
|
}
|
|
1548
|
-
function
|
|
1539
|
+
function Ke(e) {
|
|
1549
1540
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1550
1541
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (a) => {
|
|
1551
1542
|
t(`/room/${e}/setShutdownPromptSeconds`, a);
|
|
@@ -1557,15 +1548,15 @@ function He(e) {
|
|
|
1557
1548
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1558
1549
|
} } : void 0;
|
|
1559
1550
|
}
|
|
1560
|
-
function
|
|
1561
|
-
const { sendMessage: t } = b(), o =
|
|
1551
|
+
function Ge(e) {
|
|
1552
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1562
1553
|
return o ? { switchedOutputState: o, on: () => {
|
|
1563
1554
|
t(`/device/${e}/on`, null);
|
|
1564
1555
|
}, off: () => {
|
|
1565
1556
|
t(`/device/${e}/off`, null);
|
|
1566
1557
|
} } : void 0;
|
|
1567
1558
|
}
|
|
1568
|
-
function
|
|
1559
|
+
function qe(e) {
|
|
1569
1560
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1570
1561
|
return o ? { techPasswordState: o, validatePassword: (i) => {
|
|
1571
1562
|
t(`/room/${e}/validateTechPassword`, { password: i });
|
|
@@ -1573,12 +1564,12 @@ function Ge(e) {
|
|
|
1573
1564
|
t(`/room/${e}/setTechPassword`, { oldPassword: i, newPassword: d });
|
|
1574
1565
|
} } : void 0;
|
|
1575
1566
|
}
|
|
1576
|
-
function
|
|
1577
|
-
const { sendMessage: t } = b(), o =
|
|
1567
|
+
function Ye(e) {
|
|
1568
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1578
1569
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1579
1570
|
}
|
|
1580
|
-
function
|
|
1581
|
-
const { sendMessage: t } = b(), o =
|
|
1571
|
+
function ze(e) {
|
|
1572
|
+
const { sendMessage: t } = b(), o = y(e), c = (r) => {
|
|
1582
1573
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1583
1574
|
};
|
|
1584
1575
|
return {
|
|
@@ -1586,8 +1577,8 @@ function Ye(e) {
|
|
|
1586
1577
|
saveTheme: c
|
|
1587
1578
|
};
|
|
1588
1579
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const t = `/device/${e}`, o =
|
|
1580
|
+
function Je(e) {
|
|
1581
|
+
const t = `/device/${e}`, o = v(t, "play"), c = v(t, "pause"), r = v(t, "stop"), i = v(t, "prevTrack"), d = v(t, "nextTrack"), a = v(t, "rewind"), g = v(t, "ffwd"), x = v(t, "record");
|
|
1591
1582
|
return {
|
|
1592
1583
|
play: o,
|
|
1593
1584
|
pause: c,
|
|
@@ -1599,8 +1590,8 @@ function ze(e) {
|
|
|
1599
1590
|
record: x
|
|
1600
1591
|
};
|
|
1601
1592
|
}
|
|
1602
|
-
function
|
|
1603
|
-
const t =
|
|
1593
|
+
function Xe(e) {
|
|
1594
|
+
const t = y(e), { sendMessage: o } = b();
|
|
1604
1595
|
return t ? {
|
|
1605
1596
|
touchpanelState: t,
|
|
1606
1597
|
appControl: { hideApp: () => {
|
|
@@ -1615,8 +1606,8 @@ function Je(e) {
|
|
|
1615
1606
|
} }
|
|
1616
1607
|
} : void 0;
|
|
1617
1608
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const t =
|
|
1609
|
+
function Qe(e) {
|
|
1610
|
+
const t = y(e), o = y3(e), c = k1(e);
|
|
1620
1611
|
if (!t) return;
|
|
1621
1612
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1622
1613
|
return {
|
|
@@ -1626,7 +1617,7 @@ function Xe(e) {
|
|
|
1626
1617
|
powerFb: { powerOnFb: r, powerOffFb: i }
|
|
1627
1618
|
};
|
|
1628
1619
|
}
|
|
1629
|
-
const
|
|
1620
|
+
const Ne = ({
|
|
1630
1621
|
config: e
|
|
1631
1622
|
}) => {
|
|
1632
1623
|
const { sendMessage: t } = b();
|
|
@@ -1659,8 +1650,8 @@ const Qe = ({
|
|
|
1659
1650
|
});
|
|
1660
1651
|
}, [e, t]);
|
|
1661
1652
|
};
|
|
1662
|
-
function
|
|
1663
|
-
const [o, c] =
|
|
1653
|
+
function e5(e, t) {
|
|
1654
|
+
const [o, c] = H(!1), [r, i] = H(!1);
|
|
1664
1655
|
return x3(() => {
|
|
1665
1656
|
const { current: d } = e, a = () => {
|
|
1666
1657
|
const g = d && d.scrollHeight > d.clientHeight, x = d && d.scrollWidth > d.clientWidth;
|
|
@@ -1669,27 +1660,27 @@ function Ne(e, t) {
|
|
|
1669
1660
|
d && a();
|
|
1670
1661
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1671
1662
|
}
|
|
1672
|
-
function
|
|
1663
|
+
function t5(e, t) {
|
|
1673
1664
|
const o = H2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1674
1665
|
return R3(c, o);
|
|
1675
1666
|
}
|
|
1676
|
-
function
|
|
1667
|
+
function s5(e) {
|
|
1677
1668
|
var a, g;
|
|
1678
|
-
const [t, o] =
|
|
1679
|
-
const { current:
|
|
1680
|
-
|
|
1669
|
+
const [t, o] = H(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollLeft) ?? 0), [c, r] = H(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollTop) ?? 0), i = (x) => {
|
|
1670
|
+
const { current: h } = e;
|
|
1671
|
+
h && (console.log(h.scrollLeft), h.scrollLeft += x, console.log(h.scrollLeft));
|
|
1681
1672
|
}, d = (x) => {
|
|
1682
|
-
const { current:
|
|
1683
|
-
|
|
1673
|
+
const { current: h } = e;
|
|
1674
|
+
h && (console.log(h.scrollTop), h.scrollTop += x, console.log(h.scrollTop));
|
|
1684
1675
|
};
|
|
1685
1676
|
return x3(() => {
|
|
1686
|
-
const { current: x } = e,
|
|
1677
|
+
const { current: x } = e, h = () => {
|
|
1687
1678
|
o((x == null ? void 0 : x.scrollLeft) ?? 0), r((x == null ? void 0 : x.scrollTop) ?? 0);
|
|
1688
1679
|
};
|
|
1689
|
-
x &&
|
|
1680
|
+
x && h();
|
|
1690
1681
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: d };
|
|
1691
1682
|
}
|
|
1692
|
-
function
|
|
1683
|
+
function o5() {
|
|
1693
1684
|
const { sendMessage: e } = b();
|
|
1694
1685
|
return {
|
|
1695
1686
|
reboot: () => {
|
|
@@ -1700,8 +1691,8 @@ function s5() {
|
|
|
1700
1691
|
}
|
|
1701
1692
|
};
|
|
1702
1693
|
}
|
|
1703
|
-
function
|
|
1704
|
-
const [e, t] =
|
|
1694
|
+
function n5() {
|
|
1695
|
+
const [e, t] = H(), [o, c] = H();
|
|
1705
1696
|
function r() {
|
|
1706
1697
|
t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
1707
1698
|
const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
@@ -1715,8 +1706,8 @@ function o5() {
|
|
|
1715
1706
|
return () => clearInterval(i);
|
|
1716
1707
|
}, []), { date: e, time: o };
|
|
1717
1708
|
}
|
|
1718
|
-
const
|
|
1719
|
-
const [e, t] =
|
|
1709
|
+
const c5 = () => {
|
|
1710
|
+
const [e, t] = H(!1), o = v2(), c = g2();
|
|
1720
1711
|
let r;
|
|
1721
1712
|
return f2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
|
|
1722
1713
|
/* @__PURE__ */ s.jsx("div", { className: "m-2 p-2 bg-danger rounded d-flex align-items-center", children: /* @__PURE__ */ s.jsx("span", { className: "fs-5 text-white", children: "We are sorry. Something went wrong." }) }),
|
|
@@ -1724,11 +1715,11 @@ const n5 = () => {
|
|
|
1724
1715
|
/* @__PURE__ */ s.jsx("button", { className: "btn btn-primary p-2", onClick: () => t(!e), children: e ? "Hide error message" : "Show error message" }),
|
|
1725
1716
|
e && /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1726
1717
|
] });
|
|
1727
|
-
},
|
|
1728
|
-
iconbtn:
|
|
1729
|
-
iconbtnvert:
|
|
1730
|
-
iconsm:
|
|
1731
|
-
},
|
|
1718
|
+
}, B8 = "_iconbtn_16qss_1", O8 = "_iconbtnvert_16qss_7", V8 = "_iconsm_16qss_18", $1 = {
|
|
1719
|
+
iconbtn: B8,
|
|
1720
|
+
iconbtnvert: O8,
|
|
1721
|
+
iconsm: V8
|
|
1722
|
+
}, k8 = ({
|
|
1732
1723
|
multiIcon: e,
|
|
1733
1724
|
otherContent: t = null,
|
|
1734
1725
|
vert: o = !1,
|
|
@@ -1739,23 +1730,23 @@ const n5 = () => {
|
|
|
1739
1730
|
feedback: a,
|
|
1740
1731
|
feedbackClassName: g,
|
|
1741
1732
|
onPointerDown: x,
|
|
1742
|
-
onPointerUp:
|
|
1733
|
+
onPointerUp: h,
|
|
1743
1734
|
onPointerLeave: I,
|
|
1744
|
-
...
|
|
1735
|
+
...D
|
|
1745
1736
|
}) => {
|
|
1746
|
-
const [
|
|
1737
|
+
const [F, k] = H(!1), X = !d && a ? g : "", r1 = !d && (F || a);
|
|
1747
1738
|
return /* @__PURE__ */ s.jsxs(
|
|
1748
1739
|
"button",
|
|
1749
1740
|
{
|
|
1750
1741
|
type: "button",
|
|
1751
|
-
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${
|
|
1752
|
-
...
|
|
1742
|
+
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${X}`,
|
|
1743
|
+
...D,
|
|
1753
1744
|
disabled: d,
|
|
1754
1745
|
onPointerDown: ($) => {
|
|
1755
1746
|
k(!0), x == null || x($);
|
|
1756
1747
|
},
|
|
1757
1748
|
onPointerUp: ($) => {
|
|
1758
|
-
k(!1),
|
|
1749
|
+
k(!1), h == null || h($);
|
|
1759
1750
|
},
|
|
1760
1751
|
onPointerLeave: ($) => {
|
|
1761
1752
|
k(!1), I == null || I($);
|
|
@@ -1779,7 +1770,7 @@ const n5 = () => {
|
|
|
1779
1770
|
EnabledImage: o,
|
|
1780
1771
|
active: c,
|
|
1781
1772
|
disabled: r
|
|
1782
|
-
}) => r ? t : c ? e : o,
|
|
1773
|
+
}) => r ? t : c ? e : o, U8 = ({
|
|
1783
1774
|
active: e,
|
|
1784
1775
|
className: t = "",
|
|
1785
1776
|
disabled: o
|
|
@@ -1831,7 +1822,7 @@ const n5 = () => {
|
|
|
1831
1822
|
active: e,
|
|
1832
1823
|
disabled: o
|
|
1833
1824
|
}
|
|
1834
|
-
),
|
|
1825
|
+
), W8 = ({
|
|
1835
1826
|
active: e,
|
|
1836
1827
|
className: t = "",
|
|
1837
1828
|
disabled: o
|
|
@@ -2979,7 +2970,7 @@ const n5 = () => {
|
|
|
2979
2970
|
active: e,
|
|
2980
2971
|
disabled: o
|
|
2981
2972
|
}
|
|
2982
|
-
),
|
|
2973
|
+
), r5 = ({
|
|
2983
2974
|
active: e,
|
|
2984
2975
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
2985
2976
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3043,7 +3034,7 @@ const n5 = () => {
|
|
|
3043
3034
|
active: e,
|
|
3044
3035
|
disabled: o
|
|
3045
3036
|
}
|
|
3046
|
-
),
|
|
3037
|
+
), h6 = ({
|
|
3047
3038
|
active: e,
|
|
3048
3039
|
className: t = "",
|
|
3049
3040
|
disabled: o
|
|
@@ -3092,7 +3083,7 @@ const n5 = () => {
|
|
|
3092
3083
|
active: e,
|
|
3093
3084
|
disabled: o
|
|
3094
3085
|
}
|
|
3095
|
-
),
|
|
3086
|
+
), v6 = ({
|
|
3096
3087
|
active: e,
|
|
3097
3088
|
className: t = "",
|
|
3098
3089
|
disabled: o
|
|
@@ -3239,7 +3230,7 @@ const n5 = () => {
|
|
|
3239
3230
|
active: e,
|
|
3240
3231
|
disabled: o
|
|
3241
3232
|
}
|
|
3242
|
-
),
|
|
3233
|
+
), w6 = ({
|
|
3243
3234
|
active: e,
|
|
3244
3235
|
className: t = "",
|
|
3245
3236
|
disabled: o
|
|
@@ -3288,7 +3279,7 @@ const n5 = () => {
|
|
|
3288
3279
|
active: e,
|
|
3289
3280
|
disabled: o
|
|
3290
3281
|
}
|
|
3291
|
-
),
|
|
3282
|
+
), p6 = ({
|
|
3292
3283
|
active: e,
|
|
3293
3284
|
className: t = "",
|
|
3294
3285
|
disabled: o
|
|
@@ -3387,10 +3378,10 @@ const n5 = () => {
|
|
|
3387
3378
|
disabled: o
|
|
3388
3379
|
}
|
|
3389
3380
|
), M6 = {
|
|
3390
|
-
Alert:
|
|
3381
|
+
Alert: U8,
|
|
3391
3382
|
Camera: F8,
|
|
3392
3383
|
DownArrow: G8,
|
|
3393
|
-
Ban:
|
|
3384
|
+
Ban: W8,
|
|
3394
3385
|
Check: H8,
|
|
3395
3386
|
Controller: K8,
|
|
3396
3387
|
Elipses: q8,
|
|
@@ -3413,61 +3404,74 @@ const n5 = () => {
|
|
|
3413
3404
|
Shade: a6,
|
|
3414
3405
|
Sun: u6,
|
|
3415
3406
|
UpArrow: d6,
|
|
3416
|
-
VolDown:
|
|
3417
|
-
VolMute:
|
|
3407
|
+
VolDown: h6,
|
|
3408
|
+
VolMute: v6,
|
|
3418
3409
|
VolUp: g6,
|
|
3419
3410
|
Wireless: f6,
|
|
3420
|
-
X:
|
|
3421
|
-
Xbox:
|
|
3411
|
+
X: w6,
|
|
3412
|
+
Xbox: p6
|
|
3422
3413
|
};
|
|
3423
|
-
function
|
|
3414
|
+
function l5({
|
|
3424
3415
|
name: e,
|
|
3425
3416
|
iconsDictionary: t = M6,
|
|
3426
3417
|
...o
|
|
3427
3418
|
}) {
|
|
3428
3419
|
const c = t[e] ?? null;
|
|
3429
|
-
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ s.jsx(
|
|
3420
|
+
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ s.jsx(k8, { multiIcon: c, ...o });
|
|
3430
3421
|
}
|
|
3431
|
-
const m6 = "_grid_1cmpp_1", Z6 = "_header_1cmpp_11", j6 = "_content_1cmpp_17", C6 = "_footer_1cmpp_23", S6 = "_volume_1cmpp_29",
|
|
3422
|
+
const m6 = "_grid_1cmpp_1", Z6 = "_header_1cmpp_11", j6 = "_content_1cmpp_17", C6 = "_footer_1cmpp_23", S6 = "_volume_1cmpp_29", h1 = {
|
|
3432
3423
|
grid: m6,
|
|
3433
3424
|
header: Z6,
|
|
3434
3425
|
content: j6,
|
|
3435
3426
|
footer: C6,
|
|
3436
3427
|
volume: S6
|
|
3437
|
-
},
|
|
3438
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3439
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3440
|
-
r && /* @__PURE__ */ s.jsx("div", { className:
|
|
3441
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3428
|
+
}, i5 = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ s.jsxs("div", { className: h1.grid, children: [
|
|
3429
|
+
/* @__PURE__ */ s.jsx("div", { className: h1.header, children: e }),
|
|
3430
|
+
/* @__PURE__ */ s.jsx("div", { className: h1.content, children: o }),
|
|
3431
|
+
r && /* @__PURE__ */ s.jsx("div", { className: h1.volume, children: c }),
|
|
3432
|
+
/* @__PURE__ */ s.jsx("div", { className: h1.footer, children: t })
|
|
3442
3433
|
] }), b6 = "_grid_11w5q_1", I6 = "_header_11w5q_11", R6 = "_content_11w5q_17", Z1 = {
|
|
3443
3434
|
grid: b6,
|
|
3444
3435
|
header: I6,
|
|
3445
3436
|
content: R6
|
|
3446
|
-
},
|
|
3437
|
+
}, a5 = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${Z1.grid}`, children: [
|
|
3447
3438
|
/* @__PURE__ */ s.jsx("div", { className: Z1.header, children: t }),
|
|
3448
3439
|
c && /* @__PURE__ */ s.jsx("div", { className: Z1.leftNav, children: c }),
|
|
3449
3440
|
/* @__PURE__ */ s.jsx("div", { className: Z1.content, children: o })
|
|
3450
|
-
] }), y6 = "_grid_1uwfo_1", E6 = "_header_1uwfo_11",
|
|
3441
|
+
] }), y6 = "_grid_1uwfo_1", E6 = "_header_1uwfo_11", P6 = "_content_1uwfo_17", A1 = {
|
|
3451
3442
|
grid: y6,
|
|
3452
3443
|
header: E6,
|
|
3453
|
-
content:
|
|
3454
|
-
},
|
|
3444
|
+
content: P6
|
|
3445
|
+
}, u5 = ({ className: e, header: t, content: o }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${A1.grid}`, children: [
|
|
3455
3446
|
/* @__PURE__ */ s.jsx("div", { className: A1.header, children: t }),
|
|
3456
3447
|
/* @__PURE__ */ s.jsx("div", { className: A1.content, children: o })
|
|
3457
3448
|
] });
|
|
3458
|
-
class
|
|
3449
|
+
class d5 {
|
|
3459
3450
|
constructor() {
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3451
|
+
G(this, "currentShareText");
|
|
3452
|
+
G(this, "enabled");
|
|
3453
|
+
G(this, "isSharing");
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
function h5() {
|
|
3457
|
+
return console.log(location.pathname), location.pathname;
|
|
3458
|
+
}
|
|
3459
|
+
var T6 = /* @__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))(T6 || {});
|
|
3460
|
+
class v5 {
|
|
3461
|
+
constructor(t, o) {
|
|
3462
|
+
G(this, "path");
|
|
3463
|
+
G(this, "handler");
|
|
3464
|
+
this.path = t, this.handler = o;
|
|
3463
3465
|
}
|
|
3464
3466
|
}
|
|
3467
|
+
const g5 = "$off";
|
|
3465
3468
|
export {
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
U8 as
|
|
3469
|
+
me as Clock,
|
|
3470
|
+
T6 as DaysOfWeek,
|
|
3471
|
+
c5 as ErrorBox,
|
|
3472
|
+
k8 as IconButton,
|
|
3473
|
+
U8 as IconMultiAlert,
|
|
3474
|
+
W8 as IconMultiBan,
|
|
3471
3475
|
F8 as IconMultiCamera,
|
|
3472
3476
|
H8 as IconMultiCheck,
|
|
3473
3477
|
K8 as IconMultiController,
|
|
@@ -3491,56 +3495,60 @@ export {
|
|
|
3491
3495
|
i6 as IconMultiRoomPC,
|
|
3492
3496
|
a6 as IconMultiShade,
|
|
3493
3497
|
u6 as IconMultiSun,
|
|
3494
|
-
|
|
3498
|
+
r5 as IconMultiTemplate,
|
|
3495
3499
|
d6 as IconMultiUpArrow,
|
|
3496
|
-
|
|
3497
|
-
|
|
3500
|
+
h6 as IconMultiVolDown,
|
|
3501
|
+
v6 as IconMultiVolMute,
|
|
3498
3502
|
g6 as IconMultiVolUp,
|
|
3499
3503
|
f6 as IconMultiWireless,
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
+
w6 as IconMultiX,
|
|
3505
|
+
p6 as IconMultiXbox,
|
|
3506
|
+
i5 as MainLayout,
|
|
3507
|
+
v5 as MessageHandler,
|
|
3508
|
+
we as MobileControlProvider,
|
|
3504
3509
|
j as MultiStateIconContainer,
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3510
|
+
l5 as NamedIconButton,
|
|
3511
|
+
d5 as ShareState,
|
|
3512
|
+
a5 as TechLayout,
|
|
3513
|
+
u5 as TechPinLayout,
|
|
3514
|
+
I3 as WebsocketContext,
|
|
3515
|
+
w8 as appConfigActions,
|
|
3516
|
+
N as devicesActions,
|
|
3517
|
+
h5 as getBaseLocation,
|
|
3518
|
+
V1 as httpClient,
|
|
3512
3519
|
M6 as iconsDictionary,
|
|
3513
|
-
|
|
3514
|
-
|
|
3520
|
+
g5 as roomOffSourceKey,
|
|
3521
|
+
e1 as roomsActions,
|
|
3522
|
+
W as runtimeConfigActions,
|
|
3515
3523
|
Z3 as selectAllDevices,
|
|
3516
3524
|
x2 as selectApiPath,
|
|
3517
|
-
|
|
3525
|
+
p2 as selectAppConfig,
|
|
3518
3526
|
Y2 as selectClientId,
|
|
3519
3527
|
r8 as selectCurrentPopoverIdForGroup,
|
|
3520
3528
|
j2 as selectDeviceByKey,
|
|
3521
3529
|
i8 as selectError,
|
|
3522
3530
|
e8 as selectIsTouchpanel,
|
|
3523
3531
|
M2 as selectLogoPath,
|
|
3524
|
-
|
|
3532
|
+
U1 as selectModalVisibility,
|
|
3525
3533
|
m2 as selectPartnerMetadata,
|
|
3526
|
-
|
|
3527
|
-
|
|
3534
|
+
k2 as selectRoomAdvancedSharingActive,
|
|
3535
|
+
P2 as selectRoomAudioControlPointList,
|
|
3528
3536
|
b2 as selectRoomByKey,
|
|
3529
3537
|
$2 as selectRoomCodecContentDestinationKey,
|
|
3530
3538
|
C2 as selectRoomConfiguration,
|
|
3531
3539
|
_2 as selectRoomDestinationList,
|
|
3532
|
-
|
|
3540
|
+
T2 as selectRoomDestinations,
|
|
3533
3541
|
F2 as selectRoomDisplayStates,
|
|
3534
3542
|
L2 as selectRoomEnvironmentalDevices,
|
|
3535
3543
|
A2 as selectRoomInCall,
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3544
|
+
O2 as selectRoomIsCoolingDown,
|
|
3545
|
+
V2 as selectRoomIsOn,
|
|
3546
|
+
B2 as selectRoomIsWarmingUp,
|
|
3539
3547
|
q2 as selectRoomKey,
|
|
3540
3548
|
y2 as selectRoomLevelControls,
|
|
3541
3549
|
I2 as selectRoomName,
|
|
3542
|
-
|
|
3543
|
-
|
|
3550
|
+
D2 as selectRoomProgramAudioDestinationKey,
|
|
3551
|
+
U2 as selectRoomShareState,
|
|
3544
3552
|
E2 as selectRoomSourceList,
|
|
3545
3553
|
R2 as selectRoomVolume,
|
|
3546
3554
|
S2 as selectRooms,
|
|
@@ -3553,103 +3561,103 @@ export {
|
|
|
3553
3561
|
N2 as selectTouchpanelKey,
|
|
3554
3562
|
J2 as selectUserCode,
|
|
3555
3563
|
G2 as selectWsIsConnected,
|
|
3556
|
-
|
|
3564
|
+
W2 as selectZoomRoomControllerKey,
|
|
3557
3565
|
m as store,
|
|
3558
|
-
|
|
3566
|
+
q as uiActions,
|
|
3559
3567
|
g8 as uiReducer,
|
|
3560
3568
|
O6 as useApiPath,
|
|
3561
3569
|
Z2 as useAppConfig,
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3570
|
+
w2 as useAppDispatch,
|
|
3571
|
+
w as useAppSelector,
|
|
3572
|
+
xe as useAvrControl,
|
|
3573
|
+
v as useButtonHeldHeartbeat,
|
|
3574
|
+
Me as useCameraBase,
|
|
3567
3575
|
s8 as useClientId,
|
|
3568
3576
|
$8 as useDeviceIBasicVolumeWithFeedback,
|
|
3569
|
-
|
|
3570
|
-
|
|
3577
|
+
Ze as useDevicePresetsModel,
|
|
3578
|
+
je as useEndpoint,
|
|
3571
3579
|
d8 as useError,
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3580
|
+
Ne as useGetAllDeviceStateFromRoomConfiguration,
|
|
3581
|
+
U6 as useGetAllDevices,
|
|
3582
|
+
F6 as useGetAllRooms,
|
|
3575
3583
|
ve as useGetCurrentPopoverIdForGroup,
|
|
3576
|
-
|
|
3584
|
+
y as useGetDevice,
|
|
3577
3585
|
pe as useGetIBasicVolumeWithFeedback,
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3586
|
+
H6 as useGetRoom,
|
|
3587
|
+
ce as useGetRoomDisplayStates,
|
|
3588
|
+
re as useGetZoomRoomControllerKey,
|
|
3581
3589
|
R3 as useIBasicVolumeWithFeedback,
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3590
|
+
Ce as useIChannel,
|
|
3591
|
+
Se as useIColor,
|
|
3592
|
+
be as useICommunicationMonitor,
|
|
3593
|
+
Re as useIDPad,
|
|
3594
|
+
Ie as useIDeviceInfoMessenger,
|
|
3595
|
+
ye as useIDspPresets,
|
|
3596
|
+
Ee as useIDvr,
|
|
3597
|
+
Pe as useIEssentialsRoomCombiner,
|
|
3598
|
+
Te as useIHasCameras,
|
|
3591
3599
|
y3 as useIHasPowerControl,
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3600
|
+
k1 as useIHasSelectableItems,
|
|
3601
|
+
_e as useIHumiditySensor,
|
|
3602
|
+
Le as useILevelControls,
|
|
3603
|
+
De as useILightingScenes,
|
|
3604
|
+
$e as useIMatrixRouting,
|
|
3605
|
+
Ae as useIMcCiscoCodecUserInterfaceAppControl,
|
|
3606
|
+
Be as useINumeric,
|
|
3599
3607
|
Oe as useIProjectorScreenLiftControl,
|
|
3600
|
-
|
|
3608
|
+
Ve as useIRoomEventSchedule,
|
|
3601
3609
|
ke as useIRunDefaultPresentRoute,
|
|
3602
|
-
|
|
3610
|
+
Ue as useIRunDirectRouteAction,
|
|
3603
3611
|
We as useIRunRouteAction,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
+
Fe as useISetTopBoxControls,
|
|
3613
|
+
He as useIShadesOpenCloseStop,
|
|
3614
|
+
Ke as useIShutdownPromptTimer,
|
|
3615
|
+
Ge as useISwitchedOutput,
|
|
3616
|
+
qe as useITechPassword,
|
|
3617
|
+
Ye as useITemperatureSensor,
|
|
3618
|
+
ze as useITheme,
|
|
3619
|
+
Je as useITransport,
|
|
3612
3620
|
C8 as useInitialize,
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3621
|
+
ae as useIsTouchpanel,
|
|
3622
|
+
V6 as useLogoPath,
|
|
3623
|
+
Xe as useMobileControlTouchpanelController,
|
|
3624
|
+
e5 as useOverflow,
|
|
3617
3625
|
k6 as usePartnerMetadata,
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3626
|
+
D8 as usePressHoldRelease,
|
|
3627
|
+
oe as useRoomAdvancedSharingActive,
|
|
3628
|
+
q6 as useRoomAudioControlPointList,
|
|
3629
|
+
Q6 as useRoomCodecContentDestinationKey,
|
|
3622
3630
|
W6 as useRoomConfiguration,
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
+
z6 as useRoomDestinationList,
|
|
3632
|
+
Y6 as useRoomDestinations,
|
|
3633
|
+
J6 as useRoomEnvironmentalDevices,
|
|
3634
|
+
t5 as useRoomIBasicVolumeWithFeedback,
|
|
3635
|
+
N6 as useRoomInCall,
|
|
3636
|
+
te as useRoomIsCoolingDown,
|
|
3637
|
+
se as useRoomIsOn,
|
|
3638
|
+
ee as useRoomIsWarmingUp,
|
|
3631
3639
|
t8 as useRoomKey,
|
|
3632
3640
|
K2 as useRoomLevelControls,
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3641
|
+
K6 as useRoomName,
|
|
3642
|
+
X6 as useRoomProgramAudioDestinationKey,
|
|
3643
|
+
ne as useRoomShareState,
|
|
3644
|
+
G6 as useRoomSourceList,
|
|
3637
3645
|
C1 as useRoomState,
|
|
3638
3646
|
H2 as useRoomVolume,
|
|
3639
|
-
|
|
3640
|
-
|
|
3647
|
+
le as useRuntimeInfo,
|
|
3648
|
+
s5 as useScroll,
|
|
3641
3649
|
c8 as useServerIsRunningOnProcessorHardware,
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3650
|
+
de as useShowIncomingCallModal,
|
|
3651
|
+
he as useShowModal,
|
|
3652
|
+
ge as useShowPopoverById,
|
|
3653
|
+
h8 as useShowReconnect,
|
|
3654
|
+
ue as useShowShutdownModal,
|
|
3655
|
+
o5 as useSystemControl,
|
|
3648
3656
|
o8 as useSystemUuid,
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3657
|
+
fe as useTheme,
|
|
3658
|
+
n5 as useTimeAndDate,
|
|
3659
|
+
ie as useTouchpanelKey,
|
|
3660
|
+
Qe as useTwoWayDisplayBase,
|
|
3653
3661
|
n8 as useUserCode,
|
|
3654
3662
|
b as useWebsocketContext,
|
|
3655
3663
|
j3 as useWsIsConnected
|