finform-react-builder 1.8.35 → 1.8.36
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/index.es.js +393 -399
- package/dist/index.js +14 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4,17 +4,17 @@ var Vo = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var mu = (e, t, r) => t in e ? fu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
6
|
var Cn = (e, t, r) => mu(e, typeof t != "symbol" ? t + "" : t, r), Zi = (e, t, r) => t.has(e) || Vo("Cannot " + r);
|
|
7
|
-
var O = (e, t, r) => (Zi(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ve = (e, t, r) => t.has(e) ? Vo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r),
|
|
7
|
+
var O = (e, t, r) => (Zi(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ve = (e, t, r) => t.has(e) ? Vo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ne = (e, t, r, n) => (Zi(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), we = (e, t, r) => (Zi(e, t, "access private method"), r);
|
|
8
8
|
var Qn = (e, t, r, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
|
|
10
|
+
ne(e, t, i, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return O(e, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { jsx as u, jsxs as ee, Fragment as Di } from "react/jsx-runtime";
|
|
17
|
-
import * as
|
|
17
|
+
import * as ie from "react";
|
|
18
18
|
import se, { isValidElement as oi, cloneElement as si, Children as hu, useState as Ft, useMemo as Ke, useRef as bt, useEffect as zt, useCallback as Ne, useReducer as gu, forwardRef as yu, useImperativeHandle as vu, Fragment as xu, createElement as bu } from "react";
|
|
19
19
|
import { InputAdornment as wu, Box as H, Typography as fe, TextField as Ii, FormControl as ao, InputLabel as Su, Select as Cu, MenuItem as No, CircularProgress as xn, OutlinedInput as Eu, FormHelperText as oo, Autocomplete as ku, Checkbox as $n, FormControlLabel as nn, FormLabel as Rl, Switch as $l, RadioGroup as Tu, Radio as Ou, useTheme as Au, Divider as so, Button as Xe, Chip as lo, StepConnector as Pl, stepConnectorClasses as gr, Stepper as Dl, Step as Il, StepLabel as Ml, Card as ht, List as Lo, ListItem as Bo, ListItemText as qo, Tabs as Fu, Tab as _u, TableContainer as Ru, Table as $u, TableHead as Pu, TableRow as Wo, TableCell as Ur, TableBody as Du, IconButton as Mi, CardContent as Iu, Tooltip as li, Dialog as Mu, DialogTitle as ju, DialogContent as zu, DialogActions as Vu, LinearProgress as Nu, ButtonGroup as Lu, createTheme as Bu, ThemeProvider as qu, Paper as Wu, Alert as Uu } from "@mui/material";
|
|
20
20
|
import Hu from "@emotion/styled";
|
|
@@ -96,7 +96,7 @@ var Bl = (e, t, r, n = !0) => {
|
|
|
96
96
|
});
|
|
97
97
|
return i;
|
|
98
98
|
};
|
|
99
|
-
const Ni = typeof window < "u" ?
|
|
99
|
+
const Ni = typeof window < "u" ? ie.useLayoutEffect : ie.useEffect;
|
|
100
100
|
function Qu(e) {
|
|
101
101
|
const t = Vi(), { control: r = t.control, disabled: n, name: i, exact: a } = e || {}, [o, s] = se.useState(r._formState), l = se.useRef({
|
|
102
102
|
isDirty: !1,
|
|
@@ -436,13 +436,13 @@ var Hr = (e) => Ye(e) && !vi(e) ? e : {
|
|
|
436
436
|
return {};
|
|
437
437
|
const P = s ? s[0] : o, k = (M) => {
|
|
438
438
|
i && P.reportValidity && (P.setCustomValidity(xt(M) ? "" : M || ""), P.reportValidity());
|
|
439
|
-
}, S = {}, $ = fo(o), j = qn(o), F = $ || j, D = (x || po(o)) && De(o.value) && De(b) || gi(o) && o.value === "" || b === "" || Array.isArray(b) && !b.length, d = Ul.bind(null, h, n, S),
|
|
439
|
+
}, S = {}, $ = fo(o), j = qn(o), F = $ || j, D = (x || po(o)) && De(o.value) && De(b) || gi(o) && o.value === "" || b === "" || Array.isArray(b) && !b.length, d = Ul.bind(null, h, n, S), R = (M, A, V, U = Yt.maxLength, oe = Yt.minLength) => {
|
|
440
440
|
const ye = M ? A : V;
|
|
441
441
|
S[h] = {
|
|
442
|
-
type: M ? U :
|
|
442
|
+
type: M ? U : oe,
|
|
443
443
|
message: ye,
|
|
444
444
|
ref: o,
|
|
445
|
-
...d(M ? U :
|
|
445
|
+
...d(M ? U : oe, ye)
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
448
|
if (a ? !Array.isArray(b) || !b.length : l && (!F && (D || ct(b)) || xt(b) && !b || j && !Ql(s).isValid || $ && !Zl(s).isValid)) {
|
|
@@ -459,18 +459,18 @@ var Hr = (e) => Ye(e) && !vi(e) ? e : {
|
|
|
459
459
|
let M, A;
|
|
460
460
|
const V = Hr(c), U = Hr(f);
|
|
461
461
|
if (!ct(b) && !isNaN(b)) {
|
|
462
|
-
const
|
|
463
|
-
ct(V.value) || (M =
|
|
462
|
+
const oe = o.valueAsNumber || b && +b;
|
|
463
|
+
ct(V.value) || (M = oe > V.value), ct(U.value) || (A = oe < U.value);
|
|
464
464
|
} else {
|
|
465
|
-
const
|
|
466
|
-
Kt(V.value) && b && (M = de ? ye(b) > ye(V.value) : Y ? b > V.value :
|
|
465
|
+
const oe = o.valueAsDate || new Date(b), ye = (N) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + N), de = o.type == "time", Y = o.type == "week";
|
|
466
|
+
Kt(V.value) && b && (M = de ? ye(b) > ye(V.value) : Y ? b > V.value : oe > new Date(V.value)), Kt(U.value) && b && (A = de ? ye(b) < ye(U.value) : Y ? b < U.value : oe < new Date(U.value));
|
|
467
467
|
}
|
|
468
|
-
if ((M || A) && (
|
|
468
|
+
if ((M || A) && (R(!!M, V.message, U.message, Yt.max, Yt.min), !n))
|
|
469
469
|
return k(S[h].message), S;
|
|
470
470
|
}
|
|
471
471
|
if ((p || m) && !D && (Kt(b) || a && Array.isArray(b))) {
|
|
472
472
|
const M = Hr(p), A = Hr(m), V = !ct(M.value) && b.length > +M.value, U = !ct(A.value) && b.length < +A.value;
|
|
473
|
-
if ((V || U) && (
|
|
473
|
+
if ((V || U) && (R(V, M.message, A.message), !n))
|
|
474
474
|
return k(S[h].message), S;
|
|
475
475
|
}
|
|
476
476
|
if (g && !D && Kt(b)) {
|
|
@@ -579,23 +579,23 @@ function ld(e = {}) {
|
|
|
579
579
|
validatingFields: r.validatingFields,
|
|
580
580
|
isValidating: !lt(r.validatingFields)
|
|
581
581
|
}));
|
|
582
|
-
}, v = (y, w = [], C, W,
|
|
582
|
+
}, v = (y, w = [], C, W, _ = !0, I = !0) => {
|
|
583
583
|
if (W && C && !t.disabled) {
|
|
584
584
|
if (o.action = !0, I && Array.isArray(X(n, y))) {
|
|
585
585
|
const G = C(X(n, y), W.argA, W.argB);
|
|
586
|
-
|
|
586
|
+
_ && Ce(n, y, G);
|
|
587
587
|
}
|
|
588
588
|
if (I && Array.isArray(X(r.errors, y))) {
|
|
589
589
|
const G = C(X(r.errors, y), W.argA, W.argB);
|
|
590
|
-
|
|
590
|
+
_ && Ce(r.errors, y, G), od(r.errors, y);
|
|
591
591
|
}
|
|
592
592
|
if ((m.touchedFields || f.touchedFields) && I && Array.isArray(X(r.touchedFields, y))) {
|
|
593
593
|
const G = C(X(r.touchedFields, y), W.argA, W.argB);
|
|
594
|
-
|
|
594
|
+
_ && Ce(r.touchedFields, y, G);
|
|
595
595
|
}
|
|
596
596
|
(m.dirtyFields || f.dirtyFields) && (r.dirtyFields = En(i, a)), c.state.next({
|
|
597
597
|
name: y,
|
|
598
|
-
isDirty:
|
|
598
|
+
isDirty: R(y, w),
|
|
599
599
|
dirtyFields: r.dirtyFields,
|
|
600
600
|
errors: r.errors,
|
|
601
601
|
isValid: r.isValid
|
|
@@ -612,19 +612,19 @@ function ld(e = {}) {
|
|
|
612
612
|
isValid: !1
|
|
613
613
|
});
|
|
614
614
|
}, k = (y, w, C, W) => {
|
|
615
|
-
const
|
|
616
|
-
if (
|
|
615
|
+
const _ = X(n, y);
|
|
616
|
+
if (_) {
|
|
617
617
|
const I = X(a, y, De(C) ? X(i, y) : C);
|
|
618
|
-
De(I) || W && W.defaultChecked || w ? Ce(a, y, w ? I : Qo(
|
|
618
|
+
De(I) || W && W.defaultChecked || w ? Ce(a, y, w ? I : Qo(_._f)) : V(y, I), o.mount && h();
|
|
619
619
|
}
|
|
620
|
-
}, S = (y, w, C, W,
|
|
620
|
+
}, S = (y, w, C, W, _) => {
|
|
621
621
|
let I = !1, G = !1;
|
|
622
622
|
const Z = {
|
|
623
623
|
name: y
|
|
624
624
|
};
|
|
625
625
|
if (!t.disabled) {
|
|
626
626
|
if (!C || W) {
|
|
627
|
-
(m.isDirty || f.isDirty) && (G = r.isDirty, r.isDirty = Z.isDirty =
|
|
627
|
+
(m.isDirty || f.isDirty) && (G = r.isDirty, r.isDirty = Z.isDirty = R(), I = G !== Z.isDirty);
|
|
628
628
|
const B = sr(X(i, y), w);
|
|
629
629
|
G = !!X(r.dirtyFields, y), B ? Ze(r.dirtyFields, y) : Ce(r.dirtyFields, y, !0), Z.dirtyFields = r.dirtyFields, I = I || (m.dirtyFields || f.dirtyFields) && G !== !B;
|
|
630
630
|
}
|
|
@@ -632,12 +632,12 @@ function ld(e = {}) {
|
|
|
632
632
|
const B = X(r.touchedFields, y);
|
|
633
633
|
B || (Ce(r.touchedFields, y, C), Z.touchedFields = r.touchedFields, I = I || (m.touchedFields || f.touchedFields) && B !== C);
|
|
634
634
|
}
|
|
635
|
-
I &&
|
|
635
|
+
I && _ && c.state.next(Z);
|
|
636
636
|
}
|
|
637
637
|
return I ? Z : {};
|
|
638
638
|
}, $ = (y, w, C, W) => {
|
|
639
|
-
const
|
|
640
|
-
if (t.delayError && C ? (l = E(() => b(y, C)), l(t.delayError)) : (clearTimeout(p), l = null, C ? Ce(r.errors, y, C) : Ze(r.errors, y)), (C ? !sr(
|
|
639
|
+
const _ = X(r.errors, y), I = (m.isValid || f.isValid) && xt(w) && r.isValid !== w;
|
|
640
|
+
if (t.delayError && C ? (l = E(() => b(y, C)), l(t.delayError)) : (clearTimeout(p), l = null, C ? Ce(r.errors, y, C) : Ze(r.errors, y)), (C ? !sr(_, C) : _) || !lt(W) || I) {
|
|
641
641
|
const G = {
|
|
642
642
|
...W,
|
|
643
643
|
...I && xt(w) ? { isValid: w } : {},
|
|
@@ -667,13 +667,13 @@ function ld(e = {}) {
|
|
|
667
667
|
valid: !0
|
|
668
668
|
}) => {
|
|
669
669
|
for (const W in y) {
|
|
670
|
-
const
|
|
671
|
-
if (
|
|
672
|
-
const { _f: I, ...G } =
|
|
670
|
+
const _ = y[W];
|
|
671
|
+
if (_) {
|
|
672
|
+
const { _f: I, ...G } = _;
|
|
673
673
|
if (I) {
|
|
674
|
-
const Z = s.array.has(I.name), B =
|
|
674
|
+
const Z = s.array.has(I.name), B = _._f && td(_._f);
|
|
675
675
|
B && m.validatingFields && x([W], !0);
|
|
676
|
-
const be = await Oa(
|
|
676
|
+
const be = await Oa(_, s.disabled, a, g, t.shouldUseNativeValidation && !w, Z);
|
|
677
677
|
if (B && m.validatingFields && x([W]), be[I.name] && (C.valid = !1, w))
|
|
678
678
|
break;
|
|
679
679
|
!w && (X(be, I.name) ? Z ? Xl(r.errors, be, I.name) : Ce(r.errors, I.name, be[I.name]) : Ze(r.errors, I.name));
|
|
@@ -688,37 +688,37 @@ function ld(e = {}) {
|
|
|
688
688
|
w && (w._f.refs ? w._f.refs.every((C) => !Xi(C)) : !Xi(w._f.ref)) && te(y);
|
|
689
689
|
}
|
|
690
690
|
s.unMount = /* @__PURE__ */ new Set();
|
|
691
|
-
},
|
|
691
|
+
}, R = (y, w) => !t.disabled && (y && w && Ce(a, y, w), !sr(N(), i)), M = (y, w, C) => ql(y, s, {
|
|
692
692
|
...o.mount ? a : De(w) ? i : Kt(y) ? { [y]: w } : w
|
|
693
693
|
}, C, w), A = (y) => zi(X(o.mount ? a : i, y, t.shouldUnregister ? X(i, y, []) : [])), V = (y, w, C = {}) => {
|
|
694
694
|
const W = X(n, y);
|
|
695
|
-
let
|
|
695
|
+
let _ = w;
|
|
696
696
|
if (W) {
|
|
697
697
|
const I = W._f;
|
|
698
|
-
I && (!I.disabled && Ce(a, y, Gl(w, I)),
|
|
699
|
-
(!G.defaultChecked || !G.disabled) && (Array.isArray(
|
|
700
|
-
}) : I.refs.forEach((G) => G.checked = G.value ===
|
|
698
|
+
I && (!I.disabled && Ce(a, y, Gl(w, I)), _ = gi(I.ref) && ct(w) ? "" : w, Hl(I.ref) ? [...I.ref.options].forEach((G) => G.selected = _.includes(G.value)) : I.refs ? qn(I.ref) ? I.refs.forEach((G) => {
|
|
699
|
+
(!G.defaultChecked || !G.disabled) && (Array.isArray(_) ? G.checked = !!_.find((Z) => Z === G.value) : G.checked = _ === G.value || !!_);
|
|
700
|
+
}) : I.refs.forEach((G) => G.checked = G.value === _) : po(I.ref) ? I.ref.value = "" : (I.ref.value = _, I.ref.type || c.state.next({
|
|
701
701
|
name: y,
|
|
702
702
|
values: ze(a)
|
|
703
703
|
})));
|
|
704
704
|
}
|
|
705
|
-
(C.shouldDirty || C.shouldTouch) && S(y,
|
|
705
|
+
(C.shouldDirty || C.shouldTouch) && S(y, _, C.shouldTouch, C.shouldDirty, !0), C.shouldValidate && Y(y);
|
|
706
706
|
}, U = (y, w, C) => {
|
|
707
707
|
for (const W in w) {
|
|
708
708
|
if (!w.hasOwnProperty(W))
|
|
709
709
|
return;
|
|
710
|
-
const
|
|
711
|
-
(s.array.has(y) || Ye(
|
|
710
|
+
const _ = w[W], I = y + "." + W, G = X(n, I);
|
|
711
|
+
(s.array.has(y) || Ye(_) || G && !G._f) && !Ar(_) ? U(I, _, C) : V(I, _, C);
|
|
712
712
|
}
|
|
713
|
-
},
|
|
714
|
-
const W = X(n, y),
|
|
715
|
-
Ce(a, y, I),
|
|
713
|
+
}, oe = (y, w, C = {}) => {
|
|
714
|
+
const W = X(n, y), _ = s.array.has(y), I = ze(w);
|
|
715
|
+
Ce(a, y, I), _ ? (c.array.next({
|
|
716
716
|
name: y,
|
|
717
717
|
values: ze(a)
|
|
718
718
|
}), (m.isDirty || m.dirtyFields || f.isDirty || f.dirtyFields) && C.shouldDirty && c.state.next({
|
|
719
719
|
name: y,
|
|
720
720
|
dirtyFields: En(i, a),
|
|
721
|
-
isDirty:
|
|
721
|
+
isDirty: R(y, I)
|
|
722
722
|
})) : W && !W._f && !ct(I) ? U(y, I, C) : V(y, I, C), Ta(y, s) && c.state.next({ ...r }), c.state.next({
|
|
723
723
|
name: o.mount ? y : void 0,
|
|
724
724
|
values: ze(a)
|
|
@@ -727,13 +727,13 @@ function ld(e = {}) {
|
|
|
727
727
|
o.mount = !0;
|
|
728
728
|
const w = y.target;
|
|
729
729
|
let C = w.name, W = !0;
|
|
730
|
-
const
|
|
730
|
+
const _ = X(n, C), I = (B) => {
|
|
731
731
|
W = Number.isNaN(B) || Ar(B) && isNaN(B.getTime()) || sr(B, X(a, C, B));
|
|
732
732
|
}, G = en(t.mode), Z = en(t.reValidateMode);
|
|
733
|
-
if (
|
|
733
|
+
if (_) {
|
|
734
734
|
let B, be;
|
|
735
|
-
const Ae = w.type ? Qo(
|
|
736
|
-
Ce(a, C, Ae), Fe ? (
|
|
735
|
+
const Ae = w.type ? Qo(_._f) : Vl(y), Fe = y.type === hi.BLUR || y.type === hi.FOCUS_OUT, Be = !rd(_._f) && !t.resolver && !X(r.errors, C) && !_._f.deps || ad(Fe, X(r.touchedFields, C), r.isSubmitted, Z, G), He = Ta(C, s, Fe);
|
|
736
|
+
Ce(a, C, Ae), Fe ? (_._f.onBlur && _._f.onBlur(y), l && l(0)) : _._f.onChange && _._f.onChange(y);
|
|
737
737
|
const it = S(C, Ae, Fe), Vt = !lt(it) || He;
|
|
738
738
|
if (!Fe && c.state.next({
|
|
739
739
|
name: C,
|
|
@@ -748,19 +748,19 @@ function ld(e = {}) {
|
|
|
748
748
|
B = vt.error, C = vt.name, be = lt(at);
|
|
749
749
|
}
|
|
750
750
|
} else
|
|
751
|
-
x([C], !0), B = (await Oa(
|
|
752
|
-
W && (
|
|
751
|
+
x([C], !0), B = (await Oa(_, s.disabled, a, g, t.shouldUseNativeValidation))[C], x([C]), I(Ae), W && (B ? be = !1 : (m.isValid || f.isValid) && (be = await D(n, !0)));
|
|
752
|
+
W && (_._f.deps && Y(_._f.deps), $(C, be, B, it));
|
|
753
753
|
}
|
|
754
754
|
}, de = (y, w) => {
|
|
755
755
|
if (X(r.errors, w) && y.focus)
|
|
756
756
|
return y.focus(), 1;
|
|
757
757
|
}, Y = async (y, w = {}) => {
|
|
758
758
|
let C, W;
|
|
759
|
-
const
|
|
759
|
+
const _ = gt(y);
|
|
760
760
|
if (t.resolver) {
|
|
761
|
-
const I = await F(De(y) ? y :
|
|
762
|
-
C = lt(I), W = y ? !
|
|
763
|
-
} else y ? (W = (await Promise.all(
|
|
761
|
+
const I = await F(De(y) ? y : _);
|
|
762
|
+
C = lt(I), W = y ? !_.some((G) => X(I, G)) : C;
|
|
763
|
+
} else y ? (W = (await Promise.all(_.map(async (I) => {
|
|
764
764
|
const G = X(n, I);
|
|
765
765
|
return await D(G && G._f ? { [I]: G } : G);
|
|
766
766
|
}))).every(Boolean), !(!W && !r.isValid) && h()) : W = C = await D(n);
|
|
@@ -768,7 +768,7 @@ function ld(e = {}) {
|
|
|
768
768
|
...!Kt(y) || (m.isValid || f.isValid) && C !== r.isValid ? {} : { name: y },
|
|
769
769
|
...t.resolver || !y ? { isValid: C } : {},
|
|
770
770
|
errors: r.errors
|
|
771
|
-
}), w.shouldFocus && !W && an(n, de, y ?
|
|
771
|
+
}), w.shouldFocus && !W && an(n, de, y ? _ : s.mount), W;
|
|
772
772
|
}, N = (y) => {
|
|
773
773
|
const w = {
|
|
774
774
|
...o.mount ? a : i
|
|
@@ -785,7 +785,7 @@ function ld(e = {}) {
|
|
|
785
785
|
errors: y ? r.errors : {}
|
|
786
786
|
});
|
|
787
787
|
}, he = (y, w, C) => {
|
|
788
|
-
const W = (X(n, y, { _f: {} })._f || {}).ref,
|
|
788
|
+
const W = (X(n, y, { _f: {} })._f || {}).ref, _ = X(r.errors, y) || {}, { ref: I, message: G, type: Z, ...B } = _;
|
|
789
789
|
Ce(r.errors, y, {
|
|
790
790
|
...B,
|
|
791
791
|
...w,
|
|
@@ -818,9 +818,9 @@ function ld(e = {}) {
|
|
|
818
818
|
values: ze(a)
|
|
819
819
|
}), c.state.next({
|
|
820
820
|
...r,
|
|
821
|
-
...w.keepDirty ? { isDirty:
|
|
821
|
+
...w.keepDirty ? { isDirty: R() } : {}
|
|
822
822
|
}), !w.keepIsValid && h();
|
|
823
|
-
},
|
|
823
|
+
}, ae = ({ disabled: y, name: w }) => {
|
|
824
824
|
(xt(y) && o.mount || y || s.disabled.has(w)) && (y ? s.disabled.add(w) : s.disabled.delete(w));
|
|
825
825
|
}, le = (y, w = {}) => {
|
|
826
826
|
let C = X(n, y);
|
|
@@ -833,7 +833,7 @@ function ld(e = {}) {
|
|
|
833
833
|
mount: !0,
|
|
834
834
|
...w
|
|
835
835
|
}
|
|
836
|
-
}), s.mount.add(y), C ?
|
|
836
|
+
}), s.mount.add(y), C ? ae({
|
|
837
837
|
disabled: xt(w.disabled) ? w.disabled : t.disabled,
|
|
838
838
|
name: y
|
|
839
839
|
}) : k(y, !0, w.value), {
|
|
@@ -849,10 +849,10 @@ function ld(e = {}) {
|
|
|
849
849
|
name: y,
|
|
850
850
|
onChange: ye,
|
|
851
851
|
onBlur: ye,
|
|
852
|
-
ref: (
|
|
853
|
-
if (
|
|
852
|
+
ref: (_) => {
|
|
853
|
+
if (_) {
|
|
854
854
|
le(y, w), C = X(n, y);
|
|
855
|
-
const I = De(
|
|
855
|
+
const I = De(_.value) && _.querySelectorAll && _.querySelectorAll("input,select,textarea")[0] || _, G = Zu(I), Z = C._f.refs || [];
|
|
856
856
|
if (G ? Z.find((B) => B === I) : I === C._f.ref)
|
|
857
857
|
return;
|
|
858
858
|
Ce(n, y, {
|
|
@@ -875,30 +875,30 @@ function ld(e = {}) {
|
|
|
875
875
|
}, ce = () => t.shouldFocusError && an(n, de, s.mount), Ee = (y) => {
|
|
876
876
|
xt(y) && (c.state.next({ disabled: y }), an(n, (w, C) => {
|
|
877
877
|
const W = X(n, C);
|
|
878
|
-
W && (w.disabled = W._f.disabled || y, Array.isArray(W._f.refs) && W._f.refs.forEach((
|
|
879
|
-
|
|
878
|
+
W && (w.disabled = W._f.disabled || y, Array.isArray(W._f.refs) && W._f.refs.forEach((_) => {
|
|
879
|
+
_.disabled = W._f.disabled || y;
|
|
880
880
|
}));
|
|
881
881
|
}, 0, !1));
|
|
882
882
|
}, Q = (y, w) => async (C) => {
|
|
883
883
|
let W;
|
|
884
884
|
C && (C.preventDefault && C.preventDefault(), C.persist && C.persist());
|
|
885
|
-
let
|
|
885
|
+
let _ = ze(a);
|
|
886
886
|
if (c.state.next({
|
|
887
887
|
isSubmitting: !0
|
|
888
888
|
}), t.resolver) {
|
|
889
889
|
const { errors: I, values: G } = await j();
|
|
890
|
-
r.errors = I,
|
|
890
|
+
r.errors = I, _ = G;
|
|
891
891
|
} else
|
|
892
892
|
await D(n);
|
|
893
893
|
if (s.disabled.size)
|
|
894
894
|
for (const I of s.disabled)
|
|
895
|
-
Ce(
|
|
895
|
+
Ce(_, I, void 0);
|
|
896
896
|
if (Ze(r.errors, "root"), lt(r.errors)) {
|
|
897
897
|
c.state.next({
|
|
898
898
|
errors: {}
|
|
899
899
|
});
|
|
900
900
|
try {
|
|
901
|
-
await y(
|
|
901
|
+
await y(_, C);
|
|
902
902
|
} catch (I) {
|
|
903
903
|
W = I;
|
|
904
904
|
}
|
|
@@ -913,9 +913,9 @@ function ld(e = {}) {
|
|
|
913
913
|
}), W)
|
|
914
914
|
throw W;
|
|
915
915
|
}, je = (y, w = {}) => {
|
|
916
|
-
X(n, y) && (De(w.defaultValue) ?
|
|
916
|
+
X(n, y) && (De(w.defaultValue) ? oe(y, ze(X(i, y))) : (oe(y, w.defaultValue), Ce(i, y, ze(w.defaultValue))), w.keepTouched || Ze(r.touchedFields, y), w.keepDirty || (Ze(r.dirtyFields, y), r.isDirty = w.defaultValue ? R(y, ze(X(i, y))) : R()), w.keepError || (Ze(r.errors, y), m.isValid && h()), c.state.next({ ...r }));
|
|
917
917
|
}, Ge = (y, w = {}) => {
|
|
918
|
-
const C = y ? ze(y) : i, W = ze(C),
|
|
918
|
+
const C = y ? ze(y) : i, W = ze(C), _ = lt(y), I = _ ? i : W;
|
|
919
919
|
if (w.keepDefaultValues || (i = C), !w.keepValues) {
|
|
920
920
|
if (w.keepDirtyValues) {
|
|
921
921
|
const G = /* @__PURE__ */ new Set([
|
|
@@ -923,7 +923,7 @@ function ld(e = {}) {
|
|
|
923
923
|
...Object.keys(En(i, a))
|
|
924
924
|
]);
|
|
925
925
|
for (const Z of Array.from(G))
|
|
926
|
-
X(r.dirtyFields, Z) ? Ce(I, Z, X(a, Z)) :
|
|
926
|
+
X(r.dirtyFields, Z) ? Ce(I, Z, X(a, Z)) : oe(Z, X(I, Z));
|
|
927
927
|
} else {
|
|
928
928
|
if (co && De(y))
|
|
929
929
|
for (const G of s.mount) {
|
|
@@ -940,7 +940,7 @@ function ld(e = {}) {
|
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
for (const G of s.mount)
|
|
943
|
-
|
|
943
|
+
oe(G, X(I, G));
|
|
944
944
|
}
|
|
945
945
|
a = ze(I), c.array.next({
|
|
946
946
|
values: { ...I }
|
|
@@ -958,9 +958,9 @@ function ld(e = {}) {
|
|
|
958
958
|
focus: ""
|
|
959
959
|
}, o.mount = !m.isValid || !!w.keepIsValid || !!w.keepDirtyValues, o.watch = !!t.shouldUnregister, c.state.next({
|
|
960
960
|
submitCount: w.keepSubmitCount ? r.submitCount : 0,
|
|
961
|
-
isDirty:
|
|
961
|
+
isDirty: _ ? !1 : w.keepDirty ? r.isDirty : !!(w.keepDefaultValues && !sr(y, i)),
|
|
962
962
|
isSubmitted: w.keepIsSubmitted ? r.isSubmitted : !1,
|
|
963
|
-
dirtyFields:
|
|
963
|
+
dirtyFields: _ ? {} : w.keepDirtyValues ? w.keepDefaultValues && a ? En(i, a) : r.dirtyFields : w.keepDefaultValues && y ? En(i, y) : w.keepDirty ? r.dirtyFields : {},
|
|
964
964
|
touchedFields: w.keepTouched ? r.touchedFields : {},
|
|
965
965
|
errors: w.keepErrors ? r.errors : {},
|
|
966
966
|
isSubmitSuccessful: w.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
|
|
@@ -969,8 +969,8 @@ function ld(e = {}) {
|
|
|
969
969
|
}, tt = (y, w) => Ge(Mt(y) ? y(a) : y, w), J = (y, w = {}) => {
|
|
970
970
|
const C = X(n, y), W = C && C._f;
|
|
971
971
|
if (W) {
|
|
972
|
-
const
|
|
973
|
-
|
|
972
|
+
const _ = W.refs ? W.refs[0] : W.ref;
|
|
973
|
+
_.focus && (_.focus(), w.shouldSelect && Mt(_.select) && _.select());
|
|
974
974
|
}
|
|
975
975
|
}, ue = (y) => {
|
|
976
976
|
r = {
|
|
@@ -988,10 +988,10 @@ function ld(e = {}) {
|
|
|
988
988
|
_runSchema: j,
|
|
989
989
|
_focusError: ce,
|
|
990
990
|
_getWatch: M,
|
|
991
|
-
_getDirty:
|
|
991
|
+
_getDirty: R,
|
|
992
992
|
_setValid: h,
|
|
993
993
|
_setFieldArray: v,
|
|
994
|
-
_setDisabledField:
|
|
994
|
+
_setDisabledField: ae,
|
|
995
995
|
_setErrors: P,
|
|
996
996
|
_getFieldArray: A,
|
|
997
997
|
_reset: Ge,
|
|
@@ -1043,7 +1043,7 @@ function ld(e = {}) {
|
|
|
1043
1043
|
register: le,
|
|
1044
1044
|
handleSubmit: Q,
|
|
1045
1045
|
watch: pe,
|
|
1046
|
-
setValue:
|
|
1046
|
+
setValue: oe,
|
|
1047
1047
|
getValues: N,
|
|
1048
1048
|
reset: tt,
|
|
1049
1049
|
resetField: je,
|
|
@@ -1139,7 +1139,7 @@ function ud(e) {
|
|
|
1139
1139
|
}, !1);
|
|
1140
1140
|
}, k = ($, j) => {
|
|
1141
1141
|
const F = ze(j), D = Jo(r._getFieldArray(n), $, F);
|
|
1142
|
-
p.current = [...D].map((d,
|
|
1142
|
+
p.current = [...D].map((d, R) => !d || R === $ ? nr() : p.current[R]), g(D), l([...D]), r._setFieldArray(n, D, Jo, {
|
|
1143
1143
|
argA: $,
|
|
1144
1144
|
argB: F
|
|
1145
1145
|
}, !0, !1);
|
|
@@ -1475,7 +1475,7 @@ var _r, lr, sn, Sl, bd = (Sl = class extends Wn {
|
|
|
1475
1475
|
ve(this, _r);
|
|
1476
1476
|
ve(this, lr);
|
|
1477
1477
|
ve(this, sn);
|
|
1478
|
-
|
|
1478
|
+
ne(this, sn, (t) => {
|
|
1479
1479
|
if (!Nr && window.addEventListener) {
|
|
1480
1480
|
const r = () => t();
|
|
1481
1481
|
return window.addEventListener("visibilitychange", r, !1), () => {
|
|
@@ -1489,16 +1489,16 @@ var _r, lr, sn, Sl, bd = (Sl = class extends Wn {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
onUnsubscribe() {
|
|
1491
1491
|
var t;
|
|
1492
|
-
this.hasListeners() || ((t = O(this, lr)) == null || t.call(this),
|
|
1492
|
+
this.hasListeners() || ((t = O(this, lr)) == null || t.call(this), ne(this, lr, void 0));
|
|
1493
1493
|
}
|
|
1494
1494
|
setEventListener(t) {
|
|
1495
1495
|
var r;
|
|
1496
|
-
|
|
1496
|
+
ne(this, sn, t), (r = O(this, lr)) == null || r.call(this), ne(this, lr, t((n) => {
|
|
1497
1497
|
typeof n == "boolean" ? this.setFocused(n) : this.onFocus();
|
|
1498
1498
|
}));
|
|
1499
1499
|
}
|
|
1500
1500
|
setFocused(t) {
|
|
1501
|
-
O(this, _r) !== t && (
|
|
1501
|
+
O(this, _r) !== t && (ne(this, _r, t), this.onFocus());
|
|
1502
1502
|
}
|
|
1503
1503
|
onFocus() {
|
|
1504
1504
|
const t = this.isFocused();
|
|
@@ -1516,7 +1516,7 @@ var _r, lr, sn, Sl, bd = (Sl = class extends Wn {
|
|
|
1516
1516
|
ve(this, ln, !0);
|
|
1517
1517
|
ve(this, cr);
|
|
1518
1518
|
ve(this, cn);
|
|
1519
|
-
|
|
1519
|
+
ne(this, cn, (t) => {
|
|
1520
1520
|
if (!Nr && window.addEventListener) {
|
|
1521
1521
|
const r = () => t(!0), n = () => t(!1);
|
|
1522
1522
|
return window.addEventListener("online", r, !1), window.addEventListener("offline", n, !1), () => {
|
|
@@ -1530,14 +1530,14 @@ var _r, lr, sn, Sl, bd = (Sl = class extends Wn {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
onUnsubscribe() {
|
|
1532
1532
|
var t;
|
|
1533
|
-
this.hasListeners() || ((t = O(this, cr)) == null || t.call(this),
|
|
1533
|
+
this.hasListeners() || ((t = O(this, cr)) == null || t.call(this), ne(this, cr, void 0));
|
|
1534
1534
|
}
|
|
1535
1535
|
setEventListener(t) {
|
|
1536
1536
|
var r;
|
|
1537
|
-
|
|
1537
|
+
ne(this, cn, t), (r = O(this, cr)) == null || r.call(this), ne(this, cr, t(this.setOnline.bind(this)));
|
|
1538
1538
|
}
|
|
1539
1539
|
setOnline(t) {
|
|
1540
|
-
O(this, ln) !== t && (
|
|
1540
|
+
O(this, ln) !== t && (ne(this, ln, t), this.listeners.forEach((n) => {
|
|
1541
1541
|
n(t);
|
|
1542
1542
|
}));
|
|
1543
1543
|
}
|
|
@@ -1706,7 +1706,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1706
1706
|
this.clearGcTimeout();
|
|
1707
1707
|
}
|
|
1708
1708
|
scheduleGc() {
|
|
1709
|
-
this.clearGcTimeout(), Aa(this.gcTime) &&
|
|
1709
|
+
this.clearGcTimeout(), Aa(this.gcTime) && ne(this, Rr, setTimeout(() => {
|
|
1710
1710
|
this.optionalRemove();
|
|
1711
1711
|
}, this.gcTime));
|
|
1712
1712
|
}
|
|
@@ -1717,7 +1717,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1717
1717
|
);
|
|
1718
1718
|
}
|
|
1719
1719
|
clearGcTimeout() {
|
|
1720
|
-
O(this, Rr) && (clearTimeout(O(this, Rr)),
|
|
1720
|
+
O(this, Rr) && (clearTimeout(O(this, Rr)), ne(this, Rr, void 0));
|
|
1721
1721
|
}
|
|
1722
1722
|
}, Rr = new WeakMap(), El), un, $r, kt, Pr, rt, zn, Dr, Dt, Jt, kl, kd = (kl = class extends ac {
|
|
1723
1723
|
constructor(t) {
|
|
@@ -1730,7 +1730,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1730
1730
|
ve(this, rt);
|
|
1731
1731
|
ve(this, zn);
|
|
1732
1732
|
ve(this, Dr);
|
|
1733
|
-
|
|
1733
|
+
ne(this, Dr, !1), ne(this, zn, t.defaultOptions), this.setOptions(t.options), this.observers = [], ne(this, Pr, t.client), ne(this, kt, O(this, Pr).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, ne(this, un, Td(this.options)), this.state = t.state ?? O(this, un), this.scheduleGc();
|
|
1734
1734
|
}
|
|
1735
1735
|
get meta() {
|
|
1736
1736
|
return this.options.meta;
|
|
@@ -1829,7 +1829,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1829
1829
|
const n = new AbortController(), i = (c) => {
|
|
1830
1830
|
Object.defineProperty(c, "signal", {
|
|
1831
1831
|
enumerable: !0,
|
|
1832
|
-
get: () => (
|
|
1832
|
+
get: () => (ne(this, Dr, !0), n.signal)
|
|
1833
1833
|
});
|
|
1834
1834
|
}, a = () => {
|
|
1835
1835
|
const c = tc(this.options, r), E = (() => {
|
|
@@ -1840,7 +1840,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1840
1840
|
};
|
|
1841
1841
|
return i(h), h;
|
|
1842
1842
|
})();
|
|
1843
|
-
return
|
|
1843
|
+
return ne(this, Dr, !1), this.options.persister ? this.options.persister(
|
|
1844
1844
|
c,
|
|
1845
1845
|
E,
|
|
1846
1846
|
this
|
|
@@ -1856,7 +1856,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1856
1856
|
};
|
|
1857
1857
|
return i(c), c;
|
|
1858
1858
|
})();
|
|
1859
|
-
(p = this.options.behavior) == null || p.onFetch(s, this),
|
|
1859
|
+
(p = this.options.behavior) == null || p.onFetch(s, this), ne(this, $r, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((m = s.fetchOptions) == null ? void 0 : m.meta)) && we(this, Dt, Jt).call(this, { type: "fetch", meta: (f = s.fetchOptions) == null ? void 0 : f.meta });
|
|
1860
1860
|
const l = (c) => {
|
|
1861
1861
|
var g, E, h, x;
|
|
1862
1862
|
sa(c) && c.silent || we(this, Dt, Jt).call(this, {
|
|
@@ -1873,7 +1873,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1873
1873
|
this
|
|
1874
1874
|
)), this.scheduleGc();
|
|
1875
1875
|
};
|
|
1876
|
-
return
|
|
1876
|
+
return ne(this, rt, ic({
|
|
1877
1877
|
initialPromise: r == null ? void 0 : r.initialPromise,
|
|
1878
1878
|
fn: s.fetchFn,
|
|
1879
1879
|
abort: n.abort.bind(n),
|
|
@@ -1940,7 +1940,7 @@ var et = Ed(), Rr, El, ac = (El = class {
|
|
|
1940
1940
|
fetchMeta: t.meta ?? null
|
|
1941
1941
|
};
|
|
1942
1942
|
case "success":
|
|
1943
|
-
return
|
|
1943
|
+
return ne(this, $r, void 0), {
|
|
1944
1944
|
...n,
|
|
1945
1945
|
data: t.data,
|
|
1946
1946
|
dataUpdateCount: n.dataUpdateCount + 1,
|
|
@@ -2016,7 +2016,7 @@ var qt, Tl, Od = (Tl = class extends Wn {
|
|
|
2016
2016
|
constructor(t = {}) {
|
|
2017
2017
|
super();
|
|
2018
2018
|
ve(this, qt);
|
|
2019
|
-
this.config = t,
|
|
2019
|
+
this.config = t, ne(this, qt, /* @__PURE__ */ new Map());
|
|
2020
2020
|
}
|
|
2021
2021
|
build(t, r, n) {
|
|
2022
2022
|
const i = r.queryKey, a = r.queryHash ?? mo(i, r);
|
|
@@ -2091,7 +2091,7 @@ var qt, Tl, Od = (Tl = class extends Wn {
|
|
|
2091
2091
|
ve(this, Wt);
|
|
2092
2092
|
ve(this, ot);
|
|
2093
2093
|
ve(this, Ir);
|
|
2094
|
-
this.mutationId = t.mutationId,
|
|
2094
|
+
this.mutationId = t.mutationId, ne(this, ot, t.mutationCache), ne(this, Wt, []), this.state = t.state || Fd(), this.setOptions(t.options), this.scheduleGc();
|
|
2095
2095
|
}
|
|
2096
2096
|
setOptions(t) {
|
|
2097
2097
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -2107,7 +2107,7 @@ var qt, Tl, Od = (Tl = class extends Wn {
|
|
|
2107
2107
|
}));
|
|
2108
2108
|
}
|
|
2109
2109
|
removeObserver(t) {
|
|
2110
|
-
|
|
2110
|
+
ne(this, Wt, O(this, Wt).filter((r) => r !== t)), this.scheduleGc(), O(this, ot).notify({
|
|
2111
2111
|
type: "observerRemoved",
|
|
2112
2112
|
mutation: this,
|
|
2113
2113
|
observer: t
|
|
@@ -2126,7 +2126,7 @@ var qt, Tl, Od = (Tl = class extends Wn {
|
|
|
2126
2126
|
const r = () => {
|
|
2127
2127
|
we(this, Ut, ar).call(this, { type: "continue" });
|
|
2128
2128
|
};
|
|
2129
|
-
|
|
2129
|
+
ne(this, Ir, ic({
|
|
2130
2130
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
2131
2131
|
onFail: (D, d) => {
|
|
2132
2132
|
we(this, Ut, ar).call(this, { type: "failed", failureCount: D, error: d });
|
|
@@ -2290,7 +2290,7 @@ var er, It, Vn, Al, _d = (Al = class extends Wn {
|
|
|
2290
2290
|
ve(this, er);
|
|
2291
2291
|
ve(this, It);
|
|
2292
2292
|
ve(this, Vn);
|
|
2293
|
-
this.config = t,
|
|
2293
|
+
this.config = t, ne(this, er, /* @__PURE__ */ new Set()), ne(this, It, /* @__PURE__ */ new Map()), ne(this, Vn, 0);
|
|
2294
2294
|
}
|
|
2295
2295
|
build(t, r, n) {
|
|
2296
2296
|
const i = new Ad({
|
|
@@ -2403,14 +2403,14 @@ function os(e) {
|
|
|
2403
2403
|
if (k == null && P.pages.length)
|
|
2404
2404
|
return Promise.resolve(P);
|
|
2405
2405
|
const j = (() => {
|
|
2406
|
-
const
|
|
2406
|
+
const R = {
|
|
2407
2407
|
client: t.client,
|
|
2408
2408
|
queryKey: t.queryKey,
|
|
2409
2409
|
pageParam: k,
|
|
2410
2410
|
direction: S ? "backward" : "forward",
|
|
2411
2411
|
meta: t.options.meta
|
|
2412
2412
|
};
|
|
2413
|
-
return x(
|
|
2413
|
+
return x(R), R;
|
|
2414
2414
|
})(), F = await v(j), { maxPages: D } = t.options, d = S ? vd : yd;
|
|
2415
2415
|
return {
|
|
2416
2416
|
pages: d(P.pages, F, D),
|
|
@@ -2474,18 +2474,18 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2474
2474
|
ve(this, pr);
|
|
2475
2475
|
ve(this, fn);
|
|
2476
2476
|
ve(this, mn);
|
|
2477
|
-
|
|
2477
|
+
ne(this, Ue, e.queryCache || new Od()), ne(this, ur, e.mutationCache || new _d()), ne(this, dr, e.defaultOptions || {}), ne(this, dn, /* @__PURE__ */ new Map()), ne(this, pn, /* @__PURE__ */ new Map()), ne(this, pr, 0);
|
|
2478
2478
|
}
|
|
2479
2479
|
mount() {
|
|
2480
|
-
Qn(this, pr)._++, O(this, pr) === 1 && (
|
|
2480
|
+
Qn(this, pr)._++, O(this, pr) === 1 && (ne(this, fn, ho.subscribe(async (e) => {
|
|
2481
2481
|
e && (await this.resumePausedMutations(), O(this, Ue).onFocus());
|
|
2482
|
-
})),
|
|
2482
|
+
})), ne(this, mn, bi.subscribe(async (e) => {
|
|
2483
2483
|
e && (await this.resumePausedMutations(), O(this, Ue).onOnline());
|
|
2484
2484
|
})));
|
|
2485
2485
|
}
|
|
2486
2486
|
unmount() {
|
|
2487
2487
|
var e, t;
|
|
2488
|
-
Qn(this, pr)._--, O(this, pr) === 0 && ((e = O(this, fn)) == null || e.call(this),
|
|
2488
|
+
Qn(this, pr)._--, O(this, pr) === 0 && ((e = O(this, fn)) == null || e.call(this), ne(this, fn, void 0), (t = O(this, mn)) == null || t.call(this), ne(this, mn, void 0));
|
|
2489
2489
|
}
|
|
2490
2490
|
isFetching(e) {
|
|
2491
2491
|
return O(this, Ue).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -2619,7 +2619,7 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2619
2619
|
return O(this, dr);
|
|
2620
2620
|
}
|
|
2621
2621
|
setDefaultOptions(e) {
|
|
2622
|
-
|
|
2622
|
+
ne(this, dr, e);
|
|
2623
2623
|
}
|
|
2624
2624
|
setQueryDefaults(e, t) {
|
|
2625
2625
|
O(this, dn).set(Dn(e), {
|
|
@@ -2691,7 +2691,7 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2691
2691
|
ve(this, zr);
|
|
2692
2692
|
ve(this, hr);
|
|
2693
2693
|
ve(this, vn, /* @__PURE__ */ new Set());
|
|
2694
|
-
this.options = r,
|
|
2694
|
+
this.options = r, ne(this, pt, t), ne(this, mr, null), ne(this, fr, Pa()), this.options.experimental_prefetchInRender || O(this, fr).reject(
|
|
2695
2695
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
2696
2696
|
), this.bindMethods(), this.setOptions(r);
|
|
2697
2697
|
}
|
|
@@ -2744,7 +2744,7 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
getOptimisticResult(t) {
|
|
2746
2746
|
const r = O(this, pt).getQueryCache().build(O(this, pt), t), n = this.createResult(r, t);
|
|
2747
|
-
return Id(this, n) && (
|
|
2747
|
+
return Id(this, n) && (ne(this, st, n), ne(this, hn, this.options), ne(this, Mr, O(this, Se).state)), n;
|
|
2748
2748
|
}
|
|
2749
2749
|
getCurrentResult() {
|
|
2750
2750
|
return O(this, st);
|
|
@@ -2780,8 +2780,8 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2780
2780
|
const n = O(this, Se), i = this.options, a = O(this, st), o = O(this, Mr), s = O(this, hn), p = t !== n ? t.state : O(this, Nn), { state: m } = t;
|
|
2781
2781
|
let f = { ...m }, c = !1, g;
|
|
2782
2782
|
if (r._optimisticResults) {
|
|
2783
|
-
const d = this.hasListeners(),
|
|
2784
|
-
(
|
|
2783
|
+
const d = this.hasListeners(), R = !d && ls(t, r), M = d && cs(t, n, r, i);
|
|
2784
|
+
(R || M) && (f = {
|
|
2785
2785
|
...f,
|
|
2786
2786
|
...oc(m.data, t.options)
|
|
2787
2787
|
}), r._optimisticResults === "isRestoring" && (f.fetchStatus = "idle");
|
|
@@ -2805,9 +2805,9 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2805
2805
|
g = O(this, gn);
|
|
2806
2806
|
else
|
|
2807
2807
|
try {
|
|
2808
|
-
|
|
2808
|
+
ne(this, Ln, r.select), g = r.select(g), g = $a(a == null ? void 0 : a.data, g, r), ne(this, gn, g), ne(this, mr, null);
|
|
2809
2809
|
} catch (d) {
|
|
2810
|
-
|
|
2810
|
+
ne(this, mr, d);
|
|
2811
2811
|
}
|
|
2812
2812
|
O(this, mr) && (E = O(this, mr), g = O(this, gn), h = Date.now(), x = "error");
|
|
2813
2813
|
const b = f.fetchStatus === "fetching", P = x === "pending", k = x === "error", S = P && b, $ = g !== void 0, F = {
|
|
@@ -2841,8 +2841,8 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2841
2841
|
if (this.options.experimental_prefetchInRender) {
|
|
2842
2842
|
const d = (A) => {
|
|
2843
2843
|
F.status === "error" ? A.reject(F.error) : F.data !== void 0 && A.resolve(F.data);
|
|
2844
|
-
},
|
|
2845
|
-
const A =
|
|
2844
|
+
}, R = () => {
|
|
2845
|
+
const A = ne(this, fr, F.promise = Pa());
|
|
2846
2846
|
d(A);
|
|
2847
2847
|
}, M = O(this, fr);
|
|
2848
2848
|
switch (M.status) {
|
|
@@ -2850,10 +2850,10 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2850
2850
|
t.queryHash === n.queryHash && d(M);
|
|
2851
2851
|
break;
|
|
2852
2852
|
case "fulfilled":
|
|
2853
|
-
(F.status === "error" || F.data !== M.value) &&
|
|
2853
|
+
(F.status === "error" || F.data !== M.value) && R();
|
|
2854
2854
|
break;
|
|
2855
2855
|
case "rejected":
|
|
2856
|
-
(F.status !== "error" || F.error !== M.reason) &&
|
|
2856
|
+
(F.status !== "error" || F.error !== M.reason) && R();
|
|
2857
2857
|
break;
|
|
2858
2858
|
}
|
|
2859
2859
|
}
|
|
@@ -2861,9 +2861,9 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2861
2861
|
}
|
|
2862
2862
|
updateResult() {
|
|
2863
2863
|
const t = O(this, st), r = this.createResult(O(this, Se), this.options);
|
|
2864
|
-
if (
|
|
2864
|
+
if (ne(this, Mr, O(this, Se).state), ne(this, hn, this.options), O(this, Mr).data !== void 0 && ne(this, yn, O(this, Se)), _a(r, t))
|
|
2865
2865
|
return;
|
|
2866
|
-
|
|
2866
|
+
ne(this, st, r);
|
|
2867
2867
|
const n = () => {
|
|
2868
2868
|
if (!t)
|
|
2869
2869
|
return !0;
|
|
@@ -2899,27 +2899,27 @@ var Ue, ur, dr, dn, pn, pr, fn, mn, Fl, $d = (Fl = class {
|
|
|
2899
2899
|
if (Nr || O(this, st).isStale || !Aa(t))
|
|
2900
2900
|
return;
|
|
2901
2901
|
const n = ec(O(this, st).dataUpdatedAt, t) + 1;
|
|
2902
|
-
|
|
2902
|
+
ne(this, jr, setTimeout(() => {
|
|
2903
2903
|
O(this, st).isStale || this.updateResult();
|
|
2904
2904
|
}, n));
|
|
2905
2905
|
}, Ia = function() {
|
|
2906
2906
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(O(this, Se)) : this.options.refetchInterval) ?? !1;
|
|
2907
2907
|
}, Ma = function(t) {
|
|
2908
|
-
we(this, Oe, Va).call(this),
|
|
2908
|
+
we(this, Oe, Va).call(this), ne(this, hr, t), !(Nr || Tt(this.options.enabled, O(this, Se)) === !1 || !Aa(O(this, hr)) || O(this, hr) === 0) && ne(this, zr, setInterval(() => {
|
|
2909
2909
|
(this.options.refetchIntervalInBackground || ho.isFocused()) && we(this, Oe, On).call(this);
|
|
2910
2910
|
}, O(this, hr)));
|
|
2911
2911
|
}, ja = function() {
|
|
2912
2912
|
we(this, Oe, Da).call(this), we(this, Oe, Ma).call(this, we(this, Oe, Ia).call(this));
|
|
2913
2913
|
}, za = function() {
|
|
2914
|
-
O(this, jr) && (clearTimeout(O(this, jr)),
|
|
2914
|
+
O(this, jr) && (clearTimeout(O(this, jr)), ne(this, jr, void 0));
|
|
2915
2915
|
}, Va = function() {
|
|
2916
|
-
O(this, zr) && (clearInterval(O(this, zr)),
|
|
2916
|
+
O(this, zr) && (clearInterval(O(this, zr)), ne(this, zr, void 0));
|
|
2917
2917
|
}, Na = function() {
|
|
2918
2918
|
const t = O(this, pt).getQueryCache().build(O(this, pt), this.options);
|
|
2919
2919
|
if (t === O(this, Se))
|
|
2920
2920
|
return;
|
|
2921
2921
|
const r = O(this, Se);
|
|
2922
|
-
|
|
2922
|
+
ne(this, Se, t), ne(this, Nn, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
|
|
2923
2923
|
}, sc = function(t) {
|
|
2924
2924
|
et.batch(() => {
|
|
2925
2925
|
t.listeners && this.listeners.forEach((r) => {
|
|
@@ -2952,19 +2952,19 @@ function go(e, t) {
|
|
|
2952
2952
|
function Id(e, t) {
|
|
2953
2953
|
return !_a(e.getCurrentResult(), t);
|
|
2954
2954
|
}
|
|
2955
|
-
var lc =
|
|
2955
|
+
var lc = ie.createContext(
|
|
2956
2956
|
void 0
|
|
2957
2957
|
), Md = (e) => {
|
|
2958
|
-
const t =
|
|
2958
|
+
const t = ie.useContext(lc);
|
|
2959
2959
|
if (!t)
|
|
2960
2960
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2961
2961
|
return t;
|
|
2962
2962
|
}, jd = ({
|
|
2963
2963
|
client: e,
|
|
2964
2964
|
children: t
|
|
2965
|
-
}) => (
|
|
2965
|
+
}) => (ie.useEffect(() => (e.mount(), () => {
|
|
2966
2966
|
e.unmount();
|
|
2967
|
-
}), [e]), /* @__PURE__ */ u(lc.Provider, { value: e, children: t })), cc =
|
|
2967
|
+
}), [e]), /* @__PURE__ */ u(lc.Provider, { value: e, children: t })), cc = ie.createContext(!1), zd = () => ie.useContext(cc);
|
|
2968
2968
|
cc.Provider;
|
|
2969
2969
|
function Vd() {
|
|
2970
2970
|
let e = !1;
|
|
@@ -2978,10 +2978,10 @@ function Vd() {
|
|
|
2978
2978
|
isReset: () => e
|
|
2979
2979
|
};
|
|
2980
2980
|
}
|
|
2981
|
-
var Nd =
|
|
2981
|
+
var Nd = ie.createContext(Vd()), Ld = () => ie.useContext(Nd), Bd = (e, t) => {
|
|
2982
2982
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
2983
2983
|
}, qd = (e) => {
|
|
2984
|
-
|
|
2984
|
+
ie.useEffect(() => {
|
|
2985
2985
|
e.clearReset();
|
|
2986
2986
|
}, [e]);
|
|
2987
2987
|
}, Wd = ({
|
|
@@ -3011,14 +3011,14 @@ function Yd(e, t, r) {
|
|
|
3011
3011
|
), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
|
|
3012
3012
|
`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
3013
3013
|
)), o._optimisticResults = n ? "isRestoring" : "optimistic", Ud(o), Bd(o, i), qd(i);
|
|
3014
|
-
const s = !a.getQueryCache().get(o.queryHash), [l] =
|
|
3014
|
+
const s = !a.getQueryCache().get(o.queryHash), [l] = ie.useState(
|
|
3015
3015
|
() => new t(
|
|
3016
3016
|
a,
|
|
3017
3017
|
o
|
|
3018
3018
|
)
|
|
3019
3019
|
), p = l.getOptimisticResult(o), m = !n && e.subscribed !== !1;
|
|
3020
|
-
if (
|
|
3021
|
-
|
|
3020
|
+
if (ie.useSyncExternalStore(
|
|
3021
|
+
ie.useCallback(
|
|
3022
3022
|
(x) => {
|
|
3023
3023
|
const v = m ? l.subscribe(et.batchCalls(x)) : ft;
|
|
3024
3024
|
return l.updateResult(), v;
|
|
@@ -3027,7 +3027,7 @@ function Yd(e, t, r) {
|
|
|
3027
3027
|
),
|
|
3028
3028
|
() => l.getCurrentResult(),
|
|
3029
3029
|
() => l.getCurrentResult()
|
|
3030
|
-
),
|
|
3030
|
+
), ie.useEffect(() => {
|
|
3031
3031
|
l.setOptions(o);
|
|
3032
3032
|
}, [o, l]), Kd(o, p))
|
|
3033
3033
|
throw us(o, l, i);
|
|
@@ -3187,7 +3187,7 @@ function Zd() {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
|
-
var S = l, $ = p, j = s, F = o, D = t, d = m,
|
|
3190
|
+
var S = l, $ = p, j = s, F = o, D = t, d = m, R = n, M = E, A = g, V = r, U = a, oe = i, ye = f, de = !1;
|
|
3191
3191
|
function Y(Q) {
|
|
3192
3192
|
return de || (de = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(Q) || k(Q) === l;
|
|
3193
3193
|
}
|
|
@@ -3215,7 +3215,7 @@ function Zd() {
|
|
|
3215
3215
|
function te(Q) {
|
|
3216
3216
|
return k(Q) === g;
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3218
|
+
function ae(Q) {
|
|
3219
3219
|
return k(Q) === r;
|
|
3220
3220
|
}
|
|
3221
3221
|
function le(Q) {
|
|
@@ -3227,7 +3227,7 @@ function Zd() {
|
|
|
3227
3227
|
function Ee(Q) {
|
|
3228
3228
|
return k(Q) === f;
|
|
3229
3229
|
}
|
|
3230
|
-
Te.AsyncMode = S, Te.ConcurrentMode = $, Te.ContextConsumer = j, Te.ContextProvider = F, Te.Element = D, Te.ForwardRef = d, Te.Fragment =
|
|
3230
|
+
Te.AsyncMode = S, Te.ConcurrentMode = $, Te.ContextConsumer = j, Te.ContextProvider = F, Te.Element = D, Te.ForwardRef = d, Te.Fragment = R, Te.Lazy = M, Te.Memo = A, Te.Portal = V, Te.Profiler = U, Te.StrictMode = oe, Te.Suspense = ye, Te.isAsyncMode = Y, Te.isConcurrentMode = N, Te.isContextConsumer = K, Te.isContextProvider = me, Te.isElement = he, Te.isForwardRef = pe, Te.isFragment = xe, Te.isLazy = L, Te.isMemo = te, Te.isPortal = ae, Te.isProfiler = le, Te.isStrictMode = ce, Te.isSuspense = Ee, Te.isValidElementType = P, Te.typeOf = k;
|
|
3231
3231
|
}()), Te;
|
|
3232
3232
|
}
|
|
3233
3233
|
var fs;
|
|
@@ -3400,31 +3400,31 @@ function ep() {
|
|
|
3400
3400
|
function x(N) {
|
|
3401
3401
|
if (process.env.NODE_ENV !== "production")
|
|
3402
3402
|
var K = {}, me = 0;
|
|
3403
|
-
function he(xe, L, te,
|
|
3404
|
-
if (
|
|
3403
|
+
function he(xe, L, te, ae, le, ce, Ee) {
|
|
3404
|
+
if (ae = ae || c, ce = ce || te, Ee !== r) {
|
|
3405
3405
|
if (l) {
|
|
3406
3406
|
var Q = new Error(
|
|
3407
3407
|
"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"
|
|
3408
3408
|
);
|
|
3409
3409
|
throw Q.name = "Invariant Violation", Q;
|
|
3410
3410
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3411
|
-
var je =
|
|
3411
|
+
var je = ae + ":" + te;
|
|
3412
3412
|
!K[je] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3413
3413
|
me < 3 && (a(
|
|
3414
|
-
"You are manually calling a React.PropTypes validation function for the `" + ce + "` prop on `" +
|
|
3414
|
+
"You are manually calling a React.PropTypes validation function for the `" + ce + "` prop on `" + ae + "`. 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."
|
|
3415
3415
|
), K[je] = !0, me++);
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
|
-
return L[te] == null ? xe ? L[te] === null ? new h("The " + le + " `" + ce + "` is marked as required " + ("in `" +
|
|
3418
|
+
return L[te] == null ? xe ? L[te] === null ? new h("The " + le + " `" + ce + "` is marked as required " + ("in `" + ae + "`, but its value is `null`.")) : new h("The " + le + " `" + ce + "` is marked as required in " + ("`" + ae + "`, but its value is `undefined`.")) : null : N(L, te, ae, le, ce);
|
|
3419
3419
|
}
|
|
3420
3420
|
var pe = he.bind(null, !1);
|
|
3421
3421
|
return pe.isRequired = he.bind(null, !0), pe;
|
|
3422
3422
|
}
|
|
3423
3423
|
function v(N) {
|
|
3424
3424
|
function K(me, he, pe, xe, L, te) {
|
|
3425
|
-
var
|
|
3425
|
+
var ae = me[he], le = oe(ae);
|
|
3426
3426
|
if (le !== N) {
|
|
3427
|
-
var ce = ye(
|
|
3427
|
+
var ce = ye(ae);
|
|
3428
3428
|
return new h(
|
|
3429
3429
|
"Invalid " + xe + " `" + L + "` of type " + ("`" + ce + "` supplied to `" + pe + "`, expected ") + ("`" + N + "`."),
|
|
3430
3430
|
{ expectedType: N }
|
|
@@ -3443,8 +3443,8 @@ function ep() {
|
|
|
3443
3443
|
return new h("Property `" + L + "` of component `" + pe + "` has invalid PropType notation inside arrayOf.");
|
|
3444
3444
|
var te = me[he];
|
|
3445
3445
|
if (!Array.isArray(te)) {
|
|
3446
|
-
var
|
|
3447
|
-
return new h("Invalid " + xe + " `" + L + "` of type " + ("`" +
|
|
3446
|
+
var ae = oe(te);
|
|
3447
|
+
return new h("Invalid " + xe + " `" + L + "` of type " + ("`" + ae + "` supplied to `" + pe + "`, expected an array."));
|
|
3448
3448
|
}
|
|
3449
3449
|
for (var le = 0; le < te.length; le++) {
|
|
3450
3450
|
var ce = N(te, le, pe, xe, L + "[" + le + "]", r);
|
|
@@ -3459,7 +3459,7 @@ function ep() {
|
|
|
3459
3459
|
function N(K, me, he, pe, xe) {
|
|
3460
3460
|
var L = K[me];
|
|
3461
3461
|
if (!s(L)) {
|
|
3462
|
-
var te =
|
|
3462
|
+
var te = oe(L);
|
|
3463
3463
|
return new h("Invalid " + pe + " `" + xe + "` of type " + ("`" + te + "` supplied to `" + he + "`, expected a single ReactElement."));
|
|
3464
3464
|
}
|
|
3465
3465
|
return null;
|
|
@@ -3470,7 +3470,7 @@ function ep() {
|
|
|
3470
3470
|
function N(K, me, he, pe, xe) {
|
|
3471
3471
|
var L = K[me];
|
|
3472
3472
|
if (!e.isValidElementType(L)) {
|
|
3473
|
-
var te =
|
|
3473
|
+
var te = oe(L);
|
|
3474
3474
|
return new h("Invalid " + pe + " `" + xe + "` of type " + ("`" + te + "` supplied to `" + he + "`, expected a single ReactElement type."));
|
|
3475
3475
|
}
|
|
3476
3476
|
return null;
|
|
@@ -3480,8 +3480,8 @@ function ep() {
|
|
|
3480
3480
|
function $(N) {
|
|
3481
3481
|
function K(me, he, pe, xe, L) {
|
|
3482
3482
|
if (!(me[he] instanceof N)) {
|
|
3483
|
-
var te = N.name || c,
|
|
3484
|
-
return new h("Invalid " + xe + " `" + L + "` of type " + ("`" +
|
|
3483
|
+
var te = N.name || c, ae = Y(me[he]);
|
|
3484
|
+
return new h("Invalid " + xe + " `" + L + "` of type " + ("`" + ae + "` supplied to `" + pe + "`, expected ") + ("instance of `" + te + "`."));
|
|
3485
3485
|
}
|
|
3486
3486
|
return null;
|
|
3487
3487
|
}
|
|
@@ -3493,8 +3493,8 @@ function ep() {
|
|
|
3493
3493
|
"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])."
|
|
3494
3494
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
3495
3495
|
function K(me, he, pe, xe, L) {
|
|
3496
|
-
for (var te = me[he],
|
|
3497
|
-
if (E(te, N[
|
|
3496
|
+
for (var te = me[he], ae = 0; ae < N.length; ae++)
|
|
3497
|
+
if (E(te, N[ae]))
|
|
3498
3498
|
return null;
|
|
3499
3499
|
var le = JSON.stringify(N, function(Ee, Q) {
|
|
3500
3500
|
var je = ye(Q);
|
|
@@ -3508,9 +3508,9 @@ function ep() {
|
|
|
3508
3508
|
function K(me, he, pe, xe, L) {
|
|
3509
3509
|
if (typeof N != "function")
|
|
3510
3510
|
return new h("Property `" + L + "` of component `" + pe + "` has invalid PropType notation inside objectOf.");
|
|
3511
|
-
var te = me[he],
|
|
3512
|
-
if (
|
|
3513
|
-
return new h("Invalid " + xe + " `" + L + "` of type " + ("`" +
|
|
3511
|
+
var te = me[he], ae = oe(te);
|
|
3512
|
+
if (ae !== "object")
|
|
3513
|
+
return new h("Invalid " + xe + " `" + L + "` of type " + ("`" + ae + "` supplied to `" + pe + "`, expected an object."));
|
|
3514
3514
|
for (var le in te)
|
|
3515
3515
|
if (n(te, le)) {
|
|
3516
3516
|
var ce = N(te, le, pe, xe, L + "." + le, r);
|
|
@@ -3531,15 +3531,15 @@ function ep() {
|
|
|
3531
3531
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + de(me) + " at index " + K + "."
|
|
3532
3532
|
), o;
|
|
3533
3533
|
}
|
|
3534
|
-
function he(pe, xe, L, te,
|
|
3534
|
+
function he(pe, xe, L, te, ae) {
|
|
3535
3535
|
for (var le = [], ce = 0; ce < N.length; ce++) {
|
|
3536
|
-
var Ee = N[ce], Q = Ee(pe, xe, L, te,
|
|
3536
|
+
var Ee = N[ce], Q = Ee(pe, xe, L, te, ae, r);
|
|
3537
3537
|
if (Q == null)
|
|
3538
3538
|
return null;
|
|
3539
3539
|
Q.data && n(Q.data, "expectedType") && le.push(Q.data.expectedType);
|
|
3540
3540
|
}
|
|
3541
3541
|
var je = le.length > 0 ? ", expected one of type [" + le.join(", ") + "]" : "";
|
|
3542
|
-
return new h("Invalid " + te + " `" +
|
|
3542
|
+
return new h("Invalid " + te + " `" + ae + "` supplied to " + ("`" + L + "`" + je + "."));
|
|
3543
3543
|
}
|
|
3544
3544
|
return x(he);
|
|
3545
3545
|
}
|
|
@@ -3549,20 +3549,20 @@ function ep() {
|
|
|
3549
3549
|
}
|
|
3550
3550
|
return x(N);
|
|
3551
3551
|
}
|
|
3552
|
-
function
|
|
3552
|
+
function R(N, K, me, he, pe) {
|
|
3553
3553
|
return new h(
|
|
3554
3554
|
(N || "React class") + ": " + K + " type `" + me + "." + he + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + pe + "`."
|
|
3555
3555
|
);
|
|
3556
3556
|
}
|
|
3557
3557
|
function M(N) {
|
|
3558
3558
|
function K(me, he, pe, xe, L) {
|
|
3559
|
-
var te = me[he],
|
|
3560
|
-
if (
|
|
3561
|
-
return new h("Invalid " + xe + " `" + L + "` of type `" +
|
|
3559
|
+
var te = me[he], ae = oe(te);
|
|
3560
|
+
if (ae !== "object")
|
|
3561
|
+
return new h("Invalid " + xe + " `" + L + "` of type `" + ae + "` " + ("supplied to `" + pe + "`, expected `object`."));
|
|
3562
3562
|
for (var le in N) {
|
|
3563
3563
|
var ce = N[le];
|
|
3564
3564
|
if (typeof ce != "function")
|
|
3565
|
-
return
|
|
3565
|
+
return R(pe, xe, L, le, ye(ce));
|
|
3566
3566
|
var Ee = ce(te, le, pe, xe, L + "." + le, r);
|
|
3567
3567
|
if (Ee)
|
|
3568
3568
|
return Ee;
|
|
@@ -3573,14 +3573,14 @@ function ep() {
|
|
|
3573
3573
|
}
|
|
3574
3574
|
function A(N) {
|
|
3575
3575
|
function K(me, he, pe, xe, L) {
|
|
3576
|
-
var te = me[he],
|
|
3577
|
-
if (
|
|
3578
|
-
return new h("Invalid " + xe + " `" + L + "` of type `" +
|
|
3576
|
+
var te = me[he], ae = oe(te);
|
|
3577
|
+
if (ae !== "object")
|
|
3578
|
+
return new h("Invalid " + xe + " `" + L + "` of type `" + ae + "` " + ("supplied to `" + pe + "`, expected `object`."));
|
|
3579
3579
|
var le = t({}, me[he], N);
|
|
3580
3580
|
for (var ce in le) {
|
|
3581
3581
|
var Ee = N[ce];
|
|
3582
3582
|
if (n(N, ce) && typeof Ee != "function")
|
|
3583
|
-
return
|
|
3583
|
+
return R(pe, xe, L, ce, ye(Ee));
|
|
3584
3584
|
if (!Ee)
|
|
3585
3585
|
return new h(
|
|
3586
3586
|
"Invalid " + xe + " `" + L + "` key `" + ce + "` supplied to `" + pe + "`.\nBad object: " + JSON.stringify(me[he], null, " ") + `
|
|
@@ -3630,14 +3630,14 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
|
3630
3630
|
function U(N, K) {
|
|
3631
3631
|
return N === "symbol" ? !0 : K ? K["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && K instanceof Symbol : !1;
|
|
3632
3632
|
}
|
|
3633
|
-
function
|
|
3633
|
+
function oe(N) {
|
|
3634
3634
|
var K = typeof N;
|
|
3635
3635
|
return Array.isArray(N) ? "array" : N instanceof RegExp ? "object" : U(K, N) ? "symbol" : K;
|
|
3636
3636
|
}
|
|
3637
3637
|
function ye(N) {
|
|
3638
3638
|
if (typeof N > "u" || N === null)
|
|
3639
3639
|
return "" + N;
|
|
3640
|
-
var K =
|
|
3640
|
+
var K = oe(N);
|
|
3641
3641
|
if (K === "object") {
|
|
3642
3642
|
if (N instanceof Date)
|
|
3643
3643
|
return "date";
|
|
@@ -3921,7 +3921,7 @@ function Ht(e) {
|
|
|
3921
3921
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3922
3922
|
}
|
|
3923
3923
|
function fc(e) {
|
|
3924
|
-
if (/* @__PURE__ */
|
|
3924
|
+
if (/* @__PURE__ */ ie.isValidElement(e) || wi.isValidElementType(e) || !Ht(e))
|
|
3925
3925
|
return e;
|
|
3926
3926
|
const t = {};
|
|
3927
3927
|
return Object.keys(e).forEach((r) => {
|
|
@@ -3935,7 +3935,7 @@ function St(e, t, r = {
|
|
|
3935
3935
|
...e
|
|
3936
3936
|
} : e;
|
|
3937
3937
|
return Ht(e) && Ht(t) && Object.keys(t).forEach((i) => {
|
|
3938
|
-
/* @__PURE__ */
|
|
3938
|
+
/* @__PURE__ */ ie.isValidElement(t[i]) || wi.isValidElementType(t[i]) ? n[i] = t[i] : Ht(t[i]) && // Avoid prototype pollution
|
|
3939
3939
|
Object.prototype.hasOwnProperty.call(e, i) && Ht(e[i]) ? n[i] = St(e[i], t[i], r) : r.clone ? n[i] = Ht(t[i]) ? fc(t[i]) : t[i] : n[i] = t[i];
|
|
3940
3940
|
}), n;
|
|
3941
3941
|
}
|
|
@@ -5225,8 +5225,8 @@ function Cf(e = {}) {
|
|
|
5225
5225
|
}, k = (...S) => {
|
|
5226
5226
|
const $ = [], j = S.map(P), F = [];
|
|
5227
5227
|
if ($.push(a), p && g && F.push(function(M) {
|
|
5228
|
-
var
|
|
5229
|
-
const V = (ye = (
|
|
5228
|
+
var oe, ye;
|
|
5229
|
+
const V = (ye = (oe = M.theme.components) == null ? void 0 : oe[p]) == null ? void 0 : ye.styleOverrides;
|
|
5230
5230
|
if (!V)
|
|
5231
5231
|
return null;
|
|
5232
5232
|
const U = {};
|
|
@@ -5234,13 +5234,13 @@ function Cf(e = {}) {
|
|
|
5234
5234
|
U[de] = ui(M, V[de]);
|
|
5235
5235
|
return g(M, U);
|
|
5236
5236
|
}), p && !h && F.push(function(M) {
|
|
5237
|
-
var U,
|
|
5238
|
-
const A = M.theme, V = (
|
|
5237
|
+
var U, oe;
|
|
5238
|
+
const A = M.theme, V = (oe = (U = A == null ? void 0 : A.components) == null ? void 0 : U[p]) == null ? void 0 : oe.variants;
|
|
5239
5239
|
return V ? bc(M, V) : null;
|
|
5240
5240
|
}), x || F.push(bn), Array.isArray(j[0])) {
|
|
5241
|
-
const
|
|
5241
|
+
const R = j.shift(), M = new Array($.length).fill(""), A = new Array(F.length).fill("");
|
|
5242
5242
|
let V;
|
|
5243
|
-
V = [...M, ...
|
|
5243
|
+
V = [...M, ...R, ...A], V.raw = [...M, ...R.raw, ...A], $.unshift(V);
|
|
5244
5244
|
}
|
|
5245
5245
|
const D = [...$, ...j, ...F], d = b(...D);
|
|
5246
5246
|
return s.muiName && (d.muiName = s.muiName), process.env.NODE_ENV !== "production" && (d.displayName = Ef(p, m, s)), d;
|
|
@@ -5301,7 +5301,7 @@ function Ba(e, t) {
|
|
|
5301
5301
|
}
|
|
5302
5302
|
return r;
|
|
5303
5303
|
}
|
|
5304
|
-
const Af = typeof window < "u" ?
|
|
5304
|
+
const Af = typeof window < "u" ? ie.useLayoutEffect : ie.useEffect;
|
|
5305
5305
|
function Ff(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
5306
5306
|
return Math.max(t, Math.min(e, r));
|
|
5307
5307
|
}
|
|
@@ -5430,7 +5430,7 @@ function ti(e, t, r) {
|
|
|
5430
5430
|
return e;
|
|
5431
5431
|
}
|
|
5432
5432
|
}
|
|
5433
|
-
const Pf = /* @__PURE__ */
|
|
5433
|
+
const Pf = /* @__PURE__ */ ie.createContext(void 0);
|
|
5434
5434
|
process.env.NODE_ENV !== "production" && (T.node, T.object);
|
|
5435
5435
|
function Df(e) {
|
|
5436
5436
|
const {
|
|
@@ -5447,7 +5447,7 @@ function If({
|
|
|
5447
5447
|
props: e,
|
|
5448
5448
|
name: t
|
|
5449
5449
|
}) {
|
|
5450
|
-
const r =
|
|
5450
|
+
const r = ie.useContext(Pf);
|
|
5451
5451
|
return Df({
|
|
5452
5452
|
props: e,
|
|
5453
5453
|
name: t,
|
|
@@ -5582,10 +5582,10 @@ function Nf(e, t = {}) {
|
|
|
5582
5582
|
generateStyleSheets: () => {
|
|
5583
5583
|
var F, D;
|
|
5584
5584
|
const P = [], k = e.defaultColorScheme || "light";
|
|
5585
|
-
function S(d,
|
|
5586
|
-
Object.keys(
|
|
5585
|
+
function S(d, R) {
|
|
5586
|
+
Object.keys(R).length && P.push(typeof d == "string" ? {
|
|
5587
5587
|
[d]: {
|
|
5588
|
-
...
|
|
5588
|
+
...R
|
|
5589
5589
|
}
|
|
5590
5590
|
} : d);
|
|
5591
5591
|
}
|
|
@@ -5599,8 +5599,8 @@ function Nf(e, t = {}) {
|
|
|
5599
5599
|
if ($) {
|
|
5600
5600
|
const {
|
|
5601
5601
|
css: d
|
|
5602
|
-
} = $,
|
|
5603
|
-
colorScheme:
|
|
5602
|
+
} = $, R = (D = (F = a[k]) == null ? void 0 : F.palette) == null ? void 0 : D.mode, M = !n && R ? {
|
|
5603
|
+
colorScheme: R,
|
|
5604
5604
|
...d
|
|
5605
5605
|
} : {
|
|
5606
5606
|
...d
|
|
@@ -5610,14 +5610,14 @@ function Nf(e, t = {}) {
|
|
|
5610
5610
|
}), M);
|
|
5611
5611
|
}
|
|
5612
5612
|
return Object.entries(j).forEach(([d, {
|
|
5613
|
-
css:
|
|
5613
|
+
css: R
|
|
5614
5614
|
}]) => {
|
|
5615
5615
|
var V, U;
|
|
5616
5616
|
const M = (U = (V = a[d]) == null ? void 0 : V.palette) == null ? void 0 : U.mode, A = !n && M ? {
|
|
5617
5617
|
colorScheme: M,
|
|
5618
|
-
...
|
|
5618
|
+
...R
|
|
5619
5619
|
} : {
|
|
5620
|
-
...
|
|
5620
|
+
...R
|
|
5621
5621
|
};
|
|
5622
5622
|
S(r(d, {
|
|
5623
5623
|
...A
|
|
@@ -6375,19 +6375,19 @@ function xm(e = {}, ...t) {
|
|
|
6375
6375
|
spacing: ym(p.spacing)
|
|
6376
6376
|
};
|
|
6377
6377
|
Object.keys(k.colorSchemes).forEach((D) => {
|
|
6378
|
-
const d = k.colorSchemes[D].palette,
|
|
6378
|
+
const d = k.colorSchemes[D].palette, R = (M) => {
|
|
6379
6379
|
const A = M.split("-"), V = A[1], U = A[2];
|
|
6380
6380
|
return c(M, d[V][U]);
|
|
6381
6381
|
};
|
|
6382
6382
|
if (d.mode === "light" && (z(d.common, "background", "#fff"), z(d.common, "onBackground", "#000")), d.mode === "dark" && (z(d.common, "background", "#000"), z(d.common, "onBackground", "#fff")), gm(d, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), d.mode === "light") {
|
|
6383
|
-
z(d.Alert, "errorColor", $e(d.error.light, 0.6)), z(d.Alert, "infoColor", $e(d.info.light, 0.6)), z(d.Alert, "successColor", $e(d.success.light, 0.6)), z(d.Alert, "warningColor", $e(d.warning.light, 0.6)), z(d.Alert, "errorFilledBg",
|
|
6383
|
+
z(d.Alert, "errorColor", $e(d.error.light, 0.6)), z(d.Alert, "infoColor", $e(d.info.light, 0.6)), z(d.Alert, "successColor", $e(d.success.light, 0.6)), z(d.Alert, "warningColor", $e(d.warning.light, 0.6)), z(d.Alert, "errorFilledBg", R("palette-error-main")), z(d.Alert, "infoFilledBg", R("palette-info-main")), z(d.Alert, "successFilledBg", R("palette-success-main")), z(d.Alert, "warningFilledBg", R("palette-warning-main")), z(d.Alert, "errorFilledColor", Nt(() => d.getContrastText(d.error.main))), z(d.Alert, "infoFilledColor", Nt(() => d.getContrastText(d.info.main))), z(d.Alert, "successFilledColor", Nt(() => d.getContrastText(d.success.main))), z(d.Alert, "warningFilledColor", Nt(() => d.getContrastText(d.warning.main))), z(d.Alert, "errorStandardBg", Pe(d.error.light, 0.9)), z(d.Alert, "infoStandardBg", Pe(d.info.light, 0.9)), z(d.Alert, "successStandardBg", Pe(d.success.light, 0.9)), z(d.Alert, "warningStandardBg", Pe(d.warning.light, 0.9)), z(d.Alert, "errorIconColor", R("palette-error-main")), z(d.Alert, "infoIconColor", R("palette-info-main")), z(d.Alert, "successIconColor", R("palette-success-main")), z(d.Alert, "warningIconColor", R("palette-warning-main")), z(d.AppBar, "defaultBg", R("palette-grey-100")), z(d.Avatar, "defaultBg", R("palette-grey-400")), z(d.Button, "inheritContainedBg", R("palette-grey-300")), z(d.Button, "inheritContainedHoverBg", R("palette-grey-A100")), z(d.Chip, "defaultBorder", R("palette-grey-400")), z(d.Chip, "defaultAvatarColor", R("palette-grey-700")), z(d.Chip, "defaultIconColor", R("palette-grey-700")), z(d.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), z(d.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), z(d.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), z(d.LinearProgress, "primaryBg", Pe(d.primary.main, 0.62)), z(d.LinearProgress, "secondaryBg", Pe(d.secondary.main, 0.62)), z(d.LinearProgress, "errorBg", Pe(d.error.main, 0.62)), z(d.LinearProgress, "infoBg", Pe(d.info.main, 0.62)), z(d.LinearProgress, "successBg", Pe(d.success.main, 0.62)), z(d.LinearProgress, "warningBg", Pe(d.warning.main, 0.62)), z(d.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.11)`), z(d.Slider, "primaryTrack", Pe(d.primary.main, 0.62)), z(d.Slider, "secondaryTrack", Pe(d.secondary.main, 0.62)), z(d.Slider, "errorTrack", Pe(d.error.main, 0.62)), z(d.Slider, "infoTrack", Pe(d.info.main, 0.62)), z(d.Slider, "successTrack", Pe(d.success.main, 0.62)), z(d.Slider, "warningTrack", Pe(d.warning.main, 0.62));
|
|
6384
6384
|
const M = ti(d.background.default, 0.8);
|
|
6385
|
-
z(d.SnackbarContent, "bg", M), z(d.SnackbarContent, "color", Nt(() => d.getContrastText(M))), z(d.SpeedDialAction, "fabHoverBg", ti(d.background.paper, 0.15)), z(d.StepConnector, "border",
|
|
6385
|
+
z(d.SnackbarContent, "bg", M), z(d.SnackbarContent, "color", Nt(() => d.getContrastText(M))), z(d.SpeedDialAction, "fabHoverBg", ti(d.background.paper, 0.15)), z(d.StepConnector, "border", R("palette-grey-400")), z(d.StepContent, "border", R("palette-grey-400")), z(d.Switch, "defaultColor", R("palette-common-white")), z(d.Switch, "defaultDisabledColor", R("palette-grey-100")), z(d.Switch, "primaryDisabledColor", Pe(d.primary.main, 0.62)), z(d.Switch, "secondaryDisabledColor", Pe(d.secondary.main, 0.62)), z(d.Switch, "errorDisabledColor", Pe(d.error.main, 0.62)), z(d.Switch, "infoDisabledColor", Pe(d.info.main, 0.62)), z(d.Switch, "successDisabledColor", Pe(d.success.main, 0.62)), z(d.Switch, "warningDisabledColor", Pe(d.warning.main, 0.62)), z(d.TableCell, "border", Pe(ei(d.divider, 1), 0.88)), z(d.Tooltip, "bg", ei(d.grey[700], 0.92));
|
|
6386
6386
|
}
|
|
6387
6387
|
if (d.mode === "dark") {
|
|
6388
|
-
z(d.Alert, "errorColor", Pe(d.error.light, 0.6)), z(d.Alert, "infoColor", Pe(d.info.light, 0.6)), z(d.Alert, "successColor", Pe(d.success.light, 0.6)), z(d.Alert, "warningColor", Pe(d.warning.light, 0.6)), z(d.Alert, "errorFilledBg",
|
|
6388
|
+
z(d.Alert, "errorColor", Pe(d.error.light, 0.6)), z(d.Alert, "infoColor", Pe(d.info.light, 0.6)), z(d.Alert, "successColor", Pe(d.success.light, 0.6)), z(d.Alert, "warningColor", Pe(d.warning.light, 0.6)), z(d.Alert, "errorFilledBg", R("palette-error-dark")), z(d.Alert, "infoFilledBg", R("palette-info-dark")), z(d.Alert, "successFilledBg", R("palette-success-dark")), z(d.Alert, "warningFilledBg", R("palette-warning-dark")), z(d.Alert, "errorFilledColor", Nt(() => d.getContrastText(d.error.dark))), z(d.Alert, "infoFilledColor", Nt(() => d.getContrastText(d.info.dark))), z(d.Alert, "successFilledColor", Nt(() => d.getContrastText(d.success.dark))), z(d.Alert, "warningFilledColor", Nt(() => d.getContrastText(d.warning.dark))), z(d.Alert, "errorStandardBg", $e(d.error.light, 0.9)), z(d.Alert, "infoStandardBg", $e(d.info.light, 0.9)), z(d.Alert, "successStandardBg", $e(d.success.light, 0.9)), z(d.Alert, "warningStandardBg", $e(d.warning.light, 0.9)), z(d.Alert, "errorIconColor", R("palette-error-main")), z(d.Alert, "infoIconColor", R("palette-info-main")), z(d.Alert, "successIconColor", R("palette-success-main")), z(d.Alert, "warningIconColor", R("palette-warning-main")), z(d.AppBar, "defaultBg", R("palette-grey-900")), z(d.AppBar, "darkBg", R("palette-background-paper")), z(d.AppBar, "darkColor", R("palette-text-primary")), z(d.Avatar, "defaultBg", R("palette-grey-600")), z(d.Button, "inheritContainedBg", R("palette-grey-800")), z(d.Button, "inheritContainedHoverBg", R("palette-grey-700")), z(d.Chip, "defaultBorder", R("palette-grey-700")), z(d.Chip, "defaultAvatarColor", R("palette-grey-300")), z(d.Chip, "defaultIconColor", R("palette-grey-300")), z(d.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), z(d.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), z(d.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), z(d.LinearProgress, "primaryBg", $e(d.primary.main, 0.5)), z(d.LinearProgress, "secondaryBg", $e(d.secondary.main, 0.5)), z(d.LinearProgress, "errorBg", $e(d.error.main, 0.5)), z(d.LinearProgress, "infoBg", $e(d.info.main, 0.5)), z(d.LinearProgress, "successBg", $e(d.success.main, 0.5)), z(d.LinearProgress, "warningBg", $e(d.warning.main, 0.5)), z(d.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.13)`), z(d.Slider, "primaryTrack", $e(d.primary.main, 0.5)), z(d.Slider, "secondaryTrack", $e(d.secondary.main, 0.5)), z(d.Slider, "errorTrack", $e(d.error.main, 0.5)), z(d.Slider, "infoTrack", $e(d.info.main, 0.5)), z(d.Slider, "successTrack", $e(d.success.main, 0.5)), z(d.Slider, "warningTrack", $e(d.warning.main, 0.5));
|
|
6389
6389
|
const M = ti(d.background.default, 0.98);
|
|
6390
|
-
z(d.SnackbarContent, "bg", M), z(d.SnackbarContent, "color", Nt(() => d.getContrastText(M))), z(d.SpeedDialAction, "fabHoverBg", ti(d.background.paper, 0.15)), z(d.StepConnector, "border",
|
|
6390
|
+
z(d.SnackbarContent, "bg", M), z(d.SnackbarContent, "color", Nt(() => d.getContrastText(M))), z(d.SpeedDialAction, "fabHoverBg", ti(d.background.paper, 0.15)), z(d.StepConnector, "border", R("palette-grey-600")), z(d.StepContent, "border", R("palette-grey-600")), z(d.Switch, "defaultColor", R("palette-grey-300")), z(d.Switch, "defaultDisabledColor", R("palette-grey-600")), z(d.Switch, "primaryDisabledColor", $e(d.primary.main, 0.55)), z(d.Switch, "secondaryDisabledColor", $e(d.secondary.main, 0.55)), z(d.Switch, "errorDisabledColor", $e(d.error.main, 0.55)), z(d.Switch, "infoDisabledColor", $e(d.info.main, 0.55)), z(d.Switch, "successDisabledColor", $e(d.success.main, 0.55)), z(d.Switch, "warningDisabledColor", $e(d.warning.main, 0.55)), z(d.TableCell, "border", $e(ei(d.divider, 1), 0.68)), z(d.Tooltip, "bg", ei(d.grey[700], 0.92));
|
|
6391
6391
|
}
|
|
6392
6392
|
Qt(d.background, "default"), Qt(d.background, "paper"), Qt(d.common, "background"), Qt(d.common, "onBackground"), Qt(d, "divider"), Object.keys(d).forEach((M) => {
|
|
6393
6393
|
const A = d[M];
|
|
@@ -6617,7 +6617,7 @@ const Fm = {
|
|
|
6617
6617
|
body1: "p",
|
|
6618
6618
|
body2: "p",
|
|
6619
6619
|
inherit: "p"
|
|
6620
|
-
}, Ac = /* @__PURE__ */
|
|
6620
|
+
}, Ac = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
6621
6621
|
const {
|
|
6622
6622
|
color: n,
|
|
6623
6623
|
...i
|
|
@@ -6751,10 +6751,10 @@ process.env.NODE_ENV !== "production" && (Ac.propTypes = {
|
|
|
6751
6751
|
*/
|
|
6752
6752
|
variantMapping: T.object
|
|
6753
6753
|
});
|
|
6754
|
-
const ko = /* @__PURE__ */
|
|
6754
|
+
const ko = /* @__PURE__ */ ie.createContext(void 0);
|
|
6755
6755
|
process.env.NODE_ENV !== "production" && (ko.displayName = "FormControlContext");
|
|
6756
6756
|
function Pm() {
|
|
6757
|
-
return
|
|
6757
|
+
return ie.useContext(ko);
|
|
6758
6758
|
}
|
|
6759
6759
|
function Dm(e) {
|
|
6760
6760
|
return Er("MuiInputAdornment", e);
|
|
@@ -6821,7 +6821,7 @@ const Im = (e, t) => {
|
|
|
6821
6821
|
pointerEvents: "none"
|
|
6822
6822
|
}
|
|
6823
6823
|
}]
|
|
6824
|
-
}))), Fc = /* @__PURE__ */
|
|
6824
|
+
}))), Fc = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
6825
6825
|
const n = qr({
|
|
6826
6826
|
props: t,
|
|
6827
6827
|
name: "MuiInputAdornment"
|
|
@@ -6856,7 +6856,7 @@ const Im = (e, t) => {
|
|
|
6856
6856
|
children: typeof i == "string" && !l ? /* @__PURE__ */ u(Ac, {
|
|
6857
6857
|
color: "textSecondary",
|
|
6858
6858
|
children: i
|
|
6859
|
-
}) : /* @__PURE__ */ ee(
|
|
6859
|
+
}) : /* @__PURE__ */ ee(ie.Fragment, {
|
|
6860
6860
|
children: [p === "start" ? (
|
|
6861
6861
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
6862
6862
|
Ws || (Ws = /* @__PURE__ */ u("span", {
|
|
@@ -7036,7 +7036,7 @@ const Vm = (e) => {
|
|
|
7036
7036
|
}
|
|
7037
7037
|
]
|
|
7038
7038
|
};
|
|
7039
|
-
})), ki = /* @__PURE__ */
|
|
7039
|
+
})), ki = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
7040
7040
|
const n = qr({
|
|
7041
7041
|
props: t,
|
|
7042
7042
|
name: "MuiSvgIcon"
|
|
@@ -7051,7 +7051,7 @@ const Vm = (e) => {
|
|
|
7051
7051
|
titleAccess: f,
|
|
7052
7052
|
viewBox: c = "0 0 24 24",
|
|
7053
7053
|
...g
|
|
7054
|
-
} = n, E = /* @__PURE__ */
|
|
7054
|
+
} = n, E = /* @__PURE__ */ ie.isValidElement(i) && i.type === "svg", h = {
|
|
7055
7055
|
...n,
|
|
7056
7056
|
color: o,
|
|
7057
7057
|
component: s,
|
|
@@ -7162,17 +7162,17 @@ function yt(e, t) {
|
|
|
7162
7162
|
children: e
|
|
7163
7163
|
});
|
|
7164
7164
|
}
|
|
7165
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = ki.muiName, /* @__PURE__ */
|
|
7165
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = ki.muiName, /* @__PURE__ */ ie.memo(/* @__PURE__ */ ie.forwardRef(r));
|
|
7166
7166
|
}
|
|
7167
7167
|
let Us = 0;
|
|
7168
7168
|
function Lm(e) {
|
|
7169
|
-
const [t, r] =
|
|
7170
|
-
return
|
|
7169
|
+
const [t, r] = ie.useState(e), n = e || t;
|
|
7170
|
+
return ie.useEffect(() => {
|
|
7171
7171
|
t == null && (Us += 1, r(`mui-${Us}`));
|
|
7172
7172
|
}, [t]), n;
|
|
7173
7173
|
}
|
|
7174
7174
|
const Bm = {
|
|
7175
|
-
...
|
|
7175
|
+
...ie
|
|
7176
7176
|
}, Hs = Bm.useId;
|
|
7177
7177
|
function qm(e) {
|
|
7178
7178
|
if (Hs !== void 0) {
|
|
@@ -7182,16 +7182,16 @@ function qm(e) {
|
|
|
7182
7182
|
return Lm(e);
|
|
7183
7183
|
}
|
|
7184
7184
|
function di(e) {
|
|
7185
|
-
const t =
|
|
7185
|
+
const t = ie.useRef(e);
|
|
7186
7186
|
return Af(() => {
|
|
7187
7187
|
t.current = e;
|
|
7188
|
-
}),
|
|
7188
|
+
}), ie.useRef((...r) => (
|
|
7189
7189
|
// @ts-expect-error hide `this`
|
|
7190
7190
|
(0, t.current)(...r)
|
|
7191
7191
|
)).current;
|
|
7192
7192
|
}
|
|
7193
7193
|
function Ks(...e) {
|
|
7194
|
-
const t =
|
|
7194
|
+
const t = ie.useRef(void 0), r = ie.useCallback((n) => {
|
|
7195
7195
|
const i = e.map((a) => {
|
|
7196
7196
|
if (a == null)
|
|
7197
7197
|
return null;
|
|
@@ -7209,7 +7209,7 @@ function Ks(...e) {
|
|
|
7209
7209
|
i.forEach((a) => a == null ? void 0 : a());
|
|
7210
7210
|
};
|
|
7211
7211
|
}, e);
|
|
7212
|
-
return
|
|
7212
|
+
return ie.useMemo(() => e.every((n) => n == null) ? null : (n) => {
|
|
7213
7213
|
t.current && (t.current(), t.current = void 0), n != null && (t.current = r(n));
|
|
7214
7214
|
}, e);
|
|
7215
7215
|
}
|
|
@@ -7243,7 +7243,7 @@ function Ys(e) {
|
|
|
7243
7243
|
}
|
|
7244
7244
|
const Qs = {};
|
|
7245
7245
|
function _c(e, t) {
|
|
7246
|
-
const r =
|
|
7246
|
+
const r = ie.useRef(Qs);
|
|
7247
7247
|
return r.current === Qs && (r.current = e(t)), r;
|
|
7248
7248
|
}
|
|
7249
7249
|
class Ti {
|
|
@@ -7264,8 +7264,8 @@ class Ti {
|
|
|
7264
7264
|
return new Ti();
|
|
7265
7265
|
}
|
|
7266
7266
|
static use() {
|
|
7267
|
-
const t = _c(Ti.create).current, [r, n] =
|
|
7268
|
-
return t.shouldMount = r, t.setShouldMount = n,
|
|
7267
|
+
const t = _c(Ti.create).current, [r, n] = ie.useState(!1);
|
|
7268
|
+
return t.shouldMount = r, t.setShouldMount = n, ie.useEffect(t.mountEffect, [r]), t;
|
|
7269
7269
|
}
|
|
7270
7270
|
mount() {
|
|
7271
7271
|
return this.mounted || (this.mounted = Qm(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
@@ -7509,7 +7509,7 @@ Ao.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
7509
7509
|
Ao.defaultProps = nh;
|
|
7510
7510
|
const ih = [];
|
|
7511
7511
|
function ah(e) {
|
|
7512
|
-
|
|
7512
|
+
ie.useEffect(e, ih);
|
|
7513
7513
|
}
|
|
7514
7514
|
class Fo {
|
|
7515
7515
|
constructor() {
|
|
@@ -7546,13 +7546,13 @@ function Rc(e) {
|
|
|
7546
7546
|
in: s,
|
|
7547
7547
|
onExited: l,
|
|
7548
7548
|
timeout: p
|
|
7549
|
-
} = e, [m, f] =
|
|
7549
|
+
} = e, [m, f] = ie.useState(!1), c = ut(t, r.ripple, r.rippleVisible, n && r.ripplePulsate), g = {
|
|
7550
7550
|
width: o,
|
|
7551
7551
|
height: o,
|
|
7552
7552
|
top: -(o / 2) + a,
|
|
7553
7553
|
left: -(o / 2) + i
|
|
7554
7554
|
}, E = ut(r.child, m && r.childLeaving, n && r.childPulsate);
|
|
7555
|
-
return !s && !m && f(!0),
|
|
7555
|
+
return !s && !m && f(!0), ie.useEffect(() => {
|
|
7556
7556
|
if (!s && l != null) {
|
|
7557
7557
|
const h = setTimeout(l, p);
|
|
7558
7558
|
return () => {
|
|
@@ -7699,7 +7699,7 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7699
7699
|
animation-iteration-count: infinite;
|
|
7700
7700
|
animation-delay: 200ms;
|
|
7701
7701
|
}
|
|
7702
|
-
`, $c = /* @__PURE__ */
|
|
7702
|
+
`, $c = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
7703
7703
|
const n = qr({
|
|
7704
7704
|
props: t,
|
|
7705
7705
|
name: "MuiTouchRipple"
|
|
@@ -7708,11 +7708,11 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7708
7708
|
classes: a = {},
|
|
7709
7709
|
className: o,
|
|
7710
7710
|
...s
|
|
7711
|
-
} = n, [l, p] =
|
|
7712
|
-
|
|
7711
|
+
} = n, [l, p] = ie.useState([]), m = ie.useRef(0), f = ie.useRef(null);
|
|
7712
|
+
ie.useEffect(() => {
|
|
7713
7713
|
f.current && (f.current(), f.current = null);
|
|
7714
7714
|
}, [l]);
|
|
7715
|
-
const c =
|
|
7715
|
+
const c = ie.useRef(!1), g = oh(), E = ie.useRef(null), h = ie.useRef(null), x = ie.useCallback((k) => {
|
|
7716
7716
|
const {
|
|
7717
7717
|
pulsate: S,
|
|
7718
7718
|
rippleX: $,
|
|
@@ -7735,7 +7735,7 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7735
7735
|
rippleY: j,
|
|
7736
7736
|
rippleSize: F
|
|
7737
7737
|
}, m.current)]), m.current += 1, f.current = D;
|
|
7738
|
-
}, [a]), v =
|
|
7738
|
+
}, [a]), v = ie.useCallback((k = {}, S = {}, $ = () => {
|
|
7739
7739
|
}) => {
|
|
7740
7740
|
const {
|
|
7741
7741
|
pulsate: j = !1,
|
|
@@ -7748,7 +7748,7 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7748
7748
|
return;
|
|
7749
7749
|
}
|
|
7750
7750
|
(k == null ? void 0 : k.type) === "touchstart" && (c.current = !0);
|
|
7751
|
-
const d = D ? null : h.current,
|
|
7751
|
+
const d = D ? null : h.current, R = d ? d.getBoundingClientRect() : {
|
|
7752
7752
|
width: 0,
|
|
7753
7753
|
height: 0,
|
|
7754
7754
|
left: 0,
|
|
@@ -7756,19 +7756,19 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7756
7756
|
};
|
|
7757
7757
|
let M, A, V;
|
|
7758
7758
|
if (F || k === void 0 || k.clientX === 0 && k.clientY === 0 || !k.clientX && !k.touches)
|
|
7759
|
-
M = Math.round(
|
|
7759
|
+
M = Math.round(R.width / 2), A = Math.round(R.height / 2);
|
|
7760
7760
|
else {
|
|
7761
7761
|
const {
|
|
7762
7762
|
clientX: U,
|
|
7763
|
-
clientY:
|
|
7763
|
+
clientY: oe
|
|
7764
7764
|
} = k.touches && k.touches.length > 0 ? k.touches[0] : k;
|
|
7765
|
-
M = Math.round(U -
|
|
7765
|
+
M = Math.round(U - R.left), A = Math.round(oe - R.top);
|
|
7766
7766
|
}
|
|
7767
7767
|
if (F)
|
|
7768
|
-
V = Math.sqrt((2 *
|
|
7768
|
+
V = Math.sqrt((2 * R.width ** 2 + R.height ** 2) / 3), V % 2 === 0 && (V += 1);
|
|
7769
7769
|
else {
|
|
7770
|
-
const U = Math.max(Math.abs((d ? d.clientWidth : 0) - M), M) * 2 + 2,
|
|
7771
|
-
V = Math.sqrt(U ** 2 +
|
|
7770
|
+
const U = Math.max(Math.abs((d ? d.clientWidth : 0) - M), M) * 2 + 2, oe = Math.max(Math.abs((d ? d.clientHeight : 0) - A), A) * 2 + 2;
|
|
7771
|
+
V = Math.sqrt(U ** 2 + oe ** 2);
|
|
7772
7772
|
}
|
|
7773
7773
|
k != null && k.touches ? E.current === null && (E.current = () => {
|
|
7774
7774
|
x({
|
|
@@ -7787,11 +7787,11 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7787
7787
|
rippleSize: V,
|
|
7788
7788
|
cb: $
|
|
7789
7789
|
});
|
|
7790
|
-
}, [i, x, g]), b =
|
|
7790
|
+
}, [i, x, g]), b = ie.useCallback(() => {
|
|
7791
7791
|
v({}, {
|
|
7792
7792
|
pulsate: !0
|
|
7793
7793
|
});
|
|
7794
|
-
}, [v]), P =
|
|
7794
|
+
}, [v]), P = ie.useCallback((k, S) => {
|
|
7795
7795
|
if (g.clear(), (k == null ? void 0 : k.type) === "touchend" && E.current) {
|
|
7796
7796
|
E.current(), E.current = null, g.start(0, () => {
|
|
7797
7797
|
P(k, S);
|
|
@@ -7800,7 +7800,7 @@ const Ot = Br("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
7800
7800
|
}
|
|
7801
7801
|
E.current = null, p(($) => $.length > 0 ? $.slice(1) : $), f.current = S;
|
|
7802
7802
|
}, [g]);
|
|
7803
|
-
return
|
|
7803
|
+
return ie.useImperativeHandle(r, () => ({
|
|
7804
7804
|
pulsate: b,
|
|
7805
7805
|
start: v,
|
|
7806
7806
|
stop: P
|
|
@@ -7885,7 +7885,7 @@ const mh = Br("MuiButtonBase", ["root", "disabled", "focusVisible"]), hh = (e) =
|
|
|
7885
7885
|
"@media print": {
|
|
7886
7886
|
colorAdjust: "exact"
|
|
7887
7887
|
}
|
|
7888
|
-
}), Pc = /* @__PURE__ */
|
|
7888
|
+
}), Pc = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
7889
7889
|
const n = qr({
|
|
7890
7890
|
props: t,
|
|
7891
7891
|
name: "MuiButtonBase"
|
|
@@ -7913,26 +7913,26 @@ const mh = Br("MuiButtonBase", ["root", "disabled", "focusVisible"]), hh = (e) =
|
|
|
7913
7913
|
onMouseLeave: F,
|
|
7914
7914
|
onMouseUp: D,
|
|
7915
7915
|
onTouchEnd: d,
|
|
7916
|
-
onTouchMove:
|
|
7916
|
+
onTouchMove: R,
|
|
7917
7917
|
onTouchStart: M,
|
|
7918
7918
|
tabIndex: A = 0,
|
|
7919
7919
|
TouchRippleProps: V,
|
|
7920
7920
|
touchRippleRef: U,
|
|
7921
|
-
type:
|
|
7921
|
+
type: oe,
|
|
7922
7922
|
...ye
|
|
7923
|
-
} = n, de =
|
|
7924
|
-
p && K && me(!1),
|
|
7923
|
+
} = n, de = ie.useRef(null), Y = Ym(), N = Ks(Y.ref, U), [K, me] = ie.useState(!1);
|
|
7924
|
+
p && K && me(!1), ie.useImperativeHandle(i, () => ({
|
|
7925
7925
|
focusVisible: () => {
|
|
7926
7926
|
me(!0), de.current.focus();
|
|
7927
7927
|
}
|
|
7928
7928
|
}), []);
|
|
7929
7929
|
const he = Y.shouldMount && !m && !p;
|
|
7930
|
-
|
|
7930
|
+
ie.useEffect(() => {
|
|
7931
7931
|
K && c && !m && Y.pulsate();
|
|
7932
7932
|
}, [m, c, K, Y]);
|
|
7933
|
-
const pe = Gt(Y, "start", j, f), xe = Gt(Y, "stop", v, f), L = Gt(Y, "stop", b, f), te = Gt(Y, "stop", D, f),
|
|
7933
|
+
const pe = Gt(Y, "start", j, f), xe = Gt(Y, "stop", v, f), L = Gt(Y, "stop", b, f), te = Gt(Y, "stop", D, f), ae = Gt(Y, "stop", (C) => {
|
|
7934
7934
|
K && C.preventDefault(), F && F(C);
|
|
7935
|
-
}, f), le = Gt(Y, "start", M, f), ce = Gt(Y, "stop", d, f), Ee = Gt(Y, "stop",
|
|
7935
|
+
}, f), le = Gt(Y, "start", M, f), ce = Gt(Y, "stop", d, f), Ee = Gt(Y, "stop", R, f), Q = Gt(Y, "stop", (C) => {
|
|
7936
7936
|
Ys(C.target) || me(!1), h && h(C);
|
|
7937
7937
|
}, !1), je = di((C) => {
|
|
7938
7938
|
de.current || (de.current = C.currentTarget), Ys(C.target) && (me(!0), k && k(C)), P && P(C);
|
|
@@ -7951,7 +7951,7 @@ const mh = Br("MuiButtonBase", ["root", "disabled", "focusVisible"]), hh = (e) =
|
|
|
7951
7951
|
let ue = l;
|
|
7952
7952
|
ue === "button" && (ye.href || ye.to) && (ue = E);
|
|
7953
7953
|
const re = {};
|
|
7954
|
-
ue === "button" ? (re.type =
|
|
7954
|
+
ue === "button" ? (re.type = oe === void 0 ? "button" : oe, re.disabled = p) : (!ye.href && !ye.to && (re.role = "button"), p && (re["aria-disabled"] = p));
|
|
7955
7955
|
const ge = Ks(r, de), y = {
|
|
7956
7956
|
...n,
|
|
7957
7957
|
centerRipple: a,
|
|
@@ -7974,7 +7974,7 @@ const mh = Br("MuiButtonBase", ["root", "disabled", "focusVisible"]), hh = (e) =
|
|
|
7974
7974
|
onKeyDown: tt,
|
|
7975
7975
|
onKeyUp: J,
|
|
7976
7976
|
onMouseDown: pe,
|
|
7977
|
-
onMouseLeave:
|
|
7977
|
+
onMouseLeave: ae,
|
|
7978
7978
|
onMouseUp: te,
|
|
7979
7979
|
onDragLeave: L,
|
|
7980
7980
|
onTouchEnd: ce,
|
|
@@ -7982,7 +7982,7 @@ const mh = Br("MuiButtonBase", ["root", "disabled", "focusVisible"]), hh = (e) =
|
|
|
7982
7982
|
onTouchStart: le,
|
|
7983
7983
|
ref: ge,
|
|
7984
7984
|
tabIndex: p ? -1 : A,
|
|
7985
|
-
type:
|
|
7985
|
+
type: oe,
|
|
7986
7986
|
...re,
|
|
7987
7987
|
...ye,
|
|
7988
7988
|
children: [o, he ? /* @__PURE__ */ u($c, {
|
|
@@ -8276,7 +8276,7 @@ const ir = 44, Ya = Bn`
|
|
|
8276
8276
|
animation: `${Qa} 1.4s ease-in-out infinite`
|
|
8277
8277
|
}
|
|
8278
8278
|
}]
|
|
8279
|
-
}))), Dc = /* @__PURE__ */
|
|
8279
|
+
}))), Dc = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
8280
8280
|
const n = qr({
|
|
8281
8281
|
props: t,
|
|
8282
8282
|
name: "MuiCircularProgress"
|
|
@@ -8542,7 +8542,7 @@ const Zs = Br("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
8542
8542
|
display: "flex"
|
|
8543
8543
|
}
|
|
8544
8544
|
}]
|
|
8545
|
-
})), pi = /* @__PURE__ */
|
|
8545
|
+
})), pi = /* @__PURE__ */ ie.forwardRef(function(t, r) {
|
|
8546
8546
|
const n = qr({
|
|
8547
8547
|
props: t,
|
|
8548
8548
|
name: "MuiIconButton"
|
|
@@ -8603,7 +8603,7 @@ process.env.NODE_ENV !== "production" && (pi.propTypes = {
|
|
|
8603
8603
|
/**
|
|
8604
8604
|
* The icon to display.
|
|
8605
8605
|
*/
|
|
8606
|
-
children: To(T.node, (e) =>
|
|
8606
|
+
children: To(T.node, (e) => ie.Children.toArray(e.children).some((r) => /* @__PURE__ */ ie.isValidElement(r) && r.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
8607
8607
|
`)) : null),
|
|
8608
8608
|
/**
|
|
8609
8609
|
* Override or extend the styles applied to the component.
|
|
@@ -9636,24 +9636,24 @@ function Mh({
|
|
|
9636
9636
|
onEmptyStateButtonClick: E,
|
|
9637
9637
|
emptyStateSx: h
|
|
9638
9638
|
}) {
|
|
9639
|
-
const [x, v] = se.useState(null), [b, P] = se.useState(null), k = Au(), S = (
|
|
9639
|
+
const [x, v] = se.useState(null), [b, P] = se.useState(null), k = Au(), S = (R) => (M) => {
|
|
9640
9640
|
if (!i) {
|
|
9641
|
-
v(
|
|
9641
|
+
v(R), M.dataTransfer.effectAllowed = "move";
|
|
9642
9642
|
try {
|
|
9643
|
-
M.dataTransfer.setData("text/plain", String(t(e[
|
|
9643
|
+
M.dataTransfer.setData("text/plain", String(t(e[R])));
|
|
9644
9644
|
} catch {
|
|
9645
9645
|
}
|
|
9646
9646
|
}
|
|
9647
|
-
}, $ = (
|
|
9648
|
-
i || (M.preventDefault(), P(
|
|
9649
|
-
}, j = (
|
|
9647
|
+
}, $ = (R) => (M) => {
|
|
9648
|
+
i || (M.preventDefault(), P(R), M.dataTransfer.dropEffect = "move");
|
|
9649
|
+
}, j = (R) => (M) => {
|
|
9650
9650
|
if (i) return;
|
|
9651
|
-
if (M.preventDefault(), x === null || x ===
|
|
9651
|
+
if (M.preventDefault(), x === null || x === R) {
|
|
9652
9652
|
v(null), P(null);
|
|
9653
9653
|
return;
|
|
9654
9654
|
}
|
|
9655
9655
|
const A = [...e], [V] = A.splice(x, 1);
|
|
9656
|
-
A.splice(
|
|
9656
|
+
A.splice(R, 0, V), v(null), P(null), r(A);
|
|
9657
9657
|
}, F = () => {
|
|
9658
9658
|
v(null), P(null);
|
|
9659
9659
|
}, D = e.length === 0;
|
|
@@ -9661,10 +9661,10 @@ function Mh({
|
|
|
9661
9661
|
H,
|
|
9662
9662
|
{
|
|
9663
9663
|
role: "list",
|
|
9664
|
-
sx: (
|
|
9664
|
+
sx: (R) => ({
|
|
9665
9665
|
display: "flex",
|
|
9666
9666
|
flexDirection: "column",
|
|
9667
|
-
gap:
|
|
9667
|
+
gap: R.spacing(1),
|
|
9668
9668
|
...a
|
|
9669
9669
|
}),
|
|
9670
9670
|
children: [
|
|
@@ -9673,22 +9673,19 @@ function Mh({
|
|
|
9673
9673
|
D && (c || E !== void 0) ? /* @__PURE__ */ ee(
|
|
9674
9674
|
H,
|
|
9675
9675
|
{
|
|
9676
|
-
sx: (
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
...h
|
|
9690
|
-
};
|
|
9691
|
-
},
|
|
9676
|
+
sx: (R) => ({
|
|
9677
|
+
display: "flex",
|
|
9678
|
+
flexDirection: "column",
|
|
9679
|
+
alignItems: "center",
|
|
9680
|
+
justifyContent: "center",
|
|
9681
|
+
minHeight: "200px",
|
|
9682
|
+
padding: R.spacing(4),
|
|
9683
|
+
backgroundColor: R.palette.mode === "dark" ? "#000000" : q.background.paper,
|
|
9684
|
+
border: `2px dashed ${R.palette.mode === "dark" ? "#FFFFFF" : q.divider}`,
|
|
9685
|
+
borderRadius: "8px",
|
|
9686
|
+
textAlign: "center",
|
|
9687
|
+
...h
|
|
9688
|
+
}),
|
|
9692
9689
|
children: [
|
|
9693
9690
|
c && /* @__PURE__ */ u(
|
|
9694
9691
|
fe,
|
|
@@ -9733,7 +9730,7 @@ function Mh({
|
|
|
9733
9730
|
)
|
|
9734
9731
|
]
|
|
9735
9732
|
}
|
|
9736
|
-
) : e.map((
|
|
9733
|
+
) : e.map((R, M) => {
|
|
9737
9734
|
const A = x === M, V = b === M && x !== null && x !== M;
|
|
9738
9735
|
return /* @__PURE__ */ u(
|
|
9739
9736
|
H,
|
|
@@ -9744,36 +9741,33 @@ function Mh({
|
|
|
9744
9741
|
onDragOver: $(M),
|
|
9745
9742
|
onDrop: j(M),
|
|
9746
9743
|
onDragEnd: F,
|
|
9747
|
-
sx: (U) => {
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
};
|
|
9759
|
-
},
|
|
9760
|
-
children: p ? p(_, A) : /* @__PURE__ */ ee(H, { sx: (U) => ({ display: "flex", alignItems: "center", gap: U.spacing(1), minWidth: 0 }), children: [
|
|
9744
|
+
sx: (U) => ({
|
|
9745
|
+
userSelect: "none",
|
|
9746
|
+
cursor: i ? "default" : "grab",
|
|
9747
|
+
backgroundColor: "#F8F8FA",
|
|
9748
|
+
border: `1px solid ${V ? U.palette.primary.main : "#EBEBEB"}`,
|
|
9749
|
+
borderRadius: "8px",
|
|
9750
|
+
padding: U.spacing(1),
|
|
9751
|
+
opacity: A ? 0.6 : 1,
|
|
9752
|
+
boxShadow: V ? `0 0 0 2px ${U.palette.primary.main}33` : "none"
|
|
9753
|
+
}),
|
|
9754
|
+
children: p ? p(R, A) : /* @__PURE__ */ ee(H, { sx: (U) => ({ display: "flex", alignItems: "center", gap: U.spacing(1), minWidth: 0 }), children: [
|
|
9761
9755
|
l && /* @__PURE__ */ u(Mc, {}),
|
|
9762
9756
|
s && /* @__PURE__ */ ee(fe, { variant: "body2", sx: (U) => ({ fontWeight: 600, fontSize: 14, color: `${U.palette.text.primary}`, flex: "0 0 auto" }), children: [
|
|
9763
9757
|
M + 1,
|
|
9764
9758
|
"."
|
|
9765
9759
|
] }),
|
|
9766
9760
|
(() => {
|
|
9767
|
-
const U = typeof m == "function" ? m(
|
|
9761
|
+
const U = typeof m == "function" ? m(R, M) : m;
|
|
9768
9762
|
return U ? /* @__PURE__ */ u(lo, { label: U, sx: { borderRadius: "4px", p: "12px 3px" }, size: "small" }) : null;
|
|
9769
9763
|
})(),
|
|
9770
|
-
/* @__PURE__ */ u(fe, { variant: "body2", sx: (U) => ({ fontSize: 12, fontWeight: 500, color: `${U.palette.text.primary}90`, flex: 1, minWidth: 0, overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }), children: o ? o(
|
|
9764
|
+
/* @__PURE__ */ u(fe, { variant: "body2", sx: (U) => ({ fontSize: 12, fontWeight: 500, color: `${U.palette.text.primary}90`, flex: 1, minWidth: 0, overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }), children: o ? o(R) : "" })
|
|
9771
9765
|
] })
|
|
9772
9766
|
},
|
|
9773
|
-
String(t(
|
|
9767
|
+
String(t(R))
|
|
9774
9768
|
);
|
|
9775
9769
|
}),
|
|
9776
|
-
!D && f ? typeof f == "string" ? /* @__PURE__ */ u(fe, { variant: "caption", sx: (
|
|
9770
|
+
!D && f ? typeof f == "string" ? /* @__PURE__ */ u(fe, { variant: "caption", sx: (R) => ({ color: `${R.palette.text.primary}60` }), children: f }) : f : null
|
|
9777
9771
|
]
|
|
9778
9772
|
}
|
|
9779
9773
|
);
|
|
@@ -10324,27 +10318,27 @@ const jh = Et(Pl)(() => ({
|
|
|
10324
10318
|
}, [t, g]), b = Wl({ control: a, name: e }) || [], P = se.useMemo(() => {
|
|
10325
10319
|
if (!v) return {};
|
|
10326
10320
|
const D = {};
|
|
10327
|
-
return b.forEach((d,
|
|
10328
|
-
D[
|
|
10321
|
+
return b.forEach((d, R) => {
|
|
10322
|
+
D[R] = !!(d != null && d[v]);
|
|
10329
10323
|
}), D;
|
|
10330
10324
|
}, [b, v]), k = se.useCallback((D) => P[D] === !0, [P]), S = se.useCallback((D, d) => {
|
|
10331
10325
|
if (!f || !v) return;
|
|
10332
|
-
const
|
|
10326
|
+
const R = `${e}.${D}.${v}`;
|
|
10333
10327
|
c === "single" && d && b.forEach((M, A) => {
|
|
10334
10328
|
if (A !== D) {
|
|
10335
10329
|
const V = `${e}.${A}.${v}`;
|
|
10336
10330
|
f(V, !1, { shouldDirty: !0 });
|
|
10337
10331
|
}
|
|
10338
|
-
}), f(
|
|
10332
|
+
}), f(R, d, { shouldDirty: !0 });
|
|
10339
10333
|
}, [e, v, c, f, b]), $ = (D) => {
|
|
10340
10334
|
const d = { ...D || r };
|
|
10341
|
-
t.forEach((
|
|
10342
|
-
|
|
10335
|
+
t.forEach((R) => {
|
|
10336
|
+
R.value !== void 0 && d[R.key] === void 0 && (d[R.key] = typeof R.value == "function" ? R.value(d, E.length) : R.value);
|
|
10343
10337
|
}), h(d);
|
|
10344
|
-
}, j = se.useMemo(() => t.reduce((d,
|
|
10345
|
-
if (
|
|
10338
|
+
}, j = se.useMemo(() => t.reduce((d, R) => {
|
|
10339
|
+
if (R.width === "auto" || R.width === void 0)
|
|
10346
10340
|
return d + 120;
|
|
10347
|
-
const M = typeof
|
|
10341
|
+
const M = typeof R.width == "number" ? R.width : typeof R.width == "string" && parseInt(R.width) || 160;
|
|
10348
10342
|
return d + M;
|
|
10349
10343
|
}, 0) + (i ? 100 : 0), [t, i]), F = (D) => D.width === "auto" || D.width === void 0 ? {
|
|
10350
10344
|
width: "auto",
|
|
@@ -10568,11 +10562,11 @@ const jh = Et(Pl)(() => ({
|
|
|
10568
10562
|
)
|
|
10569
10563
|
] }) }),
|
|
10570
10564
|
/* @__PURE__ */ u(Du, { children: E.map((D, d) => {
|
|
10571
|
-
const
|
|
10565
|
+
const R = k(d), M = c && !R;
|
|
10572
10566
|
return /* @__PURE__ */ ee(Wo, { children: [
|
|
10573
10567
|
t.map((A) => {
|
|
10574
10568
|
var de;
|
|
10575
|
-
const V = `${e}.${d}.${A.key}`, U = A.type === "rowSelect" || A.key === v,
|
|
10569
|
+
const V = `${e}.${d}.${A.key}`, U = A.type === "rowSelect" || A.key === v, oe = U ? !1 : M ? !0 : typeof A.disabled == "function" ? A.disabled(D, d) : !!A.disabled;
|
|
10576
10570
|
if (A.type === "index") {
|
|
10577
10571
|
const Y = A.indexFormat ? A.indexFormat(d) : `#${d + 1}`;
|
|
10578
10572
|
return /* @__PURE__ */ u(
|
|
@@ -10651,7 +10645,7 @@ const jh = Et(Pl)(() => ({
|
|
|
10651
10645
|
{
|
|
10652
10646
|
label: "",
|
|
10653
10647
|
checked: !!Y.value,
|
|
10654
|
-
disabled:
|
|
10648
|
+
disabled: oe,
|
|
10655
10649
|
onChange: Y.onChange,
|
|
10656
10650
|
sx: A.sx
|
|
10657
10651
|
}
|
|
@@ -10667,7 +10661,7 @@ const jh = Et(Pl)(() => ({
|
|
|
10667
10661
|
{
|
|
10668
10662
|
...Y,
|
|
10669
10663
|
fullWidth: !0,
|
|
10670
|
-
disabled:
|
|
10664
|
+
disabled: oe,
|
|
10671
10665
|
options: A.options || [],
|
|
10672
10666
|
size: "small",
|
|
10673
10667
|
sx: {
|
|
@@ -10706,7 +10700,7 @@ const jh = Et(Pl)(() => ({
|
|
|
10706
10700
|
{
|
|
10707
10701
|
...Y,
|
|
10708
10702
|
fullWidth: !0,
|
|
10709
|
-
disabled:
|
|
10703
|
+
disabled: oe,
|
|
10710
10704
|
size: "small",
|
|
10711
10705
|
placeholder: A.placeholder || "DD/MM/YYYY",
|
|
10712
10706
|
sx: {
|
|
@@ -10747,7 +10741,7 @@ const jh = Et(Pl)(() => ({
|
|
|
10747
10741
|
fullWidth: !0,
|
|
10748
10742
|
type: A.type === "number" ? "number" : "text",
|
|
10749
10743
|
placeholder: A.placeholder,
|
|
10750
|
-
disabled:
|
|
10744
|
+
disabled: oe,
|
|
10751
10745
|
size: "small",
|
|
10752
10746
|
sx: {
|
|
10753
10747
|
"& .MuiOutlinedInput-input": {
|
|
@@ -11504,8 +11498,8 @@ const Nc = ({
|
|
|
11504
11498
|
} catch {
|
|
11505
11499
|
return;
|
|
11506
11500
|
}
|
|
11507
|
-
const
|
|
11508
|
-
if (j.current === void 0 && (j.current = te),
|
|
11501
|
+
const ae = a ? a[e.name] : void 0;
|
|
11502
|
+
if (j.current === void 0 && (j.current = te), ae === void 0 || ae === j.current)
|
|
11509
11503
|
try {
|
|
11510
11504
|
o(e.name, te, { shouldValidate: !0, shouldDirty: !1 }), j.current = te;
|
|
11511
11505
|
} catch {
|
|
@@ -11528,10 +11522,10 @@ const Nc = ({
|
|
|
11528
11522
|
e.depends_on,
|
|
11529
11523
|
e.conditional,
|
|
11530
11524
|
e.passThroughFields
|
|
11531
|
-
]), D = bt(null), d = F != null && F.dependsOn ? a == null ? void 0 : a[F.dependsOn] : null,
|
|
11525
|
+
]), D = bt(null), d = F != null && F.dependsOn ? a == null ? void 0 : a[F.dependsOn] : null, R = Ke(() => {
|
|
11532
11526
|
if (!(F != null && F.dependsOn)) return !1;
|
|
11533
|
-
const L = d, te = D.current,
|
|
11534
|
-
return
|
|
11527
|
+
const L = d, te = D.current, ae = L !== te;
|
|
11528
|
+
return ae && (D.current = L), ae;
|
|
11535
11529
|
}, [F == null ? void 0 : F.dependsOn, d]), M = Ke(() => {
|
|
11536
11530
|
const L = e.showWhen;
|
|
11537
11531
|
if (typeof L == "function")
|
|
@@ -11541,8 +11535,8 @@ const Nc = ({
|
|
|
11541
11535
|
return !0;
|
|
11542
11536
|
}
|
|
11543
11537
|
if (L && typeof L == "object") {
|
|
11544
|
-
const te = L.field,
|
|
11545
|
-
if (te && typeof
|
|
11538
|
+
const te = L.field, ae = L.equals, le = L.in, ce = te ? (a || {})[te] : void 0;
|
|
11539
|
+
if (te && typeof ae < "u") return ce === ae;
|
|
11546
11540
|
if (te && Array.isArray(le)) return le.includes(ce);
|
|
11547
11541
|
}
|
|
11548
11542
|
return !0;
|
|
@@ -11556,7 +11550,7 @@ const Nc = ({
|
|
|
11556
11550
|
}
|
|
11557
11551
|
return e.endorsementText;
|
|
11558
11552
|
}, [e, a]), V = Ne(() => {
|
|
11559
|
-
const L = e.endAdornment, te = e.endAdornmentSwitch,
|
|
11553
|
+
const L = e.endAdornment, te = e.endAdornmentSwitch, ae = e.endAdornmentCheckbox;
|
|
11560
11554
|
if (te)
|
|
11561
11555
|
return /* @__PURE__ */ u(
|
|
11562
11556
|
Me,
|
|
@@ -11578,11 +11572,11 @@ const Nc = ({
|
|
|
11578
11572
|
)
|
|
11579
11573
|
}
|
|
11580
11574
|
);
|
|
11581
|
-
if (
|
|
11575
|
+
if (ae)
|
|
11582
11576
|
return /* @__PURE__ */ u(
|
|
11583
11577
|
Me,
|
|
11584
11578
|
{
|
|
11585
|
-
name:
|
|
11579
|
+
name: ae,
|
|
11586
11580
|
control: t,
|
|
11587
11581
|
defaultValue: e.endAdornmentCheckboxDefault ?? !1,
|
|
11588
11582
|
render: ({ field: le }) => /* @__PURE__ */ u(
|
|
@@ -11604,20 +11598,20 @@ const Nc = ({
|
|
|
11604
11598
|
return;
|
|
11605
11599
|
}
|
|
11606
11600
|
return L;
|
|
11607
|
-
}, [e, a, t, o]), U = Ke(() => p && Xr(e) && (!(F != null && F.dependsOn) || d), [p, e, F == null ? void 0 : F.dependsOn, d]),
|
|
11601
|
+
}, [e, a, t, o]), U = Ke(() => p && Xr(e) && (!(F != null && F.dependsOn) || d), [p, e, F == null ? void 0 : F.dependsOn, d]), oe = Ke(() => {
|
|
11608
11602
|
const L = {};
|
|
11609
11603
|
if (!a) return L;
|
|
11610
11604
|
const te = (F == null ? void 0 : F.endpoint) || (e == null ? void 0 : e.api_endpoint);
|
|
11611
11605
|
if (te && typeof te == "string") {
|
|
11612
|
-
const
|
|
11613
|
-
for (const le of
|
|
11606
|
+
const ae = te.match(/\{([^}]+)\}/g) || [];
|
|
11607
|
+
for (const le of ae) {
|
|
11614
11608
|
const ce = le.slice(1, -1), Ee = a[ce];
|
|
11615
11609
|
Ee !== void 0 && (L[ce] = Ee);
|
|
11616
11610
|
}
|
|
11617
11611
|
}
|
|
11618
11612
|
if (F != null && F.dependsOn) {
|
|
11619
|
-
const
|
|
11620
|
-
le !== void 0 && (L[
|
|
11613
|
+
const ae = F.dependsOn, le = a[ae];
|
|
11614
|
+
le !== void 0 && (L[ae] = le);
|
|
11621
11615
|
}
|
|
11622
11616
|
return L;
|
|
11623
11617
|
}, [
|
|
@@ -11633,7 +11627,7 @@ const Nc = ({
|
|
|
11633
11627
|
F,
|
|
11634
11628
|
n,
|
|
11635
11629
|
i,
|
|
11636
|
-
|
|
11630
|
+
oe,
|
|
11637
11631
|
// Only pass dependent values, not entire formData
|
|
11638
11632
|
U
|
|
11639
11633
|
), N = Ne(() => {
|
|
@@ -11647,10 +11641,10 @@ const Nc = ({
|
|
|
11647
11641
|
L != null && L !== "" && (f.current = !0, m(!0));
|
|
11648
11642
|
}
|
|
11649
11643
|
}, [e, a]), zt(() => {
|
|
11650
|
-
Xr(e) && (F != null && F.dependsOn) &&
|
|
11651
|
-
}, [
|
|
11644
|
+
Xr(e) && (F != null && F.dependsOn) && R && f.current && (f.current = !1, m(!1));
|
|
11645
|
+
}, [R, F == null ? void 0 : F.dependsOn]);
|
|
11652
11646
|
const me = Ne(() => Xr(e) ? ye : e.type === "select" || e.type === "toggle" || e.type === "radio" || e.type === "autocomplete" ? e.options || [] : [], [e, ye]), he = () => {
|
|
11653
|
-
var L, te,
|
|
11647
|
+
var L, te, ae, le, ce, Ee;
|
|
11654
11648
|
switch (e.type) {
|
|
11655
11649
|
case "title":
|
|
11656
11650
|
return /* @__PURE__ */ u(
|
|
@@ -11712,19 +11706,19 @@ const Nc = ({
|
|
|
11712
11706
|
{
|
|
11713
11707
|
name: e.name,
|
|
11714
11708
|
control: t,
|
|
11715
|
-
defaultValue: e.defaultValue ?? (typeof ((te = (L = e.items) == null ? void 0 : L[0]) == null ? void 0 : te.value) == "string" || typeof ((le = (
|
|
11709
|
+
defaultValue: e.defaultValue ?? (typeof ((te = (L = e.items) == null ? void 0 : L[0]) == null ? void 0 : te.value) == "string" || typeof ((le = (ae = e.items) == null ? void 0 : ae[0]) == null ? void 0 : le.value) == "number" ? (Ee = (ce = e.items) == null ? void 0 : ce[0]) == null ? void 0 : Ee.value : 0),
|
|
11716
11710
|
render: ({ field: w }) => {
|
|
11717
11711
|
const C = e.items || [], W = C.map((Z, B) => ({
|
|
11718
11712
|
label: Z.label,
|
|
11719
11713
|
value: typeof Z.value == "string" || typeof Z.value == "number" ? Z.value : B,
|
|
11720
11714
|
content: Z.content,
|
|
11721
11715
|
disabled: Z.disabled
|
|
11722
|
-
})),
|
|
11723
|
-
if (typeof
|
|
11724
|
-
const Z = C.findIndex((B, be) => typeof B.value == "string" || typeof B.value == "number" ? B.value ===
|
|
11716
|
+
})), _ = w.value, I = (() => {
|
|
11717
|
+
if (typeof _ == "string" || typeof _ == "number") {
|
|
11718
|
+
const Z = C.findIndex((B, be) => typeof B.value == "string" || typeof B.value == "number" ? B.value === _ : be === _);
|
|
11725
11719
|
return Z >= 0 ? Z : 0;
|
|
11726
11720
|
}
|
|
11727
|
-
return Number(
|
|
11721
|
+
return Number(_) || 0;
|
|
11728
11722
|
})(), G = C[I] || {};
|
|
11729
11723
|
return /* @__PURE__ */ ee(H, { children: [
|
|
11730
11724
|
/* @__PURE__ */ u(
|
|
@@ -11837,7 +11831,7 @@ const Nc = ({
|
|
|
11837
11831
|
control: t,
|
|
11838
11832
|
defaultValue: e.items || [],
|
|
11839
11833
|
render: ({ field: w }) => {
|
|
11840
|
-
const C = e, W = w.value || C.items || [],
|
|
11834
|
+
const C = e, W = w.value || C.items || [], _ = typeof C.getId == "function" ? C.getId : typeof C.getId == "string" ? (Z) => Z[C.getId] : (Z) => Z.id ?? Z._id ?? Z.key ?? String(Z), I = typeof C.getText == "function" ? C.getText : typeof C.getText == "string" ? (Z) => Z[C.getText] ?? String(Z) : (Z) => Z.text ?? Z.label ?? Z.name ?? Z.title ?? String(Z), G = (() => {
|
|
11841
11835
|
if (typeof C.chipText == "function")
|
|
11842
11836
|
return C.chipText;
|
|
11843
11837
|
if (typeof C.chipText == "string")
|
|
@@ -11847,7 +11841,7 @@ const Nc = ({
|
|
|
11847
11841
|
Mh,
|
|
11848
11842
|
{
|
|
11849
11843
|
items: W,
|
|
11850
|
-
getId:
|
|
11844
|
+
getId: _,
|
|
11851
11845
|
onReorder: (Z) => {
|
|
11852
11846
|
w.onChange(Z);
|
|
11853
11847
|
},
|
|
@@ -12100,13 +12094,13 @@ const Nc = ({
|
|
|
12100
12094
|
control: t,
|
|
12101
12095
|
defaultValue: $(),
|
|
12102
12096
|
render: ({ field: w }) => {
|
|
12103
|
-
const C = w.value, W = e.multiple === !0,
|
|
12097
|
+
const C = w.value, W = e.multiple === !0, _ = (F == null ? void 0 : F.valueField) || e.value_field || "value", I = (F == null ? void 0 : F.labelField) || e.label_field || "label", G = (B) => {
|
|
12104
12098
|
if (B != null) {
|
|
12105
12099
|
if (typeof B == "string" || typeof B == "number")
|
|
12106
12100
|
return B;
|
|
12107
12101
|
if (typeof B == "object") {
|
|
12108
|
-
if (B[
|
|
12109
|
-
return B[
|
|
12102
|
+
if (B[_] !== void 0)
|
|
12103
|
+
return B[_];
|
|
12110
12104
|
if (B.value !== void 0)
|
|
12111
12105
|
return B.value;
|
|
12112
12106
|
if (B.id !== void 0) return B.id;
|
|
@@ -12120,7 +12114,7 @@ const Nc = ({
|
|
|
12120
12114
|
return Be !== void 0 && Be === be;
|
|
12121
12115
|
});
|
|
12122
12116
|
return Ae || {
|
|
12123
|
-
[
|
|
12117
|
+
[_]: be,
|
|
12124
12118
|
[I]: `Selected: ${be}`,
|
|
12125
12119
|
value: be,
|
|
12126
12120
|
label: `Selected: ${be}`
|
|
@@ -12136,7 +12130,7 @@ const Nc = ({
|
|
|
12136
12130
|
}
|
|
12137
12131
|
);
|
|
12138
12132
|
return B || {
|
|
12139
|
-
[
|
|
12133
|
+
[_]: C,
|
|
12140
12134
|
[I]: `Selected: ${C}`,
|
|
12141
12135
|
value: C,
|
|
12142
12136
|
label: `Selected: ${C}`
|
|
@@ -12432,7 +12426,7 @@ const Nc = ({
|
|
|
12432
12426
|
}
|
|
12433
12427
|
);
|
|
12434
12428
|
}
|
|
12435
|
-
const W = e.imagePlaceholder || {},
|
|
12429
|
+
const W = e.imagePlaceholder || {}, _ = W.icon || "upload", I = b, G = () => {
|
|
12436
12430
|
var B;
|
|
12437
12431
|
try {
|
|
12438
12432
|
(B = I.current) == null || B.click();
|
|
@@ -12477,7 +12471,7 @@ const Nc = ({
|
|
|
12477
12471
|
pi,
|
|
12478
12472
|
{
|
|
12479
12473
|
sx: { borderRadius: "8px", ...W.iconSx },
|
|
12480
|
-
children:
|
|
12474
|
+
children: _ === "image" ? /* @__PURE__ */ u(
|
|
12481
12475
|
Fh,
|
|
12482
12476
|
{
|
|
12483
12477
|
sx: { width: 36, height: 36, color: "primary.main" }
|
|
@@ -12974,20 +12968,20 @@ function Jr(e) {
|
|
|
12974
12968
|
abortEarly: x = o.spec.abortEarly,
|
|
12975
12969
|
disableStackTrace: v = o.spec.disableStackTrace
|
|
12976
12970
|
} = i;
|
|
12977
|
-
function b(
|
|
12978
|
-
return kr.isRef(
|
|
12971
|
+
function b(R) {
|
|
12972
|
+
return kr.isRef(R) ? R.getValue(r, E, h) : R;
|
|
12979
12973
|
}
|
|
12980
|
-
function P(
|
|
12974
|
+
function P(R = {}) {
|
|
12981
12975
|
const M = Object.assign({
|
|
12982
12976
|
value: r,
|
|
12983
12977
|
originalValue: a,
|
|
12984
12978
|
label: o.spec.label,
|
|
12985
|
-
path:
|
|
12979
|
+
path: R.path || n,
|
|
12986
12980
|
spec: o.spec,
|
|
12987
|
-
disableStackTrace:
|
|
12988
|
-
}, f,
|
|
12981
|
+
disableStackTrace: R.disableStackTrace || v
|
|
12982
|
+
}, f, R.params);
|
|
12989
12983
|
for (const V of Object.keys(M)) M[V] = b(M[V]);
|
|
12990
|
-
const A = new mt(mt.formatError(
|
|
12984
|
+
const A = new mt(mt.formatError(R.message || c, M), r, M.path, R.type || p, M.disableStackTrace);
|
|
12991
12985
|
return A.params = M, A;
|
|
12992
12986
|
}
|
|
12993
12987
|
const k = x ? s : l;
|
|
@@ -13002,10 +12996,10 @@ function Jr(e) {
|
|
|
13002
12996
|
originalValue: a,
|
|
13003
12997
|
schema: o
|
|
13004
12998
|
};
|
|
13005
|
-
const $ = (
|
|
13006
|
-
mt.isError(
|
|
13007
|
-
}, j = (
|
|
13008
|
-
mt.isError(
|
|
12999
|
+
const $ = (R) => {
|
|
13000
|
+
mt.isError(R) ? k(R) : R ? l(null) : k(P());
|
|
13001
|
+
}, j = (R) => {
|
|
13002
|
+
mt.isError(R) ? k(R) : s(R);
|
|
13009
13003
|
};
|
|
13010
13004
|
if (g && jt(r))
|
|
13011
13005
|
return $(!0);
|
|
@@ -13017,8 +13011,8 @@ function Jr(e) {
|
|
|
13017
13011
|
throw new Error(`Validation test of type: "${S.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
|
|
13018
13012
|
return Promise.resolve(D).then($, j);
|
|
13019
13013
|
}
|
|
13020
|
-
} catch (
|
|
13021
|
-
j(
|
|
13014
|
+
} catch (R) {
|
|
13015
|
+
j(R);
|
|
13022
13016
|
return;
|
|
13023
13017
|
}
|
|
13024
13018
|
$(D);
|
|
@@ -14630,7 +14624,7 @@ const Tg = (e) => {
|
|
|
14630
14624
|
control: F,
|
|
14631
14625
|
handleSubmit: D,
|
|
14632
14626
|
formState: { errors: d },
|
|
14633
|
-
watch:
|
|
14627
|
+
watch: R,
|
|
14634
14628
|
setValue: M,
|
|
14635
14629
|
resetField: A,
|
|
14636
14630
|
trigger: V
|
|
@@ -14638,7 +14632,7 @@ const Tg = (e) => {
|
|
|
14638
14632
|
resolver: md(j),
|
|
14639
14633
|
mode: "onChange",
|
|
14640
14634
|
defaultValues: s
|
|
14641
|
-
}), U =
|
|
14635
|
+
}), U = R(), oe = bt({});
|
|
14642
14636
|
zt(() => {
|
|
14643
14637
|
const J = [];
|
|
14644
14638
|
for (const ue of r) {
|
|
@@ -14647,13 +14641,13 @@ const Tg = (e) => {
|
|
|
14647
14641
|
}
|
|
14648
14642
|
if (J.length !== 0)
|
|
14649
14643
|
for (const { dependentField: ue, dependencyName: re } of J) {
|
|
14650
|
-
const ge =
|
|
14644
|
+
const ge = oe.current[re], y = U == null ? void 0 : U[re];
|
|
14651
14645
|
if (ge !== y)
|
|
14652
14646
|
try {
|
|
14653
14647
|
A(ue);
|
|
14654
14648
|
} catch {
|
|
14655
14649
|
}
|
|
14656
|
-
|
|
14650
|
+
oe.current[re] = y;
|
|
14657
14651
|
}
|
|
14658
14652
|
}, [r, U, A]);
|
|
14659
14653
|
const ye = bt(i);
|
|
@@ -14720,7 +14714,7 @@ const Tg = (e) => {
|
|
|
14720
14714
|
J && (J.preventDefault(), J.stopPropagation()), b && k < P && await N() && he(k + 1);
|
|
14721
14715
|
}, L = (J) => {
|
|
14722
14716
|
J && (J.preventDefault(), J.stopPropagation()), b && k > 1 && he(k - 1);
|
|
14723
|
-
}, te = (J) => J.col ? J.col : (J.xs || J.sm || J.md || J.lg || J.xl) && (J.xs || J.sm || J.md || J.lg || J.xl) || 12,
|
|
14717
|
+
}, te = (J) => J.col ? J.col : (J.xs || J.sm || J.md || J.lg || J.xl) && (J.xs || J.sm || J.md || J.lg || J.xl) || 12, ae = t ? Bu({
|
|
14724
14718
|
palette: {
|
|
14725
14719
|
primary: {
|
|
14726
14720
|
main: t.primaryColor || "#1976d2"
|
|
@@ -14909,8 +14903,8 @@ const Tg = (e) => {
|
|
|
14909
14903
|
}, C = /* @__PURE__ */ u(Di, { children: J.map((W) => {
|
|
14910
14904
|
if (!ce(W, U))
|
|
14911
14905
|
return null;
|
|
14912
|
-
const
|
|
14913
|
-
return /* @__PURE__ */ u(H, { sx: { gridColumn: `span ${
|
|
14906
|
+
const _ = te(W);
|
|
14907
|
+
return /* @__PURE__ */ u(H, { sx: { gridColumn: `span ${_}` }, children: /* @__PURE__ */ u(
|
|
14914
14908
|
Nc,
|
|
14915
14909
|
{
|
|
14916
14910
|
field: W,
|
|
@@ -14950,7 +14944,7 @@ const Tg = (e) => {
|
|
|
14950
14944
|
children: Q
|
|
14951
14945
|
}
|
|
14952
14946
|
) : Q;
|
|
14953
|
-
return
|
|
14947
|
+
return ae ? /* @__PURE__ */ u(qu, { theme: ae, children: je }) : je;
|
|
14954
14948
|
}, Uy = ({
|
|
14955
14949
|
src: e,
|
|
14956
14950
|
alt: t,
|
|
@@ -16881,13 +16875,13 @@ var io = {
|
|
|
16881
16875
|
function pu() {
|
|
16882
16876
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Ve(Ve({}, du), e), r = t.accept, n = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, l = t.maxFiles, p = t.onDragEnter, m = t.onDragLeave, f = t.onDragOver, c = t.onDrop, g = t.onDropAccepted, E = t.onDropRejected, h = t.onFileDialogCancel, x = t.onFileDialogOpen, v = t.useFsAccessApi, b = t.autoFocus, P = t.preventDropOnDocument, k = t.noClick, S = t.noKeyboard, $ = t.noDrag, j = t.noDragEventsBubbling, F = t.onError, D = t.validator, d = Ke(function() {
|
|
16883
16877
|
return dy(r);
|
|
16884
|
-
}, [r]),
|
|
16878
|
+
}, [r]), R = Ke(function() {
|
|
16885
16879
|
return uy(r);
|
|
16886
16880
|
}, [r]), M = Ke(function() {
|
|
16887
16881
|
return typeof x == "function" ? x : bl;
|
|
16888
16882
|
}, [x]), A = Ke(function() {
|
|
16889
16883
|
return typeof h == "function" ? h : bl;
|
|
16890
|
-
}, [h]), V = bt(null), U = bt(null),
|
|
16884
|
+
}, [h]), V = bt(null), U = bt(null), oe = gu(Ty, io), ye = Ea(oe, 2), de = ye[0], Y = ye[1], N = de.isFocused, K = de.isFileDialogActive, me = bt(typeof window < "u" && window.isSecureContext && v && cy()), he = function() {
|
|
16891
16885
|
!me.current && K && setTimeout(function() {
|
|
16892
16886
|
if (U.current) {
|
|
16893
16887
|
var I = U.current.files;
|
|
@@ -16913,11 +16907,11 @@ function pu() {
|
|
|
16913
16907
|
return !n && b && V.current && V.current.focus(), function() {
|
|
16914
16908
|
};
|
|
16915
16909
|
}, [V, b, n]);
|
|
16916
|
-
var L = Ne(function(
|
|
16917
|
-
F ? F(
|
|
16918
|
-
}, [F]), te = Ne(function(
|
|
16919
|
-
|
|
16920
|
-
if (!($i(
|
|
16910
|
+
var L = Ne(function(_) {
|
|
16911
|
+
F ? F(_) : console.error(_);
|
|
16912
|
+
}, [F]), te = Ne(function(_) {
|
|
16913
|
+
_.preventDefault(), _.persist(), y(_), pe.current = [].concat(vy(pe.current), [_.target]), ai(_) && Promise.resolve(i(_)).then(function(I) {
|
|
16914
|
+
if (!($i(_) && !j)) {
|
|
16921
16915
|
var G = I.length, Z = G > 0 && ay({
|
|
16922
16916
|
files: I,
|
|
16923
16917
|
accept: d,
|
|
@@ -16932,34 +16926,34 @@ function pu() {
|
|
|
16932
16926
|
isDragReject: B,
|
|
16933
16927
|
isDragActive: !0,
|
|
16934
16928
|
type: "setDraggedFiles"
|
|
16935
|
-
}), p && p(
|
|
16929
|
+
}), p && p(_);
|
|
16936
16930
|
}
|
|
16937
16931
|
}).catch(function(I) {
|
|
16938
16932
|
return L(I);
|
|
16939
16933
|
});
|
|
16940
|
-
}, [i, p, L, j, d, o, a, s, l, D]),
|
|
16941
|
-
|
|
16942
|
-
var I = ai(
|
|
16943
|
-
if (I &&
|
|
16934
|
+
}, [i, p, L, j, d, o, a, s, l, D]), ae = Ne(function(_) {
|
|
16935
|
+
_.preventDefault(), _.persist(), y(_);
|
|
16936
|
+
var I = ai(_);
|
|
16937
|
+
if (I && _.dataTransfer)
|
|
16944
16938
|
try {
|
|
16945
|
-
|
|
16939
|
+
_.dataTransfer.dropEffect = "copy";
|
|
16946
16940
|
} catch {
|
|
16947
16941
|
}
|
|
16948
|
-
return I && f && f(
|
|
16949
|
-
}, [f, j]), le = Ne(function(
|
|
16950
|
-
|
|
16942
|
+
return I && f && f(_), !1;
|
|
16943
|
+
}, [f, j]), le = Ne(function(_) {
|
|
16944
|
+
_.preventDefault(), _.persist(), y(_);
|
|
16951
16945
|
var I = pe.current.filter(function(Z) {
|
|
16952
16946
|
return V.current && V.current.contains(Z);
|
|
16953
|
-
}), G = I.indexOf(
|
|
16947
|
+
}), G = I.indexOf(_.target);
|
|
16954
16948
|
G !== -1 && I.splice(G, 1), pe.current = I, !(I.length > 0) && (Y({
|
|
16955
16949
|
type: "setDraggedFiles",
|
|
16956
16950
|
isDragActive: !1,
|
|
16957
16951
|
isDragAccept: !1,
|
|
16958
16952
|
isDragReject: !1
|
|
16959
|
-
}), ai(
|
|
16960
|
-
}, [V, m, j]), ce = Ne(function(
|
|
16953
|
+
}), ai(_) && m && m(_));
|
|
16954
|
+
}, [V, m, j]), ce = Ne(function(_, I) {
|
|
16961
16955
|
var G = [], Z = [];
|
|
16962
|
-
|
|
16956
|
+
_.forEach(function(B) {
|
|
16963
16957
|
var be = ou(B, d), Ae = Ea(be, 2), Fe = Ae[0], Be = Ae[1], He = su(B, o, a), it = Ea(He, 2), Vt = it[0], at = it[1], Je = D ? D(B) : null;
|
|
16964
16958
|
if (Fe && Vt && !Je)
|
|
16965
16959
|
G.push(B);
|
|
@@ -16983,9 +16977,9 @@ function pu() {
|
|
|
16983
16977
|
isDragReject: Z.length > 0,
|
|
16984
16978
|
type: "setFiles"
|
|
16985
16979
|
}), c && c(G, Z, I), Z.length > 0 && E && E(Z, I), G.length > 0 && g && g(G, I);
|
|
16986
|
-
}, [Y, s, d, o, a, l, c, g, E, D]), Ee = Ne(function(
|
|
16987
|
-
|
|
16988
|
-
$i(
|
|
16980
|
+
}, [Y, s, d, o, a, l, c, g, E, D]), Ee = Ne(function(_) {
|
|
16981
|
+
_.preventDefault(), _.persist(), y(_), pe.current = [], ai(_) && Promise.resolve(i(_)).then(function(I) {
|
|
16982
|
+
$i(_) && !j || ce(I, _);
|
|
16989
16983
|
}).catch(function(I) {
|
|
16990
16984
|
return L(I);
|
|
16991
16985
|
}), Y({
|
|
@@ -16996,11 +16990,11 @@ function pu() {
|
|
|
16996
16990
|
Y({
|
|
16997
16991
|
type: "openDialog"
|
|
16998
16992
|
}), M();
|
|
16999
|
-
var
|
|
16993
|
+
var _ = {
|
|
17000
16994
|
multiple: s,
|
|
17001
|
-
types:
|
|
16995
|
+
types: R
|
|
17002
16996
|
};
|
|
17003
|
-
window.showOpenFilePicker(
|
|
16997
|
+
window.showOpenFilePicker(_).then(function(I) {
|
|
17004
16998
|
return i(I);
|
|
17005
16999
|
}).then(function(I) {
|
|
17006
17000
|
ce(I, null), Y({
|
|
@@ -17016,8 +17010,8 @@ function pu() {
|
|
|
17016
17010
|
U.current && (Y({
|
|
17017
17011
|
type: "openDialog"
|
|
17018
17012
|
}), M(), U.current.value = null, U.current.click());
|
|
17019
|
-
}, [Y, M, A, v, ce, L,
|
|
17020
|
-
!V.current || !V.current.isEqualNode(
|
|
17013
|
+
}, [Y, M, A, v, ce, L, R, s]), je = Ne(function(_) {
|
|
17014
|
+
!V.current || !V.current.isEqualNode(_.target) || (_.key === " " || _.key === "Enter" || _.keyCode === 32 || _.keyCode === 13) && (_.preventDefault(), Q());
|
|
17021
17015
|
}, [V, Q]), Ge = Ne(function() {
|
|
17022
17016
|
Y({
|
|
17023
17017
|
type: "focus"
|
|
@@ -17038,14 +17032,14 @@ function pu() {
|
|
|
17038
17032
|
j && I.stopPropagation();
|
|
17039
17033
|
}, w = Ke(function() {
|
|
17040
17034
|
return function() {
|
|
17041
|
-
var
|
|
17035
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = _.refKey, G = I === void 0 ? "ref" : I, Z = _.role, B = _.onKeyDown, be = _.onFocus, Ae = _.onBlur, Fe = _.onClick, Be = _.onDragEnter, He = _.onDragOver, it = _.onDragLeave, Vt = _.onDrop, at = Pi(_, gy);
|
|
17042
17036
|
return Ve(Ve(no({
|
|
17043
17037
|
onKeyDown: re(Lt(B, je)),
|
|
17044
17038
|
onFocus: re(Lt(be, Ge)),
|
|
17045
17039
|
onBlur: re(Lt(Ae, tt)),
|
|
17046
17040
|
onClick: ue(Lt(Fe, J)),
|
|
17047
17041
|
onDragEnter: ge(Lt(Be, te)),
|
|
17048
|
-
onDragOver: ge(Lt(He,
|
|
17042
|
+
onDragOver: ge(Lt(He, ae)),
|
|
17049
17043
|
onDragLeave: ge(Lt(it, le)),
|
|
17050
17044
|
onDrop: ge(Lt(Vt, Ee)),
|
|
17051
17045
|
role: typeof Z == "string" && Z !== "" ? Z : "presentation"
|
|
@@ -17053,11 +17047,11 @@ function pu() {
|
|
|
17053
17047
|
tabIndex: 0
|
|
17054
17048
|
} : {}), at);
|
|
17055
17049
|
};
|
|
17056
|
-
}, [V, je, Ge, tt, J, te,
|
|
17057
|
-
|
|
17050
|
+
}, [V, je, Ge, tt, J, te, ae, le, Ee, S, $, n]), C = Ne(function(_) {
|
|
17051
|
+
_.stopPropagation();
|
|
17058
17052
|
}, []), W = Ke(function() {
|
|
17059
17053
|
return function() {
|
|
17060
|
-
var
|
|
17054
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = _.refKey, G = I === void 0 ? "ref" : I, Z = _.onChange, B = _.onClick, be = Pi(_, yy), Ae = no({
|
|
17061
17055
|
accept: d,
|
|
17062
17056
|
multiple: s,
|
|
17063
17057
|
type: "file",
|
|
@@ -17208,8 +17202,8 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17208
17202
|
}, [t]);
|
|
17209
17203
|
const $ = Ne(
|
|
17210
17204
|
(V) => {
|
|
17211
|
-
var
|
|
17212
|
-
return ((
|
|
17205
|
+
var oe, ye;
|
|
17206
|
+
return ((oe = e == null ? void 0 : e.fileTypes) == null ? void 0 : oe.some((de) => {
|
|
17213
17207
|
if (de.includes("*")) {
|
|
17214
17208
|
const Y = de.split("/")[0];
|
|
17215
17209
|
return V.type.startsWith(Y);
|
|
@@ -17221,14 +17215,14 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17221
17215
|
), j = Ne(
|
|
17222
17216
|
async (V) => {
|
|
17223
17217
|
console.log("handleFiles called with:", V.length, "files"), x(!0);
|
|
17224
|
-
const U = [],
|
|
17218
|
+
const U = [], oe = [];
|
|
17225
17219
|
try {
|
|
17226
17220
|
for (const de of V) {
|
|
17227
17221
|
let Y = null;
|
|
17228
17222
|
if (e != null && e.multiple && f.some(
|
|
17229
17223
|
(K) => K.file.name === de.name && K.file.size === de.size && K.file.lastModified === de.lastModified
|
|
17230
17224
|
)) {
|
|
17231
|
-
|
|
17225
|
+
oe.push(`${de.name}: File already exists`);
|
|
17232
17226
|
continue;
|
|
17233
17227
|
}
|
|
17234
17228
|
if (Y = $(de), !Y && (e != null && e.customValidation))
|
|
@@ -17239,7 +17233,7 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17239
17233
|
Y = `Custom validation failed: ${N instanceof Error ? N.message : "Unknown error"}`;
|
|
17240
17234
|
}
|
|
17241
17235
|
if (Y)
|
|
17242
|
-
|
|
17236
|
+
oe.push(`${de.name}: ${Y}`);
|
|
17243
17237
|
else {
|
|
17244
17238
|
const N = {
|
|
17245
17239
|
id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
@@ -17253,7 +17247,7 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17253
17247
|
}
|
|
17254
17248
|
}
|
|
17255
17249
|
const ye = e != null && e.multiple ? [...f, ...U] : U;
|
|
17256
|
-
c(ye), r == null || r(ye),
|
|
17250
|
+
c(ye), r == null || r(ye), oe.length > 0 ? (k(oe), E(oe)) : (k([]), E([]));
|
|
17257
17251
|
} catch (ye) {
|
|
17258
17252
|
const de = `Unexpected error: ${ye instanceof Error ? ye.message : "Unknown error"}`;
|
|
17259
17253
|
k([de]), E([de]);
|
|
@@ -17263,7 +17257,7 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17263
17257
|
), F = Ne(
|
|
17264
17258
|
(V) => {
|
|
17265
17259
|
x(!0);
|
|
17266
|
-
const U = f.filter((
|
|
17260
|
+
const U = f.filter((oe) => oe.id !== V);
|
|
17267
17261
|
c(U), r == null || r(U), k([]), S.current && (S.current.value = "");
|
|
17268
17262
|
},
|
|
17269
17263
|
[f, r]
|
|
@@ -17275,7 +17269,7 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17275
17269
|
k([]), b(!0);
|
|
17276
17270
|
const V = f.filter((U) => U.status !== "error");
|
|
17277
17271
|
n == null || n(V);
|
|
17278
|
-
}, [f, n, e == null ? void 0 : e.required, e == null ? void 0 : e.title]), { getRootProps: d, getInputProps:
|
|
17272
|
+
}, [f, n, e == null ? void 0 : e.required, e == null ? void 0 : e.title]), { getRootProps: d, getInputProps: R, isDragActive: M } = pu({
|
|
17279
17273
|
onDrop: j,
|
|
17280
17274
|
multiple: e == null ? void 0 : e.multiple,
|
|
17281
17275
|
disabled: i,
|
|
@@ -17333,7 +17327,7 @@ const Oy = yt(/* @__PURE__ */ u("path", {
|
|
|
17333
17327
|
}
|
|
17334
17328
|
}
|
|
17335
17329
|
},
|
|
17336
|
-
/* @__PURE__ */ u("input", { ...
|
|
17330
|
+
/* @__PURE__ */ u("input", { ...R(), ref: S }),
|
|
17337
17331
|
/* @__PURE__ */ u(
|
|
17338
17332
|
Mi,
|
|
17339
17333
|
{
|