@pepperdash/mobile-control-react-app-core 1.22.11-socket-connection-issues.1 → 1.22.11
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 +130 -121
- package/dist/mobile-control-react-app-core.umd.js +5 -5
- package/dist/store/devices/devices.slice.d.ts.map +1 -1
- package/dist/store/middleware/websocketMiddleware.d.ts.map +1 -1
- package/dist/store/rooms/rooms.slice.d.ts.map +1 -1
- package/package.json +1 -8
|
@@ -29,104 +29,104 @@ const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
|
|
|
29
29
|
function _(e) {
|
|
30
30
|
return m(P2(e));
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const $ = (e) => e.rooms, L2 = (e) => M(
|
|
33
|
+
$,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
),
|
|
36
|
-
|
|
35
|
+
), A2 = M(
|
|
36
|
+
$,
|
|
37
37
|
(e) => e
|
|
38
|
-
),
|
|
39
|
-
|
|
38
|
+
), $2 = (e) => M(
|
|
39
|
+
$,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
41
|
), B2 = (e) => M(
|
|
42
|
-
|
|
42
|
+
$,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
44
|
), k2 = (e, t) => M(
|
|
45
|
-
|
|
45
|
+
$,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
47
|
), O2 = (e) => M(
|
|
48
|
-
|
|
48
|
+
$,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), W2 = (e) => M(
|
|
51
|
-
|
|
51
|
+
$,
|
|
52
52
|
(t) => {
|
|
53
53
|
var o, c;
|
|
54
54
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
|
|
55
55
|
}
|
|
56
56
|
), V2 = (e) => M(
|
|
57
|
-
|
|
57
|
+
$,
|
|
58
58
|
(t) => {
|
|
59
59
|
var o, c;
|
|
60
60
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.audioControlPointList : void 0;
|
|
61
61
|
}
|
|
62
62
|
), U2 = (e) => M(
|
|
63
|
-
|
|
63
|
+
$,
|
|
64
64
|
(t) => {
|
|
65
65
|
var o, c;
|
|
66
66
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations : void 0;
|
|
67
67
|
}
|
|
68
68
|
), H2 = (e) => M(
|
|
69
|
-
|
|
69
|
+
$,
|
|
70
70
|
(t) => {
|
|
71
71
|
var o, c;
|
|
72
72
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList : void 0;
|
|
73
73
|
}
|
|
74
74
|
), F2 = (e) => M(
|
|
75
|
-
|
|
75
|
+
$,
|
|
76
76
|
(t) => {
|
|
77
77
|
var o, c;
|
|
78
78
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.environmentalDevices : void 0;
|
|
79
79
|
}
|
|
80
80
|
), K2 = (e) => M(
|
|
81
|
-
|
|
81
|
+
$,
|
|
82
82
|
(t) => {
|
|
83
83
|
var o, c, r, l, v, f, h, w;
|
|
84
84
|
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (v = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : v.sinkKey : ((w = (h = (f = t[e]) == null ? void 0 : f.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : w.sinkKey) || "";
|
|
85
85
|
}
|
|
86
86
|
), q2 = (e) => M(
|
|
87
|
-
|
|
87
|
+
$,
|
|
88
88
|
(t) => {
|
|
89
89
|
var o, c, r;
|
|
90
90
|
return t[e] ? (r = (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList.codecContent) == null ? void 0 : r.sinkKey : void 0;
|
|
91
91
|
}
|
|
92
92
|
), G2 = (e) => M(
|
|
93
|
-
|
|
93
|
+
$,
|
|
94
94
|
(t) => {
|
|
95
95
|
var o;
|
|
96
96
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isInCall : void 0;
|
|
97
97
|
}
|
|
98
98
|
), Y2 = (e) => M(
|
|
99
|
-
|
|
99
|
+
$,
|
|
100
100
|
(t) => {
|
|
101
101
|
var o;
|
|
102
102
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isWarmingUp : void 0;
|
|
103
103
|
}
|
|
104
104
|
), z2 = (e) => M(
|
|
105
|
-
|
|
105
|
+
$,
|
|
106
106
|
(t) => {
|
|
107
107
|
var o;
|
|
108
108
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isCoolingDown : void 0;
|
|
109
109
|
}
|
|
110
110
|
), J2 = (e) => M(
|
|
111
|
-
|
|
111
|
+
$,
|
|
112
112
|
(t) => {
|
|
113
113
|
var o;
|
|
114
114
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isOn : void 0;
|
|
115
115
|
}
|
|
116
116
|
), X2 = (e) => M(
|
|
117
|
-
|
|
117
|
+
$,
|
|
118
118
|
(t) => {
|
|
119
119
|
var o;
|
|
120
120
|
return t[e] ? (o = t[e]) == null ? void 0 : o.advancedSharingActive : void 0;
|
|
121
121
|
}
|
|
122
122
|
), Q2 = (e) => M(
|
|
123
|
-
|
|
123
|
+
$,
|
|
124
124
|
(t) => {
|
|
125
125
|
var o;
|
|
126
126
|
return t[e] ? (o = t[e]) == null ? void 0 : o.share : void 0;
|
|
127
127
|
}
|
|
128
128
|
), N2 = (e) => M(
|
|
129
|
-
|
|
129
|
+
$,
|
|
130
130
|
(t) => {
|
|
131
131
|
var o, c;
|
|
132
132
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
|
|
@@ -152,10 +152,10 @@ function n6(e) {
|
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function o6() {
|
|
155
|
-
return m(
|
|
155
|
+
return m(A2);
|
|
156
156
|
}
|
|
157
157
|
function S1(e) {
|
|
158
|
-
return m(
|
|
158
|
+
return m($2(e));
|
|
159
159
|
}
|
|
160
160
|
const s6 = S1, c6 = (e) => m(
|
|
161
161
|
B2(e)
|
|
@@ -216,7 +216,7 @@ const s6 = S1, c6 = (e) => m(
|
|
|
216
216
|
), fe = M(N, (e) => e.error), we = M(
|
|
217
217
|
N,
|
|
218
218
|
(e) => e.showReconnect
|
|
219
|
-
), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), P6 = () => m(V1("showIncomingCallModal")), L6 = (e) => m(V1(e)),
|
|
219
|
+
), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), P6 = () => m(V1("showIncomingCallModal")), L6 = (e) => m(V1(e)), A6 = (e) => m(he(e)), $6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), B6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -296,7 +296,14 @@ const s6 = S1, c6 = (e) => m(
|
|
|
296
296
|
setDeviceState(e, t) {
|
|
297
297
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
298
298
|
if (!c) return;
|
|
299
|
-
const r = t.payload.content, l = e[c] ?? {}, v = S3.
|
|
299
|
+
const r = t.payload.content, l = e[c] ?? {}, v = S3.mergeWith(
|
|
300
|
+
{},
|
|
301
|
+
l,
|
|
302
|
+
r,
|
|
303
|
+
(f, h) => {
|
|
304
|
+
if (Array.isArray(h)) return h.slice();
|
|
305
|
+
}
|
|
306
|
+
);
|
|
300
307
|
e[c] = v;
|
|
301
308
|
},
|
|
302
309
|
clearDevices() {
|
|
@@ -329,7 +336,9 @@ const g3 = {}, k1 = u1({
|
|
|
329
336
|
setRoomState(e, t) {
|
|
330
337
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
331
338
|
if (!c) return;
|
|
332
|
-
const r = t.payload.content, l = e[c] ?? {}, v = S3.
|
|
339
|
+
const r = t.payload.content, l = e[c] ?? {}, v = S3.mergeWith({}, l, r, (f, h) => {
|
|
340
|
+
if (Array.isArray(h)) return h;
|
|
341
|
+
});
|
|
333
342
|
e[c] = v;
|
|
334
343
|
},
|
|
335
344
|
clearRooms() {
|
|
@@ -405,16 +414,16 @@ const g3 = {}, k1 = u1({
|
|
|
405
414
|
e.touchpanelKey = t.payload;
|
|
406
415
|
}
|
|
407
416
|
}
|
|
408
|
-
}), U = D3.actions, _e = D3.reducer, L1 = M3.create(), _3 = "websocket/connect", P3 = "websocket/disconnect", L3 = "websocket/sendMessage",
|
|
417
|
+
}), U = D3.actions, _e = D3.reducer, L1 = M3.create(), _3 = "websocket/connect", P3 = "websocket/disconnect", L3 = "websocket/sendMessage", A3 = "websocket/addEventHandler", $3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", k3 = () => ({ type: _3 }), k6 = () => ({ type: P3 }), Pe = (e, t) => ({
|
|
409
418
|
type: L3,
|
|
410
419
|
payload: { messageType: e, content: t }
|
|
411
420
|
}), Le = (e, t, o) => ({
|
|
412
|
-
type: $3,
|
|
413
|
-
payload: { eventType: e, key: t, callback: o }
|
|
414
|
-
}), $e = (e, t) => ({
|
|
415
421
|
type: A3,
|
|
422
|
+
payload: { eventType: e, key: t, callback: o }
|
|
423
|
+
}), Ae = (e, t) => ({
|
|
424
|
+
type: $3,
|
|
416
425
|
payload: { eventType: e, key: t }
|
|
417
|
-
}),
|
|
426
|
+
}), $e = () => ({ type: B3 }), Be = () => {
|
|
418
427
|
const e = {
|
|
419
428
|
client: null,
|
|
420
429
|
token: null,
|
|
@@ -423,36 +432,36 @@ const g3 = {}, k1 = u1({
|
|
|
423
432
|
eventHandlers: {}
|
|
424
433
|
}, t = async (a) => {
|
|
425
434
|
try {
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
const C = `/${
|
|
435
|
+
const Z = location.pathname.split("/").filter((b) => b.length > 0);
|
|
436
|
+
Z.length >= 5 ? Z.length = 5 : Z.length = 2;
|
|
437
|
+
const C = `/${Z.join("/")}`, S = await L1.get(
|
|
429
438
|
"/_local-config/_config.local.json",
|
|
430
439
|
{ baseURL: C }
|
|
431
440
|
);
|
|
432
|
-
if (
|
|
433
|
-
const b =
|
|
434
|
-
a(T3.setAppConfig(
|
|
441
|
+
if (S.status === 200 && S.data) {
|
|
442
|
+
const b = S.data.apiPath;
|
|
443
|
+
a(T3.setAppConfig(S.data));
|
|
435
444
|
const x = await L1.get(
|
|
436
445
|
`${b}/version`
|
|
437
446
|
);
|
|
438
447
|
x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
|
|
439
448
|
}
|
|
440
|
-
} catch (
|
|
441
|
-
console.error("Error getting config",
|
|
449
|
+
} catch (Z) {
|
|
450
|
+
console.error("Error getting config", Z);
|
|
442
451
|
}
|
|
443
452
|
return !0;
|
|
444
|
-
}, o = async (a,
|
|
453
|
+
}, o = async (a, Z, C) => {
|
|
445
454
|
try {
|
|
446
|
-
const
|
|
447
|
-
`${a}/ui/joinroom?token=${
|
|
455
|
+
const S = await L1.get(
|
|
456
|
+
`${a}/ui/joinroom?token=${Z}`
|
|
448
457
|
);
|
|
449
|
-
return
|
|
450
|
-
} catch (
|
|
451
|
-
return console.log(
|
|
458
|
+
return S.status === 200 && S.data ? (C(U.setRoomData(S.data)), S.data) : null;
|
|
459
|
+
} catch (S) {
|
|
460
|
+
return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
|
|
452
461
|
O.setErrorMessage(
|
|
453
|
-
`Token ${
|
|
462
|
+
`Token ${Z} is invalid. Unable to join room`
|
|
454
463
|
)
|
|
455
|
-
), null) : (console.error("Error getting room data",
|
|
464
|
+
), null) : (console.error("Error getting room data", S), S instanceof Error ? C(O.setErrorMessage(S.message)) : C(O.setErrorMessage("Error getting room data")), null);
|
|
456
465
|
}
|
|
457
466
|
}, c = (a) => {
|
|
458
467
|
e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
|
|
@@ -462,8 +471,8 @@ const g3 = {}, k1 = u1({
|
|
|
462
471
|
e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
|
|
463
472
|
}, l = (a) => {
|
|
464
473
|
a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(f1.clearDevices()), a(w1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState());
|
|
465
|
-
}, v = (a,
|
|
466
|
-
const C = a(),
|
|
474
|
+
}, v = (a, Z) => {
|
|
475
|
+
const C = a(), S = Z ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected;
|
|
467
476
|
if (!Z || !x || !b) {
|
|
468
477
|
console.log("WebSocket middleware: Cannot request room status", {
|
|
469
478
|
hasRoomKey: !!Z,
|
|
@@ -472,21 +481,21 @@ const g3 = {}, k1 = u1({
|
|
|
472
481
|
});
|
|
473
482
|
return;
|
|
474
483
|
}
|
|
475
|
-
console.log("WebSocket middleware: Requesting status from room:",
|
|
484
|
+
console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
|
|
476
485
|
JSON.stringify({
|
|
477
|
-
type: `/room/${
|
|
486
|
+
type: `/room/${S}/status`,
|
|
478
487
|
clientId: b,
|
|
479
488
|
content: null
|
|
480
489
|
})
|
|
481
490
|
);
|
|
482
|
-
}, f = async (a,
|
|
491
|
+
}, f = async (a, Z) => {
|
|
483
492
|
console.log("WebSocket middleware: Attempting to connect...");
|
|
484
|
-
const C =
|
|
485
|
-
if (!
|
|
493
|
+
const C = Z(), { apiPath: S } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
|
|
494
|
+
if (!S || !e.token) {
|
|
486
495
|
console.log(
|
|
487
496
|
"WebSocket middleware: Cannot connect - missing requirements",
|
|
488
497
|
{
|
|
489
|
-
hasApiPath: !!
|
|
498
|
+
hasApiPath: !!S,
|
|
490
499
|
hasToken: !!e.token
|
|
491
500
|
}
|
|
492
501
|
);
|
|
@@ -504,7 +513,7 @@ const g3 = {}, k1 = u1({
|
|
|
504
513
|
}
|
|
505
514
|
e.waitingToReconnect = !0;
|
|
506
515
|
try {
|
|
507
|
-
const x = await o(
|
|
516
|
+
const x = await o(S, e.token, a);
|
|
508
517
|
if (!x) {
|
|
509
518
|
console.log(
|
|
510
519
|
"WebSocket middleware: Failed to get room data, will retry..."
|
|
@@ -512,7 +521,7 @@ const g3 = {}, k1 = u1({
|
|
|
512
521
|
return;
|
|
513
522
|
}
|
|
514
523
|
console.log("WebSocket middleware: Connecting to websocket");
|
|
515
|
-
const C1 = `${
|
|
524
|
+
const C1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(C1);
|
|
516
525
|
e.client = K, K.onopen = (B) => {
|
|
517
526
|
console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
|
|
518
527
|
e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
|
|
@@ -548,7 +557,7 @@ const g3 = {}, k1 = u1({
|
|
|
548
557
|
return;
|
|
549
558
|
}
|
|
550
559
|
if (B.code === 4001)
|
|
551
|
-
if (!!((D =
|
|
560
|
+
if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
|
|
552
561
|
console.log(
|
|
553
562
|
"WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
|
|
554
563
|
);
|
|
@@ -651,27 +660,27 @@ const g3 = {}, k1 = u1({
|
|
|
651
660
|
}
|
|
652
661
|
}, h = () => {
|
|
653
662
|
e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
|
|
654
|
-
}, w = (a,
|
|
655
|
-
const
|
|
663
|
+
}, w = (a, Z, C) => {
|
|
664
|
+
const S = C(), b = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
|
|
656
665
|
e.client && b ? e.client.send(
|
|
657
|
-
JSON.stringify({ type: a, clientId: x, content:
|
|
666
|
+
JSON.stringify({ type: a, clientId: x, content: Z })
|
|
658
667
|
) : console.warn("WebSocket middleware: Cannot send message - not connected");
|
|
659
|
-
}, d = (a,
|
|
660
|
-
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][
|
|
661
|
-
}, P = (a,
|
|
662
|
-
e.eventHandlers[a] && (delete e.eventHandlers[a][
|
|
668
|
+
}, d = (a, Z, C) => {
|
|
669
|
+
e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = C, console.log("WebSocket middleware: Event handler added", a, Z);
|
|
670
|
+
}, P = (a, Z) => {
|
|
671
|
+
e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
|
|
663
672
|
"WebSocket middleware: Event handler removed",
|
|
664
673
|
a,
|
|
665
|
-
|
|
674
|
+
Z
|
|
666
675
|
));
|
|
667
676
|
}, H = (a) => {
|
|
668
|
-
const
|
|
677
|
+
const Z = a(), { gatewayAppPath: C } = Z.appConfig.config, S = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, W = `${C}?uuid=${b}&roomKey=${S}`;
|
|
669
678
|
window.location.href = x ? `${W}&Code=${x}` : W;
|
|
670
679
|
};
|
|
671
|
-
return (a) => (
|
|
672
|
-
const
|
|
680
|
+
return (a) => (Z) => (C) => {
|
|
681
|
+
const S = Z(C);
|
|
673
682
|
if (!C || typeof C != "object" || !("type" in C))
|
|
674
|
-
return
|
|
683
|
+
return S;
|
|
675
684
|
const b = C;
|
|
676
685
|
return (async () => {
|
|
677
686
|
switch (b.type) {
|
|
@@ -690,14 +699,14 @@ const g3 = {}, k1 = u1({
|
|
|
690
699
|
a.getState
|
|
691
700
|
);
|
|
692
701
|
break;
|
|
693
|
-
case
|
|
702
|
+
case A3:
|
|
694
703
|
d(
|
|
695
704
|
b.payload.eventType,
|
|
696
705
|
b.payload.key,
|
|
697
706
|
b.payload.callback
|
|
698
707
|
);
|
|
699
708
|
break;
|
|
700
|
-
case
|
|
709
|
+
case $3:
|
|
701
710
|
P(
|
|
702
711
|
b.payload.eventType,
|
|
703
712
|
b.payload.key
|
|
@@ -728,7 +737,7 @@ const g3 = {}, k1 = u1({
|
|
|
728
737
|
}
|
|
729
738
|
})().catch((x) => {
|
|
730
739
|
console.error("WebSocket middleware: Error handling action", x);
|
|
731
|
-
}),
|
|
740
|
+
}), S;
|
|
732
741
|
};
|
|
733
742
|
}, ke = S2({
|
|
734
743
|
appConfig: be,
|
|
@@ -806,11 +815,11 @@ var i1 = {};
|
|
|
806
815
|
var m3;
|
|
807
816
|
function Ve() {
|
|
808
817
|
return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
809
|
-
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"),
|
|
810
|
-
function
|
|
818
|
+
var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, C = "@@iterator";
|
|
819
|
+
function S(s) {
|
|
811
820
|
if (s === null || typeof s != "object")
|
|
812
821
|
return null;
|
|
813
|
-
var i =
|
|
822
|
+
var i = Z && s[Z] || s[C];
|
|
814
823
|
return typeof i == "function" ? i : null;
|
|
815
824
|
}
|
|
816
825
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -1026,18 +1035,18 @@ function Ve() {
|
|
|
1026
1035
|
if (V && p && typeof V.stack == "string") {
|
|
1027
1036
|
for (var j = V.stack.split(`
|
|
1028
1037
|
`), k = p.stack.split(`
|
|
1029
|
-
`), L = j.length - 1,
|
|
1030
|
-
|
|
1031
|
-
for (; L >= 1 &&
|
|
1032
|
-
if (j[L] !== k[
|
|
1033
|
-
if (L !== 1 ||
|
|
1038
|
+
`), L = j.length - 1, A = k.length - 1; L >= 1 && A >= 0 && j[L] !== k[A]; )
|
|
1039
|
+
A--;
|
|
1040
|
+
for (; L >= 1 && A >= 0; L--, A--)
|
|
1041
|
+
if (j[L] !== k[A]) {
|
|
1042
|
+
if (L !== 1 || A !== 1)
|
|
1034
1043
|
do
|
|
1035
|
-
if (L--,
|
|
1044
|
+
if (L--, A--, A < 0 || j[L] !== k[A]) {
|
|
1036
1045
|
var F = `
|
|
1037
1046
|
` + j[L].replace(" at new ", " at ");
|
|
1038
1047
|
return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && v1.set(s, F), F;
|
|
1039
1048
|
}
|
|
1040
|
-
while (L >= 1 &&
|
|
1049
|
+
while (L >= 1 && A >= 0);
|
|
1041
1050
|
break;
|
|
1042
1051
|
}
|
|
1043
1052
|
}
|
|
@@ -1222,8 +1231,8 @@ function Ve() {
|
|
|
1222
1231
|
y[T] === void 0 && (y[T] = L[T]);
|
|
1223
1232
|
}
|
|
1224
1233
|
if (j || k) {
|
|
1225
|
-
var
|
|
1226
|
-
j && n2(y,
|
|
1234
|
+
var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
1235
|
+
j && n2(y, A), k && o2(y, A);
|
|
1227
1236
|
}
|
|
1228
1237
|
return s2(s, j, k, E, p, n3.current, y);
|
|
1229
1238
|
}
|
|
@@ -1294,7 +1303,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
1294
1303
|
else if (_1(s))
|
|
1295
1304
|
s._store && (s._store.validated = !0);
|
|
1296
1305
|
else if (s) {
|
|
1297
|
-
var E =
|
|
1306
|
+
var E = S(s);
|
|
1298
1307
|
if (typeof E == "function" && E !== s.entries)
|
|
1299
1308
|
for (var T = E.call(s), y; !(y = T.next()).done; )
|
|
1300
1309
|
_1(y.value) && i3(y.value, i);
|
|
@@ -1350,9 +1359,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
1350
1359
|
var L;
|
|
1351
1360
|
s === null ? L = "null" : E1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, j);
|
|
1352
1361
|
}
|
|
1353
|
-
var
|
|
1354
|
-
if (
|
|
1355
|
-
return
|
|
1362
|
+
var A = c2(s, i, u, E, T);
|
|
1363
|
+
if (A == null)
|
|
1364
|
+
return A;
|
|
1356
1365
|
if (y) {
|
|
1357
1366
|
var F = i.children;
|
|
1358
1367
|
if (F !== void 0)
|
|
@@ -1380,7 +1389,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1380
1389
|
<%s key={someKey} {...props} />`, P1, Q, g2, Q), u3[Q + P1] = !0;
|
|
1381
1390
|
}
|
|
1382
1391
|
}
|
|
1383
|
-
return s === c ? a2(
|
|
1392
|
+
return s === c ? a2(A) : i2(A), A;
|
|
1384
1393
|
}
|
|
1385
1394
|
}
|
|
1386
1395
|
function u2(s, i, u) {
|
|
@@ -1437,11 +1446,11 @@ const He = "_mwfit_ppa3l_1", Fe = {
|
|
|
1437
1446
|
[t]
|
|
1438
1447
|
), v = r1(
|
|
1439
1448
|
(h, w) => {
|
|
1440
|
-
t(
|
|
1449
|
+
t(Ae(h, w));
|
|
1441
1450
|
},
|
|
1442
1451
|
[t]
|
|
1443
1452
|
), f = r1(() => {
|
|
1444
|
-
t(
|
|
1453
|
+
t($e());
|
|
1445
1454
|
}, [t]);
|
|
1446
1455
|
return /* @__PURE__ */ n.jsx(
|
|
1447
1456
|
O3.Provider,
|
|
@@ -2004,7 +2013,7 @@ const Pt = () => {
|
|
|
2004
2013
|
),
|
|
2005
2014
|
e && /* @__PURE__ */ n.jsx("p", { children: r })
|
|
2006
2015
|
] });
|
|
2007
|
-
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18",
|
|
2016
|
+
}, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", A1 = {
|
|
2008
2017
|
iconbtn: Je,
|
|
2009
2018
|
iconbtnvert: Xe,
|
|
2010
2019
|
iconsm: Qe
|
|
@@ -2023,29 +2032,29 @@ const Pt = () => {
|
|
|
2023
2032
|
onPointerLeave: P,
|
|
2024
2033
|
...H
|
|
2025
2034
|
}) => {
|
|
2026
|
-
const [a,
|
|
2035
|
+
const [a, Z] = Y(!1), C = !v && f ? h : "", S = !v && (a || f);
|
|
2027
2036
|
return /* @__PURE__ */ n.jsxs(
|
|
2028
2037
|
"button",
|
|
2029
2038
|
{
|
|
2030
2039
|
type: "button",
|
|
2031
|
-
className: `${
|
|
2040
|
+
className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${C}`,
|
|
2032
2041
|
...H,
|
|
2033
2042
|
disabled: v,
|
|
2034
2043
|
onPointerDown: (b) => {
|
|
2035
|
-
|
|
2044
|
+
Z(!0), w == null || w(b);
|
|
2036
2045
|
},
|
|
2037
2046
|
onPointerUp: (b) => {
|
|
2038
|
-
|
|
2047
|
+
Z(!1), d == null || d(b);
|
|
2039
2048
|
},
|
|
2040
2049
|
onPointerLeave: (b) => {
|
|
2041
|
-
|
|
2050
|
+
Z(!1), P == null || P(b);
|
|
2042
2051
|
},
|
|
2043
2052
|
children: [
|
|
2044
2053
|
e && /* @__PURE__ */ n.jsx(
|
|
2045
2054
|
e,
|
|
2046
2055
|
{
|
|
2047
|
-
className: `${r ||
|
|
2048
|
-
active:
|
|
2056
|
+
className: `${r || A1.iconsm}`,
|
|
2057
|
+
active: S,
|
|
2049
2058
|
disabled: v
|
|
2050
2059
|
}
|
|
2051
2060
|
),
|
|
@@ -3700,7 +3709,7 @@ const Pt = () => {
|
|
|
3700
3709
|
X: E8,
|
|
3701
3710
|
Xbox: T8
|
|
3702
3711
|
};
|
|
3703
|
-
function
|
|
3712
|
+
function At({
|
|
3704
3713
|
name: e,
|
|
3705
3714
|
iconsDictionary: t = _8,
|
|
3706
3715
|
...o
|
|
@@ -3708,13 +3717,13 @@ function $t({
|
|
|
3708
3717
|
const c = t[e] ?? null;
|
|
3709
3718
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
|
|
3710
3719
|
}
|
|
3711
|
-
const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11",
|
|
3720
|
+
const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", $8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", a1 = {
|
|
3712
3721
|
grid: P8,
|
|
3713
3722
|
header: L8,
|
|
3714
|
-
content:
|
|
3715
|
-
footer:
|
|
3723
|
+
content: A8,
|
|
3724
|
+
footer: $8,
|
|
3716
3725
|
volume: B8
|
|
3717
|
-
},
|
|
3726
|
+
}, $t = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
|
|
3718
3727
|
/* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
|
|
3719
3728
|
/* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
|
|
3720
3729
|
r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
|
|
@@ -3727,13 +3736,13 @@ const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A
|
|
|
3727
3736
|
/* @__PURE__ */ n.jsx("div", { className: p1.header, children: t }),
|
|
3728
3737
|
c && /* @__PURE__ */ n.jsx("div", { className: p1.leftNav, children: c }),
|
|
3729
3738
|
/* @__PURE__ */ n.jsx("div", { className: p1.content, children: o })
|
|
3730
|
-
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17",
|
|
3739
|
+
] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", $1 = {
|
|
3731
3740
|
grid: V8,
|
|
3732
3741
|
header: U8,
|
|
3733
3742
|
content: H8
|
|
3734
|
-
}, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${
|
|
3735
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3736
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3743
|
+
}, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${$1.grid}`, children: [
|
|
3744
|
+
/* @__PURE__ */ n.jsx("div", { className: $1.header, children: t }),
|
|
3745
|
+
/* @__PURE__ */ n.jsx("div", { className: $1.content, children: o })
|
|
3737
3746
|
] });
|
|
3738
3747
|
class Ot {
|
|
3739
3748
|
constructor() {
|
|
@@ -3792,19 +3801,19 @@ export {
|
|
|
3792
3801
|
R8 as IconMultiWireless,
|
|
3793
3802
|
E8 as IconMultiX,
|
|
3794
3803
|
T8 as IconMultiXbox,
|
|
3795
|
-
|
|
3804
|
+
$t as MainLayout,
|
|
3796
3805
|
Vt as MessageHandler,
|
|
3797
3806
|
W6 as MobileControlProvider,
|
|
3798
3807
|
I as MultiStateIconContainer,
|
|
3799
|
-
|
|
3808
|
+
At as NamedIconButton,
|
|
3800
3809
|
Ot as ShareState,
|
|
3801
3810
|
Bt as TechLayout,
|
|
3802
3811
|
kt as TechPinLayout,
|
|
3803
|
-
|
|
3812
|
+
A3 as WS_ADD_EVENT_HANDLER,
|
|
3804
3813
|
_3 as WS_CONNECT,
|
|
3805
3814
|
P3 as WS_DISCONNECT,
|
|
3806
3815
|
B3 as WS_RECONNECT,
|
|
3807
|
-
|
|
3816
|
+
$3 as WS_REMOVE_EVENT_HANDLER,
|
|
3808
3817
|
L3 as WS_SEND_MESSAGE,
|
|
3809
3818
|
O3 as WebsocketContext,
|
|
3810
3819
|
T3 as appConfigActions,
|
|
@@ -3833,7 +3842,7 @@ export {
|
|
|
3833
3842
|
_2 as selectPartnerMetadata,
|
|
3834
3843
|
X2 as selectRoomAdvancedSharingActive,
|
|
3835
3844
|
V2 as selectRoomAudioControlPointList,
|
|
3836
|
-
|
|
3845
|
+
$2 as selectRoomByKey,
|
|
3837
3846
|
q2 as selectRoomCodecContentDestinationKey,
|
|
3838
3847
|
L2 as selectRoomConfiguration,
|
|
3839
3848
|
H2 as selectRoomDestinationList,
|
|
@@ -3851,7 +3860,7 @@ export {
|
|
|
3851
3860
|
Q2 as selectRoomShareState,
|
|
3852
3861
|
W2 as selectRoomSourceList,
|
|
3853
3862
|
k2 as selectRoomVolume,
|
|
3854
|
-
|
|
3863
|
+
A2 as selectRooms,
|
|
3855
3864
|
ae as selectRuntimeInfo,
|
|
3856
3865
|
ie as selectServerIsRunningOnProcessorHardware,
|
|
3857
3866
|
ge as selectShowPopoverById,
|
|
@@ -3883,7 +3892,7 @@ export {
|
|
|
3883
3892
|
bt as useGetAllDeviceStateFromRoomConfiguration,
|
|
3884
3893
|
t6 as useGetAllDevices,
|
|
3885
3894
|
o6 as useGetAllRooms,
|
|
3886
|
-
|
|
3895
|
+
A6 as useGetCurrentPopoverIdForGroup,
|
|
3887
3896
|
_ as useGetDevice,
|
|
3888
3897
|
V6 as useGetIBasicVolume,
|
|
3889
3898
|
U6 as useGetIBasicVolumeWithFeedback,
|
|
@@ -3957,7 +3966,7 @@ export {
|
|
|
3957
3966
|
b6 as useServerIsRunningOnProcessorHardware,
|
|
3958
3967
|
P6 as useShowIncomingCallModal,
|
|
3959
3968
|
L6 as useShowModal,
|
|
3960
|
-
|
|
3969
|
+
$6 as useShowPopoverById,
|
|
3961
3970
|
xe as useShowReconnect,
|
|
3962
3971
|
_6 as useShowShutdownModal,
|
|
3963
3972
|
Tt as useStateIsSynced,
|
|
@@ -3973,7 +3982,7 @@ export {
|
|
|
3973
3982
|
Le as wsAddEventHandler,
|
|
3974
3983
|
k3 as wsConnect,
|
|
3975
3984
|
k6 as wsDisconnect,
|
|
3976
|
-
|
|
3977
|
-
|
|
3985
|
+
$e as wsReconnect,
|
|
3986
|
+
Ae as wsRemoveEventHandler,
|
|
3978
3987
|
Pe as wsSendMessage
|
|
3979
3988
|
};
|