@pepperdash/mobile-control-react-app-core 1.3.0 → 1.4.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.
@@ -1,12 +1,12 @@
1
- var B1 = Object.defineProperty;
2
- var L1 = (c, r, t) => r in c ? B1(c, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[r] = t;
1
+ var A1 = Object.defineProperty;
2
+ var L1 = (c, r, t) => r in c ? A1(c, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[r] = t;
3
3
  var d = (c, r, t) => (L1(c, typeof r != "symbol" ? r + "" : r, t), t);
4
- import A1 from "axios";
5
- import { createSlice as K, combineReducers as T1, configureStore as W3 } from "@reduxjs/toolkit";
6
- import { useSelector as P1, useDispatch as D1, Provider as O1 } from "react-redux";
4
+ import T1 from "axios";
5
+ import { createSlice as Y, combineReducers as P1, configureStore as W3, createSelector as D1 } from "@reduxjs/toolkit";
6
+ import { useSelector as O1, useDispatch as V1, Provider as k1 } from "react-redux";
7
7
  import * as U3 from "lodash";
8
- import H3, { createContext as V1, useContext as k1, useState as r3, useRef as $1, useCallback as V3, useEffect as Y } from "react";
9
- const F1 = {
8
+ import H3, { createContext as $1, useContext as F1, useState as r3, useRef as W1, useCallback as V3, useEffect as K } from "react";
9
+ const U1 = {
10
10
  config: {
11
11
  enableDev: !1,
12
12
  apiPath: "",
@@ -16,45 +16,39 @@ const F1 = {
16
16
  loginMode: "",
17
17
  modes: {}
18
18
  }
19
- }, q3 = K({
19
+ }, G3 = Y({
20
20
  name: "appConfig",
21
- initialState: F1,
21
+ initialState: U1,
22
22
  reducers: {
23
23
  setAppConfig(c, r) {
24
24
  c.config = r.payload;
25
25
  }
26
26
  }
27
- }), W1 = q3.actions, U1 = q3.reducer, H1 = {}, G3 = K({
27
+ }), H1 = G3.actions, G1 = G3.reducer, q1 = {}, q3 = Y({
28
28
  name: "devices",
29
- initialState: H1,
29
+ initialState: q1,
30
30
  reducers: {
31
31
  setDeviceState(c, r) {
32
32
  const t = r.payload.type, l = t.slice(t.lastIndexOf("/") + 1);
33
33
  if (!l)
34
34
  return;
35
- const g = r.payload.content, m = c[l] ?? {}, S = U3.merge(m, g);
36
- return {
37
- ...c,
38
- [l]: S
39
- };
35
+ const a = r.payload.content, Z = c[l] ?? {}, S = U3.merge(Z, a);
36
+ return c[l] = S, c;
40
37
  }
41
38
  }
42
- }), q1 = G3.actions, G1 = G3.reducer, Y1 = {}, Y3 = K({
39
+ }), K1 = q3.actions, Y1 = q3.reducer, z1 = {}, K3 = Y({
43
40
  name: "rooms",
44
- initialState: Y1,
41
+ initialState: z1,
45
42
  reducers: {
46
43
  setRoomState(c, r) {
47
44
  const l = r.payload.type.match("/room/(.*)/status");
48
45
  if (!l)
49
46
  return;
50
- const g = l[1], m = r.payload.content, S = c[g] ?? {}, b = U3.merge(S, m);
51
- return {
52
- ...c,
53
- [g]: b
54
- };
47
+ const a = l[1], Z = r.payload.content, S = c[a] ?? {}, b = U3.merge(S, Z);
48
+ return c[a] = b, c;
55
49
  }
56
50
  }
57
- }), K1 = Y3.actions, J1 = Y3.reducer, z1 = {
51
+ }), J1 = K3.actions, X1 = K3.reducer, Q1 = {
58
52
  apiVersion: "",
59
53
  serverIsRunningOnProcessorHardware: !1,
60
54
  websocket: {
@@ -73,9 +67,9 @@ const F1 = {
73
67
  userCode: "",
74
68
  qrUrl: ""
75
69
  }
76
- }, K3 = K({
70
+ }, Y3 = Y({
77
71
  name: "runtimeConfig",
78
- initialState: z1,
72
+ initialState: Q1,
79
73
  reducers: {
80
74
  setRuntimeConfig(c, r) {
81
75
  c.apiVersion = r.payload.apiVersion, c.serverIsRunningOnProcessorHardware = r.payload.serverIsRunningOnProcessorHardware;
@@ -99,15 +93,15 @@ const F1 = {
99
93
  c.roomData.userCode = r.payload.userCode, c.roomData.qrUrl = r.payload.qrUrl;
100
94
  }
101
95
  }
102
- }), F = K3.actions, X1 = K3.reducer, Q1 = {
96
+ }), F = Y3.actions, N1 = Y3.reducer, e2 = {
103
97
  modalVisibility: {
104
98
  showShutdownModal: !1,
105
99
  showIncomingCallModal: !1
106
100
  },
107
101
  popoverVisibility: {}
108
- }, J3 = K({
102
+ }, z3 = Y({
109
103
  name: "ui",
110
- initialState: Q1,
104
+ initialState: e2,
111
105
  reducers: {
112
106
  clearAllModals(c) {
113
107
  Object.entries(c.modalVisibility).forEach(([r]) => {
@@ -129,101 +123,107 @@ const F1 = {
129
123
  }), c.popoverVisibility[r.payload.popoverGroup][r.payload.popoverId] = r.payload.value;
130
124
  }
131
125
  }
132
- }), v8 = J3.actions, N1 = J3.reducer, z3 = T1({
133
- appConfig: U1,
134
- runtimeConfig: X1,
135
- rooms: J1,
136
- devices: G1,
137
- ui: N1
138
- });
139
- W3({
140
- reducer: z3
141
- });
142
- const f = P1, e2 = () => f((c) => c.appConfig.config), h8 = () => f((c) => c.appConfig.config.apiPath), d8 = () => f((c) => Object.values(c.devices)), r2 = (c) => f((r) => r.devices[c]), u8 = (c) => f(
126
+ }), d8 = z3.actions, r2 = z3.reducer, J3 = P1({
127
+ appConfig: G1,
128
+ runtimeConfig: N1,
129
+ rooms: X1,
130
+ devices: Y1,
131
+ ui: r2
132
+ }), c2 = W3({
133
+ reducer: J3
134
+ }), f = O1, s2 = () => f((c) => c.appConfig.config), u8 = () => f((c) => c.appConfig.config.apiPath), g8 = () => D1(
135
+ [(c) => c.devices],
136
+ (c) => c ? Object.values(c) : void 0
137
+ )(c2.getState()), X3 = (c) => f((r) => r.devices[c] ? r.devices[c] : void 0), w8 = (c) => f(
143
138
  (r) => {
144
139
  var t;
145
140
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.configuration : void 0;
146
141
  }
147
- ), g8 = (c) => f(
142
+ ), x8 = (c) => f(
148
143
  (r) => r.rooms[c] ? r.rooms[c] : void 0
149
- ), w8 = (c) => f(
144
+ ), f8 = (c) => f(
150
145
  (r) => {
151
146
  var t;
152
147
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.name : void 0;
153
148
  }
154
- ), x8 = (c) => f(
149
+ ), p8 = (c) => f(
155
150
  (r) => {
156
151
  var t, l;
157
152
  return r.rooms[c] ? (l = (t = r.rooms[c]) == null ? void 0 : t.volumes) == null ? void 0 : l.master : void 0;
158
153
  }
159
- ), f8 = (c) => f(
154
+ ), M8 = (c) => f(
160
155
  (r) => {
161
156
  var t, l;
162
157
  return r.rooms[c] ? (l = (t = r.rooms[c]) == null ? void 0 : t.configuration) == null ? void 0 : l.sourceList : void 0;
163
158
  }
164
- ), p8 = (c) => f(
159
+ ), Z8 = (c) => f(
165
160
  (r) => {
166
161
  var t, l;
167
162
  return r.rooms[c] ? (l = (t = r.rooms[c]) == null ? void 0 : t.configuration) == null ? void 0 : l.displayKeys : void 0;
168
163
  }
169
- ), M8 = (c) => f(
164
+ ), m8 = (c) => f(
170
165
  (r) => {
171
166
  var t;
172
167
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.isInCall : void 0;
173
168
  }
174
- ), Z8 = (c) => f(
169
+ ), j8 = (c) => f(
175
170
  (r) => {
176
171
  var t;
177
172
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.isWarmingUp : void 0;
178
173
  }
179
- ), m8 = (c) => f(
174
+ ), C8 = (c) => f(
180
175
  (r) => {
181
176
  var t;
182
177
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.isCoolingDown : void 0;
183
178
  }
184
- ), j8 = (c) => f(
179
+ ), S8 = (c) => f(
185
180
  (r) => {
186
181
  var t;
187
182
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.isOn : void 0;
188
183
  }
189
- ), C8 = (c) => f(
184
+ ), b8 = (c) => f(
190
185
  (r) => {
191
186
  var t;
192
187
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.advancedSharingActive : void 0;
193
188
  }
194
- ), S8 = (c) => f(
189
+ ), y8 = (c) => f(
195
190
  (r) => {
196
191
  var t;
197
192
  return r.rooms[c] ? (t = r.rooms[c]) == null ? void 0 : t.share : void 0;
198
193
  }
199
- ), b8 = (c) => f((r) => {
200
- var g, m;
201
- const t = (m = (g = r.rooms[c]) == null ? void 0 : g.configuration) == null ? void 0 : m.displayKeys;
194
+ ), I8 = (c) => f((r) => {
195
+ var a, Z;
196
+ const t = (Z = (a = r.rooms[c]) == null ? void 0 : a.configuration) == null ? void 0 : Z.displayKeys;
202
197
  return t && Object.values(r.devices).filter(
203
198
  (S) => t.includes(S.key)
204
199
  ) || void 0;
205
- }), c2 = () => f((c) => c.runtimeConfig.websocket.isConnected), s2 = () => f((c) => c.runtimeConfig.roomData.roomKey), t2 = () => f((c) => c.runtimeConfig.roomData.clientId), y8 = () => f((c) => c.ui.modalVisibility.showShutdownModal), I8 = () => f((c) => c.ui.modalVisibility.showIncomingCallModal), R8 = (c) => f((r) => r.ui.modalVisibility[c]), E8 = (c) => f((r) => {
200
+ }), R8 = (c) => f(
201
+ (r) => {
202
+ var t, l;
203
+ return r.rooms[c] ? (l = (t = r.rooms[c]) == null ? void 0 : t.configuration) == null ? void 0 : l.zoomRoomControllerKey : void 0;
204
+ }
205
+ ), t2 = () => f((c) => c.runtimeConfig.websocket.isConnected), o2 = () => f((c) => c.runtimeConfig.roomData.roomKey), n2 = () => f((c) => c.runtimeConfig.roomData.clientId), E8 = () => f((c) => c.ui.modalVisibility.showShutdownModal), _8 = () => f((c) => c.ui.modalVisibility.showIncomingCallModal), B8 = (c) => f((r) => r.ui.modalVisibility[c]), A8 = (c) => f((r) => {
206
206
  const t = r.ui.popoverVisibility[c];
207
207
  if (t)
208
208
  return Object.keys(t).find((l) => t[l]);
209
- }), _8 = (c, r) => f((t) => {
209
+ }), L8 = (c, r) => f((t) => {
210
210
  var l;
211
211
  return (l = t.ui.popoverVisibility[c]) == null ? void 0 : l[r];
212
212
  }), D = W3({
213
- reducer: z3
214
- }), o2 = D1, h3 = A1.create();
215
- function n2() {
216
- const c = o2();
213
+ reducer: J3
214
+ }), l2 = V1, d3 = T1.create();
215
+ function i2() {
216
+ const c = l2();
217
217
  return async () => {
218
218
  try {
219
- const r = location.pathname.split("/").filter((g) => g.length > 0);
219
+ const r = location.pathname.split("/").filter((a) => a.length > 0);
220
220
  r.length >= 5 ? r.length = 5 : r.length = 2;
221
- const t = `/${r.join("/")}`, l = await h3.get("/_local-config/_config.local.json", { baseURL: t });
221
+ const t = `/${r.join("/")}`, l = await d3.get("/_local-config/_config.local.json", { baseURL: t });
222
222
  if (l.status == 200 && l.data) {
223
- const g = l.data.apiPath;
224
- c(W1.setAppConfig(l.data));
225
- const m = await h3.get(`${g}/version`);
226
- m.status == 200 && m.data && c(F.setRuntimeConfig(m.data));
223
+ const a = l.data.apiPath;
224
+ c(H1.setAppConfig(l.data));
225
+ const Z = await d3.get(`${a}/version`);
226
+ Z.status == 200 && Z.data && c(F.setRuntimeConfig(Z.data));
227
227
  }
228
228
  } catch (r) {
229
229
  console.error("Error getting config", r);
@@ -231,7 +231,7 @@ function n2() {
231
231
  return !0;
232
232
  };
233
233
  }
234
- var d3 = { exports: {} }, H = {};
234
+ var u3 = { exports: {} }, H = {};
235
235
  /**
236
236
  * @license React
237
237
  * react-jsx-runtime.development.js
@@ -242,13 +242,13 @@ var d3 = { exports: {} }, H = {};
242
242
  * LICENSE file in the root directory of this source tree.
243
243
  */
244
244
  var k3;
245
- function l2() {
245
+ function a2() {
246
246
  return k3 || (k3 = 1, process.env.NODE_ENV !== "production" && function() {
247
- var c = H3, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), b = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), M = Symbol.iterator, A = "@@iterator";
247
+ var c = H3, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), b = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), M = Symbol.iterator, L = "@@iterator";
248
248
  function O(s) {
249
249
  if (s === null || typeof s != "object")
250
250
  return null;
251
- var o = M && s[M] || s[A];
251
+ var o = M && s[M] || s[L];
252
252
  return typeof o == "function" ? o : null;
253
253
  }
254
254
  var p = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -256,34 +256,34 @@ function l2() {
256
256
  {
257
257
  for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++)
258
258
  n[i - 1] = arguments[i];
259
- Q3("error", s, n);
259
+ N3("error", s, n);
260
260
  }
261
261
  }
262
- function Q3(s, o, n) {
262
+ function N3(s, o, n) {
263
263
  {
264
- var i = p.ReactDebugCurrentFrame, h = i.getStackAddendum();
265
- h !== "" && (o += "%s", n = n.concat([h]));
266
- var w = n.map(function(v) {
267
- return String(v);
264
+ var i = p.ReactDebugCurrentFrame, u = i.getStackAddendum();
265
+ u !== "" && (o += "%s", n = n.concat([u]));
266
+ var w = n.map(function(h) {
267
+ return String(h);
268
268
  });
269
269
  w.unshift("Warning: " + o), Function.prototype.apply.call(console[s], console, w);
270
270
  }
271
271
  }
272
- var N3 = !1, e1 = !1, r1 = !1, c1 = !1, s1 = !1, g3;
272
+ var e1 = !1, r1 = !1, c1 = !1, s1 = !1, t1 = !1, g3;
273
273
  g3 = Symbol.for("react.module.reference");
274
- function t1(s) {
275
- return !!(typeof s == "string" || typeof s == "function" || s === l || s === m || s1 || s === g || s === E || s === j || c1 || s === B || N3 || e1 || r1 || typeof s == "object" && s !== null && (s.$$typeof === _ || s.$$typeof === y || s.$$typeof === S || s.$$typeof === b || s.$$typeof === x || // This needs to include all possible module reference object
274
+ function o1(s) {
275
+ return !!(typeof s == "string" || typeof s == "function" || s === l || s === Z || t1 || s === a || s === E || s === j || s1 || s === B || e1 || r1 || c1 || typeof s == "object" && s !== null && (s.$$typeof === _ || s.$$typeof === y || s.$$typeof === S || s.$$typeof === b || s.$$typeof === x || // This needs to include all possible module reference object
276
276
  // types supported by any Flight configuration anywhere since
277
277
  // we don't know which Flight build this will end up being used
278
278
  // with.
279
279
  s.$$typeof === g3 || s.getModuleId !== void 0));
280
280
  }
281
- function o1(s, o, n) {
281
+ function n1(s, o, n) {
282
282
  var i = s.displayName;
283
283
  if (i)
284
284
  return i;
285
- var h = o.displayName || o.name || "";
286
- return h !== "" ? n + "(" + h + ")" : n;
285
+ var u = o.displayName || o.name || "";
286
+ return u !== "" ? n + "(" + u + ")" : n;
287
287
  }
288
288
  function w3(s) {
289
289
  return s.displayName || "Context";
@@ -300,9 +300,9 @@ function l2() {
300
300
  return "Fragment";
301
301
  case t:
302
302
  return "Portal";
303
- case m:
303
+ case Z:
304
304
  return "Profiler";
305
- case g:
305
+ case a:
306
306
  return "StrictMode";
307
307
  case E:
308
308
  return "Suspense";
@@ -318,14 +318,14 @@ function l2() {
318
318
  var n = s;
319
319
  return w3(n._context) + ".Provider";
320
320
  case x:
321
- return o1(s, s.render, "ForwardRef");
321
+ return n1(s, s.render, "ForwardRef");
322
322
  case y:
323
323
  var i = s.displayName || null;
324
324
  return i !== null ? i : T(s.type) || "Memo";
325
325
  case _: {
326
- var h = s, w = h._payload, v = h._init;
326
+ var u = s, w = u._payload, h = u._init;
327
327
  try {
328
- return T(v(w));
328
+ return T(h(w));
329
329
  } catch {
330
330
  return null;
331
331
  }
@@ -337,7 +337,7 @@ function l2() {
337
337
  function C3() {
338
338
  }
339
339
  C3.__reactDisabledLog = !0;
340
- function n1() {
340
+ function l1() {
341
341
  {
342
342
  if (W === 0) {
343
343
  x3 = console.log, f3 = console.info, p3 = console.warn, M3 = console.error, Z3 = console.group, m3 = console.groupCollapsed, j3 = console.groupEnd;
@@ -360,7 +360,7 @@ function l2() {
360
360
  W++;
361
361
  }
362
362
  }
363
- function l1() {
363
+ function i1() {
364
364
  {
365
365
  if (W--, W === 0) {
366
366
  var s = {
@@ -395,62 +395,62 @@ function l2() {
395
395
  W < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
396
396
  }
397
397
  }
398
- var c3 = p.ReactCurrentDispatcher, s3;
399
- function J(s, o, n) {
398
+ var s3 = p.ReactCurrentDispatcher, t3;
399
+ function z(s, o, n) {
400
400
  {
401
- if (s3 === void 0)
401
+ if (t3 === void 0)
402
402
  try {
403
403
  throw Error();
404
- } catch (h) {
405
- var i = h.stack.trim().match(/\n( *(at )?)/);
406
- s3 = i && i[1] || "";
404
+ } catch (u) {
405
+ var i = u.stack.trim().match(/\n( *(at )?)/);
406
+ t3 = i && i[1] || "";
407
407
  }
408
408
  return `
409
- ` + s3 + s;
409
+ ` + t3 + s;
410
410
  }
411
411
  }
412
- var t3 = !1, z;
412
+ var o3 = !1, J;
413
413
  {
414
- var i1 = typeof WeakMap == "function" ? WeakMap : Map;
415
- z = new i1();
414
+ var a1 = typeof WeakMap == "function" ? WeakMap : Map;
415
+ J = new a1();
416
416
  }
417
417
  function S3(s, o) {
418
- if (!s || t3)
418
+ if (!s || o3)
419
419
  return "";
420
420
  {
421
- var n = z.get(s);
421
+ var n = J.get(s);
422
422
  if (n !== void 0)
423
423
  return n;
424
424
  }
425
425
  var i;
426
- t3 = !0;
427
- var h = Error.prepareStackTrace;
426
+ o3 = !0;
427
+ var u = Error.prepareStackTrace;
428
428
  Error.prepareStackTrace = void 0;
429
429
  var w;
430
- w = c3.current, c3.current = null, n1();
430
+ w = s3.current, s3.current = null, l1();
431
431
  try {
432
432
  if (o) {
433
- var v = function() {
433
+ var h = function() {
434
434
  throw Error();
435
435
  };
436
- if (Object.defineProperty(v.prototype, "props", {
436
+ if (Object.defineProperty(h.prototype, "props", {
437
437
  set: function() {
438
438
  throw Error();
439
439
  }
440
440
  }), typeof Reflect == "object" && Reflect.construct) {
441
441
  try {
442
- Reflect.construct(v, []);
442
+ Reflect.construct(h, []);
443
443
  } catch (P) {
444
444
  i = P;
445
445
  }
446
- Reflect.construct(s, [], v);
446
+ Reflect.construct(s, [], h);
447
447
  } else {
448
448
  try {
449
- v.call();
449
+ h.call();
450
450
  } catch (P) {
451
451
  i = P;
452
452
  }
453
- s.call(v.prototype);
453
+ s.call(h.prototype);
454
454
  }
455
455
  } else {
456
456
  try {
@@ -462,33 +462,33 @@ function l2() {
462
462
  }
463
463
  } catch (P) {
464
464
  if (P && i && typeof P.stack == "string") {
465
- for (var a = P.stack.split(`
465
+ for (var v = P.stack.split(`
466
466
  `), R = i.stack.split(`
467
- `), Z = a.length - 1, C = R.length - 1; Z >= 1 && C >= 0 && a[Z] !== R[C]; )
467
+ `), m = v.length - 1, C = R.length - 1; m >= 1 && C >= 0 && v[m] !== R[C]; )
468
468
  C--;
469
- for (; Z >= 1 && C >= 0; Z--, C--)
470
- if (a[Z] !== R[C]) {
471
- if (Z !== 1 || C !== 1)
469
+ for (; m >= 1 && C >= 0; m--, C--)
470
+ if (v[m] !== R[C]) {
471
+ if (m !== 1 || C !== 1)
472
472
  do
473
- if (Z--, C--, C < 0 || a[Z] !== R[C]) {
474
- var L = `
475
- ` + a[Z].replace(" at new ", " at ");
476
- return s.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", s.displayName)), typeof s == "function" && z.set(s, L), L;
473
+ if (m--, C--, C < 0 || v[m] !== R[C]) {
474
+ var A = `
475
+ ` + v[m].replace(" at new ", " at ");
476
+ return s.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", s.displayName)), typeof s == "function" && J.set(s, A), A;
477
477
  }
478
- while (Z >= 1 && C >= 0);
478
+ while (m >= 1 && C >= 0);
479
479
  break;
480
480
  }
481
481
  }
482
482
  } finally {
483
- t3 = !1, c3.current = w, l1(), Error.prepareStackTrace = h;
483
+ o3 = !1, s3.current = w, i1(), Error.prepareStackTrace = u;
484
484
  }
485
- var $ = s ? s.displayName || s.name : "", O3 = $ ? J($) : "";
486
- return typeof s == "function" && z.set(s, O3), O3;
485
+ var $ = s ? s.displayName || s.name : "", O3 = $ ? z($) : "";
486
+ return typeof s == "function" && J.set(s, O3), O3;
487
487
  }
488
- function a1(s, o, n) {
488
+ function v1(s, o, n) {
489
489
  return S3(s, !1);
490
490
  }
491
- function v1(s) {
491
+ function h1(s) {
492
492
  var o = s.prototype;
493
493
  return !!(o && o.isReactComponent);
494
494
  }
@@ -496,25 +496,25 @@ function l2() {
496
496
  if (s == null)
497
497
  return "";
498
498
  if (typeof s == "function")
499
- return S3(s, v1(s));
499
+ return S3(s, h1(s));
500
500
  if (typeof s == "string")
501
- return J(s);
501
+ return z(s);
502
502
  switch (s) {
503
503
  case E:
504
- return J("Suspense");
504
+ return z("Suspense");
505
505
  case j:
506
- return J("SuspenseList");
506
+ return z("SuspenseList");
507
507
  }
508
508
  if (typeof s == "object")
509
509
  switch (s.$$typeof) {
510
510
  case x:
511
- return a1(s.render);
511
+ return v1(s.render);
512
512
  case y:
513
513
  return X(s.type, o, n);
514
514
  case _: {
515
- var i = s, h = i._payload, w = i._init;
515
+ var i = s, u = i._payload, w = i._init;
516
516
  try {
517
- return X(w(h), o, n);
517
+ return X(w(u), o, n);
518
518
  } catch {
519
519
  }
520
520
  }
@@ -529,36 +529,36 @@ function l2() {
529
529
  } else
530
530
  y3.setExtraStackFrame(null);
531
531
  }
532
- function h1(s, o, n, i, h) {
532
+ function d1(s, o, n, i, u) {
533
533
  {
534
534
  var w = Function.call.bind(Q);
535
- for (var v in s)
536
- if (w(s, v)) {
537
- var a = void 0;
535
+ for (var h in s)
536
+ if (w(s, h)) {
537
+ var v = void 0;
538
538
  try {
539
- if (typeof s[v] != "function") {
540
- var R = Error((i || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
539
+ if (typeof s[h] != "function") {
540
+ var R = Error((i || "React class") + ": " + n + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
541
541
  throw R.name = "Invariant Violation", R;
542
542
  }
543
- a = s[v](o, v, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
544
- } catch (Z) {
545
- a = Z;
543
+ v = s[h](o, h, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
544
+ } catch (m) {
545
+ v = m;
546
546
  }
547
- a && !(a instanceof Error) && (N(h), I("%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).", i || "React class", n, v, typeof a), N(null)), a instanceof Error && !(a.message in b3) && (b3[a.message] = !0, N(h), I("Failed %s type: %s", n, a.message), N(null));
547
+ v && !(v instanceof Error) && (N(u), I("%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).", i || "React class", n, h, typeof v), N(null)), v instanceof Error && !(v.message in b3) && (b3[v.message] = !0, N(u), I("Failed %s type: %s", n, v.message), N(null));
548
548
  }
549
549
  }
550
550
  }
551
- var d1 = Array.isArray;
552
- function o3(s) {
553
- return d1(s);
551
+ var u1 = Array.isArray;
552
+ function n3(s) {
553
+ return u1(s);
554
554
  }
555
- function u1(s) {
555
+ function g1(s) {
556
556
  {
557
557
  var o = typeof Symbol == "function" && Symbol.toStringTag, n = o && s[Symbol.toStringTag] || s.constructor.name || "Object";
558
558
  return n;
559
559
  }
560
560
  }
561
- function g1(s) {
561
+ function w1(s) {
562
562
  try {
563
563
  return I3(s), !1;
564
564
  } catch {
@@ -569,17 +569,17 @@ function l2() {
569
569
  return "" + s;
570
570
  }
571
571
  function R3(s) {
572
- if (g1(s))
573
- return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", u1(s)), I3(s);
572
+ if (w1(s))
573
+ return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", g1(s)), I3(s);
574
574
  }
575
- var U = p.ReactCurrentOwner, w1 = {
575
+ var U = p.ReactCurrentOwner, x1 = {
576
576
  key: !0,
577
577
  ref: !0,
578
578
  __self: !0,
579
579
  __source: !0
580
- }, E3, _3, n3;
581
- n3 = {};
582
- function x1(s) {
580
+ }, E3, _3, l3;
581
+ l3 = {};
582
+ function f1(s) {
583
583
  if (Q.call(s, "ref")) {
584
584
  var o = Object.getOwnPropertyDescriptor(s, "ref").get;
585
585
  if (o && o.isReactWarning)
@@ -587,7 +587,7 @@ function l2() {
587
587
  }
588
588
  return s.ref !== void 0;
589
589
  }
590
- function f1(s) {
590
+ function p1(s) {
591
591
  if (Q.call(s, "key")) {
592
592
  var o = Object.getOwnPropertyDescriptor(s, "key").get;
593
593
  if (o && o.isReactWarning)
@@ -595,13 +595,13 @@ function l2() {
595
595
  }
596
596
  return s.key !== void 0;
597
597
  }
598
- function p1(s, o) {
598
+ function M1(s, o) {
599
599
  if (typeof s.ref == "string" && U.current && o && U.current.stateNode !== o) {
600
600
  var n = T(U.current.type);
601
- n3[n] || (I('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', T(U.current.type), s.ref), n3[n] = !0);
601
+ l3[n] || (I('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', T(U.current.type), s.ref), l3[n] = !0);
602
602
  }
603
603
  }
604
- function M1(s, o) {
604
+ function Z1(s, o) {
605
605
  {
606
606
  var n = function() {
607
607
  E3 || (E3 = !0, I("%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)", o));
@@ -612,7 +612,7 @@ function l2() {
612
612
  });
613
613
  }
614
614
  }
615
- function Z1(s, o) {
615
+ function m1(s, o) {
616
616
  {
617
617
  var n = function() {
618
618
  _3 || (_3 = !0, I("%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)", o));
@@ -623,54 +623,54 @@ function l2() {
623
623
  });
624
624
  }
625
625
  }
626
- var m1 = function(s, o, n, i, h, w, v) {
627
- var a = {
626
+ var j1 = function(s, o, n, i, u, w, h) {
627
+ var v = {
628
628
  // This tag allows us to uniquely identify this as a React Element
629
629
  $$typeof: r,
630
630
  // Built-in properties that belong on the element
631
631
  type: s,
632
632
  key: o,
633
633
  ref: n,
634
- props: v,
634
+ props: h,
635
635
  // Record the component responsible for creating this element.
636
636
  _owner: w
637
637
  };
638
- return a._store = {}, Object.defineProperty(a._store, "validated", {
638
+ return v._store = {}, Object.defineProperty(v._store, "validated", {
639
639
  configurable: !1,
640
640
  enumerable: !1,
641
641
  writable: !0,
642
642
  value: !1
643
- }), Object.defineProperty(a, "_self", {
643
+ }), Object.defineProperty(v, "_self", {
644
644
  configurable: !1,
645
645
  enumerable: !1,
646
646
  writable: !1,
647
647
  value: i
648
- }), Object.defineProperty(a, "_source", {
648
+ }), Object.defineProperty(v, "_source", {
649
649
  configurable: !1,
650
650
  enumerable: !1,
651
651
  writable: !1,
652
- value: h
653
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
652
+ value: u
653
+ }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
654
654
  };
655
- function j1(s, o, n, i, h) {
655
+ function C1(s, o, n, i, u) {
656
656
  {
657
- var w, v = {}, a = null, R = null;
658
- n !== void 0 && (R3(n), a = "" + n), f1(o) && (R3(o.key), a = "" + o.key), x1(o) && (R = o.ref, p1(o, h));
657
+ var w, h = {}, v = null, R = null;
658
+ n !== void 0 && (R3(n), v = "" + n), p1(o) && (R3(o.key), v = "" + o.key), f1(o) && (R = o.ref, M1(o, u));
659
659
  for (w in o)
660
- Q.call(o, w) && !w1.hasOwnProperty(w) && (v[w] = o[w]);
660
+ Q.call(o, w) && !x1.hasOwnProperty(w) && (h[w] = o[w]);
661
661
  if (s && s.defaultProps) {
662
- var Z = s.defaultProps;
663
- for (w in Z)
664
- v[w] === void 0 && (v[w] = Z[w]);
662
+ var m = s.defaultProps;
663
+ for (w in m)
664
+ h[w] === void 0 && (h[w] = m[w]);
665
665
  }
666
- if (a || R) {
666
+ if (v || R) {
667
667
  var C = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
668
- a && M1(v, C), R && Z1(v, C);
668
+ v && Z1(h, C), R && m1(h, C);
669
669
  }
670
- return m1(s, a, R, h, i, U.current, v);
670
+ return j1(s, v, R, u, i, U.current, h);
671
671
  }
672
672
  }
673
- var l3 = p.ReactCurrentOwner, B3 = p.ReactDebugCurrentFrame;
673
+ var i3 = p.ReactCurrentOwner, B3 = p.ReactDebugCurrentFrame;
674
674
  function k(s) {
675
675
  if (s) {
676
676
  var o = s._owner, n = X(s.type, s._source, o ? o.type : null);
@@ -678,15 +678,15 @@ function l2() {
678
678
  } else
679
679
  B3.setExtraStackFrame(null);
680
680
  }
681
- var i3;
682
- i3 = !1;
683
- function a3(s) {
681
+ var a3;
682
+ a3 = !1;
683
+ function v3(s) {
684
684
  return typeof s == "object" && s !== null && s.$$typeof === r;
685
685
  }
686
- function L3() {
686
+ function A3() {
687
687
  {
688
- if (l3.current) {
689
- var s = T(l3.current.type);
688
+ if (i3.current) {
689
+ var s = T(i3.current.type);
690
690
  if (s)
691
691
  return `
692
692
 
@@ -695,7 +695,7 @@ Check the render method of \`` + s + "`.";
695
695
  return "";
696
696
  }
697
697
  }
698
- function C1(s) {
698
+ function S1(s) {
699
699
  {
700
700
  if (s !== void 0) {
701
701
  var o = s.fileName.replace(/^.*[\\\/]/, ""), n = s.lineNumber;
@@ -706,10 +706,10 @@ Check your code at ` + o + ":" + n + ".";
706
706
  return "";
707
707
  }
708
708
  }
709
- var A3 = {};
710
- function S1(s) {
709
+ var L3 = {};
710
+ function b1(s) {
711
711
  {
712
- var o = L3();
712
+ var o = A3();
713
713
  if (!o) {
714
714
  var n = typeof s == "string" ? s : s.displayName || s.name;
715
715
  n && (o = `
@@ -724,34 +724,34 @@ Check the top-level render call using <` + n + ">.");
724
724
  if (!s._store || s._store.validated || s.key != null)
725
725
  return;
726
726
  s._store.validated = !0;
727
- var n = S1(o);
728
- if (A3[n])
727
+ var n = b1(o);
728
+ if (L3[n])
729
729
  return;
730
- A3[n] = !0;
730
+ L3[n] = !0;
731
731
  var i = "";
732
- s && s._owner && s._owner !== l3.current && (i = " It was passed a child from " + T(s._owner.type) + "."), k(s), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), k(null);
732
+ s && s._owner && s._owner !== i3.current && (i = " It was passed a child from " + T(s._owner.type) + "."), k(s), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), k(null);
733
733
  }
734
734
  }
735
735
  function P3(s, o) {
736
736
  {
737
737
  if (typeof s != "object")
738
738
  return;
739
- if (o3(s))
739
+ if (n3(s))
740
740
  for (var n = 0; n < s.length; n++) {
741
741
  var i = s[n];
742
- a3(i) && T3(i, o);
742
+ v3(i) && T3(i, o);
743
743
  }
744
- else if (a3(s))
744
+ else if (v3(s))
745
745
  s._store && (s._store.validated = !0);
746
746
  else if (s) {
747
- var h = O(s);
748
- if (typeof h == "function" && h !== s.entries)
749
- for (var w = h.call(s), v; !(v = w.next()).done; )
750
- a3(v.value) && T3(v.value, o);
747
+ var u = O(s);
748
+ if (typeof u == "function" && u !== s.entries)
749
+ for (var w = u.call(s), h; !(h = w.next()).done; )
750
+ v3(h.value) && T3(h.value, o);
751
751
  }
752
752
  }
753
753
  }
754
- function b1(s) {
754
+ function y1(s) {
755
755
  {
756
756
  var o = s.type;
757
757
  if (o == null || typeof o == "string")
@@ -767,16 +767,16 @@ Check the top-level render call using <` + n + ">.");
767
767
  return;
768
768
  if (n) {
769
769
  var i = T(o);
770
- h1(n, s.props, "prop", i, s);
771
- } else if (o.PropTypes !== void 0 && !i3) {
772
- i3 = !0;
773
- var h = T(o);
774
- I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
770
+ d1(n, s.props, "prop", i, s);
771
+ } else if (o.PropTypes !== void 0 && !a3) {
772
+ a3 = !0;
773
+ var u = T(o);
774
+ I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
775
775
  }
776
776
  typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
777
777
  }
778
778
  }
779
- function y1(s) {
779
+ function I1(s) {
780
780
  {
781
781
  for (var o = Object.keys(s.props), n = 0; n < o.length; n++) {
782
782
  var i = o[n];
@@ -788,47 +788,47 @@ Check the top-level render call using <` + n + ">.");
788
788
  s.ref !== null && (k(s), I("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
789
789
  }
790
790
  }
791
- function D3(s, o, n, i, h, w) {
791
+ function D3(s, o, n, i, u, w) {
792
792
  {
793
- var v = t1(s);
794
- if (!v) {
795
- var a = "";
796
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
797
- var R = C1(h);
798
- R ? a += R : a += L3();
799
- var Z;
800
- s === null ? Z = "null" : o3(s) ? Z = "array" : s !== void 0 && s.$$typeof === r ? (Z = "<" + (T(s.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof s, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, a);
801
- }
802
- var C = j1(s, o, n, h, w);
793
+ var h = o1(s);
794
+ if (!h) {
795
+ var v = "";
796
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
797
+ var R = S1(u);
798
+ R ? v += R : v += A3();
799
+ var m;
800
+ s === null ? m = "null" : n3(s) ? m = "array" : s !== void 0 && s.$$typeof === r ? (m = "<" + (T(s.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : m = typeof s, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, v);
801
+ }
802
+ var C = C1(s, o, n, u, w);
803
803
  if (C == null)
804
804
  return C;
805
- if (v) {
806
- var L = o.children;
807
- if (L !== void 0)
805
+ if (h) {
806
+ var A = o.children;
807
+ if (A !== void 0)
808
808
  if (i)
809
- if (o3(L)) {
810
- for (var $ = 0; $ < L.length; $++)
811
- P3(L[$], s);
812
- Object.freeze && Object.freeze(L);
809
+ if (n3(A)) {
810
+ for (var $ = 0; $ < A.length; $++)
811
+ P3(A[$], s);
812
+ Object.freeze && Object.freeze(A);
813
813
  } else
814
814
  I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
815
815
  else
816
- P3(L, s);
816
+ P3(A, s);
817
817
  }
818
- return s === l ? y1(C) : b1(C), C;
818
+ return s === l ? I1(C) : y1(C), C;
819
819
  }
820
820
  }
821
- function I1(s, o, n) {
821
+ function R1(s, o, n) {
822
822
  return D3(s, o, n, !0);
823
823
  }
824
- function R1(s, o, n) {
824
+ function E1(s, o, n) {
825
825
  return D3(s, o, n, !1);
826
826
  }
827
- var E1 = R1, _1 = I1;
828
- H.Fragment = l, H.jsx = E1, H.jsxs = _1;
827
+ var _1 = E1, B1 = R1;
828
+ H.Fragment = l, H.jsx = _1, H.jsxs = B1;
829
829
  }()), H;
830
830
  }
831
- var q = {};
831
+ var G = {};
832
832
  /**
833
833
  * @license React
834
834
  * react-jsx-runtime.production.min.js
@@ -839,30 +839,30 @@ var q = {};
839
839
  * LICENSE file in the root directory of this source tree.
840
840
  */
841
841
  var $3;
842
- function i2() {
842
+ function v2() {
843
843
  if ($3)
844
- return q;
844
+ return G;
845
845
  $3 = 1;
846
- var c = H3, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, g = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
846
+ var c = H3, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Z = { key: !0, ref: !0, __self: !0, __source: !0 };
847
847
  function S(b, x, E) {
848
848
  var j, y = {}, _ = null, B = null;
849
849
  E !== void 0 && (_ = "" + E), x.key !== void 0 && (_ = "" + x.key), x.ref !== void 0 && (B = x.ref);
850
850
  for (j in x)
851
- l.call(x, j) && !m.hasOwnProperty(j) && (y[j] = x[j]);
851
+ l.call(x, j) && !Z.hasOwnProperty(j) && (y[j] = x[j]);
852
852
  if (b && b.defaultProps)
853
853
  for (j in x = b.defaultProps, x)
854
854
  y[j] === void 0 && (y[j] = x[j]);
855
- return { $$typeof: r, type: b, key: _, ref: B, props: y, _owner: g.current };
855
+ return { $$typeof: r, type: b, key: _, ref: B, props: y, _owner: a.current };
856
856
  }
857
- return q.Fragment = t, q.jsx = S, q.jsxs = S, q;
857
+ return G.Fragment = t, G.jsx = S, G.jsxs = S, G;
858
858
  }
859
- process.env.NODE_ENV === "production" ? d3.exports = i2() : d3.exports = l2();
860
- var e = d3.exports;
861
- const a2 = () => /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "disconnected-message", children: [
859
+ process.env.NODE_ENV === "production" ? u3.exports = v2() : u3.exports = a2();
860
+ var e = u3.exports;
861
+ const h2 = () => /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "disconnected-message", children: [
862
862
  /* @__PURE__ */ e.jsx("h1", { children: "Disconnected" }),
863
863
  /* @__PURE__ */ e.jsx("p", { children: "Reconnecting..." })
864
864
  ] }) });
865
- class v2 {
865
+ class d2 {
866
866
  constructor() {
867
867
  d(this, "uuid", "current-uuid");
868
868
  d(this, "roomKey", "current-room-key");
@@ -870,23 +870,22 @@ class v2 {
870
870
  d(this, "expiry", "current-uuid-expires");
871
871
  }
872
872
  }
873
- const F3 = new v2();
874
- function h2(c) {
873
+ const F3 = new d2();
874
+ function u2(c) {
875
875
  return sessionStorage.getItem(c) || "";
876
876
  }
877
- function d2(c, r) {
877
+ function g2(c, r) {
878
878
  sessionStorage.setItem(c, r);
879
879
  }
880
- const X3 = V1({
881
- sendMessage: () => null
882
- });
883
- function u3() {
884
- return k1(X3);
880
+ function c3() {
881
+ return F1(Q3);
885
882
  }
886
- const u2 = ({ children: c }) => {
887
- const [r, t] = r3(), l = c2(), g = s2(), m = t2(), S = n2(), b = e2(), x = $1(null), [E, j] = r3(), y = V3(
883
+ const Q3 = $1({
884
+ sendMessage: () => null
885
+ }), w2 = ({ children: c }) => {
886
+ const [r, t] = r3(), l = t2(), a = o2(), Z = n2(), S = i2(), b = s2(), x = W1(null), [E, j] = r3(), y = V3(
888
887
  async (B) => {
889
- await h3.get(`${B}/ui/joinroom?token=${r}`).then((M) => {
888
+ await d3.get(`${B}/ui/joinroom?token=${r}`).then((M) => {
890
889
  M.status === 200 && M.data && D.dispatch(F.setRoomData(M.data));
891
890
  }).catch((M) => {
892
891
  console.log(M);
@@ -895,22 +894,22 @@ const u2 = ({ children: c }) => {
895
894
  [r]
896
895
  ), _ = V3(
897
896
  (B, M) => {
898
- x.current && l && x.current.send(JSON.stringify({ type: B, clientId: m, content: M }));
897
+ x.current && l && x.current.send(JSON.stringify({ type: B, clientId: Z, content: M }));
899
898
  },
900
- [l, m]
899
+ [l, Z]
901
900
  );
902
- return Y(() => {
901
+ return K(() => {
903
902
  let M = new URLSearchParams(window.location.search).get("token");
904
- M ? (console.log("saving token: ", M), d2(F3.uuid, M)) : (M = h2(F3.uuid), console.log("loading token: ", M)), t(M), S();
905
- }, []), Y(() => {
903
+ M ? (console.log("saving token: ", M), g2(F3.uuid, M)) : (M = u2(F3.uuid), console.log("loading token: ", M)), t(M), S();
904
+ }, []), K(() => {
906
905
  if (!(!b.apiPath || E || !r)) {
907
906
  if (y(b.apiPath), !x.current) {
908
- const M = `${b.apiPath.replace("http", "ws")}/ui/join/${r}`, A = new WebSocket(M);
909
- x.current = A, A.onopen = () => {
907
+ const M = `${b.apiPath.replace("http", "ws")}/ui/join/${r}`, L = new WebSocket(M);
908
+ x.current = L, L.onopen = () => {
910
909
  console.log("connected"), D.dispatch(F.setWebsocketIsConnected(!0));
911
- }, A.onerror = (O) => {
910
+ }, L.onerror = (O) => {
912
911
  console.log(O);
913
- }, A.onclose = () => {
912
+ }, L.onclose = () => {
914
913
  if (console.log("disconnected"), x.current)
915
914
  console.log("WebSocket closed by server.");
916
915
  else {
@@ -918,7 +917,7 @@ const u2 = ({ children: c }) => {
918
917
  return;
919
918
  }
920
919
  E || (D.dispatch(F.setWebsocketIsConnected(!1)), j(!0), setTimeout(() => j(void 0), 5e3));
921
- }, A.onmessage = (O) => {
920
+ }, L.onmessage = (O) => {
922
921
  try {
923
922
  const p = JSON.parse(O.data);
924
923
  if (console.log(p), p.type.startsWith("/system/"))
@@ -937,7 +936,7 @@ const u2 = ({ children: c }) => {
937
936
  break;
938
937
  }
939
938
  else
940
- p.type.startsWith("/room/") ? D.dispatch(K1.setRoomState(p)) : p.type.startsWith("/device/") && D.dispatch(q1.setDeviceState(p));
939
+ p.type.startsWith("/room/") ? D.dispatch(J1.setRoomState(p)) : p.type.startsWith("/device/") && D.dispatch(K1.setDeviceState(p));
941
940
  } catch (p) {
942
941
  console.log(p);
943
942
  }
@@ -947,29 +946,32 @@ const u2 = ({ children: c }) => {
947
946
  x.current && x.current.close(), x.current = null;
948
947
  };
949
948
  }
950
- }, [b.apiPath, y, r, E]), Y(() => {
951
- g && _(`/room/${g}/status`, null);
952
- }, [g, _]), /* @__PURE__ */ e.jsx(X3.Provider, { value: { sendMessage: _ }, children: l ? c : /* @__PURE__ */ e.jsx(a2, {}) });
953
- }, B8 = ({ children: c }) => /* @__PURE__ */ e.jsx(O1, { store: D, children: /* @__PURE__ */ e.jsx(u2, { children: c }) }), L8 = ({ config: c }) => {
954
- const { sendMessage: r } = u3();
955
- Y(() => {
949
+ }, [b.apiPath, y, r, E]), K(() => {
950
+ a && _(`/room/${a}/status`, null);
951
+ }, [a, _]), /* @__PURE__ */ e.jsx(Q3.Provider, { value: { sendMessage: _ }, children: l ? c : /* @__PURE__ */ e.jsx(h2, {}) });
952
+ }, T8 = ({ children: c }) => /* @__PURE__ */ e.jsx(k1, { store: D, children: /* @__PURE__ */ e.jsx(w2, { children: c }) }), P8 = ({ config: c }) => {
953
+ const { sendMessage: r } = c3();
954
+ K(() => {
955
+ var l;
956
956
  if (!c)
957
957
  return;
958
958
  const t = [];
959
- c.displayKeys.forEach((l) => {
960
- t.push(l);
961
- }), c.environmentalDevices.forEach((l) => {
962
- t.push(l);
959
+ c.displayKeys.forEach((a) => {
960
+ t.push(a);
961
+ }), (l = c.touchpanelKeys) == null || l.forEach((a) => {
962
+ t.push(a);
963
+ }), c.environmentalDevices.forEach((a) => {
964
+ t.push(a);
963
965
  }), c.audioCodecKey && t.push(c.audioCodecKey), c.videoCodecKey && t.push(c.videoCodecKey);
964
- for (const l of Object.values(c.sourceList))
965
- t.push(l.sourceKey);
966
- t.forEach((l) => {
967
- r(`/device/${l}/fullStatus`, { deviceKey: l });
966
+ for (const a of Object.values(c.sourceList))
967
+ t.push(a.sourceKey);
968
+ t.forEach((a) => {
969
+ r(`/device/${a}/fullStatus`, { deviceKey: a });
968
970
  });
969
971
  }, [c, r]);
970
972
  };
971
- function g2(c) {
972
- const { sendMessage: r } = u3();
973
+ function x2(c) {
974
+ const { sendMessage: r } = c3();
973
975
  return { powerOn: () => {
974
976
  r(`/device/${c}/powerOn`, null);
975
977
  }, powerOff: () => {
@@ -978,27 +980,50 @@ function g2(c) {
978
980
  r(`/device/${c}/powerToggle`, null);
979
981
  } };
980
982
  }
981
- function A8(c) {
982
- const { sendMessage: r } = u3();
983
+ function D8(c) {
984
+ const { sendMessage: r } = c3();
983
985
  return { runDirectRoute: (l) => {
984
986
  r(`/room/${c}/directRoute`, l);
985
987
  } };
986
988
  }
987
- function T8(c) {
988
- const r = r2(c), t = g2(c);
989
- return { state: r, powerControl: t };
989
+ function O8(c) {
990
+ const r = X3(c), { sendMessage: t } = c3();
991
+ return r ? {
992
+ touchpanelState: r,
993
+ appControl: { hideApp: () => {
994
+ t(`/device/${c}/hideApp`, null);
995
+ }, openApp: () => {
996
+ t(`/device/${c}/openApp`, null);
997
+ }, closeApp: () => {
998
+ t(`/device/${c}/closeApp`, null);
999
+ } },
1000
+ zoomControl: { endCall: () => {
1001
+ t(`/device/${c}/endCall`, null);
1002
+ } }
1003
+ } : void 0;
1004
+ }
1005
+ function V8(c) {
1006
+ const r = X3(c), t = x2(c);
1007
+ if (!r)
1008
+ return;
1009
+ const l = (r.powerState || r.isWarming) && !r.isCooling, a = (!r.powerState || r.isCooling) && !r.isWarming;
1010
+ return {
1011
+ displayState: r,
1012
+ powerControl: t,
1013
+ powerFb: { powerOnFb: l, powerOffFb: a }
1014
+ };
990
1015
  }
991
- const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger rounded d-flex align-items-center", children: /* @__PURE__ */ e.jsx("span", { className: "fs-5 text-white", children: "We are sorry. Something went wrong." }) }), w2 = "_iconbtn_16qss_1", x2 = "_iconbtnvert_16qss_7", f2 = "_iconsm_16qss_18", v3 = {
992
- iconbtn: w2,
993
- iconbtnvert: x2,
994
- iconsm: f2
995
- }, p2 = ({
1016
+ const k8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger rounded d-flex align-items-center", children: /* @__PURE__ */ e.jsx("span", { className: "fs-5 text-white", children: "We are sorry. Something went wrong." }) }), f2 = "_iconbtn_16qss_1", p2 = "_iconbtnvert_16qss_7", M2 = "_iconsm_16qss_18", h3 = {
1017
+ iconbtn: f2,
1018
+ iconbtnvert: p2,
1019
+ iconsm: M2
1020
+ }, Z2 = ({
996
1021
  multiIcon: c,
997
1022
  otherContent: r = null,
998
1023
  vert: t = !1,
999
1024
  className: l,
1000
- iconClassName: g = "",
1001
- otherContentClassName: m = "",
1025
+ iconClassName: a = "",
1026
+ otherContentClassName: Z = "",
1002
1027
  disabled: S,
1003
1028
  feedback: b,
1004
1029
  feedbackClassName: x,
@@ -1007,12 +1032,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1007
1032
  onPointerLeave: y,
1008
1033
  ..._
1009
1034
  }) => {
1010
- const [B, M] = r3(!1), A = !S && b ? x : "", O = !S && (B || b);
1035
+ const [B, M] = r3(!1), L = !S && b ? x : "", O = !S && (B || b);
1011
1036
  return /* @__PURE__ */ e.jsxs(
1012
1037
  "button",
1013
1038
  {
1014
1039
  type: "button",
1015
- className: `${v3.iconbtn} ${t ? v3.iconbtnvert : ""} ${l} ${A}`,
1040
+ className: `${h3.iconbtn} ${t ? h3.iconbtnvert : ""} ${l} ${L}`,
1016
1041
  ..._,
1017
1042
  disabled: S,
1018
1043
  onPointerDown: (p) => {
@@ -1028,27 +1053,27 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1028
1053
  /* @__PURE__ */ e.jsx(
1029
1054
  c,
1030
1055
  {
1031
- className: `${g || v3.iconsm}`,
1056
+ className: `${a || h3.iconsm}`,
1032
1057
  active: O,
1033
1058
  disabled: S
1034
1059
  }
1035
1060
  ),
1036
- /* @__PURE__ */ e.jsx("div", { className: m, children: r })
1061
+ /* @__PURE__ */ e.jsx("div", { className: Z, children: r })
1037
1062
  ]
1038
1063
  }
1039
1064
  );
1040
- }, u = ({
1065
+ }, g = ({
1041
1066
  ActiveImage: c,
1042
1067
  DisabledImage: r,
1043
1068
  EnabledImage: t,
1044
1069
  active: l,
1045
- disabled: g
1046
- }) => g ? r : l ? c : t, M2 = ({
1070
+ disabled: a
1071
+ }) => a ? r : l ? c : t, m2 = ({
1047
1072
  active: c,
1048
1073
  className: r = "",
1049
1074
  disabled: t
1050
1075
  }) => /* @__PURE__ */ e.jsx(
1051
- u,
1076
+ g,
1052
1077
  {
1053
1078
  ActiveImage: (
1054
1079
  /* icon-mic-active.svg */
@@ -1092,12 +1117,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1092
1117
  active: c,
1093
1118
  disabled: t
1094
1119
  }
1095
- ), Z2 = ({
1120
+ ), j2 = ({
1096
1121
  active: c,
1097
1122
  className: r = "",
1098
1123
  disabled: t
1099
1124
  }) => /* @__PURE__ */ e.jsx(
1100
- u,
1125
+ g,
1101
1126
  {
1102
1127
  ActiveImage: /* @__PURE__ */ e.jsx(
1103
1128
  "svg",
@@ -1144,12 +1169,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1144
1169
  active: c,
1145
1170
  disabled: t
1146
1171
  }
1147
- ), m2 = ({
1172
+ ), C2 = ({
1148
1173
  active: c,
1149
1174
  className: r = "",
1150
1175
  disabled: t
1151
1176
  }) => /* @__PURE__ */ e.jsx(
1152
- u,
1177
+ g,
1153
1178
  {
1154
1179
  ActiveImage: (
1155
1180
  /* icon-ban-active.svg */
@@ -1193,12 +1218,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1193
1218
  active: c,
1194
1219
  disabled: t
1195
1220
  }
1196
- ), j2 = ({
1221
+ ), S2 = ({
1197
1222
  active: c,
1198
1223
  className: r = "",
1199
1224
  disabled: t
1200
1225
  }) => /* @__PURE__ */ e.jsx(
1201
- u,
1226
+ g,
1202
1227
  {
1203
1228
  ActiveImage: /* @__PURE__ */ e.jsx(
1204
1229
  "svg",
@@ -1233,12 +1258,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1233
1258
  active: c,
1234
1259
  disabled: t
1235
1260
  }
1236
- ), C2 = ({
1261
+ ), b2 = ({
1237
1262
  active: c,
1238
1263
  className: r = "",
1239
1264
  disabled: t
1240
1265
  }) => /* @__PURE__ */ e.jsx(
1241
- u,
1266
+ g,
1242
1267
  {
1243
1268
  ActiveImage: (
1244
1269
  /* icon-check-active.svg */
@@ -1282,12 +1307,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1282
1307
  active: c,
1283
1308
  disabled: t
1284
1309
  }
1285
- ), S2 = ({
1310
+ ), y2 = ({
1286
1311
  active: c,
1287
1312
  className: r = "",
1288
1313
  disabled: t
1289
1314
  }) => /* @__PURE__ */ e.jsx(
1290
- u,
1315
+ g,
1291
1316
  {
1292
1317
  ActiveImage: (
1293
1318
  /* icon-down-active.svg */
@@ -1331,12 +1356,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1331
1356
  active: c,
1332
1357
  disabled: t
1333
1358
  }
1334
- ), b2 = ({
1359
+ ), I2 = ({
1335
1360
  active: c,
1336
1361
  className: r = "",
1337
1362
  disabled: t
1338
1363
  }) => /* @__PURE__ */ e.jsx(
1339
- u,
1364
+ g,
1340
1365
  {
1341
1366
  ActiveImage: (
1342
1367
  /* icon-elipses-active.svg */
@@ -1380,12 +1405,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1380
1405
  active: c,
1381
1406
  disabled: t
1382
1407
  }
1383
- ), y2 = ({
1408
+ ), R2 = ({
1384
1409
  active: c,
1385
1410
  className: r = "",
1386
1411
  disabled: t
1387
1412
  }) => /* @__PURE__ */ e.jsx(
1388
- u,
1413
+ g,
1389
1414
  {
1390
1415
  ActiveImage: (
1391
1416
  /* icon-flag-active.svg */
@@ -1429,12 +1454,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1429
1454
  active: c,
1430
1455
  disabled: t
1431
1456
  }
1432
- ), I2 = ({
1457
+ ), E2 = ({
1433
1458
  active: c,
1434
1459
  className: r = "",
1435
1460
  disabled: t
1436
1461
  }) => /* @__PURE__ */ e.jsx(
1437
- u,
1462
+ g,
1438
1463
  {
1439
1464
  ActiveImage: (
1440
1465
  /* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
@@ -1478,12 +1503,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1478
1503
  active: c,
1479
1504
  disabled: t
1480
1505
  }
1481
- ), R2 = ({
1506
+ ), _2 = ({
1482
1507
  active: c,
1483
1508
  className: r = "",
1484
1509
  disabled: t
1485
1510
  }) => /* @__PURE__ */ e.jsx(
1486
- u,
1511
+ g,
1487
1512
  {
1488
1513
  ActiveImage: (
1489
1514
  /* icon-glass-active.svg */
@@ -1527,14 +1552,14 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1527
1552
  active: c,
1528
1553
  disabled: t
1529
1554
  }
1530
- ), E2 = ({
1555
+ ), B2 = ({
1531
1556
  active: c,
1532
1557
  // Just to shut up the linter on this template. Prefer deleting this lint rule
1533
1558
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1534
1559
  className: r = "",
1535
1560
  disabled: t
1536
1561
  }) => /* @__PURE__ */ e.jsx(
1537
- u,
1562
+ g,
1538
1563
  {
1539
1564
  ActiveImage: (
1540
1565
  /* icon-hdmi-active.svg */
@@ -1596,12 +1621,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1596
1621
  active: c,
1597
1622
  disabled: t
1598
1623
  }
1599
- ), _2 = ({
1624
+ ), A2 = ({
1600
1625
  active: c,
1601
1626
  className: r = "",
1602
1627
  disabled: t
1603
1628
  }) => /* @__PURE__ */ e.jsx(
1604
- u,
1629
+ g,
1605
1630
  {
1606
1631
  ActiveImage: (
1607
1632
  /* icon-laptop-active.svg */
@@ -1645,12 +1670,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1645
1670
  active: c,
1646
1671
  disabled: t
1647
1672
  }
1648
- ), B2 = ({
1673
+ ), L2 = ({
1649
1674
  active: c,
1650
1675
  className: r = "",
1651
1676
  disabled: t
1652
1677
  }) => /* @__PURE__ */ e.jsx(
1653
- u,
1678
+ g,
1654
1679
  {
1655
1680
  ActiveImage: (
1656
1681
  /* icon-left-active.svg */
@@ -1694,12 +1719,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1694
1719
  active: c,
1695
1720
  disabled: t
1696
1721
  }
1697
- ), L2 = ({
1722
+ ), T2 = ({
1698
1723
  active: c,
1699
1724
  className: r = "",
1700
1725
  disabled: t
1701
1726
  }) => /* @__PURE__ */ e.jsx(
1702
- u,
1727
+ g,
1703
1728
  {
1704
1729
  ActiveImage: (
1705
1730
  /* icon-light-active.svg */
@@ -1743,12 +1768,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1743
1768
  active: c,
1744
1769
  disabled: t
1745
1770
  }
1746
- ), A2 = ({
1771
+ ), P2 = ({
1747
1772
  active: c,
1748
1773
  className: r = "",
1749
1774
  disabled: t
1750
1775
  }) => /* @__PURE__ */ e.jsx(
1751
- u,
1776
+ g,
1752
1777
  {
1753
1778
  ActiveImage: (
1754
1779
  /* icon-moon-active.svg */
@@ -1792,12 +1817,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1792
1817
  active: c,
1793
1818
  disabled: t
1794
1819
  }
1795
- ), T2 = ({
1820
+ ), D2 = ({
1796
1821
  active: c,
1797
1822
  className: r = "",
1798
1823
  disabled: t
1799
1824
  }) => /* @__PURE__ */ e.jsx(
1800
- u,
1825
+ g,
1801
1826
  {
1802
1827
  ActiveImage: (
1803
1828
  /* icon-playstation-active.svg */
@@ -1814,12 +1839,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1814
1839
  active: c,
1815
1840
  disabled: t
1816
1841
  }
1817
- ), P2 = ({
1842
+ ), O2 = ({
1818
1843
  active: c,
1819
1844
  className: r = "",
1820
1845
  disabled: t
1821
1846
  }) => /* @__PURE__ */ e.jsx(
1822
- u,
1847
+ g,
1823
1848
  {
1824
1849
  ActiveImage: (
1825
1850
  /* icon-podium-active.svg */
@@ -1863,12 +1888,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1863
1888
  active: c,
1864
1889
  disabled: t
1865
1890
  }
1866
- ), D2 = ({
1891
+ ), V2 = ({
1867
1892
  active: c,
1868
1893
  className: r = "",
1869
1894
  disabled: t
1870
1895
  }) => /* @__PURE__ */ e.jsx(
1871
- u,
1896
+ g,
1872
1897
  {
1873
1898
  ActiveImage: (
1874
1899
  /* icon-power-active.svg */
@@ -1912,12 +1937,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1912
1937
  active: c,
1913
1938
  disabled: t
1914
1939
  }
1915
- ), O2 = ({
1940
+ ), k2 = ({
1916
1941
  active: c,
1917
1942
  className: r = "",
1918
1943
  disabled: t
1919
1944
  }) => /* @__PURE__ */ e.jsx(
1920
- u,
1945
+ g,
1921
1946
  {
1922
1947
  ActiveImage: (
1923
1948
  /* icon-privacy-active.svg */
@@ -1961,12 +1986,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
1961
1986
  active: c,
1962
1987
  disabled: t
1963
1988
  }
1964
- ), V2 = ({
1989
+ ), $2 = ({
1965
1990
  active: c,
1966
1991
  className: r = "",
1967
1992
  disabled: t
1968
1993
  }) => /* @__PURE__ */ e.jsx(
1969
- u,
1994
+ g,
1970
1995
  {
1971
1996
  ActiveImage: (
1972
1997
  /* icon-question-active.svg */
@@ -2010,12 +2035,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2010
2035
  active: c,
2011
2036
  disabled: t
2012
2037
  }
2013
- ), k2 = ({
2038
+ ), F2 = ({
2014
2039
  active: c,
2015
2040
  className: r = "",
2016
2041
  disabled: t
2017
2042
  }) => /* @__PURE__ */ e.jsx(
2018
- u,
2043
+ g,
2019
2044
  {
2020
2045
  ActiveImage: (
2021
2046
  /* icon-right-active.svg */
@@ -2059,12 +2084,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2059
2084
  active: c,
2060
2085
  disabled: t
2061
2086
  }
2062
- ), $2 = ({
2087
+ ), W2 = ({
2063
2088
  active: c,
2064
2089
  className: r = "",
2065
2090
  disabled: t
2066
2091
  }) => /* @__PURE__ */ e.jsx(
2067
- u,
2092
+ g,
2068
2093
  {
2069
2094
  ActiveImage: (
2070
2095
  /* icon-shade-active.svg */
@@ -2108,12 +2133,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2108
2133
  active: c,
2109
2134
  disabled: t
2110
2135
  }
2111
- ), F2 = ({
2136
+ ), U2 = ({
2112
2137
  active: c,
2113
2138
  className: r = "",
2114
2139
  disabled: t
2115
2140
  }) => /* @__PURE__ */ e.jsx(
2116
- u,
2141
+ g,
2117
2142
  {
2118
2143
  ActiveImage: (
2119
2144
  /* icon-sun-active.svg */
@@ -2157,12 +2182,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2157
2182
  active: c,
2158
2183
  disabled: t
2159
2184
  }
2160
- ), W2 = ({
2185
+ ), H2 = ({
2161
2186
  active: c,
2162
2187
  className: r = "",
2163
2188
  disabled: t
2164
2189
  }) => /* @__PURE__ */ e.jsx(
2165
- u,
2190
+ g,
2166
2191
  {
2167
2192
  ActiveImage: (
2168
2193
  /* icon-up-active.svg */
@@ -2206,12 +2231,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2206
2231
  active: c,
2207
2232
  disabled: t
2208
2233
  }
2209
- ), U2 = ({
2234
+ ), G2 = ({
2210
2235
  active: c,
2211
2236
  className: r = "",
2212
2237
  disabled: t
2213
2238
  }) => /* @__PURE__ */ e.jsx(
2214
- u,
2239
+ g,
2215
2240
  {
2216
2241
  ActiveImage: (
2217
2242
  /* icon-volDown-active.svg */
@@ -2255,12 +2280,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2255
2280
  active: c,
2256
2281
  disabled: t
2257
2282
  }
2258
- ), H2 = ({
2283
+ ), q2 = ({
2259
2284
  active: c,
2260
2285
  className: r = "",
2261
2286
  disabled: t
2262
2287
  }) => /* @__PURE__ */ e.jsx(
2263
- u,
2288
+ g,
2264
2289
  {
2265
2290
  ActiveImage: (
2266
2291
  /* icon-volMute-active.svg */
@@ -2304,12 +2329,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2304
2329
  active: c,
2305
2330
  disabled: t
2306
2331
  }
2307
- ), q2 = ({
2332
+ ), K2 = ({
2308
2333
  active: c,
2309
2334
  className: r = "",
2310
2335
  disabled: t
2311
2336
  }) => /* @__PURE__ */ e.jsx(
2312
- u,
2337
+ g,
2313
2338
  {
2314
2339
  ActiveImage: (
2315
2340
  /* icon-volUp-active.svg */
@@ -2353,12 +2378,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2353
2378
  active: c,
2354
2379
  disabled: t
2355
2380
  }
2356
- ), G2 = ({
2381
+ ), Y2 = ({
2357
2382
  active: c,
2358
2383
  className: r = "",
2359
2384
  disabled: t
2360
2385
  }) => /* @__PURE__ */ e.jsx(
2361
- u,
2386
+ g,
2362
2387
  {
2363
2388
  ActiveImage: (
2364
2389
  /* icon-wireless-active.svg */
@@ -2402,12 +2427,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2402
2427
  active: c,
2403
2428
  disabled: t
2404
2429
  }
2405
- ), Y2 = ({
2430
+ ), z2 = ({
2406
2431
  active: c,
2407
2432
  className: r = "",
2408
2433
  disabled: t
2409
2434
  }) => /* @__PURE__ */ e.jsx(
2410
- u,
2435
+ g,
2411
2436
  {
2412
2437
  ActiveImage: (
2413
2438
  /* icon-x-active.svg */
@@ -2451,12 +2476,12 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2451
2476
  active: c,
2452
2477
  disabled: t
2453
2478
  }
2454
- ), K2 = ({
2479
+ ), J2 = ({
2455
2480
  active: c,
2456
2481
  className: r = "",
2457
2482
  disabled: t
2458
2483
  }) => /* @__PURE__ */ e.jsx(
2459
- u,
2484
+ g,
2460
2485
  {
2461
2486
  ActiveImage: (
2462
2487
  /* icon-xbox-active.svg */
@@ -2500,84 +2525,84 @@ const P8 = () => /* @__PURE__ */ e.jsx("div", { className: "m-2 p-2 bg-danger ro
2500
2525
  active: c,
2501
2526
  disabled: t
2502
2527
  }
2503
- ), J2 = {
2504
- Alert: Z2,
2505
- Camera: j2,
2506
- DownArrow: S2,
2507
- Ban: m2,
2508
- Check: C2,
2509
- Elipses: b2,
2510
- Flag: y2,
2511
- Gear: I2,
2512
- Glass: R2,
2513
- Hdmi: E2,
2514
- Laptop: _2,
2515
- LeftArrow: B2,
2516
- Light: L2,
2517
- Mic: M2,
2518
- Moon: A2,
2519
- Playstation: T2,
2520
- Podium: P2,
2521
- Power: D2,
2522
- Privacy: O2,
2523
- Question: V2,
2524
- RightArrow: k2,
2525
- Shade: $2,
2526
- Sun: F2,
2527
- UpArrow: W2,
2528
- VolDown: U2,
2529
- VolMute: H2,
2530
- VolUp: q2,
2531
- Wireless: G2,
2532
- X: Y2,
2533
- Xbox: K2
2528
+ ), X2 = {
2529
+ Alert: j2,
2530
+ Camera: S2,
2531
+ DownArrow: y2,
2532
+ Ban: C2,
2533
+ Check: b2,
2534
+ Elipses: I2,
2535
+ Flag: R2,
2536
+ Gear: E2,
2537
+ Glass: _2,
2538
+ Hdmi: B2,
2539
+ Laptop: A2,
2540
+ LeftArrow: L2,
2541
+ Light: T2,
2542
+ Mic: m2,
2543
+ Moon: P2,
2544
+ Playstation: D2,
2545
+ Podium: O2,
2546
+ Power: V2,
2547
+ Privacy: k2,
2548
+ Question: $2,
2549
+ RightArrow: F2,
2550
+ Shade: W2,
2551
+ Sun: U2,
2552
+ UpArrow: H2,
2553
+ VolDown: G2,
2554
+ VolMute: q2,
2555
+ VolUp: K2,
2556
+ Wireless: Y2,
2557
+ X: z2,
2558
+ Xbox: J2
2534
2559
  };
2535
- function D8({
2560
+ function $8({
2536
2561
  name: c,
2537
2562
  ...r
2538
2563
  }) {
2539
- return /* @__PURE__ */ e.jsx(p2, { multiIcon: J2[c], ...r });
2564
+ return /* @__PURE__ */ e.jsx(Z2, { multiIcon: X2[c], ...r });
2540
2565
  }
2541
- const z2 = "_grid_1cmpp_1", X2 = "_header_1cmpp_11", Q2 = "_content_1cmpp_17", N2 = "_footer_1cmpp_23", e8 = "_volume_1cmpp_29", G = {
2542
- grid: z2,
2543
- header: X2,
2544
- content: Q2,
2545
- footer: N2,
2546
- volume: e8
2547
- }, O8 = ({ header: c, footer: r, content: t, volume: l, showVolume: g }) => /* @__PURE__ */ e.jsxs("div", { className: G.grid, children: [
2548
- /* @__PURE__ */ e.jsx("div", { className: G.header, children: c }),
2549
- /* @__PURE__ */ e.jsx("div", { className: G.content, children: t }),
2550
- g && /* @__PURE__ */ e.jsx("div", { className: G.volume, children: l }),
2551
- /* @__PURE__ */ e.jsx("div", { className: G.footer, children: r })
2552
- ] }), r8 = "_grid_11w5q_1", c8 = "_header_11w5q_11", s8 = "_content_11w5q_17", e3 = {
2553
- grid: r8,
2554
- header: c8,
2555
- content: s8,
2566
+ const Q2 = "_grid_1cmpp_1", N2 = "_header_1cmpp_11", e8 = "_content_1cmpp_17", r8 = "_footer_1cmpp_23", c8 = "_volume_1cmpp_29", q = {
2567
+ grid: Q2,
2568
+ header: N2,
2569
+ content: e8,
2570
+ footer: r8,
2571
+ volume: c8
2572
+ }, F8 = ({ header: c, footer: r, content: t, volume: l, showVolume: a }) => /* @__PURE__ */ e.jsxs("div", { className: q.grid, children: [
2573
+ /* @__PURE__ */ e.jsx("div", { className: q.header, children: c }),
2574
+ /* @__PURE__ */ e.jsx("div", { className: q.content, children: t }),
2575
+ a && /* @__PURE__ */ e.jsx("div", { className: q.volume, children: l }),
2576
+ /* @__PURE__ */ e.jsx("div", { className: q.footer, children: r })
2577
+ ] }), s8 = "_grid_11w5q_1", t8 = "_header_11w5q_11", o8 = "_content_11w5q_17", e3 = {
2578
+ grid: s8,
2579
+ header: t8,
2580
+ content: o8,
2556
2581
  "left-nav": "_left-nav_11w5q_23"
2557
- }, V8 = ({ className: c, header: r, content: t, leftNav: l }) => /* @__PURE__ */ e.jsxs("div", { className: `${c} ${e3.grid}`, children: [
2582
+ }, W8 = ({ className: c, header: r, content: t, leftNav: l }) => /* @__PURE__ */ e.jsxs("div", { className: `${c} ${e3.grid}`, children: [
2558
2583
  /* @__PURE__ */ e.jsx("div", { className: e3.header, children: r }),
2559
2584
  /* @__PURE__ */ e.jsx("div", { className: e3.leftNav, children: l }),
2560
2585
  /* @__PURE__ */ e.jsx("div", { className: e3.content, children: t })
2561
2586
  ] });
2562
- function k8() {
2587
+ function U8() {
2563
2588
  return console.log(location.pathname), location.pathname;
2564
2589
  }
2565
- var t8 = /* @__PURE__ */ ((c) => (c[c.NotSet = 0] = "NotSet", c[c.Sunday = 1] = "Sunday", c[c.Monday = 2] = "Monday", c[c.Tuesday = 4] = "Tuesday", c[c.Wednesday = 8] = "Wednesday", c[c.Thursday = 16] = "Thursday", c[c.Friday = 32] = "Friday", c[c.Saturday = 64] = "Saturday", c))(t8 || {});
2566
- class $8 {
2590
+ var n8 = /* @__PURE__ */ ((c) => (c[c.NotSet = 0] = "NotSet", c[c.Sunday = 1] = "Sunday", c[c.Monday = 2] = "Monday", c[c.Tuesday = 4] = "Tuesday", c[c.Wednesday = 8] = "Wednesday", c[c.Thursday = 16] = "Thursday", c[c.Friday = 32] = "Friday", c[c.Saturday = 64] = "Saturday", c))(n8 || {});
2591
+ class H8 {
2567
2592
  constructor(r, t) {
2568
2593
  d(this, "path");
2569
2594
  d(this, "handler");
2570
2595
  this.path = r, this.handler = t;
2571
2596
  }
2572
2597
  }
2573
- class F8 {
2598
+ class G8 {
2574
2599
  constructor() {
2575
2600
  d(this, "name", "");
2576
2601
  d(this, "iconUrl", "");
2577
2602
  d(this, "channel", "");
2578
2603
  }
2579
2604
  }
2580
- class W8 {
2605
+ class q8 {
2581
2606
  constructor() {
2582
2607
  d(this, "audioCodecKey");
2583
2608
  d(this, "defaultDisplayKey");
@@ -2594,24 +2619,26 @@ class W8 {
2594
2619
  d(this, "userCanChangeShareMode");
2595
2620
  d(this, "videoCodecIsZoomRoom");
2596
2621
  d(this, "videoCodecKey");
2622
+ d(this, "touchpanelKeys");
2623
+ d(this, "zoomRoomControllerKey");
2597
2624
  }
2598
2625
  }
2599
- class U8 {
2626
+ class K8 {
2600
2627
  constructor() {
2601
2628
  d(this, "deviceKey");
2602
2629
  d(this, "deviceType");
2603
2630
  }
2604
2631
  }
2605
- class H8 {
2632
+ class Y8 {
2606
2633
  constructor() {
2607
2634
  d(this, "currentShareText");
2608
2635
  d(this, "enabled");
2609
2636
  d(this, "isSharing");
2610
2637
  }
2611
2638
  }
2612
- const q8 = ({ className: c }) => {
2639
+ const z8 = ({ className: c }) => {
2613
2640
  const [r, t] = r3();
2614
- return Y(() => {
2641
+ return K(() => {
2615
2642
  setInterval(() => {
2616
2643
  const l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
2617
2644
  t(l);
@@ -2622,83 +2649,85 @@ const q8 = ({ className: c }) => {
2622
2649
  ] });
2623
2650
  };
2624
2651
  export {
2625
- q8 as Clock,
2626
- t8 as DaysOfWeek,
2627
- U8 as EnvironmentalDeviceConfiguration,
2628
- P8 as ErrorBox,
2629
- p2 as IconButton,
2630
- Z2 as IconMultiAlert,
2631
- m2 as IconMultiBan,
2632
- j2 as IconMultiCamera,
2633
- C2 as IconMultiCheck,
2634
- S2 as IconMultiDownArrow,
2635
- b2 as IconMultiElipses,
2636
- y2 as IconMultiFlag,
2637
- I2 as IconMultiGear,
2638
- R2 as IconMultiGlass,
2639
- E2 as IconMultiHdmi,
2640
- _2 as IconMultiLaptop,
2641
- B2 as IconMultiLeftArrow,
2642
- L2 as IconMultiLight,
2643
- A2 as IconMultiMoon,
2644
- T2 as IconMultiPlaystation,
2645
- P2 as IconMultiPodium,
2646
- D2 as IconMultiPower,
2647
- O2 as IconMultiPrivacy,
2648
- V2 as IconMultiQuestion,
2649
- k2 as IconMultiRightArrow,
2650
- $2 as IconMultiShade,
2651
- F2 as IconMultiSun,
2652
- W2 as IconMultiUpArrow,
2653
- U2 as IconMultiVolDown,
2654
- H2 as IconMultiVolMute,
2655
- q2 as IconMultiVolUp,
2656
- G2 as IconMultiWireless,
2657
- Y2 as IconMultiX,
2658
- K2 as IconMultiXbox,
2659
- O8 as MainLayout,
2660
- $8 as MessageHandler,
2661
- B8 as MobileControlProvider,
2662
- u as MultiStateIconContainer,
2663
- D8 as NamedIconButton,
2664
- F8 as PresetChannel,
2665
- W8 as RoomConfiguration,
2666
- H8 as ShareState,
2667
- V8 as TechLayout,
2668
- k8 as getBaseLocation,
2669
- h3 as httpClient,
2652
+ z8 as Clock,
2653
+ n8 as DaysOfWeek,
2654
+ K8 as EnvironmentalDeviceConfiguration,
2655
+ k8 as ErrorBox,
2656
+ Z2 as IconButton,
2657
+ j2 as IconMultiAlert,
2658
+ C2 as IconMultiBan,
2659
+ S2 as IconMultiCamera,
2660
+ b2 as IconMultiCheck,
2661
+ y2 as IconMultiDownArrow,
2662
+ I2 as IconMultiElipses,
2663
+ R2 as IconMultiFlag,
2664
+ E2 as IconMultiGear,
2665
+ _2 as IconMultiGlass,
2666
+ B2 as IconMultiHdmi,
2667
+ A2 as IconMultiLaptop,
2668
+ L2 as IconMultiLeftArrow,
2669
+ T2 as IconMultiLight,
2670
+ P2 as IconMultiMoon,
2671
+ D2 as IconMultiPlaystation,
2672
+ O2 as IconMultiPodium,
2673
+ V2 as IconMultiPower,
2674
+ k2 as IconMultiPrivacy,
2675
+ $2 as IconMultiQuestion,
2676
+ F2 as IconMultiRightArrow,
2677
+ W2 as IconMultiShade,
2678
+ U2 as IconMultiSun,
2679
+ H2 as IconMultiUpArrow,
2680
+ G2 as IconMultiVolDown,
2681
+ q2 as IconMultiVolMute,
2682
+ K2 as IconMultiVolUp,
2683
+ Y2 as IconMultiWireless,
2684
+ z2 as IconMultiX,
2685
+ J2 as IconMultiXbox,
2686
+ F8 as MainLayout,
2687
+ H8 as MessageHandler,
2688
+ T8 as MobileControlProvider,
2689
+ g as MultiStateIconContainer,
2690
+ $8 as NamedIconButton,
2691
+ G8 as PresetChannel,
2692
+ q8 as RoomConfiguration,
2693
+ Y8 as ShareState,
2694
+ W8 as TechLayout,
2695
+ U8 as getBaseLocation,
2696
+ d3 as httpClient,
2670
2697
  D as store,
2671
- v8 as uiActions,
2672
- N1 as uiReducer,
2673
- h8 as useApiPath,
2674
- e2 as useAppConfig,
2675
- o2 as useAppDispatch,
2676
- t2 as useClientId,
2677
- L8 as useGetAllDeviceStateFromRoomConfiguration,
2678
- d8 as useGetAllDevices,
2679
- E8 as useGetCurrentPopoverIdForGroup,
2680
- r2 as useGetDevice,
2681
- b8 as useGetRoomDisplays,
2682
- g2 as useIHasPowerControl,
2683
- A8 as useIRunDirectRouteAction,
2684
- n2 as useInitialize,
2685
- C8 as useRoomAdvancedSharingActive,
2686
- u8 as useRoomConfiguration,
2687
- p8 as useRoomDestinationKeys,
2688
- M8 as useRoomInCall,
2689
- m8 as useRoomIsCoolingDown,
2690
- j8 as useRoomIsOn,
2691
- Z8 as useRoomIsWarmingUp,
2692
- s2 as useRoomKey,
2693
- x8 as useRoomMasterVolume,
2694
- w8 as useRoomName,
2695
- S8 as useRoomShareState,
2696
- f8 as useRoomSourceList,
2697
- g8 as useRoomState,
2698
- I8 as useShowIncomingCallModal,
2699
- R8 as useShowModal,
2700
- _8 as useShowPopoverById,
2701
- y8 as useShowShutdownModal,
2702
- T8 as useTwoWayDisplayBase,
2703
- c2 as useWsIsConnected
2698
+ d8 as uiActions,
2699
+ r2 as uiReducer,
2700
+ u8 as useApiPath,
2701
+ s2 as useAppConfig,
2702
+ l2 as useAppDispatch,
2703
+ n2 as useClientId,
2704
+ P8 as useGetAllDeviceStateFromRoomConfiguration,
2705
+ g8 as useGetAllDevices,
2706
+ A8 as useGetCurrentPopoverIdForGroup,
2707
+ X3 as useGetDevice,
2708
+ I8 as useGetRoomDisplays,
2709
+ R8 as useGetZoomRoomControllerKey,
2710
+ x2 as useIHasPowerControl,
2711
+ D8 as useIRunDirectRouteAction,
2712
+ i2 as useInitialize,
2713
+ O8 as useMobileControlTouchpanelController,
2714
+ b8 as useRoomAdvancedSharingActive,
2715
+ w8 as useRoomConfiguration,
2716
+ Z8 as useRoomDestinationKeys,
2717
+ m8 as useRoomInCall,
2718
+ C8 as useRoomIsCoolingDown,
2719
+ S8 as useRoomIsOn,
2720
+ j8 as useRoomIsWarmingUp,
2721
+ o2 as useRoomKey,
2722
+ p8 as useRoomMasterVolume,
2723
+ f8 as useRoomName,
2724
+ y8 as useRoomShareState,
2725
+ M8 as useRoomSourceList,
2726
+ x8 as useRoomState,
2727
+ _8 as useShowIncomingCallModal,
2728
+ B8 as useShowModal,
2729
+ L8 as useShowPopoverById,
2730
+ E8 as useShowShutdownModal,
2731
+ V8 as useTwoWayDisplayBase,
2732
+ t2 as useWsIsConnected
2704
2733
  };