@cm-sigoo-temp/ui 0.2.43 → 0.2.44
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var mt = (e, t, r) =>
|
|
4
|
-
import * as
|
|
5
|
-
import Lr, { createContext as Ci, useContext as Ti, useCallback as
|
|
6
|
-
import { createTheme as Oi, responsiveFontSizes as
|
|
1
|
+
var Ei = Object.defineProperty;
|
|
2
|
+
var xi = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var mt = (e, t, r) => xi(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import * as Fe from "react";
|
|
5
|
+
import Lr, { createContext as Ci, useContext as Ti, useCallback as xe, useMemo as lt, useState as Gt, createElement as ki, useRef as Ri, useEffect as _i } from "react";
|
|
6
|
+
import { createTheme as Oi, responsiveFontSizes as Ii, ListItemIcon as ut, Icon as Zt, Tooltip as Ft, ListItem as Re, ListItemButton as _e, ListItemText as ve, ListSubheader as Ur, Divider as zt, Drawer as Pi, Toolbar as Gr, List as ji, Skeleton as be, Typography as Oe, Box as fe, Grid as wt, ButtonBase as wo, Paper as Ni, createSvgIcon as Zr, Avatar as Li, CircularProgress as vo, Menu as Ui, MenuItem as $r, TextField as $i, AppBar as Mi, Zoom as Di, IconButton as pn, Collapse as Bi, LinearProgress as Vi, Popover as Fi, ThemeProvider as zi, Button as Eo } from "@mui/material";
|
|
7
7
|
import Hi from "@emotion/styled";
|
|
8
8
|
import "@emotion/react";
|
|
9
|
-
function
|
|
9
|
+
function xo(e, t) {
|
|
10
10
|
return function() {
|
|
11
11
|
return e.apply(t, arguments);
|
|
12
12
|
};
|
|
@@ -15,7 +15,7 @@ const { toString: Wi } = Object.prototype, { getPrototypeOf: Xr } = Object, { it
|
|
|
15
15
|
const r = Wi.call(t);
|
|
16
16
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
17
17
|
})(/* @__PURE__ */ Object.create(null)), Te = (e) => (e = e.toLowerCase(), (t) => er(t) === e), tr = (e) => (t) => typeof t === e, { isArray: pt } = Array, dt = tr("undefined");
|
|
18
|
-
function
|
|
18
|
+
function xt(e) {
|
|
19
19
|
return e !== null && !dt(e) && e.constructor !== null && !dt(e.constructor) && ge(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
20
20
|
}
|
|
21
21
|
const To = Te("ArrayBuffer");
|
|
@@ -29,7 +29,7 @@ const qi = tr("string"), ge = tr("function"), ko = tr("number"), Ct = (e) => e !
|
|
|
29
29
|
const t = Xr(e);
|
|
30
30
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Co in e) && !(Xt in e);
|
|
31
31
|
}, Qi = (e) => {
|
|
32
|
-
if (!Ct(e) ||
|
|
32
|
+
if (!Ct(e) || xt(e))
|
|
33
33
|
return !1;
|
|
34
34
|
try {
|
|
35
35
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
@@ -58,7 +58,7 @@ function Tt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
58
58
|
for (n = 0, o = e.length; n < o; n++)
|
|
59
59
|
t.call(null, e[n], n, e);
|
|
60
60
|
else {
|
|
61
|
-
if (
|
|
61
|
+
if (xt(e))
|
|
62
62
|
return;
|
|
63
63
|
const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), s = i.length;
|
|
64
64
|
let a;
|
|
@@ -67,7 +67,7 @@ function Tt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
function Ro(e, t) {
|
|
70
|
-
if (
|
|
70
|
+
if (xt(e))
|
|
71
71
|
return null;
|
|
72
72
|
t = t.toLowerCase();
|
|
73
73
|
const r = Object.keys(e);
|
|
@@ -93,7 +93,7 @@ const ds = (e, t, r, { allOwnKeys: n } = {}) => (Tt(
|
|
|
93
93
|
t,
|
|
94
94
|
(o, i) => {
|
|
95
95
|
r && ge(o) ? Object.defineProperty(e, i, {
|
|
96
|
-
value:
|
|
96
|
+
value: xo(o, r),
|
|
97
97
|
writable: !0,
|
|
98
98
|
enumerable: !0,
|
|
99
99
|
configurable: !0
|
|
@@ -158,7 +158,7 @@ const ds = (e, t, r, { allOwnKeys: n } = {}) => (Tt(
|
|
|
158
158
|
let s;
|
|
159
159
|
(s = t(o, i, e)) !== !1 && (n[i] = s || o);
|
|
160
160
|
}), Object.defineProperties(e, n);
|
|
161
|
-
},
|
|
161
|
+
}, Es = (e) => {
|
|
162
162
|
Oo(e, (t, r) => {
|
|
163
163
|
if (ge(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
164
164
|
return !1;
|
|
@@ -173,7 +173,7 @@ const ds = (e, t, r, { allOwnKeys: n } = {}) => (Tt(
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
|
-
},
|
|
176
|
+
}, xs = (e, t) => {
|
|
177
177
|
const r = {}, n = (o) => {
|
|
178
178
|
o.forEach((i) => {
|
|
179
179
|
r[i] = !0;
|
|
@@ -190,7 +190,7 @@ const Rs = (e) => {
|
|
|
190
190
|
if (Ct(n)) {
|
|
191
191
|
if (t.indexOf(n) >= 0)
|
|
192
192
|
return;
|
|
193
|
-
if (
|
|
193
|
+
if (xt(n))
|
|
194
194
|
return n;
|
|
195
195
|
if (!("toJSON" in n)) {
|
|
196
196
|
t[o] = n;
|
|
@@ -204,7 +204,7 @@ const Rs = (e) => {
|
|
|
204
204
|
return n;
|
|
205
205
|
};
|
|
206
206
|
return r(e, 0);
|
|
207
|
-
}, _s = Te("AsyncFunction"), Os = (e) => e && (Ct(e) || ge(e)) && ge(e.then) && ge(e.catch),
|
|
207
|
+
}, _s = Te("AsyncFunction"), Os = (e) => e && (Ct(e) || ge(e)) && ge(e.then) && ge(e.catch), Io = ((e, t) => e ? setImmediate : t ? ((r, n) => (Ke.addEventListener(
|
|
208
208
|
"message",
|
|
209
209
|
({ source: o, data: i }) => {
|
|
210
210
|
o === Ke && i === r && n.length && n.shift()();
|
|
@@ -212,10 +212,10 @@ const Rs = (e) => {
|
|
|
212
212
|
!1
|
|
213
213
|
), (o) => {
|
|
214
214
|
n.push(o), Ke.postMessage(r, "*");
|
|
215
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", ge(Ke.postMessage)),
|
|
215
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", ge(Ke.postMessage)), Is = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ke) : typeof process < "u" && process.nextTick || Io, Ps = (e) => e != null && ge(e[Xt]), T = {
|
|
216
216
|
isArray: pt,
|
|
217
217
|
isArrayBuffer: To,
|
|
218
|
-
isBuffer:
|
|
218
|
+
isBuffer: xt,
|
|
219
219
|
isFormData: os,
|
|
220
220
|
isArrayBufferView: Ki,
|
|
221
221
|
isString: qi,
|
|
@@ -258,8 +258,8 @@ const Rs = (e) => {
|
|
|
258
258
|
hasOwnProp: gn,
|
|
259
259
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
260
260
|
reduceDescriptors: Oo,
|
|
261
|
-
freezeMethods:
|
|
262
|
-
toObjectSet:
|
|
261
|
+
freezeMethods: Es,
|
|
262
|
+
toObjectSet: xs,
|
|
263
263
|
toCamelCase: ws,
|
|
264
264
|
noop: Cs,
|
|
265
265
|
toFiniteNumber: Ts,
|
|
@@ -270,13 +270,13 @@ const Rs = (e) => {
|
|
|
270
270
|
toJSONObject: Rs,
|
|
271
271
|
isAsyncFn: _s,
|
|
272
272
|
isThenable: Os,
|
|
273
|
-
setImmediate:
|
|
274
|
-
asap:
|
|
275
|
-
isIterable:
|
|
273
|
+
setImmediate: Io,
|
|
274
|
+
asap: Is,
|
|
275
|
+
isIterable: Ps
|
|
276
276
|
};
|
|
277
|
-
let H = class
|
|
277
|
+
let H = class Po extends Error {
|
|
278
278
|
static from(t, r, n, o, i, s) {
|
|
279
|
-
const a = new
|
|
279
|
+
const a = new Po(t.message, r || t.code, n, o, i);
|
|
280
280
|
return a.cause = t, a.name = t.name, t.status != null && a.status == null && (a.status = t.status), s && Object.assign(a, s), a;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
@@ -377,14 +377,14 @@ function rr(e, t, r) {
|
|
|
377
377
|
return T.isArrayBuffer(g) || T.isTypedArray(g) ? u && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
378
378
|
}
|
|
379
379
|
function m(g, p, y) {
|
|
380
|
-
let
|
|
380
|
+
let P = g;
|
|
381
381
|
if (T.isReactNative(t) && T.isReactNativeBlob(g))
|
|
382
382
|
return t.append(br(y, p, i), f(g)), !1;
|
|
383
383
|
if (g && !y && typeof g == "object") {
|
|
384
384
|
if (T.endsWith(p, "{}"))
|
|
385
385
|
p = n ? p : p.slice(0, -2), g = JSON.stringify(g);
|
|
386
|
-
else if (T.isArray(g) && Ns(g) || (T.isFileList(g) || T.endsWith(p, "[]")) && (
|
|
387
|
-
return p = jo(p),
|
|
386
|
+
else if (T.isArray(g) && Ns(g) || (T.isFileList(g) || T.endsWith(p, "[]")) && (P = T.toArray(g)))
|
|
387
|
+
return p = jo(p), P.forEach(function(D, j) {
|
|
388
388
|
!(T.isUndefined(D) || D === null) && t.append(
|
|
389
389
|
// eslint-disable-next-line no-nested-ternary
|
|
390
390
|
s === !0 ? br([p], j, i) : s === null ? p : p + "[]",
|
|
@@ -394,7 +394,7 @@ function rr(e, t, r) {
|
|
|
394
394
|
}
|
|
395
395
|
return Dr(g) ? !0 : (t.append(br(y, p, i), f(g)), !1);
|
|
396
396
|
}
|
|
397
|
-
const A = [],
|
|
397
|
+
const A = [], x = Object.assign(Ls, {
|
|
398
398
|
defaultVisitor: m,
|
|
399
399
|
convertValue: f,
|
|
400
400
|
isVisitable: Dr
|
|
@@ -403,8 +403,8 @@ function rr(e, t, r) {
|
|
|
403
403
|
if (!T.isUndefined(g)) {
|
|
404
404
|
if (A.indexOf(g) !== -1)
|
|
405
405
|
throw Error("Circular reference detected in " + p.join("."));
|
|
406
|
-
A.push(g), T.forEach(g, function(
|
|
407
|
-
(!(T.isUndefined(
|
|
406
|
+
A.push(g), T.forEach(g, function(P, F) {
|
|
407
|
+
(!(T.isUndefined(P) || P === null) && o.call(t, P, T.isString(F) ? F.trim() : F, p, x)) === !0 && b(P, p ? p.concat(F) : [F]);
|
|
408
408
|
}), A.pop();
|
|
409
409
|
}
|
|
410
410
|
}
|
|
@@ -525,12 +525,12 @@ const tn = {
|
|
|
525
525
|
Blob: Ds
|
|
526
526
|
},
|
|
527
527
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
528
|
-
}, rn = typeof window < "u" && typeof document < "u", Br = typeof navigator == "object" && navigator || void 0,
|
|
528
|
+
}, rn = typeof window < "u" && typeof document < "u", Br = typeof navigator == "object" && navigator || void 0, Vs = rn && (!Br || ["ReactNative", "NativeScript", "NS"].indexOf(Br.product) < 0), Fs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
529
529
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zs = rn && window.location.href || "http://localhost", Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
530
530
|
__proto__: null,
|
|
531
531
|
hasBrowserEnv: rn,
|
|
532
|
-
hasStandardBrowserEnv:
|
|
533
|
-
hasStandardBrowserWebWorkerEnv:
|
|
532
|
+
hasStandardBrowserEnv: Vs,
|
|
533
|
+
hasStandardBrowserWebWorkerEnv: Fs,
|
|
534
534
|
navigator: Br,
|
|
535
535
|
origin: zs
|
|
536
536
|
}, Symbol.toStringTag, { value: "Module" })), me = {
|
|
@@ -910,13 +910,13 @@ function ra(e, t) {
|
|
|
910
910
|
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
911
911
|
const f = Date.now(), m = n[i];
|
|
912
912
|
s || (s = f), r[o] = u, n[o] = f;
|
|
913
|
-
let A = i,
|
|
913
|
+
let A = i, x = 0;
|
|
914
914
|
for (; A !== o; )
|
|
915
|
-
|
|
915
|
+
x += r[A++], A = A % e;
|
|
916
916
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), f - s < t)
|
|
917
917
|
return;
|
|
918
918
|
const b = m && f - m;
|
|
919
|
-
return b ? Math.round(
|
|
919
|
+
return b ? Math.round(x * 1e3 / b) : void 0;
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
function na(e, t) {
|
|
@@ -1006,14 +1006,14 @@ const vn = (e) => e instanceof ye ? { ...e } : e;
|
|
|
1006
1006
|
function Ze(e, t) {
|
|
1007
1007
|
t = t || {};
|
|
1008
1008
|
const r = {};
|
|
1009
|
-
function n(f, m, A,
|
|
1010
|
-
return T.isPlainObject(f) && T.isPlainObject(m) ? T.merge.call({ caseless:
|
|
1009
|
+
function n(f, m, A, x) {
|
|
1010
|
+
return T.isPlainObject(f) && T.isPlainObject(m) ? T.merge.call({ caseless: x }, f, m) : T.isPlainObject(m) ? T.merge({}, m) : T.isArray(m) ? m.slice() : m;
|
|
1011
1011
|
}
|
|
1012
|
-
function o(f, m, A,
|
|
1012
|
+
function o(f, m, A, x) {
|
|
1013
1013
|
if (T.isUndefined(m)) {
|
|
1014
1014
|
if (!T.isUndefined(f))
|
|
1015
|
-
return n(void 0, f, A,
|
|
1016
|
-
} else return n(f, m, A,
|
|
1015
|
+
return n(void 0, f, A, x);
|
|
1016
|
+
} else return n(f, m, A, x);
|
|
1017
1017
|
}
|
|
1018
1018
|
function i(f, m) {
|
|
1019
1019
|
if (!T.isUndefined(m))
|
|
@@ -1064,8 +1064,8 @@ function Ze(e, t) {
|
|
|
1064
1064
|
};
|
|
1065
1065
|
return T.forEach(Object.keys({ ...e, ...t }), function(m) {
|
|
1066
1066
|
if (m === "__proto__" || m === "constructor" || m === "prototype") return;
|
|
1067
|
-
const A = T.hasOwnProp(u, m) ? u[m] : o,
|
|
1068
|
-
T.isUndefined(
|
|
1067
|
+
const A = T.hasOwnProp(u, m) ? u[m] : o, x = A(e[m], t[m], m);
|
|
1068
|
+
T.isUndefined(x) && A !== a || (r[m] = x);
|
|
1069
1069
|
}), r;
|
|
1070
1070
|
}
|
|
1071
1071
|
const Bo = (e) => {
|
|
@@ -1100,13 +1100,13 @@ const Bo = (e) => {
|
|
|
1100
1100
|
const o = Bo(e);
|
|
1101
1101
|
let i = o.data;
|
|
1102
1102
|
const s = ye.from(o.headers).normalize();
|
|
1103
|
-
let { responseType: a, onUploadProgress: u, onDownloadProgress: f } = o, m, A,
|
|
1103
|
+
let { responseType: a, onUploadProgress: u, onDownloadProgress: f } = o, m, A, x, b, g;
|
|
1104
1104
|
function p() {
|
|
1105
1105
|
b && b(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(m), o.signal && o.signal.removeEventListener("abort", m);
|
|
1106
1106
|
}
|
|
1107
1107
|
let y = new XMLHttpRequest();
|
|
1108
1108
|
y.open(o.method.toUpperCase(), o.url, !0), y.timeout = o.timeout;
|
|
1109
|
-
function
|
|
1109
|
+
function P() {
|
|
1110
1110
|
if (!y)
|
|
1111
1111
|
return;
|
|
1112
1112
|
const D = ye.from(
|
|
@@ -1129,8 +1129,8 @@ const Bo = (e) => {
|
|
|
1129
1129
|
_
|
|
1130
1130
|
), y = null;
|
|
1131
1131
|
}
|
|
1132
|
-
"onloadend" in y ? y.onloadend =
|
|
1133
|
-
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1132
|
+
"onloadend" in y ? y.onloadend = P : y.onreadystatechange = function() {
|
|
1133
|
+
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(P);
|
|
1134
1134
|
}, y.onabort = function() {
|
|
1135
1135
|
y && (n(new H("Request aborted", H.ECONNABORTED, e, y)), y = null);
|
|
1136
1136
|
}, y.onerror = function(j) {
|
|
@@ -1149,14 +1149,14 @@ const Bo = (e) => {
|
|
|
1149
1149
|
), y = null;
|
|
1150
1150
|
}, i === void 0 && s.setContentType(null), "setRequestHeader" in y && T.forEach(s.toJSON(), function(j, _) {
|
|
1151
1151
|
y.setRequestHeader(_, j);
|
|
1152
|
-
}), T.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), a && a !== "json" && (y.responseType = o.responseType), f && ([
|
|
1152
|
+
}), T.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), a && a !== "json" && (y.responseType = o.responseType), f && ([x, g] = Ht(f, !0), y.addEventListener("progress", x)), u && y.upload && ([A, b] = Ht(u), y.upload.addEventListener("progress", A), y.upload.addEventListener("loadend", b)), (o.cancelToken || o.signal) && (m = (D) => {
|
|
1153
1153
|
y && (n(!D || D.type ? new Rt(null, e, y) : D), y.abort(), y = null);
|
|
1154
1154
|
}, o.cancelToken && o.cancelToken.subscribe(m), o.signal && (o.signal.aborted ? m() : o.signal.addEventListener("abort", m)));
|
|
1155
|
-
const
|
|
1156
|
-
if (
|
|
1155
|
+
const F = ta(o.url);
|
|
1156
|
+
if (F && me.protocols.indexOf(F) === -1) {
|
|
1157
1157
|
n(
|
|
1158
1158
|
new H(
|
|
1159
|
-
"Unsupported protocol " +
|
|
1159
|
+
"Unsupported protocol " + F + ":",
|
|
1160
1160
|
H.ERR_BAD_REQUEST,
|
|
1161
1161
|
e
|
|
1162
1162
|
)
|
|
@@ -1218,7 +1218,7 @@ const Bo = (e) => {
|
|
|
1218
1218
|
} finally {
|
|
1219
1219
|
await t.cancel();
|
|
1220
1220
|
}
|
|
1221
|
-
},
|
|
1221
|
+
}, En = (e, t, r, n) => {
|
|
1222
1222
|
const o = fa(e, t);
|
|
1223
1223
|
let i = 0, s, a = (u) => {
|
|
1224
1224
|
s || (s = !0, n && n(u));
|
|
@@ -1234,8 +1234,8 @@ const Bo = (e) => {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
let A = m.byteLength;
|
|
1236
1236
|
if (r) {
|
|
1237
|
-
let
|
|
1238
|
-
r(
|
|
1237
|
+
let x = i += A;
|
|
1238
|
+
r(x);
|
|
1239
1239
|
}
|
|
1240
1240
|
u.enqueue(new Uint8Array(m));
|
|
1241
1241
|
} catch (f) {
|
|
@@ -1250,7 +1250,7 @@ const Bo = (e) => {
|
|
|
1250
1250
|
highWaterMark: 2
|
|
1251
1251
|
}
|
|
1252
1252
|
);
|
|
1253
|
-
},
|
|
1253
|
+
}, xn = 64 * 1024, { isFunction: It } = T, ma = (({ Request: e, Response: t }) => ({
|
|
1254
1254
|
Request: e,
|
|
1255
1255
|
Response: t
|
|
1256
1256
|
}))(T.global), { ReadableStream: Cn, TextEncoder: Tn } = T.global, kn = (e, ...t) => {
|
|
@@ -1267,10 +1267,10 @@ const Bo = (e) => {
|
|
|
1267
1267
|
ma,
|
|
1268
1268
|
e
|
|
1269
1269
|
);
|
|
1270
|
-
const { fetch: t, Request: r, Response: n } = e, o = t ?
|
|
1270
|
+
const { fetch: t, Request: r, Response: n } = e, o = t ? It(t) : typeof fetch == "function", i = It(r), s = It(n);
|
|
1271
1271
|
if (!o)
|
|
1272
1272
|
return !1;
|
|
1273
|
-
const a = o &&
|
|
1273
|
+
const a = o && It(Cn), u = o && (typeof Tn == "function" ? /* @__PURE__ */ ((g) => (p) => g.encode(p))(new Tn()) : async (g) => new Uint8Array(await new r(g).arrayBuffer())), f = i && a && kn(() => {
|
|
1274
1274
|
let g = !1;
|
|
1275
1275
|
const p = new r(me.origin, {
|
|
1276
1276
|
body: new Cn(),
|
|
@@ -1285,9 +1285,9 @@ const Bo = (e) => {
|
|
|
1285
1285
|
};
|
|
1286
1286
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
1287
1287
|
!A[g] && (A[g] = (p, y) => {
|
|
1288
|
-
let
|
|
1289
|
-
if (
|
|
1290
|
-
return
|
|
1288
|
+
let P = p && p[g];
|
|
1289
|
+
if (P)
|
|
1290
|
+
return P.call(p);
|
|
1291
1291
|
throw new H(
|
|
1292
1292
|
`Response type '${g}' is not supported`,
|
|
1293
1293
|
H.ERR_NOT_SUPPORT,
|
|
@@ -1295,7 +1295,7 @@ const Bo = (e) => {
|
|
|
1295
1295
|
);
|
|
1296
1296
|
});
|
|
1297
1297
|
});
|
|
1298
|
-
const
|
|
1298
|
+
const x = async (g) => {
|
|
1299
1299
|
if (g == null)
|
|
1300
1300
|
return 0;
|
|
1301
1301
|
if (T.isBlob(g))
|
|
@@ -1311,14 +1311,14 @@ const Bo = (e) => {
|
|
|
1311
1311
|
return (await u(g)).byteLength;
|
|
1312
1312
|
}, b = async (g, p) => {
|
|
1313
1313
|
const y = T.toFiniteNumber(g.getContentLength());
|
|
1314
|
-
return y ??
|
|
1314
|
+
return y ?? x(p);
|
|
1315
1315
|
};
|
|
1316
1316
|
return async (g) => {
|
|
1317
1317
|
let {
|
|
1318
1318
|
url: p,
|
|
1319
1319
|
method: y,
|
|
1320
|
-
data:
|
|
1321
|
-
signal:
|
|
1320
|
+
data: P,
|
|
1321
|
+
signal: F,
|
|
1322
1322
|
cancelToken: D,
|
|
1323
1323
|
timeout: j,
|
|
1324
1324
|
onDownloadProgress: _,
|
|
@@ -1330,26 +1330,26 @@ const Bo = (e) => {
|
|
|
1330
1330
|
} = Bo(g), K = t || fetch;
|
|
1331
1331
|
W = W ? (W + "").toLowerCase() : "text";
|
|
1332
1332
|
let d = ua(
|
|
1333
|
-
[
|
|
1333
|
+
[F, D && D.toAbortSignal()],
|
|
1334
1334
|
j
|
|
1335
1335
|
), U = null;
|
|
1336
|
-
const
|
|
1336
|
+
const I = d && d.unsubscribe && (() => {
|
|
1337
1337
|
d.unsubscribe();
|
|
1338
1338
|
});
|
|
1339
|
-
let
|
|
1339
|
+
let V;
|
|
1340
1340
|
try {
|
|
1341
|
-
if ($ && f && y !== "get" && y !== "head" && (
|
|
1341
|
+
if ($ && f && y !== "get" && y !== "head" && (V = await b(z, P)) !== 0) {
|
|
1342
1342
|
let l = new r(p, {
|
|
1343
1343
|
method: "POST",
|
|
1344
|
-
body:
|
|
1344
|
+
body: P,
|
|
1345
1345
|
duplex: "half"
|
|
1346
1346
|
}), S;
|
|
1347
|
-
if (T.isFormData(
|
|
1348
|
-
const [C,
|
|
1349
|
-
|
|
1347
|
+
if (T.isFormData(P) && (S = l.headers.get("content-type")) && z.setContentType(S), l.body) {
|
|
1348
|
+
const [C, E] = Sn(
|
|
1349
|
+
V,
|
|
1350
1350
|
Ht(wn($))
|
|
1351
1351
|
);
|
|
1352
|
-
|
|
1352
|
+
P = En(l.body, xn, C, E);
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
T.isString(Q) || (Q = Q ? "include" : "omit");
|
|
@@ -1358,25 +1358,25 @@ const Bo = (e) => {
|
|
|
1358
1358
|
signal: d,
|
|
1359
1359
|
method: y.toUpperCase(),
|
|
1360
1360
|
headers: z.normalize().toJSON(),
|
|
1361
|
-
body:
|
|
1361
|
+
body: P,
|
|
1362
1362
|
duplex: "half",
|
|
1363
1363
|
credentials: B ? Q : void 0
|
|
1364
1364
|
};
|
|
1365
1365
|
U = i && new r(p, Y);
|
|
1366
1366
|
let Z = await (i ? K(U, se) : K(p, Y));
|
|
1367
1367
|
const pe = m && (W === "stream" || W === "response");
|
|
1368
|
-
if (m && (_ || pe &&
|
|
1368
|
+
if (m && (_ || pe && I)) {
|
|
1369
1369
|
const l = {};
|
|
1370
1370
|
["status", "statusText", "headers"].forEach((R) => {
|
|
1371
1371
|
l[R] = Z[R];
|
|
1372
1372
|
});
|
|
1373
|
-
const S = T.toFiniteNumber(Z.headers.get("content-length")), [C,
|
|
1373
|
+
const S = T.toFiniteNumber(Z.headers.get("content-length")), [C, E] = _ && Sn(
|
|
1374
1374
|
S,
|
|
1375
1375
|
Ht(wn(_), !0)
|
|
1376
1376
|
) || [];
|
|
1377
1377
|
Z = new n(
|
|
1378
|
-
|
|
1379
|
-
|
|
1378
|
+
En(Z.body, xn, C, () => {
|
|
1379
|
+
E && E(), I && I();
|
|
1380
1380
|
}),
|
|
1381
1381
|
l
|
|
1382
1382
|
);
|
|
@@ -1386,7 +1386,7 @@ const Bo = (e) => {
|
|
|
1386
1386
|
Z,
|
|
1387
1387
|
g
|
|
1388
1388
|
);
|
|
1389
|
-
return !pe &&
|
|
1389
|
+
return !pe && I && I(), await new Promise((l, S) => {
|
|
1390
1390
|
Mo(l, S, {
|
|
1391
1391
|
data: c,
|
|
1392
1392
|
headers: ye.from(Z.headers),
|
|
@@ -1397,7 +1397,7 @@ const Bo = (e) => {
|
|
|
1397
1397
|
});
|
|
1398
1398
|
});
|
|
1399
1399
|
} catch (B) {
|
|
1400
|
-
throw
|
|
1400
|
+
throw I && I(), B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign(
|
|
1401
1401
|
new H(
|
|
1402
1402
|
"Network Error",
|
|
1403
1403
|
H.ERR_NETWORK,
|
|
@@ -1411,7 +1411,7 @@ const Bo = (e) => {
|
|
|
1411
1411
|
) : H.from(B, B && B.code, g, U, B && B.response);
|
|
1412
1412
|
}
|
|
1413
1413
|
};
|
|
1414
|
-
}, ga = /* @__PURE__ */ new Map(),
|
|
1414
|
+
}, ga = /* @__PURE__ */ new Map(), Vo = (e) => {
|
|
1415
1415
|
let t = e && e.env || {};
|
|
1416
1416
|
const { fetch: r, Request: n, Response: o } = t, i = [n, o, r];
|
|
1417
1417
|
let s = i.length, a = s, u, f, m = ga;
|
|
@@ -1419,12 +1419,12 @@ const Bo = (e) => {
|
|
|
1419
1419
|
u = i[a], f = m.get(u), f === void 0 && m.set(u, f = a ? /* @__PURE__ */ new Map() : ha(t)), m = f;
|
|
1420
1420
|
return f;
|
|
1421
1421
|
};
|
|
1422
|
-
|
|
1422
|
+
Vo();
|
|
1423
1423
|
const nn = {
|
|
1424
1424
|
http: js,
|
|
1425
1425
|
xhr: la,
|
|
1426
1426
|
fetch: {
|
|
1427
|
-
get:
|
|
1427
|
+
get: Vo
|
|
1428
1428
|
}
|
|
1429
1429
|
};
|
|
1430
1430
|
T.forEach(nn, (e, t) => {
|
|
@@ -1465,7 +1465,7 @@ function ba(e, t) {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
return o;
|
|
1467
1467
|
}
|
|
1468
|
-
const
|
|
1468
|
+
const Fo = {
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1471
1471
|
* @type {Function}
|
|
@@ -1482,7 +1482,7 @@ function wr(e) {
|
|
|
1482
1482
|
throw new Rt(null, e);
|
|
1483
1483
|
}
|
|
1484
1484
|
function _n(e) {
|
|
1485
|
-
return wr(e), e.headers = ye.from(e.headers), e.data = Sr.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1485
|
+
return wr(e), e.headers = ye.from(e.headers), e.data = Sr.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Fo.getAdapter(e.adapter || kt.adapter, e)(e).then(
|
|
1486
1486
|
function(n) {
|
|
1487
1487
|
return wr(e), n.data = Sr.call(e, e.transformResponse, n), n.headers = ye.from(n.headers), n;
|
|
1488
1488
|
},
|
|
@@ -1625,16 +1625,16 @@ let Qe = class {
|
|
|
1625
1625
|
this.interceptors.response.forEach(function(p) {
|
|
1626
1626
|
f.push(p.fulfilled, p.rejected);
|
|
1627
1627
|
});
|
|
1628
|
-
let m, A = 0,
|
|
1628
|
+
let m, A = 0, x;
|
|
1629
1629
|
if (!u) {
|
|
1630
1630
|
const g = [_n.bind(this), void 0];
|
|
1631
|
-
for (g.unshift(...a), g.push(...f),
|
|
1631
|
+
for (g.unshift(...a), g.push(...f), x = g.length, m = Promise.resolve(r); A < x; )
|
|
1632
1632
|
m = m.then(g[A++], g[A++]);
|
|
1633
1633
|
return m;
|
|
1634
1634
|
}
|
|
1635
|
-
|
|
1635
|
+
x = a.length;
|
|
1636
1636
|
let b = r;
|
|
1637
|
-
for (; A <
|
|
1637
|
+
for (; A < x; ) {
|
|
1638
1638
|
const g = a[A++], p = a[A++];
|
|
1639
1639
|
try {
|
|
1640
1640
|
b = g(b);
|
|
@@ -1648,7 +1648,7 @@ let Qe = class {
|
|
|
1648
1648
|
} catch (g) {
|
|
1649
1649
|
return Promise.reject(g);
|
|
1650
1650
|
}
|
|
1651
|
-
for (A = 0,
|
|
1651
|
+
for (A = 0, x = f.length; A < x; )
|
|
1652
1652
|
m = m.then(f[A++], f[A++]);
|
|
1653
1653
|
return m;
|
|
1654
1654
|
}
|
|
@@ -1767,7 +1767,7 @@ function wa(e) {
|
|
|
1767
1767
|
function va(e) {
|
|
1768
1768
|
return T.isObject(e) && e.isAxiosError === !0;
|
|
1769
1769
|
}
|
|
1770
|
-
const
|
|
1770
|
+
const Vr = {
|
|
1771
1771
|
Continue: 100,
|
|
1772
1772
|
SwitchingProtocols: 101,
|
|
1773
1773
|
Processing: 102,
|
|
@@ -1838,11 +1838,11 @@ const Fr = {
|
|
|
1838
1838
|
SslHandshakeFailed: 525,
|
|
1839
1839
|
InvalidSslCertificate: 526
|
|
1840
1840
|
};
|
|
1841
|
-
Object.entries(
|
|
1842
|
-
|
|
1841
|
+
Object.entries(Vr).forEach(([e, t]) => {
|
|
1842
|
+
Vr[t] = e;
|
|
1843
1843
|
});
|
|
1844
1844
|
function Wo(e) {
|
|
1845
|
-
const t = new Qe(e), r =
|
|
1845
|
+
const t = new Qe(e), r = xo(Qe.prototype.request, t);
|
|
1846
1846
|
return T.extend(r, Qe.prototype, t, { allOwnKeys: !0 }), T.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1847
1847
|
return Wo(Ze(e, o));
|
|
1848
1848
|
}, r;
|
|
@@ -1864,8 +1864,8 @@ le.isAxiosError = va;
|
|
|
1864
1864
|
le.mergeConfig = Ze;
|
|
1865
1865
|
le.AxiosHeaders = ye;
|
|
1866
1866
|
le.formToJSON = (e) => Uo(T.isHTMLForm(e) ? new FormData(e) : e);
|
|
1867
|
-
le.getAdapter =
|
|
1868
|
-
le.HttpStatusCode =
|
|
1867
|
+
le.getAdapter = Fo.getAdapter;
|
|
1868
|
+
le.HttpStatusCode = Vr;
|
|
1869
1869
|
le.default = le;
|
|
1870
1870
|
const {
|
|
1871
1871
|
Axios: Cd,
|
|
@@ -1874,8 +1874,8 @@ const {
|
|
|
1874
1874
|
isCancel: Rd,
|
|
1875
1875
|
CancelToken: _d,
|
|
1876
1876
|
VERSION: Od,
|
|
1877
|
-
all:
|
|
1878
|
-
Cancel:
|
|
1877
|
+
all: Id,
|
|
1878
|
+
Cancel: Pd,
|
|
1879
1879
|
isAxiosError: jd,
|
|
1880
1880
|
spread: Nd,
|
|
1881
1881
|
toFormData: Ld,
|
|
@@ -1884,28 +1884,36 @@ const {
|
|
|
1884
1884
|
formToJSON: Md,
|
|
1885
1885
|
getAdapter: Dd,
|
|
1886
1886
|
mergeConfig: Bd
|
|
1887
|
-
} = le,
|
|
1887
|
+
} = le, Ea = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE__KEYCLOAK_CLIENT_ID_AUTORIZACIONES: "autorizaciones", VITE__KEYCLOAK_CLIENT_ID_AUTORIZACIONES_PROD: "autorizaciones", VITE__KEYCLOAK_CLIENT_ID_AUTORIZACIONES_TEST: "autorizaciones", VITE__KEYCLOAK_CLIENT_SECRET_AUTORIZACIONES: "529d8bfcee374e94bcc641d0530674f9", VITE__KEYCLOAK_CLIENT_SECRET_AUTORIZACIONES_PROD: "9df2a9ebc5d24576a8d4c8c8fd82e356", VITE__KEYCLOAK_CLIENT_SECRET_AUTORIZACIONES_TEST: "7250c42d15b7403d830c73c240359044", VITE__URL__CERRAR_SESION_OPENID: "https://apiv2-test.coordinadora.com/autenticacion/cm-autenticacion-google-openid-ms/auth/logout", VITE__URL__INICIAR_SESION_OPENID: "https://apiv2-test.coordinadora.com/autenticacion/cm-autenticacion-google-openid-ms/auth/google", VITE__URL__OBTENER_PERMISOS_CON_CORREO: "https://autorizaciones-service-dev.coordinadora.com/permisos/generar", VITE__URL__OBTENER_PERMISOS_CON_CORREO_PROD: "https://autorizaciones-service.coordinadora.com/permisos/generar", VITE__URL__OBTENER_PERMISOS_CON_CORREO_TEST: "https://autorizaciones-service-test.coordinadora.com/permisos/generar", VITE__URL__OBTENER_TERMINALES: "https://api.coordinadora.com/cm-model-testing/api/v1/terminales", VITE__URL__TOKEN_KEYCLOAK: "https://cmautenticacion-dev.coordinadora.com/realms/dev-auth/protocol/openid-connect/token", VITE__URL__TOKEN_KEYCLOAK_PROD: "https://cmautenticacion-prod.coordinadora.com/realms/test-auth/protocol/openid-connect/token", VITE__URL__TOKEN_KEYCLOAK_TEST: "https://cmautenticacion-test.coordinadora.com/realms/test-auth/protocol/openid-connect/token" }, xa = {
|
|
1888
1888
|
dev: "",
|
|
1889
1889
|
test: "_TEST",
|
|
1890
1890
|
prod: "_PROD"
|
|
1891
1891
|
};
|
|
1892
|
-
function
|
|
1892
|
+
function Pt(e, t) {
|
|
1893
1893
|
const r = t ? `${e}${t}` : e;
|
|
1894
1894
|
if (typeof import.meta > "u") return "";
|
|
1895
|
-
const n =
|
|
1895
|
+
const n = Ea;
|
|
1896
1896
|
return n && typeof n == "object" ? n[r] ?? "" : "";
|
|
1897
1897
|
}
|
|
1898
1898
|
function on(e) {
|
|
1899
|
-
const t =
|
|
1900
|
-
|
|
1899
|
+
const t = xa[e], r = Pt("VITE__URL__TOKEN_KEYCLOAK", t), n = Pt("VITE__KEYCLOAK_CLIENT_ID_AUTORIZACIONES", t), o = Pt(
|
|
1900
|
+
"VITE__KEYCLOAK_CLIENT_SECRET_AUTORIZACIONES",
|
|
1901
|
+
t
|
|
1902
|
+
), i = Pt("VITE__URL__OBTENER_PERMISOS_CON_CORREO", t);
|
|
1903
|
+
return r && n && o && i ? {
|
|
1904
|
+
urlTokenKeycloak: r,
|
|
1905
|
+
clientIdAutorizaciones: n,
|
|
1906
|
+
clientSecretAutorizaciones: o,
|
|
1907
|
+
urlObtenerPermisosConCorreo: i
|
|
1908
|
+
} : e === "prod" ? on("test") : {
|
|
1901
1909
|
urlTokenKeycloak: r,
|
|
1902
1910
|
clientIdAutorizaciones: n,
|
|
1903
1911
|
clientSecretAutorizaciones: o,
|
|
1904
1912
|
urlObtenerPermisosConCorreo: i
|
|
1905
1913
|
};
|
|
1906
1914
|
}
|
|
1907
|
-
const
|
|
1908
|
-
const t = Date.now(), r =
|
|
1915
|
+
const In = {}, Ca = async (e) => {
|
|
1916
|
+
const t = Date.now(), r = In[e];
|
|
1909
1917
|
if (r && r.expiresAt > t) return r.token;
|
|
1910
1918
|
const n = on(e), { data: o } = await le.post(
|
|
1911
1919
|
n.urlTokenKeycloak,
|
|
@@ -1919,7 +1927,7 @@ const Pn = {}, Ca = async (e) => {
|
|
|
1919
1927
|
headers: { "Content-Type": "application/x-www-form-urlencoded" }
|
|
1920
1928
|
}
|
|
1921
1929
|
), i = (o.expires_in ?? 4200) * 1e3;
|
|
1922
|
-
return
|
|
1930
|
+
return In[e] = {
|
|
1923
1931
|
token: o.access_token,
|
|
1924
1932
|
expiresAt: t + i - 6e4
|
|
1925
1933
|
}, o.access_token;
|
|
@@ -1963,7 +1971,7 @@ const Pn = {}, Ca = async (e) => {
|
|
|
1963
1971
|
""
|
|
1964
1972
|
);
|
|
1965
1973
|
document.cookie = `${e}=${t}${n}`;
|
|
1966
|
-
},
|
|
1974
|
+
}, Vd = (e) => document.cookie = e + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;", Ia = (e) => (typeof e == "string" ? new URL(e) : e).hash.split("&").reduce(
|
|
1967
1975
|
(r, n) => {
|
|
1968
1976
|
const o = n.split("=");
|
|
1969
1977
|
return {
|
|
@@ -1972,24 +1980,24 @@ const Pn = {}, Ca = async (e) => {
|
|
|
1972
1980
|
};
|
|
1973
1981
|
},
|
|
1974
1982
|
{}
|
|
1975
|
-
),
|
|
1983
|
+
), Pa = "token", Ko = (e = Pa) => {
|
|
1976
1984
|
if (!(window != null && window.location)) return null;
|
|
1977
|
-
const t = new URL(window.location.href), r = t.searchParams.get(e), o =
|
|
1985
|
+
const t = new URL(window.location.href), r = t.searchParams.get(e), o = Ia(t)[e], i = Ra(e);
|
|
1978
1986
|
return {
|
|
1979
1987
|
hash: o,
|
|
1980
1988
|
params: r,
|
|
1981
1989
|
cookie: i
|
|
1982
1990
|
};
|
|
1983
|
-
},
|
|
1991
|
+
}, Fd = () => {
|
|
1984
1992
|
}, zd = () => {
|
|
1985
1993
|
}, Hd = () => {
|
|
1986
1994
|
};
|
|
1987
1995
|
function qo(e) {
|
|
1988
1996
|
if (!(this instanceof qo))
|
|
1989
1997
|
throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
|
|
1990
|
-
if (typeof e != "string" && !
|
|
1998
|
+
if (typeof e != "string" && !Er(e))
|
|
1991
1999
|
throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");
|
|
1992
|
-
if (
|
|
2000
|
+
if (Er(e)) {
|
|
1993
2001
|
const c = "oidcProvider" in e ? ["clientId"] : ["url", "realm", "clientId"];
|
|
1994
2002
|
for (const l of c)
|
|
1995
2003
|
if (!e[l])
|
|
@@ -2012,7 +2020,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2012
2020
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
2013
2021
|
t.didInitialize = !0, t.authenticated = !1, o = Z();
|
|
2014
2022
|
var l = ["default", "cordova", "cordova-native"];
|
|
2015
|
-
if (l.indexOf(c.adapter) > -1 ? r =
|
|
2023
|
+
if (l.indexOf(c.adapter) > -1 ? r = I(c.adapter) : typeof c.adapter == "object" ? r = c.adapter : window.Cordova || window.cordova ? r = I("cordova") : r = I(), typeof c.useNonce < "u" && (s = c.useNonce), typeof c.checkLoginIframe < "u" && (i.enable = c.checkLoginIframe), c.checkLoginIframeInterval && (i.interval = c.checkLoginIframeInterval), c.onLoad === "login-required" && (t.loginRequired = !0), c.responseMode)
|
|
2016
2024
|
if (c.responseMode === "query" || c.responseMode === "fragment")
|
|
2017
2025
|
t.responseMode = c.responseMode;
|
|
2018
2026
|
else
|
|
@@ -2046,7 +2054,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2046
2054
|
}).catch(function(w) {
|
|
2047
2055
|
S.setError(w);
|
|
2048
2056
|
});
|
|
2049
|
-
var
|
|
2057
|
+
var E = P();
|
|
2050
2058
|
function R() {
|
|
2051
2059
|
var w = function(L) {
|
|
2052
2060
|
L || (M.prompt = "none"), c.locale && (M.locale = c.locale), t.login(M).then(function() {
|
|
@@ -2102,11 +2110,11 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2102
2110
|
t.onAuthError && t.onAuthError(), c.onLoad ? R() : C.setError(O);
|
|
2103
2111
|
})) : c.onLoad ? R() : C.setSuccess();
|
|
2104
2112
|
}
|
|
2105
|
-
return
|
|
2113
|
+
return E.then(function() {
|
|
2106
2114
|
U().then(v).catch(function(w) {
|
|
2107
2115
|
S.setError(w);
|
|
2108
2116
|
});
|
|
2109
|
-
}),
|
|
2117
|
+
}), E.catch(function(w) {
|
|
2110
2118
|
S.setError(w);
|
|
2111
2119
|
}), S.promise;
|
|
2112
2120
|
}, t.login = function(c) {
|
|
@@ -2121,11 +2129,11 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2121
2129
|
return A(c, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
2122
2130
|
}
|
|
2123
2131
|
function A(c, l) {
|
|
2124
|
-
for (var S = f(c), C = new Array(c),
|
|
2125
|
-
C[
|
|
2132
|
+
for (var S = f(c), C = new Array(c), E = 0; E < c; E++)
|
|
2133
|
+
C[E] = l.charCodeAt(S[E] % l.length);
|
|
2126
2134
|
return String.fromCharCode.apply(null, C);
|
|
2127
2135
|
}
|
|
2128
|
-
async function
|
|
2136
|
+
async function x(c, l) {
|
|
2129
2137
|
if (c !== "S256")
|
|
2130
2138
|
throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${c}'.`);
|
|
2131
2139
|
const S = new Uint8Array(await Na(l));
|
|
@@ -2140,13 +2148,13 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2140
2148
|
return JSON.stringify(l);
|
|
2141
2149
|
}
|
|
2142
2150
|
t.createLoginUrl = async function(c) {
|
|
2143
|
-
var l = j(), S = j(), C = r.redirectUri(c),
|
|
2151
|
+
var l = j(), S = j(), C = r.redirectUri(c), E = {
|
|
2144
2152
|
state: l,
|
|
2145
2153
|
nonce: S,
|
|
2146
2154
|
redirectUri: encodeURIComponent(C),
|
|
2147
2155
|
loginOptions: c
|
|
2148
2156
|
};
|
|
2149
|
-
c && c.prompt && (
|
|
2157
|
+
c && c.prompt && (E.prompt = c.prompt);
|
|
2150
2158
|
var R;
|
|
2151
2159
|
c && c.action == "register" ? R = t.endpoints.register() : R = t.endpoints.authorize();
|
|
2152
2160
|
var v = c && c.scope || t.scope;
|
|
@@ -2158,12 +2166,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2158
2166
|
}
|
|
2159
2167
|
if ((c && c.acrValues || t.acrValues) && (w += "&acr_values=" + encodeURIComponent(c.acrValues || t.acrValues)), t.pkceMethod)
|
|
2160
2168
|
try {
|
|
2161
|
-
const M = m(96), L = await
|
|
2162
|
-
|
|
2169
|
+
const M = m(96), L = await x(t.pkceMethod, M);
|
|
2170
|
+
E.pkceCodeVerifier = M, w += "&code_challenge=" + L, w += "&code_challenge_method=" + t.pkceMethod;
|
|
2163
2171
|
} catch (M) {
|
|
2164
2172
|
throw new Error("Failed to generate PKCE challenge.", { cause: M });
|
|
2165
2173
|
}
|
|
2166
|
-
return o.add(
|
|
2174
|
+
return o.add(E), w;
|
|
2167
2175
|
}, t.logout = function(c) {
|
|
2168
2176
|
return r.logout(c);
|
|
2169
2177
|
}, t.createLogoutUrl = function(c) {
|
|
@@ -2220,8 +2228,8 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2220
2228
|
return l.setError(), l.promise;
|
|
2221
2229
|
c = c || 5;
|
|
2222
2230
|
var S = function() {
|
|
2223
|
-
var
|
|
2224
|
-
if (c == -1 ? (
|
|
2231
|
+
var E = !1;
|
|
2232
|
+
if (c == -1 ? (E = !0, a("[KEYCLOAK] Refreshing token: forced refresh")) : (!t.tokenParsed || t.isTokenExpired(c)) && (E = !0, a("[KEYCLOAK] Refreshing token: token expired")), !E)
|
|
2225
2233
|
l.setSuccess(!1);
|
|
2226
2234
|
else {
|
|
2227
2235
|
var R = "grant_type=refresh_token&refresh_token=" + t.refreshToken, v = t.endpoints.token();
|
|
@@ -2250,8 +2258,8 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2250
2258
|
var C = d();
|
|
2251
2259
|
C.then(function() {
|
|
2252
2260
|
S();
|
|
2253
|
-
}).catch(function(
|
|
2254
|
-
l.setError(
|
|
2261
|
+
}).catch(function(E) {
|
|
2262
|
+
l.setError(E);
|
|
2255
2263
|
});
|
|
2256
2264
|
} else
|
|
2257
2265
|
S();
|
|
@@ -2267,9 +2275,9 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2267
2275
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
2268
2276
|
}
|
|
2269
2277
|
function y(c, l) {
|
|
2270
|
-
var S = c.code, C = c.error,
|
|
2278
|
+
var S = c.code, C = c.error, E = c.prompt, R = (/* @__PURE__ */ new Date()).getTime();
|
|
2271
2279
|
if (c.kc_action_status && t.onActionUpdate && t.onActionUpdate(c.kc_action_status, c.kc_action), C) {
|
|
2272
|
-
if (
|
|
2280
|
+
if (E != "none")
|
|
2273
2281
|
if (c.error_description && c.error_description === "authentication_expired")
|
|
2274
2282
|
t.login(c.loginOptions);
|
|
2275
2283
|
else {
|
|
@@ -2295,7 +2303,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2295
2303
|
R = (R + (/* @__PURE__ */ new Date()).getTime()) / 2, D(q, N, de, R), s && t.idTokenParsed && t.idTokenParsed.nonce != c.storedNonce ? (a("[KEYCLOAK] Invalid nonce, clearing token"), t.clearToken(), l && l.setError()) : he && (t.onAuthSuccess && t.onAuthSuccess(), l && l.setSuccess());
|
|
2296
2304
|
}
|
|
2297
2305
|
}
|
|
2298
|
-
function
|
|
2306
|
+
function P() {
|
|
2299
2307
|
var c = z(), l;
|
|
2300
2308
|
typeof e == "string" && (l = e);
|
|
2301
2309
|
function S(v) {
|
|
@@ -2352,7 +2360,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2352
2360
|
var C = new XMLHttpRequest();
|
|
2353
2361
|
C.open("GET", l, !0), C.setRequestHeader("Accept", "application/json"), C.onreadystatechange = function() {
|
|
2354
2362
|
if (C.readyState == 4)
|
|
2355
|
-
if (C.status == 200 ||
|
|
2363
|
+
if (C.status == 200 || F(C)) {
|
|
2356
2364
|
var v = JSON.parse(C.responseText);
|
|
2357
2365
|
t.authServerUrl = v["auth-server-url"], t.realm = v.realm, t.clientId = v.resource, S(null), c.setSuccess();
|
|
2358
2366
|
} else
|
|
@@ -2360,34 +2368,34 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2360
2368
|
}, C.send();
|
|
2361
2369
|
} else {
|
|
2362
2370
|
t.clientId = e.clientId;
|
|
2363
|
-
var
|
|
2364
|
-
if (!
|
|
2371
|
+
var E = e.oidcProvider;
|
|
2372
|
+
if (!E)
|
|
2365
2373
|
t.authServerUrl = e.url, t.realm = e.realm, S(null), c.setSuccess();
|
|
2366
|
-
else if (typeof
|
|
2374
|
+
else if (typeof E == "string") {
|
|
2367
2375
|
var R;
|
|
2368
|
-
|
|
2376
|
+
E.charAt(E.length - 1) == "/" ? R = E + ".well-known/openid-configuration" : R = E + "/.well-known/openid-configuration";
|
|
2369
2377
|
var C = new XMLHttpRequest();
|
|
2370
2378
|
C.open("GET", R, !0), C.setRequestHeader("Accept", "application/json"), C.onreadystatechange = function() {
|
|
2371
2379
|
if (C.readyState == 4)
|
|
2372
|
-
if (C.status == 200 ||
|
|
2380
|
+
if (C.status == 200 || F(C)) {
|
|
2373
2381
|
var w = JSON.parse(C.responseText);
|
|
2374
2382
|
S(w), c.setSuccess();
|
|
2375
2383
|
} else
|
|
2376
2384
|
c.setError();
|
|
2377
2385
|
}, C.send();
|
|
2378
2386
|
} else
|
|
2379
|
-
S(
|
|
2387
|
+
S(E), c.setSuccess();
|
|
2380
2388
|
}
|
|
2381
2389
|
return c.promise;
|
|
2382
2390
|
}
|
|
2383
|
-
function
|
|
2391
|
+
function F(c) {
|
|
2384
2392
|
return c.status == 0 && c.responseText && c.responseURL.startsWith("file:");
|
|
2385
2393
|
}
|
|
2386
2394
|
function D(c, l, S, C) {
|
|
2387
2395
|
if (t.tokenTimeoutHandle && (clearTimeout(t.tokenTimeoutHandle), t.tokenTimeoutHandle = null), l ? (t.refreshToken = l, t.refreshTokenParsed = vr(l)) : (delete t.refreshToken, delete t.refreshTokenParsed), S ? (t.idToken = S, t.idTokenParsed = vr(S)) : (delete t.idToken, delete t.idTokenParsed), c) {
|
|
2388
2396
|
if (t.token = c, t.tokenParsed = vr(c), t.sessionId = t.tokenParsed.sid, t.authenticated = !0, t.subject = t.tokenParsed.sub, t.realmAccess = t.tokenParsed.realm_access, t.resourceAccess = t.tokenParsed.resource_access, C && (t.timeSkew = Math.floor(C / 1e3) - t.tokenParsed.iat), t.timeSkew != null && (a("[KEYCLOAK] Estimated time difference between browser and server is " + t.timeSkew + " seconds"), t.onTokenExpired)) {
|
|
2389
|
-
var
|
|
2390
|
-
a("[KEYCLOAK] Token expires in " + Math.round(
|
|
2397
|
+
var E = (t.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + t.timeSkew) * 1e3;
|
|
2398
|
+
a("[KEYCLOAK] Token expires in " + Math.round(E / 1e3) + " s"), E <= 0 ? t.onTokenExpired() : t.tokenTimeoutHandle = setTimeout(t.onTokenExpired, E);
|
|
2391
2399
|
}
|
|
2392
2400
|
} else
|
|
2393
2401
|
delete t.token, delete t.tokenParsed, delete t.subject, delete t.realmAccess, delete t.resourceAccess, t.authenticated = !1;
|
|
@@ -2418,22 +2426,22 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2418
2426
|
break;
|
|
2419
2427
|
}
|
|
2420
2428
|
l.push("error"), l.push("error_description"), l.push("error_uri");
|
|
2421
|
-
var S = c.indexOf("?"), C = c.indexOf("#"),
|
|
2422
|
-
if (t.responseMode === "query" && S !== -1 ? (
|
|
2429
|
+
var S = c.indexOf("?"), C = c.indexOf("#"), E, R;
|
|
2430
|
+
if (t.responseMode === "query" && S !== -1 ? (E = c.substring(0, S), R = W(c.substring(S + 1, C !== -1 ? C : c.length), l), R.paramsString !== "" && (E += "?" + R.paramsString), C !== -1 && (E += c.substring(C))) : t.responseMode === "fragment" && C !== -1 && (E = c.substring(0, C), R = W(c.substring(C + 1), l), R.paramsString !== "" && (E += "#" + R.paramsString)), R && R.oauthParams) {
|
|
2423
2431
|
if (t.flow === "standard" || t.flow === "hybrid") {
|
|
2424
2432
|
if ((R.oauthParams.code || R.oauthParams.error) && R.oauthParams.state)
|
|
2425
|
-
return R.oauthParams.newUrl =
|
|
2433
|
+
return R.oauthParams.newUrl = E, R.oauthParams;
|
|
2426
2434
|
} else if (t.flow === "implicit" && (R.oauthParams.access_token || R.oauthParams.error) && R.oauthParams.state)
|
|
2427
|
-
return R.oauthParams.newUrl =
|
|
2435
|
+
return R.oauthParams.newUrl = E, R.oauthParams;
|
|
2428
2436
|
}
|
|
2429
2437
|
}
|
|
2430
2438
|
function W(c, l) {
|
|
2431
2439
|
for (var S = c.split("&"), C = {
|
|
2432
2440
|
paramsString: "",
|
|
2433
2441
|
oauthParams: {}
|
|
2434
|
-
},
|
|
2435
|
-
var R = S[
|
|
2436
|
-
l.indexOf(v) !== -1 ? C.oauthParams[v] = S[
|
|
2442
|
+
}, E = 0; E < S.length; E++) {
|
|
2443
|
+
var R = S[E].indexOf("="), v = S[E].slice(0, R);
|
|
2444
|
+
l.indexOf(v) !== -1 ? C.oauthParams[v] = S[E].slice(R + 1) : (C.paramsString !== "" && (C.paramsString += "&"), C.paramsString += S[E]);
|
|
2437
2445
|
}
|
|
2438
2446
|
return C;
|
|
2439
2447
|
}
|
|
@@ -2451,12 +2459,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2451
2459
|
}), c;
|
|
2452
2460
|
}
|
|
2453
2461
|
function Q(c, l, S) {
|
|
2454
|
-
var C = null,
|
|
2462
|
+
var C = null, E = new Promise(function(R, v) {
|
|
2455
2463
|
C = setTimeout(function() {
|
|
2456
2464
|
v({ error: S });
|
|
2457
2465
|
}, l);
|
|
2458
2466
|
});
|
|
2459
|
-
return Promise.race([c,
|
|
2467
|
+
return Promise.race([c, E]).finally(function() {
|
|
2460
2468
|
clearTimeout(C);
|
|
2461
2469
|
});
|
|
2462
2470
|
}
|
|
@@ -2466,17 +2474,17 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
2466
2474
|
return c.setSuccess(), c.promise;
|
|
2467
2475
|
var l = document.createElement("iframe");
|
|
2468
2476
|
i.iframe = l, l.onload = function() {
|
|
2469
|
-
var
|
|
2470
|
-
|
|
2477
|
+
var E = t.endpoints.authorize();
|
|
2478
|
+
E.charAt(0) === "/" ? i.iframeOrigin = p() : i.iframeOrigin = E.substring(0, E.indexOf("/", 8)), c.setSuccess();
|
|
2471
2479
|
};
|
|
2472
2480
|
var S = t.endpoints.checkSessionIframe();
|
|
2473
2481
|
l.setAttribute("src", S), l.setAttribute("sandbox", "allow-storage-access-by-user-activation allow-scripts allow-same-origin"), l.setAttribute("title", "keycloak-session-iframe"), l.style.display = "none", document.body.appendChild(l);
|
|
2474
|
-
var C = function(
|
|
2475
|
-
if (!(
|
|
2476
|
-
|
|
2482
|
+
var C = function(E) {
|
|
2483
|
+
if (!(E.origin !== i.iframeOrigin || i.iframe.contentWindow !== E.source) && (E.data == "unchanged" || E.data == "changed" || E.data == "error")) {
|
|
2484
|
+
E.data != "unchanged" && t.clearToken();
|
|
2477
2485
|
for (var R = i.callbackList.splice(0, i.callbackList.length), v = R.length - 1; v >= 0; --v) {
|
|
2478
2486
|
var w = R[v];
|
|
2479
|
-
|
|
2487
|
+
E.data == "error" ? w.setError() : w.setSuccess(E.data == "unchanged");
|
|
2480
2488
|
}
|
|
2481
2489
|
}
|
|
2482
2490
|
};
|
|
@@ -2520,7 +2528,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2520
2528
|
c.setSuccess();
|
|
2521
2529
|
return Q(c.promise, t.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
|
|
2522
2530
|
}
|
|
2523
|
-
function
|
|
2531
|
+
function I(c) {
|
|
2524
2532
|
if (!c || c == "default")
|
|
2525
2533
|
return {
|
|
2526
2534
|
login: async function(v) {
|
|
@@ -2571,7 +2579,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2571
2579
|
return Object.keys(v).reduce(function(w, O) {
|
|
2572
2580
|
return w.push(O + "=" + v[O]), w;
|
|
2573
2581
|
}, []).join(",");
|
|
2574
|
-
},
|
|
2582
|
+
}, E = function(v) {
|
|
2575
2583
|
var w = S(v);
|
|
2576
2584
|
return w.location = "no", v && v.prompt == "none" && (w.hidden = "yes"), C(w);
|
|
2577
2585
|
}, R = function() {
|
|
@@ -2579,7 +2587,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2579
2587
|
};
|
|
2580
2588
|
return {
|
|
2581
2589
|
login: async function(v) {
|
|
2582
|
-
var w = z(), O =
|
|
2590
|
+
var w = z(), O = E(v), M = await t.createLoginUrl(v), L = l(M, "_blank", O), q = !1, N = !1, de = function() {
|
|
2583
2591
|
N = !0, L.close();
|
|
2584
2592
|
};
|
|
2585
2593
|
return L.addEventListener("loadstart", function(he) {
|
|
@@ -2611,7 +2619,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2611
2619
|
}), w.promise;
|
|
2612
2620
|
},
|
|
2613
2621
|
register: async function(v) {
|
|
2614
|
-
var w = z(), O = await t.createRegisterUrl(), M =
|
|
2622
|
+
var w = z(), O = await t.createRegisterUrl(), M = E(v), L = l(O, "_blank", M);
|
|
2615
2623
|
return L.addEventListener("loadstart", function(q) {
|
|
2616
2624
|
if (q.url.indexOf(R()) == 0) {
|
|
2617
2625
|
L.close();
|
|
@@ -2672,7 +2680,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2672
2680
|
};
|
|
2673
2681
|
throw "invalid adapter type: " + c;
|
|
2674
2682
|
}
|
|
2675
|
-
const
|
|
2683
|
+
const V = "kc-callback-";
|
|
2676
2684
|
var B = function() {
|
|
2677
2685
|
if (!(this instanceof B))
|
|
2678
2686
|
return new B();
|
|
@@ -2681,7 +2689,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2681
2689
|
function l() {
|
|
2682
2690
|
const R = Date.now();
|
|
2683
2691
|
for (const [v, w] of C()) {
|
|
2684
|
-
const O =
|
|
2692
|
+
const O = E(w);
|
|
2685
2693
|
(O === null || O < R) && localStorage.removeItem(v);
|
|
2686
2694
|
}
|
|
2687
2695
|
}
|
|
@@ -2690,25 +2698,25 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2690
2698
|
localStorage.removeItem(R);
|
|
2691
2699
|
}
|
|
2692
2700
|
function C() {
|
|
2693
|
-
return Object.entries(localStorage).filter(([R]) => R.startsWith(
|
|
2701
|
+
return Object.entries(localStorage).filter(([R]) => R.startsWith(V));
|
|
2694
2702
|
}
|
|
2695
|
-
function
|
|
2703
|
+
function E(R) {
|
|
2696
2704
|
let v;
|
|
2697
2705
|
try {
|
|
2698
2706
|
v = JSON.parse(R);
|
|
2699
2707
|
} catch {
|
|
2700
2708
|
return null;
|
|
2701
2709
|
}
|
|
2702
|
-
return
|
|
2710
|
+
return Er(v) && "expires" in v && typeof v.expires == "number" ? v.expires : null;
|
|
2703
2711
|
}
|
|
2704
2712
|
c.get = function(R) {
|
|
2705
2713
|
if (R) {
|
|
2706
|
-
var v =
|
|
2714
|
+
var v = V + R, w = localStorage.getItem(v);
|
|
2707
2715
|
return w && (localStorage.removeItem(v), w = JSON.parse(w)), l(), w;
|
|
2708
2716
|
}
|
|
2709
2717
|
}, c.add = function(R) {
|
|
2710
2718
|
l();
|
|
2711
|
-
const v =
|
|
2719
|
+
const v = V + R.state, w = JSON.stringify({
|
|
2712
2720
|
...R,
|
|
2713
2721
|
// Set the expiry time to 1 hour from now.
|
|
2714
2722
|
expires: Date.now() + 3600 * 1e3
|
|
@@ -2723,30 +2731,30 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
2723
2731
|
if (!(this instanceof Y))
|
|
2724
2732
|
return new Y();
|
|
2725
2733
|
var c = this;
|
|
2726
|
-
c.get = function(
|
|
2727
|
-
if (
|
|
2728
|
-
var R = S(
|
|
2729
|
-
if (C(
|
|
2734
|
+
c.get = function(E) {
|
|
2735
|
+
if (E) {
|
|
2736
|
+
var R = S(V + E);
|
|
2737
|
+
if (C(V + E, "", l(-100)), R)
|
|
2730
2738
|
return JSON.parse(R);
|
|
2731
2739
|
}
|
|
2732
|
-
}, c.add = function(
|
|
2733
|
-
C(
|
|
2734
|
-
}, c.removeItem = function(
|
|
2735
|
-
C(
|
|
2740
|
+
}, c.add = function(E) {
|
|
2741
|
+
C(V + E.state, JSON.stringify(E), l(60));
|
|
2742
|
+
}, c.removeItem = function(E) {
|
|
2743
|
+
C(E, "", l(-100));
|
|
2736
2744
|
};
|
|
2737
|
-
var l = function(
|
|
2745
|
+
var l = function(E) {
|
|
2738
2746
|
var R = /* @__PURE__ */ new Date();
|
|
2739
|
-
return R.setTime(R.getTime() +
|
|
2740
|
-
}, S = function(
|
|
2741
|
-
for (var R =
|
|
2747
|
+
return R.setTime(R.getTime() + E * 60 * 1e3), R;
|
|
2748
|
+
}, S = function(E) {
|
|
2749
|
+
for (var R = E + "=", v = document.cookie.split(";"), w = 0; w < v.length; w++) {
|
|
2742
2750
|
for (var O = v[w]; O.charAt(0) == " "; )
|
|
2743
2751
|
O = O.substring(1);
|
|
2744
2752
|
if (O.indexOf(R) == 0)
|
|
2745
2753
|
return O.substring(R.length, O.length);
|
|
2746
2754
|
}
|
|
2747
2755
|
return "";
|
|
2748
|
-
}, C = function(
|
|
2749
|
-
var w =
|
|
2756
|
+
}, C = function(E, R, v) {
|
|
2757
|
+
var w = E + "=" + R + "; expires=" + v.toUTCString() + "; ";
|
|
2750
2758
|
document.cookie = w;
|
|
2751
2759
|
};
|
|
2752
2760
|
};
|
|
@@ -2815,7 +2823,7 @@ function Ua(e) {
|
|
|
2815
2823
|
return n.length < 2 && (n = "0" + n), "%" + n;
|
|
2816
2824
|
}));
|
|
2817
2825
|
}
|
|
2818
|
-
function
|
|
2826
|
+
function Er(e) {
|
|
2819
2827
|
return typeof e == "object" && e !== null;
|
|
2820
2828
|
}
|
|
2821
2829
|
const $a = {
|
|
@@ -2828,6 +2836,11 @@ const $a = {
|
|
|
2828
2836
|
url: "https://cmautenticacion-test.coordinadora.com",
|
|
2829
2837
|
clientId: "sigoo-cli",
|
|
2830
2838
|
realm: "autenticacion_usuarios"
|
|
2839
|
+
},
|
|
2840
|
+
prod: {
|
|
2841
|
+
url: "https://cmautenticacion-prod.coordinadora.com",
|
|
2842
|
+
clientId: "sigo-cli",
|
|
2843
|
+
realm: "autenticacion_usuarios"
|
|
2831
2844
|
}
|
|
2832
2845
|
};
|
|
2833
2846
|
function Wd(e = "dev") {
|
|
@@ -2851,10 +2864,10 @@ var jt = { exports: {} }, gt = {};
|
|
|
2851
2864
|
* This source code is licensed under the MIT license found in the
|
|
2852
2865
|
* LICENSE file in the root directory of this source tree.
|
|
2853
2866
|
*/
|
|
2854
|
-
var
|
|
2867
|
+
var Pn;
|
|
2855
2868
|
function Da() {
|
|
2856
|
-
if (
|
|
2857
|
-
|
|
2869
|
+
if (Pn) return gt;
|
|
2870
|
+
Pn = 1;
|
|
2858
2871
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
2859
2872
|
function r(n, o, i) {
|
|
2860
2873
|
var s = null;
|
|
@@ -2894,9 +2907,9 @@ function Ba() {
|
|
|
2894
2907
|
switch (l) {
|
|
2895
2908
|
case y:
|
|
2896
2909
|
return "Fragment";
|
|
2897
|
-
case
|
|
2910
|
+
case F:
|
|
2898
2911
|
return "Profiler";
|
|
2899
|
-
case
|
|
2912
|
+
case P:
|
|
2900
2913
|
return "StrictMode";
|
|
2901
2914
|
case $:
|
|
2902
2915
|
return "Suspense";
|
|
@@ -2941,11 +2954,11 @@ function Ba() {
|
|
|
2941
2954
|
}
|
|
2942
2955
|
if (S) {
|
|
2943
2956
|
S = console;
|
|
2944
|
-
var C = S.error,
|
|
2957
|
+
var C = S.error, E = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
2945
2958
|
return C.call(
|
|
2946
2959
|
S,
|
|
2947
2960
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2948
|
-
|
|
2961
|
+
E
|
|
2949
2962
|
), t(l);
|
|
2950
2963
|
}
|
|
2951
2964
|
}
|
|
@@ -2992,14 +3005,14 @@ function Ba() {
|
|
|
2992
3005
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2993
3006
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
2994
3007
|
}
|
|
2995
|
-
function f(l, S, C,
|
|
3008
|
+
function f(l, S, C, E, R, v) {
|
|
2996
3009
|
var w = C.ref;
|
|
2997
3010
|
return l = {
|
|
2998
3011
|
$$typeof: g,
|
|
2999
3012
|
type: l,
|
|
3000
3013
|
key: S,
|
|
3001
3014
|
props: C,
|
|
3002
|
-
_owner:
|
|
3015
|
+
_owner: E
|
|
3003
3016
|
}, (w !== void 0 ? w : null) !== null ? Object.defineProperty(l, "ref", {
|
|
3004
3017
|
enumerable: !1,
|
|
3005
3018
|
get: u
|
|
@@ -3025,13 +3038,13 @@ function Ba() {
|
|
|
3025
3038
|
value: v
|
|
3026
3039
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
3027
3040
|
}
|
|
3028
|
-
function m(l, S, C,
|
|
3041
|
+
function m(l, S, C, E, R, v) {
|
|
3029
3042
|
var w = S.children;
|
|
3030
3043
|
if (w !== void 0)
|
|
3031
|
-
if (
|
|
3032
|
-
if (
|
|
3033
|
-
for (
|
|
3034
|
-
A(w[
|
|
3044
|
+
if (E)
|
|
3045
|
+
if (I(w)) {
|
|
3046
|
+
for (E = 0; E < w.length; E++)
|
|
3047
|
+
A(w[E]);
|
|
3035
3048
|
Object.freeze && Object.freeze(w);
|
|
3036
3049
|
} else
|
|
3037
3050
|
console.error(
|
|
@@ -3043,18 +3056,18 @@ function Ba() {
|
|
|
3043
3056
|
var O = Object.keys(S).filter(function(L) {
|
|
3044
3057
|
return L !== "key";
|
|
3045
3058
|
});
|
|
3046
|
-
|
|
3059
|
+
E = 0 < O.length ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}", c[w + E] || (O = 0 < O.length ? "{" + O.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
3047
3060
|
`A props object containing a "key" prop is being spread into JSX:
|
|
3048
3061
|
let props = %s;
|
|
3049
3062
|
<%s {...props} />
|
|
3050
3063
|
React keys must be passed directly to JSX without using spread:
|
|
3051
3064
|
let props = %s;
|
|
3052
3065
|
<%s key={someKey} {...props} />`,
|
|
3053
|
-
|
|
3066
|
+
E,
|
|
3054
3067
|
w,
|
|
3055
3068
|
O,
|
|
3056
3069
|
w
|
|
3057
|
-
), c[w +
|
|
3070
|
+
), c[w + E] = !0);
|
|
3058
3071
|
}
|
|
3059
3072
|
if (w = null, C !== void 0 && (r(C), w = "" + C), s(S) && (r(S.key), w = "" + S.key), "key" in S) {
|
|
3060
3073
|
C = {};
|
|
@@ -3074,12 +3087,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3074
3087
|
);
|
|
3075
3088
|
}
|
|
3076
3089
|
function A(l) {
|
|
3077
|
-
|
|
3090
|
+
x(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === Q && (l._payload.status === "fulfilled" ? x(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
|
|
3078
3091
|
}
|
|
3079
|
-
function
|
|
3092
|
+
function x(l) {
|
|
3080
3093
|
return typeof l == "object" && l !== null && l.$$typeof === g;
|
|
3081
3094
|
}
|
|
3082
|
-
var b = Lr, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"),
|
|
3095
|
+
var b = Lr, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), j = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), d = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, I = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
3083
3096
|
return null;
|
|
3084
3097
|
};
|
|
3085
3098
|
b = {
|
|
@@ -3090,35 +3103,35 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3090
3103
|
var B, Y = {}, Z = b.react_stack_bottom_frame.bind(
|
|
3091
3104
|
b,
|
|
3092
3105
|
i
|
|
3093
|
-
)(), pe =
|
|
3106
|
+
)(), pe = V(n(i)), c = {};
|
|
3094
3107
|
yt.Fragment = y, yt.jsx = function(l, S, C) {
|
|
3095
|
-
var
|
|
3108
|
+
var E = 1e4 > d.recentlyCreatedOwnerStacks++;
|
|
3096
3109
|
return m(
|
|
3097
3110
|
l,
|
|
3098
3111
|
S,
|
|
3099
3112
|
C,
|
|
3100
3113
|
!1,
|
|
3101
|
-
|
|
3102
|
-
|
|
3114
|
+
E ? Error("react-stack-top-frame") : Z,
|
|
3115
|
+
E ? V(n(l)) : pe
|
|
3103
3116
|
);
|
|
3104
3117
|
}, yt.jsxs = function(l, S, C) {
|
|
3105
|
-
var
|
|
3118
|
+
var E = 1e4 > d.recentlyCreatedOwnerStacks++;
|
|
3106
3119
|
return m(
|
|
3107
3120
|
l,
|
|
3108
3121
|
S,
|
|
3109
3122
|
C,
|
|
3110
3123
|
!0,
|
|
3111
|
-
|
|
3112
|
-
|
|
3124
|
+
E ? Error("react-stack-top-frame") : Z,
|
|
3125
|
+
E ? V(n(l)) : pe
|
|
3113
3126
|
);
|
|
3114
3127
|
};
|
|
3115
3128
|
})()), yt;
|
|
3116
3129
|
}
|
|
3117
3130
|
var Nn;
|
|
3118
|
-
function
|
|
3131
|
+
function Va() {
|
|
3119
3132
|
return Nn || (Nn = 1, process.env.NODE_ENV === "production" ? jt.exports = Da() : jt.exports = Ba()), jt.exports;
|
|
3120
3133
|
}
|
|
3121
|
-
var h =
|
|
3134
|
+
var h = Va();
|
|
3122
3135
|
const Jo = Ci(null);
|
|
3123
3136
|
function Kd({
|
|
3124
3137
|
keycloak: e,
|
|
@@ -3135,8 +3148,8 @@ function Qo() {
|
|
|
3135
3148
|
return e;
|
|
3136
3149
|
}
|
|
3137
3150
|
new TextEncoder();
|
|
3138
|
-
const
|
|
3139
|
-
function
|
|
3151
|
+
const Fr = new TextDecoder();
|
|
3152
|
+
function Fa(e) {
|
|
3140
3153
|
if (Uint8Array.fromBase64)
|
|
3141
3154
|
return Uint8Array.fromBase64(e);
|
|
3142
3155
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
@@ -3146,13 +3159,13 @@ function Va(e) {
|
|
|
3146
3159
|
}
|
|
3147
3160
|
function za(e) {
|
|
3148
3161
|
if (Uint8Array.fromBase64)
|
|
3149
|
-
return Uint8Array.fromBase64(typeof e == "string" ? e :
|
|
3162
|
+
return Uint8Array.fromBase64(typeof e == "string" ? e : Fr.decode(e), {
|
|
3150
3163
|
alphabet: "base64url"
|
|
3151
3164
|
});
|
|
3152
3165
|
let t = e;
|
|
3153
|
-
t instanceof Uint8Array && (t =
|
|
3166
|
+
t instanceof Uint8Array && (t = Fr.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
3154
3167
|
try {
|
|
3155
|
-
return
|
|
3168
|
+
return Fa(t);
|
|
3156
3169
|
} catch {
|
|
3157
3170
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
3158
3171
|
}
|
|
@@ -3204,7 +3217,7 @@ function Wt(e) {
|
|
|
3204
3217
|
}
|
|
3205
3218
|
let o;
|
|
3206
3219
|
try {
|
|
3207
|
-
o = JSON.parse(
|
|
3220
|
+
o = JSON.parse(Fr.decode(n));
|
|
3208
3221
|
} catch {
|
|
3209
3222
|
throw new De("Failed to parse the decoded payload as JSON");
|
|
3210
3223
|
}
|
|
@@ -3838,14 +3851,14 @@ let Kr = Oi(
|
|
|
3838
3851
|
Ga,
|
|
3839
3852
|
ec
|
|
3840
3853
|
);
|
|
3841
|
-
Kr =
|
|
3854
|
+
Kr = Ii(Kr);
|
|
3842
3855
|
const Un = (e) => {
|
|
3843
3856
|
let t;
|
|
3844
3857
|
const r = /* @__PURE__ */ new Set(), n = (f, m) => {
|
|
3845
3858
|
const A = typeof f == "function" ? f(t) : f;
|
|
3846
3859
|
if (!Object.is(A, t)) {
|
|
3847
|
-
const
|
|
3848
|
-
t = m ?? (typeof A != "object" || A === null) ? A : Object.assign({}, t, A), r.forEach((b) => b(t,
|
|
3860
|
+
const x = t;
|
|
3861
|
+
t = m ?? (typeof A != "object" || A === null) ? A : Object.assign({}, t, A), r.forEach((b) => b(t, x));
|
|
3849
3862
|
}
|
|
3850
3863
|
}, o = () => t, a = { setState: n, getState: o, getInitialState: () => u, subscribe: (f) => (r.add(f), () => r.delete(f)) }, u = t = e(n, o, a);
|
|
3851
3864
|
return a;
|
|
@@ -3880,13 +3893,13 @@ const $n = (e) => {
|
|
|
3880
3893
|
});
|
|
3881
3894
|
}
|
|
3882
3895
|
})
|
|
3883
|
-
), Xo = Kt,
|
|
3896
|
+
), Xo = Kt, Ve = (e, t) => {
|
|
3884
3897
|
const r = Xo(
|
|
3885
3898
|
(s) => s.toolbar.includes(e) || s.cargando.includes(e)
|
|
3886
|
-
), n =
|
|
3899
|
+
), n = xe(
|
|
3887
3900
|
(s) => Kt.getState().set(e, s, t),
|
|
3888
3901
|
[e, t]
|
|
3889
|
-
), o =
|
|
3902
|
+
), o = xe(
|
|
3890
3903
|
() => Kt.getState().toggle(e, t),
|
|
3891
3904
|
[e, t]
|
|
3892
3905
|
);
|
|
@@ -3908,7 +3921,7 @@ const $n = (e) => {
|
|
|
3908
3921
|
}) => {
|
|
3909
3922
|
const [n, o] = Gt(!1), i = Ye(
|
|
3910
3923
|
({ seleccion: u }) => t === (u == null ? void 0 : u.menu) && (u == null ? void 0 : u.submenu) === e.id
|
|
3911
|
-
), s =
|
|
3924
|
+
), s = xe(
|
|
3912
3925
|
(u) => {
|
|
3913
3926
|
o(((u == null ? void 0 : u.offsetWidth) ?? 0) < ((u == null ? void 0 : u.scrollWidth) ?? 0));
|
|
3914
3927
|
},
|
|
@@ -3921,7 +3934,7 @@ const $n = (e) => {
|
|
|
3921
3934
|
const u = e.icono;
|
|
3922
3935
|
return /* @__PURE__ */ h.jsx(ut, { children: /* @__PURE__ */ h.jsx(u, { color: i ? "primary" : "inherit" }) });
|
|
3923
3936
|
}, [i, e.icono]);
|
|
3924
|
-
return /* @__PURE__ */ h.jsx(
|
|
3937
|
+
return /* @__PURE__ */ h.jsx(Ft, { title: n ? e.nombre : "", placement: "right", arrow: !0, children: /* @__PURE__ */ h.jsx(Re, { disablePadding: !0, children: /* @__PURE__ */ h.jsxs(
|
|
3925
3938
|
_e,
|
|
3926
3939
|
{
|
|
3927
3940
|
sx: [{ px: 3 }],
|
|
@@ -3960,7 +3973,7 @@ const $n = (e) => {
|
|
|
3960
3973
|
}) => {
|
|
3961
3974
|
const [n, o] = Gt(!1), i = Ye(
|
|
3962
3975
|
({ seleccion: u }) => (u == null ? void 0 : u.menu) === e.id
|
|
3963
|
-
), s =
|
|
3976
|
+
), s = xe(
|
|
3964
3977
|
(u) => {
|
|
3965
3978
|
o(((u == null ? void 0 : u.offsetWidth) ?? 0) < ((u == null ? void 0 : u.scrollWidth) ?? 0));
|
|
3966
3979
|
},
|
|
@@ -3985,7 +3998,7 @@ const $n = (e) => {
|
|
|
3985
3998
|
},
|
|
3986
3999
|
`MENU_ITEM_DRAWER__${e.id}__SUBMENU__${u.id}`
|
|
3987
4000
|
))
|
|
3988
|
-
] }) }) : /* @__PURE__ */ h.jsx(
|
|
4001
|
+
] }) }) : /* @__PURE__ */ h.jsx(Ft, { title: n ? e.nombre : "", placement: "right", arrow: !0, children: /* @__PURE__ */ h.jsx(Re, { disablePadding: !0, children: /* @__PURE__ */ h.jsxs(
|
|
3989
4002
|
_e,
|
|
3990
4003
|
{
|
|
3991
4004
|
...Me,
|
|
@@ -4026,7 +4039,7 @@ const $n = (e) => {
|
|
|
4026
4039
|
(i) => i.abierto && !i.inhabilitado
|
|
4027
4040
|
), n = Ye((i) => i.cargando), o = Ye((i) => i.toolbar);
|
|
4028
4041
|
return /* @__PURE__ */ h.jsxs(
|
|
4029
|
-
|
|
4042
|
+
Pi,
|
|
4030
4043
|
{
|
|
4031
4044
|
sx: {
|
|
4032
4045
|
width: Hr,
|
|
@@ -4285,7 +4298,7 @@ var Dn;
|
|
|
4285
4298
|
function mc() {
|
|
4286
4299
|
if (Dn) return X;
|
|
4287
4300
|
Dn = 1;
|
|
4288
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, A = e ? Symbol.for("react.suspense") : 60113,
|
|
4301
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, A = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
4289
4302
|
function D(_) {
|
|
4290
4303
|
if (typeof _ == "object" && _ !== null) {
|
|
4291
4304
|
var $ = _.$$typeof;
|
|
@@ -4344,7 +4357,7 @@ function mc() {
|
|
|
4344
4357
|
}, X.isSuspense = function(_) {
|
|
4345
4358
|
return D(_) === A;
|
|
4346
4359
|
}, X.isValidElementType = function(_) {
|
|
4347
|
-
return typeof _ == "string" || typeof _ == "function" || _ === n || _ === f || _ === i || _ === o || _ === A || _ ===
|
|
4360
|
+
return typeof _ == "string" || typeof _ == "function" || _ === n || _ === f || _ === i || _ === o || _ === A || _ === x || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === b || _.$$typeof === s || _.$$typeof === a || _.$$typeof === m || _.$$typeof === y || _.$$typeof === P || _.$$typeof === F || _.$$typeof === p);
|
|
4348
4361
|
}, X.typeOf = D, X;
|
|
4349
4362
|
}
|
|
4350
4363
|
var ee = {};
|
|
@@ -4359,10 +4372,10 @@ var ee = {};
|
|
|
4359
4372
|
var Bn;
|
|
4360
4373
|
function hc() {
|
|
4361
4374
|
return Bn || (Bn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
4362
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, A = e ? Symbol.for("react.suspense") : 60113,
|
|
4375
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, A = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
4363
4376
|
function D(N) {
|
|
4364
4377
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4365
|
-
N === n || N === f || N === i || N === o || N === A || N ===
|
|
4378
|
+
N === n || N === f || N === i || N === o || N === A || N === x || typeof N == "object" && N !== null && (N.$$typeof === g || N.$$typeof === b || N.$$typeof === s || N.$$typeof === a || N.$$typeof === m || N.$$typeof === y || N.$$typeof === P || N.$$typeof === F || N.$$typeof === p);
|
|
4366
4379
|
}
|
|
4367
4380
|
function j(N) {
|
|
4368
4381
|
if (typeof N == "object" && N !== null) {
|
|
@@ -4396,7 +4409,7 @@ function hc() {
|
|
|
4396
4409
|
}
|
|
4397
4410
|
}
|
|
4398
4411
|
}
|
|
4399
|
-
var _ = u, $ = f, W = a, z = s, Q = t, se = m, K = n, d = g, U = b,
|
|
4412
|
+
var _ = u, $ = f, W = a, z = s, Q = t, se = m, K = n, d = g, U = b, I = r, V = i, B = o, Y = A, Z = !1;
|
|
4400
4413
|
function pe(N) {
|
|
4401
4414
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), c(N) || j(N) === u;
|
|
4402
4415
|
}
|
|
@@ -4412,7 +4425,7 @@ function hc() {
|
|
|
4412
4425
|
function C(N) {
|
|
4413
4426
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
4414
4427
|
}
|
|
4415
|
-
function
|
|
4428
|
+
function E(N) {
|
|
4416
4429
|
return j(N) === m;
|
|
4417
4430
|
}
|
|
4418
4431
|
function R(N) {
|
|
@@ -4436,22 +4449,22 @@ function hc() {
|
|
|
4436
4449
|
function q(N) {
|
|
4437
4450
|
return j(N) === A;
|
|
4438
4451
|
}
|
|
4439
|
-
ee.AsyncMode = _, ee.ConcurrentMode = $, ee.ContextConsumer = W, ee.ContextProvider = z, ee.Element = Q, ee.ForwardRef = se, ee.Fragment = K, ee.Lazy = d, ee.Memo = U, ee.Portal =
|
|
4452
|
+
ee.AsyncMode = _, ee.ConcurrentMode = $, ee.ContextConsumer = W, ee.ContextProvider = z, ee.Element = Q, ee.ForwardRef = se, ee.Fragment = K, ee.Lazy = d, ee.Memo = U, ee.Portal = I, ee.Profiler = V, ee.StrictMode = B, ee.Suspense = Y, ee.isAsyncMode = pe, ee.isConcurrentMode = c, ee.isContextConsumer = l, ee.isContextProvider = S, ee.isElement = C, ee.isForwardRef = E, ee.isFragment = R, ee.isLazy = v, ee.isMemo = w, ee.isPortal = O, ee.isProfiler = M, ee.isStrictMode = L, ee.isSuspense = q, ee.isValidElementType = D, ee.typeOf = j;
|
|
4440
4453
|
})()), ee;
|
|
4441
4454
|
}
|
|
4442
|
-
var
|
|
4455
|
+
var Vn;
|
|
4443
4456
|
function ei() {
|
|
4444
|
-
return
|
|
4457
|
+
return Vn || (Vn = 1, process.env.NODE_ENV === "production" ? Lt.exports = mc() : Lt.exports = hc()), Lt.exports;
|
|
4445
4458
|
}
|
|
4446
4459
|
/*
|
|
4447
4460
|
object-assign
|
|
4448
4461
|
(c) Sindre Sorhus
|
|
4449
4462
|
@license MIT
|
|
4450
4463
|
*/
|
|
4451
|
-
var
|
|
4464
|
+
var xr, Fn;
|
|
4452
4465
|
function gc() {
|
|
4453
|
-
if (
|
|
4454
|
-
|
|
4466
|
+
if (Fn) return xr;
|
|
4467
|
+
Fn = 1;
|
|
4455
4468
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
4456
4469
|
function n(i) {
|
|
4457
4470
|
if (i == null)
|
|
@@ -4480,19 +4493,19 @@ function gc() {
|
|
|
4480
4493
|
return !1;
|
|
4481
4494
|
}
|
|
4482
4495
|
}
|
|
4483
|
-
return
|
|
4496
|
+
return xr = o() ? Object.assign : function(i, s) {
|
|
4484
4497
|
for (var a, u = n(i), f, m = 1; m < arguments.length; m++) {
|
|
4485
4498
|
a = Object(arguments[m]);
|
|
4486
4499
|
for (var A in a)
|
|
4487
4500
|
t.call(a, A) && (u[A] = a[A]);
|
|
4488
4501
|
if (e) {
|
|
4489
4502
|
f = e(a);
|
|
4490
|
-
for (var
|
|
4491
|
-
r.call(a, f[
|
|
4503
|
+
for (var x = 0; x < f.length; x++)
|
|
4504
|
+
r.call(a, f[x]) && (u[f[x]] = a[f[x]]);
|
|
4492
4505
|
}
|
|
4493
4506
|
}
|
|
4494
4507
|
return u;
|
|
4495
|
-
},
|
|
4508
|
+
}, xr;
|
|
4496
4509
|
}
|
|
4497
4510
|
var Cr, zn;
|
|
4498
4511
|
function an() {
|
|
@@ -4529,10 +4542,10 @@ function yc() {
|
|
|
4529
4542
|
var A;
|
|
4530
4543
|
try {
|
|
4531
4544
|
if (typeof i[m] != "function") {
|
|
4532
|
-
var
|
|
4545
|
+
var x = Error(
|
|
4533
4546
|
(u || "React class") + ": " + a + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
4534
4547
|
);
|
|
4535
|
-
throw
|
|
4548
|
+
throw x.name = "Invariant Violation", x;
|
|
4536
4549
|
}
|
|
4537
4550
|
A = i[m](s, m, u, a, null, t);
|
|
4538
4551
|
} catch (g) {
|
|
@@ -4578,16 +4591,16 @@ function bc() {
|
|
|
4578
4591
|
if (typeof l == "function")
|
|
4579
4592
|
return l;
|
|
4580
4593
|
}
|
|
4581
|
-
var
|
|
4582
|
-
array:
|
|
4583
|
-
bigint:
|
|
4584
|
-
bool:
|
|
4585
|
-
func:
|
|
4586
|
-
number:
|
|
4587
|
-
object:
|
|
4588
|
-
string:
|
|
4589
|
-
symbol:
|
|
4590
|
-
any:
|
|
4594
|
+
var x = "<<anonymous>>", b = {
|
|
4595
|
+
array: P("array"),
|
|
4596
|
+
bigint: P("bigint"),
|
|
4597
|
+
bool: P("boolean"),
|
|
4598
|
+
func: P("function"),
|
|
4599
|
+
number: P("number"),
|
|
4600
|
+
object: P("object"),
|
|
4601
|
+
string: P("string"),
|
|
4602
|
+
symbol: P("symbol"),
|
|
4603
|
+
any: F(),
|
|
4591
4604
|
arrayOf: D,
|
|
4592
4605
|
element: j(),
|
|
4593
4606
|
elementType: _(),
|
|
@@ -4610,7 +4623,7 @@ function bc() {
|
|
|
4610
4623
|
if (process.env.NODE_ENV !== "production")
|
|
4611
4624
|
var l = {}, S = 0;
|
|
4612
4625
|
function C(R, v, w, O, M, L, q) {
|
|
4613
|
-
if (O = O ||
|
|
4626
|
+
if (O = O || x, L = L || w, q !== r) {
|
|
4614
4627
|
if (u) {
|
|
4615
4628
|
var N = new Error(
|
|
4616
4629
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -4626,16 +4639,16 @@ function bc() {
|
|
|
4626
4639
|
}
|
|
4627
4640
|
return v[w] == null ? R ? v[w] === null ? new p("The " + M + " `" + L + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new p("The " + M + " `" + L + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : c(v, w, O, M, L);
|
|
4628
4641
|
}
|
|
4629
|
-
var
|
|
4630
|
-
return
|
|
4642
|
+
var E = C.bind(null, !1);
|
|
4643
|
+
return E.isRequired = C.bind(null, !0), E;
|
|
4631
4644
|
}
|
|
4632
|
-
function
|
|
4633
|
-
function l(S, C,
|
|
4645
|
+
function P(c) {
|
|
4646
|
+
function l(S, C, E, R, v, w) {
|
|
4634
4647
|
var O = S[C], M = B(O);
|
|
4635
4648
|
if (M !== c) {
|
|
4636
4649
|
var L = Y(O);
|
|
4637
4650
|
return new p(
|
|
4638
|
-
"Invalid " + R + " `" + v + "` of type " + ("`" + L + "` supplied to `" +
|
|
4651
|
+
"Invalid " + R + " `" + v + "` of type " + ("`" + L + "` supplied to `" + E + "`, expected ") + ("`" + c + "`."),
|
|
4639
4652
|
{ expectedType: c }
|
|
4640
4653
|
);
|
|
4641
4654
|
}
|
|
@@ -4643,20 +4656,20 @@ function bc() {
|
|
|
4643
4656
|
}
|
|
4644
4657
|
return y(l);
|
|
4645
4658
|
}
|
|
4646
|
-
function
|
|
4659
|
+
function F() {
|
|
4647
4660
|
return y(s);
|
|
4648
4661
|
}
|
|
4649
4662
|
function D(c) {
|
|
4650
|
-
function l(S, C,
|
|
4663
|
+
function l(S, C, E, R, v) {
|
|
4651
4664
|
if (typeof c != "function")
|
|
4652
|
-
return new p("Property `" + v + "` of component `" +
|
|
4665
|
+
return new p("Property `" + v + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
4653
4666
|
var w = S[C];
|
|
4654
4667
|
if (!Array.isArray(w)) {
|
|
4655
4668
|
var O = B(w);
|
|
4656
|
-
return new p("Invalid " + R + " `" + v + "` of type " + ("`" + O + "` supplied to `" +
|
|
4669
|
+
return new p("Invalid " + R + " `" + v + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected an array."));
|
|
4657
4670
|
}
|
|
4658
4671
|
for (var M = 0; M < w.length; M++) {
|
|
4659
|
-
var L = c(w, M,
|
|
4672
|
+
var L = c(w, M, E, R, v + "[" + M + "]", r);
|
|
4660
4673
|
if (L instanceof Error)
|
|
4661
4674
|
return L;
|
|
4662
4675
|
}
|
|
@@ -4665,32 +4678,32 @@ function bc() {
|
|
|
4665
4678
|
return y(l);
|
|
4666
4679
|
}
|
|
4667
4680
|
function j() {
|
|
4668
|
-
function c(l, S, C,
|
|
4681
|
+
function c(l, S, C, E, R) {
|
|
4669
4682
|
var v = l[S];
|
|
4670
4683
|
if (!a(v)) {
|
|
4671
4684
|
var w = B(v);
|
|
4672
|
-
return new p("Invalid " +
|
|
4685
|
+
return new p("Invalid " + E + " `" + R + "` of type " + ("`" + w + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
4673
4686
|
}
|
|
4674
4687
|
return null;
|
|
4675
4688
|
}
|
|
4676
4689
|
return y(c);
|
|
4677
4690
|
}
|
|
4678
4691
|
function _() {
|
|
4679
|
-
function c(l, S, C,
|
|
4692
|
+
function c(l, S, C, E, R) {
|
|
4680
4693
|
var v = l[S];
|
|
4681
4694
|
if (!e.isValidElementType(v)) {
|
|
4682
4695
|
var w = B(v);
|
|
4683
|
-
return new p("Invalid " +
|
|
4696
|
+
return new p("Invalid " + E + " `" + R + "` of type " + ("`" + w + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
4684
4697
|
}
|
|
4685
4698
|
return null;
|
|
4686
4699
|
}
|
|
4687
4700
|
return y(c);
|
|
4688
4701
|
}
|
|
4689
4702
|
function $(c) {
|
|
4690
|
-
function l(S, C,
|
|
4703
|
+
function l(S, C, E, R, v) {
|
|
4691
4704
|
if (!(S[C] instanceof c)) {
|
|
4692
|
-
var w = c.name ||
|
|
4693
|
-
return new p("Invalid " + R + " `" + v + "` of type " + ("`" + O + "` supplied to `" +
|
|
4705
|
+
var w = c.name || x, O = pe(S[C]);
|
|
4706
|
+
return new p("Invalid " + R + " `" + v + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected ") + ("instance of `" + w + "`."));
|
|
4694
4707
|
}
|
|
4695
4708
|
return null;
|
|
4696
4709
|
}
|
|
@@ -4701,7 +4714,7 @@ function bc() {
|
|
|
4701
4714
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
4702
4715
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
4703
4716
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
4704
|
-
function l(S, C,
|
|
4717
|
+
function l(S, C, E, R, v) {
|
|
4705
4718
|
for (var w = S[C], O = 0; O < c.length; O++)
|
|
4706
4719
|
if (g(w, c[O]))
|
|
4707
4720
|
return null;
|
|
@@ -4709,20 +4722,20 @@ function bc() {
|
|
|
4709
4722
|
var de = Y(N);
|
|
4710
4723
|
return de === "symbol" ? String(N) : N;
|
|
4711
4724
|
});
|
|
4712
|
-
return new p("Invalid " + R + " `" + v + "` of value `" + String(w) + "` " + ("supplied to `" +
|
|
4725
|
+
return new p("Invalid " + R + " `" + v + "` of value `" + String(w) + "` " + ("supplied to `" + E + "`, expected one of " + M + "."));
|
|
4713
4726
|
}
|
|
4714
4727
|
return y(l);
|
|
4715
4728
|
}
|
|
4716
4729
|
function z(c) {
|
|
4717
|
-
function l(S, C,
|
|
4730
|
+
function l(S, C, E, R, v) {
|
|
4718
4731
|
if (typeof c != "function")
|
|
4719
|
-
return new p("Property `" + v + "` of component `" +
|
|
4732
|
+
return new p("Property `" + v + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
4720
4733
|
var w = S[C], O = B(w);
|
|
4721
4734
|
if (O !== "object")
|
|
4722
|
-
return new p("Invalid " + R + " `" + v + "` of type " + ("`" + O + "` supplied to `" +
|
|
4735
|
+
return new p("Invalid " + R + " `" + v + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected an object."));
|
|
4723
4736
|
for (var M in w)
|
|
4724
4737
|
if (n(w, M)) {
|
|
4725
|
-
var L = c(w, M,
|
|
4738
|
+
var L = c(w, M, E, R, v + "." + M, r);
|
|
4726
4739
|
if (L instanceof Error)
|
|
4727
4740
|
return L;
|
|
4728
4741
|
}
|
|
@@ -4740,9 +4753,9 @@ function bc() {
|
|
|
4740
4753
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(S) + " at index " + l + "."
|
|
4741
4754
|
), s;
|
|
4742
4755
|
}
|
|
4743
|
-
function C(
|
|
4756
|
+
function C(E, R, v, w, O) {
|
|
4744
4757
|
for (var M = [], L = 0; L < c.length; L++) {
|
|
4745
|
-
var q = c[L], N = q(
|
|
4758
|
+
var q = c[L], N = q(E, R, v, w, O, r);
|
|
4746
4759
|
if (N == null)
|
|
4747
4760
|
return null;
|
|
4748
4761
|
N.data && n(N.data, "expectedType") && M.push(N.data.expectedType);
|
|
@@ -4753,26 +4766,26 @@ function bc() {
|
|
|
4753
4766
|
return y(C);
|
|
4754
4767
|
}
|
|
4755
4768
|
function se() {
|
|
4756
|
-
function c(l, S, C,
|
|
4757
|
-
return
|
|
4769
|
+
function c(l, S, C, E, R) {
|
|
4770
|
+
return I(l[S]) ? null : new p("Invalid " + E + " `" + R + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
4758
4771
|
}
|
|
4759
4772
|
return y(c);
|
|
4760
4773
|
}
|
|
4761
|
-
function K(c, l, S, C,
|
|
4774
|
+
function K(c, l, S, C, E) {
|
|
4762
4775
|
return new p(
|
|
4763
|
-
(c || "React class") + ": " + l + " type `" + S + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
4776
|
+
(c || "React class") + ": " + l + " type `" + S + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
4764
4777
|
);
|
|
4765
4778
|
}
|
|
4766
4779
|
function d(c) {
|
|
4767
|
-
function l(S, C,
|
|
4780
|
+
function l(S, C, E, R, v) {
|
|
4768
4781
|
var w = S[C], O = B(w);
|
|
4769
4782
|
if (O !== "object")
|
|
4770
|
-
return new p("Invalid " + R + " `" + v + "` of type `" + O + "` " + ("supplied to `" +
|
|
4783
|
+
return new p("Invalid " + R + " `" + v + "` of type `" + O + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
4771
4784
|
for (var M in c) {
|
|
4772
4785
|
var L = c[M];
|
|
4773
4786
|
if (typeof L != "function")
|
|
4774
|
-
return K(
|
|
4775
|
-
var q = L(w, M,
|
|
4787
|
+
return K(E, R, v, M, Y(L));
|
|
4788
|
+
var q = L(w, M, E, R, v + "." + M, r);
|
|
4776
4789
|
if (q)
|
|
4777
4790
|
return q;
|
|
4778
4791
|
}
|
|
@@ -4781,21 +4794,21 @@ function bc() {
|
|
|
4781
4794
|
return y(l);
|
|
4782
4795
|
}
|
|
4783
4796
|
function U(c) {
|
|
4784
|
-
function l(S, C,
|
|
4797
|
+
function l(S, C, E, R, v) {
|
|
4785
4798
|
var w = S[C], O = B(w);
|
|
4786
4799
|
if (O !== "object")
|
|
4787
|
-
return new p("Invalid " + R + " `" + v + "` of type `" + O + "` " + ("supplied to `" +
|
|
4800
|
+
return new p("Invalid " + R + " `" + v + "` of type `" + O + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
4788
4801
|
var M = t({}, S[C], c);
|
|
4789
4802
|
for (var L in M) {
|
|
4790
4803
|
var q = c[L];
|
|
4791
4804
|
if (n(c, L) && typeof q != "function")
|
|
4792
|
-
return K(
|
|
4805
|
+
return K(E, R, v, L, Y(q));
|
|
4793
4806
|
if (!q)
|
|
4794
4807
|
return new p(
|
|
4795
|
-
"Invalid " + R + " `" + v + "` key `" + L + "` supplied to `" +
|
|
4808
|
+
"Invalid " + R + " `" + v + "` key `" + L + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(S[C], null, " ") + `
|
|
4796
4809
|
Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
4797
4810
|
);
|
|
4798
|
-
var N = q(w, L,
|
|
4811
|
+
var N = q(w, L, E, R, v + "." + L, r);
|
|
4799
4812
|
if (N)
|
|
4800
4813
|
return N;
|
|
4801
4814
|
}
|
|
@@ -4803,7 +4816,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
4803
4816
|
}
|
|
4804
4817
|
return y(l);
|
|
4805
4818
|
}
|
|
4806
|
-
function
|
|
4819
|
+
function I(c) {
|
|
4807
4820
|
switch (typeof c) {
|
|
4808
4821
|
case "number":
|
|
4809
4822
|
case "string":
|
|
@@ -4813,7 +4826,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
4813
4826
|
return !c;
|
|
4814
4827
|
case "object":
|
|
4815
4828
|
if (Array.isArray(c))
|
|
4816
|
-
return c.every(
|
|
4829
|
+
return c.every(I);
|
|
4817
4830
|
if (c === null || a(c))
|
|
4818
4831
|
return !0;
|
|
4819
4832
|
var l = A(c);
|
|
@@ -4821,12 +4834,12 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
4821
4834
|
var S = l.call(c), C;
|
|
4822
4835
|
if (l !== c.entries) {
|
|
4823
4836
|
for (; !(C = S.next()).done; )
|
|
4824
|
-
if (!
|
|
4837
|
+
if (!I(C.value))
|
|
4825
4838
|
return !1;
|
|
4826
4839
|
} else
|
|
4827
4840
|
for (; !(C = S.next()).done; ) {
|
|
4828
|
-
var
|
|
4829
|
-
if (
|
|
4841
|
+
var E = C.value;
|
|
4842
|
+
if (E && !I(E[1]))
|
|
4830
4843
|
return !1;
|
|
4831
4844
|
}
|
|
4832
4845
|
} else
|
|
@@ -4836,12 +4849,12 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
4836
4849
|
return !1;
|
|
4837
4850
|
}
|
|
4838
4851
|
}
|
|
4839
|
-
function
|
|
4852
|
+
function V(c, l) {
|
|
4840
4853
|
return c === "symbol" ? !0 : l ? l["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && l instanceof Symbol : !1;
|
|
4841
4854
|
}
|
|
4842
4855
|
function B(c) {
|
|
4843
4856
|
var l = typeof c;
|
|
4844
|
-
return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" :
|
|
4857
|
+
return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : V(l, c) ? "symbol" : l;
|
|
4845
4858
|
}
|
|
4846
4859
|
function Y(c) {
|
|
4847
4860
|
if (typeof c > "u" || c === null)
|
|
@@ -4870,7 +4883,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
4870
4883
|
}
|
|
4871
4884
|
}
|
|
4872
4885
|
function pe(c) {
|
|
4873
|
-
return !c.constructor || !c.constructor.name ?
|
|
4886
|
+
return !c.constructor || !c.constructor.name ? x : c.constructor.name;
|
|
4874
4887
|
}
|
|
4875
4888
|
return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
|
|
4876
4889
|
}, Rr;
|
|
@@ -4887,10 +4900,10 @@ function Ac() {
|
|
|
4887
4900
|
return r.resetWarningCache = t, _r = function() {
|
|
4888
4901
|
function n(s, a, u, f, m, A) {
|
|
4889
4902
|
if (A !== e) {
|
|
4890
|
-
var
|
|
4903
|
+
var x = new Error(
|
|
4891
4904
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
4892
4905
|
);
|
|
4893
|
-
throw
|
|
4906
|
+
throw x.name = "Invariant Violation", x;
|
|
4894
4907
|
}
|
|
4895
4908
|
}
|
|
4896
4909
|
n.isRequired = n;
|
|
@@ -4972,10 +4985,10 @@ var Ut = { exports: {} }, ne = {};
|
|
|
4972
4985
|
* LICENSE file in the root directory of this source tree.
|
|
4973
4986
|
*/
|
|
4974
4987
|
var Qn;
|
|
4975
|
-
function
|
|
4988
|
+
function Ec() {
|
|
4976
4989
|
if (Qn) return ne;
|
|
4977
4990
|
Qn = 1;
|
|
4978
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), A = Symbol.for("react.lazy"),
|
|
4991
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), x = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
|
|
4979
4992
|
function g(p) {
|
|
4980
4993
|
if (typeof p == "object" && p !== null) {
|
|
4981
4994
|
var y = p.$$typeof;
|
|
@@ -4987,7 +5000,7 @@ function xc() {
|
|
|
4987
5000
|
case n:
|
|
4988
5001
|
case u:
|
|
4989
5002
|
case f:
|
|
4990
|
-
case
|
|
5003
|
+
case x:
|
|
4991
5004
|
return p;
|
|
4992
5005
|
default:
|
|
4993
5006
|
switch (p = p && p.$$typeof, p) {
|
|
@@ -5046,7 +5059,7 @@ var oe = {};
|
|
|
5046
5059
|
* LICENSE file in the root directory of this source tree.
|
|
5047
5060
|
*/
|
|
5048
5061
|
var Yn;
|
|
5049
|
-
function
|
|
5062
|
+
function xc() {
|
|
5050
5063
|
return Yn || (Yn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
5051
5064
|
function e(p) {
|
|
5052
5065
|
if (typeof p == "object" && p !== null) {
|
|
@@ -5065,7 +5078,7 @@ function Ec() {
|
|
|
5065
5078
|
switch (p = p && p.$$typeof, p) {
|
|
5066
5079
|
case a:
|
|
5067
5080
|
case u:
|
|
5068
|
-
case
|
|
5081
|
+
case x:
|
|
5069
5082
|
case A:
|
|
5070
5083
|
return p;
|
|
5071
5084
|
case s:
|
|
@@ -5079,8 +5092,8 @@ function Ec() {
|
|
|
5079
5092
|
}
|
|
5080
5093
|
}
|
|
5081
5094
|
}
|
|
5082
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"),
|
|
5083
|
-
oe.ContextConsumer = s, oe.ContextProvider = a, oe.Element = t, oe.ForwardRef = u, oe.Fragment = n, oe.Lazy =
|
|
5095
|
+
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), b = Symbol.for("react.view_transition"), g = Symbol.for("react.client.reference");
|
|
5096
|
+
oe.ContextConsumer = s, oe.ContextProvider = a, oe.Element = t, oe.ForwardRef = u, oe.Fragment = n, oe.Lazy = x, oe.Memo = A, oe.Portal = r, oe.Profiler = i, oe.StrictMode = o, oe.Suspense = f, oe.SuspenseList = m, oe.isContextConsumer = function(p) {
|
|
5084
5097
|
return e(p) === s;
|
|
5085
5098
|
}, oe.isContextProvider = function(p) {
|
|
5086
5099
|
return e(p) === a;
|
|
@@ -5091,7 +5104,7 @@ function Ec() {
|
|
|
5091
5104
|
}, oe.isFragment = function(p) {
|
|
5092
5105
|
return e(p) === n;
|
|
5093
5106
|
}, oe.isLazy = function(p) {
|
|
5094
|
-
return e(p) ===
|
|
5107
|
+
return e(p) === x;
|
|
5095
5108
|
}, oe.isMemo = function(p) {
|
|
5096
5109
|
return e(p) === A;
|
|
5097
5110
|
}, oe.isPortal = function(p) {
|
|
@@ -5105,13 +5118,13 @@ function Ec() {
|
|
|
5105
5118
|
}, oe.isSuspenseList = function(p) {
|
|
5106
5119
|
return e(p) === m;
|
|
5107
5120
|
}, oe.isValidElementType = function(p) {
|
|
5108
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === i || p === o || p === f || p === m || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
5121
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === i || p === o || p === f || p === m || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === A || p.$$typeof === a || p.$$typeof === s || p.$$typeof === u || p.$$typeof === g || p.getModuleId !== void 0);
|
|
5109
5122
|
}, oe.typeOf = e;
|
|
5110
5123
|
})()), oe;
|
|
5111
5124
|
}
|
|
5112
5125
|
var Gn;
|
|
5113
5126
|
function Cc() {
|
|
5114
|
-
return Gn || (Gn = 1, process.env.NODE_ENV === "production" ? Ut.exports = /* @__PURE__ */
|
|
5127
|
+
return Gn || (Gn = 1, process.env.NODE_ENV === "production" ? Ut.exports = /* @__PURE__ */ Ec() : Ut.exports = /* @__PURE__ */ xc()), Ut.exports;
|
|
5115
5128
|
}
|
|
5116
5129
|
var qt = /* @__PURE__ */ Cc();
|
|
5117
5130
|
function Ne(e) {
|
|
@@ -5121,7 +5134,7 @@ function Ne(e) {
|
|
|
5121
5134
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5122
5135
|
}
|
|
5123
5136
|
function oi(e) {
|
|
5124
|
-
if (/* @__PURE__ */
|
|
5137
|
+
if (/* @__PURE__ */ Fe.isValidElement(e) || qt.isValidElementType(e) || !Ne(e))
|
|
5125
5138
|
return e;
|
|
5126
5139
|
const t = {};
|
|
5127
5140
|
return Object.keys(e).forEach((r) => {
|
|
@@ -5135,7 +5148,7 @@ function Se(e, t, r = {
|
|
|
5135
5148
|
...e
|
|
5136
5149
|
} : e;
|
|
5137
5150
|
return Ne(e) && Ne(t) && Object.keys(t).forEach((o) => {
|
|
5138
|
-
/* @__PURE__ */
|
|
5151
|
+
/* @__PURE__ */ Fe.isValidElement(t[o]) || qt.isValidElementType(t[o]) ? n[o] = t[o] : Ne(t[o]) && // Avoid prototype pollution
|
|
5139
5152
|
Object.prototype.hasOwnProperty.call(e, o) && Ne(e[o]) ? n[o] = Se(e[o], t[o], r) : r.clone ? n[o] = Ne(t[o]) ? oi(t[o]) : t[o] : n[o] = t[o];
|
|
5140
5153
|
}), n;
|
|
5141
5154
|
}
|
|
@@ -5278,9 +5291,9 @@ function ue(e) {
|
|
|
5278
5291
|
return null;
|
|
5279
5292
|
const a = s[t], u = s.theme, f = sr(u, n) || {};
|
|
5280
5293
|
return Ue(s, a, (A) => {
|
|
5281
|
-
let
|
|
5282
|
-
return A ===
|
|
5283
|
-
[r]:
|
|
5294
|
+
let x = Jt(f, o, A);
|
|
5295
|
+
return A === x && typeof A == "string" && (x = Jt(f, o, `${t}${A === "default" ? "" : et(A)}`, A)), r === !1 ? x : {
|
|
5296
|
+
[r]: x
|
|
5284
5297
|
};
|
|
5285
5298
|
});
|
|
5286
5299
|
};
|
|
@@ -5288,11 +5301,11 @@ function ue(e) {
|
|
|
5288
5301
|
[t]: He
|
|
5289
5302
|
} : {}, i.filterProps = [t], i;
|
|
5290
5303
|
}
|
|
5291
|
-
function
|
|
5304
|
+
function Ic(e) {
|
|
5292
5305
|
const t = {};
|
|
5293
5306
|
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
|
|
5294
5307
|
}
|
|
5295
|
-
const
|
|
5308
|
+
const Pc = {
|
|
5296
5309
|
m: "margin",
|
|
5297
5310
|
p: "padding"
|
|
5298
5311
|
}, jc = {
|
|
@@ -5307,13 +5320,13 @@ const Ic = {
|
|
|
5307
5320
|
marginY: "my",
|
|
5308
5321
|
paddingX: "px",
|
|
5309
5322
|
paddingY: "py"
|
|
5310
|
-
}, Nc =
|
|
5323
|
+
}, Nc = Ic((e) => {
|
|
5311
5324
|
if (e.length > 2)
|
|
5312
5325
|
if (to[e])
|
|
5313
5326
|
e = to[e];
|
|
5314
5327
|
else
|
|
5315
5328
|
return [e];
|
|
5316
|
-
const [t, r] = e.split(""), n =
|
|
5329
|
+
const [t, r] = e.split(""), n = Pc[t], o = jc[r] || "";
|
|
5317
5330
|
return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
|
|
5318
5331
|
}), ar = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], cr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Lc = [...ar, ...cr];
|
|
5319
5332
|
function _t(e, t, r, n) {
|
|
@@ -5367,7 +5380,7 @@ function lr(...e) {
|
|
|
5367
5380
|
}), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? vt(o, t[i](n)) : o, {});
|
|
5368
5381
|
return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
|
|
5369
5382
|
}
|
|
5370
|
-
function
|
|
5383
|
+
function Ee(e) {
|
|
5371
5384
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
5372
5385
|
}
|
|
5373
5386
|
function Ce(e, t) {
|
|
@@ -5377,7 +5390,7 @@ function Ce(e, t) {
|
|
|
5377
5390
|
transform: t
|
|
5378
5391
|
});
|
|
5379
5392
|
}
|
|
5380
|
-
const Mc = Ce("border",
|
|
5393
|
+
const Mc = Ce("border", Ee), Dc = Ce("borderTop", Ee), Bc = Ce("borderRight", Ee), Vc = Ce("borderBottom", Ee), Fc = Ce("borderLeft", Ee), zc = Ce("borderColor"), Hc = Ce("borderTopColor"), Wc = Ce("borderRightColor"), Kc = Ce("borderBottomColor"), qc = Ce("borderLeftColor"), Jc = Ce("outline", Ee), Qc = Ce("outlineColor"), ur = (e) => {
|
|
5381
5394
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
5382
5395
|
const t = _t(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
5383
5396
|
borderRadius: Ot(t, n)
|
|
@@ -5390,7 +5403,7 @@ ur.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5390
5403
|
borderRadius: He
|
|
5391
5404
|
} : {};
|
|
5392
5405
|
ur.filterProps = ["borderRadius"];
|
|
5393
|
-
lr(Mc, Dc, Bc,
|
|
5406
|
+
lr(Mc, Dc, Bc, Vc, Fc, zc, Hc, Wc, Kc, qc, ur, Jc, Qc);
|
|
5394
5407
|
const dr = (e) => {
|
|
5395
5408
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
5396
5409
|
const t = _t(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
@@ -5523,23 +5536,23 @@ const mr = {
|
|
|
5523
5536
|
// borders
|
|
5524
5537
|
border: {
|
|
5525
5538
|
themeKey: "borders",
|
|
5526
|
-
transform:
|
|
5539
|
+
transform: Ee
|
|
5527
5540
|
},
|
|
5528
5541
|
borderTop: {
|
|
5529
5542
|
themeKey: "borders",
|
|
5530
|
-
transform:
|
|
5543
|
+
transform: Ee
|
|
5531
5544
|
},
|
|
5532
5545
|
borderRight: {
|
|
5533
5546
|
themeKey: "borders",
|
|
5534
|
-
transform:
|
|
5547
|
+
transform: Ee
|
|
5535
5548
|
},
|
|
5536
5549
|
borderBottom: {
|
|
5537
5550
|
themeKey: "borders",
|
|
5538
|
-
transform:
|
|
5551
|
+
transform: Ee
|
|
5539
5552
|
},
|
|
5540
5553
|
borderLeft: {
|
|
5541
5554
|
themeKey: "borders",
|
|
5542
|
-
transform:
|
|
5555
|
+
transform: Ee
|
|
5543
5556
|
},
|
|
5544
5557
|
borderColor: {
|
|
5545
5558
|
themeKey: "palette"
|
|
@@ -5558,7 +5571,7 @@ const mr = {
|
|
|
5558
5571
|
},
|
|
5559
5572
|
outline: {
|
|
5560
5573
|
themeKey: "borders",
|
|
5561
|
-
transform:
|
|
5574
|
+
transform: Ee
|
|
5562
5575
|
},
|
|
5563
5576
|
outlineColor: {
|
|
5564
5577
|
themeKey: "palette"
|
|
@@ -5836,10 +5849,10 @@ function gl() {
|
|
|
5836
5849
|
return {
|
|
5837
5850
|
[r]: n
|
|
5838
5851
|
};
|
|
5839
|
-
const
|
|
5852
|
+
const x = sr(o, f) || {};
|
|
5840
5853
|
return A ? A(s) : Ue(s, n, (g) => {
|
|
5841
|
-
let p = Jt(
|
|
5842
|
-
return g === p && typeof g == "string" && (p = Jt(
|
|
5854
|
+
let p = Jt(x, m, g);
|
|
5855
|
+
return g === p && typeof g == "string" && (p = Jt(x, m, `${r}${g === "default" ? "" : et(g)}`, g)), u === !1 ? p : {
|
|
5843
5856
|
[u]: p
|
|
5844
5857
|
};
|
|
5845
5858
|
});
|
|
@@ -5862,30 +5875,30 @@ function gl() {
|
|
|
5862
5875
|
if (!f)
|
|
5863
5876
|
return null;
|
|
5864
5877
|
const m = Oc(o.breakpoints), A = Object.keys(m);
|
|
5865
|
-
let
|
|
5878
|
+
let x = m;
|
|
5866
5879
|
return Object.keys(f).forEach((b) => {
|
|
5867
5880
|
const g = hl(f[b], o);
|
|
5868
5881
|
if (g != null)
|
|
5869
5882
|
if (typeof g == "object")
|
|
5870
5883
|
if (s[b])
|
|
5871
|
-
|
|
5884
|
+
x = vt(x, e(b, g, o, s));
|
|
5872
5885
|
else {
|
|
5873
5886
|
const p = Ue({
|
|
5874
5887
|
theme: o
|
|
5875
5888
|
}, g, (y) => ({
|
|
5876
5889
|
[b]: y
|
|
5877
5890
|
}));
|
|
5878
|
-
ml(p, g) ?
|
|
5891
|
+
ml(p, g) ? x[b] = t({
|
|
5879
5892
|
sx: g,
|
|
5880
5893
|
theme: o,
|
|
5881
5894
|
nested: !0
|
|
5882
|
-
}) :
|
|
5895
|
+
}) : x = vt(x, p);
|
|
5883
5896
|
}
|
|
5884
5897
|
else
|
|
5885
|
-
|
|
5898
|
+
x = vt(x, e(b, g, o, s));
|
|
5886
5899
|
}), !i && o.modularCssLayers ? {
|
|
5887
|
-
"@layer sx": Zn(o, eo(A,
|
|
5888
|
-
} : Zn(o, eo(A,
|
|
5900
|
+
"@layer sx": Zn(o, eo(A, x))
|
|
5901
|
+
} : Zn(o, eo(A, x));
|
|
5889
5902
|
}
|
|
5890
5903
|
return Array.isArray(n) ? n.map(a) : a(n);
|
|
5891
5904
|
}
|
|
@@ -6055,7 +6068,7 @@ function vl(e, t, r) {
|
|
|
6055
6068
|
return n;
|
|
6056
6069
|
}
|
|
6057
6070
|
var oo = /label:\s*([^\s;{]+)\s*(;|$)/g, Be;
|
|
6058
|
-
function
|
|
6071
|
+
function El(e, t, r) {
|
|
6059
6072
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
6060
6073
|
return e[0];
|
|
6061
6074
|
var n = !0, o = "";
|
|
@@ -6089,7 +6102,7 @@ function xl(e, t, r) {
|
|
|
6089
6102
|
* This source code is licensed under the MIT license found in the
|
|
6090
6103
|
* LICENSE file in the root directory of this source tree.
|
|
6091
6104
|
*/
|
|
6092
|
-
function
|
|
6105
|
+
function xl(e, t) {
|
|
6093
6106
|
const r = Hi(e, t);
|
|
6094
6107
|
return process.env.NODE_ENV !== "production" ? (...n) => {
|
|
6095
6108
|
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
@@ -6102,7 +6115,7 @@ function Cl(e, t) {
|
|
|
6102
6115
|
}
|
|
6103
6116
|
const io = [];
|
|
6104
6117
|
function Ge(e) {
|
|
6105
|
-
return io[0] = e,
|
|
6118
|
+
return io[0] = e, El(io);
|
|
6106
6119
|
}
|
|
6107
6120
|
const Tl = (e) => {
|
|
6108
6121
|
const t = Object.keys(e).map((r) => ({
|
|
@@ -6134,22 +6147,22 @@ function kl(e) {
|
|
|
6134
6147
|
step: n = 5,
|
|
6135
6148
|
...o
|
|
6136
6149
|
} = e, i = Tl(t), s = Object.keys(i);
|
|
6137
|
-
function a(
|
|
6138
|
-
return `@media (min-width:${typeof t[
|
|
6150
|
+
function a(x) {
|
|
6151
|
+
return `@media (min-width:${typeof t[x] == "number" ? t[x] : x}${r})`;
|
|
6139
6152
|
}
|
|
6140
|
-
function u(
|
|
6141
|
-
return `@media (max-width:${(typeof t[
|
|
6153
|
+
function u(x) {
|
|
6154
|
+
return `@media (max-width:${(typeof t[x] == "number" ? t[x] : x) - n / 100}${r})`;
|
|
6142
6155
|
}
|
|
6143
|
-
function f(
|
|
6156
|
+
function f(x, b) {
|
|
6144
6157
|
const g = s.indexOf(b);
|
|
6145
|
-
return `@media (min-width:${typeof t[
|
|
6158
|
+
return `@media (min-width:${typeof t[x] == "number" ? t[x] : x}${r}) and (max-width:${(g !== -1 && typeof t[s[g]] == "number" ? t[s[g]] : b) - n / 100}${r})`;
|
|
6146
6159
|
}
|
|
6147
|
-
function m(
|
|
6148
|
-
return s.indexOf(
|
|
6160
|
+
function m(x) {
|
|
6161
|
+
return s.indexOf(x) + 1 < s.length ? f(x, s[s.indexOf(x) + 1]) : a(x);
|
|
6149
6162
|
}
|
|
6150
|
-
function A(
|
|
6151
|
-
const b = s.indexOf(
|
|
6152
|
-
return b === 0 ? a(s[1]) : b === s.length - 1 ? u(s[b]) : f(
|
|
6163
|
+
function A(x) {
|
|
6164
|
+
const b = s.indexOf(x);
|
|
6165
|
+
return b === 0 ? a(s[1]) : b === s.length - 1 ? u(s[b]) : f(x, s[s.indexOf(x) + 1]).replace("@media", "@media not all and");
|
|
6153
6166
|
}
|
|
6154
6167
|
return {
|
|
6155
6168
|
keys: s,
|
|
@@ -6241,7 +6254,7 @@ function un(e, t, r = "Mui") {
|
|
|
6241
6254
|
const n = Ol[t];
|
|
6242
6255
|
return n ? `${r}-${n}` : `${pc.generate(e)}-${t}`;
|
|
6243
6256
|
}
|
|
6244
|
-
function
|
|
6257
|
+
function Il(e, t, r = "Mui") {
|
|
6245
6258
|
const n = {};
|
|
6246
6259
|
return t.forEach((o) => {
|
|
6247
6260
|
n[o] = un(e, o, r);
|
|
@@ -6254,7 +6267,7 @@ function so(e, t, r) {
|
|
|
6254
6267
|
const n = li(t);
|
|
6255
6268
|
return e.displayName || (n !== "" ? `${r}(${n})` : r);
|
|
6256
6269
|
}
|
|
6257
|
-
function
|
|
6270
|
+
function Pl(e) {
|
|
6258
6271
|
if (e != null) {
|
|
6259
6272
|
if (typeof e == "string")
|
|
6260
6273
|
return e;
|
|
@@ -6285,7 +6298,7 @@ function ui(e) {
|
|
|
6285
6298
|
}), n;
|
|
6286
6299
|
}
|
|
6287
6300
|
const jl = ci();
|
|
6288
|
-
function
|
|
6301
|
+
function Ir(e) {
|
|
6289
6302
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
6290
6303
|
}
|
|
6291
6304
|
function qe(e, t) {
|
|
@@ -6297,10 +6310,10 @@ function Nl(e) {
|
|
|
6297
6310
|
function Ll(e, t, r) {
|
|
6298
6311
|
e.theme = Dl(e.theme) ? r : e.theme[t] || e.theme;
|
|
6299
6312
|
}
|
|
6300
|
-
function
|
|
6313
|
+
function Vt(e, t, r) {
|
|
6301
6314
|
const n = typeof t == "function" ? t(e) : t;
|
|
6302
6315
|
if (Array.isArray(n))
|
|
6303
|
-
return n.flatMap((o) =>
|
|
6316
|
+
return n.flatMap((o) => Vt(e, o, r));
|
|
6304
6317
|
if (Array.isArray(n == null ? void 0 : n.variants)) {
|
|
6305
6318
|
let o;
|
|
6306
6319
|
if (n.isProcessed)
|
|
@@ -6344,8 +6357,8 @@ function Ul(e = {}) {
|
|
|
6344
6357
|
const {
|
|
6345
6358
|
themeId: t,
|
|
6346
6359
|
defaultTheme: r = jl,
|
|
6347
|
-
rootShouldForwardProp: n =
|
|
6348
|
-
slotShouldForwardProp: o =
|
|
6360
|
+
rootShouldForwardProp: n = Ir,
|
|
6361
|
+
slotShouldForwardProp: o = Ir
|
|
6349
6362
|
} = e;
|
|
6350
6363
|
function i(a) {
|
|
6351
6364
|
Ll(a, t, r);
|
|
@@ -6356,7 +6369,7 @@ function Ul(e = {}) {
|
|
|
6356
6369
|
name: f,
|
|
6357
6370
|
slot: m,
|
|
6358
6371
|
skipVariantsResolver: A,
|
|
6359
|
-
skipSx:
|
|
6372
|
+
skipSx: x,
|
|
6360
6373
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
6361
6374
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
6362
6375
|
overridesResolver: b = Nl(fi(m)),
|
|
@@ -6365,11 +6378,11 @@ function Ul(e = {}) {
|
|
|
6365
6378
|
// TODO v6: remove `Root` in the next major release
|
|
6366
6379
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
6367
6380
|
m && m !== "Root" && m !== "root" || !1
|
|
6368
|
-
),
|
|
6369
|
-
let
|
|
6370
|
-
m === "Root" || m === "root" ?
|
|
6371
|
-
const D =
|
|
6372
|
-
shouldForwardProp:
|
|
6381
|
+
), P = x || !1;
|
|
6382
|
+
let F = Ir;
|
|
6383
|
+
m === "Root" || m === "root" ? F = n : m ? F = o : Bl(a) && (F = void 0);
|
|
6384
|
+
const D = xl(a, {
|
|
6385
|
+
shouldForwardProp: F,
|
|
6373
6386
|
label: Ml(f, m),
|
|
6374
6387
|
...g
|
|
6375
6388
|
}), j = ($) => {
|
|
@@ -6377,12 +6390,12 @@ function Ul(e = {}) {
|
|
|
6377
6390
|
return $;
|
|
6378
6391
|
if (typeof $ == "function")
|
|
6379
6392
|
return function(z) {
|
|
6380
|
-
return
|
|
6393
|
+
return Vt(z, $, z.theme.modularCssLayers ? p : void 0);
|
|
6381
6394
|
};
|
|
6382
6395
|
if (Ne($)) {
|
|
6383
6396
|
const W = ui($);
|
|
6384
6397
|
return function(Q) {
|
|
6385
|
-
return W.variants ?
|
|
6398
|
+
return W.variants ? Vt(Q, W, Q.theme.modularCssLayers ? p : void 0) : Q.theme.modularCssLayers ? qe(W.style, p) : W.style;
|
|
6386
6399
|
};
|
|
6387
6400
|
}
|
|
6388
6401
|
return $;
|
|
@@ -6390,21 +6403,21 @@ function Ul(e = {}) {
|
|
|
6390
6403
|
const W = [], z = $.map(j), Q = [];
|
|
6391
6404
|
if (W.push(i), f && b && Q.push(function(U) {
|
|
6392
6405
|
var Y, Z;
|
|
6393
|
-
const
|
|
6394
|
-
if (!
|
|
6406
|
+
const V = (Z = (Y = U.theme.components) == null ? void 0 : Y[f]) == null ? void 0 : Z.styleOverrides;
|
|
6407
|
+
if (!V)
|
|
6395
6408
|
return null;
|
|
6396
6409
|
const B = {};
|
|
6397
|
-
for (const pe in
|
|
6398
|
-
B[pe] =
|
|
6410
|
+
for (const pe in V)
|
|
6411
|
+
B[pe] = Vt(U, V[pe], U.theme.modularCssLayers ? "theme" : void 0);
|
|
6399
6412
|
return b(U, B);
|
|
6400
6413
|
}), f && !y && Q.push(function(U) {
|
|
6401
6414
|
var B, Y;
|
|
6402
|
-
const
|
|
6403
|
-
return
|
|
6404
|
-
}),
|
|
6405
|
-
const d = z.shift(), U = new Array(W.length).fill(""),
|
|
6406
|
-
let
|
|
6407
|
-
|
|
6415
|
+
const I = U.theme, V = (Y = (B = I == null ? void 0 : I.components) == null ? void 0 : B[f]) == null ? void 0 : Y.variants;
|
|
6416
|
+
return V ? di(U, V, [], U.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
6417
|
+
}), P || Q.push(ft), Array.isArray(z[0])) {
|
|
6418
|
+
const d = z.shift(), U = new Array(W.length).fill(""), I = new Array(Q.length).fill("");
|
|
6419
|
+
let V;
|
|
6420
|
+
V = [...U, ...d, ...I], V.raw = [...U, ...d.raw, ...I], W.unshift(V);
|
|
6408
6421
|
}
|
|
6409
6422
|
const se = [...W, ...z, ...Q], K = D(...se);
|
|
6410
6423
|
return a.muiName && (K.muiName = a.muiName), process.env.NODE_ENV !== "production" && (K.displayName = $l(f, m, a)), K;
|
|
@@ -6413,7 +6426,7 @@ function Ul(e = {}) {
|
|
|
6413
6426
|
};
|
|
6414
6427
|
}
|
|
6415
6428
|
function $l(e, t, r) {
|
|
6416
|
-
return e ? `${e}${et(t || "")}` : `Styled(${
|
|
6429
|
+
return e ? `${e}${et(t || "")}` : `Styled(${Pl(r)})`;
|
|
6417
6430
|
}
|
|
6418
6431
|
function Ml(e, t) {
|
|
6419
6432
|
let r;
|
|
@@ -6468,13 +6481,13 @@ function qr(e, t, r = !1) {
|
|
|
6468
6481
|
}
|
|
6469
6482
|
return n;
|
|
6470
6483
|
}
|
|
6471
|
-
function
|
|
6484
|
+
function Vl(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
6472
6485
|
return Math.max(t, Math.min(e, r));
|
|
6473
6486
|
}
|
|
6474
6487
|
function dn(e, t = 0, r = 1) {
|
|
6475
|
-
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),
|
|
6488
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Vl(e, t, r);
|
|
6476
6489
|
}
|
|
6477
|
-
function
|
|
6490
|
+
function Fl(e) {
|
|
6478
6491
|
e = e.slice(1);
|
|
6479
6492
|
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
6480
6493
|
let r = e.match(t);
|
|
@@ -6484,7 +6497,7 @@ function ze(e) {
|
|
|
6484
6497
|
if (e.type)
|
|
6485
6498
|
return e;
|
|
6486
6499
|
if (e.charAt(0) === "#")
|
|
6487
|
-
return ze(
|
|
6500
|
+
return ze(Fl(e));
|
|
6488
6501
|
const t = e.indexOf("("), r = e.substring(0, t);
|
|
6489
6502
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
|
|
6490
6503
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
@@ -6596,7 +6609,7 @@ function $t(e, t, r) {
|
|
|
6596
6609
|
return e;
|
|
6597
6610
|
}
|
|
6598
6611
|
}
|
|
6599
|
-
const Wl = /* @__PURE__ */
|
|
6612
|
+
const Wl = /* @__PURE__ */ Fe.createContext(void 0);
|
|
6600
6613
|
process.env.NODE_ENV !== "production" && (G.node, G.object);
|
|
6601
6614
|
function Kl(e) {
|
|
6602
6615
|
const {
|
|
@@ -6613,7 +6626,7 @@ function ql({
|
|
|
6613
6626
|
props: e,
|
|
6614
6627
|
name: t
|
|
6615
6628
|
}) {
|
|
6616
|
-
const r =
|
|
6629
|
+
const r = Fe.useContext(Wl);
|
|
6617
6630
|
return Kl({
|
|
6618
6631
|
props: e,
|
|
6619
6632
|
name: t,
|
|
@@ -6654,7 +6667,7 @@ const lo = (e, t, r, n = []) => {
|
|
|
6654
6667
|
}
|
|
6655
6668
|
n(e);
|
|
6656
6669
|
}, Gl = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
|
|
6657
|
-
function
|
|
6670
|
+
function Pr(e, t) {
|
|
6658
6671
|
const {
|
|
6659
6672
|
prefix: r,
|
|
6660
6673
|
shouldSkipGeneratingVar: n
|
|
@@ -6679,7 +6692,7 @@ function Ir(e, t) {
|
|
|
6679
6692
|
}
|
|
6680
6693
|
function Zl(e, t = {}) {
|
|
6681
6694
|
const {
|
|
6682
|
-
getSelector: r =
|
|
6695
|
+
getSelector: r = P,
|
|
6683
6696
|
disableCssColorScheme: n,
|
|
6684
6697
|
colorSchemeSelector: o,
|
|
6685
6698
|
enableContrastVars: i
|
|
@@ -6691,9 +6704,9 @@ function Zl(e, t = {}) {
|
|
|
6691
6704
|
} = e, {
|
|
6692
6705
|
vars: m,
|
|
6693
6706
|
css: A,
|
|
6694
|
-
varsWithDefaults:
|
|
6695
|
-
} =
|
|
6696
|
-
let b =
|
|
6707
|
+
varsWithDefaults: x
|
|
6708
|
+
} = Pr(f, t);
|
|
6709
|
+
let b = x;
|
|
6697
6710
|
const g = {}, {
|
|
6698
6711
|
[u]: p,
|
|
6699
6712
|
...y
|
|
@@ -6703,7 +6716,7 @@ function Zl(e, t = {}) {
|
|
|
6703
6716
|
vars: $,
|
|
6704
6717
|
css: W,
|
|
6705
6718
|
varsWithDefaults: z
|
|
6706
|
-
} =
|
|
6719
|
+
} = Pr(_, t);
|
|
6707
6720
|
b = Se(b, z), g[j] = {
|
|
6708
6721
|
css: W,
|
|
6709
6722
|
vars: $
|
|
@@ -6713,13 +6726,13 @@ function Zl(e, t = {}) {
|
|
|
6713
6726
|
css: j,
|
|
6714
6727
|
vars: _,
|
|
6715
6728
|
varsWithDefaults: $
|
|
6716
|
-
} =
|
|
6729
|
+
} = Pr(p, t);
|
|
6717
6730
|
b = Se(b, $), g[u] = {
|
|
6718
6731
|
css: j,
|
|
6719
6732
|
vars: _
|
|
6720
6733
|
};
|
|
6721
6734
|
}
|
|
6722
|
-
function
|
|
6735
|
+
function P(j, _) {
|
|
6723
6736
|
var W, z;
|
|
6724
6737
|
let $ = o;
|
|
6725
6738
|
if (o === "class" && ($ = ".%s"), o === "data" && ($ = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && ($ = `[${o}="%s"]`), j) {
|
|
@@ -6779,16 +6792,16 @@ function Zl(e, t = {}) {
|
|
|
6779
6792
|
return Object.entries(z).forEach(([K, {
|
|
6780
6793
|
css: d
|
|
6781
6794
|
}]) => {
|
|
6782
|
-
var
|
|
6783
|
-
const U = (B = (
|
|
6795
|
+
var V, B;
|
|
6796
|
+
const U = (B = (V = s[K]) == null ? void 0 : V.palette) == null ? void 0 : B.mode, I = !n && U ? {
|
|
6784
6797
|
colorScheme: U,
|
|
6785
6798
|
...d
|
|
6786
6799
|
} : {
|
|
6787
6800
|
...d
|
|
6788
6801
|
};
|
|
6789
6802
|
$(r(K, {
|
|
6790
|
-
...
|
|
6791
|
-
}),
|
|
6803
|
+
...I
|
|
6804
|
+
}), I);
|
|
6792
6805
|
}), i && j.push({
|
|
6793
6806
|
":root": {
|
|
6794
6807
|
// use double underscore to indicate that these are private variables
|
|
@@ -6806,7 +6819,7 @@ function Xl(e) {
|
|
|
6806
6819
|
return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
|
|
6807
6820
|
};
|
|
6808
6821
|
}
|
|
6809
|
-
const
|
|
6822
|
+
const Et = {
|
|
6810
6823
|
black: "#000",
|
|
6811
6824
|
white: "#fff"
|
|
6812
6825
|
}, eu = {
|
|
@@ -6879,8 +6892,8 @@ function hi() {
|
|
|
6879
6892
|
// The background colors used to style the surfaces.
|
|
6880
6893
|
// Consistency between these values is important.
|
|
6881
6894
|
background: {
|
|
6882
|
-
paper:
|
|
6883
|
-
default:
|
|
6895
|
+
paper: Et.white,
|
|
6896
|
+
default: Et.white
|
|
6884
6897
|
},
|
|
6885
6898
|
// The colors used to style the action elements.
|
|
6886
6899
|
action: {
|
|
@@ -6907,7 +6920,7 @@ const gi = hi();
|
|
|
6907
6920
|
function yi() {
|
|
6908
6921
|
return {
|
|
6909
6922
|
text: {
|
|
6910
|
-
primary:
|
|
6923
|
+
primary: Et.white,
|
|
6911
6924
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
6912
6925
|
disabled: "rgba(255, 255, 255, 0.5)",
|
|
6913
6926
|
icon: "rgba(255, 255, 255, 0.5)"
|
|
@@ -6918,7 +6931,7 @@ function yi() {
|
|
|
6918
6931
|
default: "#121212"
|
|
6919
6932
|
},
|
|
6920
6933
|
action: {
|
|
6921
|
-
active:
|
|
6934
|
+
active: Et.white,
|
|
6922
6935
|
hover: "rgba(255, 255, 255, 0.08)",
|
|
6923
6936
|
hoverOpacity: 0.08,
|
|
6924
6937
|
selected: "rgba(255, 255, 255, 0.16)",
|
|
@@ -7019,31 +7032,31 @@ function fn(e) {
|
|
|
7019
7032
|
colorSpace: o,
|
|
7020
7033
|
...i
|
|
7021
7034
|
} = e, s = e.primary || tu(t), a = e.secondary || ru(t), u = e.error || nu(t), f = e.info || ou(t), m = e.success || iu(t), A = e.warning || su(t);
|
|
7022
|
-
function
|
|
7035
|
+
function x(y) {
|
|
7023
7036
|
if (o)
|
|
7024
7037
|
return au(y);
|
|
7025
|
-
const
|
|
7038
|
+
const P = ao(y, Qr.text.primary) >= r ? Qr.text.primary : gi.text.primary;
|
|
7026
7039
|
if (process.env.NODE_ENV !== "production") {
|
|
7027
|
-
const
|
|
7028
|
-
|
|
7040
|
+
const F = ao(y, P);
|
|
7041
|
+
F < 3 && console.error([`MUI: The contrast ratio of ${F}:1 for ${P} on ${y}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
7029
7042
|
`));
|
|
7030
7043
|
}
|
|
7031
|
-
return
|
|
7044
|
+
return P;
|
|
7032
7045
|
}
|
|
7033
7046
|
const b = ({
|
|
7034
7047
|
color: y,
|
|
7035
|
-
name:
|
|
7036
|
-
mainShade:
|
|
7048
|
+
name: P,
|
|
7049
|
+
mainShade: F = 500,
|
|
7037
7050
|
lightShade: D = 300,
|
|
7038
7051
|
darkShade: j = 700
|
|
7039
7052
|
}) => {
|
|
7040
7053
|
if (y = {
|
|
7041
7054
|
...y
|
|
7042
|
-
}, !y.main && y[
|
|
7043
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
7044
|
-
The color object needs to have a \`main\` property or a \`${
|
|
7055
|
+
}, !y.main && y[F] && (y.main = y[F]), !y.hasOwnProperty("main"))
|
|
7056
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${P ? ` (${P})` : ""} provided to augmentColor(color) is invalid.
|
|
7057
|
+
The color object needs to have a \`main\` property or a \`${F}\` property.` : Xe(11, P ? ` (${P})` : "", F));
|
|
7045
7058
|
if (typeof y.main != "string")
|
|
7046
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
7059
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${P ? ` (${P})` : ""} provided to augmentColor(color) is invalid.
|
|
7047
7060
|
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
7048
7061
|
|
|
7049
7062
|
Did you intend to use one of the following approaches?
|
|
@@ -7056,14 +7069,14 @@ const theme1 = createTheme({ palette: {
|
|
|
7056
7069
|
|
|
7057
7070
|
const theme2 = createTheme({ palette: {
|
|
7058
7071
|
primary: { main: green[500] },
|
|
7059
|
-
} });` : Xe(12,
|
|
7060
|
-
return o ? (fo(o, y, "light", D, n), fo(o, y, "dark", j, n)) : (uo(y, "light", D, n), uo(y, "dark", j, n)), y.contrastText || (y.contrastText =
|
|
7072
|
+
} });` : Xe(12, P ? ` (${P})` : "", JSON.stringify(y.main)));
|
|
7073
|
+
return o ? (fo(o, y, "light", D, n), fo(o, y, "dark", j, n)) : (uo(y, "light", D, n), uo(y, "dark", j, n)), y.contrastText || (y.contrastText = x(y.main)), y;
|
|
7061
7074
|
};
|
|
7062
7075
|
let g;
|
|
7063
7076
|
return t === "light" ? g = hi() : t === "dark" && (g = yi()), process.env.NODE_ENV !== "production" && (g || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Se({
|
|
7064
7077
|
// A collection of common colors.
|
|
7065
7078
|
common: {
|
|
7066
|
-
...
|
|
7079
|
+
...Et
|
|
7067
7080
|
},
|
|
7068
7081
|
// prevent mutable object.
|
|
7069
7082
|
// The palette mode, can be light or dark.
|
|
@@ -7107,7 +7120,7 @@ const theme2 = createTheme({ palette: {
|
|
|
7107
7120
|
// the background and the text.
|
|
7108
7121
|
contrastThreshold: r,
|
|
7109
7122
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
7110
|
-
getContrastText:
|
|
7123
|
+
getContrastText: x,
|
|
7111
7124
|
// Generate a rich color object.
|
|
7112
7125
|
augmentColor: b,
|
|
7113
7126
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -7166,16 +7179,16 @@ function du(e, t) {
|
|
|
7166
7179
|
...A
|
|
7167
7180
|
} = typeof t == "function" ? t(e) : t;
|
|
7168
7181
|
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
7169
|
-
const
|
|
7182
|
+
const x = n / 14, b = m || ((y) => `${y / u * x}rem`), g = (y, P, F, D, j) => ({
|
|
7170
7183
|
fontFamily: r,
|
|
7171
7184
|
fontWeight: y,
|
|
7172
|
-
fontSize: b(
|
|
7185
|
+
fontSize: b(P),
|
|
7173
7186
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
7174
|
-
lineHeight:
|
|
7187
|
+
lineHeight: F,
|
|
7175
7188
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
7176
7189
|
// across font-families can cause issues with the kerning.
|
|
7177
7190
|
...r === mo ? {
|
|
7178
|
-
letterSpacing: `${uu(D /
|
|
7191
|
+
letterSpacing: `${uu(D / P)}em`
|
|
7179
7192
|
} : {},
|
|
7180
7193
|
...j,
|
|
7181
7194
|
...f
|
|
@@ -7271,7 +7284,7 @@ function Au(e) {
|
|
|
7271
7284
|
...f
|
|
7272
7285
|
} = i;
|
|
7273
7286
|
if (process.env.NODE_ENV !== "production") {
|
|
7274
|
-
const m = (
|
|
7287
|
+
const m = (x) => typeof x == "string", A = (x) => !Number.isNaN(parseFloat(x));
|
|
7275
7288
|
!m(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !A(s) && !m(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), m(a) || console.error('MUI: Argument "easing" must be a string.'), !A(u) && !m(u) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
7276
7289
|
`)), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
|
|
7277
7290
|
}
|
|
@@ -7331,7 +7344,7 @@ const vu = (e) => {
|
|
|
7331
7344
|
r += +t[n];
|
|
7332
7345
|
return r;
|
|
7333
7346
|
};
|
|
7334
|
-
function
|
|
7347
|
+
function Eu(e) {
|
|
7335
7348
|
Object.assign(e, {
|
|
7336
7349
|
alpha(t, r) {
|
|
7337
7350
|
const n = this || e;
|
|
@@ -7366,9 +7379,9 @@ function Yr(e = {}, ...t) {
|
|
|
7366
7379
|
const A = fn({
|
|
7367
7380
|
...i,
|
|
7368
7381
|
colorSpace: f
|
|
7369
|
-
}),
|
|
7370
|
-
let b = Se(
|
|
7371
|
-
mixins: lu(
|
|
7382
|
+
}), x = ci(e);
|
|
7383
|
+
let b = Se(x, {
|
|
7384
|
+
mixins: lu(x.breakpoints, n),
|
|
7372
7385
|
palette: A,
|
|
7373
7386
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
7374
7387
|
shadows: hu.slice(),
|
|
@@ -7379,27 +7392,27 @@ function Yr(e = {}, ...t) {
|
|
|
7379
7392
|
}
|
|
7380
7393
|
});
|
|
7381
7394
|
if (b = Se(b, m), b = t.reduce((g, p) => Se(g, p), b), process.env.NODE_ENV !== "production") {
|
|
7382
|
-
const g = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (y,
|
|
7383
|
-
let
|
|
7384
|
-
for (
|
|
7385
|
-
const D = y[
|
|
7386
|
-
if (g.includes(
|
|
7395
|
+
const g = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (y, P) => {
|
|
7396
|
+
let F;
|
|
7397
|
+
for (F in y) {
|
|
7398
|
+
const D = y[F];
|
|
7399
|
+
if (g.includes(F) && Object.keys(D).length > 0) {
|
|
7387
7400
|
if (process.env.NODE_ENV !== "production") {
|
|
7388
|
-
const j = un("",
|
|
7389
|
-
console.error([`MUI: The \`${
|
|
7401
|
+
const j = un("", F);
|
|
7402
|
+
console.error([`MUI: The \`${P}\` component increases the CSS specificity of the \`${F}\` internal state.`, "You can not override it like this: ", JSON.stringify(y, null, 2), "", `Instead, you need to use the '&.${j}' syntax:`, JSON.stringify({
|
|
7390
7403
|
root: {
|
|
7391
7404
|
[`&.${j}`]: D
|
|
7392
7405
|
}
|
|
7393
7406
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
7394
7407
|
`));
|
|
7395
7408
|
}
|
|
7396
|
-
y[
|
|
7409
|
+
y[F] = {};
|
|
7397
7410
|
}
|
|
7398
7411
|
}
|
|
7399
7412
|
};
|
|
7400
7413
|
Object.keys(b.components).forEach((y) => {
|
|
7401
|
-
const
|
|
7402
|
-
|
|
7414
|
+
const P = b.components[y].styleOverrides;
|
|
7415
|
+
P && y.startsWith("Mui") && p(P, y);
|
|
7403
7416
|
});
|
|
7404
7417
|
}
|
|
7405
7418
|
return b.unstable_sxConfig = {
|
|
@@ -7410,16 +7423,16 @@ function Yr(e = {}, ...t) {
|
|
|
7410
7423
|
sx: p,
|
|
7411
7424
|
theme: this
|
|
7412
7425
|
});
|
|
7413
|
-
}, b.toRuntimeSource = bi,
|
|
7426
|
+
}, b.toRuntimeSource = bi, Eu(b), b;
|
|
7414
7427
|
}
|
|
7415
|
-
function
|
|
7428
|
+
function xu(e) {
|
|
7416
7429
|
let t;
|
|
7417
7430
|
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
7418
7431
|
}
|
|
7419
7432
|
const Cu = [...Array(25)].map((e, t) => {
|
|
7420
7433
|
if (t === 0)
|
|
7421
7434
|
return "none";
|
|
7422
|
-
const r =
|
|
7435
|
+
const r = xu(t);
|
|
7423
7436
|
return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
|
|
7424
7437
|
});
|
|
7425
7438
|
function Ai(e) {
|
|
@@ -7514,7 +7527,7 @@ function je(e, t) {
|
|
|
7514
7527
|
`${t}Channel` in e || (e[`${t}Channel`] = At(St(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
7515
7528
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
7516
7529
|
}
|
|
7517
|
-
function
|
|
7530
|
+
function Iu(e) {
|
|
7518
7531
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
7519
7532
|
}
|
|
7520
7533
|
const ke = (e) => {
|
|
@@ -7522,7 +7535,7 @@ const ke = (e) => {
|
|
|
7522
7535
|
return e();
|
|
7523
7536
|
} catch {
|
|
7524
7537
|
}
|
|
7525
|
-
},
|
|
7538
|
+
}, Pu = (e = "mui") => Ql(e);
|
|
7526
7539
|
function jr(e, t, r, n, o) {
|
|
7527
7540
|
if (!r)
|
|
7528
7541
|
return;
|
|
@@ -7573,61 +7586,61 @@ function ju(e = {}, ...t) {
|
|
|
7573
7586
|
colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
|
|
7574
7587
|
rootSelector: f = ":root",
|
|
7575
7588
|
...m
|
|
7576
|
-
} = e, A = Object.keys(r)[0],
|
|
7577
|
-
[
|
|
7589
|
+
} = e, A = Object.keys(r)[0], x = n || (r.light && A !== "light" ? "light" : A), b = Pu(i), {
|
|
7590
|
+
[x]: g,
|
|
7578
7591
|
light: p,
|
|
7579
7592
|
dark: y,
|
|
7580
|
-
...
|
|
7581
|
-
} = r,
|
|
7582
|
-
...
|
|
7593
|
+
...P
|
|
7594
|
+
} = r, F = {
|
|
7595
|
+
...P
|
|
7583
7596
|
};
|
|
7584
7597
|
let D = g;
|
|
7585
|
-
if ((
|
|
7586
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${
|
|
7598
|
+
if ((x === "dark" && !("dark" in r) || x === "light" && !("light" in r)) && (D = !0), !D)
|
|
7599
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${x}\` option is either missing or invalid.` : Xe(21, x));
|
|
7587
7600
|
let j;
|
|
7588
7601
|
s && (j = "oklch");
|
|
7589
|
-
const _ = jr(j,
|
|
7590
|
-
p && !
|
|
7602
|
+
const _ = jr(j, F, D, m, x);
|
|
7603
|
+
p && !F.light && jr(j, F, p, void 0, "light"), y && !F.dark && jr(j, F, y, void 0, "dark");
|
|
7591
7604
|
let $ = {
|
|
7592
|
-
defaultColorScheme:
|
|
7605
|
+
defaultColorScheme: x,
|
|
7593
7606
|
..._,
|
|
7594
7607
|
cssVarPrefix: i,
|
|
7595
7608
|
colorSchemeSelector: u,
|
|
7596
7609
|
rootSelector: f,
|
|
7597
7610
|
getCssVar: b,
|
|
7598
|
-
colorSchemes:
|
|
7611
|
+
colorSchemes: F,
|
|
7599
7612
|
font: {
|
|
7600
7613
|
...cu(_.typography),
|
|
7601
7614
|
..._.font
|
|
7602
7615
|
},
|
|
7603
|
-
spacing:
|
|
7616
|
+
spacing: Iu(m.spacing)
|
|
7604
7617
|
};
|
|
7605
7618
|
Object.keys($.colorSchemes).forEach((K) => {
|
|
7606
|
-
const d = $.colorSchemes[K].palette, U = (
|
|
7607
|
-
const B =
|
|
7608
|
-
return b(
|
|
7619
|
+
const d = $.colorSchemes[K].palette, U = (V) => {
|
|
7620
|
+
const B = V.split("-"), Y = B[1], Z = B[2];
|
|
7621
|
+
return b(V, d[Y][Z]);
|
|
7609
7622
|
};
|
|
7610
7623
|
d.mode === "light" && (k(d.common, "background", "#fff"), k(d.common, "onBackground", "#000")), d.mode === "dark" && (k(d.common, "background", "#000"), k(d.common, "onBackground", "#fff"));
|
|
7611
|
-
function
|
|
7624
|
+
function I(V, B, Y) {
|
|
7612
7625
|
if (j) {
|
|
7613
7626
|
let Z;
|
|
7614
|
-
return
|
|
7627
|
+
return V === We && (Z = `transparent ${((1 - Y) * 100).toFixed(0)}%`), V === te && (Z = `#000 ${(Y * 100).toFixed(0)}%`), V === re && (Z = `#fff ${(Y * 100).toFixed(0)}%`), `color-mix(in ${j}, ${B}, ${Z})`;
|
|
7615
7628
|
}
|
|
7616
|
-
return
|
|
7629
|
+
return V(B, Y);
|
|
7617
7630
|
}
|
|
7618
7631
|
if (Ou(d, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), d.mode === "light") {
|
|
7619
|
-
k(d.Alert, "errorColor",
|
|
7620
|
-
const
|
|
7621
|
-
k(d.SnackbarContent, "bg",
|
|
7632
|
+
k(d.Alert, "errorColor", I(te, s ? b("palette-error-light") : d.error.light, 0.6)), k(d.Alert, "infoColor", I(te, s ? b("palette-info-light") : d.info.light, 0.6)), k(d.Alert, "successColor", I(te, s ? b("palette-success-light") : d.success.light, 0.6)), k(d.Alert, "warningColor", I(te, s ? b("palette-warning-light") : d.warning.light, 0.6)), k(d.Alert, "errorFilledBg", U("palette-error-main")), k(d.Alert, "infoFilledBg", U("palette-info-main")), k(d.Alert, "successFilledBg", U("palette-success-main")), k(d.Alert, "warningFilledBg", U("palette-warning-main")), k(d.Alert, "errorFilledColor", ke(() => d.getContrastText(d.error.main))), k(d.Alert, "infoFilledColor", ke(() => d.getContrastText(d.info.main))), k(d.Alert, "successFilledColor", ke(() => d.getContrastText(d.success.main))), k(d.Alert, "warningFilledColor", ke(() => d.getContrastText(d.warning.main))), k(d.Alert, "errorStandardBg", I(re, s ? b("palette-error-light") : d.error.light, 0.9)), k(d.Alert, "infoStandardBg", I(re, s ? b("palette-info-light") : d.info.light, 0.9)), k(d.Alert, "successStandardBg", I(re, s ? b("palette-success-light") : d.success.light, 0.9)), k(d.Alert, "warningStandardBg", I(re, s ? b("palette-warning-light") : d.warning.light, 0.9)), k(d.Alert, "errorIconColor", U("palette-error-main")), k(d.Alert, "infoIconColor", U("palette-info-main")), k(d.Alert, "successIconColor", U("palette-success-main")), k(d.Alert, "warningIconColor", U("palette-warning-main")), k(d.AppBar, "defaultBg", U("palette-grey-100")), k(d.Avatar, "defaultBg", U("palette-grey-400")), k(d.Button, "inheritContainedBg", U("palette-grey-300")), k(d.Button, "inheritContainedHoverBg", U("palette-grey-A100")), k(d.Chip, "defaultBorder", U("palette-grey-400")), k(d.Chip, "defaultAvatarColor", U("palette-grey-700")), k(d.Chip, "defaultIconColor", U("palette-grey-700")), k(d.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), k(d.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), k(d.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), k(d.LinearProgress, "primaryBg", I(re, s ? b("palette-primary-main") : d.primary.main, 0.62)), k(d.LinearProgress, "secondaryBg", I(re, s ? b("palette-secondary-main") : d.secondary.main, 0.62)), k(d.LinearProgress, "errorBg", I(re, s ? b("palette-error-main") : d.error.main, 0.62)), k(d.LinearProgress, "infoBg", I(re, s ? b("palette-info-main") : d.info.main, 0.62)), k(d.LinearProgress, "successBg", I(re, s ? b("palette-success-main") : d.success.main, 0.62)), k(d.LinearProgress, "warningBg", I(re, s ? b("palette-warning-light") : d.warning.main, 0.62)), k(d.Skeleton, "bg", j ? I(We, s ? b("palette-text-primary") : d.text.primary, 0.11) : `rgba(${U("palette-text-primaryChannel")} / 0.11)`), k(d.Slider, "primaryTrack", I(re, s ? b("palette-primary-main") : d.primary.main, 0.62)), k(d.Slider, "secondaryTrack", I(re, s ? b("palette-secondary-main") : d.secondary.main, 0.62)), k(d.Slider, "errorTrack", I(re, s ? b("palette-error-main") : d.error.main, 0.62)), k(d.Slider, "infoTrack", I(re, s ? b("palette-info-main") : d.info.main, 0.62)), k(d.Slider, "successTrack", I(re, s ? b("palette-success-main") : d.success.main, 0.62)), k(d.Slider, "warningTrack", I(re, s ? b("palette-warning-main") : d.warning.main, 0.62));
|
|
7633
|
+
const V = j ? I(te, s ? b("palette-background-default") : d.background.default, 0.6825) : $t(d.background.default, 0.8);
|
|
7634
|
+
k(d.SnackbarContent, "bg", V), k(d.SnackbarContent, "color", ke(() => j ? Qr.text.primary : d.getContrastText(V))), k(d.SpeedDialAction, "fabHoverBg", $t(d.background.paper, 0.15)), k(d.StepConnector, "border", U("palette-grey-400")), k(d.StepContent, "border", U("palette-grey-400")), k(d.Switch, "defaultColor", U("palette-common-white")), k(d.Switch, "defaultDisabledColor", U("palette-grey-100")), k(d.Switch, "primaryDisabledColor", I(re, s ? b("palette-primary-main") : d.primary.main, 0.62)), k(d.Switch, "secondaryDisabledColor", I(re, s ? b("palette-secondary-main") : d.secondary.main, 0.62)), k(d.Switch, "errorDisabledColor", I(re, s ? b("palette-error-main") : d.error.main, 0.62)), k(d.Switch, "infoDisabledColor", I(re, s ? b("palette-info-main") : d.info.main, 0.62)), k(d.Switch, "successDisabledColor", I(re, s ? b("palette-success-main") : d.success.main, 0.62)), k(d.Switch, "warningDisabledColor", I(re, s ? b("palette-warning-main") : d.warning.main, 0.62)), k(d.TableCell, "border", I(re, We(s ? b("palette-divider") : d.divider, 1), 0.88)), k(d.Tooltip, "bg", I(We, s ? b("palette-grey-700") : d.grey[700], 0.92));
|
|
7622
7635
|
}
|
|
7623
7636
|
if (d.mode === "dark") {
|
|
7624
|
-
k(d.Alert, "errorColor",
|
|
7625
|
-
const
|
|
7626
|
-
k(d.SnackbarContent, "bg",
|
|
7637
|
+
k(d.Alert, "errorColor", I(re, s ? b("palette-error-light") : d.error.light, 0.6)), k(d.Alert, "infoColor", I(re, s ? b("palette-info-light") : d.info.light, 0.6)), k(d.Alert, "successColor", I(re, s ? b("palette-success-light") : d.success.light, 0.6)), k(d.Alert, "warningColor", I(re, s ? b("palette-warning-light") : d.warning.light, 0.6)), k(d.Alert, "errorFilledBg", U("palette-error-dark")), k(d.Alert, "infoFilledBg", U("palette-info-dark")), k(d.Alert, "successFilledBg", U("palette-success-dark")), k(d.Alert, "warningFilledBg", U("palette-warning-dark")), k(d.Alert, "errorFilledColor", ke(() => d.getContrastText(d.error.dark))), k(d.Alert, "infoFilledColor", ke(() => d.getContrastText(d.info.dark))), k(d.Alert, "successFilledColor", ke(() => d.getContrastText(d.success.dark))), k(d.Alert, "warningFilledColor", ke(() => d.getContrastText(d.warning.dark))), k(d.Alert, "errorStandardBg", I(te, s ? b("palette-error-light") : d.error.light, 0.9)), k(d.Alert, "infoStandardBg", I(te, s ? b("palette-info-light") : d.info.light, 0.9)), k(d.Alert, "successStandardBg", I(te, s ? b("palette-success-light") : d.success.light, 0.9)), k(d.Alert, "warningStandardBg", I(te, s ? b("palette-warning-light") : d.warning.light, 0.9)), k(d.Alert, "errorIconColor", U("palette-error-main")), k(d.Alert, "infoIconColor", U("palette-info-main")), k(d.Alert, "successIconColor", U("palette-success-main")), k(d.Alert, "warningIconColor", U("palette-warning-main")), k(d.AppBar, "defaultBg", U("palette-grey-900")), k(d.AppBar, "darkBg", U("palette-background-paper")), k(d.AppBar, "darkColor", U("palette-text-primary")), k(d.Avatar, "defaultBg", U("palette-grey-600")), k(d.Button, "inheritContainedBg", U("palette-grey-800")), k(d.Button, "inheritContainedHoverBg", U("palette-grey-700")), k(d.Chip, "defaultBorder", U("palette-grey-700")), k(d.Chip, "defaultAvatarColor", U("palette-grey-300")), k(d.Chip, "defaultIconColor", U("palette-grey-300")), k(d.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), k(d.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), k(d.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), k(d.LinearProgress, "primaryBg", I(te, s ? b("palette-primary-main") : d.primary.main, 0.5)), k(d.LinearProgress, "secondaryBg", I(te, s ? b("palette-secondary-main") : d.secondary.main, 0.5)), k(d.LinearProgress, "errorBg", I(te, s ? b("palette-error-main") : d.error.main, 0.5)), k(d.LinearProgress, "infoBg", I(te, s ? b("palette-info-main") : d.info.main, 0.5)), k(d.LinearProgress, "successBg", I(te, s ? b("palette-success-main") : d.success.main, 0.5)), k(d.LinearProgress, "warningBg", I(te, s ? b("palette-warning-main") : d.warning.main, 0.5)), k(d.Skeleton, "bg", j ? I(We, s ? b("palette-text-primary") : d.text.primary, 0.13) : `rgba(${U("palette-text-primaryChannel")} / 0.13)`), k(d.Slider, "primaryTrack", I(te, s ? b("palette-primary-main") : d.primary.main, 0.5)), k(d.Slider, "secondaryTrack", I(te, s ? b("palette-secondary-main") : d.secondary.main, 0.5)), k(d.Slider, "errorTrack", I(te, s ? b("palette-error-main") : d.error.main, 0.5)), k(d.Slider, "infoTrack", I(te, s ? b("palette-info-main") : d.info.main, 0.5)), k(d.Slider, "successTrack", I(te, s ? b("palette-success-main") : d.success.main, 0.5)), k(d.Slider, "warningTrack", I(te, s ? b("palette-warning-light") : d.warning.main, 0.5));
|
|
7638
|
+
const V = j ? I(re, s ? b("palette-background-default") : d.background.default, 0.985) : $t(d.background.default, 0.98);
|
|
7639
|
+
k(d.SnackbarContent, "bg", V), k(d.SnackbarContent, "color", ke(() => j ? gi.text.primary : d.getContrastText(V))), k(d.SpeedDialAction, "fabHoverBg", $t(d.background.paper, 0.15)), k(d.StepConnector, "border", U("palette-grey-600")), k(d.StepContent, "border", U("palette-grey-600")), k(d.Switch, "defaultColor", U("palette-grey-300")), k(d.Switch, "defaultDisabledColor", U("palette-grey-600")), k(d.Switch, "primaryDisabledColor", I(te, s ? b("palette-primary-main") : d.primary.main, 0.55)), k(d.Switch, "secondaryDisabledColor", I(te, s ? b("palette-secondary-main") : d.secondary.main, 0.55)), k(d.Switch, "errorDisabledColor", I(te, s ? b("palette-error-main") : d.error.main, 0.55)), k(d.Switch, "infoDisabledColor", I(te, s ? b("palette-info-main") : d.info.main, 0.55)), k(d.Switch, "successDisabledColor", I(te, s ? b("palette-success-main") : d.success.main, 0.55)), k(d.Switch, "warningDisabledColor", I(te, s ? b("palette-warning-light") : d.warning.main, 0.55)), k(d.TableCell, "border", I(te, We(s ? b("palette-divider") : d.divider, 1), 0.68)), k(d.Tooltip, "bg", I(We, s ? b("palette-grey-700") : d.grey[700], 0.92));
|
|
7627
7640
|
}
|
|
7628
|
-
je(d.background, "default"), je(d.background, "paper"), je(d.common, "background"), je(d.common, "onBackground"), je(d, "divider"), Object.keys(d).forEach((
|
|
7629
|
-
const B = d[
|
|
7630
|
-
|
|
7641
|
+
je(d.background, "default"), je(d.background, "paper"), je(d.common, "background"), je(d.common, "onBackground"), je(d, "divider"), Object.keys(d).forEach((V) => {
|
|
7642
|
+
const B = d[V];
|
|
7643
|
+
V !== "tonalOffset" && B && typeof B == "object" && (B.main && k(d[V], "mainChannel", At(St(B.main))), B.light && k(d[V], "lightChannel", At(St(B.light))), B.dark && k(d[V], "darkChannel", At(St(B.dark))), B.contrastText && k(d[V], "contrastTextChannel", At(St(B.contrastText))), V === "text" && (je(d[V], "primary"), je(d[V], "secondary")), V === "action" && (B.active && je(d[V], "active"), B.selected && je(d[V], "selected")));
|
|
7631
7644
|
});
|
|
7632
7645
|
}), $ = t.reduce((K, d) => Se(K, d), $);
|
|
7633
7646
|
const W = {
|
|
@@ -7719,13 +7732,13 @@ const Mu = (e) => $u(e) && e !== "classes", Du = Ul({
|
|
|
7719
7732
|
rootShouldForwardProp: Mu
|
|
7720
7733
|
}), Bu = Jl;
|
|
7721
7734
|
process.env.NODE_ENV !== "production" && (G.node, G.object.isRequired);
|
|
7722
|
-
function
|
|
7735
|
+
function Vu(e) {
|
|
7723
7736
|
return ql(e);
|
|
7724
7737
|
}
|
|
7725
|
-
function
|
|
7738
|
+
function Fu(e) {
|
|
7726
7739
|
return un("MuiSvgIcon", e);
|
|
7727
7740
|
}
|
|
7728
|
-
|
|
7741
|
+
Il("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
7729
7742
|
const zu = (e) => {
|
|
7730
7743
|
const {
|
|
7731
7744
|
color: t,
|
|
@@ -7734,7 +7747,7 @@ const zu = (e) => {
|
|
|
7734
7747
|
} = e, o = {
|
|
7735
7748
|
root: ["root", t !== "inherit" && `color${et(t)}`, `fontSize${et(r)}`]
|
|
7736
7749
|
};
|
|
7737
|
-
return vc(o,
|
|
7750
|
+
return vc(o, Fu, n);
|
|
7738
7751
|
}, Hu = Du("svg", {
|
|
7739
7752
|
name: "MuiSvgIcon",
|
|
7740
7753
|
slot: "Root",
|
|
@@ -7747,7 +7760,7 @@ const zu = (e) => {
|
|
|
7747
7760
|
})(Bu(({
|
|
7748
7761
|
theme: e
|
|
7749
7762
|
}) => {
|
|
7750
|
-
var t, r, n, o, i, s, a, u, f, m, A,
|
|
7763
|
+
var t, r, n, o, i, s, a, u, f, m, A, x, b, g;
|
|
7751
7764
|
return {
|
|
7752
7765
|
userSelect: "none",
|
|
7753
7766
|
width: "1em",
|
|
@@ -7800,13 +7813,13 @@ const zu = (e) => {
|
|
|
7800
7813
|
},
|
|
7801
7814
|
// TODO v5 deprecate color prop, v6 remove for sx
|
|
7802
7815
|
...Object.entries((e.vars ?? e).palette).filter(([, p]) => p && p.main).map(([p]) => {
|
|
7803
|
-
var y,
|
|
7816
|
+
var y, P;
|
|
7804
7817
|
return {
|
|
7805
7818
|
props: {
|
|
7806
7819
|
color: p
|
|
7807
7820
|
},
|
|
7808
7821
|
style: {
|
|
7809
|
-
color: (
|
|
7822
|
+
color: (P = (y = (e.vars ?? e).palette) == null ? void 0 : y[p]) == null ? void 0 : P.main
|
|
7810
7823
|
}
|
|
7811
7824
|
};
|
|
7812
7825
|
}),
|
|
@@ -7815,7 +7828,7 @@ const zu = (e) => {
|
|
|
7815
7828
|
color: "action"
|
|
7816
7829
|
},
|
|
7817
7830
|
style: {
|
|
7818
|
-
color: (
|
|
7831
|
+
color: (x = (A = (e.vars ?? e).palette) == null ? void 0 : A.action) == null ? void 0 : x.active
|
|
7819
7832
|
}
|
|
7820
7833
|
},
|
|
7821
7834
|
{
|
|
@@ -7836,8 +7849,8 @@ const zu = (e) => {
|
|
|
7836
7849
|
}
|
|
7837
7850
|
]
|
|
7838
7851
|
};
|
|
7839
|
-
})), Yt = /* @__PURE__ */
|
|
7840
|
-
const n =
|
|
7852
|
+
})), Yt = /* @__PURE__ */ Fe.forwardRef(function(t, r) {
|
|
7853
|
+
const n = Vu({
|
|
7841
7854
|
props: t,
|
|
7842
7855
|
name: "MuiSvgIcon"
|
|
7843
7856
|
}), {
|
|
@@ -7849,23 +7862,23 @@ const zu = (e) => {
|
|
|
7849
7862
|
htmlColor: f,
|
|
7850
7863
|
inheritViewBox: m = !1,
|
|
7851
7864
|
titleAccess: A,
|
|
7852
|
-
viewBox:
|
|
7865
|
+
viewBox: x = "0 0 24 24",
|
|
7853
7866
|
...b
|
|
7854
|
-
} = n, g = /* @__PURE__ */
|
|
7867
|
+
} = n, g = /* @__PURE__ */ Fe.isValidElement(o) && o.type === "svg", p = {
|
|
7855
7868
|
...n,
|
|
7856
7869
|
color: s,
|
|
7857
7870
|
component: a,
|
|
7858
7871
|
fontSize: u,
|
|
7859
7872
|
instanceFontSize: t.fontSize,
|
|
7860
7873
|
inheritViewBox: m,
|
|
7861
|
-
viewBox:
|
|
7874
|
+
viewBox: x,
|
|
7862
7875
|
hasSvgAsChild: g
|
|
7863
7876
|
}, y = {};
|
|
7864
|
-
m || (y.viewBox =
|
|
7865
|
-
const
|
|
7877
|
+
m || (y.viewBox = x);
|
|
7878
|
+
const P = zu(p);
|
|
7866
7879
|
return /* @__PURE__ */ h.jsxs(Hu, {
|
|
7867
7880
|
as: a,
|
|
7868
|
-
className: ni(
|
|
7881
|
+
className: ni(P.root, i),
|
|
7869
7882
|
focusable: "false",
|
|
7870
7883
|
color: f,
|
|
7871
7884
|
"aria-hidden": A ? void 0 : !0,
|
|
@@ -7953,7 +7966,7 @@ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
|
|
|
7953
7966
|
viewBox: G.string
|
|
7954
7967
|
});
|
|
7955
7968
|
Yt.muiName = "SvgIcon";
|
|
7956
|
-
function
|
|
7969
|
+
function Pe(e, t) {
|
|
7957
7970
|
function r(n, o) {
|
|
7958
7971
|
return /* @__PURE__ */ h.jsx(Yt, {
|
|
7959
7972
|
"data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0,
|
|
@@ -7962,21 +7975,21 @@ function Ie(e, t) {
|
|
|
7962
7975
|
children: e
|
|
7963
7976
|
});
|
|
7964
7977
|
}
|
|
7965
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = Yt.muiName, /* @__PURE__ */
|
|
7978
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = Yt.muiName, /* @__PURE__ */ Fe.memo(/* @__PURE__ */ Fe.forwardRef(r));
|
|
7966
7979
|
}
|
|
7967
|
-
const Wu =
|
|
7980
|
+
const Wu = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7968
7981
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 16H7v-.24C8.42 17.62 10.16 17 12 17s3.58.62 5 1.76zm2-1.14C17.2 16.09 14.73 15 12 15s-5.2 1.09-7 2.86V5h14zM12 13c1.93 0 3.5-1.57 3.5-3.5S13.93 6 12 6 8.5 7.57 8.5 9.5 10.07 13 12 13m0-5c.83 0 1.5.67 1.5 1.5S12.83 11 12 11s-1.5-.67-1.5-1.5S11.17 8 12 8"
|
|
7969
|
-
}), "AccountBoxOutlined"), Ku =
|
|
7982
|
+
}), "AccountBoxOutlined"), Ku = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7970
7983
|
d: "m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"
|
|
7971
|
-
}), "DeviceHubOutlined"), qu =
|
|
7984
|
+
}), "DeviceHubOutlined"), qu = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7972
7985
|
d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 4h7l5 5v8.58l-1.84-1.84c1.28-1.94 1.07-4.57-.64-6.28C14.55 8.49 13.28 8 12 8s-2.55.49-3.53 1.46c-1.95 1.95-1.95 5.11 0 7.05.97.97 2.25 1.46 3.53 1.46.96 0 1.92-.28 2.75-.83L17.6 20H6zm8.11 11.1c-.56.56-1.31.88-2.11.88s-1.55-.31-2.11-.88c-.56-.56-.88-1.31-.88-2.11s.31-1.55.88-2.11c.56-.57 1.31-.88 2.11-.88s1.55.31 2.11.88c.56.56.88 1.31.88 2.11s-.31 1.55-.88 2.11"
|
|
7973
|
-
}), "FindInPageOutlined"), Ju =
|
|
7986
|
+
}), "FindInPageOutlined"), Ju = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7974
7987
|
d: "M12.22 19.85c-.18.18-.5.21-.71 0-.18-.18-.21-.5 0-.71l3.39-3.39-1.41-1.41-3.39 3.39c-.19.2-.51.19-.71 0-.21-.21-.18-.53 0-.71l3.39-3.39-1.41-1.41-3.39 3.39c-.18.18-.5.21-.71 0-.19-.19-.19-.51 0-.71l3.39-3.39-1.42-1.41-3.39 3.39c-.18.18-.5.21-.71 0-.19-.2-.19-.51 0-.71L9.52 8.4l1.87 1.86c.95.95 2.59.94 3.54 0 .98-.98.98-2.56 0-3.54l-1.86-1.86.28-.28c.78-.78 2.05-.78 2.83 0l4.24 4.24c.78.78.78 2.05 0 2.83zm9.61-6.78c1.56-1.56 1.56-4.09 0-5.66l-4.24-4.24c-1.56-1.56-4.09-1.56-5.66 0l-.28.28-.28-.28c-1.56-1.56-4.09-1.56-5.66 0L2.17 6.71C.75 8.13.62 10.34 1.77 11.9l1.45-1.45c-.39-.75-.26-1.7.37-2.33l3.54-3.54c.78-.78 2.05-.78 2.83 0l3.56 3.56c.18.18.21.5 0 .71s-.53.18-.71 0L9.52 5.57l-5.8 5.79c-.98.97-.98 2.56 0 3.54.39.39.89.63 1.42.7.07.52.3 1.02.7 1.42s.9.63 1.42.7c.07.52.3 1.02.7 1.42s.9.63 1.42.7c.07.54.31 1.03.7 1.42.47.47 1.1.73 1.77.73s1.3-.26 1.77-.73z"
|
|
7975
|
-
}), "HandshakeOutlined"), bo =
|
|
7988
|
+
}), "HandshakeOutlined"), bo = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7976
7989
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m.89-8.9c-1.78-.59-2.64-.96-2.64-1.9 0-1.02 1.11-1.39 1.81-1.39 1.31 0 1.79.99 1.9 1.34l1.58-.67c-.15-.44-.82-1.91-2.66-2.23V5h-1.75v1.26c-2.6.56-2.62 2.85-2.62 2.96 0 2.27 2.25 2.91 3.35 3.31 1.58.56 2.28 1.07 2.28 2.03 0 1.13-1.05 1.61-1.98 1.61-1.82 0-2.34-1.87-2.4-2.09l-1.66.67c.63 2.19 2.28 2.78 3.02 2.96V19h1.75v-1.24c.52-.09 3.02-.59 3.02-3.22.01-1.39-.6-2.61-3-3.44"
|
|
7977
|
-
}), "PaidOutlined"), Qu =
|
|
7990
|
+
}), "PaidOutlined"), Qu = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7978
7991
|
d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8zM6 20V4h7v4h5v12zm5-1h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4v-2h-2V9h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2z"
|
|
7979
|
-
}), "RequestQuoteOutlined"), Yu =
|
|
7992
|
+
}), "RequestQuoteOutlined"), Yu = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
7980
7993
|
d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"
|
|
7981
7994
|
}), "SettingsOutlined"), Gu = Zr(
|
|
7982
7995
|
/* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ h.jsx(
|
|
@@ -8005,7 +8018,7 @@ const Wu = Ie(/* @__PURE__ */ h.jsx("path", {
|
|
|
8005
8018
|
}
|
|
8006
8019
|
) }),
|
|
8007
8020
|
"UnloadIcono"
|
|
8008
|
-
), Nr = localStorage.getItem("terminal"),
|
|
8021
|
+
), Nr = localStorage.getItem("terminal"), Ie = {
|
|
8009
8022
|
general: Symbol("cargando-toolbar/general"),
|
|
8010
8023
|
terminales: Symbol("cargando-toolbar/linea"),
|
|
8011
8024
|
nombreUsuario: Symbol("cargando-toolbar/nombre-usuario"),
|
|
@@ -8098,7 +8111,7 @@ const Wu = Ie(/* @__PURE__ */ h.jsx("path", {
|
|
|
8098
8111
|
nombre: "Recolecciones y entregas",
|
|
8099
8112
|
icono: bo
|
|
8100
8113
|
}
|
|
8101
|
-
], td =
|
|
8114
|
+
], td = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
8102
8115
|
d: "M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
8103
8116
|
}), "ExitToAppOutlined"), tt = or(() => ({
|
|
8104
8117
|
...ed,
|
|
@@ -8134,19 +8147,19 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8134
8147
|
onCerrarSesion: e,
|
|
8135
8148
|
acciones: t
|
|
8136
8149
|
}) => {
|
|
8137
|
-
const [r, n] = Gt(null), [o] =
|
|
8150
|
+
const [r, n] = Gt(null), [o] = Ve(Ie.general), [i] = Ve(Ie.avatar), s = lt(
|
|
8138
8151
|
() => o || i,
|
|
8139
8152
|
[o, i]
|
|
8140
|
-
), a = $e((
|
|
8153
|
+
), a = $e((x) => x.avatar), u = $e((x) => x.nombre), f = lt(() => {
|
|
8141
8154
|
var b, g;
|
|
8142
|
-
const
|
|
8143
|
-
return `${((b =
|
|
8144
|
-
}, [u]), m =
|
|
8145
|
-
(
|
|
8146
|
-
n(
|
|
8155
|
+
const x = u == null ? void 0 : u.split(" ");
|
|
8156
|
+
return `${((b = x == null ? void 0 : x[0]) == null ? void 0 : b.charAt(0)) ?? ""}${((g = x == null ? void 0 : x[1]) == null ? void 0 : g.charAt(0)) ?? ""}`;
|
|
8157
|
+
}, [u]), m = xe(
|
|
8158
|
+
(x) => {
|
|
8159
|
+
n(x.currentTarget);
|
|
8147
8160
|
},
|
|
8148
8161
|
[]
|
|
8149
|
-
), A =
|
|
8162
|
+
), A = xe(() => {
|
|
8150
8163
|
n(null);
|
|
8151
8164
|
}, []);
|
|
8152
8165
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
@@ -8175,14 +8188,14 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8175
8188
|
anchorEl: r,
|
|
8176
8189
|
onClose: A,
|
|
8177
8190
|
children: [
|
|
8178
|
-
t == null ? void 0 : t.map(({ nombre:
|
|
8191
|
+
t == null ? void 0 : t.map(({ nombre: x, icono: b, slotProps: g }) => {
|
|
8179
8192
|
const p = typeof b == "string" ? /* @__PURE__ */ h.jsx(Zt, { children: b }) : b ? /* @__PURE__ */ h.jsx(b, {}) : null;
|
|
8180
8193
|
return /* @__PURE__ */ h.jsxs($r, { ...g == null ? void 0 : g.MenuItem, children: [
|
|
8181
8194
|
p && /* @__PURE__ */ h.jsx(ut, { children: p }),
|
|
8182
8195
|
/* @__PURE__ */ h.jsx(
|
|
8183
8196
|
ve,
|
|
8184
8197
|
{
|
|
8185
|
-
primary:
|
|
8198
|
+
primary: x,
|
|
8186
8199
|
slotProps: {
|
|
8187
8200
|
primary: {
|
|
8188
8201
|
fontWeight: 500
|
|
@@ -8213,7 +8226,7 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8213
8226
|
}, od = () => {
|
|
8214
8227
|
const e = $e(
|
|
8215
8228
|
(n) => n.terminales.find((o) => n.terminal === o.codigo)
|
|
8216
|
-
), t =
|
|
8229
|
+
), t = xe(
|
|
8217
8230
|
(n) => Je.getState().setTerminal(n),
|
|
8218
8231
|
[]
|
|
8219
8232
|
);
|
|
@@ -8222,14 +8235,14 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8222
8235
|
[e, t]
|
|
8223
8236
|
);
|
|
8224
8237
|
}, id = () => {
|
|
8225
|
-
const [e, t] = od(), r = $e((o) => o.terminales), n =
|
|
8238
|
+
const [e, t] = od(), r = $e((o) => o.terminales), n = xe(
|
|
8226
8239
|
(o) => {
|
|
8227
8240
|
t(Number(o.target.value));
|
|
8228
8241
|
},
|
|
8229
8242
|
[t]
|
|
8230
8243
|
);
|
|
8231
8244
|
return /* @__PURE__ */ h.jsx(
|
|
8232
|
-
|
|
8245
|
+
Ft,
|
|
8233
8246
|
{
|
|
8234
8247
|
title: r.length && e ? "" : "Selecciona una terminal",
|
|
8235
8248
|
placement: "top",
|
|
@@ -8268,7 +8281,7 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8268
8281
|
{
|
|
8269
8282
|
value: o,
|
|
8270
8283
|
children: /* @__PURE__ */ h.jsx(
|
|
8271
|
-
|
|
8284
|
+
Ft,
|
|
8272
8285
|
{
|
|
8273
8286
|
title: s,
|
|
8274
8287
|
placement: "left",
|
|
@@ -8305,9 +8318,9 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8305
8318
|
}) => {
|
|
8306
8319
|
const r = $e((a) => a.nombre), n = $e(
|
|
8307
8320
|
(a) => !!a.terminales.length
|
|
8308
|
-
), [o] =
|
|
8309
|
-
|
|
8310
|
-
), [s] =
|
|
8321
|
+
), [o] = Ve(Ie.general), [i] = Ve(
|
|
8322
|
+
Ie.nombreUsuario
|
|
8323
|
+
), [s] = Ve(Ie.terminales);
|
|
8311
8324
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
8312
8325
|
/* @__PURE__ */ h.jsxs(fe, { mr: 2, display: "flex", flexDirection: "column", alignItems: "flex-end", children: [
|
|
8313
8326
|
/* @__PURE__ */ h.jsx(
|
|
@@ -8340,9 +8353,9 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8340
8353
|
] }),
|
|
8341
8354
|
/* @__PURE__ */ h.jsx(nd, { acciones: e, onCerrarSesion: t })
|
|
8342
8355
|
] });
|
|
8343
|
-
}, ad =
|
|
8356
|
+
}, ad = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
8344
8357
|
d: "M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"
|
|
8345
|
-
}), "Apps"), cd =
|
|
8358
|
+
}), "Apps"), cd = Pe(/* @__PURE__ */ h.jsx("path", {
|
|
8346
8359
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
8347
8360
|
}), "Menu"), ld = ({
|
|
8348
8361
|
apps: e = [],
|
|
@@ -8353,14 +8366,14 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8353
8366
|
iconoApp: i
|
|
8354
8367
|
}) => {
|
|
8355
8368
|
const s = Xo(
|
|
8356
|
-
(
|
|
8357
|
-
), [a] =
|
|
8358
|
-
(
|
|
8359
|
-
), b = Ri(null), g =
|
|
8369
|
+
(P) => !!P.toolbar.length
|
|
8370
|
+
), [a] = Ve(Ie.apps), [u] = Ve(Ie.general), [f] = Ve(Ie.nombreApp), m = Ye((P) => P.inhabilitado), A = $e((P) => P.abrirApps), x = $e(
|
|
8371
|
+
(P) => P.mostrarBotonDrawer
|
|
8372
|
+
), b = Ri(null), g = xe(() => {
|
|
8360
8373
|
Je.setState({ abrirApps: !0 });
|
|
8361
|
-
}, []), p =
|
|
8374
|
+
}, []), p = xe(() => {
|
|
8362
8375
|
Je.setState({ abrirApps: !1 });
|
|
8363
|
-
}, []), y =
|
|
8376
|
+
}, []), y = xe(() => {
|
|
8364
8377
|
Le.setState({ abierto: !Le.getState().abierto });
|
|
8365
8378
|
}, []);
|
|
8366
8379
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
@@ -8368,7 +8381,7 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8368
8381
|
Mi,
|
|
8369
8382
|
{
|
|
8370
8383
|
position: "fixed",
|
|
8371
|
-
sx: { zIndex: (
|
|
8384
|
+
sx: { zIndex: (P) => P.zIndex.drawer + 1 },
|
|
8372
8385
|
children: [
|
|
8373
8386
|
/* @__PURE__ */ h.jsx(Gr, { children: /* @__PURE__ */ h.jsxs(
|
|
8374
8387
|
fe,
|
|
@@ -8379,7 +8392,7 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8379
8392
|
justifyContent: "space-between",
|
|
8380
8393
|
children: [
|
|
8381
8394
|
/* @__PURE__ */ h.jsxs(fe, { display: "flex", alignItems: "center", children: [
|
|
8382
|
-
/* @__PURE__ */ h.jsx(Di, { in:
|
|
8395
|
+
/* @__PURE__ */ h.jsx(Di, { in: x, children: /* @__PURE__ */ h.jsx(
|
|
8383
8396
|
pn,
|
|
8384
8397
|
{
|
|
8385
8398
|
onClick: y,
|
|
@@ -8414,12 +8427,12 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8414
8427
|
]
|
|
8415
8428
|
}
|
|
8416
8429
|
) }),
|
|
8417
|
-
/* @__PURE__ */ h.jsx(Bi, { in: s, children: /* @__PURE__ */ h.jsx(
|
|
8430
|
+
/* @__PURE__ */ h.jsx(Bi, { in: s, children: /* @__PURE__ */ h.jsx(Vi, {}) })
|
|
8418
8431
|
]
|
|
8419
8432
|
}
|
|
8420
8433
|
),
|
|
8421
8434
|
/* @__PURE__ */ h.jsx(
|
|
8422
|
-
|
|
8435
|
+
Fi,
|
|
8423
8436
|
{
|
|
8424
8437
|
open: A,
|
|
8425
8438
|
anchorEl: b.current,
|
|
@@ -8432,12 +8445,12 @@ const Je = tt, $e = tt, nd = ({
|
|
|
8432
8445
|
dc,
|
|
8433
8446
|
{
|
|
8434
8447
|
apps: e.map(
|
|
8435
|
-
(
|
|
8436
|
-
...
|
|
8448
|
+
(P) => P.id === o ? {
|
|
8449
|
+
...P,
|
|
8437
8450
|
link: new URL(window.location.href),
|
|
8438
8451
|
...typeof t == "string" ? { nombre: t } : {},
|
|
8439
8452
|
...i ? { icono: i } : {}
|
|
8440
|
-
} :
|
|
8453
|
+
} : P
|
|
8441
8454
|
)
|
|
8442
8455
|
}
|
|
8443
8456
|
)
|
|
@@ -8524,16 +8537,16 @@ function pd({
|
|
|
8524
8537
|
LinkComponent: s,
|
|
8525
8538
|
tema: a
|
|
8526
8539
|
}) {
|
|
8527
|
-
const u = Qo(), f = dd((g) => g.permisos), [m, A] = Gt([]),
|
|
8540
|
+
const u = Qo(), f = dd((g) => g.permisos), [m, A] = Gt([]), x = () => {
|
|
8528
8541
|
u.logout();
|
|
8529
8542
|
}, b = o.reduce((g, p) => {
|
|
8530
|
-
var
|
|
8531
|
-
const y = (
|
|
8543
|
+
var P, F;
|
|
8544
|
+
const y = (P = f == null ? void 0 : f.menus) == null ? void 0 : P.find(({ id: D }) => p.id === D);
|
|
8532
8545
|
return y ? [
|
|
8533
8546
|
...g,
|
|
8534
8547
|
{
|
|
8535
8548
|
...p,
|
|
8536
|
-
subMenus: (
|
|
8549
|
+
subMenus: (F = p.subMenus) == null ? void 0 : F.filter(
|
|
8537
8550
|
({ id: D }) => {
|
|
8538
8551
|
var j;
|
|
8539
8552
|
return (j = y == null ? void 0 : y.sub_menu) == null ? void 0 : j.some(({ id: _ }) => D === _);
|
|
@@ -8566,12 +8579,12 @@ function pd({
|
|
|
8566
8579
|
tokenLength: ($ = u.token) == null ? void 0 : $.length,
|
|
8567
8580
|
tokenPreview: ((W = u.token) == null ? void 0 : W.substring(0, 50)) + "..."
|
|
8568
8581
|
});
|
|
8569
|
-
const y = u.idTokenParsed, { terminal:
|
|
8582
|
+
const y = u.idTokenParsed, { terminal: P, setTerminal: F } = Je.getState(), D = `${(y == null ? void 0 : y.given_name) ?? ""}${y != null && y.given_name && (y != null && y.family_name) ? " " : ""}${y == null ? void 0 : y.family_name}`;
|
|
8570
8583
|
Je.setState({
|
|
8571
8584
|
nombre: D
|
|
8572
8585
|
});
|
|
8573
8586
|
const j = y.terminal;
|
|
8574
|
-
typeof
|
|
8587
|
+
typeof P != "number" && typeof j == "number" && F(Number(j));
|
|
8575
8588
|
const _ = y.email;
|
|
8576
8589
|
_ ? Ta(_, n, i).then(async (z) => {
|
|
8577
8590
|
var B, Y, Z, pe, c;
|
|
@@ -8583,8 +8596,8 @@ function pd({
|
|
|
8583
8596
|
A(
|
|
8584
8597
|
wi.filter(
|
|
8585
8598
|
({ id: l }) => {
|
|
8586
|
-
var S, C,
|
|
8587
|
-
return (
|
|
8599
|
+
var S, C, E;
|
|
8600
|
+
return (E = (C = (S = z.response) == null ? void 0 : S[0]) == null ? void 0 : C.permisos) == null ? void 0 : E.aplicaciones.some(
|
|
8588
8601
|
({ id: R }) => l === R
|
|
8589
8602
|
);
|
|
8590
8603
|
}
|
|
@@ -8607,15 +8620,15 @@ function pd({
|
|
|
8607
8620
|
mostrarBotonDrawer: !0,
|
|
8608
8621
|
terminalDeNomina: K
|
|
8609
8622
|
}), Le.setState({ cargando: !1 });
|
|
8610
|
-
const { terminal: U, setTerminal:
|
|
8611
|
-
U ||
|
|
8612
|
-
Number.isNaN(
|
|
8623
|
+
const { terminal: U, setTerminal: I } = Je.getState(), V = Number(y == null ? void 0 : y.terminal);
|
|
8624
|
+
U || I(
|
|
8625
|
+
Number.isNaN(V) ? d[0].codigo : V
|
|
8613
8626
|
);
|
|
8614
8627
|
}).catch((z) => {
|
|
8615
8628
|
console.error("Error al obtener permisos", z);
|
|
8616
8629
|
}).finally(
|
|
8617
|
-
() => So(
|
|
8618
|
-
) : So(
|
|
8630
|
+
() => So(Ie.general, !1, !0)
|
|
8631
|
+
) : So(Ie.general, !1, !0);
|
|
8619
8632
|
});
|
|
8620
8633
|
}, [t, u, n, i]), /* @__PURE__ */ h.jsx(zi, { theme: a ?? Kr, children: /* @__PURE__ */ h.jsx(
|
|
8621
8634
|
ud,
|
|
@@ -8623,7 +8636,7 @@ function pd({
|
|
|
8623
8636
|
apps: m,
|
|
8624
8637
|
menus: b,
|
|
8625
8638
|
nombreApp: r ?? (f == null ? void 0 : f.nombre),
|
|
8626
|
-
onCerrarSesion:
|
|
8639
|
+
onCerrarSesion: x,
|
|
8627
8640
|
LinkComponent: s,
|
|
8628
8641
|
children: e
|
|
8629
8642
|
}
|
|
@@ -8638,7 +8651,7 @@ const Gd = {
|
|
|
8638
8651
|
welcomeSubtitle: r = "Autentícate para acceder al ecosistema digital de aplicaciones de Coordinadora.",
|
|
8639
8652
|
corporateAccessLabel: n = "Ingresa únicamente con tu correo @coordinadora.com"
|
|
8640
8653
|
}) => {
|
|
8641
|
-
const o = Qo(), i =
|
|
8654
|
+
const o = Qo(), i = xe(() => {
|
|
8642
8655
|
o.login({ idpHint: "google" });
|
|
8643
8656
|
}, [o]);
|
|
8644
8657
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -8712,7 +8725,7 @@ const Gd = {
|
|
|
8712
8725
|
}
|
|
8713
8726
|
),
|
|
8714
8727
|
/* @__PURE__ */ h.jsx(
|
|
8715
|
-
|
|
8728
|
+
Eo,
|
|
8716
8729
|
{
|
|
8717
8730
|
fullWidth: !0,
|
|
8718
8731
|
variant: "outlined",
|
|
@@ -8888,7 +8901,7 @@ const ${e}Story = () => {
|
|
|
8888
8901
|
alignItems: "flex-end",
|
|
8889
8902
|
flexDirection: "column",
|
|
8890
8903
|
children: [
|
|
8891
|
-
/* @__PURE__ */ h.jsx(fe, { display: "flex", alignItems: "center", children: (o = r.botones) == null ? void 0 : o.map(({ nombre: i, onClick: s }) => /* @__PURE__ */ h.jsx(
|
|
8904
|
+
/* @__PURE__ */ h.jsx(fe, { display: "flex", alignItems: "center", children: (o = r.botones) == null ? void 0 : o.map(({ nombre: i, onClick: s }) => /* @__PURE__ */ h.jsx(Eo, { onClick: s, children: i })) }),
|
|
8892
8905
|
/* @__PURE__ */ h.jsxs(
|
|
8893
8906
|
"pre",
|
|
8894
8907
|
{
|
|
@@ -8930,7 +8943,7 @@ export {
|
|
|
8930
8943
|
Gu as DresserIcono,
|
|
8931
8944
|
Qa as GoogleLogo,
|
|
8932
8945
|
gd as Icono,
|
|
8933
|
-
|
|
8946
|
+
Pa as KEY_TOKEN_DEFECTO,
|
|
8934
8947
|
Kd as KeycloakProvider,
|
|
8935
8948
|
Zu as LoadIcono,
|
|
8936
8949
|
Zd as LoginPage,
|
|
@@ -8950,23 +8963,23 @@ export {
|
|
|
8950
8963
|
ed as estadoInicialToolbar,
|
|
8951
8964
|
Je as estadoToolbar,
|
|
8952
8965
|
Wd as getLoginKeycloak,
|
|
8953
|
-
|
|
8966
|
+
Ie as keysCargandoToolbar,
|
|
8954
8967
|
zd as menusPermitidos,
|
|
8955
8968
|
Yd as obtenerAppsToolbar,
|
|
8956
8969
|
Ra as obtenerCookie,
|
|
8957
|
-
|
|
8970
|
+
Ia as obtenerHash,
|
|
8958
8971
|
Ta as obtenerPermisos,
|
|
8959
8972
|
ka as obtenerTerminales,
|
|
8960
8973
|
Ko as obtenerToken,
|
|
8961
8974
|
qd as openID,
|
|
8962
|
-
|
|
8975
|
+
Vd as removeCookie,
|
|
8963
8976
|
Oa as setCookie,
|
|
8964
8977
|
Jd as setDrawerHabilitado,
|
|
8965
8978
|
Qd as setMenuSeleccionado,
|
|
8966
8979
|
Kt as storeCargando,
|
|
8967
8980
|
Kr as tema,
|
|
8968
|
-
|
|
8969
|
-
|
|
8981
|
+
Fd as terminalesPermitidas,
|
|
8982
|
+
Ve as useCargando,
|
|
8970
8983
|
dd as useEstadoAuth,
|
|
8971
8984
|
Ye as useEstadoDrawer,
|
|
8972
8985
|
$e as useEstadoToolbar,
|