@fastspace/schema-form 0.0.9 → 0.0.11
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/dist/schema-form-lib.js +1139 -1070
- package/dist/schema-form-lib.umd.cjs +11 -11
- package/package.json +11 -3
package/dist/schema-form-lib.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as A from "valibot";
|
|
2
|
-
import { jsx as E, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import dt, { memo as mi, forwardRef as mo, useRef as
|
|
5
|
-
import { Controller as
|
|
2
|
+
import { jsx as E, jsxs as de, Fragment as Dr } from "react/jsx-runtime";
|
|
3
|
+
import * as V from "react";
|
|
4
|
+
import dt, { memo as mi, forwardRef as mo, useRef as we, useState as Be, useEffect as Ve, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
|
|
5
|
+
import { Controller as Vr, useFieldArray as bi, useForm as vi, useWatch as Si, FormProvider as xi } from "react-hook-form";
|
|
6
6
|
import { ThemeContext as Ci, keyframes as St, css as go } from "@emotion/react";
|
|
7
7
|
import Ti from "@emotion/styled";
|
|
8
|
-
import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as wi, TextField as lt, FormControlLabel as
|
|
8
|
+
import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as wi, TextField as lt, FormControlLabel as jr, Checkbox as Ei, FormHelperText as zr, Grid as $t, RadioGroup as Oi, Radio as $i, Stack as nn, FormLabel as Vt, Rating as Ri, Slider as ki, Switch as Ai } from "@mui/material";
|
|
9
9
|
import { LocalizationProvider as Wr } from "@mui/x-date-pickers";
|
|
10
10
|
import { AdapterDayjs as Lr } from "@mui/x-date-pickers/AdapterDayjs";
|
|
11
11
|
import { DateTimePicker as Pi } from "@mui/x-date-pickers/DateTimePicker";
|
|
@@ -36,9 +36,9 @@ function Bi(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 Di(e, t) {
|
|
39
|
-
return "and" in e ? e.and.every((r) =>
|
|
39
|
+
return "and" in e ? e.and.every((r) => je(r, t)) : "or" in e ? e.or.some((r) => je(r, t)) : "not" in e ? !je(e.not, t) : !1;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function je(e, t) {
|
|
42
42
|
return e ? typeof e == "function" ? e(t) : So(e) ? Bi(e, t) : Ni(e) ? Di(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 = je(e.visibleWhen, t));
|
|
60
60
|
let i = e.disabled ?? !1;
|
|
61
|
-
!i && e.disabledWhen && (i =
|
|
61
|
+
!i && e.disabledWhen && (i = je(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 = je(e.requiredWhen, t));
|
|
64
64
|
const l = e.readonly ?? n;
|
|
65
65
|
return { visible: o, disabled: i, required: a, readonly: l };
|
|
66
66
|
}
|
|
@@ -86,7 +86,7 @@ function ot(e, t) {
|
|
|
86
86
|
"and" in e && Array.isArray(e.and) && e.and.forEach((r) => ot(r, t)), "or" in e && Array.isArray(e.or) && e.or.forEach((r) => ot(r, t)), "not" in e && ot(e.not, t);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Vi(e) {
|
|
90
90
|
const t = /* @__PURE__ */ new Set();
|
|
91
91
|
for (const r of e.allFields) {
|
|
92
92
|
if (r.dependencies)
|
|
@@ -98,7 +98,7 @@ function ji(e) {
|
|
|
98
98
|
}
|
|
99
99
|
return Array.from(t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ji(e) {
|
|
102
102
|
const t = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g, r = e.match(t) ?? [], n = /* @__PURE__ */ new Set([
|
|
103
103
|
"true",
|
|
104
104
|
"false",
|
|
@@ -146,7 +146,7 @@ function zi(e) {
|
|
|
146
146
|
for (const d of a.compute.dependencies)
|
|
147
147
|
u.add(d);
|
|
148
148
|
else
|
|
149
|
-
for (const d of
|
|
149
|
+
for (const d of ji(a.compute.expr))
|
|
150
150
|
u.add(d);
|
|
151
151
|
for (const d of u)
|
|
152
152
|
r.has(d) || r.set(d, /* @__PURE__ */ new Set()), r.get(d)?.add(l);
|
|
@@ -179,7 +179,7 @@ function _u(e, t) {
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
function Wi(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 ? je(e.requiredWhen, t) : !1;
|
|
183
183
|
}
|
|
184
184
|
function Li(e) {
|
|
185
185
|
const t = e.rules?.find((n) => n.type === "required"), r = e.ui?.label ?? String(e.name);
|
|
@@ -311,15 +311,15 @@ function wr(e, t) {
|
|
|
311
311
|
}
|
|
312
312
|
if (n === "FormList") {
|
|
313
313
|
const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0, C = {};
|
|
314
|
-
for (const
|
|
315
|
-
if (
|
|
316
|
-
for (const
|
|
317
|
-
C[
|
|
318
|
-
else
|
|
319
|
-
const k = A.object(C),
|
|
320
|
-
f > 0 &&
|
|
321
|
-
const
|
|
322
|
-
return
|
|
314
|
+
for (const v of h)
|
|
315
|
+
if (v.component === "Group" && v.columns)
|
|
316
|
+
for (const w of v.columns)
|
|
317
|
+
C[w.name] = wr(w, t);
|
|
318
|
+
else v.component !== "Group" && (C[v.name] = wr(v, t));
|
|
319
|
+
const k = A.object(C), N = [];
|
|
320
|
+
f > 0 && N.push(A.check((v) => Array.isArray(v) && v.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && N.push(A.check((v) => Array.isArray(v) && v.length <= g, `最多允许${g}条数据`));
|
|
321
|
+
const O = A.array(k);
|
|
322
|
+
return N.length > 0 ? A.pipe(O, ...N) : O;
|
|
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 Fi(e, t) {
|
|
|
351
351
|
continue;
|
|
352
352
|
}
|
|
353
353
|
if (n.component !== "Group") {
|
|
354
|
-
if (n.visibleWhen && !
|
|
354
|
+
if (n.visibleWhen && !je(n.visibleWhen, t)) {
|
|
355
355
|
r[n.name] = A.optional(A.unknown());
|
|
356
356
|
continue;
|
|
357
357
|
}
|
|
@@ -435,98 +435,98 @@ function Co(e, t, r, n, o = "round") {
|
|
|
435
435
|
function Gi(e) {
|
|
436
436
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
437
437
|
}
|
|
438
|
-
var kt = { exports: {} }, At = { exports: {} },
|
|
438
|
+
var kt = { exports: {} }, At = { exports: {} }, ee = {};
|
|
439
439
|
var on;
|
|
440
440
|
function Ui() {
|
|
441
|
-
if (on) return
|
|
441
|
+
if (on) return ee;
|
|
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
|
|
445
|
-
if (typeof
|
|
446
|
-
var
|
|
447
|
-
switch (
|
|
444
|
+
function N(v) {
|
|
445
|
+
if (typeof v == "object" && v !== null) {
|
|
446
|
+
var w = v.$$typeof;
|
|
447
|
+
switch (w) {
|
|
448
448
|
case t:
|
|
449
|
-
switch (
|
|
449
|
+
switch (v = v.type, v) {
|
|
450
450
|
case u:
|
|
451
451
|
case d:
|
|
452
452
|
case n:
|
|
453
453
|
case i:
|
|
454
454
|
case o:
|
|
455
455
|
case y:
|
|
456
|
-
return
|
|
456
|
+
return v;
|
|
457
457
|
default:
|
|
458
|
-
switch (
|
|
458
|
+
switch (v = v && v.$$typeof, v) {
|
|
459
459
|
case l:
|
|
460
460
|
case m:
|
|
461
461
|
case h:
|
|
462
462
|
case b:
|
|
463
463
|
case a:
|
|
464
|
-
return
|
|
464
|
+
return v;
|
|
465
465
|
default:
|
|
466
|
-
return
|
|
466
|
+
return w;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
case r:
|
|
470
|
-
return
|
|
470
|
+
return w;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
return
|
|
476
|
-
}
|
|
477
|
-
return
|
|
478
|
-
return
|
|
479
|
-
},
|
|
480
|
-
return
|
|
481
|
-
},
|
|
482
|
-
return
|
|
483
|
-
},
|
|
484
|
-
return typeof
|
|
485
|
-
},
|
|
486
|
-
return
|
|
487
|
-
},
|
|
488
|
-
return
|
|
489
|
-
},
|
|
490
|
-
return
|
|
491
|
-
},
|
|
492
|
-
return
|
|
493
|
-
},
|
|
494
|
-
return
|
|
495
|
-
},
|
|
496
|
-
return
|
|
497
|
-
},
|
|
498
|
-
return
|
|
499
|
-
},
|
|
500
|
-
return
|
|
501
|
-
},
|
|
502
|
-
return typeof
|
|
503
|
-
},
|
|
504
|
-
}
|
|
505
|
-
var
|
|
474
|
+
function O(v) {
|
|
475
|
+
return N(v) === d;
|
|
476
|
+
}
|
|
477
|
+
return ee.AsyncMode = u, ee.ConcurrentMode = d, ee.ContextConsumer = l, ee.ContextProvider = a, ee.Element = t, ee.ForwardRef = m, ee.Fragment = n, ee.Lazy = h, ee.Memo = b, ee.Portal = r, ee.Profiler = i, ee.StrictMode = o, ee.Suspense = y, ee.isAsyncMode = function(v) {
|
|
478
|
+
return O(v) || N(v) === u;
|
|
479
|
+
}, ee.isConcurrentMode = O, ee.isContextConsumer = function(v) {
|
|
480
|
+
return N(v) === l;
|
|
481
|
+
}, ee.isContextProvider = function(v) {
|
|
482
|
+
return N(v) === a;
|
|
483
|
+
}, ee.isElement = function(v) {
|
|
484
|
+
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
485
|
+
}, ee.isForwardRef = function(v) {
|
|
486
|
+
return N(v) === m;
|
|
487
|
+
}, ee.isFragment = function(v) {
|
|
488
|
+
return N(v) === n;
|
|
489
|
+
}, ee.isLazy = function(v) {
|
|
490
|
+
return N(v) === h;
|
|
491
|
+
}, ee.isMemo = function(v) {
|
|
492
|
+
return N(v) === b;
|
|
493
|
+
}, ee.isPortal = function(v) {
|
|
494
|
+
return N(v) === r;
|
|
495
|
+
}, ee.isProfiler = function(v) {
|
|
496
|
+
return N(v) === i;
|
|
497
|
+
}, ee.isStrictMode = function(v) {
|
|
498
|
+
return N(v) === o;
|
|
499
|
+
}, ee.isSuspense = function(v) {
|
|
500
|
+
return N(v) === y;
|
|
501
|
+
}, ee.isValidElementType = function(v) {
|
|
502
|
+
return typeof v == "string" || typeof v == "function" || v === n || v === d || v === i || v === o || v === y || v === p || typeof v == "object" && v !== null && (v.$$typeof === h || v.$$typeof === b || v.$$typeof === a || v.$$typeof === l || v.$$typeof === m || v.$$typeof === g || v.$$typeof === C || v.$$typeof === k || v.$$typeof === f);
|
|
503
|
+
}, ee.typeOf = N, ee;
|
|
504
|
+
}
|
|
505
|
+
var te = {};
|
|
506
506
|
var sn;
|
|
507
507
|
function Yi() {
|
|
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 M
|
|
511
|
-
return typeof
|
|
512
|
-
|
|
510
|
+
function N(M) {
|
|
511
|
+
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
512
|
+
M === n || M === d || M === i || M === o || M === y || M === p || typeof M == "object" && M !== null && (M.$$typeof === h || M.$$typeof === b || M.$$typeof === a || M.$$typeof === l || M.$$typeof === m || M.$$typeof === g || M.$$typeof === C || M.$$typeof === k || M.$$typeof === f);
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
if (typeof
|
|
516
|
-
var ye =
|
|
514
|
+
function O(M) {
|
|
515
|
+
if (typeof M == "object" && M !== null) {
|
|
516
|
+
var ye = M.$$typeof;
|
|
517
517
|
switch (ye) {
|
|
518
518
|
case t:
|
|
519
|
-
var
|
|
520
|
-
switch (
|
|
519
|
+
var Ne = M.type;
|
|
520
|
+
switch (Ne) {
|
|
521
521
|
case u:
|
|
522
522
|
case d:
|
|
523
523
|
case n:
|
|
524
524
|
case i:
|
|
525
525
|
case o:
|
|
526
526
|
case y:
|
|
527
|
-
return
|
|
527
|
+
return Ne;
|
|
528
528
|
default:
|
|
529
|
-
var wt =
|
|
529
|
+
var wt = Ne && Ne.$$typeof;
|
|
530
530
|
switch (wt) {
|
|
531
531
|
case l:
|
|
532
532
|
case m:
|
|
@@ -543,48 +543,48 @@ function Yi() {
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
var
|
|
547
|
-
function
|
|
548
|
-
return
|
|
546
|
+
var v = u, w = d, z = l, X = a, F = t, q = m, _ = n, c = h, T = b, x = r, B = i, I = o, Y = y, J = !1;
|
|
547
|
+
function oe(M) {
|
|
548
|
+
return J || (J = !0), $(M) || O(M) === u;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
550
|
+
function $(M) {
|
|
551
|
+
return O(M) === d;
|
|
552
552
|
}
|
|
553
|
-
function R(
|
|
554
|
-
return
|
|
553
|
+
function R(M) {
|
|
554
|
+
return O(M) === l;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
556
|
+
function G(M) {
|
|
557
|
+
return O(M) === a;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return typeof
|
|
559
|
+
function U(M) {
|
|
560
|
+
return typeof M == "object" && M !== null && M.$$typeof === t;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
562
|
+
function P(M) {
|
|
563
|
+
return O(M) === m;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
565
|
+
function D(M) {
|
|
566
|
+
return O(M) === n;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
return
|
|
568
|
+
function j(M) {
|
|
569
|
+
return O(M) === h;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
571
|
+
function W(M) {
|
|
572
|
+
return O(M) === b;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
return
|
|
574
|
+
function L(M) {
|
|
575
|
+
return O(M) === r;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
577
|
+
function H(M) {
|
|
578
|
+
return O(M) === i;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
return
|
|
580
|
+
function K(M) {
|
|
581
|
+
return O(M) === o;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
return
|
|
583
|
+
function ae(M) {
|
|
584
|
+
return O(M) === y;
|
|
585
585
|
}
|
|
586
|
-
|
|
587
|
-
})()),
|
|
586
|
+
te.AsyncMode = v, te.ConcurrentMode = w, te.ContextConsumer = z, te.ContextProvider = X, te.Element = F, te.ForwardRef = q, te.Fragment = _, te.Lazy = c, te.Memo = T, te.Portal = x, te.Profiler = B, te.StrictMode = I, te.Suspense = Y, te.isAsyncMode = oe, te.isConcurrentMode = $, te.isContextConsumer = R, te.isContextProvider = G, te.isElement = U, te.isForwardRef = P, te.isFragment = D, te.isLazy = j, te.isMemo = W, te.isPortal = L, te.isProfiler = H, te.isStrictMode = K, te.isSuspense = ae, te.isValidElementType = N, te.typeOf = O;
|
|
587
|
+
})()), te;
|
|
588
588
|
}
|
|
589
589
|
var an;
|
|
590
590
|
function To() {
|
|
@@ -713,8 +713,8 @@ function Xi() {
|
|
|
713
713
|
}
|
|
714
714
|
return gr = function(l, u) {
|
|
715
715
|
var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
716
|
-
function y(
|
|
717
|
-
var R =
|
|
716
|
+
function y($) {
|
|
717
|
+
var R = $ && (d && $[d] || $[m]);
|
|
718
718
|
if (typeof R == "function")
|
|
719
719
|
return R;
|
|
720
720
|
}
|
|
@@ -728,55 +728,55 @@ function Xi() {
|
|
|
728
728
|
string: C("string"),
|
|
729
729
|
symbol: C("symbol"),
|
|
730
730
|
any: k(),
|
|
731
|
-
arrayOf:
|
|
732
|
-
element:
|
|
733
|
-
elementType:
|
|
734
|
-
instanceOf:
|
|
735
|
-
node:
|
|
736
|
-
objectOf:
|
|
737
|
-
oneOf:
|
|
738
|
-
oneOfType:
|
|
731
|
+
arrayOf: N,
|
|
732
|
+
element: O(),
|
|
733
|
+
elementType: v(),
|
|
734
|
+
instanceOf: w,
|
|
735
|
+
node: q(),
|
|
736
|
+
objectOf: X,
|
|
737
|
+
oneOf: z,
|
|
738
|
+
oneOfType: F,
|
|
739
739
|
shape: c,
|
|
740
|
-
exact:
|
|
740
|
+
exact: T
|
|
741
741
|
};
|
|
742
|
-
function h(
|
|
743
|
-
return
|
|
742
|
+
function h($, R) {
|
|
743
|
+
return $ === R ? $ !== 0 || 1 / $ === 1 / R : $ !== $ && R !== R;
|
|
744
744
|
}
|
|
745
|
-
function f(
|
|
746
|
-
this.message =
|
|
745
|
+
function f($, R) {
|
|
746
|
+
this.message = $, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
|
|
747
747
|
}
|
|
748
748
|
f.prototype = Error.prototype;
|
|
749
|
-
function g(
|
|
749
|
+
function g($) {
|
|
750
750
|
if (process.env.NODE_ENV !== "production")
|
|
751
|
-
var R = {},
|
|
752
|
-
function
|
|
753
|
-
if (
|
|
751
|
+
var R = {}, G = 0;
|
|
752
|
+
function U(D, j, W, L, H, K, ae) {
|
|
753
|
+
if (L = L || p, K = K || W, ae !== r) {
|
|
754
754
|
if (u) {
|
|
755
|
-
var
|
|
755
|
+
var M = 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 M.name = "Invariant Violation", M;
|
|
759
759
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
760
|
-
var ye =
|
|
760
|
+
var ye = L + ":" + W;
|
|
761
761
|
!R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
762
|
-
|
|
763
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
764
|
-
), R[ye] = !0,
|
|
762
|
+
G < 3 && (i(
|
|
763
|
+
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + L + "`. 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, G++);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
return
|
|
767
|
+
return j[W] == null ? D ? j[W] === null ? new f("The " + H + " `" + K + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new f("The " + H + " `" + K + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : $(j, W, L, H, K);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
return
|
|
771
|
-
}
|
|
772
|
-
function C(
|
|
773
|
-
function R(
|
|
774
|
-
var
|
|
775
|
-
if (
|
|
776
|
-
var
|
|
769
|
+
var P = U.bind(null, !1);
|
|
770
|
+
return P.isRequired = U.bind(null, !0), P;
|
|
771
|
+
}
|
|
772
|
+
function C($) {
|
|
773
|
+
function R(G, U, P, D, j, W) {
|
|
774
|
+
var L = G[U], H = I(L);
|
|
775
|
+
if (H !== $) {
|
|
776
|
+
var K = Y(L);
|
|
777
777
|
return new f(
|
|
778
|
-
"Invalid " +
|
|
779
|
-
{ expectedType:
|
|
778
|
+
"Invalid " + D + " `" + j + "` of type " + ("`" + K + "` supplied to `" + P + "`, expected ") + ("`" + $ + "`."),
|
|
779
|
+
{ expectedType: $ }
|
|
780
780
|
);
|
|
781
781
|
}
|
|
782
782
|
return null;
|
|
@@ -786,187 +786,187 @@ function Xi() {
|
|
|
786
786
|
function k() {
|
|
787
787
|
return g(a);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
function R(
|
|
791
|
-
if (typeof
|
|
792
|
-
return new f("Property `" +
|
|
793
|
-
var
|
|
794
|
-
if (!Array.isArray(
|
|
795
|
-
var
|
|
796
|
-
return new f("Invalid " +
|
|
789
|
+
function N($) {
|
|
790
|
+
function R(G, U, P, D, j) {
|
|
791
|
+
if (typeof $ != "function")
|
|
792
|
+
return new f("Property `" + j + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
793
|
+
var W = G[U];
|
|
794
|
+
if (!Array.isArray(W)) {
|
|
795
|
+
var L = I(W);
|
|
796
|
+
return new f("Invalid " + D + " `" + j + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected an array."));
|
|
797
797
|
}
|
|
798
|
-
for (var
|
|
799
|
-
var
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
798
|
+
for (var H = 0; H < W.length; H++) {
|
|
799
|
+
var K = $(W, H, P, D, j + "[" + H + "]", r);
|
|
800
|
+
if (K instanceof Error)
|
|
801
|
+
return K;
|
|
802
802
|
}
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
805
805
|
return g(R);
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
function
|
|
809
|
-
var
|
|
810
|
-
if (!l(
|
|
811
|
-
var
|
|
812
|
-
return new f("Invalid " +
|
|
807
|
+
function O() {
|
|
808
|
+
function $(R, G, U, P, D) {
|
|
809
|
+
var j = R[G];
|
|
810
|
+
if (!l(j)) {
|
|
811
|
+
var W = I(j);
|
|
812
|
+
return new f("Invalid " + P + " `" + D + "` of type " + ("`" + W + "` supplied to `" + U + "`, expected a single ReactElement."));
|
|
813
813
|
}
|
|
814
814
|
return null;
|
|
815
815
|
}
|
|
816
|
-
return g(
|
|
817
|
-
}
|
|
818
|
-
function
|
|
819
|
-
function
|
|
820
|
-
var
|
|
821
|
-
if (!e.isValidElementType(
|
|
822
|
-
var
|
|
823
|
-
return new f("Invalid " +
|
|
816
|
+
return g($);
|
|
817
|
+
}
|
|
818
|
+
function v() {
|
|
819
|
+
function $(R, G, U, P, D) {
|
|
820
|
+
var j = R[G];
|
|
821
|
+
if (!e.isValidElementType(j)) {
|
|
822
|
+
var W = I(j);
|
|
823
|
+
return new f("Invalid " + P + " `" + D + "` of type " + ("`" + W + "` supplied to `" + U + "`, expected a single ReactElement type."));
|
|
824
824
|
}
|
|
825
825
|
return null;
|
|
826
826
|
}
|
|
827
|
-
return g(
|
|
827
|
+
return g($);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
function R(
|
|
831
|
-
if (!(
|
|
832
|
-
var
|
|
833
|
-
return new f("Invalid " +
|
|
829
|
+
function w($) {
|
|
830
|
+
function R(G, U, P, D, j) {
|
|
831
|
+
if (!(G[U] instanceof $)) {
|
|
832
|
+
var W = $.name || p, L = oe(G[U]);
|
|
833
|
+
return new f("Invalid " + D + " `" + j + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("instance of `" + W + "`."));
|
|
834
834
|
}
|
|
835
835
|
return null;
|
|
836
836
|
}
|
|
837
837
|
return g(R);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
if (!Array.isArray(
|
|
839
|
+
function z($) {
|
|
840
|
+
if (!Array.isArray($))
|
|
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
|
|
846
|
-
if (h(
|
|
844
|
+
function R(G, U, P, D, j) {
|
|
845
|
+
for (var W = G[U], L = 0; L < $.length; L++)
|
|
846
|
+
if (h(W, $[L]))
|
|
847
847
|
return null;
|
|
848
|
-
var
|
|
849
|
-
var ye =
|
|
850
|
-
return ye === "symbol" ? String(
|
|
848
|
+
var H = JSON.stringify($, function(ae, M) {
|
|
849
|
+
var ye = Y(M);
|
|
850
|
+
return ye === "symbol" ? String(M) : M;
|
|
851
851
|
});
|
|
852
|
-
return new f("Invalid " +
|
|
852
|
+
return new f("Invalid " + D + " `" + j + "` of value `" + String(W) + "` " + ("supplied to `" + P + "`, expected one of " + H + "."));
|
|
853
853
|
}
|
|
854
854
|
return g(R);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
function R(
|
|
858
|
-
if (typeof
|
|
859
|
-
return new f("Property `" +
|
|
860
|
-
var
|
|
861
|
-
if (
|
|
862
|
-
return new f("Invalid " +
|
|
863
|
-
for (var
|
|
864
|
-
if (n(
|
|
865
|
-
var
|
|
866
|
-
if (
|
|
867
|
-
return
|
|
856
|
+
function X($) {
|
|
857
|
+
function R(G, U, P, D, j) {
|
|
858
|
+
if (typeof $ != "function")
|
|
859
|
+
return new f("Property `" + j + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
860
|
+
var W = G[U], L = I(W);
|
|
861
|
+
if (L !== "object")
|
|
862
|
+
return new f("Invalid " + D + " `" + j + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected an object."));
|
|
863
|
+
for (var H in W)
|
|
864
|
+
if (n(W, H)) {
|
|
865
|
+
var K = $(W, H, P, D, j + "." + H, r);
|
|
866
|
+
if (K instanceof Error)
|
|
867
|
+
return K;
|
|
868
868
|
}
|
|
869
869
|
return null;
|
|
870
870
|
}
|
|
871
871
|
return g(R);
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
if (!Array.isArray(
|
|
873
|
+
function F($) {
|
|
874
|
+
if (!Array.isArray($))
|
|
875
875
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
876
|
-
for (var R = 0; R <
|
|
877
|
-
var
|
|
878
|
-
if (typeof
|
|
876
|
+
for (var R = 0; R < $.length; R++) {
|
|
877
|
+
var G = $[R];
|
|
878
|
+
if (typeof G != "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 " + J(G) + " at index " + R + "."
|
|
881
881
|
), a;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
for (var
|
|
885
|
-
var
|
|
886
|
-
if (
|
|
883
|
+
function U(P, D, j, W, L) {
|
|
884
|
+
for (var H = [], K = 0; K < $.length; K++) {
|
|
885
|
+
var ae = $[K], M = ae(P, D, j, W, L, r);
|
|
886
|
+
if (M == null)
|
|
887
887
|
return null;
|
|
888
|
-
|
|
888
|
+
M.data && n(M.data, "expectedType") && H.push(M.data.expectedType);
|
|
889
889
|
}
|
|
890
|
-
var ye =
|
|
891
|
-
return new f("Invalid " +
|
|
890
|
+
var ye = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
891
|
+
return new f("Invalid " + W + " `" + L + "` supplied to " + ("`" + j + "`" + ye + "."));
|
|
892
892
|
}
|
|
893
|
-
return g(
|
|
893
|
+
return g(U);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
function
|
|
897
|
-
return x(R[
|
|
895
|
+
function q() {
|
|
896
|
+
function $(R, G, U, P, D) {
|
|
897
|
+
return x(R[G]) ? null : new f("Invalid " + P + " `" + D + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
|
|
898
898
|
}
|
|
899
|
-
return g(
|
|
899
|
+
return g($);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function _($, R, G, U, P) {
|
|
902
902
|
return new f(
|
|
903
|
-
(
|
|
903
|
+
($ || "React class") + ": " + R + " type `" + G + "." + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
|
-
function c(
|
|
907
|
-
function R(
|
|
908
|
-
var
|
|
909
|
-
if (
|
|
910
|
-
return new f("Invalid " +
|
|
911
|
-
for (var
|
|
912
|
-
var
|
|
913
|
-
if (typeof
|
|
914
|
-
return
|
|
915
|
-
var
|
|
916
|
-
if (
|
|
917
|
-
return
|
|
906
|
+
function c($) {
|
|
907
|
+
function R(G, U, P, D, j) {
|
|
908
|
+
var W = G[U], L = I(W);
|
|
909
|
+
if (L !== "object")
|
|
910
|
+
return new f("Invalid " + D + " `" + j + "` of type `" + L + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
911
|
+
for (var H in $) {
|
|
912
|
+
var K = $[H];
|
|
913
|
+
if (typeof K != "function")
|
|
914
|
+
return _(P, D, j, H, Y(K));
|
|
915
|
+
var ae = K(W, H, P, D, j + "." + H, r);
|
|
916
|
+
if (ae)
|
|
917
|
+
return ae;
|
|
918
918
|
}
|
|
919
919
|
return null;
|
|
920
920
|
}
|
|
921
921
|
return g(R);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
function R(
|
|
925
|
-
var
|
|
926
|
-
if (
|
|
927
|
-
return new f("Invalid " +
|
|
928
|
-
var
|
|
929
|
-
for (var
|
|
930
|
-
var
|
|
931
|
-
if (n(
|
|
932
|
-
return
|
|
933
|
-
if (!
|
|
923
|
+
function T($) {
|
|
924
|
+
function R(G, U, P, D, j) {
|
|
925
|
+
var W = G[U], L = I(W);
|
|
926
|
+
if (L !== "object")
|
|
927
|
+
return new f("Invalid " + D + " `" + j + "` of type `" + L + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
928
|
+
var H = t({}, G[U], $);
|
|
929
|
+
for (var K in H) {
|
|
930
|
+
var ae = $[K];
|
|
931
|
+
if (n($, K) && typeof ae != "function")
|
|
932
|
+
return _(P, D, j, K, Y(ae));
|
|
933
|
+
if (!ae)
|
|
934
934
|
return new f(
|
|
935
|
-
"Invalid " +
|
|
936
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
935
|
+
"Invalid " + D + " `" + j + "` key `" + K + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(G[U], null, " ") + `
|
|
936
|
+
Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
|
|
937
937
|
);
|
|
938
|
-
var
|
|
939
|
-
if (
|
|
940
|
-
return
|
|
938
|
+
var M = ae(W, K, P, D, j + "." + K, r);
|
|
939
|
+
if (M)
|
|
940
|
+
return M;
|
|
941
941
|
}
|
|
942
942
|
return null;
|
|
943
943
|
}
|
|
944
944
|
return g(R);
|
|
945
945
|
}
|
|
946
|
-
function x(
|
|
947
|
-
switch (typeof
|
|
946
|
+
function x($) {
|
|
947
|
+
switch (typeof $) {
|
|
948
948
|
case "number":
|
|
949
949
|
case "string":
|
|
950
950
|
case "undefined":
|
|
951
951
|
return !0;
|
|
952
952
|
case "boolean":
|
|
953
|
-
return
|
|
953
|
+
return !$;
|
|
954
954
|
case "object":
|
|
955
|
-
if (Array.isArray(
|
|
956
|
-
return
|
|
957
|
-
if (
|
|
955
|
+
if (Array.isArray($))
|
|
956
|
+
return $.every(x);
|
|
957
|
+
if ($ === null || l($))
|
|
958
958
|
return !0;
|
|
959
|
-
var R = y(
|
|
959
|
+
var R = y($);
|
|
960
960
|
if (R) {
|
|
961
|
-
var
|
|
962
|
-
if (R !==
|
|
963
|
-
for (; !(
|
|
964
|
-
if (!x(
|
|
961
|
+
var G = R.call($), U;
|
|
962
|
+
if (R !== $.entries) {
|
|
963
|
+
for (; !(U = G.next()).done; )
|
|
964
|
+
if (!x(U.value))
|
|
965
965
|
return !1;
|
|
966
966
|
} else
|
|
967
|
-
for (; !(
|
|
968
|
-
var
|
|
969
|
-
if (
|
|
967
|
+
for (; !(U = G.next()).done; ) {
|
|
968
|
+
var P = U.value;
|
|
969
|
+
if (P && !x(P[1]))
|
|
970
970
|
return !1;
|
|
971
971
|
}
|
|
972
972
|
} else
|
|
@@ -976,27 +976,27 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
976
976
|
return !1;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
return
|
|
979
|
+
function B($, R) {
|
|
980
|
+
return $ === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
var R = typeof
|
|
984
|
-
return Array.isArray(
|
|
982
|
+
function I($) {
|
|
983
|
+
var R = typeof $;
|
|
984
|
+
return Array.isArray($) ? "array" : $ instanceof RegExp ? "object" : B(R, $) ? "symbol" : R;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
987
|
-
if (typeof
|
|
988
|
-
return "" +
|
|
989
|
-
var R =
|
|
986
|
+
function Y($) {
|
|
987
|
+
if (typeof $ > "u" || $ === null)
|
|
988
|
+
return "" + $;
|
|
989
|
+
var R = I($);
|
|
990
990
|
if (R === "object") {
|
|
991
|
-
if (
|
|
991
|
+
if ($ instanceof Date)
|
|
992
992
|
return "date";
|
|
993
|
-
if (
|
|
993
|
+
if ($ instanceof RegExp)
|
|
994
994
|
return "regexp";
|
|
995
995
|
}
|
|
996
996
|
return R;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
var R =
|
|
998
|
+
function J($) {
|
|
999
|
+
var R = Y($);
|
|
1000
1000
|
switch (R) {
|
|
1001
1001
|
case "array":
|
|
1002
1002
|
case "object":
|
|
@@ -1009,8 +1009,8 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1009
1009
|
return R;
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1012
|
+
function oe($) {
|
|
1013
|
+
return !$.constructor || !$.constructor.name ? p : $.constructor.name;
|
|
1014
1014
|
}
|
|
1015
1015
|
return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
|
|
1016
1016
|
}, gr;
|
|
@@ -1084,12 +1084,12 @@ function Eo(e) {
|
|
|
1084
1084
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
1085
1085
|
return n;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function fe() {
|
|
1088
1088
|
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Eo(e)) && (n && (n += " "), n += t);
|
|
1089
1089
|
return n;
|
|
1090
1090
|
}
|
|
1091
1091
|
function es(e, t) {
|
|
1092
|
-
return /* @__PURE__ */
|
|
1092
|
+
return /* @__PURE__ */ V.isValidElement(e) && t.indexOf(
|
|
1093
1093
|
// For server components `muiName` is available in element.type._payload.value.muiName
|
|
1094
1094
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
1095
1095
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -1127,7 +1127,7 @@ function xe(e, t, r = "Mui") {
|
|
|
1127
1127
|
const n = rs[t];
|
|
1128
1128
|
return n ? `${r}-${n}` : `${Oo.generate(e)}-${t}`;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function Pe(e, t, r = void 0) {
|
|
1131
1131
|
const n = {};
|
|
1132
1132
|
for (const o in e) {
|
|
1133
1133
|
const i = e[o];
|
|
@@ -1227,16 +1227,16 @@ var ss = /[A-Z]|^ms/g, as = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
|
|
|
1227
1227
|
case "animationName":
|
|
1228
1228
|
if (typeof r == "string")
|
|
1229
1229
|
return r.replace(as, function(n, o, i) {
|
|
1230
|
-
return
|
|
1230
|
+
return De = {
|
|
1231
1231
|
name: o,
|
|
1232
1232
|
styles: i,
|
|
1233
|
-
next:
|
|
1233
|
+
next: De
|
|
1234
1234
|
}, o;
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
return os[t] !== 1 && !$o(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1238
1238
|
};
|
|
1239
|
-
function
|
|
1239
|
+
function jt(e, t, r) {
|
|
1240
1240
|
if (r == null)
|
|
1241
1241
|
return "";
|
|
1242
1242
|
var n = r;
|
|
@@ -1248,20 +1248,20 @@ function Vt(e, t, r) {
|
|
|
1248
1248
|
case "object": {
|
|
1249
1249
|
var o = r;
|
|
1250
1250
|
if (o.anim === 1)
|
|
1251
|
-
return
|
|
1251
|
+
return De = {
|
|
1252
1252
|
name: o.name,
|
|
1253
1253
|
styles: o.styles,
|
|
1254
|
-
next:
|
|
1254
|
+
next: De
|
|
1255
1255
|
}, o.name;
|
|
1256
1256
|
var i = r;
|
|
1257
1257
|
if (i.styles !== void 0) {
|
|
1258
1258
|
var a = i.next;
|
|
1259
1259
|
if (a !== void 0)
|
|
1260
1260
|
for (; a !== void 0; )
|
|
1261
|
-
|
|
1261
|
+
De = {
|
|
1262
1262
|
name: a.name,
|
|
1263
1263
|
styles: a.styles,
|
|
1264
|
-
next:
|
|
1264
|
+
next: De
|
|
1265
1265
|
}, a = a.next;
|
|
1266
1266
|
var l = i.styles + ";";
|
|
1267
1267
|
return l;
|
|
@@ -1276,7 +1276,7 @@ function ls(e, t, r) {
|
|
|
1276
1276
|
var n = "";
|
|
1277
1277
|
if (Array.isArray(r))
|
|
1278
1278
|
for (var o = 0; o < r.length; o++)
|
|
1279
|
-
n +=
|
|
1279
|
+
n += jt(e, t, r[o]) + ";";
|
|
1280
1280
|
else
|
|
1281
1281
|
for (var i in r) {
|
|
1282
1282
|
var a = r[i];
|
|
@@ -1287,7 +1287,7 @@ function ls(e, t, r) {
|
|
|
1287
1287
|
for (var u = 0; u < a.length; u++)
|
|
1288
1288
|
gn(a[u]) && (n += br(i) + ":" + yn(i, a[u]) + ";");
|
|
1289
1289
|
else {
|
|
1290
|
-
var d =
|
|
1290
|
+
var d = jt(e, t, a);
|
|
1291
1291
|
switch (i) {
|
|
1292
1292
|
case "animation":
|
|
1293
1293
|
case "animationName": {
|
|
@@ -1301,21 +1301,21 @@ function ls(e, t, r) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
return n;
|
|
1303
1303
|
}
|
|
1304
|
-
var bn = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1304
|
+
var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, De;
|
|
1305
1305
|
function cs(e, t, r) {
|
|
1306
1306
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1307
1307
|
return e[0];
|
|
1308
1308
|
var n = !0, o = "";
|
|
1309
|
-
|
|
1309
|
+
De = void 0;
|
|
1310
1310
|
var i = e[0];
|
|
1311
1311
|
if (i == null || i.raw === void 0)
|
|
1312
|
-
n = !1, o +=
|
|
1312
|
+
n = !1, o += jt(r, t, i);
|
|
1313
1313
|
else {
|
|
1314
1314
|
var a = i;
|
|
1315
1315
|
o += a[0];
|
|
1316
1316
|
}
|
|
1317
1317
|
for (var l = 1; l < e.length; l++)
|
|
1318
|
-
if (o +=
|
|
1318
|
+
if (o += jt(r, t, e[l]), n) {
|
|
1319
1319
|
var u = i;
|
|
1320
1320
|
o += u[l];
|
|
1321
1321
|
}
|
|
@@ -1326,7 +1326,7 @@ function cs(e, t, r) {
|
|
|
1326
1326
|
return {
|
|
1327
1327
|
name: y,
|
|
1328
1328
|
styles: o,
|
|
1329
|
-
next:
|
|
1329
|
+
next: De
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
function Ro(e, t) {
|
|
@@ -1478,14 +1478,14 @@ function ps() {
|
|
|
1478
1478
|
return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? Pt.exports = /* @__PURE__ */ fs() : Pt.exports = /* @__PURE__ */ ds()), Pt.exports;
|
|
1479
1479
|
}
|
|
1480
1480
|
var zt = /* @__PURE__ */ ps();
|
|
1481
|
-
function
|
|
1481
|
+
function ke(e) {
|
|
1482
1482
|
if (typeof e != "object" || e === null)
|
|
1483
1483
|
return !1;
|
|
1484
1484
|
const t = Object.getPrototypeOf(e);
|
|
1485
1485
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1486
1486
|
}
|
|
1487
1487
|
function ko(e) {
|
|
1488
|
-
if (/* @__PURE__ */
|
|
1488
|
+
if (/* @__PURE__ */ V.isValidElement(e) || zt.isValidElementType(e) || !ke(e))
|
|
1489
1489
|
return e;
|
|
1490
1490
|
const t = {};
|
|
1491
1491
|
return Object.keys(e).forEach((r) => {
|
|
@@ -1498,9 +1498,9 @@ function he(e, t, r = {
|
|
|
1498
1498
|
const n = r.clone ? {
|
|
1499
1499
|
...e
|
|
1500
1500
|
} : e;
|
|
1501
|
-
return
|
|
1502
|
-
/* @__PURE__ */
|
|
1503
|
-
Object.prototype.hasOwnProperty.call(e, o) &&
|
|
1501
|
+
return ke(e) && ke(t) && Object.keys(t).forEach((o) => {
|
|
1502
|
+
/* @__PURE__ */ V.isValidElement(t[o]) || zt.isValidElementType(t[o]) ? n[o] = t[o] : ke(t[o]) && // Avoid prototype pollution
|
|
1503
|
+
Object.prototype.hasOwnProperty.call(e, o) && ke(e[o]) ? n[o] = he(e[o], t[o], r) : r.clone ? n[o] = ke(t[o]) ? ko(t[o]) : t[o] : n[o] = t[o];
|
|
1504
1504
|
}), n;
|
|
1505
1505
|
}
|
|
1506
1506
|
function ze(e, ...t) {
|
|
@@ -1670,7 +1670,7 @@ const Kt = {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
})
|
|
1672
1672
|
};
|
|
1673
|
-
function
|
|
1673
|
+
function Ee(e, t, r) {
|
|
1674
1674
|
const n = e.theme || {};
|
|
1675
1675
|
if (Array.isArray(t)) {
|
|
1676
1676
|
const i = n.breakpoints || En;
|
|
@@ -1745,7 +1745,7 @@ function Wt(e, t, r, n = r) {
|
|
|
1745
1745
|
let o;
|
|
1746
1746
|
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = Xt(e, r) || n, t && (o = t(o, n, e)), o;
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function pe(e) {
|
|
1749
1749
|
const {
|
|
1750
1750
|
prop: t,
|
|
1751
1751
|
cssProperty: r = e.prop,
|
|
@@ -1755,7 +1755,7 @@ function de(e) {
|
|
|
1755
1755
|
if (a[t] == null)
|
|
1756
1756
|
return null;
|
|
1757
1757
|
const l = a[t], u = a.theme, d = Xt(u, n) || {};
|
|
1758
|
-
return
|
|
1758
|
+
return Ee(a, l, (y) => {
|
|
1759
1759
|
let p = Wt(d, o, y);
|
|
1760
1760
|
return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" : Z(y)}`, y)), r === !1 ? p : {
|
|
1761
1761
|
[r]: p
|
|
@@ -1819,22 +1819,22 @@ function As(e, t, r, n) {
|
|
|
1819
1819
|
if (!t.includes(r))
|
|
1820
1820
|
return null;
|
|
1821
1821
|
const o = $s(r), i = ks(o, n), a = e[r];
|
|
1822
|
-
return
|
|
1822
|
+
return Ee(e, a, i);
|
|
1823
1823
|
}
|
|
1824
1824
|
function Io(e, t) {
|
|
1825
1825
|
const r = Zt(e.theme);
|
|
1826
1826
|
return Object.keys(e).map((n) => As(e, t, n, r)).reduce(gt, {});
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function ce(e) {
|
|
1829
1829
|
return Io(e, Qt);
|
|
1830
1830
|
}
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
function
|
|
1831
|
+
ce.propTypes = process.env.NODE_ENV !== "production" ? Qt.reduce((e, t) => (e[t] = Le, e), {}) : {};
|
|
1832
|
+
ce.filterProps = Qt;
|
|
1833
|
+
function ue(e) {
|
|
1834
1834
|
return Io(e, Jt);
|
|
1835
1835
|
}
|
|
1836
|
-
|
|
1837
|
-
|
|
1836
|
+
ue.propTypes = process.env.NODE_ENV !== "production" ? Jt.reduce((e, t) => (e[t] = Le, e), {}) : {};
|
|
1837
|
+
ue.filterProps = Jt;
|
|
1838
1838
|
process.env.NODE_ENV !== "production" && Rs.reduce((e, t) => (e[t] = Le, e), {});
|
|
1839
1839
|
function Mo(e = 8, t = Zt({
|
|
1840
1840
|
spacing: e
|
|
@@ -1857,18 +1857,18 @@ function ve(e) {
|
|
|
1857
1857
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
1858
1858
|
}
|
|
1859
1859
|
function Ce(e, t) {
|
|
1860
|
-
return
|
|
1860
|
+
return pe({
|
|
1861
1861
|
prop: e,
|
|
1862
1862
|
themeKey: "borders",
|
|
1863
1863
|
transform: t
|
|
1864
1864
|
});
|
|
1865
1865
|
}
|
|
1866
|
-
const Ps = Ce("border", ve), Is = Ce("borderTop", ve), Ms = Ce("borderRight", ve), _s = Ce("borderBottom", ve), Ns = Ce("borderLeft", ve), Bs = Ce("borderColor"), Ds = Ce("borderTopColor"),
|
|
1866
|
+
const Ps = Ce("border", ve), Is = Ce("borderTop", ve), Ms = Ce("borderRight", ve), _s = Ce("borderBottom", ve), Ns = Ce("borderLeft", ve), Bs = Ce("borderColor"), Ds = Ce("borderTopColor"), Vs = Ce("borderRightColor"), js = Ce("borderBottomColor"), zs = Ce("borderLeftColor"), Ws = Ce("outline", ve), Ls = Ce("outlineColor"), tr = (e) => {
|
|
1867
1867
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1868
1868
|
const t = xt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
1869
1869
|
borderRadius: Xe(t, n)
|
|
1870
1870
|
});
|
|
1871
|
-
return
|
|
1871
|
+
return Ee(e, e.borderRadius, r);
|
|
1872
1872
|
}
|
|
1873
1873
|
return null;
|
|
1874
1874
|
};
|
|
@@ -1876,13 +1876,13 @@ tr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1876
1876
|
borderRadius: Le
|
|
1877
1877
|
} : {};
|
|
1878
1878
|
tr.filterProps = ["borderRadius"];
|
|
1879
|
-
er(Ps, Is, Ms, _s, Ns, Bs, Ds,
|
|
1879
|
+
er(Ps, Is, Ms, _s, Ns, Bs, Ds, Vs, js, zs, tr, Ws, Ls);
|
|
1880
1880
|
const rr = (e) => {
|
|
1881
1881
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
1882
1882
|
const t = xt(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
1883
1883
|
gap: Xe(t, n)
|
|
1884
1884
|
});
|
|
1885
|
-
return
|
|
1885
|
+
return Ee(e, e.gap, r);
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
};
|
|
@@ -1895,7 +1895,7 @@ const nr = (e) => {
|
|
|
1895
1895
|
const t = xt(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
|
|
1896
1896
|
columnGap: Xe(t, n)
|
|
1897
1897
|
});
|
|
1898
|
-
return
|
|
1898
|
+
return Ee(e, e.columnGap, r);
|
|
1899
1899
|
}
|
|
1900
1900
|
return null;
|
|
1901
1901
|
};
|
|
@@ -1908,7 +1908,7 @@ const or = (e) => {
|
|
|
1908
1908
|
const t = xt(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
|
|
1909
1909
|
rowGap: Xe(t, n)
|
|
1910
1910
|
});
|
|
1911
|
-
return
|
|
1911
|
+
return Ee(e, e.rowGap, r);
|
|
1912
1912
|
}
|
|
1913
1913
|
return null;
|
|
1914
1914
|
};
|
|
@@ -1916,39 +1916,39 @@ or.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1916
1916
|
rowGap: Le
|
|
1917
1917
|
} : {};
|
|
1918
1918
|
or.filterProps = ["rowGap"];
|
|
1919
|
-
const Fs =
|
|
1919
|
+
const Fs = pe({
|
|
1920
1920
|
prop: "gridColumn"
|
|
1921
|
-
}), qs =
|
|
1921
|
+
}), qs = pe({
|
|
1922
1922
|
prop: "gridRow"
|
|
1923
|
-
}), Gs =
|
|
1923
|
+
}), Gs = pe({
|
|
1924
1924
|
prop: "gridAutoFlow"
|
|
1925
|
-
}), Us =
|
|
1925
|
+
}), Us = pe({
|
|
1926
1926
|
prop: "gridAutoColumns"
|
|
1927
|
-
}), Ys =
|
|
1927
|
+
}), Ys = pe({
|
|
1928
1928
|
prop: "gridAutoRows"
|
|
1929
|
-
}), Hs =
|
|
1929
|
+
}), Hs = pe({
|
|
1930
1930
|
prop: "gridTemplateColumns"
|
|
1931
|
-
}), Ks =
|
|
1931
|
+
}), Ks = pe({
|
|
1932
1932
|
prop: "gridTemplateRows"
|
|
1933
|
-
}), Xs =
|
|
1933
|
+
}), Xs = pe({
|
|
1934
1934
|
prop: "gridTemplateAreas"
|
|
1935
|
-
}), Qs =
|
|
1935
|
+
}), Qs = pe({
|
|
1936
1936
|
prop: "gridArea"
|
|
1937
1937
|
});
|
|
1938
1938
|
er(rr, nr, or, Fs, qs, Gs, Us, Ys, Hs, Ks, Xs, Qs);
|
|
1939
1939
|
function it(e, t) {
|
|
1940
1940
|
return t === "grey" ? t : e;
|
|
1941
1941
|
}
|
|
1942
|
-
const Js =
|
|
1942
|
+
const Js = pe({
|
|
1943
1943
|
prop: "color",
|
|
1944
1944
|
themeKey: "palette",
|
|
1945
1945
|
transform: it
|
|
1946
|
-
}), Zs =
|
|
1946
|
+
}), Zs = pe({
|
|
1947
1947
|
prop: "bgcolor",
|
|
1948
1948
|
cssProperty: "backgroundColor",
|
|
1949
1949
|
themeKey: "palette",
|
|
1950
1950
|
transform: it
|
|
1951
|
-
}), ea =
|
|
1951
|
+
}), ea = pe({
|
|
1952
1952
|
prop: "backgroundColor",
|
|
1953
1953
|
themeKey: "palette",
|
|
1954
1954
|
transform: it
|
|
@@ -1957,7 +1957,7 @@ er(Js, Zs, ea);
|
|
|
1957
1957
|
function ge(e) {
|
|
1958
1958
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1959
1959
|
}
|
|
1960
|
-
const ta =
|
|
1960
|
+
const ta = pe({
|
|
1961
1961
|
prop: "width",
|
|
1962
1962
|
transform: ge
|
|
1963
1963
|
}), Gr = (e) => {
|
|
@@ -1972,35 +1972,35 @@ const ta = de({
|
|
|
1972
1972
|
maxWidth: ge(r)
|
|
1973
1973
|
};
|
|
1974
1974
|
};
|
|
1975
|
-
return
|
|
1975
|
+
return Ee(e, e.maxWidth, t);
|
|
1976
1976
|
}
|
|
1977
1977
|
return null;
|
|
1978
1978
|
};
|
|
1979
1979
|
Gr.filterProps = ["maxWidth"];
|
|
1980
|
-
const ra =
|
|
1980
|
+
const ra = pe({
|
|
1981
1981
|
prop: "minWidth",
|
|
1982
1982
|
transform: ge
|
|
1983
|
-
}), na =
|
|
1983
|
+
}), na = pe({
|
|
1984
1984
|
prop: "height",
|
|
1985
1985
|
transform: ge
|
|
1986
|
-
}), oa =
|
|
1986
|
+
}), oa = pe({
|
|
1987
1987
|
prop: "maxHeight",
|
|
1988
1988
|
transform: ge
|
|
1989
|
-
}), ia =
|
|
1989
|
+
}), ia = pe({
|
|
1990
1990
|
prop: "minHeight",
|
|
1991
1991
|
transform: ge
|
|
1992
1992
|
});
|
|
1993
|
-
|
|
1993
|
+
pe({
|
|
1994
1994
|
prop: "size",
|
|
1995
1995
|
cssProperty: "width",
|
|
1996
1996
|
transform: ge
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
pe({
|
|
1999
1999
|
prop: "size",
|
|
2000
2000
|
cssProperty: "height",
|
|
2001
2001
|
transform: ge
|
|
2002
2002
|
});
|
|
2003
|
-
const sa =
|
|
2003
|
+
const sa = pe({
|
|
2004
2004
|
prop: "boxSizing"
|
|
2005
2005
|
});
|
|
2006
2006
|
er(ta, Gr, ra, na, oa, ia, sa);
|
|
@@ -2068,124 +2068,124 @@ const Ct = {
|
|
|
2068
2068
|
},
|
|
2069
2069
|
// spacing
|
|
2070
2070
|
p: {
|
|
2071
|
-
style:
|
|
2071
|
+
style: ue
|
|
2072
2072
|
},
|
|
2073
2073
|
pt: {
|
|
2074
|
-
style:
|
|
2074
|
+
style: ue
|
|
2075
2075
|
},
|
|
2076
2076
|
pr: {
|
|
2077
|
-
style:
|
|
2077
|
+
style: ue
|
|
2078
2078
|
},
|
|
2079
2079
|
pb: {
|
|
2080
|
-
style:
|
|
2080
|
+
style: ue
|
|
2081
2081
|
},
|
|
2082
2082
|
pl: {
|
|
2083
|
-
style:
|
|
2083
|
+
style: ue
|
|
2084
2084
|
},
|
|
2085
2085
|
px: {
|
|
2086
|
-
style:
|
|
2086
|
+
style: ue
|
|
2087
2087
|
},
|
|
2088
2088
|
py: {
|
|
2089
|
-
style:
|
|
2089
|
+
style: ue
|
|
2090
2090
|
},
|
|
2091
2091
|
padding: {
|
|
2092
|
-
style:
|
|
2092
|
+
style: ue
|
|
2093
2093
|
},
|
|
2094
2094
|
paddingTop: {
|
|
2095
|
-
style:
|
|
2095
|
+
style: ue
|
|
2096
2096
|
},
|
|
2097
2097
|
paddingRight: {
|
|
2098
|
-
style:
|
|
2098
|
+
style: ue
|
|
2099
2099
|
},
|
|
2100
2100
|
paddingBottom: {
|
|
2101
|
-
style:
|
|
2101
|
+
style: ue
|
|
2102
2102
|
},
|
|
2103
2103
|
paddingLeft: {
|
|
2104
|
-
style:
|
|
2104
|
+
style: ue
|
|
2105
2105
|
},
|
|
2106
2106
|
paddingX: {
|
|
2107
|
-
style:
|
|
2107
|
+
style: ue
|
|
2108
2108
|
},
|
|
2109
2109
|
paddingY: {
|
|
2110
|
-
style:
|
|
2110
|
+
style: ue
|
|
2111
2111
|
},
|
|
2112
2112
|
paddingInline: {
|
|
2113
|
-
style:
|
|
2113
|
+
style: ue
|
|
2114
2114
|
},
|
|
2115
2115
|
paddingInlineStart: {
|
|
2116
|
-
style:
|
|
2116
|
+
style: ue
|
|
2117
2117
|
},
|
|
2118
2118
|
paddingInlineEnd: {
|
|
2119
|
-
style:
|
|
2119
|
+
style: ue
|
|
2120
2120
|
},
|
|
2121
2121
|
paddingBlock: {
|
|
2122
|
-
style:
|
|
2122
|
+
style: ue
|
|
2123
2123
|
},
|
|
2124
2124
|
paddingBlockStart: {
|
|
2125
|
-
style:
|
|
2125
|
+
style: ue
|
|
2126
2126
|
},
|
|
2127
2127
|
paddingBlockEnd: {
|
|
2128
|
-
style:
|
|
2128
|
+
style: ue
|
|
2129
2129
|
},
|
|
2130
2130
|
m: {
|
|
2131
|
-
style:
|
|
2131
|
+
style: ce
|
|
2132
2132
|
},
|
|
2133
2133
|
mt: {
|
|
2134
|
-
style:
|
|
2134
|
+
style: ce
|
|
2135
2135
|
},
|
|
2136
2136
|
mr: {
|
|
2137
|
-
style:
|
|
2137
|
+
style: ce
|
|
2138
2138
|
},
|
|
2139
2139
|
mb: {
|
|
2140
|
-
style:
|
|
2140
|
+
style: ce
|
|
2141
2141
|
},
|
|
2142
2142
|
ml: {
|
|
2143
|
-
style:
|
|
2143
|
+
style: ce
|
|
2144
2144
|
},
|
|
2145
2145
|
mx: {
|
|
2146
|
-
style:
|
|
2146
|
+
style: ce
|
|
2147
2147
|
},
|
|
2148
2148
|
my: {
|
|
2149
|
-
style:
|
|
2149
|
+
style: ce
|
|
2150
2150
|
},
|
|
2151
2151
|
margin: {
|
|
2152
|
-
style:
|
|
2152
|
+
style: ce
|
|
2153
2153
|
},
|
|
2154
2154
|
marginTop: {
|
|
2155
|
-
style:
|
|
2155
|
+
style: ce
|
|
2156
2156
|
},
|
|
2157
2157
|
marginRight: {
|
|
2158
|
-
style:
|
|
2158
|
+
style: ce
|
|
2159
2159
|
},
|
|
2160
2160
|
marginBottom: {
|
|
2161
|
-
style:
|
|
2161
|
+
style: ce
|
|
2162
2162
|
},
|
|
2163
2163
|
marginLeft: {
|
|
2164
|
-
style:
|
|
2164
|
+
style: ce
|
|
2165
2165
|
},
|
|
2166
2166
|
marginX: {
|
|
2167
|
-
style:
|
|
2167
|
+
style: ce
|
|
2168
2168
|
},
|
|
2169
2169
|
marginY: {
|
|
2170
|
-
style:
|
|
2170
|
+
style: ce
|
|
2171
2171
|
},
|
|
2172
2172
|
marginInline: {
|
|
2173
|
-
style:
|
|
2173
|
+
style: ce
|
|
2174
2174
|
},
|
|
2175
2175
|
marginInlineStart: {
|
|
2176
|
-
style:
|
|
2176
|
+
style: ce
|
|
2177
2177
|
},
|
|
2178
2178
|
marginInlineEnd: {
|
|
2179
|
-
style:
|
|
2179
|
+
style: ce
|
|
2180
2180
|
},
|
|
2181
2181
|
marginBlock: {
|
|
2182
|
-
style:
|
|
2182
|
+
style: ce
|
|
2183
2183
|
},
|
|
2184
2184
|
marginBlockStart: {
|
|
2185
|
-
style:
|
|
2185
|
+
style: ce
|
|
2186
2186
|
},
|
|
2187
2187
|
marginBlockEnd: {
|
|
2188
|
-
style:
|
|
2188
|
+
style: ce
|
|
2189
2189
|
},
|
|
2190
2190
|
// display
|
|
2191
2191
|
displayPrint: {
|
|
@@ -2322,7 +2322,7 @@ function ca() {
|
|
|
2322
2322
|
[r]: n
|
|
2323
2323
|
};
|
|
2324
2324
|
const p = Xt(o, d) || {};
|
|
2325
|
-
return y ? y(a) :
|
|
2325
|
+
return y ? y(a) : Ee(a, n, (h) => {
|
|
2326
2326
|
let f = Wt(p, m, h);
|
|
2327
2327
|
return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" : Z(h)}`, h)), u === !1 ? f : {
|
|
2328
2328
|
[u]: f
|
|
@@ -2355,7 +2355,7 @@ function ca() {
|
|
|
2355
2355
|
if (a[b])
|
|
2356
2356
|
p = gt(p, e(b, h, o, a));
|
|
2357
2357
|
else {
|
|
2358
|
-
const f =
|
|
2358
|
+
const f = Ee({
|
|
2359
2359
|
theme: o
|
|
2360
2360
|
}, h, (g) => ({
|
|
2361
2361
|
[b]: g
|
|
@@ -2443,7 +2443,7 @@ function ir(e) {
|
|
|
2443
2443
|
let i;
|
|
2444
2444
|
return Array.isArray(t) ? i = [n, ...t] : typeof t == "function" ? i = (...a) => {
|
|
2445
2445
|
const l = t(...a);
|
|
2446
|
-
return
|
|
2446
|
+
return ke(l) ? {
|
|
2447
2447
|
...n,
|
|
2448
2448
|
...l
|
|
2449
2449
|
} : n;
|
|
@@ -2534,7 +2534,7 @@ function Bo(e = {}) {
|
|
|
2534
2534
|
ma(l, t, r);
|
|
2535
2535
|
}
|
|
2536
2536
|
return (l, u = {}) => {
|
|
2537
|
-
us(l, (
|
|
2537
|
+
us(l, (w) => w.filter((z) => z !== 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 : ba(l) && (k = void 0);
|
|
2554
|
-
const
|
|
2554
|
+
const N = Ro(l, {
|
|
2555
2555
|
shouldForwardProp: k,
|
|
2556
2556
|
label: ga(d, m),
|
|
2557
2557
|
...h
|
|
2558
|
-
}),
|
|
2559
|
-
if (
|
|
2560
|
-
return
|
|
2561
|
-
if (typeof
|
|
2562
|
-
return function(
|
|
2563
|
-
return Bt(
|
|
2558
|
+
}), O = (w) => {
|
|
2559
|
+
if (w.__emotion_real === w)
|
|
2560
|
+
return w;
|
|
2561
|
+
if (typeof w == "function")
|
|
2562
|
+
return function(X) {
|
|
2563
|
+
return Bt(X, w, X.theme.modularCssLayers ? f : void 0);
|
|
2564
2564
|
};
|
|
2565
|
-
if (
|
|
2566
|
-
const
|
|
2567
|
-
return function(
|
|
2568
|
-
return
|
|
2565
|
+
if (ke(w)) {
|
|
2566
|
+
const z = _o(w);
|
|
2567
|
+
return function(F) {
|
|
2568
|
+
return z.variants ? Bt(F, z, F.theme.modularCssLayers ? f : void 0) : F.theme.modularCssLayers ? Ue(z.style, f) : z.style;
|
|
2569
2569
|
};
|
|
2570
2570
|
}
|
|
2571
|
-
return
|
|
2572
|
-
},
|
|
2573
|
-
const
|
|
2574
|
-
if (
|
|
2575
|
-
const
|
|
2576
|
-
if (!
|
|
2571
|
+
return w;
|
|
2572
|
+
}, v = (...w) => {
|
|
2573
|
+
const z = [], X = w.map(O), F = [];
|
|
2574
|
+
if (z.push(i), d && b && F.push(function(T) {
|
|
2575
|
+
const B = T.theme.components?.[d]?.styleOverrides;
|
|
2576
|
+
if (!B)
|
|
2577
2577
|
return null;
|
|
2578
|
-
const
|
|
2579
|
-
for (const
|
|
2580
|
-
|
|
2581
|
-
return b(
|
|
2582
|
-
}), d && !g &&
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
}), C ||
|
|
2586
|
-
const c =
|
|
2587
|
-
let
|
|
2588
|
-
|
|
2578
|
+
const I = {};
|
|
2579
|
+
for (const Y in B)
|
|
2580
|
+
I[Y] = Bt(T, B[Y], T.theme.modularCssLayers ? "theme" : void 0);
|
|
2581
|
+
return b(T, I);
|
|
2582
|
+
}), d && !g && F.push(function(T) {
|
|
2583
|
+
const B = T.theme?.components?.[d]?.variants;
|
|
2584
|
+
return B ? No(T, B, [], T.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
2585
|
+
}), C || F.push(Qe), Array.isArray(X[0])) {
|
|
2586
|
+
const c = X.shift(), T = new Array(z.length).fill(""), x = new Array(F.length).fill("");
|
|
2587
|
+
let B;
|
|
2588
|
+
B = [...T, ...c, ...x], B.raw = [...T, ...c.raw, ...x], z.unshift(B);
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2591
|
-
return l.muiName && (
|
|
2590
|
+
const q = [...z, ...X, ...F], _ = N(...q);
|
|
2591
|
+
return l.muiName && (_.muiName = l.muiName), process.env.NODE_ENV !== "production" && (_.displayName = ha(d, m, l)), _;
|
|
2592
2592
|
};
|
|
2593
|
-
return
|
|
2593
|
+
return N.withConfig && (v.withConfig = N.withConfig), v;
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
2596
|
function ha(e, t, r) {
|
|
@@ -2614,7 +2614,7 @@ function ba(e) {
|
|
|
2614
2614
|
function Do(e) {
|
|
2615
2615
|
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2616
2616
|
}
|
|
2617
|
-
const
|
|
2617
|
+
const Vo = Bo();
|
|
2618
2618
|
function yt(e, t, r = !1) {
|
|
2619
2619
|
const n = {
|
|
2620
2620
|
...t
|
|
@@ -2643,7 +2643,7 @@ function yt(e, t, r = !1) {
|
|
|
2643
2643
|
n[i][d] = yt(a[d], l[d], r);
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
} else i === "className" && r && t.className ? n.className =
|
|
2646
|
+
} else i === "className" && r && t.className ? n.className = fe(e?.className, t?.className) : i === "style" && r && t.style ? n.style = {
|
|
2647
2647
|
...e?.style,
|
|
2648
2648
|
...t?.style
|
|
2649
2649
|
} : n[i] === void 0 && (n[i] = e[i]);
|
|
@@ -2662,14 +2662,14 @@ function Sa(e) {
|
|
|
2662
2662
|
return Object.keys(e).length === 0;
|
|
2663
2663
|
}
|
|
2664
2664
|
function xa(e = null) {
|
|
2665
|
-
const t =
|
|
2665
|
+
const t = V.useContext(Ci);
|
|
2666
2666
|
return !t || Sa(t) ? e : t;
|
|
2667
2667
|
}
|
|
2668
2668
|
const Ca = Tt();
|
|
2669
2669
|
function sr(e = Ca) {
|
|
2670
2670
|
return xa(e);
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function jo({
|
|
2673
2673
|
props: e,
|
|
2674
2674
|
name: t,
|
|
2675
2675
|
defaultTheme: r,
|
|
@@ -2844,18 +2844,18 @@ function _a(e, t) {
|
|
|
2844
2844
|
Rn.includes(n) || Rn.push(n);
|
|
2845
2845
|
});
|
|
2846
2846
|
}
|
|
2847
|
-
const Na = Tt(), Ba =
|
|
2847
|
+
const Na = Tt(), Ba = Vo("div", {
|
|
2848
2848
|
name: "MuiGrid",
|
|
2849
2849
|
slot: "Root"
|
|
2850
2850
|
});
|
|
2851
2851
|
function Da(e) {
|
|
2852
|
-
return
|
|
2852
|
+
return jo({
|
|
2853
2853
|
props: e,
|
|
2854
2854
|
name: "MuiGrid",
|
|
2855
2855
|
defaultTheme: Na
|
|
2856
2856
|
});
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function Va(e = {}) {
|
|
2859
2859
|
const {
|
|
2860
2860
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
2861
2861
|
createStyledComponent: t = Ba,
|
|
@@ -2872,7 +2872,7 @@ function ja(e = {}) {
|
|
|
2872
2872
|
} = d, g = {
|
|
2873
2873
|
root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ma(p), ...Pa(f), ...y ? Ia(b, m.breakpoints.keys[0]) : []]
|
|
2874
2874
|
};
|
|
2875
|
-
return
|
|
2875
|
+
return Pe(g, (C) => xe(o, C), {});
|
|
2876
2876
|
};
|
|
2877
2877
|
function a(d, m, y = () => !0) {
|
|
2878
2878
|
const p = {};
|
|
@@ -2883,7 +2883,7 @@ function ja(e = {}) {
|
|
|
2883
2883
|
h != null && y(h) && (p[b] = h);
|
|
2884
2884
|
}) : p[m.keys[0]] = d), p;
|
|
2885
2885
|
}
|
|
2886
|
-
const l = t(Oa, Ra, $a, wa, ka, Aa, Ea), u = /* @__PURE__ */
|
|
2886
|
+
const l = t(Oa, Ra, $a, wa, ka, Aa, Ea), u = /* @__PURE__ */ V.forwardRef(function(m, y) {
|
|
2887
2887
|
const p = n(), b = r(m), h = ir(b);
|
|
2888
2888
|
_a(h, p.breakpoints);
|
|
2889
2889
|
const {
|
|
@@ -2891,37 +2891,37 @@ function ja(e = {}) {
|
|
|
2891
2891
|
children: g,
|
|
2892
2892
|
columns: C = 12,
|
|
2893
2893
|
container: k = !1,
|
|
2894
|
-
component:
|
|
2895
|
-
direction:
|
|
2896
|
-
wrap:
|
|
2897
|
-
size:
|
|
2898
|
-
offset:
|
|
2899
|
-
spacing:
|
|
2900
|
-
rowSpacing:
|
|
2901
|
-
columnSpacing:
|
|
2902
|
-
unstable_level:
|
|
2894
|
+
component: N = "div",
|
|
2895
|
+
direction: O = "row",
|
|
2896
|
+
wrap: v = "wrap",
|
|
2897
|
+
size: w = {},
|
|
2898
|
+
offset: z = {},
|
|
2899
|
+
spacing: X = 0,
|
|
2900
|
+
rowSpacing: F = X,
|
|
2901
|
+
columnSpacing: q = X,
|
|
2902
|
+
unstable_level: _ = 0,
|
|
2903
2903
|
...c
|
|
2904
|
-
} = h,
|
|
2904
|
+
} = h, T = a(w, p.breakpoints, (R) => R !== !1), x = a(z, p.breakpoints), B = m.columns ?? (_ ? void 0 : C), I = m.spacing ?? (_ ? void 0 : X), Y = m.rowSpacing ?? m.spacing ?? (_ ? void 0 : F), J = m.columnSpacing ?? m.spacing ?? (_ ? void 0 : q), oe = {
|
|
2905
2905
|
...h,
|
|
2906
|
-
level:
|
|
2907
|
-
columns:
|
|
2906
|
+
level: _,
|
|
2907
|
+
columns: B,
|
|
2908
2908
|
container: k,
|
|
2909
|
-
direction:
|
|
2910
|
-
wrap:
|
|
2911
|
-
spacing:
|
|
2912
|
-
rowSpacing:
|
|
2913
|
-
columnSpacing:
|
|
2914
|
-
size:
|
|
2909
|
+
direction: O,
|
|
2910
|
+
wrap: v,
|
|
2911
|
+
spacing: I,
|
|
2912
|
+
rowSpacing: Y,
|
|
2913
|
+
columnSpacing: J,
|
|
2914
|
+
size: T,
|
|
2915
2915
|
offset: x
|
|
2916
|
-
},
|
|
2916
|
+
}, $ = i(oe, p);
|
|
2917
2917
|
return /* @__PURE__ */ E(l, {
|
|
2918
2918
|
ref: y,
|
|
2919
|
-
as:
|
|
2920
|
-
ownerState:
|
|
2921
|
-
className:
|
|
2919
|
+
as: N,
|
|
2920
|
+
ownerState: oe,
|
|
2921
|
+
className: fe($.root, f),
|
|
2922
2922
|
...c,
|
|
2923
|
-
children:
|
|
2924
|
-
unstable_level: R.props?.unstable_level ??
|
|
2923
|
+
children: V.Children.map(g, (R) => /* @__PURE__ */ V.isValidElement(R) && es(R, ["Grid"]) && k && R.props.container ? /* @__PURE__ */ V.cloneElement(R, {
|
|
2924
|
+
unstable_level: R.props?.unstable_level ?? _ + 1
|
|
2925
2925
|
}) : R)
|
|
2926
2926
|
});
|
|
2927
2927
|
});
|
|
@@ -2941,13 +2941,13 @@ function ja(e = {}) {
|
|
|
2941
2941
|
wrap: s.oneOf(["nowrap", "wrap-reverse", "wrap"])
|
|
2942
2942
|
}), u.muiName = "Grid", u;
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function Ie(e, t, r = "Mui") {
|
|
2945
2945
|
const n = {};
|
|
2946
2946
|
return t.forEach((o) => {
|
|
2947
2947
|
n[o] = xe(e, o, r);
|
|
2948
2948
|
}), n;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function ja(e, t) {
|
|
2951
2951
|
if (process.env.NODE_ENV === "production")
|
|
2952
2952
|
return () => () => null;
|
|
2953
2953
|
const r = t ? {
|
|
@@ -2973,7 +2973,7 @@ function za(e = {}) {
|
|
|
2973
2973
|
} = e, i = Ro("div", {
|
|
2974
2974
|
shouldForwardProp: (l) => l !== "theme" && l !== "sx" && l !== "as"
|
|
2975
2975
|
})(Qe);
|
|
2976
|
-
return /* @__PURE__ */
|
|
2976
|
+
return /* @__PURE__ */ V.forwardRef(function(u, d) {
|
|
2977
2977
|
const m = sr(r), {
|
|
2978
2978
|
className: y,
|
|
2979
2979
|
component: p = "div",
|
|
@@ -2982,13 +2982,13 @@ function za(e = {}) {
|
|
|
2982
2982
|
return /* @__PURE__ */ E(i, {
|
|
2983
2983
|
as: p,
|
|
2984
2984
|
ref: d,
|
|
2985
|
-
className:
|
|
2985
|
+
className: fe(y, o ? o(n) : n),
|
|
2986
2986
|
theme: t && m[t] || m,
|
|
2987
2987
|
...b
|
|
2988
2988
|
});
|
|
2989
2989
|
});
|
|
2990
2990
|
}
|
|
2991
|
-
const Wa = typeof window < "u" ?
|
|
2991
|
+
const Wa = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
|
|
2992
2992
|
function La(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
2993
2993
|
return Math.max(t, Math.min(e, r));
|
|
2994
2994
|
}
|
|
@@ -3082,7 +3082,7 @@ function cr(e, t) {
|
|
|
3082
3082
|
e.values[r] *= 1 - t;
|
|
3083
3083
|
return lr(e);
|
|
3084
3084
|
}
|
|
3085
|
-
function
|
|
3085
|
+
function re(e, t, r) {
|
|
3086
3086
|
try {
|
|
3087
3087
|
return cr(e, t);
|
|
3088
3088
|
} catch {
|
|
@@ -3100,7 +3100,7 @@ function ur(e, t) {
|
|
|
3100
3100
|
e.values[r] += (1 - e.values[r]) * t;
|
|
3101
3101
|
return lr(e);
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3103
|
+
function ne(e, t, r) {
|
|
3104
3104
|
try {
|
|
3105
3105
|
return ur(e, t);
|
|
3106
3106
|
} catch {
|
|
@@ -3117,7 +3117,7 @@ function It(e, t, r) {
|
|
|
3117
3117
|
return e;
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
|
-
const Ua = /* @__PURE__ */
|
|
3120
|
+
const Ua = /* @__PURE__ */ V.createContext(void 0);
|
|
3121
3121
|
process.env.NODE_ENV !== "production" && (s.node, s.object);
|
|
3122
3122
|
function Ya(e) {
|
|
3123
3123
|
const {
|
|
@@ -3134,7 +3134,7 @@ function Ha({
|
|
|
3134
3134
|
props: e,
|
|
3135
3135
|
name: t
|
|
3136
3136
|
}) {
|
|
3137
|
-
const r =
|
|
3137
|
+
const r = V.useContext(Ua);
|
|
3138
3138
|
return Ya({
|
|
3139
3139
|
props: e,
|
|
3140
3140
|
name: t,
|
|
@@ -3145,13 +3145,13 @@ function Ha({
|
|
|
3145
3145
|
}
|
|
3146
3146
|
let An = 0;
|
|
3147
3147
|
function Ka(e) {
|
|
3148
|
-
const [t, r] =
|
|
3149
|
-
return
|
|
3148
|
+
const [t, r] = V.useState(e), n = e || t;
|
|
3149
|
+
return V.useEffect(() => {
|
|
3150
3150
|
t == null && (An += 1, r(`mui-${An}`));
|
|
3151
3151
|
}, [t]), n;
|
|
3152
3152
|
}
|
|
3153
3153
|
const Xa = {
|
|
3154
|
-
...
|
|
3154
|
+
...V
|
|
3155
3155
|
}, Pn = Xa.useId;
|
|
3156
3156
|
function Wo(e) {
|
|
3157
3157
|
if (Pn !== void 0) {
|
|
@@ -3236,95 +3236,95 @@ function tl(e, t = {}) {
|
|
|
3236
3236
|
[u]: f,
|
|
3237
3237
|
...g
|
|
3238
3238
|
} = a;
|
|
3239
|
-
if (Object.entries(g || {}).forEach(([
|
|
3239
|
+
if (Object.entries(g || {}).forEach(([O, v]) => {
|
|
3240
3240
|
const {
|
|
3241
|
-
vars:
|
|
3242
|
-
css:
|
|
3243
|
-
varsWithDefaults:
|
|
3244
|
-
} = xr(
|
|
3245
|
-
b = he(b,
|
|
3246
|
-
css:
|
|
3247
|
-
vars:
|
|
3241
|
+
vars: w,
|
|
3242
|
+
css: z,
|
|
3243
|
+
varsWithDefaults: X
|
|
3244
|
+
} = xr(v, t);
|
|
3245
|
+
b = he(b, X), h[O] = {
|
|
3246
|
+
css: z,
|
|
3247
|
+
vars: w
|
|
3248
3248
|
};
|
|
3249
3249
|
}), f) {
|
|
3250
3250
|
const {
|
|
3251
|
-
css:
|
|
3252
|
-
vars:
|
|
3253
|
-
varsWithDefaults:
|
|
3251
|
+
css: O,
|
|
3252
|
+
vars: v,
|
|
3253
|
+
varsWithDefaults: w
|
|
3254
3254
|
} = xr(f, t);
|
|
3255
|
-
b = he(b,
|
|
3256
|
-
css:
|
|
3257
|
-
vars:
|
|
3255
|
+
b = he(b, w), h[u] = {
|
|
3256
|
+
css: O,
|
|
3257
|
+
vars: v
|
|
3258
3258
|
};
|
|
3259
3259
|
}
|
|
3260
|
-
function C(
|
|
3261
|
-
let
|
|
3262
|
-
if (o === "class" && (
|
|
3263
|
-
if (
|
|
3264
|
-
return e.defaultColorScheme ===
|
|
3265
|
-
[`@media (prefers-color-scheme: ${a[
|
|
3266
|
-
":root":
|
|
3260
|
+
function C(O, v) {
|
|
3261
|
+
let w = o;
|
|
3262
|
+
if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`), O) {
|
|
3263
|
+
if (w === "media")
|
|
3264
|
+
return e.defaultColorScheme === O ? ":root" : {
|
|
3265
|
+
[`@media (prefers-color-scheme: ${a[O]?.palette?.mode || O})`]: {
|
|
3266
|
+
":root": v
|
|
3267
3267
|
}
|
|
3268
3268
|
};
|
|
3269
|
-
if (
|
|
3270
|
-
return e.defaultColorScheme ===
|
|
3269
|
+
if (w)
|
|
3270
|
+
return e.defaultColorScheme === O ? `:root, ${w.replace("%s", String(O))}` : w.replace("%s", String(O));
|
|
3271
3271
|
}
|
|
3272
3272
|
return ":root";
|
|
3273
3273
|
}
|
|
3274
3274
|
return {
|
|
3275
3275
|
vars: b,
|
|
3276
3276
|
generateThemeVars: () => {
|
|
3277
|
-
let
|
|
3277
|
+
let O = {
|
|
3278
3278
|
...m
|
|
3279
3279
|
};
|
|
3280
3280
|
return Object.entries(h).forEach(([, {
|
|
3281
|
-
vars:
|
|
3281
|
+
vars: v
|
|
3282
3282
|
}]) => {
|
|
3283
|
-
|
|
3284
|
-
}),
|
|
3283
|
+
O = he(O, v);
|
|
3284
|
+
}), O;
|
|
3285
3285
|
},
|
|
3286
3286
|
generateStyleSheets: () => {
|
|
3287
|
-
const
|
|
3288
|
-
function
|
|
3289
|
-
Object.keys(
|
|
3290
|
-
[
|
|
3291
|
-
...
|
|
3287
|
+
const O = [], v = e.defaultColorScheme || "light";
|
|
3288
|
+
function w(F, q) {
|
|
3289
|
+
Object.keys(q).length && O.push(typeof F == "string" ? {
|
|
3290
|
+
[F]: {
|
|
3291
|
+
...q
|
|
3292
3292
|
}
|
|
3293
|
-
} :
|
|
3293
|
+
} : F);
|
|
3294
3294
|
}
|
|
3295
|
-
|
|
3295
|
+
w(r(void 0, {
|
|
3296
3296
|
...y
|
|
3297
3297
|
}), y);
|
|
3298
3298
|
const {
|
|
3299
|
-
[
|
|
3300
|
-
...
|
|
3299
|
+
[v]: z,
|
|
3300
|
+
...X
|
|
3301
3301
|
} = h;
|
|
3302
|
-
if (
|
|
3302
|
+
if (z) {
|
|
3303
3303
|
const {
|
|
3304
|
-
css:
|
|
3305
|
-
} =
|
|
3306
|
-
colorScheme:
|
|
3307
|
-
...
|
|
3304
|
+
css: F
|
|
3305
|
+
} = z, q = a[v]?.palette?.mode, _ = !n && q ? {
|
|
3306
|
+
colorScheme: q,
|
|
3307
|
+
...F
|
|
3308
3308
|
} : {
|
|
3309
|
-
...
|
|
3309
|
+
...F
|
|
3310
3310
|
};
|
|
3311
|
-
|
|
3312
|
-
...
|
|
3313
|
-
}),
|
|
3311
|
+
w(r(v, {
|
|
3312
|
+
..._
|
|
3313
|
+
}), _);
|
|
3314
3314
|
}
|
|
3315
|
-
return Object.entries(
|
|
3316
|
-
css:
|
|
3315
|
+
return Object.entries(X).forEach(([F, {
|
|
3316
|
+
css: q
|
|
3317
3317
|
}]) => {
|
|
3318
|
-
const
|
|
3319
|
-
colorScheme:
|
|
3320
|
-
...
|
|
3318
|
+
const _ = a[F]?.palette?.mode, c = !n && _ ? {
|
|
3319
|
+
colorScheme: _,
|
|
3320
|
+
...q
|
|
3321
3321
|
} : {
|
|
3322
|
-
...
|
|
3322
|
+
...q
|
|
3323
3323
|
};
|
|
3324
|
-
|
|
3324
|
+
w(r(F, {
|
|
3325
3325
|
...c
|
|
3326
3326
|
}), c);
|
|
3327
|
-
}), i &&
|
|
3327
|
+
}), i && O.push({
|
|
3328
3328
|
":root": {
|
|
3329
3329
|
// use double underscore to indicate that these are private variables
|
|
3330
3330
|
"--__l-threshold": "0.7",
|
|
@@ -3332,7 +3332,7 @@ function tl(e, t = {}) {
|
|
|
3332
3332
|
"--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
|
|
3333
3333
|
// 0.87 is the default alpha value for black text.
|
|
3334
3334
|
}
|
|
3335
|
-
}),
|
|
3335
|
+
}), O;
|
|
3336
3336
|
}
|
|
3337
3337
|
};
|
|
3338
3338
|
}
|
|
@@ -3341,20 +3341,20 @@ function rl(e) {
|
|
|
3341
3341
|
return e === "media" ? (process.env.NODE_ENV, `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
|
-
const nl = Tt(), ol =
|
|
3344
|
+
const nl = Tt(), ol = Vo("div", {
|
|
3345
3345
|
name: "MuiStack",
|
|
3346
3346
|
slot: "Root"
|
|
3347
3347
|
});
|
|
3348
3348
|
function il(e) {
|
|
3349
|
-
return
|
|
3349
|
+
return jo({
|
|
3350
3350
|
props: e,
|
|
3351
3351
|
name: "MuiStack",
|
|
3352
3352
|
defaultTheme: nl
|
|
3353
3353
|
});
|
|
3354
3354
|
}
|
|
3355
3355
|
function sl(e, t) {
|
|
3356
|
-
const r =
|
|
3357
|
-
return r.reduce((n, o, i) => (n.push(o), i < r.length - 1 && n.push(/* @__PURE__ */
|
|
3356
|
+
const r = V.Children.toArray(e).filter(Boolean);
|
|
3357
|
+
return r.reduce((n, o, i) => (n.push(o), i < r.length - 1 && n.push(/* @__PURE__ */ V.cloneElement(t, {
|
|
3358
3358
|
key: `separator-${i}`
|
|
3359
3359
|
})), n), []);
|
|
3360
3360
|
}
|
|
@@ -3370,7 +3370,7 @@ const al = (e) => ({
|
|
|
3370
3370
|
let r = {
|
|
3371
3371
|
display: "flex",
|
|
3372
3372
|
flexDirection: "column",
|
|
3373
|
-
...
|
|
3373
|
+
...Ee({
|
|
3374
3374
|
theme: t
|
|
3375
3375
|
}, vr({
|
|
3376
3376
|
values: e.direction,
|
|
@@ -3392,7 +3392,7 @@ const al = (e) => ({
|
|
|
3392
3392
|
const p = d > 0 ? i[m[d - 1]] : "column";
|
|
3393
3393
|
i[u] = p;
|
|
3394
3394
|
}
|
|
3395
|
-
}), r = he(r,
|
|
3395
|
+
}), r = he(r, Ee({
|
|
3396
3396
|
theme: t
|
|
3397
3397
|
}, a, (u, d) => e.useFlexGap ? {
|
|
3398
3398
|
gap: Xe(n, u)
|
|
@@ -3415,9 +3415,9 @@ function cl(e = {}) {
|
|
|
3415
3415
|
createStyledComponent: t = ol,
|
|
3416
3416
|
useThemeProps: r = il,
|
|
3417
3417
|
componentName: n = "MuiStack"
|
|
3418
|
-
} = e, o = () =>
|
|
3418
|
+
} = e, o = () => Pe({
|
|
3419
3419
|
root: ["root"]
|
|
3420
|
-
}, (u) => xe(n, u), {}), i = t(ll), a = /* @__PURE__ */
|
|
3420
|
+
}, (u) => xe(n, u), {}), i = t(ll), a = /* @__PURE__ */ V.forwardRef(function(u, d) {
|
|
3421
3421
|
const m = r(u), y = ir(m), {
|
|
3422
3422
|
component: p = "div",
|
|
3423
3423
|
direction: b = "column",
|
|
@@ -3426,18 +3426,18 @@ function cl(e = {}) {
|
|
|
3426
3426
|
children: g,
|
|
3427
3427
|
className: C,
|
|
3428
3428
|
useFlexGap: k = !1,
|
|
3429
|
-
...
|
|
3430
|
-
} = y,
|
|
3429
|
+
...N
|
|
3430
|
+
} = y, O = {
|
|
3431
3431
|
direction: b,
|
|
3432
3432
|
spacing: h,
|
|
3433
3433
|
useFlexGap: k
|
|
3434
|
-
},
|
|
3434
|
+
}, v = o();
|
|
3435
3435
|
return /* @__PURE__ */ E(i, {
|
|
3436
3436
|
as: p,
|
|
3437
|
-
ownerState:
|
|
3437
|
+
ownerState: O,
|
|
3438
3438
|
ref: d,
|
|
3439
|
-
className:
|
|
3440
|
-
...
|
|
3439
|
+
className: fe(v.root, C),
|
|
3440
|
+
...N,
|
|
3441
3441
|
children: f ? sl(g, f) : g
|
|
3442
3442
|
});
|
|
3443
3443
|
});
|
|
@@ -3672,8 +3672,8 @@ function Hr(e) {
|
|
|
3672
3672
|
color: g,
|
|
3673
3673
|
name: C,
|
|
3674
3674
|
mainShade: k = 500,
|
|
3675
|
-
lightShade:
|
|
3676
|
-
darkShade:
|
|
3675
|
+
lightShade: N = 300,
|
|
3676
|
+
darkShade: O = 700
|
|
3677
3677
|
}) => {
|
|
3678
3678
|
if (g = {
|
|
3679
3679
|
...g
|
|
@@ -3695,7 +3695,7 @@ const theme1 = createTheme({ palette: {
|
|
|
3695
3695
|
const theme2 = createTheme({ palette: {
|
|
3696
3696
|
primary: { main: green[500] },
|
|
3697
3697
|
} });` : ze(12, C ? ` (${C})` : "", JSON.stringify(g.main)));
|
|
3698
|
-
return o ? (Nn(o, g, "light",
|
|
3698
|
+
return o ? (Nn(o, g, "light", N, n), Nn(o, g, "dark", O, n)) : (_n(g, "light", N, n), _n(g, "dark", O, 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 xl(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, N, O) => ({
|
|
3808
3808
|
fontFamily: r,
|
|
3809
3809
|
fontWeight: g,
|
|
3810
3810
|
fontSize: b(C),
|
|
@@ -3813,9 +3813,9 @@ function xl(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: `${Sl(
|
|
3816
|
+
letterSpacing: `${Sl(N / C)}em`
|
|
3817
3817
|
} : {},
|
|
3818
|
-
|
|
3818
|
+
...O,
|
|
3819
3819
|
...d
|
|
3820
3820
|
}), f = {
|
|
3821
3821
|
h1: h(o, 96, 1.167, -1.5),
|
|
@@ -3856,10 +3856,10 @@ function xl(e, t) {
|
|
|
3856
3856
|
});
|
|
3857
3857
|
}
|
|
3858
3858
|
const Cl = 0.2, Tl = 0.14, wl = 0.12;
|
|
3859
|
-
function
|
|
3859
|
+
function le(...e) {
|
|
3860
3860
|
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cl})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Tl})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wl})`].join(",");
|
|
3861
3861
|
}
|
|
3862
|
-
const El = ["none",
|
|
3862
|
+
const El = ["none", le(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), le(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), le(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), le(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), le(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), le(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), le(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), le(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), le(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), le(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), le(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), le(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), le(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), le(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), le(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), le(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), le(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), le(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), le(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), le(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), le(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), le(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), le(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), le(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ol = {
|
|
3863
3863
|
// This is the most common easing curve.
|
|
3864
3864
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3865
3865
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -3882,7 +3882,7 @@ const El = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
|
|
|
3882
3882
|
// recommended when something is leaving screen
|
|
3883
3883
|
leavingScreen: 195
|
|
3884
3884
|
};
|
|
3885
|
-
function
|
|
3885
|
+
function Vn(e) {
|
|
3886
3886
|
return `${Math.round(e)}ms`;
|
|
3887
3887
|
}
|
|
3888
3888
|
function Rl(e) {
|
|
@@ -3912,7 +3912,7 @@ function kl(e) {
|
|
|
3912
3912
|
const m = (p) => typeof p == "string", y = (p) => !Number.isNaN(parseFloat(p));
|
|
3913
3913
|
!m(o) && Array.isArray(o), !y(a) && m(a), m(l), !y(u) && m(u), Object.keys(d).length;
|
|
3914
3914
|
}
|
|
3915
|
-
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof a == "string" ? a :
|
|
3915
|
+
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof a == "string" ? a : Vn(a)} ${l} ${typeof u == "string" ? u : Vn(u)}`).join(",");
|
|
3916
3916
|
},
|
|
3917
3917
|
...e,
|
|
3918
3918
|
easing: t,
|
|
@@ -3930,7 +3930,7 @@ const Al = {
|
|
|
3930
3930
|
tooltip: 1500
|
|
3931
3931
|
};
|
|
3932
3932
|
function Pl(e) {
|
|
3933
|
-
return
|
|
3933
|
+
return ke(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
3934
3934
|
}
|
|
3935
3935
|
function Go(e = {}) {
|
|
3936
3936
|
const t = {
|
|
@@ -3940,7 +3940,7 @@ function Go(e = {}) {
|
|
|
3940
3940
|
const o = Object.entries(n);
|
|
3941
3941
|
for (let i = 0; i < o.length; i++) {
|
|
3942
3942
|
const [a, l] = o[i];
|
|
3943
|
-
!Pl(l) || a.startsWith("unstable_") ? delete n[a] :
|
|
3943
|
+
!Pl(l) || a.startsWith("unstable_") ? delete n[a] : ke(l) && (n[a] = {
|
|
3944
3944
|
...l
|
|
3945
3945
|
}, r(n[a]));
|
|
3946
3946
|
}
|
|
@@ -3954,7 +3954,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
3954
3954
|
|
|
3955
3955
|
export default theme;`;
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function jn(e) {
|
|
3958
3958
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
3959
3959
|
}
|
|
3960
3960
|
const Il = (e) => {
|
|
@@ -3976,11 +3976,11 @@ function Ml(e) {
|
|
|
3976
3976
|
},
|
|
3977
3977
|
lighten(t, r) {
|
|
3978
3978
|
const n = this || e;
|
|
3979
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${
|
|
3979
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${jn(r)})` : ur(t, r);
|
|
3980
3980
|
},
|
|
3981
3981
|
darken(t, r) {
|
|
3982
3982
|
const n = this || e;
|
|
3983
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${
|
|
3983
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${jn(r)})` : cr(t, r);
|
|
3984
3984
|
}
|
|
3985
3985
|
});
|
|
3986
3986
|
}
|
|
@@ -4019,10 +4019,10 @@ 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 N = g[k];
|
|
4023
|
+
if (h.includes(k) && Object.keys(N).length > 0) {
|
|
4024
4024
|
if (process.env.NODE_ENV !== "production") {
|
|
4025
|
-
const
|
|
4025
|
+
const O = xe("", k);
|
|
4026
4026
|
}
|
|
4027
4027
|
g[k] = {};
|
|
4028
4028
|
}
|
|
@@ -4092,7 +4092,7 @@ function Bl(e) {
|
|
|
4092
4092
|
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
4093
4093
|
e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
4094
4094
|
}
|
|
4095
|
-
const Dl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`],
|
|
4095
|
+
const Dl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Vl = (e) => (t, r) => {
|
|
4096
4096
|
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
4097
4097
|
let i = o;
|
|
4098
4098
|
if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
|
|
@@ -4129,25 +4129,25 @@ const Dl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlay
|
|
|
4129
4129
|
}
|
|
4130
4130
|
return n;
|
|
4131
4131
|
};
|
|
4132
|
-
function
|
|
4132
|
+
function jl(e, t) {
|
|
4133
4133
|
t.forEach((r) => {
|
|
4134
4134
|
e[r] || (e[r] = {});
|
|
4135
4135
|
});
|
|
4136
4136
|
}
|
|
4137
|
-
function
|
|
4137
|
+
function S(e, t, r) {
|
|
4138
4138
|
!e[t] && r && (e[t] = r);
|
|
4139
4139
|
}
|
|
4140
4140
|
function ht(e) {
|
|
4141
4141
|
return typeof e != "string" || !e.startsWith("hsl") ? e : zo(e);
|
|
4142
4142
|
}
|
|
4143
|
-
function
|
|
4143
|
+
function Me(e, t) {
|
|
4144
4144
|
`${t}Channel` in e || (e[`${t}Channel`] = mt(ht(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
4145
4145
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
4146
4146
|
}
|
|
4147
4147
|
function zl(e) {
|
|
4148
4148
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
4149
4149
|
}
|
|
4150
|
-
const
|
|
4150
|
+
const Re = (e) => {
|
|
4151
4151
|
try {
|
|
4152
4152
|
return e();
|
|
4153
4153
|
} catch {
|
|
@@ -4211,79 +4211,79 @@ function Ll(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)) && (
|
|
4214
|
+
let N = h;
|
|
4215
|
+
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (N = !0), !N)
|
|
4216
4216
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ze(21, p));
|
|
4217
|
-
let
|
|
4218
|
-
a && (
|
|
4219
|
-
const
|
|
4220
|
-
f && !k.light && Cr(
|
|
4221
|
-
let
|
|
4217
|
+
let O;
|
|
4218
|
+
a && (O = "oklch");
|
|
4219
|
+
const v = Cr(O, k, N, m, p);
|
|
4220
|
+
f && !k.light && Cr(O, k, f, void 0, "light"), g && !k.dark && Cr(O, k, g, void 0, "dark");
|
|
4221
|
+
let w = {
|
|
4222
4222
|
defaultColorScheme: p,
|
|
4223
|
-
...
|
|
4223
|
+
...v,
|
|
4224
4224
|
cssVarPrefix: i,
|
|
4225
4225
|
colorSchemeSelector: u,
|
|
4226
4226
|
rootSelector: d,
|
|
4227
4227
|
getCssVar: b,
|
|
4228
4228
|
colorSchemes: k,
|
|
4229
4229
|
font: {
|
|
4230
|
-
...bl(
|
|
4231
|
-
...
|
|
4230
|
+
...bl(v.typography),
|
|
4231
|
+
...v.font
|
|
4232
4232
|
},
|
|
4233
4233
|
spacing: zl(m.spacing)
|
|
4234
4234
|
};
|
|
4235
|
-
Object.keys(
|
|
4236
|
-
const c =
|
|
4237
|
-
const
|
|
4238
|
-
return b(
|
|
4235
|
+
Object.keys(w.colorSchemes).forEach((_) => {
|
|
4236
|
+
const c = w.colorSchemes[_].palette, T = (B) => {
|
|
4237
|
+
const I = B.split("-"), Y = I[1], J = I[2];
|
|
4238
|
+
return b(B, c[Y][J]);
|
|
4239
4239
|
};
|
|
4240
|
-
c.mode === "light" && (
|
|
4241
|
-
function x(
|
|
4242
|
-
if (
|
|
4243
|
-
let
|
|
4244
|
-
return
|
|
4240
|
+
c.mode === "light" && (S(c.common, "background", "#fff"), S(c.common, "onBackground", "#000")), c.mode === "dark" && (S(c.common, "background", "#000"), S(c.common, "onBackground", "#fff"));
|
|
4241
|
+
function x(B, I, Y) {
|
|
4242
|
+
if (O) {
|
|
4243
|
+
let J;
|
|
4244
|
+
return B === Fe && (J = `transparent ${((1 - Y) * 100).toFixed(0)}%`), B === re && (J = `#000 ${(Y * 100).toFixed(0)}%`), B === ne && (J = `#fff ${(Y * 100).toFixed(0)}%`), `color-mix(in ${O}, ${I}, ${J})`;
|
|
4245
4245
|
}
|
|
4246
|
-
return
|
|
4246
|
+
return B(I, Y);
|
|
4247
4247
|
}
|
|
4248
|
-
if (
|
|
4249
|
-
|
|
4250
|
-
const
|
|
4251
|
-
|
|
4248
|
+
if (jl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
|
|
4249
|
+
S(c.Alert, "errorColor", x(re, c.error.light, 0.6)), S(c.Alert, "infoColor", x(re, c.info.light, 0.6)), S(c.Alert, "successColor", x(re, c.success.light, 0.6)), S(c.Alert, "warningColor", x(re, c.warning.light, 0.6)), S(c.Alert, "errorFilledBg", T("palette-error-main")), S(c.Alert, "infoFilledBg", T("palette-info-main")), S(c.Alert, "successFilledBg", T("palette-success-main")), S(c.Alert, "warningFilledBg", T("palette-warning-main")), S(c.Alert, "errorFilledColor", Re(() => c.getContrastText(c.error.main))), S(c.Alert, "infoFilledColor", Re(() => c.getContrastText(c.info.main))), S(c.Alert, "successFilledColor", Re(() => c.getContrastText(c.success.main))), S(c.Alert, "warningFilledColor", Re(() => c.getContrastText(c.warning.main))), S(c.Alert, "errorStandardBg", x(ne, c.error.light, 0.9)), S(c.Alert, "infoStandardBg", x(ne, c.info.light, 0.9)), S(c.Alert, "successStandardBg", x(ne, c.success.light, 0.9)), S(c.Alert, "warningStandardBg", x(ne, c.warning.light, 0.9)), S(c.Alert, "errorIconColor", T("palette-error-main")), S(c.Alert, "infoIconColor", T("palette-info-main")), S(c.Alert, "successIconColor", T("palette-success-main")), S(c.Alert, "warningIconColor", T("palette-warning-main")), S(c.AppBar, "defaultBg", T("palette-grey-100")), S(c.Avatar, "defaultBg", T("palette-grey-400")), S(c.Button, "inheritContainedBg", T("palette-grey-300")), S(c.Button, "inheritContainedHoverBg", T("palette-grey-A100")), S(c.Chip, "defaultBorder", T("palette-grey-400")), S(c.Chip, "defaultAvatarColor", T("palette-grey-700")), S(c.Chip, "defaultIconColor", T("palette-grey-700")), S(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), S(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), S(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), S(c.LinearProgress, "primaryBg", x(ne, c.primary.main, 0.62)), S(c.LinearProgress, "secondaryBg", x(ne, c.secondary.main, 0.62)), S(c.LinearProgress, "errorBg", x(ne, c.error.main, 0.62)), S(c.LinearProgress, "infoBg", x(ne, c.info.main, 0.62)), S(c.LinearProgress, "successBg", x(ne, c.success.main, 0.62)), S(c.LinearProgress, "warningBg", x(ne, c.warning.main, 0.62)), S(c.Skeleton, "bg", O ? x(Fe, c.text.primary, 0.11) : `rgba(${T("palette-text-primaryChannel")} / 0.11)`), S(c.Slider, "primaryTrack", x(ne, c.primary.main, 0.62)), S(c.Slider, "secondaryTrack", x(ne, c.secondary.main, 0.62)), S(c.Slider, "errorTrack", x(ne, c.error.main, 0.62)), S(c.Slider, "infoTrack", x(ne, c.info.main, 0.62)), S(c.Slider, "successTrack", x(ne, c.success.main, 0.62)), S(c.Slider, "warningTrack", x(ne, c.warning.main, 0.62));
|
|
4250
|
+
const B = O ? x(re, c.background.default, 0.6825) : It(c.background.default, 0.8);
|
|
4251
|
+
S(c.SnackbarContent, "bg", B), S(c.SnackbarContent, "color", Re(() => O ? $r.text.primary : c.getContrastText(B))), S(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), S(c.StepConnector, "border", T("palette-grey-400")), S(c.StepContent, "border", T("palette-grey-400")), S(c.Switch, "defaultColor", T("palette-common-white")), S(c.Switch, "defaultDisabledColor", T("palette-grey-100")), S(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.62)), S(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.62)), S(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.62)), S(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.62)), S(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.62)), S(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.62)), S(c.TableCell, "border", x(ne, x(Fe, c.divider, 1), 0.88)), S(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
|
|
4252
4252
|
}
|
|
4253
4253
|
if (c.mode === "dark") {
|
|
4254
|
-
|
|
4255
|
-
const
|
|
4256
|
-
|
|
4254
|
+
S(c.Alert, "errorColor", x(ne, c.error.light, 0.6)), S(c.Alert, "infoColor", x(ne, c.info.light, 0.6)), S(c.Alert, "successColor", x(ne, c.success.light, 0.6)), S(c.Alert, "warningColor", x(ne, c.warning.light, 0.6)), S(c.Alert, "errorFilledBg", T("palette-error-dark")), S(c.Alert, "infoFilledBg", T("palette-info-dark")), S(c.Alert, "successFilledBg", T("palette-success-dark")), S(c.Alert, "warningFilledBg", T("palette-warning-dark")), S(c.Alert, "errorFilledColor", Re(() => c.getContrastText(c.error.dark))), S(c.Alert, "infoFilledColor", Re(() => c.getContrastText(c.info.dark))), S(c.Alert, "successFilledColor", Re(() => c.getContrastText(c.success.dark))), S(c.Alert, "warningFilledColor", Re(() => c.getContrastText(c.warning.dark))), S(c.Alert, "errorStandardBg", x(re, c.error.light, 0.9)), S(c.Alert, "infoStandardBg", x(re, c.info.light, 0.9)), S(c.Alert, "successStandardBg", x(re, c.success.light, 0.9)), S(c.Alert, "warningStandardBg", x(re, c.warning.light, 0.9)), S(c.Alert, "errorIconColor", T("palette-error-main")), S(c.Alert, "infoIconColor", T("palette-info-main")), S(c.Alert, "successIconColor", T("palette-success-main")), S(c.Alert, "warningIconColor", T("palette-warning-main")), S(c.AppBar, "defaultBg", T("palette-grey-900")), S(c.AppBar, "darkBg", T("palette-background-paper")), S(c.AppBar, "darkColor", T("palette-text-primary")), S(c.Avatar, "defaultBg", T("palette-grey-600")), S(c.Button, "inheritContainedBg", T("palette-grey-800")), S(c.Button, "inheritContainedHoverBg", T("palette-grey-700")), S(c.Chip, "defaultBorder", T("palette-grey-700")), S(c.Chip, "defaultAvatarColor", T("palette-grey-300")), S(c.Chip, "defaultIconColor", T("palette-grey-300")), S(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), S(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), S(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), S(c.LinearProgress, "primaryBg", x(re, c.primary.main, 0.5)), S(c.LinearProgress, "secondaryBg", x(re, c.secondary.main, 0.5)), S(c.LinearProgress, "errorBg", x(re, c.error.main, 0.5)), S(c.LinearProgress, "infoBg", x(re, c.info.main, 0.5)), S(c.LinearProgress, "successBg", x(re, c.success.main, 0.5)), S(c.LinearProgress, "warningBg", x(re, c.warning.main, 0.5)), S(c.Skeleton, "bg", O ? x(Fe, c.text.primary, 0.13) : `rgba(${T("palette-text-primaryChannel")} / 0.13)`), S(c.Slider, "primaryTrack", x(re, c.primary.main, 0.5)), S(c.Slider, "secondaryTrack", x(re, c.secondary.main, 0.5)), S(c.Slider, "errorTrack", x(re, c.error.main, 0.5)), S(c.Slider, "infoTrack", x(re, c.info.main, 0.5)), S(c.Slider, "successTrack", x(re, c.success.main, 0.5)), S(c.Slider, "warningTrack", x(re, c.warning.main, 0.5));
|
|
4255
|
+
const B = O ? x(ne, c.background.default, 0.985) : It(c.background.default, 0.98);
|
|
4256
|
+
S(c.SnackbarContent, "bg", B), S(c.SnackbarContent, "color", Re(() => O ? Fo.text.primary : c.getContrastText(B))), S(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), S(c.StepConnector, "border", T("palette-grey-600")), S(c.StepContent, "border", T("palette-grey-600")), S(c.Switch, "defaultColor", T("palette-grey-300")), S(c.Switch, "defaultDisabledColor", T("palette-grey-600")), S(c.Switch, "primaryDisabledColor", x(re, c.primary.main, 0.55)), S(c.Switch, "secondaryDisabledColor", x(re, c.secondary.main, 0.55)), S(c.Switch, "errorDisabledColor", x(re, c.error.main, 0.55)), S(c.Switch, "infoDisabledColor", x(re, c.info.main, 0.55)), S(c.Switch, "successDisabledColor", x(re, c.success.main, 0.55)), S(c.Switch, "warningDisabledColor", x(re, c.warning.main, 0.55)), S(c.TableCell, "border", x(re, x(Fe, c.divider, 1), 0.68)), S(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
|
|
4257
4257
|
}
|
|
4258
|
-
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4258
|
+
Me(c.background, "default"), Me(c.background, "paper"), Me(c.common, "background"), Me(c.common, "onBackground"), Me(c, "divider"), Object.keys(c).forEach((B) => {
|
|
4259
|
+
const I = c[B];
|
|
4260
|
+
B !== "tonalOffset" && I && typeof I == "object" && (I.main && S(c[B], "mainChannel", mt(ht(I.main))), I.light && S(c[B], "lightChannel", mt(ht(I.light))), I.dark && S(c[B], "darkChannel", mt(ht(I.dark))), I.contrastText && S(c[B], "contrastTextChannel", mt(ht(I.contrastText))), B === "text" && (Me(c[B], "primary"), Me(c[B], "secondary")), B === "action" && (I.active && Me(c[B], "active"), I.selected && Me(c[B], "selected")));
|
|
4261
4261
|
});
|
|
4262
|
-
}),
|
|
4263
|
-
const
|
|
4262
|
+
}), w = t.reduce((_, c) => he(_, c), w);
|
|
4263
|
+
const z = {
|
|
4264
4264
|
prefix: i,
|
|
4265
4265
|
disableCssColorScheme: o,
|
|
4266
4266
|
shouldSkipGeneratingVar: l,
|
|
4267
|
-
getSelector:
|
|
4267
|
+
getSelector: Vl(w),
|
|
4268
4268
|
enableContrastVars: a
|
|
4269
4269
|
}, {
|
|
4270
|
-
vars:
|
|
4271
|
-
generateThemeVars:
|
|
4272
|
-
generateStyleSheets:
|
|
4273
|
-
} = tl(
|
|
4274
|
-
return
|
|
4275
|
-
|
|
4276
|
-
}),
|
|
4270
|
+
vars: X,
|
|
4271
|
+
generateThemeVars: F,
|
|
4272
|
+
generateStyleSheets: q
|
|
4273
|
+
} = tl(w, z);
|
|
4274
|
+
return w.vars = X, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([_, c]) => {
|
|
4275
|
+
w[_] = c;
|
|
4276
|
+
}), w.generateThemeVars = F, w.generateStyleSheets = q, w.generateSpacing = function() {
|
|
4277
4277
|
return Mo(m.spacing, Zt(this));
|
|
4278
|
-
},
|
|
4278
|
+
}, w.getColorSchemeSelector = rl(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
|
|
4279
4279
|
...Ct,
|
|
4280
4280
|
...m?.unstable_sxConfig
|
|
4281
|
-
},
|
|
4281
|
+
}, w.unstable_sx = function(c) {
|
|
4282
4282
|
return Qe({
|
|
4283
4283
|
sx: c,
|
|
4284
4284
|
theme: this
|
|
4285
4285
|
});
|
|
4286
|
-
},
|
|
4286
|
+
}, w.toRuntimeSource = Go, w;
|
|
4287
4287
|
}
|
|
4288
4288
|
function zn(e, t, r) {
|
|
4289
4289
|
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
@@ -4342,22 +4342,22 @@ function Ho(e = {}, ...t) {
|
|
|
4342
4342
|
const Ko = Ho();
|
|
4343
4343
|
function Xo() {
|
|
4344
4344
|
const e = sr(Ko);
|
|
4345
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4345
|
+
return process.env.NODE_ENV !== "production" && V.useDebugValue(e), e[Ur] || e;
|
|
4346
4346
|
}
|
|
4347
4347
|
function Fl(e) {
|
|
4348
4348
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
4349
4349
|
}
|
|
4350
|
-
const Qo = (e) => Fl(e) && e !== "classes",
|
|
4350
|
+
const Qo = (e) => Fl(e) && e !== "classes", me = Bo({
|
|
4351
4351
|
themeId: Ur,
|
|
4352
4352
|
defaultTheme: Ko,
|
|
4353
4353
|
rootShouldForwardProp: Qo
|
|
4354
4354
|
});
|
|
4355
4355
|
process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
|
|
4356
|
-
function
|
|
4356
|
+
function $e(e) {
|
|
4357
4357
|
return Ha(e);
|
|
4358
4358
|
}
|
|
4359
|
-
const Ke =
|
|
4360
|
-
createStyledComponent:
|
|
4359
|
+
const Ke = Va({
|
|
4360
|
+
createStyledComponent: me("div", {
|
|
4361
4361
|
name: "MuiGrid",
|
|
4362
4362
|
slot: "Root",
|
|
4363
4363
|
overridesResolver: (e, t) => {
|
|
@@ -4368,7 +4368,7 @@ const Ke = ja({
|
|
|
4368
4368
|
}
|
|
4369
4369
|
}),
|
|
4370
4370
|
componentName: "MuiGrid",
|
|
4371
|
-
useThemeProps: (e) =>
|
|
4371
|
+
useThemeProps: (e) => $e({
|
|
4372
4372
|
props: e,
|
|
4373
4373
|
name: "MuiGrid"
|
|
4374
4374
|
}),
|
|
@@ -4464,7 +4464,7 @@ process.env.NODE_ENV !== "production" && (Ke.propTypes = {
|
|
|
4464
4464
|
wrap: s.oneOf(["nowrap", "wrap-reverse", "wrap"])
|
|
4465
4465
|
});
|
|
4466
4466
|
if (process.env.NODE_ENV !== "production") {
|
|
4467
|
-
const e = Ke, t =
|
|
4467
|
+
const e = Ke, t = ja("Grid", e);
|
|
4468
4468
|
e.propTypes = {
|
|
4469
4469
|
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
4470
4470
|
...e.propTypes,
|
|
@@ -4536,7 +4536,7 @@ function Ul({
|
|
|
4536
4536
|
values: r
|
|
4537
4537
|
}
|
|
4538
4538
|
) : /* @__PURE__ */ E(
|
|
4539
|
-
|
|
4539
|
+
Vr,
|
|
4540
4540
|
{
|
|
4541
4541
|
control: n.control,
|
|
4542
4542
|
name: e.name,
|
|
@@ -4582,11 +4582,11 @@ const Yl = mi(Ul, (e, t) => {
|
|
|
4582
4582
|
return !1;
|
|
4583
4583
|
return !0;
|
|
4584
4584
|
}), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = cl({
|
|
4585
|
-
createStyledComponent:
|
|
4585
|
+
createStyledComponent: me("div", {
|
|
4586
4586
|
name: "MuiStack",
|
|
4587
4587
|
slot: "Root"
|
|
4588
4588
|
}),
|
|
4589
|
-
useThemeProps: (e) =>
|
|
4589
|
+
useThemeProps: (e) => $e({
|
|
4590
4590
|
props: e,
|
|
4591
4591
|
name: "MuiStack"
|
|
4592
4592
|
})
|
|
@@ -4635,7 +4635,7 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
|
4635
4635
|
*/
|
|
4636
4636
|
useFlexGap: s.bool
|
|
4637
4637
|
});
|
|
4638
|
-
const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }),
|
|
4638
|
+
const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }), Ae = {
|
|
4639
4639
|
"& .MuiInputBase-input": {
|
|
4640
4640
|
fontSize: 14,
|
|
4641
4641
|
padding: "8px 12px"
|
|
@@ -4663,7 +4663,6 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4663
4663
|
listStyle: "none",
|
|
4664
4664
|
maxHeight: 260,
|
|
4665
4665
|
overflow: "auto",
|
|
4666
|
-
/* 所有 option(即 children) */
|
|
4667
4666
|
"& .MuiAutocomplete-option": {
|
|
4668
4667
|
minHeight: 36,
|
|
4669
4668
|
padding: e.spacing(0.75, 1.5),
|
|
@@ -4676,21 +4675,17 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4676
4675
|
transition: e.transitions.create(["background-color"], {
|
|
4677
4676
|
duration: e.transitions.duration.shortest
|
|
4678
4677
|
}),
|
|
4679
|
-
/* hover */
|
|
4680
4678
|
"&:hover": {
|
|
4681
4679
|
backgroundColor: e.palette.action.hover
|
|
4682
4680
|
},
|
|
4683
|
-
/* 选中态 */
|
|
4684
4681
|
'&[aria-selected="true"]': {
|
|
4685
4682
|
backgroundColor: e.palette.action.selected
|
|
4686
4683
|
},
|
|
4687
|
-
/* 禁用态 */
|
|
4688
4684
|
'&[aria-disabled="true"]': {
|
|
4689
4685
|
opacity: 0.5,
|
|
4690
4686
|
cursor: "not-allowed"
|
|
4691
4687
|
}
|
|
4692
4688
|
},
|
|
4693
|
-
/* 你自己加的状态行(loading / empty / error) */
|
|
4694
4689
|
"& .MuiAutocomplete-listboxStatus": {
|
|
4695
4690
|
cursor: "default",
|
|
4696
4691
|
pointerEvents: "none"
|
|
@@ -4705,14 +4700,19 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4705
4700
|
error: l,
|
|
4706
4701
|
...u
|
|
4707
4702
|
} = e;
|
|
4708
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ de(Xl, { ...u, ref: t, children: [
|
|
4709
4704
|
r,
|
|
4710
4705
|
a && !n && /* @__PURE__ */ E(
|
|
4711
4706
|
pt,
|
|
4712
4707
|
{
|
|
4713
4708
|
component: "li",
|
|
4714
4709
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4715
|
-
sx: {
|
|
4710
|
+
sx: {
|
|
4711
|
+
py: 2,
|
|
4712
|
+
justifyContent: "center",
|
|
4713
|
+
pointerEvents: "none",
|
|
4714
|
+
cursor: "default"
|
|
4715
|
+
},
|
|
4716
4716
|
children: /* @__PURE__ */ E(Ot, { variant: "body2", color: "text.secondary", children: "暂无数据" })
|
|
4717
4717
|
}
|
|
4718
4718
|
),
|
|
@@ -4721,16 +4721,31 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4721
4721
|
{
|
|
4722
4722
|
component: "li",
|
|
4723
4723
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4724
|
-
sx: {
|
|
4724
|
+
sx: {
|
|
4725
|
+
py: 2,
|
|
4726
|
+
color: "error.main",
|
|
4727
|
+
justifyContent: "center",
|
|
4728
|
+
pointerEvents: "none",
|
|
4729
|
+
cursor: "default"
|
|
4730
|
+
},
|
|
4725
4731
|
children: /* @__PURE__ */ E(Ot, { variant: "body2", children: "加载失败,请重试" })
|
|
4726
4732
|
}
|
|
4727
4733
|
),
|
|
4728
|
-
n && /* @__PURE__ */
|
|
4734
|
+
n && /* @__PURE__ */ de(
|
|
4729
4735
|
pt,
|
|
4730
4736
|
{
|
|
4731
4737
|
component: "li",
|
|
4732
4738
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4733
|
-
sx: {
|
|
4739
|
+
sx: {
|
|
4740
|
+
py: 1.5,
|
|
4741
|
+
gap: 1,
|
|
4742
|
+
display: "flex",
|
|
4743
|
+
alignItems: "center",
|
|
4744
|
+
justifyContent: "center",
|
|
4745
|
+
pointerEvents: "none",
|
|
4746
|
+
color: "text.secondary",
|
|
4747
|
+
cursor: "default"
|
|
4748
|
+
},
|
|
4734
4749
|
children: [
|
|
4735
4750
|
/* @__PURE__ */ E(bo, { size: 16, color: "inherit" }),
|
|
4736
4751
|
/* @__PURE__ */ E(Ot, { variant: "body2", children: "加载中…" })
|
|
@@ -4742,7 +4757,12 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4742
4757
|
{
|
|
4743
4758
|
component: "li",
|
|
4744
4759
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4745
|
-
sx: {
|
|
4760
|
+
sx: {
|
|
4761
|
+
py: 1.5,
|
|
4762
|
+
justifyContent: "center",
|
|
4763
|
+
pointerEvents: "none",
|
|
4764
|
+
cursor: "default"
|
|
4765
|
+
},
|
|
4746
4766
|
children: /* @__PURE__ */ E(Ot, { variant: "caption", color: "text.disabled", children: "没有更多数据了" })
|
|
4747
4767
|
}
|
|
4748
4768
|
)
|
|
@@ -4757,63 +4777,112 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4757
4777
|
form: a,
|
|
4758
4778
|
schema: l
|
|
4759
4779
|
}) => {
|
|
4760
|
-
const {
|
|
4780
|
+
const {
|
|
4781
|
+
onChange: u,
|
|
4782
|
+
multiple: d = !1,
|
|
4783
|
+
loading: m,
|
|
4784
|
+
...y
|
|
4785
|
+
} = i ?? {}, p = l?.ui?.remoteConfig, b = we(p);
|
|
4761
4786
|
b.current = p;
|
|
4762
|
-
const [h, f] =
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4787
|
+
const [h, f] = Be([]), [g, C] = Be(!1), [k, N] = Be(!1), [O, v] = Be(""), [w, z] = Be(!1), [X, F] = Be(1), [q, _] = Be(!0), c = we(null), T = we(!1), x = p ? h : o, B = p?.pageSize ?? 20, I = we([]);
|
|
4788
|
+
Ve(() => {
|
|
4789
|
+
if (!p) return;
|
|
4790
|
+
const P = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [];
|
|
4791
|
+
if (P.length === 0) return;
|
|
4792
|
+
const D = h.filter(
|
|
4793
|
+
(L) => P.includes(L.value)
|
|
4794
|
+
), j = [...I.current];
|
|
4795
|
+
let W = !1;
|
|
4796
|
+
D.forEach((L) => {
|
|
4797
|
+
j.some((H) => H.value == L.value) || (j.push(L), W = !0);
|
|
4798
|
+
}), W && (I.current = j);
|
|
4799
|
+
}, [e.value, h, p]), Ve(() => {
|
|
4800
|
+
const P = b.current;
|
|
4801
|
+
if (!P?.fetchById || !e.value) return;
|
|
4802
|
+
const j = (Array.isArray(e.value) ? e.value : [e.value]).filter(
|
|
4768
4803
|
// eslint-disable-next-line eqeqeq
|
|
4769
|
-
(
|
|
4804
|
+
(W) => !h.some((L) => L.value == W)
|
|
4770
4805
|
);
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4806
|
+
j.length !== 0 && Promise.all(
|
|
4807
|
+
j.map(async (W) => {
|
|
4808
|
+
try {
|
|
4809
|
+
return await P.fetchById(W);
|
|
4810
|
+
} catch {
|
|
4811
|
+
return null;
|
|
4812
|
+
}
|
|
4813
|
+
})
|
|
4814
|
+
).then((W) => {
|
|
4815
|
+
const L = W.filter(
|
|
4816
|
+
(H) => H !== null
|
|
4817
|
+
);
|
|
4818
|
+
L.length > 0 && (f((H) => {
|
|
4819
|
+
const K = [...H];
|
|
4820
|
+
return L.forEach((ae) => {
|
|
4821
|
+
K.some((M) => M.value == ae.value) || K.push(ae);
|
|
4822
|
+
}), K;
|
|
4823
|
+
}), L.forEach((H) => {
|
|
4824
|
+
I.current.some((K) => K.value == H.value) || I.current.push(H);
|
|
4825
|
+
}));
|
|
4777
4826
|
});
|
|
4778
4827
|
}, [e.value, h]);
|
|
4779
|
-
const
|
|
4780
|
-
async (
|
|
4828
|
+
const Y = ho(
|
|
4829
|
+
async (P, D, j = !1) => {
|
|
4781
4830
|
if (p) {
|
|
4782
|
-
|
|
4831
|
+
j || (F(1), _(!0)), j ? N(!0) : C(!0), p.onLoadingChange?.(!0);
|
|
4783
4832
|
try {
|
|
4784
|
-
const
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4833
|
+
const W = await p.fetchOptions(P, D, B);
|
|
4834
|
+
if (j)
|
|
4835
|
+
f((L) => {
|
|
4836
|
+
const H = W.data.filter(
|
|
4837
|
+
(K) => !L.some((ae) => ae.value === K.value)
|
|
4838
|
+
);
|
|
4839
|
+
return [...L, ...H];
|
|
4840
|
+
});
|
|
4841
|
+
else {
|
|
4842
|
+
const L = [...W.data], H = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [];
|
|
4843
|
+
I.current.filter(
|
|
4844
|
+
(ae) => H.includes(ae.value)
|
|
4845
|
+
).forEach((ae) => {
|
|
4846
|
+
L.some((M) => M.value == ae.value) || L.push(ae);
|
|
4847
|
+
}), f(L);
|
|
4848
|
+
}
|
|
4849
|
+
_(W.hasMore);
|
|
4791
4850
|
} catch {
|
|
4792
4851
|
} finally {
|
|
4793
|
-
|
|
4852
|
+
j ? N(!1) : C(!1), p.onLoadingChange?.(!1);
|
|
4794
4853
|
}
|
|
4795
4854
|
}
|
|
4796
4855
|
},
|
|
4797
|
-
[p,
|
|
4798
|
-
),
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
}, []);
|
|
4810
|
-
const U = (j) => {
|
|
4811
|
-
const W = j.currentTarget;
|
|
4812
|
-
if (!g && !k && F && W.scrollTop + W.clientHeight >= W.scrollHeight - 20) {
|
|
4813
|
-
const O = G + 1;
|
|
4814
|
-
z(O), x($, O, !0);
|
|
4856
|
+
[p, B, e.value]
|
|
4857
|
+
), J = we(null), oe = () => {
|
|
4858
|
+
c.current = e.value, T.current = !1, z(!0), v(""), p && Y("", 1, !1);
|
|
4859
|
+
}, $ = () => {
|
|
4860
|
+
if (z(!1), !T.current && !d) {
|
|
4861
|
+
const P = e.value;
|
|
4862
|
+
if (P != null) {
|
|
4863
|
+
const D = x.find(
|
|
4864
|
+
(j) => j.value === P
|
|
4865
|
+
);
|
|
4866
|
+
D && v(D.label);
|
|
4867
|
+
}
|
|
4815
4868
|
}
|
|
4869
|
+
}, R = (P, D, j) => {
|
|
4870
|
+
j !== "reset" && (v(D), p && (J.current && clearTimeout(J.current), (j === "input" || j === "clear") && (J.current = setTimeout(() => {
|
|
4871
|
+
Y(D, 1, !1);
|
|
4872
|
+
}, p.debounceTimeout ?? 500))));
|
|
4816
4873
|
};
|
|
4874
|
+
Ve(() => () => {
|
|
4875
|
+
J.current && clearTimeout(J.current);
|
|
4876
|
+
}, []);
|
|
4877
|
+
const G = (P) => {
|
|
4878
|
+
const D = P.currentTarget;
|
|
4879
|
+
if (!g && !k && q && D.scrollTop + D.clientHeight >= D.scrollHeight - 20) {
|
|
4880
|
+
const j = X + 1;
|
|
4881
|
+
F(j), Y(O, j, !0);
|
|
4882
|
+
}
|
|
4883
|
+
}, U = () => d ? x.filter(
|
|
4884
|
+
(P) => (e.value ?? []).includes(P.value)
|
|
4885
|
+
) : x.find((P) => P.value === e.value) ?? null;
|
|
4817
4886
|
return /* @__PURE__ */ E(
|
|
4818
4887
|
at,
|
|
4819
4888
|
{
|
|
@@ -4822,36 +4891,36 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4822
4891
|
required: y?.required,
|
|
4823
4892
|
disabled: y?.disabled,
|
|
4824
4893
|
size: "small",
|
|
4825
|
-
sx:
|
|
4894
|
+
sx: Ae,
|
|
4826
4895
|
children: /* @__PURE__ */ E(
|
|
4827
4896
|
wi,
|
|
4828
4897
|
{
|
|
4829
4898
|
multiple: d,
|
|
4830
4899
|
disableCloseOnSelect: d,
|
|
4831
|
-
open:
|
|
4832
|
-
onOpen:
|
|
4833
|
-
onClose:
|
|
4834
|
-
inputValue: p ?
|
|
4835
|
-
onInputChange: p ?
|
|
4836
|
-
options:
|
|
4900
|
+
open: w,
|
|
4901
|
+
onOpen: oe,
|
|
4902
|
+
onClose: $,
|
|
4903
|
+
inputValue: p ? O : void 0,
|
|
4904
|
+
onInputChange: p ? R : void 0,
|
|
4905
|
+
options: x,
|
|
4837
4906
|
loading: g || m,
|
|
4838
|
-
filterOptions: p ? (
|
|
4839
|
-
value:
|
|
4840
|
-
onChange: (
|
|
4841
|
-
|
|
4842
|
-
|
|
4907
|
+
filterOptions: p ? (P) => P : void 0,
|
|
4908
|
+
value: U(),
|
|
4909
|
+
onChange: (P, D) => {
|
|
4910
|
+
T.current = !0;
|
|
4911
|
+
const j = d ? D.map((W) => W.value) : D?.value ?? null;
|
|
4912
|
+
e.onChange(j), !d && D && v(D.label), typeof u == "function" && u(P, D), a?.trigger(e.name);
|
|
4843
4913
|
},
|
|
4844
4914
|
slots: {
|
|
4845
4915
|
listbox: p ? Ql : void 0
|
|
4846
4916
|
},
|
|
4847
4917
|
slotProps: {
|
|
4848
4918
|
listbox: {
|
|
4849
|
-
onScroll: p ?
|
|
4919
|
+
onScroll: p ? G : void 0,
|
|
4850
4920
|
style: { maxHeight: 260 },
|
|
4851
|
-
// 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
|
|
4852
4921
|
...p ? {
|
|
4853
4922
|
fetchingMore: k,
|
|
4854
|
-
hasMore:
|
|
4923
|
+
hasMore: q,
|
|
4855
4924
|
showNoMore: h.length > 0,
|
|
4856
4925
|
empty: h.length === 0 && !g && !k,
|
|
4857
4926
|
error: !1
|
|
@@ -4875,19 +4944,19 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4875
4944
|
}
|
|
4876
4945
|
}
|
|
4877
4946
|
},
|
|
4878
|
-
getOptionLabel: (
|
|
4879
|
-
getOptionKey: (
|
|
4880
|
-
const
|
|
4881
|
-
return typeof
|
|
4947
|
+
getOptionLabel: (P) => P?.label ?? "",
|
|
4948
|
+
getOptionKey: (P) => {
|
|
4949
|
+
const D = P?.key ?? P?.value;
|
|
4950
|
+
return typeof D == "string" || typeof D == "number" ? D : String(D);
|
|
4882
4951
|
},
|
|
4883
|
-
isOptionEqualToValue: (
|
|
4952
|
+
isOptionEqualToValue: (P, D) => P?.value === D?.value,
|
|
4884
4953
|
size: "small",
|
|
4885
4954
|
disabled: y?.disabled,
|
|
4886
|
-
renderOption: (
|
|
4887
|
-
renderInput: (
|
|
4955
|
+
renderOption: (P, D) => /* @__PURE__ */ hi("li", { ...P, key: D.key ?? D.value }, D.listLabel ?? D.label),
|
|
4956
|
+
renderInput: (P) => /* @__PURE__ */ E(
|
|
4888
4957
|
lt,
|
|
4889
4958
|
{
|
|
4890
|
-
...
|
|
4959
|
+
...P,
|
|
4891
4960
|
error: r,
|
|
4892
4961
|
fullWidth: !0,
|
|
4893
4962
|
helperText: n,
|
|
@@ -4897,13 +4966,13 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4897
4966
|
},
|
|
4898
4967
|
required: y?.required,
|
|
4899
4968
|
size: "small",
|
|
4900
|
-
sx:
|
|
4969
|
+
sx: Ae,
|
|
4901
4970
|
slotProps: {
|
|
4902
4971
|
input: {
|
|
4903
|
-
...
|
|
4904
|
-
endAdornment: /* @__PURE__ */
|
|
4972
|
+
...P.InputProps,
|
|
4973
|
+
endAdornment: /* @__PURE__ */ de(Dr, { children: [
|
|
4905
4974
|
g || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
|
|
4906
|
-
|
|
4975
|
+
P.InputProps.endAdornment
|
|
4907
4976
|
] })
|
|
4908
4977
|
}
|
|
4909
4978
|
}
|
|
@@ -4913,7 +4982,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4913
4982
|
)
|
|
4914
4983
|
}
|
|
4915
4984
|
);
|
|
4916
|
-
}, Se = (e, t) => t ? /* @__PURE__ */
|
|
4985
|
+
}, Se = (e, t) => t ? /* @__PURE__ */ de("span", { style: { display: "flex", alignItems: "center" }, children: [
|
|
4917
4986
|
/* @__PURE__ */ E(
|
|
4918
4987
|
"span",
|
|
4919
4988
|
{
|
|
@@ -4929,9 +4998,9 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4929
4998
|
}
|
|
4930
4999
|
),
|
|
4931
5000
|
e
|
|
4932
|
-
] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */
|
|
5001
|
+
] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ de(at, { error: r, required: o?.required, component: "fieldset", children: [
|
|
4933
5002
|
/* @__PURE__ */ E(
|
|
4934
|
-
|
|
5003
|
+
jr,
|
|
4935
5004
|
{
|
|
4936
5005
|
control: /* @__PURE__ */ E(
|
|
4937
5006
|
Ei,
|
|
@@ -4984,7 +5053,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4984
5053
|
helperText: n,
|
|
4985
5054
|
fullWidth: !0,
|
|
4986
5055
|
size: "small",
|
|
4987
|
-
sx:
|
|
5056
|
+
sx: Ae,
|
|
4988
5057
|
...d
|
|
4989
5058
|
}
|
|
4990
5059
|
);
|
|
@@ -5009,7 +5078,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
5009
5078
|
helperText: n,
|
|
5010
5079
|
required: o?.required,
|
|
5011
5080
|
size: "small",
|
|
5012
|
-
sx:
|
|
5081
|
+
sx: Ae
|
|
5013
5082
|
}
|
|
5014
5083
|
},
|
|
5015
5084
|
...o
|
|
@@ -5037,7 +5106,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
5037
5106
|
helperText: n,
|
|
5038
5107
|
required: o?.required,
|
|
5039
5108
|
size: "small",
|
|
5040
|
-
sx:
|
|
5109
|
+
sx: Ae,
|
|
5041
5110
|
onBlur: () => i?.trigger(e.name)
|
|
5042
5111
|
}
|
|
5043
5112
|
},
|
|
@@ -5047,11 +5116,11 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
5047
5116
|
function Jl() {
|
|
5048
5117
|
return ir;
|
|
5049
5118
|
}
|
|
5050
|
-
const
|
|
5119
|
+
const Oe = Qa;
|
|
5051
5120
|
function Zl(e) {
|
|
5052
5121
|
return xe("MuiSvgIcon", e);
|
|
5053
5122
|
}
|
|
5054
|
-
|
|
5123
|
+
Ie("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
5055
5124
|
const ec = (e) => {
|
|
5056
5125
|
const {
|
|
5057
5126
|
color: t,
|
|
@@ -5060,8 +5129,8 @@ const ec = (e) => {
|
|
|
5060
5129
|
} = e, o = {
|
|
5061
5130
|
root: ["root", t !== "inherit" && `color${Z(t)}`, `fontSize${Z(r)}`]
|
|
5062
5131
|
};
|
|
5063
|
-
return
|
|
5064
|
-
}, tc =
|
|
5132
|
+
return Pe(o, Zl, n);
|
|
5133
|
+
}, tc = me("svg", {
|
|
5065
5134
|
name: "MuiSvgIcon",
|
|
5066
5135
|
slot: "Root",
|
|
5067
5136
|
overridesResolver: (e, t) => {
|
|
@@ -5070,7 +5139,7 @@ const ec = (e) => {
|
|
|
5070
5139
|
} = e;
|
|
5071
5140
|
return [t.root, r.color !== "inherit" && t[`color${Z(r.color)}`], t[`fontSize${Z(r.fontSize)}`]];
|
|
5072
5141
|
}
|
|
5073
|
-
})(
|
|
5142
|
+
})(Oe(({
|
|
5074
5143
|
theme: e
|
|
5075
5144
|
}) => ({
|
|
5076
5145
|
userSelect: "none",
|
|
@@ -5156,8 +5225,8 @@ const ec = (e) => {
|
|
|
5156
5225
|
}
|
|
5157
5226
|
}
|
|
5158
5227
|
]
|
|
5159
|
-
}))), qt = /* @__PURE__ */
|
|
5160
|
-
const n =
|
|
5228
|
+
}))), qt = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
5229
|
+
const n = $e({
|
|
5161
5230
|
props: t,
|
|
5162
5231
|
name: "MuiSvgIcon"
|
|
5163
5232
|
}), {
|
|
@@ -5171,7 +5240,7 @@ const ec = (e) => {
|
|
|
5171
5240
|
titleAccess: y,
|
|
5172
5241
|
viewBox: p = "0 0 24 24",
|
|
5173
5242
|
...b
|
|
5174
|
-
} = n, h = /* @__PURE__ */
|
|
5243
|
+
} = n, h = /* @__PURE__ */ V.isValidElement(o) && o.type === "svg", f = {
|
|
5175
5244
|
...n,
|
|
5176
5245
|
color: a,
|
|
5177
5246
|
component: l,
|
|
@@ -5183,9 +5252,9 @@ const ec = (e) => {
|
|
|
5183
5252
|
}, g = {};
|
|
5184
5253
|
m || (g.viewBox = p);
|
|
5185
5254
|
const C = ec(f);
|
|
5186
|
-
return /* @__PURE__ */
|
|
5255
|
+
return /* @__PURE__ */ de(tc, {
|
|
5187
5256
|
as: l,
|
|
5188
|
-
className:
|
|
5257
|
+
className: fe(C.root, i),
|
|
5189
5258
|
focusable: "false",
|
|
5190
5259
|
color: d,
|
|
5191
5260
|
"aria-hidden": y ? void 0 : !0,
|
|
@@ -5282,19 +5351,19 @@ function Kr(e, t) {
|
|
|
5282
5351
|
children: e
|
|
5283
5352
|
});
|
|
5284
5353
|
}
|
|
5285
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = qt.muiName, /* @__PURE__ */
|
|
5354
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = qt.muiName, /* @__PURE__ */ V.memo(/* @__PURE__ */ V.forwardRef(r));
|
|
5286
5355
|
}
|
|
5287
5356
|
function Dt(e) {
|
|
5288
|
-
const t =
|
|
5357
|
+
const t = V.useRef(e);
|
|
5289
5358
|
return Wa(() => {
|
|
5290
5359
|
t.current = e;
|
|
5291
|
-
}),
|
|
5360
|
+
}), V.useRef((...r) => (
|
|
5292
5361
|
// @ts-expect-error hide `this`
|
|
5293
5362
|
(0, t.current)(...r)
|
|
5294
5363
|
)).current;
|
|
5295
5364
|
}
|
|
5296
5365
|
function Yn(...e) {
|
|
5297
|
-
const t =
|
|
5366
|
+
const t = V.useRef(void 0), r = V.useCallback((n) => {
|
|
5298
5367
|
const o = e.map((i) => {
|
|
5299
5368
|
if (i == null)
|
|
5300
5369
|
return null;
|
|
@@ -5312,7 +5381,7 @@ function Yn(...e) {
|
|
|
5312
5381
|
o.forEach((i) => i?.());
|
|
5313
5382
|
};
|
|
5314
5383
|
}, e);
|
|
5315
|
-
return
|
|
5384
|
+
return V.useMemo(() => e.every((n) => n == null) ? null : (n) => {
|
|
5316
5385
|
t.current && (t.current(), t.current = void 0), n != null && (t.current = r(n));
|
|
5317
5386
|
}, e);
|
|
5318
5387
|
}
|
|
@@ -5322,7 +5391,7 @@ const rc = Kr(/* @__PURE__ */ E("path", {
|
|
|
5322
5391
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
|
|
5323
5392
|
}), "ContentCopy"), oc = Kr(/* @__PURE__ */ E("path", {
|
|
5324
5393
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
5325
|
-
}), "Delete"), ic =
|
|
5394
|
+
}), "Delete"), ic = Ie("MuiBox", ["root"]), sc = Ho(), Gt = za({
|
|
5326
5395
|
themeId: Ur,
|
|
5327
5396
|
defaultTheme: sc,
|
|
5328
5397
|
defaultClassName: ic.root,
|
|
@@ -5381,7 +5450,7 @@ function Hn(e) {
|
|
|
5381
5450
|
}
|
|
5382
5451
|
const Kn = {};
|
|
5383
5452
|
function Zo(e, t) {
|
|
5384
|
-
const r =
|
|
5453
|
+
const r = V.useRef(Kn);
|
|
5385
5454
|
return r.current === Kn && (r.current = e(t)), r;
|
|
5386
5455
|
}
|
|
5387
5456
|
class Ut {
|
|
@@ -5394,8 +5463,8 @@ class Ut {
|
|
|
5394
5463
|
return new Ut();
|
|
5395
5464
|
}
|
|
5396
5465
|
static use() {
|
|
5397
|
-
const t = Zo(Ut.create).current, [r, n] =
|
|
5398
|
-
return t.shouldMount = r, t.setShouldMount = n,
|
|
5466
|
+
const t = Zo(Ut.create).current, [r, n] = V.useState(!1);
|
|
5467
|
+
return t.shouldMount = r, t.setShouldMount = n, V.useEffect(t.mountEffect, [r]), t;
|
|
5399
5468
|
}
|
|
5400
5469
|
constructor() {
|
|
5401
5470
|
this.ref = {
|
|
@@ -5638,7 +5707,7 @@ Qr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5638
5707
|
Qr.defaultProps = Sc;
|
|
5639
5708
|
const xc = [];
|
|
5640
5709
|
function Cc(e) {
|
|
5641
|
-
|
|
5710
|
+
V.useEffect(e, xc);
|
|
5642
5711
|
}
|
|
5643
5712
|
class Jr {
|
|
5644
5713
|
static create() {
|
|
@@ -5673,13 +5742,13 @@ function ei(e) {
|
|
|
5673
5742
|
in: l,
|
|
5674
5743
|
onExited: u,
|
|
5675
5744
|
timeout: d
|
|
5676
|
-
} = e, [m, y] =
|
|
5745
|
+
} = e, [m, y] = V.useState(!1), p = fe(t, r.ripple, r.rippleVisible, n && r.ripplePulsate), b = {
|
|
5677
5746
|
width: a,
|
|
5678
5747
|
height: a,
|
|
5679
5748
|
top: -(a / 2) + i,
|
|
5680
5749
|
left: -(a / 2) + o
|
|
5681
|
-
}, h =
|
|
5682
|
-
return !l && !m && y(!0),
|
|
5750
|
+
}, h = fe(r.child, m && r.childLeaving, n && r.childPulsate);
|
|
5751
|
+
return !l && !m && y(!0), V.useEffect(() => {
|
|
5683
5752
|
if (!l && u != null) {
|
|
5684
5753
|
const f = setTimeout(u, d);
|
|
5685
5754
|
return () => {
|
|
@@ -5729,7 +5798,7 @@ process.env.NODE_ENV !== "production" && (ei.propTypes = {
|
|
|
5729
5798
|
*/
|
|
5730
5799
|
timeout: s.number.isRequired
|
|
5731
5800
|
});
|
|
5732
|
-
const be =
|
|
5801
|
+
const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, wc = 80, Ec = St`
|
|
5733
5802
|
0% {
|
|
5734
5803
|
transform: scale(0);
|
|
5735
5804
|
opacity: 0.1;
|
|
@@ -5759,7 +5828,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5759
5828
|
100% {
|
|
5760
5829
|
transform: scale(1);
|
|
5761
5830
|
}
|
|
5762
|
-
`, Rc =
|
|
5831
|
+
`, Rc = me("span", {
|
|
5763
5832
|
name: "MuiTouchRipple",
|
|
5764
5833
|
slot: "Root"
|
|
5765
5834
|
})({
|
|
@@ -5772,7 +5841,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5772
5841
|
bottom: 0,
|
|
5773
5842
|
left: 0,
|
|
5774
5843
|
borderRadius: "inherit"
|
|
5775
|
-
}), kc =
|
|
5844
|
+
}), kc = me(ei, {
|
|
5776
5845
|
name: "MuiTouchRipple",
|
|
5777
5846
|
slot: "Ripple"
|
|
5778
5847
|
})`
|
|
@@ -5826,8 +5895,8 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5826
5895
|
animation-iteration-count: infinite;
|
|
5827
5896
|
animation-delay: 200ms;
|
|
5828
5897
|
}
|
|
5829
|
-
`, ti = /* @__PURE__ */
|
|
5830
|
-
const n =
|
|
5898
|
+
`, ti = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
5899
|
+
const n = $e({
|
|
5831
5900
|
props: t,
|
|
5832
5901
|
name: "MuiTouchRipple"
|
|
5833
5902
|
}), {
|
|
@@ -5835,104 +5904,104 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5835
5904
|
classes: i = {},
|
|
5836
5905
|
className: a,
|
|
5837
5906
|
...l
|
|
5838
|
-
} = n, [u, d] =
|
|
5839
|
-
|
|
5907
|
+
} = n, [u, d] = V.useState([]), m = V.useRef(0), y = V.useRef(null);
|
|
5908
|
+
V.useEffect(() => {
|
|
5840
5909
|
y.current && (y.current(), y.current = null);
|
|
5841
5910
|
}, [u]);
|
|
5842
|
-
const p =
|
|
5911
|
+
const p = V.useRef(!1), b = Tc(), h = V.useRef(null), f = V.useRef(null), g = V.useCallback((O) => {
|
|
5843
5912
|
const {
|
|
5844
|
-
pulsate:
|
|
5845
|
-
rippleX:
|
|
5846
|
-
rippleY:
|
|
5847
|
-
rippleSize:
|
|
5848
|
-
cb:
|
|
5849
|
-
} =
|
|
5850
|
-
d((
|
|
5913
|
+
pulsate: v,
|
|
5914
|
+
rippleX: w,
|
|
5915
|
+
rippleY: z,
|
|
5916
|
+
rippleSize: X,
|
|
5917
|
+
cb: F
|
|
5918
|
+
} = O;
|
|
5919
|
+
d((q) => [...q, /* @__PURE__ */ E(kc, {
|
|
5851
5920
|
classes: {
|
|
5852
|
-
ripple:
|
|
5853
|
-
rippleVisible:
|
|
5854
|
-
ripplePulsate:
|
|
5855
|
-
child:
|
|
5856
|
-
childLeaving:
|
|
5857
|
-
childPulsate:
|
|
5921
|
+
ripple: fe(i.ripple, be.ripple),
|
|
5922
|
+
rippleVisible: fe(i.rippleVisible, be.rippleVisible),
|
|
5923
|
+
ripplePulsate: fe(i.ripplePulsate, be.ripplePulsate),
|
|
5924
|
+
child: fe(i.child, be.child),
|
|
5925
|
+
childLeaving: fe(i.childLeaving, be.childLeaving),
|
|
5926
|
+
childPulsate: fe(i.childPulsate, be.childPulsate)
|
|
5858
5927
|
},
|
|
5859
5928
|
timeout: Ir,
|
|
5860
|
-
pulsate:
|
|
5861
|
-
rippleX:
|
|
5862
|
-
rippleY:
|
|
5863
|
-
rippleSize:
|
|
5864
|
-
}, m.current)]), m.current += 1, y.current =
|
|
5865
|
-
}, [i]), C =
|
|
5929
|
+
pulsate: v,
|
|
5930
|
+
rippleX: w,
|
|
5931
|
+
rippleY: z,
|
|
5932
|
+
rippleSize: X
|
|
5933
|
+
}, m.current)]), m.current += 1, y.current = F;
|
|
5934
|
+
}, [i]), C = V.useCallback((O = {}, v = {}, w = () => {
|
|
5866
5935
|
}) => {
|
|
5867
5936
|
const {
|
|
5868
|
-
pulsate:
|
|
5869
|
-
center:
|
|
5870
|
-
fakeElement:
|
|
5937
|
+
pulsate: z = !1,
|
|
5938
|
+
center: X = o || v.pulsate,
|
|
5939
|
+
fakeElement: F = !1
|
|
5871
5940
|
// For test purposes
|
|
5872
|
-
} =
|
|
5873
|
-
if (
|
|
5941
|
+
} = v;
|
|
5942
|
+
if (O?.type === "mousedown" && p.current) {
|
|
5874
5943
|
p.current = !1;
|
|
5875
5944
|
return;
|
|
5876
5945
|
}
|
|
5877
|
-
|
|
5878
|
-
const
|
|
5946
|
+
O?.type === "touchstart" && (p.current = !0);
|
|
5947
|
+
const q = F ? null : f.current, _ = q ? q.getBoundingClientRect() : {
|
|
5879
5948
|
width: 0,
|
|
5880
5949
|
height: 0,
|
|
5881
5950
|
left: 0,
|
|
5882
5951
|
top: 0
|
|
5883
5952
|
};
|
|
5884
|
-
let c,
|
|
5885
|
-
if (
|
|
5886
|
-
c = Math.round(
|
|
5953
|
+
let c, T, x;
|
|
5954
|
+
if (X || O === void 0 || O.clientX === 0 && O.clientY === 0 || !O.clientX && !O.touches)
|
|
5955
|
+
c = Math.round(_.width / 2), T = Math.round(_.height / 2);
|
|
5887
5956
|
else {
|
|
5888
5957
|
const {
|
|
5889
|
-
clientX:
|
|
5890
|
-
clientY:
|
|
5891
|
-
} =
|
|
5892
|
-
c = Math.round(
|
|
5958
|
+
clientX: B,
|
|
5959
|
+
clientY: I
|
|
5960
|
+
} = O.touches && O.touches.length > 0 ? O.touches[0] : O;
|
|
5961
|
+
c = Math.round(B - _.left), T = Math.round(I - _.top);
|
|
5893
5962
|
}
|
|
5894
|
-
if (
|
|
5895
|
-
x = Math.sqrt((2 *
|
|
5963
|
+
if (X)
|
|
5964
|
+
x = Math.sqrt((2 * _.width ** 2 + _.height ** 2) / 3), x % 2 === 0 && (x += 1);
|
|
5896
5965
|
else {
|
|
5897
|
-
const
|
|
5898
|
-
x = Math.sqrt(
|
|
5966
|
+
const B = Math.max(Math.abs((q ? q.clientWidth : 0) - c), c) * 2 + 2, I = Math.max(Math.abs((q ? q.clientHeight : 0) - T), T) * 2 + 2;
|
|
5967
|
+
x = Math.sqrt(B ** 2 + I ** 2);
|
|
5899
5968
|
}
|
|
5900
|
-
|
|
5969
|
+
O?.touches ? h.current === null && (h.current = () => {
|
|
5901
5970
|
g({
|
|
5902
|
-
pulsate:
|
|
5971
|
+
pulsate: z,
|
|
5903
5972
|
rippleX: c,
|
|
5904
|
-
rippleY:
|
|
5973
|
+
rippleY: T,
|
|
5905
5974
|
rippleSize: x,
|
|
5906
|
-
cb:
|
|
5975
|
+
cb: w
|
|
5907
5976
|
});
|
|
5908
5977
|
}, b.start(wc, () => {
|
|
5909
5978
|
h.current && (h.current(), h.current = null);
|
|
5910
5979
|
})) : g({
|
|
5911
|
-
pulsate:
|
|
5980
|
+
pulsate: z,
|
|
5912
5981
|
rippleX: c,
|
|
5913
|
-
rippleY:
|
|
5982
|
+
rippleY: T,
|
|
5914
5983
|
rippleSize: x,
|
|
5915
|
-
cb:
|
|
5984
|
+
cb: w
|
|
5916
5985
|
});
|
|
5917
|
-
}, [o, g, b]), k =
|
|
5986
|
+
}, [o, g, b]), k = V.useCallback(() => {
|
|
5918
5987
|
C({}, {
|
|
5919
5988
|
pulsate: !0
|
|
5920
5989
|
});
|
|
5921
|
-
}, [C]),
|
|
5922
|
-
if (b.clear(),
|
|
5990
|
+
}, [C]), N = V.useCallback((O, v) => {
|
|
5991
|
+
if (b.clear(), O?.type === "touchend" && h.current) {
|
|
5923
5992
|
h.current(), h.current = null, b.start(0, () => {
|
|
5924
|
-
|
|
5993
|
+
N(O, v);
|
|
5925
5994
|
});
|
|
5926
5995
|
return;
|
|
5927
5996
|
}
|
|
5928
|
-
h.current = null, d((
|
|
5997
|
+
h.current = null, d((w) => w.length > 0 ? w.slice(1) : w), y.current = v;
|
|
5929
5998
|
}, [b]);
|
|
5930
|
-
return
|
|
5999
|
+
return V.useImperativeHandle(r, () => ({
|
|
5931
6000
|
pulsate: k,
|
|
5932
6001
|
start: C,
|
|
5933
|
-
stop:
|
|
5934
|
-
}), [k, C,
|
|
5935
|
-
className:
|
|
6002
|
+
stop: N
|
|
6003
|
+
}), [k, C, N]), /* @__PURE__ */ E(Rc, {
|
|
6004
|
+
className: fe(be.root, i.root, a),
|
|
5936
6005
|
ref: f,
|
|
5937
6006
|
...l,
|
|
5938
6007
|
children: /* @__PURE__ */ E(Qr, {
|
|
@@ -5960,17 +6029,17 @@ process.env.NODE_ENV !== "production" && (ti.propTypes = {
|
|
|
5960
6029
|
function Ac(e) {
|
|
5961
6030
|
return xe("MuiButtonBase", e);
|
|
5962
6031
|
}
|
|
5963
|
-
const Pc =
|
|
6032
|
+
const Pc = Ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) => {
|
|
5964
6033
|
const {
|
|
5965
6034
|
disabled: t,
|
|
5966
6035
|
focusVisible: r,
|
|
5967
6036
|
focusVisibleClassName: n,
|
|
5968
6037
|
classes: o
|
|
5969
|
-
} = e, a =
|
|
6038
|
+
} = e, a = Pe({
|
|
5970
6039
|
root: ["root", t && "disabled", r && "focusVisible"]
|
|
5971
6040
|
}, Ac, o);
|
|
5972
6041
|
return r && n && (a.root += ` ${n}`), a;
|
|
5973
|
-
}, Mc =
|
|
6042
|
+
}, Mc = me("button", {
|
|
5974
6043
|
name: "MuiButtonBase",
|
|
5975
6044
|
slot: "Root"
|
|
5976
6045
|
})({
|
|
@@ -6012,8 +6081,8 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
|
|
|
6012
6081
|
"@media print": {
|
|
6013
6082
|
colorAdjust: "exact"
|
|
6014
6083
|
}
|
|
6015
|
-
}), Zr = /* @__PURE__ */
|
|
6016
|
-
const n =
|
|
6084
|
+
}), Zr = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
6085
|
+
const n = $e({
|
|
6017
6086
|
props: t,
|
|
6018
6087
|
name: "MuiButtonBase"
|
|
6019
6088
|
}), {
|
|
@@ -6032,58 +6101,58 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
|
|
|
6032
6101
|
onClick: g,
|
|
6033
6102
|
onContextMenu: C,
|
|
6034
6103
|
onDragLeave: k,
|
|
6035
|
-
onFocus:
|
|
6036
|
-
onFocusVisible:
|
|
6037
|
-
onKeyDown:
|
|
6038
|
-
onKeyUp:
|
|
6039
|
-
onMouseDown:
|
|
6040
|
-
onMouseLeave:
|
|
6041
|
-
onMouseUp:
|
|
6042
|
-
onTouchEnd:
|
|
6043
|
-
onTouchMove:
|
|
6104
|
+
onFocus: N,
|
|
6105
|
+
onFocusVisible: O,
|
|
6106
|
+
onKeyDown: v,
|
|
6107
|
+
onKeyUp: w,
|
|
6108
|
+
onMouseDown: z,
|
|
6109
|
+
onMouseLeave: X,
|
|
6110
|
+
onMouseUp: F,
|
|
6111
|
+
onTouchEnd: q,
|
|
6112
|
+
onTouchMove: _,
|
|
6044
6113
|
onTouchStart: c,
|
|
6045
|
-
tabIndex:
|
|
6114
|
+
tabIndex: T = 0,
|
|
6046
6115
|
TouchRippleProps: x,
|
|
6047
|
-
touchRippleRef:
|
|
6048
|
-
type:
|
|
6049
|
-
...
|
|
6050
|
-
} = n,
|
|
6051
|
-
d && R &&
|
|
6116
|
+
touchRippleRef: B,
|
|
6117
|
+
type: I,
|
|
6118
|
+
...Y
|
|
6119
|
+
} = n, J = V.useRef(null), oe = fc(), $ = Yn(oe.ref, B), [R, G] = V.useState(!1);
|
|
6120
|
+
d && R && G(!1), V.useImperativeHandle(o, () => ({
|
|
6052
6121
|
focusVisible: () => {
|
|
6053
|
-
|
|
6122
|
+
G(!0), J.current.focus();
|
|
6054
6123
|
}
|
|
6055
6124
|
}), []);
|
|
6056
|
-
const
|
|
6057
|
-
|
|
6058
|
-
R && p && !m &&
|
|
6059
|
-
}, [m, p, R,
|
|
6060
|
-
const
|
|
6061
|
-
R &&
|
|
6062
|
-
}, y),
|
|
6063
|
-
Hn(
|
|
6064
|
-
}, !1), ye = Dt((
|
|
6065
|
-
|
|
6066
|
-
}),
|
|
6067
|
-
const
|
|
6068
|
-
return u && u !== "button" && !(
|
|
6069
|
-
}, wt = Dt((
|
|
6070
|
-
p && !
|
|
6071
|
-
|
|
6072
|
-
}),
|
|
6073
|
-
}), fi = Dt((
|
|
6074
|
-
p &&
|
|
6075
|
-
|
|
6076
|
-
}),
|
|
6125
|
+
const U = oe.shouldMount && !m && !d;
|
|
6126
|
+
V.useEffect(() => {
|
|
6127
|
+
R && p && !m && oe.pulsate();
|
|
6128
|
+
}, [m, p, R, oe]);
|
|
6129
|
+
const P = _e(oe, "start", z, y), D = _e(oe, "stop", C, y), j = _e(oe, "stop", k, y), W = _e(oe, "stop", F, y), L = _e(oe, "stop", (Q) => {
|
|
6130
|
+
R && Q.preventDefault(), X && X(Q);
|
|
6131
|
+
}, y), H = _e(oe, "start", c, y), K = _e(oe, "stop", q, y), ae = _e(oe, "stop", _, y), M = _e(oe, "stop", (Q) => {
|
|
6132
|
+
Hn(Q.target) || G(!1), f && f(Q);
|
|
6133
|
+
}, !1), ye = Dt((Q) => {
|
|
6134
|
+
J.current || (J.current = Q.currentTarget), Hn(Q.target) && (G(!0), O && O(Q)), N && N(Q);
|
|
6135
|
+
}), Ne = () => {
|
|
6136
|
+
const Q = J.current;
|
|
6137
|
+
return u && u !== "button" && !(Q.tagName === "A" && Q.href);
|
|
6138
|
+
}, wt = Dt((Q) => {
|
|
6139
|
+
p && !Q.repeat && R && Q.key === " " && oe.stop(Q, () => {
|
|
6140
|
+
oe.start(Q);
|
|
6141
|
+
}), Q.target === Q.currentTarget && Ne() && Q.key === " " && Q.preventDefault(), v && v(Q), Q.target === Q.currentTarget && Ne() && Q.key === "Enter" && !d && (Q.preventDefault(), g && g(Q));
|
|
6142
|
+
}), fi = Dt((Q) => {
|
|
6143
|
+
p && Q.key === " " && R && !Q.defaultPrevented && oe.stop(Q, () => {
|
|
6144
|
+
oe.pulsate(Q);
|
|
6145
|
+
}), w && w(Q), g && Q.target === Q.currentTarget && Ne() && Q.key === " " && !Q.defaultPrevented && g(Q);
|
|
6077
6146
|
});
|
|
6078
6147
|
let Et = u;
|
|
6079
|
-
Et === "button" && (
|
|
6148
|
+
Et === "button" && (Y.href || Y.to) && (Et = h);
|
|
6080
6149
|
const ut = {};
|
|
6081
6150
|
if (Et === "button") {
|
|
6082
|
-
const
|
|
6083
|
-
ut.type =
|
|
6151
|
+
const Q = !!Y.formAction;
|
|
6152
|
+
ut.type = I === void 0 && !Q ? "button" : I, ut.disabled = d;
|
|
6084
6153
|
} else
|
|
6085
|
-
!
|
|
6086
|
-
const di = Yn(r,
|
|
6154
|
+
!Y.href && !Y.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
|
|
6155
|
+
const di = Yn(r, J), rn = {
|
|
6087
6156
|
...n,
|
|
6088
6157
|
centerRipple: i,
|
|
6089
6158
|
component: u,
|
|
@@ -6091,39 +6160,39 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
|
|
|
6091
6160
|
disableRipple: m,
|
|
6092
6161
|
disableTouchRipple: y,
|
|
6093
6162
|
focusRipple: p,
|
|
6094
|
-
tabIndex:
|
|
6163
|
+
tabIndex: T,
|
|
6095
6164
|
focusVisible: R
|
|
6096
6165
|
}, pi = Ic(rn);
|
|
6097
|
-
return /* @__PURE__ */
|
|
6166
|
+
return /* @__PURE__ */ de(Mc, {
|
|
6098
6167
|
as: Et,
|
|
6099
|
-
className:
|
|
6168
|
+
className: fe(pi.root, l),
|
|
6100
6169
|
ownerState: rn,
|
|
6101
|
-
onBlur:
|
|
6170
|
+
onBlur: M,
|
|
6102
6171
|
onClick: g,
|
|
6103
|
-
onContextMenu:
|
|
6172
|
+
onContextMenu: D,
|
|
6104
6173
|
onFocus: ye,
|
|
6105
6174
|
onKeyDown: wt,
|
|
6106
6175
|
onKeyUp: fi,
|
|
6107
|
-
onMouseDown:
|
|
6108
|
-
onMouseLeave:
|
|
6109
|
-
onMouseUp:
|
|
6110
|
-
onDragLeave:
|
|
6111
|
-
onTouchEnd:
|
|
6112
|
-
onTouchMove:
|
|
6113
|
-
onTouchStart:
|
|
6176
|
+
onMouseDown: P,
|
|
6177
|
+
onMouseLeave: L,
|
|
6178
|
+
onMouseUp: W,
|
|
6179
|
+
onDragLeave: j,
|
|
6180
|
+
onTouchEnd: K,
|
|
6181
|
+
onTouchMove: ae,
|
|
6182
|
+
onTouchStart: H,
|
|
6114
6183
|
ref: di,
|
|
6115
|
-
tabIndex: d ? -1 :
|
|
6116
|
-
type:
|
|
6184
|
+
tabIndex: d ? -1 : T,
|
|
6185
|
+
type: I,
|
|
6117
6186
|
...ut,
|
|
6118
|
-
...
|
|
6119
|
-
children: [a,
|
|
6120
|
-
ref:
|
|
6187
|
+
...Y,
|
|
6188
|
+
children: [a, U ? /* @__PURE__ */ E(ti, {
|
|
6189
|
+
ref: $,
|
|
6121
6190
|
center: i,
|
|
6122
6191
|
...x
|
|
6123
6192
|
}) : null]
|
|
6124
6193
|
});
|
|
6125
6194
|
});
|
|
6126
|
-
function
|
|
6195
|
+
function _e(e, t, r, n = !1) {
|
|
6127
6196
|
return Dt((o) => (r && r(o), n || e[t](o), !0));
|
|
6128
6197
|
}
|
|
6129
6198
|
process.env.NODE_ENV !== "production" && (Zr.propTypes = {
|
|
@@ -6305,7 +6374,7 @@ function vt(e = []) {
|
|
|
6305
6374
|
function Bc(e) {
|
|
6306
6375
|
return xe("MuiCircularProgress", e);
|
|
6307
6376
|
}
|
|
6308
|
-
|
|
6377
|
+
Ie("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
6309
6378
|
const Te = 44, Mr = St`
|
|
6310
6379
|
0% {
|
|
6311
6380
|
transform: rotate(0deg);
|
|
@@ -6331,9 +6400,9 @@ const Te = 44, Mr = St`
|
|
|
6331
6400
|
}
|
|
6332
6401
|
`, Dc = typeof Mr != "string" ? go`
|
|
6333
6402
|
animation: ${Mr} 1.4s linear infinite;
|
|
6334
|
-
` : null,
|
|
6403
|
+
` : null, Vc = typeof _r != "string" ? go`
|
|
6335
6404
|
animation: ${_r} 1.4s ease-in-out infinite;
|
|
6336
|
-
` : null,
|
|
6405
|
+
` : null, jc = (e) => {
|
|
6337
6406
|
const {
|
|
6338
6407
|
classes: t,
|
|
6339
6408
|
variant: r,
|
|
@@ -6345,8 +6414,8 @@ const Te = 44, Mr = St`
|
|
|
6345
6414
|
track: ["track"],
|
|
6346
6415
|
circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
|
|
6347
6416
|
};
|
|
6348
|
-
return
|
|
6349
|
-
}, zc =
|
|
6417
|
+
return Pe(i, Bc, t);
|
|
6418
|
+
}, zc = me("span", {
|
|
6350
6419
|
name: "MuiCircularProgress",
|
|
6351
6420
|
slot: "Root",
|
|
6352
6421
|
overridesResolver: (e, t) => {
|
|
@@ -6355,7 +6424,7 @@ const Te = 44, Mr = St`
|
|
|
6355
6424
|
} = e;
|
|
6356
6425
|
return [t.root, t[r.variant], t[`color${Z(r.color)}`]];
|
|
6357
6426
|
}
|
|
6358
|
-
})(
|
|
6427
|
+
})(Oe(({
|
|
6359
6428
|
theme: e
|
|
6360
6429
|
}) => ({
|
|
6361
6430
|
display: "inline-block",
|
|
@@ -6381,13 +6450,13 @@ const Te = 44, Mr = St`
|
|
|
6381
6450
|
color: (e.vars || e).palette[t].main
|
|
6382
6451
|
}
|
|
6383
6452
|
}))]
|
|
6384
|
-
}))), Wc =
|
|
6453
|
+
}))), Wc = me("svg", {
|
|
6385
6454
|
name: "MuiCircularProgress",
|
|
6386
6455
|
slot: "Svg"
|
|
6387
6456
|
})({
|
|
6388
6457
|
display: "block"
|
|
6389
6458
|
// Keeps the progress centered
|
|
6390
|
-
}), Lc =
|
|
6459
|
+
}), Lc = me("circle", {
|
|
6391
6460
|
name: "MuiCircularProgress",
|
|
6392
6461
|
slot: "Circle",
|
|
6393
6462
|
overridesResolver: (e, t) => {
|
|
@@ -6396,7 +6465,7 @@ const Te = 44, Mr = St`
|
|
|
6396
6465
|
} = e;
|
|
6397
6466
|
return [t.circle, t[`circle${Z(r.variant)}`], r.disableShrink && t.circleDisableShrink];
|
|
6398
6467
|
}
|
|
6399
|
-
})(
|
|
6468
|
+
})(Oe(({
|
|
6400
6469
|
theme: e
|
|
6401
6470
|
}) => ({
|
|
6402
6471
|
stroke: "currentColor",
|
|
@@ -6421,21 +6490,21 @@ const Te = 44, Mr = St`
|
|
|
6421
6490
|
props: ({
|
|
6422
6491
|
ownerState: t
|
|
6423
6492
|
}) => t.variant === "indeterminate" && !t.disableShrink,
|
|
6424
|
-
style:
|
|
6493
|
+
style: Vc || {
|
|
6425
6494
|
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
6426
6495
|
animation: `${_r} 1.4s ease-in-out infinite`
|
|
6427
6496
|
}
|
|
6428
6497
|
}]
|
|
6429
|
-
}))), Fc =
|
|
6498
|
+
}))), Fc = me("circle", {
|
|
6430
6499
|
name: "MuiCircularProgress",
|
|
6431
6500
|
slot: "Track"
|
|
6432
|
-
})(
|
|
6501
|
+
})(Oe(({
|
|
6433
6502
|
theme: e
|
|
6434
6503
|
}) => ({
|
|
6435
6504
|
stroke: "currentColor",
|
|
6436
6505
|
opacity: (e.vars || e).palette.action.activatedOpacity
|
|
6437
|
-
}))), en = /* @__PURE__ */
|
|
6438
|
-
const n =
|
|
6506
|
+
}))), en = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
6507
|
+
const n = $e({
|
|
6439
6508
|
props: t,
|
|
6440
6509
|
name: "MuiCircularProgress"
|
|
6441
6510
|
}), {
|
|
@@ -6458,13 +6527,13 @@ const Te = 44, Mr = St`
|
|
|
6458
6527
|
value: y,
|
|
6459
6528
|
variant: p,
|
|
6460
6529
|
enableTrackSlot: l
|
|
6461
|
-
}, f =
|
|
6530
|
+
}, f = jc(h), g = {}, C = {}, k = {};
|
|
6462
6531
|
if (p === "determinate") {
|
|
6463
|
-
const
|
|
6464
|
-
g.strokeDasharray =
|
|
6532
|
+
const N = 2 * Math.PI * ((Te - m) / 2);
|
|
6533
|
+
g.strokeDasharray = N.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * N).toFixed(3)}px`, C.transform = "rotate(-90deg)";
|
|
6465
6534
|
}
|
|
6466
6535
|
return /* @__PURE__ */ E(zc, {
|
|
6467
|
-
className:
|
|
6536
|
+
className: fe(f.root, o),
|
|
6468
6537
|
style: {
|
|
6469
6538
|
width: u,
|
|
6470
6539
|
height: u,
|
|
@@ -6476,7 +6545,7 @@ const Te = 44, Mr = St`
|
|
|
6476
6545
|
role: "progressbar",
|
|
6477
6546
|
...k,
|
|
6478
6547
|
...b,
|
|
6479
|
-
children: /* @__PURE__ */
|
|
6548
|
+
children: /* @__PURE__ */ de(Wc, {
|
|
6480
6549
|
className: f.svg,
|
|
6481
6550
|
ownerState: h,
|
|
6482
6551
|
viewBox: `${Te / 2} ${Te / 2} ${Te} ${Te}`,
|
|
@@ -6570,9 +6639,9 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
|
|
|
6570
6639
|
function qc(e) {
|
|
6571
6640
|
return xe("MuiButton", e);
|
|
6572
6641
|
}
|
|
6573
|
-
const qe =
|
|
6642
|
+
const qe = Ie("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__ */ V.createContext({});
|
|
6574
6643
|
process.env.NODE_ENV !== "production" && (ri.displayName = "ButtonGroupContext");
|
|
6575
|
-
const ni = /* @__PURE__ */
|
|
6644
|
+
const ni = /* @__PURE__ */ V.createContext(void 0);
|
|
6576
6645
|
process.env.NODE_ENV !== "production" && (ni.displayName = "ButtonGroupButtonContext");
|
|
6577
6646
|
const Gc = (e) => {
|
|
6578
6647
|
const {
|
|
@@ -6590,7 +6659,7 @@ const Gc = (e) => {
|
|
|
6590
6659
|
endIcon: ["icon", "endIcon", `iconSize${Z(o)}`],
|
|
6591
6660
|
loadingIndicator: ["loadingIndicator"],
|
|
6592
6661
|
loadingWrapper: ["loadingWrapper"]
|
|
6593
|
-
}, m =
|
|
6662
|
+
}, m = Pe(d, qc, u);
|
|
6594
6663
|
return {
|
|
6595
6664
|
...u,
|
|
6596
6665
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
@@ -6623,7 +6692,7 @@ const Gc = (e) => {
|
|
|
6623
6692
|
fontSize: 22
|
|
6624
6693
|
}
|
|
6625
6694
|
}
|
|
6626
|
-
}], Uc =
|
|
6695
|
+
}], Uc = me(Zr, {
|
|
6627
6696
|
shouldForwardProp: (e) => Qo(e) || e === "classes",
|
|
6628
6697
|
name: "MuiButton",
|
|
6629
6698
|
slot: "Root",
|
|
@@ -6633,7 +6702,7 @@ const Gc = (e) => {
|
|
|
6633
6702
|
} = e;
|
|
6634
6703
|
return [t.root, t[r.variant], t[`${r.variant}${Z(r.color)}`], t[`size${Z(r.size)}`], t[`${r.variant}Size${Z(r.size)}`], r.color === "inherit" && t.colorInherit, r.disableElevation && t.disableElevation, r.fullWidth && t.fullWidth, r.loading && t.loading];
|
|
6635
6704
|
}
|
|
6636
|
-
})(
|
|
6705
|
+
})(Oe(({
|
|
6637
6706
|
theme: e
|
|
6638
6707
|
}) => {
|
|
6639
6708
|
const t = e.palette.mode === "light" ? e.palette.grey[300] : e.palette.grey[800], r = e.palette.mode === "light" ? e.palette.grey.A100 : e.palette.grey[700];
|
|
@@ -6831,7 +6900,7 @@ const Gc = (e) => {
|
|
|
6831
6900
|
}
|
|
6832
6901
|
}]
|
|
6833
6902
|
};
|
|
6834
|
-
})), Yc =
|
|
6903
|
+
})), Yc = me("span", {
|
|
6835
6904
|
name: "MuiButton",
|
|
6836
6905
|
slot: "StartIcon",
|
|
6837
6906
|
overridesResolver: (e, t) => {
|
|
@@ -6874,7 +6943,7 @@ const Gc = (e) => {
|
|
|
6874
6943
|
marginRight: -8
|
|
6875
6944
|
}
|
|
6876
6945
|
}, ...oi]
|
|
6877
|
-
})), Hc =
|
|
6946
|
+
})), Hc = me("span", {
|
|
6878
6947
|
name: "MuiButton",
|
|
6879
6948
|
slot: "EndIcon",
|
|
6880
6949
|
overridesResolver: (e, t) => {
|
|
@@ -6917,7 +6986,7 @@ const Gc = (e) => {
|
|
|
6917
6986
|
marginLeft: -8
|
|
6918
6987
|
}
|
|
6919
6988
|
}, ...oi]
|
|
6920
|
-
})), Kc =
|
|
6989
|
+
})), Kc = me("span", {
|
|
6921
6990
|
name: "MuiButton",
|
|
6922
6991
|
slot: "LoadingIndicator"
|
|
6923
6992
|
})(({
|
|
@@ -7007,15 +7076,15 @@ const Gc = (e) => {
|
|
|
7007
7076
|
right: -10
|
|
7008
7077
|
}
|
|
7009
7078
|
}]
|
|
7010
|
-
})), Qn =
|
|
7079
|
+
})), Qn = me("span", {
|
|
7011
7080
|
name: "MuiButton",
|
|
7012
7081
|
slot: "LoadingIconPlaceholder"
|
|
7013
7082
|
})({
|
|
7014
7083
|
display: "inline-block",
|
|
7015
7084
|
width: "1em",
|
|
7016
7085
|
height: "1em"
|
|
7017
|
-
}), ii = /* @__PURE__ */
|
|
7018
|
-
const n =
|
|
7086
|
+
}), ii = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
7087
|
+
const n = V.useContext(ri), o = V.useContext(ni), i = yt(n, t), a = $e({
|
|
7019
7088
|
props: i,
|
|
7020
7089
|
name: "MuiButton"
|
|
7021
7090
|
}), {
|
|
@@ -7031,15 +7100,15 @@ const Gc = (e) => {
|
|
|
7031
7100
|
fullWidth: g = !1,
|
|
7032
7101
|
id: C,
|
|
7033
7102
|
loading: k = null,
|
|
7034
|
-
loadingIndicator:
|
|
7035
|
-
loadingPosition:
|
|
7036
|
-
size:
|
|
7037
|
-
startIcon:
|
|
7038
|
-
type:
|
|
7039
|
-
variant:
|
|
7040
|
-
...
|
|
7041
|
-
} = a,
|
|
7042
|
-
"aria-labelledby":
|
|
7103
|
+
loadingIndicator: N,
|
|
7104
|
+
loadingPosition: O = "center",
|
|
7105
|
+
size: v = "medium",
|
|
7106
|
+
startIcon: w,
|
|
7107
|
+
type: z,
|
|
7108
|
+
variant: X = "text",
|
|
7109
|
+
...F
|
|
7110
|
+
} = a, q = Wo(C), _ = N ?? /* @__PURE__ */ E(en, {
|
|
7111
|
+
"aria-labelledby": q,
|
|
7043
7112
|
color: "inherit",
|
|
7044
7113
|
size: 16
|
|
7045
7114
|
}), c = {
|
|
@@ -7051,52 +7120,52 @@ const Gc = (e) => {
|
|
|
7051
7120
|
disableFocusRipple: b,
|
|
7052
7121
|
fullWidth: g,
|
|
7053
7122
|
loading: k,
|
|
7054
|
-
loadingIndicator:
|
|
7055
|
-
loadingPosition:
|
|
7056
|
-
size:
|
|
7057
|
-
type:
|
|
7058
|
-
variant:
|
|
7059
|
-
},
|
|
7060
|
-
className:
|
|
7123
|
+
loadingIndicator: _,
|
|
7124
|
+
loadingPosition: O,
|
|
7125
|
+
size: v,
|
|
7126
|
+
type: z,
|
|
7127
|
+
variant: X
|
|
7128
|
+
}, T = Gc(c), x = (w || k && O === "start") && /* @__PURE__ */ E(Yc, {
|
|
7129
|
+
className: T.startIcon,
|
|
7061
7130
|
ownerState: c,
|
|
7062
|
-
children:
|
|
7063
|
-
className:
|
|
7131
|
+
children: w || /* @__PURE__ */ E(Qn, {
|
|
7132
|
+
className: T.loadingIconPlaceholder,
|
|
7064
7133
|
ownerState: c
|
|
7065
7134
|
})
|
|
7066
|
-
}),
|
|
7067
|
-
className:
|
|
7135
|
+
}), B = (h || k && O === "end") && /* @__PURE__ */ E(Hc, {
|
|
7136
|
+
className: T.endIcon,
|
|
7068
7137
|
ownerState: c,
|
|
7069
7138
|
children: h || /* @__PURE__ */ E(Qn, {
|
|
7070
|
-
className:
|
|
7139
|
+
className: T.loadingIconPlaceholder,
|
|
7071
7140
|
ownerState: c
|
|
7072
7141
|
})
|
|
7073
|
-
}),
|
|
7142
|
+
}), I = o || "", Y = typeof k == "boolean" ? (
|
|
7074
7143
|
// use plain HTML span to minimize the runtime overhead
|
|
7075
7144
|
/* @__PURE__ */ E("span", {
|
|
7076
|
-
className:
|
|
7145
|
+
className: T.loadingWrapper,
|
|
7077
7146
|
style: {
|
|
7078
7147
|
display: "contents"
|
|
7079
7148
|
},
|
|
7080
7149
|
children: k && /* @__PURE__ */ E(Kc, {
|
|
7081
|
-
className:
|
|
7150
|
+
className: T.loadingIndicator,
|
|
7082
7151
|
ownerState: c,
|
|
7083
|
-
children:
|
|
7152
|
+
children: _
|
|
7084
7153
|
})
|
|
7085
7154
|
})
|
|
7086
7155
|
) : null;
|
|
7087
|
-
return /* @__PURE__ */
|
|
7156
|
+
return /* @__PURE__ */ de(Uc, {
|
|
7088
7157
|
ownerState: c,
|
|
7089
|
-
className:
|
|
7158
|
+
className: fe(n.className, T.root, m, I),
|
|
7090
7159
|
component: d,
|
|
7091
7160
|
disabled: y || k,
|
|
7092
7161
|
focusRipple: !b,
|
|
7093
|
-
focusVisibleClassName:
|
|
7162
|
+
focusVisibleClassName: fe(T.focusVisible, f),
|
|
7094
7163
|
ref: r,
|
|
7095
|
-
type:
|
|
7096
|
-
id: k ?
|
|
7097
|
-
...
|
|
7098
|
-
classes:
|
|
7099
|
-
children: [x,
|
|
7164
|
+
type: z,
|
|
7165
|
+
id: k ? q : C,
|
|
7166
|
+
...F,
|
|
7167
|
+
classes: T,
|
|
7168
|
+
children: [x, O !== "end" && Y, l, O === "end" && Y, B]
|
|
7100
7169
|
});
|
|
7101
7170
|
});
|
|
7102
7171
|
process.env.NODE_ENV !== "production" && (ii.propTypes = {
|
|
@@ -7218,7 +7287,7 @@ process.env.NODE_ENV !== "production" && (ii.propTypes = {
|
|
|
7218
7287
|
function Xc(e) {
|
|
7219
7288
|
return xe("MuiDivider", e);
|
|
7220
7289
|
}
|
|
7221
|
-
|
|
7290
|
+
Ie("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
7222
7291
|
const Qc = (e) => {
|
|
7223
7292
|
const {
|
|
7224
7293
|
absolute: t,
|
|
@@ -7230,11 +7299,11 @@ const Qc = (e) => {
|
|
|
7230
7299
|
textAlign: l,
|
|
7231
7300
|
variant: u
|
|
7232
7301
|
} = e;
|
|
7233
|
-
return
|
|
7302
|
+
return Pe({
|
|
7234
7303
|
root: ["root", t && "absolute", u, i && "light", a === "vertical" && "vertical", o && "flexItem", r && "withChildren", r && a === "vertical" && "withChildrenVertical", l === "right" && a !== "vertical" && "textAlignRight", l === "left" && a !== "vertical" && "textAlignLeft"],
|
|
7235
7304
|
wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
|
|
7236
7305
|
}, Xc, n);
|
|
7237
|
-
}, Jc =
|
|
7306
|
+
}, Jc = me("div", {
|
|
7238
7307
|
name: "MuiDivider",
|
|
7239
7308
|
slot: "Root",
|
|
7240
7309
|
overridesResolver: (e, t) => {
|
|
@@ -7243,7 +7312,7 @@ const Qc = (e) => {
|
|
|
7243
7312
|
} = e;
|
|
7244
7313
|
return [t.root, r.absolute && t.absolute, t[r.variant], r.light && t.light, r.orientation === "vertical" && t.vertical, r.flexItem && t.flexItem, r.children && t.withChildren, r.children && r.orientation === "vertical" && t.withChildrenVertical, r.textAlign === "right" && r.orientation !== "vertical" && t.textAlignRight, r.textAlign === "left" && r.orientation !== "vertical" && t.textAlignLeft];
|
|
7245
7314
|
}
|
|
7246
|
-
})(
|
|
7315
|
+
})(Oe(({
|
|
7247
7316
|
theme: e
|
|
7248
7317
|
}) => ({
|
|
7249
7318
|
margin: 0,
|
|
@@ -7375,7 +7444,7 @@ const Qc = (e) => {
|
|
|
7375
7444
|
}
|
|
7376
7445
|
}
|
|
7377
7446
|
}]
|
|
7378
|
-
}))), Zc =
|
|
7447
|
+
}))), Zc = me("span", {
|
|
7379
7448
|
name: "MuiDivider",
|
|
7380
7449
|
slot: "Wrapper",
|
|
7381
7450
|
overridesResolver: (e, t) => {
|
|
@@ -7384,7 +7453,7 @@ const Qc = (e) => {
|
|
|
7384
7453
|
} = e;
|
|
7385
7454
|
return [t.wrapper, r.orientation === "vertical" && t.wrapperVertical];
|
|
7386
7455
|
}
|
|
7387
|
-
})(
|
|
7456
|
+
})(Oe(({
|
|
7388
7457
|
theme: e
|
|
7389
7458
|
}) => ({
|
|
7390
7459
|
display: "inline-block",
|
|
@@ -7400,8 +7469,8 @@ const Qc = (e) => {
|
|
|
7400
7469
|
paddingBottom: `calc(${e.spacing(1)} * 1.2)`
|
|
7401
7470
|
}
|
|
7402
7471
|
}]
|
|
7403
|
-
}))), Yt = /* @__PURE__ */
|
|
7404
|
-
const n =
|
|
7472
|
+
}))), Yt = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
7473
|
+
const n = $e({
|
|
7405
7474
|
props: t,
|
|
7406
7475
|
name: "MuiDivider"
|
|
7407
7476
|
}), {
|
|
@@ -7429,7 +7498,7 @@ const Qc = (e) => {
|
|
|
7429
7498
|
}, g = Qc(f);
|
|
7430
7499
|
return /* @__PURE__ */ E(Jc, {
|
|
7431
7500
|
as: u,
|
|
7432
|
-
className:
|
|
7501
|
+
className: fe(g.root, a),
|
|
7433
7502
|
role: y,
|
|
7434
7503
|
ref: r,
|
|
7435
7504
|
ownerState: f,
|
|
@@ -7509,7 +7578,7 @@ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
|
|
|
7509
7578
|
function eu(e) {
|
|
7510
7579
|
return xe("MuiIconButton", e);
|
|
7511
7580
|
}
|
|
7512
|
-
const Jn =
|
|
7581
|
+
const Jn = Ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), tu = (e) => {
|
|
7513
7582
|
const {
|
|
7514
7583
|
classes: t,
|
|
7515
7584
|
disabled: r,
|
|
@@ -7522,8 +7591,8 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7522
7591
|
loadingIndicator: ["loadingIndicator"],
|
|
7523
7592
|
loadingWrapper: ["loadingWrapper"]
|
|
7524
7593
|
};
|
|
7525
|
-
return
|
|
7526
|
-
}, ru =
|
|
7594
|
+
return Pe(l, eu, t);
|
|
7595
|
+
}, ru = me(Zr, {
|
|
7527
7596
|
name: "MuiIconButton",
|
|
7528
7597
|
slot: "Root",
|
|
7529
7598
|
overridesResolver: (e, t) => {
|
|
@@ -7532,7 +7601,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7532
7601
|
} = e;
|
|
7533
7602
|
return [t.root, r.loading && t.loading, r.color !== "default" && t[`color${Z(r.color)}`], r.edge && t[`edge${Z(r.edge)}`], t[`size${Z(r.size)}`]];
|
|
7534
7603
|
}
|
|
7535
|
-
})(
|
|
7604
|
+
})(Oe(({
|
|
7536
7605
|
theme: e
|
|
7537
7606
|
}) => ({
|
|
7538
7607
|
textAlign: "center",
|
|
@@ -7587,7 +7656,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7587
7656
|
marginRight: -3
|
|
7588
7657
|
}
|
|
7589
7658
|
}]
|
|
7590
|
-
})),
|
|
7659
|
+
})), Oe(({
|
|
7591
7660
|
theme: e
|
|
7592
7661
|
}) => ({
|
|
7593
7662
|
variants: [{
|
|
@@ -7635,7 +7704,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7635
7704
|
[`&.${Jn.loading}`]: {
|
|
7636
7705
|
color: "transparent"
|
|
7637
7706
|
}
|
|
7638
|
-
}))), nu =
|
|
7707
|
+
}))), nu = me("span", {
|
|
7639
7708
|
name: "MuiIconButton",
|
|
7640
7709
|
slot: "LoadingIndicator"
|
|
7641
7710
|
})(({
|
|
@@ -7656,8 +7725,8 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7656
7725
|
display: "flex"
|
|
7657
7726
|
}
|
|
7658
7727
|
}]
|
|
7659
|
-
})), Nr = /* @__PURE__ */
|
|
7660
|
-
const n =
|
|
7728
|
+
})), Nr = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
7729
|
+
const n = $e({
|
|
7661
7730
|
props: t,
|
|
7662
7731
|
name: "MuiIconButton"
|
|
7663
7732
|
}), {
|
|
@@ -7686,9 +7755,9 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7686
7755
|
loadingIndicator: g,
|
|
7687
7756
|
size: m
|
|
7688
7757
|
}, k = tu(C);
|
|
7689
|
-
return /* @__PURE__ */
|
|
7758
|
+
return /* @__PURE__ */ de(ru, {
|
|
7690
7759
|
id: p ? f : y,
|
|
7691
|
-
className:
|
|
7760
|
+
className: fe(k.root, a),
|
|
7692
7761
|
centerRipple: !0,
|
|
7693
7762
|
focusRipple: !d,
|
|
7694
7763
|
disabled: u || p,
|
|
@@ -7717,7 +7786,7 @@ process.env.NODE_ENV !== "production" && (Nr.propTypes = {
|
|
|
7717
7786
|
/**
|
|
7718
7787
|
* The icon to display.
|
|
7719
7788
|
*/
|
|
7720
|
-
children: fr(s.node, (e) =>
|
|
7789
|
+
children: fr(s.node, (e) => V.Children.toArray(e.children).some((r) => /* @__PURE__ */ V.isValidElement(r) && r.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
7721
7790
|
`)) : null),
|
|
7722
7791
|
/**
|
|
7723
7792
|
* Override or extend the styles applied to the component.
|
|
@@ -7819,7 +7888,7 @@ const iu = process.env.NODE_ENV === "production" ? Br : ai;
|
|
|
7819
7888
|
function su(e) {
|
|
7820
7889
|
return xe("MuiPaper", e);
|
|
7821
7890
|
}
|
|
7822
|
-
|
|
7891
|
+
Ie("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
7823
7892
|
const au = (e) => {
|
|
7824
7893
|
const {
|
|
7825
7894
|
square: t,
|
|
@@ -7829,8 +7898,8 @@ const au = (e) => {
|
|
|
7829
7898
|
} = e, i = {
|
|
7830
7899
|
root: ["root", n, !t && "rounded", n === "elevation" && `elevation${r}`]
|
|
7831
7900
|
};
|
|
7832
|
-
return
|
|
7833
|
-
}, lu =
|
|
7901
|
+
return Pe(i, su, o);
|
|
7902
|
+
}, lu = me("div", {
|
|
7834
7903
|
name: "MuiPaper",
|
|
7835
7904
|
slot: "Root",
|
|
7836
7905
|
overridesResolver: (e, t) => {
|
|
@@ -7839,7 +7908,7 @@ const au = (e) => {
|
|
|
7839
7908
|
} = e;
|
|
7840
7909
|
return [t.root, t[r.variant], !r.square && t.rounded, r.variant === "elevation" && t[`elevation${r.elevation}`]];
|
|
7841
7910
|
}
|
|
7842
|
-
})(
|
|
7911
|
+
})(Oe(({
|
|
7843
7912
|
theme: e
|
|
7844
7913
|
}) => ({
|
|
7845
7914
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
@@ -7868,8 +7937,8 @@ const au = (e) => {
|
|
|
7868
7937
|
backgroundImage: "var(--Paper-overlay)"
|
|
7869
7938
|
}
|
|
7870
7939
|
}]
|
|
7871
|
-
}))), li = /* @__PURE__ */
|
|
7872
|
-
const n =
|
|
7940
|
+
}))), li = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
7941
|
+
const n = $e({
|
|
7873
7942
|
props: t,
|
|
7874
7943
|
name: "MuiPaper"
|
|
7875
7944
|
}), o = Xo(), {
|
|
@@ -7889,7 +7958,7 @@ const au = (e) => {
|
|
|
7889
7958
|
return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(lu, {
|
|
7890
7959
|
as: a,
|
|
7891
7960
|
ownerState: y,
|
|
7892
|
-
className:
|
|
7961
|
+
className: fe(p.root, i),
|
|
7893
7962
|
ref: r,
|
|
7894
7963
|
...m,
|
|
7895
7964
|
style: {
|
|
@@ -7962,7 +8031,7 @@ process.env.NODE_ENV !== "production" && (li.propTypes = {
|
|
|
7962
8031
|
function cu(e) {
|
|
7963
8032
|
return xe("MuiTypography", e);
|
|
7964
8033
|
}
|
|
7965
|
-
|
|
8034
|
+
Ie("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
7966
8035
|
const uu = {
|
|
7967
8036
|
primary: !0,
|
|
7968
8037
|
secondary: !0,
|
|
@@ -7984,8 +8053,8 @@ const uu = {
|
|
|
7984
8053
|
} = e, l = {
|
|
7985
8054
|
root: ["root", i, e.align !== "inherit" && `align${Z(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
|
|
7986
8055
|
};
|
|
7987
|
-
return
|
|
7988
|
-
}, pu =
|
|
8056
|
+
return Pe(l, cu, a);
|
|
8057
|
+
}, pu = me("span", {
|
|
7989
8058
|
name: "MuiTypography",
|
|
7990
8059
|
slot: "Root",
|
|
7991
8060
|
overridesResolver: (e, t) => {
|
|
@@ -7994,7 +8063,7 @@ const uu = {
|
|
|
7994
8063
|
} = e;
|
|
7995
8064
|
return [t.root, r.variant && t[r.variant], r.align !== "inherit" && t[`align${Z(r.align)}`], r.noWrap && t.noWrap, r.gutterBottom && t.gutterBottom, r.paragraph && t.paragraph];
|
|
7996
8065
|
}
|
|
7997
|
-
})(
|
|
8066
|
+
})(Oe(({
|
|
7998
8067
|
theme: e
|
|
7999
8068
|
}) => ({
|
|
8000
8069
|
margin: 0,
|
|
@@ -8070,11 +8139,11 @@ const uu = {
|
|
|
8070
8139
|
body1: "p",
|
|
8071
8140
|
body2: "p",
|
|
8072
8141
|
inherit: "p"
|
|
8073
|
-
}, tn = /* @__PURE__ */
|
|
8142
|
+
}, tn = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
8074
8143
|
const {
|
|
8075
8144
|
color: n,
|
|
8076
8145
|
...o
|
|
8077
|
-
} =
|
|
8146
|
+
} = $e({
|
|
8078
8147
|
props: t,
|
|
8079
8148
|
name: "MuiTypography"
|
|
8080
8149
|
}), i = !uu[n], a = fu({
|
|
@@ -8107,7 +8176,7 @@ const uu = {
|
|
|
8107
8176
|
return /* @__PURE__ */ E(pu, {
|
|
8108
8177
|
as: C,
|
|
8109
8178
|
ref: r,
|
|
8110
|
-
className:
|
|
8179
|
+
className: fe(k.root, u),
|
|
8111
8180
|
...f,
|
|
8112
8181
|
ownerState: g,
|
|
8113
8182
|
style: {
|
|
@@ -8240,15 +8309,15 @@ const Tr = ({
|
|
|
8240
8309
|
const { fields: l, append: u, remove: d } = bi({
|
|
8241
8310
|
control: t.control,
|
|
8242
8311
|
name: e.name
|
|
8243
|
-
}), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (
|
|
8312
|
+
}), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, z) => {
|
|
8244
8313
|
if (!m.some(
|
|
8245
|
-
(
|
|
8314
|
+
(q) => q.dependencies.includes(z)
|
|
8246
8315
|
)) return;
|
|
8247
|
-
const
|
|
8248
|
-
|
|
8249
|
-
if (
|
|
8250
|
-
const
|
|
8251
|
-
|
|
8316
|
+
const F = t.getValues(`${e.name}.${w}`);
|
|
8317
|
+
F && m.forEach(({ name: q, expr: _, dependencies: c, precision: T, roundMode: x }) => {
|
|
8318
|
+
if (q === z || !c.includes(z) || !c.every((J) => Fr(F[J]))) return;
|
|
8319
|
+
const I = Co(_, F, c, T, x), Y = F[q];
|
|
8320
|
+
I !== void 0 && I !== Y && !Number.isNaN(I) && (typeof I != "number" || typeof Y != "number" || Math.abs(I - Y) > 1e-4) && t.setValue(`${e.name}.${w}.${q}`, I, {
|
|
8252
8321
|
shouldValidate: !0,
|
|
8253
8322
|
// 计算更新通常需要触发验证
|
|
8254
8323
|
shouldDirty: !0,
|
|
@@ -8263,81 +8332,81 @@ const Tr = ({
|
|
|
8263
8332
|
copyable: C = !1
|
|
8264
8333
|
} = e, k = () => {
|
|
8265
8334
|
if (l.length >= f) return;
|
|
8266
|
-
const
|
|
8267
|
-
u(
|
|
8268
|
-
},
|
|
8335
|
+
const w = ci(b);
|
|
8336
|
+
u(w);
|
|
8337
|
+
}, N = (w) => {
|
|
8269
8338
|
if (l.length >= f) return;
|
|
8270
|
-
const
|
|
8271
|
-
u(
|
|
8272
|
-
},
|
|
8273
|
-
l.length <= h || d(
|
|
8274
|
-
},
|
|
8275
|
-
const
|
|
8276
|
-
|
|
8277
|
-
|
|
8339
|
+
const z = t.getValues(`${e.name}.${w}`);
|
|
8340
|
+
u(z);
|
|
8341
|
+
}, O = (w) => {
|
|
8342
|
+
l.length <= h || d(w);
|
|
8343
|
+
}, v = (w, z, X) => {
|
|
8344
|
+
const F = `${e.name}.${z}.${w.name}`, q = p?.[e.name]?.[z] || {}, _ = { ...p, ...q }, c = Ht(
|
|
8345
|
+
w,
|
|
8346
|
+
_,
|
|
8278
8347
|
o,
|
|
8279
8348
|
i
|
|
8280
8349
|
);
|
|
8281
8350
|
if (!c.visible)
|
|
8282
8351
|
return null;
|
|
8283
|
-
if (
|
|
8352
|
+
if (w.component === "Group")
|
|
8284
8353
|
return /* @__PURE__ */ E(
|
|
8285
8354
|
$t,
|
|
8286
8355
|
{
|
|
8287
|
-
size: eo(
|
|
8288
|
-
children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children:
|
|
8289
|
-
(
|
|
8290
|
-
{ ...
|
|
8291
|
-
|
|
8292
|
-
|
|
8356
|
+
size: eo(w.colSpan),
|
|
8357
|
+
children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: w.columns?.map(
|
|
8358
|
+
(I, Y) => v(
|
|
8359
|
+
{ ...I, name: I.name },
|
|
8360
|
+
z,
|
|
8361
|
+
Y
|
|
8293
8362
|
)
|
|
8294
8363
|
) })
|
|
8295
8364
|
},
|
|
8296
|
-
`${
|
|
8365
|
+
`${F}-${X}`
|
|
8297
8366
|
);
|
|
8298
|
-
const
|
|
8299
|
-
if (!
|
|
8300
|
-
const x = n[
|
|
8301
|
-
return /* @__PURE__ */ E($t, { size:
|
|
8302
|
-
|
|
8367
|
+
const T = r[w.component] ?? r.Text;
|
|
8368
|
+
if (!T) return null;
|
|
8369
|
+
const x = n[w.name] ?? w.ui?.options ?? [], B = eo(w.colSpan);
|
|
8370
|
+
return /* @__PURE__ */ E($t, { size: B, children: /* @__PURE__ */ E(
|
|
8371
|
+
Vr,
|
|
8303
8372
|
{
|
|
8304
8373
|
control: t.control,
|
|
8305
|
-
name:
|
|
8306
|
-
render: ({ field:
|
|
8307
|
-
|
|
8374
|
+
name: F,
|
|
8375
|
+
render: ({ field: I, fieldState: Y }) => /* @__PURE__ */ E(
|
|
8376
|
+
T,
|
|
8308
8377
|
{
|
|
8309
|
-
error: !!
|
|
8378
|
+
error: !!Y.error,
|
|
8310
8379
|
field: {
|
|
8311
|
-
...
|
|
8312
|
-
onBlur: (
|
|
8313
|
-
|
|
8380
|
+
...I,
|
|
8381
|
+
onBlur: (J) => {
|
|
8382
|
+
I.onBlur(), y(z, w.name);
|
|
8314
8383
|
}
|
|
8315
8384
|
},
|
|
8316
8385
|
fieldProps: {
|
|
8317
|
-
...
|
|
8386
|
+
...w.ui?.props,
|
|
8318
8387
|
disabled: c.disabled,
|
|
8319
8388
|
required: c.required,
|
|
8320
8389
|
readOnly: c.readonly,
|
|
8321
|
-
placeholder:
|
|
8390
|
+
placeholder: w.ui?.placeholder
|
|
8322
8391
|
},
|
|
8323
8392
|
form: t,
|
|
8324
|
-
helperText:
|
|
8325
|
-
label:
|
|
8393
|
+
helperText: Y.error?.message ?? w.ui?.helperText,
|
|
8394
|
+
label: w.ui?.label,
|
|
8326
8395
|
options: x
|
|
8327
8396
|
}
|
|
8328
8397
|
)
|
|
8329
8398
|
}
|
|
8330
|
-
) }, `${
|
|
8399
|
+
) }, `${F}-${X}`);
|
|
8331
8400
|
};
|
|
8332
|
-
return /* @__PURE__ */
|
|
8401
|
+
return /* @__PURE__ */ de(Gt, { children: [
|
|
8333
8402
|
a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
|
|
8334
|
-
l.map((
|
|
8403
|
+
l.map((w, z) => /* @__PURE__ */ de(
|
|
8335
8404
|
li,
|
|
8336
8405
|
{
|
|
8337
8406
|
variant: "outlined",
|
|
8338
8407
|
sx: { p: 2, mb: 2, position: "relative" },
|
|
8339
8408
|
children: [
|
|
8340
|
-
/* @__PURE__ */
|
|
8409
|
+
/* @__PURE__ */ de(
|
|
8341
8410
|
Gt,
|
|
8342
8411
|
{
|
|
8343
8412
|
sx: {
|
|
@@ -8352,7 +8421,7 @@ const Tr = ({
|
|
|
8352
8421
|
Nr,
|
|
8353
8422
|
{
|
|
8354
8423
|
size: "small",
|
|
8355
|
-
onClick: () =>
|
|
8424
|
+
onClick: () => N(z),
|
|
8356
8425
|
title: "复制",
|
|
8357
8426
|
children: /* @__PURE__ */ E(nc, { fontSize: "small" })
|
|
8358
8427
|
}
|
|
@@ -8361,7 +8430,7 @@ const Tr = ({
|
|
|
8361
8430
|
Nr,
|
|
8362
8431
|
{
|
|
8363
8432
|
size: "small",
|
|
8364
|
-
onClick: () =>
|
|
8433
|
+
onClick: () => O(z),
|
|
8365
8434
|
color: "error",
|
|
8366
8435
|
title: "删除",
|
|
8367
8436
|
children: /* @__PURE__ */ E(oc, { fontSize: "small" })
|
|
@@ -8370,10 +8439,10 @@ const Tr = ({
|
|
|
8370
8439
|
]
|
|
8371
8440
|
}
|
|
8372
8441
|
),
|
|
8373
|
-
/* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((
|
|
8442
|
+
/* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((X, F) => v(X, z, F)) })
|
|
8374
8443
|
]
|
|
8375
8444
|
},
|
|
8376
|
-
|
|
8445
|
+
w.id
|
|
8377
8446
|
)),
|
|
8378
8447
|
l.length < f && !o && /* @__PURE__ */ E(Dr, { children: /* @__PURE__ */ E(Yt, { sx: { my: 2 }, children: /* @__PURE__ */ E(
|
|
8379
8448
|
ii,
|
|
@@ -8402,7 +8471,7 @@ const to = ({
|
|
|
8402
8471
|
if (!e?.columns || !t || !r)
|
|
8403
8472
|
return null;
|
|
8404
8473
|
const l = a || t.watch();
|
|
8405
|
-
return /* @__PURE__ */
|
|
8474
|
+
return /* @__PURE__ */ de(Gt, { sx: { width: "100%" }, children: [
|
|
8406
8475
|
e.ui?.label && /* @__PURE__ */ E(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
|
|
8407
8476
|
/* @__PURE__ */ E(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
|
|
8408
8477
|
const m = Ht(
|
|
@@ -8433,7 +8502,7 @@ const to = ({
|
|
|
8433
8502
|
values: l
|
|
8434
8503
|
}
|
|
8435
8504
|
) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
|
|
8436
|
-
|
|
8505
|
+
Vr,
|
|
8437
8506
|
{
|
|
8438
8507
|
control: t.control,
|
|
8439
8508
|
name: u.name,
|
|
@@ -8477,7 +8546,7 @@ const to = ({
|
|
|
8477
8546
|
helperText: n,
|
|
8478
8547
|
fullWidth: !0,
|
|
8479
8548
|
size: "small",
|
|
8480
|
-
sx:
|
|
8549
|
+
sx: Ae,
|
|
8481
8550
|
disabled: o?.disabled,
|
|
8482
8551
|
required: o?.required,
|
|
8483
8552
|
...o
|
|
@@ -8499,7 +8568,7 @@ const to = ({
|
|
|
8499
8568
|
helperText: n,
|
|
8500
8569
|
fullWidth: !0,
|
|
8501
8570
|
size: "small",
|
|
8502
|
-
sx:
|
|
8571
|
+
sx: Ae,
|
|
8503
8572
|
disabled: o?.disabled,
|
|
8504
8573
|
required: o?.required,
|
|
8505
8574
|
...o
|
|
@@ -8525,7 +8594,7 @@ const to = ({
|
|
|
8525
8594
|
value: l,
|
|
8526
8595
|
sx: u ? { flexWrap: "nowrap" } : void 0,
|
|
8527
8596
|
children: r.map((m) => /* @__PURE__ */ E(
|
|
8528
|
-
|
|
8597
|
+
jr,
|
|
8529
8598
|
{
|
|
8530
8599
|
control: /* @__PURE__ */ E($i, { size: "small" }),
|
|
8531
8600
|
disabled: m.disabled,
|
|
@@ -8536,7 +8605,7 @@ const to = ({
|
|
|
8536
8605
|
))
|
|
8537
8606
|
}
|
|
8538
8607
|
);
|
|
8539
|
-
return /* @__PURE__ */
|
|
8608
|
+
return /* @__PURE__ */ de(
|
|
8540
8609
|
at,
|
|
8541
8610
|
{
|
|
8542
8611
|
component: "fieldset",
|
|
@@ -8560,14 +8629,14 @@ const to = ({
|
|
|
8560
8629
|
children: [
|
|
8561
8630
|
u ? (
|
|
8562
8631
|
// 行内布局:label 和 radio 在同一行
|
|
8563
|
-
/* @__PURE__ */
|
|
8564
|
-
/* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(
|
|
8632
|
+
/* @__PURE__ */ de(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
8633
|
+
/* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
|
|
8565
8634
|
/* @__PURE__ */ E(io, { children: d })
|
|
8566
8635
|
] })
|
|
8567
8636
|
) : (
|
|
8568
8637
|
// 默认布局:label 在上,radio 在下
|
|
8569
|
-
/* @__PURE__ */
|
|
8570
|
-
t && /* @__PURE__ */ E(
|
|
8638
|
+
/* @__PURE__ */ de(nn, { spacing: 0, children: [
|
|
8639
|
+
t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, children: Se(t, i?.required) }),
|
|
8571
8640
|
d
|
|
8572
8641
|
] })
|
|
8573
8642
|
),
|
|
@@ -8575,8 +8644,8 @@ const to = ({
|
|
|
8575
8644
|
]
|
|
8576
8645
|
}
|
|
8577
8646
|
);
|
|
8578
|
-
}, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */
|
|
8579
|
-
t && /* @__PURE__ */ E(
|
|
8647
|
+
}, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ de(at, { children: [
|
|
8648
|
+
t && /* @__PURE__ */ E(Vt, { children: t }),
|
|
8580
8649
|
/* @__PURE__ */ E(
|
|
8581
8650
|
Ri,
|
|
8582
8651
|
{
|
|
@@ -8587,8 +8656,8 @@ const to = ({
|
|
|
8587
8656
|
...r
|
|
8588
8657
|
}
|
|
8589
8658
|
)
|
|
8590
|
-
] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */
|
|
8591
|
-
t && /* @__PURE__ */ E(
|
|
8659
|
+
] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ de(at, { fullWidth: !0, children: [
|
|
8660
|
+
t && /* @__PURE__ */ E(Vt, { children: t }),
|
|
8592
8661
|
/* @__PURE__ */ E(
|
|
8593
8662
|
ki,
|
|
8594
8663
|
{
|
|
@@ -8598,9 +8667,9 @@ const to = ({
|
|
|
8598
8667
|
...r
|
|
8599
8668
|
}
|
|
8600
8669
|
)
|
|
8601
|
-
] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */
|
|
8670
|
+
] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ de(at, { error: r, required: o?.required, component: "fieldset", children: [
|
|
8602
8671
|
/* @__PURE__ */ E(
|
|
8603
|
-
|
|
8672
|
+
jr,
|
|
8604
8673
|
{
|
|
8605
8674
|
control: /* @__PURE__ */ E(
|
|
8606
8675
|
Ai,
|
|
@@ -8633,7 +8702,7 @@ const to = ({
|
|
|
8633
8702
|
helperText: n,
|
|
8634
8703
|
fullWidth: !0,
|
|
8635
8704
|
size: "small",
|
|
8636
|
-
sx:
|
|
8705
|
+
sx: Ae,
|
|
8637
8706
|
disabled: o?.disabled,
|
|
8638
8707
|
required: o?.required,
|
|
8639
8708
|
...o
|
|
@@ -8654,7 +8723,7 @@ const to = ({
|
|
|
8654
8723
|
helperText: n,
|
|
8655
8724
|
fullWidth: !0,
|
|
8656
8725
|
size: "small",
|
|
8657
|
-
sx:
|
|
8726
|
+
sx: Ae,
|
|
8658
8727
|
disabled: o?.disabled,
|
|
8659
8728
|
required: o?.required,
|
|
8660
8729
|
...o
|
|
@@ -8678,7 +8747,7 @@ const to = ({
|
|
|
8678
8747
|
helperText: n,
|
|
8679
8748
|
required: o?.required,
|
|
8680
8749
|
size: "small",
|
|
8681
|
-
sx:
|
|
8750
|
+
sx: Ae
|
|
8682
8751
|
}
|
|
8683
8752
|
},
|
|
8684
8753
|
value: e.value ?? null,
|
|
@@ -8738,14 +8807,14 @@ async function gu(e, t) {
|
|
|
8738
8807
|
}
|
|
8739
8808
|
}
|
|
8740
8809
|
function yu(e, t) {
|
|
8741
|
-
const [r, n] =
|
|
8742
|
-
return
|
|
8810
|
+
const [r, n] = Be({}), o = we({}), i = we(/* @__PURE__ */ new Set()), a = we({});
|
|
8811
|
+
return Ve(() => {
|
|
8743
8812
|
i.current.clear(), o.current = {}, a.current = {};
|
|
8744
8813
|
const l = {};
|
|
8745
8814
|
for (const u of e)
|
|
8746
8815
|
l[u.name] = u.ui?.options ?? [];
|
|
8747
8816
|
n(l);
|
|
8748
|
-
}, [e]),
|
|
8817
|
+
}, [e]), Ve(() => {
|
|
8749
8818
|
e.forEach(async (l) => {
|
|
8750
8819
|
if (!l.ui?.optionRequest) return;
|
|
8751
8820
|
const u = l.name, d = l.dependencies || [];
|
|
@@ -8792,7 +8861,7 @@ function bu(e, t) {
|
|
|
8792
8861
|
widgets: d = {},
|
|
8793
8862
|
children: m,
|
|
8794
8863
|
spacing: y
|
|
8795
|
-
} = e, p = Ge(() => zi(r), [r]), b =
|
|
8864
|
+
} = e, p = Ge(() => zi(r), [r]), b = we(void 0);
|
|
8796
8865
|
b.current === void 0 && (b.current = {
|
|
8797
8866
|
...p.defaultValues,
|
|
8798
8867
|
...n || {}
|
|
@@ -8803,64 +8872,64 @@ function bu(e, t) {
|
|
|
8803
8872
|
resolver: f,
|
|
8804
8873
|
mode: "onBlur",
|
|
8805
8874
|
reValidateMode: "onBlur"
|
|
8806
|
-
}), C = Ge(() =>
|
|
8875
|
+
}), C = Ge(() => Vi(p), [p]), k = Si({
|
|
8807
8876
|
control: g.control,
|
|
8808
8877
|
name: C
|
|
8809
|
-
}),
|
|
8810
|
-
const
|
|
8811
|
-
return Array.isArray(k) && C.forEach((c,
|
|
8812
|
-
|
|
8813
|
-
}),
|
|
8814
|
-
}, [k, C]),
|
|
8815
|
-
|
|
8816
|
-
const
|
|
8817
|
-
if (Object.keys(
|
|
8818
|
-
|
|
8878
|
+
}), N = Ge(() => {
|
|
8879
|
+
const _ = {};
|
|
8880
|
+
return Array.isArray(k) && C.forEach((c, T) => {
|
|
8881
|
+
_[c] = k[T];
|
|
8882
|
+
}), _;
|
|
8883
|
+
}, [k, C]), O = yu(p.allFields, N), v = we({});
|
|
8884
|
+
Ve(() => {
|
|
8885
|
+
const _ = v.current;
|
|
8886
|
+
if (Object.keys(_).length === 0) {
|
|
8887
|
+
v.current = { ...N };
|
|
8819
8888
|
return;
|
|
8820
8889
|
}
|
|
8821
8890
|
const c = {};
|
|
8822
|
-
let
|
|
8891
|
+
let T = !1;
|
|
8823
8892
|
for (const x of p.allFields)
|
|
8824
8893
|
if (x.dependencies?.length && x.dependencies.some(
|
|
8825
|
-
(
|
|
8894
|
+
(I) => N[I] !== _[I]
|
|
8826
8895
|
)) {
|
|
8827
|
-
const
|
|
8828
|
-
|
|
8896
|
+
const I = g.getValues(x.name);
|
|
8897
|
+
I != null && I !== "" && (c[x.name] = null, T = !0);
|
|
8829
8898
|
}
|
|
8830
|
-
|
|
8831
|
-
g.setValue(x,
|
|
8899
|
+
T && Object.entries(c).forEach(([x, B]) => {
|
|
8900
|
+
g.setValue(x, B, {
|
|
8832
8901
|
shouldValidate: !0,
|
|
8833
8902
|
shouldDirty: !0,
|
|
8834
8903
|
shouldTouch: !0
|
|
8835
8904
|
});
|
|
8836
|
-
}),
|
|
8837
|
-
}, [
|
|
8905
|
+
}), v.current = { ...N };
|
|
8906
|
+
}, [N, p.allFields, g]), Ve(() => {
|
|
8838
8907
|
i && i(g.getValues());
|
|
8839
|
-
}, [
|
|
8840
|
-
const
|
|
8841
|
-
name:
|
|
8842
|
-
expr:
|
|
8843
|
-
dependencies:
|
|
8844
|
-
precision:
|
|
8845
|
-
roundMode:
|
|
8846
|
-
})), [p.allFields]),
|
|
8847
|
-
|
|
8848
|
-
if (
|
|
8849
|
-
let
|
|
8908
|
+
}, [N, i, g]);
|
|
8909
|
+
const w = Ge(() => p.allFields.filter((_) => _.compute).map((_) => ({
|
|
8910
|
+
name: _.name,
|
|
8911
|
+
expr: _.compute.expr,
|
|
8912
|
+
dependencies: _.compute.dependencies || xo(_.compute.expr),
|
|
8913
|
+
precision: _.compute.precision,
|
|
8914
|
+
roundMode: _.compute.roundMode
|
|
8915
|
+
})), [p.allFields]), z = we({});
|
|
8916
|
+
Ve(() => {
|
|
8917
|
+
if (w.length === 0) return;
|
|
8918
|
+
let _ = !1;
|
|
8850
8919
|
const c = {};
|
|
8851
|
-
for (const { name:
|
|
8852
|
-
const
|
|
8853
|
-
if (
|
|
8920
|
+
for (const { name: T, expr: x, dependencies: B, precision: I, roundMode: Y } of w) {
|
|
8921
|
+
const J = B.map((U) => `${U}:${N[U]}`).join("|"), oe = z.current[T];
|
|
8922
|
+
if (J === oe)
|
|
8854
8923
|
continue;
|
|
8855
|
-
if (!
|
|
8856
|
-
|
|
8924
|
+
if (!B.every((U) => Fr(N[U]))) {
|
|
8925
|
+
z.current[T] = J;
|
|
8857
8926
|
continue;
|
|
8858
8927
|
}
|
|
8859
|
-
const R = Co(x,
|
|
8860
|
-
R !== void 0 && R !==
|
|
8861
|
-
(typeof R != "number" || typeof
|
|
8928
|
+
const R = Co(x, N, B, I, Y), G = g.getValues(T);
|
|
8929
|
+
R !== void 0 && R !== G && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
|
|
8930
|
+
(typeof R != "number" || typeof G != "number" || Math.abs(R - G) > 1e-4) && (c[T] = R, _ = !0), z.current[T] = J;
|
|
8862
8931
|
}
|
|
8863
|
-
|
|
8932
|
+
_ && g.reset(
|
|
8864
8933
|
{
|
|
8865
8934
|
...g.getValues(),
|
|
8866
8935
|
...c
|
|
@@ -8879,18 +8948,18 @@ function bu(e, t) {
|
|
|
8879
8948
|
// keepDirty: true means "if a field was dirty, keep it dirty".
|
|
8880
8949
|
}
|
|
8881
8950
|
);
|
|
8882
|
-
}, [
|
|
8883
|
-
const
|
|
8884
|
-
async (
|
|
8885
|
-
const c = g.getValues(),
|
|
8951
|
+
}, [N, w, g]);
|
|
8952
|
+
const X = ho(
|
|
8953
|
+
async (_) => {
|
|
8954
|
+
const c = g.getValues(), T = {};
|
|
8886
8955
|
for (const x of p.allFields) {
|
|
8887
8956
|
if (x.noSubmit)
|
|
8888
8957
|
continue;
|
|
8889
|
-
const
|
|
8890
|
-
let
|
|
8891
|
-
x.transform ?
|
|
8958
|
+
const B = x.name;
|
|
8959
|
+
let I = B in _ ? _[B] : c[B];
|
|
8960
|
+
x.transform ? T[B] = x.transform(I, c) : T[B] = I;
|
|
8892
8961
|
}
|
|
8893
|
-
o && await o(
|
|
8962
|
+
o && await o(T);
|
|
8894
8963
|
},
|
|
8895
8964
|
[p.allFields, o, g]
|
|
8896
8965
|
);
|
|
@@ -8899,45 +8968,45 @@ function bu(e, t) {
|
|
|
8899
8968
|
() => ({
|
|
8900
8969
|
...g,
|
|
8901
8970
|
submit: async () => {
|
|
8902
|
-
await g.handleSubmit(
|
|
8971
|
+
await g.handleSubmit(X)();
|
|
8903
8972
|
},
|
|
8904
8973
|
getFormValues: () => {
|
|
8905
|
-
const c = g.getValues(),
|
|
8974
|
+
const c = g.getValues(), T = {};
|
|
8906
8975
|
for (const x of p.allFields)
|
|
8907
|
-
x.noSubmit || (
|
|
8908
|
-
return
|
|
8976
|
+
x.noSubmit || (T[x.name] = c[x.name]);
|
|
8977
|
+
return T;
|
|
8909
8978
|
},
|
|
8910
8979
|
setValues: (c) => {
|
|
8911
|
-
for (const [
|
|
8912
|
-
x !== void 0 && g.setValue(
|
|
8980
|
+
for (const [T, x] of Object.entries(c))
|
|
8981
|
+
x !== void 0 && g.setValue(T, x);
|
|
8913
8982
|
}
|
|
8914
8983
|
}),
|
|
8915
|
-
[g, p,
|
|
8984
|
+
[g, p, X]
|
|
8916
8985
|
);
|
|
8917
|
-
const
|
|
8986
|
+
const F = () => p.input.fields.flatMap((c, T) => {
|
|
8918
8987
|
if (c.component === "Hidden")
|
|
8919
8988
|
return [];
|
|
8920
8989
|
const x = [];
|
|
8921
|
-
return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${
|
|
8990
|
+
return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${T}-newline`)), x.push(
|
|
8922
8991
|
/* @__PURE__ */ E(
|
|
8923
8992
|
Yl,
|
|
8924
8993
|
{
|
|
8925
8994
|
field: c,
|
|
8926
|
-
index:
|
|
8927
|
-
values:
|
|
8995
|
+
index: T,
|
|
8996
|
+
values: N,
|
|
8928
8997
|
form: g,
|
|
8929
8998
|
disabled: u,
|
|
8930
8999
|
readOnly: l,
|
|
8931
9000
|
widgets: h,
|
|
8932
|
-
optionsMap:
|
|
9001
|
+
optionsMap: O,
|
|
8933
9002
|
useGrid: a
|
|
8934
9003
|
},
|
|
8935
|
-
`${String(c.name)}-${
|
|
9004
|
+
`${String(c.name)}-${T}`
|
|
8936
9005
|
)
|
|
8937
9006
|
), x;
|
|
8938
|
-
}),
|
|
8939
|
-
return /* @__PURE__ */ E(xi, { ...g, children: /* @__PURE__ */
|
|
8940
|
-
a ? /* @__PURE__ */ E(Hl, { spacing:
|
|
9007
|
+
}), q = y ?? r.layout?.spacing ?? 2;
|
|
9008
|
+
return /* @__PURE__ */ E(xi, { ...g, children: /* @__PURE__ */ de("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
|
|
9009
|
+
a ? /* @__PURE__ */ E(Hl, { spacing: q, children: F() }) : /* @__PURE__ */ E(Kl, { spacing: q, children: F() }),
|
|
8941
9010
|
m
|
|
8942
9011
|
] }) });
|
|
8943
9012
|
}
|
|
@@ -8968,15 +9037,15 @@ export {
|
|
|
8968
9037
|
uo as TextareaWidget,
|
|
8969
9038
|
po as TimeWidget,
|
|
8970
9039
|
Fi as buildValibotSchema,
|
|
8971
|
-
|
|
9040
|
+
Ae as compactFieldStyles,
|
|
8972
9041
|
Iu as computeAllFieldStates,
|
|
8973
9042
|
Ht as computeFieldState,
|
|
8974
9043
|
qi as createDynamicResolver,
|
|
8975
9044
|
hu as defaultWidgets,
|
|
8976
|
-
|
|
9045
|
+
je as evaluateCondition,
|
|
8977
9046
|
nt as extractDependencies,
|
|
8978
9047
|
Mu as getDownstreamFields,
|
|
8979
|
-
|
|
9048
|
+
Vi as getWatchFields,
|
|
8980
9049
|
_u as mergeDefaultValues,
|
|
8981
9050
|
zi as parseSchema
|
|
8982
9051
|
};
|