@fangzsx/component-library 0.0.31 → 0.0.32
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/components/Checkbox/index.d.ts +4 -1
- package/dist/components/Checkbox/index.js +87 -76
- package/dist/components/CheckboxGroup/index.d.ts +2 -1
- package/dist/components/CheckboxGroup/index.js +33 -31
- package/dist/components/TextFieldInput/index.d.ts +2 -1
- package/dist/components/TextFieldInput/index.js +271 -272
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as Te, jsx as I } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as c from "react";
|
|
3
3
|
import ot, { useState as Bt } from "react";
|
|
4
4
|
import { P as e, a as de, g as fe, c as Re, j as on, k as Nt, r as kt } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
5
5
|
import { s as U, u as be, c as pe, m as ye, a as ce, r as we, e as Ln } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
@@ -27,9 +27,9 @@ function un(t) {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
const to = /* @__PURE__ */
|
|
30
|
+
const to = /* @__PURE__ */ c.createContext();
|
|
31
31
|
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
32
|
-
const no = () =>
|
|
32
|
+
const no = () => c.useContext(to) ?? !1;
|
|
33
33
|
function pn(t, n = 166) {
|
|
34
34
|
let o;
|
|
35
35
|
function r(...a) {
|
|
@@ -418,7 +418,7 @@ function io(t) {
|
|
|
418
418
|
function Ht(t) {
|
|
419
419
|
return io(t) || t.outerHeightStyle === 0 && !t.overflowing;
|
|
420
420
|
}
|
|
421
|
-
const dn = /* @__PURE__ */
|
|
421
|
+
const dn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
422
422
|
const {
|
|
423
423
|
onChange: r,
|
|
424
424
|
maxRows: a,
|
|
@@ -428,19 +428,19 @@ const dn = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
428
428
|
...d
|
|
429
429
|
} = n, {
|
|
430
430
|
current: m
|
|
431
|
-
} =
|
|
432
|
-
const
|
|
433
|
-
if (!
|
|
431
|
+
} = c.useRef(l != null), b = c.useRef(null), y = ve(o, b), E = c.useRef(null), f = c.useRef(null), h = c.useCallback(() => {
|
|
432
|
+
const u = b.current, p = f.current;
|
|
433
|
+
if (!u || !p)
|
|
434
434
|
return;
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
435
|
+
const T = Se(u).getComputedStyle(u);
|
|
436
|
+
if (T.width === "0px")
|
|
437
437
|
return {
|
|
438
438
|
outerHeightStyle: 0,
|
|
439
439
|
overflowing: !1
|
|
440
440
|
};
|
|
441
|
-
p.style.width =
|
|
441
|
+
p.style.width = T.width, p.value = u.value || n.placeholder || "x", p.value.slice(-1) === `
|
|
442
442
|
` && (p.value += " ");
|
|
443
|
-
const C =
|
|
443
|
+
const C = T.boxSizing, w = st(T.paddingBottom) + st(T.paddingTop), D = st(T.borderBottomWidth) + st(T.borderTopWidth), B = p.scrollHeight;
|
|
444
444
|
p.value = "x";
|
|
445
445
|
const $ = p.scrollHeight;
|
|
446
446
|
let j = B;
|
|
@@ -451,42 +451,42 @@ const dn = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
451
451
|
overflowing: M
|
|
452
452
|
};
|
|
453
453
|
}, [a, s, n.placeholder]), N = wt(() => {
|
|
454
|
-
const
|
|
455
|
-
if (!
|
|
454
|
+
const u = b.current, p = h();
|
|
455
|
+
if (!u || !p || Ht(p))
|
|
456
456
|
return !1;
|
|
457
457
|
const v = p.outerHeightStyle;
|
|
458
458
|
return E.current != null && E.current !== v;
|
|
459
|
-
}),
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
459
|
+
}), O = c.useCallback(() => {
|
|
460
|
+
const u = b.current, p = h();
|
|
461
|
+
if (!u || !p || Ht(p))
|
|
462
462
|
return;
|
|
463
463
|
const v = p.outerHeightStyle;
|
|
464
|
-
E.current !== v && (E.current = v,
|
|
465
|
-
}, [h]), g =
|
|
464
|
+
E.current !== v && (E.current = v, u.style.height = `${v}px`), u.style.overflow = p.overflowing ? "hidden" : "";
|
|
465
|
+
}, [h]), g = c.useRef(-1);
|
|
466
466
|
ze(() => {
|
|
467
|
-
const
|
|
467
|
+
const u = pn(O), p = b?.current;
|
|
468
468
|
if (!p)
|
|
469
469
|
return;
|
|
470
470
|
const v = Se(p);
|
|
471
|
-
v.addEventListener("resize",
|
|
472
|
-
let
|
|
473
|
-
return typeof ResizeObserver < "u" && (
|
|
474
|
-
N() && (
|
|
475
|
-
|
|
471
|
+
v.addEventListener("resize", u);
|
|
472
|
+
let T;
|
|
473
|
+
return typeof ResizeObserver < "u" && (T = new ResizeObserver(() => {
|
|
474
|
+
N() && (T.unobserve(p), cancelAnimationFrame(g.current), O(), g.current = requestAnimationFrame(() => {
|
|
475
|
+
T.observe(p);
|
|
476
476
|
}));
|
|
477
|
-
}),
|
|
478
|
-
|
|
477
|
+
}), T.observe(p)), () => {
|
|
478
|
+
u.clear(), cancelAnimationFrame(g.current), v.removeEventListener("resize", u), T && T.disconnect();
|
|
479
479
|
};
|
|
480
|
-
}, [h,
|
|
481
|
-
|
|
480
|
+
}, [h, O, N]), ze(() => {
|
|
481
|
+
O();
|
|
482
482
|
});
|
|
483
|
-
const R = (
|
|
484
|
-
m ||
|
|
485
|
-
const p =
|
|
483
|
+
const R = (u) => {
|
|
484
|
+
m || O();
|
|
485
|
+
const p = u.target, v = p.value.length, T = p.value.endsWith(`
|
|
486
486
|
`), C = p.selectionStart === v;
|
|
487
|
-
|
|
487
|
+
T && C && p.setSelectionRange(v, v), r && r(u);
|
|
488
488
|
};
|
|
489
|
-
return /* @__PURE__ */ Te(
|
|
489
|
+
return /* @__PURE__ */ Te(c.Fragment, {
|
|
490
490
|
children: [/* @__PURE__ */ I("textarea", {
|
|
491
491
|
value: l,
|
|
492
492
|
onChange: R,
|
|
@@ -750,7 +750,7 @@ const ft = (t, n) => {
|
|
|
750
750
|
display: "block"
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
}), gt = /* @__PURE__ */
|
|
753
|
+
}), gt = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
754
754
|
const r = be({
|
|
755
755
|
props: n,
|
|
756
756
|
name: "MuiInputBase"
|
|
@@ -767,13 +767,13 @@ const ft = (t, n) => {
|
|
|
767
767
|
disableInjectingGlobalStyles: f,
|
|
768
768
|
endAdornment: h,
|
|
769
769
|
error: N,
|
|
770
|
-
fullWidth:
|
|
770
|
+
fullWidth: O = !1,
|
|
771
771
|
id: g,
|
|
772
772
|
inputComponent: R = "input",
|
|
773
|
-
inputProps:
|
|
773
|
+
inputProps: u = {},
|
|
774
774
|
inputRef: p,
|
|
775
775
|
margin: v,
|
|
776
|
-
maxRows:
|
|
776
|
+
maxRows: T,
|
|
777
777
|
minRows: C,
|
|
778
778
|
multiline: w = !1,
|
|
779
779
|
name: D,
|
|
@@ -794,13 +794,13 @@ const ft = (t, n) => {
|
|
|
794
794
|
type: ae = "text",
|
|
795
795
|
value: Q,
|
|
796
796
|
...ee
|
|
797
|
-
} = r, te =
|
|
797
|
+
} = r, te = u.value != null ? u.value : Q, {
|
|
798
798
|
current: he
|
|
799
|
-
} =
|
|
799
|
+
} = c.useRef(te != null), Z = c.useRef(), L = c.useCallback((K) => {
|
|
800
800
|
process.env.NODE_ENV !== "production" && K && K.nodeName !== "INPUT" && !K.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
801
801
|
`));
|
|
802
|
-
}, []), A = ve(Z, p,
|
|
803
|
-
process.env.NODE_ENV !== "production" &&
|
|
802
|
+
}, []), A = ve(Z, p, u.ref, L), [G, ie] = c.useState(!1), F = pt();
|
|
803
|
+
process.env.NODE_ENV !== "production" && c.useEffect(() => {
|
|
804
804
|
if (F)
|
|
805
805
|
return F.registerEffect();
|
|
806
806
|
}, [F]);
|
|
@@ -809,10 +809,10 @@ const ft = (t, n) => {
|
|
|
809
809
|
muiFormControl: F,
|
|
810
810
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
811
811
|
});
|
|
812
|
-
_.focused = F ? F.focused : G,
|
|
812
|
+
_.focused = F ? F.focused : G, c.useEffect(() => {
|
|
813
813
|
!F && E && G && (ie(!1), B && B());
|
|
814
814
|
}, [F, E, G, B]);
|
|
815
|
-
const ue = F && F.onFilled, Ee = F && F.onEmpty, me =
|
|
815
|
+
const ue = F && F.onFilled, Ee = F && F.onEmpty, me = c.useCallback((K) => {
|
|
816
816
|
sn(K) ? ue && ue() : Ee && Ee();
|
|
817
817
|
}, [ue, Ee]);
|
|
818
818
|
ze(() => {
|
|
@@ -821,9 +821,9 @@ const ft = (t, n) => {
|
|
|
821
821
|
});
|
|
822
822
|
}, [te, me, he]);
|
|
823
823
|
const le = (K) => {
|
|
824
|
-
q && q(K),
|
|
824
|
+
q && q(K), u.onFocus && u.onFocus(K), F && F.onFocus ? F.onFocus(K) : ie(!0);
|
|
825
825
|
}, Ce = (K) => {
|
|
826
|
-
B && B(K),
|
|
826
|
+
B && B(K), u.onBlur && u.onBlur(K), F && F.onBlur ? F.onBlur(K) : ie(!1);
|
|
827
827
|
}, ne = (K, ..._e) => {
|
|
828
828
|
if (!he) {
|
|
829
829
|
const Pe = K.target || Z.current;
|
|
@@ -833,23 +833,23 @@ const ft = (t, n) => {
|
|
|
833
833
|
value: Pe.value
|
|
834
834
|
});
|
|
835
835
|
}
|
|
836
|
-
|
|
836
|
+
u.onChange && u.onChange(K, ..._e), $ && $(K, ..._e);
|
|
837
837
|
};
|
|
838
|
-
|
|
838
|
+
c.useEffect(() => {
|
|
839
839
|
me(Z.current);
|
|
840
840
|
}, []);
|
|
841
841
|
const Ue = (K) => {
|
|
842
842
|
Z.current && K.currentTarget === K.target && Z.current.focus(), j && j(K);
|
|
843
843
|
};
|
|
844
|
-
let ke = R, J =
|
|
845
|
-
w && ke === "input" && (k ? (process.env.NODE_ENV !== "production" && (C ||
|
|
844
|
+
let ke = R, J = u;
|
|
845
|
+
w && ke === "input" && (k ? (process.env.NODE_ENV !== "production" && (C || T) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), J = {
|
|
846
846
|
type: void 0,
|
|
847
847
|
minRows: k,
|
|
848
848
|
maxRows: k,
|
|
849
849
|
...J
|
|
850
850
|
}) : J = {
|
|
851
851
|
type: void 0,
|
|
852
|
-
maxRows:
|
|
852
|
+
maxRows: T,
|
|
853
853
|
minRows: C,
|
|
854
854
|
...J
|
|
855
855
|
}, ke = dn);
|
|
@@ -858,7 +858,7 @@ const ft = (t, n) => {
|
|
|
858
858
|
value: "x"
|
|
859
859
|
});
|
|
860
860
|
};
|
|
861
|
-
|
|
861
|
+
c.useEffect(() => {
|
|
862
862
|
F && F.setAdornedStart(!!Y);
|
|
863
863
|
}, [F, Y]);
|
|
864
864
|
const Ie = {
|
|
@@ -869,7 +869,7 @@ const ft = (t, n) => {
|
|
|
869
869
|
error: _.error,
|
|
870
870
|
focused: _.focused,
|
|
871
871
|
formControl: F,
|
|
872
|
-
fullWidth:
|
|
872
|
+
fullWidth: O,
|
|
873
873
|
hiddenLabel: _.hiddenLabel,
|
|
874
874
|
multiline: w,
|
|
875
875
|
size: _.size,
|
|
@@ -879,7 +879,7 @@ const ft = (t, n) => {
|
|
|
879
879
|
return J = {
|
|
880
880
|
...J,
|
|
881
881
|
...z.input ?? b.input
|
|
882
|
-
}, /* @__PURE__ */ Te(
|
|
882
|
+
}, /* @__PURE__ */ Te(c.Fragment, {
|
|
883
883
|
children: [!f && typeof qt == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
884
884
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
885
885
|
(_t || (_t = /* @__PURE__ */ I(qt, {}))), /* @__PURE__ */ Te(je, {
|
|
@@ -1276,7 +1276,7 @@ const qe = {
|
|
|
1276
1276
|
name: "MuiInput",
|
|
1277
1277
|
slot: "Input",
|
|
1278
1278
|
overridesResolver: mt
|
|
1279
|
-
})({}), yt = /* @__PURE__ */
|
|
1279
|
+
})({}), yt = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
1280
1280
|
const r = be({
|
|
1281
1281
|
props: n,
|
|
1282
1282
|
name: "MuiInput"
|
|
@@ -1291,17 +1291,17 @@ const qe = {
|
|
|
1291
1291
|
slots: y = {},
|
|
1292
1292
|
type: E = "text",
|
|
1293
1293
|
...f
|
|
1294
|
-
} = r, h = uo(r),
|
|
1294
|
+
} = r, h = uo(r), O = {
|
|
1295
1295
|
root: {
|
|
1296
1296
|
ownerState: {
|
|
1297
1297
|
disableUnderline: a
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
}, g = b ?? i ? Nt(b ?? i,
|
|
1300
|
+
}, g = b ?? i ? Nt(b ?? i, O) : O, R = y.root ?? s.Root ?? po, u = y.input ?? s.Input ?? fo;
|
|
1301
1301
|
return /* @__PURE__ */ I(gt, {
|
|
1302
1302
|
slots: {
|
|
1303
1303
|
root: R,
|
|
1304
|
-
input:
|
|
1304
|
+
input: u
|
|
1305
1305
|
},
|
|
1306
1306
|
slotProps: g,
|
|
1307
1307
|
fullWidth: l,
|
|
@@ -1748,7 +1748,7 @@ const Fe = {
|
|
|
1748
1748
|
paddingRight: 0
|
|
1749
1749
|
}
|
|
1750
1750
|
}]
|
|
1751
|
-
}))), vt = /* @__PURE__ */
|
|
1751
|
+
}))), vt = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
1752
1752
|
const r = be({
|
|
1753
1753
|
props: n,
|
|
1754
1754
|
name: "MuiFilledInput"
|
|
@@ -1772,17 +1772,17 @@ const Fe = {
|
|
|
1772
1772
|
inputComponent: m,
|
|
1773
1773
|
multiline: b,
|
|
1774
1774
|
type: f
|
|
1775
|
-
},
|
|
1775
|
+
}, O = bo(r), g = {
|
|
1776
1776
|
root: {
|
|
1777
1777
|
ownerState: N
|
|
1778
1778
|
},
|
|
1779
1779
|
input: {
|
|
1780
1780
|
ownerState: N
|
|
1781
1781
|
}
|
|
1782
|
-
}, R = y ?? i ? Nt(g, y ?? i) : g,
|
|
1782
|
+
}, R = y ?? i ? Nt(g, y ?? i) : g, u = E.root ?? s.Root ?? ho, p = E.input ?? s.Input ?? go;
|
|
1783
1783
|
return /* @__PURE__ */ I(gt, {
|
|
1784
1784
|
slots: {
|
|
1785
|
-
root:
|
|
1785
|
+
root: u,
|
|
1786
1786
|
input: p
|
|
1787
1787
|
},
|
|
1788
1788
|
slotProps: R,
|
|
@@ -1792,7 +1792,7 @@ const Fe = {
|
|
|
1792
1792
|
ref: o,
|
|
1793
1793
|
type: f,
|
|
1794
1794
|
...h,
|
|
1795
|
-
classes:
|
|
1795
|
+
classes: O
|
|
1796
1796
|
});
|
|
1797
1797
|
});
|
|
1798
1798
|
process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
@@ -2292,7 +2292,7 @@ const xe = {
|
|
|
2292
2292
|
paddingRight: 0
|
|
2293
2293
|
}
|
|
2294
2294
|
}]
|
|
2295
|
-
}))), Et = /* @__PURE__ */
|
|
2295
|
+
}))), Et = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
2296
2296
|
const r = be({
|
|
2297
2297
|
props: n,
|
|
2298
2298
|
name: "MuiOutlinedInput"
|
|
@@ -2307,23 +2307,23 @@ const xe = {
|
|
|
2307
2307
|
slotProps: y = {},
|
|
2308
2308
|
type: E = "text",
|
|
2309
2309
|
...f
|
|
2310
|
-
} = r, h = xo(r), N = pt(),
|
|
2310
|
+
} = r, h = xo(r), N = pt(), O = dt({
|
|
2311
2311
|
props: r,
|
|
2312
2312
|
muiFormControl: N,
|
|
2313
2313
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
2314
2314
|
}), g = {
|
|
2315
2315
|
...r,
|
|
2316
|
-
color:
|
|
2317
|
-
disabled:
|
|
2318
|
-
error:
|
|
2319
|
-
focused:
|
|
2316
|
+
color: O.color || "primary",
|
|
2317
|
+
disabled: O.disabled,
|
|
2318
|
+
error: O.error,
|
|
2319
|
+
focused: O.focused,
|
|
2320
2320
|
formControl: N,
|
|
2321
2321
|
fullWidth: s,
|
|
2322
|
-
hiddenLabel:
|
|
2322
|
+
hiddenLabel: O.hiddenLabel,
|
|
2323
2323
|
multiline: d,
|
|
2324
|
-
size:
|
|
2324
|
+
size: O.size,
|
|
2325
2325
|
type: E
|
|
2326
|
-
}, R = b.root ?? a.Root ?? To,
|
|
2326
|
+
}, R = b.root ?? a.Root ?? To, u = b.input ?? a.Input ?? Po, [p, v] = re("notchedOutline", {
|
|
2327
2327
|
elementType: Oo,
|
|
2328
2328
|
className: h.notchedOutline,
|
|
2329
2329
|
shouldForwardComponentProp: !0,
|
|
@@ -2333,7 +2333,7 @@ const xe = {
|
|
|
2333
2333
|
slotProps: y
|
|
2334
2334
|
},
|
|
2335
2335
|
additionalProps: {
|
|
2336
|
-
label: l != null && l !== "" &&
|
|
2336
|
+
label: l != null && l !== "" && O.required ? /* @__PURE__ */ Te(c.Fragment, {
|
|
2337
2337
|
children: [l, " ", "*"]
|
|
2338
2338
|
}) : l
|
|
2339
2339
|
}
|
|
@@ -2341,12 +2341,12 @@ const xe = {
|
|
|
2341
2341
|
return /* @__PURE__ */ I(gt, {
|
|
2342
2342
|
slots: {
|
|
2343
2343
|
root: R,
|
|
2344
|
-
input:
|
|
2344
|
+
input: u
|
|
2345
2345
|
},
|
|
2346
2346
|
slotProps: y,
|
|
2347
|
-
renderSuffix: (
|
|
2347
|
+
renderSuffix: (T) => /* @__PURE__ */ I(p, {
|
|
2348
2348
|
...v,
|
|
2349
|
-
notched: typeof m < "u" ? m : !!(
|
|
2349
|
+
notched: typeof m < "u" ? m : !!(T.startAdornment || T.filled || T.focused)
|
|
2350
2350
|
}),
|
|
2351
2351
|
fullWidth: s,
|
|
2352
2352
|
inputComponent: i,
|
|
@@ -2689,7 +2689,7 @@ const So = (t) => {
|
|
|
2689
2689
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
2690
2690
|
}
|
|
2691
2691
|
}]
|
|
2692
|
-
}))), mn = /* @__PURE__ */
|
|
2692
|
+
}))), mn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
2693
2693
|
const r = be({
|
|
2694
2694
|
name: "MuiInputLabel",
|
|
2695
2695
|
props: n
|
|
@@ -2794,7 +2794,7 @@ process.env.NODE_ENV !== "production" && (mn.propTypes = {
|
|
|
2794
2794
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
2795
2795
|
});
|
|
2796
2796
|
function et(t) {
|
|
2797
|
-
return parseInt(
|
|
2797
|
+
return parseInt(c.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
|
|
2798
2798
|
}
|
|
2799
2799
|
function Qe(t, n, o, r, a) {
|
|
2800
2800
|
if (process.env.NODE_ENV === "production")
|
|
@@ -2821,7 +2821,7 @@ function Co(t) {
|
|
|
2821
2821
|
ref: m
|
|
2822
2822
|
}, r);
|
|
2823
2823
|
}
|
|
2824
|
-
const bn = /* @__PURE__ */
|
|
2824
|
+
const bn = /* @__PURE__ */ c.createContext({});
|
|
2825
2825
|
process.env.NODE_ENV !== "production" && (bn.displayName = "ListContext");
|
|
2826
2826
|
function Io(t) {
|
|
2827
2827
|
return fe("MuiList", t);
|
|
@@ -2867,7 +2867,7 @@ const No = (t) => {
|
|
|
2867
2867
|
paddingTop: 0
|
|
2868
2868
|
}
|
|
2869
2869
|
}]
|
|
2870
|
-
}), hn = /* @__PURE__ */
|
|
2870
|
+
}), hn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
2871
2871
|
const r = be({
|
|
2872
2872
|
props: n,
|
|
2873
2873
|
name: "MuiList"
|
|
@@ -2879,7 +2879,7 @@ const No = (t) => {
|
|
|
2879
2879
|
disablePadding: d = !1,
|
|
2880
2880
|
subheader: m,
|
|
2881
2881
|
...b
|
|
2882
|
-
} = r, y =
|
|
2882
|
+
} = r, y = c.useMemo(() => ({
|
|
2883
2883
|
dense: l
|
|
2884
2884
|
}), [l]), E = {
|
|
2885
2885
|
...r,
|
|
@@ -2980,7 +2980,7 @@ function Ke(t, n, o, r, a, s) {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
return !1;
|
|
2982
2982
|
}
|
|
2983
|
-
const vn = /* @__PURE__ */
|
|
2983
|
+
const vn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
2984
2984
|
const {
|
|
2985
2985
|
// private
|
|
2986
2986
|
// eslint-disable-next-line react/prop-types
|
|
@@ -2994,7 +2994,7 @@ const vn = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
2994
2994
|
onKeyDown: b,
|
|
2995
2995
|
variant: y = "selectedMenu",
|
|
2996
2996
|
...E
|
|
2997
|
-
} = n, f =
|
|
2997
|
+
} = n, f = c.useRef(null), h = c.useRef({
|
|
2998
2998
|
keys: [],
|
|
2999
2999
|
repeating: !0,
|
|
3000
3000
|
previousKeyMatched: !0,
|
|
@@ -3002,60 +3002,60 @@ const vn = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
3002
3002
|
});
|
|
3003
3003
|
ze(() => {
|
|
3004
3004
|
a && f.current.focus();
|
|
3005
|
-
}, [a]),
|
|
3006
|
-
adjustStyleForScrollbar: (
|
|
3005
|
+
}, [a]), c.useImperativeHandle(r, () => ({
|
|
3006
|
+
adjustStyleForScrollbar: (u, {
|
|
3007
3007
|
direction: p
|
|
3008
3008
|
}) => {
|
|
3009
3009
|
const v = !f.current.style.width;
|
|
3010
|
-
if (
|
|
3011
|
-
const
|
|
3012
|
-
f.current.style[p === "rtl" ? "paddingLeft" : "paddingRight"] =
|
|
3010
|
+
if (u.clientHeight < f.current.clientHeight && v) {
|
|
3011
|
+
const T = `${gn(Se(u))}px`;
|
|
3012
|
+
f.current.style[p === "rtl" ? "paddingLeft" : "paddingRight"] = T, f.current.style.width = `calc(100% + ${T})`;
|
|
3013
3013
|
}
|
|
3014
3014
|
return f.current;
|
|
3015
3015
|
}
|
|
3016
3016
|
}), []);
|
|
3017
|
-
const N = (
|
|
3018
|
-
const p = f.current, v =
|
|
3019
|
-
if (
|
|
3020
|
-
b && b(
|
|
3017
|
+
const N = (u) => {
|
|
3018
|
+
const p = f.current, v = u.key;
|
|
3019
|
+
if (u.ctrlKey || u.metaKey || u.altKey) {
|
|
3020
|
+
b && b(u);
|
|
3021
3021
|
return;
|
|
3022
3022
|
}
|
|
3023
3023
|
const C = Ye(ge(p));
|
|
3024
3024
|
if (v === "ArrowDown")
|
|
3025
|
-
|
|
3025
|
+
u.preventDefault(), Ke(p, C, m, d, Ot);
|
|
3026
3026
|
else if (v === "ArrowUp")
|
|
3027
|
-
|
|
3027
|
+
u.preventDefault(), Ke(p, C, m, d, Gt);
|
|
3028
3028
|
else if (v === "Home")
|
|
3029
|
-
|
|
3029
|
+
u.preventDefault(), Ke(p, null, m, d, Ot);
|
|
3030
3030
|
else if (v === "End")
|
|
3031
|
-
|
|
3031
|
+
u.preventDefault(), Ke(p, null, m, d, Gt);
|
|
3032
3032
|
else if (v.length === 1) {
|
|
3033
3033
|
const w = h.current, D = v.toLowerCase(), B = performance.now();
|
|
3034
3034
|
w.keys.length > 0 && (B - w.lastTime > 500 ? (w.keys = [], w.repeating = !0, w.previousKeyMatched = !0) : w.repeating && D !== w.keys[0] && (w.repeating = !1)), w.lastTime = B, w.keys.push(D);
|
|
3035
3035
|
const $ = C && !w.repeating && yn(C, w);
|
|
3036
|
-
w.previousKeyMatched && ($ || Ke(p, C, !1, d, Ot, w)) ?
|
|
3036
|
+
w.previousKeyMatched && ($ || Ke(p, C, !1, d, Ot, w)) ? u.preventDefault() : w.previousKeyMatched = !1;
|
|
3037
3037
|
}
|
|
3038
|
-
b && b(
|
|
3039
|
-
},
|
|
3038
|
+
b && b(u);
|
|
3039
|
+
}, O = ve(f, o);
|
|
3040
3040
|
let g = -1;
|
|
3041
|
-
|
|
3042
|
-
if (!/* @__PURE__ */
|
|
3041
|
+
c.Children.forEach(i, (u, p) => {
|
|
3042
|
+
if (!/* @__PURE__ */ c.isValidElement(u)) {
|
|
3043
3043
|
g === p && (g += 1, g >= i.length && (g = -1));
|
|
3044
3044
|
return;
|
|
3045
3045
|
}
|
|
3046
|
-
process.env.NODE_ENV !== "production" && kt.isFragment(
|
|
3047
|
-
`)),
|
|
3046
|
+
process.env.NODE_ENV !== "production" && kt.isFragment(u) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
3047
|
+
`)), u.props.disabled || (y === "selectedMenu" && u.props.selected || g === -1) && (g = p), g === p && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (g += 1, g >= i.length && (g = -1));
|
|
3048
3048
|
});
|
|
3049
|
-
const R =
|
|
3049
|
+
const R = c.Children.map(i, (u, p) => {
|
|
3050
3050
|
if (p === g) {
|
|
3051
3051
|
const v = {};
|
|
3052
|
-
return s && (v.autoFocus = !0),
|
|
3052
|
+
return s && (v.autoFocus = !0), u.props.tabIndex === void 0 && y === "selectedMenu" && (v.tabIndex = 0), /* @__PURE__ */ c.cloneElement(u, v);
|
|
3053
3053
|
}
|
|
3054
|
-
return
|
|
3054
|
+
return u;
|
|
3055
3055
|
});
|
|
3056
3056
|
return /* @__PURE__ */ I(hn, {
|
|
3057
3057
|
role: "menu",
|
|
3058
|
-
ref:
|
|
3058
|
+
ref: O,
|
|
3059
3059
|
className: l,
|
|
3060
3060
|
onKeyDown: N,
|
|
3061
3061
|
tabIndex: a ? 0 : -1,
|
|
@@ -3153,7 +3153,7 @@ const Fo = {
|
|
|
3153
3153
|
opacity: 1,
|
|
3154
3154
|
transform: "none"
|
|
3155
3155
|
}
|
|
3156
|
-
}, Pt = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), lt = /* @__PURE__ */
|
|
3156
|
+
}, Pt = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), lt = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
3157
3157
|
const {
|
|
3158
3158
|
addEndListener: r,
|
|
3159
3159
|
appear: a = !0,
|
|
@@ -3169,9 +3169,9 @@ const Fo = {
|
|
|
3169
3169
|
style: h,
|
|
3170
3170
|
timeout: N = "auto",
|
|
3171
3171
|
// eslint-disable-next-line react/prop-types
|
|
3172
|
-
TransitionComponent:
|
|
3172
|
+
TransitionComponent: O = Oe,
|
|
3173
3173
|
...g
|
|
3174
|
-
} = n, R = Kn(),
|
|
3174
|
+
} = n, R = Kn(), u = c.useRef(), p = cn(), v = c.useRef(null), T = ve(v, et(s), o), C = (x) => (P) => {
|
|
3175
3175
|
if (x) {
|
|
3176
3176
|
const V = v.current;
|
|
3177
3177
|
P === void 0 ? x(V) : x(V, P);
|
|
@@ -3190,7 +3190,7 @@ const Fo = {
|
|
|
3190
3190
|
mode: "enter"
|
|
3191
3191
|
});
|
|
3192
3192
|
let H;
|
|
3193
|
-
N === "auto" ? (H = p.transitions.getAutoHeightDuration(x.clientHeight),
|
|
3193
|
+
N === "auto" ? (H = p.transitions.getAutoHeightDuration(x.clientHeight), u.current = H) : H = V, x.style.transition = [p.transitions.create("opacity", {
|
|
3194
3194
|
duration: H,
|
|
3195
3195
|
delay: X
|
|
3196
3196
|
}), p.transitions.create("transform", {
|
|
@@ -3211,7 +3211,7 @@ const Fo = {
|
|
|
3211
3211
|
mode: "exit"
|
|
3212
3212
|
});
|
|
3213
3213
|
let k;
|
|
3214
|
-
N === "auto" ? (k = p.transitions.getAutoHeightDuration(x.clientHeight),
|
|
3214
|
+
N === "auto" ? (k = p.transitions.getAutoHeightDuration(x.clientHeight), u.current = k) : k = P, x.style.transition = [p.transitions.create("opacity", {
|
|
3215
3215
|
duration: k,
|
|
3216
3216
|
delay: V
|
|
3217
3217
|
}), p.transitions.create("transform", {
|
|
@@ -3220,7 +3220,7 @@ const Fo = {
|
|
|
3220
3220
|
easing: X
|
|
3221
3221
|
})].join(","), x.style.opacity = 0, x.style.transform = It(0.75), y && y(x);
|
|
3222
3222
|
}), q = C(E);
|
|
3223
|
-
return /* @__PURE__ */ I(
|
|
3223
|
+
return /* @__PURE__ */ I(O, {
|
|
3224
3224
|
appear: a,
|
|
3225
3225
|
in: l,
|
|
3226
3226
|
nodeRef: v,
|
|
@@ -3231,14 +3231,14 @@ const Fo = {
|
|
|
3231
3231
|
onExited: q,
|
|
3232
3232
|
onExiting: $,
|
|
3233
3233
|
addEndListener: (x) => {
|
|
3234
|
-
N === "auto" && R.start(
|
|
3234
|
+
N === "auto" && R.start(u.current || 0, x), r && r(v.current, x);
|
|
3235
3235
|
},
|
|
3236
3236
|
timeout: N === "auto" ? null : N,
|
|
3237
3237
|
...g,
|
|
3238
3238
|
children: (x, {
|
|
3239
3239
|
ownerState: P,
|
|
3240
3240
|
...V
|
|
3241
|
-
}) => /* @__PURE__ */
|
|
3241
|
+
}) => /* @__PURE__ */ c.cloneElement(s, {
|
|
3242
3242
|
style: {
|
|
3243
3243
|
opacity: 0,
|
|
3244
3244
|
transform: It(0.75),
|
|
@@ -3247,7 +3247,7 @@ const Fo = {
|
|
|
3247
3247
|
...h,
|
|
3248
3248
|
...s.props.style
|
|
3249
3249
|
},
|
|
3250
|
-
ref:
|
|
3250
|
+
ref: T,
|
|
3251
3251
|
...V
|
|
3252
3252
|
})
|
|
3253
3253
|
});
|
|
@@ -3486,30 +3486,30 @@ function ct(t) {
|
|
|
3486
3486
|
getTabbable: s = Vo,
|
|
3487
3487
|
isEnabled: i = Ho,
|
|
3488
3488
|
open: l
|
|
3489
|
-
} = t, d =
|
|
3490
|
-
|
|
3489
|
+
} = t, d = c.useRef(!1), m = c.useRef(null), b = c.useRef(null), y = c.useRef(null), E = c.useRef(null), f = c.useRef(!1), h = c.useRef(null), N = ve(et(n), h), O = c.useRef(null);
|
|
3490
|
+
c.useEffect(() => {
|
|
3491
3491
|
!l || !h.current || (f.current = !o);
|
|
3492
|
-
}, [o, l]),
|
|
3492
|
+
}, [o, l]), c.useEffect(() => {
|
|
3493
3493
|
if (!l || !h.current)
|
|
3494
3494
|
return;
|
|
3495
|
-
const
|
|
3495
|
+
const u = ge(h.current), p = Ye(u);
|
|
3496
3496
|
return h.current.contains(p) || (h.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
3497
3497
|
`)), h.current.setAttribute("tabIndex", "-1")), f.current && h.current.focus()), () => {
|
|
3498
3498
|
a || (y.current && y.current.focus && (d.current = !0, y.current.focus()), y.current = null);
|
|
3499
3499
|
};
|
|
3500
|
-
}, [l]),
|
|
3500
|
+
}, [l]), c.useEffect(() => {
|
|
3501
3501
|
if (!l || !h.current)
|
|
3502
3502
|
return;
|
|
3503
|
-
const
|
|
3504
|
-
if (
|
|
3503
|
+
const u = ge(h.current), p = (C) => {
|
|
3504
|
+
if (O.current = C, r || !i() || C.key !== "Tab")
|
|
3505
3505
|
return;
|
|
3506
|
-
Ye(
|
|
3506
|
+
Ye(u) === h.current && C.shiftKey && (d.current = !0, b.current && b.current.focus());
|
|
3507
3507
|
}, v = () => {
|
|
3508
3508
|
const C = h.current;
|
|
3509
3509
|
if (C === null)
|
|
3510
3510
|
return;
|
|
3511
|
-
const w = Ye(
|
|
3512
|
-
if (!
|
|
3511
|
+
const w = Ye(u);
|
|
3512
|
+
if (!u.hasFocus() || !i() || d.current) {
|
|
3513
3513
|
d.current = !1;
|
|
3514
3514
|
return;
|
|
3515
3515
|
}
|
|
@@ -3523,34 +3523,34 @@ function ct(t) {
|
|
|
3523
3523
|
return;
|
|
3524
3524
|
let D = [];
|
|
3525
3525
|
if ((w === m.current || w === b.current) && (D = s(h.current)), D.length > 0) {
|
|
3526
|
-
const B = !!(
|
|
3526
|
+
const B = !!(O.current?.shiftKey && O.current?.key === "Tab"), $ = D[0], j = D[D.length - 1];
|
|
3527
3527
|
typeof $ != "string" && typeof j != "string" && (B ? j.focus() : $.focus());
|
|
3528
3528
|
} else
|
|
3529
3529
|
C.focus();
|
|
3530
3530
|
};
|
|
3531
|
-
|
|
3532
|
-
const
|
|
3533
|
-
const C = Ye(
|
|
3531
|
+
u.addEventListener("focusin", v), u.addEventListener("keydown", p, !0);
|
|
3532
|
+
const T = setInterval(() => {
|
|
3533
|
+
const C = Ye(u);
|
|
3534
3534
|
C && C.tagName === "BODY" && v();
|
|
3535
3535
|
}, 50);
|
|
3536
3536
|
return () => {
|
|
3537
|
-
clearInterval(
|
|
3537
|
+
clearInterval(T), u.removeEventListener("focusin", v), u.removeEventListener("keydown", p, !0);
|
|
3538
3538
|
};
|
|
3539
3539
|
}, [o, r, a, i, l, s]);
|
|
3540
|
-
const g = (
|
|
3541
|
-
y.current === null && (y.current =
|
|
3540
|
+
const g = (u) => {
|
|
3541
|
+
y.current === null && (y.current = u.relatedTarget), f.current = !0, E.current = u.target;
|
|
3542
3542
|
const p = n.props.onFocus;
|
|
3543
|
-
p && p(
|
|
3544
|
-
}, R = (
|
|
3545
|
-
y.current === null && (y.current =
|
|
3543
|
+
p && p(u);
|
|
3544
|
+
}, R = (u) => {
|
|
3545
|
+
y.current === null && (y.current = u.relatedTarget), f.current = !0;
|
|
3546
3546
|
};
|
|
3547
|
-
return /* @__PURE__ */ Te(
|
|
3547
|
+
return /* @__PURE__ */ Te(c.Fragment, {
|
|
3548
3548
|
children: [/* @__PURE__ */ I("div", {
|
|
3549
3549
|
tabIndex: l ? 0 : -1,
|
|
3550
3550
|
onFocus: R,
|
|
3551
3551
|
ref: m,
|
|
3552
3552
|
"data-testid": "sentinelStart"
|
|
3553
|
-
}), /* @__PURE__ */
|
|
3553
|
+
}), /* @__PURE__ */ c.cloneElement(n, {
|
|
3554
3554
|
ref: N,
|
|
3555
3555
|
onFocus: g
|
|
3556
3556
|
}), /* @__PURE__ */ I("div", {
|
|
@@ -3619,12 +3619,12 @@ process.env.NODE_ENV !== "production" && (ct.propTypes = un(ct.propTypes));
|
|
|
3619
3619
|
function _o(t) {
|
|
3620
3620
|
return typeof t == "function" ? t() : t;
|
|
3621
3621
|
}
|
|
3622
|
-
const ut = /* @__PURE__ */
|
|
3622
|
+
const ut = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
3623
3623
|
const {
|
|
3624
3624
|
children: r,
|
|
3625
3625
|
container: a,
|
|
3626
3626
|
disablePortal: s = !1
|
|
3627
|
-
} = n, [i, l] =
|
|
3627
|
+
} = n, [i, l] = c.useState(null), d = ve(/* @__PURE__ */ c.isValidElement(r) ? et(r) : null, o);
|
|
3628
3628
|
if (ze(() => {
|
|
3629
3629
|
s || l(_o(a) || document.body);
|
|
3630
3630
|
}, [a, s]), ze(() => {
|
|
@@ -3633,11 +3633,11 @@ const ut = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
3633
3633
|
Ut(o, null);
|
|
3634
3634
|
};
|
|
3635
3635
|
}, [o, i, s]), s) {
|
|
3636
|
-
if (/* @__PURE__ */
|
|
3636
|
+
if (/* @__PURE__ */ c.isValidElement(r)) {
|
|
3637
3637
|
const m = {
|
|
3638
3638
|
ref: d
|
|
3639
3639
|
};
|
|
3640
|
-
return /* @__PURE__ */
|
|
3640
|
+
return /* @__PURE__ */ c.cloneElement(r, m);
|
|
3641
3641
|
}
|
|
3642
3642
|
return r;
|
|
3643
3643
|
}
|
|
@@ -3677,7 +3677,7 @@ const qo = {
|
|
|
3677
3677
|
entered: {
|
|
3678
3678
|
opacity: 1
|
|
3679
3679
|
}
|
|
3680
|
-
}, Tn = /* @__PURE__ */
|
|
3680
|
+
}, Tn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
3681
3681
|
const r = cn(), a = {
|
|
3682
3682
|
enter: r.transitions.duration.enteringScreen,
|
|
3683
3683
|
exit: r.transitions.duration.leavingScreen
|
|
@@ -3693,36 +3693,36 @@ const qo = {
|
|
|
3693
3693
|
onExit: f,
|
|
3694
3694
|
onExited: h,
|
|
3695
3695
|
onExiting: N,
|
|
3696
|
-
style:
|
|
3696
|
+
style: O,
|
|
3697
3697
|
timeout: g = a,
|
|
3698
3698
|
// eslint-disable-next-line react/prop-types
|
|
3699
3699
|
TransitionComponent: R = Oe,
|
|
3700
|
-
...
|
|
3701
|
-
} = n, p =
|
|
3700
|
+
...u
|
|
3701
|
+
} = n, p = c.useRef(null), v = ve(p, et(l), o), T = (M) => (x) => {
|
|
3702
3702
|
if (M) {
|
|
3703
3703
|
const P = p.current;
|
|
3704
3704
|
x === void 0 ? M(P) : M(P, x);
|
|
3705
3705
|
}
|
|
3706
|
-
}, C =
|
|
3706
|
+
}, C = T(E), w = T((M, x) => {
|
|
3707
3707
|
xn(M);
|
|
3708
3708
|
const P = at({
|
|
3709
|
-
style:
|
|
3709
|
+
style: O,
|
|
3710
3710
|
timeout: g,
|
|
3711
3711
|
easing: d
|
|
3712
3712
|
}, {
|
|
3713
3713
|
mode: "enter"
|
|
3714
3714
|
});
|
|
3715
3715
|
M.style.webkitTransition = r.transitions.create("opacity", P), M.style.transition = r.transitions.create("opacity", P), b && b(M, x);
|
|
3716
|
-
}), D =
|
|
3716
|
+
}), D = T(y), B = T(N), $ = T((M) => {
|
|
3717
3717
|
const x = at({
|
|
3718
|
-
style:
|
|
3718
|
+
style: O,
|
|
3719
3719
|
timeout: g,
|
|
3720
3720
|
easing: d
|
|
3721
3721
|
}, {
|
|
3722
3722
|
mode: "exit"
|
|
3723
3723
|
});
|
|
3724
3724
|
M.style.webkitTransition = r.transitions.create("opacity", x), M.style.transition = r.transitions.create("opacity", x), f && f(M);
|
|
3725
|
-
}), j =
|
|
3725
|
+
}), j = T(h);
|
|
3726
3726
|
return /* @__PURE__ */ I(R, {
|
|
3727
3727
|
appear: i,
|
|
3728
3728
|
in: m,
|
|
@@ -3737,16 +3737,16 @@ const qo = {
|
|
|
3737
3737
|
s && s(p.current, M);
|
|
3738
3738
|
},
|
|
3739
3739
|
timeout: g,
|
|
3740
|
-
...
|
|
3740
|
+
...u,
|
|
3741
3741
|
children: (M, {
|
|
3742
3742
|
ownerState: x,
|
|
3743
3743
|
...P
|
|
3744
|
-
}) => /* @__PURE__ */
|
|
3744
|
+
}) => /* @__PURE__ */ c.cloneElement(l, {
|
|
3745
3745
|
style: {
|
|
3746
3746
|
opacity: 0,
|
|
3747
3747
|
visibility: M === "exited" && !m ? "hidden" : void 0,
|
|
3748
3748
|
...qo[M],
|
|
3749
|
-
...
|
|
3749
|
+
...O,
|
|
3750
3750
|
...l.props.style
|
|
3751
3751
|
},
|
|
3752
3752
|
ref: v,
|
|
@@ -3869,7 +3869,7 @@ const Go = (t) => {
|
|
|
3869
3869
|
backgroundColor: "transparent"
|
|
3870
3870
|
}
|
|
3871
3871
|
}]
|
|
3872
|
-
}), On = /* @__PURE__ */
|
|
3872
|
+
}), On = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
3873
3873
|
const r = be({
|
|
3874
3874
|
props: n,
|
|
3875
3875
|
name: "MuiBackdrop"
|
|
@@ -3886,30 +3886,30 @@ const Go = (t) => {
|
|
|
3886
3886
|
TransitionComponent: f,
|
|
3887
3887
|
transitionDuration: h,
|
|
3888
3888
|
...N
|
|
3889
|
-
} = r,
|
|
3889
|
+
} = r, O = {
|
|
3890
3890
|
...r,
|
|
3891
3891
|
component: i,
|
|
3892
3892
|
invisible: l
|
|
3893
|
-
}, g = Go(
|
|
3893
|
+
}, g = Go(O), R = {
|
|
3894
3894
|
transition: f,
|
|
3895
3895
|
root: m.Root,
|
|
3896
3896
|
...E
|
|
3897
|
-
},
|
|
3897
|
+
}, u = {
|
|
3898
3898
|
...b,
|
|
3899
3899
|
...y
|
|
3900
3900
|
}, p = {
|
|
3901
3901
|
component: i,
|
|
3902
3902
|
slots: R,
|
|
3903
|
-
slotProps:
|
|
3904
|
-
}, [v,
|
|
3903
|
+
slotProps: u
|
|
3904
|
+
}, [v, T] = re("root", {
|
|
3905
3905
|
elementType: Xo,
|
|
3906
3906
|
externalForwardedProps: p,
|
|
3907
3907
|
className: pe(g.root, s),
|
|
3908
|
-
ownerState:
|
|
3908
|
+
ownerState: O
|
|
3909
3909
|
}), [C, w] = re("transition", {
|
|
3910
3910
|
elementType: Tn,
|
|
3911
3911
|
externalForwardedProps: p,
|
|
3912
|
-
ownerState:
|
|
3912
|
+
ownerState: O
|
|
3913
3913
|
});
|
|
3914
3914
|
return /* @__PURE__ */ I(C, {
|
|
3915
3915
|
in: d,
|
|
@@ -3918,7 +3918,7 @@ const Go = (t) => {
|
|
|
3918
3918
|
...w,
|
|
3919
3919
|
children: /* @__PURE__ */ I(v, {
|
|
3920
3920
|
"aria-hidden": !0,
|
|
3921
|
-
...
|
|
3921
|
+
...T,
|
|
3922
3922
|
ref: o,
|
|
3923
3923
|
children: a
|
|
3924
3924
|
})
|
|
@@ -4034,26 +4034,26 @@ function Jo(t) {
|
|
|
4034
4034
|
onClose: d,
|
|
4035
4035
|
open: m,
|
|
4036
4036
|
rootRef: b
|
|
4037
|
-
} = t, y =
|
|
4037
|
+
} = t, y = c.useRef({}), E = c.useRef(null), f = c.useRef(null), h = ve(f, b), [N, O] = c.useState(!m), g = Zo(l);
|
|
4038
4038
|
let R = !0;
|
|
4039
4039
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (R = !1);
|
|
4040
|
-
const
|
|
4040
|
+
const u = () => ge(E.current), p = () => (y.current.modalRef = f.current, y.current.mount = E.current, y.current), v = () => {
|
|
4041
4041
|
it.mount(p(), {
|
|
4042
4042
|
disableScrollLock: r
|
|
4043
4043
|
}), f.current && (f.current.scrollTop = 0);
|
|
4044
|
-
},
|
|
4045
|
-
const x = Yo(n) ||
|
|
4044
|
+
}, T = wt(() => {
|
|
4045
|
+
const x = Yo(n) || u().body;
|
|
4046
4046
|
it.add(p(), x), f.current && v();
|
|
4047
4047
|
}), C = () => it.isTopModal(p()), w = wt((x) => {
|
|
4048
4048
|
E.current = x, x && (m && C() ? v() : f.current && Je(f.current, R));
|
|
4049
|
-
}), D =
|
|
4049
|
+
}), D = c.useCallback(() => {
|
|
4050
4050
|
it.remove(p(), R);
|
|
4051
4051
|
}, [R]);
|
|
4052
|
-
|
|
4052
|
+
c.useEffect(() => () => {
|
|
4053
4053
|
D();
|
|
4054
|
-
}, [D]),
|
|
4055
|
-
m ?
|
|
4056
|
-
}, [m, D, g, a,
|
|
4054
|
+
}, [D]), c.useEffect(() => {
|
|
4055
|
+
m ? T() : (!g || !a) && D();
|
|
4056
|
+
}, [m, D, g, a, T]);
|
|
4057
4057
|
const B = (x) => (P) => {
|
|
4058
4058
|
x.onKeyDown?.(P), !(P.key !== "Escape" || P.which === 229 || // Wait until IME is settled.
|
|
4059
4059
|
!C()) && (o || (P.stopPropagation(), d && d(P, "escapeKeyDown")));
|
|
@@ -4092,9 +4092,9 @@ function Jo(t) {
|
|
|
4092
4092
|
},
|
|
4093
4093
|
getTransitionProps: () => {
|
|
4094
4094
|
const x = () => {
|
|
4095
|
-
|
|
4095
|
+
O(!1), s && s();
|
|
4096
4096
|
}, P = () => {
|
|
4097
|
-
|
|
4097
|
+
O(!0), i && i(), a && D();
|
|
4098
4098
|
};
|
|
4099
4099
|
return {
|
|
4100
4100
|
onEnter: Wt(x, l?.props.onEnter ?? Zt),
|
|
@@ -4153,7 +4153,7 @@ const er = (t) => {
|
|
|
4153
4153
|
slot: "Backdrop"
|
|
4154
4154
|
})({
|
|
4155
4155
|
zIndex: -1
|
|
4156
|
-
}), Pn = /* @__PURE__ */
|
|
4156
|
+
}), Pn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
4157
4157
|
const r = be({
|
|
4158
4158
|
name: "MuiModal",
|
|
4159
4159
|
props: n
|
|
@@ -4170,13 +4170,13 @@ const er = (t) => {
|
|
|
4170
4170
|
componentsProps: f = {},
|
|
4171
4171
|
disableAutoFocus: h = !1,
|
|
4172
4172
|
disableEnforceFocus: N = !1,
|
|
4173
|
-
disableEscapeKeyDown:
|
|
4173
|
+
disableEscapeKeyDown: O = !1,
|
|
4174
4174
|
disablePortal: g = !1,
|
|
4175
4175
|
disableRestoreFocus: R = !1,
|
|
4176
|
-
disableScrollLock:
|
|
4176
|
+
disableScrollLock: u = !1,
|
|
4177
4177
|
hideBackdrop: p = !1,
|
|
4178
4178
|
keepMounted: v = !1,
|
|
4179
|
-
onClose:
|
|
4179
|
+
onClose: T,
|
|
4180
4180
|
onTransitionEnter: C,
|
|
4181
4181
|
onTransitionExited: w,
|
|
4182
4182
|
open: D,
|
|
@@ -4190,10 +4190,10 @@ const er = (t) => {
|
|
|
4190
4190
|
closeAfterTransition: d,
|
|
4191
4191
|
disableAutoFocus: h,
|
|
4192
4192
|
disableEnforceFocus: N,
|
|
4193
|
-
disableEscapeKeyDown:
|
|
4193
|
+
disableEscapeKeyDown: O,
|
|
4194
4194
|
disablePortal: g,
|
|
4195
4195
|
disableRestoreFocus: R,
|
|
4196
|
-
disableScrollLock:
|
|
4196
|
+
disableScrollLock: u,
|
|
4197
4197
|
hideBackdrop: p,
|
|
4198
4198
|
keepMounted: v
|
|
4199
4199
|
}, {
|
|
@@ -4268,7 +4268,7 @@ const er = (t) => {
|
|
|
4268
4268
|
disableRestoreFocus: R,
|
|
4269
4269
|
isEnabled: k,
|
|
4270
4270
|
open: D,
|
|
4271
|
-
children: /* @__PURE__ */
|
|
4271
|
+
children: /* @__PURE__ */ c.cloneElement(m, ae)
|
|
4272
4272
|
})]
|
|
4273
4273
|
})
|
|
4274
4274
|
});
|
|
@@ -4488,7 +4488,7 @@ const rr = (t) => {
|
|
|
4488
4488
|
maxHeight: "calc(100% - 32px)",
|
|
4489
4489
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
4490
4490
|
outline: 0
|
|
4491
|
-
}), Sn = /* @__PURE__ */
|
|
4491
|
+
}), Sn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
4492
4492
|
const r = be({
|
|
4493
4493
|
props: n,
|
|
4494
4494
|
name: "MuiPopover"
|
|
@@ -4509,30 +4509,30 @@ const rr = (t) => {
|
|
|
4509
4509
|
open: h,
|
|
4510
4510
|
PaperProps: N = {},
|
|
4511
4511
|
// TODO: remove in v7
|
|
4512
|
-
slots:
|
|
4512
|
+
slots: O = {},
|
|
4513
4513
|
slotProps: g = {},
|
|
4514
4514
|
transformOrigin: R = {
|
|
4515
4515
|
vertical: "top",
|
|
4516
4516
|
horizontal: "left"
|
|
4517
4517
|
},
|
|
4518
|
-
TransitionComponent:
|
|
4518
|
+
TransitionComponent: u,
|
|
4519
4519
|
// TODO: remove in v7
|
|
4520
4520
|
transitionDuration: p = "auto",
|
|
4521
4521
|
TransitionProps: v = {},
|
|
4522
4522
|
// TODO: remove in v7
|
|
4523
|
-
disableScrollLock:
|
|
4523
|
+
disableScrollLock: T = !1,
|
|
4524
4524
|
...C
|
|
4525
|
-
} = r, w =
|
|
4525
|
+
} = r, w = c.useRef(), D = {
|
|
4526
4526
|
...r,
|
|
4527
4527
|
anchorOrigin: i,
|
|
4528
4528
|
anchorReference: d,
|
|
4529
4529
|
elevation: E,
|
|
4530
4530
|
marginThreshold: f,
|
|
4531
4531
|
transformOrigin: R,
|
|
4532
|
-
TransitionComponent:
|
|
4532
|
+
TransitionComponent: u,
|
|
4533
4533
|
transitionDuration: p,
|
|
4534
4534
|
TransitionProps: v
|
|
4535
|
-
}, B = rr(D), $ =
|
|
4535
|
+
}, B = rr(D), $ = c.useCallback(() => {
|
|
4536
4536
|
if (d === "anchorPosition")
|
|
4537
4537
|
return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
|
|
4538
4538
|
const L = Ze(s), A = L && L.nodeType === 1 ? L : ge(w.current).body, G = A.getBoundingClientRect();
|
|
@@ -4545,10 +4545,10 @@ const rr = (t) => {
|
|
|
4545
4545
|
top: G.top + Jt(G, i.vertical),
|
|
4546
4546
|
left: G.left + Qt(G, i.horizontal)
|
|
4547
4547
|
};
|
|
4548
|
-
}, [s, i.horizontal, i.vertical, l, d]), j =
|
|
4548
|
+
}, [s, i.horizontal, i.vertical, l, d]), j = c.useCallback((L) => ({
|
|
4549
4549
|
vertical: Jt(L, R.vertical),
|
|
4550
4550
|
horizontal: Qt(L, R.horizontal)
|
|
4551
|
-
}), [R.horizontal, R.vertical]), q =
|
|
4551
|
+
}), [R.horizontal, R.vertical]), q = c.useCallback((L) => {
|
|
4552
4552
|
const A = {
|
|
4553
4553
|
width: L.offsetWidth,
|
|
4554
4554
|
height: L.offsetHeight
|
|
@@ -4582,26 +4582,26 @@ const rr = (t) => {
|
|
|
4582
4582
|
left: `${Math.round(_)}px`,
|
|
4583
4583
|
transformOrigin: en(G)
|
|
4584
4584
|
};
|
|
4585
|
-
}, [s, d, $, j, f]), [M, x] =
|
|
4585
|
+
}, [s, d, $, j, f]), [M, x] = c.useState(h), P = c.useCallback(() => {
|
|
4586
4586
|
const L = w.current;
|
|
4587
4587
|
if (!L)
|
|
4588
4588
|
return;
|
|
4589
4589
|
const A = q(L);
|
|
4590
4590
|
A.top !== null && L.style.setProperty("top", A.top), A.left !== null && (L.style.left = A.left), L.style.transformOrigin = A.transformOrigin, x(!0);
|
|
4591
4591
|
}, [q]);
|
|
4592
|
-
|
|
4592
|
+
c.useEffect(() => (T && window.addEventListener("scroll", P), () => window.removeEventListener("scroll", P)), [s, T, P]);
|
|
4593
4593
|
const V = () => {
|
|
4594
4594
|
P();
|
|
4595
4595
|
}, X = () => {
|
|
4596
4596
|
x(!1);
|
|
4597
4597
|
};
|
|
4598
|
-
|
|
4598
|
+
c.useEffect(() => {
|
|
4599
4599
|
h && P();
|
|
4600
|
-
}),
|
|
4600
|
+
}), c.useImperativeHandle(a, () => h ? {
|
|
4601
4601
|
updatePosition: () => {
|
|
4602
4602
|
P();
|
|
4603
4603
|
}
|
|
4604
|
-
} : null, [h, P]),
|
|
4604
|
+
} : null, [h, P]), c.useEffect(() => {
|
|
4605
4605
|
if (!h)
|
|
4606
4606
|
return;
|
|
4607
4607
|
const L = pn(() => {
|
|
@@ -4614,8 +4614,8 @@ const rr = (t) => {
|
|
|
4614
4614
|
let k = p;
|
|
4615
4615
|
const H = {
|
|
4616
4616
|
slots: {
|
|
4617
|
-
transition:
|
|
4618
|
-
...
|
|
4617
|
+
transition: u,
|
|
4618
|
+
...O
|
|
4619
4619
|
},
|
|
4620
4620
|
slotProps: {
|
|
4621
4621
|
transition: v,
|
|
@@ -4655,7 +4655,7 @@ const rr = (t) => {
|
|
|
4655
4655
|
shouldForwardComponentProp: !0,
|
|
4656
4656
|
additionalProps: {
|
|
4657
4657
|
slots: {
|
|
4658
|
-
backdrop:
|
|
4658
|
+
backdrop: O.backdrop
|
|
4659
4659
|
},
|
|
4660
4660
|
slotProps: {
|
|
4661
4661
|
backdrop: Zn(typeof g.backdrop == "function" ? g.backdrop(D) : g.backdrop, {
|
|
@@ -4686,7 +4686,7 @@ const rr = (t) => {
|
|
|
4686
4686
|
...!St(ae) && {
|
|
4687
4687
|
slots: Q,
|
|
4688
4688
|
slotProps: ee,
|
|
4689
|
-
disableScrollLock:
|
|
4689
|
+
disableScrollLock: T
|
|
4690
4690
|
},
|
|
4691
4691
|
children: /* @__PURE__ */ I(z, {
|
|
4692
4692
|
...se,
|
|
@@ -4936,7 +4936,7 @@ const ar = {
|
|
|
4936
4936
|
})({
|
|
4937
4937
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
4938
4938
|
outline: 0
|
|
4939
|
-
}), wn = /* @__PURE__ */
|
|
4939
|
+
}), wn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
4940
4940
|
const r = be({
|
|
4941
4941
|
props: n,
|
|
4942
4942
|
name: "MuiMenu"
|
|
@@ -4955,10 +4955,10 @@ const ar = {
|
|
|
4955
4955
|
onEntering: h,
|
|
4956
4956
|
...N
|
|
4957
4957
|
} = {},
|
|
4958
|
-
variant:
|
|
4958
|
+
variant: O = "selectedMenu",
|
|
4959
4959
|
slots: g = {},
|
|
4960
4960
|
slotProps: R = {},
|
|
4961
|
-
...
|
|
4961
|
+
...u
|
|
4962
4962
|
} = r, p = no(), v = {
|
|
4963
4963
|
...r,
|
|
4964
4964
|
autoFocus: a,
|
|
@@ -4968,8 +4968,8 @@ const ar = {
|
|
|
4968
4968
|
PaperProps: y,
|
|
4969
4969
|
transitionDuration: f,
|
|
4970
4970
|
TransitionProps: N,
|
|
4971
|
-
variant:
|
|
4972
|
-
},
|
|
4971
|
+
variant: O
|
|
4972
|
+
}, T = cr(v), C = a && !l && b, w = c.useRef(null), D = (k, H) => {
|
|
4973
4973
|
w.current && w.current.adjustStyleForScrollbar(k, {
|
|
4974
4974
|
direction: p ? "rtl" : "ltr"
|
|
4975
4975
|
}), h && h(k, H);
|
|
@@ -4977,9 +4977,9 @@ const ar = {
|
|
|
4977
4977
|
k.key === "Tab" && (k.preventDefault(), m && m(k, "tabKeyDown"));
|
|
4978
4978
|
};
|
|
4979
4979
|
let $ = -1;
|
|
4980
|
-
|
|
4981
|
-
/* @__PURE__ */
|
|
4982
|
-
`)), k.props.disabled || (
|
|
4980
|
+
c.Children.map(s, (k, H) => {
|
|
4981
|
+
/* @__PURE__ */ c.isValidElement(k) && (process.env.NODE_ENV !== "production" && kt.isFragment(k) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
4982
|
+
`)), k.props.disabled || (O === "selectedMenu" && k.props.selected || $ === -1) && ($ = H));
|
|
4983
4983
|
});
|
|
4984
4984
|
const j = {
|
|
4985
4985
|
slots: g,
|
|
@@ -4993,15 +4993,15 @@ const ar = {
|
|
|
4993
4993
|
elementType: g.root,
|
|
4994
4994
|
externalSlotProps: R.root,
|
|
4995
4995
|
ownerState: v,
|
|
4996
|
-
className: [
|
|
4996
|
+
className: [T.root, i]
|
|
4997
4997
|
}), [M, x] = re("paper", {
|
|
4998
|
-
className:
|
|
4998
|
+
className: T.paper,
|
|
4999
4999
|
elementType: pr,
|
|
5000
5000
|
externalForwardedProps: j,
|
|
5001
5001
|
shouldForwardComponentProp: !0,
|
|
5002
5002
|
ownerState: v
|
|
5003
5003
|
}), [P, V] = re("list", {
|
|
5004
|
-
className: pe(
|
|
5004
|
+
className: pe(T.list, d.className),
|
|
5005
5005
|
elementType: dr,
|
|
5006
5006
|
shouldForwardComponentProp: !0,
|
|
5007
5007
|
externalForwardedProps: j,
|
|
@@ -5044,13 +5044,13 @@ const ar = {
|
|
|
5044
5044
|
ref: o,
|
|
5045
5045
|
transitionDuration: f,
|
|
5046
5046
|
ownerState: v,
|
|
5047
|
-
...
|
|
5047
|
+
...u,
|
|
5048
5048
|
classes: E,
|
|
5049
5049
|
children: /* @__PURE__ */ I(P, {
|
|
5050
5050
|
actions: w,
|
|
5051
5051
|
autoFocus: a && ($ === -1 || l),
|
|
5052
5052
|
autoFocusItem: C,
|
|
5053
|
-
variant:
|
|
5053
|
+
variant: O,
|
|
5054
5054
|
...V,
|
|
5055
5055
|
children: s
|
|
5056
5056
|
})
|
|
@@ -5307,7 +5307,7 @@ const Dt = de("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
5307
5307
|
} = t;
|
|
5308
5308
|
return [n.icon, o.variant && n[`icon${Re(o.variant)}`], o.open && n.iconOpen];
|
|
5309
5309
|
}
|
|
5310
|
-
})({}), Nn = /* @__PURE__ */
|
|
5310
|
+
})({}), Nn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
5311
5311
|
const {
|
|
5312
5312
|
className: r,
|
|
5313
5313
|
disabled: a,
|
|
@@ -5322,7 +5322,7 @@ const Dt = de("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
5322
5322
|
variant: d,
|
|
5323
5323
|
error: s
|
|
5324
5324
|
}, y = mr(b);
|
|
5325
|
-
return /* @__PURE__ */ Te(
|
|
5325
|
+
return /* @__PURE__ */ Te(c.Fragment, {
|
|
5326
5326
|
children: [/* @__PURE__ */ I(br, {
|
|
5327
5327
|
ownerState: b,
|
|
5328
5328
|
className: pe(y.select, r),
|
|
@@ -5472,7 +5472,7 @@ const xr = (t) => {
|
|
|
5472
5472
|
nativeInput: ["nativeInput"]
|
|
5473
5473
|
};
|
|
5474
5474
|
return ce(l, kn, n);
|
|
5475
|
-
}, Mn = /* @__PURE__ */
|
|
5475
|
+
}, Mn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
5476
5476
|
const {
|
|
5477
5477
|
"aria-describedby": r,
|
|
5478
5478
|
"aria-label": a,
|
|
@@ -5487,13 +5487,13 @@ const xr = (t) => {
|
|
|
5487
5487
|
error: f = !1,
|
|
5488
5488
|
IconComponent: h,
|
|
5489
5489
|
inputRef: N,
|
|
5490
|
-
labelId:
|
|
5490
|
+
labelId: O,
|
|
5491
5491
|
MenuProps: g = {},
|
|
5492
5492
|
multiple: R,
|
|
5493
|
-
name:
|
|
5493
|
+
name: u,
|
|
5494
5494
|
onBlur: p,
|
|
5495
5495
|
onChange: v,
|
|
5496
|
-
onClose:
|
|
5496
|
+
onClose: T,
|
|
5497
5497
|
onFocus: C,
|
|
5498
5498
|
// eslint-disable-next-line react/prop-types
|
|
5499
5499
|
onKeyDown: w,
|
|
@@ -5519,12 +5519,12 @@ const xr = (t) => {
|
|
|
5519
5519
|
controlled: $,
|
|
5520
5520
|
default: m,
|
|
5521
5521
|
name: "Select"
|
|
5522
|
-
}), Q =
|
|
5522
|
+
}), Q = c.useRef(null), ee = c.useRef(null), [te, he] = c.useState(null), {
|
|
5523
5523
|
current: Z
|
|
5524
|
-
} =
|
|
5524
|
+
} = c.useRef($ != null), [L, A] = c.useState(), G = ve(o, N), ie = c.useCallback((S) => {
|
|
5525
5525
|
ee.current = S, S && he(S);
|
|
5526
5526
|
}, []), F = te?.parentNode;
|
|
5527
|
-
|
|
5527
|
+
c.useImperativeHandle(G, () => ({
|
|
5528
5528
|
focus: () => {
|
|
5529
5529
|
ee.current.focus();
|
|
5530
5530
|
},
|
|
@@ -5532,7 +5532,7 @@ const xr = (t) => {
|
|
|
5532
5532
|
value: z
|
|
5533
5533
|
}), [z]);
|
|
5534
5534
|
const _ = te !== null && Y;
|
|
5535
|
-
|
|
5535
|
+
c.useEffect(() => {
|
|
5536
5536
|
if (!_ || !F || i || typeof ResizeObserver > "u")
|
|
5537
5537
|
return;
|
|
5538
5538
|
const S = new ResizeObserver(() => {
|
|
@@ -5541,14 +5541,14 @@ const xr = (t) => {
|
|
|
5541
5541
|
return S.observe(F), () => {
|
|
5542
5542
|
S.disconnect();
|
|
5543
5543
|
};
|
|
5544
|
-
}, [_, F, i]),
|
|
5544
|
+
}, [_, F, i]), c.useEffect(() => {
|
|
5545
5545
|
m && Y && te && !Z && (A(i ? null : F.clientWidth), ee.current.focus());
|
|
5546
|
-
}, [te, i]),
|
|
5546
|
+
}, [te, i]), c.useEffect(() => {
|
|
5547
5547
|
s && ee.current.focus();
|
|
5548
|
-
}, [s]),
|
|
5549
|
-
if (!
|
|
5548
|
+
}, [s]), c.useEffect(() => {
|
|
5549
|
+
if (!O)
|
|
5550
5550
|
return;
|
|
5551
|
-
const S = ge(ee.current).getElementById(
|
|
5551
|
+
const S = ge(ee.current).getElementById(O);
|
|
5552
5552
|
if (S) {
|
|
5553
5553
|
const W = () => {
|
|
5554
5554
|
getSelection().isCollapsed && ee.current.focus();
|
|
@@ -5557,14 +5557,14 @@ const xr = (t) => {
|
|
|
5557
5557
|
S.removeEventListener("click", W);
|
|
5558
5558
|
};
|
|
5559
5559
|
}
|
|
5560
|
-
}, [
|
|
5560
|
+
}, [O]);
|
|
5561
5561
|
const ue = (S, W) => {
|
|
5562
|
-
S ? B && B(W) :
|
|
5562
|
+
S ? B && B(W) : T && T(W), Z || (A(i ? null : F.clientWidth), ae(S));
|
|
5563
5563
|
}, Ee = (S) => {
|
|
5564
5564
|
D?.(S), S.button === 0 && (S.preventDefault(), ee.current.focus(), ue(!0, S));
|
|
5565
5565
|
}, me = (S) => {
|
|
5566
5566
|
ue(!1, S);
|
|
5567
|
-
}, le =
|
|
5567
|
+
}, le = c.Children.toArray(l), Ce = (S) => {
|
|
5568
5568
|
const W = le.find((oe) => oe.props.value === S.target.value);
|
|
5569
5569
|
W !== void 0 && (se(W.props.value), v && v(S, W));
|
|
5570
5570
|
}, ne = (S) => (W) => {
|
|
@@ -5582,7 +5582,7 @@ const xr = (t) => {
|
|
|
5582
5582
|
writable: !0,
|
|
5583
5583
|
value: {
|
|
5584
5584
|
value: oe,
|
|
5585
|
-
name:
|
|
5585
|
+
name: u
|
|
5586
5586
|
}
|
|
5587
5587
|
}), v($t, S);
|
|
5588
5588
|
}
|
|
@@ -5602,7 +5602,7 @@ const xr = (t) => {
|
|
|
5602
5602
|
writable: !0,
|
|
5603
5603
|
value: {
|
|
5604
5604
|
value: z,
|
|
5605
|
-
name:
|
|
5605
|
+
name: u
|
|
5606
5606
|
}
|
|
5607
5607
|
}), p(S));
|
|
5608
5608
|
};
|
|
@@ -5614,7 +5614,7 @@ const xr = (t) => {
|
|
|
5614
5614
|
value: z
|
|
5615
5615
|
}) || E) && (q ? J = q(z) : Me = !0);
|
|
5616
5616
|
const Ve = le.map((S) => {
|
|
5617
|
-
if (!/* @__PURE__ */
|
|
5617
|
+
if (!/* @__PURE__ */ c.isValidElement(S))
|
|
5618
5618
|
return null;
|
|
5619
5619
|
process.env.NODE_ENV !== "production" && kt.isFragment(S) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
5620
5620
|
`));
|
|
@@ -5625,7 +5625,7 @@ const xr = (t) => {
|
|
|
5625
5625
|
W = z.some((oe) => nn(oe, S.props.value)), W && Me && Ie.push(S.props.children);
|
|
5626
5626
|
} else
|
|
5627
5627
|
W = nn(z, S.props.value), W && Me && (nt = S.props.children);
|
|
5628
|
-
return W && (je = !0), /* @__PURE__ */
|
|
5628
|
+
return W && (je = !0), /* @__PURE__ */ c.cloneElement(S, {
|
|
5629
5629
|
"aria-selected": W ? "true" : "false",
|
|
5630
5630
|
onClick: ne(S),
|
|
5631
5631
|
onKeyUp: (oe) => {
|
|
@@ -5639,18 +5639,18 @@ const xr = (t) => {
|
|
|
5639
5639
|
// Instead, we provide it as a data attribute.
|
|
5640
5640
|
});
|
|
5641
5641
|
});
|
|
5642
|
-
process.env.NODE_ENV !== "production" &&
|
|
5642
|
+
process.env.NODE_ENV !== "production" && c.useEffect(() => {
|
|
5643
5643
|
if (!je && !R && z !== "") {
|
|
5644
5644
|
const S = le.map((W) => W.props.value);
|
|
5645
|
-
console.warn([`MUI: You have provided an out-of-range value \`${z}\` for the select ${
|
|
5645
|
+
console.warn([`MUI: You have provided an out-of-range value \`${z}\` for the select ${u ? `(name="${u}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${S.filter((W) => W != null).map((W) => `\`${W}\``).join(", ") || '""'}.`].join(`
|
|
5646
5646
|
`));
|
|
5647
5647
|
}
|
|
5648
|
-
}, [je, le, R,
|
|
5648
|
+
}, [je, le, R, u, z]), Me && (R ? Ie.length === 0 ? J = null : J = Ie.reduce((S, W, oe) => (S.push(W), oe < Ie.length - 1 && S.push(", "), S), []) : J = nt);
|
|
5649
5649
|
let He = L;
|
|
5650
5650
|
!i && Z && te && (He = F.clientWidth);
|
|
5651
5651
|
let K;
|
|
5652
5652
|
typeof P < "u" ? K = P : K = y ? null : 0;
|
|
5653
|
-
const _e = x.id || (
|
|
5653
|
+
const _e = x.id || (u ? `mui-component-select-${u}` : void 0), Pe = {
|
|
5654
5654
|
...n,
|
|
5655
5655
|
variant: k,
|
|
5656
5656
|
value: z,
|
|
@@ -5663,7 +5663,7 @@ const xr = (t) => {
|
|
|
5663
5663
|
...g.MenuListProps,
|
|
5664
5664
|
...typeof g.slotProps?.list == "function" ? g.slotProps.list(Pe) : g.slotProps?.list
|
|
5665
5665
|
}, At = rn();
|
|
5666
|
-
return /* @__PURE__ */ Te(
|
|
5666
|
+
return /* @__PURE__ */ Te(c.Fragment, {
|
|
5667
5667
|
children: [/* @__PURE__ */ I(gr, {
|
|
5668
5668
|
as: "div",
|
|
5669
5669
|
ref: ie,
|
|
@@ -5674,7 +5674,7 @@ const xr = (t) => {
|
|
|
5674
5674
|
"aria-expanded": _ ? "true" : "false",
|
|
5675
5675
|
"aria-haspopup": "listbox",
|
|
5676
5676
|
"aria-label": a,
|
|
5677
|
-
"aria-labelledby": [
|
|
5677
|
+
"aria-labelledby": [O, _e].filter(Boolean).join(" ") || void 0,
|
|
5678
5678
|
"aria-describedby": r,
|
|
5679
5679
|
"aria-required": M ? "true" : void 0,
|
|
5680
5680
|
"aria-invalid": f ? "true" : void 0,
|
|
@@ -5697,7 +5697,7 @@ const xr = (t) => {
|
|
|
5697
5697
|
}), /* @__PURE__ */ I(vr, {
|
|
5698
5698
|
"aria-invalid": f,
|
|
5699
5699
|
value: Array.isArray(z) ? z.join(",") : z,
|
|
5700
|
-
name:
|
|
5700
|
+
name: u,
|
|
5701
5701
|
ref: Q,
|
|
5702
5702
|
"aria-hidden": !0,
|
|
5703
5703
|
onChange: Ce,
|
|
@@ -5713,7 +5713,7 @@ const xr = (t) => {
|
|
|
5713
5713
|
className: xt.icon,
|
|
5714
5714
|
ownerState: Pe
|
|
5715
5715
|
}), /* @__PURE__ */ I(wn, {
|
|
5716
|
-
id: `menu-${
|
|
5716
|
+
id: `menu-${u || ""}`,
|
|
5717
5717
|
anchorEl: F,
|
|
5718
5718
|
open: _,
|
|
5719
5719
|
onClose: me,
|
|
@@ -5729,7 +5729,7 @@ const xr = (t) => {
|
|
|
5729
5729
|
slotProps: {
|
|
5730
5730
|
...g.slotProps,
|
|
5731
5731
|
list: {
|
|
5732
|
-
"aria-labelledby":
|
|
5732
|
+
"aria-labelledby": O,
|
|
5733
5733
|
role: "listbox",
|
|
5734
5734
|
"aria-multiselectable": R ? "true" : void 0,
|
|
5735
5735
|
disableListWrap: !0,
|
|
@@ -5912,7 +5912,7 @@ const Tr = Qn(/* @__PURE__ */ I("path", {
|
|
|
5912
5912
|
name: "MuiSelect",
|
|
5913
5913
|
slot: "Root",
|
|
5914
5914
|
shouldForwardProp: (t) => we(t) && t !== "variant"
|
|
5915
|
-
}, Pr = U(yt, Lt)(""), Rr = U(Et, Lt)(""), Sr = U(vt, Lt)(""), jt = /* @__PURE__ */
|
|
5915
|
+
}, Pr = U(yt, Lt)(""), Rr = U(Et, Lt)(""), Sr = U(vt, Lt)(""), jt = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
5916
5916
|
const r = be({
|
|
5917
5917
|
name: "MuiSelect",
|
|
5918
5918
|
props: n
|
|
@@ -5929,13 +5929,13 @@ const Tr = Qn(/* @__PURE__ */ I("path", {
|
|
|
5929
5929
|
inputProps: f,
|
|
5930
5930
|
label: h,
|
|
5931
5931
|
labelId: N,
|
|
5932
|
-
MenuProps:
|
|
5932
|
+
MenuProps: O,
|
|
5933
5933
|
multiple: g = !1,
|
|
5934
5934
|
native: R = !1,
|
|
5935
|
-
onClose:
|
|
5935
|
+
onClose: u,
|
|
5936
5936
|
onOpen: p,
|
|
5937
5937
|
open: v,
|
|
5938
|
-
renderValue:
|
|
5938
|
+
renderValue: T,
|
|
5939
5939
|
SelectDisplayProps: C,
|
|
5940
5940
|
variant: w = "outlined",
|
|
5941
5941
|
...D
|
|
@@ -5962,8 +5962,8 @@ const Tr = Qn(/* @__PURE__ */ I("path", {
|
|
|
5962
5962
|
ownerState: M
|
|
5963
5963
|
})
|
|
5964
5964
|
}[q], k = ve(o, et(X));
|
|
5965
|
-
return /* @__PURE__ */ I(
|
|
5966
|
-
children: /* @__PURE__ */
|
|
5965
|
+
return /* @__PURE__ */ I(c.Fragment, {
|
|
5966
|
+
children: /* @__PURE__ */ c.cloneElement(X, {
|
|
5967
5967
|
// Most of the logic is implemented in `SelectInput`.
|
|
5968
5968
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
5969
5969
|
inputComponent: B,
|
|
@@ -5982,11 +5982,11 @@ const Tr = Qn(/* @__PURE__ */ I("path", {
|
|
|
5982
5982
|
defaultOpen: d,
|
|
5983
5983
|
displayEmpty: m,
|
|
5984
5984
|
labelId: N,
|
|
5985
|
-
MenuProps:
|
|
5986
|
-
onClose:
|
|
5985
|
+
MenuProps: O,
|
|
5986
|
+
onClose: u,
|
|
5987
5987
|
onOpen: p,
|
|
5988
5988
|
open: v,
|
|
5989
|
-
renderValue:
|
|
5989
|
+
renderValue: T,
|
|
5990
5990
|
SelectDisplayProps: {
|
|
5991
5991
|
id: y,
|
|
5992
5992
|
...C
|
|
@@ -6175,7 +6175,7 @@ const Cr = {
|
|
|
6175
6175
|
}, Nr = U(Hn, {
|
|
6176
6176
|
name: "MuiTextField",
|
|
6177
6177
|
slot: "Root"
|
|
6178
|
-
})({}), Fn = /* @__PURE__ */
|
|
6178
|
+
})({}), Fn = /* @__PURE__ */ c.forwardRef(function(n, o) {
|
|
6179
6179
|
const r = be({
|
|
6180
6180
|
props: n,
|
|
6181
6181
|
name: "MuiTextField"
|
|
@@ -6192,13 +6192,13 @@ const Cr = {
|
|
|
6192
6192
|
fullWidth: f = !1,
|
|
6193
6193
|
helperText: h,
|
|
6194
6194
|
id: N,
|
|
6195
|
-
InputLabelProps:
|
|
6195
|
+
InputLabelProps: O,
|
|
6196
6196
|
inputProps: g,
|
|
6197
6197
|
InputProps: R,
|
|
6198
|
-
inputRef:
|
|
6198
|
+
inputRef: u,
|
|
6199
6199
|
label: p,
|
|
6200
6200
|
maxRows: v,
|
|
6201
|
-
minRows:
|
|
6201
|
+
minRows: T,
|
|
6202
6202
|
multiline: C = !1,
|
|
6203
6203
|
name: w,
|
|
6204
6204
|
onBlur: D,
|
|
@@ -6232,7 +6232,7 @@ const Cr = {
|
|
|
6232
6232
|
slots: V,
|
|
6233
6233
|
slotProps: {
|
|
6234
6234
|
input: R,
|
|
6235
|
-
inputLabel:
|
|
6235
|
+
inputLabel: O,
|
|
6236
6236
|
htmlInput: g,
|
|
6237
6237
|
formHelperText: E,
|
|
6238
6238
|
select: P,
|
|
@@ -6289,11 +6289,11 @@ const Cr = {
|
|
|
6289
6289
|
name: w,
|
|
6290
6290
|
rows: M,
|
|
6291
6291
|
maxRows: v,
|
|
6292
|
-
minRows:
|
|
6292
|
+
minRows: T,
|
|
6293
6293
|
type: k,
|
|
6294
6294
|
value: H,
|
|
6295
6295
|
id: Q,
|
|
6296
|
-
inputRef:
|
|
6296
|
+
inputRef: u,
|
|
6297
6297
|
onBlur: D,
|
|
6298
6298
|
onChange: B,
|
|
6299
6299
|
onFocus: $,
|
|
@@ -6540,24 +6540,25 @@ function Gr({
|
|
|
6540
6540
|
type: d = "text",
|
|
6541
6541
|
multiline: m = !1,
|
|
6542
6542
|
rows: b,
|
|
6543
|
-
sx: y
|
|
6543
|
+
sx: y,
|
|
6544
|
+
forceError: E = !1
|
|
6544
6545
|
}) {
|
|
6545
|
-
const [
|
|
6546
|
-
const
|
|
6547
|
-
|
|
6548
|
-
},
|
|
6549
|
-
|
|
6550
|
-
},
|
|
6546
|
+
const [f, h] = Bt(l), [N, O] = Bt(!1), g = (v) => {
|
|
6547
|
+
const T = v.target.value;
|
|
6548
|
+
h(T), i && i(T);
|
|
6549
|
+
}, R = () => {
|
|
6550
|
+
O(!0);
|
|
6551
|
+
}, u = String(f || "").trim() === "", p = E || N && o && u;
|
|
6551
6552
|
return /* @__PURE__ */ I(
|
|
6552
6553
|
Fn,
|
|
6553
6554
|
{
|
|
6554
6555
|
label: t,
|
|
6555
6556
|
placeholder: n,
|
|
6556
|
-
value:
|
|
6557
|
-
onChange:
|
|
6558
|
-
onBlur:
|
|
6559
|
-
error:
|
|
6560
|
-
helperText:
|
|
6557
|
+
value: f,
|
|
6558
|
+
onChange: g,
|
|
6559
|
+
onBlur: R,
|
|
6560
|
+
error: p,
|
|
6561
|
+
helperText: p ? r : a || " ",
|
|
6561
6562
|
variant: s,
|
|
6562
6563
|
required: o,
|
|
6563
6564
|
type: d,
|
|
@@ -6565,7 +6566,6 @@ function Gr({
|
|
|
6565
6566
|
rows: b,
|
|
6566
6567
|
InputLabelProps: {
|
|
6567
6568
|
shrink: !0
|
|
6568
|
-
// Always shrink the label
|
|
6569
6569
|
},
|
|
6570
6570
|
sx: {
|
|
6571
6571
|
"& .MuiInputBase-root": {
|
|
@@ -6573,7 +6573,6 @@ function Gr({
|
|
|
6573
6573
|
},
|
|
6574
6574
|
"& .MuiInputLabel-root": {
|
|
6575
6575
|
transform: "translate(14px, -9px) scale(0.75)",
|
|
6576
|
-
// Keep label in shrunk position
|
|
6577
6576
|
"&.MuiInputLabel-shrink": {
|
|
6578
6577
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
6579
6578
|
}
|