@pepperdash/mobile-control-react-app-core 1.21.0-feature-export-useCameraBase.3 → 1.21.0-feature-export-useCameraBase.5
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.
- package/dist/mobile-control-react-app-core.es.js +464 -459
- package/dist/mobile-control-react-app-core.umd.js +10 -10
- package/dist/shared/hooks/interfaces/useIRunDirectRouteAction.d.ts +1 -1
- package/dist/shared/hooks/interfaces/useIRunDirectRouteAction.d.ts.map +1 -1
- package/dist/store/rooms/rooms.hooks.d.ts +2 -2
- package/dist/store/rooms/rooms.hooks.d.ts.map +1 -1
- package/dist/store/rooms/rooms.selectors.d.ts +8 -8
- package/dist/types/state/index.d.ts +13 -0
- package/dist/types/state/index.d.ts.map +1 -1
- package/dist/utils/WebsocketContext.d.ts +1 -2
- package/dist/utils/WebsocketContext.d.ts.map +1 -1
- package/dist/utils/WebsocketProvider.d.ts.map +1 -1
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/useWebsocketContext.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var s2 = Object.defineProperty;
|
|
2
2
|
var o2 = (e, t, o) => t in e ? s2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
-
var
|
|
3
|
+
var G = (e, t, o) => o2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import n2, { AxiosError as c2 } from "axios";
|
|
5
5
|
import { useDispatch as r2, useSelector as l2, Provider as i2 } from "react-redux";
|
|
6
6
|
import { createSelector as w, createSlice as g1, combineReducers as a2, configureStore as u2 } from "@reduxjs/toolkit";
|
|
7
|
-
import w3, { createContext as d2, useState as
|
|
7
|
+
import w3, { createContext as d2, useState as H, useRef as v1, useCallback as a1, useEffect as n1, useContext as h2, useLayoutEffect as x3 } from "react";
|
|
8
8
|
import * as M3 from "lodash";
|
|
9
|
-
import { useNavigate as
|
|
9
|
+
import { useNavigate as v2, useRouteError as g2, isRouteErrorResponse as f2 } from "react-router-dom";
|
|
10
10
|
const p2 = r2.withTypes(), p = l2.withTypes(), j1 = (e) => e.appConfig, w2 = w(
|
|
11
11
|
j1,
|
|
12
12
|
(e) => e.config
|
|
@@ -19,14 +19,14 @@ const p2 = r2.withTypes(), p = l2.withTypes(), j1 = (e) => e.appConfig, w2 = w(
|
|
|
19
19
|
), m2 = w(
|
|
20
20
|
j1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), Z2 = () => p(w2), O6 = () => p(x2),
|
|
22
|
+
), Z2 = () => p(w2), O6 = () => p(x2), V6 = () => p(M2), k6 = () => p(m2), m3 = (e) => e.devices, Z3 = w(
|
|
23
23
|
m3,
|
|
24
24
|
(e) => e
|
|
25
25
|
), j2 = (e) => w(
|
|
26
26
|
m3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
),
|
|
29
|
-
function
|
|
28
|
+
), U6 = () => p(Z3);
|
|
29
|
+
function y(e) {
|
|
30
30
|
return p(j2(e));
|
|
31
31
|
}
|
|
32
32
|
const L = (e) => e.rooms, C2 = (e) => w(
|
|
@@ -53,13 +53,13 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
53
53
|
var o, c;
|
|
54
54
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
|
|
55
55
|
}
|
|
56
|
-
),
|
|
56
|
+
), P2 = (e) => w(
|
|
57
57
|
L,
|
|
58
58
|
(t) => {
|
|
59
59
|
var o, c;
|
|
60
60
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.audioControlPointList : void 0;
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), T2 = (e) => w(
|
|
63
63
|
L,
|
|
64
64
|
(t) => {
|
|
65
65
|
var o, c;
|
|
@@ -77,7 +77,7 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
77
77
|
var o, c;
|
|
78
78
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.environmentalDevices : void 0;
|
|
79
79
|
}
|
|
80
|
-
),
|
|
80
|
+
), D2 = (e) => w(
|
|
81
81
|
L,
|
|
82
82
|
(t) => {
|
|
83
83
|
var o, c, r, i, d, a, g, x;
|
|
@@ -95,37 +95,37 @@ const L = (e) => e.rooms, C2 = (e) => w(
|
|
|
95
95
|
var o;
|
|
96
96
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isInCall : void 0;
|
|
97
97
|
}
|
|
98
|
-
),
|
|
98
|
+
), B2 = (e) => w(
|
|
99
99
|
L,
|
|
100
100
|
(t) => {
|
|
101
101
|
var o;
|
|
102
102
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isWarmingUp : void 0;
|
|
103
103
|
}
|
|
104
|
-
),
|
|
104
|
+
), O2 = (e) => w(
|
|
105
105
|
L,
|
|
106
106
|
(t) => {
|
|
107
107
|
var o;
|
|
108
108
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isCoolingDown : void 0;
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), V2 = (e) => w(
|
|
111
111
|
L,
|
|
112
112
|
(t) => {
|
|
113
113
|
var o;
|
|
114
114
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isOn : void 0;
|
|
115
115
|
}
|
|
116
|
-
),
|
|
116
|
+
), k2 = (e) => w(
|
|
117
117
|
L,
|
|
118
118
|
(t) => {
|
|
119
119
|
var o;
|
|
120
120
|
return t[e] ? (o = t[e]) == null ? void 0 : o.advancedSharingActive : void 0;
|
|
121
121
|
}
|
|
122
|
-
),
|
|
122
|
+
), U2 = (e) => w(
|
|
123
123
|
L,
|
|
124
124
|
(t) => {
|
|
125
125
|
var o;
|
|
126
126
|
return t[e] ? (o = t[e]) == null ? void 0 : o.share : void 0;
|
|
127
127
|
}
|
|
128
|
-
),
|
|
128
|
+
), W2 = (e) => w(
|
|
129
129
|
L,
|
|
130
130
|
(t) => {
|
|
131
131
|
var o, c;
|
|
@@ -151,17 +151,17 @@ function W6(e) {
|
|
|
151
151
|
C2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function F6() {
|
|
155
155
|
return p(S2);
|
|
156
156
|
}
|
|
157
157
|
function C1(e) {
|
|
158
158
|
return p(b2(e));
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const H6 = C1, K6 = (e) => p(
|
|
161
161
|
I2(e)
|
|
162
162
|
), H2 = (e, t) => p(
|
|
163
163
|
R2(e, t)
|
|
164
|
-
), K2 = (e) => p(y2(e)) || void 0,
|
|
164
|
+
), K2 = (e) => p(y2(e)) || void 0, G6 = (e) => p(E2(e)), q6 = (e) => p(P2(e)), Y6 = (e) => p(T2(e)), z6 = (e) => p(_2(e)), J6 = (e) => p(L2(e)), X6 = (e) => p(D2(e)), Q6 = (e) => p($2(e)), N6 = (e) => p(A2(e)), ee = (e) => p(B2(e)), te = (e) => p(O2(e)), se = (e) => p(V2(e)), oe = (e) => p(k2(e)), ne = (e) => p(U2(e)), ce = (e) => p((t) => F2(t, e)), re = (e) => p(W2(e)), J = (e) => e.runtimeConfig, G2 = w(
|
|
165
165
|
J,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
167
|
), q2 = w(
|
|
@@ -191,7 +191,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
191
191
|
), e8 = w(
|
|
192
192
|
J,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
), j3 = () => p(G2), t8 = () => p(q2), s8 = () => p(Y2), o8 = () => p(z2), n8 = () => p(J2), c8 = () => p(X2),
|
|
194
|
+
), j3 = () => p(G2), t8 = () => p(q2), s8 = () => p(Y2), o8 = () => p(z2), n8 = () => p(J2), c8 = () => p(X2), le = () => p(Q2), ie = () => p(N2), ae = () => p(e8), c1 = (e) => e.ui, U1 = (e) => w(
|
|
195
195
|
c1,
|
|
196
196
|
(t) => t.modalVisibility[e]
|
|
197
197
|
), r8 = (e) => w(
|
|
@@ -216,7 +216,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
216
216
|
), u8 = w(
|
|
217
217
|
c1,
|
|
218
218
|
(e) => e.theme
|
|
219
|
-
),
|
|
219
|
+
), ue = () => p(U1("showShutdownModal")), de = () => p(U1("showIncomingCallModal")), he = (e) => p(U1(e)), ve = (e) => p(r8(e)), ge = (e, t) => p(l8(e, t)), d8 = () => p(i8), h8 = () => p(a8), fe = () => p(u8), v8 = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -226,7 +226,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
226
226
|
popoverVisibility: {}
|
|
227
227
|
}, C3 = g1({
|
|
228
228
|
name: "ui",
|
|
229
|
-
initialState:
|
|
229
|
+
initialState: v8,
|
|
230
230
|
reducers: {
|
|
231
231
|
clearAllModals(e) {
|
|
232
232
|
Object.entries(e.modalVisibility).forEach(([t]) => {
|
|
@@ -257,7 +257,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
257
257
|
e.theme = t.payload;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), q = C3.actions, g8 = C3.reducer, f8 = {
|
|
261
261
|
config: {
|
|
262
262
|
enableDev: !1,
|
|
263
263
|
apiPath: "",
|
|
@@ -275,7 +275,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
275
275
|
e.config = t.payload;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}), p8 = S3.actions, w8 = S3.reducer, d3 = {},
|
|
278
|
+
}), p8 = S3.actions, w8 = S3.reducer, d3 = {}, B1 = g1({
|
|
279
279
|
name: "devices",
|
|
280
280
|
initialState: d3,
|
|
281
281
|
reducers: {
|
|
@@ -289,12 +289,12 @@ const F6 = C1, H6 = (e) => p(
|
|
|
289
289
|
return d3;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}),
|
|
293
|
-
setDeviceState:
|
|
294
|
-
clearDevices:
|
|
295
|
-
}, x8 =
|
|
292
|
+
}), N = {
|
|
293
|
+
setDeviceState: B1.actions.setDeviceState,
|
|
294
|
+
clearDevices: B1.actions.clearDevices
|
|
295
|
+
}, x8 = B1.reducer, h3 = {}, O1 = g1({
|
|
296
296
|
name: "rooms",
|
|
297
|
-
initialState:
|
|
297
|
+
initialState: h3,
|
|
298
298
|
reducers: {
|
|
299
299
|
setRoomState(e, t) {
|
|
300
300
|
const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
|
|
@@ -303,13 +303,13 @@ const F6 = C1, H6 = (e) => p(
|
|
|
303
303
|
e[c] = d;
|
|
304
304
|
},
|
|
305
305
|
clearRooms() {
|
|
306
|
-
return
|
|
306
|
+
return h3;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
}),
|
|
310
|
-
setRoomState:
|
|
311
|
-
clearRooms:
|
|
312
|
-
}, M8 =
|
|
309
|
+
}), e1 = {
|
|
310
|
+
setRoomState: O1.actions.setRoomState,
|
|
311
|
+
clearRooms: O1.actions.clearRooms
|
|
312
|
+
}, M8 = O1.reducer, m8 = {
|
|
313
313
|
apiVersion: "",
|
|
314
314
|
serverIsRunningOnProcessorHardware: !1,
|
|
315
315
|
websocket: {
|
|
@@ -368,7 +368,7 @@ const F6 = C1, H6 = (e) => p(
|
|
|
368
368
|
e.touchpanelKey = t.payload;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
}),
|
|
371
|
+
}), W = b3.actions, Z8 = b3.reducer, j8 = a2({
|
|
372
372
|
appConfig: w8,
|
|
373
373
|
runtimeConfig: Z8,
|
|
374
374
|
rooms: M8,
|
|
@@ -376,19 +376,19 @@ const F6 = C1, H6 = (e) => p(
|
|
|
376
376
|
ui: g8
|
|
377
377
|
}), m = u2({
|
|
378
378
|
reducer: j8
|
|
379
|
-
}),
|
|
379
|
+
}), V1 = n2.create();
|
|
380
380
|
function C8() {
|
|
381
381
|
const e = p2();
|
|
382
382
|
return async () => {
|
|
383
383
|
try {
|
|
384
384
|
const t = location.pathname.split("/").filter((r) => r.length > 0);
|
|
385
385
|
t.length >= 5 ? t.length = 5 : t.length = 2;
|
|
386
|
-
const o = `/${t.join("/")}`, c = await
|
|
386
|
+
const o = `/${t.join("/")}`, c = await V1.get("/_local-config/_config.local.json", { baseURL: o });
|
|
387
387
|
if (c.status == 200 && c.data) {
|
|
388
388
|
const r = c.data.apiPath;
|
|
389
389
|
e(p8.setAppConfig(c.data));
|
|
390
|
-
const i = await
|
|
391
|
-
i.status == 200 && i.data && e(
|
|
390
|
+
const i = await V1.get(`${r}/version`);
|
|
391
|
+
i.status == 200 && i.data && e(W.setRuntimeConfig(i.data));
|
|
392
392
|
}
|
|
393
393
|
} catch (t) {
|
|
394
394
|
console.error("Error getting config", t);
|
|
@@ -406,17 +406,17 @@ var m1 = { exports: {} }, u1 = {};
|
|
|
406
406
|
* This source code is licensed under the MIT license found in the
|
|
407
407
|
* LICENSE file in the root directory of this source tree.
|
|
408
408
|
*/
|
|
409
|
-
var
|
|
409
|
+
var v3;
|
|
410
410
|
function S8() {
|
|
411
|
-
if (
|
|
412
|
-
|
|
411
|
+
if (v3) return u1;
|
|
412
|
+
v3 = 1;
|
|
413
413
|
var e = w3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
414
414
|
function d(a, g, x) {
|
|
415
|
-
var
|
|
416
|
-
x !== void 0 && (
|
|
417
|
-
for (
|
|
418
|
-
if (a && a.defaultProps) for (
|
|
419
|
-
return { $$typeof: t, type: a, key:
|
|
415
|
+
var h, I = {}, D = null, F = null;
|
|
416
|
+
x !== void 0 && (D = "" + x), g.key !== void 0 && (D = "" + g.key), g.ref !== void 0 && (F = g.ref);
|
|
417
|
+
for (h in g) c.call(g, h) && !i.hasOwnProperty(h) && (I[h] = g[h]);
|
|
418
|
+
if (a && a.defaultProps) for (h in g = a.defaultProps, g) I[h] === void 0 && (I[h] = g[h]);
|
|
419
|
+
return { $$typeof: t, type: a, key: D, ref: F, props: I, _owner: r.current };
|
|
420
420
|
}
|
|
421
421
|
return u1.Fragment = o, u1.jsx = d, u1.jsxs = d, u1;
|
|
422
422
|
}
|
|
@@ -433,11 +433,11 @@ var d1 = {};
|
|
|
433
433
|
var g3;
|
|
434
434
|
function b8() {
|
|
435
435
|
return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
436
|
-
var e = w3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"),
|
|
436
|
+
var e = w3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), k = Symbol.iterator, X = "@@iterator";
|
|
437
437
|
function r1(n) {
|
|
438
438
|
if (n === null || typeof n != "object")
|
|
439
439
|
return null;
|
|
440
|
-
var l = k && n[k] || n[
|
|
440
|
+
var l = k && n[k] || n[X];
|
|
441
441
|
return typeof l == "function" ? l : null;
|
|
442
442
|
}
|
|
443
443
|
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -458,26 +458,26 @@ function b8() {
|
|
|
458
458
|
R.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, R);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var b1 = !1,
|
|
462
|
-
|
|
463
|
-
function
|
|
464
|
-
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || I1 || n === r || n === x || n ===
|
|
461
|
+
var b1 = !1, E = !1, C = !1, f1 = !1, I1 = !1, Y;
|
|
462
|
+
Y = Symbol.for("react.module.reference");
|
|
463
|
+
function B(n) {
|
|
464
|
+
return !!(typeof n == "string" || typeof n == "function" || n === c || n === i || I1 || n === r || n === x || n === h || f1 || n === F || b1 || E || C || typeof n == "object" && n !== null && (n.$$typeof === D || n.$$typeof === I || n.$$typeof === d || n.$$typeof === a || n.$$typeof === g || // This needs to include all possible module reference object
|
|
465
465
|
// types supported by any Flight configuration anywhere since
|
|
466
466
|
// we don't know which Flight build this will end up being used
|
|
467
467
|
// with.
|
|
468
|
-
n.$$typeof ===
|
|
468
|
+
n.$$typeof === Y || n.getModuleId !== void 0));
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function P(n, l, u) {
|
|
471
471
|
var f = n.displayName;
|
|
472
472
|
if (f)
|
|
473
473
|
return f;
|
|
474
474
|
var S = l.displayName || l.name || "";
|
|
475
475
|
return S !== "" ? u + "(" + S + ")" : u;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function t1(n) {
|
|
478
478
|
return n.displayName || "Context";
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function K(n) {
|
|
481
481
|
if (n == null)
|
|
482
482
|
return null;
|
|
483
483
|
if (typeof n.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
@@ -495,26 +495,26 @@ function b8() {
|
|
|
495
495
|
return "StrictMode";
|
|
496
496
|
case x:
|
|
497
497
|
return "Suspense";
|
|
498
|
-
case
|
|
498
|
+
case h:
|
|
499
499
|
return "SuspenseList";
|
|
500
500
|
}
|
|
501
501
|
if (typeof n == "object")
|
|
502
502
|
switch (n.$$typeof) {
|
|
503
503
|
case a:
|
|
504
504
|
var l = n;
|
|
505
|
-
return
|
|
505
|
+
return t1(l) + ".Consumer";
|
|
506
506
|
case d:
|
|
507
507
|
var u = n;
|
|
508
|
-
return
|
|
508
|
+
return t1(u._context) + ".Provider";
|
|
509
509
|
case g:
|
|
510
|
-
return
|
|
510
|
+
return P(n, n.render, "ForwardRef");
|
|
511
511
|
case I:
|
|
512
512
|
var f = n.displayName || null;
|
|
513
|
-
return f !== null ? f :
|
|
514
|
-
case
|
|
513
|
+
return f !== null ? f : K(n.type) || "Memo";
|
|
514
|
+
case D: {
|
|
515
515
|
var S = n, R = S._payload, Z = S._init;
|
|
516
516
|
try {
|
|
517
|
-
return
|
|
517
|
+
return K(Z(R));
|
|
518
518
|
} catch {
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
@@ -522,14 +522,14 @@ function b8() {
|
|
|
522
522
|
}
|
|
523
523
|
return null;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
525
|
+
var z = Object.assign, l1 = 0, W1, F1, H1, K1, G1, q1, Y1;
|
|
526
526
|
function z1() {
|
|
527
527
|
}
|
|
528
528
|
z1.__reactDisabledLog = !0;
|
|
529
529
|
function E3() {
|
|
530
530
|
{
|
|
531
531
|
if (l1 === 0) {
|
|
532
|
-
|
|
532
|
+
W1 = console.log, F1 = console.info, H1 = console.warn, K1 = console.error, G1 = console.group, q1 = console.groupCollapsed, Y1 = console.groupEnd;
|
|
533
533
|
var n = {
|
|
534
534
|
configurable: !0,
|
|
535
535
|
enumerable: !0,
|
|
@@ -549,7 +549,7 @@ function b8() {
|
|
|
549
549
|
l1++;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function P3() {
|
|
553
553
|
{
|
|
554
554
|
if (l1--, l1 === 0) {
|
|
555
555
|
var n = {
|
|
@@ -558,25 +558,25 @@ function b8() {
|
|
|
558
558
|
writable: !0
|
|
559
559
|
};
|
|
560
560
|
Object.defineProperties(console, {
|
|
561
|
-
log:
|
|
562
|
-
value:
|
|
561
|
+
log: z({}, n, {
|
|
562
|
+
value: W1
|
|
563
563
|
}),
|
|
564
|
-
info:
|
|
564
|
+
info: z({}, n, {
|
|
565
565
|
value: F1
|
|
566
566
|
}),
|
|
567
|
-
warn:
|
|
567
|
+
warn: z({}, n, {
|
|
568
568
|
value: H1
|
|
569
569
|
}),
|
|
570
|
-
error:
|
|
570
|
+
error: z({}, n, {
|
|
571
571
|
value: K1
|
|
572
572
|
}),
|
|
573
|
-
group:
|
|
573
|
+
group: z({}, n, {
|
|
574
574
|
value: G1
|
|
575
575
|
}),
|
|
576
|
-
groupCollapsed:
|
|
576
|
+
groupCollapsed: z({}, n, {
|
|
577
577
|
value: q1
|
|
578
578
|
}),
|
|
579
|
-
groupEnd:
|
|
579
|
+
groupEnd: z({}, n, {
|
|
580
580
|
value: Y1
|
|
581
581
|
})
|
|
582
582
|
});
|
|
@@ -600,8 +600,8 @@ function b8() {
|
|
|
600
600
|
}
|
|
601
601
|
var E1 = !1, w1;
|
|
602
602
|
{
|
|
603
|
-
var
|
|
604
|
-
w1 = new
|
|
603
|
+
var T3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
604
|
+
w1 = new T3();
|
|
605
605
|
}
|
|
606
606
|
function J1(n, l) {
|
|
607
607
|
if (!n || E1)
|
|
@@ -652,27 +652,27 @@ function b8() {
|
|
|
652
652
|
} catch (V) {
|
|
653
653
|
if (V && f && typeof V.stack == "string") {
|
|
654
654
|
for (var M = V.stack.split(`
|
|
655
|
-
`),
|
|
656
|
-
`),
|
|
655
|
+
`), O = f.stack.split(`
|
|
656
|
+
`), T = M.length - 1, _ = O.length - 1; T >= 1 && _ >= 0 && M[T] !== O[_]; )
|
|
657
657
|
_--;
|
|
658
|
-
for (;
|
|
659
|
-
if (M[
|
|
660
|
-
if (
|
|
658
|
+
for (; T >= 1 && _ >= 0; T--, _--)
|
|
659
|
+
if (M[T] !== O[_]) {
|
|
660
|
+
if (T !== 1 || _ !== 1)
|
|
661
661
|
do
|
|
662
|
-
if (
|
|
662
|
+
if (T--, _--, _ < 0 || M[T] !== O[_]) {
|
|
663
663
|
var U = `
|
|
664
|
-
` + M[
|
|
664
|
+
` + M[T].replace(" at new ", " at ");
|
|
665
665
|
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" && w1.set(n, U), U;
|
|
666
666
|
}
|
|
667
|
-
while (
|
|
667
|
+
while (T >= 1 && _ >= 0);
|
|
668
668
|
break;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
} finally {
|
|
672
|
-
E1 = !1, R1.current = R,
|
|
672
|
+
E1 = !1, R1.current = R, P3(), Error.prepareStackTrace = S;
|
|
673
673
|
}
|
|
674
|
-
var o1 = n ? n.displayName || n.name : "",
|
|
675
|
-
return typeof n == "function" && w1.set(n,
|
|
674
|
+
var o1 = n ? n.displayName || n.name : "", Q = o1 ? p1(o1) : "";
|
|
675
|
+
return typeof n == "function" && w1.set(n, Q), Q;
|
|
676
676
|
}
|
|
677
677
|
function _3(n, l, u) {
|
|
678
678
|
return J1(n, !1);
|
|
@@ -691,7 +691,7 @@ function b8() {
|
|
|
691
691
|
switch (n) {
|
|
692
692
|
case x:
|
|
693
693
|
return p1("Suspense");
|
|
694
|
-
case
|
|
694
|
+
case h:
|
|
695
695
|
return p1("SuspenseList");
|
|
696
696
|
}
|
|
697
697
|
if (typeof n == "object")
|
|
@@ -700,7 +700,7 @@ function b8() {
|
|
|
700
700
|
return _3(n.render);
|
|
701
701
|
case I:
|
|
702
702
|
return x1(n.type, l, u);
|
|
703
|
-
case
|
|
703
|
+
case D: {
|
|
704
704
|
var f = n, S = f._payload, R = f._init;
|
|
705
705
|
try {
|
|
706
706
|
return x1(R(S), l, u);
|
|
@@ -718,7 +718,7 @@ function b8() {
|
|
|
718
718
|
} else
|
|
719
719
|
Q1.setExtraStackFrame(null);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function D3(n, l, u, f, S) {
|
|
722
722
|
{
|
|
723
723
|
var R = Function.call.bind(i1);
|
|
724
724
|
for (var Z in n)
|
|
@@ -726,19 +726,19 @@ function b8() {
|
|
|
726
726
|
var M = void 0;
|
|
727
727
|
try {
|
|
728
728
|
if (typeof n[Z] != "function") {
|
|
729
|
-
var
|
|
730
|
-
throw
|
|
729
|
+
var O = Error((f || "React class") + ": " + u + " type `" + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[Z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
730
|
+
throw O.name = "Invariant Violation", O;
|
|
731
731
|
}
|
|
732
732
|
M = n[Z](l, Z, f, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
733
|
-
} catch (
|
|
734
|
-
M =
|
|
733
|
+
} catch (T) {
|
|
734
|
+
M = T;
|
|
735
735
|
}
|
|
736
736
|
M && !(M instanceof Error) && (M1(S), A("%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).", f || "React class", u, Z, typeof M), M1(null)), M instanceof Error && !(M.message in X1) && (X1[M.message] = !0, M1(S), A("Failed %s type: %s", u, M.message), M1(null));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
var $3 = Array.isArray;
|
|
741
|
-
function
|
|
741
|
+
function P1(n) {
|
|
742
742
|
return $3(n);
|
|
743
743
|
}
|
|
744
744
|
function A3(n) {
|
|
@@ -747,7 +747,7 @@ function b8() {
|
|
|
747
747
|
return u;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function B3(n) {
|
|
751
751
|
try {
|
|
752
752
|
return N1(n), !1;
|
|
753
753
|
} catch {
|
|
@@ -758,16 +758,16 @@ function b8() {
|
|
|
758
758
|
return "" + n;
|
|
759
759
|
}
|
|
760
760
|
function e3(n) {
|
|
761
|
-
if (
|
|
761
|
+
if (B3(n))
|
|
762
762
|
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", A3(n)), N1(n);
|
|
763
763
|
}
|
|
764
|
-
var t3 = $.ReactCurrentOwner,
|
|
764
|
+
var t3 = $.ReactCurrentOwner, O3 = {
|
|
765
765
|
key: !0,
|
|
766
766
|
ref: !0,
|
|
767
767
|
__self: !0,
|
|
768
768
|
__source: !0
|
|
769
769
|
}, s3, o3;
|
|
770
|
-
function
|
|
770
|
+
function V3(n) {
|
|
771
771
|
if (i1.call(n, "ref")) {
|
|
772
772
|
var l = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
773
773
|
if (l && l.isReactWarning)
|
|
@@ -775,7 +775,7 @@ function b8() {
|
|
|
775
775
|
}
|
|
776
776
|
return n.ref !== void 0;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function k3(n) {
|
|
779
779
|
if (i1.call(n, "key")) {
|
|
780
780
|
var l = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
781
781
|
if (l && l.isReactWarning)
|
|
@@ -783,10 +783,10 @@ function b8() {
|
|
|
783
783
|
}
|
|
784
784
|
return n.key !== void 0;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function U3(n, l) {
|
|
787
787
|
typeof n.ref == "string" && t3.current;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function W3(n, l) {
|
|
790
790
|
{
|
|
791
791
|
var u = function() {
|
|
792
792
|
s3 || (s3 = !0, A("%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)", l));
|
|
@@ -839,23 +839,23 @@ function b8() {
|
|
|
839
839
|
};
|
|
840
840
|
function K3(n, l, u, f, S) {
|
|
841
841
|
{
|
|
842
|
-
var R, Z = {}, M = null,
|
|
843
|
-
u !== void 0 && (e3(u), M = "" + u),
|
|
842
|
+
var R, Z = {}, M = null, O = null;
|
|
843
|
+
u !== void 0 && (e3(u), M = "" + u), k3(l) && (e3(l.key), M = "" + l.key), V3(l) && (O = l.ref, U3(l, S));
|
|
844
844
|
for (R in l)
|
|
845
|
-
i1.call(l, R) && !
|
|
845
|
+
i1.call(l, R) && !O3.hasOwnProperty(R) && (Z[R] = l[R]);
|
|
846
846
|
if (n && n.defaultProps) {
|
|
847
|
-
var
|
|
848
|
-
for (R in
|
|
849
|
-
Z[R] === void 0 && (Z[R] =
|
|
847
|
+
var T = n.defaultProps;
|
|
848
|
+
for (R in T)
|
|
849
|
+
Z[R] === void 0 && (Z[R] = T[R]);
|
|
850
850
|
}
|
|
851
|
-
if (M ||
|
|
851
|
+
if (M || O) {
|
|
852
852
|
var _ = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
853
|
-
M &&
|
|
853
|
+
M && W3(Z, _), O && F3(Z, _);
|
|
854
854
|
}
|
|
855
|
-
return H3(n, M,
|
|
855
|
+
return H3(n, M, O, S, f, t3.current, Z);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
var
|
|
858
|
+
var T1 = $.ReactCurrentOwner, n3 = $.ReactDebugCurrentFrame;
|
|
859
859
|
function s1(n) {
|
|
860
860
|
if (n) {
|
|
861
861
|
var l = n._owner, u = x1(n.type, n._source, l ? l.type : null);
|
|
@@ -870,8 +870,8 @@ function b8() {
|
|
|
870
870
|
}
|
|
871
871
|
function c3() {
|
|
872
872
|
{
|
|
873
|
-
if (
|
|
874
|
-
var n =
|
|
873
|
+
if (T1.current) {
|
|
874
|
+
var n = K(T1.current.type);
|
|
875
875
|
if (n)
|
|
876
876
|
return `
|
|
877
877
|
|
|
@@ -906,14 +906,14 @@ Check the top-level render call using <` + u + ">.");
|
|
|
906
906
|
return;
|
|
907
907
|
r3[u] = !0;
|
|
908
908
|
var f = "";
|
|
909
|
-
n && n._owner && n._owner !==
|
|
909
|
+
n && n._owner && n._owner !== T1.current && (f = " It was passed a child from " + K(n._owner.type) + "."), s1(n), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), s1(null);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
function i3(n, l) {
|
|
913
913
|
{
|
|
914
914
|
if (typeof n != "object")
|
|
915
915
|
return;
|
|
916
|
-
if (
|
|
916
|
+
if (P1(n))
|
|
917
917
|
for (var u = 0; u < n.length; u++) {
|
|
918
918
|
var f = n[u];
|
|
919
919
|
L1(f) && l3(f, l);
|
|
@@ -943,11 +943,11 @@ Check the top-level render call using <` + u + ">.");
|
|
|
943
943
|
else
|
|
944
944
|
return;
|
|
945
945
|
if (u) {
|
|
946
|
-
var f =
|
|
947
|
-
|
|
946
|
+
var f = K(l);
|
|
947
|
+
D3(u, n.props, "prop", f, n);
|
|
948
948
|
} else if (l.PropTypes !== void 0 && !_1) {
|
|
949
949
|
_1 = !0;
|
|
950
|
-
var S =
|
|
950
|
+
var S = K(l);
|
|
951
951
|
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
952
952
|
}
|
|
953
953
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -968,14 +968,14 @@ Check the top-level render call using <` + u + ">.");
|
|
|
968
968
|
var a3 = {};
|
|
969
969
|
function u3(n, l, u, f, S, R) {
|
|
970
970
|
{
|
|
971
|
-
var Z =
|
|
971
|
+
var Z = B(n);
|
|
972
972
|
if (!Z) {
|
|
973
973
|
var M = "";
|
|
974
974
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
975
|
-
var
|
|
976
|
-
|
|
977
|
-
var
|
|
978
|
-
n === null ?
|
|
975
|
+
var O = G3();
|
|
976
|
+
O ? M += O : M += c3();
|
|
977
|
+
var T;
|
|
978
|
+
n === null ? T = "null" : P1(n) ? T = "array" : n !== void 0 && n.$$typeof === t ? (T = "<" + (K(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof n, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, M);
|
|
979
979
|
}
|
|
980
980
|
var _ = K3(n, l, u, S, R);
|
|
981
981
|
if (_ == null)
|
|
@@ -984,7 +984,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
984
984
|
var U = l.children;
|
|
985
985
|
if (U !== void 0)
|
|
986
986
|
if (f)
|
|
987
|
-
if (
|
|
987
|
+
if (P1(U)) {
|
|
988
988
|
for (var o1 = 0; o1 < U.length; o1++)
|
|
989
989
|
i3(U[o1], n);
|
|
990
990
|
Object.freeze && Object.freeze(U);
|
|
@@ -994,17 +994,17 @@ Check the top-level render call using <` + u + ">.");
|
|
|
994
994
|
i3(U, n);
|
|
995
995
|
}
|
|
996
996
|
if (i1.call(l, "key")) {
|
|
997
|
-
var
|
|
997
|
+
var Q = K(n), V = Object.keys(l).filter(function(t2) {
|
|
998
998
|
return t2 !== "key";
|
|
999
|
-
}),
|
|
1000
|
-
if (!a3[
|
|
999
|
+
}), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1000
|
+
if (!a3[Q + D1]) {
|
|
1001
1001
|
var e2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1002
1002
|
A(`A props object containing a "key" prop is being spread into JSX:
|
|
1003
1003
|
let props = %s;
|
|
1004
1004
|
<%s {...props} />
|
|
1005
1005
|
React keys must be passed directly to JSX without using spread:
|
|
1006
1006
|
let props = %s;
|
|
1007
|
-
<%s key={someKey} {...props} />`,
|
|
1007
|
+
<%s key={someKey} {...props} />`, D1, Q, e2, Q), a3[Q + D1] = !0;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
return n === c ? z3(_) : Y3(_), _;
|
|
@@ -1028,7 +1028,7 @@ var s = I8();
|
|
|
1028
1028
|
const R8 = "_mwfit_ppa3l_1", y8 = {
|
|
1029
1029
|
mwfit: R8
|
|
1030
1030
|
}, E8 = () => {
|
|
1031
|
-
const { reconnect: e } = b(), t = j3(), o = d8(), c =
|
|
1031
|
+
const { reconnect: e } = b(), t = j3(), o = d8(), c = h8();
|
|
1032
1032
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(
|
|
1033
1033
|
"div",
|
|
1034
1034
|
{
|
|
@@ -1041,114 +1041,114 @@ const R8 = "_mwfit_ppa3l_1", y8 = {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
) });
|
|
1043
1043
|
};
|
|
1044
|
-
class
|
|
1044
|
+
class P8 {
|
|
1045
1045
|
constructor() {
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1046
|
+
G(this, "uuid", "current-uuid");
|
|
1047
|
+
G(this, "roomKey", "current-room-key");
|
|
1048
|
+
G(this, "code", "current-code");
|
|
1049
|
+
G(this, "expiry", "current-uuid-expires");
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
const p3 = new
|
|
1052
|
+
const p3 = new P8(), I3 = d2({
|
|
1053
1053
|
sendMessage: () => null,
|
|
1054
1054
|
sendSimpleMessage: () => null,
|
|
1055
1055
|
addEventHandler: () => null,
|
|
1056
1056
|
removeEventHandler: () => null,
|
|
1057
1057
|
reconnect: () => null
|
|
1058
1058
|
});
|
|
1059
|
-
function
|
|
1059
|
+
function T8(e) {
|
|
1060
1060
|
return sessionStorage.getItem(e) || "";
|
|
1061
1061
|
}
|
|
1062
1062
|
function _8(e, t) {
|
|
1063
1063
|
sessionStorage.setItem(e, t);
|
|
1064
1064
|
}
|
|
1065
1065
|
const L8 = ({ children: e }) => {
|
|
1066
|
-
const [t, o] =
|
|
1067
|
-
async (
|
|
1066
|
+
const [t, o] = H(), c = j3(), r = t8(), i = s8(), d = C8(), a = Z2(), g = o8(), x = n8(), h = c8(), I = v1(null), [D, F] = H(), k = v1({}), X = a1(
|
|
1067
|
+
async (E) => {
|
|
1068
1068
|
try {
|
|
1069
|
-
const C = await
|
|
1070
|
-
`${
|
|
1069
|
+
const C = await V1.get(
|
|
1070
|
+
`${E}/ui/joinroom?token=${t}`
|
|
1071
1071
|
);
|
|
1072
|
-
return C.status === 200 && C.data ? (m.dispatch(
|
|
1072
|
+
return C.status === 200 && C.data ? (m.dispatch(W.setRoomData(C.data)), !0) : !1;
|
|
1073
1073
|
} catch (C) {
|
|
1074
|
-
return console.log(C),
|
|
1075
|
-
|
|
1074
|
+
return console.log(C), h ? !0 : C instanceof c2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), m.dispatch(
|
|
1075
|
+
q.setErrorMessage(
|
|
1076
1076
|
`Token ${t} is invalid. Unable to join room`
|
|
1077
1077
|
)
|
|
1078
|
-
), !1) : (console.error("Error getting room data", C), C instanceof Error ? m.dispatch(
|
|
1078
|
+
), !1) : (console.error("Error getting room data", C), C instanceof Error ? m.dispatch(q.setErrorMessage(C.message)) : m.dispatch(q.setErrorMessage("Error getting room data")), !1);
|
|
1079
1079
|
}
|
|
1080
1080
|
},
|
|
1081
|
-
[t,
|
|
1081
|
+
[t, h]
|
|
1082
1082
|
), r1 = a1(() => {
|
|
1083
|
-
const
|
|
1084
|
-
window.location.href = x ? `${
|
|
1083
|
+
const E = `${a.gatewayAppPath}?uuid=${g}&roomKey=${r}`;
|
|
1084
|
+
window.location.href = x ? `${E}&Code=${x}` : E;
|
|
1085
1085
|
}, [a.gatewayAppPath, r, g, x]), $ = a1(
|
|
1086
|
-
(
|
|
1087
|
-
I.current && c && I.current.send(JSON.stringify({ type:
|
|
1086
|
+
(E, C) => {
|
|
1087
|
+
I.current && c && I.current.send(JSON.stringify({ type: E, clientId: i, content: C }));
|
|
1088
1088
|
},
|
|
1089
1089
|
[c, i]
|
|
1090
|
-
), A = (
|
|
1091
|
-
$(
|
|
1090
|
+
), A = (E, C) => {
|
|
1091
|
+
$(E, { value: C });
|
|
1092
1092
|
}, S1 = a1(
|
|
1093
|
-
(
|
|
1094
|
-
k.current[
|
|
1093
|
+
(E, C, f1) => {
|
|
1094
|
+
k.current[E] || (k.current[E] = {}), k.current[E][C] = f1, console.log("event handler added", E, C);
|
|
1095
1095
|
},
|
|
1096
1096
|
[]
|
|
1097
|
-
), b1 = a1((
|
|
1098
|
-
k.current[
|
|
1097
|
+
), b1 = a1((E, C) => {
|
|
1098
|
+
k.current[E] && (delete k.current[E][C], console.log("event handler removed", E, C));
|
|
1099
1099
|
}, []);
|
|
1100
1100
|
return n1(() => {
|
|
1101
1101
|
let C = new URLSearchParams(window.location.search).get("token");
|
|
1102
|
-
C ? (console.log("saving token: ", C), _8(p3.uuid, C)) : (C =
|
|
1102
|
+
C ? (console.log("saving token: ", C), _8(p3.uuid, C)) : (C = T8(p3.uuid), console.log("loading token: ", C)), o(C), d();
|
|
1103
1103
|
}, []), console.log(
|
|
1104
1104
|
"connection dependencies",
|
|
1105
1105
|
a.apiPath,
|
|
1106
|
-
|
|
1106
|
+
X,
|
|
1107
1107
|
t,
|
|
1108
|
-
|
|
1109
|
-
|
|
1108
|
+
D,
|
|
1109
|
+
h
|
|
1110
1110
|
), n1(() => {
|
|
1111
|
-
async function
|
|
1112
|
-
if (console.log("Attempting to join websocket..."), !a.apiPath ||
|
|
1111
|
+
async function E() {
|
|
1112
|
+
if (console.log("Attempting to join websocket..."), !a.apiPath || D || !t || !await X(a.apiPath)) return;
|
|
1113
1113
|
if (I.current) {
|
|
1114
1114
|
console.log("websocket exists");
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
1117
|
console.log("connecting to websocket");
|
|
1118
|
-
const I1 = `${a.apiPath.replace("http", "ws")}/ui/join/${t}`,
|
|
1119
|
-
I.current =
|
|
1120
|
-
console.log("connected",
|
|
1121
|
-
},
|
|
1122
|
-
console.error("Websocket error",
|
|
1123
|
-
},
|
|
1124
|
-
if (console.log("disconnected: ",
|
|
1125
|
-
console.log("WebSocket closed by client (useEffect cleanup)."), m.dispatch(
|
|
1118
|
+
const I1 = `${a.apiPath.replace("http", "ws")}/ui/join/${t}`, Y = new WebSocket(I1);
|
|
1119
|
+
I.current = Y, Y.onopen = (B) => {
|
|
1120
|
+
console.log("connected", B.type, B.target), m.dispatch(W.setWebsocketIsConnected(!0));
|
|
1121
|
+
}, Y.onerror = (B) => {
|
|
1122
|
+
console.error("Websocket error", B);
|
|
1123
|
+
}, Y.onclose = (B) => {
|
|
1124
|
+
if (console.log("disconnected: ", B.reason, B.code), B.code === 4100) {
|
|
1125
|
+
console.log("WebSocket closed by client (useEffect cleanup)."), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1126
1126
|
return;
|
|
1127
1127
|
}
|
|
1128
|
-
if (
|
|
1128
|
+
if (F(!0), B.code === 4e3) {
|
|
1129
1129
|
console.log("user code changed"), m.dispatch(
|
|
1130
|
-
|
|
1130
|
+
W.setUserCode({ userCode: "", qrUrl: "" })
|
|
1131
1131
|
), m.dispatch(
|
|
1132
|
-
|
|
1132
|
+
q.setErrorMessage(
|
|
1133
1133
|
"User code changed. Click reconnect to enter the new code"
|
|
1134
1134
|
)
|
|
1135
|
-
), m.dispatch(
|
|
1135
|
+
), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
|
-
if (
|
|
1138
|
+
if (B.code === 4001 && !h) {
|
|
1139
1139
|
console.log("processor disconnected"), m.dispatch(
|
|
1140
|
-
|
|
1140
|
+
q.setErrorMessage(
|
|
1141
1141
|
"Processor has disconnected. Click Reconnect"
|
|
1142
1142
|
)
|
|
1143
|
-
), m.dispatch(
|
|
1143
|
+
), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
|
-
if (
|
|
1146
|
+
if (B.code === 4002) {
|
|
1147
1147
|
console.log("room combination changed"), m.dispatch(
|
|
1148
|
-
|
|
1148
|
+
q.setErrorMessage(
|
|
1149
1149
|
"Room combination changed. Click Reconnect to re-join the room"
|
|
1150
1150
|
)
|
|
1151
|
-
), m.dispatch(
|
|
1151
|
+
), m.dispatch(q.setShowReconnect(!0)), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms());
|
|
1152
1152
|
return;
|
|
1153
1153
|
}
|
|
1154
1154
|
if (I.current)
|
|
@@ -1157,80 +1157,68 @@ const L8 = ({ children: e }) => {
|
|
|
1157
1157
|
console.log("WebSocket closed by client.");
|
|
1158
1158
|
return;
|
|
1159
1159
|
}
|
|
1160
|
-
console.log("websocket waitingToReconnect",
|
|
1161
|
-
},
|
|
1160
|
+
console.log("websocket waitingToReconnect", D), !D && (console.log("websocket clearing state on disconnect"), m.dispatch(W.setWebsocketIsConnected(!1)), m.dispatch(N.clearDevices()), m.dispatch(e1.clearRooms()), setTimeout(() => F(void 0), 5e3));
|
|
1161
|
+
}, Y.onmessage = (B) => {
|
|
1162
1162
|
try {
|
|
1163
|
-
const
|
|
1164
|
-
if (console.log(
|
|
1165
|
-
|
|
1163
|
+
const P = JSON.parse(B.data);
|
|
1164
|
+
if (console.log(P), P.type === "close") {
|
|
1165
|
+
Y.close(4001, P.content);
|
|
1166
1166
|
return;
|
|
1167
1167
|
}
|
|
1168
|
-
if (
|
|
1169
|
-
switch (
|
|
1168
|
+
if (P.type.startsWith("/system/"))
|
|
1169
|
+
switch (P.type) {
|
|
1170
1170
|
case "/system/touchpanelKey":
|
|
1171
1171
|
m.dispatch(
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
W.setTouchpanelKey(
|
|
1173
|
+
P.content
|
|
1174
1174
|
)
|
|
1175
1175
|
);
|
|
1176
1176
|
break;
|
|
1177
1177
|
case "/system/roomKey": {
|
|
1178
|
-
m.dispatch(
|
|
1179
|
-
|
|
1180
|
-
|
|
1178
|
+
m.dispatch(e1.clearRooms()), m.dispatch(N.clearDevices()), m.dispatch(
|
|
1179
|
+
W.setCurrentRoomKey(
|
|
1180
|
+
P.content
|
|
1181
1181
|
)
|
|
1182
1182
|
);
|
|
1183
1183
|
break;
|
|
1184
1184
|
}
|
|
1185
1185
|
case "/system/userCodeChanged":
|
|
1186
1186
|
m.dispatch(
|
|
1187
|
-
|
|
1187
|
+
W.setUserCode(P.content)
|
|
1188
1188
|
);
|
|
1189
1189
|
break;
|
|
1190
|
-
case "/system/roomCombinationChanged":
|
|
1191
|
-
|
|
1192
|
-
const q = k.current[y.type];
|
|
1193
|
-
q || (console.log(
|
|
1194
|
-
"no handlers found for room combination changed. Reloading application.",
|
|
1195
|
-
y.type
|
|
1196
|
-
), window.location.reload()), q && Object.values(q).forEach((W) => {
|
|
1197
|
-
try {
|
|
1198
|
-
W(y);
|
|
1199
|
-
} catch (K) {
|
|
1200
|
-
console.error(K);
|
|
1201
|
-
}
|
|
1202
|
-
});
|
|
1190
|
+
case "/system/roomCombinationChanged":
|
|
1191
|
+
window.location.reload();
|
|
1203
1192
|
break;
|
|
1204
|
-
}
|
|
1205
1193
|
default:
|
|
1206
|
-
console.log("unhandled system message",
|
|
1194
|
+
console.log("unhandled system message", P);
|
|
1207
1195
|
break;
|
|
1208
1196
|
}
|
|
1209
|
-
else if (
|
|
1210
|
-
console.log("event message received",
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1197
|
+
else if (P.type.startsWith("/event/")) {
|
|
1198
|
+
console.log("event message received", P);
|
|
1199
|
+
const t1 = k.current[P.type];
|
|
1200
|
+
t1 || console.log("no handlers found for event type", P.type), t1 && Object.values(t1).forEach((K) => {
|
|
1213
1201
|
try {
|
|
1214
|
-
|
|
1215
|
-
} catch (
|
|
1216
|
-
console.error(
|
|
1202
|
+
K(P);
|
|
1203
|
+
} catch (z) {
|
|
1204
|
+
console.error(z);
|
|
1217
1205
|
}
|
|
1218
1206
|
});
|
|
1219
|
-
} else
|
|
1220
|
-
} catch (
|
|
1221
|
-
console.error("websocket message handling error",
|
|
1207
|
+
} else P.type.startsWith("/room/") ? m.dispatch(e1.setRoomState(P)) : P.type.startsWith("/device/") && m.dispatch(N.setDeviceState(P));
|
|
1208
|
+
} catch (P) {
|
|
1209
|
+
console.error("websocket message handling error", P);
|
|
1222
1210
|
}
|
|
1223
1211
|
};
|
|
1224
1212
|
}
|
|
1225
|
-
return
|
|
1213
|
+
return E(), console.log("App mode: production"), console.log("Is dev mode: false"), () => {
|
|
1226
1214
|
I.current && (console.log("closing websocket dev mode"), I.current.close(4100, "app running in dev mode"), I.current = null);
|
|
1227
1215
|
};
|
|
1228
1216
|
}, [
|
|
1229
1217
|
a.apiPath,
|
|
1230
|
-
|
|
1218
|
+
X,
|
|
1231
1219
|
t,
|
|
1232
|
-
|
|
1233
|
-
|
|
1220
|
+
D,
|
|
1221
|
+
h
|
|
1234
1222
|
]), n1(() => {
|
|
1235
1223
|
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
|
|
1236
1224
|
}, [r, i, c, $]), /* @__PURE__ */ s.jsx(
|
|
@@ -1246,17 +1234,17 @@ const L8 = ({ children: e }) => {
|
|
|
1246
1234
|
children: c ? e : /* @__PURE__ */ s.jsx(E8, {})
|
|
1247
1235
|
}
|
|
1248
1236
|
);
|
|
1249
|
-
},
|
|
1237
|
+
}, pe = ({ children: e }) => /* @__PURE__ */ s.jsx(i2, { store: m, children: /* @__PURE__ */ s.jsx(L8, { children: e }) });
|
|
1250
1238
|
function b() {
|
|
1251
|
-
return
|
|
1239
|
+
return h2(I3);
|
|
1252
1240
|
}
|
|
1253
|
-
function
|
|
1241
|
+
function D8({
|
|
1254
1242
|
onPress: e,
|
|
1255
1243
|
onRelease: t,
|
|
1256
1244
|
onHold: o,
|
|
1257
1245
|
holdTimeMs: c = 500
|
|
1258
1246
|
}) {
|
|
1259
|
-
const r =
|
|
1247
|
+
const r = v1(null), i = v1(!1);
|
|
1260
1248
|
function d() {
|
|
1261
1249
|
i.current = !0, e == null || e(), r.current = setTimeout(() => {
|
|
1262
1250
|
o == null || o(), r.current = null;
|
|
@@ -1274,8 +1262,8 @@ function T8({
|
|
|
1274
1262
|
onPointerLeave: g
|
|
1275
1263
|
};
|
|
1276
1264
|
}
|
|
1277
|
-
function
|
|
1278
|
-
const { sendMessage: c } = b(), r =
|
|
1265
|
+
function v(e, t) {
|
|
1266
|
+
const { sendMessage: c } = b(), r = v1(null);
|
|
1279
1267
|
function i() {
|
|
1280
1268
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
1281
1269
|
c(`${e}/${t}`, { value: "held" });
|
|
@@ -1284,34 +1272,34 @@ function h(e, t) {
|
|
|
1284
1272
|
function d() {
|
|
1285
1273
|
r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
|
|
1286
1274
|
}
|
|
1287
|
-
return
|
|
1275
|
+
return D8({ onPress: i, onRelease: d });
|
|
1288
1276
|
}
|
|
1289
1277
|
function R3(e, t) {
|
|
1290
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1278
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1291
1279
|
return t ? {
|
|
1292
1280
|
volumeState: t,
|
|
1293
1281
|
volumeUp: r,
|
|
1294
1282
|
volumeDown: i,
|
|
1295
|
-
setLevel: (
|
|
1283
|
+
setLevel: (h) => c(`${e}/level`, h),
|
|
1296
1284
|
muteToggle: () => o(`${e}/muteToggle`, null),
|
|
1297
1285
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1298
1286
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1299
1287
|
} : void 0;
|
|
1300
1288
|
}
|
|
1301
|
-
function
|
|
1302
|
-
const { sendMessage: o, sendSimpleMessage: c } = b(), r =
|
|
1289
|
+
function we(e, t) {
|
|
1290
|
+
const { sendMessage: o, sendSimpleMessage: c } = b(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1303
1291
|
return t ? {
|
|
1304
1292
|
volumeState: t,
|
|
1305
1293
|
volumeUp: r,
|
|
1306
1294
|
volumeDown: i,
|
|
1307
|
-
setLevel: (
|
|
1295
|
+
setLevel: (h) => c(`${e}/level`, h),
|
|
1308
1296
|
muteToggle: () => o(`${e}/muteToggle`, null),
|
|
1309
1297
|
muteOn: () => o(`${e}/muteOn`, null),
|
|
1310
1298
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1311
1299
|
} : void 0;
|
|
1312
1300
|
}
|
|
1313
1301
|
function $8(e) {
|
|
1314
|
-
const t =
|
|
1302
|
+
const t = y(e), o = `/device/${e}`;
|
|
1315
1303
|
return R3(o, t == null ? void 0 : t.volume);
|
|
1316
1304
|
}
|
|
1317
1305
|
function y3(e) {
|
|
@@ -1324,14 +1312,14 @@ function y3(e) {
|
|
|
1324
1312
|
t(`/device/${e}/powerToggle`, null);
|
|
1325
1313
|
} };
|
|
1326
1314
|
}
|
|
1327
|
-
function
|
|
1328
|
-
const { sendMessage: t } = b(), o =
|
|
1315
|
+
function k1(e) {
|
|
1316
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1329
1317
|
return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
|
|
1330
1318
|
t(`/device/${e}/${r}`, null);
|
|
1331
1319
|
} } : void 0;
|
|
1332
1320
|
}
|
|
1333
1321
|
function A8(e) {
|
|
1334
|
-
const { sendMessage: t } = b(), o =
|
|
1322
|
+
const { sendMessage: t } = b(), o = y(e), c = () => {
|
|
1335
1323
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1336
1324
|
}, r = () => {
|
|
1337
1325
|
if ((o == null ? void 0 : o.levelControls) === void 0) return;
|
|
@@ -1341,8 +1329,8 @@ function A8(e) {
|
|
|
1341
1329
|
};
|
|
1342
1330
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1343
1331
|
}
|
|
1344
|
-
function
|
|
1345
|
-
const t =
|
|
1332
|
+
function xe(e) {
|
|
1333
|
+
const t = y(e), o = y3(e), c = k1(e), r = k1(e), i = $8(e), d = A8(e);
|
|
1346
1334
|
if (t)
|
|
1347
1335
|
return {
|
|
1348
1336
|
avrState: t,
|
|
@@ -1353,8 +1341,8 @@ function we(e) {
|
|
|
1353
1341
|
mainVolumeControl: i
|
|
1354
1342
|
};
|
|
1355
1343
|
}
|
|
1356
|
-
function
|
|
1357
|
-
const { sendMessage: t } = b(), o = `/device/${e}`, c =
|
|
1344
|
+
function Me(e) {
|
|
1345
|
+
const { sendMessage: t } = b(), o = `/device/${e}`, c = y(e), r = v(o, "cameraUp"), i = v(o, "cameraDown"), d = v(o, "cameraLeft"), a = v(o, "cameraRight"), g = v(o, "cameraZoomIn"), x = v(o, "cameraZoomOut"), h = (I) => t("/camera/recallPreset", I);
|
|
1358
1346
|
if (c)
|
|
1359
1347
|
return {
|
|
1360
1348
|
state: c,
|
|
@@ -1364,11 +1352,11 @@ function xe(e) {
|
|
|
1364
1352
|
down: i,
|
|
1365
1353
|
left: d,
|
|
1366
1354
|
right: a,
|
|
1367
|
-
recallPreset:
|
|
1355
|
+
recallPreset: h
|
|
1368
1356
|
};
|
|
1369
1357
|
}
|
|
1370
|
-
const
|
|
1371
|
-
const [t, o] =
|
|
1358
|
+
const me = ({ className: e }) => {
|
|
1359
|
+
const [t, o] = H();
|
|
1372
1360
|
return n1(() => {
|
|
1373
1361
|
setInterval(() => {
|
|
1374
1362
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
@@ -1379,55 +1367,55 @@ const Me = ({ className: e }) => {
|
|
|
1379
1367
|
" new change"
|
|
1380
1368
|
] });
|
|
1381
1369
|
};
|
|
1382
|
-
function
|
|
1383
|
-
const { sendMessage: t } = b(), o =
|
|
1370
|
+
function Ze(e) {
|
|
1371
|
+
const { sendMessage: t } = b(), o = y(e), c = `/device/${e}`;
|
|
1384
1372
|
return o ? { state: o, recallPreset: (d, a) => {
|
|
1385
1373
|
t(`${c}/presets/recall`, { deviceKey: d, preset: a });
|
|
1386
1374
|
}, savePresets: (d) => {
|
|
1387
1375
|
t(`${c}/presets/save`, d);
|
|
1388
1376
|
} } : void 0;
|
|
1389
1377
|
}
|
|
1390
|
-
function
|
|
1391
|
-
const t =
|
|
1378
|
+
function je(e) {
|
|
1379
|
+
const t = y(e);
|
|
1392
1380
|
if (t)
|
|
1393
1381
|
return { endpointState: t };
|
|
1394
1382
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const t = `/device/${e}`, o =
|
|
1383
|
+
function Ce(e) {
|
|
1384
|
+
const t = `/device/${e}`, o = v(t, "chanUp"), c = v(t, "chanDown"), r = v(t, "lastChan"), i = v(t, "guide"), d = v(t, "info"), a = v(t, "exit");
|
|
1397
1385
|
return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: d, exit: a };
|
|
1398
1386
|
}
|
|
1399
|
-
function
|
|
1400
|
-
const t = `/device/${e}`, o =
|
|
1387
|
+
function Se(e) {
|
|
1388
|
+
const t = `/device/${e}`, o = v(t, "red"), c = v(t, "green"), r = v(t, "yellow"), i = v(t, "blue");
|
|
1401
1389
|
return { red: o, green: c, yellow: r, blue: i };
|
|
1402
1390
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const t =
|
|
1391
|
+
function be(e) {
|
|
1392
|
+
const t = y(e);
|
|
1405
1393
|
if (t)
|
|
1406
1394
|
return {
|
|
1407
1395
|
communicationMonitorState: t
|
|
1408
1396
|
};
|
|
1409
1397
|
}
|
|
1410
|
-
function
|
|
1411
|
-
const t =
|
|
1398
|
+
function Ie(e) {
|
|
1399
|
+
const t = y(e);
|
|
1412
1400
|
if (t)
|
|
1413
1401
|
return t.deviceInfo || void 0;
|
|
1414
1402
|
}
|
|
1415
|
-
function
|
|
1416
|
-
const t = `/device/${e}`, o =
|
|
1403
|
+
function Re(e) {
|
|
1404
|
+
const t = `/device/${e}`, o = v(t, "up"), c = v(t, "down"), r = v(t, "left"), i = v(t, "right"), d = v(t, "select"), a = v(t, "menu"), g = v(t, "exit");
|
|
1417
1405
|
return { up: o, down: c, left: r, right: i, select: d, menu: a, exit: g };
|
|
1418
1406
|
}
|
|
1419
|
-
function
|
|
1407
|
+
function ye(e) {
|
|
1420
1408
|
const { sendMessage: t } = b();
|
|
1421
1409
|
return { recallPreset: (c) => {
|
|
1422
1410
|
t(`/device/${e}/recallPreset`, c);
|
|
1423
1411
|
} };
|
|
1424
1412
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const t = `/device/${e}`, o =
|
|
1413
|
+
function Ee(e) {
|
|
1414
|
+
const t = `/device/${e}`, o = v(t, "dvrList"), c = v(t, "record");
|
|
1427
1415
|
return { dvrList: o, record: c };
|
|
1428
1416
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const { sendMessage: t } = b(), o =
|
|
1417
|
+
function Pe(e) {
|
|
1418
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1431
1419
|
return o ? { roomCombinerState: o, setAutoMode: () => {
|
|
1432
1420
|
t(`/device/${e}/setAutoMode`, null);
|
|
1433
1421
|
}, setManualMode: () => {
|
|
@@ -1440,8 +1428,8 @@ function Ee(e) {
|
|
|
1440
1428
|
t(`/device/${e}/setRoomCombinationScenario`, g);
|
|
1441
1429
|
} } : void 0;
|
|
1442
1430
|
}
|
|
1443
|
-
function
|
|
1444
|
-
const { sendMessage: t } = b(), o = `/device/${e}`, c =
|
|
1431
|
+
function Te(e) {
|
|
1432
|
+
const { sendMessage: t } = b(), o = `/device/${e}`, c = y(e);
|
|
1445
1433
|
return c ? {
|
|
1446
1434
|
state: c,
|
|
1447
1435
|
selectCamera: (i) => {
|
|
@@ -1449,41 +1437,41 @@ function De(e) {
|
|
|
1449
1437
|
}
|
|
1450
1438
|
} : void 0;
|
|
1451
1439
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const t =
|
|
1440
|
+
function _e(e) {
|
|
1441
|
+
const t = y(e);
|
|
1454
1442
|
if (t)
|
|
1455
1443
|
return { state: t };
|
|
1456
1444
|
}
|
|
1457
|
-
function
|
|
1458
|
-
const { sendMessage: t, sendSimpleMessage: o } = b(), c =
|
|
1445
|
+
function Le(e) {
|
|
1446
|
+
const { sendMessage: t, sendSimpleMessage: o } = b(), c = y(e), r = K2(e), i = c || r;
|
|
1459
1447
|
return i ? {
|
|
1460
1448
|
levelState: i,
|
|
1461
|
-
setLevel: (
|
|
1462
|
-
muteToggle: (
|
|
1463
|
-
muteOn: (
|
|
1464
|
-
muteOff: (
|
|
1449
|
+
setLevel: (h, I) => o(`${h}/level`, I),
|
|
1450
|
+
muteToggle: (h) => t(`${h}/muteToggle`, null),
|
|
1451
|
+
muteOn: (h) => t(`${h}/muteOn`, null),
|
|
1452
|
+
muteOff: (h) => t(`${h}/muteOff`, null)
|
|
1465
1453
|
} : void 0;
|
|
1466
1454
|
}
|
|
1467
|
-
function
|
|
1468
|
-
const { sendMessage: t } = b(), o =
|
|
1455
|
+
function De(e) {
|
|
1456
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1469
1457
|
return o ? { lightingState: o, selectScene: (r) => {
|
|
1470
1458
|
t(`/device/${e}/selectScene`, r);
|
|
1471
1459
|
} } : void 0;
|
|
1472
1460
|
}
|
|
1473
|
-
function
|
|
1474
|
-
const { sendMessage: t } = b(), o =
|
|
1461
|
+
function $e(e) {
|
|
1462
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1475
1463
|
return o ? { matrixRoutingState: o, setRoute: (r) => {
|
|
1476
1464
|
t(`/device/${e}/route`, r);
|
|
1477
1465
|
} } : void 0;
|
|
1478
1466
|
}
|
|
1479
|
-
function
|
|
1467
|
+
function Ae(e) {
|
|
1480
1468
|
const { sendMessage: t } = b();
|
|
1481
1469
|
return { closeApp: () => {
|
|
1482
1470
|
t(`/device/${e}/closeWebViewController`, null);
|
|
1483
1471
|
} };
|
|
1484
1472
|
}
|
|
1485
|
-
function
|
|
1486
|
-
const t = `/device/${e}`, o =
|
|
1473
|
+
function Be(e) {
|
|
1474
|
+
const t = `/device/${e}`, o = v(t, "num0"), c = v(t, "num1"), r = v(t, "num2"), i = v(t, "num3"), d = v(t, "num4"), a = v(t, "num5"), g = v(t, "num6"), x = v(t, "num7"), h = v(t, "num8"), I = v(t, "num9"), D = v(t, "numDash"), F = v(t, "numEnter");
|
|
1487
1475
|
return {
|
|
1488
1476
|
digit0: o,
|
|
1489
1477
|
digit1: c,
|
|
@@ -1493,21 +1481,21 @@ function Ae(e) {
|
|
|
1493
1481
|
digit5: a,
|
|
1494
1482
|
digit6: g,
|
|
1495
1483
|
digit7: x,
|
|
1496
|
-
digit8:
|
|
1484
|
+
digit8: h,
|
|
1497
1485
|
digit9: I,
|
|
1498
|
-
keypadAccessoryButton1:
|
|
1499
|
-
keypadAccessoryButton2:
|
|
1486
|
+
keypadAccessoryButton1: D,
|
|
1487
|
+
keypadAccessoryButton2: F
|
|
1500
1488
|
};
|
|
1501
1489
|
}
|
|
1502
1490
|
function Oe(e) {
|
|
1503
|
-
const { sendMessage: t } = b(), o =
|
|
1491
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1504
1492
|
return o ? { projectorScreenLiftControlState: o, raise: () => {
|
|
1505
1493
|
t(`/device/${e}/raise`, null);
|
|
1506
1494
|
}, lower: () => {
|
|
1507
1495
|
t(`/device/${e}/lower`, null);
|
|
1508
1496
|
} } : void 0;
|
|
1509
1497
|
}
|
|
1510
|
-
function
|
|
1498
|
+
function Ve(e) {
|
|
1511
1499
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1512
1500
|
return o ? { roomEventScheduleState: o, save: (r) => {
|
|
1513
1501
|
t(`/room/${e}/saveScheduledEvents`, r);
|
|
@@ -1519,7 +1507,7 @@ function ke(e) {
|
|
|
1519
1507
|
t(`/room/${e}/defaultsource`, {});
|
|
1520
1508
|
} };
|
|
1521
1509
|
}
|
|
1522
|
-
function
|
|
1510
|
+
function Ue(e) {
|
|
1523
1511
|
const { sendMessage: t } = b();
|
|
1524
1512
|
return { runDirectRoute: (c) => {
|
|
1525
1513
|
t(`/room/${e}/directRoute`, c);
|
|
@@ -1527,16 +1515,16 @@ function Ve(e) {
|
|
|
1527
1515
|
}
|
|
1528
1516
|
function We(e) {
|
|
1529
1517
|
const { sendMessage: t } = b();
|
|
1530
|
-
return { routingState:
|
|
1518
|
+
return { routingState: y(e), runRoute: (r) => {
|
|
1531
1519
|
t(`/room/${e}/source`, r);
|
|
1532
1520
|
} };
|
|
1533
1521
|
}
|
|
1534
|
-
function
|
|
1535
|
-
const t = `/device/${e}`, o =
|
|
1522
|
+
function Fe(e) {
|
|
1523
|
+
const t = `/device/${e}`, o = v(t, "chanUp"), c = v(t, "chanDown");
|
|
1536
1524
|
return { dvrList: o, replay: c };
|
|
1537
1525
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const { sendMessage: t } = b(), o =
|
|
1526
|
+
function He(e) {
|
|
1527
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1540
1528
|
return o ? { shadeState: o, shadeUp: () => {
|
|
1541
1529
|
t(`/device/${e}/shadeUp`, null);
|
|
1542
1530
|
}, shadeDown: () => {
|
|
@@ -1545,7 +1533,7 @@ function Fe(e) {
|
|
|
1545
1533
|
t(`/device/${e}/stopOrPreset`, null);
|
|
1546
1534
|
} } : void 0;
|
|
1547
1535
|
}
|
|
1548
|
-
function
|
|
1536
|
+
function Ke(e) {
|
|
1549
1537
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1550
1538
|
return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (a) => {
|
|
1551
1539
|
t(`/room/${e}/setShutdownPromptSeconds`, a);
|
|
@@ -1557,15 +1545,15 @@ function He(e) {
|
|
|
1557
1545
|
t(`/room/${e}/shutdownCancel`, null);
|
|
1558
1546
|
} } : void 0;
|
|
1559
1547
|
}
|
|
1560
|
-
function
|
|
1561
|
-
const { sendMessage: t } = b(), o =
|
|
1548
|
+
function Ge(e) {
|
|
1549
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1562
1550
|
return o ? { switchedOutputState: o, on: () => {
|
|
1563
1551
|
t(`/device/${e}/on`, null);
|
|
1564
1552
|
}, off: () => {
|
|
1565
1553
|
t(`/device/${e}/off`, null);
|
|
1566
1554
|
} } : void 0;
|
|
1567
1555
|
}
|
|
1568
|
-
function
|
|
1556
|
+
function qe(e) {
|
|
1569
1557
|
const { sendMessage: t } = b(), o = C1(e);
|
|
1570
1558
|
return o ? { techPasswordState: o, validatePassword: (i) => {
|
|
1571
1559
|
t(`/room/${e}/validateTechPassword`, { password: i });
|
|
@@ -1573,12 +1561,12 @@ function Ge(e) {
|
|
|
1573
1561
|
t(`/room/${e}/setTechPassword`, { oldPassword: i, newPassword: d });
|
|
1574
1562
|
} } : void 0;
|
|
1575
1563
|
}
|
|
1576
|
-
function
|
|
1577
|
-
const { sendMessage: t } = b(), o =
|
|
1564
|
+
function Ye(e) {
|
|
1565
|
+
const { sendMessage: t } = b(), o = y(e);
|
|
1578
1566
|
return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1579
1567
|
}
|
|
1580
|
-
function
|
|
1581
|
-
const { sendMessage: t } = b(), o =
|
|
1568
|
+
function ze(e) {
|
|
1569
|
+
const { sendMessage: t } = b(), o = y(e), c = (r) => {
|
|
1582
1570
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1583
1571
|
};
|
|
1584
1572
|
return {
|
|
@@ -1586,8 +1574,8 @@ function Ye(e) {
|
|
|
1586
1574
|
saveTheme: c
|
|
1587
1575
|
};
|
|
1588
1576
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const t = `/device/${e}`, o =
|
|
1577
|
+
function Je(e) {
|
|
1578
|
+
const t = `/device/${e}`, o = v(t, "play"), c = v(t, "pause"), r = v(t, "stop"), i = v(t, "prevTrack"), d = v(t, "nextTrack"), a = v(t, "rewind"), g = v(t, "ffwd"), x = v(t, "record");
|
|
1591
1579
|
return {
|
|
1592
1580
|
play: o,
|
|
1593
1581
|
pause: c,
|
|
@@ -1599,8 +1587,8 @@ function ze(e) {
|
|
|
1599
1587
|
record: x
|
|
1600
1588
|
};
|
|
1601
1589
|
}
|
|
1602
|
-
function
|
|
1603
|
-
const t =
|
|
1590
|
+
function Xe(e) {
|
|
1591
|
+
const t = y(e), { sendMessage: o } = b();
|
|
1604
1592
|
return t ? {
|
|
1605
1593
|
touchpanelState: t,
|
|
1606
1594
|
appControl: { hideApp: () => {
|
|
@@ -1615,8 +1603,8 @@ function Je(e) {
|
|
|
1615
1603
|
} }
|
|
1616
1604
|
} : void 0;
|
|
1617
1605
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const t =
|
|
1606
|
+
function Qe(e) {
|
|
1607
|
+
const t = y(e), o = y3(e), c = k1(e);
|
|
1620
1608
|
if (!t) return;
|
|
1621
1609
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1622
1610
|
return {
|
|
@@ -1626,7 +1614,7 @@ function Xe(e) {
|
|
|
1626
1614
|
powerFb: { powerOnFb: r, powerOffFb: i }
|
|
1627
1615
|
};
|
|
1628
1616
|
}
|
|
1629
|
-
const
|
|
1617
|
+
const Ne = ({
|
|
1630
1618
|
config: e
|
|
1631
1619
|
}) => {
|
|
1632
1620
|
const { sendMessage: t } = b();
|
|
@@ -1659,8 +1647,8 @@ const Qe = ({
|
|
|
1659
1647
|
});
|
|
1660
1648
|
}, [e, t]);
|
|
1661
1649
|
};
|
|
1662
|
-
function
|
|
1663
|
-
const [o, c] =
|
|
1650
|
+
function e5(e, t) {
|
|
1651
|
+
const [o, c] = H(!1), [r, i] = H(!1);
|
|
1664
1652
|
return x3(() => {
|
|
1665
1653
|
const { current: d } = e, a = () => {
|
|
1666
1654
|
const g = d && d.scrollHeight > d.clientHeight, x = d && d.scrollWidth > d.clientWidth;
|
|
@@ -1669,27 +1657,27 @@ function Ne(e, t) {
|
|
|
1669
1657
|
d && a();
|
|
1670
1658
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1671
1659
|
}
|
|
1672
|
-
function
|
|
1660
|
+
function t5(e, t) {
|
|
1673
1661
|
const o = H2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1674
1662
|
return R3(c, o);
|
|
1675
1663
|
}
|
|
1676
|
-
function
|
|
1664
|
+
function s5(e) {
|
|
1677
1665
|
var a, g;
|
|
1678
|
-
const [t, o] =
|
|
1679
|
-
const { current:
|
|
1680
|
-
|
|
1666
|
+
const [t, o] = H(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollLeft) ?? 0), [c, r] = H(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollTop) ?? 0), i = (x) => {
|
|
1667
|
+
const { current: h } = e;
|
|
1668
|
+
h && (console.log(h.scrollLeft), h.scrollLeft += x, console.log(h.scrollLeft));
|
|
1681
1669
|
}, d = (x) => {
|
|
1682
|
-
const { current:
|
|
1683
|
-
|
|
1670
|
+
const { current: h } = e;
|
|
1671
|
+
h && (console.log(h.scrollTop), h.scrollTop += x, console.log(h.scrollTop));
|
|
1684
1672
|
};
|
|
1685
1673
|
return x3(() => {
|
|
1686
|
-
const { current: x } = e,
|
|
1674
|
+
const { current: x } = e, h = () => {
|
|
1687
1675
|
o((x == null ? void 0 : x.scrollLeft) ?? 0), r((x == null ? void 0 : x.scrollTop) ?? 0);
|
|
1688
1676
|
};
|
|
1689
|
-
x &&
|
|
1677
|
+
x && h();
|
|
1690
1678
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: d };
|
|
1691
1679
|
}
|
|
1692
|
-
function
|
|
1680
|
+
function o5() {
|
|
1693
1681
|
const { sendMessage: e } = b();
|
|
1694
1682
|
return {
|
|
1695
1683
|
reboot: () => {
|
|
@@ -1700,8 +1688,8 @@ function s5() {
|
|
|
1700
1688
|
}
|
|
1701
1689
|
};
|
|
1702
1690
|
}
|
|
1703
|
-
function
|
|
1704
|
-
const [e, t] =
|
|
1691
|
+
function n5() {
|
|
1692
|
+
const [e, t] = H(), [o, c] = H();
|
|
1705
1693
|
function r() {
|
|
1706
1694
|
t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
|
|
1707
1695
|
const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
|
|
@@ -1715,8 +1703,8 @@ function o5() {
|
|
|
1715
1703
|
return () => clearInterval(i);
|
|
1716
1704
|
}, []), { date: e, time: o };
|
|
1717
1705
|
}
|
|
1718
|
-
const
|
|
1719
|
-
const [e, t] =
|
|
1706
|
+
const c5 = () => {
|
|
1707
|
+
const [e, t] = H(!1), o = v2(), c = g2();
|
|
1720
1708
|
let r;
|
|
1721
1709
|
return f2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
|
|
1722
1710
|
/* @__PURE__ */ s.jsx("div", { className: "m-2 p-2 bg-danger rounded d-flex align-items-center", children: /* @__PURE__ */ s.jsx("span", { className: "fs-5 text-white", children: "We are sorry. Something went wrong." }) }),
|
|
@@ -1724,11 +1712,11 @@ const n5 = () => {
|
|
|
1724
1712
|
/* @__PURE__ */ s.jsx("button", { className: "btn btn-primary p-2", onClick: () => t(!e), children: e ? "Hide error message" : "Show error message" }),
|
|
1725
1713
|
e && /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1726
1714
|
] });
|
|
1727
|
-
},
|
|
1728
|
-
iconbtn:
|
|
1729
|
-
iconbtnvert:
|
|
1730
|
-
iconsm:
|
|
1731
|
-
},
|
|
1715
|
+
}, B8 = "_iconbtn_16qss_1", O8 = "_iconbtnvert_16qss_7", V8 = "_iconsm_16qss_18", $1 = {
|
|
1716
|
+
iconbtn: B8,
|
|
1717
|
+
iconbtnvert: O8,
|
|
1718
|
+
iconsm: V8
|
|
1719
|
+
}, k8 = ({
|
|
1732
1720
|
multiIcon: e,
|
|
1733
1721
|
otherContent: t = null,
|
|
1734
1722
|
vert: o = !1,
|
|
@@ -1739,23 +1727,23 @@ const n5 = () => {
|
|
|
1739
1727
|
feedback: a,
|
|
1740
1728
|
feedbackClassName: g,
|
|
1741
1729
|
onPointerDown: x,
|
|
1742
|
-
onPointerUp:
|
|
1730
|
+
onPointerUp: h,
|
|
1743
1731
|
onPointerLeave: I,
|
|
1744
|
-
...
|
|
1732
|
+
...D
|
|
1745
1733
|
}) => {
|
|
1746
|
-
const [
|
|
1734
|
+
const [F, k] = H(!1), X = !d && a ? g : "", r1 = !d && (F || a);
|
|
1747
1735
|
return /* @__PURE__ */ s.jsxs(
|
|
1748
1736
|
"button",
|
|
1749
1737
|
{
|
|
1750
1738
|
type: "button",
|
|
1751
|
-
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${
|
|
1752
|
-
...
|
|
1739
|
+
className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${X}`,
|
|
1740
|
+
...D,
|
|
1753
1741
|
disabled: d,
|
|
1754
1742
|
onPointerDown: ($) => {
|
|
1755
1743
|
k(!0), x == null || x($);
|
|
1756
1744
|
},
|
|
1757
1745
|
onPointerUp: ($) => {
|
|
1758
|
-
k(!1),
|
|
1746
|
+
k(!1), h == null || h($);
|
|
1759
1747
|
},
|
|
1760
1748
|
onPointerLeave: ($) => {
|
|
1761
1749
|
k(!1), I == null || I($);
|
|
@@ -1779,7 +1767,7 @@ const n5 = () => {
|
|
|
1779
1767
|
EnabledImage: o,
|
|
1780
1768
|
active: c,
|
|
1781
1769
|
disabled: r
|
|
1782
|
-
}) => r ? t : c ? e : o,
|
|
1770
|
+
}) => r ? t : c ? e : o, U8 = ({
|
|
1783
1771
|
active: e,
|
|
1784
1772
|
className: t = "",
|
|
1785
1773
|
disabled: o
|
|
@@ -1831,7 +1819,7 @@ const n5 = () => {
|
|
|
1831
1819
|
active: e,
|
|
1832
1820
|
disabled: o
|
|
1833
1821
|
}
|
|
1834
|
-
),
|
|
1822
|
+
), W8 = ({
|
|
1835
1823
|
active: e,
|
|
1836
1824
|
className: t = "",
|
|
1837
1825
|
disabled: o
|
|
@@ -2979,7 +2967,7 @@ const n5 = () => {
|
|
|
2979
2967
|
active: e,
|
|
2980
2968
|
disabled: o
|
|
2981
2969
|
}
|
|
2982
|
-
),
|
|
2970
|
+
), r5 = ({
|
|
2983
2971
|
active: e,
|
|
2984
2972
|
// Just to shut up the linter on this template. Prefer deleting this lint rule
|
|
2985
2973
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3043,7 +3031,7 @@ const n5 = () => {
|
|
|
3043
3031
|
active: e,
|
|
3044
3032
|
disabled: o
|
|
3045
3033
|
}
|
|
3046
|
-
),
|
|
3034
|
+
), h6 = ({
|
|
3047
3035
|
active: e,
|
|
3048
3036
|
className: t = "",
|
|
3049
3037
|
disabled: o
|
|
@@ -3092,7 +3080,7 @@ const n5 = () => {
|
|
|
3092
3080
|
active: e,
|
|
3093
3081
|
disabled: o
|
|
3094
3082
|
}
|
|
3095
|
-
),
|
|
3083
|
+
), v6 = ({
|
|
3096
3084
|
active: e,
|
|
3097
3085
|
className: t = "",
|
|
3098
3086
|
disabled: o
|
|
@@ -3387,10 +3375,10 @@ const n5 = () => {
|
|
|
3387
3375
|
disabled: o
|
|
3388
3376
|
}
|
|
3389
3377
|
), M6 = {
|
|
3390
|
-
Alert:
|
|
3378
|
+
Alert: U8,
|
|
3391
3379
|
Camera: F8,
|
|
3392
3380
|
DownArrow: G8,
|
|
3393
|
-
Ban:
|
|
3381
|
+
Ban: W8,
|
|
3394
3382
|
Check: H8,
|
|
3395
3383
|
Controller: K8,
|
|
3396
3384
|
Elipses: q8,
|
|
@@ -3413,61 +3401,74 @@ const n5 = () => {
|
|
|
3413
3401
|
Shade: a6,
|
|
3414
3402
|
Sun: u6,
|
|
3415
3403
|
UpArrow: d6,
|
|
3416
|
-
VolDown:
|
|
3417
|
-
VolMute:
|
|
3404
|
+
VolDown: h6,
|
|
3405
|
+
VolMute: v6,
|
|
3418
3406
|
VolUp: g6,
|
|
3419
3407
|
Wireless: f6,
|
|
3420
3408
|
X: p6,
|
|
3421
3409
|
Xbox: w6
|
|
3422
3410
|
};
|
|
3423
|
-
function
|
|
3411
|
+
function l5({
|
|
3424
3412
|
name: e,
|
|
3425
3413
|
iconsDictionary: t = M6,
|
|
3426
3414
|
...o
|
|
3427
3415
|
}) {
|
|
3428
3416
|
const c = t[e] ?? null;
|
|
3429
|
-
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ s.jsx(
|
|
3417
|
+
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ s.jsx(k8, { multiIcon: c, ...o });
|
|
3430
3418
|
}
|
|
3431
|
-
const m6 = "_grid_1cmpp_1", Z6 = "_header_1cmpp_11", j6 = "_content_1cmpp_17", C6 = "_footer_1cmpp_23", S6 = "_volume_1cmpp_29",
|
|
3419
|
+
const m6 = "_grid_1cmpp_1", Z6 = "_header_1cmpp_11", j6 = "_content_1cmpp_17", C6 = "_footer_1cmpp_23", S6 = "_volume_1cmpp_29", h1 = {
|
|
3432
3420
|
grid: m6,
|
|
3433
3421
|
header: Z6,
|
|
3434
3422
|
content: j6,
|
|
3435
3423
|
footer: C6,
|
|
3436
3424
|
volume: S6
|
|
3437
|
-
},
|
|
3438
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3439
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3440
|
-
r && /* @__PURE__ */ s.jsx("div", { className:
|
|
3441
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3425
|
+
}, i5 = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ s.jsxs("div", { className: h1.grid, children: [
|
|
3426
|
+
/* @__PURE__ */ s.jsx("div", { className: h1.header, children: e }),
|
|
3427
|
+
/* @__PURE__ */ s.jsx("div", { className: h1.content, children: o }),
|
|
3428
|
+
r && /* @__PURE__ */ s.jsx("div", { className: h1.volume, children: c }),
|
|
3429
|
+
/* @__PURE__ */ s.jsx("div", { className: h1.footer, children: t })
|
|
3442
3430
|
] }), b6 = "_grid_11w5q_1", I6 = "_header_11w5q_11", R6 = "_content_11w5q_17", Z1 = {
|
|
3443
3431
|
grid: b6,
|
|
3444
3432
|
header: I6,
|
|
3445
3433
|
content: R6
|
|
3446
|
-
},
|
|
3434
|
+
}, a5 = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${Z1.grid}`, children: [
|
|
3447
3435
|
/* @__PURE__ */ s.jsx("div", { className: Z1.header, children: t }),
|
|
3448
3436
|
c && /* @__PURE__ */ s.jsx("div", { className: Z1.leftNav, children: c }),
|
|
3449
3437
|
/* @__PURE__ */ s.jsx("div", { className: Z1.content, children: o })
|
|
3450
|
-
] }), y6 = "_grid_1uwfo_1", E6 = "_header_1uwfo_11",
|
|
3438
|
+
] }), y6 = "_grid_1uwfo_1", E6 = "_header_1uwfo_11", P6 = "_content_1uwfo_17", A1 = {
|
|
3451
3439
|
grid: y6,
|
|
3452
3440
|
header: E6,
|
|
3453
|
-
content:
|
|
3454
|
-
},
|
|
3441
|
+
content: P6
|
|
3442
|
+
}, u5 = ({ className: e, header: t, content: o }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${A1.grid}`, children: [
|
|
3455
3443
|
/* @__PURE__ */ s.jsx("div", { className: A1.header, children: t }),
|
|
3456
3444
|
/* @__PURE__ */ s.jsx("div", { className: A1.content, children: o })
|
|
3457
3445
|
] });
|
|
3458
|
-
class
|
|
3446
|
+
class d5 {
|
|
3459
3447
|
constructor() {
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3448
|
+
G(this, "currentShareText");
|
|
3449
|
+
G(this, "enabled");
|
|
3450
|
+
G(this, "isSharing");
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
function h5() {
|
|
3454
|
+
return console.log(location.pathname), location.pathname;
|
|
3455
|
+
}
|
|
3456
|
+
var T6 = /* @__PURE__ */ ((e) => (e[e.NotSet = 0] = "NotSet", e[e.Sunday = 1] = "Sunday", e[e.Monday = 2] = "Monday", e[e.Tuesday = 4] = "Tuesday", e[e.Wednesday = 8] = "Wednesday", e[e.Thursday = 16] = "Thursday", e[e.Friday = 32] = "Friday", e[e.Saturday = 64] = "Saturday", e))(T6 || {});
|
|
3457
|
+
class v5 {
|
|
3458
|
+
constructor(t, o) {
|
|
3459
|
+
G(this, "path");
|
|
3460
|
+
G(this, "handler");
|
|
3461
|
+
this.path = t, this.handler = o;
|
|
3463
3462
|
}
|
|
3464
3463
|
}
|
|
3464
|
+
const g5 = "$off";
|
|
3465
3465
|
export {
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
U8 as
|
|
3466
|
+
me as Clock,
|
|
3467
|
+
T6 as DaysOfWeek,
|
|
3468
|
+
c5 as ErrorBox,
|
|
3469
|
+
k8 as IconButton,
|
|
3470
|
+
U8 as IconMultiAlert,
|
|
3471
|
+
W8 as IconMultiBan,
|
|
3471
3472
|
F8 as IconMultiCamera,
|
|
3472
3473
|
H8 as IconMultiCheck,
|
|
3473
3474
|
K8 as IconMultiController,
|
|
@@ -3491,27 +3492,31 @@ export {
|
|
|
3491
3492
|
i6 as IconMultiRoomPC,
|
|
3492
3493
|
a6 as IconMultiShade,
|
|
3493
3494
|
u6 as IconMultiSun,
|
|
3494
|
-
|
|
3495
|
+
r5 as IconMultiTemplate,
|
|
3495
3496
|
d6 as IconMultiUpArrow,
|
|
3496
|
-
|
|
3497
|
-
|
|
3497
|
+
h6 as IconMultiVolDown,
|
|
3498
|
+
v6 as IconMultiVolMute,
|
|
3498
3499
|
g6 as IconMultiVolUp,
|
|
3499
3500
|
f6 as IconMultiWireless,
|
|
3500
3501
|
p6 as IconMultiX,
|
|
3501
3502
|
w6 as IconMultiXbox,
|
|
3502
|
-
|
|
3503
|
-
|
|
3503
|
+
i5 as MainLayout,
|
|
3504
|
+
v5 as MessageHandler,
|
|
3505
|
+
pe as MobileControlProvider,
|
|
3504
3506
|
j as MultiStateIconContainer,
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3507
|
+
l5 as NamedIconButton,
|
|
3508
|
+
d5 as ShareState,
|
|
3509
|
+
a5 as TechLayout,
|
|
3510
|
+
u5 as TechPinLayout,
|
|
3511
|
+
I3 as WebsocketContext,
|
|
3509
3512
|
p8 as appConfigActions,
|
|
3510
|
-
|
|
3511
|
-
|
|
3513
|
+
N as devicesActions,
|
|
3514
|
+
h5 as getBaseLocation,
|
|
3515
|
+
V1 as httpClient,
|
|
3512
3516
|
M6 as iconsDictionary,
|
|
3513
|
-
|
|
3514
|
-
|
|
3517
|
+
g5 as roomOffSourceKey,
|
|
3518
|
+
e1 as roomsActions,
|
|
3519
|
+
W as runtimeConfigActions,
|
|
3515
3520
|
Z3 as selectAllDevices,
|
|
3516
3521
|
x2 as selectApiPath,
|
|
3517
3522
|
w2 as selectAppConfig,
|
|
@@ -3521,26 +3526,26 @@ export {
|
|
|
3521
3526
|
i8 as selectError,
|
|
3522
3527
|
e8 as selectIsTouchpanel,
|
|
3523
3528
|
M2 as selectLogoPath,
|
|
3524
|
-
|
|
3529
|
+
U1 as selectModalVisibility,
|
|
3525
3530
|
m2 as selectPartnerMetadata,
|
|
3526
|
-
|
|
3527
|
-
|
|
3531
|
+
k2 as selectRoomAdvancedSharingActive,
|
|
3532
|
+
P2 as selectRoomAudioControlPointList,
|
|
3528
3533
|
b2 as selectRoomByKey,
|
|
3529
3534
|
$2 as selectRoomCodecContentDestinationKey,
|
|
3530
3535
|
C2 as selectRoomConfiguration,
|
|
3531
3536
|
_2 as selectRoomDestinationList,
|
|
3532
|
-
|
|
3537
|
+
T2 as selectRoomDestinations,
|
|
3533
3538
|
F2 as selectRoomDisplayStates,
|
|
3534
3539
|
L2 as selectRoomEnvironmentalDevices,
|
|
3535
3540
|
A2 as selectRoomInCall,
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3541
|
+
O2 as selectRoomIsCoolingDown,
|
|
3542
|
+
V2 as selectRoomIsOn,
|
|
3543
|
+
B2 as selectRoomIsWarmingUp,
|
|
3539
3544
|
q2 as selectRoomKey,
|
|
3540
3545
|
y2 as selectRoomLevelControls,
|
|
3541
3546
|
I2 as selectRoomName,
|
|
3542
|
-
|
|
3543
|
-
|
|
3547
|
+
D2 as selectRoomProgramAudioDestinationKey,
|
|
3548
|
+
U2 as selectRoomShareState,
|
|
3544
3549
|
E2 as selectRoomSourceList,
|
|
3545
3550
|
R2 as selectRoomVolume,
|
|
3546
3551
|
S2 as selectRooms,
|
|
@@ -3553,103 +3558,103 @@ export {
|
|
|
3553
3558
|
N2 as selectTouchpanelKey,
|
|
3554
3559
|
J2 as selectUserCode,
|
|
3555
3560
|
G2 as selectWsIsConnected,
|
|
3556
|
-
|
|
3561
|
+
W2 as selectZoomRoomControllerKey,
|
|
3557
3562
|
m as store,
|
|
3558
|
-
|
|
3563
|
+
q as uiActions,
|
|
3559
3564
|
g8 as uiReducer,
|
|
3560
3565
|
O6 as useApiPath,
|
|
3561
3566
|
Z2 as useAppConfig,
|
|
3562
3567
|
p2 as useAppDispatch,
|
|
3563
3568
|
p as useAppSelector,
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3569
|
+
xe as useAvrControl,
|
|
3570
|
+
v as useButtonHeldHeartbeat,
|
|
3571
|
+
Me as useCameraBase,
|
|
3567
3572
|
s8 as useClientId,
|
|
3568
3573
|
$8 as useDeviceIBasicVolumeWithFeedback,
|
|
3569
|
-
|
|
3570
|
-
|
|
3574
|
+
Ze as useDevicePresetsModel,
|
|
3575
|
+
je as useEndpoint,
|
|
3571
3576
|
d8 as useError,
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3577
|
+
Ne as useGetAllDeviceStateFromRoomConfiguration,
|
|
3578
|
+
U6 as useGetAllDevices,
|
|
3579
|
+
F6 as useGetAllRooms,
|
|
3575
3580
|
ve as useGetCurrentPopoverIdForGroup,
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
+
y as useGetDevice,
|
|
3582
|
+
we as useGetIBasicVolumeWithFeedback,
|
|
3583
|
+
H6 as useGetRoom,
|
|
3584
|
+
ce as useGetRoomDisplayStates,
|
|
3585
|
+
re as useGetZoomRoomControllerKey,
|
|
3581
3586
|
R3 as useIBasicVolumeWithFeedback,
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3587
|
+
Ce as useIChannel,
|
|
3588
|
+
Se as useIColor,
|
|
3589
|
+
be as useICommunicationMonitor,
|
|
3590
|
+
Re as useIDPad,
|
|
3591
|
+
Ie as useIDeviceInfoMessenger,
|
|
3592
|
+
ye as useIDspPresets,
|
|
3593
|
+
Ee as useIDvr,
|
|
3594
|
+
Pe as useIEssentialsRoomCombiner,
|
|
3595
|
+
Te as useIHasCameras,
|
|
3591
3596
|
y3 as useIHasPowerControl,
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3597
|
+
k1 as useIHasSelectableItems,
|
|
3598
|
+
_e as useIHumiditySensor,
|
|
3599
|
+
Le as useILevelControls,
|
|
3600
|
+
De as useILightingScenes,
|
|
3601
|
+
$e as useIMatrixRouting,
|
|
3602
|
+
Ae as useIMcCiscoCodecUserInterfaceAppControl,
|
|
3603
|
+
Be as useINumeric,
|
|
3599
3604
|
Oe as useIProjectorScreenLiftControl,
|
|
3600
|
-
|
|
3605
|
+
Ve as useIRoomEventSchedule,
|
|
3601
3606
|
ke as useIRunDefaultPresentRoute,
|
|
3602
|
-
|
|
3607
|
+
Ue as useIRunDirectRouteAction,
|
|
3603
3608
|
We as useIRunRouteAction,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3609
|
+
Fe as useISetTopBoxControls,
|
|
3610
|
+
He as useIShadesOpenCloseStop,
|
|
3611
|
+
Ke as useIShutdownPromptTimer,
|
|
3612
|
+
Ge as useISwitchedOutput,
|
|
3613
|
+
qe as useITechPassword,
|
|
3614
|
+
Ye as useITemperatureSensor,
|
|
3615
|
+
ze as useITheme,
|
|
3616
|
+
Je as useITransport,
|
|
3612
3617
|
C8 as useInitialize,
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3618
|
+
ae as useIsTouchpanel,
|
|
3619
|
+
V6 as useLogoPath,
|
|
3620
|
+
Xe as useMobileControlTouchpanelController,
|
|
3621
|
+
e5 as useOverflow,
|
|
3617
3622
|
k6 as usePartnerMetadata,
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3623
|
+
D8 as usePressHoldRelease,
|
|
3624
|
+
oe as useRoomAdvancedSharingActive,
|
|
3625
|
+
q6 as useRoomAudioControlPointList,
|
|
3626
|
+
Q6 as useRoomCodecContentDestinationKey,
|
|
3622
3627
|
W6 as useRoomConfiguration,
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3628
|
+
z6 as useRoomDestinationList,
|
|
3629
|
+
Y6 as useRoomDestinations,
|
|
3630
|
+
J6 as useRoomEnvironmentalDevices,
|
|
3631
|
+
t5 as useRoomIBasicVolumeWithFeedback,
|
|
3632
|
+
N6 as useRoomInCall,
|
|
3633
|
+
te as useRoomIsCoolingDown,
|
|
3634
|
+
se as useRoomIsOn,
|
|
3635
|
+
ee as useRoomIsWarmingUp,
|
|
3631
3636
|
t8 as useRoomKey,
|
|
3632
3637
|
K2 as useRoomLevelControls,
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3638
|
+
K6 as useRoomName,
|
|
3639
|
+
X6 as useRoomProgramAudioDestinationKey,
|
|
3640
|
+
ne as useRoomShareState,
|
|
3641
|
+
G6 as useRoomSourceList,
|
|
3637
3642
|
C1 as useRoomState,
|
|
3638
3643
|
H2 as useRoomVolume,
|
|
3639
|
-
|
|
3640
|
-
|
|
3644
|
+
le as useRuntimeInfo,
|
|
3645
|
+
s5 as useScroll,
|
|
3641
3646
|
c8 as useServerIsRunningOnProcessorHardware,
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3647
|
+
de as useShowIncomingCallModal,
|
|
3648
|
+
he as useShowModal,
|
|
3649
|
+
ge as useShowPopoverById,
|
|
3650
|
+
h8 as useShowReconnect,
|
|
3651
|
+
ue as useShowShutdownModal,
|
|
3652
|
+
o5 as useSystemControl,
|
|
3648
3653
|
o8 as useSystemUuid,
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3654
|
+
fe as useTheme,
|
|
3655
|
+
n5 as useTimeAndDate,
|
|
3656
|
+
ie as useTouchpanelKey,
|
|
3657
|
+
Qe as useTwoWayDisplayBase,
|
|
3653
3658
|
n8 as useUserCode,
|
|
3654
3659
|
b as useWebsocketContext,
|
|
3655
3660
|
j3 as useWsIsConnected
|