@fastspace/schema-form 0.0.7 → 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 +596 -591
- package/dist/schema-form-lib.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/schema-form-lib.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, useState as Ne, useEffect 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
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";
|
|
@@ -36,9 +36,9 @@ function Ni(e, t) {
|
|
|
36
36
|
return "eq" in e ? r === e.eq : "ne" in e ? r !== e.ne : "gt" in e && typeof r == "number" ? r > e.gt : "gte" in e && typeof r == "number" ? r >= e.gte : "lt" in e && typeof r == "number" ? r < e.lt : "lte" in e && typeof r == "number" ? r <= e.lte : "in" in e && Array.isArray(e.in) ? e.in.includes(r) : "notIn" in e && Array.isArray(e.notIn) ? !e.notIn.includes(r) : "empty" in e ? e.empty ? Rt(r) : !Rt(r) : "notEmpty" in e ? e.notEmpty ? !Rt(r) : Rt(r) : !1;
|
|
37
37
|
}
|
|
38
38
|
function Bi(e, t) {
|
|
39
|
-
return "and" in e ? e.and.every((r) =>
|
|
39
|
+
return "and" in e ? e.and.every((r) => Ve(r, t)) : "or" in e ? e.or.some((r) => Ve(r, t)) : "not" in e ? !Ve(e.not, t) : !1;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ve(e, t) {
|
|
42
42
|
return e ? typeof e == "function" ? e(t) : So(e) ? Ni(e, t) : _i(e) ? Bi(e, t) : !0 : !0;
|
|
43
43
|
}
|
|
44
44
|
function nt(e) {
|
|
@@ -56,11 +56,11 @@ function nt(e) {
|
|
|
56
56
|
}
|
|
57
57
|
function Ht(e, t, r = !1, n = !1) {
|
|
58
58
|
let o = !e.hidden;
|
|
59
|
-
o && e.visibleWhen && (o =
|
|
59
|
+
o && e.visibleWhen && (o = Ve(e.visibleWhen, t));
|
|
60
60
|
let i = e.disabled ?? !1;
|
|
61
|
-
!i && e.disabledWhen && (i =
|
|
61
|
+
!i && e.disabledWhen && (i = Ve(e.disabledWhen, t)), r && (i = !0);
|
|
62
62
|
let a = e.rules?.some((u) => u.type === "required") ?? !1;
|
|
63
|
-
!a && e.requiredWhen && (a =
|
|
63
|
+
!a && e.requiredWhen && (a = Ve(e.requiredWhen, t));
|
|
64
64
|
const l = e.readonly ?? n;
|
|
65
65
|
return { visible: o, disabled: i, required: a, readonly: l };
|
|
66
66
|
}
|
|
@@ -179,7 +179,7 @@ function Mu(e, t) {
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
function zi(e, t) {
|
|
182
|
-
return e.rules?.some((n) => n.type === "required") ? !0 : e.requiredWhen ?
|
|
182
|
+
return e.rules?.some((n) => n.type === "required") ? !0 : e.requiredWhen ? Ve(e.requiredWhen, t) : !1;
|
|
183
183
|
}
|
|
184
184
|
function Wi(e) {
|
|
185
185
|
const t = e.rules?.find((n) => n.type === "required"), r = e.ui?.label ?? String(e.name);
|
|
@@ -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;
|
|
@@ -351,7 +351,7 @@ function Li(e, t) {
|
|
|
351
351
|
continue;
|
|
352
352
|
}
|
|
353
353
|
if (n.component !== "Group") {
|
|
354
|
-
if (n.visibleWhen && !
|
|
354
|
+
if (n.visibleWhen && !Ve(n.visibleWhen, t)) {
|
|
355
355
|
r[n.name] = A.optional(A.unknown());
|
|
356
356
|
continue;
|
|
357
357
|
}
|
|
@@ -441,10 +441,10 @@ function Gi() {
|
|
|
441
441
|
if (on) return te;
|
|
442
442
|
on = 1;
|
|
443
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
|
|
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:
|
|
@@ -463,60 +463,60 @@ function Gi() {
|
|
|
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
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) ||
|
|
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
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 =
|
|
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
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
|
|
511
|
-
return typeof
|
|
512
|
-
|
|
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
513
|
}
|
|
514
|
-
function $(
|
|
515
|
-
if (typeof
|
|
516
|
-
var ye =
|
|
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 _e =
|
|
519
|
+
var _e = N.type;
|
|
520
520
|
switch (_e) {
|
|
521
521
|
case u:
|
|
522
522
|
case d:
|
|
@@ -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;
|
|
@@ -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:
|
|
734
|
+
instanceOf: T,
|
|
735
|
+
node: L(),
|
|
736
|
+
objectOf: q,
|
|
737
|
+
oneOf: D,
|
|
738
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
|
|
751
|
+
var R = {}, j = 0;
|
|
752
|
+
function W(X, H, K, Q, ee, J, me) {
|
|
753
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 || p, Q = U(
|
|
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
|
}
|
|
@@ -874,45 +874,45 @@ function Ki() {
|
|
|
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":
|
|
@@ -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 = "") {
|
|
@@ -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
|
|
@@ -1763,7 +1763,7 @@ function de(e) {
|
|
|
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) {
|
|
@@ -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
|
})) {
|
|
@@ -1873,7 +1873,7 @@ const As = Ce("border", ve), Ps = Ce("borderTop", ve), Is = Ce("borderRight", ve
|
|
|
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
1879
|
er(As, Ps, Is, Ms, _s, Ns, Bs, Ds, js, Vs, tr, zs, Ws);
|
|
@@ -1887,7 +1887,7 @@ const rr = (e) => {
|
|
|
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) => {
|
|
@@ -1900,7 +1900,7 @@ const nr = (e) => {
|
|
|
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) => {
|
|
@@ -1913,7 +1913,7 @@ const or = (e) => {
|
|
|
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({
|
|
@@ -2472,7 +2472,7 @@ 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,7 +2534,7 @@ 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
2540
|
slot: m,
|
|
@@ -2551,46 +2551,46 @@ function Bo(e = {}) {
|
|
|
2551
2551
|
), C = p || !1;
|
|
2552
2552
|
let k = Sr;
|
|
2553
2553
|
m === "Root" || m === "root" ? k = n : m ? k = o : ya(l) && (k = void 0);
|
|
2554
|
-
const
|
|
2554
|
+
const M = Ro(l, {
|
|
2555
2555
|
shouldForwardProp: k,
|
|
2556
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
|
|
2565
|
+
if (Re(T)) {
|
|
2566
|
+
const D = _o(T);
|
|
2567
2567
|
return function(V) {
|
|
2568
|
-
return
|
|
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 && V.push(function(
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
}), C || V.push(Qe), Array.isArray(
|
|
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) {
|
|
@@ -2891,37 +2891,37 @@ function Da(e = {}) {
|
|
|
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: V =
|
|
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
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
|
});
|
|
@@ -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,7 +3044,7 @@ 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
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);
|
|
@@ -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)
|
|
@@ -3238,36 +3238,36 @@ function el(e, t = {}) {
|
|
|
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
|
}
|
|
@@ -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(
|
|
3288
|
+
function T(V, L) {
|
|
3289
|
+
Object.keys(L).length && $.push(typeof V == "string" ? {
|
|
3290
3290
|
[V]: {
|
|
3291
|
-
...
|
|
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
3304
|
css: V
|
|
3305
|
-
} =
|
|
3306
|
-
colorScheme:
|
|
3305
|
+
} = D, L = a[S]?.palette?.mode, I = !n && L ? {
|
|
3306
|
+
colorScheme: L,
|
|
3307
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({
|
|
@@ -3426,7 +3426,7 @@ function ll(e = {}) {
|
|
|
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,
|
|
@@ -3437,7 +3437,7 @@ function ll(e = {}) {
|
|
|
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
|
});
|
|
@@ -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({
|
|
@@ -3804,7 +3804,7 @@ function Sl(e, t) {
|
|
|
3804
3804
|
...y
|
|
3805
3805
|
} = typeof t == "function" ? t(e) : t;
|
|
3806
3806
|
process.env.NODE_ENV;
|
|
3807
|
-
const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, C, k,
|
|
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
|
|
@@ -3999,7 +3999,7 @@ function Rr(e = {}, ...t) {
|
|
|
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
|
|
@@ -4019,8 +4019,8 @@ function Rr(e = {}, ...t) {
|
|
|
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
|
}
|
|
@@ -4211,14 +4211,14 @@ function Wl(e = {}, ...t) {
|
|
|
4211
4211
|
} = r, k = {
|
|
4212
4212
|
...C
|
|
4213
4213
|
};
|
|
4214
|
-
let
|
|
4215
|
-
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (
|
|
4216
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` :
|
|
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
|
|
4221
|
+
let T = {
|
|
4222
4222
|
defaultColorScheme: p,
|
|
4223
4223
|
...S,
|
|
4224
4224
|
cssVarPrefix: i,
|
|
@@ -4232,58 +4232,58 @@ function Wl(e = {}, ...t) {
|
|
|
4232
4232
|
},
|
|
4233
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
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",
|
|
4250
|
-
const
|
|
4251
|
-
v(c.SnackbarContent, "bg",
|
|
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:
|
|
4270
|
+
vars: q,
|
|
4271
4271
|
generateThemeVars: V,
|
|
4272
|
-
generateStyleSheets:
|
|
4273
|
-
} = el(
|
|
4274
|
-
return
|
|
4275
|
-
|
|
4276
|
-
}),
|
|
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
4277
|
return Mo(m.spacing, Zt(this));
|
|
4278
|
-
},
|
|
4278
|
+
}, T.getColorSchemeSelector = tl(u), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = l, T.unstable_sxConfig = {
|
|
4279
4279
|
...Ct,
|
|
4280
4280
|
...m?.unstable_sxConfig
|
|
4281
|
-
},
|
|
4281
|
+
}, T.unstable_sx = function(c) {
|
|
4282
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] = {
|
|
@@ -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: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig,
|
|
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 (
|
|
4778
|
+
}, [e.value, h]);
|
|
4779
|
+
const x = ho(
|
|
4780
|
+
async (z, U, O = !1) => {
|
|
4776
4781
|
if (p) {
|
|
4777
|
-
|
|
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
|
-
[p,
|
|
4793
|
-
),
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
}, [
|
|
4797
|
-
const
|
|
4798
|
-
|
|
4799
|
-
|
|
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);
|
|
4800
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: p ?
|
|
4830
|
-
onInputChange: p ?
|
|
4831
|
-
options:
|
|
4832
|
-
loading:
|
|
4833
|
-
filterOptions: p ? (
|
|
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
4845
|
listbox: p ? Xl : void 0
|
|
4841
4846
|
},
|
|
4842
4847
|
slotProps: {
|
|
4843
4848
|
listbox: {
|
|
4844
|
-
onScroll: p ?
|
|
4849
|
+
onScroll: p ? G : void 0,
|
|
4845
4850
|
style: { maxHeight: 260 },
|
|
4846
4851
|
// 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
|
|
4847
4852
|
...p ? {
|
|
4848
|
-
fetchingMore:
|
|
4849
|
-
hasMore:
|
|
4850
|
-
showNoMore:
|
|
4851
|
-
empty:
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -5504,15 +5509,15 @@ function yc(e, t, r) {
|
|
|
5504
5509
|
u && (!l || m) ? o[i] = Nt(a, {
|
|
5505
5510
|
onExited: r.bind(null, a),
|
|
5506
5511
|
in: !0,
|
|
5507
|
-
exit:
|
|
5508
|
-
enter:
|
|
5512
|
+
exit: Ye(a, "exit", e),
|
|
5513
|
+
enter: Ye(a, "enter", e)
|
|
5509
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;
|
|
@@ -5832,12 +5837,12 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5832
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:
|
|
5840
|
+
rippleX: T,
|
|
5841
|
+
rippleY: D,
|
|
5842
|
+
rippleSize: q,
|
|
5838
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,15 +5853,15 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5848
5853
|
},
|
|
5849
5854
|
timeout: Ir,
|
|
5850
5855
|
pulsate: S,
|
|
5851
|
-
rippleX:
|
|
5852
|
-
rippleY:
|
|
5853
|
-
rippleSize:
|
|
5856
|
+
rippleX: T,
|
|
5857
|
+
rippleY: D,
|
|
5858
|
+
rippleSize: q
|
|
5854
5859
|
}, m.current)]), m.current += 1, y.current = V;
|
|
5855
|
-
}, [i]), C = B.useCallback(($ = {}, S = {},
|
|
5860
|
+
}, [i]), C = B.useCallback(($ = {}, S = {}, T = () => {
|
|
5856
5861
|
}) => {
|
|
5857
5862
|
const {
|
|
5858
|
-
pulsate:
|
|
5859
|
-
center:
|
|
5863
|
+
pulsate: D = !1,
|
|
5864
|
+
center: q = o || S.pulsate,
|
|
5860
5865
|
fakeElement: V = !1
|
|
5861
5866
|
// For test purposes
|
|
5862
5867
|
} = S;
|
|
@@ -5865,63 +5870,63 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5865
5870
|
return;
|
|
5866
5871
|
}
|
|
5867
5872
|
$?.type === "touchstart" && (p.current = !0);
|
|
5868
|
-
const
|
|
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,
|
|
@@ -6022,39 +6027,39 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
|
|
|
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:
|
|
6033
|
+
onKeyUp: T,
|
|
6034
|
+
onMouseDown: D,
|
|
6035
|
+
onMouseLeave: q,
|
|
6031
6036
|
onMouseUp: V,
|
|
6032
|
-
onTouchEnd:
|
|
6033
|
-
onTouchMove:
|
|
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
6053
|
R && p && !m && U.pulsate();
|
|
6049
6054
|
}, [m, p, R, U]);
|
|
6050
|
-
const
|
|
6051
|
-
R && Y.preventDefault(),
|
|
6052
|
-
}, y), ee = Me(U, "start", c, y), J = Me(U, "stop",
|
|
6053
|
-
Hn(Y.target) ||
|
|
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
|
-
|
|
6060
|
+
z.current || (z.current = Y.currentTarget), Hn(Y.target) && (j(!0), $ && $(Y)), M && M(Y);
|
|
6056
6061
|
}), _e = () => {
|
|
6057
|
-
const Y =
|
|
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, () => {
|
|
@@ -6063,17 +6068,17 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
|
|
|
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,
|
|
@@ -6081,20 +6086,20 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
|
|
|
6081
6086
|
disableRipple: m,
|
|
6082
6087
|
disableTouchRipple: y,
|
|
6083
6088
|
focusRipple: p,
|
|
6084
|
-
tabIndex:
|
|
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
|
|
@@ -6450,8 +6455,8 @@ const Te = 44, Mr = St`
|
|
|
6450
6455
|
enableTrackSlot: l
|
|
6451
6456
|
}, f = jc(h), g = {}, C = {}, k = {};
|
|
6452
6457
|
if (p === "determinate") {
|
|
6453
|
-
const
|
|
6454
|
-
g.strokeDasharray =
|
|
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
6461
|
return /* @__PURE__ */ E(Vc, {
|
|
6457
6462
|
className: ue(f.root, o),
|
|
@@ -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");
|
|
@@ -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
|
}
|
|
@@ -7021,15 +7026,15 @@ const qc = (e) => {
|
|
|
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:
|
|
7032
|
+
startIcon: T,
|
|
7033
|
+
type: D,
|
|
7034
|
+
variant: q = "text",
|
|
7030
7035
|
...V
|
|
7031
|
-
} = a,
|
|
7032
|
-
"aria-labelledby":
|
|
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 = {
|
|
@@ -7041,52 +7046,52 @@ const qc = (e) => {
|
|
|
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 ?
|
|
7090
|
+
type: D,
|
|
7091
|
+
id: k ? L : C,
|
|
7087
7092
|
...V,
|
|
7088
|
-
classes:
|
|
7089
|
-
children: [x, $ !== "end" &&
|
|
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 = {
|
|
@@ -8230,15 +8235,15 @@ const Tr = ({
|
|
|
8230
8235
|
const { fields: l, append: u, remove: d } = yi({
|
|
8231
8236
|
control: t.control,
|
|
8232
8237
|
name: e.name
|
|
8233
|
-
}), m =
|
|
8238
|
+
}), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (T, D) => {
|
|
8234
8239
|
if (!m.some(
|
|
8235
|
-
(
|
|
8240
|
+
(L) => L.dependencies.includes(D)
|
|
8236
8241
|
)) return;
|
|
8237
|
-
const V = t.getValues(`${e.name}.${
|
|
8238
|
-
V && m.forEach(({ name:
|
|
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,
|
|
@@ -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 V = `${e.name}.${
|
|
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
|
-
`${V}-${
|
|
8291
|
+
`${V}-${q}`
|
|
8287
8292
|
);
|
|
8288
|
-
const
|
|
8289
|
-
if (!
|
|
8290
|
-
const x = n[
|
|
8291
|
-
return /* @__PURE__ */ E($t, { size:
|
|
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(
|
|
8292
8297
|
jr,
|
|
8293
8298
|
{
|
|
8294
8299
|
control: t.control,
|
|
8295
8300
|
name: V,
|
|
8296
|
-
render: ({ field:
|
|
8297
|
-
|
|
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
|
-
) }, `${V}-${
|
|
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,
|
|
@@ -8728,14 +8733,14 @@ async function hu(e, t) {
|
|
|
8728
8733
|
}
|
|
8729
8734
|
}
|
|
8730
8735
|
function gu(e, t) {
|
|
8731
|
-
const [r, n] = Ne({}), o =
|
|
8732
|
-
return
|
|
8736
|
+
const [r, n] = Ne({}), o = De({}), i = De(/* @__PURE__ */ new Set()), a = De({});
|
|
8737
|
+
return je(() => {
|
|
8733
8738
|
i.current.clear(), o.current = {}, a.current = {};
|
|
8734
8739
|
const l = {};
|
|
8735
8740
|
for (const u of e)
|
|
8736
8741
|
l[u.name] = u.ui?.options ?? [];
|
|
8737
8742
|
n(l);
|
|
8738
|
-
}, [e]),
|
|
8743
|
+
}, [e]), je(() => {
|
|
8739
8744
|
e.forEach(async (l) => {
|
|
8740
8745
|
if (!l.ui?.optionRequest) return;
|
|
8741
8746
|
const u = l.name, d = l.dependencies || [];
|
|
@@ -8782,75 +8787,75 @@ function yu(e, t) {
|
|
|
8782
8787
|
widgets: d = {},
|
|
8783
8788
|
children: m,
|
|
8784
8789
|
spacing: y
|
|
8785
|
-
} = e, p =
|
|
8790
|
+
} = e, p = Ge(() => Vi(r), [r]), b = De(void 0);
|
|
8786
8791
|
b.current === void 0 && (b.current = {
|
|
8787
8792
|
...p.defaultValues,
|
|
8788
8793
|
...n || {}
|
|
8789
8794
|
});
|
|
8790
|
-
const h =
|
|
8795
|
+
const h = Ge(() => ({ ...mu, ...d }), [d]), f = Ge(() => Fi(p), [p]), g = bi({
|
|
8791
8796
|
defaultValues: b.current,
|
|
8792
8797
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8793
8798
|
resolver: f,
|
|
8794
8799
|
mode: "onBlur",
|
|
8795
8800
|
reValidateMode: "onBlur"
|
|
8796
|
-
}), C =
|
|
8801
|
+
}), C = Ge(() => Di(p), [p]), k = vi({
|
|
8797
8802
|
control: g.control,
|
|
8798
8803
|
name: C
|
|
8799
|
-
}),
|
|
8800
|
-
const
|
|
8801
|
-
return Array.isArray(k) && C.forEach((c,
|
|
8802
|
-
|
|
8803
|
-
}),
|
|
8804
|
-
}, [k, C]), $ = gu(p.allFields,
|
|
8805
|
-
|
|
8806
|
-
const
|
|
8807
|
-
if (Object.keys(
|
|
8808
|
-
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 };
|
|
8809
8814
|
return;
|
|
8810
8815
|
}
|
|
8811
8816
|
const c = {};
|
|
8812
|
-
let
|
|
8817
|
+
let w = !1;
|
|
8813
8818
|
for (const x of p.allFields)
|
|
8814
8819
|
if (x.dependencies?.length && x.dependencies.some(
|
|
8815
|
-
(
|
|
8820
|
+
(_) => M[_] !== I[_]
|
|
8816
8821
|
)) {
|
|
8817
|
-
const
|
|
8818
|
-
|
|
8822
|
+
const _ = g.getValues(x.name);
|
|
8823
|
+
_ != null && _ !== "" && (c[x.name] = null, w = !0);
|
|
8819
8824
|
}
|
|
8820
|
-
|
|
8821
|
-
g.setValue(x,
|
|
8825
|
+
w && Object.entries(c).forEach(([x, P]) => {
|
|
8826
|
+
g.setValue(x, P, {
|
|
8822
8827
|
shouldValidate: !0,
|
|
8823
8828
|
shouldDirty: !0,
|
|
8824
8829
|
shouldTouch: !0
|
|
8825
8830
|
});
|
|
8826
|
-
}), S.current = { ...
|
|
8827
|
-
}, [
|
|
8831
|
+
}), S.current = { ...M };
|
|
8832
|
+
}, [M, p.allFields, g]), je(() => {
|
|
8828
8833
|
i && i(g.getValues());
|
|
8829
|
-
}, [
|
|
8830
|
-
const
|
|
8831
|
-
name:
|
|
8832
|
-
expr:
|
|
8833
|
-
dependencies:
|
|
8834
|
-
precision:
|
|
8835
|
-
roundMode:
|
|
8836
|
-
})), [p.allFields]),
|
|
8837
|
-
|
|
8838
|
-
if (
|
|
8839
|
-
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;
|
|
8840
8845
|
const c = {};
|
|
8841
|
-
for (const { name:
|
|
8842
|
-
const
|
|
8843
|
-
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)
|
|
8844
8849
|
continue;
|
|
8845
|
-
if (!
|
|
8846
|
-
|
|
8850
|
+
if (!P.every((W) => Fr(M[W]))) {
|
|
8851
|
+
D.current[w] = z;
|
|
8847
8852
|
continue;
|
|
8848
8853
|
}
|
|
8849
|
-
const R = Co(x,
|
|
8850
|
-
R !== void 0 && R !==
|
|
8851
|
-
(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;
|
|
8852
8857
|
}
|
|
8853
|
-
|
|
8858
|
+
I && g.reset(
|
|
8854
8859
|
{
|
|
8855
8860
|
...g.getValues(),
|
|
8856
8861
|
...c
|
|
@@ -8869,18 +8874,18 @@ function yu(e, t) {
|
|
|
8869
8874
|
// keepDirty: true means "if a field was dirty, keep it dirty".
|
|
8870
8875
|
}
|
|
8871
8876
|
);
|
|
8872
|
-
}, [
|
|
8873
|
-
const
|
|
8874
|
-
async (
|
|
8875
|
-
const c = g.getValues(),
|
|
8877
|
+
}, [M, T, g]);
|
|
8878
|
+
const q = ho(
|
|
8879
|
+
async (I) => {
|
|
8880
|
+
const c = g.getValues(), w = {};
|
|
8876
8881
|
for (const x of p.allFields) {
|
|
8877
8882
|
if (x.noSubmit)
|
|
8878
8883
|
continue;
|
|
8879
|
-
const
|
|
8880
|
-
let
|
|
8881
|
-
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] = _;
|
|
8882
8887
|
}
|
|
8883
|
-
o && await o(
|
|
8888
|
+
o && await o(w);
|
|
8884
8889
|
},
|
|
8885
8890
|
[p.allFields, o, g]
|
|
8886
8891
|
);
|
|
@@ -8889,32 +8894,32 @@ function yu(e, t) {
|
|
|
8889
8894
|
() => ({
|
|
8890
8895
|
...g,
|
|
8891
8896
|
submit: async () => {
|
|
8892
|
-
await g.handleSubmit(
|
|
8897
|
+
await g.handleSubmit(q)();
|
|
8893
8898
|
},
|
|
8894
8899
|
getFormValues: () => {
|
|
8895
|
-
const c = g.getValues(),
|
|
8900
|
+
const c = g.getValues(), w = {};
|
|
8896
8901
|
for (const x of p.allFields)
|
|
8897
|
-
x.noSubmit || (
|
|
8898
|
-
return
|
|
8902
|
+
x.noSubmit || (w[x.name] = c[x.name]);
|
|
8903
|
+
return w;
|
|
8899
8904
|
},
|
|
8900
8905
|
setValues: (c) => {
|
|
8901
|
-
for (const [
|
|
8902
|
-
x !== void 0 && g.setValue(
|
|
8906
|
+
for (const [w, x] of Object.entries(c))
|
|
8907
|
+
x !== void 0 && g.setValue(w, x);
|
|
8903
8908
|
}
|
|
8904
8909
|
}),
|
|
8905
|
-
[g, p,
|
|
8910
|
+
[g, p, q]
|
|
8906
8911
|
);
|
|
8907
|
-
const V = () => p.input.fields.flatMap((c,
|
|
8912
|
+
const V = () => p.input.fields.flatMap((c, w) => {
|
|
8908
8913
|
if (c.component === "Hidden")
|
|
8909
8914
|
return [];
|
|
8910
8915
|
const x = [];
|
|
8911
|
-
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(
|
|
8912
8917
|
/* @__PURE__ */ E(
|
|
8913
8918
|
Ul,
|
|
8914
8919
|
{
|
|
8915
8920
|
field: c,
|
|
8916
|
-
index:
|
|
8917
|
-
values:
|
|
8921
|
+
index: w,
|
|
8922
|
+
values: M,
|
|
8918
8923
|
form: g,
|
|
8919
8924
|
disabled: u,
|
|
8920
8925
|
readOnly: l,
|
|
@@ -8922,12 +8927,12 @@ function yu(e, t) {
|
|
|
8922
8927
|
optionsMap: $,
|
|
8923
8928
|
useGrid: a
|
|
8924
8929
|
},
|
|
8925
|
-
`${String(c.name)}-${
|
|
8930
|
+
`${String(c.name)}-${w}`
|
|
8926
8931
|
)
|
|
8927
8932
|
), x;
|
|
8928
|
-
}),
|
|
8933
|
+
}), L = y ?? r.layout?.spacing ?? 2;
|
|
8929
8934
|
return /* @__PURE__ */ E(Si, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
|
|
8930
|
-
a ? /* @__PURE__ */ E(Yl, { spacing:
|
|
8935
|
+
a ? /* @__PURE__ */ E(Yl, { spacing: L, children: V() }) : /* @__PURE__ */ E(Hl, { spacing: L, children: V() }),
|
|
8931
8936
|
m
|
|
8932
8937
|
] }) });
|
|
8933
8938
|
}
|
|
@@ -8963,7 +8968,7 @@ export {
|
|
|
8963
8968
|
Ht as computeFieldState,
|
|
8964
8969
|
Fi as createDynamicResolver,
|
|
8965
8970
|
mu as defaultWidgets,
|
|
8966
|
-
|
|
8971
|
+
Ve as evaluateCondition,
|
|
8967
8972
|
nt as extractDependencies,
|
|
8968
8973
|
Iu as getDownstreamFields,
|
|
8969
8974
|
Di as getWatchFields,
|