@pepperdash/mobile-control-react-app-core 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,10 +32,10 @@ const $1 = {
|
|
|
32
32
|
const t = r.payload.type, l = t.slice(t.lastIndexOf("/") + 1);
|
|
33
33
|
if (!l)
|
|
34
34
|
return;
|
|
35
|
-
const
|
|
35
|
+
const w = r.payload.content, j = s[l] ?? {}, S = W3.merge(j, w);
|
|
36
36
|
return {
|
|
37
37
|
...s,
|
|
38
|
-
[l]:
|
|
38
|
+
[l]: S
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -47,10 +47,10 @@ const $1 = {
|
|
|
47
47
|
const l = r.payload.type.match("/room/(.*)/status");
|
|
48
48
|
if (!l)
|
|
49
49
|
return;
|
|
50
|
-
const
|
|
50
|
+
const w = l[1], j = r.payload.content, S = s[w] ?? {}, C = W3.merge(S, j);
|
|
51
51
|
return {
|
|
52
52
|
...s,
|
|
53
|
-
[
|
|
53
|
+
[w]: C
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -139,68 +139,68 @@ const $1 = {
|
|
|
139
139
|
F3({
|
|
140
140
|
reducer: J3
|
|
141
141
|
});
|
|
142
|
-
const
|
|
142
|
+
const f = T1, N1 = () => f((s) => s.appConfig.config), i8 = () => f((s) => s.appConfig.config.apiPath), a8 = () => f((s) => Object.values(s.devices)), h8 = (s) => f((r) => r.devices[s]), v8 = (s) => f(
|
|
143
143
|
(r) => {
|
|
144
144
|
var t;
|
|
145
145
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.configuration : void 0;
|
|
146
146
|
}
|
|
147
|
-
), u8 = (s) =>
|
|
147
|
+
), u8 = (s) => f(
|
|
148
148
|
(r) => r.rooms[s] ? r.rooms[s] : void 0
|
|
149
|
-
), d8 = (s) =>
|
|
149
|
+
), d8 = (s) => f(
|
|
150
150
|
(r) => {
|
|
151
151
|
var t;
|
|
152
152
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.name : void 0;
|
|
153
153
|
}
|
|
154
|
-
), g8 = (s) =>
|
|
154
|
+
), g8 = (s) => f(
|
|
155
155
|
(r) => {
|
|
156
156
|
var t, l;
|
|
157
157
|
return r.rooms[s] ? (l = (t = r.rooms[s]) == null ? void 0 : t.volumes) == null ? void 0 : l.master : void 0;
|
|
158
158
|
}
|
|
159
|
-
), w8 = (s) =>
|
|
159
|
+
), w8 = (s) => f(
|
|
160
160
|
(r) => {
|
|
161
161
|
var t, l;
|
|
162
162
|
return r.rooms[s] ? (l = (t = r.rooms[s]) == null ? void 0 : t.configuration) == null ? void 0 : l.sourceList : void 0;
|
|
163
163
|
}
|
|
164
|
-
), x8 = (s) =>
|
|
164
|
+
), x8 = (s) => f(
|
|
165
165
|
(r) => {
|
|
166
166
|
var t, l;
|
|
167
167
|
return r.rooms[s] ? (l = (t = r.rooms[s]) == null ? void 0 : t.configuration) == null ? void 0 : l.displayKeys : void 0;
|
|
168
168
|
}
|
|
169
|
-
), f8 = (s) =>
|
|
169
|
+
), f8 = (s) => f(
|
|
170
170
|
(r) => {
|
|
171
171
|
var t;
|
|
172
172
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.isInCall : void 0;
|
|
173
173
|
}
|
|
174
|
-
), M8 = (s) =>
|
|
174
|
+
), M8 = (s) => f(
|
|
175
175
|
(r) => {
|
|
176
176
|
var t;
|
|
177
177
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.isWarmingUp : void 0;
|
|
178
178
|
}
|
|
179
|
-
), p8 = (s) =>
|
|
179
|
+
), p8 = (s) => f(
|
|
180
180
|
(r) => {
|
|
181
181
|
var t;
|
|
182
182
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.isCoolingDown : void 0;
|
|
183
183
|
}
|
|
184
|
-
), Z8 = (s) =>
|
|
184
|
+
), Z8 = (s) => f(
|
|
185
185
|
(r) => {
|
|
186
186
|
var t;
|
|
187
187
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.isOn : void 0;
|
|
188
188
|
}
|
|
189
|
-
), m8 = (s) =>
|
|
189
|
+
), m8 = (s) => f(
|
|
190
190
|
(r) => {
|
|
191
191
|
var t;
|
|
192
192
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.advancedSharingActive : void 0;
|
|
193
193
|
}
|
|
194
|
-
), j8 = (s) =>
|
|
194
|
+
), j8 = (s) => f(
|
|
195
195
|
(r) => {
|
|
196
196
|
var t;
|
|
197
197
|
return r.rooms[s] ? (t = r.rooms[s]) == null ? void 0 : t.share : void 0;
|
|
198
198
|
}
|
|
199
|
-
), e2 = () =>
|
|
199
|
+
), e2 = () => f((s) => s.runtimeConfig.websocket.isConnected), r2 = () => f((s) => s.runtimeConfig.roomData.roomKey), c2 = () => f((s) => s.runtimeConfig.roomData.clientId), C8 = () => f((s) => s.ui.modalVisibility.showShutdownModal), S8 = () => f((s) => s.ui.modalVisibility.showIncomingCallModal), b8 = (s) => f((r) => r.ui.modalVisibility[s]), y8 = (s) => f((r) => {
|
|
200
200
|
const t = r.ui.popoverVisibility[s];
|
|
201
201
|
if (t)
|
|
202
202
|
return Object.keys(t).find((l) => t[l]);
|
|
203
|
-
}), I8 = (s, r) =>
|
|
203
|
+
}), I8 = (s, r) => f((t) => {
|
|
204
204
|
var l;
|
|
205
205
|
return (l = t.ui.popoverVisibility[s]) == null ? void 0 : l[r];
|
|
206
206
|
}), P = F3({
|
|
@@ -210,12 +210,14 @@ function t2() {
|
|
|
210
210
|
const s = s2();
|
|
211
211
|
return async () => {
|
|
212
212
|
try {
|
|
213
|
-
const r =
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
|
|
213
|
+
const r = location.pathname.split("/").filter((w) => w.length > 0);
|
|
214
|
+
r.length >= 5 ? r.length = 5 : r.length = 2;
|
|
215
|
+
const t = `/${r.join("/")}`, l = await v3.get("/_local-config/_config.local.json", { baseURL: t });
|
|
216
|
+
if (console.log("configRes", l), l.status == 200 && l.data) {
|
|
217
|
+
const w = l.data.apiPath;
|
|
218
|
+
s(F1.setAppConfig(l.data));
|
|
219
|
+
const j = await v3.get(`${w}/version`);
|
|
220
|
+
j.status == 200 && j.data && (console.log("versionRes", j.data), s(F.setRuntimeConfig(j.data)));
|
|
219
221
|
}
|
|
220
222
|
} catch (r) {
|
|
221
223
|
console.log("Error getting config", r);
|
|
@@ -234,48 +236,48 @@ var u3 = { exports: {} }, q = {};
|
|
|
234
236
|
* LICENSE file in the root directory of this source tree.
|
|
235
237
|
*/
|
|
236
238
|
var V3;
|
|
237
|
-
function
|
|
239
|
+
function n2() {
|
|
238
240
|
return V3 || (V3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
239
|
-
var s = U3, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"),
|
|
241
|
+
var s = U3, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), C = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), M = Symbol.iterator, L = "@@iterator";
|
|
240
242
|
function D(c) {
|
|
241
243
|
if (c === null || typeof c != "object")
|
|
242
244
|
return null;
|
|
243
|
-
var
|
|
244
|
-
return typeof
|
|
245
|
+
var n = M && c[M] || c[L];
|
|
246
|
+
return typeof n == "function" ? n : null;
|
|
245
247
|
}
|
|
246
|
-
var
|
|
247
|
-
function
|
|
248
|
+
var x = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
249
|
+
function y(c) {
|
|
248
250
|
{
|
|
249
|
-
for (var
|
|
250
|
-
|
|
251
|
-
X3("error", c,
|
|
251
|
+
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
252
|
+
o[i - 1] = arguments[i];
|
|
253
|
+
X3("error", c, o);
|
|
252
254
|
}
|
|
253
255
|
}
|
|
254
|
-
function X3(c,
|
|
256
|
+
function X3(c, n, o) {
|
|
255
257
|
{
|
|
256
|
-
var i =
|
|
257
|
-
v !== "" && (
|
|
258
|
-
var d =
|
|
258
|
+
var i = x.ReactDebugCurrentFrame, v = i.getStackAddendum();
|
|
259
|
+
v !== "" && (n += "%s", o = o.concat([v]));
|
|
260
|
+
var d = o.map(function(h) {
|
|
259
261
|
return String(h);
|
|
260
262
|
});
|
|
261
|
-
d.unshift("Warning: " +
|
|
263
|
+
d.unshift("Warning: " + n), Function.prototype.apply.call(console[c], console, d);
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
var Q3 = !1, N3 = !1, e1 = !1, r1 = !1, c1 = !1, d3;
|
|
265
267
|
d3 = Symbol.for("react.module.reference");
|
|
266
268
|
function s1(c) {
|
|
267
|
-
return !!(typeof c == "string" || typeof c == "function" || c === l || c ===
|
|
269
|
+
return !!(typeof c == "string" || typeof c == "function" || c === l || c === j || c1 || c === w || c === R || c === Z || r1 || c === _ || Q3 || N3 || e1 || typeof c == "object" && c !== null && (c.$$typeof === E || c.$$typeof === b || c.$$typeof === S || c.$$typeof === C || c.$$typeof === g || // This needs to include all possible module reference object
|
|
268
270
|
// types supported by any Flight configuration anywhere since
|
|
269
271
|
// we don't know which Flight build this will end up being used
|
|
270
272
|
// with.
|
|
271
273
|
c.$$typeof === d3 || c.getModuleId !== void 0));
|
|
272
274
|
}
|
|
273
|
-
function t1(c,
|
|
275
|
+
function t1(c, n, o) {
|
|
274
276
|
var i = c.displayName;
|
|
275
277
|
if (i)
|
|
276
278
|
return i;
|
|
277
|
-
var v =
|
|
278
|
-
return v !== "" ?
|
|
279
|
+
var v = n.displayName || n.name || "";
|
|
280
|
+
return v !== "" ? o + "(" + v + ")" : o;
|
|
279
281
|
}
|
|
280
282
|
function g3(c) {
|
|
281
283
|
return c.displayName || "Context";
|
|
@@ -283,7 +285,7 @@ function o2() {
|
|
|
283
285
|
function A(c) {
|
|
284
286
|
if (c == null)
|
|
285
287
|
return null;
|
|
286
|
-
if (typeof c.tag == "number" &&
|
|
288
|
+
if (typeof c.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
287
289
|
return c.displayName || c.name || null;
|
|
288
290
|
if (typeof c == "string")
|
|
289
291
|
return c;
|
|
@@ -292,26 +294,26 @@ function o2() {
|
|
|
292
294
|
return "Fragment";
|
|
293
295
|
case t:
|
|
294
296
|
return "Portal";
|
|
295
|
-
case
|
|
297
|
+
case j:
|
|
296
298
|
return "Profiler";
|
|
297
|
-
case
|
|
299
|
+
case w:
|
|
298
300
|
return "StrictMode";
|
|
299
|
-
case
|
|
301
|
+
case R:
|
|
300
302
|
return "Suspense";
|
|
301
303
|
case Z:
|
|
302
304
|
return "SuspenseList";
|
|
303
305
|
}
|
|
304
306
|
if (typeof c == "object")
|
|
305
307
|
switch (c.$$typeof) {
|
|
306
|
-
case j:
|
|
307
|
-
var o = c;
|
|
308
|
-
return g3(o) + ".Consumer";
|
|
309
308
|
case C:
|
|
310
309
|
var n = c;
|
|
311
|
-
return g3(n
|
|
310
|
+
return g3(n) + ".Consumer";
|
|
311
|
+
case S:
|
|
312
|
+
var o = c;
|
|
313
|
+
return g3(o._context) + ".Provider";
|
|
312
314
|
case g:
|
|
313
315
|
return t1(c, c.render, "ForwardRef");
|
|
314
|
-
case
|
|
316
|
+
case b:
|
|
315
317
|
var i = c.displayName || null;
|
|
316
318
|
return i !== null ? i : A(c.type) || "Memo";
|
|
317
319
|
case E: {
|
|
@@ -329,7 +331,7 @@ function o2() {
|
|
|
329
331
|
function j3() {
|
|
330
332
|
}
|
|
331
333
|
j3.__reactDisabledLog = !0;
|
|
332
|
-
function
|
|
334
|
+
function n1() {
|
|
333
335
|
{
|
|
334
336
|
if (W === 0) {
|
|
335
337
|
w3 = console.log, x3 = console.info, f3 = console.warn, M3 = console.error, p3 = console.group, Z3 = console.groupCollapsed, m3 = console.groupEnd;
|
|
@@ -352,7 +354,7 @@ function o2() {
|
|
|
352
354
|
W++;
|
|
353
355
|
}
|
|
354
356
|
}
|
|
355
|
-
function
|
|
357
|
+
function o1() {
|
|
356
358
|
{
|
|
357
359
|
if (W--, W === 0) {
|
|
358
360
|
var c = {
|
|
@@ -384,11 +386,11 @@ function o2() {
|
|
|
384
386
|
})
|
|
385
387
|
});
|
|
386
388
|
}
|
|
387
|
-
W < 0 &&
|
|
389
|
+
W < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
388
390
|
}
|
|
389
391
|
}
|
|
390
|
-
var c3 =
|
|
391
|
-
function J(c,
|
|
392
|
+
var c3 = x.ReactCurrentDispatcher, s3;
|
|
393
|
+
function J(c, n, o) {
|
|
392
394
|
{
|
|
393
395
|
if (s3 === void 0)
|
|
394
396
|
try {
|
|
@@ -406,22 +408,22 @@ function o2() {
|
|
|
406
408
|
var l1 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
407
409
|
z = new l1();
|
|
408
410
|
}
|
|
409
|
-
function C3(c,
|
|
411
|
+
function C3(c, n) {
|
|
410
412
|
if (!c || t3)
|
|
411
413
|
return "";
|
|
412
414
|
{
|
|
413
|
-
var
|
|
414
|
-
if (
|
|
415
|
-
return
|
|
415
|
+
var o = z.get(c);
|
|
416
|
+
if (o !== void 0)
|
|
417
|
+
return o;
|
|
416
418
|
}
|
|
417
419
|
var i;
|
|
418
420
|
t3 = !0;
|
|
419
421
|
var v = Error.prepareStackTrace;
|
|
420
422
|
Error.prepareStackTrace = void 0;
|
|
421
423
|
var d;
|
|
422
|
-
d = c3.current, c3.current = null,
|
|
424
|
+
d = c3.current, c3.current = null, n1();
|
|
423
425
|
try {
|
|
424
|
-
if (
|
|
426
|
+
if (n) {
|
|
425
427
|
var h = function() {
|
|
426
428
|
throw Error();
|
|
427
429
|
};
|
|
@@ -455,14 +457,14 @@ function o2() {
|
|
|
455
457
|
} catch (T) {
|
|
456
458
|
if (T && i && typeof T.stack == "string") {
|
|
457
459
|
for (var a = T.stack.split(`
|
|
458
|
-
`),
|
|
459
|
-
`), p = a.length - 1, m =
|
|
460
|
+
`), I = i.stack.split(`
|
|
461
|
+
`), p = a.length - 1, m = I.length - 1; p >= 1 && m >= 0 && a[p] !== I[m]; )
|
|
460
462
|
m--;
|
|
461
463
|
for (; p >= 1 && m >= 0; p--, m--)
|
|
462
|
-
if (a[p] !==
|
|
464
|
+
if (a[p] !== I[m]) {
|
|
463
465
|
if (p !== 1 || m !== 1)
|
|
464
466
|
do
|
|
465
|
-
if (p--, m--, m < 0 || a[p] !==
|
|
467
|
+
if (p--, m--, m < 0 || a[p] !== I[m]) {
|
|
466
468
|
var B = `
|
|
467
469
|
` + a[p].replace(" at new ", " at ");
|
|
468
470
|
return c.displayName && B.includes("<anonymous>") && (B = B.replace("<anonymous>", c.displayName)), typeof c == "function" && z.set(c, B), B;
|
|
@@ -472,19 +474,19 @@ function o2() {
|
|
|
472
474
|
}
|
|
473
475
|
}
|
|
474
476
|
} finally {
|
|
475
|
-
t3 = !1, c3.current = d,
|
|
477
|
+
t3 = !1, c3.current = d, o1(), Error.prepareStackTrace = v;
|
|
476
478
|
}
|
|
477
479
|
var $ = c ? c.displayName || c.name : "", D3 = $ ? J($) : "";
|
|
478
480
|
return typeof c == "function" && z.set(c, D3), D3;
|
|
479
481
|
}
|
|
480
|
-
function i1(c,
|
|
482
|
+
function i1(c, n, o) {
|
|
481
483
|
return C3(c, !1);
|
|
482
484
|
}
|
|
483
485
|
function a1(c) {
|
|
484
|
-
var
|
|
485
|
-
return !!(
|
|
486
|
+
var n = c.prototype;
|
|
487
|
+
return !!(n && n.isReactComponent);
|
|
486
488
|
}
|
|
487
|
-
function X(c,
|
|
489
|
+
function X(c, n, o) {
|
|
488
490
|
if (c == null)
|
|
489
491
|
return "";
|
|
490
492
|
if (typeof c == "function")
|
|
@@ -492,7 +494,7 @@ function o2() {
|
|
|
492
494
|
if (typeof c == "string")
|
|
493
495
|
return J(c);
|
|
494
496
|
switch (c) {
|
|
495
|
-
case
|
|
497
|
+
case R:
|
|
496
498
|
return J("Suspense");
|
|
497
499
|
case Z:
|
|
498
500
|
return J("SuspenseList");
|
|
@@ -501,27 +503,27 @@ function o2() {
|
|
|
501
503
|
switch (c.$$typeof) {
|
|
502
504
|
case g:
|
|
503
505
|
return i1(c.render);
|
|
504
|
-
case
|
|
505
|
-
return X(c.type,
|
|
506
|
+
case b:
|
|
507
|
+
return X(c.type, n, o);
|
|
506
508
|
case E: {
|
|
507
509
|
var i = c, v = i._payload, d = i._init;
|
|
508
510
|
try {
|
|
509
|
-
return X(d(v),
|
|
511
|
+
return X(d(v), n, o);
|
|
510
512
|
} catch {
|
|
511
513
|
}
|
|
512
514
|
}
|
|
513
515
|
}
|
|
514
516
|
return "";
|
|
515
517
|
}
|
|
516
|
-
var Q = Object.prototype.hasOwnProperty, S3 = {}, b3 =
|
|
518
|
+
var Q = Object.prototype.hasOwnProperty, S3 = {}, b3 = x.ReactDebugCurrentFrame;
|
|
517
519
|
function N(c) {
|
|
518
520
|
if (c) {
|
|
519
|
-
var
|
|
520
|
-
b3.setExtraStackFrame(
|
|
521
|
+
var n = c._owner, o = X(c.type, c._source, n ? n.type : null);
|
|
522
|
+
b3.setExtraStackFrame(o);
|
|
521
523
|
} else
|
|
522
524
|
b3.setExtraStackFrame(null);
|
|
523
525
|
}
|
|
524
|
-
function h1(c,
|
|
526
|
+
function h1(c, n, o, i, v) {
|
|
525
527
|
{
|
|
526
528
|
var d = Function.call.bind(Q);
|
|
527
529
|
for (var h in c)
|
|
@@ -529,25 +531,25 @@ function o2() {
|
|
|
529
531
|
var a = void 0;
|
|
530
532
|
try {
|
|
531
533
|
if (typeof c[h] != "function") {
|
|
532
|
-
var
|
|
533
|
-
throw
|
|
534
|
+
var I = Error((i || "React class") + ": " + o + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
535
|
+
throw I.name = "Invariant Violation", I;
|
|
534
536
|
}
|
|
535
|
-
a = c[h](
|
|
537
|
+
a = c[h](n, h, i, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
536
538
|
} catch (p) {
|
|
537
539
|
a = p;
|
|
538
540
|
}
|
|
539
|
-
a && !(a instanceof Error) && (N(v),
|
|
541
|
+
a && !(a instanceof Error) && (N(v), y("%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).", i || "React class", o, h, typeof a), N(null)), a instanceof Error && !(a.message in S3) && (S3[a.message] = !0, N(v), y("Failed %s type: %s", o, a.message), N(null));
|
|
540
542
|
}
|
|
541
543
|
}
|
|
542
544
|
}
|
|
543
545
|
var v1 = Array.isArray;
|
|
544
|
-
function
|
|
546
|
+
function n3(c) {
|
|
545
547
|
return v1(c);
|
|
546
548
|
}
|
|
547
549
|
function u1(c) {
|
|
548
550
|
{
|
|
549
|
-
var
|
|
550
|
-
return
|
|
551
|
+
var n = typeof Symbol == "function" && Symbol.toStringTag, o = n && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
552
|
+
return o;
|
|
551
553
|
}
|
|
552
554
|
}
|
|
553
555
|
function d1(c) {
|
|
@@ -562,67 +564,67 @@ function o2() {
|
|
|
562
564
|
}
|
|
563
565
|
function I3(c) {
|
|
564
566
|
if (d1(c))
|
|
565
|
-
return
|
|
567
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", u1(c)), y3(c);
|
|
566
568
|
}
|
|
567
|
-
var U =
|
|
569
|
+
var U = x.ReactCurrentOwner, g1 = {
|
|
568
570
|
key: !0,
|
|
569
571
|
ref: !0,
|
|
570
572
|
__self: !0,
|
|
571
573
|
__source: !0
|
|
572
|
-
}, R3, E3,
|
|
573
|
-
|
|
574
|
+
}, R3, E3, o3;
|
|
575
|
+
o3 = {};
|
|
574
576
|
function w1(c) {
|
|
575
577
|
if (Q.call(c, "ref")) {
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
+
var n = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
579
|
+
if (n && n.isReactWarning)
|
|
578
580
|
return !1;
|
|
579
581
|
}
|
|
580
582
|
return c.ref !== void 0;
|
|
581
583
|
}
|
|
582
584
|
function x1(c) {
|
|
583
585
|
if (Q.call(c, "key")) {
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
586
|
+
var n = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
587
|
+
if (n && n.isReactWarning)
|
|
586
588
|
return !1;
|
|
587
589
|
}
|
|
588
590
|
return c.key !== void 0;
|
|
589
591
|
}
|
|
590
|
-
function f1(c,
|
|
591
|
-
if (typeof c.ref == "string" && U.current &&
|
|
592
|
-
var
|
|
593
|
-
|
|
592
|
+
function f1(c, n) {
|
|
593
|
+
if (typeof c.ref == "string" && U.current && n && U.current.stateNode !== n) {
|
|
594
|
+
var o = A(U.current.type);
|
|
595
|
+
o3[o] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(U.current.type), c.ref), o3[o] = !0);
|
|
594
596
|
}
|
|
595
597
|
}
|
|
596
|
-
function M1(c,
|
|
598
|
+
function M1(c, n) {
|
|
597
599
|
{
|
|
598
|
-
var
|
|
599
|
-
R3 || (R3 = !0,
|
|
600
|
+
var o = function() {
|
|
601
|
+
R3 || (R3 = !0, y("%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)", n));
|
|
600
602
|
};
|
|
601
|
-
|
|
602
|
-
get:
|
|
603
|
+
o.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
604
|
+
get: o,
|
|
603
605
|
configurable: !0
|
|
604
606
|
});
|
|
605
607
|
}
|
|
606
608
|
}
|
|
607
|
-
function p1(c,
|
|
609
|
+
function p1(c, n) {
|
|
608
610
|
{
|
|
609
|
-
var
|
|
610
|
-
E3 || (E3 = !0,
|
|
611
|
+
var o = function() {
|
|
612
|
+
E3 || (E3 = !0, y("%s: `ref` 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)", n));
|
|
611
613
|
};
|
|
612
|
-
|
|
613
|
-
get:
|
|
614
|
+
o.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
615
|
+
get: o,
|
|
614
616
|
configurable: !0
|
|
615
617
|
});
|
|
616
618
|
}
|
|
617
619
|
}
|
|
618
|
-
var Z1 = function(c,
|
|
620
|
+
var Z1 = function(c, n, o, i, v, d, h) {
|
|
619
621
|
var a = {
|
|
620
622
|
// This tag allows us to uniquely identify this as a React Element
|
|
621
623
|
$$typeof: r,
|
|
622
624
|
// Built-in properties that belong on the element
|
|
623
625
|
type: c,
|
|
624
|
-
key:
|
|
625
|
-
ref:
|
|
626
|
+
key: n,
|
|
627
|
+
ref: o,
|
|
626
628
|
props: h,
|
|
627
629
|
// Record the component responsible for creating this element.
|
|
628
630
|
_owner: d
|
|
@@ -644,29 +646,29 @@ function o2() {
|
|
|
644
646
|
value: v
|
|
645
647
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
646
648
|
};
|
|
647
|
-
function m1(c,
|
|
649
|
+
function m1(c, n, o, i, v) {
|
|
648
650
|
{
|
|
649
|
-
var d, h = {}, a = null,
|
|
650
|
-
|
|
651
|
-
for (d in
|
|
652
|
-
Q.call(
|
|
651
|
+
var d, h = {}, a = null, I = null;
|
|
652
|
+
o !== void 0 && (I3(o), a = "" + o), x1(n) && (I3(n.key), a = "" + n.key), w1(n) && (I = n.ref, f1(n, v));
|
|
653
|
+
for (d in n)
|
|
654
|
+
Q.call(n, d) && !g1.hasOwnProperty(d) && (h[d] = n[d]);
|
|
653
655
|
if (c && c.defaultProps) {
|
|
654
656
|
var p = c.defaultProps;
|
|
655
657
|
for (d in p)
|
|
656
658
|
h[d] === void 0 && (h[d] = p[d]);
|
|
657
659
|
}
|
|
658
|
-
if (a ||
|
|
660
|
+
if (a || I) {
|
|
659
661
|
var m = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
660
|
-
a && M1(h, m),
|
|
662
|
+
a && M1(h, m), I && p1(h, m);
|
|
661
663
|
}
|
|
662
|
-
return Z1(c, a,
|
|
664
|
+
return Z1(c, a, I, v, i, U.current, h);
|
|
663
665
|
}
|
|
664
666
|
}
|
|
665
|
-
var l3 =
|
|
667
|
+
var l3 = x.ReactCurrentOwner, _3 = x.ReactDebugCurrentFrame;
|
|
666
668
|
function k(c) {
|
|
667
669
|
if (c) {
|
|
668
|
-
var
|
|
669
|
-
_3.setExtraStackFrame(
|
|
670
|
+
var n = c._owner, o = X(c.type, c._source, n ? n.type : null);
|
|
671
|
+
_3.setExtraStackFrame(o);
|
|
670
672
|
} else
|
|
671
673
|
_3.setExtraStackFrame(null);
|
|
672
674
|
}
|
|
@@ -690,10 +692,10 @@ Check the render method of \`` + c + "`.";
|
|
|
690
692
|
function j1(c) {
|
|
691
693
|
{
|
|
692
694
|
if (c !== void 0) {
|
|
693
|
-
var
|
|
695
|
+
var n = c.fileName.replace(/^.*[\\\/]/, ""), o = c.lineNumber;
|
|
694
696
|
return `
|
|
695
697
|
|
|
696
|
-
Check your code at ` +
|
|
698
|
+
Check your code at ` + n + ":" + o + ".";
|
|
697
699
|
}
|
|
698
700
|
return "";
|
|
699
701
|
}
|
|
@@ -701,37 +703,37 @@ Check your code at ` + o + ":" + n + ".";
|
|
|
701
703
|
var L3 = {};
|
|
702
704
|
function C1(c) {
|
|
703
705
|
{
|
|
704
|
-
var
|
|
705
|
-
if (!
|
|
706
|
-
var
|
|
707
|
-
|
|
706
|
+
var n = B3();
|
|
707
|
+
if (!n) {
|
|
708
|
+
var o = typeof c == "string" ? c : c.displayName || c.name;
|
|
709
|
+
o && (n = `
|
|
708
710
|
|
|
709
|
-
Check the top-level render call using <` +
|
|
711
|
+
Check the top-level render call using <` + o + ">.");
|
|
710
712
|
}
|
|
711
|
-
return
|
|
713
|
+
return n;
|
|
712
714
|
}
|
|
713
715
|
}
|
|
714
|
-
function A3(c,
|
|
716
|
+
function A3(c, n) {
|
|
715
717
|
{
|
|
716
718
|
if (!c._store || c._store.validated || c.key != null)
|
|
717
719
|
return;
|
|
718
720
|
c._store.validated = !0;
|
|
719
|
-
var
|
|
720
|
-
if (L3[
|
|
721
|
+
var o = C1(n);
|
|
722
|
+
if (L3[o])
|
|
721
723
|
return;
|
|
722
|
-
L3[
|
|
724
|
+
L3[o] = !0;
|
|
723
725
|
var i = "";
|
|
724
|
-
c && c._owner && c._owner !== l3.current && (i = " It was passed a child from " + A(c._owner.type) + "."), k(c),
|
|
726
|
+
c && c._owner && c._owner !== l3.current && (i = " It was passed a child from " + A(c._owner.type) + "."), k(c), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, i), k(null);
|
|
725
727
|
}
|
|
726
728
|
}
|
|
727
|
-
function T3(c,
|
|
729
|
+
function T3(c, n) {
|
|
728
730
|
{
|
|
729
731
|
if (typeof c != "object")
|
|
730
732
|
return;
|
|
731
|
-
if (
|
|
732
|
-
for (var
|
|
733
|
-
var i = c[
|
|
734
|
-
a3(i) && A3(i,
|
|
733
|
+
if (n3(c))
|
|
734
|
+
for (var o = 0; o < c.length; o++) {
|
|
735
|
+
var i = c[o];
|
|
736
|
+
a3(i) && A3(i, n);
|
|
735
737
|
}
|
|
736
738
|
else if (a3(c))
|
|
737
739
|
c._store && (c._store.validated = !0);
|
|
@@ -739,82 +741,82 @@ Check the top-level render call using <` + n + ">.");
|
|
|
739
741
|
var v = D(c);
|
|
740
742
|
if (typeof v == "function" && v !== c.entries)
|
|
741
743
|
for (var d = v.call(c), h; !(h = d.next()).done; )
|
|
742
|
-
a3(h.value) && A3(h.value,
|
|
744
|
+
a3(h.value) && A3(h.value, n);
|
|
743
745
|
}
|
|
744
746
|
}
|
|
745
747
|
}
|
|
746
748
|
function S1(c) {
|
|
747
749
|
{
|
|
748
|
-
var
|
|
749
|
-
if (
|
|
750
|
+
var n = c.type;
|
|
751
|
+
if (n == null || typeof n == "string")
|
|
750
752
|
return;
|
|
751
|
-
var
|
|
752
|
-
if (typeof
|
|
753
|
-
|
|
754
|
-
else if (typeof
|
|
753
|
+
var o;
|
|
754
|
+
if (typeof n == "function")
|
|
755
|
+
o = n.propTypes;
|
|
756
|
+
else if (typeof n == "object" && (n.$$typeof === g || // Note: Memo only checks outer props here.
|
|
755
757
|
// Inner props are checked in the reconciler.
|
|
756
|
-
|
|
757
|
-
|
|
758
|
+
n.$$typeof === b))
|
|
759
|
+
o = n.propTypes;
|
|
758
760
|
else
|
|
759
761
|
return;
|
|
760
|
-
if (
|
|
761
|
-
var i = A(
|
|
762
|
-
h1(
|
|
763
|
-
} else if (
|
|
762
|
+
if (o) {
|
|
763
|
+
var i = A(n);
|
|
764
|
+
h1(o, c.props, "prop", i, c);
|
|
765
|
+
} else if (n.PropTypes !== void 0 && !i3) {
|
|
764
766
|
i3 = !0;
|
|
765
|
-
var v = A(
|
|
766
|
-
|
|
767
|
+
var v = A(n);
|
|
768
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
767
769
|
}
|
|
768
|
-
typeof
|
|
770
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
769
771
|
}
|
|
770
772
|
}
|
|
771
773
|
function b1(c) {
|
|
772
774
|
{
|
|
773
|
-
for (var
|
|
774
|
-
var i = o
|
|
775
|
+
for (var n = Object.keys(c.props), o = 0; o < n.length; o++) {
|
|
776
|
+
var i = n[o];
|
|
775
777
|
if (i !== "children" && i !== "key") {
|
|
776
|
-
k(c),
|
|
778
|
+
k(c), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), k(null);
|
|
777
779
|
break;
|
|
778
780
|
}
|
|
779
781
|
}
|
|
780
|
-
c.ref !== null && (k(c),
|
|
782
|
+
c.ref !== null && (k(c), y("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
781
783
|
}
|
|
782
784
|
}
|
|
783
|
-
function P3(c,
|
|
785
|
+
function P3(c, n, o, i, v, d) {
|
|
784
786
|
{
|
|
785
787
|
var h = s1(c);
|
|
786
788
|
if (!h) {
|
|
787
789
|
var a = "";
|
|
788
790
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
789
|
-
var
|
|
790
|
-
|
|
791
|
+
var I = j1(v);
|
|
792
|
+
I ? a += I : a += B3();
|
|
791
793
|
var p;
|
|
792
|
-
c === null ? p = "null" :
|
|
794
|
+
c === null ? p = "null" : n3(c) ? p = "array" : c !== void 0 && c.$$typeof === r ? (p = "<" + (A(c.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : p = typeof c, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, a);
|
|
793
795
|
}
|
|
794
|
-
var m = m1(c,
|
|
796
|
+
var m = m1(c, n, o, v, d);
|
|
795
797
|
if (m == null)
|
|
796
798
|
return m;
|
|
797
799
|
if (h) {
|
|
798
|
-
var B =
|
|
800
|
+
var B = n.children;
|
|
799
801
|
if (B !== void 0)
|
|
800
802
|
if (i)
|
|
801
|
-
if (
|
|
803
|
+
if (n3(B)) {
|
|
802
804
|
for (var $ = 0; $ < B.length; $++)
|
|
803
805
|
T3(B[$], c);
|
|
804
806
|
Object.freeze && Object.freeze(B);
|
|
805
807
|
} else
|
|
806
|
-
|
|
808
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
807
809
|
else
|
|
808
810
|
T3(B, c);
|
|
809
811
|
}
|
|
810
812
|
return c === l ? b1(m) : S1(m), m;
|
|
811
813
|
}
|
|
812
814
|
}
|
|
813
|
-
function y1(c,
|
|
814
|
-
return P3(c,
|
|
815
|
+
function y1(c, n, o) {
|
|
816
|
+
return P3(c, n, o, !0);
|
|
815
817
|
}
|
|
816
|
-
function I1(c,
|
|
817
|
-
return P3(c,
|
|
818
|
+
function I1(c, n, o) {
|
|
819
|
+
return P3(c, n, o, !1);
|
|
818
820
|
}
|
|
819
821
|
var R1 = I1, E1 = y1;
|
|
820
822
|
q.Fragment = l, q.jsx = R1, q.jsxs = E1;
|
|
@@ -831,24 +833,24 @@ var Y = {};
|
|
|
831
833
|
* LICENSE file in the root directory of this source tree.
|
|
832
834
|
*/
|
|
833
835
|
var k3;
|
|
834
|
-
function
|
|
836
|
+
function o2() {
|
|
835
837
|
if (k3)
|
|
836
838
|
return Y;
|
|
837
839
|
k3 = 1;
|
|
838
|
-
var s = U3, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty,
|
|
839
|
-
function C
|
|
840
|
-
var Z,
|
|
841
|
-
|
|
840
|
+
var s = U3, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, w = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
841
|
+
function S(C, g, R) {
|
|
842
|
+
var Z, b = {}, E = null, _ = null;
|
|
843
|
+
R !== void 0 && (E = "" + R), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (_ = g.ref);
|
|
842
844
|
for (Z in g)
|
|
843
|
-
l.call(g, Z) && !
|
|
844
|
-
if (
|
|
845
|
-
for (Z in g =
|
|
846
|
-
|
|
847
|
-
return { $$typeof: r, type:
|
|
845
|
+
l.call(g, Z) && !j.hasOwnProperty(Z) && (b[Z] = g[Z]);
|
|
846
|
+
if (C && C.defaultProps)
|
|
847
|
+
for (Z in g = C.defaultProps, g)
|
|
848
|
+
b[Z] === void 0 && (b[Z] = g[Z]);
|
|
849
|
+
return { $$typeof: r, type: C, key: E, ref: _, props: b, _owner: w.current };
|
|
848
850
|
}
|
|
849
|
-
return Y.Fragment = t, Y.jsx =
|
|
851
|
+
return Y.Fragment = t, Y.jsx = S, Y.jsxs = S, Y;
|
|
850
852
|
}
|
|
851
|
-
process.env.NODE_ENV === "production" ? u3.exports =
|
|
853
|
+
process.env.NODE_ENV === "production" ? u3.exports = o2() : u3.exports = n2();
|
|
852
854
|
var e = u3.exports;
|
|
853
855
|
const l2 = () => /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "disconnected-message", children: [
|
|
854
856
|
/* @__PURE__ */ e.jsx("h1", { children: "Disconnected" }),
|
|
@@ -876,28 +878,28 @@ function v2() {
|
|
|
876
878
|
return V1(z3);
|
|
877
879
|
}
|
|
878
880
|
const u2 = ({ children: s }) => {
|
|
879
|
-
const [r, t] = r3(), l = e2(),
|
|
881
|
+
const [r, t] = r3(), l = e2(), w = r2(), j = c2(), S = t2(), C = N1(), g = k1(null), [R, Z] = r3(), b = O3(
|
|
880
882
|
async (_) => {
|
|
881
|
-
await v3.get(`${_}/ui/joinroom?token=${r}`).then((
|
|
882
|
-
|
|
883
|
-
}).catch((
|
|
884
|
-
console.log(
|
|
883
|
+
await v3.get(`${_}/ui/joinroom?token=${r}`).then((M) => {
|
|
884
|
+
M.status === 200 && M.data && P.dispatch(F.setRoomData(M.data));
|
|
885
|
+
}).catch((M) => {
|
|
886
|
+
console.log(M);
|
|
885
887
|
});
|
|
886
888
|
},
|
|
887
889
|
[r]
|
|
888
890
|
), E = O3(
|
|
889
|
-
(_,
|
|
890
|
-
g.current && l && g.current.send(JSON.stringify({ type: _, clientId:
|
|
891
|
+
(_, M) => {
|
|
892
|
+
g.current && l && g.current.send(JSON.stringify({ type: _, clientId: j, content: M }));
|
|
891
893
|
},
|
|
892
|
-
[l,
|
|
894
|
+
[l, j]
|
|
893
895
|
);
|
|
894
896
|
return H(() => {
|
|
895
|
-
let
|
|
896
|
-
|
|
897
|
+
let M = new URLSearchParams(window.location.search).get("token");
|
|
898
|
+
M ? (console.log("saving token: ", M), h2($3.uuid, M)) : (M = a2($3.uuid), console.log("loading token: ", M)), t(M), S();
|
|
897
899
|
}, []), H(() => {
|
|
898
|
-
if (!(!
|
|
899
|
-
if (
|
|
900
|
-
const
|
|
900
|
+
if (!(!C.apiPath || R || !r)) {
|
|
901
|
+
if (b(C.apiPath), !g.current) {
|
|
902
|
+
const M = `${C.apiPath.replace("http", "ws")}/ui/join/${r}`, L = new WebSocket(M);
|
|
901
903
|
g.current = L, L.onopen = () => {
|
|
902
904
|
console.log("connected"), P.dispatch(F.setWebsocketIsConnected(!0));
|
|
903
905
|
}, L.onerror = (D) => {
|
|
@@ -909,29 +911,29 @@ const u2 = ({ children: s }) => {
|
|
|
909
911
|
console.log("WebSocket closed by client.");
|
|
910
912
|
return;
|
|
911
913
|
}
|
|
912
|
-
|
|
914
|
+
R || (P.dispatch(F.setWebsocketIsConnected(!1)), Z(!0), setTimeout(() => Z(void 0), 5e3));
|
|
913
915
|
}, L.onmessage = (D) => {
|
|
914
916
|
try {
|
|
915
|
-
const
|
|
916
|
-
if (console.log(
|
|
917
|
-
switch (
|
|
917
|
+
const x = JSON.parse(D.data);
|
|
918
|
+
if (console.log(x), x.type.startsWith("/system/"))
|
|
919
|
+
switch (x.type) {
|
|
918
920
|
case "/system/roomKey":
|
|
919
921
|
P.dispatch(
|
|
920
922
|
F.setCurrentRoomKey(
|
|
921
|
-
|
|
923
|
+
x.content
|
|
922
924
|
)
|
|
923
925
|
);
|
|
924
926
|
break;
|
|
925
927
|
case "/system/userCodeChanged":
|
|
926
928
|
P.dispatch(
|
|
927
|
-
F.setUserCode(
|
|
929
|
+
F.setUserCode(x.content)
|
|
928
930
|
);
|
|
929
931
|
break;
|
|
930
932
|
}
|
|
931
933
|
else
|
|
932
|
-
|
|
933
|
-
} catch (
|
|
934
|
-
console.log(
|
|
934
|
+
x.type.startsWith("/room/") ? P.dispatch(H1.setRoomState(x)) : x.type.startsWith("/device/") && P.dispatch(q1.setDeviceState(x));
|
|
935
|
+
} catch (x) {
|
|
936
|
+
console.log(x);
|
|
935
937
|
}
|
|
936
938
|
};
|
|
937
939
|
}
|
|
@@ -939,9 +941,9 @@ const u2 = ({ children: s }) => {
|
|
|
939
941
|
g.current && g.current.close(), g.current = null;
|
|
940
942
|
};
|
|
941
943
|
}
|
|
942
|
-
}, [
|
|
943
|
-
|
|
944
|
-
}, [
|
|
944
|
+
}, [C.apiPath, b, r, R]), H(() => {
|
|
945
|
+
w && E(`/room/${w}/status`, null);
|
|
946
|
+
}, [w, E]), /* @__PURE__ */ e.jsx(z3.Provider, { value: { sendMessage: E }, children: l ? s : /* @__PURE__ */ e.jsx(l2, {}) });
|
|
945
947
|
}, R8 = ({ children: s }) => /* @__PURE__ */ e.jsx(D1, { store: P, children: /* @__PURE__ */ e.jsx(u2, { children: s }) }), E8 = ({ config: s }) => {
|
|
946
948
|
const { sendMessage: r } = v2();
|
|
947
949
|
H(() => {
|
|
@@ -953,8 +955,8 @@ const u2 = ({ children: s }) => {
|
|
|
953
955
|
}), s.environmentalDevices.forEach((l) => {
|
|
954
956
|
t.push(l);
|
|
955
957
|
}), s.audioCodecKey && t.push(s.audioCodecKey), s.videoCodecKey && t.push(s.videoCodecKey);
|
|
956
|
-
for (const [l,
|
|
957
|
-
t.push(
|
|
958
|
+
for (const [l, w] of Object.entries(s.sourceList))
|
|
959
|
+
t.push(w.sourceKey);
|
|
958
960
|
t.forEach((l) => {
|
|
959
961
|
r(`/device/${l}/fullStatus`, { deviceKey: l });
|
|
960
962
|
});
|
|
@@ -968,43 +970,43 @@ const u2 = ({ children: s }) => {
|
|
|
968
970
|
otherContent: r = null,
|
|
969
971
|
vert: t = !1,
|
|
970
972
|
className: l,
|
|
971
|
-
iconClassName:
|
|
972
|
-
otherContentClassName:
|
|
973
|
-
disabled:
|
|
974
|
-
feedback:
|
|
973
|
+
iconClassName: w = "",
|
|
974
|
+
otherContentClassName: j = "",
|
|
975
|
+
disabled: S,
|
|
976
|
+
feedback: C,
|
|
975
977
|
feedbackClassName: g,
|
|
976
|
-
onPointerDown:
|
|
978
|
+
onPointerDown: R,
|
|
977
979
|
onPointerUp: Z,
|
|
978
|
-
onPointerLeave:
|
|
980
|
+
onPointerLeave: b,
|
|
979
981
|
...E
|
|
980
982
|
}) => {
|
|
981
|
-
const [_,
|
|
983
|
+
const [_, M] = r3(!1), L = !S && C ? g : "", D = !S && (_ || C);
|
|
982
984
|
return /* @__PURE__ */ e.jsxs(
|
|
983
985
|
"button",
|
|
984
986
|
{
|
|
985
987
|
type: "button",
|
|
986
988
|
className: `${h3.iconbtn} ${t ? h3.iconbtnvert : ""} ${l} ${L}`,
|
|
987
989
|
...E,
|
|
988
|
-
disabled:
|
|
989
|
-
onPointerDown: (
|
|
990
|
-
|
|
990
|
+
disabled: S,
|
|
991
|
+
onPointerDown: (x) => {
|
|
992
|
+
M(!0), R == null || R(x);
|
|
991
993
|
},
|
|
992
|
-
onPointerUp: (
|
|
993
|
-
|
|
994
|
+
onPointerUp: (x) => {
|
|
995
|
+
M(!1), Z == null || Z(x);
|
|
994
996
|
},
|
|
995
|
-
onPointerLeave: (
|
|
996
|
-
|
|
997
|
+
onPointerLeave: (x) => {
|
|
998
|
+
M(!1), b == null || b(x);
|
|
997
999
|
},
|
|
998
1000
|
children: [
|
|
999
1001
|
/* @__PURE__ */ e.jsx(
|
|
1000
1002
|
s,
|
|
1001
1003
|
{
|
|
1002
|
-
className: `${
|
|
1004
|
+
className: `${w || h3.iconsm}`,
|
|
1003
1005
|
active: D,
|
|
1004
|
-
disabled:
|
|
1006
|
+
disabled: S
|
|
1005
1007
|
}
|
|
1006
1008
|
),
|
|
1007
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1009
|
+
/* @__PURE__ */ e.jsx("div", { className: j, children: r })
|
|
1008
1010
|
]
|
|
1009
1011
|
}
|
|
1010
1012
|
);
|
|
@@ -1013,8 +1015,8 @@ const u2 = ({ children: s }) => {
|
|
|
1013
1015
|
DisabledImage: r,
|
|
1014
1016
|
EnabledImage: t,
|
|
1015
1017
|
active: l,
|
|
1016
|
-
disabled:
|
|
1017
|
-
}) =>
|
|
1018
|
+
disabled: w
|
|
1019
|
+
}) => w ? r : l ? s : t, f2 = ({
|
|
1018
1020
|
active: s,
|
|
1019
1021
|
className: r = "",
|
|
1020
1022
|
disabled: t
|
|
@@ -2445,10 +2447,10 @@ const H2 = "_grid_1cmpp_1", K2 = "_header_1cmpp_11", J2 = "_content_1cmpp_17", z
|
|
|
2445
2447
|
content: J2,
|
|
2446
2448
|
footer: z2,
|
|
2447
2449
|
volume: X2
|
|
2448
|
-
}, L8 = ({ header: s, footer: r, content: t, volume: l, showVolume:
|
|
2450
|
+
}, L8 = ({ header: s, footer: r, content: t, volume: l, showVolume: w }) => /* @__PURE__ */ e.jsxs("div", { className: G.grid, children: [
|
|
2449
2451
|
/* @__PURE__ */ e.jsx("div", { className: G.header, children: s }),
|
|
2450
2452
|
/* @__PURE__ */ e.jsx("div", { className: G.content, children: t }),
|
|
2451
|
-
|
|
2453
|
+
w && /* @__PURE__ */ e.jsx("div", { className: G.volume, children: l }),
|
|
2452
2454
|
/* @__PURE__ */ e.jsx("div", { className: G.footer, children: r })
|
|
2453
2455
|
] }), Q2 = "_grid_11w5q_1", N2 = "_header_11w5q_11", e8 = "_content_11w5q_17", e3 = {
|
|
2454
2456
|
grid: Q2,
|