@pepperdash/mobile-control-react-app-core 1.21.0-feature-export-useCameraBase.7 → 1.21.0-feature-add-deviceInterfaceSupport-to-joinroom-response.1
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 +85 -84
- package/dist/mobile-control-react-app-core.umd.js +1 -1
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts +56 -0
- package/dist/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -1
- package/dist/types/classes/room-data.d.ts +7 -1
- package/dist/types/classes/room-data.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,135 +3,135 @@ var o2 = (e, t, o) => t in e ? s2(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
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
|
-
import { createSelector as
|
|
7
|
-
import
|
|
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 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
9
|
import { useNavigate as v2, useRouteError as g2, isRouteErrorResponse as f2 } from "react-router-dom";
|
|
10
|
-
const
|
|
10
|
+
const p2 = r2.withTypes(), p = l2.withTypes(), j1 = (e) => e.appConfig, w2 = w(
|
|
11
11
|
j1,
|
|
12
12
|
(e) => e.config
|
|
13
|
-
), x2 =
|
|
13
|
+
), x2 = w(
|
|
14
14
|
j1,
|
|
15
15
|
(e) => e.config.apiPath
|
|
16
|
-
), M2 =
|
|
16
|
+
), M2 = w(
|
|
17
17
|
j1,
|
|
18
18
|
(e) => e.config.logoPath
|
|
19
|
-
), m2 =
|
|
19
|
+
), m2 = w(
|
|
20
20
|
j1,
|
|
21
21
|
(e) => e.config.partnerMetadata
|
|
22
|
-
), Z2 = () =>
|
|
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
|
-
), j2 = (e) =>
|
|
25
|
+
), j2 = (e) => w(
|
|
26
26
|
m3,
|
|
27
27
|
(t) => t[e] ? t[e] : void 0
|
|
28
|
-
), U6 = () =>
|
|
28
|
+
), U6 = () => p(Z3);
|
|
29
29
|
function y(e) {
|
|
30
|
-
return
|
|
30
|
+
return p(j2(e));
|
|
31
31
|
}
|
|
32
|
-
const L = (e) => e.rooms, C2 = (e) =>
|
|
32
|
+
const L = (e) => e.rooms, C2 = (e) => w(
|
|
33
33
|
L,
|
|
34
34
|
(t) => t[e] ? t[e].configuration : void 0
|
|
35
|
-
), S2 =
|
|
35
|
+
), S2 = w(
|
|
36
36
|
L,
|
|
37
37
|
(e) => e
|
|
38
|
-
), b2 = (e) =>
|
|
38
|
+
), b2 = (e) => w(
|
|
39
39
|
L,
|
|
40
40
|
(t) => t[e] ? t[e] : void 0
|
|
41
|
-
), I2 = (e) =>
|
|
41
|
+
), I2 = (e) => w(
|
|
42
42
|
L,
|
|
43
43
|
(t) => t[e] ? t[e].name : void 0
|
|
44
|
-
), R2 = (e, t) =>
|
|
44
|
+
), R2 = (e, t) => w(
|
|
45
45
|
L,
|
|
46
46
|
(o) => o[e] ? o[e].volumes[t] : void 0
|
|
47
|
-
), y2 = (e) =>
|
|
47
|
+
), y2 = (e) => w(
|
|
48
48
|
L,
|
|
49
49
|
(t) => t[e] ? t[e] : void 0
|
|
50
|
-
), E2 = (e) =>
|
|
50
|
+
), E2 = (e) => w(
|
|
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
|
-
), P2 = (e) =>
|
|
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
|
-
), T2 = (e) =>
|
|
62
|
+
), T2 = (e) => w(
|
|
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
|
-
), _2 = (e) =>
|
|
68
|
+
), _2 = (e) => w(
|
|
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
|
-
), L2 = (e) =>
|
|
74
|
+
), L2 = (e) => w(
|
|
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
|
-
), D2 = (e) =>
|
|
80
|
+
), D2 = (e) => w(
|
|
81
81
|
L,
|
|
82
82
|
(t) => {
|
|
83
83
|
var o, c, r, i, d, a, g, 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 = (g = (a = t[e]) == null ? void 0 : a.configuration) == null ? void 0 : g.destinationList.defaultDisplay) == null ? void 0 : x.sinkKey) || "";
|
|
85
85
|
}
|
|
86
|
-
), $2 = (e) =>
|
|
86
|
+
), $2 = (e) => w(
|
|
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
|
-
), A2 = (e) =>
|
|
92
|
+
), A2 = (e) => w(
|
|
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
|
-
), B2 = (e) =>
|
|
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
|
-
), O2 = (e) =>
|
|
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
|
-
), V2 = (e) =>
|
|
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
|
-
), k2 = (e) =>
|
|
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
|
-
), U2 = (e) =>
|
|
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
|
-
), W2 = (e) =>
|
|
128
|
+
), W2 = (e) => w(
|
|
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
|
-
), F2 =
|
|
134
|
+
), F2 = w(
|
|
135
135
|
[
|
|
136
136
|
(e, t) => t,
|
|
137
137
|
() => Z3,
|
|
@@ -147,76 +147,76 @@ const L = (e) => e.rooms, C2 = (e) => p(
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
function W6(e) {
|
|
150
|
-
return
|
|
150
|
+
return p(
|
|
151
151
|
C2(e)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function F6() {
|
|
155
|
-
return
|
|
155
|
+
return p(S2);
|
|
156
156
|
}
|
|
157
157
|
function C1(e) {
|
|
158
|
-
return
|
|
158
|
+
return p(b2(e));
|
|
159
159
|
}
|
|
160
|
-
const H6 = C1, K6 = (e) =>
|
|
160
|
+
const H6 = C1, K6 = (e) => p(
|
|
161
161
|
I2(e)
|
|
162
|
-
), H2 = (e, t) =>
|
|
162
|
+
), H2 = (e, t) => p(
|
|
163
163
|
R2(e, t)
|
|
164
|
-
), K2 = (e) =>
|
|
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
|
-
), q2 =
|
|
167
|
+
), q2 = w(
|
|
168
168
|
J,
|
|
169
169
|
(e) => e.currentRoomKey
|
|
170
|
-
), Y2 =
|
|
170
|
+
), Y2 = w(
|
|
171
171
|
J,
|
|
172
172
|
(e) => e.roomData.clientId
|
|
173
|
-
), z2 =
|
|
173
|
+
), z2 = w(
|
|
174
174
|
J,
|
|
175
175
|
(e) => e.roomData.systemUuid
|
|
176
|
-
), J2 =
|
|
176
|
+
), J2 = w(
|
|
177
177
|
J,
|
|
178
178
|
(e) => e.roomData.userCode
|
|
179
|
-
), X2 =
|
|
179
|
+
), X2 = w(
|
|
180
180
|
J,
|
|
181
181
|
(e) => e.serverIsRunningOnProcessorHardware
|
|
182
|
-
), Q2 =
|
|
182
|
+
), Q2 = w(
|
|
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
|
-
), N2 =
|
|
188
|
+
), N2 = w(
|
|
189
189
|
J,
|
|
190
190
|
(e) => e.touchpanelKey
|
|
191
|
-
), e8 =
|
|
191
|
+
), e8 = w(
|
|
192
192
|
J,
|
|
193
193
|
(e) => e.touchpanelKey !== ""
|
|
194
|
-
), j3 = () =>
|
|
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
|
-
), r8 = (e) =>
|
|
197
|
+
), r8 = (e) => w(
|
|
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) => w(
|
|
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 = w(
|
|
211
211
|
c1,
|
|
212
212
|
(e) => e.error
|
|
213
|
-
), a8 =
|
|
213
|
+
), a8 = w(
|
|
214
214
|
c1,
|
|
215
215
|
(e) => e.showReconnect
|
|
216
|
-
), u8 =
|
|
216
|
+
), u8 = w(
|
|
217
217
|
c1,
|
|
218
218
|
(e) => e.theme
|
|
219
|
-
), ue = () =>
|
|
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: {
|
|
@@ -275,7 +275,7 @@ const H6 = C1, K6 = (e) => w(
|
|
|
275
275
|
e.config = t.payload;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), p8 = S3.actions, w8 = S3.reducer, d3 = {}, B1 = g1({
|
|
279
279
|
name: "devices",
|
|
280
280
|
initialState: d3,
|
|
281
281
|
reducers: {
|
|
@@ -336,6 +336,7 @@ const H6 = C1, K6 = (e) => w(
|
|
|
336
336
|
rooms: [],
|
|
337
337
|
devices: []
|
|
338
338
|
},
|
|
339
|
+
deviceInterfaceSupport: {},
|
|
339
340
|
userCode: "",
|
|
340
341
|
qrUrl: ""
|
|
341
342
|
}
|
|
@@ -369,7 +370,7 @@ const H6 = C1, K6 = (e) => w(
|
|
|
369
370
|
}
|
|
370
371
|
}
|
|
371
372
|
}), W = b3.actions, Z8 = b3.reducer, j8 = a2({
|
|
372
|
-
appConfig:
|
|
373
|
+
appConfig: w8,
|
|
373
374
|
runtimeConfig: Z8,
|
|
374
375
|
rooms: M8,
|
|
375
376
|
devices: x8,
|
|
@@ -378,7 +379,7 @@ const H6 = C1, K6 = (e) => w(
|
|
|
378
379
|
reducer: j8
|
|
379
380
|
}), V1 = n2.create();
|
|
380
381
|
function C8() {
|
|
381
|
-
const e =
|
|
382
|
+
const e = p2();
|
|
382
383
|
return async () => {
|
|
383
384
|
try {
|
|
384
385
|
const t = location.pathname.split("/").filter((r) => r.length > 0);
|
|
@@ -386,7 +387,7 @@ function C8() {
|
|
|
386
387
|
const o = `/${t.join("/")}`, c = await V1.get("/_local-config/_config.local.json", { baseURL: o });
|
|
387
388
|
if (c.status == 200 && c.data) {
|
|
388
389
|
const r = c.data.apiPath;
|
|
389
|
-
e(
|
|
390
|
+
e(p8.setAppConfig(c.data));
|
|
390
391
|
const i = await V1.get(`${r}/version`);
|
|
391
392
|
i.status == 200 && i.data && e(W.setRuntimeConfig(i.data));
|
|
392
393
|
}
|
|
@@ -410,7 +411,7 @@ var v3;
|
|
|
410
411
|
function S8() {
|
|
411
412
|
if (v3) return u1;
|
|
412
413
|
v3 = 1;
|
|
413
|
-
var e =
|
|
414
|
+
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
415
|
function d(a, g, x) {
|
|
415
416
|
var h, I = {}, D = null, F = null;
|
|
416
417
|
x !== void 0 && (D = "" + x), g.key !== void 0 && (D = "" + g.key), g.ref !== void 0 && (F = g.ref);
|
|
@@ -433,7 +434,7 @@ var d1 = {};
|
|
|
433
434
|
var g3;
|
|
434
435
|
function b8() {
|
|
435
436
|
return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
436
|
-
var e =
|
|
437
|
+
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
438
|
function r1(n) {
|
|
438
439
|
if (n === null || typeof n != "object")
|
|
439
440
|
return null;
|
|
@@ -585,7 +586,7 @@ function b8() {
|
|
|
585
586
|
}
|
|
586
587
|
}
|
|
587
588
|
var R1 = $.ReactCurrentDispatcher, y1;
|
|
588
|
-
function
|
|
589
|
+
function p1(n, l, u) {
|
|
589
590
|
{
|
|
590
591
|
if (y1 === void 0)
|
|
591
592
|
try {
|
|
@@ -598,16 +599,16 @@ function b8() {
|
|
|
598
599
|
` + y1 + n;
|
|
599
600
|
}
|
|
600
601
|
}
|
|
601
|
-
var E1 = !1,
|
|
602
|
+
var E1 = !1, w1;
|
|
602
603
|
{
|
|
603
604
|
var T3 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
604
|
-
|
|
605
|
+
w1 = new T3();
|
|
605
606
|
}
|
|
606
607
|
function J1(n, l) {
|
|
607
608
|
if (!n || E1)
|
|
608
609
|
return "";
|
|
609
610
|
{
|
|
610
|
-
var u =
|
|
611
|
+
var u = w1.get(n);
|
|
611
612
|
if (u !== void 0)
|
|
612
613
|
return u;
|
|
613
614
|
}
|
|
@@ -662,7 +663,7 @@ function b8() {
|
|
|
662
663
|
if (T--, _--, _ < 0 || M[T] !== O[_]) {
|
|
663
664
|
var U = `
|
|
664
665
|
` + M[T].replace(" at new ", " at ");
|
|
665
|
-
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
666
|
+
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" && w1.set(n, U), U;
|
|
666
667
|
}
|
|
667
668
|
while (T >= 1 && _ >= 0);
|
|
668
669
|
break;
|
|
@@ -671,8 +672,8 @@ function b8() {
|
|
|
671
672
|
} finally {
|
|
672
673
|
E1 = !1, R1.current = R, P3(), Error.prepareStackTrace = S;
|
|
673
674
|
}
|
|
674
|
-
var o1 = n ? n.displayName || n.name : "", Q = o1 ?
|
|
675
|
-
return typeof n == "function" &&
|
|
675
|
+
var o1 = n ? n.displayName || n.name : "", Q = o1 ? p1(o1) : "";
|
|
676
|
+
return typeof n == "function" && w1.set(n, Q), Q;
|
|
676
677
|
}
|
|
677
678
|
function _3(n, l, u) {
|
|
678
679
|
return J1(n, !1);
|
|
@@ -687,12 +688,12 @@ function b8() {
|
|
|
687
688
|
if (typeof n == "function")
|
|
688
689
|
return J1(n, L3(n));
|
|
689
690
|
if (typeof n == "string")
|
|
690
|
-
return
|
|
691
|
+
return p1(n);
|
|
691
692
|
switch (n) {
|
|
692
693
|
case x:
|
|
693
|
-
return
|
|
694
|
+
return p1("Suspense");
|
|
694
695
|
case h:
|
|
695
|
-
return
|
|
696
|
+
return p1("SuspenseList");
|
|
696
697
|
}
|
|
697
698
|
if (typeof n == "object")
|
|
698
699
|
switch (n.$$typeof) {
|
|
@@ -1049,7 +1050,7 @@ class P8 {
|
|
|
1049
1050
|
G(this, "expiry", "current-uuid-expires");
|
|
1050
1051
|
}
|
|
1051
1052
|
}
|
|
1052
|
-
const
|
|
1053
|
+
const p3 = new P8(), I3 = d2({
|
|
1053
1054
|
sendMessage: () => null,
|
|
1054
1055
|
sendSimpleMessage: () => null,
|
|
1055
1056
|
addEventHandler: () => null,
|
|
@@ -1099,7 +1100,7 @@ const L8 = ({ children: e }) => {
|
|
|
1099
1100
|
}, []);
|
|
1100
1101
|
return n1(() => {
|
|
1101
1102
|
let C = new URLSearchParams(window.location.search).get("token");
|
|
1102
|
-
C ? (console.log("saving token: ", C), _8(
|
|
1103
|
+
C ? (console.log("saving token: ", C), _8(p3.uuid, C)) : (C = T8(p3.uuid), console.log("loading token: ", C)), o(C), d();
|
|
1103
1104
|
}, []), console.log(
|
|
1104
1105
|
"connection dependencies",
|
|
1105
1106
|
a.apiPath,
|
|
@@ -1234,7 +1235,7 @@ const L8 = ({ children: e }) => {
|
|
|
1234
1235
|
children: c ? e : /* @__PURE__ */ s.jsx(E8, {})
|
|
1235
1236
|
}
|
|
1236
1237
|
);
|
|
1237
|
-
},
|
|
1238
|
+
}, pe = ({ children: e }) => /* @__PURE__ */ s.jsx(i2, { store: m, children: /* @__PURE__ */ s.jsx(L8, { children: e }) });
|
|
1238
1239
|
function b() {
|
|
1239
1240
|
return h2(I3);
|
|
1240
1241
|
}
|
|
@@ -1286,7 +1287,7 @@ function R3(e, t) {
|
|
|
1286
1287
|
muteOff: () => o(`${e}/muteOff`, null)
|
|
1287
1288
|
} : void 0;
|
|
1288
1289
|
}
|
|
1289
|
-
function
|
|
1290
|
+
function we(e, t) {
|
|
1290
1291
|
const { sendMessage: o, sendSimpleMessage: c } = b(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1291
1292
|
return t ? {
|
|
1292
1293
|
volumeState: t,
|
|
@@ -3230,7 +3231,7 @@ const c5 = () => {
|
|
|
3230
3231
|
active: e,
|
|
3231
3232
|
disabled: o
|
|
3232
3233
|
}
|
|
3233
|
-
),
|
|
3234
|
+
), p6 = ({
|
|
3234
3235
|
active: e,
|
|
3235
3236
|
className: t = "",
|
|
3236
3237
|
disabled: o
|
|
@@ -3279,7 +3280,7 @@ const c5 = () => {
|
|
|
3279
3280
|
active: e,
|
|
3280
3281
|
disabled: o
|
|
3281
3282
|
}
|
|
3282
|
-
),
|
|
3283
|
+
), w6 = ({
|
|
3283
3284
|
active: e,
|
|
3284
3285
|
className: t = "",
|
|
3285
3286
|
disabled: o
|
|
@@ -3408,8 +3409,8 @@ const c5 = () => {
|
|
|
3408
3409
|
VolMute: v6,
|
|
3409
3410
|
VolUp: g6,
|
|
3410
3411
|
Wireless: f6,
|
|
3411
|
-
X:
|
|
3412
|
-
Xbox:
|
|
3412
|
+
X: p6,
|
|
3413
|
+
Xbox: w6
|
|
3413
3414
|
};
|
|
3414
3415
|
function l5({
|
|
3415
3416
|
name: e,
|
|
@@ -3501,18 +3502,18 @@ export {
|
|
|
3501
3502
|
v6 as IconMultiVolMute,
|
|
3502
3503
|
g6 as IconMultiVolUp,
|
|
3503
3504
|
f6 as IconMultiWireless,
|
|
3504
|
-
|
|
3505
|
-
|
|
3505
|
+
p6 as IconMultiX,
|
|
3506
|
+
w6 as IconMultiXbox,
|
|
3506
3507
|
i5 as MainLayout,
|
|
3507
3508
|
v5 as MessageHandler,
|
|
3508
|
-
|
|
3509
|
+
pe as MobileControlProvider,
|
|
3509
3510
|
j as MultiStateIconContainer,
|
|
3510
3511
|
l5 as NamedIconButton,
|
|
3511
3512
|
d5 as ShareState,
|
|
3512
3513
|
a5 as TechLayout,
|
|
3513
3514
|
u5 as TechPinLayout,
|
|
3514
3515
|
I3 as WebsocketContext,
|
|
3515
|
-
|
|
3516
|
+
p8 as appConfigActions,
|
|
3516
3517
|
N as devicesActions,
|
|
3517
3518
|
h5 as getBaseLocation,
|
|
3518
3519
|
V1 as httpClient,
|
|
@@ -3522,7 +3523,7 @@ export {
|
|
|
3522
3523
|
W as runtimeConfigActions,
|
|
3523
3524
|
Z3 as selectAllDevices,
|
|
3524
3525
|
x2 as selectApiPath,
|
|
3525
|
-
|
|
3526
|
+
w2 as selectAppConfig,
|
|
3526
3527
|
Y2 as selectClientId,
|
|
3527
3528
|
r8 as selectCurrentPopoverIdForGroup,
|
|
3528
3529
|
j2 as selectDeviceByKey,
|
|
@@ -3567,8 +3568,8 @@ export {
|
|
|
3567
3568
|
g8 as uiReducer,
|
|
3568
3569
|
O6 as useApiPath,
|
|
3569
3570
|
Z2 as useAppConfig,
|
|
3570
|
-
|
|
3571
|
-
|
|
3571
|
+
p2 as useAppDispatch,
|
|
3572
|
+
p as useAppSelector,
|
|
3572
3573
|
xe as useAvrControl,
|
|
3573
3574
|
v as useButtonHeldHeartbeat,
|
|
3574
3575
|
Me as useCameraBase,
|
|
@@ -3582,7 +3583,7 @@ export {
|
|
|
3582
3583
|
F6 as useGetAllRooms,
|
|
3583
3584
|
ve as useGetCurrentPopoverIdForGroup,
|
|
3584
3585
|
y as useGetDevice,
|
|
3585
|
-
|
|
3586
|
+
we as useGetIBasicVolumeWithFeedback,
|
|
3586
3587
|
H6 as useGetRoom,
|
|
3587
3588
|
ce as useGetRoomDisplayStates,
|
|
3588
3589
|
re as useGetZoomRoomControllerKey,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(o,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):(o=typeof globalThis<"u"?globalThis:o||self,W(o["pepperdash/mobile-control-react-app-core"]={},o.axios,o.reactRedux,o.toolkit,o.React,o._,o.reactRouterDom))})(this,function(o,W,N,f,C,ue,R1){"use strict";var A6=Object.defineProperty;var _6=(o,W,N)=>W in o?A6(o,W,{enumerable:!0,configurable:!0,writable:!0,value:N}):o[W]=N;var J=(o,W,N)=>_6(o,typeof W!="symbol"?W+"":W,N);function de(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 Y1=de(ue),z1=N.useDispatch.withTypes(),M=N.useSelector.withTypes(),f1=e=>e.appConfig,J1=f.createSelector(f1,e=>e.config),X1=f.createSelector(f1,e=>e.config.apiPath),Q1=f.createSelector(f1,e=>e.config.logoPath),q1=f.createSelector(f1,e=>e.config.partnerMetadata),N1=()=>M(J1),he=()=>M(X1),ve=()=>M(Q1),ge=()=>M(q1),e3=e=>e.devices,b1=f.createSelector(e3,e=>e),t3=e=>f.createSelector(e3,t=>t[e]?t[e]:void 0),fe=()=>M(b1);function P(e){return M(t3(e))}const A=e=>e.rooms,c3=e=>f.createSelector(A,t=>t[e]?t[e].configuration:void 0),n3=f.createSelector(A,e=>e),s3=e=>f.createSelector(A,t=>t[e]?t[e]:void 0),o3=e=>f.createSelector(A,t=>t[e]?t[e].name:void 0),r3=(e,t)=>f.createSelector(A,n=>n[e]?n[e].volumes[t]:void 0),l3=e=>f.createSelector(A,t=>t[e]?t[e]:void 0),i3=e=>f.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=>f.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=>f.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=>f.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=>f.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=>f.createSelector(A,t=>{var n,r,l,a,h,u,w,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=(w=(u=t[e])==null?void 0:u.configuration)==null?void 0:w.destinationList.defaultDisplay)==null?void 0:p.sinkKey)||""}),g3=e=>f.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=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isInCall:void 0}),w3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isWarmingUp:void 0}),m3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isCoolingDown:void 0}),M3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isOn:void 0}),p3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.advancedSharingActive:void 0}),Z3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.share:void 0}),S3=e=>f.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=f.createSelector([(e,t)=>t,()=>b1,(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 we(e){return M(c3(e))}function me(){return M(n3)}function i1(e){return M(s3(e))}const Me=i1,pe=e=>M(o3(e)),j3=(e,t)=>M(r3(e,t)),C3=e=>M(l3(e))||void 0,Ze=e=>M(i3(e)),Se=e=>M(a3(e)),xe=e=>M(u3(e)),je=e=>M(d3(e)),Ce=e=>M(h3(e)),Ie=e=>M(v3(e)),Re=e=>M(g3(e)),be=e=>M(f3(e)),ye=e=>M(w3(e)),Ee=e=>M(m3(e)),Pe=e=>M(M3(e)),De=e=>M(p3(e)),Te=e=>M(Z3(e)),Le=e=>M(t=>x3(t,e)),Ae=e=>M(S3(e)),X=e=>e.runtimeConfig,I3=f.createSelector(X,e=>e.websocket.isConnected),R3=f.createSelector(X,e=>e.currentRoomKey),b3=f.createSelector(X,e=>e.roomData.clientId),y3=f.createSelector(X,e=>e.roomData.systemUuid),E3=f.createSelector(X,e=>e.roomData.userCode),P3=f.createSelector(X,e=>e.serverIsRunningOnProcessorHardware),D3=f.createSelector(X,e=>{var t;return(t=e.roomData.config)==null?void 0:t.runtimeInfo}),T3=f.createSelector(X,e=>e.touchpanelKey),L3=f.createSelector(X,e=>e.touchpanelKey!==""),y1=()=>M(I3),A3=()=>M(R3),_3=()=>M(b3),B3=()=>M(y3),O3=()=>M(E3),V3=()=>M(P3),_e=()=>M(D3),Be=()=>M(T3),Oe=()=>M(L3),s1=e=>e.ui,w1=e=>f.createSelector(s1,t=>t.modalVisibility[e]),$3=e=>f.createSelector(s1,t=>{const n=t.popoverVisibility[e];if(n)return Object.keys(n).find(r=>n[r])}),U3=(e,t)=>f.createSelector(s1,n=>{var r;return((r=n.popoverVisibility[e])==null?void 0:r[t])??!1}),W3=f.createSelector(s1,e=>e.error),F3=f.createSelector(s1,e=>e.showReconnect),H3=f.createSelector(s1,e=>e.theme),Ve=()=>M(w1("showShutdownModal")),$e=()=>M(w1("showIncomingCallModal")),Ue=e=>M(w1(e)),We=e=>M($3(e)),Fe=(e,t)=>M(U3(e,t)),K3=()=>M(W3),k3=()=>M(F3),He=()=>M(H3),Ke={showReconnect:!1,error:"",modalVisibility:{showShutdownModal:!1,showIncomingCallModal:!1},popoverVisibility:{}},G3=f.createSlice({name:"ui",initialState:Ke,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}}}),G=G3.actions,Y3=G3.reducer,ke={config:{enableDev:!1,apiPath:"",gatewayAppPath:"",logoPath:"",iconSet:"GOOGLE",loginMode:"",modes:{}}},z3=f.createSlice({name:"appConfig",initialState:ke,reducers:{setAppConfig(e,t){e.config=t.payload}}}),J3=z3.actions,Ge=z3.reducer,X3={},E1=f.createSlice({name:"devices",initialState:X3,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=Y1.merge(a,l);e[r]=h},clearDevices(){return X3}}}),e1={setDeviceState:E1.actions.setDeviceState,clearDevices:E1.actions.clearDevices},Ye=E1.reducer,Q3={},P1=f.createSlice({name:"rooms",initialState:Q3,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=Y1.merge(a,l);e[r]=h},clearRooms(){return Q3}}}),t1={setRoomState:P1.actions.setRoomState,clearRooms:P1.actions.clearRooms},ze=P1.reducer,Je={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:[]},userCode:"",qrUrl:""}},q3=f.createSlice({name:"runtimeConfig",initialState:Je,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}}}),H=q3.actions,Xe=q3.reducer,Qe=f.combineReducers({appConfig:Ge,runtimeConfig:Xe,rooms:ze,devices:Ye,ui:Y3}),Z=f.configureStore({reducer:Qe}),m1=W.create();function N3(){const e=z1();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(J3.setAppConfig(r.data));const a=await m1.get(`${l}/version`);a.status==200&&a.data&&e(H.setRuntimeConfig(a.data))}}catch(t){console.error("Error getting config",t)}return!0}}var M1={exports:{}},a1={};/**
|
|
1
|
+
(function(o,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):(o=typeof globalThis<"u"?globalThis:o||self,W(o["pepperdash/mobile-control-react-app-core"]={},o.axios,o.reactRedux,o.toolkit,o.React,o._,o.reactRouterDom))})(this,function(o,W,N,f,C,ue,R1){"use strict";var A6=Object.defineProperty;var _6=(o,W,N)=>W in o?A6(o,W,{enumerable:!0,configurable:!0,writable:!0,value:N}):o[W]=N;var J=(o,W,N)=>_6(o,typeof W!="symbol"?W+"":W,N);function de(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 Y1=de(ue),z1=N.useDispatch.withTypes(),M=N.useSelector.withTypes(),f1=e=>e.appConfig,J1=f.createSelector(f1,e=>e.config),X1=f.createSelector(f1,e=>e.config.apiPath),Q1=f.createSelector(f1,e=>e.config.logoPath),q1=f.createSelector(f1,e=>e.config.partnerMetadata),N1=()=>M(J1),he=()=>M(X1),ve=()=>M(Q1),ge=()=>M(q1),e3=e=>e.devices,b1=f.createSelector(e3,e=>e),t3=e=>f.createSelector(e3,t=>t[e]?t[e]:void 0),fe=()=>M(b1);function P(e){return M(t3(e))}const A=e=>e.rooms,c3=e=>f.createSelector(A,t=>t[e]?t[e].configuration:void 0),n3=f.createSelector(A,e=>e),s3=e=>f.createSelector(A,t=>t[e]?t[e]:void 0),o3=e=>f.createSelector(A,t=>t[e]?t[e].name:void 0),r3=(e,t)=>f.createSelector(A,n=>n[e]?n[e].volumes[t]:void 0),l3=e=>f.createSelector(A,t=>t[e]?t[e]:void 0),i3=e=>f.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=>f.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=>f.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=>f.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=>f.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=>f.createSelector(A,t=>{var n,r,l,a,h,u,w,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=(w=(u=t[e])==null?void 0:u.configuration)==null?void 0:w.destinationList.defaultDisplay)==null?void 0:p.sinkKey)||""}),g3=e=>f.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=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isInCall:void 0}),w3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isWarmingUp:void 0}),m3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isCoolingDown:void 0}),M3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.isOn:void 0}),p3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.advancedSharingActive:void 0}),Z3=e=>f.createSelector(A,t=>{var n;return t[e]?(n=t[e])==null?void 0:n.share:void 0}),S3=e=>f.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=f.createSelector([(e,t)=>t,()=>b1,(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 we(e){return M(c3(e))}function me(){return M(n3)}function i1(e){return M(s3(e))}const Me=i1,pe=e=>M(o3(e)),j3=(e,t)=>M(r3(e,t)),C3=e=>M(l3(e))||void 0,Ze=e=>M(i3(e)),Se=e=>M(a3(e)),xe=e=>M(u3(e)),je=e=>M(d3(e)),Ce=e=>M(h3(e)),Ie=e=>M(v3(e)),Re=e=>M(g3(e)),be=e=>M(f3(e)),ye=e=>M(w3(e)),Ee=e=>M(m3(e)),Pe=e=>M(M3(e)),De=e=>M(p3(e)),Te=e=>M(Z3(e)),Le=e=>M(t=>x3(t,e)),Ae=e=>M(S3(e)),X=e=>e.runtimeConfig,I3=f.createSelector(X,e=>e.websocket.isConnected),R3=f.createSelector(X,e=>e.currentRoomKey),b3=f.createSelector(X,e=>e.roomData.clientId),y3=f.createSelector(X,e=>e.roomData.systemUuid),E3=f.createSelector(X,e=>e.roomData.userCode),P3=f.createSelector(X,e=>e.serverIsRunningOnProcessorHardware),D3=f.createSelector(X,e=>{var t;return(t=e.roomData.config)==null?void 0:t.runtimeInfo}),T3=f.createSelector(X,e=>e.touchpanelKey),L3=f.createSelector(X,e=>e.touchpanelKey!==""),y1=()=>M(I3),A3=()=>M(R3),_3=()=>M(b3),B3=()=>M(y3),O3=()=>M(E3),V3=()=>M(P3),_e=()=>M(D3),Be=()=>M(T3),Oe=()=>M(L3),s1=e=>e.ui,w1=e=>f.createSelector(s1,t=>t.modalVisibility[e]),$3=e=>f.createSelector(s1,t=>{const n=t.popoverVisibility[e];if(n)return Object.keys(n).find(r=>n[r])}),U3=(e,t)=>f.createSelector(s1,n=>{var r;return((r=n.popoverVisibility[e])==null?void 0:r[t])??!1}),W3=f.createSelector(s1,e=>e.error),F3=f.createSelector(s1,e=>e.showReconnect),H3=f.createSelector(s1,e=>e.theme),Ve=()=>M(w1("showShutdownModal")),$e=()=>M(w1("showIncomingCallModal")),Ue=e=>M(w1(e)),We=e=>M($3(e)),Fe=(e,t)=>M(U3(e,t)),K3=()=>M(W3),k3=()=>M(F3),He=()=>M(H3),Ke={showReconnect:!1,error:"",modalVisibility:{showShutdownModal:!1,showIncomingCallModal:!1},popoverVisibility:{}},G3=f.createSlice({name:"ui",initialState:Ke,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}}}),G=G3.actions,Y3=G3.reducer,ke={config:{enableDev:!1,apiPath:"",gatewayAppPath:"",logoPath:"",iconSet:"GOOGLE",loginMode:"",modes:{}}},z3=f.createSlice({name:"appConfig",initialState:ke,reducers:{setAppConfig(e,t){e.config=t.payload}}}),J3=z3.actions,Ge=z3.reducer,X3={},E1=f.createSlice({name:"devices",initialState:X3,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=Y1.merge(a,l);e[r]=h},clearDevices(){return X3}}}),e1={setDeviceState:E1.actions.setDeviceState,clearDevices:E1.actions.clearDevices},Ye=E1.reducer,Q3={},P1=f.createSlice({name:"rooms",initialState:Q3,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=Y1.merge(a,l);e[r]=h},clearRooms(){return Q3}}}),t1={setRoomState:P1.actions.setRoomState,clearRooms:P1.actions.clearRooms},ze=P1.reducer,Je={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:""}},q3=f.createSlice({name:"runtimeConfig",initialState:Je,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}}}),H=q3.actions,Xe=q3.reducer,Qe=f.combineReducers({appConfig:Ge,runtimeConfig:Xe,rooms:ze,devices:Ye,ui:Y3}),Z=f.configureStore({reducer:Qe}),m1=W.create();function N3(){const e=z1();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(J3.setAppConfig(r.data));const a=await m1.get(`${l}/version`);a.status==200&&a.data&&e(H.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
|
*
|
|
@@ -56,6 +56,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
56
56
|
codeExpires?: Date | undefined;
|
|
57
57
|
enableDebug?: boolean | undefined;
|
|
58
58
|
qrUrl: string;
|
|
59
|
+
deviceInterfaceSupport?: {
|
|
60
|
+
[x: string]: {
|
|
61
|
+
interfaces: string[];
|
|
62
|
+
key: string;
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
} | undefined;
|
|
59
66
|
};
|
|
60
67
|
currentRoomKey: string;
|
|
61
68
|
touchpanelKey: string;
|
|
@@ -98,6 +105,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
98
105
|
codeExpires?: Date | undefined;
|
|
99
106
|
enableDebug?: boolean | undefined;
|
|
100
107
|
qrUrl: string;
|
|
108
|
+
deviceInterfaceSupport?: {
|
|
109
|
+
[x: string]: {
|
|
110
|
+
interfaces: string[];
|
|
111
|
+
key: string;
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
} | undefined;
|
|
101
115
|
};
|
|
102
116
|
currentRoomKey: string;
|
|
103
117
|
touchpanelKey: string;
|
|
@@ -140,6 +154,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
140
154
|
codeExpires?: Date | undefined;
|
|
141
155
|
enableDebug?: boolean | undefined;
|
|
142
156
|
qrUrl: string;
|
|
157
|
+
deviceInterfaceSupport?: {
|
|
158
|
+
[x: string]: {
|
|
159
|
+
interfaces: string[];
|
|
160
|
+
key: string;
|
|
161
|
+
name: string;
|
|
162
|
+
};
|
|
163
|
+
} | undefined;
|
|
143
164
|
};
|
|
144
165
|
currentRoomKey: string;
|
|
145
166
|
touchpanelKey: string;
|
|
@@ -182,6 +203,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
182
203
|
codeExpires?: Date | undefined;
|
|
183
204
|
enableDebug?: boolean | undefined;
|
|
184
205
|
qrUrl: string;
|
|
206
|
+
deviceInterfaceSupport?: {
|
|
207
|
+
[x: string]: {
|
|
208
|
+
interfaces: string[];
|
|
209
|
+
key: string;
|
|
210
|
+
name: string;
|
|
211
|
+
};
|
|
212
|
+
} | undefined;
|
|
185
213
|
};
|
|
186
214
|
currentRoomKey: string;
|
|
187
215
|
touchpanelKey: string;
|
|
@@ -224,6 +252,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
224
252
|
codeExpires?: Date | undefined;
|
|
225
253
|
enableDebug?: boolean | undefined;
|
|
226
254
|
qrUrl: string;
|
|
255
|
+
deviceInterfaceSupport?: {
|
|
256
|
+
[x: string]: {
|
|
257
|
+
interfaces: string[];
|
|
258
|
+
key: string;
|
|
259
|
+
name: string;
|
|
260
|
+
};
|
|
261
|
+
} | undefined;
|
|
227
262
|
};
|
|
228
263
|
currentRoomKey: string;
|
|
229
264
|
touchpanelKey: string;
|
|
@@ -266,6 +301,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
266
301
|
codeExpires?: Date | undefined;
|
|
267
302
|
enableDebug?: boolean | undefined;
|
|
268
303
|
qrUrl: string;
|
|
304
|
+
deviceInterfaceSupport?: {
|
|
305
|
+
[x: string]: {
|
|
306
|
+
interfaces: string[];
|
|
307
|
+
key: string;
|
|
308
|
+
name: string;
|
|
309
|
+
};
|
|
310
|
+
} | undefined;
|
|
269
311
|
};
|
|
270
312
|
currentRoomKey: string;
|
|
271
313
|
touchpanelKey: string;
|
|
@@ -308,6 +350,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
308
350
|
codeExpires?: Date | undefined;
|
|
309
351
|
enableDebug?: boolean | undefined;
|
|
310
352
|
qrUrl: string;
|
|
353
|
+
deviceInterfaceSupport?: {
|
|
354
|
+
[x: string]: {
|
|
355
|
+
interfaces: string[];
|
|
356
|
+
key: string;
|
|
357
|
+
name: string;
|
|
358
|
+
};
|
|
359
|
+
} | undefined;
|
|
311
360
|
};
|
|
312
361
|
currentRoomKey: string;
|
|
313
362
|
touchpanelKey: string;
|
|
@@ -350,6 +399,13 @@ export declare const runtimeConfigActions: import("@reduxjs/toolkit").CaseReduce
|
|
|
350
399
|
codeExpires?: Date | undefined;
|
|
351
400
|
enableDebug?: boolean | undefined;
|
|
352
401
|
qrUrl: string;
|
|
402
|
+
deviceInterfaceSupport?: {
|
|
403
|
+
[x: string]: {
|
|
404
|
+
interfaces: string[];
|
|
405
|
+
key: string;
|
|
406
|
+
name: string;
|
|
407
|
+
};
|
|
408
|
+
} | undefined;
|
|
353
409
|
};
|
|
354
410
|
currentRoomKey: string;
|
|
355
411
|
touchpanelKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeConfig.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/store/runtimeConfig/runtimeConfig.slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"runtimeConfig.slice.d.ts","sourceRoot":"","sources":["../../../src/lib/store/runtimeConfig/runtimeConfig.slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAsE7C,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxD,SAAS,EAAE;QACT,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;IACF,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,oBAAoB;;oBAlBnB,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eA1Ca,cAAc,kBAAkB,CAAC;;oBAgCvD,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eArCK,cAAc,MAAM,CAAC;;oBA2BnC,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eAlCoB,cAAc,OAAO,CAAC;;oBAwBnD,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eA/Ba,cAAc,MAAM,CAAC;;oBAqB3C,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eA5BQ,cAAc,QAAQ,CAAC;;oBAkBxC,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eAzBc,cAAc,MAAM,CAAC;;oBAe5C,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eArBQ,cAAc,QAAQ,CAAC;;oBAWxC,MAAM;4CACkB,OAAO,GAAG,SAAS;;;;uBAIxC,MAAM;8BACC,MAAM;eACrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAEG,MAAM;uBACP,MAAM;eAjBa,cAAc,MAAM,CAAC;mBAyBK,CAAC;AAC/D,eAAO,MAAM,oBAAoB,6CAA6B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IKeyName } from
|
|
1
|
+
import { IKeyName } from '../interfaces';
|
|
2
2
|
export interface RoomData {
|
|
3
3
|
clientId: string | number;
|
|
4
4
|
roomKey: string;
|
|
@@ -10,6 +10,12 @@ export interface RoomData {
|
|
|
10
10
|
codeExpires?: Date;
|
|
11
11
|
enableDebug?: boolean;
|
|
12
12
|
qrUrl: string;
|
|
13
|
+
deviceInterfaceSupport?: {
|
|
14
|
+
[key: string]: DeviceInterfaceInfo;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface DeviceInterfaceInfo extends IKeyName {
|
|
18
|
+
interfaces: string[];
|
|
13
19
|
}
|
|
14
20
|
export interface EssentialsConfig {
|
|
15
21
|
runtimeInfo: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room-data.d.ts","sourceRoot":"","sources":["../../../src/lib/types/classes/room-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"room-data.d.ts","sourceRoot":"","sources":["../../../src/lib/types/classes/room-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;CACjE;AAED,MAAM,WAAW,mBAAoB,SAAQ,QAAQ;IACnD,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE;QACX,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,iBAAiB,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACxD,CAAC;IACF,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;CAAG;AAEnD,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;CAAG"}
|
package/package.json
CHANGED