@pepperdash/mobile-control-react-app-core 1.20.11 → 1.20.13
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 +228 -218
- package/dist/mobile-control-react-app-core.umd.js +6 -6
- package/dist/shared/disconnectedMessage/DisconnectedMessage.d.ts.map +1 -1
- package/dist/shared/hooks/useGetAllDeviceStateFromRoomConfiguration.d.ts +1 -1
- package/dist/shared/hooks/useGetAllDeviceStateFromRoomConfiguration.d.ts.map +1 -1
- package/dist/store/runtimeConfig/runtime.hooks.d.ts +1 -1
- package/dist/store/runtimeConfig/runtime.hooks.d.ts.map +1 -1
- package/dist/store/runtimeConfig/runtime.selectors.d.ts +4 -4
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts +9 -9
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var G = (e, t, o) =>
|
|
4
|
-
import
|
|
5
|
-
import { useDispatch as
|
|
6
|
-
import { createSelector as
|
|
7
|
-
import
|
|
1
|
+
var s2 = Object.defineProperty;
|
|
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 G = (e, t, o) => o2(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import n2, { AxiosError as c2 } from "axios";
|
|
5
|
+
import { useDispatch as r2, useSelector as l2, Provider as i2 } from "react-redux";
|
|
6
|
+
import { createSelector as p, createSlice as g1, combineReducers as a2, configureStore as u2 } from "@reduxjs/toolkit";
|
|
7
|
+
import p3, { 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
|
|
10
|
-
const
|
|
9
|
+
import { useNavigate as v2, useRouteError as g2, isRouteErrorResponse as f2 } from "react-router-dom";
|
|
10
|
+
const w2 = r2.withTypes(), w = l2.withTypes(), j1 = (e) => e.appConfig, p2 = p(
|
|
11
11
|
j1,
|
|
12
12
|
(e) => e.config
|
|
13
|
-
),
|
|
13
|
+
), x2 = p(
|
|
14
14
|
j1,
|
|
15
15
|
(e) => e.config.apiPath
|
|
16
|
-
),
|
|
16
|
+
), M2 = p(
|
|
17
17
|
j1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
|
-
),
|
|
19
|
+
), m2 = p(
|
|
20
20
|
j1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
),
|
|
22
|
+
), Z2 = () => w(p2), O6 = () => w(x2), V6 = () => w(M2), k6 = () => w(m2), m3 = (e) => e.devices, Z3 = p(
|
|
23
23
|
m3,
|
|
24
24
|
(e) => e
|
|
25
|
-
),
|
|
25
|
+
), j2 = (e) => p(
|
|
26
26
|
m3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
), U6 = () =>
|
|
28
|
+
), U6 = () => w(Z3);
|
|
29
29
|
function _(e) {
|
|
30
|
-
return
|
|
30
|
+
return w(j2(e));
|
|
31
31
|
}
|
|
32
|
-
const L = (e) => e.rooms,
|
|
32
|
+
const L = (e) => e.rooms, C2 = (e) => p(
|
|
33
33
|
L,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
),
|
|
35
|
+
), S2 = p(
|
|
36
36
|
L,
|
|
37
37
|
(e) => e
|
|
38
|
-
),
|
|
38
|
+
), b2 = (e) => p(
|
|
39
39
|
L,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
),
|
|
41
|
+
), I2 = (e) => p(
|
|
42
42
|
L,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
44
|
+
), R2 = (e, t) => p(
|
|
45
45
|
L,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
),
|
|
47
|
+
), y2 = (e) => p(
|
|
48
48
|
L,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
|
-
),
|
|
50
|
+
), E2 = (e) => p(
|
|
51
51
|
L,
|
|
52
52
|
(t) => {
|
|
53
53
|
var o, c;
|
|
54
54
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
|
|
55
55
|
}
|
|
56
|
-
),
|
|
56
|
+
), T2 = (e) => p(
|
|
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
|
+
), _2 = (e) => p(
|
|
63
63
|
L,
|
|
64
64
|
(t) => {
|
|
65
65
|
var o, c;
|
|
66
66
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations : void 0;
|
|
67
67
|
}
|
|
68
|
-
),
|
|
68
|
+
), P2 = (e) => p(
|
|
69
69
|
L,
|
|
70
70
|
(t) => {
|
|
71
71
|
var o, c;
|
|
72
72
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList : void 0;
|
|
73
73
|
}
|
|
74
|
-
),
|
|
74
|
+
), L2 = (e) => p(
|
|
75
75
|
L,
|
|
76
76
|
(t) => {
|
|
77
77
|
var o, c;
|
|
78
78
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.environmentalDevices : void 0;
|
|
79
79
|
}
|
|
80
|
-
),
|
|
80
|
+
), D2 = (e) => p(
|
|
81
81
|
L,
|
|
82
82
|
(t) => {
|
|
83
83
|
var o, c, r, i, d, a, f, x;
|
|
84
84
|
return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (d = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : d.sinkKey : ((x = (f = (a = t[e]) == null ? void 0 : a.configuration) == null ? void 0 : f.destinationList.defaultDisplay) == null ? void 0 : x.sinkKey) || "";
|
|
85
85
|
}
|
|
86
|
-
),
|
|
86
|
+
), $2 = (e) => p(
|
|
87
87
|
L,
|
|
88
88
|
(t) => {
|
|
89
89
|
var o, c, r;
|
|
90
90
|
return t[e] ? (r = (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList.codecContent) == null ? void 0 : r.sinkKey : void 0;
|
|
91
91
|
}
|
|
92
|
-
),
|
|
92
|
+
), A2 = (e) => p(
|
|
93
93
|
L,
|
|
94
94
|
(t) => {
|
|
95
95
|
var o;
|
|
96
96
|
return t[e] ? (o = t[e]) == null ? void 0 : o.isInCall : void 0;
|
|
97
97
|
}
|
|
98
|
-
),
|
|
98
|
+
), B2 = (e) => p(
|
|
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) => p(
|
|
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) => p(
|
|
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) => p(
|
|
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) => p(
|
|
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) => p(
|
|
129
129
|
L,
|
|
130
130
|
(t) => {
|
|
131
131
|
var o, c;
|
|
132
132
|
return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
|
|
133
133
|
}
|
|
134
|
-
),
|
|
134
|
+
), F2 = p(
|
|
135
135
|
[
|
|
136
136
|
(e, t) => t,
|
|
137
137
|
() => Z3,
|
|
@@ -147,76 +147,76 @@ const L = (e) => e.rooms, j2 = (e) => w(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function W6(e) {
|
|
150
|
-
return
|
|
151
|
-
|
|
150
|
+
return w(
|
|
151
|
+
C2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function F6() {
|
|
155
|
-
return
|
|
155
|
+
return w(S2);
|
|
156
156
|
}
|
|
157
157
|
function C1(e) {
|
|
158
|
-
return
|
|
158
|
+
return w(b2(e));
|
|
159
159
|
}
|
|
160
|
-
const H6 = C1, K6 = (e) =>
|
|
161
|
-
|
|
162
|
-
),
|
|
163
|
-
|
|
164
|
-
),
|
|
160
|
+
const H6 = C1, K6 = (e) => w(
|
|
161
|
+
I2(e)
|
|
162
|
+
), H2 = (e, t) => w(
|
|
163
|
+
R2(e, t)
|
|
164
|
+
), K2 = (e) => w(y2(e)) || void 0, G6 = (e) => w(E2(e)), q6 = (e) => w(T2(e)), Y6 = (e) => w(_2(e)), z6 = (e) => w(P2(e)), J6 = (e) => w(L2(e)), X6 = (e) => w(D2(e)), Q6 = (e) => w($2(e)), N6 = (e) => w(A2(e)), ee = (e) => w(B2(e)), te = (e) => w(O2(e)), se = (e) => w(V2(e)), oe = (e) => w(k2(e)), ne = (e) => w(U2(e)), ce = (e) => w((t) => F2(t, e)), re = (e) => w(W2(e)), J = (e) => e.runtimeConfig, G2 = p(
|
|
165
165
|
J,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
|
-
),
|
|
167
|
+
), q2 = p(
|
|
168
168
|
J,
|
|
169
169
|
(e) => e.currentRoomKey
|
|
170
|
-
),
|
|
170
|
+
), Y2 = p(
|
|
171
171
|
J,
|
|
172
172
|
(e) => e.roomData.clientId
|
|
173
|
-
),
|
|
173
|
+
), z2 = p(
|
|
174
174
|
J,
|
|
175
175
|
(e) => e.roomData.systemUuid
|
|
176
|
-
),
|
|
176
|
+
), J2 = p(
|
|
177
177
|
J,
|
|
178
178
|
(e) => e.roomData.userCode
|
|
179
|
-
),
|
|
179
|
+
), X2 = p(
|
|
180
180
|
J,
|
|
181
181
|
(e) => e.serverIsRunningOnProcessorHardware
|
|
182
|
-
),
|
|
182
|
+
), Q2 = p(
|
|
183
183
|
J,
|
|
184
184
|
(e) => {
|
|
185
185
|
var t;
|
|
186
186
|
return (t = e.roomData.config) == null ? void 0 : t.runtimeInfo;
|
|
187
187
|
}
|
|
188
|
-
),
|
|
188
|
+
), N2 = p(
|
|
189
189
|
J,
|
|
190
190
|
(e) => e.touchpanelKey
|
|
191
|
-
),
|
|
191
|
+
), e8 = p(
|
|
192
192
|
J,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
),
|
|
194
|
+
), j3 = () => w(G2), t8 = () => w(q2), s8 = () => w(Y2), o8 = () => w(z2), n8 = () => w(J2), c8 = () => w(X2), le = () => w(Q2), ie = () => w(N2), ae = () => w(e8), c1 = (e) => e.ui, U1 = (e) => p(
|
|
195
195
|
c1,
|
|
196
196
|
(t) => t.modalVisibility[e]
|
|
197
|
-
), r8 = (e) =>
|
|
197
|
+
), r8 = (e) => p(
|
|
198
198
|
c1,
|
|
199
199
|
(t) => {
|
|
200
200
|
const o = t.popoverVisibility[e];
|
|
201
201
|
if (o)
|
|
202
202
|
return Object.keys(o).find((c) => o[c]);
|
|
203
203
|
}
|
|
204
|
-
), l8 = (e, t) =>
|
|
204
|
+
), l8 = (e, t) => p(
|
|
205
205
|
c1,
|
|
206
206
|
(o) => {
|
|
207
207
|
var c;
|
|
208
208
|
return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
|
|
209
209
|
}
|
|
210
|
-
), i8 =
|
|
210
|
+
), i8 = p(
|
|
211
211
|
c1,
|
|
212
212
|
(e) => e.error
|
|
213
|
-
), a8 =
|
|
213
|
+
), a8 = p(
|
|
214
214
|
c1,
|
|
215
215
|
(e) => e.showReconnect
|
|
216
|
-
), u8 =
|
|
216
|
+
), u8 = p(
|
|
217
217
|
c1,
|
|
218
218
|
(e) => e.theme
|
|
219
|
-
), ue = () =>
|
|
219
|
+
), ue = () => w(U1("showShutdownModal")), de = () => w(U1("showIncomingCallModal")), he = (e) => w(U1(e)), ve = (e) => w(r8(e)), ge = (e, t) => w(l8(e, t)), d8 = () => w(i8), h8 = () => w(a8), fe = () => w(u8), v8 = {
|
|
220
220
|
showReconnect: !1,
|
|
221
221
|
error: "",
|
|
222
222
|
modalVisibility: {
|
|
@@ -224,7 +224,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
224
224
|
showIncomingCallModal: !1
|
|
225
225
|
},
|
|
226
226
|
popoverVisibility: {}
|
|
227
|
-
},
|
|
227
|
+
}, C3 = g1({
|
|
228
228
|
name: "ui",
|
|
229
229
|
initialState: v8,
|
|
230
230
|
reducers: {
|
|
@@ -257,7 +257,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
257
257
|
e.theme = t.payload;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
}), q =
|
|
260
|
+
}), q = C3.actions, g8 = C3.reducer, f8 = {
|
|
261
261
|
config: {
|
|
262
262
|
enableDev: !1,
|
|
263
263
|
apiPath: "",
|
|
@@ -267,7 +267,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
267
267
|
loginMode: "",
|
|
268
268
|
modes: {}
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, S3 = g1({
|
|
271
271
|
name: "appConfig",
|
|
272
272
|
initialState: f8,
|
|
273
273
|
reducers: {
|
|
@@ -275,7 +275,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
275
275
|
e.config = t.payload;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), w8 = S3.actions, p8 = S3.reducer, d3 = {}, B1 = g1({
|
|
279
279
|
name: "devices",
|
|
280
280
|
initialState: d3,
|
|
281
281
|
reducers: {
|
|
@@ -313,7 +313,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
313
313
|
apiVersion: "",
|
|
314
314
|
serverIsRunningOnProcessorHardware: !1,
|
|
315
315
|
websocket: {
|
|
316
|
-
isConnected:
|
|
316
|
+
isConnected: void 0
|
|
317
317
|
},
|
|
318
318
|
pluginVersion: "",
|
|
319
319
|
disconnectionMessage: "",
|
|
@@ -339,7 +339,7 @@ const H6 = C1, K6 = (e) => p(
|
|
|
339
339
|
userCode: "",
|
|
340
340
|
qrUrl: ""
|
|
341
341
|
}
|
|
342
|
-
},
|
|
342
|
+
}, b3 = g1({
|
|
343
343
|
name: "runtimeConfig",
|
|
344
344
|
initialState: m8,
|
|
345
345
|
reducers: {
|
|
@@ -368,17 +368,17 @@ const H6 = C1, K6 = (e) => p(
|
|
|
368
368
|
e.touchpanelKey = t.payload;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
}), W =
|
|
372
|
-
appConfig:
|
|
371
|
+
}), W = b3.actions, Z8 = b3.reducer, j8 = a2({
|
|
372
|
+
appConfig: p8,
|
|
373
373
|
runtimeConfig: Z8,
|
|
374
374
|
rooms: M8,
|
|
375
375
|
devices: x8,
|
|
376
376
|
ui: g8
|
|
377
|
-
}), m =
|
|
377
|
+
}), m = u2({
|
|
378
378
|
reducer: j8
|
|
379
|
-
}), V1 =
|
|
379
|
+
}), V1 = n2.create();
|
|
380
380
|
function C8() {
|
|
381
|
-
const e =
|
|
381
|
+
const e = w2();
|
|
382
382
|
return async () => {
|
|
383
383
|
try {
|
|
384
384
|
const t = location.pathname.split("/").filter((r) => r.length > 0);
|
|
@@ -386,7 +386,7 @@ function C8() {
|
|
|
386
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
|
-
e(
|
|
389
|
+
e(w8.setAppConfig(c.data));
|
|
390
390
|
const i = await V1.get(`${r}/version`);
|
|
391
391
|
i.status == 200 && i.data && e(W.setRuntimeConfig(i.data));
|
|
392
392
|
}
|
|
@@ -410,7 +410,7 @@ var v3;
|
|
|
410
410
|
function S8() {
|
|
411
411
|
if (v3) return u1;
|
|
412
412
|
v3 = 1;
|
|
413
|
-
var e =
|
|
413
|
+
var e = p3, 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, f, x) {
|
|
415
415
|
var h, R = {}, D = null, F = null;
|
|
416
416
|
x !== void 0 && (D = "" + x), f.key !== void 0 && (D = "" + f.key), f.ref !== void 0 && (F = f.ref);
|
|
@@ -433,7 +433,7 @@ 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 =
|
|
436
|
+
var e = p3, 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"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), R = 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;
|
|
@@ -526,7 +526,7 @@ function b8() {
|
|
|
526
526
|
function z1() {
|
|
527
527
|
}
|
|
528
528
|
z1.__reactDisabledLog = !0;
|
|
529
|
-
function
|
|
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;
|
|
@@ -549,7 +549,7 @@ function b8() {
|
|
|
549
549
|
l1++;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function T3() {
|
|
553
553
|
{
|
|
554
554
|
if (l1--, l1 === 0) {
|
|
555
555
|
var n = {
|
|
@@ -585,7 +585,7 @@ function b8() {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
var R1 = $.ReactCurrentDispatcher, y1;
|
|
588
|
-
function
|
|
588
|
+
function w1(n, l, u) {
|
|
589
589
|
{
|
|
590
590
|
if (y1 === void 0)
|
|
591
591
|
try {
|
|
@@ -598,16 +598,16 @@ function b8() {
|
|
|
598
598
|
` + y1 + n;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
var E1 = !1,
|
|
601
|
+
var E1 = !1, p1;
|
|
602
602
|
{
|
|
603
|
-
var
|
|
604
|
-
|
|
603
|
+
var _3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
604
|
+
p1 = new _3();
|
|
605
605
|
}
|
|
606
606
|
function J1(n, l) {
|
|
607
607
|
if (!n || E1)
|
|
608
608
|
return "";
|
|
609
609
|
{
|
|
610
|
-
var u =
|
|
610
|
+
var u = p1.get(n);
|
|
611
611
|
if (u !== void 0)
|
|
612
612
|
return u;
|
|
613
613
|
}
|
|
@@ -616,7 +616,7 @@ function b8() {
|
|
|
616
616
|
var S = Error.prepareStackTrace;
|
|
617
617
|
Error.prepareStackTrace = void 0;
|
|
618
618
|
var I;
|
|
619
|
-
I = R1.current, R1.current = null,
|
|
619
|
+
I = R1.current, R1.current = null, E3();
|
|
620
620
|
try {
|
|
621
621
|
if (l) {
|
|
622
622
|
var Z = function() {
|
|
@@ -662,22 +662,22 @@ function b8() {
|
|
|
662
662
|
if (T--, P--, P < 0 || M[T] !== O[P]) {
|
|
663
663
|
var U = `
|
|
664
664
|
` + M[T].replace(" at new ", " at ");
|
|
665
|
-
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
665
|
+
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" && p1.set(n, U), U;
|
|
666
666
|
}
|
|
667
667
|
while (T >= 1 && P >= 0);
|
|
668
668
|
break;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
} finally {
|
|
672
|
-
E1 = !1, R1.current = I,
|
|
672
|
+
E1 = !1, R1.current = I, T3(), Error.prepareStackTrace = S;
|
|
673
673
|
}
|
|
674
|
-
var o1 = n ? n.displayName || n.name : "", Q = o1 ?
|
|
675
|
-
return typeof n == "function" &&
|
|
674
|
+
var o1 = n ? n.displayName || n.name : "", Q = o1 ? w1(o1) : "";
|
|
675
|
+
return typeof n == "function" && p1.set(n, Q), Q;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function P3(n, l, u) {
|
|
678
678
|
return J1(n, !1);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function L3(n) {
|
|
681
681
|
var l = n.prototype;
|
|
682
682
|
return !!(l && l.isReactComponent);
|
|
683
683
|
}
|
|
@@ -685,19 +685,19 @@ function b8() {
|
|
|
685
685
|
if (n == null)
|
|
686
686
|
return "";
|
|
687
687
|
if (typeof n == "function")
|
|
688
|
-
return J1(n,
|
|
688
|
+
return J1(n, L3(n));
|
|
689
689
|
if (typeof n == "string")
|
|
690
|
-
return
|
|
690
|
+
return w1(n);
|
|
691
691
|
switch (n) {
|
|
692
692
|
case x:
|
|
693
|
-
return
|
|
693
|
+
return w1("Suspense");
|
|
694
694
|
case h:
|
|
695
|
-
return
|
|
695
|
+
return w1("SuspenseList");
|
|
696
696
|
}
|
|
697
697
|
if (typeof n == "object")
|
|
698
698
|
switch (n.$$typeof) {
|
|
699
699
|
case f:
|
|
700
|
-
return
|
|
700
|
+
return P3(n.render);
|
|
701
701
|
case R:
|
|
702
702
|
return x1(n.type, l, u);
|
|
703
703
|
case D: {
|
|
@@ -718,7 +718,7 @@ function b8() {
|
|
|
718
718
|
} else
|
|
719
719
|
Q1.setExtraStackFrame(null);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function D3(n, l, u, v, S) {
|
|
722
722
|
{
|
|
723
723
|
var I = Function.call.bind(i1);
|
|
724
724
|
for (var Z in n)
|
|
@@ -737,17 +737,17 @@ function b8() {
|
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
var
|
|
740
|
+
var $3 = Array.isArray;
|
|
741
741
|
function T1(n) {
|
|
742
|
-
return
|
|
742
|
+
return $3(n);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function A3(n) {
|
|
745
745
|
{
|
|
746
746
|
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
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 (
|
|
762
|
-
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
761
|
+
if (B3(n))
|
|
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));
|
|
@@ -797,7 +797,7 @@ function b8() {
|
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function F3(n, l) {
|
|
801
801
|
{
|
|
802
802
|
var u = function() {
|
|
803
803
|
o3 || (o3 = !0, A("%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)", l));
|
|
@@ -808,7 +808,7 @@ function b8() {
|
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
var
|
|
811
|
+
var H3 = function(n, l, u, v, S, I, Z) {
|
|
812
812
|
var M = {
|
|
813
813
|
// This tag allows us to uniquely identify this as a React Element
|
|
814
814
|
$$typeof: t,
|
|
@@ -837,12 +837,12 @@ function b8() {
|
|
|
837
837
|
value: S
|
|
838
838
|
}), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
|
|
839
839
|
};
|
|
840
|
-
function
|
|
840
|
+
function K3(n, l, u, v, S) {
|
|
841
841
|
{
|
|
842
842
|
var I, Z = {}, M = null, O = null;
|
|
843
|
-
u !== void 0 && (e3(u), M = "" + u),
|
|
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 (I in l)
|
|
845
|
-
i1.call(l, I) && !
|
|
845
|
+
i1.call(l, I) && !O3.hasOwnProperty(I) && (Z[I] = l[I]);
|
|
846
846
|
if (n && n.defaultProps) {
|
|
847
847
|
var T = n.defaultProps;
|
|
848
848
|
for (I in T)
|
|
@@ -850,9 +850,9 @@ function b8() {
|
|
|
850
850
|
}
|
|
851
851
|
if (M || O) {
|
|
852
852
|
var P = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
853
|
-
M &&
|
|
853
|
+
M && W3(Z, P), O && F3(Z, P);
|
|
854
854
|
}
|
|
855
|
-
return
|
|
855
|
+
return H3(n, M, O, S, v, t3.current, Z);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
var _1 = $.ReactCurrentOwner, n3 = $.ReactDebugCurrentFrame;
|
|
@@ -880,11 +880,11 @@ Check the render method of \`` + n + "`.";
|
|
|
880
880
|
return "";
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function G3(n) {
|
|
884
884
|
return "";
|
|
885
885
|
}
|
|
886
886
|
var r3 = {};
|
|
887
|
-
function
|
|
887
|
+
function q3(n) {
|
|
888
888
|
{
|
|
889
889
|
var l = c3();
|
|
890
890
|
if (!l) {
|
|
@@ -901,7 +901,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
901
901
|
if (!n._store || n._store.validated || n.key != null)
|
|
902
902
|
return;
|
|
903
903
|
n._store.validated = !0;
|
|
904
|
-
var u =
|
|
904
|
+
var u = q3(l);
|
|
905
905
|
if (r3[u])
|
|
906
906
|
return;
|
|
907
907
|
r3[u] = !0;
|
|
@@ -928,7 +928,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Y3(n) {
|
|
932
932
|
{
|
|
933
933
|
var l = n.type;
|
|
934
934
|
if (l == null || typeof l == "string")
|
|
@@ -944,7 +944,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
944
944
|
return;
|
|
945
945
|
if (u) {
|
|
946
946
|
var v = K(l);
|
|
947
|
-
|
|
947
|
+
D3(u, n.props, "prop", v, n);
|
|
948
948
|
} else if (l.PropTypes !== void 0 && !P1) {
|
|
949
949
|
P1 = !0;
|
|
950
950
|
var S = K(l);
|
|
@@ -953,7 +953,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
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.");
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function z3(n) {
|
|
957
957
|
{
|
|
958
958
|
for (var l = Object.keys(n.props), u = 0; u < l.length; u++) {
|
|
959
959
|
var v = l[u];
|
|
@@ -972,12 +972,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
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 O =
|
|
975
|
+
var O = G3();
|
|
976
976
|
O ? M += O : M += c3();
|
|
977
977
|
var T;
|
|
978
978
|
n === null ? T = "null" : T1(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
|
-
var P =
|
|
980
|
+
var P = K3(n, l, u, S, I);
|
|
981
981
|
if (P == null)
|
|
982
982
|
return P;
|
|
983
983
|
if (Z) {
|
|
@@ -994,30 +994,30 @@ Check the top-level render call using <` + u + ">.");
|
|
|
994
994
|
i3(U, n);
|
|
995
995
|
}
|
|
996
996
|
if (i1.call(l, "key")) {
|
|
997
|
-
var Q = K(n), V = Object.keys(l).filter(function(
|
|
998
|
-
return
|
|
997
|
+
var Q = K(n), V = Object.keys(l).filter(function(t2) {
|
|
998
|
+
return t2 !== "key";
|
|
999
999
|
}), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1000
1000
|
if (!a3[Q + D1]) {
|
|
1001
|
-
var
|
|
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} />`, D1, Q,
|
|
1007
|
+
<%s key={someKey} {...props} />`, D1, Q, e2, Q), a3[Q + D1] = !0;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
return n === c ?
|
|
1010
|
+
return n === c ? z3(P) : Y3(P), P;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function J3(n, l, u) {
|
|
1014
1014
|
return u3(n, l, u, !0);
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function X3(n, l, u) {
|
|
1017
1017
|
return u3(n, l, u, !1);
|
|
1018
1018
|
}
|
|
1019
|
-
var
|
|
1020
|
-
d1.Fragment = c, d1.jsx =
|
|
1019
|
+
var Q3 = X3, N3 = J3;
|
|
1020
|
+
d1.Fragment = c, d1.jsx = Q3, d1.jsxs = N3;
|
|
1021
1021
|
}()), d1;
|
|
1022
1022
|
}
|
|
1023
1023
|
var f3;
|
|
@@ -1028,12 +1028,18 @@ var s = I8();
|
|
|
1028
1028
|
const R8 = "_mwfit_ppa3l_1", y8 = {
|
|
1029
1029
|
mwfit: R8
|
|
1030
1030
|
}, E8 = () => {
|
|
1031
|
-
const { reconnect: e } = b(), t =
|
|
1032
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1031
|
+
const { reconnect: e } = b(), t = j3(), o = d8(), c = h8();
|
|
1032
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(
|
|
1033
|
+
"div",
|
|
1034
|
+
{
|
|
1035
|
+
className: `disconnected-message ${y8.mwfit} mx-auto text-center`,
|
|
1036
|
+
children: [
|
|
1037
|
+
t === void 0 ? /* @__PURE__ */ s.jsx("h1", { children: "Connecting..." }) : /* @__PURE__ */ s.jsx("h1", { children: "Disconnected" }),
|
|
1038
|
+
o && /* @__PURE__ */ s.jsx("h5", { children: o }),
|
|
1039
|
+
c && /* @__PURE__ */ s.jsx("button", { className: "btn btn-secondary btn-lg", onClick: e, children: "Reconnect" })
|
|
1040
|
+
]
|
|
1041
|
+
}
|
|
1042
|
+
) });
|
|
1037
1043
|
};
|
|
1038
1044
|
class T8 {
|
|
1039
1045
|
constructor() {
|
|
@@ -1043,7 +1049,7 @@ class T8 {
|
|
|
1043
1049
|
G(this, "expiry", "current-uuid-expires");
|
|
1044
1050
|
}
|
|
1045
1051
|
}
|
|
1046
|
-
const
|
|
1052
|
+
const w3 = new T8(), I3 = d2({
|
|
1047
1053
|
sendMessage: () => null,
|
|
1048
1054
|
sendSimpleMessage: () => null,
|
|
1049
1055
|
addEventHandler: () => null,
|
|
@@ -1057,13 +1063,13 @@ function P8(e, t) {
|
|
|
1057
1063
|
sessionStorage.setItem(e, t);
|
|
1058
1064
|
}
|
|
1059
1065
|
const L8 = ({ children: e }) => {
|
|
1060
|
-
const [t, o] = H(), c =
|
|
1066
|
+
const [t, o] = H(), c = j3(), r = t8(), i = s8(), d = C8(), a = Z2(), f = o8(), x = n8(), h = c8(), R = v1(null), [D, F] = H(), k = v1({}), X = a1(
|
|
1061
1067
|
async (y) => {
|
|
1062
1068
|
try {
|
|
1063
1069
|
const C = await V1.get(`${y}/ui/joinroom?token=${t}`);
|
|
1064
1070
|
return C.status === 200 && C.data ? (m.dispatch(W.setRoomData(C.data)), !0) : !1;
|
|
1065
1071
|
} catch (C) {
|
|
1066
|
-
return console.log(C), h ? !0 : C instanceof
|
|
1072
|
+
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(q.setErrorMessage(`Token ${t} is invalid. Unable to join room`)), !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);
|
|
1067
1073
|
}
|
|
1068
1074
|
},
|
|
1069
1075
|
[t, h]
|
|
@@ -1087,7 +1093,7 @@ const L8 = ({ children: e }) => {
|
|
|
1087
1093
|
}, []);
|
|
1088
1094
|
return n1(() => {
|
|
1089
1095
|
let C = new URLSearchParams(window.location.search).get("token");
|
|
1090
|
-
C ? (console.log("saving token: ", C), P8(
|
|
1096
|
+
C ? (console.log("saving token: ", C), P8(w3.uuid, C)) : (C = _8(w3.uuid), console.log("loading token: ", C)), o(C), d();
|
|
1091
1097
|
}, []), console.log("connection dependencies", a.apiPath, X, t, D, h), n1(() => {
|
|
1092
1098
|
async function y() {
|
|
1093
1099
|
if (console.log("Attempting to join websocket..."), !a.apiPath || D || !t || !await X(a.apiPath)) return;
|
|
@@ -1185,7 +1191,7 @@ const L8 = ({ children: e }) => {
|
|
|
1185
1191
|
}, [a.apiPath, X, t, D, h]), n1(() => {
|
|
1186
1192
|
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
|
|
1187
1193
|
}, [r, i, c, $]), /* @__PURE__ */ s.jsx(
|
|
1188
|
-
|
|
1194
|
+
I3.Provider,
|
|
1189
1195
|
{
|
|
1190
1196
|
value: {
|
|
1191
1197
|
sendMessage: $,
|
|
@@ -1197,9 +1203,9 @@ const L8 = ({ children: e }) => {
|
|
|
1197
1203
|
children: c ? e : /* @__PURE__ */ s.jsx(E8, {})
|
|
1198
1204
|
}
|
|
1199
1205
|
);
|
|
1200
|
-
},
|
|
1206
|
+
}, we = ({ children: e }) => /* @__PURE__ */ s.jsx(i2, { store: m, children: /* @__PURE__ */ s.jsx(L8, { children: e }) });
|
|
1201
1207
|
function b() {
|
|
1202
|
-
return
|
|
1208
|
+
return h2(I3);
|
|
1203
1209
|
}
|
|
1204
1210
|
function D8({
|
|
1205
1211
|
onPress: e,
|
|
@@ -1237,7 +1243,7 @@ function g(e, t) {
|
|
|
1237
1243
|
}
|
|
1238
1244
|
return D8({ onPress: i, onRelease: d });
|
|
1239
1245
|
}
|
|
1240
|
-
function
|
|
1246
|
+
function R3(e, t) {
|
|
1241
1247
|
const { sendMessage: o, sendSimpleMessage: c } = b(), r = g(`${e}`, "volumeUp"), i = g(`${e}`, "volumeDown");
|
|
1242
1248
|
return t ? {
|
|
1243
1249
|
volumeState: t,
|
|
@@ -1249,7 +1255,7 @@ function I3(e, t) {
|
|
|
1249
1255
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1250
1256
|
} : void 0;
|
|
1251
1257
|
}
|
|
1252
|
-
function
|
|
1258
|
+
function pe(e, t) {
|
|
1253
1259
|
const { sendMessage: o, sendSimpleMessage: c } = b(), r = g(`${e}`, "volumeUp"), i = g(`${e}`, "volumeDown");
|
|
1254
1260
|
return t ? {
|
|
1255
1261
|
volumeState: t,
|
|
@@ -1263,9 +1269,9 @@ function we(e, t) {
|
|
|
1263
1269
|
}
|
|
1264
1270
|
function $8(e) {
|
|
1265
1271
|
const t = _(e), o = `/device/${e}`;
|
|
1266
|
-
return
|
|
1272
|
+
return R3(o, t == null ? void 0 : t.volume);
|
|
1267
1273
|
}
|
|
1268
|
-
function
|
|
1274
|
+
function y3(e) {
|
|
1269
1275
|
const { sendMessage: t } = b();
|
|
1270
1276
|
return { powerOn: () => {
|
|
1271
1277
|
t(`/device/${e}/powerOn`, null);
|
|
@@ -1293,7 +1299,7 @@ function A8(e) {
|
|
|
1293
1299
|
return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1294
1300
|
}
|
|
1295
1301
|
function xe(e) {
|
|
1296
|
-
const t = _(e), o =
|
|
1302
|
+
const t = _(e), o = y3(e), c = k1(e), r = k1(e), i = $8(e), d = A8(e);
|
|
1297
1303
|
if (t)
|
|
1298
1304
|
return {
|
|
1299
1305
|
avrState: t,
|
|
@@ -1383,7 +1389,7 @@ function Te(e) {
|
|
|
1383
1389
|
return { state: t };
|
|
1384
1390
|
}
|
|
1385
1391
|
function _e(e) {
|
|
1386
|
-
const { sendMessage: t, sendSimpleMessage: o } = b(), c = _(e), r =
|
|
1392
|
+
const { sendMessage: t, sendSimpleMessage: o } = b(), c = _(e), r = K2(e), i = c || r;
|
|
1387
1393
|
return i ? {
|
|
1388
1394
|
levelState: i,
|
|
1389
1395
|
setLevel: (h, R) => o(`${h}/level`, R),
|
|
@@ -1544,7 +1550,7 @@ function ze(e) {
|
|
|
1544
1550
|
} : void 0;
|
|
1545
1551
|
}
|
|
1546
1552
|
function Je(e) {
|
|
1547
|
-
const t = _(e), o =
|
|
1553
|
+
const t = _(e), o = y3(e), c = k1(e);
|
|
1548
1554
|
if (!t) return;
|
|
1549
1555
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1550
1556
|
return {
|
|
@@ -1554,31 +1560,35 @@ function Je(e) {
|
|
|
1554
1560
|
powerFb: { powerOnFb: r, powerOffFb: i }
|
|
1555
1561
|
};
|
|
1556
1562
|
}
|
|
1557
|
-
const Xe = ({
|
|
1563
|
+
const Xe = ({
|
|
1564
|
+
config: e
|
|
1565
|
+
}) => {
|
|
1558
1566
|
const { sendMessage: t } = b();
|
|
1559
1567
|
n1(() => {
|
|
1560
1568
|
var c, r, i, d;
|
|
1561
1569
|
if (!e)
|
|
1562
1570
|
return;
|
|
1563
|
-
const o =
|
|
1571
|
+
const o = /* @__PURE__ */ new Set();
|
|
1564
1572
|
if (e.destinations && Object.values(e.destinations).forEach((a) => {
|
|
1565
|
-
o.
|
|
1573
|
+
o.add(a);
|
|
1566
1574
|
}), e.destinationList && Object.values(e.destinationList).forEach((a) => {
|
|
1567
|
-
o.
|
|
1568
|
-
}), e.audioControlPointList && Object.values((c = e.audioControlPointList) == null ? void 0 : c.levelControls).forEach(
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1575
|
+
o.add(a.sinkKey);
|
|
1576
|
+
}), e.audioControlPointList && Object.values((c = e.audioControlPointList) == null ? void 0 : c.levelControls).forEach(
|
|
1577
|
+
(a) => {
|
|
1578
|
+
a.itemKey ? o.add(a.parentDeviceKey + "--" + a.itemKey) : o.add(a.parentDeviceKey);
|
|
1579
|
+
}
|
|
1580
|
+
), (r = e.touchpanelKeys) == null || r.forEach((a) => {
|
|
1581
|
+
o.add(a);
|
|
1572
1582
|
}), (i = e.environmentalDevices) == null || i.forEach((a) => {
|
|
1573
|
-
o.
|
|
1583
|
+
a.deviceKey && o.add(a.deviceKey);
|
|
1574
1584
|
}), (d = e.accessoryDeviceKeys) == null || d.forEach((a) => {
|
|
1575
|
-
o.
|
|
1576
|
-
}), e.audioCodecKey && o.
|
|
1577
|
-
o.
|
|
1585
|
+
o.add(a);
|
|
1586
|
+
}), e.audioCodecKey && o.add(e.audioCodecKey), e.videoCodecKey && o.add(e.videoCodecKey), e.matrixRoutingKey && o.add(e.matrixRoutingKey), e.roomCombinerKey && o.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((a) => {
|
|
1587
|
+
o.add(a);
|
|
1578
1588
|
}), e.sourceList)
|
|
1579
1589
|
for (const a of Object.values(e.sourceList))
|
|
1580
|
-
a.sourceKey && a.sourceKey !== "$off" && o.
|
|
1581
|
-
console.log("deviceKeys", o), o.forEach((a) => {
|
|
1590
|
+
a.sourceKey && a.sourceKey !== "$off" && o.add(a.sourceKey);
|
|
1591
|
+
console.log("requesting state for deviceKeys:", o), o.forEach((a) => {
|
|
1582
1592
|
t(`/device/${a}/fullStatus`, { deviceKey: a });
|
|
1583
1593
|
});
|
|
1584
1594
|
}, [e, t]);
|
|
@@ -1594,8 +1604,8 @@ function Qe(e, t) {
|
|
|
1594
1604
|
}, [e, t]), { overflowHorizontal: o, overflowVertical: r };
|
|
1595
1605
|
}
|
|
1596
1606
|
function Ne(e, t) {
|
|
1597
|
-
const o =
|
|
1598
|
-
return
|
|
1607
|
+
const o = H2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1608
|
+
return R3(c, o);
|
|
1599
1609
|
}
|
|
1600
1610
|
function e5(e) {
|
|
1601
1611
|
var a, f;
|
|
@@ -1640,9 +1650,9 @@ function s5() {
|
|
|
1640
1650
|
}, []), { date: e, time: o };
|
|
1641
1651
|
}
|
|
1642
1652
|
const o5 = () => {
|
|
1643
|
-
const [e, t] = H(!1), o =
|
|
1653
|
+
const [e, t] = H(!1), o = v2(), c = g2();
|
|
1644
1654
|
let r;
|
|
1645
|
-
return
|
|
1655
|
+
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: [
|
|
1646
1656
|
/* @__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." }) }),
|
|
1647
1657
|
/* @__PURE__ */ s.jsx("button", { className: "btn btn-primary p-2", onClick: () => o(-1), children: "Go Back" }),
|
|
1648
1658
|
/* @__PURE__ */ s.jsx("button", { className: "btn btn-primary p-2", onClick: () => t(!e), children: e ? "Hide error message" : "Show error message" }),
|
|
@@ -3148,7 +3158,7 @@ const o5 = () => {
|
|
|
3148
3158
|
active: e,
|
|
3149
3159
|
disabled: o
|
|
3150
3160
|
}
|
|
3151
|
-
),
|
|
3161
|
+
), w6 = ({
|
|
3152
3162
|
active: e,
|
|
3153
3163
|
className: t = "",
|
|
3154
3164
|
disabled: o
|
|
@@ -3197,7 +3207,7 @@ const o5 = () => {
|
|
|
3197
3207
|
active: e,
|
|
3198
3208
|
disabled: o
|
|
3199
3209
|
}
|
|
3200
|
-
),
|
|
3210
|
+
), p6 = ({
|
|
3201
3211
|
active: e,
|
|
3202
3212
|
className: t = "",
|
|
3203
3213
|
disabled: o
|
|
@@ -3326,8 +3336,8 @@ const o5 = () => {
|
|
|
3326
3336
|
VolMute: v6,
|
|
3327
3337
|
VolUp: g6,
|
|
3328
3338
|
Wireless: f6,
|
|
3329
|
-
X:
|
|
3330
|
-
Xbox:
|
|
3339
|
+
X: w6,
|
|
3340
|
+
Xbox: p6
|
|
3331
3341
|
};
|
|
3332
3342
|
function n5({
|
|
3333
3343
|
name: e,
|
|
@@ -3417,11 +3427,11 @@ export {
|
|
|
3417
3427
|
v6 as IconMultiVolMute,
|
|
3418
3428
|
g6 as IconMultiVolUp,
|
|
3419
3429
|
f6 as IconMultiWireless,
|
|
3420
|
-
|
|
3421
|
-
|
|
3430
|
+
w6 as IconMultiX,
|
|
3431
|
+
p6 as IconMultiXbox,
|
|
3422
3432
|
c5 as MainLayout,
|
|
3423
3433
|
a5 as MessageHandler,
|
|
3424
|
-
|
|
3434
|
+
we as MobileControlProvider,
|
|
3425
3435
|
j as MultiStateIconContainer,
|
|
3426
3436
|
n5 as NamedIconButton,
|
|
3427
3437
|
d5 as ShareState,
|
|
@@ -3431,54 +3441,54 @@ export {
|
|
|
3431
3441
|
V1 as httpClient,
|
|
3432
3442
|
u5 as roomOffSourceKey,
|
|
3433
3443
|
Z3 as selectAllDevices,
|
|
3434
|
-
|
|
3444
|
+
x2 as selectApiPath,
|
|
3435
3445
|
p2 as selectAppConfig,
|
|
3436
|
-
|
|
3446
|
+
Y2 as selectClientId,
|
|
3437
3447
|
r8 as selectCurrentPopoverIdForGroup,
|
|
3438
|
-
|
|
3448
|
+
j2 as selectDeviceByKey,
|
|
3439
3449
|
i8 as selectError,
|
|
3440
|
-
|
|
3441
|
-
|
|
3450
|
+
e8 as selectIsTouchpanel,
|
|
3451
|
+
M2 as selectLogoPath,
|
|
3442
3452
|
U1 as selectModalVisibility,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3453
|
+
m2 as selectPartnerMetadata,
|
|
3454
|
+
k2 as selectRoomAdvancedSharingActive,
|
|
3455
|
+
T2 as selectRoomAudioControlPointList,
|
|
3456
|
+
b2 as selectRoomByKey,
|
|
3457
|
+
$2 as selectRoomCodecContentDestinationKey,
|
|
3458
|
+
C2 as selectRoomConfiguration,
|
|
3459
|
+
P2 as selectRoomDestinationList,
|
|
3460
|
+
_2 as selectRoomDestinations,
|
|
3461
|
+
F2 as selectRoomDisplayStates,
|
|
3462
|
+
L2 as selectRoomEnvironmentalDevices,
|
|
3463
|
+
A2 as selectRoomInCall,
|
|
3464
|
+
O2 as selectRoomIsCoolingDown,
|
|
3465
|
+
V2 as selectRoomIsOn,
|
|
3466
|
+
B2 as selectRoomIsWarmingUp,
|
|
3467
|
+
q2 as selectRoomKey,
|
|
3468
|
+
y2 as selectRoomLevelControls,
|
|
3469
|
+
I2 as selectRoomName,
|
|
3470
|
+
D2 as selectRoomProgramAudioDestinationKey,
|
|
3471
|
+
U2 as selectRoomShareState,
|
|
3472
|
+
E2 as selectRoomSourceList,
|
|
3473
|
+
R2 as selectRoomVolume,
|
|
3474
|
+
S2 as selectRooms,
|
|
3475
|
+
Q2 as selectRuntimeInfo,
|
|
3476
|
+
X2 as selectServerIsRunningOnProcessorHardware,
|
|
3467
3477
|
l8 as selectShowPopoverById,
|
|
3468
3478
|
a8 as selectShowReconnect,
|
|
3469
|
-
|
|
3479
|
+
z2 as selectSystemUuid,
|
|
3470
3480
|
u8 as selectTheme,
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3481
|
+
N2 as selectTouchpanelKey,
|
|
3482
|
+
J2 as selectUserCode,
|
|
3483
|
+
G2 as selectWsIsConnected,
|
|
3484
|
+
W2 as selectZoomRoomControllerKey,
|
|
3475
3485
|
m as store,
|
|
3476
3486
|
q as uiActions,
|
|
3477
3487
|
g8 as uiReducer,
|
|
3478
3488
|
O6 as useApiPath,
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3489
|
+
Z2 as useAppConfig,
|
|
3490
|
+
w2 as useAppDispatch,
|
|
3491
|
+
w as useAppSelector,
|
|
3482
3492
|
xe as useAvrControl,
|
|
3483
3493
|
g as useButtonHeldHeartbeat,
|
|
3484
3494
|
s8 as useClientId,
|
|
@@ -3491,11 +3501,11 @@ export {
|
|
|
3491
3501
|
F6 as useGetAllRooms,
|
|
3492
3502
|
ve as useGetCurrentPopoverIdForGroup,
|
|
3493
3503
|
_ as useGetDevice,
|
|
3494
|
-
|
|
3504
|
+
pe as useGetIBasicVolumeWithFeedback,
|
|
3495
3505
|
H6 as useGetRoom,
|
|
3496
3506
|
ce as useGetRoomDisplayStates,
|
|
3497
3507
|
re as useGetZoomRoomControllerKey,
|
|
3498
|
-
|
|
3508
|
+
R3 as useIBasicVolumeWithFeedback,
|
|
3499
3509
|
je as useIChannel,
|
|
3500
3510
|
Ce as useIColor,
|
|
3501
3511
|
Se as useICommunicationMonitor,
|
|
@@ -3504,7 +3514,7 @@ export {
|
|
|
3504
3514
|
Re as useIDspPresets,
|
|
3505
3515
|
ye as useIDvr,
|
|
3506
3516
|
Ee as useIEssentialsRoomCombiner,
|
|
3507
|
-
|
|
3517
|
+
y3 as useIHasPowerControl,
|
|
3508
3518
|
k1 as useIHasSelectableItems,
|
|
3509
3519
|
Te as useIHumiditySensor,
|
|
3510
3520
|
_e as useILevelControls,
|
|
@@ -3545,13 +3555,13 @@ export {
|
|
|
3545
3555
|
se as useRoomIsOn,
|
|
3546
3556
|
ee as useRoomIsWarmingUp,
|
|
3547
3557
|
t8 as useRoomKey,
|
|
3548
|
-
|
|
3558
|
+
K2 as useRoomLevelControls,
|
|
3549
3559
|
K6 as useRoomName,
|
|
3550
3560
|
X6 as useRoomProgramAudioDestinationKey,
|
|
3551
3561
|
ne as useRoomShareState,
|
|
3552
3562
|
G6 as useRoomSourceList,
|
|
3553
3563
|
C1 as useRoomState,
|
|
3554
|
-
|
|
3564
|
+
H2 as useRoomVolume,
|
|
3555
3565
|
le as useRuntimeInfo,
|
|
3556
3566
|
e5 as useScroll,
|
|
3557
3567
|
c8 as useServerIsRunningOnProcessorHardware,
|
|
@@ -3568,5 +3578,5 @@ export {
|
|
|
3568
3578
|
Je as useTwoWayDisplayBase,
|
|
3569
3579
|
n8 as useUserCode,
|
|
3570
3580
|
b as useWebsocketContext,
|
|
3571
|
-
|
|
3581
|
+
j3 as useWsIsConnected
|
|
3572
3582
|
};
|