@fastspace/schema-form 0.0.6 → 0.0.8
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 +48 -3
- package/dist/schema-form-lib.js +990 -987
- package/dist/schema-form-lib.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/schema-form-lib.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as A from "valibot";
|
|
2
2
|
import { jsx as E, jsxs as fe, Fragment as Dr } from "react/jsx-runtime";
|
|
3
3
|
import * as B from "react";
|
|
4
|
-
import dt, { memo as mi, forwardRef as mo,
|
|
5
|
-
import { Controller as
|
|
4
|
+
import dt, { memo as mi, forwardRef as mo, useRef as De, useState as Ne, useEffect as je, useCallback as ho, isValidElement as _t, cloneElement as Nt, Children as hi, useMemo as Ge, useImperativeHandle as gi } from "react";
|
|
5
|
+
import { Controller as jr, useFieldArray as yi, useForm as bi, useWatch as vi, FormProvider as Si } from "react-hook-form";
|
|
6
6
|
import { ThemeContext as xi, keyframes as St, css as go } from "@emotion/react";
|
|
7
7
|
import Ci from "@emotion/styled";
|
|
8
|
-
import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as Ti, TextField as lt, FormControlLabel as
|
|
8
|
+
import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as Ti, TextField as lt, FormControlLabel as Vr, Checkbox as wi, FormHelperText as zr, Grid as $t, RadioGroup as Ei, Radio as Oi, Stack as nn, FormLabel as jt, Rating as $i, Slider as Ri, Switch as ki } from "@mui/material";
|
|
9
9
|
import { LocalizationProvider as Wr } from "@mui/x-date-pickers";
|
|
10
10
|
import { AdapterDayjs as Lr } from "@mui/x-date-pickers/AdapterDayjs";
|
|
11
11
|
import { DateTimePicker as Ai } from "@mui/x-date-pickers/DateTimePicker";
|
|
@@ -98,7 +98,7 @@ function Di(e) {
|
|
|
98
98
|
}
|
|
99
99
|
return Array.from(t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ji(e) {
|
|
102
102
|
const t = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g, r = e.match(t) ?? [], n = /* @__PURE__ */ new Set([
|
|
103
103
|
"true",
|
|
104
104
|
"false",
|
|
@@ -119,7 +119,7 @@ function Vi(e) {
|
|
|
119
119
|
]);
|
|
120
120
|
return r.filter((o) => !n.has(o));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Vi(e) {
|
|
123
123
|
const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = {}, o = [], i = (a) => {
|
|
124
124
|
for (const l of a) {
|
|
125
125
|
const u = l.name;
|
|
@@ -146,7 +146,7 @@ function ji(e) {
|
|
|
146
146
|
for (const d of a.compute.dependencies)
|
|
147
147
|
u.add(d);
|
|
148
148
|
else
|
|
149
|
-
for (const d of
|
|
149
|
+
for (const d of ji(a.compute.expr))
|
|
150
150
|
u.add(d);
|
|
151
151
|
for (const d of u)
|
|
152
152
|
r.has(d) || r.set(d, /* @__PURE__ */ new Set()), r.get(d)?.add(l);
|
|
@@ -313,13 +313,13 @@ function wr(e, t) {
|
|
|
313
313
|
const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0, C = {};
|
|
314
314
|
for (const S of h)
|
|
315
315
|
if (S.component === "Group" && S.columns)
|
|
316
|
-
for (const
|
|
317
|
-
C[
|
|
316
|
+
for (const T of S.columns)
|
|
317
|
+
C[T.name] = wr(T, t);
|
|
318
318
|
else S.component !== "Group" && (C[S.name] = wr(S, t));
|
|
319
|
-
const k = A.object(C),
|
|
320
|
-
f > 0 &&
|
|
319
|
+
const k = A.object(C), M = [];
|
|
320
|
+
f > 0 && M.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && M.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
|
|
321
321
|
const $ = A.array(k);
|
|
322
|
-
return
|
|
322
|
+
return M.length > 0 ? A.pipe($, ...M) : $;
|
|
323
323
|
}
|
|
324
324
|
if (n === "Upload") {
|
|
325
325
|
const h = o.find((g) => g.type === "array"), f = h?.type === "array" ? h.minItems ?? (i ? 1 : 0) : i ? 1 : 0;
|
|
@@ -440,11 +440,11 @@ var on;
|
|
|
440
440
|
function Gi() {
|
|
441
441
|
if (on) return te;
|
|
442
442
|
on = 1;
|
|
443
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
444
|
-
function
|
|
443
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
444
|
+
function M(S) {
|
|
445
445
|
if (typeof S == "object" && S !== null) {
|
|
446
|
-
var
|
|
447
|
-
switch (
|
|
446
|
+
var T = S.$$typeof;
|
|
447
|
+
switch (T) {
|
|
448
448
|
case t:
|
|
449
449
|
switch (S = S.type, S) {
|
|
450
450
|
case u:
|
|
@@ -457,79 +457,79 @@ function Gi() {
|
|
|
457
457
|
default:
|
|
458
458
|
switch (S = S && S.$$typeof, S) {
|
|
459
459
|
case l:
|
|
460
|
-
case
|
|
460
|
+
case m:
|
|
461
461
|
case h:
|
|
462
462
|
case b:
|
|
463
463
|
case a:
|
|
464
464
|
return S;
|
|
465
465
|
default:
|
|
466
|
-
return
|
|
466
|
+
return T;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
case r:
|
|
470
|
-
return
|
|
470
|
+
return T;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
function $(S) {
|
|
475
|
-
return
|
|
475
|
+
return M(S) === d;
|
|
476
476
|
}
|
|
477
|
-
return te.AsyncMode = u, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = a, te.Element = t, te.ForwardRef =
|
|
478
|
-
return $(S) ||
|
|
477
|
+
return te.AsyncMode = u, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = a, te.Element = t, te.ForwardRef = m, te.Fragment = n, te.Lazy = h, te.Memo = b, te.Portal = r, te.Profiler = i, te.StrictMode = o, te.Suspense = y, te.isAsyncMode = function(S) {
|
|
478
|
+
return $(S) || M(S) === u;
|
|
479
479
|
}, te.isConcurrentMode = $, te.isContextConsumer = function(S) {
|
|
480
|
-
return
|
|
480
|
+
return M(S) === l;
|
|
481
481
|
}, te.isContextProvider = function(S) {
|
|
482
|
-
return
|
|
482
|
+
return M(S) === a;
|
|
483
483
|
}, te.isElement = function(S) {
|
|
484
484
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
485
485
|
}, te.isForwardRef = function(S) {
|
|
486
|
-
return
|
|
486
|
+
return M(S) === m;
|
|
487
487
|
}, te.isFragment = function(S) {
|
|
488
|
-
return
|
|
488
|
+
return M(S) === n;
|
|
489
489
|
}, te.isLazy = function(S) {
|
|
490
|
-
return
|
|
490
|
+
return M(S) === h;
|
|
491
491
|
}, te.isMemo = function(S) {
|
|
492
|
-
return
|
|
492
|
+
return M(S) === b;
|
|
493
493
|
}, te.isPortal = function(S) {
|
|
494
|
-
return
|
|
494
|
+
return M(S) === r;
|
|
495
495
|
}, te.isProfiler = function(S) {
|
|
496
|
-
return
|
|
496
|
+
return M(S) === i;
|
|
497
497
|
}, te.isStrictMode = function(S) {
|
|
498
|
-
return
|
|
498
|
+
return M(S) === o;
|
|
499
499
|
}, te.isSuspense = function(S) {
|
|
500
|
-
return
|
|
500
|
+
return M(S) === y;
|
|
501
501
|
}, te.isValidElementType = function(S) {
|
|
502
|
-
return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S ===
|
|
503
|
-
}, te.typeOf =
|
|
502
|
+
return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === p || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === m || S.$$typeof === g || S.$$typeof === C || S.$$typeof === k || S.$$typeof === f);
|
|
503
|
+
}, te.typeOf = M, te;
|
|
504
504
|
}
|
|
505
505
|
var re = {};
|
|
506
506
|
var sn;
|
|
507
507
|
function Ui() {
|
|
508
508
|
return sn || (sn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
509
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
510
|
-
function
|
|
511
|
-
return typeof
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
function $(
|
|
515
|
-
if (typeof
|
|
516
|
-
var ye =
|
|
509
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
510
|
+
function M(N) {
|
|
511
|
+
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
512
|
+
N === n || N === d || N === i || N === o || N === y || N === p || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === m || N.$$typeof === g || N.$$typeof === C || N.$$typeof === k || N.$$typeof === f);
|
|
513
|
+
}
|
|
514
|
+
function $(N) {
|
|
515
|
+
if (typeof N == "object" && N !== null) {
|
|
516
|
+
var ye = N.$$typeof;
|
|
517
517
|
switch (ye) {
|
|
518
518
|
case t:
|
|
519
|
-
var
|
|
520
|
-
switch (
|
|
519
|
+
var _e = N.type;
|
|
520
|
+
switch (_e) {
|
|
521
521
|
case u:
|
|
522
522
|
case d:
|
|
523
523
|
case n:
|
|
524
524
|
case i:
|
|
525
525
|
case o:
|
|
526
526
|
case y:
|
|
527
|
-
return
|
|
527
|
+
return _e;
|
|
528
528
|
default:
|
|
529
|
-
var wt =
|
|
529
|
+
var wt = _e && _e.$$typeof;
|
|
530
530
|
switch (wt) {
|
|
531
531
|
case l:
|
|
532
|
-
case
|
|
532
|
+
case m:
|
|
533
533
|
case h:
|
|
534
534
|
case b:
|
|
535
535
|
case a:
|
|
@@ -543,47 +543,47 @@ function Ui() {
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
var S = u,
|
|
547
|
-
function U(
|
|
548
|
-
return
|
|
546
|
+
var S = u, T = d, D = l, q = a, V = t, L = m, I = n, c = h, w = b, x = r, P = i, _ = o, G = y, z = !1;
|
|
547
|
+
function U(N) {
|
|
548
|
+
return z || (z = !0), O(N) || $(N) === u;
|
|
549
549
|
}
|
|
550
|
-
function O(
|
|
551
|
-
return $(
|
|
550
|
+
function O(N) {
|
|
551
|
+
return $(N) === d;
|
|
552
552
|
}
|
|
553
|
-
function R(
|
|
554
|
-
return $(
|
|
553
|
+
function R(N) {
|
|
554
|
+
return $(N) === l;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return $(
|
|
556
|
+
function j(N) {
|
|
557
|
+
return $(N) === a;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return typeof
|
|
559
|
+
function W(N) {
|
|
560
|
+
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
return $(
|
|
562
|
+
function F(N) {
|
|
563
|
+
return $(N) === m;
|
|
564
564
|
}
|
|
565
|
-
function X(
|
|
566
|
-
return $(
|
|
565
|
+
function X(N) {
|
|
566
|
+
return $(N) === n;
|
|
567
567
|
}
|
|
568
|
-
function H(
|
|
569
|
-
return $(
|
|
568
|
+
function H(N) {
|
|
569
|
+
return $(N) === h;
|
|
570
570
|
}
|
|
571
|
-
function K(
|
|
572
|
-
return $(
|
|
571
|
+
function K(N) {
|
|
572
|
+
return $(N) === b;
|
|
573
573
|
}
|
|
574
|
-
function Q(
|
|
575
|
-
return $(
|
|
574
|
+
function Q(N) {
|
|
575
|
+
return $(N) === r;
|
|
576
576
|
}
|
|
577
|
-
function ee(
|
|
578
|
-
return $(
|
|
577
|
+
function ee(N) {
|
|
578
|
+
return $(N) === i;
|
|
579
579
|
}
|
|
580
|
-
function J(
|
|
581
|
-
return $(
|
|
580
|
+
function J(N) {
|
|
581
|
+
return $(N) === o;
|
|
582
582
|
}
|
|
583
|
-
function me(
|
|
584
|
-
return $(
|
|
583
|
+
function me(N) {
|
|
584
|
+
return $(N) === y;
|
|
585
585
|
}
|
|
586
|
-
re.AsyncMode = S, re.ConcurrentMode =
|
|
586
|
+
re.AsyncMode = S, re.ConcurrentMode = T, re.ContextConsumer = D, re.ContextProvider = q, re.Element = V, re.ForwardRef = L, re.Fragment = I, re.Lazy = c, re.Memo = w, re.Portal = x, re.Profiler = P, re.StrictMode = _, re.Suspense = G, re.isAsyncMode = U, re.isConcurrentMode = O, re.isContextConsumer = R, re.isContextProvider = j, re.isElement = W, re.isForwardRef = F, re.isFragment = X, re.isLazy = H, re.isMemo = K, re.isPortal = Q, re.isProfiler = ee, re.isStrictMode = J, re.isSuspense = me, re.isValidElementType = M, re.typeOf = $;
|
|
587
587
|
})()), re;
|
|
588
588
|
}
|
|
589
589
|
var an;
|
|
@@ -609,28 +609,28 @@ function Yi() {
|
|
|
609
609
|
return !1;
|
|
610
610
|
for (var a = {}, l = 0; l < 10; l++)
|
|
611
611
|
a["_" + String.fromCharCode(l)] = l;
|
|
612
|
-
var u = Object.getOwnPropertyNames(a).map(function(
|
|
613
|
-
return a[
|
|
612
|
+
var u = Object.getOwnPropertyNames(a).map(function(m) {
|
|
613
|
+
return a[m];
|
|
614
614
|
});
|
|
615
615
|
if (u.join("") !== "0123456789")
|
|
616
616
|
return !1;
|
|
617
617
|
var d = {};
|
|
618
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
619
|
-
d[
|
|
618
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(m) {
|
|
619
|
+
d[m] = m;
|
|
620
620
|
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
621
621
|
} catch {
|
|
622
622
|
return !1;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
return dr = o() ? Object.assign : function(i, a) {
|
|
626
|
-
for (var l, u = n(i), d,
|
|
627
|
-
l = Object(arguments[
|
|
626
|
+
for (var l, u = n(i), d, m = 1; m < arguments.length; m++) {
|
|
627
|
+
l = Object(arguments[m]);
|
|
628
628
|
for (var y in l)
|
|
629
629
|
t.call(l, y) && (u[y] = l[y]);
|
|
630
630
|
if (e) {
|
|
631
631
|
d = e(l);
|
|
632
|
-
for (var
|
|
633
|
-
r.call(l, d[
|
|
632
|
+
for (var p = 0; p < d.length; p++)
|
|
633
|
+
r.call(l, d[p]) && (u[d[p]] = l[d[p]]);
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
return u;
|
|
@@ -665,22 +665,22 @@ function Hi() {
|
|
|
665
665
|
}
|
|
666
666
|
function o(i, a, l, u, d) {
|
|
667
667
|
if (process.env.NODE_ENV !== "production") {
|
|
668
|
-
for (var
|
|
669
|
-
if (n(i,
|
|
668
|
+
for (var m in i)
|
|
669
|
+
if (n(i, m)) {
|
|
670
670
|
var y;
|
|
671
671
|
try {
|
|
672
|
-
if (typeof i[
|
|
673
|
-
var
|
|
674
|
-
(u || "React class") + ": " + l + " type `" +
|
|
672
|
+
if (typeof i[m] != "function") {
|
|
673
|
+
var p = Error(
|
|
674
|
+
(u || "React class") + ": " + l + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
675
675
|
);
|
|
676
|
-
throw
|
|
676
|
+
throw p.name = "Invariant Violation", p;
|
|
677
677
|
}
|
|
678
|
-
y = i[
|
|
678
|
+
y = i[m](a, m, u, l, null, t);
|
|
679
679
|
} catch (h) {
|
|
680
680
|
y = h;
|
|
681
681
|
}
|
|
682
682
|
if (y && !(y instanceof Error) && e(
|
|
683
|
-
(u || "React class") + ": type specification of " + l + " `" +
|
|
683
|
+
(u || "React class") + ": type specification of " + l + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
684
684
|
), y instanceof Error && !(y.message in r)) {
|
|
685
685
|
r[y.message] = !0;
|
|
686
686
|
var b = d ? d() : "";
|
|
@@ -712,13 +712,13 @@ function Ki() {
|
|
|
712
712
|
return null;
|
|
713
713
|
}
|
|
714
714
|
return gr = function(l, u) {
|
|
715
|
-
var d = typeof Symbol == "function" && Symbol.iterator,
|
|
715
|
+
var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
716
716
|
function y(O) {
|
|
717
|
-
var R = O && (d && O[d] || O[
|
|
717
|
+
var R = O && (d && O[d] || O[m]);
|
|
718
718
|
if (typeof R == "function")
|
|
719
719
|
return R;
|
|
720
720
|
}
|
|
721
|
-
var
|
|
721
|
+
var p = "<<anonymous>>", b = {
|
|
722
722
|
array: C("array"),
|
|
723
723
|
bigint: C("bigint"),
|
|
724
724
|
bool: C("boolean"),
|
|
@@ -728,16 +728,16 @@ function Ki() {
|
|
|
728
728
|
string: C("string"),
|
|
729
729
|
symbol: C("symbol"),
|
|
730
730
|
any: k(),
|
|
731
|
-
arrayOf:
|
|
731
|
+
arrayOf: M,
|
|
732
732
|
element: $(),
|
|
733
733
|
elementType: S(),
|
|
734
|
-
instanceOf:
|
|
735
|
-
node:
|
|
736
|
-
objectOf:
|
|
737
|
-
oneOf:
|
|
738
|
-
oneOfType:
|
|
734
|
+
instanceOf: T,
|
|
735
|
+
node: L(),
|
|
736
|
+
objectOf: q,
|
|
737
|
+
oneOf: D,
|
|
738
|
+
oneOfType: V,
|
|
739
739
|
shape: c,
|
|
740
|
-
exact:
|
|
740
|
+
exact: w
|
|
741
741
|
};
|
|
742
742
|
function h(O, R) {
|
|
743
743
|
return O === R ? O !== 0 || 1 / O === 1 / R : O !== O && R !== R;
|
|
@@ -748,34 +748,34 @@ function Ki() {
|
|
|
748
748
|
f.prototype = Error.prototype;
|
|
749
749
|
function g(O) {
|
|
750
750
|
if (process.env.NODE_ENV !== "production")
|
|
751
|
-
var R = {},
|
|
752
|
-
function
|
|
753
|
-
if (Q = Q ||
|
|
751
|
+
var R = {}, j = 0;
|
|
752
|
+
function W(X, H, K, Q, ee, J, me) {
|
|
753
|
+
if (Q = Q || p, J = J || K, me !== r) {
|
|
754
754
|
if (u) {
|
|
755
|
-
var
|
|
755
|
+
var N = new Error(
|
|
756
756
|
"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"
|
|
757
757
|
);
|
|
758
|
-
throw
|
|
758
|
+
throw N.name = "Invariant Violation", N;
|
|
759
759
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
760
760
|
var ye = Q + ":" + K;
|
|
761
761
|
!R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
762
|
-
|
|
762
|
+
j < 3 && (i(
|
|
763
763
|
"You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + Q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
764
|
-
), R[ye] = !0,
|
|
764
|
+
), R[ye] = !0, j++);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
return H[K] == null ? X ? H[K] === null ? new f("The " + ee + " `" + J + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new f("The " + ee + " `" + J + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : O(H, K, Q, ee, J);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
return
|
|
769
|
+
var F = W.bind(null, !1);
|
|
770
|
+
return F.isRequired = W.bind(null, !0), F;
|
|
771
771
|
}
|
|
772
772
|
function C(O) {
|
|
773
|
-
function R(
|
|
774
|
-
var Q =
|
|
773
|
+
function R(j, W, F, X, H, K) {
|
|
774
|
+
var Q = j[W], ee = _(Q);
|
|
775
775
|
if (ee !== O) {
|
|
776
|
-
var J =
|
|
776
|
+
var J = G(Q);
|
|
777
777
|
return new f(
|
|
778
|
-
"Invalid " + X + " `" + H + "` of type " + ("`" + J + "` supplied to `" +
|
|
778
|
+
"Invalid " + X + " `" + H + "` of type " + ("`" + J + "` supplied to `" + F + "`, expected ") + ("`" + O + "`."),
|
|
779
779
|
{ expectedType: O }
|
|
780
780
|
);
|
|
781
781
|
}
|
|
@@ -786,17 +786,17 @@ function Ki() {
|
|
|
786
786
|
function k() {
|
|
787
787
|
return g(a);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
function R(
|
|
789
|
+
function M(O) {
|
|
790
|
+
function R(j, W, F, X, H) {
|
|
791
791
|
if (typeof O != "function")
|
|
792
|
-
return new f("Property `" + H + "` of component `" +
|
|
793
|
-
var K =
|
|
792
|
+
return new f("Property `" + H + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
|
|
793
|
+
var K = j[W];
|
|
794
794
|
if (!Array.isArray(K)) {
|
|
795
|
-
var Q =
|
|
796
|
-
return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" +
|
|
795
|
+
var Q = _(K);
|
|
796
|
+
return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + F + "`, expected an array."));
|
|
797
797
|
}
|
|
798
798
|
for (var ee = 0; ee < K.length; ee++) {
|
|
799
|
-
var J = O(K, ee,
|
|
799
|
+
var J = O(K, ee, F, X, H + "[" + ee + "]", r);
|
|
800
800
|
if (J instanceof Error)
|
|
801
801
|
return J;
|
|
802
802
|
}
|
|
@@ -805,64 +805,64 @@ function Ki() {
|
|
|
805
805
|
return g(R);
|
|
806
806
|
}
|
|
807
807
|
function $() {
|
|
808
|
-
function O(R,
|
|
809
|
-
var H = R[
|
|
808
|
+
function O(R, j, W, F, X) {
|
|
809
|
+
var H = R[j];
|
|
810
810
|
if (!l(H)) {
|
|
811
|
-
var K =
|
|
812
|
-
return new f("Invalid " +
|
|
811
|
+
var K = _(H);
|
|
812
|
+
return new f("Invalid " + F + " `" + X + "` of type " + ("`" + K + "` supplied to `" + W + "`, expected a single ReactElement."));
|
|
813
813
|
}
|
|
814
814
|
return null;
|
|
815
815
|
}
|
|
816
816
|
return g(O);
|
|
817
817
|
}
|
|
818
818
|
function S() {
|
|
819
|
-
function O(R,
|
|
820
|
-
var H = R[
|
|
819
|
+
function O(R, j, W, F, X) {
|
|
820
|
+
var H = R[j];
|
|
821
821
|
if (!e.isValidElementType(H)) {
|
|
822
|
-
var K =
|
|
823
|
-
return new f("Invalid " +
|
|
822
|
+
var K = _(H);
|
|
823
|
+
return new f("Invalid " + F + " `" + X + "` of type " + ("`" + K + "` supplied to `" + W + "`, expected a single ReactElement type."));
|
|
824
824
|
}
|
|
825
825
|
return null;
|
|
826
826
|
}
|
|
827
827
|
return g(O);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
function R(
|
|
831
|
-
if (!(
|
|
832
|
-
var K = O.name ||
|
|
833
|
-
return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" +
|
|
829
|
+
function T(O) {
|
|
830
|
+
function R(j, W, F, X, H) {
|
|
831
|
+
if (!(j[W] instanceof O)) {
|
|
832
|
+
var K = O.name || p, Q = U(j[W]);
|
|
833
|
+
return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + F + "`, expected ") + ("instance of `" + K + "`."));
|
|
834
834
|
}
|
|
835
835
|
return null;
|
|
836
836
|
}
|
|
837
837
|
return g(R);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function D(O) {
|
|
840
840
|
if (!Array.isArray(O))
|
|
841
841
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
842
842
|
"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])."
|
|
843
843
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
844
|
-
function R(
|
|
845
|
-
for (var K =
|
|
844
|
+
function R(j, W, F, X, H) {
|
|
845
|
+
for (var K = j[W], Q = 0; Q < O.length; Q++)
|
|
846
846
|
if (h(K, O[Q]))
|
|
847
847
|
return null;
|
|
848
|
-
var ee = JSON.stringify(O, function(me,
|
|
849
|
-
var ye =
|
|
850
|
-
return ye === "symbol" ? String(
|
|
848
|
+
var ee = JSON.stringify(O, function(me, N) {
|
|
849
|
+
var ye = G(N);
|
|
850
|
+
return ye === "symbol" ? String(N) : N;
|
|
851
851
|
});
|
|
852
|
-
return new f("Invalid " + X + " `" + H + "` of value `" + String(K) + "` " + ("supplied to `" +
|
|
852
|
+
return new f("Invalid " + X + " `" + H + "` of value `" + String(K) + "` " + ("supplied to `" + F + "`, expected one of " + ee + "."));
|
|
853
853
|
}
|
|
854
854
|
return g(R);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
function R(
|
|
856
|
+
function q(O) {
|
|
857
|
+
function R(j, W, F, X, H) {
|
|
858
858
|
if (typeof O != "function")
|
|
859
|
-
return new f("Property `" + H + "` of component `" +
|
|
860
|
-
var K =
|
|
859
|
+
return new f("Property `" + H + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
|
|
860
|
+
var K = j[W], Q = _(K);
|
|
861
861
|
if (Q !== "object")
|
|
862
|
-
return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" +
|
|
862
|
+
return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + F + "`, expected an object."));
|
|
863
863
|
for (var ee in K)
|
|
864
864
|
if (n(K, ee)) {
|
|
865
|
-
var J = O(K, ee,
|
|
865
|
+
var J = O(K, ee, F, X, H + "." + ee, r);
|
|
866
866
|
if (J instanceof Error)
|
|
867
867
|
return J;
|
|
868
868
|
}
|
|
@@ -870,49 +870,49 @@ function Ki() {
|
|
|
870
870
|
}
|
|
871
871
|
return g(R);
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function V(O) {
|
|
874
874
|
if (!Array.isArray(O))
|
|
875
875
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
876
876
|
for (var R = 0; R < O.length; R++) {
|
|
877
|
-
var
|
|
878
|
-
if (typeof
|
|
877
|
+
var j = O[R];
|
|
878
|
+
if (typeof j != "function")
|
|
879
879
|
return i(
|
|
880
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
880
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(j) + " at index " + R + "."
|
|
881
881
|
), a;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function W(F, X, H, K, Q) {
|
|
884
884
|
for (var ee = [], J = 0; J < O.length; J++) {
|
|
885
|
-
var me = O[J],
|
|
886
|
-
if (
|
|
885
|
+
var me = O[J], N = me(F, X, H, K, Q, r);
|
|
886
|
+
if (N == null)
|
|
887
887
|
return null;
|
|
888
|
-
|
|
888
|
+
N.data && n(N.data, "expectedType") && ee.push(N.data.expectedType);
|
|
889
889
|
}
|
|
890
890
|
var ye = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
|
|
891
891
|
return new f("Invalid " + K + " `" + Q + "` supplied to " + ("`" + H + "`" + ye + "."));
|
|
892
892
|
}
|
|
893
|
-
return g(
|
|
893
|
+
return g(W);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
function O(R,
|
|
897
|
-
return x(R[
|
|
895
|
+
function L() {
|
|
896
|
+
function O(R, j, W, F, X) {
|
|
897
|
+
return x(R[j]) ? null : new f("Invalid " + F + " `" + X + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
|
|
898
898
|
}
|
|
899
899
|
return g(O);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function I(O, R, j, W, F) {
|
|
902
902
|
return new f(
|
|
903
|
-
(O || "React class") + ": " + R + " type `" +
|
|
903
|
+
(O || "React class") + ": " + R + " type `" + j + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + F + "`."
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
906
|
function c(O) {
|
|
907
|
-
function R(
|
|
908
|
-
var K =
|
|
907
|
+
function R(j, W, F, X, H) {
|
|
908
|
+
var K = j[W], Q = _(K);
|
|
909
909
|
if (Q !== "object")
|
|
910
|
-
return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" +
|
|
910
|
+
return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
911
911
|
for (var ee in O) {
|
|
912
912
|
var J = O[ee];
|
|
913
913
|
if (typeof J != "function")
|
|
914
|
-
return
|
|
915
|
-
var me = J(K, ee,
|
|
914
|
+
return I(F, X, H, ee, G(J));
|
|
915
|
+
var me = J(K, ee, F, X, H + "." + ee, r);
|
|
916
916
|
if (me)
|
|
917
917
|
return me;
|
|
918
918
|
}
|
|
@@ -920,24 +920,24 @@ function Ki() {
|
|
|
920
920
|
}
|
|
921
921
|
return g(R);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
function R(
|
|
925
|
-
var K =
|
|
923
|
+
function w(O) {
|
|
924
|
+
function R(j, W, F, X, H) {
|
|
925
|
+
var K = j[W], Q = _(K);
|
|
926
926
|
if (Q !== "object")
|
|
927
|
-
return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" +
|
|
928
|
-
var ee = t({},
|
|
927
|
+
return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
928
|
+
var ee = t({}, j[W], O);
|
|
929
929
|
for (var J in ee) {
|
|
930
930
|
var me = O[J];
|
|
931
931
|
if (n(O, J) && typeof me != "function")
|
|
932
|
-
return
|
|
932
|
+
return I(F, X, H, J, G(me));
|
|
933
933
|
if (!me)
|
|
934
934
|
return new f(
|
|
935
|
-
"Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" +
|
|
935
|
+
"Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(j[W], null, " ") + `
|
|
936
936
|
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
937
937
|
);
|
|
938
|
-
var
|
|
939
|
-
if (
|
|
940
|
-
return
|
|
938
|
+
var N = me(K, J, F, X, H + "." + J, r);
|
|
939
|
+
if (N)
|
|
940
|
+
return N;
|
|
941
941
|
}
|
|
942
942
|
return null;
|
|
943
943
|
}
|
|
@@ -958,15 +958,15 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
958
958
|
return !0;
|
|
959
959
|
var R = y(O);
|
|
960
960
|
if (R) {
|
|
961
|
-
var
|
|
961
|
+
var j = R.call(O), W;
|
|
962
962
|
if (R !== O.entries) {
|
|
963
|
-
for (; !(
|
|
964
|
-
if (!x(
|
|
963
|
+
for (; !(W = j.next()).done; )
|
|
964
|
+
if (!x(W.value))
|
|
965
965
|
return !1;
|
|
966
966
|
} else
|
|
967
|
-
for (; !(
|
|
968
|
-
var
|
|
969
|
-
if (
|
|
967
|
+
for (; !(W = j.next()).done; ) {
|
|
968
|
+
var F = W.value;
|
|
969
|
+
if (F && !x(F[1]))
|
|
970
970
|
return !1;
|
|
971
971
|
}
|
|
972
972
|
} else
|
|
@@ -976,17 +976,17 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
976
976
|
return !1;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function P(O, R) {
|
|
980
980
|
return O === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function _(O) {
|
|
983
983
|
var R = typeof O;
|
|
984
|
-
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" :
|
|
984
|
+
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : P(R, O) ? "symbol" : R;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function G(O) {
|
|
987
987
|
if (typeof O > "u" || O === null)
|
|
988
988
|
return "" + O;
|
|
989
|
-
var R =
|
|
989
|
+
var R = _(O);
|
|
990
990
|
if (R === "object") {
|
|
991
991
|
if (O instanceof Date)
|
|
992
992
|
return "date";
|
|
@@ -995,8 +995,8 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
995
995
|
}
|
|
996
996
|
return R;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
var R =
|
|
998
|
+
function z(O) {
|
|
999
|
+
var R = G(O);
|
|
1000
1000
|
switch (R) {
|
|
1001
1001
|
case "array":
|
|
1002
1002
|
case "object":
|
|
@@ -1010,7 +1010,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
function U(O) {
|
|
1013
|
-
return !O.constructor || !O.constructor.name ?
|
|
1013
|
+
return !O.constructor || !O.constructor.name ? p : O.constructor.name;
|
|
1014
1014
|
}
|
|
1015
1015
|
return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
|
|
1016
1016
|
}, gr;
|
|
@@ -1025,12 +1025,12 @@ function Xi() {
|
|
|
1025
1025
|
function r() {
|
|
1026
1026
|
}
|
|
1027
1027
|
return r.resetWarningCache = t, yr = function() {
|
|
1028
|
-
function n(a, l, u, d,
|
|
1028
|
+
function n(a, l, u, d, m, y) {
|
|
1029
1029
|
if (y !== e) {
|
|
1030
|
-
var
|
|
1030
|
+
var p = new Error(
|
|
1031
1031
|
"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"
|
|
1032
1032
|
);
|
|
1033
|
-
throw
|
|
1033
|
+
throw p.name = "Invariant Violation", p;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
n.isRequired = n;
|
|
@@ -1227,16 +1227,16 @@ var is = /[A-Z]|^ms/g, ss = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
|
|
|
1227
1227
|
case "animationName":
|
|
1228
1228
|
if (typeof r == "string")
|
|
1229
1229
|
return r.replace(ss, function(n, o, i) {
|
|
1230
|
-
return
|
|
1230
|
+
return Be = {
|
|
1231
1231
|
name: o,
|
|
1232
1232
|
styles: i,
|
|
1233
|
-
next:
|
|
1233
|
+
next: Be
|
|
1234
1234
|
}, o;
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
return ns[t] !== 1 && !$o(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1238
1238
|
};
|
|
1239
|
-
function
|
|
1239
|
+
function Vt(e, t, r) {
|
|
1240
1240
|
if (r == null)
|
|
1241
1241
|
return "";
|
|
1242
1242
|
var n = r;
|
|
@@ -1248,20 +1248,20 @@ function jt(e, t, r) {
|
|
|
1248
1248
|
case "object": {
|
|
1249
1249
|
var o = r;
|
|
1250
1250
|
if (o.anim === 1)
|
|
1251
|
-
return
|
|
1251
|
+
return Be = {
|
|
1252
1252
|
name: o.name,
|
|
1253
1253
|
styles: o.styles,
|
|
1254
|
-
next:
|
|
1254
|
+
next: Be
|
|
1255
1255
|
}, o.name;
|
|
1256
1256
|
var i = r;
|
|
1257
1257
|
if (i.styles !== void 0) {
|
|
1258
1258
|
var a = i.next;
|
|
1259
1259
|
if (a !== void 0)
|
|
1260
1260
|
for (; a !== void 0; )
|
|
1261
|
-
|
|
1261
|
+
Be = {
|
|
1262
1262
|
name: a.name,
|
|
1263
1263
|
styles: a.styles,
|
|
1264
|
-
next:
|
|
1264
|
+
next: Be
|
|
1265
1265
|
}, a = a.next;
|
|
1266
1266
|
var l = i.styles + ";";
|
|
1267
1267
|
return l;
|
|
@@ -1276,7 +1276,7 @@ function as(e, t, r) {
|
|
|
1276
1276
|
var n = "";
|
|
1277
1277
|
if (Array.isArray(r))
|
|
1278
1278
|
for (var o = 0; o < r.length; o++)
|
|
1279
|
-
n +=
|
|
1279
|
+
n += Vt(e, t, r[o]) + ";";
|
|
1280
1280
|
else
|
|
1281
1281
|
for (var i in r) {
|
|
1282
1282
|
var a = r[i];
|
|
@@ -1287,7 +1287,7 @@ function as(e, t, r) {
|
|
|
1287
1287
|
for (var u = 0; u < a.length; u++)
|
|
1288
1288
|
gn(a[u]) && (n += br(i) + ":" + yn(i, a[u]) + ";");
|
|
1289
1289
|
else {
|
|
1290
|
-
var d =
|
|
1290
|
+
var d = Vt(e, t, a);
|
|
1291
1291
|
switch (i) {
|
|
1292
1292
|
case "animation":
|
|
1293
1293
|
case "animationName": {
|
|
@@ -1301,32 +1301,32 @@ function as(e, t, r) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
return n;
|
|
1303
1303
|
}
|
|
1304
|
-
var bn = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1304
|
+
var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, Be;
|
|
1305
1305
|
function ls(e, t, r) {
|
|
1306
1306
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1307
1307
|
return e[0];
|
|
1308
1308
|
var n = !0, o = "";
|
|
1309
|
-
|
|
1309
|
+
Be = void 0;
|
|
1310
1310
|
var i = e[0];
|
|
1311
1311
|
if (i == null || i.raw === void 0)
|
|
1312
|
-
n = !1, o +=
|
|
1312
|
+
n = !1, o += Vt(r, t, i);
|
|
1313
1313
|
else {
|
|
1314
1314
|
var a = i;
|
|
1315
1315
|
o += a[0];
|
|
1316
1316
|
}
|
|
1317
1317
|
for (var l = 1; l < e.length; l++)
|
|
1318
|
-
if (o +=
|
|
1318
|
+
if (o += Vt(r, t, e[l]), n) {
|
|
1319
1319
|
var u = i;
|
|
1320
1320
|
o += u[l];
|
|
1321
1321
|
}
|
|
1322
1322
|
bn.lastIndex = 0;
|
|
1323
|
-
for (var d = "",
|
|
1324
|
-
d += "-" +
|
|
1323
|
+
for (var d = "", m; (m = bn.exec(o)) !== null; )
|
|
1324
|
+
d += "-" + m[1];
|
|
1325
1325
|
var y = rs(o) + d;
|
|
1326
1326
|
return {
|
|
1327
1327
|
name: y,
|
|
1328
1328
|
styles: o,
|
|
1329
|
-
next:
|
|
1329
|
+
next: Be
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
function Ro(e, t) {
|
|
@@ -1340,7 +1340,7 @@ function cs(e, t) {
|
|
|
1340
1340
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
1341
1341
|
}
|
|
1342
1342
|
const vn = [];
|
|
1343
|
-
function
|
|
1343
|
+
function He(e) {
|
|
1344
1344
|
return vn[0] = e, ls(vn);
|
|
1345
1345
|
}
|
|
1346
1346
|
var Pt = { exports: {} }, ie = {};
|
|
@@ -1348,7 +1348,7 @@ var Sn;
|
|
|
1348
1348
|
function us() {
|
|
1349
1349
|
if (Sn) return ie;
|
|
1350
1350
|
Sn = 1;
|
|
1351
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"),
|
|
1351
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
|
|
1352
1352
|
function h(f) {
|
|
1353
1353
|
if (typeof f == "object" && f !== null) {
|
|
1354
1354
|
var g = f.$$typeof;
|
|
@@ -1360,14 +1360,14 @@ function us() {
|
|
|
1360
1360
|
case n:
|
|
1361
1361
|
case u:
|
|
1362
1362
|
case d:
|
|
1363
|
-
case
|
|
1363
|
+
case p:
|
|
1364
1364
|
return f;
|
|
1365
1365
|
default:
|
|
1366
1366
|
switch (f = f && f.$$typeof, f) {
|
|
1367
1367
|
case a:
|
|
1368
1368
|
case l:
|
|
1369
1369
|
case y:
|
|
1370
|
-
case
|
|
1370
|
+
case m:
|
|
1371
1371
|
return f;
|
|
1372
1372
|
case i:
|
|
1373
1373
|
return f;
|
|
@@ -1380,7 +1380,7 @@ function us() {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
return ie.ContextConsumer = i, ie.ContextProvider = a, ie.Element = e, ie.ForwardRef = l, ie.Fragment = r, ie.Lazy = y, ie.Memo =
|
|
1383
|
+
return ie.ContextConsumer = i, ie.ContextProvider = a, ie.Element = e, ie.ForwardRef = l, ie.Fragment = r, ie.Lazy = y, ie.Memo = m, ie.Portal = t, ie.Profiler = o, ie.StrictMode = n, ie.Suspense = u, ie.SuspenseList = d, ie.isContextConsumer = function(f) {
|
|
1384
1384
|
return h(f) === i;
|
|
1385
1385
|
}, ie.isContextProvider = function(f) {
|
|
1386
1386
|
return h(f) === a;
|
|
@@ -1393,7 +1393,7 @@ function us() {
|
|
|
1393
1393
|
}, ie.isLazy = function(f) {
|
|
1394
1394
|
return h(f) === y;
|
|
1395
1395
|
}, ie.isMemo = function(f) {
|
|
1396
|
-
return h(f) ===
|
|
1396
|
+
return h(f) === m;
|
|
1397
1397
|
}, ie.isPortal = function(f) {
|
|
1398
1398
|
return h(f) === t;
|
|
1399
1399
|
}, ie.isProfiler = function(f) {
|
|
@@ -1405,7 +1405,7 @@ function us() {
|
|
|
1405
1405
|
}, ie.isSuspenseList = function(f) {
|
|
1406
1406
|
return h(f) === d;
|
|
1407
1407
|
}, ie.isValidElementType = function(f) {
|
|
1408
|
-
return typeof f == "string" || typeof f == "function" || f === r || f === o || f === n || f === u || f === d || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof ===
|
|
1408
|
+
return typeof f == "string" || typeof f == "function" || f === r || f === o || f === n || f === u || f === d || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === m || f.$$typeof === a || f.$$typeof === i || f.$$typeof === l || f.$$typeof === b || f.getModuleId !== void 0);
|
|
1409
1409
|
}, ie.typeOf = h, ie;
|
|
1410
1410
|
}
|
|
1411
1411
|
var se = {};
|
|
@@ -1422,14 +1422,14 @@ function fs() {
|
|
|
1422
1422
|
case i:
|
|
1423
1423
|
case o:
|
|
1424
1424
|
case d:
|
|
1425
|
-
case
|
|
1425
|
+
case m:
|
|
1426
1426
|
case b:
|
|
1427
1427
|
return f;
|
|
1428
1428
|
default:
|
|
1429
1429
|
switch (f = f && f.$$typeof, f) {
|
|
1430
1430
|
case l:
|
|
1431
1431
|
case u:
|
|
1432
|
-
case
|
|
1432
|
+
case p:
|
|
1433
1433
|
case y:
|
|
1434
1434
|
return f;
|
|
1435
1435
|
case a:
|
|
@@ -1443,8 +1443,8 @@ function fs() {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"),
|
|
1447
|
-
se.ContextConsumer = a, se.ContextProvider = l, se.Element = t, se.ForwardRef = u, se.Fragment = n, se.Lazy =
|
|
1446
|
+
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), b = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
|
|
1447
|
+
se.ContextConsumer = a, se.ContextProvider = l, se.Element = t, se.ForwardRef = u, se.Fragment = n, se.Lazy = p, se.Memo = y, se.Portal = r, se.Profiler = i, se.StrictMode = o, se.Suspense = d, se.SuspenseList = m, se.isContextConsumer = function(f) {
|
|
1448
1448
|
return e(f) === a;
|
|
1449
1449
|
}, se.isContextProvider = function(f) {
|
|
1450
1450
|
return e(f) === l;
|
|
@@ -1455,7 +1455,7 @@ function fs() {
|
|
|
1455
1455
|
}, se.isFragment = function(f) {
|
|
1456
1456
|
return e(f) === n;
|
|
1457
1457
|
}, se.isLazy = function(f) {
|
|
1458
|
-
return e(f) ===
|
|
1458
|
+
return e(f) === p;
|
|
1459
1459
|
}, se.isMemo = function(f) {
|
|
1460
1460
|
return e(f) === y;
|
|
1461
1461
|
}, se.isPortal = function(f) {
|
|
@@ -1467,9 +1467,9 @@ function fs() {
|
|
|
1467
1467
|
}, se.isSuspense = function(f) {
|
|
1468
1468
|
return e(f) === d;
|
|
1469
1469
|
}, se.isSuspenseList = function(f) {
|
|
1470
|
-
return e(f) ===
|
|
1470
|
+
return e(f) === m;
|
|
1471
1471
|
}, se.isValidElementType = function(f) {
|
|
1472
|
-
return typeof f == "string" || typeof f == "function" || f === n || f === i || f === o || f === d || f ===
|
|
1472
|
+
return typeof f == "string" || typeof f == "function" || f === n || f === i || f === o || f === d || f === m || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === y || f.$$typeof === l || f.$$typeof === a || f.$$typeof === u || f.$$typeof === h || f.getModuleId !== void 0);
|
|
1473
1473
|
}, se.typeOf = e;
|
|
1474
1474
|
})()), se;
|
|
1475
1475
|
}
|
|
@@ -1503,13 +1503,13 @@ function he(e, t, r = {
|
|
|
1503
1503
|
Object.prototype.hasOwnProperty.call(e, o) && Re(e[o]) ? n[o] = he(e[o], t[o], r) : r.clone ? n[o] = Re(t[o]) ? ko(t[o]) : t[o] : n[o] = t[o];
|
|
1504
1504
|
}), n;
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function ze(e, ...t) {
|
|
1507
1507
|
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
1508
1508
|
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
1509
1509
|
}
|
|
1510
1510
|
function Z(e) {
|
|
1511
1511
|
if (typeof e != "string")
|
|
1512
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
1512
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ze(7));
|
|
1513
1513
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1514
1514
|
}
|
|
1515
1515
|
function Ao(e, t = "") {
|
|
@@ -1566,22 +1566,22 @@ function hs(e) {
|
|
|
1566
1566
|
step: n = 5,
|
|
1567
1567
|
...o
|
|
1568
1568
|
} = e, i = ms(t), a = Object.keys(i);
|
|
1569
|
-
function l(
|
|
1570
|
-
return `@media (min-width:${typeof t[
|
|
1569
|
+
function l(p) {
|
|
1570
|
+
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r})`;
|
|
1571
1571
|
}
|
|
1572
|
-
function u(
|
|
1573
|
-
return `@media (max-width:${(typeof t[
|
|
1572
|
+
function u(p) {
|
|
1573
|
+
return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - n / 100}${r})`;
|
|
1574
1574
|
}
|
|
1575
|
-
function d(
|
|
1575
|
+
function d(p, b) {
|
|
1576
1576
|
const h = a.indexOf(b);
|
|
1577
|
-
return `@media (min-width:${typeof t[
|
|
1577
|
+
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(h !== -1 && typeof t[a[h]] == "number" ? t[a[h]] : b) - n / 100}${r})`;
|
|
1578
1578
|
}
|
|
1579
|
-
function p
|
|
1580
|
-
return a.indexOf(
|
|
1579
|
+
function m(p) {
|
|
1580
|
+
return a.indexOf(p) + 1 < a.length ? d(p, a[a.indexOf(p) + 1]) : l(p);
|
|
1581
1581
|
}
|
|
1582
|
-
function y(
|
|
1583
|
-
const b = a.indexOf(
|
|
1584
|
-
return b === 0 ? l(a[1]) : b === a.length - 1 ? u(a[b]) : d(
|
|
1582
|
+
function y(p) {
|
|
1583
|
+
const b = a.indexOf(p);
|
|
1584
|
+
return b === 0 ? l(a[1]) : b === a.length - 1 ? u(a[b]) : d(p, a[a.indexOf(p) + 1]).replace("@media", "@media not all and");
|
|
1585
1585
|
}
|
|
1586
1586
|
return {
|
|
1587
1587
|
keys: a,
|
|
@@ -1589,7 +1589,7 @@ function hs(e) {
|
|
|
1589
1589
|
up: l,
|
|
1590
1590
|
down: u,
|
|
1591
1591
|
between: d,
|
|
1592
|
-
only:
|
|
1592
|
+
only: m,
|
|
1593
1593
|
not: y,
|
|
1594
1594
|
unit: r,
|
|
1595
1595
|
...o
|
|
@@ -1617,7 +1617,7 @@ function ys(e, t) {
|
|
|
1617
1617
|
if (!r) {
|
|
1618
1618
|
if (process.env.NODE_ENV !== "production")
|
|
1619
1619
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
1620
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` :
|
|
1620
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : ze(18, `(${t})`));
|
|
1621
1621
|
return null;
|
|
1622
1622
|
}
|
|
1623
1623
|
const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
|
|
@@ -1639,7 +1639,7 @@ function bs(e) {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
const vs = {
|
|
1641
1641
|
borderRadius: 4
|
|
1642
|
-
},
|
|
1642
|
+
}, Le = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.string, s.object, s.array]) : {};
|
|
1643
1643
|
function gt(e, t) {
|
|
1644
1644
|
return t ? he(e, t, {
|
|
1645
1645
|
clone: !1
|
|
@@ -1756,14 +1756,14 @@ function de(e) {
|
|
|
1756
1756
|
return null;
|
|
1757
1757
|
const l = a[t], u = a.theme, d = Xt(u, n) || {};
|
|
1758
1758
|
return we(a, l, (y) => {
|
|
1759
|
-
let
|
|
1760
|
-
return y ===
|
|
1761
|
-
[r]:
|
|
1759
|
+
let p = Wt(d, o, y);
|
|
1760
|
+
return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" : Z(y)}`, y)), r === !1 ? p : {
|
|
1761
|
+
[r]: p
|
|
1762
1762
|
};
|
|
1763
1763
|
});
|
|
1764
1764
|
};
|
|
1765
1765
|
return i.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1766
|
-
[t]:
|
|
1766
|
+
[t]: Le
|
|
1767
1767
|
} : {}, i.filterProps = [t], i;
|
|
1768
1768
|
}
|
|
1769
1769
|
function Ts(e) {
|
|
@@ -1809,11 +1809,11 @@ function xt(e, t, r, n) {
|
|
|
1809
1809
|
function Zt(e) {
|
|
1810
1810
|
return xt(e, "spacing", 8, "spacing");
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Xe(e, t) {
|
|
1813
1813
|
return typeof t == "string" || t == null ? t : e(t);
|
|
1814
1814
|
}
|
|
1815
1815
|
function Rs(e, t) {
|
|
1816
|
-
return (r) => e.reduce((n, o) => (n[o] =
|
|
1816
|
+
return (r) => e.reduce((n, o) => (n[o] = Xe(t, r), n), {});
|
|
1817
1817
|
}
|
|
1818
1818
|
function ks(e, t, r, n) {
|
|
1819
1819
|
if (!t.includes(r))
|
|
@@ -1828,14 +1828,14 @@ function Io(e, t) {
|
|
|
1828
1828
|
function le(e) {
|
|
1829
1829
|
return Io(e, Qt);
|
|
1830
1830
|
}
|
|
1831
|
-
le.propTypes = process.env.NODE_ENV !== "production" ? Qt.reduce((e, t) => (e[t] =
|
|
1831
|
+
le.propTypes = process.env.NODE_ENV !== "production" ? Qt.reduce((e, t) => (e[t] = Le, e), {}) : {};
|
|
1832
1832
|
le.filterProps = Qt;
|
|
1833
1833
|
function ce(e) {
|
|
1834
1834
|
return Io(e, Jt);
|
|
1835
1835
|
}
|
|
1836
|
-
ce.propTypes = process.env.NODE_ENV !== "production" ? Jt.reduce((e, t) => (e[t] =
|
|
1836
|
+
ce.propTypes = process.env.NODE_ENV !== "production" ? Jt.reduce((e, t) => (e[t] = Le, e), {}) : {};
|
|
1837
1837
|
ce.filterProps = Jt;
|
|
1838
|
-
process.env.NODE_ENV !== "production" && $s.reduce((e, t) => (e[t] =
|
|
1838
|
+
process.env.NODE_ENV !== "production" && $s.reduce((e, t) => (e[t] = Le, e), {});
|
|
1839
1839
|
function Mo(e = 8, t = Zt({
|
|
1840
1840
|
spacing: e
|
|
1841
1841
|
})) {
|
|
@@ -1863,57 +1863,57 @@ function Ce(e, t) {
|
|
|
1863
1863
|
transform: t
|
|
1864
1864
|
});
|
|
1865
1865
|
}
|
|
1866
|
-
const As = Ce("border", ve), Ps = Ce("borderTop", ve), Is = Ce("borderRight", ve), Ms = Ce("borderBottom", ve), _s = Ce("borderLeft", ve), Ns = Ce("borderColor"), Bs = Ce("borderTopColor"), Ds = Ce("borderRightColor"),
|
|
1866
|
+
const As = Ce("border", ve), Ps = Ce("borderTop", ve), Is = Ce("borderRight", ve), Ms = Ce("borderBottom", ve), _s = Ce("borderLeft", ve), Ns = Ce("borderColor"), Bs = Ce("borderTopColor"), Ds = Ce("borderRightColor"), js = Ce("borderBottomColor"), Vs = Ce("borderLeftColor"), zs = Ce("outline", ve), Ws = Ce("outlineColor"), tr = (e) => {
|
|
1867
1867
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1868
1868
|
const t = xt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
1869
|
-
borderRadius:
|
|
1869
|
+
borderRadius: Xe(t, n)
|
|
1870
1870
|
});
|
|
1871
1871
|
return we(e, e.borderRadius, r);
|
|
1872
1872
|
}
|
|
1873
1873
|
return null;
|
|
1874
1874
|
};
|
|
1875
1875
|
tr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1876
|
-
borderRadius:
|
|
1876
|
+
borderRadius: Le
|
|
1877
1877
|
} : {};
|
|
1878
1878
|
tr.filterProps = ["borderRadius"];
|
|
1879
|
-
er(As, Ps, Is, Ms, _s, Ns, Bs, Ds,
|
|
1879
|
+
er(As, Ps, Is, Ms, _s, Ns, Bs, Ds, js, Vs, tr, zs, Ws);
|
|
1880
1880
|
const rr = (e) => {
|
|
1881
1881
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
1882
1882
|
const t = xt(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
1883
|
-
gap:
|
|
1883
|
+
gap: Xe(t, n)
|
|
1884
1884
|
});
|
|
1885
1885
|
return we(e, e.gap, r);
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
};
|
|
1889
1889
|
rr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1890
|
-
gap:
|
|
1890
|
+
gap: Le
|
|
1891
1891
|
} : {};
|
|
1892
1892
|
rr.filterProps = ["gap"];
|
|
1893
1893
|
const nr = (e) => {
|
|
1894
1894
|
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
1895
1895
|
const t = xt(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
|
|
1896
|
-
columnGap:
|
|
1896
|
+
columnGap: Xe(t, n)
|
|
1897
1897
|
});
|
|
1898
1898
|
return we(e, e.columnGap, r);
|
|
1899
1899
|
}
|
|
1900
1900
|
return null;
|
|
1901
1901
|
};
|
|
1902
1902
|
nr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1903
|
-
columnGap:
|
|
1903
|
+
columnGap: Le
|
|
1904
1904
|
} : {};
|
|
1905
1905
|
nr.filterProps = ["columnGap"];
|
|
1906
1906
|
const or = (e) => {
|
|
1907
1907
|
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
1908
1908
|
const t = xt(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
|
|
1909
|
-
rowGap:
|
|
1909
|
+
rowGap: Xe(t, n)
|
|
1910
1910
|
});
|
|
1911
1911
|
return we(e, e.rowGap, r);
|
|
1912
1912
|
}
|
|
1913
1913
|
return null;
|
|
1914
1914
|
};
|
|
1915
1915
|
or.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1916
|
-
rowGap:
|
|
1916
|
+
rowGap: Le
|
|
1917
1917
|
} : {};
|
|
1918
1918
|
or.filterProps = ["rowGap"];
|
|
1919
1919
|
const Ls = de({
|
|
@@ -2312,7 +2312,7 @@ function la() {
|
|
|
2312
2312
|
const {
|
|
2313
2313
|
cssProperty: u = r,
|
|
2314
2314
|
themeKey: d,
|
|
2315
|
-
transform:
|
|
2315
|
+
transform: m,
|
|
2316
2316
|
style: y
|
|
2317
2317
|
} = l;
|
|
2318
2318
|
if (n == null)
|
|
@@ -2321,10 +2321,10 @@ function la() {
|
|
|
2321
2321
|
return {
|
|
2322
2322
|
[r]: n
|
|
2323
2323
|
};
|
|
2324
|
-
const
|
|
2324
|
+
const p = Xt(o, d) || {};
|
|
2325
2325
|
return y ? y(a) : we(a, n, (h) => {
|
|
2326
|
-
let f = Wt(
|
|
2327
|
-
return h === f && typeof h == "string" && (f = Wt(
|
|
2326
|
+
let f = Wt(p, m, h);
|
|
2327
|
+
return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" : Z(h)}`, h)), u === !1 ? f : {
|
|
2328
2328
|
[u]: f
|
|
2329
2329
|
};
|
|
2330
2330
|
});
|
|
@@ -2346,38 +2346,38 @@ function la() {
|
|
|
2346
2346
|
return u;
|
|
2347
2347
|
if (!d)
|
|
2348
2348
|
return null;
|
|
2349
|
-
const
|
|
2350
|
-
let
|
|
2349
|
+
const m = Po(o.breakpoints), y = Object.keys(m);
|
|
2350
|
+
let p = m;
|
|
2351
2351
|
return Object.keys(d).forEach((b) => {
|
|
2352
2352
|
const h = aa(d[b], o);
|
|
2353
2353
|
if (h != null)
|
|
2354
2354
|
if (typeof h == "object")
|
|
2355
2355
|
if (a[b])
|
|
2356
|
-
|
|
2356
|
+
p = gt(p, e(b, h, o, a));
|
|
2357
2357
|
else {
|
|
2358
2358
|
const f = we({
|
|
2359
2359
|
theme: o
|
|
2360
2360
|
}, h, (g) => ({
|
|
2361
2361
|
[b]: g
|
|
2362
2362
|
}));
|
|
2363
|
-
sa(f, h) ?
|
|
2363
|
+
sa(f, h) ? p[b] = t({
|
|
2364
2364
|
sx: h,
|
|
2365
2365
|
theme: o,
|
|
2366
2366
|
nested: !0
|
|
2367
|
-
}) :
|
|
2367
|
+
}) : p = gt(p, f);
|
|
2368
2368
|
}
|
|
2369
2369
|
else
|
|
2370
|
-
|
|
2370
|
+
p = gt(p, e(b, h, o, a));
|
|
2371
2371
|
}), !i && o.modularCssLayers ? {
|
|
2372
|
-
"@layer sx": wn(o, Er(y,
|
|
2373
|
-
} : wn(o, Er(y,
|
|
2372
|
+
"@layer sx": wn(o, Er(y, p))
|
|
2373
|
+
} : wn(o, Er(y, p));
|
|
2374
2374
|
}
|
|
2375
2375
|
return Array.isArray(n) ? n.map(l) : l(n);
|
|
2376
2376
|
}
|
|
2377
2377
|
return t;
|
|
2378
2378
|
}
|
|
2379
|
-
const
|
|
2380
|
-
|
|
2379
|
+
const Qe = la();
|
|
2380
|
+
Qe.filterProps = ["sx"];
|
|
2381
2381
|
function ca(e, t) {
|
|
2382
2382
|
const r = this;
|
|
2383
2383
|
if (r.vars) {
|
|
@@ -2413,11 +2413,11 @@ function Tt(e = {}, ...t) {
|
|
|
2413
2413
|
...i
|
|
2414
2414
|
}
|
|
2415
2415
|
}, a);
|
|
2416
|
-
return d = bs(d), d.applyStyles = ca, d = t.reduce((
|
|
2416
|
+
return d = bs(d), d.applyStyles = ca, d = t.reduce((m, y) => he(m, y), d), d.unstable_sxConfig = {
|
|
2417
2417
|
...Ct,
|
|
2418
2418
|
...a?.unstable_sxConfig
|
|
2419
2419
|
}, d.unstable_sx = function(y) {
|
|
2420
|
-
return
|
|
2420
|
+
return Qe({
|
|
2421
2421
|
sx: y,
|
|
2422
2422
|
theme: this
|
|
2423
2423
|
});
|
|
@@ -2461,18 +2461,18 @@ function _o(e) {
|
|
|
2461
2461
|
...r
|
|
2462
2462
|
} = e, n = {
|
|
2463
2463
|
variants: t,
|
|
2464
|
-
style:
|
|
2464
|
+
style: He(r),
|
|
2465
2465
|
isProcessed: !0
|
|
2466
2466
|
};
|
|
2467
2467
|
return n.style === r || t && t.forEach((o) => {
|
|
2468
|
-
typeof o.style != "function" && (o.style =
|
|
2468
|
+
typeof o.style != "function" && (o.style = He(o.style));
|
|
2469
2469
|
}), n;
|
|
2470
2470
|
}
|
|
2471
2471
|
const fa = Tt();
|
|
2472
2472
|
function Sr(e) {
|
|
2473
2473
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Ue(e, t) {
|
|
2476
2476
|
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
2477
2477
|
}
|
|
2478
2478
|
function da(e) {
|
|
@@ -2488,17 +2488,17 @@ function Bt(e, t, r) {
|
|
|
2488
2488
|
if (Array.isArray(n?.variants)) {
|
|
2489
2489
|
let o;
|
|
2490
2490
|
if (n.isProcessed)
|
|
2491
|
-
o = r ?
|
|
2491
|
+
o = r ? Ue(n.style, r) : n.style;
|
|
2492
2492
|
else {
|
|
2493
2493
|
const {
|
|
2494
2494
|
variants: i,
|
|
2495
2495
|
...a
|
|
2496
2496
|
} = n;
|
|
2497
|
-
o = r ?
|
|
2497
|
+
o = r ? Ue(He(a), r) : a;
|
|
2498
2498
|
}
|
|
2499
2499
|
return No(e, n.variants, [o], r);
|
|
2500
2500
|
}
|
|
2501
|
-
return n?.isProcessed ? r ?
|
|
2501
|
+
return n?.isProcessed ? r ? Ue(He(n.style), r) : n.style : r ? Ue(He(n), r) : n;
|
|
2502
2502
|
}
|
|
2503
2503
|
function No(e, t, r = [], n = void 0) {
|
|
2504
2504
|
let o;
|
|
@@ -2519,7 +2519,7 @@ function No(e, t, r = [], n = void 0) {
|
|
|
2519
2519
|
...e,
|
|
2520
2520
|
...e.ownerState,
|
|
2521
2521
|
ownerState: e.ownerState
|
|
2522
|
-
}, r.push(n ?
|
|
2522
|
+
}, r.push(n ? Ue(He(a.style(o)), n) : a.style(o))) : r.push(n ? Ue(He(a.style), n) : a.style);
|
|
2523
2523
|
}
|
|
2524
2524
|
return r;
|
|
2525
2525
|
}
|
|
@@ -2534,63 +2534,63 @@ function Bo(e = {}) {
|
|
|
2534
2534
|
pa(l, t, r);
|
|
2535
2535
|
}
|
|
2536
2536
|
return (l, u = {}) => {
|
|
2537
|
-
cs(l, (
|
|
2537
|
+
cs(l, (T) => T.filter((D) => D !== Qe));
|
|
2538
2538
|
const {
|
|
2539
2539
|
name: d,
|
|
2540
|
-
slot:
|
|
2540
|
+
slot: m,
|
|
2541
2541
|
skipVariantsResolver: y,
|
|
2542
|
-
skipSx:
|
|
2542
|
+
skipSx: p,
|
|
2543
2543
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2544
2544
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2545
|
-
overridesResolver: b = da(Do(
|
|
2545
|
+
overridesResolver: b = da(Do(m)),
|
|
2546
2546
|
...h
|
|
2547
|
-
} = u, f = d && d.startsWith("Mui") ||
|
|
2547
|
+
} = u, f = d && d.startsWith("Mui") || m ? "components" : "custom", g = y !== void 0 ? y : (
|
|
2548
2548
|
// TODO v6: remove `Root` in the next major release
|
|
2549
2549
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2550
|
-
|
|
2551
|
-
), C =
|
|
2550
|
+
m && m !== "Root" && m !== "root" || !1
|
|
2551
|
+
), C = p || !1;
|
|
2552
2552
|
let k = Sr;
|
|
2553
|
-
|
|
2554
|
-
const
|
|
2553
|
+
m === "Root" || m === "root" ? k = n : m ? k = o : ya(l) && (k = void 0);
|
|
2554
|
+
const M = Ro(l, {
|
|
2555
2555
|
shouldForwardProp: k,
|
|
2556
|
-
label: ha(d,
|
|
2556
|
+
label: ha(d, m),
|
|
2557
2557
|
...h
|
|
2558
|
-
}), $ = (
|
|
2559
|
-
if (
|
|
2560
|
-
return
|
|
2561
|
-
if (typeof
|
|
2562
|
-
return function(
|
|
2563
|
-
return Bt(
|
|
2558
|
+
}), $ = (T) => {
|
|
2559
|
+
if (T.__emotion_real === T)
|
|
2560
|
+
return T;
|
|
2561
|
+
if (typeof T == "function")
|
|
2562
|
+
return function(q) {
|
|
2563
|
+
return Bt(q, T, q.theme.modularCssLayers ? f : void 0);
|
|
2564
2564
|
};
|
|
2565
|
-
if (Re(
|
|
2566
|
-
const
|
|
2567
|
-
return function(
|
|
2568
|
-
return
|
|
2565
|
+
if (Re(T)) {
|
|
2566
|
+
const D = _o(T);
|
|
2567
|
+
return function(V) {
|
|
2568
|
+
return D.variants ? Bt(V, D, V.theme.modularCssLayers ? f : void 0) : V.theme.modularCssLayers ? Ue(D.style, f) : D.style;
|
|
2569
2569
|
};
|
|
2570
2570
|
}
|
|
2571
|
-
return
|
|
2572
|
-
}, S = (...
|
|
2573
|
-
const
|
|
2574
|
-
if (
|
|
2575
|
-
const
|
|
2576
|
-
if (!
|
|
2571
|
+
return T;
|
|
2572
|
+
}, S = (...T) => {
|
|
2573
|
+
const D = [], q = T.map($), V = [];
|
|
2574
|
+
if (D.push(i), d && b && V.push(function(w) {
|
|
2575
|
+
const P = w.theme.components?.[d]?.styleOverrides;
|
|
2576
|
+
if (!P)
|
|
2577
2577
|
return null;
|
|
2578
|
-
const
|
|
2579
|
-
for (const
|
|
2580
|
-
|
|
2581
|
-
return b(
|
|
2582
|
-
}), d && !g &&
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
}), C ||
|
|
2586
|
-
const c =
|
|
2587
|
-
let
|
|
2588
|
-
|
|
2578
|
+
const _ = {};
|
|
2579
|
+
for (const G in P)
|
|
2580
|
+
_[G] = Bt(w, P[G], w.theme.modularCssLayers ? "theme" : void 0);
|
|
2581
|
+
return b(w, _);
|
|
2582
|
+
}), d && !g && V.push(function(w) {
|
|
2583
|
+
const P = w.theme?.components?.[d]?.variants;
|
|
2584
|
+
return P ? No(w, P, [], w.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
2585
|
+
}), C || V.push(Qe), Array.isArray(q[0])) {
|
|
2586
|
+
const c = q.shift(), w = new Array(D.length).fill(""), x = new Array(V.length).fill("");
|
|
2587
|
+
let P;
|
|
2588
|
+
P = [...w, ...c, ...x], P.raw = [...w, ...c.raw, ...x], D.unshift(P);
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2591
|
-
return l.muiName && (
|
|
2590
|
+
const L = [...D, ...q, ...V], I = M(...L);
|
|
2591
|
+
return l.muiName && (I.muiName = l.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ma(d, m, l)), I;
|
|
2592
2592
|
};
|
|
2593
|
-
return
|
|
2593
|
+
return M.withConfig && (S.withConfig = M.withConfig), S;
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
2596
|
function ma(e, t, r) {
|
|
@@ -2614,7 +2614,7 @@ function ya(e) {
|
|
|
2614
2614
|
function Do(e) {
|
|
2615
2615
|
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2616
2616
|
}
|
|
2617
|
-
const
|
|
2617
|
+
const jo = Bo();
|
|
2618
2618
|
function yt(e, t, r = !1) {
|
|
2619
2619
|
const n = {
|
|
2620
2620
|
...t
|
|
@@ -2669,7 +2669,7 @@ const xa = Tt();
|
|
|
2669
2669
|
function sr(e = xa) {
|
|
2670
2670
|
return Sa(e);
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function Vo({
|
|
2673
2673
|
props: e,
|
|
2674
2674
|
name: t,
|
|
2675
2675
|
defaultTheme: r,
|
|
@@ -2844,12 +2844,12 @@ function Ma(e, t) {
|
|
|
2844
2844
|
Rn.includes(n) || Rn.push(n);
|
|
2845
2845
|
});
|
|
2846
2846
|
}
|
|
2847
|
-
const _a = Tt(), Na =
|
|
2847
|
+
const _a = Tt(), Na = jo("div", {
|
|
2848
2848
|
name: "MuiGrid",
|
|
2849
2849
|
slot: "Root"
|
|
2850
2850
|
});
|
|
2851
2851
|
function Ba(e) {
|
|
2852
|
-
return
|
|
2852
|
+
return Vo({
|
|
2853
2853
|
props: e,
|
|
2854
2854
|
name: "MuiGrid",
|
|
2855
2855
|
defaultTheme: _a
|
|
@@ -2862,66 +2862,66 @@ function Da(e = {}) {
|
|
|
2862
2862
|
useThemeProps: r = Ba,
|
|
2863
2863
|
useTheme: n = sr,
|
|
2864
2864
|
componentName: o = "MuiGrid"
|
|
2865
|
-
} = e, i = (d,
|
|
2865
|
+
} = e, i = (d, m) => {
|
|
2866
2866
|
const {
|
|
2867
2867
|
container: y,
|
|
2868
|
-
direction:
|
|
2868
|
+
direction: p,
|
|
2869
2869
|
spacing: b,
|
|
2870
2870
|
wrap: h,
|
|
2871
2871
|
size: f
|
|
2872
2872
|
} = d, g = {
|
|
2873
|
-
root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ia(
|
|
2873
|
+
root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ia(p), ...Aa(f), ...y ? Pa(b, m.breakpoints.keys[0]) : []]
|
|
2874
2874
|
};
|
|
2875
2875
|
return Ae(g, (C) => xe(o, C), {});
|
|
2876
2876
|
};
|
|
2877
|
-
function a(d,
|
|
2878
|
-
const
|
|
2877
|
+
function a(d, m, y = () => !0) {
|
|
2878
|
+
const p = {};
|
|
2879
2879
|
return d === null || (Array.isArray(d) ? d.forEach((b, h) => {
|
|
2880
|
-
b !== null && y(b) &&
|
|
2880
|
+
b !== null && y(b) && m.keys[h] && (p[m.keys[h]] = b);
|
|
2881
2881
|
}) : typeof d == "object" ? Object.keys(d).forEach((b) => {
|
|
2882
2882
|
const h = d[b];
|
|
2883
|
-
h != null && y(h) && (
|
|
2884
|
-
}) : m
|
|
2883
|
+
h != null && y(h) && (p[b] = h);
|
|
2884
|
+
}) : p[m.keys[0]] = d), p;
|
|
2885
2885
|
}
|
|
2886
|
-
const l = t(Ea, $a, Oa, Ta, Ra, ka, wa), u = /* @__PURE__ */ B.forwardRef(function(
|
|
2887
|
-
const
|
|
2888
|
-
Ma(h,
|
|
2886
|
+
const l = t(Ea, $a, Oa, Ta, Ra, ka, wa), u = /* @__PURE__ */ B.forwardRef(function(m, y) {
|
|
2887
|
+
const p = n(), b = r(m), h = ir(b);
|
|
2888
|
+
Ma(h, p.breakpoints);
|
|
2889
2889
|
const {
|
|
2890
2890
|
className: f,
|
|
2891
2891
|
children: g,
|
|
2892
2892
|
columns: C = 12,
|
|
2893
2893
|
container: k = !1,
|
|
2894
|
-
component:
|
|
2894
|
+
component: M = "div",
|
|
2895
2895
|
direction: $ = "row",
|
|
2896
2896
|
wrap: S = "wrap",
|
|
2897
|
-
size:
|
|
2898
|
-
offset:
|
|
2899
|
-
spacing:
|
|
2900
|
-
rowSpacing:
|
|
2901
|
-
columnSpacing:
|
|
2902
|
-
unstable_level:
|
|
2897
|
+
size: T = {},
|
|
2898
|
+
offset: D = {},
|
|
2899
|
+
spacing: q = 0,
|
|
2900
|
+
rowSpacing: V = q,
|
|
2901
|
+
columnSpacing: L = q,
|
|
2902
|
+
unstable_level: I = 0,
|
|
2903
2903
|
...c
|
|
2904
|
-
} = h,
|
|
2904
|
+
} = h, w = a(T, p.breakpoints, (R) => R !== !1), x = a(D, p.breakpoints), P = m.columns ?? (I ? void 0 : C), _ = m.spacing ?? (I ? void 0 : q), G = m.rowSpacing ?? m.spacing ?? (I ? void 0 : V), z = m.columnSpacing ?? m.spacing ?? (I ? void 0 : L), U = {
|
|
2905
2905
|
...h,
|
|
2906
|
-
level:
|
|
2907
|
-
columns:
|
|
2906
|
+
level: I,
|
|
2907
|
+
columns: P,
|
|
2908
2908
|
container: k,
|
|
2909
2909
|
direction: $,
|
|
2910
2910
|
wrap: S,
|
|
2911
|
-
spacing:
|
|
2912
|
-
rowSpacing:
|
|
2913
|
-
columnSpacing:
|
|
2914
|
-
size:
|
|
2911
|
+
spacing: _,
|
|
2912
|
+
rowSpacing: G,
|
|
2913
|
+
columnSpacing: z,
|
|
2914
|
+
size: w,
|
|
2915
2915
|
offset: x
|
|
2916
|
-
}, O = i(U,
|
|
2916
|
+
}, O = i(U, p);
|
|
2917
2917
|
return /* @__PURE__ */ E(l, {
|
|
2918
2918
|
ref: y,
|
|
2919
|
-
as:
|
|
2919
|
+
as: M,
|
|
2920
2920
|
ownerState: U,
|
|
2921
2921
|
className: ue(O.root, f),
|
|
2922
2922
|
...c,
|
|
2923
2923
|
children: B.Children.map(g, (R) => /* @__PURE__ */ B.isValidElement(R) && Zi(R, ["Grid"]) && k && R.props.container ? /* @__PURE__ */ B.cloneElement(R, {
|
|
2924
|
-
unstable_level: R.props?.unstable_level ??
|
|
2924
|
+
unstable_level: R.props?.unstable_level ?? I + 1
|
|
2925
2925
|
}) : R)
|
|
2926
2926
|
});
|
|
2927
2927
|
});
|
|
@@ -2947,16 +2947,16 @@ function Pe(e, t, r = "Mui") {
|
|
|
2947
2947
|
n[o] = xe(e, o, r);
|
|
2948
2948
|
}), n;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function ja(e, t) {
|
|
2951
2951
|
if (process.env.NODE_ENV === "production")
|
|
2952
2952
|
return () => () => null;
|
|
2953
2953
|
const r = t ? {
|
|
2954
2954
|
...t.propTypes
|
|
2955
2955
|
} : null;
|
|
2956
|
-
return (o) => (i, a, l, u, d, ...
|
|
2957
|
-
const y = d || a,
|
|
2958
|
-
if (
|
|
2959
|
-
const b =
|
|
2956
|
+
return (o) => (i, a, l, u, d, ...m) => {
|
|
2957
|
+
const y = d || a, p = r?.[y];
|
|
2958
|
+
if (p) {
|
|
2959
|
+
const b = p(i, a, l, u, d, ...m);
|
|
2960
2960
|
if (b)
|
|
2961
2961
|
return b;
|
|
2962
2962
|
}
|
|
@@ -2964,7 +2964,7 @@ function Va(e, t) {
|
|
|
2964
2964
|
};
|
|
2965
2965
|
}
|
|
2966
2966
|
const Ur = "$$material";
|
|
2967
|
-
function
|
|
2967
|
+
function Va(e = {}) {
|
|
2968
2968
|
const {
|
|
2969
2969
|
themeId: t,
|
|
2970
2970
|
defaultTheme: r,
|
|
@@ -2972,18 +2972,18 @@ function ja(e = {}) {
|
|
|
2972
2972
|
generateClassName: o
|
|
2973
2973
|
} = e, i = Ro("div", {
|
|
2974
2974
|
shouldForwardProp: (l) => l !== "theme" && l !== "sx" && l !== "as"
|
|
2975
|
-
})(
|
|
2975
|
+
})(Qe);
|
|
2976
2976
|
return /* @__PURE__ */ B.forwardRef(function(u, d) {
|
|
2977
|
-
const
|
|
2977
|
+
const m = sr(r), {
|
|
2978
2978
|
className: y,
|
|
2979
|
-
component:
|
|
2979
|
+
component: p = "div",
|
|
2980
2980
|
...b
|
|
2981
2981
|
} = ir(u);
|
|
2982
2982
|
return /* @__PURE__ */ E(i, {
|
|
2983
|
-
as:
|
|
2983
|
+
as: p,
|
|
2984
2984
|
ref: d,
|
|
2985
2985
|
className: ue(y, o ? o(n) : n),
|
|
2986
|
-
theme: t &&
|
|
2986
|
+
theme: t && m[t] || m,
|
|
2987
2987
|
...b
|
|
2988
2988
|
});
|
|
2989
2989
|
});
|
|
@@ -3001,20 +3001,20 @@ function La(e) {
|
|
|
3001
3001
|
let r = e.match(t);
|
|
3002
3002
|
return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && (e.length, e.trim().length), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function We(e) {
|
|
3005
3005
|
if (e.type)
|
|
3006
3006
|
return e;
|
|
3007
3007
|
if (e.charAt(0) === "#")
|
|
3008
|
-
return
|
|
3008
|
+
return We(La(e));
|
|
3009
3009
|
const t = e.indexOf("("), r = e.substring(0, t);
|
|
3010
3010
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
|
|
3011
3011
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
3012
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
3012
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ze(9, e));
|
|
3013
3013
|
let n = e.substring(t + 1, e.length - 1), o;
|
|
3014
3014
|
if (r === "color") {
|
|
3015
3015
|
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))
|
|
3016
3016
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
3017
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
3017
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ze(10, o));
|
|
3018
3018
|
} else
|
|
3019
3019
|
n = n.split(",");
|
|
3020
3020
|
return n = n.map((i) => parseFloat(i)), {
|
|
@@ -3024,7 +3024,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
3026
|
const Fa = (e) => {
|
|
3027
|
-
const t =
|
|
3027
|
+
const t = We(e);
|
|
3028
3028
|
return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
|
|
3029
3029
|
}, mt = (e, t) => {
|
|
3030
3030
|
try {
|
|
@@ -3044,10 +3044,10 @@ function lr(e) {
|
|
|
3044
3044
|
return t.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
|
|
3045
3045
|
}
|
|
3046
3046
|
function zo(e) {
|
|
3047
|
-
e =
|
|
3047
|
+
e = We(e);
|
|
3048
3048
|
const {
|
|
3049
3049
|
values: t
|
|
3050
|
-
} = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), a = (d,
|
|
3050
|
+
} = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), a = (d, m = (d + r / 30) % 12) => o - i * Math.max(Math.min(m - 3, 9 - m, 1), -1);
|
|
3051
3051
|
let l = "rgb";
|
|
3052
3052
|
const u = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)];
|
|
3053
3053
|
return e.type === "hsla" && (l += "a", u.push(t[3])), lr({
|
|
@@ -3056,8 +3056,8 @@ function zo(e) {
|
|
|
3056
3056
|
});
|
|
3057
3057
|
}
|
|
3058
3058
|
function Or(e) {
|
|
3059
|
-
e =
|
|
3060
|
-
let t = e.type === "hsl" || e.type === "hsla" ?
|
|
3059
|
+
e = We(e);
|
|
3060
|
+
let t = e.type === "hsl" || e.type === "hsla" ? We(zo(e)).values : e.values;
|
|
3061
3061
|
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
3062
3062
|
}
|
|
3063
3063
|
function kn(e, t) {
|
|
@@ -3065,9 +3065,9 @@ function kn(e, t) {
|
|
|
3065
3065
|
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
3066
3066
|
}
|
|
3067
3067
|
function Ft(e, t) {
|
|
3068
|
-
return e =
|
|
3068
|
+
return e = We(e), t = Yr(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, lr(e);
|
|
3069
3069
|
}
|
|
3070
|
-
function
|
|
3070
|
+
function Fe(e, t, r) {
|
|
3071
3071
|
try {
|
|
3072
3072
|
return Ft(e, t);
|
|
3073
3073
|
} catch {
|
|
@@ -3075,7 +3075,7 @@ function Le(e, t, r) {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
}
|
|
3077
3077
|
function cr(e, t) {
|
|
3078
|
-
if (e =
|
|
3078
|
+
if (e = We(e), t = Yr(t), e.type.includes("hsl"))
|
|
3079
3079
|
e.values[2] *= 1 - t;
|
|
3080
3080
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
3081
3081
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -3090,7 +3090,7 @@ function ne(e, t, r) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
3092
|
function ur(e, t) {
|
|
3093
|
-
if (e =
|
|
3093
|
+
if (e = We(e), t = Yr(t), e.type.includes("hsl"))
|
|
3094
3094
|
e.values[2] += (100 - e.values[2]) * t;
|
|
3095
3095
|
else if (e.type.includes("rgb"))
|
|
3096
3096
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -3201,10 +3201,10 @@ function xr(e, t) {
|
|
|
3201
3201
|
e,
|
|
3202
3202
|
(l, u, d) => {
|
|
3203
3203
|
if ((typeof u == "string" || typeof u == "number") && (!n || !n(l, u))) {
|
|
3204
|
-
const
|
|
3204
|
+
const m = `--${r ? `${r}-` : ""}${l.join("-")}`, y = Za(l, u);
|
|
3205
3205
|
Object.assign(o, {
|
|
3206
|
-
[
|
|
3207
|
-
}), Mn(i, l, `var(${
|
|
3206
|
+
[m]: y
|
|
3207
|
+
}), Mn(i, l, `var(${m})`, d), Mn(a, l, `var(${m}, ${y})`, d);
|
|
3208
3208
|
}
|
|
3209
3209
|
},
|
|
3210
3210
|
(l) => l[0] === "vars"
|
|
@@ -3227,47 +3227,47 @@ function el(e, t = {}) {
|
|
|
3227
3227
|
defaultColorScheme: u = "light",
|
|
3228
3228
|
...d
|
|
3229
3229
|
} = e, {
|
|
3230
|
-
vars:
|
|
3230
|
+
vars: m,
|
|
3231
3231
|
css: y,
|
|
3232
|
-
varsWithDefaults:
|
|
3232
|
+
varsWithDefaults: p
|
|
3233
3233
|
} = xr(d, t);
|
|
3234
|
-
let b =
|
|
3234
|
+
let b = p;
|
|
3235
3235
|
const h = {}, {
|
|
3236
3236
|
[u]: f,
|
|
3237
3237
|
...g
|
|
3238
3238
|
} = a;
|
|
3239
3239
|
if (Object.entries(g || {}).forEach(([$, S]) => {
|
|
3240
3240
|
const {
|
|
3241
|
-
vars:
|
|
3242
|
-
css:
|
|
3243
|
-
varsWithDefaults:
|
|
3241
|
+
vars: T,
|
|
3242
|
+
css: D,
|
|
3243
|
+
varsWithDefaults: q
|
|
3244
3244
|
} = xr(S, t);
|
|
3245
|
-
b = he(b,
|
|
3246
|
-
css:
|
|
3247
|
-
vars:
|
|
3245
|
+
b = he(b, q), h[$] = {
|
|
3246
|
+
css: D,
|
|
3247
|
+
vars: T
|
|
3248
3248
|
};
|
|
3249
3249
|
}), f) {
|
|
3250
3250
|
const {
|
|
3251
3251
|
css: $,
|
|
3252
3252
|
vars: S,
|
|
3253
|
-
varsWithDefaults:
|
|
3253
|
+
varsWithDefaults: T
|
|
3254
3254
|
} = xr(f, t);
|
|
3255
|
-
b = he(b,
|
|
3255
|
+
b = he(b, T), h[u] = {
|
|
3256
3256
|
css: $,
|
|
3257
3257
|
vars: S
|
|
3258
3258
|
};
|
|
3259
3259
|
}
|
|
3260
3260
|
function C($, S) {
|
|
3261
|
-
let
|
|
3262
|
-
if (o === "class" && (
|
|
3263
|
-
if (
|
|
3261
|
+
let T = o;
|
|
3262
|
+
if (o === "class" && (T = ".%s"), o === "data" && (T = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (T = `[${o}="%s"]`), $) {
|
|
3263
|
+
if (T === "media")
|
|
3264
3264
|
return e.defaultColorScheme === $ ? ":root" : {
|
|
3265
3265
|
[`@media (prefers-color-scheme: ${a[$]?.palette?.mode || $})`]: {
|
|
3266
3266
|
":root": S
|
|
3267
3267
|
}
|
|
3268
3268
|
};
|
|
3269
|
-
if (
|
|
3270
|
-
return e.defaultColorScheme === $ ? `:root, ${
|
|
3269
|
+
if (T)
|
|
3270
|
+
return e.defaultColorScheme === $ ? `:root, ${T.replace("%s", String($))}` : T.replace("%s", String($));
|
|
3271
3271
|
}
|
|
3272
3272
|
return ":root";
|
|
3273
3273
|
}
|
|
@@ -3275,7 +3275,7 @@ function el(e, t = {}) {
|
|
|
3275
3275
|
vars: b,
|
|
3276
3276
|
generateThemeVars: () => {
|
|
3277
3277
|
let $ = {
|
|
3278
|
-
...
|
|
3278
|
+
...m
|
|
3279
3279
|
};
|
|
3280
3280
|
return Object.entries(h).forEach(([, {
|
|
3281
3281
|
vars: S
|
|
@@ -3285,43 +3285,43 @@ function el(e, t = {}) {
|
|
|
3285
3285
|
},
|
|
3286
3286
|
generateStyleSheets: () => {
|
|
3287
3287
|
const $ = [], S = e.defaultColorScheme || "light";
|
|
3288
|
-
function
|
|
3289
|
-
Object.keys(
|
|
3290
|
-
[
|
|
3291
|
-
...
|
|
3288
|
+
function T(V, L) {
|
|
3289
|
+
Object.keys(L).length && $.push(typeof V == "string" ? {
|
|
3290
|
+
[V]: {
|
|
3291
|
+
...L
|
|
3292
3292
|
}
|
|
3293
|
-
} :
|
|
3293
|
+
} : V);
|
|
3294
3294
|
}
|
|
3295
|
-
|
|
3295
|
+
T(r(void 0, {
|
|
3296
3296
|
...y
|
|
3297
3297
|
}), y);
|
|
3298
3298
|
const {
|
|
3299
|
-
[S]:
|
|
3300
|
-
...
|
|
3299
|
+
[S]: D,
|
|
3300
|
+
...q
|
|
3301
3301
|
} = h;
|
|
3302
|
-
if (
|
|
3302
|
+
if (D) {
|
|
3303
3303
|
const {
|
|
3304
|
-
css:
|
|
3305
|
-
} =
|
|
3306
|
-
colorScheme:
|
|
3307
|
-
...
|
|
3304
|
+
css: V
|
|
3305
|
+
} = D, L = a[S]?.palette?.mode, I = !n && L ? {
|
|
3306
|
+
colorScheme: L,
|
|
3307
|
+
...V
|
|
3308
3308
|
} : {
|
|
3309
|
-
...
|
|
3309
|
+
...V
|
|
3310
3310
|
};
|
|
3311
|
-
|
|
3312
|
-
...
|
|
3313
|
-
}),
|
|
3311
|
+
T(r(S, {
|
|
3312
|
+
...I
|
|
3313
|
+
}), I);
|
|
3314
3314
|
}
|
|
3315
|
-
return Object.entries(
|
|
3316
|
-
css:
|
|
3315
|
+
return Object.entries(q).forEach(([V, {
|
|
3316
|
+
css: L
|
|
3317
3317
|
}]) => {
|
|
3318
|
-
const
|
|
3319
|
-
colorScheme:
|
|
3320
|
-
...
|
|
3318
|
+
const I = a[V]?.palette?.mode, c = !n && I ? {
|
|
3319
|
+
colorScheme: I,
|
|
3320
|
+
...L
|
|
3321
3321
|
} : {
|
|
3322
|
-
...
|
|
3322
|
+
...L
|
|
3323
3323
|
};
|
|
3324
|
-
|
|
3324
|
+
T(r(V, {
|
|
3325
3325
|
...c
|
|
3326
3326
|
}), c);
|
|
3327
3327
|
}), i && $.push({
|
|
@@ -3341,12 +3341,12 @@ function tl(e) {
|
|
|
3341
3341
|
return e === "media" ? (process.env.NODE_ENV, `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
|
-
const rl = Tt(), nl =
|
|
3344
|
+
const rl = Tt(), nl = jo("div", {
|
|
3345
3345
|
name: "MuiStack",
|
|
3346
3346
|
slot: "Root"
|
|
3347
3347
|
});
|
|
3348
3348
|
function ol(e) {
|
|
3349
|
-
return
|
|
3349
|
+
return Vo({
|
|
3350
3350
|
props: e,
|
|
3351
3351
|
name: "MuiStack",
|
|
3352
3352
|
defaultTheme: rl
|
|
@@ -3387,15 +3387,15 @@ const sl = (e) => ({
|
|
|
3387
3387
|
values: e.spacing,
|
|
3388
3388
|
base: o
|
|
3389
3389
|
});
|
|
3390
|
-
typeof i == "object" && Object.keys(i).forEach((u, d,
|
|
3390
|
+
typeof i == "object" && Object.keys(i).forEach((u, d, m) => {
|
|
3391
3391
|
if (!i[u]) {
|
|
3392
|
-
const
|
|
3393
|
-
i[u] =
|
|
3392
|
+
const p = d > 0 ? i[m[d - 1]] : "column";
|
|
3393
|
+
i[u] = p;
|
|
3394
3394
|
}
|
|
3395
3395
|
}), r = he(r, we({
|
|
3396
3396
|
theme: t
|
|
3397
3397
|
}, a, (u, d) => e.useFlexGap ? {
|
|
3398
|
-
gap:
|
|
3398
|
+
gap: Xe(n, u)
|
|
3399
3399
|
} : {
|
|
3400
3400
|
// The useFlexGap={false} implement relies on each child to give up control of the margin.
|
|
3401
3401
|
// We need to reset the margin to avoid double spacing.
|
|
@@ -3403,7 +3403,7 @@ const sl = (e) => ({
|
|
|
3403
3403
|
margin: 0
|
|
3404
3404
|
},
|
|
3405
3405
|
"& > :not(style) ~ :not(style)": {
|
|
3406
|
-
[`margin${sl(d ? i[d] : e.direction)}`]:
|
|
3406
|
+
[`margin${sl(d ? i[d] : e.direction)}`]: Xe(n, u)
|
|
3407
3407
|
}
|
|
3408
3408
|
}));
|
|
3409
3409
|
}
|
|
@@ -3418,26 +3418,26 @@ function ll(e = {}) {
|
|
|
3418
3418
|
} = e, o = () => Ae({
|
|
3419
3419
|
root: ["root"]
|
|
3420
3420
|
}, (u) => xe(n, u), {}), i = t(al), a = /* @__PURE__ */ B.forwardRef(function(u, d) {
|
|
3421
|
-
const
|
|
3422
|
-
component:
|
|
3421
|
+
const m = r(u), y = ir(m), {
|
|
3422
|
+
component: p = "div",
|
|
3423
3423
|
direction: b = "column",
|
|
3424
3424
|
spacing: h = 0,
|
|
3425
3425
|
divider: f,
|
|
3426
3426
|
children: g,
|
|
3427
3427
|
className: C,
|
|
3428
3428
|
useFlexGap: k = !1,
|
|
3429
|
-
...
|
|
3429
|
+
...M
|
|
3430
3430
|
} = y, $ = {
|
|
3431
3431
|
direction: b,
|
|
3432
3432
|
spacing: h,
|
|
3433
3433
|
useFlexGap: k
|
|
3434
3434
|
}, S = o();
|
|
3435
3435
|
return /* @__PURE__ */ E(i, {
|
|
3436
|
-
as:
|
|
3436
|
+
as: p,
|
|
3437
3437
|
ownerState: $,
|
|
3438
3438
|
ref: d,
|
|
3439
3439
|
className: ue(S.root, C),
|
|
3440
|
-
...
|
|
3440
|
+
...M,
|
|
3441
3441
|
children: f ? il(g, f) : g
|
|
3442
3442
|
});
|
|
3443
3443
|
});
|
|
@@ -3467,14 +3467,14 @@ const bt = {
|
|
|
3467
3467
|
A200: "#eeeeee",
|
|
3468
3468
|
A400: "#bdbdbd",
|
|
3469
3469
|
A700: "#616161"
|
|
3470
|
-
},
|
|
3470
|
+
}, Je = {
|
|
3471
3471
|
50: "#f3e5f5",
|
|
3472
3472
|
200: "#ce93d8",
|
|
3473
3473
|
300: "#ba68c8",
|
|
3474
3474
|
400: "#ab47bc",
|
|
3475
3475
|
500: "#9c27b0",
|
|
3476
3476
|
700: "#7b1fa2"
|
|
3477
|
-
},
|
|
3477
|
+
}, Ze = {
|
|
3478
3478
|
300: "#e57373",
|
|
3479
3479
|
400: "#ef5350",
|
|
3480
3480
|
500: "#f44336",
|
|
@@ -3486,19 +3486,19 @@ const bt = {
|
|
|
3486
3486
|
500: "#ff9800",
|
|
3487
3487
|
700: "#f57c00",
|
|
3488
3488
|
900: "#e65100"
|
|
3489
|
-
},
|
|
3489
|
+
}, et = {
|
|
3490
3490
|
50: "#e3f2fd",
|
|
3491
3491
|
200: "#90caf9",
|
|
3492
3492
|
400: "#42a5f5",
|
|
3493
3493
|
700: "#1976d2",
|
|
3494
3494
|
800: "#1565c0"
|
|
3495
|
-
},
|
|
3495
|
+
}, tt = {
|
|
3496
3496
|
300: "#4fc3f7",
|
|
3497
3497
|
400: "#29b6f6",
|
|
3498
3498
|
500: "#03a9f4",
|
|
3499
3499
|
700: "#0288d1",
|
|
3500
3500
|
900: "#01579b"
|
|
3501
|
-
},
|
|
3501
|
+
}, rt = {
|
|
3502
3502
|
300: "#81c784",
|
|
3503
3503
|
400: "#66bb6a",
|
|
3504
3504
|
500: "#4caf50",
|
|
@@ -3586,59 +3586,59 @@ function Nn(e, t, r, n, o) {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
function ul(e = "light") {
|
|
3588
3588
|
return e === "dark" ? {
|
|
3589
|
-
main:
|
|
3590
|
-
light:
|
|
3591
|
-
dark:
|
|
3589
|
+
main: et[200],
|
|
3590
|
+
light: et[50],
|
|
3591
|
+
dark: et[400]
|
|
3592
3592
|
} : {
|
|
3593
|
-
main:
|
|
3594
|
-
light:
|
|
3595
|
-
dark:
|
|
3593
|
+
main: et[700],
|
|
3594
|
+
light: et[400],
|
|
3595
|
+
dark: et[800]
|
|
3596
3596
|
};
|
|
3597
3597
|
}
|
|
3598
3598
|
function fl(e = "light") {
|
|
3599
3599
|
return e === "dark" ? {
|
|
3600
|
-
main:
|
|
3601
|
-
light:
|
|
3602
|
-
dark:
|
|
3600
|
+
main: Je[200],
|
|
3601
|
+
light: Je[50],
|
|
3602
|
+
dark: Je[400]
|
|
3603
3603
|
} : {
|
|
3604
|
-
main: Qe[500],
|
|
3605
|
-
light: Qe[300],
|
|
3606
|
-
dark: Qe[700]
|
|
3607
|
-
};
|
|
3608
|
-
}
|
|
3609
|
-
function dl(e = "light") {
|
|
3610
|
-
return e === "dark" ? {
|
|
3611
3604
|
main: Je[500],
|
|
3612
3605
|
light: Je[300],
|
|
3613
3606
|
dark: Je[700]
|
|
3614
|
-
} : {
|
|
3615
|
-
main: Je[700],
|
|
3616
|
-
light: Je[400],
|
|
3617
|
-
dark: Je[800]
|
|
3618
3607
|
};
|
|
3619
3608
|
}
|
|
3620
|
-
function
|
|
3609
|
+
function dl(e = "light") {
|
|
3621
3610
|
return e === "dark" ? {
|
|
3622
|
-
main:
|
|
3623
|
-
light:
|
|
3624
|
-
dark:
|
|
3611
|
+
main: Ze[500],
|
|
3612
|
+
light: Ze[300],
|
|
3613
|
+
dark: Ze[700]
|
|
3625
3614
|
} : {
|
|
3626
|
-
main:
|
|
3627
|
-
light:
|
|
3628
|
-
dark:
|
|
3615
|
+
main: Ze[700],
|
|
3616
|
+
light: Ze[400],
|
|
3617
|
+
dark: Ze[800]
|
|
3629
3618
|
};
|
|
3630
3619
|
}
|
|
3631
|
-
function
|
|
3620
|
+
function pl(e = "light") {
|
|
3632
3621
|
return e === "dark" ? {
|
|
3633
3622
|
main: tt[400],
|
|
3634
3623
|
light: tt[300],
|
|
3635
3624
|
dark: tt[700]
|
|
3636
3625
|
} : {
|
|
3637
|
-
main: tt[
|
|
3626
|
+
main: tt[700],
|
|
3638
3627
|
light: tt[500],
|
|
3639
3628
|
dark: tt[900]
|
|
3640
3629
|
};
|
|
3641
3630
|
}
|
|
3631
|
+
function ml(e = "light") {
|
|
3632
|
+
return e === "dark" ? {
|
|
3633
|
+
main: rt[400],
|
|
3634
|
+
light: rt[300],
|
|
3635
|
+
dark: rt[700]
|
|
3636
|
+
} : {
|
|
3637
|
+
main: rt[800],
|
|
3638
|
+
light: rt[500],
|
|
3639
|
+
dark: rt[900]
|
|
3640
|
+
};
|
|
3641
|
+
}
|
|
3642
3642
|
function hl(e = "light") {
|
|
3643
3643
|
return e === "dark" ? {
|
|
3644
3644
|
main: ft[400],
|
|
@@ -3661,8 +3661,8 @@ function Hr(e) {
|
|
|
3661
3661
|
tonalOffset: n = 0.2,
|
|
3662
3662
|
colorSpace: o,
|
|
3663
3663
|
...i
|
|
3664
|
-
} = e, a = e.primary || ul(t), l = e.secondary || fl(t), u = e.error || dl(t), d = e.info || pl(t),
|
|
3665
|
-
function
|
|
3664
|
+
} = e, a = e.primary || ul(t), l = e.secondary || fl(t), u = e.error || dl(t), d = e.info || pl(t), m = e.success || ml(t), y = e.warning || hl(t);
|
|
3665
|
+
function p(g) {
|
|
3666
3666
|
if (o)
|
|
3667
3667
|
return gl(g);
|
|
3668
3668
|
const C = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
|
|
@@ -3672,14 +3672,14 @@ function Hr(e) {
|
|
|
3672
3672
|
color: g,
|
|
3673
3673
|
name: C,
|
|
3674
3674
|
mainShade: k = 500,
|
|
3675
|
-
lightShade:
|
|
3675
|
+
lightShade: M = 300,
|
|
3676
3676
|
darkShade: $ = 700
|
|
3677
3677
|
}) => {
|
|
3678
3678
|
if (g = {
|
|
3679
3679
|
...g
|
|
3680
3680
|
}, !g.main && g[k] && (g.main = g[k]), !g.hasOwnProperty("main"))
|
|
3681
3681
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
|
|
3682
|
-
The color object needs to have a \`main\` property or a \`${k}\` property.` :
|
|
3682
|
+
The color object needs to have a \`main\` property or a \`${k}\` property.` : ze(11, C ? ` (${C})` : "", k));
|
|
3683
3683
|
if (typeof g.main != "string")
|
|
3684
3684
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
|
|
3685
3685
|
\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
|
|
@@ -3694,8 +3694,8 @@ const theme1 = createTheme({ palette: {
|
|
|
3694
3694
|
|
|
3695
3695
|
const theme2 = createTheme({ palette: {
|
|
3696
3696
|
primary: { main: green[500] },
|
|
3697
|
-
} });` :
|
|
3698
|
-
return o ? (Nn(o, g, "light",
|
|
3697
|
+
} });` : ze(12, C ? ` (${C})` : "", JSON.stringify(g.main)));
|
|
3698
|
+
return o ? (Nn(o, g, "light", M, n), Nn(o, g, "dark", $, n)) : (_n(g, "light", M, n), _n(g, "dark", $, n)), g.contrastText || (g.contrastText = p(g.main)), g;
|
|
3699
3699
|
};
|
|
3700
3700
|
let h;
|
|
3701
3701
|
return t === "light" ? h = Lo() : t === "dark" && (h = qo()), process.env.NODE_ENV, he({
|
|
@@ -3736,7 +3736,7 @@ const theme2 = createTheme({ palette: {
|
|
|
3736
3736
|
}),
|
|
3737
3737
|
// The colors used to indicate the successful completion of an action that user triggered.
|
|
3738
3738
|
success: b({
|
|
3739
|
-
color:
|
|
3739
|
+
color: m,
|
|
3740
3740
|
name: "success"
|
|
3741
3741
|
}),
|
|
3742
3742
|
// The grey colors.
|
|
@@ -3745,7 +3745,7 @@ const theme2 = createTheme({ palette: {
|
|
|
3745
3745
|
// the background and the text.
|
|
3746
3746
|
contrastThreshold: r,
|
|
3747
3747
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
3748
|
-
getContrastText:
|
|
3748
|
+
getContrastText: p,
|
|
3749
3749
|
// Generate a rich color object.
|
|
3750
3750
|
augmentColor: b,
|
|
3751
3751
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -3800,11 +3800,11 @@ function Sl(e, t) {
|
|
|
3800
3800
|
htmlFontSize: u = 16,
|
|
3801
3801
|
// Apply the CSS properties to all the variants.
|
|
3802
3802
|
allVariants: d,
|
|
3803
|
-
pxToRem:
|
|
3803
|
+
pxToRem: m,
|
|
3804
3804
|
...y
|
|
3805
3805
|
} = typeof t == "function" ? t(e) : t;
|
|
3806
3806
|
process.env.NODE_ENV;
|
|
3807
|
-
const
|
|
3807
|
+
const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, C, k, M, $) => ({
|
|
3808
3808
|
fontFamily: r,
|
|
3809
3809
|
fontWeight: g,
|
|
3810
3810
|
fontSize: b(C),
|
|
@@ -3813,7 +3813,7 @@ function Sl(e, t) {
|
|
|
3813
3813
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
3814
3814
|
// across font-families can cause issues with the kerning.
|
|
3815
3815
|
...r === Dn ? {
|
|
3816
|
-
letterSpacing: `${vl(
|
|
3816
|
+
letterSpacing: `${vl(M / C)}em`
|
|
3817
3817
|
} : {},
|
|
3818
3818
|
...$,
|
|
3819
3819
|
...d
|
|
@@ -3882,7 +3882,7 @@ const wl = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
|
|
|
3882
3882
|
// recommended when something is leaving screen
|
|
3883
3883
|
leavingScreen: 195
|
|
3884
3884
|
};
|
|
3885
|
-
function
|
|
3885
|
+
function jn(e) {
|
|
3886
3886
|
return `${Math.round(e)}ms`;
|
|
3887
3887
|
}
|
|
3888
3888
|
function $l(e) {
|
|
@@ -3909,10 +3909,10 @@ function Rl(e) {
|
|
|
3909
3909
|
...d
|
|
3910
3910
|
} = i;
|
|
3911
3911
|
if (process.env.NODE_ENV !== "production") {
|
|
3912
|
-
const
|
|
3913
|
-
!
|
|
3912
|
+
const m = (p) => typeof p == "string", y = (p) => !Number.isNaN(parseFloat(p));
|
|
3913
|
+
!m(o) && Array.isArray(o), !y(a) && m(a), m(l), !y(u) && m(u), Object.keys(d).length;
|
|
3914
3914
|
}
|
|
3915
|
-
return (Array.isArray(o) ? o : [o]).map((
|
|
3915
|
+
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof a == "string" ? a : jn(a)} ${l} ${typeof u == "string" ? u : jn(u)}`).join(",");
|
|
3916
3916
|
},
|
|
3917
3917
|
...e,
|
|
3918
3918
|
easing: t,
|
|
@@ -3954,7 +3954,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
3954
3954
|
|
|
3955
3955
|
export default theme;`;
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function Vn(e) {
|
|
3958
3958
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
3959
3959
|
}
|
|
3960
3960
|
const Pl = (e) => {
|
|
@@ -3976,11 +3976,11 @@ function Il(e) {
|
|
|
3976
3976
|
},
|
|
3977
3977
|
lighten(t, r) {
|
|
3978
3978
|
const n = this || e;
|
|
3979
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${
|
|
3979
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${Vn(r)})` : ur(t, r);
|
|
3980
3980
|
},
|
|
3981
3981
|
darken(t, r) {
|
|
3982
3982
|
const n = this || e;
|
|
3983
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${
|
|
3983
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${Vn(r)})` : cr(t, r);
|
|
3984
3984
|
}
|
|
3985
3985
|
});
|
|
3986
3986
|
}
|
|
@@ -3994,18 +3994,18 @@ function Rr(e = {}, ...t) {
|
|
|
3994
3994
|
typography: l = {},
|
|
3995
3995
|
shape: u,
|
|
3996
3996
|
colorSpace: d,
|
|
3997
|
-
...
|
|
3997
|
+
...m
|
|
3998
3998
|
} = e;
|
|
3999
3999
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
4000
4000
|
// `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.
|
|
4001
4001
|
e.generateThemeVars === void 0)
|
|
4002
|
-
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." :
|
|
4002
|
+
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));
|
|
4003
4003
|
const y = Hr({
|
|
4004
4004
|
...i,
|
|
4005
4005
|
colorSpace: d
|
|
4006
|
-
}),
|
|
4007
|
-
let b = he(
|
|
4008
|
-
mixins: bl(
|
|
4006
|
+
}), p = Tt(e);
|
|
4007
|
+
let b = he(p, {
|
|
4008
|
+
mixins: bl(p.breakpoints, n),
|
|
4009
4009
|
palette: y,
|
|
4010
4010
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
4011
4011
|
shadows: wl.slice(),
|
|
@@ -4015,12 +4015,12 @@ function Rr(e = {}, ...t) {
|
|
|
4015
4015
|
...kl
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
|
-
if (b = he(b,
|
|
4018
|
+
if (b = he(b, m), b = t.reduce((h, f) => he(h, f), b), process.env.NODE_ENV !== "production") {
|
|
4019
4019
|
const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g, C) => {
|
|
4020
4020
|
let k;
|
|
4021
4021
|
for (k in g) {
|
|
4022
|
-
const
|
|
4023
|
-
if (h.includes(k) && Object.keys(
|
|
4022
|
+
const M = g[k];
|
|
4023
|
+
if (h.includes(k) && Object.keys(M).length > 0) {
|
|
4024
4024
|
if (process.env.NODE_ENV !== "production") {
|
|
4025
4025
|
const $ = xe("", k);
|
|
4026
4026
|
}
|
|
@@ -4035,9 +4035,9 @@ function Rr(e = {}, ...t) {
|
|
|
4035
4035
|
}
|
|
4036
4036
|
return b.unstable_sxConfig = {
|
|
4037
4037
|
...Ct,
|
|
4038
|
-
...
|
|
4038
|
+
...m?.unstable_sxConfig
|
|
4039
4039
|
}, b.unstable_sx = function(f) {
|
|
4040
|
-
return
|
|
4040
|
+
return Qe({
|
|
4041
4041
|
sx: f,
|
|
4042
4042
|
theme: this
|
|
4043
4043
|
});
|
|
@@ -4129,7 +4129,7 @@ const Bl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlay
|
|
|
4129
4129
|
}
|
|
4130
4130
|
return n;
|
|
4131
4131
|
};
|
|
4132
|
-
function
|
|
4132
|
+
function jl(e, t) {
|
|
4133
4133
|
t.forEach((r) => {
|
|
4134
4134
|
e[r] || (e[r] = {});
|
|
4135
4135
|
});
|
|
@@ -4144,7 +4144,7 @@ function Ie(e, t) {
|
|
|
4144
4144
|
`${t}Channel` in e || (e[`${t}Channel`] = mt(ht(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
4145
4145
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function Vl(e) {
|
|
4148
4148
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
4149
4149
|
}
|
|
4150
4150
|
const $e = (e) => {
|
|
@@ -4202,24 +4202,24 @@ function Wl(e = {}, ...t) {
|
|
|
4202
4202
|
shouldSkipGeneratingVar: l = Nl,
|
|
4203
4203
|
colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
|
|
4204
4204
|
rootSelector: d = ":root",
|
|
4205
|
-
...
|
|
4206
|
-
} = e, y = Object.keys(r)[0],
|
|
4207
|
-
[
|
|
4205
|
+
...m
|
|
4206
|
+
} = e, y = Object.keys(r)[0], p = n || (r.light && y !== "light" ? "light" : y), b = zl(i), {
|
|
4207
|
+
[p]: h,
|
|
4208
4208
|
light: f,
|
|
4209
4209
|
dark: g,
|
|
4210
4210
|
...C
|
|
4211
4211
|
} = r, k = {
|
|
4212
4212
|
...C
|
|
4213
4213
|
};
|
|
4214
|
-
let
|
|
4215
|
-
if ((
|
|
4216
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${
|
|
4214
|
+
let M = h;
|
|
4215
|
+
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (M = !0), !M)
|
|
4216
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ze(21, p));
|
|
4217
4217
|
let $;
|
|
4218
4218
|
a && ($ = "oklch");
|
|
4219
|
-
const S = Cr($, k,
|
|
4219
|
+
const S = Cr($, k, M, m, p);
|
|
4220
4220
|
f && !k.light && Cr($, k, f, void 0, "light"), g && !k.dark && Cr($, k, g, void 0, "dark");
|
|
4221
|
-
let
|
|
4222
|
-
defaultColorScheme:
|
|
4221
|
+
let T = {
|
|
4222
|
+
defaultColorScheme: p,
|
|
4223
4223
|
...S,
|
|
4224
4224
|
cssVarPrefix: i,
|
|
4225
4225
|
colorSchemeSelector: u,
|
|
@@ -4230,60 +4230,60 @@ function Wl(e = {}, ...t) {
|
|
|
4230
4230
|
...yl(S.typography),
|
|
4231
4231
|
...S.font
|
|
4232
4232
|
},
|
|
4233
|
-
spacing:
|
|
4233
|
+
spacing: Vl(m.spacing)
|
|
4234
4234
|
};
|
|
4235
|
-
Object.keys(
|
|
4236
|
-
const c =
|
|
4237
|
-
const
|
|
4238
|
-
return b(
|
|
4235
|
+
Object.keys(T.colorSchemes).forEach((I) => {
|
|
4236
|
+
const c = T.colorSchemes[I].palette, w = (P) => {
|
|
4237
|
+
const _ = P.split("-"), G = _[1], z = _[2];
|
|
4238
|
+
return b(P, c[G][z]);
|
|
4239
4239
|
};
|
|
4240
4240
|
c.mode === "light" && (v(c.common, "background", "#fff"), v(c.common, "onBackground", "#000")), c.mode === "dark" && (v(c.common, "background", "#000"), v(c.common, "onBackground", "#fff"));
|
|
4241
|
-
function x(
|
|
4241
|
+
function x(P, _, G) {
|
|
4242
4242
|
if ($) {
|
|
4243
|
-
let
|
|
4244
|
-
return
|
|
4243
|
+
let z;
|
|
4244
|
+
return P === Fe && (z = `transparent ${((1 - G) * 100).toFixed(0)}%`), P === ne && (z = `#000 ${(G * 100).toFixed(0)}%`), P === oe && (z = `#fff ${(G * 100).toFixed(0)}%`), `color-mix(in ${$}, ${_}, ${z})`;
|
|
4245
4245
|
}
|
|
4246
|
-
return
|
|
4246
|
+
return P(_, G);
|
|
4247
4247
|
}
|
|
4248
|
-
if (
|
|
4249
|
-
v(c.Alert, "errorColor", x(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", x(ne, c.info.light, 0.6)), v(c.Alert, "successColor", x(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", x(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg",
|
|
4250
|
-
const
|
|
4251
|
-
v(c.SnackbarContent, "bg",
|
|
4248
|
+
if (jl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
|
|
4249
|
+
v(c.Alert, "errorColor", x(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", x(ne, c.info.light, 0.6)), v(c.Alert, "successColor", x(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", x(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", w("palette-error-main")), v(c.Alert, "infoFilledBg", w("palette-info-main")), v(c.Alert, "successFilledBg", w("palette-success-main")), v(c.Alert, "warningFilledBg", w("palette-warning-main")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.main))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.main))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.main))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.main))), v(c.Alert, "errorStandardBg", x(oe, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(oe, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(oe, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(oe, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", w("palette-error-main")), v(c.Alert, "infoIconColor", w("palette-info-main")), v(c.Alert, "successIconColor", w("palette-success-main")), v(c.Alert, "warningIconColor", w("palette-warning-main")), v(c.AppBar, "defaultBg", w("palette-grey-100")), v(c.Avatar, "defaultBg", w("palette-grey-400")), v(c.Button, "inheritContainedBg", w("palette-grey-300")), v(c.Button, "inheritContainedHoverBg", w("palette-grey-A100")), v(c.Chip, "defaultBorder", w("palette-grey-400")), v(c.Chip, "defaultAvatarColor", w("palette-grey-700")), v(c.Chip, "defaultIconColor", w("palette-grey-700")), v(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), v(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), v(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), v(c.LinearProgress, "primaryBg", x(oe, c.primary.main, 0.62)), v(c.LinearProgress, "secondaryBg", x(oe, c.secondary.main, 0.62)), v(c.LinearProgress, "errorBg", x(oe, c.error.main, 0.62)), v(c.LinearProgress, "infoBg", x(oe, c.info.main, 0.62)), v(c.LinearProgress, "successBg", x(oe, c.success.main, 0.62)), v(c.LinearProgress, "warningBg", x(oe, c.warning.main, 0.62)), v(c.Skeleton, "bg", $ ? x(Fe, c.text.primary, 0.11) : `rgba(${w("palette-text-primaryChannel")} / 0.11)`), v(c.Slider, "primaryTrack", x(oe, c.primary.main, 0.62)), v(c.Slider, "secondaryTrack", x(oe, c.secondary.main, 0.62)), v(c.Slider, "errorTrack", x(oe, c.error.main, 0.62)), v(c.Slider, "infoTrack", x(oe, c.info.main, 0.62)), v(c.Slider, "successTrack", x(oe, c.success.main, 0.62)), v(c.Slider, "warningTrack", x(oe, c.warning.main, 0.62));
|
|
4250
|
+
const P = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
|
|
4251
|
+
v(c.SnackbarContent, "bg", P), v(c.SnackbarContent, "color", $e(() => $ ? $r.text.primary : c.getContrastText(P))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", w("palette-grey-400")), v(c.StepContent, "border", w("palette-grey-400")), v(c.Switch, "defaultColor", w("palette-common-white")), v(c.Switch, "defaultDisabledColor", w("palette-grey-100")), v(c.Switch, "primaryDisabledColor", x(oe, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", x(oe, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", x(oe, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", x(oe, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", x(oe, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", x(oe, c.warning.main, 0.62)), v(c.TableCell, "border", x(oe, x(Fe, c.divider, 1), 0.88)), v(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
|
|
4252
4252
|
}
|
|
4253
4253
|
if (c.mode === "dark") {
|
|
4254
|
-
v(c.Alert, "errorColor", x(oe, c.error.light, 0.6)), v(c.Alert, "infoColor", x(oe, c.info.light, 0.6)), v(c.Alert, "successColor", x(oe, c.success.light, 0.6)), v(c.Alert, "warningColor", x(oe, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg",
|
|
4255
|
-
const
|
|
4256
|
-
v(c.SnackbarContent, "bg",
|
|
4254
|
+
v(c.Alert, "errorColor", x(oe, c.error.light, 0.6)), v(c.Alert, "infoColor", x(oe, c.info.light, 0.6)), v(c.Alert, "successColor", x(oe, c.success.light, 0.6)), v(c.Alert, "warningColor", x(oe, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", w("palette-error-dark")), v(c.Alert, "infoFilledBg", w("palette-info-dark")), v(c.Alert, "successFilledBg", w("palette-success-dark")), v(c.Alert, "warningFilledBg", w("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", x(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", w("palette-error-main")), v(c.Alert, "infoIconColor", w("palette-info-main")), v(c.Alert, "successIconColor", w("palette-success-main")), v(c.Alert, "warningIconColor", w("palette-warning-main")), v(c.AppBar, "defaultBg", w("palette-grey-900")), v(c.AppBar, "darkBg", w("palette-background-paper")), v(c.AppBar, "darkColor", w("palette-text-primary")), v(c.Avatar, "defaultBg", w("palette-grey-600")), v(c.Button, "inheritContainedBg", w("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", w("palette-grey-700")), v(c.Chip, "defaultBorder", w("palette-grey-700")), v(c.Chip, "defaultAvatarColor", w("palette-grey-300")), v(c.Chip, "defaultIconColor", w("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", x(ne, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", x(ne, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", x(ne, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", x(ne, c.info.main, 0.5)), v(c.LinearProgress, "successBg", x(ne, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", x(ne, c.warning.main, 0.5)), v(c.Skeleton, "bg", $ ? x(Fe, c.text.primary, 0.13) : `rgba(${w("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", x(ne, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", x(ne, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", x(ne, c.error.main, 0.5)), v(c.Slider, "infoTrack", x(ne, c.info.main, 0.5)), v(c.Slider, "successTrack", x(ne, c.success.main, 0.5)), v(c.Slider, "warningTrack", x(ne, c.warning.main, 0.5));
|
|
4255
|
+
const P = $ ? x(oe, c.background.default, 0.985) : It(c.background.default, 0.98);
|
|
4256
|
+
v(c.SnackbarContent, "bg", P), v(c.SnackbarContent, "color", $e(() => $ ? Fo.text.primary : c.getContrastText(P))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", w("palette-grey-600")), v(c.StepContent, "border", w("palette-grey-600")), v(c.Switch, "defaultColor", w("palette-grey-300")), v(c.Switch, "defaultDisabledColor", w("palette-grey-600")), v(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.55)), v(c.TableCell, "border", x(ne, x(Fe, c.divider, 1), 0.68)), v(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
|
|
4257
4257
|
}
|
|
4258
|
-
Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4258
|
+
Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((P) => {
|
|
4259
|
+
const _ = c[P];
|
|
4260
|
+
P !== "tonalOffset" && _ && typeof _ == "object" && (_.main && v(c[P], "mainChannel", mt(ht(_.main))), _.light && v(c[P], "lightChannel", mt(ht(_.light))), _.dark && v(c[P], "darkChannel", mt(ht(_.dark))), _.contrastText && v(c[P], "contrastTextChannel", mt(ht(_.contrastText))), P === "text" && (Ie(c[P], "primary"), Ie(c[P], "secondary")), P === "action" && (_.active && Ie(c[P], "active"), _.selected && Ie(c[P], "selected")));
|
|
4261
4261
|
});
|
|
4262
|
-
}),
|
|
4263
|
-
const
|
|
4262
|
+
}), T = t.reduce((I, c) => he(I, c), T);
|
|
4263
|
+
const D = {
|
|
4264
4264
|
prefix: i,
|
|
4265
4265
|
disableCssColorScheme: o,
|
|
4266
4266
|
shouldSkipGeneratingVar: l,
|
|
4267
|
-
getSelector: Dl(
|
|
4267
|
+
getSelector: Dl(T),
|
|
4268
4268
|
enableContrastVars: a
|
|
4269
4269
|
}, {
|
|
4270
|
-
vars:
|
|
4271
|
-
generateThemeVars:
|
|
4272
|
-
generateStyleSheets:
|
|
4273
|
-
} = el(
|
|
4274
|
-
return
|
|
4275
|
-
|
|
4276
|
-
}),
|
|
4277
|
-
return Mo(
|
|
4278
|
-
},
|
|
4270
|
+
vars: q,
|
|
4271
|
+
generateThemeVars: V,
|
|
4272
|
+
generateStyleSheets: L
|
|
4273
|
+
} = el(T, D);
|
|
4274
|
+
return T.vars = q, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([I, c]) => {
|
|
4275
|
+
T[I] = c;
|
|
4276
|
+
}), T.generateThemeVars = V, T.generateStyleSheets = L, T.generateSpacing = function() {
|
|
4277
|
+
return Mo(m.spacing, Zt(this));
|
|
4278
|
+
}, T.getColorSchemeSelector = tl(u), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = l, T.unstable_sxConfig = {
|
|
4279
4279
|
...Ct,
|
|
4280
|
-
...
|
|
4281
|
-
},
|
|
4282
|
-
return
|
|
4280
|
+
...m?.unstable_sxConfig
|
|
4281
|
+
}, T.unstable_sx = function(c) {
|
|
4282
|
+
return Qe({
|
|
4283
4283
|
sx: c,
|
|
4284
4284
|
theme: this
|
|
4285
4285
|
});
|
|
4286
|
-
},
|
|
4286
|
+
}, T.toRuntimeSource = Go, T;
|
|
4287
4287
|
}
|
|
4288
4288
|
function zn(e, t, r) {
|
|
4289
4289
|
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
@@ -4316,13 +4316,13 @@ function Ho(e = {}, ...t) {
|
|
|
4316
4316
|
if (n === !1) {
|
|
4317
4317
|
if (!("colorSchemes" in e))
|
|
4318
4318
|
return Rr(e, ...t);
|
|
4319
|
-
let
|
|
4320
|
-
"palette" in e || d[l] && (d[l] !== !0 ?
|
|
4319
|
+
let m = r;
|
|
4320
|
+
"palette" in e || d[l] && (d[l] !== !0 ? m = d[l].palette : l === "dark" && (m = {
|
|
4321
4321
|
mode: "dark"
|
|
4322
4322
|
}));
|
|
4323
4323
|
const y = Rr({
|
|
4324
4324
|
...e,
|
|
4325
|
-
palette:
|
|
4325
|
+
palette: m
|
|
4326
4326
|
}, ...t);
|
|
4327
4327
|
return y.defaultColorScheme = l, y.colorSchemes = d, y.palette.mode === "light" && (y.colorSchemes.light = {
|
|
4328
4328
|
...d.light !== !0 && d.light,
|
|
@@ -4356,7 +4356,7 @@ process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
|
|
|
4356
4356
|
function Oe(e) {
|
|
4357
4357
|
return Ya(e);
|
|
4358
4358
|
}
|
|
4359
|
-
const
|
|
4359
|
+
const Ke = Da({
|
|
4360
4360
|
createStyledComponent: pe("div", {
|
|
4361
4361
|
name: "MuiGrid",
|
|
4362
4362
|
slot: "Root",
|
|
@@ -4374,7 +4374,7 @@ const He = Da({
|
|
|
4374
4374
|
}),
|
|
4375
4375
|
useTheme: Xo
|
|
4376
4376
|
});
|
|
4377
|
-
process.env.NODE_ENV !== "production" && (
|
|
4377
|
+
process.env.NODE_ENV !== "production" && (Ke.propTypes = {
|
|
4378
4378
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
4379
4379
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
4380
4380
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -4464,7 +4464,7 @@ process.env.NODE_ENV !== "production" && (He.propTypes = {
|
|
|
4464
4464
|
wrap: s.oneOf(["nowrap", "wrap-reverse", "wrap"])
|
|
4465
4465
|
});
|
|
4466
4466
|
if (process.env.NODE_ENV !== "production") {
|
|
4467
|
-
const e =
|
|
4467
|
+
const e = Ke, t = ja("Grid", e);
|
|
4468
4468
|
e.propTypes = {
|
|
4469
4469
|
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
4470
4470
|
...e.propTypes,
|
|
@@ -4513,8 +4513,8 @@ function Gl({
|
|
|
4513
4513
|
const d = Ht(e, r, o, i);
|
|
4514
4514
|
if (!d.visible)
|
|
4515
4515
|
return null;
|
|
4516
|
-
const
|
|
4517
|
-
|
|
4516
|
+
const m = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */ E(
|
|
4517
|
+
m,
|
|
4518
4518
|
{
|
|
4519
4519
|
field: {
|
|
4520
4520
|
name: e.name,
|
|
@@ -4536,12 +4536,12 @@ function Gl({
|
|
|
4536
4536
|
values: r
|
|
4537
4537
|
}
|
|
4538
4538
|
) : /* @__PURE__ */ E(
|
|
4539
|
-
|
|
4539
|
+
jr,
|
|
4540
4540
|
{
|
|
4541
4541
|
control: n.control,
|
|
4542
4542
|
name: e.name,
|
|
4543
4543
|
render: ({ field: h, fieldState: f }) => /* @__PURE__ */ E(
|
|
4544
|
-
|
|
4544
|
+
m,
|
|
4545
4545
|
{
|
|
4546
4546
|
error: !!f.error,
|
|
4547
4547
|
field: h,
|
|
@@ -4564,7 +4564,7 @@ function Gl({
|
|
|
4564
4564
|
);
|
|
4565
4565
|
if (u) {
|
|
4566
4566
|
const h = Fl(e.colSpan);
|
|
4567
|
-
return /* @__PURE__ */ E(
|
|
4567
|
+
return /* @__PURE__ */ E(Ke, { size: h, children: b }, `${String(e.name)}-${t}`);
|
|
4568
4568
|
}
|
|
4569
4569
|
return b;
|
|
4570
4570
|
}
|
|
@@ -4581,7 +4581,7 @@ const Ul = mi(Gl, (e, t) => {
|
|
|
4581
4581
|
if (e.values[i] !== t.values[i])
|
|
4582
4582
|
return !1;
|
|
4583
4583
|
return !0;
|
|
4584
|
-
}), Yl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(
|
|
4584
|
+
}), Yl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = ll({
|
|
4585
4585
|
createStyledComponent: pe("div", {
|
|
4586
4586
|
name: "MuiStack",
|
|
4587
4587
|
slot: "Root"
|
|
@@ -4757,56 +4757,61 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4757
4757
|
form: a,
|
|
4758
4758
|
schema: l
|
|
4759
4759
|
}) => {
|
|
4760
|
-
const { onChange: u, multiple: d = !1, loading:
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4760
|
+
const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, b = De(p);
|
|
4761
|
+
b.current = p;
|
|
4762
|
+
const [h, f] = Ne([]), [g, C] = Ne(!1), [k, M] = Ne(!1), [$, S] = Ne(""), [T, D] = Ne(!1), [q, V] = Ne(1), [L, I] = Ne(!0), c = p ? h : o, w = p?.pageSize ?? 20;
|
|
4763
|
+
je(() => {
|
|
4764
|
+
const z = b.current;
|
|
4765
|
+
if (!z?.fetchById || !e.value) return;
|
|
4766
|
+
const O = (Array.isArray(e.value) ? e.value : [e.value]).filter(
|
|
4767
|
+
// 使用宽松比较 (==) 以兼容 string/number 差异
|
|
4768
|
+
// eslint-disable-next-line eqeqeq
|
|
4769
|
+
(R) => !h.some((j) => j.value == R)
|
|
4765
4770
|
);
|
|
4766
|
-
|
|
4771
|
+
O.length !== 0 && O.forEach(async (R) => {
|
|
4767
4772
|
try {
|
|
4768
|
-
const
|
|
4769
|
-
|
|
4773
|
+
const j = await z.fetchById(R);
|
|
4774
|
+
j && f((W) => W.some((F) => F.value == j.value) ? W : [...W, j]);
|
|
4770
4775
|
} catch {
|
|
4771
4776
|
}
|
|
4772
4777
|
});
|
|
4773
|
-
}, [e.value,
|
|
4774
|
-
const
|
|
4775
|
-
async (
|
|
4776
|
-
if (
|
|
4777
|
-
|
|
4778
|
+
}, [e.value, h]);
|
|
4779
|
+
const x = ho(
|
|
4780
|
+
async (z, U, O = !1) => {
|
|
4781
|
+
if (p) {
|
|
4782
|
+
O || (V(1), I(!0)), O ? M(!0) : C(!0), p.onLoadingChange?.(!0);
|
|
4778
4783
|
try {
|
|
4779
|
-
const
|
|
4780
|
-
|
|
4781
|
-
const
|
|
4782
|
-
(
|
|
4784
|
+
const R = await p.fetchOptions(z, U, w);
|
|
4785
|
+
f(O ? (j) => {
|
|
4786
|
+
const W = R.data.filter(
|
|
4787
|
+
(F) => !j.some((X) => X.value === F.value)
|
|
4783
4788
|
);
|
|
4784
|
-
return [...
|
|
4785
|
-
} :
|
|
4789
|
+
return [...j, ...W];
|
|
4790
|
+
} : R.data), I(R.hasMore);
|
|
4786
4791
|
} catch {
|
|
4787
4792
|
} finally {
|
|
4788
|
-
|
|
4793
|
+
O ? M(!1) : C(!1), p.onLoadingChange?.(!1);
|
|
4789
4794
|
}
|
|
4790
4795
|
}
|
|
4791
4796
|
},
|
|
4792
|
-
[
|
|
4793
|
-
),
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
}, [
|
|
4797
|
-
const
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
},
|
|
4797
|
+
[p, w]
|
|
4798
|
+
), P = De(null);
|
|
4799
|
+
je(() => {
|
|
4800
|
+
T && p && x($, 1, !1);
|
|
4801
|
+
}, [T]);
|
|
4802
|
+
const _ = (z, U, O) => {
|
|
4803
|
+
S(U), p && (P.current && clearTimeout(P.current), (O === "input" || O === "clear") && (P.current = setTimeout(() => {
|
|
4804
|
+
x(U, 1, !1);
|
|
4805
|
+
}, p.debounceTimeout ?? 500)));
|
|
4801
4806
|
};
|
|
4802
|
-
|
|
4803
|
-
|
|
4807
|
+
je(() => () => {
|
|
4808
|
+
P.current && clearTimeout(P.current);
|
|
4804
4809
|
}, []);
|
|
4805
|
-
const
|
|
4806
|
-
const
|
|
4807
|
-
if (!
|
|
4808
|
-
const
|
|
4809
|
-
|
|
4810
|
+
const G = (z) => {
|
|
4811
|
+
const U = z.currentTarget;
|
|
4812
|
+
if (!g && !k && L && U.scrollTop + U.clientHeight >= U.scrollHeight - 20) {
|
|
4813
|
+
const O = q + 1;
|
|
4814
|
+
V(O), x($, O, !0);
|
|
4810
4815
|
}
|
|
4811
4816
|
};
|
|
4812
4817
|
return /* @__PURE__ */ E(
|
|
@@ -4823,32 +4828,32 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4823
4828
|
{
|
|
4824
4829
|
multiple: d,
|
|
4825
4830
|
disableCloseOnSelect: d,
|
|
4826
|
-
open:
|
|
4827
|
-
onOpen: () =>
|
|
4828
|
-
onClose: () =>
|
|
4829
|
-
inputValue:
|
|
4830
|
-
onInputChange:
|
|
4831
|
-
options:
|
|
4832
|
-
loading:
|
|
4833
|
-
filterOptions:
|
|
4834
|
-
value: d ?
|
|
4835
|
-
onChange: (
|
|
4836
|
-
const
|
|
4837
|
-
e.onChange(
|
|
4831
|
+
open: T,
|
|
4832
|
+
onOpen: () => D(!0),
|
|
4833
|
+
onClose: () => D(!1),
|
|
4834
|
+
inputValue: p ? $ : void 0,
|
|
4835
|
+
onInputChange: p ? _ : void 0,
|
|
4836
|
+
options: c,
|
|
4837
|
+
loading: g || m,
|
|
4838
|
+
filterOptions: p ? (z) => z : void 0,
|
|
4839
|
+
value: d ? c.filter((z) => (e.value ?? []).includes(z.value)) : c.find((z) => z.value === e.value) ?? null,
|
|
4840
|
+
onChange: (z, U) => {
|
|
4841
|
+
const O = d ? U.map((R) => R.value) : U?.value ?? null;
|
|
4842
|
+
e.onChange(O), typeof u == "function" && u(z, U), a?.trigger(e.name);
|
|
4838
4843
|
},
|
|
4839
4844
|
slots: {
|
|
4840
|
-
listbox:
|
|
4845
|
+
listbox: p ? Xl : void 0
|
|
4841
4846
|
},
|
|
4842
4847
|
slotProps: {
|
|
4843
4848
|
listbox: {
|
|
4844
|
-
onScroll:
|
|
4849
|
+
onScroll: p ? G : void 0,
|
|
4845
4850
|
style: { maxHeight: 260 },
|
|
4846
4851
|
// 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
|
|
4847
|
-
...
|
|
4848
|
-
fetchingMore:
|
|
4849
|
-
hasMore:
|
|
4850
|
-
showNoMore:
|
|
4851
|
-
empty:
|
|
4852
|
+
...p ? {
|
|
4853
|
+
fetchingMore: k,
|
|
4854
|
+
hasMore: L,
|
|
4855
|
+
showNoMore: h.length > 0,
|
|
4856
|
+
empty: h.length === 0 && !g && !k,
|
|
4852
4857
|
error: !1
|
|
4853
4858
|
} : {}
|
|
4854
4859
|
},
|
|
@@ -4870,14 +4875,14 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4870
4875
|
}
|
|
4871
4876
|
}
|
|
4872
4877
|
},
|
|
4873
|
-
getOptionLabel: (
|
|
4874
|
-
isOptionEqualToValue: (
|
|
4878
|
+
getOptionLabel: (z) => z?.label ?? "",
|
|
4879
|
+
isOptionEqualToValue: (z, U) => z?.value === U?.value,
|
|
4875
4880
|
size: "small",
|
|
4876
4881
|
disabled: y?.disabled,
|
|
4877
|
-
renderInput: (
|
|
4882
|
+
renderInput: (z) => /* @__PURE__ */ E(
|
|
4878
4883
|
lt,
|
|
4879
4884
|
{
|
|
4880
|
-
...
|
|
4885
|
+
...z,
|
|
4881
4886
|
error: r,
|
|
4882
4887
|
fullWidth: !0,
|
|
4883
4888
|
helperText: n,
|
|
@@ -4890,10 +4895,10 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4890
4895
|
sx: ke,
|
|
4891
4896
|
slotProps: {
|
|
4892
4897
|
input: {
|
|
4893
|
-
...
|
|
4898
|
+
...z.InputProps,
|
|
4894
4899
|
endAdornment: /* @__PURE__ */ fe(Dr, { children: [
|
|
4895
|
-
|
|
4896
|
-
|
|
4900
|
+
g || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
|
|
4901
|
+
z.InputProps.endAdornment
|
|
4897
4902
|
] })
|
|
4898
4903
|
}
|
|
4899
4904
|
}
|
|
@@ -4921,7 +4926,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4921
4926
|
e
|
|
4922
4927
|
] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
|
|
4923
4928
|
/* @__PURE__ */ E(
|
|
4924
|
-
|
|
4929
|
+
Vr,
|
|
4925
4930
|
{
|
|
4926
4931
|
control: /* @__PURE__ */ E(
|
|
4927
4932
|
wi,
|
|
@@ -5157,9 +5162,9 @@ const Zl = (e) => {
|
|
|
5157
5162
|
component: l = "svg",
|
|
5158
5163
|
fontSize: u = "medium",
|
|
5159
5164
|
htmlColor: d,
|
|
5160
|
-
inheritViewBox:
|
|
5165
|
+
inheritViewBox: m = !1,
|
|
5161
5166
|
titleAccess: y,
|
|
5162
|
-
viewBox:
|
|
5167
|
+
viewBox: p = "0 0 24 24",
|
|
5163
5168
|
...b
|
|
5164
5169
|
} = n, h = /* @__PURE__ */ B.isValidElement(o) && o.type === "svg", f = {
|
|
5165
5170
|
...n,
|
|
@@ -5167,11 +5172,11 @@ const Zl = (e) => {
|
|
|
5167
5172
|
component: l,
|
|
5168
5173
|
fontSize: u,
|
|
5169
5174
|
instanceFontSize: t.fontSize,
|
|
5170
|
-
inheritViewBox:
|
|
5171
|
-
viewBox:
|
|
5175
|
+
inheritViewBox: m,
|
|
5176
|
+
viewBox: p,
|
|
5172
5177
|
hasSvgAsChild: h
|
|
5173
5178
|
}, g = {};
|
|
5174
|
-
|
|
5179
|
+
m || (g.viewBox = p);
|
|
5175
5180
|
const C = Zl(f);
|
|
5176
5181
|
return /* @__PURE__ */ fe(ec, {
|
|
5177
5182
|
as: l,
|
|
@@ -5312,7 +5317,7 @@ const tc = Kr(/* @__PURE__ */ E("path", {
|
|
|
5312
5317
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
|
|
5313
5318
|
}), "ContentCopy"), nc = Kr(/* @__PURE__ */ E("path", {
|
|
5314
5319
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
5315
|
-
}), "Delete"), oc = Pe("MuiBox", ["root"]), ic = Ho(), Gt =
|
|
5320
|
+
}), "Delete"), oc = Pe("MuiBox", ["root"]), ic = Ho(), Gt = Va({
|
|
5316
5321
|
themeId: Ur,
|
|
5317
5322
|
defaultTheme: ic,
|
|
5318
5323
|
defaultClassName: oc.root,
|
|
@@ -5462,8 +5467,8 @@ function Xr(e, t) {
|
|
|
5462
5467
|
}
|
|
5463
5468
|
function hc(e, t) {
|
|
5464
5469
|
e = e || {}, t = t || {};
|
|
5465
|
-
function r(
|
|
5466
|
-
return
|
|
5470
|
+
function r(m) {
|
|
5471
|
+
return m in t ? t[m] : e[m];
|
|
5467
5472
|
}
|
|
5468
5473
|
var n = /* @__PURE__ */ Object.create(null), o = [];
|
|
5469
5474
|
for (var i in e)
|
|
@@ -5481,7 +5486,7 @@ function hc(e, t) {
|
|
|
5481
5486
|
l[o[a]] = r(o[a]);
|
|
5482
5487
|
return l;
|
|
5483
5488
|
}
|
|
5484
|
-
function
|
|
5489
|
+
function Ye(e, t, r) {
|
|
5485
5490
|
return r[t] != null ? r[t] : e.props[t];
|
|
5486
5491
|
}
|
|
5487
5492
|
function gc(e, t) {
|
|
@@ -5489,9 +5494,9 @@ function gc(e, t) {
|
|
|
5489
5494
|
return Nt(r, {
|
|
5490
5495
|
onExited: t.bind(null, r),
|
|
5491
5496
|
in: !0,
|
|
5492
|
-
appear:
|
|
5493
|
-
enter:
|
|
5494
|
-
exit:
|
|
5497
|
+
appear: Ye(r, "appear", e),
|
|
5498
|
+
enter: Ye(r, "enter", e),
|
|
5499
|
+
exit: Ye(r, "exit", e)
|
|
5495
5500
|
});
|
|
5496
5501
|
});
|
|
5497
5502
|
}
|
|
@@ -5500,19 +5505,19 @@ function yc(e, t, r) {
|
|
|
5500
5505
|
return Object.keys(o).forEach(function(i) {
|
|
5501
5506
|
var a = o[i];
|
|
5502
5507
|
if (_t(a)) {
|
|
5503
|
-
var l = i in t, u = i in n, d = t[i],
|
|
5504
|
-
u && (!l ||
|
|
5508
|
+
var l = i in t, u = i in n, d = t[i], m = _t(d) && !d.props.in;
|
|
5509
|
+
u && (!l || m) ? o[i] = Nt(a, {
|
|
5505
5510
|
onExited: r.bind(null, a),
|
|
5506
5511
|
in: !0,
|
|
5507
|
-
exit:
|
|
5508
|
-
enter:
|
|
5509
|
-
}) : !u && l && !
|
|
5512
|
+
exit: Ye(a, "exit", e),
|
|
5513
|
+
enter: Ye(a, "enter", e)
|
|
5514
|
+
}) : !u && l && !m ? o[i] = Nt(a, {
|
|
5510
5515
|
in: !1
|
|
5511
5516
|
}) : u && l && _t(d) && (o[i] = Nt(a, {
|
|
5512
5517
|
onExited: r.bind(null, a),
|
|
5513
5518
|
in: d.props.in,
|
|
5514
|
-
exit:
|
|
5515
|
-
enter:
|
|
5519
|
+
exit: Ye(a, "exit", e),
|
|
5520
|
+
enter: Ye(a, "enter", e)
|
|
5516
5521
|
}));
|
|
5517
5522
|
}
|
|
5518
5523
|
}), o;
|
|
@@ -5663,13 +5668,13 @@ function ei(e) {
|
|
|
5663
5668
|
in: l,
|
|
5664
5669
|
onExited: u,
|
|
5665
5670
|
timeout: d
|
|
5666
|
-
} = e, [
|
|
5671
|
+
} = e, [m, y] = B.useState(!1), p = ue(t, r.ripple, r.rippleVisible, n && r.ripplePulsate), b = {
|
|
5667
5672
|
width: a,
|
|
5668
5673
|
height: a,
|
|
5669
5674
|
top: -(a / 2) + i,
|
|
5670
5675
|
left: -(a / 2) + o
|
|
5671
|
-
}, h = ue(r.child,
|
|
5672
|
-
return !l && !
|
|
5676
|
+
}, h = ue(r.child, m && r.childLeaving, n && r.childPulsate);
|
|
5677
|
+
return !l && !m && y(!0), B.useEffect(() => {
|
|
5673
5678
|
if (!l && u != null) {
|
|
5674
5679
|
const f = setTimeout(u, d);
|
|
5675
5680
|
return () => {
|
|
@@ -5677,7 +5682,7 @@ function ei(e) {
|
|
|
5677
5682
|
};
|
|
5678
5683
|
}
|
|
5679
5684
|
}, [u, l, d]), /* @__PURE__ */ E("span", {
|
|
5680
|
-
className:
|
|
5685
|
+
className: p,
|
|
5681
5686
|
style: b,
|
|
5682
5687
|
children: /* @__PURE__ */ E("span", {
|
|
5683
5688
|
className: h
|
|
@@ -5825,19 +5830,19 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5825
5830
|
classes: i = {},
|
|
5826
5831
|
className: a,
|
|
5827
5832
|
...l
|
|
5828
|
-
} = n, [u, d] = B.useState([]),
|
|
5833
|
+
} = n, [u, d] = B.useState([]), m = B.useRef(0), y = B.useRef(null);
|
|
5829
5834
|
B.useEffect(() => {
|
|
5830
5835
|
y.current && (y.current(), y.current = null);
|
|
5831
5836
|
}, [u]);
|
|
5832
|
-
const
|
|
5837
|
+
const p = B.useRef(!1), b = Cc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
|
|
5833
5838
|
const {
|
|
5834
5839
|
pulsate: S,
|
|
5835
|
-
rippleX:
|
|
5836
|
-
rippleY:
|
|
5837
|
-
rippleSize:
|
|
5838
|
-
cb:
|
|
5840
|
+
rippleX: T,
|
|
5841
|
+
rippleY: D,
|
|
5842
|
+
rippleSize: q,
|
|
5843
|
+
cb: V
|
|
5839
5844
|
} = $;
|
|
5840
|
-
d((
|
|
5845
|
+
d((L) => [...L, /* @__PURE__ */ E(Rc, {
|
|
5841
5846
|
classes: {
|
|
5842
5847
|
ripple: ue(i.ripple, be.ripple),
|
|
5843
5848
|
rippleVisible: ue(i.rippleVisible, be.rippleVisible),
|
|
@@ -5848,80 +5853,80 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5848
5853
|
},
|
|
5849
5854
|
timeout: Ir,
|
|
5850
5855
|
pulsate: S,
|
|
5851
|
-
rippleX:
|
|
5852
|
-
rippleY:
|
|
5853
|
-
rippleSize:
|
|
5854
|
-
},
|
|
5855
|
-
}, [i]), C = B.useCallback(($ = {}, S = {},
|
|
5856
|
+
rippleX: T,
|
|
5857
|
+
rippleY: D,
|
|
5858
|
+
rippleSize: q
|
|
5859
|
+
}, m.current)]), m.current += 1, y.current = V;
|
|
5860
|
+
}, [i]), C = B.useCallback(($ = {}, S = {}, T = () => {
|
|
5856
5861
|
}) => {
|
|
5857
5862
|
const {
|
|
5858
|
-
pulsate:
|
|
5859
|
-
center:
|
|
5860
|
-
fakeElement:
|
|
5863
|
+
pulsate: D = !1,
|
|
5864
|
+
center: q = o || S.pulsate,
|
|
5865
|
+
fakeElement: V = !1
|
|
5861
5866
|
// For test purposes
|
|
5862
5867
|
} = S;
|
|
5863
|
-
if ($?.type === "mousedown" &&
|
|
5864
|
-
|
|
5868
|
+
if ($?.type === "mousedown" && p.current) {
|
|
5869
|
+
p.current = !1;
|
|
5865
5870
|
return;
|
|
5866
5871
|
}
|
|
5867
|
-
$?.type === "touchstart" && (
|
|
5868
|
-
const
|
|
5872
|
+
$?.type === "touchstart" && (p.current = !0);
|
|
5873
|
+
const L = V ? null : f.current, I = L ? L.getBoundingClientRect() : {
|
|
5869
5874
|
width: 0,
|
|
5870
5875
|
height: 0,
|
|
5871
5876
|
left: 0,
|
|
5872
5877
|
top: 0
|
|
5873
5878
|
};
|
|
5874
|
-
let c,
|
|
5875
|
-
if (
|
|
5876
|
-
c = Math.round(
|
|
5879
|
+
let c, w, x;
|
|
5880
|
+
if (q || $ === void 0 || $.clientX === 0 && $.clientY === 0 || !$.clientX && !$.touches)
|
|
5881
|
+
c = Math.round(I.width / 2), w = Math.round(I.height / 2);
|
|
5877
5882
|
else {
|
|
5878
5883
|
const {
|
|
5879
|
-
clientX:
|
|
5880
|
-
clientY:
|
|
5884
|
+
clientX: P,
|
|
5885
|
+
clientY: _
|
|
5881
5886
|
} = $.touches && $.touches.length > 0 ? $.touches[0] : $;
|
|
5882
|
-
c = Math.round(
|
|
5887
|
+
c = Math.round(P - I.left), w = Math.round(_ - I.top);
|
|
5883
5888
|
}
|
|
5884
|
-
if (
|
|
5885
|
-
x = Math.sqrt((2 *
|
|
5889
|
+
if (q)
|
|
5890
|
+
x = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), x % 2 === 0 && (x += 1);
|
|
5886
5891
|
else {
|
|
5887
|
-
const
|
|
5888
|
-
x = Math.sqrt(
|
|
5892
|
+
const P = Math.max(Math.abs((L ? L.clientWidth : 0) - c), c) * 2 + 2, _ = Math.max(Math.abs((L ? L.clientHeight : 0) - w), w) * 2 + 2;
|
|
5893
|
+
x = Math.sqrt(P ** 2 + _ ** 2);
|
|
5889
5894
|
}
|
|
5890
5895
|
$?.touches ? h.current === null && (h.current = () => {
|
|
5891
5896
|
g({
|
|
5892
|
-
pulsate:
|
|
5897
|
+
pulsate: D,
|
|
5893
5898
|
rippleX: c,
|
|
5894
|
-
rippleY:
|
|
5899
|
+
rippleY: w,
|
|
5895
5900
|
rippleSize: x,
|
|
5896
|
-
cb:
|
|
5901
|
+
cb: T
|
|
5897
5902
|
});
|
|
5898
5903
|
}, b.start(Tc, () => {
|
|
5899
5904
|
h.current && (h.current(), h.current = null);
|
|
5900
5905
|
})) : g({
|
|
5901
|
-
pulsate:
|
|
5906
|
+
pulsate: D,
|
|
5902
5907
|
rippleX: c,
|
|
5903
|
-
rippleY:
|
|
5908
|
+
rippleY: w,
|
|
5904
5909
|
rippleSize: x,
|
|
5905
|
-
cb:
|
|
5910
|
+
cb: T
|
|
5906
5911
|
});
|
|
5907
5912
|
}, [o, g, b]), k = B.useCallback(() => {
|
|
5908
5913
|
C({}, {
|
|
5909
5914
|
pulsate: !0
|
|
5910
5915
|
});
|
|
5911
|
-
}, [C]),
|
|
5916
|
+
}, [C]), M = B.useCallback(($, S) => {
|
|
5912
5917
|
if (b.clear(), $?.type === "touchend" && h.current) {
|
|
5913
5918
|
h.current(), h.current = null, b.start(0, () => {
|
|
5914
|
-
|
|
5919
|
+
M($, S);
|
|
5915
5920
|
});
|
|
5916
5921
|
return;
|
|
5917
5922
|
}
|
|
5918
|
-
h.current = null, d((
|
|
5923
|
+
h.current = null, d((T) => T.length > 0 ? T.slice(1) : T), y.current = S;
|
|
5919
5924
|
}, [b]);
|
|
5920
5925
|
return B.useImperativeHandle(r, () => ({
|
|
5921
5926
|
pulsate: k,
|
|
5922
5927
|
start: C,
|
|
5923
|
-
stop:
|
|
5924
|
-
}), [k, C,
|
|
5928
|
+
stop: M
|
|
5929
|
+
}), [k, C, M]), /* @__PURE__ */ E($c, {
|
|
5925
5930
|
className: ue(be.root, i.root, a),
|
|
5926
5931
|
ref: f,
|
|
5927
5932
|
...l,
|
|
@@ -6013,88 +6018,88 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
|
|
|
6013
6018
|
className: l,
|
|
6014
6019
|
component: u = "button",
|
|
6015
6020
|
disabled: d = !1,
|
|
6016
|
-
disableRipple:
|
|
6021
|
+
disableRipple: m = !1,
|
|
6017
6022
|
disableTouchRipple: y = !1,
|
|
6018
|
-
focusRipple:
|
|
6023
|
+
focusRipple: p = !1,
|
|
6019
6024
|
focusVisibleClassName: b,
|
|
6020
6025
|
LinkComponent: h = "a",
|
|
6021
6026
|
onBlur: f,
|
|
6022
6027
|
onClick: g,
|
|
6023
6028
|
onContextMenu: C,
|
|
6024
6029
|
onDragLeave: k,
|
|
6025
|
-
onFocus:
|
|
6030
|
+
onFocus: M,
|
|
6026
6031
|
onFocusVisible: $,
|
|
6027
6032
|
onKeyDown: S,
|
|
6028
|
-
onKeyUp:
|
|
6029
|
-
onMouseDown:
|
|
6030
|
-
onMouseLeave:
|
|
6031
|
-
onMouseUp:
|
|
6032
|
-
onTouchEnd:
|
|
6033
|
-
onTouchMove:
|
|
6033
|
+
onKeyUp: T,
|
|
6034
|
+
onMouseDown: D,
|
|
6035
|
+
onMouseLeave: q,
|
|
6036
|
+
onMouseUp: V,
|
|
6037
|
+
onTouchEnd: L,
|
|
6038
|
+
onTouchMove: I,
|
|
6034
6039
|
onTouchStart: c,
|
|
6035
|
-
tabIndex:
|
|
6040
|
+
tabIndex: w = 0,
|
|
6036
6041
|
TouchRippleProps: x,
|
|
6037
|
-
touchRippleRef:
|
|
6038
|
-
type:
|
|
6039
|
-
...
|
|
6040
|
-
} = n,
|
|
6041
|
-
d && R &&
|
|
6042
|
+
touchRippleRef: P,
|
|
6043
|
+
type: _,
|
|
6044
|
+
...G
|
|
6045
|
+
} = n, z = B.useRef(null), U = uc(), O = Yn(U.ref, P), [R, j] = B.useState(!1);
|
|
6046
|
+
d && R && j(!1), B.useImperativeHandle(o, () => ({
|
|
6042
6047
|
focusVisible: () => {
|
|
6043
|
-
|
|
6048
|
+
j(!0), z.current.focus();
|
|
6044
6049
|
}
|
|
6045
6050
|
}), []);
|
|
6046
|
-
const
|
|
6051
|
+
const W = U.shouldMount && !m && !d;
|
|
6047
6052
|
B.useEffect(() => {
|
|
6048
|
-
R &&
|
|
6049
|
-
}, [
|
|
6050
|
-
const
|
|
6051
|
-
R && Y.preventDefault(),
|
|
6052
|
-
}, y), ee = Me(U, "start", c, y), J = Me(U, "stop",
|
|
6053
|
-
Hn(Y.target) ||
|
|
6053
|
+
R && p && !m && U.pulsate();
|
|
6054
|
+
}, [m, p, R, U]);
|
|
6055
|
+
const F = Me(U, "start", D, y), X = Me(U, "stop", C, y), H = Me(U, "stop", k, y), K = Me(U, "stop", V, y), Q = Me(U, "stop", (Y) => {
|
|
6056
|
+
R && Y.preventDefault(), q && q(Y);
|
|
6057
|
+
}, y), ee = Me(U, "start", c, y), J = Me(U, "stop", L, y), me = Me(U, "stop", I, y), N = Me(U, "stop", (Y) => {
|
|
6058
|
+
Hn(Y.target) || j(!1), f && f(Y);
|
|
6054
6059
|
}, !1), ye = Dt((Y) => {
|
|
6055
|
-
|
|
6056
|
-
}),
|
|
6057
|
-
const Y =
|
|
6060
|
+
z.current || (z.current = Y.currentTarget), Hn(Y.target) && (j(!0), $ && $(Y)), M && M(Y);
|
|
6061
|
+
}), _e = () => {
|
|
6062
|
+
const Y = z.current;
|
|
6058
6063
|
return u && u !== "button" && !(Y.tagName === "A" && Y.href);
|
|
6059
6064
|
}, wt = Dt((Y) => {
|
|
6060
|
-
|
|
6065
|
+
p && !Y.repeat && R && Y.key === " " && U.stop(Y, () => {
|
|
6061
6066
|
U.start(Y);
|
|
6062
|
-
}), Y.target === Y.currentTarget &&
|
|
6067
|
+
}), Y.target === Y.currentTarget && _e() && Y.key === " " && Y.preventDefault(), S && S(Y), Y.target === Y.currentTarget && _e() && Y.key === "Enter" && !d && (Y.preventDefault(), g && g(Y));
|
|
6063
6068
|
}), fi = Dt((Y) => {
|
|
6064
|
-
|
|
6069
|
+
p && Y.key === " " && R && !Y.defaultPrevented && U.stop(Y, () => {
|
|
6065
6070
|
U.pulsate(Y);
|
|
6066
|
-
}),
|
|
6071
|
+
}), T && T(Y), g && Y.target === Y.currentTarget && _e() && Y.key === " " && !Y.defaultPrevented && g(Y);
|
|
6067
6072
|
});
|
|
6068
6073
|
let Et = u;
|
|
6069
|
-
Et === "button" && (
|
|
6074
|
+
Et === "button" && (G.href || G.to) && (Et = h);
|
|
6070
6075
|
const ut = {};
|
|
6071
6076
|
if (Et === "button") {
|
|
6072
|
-
const Y = !!
|
|
6073
|
-
ut.type =
|
|
6077
|
+
const Y = !!G.formAction;
|
|
6078
|
+
ut.type = _ === void 0 && !Y ? "button" : _, ut.disabled = d;
|
|
6074
6079
|
} else
|
|
6075
|
-
!
|
|
6076
|
-
const di = Yn(r,
|
|
6080
|
+
!G.href && !G.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
|
|
6081
|
+
const di = Yn(r, z), rn = {
|
|
6077
6082
|
...n,
|
|
6078
6083
|
centerRipple: i,
|
|
6079
6084
|
component: u,
|
|
6080
6085
|
disabled: d,
|
|
6081
|
-
disableRipple:
|
|
6086
|
+
disableRipple: m,
|
|
6082
6087
|
disableTouchRipple: y,
|
|
6083
|
-
focusRipple:
|
|
6084
|
-
tabIndex:
|
|
6088
|
+
focusRipple: p,
|
|
6089
|
+
tabIndex: w,
|
|
6085
6090
|
focusVisible: R
|
|
6086
6091
|
}, pi = Pc(rn);
|
|
6087
6092
|
return /* @__PURE__ */ fe(Ic, {
|
|
6088
6093
|
as: Et,
|
|
6089
6094
|
className: ue(pi.root, l),
|
|
6090
6095
|
ownerState: rn,
|
|
6091
|
-
onBlur:
|
|
6096
|
+
onBlur: N,
|
|
6092
6097
|
onClick: g,
|
|
6093
6098
|
onContextMenu: X,
|
|
6094
6099
|
onFocus: ye,
|
|
6095
6100
|
onKeyDown: wt,
|
|
6096
6101
|
onKeyUp: fi,
|
|
6097
|
-
onMouseDown:
|
|
6102
|
+
onMouseDown: F,
|
|
6098
6103
|
onMouseLeave: Q,
|
|
6099
6104
|
onMouseUp: K,
|
|
6100
6105
|
onDragLeave: H,
|
|
@@ -6102,11 +6107,11 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
|
|
|
6102
6107
|
onTouchMove: me,
|
|
6103
6108
|
onTouchStart: ee,
|
|
6104
6109
|
ref: di,
|
|
6105
|
-
tabIndex: d ? -1 :
|
|
6106
|
-
type:
|
|
6110
|
+
tabIndex: d ? -1 : w,
|
|
6111
|
+
type: _,
|
|
6107
6112
|
...ut,
|
|
6108
|
-
...
|
|
6109
|
-
children: [a,
|
|
6113
|
+
...G,
|
|
6114
|
+
children: [a, W ? /* @__PURE__ */ E(ti, {
|
|
6110
6115
|
ref: O,
|
|
6111
6116
|
center: i,
|
|
6112
6117
|
...x
|
|
@@ -6323,7 +6328,7 @@ const Te = 44, Mr = St`
|
|
|
6323
6328
|
animation: ${Mr} 1.4s linear infinite;
|
|
6324
6329
|
` : null, Dc = typeof _r != "string" ? go`
|
|
6325
6330
|
animation: ${_r} 1.4s ease-in-out infinite;
|
|
6326
|
-
` : null,
|
|
6331
|
+
` : null, jc = (e) => {
|
|
6327
6332
|
const {
|
|
6328
6333
|
classes: t,
|
|
6329
6334
|
variant: r,
|
|
@@ -6336,7 +6341,7 @@ const Te = 44, Mr = St`
|
|
|
6336
6341
|
circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
|
|
6337
6342
|
};
|
|
6338
6343
|
return Ae(i, Nc, t);
|
|
6339
|
-
},
|
|
6344
|
+
}, Vc = pe("span", {
|
|
6340
6345
|
name: "MuiCircularProgress",
|
|
6341
6346
|
slot: "Root",
|
|
6342
6347
|
overridesResolver: (e, t) => {
|
|
@@ -6435,25 +6440,25 @@ const Te = 44, Mr = St`
|
|
|
6435
6440
|
enableTrackSlot: l = !1,
|
|
6436
6441
|
size: u = 40,
|
|
6437
6442
|
style: d,
|
|
6438
|
-
thickness:
|
|
6443
|
+
thickness: m = 3.6,
|
|
6439
6444
|
value: y = 0,
|
|
6440
|
-
variant:
|
|
6445
|
+
variant: p = "indeterminate",
|
|
6441
6446
|
...b
|
|
6442
6447
|
} = n, h = {
|
|
6443
6448
|
...n,
|
|
6444
6449
|
color: i,
|
|
6445
6450
|
disableShrink: a,
|
|
6446
6451
|
size: u,
|
|
6447
|
-
thickness:
|
|
6452
|
+
thickness: m,
|
|
6448
6453
|
value: y,
|
|
6449
|
-
variant:
|
|
6454
|
+
variant: p,
|
|
6450
6455
|
enableTrackSlot: l
|
|
6451
|
-
}, f =
|
|
6452
|
-
if (
|
|
6453
|
-
const
|
|
6454
|
-
g.strokeDasharray =
|
|
6456
|
+
}, f = jc(h), g = {}, C = {}, k = {};
|
|
6457
|
+
if (p === "determinate") {
|
|
6458
|
+
const M = 2 * Math.PI * ((Te - m) / 2);
|
|
6459
|
+
g.strokeDasharray = M.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * M).toFixed(3)}px`, C.transform = "rotate(-90deg)";
|
|
6455
6460
|
}
|
|
6456
|
-
return /* @__PURE__ */ E(
|
|
6461
|
+
return /* @__PURE__ */ E(Vc, {
|
|
6457
6462
|
className: ue(f.root, o),
|
|
6458
6463
|
style: {
|
|
6459
6464
|
width: u,
|
|
@@ -6475,9 +6480,9 @@ const Te = 44, Mr = St`
|
|
|
6475
6480
|
ownerState: h,
|
|
6476
6481
|
cx: Te,
|
|
6477
6482
|
cy: Te,
|
|
6478
|
-
r: (Te -
|
|
6483
|
+
r: (Te - m) / 2,
|
|
6479
6484
|
fill: "none",
|
|
6480
|
-
strokeWidth:
|
|
6485
|
+
strokeWidth: m,
|
|
6481
6486
|
"aria-hidden": "true"
|
|
6482
6487
|
}) : null, /* @__PURE__ */ E(Wc, {
|
|
6483
6488
|
className: f.circle,
|
|
@@ -6485,9 +6490,9 @@ const Te = 44, Mr = St`
|
|
|
6485
6490
|
ownerState: h,
|
|
6486
6491
|
cx: Te,
|
|
6487
6492
|
cy: Te,
|
|
6488
|
-
r: (Te -
|
|
6493
|
+
r: (Te - m) / 2,
|
|
6489
6494
|
fill: "none",
|
|
6490
|
-
strokeWidth:
|
|
6495
|
+
strokeWidth: m
|
|
6491
6496
|
})]
|
|
6492
6497
|
})
|
|
6493
6498
|
});
|
|
@@ -6560,7 +6565,7 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
|
|
|
6560
6565
|
function Fc(e) {
|
|
6561
6566
|
return xe("MuiButton", e);
|
|
6562
6567
|
}
|
|
6563
|
-
const
|
|
6568
|
+
const qe = Pe("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), ri = /* @__PURE__ */ B.createContext({});
|
|
6564
6569
|
process.env.NODE_ENV !== "production" && (ri.displayName = "ButtonGroupContext");
|
|
6565
6570
|
const ni = /* @__PURE__ */ B.createContext(void 0);
|
|
6566
6571
|
process.env.NODE_ENV !== "production" && (ni.displayName = "ButtonGroupButtonContext");
|
|
@@ -6580,11 +6585,11 @@ const qc = (e) => {
|
|
|
6580
6585
|
endIcon: ["icon", "endIcon", `iconSize${Z(o)}`],
|
|
6581
6586
|
loadingIndicator: ["loadingIndicator"],
|
|
6582
6587
|
loadingWrapper: ["loadingWrapper"]
|
|
6583
|
-
},
|
|
6588
|
+
}, m = Ae(d, Fc, u);
|
|
6584
6589
|
return {
|
|
6585
6590
|
...u,
|
|
6586
6591
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
6587
|
-
...
|
|
6592
|
+
...m
|
|
6588
6593
|
};
|
|
6589
6594
|
}, oi = [{
|
|
6590
6595
|
props: {
|
|
@@ -6639,7 +6644,7 @@ const qc = (e) => {
|
|
|
6639
6644
|
"&:hover": {
|
|
6640
6645
|
textDecoration: "none"
|
|
6641
6646
|
},
|
|
6642
|
-
[`&.${
|
|
6647
|
+
[`&.${qe.disabled}`]: {
|
|
6643
6648
|
color: (e.vars || e).palette.action.disabled
|
|
6644
6649
|
},
|
|
6645
6650
|
variants: [{
|
|
@@ -6660,10 +6665,10 @@ const qc = (e) => {
|
|
|
6660
6665
|
"&:active": {
|
|
6661
6666
|
boxShadow: (e.vars || e).shadows[8]
|
|
6662
6667
|
},
|
|
6663
|
-
[`&.${
|
|
6668
|
+
[`&.${qe.focusVisible}`]: {
|
|
6664
6669
|
boxShadow: (e.vars || e).shadows[6]
|
|
6665
6670
|
},
|
|
6666
|
-
[`&.${
|
|
6671
|
+
[`&.${qe.disabled}`]: {
|
|
6667
6672
|
color: (e.vars || e).palette.action.disabled,
|
|
6668
6673
|
boxShadow: (e.vars || e).shadows[0],
|
|
6669
6674
|
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
@@ -6679,7 +6684,7 @@ const qc = (e) => {
|
|
|
6679
6684
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
6680
6685
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
6681
6686
|
color: "var(--variant-outlinedColor)",
|
|
6682
|
-
[`&.${
|
|
6687
|
+
[`&.${qe.disabled}`]: {
|
|
6683
6688
|
border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
|
|
6684
6689
|
}
|
|
6685
6690
|
}
|
|
@@ -6790,13 +6795,13 @@ const qc = (e) => {
|
|
|
6790
6795
|
"&:hover": {
|
|
6791
6796
|
boxShadow: "none"
|
|
6792
6797
|
},
|
|
6793
|
-
[`&.${
|
|
6798
|
+
[`&.${qe.focusVisible}`]: {
|
|
6794
6799
|
boxShadow: "none"
|
|
6795
6800
|
},
|
|
6796
6801
|
"&:active": {
|
|
6797
6802
|
boxShadow: "none"
|
|
6798
6803
|
},
|
|
6799
|
-
[`&.${
|
|
6804
|
+
[`&.${qe.disabled}`]: {
|
|
6800
6805
|
boxShadow: "none"
|
|
6801
6806
|
}
|
|
6802
6807
|
}
|
|
@@ -6815,7 +6820,7 @@ const qc = (e) => {
|
|
|
6815
6820
|
transition: e.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
6816
6821
|
duration: e.transitions.duration.short
|
|
6817
6822
|
}),
|
|
6818
|
-
[`&.${
|
|
6823
|
+
[`&.${qe.loading}`]: {
|
|
6819
6824
|
color: "transparent"
|
|
6820
6825
|
}
|
|
6821
6826
|
}
|
|
@@ -7012,24 +7017,24 @@ const qc = (e) => {
|
|
|
7012
7017
|
children: l,
|
|
7013
7018
|
color: u = "primary",
|
|
7014
7019
|
component: d = "button",
|
|
7015
|
-
className:
|
|
7020
|
+
className: m,
|
|
7016
7021
|
disabled: y = !1,
|
|
7017
|
-
disableElevation:
|
|
7022
|
+
disableElevation: p = !1,
|
|
7018
7023
|
disableFocusRipple: b = !1,
|
|
7019
7024
|
endIcon: h,
|
|
7020
7025
|
focusVisibleClassName: f,
|
|
7021
7026
|
fullWidth: g = !1,
|
|
7022
7027
|
id: C,
|
|
7023
7028
|
loading: k = null,
|
|
7024
|
-
loadingIndicator:
|
|
7029
|
+
loadingIndicator: M,
|
|
7025
7030
|
loadingPosition: $ = "center",
|
|
7026
7031
|
size: S = "medium",
|
|
7027
|
-
startIcon:
|
|
7028
|
-
type:
|
|
7029
|
-
variant:
|
|
7030
|
-
...
|
|
7031
|
-
} = a,
|
|
7032
|
-
"aria-labelledby":
|
|
7032
|
+
startIcon: T,
|
|
7033
|
+
type: D,
|
|
7034
|
+
variant: q = "text",
|
|
7035
|
+
...V
|
|
7036
|
+
} = a, L = Wo(C), I = M ?? /* @__PURE__ */ E(en, {
|
|
7037
|
+
"aria-labelledby": L,
|
|
7033
7038
|
color: "inherit",
|
|
7034
7039
|
size: 16
|
|
7035
7040
|
}), c = {
|
|
@@ -7037,56 +7042,56 @@ const qc = (e) => {
|
|
|
7037
7042
|
color: u,
|
|
7038
7043
|
component: d,
|
|
7039
7044
|
disabled: y,
|
|
7040
|
-
disableElevation:
|
|
7045
|
+
disableElevation: p,
|
|
7041
7046
|
disableFocusRipple: b,
|
|
7042
7047
|
fullWidth: g,
|
|
7043
7048
|
loading: k,
|
|
7044
|
-
loadingIndicator:
|
|
7049
|
+
loadingIndicator: I,
|
|
7045
7050
|
loadingPosition: $,
|
|
7046
7051
|
size: S,
|
|
7047
|
-
type:
|
|
7048
|
-
variant:
|
|
7049
|
-
},
|
|
7050
|
-
className:
|
|
7052
|
+
type: D,
|
|
7053
|
+
variant: q
|
|
7054
|
+
}, w = qc(c), x = (T || k && $ === "start") && /* @__PURE__ */ E(Uc, {
|
|
7055
|
+
className: w.startIcon,
|
|
7051
7056
|
ownerState: c,
|
|
7052
|
-
children:
|
|
7053
|
-
className:
|
|
7057
|
+
children: T || /* @__PURE__ */ E(Qn, {
|
|
7058
|
+
className: w.loadingIconPlaceholder,
|
|
7054
7059
|
ownerState: c
|
|
7055
7060
|
})
|
|
7056
|
-
}),
|
|
7057
|
-
className:
|
|
7061
|
+
}), P = (h || k && $ === "end") && /* @__PURE__ */ E(Yc, {
|
|
7062
|
+
className: w.endIcon,
|
|
7058
7063
|
ownerState: c,
|
|
7059
7064
|
children: h || /* @__PURE__ */ E(Qn, {
|
|
7060
|
-
className:
|
|
7065
|
+
className: w.loadingIconPlaceholder,
|
|
7061
7066
|
ownerState: c
|
|
7062
7067
|
})
|
|
7063
|
-
}),
|
|
7068
|
+
}), _ = o || "", G = typeof k == "boolean" ? (
|
|
7064
7069
|
// use plain HTML span to minimize the runtime overhead
|
|
7065
7070
|
/* @__PURE__ */ E("span", {
|
|
7066
|
-
className:
|
|
7071
|
+
className: w.loadingWrapper,
|
|
7067
7072
|
style: {
|
|
7068
7073
|
display: "contents"
|
|
7069
7074
|
},
|
|
7070
7075
|
children: k && /* @__PURE__ */ E(Hc, {
|
|
7071
|
-
className:
|
|
7076
|
+
className: w.loadingIndicator,
|
|
7072
7077
|
ownerState: c,
|
|
7073
|
-
children:
|
|
7078
|
+
children: I
|
|
7074
7079
|
})
|
|
7075
7080
|
})
|
|
7076
7081
|
) : null;
|
|
7077
7082
|
return /* @__PURE__ */ fe(Gc, {
|
|
7078
7083
|
ownerState: c,
|
|
7079
|
-
className: ue(n.className,
|
|
7084
|
+
className: ue(n.className, w.root, m, _),
|
|
7080
7085
|
component: d,
|
|
7081
7086
|
disabled: y || k,
|
|
7082
7087
|
focusRipple: !b,
|
|
7083
|
-
focusVisibleClassName: ue(
|
|
7088
|
+
focusVisibleClassName: ue(w.focusVisible, f),
|
|
7084
7089
|
ref: r,
|
|
7085
|
-
type:
|
|
7086
|
-
id: k ?
|
|
7087
|
-
...
|
|
7088
|
-
classes:
|
|
7089
|
-
children: [x, $ !== "end" &&
|
|
7090
|
+
type: D,
|
|
7091
|
+
id: k ? L : C,
|
|
7092
|
+
...V,
|
|
7093
|
+
classes: w,
|
|
7094
|
+
children: [x, $ !== "end" && G, l, $ === "end" && G, P]
|
|
7090
7095
|
});
|
|
7091
7096
|
});
|
|
7092
7097
|
process.env.NODE_ENV !== "production" && (ii.propTypes = {
|
|
@@ -7401,9 +7406,9 @@ const Xc = (e) => {
|
|
|
7401
7406
|
orientation: l = "horizontal",
|
|
7402
7407
|
component: u = i || l === "vertical" ? "div" : "hr",
|
|
7403
7408
|
flexItem: d = !1,
|
|
7404
|
-
light:
|
|
7409
|
+
light: m = !1,
|
|
7405
7410
|
role: y = u !== "hr" ? "separator" : void 0,
|
|
7406
|
-
textAlign:
|
|
7411
|
+
textAlign: p = "center",
|
|
7407
7412
|
variant: b = "fullWidth",
|
|
7408
7413
|
...h
|
|
7409
7414
|
} = n, f = {
|
|
@@ -7411,10 +7416,10 @@ const Xc = (e) => {
|
|
|
7411
7416
|
absolute: o,
|
|
7412
7417
|
component: u,
|
|
7413
7418
|
flexItem: d,
|
|
7414
|
-
light:
|
|
7419
|
+
light: m,
|
|
7415
7420
|
orientation: l,
|
|
7416
7421
|
role: y,
|
|
7417
|
-
textAlign:
|
|
7422
|
+
textAlign: p,
|
|
7418
7423
|
variant: b
|
|
7419
7424
|
}, g = Xc(f);
|
|
7420
7425
|
return /* @__PURE__ */ E(Qc, {
|
|
@@ -7657,9 +7662,9 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7657
7662
|
color: l = "default",
|
|
7658
7663
|
disabled: u = !1,
|
|
7659
7664
|
disableFocusRipple: d = !1,
|
|
7660
|
-
size:
|
|
7665
|
+
size: m = "medium",
|
|
7661
7666
|
id: y,
|
|
7662
|
-
loading:
|
|
7667
|
+
loading: p = null,
|
|
7663
7668
|
loadingIndicator: b,
|
|
7664
7669
|
...h
|
|
7665
7670
|
} = n, f = Wo(y), g = b ?? /* @__PURE__ */ E(en, {
|
|
@@ -7672,20 +7677,20 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7672
7677
|
color: l,
|
|
7673
7678
|
disabled: u,
|
|
7674
7679
|
disableFocusRipple: d,
|
|
7675
|
-
loading:
|
|
7680
|
+
loading: p,
|
|
7676
7681
|
loadingIndicator: g,
|
|
7677
|
-
size:
|
|
7682
|
+
size: m
|
|
7678
7683
|
}, k = eu(C);
|
|
7679
7684
|
return /* @__PURE__ */ fe(tu, {
|
|
7680
|
-
id:
|
|
7685
|
+
id: p ? f : y,
|
|
7681
7686
|
className: ue(k.root, a),
|
|
7682
7687
|
centerRipple: !0,
|
|
7683
7688
|
focusRipple: !d,
|
|
7684
|
-
disabled: u ||
|
|
7689
|
+
disabled: u || p,
|
|
7685
7690
|
ref: r,
|
|
7686
7691
|
...h,
|
|
7687
7692
|
ownerState: C,
|
|
7688
|
-
children: [typeof
|
|
7693
|
+
children: [typeof p == "boolean" && // use plain HTML span to minimize the runtime overhead
|
|
7689
7694
|
/* @__PURE__ */ E("span", {
|
|
7690
7695
|
className: k.loadingWrapper,
|
|
7691
7696
|
style: {
|
|
@@ -7694,7 +7699,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7694
7699
|
children: /* @__PURE__ */ E(ru, {
|
|
7695
7700
|
className: k.loadingIndicator,
|
|
7696
7701
|
ownerState: C,
|
|
7697
|
-
children:
|
|
7702
|
+
children: p && g
|
|
7698
7703
|
})
|
|
7699
7704
|
}), i]
|
|
7700
7705
|
});
|
|
@@ -7868,20 +7873,20 @@ const su = (e) => {
|
|
|
7868
7873
|
elevation: l = 1,
|
|
7869
7874
|
square: u = !1,
|
|
7870
7875
|
variant: d = "elevation",
|
|
7871
|
-
...
|
|
7876
|
+
...m
|
|
7872
7877
|
} = n, y = {
|
|
7873
7878
|
...n,
|
|
7874
7879
|
component: a,
|
|
7875
7880
|
elevation: l,
|
|
7876
7881
|
square: u,
|
|
7877
7882
|
variant: d
|
|
7878
|
-
},
|
|
7883
|
+
}, p = su(y);
|
|
7879
7884
|
return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(au, {
|
|
7880
7885
|
as: a,
|
|
7881
7886
|
ownerState: y,
|
|
7882
|
-
className: ue(
|
|
7887
|
+
className: ue(p.root, i),
|
|
7883
7888
|
ref: r,
|
|
7884
|
-
...
|
|
7889
|
+
...m,
|
|
7885
7890
|
style: {
|
|
7886
7891
|
...d === "elevation" && {
|
|
7887
7892
|
"--Paper-shadow": (o.vars || o).shadows[l],
|
|
@@ -7892,7 +7897,7 @@ const su = (e) => {
|
|
|
7892
7897
|
"--Paper-overlay": `linear-gradient(${Ft("#fff", kr(l))}, ${Ft("#fff", kr(l))})`
|
|
7893
7898
|
}
|
|
7894
7899
|
},
|
|
7895
|
-
...
|
|
7900
|
+
...m.style
|
|
7896
7901
|
}
|
|
7897
7902
|
});
|
|
7898
7903
|
});
|
|
@@ -8076,9 +8081,9 @@ const cu = {
|
|
|
8076
8081
|
align: l = "inherit",
|
|
8077
8082
|
className: u,
|
|
8078
8083
|
component: d,
|
|
8079
|
-
gutterBottom:
|
|
8084
|
+
gutterBottom: m = !1,
|
|
8080
8085
|
noWrap: y = !1,
|
|
8081
|
-
paragraph:
|
|
8086
|
+
paragraph: p = !1,
|
|
8082
8087
|
variant: b = "body1",
|
|
8083
8088
|
variantMapping: h = Zn,
|
|
8084
8089
|
...f
|
|
@@ -8088,12 +8093,12 @@ const cu = {
|
|
|
8088
8093
|
color: n,
|
|
8089
8094
|
className: u,
|
|
8090
8095
|
component: d,
|
|
8091
|
-
gutterBottom:
|
|
8096
|
+
gutterBottom: m,
|
|
8092
8097
|
noWrap: y,
|
|
8093
|
-
paragraph:
|
|
8098
|
+
paragraph: p,
|
|
8094
8099
|
variant: b,
|
|
8095
8100
|
variantMapping: h
|
|
8096
|
-
}, C = d || (
|
|
8101
|
+
}, C = d || (p ? "p" : h[b] || Zn[b]) || "span", k = fu(g);
|
|
8097
8102
|
return /* @__PURE__ */ E(du, {
|
|
8098
8103
|
as: C,
|
|
8099
8104
|
ref: r,
|
|
@@ -8230,22 +8235,22 @@ const Tr = ({
|
|
|
8230
8235
|
const { fields: l, append: u, remove: d } = yi({
|
|
8231
8236
|
control: t.control,
|
|
8232
8237
|
name: e.name
|
|
8233
|
-
}),
|
|
8234
|
-
if (!
|
|
8235
|
-
(
|
|
8238
|
+
}), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (T, D) => {
|
|
8239
|
+
if (!m.some(
|
|
8240
|
+
(L) => L.dependencies.includes(D)
|
|
8236
8241
|
)) return;
|
|
8237
|
-
const
|
|
8238
|
-
|
|
8239
|
-
if (
|
|
8240
|
-
const
|
|
8241
|
-
|
|
8242
|
+
const V = t.getValues(`${e.name}.${T}`);
|
|
8243
|
+
V && m.forEach(({ name: L, expr: I, dependencies: c, precision: w, roundMode: x }) => {
|
|
8244
|
+
if (L === D || !c.includes(D) || !c.every((z) => Fr(V[z]))) return;
|
|
8245
|
+
const _ = Co(I, V, c, w, x), G = V[L];
|
|
8246
|
+
_ !== void 0 && _ !== G && !Number.isNaN(_) && (typeof _ != "number" || typeof G != "number" || Math.abs(_ - G) > 1e-4) && t.setValue(`${e.name}.${T}.${L}`, _, {
|
|
8242
8247
|
shouldValidate: !0,
|
|
8243
8248
|
// 计算更新通常需要触发验证
|
|
8244
8249
|
shouldDirty: !0,
|
|
8245
8250
|
shouldTouch: !0
|
|
8246
8251
|
});
|
|
8247
8252
|
});
|
|
8248
|
-
},
|
|
8253
|
+
}, p = t.watch(), {
|
|
8249
8254
|
columns: b = [],
|
|
8250
8255
|
minItems: h = 0,
|
|
8251
8256
|
maxItems: f = 1 / 0,
|
|
@@ -8253,75 +8258,75 @@ const Tr = ({
|
|
|
8253
8258
|
copyable: C = !1
|
|
8254
8259
|
} = e, k = () => {
|
|
8255
8260
|
if (l.length >= f) return;
|
|
8256
|
-
const
|
|
8257
|
-
u(
|
|
8258
|
-
},
|
|
8261
|
+
const T = ci(b);
|
|
8262
|
+
u(T);
|
|
8263
|
+
}, M = (T) => {
|
|
8259
8264
|
if (l.length >= f) return;
|
|
8260
|
-
const
|
|
8261
|
-
u(
|
|
8262
|
-
}, $ = (
|
|
8263
|
-
l.length <= h || d(
|
|
8264
|
-
}, S = (
|
|
8265
|
-
const
|
|
8266
|
-
|
|
8267
|
-
|
|
8265
|
+
const D = t.getValues(`${e.name}.${T}`);
|
|
8266
|
+
u(D);
|
|
8267
|
+
}, $ = (T) => {
|
|
8268
|
+
l.length <= h || d(T);
|
|
8269
|
+
}, S = (T, D, q) => {
|
|
8270
|
+
const V = `${e.name}.${D}.${T.name}`, L = p?.[e.name]?.[D] || {}, I = { ...p, ...L }, c = Ht(
|
|
8271
|
+
T,
|
|
8272
|
+
I,
|
|
8268
8273
|
o,
|
|
8269
8274
|
i
|
|
8270
8275
|
);
|
|
8271
8276
|
if (!c.visible)
|
|
8272
8277
|
return null;
|
|
8273
|
-
if (
|
|
8278
|
+
if (T.component === "Group")
|
|
8274
8279
|
return /* @__PURE__ */ E(
|
|
8275
8280
|
$t,
|
|
8276
8281
|
{
|
|
8277
|
-
size: eo(
|
|
8278
|
-
children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children:
|
|
8279
|
-
(
|
|
8280
|
-
{ ...
|
|
8281
|
-
|
|
8282
|
-
|
|
8282
|
+
size: eo(T.colSpan),
|
|
8283
|
+
children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: T.columns?.map(
|
|
8284
|
+
(_, G) => S(
|
|
8285
|
+
{ ..._, name: _.name },
|
|
8286
|
+
D,
|
|
8287
|
+
G
|
|
8283
8288
|
)
|
|
8284
8289
|
) })
|
|
8285
8290
|
},
|
|
8286
|
-
`${
|
|
8291
|
+
`${V}-${q}`
|
|
8287
8292
|
);
|
|
8288
|
-
const
|
|
8289
|
-
if (!
|
|
8290
|
-
const x = n[
|
|
8291
|
-
return /* @__PURE__ */ E($t, { size:
|
|
8292
|
-
|
|
8293
|
+
const w = r[T.component] ?? r.Text;
|
|
8294
|
+
if (!w) return null;
|
|
8295
|
+
const x = n[T.name] ?? T.ui?.options ?? [], P = eo(T.colSpan);
|
|
8296
|
+
return /* @__PURE__ */ E($t, { size: P, children: /* @__PURE__ */ E(
|
|
8297
|
+
jr,
|
|
8293
8298
|
{
|
|
8294
8299
|
control: t.control,
|
|
8295
|
-
name:
|
|
8296
|
-
render: ({ field:
|
|
8297
|
-
|
|
8300
|
+
name: V,
|
|
8301
|
+
render: ({ field: _, fieldState: G }) => /* @__PURE__ */ E(
|
|
8302
|
+
w,
|
|
8298
8303
|
{
|
|
8299
|
-
error: !!
|
|
8304
|
+
error: !!G.error,
|
|
8300
8305
|
field: {
|
|
8301
|
-
...
|
|
8302
|
-
onBlur: (
|
|
8303
|
-
|
|
8306
|
+
..._,
|
|
8307
|
+
onBlur: (z) => {
|
|
8308
|
+
_.onBlur(), y(D, T.name);
|
|
8304
8309
|
}
|
|
8305
8310
|
},
|
|
8306
8311
|
fieldProps: {
|
|
8307
|
-
...
|
|
8312
|
+
...T.ui?.props,
|
|
8308
8313
|
disabled: c.disabled,
|
|
8309
8314
|
required: c.required,
|
|
8310
8315
|
readOnly: c.readonly,
|
|
8311
|
-
placeholder:
|
|
8316
|
+
placeholder: T.ui?.placeholder
|
|
8312
8317
|
},
|
|
8313
8318
|
form: t,
|
|
8314
|
-
helperText:
|
|
8315
|
-
label:
|
|
8319
|
+
helperText: G.error?.message ?? T.ui?.helperText,
|
|
8320
|
+
label: T.ui?.label,
|
|
8316
8321
|
options: x
|
|
8317
8322
|
}
|
|
8318
8323
|
)
|
|
8319
8324
|
}
|
|
8320
|
-
) }, `${
|
|
8325
|
+
) }, `${V}-${q}`);
|
|
8321
8326
|
};
|
|
8322
8327
|
return /* @__PURE__ */ fe(Gt, { children: [
|
|
8323
8328
|
a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
|
|
8324
|
-
l.map((
|
|
8329
|
+
l.map((T, D) => /* @__PURE__ */ fe(
|
|
8325
8330
|
li,
|
|
8326
8331
|
{
|
|
8327
8332
|
variant: "outlined",
|
|
@@ -8342,7 +8347,7 @@ const Tr = ({
|
|
|
8342
8347
|
Nr,
|
|
8343
8348
|
{
|
|
8344
8349
|
size: "small",
|
|
8345
|
-
onClick: () =>
|
|
8350
|
+
onClick: () => M(D),
|
|
8346
8351
|
title: "复制",
|
|
8347
8352
|
children: /* @__PURE__ */ E(rc, { fontSize: "small" })
|
|
8348
8353
|
}
|
|
@@ -8351,7 +8356,7 @@ const Tr = ({
|
|
|
8351
8356
|
Nr,
|
|
8352
8357
|
{
|
|
8353
8358
|
size: "small",
|
|
8354
|
-
onClick: () => $(
|
|
8359
|
+
onClick: () => $(D),
|
|
8355
8360
|
color: "error",
|
|
8356
8361
|
title: "删除",
|
|
8357
8362
|
children: /* @__PURE__ */ E(nc, { fontSize: "small" })
|
|
@@ -8360,10 +8365,10 @@ const Tr = ({
|
|
|
8360
8365
|
]
|
|
8361
8366
|
}
|
|
8362
8367
|
),
|
|
8363
|
-
/* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((
|
|
8368
|
+
/* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((q, V) => S(q, D, V)) })
|
|
8364
8369
|
]
|
|
8365
8370
|
},
|
|
8366
|
-
|
|
8371
|
+
T.id
|
|
8367
8372
|
)),
|
|
8368
8373
|
l.length < f && !o && /* @__PURE__ */ E(Dr, { children: /* @__PURE__ */ E(Yt, { sx: { my: 2 }, children: /* @__PURE__ */ E(
|
|
8369
8374
|
ii,
|
|
@@ -8394,20 +8399,20 @@ const to = ({
|
|
|
8394
8399
|
const l = a || t.watch();
|
|
8395
8400
|
return /* @__PURE__ */ fe(Gt, { sx: { width: "100%" }, children: [
|
|
8396
8401
|
e.ui?.label && /* @__PURE__ */ E(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
|
|
8397
|
-
/* @__PURE__ */ E(
|
|
8398
|
-
const
|
|
8402
|
+
/* @__PURE__ */ E(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
|
|
8403
|
+
const m = Ht(
|
|
8399
8404
|
u,
|
|
8400
8405
|
l,
|
|
8401
8406
|
o,
|
|
8402
8407
|
i
|
|
8403
8408
|
);
|
|
8404
|
-
if (!
|
|
8409
|
+
if (!m.visible)
|
|
8405
8410
|
return null;
|
|
8406
8411
|
const y = r[u.component] ?? r.Text;
|
|
8407
8412
|
if (!y)
|
|
8408
8413
|
return null;
|
|
8409
|
-
const
|
|
8410
|
-
return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(
|
|
8414
|
+
const p = n[u.name] ?? u.ui?.options ?? [], b = pu(u.colSpan);
|
|
8415
|
+
return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
|
|
8411
8416
|
y,
|
|
8412
8417
|
{
|
|
8413
8418
|
field: { name: u.name, value: void 0, onChange: () => {
|
|
@@ -8422,8 +8427,8 @@ const to = ({
|
|
|
8422
8427
|
widgets: r,
|
|
8423
8428
|
values: l
|
|
8424
8429
|
}
|
|
8425
|
-
) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ E(
|
|
8426
|
-
|
|
8430
|
+
) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
|
|
8431
|
+
jr,
|
|
8427
8432
|
{
|
|
8428
8433
|
control: t.control,
|
|
8429
8434
|
name: u.name,
|
|
@@ -8434,15 +8439,15 @@ const to = ({
|
|
|
8434
8439
|
field: h,
|
|
8435
8440
|
fieldProps: {
|
|
8436
8441
|
...u.ui?.props,
|
|
8437
|
-
disabled:
|
|
8438
|
-
required:
|
|
8439
|
-
readOnly:
|
|
8442
|
+
disabled: m.disabled,
|
|
8443
|
+
required: m.required,
|
|
8444
|
+
readOnly: m.readonly,
|
|
8440
8445
|
placeholder: u.ui?.placeholder
|
|
8441
8446
|
},
|
|
8442
8447
|
form: t,
|
|
8443
8448
|
helperText: f.error?.message ?? u.ui?.helperText,
|
|
8444
8449
|
label: u.ui?.label,
|
|
8445
|
-
options:
|
|
8450
|
+
options: p,
|
|
8446
8451
|
values: l
|
|
8447
8452
|
}
|
|
8448
8453
|
)
|
|
@@ -8504,25 +8509,25 @@ const to = ({
|
|
|
8504
8509
|
backgroundColor: "#1A2027"
|
|
8505
8510
|
})
|
|
8506
8511
|
})), so = ({ field: e, label: t, options: r = [], error: n, helperText: o, fieldProps: i }) => {
|
|
8507
|
-
const a = (
|
|
8512
|
+
const a = (m) => r.find((p) => String(p.value) === m)?.value ?? m, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */ E(
|
|
8508
8513
|
Ei,
|
|
8509
8514
|
{
|
|
8510
8515
|
row: !0,
|
|
8511
|
-
onChange: (
|
|
8512
|
-
const y = a(
|
|
8516
|
+
onChange: (m) => {
|
|
8517
|
+
const y = a(m.target.value);
|
|
8513
8518
|
e.onChange(y);
|
|
8514
8519
|
},
|
|
8515
8520
|
value: l,
|
|
8516
8521
|
sx: u ? { flexWrap: "nowrap" } : void 0,
|
|
8517
|
-
children: r.map((
|
|
8518
|
-
|
|
8522
|
+
children: r.map((m) => /* @__PURE__ */ E(
|
|
8523
|
+
Vr,
|
|
8519
8524
|
{
|
|
8520
8525
|
control: /* @__PURE__ */ E(Oi, { size: "small" }),
|
|
8521
|
-
disabled:
|
|
8522
|
-
label:
|
|
8523
|
-
value: String(
|
|
8526
|
+
disabled: m.disabled,
|
|
8527
|
+
label: m.label,
|
|
8528
|
+
value: String(m.value)
|
|
8524
8529
|
},
|
|
8525
|
-
String(
|
|
8530
|
+
String(m.value)
|
|
8526
8531
|
))
|
|
8527
8532
|
}
|
|
8528
8533
|
);
|
|
@@ -8551,13 +8556,13 @@ const to = ({
|
|
|
8551
8556
|
u ? (
|
|
8552
8557
|
// 行内布局:label 和 radio 在同一行
|
|
8553
8558
|
/* @__PURE__ */ fe(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
8554
|
-
/* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(
|
|
8559
|
+
/* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(jt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
|
|
8555
8560
|
/* @__PURE__ */ E(io, { children: d })
|
|
8556
8561
|
] })
|
|
8557
8562
|
) : (
|
|
8558
8563
|
// 默认布局:label 在上,radio 在下
|
|
8559
8564
|
/* @__PURE__ */ fe(nn, { spacing: 0, children: [
|
|
8560
|
-
t && /* @__PURE__ */ E(
|
|
8565
|
+
t && /* @__PURE__ */ E(jt, { component: "legend", required: !1, children: Se(t, i?.required) }),
|
|
8561
8566
|
d
|
|
8562
8567
|
] })
|
|
8563
8568
|
),
|
|
@@ -8566,7 +8571,7 @@ const to = ({
|
|
|
8566
8571
|
}
|
|
8567
8572
|
);
|
|
8568
8573
|
}, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { children: [
|
|
8569
|
-
t && /* @__PURE__ */ E(
|
|
8574
|
+
t && /* @__PURE__ */ E(jt, { children: t }),
|
|
8570
8575
|
/* @__PURE__ */ E(
|
|
8571
8576
|
$i,
|
|
8572
8577
|
{
|
|
@@ -8578,7 +8583,7 @@ const to = ({
|
|
|
8578
8583
|
}
|
|
8579
8584
|
)
|
|
8580
8585
|
] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { fullWidth: !0, children: [
|
|
8581
|
-
t && /* @__PURE__ */ E(
|
|
8586
|
+
t && /* @__PURE__ */ E(jt, { children: t }),
|
|
8582
8587
|
/* @__PURE__ */ E(
|
|
8583
8588
|
Ri,
|
|
8584
8589
|
{
|
|
@@ -8590,7 +8595,7 @@ const to = ({
|
|
|
8590
8595
|
)
|
|
8591
8596
|
] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
|
|
8592
8597
|
/* @__PURE__ */ E(
|
|
8593
|
-
|
|
8598
|
+
Vr,
|
|
8594
8599
|
{
|
|
8595
8600
|
control: /* @__PURE__ */ E(
|
|
8596
8601
|
ki,
|
|
@@ -8717,7 +8722,6 @@ const to = ({
|
|
|
8717
8722
|
formList: Tr,
|
|
8718
8723
|
formlist: Tr
|
|
8719
8724
|
};
|
|
8720
|
-
performance.mark("schemaform-start");
|
|
8721
8725
|
async function hu(e, t) {
|
|
8722
8726
|
const r = e.ui?.optionRequest;
|
|
8723
8727
|
if (!r)
|
|
@@ -8729,36 +8733,46 @@ async function hu(e, t) {
|
|
|
8729
8733
|
}
|
|
8730
8734
|
}
|
|
8731
8735
|
function gu(e, t) {
|
|
8732
|
-
const [r, n] =
|
|
8733
|
-
return
|
|
8734
|
-
i.current =
|
|
8735
|
-
const
|
|
8736
|
-
for (const
|
|
8737
|
-
|
|
8738
|
-
n(
|
|
8739
|
-
}, [e]),
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
const u =
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
}
|
|
8736
|
+
const [r, n] = Ne({}), o = De({}), i = De(/* @__PURE__ */ new Set()), a = De({});
|
|
8737
|
+
return je(() => {
|
|
8738
|
+
i.current.clear(), o.current = {}, a.current = {};
|
|
8739
|
+
const l = {};
|
|
8740
|
+
for (const u of e)
|
|
8741
|
+
l[u.name] = u.ui?.options ?? [];
|
|
8742
|
+
n(l);
|
|
8743
|
+
}, [e]), je(() => {
|
|
8744
|
+
e.forEach(async (l) => {
|
|
8745
|
+
if (!l.ui?.optionRequest) return;
|
|
8746
|
+
const u = l.name, d = l.dependencies || [];
|
|
8747
|
+
let m = !1;
|
|
8748
|
+
const y = {};
|
|
8749
|
+
if (d.forEach((p) => {
|
|
8750
|
+
y[p] = t[p];
|
|
8751
|
+
}), d.length === 0)
|
|
8752
|
+
i.current.has(u) || (m = !0);
|
|
8753
|
+
else if (!i.current.has(u))
|
|
8754
|
+
m = !0;
|
|
8755
|
+
else {
|
|
8756
|
+
const p = o.current[u];
|
|
8757
|
+
d.some(
|
|
8758
|
+
(h) => y[h] !== p?.[h]
|
|
8759
|
+
) && (m = !0);
|
|
8757
8760
|
}
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8761
|
+
if (m) {
|
|
8762
|
+
i.current.add(u), o.current[u] = y;
|
|
8763
|
+
const p = (a.current[u] || 0) + 1;
|
|
8764
|
+
a.current[u] = p;
|
|
8765
|
+
try {
|
|
8766
|
+
const b = await hu(l, t);
|
|
8767
|
+
a.current[u] === p && b !== null && n((h) => ({
|
|
8768
|
+
...h,
|
|
8769
|
+
[u]: b
|
|
8770
|
+
}));
|
|
8771
|
+
} catch {
|
|
8772
|
+
a.current[u];
|
|
8773
|
+
}
|
|
8774
|
+
}
|
|
8775
|
+
});
|
|
8762
8776
|
}, [e, t]), r;
|
|
8763
8777
|
}
|
|
8764
8778
|
function yu(e, t) {
|
|
@@ -8771,88 +8785,77 @@ function yu(e, t) {
|
|
|
8771
8785
|
readOnly: l = !1,
|
|
8772
8786
|
disabled: u = !1,
|
|
8773
8787
|
widgets: d = {},
|
|
8774
|
-
children:
|
|
8788
|
+
children: m,
|
|
8775
8789
|
spacing: y
|
|
8776
|
-
} = e,
|
|
8777
|
-
performance.mark("schema-parse-start");
|
|
8778
|
-
const P = ji(r);
|
|
8779
|
-
return performance.mark("schema-parse-end"), performance.measure(
|
|
8780
|
-
"schema-parse",
|
|
8781
|
-
"schema-parse-start",
|
|
8782
|
-
"schema-parse-end"
|
|
8783
|
-
), P;
|
|
8784
|
-
}, [r]), b = rt(void 0);
|
|
8790
|
+
} = e, p = Ge(() => Vi(r), [r]), b = De(void 0);
|
|
8785
8791
|
b.current === void 0 && (b.current = {
|
|
8786
|
-
...
|
|
8792
|
+
...p.defaultValues,
|
|
8787
8793
|
...n || {}
|
|
8788
8794
|
});
|
|
8789
|
-
const h =
|
|
8795
|
+
const h = Ge(() => ({ ...mu, ...d }), [d]), f = Ge(() => Fi(p), [p]), g = bi({
|
|
8790
8796
|
defaultValues: b.current,
|
|
8791
8797
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8792
8798
|
resolver: f,
|
|
8793
8799
|
mode: "onBlur",
|
|
8794
8800
|
reValidateMode: "onBlur"
|
|
8795
|
-
}), C =
|
|
8796
|
-
_e(() => {
|
|
8797
|
-
}, [C]);
|
|
8798
|
-
const k = vi({
|
|
8801
|
+
}), C = Ge(() => Di(p), [p]), k = vi({
|
|
8799
8802
|
control: g.control,
|
|
8800
8803
|
name: C
|
|
8801
|
-
}),
|
|
8802
|
-
const
|
|
8803
|
-
return Array.isArray(k) && C.forEach((c,
|
|
8804
|
-
|
|
8805
|
-
}),
|
|
8806
|
-
}, [k, C]), $ = gu(
|
|
8807
|
-
|
|
8808
|
-
const
|
|
8809
|
-
if (Object.keys(
|
|
8810
|
-
S.current = { ...
|
|
8804
|
+
}), M = Ge(() => {
|
|
8805
|
+
const I = {};
|
|
8806
|
+
return Array.isArray(k) && C.forEach((c, w) => {
|
|
8807
|
+
I[c] = k[w];
|
|
8808
|
+
}), I;
|
|
8809
|
+
}, [k, C]), $ = gu(p.allFields, M), S = De({});
|
|
8810
|
+
je(() => {
|
|
8811
|
+
const I = S.current;
|
|
8812
|
+
if (Object.keys(I).length === 0) {
|
|
8813
|
+
S.current = { ...M };
|
|
8811
8814
|
return;
|
|
8812
8815
|
}
|
|
8813
8816
|
const c = {};
|
|
8814
|
-
let
|
|
8815
|
-
for (const x of
|
|
8817
|
+
let w = !1;
|
|
8818
|
+
for (const x of p.allFields)
|
|
8816
8819
|
if (x.dependencies?.length && x.dependencies.some(
|
|
8817
|
-
(
|
|
8820
|
+
(_) => M[_] !== I[_]
|
|
8818
8821
|
)) {
|
|
8819
|
-
const
|
|
8820
|
-
|
|
8822
|
+
const _ = g.getValues(x.name);
|
|
8823
|
+
_ != null && _ !== "" && (c[x.name] = null, w = !0);
|
|
8821
8824
|
}
|
|
8822
|
-
|
|
8823
|
-
g.setValue(x,
|
|
8825
|
+
w && Object.entries(c).forEach(([x, P]) => {
|
|
8826
|
+
g.setValue(x, P, {
|
|
8824
8827
|
shouldValidate: !0,
|
|
8825
8828
|
shouldDirty: !0,
|
|
8826
8829
|
shouldTouch: !0
|
|
8827
8830
|
});
|
|
8828
|
-
}), S.current = { ...
|
|
8829
|
-
}, [
|
|
8831
|
+
}), S.current = { ...M };
|
|
8832
|
+
}, [M, p.allFields, g]), je(() => {
|
|
8830
8833
|
i && i(g.getValues());
|
|
8831
|
-
}, [
|
|
8832
|
-
const
|
|
8833
|
-
name:
|
|
8834
|
-
expr:
|
|
8835
|
-
dependencies:
|
|
8836
|
-
precision:
|
|
8837
|
-
roundMode:
|
|
8838
|
-
})), [
|
|
8839
|
-
|
|
8840
|
-
if (
|
|
8841
|
-
let
|
|
8834
|
+
}, [M, i, g]);
|
|
8835
|
+
const T = Ge(() => p.allFields.filter((I) => I.compute).map((I) => ({
|
|
8836
|
+
name: I.name,
|
|
8837
|
+
expr: I.compute.expr,
|
|
8838
|
+
dependencies: I.compute.dependencies || xo(I.compute.expr),
|
|
8839
|
+
precision: I.compute.precision,
|
|
8840
|
+
roundMode: I.compute.roundMode
|
|
8841
|
+
})), [p.allFields]), D = De({});
|
|
8842
|
+
je(() => {
|
|
8843
|
+
if (T.length === 0) return;
|
|
8844
|
+
let I = !1;
|
|
8842
8845
|
const c = {};
|
|
8843
|
-
for (const { name:
|
|
8844
|
-
const
|
|
8845
|
-
if (
|
|
8846
|
+
for (const { name: w, expr: x, dependencies: P, precision: _, roundMode: G } of T) {
|
|
8847
|
+
const z = P.map((W) => `${W}:${M[W]}`).join("|"), U = D.current[w];
|
|
8848
|
+
if (z === U)
|
|
8846
8849
|
continue;
|
|
8847
|
-
if (!
|
|
8848
|
-
|
|
8850
|
+
if (!P.every((W) => Fr(M[W]))) {
|
|
8851
|
+
D.current[w] = z;
|
|
8849
8852
|
continue;
|
|
8850
8853
|
}
|
|
8851
|
-
const R = Co(x,
|
|
8852
|
-
R !== void 0 && R !==
|
|
8853
|
-
(typeof R != "number" || typeof
|
|
8854
|
+
const R = Co(x, M, P, _, G), j = g.getValues(w);
|
|
8855
|
+
R !== void 0 && R !== j && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
|
|
8856
|
+
(typeof R != "number" || typeof j != "number" || Math.abs(R - j) > 1e-4) && (c[w] = R, I = !0), D.current[w] = z;
|
|
8854
8857
|
}
|
|
8855
|
-
|
|
8858
|
+
I && g.reset(
|
|
8856
8859
|
{
|
|
8857
8860
|
...g.getValues(),
|
|
8858
8861
|
...c
|
|
@@ -8871,52 +8874,52 @@ function yu(e, t) {
|
|
|
8871
8874
|
// keepDirty: true means "if a field was dirty, keep it dirty".
|
|
8872
8875
|
}
|
|
8873
8876
|
);
|
|
8874
|
-
}, [
|
|
8875
|
-
const
|
|
8876
|
-
async (
|
|
8877
|
-
const c = g.getValues(),
|
|
8878
|
-
for (const x of
|
|
8877
|
+
}, [M, T, g]);
|
|
8878
|
+
const q = ho(
|
|
8879
|
+
async (I) => {
|
|
8880
|
+
const c = g.getValues(), w = {};
|
|
8881
|
+
for (const x of p.allFields) {
|
|
8879
8882
|
if (x.noSubmit)
|
|
8880
8883
|
continue;
|
|
8881
|
-
const
|
|
8882
|
-
let
|
|
8883
|
-
x.transform ?
|
|
8884
|
+
const P = x.name;
|
|
8885
|
+
let _ = P in I ? I[P] : c[P];
|
|
8886
|
+
x.transform ? w[P] = x.transform(_, c) : w[P] = _;
|
|
8884
8887
|
}
|
|
8885
|
-
o && await o(
|
|
8888
|
+
o && await o(w);
|
|
8886
8889
|
},
|
|
8887
|
-
[
|
|
8890
|
+
[p.allFields, o, g]
|
|
8888
8891
|
);
|
|
8889
8892
|
gi(
|
|
8890
8893
|
t,
|
|
8891
8894
|
() => ({
|
|
8892
8895
|
...g,
|
|
8893
8896
|
submit: async () => {
|
|
8894
|
-
await g.handleSubmit(
|
|
8897
|
+
await g.handleSubmit(q)();
|
|
8895
8898
|
},
|
|
8896
8899
|
getFormValues: () => {
|
|
8897
|
-
const c = g.getValues(),
|
|
8898
|
-
for (const x of
|
|
8899
|
-
x.noSubmit || (
|
|
8900
|
-
return
|
|
8900
|
+
const c = g.getValues(), w = {};
|
|
8901
|
+
for (const x of p.allFields)
|
|
8902
|
+
x.noSubmit || (w[x.name] = c[x.name]);
|
|
8903
|
+
return w;
|
|
8901
8904
|
},
|
|
8902
8905
|
setValues: (c) => {
|
|
8903
|
-
for (const [
|
|
8904
|
-
x !== void 0 && g.setValue(
|
|
8906
|
+
for (const [w, x] of Object.entries(c))
|
|
8907
|
+
x !== void 0 && g.setValue(w, x);
|
|
8905
8908
|
}
|
|
8906
8909
|
}),
|
|
8907
|
-
[g,
|
|
8910
|
+
[g, p, q]
|
|
8908
8911
|
);
|
|
8909
|
-
const
|
|
8912
|
+
const V = () => p.input.fields.flatMap((c, w) => {
|
|
8910
8913
|
if (c.component === "Hidden")
|
|
8911
8914
|
return [];
|
|
8912
8915
|
const x = [];
|
|
8913
|
-
return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${
|
|
8916
|
+
return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${w}-newline`)), x.push(
|
|
8914
8917
|
/* @__PURE__ */ E(
|
|
8915
8918
|
Ul,
|
|
8916
8919
|
{
|
|
8917
8920
|
field: c,
|
|
8918
|
-
index:
|
|
8919
|
-
values:
|
|
8921
|
+
index: w,
|
|
8922
|
+
values: M,
|
|
8920
8923
|
form: g,
|
|
8921
8924
|
disabled: u,
|
|
8922
8925
|
readOnly: l,
|
|
@@ -8924,13 +8927,13 @@ function yu(e, t) {
|
|
|
8924
8927
|
optionsMap: $,
|
|
8925
8928
|
useGrid: a
|
|
8926
8929
|
},
|
|
8927
|
-
`${String(c.name)}-${
|
|
8930
|
+
`${String(c.name)}-${w}`
|
|
8928
8931
|
)
|
|
8929
8932
|
), x;
|
|
8930
|
-
}),
|
|
8933
|
+
}), L = y ?? r.layout?.spacing ?? 2;
|
|
8931
8934
|
return /* @__PURE__ */ E(Si, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
|
|
8932
|
-
a ? /* @__PURE__ */ E(Yl, { spacing:
|
|
8933
|
-
|
|
8935
|
+
a ? /* @__PURE__ */ E(Yl, { spacing: L, children: V() }) : /* @__PURE__ */ E(Hl, { spacing: L, children: V() }),
|
|
8936
|
+
m
|
|
8934
8937
|
] }) });
|
|
8935
8938
|
}
|
|
8936
8939
|
const _u = mo(yu);
|
|
@@ -8970,5 +8973,5 @@ export {
|
|
|
8970
8973
|
Iu as getDownstreamFields,
|
|
8971
8974
|
Di as getWatchFields,
|
|
8972
8975
|
Mu as mergeDefaultValues,
|
|
8973
|
-
|
|
8976
|
+
Vi as parseSchema
|
|
8974
8977
|
};
|