@pepperdash/mobile-control-react-app-core 1.21.0-feature-add-deviceInterfaceSupport-to-joinroom-response.4 → 1.21.0-feature-add-deviceInterfaceSupport-to-joinroom-response.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.
|
@@ -26,7 +26,7 @@ const m3 = l2.withTypes(), p = i2.withTypes(), j1 = (e) => e.appConfig, w2 = w(
|
|
|
26
26
|
Z3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
28
|
), H6 = () => p(j3);
|
|
29
|
-
function
|
|
29
|
+
function R(e) {
|
|
30
30
|
return p(j2(e));
|
|
31
31
|
}
|
|
32
32
|
const D = (e) => e.rooms, S2 = (e) => w(
|
|
@@ -41,10 +41,10 @@ const D = (e) => e.rooms, S2 = (e) => w(
|
|
|
41
41
|
), I2 = (e) => w(
|
|
42
42
|
D,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
),
|
|
44
|
+
), y2 = (e, t) => w(
|
|
45
45
|
D,
|
|
46
46
|
(n) => n[e] ? n[e].volumes[t] : void 0
|
|
47
|
-
),
|
|
47
|
+
), R2 = (e) => w(
|
|
48
48
|
D,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
50
|
), E2 = (e) => w(
|
|
@@ -160,8 +160,8 @@ function S1(e) {
|
|
|
160
160
|
const q6 = S1, Y6 = (e) => p(
|
|
161
161
|
I2(e)
|
|
162
162
|
), H2 = (e, t) => p(
|
|
163
|
-
|
|
164
|
-
), K2 = (e) => p(
|
|
163
|
+
y2(e, t)
|
|
164
|
+
), K2 = (e) => p(R2(e)) || void 0, z6 = (e) => p(E2(e)), J6 = (e) => p(P2(e)), X6 = (e) => p(T2(e)), Q6 = (e) => p(_2(e)), N6 = (e) => p(D2(e)), ee = (e) => p(L2(e)), te = (e) => p($2(e)), se = (e) => p(A2(e)), ne = (e) => p(B2(e)), oe = (e) => p(O2(e)), ce = (e) => p(V2(e)), re = (e) => p(k2(e)), le = (e) => p(U2(e)), ie = (e) => p((t) => F2(t, e)), ae = (e) => p(W2(e)), Y = (e) => e.runtimeConfig, G2 = w(
|
|
165
165
|
Y,
|
|
166
166
|
(e) => e.websocket.isConnected
|
|
167
167
|
), q2 = w(
|
|
@@ -207,7 +207,7 @@ const q6 = S1, Y6 = (e) => p(
|
|
|
207
207
|
), a8 = w(t1, (e) => e.error), u8 = w(
|
|
208
208
|
t1,
|
|
209
209
|
(e) => e.showReconnect
|
|
210
|
-
), d8 = w(t1, (e) => e.theme), v8 = (e) => w(t1, (t) => t.syncState.
|
|
210
|
+
), d8 = w(t1, (e) => e.theme), v8 = (e) => w(t1, (t) => t.syncState.includes(e)), ge = () => p(U1("showShutdownModal")), fe = () => p(U1("showIncomingCallModal")), pe = (e) => p(U1(e)), we = (e) => p(l8(e)), xe = (e, t) => p(i8(e, t)), h8 = () => p(a8), g8 = () => p(u8), Me = () => p(d8), f8 = (e) => p(v8(e)), p8 = {
|
|
211
211
|
showReconnect: !1,
|
|
212
212
|
error: "",
|
|
213
213
|
modalVisibility: {
|
|
@@ -215,7 +215,7 @@ const q6 = S1, Y6 = (e) => p(
|
|
|
215
215
|
showIncomingCallModal: !1
|
|
216
216
|
},
|
|
217
217
|
popoverVisibility: {},
|
|
218
|
-
syncState:
|
|
218
|
+
syncState: []
|
|
219
219
|
}, C3 = g1({
|
|
220
220
|
name: "ui",
|
|
221
221
|
initialState: p8,
|
|
@@ -251,13 +251,15 @@ const q6 = S1, Y6 = (e) => p(
|
|
|
251
251
|
e.theme = t.payload;
|
|
252
252
|
},
|
|
253
253
|
addSyncState(e, t) {
|
|
254
|
-
e.syncState.
|
|
254
|
+
e.syncState.includes(t.payload) || e.syncState.push(t.payload);
|
|
255
255
|
},
|
|
256
256
|
removeSyncState(e, t) {
|
|
257
|
-
e.syncState.
|
|
257
|
+
e.syncState = e.syncState.filter(
|
|
258
|
+
(n) => n !== t.payload
|
|
259
|
+
);
|
|
258
260
|
},
|
|
259
261
|
clearSyncState(e) {
|
|
260
|
-
e.syncState
|
|
262
|
+
e.syncState = [];
|
|
261
263
|
}
|
|
262
264
|
}
|
|
263
265
|
}), F = C3.actions, w8 = C3.reducer, x8 = {
|
|
@@ -411,7 +413,7 @@ var m1 = { exports: {} }, u1 = {};
|
|
|
411
413
|
* LICENSE file in the root directory of this source tree.
|
|
412
414
|
*/
|
|
413
415
|
var h3;
|
|
414
|
-
function
|
|
416
|
+
function y8() {
|
|
415
417
|
if (h3) return u1;
|
|
416
418
|
h3 = 1;
|
|
417
419
|
var e = w3, t = Symbol.for("react.element"), n = 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 };
|
|
@@ -435,7 +437,7 @@ var d1 = {};
|
|
|
435
437
|
* LICENSE file in the root directory of this source tree.
|
|
436
438
|
*/
|
|
437
439
|
var g3;
|
|
438
|
-
function
|
|
440
|
+
function R8() {
|
|
439
441
|
return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
440
442
|
var e = w3, t = Symbol.for("react.element"), n = 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"), v = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), H = Symbol.for("react.offscreen"), k = Symbol.iterator, X = "@@iterator";
|
|
441
443
|
function r1(o) {
|
|
@@ -456,10 +458,10 @@ function y8() {
|
|
|
456
458
|
{
|
|
457
459
|
var f = $.ReactDebugCurrentFrame, C = f.getStackAddendum();
|
|
458
460
|
C !== "" && (l += "%s", u = u.concat([C]));
|
|
459
|
-
var
|
|
461
|
+
var y = u.map(function(Z) {
|
|
460
462
|
return String(Z);
|
|
461
463
|
});
|
|
462
|
-
|
|
464
|
+
y.unshift("Warning: " + l), Function.prototype.apply.call(console[o], console, y);
|
|
463
465
|
}
|
|
464
466
|
}
|
|
465
467
|
var b1 = !1, E = !1, S = !1, f1 = !1, I1 = !1, z;
|
|
@@ -516,9 +518,9 @@ function y8() {
|
|
|
516
518
|
var f = o.displayName || null;
|
|
517
519
|
return f !== null ? f : G(o.type) || "Memo";
|
|
518
520
|
case L: {
|
|
519
|
-
var C = o,
|
|
521
|
+
var C = o, y = C._payload, Z = C._init;
|
|
520
522
|
try {
|
|
521
|
-
return G(Z(
|
|
523
|
+
return G(Z(y));
|
|
522
524
|
} catch {
|
|
523
525
|
return null;
|
|
524
526
|
}
|
|
@@ -588,18 +590,18 @@ function y8() {
|
|
|
588
590
|
l1 < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
589
591
|
}
|
|
590
592
|
}
|
|
591
|
-
var
|
|
593
|
+
var y1 = $.ReactCurrentDispatcher, R1;
|
|
592
594
|
function p1(o, l, u) {
|
|
593
595
|
{
|
|
594
|
-
if (
|
|
596
|
+
if (R1 === void 0)
|
|
595
597
|
try {
|
|
596
598
|
throw Error();
|
|
597
599
|
} catch (C) {
|
|
598
600
|
var f = C.stack.trim().match(/\n( *(at )?)/);
|
|
599
|
-
|
|
601
|
+
R1 = f && f[1] || "";
|
|
600
602
|
}
|
|
601
603
|
return `
|
|
602
|
-
` +
|
|
604
|
+
` + R1 + o;
|
|
603
605
|
}
|
|
604
606
|
}
|
|
605
607
|
var E1 = !1, w1;
|
|
@@ -619,8 +621,8 @@ function y8() {
|
|
|
619
621
|
E1 = !0;
|
|
620
622
|
var C = Error.prepareStackTrace;
|
|
621
623
|
Error.prepareStackTrace = void 0;
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
+
var y;
|
|
625
|
+
y = y1.current, y1.current = null, P3();
|
|
624
626
|
try {
|
|
625
627
|
if (l) {
|
|
626
628
|
var Z = function() {
|
|
@@ -673,7 +675,7 @@ function y8() {
|
|
|
673
675
|
}
|
|
674
676
|
}
|
|
675
677
|
} finally {
|
|
676
|
-
E1 = !1,
|
|
678
|
+
E1 = !1, y1.current = y, T3(), Error.prepareStackTrace = C;
|
|
677
679
|
}
|
|
678
680
|
var o1 = o ? o.displayName || o.name : "", Q = o1 ? p1(o1) : "";
|
|
679
681
|
return typeof o == "function" && w1.set(o, Q), Q;
|
|
@@ -705,9 +707,9 @@ function y8() {
|
|
|
705
707
|
case I:
|
|
706
708
|
return x1(o.type, l, u);
|
|
707
709
|
case L: {
|
|
708
|
-
var f = o, C = f._payload,
|
|
710
|
+
var f = o, C = f._payload, y = f._init;
|
|
709
711
|
try {
|
|
710
|
-
return x1(
|
|
712
|
+
return x1(y(C), l, u);
|
|
711
713
|
} catch {
|
|
712
714
|
}
|
|
713
715
|
}
|
|
@@ -724,9 +726,9 @@ function y8() {
|
|
|
724
726
|
}
|
|
725
727
|
function $3(o, l, u, f, C) {
|
|
726
728
|
{
|
|
727
|
-
var
|
|
729
|
+
var y = Function.call.bind(i1);
|
|
728
730
|
for (var Z in o)
|
|
729
|
-
if (
|
|
731
|
+
if (y(o, Z)) {
|
|
730
732
|
var M = void 0;
|
|
731
733
|
try {
|
|
732
734
|
if (typeof o[Z] != "function") {
|
|
@@ -812,7 +814,7 @@ function y8() {
|
|
|
812
814
|
});
|
|
813
815
|
}
|
|
814
816
|
}
|
|
815
|
-
var K3 = function(o, l, u, f, C,
|
|
817
|
+
var K3 = function(o, l, u, f, C, y, Z) {
|
|
816
818
|
var M = {
|
|
817
819
|
// This tag allows us to uniquely identify this as a React Element
|
|
818
820
|
$$typeof: t,
|
|
@@ -822,7 +824,7 @@ function y8() {
|
|
|
822
824
|
ref: u,
|
|
823
825
|
props: Z,
|
|
824
826
|
// Record the component responsible for creating this element.
|
|
825
|
-
_owner:
|
|
827
|
+
_owner: y
|
|
826
828
|
};
|
|
827
829
|
return M._store = {}, Object.defineProperty(M._store, "validated", {
|
|
828
830
|
configurable: !1,
|
|
@@ -843,14 +845,14 @@ function y8() {
|
|
|
843
845
|
};
|
|
844
846
|
function G3(o, l, u, f, C) {
|
|
845
847
|
{
|
|
846
|
-
var
|
|
848
|
+
var y, Z = {}, M = null, O = null;
|
|
847
849
|
u !== void 0 && (e3(u), M = "" + u), U3(l) && (e3(l.key), M = "" + l.key), k3(l) && (O = l.ref, W3(l, C));
|
|
848
|
-
for (
|
|
849
|
-
i1.call(l,
|
|
850
|
+
for (y in l)
|
|
851
|
+
i1.call(l, y) && !V3.hasOwnProperty(y) && (Z[y] = l[y]);
|
|
850
852
|
if (o && o.defaultProps) {
|
|
851
853
|
var T = o.defaultProps;
|
|
852
|
-
for (
|
|
853
|
-
Z[
|
|
854
|
+
for (y in T)
|
|
855
|
+
Z[y] === void 0 && (Z[y] = T[y]);
|
|
854
856
|
}
|
|
855
857
|
if (M || O) {
|
|
856
858
|
var _ = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
@@ -927,7 +929,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
927
929
|
else if (o) {
|
|
928
930
|
var C = r1(o);
|
|
929
931
|
if (typeof C == "function" && C !== o.entries)
|
|
930
|
-
for (var
|
|
932
|
+
for (var y = C.call(o), Z; !(Z = y.next()).done; )
|
|
931
933
|
D1(Z.value) && l3(Z.value, l);
|
|
932
934
|
}
|
|
933
935
|
}
|
|
@@ -970,7 +972,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
970
972
|
}
|
|
971
973
|
}
|
|
972
974
|
var a3 = {};
|
|
973
|
-
function u3(o, l, u, f, C,
|
|
975
|
+
function u3(o, l, u, f, C, y) {
|
|
974
976
|
{
|
|
975
977
|
var Z = B(o);
|
|
976
978
|
if (!Z) {
|
|
@@ -981,7 +983,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
981
983
|
var T;
|
|
982
984
|
o === null ? T = "null" : P1(o) ? T = "array" : o !== void 0 && o.$$typeof === t ? (T = "<" + (G(o.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof o, 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);
|
|
983
985
|
}
|
|
984
|
-
var _ = G3(o, l, u, C,
|
|
986
|
+
var _ = G3(o, l, u, C, y);
|
|
985
987
|
if (_ == null)
|
|
986
988
|
return _;
|
|
987
989
|
if (Z) {
|
|
@@ -1026,7 +1028,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1026
1028
|
}
|
|
1027
1029
|
var f3;
|
|
1028
1030
|
function E8() {
|
|
1029
|
-
return f3 || (f3 = 1, process.env.NODE_ENV === "production" ? m1.exports =
|
|
1031
|
+
return f3 || (f3 = 1, process.env.NODE_ENV === "production" ? m1.exports = y8() : m1.exports = R8()), m1.exports;
|
|
1030
1032
|
}
|
|
1031
1033
|
var s = E8();
|
|
1032
1034
|
const P8 = "_mwfit_ppa3l_1", T8 = {
|
|
@@ -1053,7 +1055,7 @@ class D8 {
|
|
|
1053
1055
|
q(this, "expiry", "current-uuid-expires");
|
|
1054
1056
|
}
|
|
1055
1057
|
}
|
|
1056
|
-
const p3 = new D8(),
|
|
1058
|
+
const p3 = new D8(), y3 = v2({
|
|
1057
1059
|
sendMessage: () => null,
|
|
1058
1060
|
sendSimpleMessage: () => null,
|
|
1059
1061
|
addEventHandler: () => null,
|
|
@@ -1226,7 +1228,7 @@ const A8 = ({ children: e }) => {
|
|
|
1226
1228
|
]), c1(() => {
|
|
1227
1229
|
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
|
|
1228
1230
|
}, [r, i, c, $]), /* @__PURE__ */ s.jsx(
|
|
1229
|
-
|
|
1231
|
+
y3.Provider,
|
|
1230
1232
|
{
|
|
1231
1233
|
value: {
|
|
1232
1234
|
sendMessage: $,
|
|
@@ -1240,7 +1242,7 @@ const A8 = ({ children: e }) => {
|
|
|
1240
1242
|
);
|
|
1241
1243
|
}, me = ({ children: e }) => /* @__PURE__ */ s.jsx(a2, { store: m, children: /* @__PURE__ */ s.jsx(A8, { children: e }) });
|
|
1242
1244
|
function b() {
|
|
1243
|
-
return h2(
|
|
1245
|
+
return h2(y3);
|
|
1244
1246
|
}
|
|
1245
1247
|
function B8({
|
|
1246
1248
|
onPress: e,
|
|
@@ -1278,7 +1280,7 @@ function h(e, t) {
|
|
|
1278
1280
|
}
|
|
1279
1281
|
return B8({ onPress: i, onRelease: d });
|
|
1280
1282
|
}
|
|
1281
|
-
function
|
|
1283
|
+
function R3(e, t) {
|
|
1282
1284
|
const { sendMessage: n, sendSimpleMessage: c } = b(), r = h(`${e}`, "volumeUp"), i = h(`${e}`, "volumeDown");
|
|
1283
1285
|
return t ? {
|
|
1284
1286
|
volumeState: t,
|
|
@@ -1303,8 +1305,8 @@ function Ze(e, t) {
|
|
|
1303
1305
|
} : void 0;
|
|
1304
1306
|
}
|
|
1305
1307
|
function O8(e) {
|
|
1306
|
-
const t =
|
|
1307
|
-
return
|
|
1308
|
+
const t = R(e), n = `/device/${e}`;
|
|
1309
|
+
return R3(n, t == null ? void 0 : t.volume);
|
|
1308
1310
|
}
|
|
1309
1311
|
function E3(e) {
|
|
1310
1312
|
const { sendMessage: t } = b();
|
|
@@ -1317,13 +1319,13 @@ function E3(e) {
|
|
|
1317
1319
|
} };
|
|
1318
1320
|
}
|
|
1319
1321
|
function k1(e) {
|
|
1320
|
-
const { sendMessage: t } = b(), n =
|
|
1322
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1321
1323
|
return console.log("deviceState", n), n ? { itemsState: n, selectItem: (r) => {
|
|
1322
1324
|
t(`/device/${e}/${r}`, null);
|
|
1323
1325
|
} } : void 0;
|
|
1324
1326
|
}
|
|
1325
1327
|
function V8(e) {
|
|
1326
|
-
const { sendMessage: t } = b(), n =
|
|
1328
|
+
const { sendMessage: t } = b(), n = R(e), c = () => {
|
|
1327
1329
|
t(`/device/${e}/setDefaultChannelLevels`, null);
|
|
1328
1330
|
}, r = () => {
|
|
1329
1331
|
if ((n == null ? void 0 : n.levelControls) === void 0) return;
|
|
@@ -1334,7 +1336,7 @@ function V8(e) {
|
|
|
1334
1336
|
return n ? { levelControls: n.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
|
|
1335
1337
|
}
|
|
1336
1338
|
function je(e) {
|
|
1337
|
-
const t =
|
|
1339
|
+
const t = R(e), n = E3(e), c = k1(e), r = k1(e), i = O8(e), d = V8(e);
|
|
1338
1340
|
if (t)
|
|
1339
1341
|
return {
|
|
1340
1342
|
avrState: t,
|
|
@@ -1346,7 +1348,7 @@ function je(e) {
|
|
|
1346
1348
|
};
|
|
1347
1349
|
}
|
|
1348
1350
|
function Se(e) {
|
|
1349
|
-
const { sendMessage: t } = b(), n = `/device/${e}`, c =
|
|
1351
|
+
const { sendMessage: t } = b(), n = `/device/${e}`, c = R(e), r = h(n, "cameraUp"), i = h(n, "cameraDown"), d = h(n, "cameraLeft"), a = h(n, "cameraRight"), g = h(n, "cameraZoomIn"), x = h(n, "cameraZoomOut"), v = (I) => t("/camera/recallPreset", I);
|
|
1350
1352
|
if (c)
|
|
1351
1353
|
return {
|
|
1352
1354
|
state: c,
|
|
@@ -1372,7 +1374,7 @@ const Ce = ({ className: e }) => {
|
|
|
1372
1374
|
] });
|
|
1373
1375
|
};
|
|
1374
1376
|
function be(e) {
|
|
1375
|
-
const { sendMessage: t } = b(), n =
|
|
1377
|
+
const { sendMessage: t } = b(), n = R(e), c = `/device/${e}`;
|
|
1376
1378
|
return n ? { state: n, recallPreset: (d, a) => {
|
|
1377
1379
|
t(`${c}/presets/recall`, { deviceKey: d, preset: a });
|
|
1378
1380
|
}, savePresets: (d) => {
|
|
@@ -1380,27 +1382,27 @@ function be(e) {
|
|
|
1380
1382
|
} } : void 0;
|
|
1381
1383
|
}
|
|
1382
1384
|
function Ie(e) {
|
|
1383
|
-
const t =
|
|
1385
|
+
const t = R(e);
|
|
1384
1386
|
if (t)
|
|
1385
1387
|
return { endpointState: t };
|
|
1386
1388
|
}
|
|
1387
|
-
function
|
|
1389
|
+
function ye(e) {
|
|
1388
1390
|
const t = `/device/${e}`, n = h(t, "chanUp"), c = h(t, "chanDown"), r = h(t, "lastChan"), i = h(t, "guide"), d = h(t, "info"), a = h(t, "exit");
|
|
1389
1391
|
return { channelUp: n, channelDown: c, lastChannel: r, guide: i, info: d, exit: a };
|
|
1390
1392
|
}
|
|
1391
|
-
function
|
|
1393
|
+
function Re(e) {
|
|
1392
1394
|
const t = `/device/${e}`, n = h(t, "red"), c = h(t, "green"), r = h(t, "yellow"), i = h(t, "blue");
|
|
1393
1395
|
return { red: n, green: c, yellow: r, blue: i };
|
|
1394
1396
|
}
|
|
1395
1397
|
function Ee(e) {
|
|
1396
|
-
const t =
|
|
1398
|
+
const t = R(e);
|
|
1397
1399
|
if (t)
|
|
1398
1400
|
return {
|
|
1399
1401
|
communicationMonitorState: t
|
|
1400
1402
|
};
|
|
1401
1403
|
}
|
|
1402
1404
|
function Pe(e) {
|
|
1403
|
-
const t =
|
|
1405
|
+
const t = R(e);
|
|
1404
1406
|
if (t)
|
|
1405
1407
|
return t.deviceInfo || void 0;
|
|
1406
1408
|
}
|
|
@@ -1422,7 +1424,7 @@ function De(e) {
|
|
|
1422
1424
|
return { dvrList: n, record: c };
|
|
1423
1425
|
}
|
|
1424
1426
|
function Le(e) {
|
|
1425
|
-
const { sendMessage: t } = b(), n =
|
|
1427
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1426
1428
|
return n ? { roomCombinerState: n, setAutoMode: () => {
|
|
1427
1429
|
t(`/device/${e}/setAutoMode`, null);
|
|
1428
1430
|
}, setManualMode: () => {
|
|
@@ -1436,7 +1438,7 @@ function Le(e) {
|
|
|
1436
1438
|
} } : void 0;
|
|
1437
1439
|
}
|
|
1438
1440
|
function $e(e) {
|
|
1439
|
-
const { sendMessage: t } = b(), n = `/device/${e}`, c =
|
|
1441
|
+
const { sendMessage: t } = b(), n = `/device/${e}`, c = R(e);
|
|
1440
1442
|
return c ? {
|
|
1441
1443
|
state: c,
|
|
1442
1444
|
selectCamera: (i) => {
|
|
@@ -1445,12 +1447,12 @@ function $e(e) {
|
|
|
1445
1447
|
} : void 0;
|
|
1446
1448
|
}
|
|
1447
1449
|
function Ae(e) {
|
|
1448
|
-
const t =
|
|
1450
|
+
const t = R(e);
|
|
1449
1451
|
if (t)
|
|
1450
1452
|
return { state: t };
|
|
1451
1453
|
}
|
|
1452
1454
|
function Be(e) {
|
|
1453
|
-
const { sendMessage: t, sendSimpleMessage: n } = b(), c =
|
|
1455
|
+
const { sendMessage: t, sendSimpleMessage: n } = b(), c = R(e), r = K2(e), i = c || r;
|
|
1454
1456
|
return i ? {
|
|
1455
1457
|
levelState: i,
|
|
1456
1458
|
setLevel: (v, I) => n(`${v}/level`, I),
|
|
@@ -1460,13 +1462,13 @@ function Be(e) {
|
|
|
1460
1462
|
} : void 0;
|
|
1461
1463
|
}
|
|
1462
1464
|
function Oe(e) {
|
|
1463
|
-
const { sendMessage: t } = b(), n =
|
|
1465
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1464
1466
|
return n ? { lightingState: n, selectScene: (r) => {
|
|
1465
1467
|
t(`/device/${e}/selectScene`, r);
|
|
1466
1468
|
} } : void 0;
|
|
1467
1469
|
}
|
|
1468
1470
|
function Ve(e) {
|
|
1469
|
-
const { sendMessage: t } = b(), n =
|
|
1471
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1470
1472
|
return n ? { matrixRoutingState: n, setRoute: (r) => {
|
|
1471
1473
|
t(`/device/${e}/route`, r);
|
|
1472
1474
|
} } : void 0;
|
|
@@ -1495,7 +1497,7 @@ function Ue(e) {
|
|
|
1495
1497
|
};
|
|
1496
1498
|
}
|
|
1497
1499
|
function We(e) {
|
|
1498
|
-
const { sendMessage: t } = b(), n =
|
|
1500
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1499
1501
|
return n ? { projectorScreenLiftControlState: n, raise: () => {
|
|
1500
1502
|
t(`/device/${e}/raise`, null);
|
|
1501
1503
|
}, lower: () => {
|
|
@@ -1522,7 +1524,7 @@ function Ke(e) {
|
|
|
1522
1524
|
}
|
|
1523
1525
|
function Ge(e) {
|
|
1524
1526
|
const { sendMessage: t } = b();
|
|
1525
|
-
return { routingState:
|
|
1527
|
+
return { routingState: R(e), runRoute: (r) => {
|
|
1526
1528
|
t(`/room/${e}/source`, r);
|
|
1527
1529
|
} };
|
|
1528
1530
|
}
|
|
@@ -1531,7 +1533,7 @@ function qe(e) {
|
|
|
1531
1533
|
return { dvrList: n, replay: c };
|
|
1532
1534
|
}
|
|
1533
1535
|
function Ye(e) {
|
|
1534
|
-
const { sendMessage: t } = b(), n =
|
|
1536
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1535
1537
|
return n ? { shadeState: n, shadeUp: () => {
|
|
1536
1538
|
t(`/device/${e}/shadeUp`, null);
|
|
1537
1539
|
}, shadeDown: () => {
|
|
@@ -1553,7 +1555,7 @@ function ze(e) {
|
|
|
1553
1555
|
} } : void 0;
|
|
1554
1556
|
}
|
|
1555
1557
|
function Je(e) {
|
|
1556
|
-
const { sendMessage: t } = b(), n =
|
|
1558
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1557
1559
|
return n ? { switchedOutputState: n, on: () => {
|
|
1558
1560
|
t(`/device/${e}/on`, null);
|
|
1559
1561
|
}, off: () => {
|
|
@@ -1569,11 +1571,11 @@ function Xe(e) {
|
|
|
1569
1571
|
} } : void 0;
|
|
1570
1572
|
}
|
|
1571
1573
|
function Qe(e) {
|
|
1572
|
-
const { sendMessage: t } = b(), n =
|
|
1574
|
+
const { sendMessage: t } = b(), n = R(e);
|
|
1573
1575
|
return n ? { state: n, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
|
|
1574
1576
|
}
|
|
1575
1577
|
function Ne(e) {
|
|
1576
|
-
const { sendMessage: t } = b(), n =
|
|
1578
|
+
const { sendMessage: t } = b(), n = R(e), c = (r) => {
|
|
1577
1579
|
t(`/device/${e}/saveTheme`, { value: r });
|
|
1578
1580
|
};
|
|
1579
1581
|
return {
|
|
@@ -1595,7 +1597,7 @@ function e5(e) {
|
|
|
1595
1597
|
};
|
|
1596
1598
|
}
|
|
1597
1599
|
function t5(e) {
|
|
1598
|
-
const t =
|
|
1600
|
+
const t = R(e), { sendMessage: n } = b();
|
|
1599
1601
|
return t ? {
|
|
1600
1602
|
touchpanelState: t,
|
|
1601
1603
|
appControl: { hideApp: () => {
|
|
@@ -1611,7 +1613,7 @@ function t5(e) {
|
|
|
1611
1613
|
} : void 0;
|
|
1612
1614
|
}
|
|
1613
1615
|
function s5(e) {
|
|
1614
|
-
const t =
|
|
1616
|
+
const t = R(e), n = E3(e), c = k1(e);
|
|
1615
1617
|
if (!t) return;
|
|
1616
1618
|
const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
|
|
1617
1619
|
return {
|
|
@@ -1666,7 +1668,7 @@ function o5(e, t) {
|
|
|
1666
1668
|
}
|
|
1667
1669
|
function c5(e, t) {
|
|
1668
1670
|
const n = H2(e, t), c = `/room/${e}/volumes/${t}`;
|
|
1669
|
-
return
|
|
1671
|
+
return R3(c, n);
|
|
1670
1672
|
}
|
|
1671
1673
|
function r5(e) {
|
|
1672
1674
|
var a, g;
|
|
@@ -3431,19 +3433,19 @@ function v5({
|
|
|
3431
3433
|
const c = t[e] ?? null;
|
|
3432
3434
|
return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ s.jsx(F8, { multiIcon: c, ...n });
|
|
3433
3435
|
}
|
|
3434
|
-
const S6 = "_grid_1cmpp_1", C6 = "_header_1cmpp_11", b6 = "_content_1cmpp_17", I6 = "_footer_1cmpp_23",
|
|
3436
|
+
const S6 = "_grid_1cmpp_1", C6 = "_header_1cmpp_11", b6 = "_content_1cmpp_17", I6 = "_footer_1cmpp_23", y6 = "_volume_1cmpp_29", v1 = {
|
|
3435
3437
|
grid: S6,
|
|
3436
3438
|
header: C6,
|
|
3437
3439
|
content: b6,
|
|
3438
3440
|
footer: I6,
|
|
3439
|
-
volume:
|
|
3441
|
+
volume: y6
|
|
3440
3442
|
}, h5 = ({ header: e, footer: t, content: n, volume: c, showVolume: r }) => /* @__PURE__ */ s.jsxs("div", { className: v1.grid, children: [
|
|
3441
3443
|
/* @__PURE__ */ s.jsx("div", { className: v1.header, children: e }),
|
|
3442
3444
|
/* @__PURE__ */ s.jsx("div", { className: v1.content, children: n }),
|
|
3443
3445
|
r && /* @__PURE__ */ s.jsx("div", { className: v1.volume, children: c }),
|
|
3444
3446
|
/* @__PURE__ */ s.jsx("div", { className: v1.footer, children: t })
|
|
3445
|
-
] }),
|
|
3446
|
-
grid:
|
|
3447
|
+
] }), R6 = "_grid_11w5q_1", E6 = "_header_11w5q_11", P6 = "_content_11w5q_17", Z1 = {
|
|
3448
|
+
grid: R6,
|
|
3447
3449
|
header: E6,
|
|
3448
3450
|
content: P6
|
|
3449
3451
|
}, g5 = ({ className: e, header: t, content: n, leftNav: c }) => /* @__PURE__ */ s.jsxs("div", { className: `${e} ${Z1.grid}`, children: [
|
|
@@ -3523,7 +3525,7 @@ export {
|
|
|
3523
3525
|
p5 as ShareState,
|
|
3524
3526
|
g5 as TechLayout,
|
|
3525
3527
|
f5 as TechPinLayout,
|
|
3526
|
-
|
|
3528
|
+
y3 as WebsocketContext,
|
|
3527
3529
|
M8 as appConfigActions,
|
|
3528
3530
|
N as devicesActions,
|
|
3529
3531
|
w5 as getBaseLocation,
|
|
@@ -3559,12 +3561,12 @@ export {
|
|
|
3559
3561
|
V2 as selectRoomIsOn,
|
|
3560
3562
|
B2 as selectRoomIsWarmingUp,
|
|
3561
3563
|
q2 as selectRoomKey,
|
|
3562
|
-
|
|
3564
|
+
R2 as selectRoomLevelControls,
|
|
3563
3565
|
I2 as selectRoomName,
|
|
3564
3566
|
L2 as selectRoomProgramAudioDestinationKey,
|
|
3565
3567
|
U2 as selectRoomShareState,
|
|
3566
3568
|
E2 as selectRoomSourceList,
|
|
3567
|
-
|
|
3569
|
+
y2 as selectRoomVolume,
|
|
3568
3570
|
C2 as selectRooms,
|
|
3569
3571
|
Q2 as selectRuntimeInfo,
|
|
3570
3572
|
X2 as selectServerIsRunningOnProcessorHardware,
|
|
@@ -3596,14 +3598,14 @@ export {
|
|
|
3596
3598
|
H6 as useGetAllDevices,
|
|
3597
3599
|
G6 as useGetAllRooms,
|
|
3598
3600
|
we as useGetCurrentPopoverIdForGroup,
|
|
3599
|
-
|
|
3601
|
+
R as useGetDevice,
|
|
3600
3602
|
Ze as useGetIBasicVolumeWithFeedback,
|
|
3601
3603
|
q6 as useGetRoom,
|
|
3602
3604
|
ie as useGetRoomDisplayStates,
|
|
3603
3605
|
ae as useGetZoomRoomControllerKey,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3606
|
+
R3 as useIBasicVolumeWithFeedback,
|
|
3607
|
+
ye as useIChannel,
|
|
3608
|
+
Re as useIColor,
|
|
3607
3609
|
Ee as useICommunicationMonitor,
|
|
3608
3610
|
Te as useIDPad,
|
|
3609
3611
|
Pe as useIDeviceInfoMessenger,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(s,W){typeof exports=="object"&&typeof module<"u"?W(exports,require("axios"),require("react-redux"),require("@reduxjs/toolkit"),require("react"),require("lodash"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","axios","react-redux","@reduxjs/toolkit","react","lodash","react-router-dom"],W):(s=typeof globalThis<"u"?globalThis:s||self,W(s["pepperdash/mobile-control-react-app-core"]={},s.axios,s.reactRedux,s.toolkit,s.React,s._,s.reactRouterDom))})(this,function(s,W,N,g,C,ve,R1){"use strict";var $6=Object.defineProperty;var U6=(s,W,N)=>W in s?$6(s,W,{enumerable:!0,configurable:!0,writable:!0,value:N}):s[W]=N;var X=(s,W,N)=>U6(s,typeof W!="symbol"?W+"":W,N);function ge(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z1=ge(ve),b1=N.useDispatch.withTypes(),w=N.useSelector.withTypes(),f1=e=>e.appConfig,J1=g.createSelector(f1,e=>e.config),X1=g.createSelector(f1,e=>e.config.apiPath),Q1=g.createSelector(f1,e=>e.config.logoPath),q1=g.createSelector(f1,e=>e.config.partnerMetadata),N1=()=>w(J1),fe=()=>w(X1),we=()=>w(Q1),me=()=>w(q1),e3=e=>e.devices,y1=g.createSelector(e3,e=>e),t3=e=>g.createSelector(e3,t=>t[e]?t[e]:void 0),Me=()=>w(y1);function P(e){return w(t3(e))}const A=e=>e.rooms,c3=e=>g.createSelector(A,t=>t[e]?t[e].configuration:void 0),n3=g.createSelector(A,e=>e),s3=e=>g.createSelector(A,t=>t[e]?t[e]:void 0),o3=e=>g.createSelector(A,t=>t[e]?t[e].name:void 0),r3=(e,t)=>g.createSelector(A,n=>n[e]?n[e].volumes[t]:void 0),l3=e=>g.createSelector(A,t=>t[e]?t[e]:void 0),i3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.sourceList:void 0}),a3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.audioControlPointList:void 0}),u3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.destinations:void 0}),d3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.destinationList:void 0}),h3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.environmentalDevices:void 0}),v3=e=>g.createSelector(A,t=>{var n,r,l,a,h,u,m,p;return(r=(n=t[e])==null?void 0:n.configuration)!=null&&r.destinationList.programAudio?(h=(a=(l=t[e])==null?void 0:l.configuration)==null?void 0:a.destinationList.programAudio)==null?void 0:h.sinkKey:((p=(m=(u=t[e])==null?void 0:u.configuration)==null?void 0:m.destinationList.defaultDisplay)==null?void 0:p.sinkKey)||""}),g3=e=>g.createSelector(A,t=>{var n,r,l;return t[e]?(l=(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.destinationList.codecContent)==null?void 0:l.sinkKey:void 0}),f3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isInCall:void 0}),w3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isWarmingUp:void 0}),m3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isCoolingDown:void 0}),M3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isOn:void 0}),p3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.advancedSharingActive:void 0}),S3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.share:void 0}),Z3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.zoomRoomControllerKey:void 0}),x3=g.createSelector([(e,t)=>t,()=>y1,(e,t)=>{var n,r;return(r=(n=e.rooms[t])==null?void 0:n.configuration)==null?void 0:r.destinations}],(e,t,n)=>{if(console.log("roomKey",e),console.log("devices",t),console.log("destinations",n),!n)return;const r=Object.entries(n).filter(([a])=>a!=="programAudio"&&a!=="codecContent").map(([,a])=>a);return Object.values(t).filter(a=>Object.values(r).includes(a.key))});function pe(e){return w(c3(e))}function Se(){return w(n3)}function i1(e){return w(s3(e))}const Ze=i1,xe=e=>w(o3(e)),j3=(e,t)=>w(r3(e,t)),C3=e=>w(l3(e))||void 0,je=e=>w(i3(e)),Ce=e=>w(a3(e)),Ie=e=>w(u3(e)),Re=e=>w(d3(e)),be=e=>w(h3(e)),ye=e=>w(v3(e)),Ee=e=>w(g3(e)),Pe=e=>w(f3(e)),De=e=>w(w3(e)),Te=e=>w(m3(e)),Le=e=>w(M3(e)),Ae=e=>w(p3(e)),_e=e=>w(S3(e)),Be=e=>w(t=>x3(t,e)),Oe=e=>w(Z3(e)),z=e=>e.runtimeConfig,I3=g.createSelector(z,e=>e.websocket.isConnected),R3=g.createSelector(z,e=>e.currentRoomKey),b3=g.createSelector(z,e=>e.roomData.clientId),y3=g.createSelector(z,e=>e.roomData.systemUuid),E3=g.createSelector(z,e=>e.roomData.userCode),P3=g.createSelector(z,e=>e.serverIsRunningOnProcessorHardware),D3=g.createSelector(z,e=>{var t;return(t=e.roomData.config)==null?void 0:t.runtimeInfo}),T3=g.createSelector(z,e=>e.touchpanelKey),L3=g.createSelector(z,e=>e.touchpanelKey!==""),A3=g.createSelector(z,e=>e.roomData.deviceInterfaceSupport),E1=()=>w(I3),_3=()=>w(R3),B3=()=>w(b3),O3=()=>w(y3),V3=()=>w(E3),$3=()=>w(P3),Ve=()=>w(D3),$e=()=>w(T3),Ue=()=>w(L3),We=()=>w(A3),c1=e=>e.ui,w1=e=>g.createSelector(c1,t=>t.modalVisibility[e]),U3=e=>g.createSelector(c1,t=>{const n=t.popoverVisibility[e];if(n)return Object.keys(n).find(r=>n[r])}),W3=(e,t)=>g.createSelector(c1,n=>{var r;return((r=n.popoverVisibility[e])==null?void 0:r[t])??!1}),F3=g.createSelector(c1,e=>e.error),H3=g.createSelector(c1,e=>e.showReconnect),K3=g.createSelector(c1,e=>e.theme),k3=e=>g.createSelector(c1,t=>t.syncState.
|
|
1
|
+
(function(s,W){typeof exports=="object"&&typeof module<"u"?W(exports,require("axios"),require("react-redux"),require("@reduxjs/toolkit"),require("react"),require("lodash"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","axios","react-redux","@reduxjs/toolkit","react","lodash","react-router-dom"],W):(s=typeof globalThis<"u"?globalThis:s||self,W(s["pepperdash/mobile-control-react-app-core"]={},s.axios,s.reactRedux,s.toolkit,s.React,s._,s.reactRouterDom))})(this,function(s,W,N,g,C,ve,R1){"use strict";var $6=Object.defineProperty;var U6=(s,W,N)=>W in s?$6(s,W,{enumerable:!0,configurable:!0,writable:!0,value:N}):s[W]=N;var X=(s,W,N)=>U6(s,typeof W!="symbol"?W+"":W,N);function ge(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z1=ge(ve),b1=N.useDispatch.withTypes(),w=N.useSelector.withTypes(),f1=e=>e.appConfig,J1=g.createSelector(f1,e=>e.config),X1=g.createSelector(f1,e=>e.config.apiPath),Q1=g.createSelector(f1,e=>e.config.logoPath),q1=g.createSelector(f1,e=>e.config.partnerMetadata),N1=()=>w(J1),fe=()=>w(X1),we=()=>w(Q1),me=()=>w(q1),e3=e=>e.devices,y1=g.createSelector(e3,e=>e),t3=e=>g.createSelector(e3,t=>t[e]?t[e]:void 0),Me=()=>w(y1);function P(e){return w(t3(e))}const A=e=>e.rooms,c3=e=>g.createSelector(A,t=>t[e]?t[e].configuration:void 0),n3=g.createSelector(A,e=>e),s3=e=>g.createSelector(A,t=>t[e]?t[e]:void 0),o3=e=>g.createSelector(A,t=>t[e]?t[e].name:void 0),r3=(e,t)=>g.createSelector(A,n=>n[e]?n[e].volumes[t]:void 0),l3=e=>g.createSelector(A,t=>t[e]?t[e]:void 0),i3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.sourceList:void 0}),a3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.audioControlPointList:void 0}),u3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.destinations:void 0}),d3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.destinationList:void 0}),h3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.environmentalDevices:void 0}),v3=e=>g.createSelector(A,t=>{var n,r,l,a,h,u,m,p;return(r=(n=t[e])==null?void 0:n.configuration)!=null&&r.destinationList.programAudio?(h=(a=(l=t[e])==null?void 0:l.configuration)==null?void 0:a.destinationList.programAudio)==null?void 0:h.sinkKey:((p=(m=(u=t[e])==null?void 0:u.configuration)==null?void 0:m.destinationList.defaultDisplay)==null?void 0:p.sinkKey)||""}),g3=e=>g.createSelector(A,t=>{var n,r,l;return t[e]?(l=(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.destinationList.codecContent)==null?void 0:l.sinkKey:void 0}),f3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isInCall:void 0}),w3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isWarmingUp:void 0}),m3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isCoolingDown:void 0}),M3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isOn:void 0}),p3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.advancedSharingActive:void 0}),S3=e=>g.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.share:void 0}),Z3=e=>g.createSelector(A,t=>{var n,r;return t[e]?(r=(n=t[e])==null?void 0:n.configuration)==null?void 0:r.zoomRoomControllerKey:void 0}),x3=g.createSelector([(e,t)=>t,()=>y1,(e,t)=>{var n,r;return(r=(n=e.rooms[t])==null?void 0:n.configuration)==null?void 0:r.destinations}],(e,t,n)=>{if(console.log("roomKey",e),console.log("devices",t),console.log("destinations",n),!n)return;const r=Object.entries(n).filter(([a])=>a!=="programAudio"&&a!=="codecContent").map(([,a])=>a);return Object.values(t).filter(a=>Object.values(r).includes(a.key))});function pe(e){return w(c3(e))}function Se(){return w(n3)}function i1(e){return w(s3(e))}const Ze=i1,xe=e=>w(o3(e)),j3=(e,t)=>w(r3(e,t)),C3=e=>w(l3(e))||void 0,je=e=>w(i3(e)),Ce=e=>w(a3(e)),Ie=e=>w(u3(e)),Re=e=>w(d3(e)),be=e=>w(h3(e)),ye=e=>w(v3(e)),Ee=e=>w(g3(e)),Pe=e=>w(f3(e)),De=e=>w(w3(e)),Te=e=>w(m3(e)),Le=e=>w(M3(e)),Ae=e=>w(p3(e)),_e=e=>w(S3(e)),Be=e=>w(t=>x3(t,e)),Oe=e=>w(Z3(e)),z=e=>e.runtimeConfig,I3=g.createSelector(z,e=>e.websocket.isConnected),R3=g.createSelector(z,e=>e.currentRoomKey),b3=g.createSelector(z,e=>e.roomData.clientId),y3=g.createSelector(z,e=>e.roomData.systemUuid),E3=g.createSelector(z,e=>e.roomData.userCode),P3=g.createSelector(z,e=>e.serverIsRunningOnProcessorHardware),D3=g.createSelector(z,e=>{var t;return(t=e.roomData.config)==null?void 0:t.runtimeInfo}),T3=g.createSelector(z,e=>e.touchpanelKey),L3=g.createSelector(z,e=>e.touchpanelKey!==""),A3=g.createSelector(z,e=>e.roomData.deviceInterfaceSupport),E1=()=>w(I3),_3=()=>w(R3),B3=()=>w(b3),O3=()=>w(y3),V3=()=>w(E3),$3=()=>w(P3),Ve=()=>w(D3),$e=()=>w(T3),Ue=()=>w(L3),We=()=>w(A3),c1=e=>e.ui,w1=e=>g.createSelector(c1,t=>t.modalVisibility[e]),U3=e=>g.createSelector(c1,t=>{const n=t.popoverVisibility[e];if(n)return Object.keys(n).find(r=>n[r])}),W3=(e,t)=>g.createSelector(c1,n=>{var r;return((r=n.popoverVisibility[e])==null?void 0:r[t])??!1}),F3=g.createSelector(c1,e=>e.error),H3=g.createSelector(c1,e=>e.showReconnect),K3=g.createSelector(c1,e=>e.theme),k3=e=>g.createSelector(c1,t=>t.syncState.includes(e)),Fe=()=>w(w1("showShutdownModal")),He=()=>w(w1("showIncomingCallModal")),Ke=e=>w(w1(e)),ke=e=>w(U3(e)),Ge=(e,t)=>w(W3(e,t)),G3=()=>w(F3),Y3=()=>w(H3),Ye=()=>w(K3),z3=e=>w(k3(e)),ze={showReconnect:!1,error:"",modalVisibility:{showShutdownModal:!1,showIncomingCallModal:!1},popoverVisibility:{},syncState:[]},J3=g.createSlice({name:"ui",initialState:ze,reducers:{clearAllModals(e){Object.entries(e.modalVisibility).forEach(([t])=>{e.modalVisibility[t]=!1})},setModalState(e,t){e.modalVisibility[t.payload.modalType]=t.payload.value},setShowShutdownModal(e,t){e.modalVisibility.showShutdownModal=t.payload},setIncomingCallModal(e,t){e.modalVisibility.showIncomingCallModal=t.payload},setPopoverState(e,t){e.popoverVisibility[t.payload.popoverGroup]||(e.popoverVisibility[t.payload.popoverGroup]={}),Object.entries(e.popoverVisibility[t.payload.popoverGroup]).forEach(([n])=>{e.popoverVisibility[t.payload.popoverGroup][n]=!1}),e.popoverVisibility[t.payload.popoverGroup][t.payload.popoverId]=t.payload.value},setErrorMessage(e,t){e.error=t.payload},setShowReconnect(e,t){e.showReconnect=t.payload},setTheme(e,t){e.theme=t.payload},addSyncState(e,t){e.syncState.includes(t.payload)||e.syncState.push(t.payload)},removeSyncState(e,t){e.syncState=e.syncState.filter(n=>n!==t.payload)},clearSyncState(e){e.syncState=[]}}}),H=J3.actions,X3=J3.reducer,Je={config:{enableDev:!1,apiPath:"",gatewayAppPath:"",logoPath:"",iconSet:"GOOGLE",loginMode:"",modes:{}}},Q3=g.createSlice({name:"appConfig",initialState:Je,reducers:{setAppConfig(e,t){e.config=t.payload}}}),q3=Q3.actions,Xe=Q3.reducer,N3={},P1=g.createSlice({name:"devices",initialState:N3,reducers:{setDeviceState(e,t){const n=t.payload.type,r=n.slice(n.lastIndexOf("/")+1);if(!r)return;const l=t.payload.content,a=e[r]??{},h=z1.merge(a,l);e[r]=h},clearDevices(){return N3}}}),e1={setDeviceState:P1.actions.setDeviceState,clearDevices:P1.actions.clearDevices},Qe=P1.reducer,e2={},D1=g.createSlice({name:"rooms",initialState:e2,reducers:{setRoomState(e,t){const n=t.payload.type,r=n.slice(n.lastIndexOf("/")+1);if(!r)return;const l=t.payload.content,a=e[r]??{},h=z1.merge(a,l);e[r]=h},clearRooms(){return e2}}}),t1={setRoomState:D1.actions.setRoomState,clearRooms:D1.actions.clearRooms},qe=D1.reducer,Ne={apiVersion:"",serverIsRunningOnProcessorHardware:!1,websocket:{isConnected:void 0},pluginVersion:"",disconnectionMessage:"",token:"",currentRoomKey:"",touchpanelKey:"",roomData:{clientId:"",roomKey:"",systemUuid:"",roomUuid:"",userAppUrl:"",config:{runtimeInfo:{pluginVersion:"",essentialsVersion:"",pepperDashCoreVersion:"",essentialsPlugins:[]},rooms:[],devices:[]},deviceInterfaceSupport:{},userCode:"",qrUrl:""}},t2=g.createSlice({name:"runtimeConfig",initialState:Ne,reducers:{setRuntimeConfig(e,t){e.apiVersion=t.payload.apiVersion,e.serverIsRunningOnProcessorHardware=t.payload.serverIsRunningOnProcessorHardware},setToken(e,t){e.token=t.payload},setWebsocketIsConnected(e,t){e.websocket.isConnected=t.payload},setPluginVersion(e,t){e.pluginVersion=t.payload},setRoomData(e,t){e.roomData=t.payload},setCurrentRoomKey(e,t){e.currentRoomKey=t.payload},setUserCode(e,t){e.roomData.userCode=t.payload.userCode,e.roomData.qrUrl=t.payload.qrUrl},setTouchpanelKey(e,t){e.touchpanelKey=t.payload}}}),K=t2.actions,e8=t2.reducer,t8=g.combineReducers({appConfig:Xe,runtimeConfig:e8,rooms:qe,devices:Qe,ui:X3}),S=g.configureStore({reducer:t8}),m1=W.create();function c2(){const e=b1();return async()=>{try{const t=location.pathname.split("/").filter(l=>l.length>0);t.length>=5?t.length=5:t.length=2;const n=`/${t.join("/")}`,r=await m1.get("/_local-config/_config.local.json",{baseURL:n});if(r.status==200&&r.data){const l=r.data.apiPath;e(q3.setAppConfig(r.data));const a=await m1.get(`${l}/version`);a.status==200&&a.data&&e(K.setRuntimeConfig(a.data))}}catch(t){console.error("Error getting config",t)}return!0}}var M1={exports:{}},a1={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.selectors.d.ts","sourceRoot":"","sources":["../../../src/lib/store/ui/ui.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,eAAO,MAAM,qBAAqB,cAAe,MAAM;;;;;;;;;;;;;;;;;;2BAF/B,SAAS;;;;;;;;CAG+B,CAAC;AAEjE,eAAO,MAAM,8BAA8B,iBAAkB,MAAM;;;;;;;;;;;;;;;;;;2BAL3C,SAAS;;;;;;;;CAc7B,CAAC;AAEL,eAAO,MAAM,qBAAqB,iBAClB,MAAM,aACT,MAAM;;;;;;;;;;;;;;;;;;2BAlBK,SAAS;;;;;;;;CAuB9B,CAAC;AAEJ,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;2BAzBA,SAAS;;;;;;;;CAyBmC,CAAC;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;2BA3BR,SAAS;;;;;;;;CA8BhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;2BAhCA,SAAS;;;;;;;;CAgCmC,CAAC;AAErE,eAAO,MAAM,6BAA6B,UAAW,MAAM;;;;;;;;;;;;;;;;;;2BAlCnC,SAAS;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ui.selectors.d.ts","sourceRoot":"","sources":["../../../src/lib/store/ui/ui.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,eAAO,MAAM,qBAAqB,cAAe,MAAM;;;;;;;;;;;;;;;;;;2BAF/B,SAAS;;;;;;;;CAG+B,CAAC;AAEjE,eAAO,MAAM,8BAA8B,iBAAkB,MAAM;;;;;;;;;;;;;;;;;;2BAL3C,SAAS;;;;;;;;CAc7B,CAAC;AAEL,eAAO,MAAM,qBAAqB,iBAClB,MAAM,aACT,MAAM;;;;;;;;;;;;;;;;;;2BAlBK,SAAS;;;;;;;;CAuB9B,CAAC;AAEJ,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;2BAzBA,SAAS;;;;;;;;CAyBmC,CAAC;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;2BA3BR,SAAS;;;;;;;;CA8BhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;2BAhCA,SAAS;;;;;;;;CAgCmC,CAAC;AAErE,eAAO,MAAM,6BAA6B,UAAW,MAAM;;;;;;;;;;;;;;;;;;2BAlCnC,SAAS;;;;;;;;CAmC8B,CAAC"}
|
|
@@ -10,7 +10,7 @@ export interface UiConfigState {
|
|
|
10
10
|
* Used as a way to track what components have finished their initial data loading as a rudimentary
|
|
11
11
|
* cache mechanism
|
|
12
12
|
*/
|
|
13
|
-
syncState:
|
|
13
|
+
syncState: string[];
|
|
14
14
|
}
|
|
15
15
|
type modalType = 'showShutdownModal' | 'showIncomingCallModal';
|
|
16
16
|
type popoverGroup = 'header' | 'rightDrawer';
|
|
@@ -27,7 +27,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
theme?: string | undefined;
|
|
30
|
-
syncState:
|
|
30
|
+
syncState: string[];
|
|
31
31
|
}): void;
|
|
32
32
|
setModalState(state: {
|
|
33
33
|
showReconnect: boolean;
|
|
@@ -41,7 +41,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
theme?: string | undefined;
|
|
44
|
-
syncState:
|
|
44
|
+
syncState: string[];
|
|
45
45
|
}, action: PayloadAction<{
|
|
46
46
|
modalType: modalType | string;
|
|
47
47
|
value: boolean;
|
|
@@ -58,7 +58,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
theme?: string | undefined;
|
|
61
|
-
syncState:
|
|
61
|
+
syncState: string[];
|
|
62
62
|
}, action: PayloadAction<boolean>): void;
|
|
63
63
|
setIncomingCallModal(state: {
|
|
64
64
|
showReconnect: boolean;
|
|
@@ -72,7 +72,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
theme?: string | undefined;
|
|
75
|
-
syncState:
|
|
75
|
+
syncState: string[];
|
|
76
76
|
}, action: PayloadAction<boolean>): void;
|
|
77
77
|
setPopoverState(state: {
|
|
78
78
|
showReconnect: boolean;
|
|
@@ -86,7 +86,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
theme?: string | undefined;
|
|
89
|
-
syncState:
|
|
89
|
+
syncState: string[];
|
|
90
90
|
}, action: PayloadAction<{
|
|
91
91
|
popoverGroup: popoverGroup | string;
|
|
92
92
|
popoverId: string;
|
|
@@ -104,7 +104,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
theme?: string | undefined;
|
|
107
|
-
syncState:
|
|
107
|
+
syncState: string[];
|
|
108
108
|
}, action: PayloadAction<string>): void;
|
|
109
109
|
setShowReconnect(state: {
|
|
110
110
|
showReconnect: boolean;
|
|
@@ -118,7 +118,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
theme?: string | undefined;
|
|
121
|
-
syncState:
|
|
121
|
+
syncState: string[];
|
|
122
122
|
}, action: PayloadAction<boolean>): void;
|
|
123
123
|
setTheme(state: {
|
|
124
124
|
showReconnect: boolean;
|
|
@@ -132,7 +132,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
theme?: string | undefined;
|
|
135
|
-
syncState:
|
|
135
|
+
syncState: string[];
|
|
136
136
|
}, action: PayloadAction<string>): void;
|
|
137
137
|
addSyncState(state: {
|
|
138
138
|
showReconnect: boolean;
|
|
@@ -146,7 +146,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
148
|
theme?: string | undefined;
|
|
149
|
-
syncState:
|
|
149
|
+
syncState: string[];
|
|
150
150
|
}, action: PayloadAction<string>): void;
|
|
151
151
|
removeSyncState(state: {
|
|
152
152
|
showReconnect: boolean;
|
|
@@ -160,7 +160,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
theme?: string | undefined;
|
|
163
|
-
syncState:
|
|
163
|
+
syncState: string[];
|
|
164
164
|
}, action: PayloadAction<string>): void;
|
|
165
165
|
clearSyncState(state: {
|
|
166
166
|
showReconnect: boolean;
|
|
@@ -174,7 +174,7 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
176
|
theme?: string | undefined;
|
|
177
|
-
syncState:
|
|
177
|
+
syncState: string[];
|
|
178
178
|
}): void;
|
|
179
179
|
}, "ui">;
|
|
180
180
|
export declare const uiReducer: import("redux").Reducer<UiConfigState>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/store/ui/ui.slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ui.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/store/ui/ui.slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAkF9D,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC,SAAS,GAAG,MAAM,EAAE,OAAO,CAAC,CAAC;IACrD,iBAAiB,EAAE,MAAM,CAAC,YAAY,GAAG,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,KAAK,SAAS,GAAG,mBAAmB,GAAG,uBAAuB,CAAC;AAC/D,KAAK,YAAY,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE7C,eAAO,MAAM,SAAS;;uBAhBL,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;;;uBAVJ,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eArEP,cAAc;QAAE,WAAW,SAAS,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;;uBA2D7D,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eAjEmB,cAAc,OAAO,CAAC;;uBAuD7C,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eA9DmB,cAAc,OAAO,CAAC;;uBAoD7C,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eAzDP,cAAc;QACpB,cAAc,YAAY,GAAG,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;;uBA2CS,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eApCc,cAAc,MAAM,CAAC;;uBA0BvC,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eAjCe,cAAc,OAAO,CAAC;;uBAuBzC,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eA9BO,cAAc,MAAM,CAAC;;uBAoBhC,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eA3BW,cAAc,MAAM,CAAC;;uBAiBpC,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;eAtBc,cAAc,MAAM,CAAC;;uBAYvC,OAAO;eACf,MAAM;;;;;;;;;;mBASF,MAAM,EAAE;;QAMmB,CAAC;AACzC,eAAO,MAAM,SAAS,wCAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pepperdash/mobile-control-react-app-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.21.0-feature-add-deviceInterfaceSupport-to-joinroom-response.
|
|
4
|
+
"version": "1.21.0-feature-add-deviceInterfaceSupport-to-joinroom-response.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|