@cm-sigoo-temp/ui 0.2.30 → 0.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -102
- package/dist/lib/api/permisos.d.ts +1 -1
- package/dist/lib/cm-sigoo-temp-ui.js +185 -184
- package/dist/lib/cm-sigoo-temp-ui.js.map +1 -1
- package/dist/lib/components/Toolbar/tipos.d.ts +3 -0
- package/package.json +1 -2
|
@@ -3,24 +3,24 @@ var Wn = (e, r, t) => r in e ? zn(e, r, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var rr = (e, r, t) => Wn(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
4
|
import * as Me from "react";
|
|
5
5
|
import rt, { useCallback as ye, useMemo as Ze, useState as Er, createElement as Hn, useRef as Qn, useEffect as Kn } from "react";
|
|
6
|
-
import { createTheme as Jn, responsiveFontSizes as Gn, ListItemIcon as Xe, Icon as Tr, Tooltip as br, ListItem as ve, ListItemButton as xe, ListItemText as he, ListSubheader as tt, Divider as Ar, Drawer as Yn, Toolbar as pt, List as qn, Skeleton as fe, Typography as Se, Box as
|
|
6
|
+
import { createTheme as Jn, responsiveFontSizes as Gn, ListItemIcon as Xe, Icon as Tr, Tooltip as br, ListItem as ve, ListItemButton as xe, ListItemText as he, ListSubheader as tt, Divider as Ar, Drawer as Yn, Toolbar as pt, List as qn, Skeleton as fe, Typography as Se, Box as ce, Grid as sr, ButtonBase as dn, Paper as Zn, createSvgIcon as mt, Avatar as Xn, CircularProgress as fn, Menu as eo, MenuItem as nt, TextField as ro, AppBar as to, Zoom as no, IconButton as St, Collapse as oo, LinearProgress as ao, Popover as io, ThemeProvider as so, Button as pn } from "@mui/material";
|
|
7
7
|
import co from "@emotion/styled";
|
|
8
8
|
import "@emotion/react";
|
|
9
|
-
const lo = async (e, r) => {
|
|
10
|
-
const
|
|
11
|
-
"https://
|
|
12
|
-
)
|
|
13
|
-
|
|
9
|
+
const lo = async (e, r, t) => {
|
|
10
|
+
const n = new URL(
|
|
11
|
+
"https://autorizaciones-service-dev.coordinadora.com/permisos/generar"
|
|
12
|
+
), o = {
|
|
13
|
+
Accept: "application/json",
|
|
14
|
+
"Content-Type": "application/json"
|
|
15
|
+
};
|
|
16
|
+
return t && (o.Authorization = `Bearer ${t}`), (await fetch(n, {
|
|
14
17
|
method: "post",
|
|
15
18
|
body: JSON.stringify({
|
|
16
19
|
usuario: e,
|
|
17
20
|
tipo: "web",
|
|
18
21
|
plataforma: r
|
|
19
22
|
}),
|
|
20
|
-
headers:
|
|
21
|
-
ACcept: "application/json",
|
|
22
|
-
"Content-Type": "application/json"
|
|
23
|
-
}
|
|
23
|
+
headers: o
|
|
24
24
|
})).json();
|
|
25
25
|
}, uo = async () => {
|
|
26
26
|
const e = new URL("https://api.coordinadora.com/cm-model-testing/api/v1/terminales");
|
|
@@ -151,7 +151,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
151
151
|
}, $ = {};
|
|
152
152
|
switch (i.onLoad) {
|
|
153
153
|
case "check-sso":
|
|
154
|
-
a.enable ?
|
|
154
|
+
a.enable ? le().then(function() {
|
|
155
155
|
c().then(function(P) {
|
|
156
156
|
P ? A.setSuccess() : r.silentCheckSsoRedirectUri ? T() : m(!1);
|
|
157
157
|
}).catch(function(P) {
|
|
@@ -169,14 +169,14 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
169
169
|
function g() {
|
|
170
170
|
var m = R(window.location.href);
|
|
171
171
|
if (m && window.history.replaceState(window.history.state, null, m.newUrl), m && m.valid)
|
|
172
|
-
return
|
|
172
|
+
return le().then(function() {
|
|
173
173
|
_(m, A);
|
|
174
174
|
}).catch(function(T) {
|
|
175
175
|
A.setError(T);
|
|
176
176
|
});
|
|
177
|
-
i.token && i.refreshToken ? (V(i.token, i.refreshToken, i.idToken), a.enable ?
|
|
177
|
+
i.token && i.refreshToken ? (V(i.token, i.refreshToken, i.idToken), a.enable ? le().then(function() {
|
|
178
178
|
c().then(function(T) {
|
|
179
|
-
T ? (r.onAuthSuccess && r.onAuthSuccess(), A.setSuccess(),
|
|
179
|
+
T ? (r.onAuthSuccess && r.onAuthSuccess(), A.setSuccess(), W()) : A.setSuccess();
|
|
180
180
|
}).catch(function(T) {
|
|
181
181
|
A.setError(T);
|
|
182
182
|
});
|
|
@@ -370,7 +370,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
370
370
|
if ($.readyState == 4)
|
|
371
371
|
if ($.status == 200) {
|
|
372
372
|
var z = JSON.parse($.responseText);
|
|
373
|
-
P(z.access_token, z.refresh_token, z.id_token, r.flow === "standard"),
|
|
373
|
+
P(z.access_token, z.refresh_token, z.id_token, r.flow === "standard"), W();
|
|
374
374
|
} else
|
|
375
375
|
r.onAuthError && r.onAuthError(), s && s.setError();
|
|
376
376
|
}, $.send(m);
|
|
@@ -503,7 +503,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
503
503
|
}
|
|
504
504
|
s.push("error"), s.push("error_description"), s.push("error_uri");
|
|
505
505
|
var y = i.indexOf("?"), A = i.indexOf("#"), b, k;
|
|
506
|
-
if (r.responseMode === "query" && y !== -1 ? (b = i.substring(0, y), k =
|
|
506
|
+
if (r.responseMode === "query" && y !== -1 ? (b = i.substring(0, y), k = H(i.substring(y + 1, A !== -1 ? A : i.length), s), k.paramsString !== "" && (b += "?" + k.paramsString), A !== -1 && (b += i.substring(A))) : r.responseMode === "fragment" && A !== -1 && (b = i.substring(0, A), k = H(i.substring(A + 1), s), k.paramsString !== "" && (b += "#" + k.paramsString)), k && k.oauthParams) {
|
|
507
507
|
if (r.flow === "standard" || r.flow === "hybrid") {
|
|
508
508
|
if ((k.oauthParams.code || k.oauthParams.error) && k.oauthParams.state)
|
|
509
509
|
return k.oauthParams.newUrl = b, k.oauthParams;
|
|
@@ -511,7 +511,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
511
511
|
return k.oauthParams.newUrl = b, k.oauthParams;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function H(i, s) {
|
|
515
515
|
for (var y = i.split("&"), A = {
|
|
516
516
|
paramsString: "",
|
|
517
517
|
oauthParams: {}
|
|
@@ -544,7 +544,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
544
544
|
clearTimeout(A);
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function le() {
|
|
548
548
|
var i = F();
|
|
549
549
|
if (!a.enable || a.iframe)
|
|
550
550
|
return i.setSuccess(), i.promise;
|
|
@@ -566,10 +566,10 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
566
566
|
};
|
|
567
567
|
return window.addEventListener("message", A, !1), i.promise;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function W() {
|
|
570
570
|
a.enable && r.token && setTimeout(function() {
|
|
571
571
|
c().then(function(i) {
|
|
572
|
-
i &&
|
|
572
|
+
i && W();
|
|
573
573
|
});
|
|
574
574
|
}, a.interval * 1e3);
|
|
575
575
|
}
|
|
@@ -668,14 +668,14 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
668
668
|
};
|
|
669
669
|
return P.addEventListener("loadstart", function(de) {
|
|
670
670
|
if (de.url.indexOf(k()) == 0) {
|
|
671
|
-
var
|
|
672
|
-
_(
|
|
671
|
+
var He = R(de.url);
|
|
672
|
+
_(He, m), se(), z = !0;
|
|
673
673
|
}
|
|
674
674
|
}), P.addEventListener("loaderror", function(de) {
|
|
675
675
|
if (!z)
|
|
676
676
|
if (de.url.indexOf(k()) == 0) {
|
|
677
|
-
var
|
|
678
|
-
_(
|
|
677
|
+
var He = R(de.url);
|
|
678
|
+
_(He, m), se(), z = !0;
|
|
679
679
|
} else
|
|
680
680
|
m.setError(), se();
|
|
681
681
|
}), P.addEventListener("exit", function(de) {
|
|
@@ -902,7 +902,7 @@ function vo(e) {
|
|
|
902
902
|
function zr(e) {
|
|
903
903
|
return typeof e == "object" && e !== null;
|
|
904
904
|
}
|
|
905
|
-
const
|
|
905
|
+
const De = new hn({
|
|
906
906
|
clientId: "sigo-cli",
|
|
907
907
|
realm: "autenticacion_usuarios",
|
|
908
908
|
url: "https://cmautenticacion-dev.coordinadora.com"
|
|
@@ -1108,7 +1108,7 @@ function Oo() {
|
|
|
1108
1108
|
function e(s) {
|
|
1109
1109
|
if (s == null) return null;
|
|
1110
1110
|
if (typeof s == "function")
|
|
1111
|
-
return s.$$typeof ===
|
|
1111
|
+
return s.$$typeof === W ? null : s.displayName || s.name || null;
|
|
1112
1112
|
if (typeof s == "string") return s;
|
|
1113
1113
|
switch (s) {
|
|
1114
1114
|
case _:
|
|
@@ -1119,9 +1119,9 @@ function Oo() {
|
|
|
1119
1119
|
return "StrictMode";
|
|
1120
1120
|
case L:
|
|
1121
1121
|
return "Suspense";
|
|
1122
|
-
case
|
|
1122
|
+
case H:
|
|
1123
1123
|
return "SuspenseList";
|
|
1124
|
-
case
|
|
1124
|
+
case le:
|
|
1125
1125
|
return "Activity";
|
|
1126
1126
|
}
|
|
1127
1127
|
if (typeof s == "object")
|
|
@@ -1298,7 +1298,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1298
1298
|
function x(s) {
|
|
1299
1299
|
return typeof s == "object" && s !== null && s.$$typeof === v;
|
|
1300
1300
|
}
|
|
1301
|
-
var E = rt, v = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), j = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"),
|
|
1301
|
+
var E = rt, v = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), j = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), c = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, O = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
1302
1302
|
return null;
|
|
1303
1303
|
};
|
|
1304
1304
|
E = {
|
|
@@ -1954,14 +1954,14 @@ const Rt = (e) => {
|
|
|
1954
1954
|
cargando: !0,
|
|
1955
1955
|
toolbar: !0,
|
|
1956
1956
|
inhabilitado: !1
|
|
1957
|
-
})),
|
|
1957
|
+
})), Ve = Re, lc = (e) => Re.setState({
|
|
1958
1958
|
inhabilitado: typeof e == "boolean" ? e : e(Re.getState().inhabilitado)
|
|
1959
1959
|
}), uc = (e, r) => Re.setState({ seleccion: { menu: e, submenu: r } }), zo = ({
|
|
1960
1960
|
subMenu: e,
|
|
1961
1961
|
menu: r,
|
|
1962
1962
|
LinkComponent: t
|
|
1963
1963
|
}) => {
|
|
1964
|
-
const [n, o] = Er(!1), a =
|
|
1964
|
+
const [n, o] = Er(!1), a = Ve(
|
|
1965
1965
|
({ seleccion: f }) => r === (f == null ? void 0 : f.menu) && (f == null ? void 0 : f.submenu) === e.id
|
|
1966
1966
|
), l = ye(
|
|
1967
1967
|
(f) => {
|
|
@@ -2013,7 +2013,7 @@ const Rt = (e) => {
|
|
|
2013
2013
|
separar: r,
|
|
2014
2014
|
LinkComponent: t
|
|
2015
2015
|
}) => {
|
|
2016
|
-
const [n, o] = Er(!1), a =
|
|
2016
|
+
const [n, o] = Er(!1), a = Ve(
|
|
2017
2017
|
({ seleccion: f }) => (f == null ? void 0 : f.menu) === e.id
|
|
2018
2018
|
), l = ye(
|
|
2019
2019
|
(f) => {
|
|
@@ -2077,9 +2077,9 @@ const Rt = (e) => {
|
|
|
2077
2077
|
menus: e,
|
|
2078
2078
|
LinkComponent: r
|
|
2079
2079
|
}) => {
|
|
2080
|
-
const t =
|
|
2080
|
+
const t = Ve(
|
|
2081
2081
|
(a) => a.abierto && !a.inhabilitado
|
|
2082
|
-
), n =
|
|
2082
|
+
), n = Ve((a) => a.cargando), o = Ve((a) => a.toolbar);
|
|
2083
2083
|
return /* @__PURE__ */ d.jsxs(
|
|
2084
2084
|
Yn,
|
|
2085
2085
|
{
|
|
@@ -2233,9 +2233,9 @@ const Rt = (e) => {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
);
|
|
2235
2235
|
}, Qo = () => {
|
|
2236
|
-
const e =
|
|
2236
|
+
const e = Ve((r) => r.abierto);
|
|
2237
2237
|
return /* @__PURE__ */ d.jsx(
|
|
2238
|
-
|
|
2238
|
+
ce,
|
|
2239
2239
|
{
|
|
2240
2240
|
sx: {
|
|
2241
2241
|
...e ? {
|
|
@@ -2318,13 +2318,13 @@ const Rt = (e) => {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
2320
|
}, Yo = Go();
|
|
2321
|
-
function
|
|
2321
|
+
function ze(e, ...r) {
|
|
2322
2322
|
const t = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
2323
2323
|
return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function We(e) {
|
|
2326
2326
|
if (typeof e != "string")
|
|
2327
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
2327
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ze(7));
|
|
2328
2328
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2329
2329
|
}
|
|
2330
2330
|
var pr = { exports: {} }, mr = { exports: {} }, G = {};
|
|
@@ -2434,14 +2434,14 @@ function Zo() {
|
|
|
2434
2434
|
case C:
|
|
2435
2435
|
return de;
|
|
2436
2436
|
default:
|
|
2437
|
-
var
|
|
2438
|
-
switch (
|
|
2437
|
+
var He = de && de.$$typeof;
|
|
2438
|
+
switch (He) {
|
|
2439
2439
|
case u:
|
|
2440
2440
|
case w:
|
|
2441
2441
|
case v:
|
|
2442
2442
|
case E:
|
|
2443
2443
|
case l:
|
|
2444
|
-
return
|
|
2444
|
+
return He;
|
|
2445
2445
|
default:
|
|
2446
2446
|
return se;
|
|
2447
2447
|
}
|
|
@@ -2451,7 +2451,7 @@ function Zo() {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
|
-
var R = f, L = h,
|
|
2454
|
+
var R = f, L = h, H = u, F = l, re = r, le = w, W = n, c = v, M = E, O = t, N = a, D = o, J = C, ne = !1;
|
|
2455
2455
|
function ue(I) {
|
|
2456
2456
|
return ne || (ne = !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.")), i(I) || j(I) === f;
|
|
2457
2457
|
}
|
|
@@ -2491,7 +2491,7 @@ function Zo() {
|
|
|
2491
2491
|
function z(I) {
|
|
2492
2492
|
return j(I) === C;
|
|
2493
2493
|
}
|
|
2494
|
-
Y.AsyncMode = R, Y.ConcurrentMode = L, Y.ContextConsumer =
|
|
2494
|
+
Y.AsyncMode = R, Y.ConcurrentMode = L, Y.ContextConsumer = H, Y.ContextProvider = F, Y.Element = re, Y.ForwardRef = le, Y.Fragment = W, Y.Lazy = c, Y.Memo = M, Y.Portal = O, Y.Profiler = N, Y.StrictMode = D, Y.Suspense = J, Y.isAsyncMode = ue, Y.isConcurrentMode = i, Y.isContextConsumer = s, Y.isContextProvider = y, Y.isElement = A, Y.isForwardRef = b, Y.isFragment = k, Y.isLazy = g, Y.isMemo = m, Y.isPortal = T, Y.isProfiler = $, Y.isStrictMode = P, Y.isSuspense = z, Y.isValidElementType = V, Y.typeOf = j;
|
|
2495
2495
|
}()), Y;
|
|
2496
2496
|
}
|
|
2497
2497
|
var Pt;
|
|
@@ -2647,9 +2647,9 @@ function ra() {
|
|
|
2647
2647
|
element: j(),
|
|
2648
2648
|
elementType: R(),
|
|
2649
2649
|
instanceOf: L,
|
|
2650
|
-
node:
|
|
2650
|
+
node: le(),
|
|
2651
2651
|
objectOf: F,
|
|
2652
|
-
oneOf:
|
|
2652
|
+
oneOf: H,
|
|
2653
2653
|
oneOfType: re,
|
|
2654
2654
|
shape: c,
|
|
2655
2655
|
exact: M
|
|
@@ -2751,7 +2751,7 @@ function ra() {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
return _(s);
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function H(i) {
|
|
2755
2755
|
if (!Array.isArray(i))
|
|
2756
2756
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
2757
2757
|
"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])."
|
|
@@ -2807,13 +2807,13 @@ function ra() {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
return _(A);
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2810
|
+
function le() {
|
|
2811
2811
|
function i(s, y, A, b, k) {
|
|
2812
2812
|
return O(s[y]) ? null : new p("Invalid " + b + " `" + k + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
2813
2813
|
}
|
|
2814
2814
|
return _(i);
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2816
|
+
function W(i, s, y, A, b) {
|
|
2817
2817
|
return new p(
|
|
2818
2818
|
(i || "React class") + ": " + s + " type `" + y + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + b + "`."
|
|
2819
2819
|
);
|
|
@@ -2826,7 +2826,7 @@ function ra() {
|
|
|
2826
2826
|
for (var $ in i) {
|
|
2827
2827
|
var P = i[$];
|
|
2828
2828
|
if (typeof P != "function")
|
|
2829
|
-
return
|
|
2829
|
+
return W(b, k, g, $, J(P));
|
|
2830
2830
|
var z = P(m, $, b, k, g + "." + $, t);
|
|
2831
2831
|
if (z)
|
|
2832
2832
|
return z;
|
|
@@ -2844,7 +2844,7 @@ function ra() {
|
|
|
2844
2844
|
for (var P in $) {
|
|
2845
2845
|
var z = i[P];
|
|
2846
2846
|
if (n(i, P) && typeof z != "function")
|
|
2847
|
-
return
|
|
2847
|
+
return W(b, k, g, P, J(z));
|
|
2848
2848
|
if (!z)
|
|
2849
2849
|
return new p(
|
|
2850
2850
|
"Invalid " + k + " `" + g + "` key `" + P + "` supplied to `" + b + "`.\nBad object: " + JSON.stringify(y[A], null, " ") + `
|
|
@@ -3334,7 +3334,7 @@ function ie(e) {
|
|
|
3334
3334
|
const u = l[r], f = l.theme, h = Or(f, n) || {};
|
|
3335
3335
|
return _e(l, u, (C) => {
|
|
3336
3336
|
let x = wr(h, o, C);
|
|
3337
|
-
return C === x && typeof C == "string" && (x = wr(h, o, `${r}${C === "default" ? "" :
|
|
3337
|
+
return C === x && typeof C == "string" && (x = wr(h, o, `${r}${C === "default" ? "" : We(C)}`, C)), t === !1 ? x : {
|
|
3338
3338
|
[t]: x
|
|
3339
3339
|
};
|
|
3340
3340
|
});
|
|
@@ -3894,7 +3894,7 @@ function Xa() {
|
|
|
3894
3894
|
const x = Or(o, h) || {};
|
|
3895
3895
|
return C ? C(l) : _e(l, n, (v) => {
|
|
3896
3896
|
let p = wr(x, w, v);
|
|
3897
|
-
return v === p && typeof v == "string" && (p = wr(x, w, `${t}${v === "default" ? "" :
|
|
3897
|
+
return v === p && typeof v == "string" && (p = wr(x, w, `${t}${v === "default" ? "" : We(v)}`, v)), f === !1 ? p : {
|
|
3898
3898
|
[f]: p
|
|
3899
3899
|
};
|
|
3900
3900
|
});
|
|
@@ -4156,7 +4156,7 @@ function ci(e, r) {
|
|
|
4156
4156
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
|
|
4157
4157
|
}
|
|
4158
4158
|
const Yt = [];
|
|
4159
|
-
function
|
|
4159
|
+
function Fe(e) {
|
|
4160
4160
|
return Yt[0] = e, ii(Yt);
|
|
4161
4161
|
}
|
|
4162
4162
|
const li = (e) => {
|
|
@@ -4332,18 +4332,18 @@ function On(e) {
|
|
|
4332
4332
|
...t
|
|
4333
4333
|
} = e, n = {
|
|
4334
4334
|
variants: r,
|
|
4335
|
-
style:
|
|
4335
|
+
style: Fe(t),
|
|
4336
4336
|
isProcessed: !0
|
|
4337
4337
|
};
|
|
4338
4338
|
return n.style === t || r && r.forEach((o) => {
|
|
4339
|
-
typeof o.style != "function" && (o.style =
|
|
4339
|
+
typeof o.style != "function" && (o.style = Fe(o.style));
|
|
4340
4340
|
}), n;
|
|
4341
4341
|
}
|
|
4342
4342
|
const gi = Rn();
|
|
4343
4343
|
function qr(e) {
|
|
4344
4344
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
4345
4345
|
}
|
|
4346
|
-
function
|
|
4346
|
+
function Be(e, r) {
|
|
4347
4347
|
return r && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${r}{${String(e.styles)}}`), e;
|
|
4348
4348
|
}
|
|
4349
4349
|
function yi(e) {
|
|
@@ -4359,17 +4359,17 @@ function yr(e, r, t) {
|
|
|
4359
4359
|
if (Array.isArray(n == null ? void 0 : n.variants)) {
|
|
4360
4360
|
let o;
|
|
4361
4361
|
if (n.isProcessed)
|
|
4362
|
-
o = t ?
|
|
4362
|
+
o = t ? Be(n.style, t) : n.style;
|
|
4363
4363
|
else {
|
|
4364
4364
|
const {
|
|
4365
4365
|
variants: a,
|
|
4366
4366
|
...l
|
|
4367
4367
|
} = n;
|
|
4368
|
-
o = t ?
|
|
4368
|
+
o = t ? Be(Fe(l), t) : l;
|
|
4369
4369
|
}
|
|
4370
4370
|
return In(e, n.variants, [o], t);
|
|
4371
4371
|
}
|
|
4372
|
-
return n != null && n.isProcessed ? t ?
|
|
4372
|
+
return n != null && n.isProcessed ? t ? Be(Fe(n.style), t) : n.style : t ? Be(Fe(n), t) : n;
|
|
4373
4373
|
}
|
|
4374
4374
|
function In(e, r, t = [], n = void 0) {
|
|
4375
4375
|
var a;
|
|
@@ -4391,7 +4391,7 @@ function In(e, r, t = [], n = void 0) {
|
|
|
4391
4391
|
...e,
|
|
4392
4392
|
...e.ownerState,
|
|
4393
4393
|
ownerState: e.ownerState
|
|
4394
|
-
}), t.push(n ?
|
|
4394
|
+
}), t.push(n ? Be(Fe(u.style(o)), n) : u.style(o))) : t.push(n ? Be(Fe(u.style), n) : u.style);
|
|
4395
4395
|
}
|
|
4396
4396
|
return t;
|
|
4397
4397
|
}
|
|
@@ -4406,7 +4406,7 @@ function Ai(e = {}) {
|
|
|
4406
4406
|
bi(u, r, t);
|
|
4407
4407
|
}
|
|
4408
4408
|
return (u, f = {}) => {
|
|
4409
|
-
ci(u, (L) => L.filter((
|
|
4409
|
+
ci(u, (L) => L.filter((H) => H !== er));
|
|
4410
4410
|
const {
|
|
4411
4411
|
name: h,
|
|
4412
4412
|
slot: w,
|
|
@@ -4435,15 +4435,15 @@ function Ai(e = {}) {
|
|
|
4435
4435
|
return yr(F, L, F.theme.modularCssLayers ? p : void 0);
|
|
4436
4436
|
};
|
|
4437
4437
|
if (Ee(L)) {
|
|
4438
|
-
const
|
|
4438
|
+
const H = On(L);
|
|
4439
4439
|
return function(re) {
|
|
4440
|
-
return
|
|
4440
|
+
return H.variants ? yr(re, H, re.theme.modularCssLayers ? p : void 0) : re.theme.modularCssLayers ? Be(H.style, p) : H.style;
|
|
4441
4441
|
};
|
|
4442
4442
|
}
|
|
4443
4443
|
return L;
|
|
4444
4444
|
}, R = (...L) => {
|
|
4445
|
-
const
|
|
4446
|
-
if (
|
|
4445
|
+
const H = [], F = L.map(j), re = [];
|
|
4446
|
+
if (H.push(a), h && E && re.push(function(M) {
|
|
4447
4447
|
var J, ne;
|
|
4448
4448
|
const N = (ne = (J = M.theme.components) == null ? void 0 : J[h]) == null ? void 0 : ne.styleOverrides;
|
|
4449
4449
|
if (!N)
|
|
@@ -4457,18 +4457,18 @@ function Ai(e = {}) {
|
|
|
4457
4457
|
const O = M.theme, N = (J = (D = O == null ? void 0 : O.components) == null ? void 0 : D[h]) == null ? void 0 : J.variants;
|
|
4458
4458
|
return N ? In(M, N, [], M.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
4459
4459
|
}), U || re.push(er), Array.isArray(F[0])) {
|
|
4460
|
-
const c = F.shift(), M = new Array(
|
|
4460
|
+
const c = F.shift(), M = new Array(H.length).fill(""), O = new Array(re.length).fill("");
|
|
4461
4461
|
let N;
|
|
4462
|
-
N = [...M, ...c, ...O], N.raw = [...M, ...c.raw, ...O],
|
|
4462
|
+
N = [...M, ...c, ...O], N.raw = [...M, ...c.raw, ...O], H.unshift(N);
|
|
4463
4463
|
}
|
|
4464
|
-
const
|
|
4465
|
-
return u.muiName && (
|
|
4464
|
+
const le = [...H, ...F, ...re], W = V(...le);
|
|
4465
|
+
return u.muiName && (W.muiName = u.muiName), process.env.NODE_ENV !== "production" && (W.displayName = vi(h, w, u)), W;
|
|
4466
4466
|
};
|
|
4467
4467
|
return V.withConfig && (R.withConfig = V.withConfig), R;
|
|
4468
4468
|
};
|
|
4469
4469
|
}
|
|
4470
4470
|
function vi(e, r, t) {
|
|
4471
|
-
return e ? `${e}${
|
|
4471
|
+
return e ? `${e}${We(r || "")}` : `Styled(${hi(t)})`;
|
|
4472
4472
|
}
|
|
4473
4473
|
function xi(e, r) {
|
|
4474
4474
|
let t;
|
|
@@ -4543,12 +4543,12 @@ function Ue(e) {
|
|
|
4543
4543
|
const r = e.indexOf("("), t = e.substring(0, r);
|
|
4544
4544
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
|
|
4545
4545
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
4546
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
4546
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ze(9, e));
|
|
4547
4547
|
let n = e.substring(r + 1, e.length - 1), o;
|
|
4548
4548
|
if (t === "color") {
|
|
4549
4549
|
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
|
|
4550
4550
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
4551
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
4551
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ze(10, o));
|
|
4552
4552
|
} else
|
|
4553
4553
|
n = n.split(",");
|
|
4554
4554
|
return n = n.map((a) => parseFloat(a)), {
|
|
@@ -4756,11 +4756,11 @@ function Mi(e, r = {}) {
|
|
|
4756
4756
|
if (Object.entries(_ || {}).forEach(([j, R]) => {
|
|
4757
4757
|
const {
|
|
4758
4758
|
vars: L,
|
|
4759
|
-
css:
|
|
4759
|
+
css: H,
|
|
4760
4760
|
varsWithDefaults: F
|
|
4761
4761
|
} = Zr(R, r);
|
|
4762
4762
|
E = me(E, F), v[j] = {
|
|
4763
|
-
css:
|
|
4763
|
+
css: H,
|
|
4764
4764
|
vars: L
|
|
4765
4765
|
};
|
|
4766
4766
|
}), p) {
|
|
@@ -4775,12 +4775,12 @@ function Mi(e, r = {}) {
|
|
|
4775
4775
|
};
|
|
4776
4776
|
}
|
|
4777
4777
|
function U(j, R) {
|
|
4778
|
-
var
|
|
4778
|
+
var H, F;
|
|
4779
4779
|
let L = o;
|
|
4780
4780
|
if (o === "class" && (L = ".%s"), o === "data" && (L = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (L = `[${o}="%s"]`), j) {
|
|
4781
4781
|
if (L === "media")
|
|
4782
4782
|
return e.defaultColorScheme === j ? ":root" : {
|
|
4783
|
-
[`@media (prefers-color-scheme: ${((F = (
|
|
4783
|
+
[`@media (prefers-color-scheme: ${((F = (H = l[j]) == null ? void 0 : H.palette) == null ? void 0 : F.mode) || j})`]: {
|
|
4784
4784
|
":root": R
|
|
4785
4785
|
}
|
|
4786
4786
|
};
|
|
@@ -4802,46 +4802,46 @@ function Mi(e, r = {}) {
|
|
|
4802
4802
|
}), j;
|
|
4803
4803
|
},
|
|
4804
4804
|
generateStyleSheets: () => {
|
|
4805
|
-
var re,
|
|
4805
|
+
var re, le;
|
|
4806
4806
|
const j = [], R = e.defaultColorScheme || "light";
|
|
4807
|
-
function L(
|
|
4808
|
-
Object.keys(c).length && j.push(typeof
|
|
4809
|
-
[
|
|
4807
|
+
function L(W, c) {
|
|
4808
|
+
Object.keys(c).length && j.push(typeof W == "string" ? {
|
|
4809
|
+
[W]: {
|
|
4810
4810
|
...c
|
|
4811
4811
|
}
|
|
4812
|
-
} :
|
|
4812
|
+
} : W);
|
|
4813
4813
|
}
|
|
4814
4814
|
L(t(void 0, {
|
|
4815
4815
|
...C
|
|
4816
4816
|
}), C);
|
|
4817
4817
|
const {
|
|
4818
|
-
[R]:
|
|
4818
|
+
[R]: H,
|
|
4819
4819
|
...F
|
|
4820
4820
|
} = v;
|
|
4821
|
-
if (
|
|
4821
|
+
if (H) {
|
|
4822
4822
|
const {
|
|
4823
|
-
css:
|
|
4824
|
-
} =
|
|
4823
|
+
css: W
|
|
4824
|
+
} = H, c = (le = (re = l[R]) == null ? void 0 : re.palette) == null ? void 0 : le.mode, M = !n && c ? {
|
|
4825
4825
|
colorScheme: c,
|
|
4826
|
-
...
|
|
4826
|
+
...W
|
|
4827
4827
|
} : {
|
|
4828
|
-
...
|
|
4828
|
+
...W
|
|
4829
4829
|
};
|
|
4830
4830
|
L(t(R, {
|
|
4831
4831
|
...M
|
|
4832
4832
|
}), M);
|
|
4833
4833
|
}
|
|
4834
|
-
return Object.entries(F).forEach(([
|
|
4834
|
+
return Object.entries(F).forEach(([W, {
|
|
4835
4835
|
css: c
|
|
4836
4836
|
}]) => {
|
|
4837
4837
|
var N, D;
|
|
4838
|
-
const M = (D = (N = l[
|
|
4838
|
+
const M = (D = (N = l[W]) == null ? void 0 : N.palette) == null ? void 0 : D.mode, O = !n && M ? {
|
|
4839
4839
|
colorScheme: M,
|
|
4840
4840
|
...c
|
|
4841
4841
|
} : {
|
|
4842
4842
|
...c
|
|
4843
4843
|
};
|
|
4844
|
-
L(t(
|
|
4844
|
+
L(t(W, {
|
|
4845
4845
|
...O
|
|
4846
4846
|
}), O);
|
|
4847
4847
|
}), a && j.push({
|
|
@@ -4879,14 +4879,14 @@ const lr = {
|
|
|
4879
4879
|
A200: "#eeeeee",
|
|
4880
4880
|
A400: "#bdbdbd",
|
|
4881
4881
|
A700: "#616161"
|
|
4882
|
-
},
|
|
4882
|
+
}, Qe = {
|
|
4883
4883
|
50: "#f3e5f5",
|
|
4884
4884
|
200: "#ce93d8",
|
|
4885
4885
|
300: "#ba68c8",
|
|
4886
4886
|
400: "#ab47bc",
|
|
4887
4887
|
500: "#9c27b0",
|
|
4888
4888
|
700: "#7b1fa2"
|
|
4889
|
-
},
|
|
4889
|
+
}, Ke = {
|
|
4890
4890
|
300: "#e57373",
|
|
4891
4891
|
400: "#ef5350",
|
|
4892
4892
|
500: "#f44336",
|
|
@@ -4898,19 +4898,19 @@ const lr = {
|
|
|
4898
4898
|
500: "#ff9800",
|
|
4899
4899
|
700: "#f57c00",
|
|
4900
4900
|
900: "#e65100"
|
|
4901
|
-
},
|
|
4901
|
+
}, Je = {
|
|
4902
4902
|
50: "#e3f2fd",
|
|
4903
4903
|
200: "#90caf9",
|
|
4904
4904
|
400: "#42a5f5",
|
|
4905
4905
|
700: "#1976d2",
|
|
4906
4906
|
800: "#1565c0"
|
|
4907
|
-
},
|
|
4907
|
+
}, Ge = {
|
|
4908
4908
|
300: "#4fc3f7",
|
|
4909
4909
|
400: "#29b6f6",
|
|
4910
4910
|
500: "#03a9f4",
|
|
4911
4911
|
700: "#0288d1",
|
|
4912
4912
|
900: "#01579b"
|
|
4913
|
-
},
|
|
4913
|
+
}, Ye = {
|
|
4914
4914
|
300: "#81c784",
|
|
4915
4915
|
400: "#66bb6a",
|
|
4916
4916
|
500: "#4caf50",
|
|
@@ -4998,59 +4998,59 @@ function tn(e, r, t, n, o) {
|
|
|
4998
4998
|
}
|
|
4999
4999
|
function Ni(e = "light") {
|
|
5000
5000
|
return e === "dark" ? {
|
|
5001
|
-
main:
|
|
5002
|
-
light:
|
|
5003
|
-
dark:
|
|
5001
|
+
main: Je[200],
|
|
5002
|
+
light: Je[50],
|
|
5003
|
+
dark: Je[400]
|
|
5004
5004
|
} : {
|
|
5005
|
-
main:
|
|
5006
|
-
light:
|
|
5007
|
-
dark:
|
|
5005
|
+
main: Je[700],
|
|
5006
|
+
light: Je[400],
|
|
5007
|
+
dark: Je[800]
|
|
5008
5008
|
};
|
|
5009
5009
|
}
|
|
5010
5010
|
function Di(e = "light") {
|
|
5011
5011
|
return e === "dark" ? {
|
|
5012
|
-
main:
|
|
5013
|
-
light:
|
|
5014
|
-
dark:
|
|
5012
|
+
main: Qe[200],
|
|
5013
|
+
light: Qe[50],
|
|
5014
|
+
dark: Qe[400]
|
|
5015
5015
|
} : {
|
|
5016
|
-
main: He[500],
|
|
5017
|
-
light: He[300],
|
|
5018
|
-
dark: He[700]
|
|
5019
|
-
};
|
|
5020
|
-
}
|
|
5021
|
-
function Bi(e = "light") {
|
|
5022
|
-
return e === "dark" ? {
|
|
5023
5016
|
main: Qe[500],
|
|
5024
5017
|
light: Qe[300],
|
|
5025
5018
|
dark: Qe[700]
|
|
5026
|
-
} : {
|
|
5027
|
-
main: Qe[700],
|
|
5028
|
-
light: Qe[400],
|
|
5029
|
-
dark: Qe[800]
|
|
5030
5019
|
};
|
|
5031
5020
|
}
|
|
5032
|
-
function
|
|
5021
|
+
function Bi(e = "light") {
|
|
5033
5022
|
return e === "dark" ? {
|
|
5034
|
-
main:
|
|
5035
|
-
light:
|
|
5036
|
-
dark:
|
|
5023
|
+
main: Ke[500],
|
|
5024
|
+
light: Ke[300],
|
|
5025
|
+
dark: Ke[700]
|
|
5037
5026
|
} : {
|
|
5038
|
-
main:
|
|
5039
|
-
light:
|
|
5040
|
-
dark:
|
|
5027
|
+
main: Ke[700],
|
|
5028
|
+
light: Ke[400],
|
|
5029
|
+
dark: Ke[800]
|
|
5041
5030
|
};
|
|
5042
5031
|
}
|
|
5043
|
-
function
|
|
5032
|
+
function Vi(e = "light") {
|
|
5044
5033
|
return e === "dark" ? {
|
|
5045
5034
|
main: Ge[400],
|
|
5046
5035
|
light: Ge[300],
|
|
5047
5036
|
dark: Ge[700]
|
|
5048
5037
|
} : {
|
|
5049
|
-
main: Ge[
|
|
5038
|
+
main: Ge[700],
|
|
5050
5039
|
light: Ge[500],
|
|
5051
5040
|
dark: Ge[900]
|
|
5052
5041
|
};
|
|
5053
5042
|
}
|
|
5043
|
+
function Fi(e = "light") {
|
|
5044
|
+
return e === "dark" ? {
|
|
5045
|
+
main: Ye[400],
|
|
5046
|
+
light: Ye[300],
|
|
5047
|
+
dark: Ye[700]
|
|
5048
|
+
} : {
|
|
5049
|
+
main: Ye[800],
|
|
5050
|
+
light: Ye[500],
|
|
5051
|
+
dark: Ye[900]
|
|
5052
|
+
};
|
|
5053
|
+
}
|
|
5054
5054
|
function zi(e = "light") {
|
|
5055
5055
|
return e === "dark" ? {
|
|
5056
5056
|
main: or[400],
|
|
@@ -5096,7 +5096,7 @@ function xt(e) {
|
|
|
5096
5096
|
..._
|
|
5097
5097
|
}, !_.main && _[B] && (_.main = _[B]), !_.hasOwnProperty("main"))
|
|
5098
5098
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${U ? ` (${U})` : ""} provided to augmentColor(color) is invalid.
|
|
5099
|
-
The color object needs to have a \`main\` property or a \`${B}\` property.` :
|
|
5099
|
+
The color object needs to have a \`main\` property or a \`${B}\` property.` : ze(11, U ? ` (${U})` : "", B));
|
|
5100
5100
|
if (typeof _.main != "string")
|
|
5101
5101
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${U ? ` (${U})` : ""} provided to augmentColor(color) is invalid.
|
|
5102
5102
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
@@ -5111,7 +5111,7 @@ const theme1 = createTheme({ palette: {
|
|
|
5111
5111
|
|
|
5112
5112
|
const theme2 = createTheme({ palette: {
|
|
5113
5113
|
primary: { main: green[500] },
|
|
5114
|
-
} });` :
|
|
5114
|
+
} });` : ze(12, U ? ` (${U})` : "", JSON.stringify(_.main)));
|
|
5115
5115
|
return o ? (tn(o, _, "light", V, n), tn(o, _, "dark", j, n)) : (rn(_, "light", V, n), rn(_, "dark", j, n)), _.contrastText || (_.contrastText = x(_.main)), _;
|
|
5116
5116
|
};
|
|
5117
5117
|
let v;
|
|
@@ -5417,7 +5417,7 @@ function ft(e = {}, ...r) {
|
|
|
5417
5417
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
5418
5418
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
5419
5419
|
e.generateThemeVars === void 0)
|
|
5420
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." :
|
|
5420
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : ze(20));
|
|
5421
5421
|
const C = xt({
|
|
5422
5422
|
...a,
|
|
5423
5423
|
colorSpace: h
|
|
@@ -5638,7 +5638,7 @@ function gs(e = {}, ...r) {
|
|
|
5638
5638
|
};
|
|
5639
5639
|
let V = v;
|
|
5640
5640
|
if ((x === "dark" && !("dark" in t) || x === "light" && !("light" in t)) && (V = !0), !V)
|
|
5641
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${x}\` option is either missing or invalid.` :
|
|
5641
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${x}\` option is either missing or invalid.` : ze(21, x));
|
|
5642
5642
|
let j;
|
|
5643
5643
|
l && (j = "oklch");
|
|
5644
5644
|
const R = Xr(j, B, V, w, x);
|
|
@@ -5657,8 +5657,8 @@ function gs(e = {}, ...r) {
|
|
|
5657
5657
|
},
|
|
5658
5658
|
spacing: ms(w.spacing)
|
|
5659
5659
|
};
|
|
5660
|
-
Object.keys(L.colorSchemes).forEach((
|
|
5661
|
-
const c = L.colorSchemes[
|
|
5660
|
+
Object.keys(L.colorSchemes).forEach((W) => {
|
|
5661
|
+
const c = L.colorSchemes[W].palette, M = (N) => {
|
|
5662
5662
|
const D = N.split("-"), J = D[1], ne = D[2];
|
|
5663
5663
|
return E(N, c[J][ne]);
|
|
5664
5664
|
};
|
|
@@ -5684,8 +5684,8 @@ function gs(e = {}, ...r) {
|
|
|
5684
5684
|
const D = c[N];
|
|
5685
5685
|
N !== "tonalOffset" && D && typeof D == "object" && (D.main && S(c[N], "mainChannel", ar(ir(D.main))), D.light && S(c[N], "lightChannel", ar(ir(D.light))), D.dark && S(c[N], "darkChannel", ar(ir(D.dark))), D.contrastText && S(c[N], "contrastTextChannel", ar(ir(D.contrastText))), N === "text" && (ke(c[N], "primary"), ke(c[N], "secondary")), N === "action" && (D.active && ke(c[N], "active"), D.selected && ke(c[N], "selected")));
|
|
5686
5686
|
});
|
|
5687
|
-
}), L = r.reduce((
|
|
5688
|
-
const
|
|
5687
|
+
}), L = r.reduce((W, c) => me(W, c), L);
|
|
5688
|
+
const H = {
|
|
5689
5689
|
prefix: a,
|
|
5690
5690
|
disableCssColorScheme: o,
|
|
5691
5691
|
shouldSkipGeneratingVar: u,
|
|
@@ -5694,11 +5694,11 @@ function gs(e = {}, ...r) {
|
|
|
5694
5694
|
}, {
|
|
5695
5695
|
vars: F,
|
|
5696
5696
|
generateThemeVars: re,
|
|
5697
|
-
generateStyleSheets:
|
|
5698
|
-
} = Mi(L,
|
|
5699
|
-
return L.vars = F, Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([
|
|
5700
|
-
L[
|
|
5701
|
-
}), L.generateThemeVars = re, L.generateStyleSheets =
|
|
5697
|
+
generateStyleSheets: le
|
|
5698
|
+
} = Mi(L, H);
|
|
5699
|
+
return L.vars = F, Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([W, c]) => {
|
|
5700
|
+
L[W] = c;
|
|
5701
|
+
}), L.generateThemeVars = re, L.generateStyleSheets = le, L.generateSpacing = function() {
|
|
5702
5702
|
return Tn(w.spacing, yt(this));
|
|
5703
5703
|
}, L.getColorSchemeSelector = Ui(f), L.spacing = L.generateSpacing(), L.shouldSkipGeneratingVar = u, L.unstable_sxConfig = {
|
|
5704
5704
|
...Nr,
|
|
@@ -5787,7 +5787,7 @@ const Es = (e) => {
|
|
|
5787
5787
|
fontSize: t,
|
|
5788
5788
|
classes: n
|
|
5789
5789
|
} = e, o = {
|
|
5790
|
-
root: ["root", r !== "inherit" && `color${
|
|
5790
|
+
root: ["root", r !== "inherit" && `color${We(r)}`, `fontSize${We(t)}`]
|
|
5791
5791
|
};
|
|
5792
5792
|
return aa(o, ks, n);
|
|
5793
5793
|
}, Ts = Ss("svg", {
|
|
@@ -5797,7 +5797,7 @@ const Es = (e) => {
|
|
|
5797
5797
|
const {
|
|
5798
5798
|
ownerState: t
|
|
5799
5799
|
} = e;
|
|
5800
|
-
return [r.root, t.color !== "inherit" && r[`color${
|
|
5800
|
+
return [r.root, t.color !== "inherit" && r[`color${We(t.color)}`], r[`fontSize${We(t.fontSize)}`]];
|
|
5801
5801
|
}
|
|
5802
5802
|
})(ws(({
|
|
5803
5803
|
theme: e
|
|
@@ -6341,7 +6341,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6341
6341
|
we.nombreUsuario
|
|
6342
6342
|
), [l] = $e(we.terminales);
|
|
6343
6343
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
6344
|
-
/* @__PURE__ */ d.jsxs(
|
|
6344
|
+
/* @__PURE__ */ d.jsxs(ce, { mr: 2, display: "flex", flexDirection: "column", alignItems: "flex-end", children: [
|
|
6345
6345
|
/* @__PURE__ */ d.jsx(
|
|
6346
6346
|
Se,
|
|
6347
6347
|
{
|
|
@@ -6353,7 +6353,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6353
6353
|
children: a || o ? /* @__PURE__ */ d.jsx(fe, { variant: "text", width: 250 }) : t
|
|
6354
6354
|
}
|
|
6355
6355
|
),
|
|
6356
|
-
/* @__PURE__ */ d.jsx(
|
|
6356
|
+
/* @__PURE__ */ d.jsx(ce, { display: "flex", alignItems: "center", children: l || o ? /* @__PURE__ */ d.jsx(fe, { width: 180, height: 22 }) : n ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
6357
6357
|
/* @__PURE__ */ d.jsxs(
|
|
6358
6358
|
Se,
|
|
6359
6359
|
{
|
|
@@ -6367,7 +6367,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6367
6367
|
]
|
|
6368
6368
|
}
|
|
6369
6369
|
),
|
|
6370
|
-
/* @__PURE__ */ d.jsx(
|
|
6370
|
+
/* @__PURE__ */ d.jsx(ce, { width: 90, mb: -0.5, children: /* @__PURE__ */ d.jsx(Vs, {}) })
|
|
6371
6371
|
] }) : /* @__PURE__ */ d.jsx(Se, { variant: "caption", children: "No se encontraron terminales" }) })
|
|
6372
6372
|
] }),
|
|
6373
6373
|
/* @__PURE__ */ d.jsx(Ds, { acciones: e, onCerrarSesion: r })
|
|
@@ -6386,7 +6386,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6386
6386
|
}) => {
|
|
6387
6387
|
const l = An(
|
|
6388
6388
|
(U) => !!U.toolbar.length
|
|
6389
|
-
), [u] = $e(we.apps), [f] = $e(we.general), [h] = $e(we.nombreApp), w =
|
|
6389
|
+
), [u] = $e(we.apps), [f] = $e(we.general), [h] = $e(we.nombreApp), w = Ve((U) => U.inhabilitado), C = Oe((U) => U.abrirApps), x = Oe(
|
|
6390
6390
|
(U) => U.mostrarBotonDrawer
|
|
6391
6391
|
), E = Qn(null), v = ye(() => {
|
|
6392
6392
|
Te.setState({ abrirApps: !0 });
|
|
@@ -6403,14 +6403,14 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6403
6403
|
sx: { zIndex: (U) => U.zIndex.drawer + 1 },
|
|
6404
6404
|
children: [
|
|
6405
6405
|
/* @__PURE__ */ d.jsx(pt, { children: /* @__PURE__ */ d.jsxs(
|
|
6406
|
-
|
|
6406
|
+
ce,
|
|
6407
6407
|
{
|
|
6408
6408
|
width: "100%",
|
|
6409
6409
|
display: "flex",
|
|
6410
6410
|
alignItems: "center",
|
|
6411
6411
|
justifyContent: "space-between",
|
|
6412
6412
|
children: [
|
|
6413
|
-
/* @__PURE__ */ d.jsxs(
|
|
6413
|
+
/* @__PURE__ */ d.jsxs(ce, { display: "flex", alignItems: "center", children: [
|
|
6414
6414
|
/* @__PURE__ */ d.jsx(no, { in: x, children: /* @__PURE__ */ d.jsx(
|
|
6415
6415
|
St,
|
|
6416
6416
|
{
|
|
@@ -6419,12 +6419,12 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6419
6419
|
children: /* @__PURE__ */ d.jsx(Ws, {})
|
|
6420
6420
|
}
|
|
6421
6421
|
) }),
|
|
6422
|
-
/* @__PURE__ */ d.jsxs(
|
|
6422
|
+
/* @__PURE__ */ d.jsxs(ce, { display: "flex", alignItems: "center", ml: 3, children: [
|
|
6423
6423
|
/* @__PURE__ */ d.jsx("a", { href: "/", children: /* @__PURE__ */ d.jsx(jo, { width: 88 }) }),
|
|
6424
6424
|
h || f ? /* @__PURE__ */ d.jsx(fe, { variant: "text", width: 150, sx: { ml: 0.5 } }) : typeof r == "string" ? /* @__PURE__ */ d.jsx(Se, { variant: "body2", noWrap: !0, ml: 0.5, children: r }) : r
|
|
6425
6425
|
] })
|
|
6426
6426
|
] }),
|
|
6427
|
-
/* @__PURE__ */ d.jsxs(
|
|
6427
|
+
/* @__PURE__ */ d.jsxs(ce, { display: "flex", alignItems: "center", children: [
|
|
6428
6428
|
/* @__PURE__ */ d.jsx(
|
|
6429
6429
|
Fs,
|
|
6430
6430
|
{
|
|
@@ -6504,7 +6504,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6504
6504
|
),
|
|
6505
6505
|
/* @__PURE__ */ d.jsx(Ho, { menus: u, LinkComponent: f }),
|
|
6506
6506
|
/* @__PURE__ */ d.jsx(pt, {}),
|
|
6507
|
-
/* @__PURE__ */ d.jsxs(
|
|
6507
|
+
/* @__PURE__ */ d.jsxs(ce, { display: "flex", children: [
|
|
6508
6508
|
/* @__PURE__ */ d.jsx(Qo, {}),
|
|
6509
6509
|
/* @__PURE__ */ d.jsx("main", { style: { flexGrow: 1, display: "flex" }, children: h ? t : "Selecciona una terminal para comenzar" })
|
|
6510
6510
|
] })
|
|
@@ -6556,7 +6556,7 @@ function Gs({
|
|
|
6556
6556
|
tema: l
|
|
6557
6557
|
}) {
|
|
6558
6558
|
const u = Ks((x) => x.permisos), [f, h] = Er([]), w = () => {
|
|
6559
|
-
|
|
6559
|
+
De.logout();
|
|
6560
6560
|
}, C = o.reduce((x, E) => {
|
|
6561
6561
|
var p, _;
|
|
6562
6562
|
const v = (p = u == null ? void 0 : u.menus) == null ? void 0 : p.find(({ id: U }) => E.id === U);
|
|
@@ -6574,42 +6574,42 @@ function Gs({
|
|
|
6574
6574
|
] : x;
|
|
6575
6575
|
}, []);
|
|
6576
6576
|
return Kn(() => {
|
|
6577
|
-
if (
|
|
6577
|
+
if (De.didInitialize) return;
|
|
6578
6578
|
const x = new URL(
|
|
6579
6579
|
"/silent-check-sso.html",
|
|
6580
6580
|
window.location.href
|
|
6581
6581
|
).toString();
|
|
6582
|
-
|
|
6582
|
+
De.init({
|
|
6583
6583
|
onLoad: "check-sso",
|
|
6584
6584
|
pkceMethod: "S256",
|
|
6585
6585
|
flow: "standard",
|
|
6586
6586
|
silentCheckSsoRedirectUri: x
|
|
6587
6587
|
}).then((E) => {
|
|
6588
|
-
E ||
|
|
6588
|
+
E || De.login({
|
|
6589
6589
|
// select_account fuerza pantalla de selección de cuenta en el IdP (ej. Google).
|
|
6590
6590
|
// Tipos de keycloak-js no incluyen select_account; es válido en OIDC.
|
|
6591
6591
|
prompt: "select_account"
|
|
6592
6592
|
});
|
|
6593
|
-
const v =
|
|
6593
|
+
const v = De.idTokenParsed, { terminal: p, setTerminal: _ } = Te.getState(), U = `${(v == null ? void 0 : v.given_name) ?? ""}${v != null && v.given_name && (v != null && v.family_name) ? " " : ""}${v == null ? void 0 : v.family_name}`;
|
|
6594
6594
|
Te.setState({
|
|
6595
6595
|
nombre: U
|
|
6596
6596
|
});
|
|
6597
6597
|
const B = v.terminal;
|
|
6598
6598
|
typeof p != "number" && typeof B == "number" && _(Number(B));
|
|
6599
6599
|
const V = v.email;
|
|
6600
|
-
V ? lo(V, n).then(async (j) => {
|
|
6601
|
-
var
|
|
6602
|
-
const R = (
|
|
6603
|
-
({ id:
|
|
6600
|
+
V ? lo(V, n, De.token).then(async (j) => {
|
|
6601
|
+
var c, M, O, N, D;
|
|
6602
|
+
const R = (N = (O = (M = (c = j.response) == null ? void 0 : c[0]) == null ? void 0 : M.permisos) == null ? void 0 : O.aplicaciones) == null ? void 0 : N.find(
|
|
6603
|
+
({ id: J }) => J === r
|
|
6604
6604
|
);
|
|
6605
|
-
if (!((
|
|
6605
|
+
if (!((D = j.response) != null && D[0]) || !R)
|
|
6606
6606
|
throw new Error("No se han encontrado permisos");
|
|
6607
6607
|
h(
|
|
6608
6608
|
Vn.filter(
|
|
6609
|
-
({ id:
|
|
6610
|
-
var
|
|
6611
|
-
return (
|
|
6612
|
-
({ id:
|
|
6609
|
+
({ id: J }) => {
|
|
6610
|
+
var ne, ue, i;
|
|
6611
|
+
return (i = (ue = (ne = j.response) == null ? void 0 : ne[0]) == null ? void 0 : ue.permisos) == null ? void 0 : i.aplicaciones.some(
|
|
6612
|
+
({ id: s }) => J === s
|
|
6613
6613
|
);
|
|
6614
6614
|
}
|
|
6615
6615
|
)
|
|
@@ -6619,20 +6619,21 @@ function Gs({
|
|
|
6619
6619
|
const L = await uo();
|
|
6620
6620
|
if (L.isError || !L.data.length)
|
|
6621
6621
|
throw new Error("No se han encontrado terminales");
|
|
6622
|
-
const
|
|
6622
|
+
const H = typeof (v == null ? void 0 : v.terminal) == "number" ? v.terminal : void 0, F = Js(
|
|
6623
6623
|
j.response[0].terminales ?? [],
|
|
6624
6624
|
L.data,
|
|
6625
|
-
|
|
6625
|
+
H
|
|
6626
6626
|
);
|
|
6627
|
-
if (!
|
|
6627
|
+
if (!F.length)
|
|
6628
6628
|
throw new Error("No tienes acceso a ninguna terminal");
|
|
6629
6629
|
Te.setState({
|
|
6630
|
-
terminales:
|
|
6631
|
-
mostrarBotonDrawer: !0
|
|
6630
|
+
terminales: F,
|
|
6631
|
+
mostrarBotonDrawer: !0,
|
|
6632
|
+
terminalDeNomina: H
|
|
6632
6633
|
}), Re.setState({ cargando: !1 });
|
|
6633
|
-
const { terminal:
|
|
6634
|
-
|
|
6635
|
-
Number.isNaN(
|
|
6634
|
+
const { terminal: re, setTerminal: le } = Te.getState(), W = Number(v == null ? void 0 : v.terminal);
|
|
6635
|
+
re || le(
|
|
6636
|
+
Number.isNaN(W) ? F[0].codigo : W
|
|
6636
6637
|
);
|
|
6637
6638
|
}).catch((j) => {
|
|
6638
6639
|
console.error("Error al obtener permisos", j);
|
|
@@ -6662,10 +6663,10 @@ const fc = {
|
|
|
6662
6663
|
corporateAccessLabel: n = "Ingresa únicamente con tu correo @coordinadora.com"
|
|
6663
6664
|
}) => {
|
|
6664
6665
|
const o = ye(() => {
|
|
6665
|
-
|
|
6666
|
+
De.login({ idpHint: "google" });
|
|
6666
6667
|
}, []);
|
|
6667
6668
|
return /* @__PURE__ */ d.jsx(
|
|
6668
|
-
|
|
6669
|
+
ce,
|
|
6669
6670
|
{
|
|
6670
6671
|
sx: {
|
|
6671
6672
|
position: "fixed",
|
|
@@ -6681,7 +6682,7 @@ const fc = {
|
|
|
6681
6682
|
justifyContent: "center"
|
|
6682
6683
|
},
|
|
6683
6684
|
children: /* @__PURE__ */ d.jsxs(
|
|
6684
|
-
|
|
6685
|
+
ce,
|
|
6685
6686
|
{
|
|
6686
6687
|
sx: {
|
|
6687
6688
|
position: "relative",
|
|
@@ -6694,8 +6695,8 @@ const fc = {
|
|
|
6694
6695
|
padding: "36px 32px"
|
|
6695
6696
|
},
|
|
6696
6697
|
children: [
|
|
6697
|
-
/* @__PURE__ */ d.jsx(
|
|
6698
|
-
|
|
6698
|
+
/* @__PURE__ */ d.jsx(ce, { sx: { display: "flex", justifyContent: "center", mb: 2 }, children: /* @__PURE__ */ d.jsx(
|
|
6699
|
+
ce,
|
|
6699
6700
|
{
|
|
6700
6701
|
component: "img",
|
|
6701
6702
|
src: r,
|
|
@@ -6761,7 +6762,7 @@ const fc = {
|
|
|
6761
6762
|
}
|
|
6762
6763
|
),
|
|
6763
6764
|
/* @__PURE__ */ d.jsxs(
|
|
6764
|
-
|
|
6765
|
+
ce,
|
|
6765
6766
|
{
|
|
6766
6767
|
sx: {
|
|
6767
6768
|
display: "flex",
|
|
@@ -6773,7 +6774,7 @@ const fc = {
|
|
|
6773
6774
|
},
|
|
6774
6775
|
children: [
|
|
6775
6776
|
/* @__PURE__ */ d.jsx(
|
|
6776
|
-
|
|
6777
|
+
ce,
|
|
6777
6778
|
{
|
|
6778
6779
|
sx: {
|
|
6779
6780
|
flex: 1,
|
|
@@ -6798,7 +6799,7 @@ const fc = {
|
|
|
6798
6799
|
}
|
|
6799
6800
|
),
|
|
6800
6801
|
/* @__PURE__ */ d.jsx(
|
|
6801
|
-
|
|
6802
|
+
ce,
|
|
6802
6803
|
{
|
|
6803
6804
|
sx: {
|
|
6804
6805
|
flex: 1,
|
|
@@ -6811,7 +6812,7 @@ const fc = {
|
|
|
6811
6812
|
}
|
|
6812
6813
|
),
|
|
6813
6814
|
/* @__PURE__ */ d.jsx(
|
|
6814
|
-
|
|
6815
|
+
ce,
|
|
6815
6816
|
{
|
|
6816
6817
|
sx: {
|
|
6817
6818
|
textAlign: "center",
|
|
@@ -6902,7 +6903,7 @@ const ${e}Story = () => {
|
|
|
6902
6903
|
e,
|
|
6903
6904
|
/* @__PURE__ */ d.jsx("pre", { children: qs(t) }),
|
|
6904
6905
|
t.botones && /* @__PURE__ */ d.jsxs(
|
|
6905
|
-
|
|
6906
|
+
ce,
|
|
6906
6907
|
{
|
|
6907
6908
|
position: "fixed",
|
|
6908
6909
|
right: 0,
|
|
@@ -6911,7 +6912,7 @@ const ${e}Story = () => {
|
|
|
6911
6912
|
alignItems: "flex-end",
|
|
6912
6913
|
flexDirection: "column",
|
|
6913
6914
|
children: [
|
|
6914
|
-
/* @__PURE__ */ d.jsx(
|
|
6915
|
+
/* @__PURE__ */ d.jsx(ce, { display: "flex", alignItems: "center", children: (o = t.botones) == null ? void 0 : o.map(({ nombre: a, onClick: l }) => /* @__PURE__ */ d.jsx(pn, { onClick: l, children: a })) }),
|
|
6915
6916
|
/* @__PURE__ */ d.jsxs(
|
|
6916
6917
|
"pre",
|
|
6917
6918
|
{
|
|
@@ -6971,7 +6972,7 @@ export {
|
|
|
6971
6972
|
Re as estadoDrawer,
|
|
6972
6973
|
Ls as estadoInicialToolbar,
|
|
6973
6974
|
Te as estadoToolbar,
|
|
6974
|
-
|
|
6975
|
+
De as keycloak,
|
|
6975
6976
|
we as keysCargandoToolbar,
|
|
6976
6977
|
ic as menusPermitidos,
|
|
6977
6978
|
dc as obtenerAppsToolbar,
|
|
@@ -6990,7 +6991,7 @@ export {
|
|
|
6990
6991
|
ac as terminalesPermitidas,
|
|
6991
6992
|
$e as useCargando,
|
|
6992
6993
|
Ks as useEstadoAuth,
|
|
6993
|
-
|
|
6994
|
+
Ve as useEstadoDrawer,
|
|
6994
6995
|
Oe as useEstadoToolbar,
|
|
6995
6996
|
An as useStoreCargando
|
|
6996
6997
|
};
|