@pepperdash/mobile-control-react-app-core 1.23.0 → 1.23.1-feat-essentials-v3.2

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.
@@ -3,21 +3,21 @@ var m2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import M3, { AxiosError as p2 } from "axios";
5
5
  import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
6
- import { createSelector as M, createSlice as d1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
7
- import x3, { createContext as C2, useEffect as x1, useCallback as r1, useContext as b2, useRef as u1, useMemo as n1, useState as Y, useLayoutEffect as Z3 } from "react";
6
+ import { createSelector as M, createSlice as v1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
7
+ import x3, { createContext as C2, useEffect as Z1, useCallback as l1, useContext as b2, useRef as d1, useMemo as n1, useState as Y, useLayoutEffect as Z3 } from "react";
8
8
  import { useNavigate as y2, useRouteError as I2, isRouteErrorResponse as R2 } from "react-router-dom";
9
9
  import * as S3 from "lodash";
10
- const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
11
- Z1,
10
+ const W1 = M2.withTypes(), m = x2.withTypes(), S1 = (e) => e.appConfig, E2 = M(
11
+ S1,
12
12
  (e) => e.config
13
13
  ), T2 = M(
14
- Z1,
14
+ S1,
15
15
  (e) => e.config.apiPath
16
16
  ), D2 = M(
17
- Z1,
17
+ S1,
18
18
  (e) => e.config.logoPath
19
19
  ), _2 = M(
20
- Z1,
20
+ S1,
21
21
  (e) => e.config.partnerMetadata
22
22
  ), X8 = () => m(E2), Q8 = () => m(T2), N8 = () => m(D2), e6 = () => m(_2), j3 = (e) => e.devices, C3 = M(
23
23
  j3,
@@ -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(L2(e));
31
31
  }
32
- const $ = (e) => e.rooms, P2 = (e) => M(
33
- $,
32
+ const A = (e) => e.rooms, P2 = (e) => M(
33
+ A,
34
34
  (t) => t[e] ? t[e].configuration : void 0
35
- ), A2 = M(
36
- $,
35
+ ), $2 = M(
36
+ A,
37
37
  (e) => e
38
- ), $2 = (e) => M(
39
- $,
38
+ ), A2 = (e) => M(
39
+ A,
40
40
  (t) => t[e] ? t[e] : void 0
41
41
  ), k2 = (e) => M(
42
- $,
42
+ A,
43
43
  (t) => t[e] ? t[e].name : void 0
44
- ), B2 = (e, t) => M(
45
- $,
44
+ ), O2 = (e, t) => M(
45
+ A,
46
46
  (o) => o[e] ? o[e].volumes[t] : void 0
47
- ), O2 = (e) => M(
48
- $,
47
+ ), B2 = (e) => M(
48
+ A,
49
49
  (t) => t[e] ? t[e] : void 0
50
50
  ), W2 = (e) => M(
51
- $,
51
+ A,
52
52
  (t) => {
53
53
  var o, c;
54
54
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
55
55
  }
56
56
  ), V2 = (e) => M(
57
- $,
57
+ A,
58
58
  (t) => {
59
59
  var o, c;
60
60
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.audioControlPointList : void 0;
61
61
  }
62
62
  ), U2 = (e) => M(
63
- $,
63
+ A,
64
64
  (t) => {
65
65
  var o, c;
66
66
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations : void 0;
67
67
  }
68
68
  ), F2 = (e) => M(
69
- $,
69
+ A,
70
70
  (t) => {
71
71
  var o, c;
72
72
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList : void 0;
73
73
  }
74
74
  ), H2 = (e) => M(
75
- $,
75
+ A,
76
76
  (t) => {
77
77
  var o, c;
78
78
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.environmentalDevices : void 0;
79
79
  }
80
80
  ), K2 = (e) => M(
81
- $,
81
+ A,
82
82
  (t) => {
83
83
  var o, c, r, l, v, g, h, f;
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 : ((f = (h = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : f.sinkKey) || "";
85
85
  }
86
86
  ), q2 = (e) => M(
87
- $,
87
+ A,
88
88
  (t) => {
89
89
  var o, c, r;
90
90
  return t[e] ? (r = (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList.codecContent) == null ? void 0 : r.sinkKey : void 0;
91
91
  }
92
92
  ), G2 = (e) => M(
93
- $,
93
+ A,
94
94
  (t) => {
95
95
  var o;
96
96
  return t[e] ? (o = t[e]) == null ? void 0 : o.isInCall : void 0;
97
97
  }
98
98
  ), Y2 = (e) => M(
99
- $,
99
+ A,
100
100
  (t) => {
101
101
  var o;
102
102
  return t[e] ? (o = t[e]) == null ? void 0 : o.isWarmingUp : void 0;
103
103
  }
104
104
  ), z2 = (e) => M(
105
- $,
105
+ A,
106
106
  (t) => {
107
107
  var o;
108
108
  return t[e] ? (o = t[e]) == null ? void 0 : o.isCoolingDown : void 0;
109
109
  }
110
110
  ), J2 = (e) => M(
111
- $,
111
+ A,
112
112
  (t) => {
113
113
  var o;
114
114
  return t[e] ? (o = t[e]) == null ? void 0 : o.isOn : void 0;
115
115
  }
116
116
  ), X2 = (e) => M(
117
- $,
117
+ A,
118
118
  (t) => {
119
119
  var o;
120
120
  return t[e] ? (o = t[e]) == null ? void 0 : o.advancedSharingActive : void 0;
121
121
  }
122
122
  ), Q2 = (e) => M(
123
- $,
123
+ A,
124
124
  (t) => {
125
125
  var o;
126
126
  return t[e] ? (o = t[e]) == null ? void 0 : o.share : void 0;
127
127
  }
128
128
  ), N2 = (e) => M(
129
- $,
129
+ A,
130
130
  (t) => {
131
131
  var o, c;
132
132
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
@@ -152,16 +152,16 @@ function n6(e) {
152
152
  );
153
153
  }
154
154
  function o6() {
155
- return m(A2);
155
+ return m($2);
156
156
  }
157
- function S1(e) {
158
- return m($2(e));
157
+ function j1(e) {
158
+ return m(A2(e));
159
159
  }
160
- const s6 = S1, c6 = (e) => m(
160
+ const s6 = j1, c6 = (e) => m(
161
161
  k2(e)
162
162
  ), te = (e, t) => m(
163
- B2(e, t)
164
- ), ne = (e) => m(O2(e)) || void 0, r6 = (e) => m(W2(e)), l6 = (e) => m(V2(e)), i6 = (e) => m(U2(e)), a6 = (e) => m(F2(e)), u6 = (e) => m(H2(e)), d6 = (e) => m(K2(e)), v6 = (e) => m(q2(e)), h6 = (e) => m(G2(e)), g6 = (e) => m(Y2(e)), f6 = (e) => m(z2(e)), w6 = (e) => m(J2(e)), m6 = (e) => m(X2(e)), p6 = (e) => m(Q2(e)), M6 = (e) => m((t) => ee(t, e)), x6 = (e) => m(N2(e)), G = (e) => e.runtimeConfig, oe = M(
163
+ O2(e, t)
164
+ ), ne = (e) => m(B2(e)) || void 0, r6 = (e) => m(W2(e)), l6 = (e) => m(V2(e)), i6 = (e) => m(U2(e)), a6 = (e) => m(F2(e)), u6 = (e) => m(H2(e)), d6 = (e) => m(K2(e)), v6 = (e) => m(q2(e)), h6 = (e) => m(G2(e)), g6 = (e) => m(Y2(e)), f6 = (e) => m(z2(e)), w6 = (e) => m(J2(e)), m6 = (e) => m(X2(e)), p6 = (e) => m(Q2(e)), M6 = (e) => m((t) => ee(t, e)), x6 = (e) => m(N2(e)), G = (e) => e.runtimeConfig, oe = M(
165
165
  G,
166
166
  (e) => e.websocket.isConnected
167
167
  ), se = M(
@@ -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")), L6 = () => m(V1("showIncomingCallModal")), P6 = (e) => m(V1(e)), A6 = (e) => m(he(e)), $6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), k6 = () => 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")), L6 = () => m(V1("showIncomingCallModal")), P6 = (e) => m(V1(e)), $6 = (e) => m(he(e)), A6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), k6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
220
220
  showReconnect: !1,
221
221
  error: "",
222
222
  modalVisibility: {
@@ -225,7 +225,7 @@ const s6 = S1, c6 = (e) => m(
225
225
  },
226
226
  popoverVisibility: {},
227
227
  syncState: []
228
- }, R3 = d1({
228
+ }, R3 = v1({
229
229
  name: "ui",
230
230
  initialState: Se,
231
231
  reducers: {
@@ -271,7 +271,7 @@ const s6 = S1, c6 = (e) => m(
271
271
  e.syncState = [];
272
272
  }
273
273
  }
274
- }), O = R3.actions, je = R3.reducer, Ce = {
274
+ }), W = R3.actions, je = R3.reducer, Ce = {
275
275
  config: {
276
276
  enableDev: !1,
277
277
  apiPath: "",
@@ -281,7 +281,7 @@ const s6 = S1, c6 = (e) => m(
281
281
  loginMode: "",
282
282
  modes: {}
283
283
  }
284
- }, E3 = d1({
284
+ }, E3 = v1({
285
285
  name: "appConfig",
286
286
  initialState: Ce,
287
287
  reducers: {
@@ -289,7 +289,7 @@ const s6 = S1, c6 = (e) => m(
289
289
  e.config = t.payload;
290
290
  }
291
291
  }
292
- }), T3 = E3.actions, be = E3.reducer, v3 = {}, k1 = d1({
292
+ }), T3 = E3.actions, be = E3.reducer, v3 = {}, k1 = v1({
293
293
  name: "devices",
294
294
  initialState: v3,
295
295
  reducers: {
@@ -310,7 +310,7 @@ const s6 = S1, c6 = (e) => m(
310
310
  return v3;
311
311
  }
312
312
  }
313
- }), w1 = {
313
+ }), m1 = {
314
314
  setDeviceState: k1.actions.setDeviceState,
315
315
  clearDevices: k1.actions.clearDevices
316
316
  }, ye = k1.reducer;
@@ -329,7 +329,7 @@ function Re(e) {
329
329
  function Ee(e, t) {
330
330
  sessionStorage.setItem(e, t);
331
331
  }
332
- const g3 = {}, B1 = d1({
332
+ const g3 = {}, O1 = v1({
333
333
  name: "rooms",
334
334
  initialState: g3,
335
335
  reducers: {
@@ -345,10 +345,10 @@ const g3 = {}, B1 = d1({
345
345
  return g3;
346
346
  }
347
347
  }
348
- }), m1 = {
349
- setRoomState: B1.actions.setRoomState,
350
- clearRooms: B1.actions.clearRooms
351
- }, Te = B1.reducer, De = {
348
+ }), p1 = {
349
+ setRoomState: O1.actions.setRoomState,
350
+ clearRooms: O1.actions.clearRooms
351
+ }, Te = O1.reducer, De = {
352
352
  apiVersion: "",
353
353
  serverIsRunningOnProcessorHardware: !1,
354
354
  websocket: {
@@ -379,7 +379,7 @@ const g3 = {}, B1 = d1({
379
379
  userCode: "",
380
380
  qrUrl: ""
381
381
  }
382
- }, D3 = d1({
382
+ }, D3 = v1({
383
383
  name: "runtimeConfig",
384
384
  initialState: De,
385
385
  reducers: {
@@ -414,16 +414,16 @@ const g3 = {}, B1 = d1({
414
414
  e.touchpanelKey = t.payload;
415
415
  }
416
416
  }
417
- }), U = D3.actions, _e = D3.reducer, P1 = M3.create(), _3 = "websocket/connect", L3 = "websocket/disconnect", P3 = "websocket/sendMessage", A3 = "websocket/addEventHandler", $3 = "websocket/removeEventHandler", k3 = "websocket/reconnect", B3 = () => ({ type: _3 }), B6 = () => ({ type: L3 }), Le = (e, t) => ({
417
+ }), U = D3.actions, _e = D3.reducer, P1 = M3.create(), _3 = "websocket/connect", L3 = "websocket/disconnect", P3 = "websocket/sendMessage", $3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", k3 = "websocket/reconnect", O3 = () => ({ type: _3 }), O6 = () => ({ type: L3 }), Le = (e, t) => ({
418
418
  type: P3,
419
419
  payload: { messageType: e, content: t }
420
420
  }), Pe = (e, t, o) => ({
421
- type: A3,
422
- payload: { eventType: e, key: t, callback: o }
423
- }), Ae = (e, t) => ({
424
421
  type: $3,
422
+ payload: { eventType: e, key: t, callback: o }
423
+ }), $e = (e, t) => ({
424
+ type: A3,
425
425
  payload: { eventType: e, key: t }
426
- }), $e = () => ({ type: k3 }), ke = () => {
426
+ }), Ae = () => ({ type: k3 }), ke = () => {
427
427
  const e = {
428
428
  client: null,
429
429
  token: null,
@@ -432,17 +432,17 @@ const g3 = {}, B1 = d1({
432
432
  eventHandlers: {}
433
433
  }, t = async (a) => {
434
434
  try {
435
- const Z = location.pathname.split("/").filter((b) => b.length > 0);
435
+ const Z = location.pathname.split("/").filter((C) => C.length > 0);
436
436
  Z.length >= 5 ? Z.length = 5 : Z.length = 2;
437
- const C = `/${Z.join("/")}`, S = await P1.get(
437
+ const j = `/${Z.join("/")}`, S = await P1.get(
438
438
  "/_local-config/_config.local.json",
439
- { baseURL: C }
439
+ { baseURL: j }
440
440
  );
441
441
  if (S.status === 200 && S.data) {
442
- const b = S.data.apiPath;
442
+ const C = S.data.apiPath;
443
443
  a(T3.setAppConfig(S.data));
444
444
  const x = await P1.get(
445
- `${b}/version`
445
+ `${C}/version`
446
446
  );
447
447
  x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
448
448
  }
@@ -450,47 +450,56 @@ const g3 = {}, B1 = d1({
450
450
  console.error("Error getting config", Z);
451
451
  }
452
452
  return !0;
453
- }, o = async (a, Z, C) => {
453
+ }, o = async (a, Z, j) => {
454
454
  try {
455
455
  const S = await P1.get(
456
456
  `${a}/ui/joinroom?token=${Z}`
457
457
  );
458
- return S.status === 200 && S.data ? (C(U.setRoomData(S.data)), S.data) : null;
458
+ return S.status === 200 && S.data ? (j(U.setRoomData(S.data)), S.data) : null;
459
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(
461
- O.setErrorMessage(
460
+ return console.log(S), S instanceof p2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), j(
461
+ W.setErrorMessage(
462
462
  `Token ${Z} is invalid. Unable to join room`
463
463
  )
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);
464
+ ), null) : (console.error("Error getting room data", S), S instanceof Error ? j(W.setErrorMessage(S.message)) : j(W.setErrorMessage("Error getting room data")), null);
465
465
  }
466
466
  }, c = (a) => {
467
467
  e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
468
- e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(B3());
468
+ e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(O3());
469
469
  }, 5e3);
470
470
  }, r = () => {
471
471
  e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
472
472
  }, l = (a) => {
473
- a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState());
473
+ a(W.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(m1.clearDevices()), a(p1.clearRooms()), a(W.clearAllModals()), a(W.clearSyncState());
474
474
  }, v = (a, Z) => {
475
- const C = a(), S = Z ?? C.runtimeConfig.roomData.roomKey, { clientId: b } = C.runtimeConfig.roomData, x = C.runtimeConfig.websocket.isConnected;
476
- if (!Z || !x || !b) {
475
+ var H;
476
+ const j = a(), S = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: C } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected, k = (H = j.runtimeConfig.roomData.config) == null ? void 0 : H.runtimeInfo.essentialsVersion, o1 = k == null ? void 0 : k.startsWith("3.");
477
+ if (!Z || !x || !C) {
477
478
  console.log("WebSocket middleware: Cannot request room status", {
478
479
  hasRoomKey: !!Z,
479
480
  isConnected: x,
480
- hasClientId: !!b
481
+ hasClientId: !!C
481
482
  });
482
483
  return;
483
484
  }
484
- console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
485
+ console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && (o1 ? (console.log(
486
+ "WebSocket middleware: Essentials V3 detected, requesting additional status..."
487
+ ), e.client.send(
488
+ JSON.stringify({
489
+ type: `/room/${S}/fullStatus`,
490
+ clientId: C,
491
+ content: null
492
+ })
493
+ )) : e.client.send(
485
494
  JSON.stringify({
486
495
  type: `/room/${S}/status`,
487
- clientId: b,
496
+ clientId: C,
488
497
  content: null
489
498
  })
490
- );
499
+ ));
491
500
  }, g = async (a, Z) => {
492
501
  console.log("WebSocket middleware: Attempting to connect...");
493
- const C = Z(), { apiPath: S } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
502
+ const j = Z(), { apiPath: S } = j.appConfig.config, { serverIsRunningOnProcessorHardware: C } = j.runtimeConfig;
494
503
  if (!S || !e.token) {
495
504
  console.log(
496
505
  "WebSocket middleware: Cannot connect - missing requirements",
@@ -521,47 +530,47 @@ const g3 = {}, B1 = d1({
521
530
  return;
522
531
  }
523
532
  console.log("WebSocket middleware: Connecting to websocket");
524
- const C1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(C1);
525
- e.client = K, K.onopen = (k) => {
526
- console.log("WebSocket middleware: Connected", k.type, k.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
527
- e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
533
+ const o1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, H = new WebSocket(o1);
534
+ e.client = H, H.onopen = (O) => {
535
+ console.log("WebSocket middleware: Connected", O.type, O.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
536
+ e.client === H && H.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
528
537
  }, 100);
529
- }, K.onerror = (k) => {
530
- console.error("WebSocket middleware: Error", k), l(a);
531
- }, K.onclose = (k) => {
538
+ }, H.onerror = (O) => {
539
+ console.error("WebSocket middleware: Error", O), l(a);
540
+ }, H.onclose = (O) => {
532
541
  var D;
533
542
  if (console.log(
534
543
  "WebSocket middleware: Disconnected",
535
- k.reason,
536
- k.code
537
- ), k.code === 4100) {
544
+ O.reason,
545
+ O.code
546
+ ), O.code === 4100) {
538
547
  console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(a);
539
548
  return;
540
549
  }
541
- if (e.waitingToReconnect = !0, k.code === 4e3) {
550
+ if (e.waitingToReconnect = !0, O.code === 4e3) {
542
551
  console.log("WebSocket middleware: User code changed"), r(), a(
543
552
  U.setUserCode({ userCode: "", qrUrl: "" })
544
553
  ), a(
545
- O.setErrorMessage(
554
+ W.setErrorMessage(
546
555
  "User code changed. Click reconnect to enter the new code"
547
556
  )
548
557
  ), l(a);
549
558
  return;
550
559
  }
551
- if (k.code === 4002) {
560
+ if (O.code === 4002) {
552
561
  console.log("WebSocket middleware: Room combination changed"), r(), a(
553
- O.setErrorMessage(
562
+ W.setErrorMessage(
554
563
  "Room combination changed. Click Reconnect to re-join the room"
555
564
  )
556
565
  ), l(a);
557
566
  return;
558
567
  }
559
- if (k.code === 4001)
568
+ if (O.code === 4001)
560
569
  if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
561
570
  console.log(
562
571
  "WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
563
572
  );
564
- else if (b)
573
+ else if (C)
565
574
  console.log(
566
575
  "WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
567
576
  );
@@ -569,7 +578,7 @@ const g3 = {}, B1 = d1({
569
578
  console.log(
570
579
  "WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
571
580
  ), r(), a(
572
- O.setErrorMessage(
581
+ W.setErrorMessage(
573
582
  "Processor has disconnected. Click Reconnect to continue."
574
583
  )
575
584
  ), l(a);
@@ -584,15 +593,15 @@ const g3 = {}, B1 = d1({
584
593
  return;
585
594
  }
586
595
  e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
587
- O.setErrorMessage(
596
+ W.setErrorMessage(
588
597
  "Connection lost. Attempting to reconnect..."
589
598
  )
590
- ), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState()), c(a);
591
- }, K.onmessage = (k) => {
599
+ ), a(U.setWebsocketIsConnected(!1)), a(m1.clearDevices()), a(p1.clearRooms()), a(W.clearAllModals()), a(W.clearSyncState()), c(a);
600
+ }, H.onmessage = (O) => {
592
601
  try {
593
- const D = JSON.parse(k.data);
602
+ const D = JSON.parse(O.data);
594
603
  if (D.type === "close") {
595
- K.close(4001, D.content);
604
+ H.close(4001, D.content);
596
605
  return;
597
606
  }
598
607
  if (D.type.startsWith("/system/"))
@@ -605,7 +614,7 @@ const g3 = {}, B1 = d1({
605
614
  );
606
615
  break;
607
616
  case "/system/roomKey":
608
- a(m1.clearRooms()), a(w1.clearDevices()), a(O.clearSyncState()), a(
617
+ a(p1.clearRooms()), a(m1.clearDevices()), a(W.clearSyncState()), a(
609
618
  U.setCurrentRoomKey(
610
619
  D.content
611
620
  )
@@ -640,9 +649,9 @@ const g3 = {}, B1 = d1({
640
649
  z || console.log(
641
650
  "WebSocket middleware: No handlers found for event type",
642
651
  D.type
643
- ), z && Object.values(z).forEach((o1) => {
652
+ ), z && Object.values(z).forEach((s1) => {
644
653
  try {
645
- o1(D);
654
+ s1(D);
646
655
  } catch (b1) {
647
656
  console.error(
648
657
  "WebSocket middleware: Event handler error",
@@ -650,7 +659,7 @@ const g3 = {}, B1 = d1({
650
659
  );
651
660
  }
652
661
  });
653
- } else D.type.startsWith("/room/") ? a(m1.setRoomState(D)) : D.type.startsWith("/device/") && a(w1.setDeviceState(D));
662
+ } else D.type.startsWith("/room/") ? a(p1.setRoomState(D)) : D.type.startsWith("/device/") && a(m1.setDeviceState(D));
654
663
  } catch (D) {
655
664
  console.error("WebSocket middleware: Message handling error", D);
656
665
  }
@@ -660,13 +669,13 @@ const g3 = {}, B1 = d1({
660
669
  }
661
670
  }, h = () => {
662
671
  e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
663
- }, f = (a, Z, C) => {
664
- const S = C(), b = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
665
- e.client && b ? e.client.send(
672
+ }, f = (a, Z, j) => {
673
+ const S = j(), C = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
674
+ e.client && C ? e.client.send(
666
675
  JSON.stringify({ type: a, clientId: x, content: Z })
667
676
  ) : console.warn("WebSocket middleware: Cannot send message - not connected");
668
- }, u = (a, Z, C) => {
669
- e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = C, console.log("WebSocket middleware: Event handler added", a, Z);
677
+ }, u = (a, Z, j) => {
678
+ e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
670
679
  }, L = (a, Z) => {
671
680
  e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
672
681
  "WebSocket middleware: Event handler removed",
@@ -674,19 +683,19 @@ const g3 = {}, B1 = d1({
674
683
  Z
675
684
  ));
676
685
  }, F = (a) => {
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}`;
678
- window.location.href = x ? `${W}&Code=${x}` : W;
686
+ const Z = a(), { gatewayAppPath: j } = Z.appConfig.config, S = Z.runtimeConfig.roomData.roomKey, C = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, k = `${j}?uuid=${C}&roomKey=${S}`;
687
+ window.location.href = x ? `${k}&Code=${x}` : k;
679
688
  };
680
- return (a) => (Z) => (C) => {
681
- const S = Z(C);
682
- if (!C || typeof C != "object" || !("type" in C))
689
+ return (a) => (Z) => (j) => {
690
+ const S = Z(j);
691
+ if (!j || typeof j != "object" || !("type" in j))
683
692
  return S;
684
- const b = C;
693
+ const C = j;
685
694
  return (async () => {
686
- switch (b.type) {
695
+ switch (C.type) {
687
696
  case _3: {
688
- let W = new URLSearchParams(window.location.search).get("token");
689
- W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(a.dispatch), await g(a.dispatch, a.getState);
697
+ let k = new URLSearchParams(window.location.search).get("token");
698
+ k ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, k)) : (k = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = k, await t(a.dispatch), await g(a.dispatch, a.getState);
690
699
  break;
691
700
  }
692
701
  case L3:
@@ -694,39 +703,39 @@ const g3 = {}, B1 = d1({
694
703
  break;
695
704
  case P3:
696
705
  f(
697
- b.payload.messageType,
698
- b.payload.content,
706
+ C.payload.messageType,
707
+ C.payload.content,
699
708
  a.getState
700
709
  );
701
710
  break;
702
- case A3:
711
+ case $3:
703
712
  u(
704
- b.payload.eventType,
705
- b.payload.key,
706
- b.payload.callback
713
+ C.payload.eventType,
714
+ C.payload.key,
715
+ C.payload.callback
707
716
  );
708
717
  break;
709
- case $3:
718
+ case A3:
710
719
  L(
711
- b.payload.eventType,
712
- b.payload.key
720
+ C.payload.eventType,
721
+ C.payload.key
713
722
  );
714
723
  break;
715
724
  case k3:
716
725
  F(a.getState);
717
726
  break;
718
727
  default:
719
- if (C.type === U.setWebsocketIsConnected.type)
720
- C.payload === !0 && (console.log(
728
+ if (j.type === U.setWebsocketIsConnected.type)
729
+ j.payload === !0 && (console.log(
721
730
  "[WebSocket Middleware] Connection established, requesting room status..."
722
731
  ), setTimeout(() => v(a.getState), 100));
723
- else if (C.type === U.setRoomData.type) {
724
- const x = a.getState(), W = C.payload;
725
- x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
732
+ else if (j.type === U.setRoomData.type) {
733
+ const x = a.getState(), k = j.payload;
734
+ x.runtimeConfig.websocket.isConnected && (k != null && k.clientId) && (console.log(
726
735
  "[WebSocket Middleware] Room data received, requesting room status..."
727
736
  ), setTimeout(() => v(a.getState), 100));
728
- } else if (C.type === U.setCurrentRoomKey.type) {
729
- const x = C.payload;
737
+ } else if (j.type === U.setCurrentRoomKey.type) {
738
+ const x = j.payload;
730
739
  x && (console.log(
731
740
  "[WebSocket Middleware] Room changed to:",
732
741
  x,
@@ -739,14 +748,14 @@ const g3 = {}, B1 = d1({
739
748
  console.error("WebSocket middleware: Error handling action", x);
740
749
  }), S;
741
750
  };
742
- }, Be = S2({
751
+ }, Oe = S2({
743
752
  appConfig: be,
744
753
  runtimeConfig: _e,
745
754
  rooms: Te,
746
755
  devices: ye,
747
756
  ui: je
748
- }), Oe = j2({
749
- reducer: Be,
757
+ }), Be = j2({
758
+ reducer: Oe,
750
759
  middleware: (e) => e({
751
760
  serializableCheck: {
752
761
  // Ignore WebSocket actions with callbacks
@@ -754,7 +763,7 @@ const g3 = {}, B1 = d1({
754
763
  }
755
764
  }).concat(ke())
756
765
  }), f3 = M3.create();
757
- function O6() {
766
+ function B6() {
758
767
  const e = W1();
759
768
  return async () => {
760
769
  try {
@@ -778,7 +787,7 @@ function O6() {
778
787
  return !0;
779
788
  };
780
789
  }
781
- var p1 = { exports: {} }, l1 = {};
790
+ var M1 = { exports: {} }, i1 = {};
782
791
  /**
783
792
  * @license React
784
793
  * react-jsx-runtime.production.min.js
@@ -790,7 +799,7 @@ var p1 = { exports: {} }, l1 = {};
790
799
  */
791
800
  var w3;
792
801
  function We() {
793
- if (w3) return l1;
802
+ if (w3) return i1;
794
803
  w3 = 1;
795
804
  var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
796
805
  function v(g, h, f) {
@@ -800,9 +809,9 @@ function We() {
800
809
  if (g && g.defaultProps) for (u in h = g.defaultProps, h) L[u] === void 0 && (L[u] = h[u]);
801
810
  return { $$typeof: t, type: g, key: F, ref: a, props: L, _owner: r.current };
802
811
  }
803
- return l1.Fragment = o, l1.jsx = v, l1.jsxs = v, l1;
812
+ return i1.Fragment = o, i1.jsx = v, i1.jsxs = v, i1;
804
813
  }
805
- var i1 = {};
814
+ var a1 = {};
806
815
  /**
807
816
  * @license React
808
817
  * react-jsx-runtime.development.js
@@ -815,24 +824,24 @@ var i1 = {};
815
824
  var m3;
816
825
  function Ve() {
817
826
  return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && (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"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, C = "@@iterator";
827
+ 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"), g = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
819
828
  function S(s) {
820
829
  if (s === null || typeof s != "object")
821
830
  return null;
822
- var i = Z && s[Z] || s[C];
831
+ var i = Z && s[Z] || s[j];
823
832
  return typeof i == "function" ? i : null;
824
833
  }
825
- var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
834
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
826
835
  function x(s) {
827
836
  {
828
837
  for (var i = arguments.length, d = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
829
838
  d[p - 1] = arguments[p];
830
- W("error", s, d);
839
+ k("error", s, d);
831
840
  }
832
841
  }
833
- function W(s, i, d) {
842
+ function k(s, i, d) {
834
843
  {
835
- var p = b.ReactDebugCurrentFrame, E = p.getStackAddendum();
844
+ var p = C.ReactDebugCurrentFrame, E = p.getStackAddendum();
836
845
  E !== "" && (i += "%s", d = d.concat([E]));
837
846
  var T = d.map(function(y) {
838
847
  return String(y);
@@ -840,14 +849,14 @@ function Ve() {
840
849
  T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
841
850
  }
842
851
  }
843
- var C1 = !1, K = !1, k = !1, D = !1, z = !1, o1;
844
- o1 = Symbol.for("react.module.reference");
852
+ var o1 = !1, H = !1, O = !1, D = !1, z = !1, s1;
853
+ s1 = Symbol.for("react.module.reference");
845
854
  function b1(s) {
846
- return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === u || D || s === a || C1 || K || k || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === L || s.$$typeof === v || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
855
+ return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === u || D || s === a || o1 || H || O || typeof s == "object" && s !== null && (s.$$typeof === F || s.$$typeof === L || s.$$typeof === v || s.$$typeof === g || s.$$typeof === h || // This needs to include all possible module reference object
847
856
  // types supported by any Flight configuration anywhere since
848
857
  // we don't know which Flight build this will end up being used
849
858
  // with.
850
- s.$$typeof === o1 || s.getModuleId !== void 0));
859
+ s.$$typeof === s1 || s.getModuleId !== void 0));
851
860
  }
852
861
  function U3(s, i, d) {
853
862
  var p = s.displayName;
@@ -904,13 +913,13 @@ function Ve() {
904
913
  }
905
914
  return null;
906
915
  }
907
- var X = Object.assign, s1 = 0, F1, H1, K1, q1, G1, Y1, z1;
916
+ var X = Object.assign, c1 = 0, F1, H1, K1, q1, G1, Y1, z1;
908
917
  function J1() {
909
918
  }
910
919
  J1.__reactDisabledLog = !0;
911
920
  function F3() {
912
921
  {
913
- if (s1 === 0) {
922
+ if (c1 === 0) {
914
923
  F1 = console.log, H1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
915
924
  var s = {
916
925
  configurable: !0,
@@ -928,12 +937,12 @@ function Ve() {
928
937
  groupEnd: s
929
938
  });
930
939
  }
931
- s1++;
940
+ c1++;
932
941
  }
933
942
  }
934
943
  function H3() {
935
944
  {
936
- if (s1--, s1 === 0) {
945
+ if (c1--, c1 === 0) {
937
946
  var s = {
938
947
  configurable: !0,
939
948
  enumerable: !0,
@@ -963,11 +972,11 @@ function Ve() {
963
972
  })
964
973
  });
965
974
  }
966
- s1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
975
+ c1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
967
976
  }
968
977
  }
969
- var y1 = b.ReactCurrentDispatcher, I1;
970
- function v1(s, i, d) {
978
+ var y1 = C.ReactCurrentDispatcher, I1;
979
+ function h1(s, i, d) {
971
980
  {
972
981
  if (I1 === void 0)
973
982
  try {
@@ -980,16 +989,16 @@ function Ve() {
980
989
  ` + I1 + s;
981
990
  }
982
991
  }
983
- var R1 = !1, h1;
992
+ var R1 = !1, g1;
984
993
  {
985
994
  var K3 = typeof WeakMap == "function" ? WeakMap : Map;
986
- h1 = new K3();
995
+ g1 = new K3();
987
996
  }
988
997
  function X1(s, i) {
989
998
  if (!s || R1)
990
999
  return "";
991
1000
  {
992
- var d = h1.get(s);
1001
+ var d = g1.get(s);
993
1002
  if (d !== void 0)
994
1003
  return d;
995
1004
  }
@@ -1033,28 +1042,28 @@ function Ve() {
1033
1042
  }
1034
1043
  } catch (V) {
1035
1044
  if (V && p && typeof V.stack == "string") {
1036
- for (var j = V.stack.split(`
1045
+ for (var b = V.stack.split(`
1037
1046
  `), B = p.stack.split(`
1038
- `), P = j.length - 1, A = B.length - 1; P >= 1 && A >= 0 && j[P] !== B[A]; )
1039
- A--;
1040
- for (; P >= 1 && A >= 0; P--, A--)
1041
- if (j[P] !== B[A]) {
1042
- if (P !== 1 || A !== 1)
1047
+ `), P = b.length - 1, $ = B.length - 1; P >= 1 && $ >= 0 && b[P] !== B[$]; )
1048
+ $--;
1049
+ for (; P >= 1 && $ >= 0; P--, $--)
1050
+ if (b[P] !== B[$]) {
1051
+ if (P !== 1 || $ !== 1)
1043
1052
  do
1044
- if (P--, A--, A < 0 || j[P] !== B[A]) {
1045
- var H = `
1046
- ` + j[P].replace(" at new ", " at ");
1047
- return s.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", s.displayName)), typeof s == "function" && h1.set(s, H), H;
1053
+ if (P--, $--, $ < 0 || b[P] !== B[$]) {
1054
+ var K = `
1055
+ ` + b[P].replace(" at new ", " at ");
1056
+ return s.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", s.displayName)), typeof s == "function" && g1.set(s, K), K;
1048
1057
  }
1049
- while (P >= 1 && A >= 0);
1058
+ while (P >= 1 && $ >= 0);
1050
1059
  break;
1051
1060
  }
1052
1061
  }
1053
1062
  } finally {
1054
1063
  R1 = !1, y1.current = T, H3(), Error.prepareStackTrace = E;
1055
1064
  }
1056
- var t1 = s ? s.displayName || s.name : "", Q = t1 ? v1(t1) : "";
1057
- return typeof s == "function" && h1.set(s, Q), Q;
1065
+ var t1 = s ? s.displayName || s.name : "", Q = t1 ? h1(t1) : "";
1066
+ return typeof s == "function" && g1.set(s, Q), Q;
1058
1067
  }
1059
1068
  function q3(s, i, d) {
1060
1069
  return X1(s, !1);
@@ -1063,59 +1072,59 @@ function Ve() {
1063
1072
  var i = s.prototype;
1064
1073
  return !!(i && i.isReactComponent);
1065
1074
  }
1066
- function g1(s, i, d) {
1075
+ function f1(s, i, d) {
1067
1076
  if (s == null)
1068
1077
  return "";
1069
1078
  if (typeof s == "function")
1070
1079
  return X1(s, G3(s));
1071
1080
  if (typeof s == "string")
1072
- return v1(s);
1081
+ return h1(s);
1073
1082
  switch (s) {
1074
1083
  case f:
1075
- return v1("Suspense");
1084
+ return h1("Suspense");
1076
1085
  case u:
1077
- return v1("SuspenseList");
1086
+ return h1("SuspenseList");
1078
1087
  }
1079
1088
  if (typeof s == "object")
1080
1089
  switch (s.$$typeof) {
1081
1090
  case h:
1082
1091
  return q3(s.render);
1083
1092
  case L:
1084
- return g1(s.type, i, d);
1093
+ return f1(s.type, i, d);
1085
1094
  case F: {
1086
1095
  var p = s, E = p._payload, T = p._init;
1087
1096
  try {
1088
- return g1(T(E), i, d);
1097
+ return f1(T(E), i, d);
1089
1098
  } catch {
1090
1099
  }
1091
1100
  }
1092
1101
  }
1093
1102
  return "";
1094
1103
  }
1095
- var c1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
1096
- function f1(s) {
1104
+ var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = C.ReactDebugCurrentFrame;
1105
+ function w1(s) {
1097
1106
  if (s) {
1098
- var i = s._owner, d = g1(s.type, s._source, i ? i.type : null);
1107
+ var i = s._owner, d = f1(s.type, s._source, i ? i.type : null);
1099
1108
  N1.setExtraStackFrame(d);
1100
1109
  } else
1101
1110
  N1.setExtraStackFrame(null);
1102
1111
  }
1103
1112
  function Y3(s, i, d, p, E) {
1104
1113
  {
1105
- var T = Function.call.bind(c1);
1114
+ var T = Function.call.bind(r1);
1106
1115
  for (var y in s)
1107
1116
  if (T(s, y)) {
1108
- var j = void 0;
1117
+ var b = void 0;
1109
1118
  try {
1110
1119
  if (typeof s[y] != "function") {
1111
1120
  var B = Error((p || "React class") + ": " + d + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1112
1121
  throw B.name = "Invariant Violation", B;
1113
1122
  }
1114
- j = s[y](i, y, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1123
+ b = s[y](i, y, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1115
1124
  } catch (P) {
1116
- j = P;
1125
+ b = P;
1117
1126
  }
1118
- j && !(j instanceof Error) && (f1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, y, typeof j), f1(null)), j instanceof Error && !(j.message in Q1) && (Q1[j.message] = !0, f1(E), x("Failed %s type: %s", d, j.message), f1(null));
1127
+ b && !(b instanceof Error) && (w1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, y, typeof b), w1(null)), b instanceof Error && !(b.message in Q1) && (Q1[b.message] = !0, w1(E), x("Failed %s type: %s", d, b.message), w1(null));
1119
1128
  }
1120
1129
  }
1121
1130
  }
@@ -1143,14 +1152,14 @@ function Ve() {
1143
1152
  if (X3(s))
1144
1153
  return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
1145
1154
  }
1146
- var n3 = b.ReactCurrentOwner, Q3 = {
1155
+ var n3 = C.ReactCurrentOwner, Q3 = {
1147
1156
  key: !0,
1148
1157
  ref: !0,
1149
1158
  __self: !0,
1150
1159
  __source: !0
1151
1160
  }, o3, s3;
1152
1161
  function N3(s) {
1153
- if (c1.call(s, "ref")) {
1162
+ if (r1.call(s, "ref")) {
1154
1163
  var i = Object.getOwnPropertyDescriptor(s, "ref").get;
1155
1164
  if (i && i.isReactWarning)
1156
1165
  return !1;
@@ -1158,7 +1167,7 @@ function Ve() {
1158
1167
  return s.ref !== void 0;
1159
1168
  }
1160
1169
  function e2(s) {
1161
- if (c1.call(s, "key")) {
1170
+ if (r1.call(s, "key")) {
1162
1171
  var i = Object.getOwnPropertyDescriptor(s, "key").get;
1163
1172
  if (i && i.isReactWarning)
1164
1173
  return !1;
@@ -1191,7 +1200,7 @@ function Ve() {
1191
1200
  }
1192
1201
  }
1193
1202
  var s2 = function(s, i, d, p, E, T, y) {
1194
- var j = {
1203
+ var b = {
1195
1204
  // This tag allows us to uniquely identify this as a React Element
1196
1205
  $$typeof: t,
1197
1206
  // Built-in properties that belong on the element
@@ -1202,45 +1211,45 @@ function Ve() {
1202
1211
  // Record the component responsible for creating this element.
1203
1212
  _owner: T
1204
1213
  };
1205
- return j._store = {}, Object.defineProperty(j._store, "validated", {
1214
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
1206
1215
  configurable: !1,
1207
1216
  enumerable: !1,
1208
1217
  writable: !0,
1209
1218
  value: !1
1210
- }), Object.defineProperty(j, "_self", {
1219
+ }), Object.defineProperty(b, "_self", {
1211
1220
  configurable: !1,
1212
1221
  enumerable: !1,
1213
1222
  writable: !1,
1214
1223
  value: p
1215
- }), Object.defineProperty(j, "_source", {
1224
+ }), Object.defineProperty(b, "_source", {
1216
1225
  configurable: !1,
1217
1226
  enumerable: !1,
1218
1227
  writable: !1,
1219
1228
  value: E
1220
- }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
1229
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
1221
1230
  };
1222
1231
  function c2(s, i, d, p, E) {
1223
1232
  {
1224
- var T, y = {}, j = null, B = null;
1225
- d !== void 0 && (t3(d), j = "" + d), e2(i) && (t3(i.key), j = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
1233
+ var T, y = {}, b = null, B = null;
1234
+ d !== void 0 && (t3(d), b = "" + d), e2(i) && (t3(i.key), b = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
1226
1235
  for (T in i)
1227
- c1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
1236
+ r1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
1228
1237
  if (s && s.defaultProps) {
1229
1238
  var P = s.defaultProps;
1230
1239
  for (T in P)
1231
1240
  y[T] === void 0 && (y[T] = P[T]);
1232
1241
  }
1233
- if (j || B) {
1234
- var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1235
- j && n2(y, A), B && o2(y, A);
1242
+ if (b || B) {
1243
+ var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1244
+ b && n2(y, $), B && o2(y, $);
1236
1245
  }
1237
- return s2(s, j, B, E, p, n3.current, y);
1246
+ return s2(s, b, B, E, p, n3.current, y);
1238
1247
  }
1239
1248
  }
1240
- var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
1249
+ var T1 = C.ReactCurrentOwner, c3 = C.ReactDebugCurrentFrame;
1241
1250
  function e1(s) {
1242
1251
  if (s) {
1243
- var i = s._owner, d = g1(s.type, s._source, i ? i.type : null);
1252
+ var i = s._owner, d = f1(s.type, s._source, i ? i.type : null);
1244
1253
  c3.setExtraStackFrame(d);
1245
1254
  } else
1246
1255
  c3.setExtraStackFrame(null);
@@ -1352,30 +1361,30 @@ Check the top-level render call using <` + d + ">.");
1352
1361
  {
1353
1362
  var y = b1(s);
1354
1363
  if (!y) {
1355
- var j = "";
1356
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1364
+ var b = "";
1365
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1357
1366
  var B = r2();
1358
- B ? j += B : j += r3();
1367
+ B ? b += B : b += r3();
1359
1368
  var P;
1360
- s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : P = 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", P, j);
1369
+ s === null ? P = "null" : E1(s) ? P = "array" : s !== void 0 && s.$$typeof === t ? (P = "<" + (J(s.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : P = 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", P, b);
1361
1370
  }
1362
- var A = c2(s, i, d, E, T);
1363
- if (A == null)
1364
- return A;
1371
+ var $ = c2(s, i, d, E, T);
1372
+ if ($ == null)
1373
+ return $;
1365
1374
  if (y) {
1366
- var H = i.children;
1367
- if (H !== void 0)
1375
+ var K = i.children;
1376
+ if (K !== void 0)
1368
1377
  if (p)
1369
- if (E1(H)) {
1370
- for (var t1 = 0; t1 < H.length; t1++)
1371
- a3(H[t1], s);
1372
- Object.freeze && Object.freeze(H);
1378
+ if (E1(K)) {
1379
+ for (var t1 = 0; t1 < K.length; t1++)
1380
+ a3(K[t1], s);
1381
+ Object.freeze && Object.freeze(K);
1373
1382
  } else
1374
1383
  x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1375
1384
  else
1376
- a3(H, s);
1385
+ a3(K, s);
1377
1386
  }
1378
- if (c1.call(i, "key")) {
1387
+ if (r1.call(i, "key")) {
1379
1388
  var Q = J(s), V = Object.keys(i).filter(function(f2) {
1380
1389
  return f2 !== "key";
1381
1390
  }), L1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
@@ -1389,7 +1398,7 @@ React keys must be passed directly to JSX without using spread:
1389
1398
  <%s key={someKey} {...props} />`, L1, Q, g2, Q), u3[Q + L1] = !0;
1390
1399
  }
1391
1400
  }
1392
- return s === c ? a2(A) : i2(A), A;
1401
+ return s === c ? a2($) : i2($), $;
1393
1402
  }
1394
1403
  }
1395
1404
  function u2(s, i, d) {
@@ -1399,12 +1408,12 @@ React keys must be passed directly to JSX without using spread:
1399
1408
  return d3(s, i, d, !1);
1400
1409
  }
1401
1410
  var v2 = d2, h2 = u2;
1402
- i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
1403
- })()), i1;
1411
+ a1.Fragment = c, a1.jsx = v2, a1.jsxs = h2;
1412
+ })()), a1;
1404
1413
  }
1405
1414
  var p3;
1406
1415
  function Ue() {
1407
- return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? p1.exports = We() : p1.exports = Ve()), p1.exports;
1416
+ return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? M1.exports = We() : M1.exports = Ve()), M1.exports;
1408
1417
  }
1409
1418
  var n = Ue();
1410
1419
  const Fe = "_mwfit_ppa3l_1", He = {
@@ -1418,7 +1427,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
1418
1427
  ] }),
1419
1428
  c && /* @__PURE__ */ n.jsx("button", { className: "btn btn-secondary btn-lg", onPointerDown: e, children: "Reconnect" })
1420
1429
  ] });
1421
- }, O3 = C2({
1430
+ }, B3 = C2({
1422
1431
  sendMessage: () => null,
1423
1432
  sendSimpleMessage: () => null,
1424
1433
  addEventHandler: () => null,
@@ -1426,34 +1435,34 @@ const Fe = "_mwfit_ppa3l_1", He = {
1426
1435
  reconnect: () => null
1427
1436
  }), qe = ({ children: e }) => {
1428
1437
  const t = W1(), o = I3();
1429
- x1(() => {
1430
- t(B3());
1438
+ Z1(() => {
1439
+ t(O3());
1431
1440
  }, [t]);
1432
- const c = r1(
1441
+ const c = l1(
1433
1442
  (h, f) => {
1434
1443
  t(Le(h, f));
1435
1444
  },
1436
1445
  [t]
1437
- ), r = r1(
1446
+ ), r = l1(
1438
1447
  (h, f) => {
1439
1448
  c(h, { value: f });
1440
1449
  },
1441
1450
  [c]
1442
- ), l = r1(
1451
+ ), l = l1(
1443
1452
  (h, f, u) => {
1444
1453
  t(Pe(h, f, u));
1445
1454
  },
1446
1455
  [t]
1447
- ), v = r1(
1456
+ ), v = l1(
1448
1457
  (h, f) => {
1449
- t(Ae(h, f));
1458
+ t($e(h, f));
1450
1459
  },
1451
1460
  [t]
1452
- ), g = r1(() => {
1453
- t($e());
1461
+ ), g = l1(() => {
1462
+ t(Ae());
1454
1463
  }, [t]);
1455
1464
  return /* @__PURE__ */ n.jsx(
1456
- O3.Provider,
1465
+ B3.Provider,
1457
1466
  {
1458
1467
  value: {
1459
1468
  sendMessage: c,
@@ -1465,9 +1474,9 @@ const Fe = "_mwfit_ppa3l_1", He = {
1465
1474
  children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
1466
1475
  }
1467
1476
  );
1468
- }, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Oe, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
1477
+ }, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Be, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
1469
1478
  function R() {
1470
- return b2(O3);
1479
+ return b2(B3);
1471
1480
  }
1472
1481
  function Ge({
1473
1482
  onPress: e,
@@ -1476,7 +1485,7 @@ function Ge({
1476
1485
  onPressedButNotHeld: c,
1477
1486
  holdTimeMs: r = 500
1478
1487
  }) {
1479
- const l = u1(null), v = u1(!1), g = u1(!1);
1488
+ const l = d1(null), v = d1(!1), g = d1(!1);
1480
1489
  function h() {
1481
1490
  v.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
1482
1491
  g.current = !0, o == null || o(), l.current = null;
@@ -1495,7 +1504,7 @@ function Ge({
1495
1504
  };
1496
1505
  }
1497
1506
  function w(e, t) {
1498
- const { sendMessage: c } = R(), r = u1(null);
1507
+ const { sendMessage: c } = R(), r = d1(null);
1499
1508
  function l() {
1500
1509
  c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
1501
1510
  c(`${e}/${t}`, { value: "held" });
@@ -1506,7 +1515,7 @@ function w(e, t) {
1506
1515
  }
1507
1516
  return Ge({ onPress: l, onRelease: v });
1508
1517
  }
1509
- function j1(e) {
1518
+ function C1(e) {
1510
1519
  const { sendMessage: t } = R(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
1511
1520
  return n1(() => ({
1512
1521
  volumeUp: o,
@@ -1523,7 +1532,7 @@ function V6(e) {
1523
1532
  }), [e, t, o, c]);
1524
1533
  }
1525
1534
  function W3(e, t) {
1526
- const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
1535
+ const { sendMessage: o, sendSimpleMessage: c } = R(), r = C1(e);
1527
1536
  return n1(() => {
1528
1537
  if (!r) {
1529
1538
  console.log("baseVolume is undefined");
@@ -1543,7 +1552,7 @@ function W3(e, t) {
1543
1552
  }, [r, t, e, o, c]);
1544
1553
  }
1545
1554
  function U6(e, t) {
1546
- const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
1555
+ const { sendMessage: o, sendSimpleMessage: c } = R(), r = C1(e);
1547
1556
  return n1(() => {
1548
1557
  if (!r) {
1549
1558
  console.log("baseVolume is undefined");
@@ -1579,7 +1588,7 @@ function V3(e) {
1579
1588
  t(`/device/${e}/powerToggle`, null);
1580
1589
  } };
1581
1590
  }
1582
- function O1(e) {
1591
+ function B1(e) {
1583
1592
  const { sendMessage: t } = R(), o = _(e);
1584
1593
  return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
1585
1594
  t(`/device/${e}/${r}`, null);
@@ -1597,7 +1606,7 @@ function ze(e) {
1597
1606
  return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
1598
1607
  }
1599
1608
  function F6(e) {
1600
- const t = _(e), o = V3(e), c = O1(e), r = O1(e), l = Ye(e), v = ze(e);
1609
+ const t = _(e), o = V3(e), c = B1(e), r = B1(e), l = Ye(e), v = ze(e);
1601
1610
  if (t)
1602
1611
  return {
1603
1612
  avrState: t,
@@ -1610,7 +1619,7 @@ function F6(e) {
1610
1619
  }
1611
1620
  const H6 = ({ className: e }) => {
1612
1621
  const [t, o] = Y();
1613
- return x1(() => {
1622
+ return Z1(() => {
1614
1623
  setInterval(() => {
1615
1624
  const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1616
1625
  o(c);
@@ -1766,7 +1775,7 @@ function at(e) {
1766
1775
  } } : void 0;
1767
1776
  }
1768
1777
  function ut(e) {
1769
- const { sendMessage: t } = R(), o = S1(e);
1778
+ const { sendMessage: t } = R(), o = j1(e);
1770
1779
  return o ? { roomEventScheduleState: o, save: (r) => {
1771
1780
  t(`/room/${e}/saveScheduledEvents`, r);
1772
1781
  } } : void 0;
@@ -1804,7 +1813,7 @@ function ft(e) {
1804
1813
  } } : void 0;
1805
1814
  }
1806
1815
  function wt(e) {
1807
- const { sendMessage: t } = R(), o = S1(e);
1816
+ const { sendMessage: t } = R(), o = j1(e);
1808
1817
  return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
1809
1818
  t(`/room/${e}/setShutdownPromptSeconds`, g);
1810
1819
  }, shutdownStart: () => {
@@ -1824,7 +1833,7 @@ function mt(e) {
1824
1833
  } } : void 0;
1825
1834
  }
1826
1835
  function pt(e) {
1827
- const { sendMessage: t } = R(), o = S1(e);
1836
+ const { sendMessage: t } = R(), o = j1(e);
1828
1837
  return o ? { techPasswordState: o, validatePassword: (l) => {
1829
1838
  t(`/room/${e}/validateTechPassword`, { password: l });
1830
1839
  }, setPassword: (l, v) => {
@@ -1874,7 +1883,7 @@ function St(e) {
1874
1883
  } : void 0;
1875
1884
  }
1876
1885
  function jt(e) {
1877
- const t = _(e), o = V3(e), c = O1(e);
1886
+ const t = _(e), o = V3(e), c = B1(e);
1878
1887
  if (!t) return;
1879
1888
  const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
1880
1889
  return {
@@ -1886,12 +1895,12 @@ function jt(e) {
1886
1895
  }
1887
1896
  function Ct(e) {
1888
1897
  const t = `/device/${e}`;
1889
- return j1(t);
1898
+ return C1(t);
1890
1899
  }
1891
1900
  const bt = ({
1892
1901
  config: e
1893
1902
  }, t = !0) => {
1894
- const { sendMessage: o } = R(), c = u1(!1), r = n1(() => {
1903
+ const { sendMessage: o } = R(), c = d1(!1), r = n1(() => {
1895
1904
  var v, g, h, f;
1896
1905
  if (!e)
1897
1906
  return;
@@ -1917,7 +1926,7 @@ const bt = ({
1917
1926
  u.sourceKey && u.sourceKey !== "$off" && l.add(u.sourceKey);
1918
1927
  return l;
1919
1928
  }, [e]);
1920
- return x1(() => {
1929
+ return Z1(() => {
1921
1930
  !t || !r || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((l) => {
1922
1931
  o(`/device/${l}/fullStatus`, { deviceKey: l });
1923
1932
  }), c.current = !0);
@@ -1935,7 +1944,7 @@ function yt(e, t) {
1935
1944
  }
1936
1945
  function It(e, t) {
1937
1946
  const o = `/room/${e}/volumes/${t}`;
1938
- return j1(o);
1947
+ return C1(o);
1939
1948
  }
1940
1949
  function Rt(e, t) {
1941
1950
  const o = te(e, t), c = `/room/${e}/volumes/${t}`;
@@ -1960,9 +1969,9 @@ function Et(e) {
1960
1969
  function Tt(e) {
1961
1970
  const t = W1();
1962
1971
  return [() => {
1963
- t(O.addSyncState(e));
1972
+ t(W.addSyncState(e));
1964
1973
  }, () => {
1965
- t(O.removeSyncState(e));
1974
+ t(W.removeSyncState(e));
1966
1975
  }, Ze(e)];
1967
1976
  }
1968
1977
  function Dt() {
@@ -1983,7 +1992,7 @@ function _t() {
1983
1992
  const l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1984
1993
  c(l);
1985
1994
  }
1986
- return x1(() => {
1995
+ return Z1(() => {
1987
1996
  r();
1988
1997
  const l = setInterval(() => {
1989
1998
  r();
@@ -2014,7 +2023,7 @@ const Lt = () => {
2014
2023
  ),
2015
2024
  e && /* @__PURE__ */ n.jsx("p", { children: r })
2016
2025
  ] });
2017
- }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", A1 = {
2026
+ }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", $1 = {
2018
2027
  iconbtn: Je,
2019
2028
  iconbtnvert: Xe,
2020
2029
  iconsm: Qe
@@ -2033,28 +2042,28 @@ const Lt = () => {
2033
2042
  onPointerLeave: L,
2034
2043
  ...F
2035
2044
  }) => {
2036
- const [a, Z] = Y(!1), C = !v && g ? h : "", S = !v && (a || g);
2045
+ const [a, Z] = Y(!1), j = !v && g ? h : "", S = !v && (a || g);
2037
2046
  return /* @__PURE__ */ n.jsxs(
2038
2047
  "button",
2039
2048
  {
2040
2049
  type: "button",
2041
- className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${C}`,
2050
+ className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${j}`,
2042
2051
  ...F,
2043
2052
  disabled: v,
2044
- onPointerDown: (b) => {
2045
- Z(!0), f == null || f(b);
2053
+ onPointerDown: (C) => {
2054
+ Z(!0), f == null || f(C);
2046
2055
  },
2047
- onPointerUp: (b) => {
2048
- Z(!1), u == null || u(b);
2056
+ onPointerUp: (C) => {
2057
+ Z(!1), u == null || u(C);
2049
2058
  },
2050
- onPointerLeave: (b) => {
2051
- Z(!1), L == null || L(b);
2059
+ onPointerLeave: (C) => {
2060
+ Z(!1), L == null || L(C);
2052
2061
  },
2053
2062
  children: [
2054
2063
  e && /* @__PURE__ */ n.jsx(
2055
2064
  e,
2056
2065
  {
2057
- className: `${r || A1.iconsm}`,
2066
+ className: `${r || $1.iconsm}`,
2058
2067
  active: S,
2059
2068
  disabled: v
2060
2069
  }
@@ -3710,7 +3719,7 @@ const Lt = () => {
3710
3719
  X: E8,
3711
3720
  Xbox: T8
3712
3721
  };
3713
- function At({
3722
+ function $t({
3714
3723
  name: e,
3715
3724
  iconsDictionary: t = _8,
3716
3725
  ...o
@@ -3718,34 +3727,34 @@ function At({
3718
3727
  const c = t[e] ?? null;
3719
3728
  return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
3720
3729
  }
3721
- const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", $8 = "_footer_1cmpp_23", k8 = "_volume_1cmpp_29", a1 = {
3730
+ const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", k8 = "_volume_1cmpp_29", u1 = {
3722
3731
  grid: L8,
3723
3732
  header: P8,
3724
- content: A8,
3725
- footer: $8,
3733
+ content: $8,
3734
+ footer: A8,
3726
3735
  volume: k8
3727
- }, $t = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
3728
- /* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
3729
- /* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
3730
- r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
3731
- /* @__PURE__ */ n.jsx("div", { className: a1.footer, children: t })
3732
- ] }), B8 = "_grid_11w5q_1", O8 = "_header_11w5q_11", W8 = "_content_11w5q_17", M1 = {
3733
- grid: B8,
3734
- header: O8,
3736
+ }, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: u1.grid, children: [
3737
+ /* @__PURE__ */ n.jsx("div", { className: u1.header, children: e }),
3738
+ /* @__PURE__ */ n.jsx("div", { className: u1.content, children: o }),
3739
+ r && /* @__PURE__ */ n.jsx("div", { className: u1.volume, children: c }),
3740
+ /* @__PURE__ */ n.jsx("div", { className: u1.footer, children: t })
3741
+ ] }), O8 = "_grid_11w5q_1", B8 = "_header_11w5q_11", W8 = "_content_11w5q_17", x1 = {
3742
+ grid: O8,
3743
+ header: B8,
3735
3744
  content: W8
3736
- }, kt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${M1.grid}`, children: [
3737
- /* @__PURE__ */ n.jsx("div", { className: M1.header, children: t }),
3738
- c && /* @__PURE__ */ n.jsx("div", { className: M1.leftNav, children: c }),
3739
- /* @__PURE__ */ n.jsx("div", { className: M1.content, children: o })
3740
- ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17", $1 = {
3745
+ }, kt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${x1.grid}`, children: [
3746
+ /* @__PURE__ */ n.jsx("div", { className: x1.header, children: t }),
3747
+ c && /* @__PURE__ */ n.jsx("div", { className: x1.leftNav, children: c }),
3748
+ /* @__PURE__ */ n.jsx("div", { className: x1.content, children: o })
3749
+ ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17", A1 = {
3741
3750
  grid: V8,
3742
3751
  header: U8,
3743
3752
  content: F8
3744
- }, Bt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${$1.grid}`, children: [
3745
- /* @__PURE__ */ n.jsx("div", { className: $1.header, children: t }),
3746
- /* @__PURE__ */ n.jsx("div", { className: $1.content, children: o })
3753
+ }, Ot = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${A1.grid}`, children: [
3754
+ /* @__PURE__ */ n.jsx("div", { className: A1.header, children: t }),
3755
+ /* @__PURE__ */ n.jsx("div", { className: A1.content, children: o })
3747
3756
  ] });
3748
- class Ot {
3757
+ class Bt {
3749
3758
  constructor() {
3750
3759
  q(this, "currentShareText");
3751
3760
  q(this, "enabled");
@@ -3802,29 +3811,29 @@ export {
3802
3811
  R8 as IconMultiWireless,
3803
3812
  E8 as IconMultiX,
3804
3813
  T8 as IconMultiXbox,
3805
- $t as MainLayout,
3814
+ At as MainLayout,
3806
3815
  Vt as MessageHandler,
3807
3816
  W6 as MobileControlProvider,
3808
3817
  I as MultiStateIconContainer,
3809
- At as NamedIconButton,
3810
- Ot as ShareState,
3818
+ $t as NamedIconButton,
3819
+ Bt as ShareState,
3811
3820
  kt as TechLayout,
3812
- Bt as TechPinLayout,
3813
- A3 as WS_ADD_EVENT_HANDLER,
3821
+ Ot as TechPinLayout,
3822
+ $3 as WS_ADD_EVENT_HANDLER,
3814
3823
  _3 as WS_CONNECT,
3815
3824
  L3 as WS_DISCONNECT,
3816
3825
  k3 as WS_RECONNECT,
3817
- $3 as WS_REMOVE_EVENT_HANDLER,
3826
+ A3 as WS_REMOVE_EVENT_HANDLER,
3818
3827
  P3 as WS_SEND_MESSAGE,
3819
- O3 as WebsocketContext,
3828
+ B3 as WebsocketContext,
3820
3829
  T3 as appConfigActions,
3821
3830
  ke as createWebSocketMiddleware,
3822
- w1 as devicesActions,
3831
+ m1 as devicesActions,
3823
3832
  Wt as getBaseLocation,
3824
3833
  f3 as httpClient,
3825
3834
  _8 as iconsDictionary,
3826
3835
  Ut as roomOffSourceKey,
3827
- m1 as roomsActions,
3836
+ p1 as roomsActions,
3828
3837
  U as runtimeConfigActions,
3829
3838
  C3 as selectAllDevices,
3830
3839
  T2 as selectApiPath,
@@ -3843,7 +3852,7 @@ export {
3843
3852
  _2 as selectPartnerMetadata,
3844
3853
  X2 as selectRoomAdvancedSharingActive,
3845
3854
  V2 as selectRoomAudioControlPointList,
3846
- $2 as selectRoomByKey,
3855
+ A2 as selectRoomByKey,
3847
3856
  q2 as selectRoomCodecContentDestinationKey,
3848
3857
  P2 as selectRoomConfiguration,
3849
3858
  F2 as selectRoomDestinationList,
@@ -3855,13 +3864,13 @@ export {
3855
3864
  J2 as selectRoomIsOn,
3856
3865
  Y2 as selectRoomIsWarmingUp,
3857
3866
  se as selectRoomKey,
3858
- O2 as selectRoomLevelControls,
3867
+ B2 as selectRoomLevelControls,
3859
3868
  k2 as selectRoomName,
3860
3869
  K2 as selectRoomProgramAudioDestinationKey,
3861
3870
  Q2 as selectRoomShareState,
3862
3871
  W2 as selectRoomSourceList,
3863
- B2 as selectRoomVolume,
3864
- A2 as selectRooms,
3872
+ O2 as selectRoomVolume,
3873
+ $2 as selectRooms,
3865
3874
  ae as selectRuntimeInfo,
3866
3875
  ie as selectServerIsRunningOnProcessorHardware,
3867
3876
  ge as selectShowPopoverById,
@@ -3872,8 +3881,8 @@ export {
3872
3881
  le as selectUserCode,
3873
3882
  oe as selectWsIsConnected,
3874
3883
  N2 as selectZoomRoomControllerKey,
3875
- Oe as store,
3876
- O as uiActions,
3884
+ Be as store,
3885
+ W as uiActions,
3877
3886
  je as uiReducer,
3878
3887
  Q8 as useApiPath,
3879
3888
  X8 as useAppConfig,
@@ -3893,14 +3902,14 @@ export {
3893
3902
  bt as useGetAllDeviceStateFromRoomConfiguration,
3894
3903
  t6 as useGetAllDevices,
3895
3904
  o6 as useGetAllRooms,
3896
- A6 as useGetCurrentPopoverIdForGroup,
3905
+ $6 as useGetCurrentPopoverIdForGroup,
3897
3906
  _ as useGetDevice,
3898
3907
  V6 as useGetIBasicVolume,
3899
3908
  U6 as useGetIBasicVolumeWithFeedback,
3900
3909
  s6 as useGetRoom,
3901
3910
  M6 as useGetRoomDisplayStates,
3902
3911
  x6 as useGetZoomRoomControllerKey,
3903
- j1 as useIBasicVolume,
3912
+ C1 as useIBasicVolume,
3904
3913
  W3 as useIBasicVolumeWithFeedback,
3905
3914
  G6 as useIChannel,
3906
3915
  Y6 as useIColor,
@@ -3912,7 +3921,7 @@ export {
3912
3921
  tt as useIEssentialsRoomCombiner,
3913
3922
  nt as useIHasCameras,
3914
3923
  V3 as useIHasPowerControl,
3915
- O1 as useIHasSelectableItems,
3924
+ B1 as useIHasSelectableItems,
3916
3925
  ot as useIHumiditySensor,
3917
3926
  st as useILevelControls,
3918
3927
  ct as useILightingScenes,
@@ -3932,7 +3941,7 @@ export {
3932
3941
  Mt as useITemperatureSensor,
3933
3942
  xt as useITheme,
3934
3943
  Zt as useITransport,
3935
- O6 as useInitialize,
3944
+ B6 as useInitialize,
3936
3945
  T6 as useInterfacesForDevice,
3937
3946
  Ze as useIsSyncStateValuePresent,
3938
3947
  R6 as useIsTouchpanel,
@@ -3960,14 +3969,14 @@ export {
3960
3969
  d6 as useRoomProgramAudioDestinationKey,
3961
3970
  p6 as useRoomShareState,
3962
3971
  r6 as useRoomSourceList,
3963
- S1 as useRoomState,
3972
+ j1 as useRoomState,
3964
3973
  te as useRoomVolume,
3965
3974
  y6 as useRuntimeInfo,
3966
3975
  Et as useScroll,
3967
3976
  b6 as useServerIsRunningOnProcessorHardware,
3968
3977
  L6 as useShowIncomingCallModal,
3969
3978
  P6 as useShowModal,
3970
- $6 as useShowPopoverById,
3979
+ A6 as useShowPopoverById,
3971
3980
  xe as useShowReconnect,
3972
3981
  _6 as useShowShutdownModal,
3973
3982
  Tt as useStateIsSynced,
@@ -3981,9 +3990,9 @@ export {
3981
3990
  R as useWebsocketContext,
3982
3991
  I3 as useWsIsConnected,
3983
3992
  Pe as wsAddEventHandler,
3984
- B3 as wsConnect,
3985
- B6 as wsDisconnect,
3986
- $e as wsReconnect,
3987
- Ae as wsRemoveEventHandler,
3993
+ O3 as wsConnect,
3994
+ O6 as wsDisconnect,
3995
+ Ae as wsReconnect,
3996
+ $e as wsRemoveEventHandler,
3988
3997
  Le as wsSendMessage
3989
3998
  };