@pepperdash/mobile-control-react-app-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/mobile-control-react-app-core.es.js +814 -0
- package/dist/src/lib/index.d.ts +5 -0
- package/dist/src/lib/index.d.ts.map +1 -0
- package/dist/src/lib/services/apiService.d.ts +7 -0
- package/dist/src/lib/services/apiService.d.ts.map +1 -0
- package/dist/src/lib/services/index.d.ts +2 -0
- package/dist/src/lib/services/index.d.ts.map +1 -0
- package/dist/src/lib/shared/MobileControlProvider/MobileControlProvider.d.ts +9 -0
- package/dist/src/lib/shared/MobileControlProvider/MobileControlProvider.d.ts.map +1 -0
- package/dist/src/lib/shared/disconnectedMessage/DisconnectedMessage.d.ts +5 -0
- package/dist/src/lib/shared/disconnectedMessage/DisconnectedMessage.d.ts.map +1 -0
- package/dist/src/lib/shared/hooks/useGetDeviceStateFromRoomConfiguration.d.ts +8 -0
- package/dist/src/lib/shared/hooks/useGetDeviceStateFromRoomConfiguration.d.ts.map +1 -0
- package/dist/src/lib/shared/index.d.ts +5 -0
- package/dist/src/lib/shared/index.d.ts.map +1 -0
- package/dist/src/lib/shared/layout/ErrorBox.d.ts +3 -0
- package/dist/src/lib/shared/layout/ErrorBox.d.ts.map +1 -0
- package/dist/src/lib/shared/layout/habanero/MainLayout.d.ts +16 -0
- package/dist/src/lib/shared/layout/habanero/MainLayout.d.ts.map +1 -0
- package/dist/src/lib/shared/layout/habanero/index.d.ts +2 -0
- package/dist/src/lib/shared/layout/habanero/index.d.ts.map +1 -0
- package/dist/src/lib/store/appConfig.slice.d.ts +37 -0
- package/dist/src/lib/store/appConfig.slice.d.ts.map +1 -0
- package/dist/src/lib/store/devices.slice.d.ts +45 -0
- package/dist/src/lib/store/devices.slice.d.ts.map +1 -0
- package/dist/src/lib/store/hooks.d.ts +10 -0
- package/dist/src/lib/store/hooks.d.ts.map +1 -0
- package/dist/src/lib/store/index.d.ts +14 -0
- package/dist/src/lib/store/index.d.ts.map +1 -0
- package/dist/src/lib/store/rooms/rooms.slice.d.ts +306 -0
- package/dist/src/lib/store/rooms/rooms.slice.d.ts.map +1 -0
- package/dist/src/lib/store/rooms/roomsSelectors.d.ts +2 -0
- package/dist/src/lib/store/rooms/roomsSelectors.d.ts.map +1 -0
- package/dist/src/lib/store/rootReducer.d.ts +29 -0
- package/dist/src/lib/store/rootReducer.d.ts.map +1 -0
- package/dist/src/lib/store/runtimeConfig/runtimeConfig.slice.d.ts +175 -0
- package/dist/src/lib/store/runtimeConfig/runtimeConfig.slice.d.ts.map +1 -0
- package/dist/src/lib/store/runtimeConfig/runtimeSelectors.d.ts +4 -0
- package/dist/src/lib/store/runtimeConfig/runtimeSelectors.d.ts.map +1 -0
- package/dist/src/lib/types/classes/app-config.d.ts +17 -0
- package/dist/src/lib/types/classes/app-config.d.ts.map +1 -0
- package/dist/src/lib/types/classes/index.d.ts +7 -0
- package/dist/src/lib/types/classes/index.d.ts.map +1 -0
- package/dist/src/lib/types/classes/join-token.d.ts +7 -0
- package/dist/src/lib/types/classes/join-token.d.ts.map +1 -0
- package/dist/src/lib/types/classes/room-data.d.ts +13 -0
- package/dist/src/lib/types/classes/room-data.d.ts.map +1 -0
- package/dist/src/lib/types/classes/room.d.ts +10 -0
- package/dist/src/lib/types/classes/room.d.ts.map +1 -0
- package/dist/src/lib/types/classes/session-storage-keys.d.ts +12 -0
- package/dist/src/lib/types/classes/session-storage-keys.d.ts.map +1 -0
- package/dist/src/lib/types/classes/session-storage-values.d.ts +10 -0
- package/dist/src/lib/types/classes/session-storage-values.d.ts.map +1 -0
- package/dist/src/lib/types/classes/websocket-message.d.ts +5 -0
- package/dist/src/lib/types/classes/websocket-message.d.ts.map +1 -0
- package/dist/src/lib/types/index.d.ts +4 -0
- package/dist/src/lib/types/index.d.ts.map +1 -0
- package/dist/src/lib/types/interfaces/iKeyName.d.ts +5 -0
- package/dist/src/lib/types/interfaces/iKeyName.d.ts.map +1 -0
- package/dist/src/lib/types/interfaces/index.d.ts +3 -0
- package/dist/src/lib/types/interfaces/index.d.ts.map +1 -0
- package/dist/src/lib/types/interfaces/version.d.ts +4 -0
- package/dist/src/lib/types/interfaces/version.d.ts.map +1 -0
- package/dist/src/lib/types/state/collections.d.ts +4 -0
- package/dist/src/lib/types/state/collections.d.ts.map +1 -0
- package/dist/src/lib/types/state/common-functions-util.d.ts +2 -0
- package/dist/src/lib/types/state/common-functions-util.d.ts.map +1 -0
- package/dist/src/lib/types/state/config.d.ts +11 -0
- package/dist/src/lib/types/state/config.d.ts.map +1 -0
- package/dist/src/lib/types/state/daysOfWeek.d.ts +11 -0
- package/dist/src/lib/types/state/daysOfWeek.d.ts.map +1 -0
- package/dist/src/lib/types/state/device.d.ts +9 -0
- package/dist/src/lib/types/state/device.d.ts.map +1 -0
- package/dist/src/lib/types/state/environment/lightingScene.d.ts +9 -0
- package/dist/src/lib/types/state/environment/lightingScene.d.ts.map +1 -0
- package/dist/src/lib/types/state/index.d.ts +12 -0
- package/dist/src/lib/types/state/index.d.ts.map +1 -0
- package/dist/src/lib/types/state/message-handler.d.ts +7 -0
- package/dist/src/lib/types/state/message-handler.d.ts.map +1 -0
- package/dist/src/lib/types/state/message.d.ts +6 -0
- package/dist/src/lib/types/state/message.d.ts.map +1 -0
- package/dist/src/lib/types/state/sourceListItem.d.ts +16 -0
- package/dist/src/lib/types/state/sourceListItem.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/CameraState.d.ts +24 -0
- package/dist/src/lib/types/state/state/CameraState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/CamerasState.d.ts +13 -0
- package/dist/src/lib/types/state/state/CamerasState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/CommMonitorState.d.ts +6 -0
- package/dist/src/lib/types/state/state/CommMonitorState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/DeviceState.d.ts +27 -0
- package/dist/src/lib/types/state/state/DeviceState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/DisplayState.d.ts +15 -0
- package/dist/src/lib/types/state/state/DisplayState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/EnvironmentState.d.ts +12 -0
- package/dist/src/lib/types/state/state/EnvironmentState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/LightingState.d.ts +6 -0
- package/dist/src/lib/types/state/state/LightingState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/MeetingInfo.d.ts +14 -0
- package/dist/src/lib/types/state/state/MeetingInfo.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/PresetChannel.d.ts +6 -0
- package/dist/src/lib/types/state/state/PresetChannel.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/RoomState.d.ts +43 -0
- package/dist/src/lib/types/state/state/RoomState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/RoutingState.d.ts +6 -0
- package/dist/src/lib/types/state/state/RoutingState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/ScheduleEvent.d.ts +9 -0
- package/dist/src/lib/types/state/state/ScheduleEvent.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/ScheduleState.d.ts +6 -0
- package/dist/src/lib/types/state/state/ScheduleState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/ShadeState.d.ts +7 -0
- package/dist/src/lib/types/state/state/ShadeState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/ShareState.d.ts +9 -0
- package/dist/src/lib/types/state/state/ShareState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/TunerState.d.ts +6 -0
- package/dist/src/lib/types/state/state/TunerState.d.ts.map +1 -0
- package/dist/src/lib/types/state/state/index.d.ts +17 -0
- package/dist/src/lib/types/state/state/index.d.ts.map +1 -0
- package/dist/src/lib/types/state/volume/volume.d.ts +28 -0
- package/dist/src/lib/types/state/volume/volume.d.ts.map +1 -0
- package/dist/src/lib/types/state/volume/volumes.d.ts +10 -0
- package/dist/src/lib/types/state/volume/volumes.d.ts.map +1 -0
- package/dist/src/lib/utils/WebsocketContext.d.ts +11 -0
- package/dist/src/lib/utils/WebsocketContext.d.ts.map +1 -0
- package/dist/src/lib/utils/index.d.ts +2 -0
- package/dist/src/lib/utils/index.d.ts.map +1 -0
- package/dist/src/lib/utils/useWebsocketContext.d.ts +8 -0
- package/dist/src/lib/utils/useWebsocketContext.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
import Rr from "axios";
|
|
2
|
+
import { createSlice as L, combineReducers as Er, configureStore as Se } from "@reduxjs/toolkit";
|
|
3
|
+
import { useDispatch as _r } from "react-redux";
|
|
4
|
+
import * as Pe from "lodash";
|
|
5
|
+
import Te, { createContext as Cr, useContext as Sr, useEffect as Pr } from "react";
|
|
6
|
+
const Oe = "http://192.168.1.164:50002/mc/api", we = "", xe = !1, ke = "logo/PDT-logo-no-tag_blue-pdt-on-transp_1000px.png", je = "room-list", De = "GOOGLE", Ae = {
|
|
7
|
+
"room-list": {
|
|
8
|
+
listPageText: "Please select your room",
|
|
9
|
+
loginHelpText: "Please select your room from the list, then enter the code shown on the display in the room. (Configurable message)",
|
|
10
|
+
passcodePageText: "Please enter the code shown on this room's display"
|
|
11
|
+
}
|
|
12
|
+
}, Tr = {
|
|
13
|
+
apiPath: Oe,
|
|
14
|
+
gatewayAppPath: we,
|
|
15
|
+
enableDev: xe,
|
|
16
|
+
logoPath: ke,
|
|
17
|
+
loginMode: je,
|
|
18
|
+
iconSet: De,
|
|
19
|
+
modes: Ae
|
|
20
|
+
}, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
apiPath: Oe,
|
|
23
|
+
default: Tr,
|
|
24
|
+
enableDev: xe,
|
|
25
|
+
gatewayAppPath: we,
|
|
26
|
+
iconSet: De,
|
|
27
|
+
loginMode: je,
|
|
28
|
+
logoPath: ke,
|
|
29
|
+
modes: Ae
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), wr = {
|
|
31
|
+
config: {
|
|
32
|
+
enableDev: !1,
|
|
33
|
+
apiPath: "",
|
|
34
|
+
gatewayAppPath: "",
|
|
35
|
+
logoPath: "",
|
|
36
|
+
iconSet: "GOOGLE",
|
|
37
|
+
loginMode: "",
|
|
38
|
+
modes: {}
|
|
39
|
+
}
|
|
40
|
+
}, Fe = L({
|
|
41
|
+
name: "appConfig",
|
|
42
|
+
initialState: wr,
|
|
43
|
+
reducers: {
|
|
44
|
+
setAppConfig(a, o) {
|
|
45
|
+
a.config = o.payload;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}), xr = Fe.actions, kr = Fe.reducer, jr = {}, Ie = L({
|
|
49
|
+
name: "devices",
|
|
50
|
+
initialState: jr,
|
|
51
|
+
reducers: {
|
|
52
|
+
setDeviceState(a, o) {
|
|
53
|
+
const v = o.payload.type, l = v.slice(v.lastIndexOf("/") + 1);
|
|
54
|
+
if (!l)
|
|
55
|
+
return;
|
|
56
|
+
const b = o.payload.content, P = a[l] ?? {}, R = Pe.merge(P, b);
|
|
57
|
+
return {
|
|
58
|
+
...a,
|
|
59
|
+
[l]: R
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Ie.actions;
|
|
65
|
+
const Dr = Ie.reducer, Ar = {}, $e = L({
|
|
66
|
+
name: "rooms",
|
|
67
|
+
initialState: Ar,
|
|
68
|
+
reducers: {
|
|
69
|
+
setRoomState(a, o) {
|
|
70
|
+
const l = o.payload.type.match("/room/(.*)/status");
|
|
71
|
+
if (!l)
|
|
72
|
+
return;
|
|
73
|
+
const b = l[1], P = o.payload.content, R = a[b] ?? {}, E = Pe.merge(R, P);
|
|
74
|
+
return {
|
|
75
|
+
...a,
|
|
76
|
+
[b]: E
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
$e.actions;
|
|
82
|
+
const Fr = $e.reducer, Ir = {
|
|
83
|
+
apiVersion: "",
|
|
84
|
+
serverIsRunningOnProcessorHardware: !1,
|
|
85
|
+
websocket: {
|
|
86
|
+
isConnected: !1
|
|
87
|
+
},
|
|
88
|
+
pluginVersion: "",
|
|
89
|
+
disconnectionMessage: "",
|
|
90
|
+
token: "",
|
|
91
|
+
roomData: {
|
|
92
|
+
clientId: "",
|
|
93
|
+
roomKey: "",
|
|
94
|
+
systemUuid: "",
|
|
95
|
+
roomUuid: "",
|
|
96
|
+
userAppUrl: "",
|
|
97
|
+
config: void 0,
|
|
98
|
+
userCode: "",
|
|
99
|
+
qrUrl: ""
|
|
100
|
+
}
|
|
101
|
+
}, We = L({
|
|
102
|
+
name: "runtimeConfig",
|
|
103
|
+
initialState: Ir,
|
|
104
|
+
reducers: {
|
|
105
|
+
setRuntimeConfig(a, o) {
|
|
106
|
+
a.apiVersion = o.payload.apiVersion, a.serverIsRunningOnProcessorHardware = o.payload.serverIsRunningOnProcessorHardware;
|
|
107
|
+
},
|
|
108
|
+
setToken(a, o) {
|
|
109
|
+
a.token = o.payload;
|
|
110
|
+
},
|
|
111
|
+
setWebsocketIsConnected(a, o) {
|
|
112
|
+
a.websocket.isConnected = o.payload;
|
|
113
|
+
},
|
|
114
|
+
setPluginVersion(a, o) {
|
|
115
|
+
a.pluginVersion = o.payload;
|
|
116
|
+
},
|
|
117
|
+
setRoomData(a, o) {
|
|
118
|
+
a.roomData = o.payload;
|
|
119
|
+
},
|
|
120
|
+
setCurrentRoomKey(a, o) {
|
|
121
|
+
a.roomData.roomKey = o.payload;
|
|
122
|
+
},
|
|
123
|
+
setUserCode(a, o) {
|
|
124
|
+
a.roomData.userCode = o.payload.userCode, a.roomData.qrUrl = o.payload.qrUrl;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}), $r = We.actions, Wr = We.reducer, Me = Er({
|
|
128
|
+
appConfig: kr,
|
|
129
|
+
runtimeConfig: Wr,
|
|
130
|
+
rooms: Fr,
|
|
131
|
+
devices: Dr
|
|
132
|
+
});
|
|
133
|
+
Se({
|
|
134
|
+
reducer: Me
|
|
135
|
+
});
|
|
136
|
+
const Mr = _r, Ur = Rr.create();
|
|
137
|
+
function zr() {
|
|
138
|
+
const a = Mr();
|
|
139
|
+
return async () => {
|
|
140
|
+
try {
|
|
141
|
+
const o = {
|
|
142
|
+
status: 200,
|
|
143
|
+
data: Or
|
|
144
|
+
};
|
|
145
|
+
if (console.log("configRes", o), o.status == 200 && o.data) {
|
|
146
|
+
const v = o.data.apiPath;
|
|
147
|
+
a(xr.setAppConfig(o.data));
|
|
148
|
+
const l = await Ur.get(`${v}/version`);
|
|
149
|
+
l.status == 200 && l.data && (console.log("versionRes", l.data), a($r.setRuntimeConfig(l.data)));
|
|
150
|
+
}
|
|
151
|
+
} catch (o) {
|
|
152
|
+
console.log("Error getting config", o);
|
|
153
|
+
}
|
|
154
|
+
return !0;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
var F = {};
|
|
158
|
+
/**
|
|
159
|
+
* @license React
|
|
160
|
+
* react-jsx-runtime.development.js
|
|
161
|
+
*
|
|
162
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the MIT license found in the
|
|
165
|
+
* LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/
|
|
167
|
+
var _e;
|
|
168
|
+
function Vr() {
|
|
169
|
+
return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
170
|
+
var a = Te, o = Symbol.for("react.element"), v = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), E = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), X = Symbol.iterator, Ue = "@@iterator";
|
|
171
|
+
function Ve(e) {
|
|
172
|
+
if (e === null || typeof e != "object")
|
|
173
|
+
return null;
|
|
174
|
+
var r = X && e[X] || e[Ue];
|
|
175
|
+
return typeof r == "function" ? r : null;
|
|
176
|
+
}
|
|
177
|
+
var x = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
178
|
+
function g(e) {
|
|
179
|
+
{
|
|
180
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
181
|
+
t[n - 1] = arguments[n];
|
|
182
|
+
Ye("error", e, t);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function Ye(e, r, t) {
|
|
186
|
+
{
|
|
187
|
+
var n = x.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
188
|
+
u !== "" && (r += "%s", t = t.concat([u]));
|
|
189
|
+
var c = t.map(function(s) {
|
|
190
|
+
return String(s);
|
|
191
|
+
});
|
|
192
|
+
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
var Le = !1, Ne = !1, Ke = !1, qe = !1, Ge = !1, Z;
|
|
196
|
+
Z = Symbol.for("react.module.reference");
|
|
197
|
+
function Be(e) {
|
|
198
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === P || Ge || e === b || e === w || e === y || qe || e === $ || Le || Ne || Ke || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === _ || e.$$typeof === R || e.$$typeof === E || e.$$typeof === p || // This needs to include all possible module reference object
|
|
199
|
+
// types supported by any Flight configuration anywhere since
|
|
200
|
+
// we don't know which Flight build this will end up being used
|
|
201
|
+
// with.
|
|
202
|
+
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
203
|
+
}
|
|
204
|
+
function ze(e, r, t) {
|
|
205
|
+
var n = e.displayName;
|
|
206
|
+
if (n)
|
|
207
|
+
return n;
|
|
208
|
+
var u = r.displayName || r.name || "";
|
|
209
|
+
return u !== "" ? t + "(" + u + ")" : t;
|
|
210
|
+
}
|
|
211
|
+
function Q(e) {
|
|
212
|
+
return e.displayName || "Context";
|
|
213
|
+
}
|
|
214
|
+
function C(e) {
|
|
215
|
+
if (e == null)
|
|
216
|
+
return null;
|
|
217
|
+
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
218
|
+
return e.displayName || e.name || null;
|
|
219
|
+
if (typeof e == "string")
|
|
220
|
+
return e;
|
|
221
|
+
switch (e) {
|
|
222
|
+
case l:
|
|
223
|
+
return "Fragment";
|
|
224
|
+
case v:
|
|
225
|
+
return "Portal";
|
|
226
|
+
case P:
|
|
227
|
+
return "Profiler";
|
|
228
|
+
case b:
|
|
229
|
+
return "StrictMode";
|
|
230
|
+
case w:
|
|
231
|
+
return "Suspense";
|
|
232
|
+
case y:
|
|
233
|
+
return "SuspenseList";
|
|
234
|
+
}
|
|
235
|
+
if (typeof e == "object")
|
|
236
|
+
switch (e.$$typeof) {
|
|
237
|
+
case E:
|
|
238
|
+
var r = e;
|
|
239
|
+
return Q(r) + ".Consumer";
|
|
240
|
+
case R:
|
|
241
|
+
var t = e;
|
|
242
|
+
return Q(t._context) + ".Provider";
|
|
243
|
+
case p:
|
|
244
|
+
return ze(e, e.render, "ForwardRef");
|
|
245
|
+
case _:
|
|
246
|
+
var n = e.displayName || null;
|
|
247
|
+
return n !== null ? n : C(e.type) || "Memo";
|
|
248
|
+
case T: {
|
|
249
|
+
var u = e, c = u._payload, s = u._init;
|
|
250
|
+
try {
|
|
251
|
+
return C(s(c));
|
|
252
|
+
} catch {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
var O = Object.assign, D = 0, ee, re, te, ne, ae, oe, ie;
|
|
260
|
+
function se() {
|
|
261
|
+
}
|
|
262
|
+
se.__reactDisabledLog = !0;
|
|
263
|
+
function He() {
|
|
264
|
+
{
|
|
265
|
+
if (D === 0) {
|
|
266
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
267
|
+
var e = {
|
|
268
|
+
configurable: !0,
|
|
269
|
+
enumerable: !0,
|
|
270
|
+
value: se,
|
|
271
|
+
writable: !0
|
|
272
|
+
};
|
|
273
|
+
Object.defineProperties(console, {
|
|
274
|
+
info: e,
|
|
275
|
+
log: e,
|
|
276
|
+
warn: e,
|
|
277
|
+
error: e,
|
|
278
|
+
group: e,
|
|
279
|
+
groupCollapsed: e,
|
|
280
|
+
groupEnd: e
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
D++;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function Je() {
|
|
287
|
+
{
|
|
288
|
+
if (D--, D === 0) {
|
|
289
|
+
var e = {
|
|
290
|
+
configurable: !0,
|
|
291
|
+
enumerable: !0,
|
|
292
|
+
writable: !0
|
|
293
|
+
};
|
|
294
|
+
Object.defineProperties(console, {
|
|
295
|
+
log: O({}, e, {
|
|
296
|
+
value: ee
|
|
297
|
+
}),
|
|
298
|
+
info: O({}, e, {
|
|
299
|
+
value: re
|
|
300
|
+
}),
|
|
301
|
+
warn: O({}, e, {
|
|
302
|
+
value: te
|
|
303
|
+
}),
|
|
304
|
+
error: O({}, e, {
|
|
305
|
+
value: ne
|
|
306
|
+
}),
|
|
307
|
+
group: O({}, e, {
|
|
308
|
+
value: ae
|
|
309
|
+
}),
|
|
310
|
+
groupCollapsed: O({}, e, {
|
|
311
|
+
value: oe
|
|
312
|
+
}),
|
|
313
|
+
groupEnd: O({}, e, {
|
|
314
|
+
value: ie
|
|
315
|
+
})
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
var N = x.ReactCurrentDispatcher, K;
|
|
322
|
+
function W(e, r, t) {
|
|
323
|
+
{
|
|
324
|
+
if (K === void 0)
|
|
325
|
+
try {
|
|
326
|
+
throw Error();
|
|
327
|
+
} catch (u) {
|
|
328
|
+
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
329
|
+
K = n && n[1] || "";
|
|
330
|
+
}
|
|
331
|
+
return `
|
|
332
|
+
` + K + e;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
var q = !1, M;
|
|
336
|
+
{
|
|
337
|
+
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
338
|
+
M = new Xe();
|
|
339
|
+
}
|
|
340
|
+
function ue(e, r) {
|
|
341
|
+
if (!e || q)
|
|
342
|
+
return "";
|
|
343
|
+
{
|
|
344
|
+
var t = M.get(e);
|
|
345
|
+
if (t !== void 0)
|
|
346
|
+
return t;
|
|
347
|
+
}
|
|
348
|
+
var n;
|
|
349
|
+
q = !0;
|
|
350
|
+
var u = Error.prepareStackTrace;
|
|
351
|
+
Error.prepareStackTrace = void 0;
|
|
352
|
+
var c;
|
|
353
|
+
c = N.current, N.current = null, He();
|
|
354
|
+
try {
|
|
355
|
+
if (r) {
|
|
356
|
+
var s = function() {
|
|
357
|
+
throw Error();
|
|
358
|
+
};
|
|
359
|
+
if (Object.defineProperty(s.prototype, "props", {
|
|
360
|
+
set: function() {
|
|
361
|
+
throw Error();
|
|
362
|
+
}
|
|
363
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
364
|
+
try {
|
|
365
|
+
Reflect.construct(s, []);
|
|
366
|
+
} catch (S) {
|
|
367
|
+
n = S;
|
|
368
|
+
}
|
|
369
|
+
Reflect.construct(e, [], s);
|
|
370
|
+
} else {
|
|
371
|
+
try {
|
|
372
|
+
s.call();
|
|
373
|
+
} catch (S) {
|
|
374
|
+
n = S;
|
|
375
|
+
}
|
|
376
|
+
e.call(s.prototype);
|
|
377
|
+
}
|
|
378
|
+
} else {
|
|
379
|
+
try {
|
|
380
|
+
throw Error();
|
|
381
|
+
} catch (S) {
|
|
382
|
+
n = S;
|
|
383
|
+
}
|
|
384
|
+
e();
|
|
385
|
+
}
|
|
386
|
+
} catch (S) {
|
|
387
|
+
if (S && n && typeof S.stack == "string") {
|
|
388
|
+
for (var i = S.stack.split(`
|
|
389
|
+
`), m = n.stack.split(`
|
|
390
|
+
`), f = i.length - 1, d = m.length - 1; f >= 1 && d >= 0 && i[f] !== m[d]; )
|
|
391
|
+
d--;
|
|
392
|
+
for (; f >= 1 && d >= 0; f--, d--)
|
|
393
|
+
if (i[f] !== m[d]) {
|
|
394
|
+
if (f !== 1 || d !== 1)
|
|
395
|
+
do
|
|
396
|
+
if (f--, d--, d < 0 || i[f] !== m[d]) {
|
|
397
|
+
var h = `
|
|
398
|
+
` + i[f].replace(" at new ", " at ");
|
|
399
|
+
return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, h), h;
|
|
400
|
+
}
|
|
401
|
+
while (f >= 1 && d >= 0);
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
} finally {
|
|
406
|
+
q = !1, N.current = c, Je(), Error.prepareStackTrace = u;
|
|
407
|
+
}
|
|
408
|
+
var j = e ? e.displayName || e.name : "", Ee = j ? W(j) : "";
|
|
409
|
+
return typeof e == "function" && M.set(e, Ee), Ee;
|
|
410
|
+
}
|
|
411
|
+
function Ze(e, r, t) {
|
|
412
|
+
return ue(e, !1);
|
|
413
|
+
}
|
|
414
|
+
function Qe(e) {
|
|
415
|
+
var r = e.prototype;
|
|
416
|
+
return !!(r && r.isReactComponent);
|
|
417
|
+
}
|
|
418
|
+
function U(e, r, t) {
|
|
419
|
+
if (e == null)
|
|
420
|
+
return "";
|
|
421
|
+
if (typeof e == "function")
|
|
422
|
+
return ue(e, Qe(e));
|
|
423
|
+
if (typeof e == "string")
|
|
424
|
+
return W(e);
|
|
425
|
+
switch (e) {
|
|
426
|
+
case w:
|
|
427
|
+
return W("Suspense");
|
|
428
|
+
case y:
|
|
429
|
+
return W("SuspenseList");
|
|
430
|
+
}
|
|
431
|
+
if (typeof e == "object")
|
|
432
|
+
switch (e.$$typeof) {
|
|
433
|
+
case p:
|
|
434
|
+
return Ze(e.render);
|
|
435
|
+
case _:
|
|
436
|
+
return U(e.type, r, t);
|
|
437
|
+
case T: {
|
|
438
|
+
var n = e, u = n._payload, c = n._init;
|
|
439
|
+
try {
|
|
440
|
+
return U(c(u), r, t);
|
|
441
|
+
} catch {
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return "";
|
|
446
|
+
}
|
|
447
|
+
var V = Object.prototype.hasOwnProperty, ce = {}, le = x.ReactDebugCurrentFrame;
|
|
448
|
+
function Y(e) {
|
|
449
|
+
if (e) {
|
|
450
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
451
|
+
le.setExtraStackFrame(t);
|
|
452
|
+
} else
|
|
453
|
+
le.setExtraStackFrame(null);
|
|
454
|
+
}
|
|
455
|
+
function er(e, r, t, n, u) {
|
|
456
|
+
{
|
|
457
|
+
var c = Function.call.bind(V);
|
|
458
|
+
for (var s in e)
|
|
459
|
+
if (c(e, s)) {
|
|
460
|
+
var i = void 0;
|
|
461
|
+
try {
|
|
462
|
+
if (typeof e[s] != "function") {
|
|
463
|
+
var m = Error((n || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
464
|
+
throw m.name = "Invariant Violation", m;
|
|
465
|
+
}
|
|
466
|
+
i = e[s](r, s, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
467
|
+
} catch (f) {
|
|
468
|
+
i = f;
|
|
469
|
+
}
|
|
470
|
+
i && !(i instanceof Error) && (Y(u), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, s, typeof i), Y(null)), i instanceof Error && !(i.message in ce) && (ce[i.message] = !0, Y(u), g("Failed %s type: %s", t, i.message), Y(null));
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
var rr = Array.isArray;
|
|
475
|
+
function G(e) {
|
|
476
|
+
return rr(e);
|
|
477
|
+
}
|
|
478
|
+
function tr(e) {
|
|
479
|
+
{
|
|
480
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
481
|
+
return t;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
function nr(e) {
|
|
485
|
+
try {
|
|
486
|
+
return fe(e), !1;
|
|
487
|
+
} catch {
|
|
488
|
+
return !0;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
function fe(e) {
|
|
492
|
+
return "" + e;
|
|
493
|
+
}
|
|
494
|
+
function de(e) {
|
|
495
|
+
if (nr(e))
|
|
496
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(e)), fe(e);
|
|
497
|
+
}
|
|
498
|
+
var A = x.ReactCurrentOwner, ar = {
|
|
499
|
+
key: !0,
|
|
500
|
+
ref: !0,
|
|
501
|
+
__self: !0,
|
|
502
|
+
__source: !0
|
|
503
|
+
}, ve, pe, B;
|
|
504
|
+
B = {};
|
|
505
|
+
function or(e) {
|
|
506
|
+
if (V.call(e, "ref")) {
|
|
507
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
508
|
+
if (r && r.isReactWarning)
|
|
509
|
+
return !1;
|
|
510
|
+
}
|
|
511
|
+
return e.ref !== void 0;
|
|
512
|
+
}
|
|
513
|
+
function ir(e) {
|
|
514
|
+
if (V.call(e, "key")) {
|
|
515
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
516
|
+
if (r && r.isReactWarning)
|
|
517
|
+
return !1;
|
|
518
|
+
}
|
|
519
|
+
return e.key !== void 0;
|
|
520
|
+
}
|
|
521
|
+
function sr(e, r) {
|
|
522
|
+
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
|
|
523
|
+
var t = C(A.current.type);
|
|
524
|
+
B[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(A.current.type), e.ref), B[t] = !0);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
function ur(e, r) {
|
|
528
|
+
{
|
|
529
|
+
var t = function() {
|
|
530
|
+
ve || (ve = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
531
|
+
};
|
|
532
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
533
|
+
get: t,
|
|
534
|
+
configurable: !0
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function cr(e, r) {
|
|
539
|
+
{
|
|
540
|
+
var t = function() {
|
|
541
|
+
pe || (pe = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
542
|
+
};
|
|
543
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
544
|
+
get: t,
|
|
545
|
+
configurable: !0
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
var lr = function(e, r, t, n, u, c, s) {
|
|
550
|
+
var i = {
|
|
551
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
552
|
+
$$typeof: o,
|
|
553
|
+
// Built-in properties that belong on the element
|
|
554
|
+
type: e,
|
|
555
|
+
key: r,
|
|
556
|
+
ref: t,
|
|
557
|
+
props: s,
|
|
558
|
+
// Record the component responsible for creating this element.
|
|
559
|
+
_owner: c
|
|
560
|
+
};
|
|
561
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
562
|
+
configurable: !1,
|
|
563
|
+
enumerable: !1,
|
|
564
|
+
writable: !0,
|
|
565
|
+
value: !1
|
|
566
|
+
}), Object.defineProperty(i, "_self", {
|
|
567
|
+
configurable: !1,
|
|
568
|
+
enumerable: !1,
|
|
569
|
+
writable: !1,
|
|
570
|
+
value: n
|
|
571
|
+
}), Object.defineProperty(i, "_source", {
|
|
572
|
+
configurable: !1,
|
|
573
|
+
enumerable: !1,
|
|
574
|
+
writable: !1,
|
|
575
|
+
value: u
|
|
576
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
577
|
+
};
|
|
578
|
+
function fr(e, r, t, n, u) {
|
|
579
|
+
{
|
|
580
|
+
var c, s = {}, i = null, m = null;
|
|
581
|
+
t !== void 0 && (de(t), i = "" + t), ir(r) && (de(r.key), i = "" + r.key), or(r) && (m = r.ref, sr(r, u));
|
|
582
|
+
for (c in r)
|
|
583
|
+
V.call(r, c) && !ar.hasOwnProperty(c) && (s[c] = r[c]);
|
|
584
|
+
if (e && e.defaultProps) {
|
|
585
|
+
var f = e.defaultProps;
|
|
586
|
+
for (c in f)
|
|
587
|
+
s[c] === void 0 && (s[c] = f[c]);
|
|
588
|
+
}
|
|
589
|
+
if (i || m) {
|
|
590
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
591
|
+
i && ur(s, d), m && cr(s, d);
|
|
592
|
+
}
|
|
593
|
+
return lr(e, i, m, u, n, A.current, s);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
var z = x.ReactCurrentOwner, ge = x.ReactDebugCurrentFrame;
|
|
597
|
+
function k(e) {
|
|
598
|
+
if (e) {
|
|
599
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
600
|
+
ge.setExtraStackFrame(t);
|
|
601
|
+
} else
|
|
602
|
+
ge.setExtraStackFrame(null);
|
|
603
|
+
}
|
|
604
|
+
var H;
|
|
605
|
+
H = !1;
|
|
606
|
+
function J(e) {
|
|
607
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
608
|
+
}
|
|
609
|
+
function me() {
|
|
610
|
+
{
|
|
611
|
+
if (z.current) {
|
|
612
|
+
var e = C(z.current.type);
|
|
613
|
+
if (e)
|
|
614
|
+
return `
|
|
615
|
+
|
|
616
|
+
Check the render method of \`` + e + "`.";
|
|
617
|
+
}
|
|
618
|
+
return "";
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function dr(e) {
|
|
622
|
+
{
|
|
623
|
+
if (e !== void 0) {
|
|
624
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
625
|
+
return `
|
|
626
|
+
|
|
627
|
+
Check your code at ` + r + ":" + t + ".";
|
|
628
|
+
}
|
|
629
|
+
return "";
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
var ye = {};
|
|
633
|
+
function vr(e) {
|
|
634
|
+
{
|
|
635
|
+
var r = me();
|
|
636
|
+
if (!r) {
|
|
637
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
638
|
+
t && (r = `
|
|
639
|
+
|
|
640
|
+
Check the top-level render call using <` + t + ">.");
|
|
641
|
+
}
|
|
642
|
+
return r;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
function he(e, r) {
|
|
646
|
+
{
|
|
647
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
648
|
+
return;
|
|
649
|
+
e._store.validated = !0;
|
|
650
|
+
var t = vr(r);
|
|
651
|
+
if (ye[t])
|
|
652
|
+
return;
|
|
653
|
+
ye[t] = !0;
|
|
654
|
+
var n = "";
|
|
655
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), k(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
function be(e, r) {
|
|
659
|
+
{
|
|
660
|
+
if (typeof e != "object")
|
|
661
|
+
return;
|
|
662
|
+
if (G(e))
|
|
663
|
+
for (var t = 0; t < e.length; t++) {
|
|
664
|
+
var n = e[t];
|
|
665
|
+
J(n) && he(n, r);
|
|
666
|
+
}
|
|
667
|
+
else if (J(e))
|
|
668
|
+
e._store && (e._store.validated = !0);
|
|
669
|
+
else if (e) {
|
|
670
|
+
var u = Ve(e);
|
|
671
|
+
if (typeof u == "function" && u !== e.entries)
|
|
672
|
+
for (var c = u.call(e), s; !(s = c.next()).done; )
|
|
673
|
+
J(s.value) && he(s.value, r);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
function pr(e) {
|
|
678
|
+
{
|
|
679
|
+
var r = e.type;
|
|
680
|
+
if (r == null || typeof r == "string")
|
|
681
|
+
return;
|
|
682
|
+
var t;
|
|
683
|
+
if (typeof r == "function")
|
|
684
|
+
t = r.propTypes;
|
|
685
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
686
|
+
// Inner props are checked in the reconciler.
|
|
687
|
+
r.$$typeof === _))
|
|
688
|
+
t = r.propTypes;
|
|
689
|
+
else
|
|
690
|
+
return;
|
|
691
|
+
if (t) {
|
|
692
|
+
var n = C(r);
|
|
693
|
+
er(t, e.props, "prop", n, e);
|
|
694
|
+
} else if (r.PropTypes !== void 0 && !H) {
|
|
695
|
+
H = !0;
|
|
696
|
+
var u = C(r);
|
|
697
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
698
|
+
}
|
|
699
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function gr(e) {
|
|
703
|
+
{
|
|
704
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
705
|
+
var n = r[t];
|
|
706
|
+
if (n !== "children" && n !== "key") {
|
|
707
|
+
k(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
e.ref !== null && (k(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
function Re(e, r, t, n, u, c) {
|
|
715
|
+
{
|
|
716
|
+
var s = Be(e);
|
|
717
|
+
if (!s) {
|
|
718
|
+
var i = "";
|
|
719
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
720
|
+
var m = dr(u);
|
|
721
|
+
m ? i += m : i += me();
|
|
722
|
+
var f;
|
|
723
|
+
e === null ? f = "null" : G(e) ? f = "array" : e !== void 0 && e.$$typeof === o ? (f = "<" + (C(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, i);
|
|
724
|
+
}
|
|
725
|
+
var d = fr(e, r, t, u, c);
|
|
726
|
+
if (d == null)
|
|
727
|
+
return d;
|
|
728
|
+
if (s) {
|
|
729
|
+
var h = r.children;
|
|
730
|
+
if (h !== void 0)
|
|
731
|
+
if (n)
|
|
732
|
+
if (G(h)) {
|
|
733
|
+
for (var j = 0; j < h.length; j++)
|
|
734
|
+
be(h[j], e);
|
|
735
|
+
Object.freeze && Object.freeze(h);
|
|
736
|
+
} else
|
|
737
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
738
|
+
else
|
|
739
|
+
be(h, e);
|
|
740
|
+
}
|
|
741
|
+
return e === l ? gr(d) : pr(d), d;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
function mr(e, r, t) {
|
|
745
|
+
return Re(e, r, t, !0);
|
|
746
|
+
}
|
|
747
|
+
function yr(e, r, t) {
|
|
748
|
+
return Re(e, r, t, !1);
|
|
749
|
+
}
|
|
750
|
+
var hr = yr, br = mr;
|
|
751
|
+
F.Fragment = l, F.jsx = hr, F.jsxs = br;
|
|
752
|
+
}()), F;
|
|
753
|
+
}
|
|
754
|
+
var I = {};
|
|
755
|
+
/**
|
|
756
|
+
* @license React
|
|
757
|
+
* react-jsx-runtime.production.min.js
|
|
758
|
+
*
|
|
759
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
760
|
+
*
|
|
761
|
+
* This source code is licensed under the MIT license found in the
|
|
762
|
+
* LICENSE file in the root directory of this source tree.
|
|
763
|
+
*/
|
|
764
|
+
var Ce;
|
|
765
|
+
function Yr() {
|
|
766
|
+
if (Ce)
|
|
767
|
+
return I;
|
|
768
|
+
Ce = 1;
|
|
769
|
+
var a = Te, o = Symbol.for("react.element"), v = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, b = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
770
|
+
function R(E, p, w) {
|
|
771
|
+
var y, _ = {}, T = null, $ = null;
|
|
772
|
+
w !== void 0 && (T = "" + w), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && ($ = p.ref);
|
|
773
|
+
for (y in p)
|
|
774
|
+
l.call(p, y) && !P.hasOwnProperty(y) && (_[y] = p[y]);
|
|
775
|
+
if (E && E.defaultProps)
|
|
776
|
+
for (y in p = E.defaultProps, p)
|
|
777
|
+
_[y] === void 0 && (_[y] = p[y]);
|
|
778
|
+
return { $$typeof: o, type: E, key: T, ref: $, props: _, _owner: b.current };
|
|
779
|
+
}
|
|
780
|
+
return I.Fragment = v, I.jsx = R, I.jsxs = R, I;
|
|
781
|
+
}
|
|
782
|
+
process.env.NODE_ENV === "production" ? Yr() : Vr();
|
|
783
|
+
const Hr = Se({
|
|
784
|
+
reducer: Me
|
|
785
|
+
}), Lr = Cr({
|
|
786
|
+
sendMessage: () => null
|
|
787
|
+
});
|
|
788
|
+
function Nr() {
|
|
789
|
+
return Sr(Lr);
|
|
790
|
+
}
|
|
791
|
+
const Jr = ({ config: a }) => {
|
|
792
|
+
const { sendMessage: o } = Nr();
|
|
793
|
+
Pr(() => {
|
|
794
|
+
if (!a)
|
|
795
|
+
return;
|
|
796
|
+
const v = [];
|
|
797
|
+
a.displayKeys.forEach((l) => {
|
|
798
|
+
v.push(l);
|
|
799
|
+
}), a.environmentalDevices.forEach((l) => {
|
|
800
|
+
v.push(l);
|
|
801
|
+
}), a.audioCodecKey && v.push(a.audioCodecKey), a.videoCodecKey && v.push(a.videoCodecKey);
|
|
802
|
+
for (const [l, b] of Object.entries(a.sourceList))
|
|
803
|
+
v.push(b.sourceKey);
|
|
804
|
+
v.forEach((l) => {
|
|
805
|
+
o(`/device/${l}/fullStatus`, { deviceKey: l });
|
|
806
|
+
});
|
|
807
|
+
}, [a, o]);
|
|
808
|
+
};
|
|
809
|
+
export {
|
|
810
|
+
Ur as httpClient,
|
|
811
|
+
Hr as store,
|
|
812
|
+
Jr as useGetAllDeviceStateFromRoomConfiguration,
|
|
813
|
+
zr as useInitialize
|
|
814
|
+
};
|