@fastspace/schema-form 0.0.9 → 0.0.10
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 +811 -786
- package/dist/schema-form-lib.umd.cjs +11 -11
- package/package.json +1 -1
package/dist/schema-form-lib.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as A from "valibot";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as $, jsxs as fe, Fragment as Dr } from "react/jsx-runtime";
|
|
3
3
|
import * as B from "react";
|
|
4
|
-
import dt, { memo as mi, forwardRef as mo, useRef as
|
|
4
|
+
import dt, { memo as mi, forwardRef as mo, useRef as Ne, useState as De, useEffect as _e, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
|
|
5
5
|
import { Controller as jr, 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";
|
|
@@ -210,7 +210,7 @@ function wr(e, t) {
|
|
|
210
210
|
case "minLength":
|
|
211
211
|
f.push(
|
|
212
212
|
A.check(
|
|
213
|
-
(
|
|
213
|
+
(T) => T == null || T === "" || String(T).length >= g.value,
|
|
214
214
|
g.message ?? `${r}至少${g.value}个字符`
|
|
215
215
|
)
|
|
216
216
|
);
|
|
@@ -218,16 +218,16 @@ function wr(e, t) {
|
|
|
218
218
|
case "maxLength":
|
|
219
219
|
f.push(
|
|
220
220
|
A.check(
|
|
221
|
-
(
|
|
221
|
+
(T) => T == null || T === "" || String(T).length <= g.value,
|
|
222
222
|
g.message ?? `${r}最多${g.value}个字符`
|
|
223
223
|
)
|
|
224
224
|
);
|
|
225
225
|
break;
|
|
226
226
|
case "pattern": {
|
|
227
|
-
const
|
|
227
|
+
const T = typeof g.value == "string" ? new RegExp(g.value) : g.value;
|
|
228
228
|
f.push(
|
|
229
229
|
A.check(
|
|
230
|
-
(k) => k == null || k === "" ||
|
|
230
|
+
(k) => k == null || k === "" || T.test(String(k)),
|
|
231
231
|
g.message ?? `${r}格式不正确`
|
|
232
232
|
)
|
|
233
233
|
);
|
|
@@ -236,17 +236,17 @@ function wr(e, t) {
|
|
|
236
236
|
case "email":
|
|
237
237
|
f.push(
|
|
238
238
|
A.check(
|
|
239
|
-
(
|
|
239
|
+
(T) => T == null || T === "" || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(T)),
|
|
240
240
|
g.message ?? `${r}必须是有效的邮箱`
|
|
241
241
|
)
|
|
242
242
|
);
|
|
243
243
|
break;
|
|
244
244
|
case "url":
|
|
245
245
|
f.push(
|
|
246
|
-
A.check((
|
|
247
|
-
if (
|
|
246
|
+
A.check((T) => {
|
|
247
|
+
if (T == null || T === "") return !0;
|
|
248
248
|
try {
|
|
249
|
-
return new URL(String(
|
|
249
|
+
return new URL(String(T)), !0;
|
|
250
250
|
} catch {
|
|
251
251
|
return !1;
|
|
252
252
|
}
|
|
@@ -256,9 +256,9 @@ function wr(e, t) {
|
|
|
256
256
|
case "custom":
|
|
257
257
|
f.push(
|
|
258
258
|
A.check(
|
|
259
|
-
(
|
|
260
|
-
(
|
|
261
|
-
const k = g.validate(
|
|
259
|
+
(T) => g.validate(T, t) === !0,
|
|
260
|
+
(T) => {
|
|
261
|
+
const k = g.validate(T.input, t);
|
|
262
262
|
return typeof k == "string" ? k : "校验失败";
|
|
263
263
|
}
|
|
264
264
|
)
|
|
@@ -275,7 +275,7 @@ function wr(e, t) {
|
|
|
275
275
|
case "min":
|
|
276
276
|
f.push(
|
|
277
277
|
A.check(
|
|
278
|
-
(
|
|
278
|
+
(T) => T == null || Number(T) >= g.value,
|
|
279
279
|
g.message ?? `${r}不能小于${g.value}`
|
|
280
280
|
)
|
|
281
281
|
);
|
|
@@ -283,7 +283,7 @@ function wr(e, t) {
|
|
|
283
283
|
case "max":
|
|
284
284
|
f.push(
|
|
285
285
|
A.check(
|
|
286
|
-
(
|
|
286
|
+
(T) => T == null || Number(T) <= g.value,
|
|
287
287
|
g.message ?? `${r}不能大于${g.value}`
|
|
288
288
|
)
|
|
289
289
|
);
|
|
@@ -291,9 +291,9 @@ function wr(e, t) {
|
|
|
291
291
|
case "custom":
|
|
292
292
|
f.push(
|
|
293
293
|
A.check(
|
|
294
|
-
(
|
|
295
|
-
(
|
|
296
|
-
const k = g.validate(
|
|
294
|
+
(T) => g.validate(T, t) === !0,
|
|
295
|
+
(T) => {
|
|
296
|
+
const k = g.validate(T.input, t);
|
|
297
297
|
return typeof k == "string" ? k : "校验失败";
|
|
298
298
|
}
|
|
299
299
|
)
|
|
@@ -310,16 +310,16 @@ function wr(e, t) {
|
|
|
310
310
|
) : h;
|
|
311
311
|
}
|
|
312
312
|
if (n === "FormList") {
|
|
313
|
-
const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0,
|
|
313
|
+
const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0, T = {};
|
|
314
314
|
for (const S of h)
|
|
315
315
|
if (S.component === "Group" && S.columns)
|
|
316
|
-
for (const
|
|
317
|
-
|
|
318
|
-
else S.component !== "Group" && (
|
|
319
|
-
const k = A.object(
|
|
316
|
+
for (const w of S.columns)
|
|
317
|
+
T[w.name] = wr(w, t);
|
|
318
|
+
else S.component !== "Group" && (T[S.name] = wr(S, t));
|
|
319
|
+
const k = A.object(T), M = [];
|
|
320
320
|
f > 0 && M.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && M.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
|
|
321
|
-
const
|
|
322
|
-
return M.length > 0 ? A.pipe(
|
|
321
|
+
const R = A.array(k);
|
|
322
|
+
return M.length > 0 ? A.pipe(R, ...M) : R;
|
|
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;
|
|
@@ -435,16 +435,16 @@ 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
|
-
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,
|
|
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, T = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
444
444
|
function M(S) {
|
|
445
445
|
if (typeof S == "object" && S !== null) {
|
|
446
|
-
var
|
|
447
|
-
switch (
|
|
446
|
+
var w = S.$$typeof;
|
|
447
|
+
switch (w) {
|
|
448
448
|
case t:
|
|
449
449
|
switch (S = S.type, S) {
|
|
450
450
|
case u:
|
|
@@ -463,70 +463,70 @@ function Ui() {
|
|
|
463
463
|
case a:
|
|
464
464
|
return S;
|
|
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
|
|
474
|
+
function R(S) {
|
|
475
475
|
return M(S) === d;
|
|
476
476
|
}
|
|
477
|
-
return
|
|
478
|
-
return
|
|
479
|
-
},
|
|
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(S) {
|
|
478
|
+
return R(S) || M(S) === u;
|
|
479
|
+
}, ee.isConcurrentMode = R, ee.isContextConsumer = function(S) {
|
|
480
480
|
return M(S) === l;
|
|
481
|
-
},
|
|
481
|
+
}, ee.isContextProvider = function(S) {
|
|
482
482
|
return M(S) === a;
|
|
483
|
-
},
|
|
483
|
+
}, ee.isElement = function(S) {
|
|
484
484
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
485
|
-
},
|
|
485
|
+
}, ee.isForwardRef = function(S) {
|
|
486
486
|
return M(S) === m;
|
|
487
|
-
},
|
|
487
|
+
}, ee.isFragment = function(S) {
|
|
488
488
|
return M(S) === n;
|
|
489
|
-
},
|
|
489
|
+
}, ee.isLazy = function(S) {
|
|
490
490
|
return M(S) === h;
|
|
491
|
-
},
|
|
491
|
+
}, ee.isMemo = function(S) {
|
|
492
492
|
return M(S) === b;
|
|
493
|
-
},
|
|
493
|
+
}, ee.isPortal = function(S) {
|
|
494
494
|
return M(S) === r;
|
|
495
|
-
},
|
|
495
|
+
}, ee.isProfiler = function(S) {
|
|
496
496
|
return M(S) === i;
|
|
497
|
-
},
|
|
497
|
+
}, ee.isStrictMode = function(S) {
|
|
498
498
|
return M(S) === o;
|
|
499
|
-
},
|
|
499
|
+
}, ee.isSuspense = function(S) {
|
|
500
500
|
return M(S) === y;
|
|
501
|
-
},
|
|
502
|
-
return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === p || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === m || S.$$typeof === g || S.$$typeof ===
|
|
503
|
-
},
|
|
501
|
+
}, ee.isValidElementType = function(S) {
|
|
502
|
+
return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === p || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === m || S.$$typeof === g || S.$$typeof === T || S.$$typeof === k || S.$$typeof === f);
|
|
503
|
+
}, ee.typeOf = M, ee;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
505
|
+
var te = {};
|
|
506
506
|
var sn;
|
|
507
507
|
function Yi() {
|
|
508
508
|
return sn || (sn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
509
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, 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,
|
|
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, T = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
510
510
|
function M(N) {
|
|
511
511
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
512
|
-
N === n || N === d || N === i || N === o || N === y || N === p || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === m || N.$$typeof === g || N.$$typeof ===
|
|
512
|
+
N === n || N === d || N === i || N === o || N === y || N === p || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === m || N.$$typeof === g || N.$$typeof === T || N.$$typeof === k || N.$$typeof === f);
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function R(N) {
|
|
515
515
|
if (typeof N == "object" && N !== null) {
|
|
516
516
|
var ye = N.$$typeof;
|
|
517
517
|
switch (ye) {
|
|
518
518
|
case t:
|
|
519
|
-
var
|
|
520
|
-
switch (
|
|
519
|
+
var Be = N.type;
|
|
520
|
+
switch (Be) {
|
|
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 Be;
|
|
528
528
|
default:
|
|
529
|
-
var wt =
|
|
529
|
+
var wt = Be && Be.$$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 S = u,
|
|
547
|
-
function
|
|
548
|
-
return
|
|
546
|
+
var S = u, w = d, V = l, G = a, W = t, F = m, I = n, c = h, E = b, C = r, _ = i, P = o, U = y, oe = !1;
|
|
547
|
+
function j(N) {
|
|
548
|
+
return oe || (oe = !0), x(N) || R(N) === u;
|
|
549
|
+
}
|
|
550
|
+
function x(N) {
|
|
551
|
+
return R(N) === d;
|
|
549
552
|
}
|
|
550
553
|
function O(N) {
|
|
551
|
-
return
|
|
554
|
+
return R(N) === l;
|
|
552
555
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
556
|
+
function z(N) {
|
|
557
|
+
return R(N) === a;
|
|
555
558
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
559
|
+
function D(N) {
|
|
560
|
+
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
558
561
|
}
|
|
559
562
|
function L(N) {
|
|
560
|
-
return
|
|
563
|
+
return R(N) === m;
|
|
561
564
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
565
|
+
function K(N) {
|
|
566
|
+
return R(N) === n;
|
|
564
567
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
568
|
+
function q(N) {
|
|
569
|
+
return R(N) === h;
|
|
567
570
|
}
|
|
568
571
|
function H(N) {
|
|
569
|
-
return
|
|
572
|
+
return R(N) === b;
|
|
570
573
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
573
|
-
}
|
|
574
|
-
function Q(N) {
|
|
575
|
-
return $(N) === r;
|
|
574
|
+
function X(N) {
|
|
575
|
+
return R(N) === r;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
577
|
+
function Z(N) {
|
|
578
|
+
return R(N) === i;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
return
|
|
580
|
+
function Q(N) {
|
|
581
|
+
return R(N) === o;
|
|
582
582
|
}
|
|
583
583
|
function me(N) {
|
|
584
|
-
return
|
|
584
|
+
return R(N) === y;
|
|
585
585
|
}
|
|
586
|
-
|
|
587
|
-
})()),
|
|
586
|
+
te.AsyncMode = S, te.ConcurrentMode = w, te.ContextConsumer = V, te.ContextProvider = G, te.Element = W, te.ForwardRef = F, te.Fragment = I, te.Lazy = c, te.Memo = E, te.Portal = C, te.Profiler = _, te.StrictMode = P, te.Suspense = U, te.isAsyncMode = j, te.isConcurrentMode = x, te.isContextConsumer = O, te.isContextProvider = z, te.isElement = D, te.isForwardRef = L, te.isFragment = K, te.isLazy = q, te.isMemo = H, te.isPortal = X, te.isProfiler = Z, te.isStrictMode = Q, te.isSuspense = me, te.isValidElementType = M, te.typeOf = R;
|
|
587
|
+
})()), te;
|
|
588
588
|
}
|
|
589
589
|
var an;
|
|
590
590
|
function To() {
|
|
@@ -713,260 +713,260 @@ 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
|
|
718
|
-
if (typeof
|
|
719
|
-
return
|
|
716
|
+
function y(x) {
|
|
717
|
+
var O = x && (d && x[d] || x[m]);
|
|
718
|
+
if (typeof O == "function")
|
|
719
|
+
return O;
|
|
720
720
|
}
|
|
721
721
|
var p = "<<anonymous>>", b = {
|
|
722
|
-
array:
|
|
723
|
-
bigint:
|
|
724
|
-
bool:
|
|
725
|
-
func:
|
|
726
|
-
number:
|
|
727
|
-
object:
|
|
728
|
-
string:
|
|
729
|
-
symbol:
|
|
722
|
+
array: T("array"),
|
|
723
|
+
bigint: T("bigint"),
|
|
724
|
+
bool: T("boolean"),
|
|
725
|
+
func: T("function"),
|
|
726
|
+
number: T("number"),
|
|
727
|
+
object: T("object"),
|
|
728
|
+
string: T("string"),
|
|
729
|
+
symbol: T("symbol"),
|
|
730
730
|
any: k(),
|
|
731
731
|
arrayOf: M,
|
|
732
|
-
element:
|
|
732
|
+
element: R(),
|
|
733
733
|
elementType: S(),
|
|
734
|
-
instanceOf:
|
|
734
|
+
instanceOf: w,
|
|
735
735
|
node: F(),
|
|
736
736
|
objectOf: G,
|
|
737
|
-
oneOf:
|
|
738
|
-
oneOfType:
|
|
737
|
+
oneOf: V,
|
|
738
|
+
oneOfType: W,
|
|
739
739
|
shape: c,
|
|
740
|
-
exact:
|
|
740
|
+
exact: E
|
|
741
741
|
};
|
|
742
|
-
function h(
|
|
743
|
-
return
|
|
742
|
+
function h(x, O) {
|
|
743
|
+
return x === O ? x !== 0 || 1 / x === 1 / O : x !== x && O !== O;
|
|
744
744
|
}
|
|
745
|
-
function f(
|
|
746
|
-
this.message =
|
|
745
|
+
function f(x, O) {
|
|
746
|
+
this.message = x, this.data = O && typeof O == "object" ? O : {}, this.stack = "";
|
|
747
747
|
}
|
|
748
748
|
f.prototype = Error.prototype;
|
|
749
|
-
function g(
|
|
749
|
+
function g(x) {
|
|
750
750
|
if (process.env.NODE_ENV !== "production")
|
|
751
|
-
var
|
|
752
|
-
function
|
|
753
|
-
if (
|
|
751
|
+
var O = {}, z = 0;
|
|
752
|
+
function D(K, q, H, X, Z, Q, me) {
|
|
753
|
+
if (X = X || p, Q = Q || H, me !== r) {
|
|
754
754
|
if (u) {
|
|
755
755
|
var N = new Error(
|
|
756
756
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
757
757
|
);
|
|
758
758
|
throw N.name = "Invariant Violation", N;
|
|
759
759
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
760
|
-
var ye =
|
|
761
|
-
!
|
|
762
|
-
|
|
763
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
764
|
-
),
|
|
760
|
+
var ye = X + ":" + H;
|
|
761
|
+
!O[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
762
|
+
z < 3 && (i(
|
|
763
|
+
"You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" + X + "`. 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
|
+
), O[ye] = !0, z++);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
return H
|
|
767
|
+
return q[H] == null ? K ? q[H] === null ? new f("The " + Z + " `" + Q + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new f("The " + Z + " `" + Q + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : x(q, H, X, Z, Q);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
return
|
|
771
|
-
}
|
|
772
|
-
function
|
|
773
|
-
function
|
|
774
|
-
var
|
|
775
|
-
if (
|
|
776
|
-
var
|
|
769
|
+
var L = D.bind(null, !1);
|
|
770
|
+
return L.isRequired = D.bind(null, !0), L;
|
|
771
|
+
}
|
|
772
|
+
function T(x) {
|
|
773
|
+
function O(z, D, L, K, q, H) {
|
|
774
|
+
var X = z[D], Z = P(X);
|
|
775
|
+
if (Z !== x) {
|
|
776
|
+
var Q = U(X);
|
|
777
777
|
return new f(
|
|
778
|
-
"Invalid " +
|
|
779
|
-
{ expectedType:
|
|
778
|
+
"Invalid " + K + " `" + q + "` of type " + ("`" + Q + "` supplied to `" + L + "`, expected ") + ("`" + x + "`."),
|
|
779
|
+
{ expectedType: x }
|
|
780
780
|
);
|
|
781
781
|
}
|
|
782
782
|
return null;
|
|
783
783
|
}
|
|
784
|
-
return g(
|
|
784
|
+
return g(O);
|
|
785
785
|
}
|
|
786
786
|
function k() {
|
|
787
787
|
return g(a);
|
|
788
788
|
}
|
|
789
|
-
function M(
|
|
790
|
-
function
|
|
791
|
-
if (typeof
|
|
792
|
-
return new f("Property `" +
|
|
793
|
-
var
|
|
794
|
-
if (!Array.isArray(
|
|
795
|
-
var
|
|
796
|
-
return new f("Invalid " +
|
|
789
|
+
function M(x) {
|
|
790
|
+
function O(z, D, L, K, q) {
|
|
791
|
+
if (typeof x != "function")
|
|
792
|
+
return new f("Property `" + q + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
793
|
+
var H = z[D];
|
|
794
|
+
if (!Array.isArray(H)) {
|
|
795
|
+
var X = P(H);
|
|
796
|
+
return new f("Invalid " + K + " `" + q + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected an array."));
|
|
797
797
|
}
|
|
798
|
-
for (var
|
|
799
|
-
var
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
798
|
+
for (var Z = 0; Z < H.length; Z++) {
|
|
799
|
+
var Q = x(H, Z, L, K, q + "[" + Z + "]", r);
|
|
800
|
+
if (Q instanceof Error)
|
|
801
|
+
return Q;
|
|
802
802
|
}
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
805
|
-
return g(
|
|
806
|
-
}
|
|
807
|
-
function
|
|
808
|
-
function O
|
|
809
|
-
var
|
|
810
|
-
if (!l(
|
|
811
|
-
var
|
|
812
|
-
return new f("Invalid " +
|
|
805
|
+
return g(O);
|
|
806
|
+
}
|
|
807
|
+
function R() {
|
|
808
|
+
function x(O, z, D, L, K) {
|
|
809
|
+
var q = O[z];
|
|
810
|
+
if (!l(q)) {
|
|
811
|
+
var H = P(q);
|
|
812
|
+
return new f("Invalid " + L + " `" + K + "` of type " + ("`" + H + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
813
813
|
}
|
|
814
814
|
return null;
|
|
815
815
|
}
|
|
816
|
-
return g(
|
|
816
|
+
return g(x);
|
|
817
817
|
}
|
|
818
818
|
function S() {
|
|
819
|
-
function O
|
|
820
|
-
var
|
|
821
|
-
if (!e.isValidElementType(
|
|
822
|
-
var
|
|
823
|
-
return new f("Invalid " +
|
|
819
|
+
function x(O, z, D, L, K) {
|
|
820
|
+
var q = O[z];
|
|
821
|
+
if (!e.isValidElementType(q)) {
|
|
822
|
+
var H = P(q);
|
|
823
|
+
return new f("Invalid " + L + " `" + K + "` of type " + ("`" + H + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
824
824
|
}
|
|
825
825
|
return null;
|
|
826
826
|
}
|
|
827
|
-
return g(
|
|
827
|
+
return g(x);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
function
|
|
831
|
-
if (!(
|
|
832
|
-
var
|
|
833
|
-
return new f("Invalid " +
|
|
829
|
+
function w(x) {
|
|
830
|
+
function O(z, D, L, K, q) {
|
|
831
|
+
if (!(z[D] instanceof x)) {
|
|
832
|
+
var H = x.name || p, X = j(z[D]);
|
|
833
|
+
return new f("Invalid " + K + " `" + q + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected ") + ("instance of `" + H + "`."));
|
|
834
834
|
}
|
|
835
835
|
return null;
|
|
836
836
|
}
|
|
837
|
-
return g(
|
|
837
|
+
return g(O);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
if (!Array.isArray(
|
|
839
|
+
function V(x) {
|
|
840
|
+
if (!Array.isArray(x))
|
|
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
|
|
845
|
-
for (var
|
|
846
|
-
if (h(
|
|
844
|
+
function O(z, D, L, K, q) {
|
|
845
|
+
for (var H = z[D], X = 0; X < x.length; X++)
|
|
846
|
+
if (h(H, x[X]))
|
|
847
847
|
return null;
|
|
848
|
-
var
|
|
848
|
+
var Z = JSON.stringify(x, function(me, N) {
|
|
849
849
|
var ye = U(N);
|
|
850
850
|
return ye === "symbol" ? String(N) : N;
|
|
851
851
|
});
|
|
852
|
-
return new f("Invalid " +
|
|
852
|
+
return new f("Invalid " + K + " `" + q + "` of value `" + String(H) + "` " + ("supplied to `" + L + "`, expected one of " + Z + "."));
|
|
853
853
|
}
|
|
854
|
-
return g(
|
|
855
|
-
}
|
|
856
|
-
function G(
|
|
857
|
-
function
|
|
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
|
|
854
|
+
return g(O);
|
|
855
|
+
}
|
|
856
|
+
function G(x) {
|
|
857
|
+
function O(z, D, L, K, q) {
|
|
858
|
+
if (typeof x != "function")
|
|
859
|
+
return new f("Property `" + q + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
860
|
+
var H = z[D], X = P(H);
|
|
861
|
+
if (X !== "object")
|
|
862
|
+
return new f("Invalid " + K + " `" + q + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected an object."));
|
|
863
|
+
for (var Z in H)
|
|
864
|
+
if (n(H, Z)) {
|
|
865
|
+
var Q = x(H, Z, L, K, q + "." + Z, r);
|
|
866
|
+
if (Q instanceof Error)
|
|
867
|
+
return Q;
|
|
868
868
|
}
|
|
869
869
|
return null;
|
|
870
870
|
}
|
|
871
|
-
return g(
|
|
871
|
+
return g(O);
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
if (!Array.isArray(
|
|
873
|
+
function W(x) {
|
|
874
|
+
if (!Array.isArray(x))
|
|
875
875
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
876
|
-
for (var
|
|
877
|
-
var
|
|
878
|
-
if (typeof
|
|
876
|
+
for (var O = 0; O < x.length; O++) {
|
|
877
|
+
var z = x[O];
|
|
878
|
+
if (typeof z != "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 " + oe(z) + " at index " + O + "."
|
|
881
881
|
), a;
|
|
882
882
|
}
|
|
883
|
-
function L
|
|
884
|
-
for (var
|
|
885
|
-
var me =
|
|
883
|
+
function D(L, K, q, H, X) {
|
|
884
|
+
for (var Z = [], Q = 0; Q < x.length; Q++) {
|
|
885
|
+
var me = x[Q], N = me(L, K, q, H, X, r);
|
|
886
886
|
if (N == null)
|
|
887
887
|
return null;
|
|
888
|
-
N.data && n(N.data, "expectedType") &&
|
|
888
|
+
N.data && n(N.data, "expectedType") && Z.push(N.data.expectedType);
|
|
889
889
|
}
|
|
890
|
-
var ye =
|
|
891
|
-
return new f("Invalid " +
|
|
890
|
+
var ye = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
891
|
+
return new f("Invalid " + H + " `" + X + "` supplied to " + ("`" + q + "`" + ye + "."));
|
|
892
892
|
}
|
|
893
|
-
return g(
|
|
893
|
+
return g(D);
|
|
894
894
|
}
|
|
895
895
|
function F() {
|
|
896
|
-
function O
|
|
897
|
-
return
|
|
896
|
+
function x(O, z, D, L, K) {
|
|
897
|
+
return C(O[z]) ? null : new f("Invalid " + L + " `" + K + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
898
898
|
}
|
|
899
|
-
return g(
|
|
899
|
+
return g(x);
|
|
900
900
|
}
|
|
901
|
-
function I(O,
|
|
901
|
+
function I(x, O, z, D, L) {
|
|
902
902
|
return new f(
|
|
903
|
-
(
|
|
903
|
+
(x || "React class") + ": " + O + " type `" + z + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
|
-
function c(
|
|
907
|
-
function
|
|
908
|
-
var
|
|
909
|
-
if (
|
|
910
|
-
return new f("Invalid " +
|
|
911
|
-
for (var
|
|
912
|
-
var
|
|
913
|
-
if (typeof
|
|
914
|
-
return I(
|
|
915
|
-
var me =
|
|
906
|
+
function c(x) {
|
|
907
|
+
function O(z, D, L, K, q) {
|
|
908
|
+
var H = z[D], X = P(H);
|
|
909
|
+
if (X !== "object")
|
|
910
|
+
return new f("Invalid " + K + " `" + q + "` of type `" + X + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
911
|
+
for (var Z in x) {
|
|
912
|
+
var Q = x[Z];
|
|
913
|
+
if (typeof Q != "function")
|
|
914
|
+
return I(L, K, q, Z, U(Q));
|
|
915
|
+
var me = Q(H, Z, L, K, q + "." + Z, r);
|
|
916
916
|
if (me)
|
|
917
917
|
return me;
|
|
918
918
|
}
|
|
919
919
|
return null;
|
|
920
920
|
}
|
|
921
|
-
return g(
|
|
922
|
-
}
|
|
923
|
-
function
|
|
924
|
-
function
|
|
925
|
-
var
|
|
926
|
-
if (
|
|
927
|
-
return new f("Invalid " +
|
|
928
|
-
var
|
|
929
|
-
for (var
|
|
930
|
-
var me =
|
|
931
|
-
if (n(
|
|
932
|
-
return I(
|
|
921
|
+
return g(O);
|
|
922
|
+
}
|
|
923
|
+
function E(x) {
|
|
924
|
+
function O(z, D, L, K, q) {
|
|
925
|
+
var H = z[D], X = P(H);
|
|
926
|
+
if (X !== "object")
|
|
927
|
+
return new f("Invalid " + K + " `" + q + "` of type `" + X + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
928
|
+
var Z = t({}, z[D], x);
|
|
929
|
+
for (var Q in Z) {
|
|
930
|
+
var me = x[Q];
|
|
931
|
+
if (n(x, Q) && typeof me != "function")
|
|
932
|
+
return I(L, K, q, Q, U(me));
|
|
933
933
|
if (!me)
|
|
934
934
|
return new f(
|
|
935
|
-
"Invalid " +
|
|
936
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
935
|
+
"Invalid " + K + " `" + q + "` key `" + Q + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(z[D], null, " ") + `
|
|
936
|
+
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
937
937
|
);
|
|
938
|
-
var N = me(
|
|
938
|
+
var N = me(H, Q, L, K, q + "." + Q, r);
|
|
939
939
|
if (N)
|
|
940
940
|
return N;
|
|
941
941
|
}
|
|
942
942
|
return null;
|
|
943
943
|
}
|
|
944
|
-
return g(
|
|
944
|
+
return g(O);
|
|
945
945
|
}
|
|
946
|
-
function x
|
|
947
|
-
switch (typeof
|
|
946
|
+
function C(x) {
|
|
947
|
+
switch (typeof x) {
|
|
948
948
|
case "number":
|
|
949
949
|
case "string":
|
|
950
950
|
case "undefined":
|
|
951
951
|
return !0;
|
|
952
952
|
case "boolean":
|
|
953
|
-
return !
|
|
953
|
+
return !x;
|
|
954
954
|
case "object":
|
|
955
|
-
if (Array.isArray(
|
|
956
|
-
return
|
|
957
|
-
if (
|
|
955
|
+
if (Array.isArray(x))
|
|
956
|
+
return x.every(C);
|
|
957
|
+
if (x === null || l(x))
|
|
958
958
|
return !0;
|
|
959
|
-
var
|
|
960
|
-
if (
|
|
961
|
-
var
|
|
962
|
-
if (
|
|
963
|
-
for (; !(
|
|
964
|
-
if (!
|
|
959
|
+
var O = y(x);
|
|
960
|
+
if (O) {
|
|
961
|
+
var z = O.call(x), D;
|
|
962
|
+
if (O !== x.entries) {
|
|
963
|
+
for (; !(D = z.next()).done; )
|
|
964
|
+
if (!C(D.value))
|
|
965
965
|
return !1;
|
|
966
966
|
} else
|
|
967
|
-
for (; !(
|
|
968
|
-
var
|
|
969
|
-
if (
|
|
967
|
+
for (; !(D = z.next()).done; ) {
|
|
968
|
+
var L = D.value;
|
|
969
|
+
if (L && !C(L[1]))
|
|
970
970
|
return !1;
|
|
971
971
|
}
|
|
972
972
|
} else
|
|
@@ -976,41 +976,41 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
976
976
|
return !1;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
return
|
|
979
|
+
function _(x, O) {
|
|
980
|
+
return x === "symbol" ? !0 : O ? O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol : !1;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
var
|
|
984
|
-
return Array.isArray(
|
|
982
|
+
function P(x) {
|
|
983
|
+
var O = typeof x;
|
|
984
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : _(O, x) ? "symbol" : O;
|
|
985
985
|
}
|
|
986
|
-
function U(
|
|
987
|
-
if (typeof
|
|
988
|
-
return "" +
|
|
989
|
-
var
|
|
990
|
-
if (
|
|
991
|
-
if (
|
|
986
|
+
function U(x) {
|
|
987
|
+
if (typeof x > "u" || x === null)
|
|
988
|
+
return "" + x;
|
|
989
|
+
var O = P(x);
|
|
990
|
+
if (O === "object") {
|
|
991
|
+
if (x instanceof Date)
|
|
992
992
|
return "date";
|
|
993
|
-
if (
|
|
993
|
+
if (x instanceof RegExp)
|
|
994
994
|
return "regexp";
|
|
995
995
|
}
|
|
996
|
-
return
|
|
996
|
+
return O;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
var
|
|
1000
|
-
switch (
|
|
998
|
+
function oe(x) {
|
|
999
|
+
var O = U(x);
|
|
1000
|
+
switch (O) {
|
|
1001
1001
|
case "array":
|
|
1002
1002
|
case "object":
|
|
1003
|
-
return "an " +
|
|
1003
|
+
return "an " + O;
|
|
1004
1004
|
case "boolean":
|
|
1005
1005
|
case "date":
|
|
1006
1006
|
case "regexp":
|
|
1007
|
-
return "a " +
|
|
1007
|
+
return "a " + O;
|
|
1008
1008
|
default:
|
|
1009
|
-
return
|
|
1009
|
+
return O;
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return !
|
|
1012
|
+
function j(x) {
|
|
1013
|
+
return !x.constructor || !x.constructor.name ? p : x.constructor.name;
|
|
1014
1014
|
}
|
|
1015
1015
|
return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
|
|
1016
1016
|
}, gr;
|
|
@@ -1227,10 +1227,10 @@ 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 je = {
|
|
1231
1231
|
name: o,
|
|
1232
1232
|
styles: i,
|
|
1233
|
-
next:
|
|
1233
|
+
next: je
|
|
1234
1234
|
}, o;
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
@@ -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 je = {
|
|
1252
1252
|
name: o.name,
|
|
1253
1253
|
styles: o.styles,
|
|
1254
|
-
next:
|
|
1254
|
+
next: je
|
|
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
|
+
je = {
|
|
1262
1262
|
name: a.name,
|
|
1263
1263
|
styles: a.styles,
|
|
1264
|
-
next:
|
|
1264
|
+
next: je
|
|
1265
1265
|
}, a = a.next;
|
|
1266
1266
|
var l = i.styles + ";";
|
|
1267
1267
|
return l;
|
|
@@ -1301,12 +1301,12 @@ 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, je;
|
|
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
|
+
je = void 0;
|
|
1310
1310
|
var i = e[0];
|
|
1311
1311
|
if (i == null || i.raw === void 0)
|
|
1312
1312
|
n = !1, o += Vt(r, t, i);
|
|
@@ -1326,7 +1326,7 @@ function cs(e, t, r) {
|
|
|
1326
1326
|
return {
|
|
1327
1327
|
name: y,
|
|
1328
1328
|
styles: o,
|
|
1329
|
-
next:
|
|
1329
|
+
next: je
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
function Ro(e, t) {
|
|
@@ -1507,7 +1507,7 @@ function ze(e, ...t) {
|
|
|
1507
1507
|
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
1508
1508
|
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function J(e) {
|
|
1511
1511
|
if (typeof e != "string")
|
|
1512
1512
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ze(7));
|
|
1513
1513
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -1757,7 +1757,7 @@ function de(e) {
|
|
|
1757
1757
|
const l = a[t], u = a.theme, d = Xt(u, n) || {};
|
|
1758
1758
|
return we(a, l, (y) => {
|
|
1759
1759
|
let p = Wt(d, o, y);
|
|
1760
|
-
return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" :
|
|
1760
|
+
return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" : J(y)}`, y)), r === !1 ? p : {
|
|
1761
1761
|
[r]: p
|
|
1762
1762
|
};
|
|
1763
1763
|
});
|
|
@@ -2324,7 +2324,7 @@ function ca() {
|
|
|
2324
2324
|
const p = Xt(o, d) || {};
|
|
2325
2325
|
return y ? y(a) : we(a, n, (h) => {
|
|
2326
2326
|
let f = Wt(p, m, h);
|
|
2327
|
-
return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" :
|
|
2327
|
+
return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" : J(h)}`, h)), u === !1 ? f : {
|
|
2328
2328
|
[u]: f
|
|
2329
2329
|
};
|
|
2330
2330
|
});
|
|
@@ -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((V) => V !== Qe));
|
|
2538
2538
|
const {
|
|
2539
2539
|
name: d,
|
|
2540
2540
|
slot: m,
|
|
@@ -2548,53 +2548,53 @@ function Bo(e = {}) {
|
|
|
2548
2548
|
// TODO v6: remove `Root` in the next major release
|
|
2549
2549
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2550
2550
|
m && m !== "Root" && m !== "root" || !1
|
|
2551
|
-
),
|
|
2551
|
+
), T = p || !1;
|
|
2552
2552
|
let k = Sr;
|
|
2553
2553
|
m === "Root" || m === "root" ? k = n : m ? k = o : ba(l) && (k = void 0);
|
|
2554
2554
|
const M = Ro(l, {
|
|
2555
2555
|
shouldForwardProp: k,
|
|
2556
2556
|
label: ga(d, m),
|
|
2557
2557
|
...h
|
|
2558
|
-
}),
|
|
2559
|
-
if (
|
|
2560
|
-
return
|
|
2561
|
-
if (typeof
|
|
2558
|
+
}), R = (w) => {
|
|
2559
|
+
if (w.__emotion_real === w)
|
|
2560
|
+
return w;
|
|
2561
|
+
if (typeof w == "function")
|
|
2562
2562
|
return function(G) {
|
|
2563
|
-
return Bt(G,
|
|
2563
|
+
return Bt(G, w, G.theme.modularCssLayers ? f : void 0);
|
|
2564
2564
|
};
|
|
2565
|
-
if (Re(
|
|
2566
|
-
const
|
|
2567
|
-
return function(
|
|
2568
|
-
return
|
|
2565
|
+
if (Re(w)) {
|
|
2566
|
+
const V = _o(w);
|
|
2567
|
+
return function(W) {
|
|
2568
|
+
return V.variants ? Bt(W, V, W.theme.modularCssLayers ? f : void 0) : W.theme.modularCssLayers ? Ue(V.style, f) : V.style;
|
|
2569
2569
|
};
|
|
2570
2570
|
}
|
|
2571
|
-
return
|
|
2572
|
-
}, S = (...
|
|
2573
|
-
const
|
|
2574
|
-
if (
|
|
2575
|
-
const
|
|
2576
|
-
if (!
|
|
2571
|
+
return w;
|
|
2572
|
+
}, S = (...w) => {
|
|
2573
|
+
const V = [], G = w.map(R), W = [];
|
|
2574
|
+
if (V.push(i), d && b && W.push(function(E) {
|
|
2575
|
+
const _ = E.theme.components?.[d]?.styleOverrides;
|
|
2576
|
+
if (!_)
|
|
2577
2577
|
return null;
|
|
2578
|
-
const
|
|
2579
|
-
for (const U in
|
|
2580
|
-
|
|
2581
|
-
return b(
|
|
2582
|
-
}), d && !g &&
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
}),
|
|
2586
|
-
const c = G.shift(),
|
|
2587
|
-
let
|
|
2588
|
-
|
|
2578
|
+
const P = {};
|
|
2579
|
+
for (const U in _)
|
|
2580
|
+
P[U] = Bt(E, _[U], E.theme.modularCssLayers ? "theme" : void 0);
|
|
2581
|
+
return b(E, P);
|
|
2582
|
+
}), d && !g && W.push(function(E) {
|
|
2583
|
+
const _ = E.theme?.components?.[d]?.variants;
|
|
2584
|
+
return _ ? No(E, _, [], E.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
2585
|
+
}), T || W.push(Qe), Array.isArray(G[0])) {
|
|
2586
|
+
const c = G.shift(), E = new Array(V.length).fill(""), C = new Array(W.length).fill("");
|
|
2587
|
+
let _;
|
|
2588
|
+
_ = [...E, ...c, ...C], _.raw = [...E, ...c.raw, ...C], V.unshift(_);
|
|
2589
2589
|
}
|
|
2590
|
-
const F = [...
|
|
2590
|
+
const F = [...V, ...G, ...W], I = M(...F);
|
|
2591
2591
|
return l.muiName && (I.muiName = l.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ha(d, m, l)), I;
|
|
2592
2592
|
};
|
|
2593
2593
|
return M.withConfig && (S.withConfig = M.withConfig), S;
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
2596
|
function ha(e, t, r) {
|
|
2597
|
-
return e ? `${e}${
|
|
2597
|
+
return e ? `${e}${J(t || "")}` : `Styled(${ms(r)})`;
|
|
2598
2598
|
}
|
|
2599
2599
|
function ga(e, t) {
|
|
2600
2600
|
let r;
|
|
@@ -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 Ae(g, (
|
|
2875
|
+
return Ae(g, (T) => xe(o, T), {});
|
|
2876
2876
|
};
|
|
2877
2877
|
function a(d, m, y = () => !0) {
|
|
2878
2878
|
const p = {};
|
|
@@ -2889,40 +2889,40 @@ function ja(e = {}) {
|
|
|
2889
2889
|
const {
|
|
2890
2890
|
className: f,
|
|
2891
2891
|
children: g,
|
|
2892
|
-
columns:
|
|
2892
|
+
columns: T = 12,
|
|
2893
2893
|
container: k = !1,
|
|
2894
2894
|
component: M = "div",
|
|
2895
|
-
direction:
|
|
2895
|
+
direction: R = "row",
|
|
2896
2896
|
wrap: S = "wrap",
|
|
2897
|
-
size:
|
|
2898
|
-
offset:
|
|
2897
|
+
size: w = {},
|
|
2898
|
+
offset: V = {},
|
|
2899
2899
|
spacing: G = 0,
|
|
2900
|
-
rowSpacing:
|
|
2900
|
+
rowSpacing: W = G,
|
|
2901
2901
|
columnSpacing: F = G,
|
|
2902
2902
|
unstable_level: I = 0,
|
|
2903
2903
|
...c
|
|
2904
|
-
} = h,
|
|
2904
|
+
} = h, E = a(w, p.breakpoints, (O) => O !== !1), C = a(V, p.breakpoints), _ = m.columns ?? (I ? void 0 : T), P = m.spacing ?? (I ? void 0 : G), U = m.rowSpacing ?? m.spacing ?? (I ? void 0 : W), oe = m.columnSpacing ?? m.spacing ?? (I ? void 0 : F), j = {
|
|
2905
2905
|
...h,
|
|
2906
2906
|
level: I,
|
|
2907
|
-
columns:
|
|
2907
|
+
columns: _,
|
|
2908
2908
|
container: k,
|
|
2909
|
-
direction:
|
|
2909
|
+
direction: R,
|
|
2910
2910
|
wrap: S,
|
|
2911
|
-
spacing:
|
|
2911
|
+
spacing: P,
|
|
2912
2912
|
rowSpacing: U,
|
|
2913
|
-
columnSpacing:
|
|
2914
|
-
size:
|
|
2915
|
-
offset:
|
|
2916
|
-
},
|
|
2917
|
-
return /* @__PURE__ */
|
|
2913
|
+
columnSpacing: oe,
|
|
2914
|
+
size: E,
|
|
2915
|
+
offset: C
|
|
2916
|
+
}, x = i(j, p);
|
|
2917
|
+
return /* @__PURE__ */ $(l, {
|
|
2918
2918
|
ref: y,
|
|
2919
2919
|
as: M,
|
|
2920
|
-
ownerState:
|
|
2921
|
-
className: ue(
|
|
2920
|
+
ownerState: j,
|
|
2921
|
+
className: ue(x.root, f),
|
|
2922
2922
|
...c,
|
|
2923
|
-
children: B.Children.map(g, (
|
|
2924
|
-
unstable_level:
|
|
2925
|
-
}) :
|
|
2923
|
+
children: B.Children.map(g, (O) => /* @__PURE__ */ B.isValidElement(O) && es(O, ["Grid"]) && k && O.props.container ? /* @__PURE__ */ B.cloneElement(O, {
|
|
2924
|
+
unstable_level: O.props?.unstable_level ?? I + 1
|
|
2925
|
+
}) : O)
|
|
2926
2926
|
});
|
|
2927
2927
|
});
|
|
2928
2928
|
return process.env.NODE_ENV !== "production" && (u.propTypes = {
|
|
@@ -2979,7 +2979,7 @@ function za(e = {}) {
|
|
|
2979
2979
|
component: p = "div",
|
|
2980
2980
|
...b
|
|
2981
2981
|
} = ir(u);
|
|
2982
|
-
return /* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ $(i, {
|
|
2983
2983
|
as: p,
|
|
2984
2984
|
ref: d,
|
|
2985
2985
|
className: ue(y, o ? o(n) : n),
|
|
@@ -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 {
|
|
@@ -3217,7 +3217,7 @@ function xr(e, t) {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
function tl(e, t = {}) {
|
|
3219
3219
|
const {
|
|
3220
|
-
getSelector: r =
|
|
3220
|
+
getSelector: r = T,
|
|
3221
3221
|
disableCssColorScheme: n,
|
|
3222
3222
|
colorSchemeSelector: o,
|
|
3223
3223
|
enableContrastVars: i
|
|
@@ -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(([R, S]) => {
|
|
3240
3240
|
const {
|
|
3241
|
-
vars:
|
|
3242
|
-
css:
|
|
3241
|
+
vars: w,
|
|
3242
|
+
css: V,
|
|
3243
3243
|
varsWithDefaults: G
|
|
3244
3244
|
} = xr(S, t);
|
|
3245
|
-
b = he(b, G), h[
|
|
3246
|
-
css:
|
|
3247
|
-
vars:
|
|
3245
|
+
b = he(b, G), h[R] = {
|
|
3246
|
+
css: V,
|
|
3247
|
+
vars: w
|
|
3248
3248
|
};
|
|
3249
3249
|
}), f) {
|
|
3250
3250
|
const {
|
|
3251
|
-
css:
|
|
3251
|
+
css: R,
|
|
3252
3252
|
vars: S,
|
|
3253
|
-
varsWithDefaults:
|
|
3253
|
+
varsWithDefaults: w
|
|
3254
3254
|
} = xr(f, t);
|
|
3255
|
-
b = he(b,
|
|
3256
|
-
css:
|
|
3255
|
+
b = he(b, w), h[u] = {
|
|
3256
|
+
css: R,
|
|
3257
3257
|
vars: S
|
|
3258
3258
|
};
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3261
|
-
let
|
|
3262
|
-
if (o === "class" && (
|
|
3263
|
-
if (
|
|
3264
|
-
return e.defaultColorScheme ===
|
|
3265
|
-
[`@media (prefers-color-scheme: ${a[
|
|
3260
|
+
function T(R, S) {
|
|
3261
|
+
let w = o;
|
|
3262
|
+
if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`), R) {
|
|
3263
|
+
if (w === "media")
|
|
3264
|
+
return e.defaultColorScheme === R ? ":root" : {
|
|
3265
|
+
[`@media (prefers-color-scheme: ${a[R]?.palette?.mode || R})`]: {
|
|
3266
3266
|
":root": S
|
|
3267
3267
|
}
|
|
3268
3268
|
};
|
|
3269
|
-
if (
|
|
3270
|
-
return e.defaultColorScheme ===
|
|
3269
|
+
if (w)
|
|
3270
|
+
return e.defaultColorScheme === R ? `:root, ${w.replace("%s", String(R))}` : w.replace("%s", String(R));
|
|
3271
3271
|
}
|
|
3272
3272
|
return ":root";
|
|
3273
3273
|
}
|
|
3274
3274
|
return {
|
|
3275
3275
|
vars: b,
|
|
3276
3276
|
generateThemeVars: () => {
|
|
3277
|
-
let
|
|
3277
|
+
let R = {
|
|
3278
3278
|
...m
|
|
3279
3279
|
};
|
|
3280
3280
|
return Object.entries(h).forEach(([, {
|
|
3281
3281
|
vars: S
|
|
3282
3282
|
}]) => {
|
|
3283
|
-
|
|
3284
|
-
}),
|
|
3283
|
+
R = he(R, S);
|
|
3284
|
+
}), R;
|
|
3285
3285
|
},
|
|
3286
3286
|
generateStyleSheets: () => {
|
|
3287
|
-
const
|
|
3288
|
-
function
|
|
3289
|
-
Object.keys(F).length &&
|
|
3290
|
-
[
|
|
3287
|
+
const R = [], S = e.defaultColorScheme || "light";
|
|
3288
|
+
function w(W, F) {
|
|
3289
|
+
Object.keys(F).length && R.push(typeof W == "string" ? {
|
|
3290
|
+
[W]: {
|
|
3291
3291
|
...F
|
|
3292
3292
|
}
|
|
3293
|
-
} :
|
|
3293
|
+
} : W);
|
|
3294
3294
|
}
|
|
3295
|
-
|
|
3295
|
+
w(r(void 0, {
|
|
3296
3296
|
...y
|
|
3297
3297
|
}), y);
|
|
3298
3298
|
const {
|
|
3299
|
-
[S]:
|
|
3299
|
+
[S]: V,
|
|
3300
3300
|
...G
|
|
3301
3301
|
} = h;
|
|
3302
|
-
if (
|
|
3302
|
+
if (V) {
|
|
3303
3303
|
const {
|
|
3304
|
-
css:
|
|
3305
|
-
} =
|
|
3304
|
+
css: W
|
|
3305
|
+
} = V, F = a[S]?.palette?.mode, I = !n && F ? {
|
|
3306
3306
|
colorScheme: F,
|
|
3307
|
-
...
|
|
3307
|
+
...W
|
|
3308
3308
|
} : {
|
|
3309
|
-
...
|
|
3309
|
+
...W
|
|
3310
3310
|
};
|
|
3311
|
-
|
|
3311
|
+
w(r(S, {
|
|
3312
3312
|
...I
|
|
3313
3313
|
}), I);
|
|
3314
3314
|
}
|
|
3315
|
-
return Object.entries(G).forEach(([
|
|
3315
|
+
return Object.entries(G).forEach(([W, {
|
|
3316
3316
|
css: F
|
|
3317
3317
|
}]) => {
|
|
3318
|
-
const I = a[
|
|
3318
|
+
const I = a[W]?.palette?.mode, c = !n && I ? {
|
|
3319
3319
|
colorScheme: I,
|
|
3320
3320
|
...F
|
|
3321
3321
|
} : {
|
|
3322
3322
|
...F
|
|
3323
3323
|
};
|
|
3324
|
-
|
|
3324
|
+
w(r(W, {
|
|
3325
3325
|
...c
|
|
3326
3326
|
}), c);
|
|
3327
|
-
}), i &&
|
|
3327
|
+
}), i && R.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
|
+
}), R;
|
|
3336
3336
|
}
|
|
3337
3337
|
};
|
|
3338
3338
|
}
|
|
@@ -3424,19 +3424,19 @@ function cl(e = {}) {
|
|
|
3424
3424
|
spacing: h = 0,
|
|
3425
3425
|
divider: f,
|
|
3426
3426
|
children: g,
|
|
3427
|
-
className:
|
|
3427
|
+
className: T,
|
|
3428
3428
|
useFlexGap: k = !1,
|
|
3429
3429
|
...M
|
|
3430
|
-
} = y,
|
|
3430
|
+
} = y, R = {
|
|
3431
3431
|
direction: b,
|
|
3432
3432
|
spacing: h,
|
|
3433
3433
|
useFlexGap: k
|
|
3434
3434
|
}, S = o();
|
|
3435
|
-
return /* @__PURE__ */
|
|
3435
|
+
return /* @__PURE__ */ $(i, {
|
|
3436
3436
|
as: p,
|
|
3437
|
-
ownerState:
|
|
3437
|
+
ownerState: R,
|
|
3438
3438
|
ref: d,
|
|
3439
|
-
className: ue(S.root,
|
|
3439
|
+
className: ue(S.root, T),
|
|
3440
3440
|
...M,
|
|
3441
3441
|
children: f ? sl(g, f) : g
|
|
3442
3442
|
});
|
|
@@ -3665,23 +3665,23 @@ function Hr(e) {
|
|
|
3665
3665
|
function p(g) {
|
|
3666
3666
|
if (o)
|
|
3667
3667
|
return yl(g);
|
|
3668
|
-
const
|
|
3669
|
-
return process.env.NODE_ENV !== "production" && kn(g,
|
|
3668
|
+
const T = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
|
|
3669
|
+
return process.env.NODE_ENV !== "production" && kn(g, T) < 3, T;
|
|
3670
3670
|
}
|
|
3671
3671
|
const b = ({
|
|
3672
3672
|
color: g,
|
|
3673
|
-
name:
|
|
3673
|
+
name: T,
|
|
3674
3674
|
mainShade: k = 500,
|
|
3675
3675
|
lightShade: M = 300,
|
|
3676
|
-
darkShade:
|
|
3676
|
+
darkShade: R = 700
|
|
3677
3677
|
}) => {
|
|
3678
3678
|
if (g = {
|
|
3679
3679
|
...g
|
|
3680
3680
|
}, !g.main && g[k] && (g.main = g[k]), !g.hasOwnProperty("main"))
|
|
3681
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
3682
|
-
The color object needs to have a \`main\` property or a \`${k}\` property.` : ze(11,
|
|
3681
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
|
|
3682
|
+
The color object needs to have a \`main\` property or a \`${k}\` property.` : ze(11, T ? ` (${T})` : "", k));
|
|
3683
3683
|
if (typeof g.main != "string")
|
|
3684
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
3684
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
|
|
3685
3685
|
\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
|
|
3686
3686
|
|
|
3687
3687
|
Did you intend to use one of the following approaches?
|
|
@@ -3694,8 +3694,8 @@ const theme1 = createTheme({ palette: {
|
|
|
3694
3694
|
|
|
3695
3695
|
const theme2 = createTheme({ palette: {
|
|
3696
3696
|
primary: { main: green[500] },
|
|
3697
|
-
} });` : ze(12,
|
|
3698
|
-
return o ? (Nn(o, g, "light", M, n), Nn(o, g, "dark",
|
|
3697
|
+
} });` : ze(12, T ? ` (${T})` : "", JSON.stringify(g.main)));
|
|
3698
|
+
return o ? (Nn(o, g, "light", M, n), Nn(o, g, "dark", R, n)) : (_n(g, "light", M, n), _n(g, "dark", R, 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,18 +3804,18 @@ 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,
|
|
3807
|
+
const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, T, k, M, R) => ({
|
|
3808
3808
|
fontFamily: r,
|
|
3809
3809
|
fontWeight: g,
|
|
3810
|
-
fontSize: b(
|
|
3810
|
+
fontSize: b(T),
|
|
3811
3811
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
3812
3812
|
lineHeight: k,
|
|
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(M /
|
|
3816
|
+
letterSpacing: `${Sl(M / T)}em`
|
|
3817
3817
|
} : {},
|
|
3818
|
-
|
|
3818
|
+
...R,
|
|
3819
3819
|
...d
|
|
3820
3820
|
}), f = {
|
|
3821
3821
|
h1: h(o, 96, 1.167, -1.5),
|
|
@@ -4016,21 +4016,21 @@ function Rr(e = {}, ...t) {
|
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
4018
|
if (b = he(b, m), b = t.reduce((h, f) => he(h, f), b), process.env.NODE_ENV !== "production") {
|
|
4019
|
-
const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g,
|
|
4019
|
+
const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g, T) => {
|
|
4020
4020
|
let k;
|
|
4021
4021
|
for (k in g) {
|
|
4022
4022
|
const M = g[k];
|
|
4023
4023
|
if (h.includes(k) && Object.keys(M).length > 0) {
|
|
4024
4024
|
if (process.env.NODE_ENV !== "production") {
|
|
4025
|
-
const
|
|
4025
|
+
const R = xe("", k);
|
|
4026
4026
|
}
|
|
4027
4027
|
g[k] = {};
|
|
4028
4028
|
}
|
|
4029
4029
|
}
|
|
4030
4030
|
};
|
|
4031
4031
|
Object.keys(b.components).forEach((g) => {
|
|
4032
|
-
const
|
|
4033
|
-
|
|
4032
|
+
const T = b.components[g].styleOverrides;
|
|
4033
|
+
T && g.startsWith("Mui") && f(T, g);
|
|
4034
4034
|
});
|
|
4035
4035
|
}
|
|
4036
4036
|
return b.unstable_sxConfig = {
|
|
@@ -4207,18 +4207,18 @@ function Ll(e = {}, ...t) {
|
|
|
4207
4207
|
[p]: h,
|
|
4208
4208
|
light: f,
|
|
4209
4209
|
dark: g,
|
|
4210
|
-
...
|
|
4210
|
+
...T
|
|
4211
4211
|
} = r, k = {
|
|
4212
|
-
...
|
|
4212
|
+
...T
|
|
4213
4213
|
};
|
|
4214
4214
|
let M = h;
|
|
4215
4215
|
if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (M = !0), !M)
|
|
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 S = Cr(
|
|
4220
|
-
f && !k.light && Cr(
|
|
4221
|
-
let
|
|
4217
|
+
let R;
|
|
4218
|
+
a && (R = "oklch");
|
|
4219
|
+
const S = Cr(R, k, M, m, p);
|
|
4220
|
+
f && !k.light && Cr(R, k, f, void 0, "light"), g && !k.dark && Cr(R, k, g, void 0, "dark");
|
|
4221
|
+
let w = {
|
|
4222
4222
|
defaultColorScheme: p,
|
|
4223
4223
|
...S,
|
|
4224
4224
|
cssVarPrefix: i,
|
|
@@ -4232,58 +4232,58 @@ function Ll(e = {}, ...t) {
|
|
|
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((I) => {
|
|
4236
|
+
const c = w.colorSchemes[I].palette, E = (_) => {
|
|
4237
|
+
const P = _.split("-"), U = P[1], oe = P[2];
|
|
4238
|
+
return b(_, c[U][oe]);
|
|
4239
4239
|
};
|
|
4240
4240
|
c.mode === "light" && (v(c.common, "background", "#fff"), v(c.common, "onBackground", "#000")), c.mode === "dark" && (v(c.common, "background", "#000"), v(c.common, "onBackground", "#fff"));
|
|
4241
|
-
function
|
|
4242
|
-
if (
|
|
4243
|
-
let
|
|
4244
|
-
return
|
|
4241
|
+
function C(_, P, U) {
|
|
4242
|
+
if (R) {
|
|
4243
|
+
let oe;
|
|
4244
|
+
return _ === Fe && (oe = `transparent ${((1 - U) * 100).toFixed(0)}%`), _ === re && (oe = `#000 ${(U * 100).toFixed(0)}%`), _ === ne && (oe = `#fff ${(U * 100).toFixed(0)}%`), `color-mix(in ${R}, ${P}, ${oe})`;
|
|
4245
4245
|
}
|
|
4246
|
-
return P
|
|
4246
|
+
return _(P, U);
|
|
4247
4247
|
}
|
|
4248
4248
|
if (Vl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
|
|
4249
|
-
v(c.Alert, "errorColor",
|
|
4250
|
-
const
|
|
4251
|
-
v(c.SnackbarContent, "bg",
|
|
4249
|
+
v(c.Alert, "errorColor", C(re, c.error.light, 0.6)), v(c.Alert, "infoColor", C(re, c.info.light, 0.6)), v(c.Alert, "successColor", C(re, c.success.light, 0.6)), v(c.Alert, "warningColor", C(re, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", E("palette-error-main")), v(c.Alert, "infoFilledBg", E("palette-info-main")), v(c.Alert, "successFilledBg", E("palette-success-main")), v(c.Alert, "warningFilledBg", E("palette-warning-main")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.main))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.main))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.main))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.main))), v(c.Alert, "errorStandardBg", C(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", C(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", C(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", C(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", E("palette-error-main")), v(c.Alert, "infoIconColor", E("palette-info-main")), v(c.Alert, "successIconColor", E("palette-success-main")), v(c.Alert, "warningIconColor", E("palette-warning-main")), v(c.AppBar, "defaultBg", E("palette-grey-100")), v(c.Avatar, "defaultBg", E("palette-grey-400")), v(c.Button, "inheritContainedBg", E("palette-grey-300")), v(c.Button, "inheritContainedHoverBg", E("palette-grey-A100")), v(c.Chip, "defaultBorder", E("palette-grey-400")), v(c.Chip, "defaultAvatarColor", E("palette-grey-700")), v(c.Chip, "defaultIconColor", E("palette-grey-700")), v(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), v(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), v(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), v(c.LinearProgress, "primaryBg", C(ne, c.primary.main, 0.62)), v(c.LinearProgress, "secondaryBg", C(ne, c.secondary.main, 0.62)), v(c.LinearProgress, "errorBg", C(ne, c.error.main, 0.62)), v(c.LinearProgress, "infoBg", C(ne, c.info.main, 0.62)), v(c.LinearProgress, "successBg", C(ne, c.success.main, 0.62)), v(c.LinearProgress, "warningBg", C(ne, c.warning.main, 0.62)), v(c.Skeleton, "bg", R ? C(Fe, c.text.primary, 0.11) : `rgba(${E("palette-text-primaryChannel")} / 0.11)`), v(c.Slider, "primaryTrack", C(ne, c.primary.main, 0.62)), v(c.Slider, "secondaryTrack", C(ne, c.secondary.main, 0.62)), v(c.Slider, "errorTrack", C(ne, c.error.main, 0.62)), v(c.Slider, "infoTrack", C(ne, c.info.main, 0.62)), v(c.Slider, "successTrack", C(ne, c.success.main, 0.62)), v(c.Slider, "warningTrack", C(ne, c.warning.main, 0.62));
|
|
4250
|
+
const _ = R ? C(re, c.background.default, 0.6825) : It(c.background.default, 0.8);
|
|
4251
|
+
v(c.SnackbarContent, "bg", _), v(c.SnackbarContent, "color", $e(() => R ? $r.text.primary : c.getContrastText(_))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", E("palette-grey-400")), v(c.StepContent, "border", E("palette-grey-400")), v(c.Switch, "defaultColor", E("palette-common-white")), v(c.Switch, "defaultDisabledColor", E("palette-grey-100")), v(c.Switch, "primaryDisabledColor", C(ne, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", C(ne, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", C(ne, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", C(ne, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", C(ne, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", C(ne, c.warning.main, 0.62)), v(c.TableCell, "border", C(ne, C(Fe, c.divider, 1), 0.88)), v(c.Tooltip, "bg", C(Fe, c.grey[700], 0.92));
|
|
4252
4252
|
}
|
|
4253
4253
|
if (c.mode === "dark") {
|
|
4254
|
-
v(c.Alert, "errorColor",
|
|
4255
|
-
const
|
|
4256
|
-
v(c.SnackbarContent, "bg",
|
|
4254
|
+
v(c.Alert, "errorColor", C(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", C(ne, c.info.light, 0.6)), v(c.Alert, "successColor", C(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", C(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", E("palette-error-dark")), v(c.Alert, "infoFilledBg", E("palette-info-dark")), v(c.Alert, "successFilledBg", E("palette-success-dark")), v(c.Alert, "warningFilledBg", E("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", C(re, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", C(re, c.info.light, 0.9)), v(c.Alert, "successStandardBg", C(re, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", C(re, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", E("palette-error-main")), v(c.Alert, "infoIconColor", E("palette-info-main")), v(c.Alert, "successIconColor", E("palette-success-main")), v(c.Alert, "warningIconColor", E("palette-warning-main")), v(c.AppBar, "defaultBg", E("palette-grey-900")), v(c.AppBar, "darkBg", E("palette-background-paper")), v(c.AppBar, "darkColor", E("palette-text-primary")), v(c.Avatar, "defaultBg", E("palette-grey-600")), v(c.Button, "inheritContainedBg", E("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", E("palette-grey-700")), v(c.Chip, "defaultBorder", E("palette-grey-700")), v(c.Chip, "defaultAvatarColor", E("palette-grey-300")), v(c.Chip, "defaultIconColor", E("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", C(re, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", C(re, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", C(re, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", C(re, c.info.main, 0.5)), v(c.LinearProgress, "successBg", C(re, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", C(re, c.warning.main, 0.5)), v(c.Skeleton, "bg", R ? C(Fe, c.text.primary, 0.13) : `rgba(${E("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", C(re, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", C(re, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", C(re, c.error.main, 0.5)), v(c.Slider, "infoTrack", C(re, c.info.main, 0.5)), v(c.Slider, "successTrack", C(re, c.success.main, 0.5)), v(c.Slider, "warningTrack", C(re, c.warning.main, 0.5));
|
|
4255
|
+
const _ = R ? C(ne, c.background.default, 0.985) : It(c.background.default, 0.98);
|
|
4256
|
+
v(c.SnackbarContent, "bg", _), v(c.SnackbarContent, "color", $e(() => R ? Fo.text.primary : c.getContrastText(_))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", E("palette-grey-600")), v(c.StepContent, "border", E("palette-grey-600")), v(c.Switch, "defaultColor", E("palette-grey-300")), v(c.Switch, "defaultDisabledColor", E("palette-grey-600")), v(c.Switch, "primaryDisabledColor", C(re, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", C(re, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", C(re, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", C(re, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", C(re, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", C(re, c.warning.main, 0.55)), v(c.TableCell, "border", C(re, C(Fe, c.divider, 1), 0.68)), v(c.Tooltip, "bg", C(Fe, c.grey[700], 0.92));
|
|
4257
4257
|
}
|
|
4258
|
-
Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4258
|
+
Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((_) => {
|
|
4259
|
+
const P = c[_];
|
|
4260
|
+
_ !== "tonalOffset" && P && typeof P == "object" && (P.main && v(c[_], "mainChannel", mt(ht(P.main))), P.light && v(c[_], "lightChannel", mt(ht(P.light))), P.dark && v(c[_], "darkChannel", mt(ht(P.dark))), P.contrastText && v(c[_], "contrastTextChannel", mt(ht(P.contrastText))), _ === "text" && (Ie(c[_], "primary"), Ie(c[_], "secondary")), _ === "action" && (P.active && Ie(c[_], "active"), P.selected && Ie(c[_], "selected")));
|
|
4261
4261
|
});
|
|
4262
|
-
}),
|
|
4263
|
-
const
|
|
4262
|
+
}), w = t.reduce((I, c) => he(I, c), w);
|
|
4263
|
+
const V = {
|
|
4264
4264
|
prefix: i,
|
|
4265
4265
|
disableCssColorScheme: o,
|
|
4266
4266
|
shouldSkipGeneratingVar: l,
|
|
4267
|
-
getSelector: jl(
|
|
4267
|
+
getSelector: jl(w),
|
|
4268
4268
|
enableContrastVars: a
|
|
4269
4269
|
}, {
|
|
4270
4270
|
vars: G,
|
|
4271
|
-
generateThemeVars:
|
|
4271
|
+
generateThemeVars: W,
|
|
4272
4272
|
generateStyleSheets: F
|
|
4273
|
-
} = tl(
|
|
4274
|
-
return
|
|
4275
|
-
|
|
4276
|
-
}),
|
|
4273
|
+
} = tl(w, V);
|
|
4274
|
+
return w.vars = G, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([I, c]) => {
|
|
4275
|
+
w[I] = c;
|
|
4276
|
+
}), w.generateThemeVars = W, w.generateStyleSheets = F, 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] = {
|
|
@@ -4513,7 +4513,7 @@ function Ul({
|
|
|
4513
4513
|
const d = Ht(e, r, o, i);
|
|
4514
4514
|
if (!d.visible)
|
|
4515
4515
|
return null;
|
|
4516
|
-
const m = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */
|
|
4516
|
+
const m = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */ $(
|
|
4517
4517
|
m,
|
|
4518
4518
|
{
|
|
4519
4519
|
field: {
|
|
@@ -4535,12 +4535,12 @@ function Ul({
|
|
|
4535
4535
|
widgets: a,
|
|
4536
4536
|
values: r
|
|
4537
4537
|
}
|
|
4538
|
-
) : /* @__PURE__ */
|
|
4538
|
+
) : /* @__PURE__ */ $(
|
|
4539
4539
|
jr,
|
|
4540
4540
|
{
|
|
4541
4541
|
control: n.control,
|
|
4542
4542
|
name: e.name,
|
|
4543
|
-
render: ({ field: h, fieldState: f }) => /* @__PURE__ */
|
|
4543
|
+
render: ({ field: h, fieldState: f }) => /* @__PURE__ */ $(
|
|
4544
4544
|
m,
|
|
4545
4545
|
{
|
|
4546
4546
|
error: !!f.error,
|
|
@@ -4564,7 +4564,7 @@ function Ul({
|
|
|
4564
4564
|
);
|
|
4565
4565
|
if (u) {
|
|
4566
4566
|
const h = ql(e.colSpan);
|
|
4567
|
-
return /* @__PURE__ */
|
|
4567
|
+
return /* @__PURE__ */ $(Ke, { size: h, children: b }, `${String(e.name)}-${t}`);
|
|
4568
4568
|
}
|
|
4569
4569
|
return b;
|
|
4570
4570
|
}
|
|
@@ -4581,7 +4581,7 @@ const Yl = mi(Ul, (e, t) => {
|
|
|
4581
4581
|
if (e.values[i] !== t.values[i])
|
|
4582
4582
|
return !1;
|
|
4583
4583
|
return !0;
|
|
4584
|
-
}), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */
|
|
4584
|
+
}), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ $(Ke, { container: !0, spacing: e, children: t }), Jo = cl({
|
|
4585
4585
|
createStyledComponent: pe("div", {
|
|
4586
4586
|
name: "MuiStack",
|
|
4587
4587
|
slot: "Root"
|
|
@@ -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__ */
|
|
4638
|
+
const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ $(Jo, { spacing: e, children: t }), ke = {
|
|
4639
4639
|
"& .MuiInputBase-input": {
|
|
4640
4640
|
fontSize: 14,
|
|
4641
4641
|
padding: "8px 12px"
|
|
@@ -4707,22 +4707,22 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4707
4707
|
} = e;
|
|
4708
4708
|
return /* @__PURE__ */ fe(Xl, { ...u, ref: t, children: [
|
|
4709
4709
|
r,
|
|
4710
|
-
a && !n && /* @__PURE__ */
|
|
4710
|
+
a && !n && /* @__PURE__ */ $(
|
|
4711
4711
|
pt,
|
|
4712
4712
|
{
|
|
4713
4713
|
component: "li",
|
|
4714
4714
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4715
4715
|
sx: { py: 2, justifyContent: "center", pointerEvents: "none", cursor: "default" },
|
|
4716
|
-
children: /* @__PURE__ */
|
|
4716
|
+
children: /* @__PURE__ */ $(Ot, { variant: "body2", color: "text.secondary", children: "暂无数据" })
|
|
4717
4717
|
}
|
|
4718
4718
|
),
|
|
4719
|
-
l && /* @__PURE__ */
|
|
4719
|
+
l && /* @__PURE__ */ $(
|
|
4720
4720
|
pt,
|
|
4721
4721
|
{
|
|
4722
4722
|
component: "li",
|
|
4723
4723
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4724
4724
|
sx: { py: 2, color: "error.main", justifyContent: "center", pointerEvents: "none", cursor: "default" },
|
|
4725
|
-
children: /* @__PURE__ */
|
|
4725
|
+
children: /* @__PURE__ */ $(Ot, { variant: "body2", children: "加载失败,请重试" })
|
|
4726
4726
|
}
|
|
4727
4727
|
),
|
|
4728
4728
|
n && /* @__PURE__ */ fe(
|
|
@@ -4732,18 +4732,18 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4732
4732
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4733
4733
|
sx: { py: 1.5, gap: 1, display: "flex", alignItems: "center", justifyContent: "center", pointerEvents: "none", color: "text.secondary", cursor: "default" },
|
|
4734
4734
|
children: [
|
|
4735
|
-
/* @__PURE__ */
|
|
4736
|
-
/* @__PURE__ */
|
|
4735
|
+
/* @__PURE__ */ $(bo, { size: 16, color: "inherit" }),
|
|
4736
|
+
/* @__PURE__ */ $(Ot, { variant: "body2", children: "加载中…" })
|
|
4737
4737
|
]
|
|
4738
4738
|
}
|
|
4739
4739
|
),
|
|
4740
|
-
!o && i && !n && !a && /* @__PURE__ */
|
|
4740
|
+
!o && i && !n && !a && /* @__PURE__ */ $(
|
|
4741
4741
|
pt,
|
|
4742
4742
|
{
|
|
4743
4743
|
component: "li",
|
|
4744
4744
|
className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
|
|
4745
4745
|
sx: { py: 1.5, justifyContent: "center", pointerEvents: "none", cursor: "default" },
|
|
4746
|
-
children: /* @__PURE__ */
|
|
4746
|
+
children: /* @__PURE__ */ $(Ot, { variant: "caption", color: "text.disabled", children: "没有更多数据了" })
|
|
4747
4747
|
}
|
|
4748
4748
|
)
|
|
4749
4749
|
] });
|
|
@@ -4757,64 +4757,89 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4757
4757
|
form: a,
|
|
4758
4758
|
schema: l
|
|
4759
4759
|
}) => {
|
|
4760
|
-
const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, b =
|
|
4760
|
+
const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, b = Ne(p);
|
|
4761
4761
|
b.current = p;
|
|
4762
|
-
const [h, f] =
|
|
4763
|
-
|
|
4762
|
+
const [h, f] = De([]), [g, T] = De(!1), [k, M] = De(!1), [R, S] = De(""), [w, V] = De(!1), [G, W] = De(1), [F, I] = De(!0), c = p ? h : o, E = p?.pageSize ?? 20, C = Ne([]);
|
|
4763
|
+
_e(() => {
|
|
4764
|
+
if (!p) return;
|
|
4765
|
+
const j = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [];
|
|
4766
|
+
if (j.length === 0) return;
|
|
4767
|
+
const x = h.filter((D) => j.includes(D.value)), O = [...C.current];
|
|
4768
|
+
let z = !1;
|
|
4769
|
+
x.forEach((D) => {
|
|
4770
|
+
O.some((L) => L.value == D.value) || (O.push(D), z = !0);
|
|
4771
|
+
}), z && (C.current = O);
|
|
4772
|
+
}, [e.value, h, p]), _e(() => {
|
|
4764
4773
|
const j = b.current;
|
|
4765
4774
|
if (!j?.fetchById || !e.value) return;
|
|
4766
4775
|
const O = (Array.isArray(e.value) ? e.value : [e.value]).filter(
|
|
4767
4776
|
// 使用宽松比较 (==) 以兼容 string/number 差异
|
|
4768
4777
|
// eslint-disable-next-line eqeqeq
|
|
4769
|
-
(
|
|
4778
|
+
(z) => !h.some((D) => D.value == z)
|
|
4770
4779
|
);
|
|
4771
|
-
O.length !== 0 && O.forEach(async (
|
|
4780
|
+
O.length !== 0 && O.forEach(async (z) => {
|
|
4772
4781
|
try {
|
|
4773
|
-
const
|
|
4774
|
-
|
|
4782
|
+
const D = await j.fetchById(z);
|
|
4783
|
+
D && (f((L) => L.some((K) => K.value == D.value) ? L : [...L, D]), C.current.push(D));
|
|
4775
4784
|
} catch {
|
|
4776
4785
|
}
|
|
4777
4786
|
});
|
|
4778
4787
|
}, [e.value, h]);
|
|
4779
|
-
const
|
|
4780
|
-
async (j,
|
|
4788
|
+
const _ = ho(
|
|
4789
|
+
async (j, x, O = !1) => {
|
|
4781
4790
|
if (p) {
|
|
4782
|
-
O || (
|
|
4791
|
+
O || (W(1), I(!0)), O ? M(!0) : T(!0), p.onLoadingChange?.(!0);
|
|
4783
4792
|
try {
|
|
4784
|
-
const
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4793
|
+
const z = await p.fetchOptions(j, x, E);
|
|
4794
|
+
if (O)
|
|
4795
|
+
f((D) => {
|
|
4796
|
+
const L = z.data.filter(
|
|
4797
|
+
(K) => !D.some((q) => q.value === K.value)
|
|
4798
|
+
);
|
|
4799
|
+
return [...D, ...L];
|
|
4800
|
+
});
|
|
4801
|
+
else {
|
|
4802
|
+
const D = [...z.data], L = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [];
|
|
4803
|
+
C.current.filter(
|
|
4804
|
+
// eslint-disable-next-line eqeqeq
|
|
4805
|
+
(q) => L.includes(q.value)
|
|
4806
|
+
).forEach((q) => {
|
|
4807
|
+
D.some((H) => H.value == q.value) || D.push(q);
|
|
4808
|
+
}), f(D);
|
|
4809
|
+
}
|
|
4810
|
+
I(z.hasMore);
|
|
4791
4811
|
} catch {
|
|
4792
4812
|
} finally {
|
|
4793
|
-
O ? M(!1) :
|
|
4813
|
+
O ? M(!1) : T(!1), p.onLoadingChange?.(!1);
|
|
4794
4814
|
}
|
|
4795
4815
|
}
|
|
4796
4816
|
},
|
|
4797
|
-
[p,
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
x(
|
|
4805
|
-
}
|
|
4817
|
+
[p, E, e.value]
|
|
4818
|
+
// 添加 field.value 依赖,确保 fetchOptions 内部能获取最新 value
|
|
4819
|
+
), P = Ne(null);
|
|
4820
|
+
_e(() => {
|
|
4821
|
+
if (w && p) {
|
|
4822
|
+
const j = h.some((O) => O.label === R && e.value === O.value);
|
|
4823
|
+
let x = R;
|
|
4824
|
+
!d && e.value && j && (x = ""), _(x, 1, !1);
|
|
4825
|
+
}
|
|
4826
|
+
}, [w]);
|
|
4827
|
+
const U = (j, x, O) => {
|
|
4828
|
+
O === "reset" && w || (S(x), p && (P.current && clearTimeout(P.current), (O === "input" || O === "clear") && (P.current = setTimeout(() => {
|
|
4829
|
+
_(x, 1, !1);
|
|
4830
|
+
}, p.debounceTimeout ?? 500))));
|
|
4806
4831
|
};
|
|
4807
|
-
|
|
4832
|
+
_e(() => () => {
|
|
4808
4833
|
P.current && clearTimeout(P.current);
|
|
4809
4834
|
}, []);
|
|
4810
|
-
const
|
|
4811
|
-
const
|
|
4812
|
-
if (!g && !k && F &&
|
|
4835
|
+
const oe = (j) => {
|
|
4836
|
+
const x = j.currentTarget;
|
|
4837
|
+
if (!g && !k && F && x.scrollTop + x.clientHeight >= x.scrollHeight - 20) {
|
|
4813
4838
|
const O = G + 1;
|
|
4814
|
-
|
|
4839
|
+
W(O), _(R, O, !0);
|
|
4815
4840
|
}
|
|
4816
4841
|
};
|
|
4817
|
-
return /* @__PURE__ */
|
|
4842
|
+
return /* @__PURE__ */ $(
|
|
4818
4843
|
at,
|
|
4819
4844
|
{
|
|
4820
4845
|
fullWidth: !0,
|
|
@@ -4823,30 +4848,30 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4823
4848
|
disabled: y?.disabled,
|
|
4824
4849
|
size: "small",
|
|
4825
4850
|
sx: ke,
|
|
4826
|
-
children: /* @__PURE__ */
|
|
4851
|
+
children: /* @__PURE__ */ $(
|
|
4827
4852
|
wi,
|
|
4828
4853
|
{
|
|
4829
4854
|
multiple: d,
|
|
4830
4855
|
disableCloseOnSelect: d,
|
|
4831
|
-
open:
|
|
4832
|
-
onOpen: () =>
|
|
4833
|
-
onClose: () =>
|
|
4834
|
-
inputValue: p ?
|
|
4835
|
-
onInputChange: p ?
|
|
4856
|
+
open: w,
|
|
4857
|
+
onOpen: () => V(!0),
|
|
4858
|
+
onClose: () => V(!1),
|
|
4859
|
+
inputValue: p ? R : void 0,
|
|
4860
|
+
onInputChange: p ? U : void 0,
|
|
4836
4861
|
options: c,
|
|
4837
4862
|
loading: g || m,
|
|
4838
4863
|
filterOptions: p ? (j) => j : void 0,
|
|
4839
4864
|
value: d ? c.filter((j) => (e.value ?? []).includes(j.value)) : c.find((j) => j.value === e.value) ?? null,
|
|
4840
|
-
onChange: (j,
|
|
4841
|
-
const O = d ?
|
|
4842
|
-
e.onChange(O), typeof u == "function" && u(j,
|
|
4865
|
+
onChange: (j, x) => {
|
|
4866
|
+
const O = d ? x.map((z) => z.value) : x?.value ?? null;
|
|
4867
|
+
e.onChange(O), typeof u == "function" && u(j, x), a?.trigger(e.name);
|
|
4843
4868
|
},
|
|
4844
4869
|
slots: {
|
|
4845
4870
|
listbox: p ? Ql : void 0
|
|
4846
4871
|
},
|
|
4847
4872
|
slotProps: {
|
|
4848
4873
|
listbox: {
|
|
4849
|
-
onScroll: p ?
|
|
4874
|
+
onScroll: p ? oe : void 0,
|
|
4850
4875
|
style: { maxHeight: 260 },
|
|
4851
4876
|
// 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
|
|
4852
4877
|
...p ? {
|
|
@@ -4877,14 +4902,14 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4877
4902
|
},
|
|
4878
4903
|
getOptionLabel: (j) => j?.label ?? "",
|
|
4879
4904
|
getOptionKey: (j) => {
|
|
4880
|
-
const
|
|
4881
|
-
return typeof
|
|
4905
|
+
const x = j?.key ?? j?.value;
|
|
4906
|
+
return typeof x == "string" || typeof x == "number" ? x : String(x);
|
|
4882
4907
|
},
|
|
4883
|
-
isOptionEqualToValue: (j,
|
|
4908
|
+
isOptionEqualToValue: (j, x) => j?.value === x?.value,
|
|
4884
4909
|
size: "small",
|
|
4885
4910
|
disabled: y?.disabled,
|
|
4886
|
-
renderOption: (j,
|
|
4887
|
-
renderInput: (j) => /* @__PURE__ */
|
|
4911
|
+
renderOption: (j, x) => /* @__PURE__ */ hi("li", { ...j, key: x.key ?? x.value }, x.listLabel ?? x.label),
|
|
4912
|
+
renderInput: (j) => /* @__PURE__ */ $(
|
|
4888
4913
|
lt,
|
|
4889
4914
|
{
|
|
4890
4915
|
...j,
|
|
@@ -4902,7 +4927,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4902
4927
|
input: {
|
|
4903
4928
|
...j.InputProps,
|
|
4904
4929
|
endAdornment: /* @__PURE__ */ fe(Dr, { children: [
|
|
4905
|
-
g || m ? /* @__PURE__ */
|
|
4930
|
+
g || m ? /* @__PURE__ */ $(bo, { color: "inherit", size: 20 }) : null,
|
|
4906
4931
|
j.InputProps.endAdornment
|
|
4907
4932
|
] })
|
|
4908
4933
|
}
|
|
@@ -4914,7 +4939,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4914
4939
|
}
|
|
4915
4940
|
);
|
|
4916
4941
|
}, Se = (e, t) => t ? /* @__PURE__ */ fe("span", { style: { display: "flex", alignItems: "center" }, children: [
|
|
4917
|
-
/* @__PURE__ */
|
|
4942
|
+
/* @__PURE__ */ $(
|
|
4918
4943
|
"span",
|
|
4919
4944
|
{
|
|
4920
4945
|
style: {
|
|
@@ -4930,10 +4955,10 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4930
4955
|
),
|
|
4931
4956
|
e
|
|
4932
4957
|
] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
|
|
4933
|
-
/* @__PURE__ */
|
|
4958
|
+
/* @__PURE__ */ $(
|
|
4934
4959
|
Vr,
|
|
4935
4960
|
{
|
|
4936
|
-
control: /* @__PURE__ */
|
|
4961
|
+
control: /* @__PURE__ */ $(
|
|
4937
4962
|
Ei,
|
|
4938
4963
|
{
|
|
4939
4964
|
checked: e.value ?? !1,
|
|
@@ -4945,7 +4970,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4945
4970
|
label: Se(t, o?.required)
|
|
4946
4971
|
}
|
|
4947
4972
|
),
|
|
4948
|
-
n && /* @__PURE__ */
|
|
4973
|
+
n && /* @__PURE__ */ $(zr, { children: n })
|
|
4949
4974
|
] }), qn = ({
|
|
4950
4975
|
field: e,
|
|
4951
4976
|
label: t,
|
|
@@ -4964,7 +4989,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4964
4989
|
form: i,
|
|
4965
4990
|
values: a,
|
|
4966
4991
|
fieldProps: d
|
|
4967
|
-
}) : /* @__PURE__ */
|
|
4992
|
+
}) : /* @__PURE__ */ $(Dr, { children: l }) : u ? /* @__PURE__ */ $(
|
|
4968
4993
|
u,
|
|
4969
4994
|
{
|
|
4970
4995
|
field: e,
|
|
@@ -4975,7 +5000,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4975
5000
|
values: a,
|
|
4976
5001
|
...d
|
|
4977
5002
|
}
|
|
4978
|
-
) : /* @__PURE__ */
|
|
5003
|
+
) : /* @__PURE__ */ $(
|
|
4979
5004
|
lt,
|
|
4980
5005
|
{
|
|
4981
5006
|
...e,
|
|
@@ -4994,7 +5019,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
4994
5019
|
error: r,
|
|
4995
5020
|
helperText: n,
|
|
4996
5021
|
fieldProps: o
|
|
4997
|
-
}) => /* @__PURE__ */
|
|
5022
|
+
}) => /* @__PURE__ */ $(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ $(
|
|
4998
5023
|
Pi,
|
|
4999
5024
|
{
|
|
5000
5025
|
value: e.value ? vo(e.value) : null,
|
|
@@ -5021,7 +5046,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
|
|
|
5021
5046
|
helperText: n,
|
|
5022
5047
|
fieldProps: o,
|
|
5023
5048
|
form: i
|
|
5024
|
-
}) => /* @__PURE__ */
|
|
5049
|
+
}) => /* @__PURE__ */ $(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ $(
|
|
5025
5050
|
Ii,
|
|
5026
5051
|
{
|
|
5027
5052
|
value: e.value ? vo(e.value) : null,
|
|
@@ -5058,7 +5083,7 @@ const ec = (e) => {
|
|
|
5058
5083
|
fontSize: r,
|
|
5059
5084
|
classes: n
|
|
5060
5085
|
} = e, o = {
|
|
5061
|
-
root: ["root", t !== "inherit" && `color${
|
|
5086
|
+
root: ["root", t !== "inherit" && `color${J(t)}`, `fontSize${J(r)}`]
|
|
5062
5087
|
};
|
|
5063
5088
|
return Ae(o, Zl, n);
|
|
5064
5089
|
}, tc = pe("svg", {
|
|
@@ -5068,7 +5093,7 @@ const ec = (e) => {
|
|
|
5068
5093
|
const {
|
|
5069
5094
|
ownerState: r
|
|
5070
5095
|
} = e;
|
|
5071
|
-
return [t.root, r.color !== "inherit" && t[`color${
|
|
5096
|
+
return [t.root, r.color !== "inherit" && t[`color${J(r.color)}`], t[`fontSize${J(r.fontSize)}`]];
|
|
5072
5097
|
}
|
|
5073
5098
|
})(Ee(({
|
|
5074
5099
|
theme: e
|
|
@@ -5182,10 +5207,10 @@ const ec = (e) => {
|
|
|
5182
5207
|
hasSvgAsChild: h
|
|
5183
5208
|
}, g = {};
|
|
5184
5209
|
m || (g.viewBox = p);
|
|
5185
|
-
const
|
|
5210
|
+
const T = ec(f);
|
|
5186
5211
|
return /* @__PURE__ */ fe(tc, {
|
|
5187
5212
|
as: l,
|
|
5188
|
-
className: ue(
|
|
5213
|
+
className: ue(T.root, i),
|
|
5189
5214
|
focusable: "false",
|
|
5190
5215
|
color: d,
|
|
5191
5216
|
"aria-hidden": y ? void 0 : !0,
|
|
@@ -5195,7 +5220,7 @@ const ec = (e) => {
|
|
|
5195
5220
|
...b,
|
|
5196
5221
|
...h && o.props,
|
|
5197
5222
|
ownerState: f,
|
|
5198
|
-
children: [h ? o.props.children : o, y ? /* @__PURE__ */
|
|
5223
|
+
children: [h ? o.props.children : o, y ? /* @__PURE__ */ $("title", {
|
|
5199
5224
|
children: y
|
|
5200
5225
|
}) : null]
|
|
5201
5226
|
});
|
|
@@ -5275,7 +5300,7 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
|
|
|
5275
5300
|
qt.muiName = "SvgIcon";
|
|
5276
5301
|
function Kr(e, t) {
|
|
5277
5302
|
function r(n, o) {
|
|
5278
|
-
return /* @__PURE__ */
|
|
5303
|
+
return /* @__PURE__ */ $(qt, {
|
|
5279
5304
|
"data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0,
|
|
5280
5305
|
ref: o,
|
|
5281
5306
|
...n,
|
|
@@ -5316,11 +5341,11 @@ function Yn(...e) {
|
|
|
5316
5341
|
t.current && (t.current(), t.current = void 0), n != null && (t.current = r(n));
|
|
5317
5342
|
}, e);
|
|
5318
5343
|
}
|
|
5319
|
-
const rc = Kr(/* @__PURE__ */
|
|
5344
|
+
const rc = Kr(/* @__PURE__ */ $("path", {
|
|
5320
5345
|
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
5321
|
-
}), "Add"), nc = Kr(/* @__PURE__ */
|
|
5346
|
+
}), "Add"), nc = Kr(/* @__PURE__ */ $("path", {
|
|
5322
5347
|
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
|
-
}), "ContentCopy"), oc = Kr(/* @__PURE__ */
|
|
5348
|
+
}), "ContentCopy"), oc = Kr(/* @__PURE__ */ $("path", {
|
|
5324
5349
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
5325
5350
|
}), "Delete"), ic = Pe("MuiBox", ["root"]), sc = Ho(), Gt = za({
|
|
5326
5351
|
themeId: Ur,
|
|
@@ -5686,10 +5711,10 @@ function ei(e) {
|
|
|
5686
5711
|
clearTimeout(f);
|
|
5687
5712
|
};
|
|
5688
5713
|
}
|
|
5689
|
-
}, [u, l, d]), /* @__PURE__ */
|
|
5714
|
+
}, [u, l, d]), /* @__PURE__ */ $("span", {
|
|
5690
5715
|
className: p,
|
|
5691
5716
|
style: b,
|
|
5692
|
-
children: /* @__PURE__ */
|
|
5717
|
+
children: /* @__PURE__ */ $("span", {
|
|
5693
5718
|
className: h
|
|
5694
5719
|
})
|
|
5695
5720
|
});
|
|
@@ -5839,15 +5864,15 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5839
5864
|
B.useEffect(() => {
|
|
5840
5865
|
y.current && (y.current(), y.current = null);
|
|
5841
5866
|
}, [u]);
|
|
5842
|
-
const p = B.useRef(!1), b = Tc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback((
|
|
5867
|
+
const p = B.useRef(!1), b = Tc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback((R) => {
|
|
5843
5868
|
const {
|
|
5844
5869
|
pulsate: S,
|
|
5845
|
-
rippleX:
|
|
5846
|
-
rippleY:
|
|
5870
|
+
rippleX: w,
|
|
5871
|
+
rippleY: V,
|
|
5847
5872
|
rippleSize: G,
|
|
5848
|
-
cb:
|
|
5849
|
-
} =
|
|
5850
|
-
d((F) => [...F, /* @__PURE__ */
|
|
5873
|
+
cb: W
|
|
5874
|
+
} = R;
|
|
5875
|
+
d((F) => [...F, /* @__PURE__ */ $(kc, {
|
|
5851
5876
|
classes: {
|
|
5852
5877
|
ripple: ue(i.ripple, be.ripple),
|
|
5853
5878
|
rippleVisible: ue(i.rippleVisible, be.rippleVisible),
|
|
@@ -5858,84 +5883,84 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
5858
5883
|
},
|
|
5859
5884
|
timeout: Ir,
|
|
5860
5885
|
pulsate: S,
|
|
5861
|
-
rippleX:
|
|
5862
|
-
rippleY:
|
|
5886
|
+
rippleX: w,
|
|
5887
|
+
rippleY: V,
|
|
5863
5888
|
rippleSize: G
|
|
5864
|
-
}, m.current)]), m.current += 1, y.current =
|
|
5865
|
-
}, [i]),
|
|
5889
|
+
}, m.current)]), m.current += 1, y.current = W;
|
|
5890
|
+
}, [i]), T = B.useCallback((R = {}, S = {}, w = () => {
|
|
5866
5891
|
}) => {
|
|
5867
5892
|
const {
|
|
5868
|
-
pulsate:
|
|
5893
|
+
pulsate: V = !1,
|
|
5869
5894
|
center: G = o || S.pulsate,
|
|
5870
|
-
fakeElement:
|
|
5895
|
+
fakeElement: W = !1
|
|
5871
5896
|
// For test purposes
|
|
5872
5897
|
} = S;
|
|
5873
|
-
if (
|
|
5898
|
+
if (R?.type === "mousedown" && p.current) {
|
|
5874
5899
|
p.current = !1;
|
|
5875
5900
|
return;
|
|
5876
5901
|
}
|
|
5877
|
-
|
|
5878
|
-
const F =
|
|
5902
|
+
R?.type === "touchstart" && (p.current = !0);
|
|
5903
|
+
const F = W ? null : f.current, I = F ? F.getBoundingClientRect() : {
|
|
5879
5904
|
width: 0,
|
|
5880
5905
|
height: 0,
|
|
5881
5906
|
left: 0,
|
|
5882
5907
|
top: 0
|
|
5883
5908
|
};
|
|
5884
|
-
let c,
|
|
5885
|
-
if (G ||
|
|
5886
|
-
c = Math.round(I.width / 2),
|
|
5909
|
+
let c, E, C;
|
|
5910
|
+
if (G || R === void 0 || R.clientX === 0 && R.clientY === 0 || !R.clientX && !R.touches)
|
|
5911
|
+
c = Math.round(I.width / 2), E = Math.round(I.height / 2);
|
|
5887
5912
|
else {
|
|
5888
5913
|
const {
|
|
5889
|
-
clientX:
|
|
5890
|
-
clientY:
|
|
5891
|
-
} =
|
|
5892
|
-
c = Math.round(
|
|
5914
|
+
clientX: _,
|
|
5915
|
+
clientY: P
|
|
5916
|
+
} = R.touches && R.touches.length > 0 ? R.touches[0] : R;
|
|
5917
|
+
c = Math.round(_ - I.left), E = Math.round(P - I.top);
|
|
5893
5918
|
}
|
|
5894
5919
|
if (G)
|
|
5895
|
-
|
|
5920
|
+
C = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), C % 2 === 0 && (C += 1);
|
|
5896
5921
|
else {
|
|
5897
|
-
const
|
|
5898
|
-
|
|
5922
|
+
const _ = Math.max(Math.abs((F ? F.clientWidth : 0) - c), c) * 2 + 2, P = Math.max(Math.abs((F ? F.clientHeight : 0) - E), E) * 2 + 2;
|
|
5923
|
+
C = Math.sqrt(_ ** 2 + P ** 2);
|
|
5899
5924
|
}
|
|
5900
|
-
|
|
5925
|
+
R?.touches ? h.current === null && (h.current = () => {
|
|
5901
5926
|
g({
|
|
5902
|
-
pulsate:
|
|
5927
|
+
pulsate: V,
|
|
5903
5928
|
rippleX: c,
|
|
5904
|
-
rippleY:
|
|
5905
|
-
rippleSize:
|
|
5906
|
-
cb:
|
|
5929
|
+
rippleY: E,
|
|
5930
|
+
rippleSize: C,
|
|
5931
|
+
cb: w
|
|
5907
5932
|
});
|
|
5908
5933
|
}, b.start(wc, () => {
|
|
5909
5934
|
h.current && (h.current(), h.current = null);
|
|
5910
5935
|
})) : g({
|
|
5911
|
-
pulsate:
|
|
5936
|
+
pulsate: V,
|
|
5912
5937
|
rippleX: c,
|
|
5913
|
-
rippleY:
|
|
5914
|
-
rippleSize:
|
|
5915
|
-
cb:
|
|
5938
|
+
rippleY: E,
|
|
5939
|
+
rippleSize: C,
|
|
5940
|
+
cb: w
|
|
5916
5941
|
});
|
|
5917
5942
|
}, [o, g, b]), k = B.useCallback(() => {
|
|
5918
|
-
|
|
5943
|
+
T({}, {
|
|
5919
5944
|
pulsate: !0
|
|
5920
5945
|
});
|
|
5921
|
-
}, [
|
|
5922
|
-
if (b.clear(),
|
|
5946
|
+
}, [T]), M = B.useCallback((R, S) => {
|
|
5947
|
+
if (b.clear(), R?.type === "touchend" && h.current) {
|
|
5923
5948
|
h.current(), h.current = null, b.start(0, () => {
|
|
5924
|
-
M(
|
|
5949
|
+
M(R, S);
|
|
5925
5950
|
});
|
|
5926
5951
|
return;
|
|
5927
5952
|
}
|
|
5928
|
-
h.current = null, d((
|
|
5953
|
+
h.current = null, d((w) => w.length > 0 ? w.slice(1) : w), y.current = S;
|
|
5929
5954
|
}, [b]);
|
|
5930
5955
|
return B.useImperativeHandle(r, () => ({
|
|
5931
5956
|
pulsate: k,
|
|
5932
|
-
start:
|
|
5957
|
+
start: T,
|
|
5933
5958
|
stop: M
|
|
5934
|
-
}), [k,
|
|
5959
|
+
}), [k, T, M]), /* @__PURE__ */ $(Rc, {
|
|
5935
5960
|
className: ue(be.root, i.root, a),
|
|
5936
5961
|
ref: f,
|
|
5937
5962
|
...l,
|
|
5938
|
-
children: /* @__PURE__ */
|
|
5963
|
+
children: /* @__PURE__ */ $(Qr, {
|
|
5939
5964
|
component: null,
|
|
5940
5965
|
exit: !0,
|
|
5941
5966
|
children: u
|
|
@@ -6030,60 +6055,60 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
|
|
|
6030
6055
|
LinkComponent: h = "a",
|
|
6031
6056
|
onBlur: f,
|
|
6032
6057
|
onClick: g,
|
|
6033
|
-
onContextMenu:
|
|
6058
|
+
onContextMenu: T,
|
|
6034
6059
|
onDragLeave: k,
|
|
6035
6060
|
onFocus: M,
|
|
6036
|
-
onFocusVisible:
|
|
6061
|
+
onFocusVisible: R,
|
|
6037
6062
|
onKeyDown: S,
|
|
6038
|
-
onKeyUp:
|
|
6039
|
-
onMouseDown:
|
|
6063
|
+
onKeyUp: w,
|
|
6064
|
+
onMouseDown: V,
|
|
6040
6065
|
onMouseLeave: G,
|
|
6041
|
-
onMouseUp:
|
|
6066
|
+
onMouseUp: W,
|
|
6042
6067
|
onTouchEnd: F,
|
|
6043
6068
|
onTouchMove: I,
|
|
6044
6069
|
onTouchStart: c,
|
|
6045
|
-
tabIndex:
|
|
6046
|
-
TouchRippleProps:
|
|
6047
|
-
touchRippleRef:
|
|
6048
|
-
type:
|
|
6070
|
+
tabIndex: E = 0,
|
|
6071
|
+
TouchRippleProps: C,
|
|
6072
|
+
touchRippleRef: _,
|
|
6073
|
+
type: P,
|
|
6049
6074
|
...U
|
|
6050
|
-
} = n,
|
|
6051
|
-
d &&
|
|
6075
|
+
} = n, oe = B.useRef(null), j = fc(), x = Yn(j.ref, _), [O, z] = B.useState(!1);
|
|
6076
|
+
d && O && z(!1), B.useImperativeHandle(o, () => ({
|
|
6052
6077
|
focusVisible: () => {
|
|
6053
|
-
|
|
6078
|
+
z(!0), oe.current.focus();
|
|
6054
6079
|
}
|
|
6055
6080
|
}), []);
|
|
6056
|
-
const
|
|
6081
|
+
const D = j.shouldMount && !m && !d;
|
|
6057
6082
|
B.useEffect(() => {
|
|
6058
|
-
|
|
6059
|
-
}, [m, p,
|
|
6060
|
-
const
|
|
6061
|
-
|
|
6062
|
-
}, y),
|
|
6063
|
-
Hn(Y.target) ||
|
|
6083
|
+
O && p && !m && j.pulsate();
|
|
6084
|
+
}, [m, p, O, j]);
|
|
6085
|
+
const L = Me(j, "start", V, y), K = Me(j, "stop", T, y), q = Me(j, "stop", k, y), H = Me(j, "stop", W, y), X = Me(j, "stop", (Y) => {
|
|
6086
|
+
O && Y.preventDefault(), G && G(Y);
|
|
6087
|
+
}, y), Z = Me(j, "start", c, y), Q = Me(j, "stop", F, y), me = Me(j, "stop", I, y), N = Me(j, "stop", (Y) => {
|
|
6088
|
+
Hn(Y.target) || z(!1), f && f(Y);
|
|
6064
6089
|
}, !1), ye = Dt((Y) => {
|
|
6065
|
-
|
|
6066
|
-
}),
|
|
6067
|
-
const Y =
|
|
6090
|
+
oe.current || (oe.current = Y.currentTarget), Hn(Y.target) && (z(!0), R && R(Y)), M && M(Y);
|
|
6091
|
+
}), Be = () => {
|
|
6092
|
+
const Y = oe.current;
|
|
6068
6093
|
return u && u !== "button" && !(Y.tagName === "A" && Y.href);
|
|
6069
6094
|
}, wt = Dt((Y) => {
|
|
6070
|
-
p && !Y.repeat &&
|
|
6071
|
-
|
|
6072
|
-
}), Y.target === Y.currentTarget &&
|
|
6095
|
+
p && !Y.repeat && O && Y.key === " " && j.stop(Y, () => {
|
|
6096
|
+
j.start(Y);
|
|
6097
|
+
}), Y.target === Y.currentTarget && Be() && Y.key === " " && Y.preventDefault(), S && S(Y), Y.target === Y.currentTarget && Be() && Y.key === "Enter" && !d && (Y.preventDefault(), g && g(Y));
|
|
6073
6098
|
}), fi = Dt((Y) => {
|
|
6074
|
-
p && Y.key === " " &&
|
|
6075
|
-
|
|
6076
|
-
}),
|
|
6099
|
+
p && Y.key === " " && O && !Y.defaultPrevented && j.stop(Y, () => {
|
|
6100
|
+
j.pulsate(Y);
|
|
6101
|
+
}), w && w(Y), g && Y.target === Y.currentTarget && Be() && Y.key === " " && !Y.defaultPrevented && g(Y);
|
|
6077
6102
|
});
|
|
6078
6103
|
let Et = u;
|
|
6079
6104
|
Et === "button" && (U.href || U.to) && (Et = h);
|
|
6080
6105
|
const ut = {};
|
|
6081
6106
|
if (Et === "button") {
|
|
6082
6107
|
const Y = !!U.formAction;
|
|
6083
|
-
ut.type =
|
|
6108
|
+
ut.type = P === void 0 && !Y ? "button" : P, ut.disabled = d;
|
|
6084
6109
|
} else
|
|
6085
6110
|
!U.href && !U.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
|
|
6086
|
-
const di = Yn(r,
|
|
6111
|
+
const di = Yn(r, oe), rn = {
|
|
6087
6112
|
...n,
|
|
6088
6113
|
centerRipple: i,
|
|
6089
6114
|
component: u,
|
|
@@ -6091,8 +6116,8 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
|
|
|
6091
6116
|
disableRipple: m,
|
|
6092
6117
|
disableTouchRipple: y,
|
|
6093
6118
|
focusRipple: p,
|
|
6094
|
-
tabIndex:
|
|
6095
|
-
focusVisible:
|
|
6119
|
+
tabIndex: E,
|
|
6120
|
+
focusVisible: O
|
|
6096
6121
|
}, pi = Ic(rn);
|
|
6097
6122
|
return /* @__PURE__ */ fe(Mc, {
|
|
6098
6123
|
as: Et,
|
|
@@ -6100,26 +6125,26 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
|
|
|
6100
6125
|
ownerState: rn,
|
|
6101
6126
|
onBlur: N,
|
|
6102
6127
|
onClick: g,
|
|
6103
|
-
onContextMenu:
|
|
6128
|
+
onContextMenu: K,
|
|
6104
6129
|
onFocus: ye,
|
|
6105
6130
|
onKeyDown: wt,
|
|
6106
6131
|
onKeyUp: fi,
|
|
6107
|
-
onMouseDown:
|
|
6108
|
-
onMouseLeave:
|
|
6109
|
-
onMouseUp:
|
|
6110
|
-
onDragLeave:
|
|
6111
|
-
onTouchEnd:
|
|
6132
|
+
onMouseDown: L,
|
|
6133
|
+
onMouseLeave: X,
|
|
6134
|
+
onMouseUp: H,
|
|
6135
|
+
onDragLeave: q,
|
|
6136
|
+
onTouchEnd: Q,
|
|
6112
6137
|
onTouchMove: me,
|
|
6113
|
-
onTouchStart:
|
|
6138
|
+
onTouchStart: Z,
|
|
6114
6139
|
ref: di,
|
|
6115
|
-
tabIndex: d ? -1 :
|
|
6116
|
-
type:
|
|
6140
|
+
tabIndex: d ? -1 : E,
|
|
6141
|
+
type: P,
|
|
6117
6142
|
...ut,
|
|
6118
6143
|
...U,
|
|
6119
|
-
children: [a,
|
|
6120
|
-
ref:
|
|
6144
|
+
children: [a, D ? /* @__PURE__ */ $(ti, {
|
|
6145
|
+
ref: x,
|
|
6121
6146
|
center: i,
|
|
6122
|
-
...
|
|
6147
|
+
...C
|
|
6123
6148
|
}) : null]
|
|
6124
6149
|
});
|
|
6125
6150
|
});
|
|
@@ -6340,10 +6365,10 @@ const Te = 44, Mr = St`
|
|
|
6340
6365
|
color: n,
|
|
6341
6366
|
disableShrink: o
|
|
6342
6367
|
} = e, i = {
|
|
6343
|
-
root: ["root", r, `color${
|
|
6368
|
+
root: ["root", r, `color${J(n)}`],
|
|
6344
6369
|
svg: ["svg"],
|
|
6345
6370
|
track: ["track"],
|
|
6346
|
-
circle: ["circle", `circle${
|
|
6371
|
+
circle: ["circle", `circle${J(r)}`, o && "circleDisableShrink"]
|
|
6347
6372
|
};
|
|
6348
6373
|
return Ae(i, Bc, t);
|
|
6349
6374
|
}, zc = pe("span", {
|
|
@@ -6353,7 +6378,7 @@ const Te = 44, Mr = St`
|
|
|
6353
6378
|
const {
|
|
6354
6379
|
ownerState: r
|
|
6355
6380
|
} = e;
|
|
6356
|
-
return [t.root, t[r.variant], t[`color${
|
|
6381
|
+
return [t.root, t[r.variant], t[`color${J(r.color)}`]];
|
|
6357
6382
|
}
|
|
6358
6383
|
})(Ee(({
|
|
6359
6384
|
theme: e
|
|
@@ -6394,7 +6419,7 @@ const Te = 44, Mr = St`
|
|
|
6394
6419
|
const {
|
|
6395
6420
|
ownerState: r
|
|
6396
6421
|
} = e;
|
|
6397
|
-
return [t.circle, t[`circle${
|
|
6422
|
+
return [t.circle, t[`circle${J(r.variant)}`], r.disableShrink && t.circleDisableShrink];
|
|
6398
6423
|
}
|
|
6399
6424
|
})(Ee(({
|
|
6400
6425
|
theme: e
|
|
@@ -6458,17 +6483,17 @@ const Te = 44, Mr = St`
|
|
|
6458
6483
|
value: y,
|
|
6459
6484
|
variant: p,
|
|
6460
6485
|
enableTrackSlot: l
|
|
6461
|
-
}, f = Vc(h), g = {},
|
|
6486
|
+
}, f = Vc(h), g = {}, T = {}, k = {};
|
|
6462
6487
|
if (p === "determinate") {
|
|
6463
6488
|
const M = 2 * Math.PI * ((Te - m) / 2);
|
|
6464
|
-
g.strokeDasharray = M.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * M).toFixed(3)}px`,
|
|
6489
|
+
g.strokeDasharray = M.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * M).toFixed(3)}px`, T.transform = "rotate(-90deg)";
|
|
6465
6490
|
}
|
|
6466
|
-
return /* @__PURE__ */
|
|
6491
|
+
return /* @__PURE__ */ $(zc, {
|
|
6467
6492
|
className: ue(f.root, o),
|
|
6468
6493
|
style: {
|
|
6469
6494
|
width: u,
|
|
6470
6495
|
height: u,
|
|
6471
|
-
...
|
|
6496
|
+
...T,
|
|
6472
6497
|
...d
|
|
6473
6498
|
},
|
|
6474
6499
|
ownerState: h,
|
|
@@ -6480,7 +6505,7 @@ const Te = 44, Mr = St`
|
|
|
6480
6505
|
className: f.svg,
|
|
6481
6506
|
ownerState: h,
|
|
6482
6507
|
viewBox: `${Te / 2} ${Te / 2} ${Te} ${Te}`,
|
|
6483
|
-
children: [l ? /* @__PURE__ */
|
|
6508
|
+
children: [l ? /* @__PURE__ */ $(Fc, {
|
|
6484
6509
|
className: f.track,
|
|
6485
6510
|
ownerState: h,
|
|
6486
6511
|
cx: Te,
|
|
@@ -6489,7 +6514,7 @@ const Te = 44, Mr = St`
|
|
|
6489
6514
|
fill: "none",
|
|
6490
6515
|
strokeWidth: m,
|
|
6491
6516
|
"aria-hidden": "true"
|
|
6492
|
-
}) : null, /* @__PURE__ */
|
|
6517
|
+
}) : null, /* @__PURE__ */ $(Lc, {
|
|
6493
6518
|
className: f.circle,
|
|
6494
6519
|
style: g,
|
|
6495
6520
|
ownerState: h,
|
|
@@ -6585,9 +6610,9 @@ const Gc = (e) => {
|
|
|
6585
6610
|
loadingPosition: l,
|
|
6586
6611
|
classes: u
|
|
6587
6612
|
} = e, d = {
|
|
6588
|
-
root: ["root", a && "loading", i, `${i}${
|
|
6589
|
-
startIcon: ["icon", "startIcon", `iconSize${
|
|
6590
|
-
endIcon: ["icon", "endIcon", `iconSize${
|
|
6613
|
+
root: ["root", a && "loading", i, `${i}${J(t)}`, `size${J(o)}`, `${i}Size${J(o)}`, `color${J(t)}`, r && "disableElevation", n && "fullWidth", a && `loadingPosition${J(l)}`],
|
|
6614
|
+
startIcon: ["icon", "startIcon", `iconSize${J(o)}`],
|
|
6615
|
+
endIcon: ["icon", "endIcon", `iconSize${J(o)}`],
|
|
6591
6616
|
loadingIndicator: ["loadingIndicator"],
|
|
6592
6617
|
loadingWrapper: ["loadingWrapper"]
|
|
6593
6618
|
}, m = Ae(d, qc, u);
|
|
@@ -6631,7 +6656,7 @@ const Gc = (e) => {
|
|
|
6631
6656
|
const {
|
|
6632
6657
|
ownerState: r
|
|
6633
6658
|
} = e;
|
|
6634
|
-
return [t.root, t[r.variant], t[`${r.variant}${
|
|
6659
|
+
return [t.root, t[r.variant], t[`${r.variant}${J(r.color)}`], t[`size${J(r.size)}`], t[`${r.variant}Size${J(r.size)}`], r.color === "inherit" && t.colorInherit, r.disableElevation && t.disableElevation, r.fullWidth && t.fullWidth, r.loading && t.loading];
|
|
6635
6660
|
}
|
|
6636
6661
|
})(Ee(({
|
|
6637
6662
|
theme: e
|
|
@@ -6838,7 +6863,7 @@ const Gc = (e) => {
|
|
|
6838
6863
|
const {
|
|
6839
6864
|
ownerState: r
|
|
6840
6865
|
} = e;
|
|
6841
|
-
return [t.startIcon, r.loading && t.startIconLoadingStart, t[`iconSize${
|
|
6866
|
+
return [t.startIcon, r.loading && t.startIconLoadingStart, t[`iconSize${J(r.size)}`]];
|
|
6842
6867
|
}
|
|
6843
6868
|
})(({
|
|
6844
6869
|
theme: e
|
|
@@ -6881,7 +6906,7 @@ const Gc = (e) => {
|
|
|
6881
6906
|
const {
|
|
6882
6907
|
ownerState: r
|
|
6883
6908
|
} = e;
|
|
6884
|
-
return [t.endIcon, r.loading && t.endIconLoadingEnd, t[`iconSize${
|
|
6909
|
+
return [t.endIcon, r.loading && t.endIconLoadingEnd, t[`iconSize${J(r.size)}`]];
|
|
6885
6910
|
}
|
|
6886
6911
|
})(({
|
|
6887
6912
|
theme: e
|
|
@@ -7029,16 +7054,16 @@ const Gc = (e) => {
|
|
|
7029
7054
|
endIcon: h,
|
|
7030
7055
|
focusVisibleClassName: f,
|
|
7031
7056
|
fullWidth: g = !1,
|
|
7032
|
-
id:
|
|
7057
|
+
id: T,
|
|
7033
7058
|
loading: k = null,
|
|
7034
7059
|
loadingIndicator: M,
|
|
7035
|
-
loadingPosition:
|
|
7060
|
+
loadingPosition: R = "center",
|
|
7036
7061
|
size: S = "medium",
|
|
7037
|
-
startIcon:
|
|
7038
|
-
type:
|
|
7062
|
+
startIcon: w,
|
|
7063
|
+
type: V,
|
|
7039
7064
|
variant: G = "text",
|
|
7040
|
-
...
|
|
7041
|
-
} = a, F = Wo(
|
|
7065
|
+
...W
|
|
7066
|
+
} = a, F = Wo(T), I = M ?? /* @__PURE__ */ $(en, {
|
|
7042
7067
|
"aria-labelledby": F,
|
|
7043
7068
|
color: "inherit",
|
|
7044
7069
|
size: 16
|
|
@@ -7052,33 +7077,33 @@ const Gc = (e) => {
|
|
|
7052
7077
|
fullWidth: g,
|
|
7053
7078
|
loading: k,
|
|
7054
7079
|
loadingIndicator: I,
|
|
7055
|
-
loadingPosition:
|
|
7080
|
+
loadingPosition: R,
|
|
7056
7081
|
size: S,
|
|
7057
|
-
type:
|
|
7082
|
+
type: V,
|
|
7058
7083
|
variant: G
|
|
7059
|
-
},
|
|
7060
|
-
className:
|
|
7084
|
+
}, E = Gc(c), C = (w || k && R === "start") && /* @__PURE__ */ $(Yc, {
|
|
7085
|
+
className: E.startIcon,
|
|
7061
7086
|
ownerState: c,
|
|
7062
|
-
children:
|
|
7063
|
-
className:
|
|
7087
|
+
children: w || /* @__PURE__ */ $(Qn, {
|
|
7088
|
+
className: E.loadingIconPlaceholder,
|
|
7064
7089
|
ownerState: c
|
|
7065
7090
|
})
|
|
7066
|
-
}),
|
|
7067
|
-
className:
|
|
7091
|
+
}), _ = (h || k && R === "end") && /* @__PURE__ */ $(Hc, {
|
|
7092
|
+
className: E.endIcon,
|
|
7068
7093
|
ownerState: c,
|
|
7069
|
-
children: h || /* @__PURE__ */
|
|
7070
|
-
className:
|
|
7094
|
+
children: h || /* @__PURE__ */ $(Qn, {
|
|
7095
|
+
className: E.loadingIconPlaceholder,
|
|
7071
7096
|
ownerState: c
|
|
7072
7097
|
})
|
|
7073
|
-
}),
|
|
7098
|
+
}), P = o || "", U = typeof k == "boolean" ? (
|
|
7074
7099
|
// use plain HTML span to minimize the runtime overhead
|
|
7075
|
-
/* @__PURE__ */
|
|
7076
|
-
className:
|
|
7100
|
+
/* @__PURE__ */ $("span", {
|
|
7101
|
+
className: E.loadingWrapper,
|
|
7077
7102
|
style: {
|
|
7078
7103
|
display: "contents"
|
|
7079
7104
|
},
|
|
7080
|
-
children: k && /* @__PURE__ */
|
|
7081
|
-
className:
|
|
7105
|
+
children: k && /* @__PURE__ */ $(Kc, {
|
|
7106
|
+
className: E.loadingIndicator,
|
|
7082
7107
|
ownerState: c,
|
|
7083
7108
|
children: I
|
|
7084
7109
|
})
|
|
@@ -7086,17 +7111,17 @@ const Gc = (e) => {
|
|
|
7086
7111
|
) : null;
|
|
7087
7112
|
return /* @__PURE__ */ fe(Uc, {
|
|
7088
7113
|
ownerState: c,
|
|
7089
|
-
className: ue(n.className,
|
|
7114
|
+
className: ue(n.className, E.root, m, P),
|
|
7090
7115
|
component: d,
|
|
7091
7116
|
disabled: y || k,
|
|
7092
7117
|
focusRipple: !b,
|
|
7093
|
-
focusVisibleClassName: ue(
|
|
7118
|
+
focusVisibleClassName: ue(E.focusVisible, f),
|
|
7094
7119
|
ref: r,
|
|
7095
|
-
type:
|
|
7096
|
-
id: k ? F :
|
|
7097
|
-
...
|
|
7098
|
-
classes:
|
|
7099
|
-
children: [
|
|
7120
|
+
type: V,
|
|
7121
|
+
id: k ? F : T,
|
|
7122
|
+
...W,
|
|
7123
|
+
classes: E,
|
|
7124
|
+
children: [C, R !== "end" && U, l, R === "end" && U, _]
|
|
7100
7125
|
});
|
|
7101
7126
|
});
|
|
7102
7127
|
process.env.NODE_ENV !== "production" && (ii.propTypes = {
|
|
@@ -7427,7 +7452,7 @@ const Qc = (e) => {
|
|
|
7427
7452
|
textAlign: p,
|
|
7428
7453
|
variant: b
|
|
7429
7454
|
}, g = Qc(f);
|
|
7430
|
-
return /* @__PURE__ */
|
|
7455
|
+
return /* @__PURE__ */ $(Jc, {
|
|
7431
7456
|
as: u,
|
|
7432
7457
|
className: ue(g.root, a),
|
|
7433
7458
|
role: y,
|
|
@@ -7435,7 +7460,7 @@ const Qc = (e) => {
|
|
|
7435
7460
|
ownerState: f,
|
|
7436
7461
|
"aria-orientation": y === "separator" && (u !== "hr" || l === "vertical") ? l : void 0,
|
|
7437
7462
|
...h,
|
|
7438
|
-
children: i ? /* @__PURE__ */
|
|
7463
|
+
children: i ? /* @__PURE__ */ $(Zc, {
|
|
7439
7464
|
className: g.wrapper,
|
|
7440
7465
|
ownerState: f,
|
|
7441
7466
|
children: i
|
|
@@ -7518,7 +7543,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7518
7543
|
size: i,
|
|
7519
7544
|
loading: a
|
|
7520
7545
|
} = e, l = {
|
|
7521
|
-
root: ["root", a && "loading", r && "disabled", n !== "default" && `color${
|
|
7546
|
+
root: ["root", a && "loading", r && "disabled", n !== "default" && `color${J(n)}`, o && `edge${J(o)}`, `size${J(i)}`],
|
|
7522
7547
|
loadingIndicator: ["loadingIndicator"],
|
|
7523
7548
|
loadingWrapper: ["loadingWrapper"]
|
|
7524
7549
|
};
|
|
@@ -7530,7 +7555,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7530
7555
|
const {
|
|
7531
7556
|
ownerState: r
|
|
7532
7557
|
} = e;
|
|
7533
|
-
return [t.root, r.loading && t.loading, r.color !== "default" && t[`color${
|
|
7558
|
+
return [t.root, r.loading && t.loading, r.color !== "default" && t[`color${J(r.color)}`], r.edge && t[`edge${J(r.edge)}`], t[`size${J(r.size)}`]];
|
|
7534
7559
|
}
|
|
7535
7560
|
})(Ee(({
|
|
7536
7561
|
theme: e
|
|
@@ -7672,11 +7697,11 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7672
7697
|
loading: p = null,
|
|
7673
7698
|
loadingIndicator: b,
|
|
7674
7699
|
...h
|
|
7675
|
-
} = n, f = Wo(y), g = b ?? /* @__PURE__ */
|
|
7700
|
+
} = n, f = Wo(y), g = b ?? /* @__PURE__ */ $(en, {
|
|
7676
7701
|
"aria-labelledby": f,
|
|
7677
7702
|
color: "inherit",
|
|
7678
7703
|
size: 16
|
|
7679
|
-
}),
|
|
7704
|
+
}), T = {
|
|
7680
7705
|
...n,
|
|
7681
7706
|
edge: o,
|
|
7682
7707
|
color: l,
|
|
@@ -7685,7 +7710,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7685
7710
|
loading: p,
|
|
7686
7711
|
loadingIndicator: g,
|
|
7687
7712
|
size: m
|
|
7688
|
-
}, k = tu(
|
|
7713
|
+
}, k = tu(T);
|
|
7689
7714
|
return /* @__PURE__ */ fe(ru, {
|
|
7690
7715
|
id: p ? f : y,
|
|
7691
7716
|
className: ue(k.root, a),
|
|
@@ -7694,16 +7719,16 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
7694
7719
|
disabled: u || p,
|
|
7695
7720
|
ref: r,
|
|
7696
7721
|
...h,
|
|
7697
|
-
ownerState:
|
|
7722
|
+
ownerState: T,
|
|
7698
7723
|
children: [typeof p == "boolean" && // use plain HTML span to minimize the runtime overhead
|
|
7699
|
-
/* @__PURE__ */
|
|
7724
|
+
/* @__PURE__ */ $("span", {
|
|
7700
7725
|
className: k.loadingWrapper,
|
|
7701
7726
|
style: {
|
|
7702
7727
|
display: "contents"
|
|
7703
7728
|
},
|
|
7704
|
-
children: /* @__PURE__ */
|
|
7729
|
+
children: /* @__PURE__ */ $(nu, {
|
|
7705
7730
|
className: k.loadingIndicator,
|
|
7706
|
-
ownerState:
|
|
7731
|
+
ownerState: T,
|
|
7707
7732
|
children: p && g
|
|
7708
7733
|
})
|
|
7709
7734
|
}), i]
|
|
@@ -7886,7 +7911,7 @@ const au = (e) => {
|
|
|
7886
7911
|
square: u,
|
|
7887
7912
|
variant: d
|
|
7888
7913
|
}, p = au(y);
|
|
7889
|
-
return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */
|
|
7914
|
+
return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ $(lu, {
|
|
7890
7915
|
as: a,
|
|
7891
7916
|
ownerState: y,
|
|
7892
7917
|
className: ue(p.root, i),
|
|
@@ -7982,7 +8007,7 @@ const uu = {
|
|
|
7982
8007
|
variant: i,
|
|
7983
8008
|
classes: a
|
|
7984
8009
|
} = e, l = {
|
|
7985
|
-
root: ["root", i, e.align !== "inherit" && `align${
|
|
8010
|
+
root: ["root", i, e.align !== "inherit" && `align${J(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
|
|
7986
8011
|
};
|
|
7987
8012
|
return Ae(l, cu, a);
|
|
7988
8013
|
}, pu = pe("span", {
|
|
@@ -7992,7 +8017,7 @@ const uu = {
|
|
|
7992
8017
|
const {
|
|
7993
8018
|
ownerState: r
|
|
7994
8019
|
} = e;
|
|
7995
|
-
return [t.root, r.variant && t[r.variant], r.align !== "inherit" && t[`align${
|
|
8020
|
+
return [t.root, r.variant && t[r.variant], r.align !== "inherit" && t[`align${J(r.align)}`], r.noWrap && t.noWrap, r.gutterBottom && t.gutterBottom, r.paragraph && t.paragraph];
|
|
7996
8021
|
}
|
|
7997
8022
|
})(Ee(({
|
|
7998
8023
|
theme: e
|
|
@@ -8022,7 +8047,7 @@ const uu = {
|
|
|
8022
8047
|
}
|
|
8023
8048
|
})), ...Object.entries(e.palette?.text || {}).filter(([, t]) => typeof t == "string").map(([t]) => ({
|
|
8024
8049
|
props: {
|
|
8025
|
-
color: `text${
|
|
8050
|
+
color: `text${J(t)}`
|
|
8026
8051
|
},
|
|
8027
8052
|
style: {
|
|
8028
8053
|
color: (e.vars || e).palette.text[t]
|
|
@@ -8103,9 +8128,9 @@ const uu = {
|
|
|
8103
8128
|
paragraph: p,
|
|
8104
8129
|
variant: b,
|
|
8105
8130
|
variantMapping: h
|
|
8106
|
-
},
|
|
8107
|
-
return /* @__PURE__ */
|
|
8108
|
-
as:
|
|
8131
|
+
}, T = d || (p ? "p" : h[b] || Zn[b]) || "span", k = du(g);
|
|
8132
|
+
return /* @__PURE__ */ $(pu, {
|
|
8133
|
+
as: T,
|
|
8109
8134
|
ref: r,
|
|
8110
8135
|
className: ue(k.root, u),
|
|
8111
8136
|
...f,
|
|
@@ -8240,15 +8265,15 @@ const Tr = ({
|
|
|
8240
8265
|
const { fields: l, append: u, remove: d } = bi({
|
|
8241
8266
|
control: t.control,
|
|
8242
8267
|
name: e.name
|
|
8243
|
-
}), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (
|
|
8268
|
+
}), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, V) => {
|
|
8244
8269
|
if (!m.some(
|
|
8245
|
-
(F) => F.dependencies.includes(
|
|
8270
|
+
(F) => F.dependencies.includes(V)
|
|
8246
8271
|
)) return;
|
|
8247
|
-
const
|
|
8248
|
-
|
|
8249
|
-
if (F ===
|
|
8250
|
-
const
|
|
8251
|
-
|
|
8272
|
+
const W = t.getValues(`${e.name}.${w}`);
|
|
8273
|
+
W && m.forEach(({ name: F, expr: I, dependencies: c, precision: E, roundMode: C }) => {
|
|
8274
|
+
if (F === V || !c.includes(V) || !c.every((oe) => Fr(W[oe]))) return;
|
|
8275
|
+
const P = Co(I, W, c, E, C), U = W[F];
|
|
8276
|
+
P !== void 0 && P !== U && !Number.isNaN(P) && (typeof P != "number" || typeof U != "number" || Math.abs(P - U) > 1e-4) && t.setValue(`${e.name}.${w}.${F}`, P, {
|
|
8252
8277
|
shouldValidate: !0,
|
|
8253
8278
|
// 计算更新通常需要触发验证
|
|
8254
8279
|
shouldDirty: !0,
|
|
@@ -8260,78 +8285,78 @@ const Tr = ({
|
|
|
8260
8285
|
minItems: h = 0,
|
|
8261
8286
|
maxItems: f = 1 / 0,
|
|
8262
8287
|
addText: g = "添加一行",
|
|
8263
|
-
copyable:
|
|
8288
|
+
copyable: T = !1
|
|
8264
8289
|
} = e, k = () => {
|
|
8265
8290
|
if (l.length >= f) return;
|
|
8266
|
-
const
|
|
8267
|
-
u(
|
|
8268
|
-
}, M = (
|
|
8291
|
+
const w = ci(b);
|
|
8292
|
+
u(w);
|
|
8293
|
+
}, M = (w) => {
|
|
8269
8294
|
if (l.length >= f) return;
|
|
8270
|
-
const
|
|
8271
|
-
u(
|
|
8272
|
-
},
|
|
8273
|
-
l.length <= h || d(
|
|
8274
|
-
}, S = (
|
|
8275
|
-
const
|
|
8276
|
-
|
|
8295
|
+
const V = t.getValues(`${e.name}.${w}`);
|
|
8296
|
+
u(V);
|
|
8297
|
+
}, R = (w) => {
|
|
8298
|
+
l.length <= h || d(w);
|
|
8299
|
+
}, S = (w, V, G) => {
|
|
8300
|
+
const W = `${e.name}.${V}.${w.name}`, F = p?.[e.name]?.[V] || {}, I = { ...p, ...F }, c = Ht(
|
|
8301
|
+
w,
|
|
8277
8302
|
I,
|
|
8278
8303
|
o,
|
|
8279
8304
|
i
|
|
8280
8305
|
);
|
|
8281
8306
|
if (!c.visible)
|
|
8282
8307
|
return null;
|
|
8283
|
-
if (
|
|
8284
|
-
return /* @__PURE__ */
|
|
8308
|
+
if (w.component === "Group")
|
|
8309
|
+
return /* @__PURE__ */ $(
|
|
8285
8310
|
$t,
|
|
8286
8311
|
{
|
|
8287
|
-
size: eo(
|
|
8288
|
-
children: /* @__PURE__ */
|
|
8289
|
-
(
|
|
8290
|
-
{ ...
|
|
8291
|
-
|
|
8312
|
+
size: eo(w.colSpan),
|
|
8313
|
+
children: /* @__PURE__ */ $($t, { container: !0, spacing: 2, children: w.columns?.map(
|
|
8314
|
+
(P, U) => S(
|
|
8315
|
+
{ ...P, name: P.name },
|
|
8316
|
+
V,
|
|
8292
8317
|
U
|
|
8293
8318
|
)
|
|
8294
8319
|
) })
|
|
8295
8320
|
},
|
|
8296
|
-
`${
|
|
8321
|
+
`${W}-${G}`
|
|
8297
8322
|
);
|
|
8298
|
-
const
|
|
8299
|
-
if (!
|
|
8300
|
-
const
|
|
8301
|
-
return /* @__PURE__ */
|
|
8323
|
+
const E = r[w.component] ?? r.Text;
|
|
8324
|
+
if (!E) return null;
|
|
8325
|
+
const C = n[w.name] ?? w.ui?.options ?? [], _ = eo(w.colSpan);
|
|
8326
|
+
return /* @__PURE__ */ $($t, { size: _, children: /* @__PURE__ */ $(
|
|
8302
8327
|
jr,
|
|
8303
8328
|
{
|
|
8304
8329
|
control: t.control,
|
|
8305
|
-
name:
|
|
8306
|
-
render: ({ field:
|
|
8307
|
-
|
|
8330
|
+
name: W,
|
|
8331
|
+
render: ({ field: P, fieldState: U }) => /* @__PURE__ */ $(
|
|
8332
|
+
E,
|
|
8308
8333
|
{
|
|
8309
8334
|
error: !!U.error,
|
|
8310
8335
|
field: {
|
|
8311
|
-
...
|
|
8312
|
-
onBlur: (
|
|
8313
|
-
|
|
8336
|
+
...P,
|
|
8337
|
+
onBlur: (oe) => {
|
|
8338
|
+
P.onBlur(), y(V, w.name);
|
|
8314
8339
|
}
|
|
8315
8340
|
},
|
|
8316
8341
|
fieldProps: {
|
|
8317
|
-
...
|
|
8342
|
+
...w.ui?.props,
|
|
8318
8343
|
disabled: c.disabled,
|
|
8319
8344
|
required: c.required,
|
|
8320
8345
|
readOnly: c.readonly,
|
|
8321
|
-
placeholder:
|
|
8346
|
+
placeholder: w.ui?.placeholder
|
|
8322
8347
|
},
|
|
8323
8348
|
form: t,
|
|
8324
|
-
helperText: U.error?.message ??
|
|
8325
|
-
label:
|
|
8326
|
-
options:
|
|
8349
|
+
helperText: U.error?.message ?? w.ui?.helperText,
|
|
8350
|
+
label: w.ui?.label,
|
|
8351
|
+
options: C
|
|
8327
8352
|
}
|
|
8328
8353
|
)
|
|
8329
8354
|
}
|
|
8330
|
-
) }, `${
|
|
8355
|
+
) }, `${W}-${G}`);
|
|
8331
8356
|
};
|
|
8332
8357
|
return /* @__PURE__ */ fe(Gt, { children: [
|
|
8333
|
-
a && /* @__PURE__ */
|
|
8334
|
-
l.map((
|
|
8358
|
+
a && /* @__PURE__ */ $(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
|
|
8359
|
+
l.map((w, V) => /* @__PURE__ */ fe(
|
|
8335
8360
|
li,
|
|
8336
8361
|
{
|
|
8337
8362
|
variant: "outlined",
|
|
@@ -8348,39 +8373,39 @@ const Tr = ({
|
|
|
8348
8373
|
gap: 0.5
|
|
8349
8374
|
},
|
|
8350
8375
|
children: [
|
|
8351
|
-
|
|
8376
|
+
T && l.length < f && !o && /* @__PURE__ */ $(
|
|
8352
8377
|
Nr,
|
|
8353
8378
|
{
|
|
8354
8379
|
size: "small",
|
|
8355
|
-
onClick: () => M(
|
|
8380
|
+
onClick: () => M(V),
|
|
8356
8381
|
title: "复制",
|
|
8357
|
-
children: /* @__PURE__ */
|
|
8382
|
+
children: /* @__PURE__ */ $(nc, { fontSize: "small" })
|
|
8358
8383
|
}
|
|
8359
8384
|
),
|
|
8360
|
-
l.length > h && !o && /* @__PURE__ */
|
|
8385
|
+
l.length > h && !o && /* @__PURE__ */ $(
|
|
8361
8386
|
Nr,
|
|
8362
8387
|
{
|
|
8363
8388
|
size: "small",
|
|
8364
|
-
onClick: () =>
|
|
8389
|
+
onClick: () => R(V),
|
|
8365
8390
|
color: "error",
|
|
8366
8391
|
title: "删除",
|
|
8367
|
-
children: /* @__PURE__ */
|
|
8392
|
+
children: /* @__PURE__ */ $(oc, { fontSize: "small" })
|
|
8368
8393
|
}
|
|
8369
8394
|
)
|
|
8370
8395
|
]
|
|
8371
8396
|
}
|
|
8372
8397
|
),
|
|
8373
|
-
/* @__PURE__ */
|
|
8398
|
+
/* @__PURE__ */ $($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, W) => S(G, V, W)) })
|
|
8374
8399
|
]
|
|
8375
8400
|
},
|
|
8376
|
-
|
|
8401
|
+
w.id
|
|
8377
8402
|
)),
|
|
8378
|
-
l.length < f && !o && /* @__PURE__ */
|
|
8403
|
+
l.length < f && !o && /* @__PURE__ */ $(Dr, { children: /* @__PURE__ */ $(Yt, { sx: { my: 2 }, children: /* @__PURE__ */ $(
|
|
8379
8404
|
ii,
|
|
8380
8405
|
{
|
|
8381
8406
|
variant: "text",
|
|
8382
8407
|
size: "small",
|
|
8383
|
-
startIcon: /* @__PURE__ */
|
|
8408
|
+
startIcon: /* @__PURE__ */ $(rc, {}),
|
|
8384
8409
|
onClick: k,
|
|
8385
8410
|
children: g
|
|
8386
8411
|
}
|
|
@@ -8403,8 +8428,8 @@ const to = ({
|
|
|
8403
8428
|
return null;
|
|
8404
8429
|
const l = a || t.watch();
|
|
8405
8430
|
return /* @__PURE__ */ fe(Gt, { sx: { width: "100%" }, children: [
|
|
8406
|
-
e.ui?.label && /* @__PURE__ */
|
|
8407
|
-
/* @__PURE__ */
|
|
8431
|
+
e.ui?.label && /* @__PURE__ */ $(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
|
|
8432
|
+
/* @__PURE__ */ $(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
|
|
8408
8433
|
const m = Ht(
|
|
8409
8434
|
u,
|
|
8410
8435
|
l,
|
|
@@ -8417,7 +8442,7 @@ const to = ({
|
|
|
8417
8442
|
if (!y)
|
|
8418
8443
|
return null;
|
|
8419
8444
|
const p = n[u.name] ?? u.ui?.options ?? [], b = mu(u.colSpan);
|
|
8420
|
-
return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */
|
|
8445
|
+
return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ $(Ke, { size: b, children: /* @__PURE__ */ $(
|
|
8421
8446
|
y,
|
|
8422
8447
|
{
|
|
8423
8448
|
field: { name: u.name, value: void 0, onChange: () => {
|
|
@@ -8432,12 +8457,12 @@ const to = ({
|
|
|
8432
8457
|
widgets: r,
|
|
8433
8458
|
values: l
|
|
8434
8459
|
}
|
|
8435
|
-
) }, `${String(u.name)}-${d}`) : /* @__PURE__ */
|
|
8460
|
+
) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ $(Ke, { size: b, children: /* @__PURE__ */ $(
|
|
8436
8461
|
jr,
|
|
8437
8462
|
{
|
|
8438
8463
|
control: t.control,
|
|
8439
8464
|
name: u.name,
|
|
8440
|
-
render: ({ field: h, fieldState: f }) => /* @__PURE__ */
|
|
8465
|
+
render: ({ field: h, fieldState: f }) => /* @__PURE__ */ $(
|
|
8441
8466
|
y,
|
|
8442
8467
|
{
|
|
8443
8468
|
error: !!f.error,
|
|
@@ -8460,7 +8485,7 @@ const to = ({
|
|
|
8460
8485
|
) }, `${String(u.name)}-${d}`);
|
|
8461
8486
|
}) })
|
|
8462
8487
|
] });
|
|
8463
|
-
}, ro = ({ field: e }) => /* @__PURE__ */
|
|
8488
|
+
}, ro = ({ field: e }) => /* @__PURE__ */ $("input", { type: "hidden", ...e, value: e.value ?? "" }), no = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ $(
|
|
8464
8489
|
lt,
|
|
8465
8490
|
{
|
|
8466
8491
|
name: e.name,
|
|
@@ -8488,7 +8513,7 @@ const to = ({
|
|
|
8488
8513
|
error: r,
|
|
8489
8514
|
helperText: n,
|
|
8490
8515
|
fieldProps: o
|
|
8491
|
-
}) => /* @__PURE__ */
|
|
8516
|
+
}) => /* @__PURE__ */ $(
|
|
8492
8517
|
lt,
|
|
8493
8518
|
{
|
|
8494
8519
|
...e,
|
|
@@ -8514,7 +8539,7 @@ const to = ({
|
|
|
8514
8539
|
backgroundColor: "#1A2027"
|
|
8515
8540
|
})
|
|
8516
8541
|
})), so = ({ field: e, label: t, options: r = [], error: n, helperText: o, fieldProps: i }) => {
|
|
8517
|
-
const a = (m) => r.find((p) => String(p.value) === m)?.value ?? m, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */
|
|
8542
|
+
const a = (m) => r.find((p) => String(p.value) === m)?.value ?? m, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */ $(
|
|
8518
8543
|
Oi,
|
|
8519
8544
|
{
|
|
8520
8545
|
row: !0,
|
|
@@ -8524,10 +8549,10 @@ const to = ({
|
|
|
8524
8549
|
},
|
|
8525
8550
|
value: l,
|
|
8526
8551
|
sx: u ? { flexWrap: "nowrap" } : void 0,
|
|
8527
|
-
children: r.map((m) => /* @__PURE__ */
|
|
8552
|
+
children: r.map((m) => /* @__PURE__ */ $(
|
|
8528
8553
|
Vr,
|
|
8529
8554
|
{
|
|
8530
|
-
control: /* @__PURE__ */
|
|
8555
|
+
control: /* @__PURE__ */ $($i, { size: "small" }),
|
|
8531
8556
|
disabled: m.disabled,
|
|
8532
8557
|
label: m.label,
|
|
8533
8558
|
value: String(m.value)
|
|
@@ -8561,23 +8586,23 @@ const to = ({
|
|
|
8561
8586
|
u ? (
|
|
8562
8587
|
// 行内布局:label 和 radio 在同一行
|
|
8563
8588
|
/* @__PURE__ */ fe(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
8564
|
-
/* @__PURE__ */
|
|
8565
|
-
/* @__PURE__ */
|
|
8589
|
+
/* @__PURE__ */ $(io, { children: t && /* @__PURE__ */ $(jt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
|
|
8590
|
+
/* @__PURE__ */ $(io, { children: d })
|
|
8566
8591
|
] })
|
|
8567
8592
|
) : (
|
|
8568
8593
|
// 默认布局:label 在上,radio 在下
|
|
8569
8594
|
/* @__PURE__ */ fe(nn, { spacing: 0, children: [
|
|
8570
|
-
t && /* @__PURE__ */
|
|
8595
|
+
t && /* @__PURE__ */ $(jt, { component: "legend", required: !1, children: Se(t, i?.required) }),
|
|
8571
8596
|
d
|
|
8572
8597
|
] })
|
|
8573
8598
|
),
|
|
8574
|
-
o && /* @__PURE__ */
|
|
8599
|
+
o && /* @__PURE__ */ $(zr, { children: o })
|
|
8575
8600
|
]
|
|
8576
8601
|
}
|
|
8577
8602
|
);
|
|
8578
8603
|
}, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { children: [
|
|
8579
|
-
t && /* @__PURE__ */
|
|
8580
|
-
/* @__PURE__ */
|
|
8604
|
+
t && /* @__PURE__ */ $(jt, { children: t }),
|
|
8605
|
+
/* @__PURE__ */ $(
|
|
8581
8606
|
Ri,
|
|
8582
8607
|
{
|
|
8583
8608
|
value: e.value ?? 0,
|
|
@@ -8588,8 +8613,8 @@ const to = ({
|
|
|
8588
8613
|
}
|
|
8589
8614
|
)
|
|
8590
8615
|
] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { fullWidth: !0, children: [
|
|
8591
|
-
t && /* @__PURE__ */
|
|
8592
|
-
/* @__PURE__ */
|
|
8616
|
+
t && /* @__PURE__ */ $(jt, { children: t }),
|
|
8617
|
+
/* @__PURE__ */ $(
|
|
8593
8618
|
ki,
|
|
8594
8619
|
{
|
|
8595
8620
|
value: e.value ?? 0,
|
|
@@ -8599,10 +8624,10 @@ const to = ({
|
|
|
8599
8624
|
}
|
|
8600
8625
|
)
|
|
8601
8626
|
] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
|
|
8602
|
-
/* @__PURE__ */
|
|
8627
|
+
/* @__PURE__ */ $(
|
|
8603
8628
|
Vr,
|
|
8604
8629
|
{
|
|
8605
|
-
control: /* @__PURE__ */
|
|
8630
|
+
control: /* @__PURE__ */ $(
|
|
8606
8631
|
Ai,
|
|
8607
8632
|
{
|
|
8608
8633
|
checked: e.value ?? !1,
|
|
@@ -8614,14 +8639,14 @@ const to = ({
|
|
|
8614
8639
|
label: Se(t, o?.required)
|
|
8615
8640
|
}
|
|
8616
8641
|
),
|
|
8617
|
-
n && /* @__PURE__ */
|
|
8642
|
+
n && /* @__PURE__ */ $(zr, { children: n })
|
|
8618
8643
|
] }), uo = ({
|
|
8619
8644
|
field: e,
|
|
8620
8645
|
label: t,
|
|
8621
8646
|
error: r,
|
|
8622
8647
|
helperText: n,
|
|
8623
8648
|
fieldProps: o
|
|
8624
|
-
}) => /* @__PURE__ */
|
|
8649
|
+
}) => /* @__PURE__ */ $(
|
|
8625
8650
|
lt,
|
|
8626
8651
|
{
|
|
8627
8652
|
...e,
|
|
@@ -8644,7 +8669,7 @@ const to = ({
|
|
|
8644
8669
|
error: r,
|
|
8645
8670
|
helperText: n,
|
|
8646
8671
|
fieldProps: o
|
|
8647
|
-
}) => /* @__PURE__ */
|
|
8672
|
+
}) => /* @__PURE__ */ $(
|
|
8648
8673
|
lt,
|
|
8649
8674
|
{
|
|
8650
8675
|
...e,
|
|
@@ -8665,7 +8690,7 @@ const to = ({
|
|
|
8665
8690
|
error: r,
|
|
8666
8691
|
helperText: n,
|
|
8667
8692
|
fieldProps: o
|
|
8668
|
-
}) => /* @__PURE__ */
|
|
8693
|
+
}) => /* @__PURE__ */ $(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ $(
|
|
8669
8694
|
Mi,
|
|
8670
8695
|
{
|
|
8671
8696
|
disabled: o?.disabled,
|
|
@@ -8738,14 +8763,14 @@ async function gu(e, t) {
|
|
|
8738
8763
|
}
|
|
8739
8764
|
}
|
|
8740
8765
|
function yu(e, t) {
|
|
8741
|
-
const [r, n] =
|
|
8742
|
-
return
|
|
8766
|
+
const [r, n] = De({}), o = Ne({}), i = Ne(/* @__PURE__ */ new Set()), a = Ne({});
|
|
8767
|
+
return _e(() => {
|
|
8743
8768
|
i.current.clear(), o.current = {}, a.current = {};
|
|
8744
8769
|
const l = {};
|
|
8745
8770
|
for (const u of e)
|
|
8746
8771
|
l[u.name] = u.ui?.options ?? [];
|
|
8747
8772
|
n(l);
|
|
8748
|
-
}, [e]),
|
|
8773
|
+
}, [e]), _e(() => {
|
|
8749
8774
|
e.forEach(async (l) => {
|
|
8750
8775
|
if (!l.ui?.optionRequest) return;
|
|
8751
8776
|
const u = l.name, d = l.dependencies || [];
|
|
@@ -8792,7 +8817,7 @@ function bu(e, t) {
|
|
|
8792
8817
|
widgets: d = {},
|
|
8793
8818
|
children: m,
|
|
8794
8819
|
spacing: y
|
|
8795
|
-
} = e, p = Ge(() => zi(r), [r]), b =
|
|
8820
|
+
} = e, p = Ge(() => zi(r), [r]), b = Ne(void 0);
|
|
8796
8821
|
b.current === void 0 && (b.current = {
|
|
8797
8822
|
...p.defaultValues,
|
|
8798
8823
|
...n || {}
|
|
@@ -8803,62 +8828,62 @@ function bu(e, t) {
|
|
|
8803
8828
|
resolver: f,
|
|
8804
8829
|
mode: "onBlur",
|
|
8805
8830
|
reValidateMode: "onBlur"
|
|
8806
|
-
}),
|
|
8831
|
+
}), T = Ge(() => ji(p), [p]), k = Si({
|
|
8807
8832
|
control: g.control,
|
|
8808
|
-
name:
|
|
8833
|
+
name: T
|
|
8809
8834
|
}), M = Ge(() => {
|
|
8810
8835
|
const I = {};
|
|
8811
|
-
return Array.isArray(k) &&
|
|
8812
|
-
I[c] = k[
|
|
8836
|
+
return Array.isArray(k) && T.forEach((c, E) => {
|
|
8837
|
+
I[c] = k[E];
|
|
8813
8838
|
}), I;
|
|
8814
|
-
}, [k,
|
|
8815
|
-
|
|
8839
|
+
}, [k, T]), R = yu(p.allFields, M), S = Ne({});
|
|
8840
|
+
_e(() => {
|
|
8816
8841
|
const I = S.current;
|
|
8817
8842
|
if (Object.keys(I).length === 0) {
|
|
8818
8843
|
S.current = { ...M };
|
|
8819
8844
|
return;
|
|
8820
8845
|
}
|
|
8821
8846
|
const c = {};
|
|
8822
|
-
let
|
|
8823
|
-
for (const
|
|
8824
|
-
if (
|
|
8825
|
-
(
|
|
8847
|
+
let E = !1;
|
|
8848
|
+
for (const C of p.allFields)
|
|
8849
|
+
if (C.dependencies?.length && C.dependencies.some(
|
|
8850
|
+
(P) => M[P] !== I[P]
|
|
8826
8851
|
)) {
|
|
8827
|
-
const
|
|
8828
|
-
|
|
8852
|
+
const P = g.getValues(C.name);
|
|
8853
|
+
P != null && P !== "" && (c[C.name] = null, E = !0);
|
|
8829
8854
|
}
|
|
8830
|
-
|
|
8831
|
-
g.setValue(
|
|
8855
|
+
E && Object.entries(c).forEach(([C, _]) => {
|
|
8856
|
+
g.setValue(C, _, {
|
|
8832
8857
|
shouldValidate: !0,
|
|
8833
8858
|
shouldDirty: !0,
|
|
8834
8859
|
shouldTouch: !0
|
|
8835
8860
|
});
|
|
8836
8861
|
}), S.current = { ...M };
|
|
8837
|
-
}, [M, p.allFields, g]),
|
|
8862
|
+
}, [M, p.allFields, g]), _e(() => {
|
|
8838
8863
|
i && i(g.getValues());
|
|
8839
8864
|
}, [M, i, g]);
|
|
8840
|
-
const
|
|
8865
|
+
const w = Ge(() => p.allFields.filter((I) => I.compute).map((I) => ({
|
|
8841
8866
|
name: I.name,
|
|
8842
8867
|
expr: I.compute.expr,
|
|
8843
8868
|
dependencies: I.compute.dependencies || xo(I.compute.expr),
|
|
8844
8869
|
precision: I.compute.precision,
|
|
8845
8870
|
roundMode: I.compute.roundMode
|
|
8846
|
-
})), [p.allFields]),
|
|
8847
|
-
|
|
8848
|
-
if (
|
|
8871
|
+
})), [p.allFields]), V = Ne({});
|
|
8872
|
+
_e(() => {
|
|
8873
|
+
if (w.length === 0) return;
|
|
8849
8874
|
let I = !1;
|
|
8850
8875
|
const c = {};
|
|
8851
|
-
for (const { name:
|
|
8852
|
-
const
|
|
8853
|
-
if (
|
|
8876
|
+
for (const { name: E, expr: C, dependencies: _, precision: P, roundMode: U } of w) {
|
|
8877
|
+
const oe = _.map((D) => `${D}:${M[D]}`).join("|"), j = V.current[E];
|
|
8878
|
+
if (oe === j)
|
|
8854
8879
|
continue;
|
|
8855
|
-
if (!
|
|
8856
|
-
|
|
8880
|
+
if (!_.every((D) => Fr(M[D]))) {
|
|
8881
|
+
V.current[E] = oe;
|
|
8857
8882
|
continue;
|
|
8858
8883
|
}
|
|
8859
|
-
const
|
|
8860
|
-
|
|
8861
|
-
(typeof
|
|
8884
|
+
const O = Co(C, M, _, P, U), z = g.getValues(E);
|
|
8885
|
+
O !== void 0 && O !== z && !Number.isNaN(O) && // 避免浮点数精度问题导致的无限更新
|
|
8886
|
+
(typeof O != "number" || typeof z != "number" || Math.abs(O - z) > 1e-4) && (c[E] = O, I = !0), V.current[E] = oe;
|
|
8862
8887
|
}
|
|
8863
8888
|
I && g.reset(
|
|
8864
8889
|
{
|
|
@@ -8879,18 +8904,18 @@ function bu(e, t) {
|
|
|
8879
8904
|
// keepDirty: true means "if a field was dirty, keep it dirty".
|
|
8880
8905
|
}
|
|
8881
8906
|
);
|
|
8882
|
-
}, [M,
|
|
8907
|
+
}, [M, w, g]);
|
|
8883
8908
|
const G = ho(
|
|
8884
8909
|
async (I) => {
|
|
8885
|
-
const c = g.getValues(),
|
|
8886
|
-
for (const
|
|
8887
|
-
if (
|
|
8910
|
+
const c = g.getValues(), E = {};
|
|
8911
|
+
for (const C of p.allFields) {
|
|
8912
|
+
if (C.noSubmit)
|
|
8888
8913
|
continue;
|
|
8889
|
-
const
|
|
8890
|
-
let
|
|
8891
|
-
|
|
8914
|
+
const _ = C.name;
|
|
8915
|
+
let P = _ in I ? I[_] : c[_];
|
|
8916
|
+
C.transform ? E[_] = C.transform(P, c) : E[_] = P;
|
|
8892
8917
|
}
|
|
8893
|
-
o && await o(
|
|
8918
|
+
o && await o(E);
|
|
8894
8919
|
},
|
|
8895
8920
|
[p.allFields, o, g]
|
|
8896
8921
|
);
|
|
@@ -8902,42 +8927,42 @@ function bu(e, t) {
|
|
|
8902
8927
|
await g.handleSubmit(G)();
|
|
8903
8928
|
},
|
|
8904
8929
|
getFormValues: () => {
|
|
8905
|
-
const c = g.getValues(),
|
|
8906
|
-
for (const
|
|
8907
|
-
|
|
8908
|
-
return
|
|
8930
|
+
const c = g.getValues(), E = {};
|
|
8931
|
+
for (const C of p.allFields)
|
|
8932
|
+
C.noSubmit || (E[C.name] = c[C.name]);
|
|
8933
|
+
return E;
|
|
8909
8934
|
},
|
|
8910
8935
|
setValues: (c) => {
|
|
8911
|
-
for (const [
|
|
8912
|
-
|
|
8936
|
+
for (const [E, C] of Object.entries(c))
|
|
8937
|
+
C !== void 0 && g.setValue(E, C);
|
|
8913
8938
|
}
|
|
8914
8939
|
}),
|
|
8915
8940
|
[g, p, G]
|
|
8916
8941
|
);
|
|
8917
|
-
const
|
|
8942
|
+
const W = () => p.input.fields.flatMap((c, E) => {
|
|
8918
8943
|
if (c.component === "Hidden")
|
|
8919
8944
|
return [];
|
|
8920
|
-
const
|
|
8921
|
-
return c.newLine && a &&
|
|
8922
|
-
/* @__PURE__ */
|
|
8945
|
+
const C = [];
|
|
8946
|
+
return c.newLine && a && C.push(/* @__PURE__ */ $("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${E}-newline`)), C.push(
|
|
8947
|
+
/* @__PURE__ */ $(
|
|
8923
8948
|
Yl,
|
|
8924
8949
|
{
|
|
8925
8950
|
field: c,
|
|
8926
|
-
index:
|
|
8951
|
+
index: E,
|
|
8927
8952
|
values: M,
|
|
8928
8953
|
form: g,
|
|
8929
8954
|
disabled: u,
|
|
8930
8955
|
readOnly: l,
|
|
8931
8956
|
widgets: h,
|
|
8932
|
-
optionsMap:
|
|
8957
|
+
optionsMap: R,
|
|
8933
8958
|
useGrid: a
|
|
8934
8959
|
},
|
|
8935
|
-
`${String(c.name)}-${
|
|
8960
|
+
`${String(c.name)}-${E}`
|
|
8936
8961
|
)
|
|
8937
|
-
),
|
|
8962
|
+
), C;
|
|
8938
8963
|
}), F = y ?? r.layout?.spacing ?? 2;
|
|
8939
|
-
return /* @__PURE__ */
|
|
8940
|
-
a ? /* @__PURE__ */
|
|
8964
|
+
return /* @__PURE__ */ $(xi, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
|
|
8965
|
+
a ? /* @__PURE__ */ $(Hl, { spacing: F, children: W() }) : /* @__PURE__ */ $(Kl, { spacing: F, children: W() }),
|
|
8941
8966
|
m
|
|
8942
8967
|
] }) });
|
|
8943
8968
|
}
|