@cm-sigoo-temp/ui 0.2.24 → 0.2.26
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/cm-sigoo-temp-ui.js +306 -296
- package/dist/lib/cm-sigoo-temp-ui.js.map +1 -1
- package/dist/lib/components/Auth/utils.d.ts +5 -1
- package/dist/plugins/app.plugin.d.ts +8 -0
- package/dist/plugins/app.plugin.js +2 -0
- package/dist/plugins/app.plugin.js.map +1 -0
- package/package.json +1 -1
|
@@ -201,21 +201,21 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
201
201
|
throw new Error("Web Crypto API is not available.");
|
|
202
202
|
return crypto.getRandomValues(new Uint8Array(i));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
return
|
|
204
|
+
function C(i) {
|
|
205
|
+
return T(i, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function T(i, s) {
|
|
208
208
|
for (var y = h(i), v = new Array(i), b = 0; b < i; b++)
|
|
209
209
|
v[b] = s.charCodeAt(y[b] % s.length);
|
|
210
210
|
return String.fromCharCode.apply(null, v);
|
|
211
211
|
}
|
|
212
|
-
async function
|
|
212
|
+
async function S(i, s) {
|
|
213
213
|
if (i !== "S256")
|
|
214
214
|
throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${i}'.`);
|
|
215
215
|
const y = new Uint8Array(await bo(s));
|
|
216
216
|
return yo(y).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function x(i) {
|
|
219
219
|
var s = {
|
|
220
220
|
id_token: {
|
|
221
221
|
acr: i
|
|
@@ -237,12 +237,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
237
237
|
g ? g.indexOf("openid") === -1 && (g = "openid " + g) : g = "openid";
|
|
238
238
|
var m = k + "?client_id=" + encodeURIComponent(r.clientId) + "&redirect_uri=" + encodeURIComponent(v) + "&state=" + encodeURIComponent(s) + "&response_mode=" + encodeURIComponent(r.responseMode) + "&response_type=" + encodeURIComponent(r.responseType) + "&scope=" + encodeURIComponent(g);
|
|
239
239
|
if (l && (m = m + "&nonce=" + encodeURIComponent(y)), i && i.prompt && (m += "&prompt=" + encodeURIComponent(i.prompt)), i && typeof i.maxAge == "number" && (m += "&max_age=" + encodeURIComponent(i.maxAge)), i && i.loginHint && (m += "&login_hint=" + encodeURIComponent(i.loginHint)), i && i.idpHint && (m += "&kc_idp_hint=" + encodeURIComponent(i.idpHint)), i && i.action && i.action != "register" && (m += "&kc_action=" + encodeURIComponent(i.action)), i && i.locale && (m += "&ui_locales=" + encodeURIComponent(i.locale)), i && i.acr) {
|
|
240
|
-
var _ =
|
|
240
|
+
var _ = x(i.acr);
|
|
241
241
|
m += "&claims=" + encodeURIComponent(_);
|
|
242
242
|
}
|
|
243
243
|
if ((i && i.acrValues || r.acrValues) && (m += "&acr_values=" + encodeURIComponent(i.acrValues || r.acrValues)), r.pkceMethod)
|
|
244
244
|
try {
|
|
245
|
-
const P =
|
|
245
|
+
const P = C(96), I = await S(r.pkceMethod, P);
|
|
246
246
|
b.pkceCodeVerifier = P, m += "&code_challenge=" + I, m += "&code_challenge_method=" + r.pkceMethod;
|
|
247
247
|
} catch (P) {
|
|
248
248
|
throw new Error("Failed to generate PKCE challenge.", { cause: P });
|
|
@@ -1244,19 +1244,19 @@ function Oo() {
|
|
|
1244
1244
|
value: g
|
|
1245
1245
|
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function C(s, y, v, b, k, g) {
|
|
1248
1248
|
var m = y.children;
|
|
1249
1249
|
if (m !== void 0)
|
|
1250
1250
|
if (b)
|
|
1251
1251
|
if (O(m)) {
|
|
1252
1252
|
for (b = 0; b < m.length; b++)
|
|
1253
|
-
|
|
1253
|
+
T(m[b]);
|
|
1254
1254
|
Object.freeze && Object.freeze(m);
|
|
1255
1255
|
} else
|
|
1256
1256
|
console.error(
|
|
1257
1257
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1258
1258
|
);
|
|
1259
|
-
else
|
|
1259
|
+
else T(m);
|
|
1260
1260
|
if (j.call(y, "key")) {
|
|
1261
1261
|
m = e(s);
|
|
1262
1262
|
var _ = Object.keys(y).filter(function(I) {
|
|
@@ -1292,27 +1292,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1292
1292
|
g
|
|
1293
1293
|
);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
|
|
1295
|
+
function T(s) {
|
|
1296
|
+
S(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === Q && (s._payload.status === "fulfilled" ? S(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function S(s) {
|
|
1299
1299
|
return typeof s == "object" && s !== null && s.$$typeof === E;
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1301
|
+
var x = et, E = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), L = Symbol.for("react.strict_mode"), V = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), M = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), ce = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), c = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, O = Array.isArray, U = console.createTask ? console.createTask : function() {
|
|
1302
1302
|
return null;
|
|
1303
1303
|
};
|
|
1304
|
-
|
|
1304
|
+
x = {
|
|
1305
1305
|
react_stack_bottom_frame: function(s) {
|
|
1306
1306
|
return s();
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
|
-
var B, G = {}, ne =
|
|
1310
|
-
|
|
1309
|
+
var B, G = {}, ne = x.react_stack_bottom_frame.bind(
|
|
1310
|
+
x,
|
|
1311
1311
|
a
|
|
1312
1312
|
)(), ue = U(n(a)), i = {};
|
|
1313
1313
|
nr.Fragment = R, nr.jsx = function(s, y, v) {
|
|
1314
1314
|
var b = 1e4 > c.recentlyCreatedOwnerStacks++;
|
|
1315
|
-
return
|
|
1315
|
+
return C(
|
|
1316
1316
|
s,
|
|
1317
1317
|
y,
|
|
1318
1318
|
v,
|
|
@@ -1322,7 +1322,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1322
1322
|
);
|
|
1323
1323
|
}, nr.jsxs = function(s, y, v) {
|
|
1324
1324
|
var b = 1e4 > c.recentlyCreatedOwnerStacks++;
|
|
1325
|
-
return
|
|
1325
|
+
return C(
|
|
1326
1326
|
s,
|
|
1327
1327
|
y,
|
|
1328
1328
|
v,
|
|
@@ -1896,11 +1896,11 @@ let ct = Kn(
|
|
|
1896
1896
|
ct = Gn(ct);
|
|
1897
1897
|
const _t = (e) => {
|
|
1898
1898
|
let r;
|
|
1899
|
-
const t = /* @__PURE__ */ new Set(), n = (h,
|
|
1900
|
-
const
|
|
1901
|
-
if (!Object.is(
|
|
1902
|
-
const
|
|
1903
|
-
r =
|
|
1899
|
+
const t = /* @__PURE__ */ new Set(), n = (h, C) => {
|
|
1900
|
+
const T = typeof h == "function" ? h(r) : h;
|
|
1901
|
+
if (!Object.is(T, r)) {
|
|
1902
|
+
const S = r;
|
|
1903
|
+
r = C ?? (typeof T != "object" || T === null) ? T : Object.assign({}, r, T), t.forEach((x) => x(r, S));
|
|
1904
1904
|
}
|
|
1905
1905
|
}, o = () => r, u = { setState: n, getState: o, getInitialState: () => f, subscribe: (h) => (t.add(h), () => t.delete(h)) }, f = r = e(n, o, u);
|
|
1906
1906
|
return u;
|
|
@@ -2340,7 +2340,7 @@ var Ot;
|
|
|
2340
2340
|
function Jo() {
|
|
2341
2341
|
if (Ot) return q;
|
|
2342
2342
|
Ot = 1;
|
|
2343
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2343
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, C = e ? Symbol.for("react.forward_ref") : 60112, T = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, V = e ? Symbol.for("react.scope") : 60119;
|
|
2344
2344
|
function D(A) {
|
|
2345
2345
|
if (typeof A == "object" && A !== null) {
|
|
2346
2346
|
var N = A.$$typeof;
|
|
@@ -2352,14 +2352,14 @@ function Jo() {
|
|
|
2352
2352
|
case n:
|
|
2353
2353
|
case a:
|
|
2354
2354
|
case o:
|
|
2355
|
-
case
|
|
2355
|
+
case T:
|
|
2356
2356
|
return A;
|
|
2357
2357
|
default:
|
|
2358
2358
|
switch (A = A && A.$$typeof, A) {
|
|
2359
2359
|
case u:
|
|
2360
|
-
case
|
|
2360
|
+
case C:
|
|
2361
2361
|
case E:
|
|
2362
|
-
case
|
|
2362
|
+
case x:
|
|
2363
2363
|
case l:
|
|
2364
2364
|
return A;
|
|
2365
2365
|
default:
|
|
@@ -2374,7 +2374,7 @@ function Jo() {
|
|
|
2374
2374
|
function M(A) {
|
|
2375
2375
|
return D(A) === h;
|
|
2376
2376
|
}
|
|
2377
|
-
return q.AsyncMode = f, q.ConcurrentMode = h, q.ContextConsumer = u, q.ContextProvider = l, q.Element = r, q.ForwardRef =
|
|
2377
|
+
return q.AsyncMode = f, q.ConcurrentMode = h, q.ContextConsumer = u, q.ContextProvider = l, q.Element = r, q.ForwardRef = C, q.Fragment = n, q.Lazy = E, q.Memo = x, q.Portal = t, q.Profiler = a, q.StrictMode = o, q.Suspense = T, q.isAsyncMode = function(A) {
|
|
2378
2378
|
return M(A) || D(A) === f;
|
|
2379
2379
|
}, q.isConcurrentMode = M, q.isContextConsumer = function(A) {
|
|
2380
2380
|
return D(A) === u;
|
|
@@ -2383,13 +2383,13 @@ function Jo() {
|
|
|
2383
2383
|
}, q.isElement = function(A) {
|
|
2384
2384
|
return typeof A == "object" && A !== null && A.$$typeof === r;
|
|
2385
2385
|
}, q.isForwardRef = function(A) {
|
|
2386
|
-
return D(A) ===
|
|
2386
|
+
return D(A) === C;
|
|
2387
2387
|
}, q.isFragment = function(A) {
|
|
2388
2388
|
return D(A) === n;
|
|
2389
2389
|
}, q.isLazy = function(A) {
|
|
2390
2390
|
return D(A) === E;
|
|
2391
2391
|
}, q.isMemo = function(A) {
|
|
2392
|
-
return D(A) ===
|
|
2392
|
+
return D(A) === x;
|
|
2393
2393
|
}, q.isPortal = function(A) {
|
|
2394
2394
|
return D(A) === t;
|
|
2395
2395
|
}, q.isProfiler = function(A) {
|
|
@@ -2397,9 +2397,9 @@ function Jo() {
|
|
|
2397
2397
|
}, q.isStrictMode = function(A) {
|
|
2398
2398
|
return D(A) === o;
|
|
2399
2399
|
}, q.isSuspense = function(A) {
|
|
2400
|
-
return D(A) ===
|
|
2400
|
+
return D(A) === T;
|
|
2401
2401
|
}, q.isValidElementType = function(A) {
|
|
2402
|
-
return typeof A == "string" || typeof A == "function" || A === n || A === h || A === a || A === o || A ===
|
|
2402
|
+
return typeof A == "string" || typeof A == "function" || A === n || A === h || A === a || A === o || A === T || A === S || typeof A == "object" && A !== null && (A.$$typeof === E || A.$$typeof === x || A.$$typeof === l || A.$$typeof === u || A.$$typeof === C || A.$$typeof === R || A.$$typeof === L || A.$$typeof === V || A.$$typeof === p);
|
|
2403
2403
|
}, q.typeOf = D, q;
|
|
2404
2404
|
}
|
|
2405
2405
|
var J = {};
|
|
@@ -2414,10 +2414,10 @@ var J = {};
|
|
|
2414
2414
|
var $t;
|
|
2415
2415
|
function Zo() {
|
|
2416
2416
|
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2417
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2417
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, C = e ? Symbol.for("react.forward_ref") : 60112, T = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, V = e ? Symbol.for("react.scope") : 60119;
|
|
2418
2418
|
function D($) {
|
|
2419
2419
|
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2420
|
-
$ === n || $ === h || $ === a || $ === o || $ ===
|
|
2420
|
+
$ === n || $ === h || $ === a || $ === o || $ === T || $ === S || typeof $ == "object" && $ !== null && ($.$$typeof === E || $.$$typeof === x || $.$$typeof === l || $.$$typeof === u || $.$$typeof === C || $.$$typeof === R || $.$$typeof === L || $.$$typeof === V || $.$$typeof === p);
|
|
2421
2421
|
}
|
|
2422
2422
|
function M($) {
|
|
2423
2423
|
if (typeof $ == "object" && $ !== null) {
|
|
@@ -2431,15 +2431,15 @@ function Zo() {
|
|
|
2431
2431
|
case n:
|
|
2432
2432
|
case a:
|
|
2433
2433
|
case o:
|
|
2434
|
-
case
|
|
2434
|
+
case T:
|
|
2435
2435
|
return le;
|
|
2436
2436
|
default:
|
|
2437
2437
|
var He = le && le.$$typeof;
|
|
2438
2438
|
switch (He) {
|
|
2439
2439
|
case u:
|
|
2440
|
-
case
|
|
2440
|
+
case C:
|
|
2441
2441
|
case E:
|
|
2442
|
-
case
|
|
2442
|
+
case x:
|
|
2443
2443
|
case l:
|
|
2444
2444
|
return He;
|
|
2445
2445
|
default:
|
|
@@ -2451,7 +2451,7 @@ function Zo() {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
|
-
var A = f, N = h, Y = u, F = l, Q = r, ce =
|
|
2454
|
+
var A = f, N = h, Y = u, F = l, Q = r, ce = C, H = n, c = E, j = x, O = t, U = a, B = o, G = T, ne = !1;
|
|
2455
2455
|
function ue($) {
|
|
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($) || M($) === f;
|
|
2457
2457
|
}
|
|
@@ -2468,7 +2468,7 @@ function Zo() {
|
|
|
2468
2468
|
return typeof $ == "object" && $ !== null && $.$$typeof === r;
|
|
2469
2469
|
}
|
|
2470
2470
|
function b($) {
|
|
2471
|
-
return M($) ===
|
|
2471
|
+
return M($) === C;
|
|
2472
2472
|
}
|
|
2473
2473
|
function k($) {
|
|
2474
2474
|
return M($) === n;
|
|
@@ -2477,7 +2477,7 @@ function Zo() {
|
|
|
2477
2477
|
return M($) === E;
|
|
2478
2478
|
}
|
|
2479
2479
|
function m($) {
|
|
2480
|
-
return M($) ===
|
|
2480
|
+
return M($) === x;
|
|
2481
2481
|
}
|
|
2482
2482
|
function _($) {
|
|
2483
2483
|
return M($) === t;
|
|
@@ -2489,7 +2489,7 @@ function Zo() {
|
|
|
2489
2489
|
return M($) === o;
|
|
2490
2490
|
}
|
|
2491
2491
|
function z($) {
|
|
2492
|
-
return M($) ===
|
|
2492
|
+
return M($) === T;
|
|
2493
2493
|
}
|
|
2494
2494
|
J.AsyncMode = A, J.ConcurrentMode = N, J.ContextConsumer = Y, J.ContextProvider = F, J.Element = Q, J.ForwardRef = ce, J.Fragment = H, J.Lazy = c, J.Memo = j, J.Portal = O, J.Profiler = U, J.StrictMode = B, J.Suspense = G, J.isAsyncMode = ue, J.isConcurrentMode = i, J.isContextConsumer = s, J.isContextProvider = y, J.isElement = v, J.isForwardRef = b, J.isFragment = k, J.isLazy = g, J.isMemo = m, J.isPortal = _, J.isProfiler = P, J.isStrictMode = I, J.isSuspense = z, J.isValidElementType = D, J.typeOf = M;
|
|
2495
2495
|
}()), J;
|
|
@@ -2522,28 +2522,28 @@ function Xo() {
|
|
|
2522
2522
|
return !1;
|
|
2523
2523
|
for (var l = {}, u = 0; u < 10; u++)
|
|
2524
2524
|
l["_" + String.fromCharCode(u)] = u;
|
|
2525
|
-
var f = Object.getOwnPropertyNames(l).map(function(
|
|
2526
|
-
return l[
|
|
2525
|
+
var f = Object.getOwnPropertyNames(l).map(function(C) {
|
|
2526
|
+
return l[C];
|
|
2527
2527
|
});
|
|
2528
2528
|
if (f.join("") !== "0123456789")
|
|
2529
2529
|
return !1;
|
|
2530
2530
|
var h = {};
|
|
2531
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
2532
|
-
h[
|
|
2531
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(C) {
|
|
2532
|
+
h[C] = C;
|
|
2533
2533
|
}), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
|
|
2534
2534
|
} catch {
|
|
2535
2535
|
return !1;
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
2538
|
return zr = o() ? Object.assign : function(a, l) {
|
|
2539
|
-
for (var u, f = n(a), h,
|
|
2540
|
-
u = Object(arguments[
|
|
2541
|
-
for (var
|
|
2542
|
-
r.call(u,
|
|
2539
|
+
for (var u, f = n(a), h, C = 1; C < arguments.length; C++) {
|
|
2540
|
+
u = Object(arguments[C]);
|
|
2541
|
+
for (var T in u)
|
|
2542
|
+
r.call(u, T) && (f[T] = u[T]);
|
|
2543
2543
|
if (e) {
|
|
2544
2544
|
h = e(u);
|
|
2545
|
-
for (var
|
|
2546
|
-
t.call(u, h[
|
|
2545
|
+
for (var S = 0; S < h.length; S++)
|
|
2546
|
+
t.call(u, h[S]) && (f[h[S]] = u[h[S]]);
|
|
2547
2547
|
}
|
|
2548
2548
|
}
|
|
2549
2549
|
return f;
|
|
@@ -2579,27 +2579,27 @@ function Qo() {
|
|
|
2579
2579
|
}
|
|
2580
2580
|
function o(a, l, u, f, h) {
|
|
2581
2581
|
if (process.env.NODE_ENV !== "production") {
|
|
2582
|
-
for (var
|
|
2583
|
-
if (n(a,
|
|
2584
|
-
var
|
|
2582
|
+
for (var C in a)
|
|
2583
|
+
if (n(a, C)) {
|
|
2584
|
+
var T;
|
|
2585
2585
|
try {
|
|
2586
|
-
if (typeof a[
|
|
2587
|
-
var
|
|
2588
|
-
(f || "React class") + ": " + u + " type `" +
|
|
2586
|
+
if (typeof a[C] != "function") {
|
|
2587
|
+
var S = Error(
|
|
2588
|
+
(f || "React class") + ": " + u + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2589
2589
|
);
|
|
2590
|
-
throw
|
|
2590
|
+
throw S.name = "Invariant Violation", S;
|
|
2591
2591
|
}
|
|
2592
|
-
|
|
2592
|
+
T = a[C](l, C, f, u, null, r);
|
|
2593
2593
|
} catch (E) {
|
|
2594
|
-
|
|
2594
|
+
T = E;
|
|
2595
2595
|
}
|
|
2596
|
-
if (
|
|
2597
|
-
(f || "React class") + ": type specification of " + u + " `" +
|
|
2598
|
-
),
|
|
2599
|
-
t[
|
|
2600
|
-
var
|
|
2596
|
+
if (T && !(T instanceof Error) && e(
|
|
2597
|
+
(f || "React class") + ": type specification of " + u + " `" + C + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof T + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2598
|
+
), T instanceof Error && !(T.message in t)) {
|
|
2599
|
+
t[T.message] = !0;
|
|
2600
|
+
var x = h ? h() : "";
|
|
2601
2601
|
e(
|
|
2602
|
-
"Failed " + u + " type: " +
|
|
2602
|
+
"Failed " + u + " type: " + T.message + (x ?? "")
|
|
2603
2603
|
);
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
@@ -2627,13 +2627,13 @@ function ea() {
|
|
|
2627
2627
|
return null;
|
|
2628
2628
|
}
|
|
2629
2629
|
return Kr = function(u, f) {
|
|
2630
|
-
var h = typeof Symbol == "function" && Symbol.iterator,
|
|
2631
|
-
function
|
|
2632
|
-
var s = i && (h && i[h] || i[
|
|
2630
|
+
var h = typeof Symbol == "function" && Symbol.iterator, C = "@@iterator";
|
|
2631
|
+
function T(i) {
|
|
2632
|
+
var s = i && (h && i[h] || i[C]);
|
|
2633
2633
|
if (typeof s == "function")
|
|
2634
2634
|
return s;
|
|
2635
2635
|
}
|
|
2636
|
-
var
|
|
2636
|
+
var S = "<<anonymous>>", x = {
|
|
2637
2637
|
array: L("array"),
|
|
2638
2638
|
bigint: L("bigint"),
|
|
2639
2639
|
bool: L("boolean"),
|
|
@@ -2665,7 +2665,7 @@ function ea() {
|
|
|
2665
2665
|
if (process.env.NODE_ENV !== "production")
|
|
2666
2666
|
var s = {}, y = 0;
|
|
2667
2667
|
function v(k, g, m, _, P, I, z) {
|
|
2668
|
-
if (_ = _ ||
|
|
2668
|
+
if (_ = _ || S, I = I || m, z !== t) {
|
|
2669
2669
|
if (f) {
|
|
2670
2670
|
var $ = new Error(
|
|
2671
2671
|
"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"
|
|
@@ -2744,7 +2744,7 @@ function ea() {
|
|
|
2744
2744
|
function N(i) {
|
|
2745
2745
|
function s(y, v, b, k, g) {
|
|
2746
2746
|
if (!(y[v] instanceof i)) {
|
|
2747
|
-
var m = i.name ||
|
|
2747
|
+
var m = i.name || S, _ = ue(y[v]);
|
|
2748
2748
|
return new p("Invalid " + k + " `" + g + "` of type " + ("`" + _ + "` supplied to `" + b + "`, expected ") + ("instance of `" + m + "`."));
|
|
2749
2749
|
}
|
|
2750
2750
|
return null;
|
|
@@ -2871,7 +2871,7 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
2871
2871
|
return i.every(O);
|
|
2872
2872
|
if (i === null || u(i))
|
|
2873
2873
|
return !0;
|
|
2874
|
-
var s =
|
|
2874
|
+
var s = T(i);
|
|
2875
2875
|
if (s) {
|
|
2876
2876
|
var y = s.call(i), v;
|
|
2877
2877
|
if (s !== i.entries) {
|
|
@@ -2925,9 +2925,9 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
2927
|
function ue(i) {
|
|
2928
|
-
return !i.constructor || !i.constructor.name ?
|
|
2928
|
+
return !i.constructor || !i.constructor.name ? S : i.constructor.name;
|
|
2929
2929
|
}
|
|
2930
|
-
return
|
|
2930
|
+
return x.checkPropTypes = o, x.resetWarningCache = o.resetWarningCache, x.PropTypes = x, x;
|
|
2931
2931
|
}, Kr;
|
|
2932
2932
|
}
|
|
2933
2933
|
var Gr, Ut;
|
|
@@ -2940,12 +2940,12 @@ function ra() {
|
|
|
2940
2940
|
function t() {
|
|
2941
2941
|
}
|
|
2942
2942
|
return t.resetWarningCache = r, Gr = function() {
|
|
2943
|
-
function n(l, u, f, h,
|
|
2944
|
-
if (
|
|
2945
|
-
var
|
|
2943
|
+
function n(l, u, f, h, C, T) {
|
|
2944
|
+
if (T !== e) {
|
|
2945
|
+
var S = new Error(
|
|
2946
2946
|
"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"
|
|
2947
2947
|
);
|
|
2948
|
-
throw
|
|
2948
|
+
throw S.name = "Invariant Violation", S;
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
2951
|
n.isRequired = n;
|
|
@@ -3030,7 +3030,7 @@ var Bt;
|
|
|
3030
3030
|
function aa() {
|
|
3031
3031
|
if (Bt) return ee;
|
|
3032
3032
|
Bt = 1;
|
|
3033
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"),
|
|
3033
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), x = Symbol.for("react.client.reference");
|
|
3034
3034
|
function E(p) {
|
|
3035
3035
|
if (typeof p == "object" && p !== null) {
|
|
3036
3036
|
var R = p.$$typeof;
|
|
@@ -3042,14 +3042,14 @@ function aa() {
|
|
|
3042
3042
|
case n:
|
|
3043
3043
|
case f:
|
|
3044
3044
|
case h:
|
|
3045
|
-
case
|
|
3045
|
+
case S:
|
|
3046
3046
|
return p;
|
|
3047
3047
|
default:
|
|
3048
3048
|
switch (p = p && p.$$typeof, p) {
|
|
3049
3049
|
case l:
|
|
3050
3050
|
case u:
|
|
3051
|
+
case T:
|
|
3051
3052
|
case C:
|
|
3052
|
-
case S:
|
|
3053
3053
|
return p;
|
|
3054
3054
|
case a:
|
|
3055
3055
|
return p;
|
|
@@ -3062,7 +3062,7 @@ function aa() {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
|
-
return ee.ContextConsumer = a, ee.ContextProvider = l, ee.Element = e, ee.ForwardRef = u, ee.Fragment = t, ee.Lazy =
|
|
3065
|
+
return ee.ContextConsumer = a, ee.ContextProvider = l, ee.Element = e, ee.ForwardRef = u, ee.Fragment = t, ee.Lazy = T, ee.Memo = C, ee.Portal = r, ee.Profiler = o, ee.StrictMode = n, ee.Suspense = f, ee.SuspenseList = h, ee.isContextConsumer = function(p) {
|
|
3066
3066
|
return E(p) === a;
|
|
3067
3067
|
}, ee.isContextProvider = function(p) {
|
|
3068
3068
|
return E(p) === l;
|
|
@@ -3073,9 +3073,9 @@ function aa() {
|
|
|
3073
3073
|
}, ee.isFragment = function(p) {
|
|
3074
3074
|
return E(p) === t;
|
|
3075
3075
|
}, ee.isLazy = function(p) {
|
|
3076
|
-
return E(p) ===
|
|
3076
|
+
return E(p) === T;
|
|
3077
3077
|
}, ee.isMemo = function(p) {
|
|
3078
|
-
return E(p) ===
|
|
3078
|
+
return E(p) === C;
|
|
3079
3079
|
}, ee.isPortal = function(p) {
|
|
3080
3080
|
return E(p) === r;
|
|
3081
3081
|
}, ee.isProfiler = function(p) {
|
|
@@ -3087,7 +3087,7 @@ function aa() {
|
|
|
3087
3087
|
}, ee.isSuspenseList = function(p) {
|
|
3088
3088
|
return E(p) === h;
|
|
3089
3089
|
}, ee.isValidElementType = function(p) {
|
|
3090
|
-
return typeof p == "string" || typeof p == "function" || p === t || p === o || p === n || p === f || p === h || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
3090
|
+
return typeof p == "string" || typeof p == "function" || p === t || p === o || p === n || p === f || p === h || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === C || p.$$typeof === l || p.$$typeof === a || p.$$typeof === u || p.$$typeof === x || p.getModuleId !== void 0);
|
|
3091
3091
|
}, ee.typeOf = E, ee;
|
|
3092
3092
|
}
|
|
3093
3093
|
var re = {};
|
|
@@ -3113,15 +3113,15 @@ function ia() {
|
|
|
3113
3113
|
case a:
|
|
3114
3114
|
case o:
|
|
3115
3115
|
case h:
|
|
3116
|
-
case
|
|
3117
|
-
case
|
|
3116
|
+
case C:
|
|
3117
|
+
case x:
|
|
3118
3118
|
return p;
|
|
3119
3119
|
default:
|
|
3120
3120
|
switch (p = p && p.$$typeof, p) {
|
|
3121
3121
|
case u:
|
|
3122
3122
|
case f:
|
|
3123
|
-
case
|
|
3124
|
-
case
|
|
3123
|
+
case S:
|
|
3124
|
+
case T:
|
|
3125
3125
|
return p;
|
|
3126
3126
|
case l:
|
|
3127
3127
|
return p;
|
|
@@ -3134,8 +3134,8 @@ function ia() {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
|
-
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"),
|
|
3138
|
-
re.ContextConsumer = l, re.ContextProvider = u, re.Element = r, re.ForwardRef = f, re.Fragment = n, re.Lazy =
|
|
3137
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), x = Symbol.for("react.view_transition"), E = Symbol.for("react.client.reference");
|
|
3138
|
+
re.ContextConsumer = l, re.ContextProvider = u, re.Element = r, re.ForwardRef = f, re.Fragment = n, re.Lazy = S, re.Memo = T, re.Portal = t, re.Profiler = a, re.StrictMode = o, re.Suspense = h, re.SuspenseList = C, re.isContextConsumer = function(p) {
|
|
3139
3139
|
return e(p) === l;
|
|
3140
3140
|
}, re.isContextProvider = function(p) {
|
|
3141
3141
|
return e(p) === u;
|
|
@@ -3146,9 +3146,9 @@ function ia() {
|
|
|
3146
3146
|
}, re.isFragment = function(p) {
|
|
3147
3147
|
return e(p) === n;
|
|
3148
3148
|
}, re.isLazy = function(p) {
|
|
3149
|
-
return e(p) ===
|
|
3149
|
+
return e(p) === S;
|
|
3150
3150
|
}, re.isMemo = function(p) {
|
|
3151
|
-
return e(p) ===
|
|
3151
|
+
return e(p) === T;
|
|
3152
3152
|
}, re.isPortal = function(p) {
|
|
3153
3153
|
return e(p) === t;
|
|
3154
3154
|
}, re.isProfiler = function(p) {
|
|
@@ -3158,9 +3158,9 @@ function ia() {
|
|
|
3158
3158
|
}, re.isSuspense = function(p) {
|
|
3159
3159
|
return e(p) === h;
|
|
3160
3160
|
}, re.isSuspenseList = function(p) {
|
|
3161
|
-
return e(p) ===
|
|
3161
|
+
return e(p) === C;
|
|
3162
3162
|
}, re.isValidElementType = function(p) {
|
|
3163
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === a || p === o || p === h || p ===
|
|
3163
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === a || p === o || p === h || p === C || typeof p == "object" && p !== null && (p.$$typeof === S || p.$$typeof === T || p.$$typeof === u || p.$$typeof === l || p.$$typeof === f || p.$$typeof === E || p.getModuleId !== void 0);
|
|
3164
3164
|
}, re.typeOf = e;
|
|
3165
3165
|
}()), re;
|
|
3166
3166
|
}
|
|
@@ -3332,10 +3332,10 @@ function ie(e) {
|
|
|
3332
3332
|
if (l[r] == null)
|
|
3333
3333
|
return null;
|
|
3334
3334
|
const u = l[r], f = l.theme, h = Rr(f, n) || {};
|
|
3335
|
-
return Ae(l, u, (
|
|
3336
|
-
let
|
|
3337
|
-
return
|
|
3338
|
-
[t]:
|
|
3335
|
+
return Ae(l, u, (T) => {
|
|
3336
|
+
let S = Sr(h, o, T);
|
|
3337
|
+
return T === S && typeof T == "string" && (S = Sr(h, o, `${r}${T === "default" ? "" : ze(T)}`, T)), t === !1 ? S : {
|
|
3338
|
+
[t]: S
|
|
3339
3339
|
};
|
|
3340
3340
|
});
|
|
3341
3341
|
};
|
|
@@ -3882,8 +3882,8 @@ function Xa() {
|
|
|
3882
3882
|
const {
|
|
3883
3883
|
cssProperty: f = t,
|
|
3884
3884
|
themeKey: h,
|
|
3885
|
-
transform:
|
|
3886
|
-
style:
|
|
3885
|
+
transform: C,
|
|
3886
|
+
style: T
|
|
3887
3887
|
} = u;
|
|
3888
3888
|
if (n == null)
|
|
3889
3889
|
return null;
|
|
@@ -3891,10 +3891,10 @@ function Xa() {
|
|
|
3891
3891
|
return {
|
|
3892
3892
|
[t]: n
|
|
3893
3893
|
};
|
|
3894
|
-
const
|
|
3895
|
-
return
|
|
3896
|
-
let p = Sr(
|
|
3897
|
-
return E === p && typeof E == "string" && (p = Sr(
|
|
3894
|
+
const S = Rr(o, h) || {};
|
|
3895
|
+
return T ? T(l) : Ae(l, n, (E) => {
|
|
3896
|
+
let p = Sr(S, C, E);
|
|
3897
|
+
return E === p && typeof E == "string" && (p = Sr(S, C, `${t}${E === "default" ? "" : ze(E)}`, E)), f === !1 ? p : {
|
|
3898
3898
|
[f]: p
|
|
3899
3899
|
};
|
|
3900
3900
|
});
|
|
@@ -3916,31 +3916,31 @@ function Xa() {
|
|
|
3916
3916
|
return f;
|
|
3917
3917
|
if (!h)
|
|
3918
3918
|
return null;
|
|
3919
|
-
const
|
|
3920
|
-
let
|
|
3921
|
-
return Object.keys(h).forEach((
|
|
3922
|
-
const E = Za(h[
|
|
3919
|
+
const C = fa(o.breakpoints), T = Object.keys(C);
|
|
3920
|
+
let S = C;
|
|
3921
|
+
return Object.keys(h).forEach((x) => {
|
|
3922
|
+
const E = Za(h[x], o);
|
|
3923
3923
|
if (E != null)
|
|
3924
3924
|
if (typeof E == "object")
|
|
3925
|
-
if (l[
|
|
3926
|
-
|
|
3925
|
+
if (l[x])
|
|
3926
|
+
S = cr(S, e(x, E, o, l));
|
|
3927
3927
|
else {
|
|
3928
3928
|
const p = Ae({
|
|
3929
3929
|
theme: o
|
|
3930
3930
|
}, E, (R) => ({
|
|
3931
|
-
[
|
|
3931
|
+
[x]: R
|
|
3932
3932
|
}));
|
|
3933
|
-
Ja(p, E) ?
|
|
3933
|
+
Ja(p, E) ? S[x] = r({
|
|
3934
3934
|
sx: E,
|
|
3935
3935
|
theme: o,
|
|
3936
3936
|
nested: !0
|
|
3937
|
-
}) :
|
|
3937
|
+
}) : S = cr(S, p);
|
|
3938
3938
|
}
|
|
3939
3939
|
else
|
|
3940
|
-
|
|
3940
|
+
S = cr(S, e(x, E, o, l));
|
|
3941
3941
|
}), !a && o.modularCssLayers ? {
|
|
3942
|
-
"@layer sx": zt(o, Wt(
|
|
3943
|
-
} : zt(o, Wt(
|
|
3942
|
+
"@layer sx": zt(o, Wt(T, S))
|
|
3943
|
+
} : zt(o, Wt(T, S));
|
|
3944
3944
|
}
|
|
3945
3945
|
return Array.isArray(n) ? n.map(u) : u(n);
|
|
3946
3946
|
}
|
|
@@ -4128,11 +4128,11 @@ function ai(e, r, t) {
|
|
|
4128
4128
|
o += f[u];
|
|
4129
4129
|
}
|
|
4130
4130
|
qt.lastIndex = 0;
|
|
4131
|
-
for (var h = "",
|
|
4132
|
-
h += "-" +
|
|
4133
|
-
var
|
|
4131
|
+
for (var h = "", C; (C = qt.exec(o)) !== null; )
|
|
4132
|
+
h += "-" + C[1];
|
|
4133
|
+
var T = Qa(o) + h;
|
|
4134
4134
|
return {
|
|
4135
|
-
name:
|
|
4135
|
+
name: T,
|
|
4136
4136
|
styles: o,
|
|
4137
4137
|
next: Ie
|
|
4138
4138
|
};
|
|
@@ -4189,22 +4189,22 @@ function li(e) {
|
|
|
4189
4189
|
step: n = 5,
|
|
4190
4190
|
...o
|
|
4191
4191
|
} = e, a = ci(r), l = Object.keys(a);
|
|
4192
|
-
function u(
|
|
4193
|
-
return `@media (min-width:${typeof r[
|
|
4192
|
+
function u(S) {
|
|
4193
|
+
return `@media (min-width:${typeof r[S] == "number" ? r[S] : S}${t})`;
|
|
4194
4194
|
}
|
|
4195
|
-
function f(
|
|
4196
|
-
return `@media (max-width:${(typeof r[
|
|
4195
|
+
function f(S) {
|
|
4196
|
+
return `@media (max-width:${(typeof r[S] == "number" ? r[S] : S) - n / 100}${t})`;
|
|
4197
4197
|
}
|
|
4198
|
-
function h(
|
|
4199
|
-
const E = l.indexOf(
|
|
4200
|
-
return `@media (min-width:${typeof r[
|
|
4198
|
+
function h(S, x) {
|
|
4199
|
+
const E = l.indexOf(x);
|
|
4200
|
+
return `@media (min-width:${typeof r[S] == "number" ? r[S] : S}${t}) and (max-width:${(E !== -1 && typeof r[l[E]] == "number" ? r[l[E]] : x) - n / 100}${t})`;
|
|
4201
4201
|
}
|
|
4202
|
-
function S
|
|
4203
|
-
return l.indexOf(
|
|
4202
|
+
function C(S) {
|
|
4203
|
+
return l.indexOf(S) + 1 < l.length ? h(S, l[l.indexOf(S) + 1]) : u(S);
|
|
4204
4204
|
}
|
|
4205
|
-
function
|
|
4206
|
-
const
|
|
4207
|
-
return
|
|
4205
|
+
function T(S) {
|
|
4206
|
+
const x = l.indexOf(S);
|
|
4207
|
+
return x === 0 ? u(l[1]) : x === l.length - 1 ? f(l[x]) : h(S, l[l.indexOf(S) + 1]).replace("@media", "@media not all and");
|
|
4208
4208
|
}
|
|
4209
4209
|
return {
|
|
4210
4210
|
keys: l,
|
|
@@ -4212,8 +4212,8 @@ function li(e) {
|
|
|
4212
4212
|
up: u,
|
|
4213
4213
|
down: f,
|
|
4214
4214
|
between: h,
|
|
4215
|
-
only:
|
|
4216
|
-
not:
|
|
4215
|
+
only: C,
|
|
4216
|
+
not: T,
|
|
4217
4217
|
unit: t,
|
|
4218
4218
|
...o
|
|
4219
4219
|
};
|
|
@@ -4268,12 +4268,12 @@ function _n(e = {}, ...r) {
|
|
|
4268
4268
|
...a
|
|
4269
4269
|
}
|
|
4270
4270
|
}, l);
|
|
4271
|
-
return h = ua(h), h.applyStyles = di, h = r.reduce((
|
|
4271
|
+
return h = ua(h), h.applyStyles = di, h = r.reduce((C, T) => pe(C, T), h), h.unstable_sxConfig = {
|
|
4272
4272
|
...Nr,
|
|
4273
4273
|
...l == null ? void 0 : l.unstable_sxConfig
|
|
4274
|
-
}, h.unstable_sx = function(
|
|
4274
|
+
}, h.unstable_sx = function(T) {
|
|
4275
4275
|
return Qe({
|
|
4276
|
-
sx:
|
|
4276
|
+
sx: T,
|
|
4277
4277
|
theme: this
|
|
4278
4278
|
});
|
|
4279
4279
|
}, h;
|
|
@@ -4409,23 +4409,23 @@ function bi(e = {}) {
|
|
|
4409
4409
|
si(u, (N) => N.filter((Y) => Y !== Qe));
|
|
4410
4410
|
const {
|
|
4411
4411
|
name: h,
|
|
4412
|
-
slot:
|
|
4413
|
-
skipVariantsResolver:
|
|
4414
|
-
skipSx:
|
|
4412
|
+
slot: C,
|
|
4413
|
+
skipVariantsResolver: T,
|
|
4414
|
+
skipSx: S,
|
|
4415
4415
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
4416
4416
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4417
|
-
overridesResolver:
|
|
4417
|
+
overridesResolver: x = gi($n(C)),
|
|
4418
4418
|
...E
|
|
4419
|
-
} = f, p = h && h.startsWith("Mui") ||
|
|
4419
|
+
} = f, p = h && h.startsWith("Mui") || C ? "components" : "custom", R = T !== void 0 ? T : (
|
|
4420
4420
|
// TODO v6: remove `Root` in the next major release
|
|
4421
4421
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4422
|
-
|
|
4423
|
-
), L =
|
|
4422
|
+
C && C !== "Root" && C !== "root" || !1
|
|
4423
|
+
), L = S || !1;
|
|
4424
4424
|
let V = Jr;
|
|
4425
|
-
|
|
4425
|
+
C === "Root" || C === "root" ? V = n : C ? V = o : Si(u) && (V = void 0);
|
|
4426
4426
|
const D = ii(u, {
|
|
4427
4427
|
shouldForwardProp: V,
|
|
4428
|
-
label: xi(h,
|
|
4428
|
+
label: xi(h, C),
|
|
4429
4429
|
...E
|
|
4430
4430
|
}), M = (N) => {
|
|
4431
4431
|
if (N.__emotion_real === N)
|
|
@@ -4443,7 +4443,7 @@ function bi(e = {}) {
|
|
|
4443
4443
|
return N;
|
|
4444
4444
|
}, A = (...N) => {
|
|
4445
4445
|
const Y = [], F = N.map(M), Q = [];
|
|
4446
|
-
if (Y.push(a), h &&
|
|
4446
|
+
if (Y.push(a), h && x && Q.push(function(j) {
|
|
4447
4447
|
var G, ne;
|
|
4448
4448
|
const U = (ne = (G = j.theme.components) == null ? void 0 : G[h]) == null ? void 0 : ne.styleOverrides;
|
|
4449
4449
|
if (!U)
|
|
@@ -4451,7 +4451,7 @@ function bi(e = {}) {
|
|
|
4451
4451
|
const B = {};
|
|
4452
4452
|
for (const ue in U)
|
|
4453
4453
|
B[ue] = yr(j, U[ue], j.theme.modularCssLayers ? "theme" : void 0);
|
|
4454
|
-
return
|
|
4454
|
+
return x(j, B);
|
|
4455
4455
|
}), h && !R && Q.push(function(j) {
|
|
4456
4456
|
var B, G;
|
|
4457
4457
|
const O = j.theme, U = (G = (B = O == null ? void 0 : O.components) == null ? void 0 : B[h]) == null ? void 0 : G.variants;
|
|
@@ -4462,7 +4462,7 @@ function bi(e = {}) {
|
|
|
4462
4462
|
U = [...j, ...c, ...O], U.raw = [...j, ...c.raw, ...O], Y.unshift(U);
|
|
4463
4463
|
}
|
|
4464
4464
|
const ce = [...Y, ...F, ...Q], H = D(...ce);
|
|
4465
|
-
return u.muiName && (H.muiName = u.muiName), process.env.NODE_ENV !== "production" && (H.displayName = vi(h,
|
|
4465
|
+
return u.muiName && (H.muiName = u.muiName), process.env.NODE_ENV !== "production" && (H.displayName = vi(h, C, u)), H;
|
|
4466
4466
|
};
|
|
4467
4467
|
return D.withConfig && (A.withConfig = D.withConfig), A;
|
|
4468
4468
|
};
|
|
@@ -4581,7 +4581,7 @@ function In(e) {
|
|
|
4581
4581
|
e = Me(e);
|
|
4582
4582
|
const {
|
|
4583
4583
|
values: r
|
|
4584
|
-
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100, a = n * Math.min(o, 1 - o), l = (h,
|
|
4584
|
+
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100, a = n * Math.min(o, 1 - o), l = (h, C = (h + t / 30) % 12) => o - a * Math.max(Math.min(C - 3, 9 - C, 1), -1);
|
|
4585
4585
|
let u = "rgb";
|
|
4586
4586
|
const f = [Math.round(l(0) * 255), Math.round(l(8) * 255), Math.round(l(4) * 255)];
|
|
4587
4587
|
return e.type === "hsla" && (u += "a", f.push(r[3])), Ur({
|
|
@@ -4718,10 +4718,10 @@ function Zr(e, r) {
|
|
|
4718
4718
|
e,
|
|
4719
4719
|
(u, f, h) => {
|
|
4720
4720
|
if ((typeof f == "string" || typeof f == "number") && (!n || !n(u, f))) {
|
|
4721
|
-
const
|
|
4721
|
+
const C = `--${t ? `${t}-` : ""}${u.join("-")}`, T = Pi(u, f);
|
|
4722
4722
|
Object.assign(o, {
|
|
4723
|
-
[
|
|
4724
|
-
}), en(a, u, `var(${
|
|
4723
|
+
[C]: T
|
|
4724
|
+
}), en(a, u, `var(${C})`, h), en(l, u, `var(${C}, ${T})`, h);
|
|
4725
4725
|
}
|
|
4726
4726
|
},
|
|
4727
4727
|
(u) => u[0] === "vars"
|
|
@@ -4744,11 +4744,11 @@ function ji(e, r = {}) {
|
|
|
4744
4744
|
defaultColorScheme: f = "light",
|
|
4745
4745
|
...h
|
|
4746
4746
|
} = e, {
|
|
4747
|
-
vars:
|
|
4748
|
-
css:
|
|
4749
|
-
varsWithDefaults:
|
|
4747
|
+
vars: C,
|
|
4748
|
+
css: T,
|
|
4749
|
+
varsWithDefaults: S
|
|
4750
4750
|
} = Zr(h, r);
|
|
4751
|
-
let
|
|
4751
|
+
let x = S;
|
|
4752
4752
|
const E = {}, {
|
|
4753
4753
|
[f]: p,
|
|
4754
4754
|
...R
|
|
@@ -4759,7 +4759,7 @@ function ji(e, r = {}) {
|
|
|
4759
4759
|
css: Y,
|
|
4760
4760
|
varsWithDefaults: F
|
|
4761
4761
|
} = Zr(A, r);
|
|
4762
|
-
|
|
4762
|
+
x = pe(x, F), E[M] = {
|
|
4763
4763
|
css: Y,
|
|
4764
4764
|
vars: N
|
|
4765
4765
|
};
|
|
@@ -4769,7 +4769,7 @@ function ji(e, r = {}) {
|
|
|
4769
4769
|
vars: A,
|
|
4770
4770
|
varsWithDefaults: N
|
|
4771
4771
|
} = Zr(p, r);
|
|
4772
|
-
|
|
4772
|
+
x = pe(x, N), E[f] = {
|
|
4773
4773
|
css: M,
|
|
4774
4774
|
vars: A
|
|
4775
4775
|
};
|
|
@@ -4790,10 +4790,10 @@ function ji(e, r = {}) {
|
|
|
4790
4790
|
return ":root";
|
|
4791
4791
|
}
|
|
4792
4792
|
return {
|
|
4793
|
-
vars:
|
|
4793
|
+
vars: x,
|
|
4794
4794
|
generateThemeVars: () => {
|
|
4795
4795
|
let M = {
|
|
4796
|
-
...
|
|
4796
|
+
...C
|
|
4797
4797
|
};
|
|
4798
4798
|
return Object.entries(E).forEach(([, {
|
|
4799
4799
|
vars: A
|
|
@@ -4812,8 +4812,8 @@ function ji(e, r = {}) {
|
|
|
4812
4812
|
} : H);
|
|
4813
4813
|
}
|
|
4814
4814
|
N(t(void 0, {
|
|
4815
|
-
...
|
|
4816
|
-
}),
|
|
4815
|
+
...T
|
|
4816
|
+
}), T);
|
|
4817
4817
|
const {
|
|
4818
4818
|
[A]: Y,
|
|
4819
4819
|
...F
|
|
@@ -5073,8 +5073,8 @@ function wt(e) {
|
|
|
5073
5073
|
tonalOffset: n = 0.2,
|
|
5074
5074
|
colorSpace: o,
|
|
5075
5075
|
...a
|
|
5076
|
-
} = e, l = e.primary || Ni(r), u = e.secondary || Ui(r), f = e.error || Di(r), h = e.info || Bi(r),
|
|
5077
|
-
function
|
|
5076
|
+
} = e, l = e.primary || Ni(r), u = e.secondary || Ui(r), f = e.error || Di(r), h = e.info || Bi(r), C = e.success || Vi(r), T = e.warning || Fi(r);
|
|
5077
|
+
function S(R) {
|
|
5078
5078
|
if (o)
|
|
5079
5079
|
return zi(R);
|
|
5080
5080
|
const L = Xt(R, dt.text.primary) >= t ? dt.text.primary : Mn.text.primary;
|
|
@@ -5085,7 +5085,7 @@ function wt(e) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
return L;
|
|
5087
5087
|
}
|
|
5088
|
-
const
|
|
5088
|
+
const x = ({
|
|
5089
5089
|
color: R,
|
|
5090
5090
|
name: L,
|
|
5091
5091
|
mainShade: V = 500,
|
|
@@ -5112,7 +5112,7 @@ const theme1 = createTheme({ palette: {
|
|
|
5112
5112
|
const theme2 = createTheme({ palette: {
|
|
5113
5113
|
primary: { main: green[500] },
|
|
5114
5114
|
} });` : Fe(12, L ? ` (${L})` : "", JSON.stringify(R.main)));
|
|
5115
|
-
return o ? (tn(o, R, "light", D, n), tn(o, R, "dark", M, n)) : (rn(R, "light", D, n), rn(R, "dark", M, n)), R.contrastText || (R.contrastText =
|
|
5115
|
+
return o ? (tn(o, R, "light", D, n), tn(o, R, "dark", M, n)) : (rn(R, "light", D, n), rn(R, "dark", M, n)), R.contrastText || (R.contrastText = S(R.main)), R;
|
|
5116
5116
|
};
|
|
5117
5117
|
let E;
|
|
5118
5118
|
return r === "light" ? E = jn() : r === "dark" && (E = Ln()), process.env.NODE_ENV !== "production" && (E || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), pe({
|
|
@@ -5124,12 +5124,12 @@ const theme2 = createTheme({ palette: {
|
|
|
5124
5124
|
// The palette mode, can be light or dark.
|
|
5125
5125
|
mode: r,
|
|
5126
5126
|
// The colors used to represent primary interface elements for a user.
|
|
5127
|
-
primary:
|
|
5127
|
+
primary: x({
|
|
5128
5128
|
color: l,
|
|
5129
5129
|
name: "primary"
|
|
5130
5130
|
}),
|
|
5131
5131
|
// The colors used to represent secondary interface elements for a user.
|
|
5132
|
-
secondary:
|
|
5132
|
+
secondary: x({
|
|
5133
5133
|
color: u,
|
|
5134
5134
|
name: "secondary",
|
|
5135
5135
|
mainShade: "A400",
|
|
@@ -5137,23 +5137,23 @@ const theme2 = createTheme({ palette: {
|
|
|
5137
5137
|
darkShade: "A700"
|
|
5138
5138
|
}),
|
|
5139
5139
|
// The colors used to represent interface elements that the user should be made aware of.
|
|
5140
|
-
error:
|
|
5140
|
+
error: x({
|
|
5141
5141
|
color: f,
|
|
5142
5142
|
name: "error"
|
|
5143
5143
|
}),
|
|
5144
5144
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
5145
|
-
warning:
|
|
5146
|
-
color:
|
|
5145
|
+
warning: x({
|
|
5146
|
+
color: T,
|
|
5147
5147
|
name: "warning"
|
|
5148
5148
|
}),
|
|
5149
5149
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
5150
|
-
info:
|
|
5150
|
+
info: x({
|
|
5151
5151
|
color: h,
|
|
5152
5152
|
name: "info"
|
|
5153
5153
|
}),
|
|
5154
5154
|
// The colors used to indicate the successful completion of an action that user triggered.
|
|
5155
|
-
success:
|
|
5156
|
-
color:
|
|
5155
|
+
success: x({
|
|
5156
|
+
color: C,
|
|
5157
5157
|
name: "success"
|
|
5158
5158
|
}),
|
|
5159
5159
|
// The grey colors.
|
|
@@ -5162,9 +5162,9 @@ const theme2 = createTheme({ palette: {
|
|
|
5162
5162
|
// the background and the text.
|
|
5163
5163
|
contrastThreshold: t,
|
|
5164
5164
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
5165
|
-
getContrastText:
|
|
5165
|
+
getContrastText: S,
|
|
5166
5166
|
// Generate a rich color object.
|
|
5167
|
-
augmentColor:
|
|
5167
|
+
augmentColor: x,
|
|
5168
5168
|
// Used by the functions below to shift a color's luminance by approximately
|
|
5169
5169
|
// two indexes within its tonal palette.
|
|
5170
5170
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
@@ -5217,14 +5217,14 @@ function Ki(e, r) {
|
|
|
5217
5217
|
htmlFontSize: f = 16,
|
|
5218
5218
|
// Apply the CSS properties to all the variants.
|
|
5219
5219
|
allVariants: h,
|
|
5220
|
-
pxToRem:
|
|
5221
|
-
...
|
|
5220
|
+
pxToRem: C,
|
|
5221
|
+
...T
|
|
5222
5222
|
} = typeof r == "function" ? r(e) : r;
|
|
5223
5223
|
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
5224
|
-
const
|
|
5224
|
+
const S = n / 14, x = C || ((R) => `${R / f * S}rem`), E = (R, L, V, D, M) => ({
|
|
5225
5225
|
fontFamily: t,
|
|
5226
5226
|
fontWeight: R,
|
|
5227
|
-
fontSize:
|
|
5227
|
+
fontSize: x(L),
|
|
5228
5228
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
5229
5229
|
lineHeight: V,
|
|
5230
5230
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
@@ -5259,7 +5259,7 @@ function Ki(e, r) {
|
|
|
5259
5259
|
};
|
|
5260
5260
|
return pe({
|
|
5261
5261
|
htmlFontSize: f,
|
|
5262
|
-
pxToRem:
|
|
5262
|
+
pxToRem: x,
|
|
5263
5263
|
fontFamily: t,
|
|
5264
5264
|
fontSize: n,
|
|
5265
5265
|
fontWeightLight: o,
|
|
@@ -5267,7 +5267,7 @@ function Ki(e, r) {
|
|
|
5267
5267
|
fontWeightMedium: l,
|
|
5268
5268
|
fontWeightBold: u,
|
|
5269
5269
|
...p
|
|
5270
|
-
},
|
|
5270
|
+
}, T, {
|
|
5271
5271
|
clone: !1
|
|
5272
5272
|
// No need to clone deep
|
|
5273
5273
|
});
|
|
@@ -5326,11 +5326,11 @@ function rs(e) {
|
|
|
5326
5326
|
...h
|
|
5327
5327
|
} = a;
|
|
5328
5328
|
if (process.env.NODE_ENV !== "production") {
|
|
5329
|
-
const
|
|
5330
|
-
!
|
|
5329
|
+
const C = (S) => typeof S == "string", T = (S) => !Number.isNaN(parseFloat(S));
|
|
5330
|
+
!C(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !T(l) && !C(l) && console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`), C(u) || console.error('MUI: Argument "easing" must be a string.'), !T(f) && !C(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "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(`
|
|
5331
5331
|
`)), Object.keys(h).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(h).join(",")}].`);
|
|
5332
5332
|
}
|
|
5333
|
-
return (Array.isArray(o) ? o : [o]).map((
|
|
5333
|
+
return (Array.isArray(o) ? o : [o]).map((C) => `${C} ${typeof l == "string" ? l : an(l)} ${u} ${typeof f == "string" ? f : an(f)}`).join(",");
|
|
5334
5334
|
},
|
|
5335
5335
|
...e,
|
|
5336
5336
|
easing: r,
|
|
@@ -5412,28 +5412,28 @@ function ft(e = {}, ...r) {
|
|
|
5412
5412
|
typography: u = {},
|
|
5413
5413
|
shape: f,
|
|
5414
5414
|
colorSpace: h,
|
|
5415
|
-
...
|
|
5415
|
+
...C
|
|
5416
5416
|
} = e;
|
|
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
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." : Fe(20));
|
|
5421
|
-
const
|
|
5421
|
+
const T = wt({
|
|
5422
5422
|
...a,
|
|
5423
5423
|
colorSpace: h
|
|
5424
|
-
}),
|
|
5425
|
-
let
|
|
5426
|
-
mixins: Wi(
|
|
5427
|
-
palette:
|
|
5424
|
+
}), S = _n(e);
|
|
5425
|
+
let x = pe(S, {
|
|
5426
|
+
mixins: Wi(S.breakpoints, n),
|
|
5427
|
+
palette: T,
|
|
5428
5428
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
5429
5429
|
shadows: Zi.slice(),
|
|
5430
|
-
typography: Ki(
|
|
5430
|
+
typography: Ki(T, u),
|
|
5431
5431
|
transitions: rs(l),
|
|
5432
5432
|
zIndex: {
|
|
5433
5433
|
...ts
|
|
5434
5434
|
}
|
|
5435
5435
|
});
|
|
5436
|
-
if (
|
|
5436
|
+
if (x = pe(x, C), x = r.reduce((E, p) => pe(E, p), x), process.env.NODE_ENV !== "production") {
|
|
5437
5437
|
const E = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (R, L) => {
|
|
5438
5438
|
let V;
|
|
5439
5439
|
for (V in R) {
|
|
@@ -5452,20 +5452,20 @@ function ft(e = {}, ...r) {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
}
|
|
5454
5454
|
};
|
|
5455
|
-
Object.keys(
|
|
5456
|
-
const L =
|
|
5455
|
+
Object.keys(x.components).forEach((R) => {
|
|
5456
|
+
const L = x.components[R].styleOverrides;
|
|
5457
5457
|
L && R.startsWith("Mui") && p(L, R);
|
|
5458
5458
|
});
|
|
5459
5459
|
}
|
|
5460
|
-
return
|
|
5460
|
+
return x.unstable_sxConfig = {
|
|
5461
5461
|
...Nr,
|
|
5462
|
-
...
|
|
5463
|
-
},
|
|
5462
|
+
...C == null ? void 0 : C.unstable_sxConfig
|
|
5463
|
+
}, x.unstable_sx = function(p) {
|
|
5464
5464
|
return Qe({
|
|
5465
5465
|
sx: p,
|
|
5466
5466
|
theme: this
|
|
5467
5467
|
});
|
|
5468
|
-
},
|
|
5468
|
+
}, x.toRuntimeSource = Nn, as(x), x;
|
|
5469
5469
|
}
|
|
5470
5470
|
function is(e) {
|
|
5471
5471
|
let r;
|
|
@@ -5559,7 +5559,7 @@ function fs(e, r) {
|
|
|
5559
5559
|
e[t] || (e[t] = {});
|
|
5560
5560
|
});
|
|
5561
5561
|
}
|
|
5562
|
-
function
|
|
5562
|
+
function w(e, r, t) {
|
|
5563
5563
|
!e[r] && t && (e[r] = t);
|
|
5564
5564
|
}
|
|
5565
5565
|
function ir(e) {
|
|
@@ -5627,9 +5627,9 @@ function hs(e = {}, ...r) {
|
|
|
5627
5627
|
shouldSkipGeneratingVar: u = ls,
|
|
5628
5628
|
colorSchemeSelector: f = t.light && t.dark ? "media" : void 0,
|
|
5629
5629
|
rootSelector: h = ":root",
|
|
5630
|
-
...
|
|
5631
|
-
} = e,
|
|
5632
|
-
[
|
|
5630
|
+
...C
|
|
5631
|
+
} = e, T = Object.keys(t)[0], S = n || (t.light && T !== "light" ? "light" : T), x = ms(a), {
|
|
5632
|
+
[S]: E,
|
|
5633
5633
|
light: p,
|
|
5634
5634
|
dark: R,
|
|
5635
5635
|
...L
|
|
@@ -5637,32 +5637,32 @@ function hs(e = {}, ...r) {
|
|
|
5637
5637
|
...L
|
|
5638
5638
|
};
|
|
5639
5639
|
let D = E;
|
|
5640
|
-
if ((
|
|
5641
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${
|
|
5640
|
+
if ((S === "dark" && !("dark" in t) || S === "light" && !("light" in t)) && (D = !0), !D)
|
|
5641
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${S}\` option is either missing or invalid.` : Fe(21, S));
|
|
5642
5642
|
let M;
|
|
5643
5643
|
l && (M = "oklch");
|
|
5644
|
-
const A = Xr(M, V, D,
|
|
5644
|
+
const A = Xr(M, V, D, C, S);
|
|
5645
5645
|
p && !V.light && Xr(M, V, p, void 0, "light"), R && !V.dark && Xr(M, V, R, void 0, "dark");
|
|
5646
5646
|
let N = {
|
|
5647
|
-
defaultColorScheme:
|
|
5647
|
+
defaultColorScheme: S,
|
|
5648
5648
|
...A,
|
|
5649
5649
|
cssVarPrefix: a,
|
|
5650
5650
|
colorSchemeSelector: f,
|
|
5651
5651
|
rootSelector: h,
|
|
5652
|
-
getCssVar:
|
|
5652
|
+
getCssVar: x,
|
|
5653
5653
|
colorSchemes: V,
|
|
5654
5654
|
font: {
|
|
5655
5655
|
...Hi(A.typography),
|
|
5656
5656
|
...A.font
|
|
5657
5657
|
},
|
|
5658
|
-
spacing: ps(
|
|
5658
|
+
spacing: ps(C.spacing)
|
|
5659
5659
|
};
|
|
5660
5660
|
Object.keys(N.colorSchemes).forEach((H) => {
|
|
5661
5661
|
const c = N.colorSchemes[H].palette, j = (U) => {
|
|
5662
5662
|
const B = U.split("-"), G = B[1], ne = B[2];
|
|
5663
|
-
return
|
|
5663
|
+
return x(U, c[G][ne]);
|
|
5664
5664
|
};
|
|
5665
|
-
c.mode === "light" && (
|
|
5665
|
+
c.mode === "light" && (w(c.common, "background", "#fff"), w(c.common, "onBackground", "#000")), c.mode === "dark" && (w(c.common, "background", "#000"), w(c.common, "onBackground", "#fff"));
|
|
5666
5666
|
function O(U, B, G) {
|
|
5667
5667
|
if (M) {
|
|
5668
5668
|
let ne;
|
|
@@ -5671,18 +5671,18 @@ function hs(e = {}, ...r) {
|
|
|
5671
5671
|
return U(B, G);
|
|
5672
5672
|
}
|
|
5673
5673
|
if (fs(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
|
|
5674
|
-
|
|
5674
|
+
w(c.Alert, "errorColor", O(Z, c.error.light, 0.6)), w(c.Alert, "infoColor", O(Z, c.info.light, 0.6)), w(c.Alert, "successColor", O(Z, c.success.light, 0.6)), w(c.Alert, "warningColor", O(Z, c.warning.light, 0.6)), w(c.Alert, "errorFilledBg", j("palette-error-main")), w(c.Alert, "infoFilledBg", j("palette-info-main")), w(c.Alert, "successFilledBg", j("palette-success-main")), w(c.Alert, "warningFilledBg", j("palette-warning-main")), w(c.Alert, "errorFilledColor", ve(() => c.getContrastText(c.error.main))), w(c.Alert, "infoFilledColor", ve(() => c.getContrastText(c.info.main))), w(c.Alert, "successFilledColor", ve(() => c.getContrastText(c.success.main))), w(c.Alert, "warningFilledColor", ve(() => c.getContrastText(c.warning.main))), w(c.Alert, "errorStandardBg", O(X, c.error.light, 0.9)), w(c.Alert, "infoStandardBg", O(X, c.info.light, 0.9)), w(c.Alert, "successStandardBg", O(X, c.success.light, 0.9)), w(c.Alert, "warningStandardBg", O(X, c.warning.light, 0.9)), w(c.Alert, "errorIconColor", j("palette-error-main")), w(c.Alert, "infoIconColor", j("palette-info-main")), w(c.Alert, "successIconColor", j("palette-success-main")), w(c.Alert, "warningIconColor", j("palette-warning-main")), w(c.AppBar, "defaultBg", j("palette-grey-100")), w(c.Avatar, "defaultBg", j("palette-grey-400")), w(c.Button, "inheritContainedBg", j("palette-grey-300")), w(c.Button, "inheritContainedHoverBg", j("palette-grey-A100")), w(c.Chip, "defaultBorder", j("palette-grey-400")), w(c.Chip, "defaultAvatarColor", j("palette-grey-700")), w(c.Chip, "defaultIconColor", j("palette-grey-700")), w(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), w(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), w(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), w(c.LinearProgress, "primaryBg", O(X, c.primary.main, 0.62)), w(c.LinearProgress, "secondaryBg", O(X, c.secondary.main, 0.62)), w(c.LinearProgress, "errorBg", O(X, c.error.main, 0.62)), w(c.LinearProgress, "infoBg", O(X, c.info.main, 0.62)), w(c.LinearProgress, "successBg", O(X, c.success.main, 0.62)), w(c.LinearProgress, "warningBg", O(X, c.warning.main, 0.62)), w(c.Skeleton, "bg", M ? O(Ne, c.text.primary, 0.11) : `rgba(${j("palette-text-primaryChannel")} / 0.11)`), w(c.Slider, "primaryTrack", O(X, c.primary.main, 0.62)), w(c.Slider, "secondaryTrack", O(X, c.secondary.main, 0.62)), w(c.Slider, "errorTrack", O(X, c.error.main, 0.62)), w(c.Slider, "infoTrack", O(X, c.info.main, 0.62)), w(c.Slider, "successTrack", O(X, c.success.main, 0.62)), w(c.Slider, "warningTrack", O(X, c.warning.main, 0.62));
|
|
5675
5675
|
const U = M ? O(Z, c.background.default, 0.6825) : gr(c.background.default, 0.8);
|
|
5676
|
-
|
|
5676
|
+
w(c.SnackbarContent, "bg", U), w(c.SnackbarContent, "color", ve(() => M ? dt.text.primary : c.getContrastText(U))), w(c.SpeedDialAction, "fabHoverBg", gr(c.background.paper, 0.15)), w(c.StepConnector, "border", j("palette-grey-400")), w(c.StepContent, "border", j("palette-grey-400")), w(c.Switch, "defaultColor", j("palette-common-white")), w(c.Switch, "defaultDisabledColor", j("palette-grey-100")), w(c.Switch, "primaryDisabledColor", O(X, c.primary.main, 0.62)), w(c.Switch, "secondaryDisabledColor", O(X, c.secondary.main, 0.62)), w(c.Switch, "errorDisabledColor", O(X, c.error.main, 0.62)), w(c.Switch, "infoDisabledColor", O(X, c.info.main, 0.62)), w(c.Switch, "successDisabledColor", O(X, c.success.main, 0.62)), w(c.Switch, "warningDisabledColor", O(X, c.warning.main, 0.62)), w(c.TableCell, "border", O(X, O(Ne, c.divider, 1), 0.88)), w(c.Tooltip, "bg", O(Ne, c.grey[700], 0.92));
|
|
5677
5677
|
}
|
|
5678
5678
|
if (c.mode === "dark") {
|
|
5679
|
-
|
|
5679
|
+
w(c.Alert, "errorColor", O(X, c.error.light, 0.6)), w(c.Alert, "infoColor", O(X, c.info.light, 0.6)), w(c.Alert, "successColor", O(X, c.success.light, 0.6)), w(c.Alert, "warningColor", O(X, c.warning.light, 0.6)), w(c.Alert, "errorFilledBg", j("palette-error-dark")), w(c.Alert, "infoFilledBg", j("palette-info-dark")), w(c.Alert, "successFilledBg", j("palette-success-dark")), w(c.Alert, "warningFilledBg", j("palette-warning-dark")), w(c.Alert, "errorFilledColor", ve(() => c.getContrastText(c.error.dark))), w(c.Alert, "infoFilledColor", ve(() => c.getContrastText(c.info.dark))), w(c.Alert, "successFilledColor", ve(() => c.getContrastText(c.success.dark))), w(c.Alert, "warningFilledColor", ve(() => c.getContrastText(c.warning.dark))), w(c.Alert, "errorStandardBg", O(Z, c.error.light, 0.9)), w(c.Alert, "infoStandardBg", O(Z, c.info.light, 0.9)), w(c.Alert, "successStandardBg", O(Z, c.success.light, 0.9)), w(c.Alert, "warningStandardBg", O(Z, c.warning.light, 0.9)), w(c.Alert, "errorIconColor", j("palette-error-main")), w(c.Alert, "infoIconColor", j("palette-info-main")), w(c.Alert, "successIconColor", j("palette-success-main")), w(c.Alert, "warningIconColor", j("palette-warning-main")), w(c.AppBar, "defaultBg", j("palette-grey-900")), w(c.AppBar, "darkBg", j("palette-background-paper")), w(c.AppBar, "darkColor", j("palette-text-primary")), w(c.Avatar, "defaultBg", j("palette-grey-600")), w(c.Button, "inheritContainedBg", j("palette-grey-800")), w(c.Button, "inheritContainedHoverBg", j("palette-grey-700")), w(c.Chip, "defaultBorder", j("palette-grey-700")), w(c.Chip, "defaultAvatarColor", j("palette-grey-300")), w(c.Chip, "defaultIconColor", j("palette-grey-300")), w(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), w(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), w(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), w(c.LinearProgress, "primaryBg", O(Z, c.primary.main, 0.5)), w(c.LinearProgress, "secondaryBg", O(Z, c.secondary.main, 0.5)), w(c.LinearProgress, "errorBg", O(Z, c.error.main, 0.5)), w(c.LinearProgress, "infoBg", O(Z, c.info.main, 0.5)), w(c.LinearProgress, "successBg", O(Z, c.success.main, 0.5)), w(c.LinearProgress, "warningBg", O(Z, c.warning.main, 0.5)), w(c.Skeleton, "bg", M ? O(Ne, c.text.primary, 0.13) : `rgba(${j("palette-text-primaryChannel")} / 0.13)`), w(c.Slider, "primaryTrack", O(Z, c.primary.main, 0.5)), w(c.Slider, "secondaryTrack", O(Z, c.secondary.main, 0.5)), w(c.Slider, "errorTrack", O(Z, c.error.main, 0.5)), w(c.Slider, "infoTrack", O(Z, c.info.main, 0.5)), w(c.Slider, "successTrack", O(Z, c.success.main, 0.5)), w(c.Slider, "warningTrack", O(Z, c.warning.main, 0.5));
|
|
5680
5680
|
const U = M ? O(X, c.background.default, 0.985) : gr(c.background.default, 0.98);
|
|
5681
|
-
|
|
5681
|
+
w(c.SnackbarContent, "bg", U), w(c.SnackbarContent, "color", ve(() => M ? Mn.text.primary : c.getContrastText(U))), w(c.SpeedDialAction, "fabHoverBg", gr(c.background.paper, 0.15)), w(c.StepConnector, "border", j("palette-grey-600")), w(c.StepContent, "border", j("palette-grey-600")), w(c.Switch, "defaultColor", j("palette-grey-300")), w(c.Switch, "defaultDisabledColor", j("palette-grey-600")), w(c.Switch, "primaryDisabledColor", O(Z, c.primary.main, 0.55)), w(c.Switch, "secondaryDisabledColor", O(Z, c.secondary.main, 0.55)), w(c.Switch, "errorDisabledColor", O(Z, c.error.main, 0.55)), w(c.Switch, "infoDisabledColor", O(Z, c.info.main, 0.55)), w(c.Switch, "successDisabledColor", O(Z, c.success.main, 0.55)), w(c.Switch, "warningDisabledColor", O(Z, c.warning.main, 0.55)), w(c.TableCell, "border", O(Z, O(Ne, c.divider, 1), 0.68)), w(c.Tooltip, "bg", O(Ne, c.grey[700], 0.92));
|
|
5682
5682
|
}
|
|
5683
5683
|
Te(c.background, "default"), Te(c.background, "paper"), Te(c.common, "background"), Te(c.common, "onBackground"), Te(c, "divider"), Object.keys(c).forEach((U) => {
|
|
5684
5684
|
const B = c[U];
|
|
5685
|
-
U !== "tonalOffset" && B && typeof B == "object" && (B.main &&
|
|
5685
|
+
U !== "tonalOffset" && B && typeof B == "object" && (B.main && w(c[U], "mainChannel", ar(ir(B.main))), B.light && w(c[U], "lightChannel", ar(ir(B.light))), B.dark && w(c[U], "darkChannel", ar(ir(B.dark))), B.contrastText && w(c[U], "contrastTextChannel", ar(ir(B.contrastText))), U === "text" && (Te(c[U], "primary"), Te(c[U], "secondary")), U === "action" && (B.active && Te(c[U], "active"), B.selected && Te(c[U], "selected")));
|
|
5686
5686
|
});
|
|
5687
5687
|
}), N = r.reduce((H, c) => pe(H, c), N);
|
|
5688
5688
|
const Y = {
|
|
@@ -5699,10 +5699,10 @@ function hs(e = {}, ...r) {
|
|
|
5699
5699
|
return N.vars = F, Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([H, c]) => {
|
|
5700
5700
|
N[H] = c;
|
|
5701
5701
|
}), N.generateThemeVars = Q, N.generateStyleSheets = ce, N.generateSpacing = function() {
|
|
5702
|
-
return kn(
|
|
5702
|
+
return kn(C.spacing, yt(this));
|
|
5703
5703
|
}, N.getColorSchemeSelector = Mi(f), N.spacing = N.generateSpacing(), N.shouldSkipGeneratingVar = u, N.unstable_sxConfig = {
|
|
5704
5704
|
...Nr,
|
|
5705
|
-
...
|
|
5705
|
+
...C == null ? void 0 : C.unstable_sxConfig
|
|
5706
5706
|
}, N.unstable_sx = function(c) {
|
|
5707
5707
|
return Qe({
|
|
5708
5708
|
sx: c,
|
|
@@ -5741,21 +5741,21 @@ function gs(e = {}, ...r) {
|
|
|
5741
5741
|
if (n === !1) {
|
|
5742
5742
|
if (!("colorSchemes" in e))
|
|
5743
5743
|
return ft(e, ...r);
|
|
5744
|
-
let
|
|
5745
|
-
"palette" in e || h[u] && (h[u] !== !0 ?
|
|
5744
|
+
let C = t;
|
|
5745
|
+
"palette" in e || h[u] && (h[u] !== !0 ? C = h[u].palette : u === "dark" && (C = {
|
|
5746
5746
|
mode: "dark"
|
|
5747
5747
|
}));
|
|
5748
|
-
const
|
|
5748
|
+
const T = ft({
|
|
5749
5749
|
...e,
|
|
5750
|
-
palette:
|
|
5750
|
+
palette: C
|
|
5751
5751
|
}, ...r);
|
|
5752
|
-
return
|
|
5752
|
+
return T.defaultColorScheme = u, T.colorSchemes = h, T.palette.mode === "light" && (T.colorSchemes.light = {
|
|
5753
5753
|
...h.light !== !0 && h.light,
|
|
5754
|
-
palette:
|
|
5755
|
-
}, cn(
|
|
5754
|
+
palette: T.palette
|
|
5755
|
+
}, cn(T, "dark", h.dark)), T.palette.mode === "dark" && (T.colorSchemes.dark = {
|
|
5756
5756
|
...h.dark !== !0 && h.dark,
|
|
5757
|
-
palette:
|
|
5758
|
-
}, cn(
|
|
5757
|
+
palette: T.palette
|
|
5758
|
+
}, cn(T, "light", h.light)), T;
|
|
5759
5759
|
}
|
|
5760
5760
|
return !t && !("light" in h) && u === "light" && (h.light = !0), hs({
|
|
5761
5761
|
...l,
|
|
@@ -5802,7 +5802,7 @@ const Es = (e) => {
|
|
|
5802
5802
|
})(Ss(({
|
|
5803
5803
|
theme: e
|
|
5804
5804
|
}) => {
|
|
5805
|
-
var r, t, n, o, a, l, u, f, h,
|
|
5805
|
+
var r, t, n, o, a, l, u, f, h, C, T, S, x, E;
|
|
5806
5806
|
return {
|
|
5807
5807
|
userSelect: "none",
|
|
5808
5808
|
width: "1em",
|
|
@@ -5850,7 +5850,7 @@ const Es = (e) => {
|
|
|
5850
5850
|
fontSize: "large"
|
|
5851
5851
|
},
|
|
5852
5852
|
style: {
|
|
5853
|
-
fontSize: ((
|
|
5853
|
+
fontSize: ((C = (h = e.typography) == null ? void 0 : h.pxToRem) == null ? void 0 : C.call(h, 35)) || "2.1875rem"
|
|
5854
5854
|
}
|
|
5855
5855
|
},
|
|
5856
5856
|
// TODO v5 deprecate color prop, v6 remove for sx
|
|
@@ -5870,7 +5870,7 @@ const Es = (e) => {
|
|
|
5870
5870
|
color: "action"
|
|
5871
5871
|
},
|
|
5872
5872
|
style: {
|
|
5873
|
-
color: (
|
|
5873
|
+
color: (S = (T = (e.vars ?? e).palette) == null ? void 0 : T.action) == null ? void 0 : S.active
|
|
5874
5874
|
}
|
|
5875
5875
|
},
|
|
5876
5876
|
{
|
|
@@ -5878,7 +5878,7 @@ const Es = (e) => {
|
|
|
5878
5878
|
color: "disabled"
|
|
5879
5879
|
},
|
|
5880
5880
|
style: {
|
|
5881
|
-
color: (E = (
|
|
5881
|
+
color: (E = (x = (e.vars ?? e).palette) == null ? void 0 : x.action) == null ? void 0 : E.disabled
|
|
5882
5882
|
}
|
|
5883
5883
|
},
|
|
5884
5884
|
{
|
|
@@ -5902,36 +5902,36 @@ const Es = (e) => {
|
|
|
5902
5902
|
component: u = "svg",
|
|
5903
5903
|
fontSize: f = "medium",
|
|
5904
5904
|
htmlColor: h,
|
|
5905
|
-
inheritViewBox:
|
|
5906
|
-
titleAccess:
|
|
5907
|
-
viewBox:
|
|
5908
|
-
...
|
|
5905
|
+
inheritViewBox: C = !1,
|
|
5906
|
+
titleAccess: T,
|
|
5907
|
+
viewBox: S = "0 0 24 24",
|
|
5908
|
+
...x
|
|
5909
5909
|
} = n, E = /* @__PURE__ */ je.isValidElement(o) && o.type === "svg", p = {
|
|
5910
5910
|
...n,
|
|
5911
5911
|
color: l,
|
|
5912
5912
|
component: u,
|
|
5913
5913
|
fontSize: f,
|
|
5914
5914
|
instanceFontSize: r.fontSize,
|
|
5915
|
-
inheritViewBox:
|
|
5916
|
-
viewBox:
|
|
5915
|
+
inheritViewBox: C,
|
|
5916
|
+
viewBox: S,
|
|
5917
5917
|
hasSvgAsChild: E
|
|
5918
5918
|
}, R = {};
|
|
5919
|
-
|
|
5919
|
+
C || (R.viewBox = S);
|
|
5920
5920
|
const L = Es(p);
|
|
5921
5921
|
return /* @__PURE__ */ d.jsxs(ks, {
|
|
5922
5922
|
as: u,
|
|
5923
5923
|
className: Sn(L.root, a),
|
|
5924
5924
|
focusable: "false",
|
|
5925
5925
|
color: h,
|
|
5926
|
-
"aria-hidden":
|
|
5927
|
-
role:
|
|
5926
|
+
"aria-hidden": T ? void 0 : !0,
|
|
5927
|
+
role: T ? "img" : void 0,
|
|
5928
5928
|
ref: t,
|
|
5929
5929
|
...R,
|
|
5930
|
-
...
|
|
5930
|
+
...x,
|
|
5931
5931
|
...E && o.props,
|
|
5932
5932
|
ownerState: p,
|
|
5933
|
-
children: [E ? o.props.children : o,
|
|
5934
|
-
children:
|
|
5933
|
+
children: [E ? o.props.children : o, T ? /* @__PURE__ */ d.jsx("title", {
|
|
5934
|
+
children: T
|
|
5935
5935
|
}) : null]
|
|
5936
5936
|
});
|
|
5937
5937
|
});
|
|
@@ -6169,16 +6169,16 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6169
6169
|
const [t, n] = Er(null), [o] = Pe(Se.general), [a] = Pe(Se.avatar), l = Ze(
|
|
6170
6170
|
() => o || a,
|
|
6171
6171
|
[o, a]
|
|
6172
|
-
), u = Re((
|
|
6173
|
-
var
|
|
6174
|
-
const
|
|
6175
|
-
return `${((
|
|
6176
|
-
}, [f]),
|
|
6177
|
-
(
|
|
6178
|
-
n(
|
|
6172
|
+
), u = Re((S) => S.avatar), f = Re((S) => S.nombre), h = Ze(() => {
|
|
6173
|
+
var x, E;
|
|
6174
|
+
const S = f == null ? void 0 : f.split(" ");
|
|
6175
|
+
return `${((x = S == null ? void 0 : S[0]) == null ? void 0 : x.charAt(0)) ?? ""}${((E = S == null ? void 0 : S[1]) == null ? void 0 : E.charAt(0)) ?? ""}`;
|
|
6176
|
+
}, [f]), C = be(
|
|
6177
|
+
(S) => {
|
|
6178
|
+
n(S.currentTarget);
|
|
6179
6179
|
},
|
|
6180
6180
|
[]
|
|
6181
|
-
),
|
|
6181
|
+
), T = be(() => {
|
|
6182
6182
|
n(null);
|
|
6183
6183
|
}, []);
|
|
6184
6184
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
@@ -6186,7 +6186,7 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6186
6186
|
dn,
|
|
6187
6187
|
{
|
|
6188
6188
|
sx: { borderRadius: 100 },
|
|
6189
|
-
onClick:
|
|
6189
|
+
onClick: C,
|
|
6190
6190
|
disabled: l,
|
|
6191
6191
|
children: /* @__PURE__ */ d.jsx(
|
|
6192
6192
|
Xn,
|
|
@@ -6205,16 +6205,16 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6205
6205
|
{
|
|
6206
6206
|
open: !!t,
|
|
6207
6207
|
anchorEl: t,
|
|
6208
|
-
onClose:
|
|
6208
|
+
onClose: T,
|
|
6209
6209
|
children: [
|
|
6210
|
-
r == null ? void 0 : r.map(({ nombre:
|
|
6211
|
-
const p = typeof
|
|
6210
|
+
r == null ? void 0 : r.map(({ nombre: S, icono: x, slotProps: E }) => {
|
|
6211
|
+
const p = typeof x == "string" ? /* @__PURE__ */ d.jsx(kr, { children: x }) : x ? /* @__PURE__ */ d.jsx(x, {}) : null;
|
|
6212
6212
|
return /* @__PURE__ */ d.jsxs(nt, { ...E == null ? void 0 : E.MenuItem, children: [
|
|
6213
6213
|
p && /* @__PURE__ */ d.jsx(Xe, { children: p }),
|
|
6214
6214
|
/* @__PURE__ */ d.jsx(
|
|
6215
6215
|
me,
|
|
6216
6216
|
{
|
|
6217
|
-
primary:
|
|
6217
|
+
primary: S,
|
|
6218
6218
|
slotProps: {
|
|
6219
6219
|
primary: {
|
|
6220
6220
|
fontWeight: 500
|
|
@@ -6386,9 +6386,9 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6386
6386
|
}) => {
|
|
6387
6387
|
const l = bn(
|
|
6388
6388
|
(L) => !!L.toolbar.length
|
|
6389
|
-
), [u] = Pe(Se.apps), [f] = Pe(Se.general), [h] = Pe(Se.nombreApp),
|
|
6389
|
+
), [u] = Pe(Se.apps), [f] = Pe(Se.general), [h] = Pe(Se.nombreApp), C = Be((L) => L.inhabilitado), T = Re((L) => L.abrirApps), S = Re(
|
|
6390
6390
|
(L) => L.mostrarBotonDrawer
|
|
6391
|
-
),
|
|
6391
|
+
), x = Wn(null), E = be(() => {
|
|
6392
6392
|
ke.setState({ abrirApps: !0 });
|
|
6393
6393
|
}, []), p = be(() => {
|
|
6394
6394
|
ke.setState({ abrirApps: !1 });
|
|
@@ -6411,11 +6411,11 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6411
6411
|
justifyContent: "space-between",
|
|
6412
6412
|
children: [
|
|
6413
6413
|
/* @__PURE__ */ d.jsxs(ye, { display: "flex", alignItems: "center", children: [
|
|
6414
|
-
/* @__PURE__ */ d.jsx(to, { in:
|
|
6414
|
+
/* @__PURE__ */ d.jsx(to, { in: S, children: /* @__PURE__ */ d.jsx(
|
|
6415
6415
|
St,
|
|
6416
6416
|
{
|
|
6417
6417
|
onClick: R,
|
|
6418
|
-
disabled:
|
|
6418
|
+
disabled: C,
|
|
6419
6419
|
children: /* @__PURE__ */ d.jsx(zs, {})
|
|
6420
6420
|
}
|
|
6421
6421
|
) }),
|
|
@@ -6436,7 +6436,7 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6436
6436
|
St,
|
|
6437
6437
|
{
|
|
6438
6438
|
disabled: u || !e.length,
|
|
6439
|
-
ref:
|
|
6439
|
+
ref: x,
|
|
6440
6440
|
sx: { ml: 2 },
|
|
6441
6441
|
onClick: E,
|
|
6442
6442
|
children: u || f ? /* @__PURE__ */ d.jsx(fn, { size: 18 }) : /* @__PURE__ */ d.jsx(Fs, {})
|
|
@@ -6453,8 +6453,8 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6453
6453
|
/* @__PURE__ */ d.jsx(
|
|
6454
6454
|
ao,
|
|
6455
6455
|
{
|
|
6456
|
-
open:
|
|
6457
|
-
anchorEl:
|
|
6456
|
+
open: T,
|
|
6457
|
+
anchorEl: x.current,
|
|
6458
6458
|
onClose: p,
|
|
6459
6459
|
anchorOrigin: {
|
|
6460
6460
|
vertical: "bottom",
|
|
@@ -6488,7 +6488,7 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6488
6488
|
LinkComponent: f
|
|
6489
6489
|
}) => {
|
|
6490
6490
|
const h = Re(
|
|
6491
|
-
(
|
|
6491
|
+
(C) => typeof C.terminal == "number"
|
|
6492
6492
|
);
|
|
6493
6493
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
6494
6494
|
/* @__PURE__ */ d.jsx(
|
|
@@ -6514,15 +6514,20 @@ const _s = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6514
6514
|
keycloack: null
|
|
6515
6515
|
})), Ys = Vn, uc = (e) => Bn.filter(
|
|
6516
6516
|
({ id: r }) => e.some(({ id: t }) => r === t)
|
|
6517
|
-
), Ks = (e, r) => r.reduce(
|
|
6518
|
-
(
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
...n
|
|
6524
|
-
|
|
6525
|
-
|
|
6517
|
+
), Ks = (e, r, t) => r.reduce(
|
|
6518
|
+
(n, o) => {
|
|
6519
|
+
const a = e.some(
|
|
6520
|
+
({ id: u }) => Number(u) === o.codigo_terminal
|
|
6521
|
+
), l = typeof t == "number" && o.codigo_terminal === t;
|
|
6522
|
+
return a || l ? [
|
|
6523
|
+
...n,
|
|
6524
|
+
{
|
|
6525
|
+
codigo: o.codigo_terminal,
|
|
6526
|
+
...o.abreviado && { abreviado: o.abreviado },
|
|
6527
|
+
...o.nombre && { nombre: o.nombre }
|
|
6528
|
+
}
|
|
6529
|
+
] : n;
|
|
6530
|
+
},
|
|
6526
6531
|
[]
|
|
6527
6532
|
), { set: un } = xr.getState();
|
|
6528
6533
|
function Gs({
|
|
@@ -6533,27 +6538,27 @@ function Gs({
|
|
|
6533
6538
|
LinkComponent: o,
|
|
6534
6539
|
tema: a
|
|
6535
6540
|
}) {
|
|
6536
|
-
const l = Ys((
|
|
6541
|
+
const l = Ys((T) => T.permisos), [u, f] = Er([]), h = () => {
|
|
6537
6542
|
rr.logout();
|
|
6538
|
-
},
|
|
6543
|
+
}, C = n.reduce((T, S) => {
|
|
6539
6544
|
var E, p;
|
|
6540
|
-
const
|
|
6541
|
-
return
|
|
6542
|
-
...
|
|
6545
|
+
const x = (E = l == null ? void 0 : l.menus) == null ? void 0 : E.find(({ id: R }) => S.id === R);
|
|
6546
|
+
return x ? [
|
|
6547
|
+
...T,
|
|
6543
6548
|
{
|
|
6544
|
-
...
|
|
6545
|
-
subMenus: (p =
|
|
6549
|
+
...S,
|
|
6550
|
+
subMenus: (p = S.subMenus) == null ? void 0 : p.filter(
|
|
6546
6551
|
({ id: R }) => {
|
|
6547
6552
|
var L;
|
|
6548
|
-
return (L =
|
|
6553
|
+
return (L = x == null ? void 0 : x.sub_menu) == null ? void 0 : L.some(({ id: V }) => R === V);
|
|
6549
6554
|
}
|
|
6550
6555
|
)
|
|
6551
6556
|
}
|
|
6552
|
-
] :
|
|
6557
|
+
] : T;
|
|
6553
6558
|
}, []);
|
|
6554
6559
|
return Yn(() => {
|
|
6555
6560
|
if (rr.didInitialize) return;
|
|
6556
|
-
const
|
|
6561
|
+
const T = new URL(
|
|
6557
6562
|
"/silent-check-sso.html",
|
|
6558
6563
|
window.location.href
|
|
6559
6564
|
).toString();
|
|
@@ -6561,16 +6566,20 @@ function Gs({
|
|
|
6561
6566
|
onLoad: "check-sso",
|
|
6562
6567
|
pkceMethod: "S256",
|
|
6563
6568
|
flow: "standard",
|
|
6564
|
-
silentCheckSsoRedirectUri:
|
|
6565
|
-
}).then((
|
|
6566
|
-
|
|
6567
|
-
|
|
6569
|
+
silentCheckSsoRedirectUri: T
|
|
6570
|
+
}).then((S) => {
|
|
6571
|
+
S || rr.login({
|
|
6572
|
+
// select_account fuerza pantalla de selección de cuenta en el IdP (ej. Google).
|
|
6573
|
+
// Tipos de keycloak-js no incluyen select_account; es válido en OIDC.
|
|
6574
|
+
prompt: "select_account"
|
|
6575
|
+
});
|
|
6576
|
+
const x = rr.idTokenParsed, { terminal: E, setTerminal: p } = ke.getState(), R = `${(x == null ? void 0 : x.given_name) ?? ""}${x != null && x.given_name && (x != null && x.family_name) ? " " : ""}${x == null ? void 0 : x.family_name}`;
|
|
6568
6577
|
ke.setState({
|
|
6569
6578
|
nombre: R
|
|
6570
6579
|
});
|
|
6571
|
-
const L =
|
|
6580
|
+
const L = x.terminal;
|
|
6572
6581
|
typeof E != "number" && typeof L == "number" && p(Number(L));
|
|
6573
|
-
const V =
|
|
6582
|
+
const V = x.email;
|
|
6574
6583
|
V ? lo(V).then(async (D) => {
|
|
6575
6584
|
var ce, H, c, j, O;
|
|
6576
6585
|
const M = (j = (c = (H = (ce = D.response) == null ? void 0 : ce[0]) == null ? void 0 : H.permisos) == null ? void 0 : c.aplicaciones) == null ? void 0 : j.find(
|
|
@@ -6595,7 +6604,8 @@ function Gs({
|
|
|
6595
6604
|
throw new Error("No se han encontrado terminales");
|
|
6596
6605
|
const N = Ks(
|
|
6597
6606
|
D.response[0].terminales ?? [],
|
|
6598
|
-
A.data
|
|
6607
|
+
A.data,
|
|
6608
|
+
typeof (x == null ? void 0 : x.terminal) == "number" ? x.terminal : void 0
|
|
6599
6609
|
);
|
|
6600
6610
|
if (!N.length)
|
|
6601
6611
|
throw new Error("No tienes acceso a ninguna terminal");
|
|
@@ -6603,7 +6613,7 @@ function Gs({
|
|
|
6603
6613
|
terminales: N,
|
|
6604
6614
|
mostrarBotonDrawer: !0
|
|
6605
6615
|
}), _e.setState({ cargando: !1 });
|
|
6606
|
-
const { terminal: Y, setTerminal: F } = ke.getState(), Q = Number(
|
|
6616
|
+
const { terminal: Y, setTerminal: F } = ke.getState(), Q = Number(x == null ? void 0 : x.terminal);
|
|
6607
6617
|
Y || F(
|
|
6608
6618
|
Number.isNaN(Q) ? N[0].codigo : Q
|
|
6609
6619
|
);
|
|
@@ -6617,7 +6627,7 @@ function Gs({
|
|
|
6617
6627
|
Ws,
|
|
6618
6628
|
{
|
|
6619
6629
|
apps: u,
|
|
6620
|
-
menus:
|
|
6630
|
+
menus: C,
|
|
6621
6631
|
nombreApp: t ?? (l == null ? void 0 : l.nombre),
|
|
6622
6632
|
onCerrarSesion: h,
|
|
6623
6633
|
LinkComponent: o,
|