@pepperdash/mobile-control-react-app-core 1.22.11-socket-connection-issues.2 → 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.
@@ -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 A = (e) => e.rooms, L2 = (e) => M(
33
- A,
32
+ const $ = (e) => e.rooms, L2 = (e) => M(
33
+ $,
34
34
  (t) => t[e] ? t[e].configuration : void 0
35
- ), $2 = M(
36
- A,
35
+ ), A2 = M(
36
+ $,
37
37
  (e) => e
38
- ), A2 = (e) => M(
39
- A,
38
+ ), $2 = (e) => M(
39
+ $,
40
40
  (t) => t[e] ? t[e] : void 0
41
41
  ), B2 = (e) => M(
42
- A,
42
+ $,
43
43
  (t) => t[e] ? t[e].name : void 0
44
44
  ), k2 = (e, t) => M(
45
- A,
45
+ $,
46
46
  (o) => o[e] ? o[e].volumes[t] : void 0
47
47
  ), O2 = (e) => M(
48
- A,
48
+ $,
49
49
  (t) => t[e] ? t[e] : void 0
50
50
  ), W2 = (e) => M(
51
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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
- A,
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($2);
155
+ return m(A2);
156
156
  }
157
157
  function S1(e) {
158
- return m(A2(e));
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)), $6 = (e) => m(he(e)), A6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), B6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
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.merge(l, r);
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.merge(l, r);
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", $3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", k3 = () => ({ type: _3 }), k6 = () => ({ type: P3 }), Pe = (e, t) => ({
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
- }), Ae = () => ({ type: B3 }), Be = () => {
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 S = location.pathname.split("/").filter((b) => b.length > 0);
427
- S.length >= 5 ? S.length = 5 : S.length = 2;
428
- const C = `/${S.join("/")}`, Z = await L1.get(
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 (Z.status === 200 && Z.data) {
433
- const b = Z.data.apiPath;
434
- a(T3.setAppConfig(Z.data));
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 (S) {
441
- console.error("Error getting config", S);
449
+ } catch (Z) {
450
+ console.error("Error getting config", Z);
442
451
  }
443
452
  return !0;
444
- }, o = async (a, S, C) => {
453
+ }, o = async (a, Z, C) => {
445
454
  try {
446
- const Z = await L1.get(
447
- `${a}/ui/joinroom?token=${S}`
455
+ const S = await L1.get(
456
+ `${a}/ui/joinroom?token=${Z}`
448
457
  );
449
- return Z.status === 200 && Z.data ? (C(U.setRoomData(Z.data)), Z.data) : null;
450
- } catch (Z) {
451
- return console.log(Z), Z instanceof p2 && Z.response && Z.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
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 ${S} is invalid. Unable to join room`
462
+ `Token ${Z} is invalid. Unable to join room`
454
463
  )
455
- ), null) : (console.error("Error getting room data", Z), Z instanceof Error ? C(O.setErrorMessage(Z.message)) : C(O.setErrorMessage("Error getting room data")), null);
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, S) => {
466
- const C = a(), Z = S ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected;
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,24 +481,21 @@ const g3 = {}, k1 = u1({
472
481
  });
473
482
  return;
474
483
  }
475
- console.log(
476
- "WebSocket middleware: Requesting status from room:",
477
- Z
478
- ), e.client && x && e.client.send(
484
+ console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
479
485
  JSON.stringify({
480
- type: `/room/${Z}/status`,
486
+ type: `/room/${S}/status`,
481
487
  clientId: b,
482
488
  content: null
483
489
  })
484
490
  );
485
- }, f = async (a, S) => {
491
+ }, f = async (a, Z) => {
486
492
  console.log("WebSocket middleware: Attempting to connect...");
487
- const C = S(), { apiPath: Z } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
488
- if (!Z || !e.token) {
493
+ const C = Z(), { apiPath: S } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
494
+ if (!S || !e.token) {
489
495
  console.log(
490
496
  "WebSocket middleware: Cannot connect - missing requirements",
491
497
  {
492
- hasApiPath: !!Z,
498
+ hasApiPath: !!S,
493
499
  hasToken: !!e.token
494
500
  }
495
501
  );
@@ -507,7 +513,7 @@ const g3 = {}, k1 = u1({
507
513
  }
508
514
  e.waitingToReconnect = !0;
509
515
  try {
510
- const x = await o(Z, e.token, a);
516
+ const x = await o(S, e.token, a);
511
517
  if (!x) {
512
518
  console.log(
513
519
  "WebSocket middleware: Failed to get room data, will retry..."
@@ -515,7 +521,7 @@ const g3 = {}, k1 = u1({
515
521
  return;
516
522
  }
517
523
  console.log("WebSocket middleware: Connecting to websocket");
518
- const C1 = `${Z.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(C1);
524
+ const C1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(C1);
519
525
  e.client = K, K.onopen = (B) => {
520
526
  console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
521
527
  e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
@@ -551,7 +557,7 @@ const g3 = {}, k1 = u1({
551
557
  return;
552
558
  }
553
559
  if (B.code === 4001)
554
- if (!!((D = S().runtimeConfig) != null && D.touchpanelKey))
560
+ if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
555
561
  console.log(
556
562
  "WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
557
563
  );
@@ -654,27 +660,27 @@ const g3 = {}, k1 = u1({
654
660
  }
655
661
  }, h = () => {
656
662
  e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
657
- }, w = (a, S, C) => {
658
- const Z = C(), b = Z.runtimeConfig.websocket.isConnected, x = Z.runtimeConfig.roomData.clientId;
663
+ }, w = (a, Z, C) => {
664
+ const S = C(), b = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
659
665
  e.client && b ? e.client.send(
660
- JSON.stringify({ type: a, clientId: x, content: S })
666
+ JSON.stringify({ type: a, clientId: x, content: Z })
661
667
  ) : console.warn("WebSocket middleware: Cannot send message - not connected");
662
- }, d = (a, S, C) => {
663
- e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][S] = C, console.log("WebSocket middleware: Event handler added", a, S);
664
- }, P = (a, S) => {
665
- e.eventHandlers[a] && (delete e.eventHandlers[a][S], console.log(
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(
666
672
  "WebSocket middleware: Event handler removed",
667
673
  a,
668
- S
674
+ Z
669
675
  ));
670
676
  }, H = (a) => {
671
- const S = a(), { gatewayAppPath: C } = S.appConfig.config, Z = S.runtimeConfig.roomData.roomKey, b = S.runtimeConfig.roomData.systemUuid, x = S.runtimeConfig.roomData.userCode, W = `${C}?uuid=${b}&roomKey=${Z}`;
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}`;
672
678
  window.location.href = x ? `${W}&Code=${x}` : W;
673
679
  };
674
- return (a) => (S) => (C) => {
675
- const Z = S(C);
680
+ return (a) => (Z) => (C) => {
681
+ const S = Z(C);
676
682
  if (!C || typeof C != "object" || !("type" in C))
677
- return Z;
683
+ return S;
678
684
  const b = C;
679
685
  return (async () => {
680
686
  switch (b.type) {
@@ -693,14 +699,14 @@ const g3 = {}, k1 = u1({
693
699
  a.getState
694
700
  );
695
701
  break;
696
- case $3:
702
+ case A3:
697
703
  d(
698
704
  b.payload.eventType,
699
705
  b.payload.key,
700
706
  b.payload.callback
701
707
  );
702
708
  break;
703
- case A3:
709
+ case $3:
704
710
  P(
705
711
  b.payload.eventType,
706
712
  b.payload.key
@@ -731,7 +737,7 @@ const g3 = {}, k1 = u1({
731
737
  }
732
738
  })().catch((x) => {
733
739
  console.error("WebSocket middleware: Error handling action", x);
734
- }), Z;
740
+ }), S;
735
741
  };
736
742
  }, ke = S2({
737
743
  appConfig: be,
@@ -809,11 +815,11 @@ var i1 = {};
809
815
  var m3;
810
816
  function Ve() {
811
817
  return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && function() {
812
- 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"), S = Symbol.iterator, C = "@@iterator";
813
- function Z(s) {
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) {
814
820
  if (s === null || typeof s != "object")
815
821
  return null;
816
- var i = S && s[S] || s[C];
822
+ var i = Z && s[Z] || s[C];
817
823
  return typeof i == "function" ? i : null;
818
824
  }
819
825
  var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -1029,18 +1035,18 @@ function Ve() {
1029
1035
  if (V && p && typeof V.stack == "string") {
1030
1036
  for (var j = V.stack.split(`
1031
1037
  `), k = p.stack.split(`
1032
- `), L = j.length - 1, $ = k.length - 1; L >= 1 && $ >= 0 && j[L] !== k[$]; )
1033
- $--;
1034
- for (; L >= 1 && $ >= 0; L--, $--)
1035
- if (j[L] !== k[$]) {
1036
- if (L !== 1 || $ !== 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)
1037
1043
  do
1038
- if (L--, $--, $ < 0 || j[L] !== k[$]) {
1044
+ if (L--, A--, A < 0 || j[L] !== k[A]) {
1039
1045
  var F = `
1040
1046
  ` + j[L].replace(" at new ", " at ");
1041
1047
  return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && v1.set(s, F), F;
1042
1048
  }
1043
- while (L >= 1 && $ >= 0);
1049
+ while (L >= 1 && A >= 0);
1044
1050
  break;
1045
1051
  }
1046
1052
  }
@@ -1225,8 +1231,8 @@ function Ve() {
1225
1231
  y[T] === void 0 && (y[T] = L[T]);
1226
1232
  }
1227
1233
  if (j || k) {
1228
- var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1229
- j && n2(y, $), k && o2(y, $);
1234
+ var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1235
+ j && n2(y, A), k && o2(y, A);
1230
1236
  }
1231
1237
  return s2(s, j, k, E, p, n3.current, y);
1232
1238
  }
@@ -1297,7 +1303,7 @@ Check the top-level render call using <` + u + ">.");
1297
1303
  else if (_1(s))
1298
1304
  s._store && (s._store.validated = !0);
1299
1305
  else if (s) {
1300
- var E = Z(s);
1306
+ var E = S(s);
1301
1307
  if (typeof E == "function" && E !== s.entries)
1302
1308
  for (var T = E.call(s), y; !(y = T.next()).done; )
1303
1309
  _1(y.value) && i3(y.value, i);
@@ -1353,9 +1359,9 @@ Check the top-level render call using <` + u + ">.");
1353
1359
  var L;
1354
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);
1355
1361
  }
1356
- var $ = c2(s, i, u, E, T);
1357
- if ($ == null)
1358
- return $;
1362
+ var A = c2(s, i, u, E, T);
1363
+ if (A == null)
1364
+ return A;
1359
1365
  if (y) {
1360
1366
  var F = i.children;
1361
1367
  if (F !== void 0)
@@ -1383,7 +1389,7 @@ React keys must be passed directly to JSX without using spread:
1383
1389
  <%s key={someKey} {...props} />`, P1, Q, g2, Q), u3[Q + P1] = !0;
1384
1390
  }
1385
1391
  }
1386
- return s === c ? a2($) : i2($), $;
1392
+ return s === c ? a2(A) : i2(A), A;
1387
1393
  }
1388
1394
  }
1389
1395
  function u2(s, i, u) {
@@ -1440,11 +1446,11 @@ const He = "_mwfit_ppa3l_1", Fe = {
1440
1446
  [t]
1441
1447
  ), v = r1(
1442
1448
  (h, w) => {
1443
- t($e(h, w));
1449
+ t(Ae(h, w));
1444
1450
  },
1445
1451
  [t]
1446
1452
  ), f = r1(() => {
1447
- t(Ae());
1453
+ t($e());
1448
1454
  }, [t]);
1449
1455
  return /* @__PURE__ */ n.jsx(
1450
1456
  O3.Provider,
@@ -2007,7 +2013,7 @@ const Pt = () => {
2007
2013
  ),
2008
2014
  e && /* @__PURE__ */ n.jsx("p", { children: r })
2009
2015
  ] });
2010
- }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", $1 = {
2016
+ }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", A1 = {
2011
2017
  iconbtn: Je,
2012
2018
  iconbtnvert: Xe,
2013
2019
  iconsm: Qe
@@ -2026,29 +2032,29 @@ const Pt = () => {
2026
2032
  onPointerLeave: P,
2027
2033
  ...H
2028
2034
  }) => {
2029
- const [a, S] = Y(!1), C = !v && f ? h : "", Z = !v && (a || f);
2035
+ const [a, Z] = Y(!1), C = !v && f ? h : "", S = !v && (a || f);
2030
2036
  return /* @__PURE__ */ n.jsxs(
2031
2037
  "button",
2032
2038
  {
2033
2039
  type: "button",
2034
- className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${C}`,
2040
+ className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${C}`,
2035
2041
  ...H,
2036
2042
  disabled: v,
2037
2043
  onPointerDown: (b) => {
2038
- S(!0), w == null || w(b);
2044
+ Z(!0), w == null || w(b);
2039
2045
  },
2040
2046
  onPointerUp: (b) => {
2041
- S(!1), d == null || d(b);
2047
+ Z(!1), d == null || d(b);
2042
2048
  },
2043
2049
  onPointerLeave: (b) => {
2044
- S(!1), P == null || P(b);
2050
+ Z(!1), P == null || P(b);
2045
2051
  },
2046
2052
  children: [
2047
2053
  e && /* @__PURE__ */ n.jsx(
2048
2054
  e,
2049
2055
  {
2050
- className: `${r || $1.iconsm}`,
2051
- active: Z,
2056
+ className: `${r || A1.iconsm}`,
2057
+ active: S,
2052
2058
  disabled: v
2053
2059
  }
2054
2060
  ),
@@ -3703,7 +3709,7 @@ const Pt = () => {
3703
3709
  X: E8,
3704
3710
  Xbox: T8
3705
3711
  };
3706
- function $t({
3712
+ function At({
3707
3713
  name: e,
3708
3714
  iconsDictionary: t = _8,
3709
3715
  ...o
@@ -3711,13 +3717,13 @@ function $t({
3711
3717
  const c = t[e] ?? null;
3712
3718
  return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
3713
3719
  }
3714
- const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", a1 = {
3720
+ const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", $8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", a1 = {
3715
3721
  grid: P8,
3716
3722
  header: L8,
3717
- content: $8,
3718
- footer: A8,
3723
+ content: A8,
3724
+ footer: $8,
3719
3725
  volume: B8
3720
- }, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
3726
+ }, $t = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
3721
3727
  /* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
3722
3728
  /* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
3723
3729
  r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
@@ -3730,13 +3736,13 @@ const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A
3730
3736
  /* @__PURE__ */ n.jsx("div", { className: p1.header, children: t }),
3731
3737
  c && /* @__PURE__ */ n.jsx("div", { className: p1.leftNav, children: c }),
3732
3738
  /* @__PURE__ */ n.jsx("div", { className: p1.content, children: o })
3733
- ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", A1 = {
3739
+ ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", $1 = {
3734
3740
  grid: V8,
3735
3741
  header: U8,
3736
3742
  content: H8
3737
- }, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${A1.grid}`, children: [
3738
- /* @__PURE__ */ n.jsx("div", { className: A1.header, children: t }),
3739
- /* @__PURE__ */ n.jsx("div", { className: A1.content, children: o })
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 })
3740
3746
  ] });
3741
3747
  class Ot {
3742
3748
  constructor() {
@@ -3795,19 +3801,19 @@ export {
3795
3801
  R8 as IconMultiWireless,
3796
3802
  E8 as IconMultiX,
3797
3803
  T8 as IconMultiXbox,
3798
- At as MainLayout,
3804
+ $t as MainLayout,
3799
3805
  Vt as MessageHandler,
3800
3806
  W6 as MobileControlProvider,
3801
3807
  I as MultiStateIconContainer,
3802
- $t as NamedIconButton,
3808
+ At as NamedIconButton,
3803
3809
  Ot as ShareState,
3804
3810
  Bt as TechLayout,
3805
3811
  kt as TechPinLayout,
3806
- $3 as WS_ADD_EVENT_HANDLER,
3812
+ A3 as WS_ADD_EVENT_HANDLER,
3807
3813
  _3 as WS_CONNECT,
3808
3814
  P3 as WS_DISCONNECT,
3809
3815
  B3 as WS_RECONNECT,
3810
- A3 as WS_REMOVE_EVENT_HANDLER,
3816
+ $3 as WS_REMOVE_EVENT_HANDLER,
3811
3817
  L3 as WS_SEND_MESSAGE,
3812
3818
  O3 as WebsocketContext,
3813
3819
  T3 as appConfigActions,
@@ -3836,7 +3842,7 @@ export {
3836
3842
  _2 as selectPartnerMetadata,
3837
3843
  X2 as selectRoomAdvancedSharingActive,
3838
3844
  V2 as selectRoomAudioControlPointList,
3839
- A2 as selectRoomByKey,
3845
+ $2 as selectRoomByKey,
3840
3846
  q2 as selectRoomCodecContentDestinationKey,
3841
3847
  L2 as selectRoomConfiguration,
3842
3848
  H2 as selectRoomDestinationList,
@@ -3854,7 +3860,7 @@ export {
3854
3860
  Q2 as selectRoomShareState,
3855
3861
  W2 as selectRoomSourceList,
3856
3862
  k2 as selectRoomVolume,
3857
- $2 as selectRooms,
3863
+ A2 as selectRooms,
3858
3864
  ae as selectRuntimeInfo,
3859
3865
  ie as selectServerIsRunningOnProcessorHardware,
3860
3866
  ge as selectShowPopoverById,
@@ -3886,7 +3892,7 @@ export {
3886
3892
  bt as useGetAllDeviceStateFromRoomConfiguration,
3887
3893
  t6 as useGetAllDevices,
3888
3894
  o6 as useGetAllRooms,
3889
- $6 as useGetCurrentPopoverIdForGroup,
3895
+ A6 as useGetCurrentPopoverIdForGroup,
3890
3896
  _ as useGetDevice,
3891
3897
  V6 as useGetIBasicVolume,
3892
3898
  U6 as useGetIBasicVolumeWithFeedback,
@@ -3960,7 +3966,7 @@ export {
3960
3966
  b6 as useServerIsRunningOnProcessorHardware,
3961
3967
  P6 as useShowIncomingCallModal,
3962
3968
  L6 as useShowModal,
3963
- A6 as useShowPopoverById,
3969
+ $6 as useShowPopoverById,
3964
3970
  xe as useShowReconnect,
3965
3971
  _6 as useShowShutdownModal,
3966
3972
  Tt as useStateIsSynced,
@@ -3976,7 +3982,7 @@ export {
3976
3982
  Le as wsAddEventHandler,
3977
3983
  k3 as wsConnect,
3978
3984
  k6 as wsDisconnect,
3979
- Ae as wsReconnect,
3980
- $e as wsRemoveEventHandler,
3985
+ $e as wsReconnect,
3986
+ Ae as wsRemoveEventHandler,
3981
3987
  Pe as wsSendMessage
3982
3988
  };