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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,55 @@ 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
+ const j = a(), S = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: C } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected, o1 = j.runtimeConfig.apiVersion.startsWith("3.");
476
+ if (!Z || !x || !C) {
477
477
  console.log("WebSocket middleware: Cannot request room status", {
478
478
  hasRoomKey: !!Z,
479
479
  isConnected: x,
480
- hasClientId: !!b
480
+ hasClientId: !!C
481
481
  });
482
482
  return;
483
483
  }
484
- console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
484
+ console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && (o1 ? (console.log(
485
+ "WebSocket middleware: Essentials V3 detected, requesting additional status..."
486
+ ), e.client.send(
487
+ JSON.stringify({
488
+ type: `/room/${S}/fullStatus`,
489
+ clientId: C,
490
+ content: null
491
+ })
492
+ )) : e.client.send(
485
493
  JSON.stringify({
486
494
  type: `/room/${S}/status`,
487
- clientId: b,
495
+ clientId: C,
488
496
  content: null
489
497
  })
490
- );
498
+ ));
491
499
  }, g = async (a, Z) => {
492
500
  console.log("WebSocket middleware: Attempting to connect...");
493
- const C = Z(), { apiPath: S } = C.appConfig.config, { serverIsRunningOnProcessorHardware: b } = C.runtimeConfig;
501
+ const j = Z(), { apiPath: S } = j.appConfig.config, { serverIsRunningOnProcessorHardware: C } = j.runtimeConfig;
494
502
  if (!S || !e.token) {
495
503
  console.log(
496
504
  "WebSocket middleware: Cannot connect - missing requirements",
@@ -521,47 +529,47 @@ const g3 = {}, B1 = d1({
521
529
  return;
522
530
  }
523
531
  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(() => {
532
+ const o1 = `${S.replace("http", "ws")}/ui/join/${e.token}?clientId=${x.clientId}`, K = new WebSocket(o1);
533
+ e.client = K, K.onopen = (O) => {
534
+ console.log("WebSocket middleware: Connected", O.type, O.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
527
535
  e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
528
536
  }, 100);
529
- }, K.onerror = (k) => {
530
- console.error("WebSocket middleware: Error", k), l(a);
531
- }, K.onclose = (k) => {
537
+ }, K.onerror = (O) => {
538
+ console.error("WebSocket middleware: Error", O), l(a);
539
+ }, K.onclose = (O) => {
532
540
  var D;
533
541
  if (console.log(
534
542
  "WebSocket middleware: Disconnected",
535
- k.reason,
536
- k.code
537
- ), k.code === 4100) {
543
+ O.reason,
544
+ O.code
545
+ ), O.code === 4100) {
538
546
  console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(a);
539
547
  return;
540
548
  }
541
- if (e.waitingToReconnect = !0, k.code === 4e3) {
549
+ if (e.waitingToReconnect = !0, O.code === 4e3) {
542
550
  console.log("WebSocket middleware: User code changed"), r(), a(
543
551
  U.setUserCode({ userCode: "", qrUrl: "" })
544
552
  ), a(
545
- O.setErrorMessage(
553
+ W.setErrorMessage(
546
554
  "User code changed. Click reconnect to enter the new code"
547
555
  )
548
556
  ), l(a);
549
557
  return;
550
558
  }
551
- if (k.code === 4002) {
559
+ if (O.code === 4002) {
552
560
  console.log("WebSocket middleware: Room combination changed"), r(), a(
553
- O.setErrorMessage(
561
+ W.setErrorMessage(
554
562
  "Room combination changed. Click Reconnect to re-join the room"
555
563
  )
556
564
  ), l(a);
557
565
  return;
558
566
  }
559
- if (k.code === 4001)
567
+ if (O.code === 4001)
560
568
  if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
561
569
  console.log(
562
570
  "WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
563
571
  );
564
- else if (b)
572
+ else if (C)
565
573
  console.log(
566
574
  "WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
567
575
  );
@@ -569,7 +577,7 @@ const g3 = {}, B1 = d1({
569
577
  console.log(
570
578
  "WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
571
579
  ), r(), a(
572
- O.setErrorMessage(
580
+ W.setErrorMessage(
573
581
  "Processor has disconnected. Click Reconnect to continue."
574
582
  )
575
583
  ), l(a);
@@ -584,13 +592,13 @@ const g3 = {}, B1 = d1({
584
592
  return;
585
593
  }
586
594
  e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
587
- O.setErrorMessage(
595
+ W.setErrorMessage(
588
596
  "Connection lost. Attempting to reconnect..."
589
597
  )
590
- ), a(U.setWebsocketIsConnected(!1)), a(w1.clearDevices()), a(m1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState()), c(a);
591
- }, K.onmessage = (k) => {
598
+ ), a(U.setWebsocketIsConnected(!1)), a(m1.clearDevices()), a(p1.clearRooms()), a(W.clearAllModals()), a(W.clearSyncState()), c(a);
599
+ }, K.onmessage = (O) => {
592
600
  try {
593
- const D = JSON.parse(k.data);
601
+ const D = JSON.parse(O.data);
594
602
  if (D.type === "close") {
595
603
  K.close(4001, D.content);
596
604
  return;
@@ -605,7 +613,7 @@ const g3 = {}, B1 = d1({
605
613
  );
606
614
  break;
607
615
  case "/system/roomKey":
608
- a(m1.clearRooms()), a(w1.clearDevices()), a(O.clearSyncState()), a(
616
+ a(p1.clearRooms()), a(m1.clearDevices()), a(W.clearSyncState()), a(
609
617
  U.setCurrentRoomKey(
610
618
  D.content
611
619
  )
@@ -640,9 +648,9 @@ const g3 = {}, B1 = d1({
640
648
  z || console.log(
641
649
  "WebSocket middleware: No handlers found for event type",
642
650
  D.type
643
- ), z && Object.values(z).forEach((o1) => {
651
+ ), z && Object.values(z).forEach((s1) => {
644
652
  try {
645
- o1(D);
653
+ s1(D);
646
654
  } catch (b1) {
647
655
  console.error(
648
656
  "WebSocket middleware: Event handler error",
@@ -650,7 +658,7 @@ const g3 = {}, B1 = d1({
650
658
  );
651
659
  }
652
660
  });
653
- } else D.type.startsWith("/room/") ? a(m1.setRoomState(D)) : D.type.startsWith("/device/") && a(w1.setDeviceState(D));
661
+ } else D.type.startsWith("/room/") ? a(p1.setRoomState(D)) : D.type.startsWith("/device/") && a(m1.setDeviceState(D));
654
662
  } catch (D) {
655
663
  console.error("WebSocket middleware: Message handling error", D);
656
664
  }
@@ -660,13 +668,13 @@ const g3 = {}, B1 = d1({
660
668
  }
661
669
  }, h = () => {
662
670
  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(
671
+ }, f = (a, Z, j) => {
672
+ const S = j(), C = S.runtimeConfig.websocket.isConnected, x = S.runtimeConfig.roomData.clientId;
673
+ e.client && C ? e.client.send(
666
674
  JSON.stringify({ type: a, clientId: x, content: Z })
667
675
  ) : 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);
676
+ }, u = (a, Z, j) => {
677
+ e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
670
678
  }, L = (a, Z) => {
671
679
  e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
672
680
  "WebSocket middleware: Event handler removed",
@@ -674,19 +682,19 @@ const g3 = {}, B1 = d1({
674
682
  Z
675
683
  ));
676
684
  }, 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;
685
+ 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}`;
686
+ window.location.href = x ? `${k}&Code=${x}` : k;
679
687
  };
680
- return (a) => (Z) => (C) => {
681
- const S = Z(C);
682
- if (!C || typeof C != "object" || !("type" in C))
688
+ return (a) => (Z) => (j) => {
689
+ const S = Z(j);
690
+ if (!j || typeof j != "object" || !("type" in j))
683
691
  return S;
684
- const b = C;
692
+ const C = j;
685
693
  return (async () => {
686
- switch (b.type) {
694
+ switch (C.type) {
687
695
  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);
696
+ let k = new URLSearchParams(window.location.search).get("token");
697
+ 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
698
  break;
691
699
  }
692
700
  case L3:
@@ -694,39 +702,39 @@ const g3 = {}, B1 = d1({
694
702
  break;
695
703
  case P3:
696
704
  f(
697
- b.payload.messageType,
698
- b.payload.content,
705
+ C.payload.messageType,
706
+ C.payload.content,
699
707
  a.getState
700
708
  );
701
709
  break;
702
- case A3:
710
+ case $3:
703
711
  u(
704
- b.payload.eventType,
705
- b.payload.key,
706
- b.payload.callback
712
+ C.payload.eventType,
713
+ C.payload.key,
714
+ C.payload.callback
707
715
  );
708
716
  break;
709
- case $3:
717
+ case A3:
710
718
  L(
711
- b.payload.eventType,
712
- b.payload.key
719
+ C.payload.eventType,
720
+ C.payload.key
713
721
  );
714
722
  break;
715
723
  case k3:
716
724
  F(a.getState);
717
725
  break;
718
726
  default:
719
- if (C.type === U.setWebsocketIsConnected.type)
720
- C.payload === !0 && (console.log(
727
+ if (j.type === U.setWebsocketIsConnected.type)
728
+ j.payload === !0 && (console.log(
721
729
  "[WebSocket Middleware] Connection established, requesting room status..."
722
730
  ), 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(
731
+ else if (j.type === U.setRoomData.type) {
732
+ const x = a.getState(), k = j.payload;
733
+ x.runtimeConfig.websocket.isConnected && (k != null && k.clientId) && (console.log(
726
734
  "[WebSocket Middleware] Room data received, requesting room status..."
727
735
  ), setTimeout(() => v(a.getState), 100));
728
- } else if (C.type === U.setCurrentRoomKey.type) {
729
- const x = C.payload;
736
+ } else if (j.type === U.setCurrentRoomKey.type) {
737
+ const x = j.payload;
730
738
  x && (console.log(
731
739
  "[WebSocket Middleware] Room changed to:",
732
740
  x,
@@ -739,14 +747,14 @@ const g3 = {}, B1 = d1({
739
747
  console.error("WebSocket middleware: Error handling action", x);
740
748
  }), S;
741
749
  };
742
- }, Be = S2({
750
+ }, Oe = S2({
743
751
  appConfig: be,
744
752
  runtimeConfig: _e,
745
753
  rooms: Te,
746
754
  devices: ye,
747
755
  ui: je
748
- }), Oe = j2({
749
- reducer: Be,
756
+ }), Be = j2({
757
+ reducer: Oe,
750
758
  middleware: (e) => e({
751
759
  serializableCheck: {
752
760
  // Ignore WebSocket actions with callbacks
@@ -754,7 +762,7 @@ const g3 = {}, B1 = d1({
754
762
  }
755
763
  }).concat(ke())
756
764
  }), f3 = M3.create();
757
- function O6() {
765
+ function B6() {
758
766
  const e = W1();
759
767
  return async () => {
760
768
  try {
@@ -778,7 +786,7 @@ function O6() {
778
786
  return !0;
779
787
  };
780
788
  }
781
- var p1 = { exports: {} }, l1 = {};
789
+ var M1 = { exports: {} }, i1 = {};
782
790
  /**
783
791
  * @license React
784
792
  * react-jsx-runtime.production.min.js
@@ -790,7 +798,7 @@ var p1 = { exports: {} }, l1 = {};
790
798
  */
791
799
  var w3;
792
800
  function We() {
793
- if (w3) return l1;
801
+ if (w3) return i1;
794
802
  w3 = 1;
795
803
  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
804
  function v(g, h, f) {
@@ -800,9 +808,9 @@ function We() {
800
808
  if (g && g.defaultProps) for (u in h = g.defaultProps, h) L[u] === void 0 && (L[u] = h[u]);
801
809
  return { $$typeof: t, type: g, key: F, ref: a, props: L, _owner: r.current };
802
810
  }
803
- return l1.Fragment = o, l1.jsx = v, l1.jsxs = v, l1;
811
+ return i1.Fragment = o, i1.jsx = v, i1.jsxs = v, i1;
804
812
  }
805
- var i1 = {};
813
+ var a1 = {};
806
814
  /**
807
815
  * @license React
808
816
  * react-jsx-runtime.development.js
@@ -815,24 +823,24 @@ var i1 = {};
815
823
  var m3;
816
824
  function Ve() {
817
825
  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";
826
+ 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
827
  function S(s) {
820
828
  if (s === null || typeof s != "object")
821
829
  return null;
822
- var i = Z && s[Z] || s[C];
830
+ var i = Z && s[Z] || s[j];
823
831
  return typeof i == "function" ? i : null;
824
832
  }
825
- var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
833
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
826
834
  function x(s) {
827
835
  {
828
836
  for (var i = arguments.length, d = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
829
837
  d[p - 1] = arguments[p];
830
- W("error", s, d);
838
+ k("error", s, d);
831
839
  }
832
840
  }
833
- function W(s, i, d) {
841
+ function k(s, i, d) {
834
842
  {
835
- var p = b.ReactDebugCurrentFrame, E = p.getStackAddendum();
843
+ var p = C.ReactDebugCurrentFrame, E = p.getStackAddendum();
836
844
  E !== "" && (i += "%s", d = d.concat([E]));
837
845
  var T = d.map(function(y) {
838
846
  return String(y);
@@ -840,14 +848,14 @@ function Ve() {
840
848
  T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
841
849
  }
842
850
  }
843
- var C1 = !1, K = !1, k = !1, D = !1, z = !1, o1;
844
- o1 = Symbol.for("react.module.reference");
851
+ var o1 = !1, K = !1, O = !1, D = !1, z = !1, s1;
852
+ s1 = Symbol.for("react.module.reference");
845
853
  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
854
+ return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === f || s === u || D || s === a || o1 || K || 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
855
  // types supported by any Flight configuration anywhere since
848
856
  // we don't know which Flight build this will end up being used
849
857
  // with.
850
- s.$$typeof === o1 || s.getModuleId !== void 0));
858
+ s.$$typeof === s1 || s.getModuleId !== void 0));
851
859
  }
852
860
  function U3(s, i, d) {
853
861
  var p = s.displayName;
@@ -904,13 +912,13 @@ function Ve() {
904
912
  }
905
913
  return null;
906
914
  }
907
- var X = Object.assign, s1 = 0, F1, H1, K1, q1, G1, Y1, z1;
915
+ var X = Object.assign, c1 = 0, F1, H1, K1, q1, G1, Y1, z1;
908
916
  function J1() {
909
917
  }
910
918
  J1.__reactDisabledLog = !0;
911
919
  function F3() {
912
920
  {
913
- if (s1 === 0) {
921
+ if (c1 === 0) {
914
922
  F1 = console.log, H1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
915
923
  var s = {
916
924
  configurable: !0,
@@ -928,12 +936,12 @@ function Ve() {
928
936
  groupEnd: s
929
937
  });
930
938
  }
931
- s1++;
939
+ c1++;
932
940
  }
933
941
  }
934
942
  function H3() {
935
943
  {
936
- if (s1--, s1 === 0) {
944
+ if (c1--, c1 === 0) {
937
945
  var s = {
938
946
  configurable: !0,
939
947
  enumerable: !0,
@@ -963,11 +971,11 @@ function Ve() {
963
971
  })
964
972
  });
965
973
  }
966
- s1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
974
+ c1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
967
975
  }
968
976
  }
969
- var y1 = b.ReactCurrentDispatcher, I1;
970
- function v1(s, i, d) {
977
+ var y1 = C.ReactCurrentDispatcher, I1;
978
+ function h1(s, i, d) {
971
979
  {
972
980
  if (I1 === void 0)
973
981
  try {
@@ -980,16 +988,16 @@ function Ve() {
980
988
  ` + I1 + s;
981
989
  }
982
990
  }
983
- var R1 = !1, h1;
991
+ var R1 = !1, g1;
984
992
  {
985
993
  var K3 = typeof WeakMap == "function" ? WeakMap : Map;
986
- h1 = new K3();
994
+ g1 = new K3();
987
995
  }
988
996
  function X1(s, i) {
989
997
  if (!s || R1)
990
998
  return "";
991
999
  {
992
- var d = h1.get(s);
1000
+ var d = g1.get(s);
993
1001
  if (d !== void 0)
994
1002
  return d;
995
1003
  }
@@ -1033,28 +1041,28 @@ function Ve() {
1033
1041
  }
1034
1042
  } catch (V) {
1035
1043
  if (V && p && typeof V.stack == "string") {
1036
- for (var j = V.stack.split(`
1044
+ for (var b = V.stack.split(`
1037
1045
  `), 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)
1046
+ `), P = b.length - 1, $ = B.length - 1; P >= 1 && $ >= 0 && b[P] !== B[$]; )
1047
+ $--;
1048
+ for (; P >= 1 && $ >= 0; P--, $--)
1049
+ if (b[P] !== B[$]) {
1050
+ if (P !== 1 || $ !== 1)
1043
1051
  do
1044
- if (P--, A--, A < 0 || j[P] !== B[A]) {
1052
+ if (P--, $--, $ < 0 || b[P] !== B[$]) {
1045
1053
  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;
1054
+ ` + b[P].replace(" at new ", " at ");
1055
+ return s.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", s.displayName)), typeof s == "function" && g1.set(s, H), H;
1048
1056
  }
1049
- while (P >= 1 && A >= 0);
1057
+ while (P >= 1 && $ >= 0);
1050
1058
  break;
1051
1059
  }
1052
1060
  }
1053
1061
  } finally {
1054
1062
  R1 = !1, y1.current = T, H3(), Error.prepareStackTrace = E;
1055
1063
  }
1056
- var t1 = s ? s.displayName || s.name : "", Q = t1 ? v1(t1) : "";
1057
- return typeof s == "function" && h1.set(s, Q), Q;
1064
+ var t1 = s ? s.displayName || s.name : "", Q = t1 ? h1(t1) : "";
1065
+ return typeof s == "function" && g1.set(s, Q), Q;
1058
1066
  }
1059
1067
  function q3(s, i, d) {
1060
1068
  return X1(s, !1);
@@ -1063,59 +1071,59 @@ function Ve() {
1063
1071
  var i = s.prototype;
1064
1072
  return !!(i && i.isReactComponent);
1065
1073
  }
1066
- function g1(s, i, d) {
1074
+ function f1(s, i, d) {
1067
1075
  if (s == null)
1068
1076
  return "";
1069
1077
  if (typeof s == "function")
1070
1078
  return X1(s, G3(s));
1071
1079
  if (typeof s == "string")
1072
- return v1(s);
1080
+ return h1(s);
1073
1081
  switch (s) {
1074
1082
  case f:
1075
- return v1("Suspense");
1083
+ return h1("Suspense");
1076
1084
  case u:
1077
- return v1("SuspenseList");
1085
+ return h1("SuspenseList");
1078
1086
  }
1079
1087
  if (typeof s == "object")
1080
1088
  switch (s.$$typeof) {
1081
1089
  case h:
1082
1090
  return q3(s.render);
1083
1091
  case L:
1084
- return g1(s.type, i, d);
1092
+ return f1(s.type, i, d);
1085
1093
  case F: {
1086
1094
  var p = s, E = p._payload, T = p._init;
1087
1095
  try {
1088
- return g1(T(E), i, d);
1096
+ return f1(T(E), i, d);
1089
1097
  } catch {
1090
1098
  }
1091
1099
  }
1092
1100
  }
1093
1101
  return "";
1094
1102
  }
1095
- var c1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
1096
- function f1(s) {
1103
+ var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = C.ReactDebugCurrentFrame;
1104
+ function w1(s) {
1097
1105
  if (s) {
1098
- var i = s._owner, d = g1(s.type, s._source, i ? i.type : null);
1106
+ var i = s._owner, d = f1(s.type, s._source, i ? i.type : null);
1099
1107
  N1.setExtraStackFrame(d);
1100
1108
  } else
1101
1109
  N1.setExtraStackFrame(null);
1102
1110
  }
1103
1111
  function Y3(s, i, d, p, E) {
1104
1112
  {
1105
- var T = Function.call.bind(c1);
1113
+ var T = Function.call.bind(r1);
1106
1114
  for (var y in s)
1107
1115
  if (T(s, y)) {
1108
- var j = void 0;
1116
+ var b = void 0;
1109
1117
  try {
1110
1118
  if (typeof s[y] != "function") {
1111
1119
  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
1120
  throw B.name = "Invariant Violation", B;
1113
1121
  }
1114
- j = s[y](i, y, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1122
+ b = s[y](i, y, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1115
1123
  } catch (P) {
1116
- j = P;
1124
+ b = P;
1117
1125
  }
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));
1126
+ 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
1127
  }
1120
1128
  }
1121
1129
  }
@@ -1143,14 +1151,14 @@ function Ve() {
1143
1151
  if (X3(s))
1144
1152
  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
1153
  }
1146
- var n3 = b.ReactCurrentOwner, Q3 = {
1154
+ var n3 = C.ReactCurrentOwner, Q3 = {
1147
1155
  key: !0,
1148
1156
  ref: !0,
1149
1157
  __self: !0,
1150
1158
  __source: !0
1151
1159
  }, o3, s3;
1152
1160
  function N3(s) {
1153
- if (c1.call(s, "ref")) {
1161
+ if (r1.call(s, "ref")) {
1154
1162
  var i = Object.getOwnPropertyDescriptor(s, "ref").get;
1155
1163
  if (i && i.isReactWarning)
1156
1164
  return !1;
@@ -1158,7 +1166,7 @@ function Ve() {
1158
1166
  return s.ref !== void 0;
1159
1167
  }
1160
1168
  function e2(s) {
1161
- if (c1.call(s, "key")) {
1169
+ if (r1.call(s, "key")) {
1162
1170
  var i = Object.getOwnPropertyDescriptor(s, "key").get;
1163
1171
  if (i && i.isReactWarning)
1164
1172
  return !1;
@@ -1191,7 +1199,7 @@ function Ve() {
1191
1199
  }
1192
1200
  }
1193
1201
  var s2 = function(s, i, d, p, E, T, y) {
1194
- var j = {
1202
+ var b = {
1195
1203
  // This tag allows us to uniquely identify this as a React Element
1196
1204
  $$typeof: t,
1197
1205
  // Built-in properties that belong on the element
@@ -1202,45 +1210,45 @@ function Ve() {
1202
1210
  // Record the component responsible for creating this element.
1203
1211
  _owner: T
1204
1212
  };
1205
- return j._store = {}, Object.defineProperty(j._store, "validated", {
1213
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
1206
1214
  configurable: !1,
1207
1215
  enumerable: !1,
1208
1216
  writable: !0,
1209
1217
  value: !1
1210
- }), Object.defineProperty(j, "_self", {
1218
+ }), Object.defineProperty(b, "_self", {
1211
1219
  configurable: !1,
1212
1220
  enumerable: !1,
1213
1221
  writable: !1,
1214
1222
  value: p
1215
- }), Object.defineProperty(j, "_source", {
1223
+ }), Object.defineProperty(b, "_source", {
1216
1224
  configurable: !1,
1217
1225
  enumerable: !1,
1218
1226
  writable: !1,
1219
1227
  value: E
1220
- }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
1228
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
1221
1229
  };
1222
1230
  function c2(s, i, d, p, E) {
1223
1231
  {
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));
1232
+ var T, y = {}, b = null, B = null;
1233
+ d !== void 0 && (t3(d), b = "" + d), e2(i) && (t3(i.key), b = "" + i.key), N3(i) && (B = i.ref, t2(i, E));
1226
1234
  for (T in i)
1227
- c1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
1235
+ r1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
1228
1236
  if (s && s.defaultProps) {
1229
1237
  var P = s.defaultProps;
1230
1238
  for (T in P)
1231
1239
  y[T] === void 0 && (y[T] = P[T]);
1232
1240
  }
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);
1241
+ if (b || B) {
1242
+ var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1243
+ b && n2(y, $), B && o2(y, $);
1236
1244
  }
1237
- return s2(s, j, B, E, p, n3.current, y);
1245
+ return s2(s, b, B, E, p, n3.current, y);
1238
1246
  }
1239
1247
  }
1240
- var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
1248
+ var T1 = C.ReactCurrentOwner, c3 = C.ReactDebugCurrentFrame;
1241
1249
  function e1(s) {
1242
1250
  if (s) {
1243
- var i = s._owner, d = g1(s.type, s._source, i ? i.type : null);
1251
+ var i = s._owner, d = f1(s.type, s._source, i ? i.type : null);
1244
1252
  c3.setExtraStackFrame(d);
1245
1253
  } else
1246
1254
  c3.setExtraStackFrame(null);
@@ -1352,16 +1360,16 @@ Check the top-level render call using <` + d + ">.");
1352
1360
  {
1353
1361
  var y = b1(s);
1354
1362
  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.");
1363
+ var b = "";
1364
+ (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
1365
  var B = r2();
1358
- B ? j += B : j += r3();
1366
+ B ? b += B : b += r3();
1359
1367
  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);
1368
+ 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
1369
  }
1362
- var A = c2(s, i, d, E, T);
1363
- if (A == null)
1364
- return A;
1370
+ var $ = c2(s, i, d, E, T);
1371
+ if ($ == null)
1372
+ return $;
1365
1373
  if (y) {
1366
1374
  var H = i.children;
1367
1375
  if (H !== void 0)
@@ -1375,7 +1383,7 @@ Check the top-level render call using <` + d + ">.");
1375
1383
  else
1376
1384
  a3(H, s);
1377
1385
  }
1378
- if (c1.call(i, "key")) {
1386
+ if (r1.call(i, "key")) {
1379
1387
  var Q = J(s), V = Object.keys(i).filter(function(f2) {
1380
1388
  return f2 !== "key";
1381
1389
  }), L1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
@@ -1389,7 +1397,7 @@ React keys must be passed directly to JSX without using spread:
1389
1397
  <%s key={someKey} {...props} />`, L1, Q, g2, Q), u3[Q + L1] = !0;
1390
1398
  }
1391
1399
  }
1392
- return s === c ? a2(A) : i2(A), A;
1400
+ return s === c ? a2($) : i2($), $;
1393
1401
  }
1394
1402
  }
1395
1403
  function u2(s, i, d) {
@@ -1399,12 +1407,12 @@ React keys must be passed directly to JSX without using spread:
1399
1407
  return d3(s, i, d, !1);
1400
1408
  }
1401
1409
  var v2 = d2, h2 = u2;
1402
- i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
1403
- })()), i1;
1410
+ a1.Fragment = c, a1.jsx = v2, a1.jsxs = h2;
1411
+ })()), a1;
1404
1412
  }
1405
1413
  var p3;
1406
1414
  function Ue() {
1407
- return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? p1.exports = We() : p1.exports = Ve()), p1.exports;
1415
+ return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? M1.exports = We() : M1.exports = Ve()), M1.exports;
1408
1416
  }
1409
1417
  var n = Ue();
1410
1418
  const Fe = "_mwfit_ppa3l_1", He = {
@@ -1418,7 +1426,7 @@ const Fe = "_mwfit_ppa3l_1", He = {
1418
1426
  ] }),
1419
1427
  c && /* @__PURE__ */ n.jsx("button", { className: "btn btn-secondary btn-lg", onPointerDown: e, children: "Reconnect" })
1420
1428
  ] });
1421
- }, O3 = C2({
1429
+ }, B3 = C2({
1422
1430
  sendMessage: () => null,
1423
1431
  sendSimpleMessage: () => null,
1424
1432
  addEventHandler: () => null,
@@ -1426,34 +1434,34 @@ const Fe = "_mwfit_ppa3l_1", He = {
1426
1434
  reconnect: () => null
1427
1435
  }), qe = ({ children: e }) => {
1428
1436
  const t = W1(), o = I3();
1429
- x1(() => {
1430
- t(B3());
1437
+ Z1(() => {
1438
+ t(O3());
1431
1439
  }, [t]);
1432
- const c = r1(
1440
+ const c = l1(
1433
1441
  (h, f) => {
1434
1442
  t(Le(h, f));
1435
1443
  },
1436
1444
  [t]
1437
- ), r = r1(
1445
+ ), r = l1(
1438
1446
  (h, f) => {
1439
1447
  c(h, { value: f });
1440
1448
  },
1441
1449
  [c]
1442
- ), l = r1(
1450
+ ), l = l1(
1443
1451
  (h, f, u) => {
1444
1452
  t(Pe(h, f, u));
1445
1453
  },
1446
1454
  [t]
1447
- ), v = r1(
1455
+ ), v = l1(
1448
1456
  (h, f) => {
1449
- t(Ae(h, f));
1457
+ t($e(h, f));
1450
1458
  },
1451
1459
  [t]
1452
- ), g = r1(() => {
1453
- t($e());
1460
+ ), g = l1(() => {
1461
+ t(Ae());
1454
1462
  }, [t]);
1455
1463
  return /* @__PURE__ */ n.jsx(
1456
- O3.Provider,
1464
+ B3.Provider,
1457
1465
  {
1458
1466
  value: {
1459
1467
  sendMessage: c,
@@ -1465,9 +1473,9 @@ const Fe = "_mwfit_ppa3l_1", He = {
1465
1473
  children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
1466
1474
  }
1467
1475
  );
1468
- }, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Oe, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
1476
+ }, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Be, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
1469
1477
  function R() {
1470
- return b2(O3);
1478
+ return b2(B3);
1471
1479
  }
1472
1480
  function Ge({
1473
1481
  onPress: e,
@@ -1476,7 +1484,7 @@ function Ge({
1476
1484
  onPressedButNotHeld: c,
1477
1485
  holdTimeMs: r = 500
1478
1486
  }) {
1479
- const l = u1(null), v = u1(!1), g = u1(!1);
1487
+ const l = d1(null), v = d1(!1), g = d1(!1);
1480
1488
  function h() {
1481
1489
  v.current = !0, g.current = !1, e == null || e(), l.current = setTimeout(() => {
1482
1490
  g.current = !0, o == null || o(), l.current = null;
@@ -1495,7 +1503,7 @@ function Ge({
1495
1503
  };
1496
1504
  }
1497
1505
  function w(e, t) {
1498
- const { sendMessage: c } = R(), r = u1(null);
1506
+ const { sendMessage: c } = R(), r = d1(null);
1499
1507
  function l() {
1500
1508
  c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
1501
1509
  c(`${e}/${t}`, { value: "held" });
@@ -1506,7 +1514,7 @@ function w(e, t) {
1506
1514
  }
1507
1515
  return Ge({ onPress: l, onRelease: v });
1508
1516
  }
1509
- function j1(e) {
1517
+ function C1(e) {
1510
1518
  const { sendMessage: t } = R(), o = w(`${e}`, "volumeUp"), c = w(`${e}`, "volumeDown");
1511
1519
  return n1(() => ({
1512
1520
  volumeUp: o,
@@ -1523,7 +1531,7 @@ function V6(e) {
1523
1531
  }), [e, t, o, c]);
1524
1532
  }
1525
1533
  function W3(e, t) {
1526
- const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
1534
+ const { sendMessage: o, sendSimpleMessage: c } = R(), r = C1(e);
1527
1535
  return n1(() => {
1528
1536
  if (!r) {
1529
1537
  console.log("baseVolume is undefined");
@@ -1543,7 +1551,7 @@ function W3(e, t) {
1543
1551
  }, [r, t, e, o, c]);
1544
1552
  }
1545
1553
  function U6(e, t) {
1546
- const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
1554
+ const { sendMessage: o, sendSimpleMessage: c } = R(), r = C1(e);
1547
1555
  return n1(() => {
1548
1556
  if (!r) {
1549
1557
  console.log("baseVolume is undefined");
@@ -1579,7 +1587,7 @@ function V3(e) {
1579
1587
  t(`/device/${e}/powerToggle`, null);
1580
1588
  } };
1581
1589
  }
1582
- function O1(e) {
1590
+ function B1(e) {
1583
1591
  const { sendMessage: t } = R(), o = _(e);
1584
1592
  return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
1585
1593
  t(`/device/${e}/${r}`, null);
@@ -1597,7 +1605,7 @@ function ze(e) {
1597
1605
  return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
1598
1606
  }
1599
1607
  function F6(e) {
1600
- const t = _(e), o = V3(e), c = O1(e), r = O1(e), l = Ye(e), v = ze(e);
1608
+ const t = _(e), o = V3(e), c = B1(e), r = B1(e), l = Ye(e), v = ze(e);
1601
1609
  if (t)
1602
1610
  return {
1603
1611
  avrState: t,
@@ -1610,7 +1618,7 @@ function F6(e) {
1610
1618
  }
1611
1619
  const H6 = ({ className: e }) => {
1612
1620
  const [t, o] = Y();
1613
- return x1(() => {
1621
+ return Z1(() => {
1614
1622
  setInterval(() => {
1615
1623
  const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1616
1624
  o(c);
@@ -1766,7 +1774,7 @@ function at(e) {
1766
1774
  } } : void 0;
1767
1775
  }
1768
1776
  function ut(e) {
1769
- const { sendMessage: t } = R(), o = S1(e);
1777
+ const { sendMessage: t } = R(), o = j1(e);
1770
1778
  return o ? { roomEventScheduleState: o, save: (r) => {
1771
1779
  t(`/room/${e}/saveScheduledEvents`, r);
1772
1780
  } } : void 0;
@@ -1804,7 +1812,7 @@ function ft(e) {
1804
1812
  } } : void 0;
1805
1813
  }
1806
1814
  function wt(e) {
1807
- const { sendMessage: t } = R(), o = S1(e);
1815
+ const { sendMessage: t } = R(), o = j1(e);
1808
1816
  return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
1809
1817
  t(`/room/${e}/setShutdownPromptSeconds`, g);
1810
1818
  }, shutdownStart: () => {
@@ -1824,7 +1832,7 @@ function mt(e) {
1824
1832
  } } : void 0;
1825
1833
  }
1826
1834
  function pt(e) {
1827
- const { sendMessage: t } = R(), o = S1(e);
1835
+ const { sendMessage: t } = R(), o = j1(e);
1828
1836
  return o ? { techPasswordState: o, validatePassword: (l) => {
1829
1837
  t(`/room/${e}/validateTechPassword`, { password: l });
1830
1838
  }, setPassword: (l, v) => {
@@ -1874,7 +1882,7 @@ function St(e) {
1874
1882
  } : void 0;
1875
1883
  }
1876
1884
  function jt(e) {
1877
- const t = _(e), o = V3(e), c = O1(e);
1885
+ const t = _(e), o = V3(e), c = B1(e);
1878
1886
  if (!t) return;
1879
1887
  const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
1880
1888
  return {
@@ -1886,12 +1894,12 @@ function jt(e) {
1886
1894
  }
1887
1895
  function Ct(e) {
1888
1896
  const t = `/device/${e}`;
1889
- return j1(t);
1897
+ return C1(t);
1890
1898
  }
1891
1899
  const bt = ({
1892
1900
  config: e
1893
1901
  }, t = !0) => {
1894
- const { sendMessage: o } = R(), c = u1(!1), r = n1(() => {
1902
+ const { sendMessage: o } = R(), c = d1(!1), r = n1(() => {
1895
1903
  var v, g, h, f;
1896
1904
  if (!e)
1897
1905
  return;
@@ -1917,7 +1925,7 @@ const bt = ({
1917
1925
  u.sourceKey && u.sourceKey !== "$off" && l.add(u.sourceKey);
1918
1926
  return l;
1919
1927
  }, [e]);
1920
- return x1(() => {
1928
+ return Z1(() => {
1921
1929
  !t || !r || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((l) => {
1922
1930
  o(`/device/${l}/fullStatus`, { deviceKey: l });
1923
1931
  }), c.current = !0);
@@ -1935,7 +1943,7 @@ function yt(e, t) {
1935
1943
  }
1936
1944
  function It(e, t) {
1937
1945
  const o = `/room/${e}/volumes/${t}`;
1938
- return j1(o);
1946
+ return C1(o);
1939
1947
  }
1940
1948
  function Rt(e, t) {
1941
1949
  const o = te(e, t), c = `/room/${e}/volumes/${t}`;
@@ -1960,9 +1968,9 @@ function Et(e) {
1960
1968
  function Tt(e) {
1961
1969
  const t = W1();
1962
1970
  return [() => {
1963
- t(O.addSyncState(e));
1971
+ t(W.addSyncState(e));
1964
1972
  }, () => {
1965
- t(O.removeSyncState(e));
1973
+ t(W.removeSyncState(e));
1966
1974
  }, Ze(e)];
1967
1975
  }
1968
1976
  function Dt() {
@@ -1983,7 +1991,7 @@ function _t() {
1983
1991
  const l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1984
1992
  c(l);
1985
1993
  }
1986
- return x1(() => {
1994
+ return Z1(() => {
1987
1995
  r();
1988
1996
  const l = setInterval(() => {
1989
1997
  r();
@@ -2014,7 +2022,7 @@ const Lt = () => {
2014
2022
  ),
2015
2023
  e && /* @__PURE__ */ n.jsx("p", { children: r })
2016
2024
  ] });
2017
- }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", A1 = {
2025
+ }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", $1 = {
2018
2026
  iconbtn: Je,
2019
2027
  iconbtnvert: Xe,
2020
2028
  iconsm: Qe
@@ -2033,28 +2041,28 @@ const Lt = () => {
2033
2041
  onPointerLeave: L,
2034
2042
  ...F
2035
2043
  }) => {
2036
- const [a, Z] = Y(!1), C = !v && g ? h : "", S = !v && (a || g);
2044
+ const [a, Z] = Y(!1), j = !v && g ? h : "", S = !v && (a || g);
2037
2045
  return /* @__PURE__ */ n.jsxs(
2038
2046
  "button",
2039
2047
  {
2040
2048
  type: "button",
2041
- className: `${A1.iconbtn} ${o ? A1.iconbtnvert : ""} ${c} ${C}`,
2049
+ className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${j}`,
2042
2050
  ...F,
2043
2051
  disabled: v,
2044
- onPointerDown: (b) => {
2045
- Z(!0), f == null || f(b);
2052
+ onPointerDown: (C) => {
2053
+ Z(!0), f == null || f(C);
2046
2054
  },
2047
- onPointerUp: (b) => {
2048
- Z(!1), u == null || u(b);
2055
+ onPointerUp: (C) => {
2056
+ Z(!1), u == null || u(C);
2049
2057
  },
2050
- onPointerLeave: (b) => {
2051
- Z(!1), L == null || L(b);
2058
+ onPointerLeave: (C) => {
2059
+ Z(!1), L == null || L(C);
2052
2060
  },
2053
2061
  children: [
2054
2062
  e && /* @__PURE__ */ n.jsx(
2055
2063
  e,
2056
2064
  {
2057
- className: `${r || A1.iconsm}`,
2065
+ className: `${r || $1.iconsm}`,
2058
2066
  active: S,
2059
2067
  disabled: v
2060
2068
  }
@@ -3710,7 +3718,7 @@ const Lt = () => {
3710
3718
  X: E8,
3711
3719
  Xbox: T8
3712
3720
  };
3713
- function At({
3721
+ function $t({
3714
3722
  name: e,
3715
3723
  iconsDictionary: t = _8,
3716
3724
  ...o
@@ -3718,34 +3726,34 @@ function At({
3718
3726
  const c = t[e] ?? null;
3719
3727
  return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
3720
3728
  }
3721
- const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", A8 = "_content_1cmpp_17", $8 = "_footer_1cmpp_23", k8 = "_volume_1cmpp_29", a1 = {
3729
+ const L8 = "_grid_1cmpp_1", P8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", k8 = "_volume_1cmpp_29", u1 = {
3722
3730
  grid: L8,
3723
3731
  header: P8,
3724
- content: A8,
3725
- footer: $8,
3732
+ content: $8,
3733
+ footer: A8,
3726
3734
  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,
3735
+ }, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: u1.grid, children: [
3736
+ /* @__PURE__ */ n.jsx("div", { className: u1.header, children: e }),
3737
+ /* @__PURE__ */ n.jsx("div", { className: u1.content, children: o }),
3738
+ r && /* @__PURE__ */ n.jsx("div", { className: u1.volume, children: c }),
3739
+ /* @__PURE__ */ n.jsx("div", { className: u1.footer, children: t })
3740
+ ] }), O8 = "_grid_11w5q_1", B8 = "_header_11w5q_11", W8 = "_content_11w5q_17", x1 = {
3741
+ grid: O8,
3742
+ header: B8,
3735
3743
  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 = {
3744
+ }, kt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${x1.grid}`, children: [
3745
+ /* @__PURE__ */ n.jsx("div", { className: x1.header, children: t }),
3746
+ c && /* @__PURE__ */ n.jsx("div", { className: x1.leftNav, children: c }),
3747
+ /* @__PURE__ */ n.jsx("div", { className: x1.content, children: o })
3748
+ ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", F8 = "_content_1uwfo_17", A1 = {
3741
3749
  grid: V8,
3742
3750
  header: U8,
3743
3751
  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 })
3752
+ }, Ot = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${A1.grid}`, children: [
3753
+ /* @__PURE__ */ n.jsx("div", { className: A1.header, children: t }),
3754
+ /* @__PURE__ */ n.jsx("div", { className: A1.content, children: o })
3747
3755
  ] });
3748
- class Ot {
3756
+ class Bt {
3749
3757
  constructor() {
3750
3758
  q(this, "currentShareText");
3751
3759
  q(this, "enabled");
@@ -3802,29 +3810,29 @@ export {
3802
3810
  R8 as IconMultiWireless,
3803
3811
  E8 as IconMultiX,
3804
3812
  T8 as IconMultiXbox,
3805
- $t as MainLayout,
3813
+ At as MainLayout,
3806
3814
  Vt as MessageHandler,
3807
3815
  W6 as MobileControlProvider,
3808
3816
  I as MultiStateIconContainer,
3809
- At as NamedIconButton,
3810
- Ot as ShareState,
3817
+ $t as NamedIconButton,
3818
+ Bt as ShareState,
3811
3819
  kt as TechLayout,
3812
- Bt as TechPinLayout,
3813
- A3 as WS_ADD_EVENT_HANDLER,
3820
+ Ot as TechPinLayout,
3821
+ $3 as WS_ADD_EVENT_HANDLER,
3814
3822
  _3 as WS_CONNECT,
3815
3823
  L3 as WS_DISCONNECT,
3816
3824
  k3 as WS_RECONNECT,
3817
- $3 as WS_REMOVE_EVENT_HANDLER,
3825
+ A3 as WS_REMOVE_EVENT_HANDLER,
3818
3826
  P3 as WS_SEND_MESSAGE,
3819
- O3 as WebsocketContext,
3827
+ B3 as WebsocketContext,
3820
3828
  T3 as appConfigActions,
3821
3829
  ke as createWebSocketMiddleware,
3822
- w1 as devicesActions,
3830
+ m1 as devicesActions,
3823
3831
  Wt as getBaseLocation,
3824
3832
  f3 as httpClient,
3825
3833
  _8 as iconsDictionary,
3826
3834
  Ut as roomOffSourceKey,
3827
- m1 as roomsActions,
3835
+ p1 as roomsActions,
3828
3836
  U as runtimeConfigActions,
3829
3837
  C3 as selectAllDevices,
3830
3838
  T2 as selectApiPath,
@@ -3843,7 +3851,7 @@ export {
3843
3851
  _2 as selectPartnerMetadata,
3844
3852
  X2 as selectRoomAdvancedSharingActive,
3845
3853
  V2 as selectRoomAudioControlPointList,
3846
- $2 as selectRoomByKey,
3854
+ A2 as selectRoomByKey,
3847
3855
  q2 as selectRoomCodecContentDestinationKey,
3848
3856
  P2 as selectRoomConfiguration,
3849
3857
  F2 as selectRoomDestinationList,
@@ -3855,13 +3863,13 @@ export {
3855
3863
  J2 as selectRoomIsOn,
3856
3864
  Y2 as selectRoomIsWarmingUp,
3857
3865
  se as selectRoomKey,
3858
- O2 as selectRoomLevelControls,
3866
+ B2 as selectRoomLevelControls,
3859
3867
  k2 as selectRoomName,
3860
3868
  K2 as selectRoomProgramAudioDestinationKey,
3861
3869
  Q2 as selectRoomShareState,
3862
3870
  W2 as selectRoomSourceList,
3863
- B2 as selectRoomVolume,
3864
- A2 as selectRooms,
3871
+ O2 as selectRoomVolume,
3872
+ $2 as selectRooms,
3865
3873
  ae as selectRuntimeInfo,
3866
3874
  ie as selectServerIsRunningOnProcessorHardware,
3867
3875
  ge as selectShowPopoverById,
@@ -3872,8 +3880,8 @@ export {
3872
3880
  le as selectUserCode,
3873
3881
  oe as selectWsIsConnected,
3874
3882
  N2 as selectZoomRoomControllerKey,
3875
- Oe as store,
3876
- O as uiActions,
3883
+ Be as store,
3884
+ W as uiActions,
3877
3885
  je as uiReducer,
3878
3886
  Q8 as useApiPath,
3879
3887
  X8 as useAppConfig,
@@ -3893,14 +3901,14 @@ export {
3893
3901
  bt as useGetAllDeviceStateFromRoomConfiguration,
3894
3902
  t6 as useGetAllDevices,
3895
3903
  o6 as useGetAllRooms,
3896
- A6 as useGetCurrentPopoverIdForGroup,
3904
+ $6 as useGetCurrentPopoverIdForGroup,
3897
3905
  _ as useGetDevice,
3898
3906
  V6 as useGetIBasicVolume,
3899
3907
  U6 as useGetIBasicVolumeWithFeedback,
3900
3908
  s6 as useGetRoom,
3901
3909
  M6 as useGetRoomDisplayStates,
3902
3910
  x6 as useGetZoomRoomControllerKey,
3903
- j1 as useIBasicVolume,
3911
+ C1 as useIBasicVolume,
3904
3912
  W3 as useIBasicVolumeWithFeedback,
3905
3913
  G6 as useIChannel,
3906
3914
  Y6 as useIColor,
@@ -3912,7 +3920,7 @@ export {
3912
3920
  tt as useIEssentialsRoomCombiner,
3913
3921
  nt as useIHasCameras,
3914
3922
  V3 as useIHasPowerControl,
3915
- O1 as useIHasSelectableItems,
3923
+ B1 as useIHasSelectableItems,
3916
3924
  ot as useIHumiditySensor,
3917
3925
  st as useILevelControls,
3918
3926
  ct as useILightingScenes,
@@ -3932,7 +3940,7 @@ export {
3932
3940
  Mt as useITemperatureSensor,
3933
3941
  xt as useITheme,
3934
3942
  Zt as useITransport,
3935
- O6 as useInitialize,
3943
+ B6 as useInitialize,
3936
3944
  T6 as useInterfacesForDevice,
3937
3945
  Ze as useIsSyncStateValuePresent,
3938
3946
  R6 as useIsTouchpanel,
@@ -3960,14 +3968,14 @@ export {
3960
3968
  d6 as useRoomProgramAudioDestinationKey,
3961
3969
  p6 as useRoomShareState,
3962
3970
  r6 as useRoomSourceList,
3963
- S1 as useRoomState,
3971
+ j1 as useRoomState,
3964
3972
  te as useRoomVolume,
3965
3973
  y6 as useRuntimeInfo,
3966
3974
  Et as useScroll,
3967
3975
  b6 as useServerIsRunningOnProcessorHardware,
3968
3976
  L6 as useShowIncomingCallModal,
3969
3977
  P6 as useShowModal,
3970
- $6 as useShowPopoverById,
3978
+ A6 as useShowPopoverById,
3971
3979
  xe as useShowReconnect,
3972
3980
  _6 as useShowShutdownModal,
3973
3981
  Tt as useStateIsSynced,
@@ -3981,9 +3989,9 @@ export {
3981
3989
  R as useWebsocketContext,
3982
3990
  I3 as useWsIsConnected,
3983
3991
  Pe as wsAddEventHandler,
3984
- B3 as wsConnect,
3985
- B6 as wsDisconnect,
3986
- $e as wsReconnect,
3987
- Ae as wsRemoveEventHandler,
3992
+ O3 as wsConnect,
3993
+ O6 as wsDisconnect,
3994
+ Ae as wsReconnect,
3995
+ $e as wsRemoveEventHandler,
3988
3996
  Le as wsSendMessage
3989
3997
  };