@pepperdash/mobile-control-react-app-core 1.9.2 → 1.10.0

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.
Files changed (32) hide show
  1. package/dist/mobile-control-react-app-core.es.js +1074 -1032
  2. package/dist/mobile-control-react-app-core.umd.js +11 -11
  3. package/dist/shared/Icons/MultiStateIcons/IconMultiController.d.ts.map +1 -1
  4. package/dist/shared/hooks/interfaces/index.d.ts +1 -0
  5. package/dist/shared/hooks/interfaces/index.d.ts.map +1 -1
  6. package/dist/shared/hooks/interfaces/useILevelControls.d.ts.map +1 -1
  7. package/dist/shared/hooks/interfaces/useIRunDefaultPresentRoute.d.ts +5 -0
  8. package/dist/shared/hooks/interfaces/useIRunDefaultPresentRoute.d.ts.map +1 -0
  9. package/dist/shared/hooks/useGetDeviceStateFromRoomConfiguration.d.ts.map +1 -1
  10. package/dist/store/devices/devices.slice.d.ts +3 -0
  11. package/dist/store/devices/devices.slice.d.ts.map +1 -1
  12. package/dist/store/rooms/rooms.slice.d.ts +53 -30
  13. package/dist/store/rooms/rooms.slice.d.ts.map +1 -1
  14. package/dist/store/rooms/roomsSelectors.d.ts +3 -1
  15. package/dist/store/rooms/roomsSelectors.d.ts.map +1 -1
  16. package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts +8 -0
  17. package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -1
  18. package/dist/store/runtimeConfig/runtimeSelectors.d.ts.map +1 -1
  19. package/dist/types/interfaces/IKeyName.d.ts +1 -0
  20. package/dist/types/interfaces/IKeyName.d.ts.map +1 -1
  21. package/dist/types/interfaces/ISelectableItem.d.ts +1 -3
  22. package/dist/types/interfaces/ISelectableItem.d.ts.map +1 -1
  23. package/dist/types/state/LevelControlListItem.d.ts +10 -0
  24. package/dist/types/state/LevelControlListItem.d.ts.map +1 -0
  25. package/dist/types/state/index.d.ts +1 -0
  26. package/dist/types/state/index.d.ts.map +1 -1
  27. package/dist/types/state/state/IEssentialsRoomCombinerState.d.ts +1 -3
  28. package/dist/types/state/state/IEssentialsRoomCombinerState.d.ts.map +1 -1
  29. package/dist/types/state/state/RoomState.d.ts +10 -8
  30. package/dist/types/state/state/RoomState.d.ts.map +1 -1
  31. package/dist/utils/WebsocketProvider.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- var W3 = Object.defineProperty;
2
- var H3 = (t, e, c) => e in t ? W3(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
3
- var _ = (t, e, c) => (H3(t, typeof e != "symbol" ? e + "" : e, c), c);
4
- import K3 from "axios";
5
- import { createSlice as o1, combineReducers as G3, configureStore as n3, createSelector as q3 } from "@reduxjs/toolkit";
6
- import { useSelector as Y3, useDispatch as J3, Provider as z3 } from "react-redux";
7
- import * as c3 from "lodash";
8
- import s3, { createContext as X3, useState as q, useRef as s1, useCallback as u1, useEffect as G, useContext as Q3 } from "react";
9
- import { useNavigate as N3 } from "react-router-dom";
10
- const e2 = {
1
+ var Y3 = Object.defineProperty;
2
+ var J3 = (t, e, s) => e in t ? Y3(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
+ var _ = (t, e, s) => (J3(t, typeof e != "symbol" ? e + "" : e, s), s);
4
+ import z3 from "axios";
5
+ import { createSlice as r1, combineReducers as X3, configureStore as l3, createSelector as Q3 } from "@reduxjs/toolkit";
6
+ import { useSelector as N3, useDispatch as e2, Provider as t2 } from "react-redux";
7
+ import * as i3 from "lodash";
8
+ import a3, { createContext as n2, useState as q, useRef as c1, useCallback as v1, useEffect as G, useContext as s2 } from "react";
9
+ import { useNavigate as o2 } from "react-router-dom";
10
+ const c2 = {
11
11
  config: {
12
12
  enableDev: !1,
13
13
  apiPath: "",
@@ -17,41 +17,47 @@ const e2 = {
17
17
  loginMode: "",
18
18
  modes: {}
19
19
  }
20
- }, o3 = o1({
20
+ }, u3 = r1({
21
21
  name: "appConfig",
22
- initialState: e2,
22
+ initialState: c2,
23
23
  reducers: {
24
24
  setAppConfig(t, e) {
25
25
  t.config = e.payload;
26
26
  }
27
27
  }
28
- }), t2 = o3.actions, n2 = o3.reducer, c2 = {}, r3 = o1({
28
+ }), r2 = u3.actions, l2 = u3.reducer, n3 = {}, d3 = r1({
29
29
  name: "devices",
30
- initialState: c2,
30
+ initialState: n3,
31
31
  reducers: {
32
32
  setDeviceState(t, e) {
33
- const c = e.payload.type, o = c.slice(c.lastIndexOf("/") + 1);
34
- if (!o)
33
+ const s = e.payload.type, c = s.slice(s.lastIndexOf("/") + 1);
34
+ if (!c)
35
35
  return;
36
- const l = e.payload.content, i = t[o] ?? {}, d = c3.merge(i, l);
37
- return t[o] = d, t;
36
+ const l = e.payload.content, i = t[c] ?? {}, u = i3.merge(i, l);
37
+ return t[c] = u, t;
38
+ },
39
+ clearDevices() {
40
+ return n3;
38
41
  }
39
42
  }
40
- }), s2 = r3.actions, o2 = r3.reducer, r2 = {}, l3 = o1({
43
+ }), I1 = d3.actions, i2 = d3.reducer, s3 = {}, v3 = r1({
41
44
  name: "rooms",
42
- initialState: r2,
45
+ initialState: s3,
43
46
  reducers: {
44
47
  setRoomState(t, e) {
45
- const c = e.payload.type, o = c.slice(c.lastIndexOf("/") + 1);
46
- if (console.log(c, o), !o)
48
+ const s = e.payload.type, c = s.slice(s.lastIndexOf("/") + 1);
49
+ if (console.log(s, c), !c)
47
50
  return;
48
51
  const l = e.payload.content;
49
52
  console.log(l);
50
- const i = t[o] ?? {}, d = c3.merge(i, l);
51
- return t[o] = d, console.log(t), t;
53
+ const i = t[c] ?? {}, u = i3.merge(i, l);
54
+ return t[c] = u, console.log(t), t;
55
+ },
56
+ clearRooms() {
57
+ return s3;
52
58
  }
53
59
  }
54
- }), l2 = l3.actions, i2 = l3.reducer, a2 = {
60
+ }), y1 = v3.actions, a2 = v3.reducer, u2 = {
55
61
  apiVersion: "",
56
62
  serverIsRunningOnProcessorHardware: !1,
57
63
  websocket: {
@@ -60,6 +66,7 @@ const e2 = {
60
66
  pluginVersion: "",
61
67
  disconnectionMessage: "",
62
68
  token: "",
69
+ currentRoomKey: "",
63
70
  roomData: {
64
71
  clientId: "",
65
72
  roomKey: "",
@@ -70,9 +77,9 @@ const e2 = {
70
77
  userCode: "",
71
78
  qrUrl: ""
72
79
  }
73
- }, i3 = o1({
80
+ }, h3 = r1({
74
81
  name: "runtimeConfig",
75
- initialState: a2,
82
+ initialState: u2,
76
83
  reducers: {
77
84
  setRuntimeConfig(t, e) {
78
85
  t.apiVersion = e.payload.apiVersion, t.serverIsRunningOnProcessorHardware = e.payload.serverIsRunningOnProcessorHardware;
@@ -90,21 +97,21 @@ const e2 = {
90
97
  t.roomData = e.payload;
91
98
  },
92
99
  setCurrentRoomKey(t, e) {
93
- t.roomData.roomKey = e.payload;
100
+ R1.dispatch(y1.clearRooms()), R1.dispatch(I1.clearDevices()), t.currentRoomKey = e.payload;
94
101
  },
95
102
  setUserCode(t, e) {
96
103
  t.roomData.userCode = e.payload.userCode, t.roomData.qrUrl = e.payload.qrUrl;
97
104
  }
98
105
  }
99
- }), K = i3.actions, u2 = i3.reducer, d2 = {
106
+ }), K = h3.actions, d2 = h3.reducer, v2 = {
100
107
  modalVisibility: {
101
108
  showShutdownModal: !1,
102
109
  showIncomingCallModal: !1
103
110
  },
104
111
  popoverVisibility: {}
105
- }, a3 = o1({
112
+ }, g3 = r1({
106
113
  name: "ui",
107
- initialState: d2,
114
+ initialState: v2,
108
115
  reducers: {
109
116
  clearAllModals(t) {
110
117
  Object.entries(t.modalVisibility).forEach(([e]) => {
@@ -121,141 +128,148 @@ const e2 = {
121
128
  t.modalVisibility.showIncomingCallModal = e.payload;
122
129
  },
123
130
  setPopoverState(t, e) {
124
- t.popoverVisibility[e.payload.popoverGroup] || (t.popoverVisibility[e.payload.popoverGroup] = {}), Object.entries(t.popoverVisibility[e.payload.popoverGroup]).forEach(([c]) => {
125
- t.popoverVisibility[e.payload.popoverGroup][c] = !1;
131
+ t.popoverVisibility[e.payload.popoverGroup] || (t.popoverVisibility[e.payload.popoverGroup] = {}), Object.entries(t.popoverVisibility[e.payload.popoverGroup]).forEach(([s]) => {
132
+ t.popoverVisibility[e.payload.popoverGroup][s] = !1;
126
133
  }), t.popoverVisibility[e.payload.popoverGroup][e.payload.popoverId] = e.payload.value;
127
134
  }
128
135
  }
129
- }), A8 = a3.actions, v2 = a3.reducer, u3 = G3({
130
- appConfig: n2,
131
- runtimeConfig: u2,
132
- rooms: i2,
133
- devices: o2,
134
- ui: v2
135
- }), h2 = n3({
136
- reducer: u3
137
- }), Z = Y3, g2 = () => Z((t) => t.appConfig.config), B8 = () => Z((t) => t.appConfig.config.apiPath), f2 = () => Z((t) => t.devices);
136
+ }), B8 = g3.actions, h2 = g3.reducer, f3 = X3({
137
+ appConfig: l2,
138
+ runtimeConfig: d2,
139
+ rooms: a2,
140
+ devices: i2,
141
+ ui: h2
142
+ }), g2 = l3({
143
+ reducer: f3
144
+ }), R1 = g2, Z = N3, f2 = () => Z((t) => t.appConfig.config), T8 = () => Z((t) => t.appConfig.config.apiPath), w2 = () => Z((t) => t.devices);
138
145
  function L(t) {
139
146
  return Z((e) => e.devices[t] ? e.devices[t] : void 0);
140
147
  }
141
- const T8 = (t) => Z(
148
+ const P8 = (t) => Z(
142
149
  (e) => {
143
- var c;
144
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.configuration : void 0;
150
+ var s;
151
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.configuration : void 0;
145
152
  }
146
- ), R1 = (t) => Z(
153
+ ), $1 = (t) => Z(
147
154
  (e) => e.rooms[t] ? e.rooms[t] : void 0
148
- ), D8 = (t) => Z(
149
- (e) => {
150
- var c;
151
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.name : void 0;
152
- }
153
- ), w2 = (t, e) => Z(
154
- (c) => {
155
- var o;
156
- return c.rooms[t] ? (o = c.rooms[t]) == null ? void 0 : o.volumes[e] : void 0;
157
- }
158
- ), P8 = (t) => Z(
159
- (e) => {
160
- var c, o;
161
- return e.rooms[t] ? (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.sourceList : void 0;
162
- }
163
155
  ), O8 = (t) => Z(
164
156
  (e) => {
165
- var c, o;
166
- return e.rooms[t] ? (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.destinations : void 0;
157
+ var s;
158
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.name : void 0;
167
159
  }
160
+ ), p2 = (t, e) => Z(
161
+ (s) => {
162
+ var c;
163
+ return s.rooms[t] ? (c = s.rooms[t]) == null ? void 0 : c.volumes[e] : void 0;
164
+ }
165
+ ), x2 = (t) => Z(
166
+ (e) => e.rooms[t] ? e.rooms[t] : void 0
168
167
  ), V8 = (t) => Z(
169
168
  (e) => {
170
- var c, o;
171
- return e.rooms[t] ? (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.destinationList : void 0;
169
+ var s, c;
170
+ return e.rooms[t] ? (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.sourceList : void 0;
172
171
  }
173
- ), F8 = (t) => Z(
172
+ ), k8 = (t) => Z(
174
173
  (e) => {
175
- var c, o;
176
- return e.rooms[t] ? (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.environmentalDevices : void 0;
174
+ var s, c;
175
+ return e.rooms[t] ? (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.levelControlList : void 0;
177
176
  }
178
- ), k8 = (t) => Z(
177
+ ), F8 = (t) => Z(
179
178
  (e) => {
180
- var c, o, l, i, d, f, u, S;
181
- return (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) != null && o.destinationList.programAudio ? (d = (i = (l = e.rooms[t]) == null ? void 0 : l.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : d.sinkKey : ((S = (u = (f = e.rooms[t]) == null ? void 0 : f.configuration) == null ? void 0 : u.destinationList.defaultDisplay) == null ? void 0 : S.sinkKey) || "";
179
+ var s, c;
180
+ return e.rooms[t] ? (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.destinations : void 0;
182
181
  }
183
182
  ), U8 = (t) => Z(
184
183
  (e) => {
185
- var c, o, l;
186
- return e.rooms[t] ? (l = (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.destinationList.codecContent) == null ? void 0 : l.sinkKey : void 0;
184
+ var s, c;
185
+ return e.rooms[t] ? (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.destinationList : void 0;
187
186
  }
188
187
  ), W8 = (t) => Z(
189
188
  (e) => {
190
- var c;
191
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.isInCall : void 0;
189
+ var s, c;
190
+ return e.rooms[t] ? (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.environmentalDevices : void 0;
192
191
  }
193
192
  ), H8 = (t) => Z(
194
193
  (e) => {
195
- var c;
196
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.isWarmingUp : void 0;
194
+ var s, c, l, i, u, f, h, S;
195
+ return (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) != null && c.destinationList.programAudio ? (u = (i = (l = e.rooms[t]) == null ? void 0 : l.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : u.sinkKey : ((S = (h = (f = e.rooms[t]) == null ? void 0 : f.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : S.sinkKey) || "";
197
196
  }
198
197
  ), K8 = (t) => Z(
199
198
  (e) => {
200
- var c;
201
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.isCoolingDown : void 0;
199
+ var s, c, l;
200
+ return e.rooms[t] ? (l = (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.destinationList.codecContent) == null ? void 0 : l.sinkKey : void 0;
202
201
  }
203
202
  ), G8 = (t) => Z(
204
203
  (e) => {
205
- var c;
206
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.isOn : void 0;
204
+ var s;
205
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.isInCall : void 0;
207
206
  }
208
207
  ), q8 = (t) => Z(
209
208
  (e) => {
210
- var c;
211
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.advancedSharingActive : void 0;
209
+ var s;
210
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.isWarmingUp : void 0;
212
211
  }
213
212
  ), Y8 = (t) => Z(
214
213
  (e) => {
215
- var c;
216
- return e.rooms[t] ? (c = e.rooms[t]) == null ? void 0 : c.share : void 0;
214
+ var s;
215
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.isCoolingDown : void 0;
216
+ }
217
+ ), J8 = (t) => Z(
218
+ (e) => {
219
+ var s;
220
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.isOn : void 0;
221
+ }
222
+ ), z8 = (t) => Z(
223
+ (e) => {
224
+ var s;
225
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.advancedSharingActive : void 0;
217
226
  }
218
- ), J8 = (t) => q3(
227
+ ), X8 = (t) => Z(
228
+ (e) => {
229
+ var s;
230
+ return e.rooms[t] ? (s = e.rooms[t]) == null ? void 0 : s.share : void 0;
231
+ }
232
+ ), Q8 = (t) => Q3(
219
233
  [
220
- (e, c) => c,
221
- f2,
234
+ (e, s) => s,
235
+ w2,
222
236
  (e) => {
223
- var c, o;
224
- return (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.destinations;
237
+ var s, c;
238
+ return (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.destinations;
225
239
  }
226
240
  ],
227
- (e, c, o) => {
228
- if (console.log("roomKey", e), console.log("devices", c), console.log("destinations", o), !o)
241
+ (e, s, c) => {
242
+ if (console.log("roomKey", e), console.log("devices", s), console.log("destinations", c), !c)
229
243
  return;
230
- const l = Object.entries(o).filter(([d]) => d !== "programAudio" && d !== "codecContent").map(([, d]) => d);
231
- return Object.values(c).filter((d) => Object.values(l).includes(d.key));
244
+ const l = Object.entries(c).filter(([u]) => u !== "programAudio" && u !== "codecContent").map(([, u]) => u);
245
+ return Object.values(s).filter((u) => Object.values(l).includes(u.key));
232
246
  }
233
- )(h2.getState(), t), z8 = (t) => Z(
247
+ )(R1.getState(), t), N8 = (t) => Z(
234
248
  (e) => {
235
- var c, o;
236
- return e.rooms[t] ? (o = (c = e.rooms[t]) == null ? void 0 : c.configuration) == null ? void 0 : o.zoomRoomControllerKey : void 0;
237
- }
238
- ), p2 = () => Z((t) => t.runtimeConfig.websocket.isConnected), x2 = () => Z((t) => t.runtimeConfig.roomData.roomKey), M2 = () => Z((t) => t.runtimeConfig.roomData.clientId), X8 = () => Z((t) => t.ui.modalVisibility.showShutdownModal), Q8 = () => Z((t) => t.ui.modalVisibility.showIncomingCallModal), N8 = (t) => Z((e) => e.ui.modalVisibility[t]), e6 = (t) => Z((e) => {
239
- const c = e.ui.popoverVisibility[t];
240
- if (c)
241
- return Object.keys(c).find((o) => c[o]);
242
- }), t6 = (t, e) => Z((c) => {
243
- var o;
244
- return (o = c.ui.popoverVisibility[t]) == null ? void 0 : o[e];
245
- }), F = n3({
246
- reducer: u3
247
- }), m2 = J3, b1 = K3.create();
248
- function Z2() {
249
- const t = m2();
249
+ var s, c;
250
+ return e.rooms[t] ? (c = (s = e.rooms[t]) == null ? void 0 : s.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
251
+ }
252
+ ), M2 = () => Z((t) => t.runtimeConfig.websocket.isConnected), m2 = () => Z((t) => t.runtimeConfig.currentRoomKey), Z2 = () => Z((t) => t.runtimeConfig.roomData.clientId), e6 = () => Z((t) => t.ui.modalVisibility.showShutdownModal), t6 = () => Z((t) => t.ui.modalVisibility.showIncomingCallModal), n6 = (t) => Z((e) => e.ui.modalVisibility[t]), s6 = (t) => Z((e) => {
253
+ const s = e.ui.popoverVisibility[t];
254
+ if (s)
255
+ return Object.keys(s).find((c) => s[c]);
256
+ }), o6 = (t, e) => Z((s) => {
257
+ var c;
258
+ return (c = s.ui.popoverVisibility[t]) == null ? void 0 : c[e];
259
+ }), O = l3({
260
+ reducer: f3
261
+ }), j2 = e2, E1 = z3.create();
262
+ function C2() {
263
+ const t = j2();
250
264
  return async () => {
251
265
  try {
252
266
  const e = location.pathname.split("/").filter((l) => l.length > 0);
253
267
  e.length >= 5 ? e.length = 5 : e.length = 2;
254
- const c = `/${e.join("/")}`, o = await b1.get("/_local-config/_config.local.json", { baseURL: c });
255
- if (o.status == 200 && o.data) {
256
- const l = o.data.apiPath;
257
- t(t2.setAppConfig(o.data));
258
- const i = await b1.get(`${l}/version`);
268
+ const s = `/${e.join("/")}`, c = await E1.get("/_local-config/_config.local.json", { baseURL: s });
269
+ if (c.status == 200 && c.data) {
270
+ const l = c.data.apiPath;
271
+ t(r2.setAppConfig(c.data));
272
+ const i = await E1.get(`${l}/version`);
259
273
  i.status == 200 && i.data && t(K.setRuntimeConfig(i.data));
260
274
  }
261
275
  } catch (e) {
@@ -264,7 +278,7 @@ function Z2() {
264
278
  return !0;
265
279
  };
266
280
  }
267
- var I1 = { exports: {} }, t1 = {};
281
+ var _1 = { exports: {} }, n1 = {};
268
282
  /**
269
283
  * @license React
270
284
  * react-jsx-runtime.development.js
@@ -274,64 +288,64 @@ var I1 = { exports: {} }, t1 = {};
274
288
  * This source code is licensed under the MIT license found in the
275
289
  * LICENSE file in the root directory of this source tree.
276
290
  */
277
- var N1;
278
- function j2() {
279
- return N1 || (N1 = 1, process.env.NODE_ENV !== "production" && function() {
280
- var t = s3, e = Symbol.for("react.element"), c = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), V = Symbol.iterator, Y = "@@iterator";
281
- function J(s) {
282
- if (s === null || typeof s != "object")
291
+ var o3;
292
+ function S2() {
293
+ return o3 || (o3 = 1, process.env.NODE_ENV !== "production" && function() {
294
+ var t = a3, e = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), V = Symbol.iterator, Y = "@@iterator";
295
+ function J(o) {
296
+ if (o === null || typeof o != "object")
283
297
  return null;
284
- var r = V && s[V] || s[Y];
298
+ var r = V && o[V] || o[Y];
285
299
  return typeof r == "function" ? r : null;
286
300
  }
287
- var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
288
- function g(s) {
301
+ var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
302
+ function g(o) {
289
303
  {
290
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
291
- a[v - 1] = arguments[v];
292
- O("error", s, a);
304
+ for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
305
+ a[d - 1] = arguments[d];
306
+ z("error", o, a);
293
307
  }
294
308
  }
295
- function O(s, r, a) {
309
+ function z(o, r, a) {
296
310
  {
297
- var v = m.ReactDebugCurrentFrame, M = v.getStackAddendum();
298
- M !== "" && (r += "%s", a = a.concat([M]));
299
- var j = a.map(function(p) {
300
- return String(p);
311
+ var d = j.ReactDebugCurrentFrame, m = d.getStackAddendum();
312
+ m !== "" && (r += "%s", a = a.concat([m]));
313
+ var C = a.map(function(x) {
314
+ return String(x);
301
315
  });
302
- j.unshift("Warning: " + r), Function.prototype.apply.call(console[s], console, j);
316
+ C.unshift("Warning: " + r), Function.prototype.apply.call(console[o], console, C);
303
317
  }
304
318
  }
305
- var z = !1, E = !1, X = !1, v1 = !1, h1 = !1, E1;
306
- E1 = Symbol.for("react.module.reference");
307
- function g3(s) {
308
- return !!(typeof s == "string" || typeof s == "function" || s === o || s === i || h1 || s === l || s === S || s === C || v1 || s === T || z || E || X || typeof s == "object" && s !== null && (s.$$typeof === A || s.$$typeof === b || s.$$typeof === d || s.$$typeof === f || s.$$typeof === u || // This needs to include all possible module reference object
319
+ var k = !1, X = !1, E = !1, Q = !1, g1 = !1, l1;
320
+ l1 = Symbol.for("react.module.reference");
321
+ function M3(o) {
322
+ return !!(typeof o == "string" || typeof o == "function" || o === c || o === i || g1 || o === l || o === S || o === p || Q || o === B || k || X || E || typeof o == "object" && o !== null && (o.$$typeof === A || o.$$typeof === b || o.$$typeof === u || o.$$typeof === f || o.$$typeof === h || // This needs to include all possible module reference object
309
323
  // types supported by any Flight configuration anywhere since
310
324
  // we don't know which Flight build this will end up being used
311
325
  // with.
312
- s.$$typeof === E1 || s.getModuleId !== void 0));
326
+ o.$$typeof === l1 || o.getModuleId !== void 0));
313
327
  }
314
- function f3(s, r, a) {
315
- var v = s.displayName;
316
- if (v)
317
- return v;
318
- var M = r.displayName || r.name || "";
319
- return M !== "" ? a + "(" + M + ")" : a;
328
+ function m3(o, r, a) {
329
+ var d = o.displayName;
330
+ if (d)
331
+ return d;
332
+ var m = r.displayName || r.name || "";
333
+ return m !== "" ? a + "(" + m + ")" : a;
320
334
  }
321
- function _1(s) {
322
- return s.displayName || "Context";
335
+ function A1(o) {
336
+ return o.displayName || "Context";
323
337
  }
324
- function P(s) {
325
- if (s == null)
338
+ function P(o) {
339
+ if (o == null)
326
340
  return null;
327
- if (typeof s.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
328
- return s.displayName || s.name || null;
329
- if (typeof s == "string")
330
- return s;
331
- switch (s) {
332
- case o:
333
- return "Fragment";
341
+ if (typeof o.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
342
+ return o.displayName || o.name || null;
343
+ if (typeof o == "string")
344
+ return o;
345
+ switch (o) {
334
346
  case c:
347
+ return "Fragment";
348
+ case s:
335
349
  return "Portal";
336
350
  case i:
337
351
  return "Profiler";
@@ -339,26 +353,26 @@ function j2() {
339
353
  return "StrictMode";
340
354
  case S:
341
355
  return "Suspense";
342
- case C:
356
+ case p:
343
357
  return "SuspenseList";
344
358
  }
345
- if (typeof s == "object")
346
- switch (s.$$typeof) {
359
+ if (typeof o == "object")
360
+ switch (o.$$typeof) {
347
361
  case f:
348
- var r = s;
349
- return _1(r) + ".Consumer";
350
- case d:
351
- var a = s;
352
- return _1(a._context) + ".Provider";
362
+ var r = o;
363
+ return A1(r) + ".Consumer";
353
364
  case u:
354
- return f3(s, s.render, "ForwardRef");
365
+ var a = o;
366
+ return A1(a._context) + ".Provider";
367
+ case h:
368
+ return m3(o, o.render, "ForwardRef");
355
369
  case b:
356
- var v = s.displayName || null;
357
- return v !== null ? v : P(s.type) || "Memo";
370
+ var d = o.displayName || null;
371
+ return d !== null ? d : P(o.type) || "Memo";
358
372
  case A: {
359
- var M = s, j = M._payload, p = M._init;
373
+ var m = o, C = m._payload, x = m._init;
360
374
  try {
361
- return P(p(j));
375
+ return P(x(C));
362
376
  } catch {
363
377
  return null;
364
378
  }
@@ -366,307 +380,307 @@ function j2() {
366
380
  }
367
381
  return null;
368
382
  }
369
- var k = Object.assign, Q = 0, L1, $1, A1, B1, T1, D1, P1;
370
- function O1() {
383
+ var F = Object.assign, N = 0, D1, B1, T1, P1, O1, V1, k1;
384
+ function F1() {
371
385
  }
372
- O1.__reactDisabledLog = !0;
373
- function w3() {
386
+ F1.__reactDisabledLog = !0;
387
+ function Z3() {
374
388
  {
375
- if (Q === 0) {
376
- L1 = console.log, $1 = console.info, A1 = console.warn, B1 = console.error, T1 = console.group, D1 = console.groupCollapsed, P1 = console.groupEnd;
377
- var s = {
389
+ if (N === 0) {
390
+ D1 = console.log, B1 = console.info, T1 = console.warn, P1 = console.error, O1 = console.group, V1 = console.groupCollapsed, k1 = console.groupEnd;
391
+ var o = {
378
392
  configurable: !0,
379
393
  enumerable: !0,
380
- value: O1,
394
+ value: F1,
381
395
  writable: !0
382
396
  };
383
397
  Object.defineProperties(console, {
384
- info: s,
385
- log: s,
386
- warn: s,
387
- error: s,
388
- group: s,
389
- groupCollapsed: s,
390
- groupEnd: s
398
+ info: o,
399
+ log: o,
400
+ warn: o,
401
+ error: o,
402
+ group: o,
403
+ groupCollapsed: o,
404
+ groupEnd: o
391
405
  });
392
406
  }
393
- Q++;
407
+ N++;
394
408
  }
395
409
  }
396
- function p3() {
410
+ function j3() {
397
411
  {
398
- if (Q--, Q === 0) {
399
- var s = {
412
+ if (N--, N === 0) {
413
+ var o = {
400
414
  configurable: !0,
401
415
  enumerable: !0,
402
416
  writable: !0
403
417
  };
404
418
  Object.defineProperties(console, {
405
- log: k({}, s, {
406
- value: L1
407
- }),
408
- info: k({}, s, {
409
- value: $1
410
- }),
411
- warn: k({}, s, {
412
- value: A1
419
+ log: F({}, o, {
420
+ value: D1
413
421
  }),
414
- error: k({}, s, {
422
+ info: F({}, o, {
415
423
  value: B1
416
424
  }),
417
- group: k({}, s, {
425
+ warn: F({}, o, {
418
426
  value: T1
419
427
  }),
420
- groupCollapsed: k({}, s, {
421
- value: D1
422
- }),
423
- groupEnd: k({}, s, {
428
+ error: F({}, o, {
424
429
  value: P1
430
+ }),
431
+ group: F({}, o, {
432
+ value: O1
433
+ }),
434
+ groupCollapsed: F({}, o, {
435
+ value: V1
436
+ }),
437
+ groupEnd: F({}, o, {
438
+ value: k1
425
439
  })
426
440
  });
427
441
  }
428
- Q < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
442
+ N < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
429
443
  }
430
444
  }
431
- var g1 = m.ReactCurrentDispatcher, f1;
432
- function r1(s, r, a) {
445
+ var f1 = j.ReactCurrentDispatcher, w1;
446
+ function i1(o, r, a) {
433
447
  {
434
- if (f1 === void 0)
448
+ if (w1 === void 0)
435
449
  try {
436
450
  throw Error();
437
- } catch (M) {
438
- var v = M.stack.trim().match(/\n( *(at )?)/);
439
- f1 = v && v[1] || "";
451
+ } catch (m) {
452
+ var d = m.stack.trim().match(/\n( *(at )?)/);
453
+ w1 = d && d[1] || "";
440
454
  }
441
455
  return `
442
- ` + f1 + s;
456
+ ` + w1 + o;
443
457
  }
444
458
  }
445
- var w1 = !1, l1;
459
+ var p1 = !1, a1;
446
460
  {
447
- var x3 = typeof WeakMap == "function" ? WeakMap : Map;
448
- l1 = new x3();
461
+ var C3 = typeof WeakMap == "function" ? WeakMap : Map;
462
+ a1 = new C3();
449
463
  }
450
- function V1(s, r) {
451
- if (!s || w1)
464
+ function U1(o, r) {
465
+ if (!o || p1)
452
466
  return "";
453
467
  {
454
- var a = l1.get(s);
468
+ var a = a1.get(o);
455
469
  if (a !== void 0)
456
470
  return a;
457
471
  }
458
- var v;
459
- w1 = !0;
460
- var M = Error.prepareStackTrace;
472
+ var d;
473
+ p1 = !0;
474
+ var m = Error.prepareStackTrace;
461
475
  Error.prepareStackTrace = void 0;
462
- var j;
463
- j = g1.current, g1.current = null, w3();
476
+ var C;
477
+ C = f1.current, f1.current = null, Z3();
464
478
  try {
465
479
  if (r) {
466
- var p = function() {
480
+ var x = function() {
467
481
  throw Error();
468
482
  };
469
- if (Object.defineProperty(p.prototype, "props", {
483
+ if (Object.defineProperty(x.prototype, "props", {
470
484
  set: function() {
471
485
  throw Error();
472
486
  }
473
487
  }), typeof Reflect == "object" && Reflect.construct) {
474
488
  try {
475
- Reflect.construct(p, []);
476
- } catch (B) {
477
- v = B;
489
+ Reflect.construct(x, []);
490
+ } catch (D) {
491
+ d = D;
478
492
  }
479
- Reflect.construct(s, [], p);
493
+ Reflect.construct(o, [], x);
480
494
  } else {
481
495
  try {
482
- p.call();
483
- } catch (B) {
484
- v = B;
496
+ x.call();
497
+ } catch (D) {
498
+ d = D;
485
499
  }
486
- s.call(p.prototype);
500
+ o.call(x.prototype);
487
501
  }
488
502
  } else {
489
503
  try {
490
504
  throw Error();
491
- } catch (B) {
492
- v = B;
505
+ } catch (D) {
506
+ d = D;
493
507
  }
494
- s();
508
+ o();
495
509
  }
496
- } catch (B) {
497
- if (B && v && typeof B.stack == "string") {
498
- for (var w = B.stack.split(`
499
- `), $ = v.stack.split(`
500
- `), I = w.length - 1, R = $.length - 1; I >= 1 && R >= 0 && w[I] !== $[R]; )
510
+ } catch (D) {
511
+ if (D && d && typeof D.stack == "string") {
512
+ for (var w = D.stack.split(`
513
+ `), $ = d.stack.split(`
514
+ `), y = w.length - 1, R = $.length - 1; y >= 1 && R >= 0 && w[y] !== $[R]; )
501
515
  R--;
502
- for (; I >= 1 && R >= 0; I--, R--)
503
- if (w[I] !== $[R]) {
504
- if (I !== 1 || R !== 1)
516
+ for (; y >= 1 && R >= 0; y--, R--)
517
+ if (w[y] !== $[R]) {
518
+ if (y !== 1 || R !== 1)
505
519
  do
506
- if (I--, R--, R < 0 || w[I] !== $[R]) {
507
- var D = `
508
- ` + w[I].replace(" at new ", " at ");
509
- return s.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", s.displayName)), typeof s == "function" && l1.set(s, D), D;
520
+ if (y--, R--, R < 0 || w[y] !== $[R]) {
521
+ var T = `
522
+ ` + w[y].replace(" at new ", " at ");
523
+ return o.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", o.displayName)), typeof o == "function" && a1.set(o, T), T;
510
524
  }
511
- while (I >= 1 && R >= 0);
525
+ while (y >= 1 && R >= 0);
512
526
  break;
513
527
  }
514
528
  }
515
529
  } finally {
516
- w1 = !1, g1.current = j, p3(), Error.prepareStackTrace = M;
530
+ p1 = !1, f1.current = C, j3(), Error.prepareStackTrace = m;
517
531
  }
518
- var H = s ? s.displayName || s.name : "", U = H ? r1(H) : "";
519
- return typeof s == "function" && l1.set(s, U), U;
532
+ var H = o ? o.displayName || o.name : "", U = H ? i1(H) : "";
533
+ return typeof o == "function" && a1.set(o, U), U;
520
534
  }
521
- function M3(s, r, a) {
522
- return V1(s, !1);
535
+ function S3(o, r, a) {
536
+ return U1(o, !1);
523
537
  }
524
- function m3(s) {
525
- var r = s.prototype;
538
+ function b3(o) {
539
+ var r = o.prototype;
526
540
  return !!(r && r.isReactComponent);
527
541
  }
528
- function i1(s, r, a) {
529
- if (s == null)
542
+ function u1(o, r, a) {
543
+ if (o == null)
530
544
  return "";
531
- if (typeof s == "function")
532
- return V1(s, m3(s));
533
- if (typeof s == "string")
534
- return r1(s);
535
- switch (s) {
545
+ if (typeof o == "function")
546
+ return U1(o, b3(o));
547
+ if (typeof o == "string")
548
+ return i1(o);
549
+ switch (o) {
536
550
  case S:
537
- return r1("Suspense");
538
- case C:
539
- return r1("SuspenseList");
551
+ return i1("Suspense");
552
+ case p:
553
+ return i1("SuspenseList");
540
554
  }
541
- if (typeof s == "object")
542
- switch (s.$$typeof) {
543
- case u:
544
- return M3(s.render);
555
+ if (typeof o == "object")
556
+ switch (o.$$typeof) {
557
+ case h:
558
+ return S3(o.render);
545
559
  case b:
546
- return i1(s.type, r, a);
560
+ return u1(o.type, r, a);
547
561
  case A: {
548
- var v = s, M = v._payload, j = v._init;
562
+ var d = o, m = d._payload, C = d._init;
549
563
  try {
550
- return i1(j(M), r, a);
564
+ return u1(C(m), r, a);
551
565
  } catch {
552
566
  }
553
567
  }
554
568
  }
555
569
  return "";
556
570
  }
557
- var N = Object.prototype.hasOwnProperty, F1 = {}, k1 = m.ReactDebugCurrentFrame;
558
- function a1(s) {
559
- if (s) {
560
- var r = s._owner, a = i1(s.type, s._source, r ? r.type : null);
561
- k1.setExtraStackFrame(a);
571
+ var e1 = Object.prototype.hasOwnProperty, W1 = {}, H1 = j.ReactDebugCurrentFrame;
572
+ function d1(o) {
573
+ if (o) {
574
+ var r = o._owner, a = u1(o.type, o._source, r ? r.type : null);
575
+ H1.setExtraStackFrame(a);
562
576
  } else
563
- k1.setExtraStackFrame(null);
577
+ H1.setExtraStackFrame(null);
564
578
  }
565
- function Z3(s, r, a, v, M) {
579
+ function I3(o, r, a, d, m) {
566
580
  {
567
- var j = Function.call.bind(N);
568
- for (var p in s)
569
- if (j(s, p)) {
581
+ var C = Function.call.bind(e1);
582
+ for (var x in o)
583
+ if (C(o, x)) {
570
584
  var w = void 0;
571
585
  try {
572
- if (typeof s[p] != "function") {
573
- var $ = Error((v || "React class") + ": " + a + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
586
+ if (typeof o[x] != "function") {
587
+ var $ = Error((d || "React class") + ": " + a + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
574
588
  throw $.name = "Invariant Violation", $;
575
589
  }
576
- w = s[p](r, p, v, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
577
- } catch (I) {
578
- w = I;
590
+ w = o[x](r, x, d, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
591
+ } catch (y) {
592
+ w = y;
579
593
  }
580
- w && !(w instanceof Error) && (a1(M), g("%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).", v || "React class", a, p, typeof w), a1(null)), w instanceof Error && !(w.message in F1) && (F1[w.message] = !0, a1(M), g("Failed %s type: %s", a, w.message), a1(null));
594
+ w && !(w instanceof Error) && (d1(m), g("%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).", d || "React class", a, x, typeof w), d1(null)), w instanceof Error && !(w.message in W1) && (W1[w.message] = !0, d1(m), g("Failed %s type: %s", a, w.message), d1(null));
581
595
  }
582
596
  }
583
597
  }
584
- var j3 = Array.isArray;
585
- function p1(s) {
586
- return j3(s);
598
+ var y3 = Array.isArray;
599
+ function x1(o) {
600
+ return y3(o);
587
601
  }
588
- function C3(s) {
602
+ function R3(o) {
589
603
  {
590
- var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && s[Symbol.toStringTag] || s.constructor.name || "Object";
604
+ var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && o[Symbol.toStringTag] || o.constructor.name || "Object";
591
605
  return a;
592
606
  }
593
607
  }
594
- function S3(s) {
608
+ function E3(o) {
595
609
  try {
596
- return U1(s), !1;
610
+ return K1(o), !1;
597
611
  } catch {
598
612
  return !0;
599
613
  }
600
614
  }
601
- function U1(s) {
602
- return "" + s;
615
+ function K1(o) {
616
+ return "" + o;
603
617
  }
604
- function W1(s) {
605
- if (S3(s))
606
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", C3(s)), U1(s);
618
+ function G1(o) {
619
+ if (E3(o))
620
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", R3(o)), K1(o);
607
621
  }
608
- var e1 = m.ReactCurrentOwner, b3 = {
622
+ var t1 = j.ReactCurrentOwner, _3 = {
609
623
  key: !0,
610
624
  ref: !0,
611
625
  __self: !0,
612
626
  __source: !0
613
- }, H1, K1, x1;
614
- x1 = {};
615
- function I3(s) {
616
- if (N.call(s, "ref")) {
617
- var r = Object.getOwnPropertyDescriptor(s, "ref").get;
627
+ }, q1, Y1, M1;
628
+ M1 = {};
629
+ function L3(o) {
630
+ if (e1.call(o, "ref")) {
631
+ var r = Object.getOwnPropertyDescriptor(o, "ref").get;
618
632
  if (r && r.isReactWarning)
619
633
  return !1;
620
634
  }
621
- return s.ref !== void 0;
635
+ return o.ref !== void 0;
622
636
  }
623
- function y3(s) {
624
- if (N.call(s, "key")) {
625
- var r = Object.getOwnPropertyDescriptor(s, "key").get;
637
+ function $3(o) {
638
+ if (e1.call(o, "key")) {
639
+ var r = Object.getOwnPropertyDescriptor(o, "key").get;
626
640
  if (r && r.isReactWarning)
627
641
  return !1;
628
642
  }
629
- return s.key !== void 0;
643
+ return o.key !== void 0;
630
644
  }
631
- function R3(s, r) {
632
- if (typeof s.ref == "string" && e1.current && r && e1.current.stateNode !== r) {
633
- var a = P(e1.current.type);
634
- x1[a] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(e1.current.type), s.ref), x1[a] = !0);
645
+ function A3(o, r) {
646
+ if (typeof o.ref == "string" && t1.current && r && t1.current.stateNode !== r) {
647
+ var a = P(t1.current.type);
648
+ M1[a] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(t1.current.type), o.ref), M1[a] = !0);
635
649
  }
636
650
  }
637
- function E3(s, r) {
651
+ function D3(o, r) {
638
652
  {
639
653
  var a = function() {
640
- H1 || (H1 = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
654
+ q1 || (q1 = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
641
655
  };
642
- a.isReactWarning = !0, Object.defineProperty(s, "key", {
656
+ a.isReactWarning = !0, Object.defineProperty(o, "key", {
643
657
  get: a,
644
658
  configurable: !0
645
659
  });
646
660
  }
647
661
  }
648
- function _3(s, r) {
662
+ function B3(o, r) {
649
663
  {
650
664
  var a = function() {
651
- K1 || (K1 = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
665
+ Y1 || (Y1 = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
652
666
  };
653
- a.isReactWarning = !0, Object.defineProperty(s, "ref", {
667
+ a.isReactWarning = !0, Object.defineProperty(o, "ref", {
654
668
  get: a,
655
669
  configurable: !0
656
670
  });
657
671
  }
658
672
  }
659
- var L3 = function(s, r, a, v, M, j, p) {
673
+ var T3 = function(o, r, a, d, m, C, x) {
660
674
  var w = {
661
675
  // This tag allows us to uniquely identify this as a React Element
662
676
  $$typeof: e,
663
677
  // Built-in properties that belong on the element
664
- type: s,
678
+ type: o,
665
679
  key: r,
666
680
  ref: a,
667
- props: p,
681
+ props: x,
668
682
  // Record the component responsible for creating this element.
669
- _owner: j
683
+ _owner: C
670
684
  };
671
685
  return w._store = {}, Object.defineProperty(w._store, "validated", {
672
686
  configurable: !1,
@@ -677,61 +691,61 @@ function j2() {
677
691
  configurable: !1,
678
692
  enumerable: !1,
679
693
  writable: !1,
680
- value: v
694
+ value: d
681
695
  }), Object.defineProperty(w, "_source", {
682
696
  configurable: !1,
683
697
  enumerable: !1,
684
698
  writable: !1,
685
- value: M
699
+ value: m
686
700
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
687
701
  };
688
- function $3(s, r, a, v, M) {
702
+ function P3(o, r, a, d, m) {
689
703
  {
690
- var j, p = {}, w = null, $ = null;
691
- a !== void 0 && (W1(a), w = "" + a), y3(r) && (W1(r.key), w = "" + r.key), I3(r) && ($ = r.ref, R3(r, M));
692
- for (j in r)
693
- N.call(r, j) && !b3.hasOwnProperty(j) && (p[j] = r[j]);
694
- if (s && s.defaultProps) {
695
- var I = s.defaultProps;
696
- for (j in I)
697
- p[j] === void 0 && (p[j] = I[j]);
704
+ var C, x = {}, w = null, $ = null;
705
+ a !== void 0 && (G1(a), w = "" + a), $3(r) && (G1(r.key), w = "" + r.key), L3(r) && ($ = r.ref, A3(r, m));
706
+ for (C in r)
707
+ e1.call(r, C) && !_3.hasOwnProperty(C) && (x[C] = r[C]);
708
+ if (o && o.defaultProps) {
709
+ var y = o.defaultProps;
710
+ for (C in y)
711
+ x[C] === void 0 && (x[C] = y[C]);
698
712
  }
699
713
  if (w || $) {
700
- var R = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
701
- w && E3(p, R), $ && _3(p, R);
714
+ var R = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
715
+ w && D3(x, R), $ && B3(x, R);
702
716
  }
703
- return L3(s, w, $, M, v, e1.current, p);
717
+ return T3(o, w, $, m, d, t1.current, x);
704
718
  }
705
719
  }
706
- var M1 = m.ReactCurrentOwner, G1 = m.ReactDebugCurrentFrame;
707
- function W(s) {
708
- if (s) {
709
- var r = s._owner, a = i1(s.type, s._source, r ? r.type : null);
710
- G1.setExtraStackFrame(a);
720
+ var m1 = j.ReactCurrentOwner, J1 = j.ReactDebugCurrentFrame;
721
+ function W(o) {
722
+ if (o) {
723
+ var r = o._owner, a = u1(o.type, o._source, r ? r.type : null);
724
+ J1.setExtraStackFrame(a);
711
725
  } else
712
- G1.setExtraStackFrame(null);
726
+ J1.setExtraStackFrame(null);
713
727
  }
714
- var m1;
715
- m1 = !1;
716
- function Z1(s) {
717
- return typeof s == "object" && s !== null && s.$$typeof === e;
728
+ var Z1;
729
+ Z1 = !1;
730
+ function j1(o) {
731
+ return typeof o == "object" && o !== null && o.$$typeof === e;
718
732
  }
719
- function q1() {
733
+ function z1() {
720
734
  {
721
- if (M1.current) {
722
- var s = P(M1.current.type);
723
- if (s)
735
+ if (m1.current) {
736
+ var o = P(m1.current.type);
737
+ if (o)
724
738
  return `
725
739
 
726
- Check the render method of \`` + s + "`.";
740
+ Check the render method of \`` + o + "`.";
727
741
  }
728
742
  return "";
729
743
  }
730
744
  }
731
- function A3(s) {
745
+ function O3(o) {
732
746
  {
733
- if (s !== void 0) {
734
- var r = s.fileName.replace(/^.*[\\\/]/, ""), a = s.lineNumber;
747
+ if (o !== void 0) {
748
+ var r = o.fileName.replace(/^.*[\\\/]/, ""), a = o.lineNumber;
735
749
  return `
736
750
 
737
751
  Check your code at ` + r + ":" + a + ".";
@@ -739,12 +753,12 @@ Check your code at ` + r + ":" + a + ".";
739
753
  return "";
740
754
  }
741
755
  }
742
- var Y1 = {};
743
- function B3(s) {
756
+ var X1 = {};
757
+ function V3(o) {
744
758
  {
745
- var r = q1();
759
+ var r = z1();
746
760
  if (!r) {
747
- var a = typeof s == "string" ? s : s.displayName || s.name;
761
+ var a = typeof o == "string" ? o : o.displayName || o.name;
748
762
  a && (r = `
749
763
 
750
764
  Check the top-level render call using <` + a + ">.");
@@ -752,131 +766,131 @@ Check the top-level render call using <` + a + ">.");
752
766
  return r;
753
767
  }
754
768
  }
755
- function J1(s, r) {
769
+ function Q1(o, r) {
756
770
  {
757
- if (!s._store || s._store.validated || s.key != null)
771
+ if (!o._store || o._store.validated || o.key != null)
758
772
  return;
759
- s._store.validated = !0;
760
- var a = B3(r);
761
- if (Y1[a])
773
+ o._store.validated = !0;
774
+ var a = V3(r);
775
+ if (X1[a])
762
776
  return;
763
- Y1[a] = !0;
764
- var v = "";
765
- s && s._owner && s._owner !== M1.current && (v = " It was passed a child from " + P(s._owner.type) + "."), W(s), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, v), W(null);
777
+ X1[a] = !0;
778
+ var d = "";
779
+ o && o._owner && o._owner !== m1.current && (d = " It was passed a child from " + P(o._owner.type) + "."), W(o), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, d), W(null);
766
780
  }
767
781
  }
768
- function z1(s, r) {
782
+ function N1(o, r) {
769
783
  {
770
- if (typeof s != "object")
784
+ if (typeof o != "object")
771
785
  return;
772
- if (p1(s))
773
- for (var a = 0; a < s.length; a++) {
774
- var v = s[a];
775
- Z1(v) && J1(v, r);
786
+ if (x1(o))
787
+ for (var a = 0; a < o.length; a++) {
788
+ var d = o[a];
789
+ j1(d) && Q1(d, r);
776
790
  }
777
- else if (Z1(s))
778
- s._store && (s._store.validated = !0);
779
- else if (s) {
780
- var M = J(s);
781
- if (typeof M == "function" && M !== s.entries)
782
- for (var j = M.call(s), p; !(p = j.next()).done; )
783
- Z1(p.value) && J1(p.value, r);
791
+ else if (j1(o))
792
+ o._store && (o._store.validated = !0);
793
+ else if (o) {
794
+ var m = J(o);
795
+ if (typeof m == "function" && m !== o.entries)
796
+ for (var C = m.call(o), x; !(x = C.next()).done; )
797
+ j1(x.value) && Q1(x.value, r);
784
798
  }
785
799
  }
786
800
  }
787
- function T3(s) {
801
+ function k3(o) {
788
802
  {
789
- var r = s.type;
803
+ var r = o.type;
790
804
  if (r == null || typeof r == "string")
791
805
  return;
792
806
  var a;
793
807
  if (typeof r == "function")
794
808
  a = r.propTypes;
795
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
809
+ else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
796
810
  // Inner props are checked in the reconciler.
797
811
  r.$$typeof === b))
798
812
  a = r.propTypes;
799
813
  else
800
814
  return;
801
815
  if (a) {
802
- var v = P(r);
803
- Z3(a, s.props, "prop", v, s);
804
- } else if (r.PropTypes !== void 0 && !m1) {
805
- m1 = !0;
806
- var M = P(r);
807
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
816
+ var d = P(r);
817
+ I3(a, o.props, "prop", d, o);
818
+ } else if (r.PropTypes !== void 0 && !Z1) {
819
+ Z1 = !0;
820
+ var m = P(r);
821
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
808
822
  }
809
823
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
810
824
  }
811
825
  }
812
- function D3(s) {
826
+ function F3(o) {
813
827
  {
814
- for (var r = Object.keys(s.props), a = 0; a < r.length; a++) {
815
- var v = r[a];
816
- if (v !== "children" && v !== "key") {
817
- W(s), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), W(null);
828
+ for (var r = Object.keys(o.props), a = 0; a < r.length; a++) {
829
+ var d = r[a];
830
+ if (d !== "children" && d !== "key") {
831
+ W(o), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), W(null);
818
832
  break;
819
833
  }
820
834
  }
821
- s.ref !== null && (W(s), g("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
835
+ o.ref !== null && (W(o), g("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
822
836
  }
823
837
  }
824
- var X1 = {};
825
- function Q1(s, r, a, v, M, j) {
838
+ var e3 = {};
839
+ function t3(o, r, a, d, m, C) {
826
840
  {
827
- var p = g3(s);
828
- if (!p) {
841
+ var x = M3(o);
842
+ if (!x) {
829
843
  var w = "";
830
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
831
- var $ = A3(M);
832
- $ ? w += $ : w += q1();
833
- var I;
834
- s === null ? I = "null" : p1(s) ? I = "array" : s !== void 0 && s.$$typeof === e ? (I = "<" + (P(s.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : I = typeof s, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, w);
844
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
845
+ var $ = O3(m);
846
+ $ ? w += $ : w += z1();
847
+ var y;
848
+ o === null ? y = "null" : x1(o) ? y = "array" : o !== void 0 && o.$$typeof === e ? (y = "<" + (P(o.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : y = typeof o, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, w);
835
849
  }
836
- var R = $3(s, r, a, M, j);
850
+ var R = P3(o, r, a, m, C);
837
851
  if (R == null)
838
852
  return R;
839
- if (p) {
840
- var D = r.children;
841
- if (D !== void 0)
842
- if (v)
843
- if (p1(D)) {
844
- for (var H = 0; H < D.length; H++)
845
- z1(D[H], s);
846
- Object.freeze && Object.freeze(D);
853
+ if (x) {
854
+ var T = r.children;
855
+ if (T !== void 0)
856
+ if (d)
857
+ if (x1(T)) {
858
+ for (var H = 0; H < T.length; H++)
859
+ N1(T[H], o);
860
+ Object.freeze && Object.freeze(T);
847
861
  } else
848
862
  g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
849
863
  else
850
- z1(D, s);
851
- }
852
- if (N.call(r, "key")) {
853
- var U = P(s), B = Object.keys(r).filter(function(U3) {
854
- return U3 !== "key";
855
- }), j1 = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
856
- if (!X1[U + j1]) {
857
- var k3 = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
864
+ N1(T, o);
865
+ }
866
+ if (e1.call(r, "key")) {
867
+ var U = P(o), D = Object.keys(r).filter(function(q3) {
868
+ return q3 !== "key";
869
+ }), C1 = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
870
+ if (!e3[U + C1]) {
871
+ var G3 = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
858
872
  g(`A props object containing a "key" prop is being spread into JSX:
859
873
  let props = %s;
860
874
  <%s {...props} />
861
875
  React keys must be passed directly to JSX without using spread:
862
876
  let props = %s;
863
- <%s key={someKey} {...props} />`, j1, U, k3, U), X1[U + j1] = !0;
877
+ <%s key={someKey} {...props} />`, C1, U, G3, U), e3[U + C1] = !0;
864
878
  }
865
879
  }
866
- return s === o ? D3(R) : T3(R), R;
880
+ return o === c ? F3(R) : k3(R), R;
867
881
  }
868
882
  }
869
- function P3(s, r, a) {
870
- return Q1(s, r, a, !0);
883
+ function U3(o, r, a) {
884
+ return t3(o, r, a, !0);
871
885
  }
872
- function O3(s, r, a) {
873
- return Q1(s, r, a, !1);
886
+ function W3(o, r, a) {
887
+ return t3(o, r, a, !1);
874
888
  }
875
- var V3 = O3, F3 = P3;
876
- t1.Fragment = o, t1.jsx = V3, t1.jsxs = F3;
877
- }()), t1;
889
+ var H3 = W3, K3 = U3;
890
+ n1.Fragment = c, n1.jsx = H3, n1.jsxs = K3;
891
+ }()), n1;
878
892
  }
879
- var n1 = {};
893
+ var s1 = {};
880
894
  /**
881
895
  * @license React
882
896
  * react-jsx-runtime.production.min.js
@@ -886,31 +900,31 @@ var n1 = {};
886
900
  * This source code is licensed under the MIT license found in the
887
901
  * LICENSE file in the root directory of this source tree.
888
902
  */
889
- var e3;
890
- function C2() {
891
- if (e3)
892
- return n1;
893
- e3 = 1;
894
- var t = s3, e = Symbol.for("react.element"), c = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
895
- function d(f, u, S) {
896
- var C, b = {}, A = null, T = null;
897
- S !== void 0 && (A = "" + S), u.key !== void 0 && (A = "" + u.key), u.ref !== void 0 && (T = u.ref);
898
- for (C in u)
899
- o.call(u, C) && !i.hasOwnProperty(C) && (b[C] = u[C]);
903
+ var c3;
904
+ function b2() {
905
+ if (c3)
906
+ return s1;
907
+ c3 = 1;
908
+ var t = a3, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
909
+ function u(f, h, S) {
910
+ var p, b = {}, A = null, B = null;
911
+ S !== void 0 && (A = "" + S), h.key !== void 0 && (A = "" + h.key), h.ref !== void 0 && (B = h.ref);
912
+ for (p in h)
913
+ c.call(h, p) && !i.hasOwnProperty(p) && (b[p] = h[p]);
900
914
  if (f && f.defaultProps)
901
- for (C in u = f.defaultProps, u)
902
- b[C] === void 0 && (b[C] = u[C]);
903
- return { $$typeof: e, type: f, key: A, ref: T, props: b, _owner: l.current };
915
+ for (p in h = f.defaultProps, h)
916
+ b[p] === void 0 && (b[p] = h[p]);
917
+ return { $$typeof: e, type: f, key: A, ref: B, props: b, _owner: l.current };
904
918
  }
905
- return n1.Fragment = c, n1.jsx = d, n1.jsxs = d, n1;
919
+ return s1.Fragment = s, s1.jsx = u, s1.jsxs = u, s1;
906
920
  }
907
- process.env.NODE_ENV === "production" ? I1.exports = C2() : I1.exports = j2();
908
- var n = I1.exports;
909
- const S2 = () => /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "disconnected-message", children: [
921
+ process.env.NODE_ENV === "production" ? _1.exports = b2() : _1.exports = S2();
922
+ var n = _1.exports;
923
+ const I2 = () => /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "disconnected-message", children: [
910
924
  /* @__PURE__ */ n.jsx("h1", { children: "Disconnected" }),
911
925
  /* @__PURE__ */ n.jsx("p", { children: "Reconnecting..." })
912
926
  ] }) });
913
- class b2 {
927
+ class y2 {
914
928
  constructor() {
915
929
  _(this, "uuid", "current-uuid");
916
930
  _(this, "roomKey", "current-room-key");
@@ -918,177 +932,196 @@ class b2 {
918
932
  _(this, "expiry", "current-uuid-expires");
919
933
  }
920
934
  }
921
- const t3 = new b2(), d3 = X3({
935
+ const r3 = new y2(), w3 = n2({
922
936
  sendMessage: () => null,
923
937
  sendSimpleMessage: () => null,
924
938
  addEventHandler: () => null,
925
939
  removeEventHandler: () => null
926
940
  });
927
- function I2(t) {
941
+ function R2(t) {
928
942
  return sessionStorage.getItem(t) || "";
929
943
  }
930
- function y2(t, e) {
944
+ function E2(t, e) {
931
945
  sessionStorage.setItem(t, e);
932
946
  }
933
- const R2 = ({ children: t }) => {
934
- const [e, c] = q(), o = p2(), l = x2(), i = M2(), d = Z2(), f = g2(), u = s1(null), [S, C] = q(), b = s1({}), A = u1(
935
- async (m) => {
936
- await b1.get(`${m}/ui/joinroom?token=${e}`).then((g) => {
937
- g.status === 200 && g.data && F.dispatch(K.setRoomData(g.data));
947
+ const _2 = ({ children: t }) => {
948
+ const [e, s] = q(), c = M2(), l = m2(), i = Z2(), u = C2(), f = f2(), h = c1(null), [S, p] = q(), b = c1({}), A = v1(
949
+ async (j) => {
950
+ await E1.get(`${j}/ui/joinroom?token=${e}`).then((g) => {
951
+ g.status === 200 && g.data && O.dispatch(K.setRoomData(g.data));
938
952
  }).catch((g) => {
939
953
  console.log(g), g.repsonse && g.response.status === 498 && console.error("Invalid token. Unable to join room");
940
954
  });
941
955
  },
942
956
  [e]
943
- ), T = u1(
944
- (m, g) => {
945
- u.current && o && u.current.send(JSON.stringify({ type: m, clientId: i, content: g }));
946
- },
947
- [o, i]
948
- ), V = (m, g) => {
949
- T(m, { value: g });
950
- }, Y = u1(
951
- (m, g, O) => {
952
- b.current[m] || (b.current[m] = {}), b.current[m][g] = O, console.log("event handler added", m, g);
957
+ ), B = v1(
958
+ (j, g) => {
959
+ h.current && c && h.current.send(JSON.stringify({ type: j, clientId: i, content: g }));
953
960
  },
954
- []
955
- ), J = u1(
956
- (m, g) => {
957
- b.current[m] && (delete b.current[m][g], console.log("event handler removed", m, g));
961
+ [c, i]
962
+ ), V = (j, g) => {
963
+ B(j, { value: g });
964
+ }, Y = v1(
965
+ (j, g, z) => {
966
+ b.current[j] || (b.current[j] = {}), b.current[j][g] = z, console.log("event handler added", j, g);
958
967
  },
959
968
  []
960
- );
969
+ ), J = v1((j, g) => {
970
+ b.current[j] && (delete b.current[j][g], console.log("event handler removed", j, g));
971
+ }, []);
961
972
  return G(() => {
962
973
  let g = new URLSearchParams(window.location.search).get("token");
963
- g ? (console.log("saving token: ", g), y2(t3.uuid, g)) : (g = I2(t3.uuid), console.log("loading token: ", g)), c(g), d();
974
+ g ? (console.log("saving token: ", g), E2(r3.uuid, g)) : (g = R2(r3.uuid), console.log("loading token: ", g)), s(g), u();
964
975
  }, []), G(() => {
965
- if (!(!f.apiPath || S || !e)) {
966
- if (A(f.apiPath), !u.current) {
967
- const g = `${f.apiPath.replace("http", "ws")}/ui/join/${e}`, O = new WebSocket(g);
968
- u.current = O, O.onopen = () => {
969
- console.log("connected"), F.dispatch(K.setWebsocketIsConnected(!0));
970
- }, O.onerror = (z) => {
971
- console.log(z);
972
- }, O.onclose = () => {
973
- if (console.log("disconnected"), u.current)
974
- console.log("WebSocket closed by server.");
975
- else {
976
- console.log("WebSocket closed by client.");
977
- return;
978
- }
979
- S || (F.dispatch(K.setWebsocketIsConnected(!1)), C(!0), setTimeout(() => C(void 0), 5e3));
980
- }, O.onmessage = (z) => {
981
- try {
982
- const E = JSON.parse(z.data);
983
- if (console.log(E), E.type.startsWith("/system/"))
984
- switch (E.type) {
985
- case "/system/roomKey":
986
- F.dispatch(
987
- K.setCurrentRoomKey(
988
- E.content
989
- )
990
- );
991
- break;
992
- case "/system/userCodeChanged":
993
- F.dispatch(
994
- K.setUserCode(E.content)
995
- );
996
- break;
997
- }
998
- else if (E.type.startsWith("/event/")) {
999
- console.log("event message received", E);
1000
- const X = b.current[E.type];
1001
- X || console.log("no handlers found for event type", E.type), X && Object.values(X).forEach((v1) => {
1002
- try {
1003
- v1(E);
1004
- } catch (h1) {
1005
- console.error(h1);
976
+ async function j() {
977
+ if (!(!f.apiPath || S || !e)) {
978
+ if (await A(f.apiPath), !h.current) {
979
+ const z = `${f.apiPath.replace("http", "ws")}/ui/join/${e}`, k = new WebSocket(z);
980
+ h.current = k, k.onopen = () => {
981
+ console.log("connected"), O.dispatch(K.setWebsocketIsConnected(!0));
982
+ }, k.onerror = (X) => {
983
+ console.log(X);
984
+ }, k.onclose = () => {
985
+ if (console.log("disconnected"), h.current)
986
+ console.log("WebSocket closed by server.");
987
+ else {
988
+ console.log("WebSocket closed by client.");
989
+ return;
990
+ }
991
+ S || (O.dispatch(K.setWebsocketIsConnected(!1)), O.dispatch(I1.clearDevices()), O.dispatch(y1.clearRooms()), p(!0), setTimeout(() => p(void 0), 5e3));
992
+ }, k.onmessage = (X) => {
993
+ try {
994
+ const E = JSON.parse(X.data);
995
+ if (console.log(E), E.type.startsWith("/system/"))
996
+ switch (E.type) {
997
+ case "/system/roomKey":
998
+ O.dispatch(
999
+ K.setCurrentRoomKey(
1000
+ E.content
1001
+ )
1002
+ );
1003
+ break;
1004
+ case "/system/userCodeChanged":
1005
+ O.dispatch(
1006
+ K.setUserCode(
1007
+ E.content
1008
+ )
1009
+ );
1010
+ break;
1011
+ case "/system/roomCombinationChanged":
1012
+ window.location.reload();
1013
+ break;
1014
+ default:
1015
+ console.log("unhandled system message", E);
1016
+ break;
1006
1017
  }
1007
- });
1008
- } else
1009
- E.type.startsWith("/room/") ? F.dispatch(l2.setRoomState(E)) : E.type.startsWith("/device/") && F.dispatch(s2.setDeviceState(E));
1010
- } catch (E) {
1011
- console.log(E);
1012
- }
1018
+ else if (E.type.startsWith("/event/")) {
1019
+ console.log("event message received", E);
1020
+ const Q = b.current[E.type];
1021
+ Q || console.log("no handlers found for event type", E.type), Q && Object.values(Q).forEach((g1) => {
1022
+ try {
1023
+ g1(E);
1024
+ } catch (l1) {
1025
+ console.error(l1);
1026
+ }
1027
+ });
1028
+ } else
1029
+ E.type.startsWith("/room/") ? O.dispatch(y1.setRoomState(E)) : E.type.startsWith("/device/") && O.dispatch(I1.setDeviceState(E));
1030
+ } catch (E) {
1031
+ console.log(E);
1032
+ }
1033
+ };
1034
+ }
1035
+ return () => {
1036
+ h.current && h.current.close(), h.current = null;
1013
1037
  };
1014
1038
  }
1015
- return () => {
1016
- u.current && u.current.close(), u.current = null;
1017
- };
1018
1039
  }
1040
+ j();
1019
1041
  }, [f.apiPath, A, e, S]), G(() => {
1020
- l && T(`/room/${l}/status`, null);
1021
- }, [l, T]), /* @__PURE__ */ n.jsx(d3.Provider, { value: { sendMessage: T, sendSimpleMessage: V, addEventHandler: Y, removeEventHandler: J }, children: o ? t : /* @__PURE__ */ n.jsx(S2, {}) });
1022
- }, n6 = ({ children: t }) => /* @__PURE__ */ n.jsx(z3, { store: F, children: /* @__PURE__ */ n.jsx(R2, { children: t }) });
1023
- function y() {
1024
- return Q3(d3);
1042
+ !l || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", l), B(`/room/${l}/status`, null)));
1043
+ }, [l, i, c, B]), /* @__PURE__ */ n.jsx(
1044
+ w3.Provider,
1045
+ {
1046
+ value: {
1047
+ sendMessage: B,
1048
+ sendSimpleMessage: V,
1049
+ addEventHandler: Y,
1050
+ removeEventHandler: J
1051
+ },
1052
+ children: c ? t : /* @__PURE__ */ n.jsx(I2, {})
1053
+ }
1054
+ );
1055
+ }, c6 = ({ children: t }) => /* @__PURE__ */ n.jsx(t2, { store: O, children: /* @__PURE__ */ n.jsx(_2, { children: t }) });
1056
+ function I() {
1057
+ return s2(w3);
1025
1058
  }
1026
- function E2({
1059
+ function L2({
1027
1060
  onPress: t,
1028
1061
  onRelease: e,
1029
- onHold: c,
1030
- holdTimeMs: o = 500
1062
+ onHold: s,
1063
+ holdTimeMs: c = 500
1031
1064
  }) {
1032
- const l = s1(null), i = s1(!1);
1033
- function d() {
1065
+ const l = c1(null), i = c1(!1);
1066
+ function u() {
1034
1067
  i.current = !0, t == null || t(), l.current = setTimeout(() => {
1035
- c == null || c(), l.current = null;
1036
- }, o);
1068
+ s == null || s(), l.current = null;
1069
+ }, c);
1037
1070
  }
1038
1071
  function f() {
1039
1072
  i.current = !1, e == null || e(), l.current && (clearTimeout(l.current), l.current = null);
1040
1073
  }
1041
- function u() {
1074
+ function h() {
1042
1075
  i.current && f();
1043
1076
  }
1044
1077
  return {
1045
- onPointerDown: d,
1078
+ onPointerDown: u,
1046
1079
  onPointerUp: f,
1047
- onPointerLeave: u
1080
+ onPointerLeave: h
1048
1081
  };
1049
1082
  }
1050
- function h(t, e) {
1051
- const { sendMessage: o } = y(), l = s1(null);
1083
+ function v(t, e) {
1084
+ const { sendMessage: c } = I(), l = c1(null);
1052
1085
  function i() {
1053
- o(`${t}/${e}`, { value: "pressed" }), l.current || (l.current = setInterval(() => {
1054
- o(`${t}/${e}`, { value: "held" });
1086
+ c(`${t}/${e}`, { value: "pressed" }), l.current || (l.current = setInterval(() => {
1087
+ c(`${t}/${e}`, { value: "held" });
1055
1088
  }, 250));
1056
1089
  }
1057
- function d() {
1058
- l.current && (clearInterval(l.current), l.current = null), o(`${t}/${e}`, { value: "released" });
1090
+ function u() {
1091
+ l.current && (clearInterval(l.current), l.current = null), c(`${t}/${e}`, { value: "released" });
1059
1092
  }
1060
- return E2({ onPress: i, onRelease: d });
1093
+ return L2({ onPress: i, onRelease: u });
1061
1094
  }
1062
- function v3(t, e) {
1063
- const { sendMessage: c, sendSimpleMessage: o } = y(), l = h(`${t}`, "volumeUp"), i = h(`${t}`, "volumeDown");
1095
+ function p3(t, e) {
1096
+ const { sendMessage: s, sendSimpleMessage: c } = I(), l = v(`${t}`, "volumeUp"), i = v(`${t}`, "volumeDown");
1064
1097
  return e ? {
1065
1098
  volumeState: e,
1066
1099
  volumeUp: l,
1067
1100
  volumeDown: i,
1068
- setLevel: (C) => o(`${t}/level`, C),
1069
- muteToggle: () => c(`${t}/muteToggle`, null),
1070
- muteOn: () => c(`${t}/muteOn`, null),
1071
- muteOff: () => c(`${t}/muteOff`, null)
1101
+ setLevel: (p) => c(`${t}/level`, p),
1102
+ muteToggle: () => s(`${t}/muteToggle`, null),
1103
+ muteOn: () => s(`${t}/muteOn`, null),
1104
+ muteOff: () => s(`${t}/muteOff`, null)
1072
1105
  } : void 0;
1073
1106
  }
1074
- function c6(t, e) {
1075
- const { sendMessage: c, sendSimpleMessage: o } = y(), l = h(`${t}`, "volumeUp"), i = h(`${t}`, "volumeDown");
1107
+ function r6(t, e) {
1108
+ const { sendMessage: s, sendSimpleMessage: c } = I(), l = v(`${t}`, "volumeUp"), i = v(`${t}`, "volumeDown");
1076
1109
  return e ? {
1077
1110
  volumeState: e,
1078
1111
  volumeUp: l,
1079
1112
  volumeDown: i,
1080
- setLevel: (C) => o(`${t}/level`, C),
1081
- muteToggle: () => c(`${t}/muteToggle`, null),
1082
- muteOn: () => c(`${t}/muteOn`, null),
1083
- muteOff: () => c(`${t}/muteOff`, null)
1113
+ setLevel: (p) => c(`${t}/level`, p),
1114
+ muteToggle: () => s(`${t}/muteToggle`, null),
1115
+ muteOn: () => s(`${t}/muteOn`, null),
1116
+ muteOff: () => s(`${t}/muteOff`, null)
1084
1117
  } : void 0;
1085
1118
  }
1086
- function _2(t) {
1087
- const e = L(t), c = `/device/${t}`;
1088
- return v3(c, e == null ? void 0 : e.volume);
1119
+ function $2(t) {
1120
+ const e = L(t), s = `/device/${t}`;
1121
+ return p3(s, e == null ? void 0 : e.volume);
1089
1122
  }
1090
- function h3(t) {
1091
- const { sendMessage: e } = y();
1123
+ function x3(t) {
1124
+ const { sendMessage: e } = I();
1092
1125
  return { powerOn: () => {
1093
1126
  e(`/device/${t}/powerOn`, null);
1094
1127
  }, powerOff: () => {
@@ -1097,160 +1130,160 @@ function h3(t) {
1097
1130
  e(`/device/${t}/powerToggle`, null);
1098
1131
  } };
1099
1132
  }
1100
- function y1(t) {
1101
- const { sendMessage: e } = y(), c = L(t);
1102
- return console.log("deviceState", c), c ? { itemsState: c, selectItem: (l) => {
1133
+ function L1(t) {
1134
+ const { sendMessage: e } = I(), s = L(t);
1135
+ return console.log("deviceState", s), s ? { itemsState: s, selectItem: (l) => {
1103
1136
  e(`/device/${t}/${l}`, null);
1104
1137
  } } : void 0;
1105
1138
  }
1106
- function L2(t) {
1107
- const { sendMessage: e } = y(), c = L(t), o = () => {
1139
+ function A2(t) {
1140
+ const { sendMessage: e } = I(), s = L(t), c = () => {
1108
1141
  e(`/device/${t}/setDefaultChannelLevels`, null);
1109
1142
  }, l = () => {
1110
- if ((c == null ? void 0 : c.levelControls) === void 0)
1143
+ if ((s == null ? void 0 : s.levelControls) === void 0)
1111
1144
  return;
1112
- Object.keys(c == null ? void 0 : c.levelControls).forEach((f) => {
1145
+ Object.keys(s == null ? void 0 : s.levelControls).forEach((f) => {
1113
1146
  e(`/device/${t}/${f}/fullStatus`, null);
1114
1147
  });
1115
1148
  };
1116
- return c ? { levelControls: c.levelControls, setDefaultChannelLevels: o, getFullStatus: l } : void 0;
1149
+ return s ? { levelControls: s.levelControls, setDefaultChannelLevels: c, getFullStatus: l } : void 0;
1117
1150
  }
1118
- function s6(t) {
1119
- const e = L(t), c = h3(t), o = y1(t), l = y1(t), i = _2(t), d = L2(t);
1151
+ function l6(t) {
1152
+ const e = L(t), s = x3(t), c = L1(t), l = L1(t), i = $2(t), u = A2(t);
1120
1153
  if (e)
1121
1154
  return {
1122
1155
  avrState: e,
1123
- powerControl: c,
1124
- inputControl: o,
1156
+ powerControl: s,
1157
+ inputControl: c,
1125
1158
  surroundSoundModes: l,
1126
- surroundChannels: d,
1159
+ surroundChannels: u,
1127
1160
  mainVolumeControl: i
1128
1161
  };
1129
1162
  }
1130
- function o6(t) {
1163
+ function i6(t) {
1131
1164
  const e = L(t);
1132
1165
  if (e)
1133
1166
  return { endpointState: e };
1134
1167
  }
1135
- function r6(t) {
1136
- const e = `/device/${t}`, c = h(e, "chanUp"), o = h(e, "chanDown"), l = h(e, "lastChan"), i = h(e, "guide"), d = h(e, "info"), f = h(e, "exit");
1137
- return { channelUp: c, channelDown: o, lastChannel: l, guide: i, info: d, exit: f };
1168
+ function a6(t) {
1169
+ const e = `/device/${t}`, s = v(e, "chanUp"), c = v(e, "chanDown"), l = v(e, "lastChan"), i = v(e, "guide"), u = v(e, "info"), f = v(e, "exit");
1170
+ return { channelUp: s, channelDown: c, lastChannel: l, guide: i, info: u, exit: f };
1138
1171
  }
1139
- function l6(t) {
1140
- const e = `/device/${t}`, c = h(e, "red"), o = h(e, "green"), l = h(e, "yellow"), i = h(e, "blue");
1141
- return { red: c, green: o, yellow: l, blue: i };
1172
+ function u6(t) {
1173
+ const e = `/device/${t}`, s = v(e, "red"), c = v(e, "green"), l = v(e, "yellow"), i = v(e, "blue");
1174
+ return { red: s, green: c, yellow: l, blue: i };
1142
1175
  }
1143
- function i6(t) {
1176
+ function d6(t) {
1144
1177
  const e = L(t);
1145
1178
  if (e)
1146
1179
  return {
1147
1180
  communicationMonitorState: e
1148
1181
  };
1149
1182
  }
1150
- function a6(t) {
1151
- const e = `/device/${t}`, c = h(e, "up"), o = h(e, "down"), l = h(e, "left"), i = h(e, "right"), d = h(e, "select"), f = h(e, "menu"), u = h(e, "exit");
1152
- return { up: c, down: o, left: l, right: i, select: d, menu: f, exit: u };
1183
+ function v6(t) {
1184
+ const e = `/device/${t}`, s = v(e, "up"), c = v(e, "down"), l = v(e, "left"), i = v(e, "right"), u = v(e, "select"), f = v(e, "menu"), h = v(e, "exit");
1185
+ return { up: s, down: c, left: l, right: i, select: u, menu: f, exit: h };
1153
1186
  }
1154
- function u6(t) {
1187
+ function h6(t) {
1155
1188
  const e = L(t);
1156
1189
  if (e)
1157
1190
  return e.deviceInfo || void 0;
1158
1191
  }
1159
- function d6(t) {
1160
- const e = `/device/${t}`, c = h(e, "dvrList"), o = h(e, "record");
1161
- return { dvrList: c, record: o };
1192
+ function g6(t) {
1193
+ const e = `/device/${t}`, s = v(e, "dvrList"), c = v(e, "record");
1194
+ return { dvrList: s, record: c };
1162
1195
  }
1163
- const v6 = ({ className: t }) => {
1164
- const [e, c] = q();
1196
+ const f6 = ({ className: t }) => {
1197
+ const [e, s] = q();
1165
1198
  return G(() => {
1166
1199
  setInterval(() => {
1167
- const o = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1168
- c(o);
1200
+ const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1201
+ s(c);
1169
1202
  }, 1e3);
1170
1203
  }, []), /* @__PURE__ */ n.jsxs("div", { className: t, children: [
1171
1204
  e,
1172
1205
  " new change"
1173
1206
  ] });
1174
1207
  };
1175
- function h6(t) {
1176
- const { sendMessage: e } = y(), c = L(t);
1177
- return c ? { roomCombinerState: c, setAutoMode: () => {
1208
+ function w6(t) {
1209
+ const { sendMessage: e } = I(), s = L(t);
1210
+ return s ? { roomCombinerState: s, setAutoMode: () => {
1178
1211
  e(`/device/${t}/setAutoMode`, null);
1179
1212
  }, setManualMode: () => {
1180
1213
  e(`/device/${t}/setManualMode`, null);
1181
1214
  }, toggleMode: () => {
1182
1215
  e(`/device/${t}/toggleMode`, null);
1183
- }, togglePartitionState: (u) => {
1184
- e(`/device/${t}/togglePartitionState`, u);
1185
- }, setRoomCombinationScenario: (u) => {
1186
- e(`/device/${t}/setRoomCombinationScenario`, u);
1216
+ }, togglePartitionState: (h) => {
1217
+ e(`/device/${t}/togglePartitionState`, h);
1218
+ }, setRoomCombinationScenario: (h) => {
1219
+ e(`/device/${t}/setRoomCombinationScenario`, h);
1187
1220
  } } : void 0;
1188
1221
  }
1189
- function g6(t) {
1190
- const { sendMessage: e, sendSimpleMessage: c } = y(), o = L(t);
1191
- return o ? {
1192
- levelState: o,
1193
- setLevel: (u, S) => c(`${u}/level`, S),
1194
- muteToggle: (u) => e(`${u}/muteToggle`, null),
1195
- muteOn: (u) => e(`${u}/muteOn`, null),
1196
- muteOff: (u) => e(`${u}/muteOff`, null)
1222
+ function p6(t) {
1223
+ const { sendMessage: e, sendSimpleMessage: s } = I(), c = L(t), l = x2(t), i = c || l;
1224
+ return i ? {
1225
+ levelState: i,
1226
+ setLevel: (p, b) => s(`${p}/level`, b),
1227
+ muteToggle: (p) => e(`${p}/muteToggle`, null),
1228
+ muteOn: (p) => e(`${p}/muteOn`, null),
1229
+ muteOff: (p) => e(`${p}/muteOff`, null)
1197
1230
  } : void 0;
1198
1231
  }
1199
- function f6(t) {
1200
- const { sendMessage: e } = y(), c = L(t);
1201
- return c ? { lightingState: c, selectScene: (l) => {
1232
+ function x6(t) {
1233
+ const { sendMessage: e } = I(), s = L(t);
1234
+ return s ? { lightingState: s, selectScene: (l) => {
1202
1235
  e(`/device/${t}/selectScene`, l);
1203
1236
  } } : void 0;
1204
1237
  }
1205
- function w6(t) {
1206
- const { sendMessage: e } = y(), c = L(t);
1207
- return c ? { matrixRoutingState: c, setRoute: (l) => {
1238
+ function M6(t) {
1239
+ const { sendMessage: e } = I(), s = L(t);
1240
+ return s ? { matrixRoutingState: s, setRoute: (l) => {
1208
1241
  e(`/device/${t}/route`, l);
1209
1242
  } } : void 0;
1210
1243
  }
1211
- function p6(t) {
1212
- const { sendMessage: e } = y();
1244
+ function m6(t) {
1245
+ const { sendMessage: e } = I();
1213
1246
  return { closeApp: () => {
1214
1247
  e(`/device/${t}/closeWebViewController`, null);
1215
1248
  } };
1216
1249
  }
1217
- function x6(t) {
1218
- const e = `/device/${t}`, c = h(e, "num0"), o = h(e, "num1"), l = h(e, "num2"), i = h(e, "num3"), d = h(e, "num4"), f = h(e, "num5"), u = h(e, "num6"), S = h(e, "num7"), C = h(e, "num8"), b = h(e, "num9"), A = h(e, "numDash"), T = h(e, "numEnter");
1219
- return { digit0: c, digit1: o, digit2: l, digit3: i, digit4: d, digit5: f, digit6: u, digit7: S, digit8: C, digit9: b, keypadAccessoryButton1: A, keypadAccessoryButton2: T };
1250
+ function Z6(t) {
1251
+ const e = `/device/${t}`, s = v(e, "num0"), c = v(e, "num1"), l = v(e, "num2"), i = v(e, "num3"), u = v(e, "num4"), f = v(e, "num5"), h = v(e, "num6"), S = v(e, "num7"), p = v(e, "num8"), b = v(e, "num9"), A = v(e, "numDash"), B = v(e, "numEnter");
1252
+ return { digit0: s, digit1: c, digit2: l, digit3: i, digit4: u, digit5: f, digit6: h, digit7: S, digit8: p, digit9: b, keypadAccessoryButton1: A, keypadAccessoryButton2: B };
1220
1253
  }
1221
- function M6(t) {
1222
- const { sendMessage: e } = y(), c = L(t);
1223
- return c ? { projectorScreenLiftControlState: c, raise: () => {
1254
+ function j6(t) {
1255
+ const { sendMessage: e } = I(), s = L(t);
1256
+ return s ? { projectorScreenLiftControlState: s, raise: () => {
1224
1257
  e(`/device/${t}/raise`, null);
1225
1258
  }, lower: () => {
1226
1259
  e(`/device/${t}/lower`, null);
1227
1260
  } } : void 0;
1228
1261
  }
1229
- function m6(t) {
1230
- const { sendMessage: e } = y(), c = R1(t);
1231
- return c ? { roomEventScheduleState: c, save: (l) => {
1262
+ function C6(t) {
1263
+ const { sendMessage: e } = I(), s = $1(t);
1264
+ return s ? { roomEventScheduleState: s, save: (l) => {
1232
1265
  e(`/room/${t}/saveScheduledEvents`, l);
1233
1266
  } } : void 0;
1234
1267
  }
1235
- function Z6(t) {
1236
- const { sendMessage: e } = y();
1237
- return { runDirectRoute: (o) => {
1238
- e(`/room/${t}/directRoute`, o);
1268
+ function S6(t) {
1269
+ const { sendMessage: e } = I();
1270
+ return { runDirectRoute: (c) => {
1271
+ e(`/room/${t}/directRoute`, c);
1239
1272
  } };
1240
1273
  }
1241
- function j6(t) {
1242
- const { sendMessage: e } = y();
1274
+ function b6(t) {
1275
+ const { sendMessage: e } = I();
1243
1276
  return { routingState: L(t), runRoute: (l) => {
1244
1277
  e(`/room/${t}/source`, l);
1245
1278
  } };
1246
1279
  }
1247
- function C6(t) {
1248
- const e = `/device/${t}`, c = h(e, "chanUp"), o = h(e, "chanDown");
1249
- return { dvrList: c, replay: o };
1280
+ function I6(t) {
1281
+ const e = `/device/${t}`, s = v(e, "chanUp"), c = v(e, "chanDown");
1282
+ return { dvrList: s, replay: c };
1250
1283
  }
1251
- function S6(t) {
1252
- const { sendMessage: e } = y(), c = L(t);
1253
- return c ? { shadeState: c, shadeUp: () => {
1284
+ function y6(t) {
1285
+ const { sendMessage: e } = I(), s = L(t);
1286
+ return s ? { shadeState: s, shadeUp: () => {
1254
1287
  e(`/device/${t}/shadeUp`, null);
1255
1288
  }, shadeDown: () => {
1256
1289
  e(`/device/${t}/shadeDown`, null);
@@ -1258,9 +1291,9 @@ function S6(t) {
1258
1291
  e(`/device/${t}/stopOrPreset`, null);
1259
1292
  } } : void 0;
1260
1293
  }
1261
- function b6(t) {
1262
- const { sendMessage: e } = y(), c = R1(t);
1263
- return c ? { shutdownPromptTimerState: c, setShutdownPromptSeconds: (f) => {
1294
+ function R6(t) {
1295
+ const { sendMessage: e } = I(), s = $1(t);
1296
+ return s ? { shutdownPromptTimerState: s, setShutdownPromptSeconds: (f) => {
1264
1297
  e(`/room/${t}/setShutdownPromptSeconds`, f);
1265
1298
  }, shutdownStart: () => {
1266
1299
  e(`/room/${t}/shutdownStart`, null);
@@ -1270,91 +1303,99 @@ function b6(t) {
1270
1303
  e(`/room/${t}/shutdownCancel`, null);
1271
1304
  } } : void 0;
1272
1305
  }
1273
- function I6(t) {
1274
- const { sendMessage: e } = y(), c = L(t);
1275
- return c ? { switchedOutputState: c, on: () => {
1306
+ function E6(t) {
1307
+ const { sendMessage: e } = I(), s = L(t);
1308
+ return s ? { switchedOutputState: s, on: () => {
1276
1309
  e(`/device/${t}/on`, null);
1277
1310
  }, off: () => {
1278
1311
  e(`/device/${t}/off`, null);
1279
1312
  } } : void 0;
1280
1313
  }
1281
- function y6(t) {
1282
- const { sendMessage: e } = y(), c = R1(t);
1283
- return c ? { techPasswordState: c, validatePassword: (i) => {
1314
+ function _6(t) {
1315
+ const { sendMessage: e } = I(), s = $1(t);
1316
+ return s ? { techPasswordState: s, validatePassword: (i) => {
1284
1317
  e(`/room/${t}/validateTechPassword`, { password: i });
1285
- }, setPassword: (i, d) => {
1286
- e(`/room/${t}/setTechPassword`, { oldPassword: i, newPassword: d });
1318
+ }, setPassword: (i, u) => {
1319
+ e(`/room/${t}/setTechPassword`, { oldPassword: i, newPassword: u });
1287
1320
  } } : void 0;
1288
1321
  }
1289
- function R6(t) {
1290
- const e = `/device/${t}`, c = h(e, "play"), o = h(e, "pause"), l = h(e, "stop"), i = h(e, "prevTrack"), d = h(e, "nextTrack"), f = h(e, "rewind"), u = h(e, "ffwd"), S = h(e, "record");
1291
- return { play: c, pause: o, stop: l, prevTrack: i, nextTrack: d, rewind: f, fastForward: u, record: S };
1322
+ function L6(t) {
1323
+ const e = `/device/${t}`, s = v(e, "play"), c = v(e, "pause"), l = v(e, "stop"), i = v(e, "prevTrack"), u = v(e, "nextTrack"), f = v(e, "rewind"), h = v(e, "ffwd"), S = v(e, "record");
1324
+ return { play: s, pause: c, stop: l, prevTrack: i, nextTrack: u, rewind: f, fastForward: h, record: S };
1292
1325
  }
1293
- function E6(t) {
1294
- const e = L(t), { sendMessage: c } = y();
1326
+ function $6(t) {
1327
+ const e = L(t), { sendMessage: s } = I();
1295
1328
  return e ? {
1296
1329
  touchpanelState: e,
1297
1330
  appControl: { hideApp: () => {
1298
- c(`/device/${t}/hideApp`, null);
1331
+ s(`/device/${t}/hideApp`, null);
1299
1332
  }, openApp: () => {
1300
- c(`/device/${t}/openApp`, null);
1333
+ s(`/device/${t}/openApp`, null);
1301
1334
  }, closeApp: () => {
1302
- c(`/device/${t}/closeApp`, null);
1335
+ s(`/device/${t}/closeApp`, null);
1303
1336
  } },
1304
1337
  zoomControl: { endCall: () => {
1305
- c(`/device/${t}/endCall`, null);
1338
+ s(`/device/${t}/endCall`, null);
1306
1339
  } }
1307
1340
  } : void 0;
1308
1341
  }
1309
- function _6(t) {
1310
- const e = L(t), c = h3(t), o = y1(t);
1342
+ function A6(t) {
1343
+ const e = L(t), s = x3(t), c = L1(t);
1311
1344
  if (!e)
1312
1345
  return;
1313
1346
  const l = (e.powerState || e.isWarming) && !e.isCooling, i = (!e.powerState || e.isCooling) && !e.isWarming;
1314
1347
  return {
1315
1348
  displayState: e,
1316
- powerControl: c,
1317
- inputControl: o,
1349
+ powerControl: s,
1350
+ inputControl: c,
1318
1351
  powerFb: { powerOnFb: l, powerOffFb: i }
1319
1352
  };
1320
1353
  }
1321
- const L6 = ({ config: t }) => {
1322
- const { sendMessage: e } = y();
1354
+ function D6(t) {
1355
+ const { sendMessage: e } = I();
1356
+ return { runDefaultPresentRoute: () => {
1357
+ e(`/room/${t}/defaultsource`, {});
1358
+ } };
1359
+ }
1360
+ const B6 = ({ config: t }) => {
1361
+ const { sendMessage: e } = I();
1323
1362
  G(() => {
1324
- var o, l;
1363
+ var c, l;
1325
1364
  if (!t)
1326
1365
  return;
1327
- const c = [];
1366
+ const s = [];
1328
1367
  Object.values(t.destinations).forEach((i) => {
1329
- c.push(i);
1368
+ s.push(i);
1330
1369
  }), Object.values(t.destinationList).forEach((i) => {
1331
- c.push(i.sinkKey);
1332
- }), (o = t.touchpanelKeys) == null || o.forEach((i) => {
1333
- c.push(i);
1370
+ s.push(i.sinkKey);
1371
+ }), t.levelControlList && Object.values(t.levelControlList).forEach((i) => {
1372
+ s.push(i.deviceKey);
1373
+ }), (c = t.touchpanelKeys) == null || c.forEach((i) => {
1374
+ s.push(i);
1334
1375
  }), t.environmentalDevices.forEach((i) => {
1335
- c.push(i.deviceKey);
1376
+ s.push(i.deviceKey);
1336
1377
  }), (l = t.accessoryDeviceKeys) == null || l.forEach((i) => {
1337
- c.push(i);
1338
- }), t.audioCodecKey && c.push(t.audioCodecKey), t.videoCodecKey && c.push(t.videoCodecKey), t.matrixRoutingKey && c.push(t.matrixRoutingKey), t.roomCombinerKey && c.push(t.roomCombinerKey), t.endpointKeys && t.endpointKeys.forEach((i) => {
1339
- c.push(i);
1378
+ s.push(i);
1379
+ }), t.audioCodecKey && s.push(t.audioCodecKey), t.videoCodecKey && s.push(t.videoCodecKey), t.matrixRoutingKey && s.push(t.matrixRoutingKey), t.roomCombinerKey && s.push(t.roomCombinerKey), t.endpointKeys && t.endpointKeys.forEach((i) => {
1380
+ s.push(i);
1340
1381
  });
1341
1382
  for (const i of Object.values(t.sourceList))
1342
- i.sourceKey && i.sourceKey !== "$off" && c.push(i.sourceKey);
1343
- console.log("deviceKeys", c), c.forEach((i) => {
1383
+ i.sourceKey && i.sourceKey !== "$off" && s.push(i.sourceKey);
1384
+ console.log("deviceKeys", s), s.forEach((i) => {
1344
1385
  e(`/device/${i}/fullStatus`, { deviceKey: i });
1345
1386
  });
1346
1387
  }, [t, e]);
1347
1388
  };
1348
- function $6(t, e) {
1349
- const c = w2(t, e), o = `/room/${t}/volumes/${e}`;
1350
- return v3(o, c);
1389
+ function T6(t, e) {
1390
+ const s = p2(t, e), c = `/room/${t}/volumes/${e}`;
1391
+ return p3(c, s);
1351
1392
  }
1352
- function A6() {
1353
- const [t, e] = q(), [c, o] = q();
1393
+ function P6() {
1394
+ const [t, e] = q(), [s, c] = q();
1354
1395
  function l() {
1355
1396
  e((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
1356
1397
  const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1357
- o(i);
1398
+ c(i);
1358
1399
  }
1359
1400
  return G(() => {
1360
1401
  l();
@@ -1362,75 +1403,75 @@ function A6() {
1362
1403
  l();
1363
1404
  }, 1e3);
1364
1405
  return () => clearInterval(i);
1365
- }, []), { date: t, time: c };
1406
+ }, []), { date: t, time: s };
1366
1407
  }
1367
- const B6 = () => {
1368
- const t = N3();
1408
+ const O6 = () => {
1409
+ const t = o2();
1369
1410
  return /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
1370
1411
  /* @__PURE__ */ n.jsx("div", { className: "m-2 p-2 bg-danger rounded d-flex align-items-center", children: /* @__PURE__ */ n.jsx("span", { className: "fs-5 text-white", children: "We are sorry. Something went wrong." }) }),
1371
1412
  /* @__PURE__ */ n.jsx("button", { className: "btn btn-primary p-2", onClick: () => t(-1), children: "Go Back" })
1372
1413
  ] });
1373
- }, $2 = "_iconbtn_16qss_1", A2 = "_iconbtnvert_16qss_7", B2 = "_iconsm_16qss_18", C1 = {
1374
- iconbtn: $2,
1375
- iconbtnvert: A2,
1376
- iconsm: B2
1377
- }, T2 = ({
1414
+ }, D2 = "_iconbtn_16qss_1", B2 = "_iconbtnvert_16qss_7", T2 = "_iconsm_16qss_18", S1 = {
1415
+ iconbtn: D2,
1416
+ iconbtnvert: B2,
1417
+ iconsm: T2
1418
+ }, P2 = ({
1378
1419
  multiIcon: t,
1379
1420
  otherContent: e = null,
1380
- vert: c = !1,
1381
- className: o,
1421
+ vert: s = !1,
1422
+ className: c,
1382
1423
  iconClassName: l = "",
1383
1424
  otherContentClassName: i = "",
1384
- disabled: d,
1425
+ disabled: u,
1385
1426
  feedback: f,
1386
- feedbackClassName: u,
1427
+ feedbackClassName: h,
1387
1428
  onPointerDown: S,
1388
- onPointerUp: C,
1429
+ onPointerUp: p,
1389
1430
  onPointerLeave: b,
1390
1431
  ...A
1391
1432
  }) => {
1392
- const [T, V] = q(!1), Y = !d && f ? u : "", J = !d && (T || f);
1433
+ const [B, V] = q(!1), Y = !u && f ? h : "", J = !u && (B || f);
1393
1434
  return /* @__PURE__ */ n.jsxs(
1394
1435
  "button",
1395
1436
  {
1396
1437
  type: "button",
1397
- className: `${C1.iconbtn} ${c ? C1.iconbtnvert : ""} ${o} ${Y}`,
1438
+ className: `${S1.iconbtn} ${s ? S1.iconbtnvert : ""} ${c} ${Y}`,
1398
1439
  ...A,
1399
- disabled: d,
1400
- onPointerDown: (m) => {
1401
- V(!0), S == null || S(m);
1440
+ disabled: u,
1441
+ onPointerDown: (j) => {
1442
+ V(!0), S == null || S(j);
1402
1443
  },
1403
- onPointerUp: (m) => {
1404
- V(!1), C == null || C(m);
1444
+ onPointerUp: (j) => {
1445
+ V(!1), p == null || p(j);
1405
1446
  },
1406
- onPointerLeave: (m) => {
1407
- V(!1), b == null || b(m);
1447
+ onPointerLeave: (j) => {
1448
+ V(!1), b == null || b(j);
1408
1449
  },
1409
1450
  children: [
1410
1451
  t && /* @__PURE__ */ n.jsx(
1411
1452
  t,
1412
1453
  {
1413
- className: `${l || C1.iconsm}`,
1454
+ className: `${l || S1.iconsm}`,
1414
1455
  active: J,
1415
- disabled: d
1456
+ disabled: u
1416
1457
  }
1417
1458
  ),
1418
1459
  /* @__PURE__ */ n.jsx("div", { className: i, children: e })
1419
1460
  ]
1420
1461
  }
1421
1462
  );
1422
- }, x = ({
1463
+ }, M = ({
1423
1464
  ActiveImage: t,
1424
1465
  DisabledImage: e,
1425
- EnabledImage: c,
1426
- active: o,
1466
+ EnabledImage: s,
1467
+ active: c,
1427
1468
  disabled: l
1428
- }) => l ? e : o ? t : c, D2 = ({
1469
+ }) => l ? e : c ? t : s, O2 = ({
1429
1470
  active: t,
1430
1471
  className: e = "",
1431
- disabled: c
1472
+ disabled: s
1432
1473
  }) => /* @__PURE__ */ n.jsx(
1433
- x,
1474
+ M,
1434
1475
  {
1435
1476
  ActiveImage: /* @__PURE__ */ n.jsx(
1436
1477
  "svg",
@@ -1475,14 +1516,14 @@ const B6 = () => {
1475
1516
  }
1476
1517
  ),
1477
1518
  active: t,
1478
- disabled: c
1519
+ disabled: s
1479
1520
  }
1480
- ), P2 = ({
1521
+ ), V2 = ({
1481
1522
  active: t,
1482
1523
  className: e = "",
1483
- disabled: c
1524
+ disabled: s
1484
1525
  }) => /* @__PURE__ */ n.jsx(
1485
- x,
1526
+ M,
1486
1527
  {
1487
1528
  ActiveImage: (
1488
1529
  /* icon-ban-active.svg */
@@ -1524,14 +1565,14 @@ const B6 = () => {
1524
1565
  )
1525
1566
  ),
1526
1567
  active: t,
1527
- disabled: c
1568
+ disabled: s
1528
1569
  }
1529
- ), O2 = ({
1570
+ ), k2 = ({
1530
1571
  active: t,
1531
1572
  className: e = "",
1532
- disabled: c
1573
+ disabled: s
1533
1574
  }) => /* @__PURE__ */ n.jsx(
1534
- x,
1575
+ M,
1535
1576
  {
1536
1577
  ActiveImage: /* @__PURE__ */ n.jsx(
1537
1578
  "svg",
@@ -1564,14 +1605,14 @@ const B6 = () => {
1564
1605
  }
1565
1606
  ),
1566
1607
  active: t,
1567
- disabled: c
1608
+ disabled: s
1568
1609
  }
1569
- ), V2 = ({
1610
+ ), F2 = ({
1570
1611
  active: t,
1571
1612
  className: e = "",
1572
- disabled: c
1613
+ disabled: s
1573
1614
  }) => /* @__PURE__ */ n.jsx(
1574
- x,
1615
+ M,
1575
1616
  {
1576
1617
  ActiveImage: (
1577
1618
  /* icon-check-active.svg */
@@ -1613,16 +1654,16 @@ const B6 = () => {
1613
1654
  )
1614
1655
  ),
1615
1656
  active: t,
1616
- disabled: c
1657
+ disabled: s
1617
1658
  }
1618
- ), F2 = ({
1659
+ ), U2 = ({
1619
1660
  active: t,
1620
1661
  // Just to shut up the linter on this template. Prefer deleting this lint rule
1621
1662
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1622
1663
  className: e = "",
1623
- disabled: c
1664
+ disabled: s
1624
1665
  }) => /* @__PURE__ */ n.jsx(
1625
- x,
1666
+ M,
1626
1667
  {
1627
1668
  ActiveImage: (
1628
1669
  /* icon-controller-active.svg */
@@ -1656,7 +1697,6 @@ const B6 = () => {
1656
1697
  "path",
1657
1698
  {
1658
1699
  d: "M96.54,86.55l5.04-5.04c.04.26.07.52.07.8,0,1.22-.41,2.25-1.24,3.07-.83.83-1.85,1.24-3.07,1.24-.28,0-.54-.03-.8-.07ZM105.97,77.99c1.22,0,2.25-.41,3.07-1.24.83-.83,1.24-1.85,1.24-3.07,0-.28-.03-.54-.07-.8l-5.04,5.04c.26.04.52.07.8.07ZM129.04,97.07l-8.6-34.41-7.15,7.15,7.35,29.31c.14,1.44.22,2.12.22,2.05-.07,2.01-.83,3.68-2.26,5.01-1.44,1.33-3.16,1.99-5.17,1.99-1.37,0-2.6-.36-3.72-1.08-1.11-.72-1.96-1.69-2.53-2.91l-3.02-6.14c-1.15-2.16-2.77-3.88-4.85-5.17-2.08-1.29-4.35-1.94-6.79-1.94h-.33l-8.62,8.62h8.95c.79,0,1.55.18,2.26.54.72.36,1.26.9,1.62,1.62l3.02,6.25c1.29,2.73,3.23,4.89,5.82,6.47,2.59,1.58,5.39,2.37,8.41,2.37,4.38,0,8.14-1.53,11.27-4.58,3.13-3.05,4.69-6.77,4.69-11.16,0-.65-.05-1.31-.16-1.99s-.23-1.35-.38-1.99ZM43.77,102.35c-.07-.42-.12-.84-.12-1.29,0-.86.07-1.51.22-1.94l9.06-36.11c.43-1.94,1.42-3.52,2.96-4.74,1.54-1.22,3.32-1.83,5.34-1.83h28.46l8.62-8.62h-37.09c-3.95,0-7.47,1.2-10.56,3.61-3.09,2.41-5.14,5.55-6.14,9.43l-9.06,36.22c-.14.65-.25,1.29-.32,1.94-.07.65-.11,1.29-.11,1.94.1,2.92.85,5.55,2.24,7.9l6.5-6.5ZM74.7,70.45h-4.31v-4.31c0-.93-.31-1.71-.92-2.32-.61-.61-1.38-.92-2.32-.92s-1.71.31-2.32.92c-.61.61-.92,1.38-.92,2.32v4.31h-4.31c-.93,0-1.71.31-2.32.92s-.92,1.38-.92,2.32.31,1.71.92,2.32c.61.61,1.38.92,2.32.92h4.31v4.31c0,.31.05.59.11.86l11.53-11.53c-.27-.07-.56-.11-.86-.11ZM164.61,82.3c0,45.38-36.92,82.3-82.3,82.3S0,127.69,0,82.3,36.92,0,82.3,0s82.3,36.92,82.3,82.3ZM5,82.3c0,19.83,7.51,37.93,19.82,51.63L133.93,24.83c-13.7-12.32-31.8-19.83-51.63-19.83C39.68,5,5,39.68,5,82.3ZM159.61,82.3c0-19.83-7.51-37.93-19.83-51.63L30.68,139.78c13.7,12.32,31.8,19.83,51.63,19.83,42.63,0,77.3-34.68,77.3-77.3Z",
1659
- fill: "#090a0e",
1660
1700
  "stroke-width": "0"
1661
1701
  }
1662
1702
  ) })
@@ -1676,7 +1716,6 @@ const B6 = () => {
1676
1716
  "path",
1677
1717
  {
1678
1718
  d: "M50.88,116.8c-4.31,0-8-1.55-11.05-4.64-3.05-3.09-4.65-6.83-4.8-11.21,0-.65.04-1.29.11-1.94s.18-1.29.32-1.94l9.06-36.22c1.01-3.88,3.05-7.03,6.14-9.43s6.61-3.61,10.56-3.61h42.04c3.95,0,7.47,1.2,10.56,3.61s5.14,5.55,6.14,9.43l9.06,36.22c.14.65.27,1.31.38,1.99s.16,1.35.16,1.99c0,4.38-1.56,8.1-4.69,11.16s-6.88,4.58-11.27,4.58c-3.02,0-5.82-.79-8.41-2.37s-4.53-3.74-5.82-6.47l-3.02-6.25c-.36-.72-.9-1.26-1.62-1.62s-1.47-.54-2.26-.54h-20.48c-.79,0-1.55.18-2.26.54s-1.26.9-1.62,1.62l-3.02,6.25c-1.29,2.73-3.23,4.89-5.82,6.47s-5.39,2.37-8.41,2.37ZM51.2,108.18c1.37,0,2.61-.36,3.72-1.08,1.11-.72,1.96-1.69,2.53-2.91l3.02-6.14c1.08-2.23,2.66-3.97,4.74-5.23s4.35-1.89,6.79-1.89h20.48c2.44,0,4.71.65,6.79,1.94s3.7,3.02,4.85,5.17l3.02,6.14c.57,1.22,1.42,2.19,2.53,2.91,1.11.72,2.35,1.08,3.72,1.08,2.01,0,3.74-.66,5.17-1.99,1.44-1.33,2.19-3,2.26-5.01,0,.07-.07-.61-.22-2.05l-9.06-36.11c-.5-1.94-1.51-3.52-3.02-4.74s-3.27-1.83-5.28-1.83h-42.04c-2.01,0-3.79.61-5.34,1.83s-2.53,2.8-2.96,4.74l-9.06,36.11c-.14.43-.22,1.08-.22,1.94,0,2.01.74,3.7,2.21,5.07,1.47,1.37,3.25,2.05,5.34,2.05ZM88.72,77.99c1.22,0,2.25-.41,3.07-1.24s1.24-1.85,1.24-3.07-.41-2.25-1.24-3.07-1.85-1.24-3.07-1.24-2.25.41-3.07,1.24c-.83.83-1.24,1.85-1.24,3.07s.41,2.25,1.24,3.07c.83.83,1.85,1.24,3.07,1.24ZM97.34,69.37c1.22,0,2.25-.41,3.07-1.24s1.24-1.85,1.24-3.07-.41-2.25-1.24-3.07-1.85-1.24-3.07-1.24-2.25.41-3.07,1.24-1.24,1.85-1.24,3.07.41,2.25,1.24,3.07,1.85,1.24,3.07,1.24ZM97.34,86.62c1.22,0,2.25-.41,3.07-1.24s1.24-1.85,1.24-3.07-.41-2.25-1.24-3.07c-.83-.83-1.85-1.24-3.07-1.24s-2.25.41-3.07,1.24c-.83.83-1.24,1.85-1.24,3.07s.41,2.25,1.24,3.07,1.85,1.24,3.07,1.24ZM105.97,77.99c1.22,0,2.25-.41,3.07-1.24s1.24-1.85,1.24-3.07-.41-2.25-1.24-3.07-1.85-1.24-3.07-1.24-2.25.41-3.07,1.24-1.24,1.85-1.24,3.07.41,2.25,1.24,3.07,1.85,1.24,3.07,1.24ZM67.16,84.46c.93,0,1.71-.31,2.32-.92s.92-1.38.92-2.32v-4.31h4.31c.93,0,1.71-.31,2.32-.92s.92-1.38.92-2.32-.31-1.71-.92-2.32-1.38-.92-2.32-.92h-4.31v-4.31c0-.93-.31-1.71-.92-2.32s-1.38-.92-2.32-.92-1.71.31-2.32.92-.92,1.38-.92,2.32v4.31h-4.31c-.93,0-1.71.31-2.32.92s-.92,1.38-.92,2.32.31,1.71.92,2.32,1.38.92,2.32.92h4.31v4.31c0,.93.31,1.71.92,2.32s1.38.92,2.32.92ZM82.3,164.61C36.92,164.61,0,127.69,0,82.3S36.92,0,82.3,0s82.3,36.92,82.3,82.3-36.92,82.3-82.3,82.3ZM82.3,5C39.68,5,5,39.68,5,82.3s34.68,77.3,77.3,77.3,77.3-34.68,77.3-77.3S124.93,5,82.3,5Z",
1679
- fill: "#090a0e",
1680
1719
  "stroke-width": "0"
1681
1720
  }
1682
1721
  ) })
@@ -1684,14 +1723,14 @@ const B6 = () => {
1684
1723
  )
1685
1724
  ),
1686
1725
  active: t,
1687
- disabled: c
1726
+ disabled: s
1688
1727
  }
1689
- ), k2 = ({
1728
+ ), W2 = ({
1690
1729
  active: t,
1691
1730
  className: e = "",
1692
- disabled: c
1731
+ disabled: s
1693
1732
  }) => /* @__PURE__ */ n.jsx(
1694
- x,
1733
+ M,
1695
1734
  {
1696
1735
  ActiveImage: (
1697
1736
  /* icon-down-active.svg */
@@ -1733,14 +1772,14 @@ const B6 = () => {
1733
1772
  )
1734
1773
  ),
1735
1774
  active: t,
1736
- disabled: c
1775
+ disabled: s
1737
1776
  }
1738
- ), U2 = ({
1777
+ ), H2 = ({
1739
1778
  active: t,
1740
1779
  className: e = "",
1741
- disabled: c
1780
+ disabled: s
1742
1781
  }) => /* @__PURE__ */ n.jsx(
1743
- x,
1782
+ M,
1744
1783
  {
1745
1784
  ActiveImage: (
1746
1785
  /* icon-elipses-active.svg */
@@ -1782,14 +1821,14 @@ const B6 = () => {
1782
1821
  )
1783
1822
  ),
1784
1823
  active: t,
1785
- disabled: c
1824
+ disabled: s
1786
1825
  }
1787
- ), W2 = ({
1826
+ ), K2 = ({
1788
1827
  active: t,
1789
1828
  className: e = "",
1790
- disabled: c
1829
+ disabled: s
1791
1830
  }) => /* @__PURE__ */ n.jsx(
1792
- x,
1831
+ M,
1793
1832
  {
1794
1833
  ActiveImage: (
1795
1834
  /* icon-flag-active.svg */
@@ -1831,14 +1870,14 @@ const B6 = () => {
1831
1870
  )
1832
1871
  ),
1833
1872
  active: t,
1834
- disabled: c
1873
+ disabled: s
1835
1874
  }
1836
- ), H2 = ({
1875
+ ), G2 = ({
1837
1876
  active: t,
1838
1877
  className: e = "",
1839
- disabled: c
1878
+ disabled: s
1840
1879
  }) => /* @__PURE__ */ n.jsx(
1841
- x,
1880
+ M,
1842
1881
  {
1843
1882
  ActiveImage: (
1844
1883
  /* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
@@ -1880,14 +1919,14 @@ const B6 = () => {
1880
1919
  )
1881
1920
  ),
1882
1921
  active: t,
1883
- disabled: c
1922
+ disabled: s
1884
1923
  }
1885
- ), K2 = ({
1924
+ ), q2 = ({
1886
1925
  active: t,
1887
1926
  className: e = "",
1888
- disabled: c
1927
+ disabled: s
1889
1928
  }) => /* @__PURE__ */ n.jsx(
1890
- x,
1929
+ M,
1891
1930
  {
1892
1931
  ActiveImage: (
1893
1932
  /* icon-glass-active.svg */
@@ -1929,16 +1968,16 @@ const B6 = () => {
1929
1968
  )
1930
1969
  ),
1931
1970
  active: t,
1932
- disabled: c
1971
+ disabled: s
1933
1972
  }
1934
- ), G2 = ({
1973
+ ), Y2 = ({
1935
1974
  active: t,
1936
1975
  // Just to shut up the linter on this template. Prefer deleting this lint rule
1937
1976
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1938
1977
  className: e = "",
1939
- disabled: c
1978
+ disabled: s
1940
1979
  }) => /* @__PURE__ */ n.jsx(
1941
- x,
1980
+ M,
1942
1981
  {
1943
1982
  ActiveImage: (
1944
1983
  /* icon-hdmi-active.svg */
@@ -1998,14 +2037,14 @@ const B6 = () => {
1998
2037
  )
1999
2038
  ),
2000
2039
  active: t,
2001
- disabled: c
2040
+ disabled: s
2002
2041
  }
2003
- ), q2 = ({
2042
+ ), J2 = ({
2004
2043
  active: t,
2005
2044
  className: e = "",
2006
- disabled: c
2045
+ disabled: s
2007
2046
  }) => /* @__PURE__ */ n.jsx(
2008
- x,
2047
+ M,
2009
2048
  {
2010
2049
  ActiveImage: (
2011
2050
  /* icon-laptop-active.svg */
@@ -2047,14 +2086,14 @@ const B6 = () => {
2047
2086
  )
2048
2087
  ),
2049
2088
  active: t,
2050
- disabled: c
2089
+ disabled: s
2051
2090
  }
2052
- ), Y2 = ({
2091
+ ), z2 = ({
2053
2092
  active: t,
2054
2093
  className: e = "",
2055
- disabled: c
2094
+ disabled: s
2056
2095
  }) => /* @__PURE__ */ n.jsx(
2057
- x,
2096
+ M,
2058
2097
  {
2059
2098
  ActiveImage: (
2060
2099
  /* icon-left-active.svg */
@@ -2096,14 +2135,14 @@ const B6 = () => {
2096
2135
  )
2097
2136
  ),
2098
2137
  active: t,
2099
- disabled: c
2138
+ disabled: s
2100
2139
  }
2101
- ), J2 = ({
2140
+ ), X2 = ({
2102
2141
  active: t,
2103
2142
  className: e = "",
2104
- disabled: c
2143
+ disabled: s
2105
2144
  }) => /* @__PURE__ */ n.jsx(
2106
- x,
2145
+ M,
2107
2146
  {
2108
2147
  ActiveImage: (
2109
2148
  /* icon-light-active.svg */
@@ -2145,14 +2184,14 @@ const B6 = () => {
2145
2184
  )
2146
2185
  ),
2147
2186
  active: t,
2148
- disabled: c
2187
+ disabled: s
2149
2188
  }
2150
- ), z2 = ({
2189
+ ), Q2 = ({
2151
2190
  active: t,
2152
2191
  className: e = "",
2153
- disabled: c
2192
+ disabled: s
2154
2193
  }) => /* @__PURE__ */ n.jsx(
2155
- x,
2194
+ M,
2156
2195
  {
2157
2196
  ActiveImage: (
2158
2197
  /* icon-moon-active.svg */
@@ -2194,14 +2233,14 @@ const B6 = () => {
2194
2233
  )
2195
2234
  ),
2196
2235
  active: t,
2197
- disabled: c
2236
+ disabled: s
2198
2237
  }
2199
- ), X2 = ({
2238
+ ), N2 = ({
2200
2239
  active: t,
2201
2240
  className: e = "",
2202
- disabled: c
2241
+ disabled: s
2203
2242
  }) => /* @__PURE__ */ n.jsx(
2204
- x,
2243
+ M,
2205
2244
  {
2206
2245
  ActiveImage: (
2207
2246
  /* icon-playstation-active.svg */
@@ -2216,14 +2255,14 @@ const B6 = () => {
2216
2255
  /* @__PURE__ */ n.jsx("svg", { className: e, fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 164.61 164.61", children: /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("path", { d: "M131.62,102.87c-1.96,2.47-6.77,4.24-6.77,4.24l-35.75,12.84v-9.47l26.31-9.37c2.99-1.07,3.44-2.58,1.02-3.38-2.42-.8-6.81-.57-9.8.51l-17.53,6.17v-9.83l1.01-.34s5.07-1.79,12.19-2.58c7.12-.78,15.85.11,22.69,2.7,7.72,2.44,8.59,6.03,6.63,8.51ZM92.51,86.75v-24.22c0-2.84-.52-5.46-3.19-6.2-2.04-.65-3.31,1.24-3.31,4.09v60.65l-16.36-5.19V43.55c6.95,1.29,17.09,4.34,22.53,6.18,13.85,4.76,18.55,10.67,18.55,24.01s-8.02,17.93-18.22,13ZM39.63,109.49c-7.92-2.23-9.24-6.88-5.63-9.56,3.34-2.47,9.01-4.33,9.01-4.33l23.45-8.34v9.51l-16.88,6.04c-2.98,1.07-3.44,2.58-1.02,3.38,2.42.79,6.81.57,9.8-.5l8.1-2.94v8.51c-.51.09-1.09.18-1.61.27-8.1,1.32-16.72.77-25.22-2.03h0ZM82.3,164.61C36.92,164.61,0,127.69,0,82.3S36.92,0,82.3,0s82.3,36.92,82.3,82.3-36.92,82.3-82.3,82.3ZM82.3,5C39.68,5,5,39.68,5,82.3s34.68,77.3,77.3,77.3,77.3-34.68,77.3-77.3S124.93,5,82.3,5Z" }) }) })
2217
2256
  ),
2218
2257
  active: t,
2219
- disabled: c
2258
+ disabled: s
2220
2259
  }
2221
- ), Q2 = ({
2260
+ ), e8 = ({
2222
2261
  active: t,
2223
2262
  className: e = "",
2224
- disabled: c
2263
+ disabled: s
2225
2264
  }) => /* @__PURE__ */ n.jsx(
2226
- x,
2265
+ M,
2227
2266
  {
2228
2267
  ActiveImage: (
2229
2268
  /* icon-podium-active.svg */
@@ -2265,14 +2304,14 @@ const B6 = () => {
2265
2304
  )
2266
2305
  ),
2267
2306
  active: t,
2268
- disabled: c
2307
+ disabled: s
2269
2308
  }
2270
- ), N2 = ({
2309
+ ), t8 = ({
2271
2310
  active: t,
2272
2311
  className: e = "",
2273
- disabled: c
2312
+ disabled: s
2274
2313
  }) => /* @__PURE__ */ n.jsx(
2275
- x,
2314
+ M,
2276
2315
  {
2277
2316
  ActiveImage: (
2278
2317
  /* icon-power-active.svg */
@@ -2314,14 +2353,14 @@ const B6 = () => {
2314
2353
  )
2315
2354
  ),
2316
2355
  active: t,
2317
- disabled: c
2356
+ disabled: s
2318
2357
  }
2319
- ), e8 = ({
2358
+ ), n8 = ({
2320
2359
  active: t,
2321
2360
  className: e = "",
2322
- disabled: c
2361
+ disabled: s
2323
2362
  }) => /* @__PURE__ */ n.jsx(
2324
- x,
2363
+ M,
2325
2364
  {
2326
2365
  ActiveImage: (
2327
2366
  /* icon-privacy-active.svg */
@@ -2363,14 +2402,14 @@ const B6 = () => {
2363
2402
  )
2364
2403
  ),
2365
2404
  active: t,
2366
- disabled: c
2405
+ disabled: s
2367
2406
  }
2368
- ), t8 = ({
2407
+ ), s8 = ({
2369
2408
  active: t,
2370
2409
  className: e = "",
2371
- disabled: c
2410
+ disabled: s
2372
2411
  }) => /* @__PURE__ */ n.jsx(
2373
- x,
2412
+ M,
2374
2413
  {
2375
2414
  ActiveImage: (
2376
2415
  /* icon-question-active.svg */
@@ -2412,14 +2451,14 @@ const B6 = () => {
2412
2451
  )
2413
2452
  ),
2414
2453
  active: t,
2415
- disabled: c
2454
+ disabled: s
2416
2455
  }
2417
- ), n8 = ({
2456
+ ), o8 = ({
2418
2457
  active: t,
2419
2458
  className: e = "",
2420
- disabled: c
2459
+ disabled: s
2421
2460
  }) => /* @__PURE__ */ n.jsx(
2422
- x,
2461
+ M,
2423
2462
  {
2424
2463
  ActiveImage: (
2425
2464
  /* icon-right-active.svg */
@@ -2461,16 +2500,16 @@ const B6 = () => {
2461
2500
  )
2462
2501
  ),
2463
2502
  active: t,
2464
- disabled: c
2503
+ disabled: s
2465
2504
  }
2466
2505
  ), c8 = ({
2467
2506
  active: t,
2468
2507
  // Just to shut up the linter on this template. Prefer deleting this lint rule
2469
2508
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2470
2509
  className: e = "",
2471
- disabled: c
2510
+ disabled: s
2472
2511
  }) => /* @__PURE__ */ n.jsx(
2473
- x,
2512
+ M,
2474
2513
  {
2475
2514
  ActiveImage: (
2476
2515
  /* icon-roomPC-active.svg */
@@ -2530,14 +2569,14 @@ const B6 = () => {
2530
2569
  )
2531
2570
  ),
2532
2571
  active: t,
2533
- disabled: c
2572
+ disabled: s
2534
2573
  }
2535
- ), s8 = ({
2574
+ ), r8 = ({
2536
2575
  active: t,
2537
2576
  className: e = "",
2538
- disabled: c
2577
+ disabled: s
2539
2578
  }) => /* @__PURE__ */ n.jsx(
2540
- x,
2579
+ M,
2541
2580
  {
2542
2581
  ActiveImage: (
2543
2582
  /* icon-shade-active.svg */
@@ -2579,14 +2618,14 @@ const B6 = () => {
2579
2618
  )
2580
2619
  ),
2581
2620
  active: t,
2582
- disabled: c
2621
+ disabled: s
2583
2622
  }
2584
- ), o8 = ({
2623
+ ), l8 = ({
2585
2624
  active: t,
2586
2625
  className: e = "",
2587
- disabled: c
2626
+ disabled: s
2588
2627
  }) => /* @__PURE__ */ n.jsx(
2589
- x,
2628
+ M,
2590
2629
  {
2591
2630
  ActiveImage: (
2592
2631
  /* icon-sun-active.svg */
@@ -2628,14 +2667,14 @@ const B6 = () => {
2628
2667
  )
2629
2668
  ),
2630
2669
  active: t,
2631
- disabled: c
2670
+ disabled: s
2632
2671
  }
2633
- ), r8 = ({
2672
+ ), i8 = ({
2634
2673
  active: t,
2635
2674
  className: e = "",
2636
- disabled: c
2675
+ disabled: s
2637
2676
  }) => /* @__PURE__ */ n.jsx(
2638
- x,
2677
+ M,
2639
2678
  {
2640
2679
  ActiveImage: (
2641
2680
  /* icon-up-active.svg */
@@ -2677,14 +2716,14 @@ const B6 = () => {
2677
2716
  )
2678
2717
  ),
2679
2718
  active: t,
2680
- disabled: c
2719
+ disabled: s
2681
2720
  }
2682
- ), l8 = ({
2721
+ ), a8 = ({
2683
2722
  active: t,
2684
2723
  className: e = "",
2685
- disabled: c
2724
+ disabled: s
2686
2725
  }) => /* @__PURE__ */ n.jsx(
2687
- x,
2726
+ M,
2688
2727
  {
2689
2728
  ActiveImage: (
2690
2729
  /* icon-volDown-active.svg */
@@ -2726,14 +2765,14 @@ const B6 = () => {
2726
2765
  )
2727
2766
  ),
2728
2767
  active: t,
2729
- disabled: c
2768
+ disabled: s
2730
2769
  }
2731
- ), i8 = ({
2770
+ ), u8 = ({
2732
2771
  active: t,
2733
2772
  className: e = "",
2734
- disabled: c
2773
+ disabled: s
2735
2774
  }) => /* @__PURE__ */ n.jsx(
2736
- x,
2775
+ M,
2737
2776
  {
2738
2777
  ActiveImage: (
2739
2778
  /* icon-volMute-active.svg */
@@ -2775,14 +2814,14 @@ const B6 = () => {
2775
2814
  )
2776
2815
  ),
2777
2816
  active: t,
2778
- disabled: c
2817
+ disabled: s
2779
2818
  }
2780
- ), a8 = ({
2819
+ ), d8 = ({
2781
2820
  active: t,
2782
2821
  className: e = "",
2783
- disabled: c
2822
+ disabled: s
2784
2823
  }) => /* @__PURE__ */ n.jsx(
2785
- x,
2824
+ M,
2786
2825
  {
2787
2826
  ActiveImage: (
2788
2827
  /* icon-volUp-active.svg */
@@ -2824,14 +2863,14 @@ const B6 = () => {
2824
2863
  )
2825
2864
  ),
2826
2865
  active: t,
2827
- disabled: c
2866
+ disabled: s
2828
2867
  }
2829
- ), u8 = ({
2868
+ ), v8 = ({
2830
2869
  active: t,
2831
2870
  className: e = "",
2832
- disabled: c
2871
+ disabled: s
2833
2872
  }) => /* @__PURE__ */ n.jsx(
2834
- x,
2873
+ M,
2835
2874
  {
2836
2875
  ActiveImage: (
2837
2876
  /* icon-wireless-active.svg */
@@ -2873,14 +2912,14 @@ const B6 = () => {
2873
2912
  )
2874
2913
  ),
2875
2914
  active: t,
2876
- disabled: c
2915
+ disabled: s
2877
2916
  }
2878
- ), d8 = ({
2917
+ ), h8 = ({
2879
2918
  active: t,
2880
2919
  className: e = "",
2881
- disabled: c
2920
+ disabled: s
2882
2921
  }) => /* @__PURE__ */ n.jsx(
2883
- x,
2922
+ M,
2884
2923
  {
2885
2924
  ActiveImage: (
2886
2925
  /* icon-x-active.svg */
@@ -2922,14 +2961,14 @@ const B6 = () => {
2922
2961
  )
2923
2962
  ),
2924
2963
  active: t,
2925
- disabled: c
2964
+ disabled: s
2926
2965
  }
2927
- ), v8 = ({
2966
+ ), g8 = ({
2928
2967
  active: t,
2929
2968
  className: e = "",
2930
- disabled: c
2969
+ disabled: s
2931
2970
  }) => /* @__PURE__ */ n.jsx(
2932
- x,
2971
+ M,
2933
2972
  {
2934
2973
  ActiveImage: (
2935
2974
  /* icon-xbox-active.svg */
@@ -2971,14 +3010,14 @@ const B6 = () => {
2971
3010
  )
2972
3011
  ),
2973
3012
  active: t,
2974
- disabled: c
3013
+ disabled: s
2975
3014
  }
2976
- ), h8 = ({
3015
+ ), f8 = ({
2977
3016
  active: t,
2978
3017
  className: e = "",
2979
- disabled: c
3018
+ disabled: s
2980
3019
  }) => /* @__PURE__ */ n.jsx(
2981
- x,
3020
+ M,
2982
3021
  {
2983
3022
  ActiveImage: (
2984
3023
  /* icon-mic-active.svg */
@@ -3020,110 +3059,110 @@ const B6 = () => {
3020
3059
  )
3021
3060
  ),
3022
3061
  active: t,
3023
- disabled: c
3024
- }
3025
- ), g8 = {
3026
- Alert: D2,
3027
- Camera: O2,
3028
- DownArrow: k2,
3029
- Ban: P2,
3030
- Check: V2,
3031
- Controller: F2,
3032
- Elipses: U2,
3033
- Flag: W2,
3034
- Gear: H2,
3035
- Glass: K2,
3036
- Hdmi: G2,
3037
- Laptop: q2,
3038
- LeftArrow: Y2,
3039
- Light: J2,
3040
- Mic: h8,
3041
- Moon: z2,
3042
- Playstation: X2,
3043
- Podium: Q2,
3044
- Power: N2,
3045
- Privacy: e8,
3046
- Question: t8,
3047
- RightArrow: n8,
3062
+ disabled: s
3063
+ }
3064
+ ), w8 = {
3065
+ Alert: O2,
3066
+ Camera: k2,
3067
+ DownArrow: W2,
3068
+ Ban: V2,
3069
+ Check: F2,
3070
+ Controller: U2,
3071
+ Elipses: H2,
3072
+ Flag: K2,
3073
+ Gear: G2,
3074
+ Glass: q2,
3075
+ Hdmi: Y2,
3076
+ Laptop: J2,
3077
+ LeftArrow: z2,
3078
+ Light: X2,
3079
+ Mic: f8,
3080
+ Moon: Q2,
3081
+ Playstation: N2,
3082
+ Podium: e8,
3083
+ Power: t8,
3084
+ Privacy: n8,
3085
+ Question: s8,
3086
+ RightArrow: o8,
3048
3087
  RoomPC: c8,
3049
- Shade: s8,
3050
- Sun: o8,
3051
- UpArrow: r8,
3052
- VolDown: l8,
3053
- VolMute: i8,
3054
- VolUp: a8,
3055
- Wireless: u8,
3056
- X: d8,
3057
- Xbox: v8
3088
+ Shade: r8,
3089
+ Sun: l8,
3090
+ UpArrow: i8,
3091
+ VolDown: a8,
3092
+ VolMute: u8,
3093
+ VolUp: d8,
3094
+ Wireless: v8,
3095
+ X: h8,
3096
+ Xbox: g8
3058
3097
  };
3059
- function T6({
3098
+ function V6({
3060
3099
  name: t,
3061
- iconsDictionary: e = g8,
3062
- ...c
3100
+ iconsDictionary: e = w8,
3101
+ ...s
3063
3102
  }) {
3064
- const o = e[t] ?? null;
3065
- return o || console.error(`Icon ${t} not found in dictionary`), /* @__PURE__ */ n.jsx(T2, { multiIcon: o, ...c });
3103
+ const c = e[t] ?? null;
3104
+ return c || console.error(`Icon ${t} not found in dictionary`), /* @__PURE__ */ n.jsx(P2, { multiIcon: c, ...s });
3066
3105
  }
3067
- const f8 = "_grid_1cmpp_1", w8 = "_header_1cmpp_11", p8 = "_content_1cmpp_17", x8 = "_footer_1cmpp_23", M8 = "_volume_1cmpp_29", c1 = {
3068
- grid: f8,
3069
- header: w8,
3070
- content: p8,
3071
- footer: x8,
3072
- volume: M8
3073
- }, D6 = ({ header: t, footer: e, content: c, volume: o, showVolume: l }) => /* @__PURE__ */ n.jsxs("div", { className: c1.grid, children: [
3074
- /* @__PURE__ */ n.jsx("div", { className: c1.header, children: t }),
3075
- /* @__PURE__ */ n.jsx("div", { className: c1.content, children: c }),
3076
- l && /* @__PURE__ */ n.jsx("div", { className: c1.volume, children: o }),
3077
- /* @__PURE__ */ n.jsx("div", { className: c1.footer, children: e })
3078
- ] }), m8 = "_grid_11w5q_1", Z8 = "_header_11w5q_11", j8 = "_content_11w5q_17", d1 = {
3079
- grid: m8,
3080
- header: Z8,
3081
- content: j8,
3106
+ const p8 = "_grid_1cmpp_1", x8 = "_header_1cmpp_11", M8 = "_content_1cmpp_17", m8 = "_footer_1cmpp_23", Z8 = "_volume_1cmpp_29", o1 = {
3107
+ grid: p8,
3108
+ header: x8,
3109
+ content: M8,
3110
+ footer: m8,
3111
+ volume: Z8
3112
+ }, k6 = ({ header: t, footer: e, content: s, volume: c, showVolume: l }) => /* @__PURE__ */ n.jsxs("div", { className: o1.grid, children: [
3113
+ /* @__PURE__ */ n.jsx("div", { className: o1.header, children: t }),
3114
+ /* @__PURE__ */ n.jsx("div", { className: o1.content, children: s }),
3115
+ l && /* @__PURE__ */ n.jsx("div", { className: o1.volume, children: c }),
3116
+ /* @__PURE__ */ n.jsx("div", { className: o1.footer, children: e })
3117
+ ] }), j8 = "_grid_11w5q_1", C8 = "_header_11w5q_11", S8 = "_content_11w5q_17", h1 = {
3118
+ grid: j8,
3119
+ header: C8,
3120
+ content: S8,
3082
3121
  "left-nav": "_left-nav_11w5q_23"
3083
- }, P6 = ({ className: t, header: e, content: c, leftNav: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${t} ${d1.grid}`, children: [
3084
- /* @__PURE__ */ n.jsx("div", { className: d1.header, children: e }),
3085
- o && /* @__PURE__ */ n.jsx("div", { className: d1.leftNav, children: o }),
3086
- /* @__PURE__ */ n.jsx("div", { className: d1.content, children: c })
3087
- ] }), C8 = "_grid_1uwfo_1", S8 = "_header_1uwfo_11", b8 = "_content_1uwfo_17", S1 = {
3088
- grid: C8,
3089
- header: S8,
3090
- content: b8
3091
- }, O6 = ({ className: t, header: e, content: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${t} ${S1.grid}`, children: [
3092
- /* @__PURE__ */ n.jsx("div", { className: S1.header, children: e }),
3093
- /* @__PURE__ */ n.jsx("div", { className: S1.content, children: c })
3122
+ }, F6 = ({ className: t, header: e, content: s, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${t} ${h1.grid}`, children: [
3123
+ /* @__PURE__ */ n.jsx("div", { className: h1.header, children: e }),
3124
+ c && /* @__PURE__ */ n.jsx("div", { className: h1.leftNav, children: c }),
3125
+ /* @__PURE__ */ n.jsx("div", { className: h1.content, children: s })
3126
+ ] }), b8 = "_grid_1uwfo_1", I8 = "_header_1uwfo_11", y8 = "_content_1uwfo_17", b1 = {
3127
+ grid: b8,
3128
+ header: I8,
3129
+ content: y8
3130
+ }, U6 = ({ className: t, header: e, content: s }) => /* @__PURE__ */ n.jsxs("div", { className: `${t} ${b1.grid}`, children: [
3131
+ /* @__PURE__ */ n.jsx("div", { className: b1.header, children: e }),
3132
+ /* @__PURE__ */ n.jsx("div", { className: b1.content, children: s })
3094
3133
  ] });
3095
- function V6() {
3134
+ function W6() {
3096
3135
  return console.log(location.pathname), location.pathname;
3097
3136
  }
3098
- var I8 = /* @__PURE__ */ ((t) => (t[t.NotSet = 0] = "NotSet", t[t.Sunday = 1] = "Sunday", t[t.Monday = 2] = "Monday", t[t.Tuesday = 4] = "Tuesday", t[t.Wednesday = 8] = "Wednesday", t[t.Thursday = 16] = "Thursday", t[t.Friday = 32] = "Friday", t[t.Saturday = 64] = "Saturday", t))(I8 || {});
3099
- class F6 {
3100
- constructor(e, c) {
3137
+ var R8 = /* @__PURE__ */ ((t) => (t[t.NotSet = 0] = "NotSet", t[t.Sunday = 1] = "Sunday", t[t.Monday = 2] = "Monday", t[t.Tuesday = 4] = "Tuesday", t[t.Wednesday = 8] = "Wednesday", t[t.Thursday = 16] = "Thursday", t[t.Friday = 32] = "Friday", t[t.Saturday = 64] = "Saturday", t))(R8 || {});
3138
+ class H6 {
3139
+ constructor(e, s) {
3101
3140
  _(this, "path");
3102
3141
  _(this, "handler");
3103
- this.path = e, this.handler = c;
3142
+ this.path = e, this.handler = s;
3104
3143
  }
3105
3144
  }
3106
- const k6 = "$off";
3107
- class U6 {
3145
+ const K6 = "$off";
3146
+ class G6 {
3108
3147
  constructor() {
3109
3148
  _(this, "name", "");
3110
3149
  _(this, "iconUrl", "");
3111
3150
  _(this, "channel", "");
3112
3151
  }
3113
3152
  }
3114
- class W6 {
3153
+ class q6 {
3115
3154
  constructor() {
3116
3155
  _(this, "deviceKey");
3117
3156
  _(this, "deviceType");
3118
3157
  }
3119
3158
  }
3120
- class H6 {
3159
+ class Y6 {
3121
3160
  constructor() {
3122
3161
  _(this, "deviceKey");
3123
3162
  _(this, "deviceType");
3124
3163
  }
3125
3164
  }
3126
- class K6 {
3165
+ class J6 {
3127
3166
  constructor() {
3128
3167
  _(this, "currentShareText");
3129
3168
  _(this, "enabled");
@@ -3131,124 +3170,127 @@ class K6 {
3131
3170
  }
3132
3171
  }
3133
3172
  export {
3134
- H6 as AccessoryDeviceConfiguration,
3135
- v6 as Clock,
3136
- I8 as DaysOfWeek,
3137
- W6 as EnvironmentalDeviceConfiguration,
3138
- B6 as ErrorBox,
3139
- T2 as IconButton,
3140
- D2 as IconMultiAlert,
3141
- P2 as IconMultiBan,
3142
- O2 as IconMultiCamera,
3143
- V2 as IconMultiCheck,
3144
- F2 as IconMultiController,
3145
- k2 as IconMultiDownArrow,
3146
- U2 as IconMultiElipses,
3147
- W2 as IconMultiFlag,
3148
- H2 as IconMultiGear,
3149
- K2 as IconMultiGlass,
3150
- G2 as IconMultiHdmi,
3151
- q2 as IconMultiLaptop,
3152
- Y2 as IconMultiLeftArrow,
3153
- J2 as IconMultiLight,
3154
- z2 as IconMultiMoon,
3155
- X2 as IconMultiPlaystation,
3156
- Q2 as IconMultiPodium,
3157
- N2 as IconMultiPower,
3158
- e8 as IconMultiPrivacy,
3159
- t8 as IconMultiQuestion,
3160
- n8 as IconMultiRightArrow,
3173
+ Y6 as AccessoryDeviceConfiguration,
3174
+ f6 as Clock,
3175
+ R8 as DaysOfWeek,
3176
+ q6 as EnvironmentalDeviceConfiguration,
3177
+ O6 as ErrorBox,
3178
+ P2 as IconButton,
3179
+ O2 as IconMultiAlert,
3180
+ V2 as IconMultiBan,
3181
+ k2 as IconMultiCamera,
3182
+ F2 as IconMultiCheck,
3183
+ U2 as IconMultiController,
3184
+ W2 as IconMultiDownArrow,
3185
+ H2 as IconMultiElipses,
3186
+ K2 as IconMultiFlag,
3187
+ G2 as IconMultiGear,
3188
+ q2 as IconMultiGlass,
3189
+ Y2 as IconMultiHdmi,
3190
+ J2 as IconMultiLaptop,
3191
+ z2 as IconMultiLeftArrow,
3192
+ X2 as IconMultiLight,
3193
+ Q2 as IconMultiMoon,
3194
+ N2 as IconMultiPlaystation,
3195
+ e8 as IconMultiPodium,
3196
+ t8 as IconMultiPower,
3197
+ n8 as IconMultiPrivacy,
3198
+ s8 as IconMultiQuestion,
3199
+ o8 as IconMultiRightArrow,
3161
3200
  c8 as IconMultiRoomPC,
3162
- s8 as IconMultiShade,
3163
- o8 as IconMultiSun,
3164
- r8 as IconMultiUpArrow,
3165
- l8 as IconMultiVolDown,
3166
- i8 as IconMultiVolMute,
3167
- a8 as IconMultiVolUp,
3168
- u8 as IconMultiWireless,
3169
- d8 as IconMultiX,
3170
- v8 as IconMultiXbox,
3171
- D6 as MainLayout,
3172
- F6 as MessageHandler,
3173
- n6 as MobileControlProvider,
3174
- x as MultiStateIconContainer,
3175
- T6 as NamedIconButton,
3176
- U6 as PresetChannel,
3177
- K6 as ShareState,
3178
- P6 as TechLayout,
3179
- O6 as TechPinLayout,
3180
- V6 as getBaseLocation,
3181
- b1 as httpClient,
3182
- k6 as roomOffSourceKey,
3183
- F as store,
3184
- A8 as uiActions,
3185
- v2 as uiReducer,
3186
- B8 as useApiPath,
3187
- g2 as useAppConfig,
3188
- m2 as useAppDispatch,
3189
- s6 as useAvrControl,
3190
- M2 as useClientId,
3191
- _2 as useDeviceIBasicVolumeWithFeedback,
3192
- o6 as useEndpoint,
3193
- L6 as useGetAllDeviceStateFromRoomConfiguration,
3194
- f2 as useGetAllDevices,
3195
- e6 as useGetCurrentPopoverIdForGroup,
3201
+ r8 as IconMultiShade,
3202
+ l8 as IconMultiSun,
3203
+ i8 as IconMultiUpArrow,
3204
+ a8 as IconMultiVolDown,
3205
+ u8 as IconMultiVolMute,
3206
+ d8 as IconMultiVolUp,
3207
+ v8 as IconMultiWireless,
3208
+ h8 as IconMultiX,
3209
+ g8 as IconMultiXbox,
3210
+ k6 as MainLayout,
3211
+ H6 as MessageHandler,
3212
+ c6 as MobileControlProvider,
3213
+ M as MultiStateIconContainer,
3214
+ V6 as NamedIconButton,
3215
+ G6 as PresetChannel,
3216
+ J6 as ShareState,
3217
+ F6 as TechLayout,
3218
+ U6 as TechPinLayout,
3219
+ W6 as getBaseLocation,
3220
+ E1 as httpClient,
3221
+ K6 as roomOffSourceKey,
3222
+ O as store,
3223
+ B8 as uiActions,
3224
+ h2 as uiReducer,
3225
+ T8 as useApiPath,
3226
+ f2 as useAppConfig,
3227
+ j2 as useAppDispatch,
3228
+ l6 as useAvrControl,
3229
+ Z2 as useClientId,
3230
+ $2 as useDeviceIBasicVolumeWithFeedback,
3231
+ i6 as useEndpoint,
3232
+ B6 as useGetAllDeviceStateFromRoomConfiguration,
3233
+ w2 as useGetAllDevices,
3234
+ s6 as useGetCurrentPopoverIdForGroup,
3196
3235
  L as useGetDevice,
3197
- c6 as useGetIBasicVolumeWithFeedback,
3198
- J8 as useGetRoomDisplayStates,
3199
- z8 as useGetZoomRoomControllerKey,
3200
- v3 as useIBasicVolumeWithFeedback,
3201
- r6 as useIChannelMessenger,
3202
- l6 as useIColor,
3203
- i6 as useICommunicationMonitor,
3204
- a6 as useIDPad,
3205
- u6 as useIDeviceInfoMessenger,
3206
- d6 as useIDvr,
3207
- h6 as useIEssentialsRoomCombiner,
3208
- h3 as useIHasPowerControl,
3209
- y1 as useIHasSelectableItems,
3210
- g6 as useILevelControls,
3211
- f6 as useILightingScenes,
3212
- w6 as useIMatrixRouting,
3213
- p6 as useIMcCiscoCodecUserInterfaceAppControl,
3214
- x6 as useINumeric,
3215
- M6 as useIProjectorScreenLiftControl,
3216
- m6 as useIRoomEventSchedule,
3217
- Z6 as useIRunDirectRouteAction,
3218
- j6 as useIRunRouteAction,
3219
- C6 as useISetTopBoxControls,
3220
- S6 as useIShadesOpenCloseStop,
3221
- b6 as useIShutdownPromptTimer,
3222
- I6 as useISwitchedOutput,
3223
- y6 as useITechPassword,
3224
- R6 as useITransport,
3225
- Z2 as useInitialize,
3226
- E6 as useMobileControlTouchpanelController,
3227
- E2 as usePressHoldRelease,
3228
- q8 as useRoomAdvancedSharingActive,
3229
- U8 as useRoomCodecContentDestinationKey,
3230
- T8 as useRoomConfiguration,
3231
- V8 as useRoomDestinationList,
3232
- O8 as useRoomDestinations,
3233
- F8 as useRoomEnvironmentalDevices,
3234
- $6 as useRoomIBasicVolumeWithFeedback,
3235
- W8 as useRoomInCall,
3236
- K8 as useRoomIsCoolingDown,
3237
- G8 as useRoomIsOn,
3238
- H8 as useRoomIsWarmingUp,
3239
- x2 as useRoomKey,
3240
- D8 as useRoomName,
3241
- k8 as useRoomProgramAudioDestinationKey,
3242
- Y8 as useRoomShareState,
3243
- P8 as useRoomSourceList,
3244
- R1 as useRoomState,
3245
- w2 as useRoomVolume,
3246
- Q8 as useShowIncomingCallModal,
3247
- N8 as useShowModal,
3248
- t6 as useShowPopoverById,
3249
- X8 as useShowShutdownModal,
3250
- A6 as useTimeAndDate,
3251
- _6 as useTwoWayDisplayBase,
3252
- y as useWebsocketContext,
3253
- p2 as useWsIsConnected
3236
+ r6 as useGetIBasicVolumeWithFeedback,
3237
+ Q8 as useGetRoomDisplayStates,
3238
+ N8 as useGetZoomRoomControllerKey,
3239
+ p3 as useIBasicVolumeWithFeedback,
3240
+ a6 as useIChannelMessenger,
3241
+ u6 as useIColor,
3242
+ d6 as useICommunicationMonitor,
3243
+ v6 as useIDPad,
3244
+ h6 as useIDeviceInfoMessenger,
3245
+ g6 as useIDvr,
3246
+ w6 as useIEssentialsRoomCombiner,
3247
+ x3 as useIHasPowerControl,
3248
+ L1 as useIHasSelectableItems,
3249
+ p6 as useILevelControls,
3250
+ x6 as useILightingScenes,
3251
+ M6 as useIMatrixRouting,
3252
+ m6 as useIMcCiscoCodecUserInterfaceAppControl,
3253
+ Z6 as useINumeric,
3254
+ j6 as useIProjectorScreenLiftControl,
3255
+ C6 as useIRoomEventSchedule,
3256
+ D6 as useIRunDefaultPresentRoute,
3257
+ S6 as useIRunDirectRouteAction,
3258
+ b6 as useIRunRouteAction,
3259
+ I6 as useISetTopBoxControls,
3260
+ y6 as useIShadesOpenCloseStop,
3261
+ R6 as useIShutdownPromptTimer,
3262
+ E6 as useISwitchedOutput,
3263
+ _6 as useITechPassword,
3264
+ L6 as useITransport,
3265
+ C2 as useInitialize,
3266
+ $6 as useMobileControlTouchpanelController,
3267
+ L2 as usePressHoldRelease,
3268
+ z8 as useRoomAdvancedSharingActive,
3269
+ K8 as useRoomCodecContentDestinationKey,
3270
+ P8 as useRoomConfiguration,
3271
+ U8 as useRoomDestinationList,
3272
+ F8 as useRoomDestinations,
3273
+ W8 as useRoomEnvironmentalDevices,
3274
+ T6 as useRoomIBasicVolumeWithFeedback,
3275
+ G8 as useRoomInCall,
3276
+ Y8 as useRoomIsCoolingDown,
3277
+ J8 as useRoomIsOn,
3278
+ q8 as useRoomIsWarmingUp,
3279
+ m2 as useRoomKey,
3280
+ k8 as useRoomLevelControlList,
3281
+ x2 as useRoomLevelControls,
3282
+ O8 as useRoomName,
3283
+ H8 as useRoomProgramAudioDestinationKey,
3284
+ X8 as useRoomShareState,
3285
+ V8 as useRoomSourceList,
3286
+ $1 as useRoomState,
3287
+ p2 as useRoomVolume,
3288
+ t6 as useShowIncomingCallModal,
3289
+ n6 as useShowModal,
3290
+ o6 as useShowPopoverById,
3291
+ e6 as useShowShutdownModal,
3292
+ P6 as useTimeAndDate,
3293
+ A6 as useTwoWayDisplayBase,
3294
+ I as useWebsocketContext,
3295
+ M2 as useWsIsConnected
3254
3296
  };