@cgi-learning-hub/ui 0.0.1-dev.1713359037 → 0.0.1-dev.1715078279
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/Box-DL1-mhd_.cjs +1 -0
- package/dist/{Box-CcD_sRqe.js → Box-Mup7NS_A.js} +24 -26
- package/dist/{ButtonBase-BBqNg9BC.js → ButtonBase-CjZVRZ1j.js} +102 -107
- package/dist/ButtonBase-h89TFQ74.cjs +75 -0
- package/dist/{CircularProgress-G9G_loET.js → CircularProgress-B5dLec9p.js} +4 -4
- package/dist/{CircularProgress-DVnd6kxt.cjs → CircularProgress-DvSP1TlK.cjs} +1 -1
- package/dist/{DefaultButton-DDeufcNs.js → DefaultButton-Bm_9J15r.js} +94 -95
- package/dist/DefaultButton-DpAQ3D3A.cjs +1 -0
- package/dist/{IconButton-B6XIqj_T.js → IconButton-BTwUbULL.js} +28 -29
- package/dist/IconButton-DwyJkFK6.cjs +2 -0
- package/dist/{InputBase-CdKFPwS3.js → InputBase-DQZzB50R.js} +280 -320
- package/dist/InputBase-pgeQJ7f1.cjs +3 -0
- package/dist/{LocalizationProvider-CNYbKILJ.cjs → LocalizationProvider-DESNnS1V.cjs} +1 -1
- package/dist/{LocalizationProvider-0zrjdh3x.js → LocalizationProvider-DFtKYTy5.js} +2 -2
- package/dist/SearchInput-CwKQj1FS.cjs +1 -0
- package/dist/{SearchInput-Q5BP0X0K.js → SearchInput-DFha51RP.js} +25 -25
- package/dist/Tabs-BnINEF7f.cjs +4 -0
- package/dist/{Tabs-CDBEadDu.js → Tabs-LRPQPGjl.js} +264 -265
- package/dist/TextInput-C6fc3CHh.cjs +12 -0
- package/dist/{TextInput-BNe_BIm9.js → TextInput-UE9eu-Sh.js} +1388 -1397
- package/dist/{TimePicker-CLYqSUwA.js → TimePicker-DgWZLyZU.js} +4848 -4664
- package/dist/TimePicker-DqFt1DP_.cjs +73 -0
- package/dist/Typography-BAJIrofJ.cjs +1 -0
- package/dist/{Typography-CkEznQ8f.js → Typography-BWCcreVc.js} +74 -100
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +3 -2
- package/dist/components/Dropzone/Dropzone.es.js +9 -9
- package/dist/components/Dropzone/Dropzone.stories.d.ts +2 -1
- package/dist/components/Dropzone/index.d.ts +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +2 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -0
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +2 -1
- package/dist/components/LoaderBackdrop/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +2 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +3 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +2 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.d.ts +2 -2
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.d.ts +2 -1
- package/dist/components/buttons/IconButton.stories.es.js +10 -9
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +2 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/index.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +2 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/index.d.ts +2 -2
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.d.ts +3 -3
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/Alert/Alert.d.ts +2 -1
- package/dist/components/feedback/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/feedback/Alert/index.d.ts +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +110 -110
- package/dist/components/index.es.js +11 -11
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -6
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/index.d.ts +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.d.ts +2 -2
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +2 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.d.ts +2 -2
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +2 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.d.ts +2 -2
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.d.ts +3 -3
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.d.ts +2 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileList.stories.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.es.js +11 -10
- package/dist/components/lists/FileList/index.d.ts +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.d.ts +2 -1
- package/dist/components/lists/TabList.stories.es.js +48 -49
- package/dist/components/lists/index.d.ts +1 -1
- package/dist/createSvgIcon-Bmh1dZN3.cjs +2 -0
- package/dist/createSvgIcon-BuZnNhW1.js +74 -0
- package/dist/{createSvgIcon-10LjrjuM.cjs → createSvgIcon-Ch5OwvT5.cjs} +1 -1
- package/dist/{createSvgIcon-DfXrmzRs.js → createSvgIcon-CwlWc9q-.js} +3 -3
- package/dist/{fr-HqFYdKZp.js → fr-1JMu1aWG.js} +1 -1
- package/dist/{fr-BNYi5x0Z.cjs → fr-BTDmq9ek.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +184 -184
- package/dist/{refType-BklAUjsY.js → refType-BatLLQAf.js} +7 -7
- package/dist/{refType-B-3PavG_.cjs → refType-BbhHflrD.cjs} +1 -1
- package/dist/styled-BBsrnZJ1.js +1218 -0
- package/dist/styled-CJ2HJ-9N.cjs +26 -0
- package/dist/useSlotProps-Ds0ykcZp.js +87 -0
- package/dist/useSlotProps-DykCCTRs.cjs +1 -0
- package/dist/{useThemeProps-DDcolYEZ.js → useThemeProps-C59ZmJTM.js} +1034 -926
- package/dist/useThemeProps-C5iFxIYI.cjs +42 -0
- package/package.json +16 -16
- package/dist/Box-C0uoTW0F.cjs +0 -1
- package/dist/ButtonBase-C_YtHw1h.cjs +0 -75
- package/dist/DefaultButton-DlTnxizc.cjs +0 -1
- package/dist/IconButton-Cz-zGz0v.cjs +0 -2
- package/dist/InputBase-DCjJT6Ht.cjs +0 -4
- package/dist/SearchInput-sybrE3fq.cjs +0 -1
- package/dist/Tabs-DX6Gm63O.cjs +0 -4
- package/dist/TextInput-Bla-t0jF.cjs +0 -12
- package/dist/TimePicker-EGYtgZTn.cjs +0 -71
- package/dist/Typography-B7jZzwxf.cjs +0 -1
- package/dist/createSvgIcon-Cy5_B3av.cjs +0 -2
- package/dist/createSvgIcon-MpAknZJY.js +0 -84
- package/dist/styled-CCfndrS2.js +0 -424
- package/dist/styled-jkrYOquU.cjs +0 -24
- package/dist/useSlotProps-Br7yUp1t.js +0 -78
- package/dist/useSlotProps-I3uiiCEn.cjs +0 -1
- package/dist/useThemeProps-BYFHMDRd.cjs +0 -42
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { P as e, _ as d, b as
|
|
1
|
+
import { jsxs as me, jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { P as e, _ as d, b as q, g as Z, u as re, m as go, c as ce, a as Do, k as Mn } from "./useThemeProps-C59ZmJTM.js";
|
|
3
3
|
import * as u from "react";
|
|
4
|
-
import
|
|
5
|
-
import { g as
|
|
6
|
-
import { i as
|
|
7
|
-
import { c as Lo, i as
|
|
4
|
+
import Ge from "react";
|
|
5
|
+
import { g as ee, s as j, r as be, a as oe, c as Q, d as yo, f as kn } from "./styled-BBsrnZJ1.js";
|
|
6
|
+
import { i as Eo, a as xo, r as To, b as Oo, c as Ro, I as Co, u as Ve, f as qe, d as Fn, e as fo, F as $n } from "./InputBase-DQZzB50R.js";
|
|
7
|
+
import { c as Lo, i as lo, u as jo } from "./useControlled-BsLcOmhe.js";
|
|
8
8
|
import { u as Zo } from "./useId-BW-oWmul.js";
|
|
9
|
-
import { e as
|
|
10
|
-
import { a as
|
|
11
|
-
import { c as eo, r as we, e as
|
|
12
|
-
import { _ as
|
|
13
|
-
import * as
|
|
14
|
-
import
|
|
15
|
-
import { o as ie, a as We, d as
|
|
16
|
-
import { u as Ao, a as
|
|
17
|
-
import { i as
|
|
18
|
-
import { c as
|
|
19
|
-
function
|
|
9
|
+
import { e as Dn, b as Po, a as $e, u as Ln } from "./useSlotProps-Ds0ykcZp.js";
|
|
10
|
+
import { a as he, u as mo, s as _o } from "./useForkRef-CQ5u1_mH.js";
|
|
11
|
+
import { c as eo, r as we, e as jn } from "./refType-BatLLQAf.js";
|
|
12
|
+
import { _ as _n, T as en } from "./TransitionGroupContext-C7wWJ6l7.js";
|
|
13
|
+
import * as An from "react-dom";
|
|
14
|
+
import Xe from "react-dom";
|
|
15
|
+
import { o as ie, a as We, d as Bn } from "./ownerWindow-C7EH1lr6.js";
|
|
16
|
+
import { u as Ao, a as Wn } from "./useTimeout-Dokw0W_A.js";
|
|
17
|
+
import { i as Un } from "./isHostComponent-kiaBvYVo.js";
|
|
18
|
+
import { c as Vn } from "./createSvgIcon-CwlWc9q-.js";
|
|
19
|
+
function qn(o) {
|
|
20
20
|
const {
|
|
21
21
|
prototype: n = {}
|
|
22
22
|
} = o;
|
|
@@ -32,14 +32,14 @@ function on(o, n, t, r, i) {
|
|
|
32
32
|
return null;
|
|
33
33
|
let l;
|
|
34
34
|
const c = s.type;
|
|
35
|
-
return typeof c == "function" && !
|
|
35
|
+
return typeof c == "function" && !qn(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${t}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
function
|
|
37
|
+
const ze = eo(e.element, on);
|
|
38
|
+
ze.isRequired = eo(e.element.isRequired, on);
|
|
39
|
+
const zn = "exact-prop: ";
|
|
40
|
+
function nn(o) {
|
|
41
41
|
return process.env.NODE_ENV === "production" ? o : d({}, o, {
|
|
42
|
-
[
|
|
42
|
+
[zn]: (n) => {
|
|
43
43
|
const t = Object.keys(n).filter((r) => !o.hasOwnProperty(r));
|
|
44
44
|
return t.length > 0 ? new Error(`The following props are not supported: ${t.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
45
45
|
}
|
|
@@ -51,11 +51,11 @@ function Ue(o, n, t, r, i) {
|
|
|
51
51
|
const s = o[n], a = i || n;
|
|
52
52
|
return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${t}\`. Expected an HTMLElement.`) : null;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function tn(o) {
|
|
55
55
|
const n = o.documentElement.clientWidth;
|
|
56
56
|
return Math.abs(window.innerWidth - n);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Hn(o) {
|
|
59
59
|
const n = typeof o;
|
|
60
60
|
switch (n) {
|
|
61
61
|
case "number":
|
|
@@ -66,469 +66,37 @@ function Yn(o) {
|
|
|
66
66
|
return n;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Kn(o) {
|
|
70
70
|
return typeof o == "number" && isFinite(o) && Math.floor(o) === o;
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
function
|
|
72
|
+
const Gn = Number.isInteger || Kn;
|
|
73
|
+
function rn(o, n, t, r) {
|
|
74
74
|
const i = o[n];
|
|
75
|
-
if (i == null || !
|
|
76
|
-
const s =
|
|
75
|
+
if (i == null || !Gn(i)) {
|
|
76
|
+
const s = Hn(i);
|
|
77
77
|
return new RangeError(`Invalid ${r} \`${n}\` of type \`${s}\` supplied to \`${t}\`, expected \`integer\`.`);
|
|
78
78
|
}
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return o[n] === void 0 ? null :
|
|
81
|
+
function sn(o, n, ...t) {
|
|
82
|
+
return o[n] === void 0 ? null : rn(o, n, ...t);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function bo() {
|
|
85
85
|
return null;
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
87
|
+
sn.isRequired = rn;
|
|
88
|
+
bo.isRequired = bo;
|
|
89
|
+
const an = process.env.NODE_ENV === "production" ? bo : sn, Bo = (o) => {
|
|
90
90
|
let n;
|
|
91
91
|
return o < 1 ? n = 5.11916 * o ** 2 : n = 4.5 * Math.log(o + 1) + 2, (n / 100).toFixed(2);
|
|
92
|
-
},
|
|
93
|
-
function ot(o) {
|
|
94
|
-
const n = parseInt(o.getAttribute("tabindex") || "", 10);
|
|
95
|
-
return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
|
|
96
|
-
}
|
|
97
|
-
function nt(o) {
|
|
98
|
-
if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
|
|
99
|
-
return !1;
|
|
100
|
-
const n = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
101
|
-
let t = n(`[name="${o.name}"]:checked`);
|
|
102
|
-
return t || (t = n(`[name="${o.name}"]`)), t !== o;
|
|
103
|
-
}
|
|
104
|
-
function tt(o) {
|
|
105
|
-
return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || nt(o));
|
|
106
|
-
}
|
|
107
|
-
function rt(o) {
|
|
108
|
-
const n = [], t = [];
|
|
109
|
-
return Array.from(o.querySelectorAll(et)).forEach((r, i) => {
|
|
110
|
-
const s = ot(r);
|
|
111
|
-
s === -1 || !tt(r) || (s === 0 ? n.push(r) : t.push({
|
|
112
|
-
documentOrder: i,
|
|
113
|
-
tabIndex: s,
|
|
114
|
-
node: r
|
|
115
|
-
}));
|
|
116
|
-
}), t.sort((r, i) => r.tabIndex === i.tabIndex ? r.documentOrder - i.documentOrder : r.tabIndex - i.tabIndex).map((r) => r.node).concat(n);
|
|
117
|
-
}
|
|
118
|
-
function st() {
|
|
119
|
-
return !0;
|
|
120
|
-
}
|
|
121
|
-
function Ye(o) {
|
|
122
|
-
const {
|
|
123
|
-
children: n,
|
|
124
|
-
disableAutoFocus: t = !1,
|
|
125
|
-
disableEnforceFocus: r = !1,
|
|
126
|
-
disableRestoreFocus: i = !1,
|
|
127
|
-
getTabbable: s = rt,
|
|
128
|
-
isEnabled: a = st,
|
|
129
|
-
open: l
|
|
130
|
-
} = o, c = u.useRef(!1), p = u.useRef(null), b = u.useRef(null), h = u.useRef(null), x = u.useRef(null), T = u.useRef(!1), v = u.useRef(null), w = be(n.ref, v), O = u.useRef(null);
|
|
131
|
-
u.useEffect(() => {
|
|
132
|
-
!l || !v.current || (T.current = !t);
|
|
133
|
-
}, [t, l]), u.useEffect(() => {
|
|
134
|
-
if (!l || !v.current)
|
|
135
|
-
return;
|
|
136
|
-
const f = ie(v.current);
|
|
137
|
-
return v.current.contains(f.activeElement) || (v.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(`
|
|
138
|
-
`)), v.current.setAttribute("tabIndex", "-1")), T.current && v.current.focus()), () => {
|
|
139
|
-
i || (h.current && h.current.focus && (c.current = !0, h.current.focus()), h.current = null);
|
|
140
|
-
};
|
|
141
|
-
}, [l]), u.useEffect(() => {
|
|
142
|
-
if (!l || !v.current)
|
|
143
|
-
return;
|
|
144
|
-
const f = ie(v.current), m = (y) => {
|
|
145
|
-
O.current = y, !(r || !a() || y.key !== "Tab") && f.activeElement === v.current && y.shiftKey && (c.current = !0, b.current && b.current.focus());
|
|
146
|
-
}, E = () => {
|
|
147
|
-
const y = v.current;
|
|
148
|
-
if (y === null)
|
|
149
|
-
return;
|
|
150
|
-
if (!f.hasFocus() || !a() || c.current) {
|
|
151
|
-
c.current = !1;
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
if (y.contains(f.activeElement) || r && f.activeElement !== p.current && f.activeElement !== b.current)
|
|
155
|
-
return;
|
|
156
|
-
if (f.activeElement !== x.current)
|
|
157
|
-
x.current = null;
|
|
158
|
-
else if (x.current !== null)
|
|
159
|
-
return;
|
|
160
|
-
if (!T.current)
|
|
161
|
-
return;
|
|
162
|
-
let D = [];
|
|
163
|
-
if ((f.activeElement === p.current || f.activeElement === b.current) && (D = s(v.current)), D.length > 0) {
|
|
164
|
-
var j, A;
|
|
165
|
-
const V = !!((j = O.current) != null && j.shiftKey && ((A = O.current) == null ? void 0 : A.key) === "Tab"), W = D[0], F = D[D.length - 1];
|
|
166
|
-
typeof W != "string" && typeof F != "string" && (V ? F.focus() : W.focus());
|
|
167
|
-
} else
|
|
168
|
-
y.focus();
|
|
169
|
-
};
|
|
170
|
-
f.addEventListener("focusin", E), f.addEventListener("keydown", m, !0);
|
|
171
|
-
const P = setInterval(() => {
|
|
172
|
-
f.activeElement && f.activeElement.tagName === "BODY" && E();
|
|
173
|
-
}, 50);
|
|
174
|
-
return () => {
|
|
175
|
-
clearInterval(P), f.removeEventListener("focusin", E), f.removeEventListener("keydown", m, !0);
|
|
176
|
-
};
|
|
177
|
-
}, [t, r, i, a, l, s]);
|
|
178
|
-
const g = (f) => {
|
|
179
|
-
h.current === null && (h.current = f.relatedTarget), T.current = !0, x.current = f.target;
|
|
180
|
-
const m = n.props.onFocus;
|
|
181
|
-
m && m(f);
|
|
182
|
-
}, M = (f) => {
|
|
183
|
-
h.current === null && (h.current = f.relatedTarget), T.current = !0;
|
|
184
|
-
};
|
|
185
|
-
return /* @__PURE__ */ fe(u.Fragment, {
|
|
186
|
-
children: [/* @__PURE__ */ I("div", {
|
|
187
|
-
tabIndex: l ? 0 : -1,
|
|
188
|
-
onFocus: M,
|
|
189
|
-
ref: p,
|
|
190
|
-
"data-testid": "sentinelStart"
|
|
191
|
-
}), /* @__PURE__ */ u.cloneElement(n, {
|
|
192
|
-
ref: w,
|
|
193
|
-
onFocus: g
|
|
194
|
-
}), /* @__PURE__ */ I("div", {
|
|
195
|
-
tabIndex: l ? 0 : -1,
|
|
196
|
-
onFocus: M,
|
|
197
|
-
ref: b,
|
|
198
|
-
"data-testid": "sentinelEnd"
|
|
199
|
-
})]
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
203
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
204
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
205
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
206
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
207
|
-
/**
|
|
208
|
-
* A single child content element.
|
|
209
|
-
*/
|
|
210
|
-
children: oo,
|
|
211
|
-
/**
|
|
212
|
-
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
213
|
-
* replace it to the last focused element when it closes.
|
|
214
|
-
* This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
|
|
215
|
-
*
|
|
216
|
-
* Generally this should never be set to `true` as it makes the focus trap less
|
|
217
|
-
* accessible to assistive technologies, like screen readers.
|
|
218
|
-
* @default false
|
|
219
|
-
*/
|
|
220
|
-
disableAutoFocus: e.bool,
|
|
221
|
-
/**
|
|
222
|
-
* If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
|
|
223
|
-
*
|
|
224
|
-
* Generally this should never be set to `true` as it makes the focus trap less
|
|
225
|
-
* accessible to assistive technologies, like screen readers.
|
|
226
|
-
* @default false
|
|
227
|
-
*/
|
|
228
|
-
disableEnforceFocus: e.bool,
|
|
229
|
-
/**
|
|
230
|
-
* If `true`, the focus trap will not restore focus to previously focused element once
|
|
231
|
-
* focus trap is hidden or unmounted.
|
|
232
|
-
* @default false
|
|
233
|
-
*/
|
|
234
|
-
disableRestoreFocus: e.bool,
|
|
235
|
-
/**
|
|
236
|
-
* Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
|
|
237
|
-
* For instance, you can provide the "tabbable" npm dependency.
|
|
238
|
-
* @param {HTMLElement} root
|
|
239
|
-
*/
|
|
240
|
-
getTabbable: e.func,
|
|
241
|
-
/**
|
|
242
|
-
* This prop extends the `open` prop.
|
|
243
|
-
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
|
244
|
-
* This prop should be memoized.
|
|
245
|
-
* It can be used to support multiple focus trap mounted at the same time.
|
|
246
|
-
* @default function defaultIsEnabled(): boolean {
|
|
247
|
-
* return true;
|
|
248
|
-
* }
|
|
249
|
-
*/
|
|
250
|
-
isEnabled: e.func,
|
|
251
|
-
/**
|
|
252
|
-
* If `true`, focus is locked.
|
|
253
|
-
*/
|
|
254
|
-
open: e.bool.isRequired
|
|
255
|
-
});
|
|
256
|
-
process.env.NODE_ENV !== "production" && (Ye.propTypes = tn(Ye.propTypes));
|
|
257
|
-
function it(o) {
|
|
258
|
-
return typeof o == "function" ? o() : o;
|
|
259
|
-
}
|
|
260
|
-
const Je = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
261
|
-
const {
|
|
262
|
-
children: r,
|
|
263
|
-
container: i,
|
|
264
|
-
disablePortal: s = !1
|
|
265
|
-
} = n, [a, l] = u.useState(null), c = be(/* @__PURE__ */ u.isValidElement(r) ? r.ref : null, t);
|
|
266
|
-
if (po(() => {
|
|
267
|
-
s || l(it(i) || document.body);
|
|
268
|
-
}, [i, s]), po(() => {
|
|
269
|
-
if (a && !s)
|
|
270
|
-
return _o(t, a), () => {
|
|
271
|
-
_o(t, null);
|
|
272
|
-
};
|
|
273
|
-
}, [t, a, s]), s) {
|
|
274
|
-
if (/* @__PURE__ */ u.isValidElement(r)) {
|
|
275
|
-
const p = {
|
|
276
|
-
ref: c
|
|
277
|
-
};
|
|
278
|
-
return /* @__PURE__ */ u.cloneElement(r, p);
|
|
279
|
-
}
|
|
280
|
-
return /* @__PURE__ */ I(u.Fragment, {
|
|
281
|
-
children: r
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
return /* @__PURE__ */ I(u.Fragment, {
|
|
285
|
-
children: a && /* @__PURE__ */ Vn.createPortal(r, a)
|
|
286
|
-
});
|
|
287
|
-
});
|
|
288
|
-
process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
289
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
290
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
291
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
292
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
293
|
-
/**
|
|
294
|
-
* The children to render into the `container`.
|
|
295
|
-
*/
|
|
296
|
-
children: e.node,
|
|
297
|
-
/**
|
|
298
|
-
* An HTML element or function that returns one.
|
|
299
|
-
* The `container` will have the portal children appended to it.
|
|
300
|
-
*
|
|
301
|
-
* You can also provide a callback, which is called in a React layout effect.
|
|
302
|
-
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
303
|
-
*
|
|
304
|
-
* By default, it uses the body of the top-level document object,
|
|
305
|
-
* so it's simply `document.body` most of the time.
|
|
306
|
-
*/
|
|
307
|
-
container: e.oneOfType([Ue, e.func]),
|
|
308
|
-
/**
|
|
309
|
-
* The `children` will be under the DOM hierarchy of the parent component.
|
|
310
|
-
* @default false
|
|
311
|
-
*/
|
|
312
|
-
disablePortal: e.bool
|
|
313
|
-
});
|
|
314
|
-
process.env.NODE_ENV !== "production" && (Je.propTypes = tn(Je.propTypes));
|
|
315
|
-
function at(o) {
|
|
316
|
-
const n = ie(o);
|
|
317
|
-
return n.body === o ? We(o).innerWidth > n.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
|
|
318
|
-
}
|
|
319
|
-
function Ae(o, n) {
|
|
320
|
-
n ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
|
|
321
|
-
}
|
|
322
|
-
function Wo(o) {
|
|
323
|
-
return parseInt(We(o).getComputedStyle(o).paddingRight, 10) || 0;
|
|
324
|
-
}
|
|
325
|
-
function lt(o) {
|
|
326
|
-
const t = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, r = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
|
|
327
|
-
return t || r;
|
|
328
|
-
}
|
|
329
|
-
function Uo(o, n, t, r, i) {
|
|
330
|
-
const s = [n, t, ...r];
|
|
331
|
-
[].forEach.call(o.children, (a) => {
|
|
332
|
-
const l = s.indexOf(a) === -1, c = !lt(a);
|
|
333
|
-
l && c && Ae(a, i);
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
function ao(o, n) {
|
|
337
|
-
let t = -1;
|
|
338
|
-
return o.some((r, i) => n(r) ? (t = i, !0) : !1), t;
|
|
339
|
-
}
|
|
340
|
-
function ct(o, n) {
|
|
341
|
-
const t = [], r = o.container;
|
|
342
|
-
if (!n.disableScrollLock) {
|
|
343
|
-
if (at(r)) {
|
|
344
|
-
const a = rn(ie(r));
|
|
345
|
-
t.push({
|
|
346
|
-
value: r.style.paddingRight,
|
|
347
|
-
property: "padding-right",
|
|
348
|
-
el: r
|
|
349
|
-
}), r.style.paddingRight = `${Wo(r) + a}px`;
|
|
350
|
-
const l = ie(r).querySelectorAll(".mui-fixed");
|
|
351
|
-
[].forEach.call(l, (c) => {
|
|
352
|
-
t.push({
|
|
353
|
-
value: c.style.paddingRight,
|
|
354
|
-
property: "padding-right",
|
|
355
|
-
el: c
|
|
356
|
-
}), c.style.paddingRight = `${Wo(c) + a}px`;
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
let s;
|
|
360
|
-
if (r.parentNode instanceof DocumentFragment)
|
|
361
|
-
s = ie(r).body;
|
|
362
|
-
else {
|
|
363
|
-
const a = r.parentElement, l = We(r);
|
|
364
|
-
s = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r;
|
|
365
|
-
}
|
|
366
|
-
t.push({
|
|
367
|
-
value: s.style.overflow,
|
|
368
|
-
property: "overflow",
|
|
369
|
-
el: s
|
|
370
|
-
}, {
|
|
371
|
-
value: s.style.overflowX,
|
|
372
|
-
property: "overflow-x",
|
|
373
|
-
el: s
|
|
374
|
-
}, {
|
|
375
|
-
value: s.style.overflowY,
|
|
376
|
-
property: "overflow-y",
|
|
377
|
-
el: s
|
|
378
|
-
}), s.style.overflow = "hidden";
|
|
379
|
-
}
|
|
380
|
-
return () => {
|
|
381
|
-
t.forEach(({
|
|
382
|
-
value: s,
|
|
383
|
-
el: a,
|
|
384
|
-
property: l
|
|
385
|
-
}) => {
|
|
386
|
-
s ? a.style.setProperty(l, s) : a.style.removeProperty(l);
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
function dt(o) {
|
|
391
|
-
const n = [];
|
|
392
|
-
return [].forEach.call(o.children, (t) => {
|
|
393
|
-
t.getAttribute("aria-hidden") === "true" && n.push(t);
|
|
394
|
-
}), n;
|
|
395
|
-
}
|
|
396
|
-
class ut {
|
|
397
|
-
constructor() {
|
|
398
|
-
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
|
399
|
-
}
|
|
400
|
-
add(n, t) {
|
|
401
|
-
let r = this.modals.indexOf(n);
|
|
402
|
-
if (r !== -1)
|
|
403
|
-
return r;
|
|
404
|
-
r = this.modals.length, this.modals.push(n), n.modalRef && Ae(n.modalRef, !1);
|
|
405
|
-
const i = dt(t);
|
|
406
|
-
Uo(t, n.mount, n.modalRef, i, !0);
|
|
407
|
-
const s = ao(this.containers, (a) => a.container === t);
|
|
408
|
-
return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
|
|
409
|
-
modals: [n],
|
|
410
|
-
container: t,
|
|
411
|
-
restore: null,
|
|
412
|
-
hiddenSiblings: i
|
|
413
|
-
}), r);
|
|
414
|
-
}
|
|
415
|
-
mount(n, t) {
|
|
416
|
-
const r = ao(this.containers, (s) => s.modals.indexOf(n) !== -1), i = this.containers[r];
|
|
417
|
-
i.restore || (i.restore = ct(i, t));
|
|
418
|
-
}
|
|
419
|
-
remove(n, t = !0) {
|
|
420
|
-
const r = this.modals.indexOf(n);
|
|
421
|
-
if (r === -1)
|
|
422
|
-
return r;
|
|
423
|
-
const i = ao(this.containers, (a) => a.modals.indexOf(n) !== -1), s = this.containers[i];
|
|
424
|
-
if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
|
|
425
|
-
s.restore && s.restore(), n.modalRef && Ae(n.modalRef, t), Uo(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
|
|
426
|
-
else {
|
|
427
|
-
const a = s.modals[s.modals.length - 1];
|
|
428
|
-
a.modalRef && Ae(a.modalRef, !1);
|
|
429
|
-
}
|
|
430
|
-
return r;
|
|
431
|
-
}
|
|
432
|
-
isTopModal(n) {
|
|
433
|
-
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
function pt(o) {
|
|
437
|
-
return typeof o == "function" ? o() : o;
|
|
438
|
-
}
|
|
439
|
-
function ft(o) {
|
|
440
|
-
return o ? o.props.hasOwnProperty("in") : !1;
|
|
441
|
-
}
|
|
442
|
-
const mt = new ut();
|
|
443
|
-
function bt(o) {
|
|
444
|
-
const {
|
|
445
|
-
container: n,
|
|
446
|
-
disableEscapeKeyDown: t = !1,
|
|
447
|
-
disableScrollLock: r = !1,
|
|
448
|
-
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
|
449
|
-
manager: i = mt,
|
|
450
|
-
closeAfterTransition: s = !1,
|
|
451
|
-
onTransitionEnter: a,
|
|
452
|
-
onTransitionExited: l,
|
|
453
|
-
children: c,
|
|
454
|
-
onClose: p,
|
|
455
|
-
open: b,
|
|
456
|
-
rootRef: h
|
|
457
|
-
} = o, x = u.useRef({}), T = u.useRef(null), v = u.useRef(null), w = be(v, h), [O, g] = u.useState(!b), M = ft(c);
|
|
458
|
-
let f = !0;
|
|
459
|
-
(o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (f = !1);
|
|
460
|
-
const m = () => ie(T.current), E = () => (x.current.modalRef = v.current, x.current.mount = T.current, x.current), P = () => {
|
|
461
|
-
i.mount(E(), {
|
|
462
|
-
disableScrollLock: r
|
|
463
|
-
}), v.current && (v.current.scrollTop = 0);
|
|
464
|
-
}, y = Ao(() => {
|
|
465
|
-
const S = pt(n) || m().body;
|
|
466
|
-
i.add(E(), S), v.current && P();
|
|
467
|
-
}), D = u.useCallback(() => i.isTopModal(E()), [i]), j = Ao((S) => {
|
|
468
|
-
T.current = S, S && (b && D() ? P() : v.current && Ae(v.current, f));
|
|
469
|
-
}), A = u.useCallback(() => {
|
|
470
|
-
i.remove(E(), f);
|
|
471
|
-
}, [f, i]);
|
|
472
|
-
u.useEffect(() => () => {
|
|
473
|
-
A();
|
|
474
|
-
}, [A]), u.useEffect(() => {
|
|
475
|
-
b ? y() : (!M || !s) && A();
|
|
476
|
-
}, [b, A, M, s, y]);
|
|
477
|
-
const V = (S) => (k) => {
|
|
478
|
-
var $;
|
|
479
|
-
($ = S.onKeyDown) == null || $.call(S, k), !(k.key !== "Escape" || k.which === 229 || // Wait until IME is settled.
|
|
480
|
-
!D()) && (t || (k.stopPropagation(), p && p(k, "escapeKeyDown")));
|
|
481
|
-
}, W = (S) => (k) => {
|
|
482
|
-
var $;
|
|
483
|
-
($ = S.onClick) == null || $.call(S, k), k.target === k.currentTarget && p && p(k, "backdropClick");
|
|
484
|
-
};
|
|
485
|
-
return {
|
|
486
|
-
getRootProps: (S = {}) => {
|
|
487
|
-
const k = Bn(o);
|
|
488
|
-
delete k.onTransitionEnter, delete k.onTransitionExited;
|
|
489
|
-
const $ = d({}, k, S);
|
|
490
|
-
return d({
|
|
491
|
-
role: "presentation"
|
|
492
|
-
}, $, {
|
|
493
|
-
onKeyDown: V($),
|
|
494
|
-
ref: w
|
|
495
|
-
});
|
|
496
|
-
},
|
|
497
|
-
getBackdropProps: (S = {}) => {
|
|
498
|
-
const k = S;
|
|
499
|
-
return d({
|
|
500
|
-
"aria-hidden": !0
|
|
501
|
-
}, k, {
|
|
502
|
-
onClick: W(k),
|
|
503
|
-
open: b
|
|
504
|
-
});
|
|
505
|
-
},
|
|
506
|
-
getTransitionProps: () => {
|
|
507
|
-
const S = () => {
|
|
508
|
-
g(!1), a && a();
|
|
509
|
-
}, k = () => {
|
|
510
|
-
g(!0), l && l(), s && A();
|
|
511
|
-
};
|
|
512
|
-
return {
|
|
513
|
-
onEnter: Lo(S, c == null ? void 0 : c.props.onEnter),
|
|
514
|
-
onExited: Lo(k, c == null ? void 0 : c.props.onExited)
|
|
515
|
-
};
|
|
516
|
-
},
|
|
517
|
-
rootRef: w,
|
|
518
|
-
portalRef: j,
|
|
519
|
-
isTopModal: D,
|
|
520
|
-
exited: O,
|
|
521
|
-
hasTransition: M
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
const Vo = {
|
|
92
|
+
}, Wo = {
|
|
525
93
|
disabled: !1
|
|
526
94
|
};
|
|
527
|
-
var
|
|
95
|
+
var Xn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
528
96
|
enter: e.number,
|
|
529
97
|
exit: e.number,
|
|
530
98
|
appear: e.number
|
|
531
|
-
}).isRequired]) : null,
|
|
99
|
+
}).isRequired]) : null, $s = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
|
|
532
100
|
enter: e.string,
|
|
533
101
|
exit: e.string,
|
|
534
102
|
active: e.string
|
|
@@ -539,15 +107,15 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
539
107
|
exit: e.string,
|
|
540
108
|
exitDone: e.string,
|
|
541
109
|
exitActive: e.string
|
|
542
|
-
})]) : null,
|
|
110
|
+
})]) : null, Yn = function(n) {
|
|
543
111
|
return n.scrollTop;
|
|
544
|
-
}, _e = "unmounted", Ie = "exited", Se = "entering",
|
|
545
|
-
|
|
112
|
+
}, _e = "unmounted", Ie = "exited", Se = "entering", Fe = "entered", ho = "exiting", de = /* @__PURE__ */ function(o) {
|
|
113
|
+
_n(n, o);
|
|
546
114
|
function n(r, i) {
|
|
547
115
|
var s;
|
|
548
116
|
s = o.call(this, r, i) || this;
|
|
549
117
|
var a = i, l = a && !a.isMounting ? r.enter : r.appear, c;
|
|
550
|
-
return s.appearStatus = null, r.in ? l ? (c = Ie, s.appearStatus = Se) : c =
|
|
118
|
+
return s.appearStatus = null, r.in ? l ? (c = Ie, s.appearStatus = Se) : c = Fe : r.unmountOnExit || r.mountOnEnter ? c = _e : c = Ie, s.state = {
|
|
551
119
|
status: c
|
|
552
120
|
}, s.nextCallback = null, s;
|
|
553
121
|
}
|
|
@@ -564,7 +132,7 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
564
132
|
var s = null;
|
|
565
133
|
if (i !== this.props) {
|
|
566
134
|
var a = this.state.status;
|
|
567
|
-
this.props.in ? a !== Se && a !==
|
|
135
|
+
this.props.in ? a !== Se && a !== Fe && (s = Se) : (a === Se || a === Fe) && (s = ho);
|
|
568
136
|
}
|
|
569
137
|
this.updateStatus(!1, s);
|
|
570
138
|
}, t.componentWillUnmount = function() {
|
|
@@ -580,8 +148,8 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
580
148
|
if (i === void 0 && (i = !1), s !== null)
|
|
581
149
|
if (this.cancelNextCallback(), s === Se) {
|
|
582
150
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
583
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
584
|
-
a &&
|
|
151
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Xe.findDOMNode(this);
|
|
152
|
+
a && Yn(a);
|
|
585
153
|
}
|
|
586
154
|
this.performEnter(i);
|
|
587
155
|
} else
|
|
@@ -591,10 +159,10 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
591
159
|
status: _e
|
|
592
160
|
});
|
|
593
161
|
}, t.performEnter = function(i) {
|
|
594
|
-
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [l] : [
|
|
595
|
-
if (!i && !a ||
|
|
162
|
+
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [l] : [Xe.findDOMNode(this), l], p = c[0], b = c[1], h = this.getTimeouts(), x = l ? h.appear : h.enter;
|
|
163
|
+
if (!i && !a || Wo.disabled) {
|
|
596
164
|
this.safeSetState({
|
|
597
|
-
status:
|
|
165
|
+
status: Fe
|
|
598
166
|
}, function() {
|
|
599
167
|
s.props.onEntered(p);
|
|
600
168
|
});
|
|
@@ -605,15 +173,15 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
605
173
|
}, function() {
|
|
606
174
|
s.props.onEntering(p, b), s.onTransitionEnd(x, function() {
|
|
607
175
|
s.safeSetState({
|
|
608
|
-
status:
|
|
176
|
+
status: Fe
|
|
609
177
|
}, function() {
|
|
610
178
|
s.props.onEntered(p, b);
|
|
611
179
|
});
|
|
612
180
|
});
|
|
613
181
|
});
|
|
614
182
|
}, t.performExit = function() {
|
|
615
|
-
var i = this, s = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 :
|
|
616
|
-
if (!s ||
|
|
183
|
+
var i = this, s = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Xe.findDOMNode(this);
|
|
184
|
+
if (!s || Wo.disabled) {
|
|
617
185
|
this.safeSetState({
|
|
618
186
|
status: Ie
|
|
619
187
|
}, function() {
|
|
@@ -622,7 +190,7 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
622
190
|
return;
|
|
623
191
|
}
|
|
624
192
|
this.props.onExit(l), this.safeSetState({
|
|
625
|
-
status:
|
|
193
|
+
status: ho
|
|
626
194
|
}, function() {
|
|
627
195
|
i.props.onExiting(l), i.onTransitionEnd(a.exit, function() {
|
|
628
196
|
i.safeSetState({
|
|
@@ -645,7 +213,7 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
645
213
|
}, this.nextCallback;
|
|
646
214
|
}, t.onTransitionEnd = function(i, s) {
|
|
647
215
|
this.setNextCallback(s);
|
|
648
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
216
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Xe.findDOMNode(this), l = i == null && !this.props.addEndListener;
|
|
649
217
|
if (!a || l) {
|
|
650
218
|
setTimeout(this.nextCallback, 0);
|
|
651
219
|
return;
|
|
@@ -661,17 +229,17 @@ var ht = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
661
229
|
return null;
|
|
662
230
|
var s = this.props, a = s.children;
|
|
663
231
|
s.in, s.mountOnEnter, s.unmountOnExit, s.appear, s.enter, s.exit, s.timeout, s.addEndListener, s.onEnter, s.onEntering, s.onEntered, s.onExit, s.onExiting, s.onExited, s.nodeRef;
|
|
664
|
-
var l =
|
|
232
|
+
var l = q(s, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
665
233
|
return (
|
|
666
234
|
// allows for nested Transitions
|
|
667
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ Ge.createElement(en.Provider, {
|
|
668
236
|
value: null
|
|
669
|
-
}, typeof a == "function" ? a(i, l) :
|
|
237
|
+
}, typeof a == "function" ? a(i, l) : Ge.cloneElement(Ge.Children.only(a), l))
|
|
670
238
|
);
|
|
671
239
|
}, n;
|
|
672
|
-
}(
|
|
673
|
-
|
|
674
|
-
|
|
240
|
+
}(Ge.Component);
|
|
241
|
+
de.contextType = en;
|
|
242
|
+
de.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
675
243
|
/**
|
|
676
244
|
* A React reference to DOM element that need to transition:
|
|
677
245
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -767,7 +335,7 @@ he.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
767
335
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
768
336
|
*/
|
|
769
337
|
timeout: function(n) {
|
|
770
|
-
var t =
|
|
338
|
+
var t = Xn;
|
|
771
339
|
n.addEndListener || (t = t.isRequired);
|
|
772
340
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
773
341
|
i[s - 1] = arguments[s];
|
|
@@ -816,73 +384,504 @@ he.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
816
384
|
*/
|
|
817
385
|
onEntered: e.func,
|
|
818
386
|
/**
|
|
819
|
-
* Callback fired before the "exiting" status is applied.
|
|
820
|
-
*
|
|
821
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
822
|
-
*
|
|
823
|
-
* @type Function(node: HtmlElement) -> void
|
|
387
|
+
* Callback fired before the "exiting" status is applied.
|
|
388
|
+
*
|
|
389
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
390
|
+
*
|
|
391
|
+
* @type Function(node: HtmlElement) -> void
|
|
392
|
+
*/
|
|
393
|
+
onExit: e.func,
|
|
394
|
+
/**
|
|
395
|
+
* Callback fired after the "exiting" status is applied.
|
|
396
|
+
*
|
|
397
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
398
|
+
*
|
|
399
|
+
* @type Function(node: HtmlElement) -> void
|
|
400
|
+
*/
|
|
401
|
+
onExiting: e.func,
|
|
402
|
+
/**
|
|
403
|
+
* Callback fired after the "exited" status is applied.
|
|
404
|
+
*
|
|
405
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
406
|
+
*
|
|
407
|
+
* @type Function(node: HtmlElement) -> void
|
|
408
|
+
*/
|
|
409
|
+
onExited: e.func
|
|
410
|
+
} : {};
|
|
411
|
+
function ke() {
|
|
412
|
+
}
|
|
413
|
+
de.defaultProps = {
|
|
414
|
+
in: !1,
|
|
415
|
+
mountOnEnter: !1,
|
|
416
|
+
unmountOnExit: !1,
|
|
417
|
+
appear: !1,
|
|
418
|
+
enter: !0,
|
|
419
|
+
exit: !0,
|
|
420
|
+
onEnter: ke,
|
|
421
|
+
onEntering: ke,
|
|
422
|
+
onEntered: ke,
|
|
423
|
+
onExit: ke,
|
|
424
|
+
onExiting: ke,
|
|
425
|
+
onExited: ke
|
|
426
|
+
};
|
|
427
|
+
de.UNMOUNTED = _e;
|
|
428
|
+
de.EXITED = Ie;
|
|
429
|
+
de.ENTERING = Se;
|
|
430
|
+
de.ENTERED = Fe;
|
|
431
|
+
de.EXITING = ho;
|
|
432
|
+
const Jn = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
433
|
+
function Qn(o) {
|
|
434
|
+
const n = parseInt(o.getAttribute("tabindex") || "", 10);
|
|
435
|
+
return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
|
|
436
|
+
}
|
|
437
|
+
function Zn(o) {
|
|
438
|
+
if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
|
|
439
|
+
return !1;
|
|
440
|
+
const n = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
441
|
+
let t = n(`[name="${o.name}"]:checked`);
|
|
442
|
+
return t || (t = n(`[name="${o.name}"]`)), t !== o;
|
|
443
|
+
}
|
|
444
|
+
function et(o) {
|
|
445
|
+
return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || Zn(o));
|
|
446
|
+
}
|
|
447
|
+
function ot(o) {
|
|
448
|
+
const n = [], t = [];
|
|
449
|
+
return Array.from(o.querySelectorAll(Jn)).forEach((r, i) => {
|
|
450
|
+
const s = Qn(r);
|
|
451
|
+
s === -1 || !et(r) || (s === 0 ? n.push(r) : t.push({
|
|
452
|
+
documentOrder: i,
|
|
453
|
+
tabIndex: s,
|
|
454
|
+
node: r
|
|
455
|
+
}));
|
|
456
|
+
}), t.sort((r, i) => r.tabIndex === i.tabIndex ? r.documentOrder - i.documentOrder : r.tabIndex - i.tabIndex).map((r) => r.node).concat(n);
|
|
457
|
+
}
|
|
458
|
+
function nt() {
|
|
459
|
+
return !0;
|
|
460
|
+
}
|
|
461
|
+
function Je(o) {
|
|
462
|
+
const {
|
|
463
|
+
children: n,
|
|
464
|
+
disableAutoFocus: t = !1,
|
|
465
|
+
disableEnforceFocus: r = !1,
|
|
466
|
+
disableRestoreFocus: i = !1,
|
|
467
|
+
getTabbable: s = ot,
|
|
468
|
+
isEnabled: a = nt,
|
|
469
|
+
open: l
|
|
470
|
+
} = o, c = u.useRef(!1), p = u.useRef(null), b = u.useRef(null), h = u.useRef(null), x = u.useRef(null), T = u.useRef(!1), v = u.useRef(null), M = he(n.ref, v), R = u.useRef(null);
|
|
471
|
+
u.useEffect(() => {
|
|
472
|
+
!l || !v.current || (T.current = !t);
|
|
473
|
+
}, [t, l]), u.useEffect(() => {
|
|
474
|
+
if (!l || !v.current)
|
|
475
|
+
return;
|
|
476
|
+
const f = ie(v.current);
|
|
477
|
+
return v.current.contains(f.activeElement) || (v.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(`
|
|
478
|
+
`)), v.current.setAttribute("tabIndex", "-1")), T.current && v.current.focus()), () => {
|
|
479
|
+
i || (h.current && h.current.focus && (c.current = !0, h.current.focus()), h.current = null);
|
|
480
|
+
};
|
|
481
|
+
}, [l]), u.useEffect(() => {
|
|
482
|
+
if (!l || !v.current)
|
|
483
|
+
return;
|
|
484
|
+
const f = ie(v.current), m = (g) => {
|
|
485
|
+
R.current = g, !(r || !a() || g.key !== "Tab") && f.activeElement === v.current && g.shiftKey && (c.current = !0, b.current && b.current.focus());
|
|
486
|
+
}, E = () => {
|
|
487
|
+
const g = v.current;
|
|
488
|
+
if (g === null)
|
|
489
|
+
return;
|
|
490
|
+
if (!f.hasFocus() || !a() || c.current) {
|
|
491
|
+
c.current = !1;
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
if (g.contains(f.activeElement) || r && f.activeElement !== p.current && f.activeElement !== b.current)
|
|
495
|
+
return;
|
|
496
|
+
if (f.activeElement !== x.current)
|
|
497
|
+
x.current = null;
|
|
498
|
+
else if (x.current !== null)
|
|
499
|
+
return;
|
|
500
|
+
if (!T.current)
|
|
501
|
+
return;
|
|
502
|
+
let D = [];
|
|
503
|
+
if ((f.activeElement === p.current || f.activeElement === b.current) && (D = s(v.current)), D.length > 0) {
|
|
504
|
+
var A, L;
|
|
505
|
+
const z = !!((A = R.current) != null && A.shiftKey && ((L = R.current) == null ? void 0 : L.key) === "Tab"), B = D[0], $ = D[D.length - 1];
|
|
506
|
+
typeof B != "string" && typeof $ != "string" && (z ? $.focus() : B.focus());
|
|
507
|
+
} else
|
|
508
|
+
g.focus();
|
|
509
|
+
};
|
|
510
|
+
f.addEventListener("focusin", E), f.addEventListener("keydown", m, !0);
|
|
511
|
+
const P = setInterval(() => {
|
|
512
|
+
f.activeElement && f.activeElement.tagName === "BODY" && E();
|
|
513
|
+
}, 50);
|
|
514
|
+
return () => {
|
|
515
|
+
clearInterval(P), f.removeEventListener("focusin", E), f.removeEventListener("keydown", m, !0);
|
|
516
|
+
};
|
|
517
|
+
}, [t, r, i, a, l, s]);
|
|
518
|
+
const y = (f) => {
|
|
519
|
+
h.current === null && (h.current = f.relatedTarget), T.current = !0, x.current = f.target;
|
|
520
|
+
const m = n.props.onFocus;
|
|
521
|
+
m && m(f);
|
|
522
|
+
}, k = (f) => {
|
|
523
|
+
h.current === null && (h.current = f.relatedTarget), T.current = !0;
|
|
524
|
+
};
|
|
525
|
+
return /* @__PURE__ */ me(u.Fragment, {
|
|
526
|
+
children: [/* @__PURE__ */ I("div", {
|
|
527
|
+
tabIndex: l ? 0 : -1,
|
|
528
|
+
onFocus: k,
|
|
529
|
+
ref: p,
|
|
530
|
+
"data-testid": "sentinelStart"
|
|
531
|
+
}), /* @__PURE__ */ u.cloneElement(n, {
|
|
532
|
+
ref: M,
|
|
533
|
+
onFocus: y
|
|
534
|
+
}), /* @__PURE__ */ I("div", {
|
|
535
|
+
tabIndex: l ? 0 : -1,
|
|
536
|
+
onFocus: k,
|
|
537
|
+
ref: b,
|
|
538
|
+
"data-testid": "sentinelEnd"
|
|
539
|
+
})]
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
543
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
544
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
545
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
546
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
547
|
+
/**
|
|
548
|
+
* A single child content element.
|
|
549
|
+
*/
|
|
550
|
+
children: ze,
|
|
551
|
+
/**
|
|
552
|
+
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
553
|
+
* replace it to the last focused element when it closes.
|
|
554
|
+
* This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
|
|
555
|
+
*
|
|
556
|
+
* Generally this should never be set to `true` as it makes the focus trap less
|
|
557
|
+
* accessible to assistive technologies, like screen readers.
|
|
558
|
+
* @default false
|
|
559
|
+
*/
|
|
560
|
+
disableAutoFocus: e.bool,
|
|
561
|
+
/**
|
|
562
|
+
* If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
|
|
563
|
+
*
|
|
564
|
+
* Generally this should never be set to `true` as it makes the focus trap less
|
|
565
|
+
* accessible to assistive technologies, like screen readers.
|
|
566
|
+
* @default false
|
|
567
|
+
*/
|
|
568
|
+
disableEnforceFocus: e.bool,
|
|
569
|
+
/**
|
|
570
|
+
* If `true`, the focus trap will not restore focus to previously focused element once
|
|
571
|
+
* focus trap is hidden or unmounted.
|
|
572
|
+
* @default false
|
|
573
|
+
*/
|
|
574
|
+
disableRestoreFocus: e.bool,
|
|
575
|
+
/**
|
|
576
|
+
* Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
|
|
577
|
+
* For instance, you can provide the "tabbable" npm dependency.
|
|
578
|
+
* @param {HTMLElement} root
|
|
579
|
+
*/
|
|
580
|
+
getTabbable: e.func,
|
|
581
|
+
/**
|
|
582
|
+
* This prop extends the `open` prop.
|
|
583
|
+
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
|
584
|
+
* This prop should be memoized.
|
|
585
|
+
* It can be used to support multiple focus trap mounted at the same time.
|
|
586
|
+
* @default function defaultIsEnabled(): boolean {
|
|
587
|
+
* return true;
|
|
588
|
+
* }
|
|
589
|
+
*/
|
|
590
|
+
isEnabled: e.func,
|
|
591
|
+
/**
|
|
592
|
+
* If `true`, focus is locked.
|
|
593
|
+
*/
|
|
594
|
+
open: e.bool.isRequired
|
|
595
|
+
});
|
|
596
|
+
process.env.NODE_ENV !== "production" && (Je.propTypes = nn(Je.propTypes));
|
|
597
|
+
function tt(o) {
|
|
598
|
+
return typeof o == "function" ? o() : o;
|
|
599
|
+
}
|
|
600
|
+
const Qe = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
601
|
+
const {
|
|
602
|
+
children: r,
|
|
603
|
+
container: i,
|
|
604
|
+
disablePortal: s = !1
|
|
605
|
+
} = n, [a, l] = u.useState(null), c = he(/* @__PURE__ */ u.isValidElement(r) ? r.ref : null, t);
|
|
606
|
+
if (mo(() => {
|
|
607
|
+
s || l(tt(i) || document.body);
|
|
608
|
+
}, [i, s]), mo(() => {
|
|
609
|
+
if (a && !s)
|
|
610
|
+
return _o(t, a), () => {
|
|
611
|
+
_o(t, null);
|
|
612
|
+
};
|
|
613
|
+
}, [t, a, s]), s) {
|
|
614
|
+
if (/* @__PURE__ */ u.isValidElement(r)) {
|
|
615
|
+
const p = {
|
|
616
|
+
ref: c
|
|
617
|
+
};
|
|
618
|
+
return /* @__PURE__ */ u.cloneElement(r, p);
|
|
619
|
+
}
|
|
620
|
+
return /* @__PURE__ */ I(u.Fragment, {
|
|
621
|
+
children: r
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
return /* @__PURE__ */ I(u.Fragment, {
|
|
625
|
+
children: a && /* @__PURE__ */ An.createPortal(r, a)
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
629
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
630
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
631
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
632
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
633
|
+
/**
|
|
634
|
+
* The children to render into the `container`.
|
|
824
635
|
*/
|
|
825
|
-
|
|
636
|
+
children: e.node,
|
|
826
637
|
/**
|
|
827
|
-
*
|
|
638
|
+
* An HTML element or function that returns one.
|
|
639
|
+
* The `container` will have the portal children appended to it.
|
|
828
640
|
*
|
|
829
|
-
*
|
|
641
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
642
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
830
643
|
*
|
|
831
|
-
*
|
|
644
|
+
* By default, it uses the body of the top-level document object,
|
|
645
|
+
* so it's simply `document.body` most of the time.
|
|
832
646
|
*/
|
|
833
|
-
|
|
647
|
+
container: e.oneOfType([Ue, e.func]),
|
|
834
648
|
/**
|
|
835
|
-
*
|
|
836
|
-
*
|
|
837
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
838
|
-
*
|
|
839
|
-
* @type Function(node: HtmlElement) -> void
|
|
649
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
650
|
+
* @default false
|
|
840
651
|
*/
|
|
841
|
-
|
|
842
|
-
}
|
|
843
|
-
|
|
652
|
+
disablePortal: e.bool
|
|
653
|
+
});
|
|
654
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = nn(Qe.propTypes));
|
|
655
|
+
function rt(o) {
|
|
656
|
+
const n = ie(o);
|
|
657
|
+
return n.body === o ? We(o).innerWidth > n.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
|
|
844
658
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
659
|
+
function Ae(o, n) {
|
|
660
|
+
n ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
|
|
661
|
+
}
|
|
662
|
+
function Uo(o) {
|
|
663
|
+
return parseInt(We(o).getComputedStyle(o).paddingRight, 10) || 0;
|
|
664
|
+
}
|
|
665
|
+
function st(o) {
|
|
666
|
+
const t = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, r = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
|
|
667
|
+
return t || r;
|
|
668
|
+
}
|
|
669
|
+
function Vo(o, n, t, r, i) {
|
|
670
|
+
const s = [n, t, ...r];
|
|
671
|
+
[].forEach.call(o.children, (a) => {
|
|
672
|
+
const l = s.indexOf(a) === -1, c = !st(a);
|
|
673
|
+
l && c && Ae(a, i);
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
function co(o, n) {
|
|
677
|
+
let t = -1;
|
|
678
|
+
return o.some((r, i) => n(r) ? (t = i, !0) : !1), t;
|
|
679
|
+
}
|
|
680
|
+
function it(o, n) {
|
|
681
|
+
const t = [], r = o.container;
|
|
682
|
+
if (!n.disableScrollLock) {
|
|
683
|
+
if (rt(r)) {
|
|
684
|
+
const a = tn(ie(r));
|
|
685
|
+
t.push({
|
|
686
|
+
value: r.style.paddingRight,
|
|
687
|
+
property: "padding-right",
|
|
688
|
+
el: r
|
|
689
|
+
}), r.style.paddingRight = `${Uo(r) + a}px`;
|
|
690
|
+
const l = ie(r).querySelectorAll(".mui-fixed");
|
|
691
|
+
[].forEach.call(l, (c) => {
|
|
692
|
+
t.push({
|
|
693
|
+
value: c.style.paddingRight,
|
|
694
|
+
property: "padding-right",
|
|
695
|
+
el: c
|
|
696
|
+
}), c.style.paddingRight = `${Uo(c) + a}px`;
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
let s;
|
|
700
|
+
if (r.parentNode instanceof DocumentFragment)
|
|
701
|
+
s = ie(r).body;
|
|
702
|
+
else {
|
|
703
|
+
const a = r.parentElement, l = We(r);
|
|
704
|
+
s = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r;
|
|
705
|
+
}
|
|
706
|
+
t.push({
|
|
707
|
+
value: s.style.overflow,
|
|
708
|
+
property: "overflow",
|
|
709
|
+
el: s
|
|
710
|
+
}, {
|
|
711
|
+
value: s.style.overflowX,
|
|
712
|
+
property: "overflow-x",
|
|
713
|
+
el: s
|
|
714
|
+
}, {
|
|
715
|
+
value: s.style.overflowY,
|
|
716
|
+
property: "overflow-y",
|
|
717
|
+
el: s
|
|
718
|
+
}), s.style.overflow = "hidden";
|
|
719
|
+
}
|
|
720
|
+
return () => {
|
|
721
|
+
t.forEach(({
|
|
722
|
+
value: s,
|
|
723
|
+
el: a,
|
|
724
|
+
property: l
|
|
725
|
+
}) => {
|
|
726
|
+
s ? a.style.setProperty(l, s) : a.style.removeProperty(l);
|
|
727
|
+
});
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
function at(o) {
|
|
731
|
+
const n = [];
|
|
732
|
+
return [].forEach.call(o.children, (t) => {
|
|
733
|
+
t.getAttribute("aria-hidden") === "true" && n.push(t);
|
|
734
|
+
}), n;
|
|
735
|
+
}
|
|
736
|
+
class lt {
|
|
737
|
+
constructor() {
|
|
738
|
+
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
|
739
|
+
}
|
|
740
|
+
add(n, t) {
|
|
741
|
+
let r = this.modals.indexOf(n);
|
|
742
|
+
if (r !== -1)
|
|
743
|
+
return r;
|
|
744
|
+
r = this.modals.length, this.modals.push(n), n.modalRef && Ae(n.modalRef, !1);
|
|
745
|
+
const i = at(t);
|
|
746
|
+
Vo(t, n.mount, n.modalRef, i, !0);
|
|
747
|
+
const s = co(this.containers, (a) => a.container === t);
|
|
748
|
+
return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
|
|
749
|
+
modals: [n],
|
|
750
|
+
container: t,
|
|
751
|
+
restore: null,
|
|
752
|
+
hiddenSiblings: i
|
|
753
|
+
}), r);
|
|
754
|
+
}
|
|
755
|
+
mount(n, t) {
|
|
756
|
+
const r = co(this.containers, (s) => s.modals.indexOf(n) !== -1), i = this.containers[r];
|
|
757
|
+
i.restore || (i.restore = it(i, t));
|
|
758
|
+
}
|
|
759
|
+
remove(n, t = !0) {
|
|
760
|
+
const r = this.modals.indexOf(n);
|
|
761
|
+
if (r === -1)
|
|
762
|
+
return r;
|
|
763
|
+
const i = co(this.containers, (a) => a.modals.indexOf(n) !== -1), s = this.containers[i];
|
|
764
|
+
if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
|
|
765
|
+
s.restore && s.restore(), n.modalRef && Ae(n.modalRef, t), Vo(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
|
|
766
|
+
else {
|
|
767
|
+
const a = s.modals[s.modals.length - 1];
|
|
768
|
+
a.modalRef && Ae(a.modalRef, !1);
|
|
769
|
+
}
|
|
770
|
+
return r;
|
|
771
|
+
}
|
|
772
|
+
isTopModal(n) {
|
|
773
|
+
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
function ct(o) {
|
|
777
|
+
return typeof o == "function" ? o() : o;
|
|
778
|
+
}
|
|
779
|
+
function dt(o) {
|
|
780
|
+
return o ? o.props.hasOwnProperty("in") : !1;
|
|
781
|
+
}
|
|
782
|
+
const ut = new lt();
|
|
783
|
+
function pt(o) {
|
|
784
|
+
const {
|
|
785
|
+
container: n,
|
|
786
|
+
disableEscapeKeyDown: t = !1,
|
|
787
|
+
disableScrollLock: r = !1,
|
|
788
|
+
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
|
789
|
+
manager: i = ut,
|
|
790
|
+
closeAfterTransition: s = !1,
|
|
791
|
+
onTransitionEnter: a,
|
|
792
|
+
onTransitionExited: l,
|
|
793
|
+
children: c,
|
|
794
|
+
onClose: p,
|
|
795
|
+
open: b,
|
|
796
|
+
rootRef: h
|
|
797
|
+
} = o, x = u.useRef({}), T = u.useRef(null), v = u.useRef(null), M = he(v, h), [R, y] = u.useState(!b), k = dt(c);
|
|
798
|
+
let f = !0;
|
|
799
|
+
(o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (f = !1);
|
|
800
|
+
const m = () => ie(T.current), E = () => (x.current.modalRef = v.current, x.current.mount = T.current, x.current), P = () => {
|
|
801
|
+
i.mount(E(), {
|
|
802
|
+
disableScrollLock: r
|
|
803
|
+
}), v.current && (v.current.scrollTop = 0);
|
|
804
|
+
}, g = Ao(() => {
|
|
805
|
+
const w = ct(n) || m().body;
|
|
806
|
+
i.add(E(), w), v.current && P();
|
|
807
|
+
}), D = u.useCallback(() => i.isTopModal(E()), [i]), A = Ao((w) => {
|
|
808
|
+
T.current = w, w && (b && D() ? P() : v.current && Ae(v.current, f));
|
|
809
|
+
}), L = u.useCallback(() => {
|
|
810
|
+
i.remove(E(), f);
|
|
811
|
+
}, [f, i]);
|
|
812
|
+
u.useEffect(() => () => {
|
|
813
|
+
L();
|
|
814
|
+
}, [L]), u.useEffect(() => {
|
|
815
|
+
b ? g() : (!k || !s) && L();
|
|
816
|
+
}, [b, L, k, s, g]);
|
|
817
|
+
const z = (w) => (F) => {
|
|
818
|
+
var O;
|
|
819
|
+
(O = w.onKeyDown) == null || O.call(w, F), !(F.key !== "Escape" || F.which === 229 || // Wait until IME is settled.
|
|
820
|
+
!D()) && (t || (F.stopPropagation(), p && p(F, "escapeKeyDown")));
|
|
821
|
+
}, B = (w) => (F) => {
|
|
822
|
+
var O;
|
|
823
|
+
(O = w.onClick) == null || O.call(w, F), F.target === F.currentTarget && p && p(F, "backdropClick");
|
|
824
|
+
};
|
|
825
|
+
return {
|
|
826
|
+
getRootProps: (w = {}) => {
|
|
827
|
+
const F = Dn(o);
|
|
828
|
+
delete F.onTransitionEnter, delete F.onTransitionExited;
|
|
829
|
+
const O = d({}, F, w);
|
|
830
|
+
return d({
|
|
831
|
+
role: "presentation"
|
|
832
|
+
}, O, {
|
|
833
|
+
onKeyDown: z(O),
|
|
834
|
+
ref: M
|
|
835
|
+
});
|
|
836
|
+
},
|
|
837
|
+
getBackdropProps: (w = {}) => {
|
|
838
|
+
const F = w;
|
|
839
|
+
return d({
|
|
840
|
+
"aria-hidden": !0
|
|
841
|
+
}, F, {
|
|
842
|
+
onClick: B(F),
|
|
843
|
+
open: b
|
|
844
|
+
});
|
|
845
|
+
},
|
|
846
|
+
getTransitionProps: () => {
|
|
847
|
+
const w = () => {
|
|
848
|
+
y(!1), a && a();
|
|
849
|
+
}, F = () => {
|
|
850
|
+
y(!0), l && l(), s && L();
|
|
851
|
+
};
|
|
852
|
+
return {
|
|
853
|
+
onEnter: Lo(w, c == null ? void 0 : c.props.onEnter),
|
|
854
|
+
onExited: Lo(F, c == null ? void 0 : c.props.onExited)
|
|
855
|
+
};
|
|
856
|
+
},
|
|
857
|
+
rootRef: M,
|
|
858
|
+
portalRef: A,
|
|
859
|
+
isTopModal: D,
|
|
860
|
+
exited: R,
|
|
861
|
+
hasTransition: k
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
function ft(o) {
|
|
865
|
+
return Z("MuiInput", o);
|
|
867
866
|
}
|
|
868
|
-
const
|
|
867
|
+
const De = d({}, Eo, ee("MuiInput", ["root", "underline", "input"])), mt = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"], bt = (o) => {
|
|
869
868
|
const {
|
|
870
869
|
classes: n,
|
|
871
870
|
disableUnderline: t
|
|
872
|
-
} = o, i =
|
|
871
|
+
} = o, i = oe({
|
|
873
872
|
root: ["root", !t && "underline"],
|
|
874
873
|
input: ["input"]
|
|
875
|
-
},
|
|
874
|
+
}, ft, n);
|
|
876
875
|
return d({}, n, i);
|
|
877
|
-
},
|
|
878
|
-
shouldForwardProp: (o) =>
|
|
876
|
+
}, ht = j(xo, {
|
|
877
|
+
shouldForwardProp: (o) => be(o) || o === "classes",
|
|
879
878
|
name: "MuiInput",
|
|
880
879
|
slot: "Root",
|
|
881
880
|
overridesResolver: (o, n) => {
|
|
882
881
|
const {
|
|
883
882
|
ownerState: t
|
|
884
883
|
} = o;
|
|
885
|
-
return [...
|
|
884
|
+
return [...To(o, n), !t.disableUnderline && n.underline];
|
|
886
885
|
}
|
|
887
886
|
})(({
|
|
888
887
|
theme: o,
|
|
@@ -947,11 +946,11 @@ const yt = d({}, go, oe("MuiInput", ["root", "underline", "input"])), De = yt, E
|
|
|
947
946
|
borderBottomStyle: "dotted"
|
|
948
947
|
}
|
|
949
948
|
});
|
|
950
|
-
}),
|
|
949
|
+
}), vt = j(Oo, {
|
|
951
950
|
name: "MuiInput",
|
|
952
951
|
slot: "Input",
|
|
953
|
-
overridesResolver:
|
|
954
|
-
})({}),
|
|
952
|
+
overridesResolver: Ro
|
|
953
|
+
})({}), oo = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
955
954
|
var r, i, s, a;
|
|
956
955
|
const l = re({
|
|
957
956
|
props: n,
|
|
@@ -964,31 +963,31 @@ const yt = d({}, go, oe("MuiInput", ["root", "underline", "input"])), De = yt, E
|
|
|
964
963
|
inputComponent: x = "input",
|
|
965
964
|
multiline: T = !1,
|
|
966
965
|
slotProps: v,
|
|
967
|
-
slots:
|
|
968
|
-
type:
|
|
969
|
-
} = l,
|
|
966
|
+
slots: M = {},
|
|
967
|
+
type: R = "text"
|
|
968
|
+
} = l, y = q(l, mt), k = bt(l), m = {
|
|
970
969
|
root: {
|
|
971
970
|
ownerState: {
|
|
972
971
|
disableUnderline: c
|
|
973
972
|
}
|
|
974
973
|
}
|
|
975
|
-
}, E = v ?? b ?
|
|
976
|
-
return /* @__PURE__ */ I(
|
|
974
|
+
}, E = v ?? b ? go(v ?? b, m) : m, P = (r = (i = M.root) != null ? i : p.Root) != null ? r : ht, g = (s = (a = M.input) != null ? a : p.Input) != null ? s : vt;
|
|
975
|
+
return /* @__PURE__ */ I(Co, d({
|
|
977
976
|
slots: {
|
|
978
977
|
root: P,
|
|
979
|
-
input:
|
|
978
|
+
input: g
|
|
980
979
|
},
|
|
981
980
|
slotProps: E,
|
|
982
981
|
fullWidth: h,
|
|
983
982
|
inputComponent: x,
|
|
984
983
|
multiline: T,
|
|
985
984
|
ref: t,
|
|
986
|
-
type:
|
|
987
|
-
},
|
|
988
|
-
classes:
|
|
985
|
+
type: R
|
|
986
|
+
}, y, {
|
|
987
|
+
classes: k
|
|
989
988
|
}));
|
|
990
989
|
});
|
|
991
|
-
process.env.NODE_ENV !== "production" && (
|
|
990
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
992
991
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
993
992
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
994
993
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1174,29 +1173,28 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
|
|
|
1174
1173
|
*/
|
|
1175
1174
|
value: e.any
|
|
1176
1175
|
});
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
return ee("MuiFilledInput", o);
|
|
1176
|
+
oo.muiName = "Input";
|
|
1177
|
+
function gt(o) {
|
|
1178
|
+
return Z("MuiFilledInput", o);
|
|
1181
1179
|
}
|
|
1182
|
-
const
|
|
1180
|
+
const Ne = d({}, Eo, ee("MuiFilledInput", ["root", "underline", "input"])), yt = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"], Et = (o) => {
|
|
1183
1181
|
const {
|
|
1184
1182
|
classes: n,
|
|
1185
1183
|
disableUnderline: t
|
|
1186
|
-
} = o, i =
|
|
1184
|
+
} = o, i = oe({
|
|
1187
1185
|
root: ["root", !t && "underline"],
|
|
1188
1186
|
input: ["input"]
|
|
1189
|
-
},
|
|
1187
|
+
}, gt, n);
|
|
1190
1188
|
return d({}, n, i);
|
|
1191
|
-
},
|
|
1192
|
-
shouldForwardProp: (o) =>
|
|
1189
|
+
}, xt = j(xo, {
|
|
1190
|
+
shouldForwardProp: (o) => be(o) || o === "classes",
|
|
1193
1191
|
name: "MuiFilledInput",
|
|
1194
1192
|
slot: "Root",
|
|
1195
1193
|
overridesResolver: (o, n) => {
|
|
1196
1194
|
const {
|
|
1197
1195
|
ownerState: t
|
|
1198
1196
|
} = o;
|
|
1199
|
-
return [...
|
|
1197
|
+
return [...To(o, n), !t.disableUnderline && n.underline];
|
|
1200
1198
|
}
|
|
1201
1199
|
})(({
|
|
1202
1200
|
theme: o,
|
|
@@ -1289,10 +1287,10 @@ const Rt = d({}, go, oe("MuiFilledInput", ["root", "underline", "input"])), Ne =
|
|
|
1289
1287
|
paddingTop: 8,
|
|
1290
1288
|
paddingBottom: 9
|
|
1291
1289
|
}));
|
|
1292
|
-
}),
|
|
1290
|
+
}), Tt = j(Oo, {
|
|
1293
1291
|
name: "MuiFilledInput",
|
|
1294
1292
|
slot: "Input",
|
|
1295
|
-
overridesResolver:
|
|
1293
|
+
overridesResolver: Ro
|
|
1296
1294
|
})(({
|
|
1297
1295
|
theme: o,
|
|
1298
1296
|
ownerState: n
|
|
@@ -1339,7 +1337,7 @@ const Rt = d({}, go, oe("MuiFilledInput", ["root", "underline", "input"])), Ne =
|
|
|
1339
1337
|
paddingBottom: 0,
|
|
1340
1338
|
paddingLeft: 0,
|
|
1341
1339
|
paddingRight: 0
|
|
1342
|
-
})),
|
|
1340
|
+
})), no = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
1343
1341
|
var r, i, s, a;
|
|
1344
1342
|
const l = re({
|
|
1345
1343
|
props: n,
|
|
@@ -1353,21 +1351,21 @@ const Rt = d({}, go, oe("MuiFilledInput", ["root", "underline", "input"])), Ne =
|
|
|
1353
1351
|
multiline: x = !1,
|
|
1354
1352
|
slotProps: T,
|
|
1355
1353
|
slots: v = {},
|
|
1356
|
-
type:
|
|
1357
|
-
} = l,
|
|
1354
|
+
type: M = "text"
|
|
1355
|
+
} = l, R = q(l, yt), y = d({}, l, {
|
|
1358
1356
|
fullWidth: b,
|
|
1359
1357
|
inputComponent: h,
|
|
1360
1358
|
multiline: x,
|
|
1361
|
-
type:
|
|
1362
|
-
}),
|
|
1359
|
+
type: M
|
|
1360
|
+
}), k = Et(l), f = {
|
|
1363
1361
|
root: {
|
|
1364
|
-
ownerState:
|
|
1362
|
+
ownerState: y
|
|
1365
1363
|
},
|
|
1366
1364
|
input: {
|
|
1367
|
-
ownerState:
|
|
1365
|
+
ownerState: y
|
|
1368
1366
|
}
|
|
1369
|
-
}, m = T ?? p ?
|
|
1370
|
-
return /* @__PURE__ */ I(
|
|
1367
|
+
}, m = T ?? p ? go(f, T ?? p) : f, E = (r = (i = v.root) != null ? i : c.Root) != null ? r : xt, P = (s = (a = v.input) != null ? a : c.Input) != null ? s : Tt;
|
|
1368
|
+
return /* @__PURE__ */ I(Co, d({
|
|
1371
1369
|
slots: {
|
|
1372
1370
|
root: E,
|
|
1373
1371
|
input: P
|
|
@@ -1377,12 +1375,12 @@ const Rt = d({}, go, oe("MuiFilledInput", ["root", "underline", "input"])), Ne =
|
|
|
1377
1375
|
inputComponent: h,
|
|
1378
1376
|
multiline: x,
|
|
1379
1377
|
ref: t,
|
|
1380
|
-
type:
|
|
1381
|
-
},
|
|
1382
|
-
classes:
|
|
1378
|
+
type: M
|
|
1379
|
+
}, R, {
|
|
1380
|
+
classes: k
|
|
1383
1381
|
}));
|
|
1384
1382
|
});
|
|
1385
|
-
process.env.NODE_ENV !== "production" && (
|
|
1383
|
+
process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
1386
1384
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1387
1385
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1388
1386
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1575,11 +1573,10 @@ process.env.NODE_ENV !== "production" && (Ro.propTypes = {
|
|
|
1575
1573
|
*/
|
|
1576
1574
|
value: e.any
|
|
1577
1575
|
});
|
|
1578
|
-
|
|
1579
|
-
const un = Ro;
|
|
1576
|
+
no.muiName = "Input";
|
|
1580
1577
|
var qo;
|
|
1581
|
-
const
|
|
1582
|
-
shouldForwardProp:
|
|
1578
|
+
const Ot = ["children", "classes", "className", "label", "notched"], Rt = j("fieldset", {
|
|
1579
|
+
shouldForwardProp: be
|
|
1583
1580
|
})({
|
|
1584
1581
|
textAlign: "left",
|
|
1585
1582
|
position: "absolute",
|
|
@@ -1595,8 +1592,8 @@ const wt = ["children", "classes", "className", "label", "notched"], Mt = _("fie
|
|
|
1595
1592
|
borderWidth: 1,
|
|
1596
1593
|
overflow: "hidden",
|
|
1597
1594
|
minWidth: "0%"
|
|
1598
|
-
}),
|
|
1599
|
-
shouldForwardProp:
|
|
1595
|
+
}), Ct = j("legend", {
|
|
1596
|
+
shouldForwardProp: be
|
|
1600
1597
|
})(({
|
|
1601
1598
|
ownerState: o,
|
|
1602
1599
|
theme: n
|
|
@@ -1643,21 +1640,21 @@ const wt = ["children", "classes", "className", "label", "notched"], Mt = _("fie
|
|
|
1643
1640
|
delay: 50
|
|
1644
1641
|
})
|
|
1645
1642
|
})));
|
|
1646
|
-
function
|
|
1643
|
+
function ln(o) {
|
|
1647
1644
|
const {
|
|
1648
1645
|
className: n,
|
|
1649
1646
|
label: t,
|
|
1650
1647
|
notched: r
|
|
1651
|
-
} = o, i =
|
|
1648
|
+
} = o, i = q(o, Ot), s = t != null && t !== "", a = d({}, o, {
|
|
1652
1649
|
notched: r,
|
|
1653
1650
|
withLabel: s
|
|
1654
1651
|
});
|
|
1655
|
-
return /* @__PURE__ */ I(
|
|
1652
|
+
return /* @__PURE__ */ I(Rt, d({
|
|
1656
1653
|
"aria-hidden": !0,
|
|
1657
1654
|
className: n,
|
|
1658
1655
|
ownerState: a
|
|
1659
1656
|
}, i, {
|
|
1660
|
-
children: /* @__PURE__ */ I(
|
|
1657
|
+
children: /* @__PURE__ */ I(Ct, {
|
|
1661
1658
|
ownerState: a,
|
|
1662
1659
|
children: s ? /* @__PURE__ */ I("span", {
|
|
1663
1660
|
children: t
|
|
@@ -1671,14 +1668,13 @@ function pn(o) {
|
|
|
1671
1668
|
})
|
|
1672
1669
|
}));
|
|
1673
1670
|
}
|
|
1674
|
-
process.env.NODE_ENV !== "production" && (
|
|
1671
|
+
process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
1675
1672
|
/**
|
|
1676
1673
|
* The content of the component.
|
|
1677
1674
|
*/
|
|
1678
1675
|
children: e.node,
|
|
1679
1676
|
/**
|
|
1680
1677
|
* Override or extend the styles applied to the component.
|
|
1681
|
-
* See [CSS API](#css) below for more details.
|
|
1682
1678
|
*/
|
|
1683
1679
|
classes: e.object,
|
|
1684
1680
|
/**
|
|
@@ -1698,23 +1694,23 @@ process.env.NODE_ENV !== "production" && (pn.propTypes = {
|
|
|
1698
1694
|
*/
|
|
1699
1695
|
style: e.object
|
|
1700
1696
|
});
|
|
1701
|
-
function
|
|
1702
|
-
return
|
|
1697
|
+
function Pt(o) {
|
|
1698
|
+
return Z("MuiOutlinedInput", o);
|
|
1703
1699
|
}
|
|
1704
|
-
const
|
|
1700
|
+
const Oe = d({}, Eo, ee("MuiOutlinedInput", ["root", "notchedOutline", "input"])), Nt = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"], It = (o) => {
|
|
1705
1701
|
const {
|
|
1706
1702
|
classes: n
|
|
1707
|
-
} = o, r =
|
|
1703
|
+
} = o, r = oe({
|
|
1708
1704
|
root: ["root"],
|
|
1709
1705
|
notchedOutline: ["notchedOutline"],
|
|
1710
1706
|
input: ["input"]
|
|
1711
|
-
},
|
|
1707
|
+
}, Pt, n);
|
|
1712
1708
|
return d({}, n, r);
|
|
1713
|
-
},
|
|
1714
|
-
shouldForwardProp: (o) =>
|
|
1709
|
+
}, St = j(xo, {
|
|
1710
|
+
shouldForwardProp: (o) => be(o) || o === "classes",
|
|
1715
1711
|
name: "MuiOutlinedInput",
|
|
1716
1712
|
slot: "Root",
|
|
1717
|
-
overridesResolver:
|
|
1713
|
+
overridesResolver: To
|
|
1718
1714
|
})(({
|
|
1719
1715
|
theme: o,
|
|
1720
1716
|
ownerState: n
|
|
@@ -1751,7 +1747,7 @@ const Ft = d({}, go, oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1751
1747
|
}, n.size === "small" && {
|
|
1752
1748
|
padding: "8.5px 14px"
|
|
1753
1749
|
}));
|
|
1754
|
-
}),
|
|
1750
|
+
}), wt = j(ln, {
|
|
1755
1751
|
name: "MuiOutlinedInput",
|
|
1756
1752
|
slot: "NotchedOutline",
|
|
1757
1753
|
overridesResolver: (o, n) => n.notchedOutline
|
|
@@ -1762,10 +1758,10 @@ const Ft = d({}, go, oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1762
1758
|
return {
|
|
1763
1759
|
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : n
|
|
1764
1760
|
};
|
|
1765
|
-
}),
|
|
1761
|
+
}), Mt = j(Oo, {
|
|
1766
1762
|
name: "MuiOutlinedInput",
|
|
1767
1763
|
slot: "Input",
|
|
1768
|
-
overridesResolver:
|
|
1764
|
+
overridesResolver: Ro
|
|
1769
1765
|
})(({
|
|
1770
1766
|
theme: o,
|
|
1771
1767
|
ownerState: n
|
|
@@ -1797,7 +1793,7 @@ const Ft = d({}, go, oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1797
1793
|
paddingLeft: 0
|
|
1798
1794
|
}, n.endAdornment && {
|
|
1799
1795
|
paddingRight: 0
|
|
1800
|
-
})),
|
|
1796
|
+
})), to = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
1801
1797
|
var r, i, s, a, l;
|
|
1802
1798
|
const c = re({
|
|
1803
1799
|
props: n,
|
|
@@ -1809,9 +1805,9 @@ const Ft = d({}, go, oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1809
1805
|
label: x,
|
|
1810
1806
|
multiline: T = !1,
|
|
1811
1807
|
notched: v,
|
|
1812
|
-
slots:
|
|
1813
|
-
type:
|
|
1814
|
-
} = c,
|
|
1808
|
+
slots: M = {},
|
|
1809
|
+
type: R = "text"
|
|
1810
|
+
} = c, y = q(c, Nt), k = It(c), f = Ve(), m = qe({
|
|
1815
1811
|
props: c,
|
|
1816
1812
|
muiFormControl: f,
|
|
1817
1813
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
@@ -1825,17 +1821,17 @@ const Ft = d({}, go, oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1825
1821
|
hiddenLabel: m.hiddenLabel,
|
|
1826
1822
|
multiline: T,
|
|
1827
1823
|
size: m.size,
|
|
1828
|
-
type:
|
|
1829
|
-
}), P = (r = (i =
|
|
1830
|
-
return /* @__PURE__ */ I(
|
|
1824
|
+
type: R
|
|
1825
|
+
}), P = (r = (i = M.root) != null ? i : p.Root) != null ? r : St, g = (s = (a = M.input) != null ? a : p.Input) != null ? s : Mt;
|
|
1826
|
+
return /* @__PURE__ */ I(Co, d({
|
|
1831
1827
|
slots: {
|
|
1832
1828
|
root: P,
|
|
1833
|
-
input:
|
|
1829
|
+
input: g
|
|
1834
1830
|
},
|
|
1835
|
-
renderSuffix: (D) => /* @__PURE__ */ I(
|
|
1831
|
+
renderSuffix: (D) => /* @__PURE__ */ I(wt, {
|
|
1836
1832
|
ownerState: E,
|
|
1837
|
-
className:
|
|
1838
|
-
label: x != null && x !== "" && m.required ? l || (l = /* @__PURE__ */
|
|
1833
|
+
className: k.notchedOutline,
|
|
1834
|
+
label: x != null && x !== "" && m.required ? l || (l = /* @__PURE__ */ me(u.Fragment, {
|
|
1839
1835
|
children: [x, " ", "*"]
|
|
1840
1836
|
})) : x,
|
|
1841
1837
|
notched: typeof v < "u" ? v : !!(D.startAdornment || D.filled || D.focused)
|
|
@@ -1844,14 +1840,14 @@ const Ft = d({}, go, oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1844
1840
|
inputComponent: h,
|
|
1845
1841
|
multiline: T,
|
|
1846
1842
|
ref: t,
|
|
1847
|
-
type:
|
|
1848
|
-
},
|
|
1849
|
-
classes: d({},
|
|
1843
|
+
type: R
|
|
1844
|
+
}, y, {
|
|
1845
|
+
classes: d({}, k, {
|
|
1850
1846
|
notchedOutline: null
|
|
1851
1847
|
})
|
|
1852
1848
|
}));
|
|
1853
1849
|
});
|
|
1854
|
-
process.env.NODE_ENV !== "production" && (
|
|
1850
|
+
process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
1855
1851
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1856
1852
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1857
1853
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2017,12 +2013,11 @@ process.env.NODE_ENV !== "production" && (Po.propTypes = {
|
|
|
2017
2013
|
*/
|
|
2018
2014
|
value: e.any
|
|
2019
2015
|
});
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
return ee("MuiFormLabel", o);
|
|
2016
|
+
to.muiName = "Input";
|
|
2017
|
+
function kt(o) {
|
|
2018
|
+
return Z("MuiFormLabel", o);
|
|
2024
2019
|
}
|
|
2025
|
-
const
|
|
2020
|
+
const Ft = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), Be = Ft, $t = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], Dt = (o) => {
|
|
2026
2021
|
const {
|
|
2027
2022
|
classes: n,
|
|
2028
2023
|
color: t,
|
|
@@ -2035,8 +2030,8 @@ const Wt = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2035
2030
|
root: ["root", `color${ce(t)}`, i && "disabled", s && "error", a && "filled", r && "focused", l && "required"],
|
|
2036
2031
|
asterisk: ["asterisk", s && "error"]
|
|
2037
2032
|
};
|
|
2038
|
-
return
|
|
2039
|
-
},
|
|
2033
|
+
return oe(c, kt, n);
|
|
2034
|
+
}, Lt = j("label", {
|
|
2040
2035
|
name: "MuiFormLabel",
|
|
2041
2036
|
slot: "Root",
|
|
2042
2037
|
overridesResolver: ({
|
|
@@ -2060,7 +2055,7 @@ const Wt = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2060
2055
|
[`&.${Be.error}`]: {
|
|
2061
2056
|
color: (o.vars || o).palette.error.main
|
|
2062
2057
|
}
|
|
2063
|
-
})),
|
|
2058
|
+
})), jt = j("span", {
|
|
2064
2059
|
name: "MuiFormLabel",
|
|
2065
2060
|
slot: "Asterisk",
|
|
2066
2061
|
overridesResolver: (o, n) => n.asterisk
|
|
@@ -2070,7 +2065,7 @@ const Wt = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2070
2065
|
[`&.${Be.error}`]: {
|
|
2071
2066
|
color: (o.vars || o).palette.error.main
|
|
2072
2067
|
}
|
|
2073
|
-
})),
|
|
2068
|
+
})), cn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2074
2069
|
const r = re({
|
|
2075
2070
|
props: n,
|
|
2076
2071
|
name: "MuiFormLabel"
|
|
@@ -2078,7 +2073,7 @@ const Wt = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2078
2073
|
children: i,
|
|
2079
2074
|
className: s,
|
|
2080
2075
|
component: a = "label"
|
|
2081
|
-
} = r, l =
|
|
2076
|
+
} = r, l = q(r, $t), c = Ve(), p = qe({
|
|
2082
2077
|
props: r,
|
|
2083
2078
|
muiFormControl: c,
|
|
2084
2079
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
@@ -2090,14 +2085,14 @@ const Wt = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2090
2085
|
filled: p.filled,
|
|
2091
2086
|
focused: p.focused,
|
|
2092
2087
|
required: p.required
|
|
2093
|
-
}), h =
|
|
2094
|
-
return /* @__PURE__ */
|
|
2088
|
+
}), h = Dt(b);
|
|
2089
|
+
return /* @__PURE__ */ me(Lt, d({
|
|
2095
2090
|
as: a,
|
|
2096
2091
|
ownerState: b,
|
|
2097
|
-
className:
|
|
2092
|
+
className: Q(h.root, s),
|
|
2098
2093
|
ref: t
|
|
2099
2094
|
}, l, {
|
|
2100
|
-
children: [i, p.required && /* @__PURE__ */
|
|
2095
|
+
children: [i, p.required && /* @__PURE__ */ me(jt, {
|
|
2101
2096
|
ownerState: b,
|
|
2102
2097
|
"aria-hidden": !0,
|
|
2103
2098
|
className: h.asterisk,
|
|
@@ -2105,7 +2100,7 @@ const Wt = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2105
2100
|
})]
|
|
2106
2101
|
}));
|
|
2107
2102
|
});
|
|
2108
|
-
process.env.NODE_ENV !== "production" && (
|
|
2103
|
+
process.env.NODE_ENV !== "production" && (cn.propTypes = {
|
|
2109
2104
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2110
2105
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2111
2106
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2158,12 +2153,12 @@ process.env.NODE_ENV !== "production" && (mn.propTypes = {
|
|
|
2158
2153
|
*/
|
|
2159
2154
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
2160
2155
|
});
|
|
2161
|
-
const
|
|
2162
|
-
function
|
|
2163
|
-
return
|
|
2156
|
+
const _t = cn;
|
|
2157
|
+
function At(o) {
|
|
2158
|
+
return Z("MuiInputLabel", o);
|
|
2164
2159
|
}
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2160
|
+
ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
2161
|
+
const Bt = ["disableAnimation", "margin", "shrink", "variant", "className"], Wt = (o) => {
|
|
2167
2162
|
const {
|
|
2168
2163
|
classes: n,
|
|
2169
2164
|
formControl: t,
|
|
@@ -2175,10 +2170,10 @@ const Gt = ["disableAnimation", "margin", "shrink", "variant", "className"], Xt
|
|
|
2175
2170
|
} = o, c = {
|
|
2176
2171
|
root: ["root", t && "formControl", !s && "animated", i && "shrink", r && r !== "normal" && `size${ce(r)}`, a],
|
|
2177
2172
|
asterisk: [l && "asterisk"]
|
|
2178
|
-
}, p =
|
|
2173
|
+
}, p = oe(c, At, n);
|
|
2179
2174
|
return d({}, n, p);
|
|
2180
|
-
},
|
|
2181
|
-
shouldForwardProp: (o) =>
|
|
2175
|
+
}, Ut = j(_t, {
|
|
2176
|
+
shouldForwardProp: (o) => be(o) || o === "classes",
|
|
2182
2177
|
name: "MuiInputLabel",
|
|
2183
2178
|
slot: "Root",
|
|
2184
2179
|
overridesResolver: (o, n) => {
|
|
@@ -2250,7 +2245,7 @@ const Gt = ["disableAnimation", "margin", "shrink", "variant", "className"], Xt
|
|
|
2250
2245
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
2251
2246
|
maxWidth: "calc(133% - 32px)",
|
|
2252
2247
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
2253
|
-
}))),
|
|
2248
|
+
}))), dn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2254
2249
|
const r = re({
|
|
2255
2250
|
name: "MuiInputLabel",
|
|
2256
2251
|
props: n
|
|
@@ -2258,7 +2253,7 @@ const Gt = ["disableAnimation", "margin", "shrink", "variant", "className"], Xt
|
|
|
2258
2253
|
disableAnimation: i = !1,
|
|
2259
2254
|
shrink: s,
|
|
2260
2255
|
className: a
|
|
2261
|
-
} = r, l =
|
|
2256
|
+
} = r, l = q(r, Bt), c = Ve();
|
|
2262
2257
|
let p = s;
|
|
2263
2258
|
typeof p > "u" && c && (p = c.filled || c.focused || c.adornedStart);
|
|
2264
2259
|
const b = qe({
|
|
@@ -2273,17 +2268,17 @@ const Gt = ["disableAnimation", "margin", "shrink", "variant", "className"], Xt
|
|
|
2273
2268
|
variant: b.variant,
|
|
2274
2269
|
required: b.required,
|
|
2275
2270
|
focused: b.focused
|
|
2276
|
-
}), x =
|
|
2277
|
-
return /* @__PURE__ */ I(
|
|
2271
|
+
}), x = Wt(h);
|
|
2272
|
+
return /* @__PURE__ */ I(Ut, d({
|
|
2278
2273
|
"data-shrink": p,
|
|
2279
2274
|
ownerState: h,
|
|
2280
2275
|
ref: t,
|
|
2281
|
-
className:
|
|
2276
|
+
className: Q(x.root, a)
|
|
2282
2277
|
}, l, {
|
|
2283
2278
|
classes: x
|
|
2284
2279
|
}));
|
|
2285
2280
|
});
|
|
2286
|
-
process.env.NODE_ENV !== "production" && (
|
|
2281
|
+
process.env.NODE_ENV !== "production" && (dn.propTypes = {
|
|
2287
2282
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2288
2283
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2289
2284
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2350,11 +2345,10 @@ process.env.NODE_ENV !== "production" && (bn.propTypes = {
|
|
|
2350
2345
|
*/
|
|
2351
2346
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
2352
2347
|
});
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
return ee("MuiFormControl", o);
|
|
2348
|
+
function Vt(o) {
|
|
2349
|
+
return Z("MuiFormControl", o);
|
|
2356
2350
|
}
|
|
2357
|
-
const
|
|
2351
|
+
const qt = ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), Ds = qt, zt = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Ht = (o) => {
|
|
2358
2352
|
const {
|
|
2359
2353
|
classes: n,
|
|
2360
2354
|
margin: t,
|
|
@@ -2362,8 +2356,8 @@ const Zt = oe("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDe
|
|
|
2362
2356
|
} = o, i = {
|
|
2363
2357
|
root: ["root", t !== "none" && `margin${ce(t)}`, r && "fullWidth"]
|
|
2364
2358
|
};
|
|
2365
|
-
return
|
|
2366
|
-
},
|
|
2359
|
+
return oe(i, Vt, n);
|
|
2360
|
+
}, Kt = j("div", {
|
|
2367
2361
|
name: "MuiFormControl",
|
|
2368
2362
|
slot: "Root",
|
|
2369
2363
|
overridesResolver: ({
|
|
@@ -2389,7 +2383,7 @@ const Zt = oe("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDe
|
|
|
2389
2383
|
marginBottom: 4
|
|
2390
2384
|
}, o.fullWidth && {
|
|
2391
2385
|
width: "100%"
|
|
2392
|
-
})),
|
|
2386
|
+
})), un = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2393
2387
|
const r = re({
|
|
2394
2388
|
props: n,
|
|
2395
2389
|
name: "MuiFormControl"
|
|
@@ -2405,9 +2399,9 @@ const Zt = oe("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDe
|
|
|
2405
2399
|
hiddenLabel: x = !1,
|
|
2406
2400
|
margin: T = "none",
|
|
2407
2401
|
required: v = !1,
|
|
2408
|
-
size:
|
|
2409
|
-
variant:
|
|
2410
|
-
} = r,
|
|
2402
|
+
size: M = "medium",
|
|
2403
|
+
variant: R = "outlined"
|
|
2404
|
+
} = r, y = q(r, zt), k = d({}, r, {
|
|
2411
2405
|
color: a,
|
|
2412
2406
|
component: l,
|
|
2413
2407
|
disabled: c,
|
|
@@ -2416,72 +2410,72 @@ const Zt = oe("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDe
|
|
|
2416
2410
|
hiddenLabel: x,
|
|
2417
2411
|
margin: T,
|
|
2418
2412
|
required: v,
|
|
2419
|
-
size:
|
|
2420
|
-
variant:
|
|
2421
|
-
}), f =
|
|
2422
|
-
let
|
|
2423
|
-
return i && u.Children.forEach(i, (
|
|
2424
|
-
if (!
|
|
2413
|
+
size: M,
|
|
2414
|
+
variant: R
|
|
2415
|
+
}), f = Ht(k), [m, E] = u.useState(() => {
|
|
2416
|
+
let $ = !1;
|
|
2417
|
+
return i && u.Children.forEach(i, (S) => {
|
|
2418
|
+
if (!lo(S, ["Input", "Select"]))
|
|
2425
2419
|
return;
|
|
2426
|
-
const C =
|
|
2427
|
-
C &&
|
|
2428
|
-
}),
|
|
2429
|
-
}), [P,
|
|
2430
|
-
let
|
|
2431
|
-
return i && u.Children.forEach(i, (
|
|
2432
|
-
|
|
2433
|
-
}),
|
|
2434
|
-
}), [D,
|
|
2435
|
-
c && D &&
|
|
2436
|
-
const
|
|
2437
|
-
let
|
|
2420
|
+
const C = lo(S, ["Select"]) ? S.props.input : S;
|
|
2421
|
+
C && Fn(C.props) && ($ = !0);
|
|
2422
|
+
}), $;
|
|
2423
|
+
}), [P, g] = u.useState(() => {
|
|
2424
|
+
let $ = !1;
|
|
2425
|
+
return i && u.Children.forEach(i, (S) => {
|
|
2426
|
+
lo(S, ["Input", "Select"]) && (fo(S.props, !0) || fo(S.props.inputProps, !0)) && ($ = !0);
|
|
2427
|
+
}), $;
|
|
2428
|
+
}), [D, A] = u.useState(!1);
|
|
2429
|
+
c && D && A(!1);
|
|
2430
|
+
const L = b !== void 0 && !c ? b : D;
|
|
2431
|
+
let z;
|
|
2438
2432
|
if (process.env.NODE_ENV !== "production") {
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2441
|
-
`)),
|
|
2442
|
-
|
|
2433
|
+
const $ = u.useRef(!1);
|
|
2434
|
+
z = () => ($.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
2435
|
+
`)), $.current = !0, () => {
|
|
2436
|
+
$.current = !1;
|
|
2443
2437
|
});
|
|
2444
2438
|
}
|
|
2445
|
-
const
|
|
2439
|
+
const B = u.useMemo(() => ({
|
|
2446
2440
|
adornedStart: m,
|
|
2447
2441
|
setAdornedStart: E,
|
|
2448
2442
|
color: a,
|
|
2449
2443
|
disabled: c,
|
|
2450
2444
|
error: p,
|
|
2451
2445
|
filled: P,
|
|
2452
|
-
focused:
|
|
2446
|
+
focused: L,
|
|
2453
2447
|
fullWidth: h,
|
|
2454
2448
|
hiddenLabel: x,
|
|
2455
|
-
size:
|
|
2449
|
+
size: M,
|
|
2456
2450
|
onBlur: () => {
|
|
2457
|
-
|
|
2451
|
+
A(!1);
|
|
2458
2452
|
},
|
|
2459
2453
|
onEmpty: () => {
|
|
2460
|
-
|
|
2454
|
+
g(!1);
|
|
2461
2455
|
},
|
|
2462
2456
|
onFilled: () => {
|
|
2463
|
-
|
|
2457
|
+
g(!0);
|
|
2464
2458
|
},
|
|
2465
2459
|
onFocus: () => {
|
|
2466
|
-
|
|
2460
|
+
A(!0);
|
|
2467
2461
|
},
|
|
2468
|
-
registerEffect:
|
|
2462
|
+
registerEffect: z,
|
|
2469
2463
|
required: v,
|
|
2470
|
-
variant:
|
|
2471
|
-
}), [m, a, c, p, P,
|
|
2472
|
-
return /* @__PURE__ */ I(
|
|
2473
|
-
value:
|
|
2474
|
-
children: /* @__PURE__ */ I(
|
|
2464
|
+
variant: R
|
|
2465
|
+
}), [m, a, c, p, P, L, h, x, z, v, M, R]);
|
|
2466
|
+
return /* @__PURE__ */ I($n.Provider, {
|
|
2467
|
+
value: B,
|
|
2468
|
+
children: /* @__PURE__ */ I(Kt, d({
|
|
2475
2469
|
as: l,
|
|
2476
|
-
ownerState:
|
|
2477
|
-
className:
|
|
2470
|
+
ownerState: k,
|
|
2471
|
+
className: Q(f.root, s),
|
|
2478
2472
|
ref: t
|
|
2479
|
-
},
|
|
2473
|
+
}, y, {
|
|
2480
2474
|
children: i
|
|
2481
2475
|
}))
|
|
2482
2476
|
});
|
|
2483
2477
|
});
|
|
2484
|
-
process.env.NODE_ENV !== "production" && (
|
|
2478
|
+
process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
2485
2479
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2486
2480
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2487
2481
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2561,13 +2555,13 @@ process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
|
2561
2555
|
*/
|
|
2562
2556
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
2563
2557
|
});
|
|
2564
|
-
const
|
|
2565
|
-
function
|
|
2566
|
-
return
|
|
2558
|
+
const Gt = un;
|
|
2559
|
+
function Xt(o) {
|
|
2560
|
+
return Z("MuiFormHelperText", o);
|
|
2567
2561
|
}
|
|
2568
|
-
const
|
|
2562
|
+
const Yt = ee("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]), zo = Yt;
|
|
2569
2563
|
var Ho;
|
|
2570
|
-
const
|
|
2564
|
+
const Jt = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"], Qt = (o) => {
|
|
2571
2565
|
const {
|
|
2572
2566
|
classes: n,
|
|
2573
2567
|
contained: t,
|
|
@@ -2580,8 +2574,8 @@ const ir = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
2580
2574
|
} = o, p = {
|
|
2581
2575
|
root: ["root", i && "disabled", s && "error", r && `size${ce(r)}`, t && "contained", l && "focused", a && "filled", c && "required"]
|
|
2582
2576
|
};
|
|
2583
|
-
return
|
|
2584
|
-
},
|
|
2577
|
+
return oe(p, Xt, n);
|
|
2578
|
+
}, Zt = j("p", {
|
|
2585
2579
|
name: "MuiFormHelperText",
|
|
2586
2580
|
slot: "Root",
|
|
2587
2581
|
overridesResolver: (o, n) => {
|
|
@@ -2612,7 +2606,7 @@ const ir = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
2612
2606
|
}, n.contained && {
|
|
2613
2607
|
marginLeft: 14,
|
|
2614
2608
|
marginRight: 14
|
|
2615
|
-
})),
|
|
2609
|
+
})), pn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2616
2610
|
const r = re({
|
|
2617
2611
|
props: n,
|
|
2618
2612
|
name: "MuiFormHelperText"
|
|
@@ -2620,7 +2614,7 @@ const ir = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
2620
2614
|
children: i,
|
|
2621
2615
|
className: s,
|
|
2622
2616
|
component: a = "p"
|
|
2623
|
-
} = r, l =
|
|
2617
|
+
} = r, l = q(r, Jt), c = Ve(), p = qe({
|
|
2624
2618
|
props: r,
|
|
2625
2619
|
muiFormControl: c,
|
|
2626
2620
|
states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
|
|
@@ -2634,11 +2628,11 @@ const ir = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
2634
2628
|
filled: p.filled,
|
|
2635
2629
|
focused: p.focused,
|
|
2636
2630
|
required: p.required
|
|
2637
|
-
}), h =
|
|
2638
|
-
return /* @__PURE__ */ I(
|
|
2631
|
+
}), h = Qt(b);
|
|
2632
|
+
return /* @__PURE__ */ I(Zt, d({
|
|
2639
2633
|
as: a,
|
|
2640
2634
|
ownerState: b,
|
|
2641
|
-
className:
|
|
2635
|
+
className: Q(h.root, s),
|
|
2642
2636
|
ref: t
|
|
2643
2637
|
}, l, {
|
|
2644
2638
|
children: i === " " ? (
|
|
@@ -2650,7 +2644,7 @@ const ir = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
2650
2644
|
) : i
|
|
2651
2645
|
}));
|
|
2652
2646
|
});
|
|
2653
|
-
process.env.NODE_ENV !== "production" && (
|
|
2647
|
+
process.env.NODE_ENV !== "production" && (pn.propTypes = {
|
|
2654
2648
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2655
2649
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2656
2650
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2708,23 +2702,22 @@ process.env.NODE_ENV !== "production" && (vn.propTypes = {
|
|
|
2708
2702
|
*/
|
|
2709
2703
|
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
2710
2704
|
});
|
|
2711
|
-
const
|
|
2712
|
-
process.env.NODE_ENV !== "production" && (
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
return ee("MuiList", o);
|
|
2705
|
+
const er = pn, fn = /* @__PURE__ */ u.createContext({});
|
|
2706
|
+
process.env.NODE_ENV !== "production" && (fn.displayName = "ListContext");
|
|
2707
|
+
function or(o) {
|
|
2708
|
+
return Z("MuiList", o);
|
|
2716
2709
|
}
|
|
2717
|
-
const
|
|
2710
|
+
const nr = ee("MuiList", ["root", "padding", "dense", "subheader"]), Ls = nr, tr = ["children", "className", "component", "dense", "disablePadding", "subheader"], rr = (o) => {
|
|
2718
2711
|
const {
|
|
2719
2712
|
classes: n,
|
|
2720
2713
|
disablePadding: t,
|
|
2721
2714
|
dense: r,
|
|
2722
2715
|
subheader: i
|
|
2723
2716
|
} = o;
|
|
2724
|
-
return
|
|
2717
|
+
return oe({
|
|
2725
2718
|
root: ["root", !t && "padding", r && "dense", i && "subheader"]
|
|
2726
|
-
},
|
|
2727
|
-
},
|
|
2719
|
+
}, or, n);
|
|
2720
|
+
}, sr = j("ul", {
|
|
2728
2721
|
name: "MuiList",
|
|
2729
2722
|
slot: "Root",
|
|
2730
2723
|
overridesResolver: (o, n) => {
|
|
@@ -2745,7 +2738,7 @@ const pr = oe("MuiList", ["root", "padding", "dense", "subheader"]), oi = pr, fr
|
|
|
2745
2738
|
paddingBottom: 8
|
|
2746
2739
|
}, o.subheader && {
|
|
2747
2740
|
paddingTop: 0
|
|
2748
|
-
})),
|
|
2741
|
+
})), mn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2749
2742
|
const r = re({
|
|
2750
2743
|
props: n,
|
|
2751
2744
|
name: "MuiList"
|
|
@@ -2756,18 +2749,18 @@ const pr = oe("MuiList", ["root", "padding", "dense", "subheader"]), oi = pr, fr
|
|
|
2756
2749
|
dense: l = !1,
|
|
2757
2750
|
disablePadding: c = !1,
|
|
2758
2751
|
subheader: p
|
|
2759
|
-
} = r, b =
|
|
2752
|
+
} = r, b = q(r, tr), h = u.useMemo(() => ({
|
|
2760
2753
|
dense: l
|
|
2761
2754
|
}), [l]), x = d({}, r, {
|
|
2762
2755
|
component: a,
|
|
2763
2756
|
dense: l,
|
|
2764
2757
|
disablePadding: c
|
|
2765
|
-
}), T =
|
|
2766
|
-
return /* @__PURE__ */ I(
|
|
2758
|
+
}), T = rr(x);
|
|
2759
|
+
return /* @__PURE__ */ I(fn.Provider, {
|
|
2767
2760
|
value: h,
|
|
2768
|
-
children: /* @__PURE__ */
|
|
2761
|
+
children: /* @__PURE__ */ me(sr, d({
|
|
2769
2762
|
as: a,
|
|
2770
|
-
className:
|
|
2763
|
+
className: Q(T.root, s),
|
|
2771
2764
|
ref: t,
|
|
2772
2765
|
ownerState: x
|
|
2773
2766
|
}, b, {
|
|
@@ -2775,7 +2768,7 @@ const pr = oe("MuiList", ["root", "padding", "dense", "subheader"]), oi = pr, fr
|
|
|
2775
2768
|
}))
|
|
2776
2769
|
});
|
|
2777
2770
|
});
|
|
2778
|
-
process.env.NODE_ENV !== "production" && (
|
|
2771
|
+
process.env.NODE_ENV !== "production" && (mn.propTypes = {
|
|
2779
2772
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2780
2773
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2781
2774
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2818,14 +2811,14 @@ process.env.NODE_ENV !== "production" && (yn.propTypes = {
|
|
|
2818
2811
|
*/
|
|
2819
2812
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
2820
2813
|
});
|
|
2821
|
-
const
|
|
2822
|
-
function
|
|
2814
|
+
const ir = mn, ar = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
2815
|
+
function uo(o, n, t) {
|
|
2823
2816
|
return o === n ? o.firstChild : n && n.nextElementSibling ? n.nextElementSibling : t ? null : o.firstChild;
|
|
2824
2817
|
}
|
|
2825
2818
|
function Ko(o, n, t) {
|
|
2826
2819
|
return o === n ? t ? o.firstChild : o.lastChild : n && n.previousElementSibling ? n.previousElementSibling : t ? null : o.lastChild;
|
|
2827
2820
|
}
|
|
2828
|
-
function
|
|
2821
|
+
function bn(o, n) {
|
|
2829
2822
|
if (n === void 0)
|
|
2830
2823
|
return !0;
|
|
2831
2824
|
let t = o.innerText;
|
|
@@ -2840,14 +2833,14 @@ function Le(o, n, t, r, i, s) {
|
|
|
2840
2833
|
a = !0;
|
|
2841
2834
|
}
|
|
2842
2835
|
const c = r ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true";
|
|
2843
|
-
if (!l.hasAttribute("tabindex") || !
|
|
2836
|
+
if (!l.hasAttribute("tabindex") || !bn(l, s) || c)
|
|
2844
2837
|
l = i(o, l, t);
|
|
2845
2838
|
else
|
|
2846
2839
|
return l.focus(), !0;
|
|
2847
2840
|
}
|
|
2848
2841
|
return !1;
|
|
2849
2842
|
}
|
|
2850
|
-
const
|
|
2843
|
+
const hn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2851
2844
|
const {
|
|
2852
2845
|
// private
|
|
2853
2846
|
// eslint-disable-next-line react/prop-types
|
|
@@ -2860,69 +2853,71 @@ const xn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
|
2860
2853
|
disableListWrap: p = !1,
|
|
2861
2854
|
onKeyDown: b,
|
|
2862
2855
|
variant: h = "selectedMenu"
|
|
2863
|
-
} = n, x =
|
|
2856
|
+
} = n, x = q(n, ar), T = u.useRef(null), v = u.useRef({
|
|
2864
2857
|
keys: [],
|
|
2865
2858
|
repeating: !0,
|
|
2866
2859
|
previousKeyMatched: !0,
|
|
2867
2860
|
lastTime: null
|
|
2868
2861
|
});
|
|
2869
|
-
|
|
2862
|
+
mo(() => {
|
|
2870
2863
|
i && T.current.focus();
|
|
2871
2864
|
}, [i]), u.useImperativeHandle(r, () => ({
|
|
2872
|
-
adjustStyleForScrollbar: (f,
|
|
2865
|
+
adjustStyleForScrollbar: (f, {
|
|
2866
|
+
direction: m
|
|
2867
|
+
}) => {
|
|
2873
2868
|
const E = !T.current.style.width;
|
|
2874
2869
|
if (f.clientHeight < T.current.clientHeight && E) {
|
|
2875
|
-
const P = `${
|
|
2876
|
-
T.current.style[m
|
|
2870
|
+
const P = `${tn(ie(f))}px`;
|
|
2871
|
+
T.current.style[m === "rtl" ? "paddingLeft" : "paddingRight"] = P, T.current.style.width = `calc(100% + ${P})`;
|
|
2877
2872
|
}
|
|
2878
2873
|
return T.current;
|
|
2879
2874
|
}
|
|
2880
2875
|
}), []);
|
|
2881
|
-
const
|
|
2876
|
+
const M = (f) => {
|
|
2882
2877
|
const m = T.current, E = f.key, P = ie(m).activeElement;
|
|
2883
2878
|
if (E === "ArrowDown")
|
|
2884
|
-
f.preventDefault(), Le(m, P, p, c,
|
|
2879
|
+
f.preventDefault(), Le(m, P, p, c, uo);
|
|
2885
2880
|
else if (E === "ArrowUp")
|
|
2886
2881
|
f.preventDefault(), Le(m, P, p, c, Ko);
|
|
2887
2882
|
else if (E === "Home")
|
|
2888
|
-
f.preventDefault(), Le(m, null, p, c,
|
|
2883
|
+
f.preventDefault(), Le(m, null, p, c, uo);
|
|
2889
2884
|
else if (E === "End")
|
|
2890
2885
|
f.preventDefault(), Le(m, null, p, c, Ko);
|
|
2891
2886
|
else if (E.length === 1) {
|
|
2892
|
-
const
|
|
2893
|
-
|
|
2894
|
-
const
|
|
2895
|
-
|
|
2887
|
+
const g = v.current, D = E.toLowerCase(), A = performance.now();
|
|
2888
|
+
g.keys.length > 0 && (A - g.lastTime > 500 ? (g.keys = [], g.repeating = !0, g.previousKeyMatched = !0) : g.repeating && D !== g.keys[0] && (g.repeating = !1)), g.lastTime = A, g.keys.push(D);
|
|
2889
|
+
const L = P && !g.repeating && bn(P, g);
|
|
2890
|
+
g.previousKeyMatched && (L || Le(m, P, !1, c, uo, g)) ? f.preventDefault() : g.previousKeyMatched = !1;
|
|
2896
2891
|
}
|
|
2897
2892
|
b && b(f);
|
|
2898
|
-
},
|
|
2899
|
-
let
|
|
2893
|
+
}, R = he(T, t);
|
|
2894
|
+
let y = -1;
|
|
2900
2895
|
u.Children.forEach(a, (f, m) => {
|
|
2901
2896
|
if (!/* @__PURE__ */ u.isValidElement(f)) {
|
|
2902
|
-
|
|
2897
|
+
y === m && (y += 1, y >= a.length && (y = -1));
|
|
2903
2898
|
return;
|
|
2904
2899
|
}
|
|
2905
|
-
process.env.NODE_ENV !== "production" &&
|
|
2906
|
-
`)), f.props.disabled || (h === "selectedMenu" && f.props.selected ||
|
|
2900
|
+
process.env.NODE_ENV !== "production" && yo.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2901
|
+
`)), f.props.disabled || (h === "selectedMenu" && f.props.selected || y === -1) && (y = m), y === m && (f.props.disabled || f.props.muiSkipListHighlight || f.type.muiSkipListHighlight) && (y += 1, y >= a.length && (y = -1));
|
|
2907
2902
|
});
|
|
2908
|
-
const
|
|
2909
|
-
if (m ===
|
|
2903
|
+
const k = u.Children.map(a, (f, m) => {
|
|
2904
|
+
if (m === y) {
|
|
2910
2905
|
const E = {};
|
|
2911
2906
|
return s && (E.autoFocus = !0), f.props.tabIndex === void 0 && h === "selectedMenu" && (E.tabIndex = 0), /* @__PURE__ */ u.cloneElement(f, E);
|
|
2912
2907
|
}
|
|
2913
2908
|
return f;
|
|
2914
2909
|
});
|
|
2915
|
-
return /* @__PURE__ */ I(
|
|
2910
|
+
return /* @__PURE__ */ I(ir, d({
|
|
2916
2911
|
role: "menu",
|
|
2917
|
-
ref:
|
|
2912
|
+
ref: R,
|
|
2918
2913
|
className: l,
|
|
2919
|
-
onKeyDown:
|
|
2914
|
+
onKeyDown: M,
|
|
2920
2915
|
tabIndex: i ? 0 : -1
|
|
2921
2916
|
}, x, {
|
|
2922
|
-
children:
|
|
2917
|
+
children: k
|
|
2923
2918
|
}));
|
|
2924
2919
|
});
|
|
2925
|
-
process.env.NODE_ENV !== "production" && (
|
|
2920
|
+
process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
2926
2921
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2927
2922
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2928
2923
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2967,8 +2962,8 @@ process.env.NODE_ENV !== "production" && (xn.propTypes = {
|
|
|
2967
2962
|
*/
|
|
2968
2963
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2969
2964
|
});
|
|
2970
|
-
const
|
|
2971
|
-
function
|
|
2965
|
+
const vn = (o) => o.scrollTop;
|
|
2966
|
+
function Ze(o, n) {
|
|
2972
2967
|
var t, r;
|
|
2973
2968
|
const {
|
|
2974
2969
|
timeout: i,
|
|
@@ -2981,20 +2976,20 @@ function Qe(o, n) {
|
|
|
2981
2976
|
delay: a.transitionDelay
|
|
2982
2977
|
};
|
|
2983
2978
|
}
|
|
2984
|
-
const
|
|
2985
|
-
function
|
|
2979
|
+
const lr = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
2980
|
+
function vo(o) {
|
|
2986
2981
|
return `scale(${o}, ${o ** 2})`;
|
|
2987
2982
|
}
|
|
2988
|
-
const
|
|
2983
|
+
const cr = {
|
|
2989
2984
|
entering: {
|
|
2990
2985
|
opacity: 1,
|
|
2991
|
-
transform:
|
|
2986
|
+
transform: vo(1)
|
|
2992
2987
|
},
|
|
2993
2988
|
entered: {
|
|
2994
2989
|
opacity: 1,
|
|
2995
2990
|
transform: "none"
|
|
2996
2991
|
}
|
|
2997
|
-
},
|
|
2992
|
+
}, po = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), No = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
2998
2993
|
const {
|
|
2999
2994
|
addEndListener: r,
|
|
3000
2995
|
appear: i = !0,
|
|
@@ -3008,81 +3003,81 @@ const Er = {
|
|
|
3008
3003
|
onExited: x,
|
|
3009
3004
|
onExiting: T,
|
|
3010
3005
|
style: v,
|
|
3011
|
-
timeout:
|
|
3006
|
+
timeout: M = "auto",
|
|
3012
3007
|
// eslint-disable-next-line react/prop-types
|
|
3013
|
-
TransitionComponent:
|
|
3014
|
-
} = n,
|
|
3008
|
+
TransitionComponent: R = de
|
|
3009
|
+
} = n, y = q(n, lr), k = Wn(), f = u.useRef(), m = Po(), E = u.useRef(null), P = he(E, s.ref, t), g = (C) => (w) => {
|
|
3015
3010
|
if (C) {
|
|
3016
|
-
const
|
|
3017
|
-
|
|
3011
|
+
const F = E.current;
|
|
3012
|
+
w === void 0 ? C(F) : C(F, w);
|
|
3018
3013
|
}
|
|
3019
|
-
}, D =
|
|
3020
|
-
|
|
3014
|
+
}, D = g(b), A = g((C, w) => {
|
|
3015
|
+
vn(C);
|
|
3021
3016
|
const {
|
|
3022
|
-
duration:
|
|
3023
|
-
delay:
|
|
3024
|
-
easing:
|
|
3025
|
-
} =
|
|
3017
|
+
duration: F,
|
|
3018
|
+
delay: O,
|
|
3019
|
+
easing: U
|
|
3020
|
+
} = Ze({
|
|
3026
3021
|
style: v,
|
|
3027
|
-
timeout:
|
|
3022
|
+
timeout: M,
|
|
3028
3023
|
easing: a
|
|
3029
3024
|
}, {
|
|
3030
3025
|
mode: "enter"
|
|
3031
3026
|
});
|
|
3032
|
-
let
|
|
3033
|
-
|
|
3034
|
-
duration:
|
|
3035
|
-
delay:
|
|
3027
|
+
let ne;
|
|
3028
|
+
M === "auto" ? (ne = m.transitions.getAutoHeightDuration(C.clientHeight), f.current = ne) : ne = F, C.style.transition = [m.transitions.create("opacity", {
|
|
3029
|
+
duration: ne,
|
|
3030
|
+
delay: O
|
|
3036
3031
|
}), m.transitions.create("transform", {
|
|
3037
|
-
duration:
|
|
3038
|
-
delay:
|
|
3039
|
-
easing:
|
|
3040
|
-
})].join(","), c && c(C,
|
|
3041
|
-
}),
|
|
3032
|
+
duration: po ? ne : ne * 0.666,
|
|
3033
|
+
delay: O,
|
|
3034
|
+
easing: U
|
|
3035
|
+
})].join(","), c && c(C, w);
|
|
3036
|
+
}), L = g(p), z = g(T), B = g((C) => {
|
|
3042
3037
|
const {
|
|
3043
|
-
duration:
|
|
3044
|
-
delay:
|
|
3045
|
-
easing:
|
|
3046
|
-
} =
|
|
3038
|
+
duration: w,
|
|
3039
|
+
delay: F,
|
|
3040
|
+
easing: O
|
|
3041
|
+
} = Ze({
|
|
3047
3042
|
style: v,
|
|
3048
|
-
timeout:
|
|
3043
|
+
timeout: M,
|
|
3049
3044
|
easing: a
|
|
3050
3045
|
}, {
|
|
3051
3046
|
mode: "exit"
|
|
3052
3047
|
});
|
|
3053
|
-
let
|
|
3054
|
-
|
|
3055
|
-
duration:
|
|
3056
|
-
delay:
|
|
3048
|
+
let U;
|
|
3049
|
+
M === "auto" ? (U = m.transitions.getAutoHeightDuration(C.clientHeight), f.current = U) : U = w, C.style.transition = [m.transitions.create("opacity", {
|
|
3050
|
+
duration: U,
|
|
3051
|
+
delay: F
|
|
3057
3052
|
}), m.transitions.create("transform", {
|
|
3058
|
-
duration:
|
|
3059
|
-
delay:
|
|
3060
|
-
easing:
|
|
3061
|
-
})].join(","), C.style.opacity = 0, C.style.transform =
|
|
3062
|
-
}),
|
|
3063
|
-
return /* @__PURE__ */ I(
|
|
3053
|
+
duration: po ? U : U * 0.666,
|
|
3054
|
+
delay: po ? F : F || U * 0.333,
|
|
3055
|
+
easing: O
|
|
3056
|
+
})].join(","), C.style.opacity = 0, C.style.transform = vo(0.75), h && h(C);
|
|
3057
|
+
}), $ = g(x);
|
|
3058
|
+
return /* @__PURE__ */ I(R, d({
|
|
3064
3059
|
appear: i,
|
|
3065
3060
|
in: l,
|
|
3066
3061
|
nodeRef: E,
|
|
3067
|
-
onEnter:
|
|
3068
|
-
onEntered:
|
|
3062
|
+
onEnter: A,
|
|
3063
|
+
onEntered: L,
|
|
3069
3064
|
onEntering: D,
|
|
3070
|
-
onExit:
|
|
3071
|
-
onExited:
|
|
3072
|
-
onExiting:
|
|
3065
|
+
onExit: B,
|
|
3066
|
+
onExited: $,
|
|
3067
|
+
onExiting: z,
|
|
3073
3068
|
addEndListener: (C) => {
|
|
3074
|
-
|
|
3069
|
+
M === "auto" && k.start(f.current || 0, C), r && r(E.current, C);
|
|
3075
3070
|
},
|
|
3076
|
-
timeout:
|
|
3077
|
-
},
|
|
3078
|
-
children: (C,
|
|
3071
|
+
timeout: M === "auto" ? null : M
|
|
3072
|
+
}, y, {
|
|
3073
|
+
children: (C, w) => /* @__PURE__ */ u.cloneElement(s, d({
|
|
3079
3074
|
style: d({
|
|
3080
3075
|
opacity: 0,
|
|
3081
|
-
transform:
|
|
3076
|
+
transform: vo(0.75),
|
|
3082
3077
|
visibility: C === "exited" && !l ? "hidden" : void 0
|
|
3083
|
-
},
|
|
3078
|
+
}, cr[C], v, s.props.style),
|
|
3084
3079
|
ref: P
|
|
3085
|
-
},
|
|
3080
|
+
}, w))
|
|
3086
3081
|
}));
|
|
3087
3082
|
});
|
|
3088
3083
|
process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
@@ -3105,7 +3100,7 @@ process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
|
3105
3100
|
/**
|
|
3106
3101
|
* A single child content element.
|
|
3107
3102
|
*/
|
|
3108
|
-
children:
|
|
3103
|
+
children: ze.isRequired,
|
|
3109
3104
|
/**
|
|
3110
3105
|
* The transition timing function.
|
|
3111
3106
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -3160,15 +3155,15 @@ process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
|
3160
3155
|
})])
|
|
3161
3156
|
});
|
|
3162
3157
|
No.muiSupportAuto = !0;
|
|
3163
|
-
const
|
|
3158
|
+
const dr = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], ur = {
|
|
3164
3159
|
entering: {
|
|
3165
3160
|
opacity: 1
|
|
3166
3161
|
},
|
|
3167
3162
|
entered: {
|
|
3168
3163
|
opacity: 1
|
|
3169
3164
|
}
|
|
3170
|
-
},
|
|
3171
|
-
const r =
|
|
3165
|
+
}, gn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
3166
|
+
const r = Po(), i = {
|
|
3172
3167
|
enter: r.transitions.duration.enteringScreen,
|
|
3173
3168
|
exit: r.transitions.duration.leavingScreen
|
|
3174
3169
|
}, {
|
|
@@ -3182,61 +3177,61 @@ const xr = No, Tr = ["addEndListener", "appear", "children", "easing", "in", "on
|
|
|
3182
3177
|
onEntering: x,
|
|
3183
3178
|
onExit: T,
|
|
3184
3179
|
onExited: v,
|
|
3185
|
-
onExiting:
|
|
3186
|
-
style:
|
|
3187
|
-
timeout:
|
|
3180
|
+
onExiting: M,
|
|
3181
|
+
style: R,
|
|
3182
|
+
timeout: y = i,
|
|
3188
3183
|
// eslint-disable-next-line react/prop-types
|
|
3189
|
-
TransitionComponent:
|
|
3190
|
-
} = n, f =
|
|
3191
|
-
if (
|
|
3192
|
-
const
|
|
3193
|
-
C === void 0 ?
|
|
3184
|
+
TransitionComponent: k = de
|
|
3185
|
+
} = n, f = q(n, dr), m = u.useRef(null), E = he(m, l.ref, t), P = (S) => (C) => {
|
|
3186
|
+
if (S) {
|
|
3187
|
+
const w = m.current;
|
|
3188
|
+
C === void 0 ? S(w) : S(w, C);
|
|
3194
3189
|
}
|
|
3195
|
-
},
|
|
3196
|
-
|
|
3197
|
-
const
|
|
3198
|
-
style:
|
|
3199
|
-
timeout:
|
|
3190
|
+
}, g = P(x), D = P((S, C) => {
|
|
3191
|
+
vn(S);
|
|
3192
|
+
const w = Ze({
|
|
3193
|
+
style: R,
|
|
3194
|
+
timeout: y,
|
|
3200
3195
|
easing: c
|
|
3201
3196
|
}, {
|
|
3202
3197
|
mode: "enter"
|
|
3203
3198
|
});
|
|
3204
|
-
|
|
3205
|
-
}),
|
|
3206
|
-
const C =
|
|
3207
|
-
style:
|
|
3208
|
-
timeout:
|
|
3199
|
+
S.style.webkitTransition = r.transitions.create("opacity", w), S.style.transition = r.transitions.create("opacity", w), b && b(S, C);
|
|
3200
|
+
}), A = P(h), L = P(M), z = P((S) => {
|
|
3201
|
+
const C = Ze({
|
|
3202
|
+
style: R,
|
|
3203
|
+
timeout: y,
|
|
3209
3204
|
easing: c
|
|
3210
3205
|
}, {
|
|
3211
3206
|
mode: "exit"
|
|
3212
3207
|
});
|
|
3213
|
-
|
|
3214
|
-
}),
|
|
3215
|
-
return /* @__PURE__ */ I(
|
|
3208
|
+
S.style.webkitTransition = r.transitions.create("opacity", C), S.style.transition = r.transitions.create("opacity", C), T && T(S);
|
|
3209
|
+
}), B = P(v);
|
|
3210
|
+
return /* @__PURE__ */ I(k, d({
|
|
3216
3211
|
appear: a,
|
|
3217
3212
|
in: p,
|
|
3218
3213
|
nodeRef: m,
|
|
3219
3214
|
onEnter: D,
|
|
3220
|
-
onEntered:
|
|
3221
|
-
onEntering:
|
|
3222
|
-
onExit:
|
|
3223
|
-
onExited:
|
|
3224
|
-
onExiting:
|
|
3225
|
-
addEndListener: (
|
|
3226
|
-
s && s(m.current,
|
|
3215
|
+
onEntered: A,
|
|
3216
|
+
onEntering: g,
|
|
3217
|
+
onExit: z,
|
|
3218
|
+
onExited: B,
|
|
3219
|
+
onExiting: L,
|
|
3220
|
+
addEndListener: (S) => {
|
|
3221
|
+
s && s(m.current, S);
|
|
3227
3222
|
},
|
|
3228
|
-
timeout:
|
|
3223
|
+
timeout: y
|
|
3229
3224
|
}, f, {
|
|
3230
|
-
children: (
|
|
3225
|
+
children: (S, C) => /* @__PURE__ */ u.cloneElement(l, d({
|
|
3231
3226
|
style: d({
|
|
3232
3227
|
opacity: 0,
|
|
3233
|
-
visibility:
|
|
3234
|
-
},
|
|
3228
|
+
visibility: S === "exited" && !p ? "hidden" : void 0
|
|
3229
|
+
}, ur[S], R, l.props.style),
|
|
3235
3230
|
ref: E
|
|
3236
3231
|
}, C))
|
|
3237
3232
|
}));
|
|
3238
3233
|
});
|
|
3239
|
-
process.env.NODE_ENV !== "production" && (
|
|
3234
|
+
process.env.NODE_ENV !== "production" && (gn.propTypes = {
|
|
3240
3235
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3241
3236
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3242
3237
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3256,7 +3251,7 @@ process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
|
3256
3251
|
/**
|
|
3257
3252
|
* A single child content element.
|
|
3258
3253
|
*/
|
|
3259
|
-
children:
|
|
3254
|
+
children: ze.isRequired,
|
|
3260
3255
|
/**
|
|
3261
3256
|
* The transition timing function.
|
|
3262
3257
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -3311,19 +3306,18 @@ process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
|
3311
3306
|
exit: e.number
|
|
3312
3307
|
})])
|
|
3313
3308
|
});
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
return ee("MuiBackdrop", o);
|
|
3309
|
+
function pr(o) {
|
|
3310
|
+
return Z("MuiBackdrop", o);
|
|
3317
3311
|
}
|
|
3318
|
-
const
|
|
3312
|
+
const fr = ee("MuiBackdrop", ["root", "invisible"]), js = fr, mr = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], br = (o) => {
|
|
3319
3313
|
const {
|
|
3320
3314
|
classes: n,
|
|
3321
3315
|
invisible: t
|
|
3322
3316
|
} = o;
|
|
3323
|
-
return
|
|
3317
|
+
return oe({
|
|
3324
3318
|
root: ["root", t && "invisible"]
|
|
3325
|
-
},
|
|
3326
|
-
},
|
|
3319
|
+
}, pr, n);
|
|
3320
|
+
}, hr = j("div", {
|
|
3327
3321
|
name: "MuiBackdrop",
|
|
3328
3322
|
slot: "Root",
|
|
3329
3323
|
overridesResolver: (o, n) => {
|
|
@@ -3347,7 +3341,7 @@ const Pr = oe("MuiBackdrop", ["root", "invisible"]), ni = Pr, Nr = ["children",
|
|
|
3347
3341
|
WebkitTapHighlightColor: "transparent"
|
|
3348
3342
|
}, o.invisible && {
|
|
3349
3343
|
backgroundColor: "transparent"
|
|
3350
|
-
})),
|
|
3344
|
+
})), yn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
3351
3345
|
var r, i, s;
|
|
3352
3346
|
const a = re({
|
|
3353
3347
|
props: n,
|
|
@@ -3361,22 +3355,22 @@ const Pr = oe("MuiBackdrop", ["root", "invisible"]), ni = Pr, Nr = ["children",
|
|
|
3361
3355
|
invisible: x = !1,
|
|
3362
3356
|
open: T,
|
|
3363
3357
|
slotProps: v = {},
|
|
3364
|
-
slots:
|
|
3365
|
-
TransitionComponent:
|
|
3366
|
-
transitionDuration:
|
|
3367
|
-
} = a,
|
|
3358
|
+
slots: M = {},
|
|
3359
|
+
TransitionComponent: R = gn,
|
|
3360
|
+
transitionDuration: y
|
|
3361
|
+
} = a, k = q(a, mr), f = d({}, a, {
|
|
3368
3362
|
component: p,
|
|
3369
3363
|
invisible: x
|
|
3370
|
-
}), m =
|
|
3371
|
-
return /* @__PURE__ */ I(
|
|
3364
|
+
}), m = br(f), E = (r = v.root) != null ? r : h.root;
|
|
3365
|
+
return /* @__PURE__ */ I(R, d({
|
|
3372
3366
|
in: T,
|
|
3373
|
-
timeout:
|
|
3374
|
-
},
|
|
3375
|
-
children: /* @__PURE__ */ I(
|
|
3367
|
+
timeout: y
|
|
3368
|
+
}, k, {
|
|
3369
|
+
children: /* @__PURE__ */ I(hr, d({
|
|
3376
3370
|
"aria-hidden": !0
|
|
3377
3371
|
}, E, {
|
|
3378
|
-
as: (i = (s =
|
|
3379
|
-
className:
|
|
3372
|
+
as: (i = (s = M.root) != null ? s : b.Root) != null ? i : p,
|
|
3373
|
+
className: Q(m.root, c, E == null ? void 0 : E.className),
|
|
3380
3374
|
ownerState: d({}, f, E == null ? void 0 : E.ownerState),
|
|
3381
3375
|
classes: m,
|
|
3382
3376
|
ref: t,
|
|
@@ -3384,7 +3378,7 @@ const Pr = oe("MuiBackdrop", ["root", "invisible"]), ni = Pr, Nr = ["children",
|
|
|
3384
3378
|
}))
|
|
3385
3379
|
}));
|
|
3386
3380
|
});
|
|
3387
|
-
process.env.NODE_ENV !== "production" && (
|
|
3381
|
+
process.env.NODE_ENV !== "production" && (yn.propTypes = {
|
|
3388
3382
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3389
3383
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3390
3384
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3480,22 +3474,22 @@ process.env.NODE_ENV !== "production" && (Cn.propTypes = {
|
|
|
3480
3474
|
exit: e.number
|
|
3481
3475
|
})])
|
|
3482
3476
|
});
|
|
3483
|
-
const
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3477
|
+
const vr = yn;
|
|
3478
|
+
function gr(o) {
|
|
3479
|
+
return Z("MuiModal", o);
|
|
3486
3480
|
}
|
|
3487
|
-
|
|
3488
|
-
const
|
|
3481
|
+
ee("MuiModal", ["root", "hidden", "backdrop"]);
|
|
3482
|
+
const yr = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Er = (o) => {
|
|
3489
3483
|
const {
|
|
3490
3484
|
open: n,
|
|
3491
3485
|
exited: t,
|
|
3492
3486
|
classes: r
|
|
3493
3487
|
} = o;
|
|
3494
|
-
return
|
|
3488
|
+
return oe({
|
|
3495
3489
|
root: ["root", !n && t && "hidden"],
|
|
3496
3490
|
backdrop: ["backdrop"]
|
|
3497
|
-
},
|
|
3498
|
-
},
|
|
3491
|
+
}, gr, r);
|
|
3492
|
+
}, xr = j("div", {
|
|
3499
3493
|
name: "MuiModal",
|
|
3500
3494
|
slot: "Root",
|
|
3501
3495
|
overridesResolver: (o, n) => {
|
|
@@ -3516,110 +3510,110 @@ const $r = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3516
3510
|
left: 0
|
|
3517
3511
|
}, !n.open && n.exited && {
|
|
3518
3512
|
visibility: "hidden"
|
|
3519
|
-
})),
|
|
3513
|
+
})), Tr = j(vr, {
|
|
3520
3514
|
name: "MuiModal",
|
|
3521
3515
|
slot: "Backdrop",
|
|
3522
3516
|
overridesResolver: (o, n) => n.backdrop
|
|
3523
3517
|
})({
|
|
3524
3518
|
zIndex: -1
|
|
3525
|
-
}),
|
|
3519
|
+
}), En = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
3526
3520
|
var r, i, s, a, l, c;
|
|
3527
3521
|
const p = re({
|
|
3528
3522
|
name: "MuiModal",
|
|
3529
3523
|
props: n
|
|
3530
3524
|
}), {
|
|
3531
|
-
BackdropComponent: b =
|
|
3525
|
+
BackdropComponent: b = Tr,
|
|
3532
3526
|
BackdropProps: h,
|
|
3533
3527
|
className: x,
|
|
3534
3528
|
closeAfterTransition: T = !1,
|
|
3535
3529
|
children: v,
|
|
3536
|
-
container:
|
|
3537
|
-
component:
|
|
3538
|
-
components:
|
|
3539
|
-
componentsProps:
|
|
3530
|
+
container: M,
|
|
3531
|
+
component: R,
|
|
3532
|
+
components: y = {},
|
|
3533
|
+
componentsProps: k = {},
|
|
3540
3534
|
disableAutoFocus: f = !1,
|
|
3541
3535
|
disableEnforceFocus: m = !1,
|
|
3542
3536
|
disableEscapeKeyDown: E = !1,
|
|
3543
3537
|
disablePortal: P = !1,
|
|
3544
|
-
disableRestoreFocus:
|
|
3538
|
+
disableRestoreFocus: g = !1,
|
|
3545
3539
|
disableScrollLock: D = !1,
|
|
3546
|
-
hideBackdrop:
|
|
3547
|
-
keepMounted:
|
|
3548
|
-
onBackdropClick:
|
|
3549
|
-
open:
|
|
3550
|
-
slotProps:
|
|
3551
|
-
slots:
|
|
3540
|
+
hideBackdrop: A = !1,
|
|
3541
|
+
keepMounted: L = !1,
|
|
3542
|
+
onBackdropClick: z,
|
|
3543
|
+
open: B,
|
|
3544
|
+
slotProps: $,
|
|
3545
|
+
slots: S
|
|
3552
3546
|
// eslint-disable-next-line react/prop-types
|
|
3553
|
-
} = p, C =
|
|
3547
|
+
} = p, C = q(p, yr), w = d({}, p, {
|
|
3554
3548
|
closeAfterTransition: T,
|
|
3555
3549
|
disableAutoFocus: f,
|
|
3556
3550
|
disableEnforceFocus: m,
|
|
3557
3551
|
disableEscapeKeyDown: E,
|
|
3558
3552
|
disablePortal: P,
|
|
3559
|
-
disableRestoreFocus:
|
|
3553
|
+
disableRestoreFocus: g,
|
|
3560
3554
|
disableScrollLock: D,
|
|
3561
|
-
hideBackdrop:
|
|
3562
|
-
keepMounted:
|
|
3555
|
+
hideBackdrop: A,
|
|
3556
|
+
keepMounted: L
|
|
3563
3557
|
}), {
|
|
3564
|
-
getRootProps:
|
|
3565
|
-
getBackdropProps:
|
|
3566
|
-
getTransitionProps:
|
|
3567
|
-
portalRef:
|
|
3568
|
-
isTopModal:
|
|
3569
|
-
exited:
|
|
3570
|
-
hasTransition:
|
|
3571
|
-
} =
|
|
3558
|
+
getRootProps: F,
|
|
3559
|
+
getBackdropProps: O,
|
|
3560
|
+
getTransitionProps: U,
|
|
3561
|
+
portalRef: ne,
|
|
3562
|
+
isTopModal: ue,
|
|
3563
|
+
exited: X,
|
|
3564
|
+
hasTransition: K
|
|
3565
|
+
} = pt(d({}, w, {
|
|
3572
3566
|
rootRef: t
|
|
3573
|
-
})), H = d({},
|
|
3574
|
-
exited:
|
|
3575
|
-
}), te =
|
|
3576
|
-
if (v.props.tabIndex === void 0 && (se.tabIndex = "-1"),
|
|
3567
|
+
})), H = d({}, w, {
|
|
3568
|
+
exited: X
|
|
3569
|
+
}), te = Er(H), se = {};
|
|
3570
|
+
if (v.props.tabIndex === void 0 && (se.tabIndex = "-1"), K) {
|
|
3577
3571
|
const {
|
|
3578
|
-
onEnter:
|
|
3579
|
-
onExited:
|
|
3580
|
-
} =
|
|
3581
|
-
se.onEnter =
|
|
3572
|
+
onEnter: W,
|
|
3573
|
+
onExited: V
|
|
3574
|
+
} = U();
|
|
3575
|
+
se.onEnter = W, se.onExited = V;
|
|
3582
3576
|
}
|
|
3583
|
-
const le = (r = (i =
|
|
3577
|
+
const le = (r = (i = S == null ? void 0 : S.root) != null ? i : y.Root) != null ? r : xr, ae = (s = (a = S == null ? void 0 : S.backdrop) != null ? a : y.Backdrop) != null ? s : b, Re = (l = $ == null ? void 0 : $.root) != null ? l : k.root, ve = (c = $ == null ? void 0 : $.backdrop) != null ? c : k.backdrop, ge = $e({
|
|
3584
3578
|
elementType: le,
|
|
3585
|
-
externalSlotProps:
|
|
3579
|
+
externalSlotProps: Re,
|
|
3586
3580
|
externalForwardedProps: C,
|
|
3587
|
-
getSlotProps:
|
|
3581
|
+
getSlotProps: F,
|
|
3588
3582
|
additionalProps: {
|
|
3589
3583
|
ref: t,
|
|
3590
|
-
as:
|
|
3584
|
+
as: R
|
|
3591
3585
|
},
|
|
3592
3586
|
ownerState: H,
|
|
3593
|
-
className:
|
|
3594
|
-
}), ye =
|
|
3587
|
+
className: Q(x, Re == null ? void 0 : Re.className, te == null ? void 0 : te.root, !H.open && H.exited && (te == null ? void 0 : te.hidden))
|
|
3588
|
+
}), ye = $e({
|
|
3595
3589
|
elementType: ae,
|
|
3596
3590
|
externalSlotProps: ve,
|
|
3597
3591
|
additionalProps: h,
|
|
3598
|
-
getSlotProps: (
|
|
3599
|
-
onClick: (
|
|
3600
|
-
|
|
3592
|
+
getSlotProps: (W) => O(d({}, W, {
|
|
3593
|
+
onClick: (V) => {
|
|
3594
|
+
z && z(V), W != null && W.onClick && W.onClick(V);
|
|
3601
3595
|
}
|
|
3602
3596
|
})),
|
|
3603
|
-
className:
|
|
3597
|
+
className: Q(ve == null ? void 0 : ve.className, h == null ? void 0 : h.className, te == null ? void 0 : te.backdrop),
|
|
3604
3598
|
ownerState: H
|
|
3605
3599
|
});
|
|
3606
|
-
return !
|
|
3607
|
-
ref:
|
|
3608
|
-
container:
|
|
3600
|
+
return !L && !B && (!K || X) ? null : /* @__PURE__ */ I(Qe, {
|
|
3601
|
+
ref: ne,
|
|
3602
|
+
container: M,
|
|
3609
3603
|
disablePortal: P,
|
|
3610
|
-
children: /* @__PURE__ */
|
|
3611
|
-
children: [!
|
|
3604
|
+
children: /* @__PURE__ */ me(le, d({}, ge, {
|
|
3605
|
+
children: [!A && b ? /* @__PURE__ */ I(ae, d({}, ye)) : null, /* @__PURE__ */ I(Je, {
|
|
3612
3606
|
disableEnforceFocus: m,
|
|
3613
3607
|
disableAutoFocus: f,
|
|
3614
|
-
disableRestoreFocus:
|
|
3615
|
-
isEnabled:
|
|
3616
|
-
open:
|
|
3608
|
+
disableRestoreFocus: g,
|
|
3609
|
+
isEnabled: ue,
|
|
3610
|
+
open: B,
|
|
3617
3611
|
children: /* @__PURE__ */ u.cloneElement(v, se)
|
|
3618
3612
|
})]
|
|
3619
3613
|
}))
|
|
3620
3614
|
});
|
|
3621
3615
|
});
|
|
3622
|
-
process.env.NODE_ENV !== "production" && (
|
|
3616
|
+
process.env.NODE_ENV !== "production" && (En.propTypes = {
|
|
3623
3617
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3624
3618
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3625
3619
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3647,7 +3641,7 @@ process.env.NODE_ENV !== "production" && (Rn.propTypes = {
|
|
|
3647
3641
|
/**
|
|
3648
3642
|
* A single child content element.
|
|
3649
3643
|
*/
|
|
3650
|
-
children:
|
|
3644
|
+
children: ze.isRequired,
|
|
3651
3645
|
/**
|
|
3652
3646
|
* Override or extend the styles applied to the component.
|
|
3653
3647
|
*/
|
|
@@ -3800,11 +3794,10 @@ process.env.NODE_ENV !== "production" && (Rn.propTypes = {
|
|
|
3800
3794
|
*/
|
|
3801
3795
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
3802
3796
|
});
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
return ee("MuiPaper", o);
|
|
3797
|
+
function Or(o) {
|
|
3798
|
+
return Z("MuiPaper", o);
|
|
3806
3799
|
}
|
|
3807
|
-
const
|
|
3800
|
+
const Rr = ee("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]), _s = Rr, Cr = ["className", "component", "elevation", "square", "variant"], Pr = (o) => {
|
|
3808
3801
|
const {
|
|
3809
3802
|
square: n,
|
|
3810
3803
|
elevation: t,
|
|
@@ -3813,8 +3806,8 @@ const _r = oe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevatio
|
|
|
3813
3806
|
} = o, s = {
|
|
3814
3807
|
root: ["root", r, !n && "rounded", r === "elevation" && `elevation${t}`]
|
|
3815
3808
|
};
|
|
3816
|
-
return
|
|
3817
|
-
},
|
|
3809
|
+
return oe(s, Or, i);
|
|
3810
|
+
}, Nr = j("div", {
|
|
3818
3811
|
name: "MuiPaper",
|
|
3819
3812
|
slot: "Root",
|
|
3820
3813
|
overridesResolver: (o, n) => {
|
|
@@ -3843,7 +3836,7 @@ const _r = oe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevatio
|
|
|
3843
3836
|
}, o.vars && {
|
|
3844
3837
|
backgroundImage: (t = o.vars.overlays) == null ? void 0 : t[n.elevation]
|
|
3845
3838
|
}));
|
|
3846
|
-
}),
|
|
3839
|
+
}), xn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
3847
3840
|
const r = re({
|
|
3848
3841
|
props: n,
|
|
3849
3842
|
name: "MuiPaper"
|
|
@@ -3853,21 +3846,21 @@ const _r = oe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevatio
|
|
|
3853
3846
|
elevation: a = 1,
|
|
3854
3847
|
square: l = !1,
|
|
3855
3848
|
variant: c = "elevation"
|
|
3856
|
-
} = r, p =
|
|
3849
|
+
} = r, p = q(r, Cr), b = d({}, r, {
|
|
3857
3850
|
component: s,
|
|
3858
3851
|
elevation: a,
|
|
3859
3852
|
square: l,
|
|
3860
3853
|
variant: c
|
|
3861
|
-
}), h =
|
|
3862
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3863
|
-
`)), /* @__PURE__ */ I(
|
|
3854
|
+
}), h = Pr(b);
|
|
3855
|
+
return process.env.NODE_ENV !== "production" && Po().shadows[a] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
3856
|
+
`)), /* @__PURE__ */ I(Nr, d({
|
|
3864
3857
|
as: s,
|
|
3865
3858
|
ownerState: b,
|
|
3866
|
-
className:
|
|
3859
|
+
className: Q(h.root, i),
|
|
3867
3860
|
ref: t
|
|
3868
3861
|
}, p));
|
|
3869
3862
|
});
|
|
3870
|
-
process.env.NODE_ENV !== "production" && (
|
|
3863
|
+
process.env.NODE_ENV !== "production" && (xn.propTypes = {
|
|
3871
3864
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3872
3865
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3873
3866
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3894,7 +3887,7 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
3894
3887
|
* It accepts values between 0 and 24 inclusive.
|
|
3895
3888
|
* @default 1
|
|
3896
3889
|
*/
|
|
3897
|
-
elevation: eo(
|
|
3890
|
+
elevation: eo(an, (o) => {
|
|
3898
3891
|
const {
|
|
3899
3892
|
elevation: n,
|
|
3900
3893
|
variant: t
|
|
@@ -3916,12 +3909,12 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
3916
3909
|
*/
|
|
3917
3910
|
variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
|
|
3918
3911
|
});
|
|
3919
|
-
const
|
|
3920
|
-
function
|
|
3921
|
-
return
|
|
3912
|
+
const Ir = xn;
|
|
3913
|
+
function Sr(o) {
|
|
3914
|
+
return Z("MuiPopover", o);
|
|
3922
3915
|
}
|
|
3923
|
-
|
|
3924
|
-
const
|
|
3916
|
+
ee("MuiPopover", ["root", "paper"]);
|
|
3917
|
+
const wr = ["onEntering"], Mr = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"], kr = ["slotProps"];
|
|
3925
3918
|
function Go(o, n) {
|
|
3926
3919
|
let t = 0;
|
|
3927
3920
|
return typeof n == "number" ? t = n : n === "center" ? t = o.height / 2 : n === "bottom" && (t = o.height), t;
|
|
@@ -3933,22 +3926,22 @@ function Xo(o, n) {
|
|
|
3933
3926
|
function Yo(o) {
|
|
3934
3927
|
return [o.horizontal, o.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
3935
3928
|
}
|
|
3936
|
-
function
|
|
3929
|
+
function Ye(o) {
|
|
3937
3930
|
return typeof o == "function" ? o() : o;
|
|
3938
3931
|
}
|
|
3939
|
-
const
|
|
3932
|
+
const Fr = (o) => {
|
|
3940
3933
|
const {
|
|
3941
3934
|
classes: n
|
|
3942
3935
|
} = o;
|
|
3943
|
-
return
|
|
3936
|
+
return oe({
|
|
3944
3937
|
root: ["root"],
|
|
3945
3938
|
paper: ["paper"]
|
|
3946
|
-
},
|
|
3947
|
-
},
|
|
3939
|
+
}, Sr, n);
|
|
3940
|
+
}, $r = j(En, {
|
|
3948
3941
|
name: "MuiPopover",
|
|
3949
3942
|
slot: "Root",
|
|
3950
3943
|
overridesResolver: (o, n) => n.root
|
|
3951
|
-
})({}),
|
|
3944
|
+
})({}), Tn = j(Ir, {
|
|
3952
3945
|
name: "MuiPopover",
|
|
3953
3946
|
slot: "Paper",
|
|
3954
3947
|
overridesResolver: (o, n) => n.paper
|
|
@@ -3964,7 +3957,7 @@ const Kr = (o) => {
|
|
|
3964
3957
|
maxHeight: "calc(100% - 32px)",
|
|
3965
3958
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
3966
3959
|
outline: 0
|
|
3967
|
-
}),
|
|
3960
|
+
}), On = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
3968
3961
|
var r, i, s;
|
|
3969
3962
|
const a = re({
|
|
3970
3963
|
props: n,
|
|
@@ -3981,130 +3974,130 @@ const Kr = (o) => {
|
|
|
3981
3974
|
children: x,
|
|
3982
3975
|
className: T,
|
|
3983
3976
|
container: v,
|
|
3984
|
-
elevation:
|
|
3985
|
-
marginThreshold:
|
|
3986
|
-
open:
|
|
3987
|
-
PaperProps:
|
|
3977
|
+
elevation: M = 8,
|
|
3978
|
+
marginThreshold: R = 16,
|
|
3979
|
+
open: y,
|
|
3980
|
+
PaperProps: k = {},
|
|
3988
3981
|
slots: f,
|
|
3989
3982
|
slotProps: m,
|
|
3990
3983
|
transformOrigin: E = {
|
|
3991
3984
|
vertical: "top",
|
|
3992
3985
|
horizontal: "left"
|
|
3993
3986
|
},
|
|
3994
|
-
TransitionComponent: P =
|
|
3995
|
-
transitionDuration:
|
|
3987
|
+
TransitionComponent: P = No,
|
|
3988
|
+
transitionDuration: g = "auto",
|
|
3996
3989
|
TransitionProps: {
|
|
3997
3990
|
onEntering: D
|
|
3998
3991
|
} = {},
|
|
3999
|
-
disableScrollLock:
|
|
4000
|
-
} = a,
|
|
3992
|
+
disableScrollLock: A = !1
|
|
3993
|
+
} = a, L = q(a.TransitionProps, wr), z = q(a, Mr), B = (r = m == null ? void 0 : m.paper) != null ? r : k, $ = u.useRef(), S = he($, B.ref), C = d({}, a, {
|
|
4001
3994
|
anchorOrigin: p,
|
|
4002
3995
|
anchorReference: h,
|
|
4003
|
-
elevation:
|
|
4004
|
-
marginThreshold:
|
|
4005
|
-
externalPaperSlotProps:
|
|
3996
|
+
elevation: M,
|
|
3997
|
+
marginThreshold: R,
|
|
3998
|
+
externalPaperSlotProps: B,
|
|
4006
3999
|
transformOrigin: E,
|
|
4007
4000
|
TransitionComponent: P,
|
|
4008
|
-
transitionDuration:
|
|
4009
|
-
TransitionProps:
|
|
4010
|
-
}),
|
|
4001
|
+
transitionDuration: g,
|
|
4002
|
+
TransitionProps: L
|
|
4003
|
+
}), w = Fr(C), F = u.useCallback(() => {
|
|
4011
4004
|
if (h === "anchorPosition")
|
|
4012
4005
|
return process.env.NODE_ENV !== "production" && (b || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), b;
|
|
4013
|
-
const
|
|
4006
|
+
const W = Ye(c), V = W && W.nodeType === 1 ? W : ie($.current).body, G = V.getBoundingClientRect();
|
|
4014
4007
|
if (process.env.NODE_ENV !== "production") {
|
|
4015
|
-
const
|
|
4016
|
-
process.env.NODE_ENV !== "test" &&
|
|
4008
|
+
const pe = V.getBoundingClientRect();
|
|
4009
|
+
process.env.NODE_ENV !== "test" && pe.top === 0 && pe.left === 0 && pe.right === 0 && pe.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
4017
4010
|
`));
|
|
4018
4011
|
}
|
|
4019
4012
|
return {
|
|
4020
|
-
top:
|
|
4021
|
-
left:
|
|
4013
|
+
top: G.top + Go(G, p.vertical),
|
|
4014
|
+
left: G.left + Xo(G, p.horizontal)
|
|
4022
4015
|
};
|
|
4023
|
-
}, [c, p.horizontal, p.vertical, b, h]),
|
|
4024
|
-
vertical: Go(
|
|
4025
|
-
horizontal: Xo(
|
|
4026
|
-
}), [E.horizontal, E.vertical]),
|
|
4027
|
-
const
|
|
4028
|
-
width:
|
|
4029
|
-
height:
|
|
4030
|
-
},
|
|
4016
|
+
}, [c, p.horizontal, p.vertical, b, h]), O = u.useCallback((W) => ({
|
|
4017
|
+
vertical: Go(W, E.vertical),
|
|
4018
|
+
horizontal: Xo(W, E.horizontal)
|
|
4019
|
+
}), [E.horizontal, E.vertical]), U = u.useCallback((W) => {
|
|
4020
|
+
const V = {
|
|
4021
|
+
width: W.offsetWidth,
|
|
4022
|
+
height: W.offsetHeight
|
|
4023
|
+
}, G = O(V);
|
|
4031
4024
|
if (h === "none")
|
|
4032
4025
|
return {
|
|
4033
4026
|
top: null,
|
|
4034
4027
|
left: null,
|
|
4035
|
-
transformOrigin: Yo(
|
|
4028
|
+
transformOrigin: Yo(G)
|
|
4036
4029
|
};
|
|
4037
|
-
const
|
|
4038
|
-
let Ee =
|
|
4039
|
-
const
|
|
4040
|
-
if (
|
|
4041
|
-
const
|
|
4042
|
-
Ee -=
|
|
4043
|
-
} else if (
|
|
4044
|
-
const
|
|
4045
|
-
Ee -=
|
|
4030
|
+
const pe = F();
|
|
4031
|
+
let Ee = pe.top - G.vertical, xe = pe.left - G.horizontal;
|
|
4032
|
+
const Ce = Ee + V.height, He = xe + V.width, fe = We(Ye(c)), Te = fe.innerHeight - R, Pe = fe.innerWidth - R;
|
|
4033
|
+
if (R !== null && Ee < R) {
|
|
4034
|
+
const J = Ee - R;
|
|
4035
|
+
Ee -= J, G.vertical += J;
|
|
4036
|
+
} else if (R !== null && Ce > Te) {
|
|
4037
|
+
const J = Ce - Te;
|
|
4038
|
+
Ee -= J, G.vertical += J;
|
|
4046
4039
|
}
|
|
4047
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
4048
|
-
`)),
|
|
4049
|
-
const
|
|
4050
|
-
xe -=
|
|
4051
|
-
} else if (
|
|
4052
|
-
const
|
|
4053
|
-
xe -=
|
|
4040
|
+
if (process.env.NODE_ENV !== "production" && V.height > Te && V.height && Te && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${V.height - Te}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
4041
|
+
`)), R !== null && xe < R) {
|
|
4042
|
+
const J = xe - R;
|
|
4043
|
+
xe -= J, G.horizontal += J;
|
|
4044
|
+
} else if (He > Pe) {
|
|
4045
|
+
const J = He - Pe;
|
|
4046
|
+
xe -= J, G.horizontal += J;
|
|
4054
4047
|
}
|
|
4055
4048
|
return {
|
|
4056
4049
|
top: `${Math.round(Ee)}px`,
|
|
4057
4050
|
left: `${Math.round(xe)}px`,
|
|
4058
|
-
transformOrigin: Yo(
|
|
4051
|
+
transformOrigin: Yo(G)
|
|
4059
4052
|
};
|
|
4060
|
-
}, [c, h,
|
|
4061
|
-
const
|
|
4062
|
-
if (!
|
|
4053
|
+
}, [c, h, F, O, R]), [ne, ue] = u.useState(y), X = u.useCallback(() => {
|
|
4054
|
+
const W = $.current;
|
|
4055
|
+
if (!W)
|
|
4063
4056
|
return;
|
|
4064
|
-
const
|
|
4065
|
-
|
|
4066
|
-
}, [
|
|
4067
|
-
u.useEffect(() => (
|
|
4068
|
-
const
|
|
4069
|
-
D && D(
|
|
4057
|
+
const V = U(W);
|
|
4058
|
+
V.top !== null && (W.style.top = V.top), V.left !== null && (W.style.left = V.left), W.style.transformOrigin = V.transformOrigin, ue(!0);
|
|
4059
|
+
}, [U]);
|
|
4060
|
+
u.useEffect(() => (A && window.addEventListener("scroll", X), () => window.removeEventListener("scroll", X)), [c, A, X]);
|
|
4061
|
+
const K = (W, V) => {
|
|
4062
|
+
D && D(W, V), X();
|
|
4070
4063
|
}, H = () => {
|
|
4071
|
-
|
|
4064
|
+
ue(!1);
|
|
4072
4065
|
};
|
|
4073
4066
|
u.useEffect(() => {
|
|
4074
|
-
|
|
4075
|
-
}), u.useImperativeHandle(l, () =>
|
|
4067
|
+
y && X();
|
|
4068
|
+
}), u.useImperativeHandle(l, () => y ? {
|
|
4076
4069
|
updatePosition: () => {
|
|
4077
|
-
|
|
4070
|
+
X();
|
|
4078
4071
|
}
|
|
4079
|
-
} : null, [
|
|
4080
|
-
if (!
|
|
4072
|
+
} : null, [y, X]), u.useEffect(() => {
|
|
4073
|
+
if (!y)
|
|
4081
4074
|
return;
|
|
4082
|
-
const
|
|
4083
|
-
|
|
4084
|
-
}),
|
|
4085
|
-
return
|
|
4086
|
-
|
|
4075
|
+
const W = Bn(() => {
|
|
4076
|
+
X();
|
|
4077
|
+
}), V = We(c);
|
|
4078
|
+
return V.addEventListener("resize", W), () => {
|
|
4079
|
+
W.clear(), V.removeEventListener("resize", W);
|
|
4087
4080
|
};
|
|
4088
|
-
}, [c,
|
|
4089
|
-
let te =
|
|
4090
|
-
|
|
4091
|
-
const se = v || (c ? ie(
|
|
4081
|
+
}, [c, y, X]);
|
|
4082
|
+
let te = g;
|
|
4083
|
+
g === "auto" && !P.muiSupportAuto && (te = void 0);
|
|
4084
|
+
const se = v || (c ? ie(Ye(c)).body : void 0), le = (i = f == null ? void 0 : f.root) != null ? i : $r, ae = (s = f == null ? void 0 : f.paper) != null ? s : Tn, Re = $e({
|
|
4092
4085
|
elementType: ae,
|
|
4093
|
-
externalSlotProps: d({},
|
|
4094
|
-
style:
|
|
4086
|
+
externalSlotProps: d({}, B, {
|
|
4087
|
+
style: ne ? B.style : d({}, B.style, {
|
|
4095
4088
|
opacity: 0
|
|
4096
4089
|
})
|
|
4097
4090
|
}),
|
|
4098
4091
|
additionalProps: {
|
|
4099
|
-
elevation:
|
|
4100
|
-
ref:
|
|
4092
|
+
elevation: M,
|
|
4093
|
+
ref: S
|
|
4101
4094
|
},
|
|
4102
4095
|
ownerState: C,
|
|
4103
|
-
className:
|
|
4104
|
-
}), ve =
|
|
4096
|
+
className: Q(w.paper, B == null ? void 0 : B.className)
|
|
4097
|
+
}), ve = $e({
|
|
4105
4098
|
elementType: le,
|
|
4106
4099
|
externalSlotProps: (m == null ? void 0 : m.root) || {},
|
|
4107
|
-
externalForwardedProps:
|
|
4100
|
+
externalForwardedProps: z,
|
|
4108
4101
|
additionalProps: {
|
|
4109
4102
|
ref: t,
|
|
4110
4103
|
slotProps: {
|
|
@@ -4113,31 +4106,31 @@ const Kr = (o) => {
|
|
|
4113
4106
|
}
|
|
4114
4107
|
},
|
|
4115
4108
|
container: se,
|
|
4116
|
-
open:
|
|
4109
|
+
open: y
|
|
4117
4110
|
},
|
|
4118
4111
|
ownerState: C,
|
|
4119
|
-
className:
|
|
4112
|
+
className: Q(w.root, T)
|
|
4120
4113
|
}), {
|
|
4121
4114
|
slotProps: ge
|
|
4122
|
-
} = ve, ye =
|
|
4123
|
-
return /* @__PURE__ */ I(le, d({}, ye, !
|
|
4115
|
+
} = ve, ye = q(ve, kr);
|
|
4116
|
+
return /* @__PURE__ */ I(le, d({}, ye, !Un(le) && {
|
|
4124
4117
|
slotProps: ge,
|
|
4125
|
-
disableScrollLock:
|
|
4118
|
+
disableScrollLock: A
|
|
4126
4119
|
}, {
|
|
4127
4120
|
children: /* @__PURE__ */ I(P, d({
|
|
4128
4121
|
appear: !0,
|
|
4129
|
-
in:
|
|
4130
|
-
onEntering:
|
|
4122
|
+
in: y,
|
|
4123
|
+
onEntering: K,
|
|
4131
4124
|
onExited: H,
|
|
4132
4125
|
timeout: te
|
|
4133
|
-
},
|
|
4134
|
-
children: /* @__PURE__ */ I(ae, d({},
|
|
4126
|
+
}, L, {
|
|
4127
|
+
children: /* @__PURE__ */ I(ae, d({}, Re, {
|
|
4135
4128
|
children: x
|
|
4136
4129
|
}))
|
|
4137
4130
|
}))
|
|
4138
4131
|
}));
|
|
4139
4132
|
});
|
|
4140
|
-
process.env.NODE_ENV !== "production" && (
|
|
4133
|
+
process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
4141
4134
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
4142
4135
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
4143
4136
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -4154,7 +4147,7 @@ process.env.NODE_ENV !== "production" && (In.propTypes = {
|
|
|
4154
4147
|
*/
|
|
4155
4148
|
anchorEl: eo(e.oneOfType([Ue, e.func]), (o) => {
|
|
4156
4149
|
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
4157
|
-
const n =
|
|
4150
|
+
const n = Ye(o.anchorEl);
|
|
4158
4151
|
if (n && n.nodeType === 1) {
|
|
4159
4152
|
const t = n.getBoundingClientRect();
|
|
4160
4153
|
if (process.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
|
|
@@ -4226,7 +4219,7 @@ process.env.NODE_ENV !== "production" && (In.propTypes = {
|
|
|
4226
4219
|
* The elevation of the popover.
|
|
4227
4220
|
* @default 8
|
|
4228
4221
|
*/
|
|
4229
|
-
elevation:
|
|
4222
|
+
elevation: an,
|
|
4230
4223
|
/**
|
|
4231
4224
|
* Specifies how close to the edge of the window the popover can appear.
|
|
4232
4225
|
* If null, the popover will not be constrained by the window.
|
|
@@ -4251,7 +4244,7 @@ process.env.NODE_ENV !== "production" && (In.propTypes = {
|
|
|
4251
4244
|
* @default {}
|
|
4252
4245
|
*/
|
|
4253
4246
|
PaperProps: e.shape({
|
|
4254
|
-
component:
|
|
4247
|
+
component: jn
|
|
4255
4248
|
}),
|
|
4256
4249
|
/**
|
|
4257
4250
|
* The extra props for the slot components.
|
|
@@ -4309,36 +4302,35 @@ process.env.NODE_ENV !== "production" && (In.propTypes = {
|
|
|
4309
4302
|
})]),
|
|
4310
4303
|
/**
|
|
4311
4304
|
* Props applied to the transition element.
|
|
4312
|
-
* By default, the element is based on this [`Transition`](
|
|
4305
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
4313
4306
|
* @default {}
|
|
4314
4307
|
*/
|
|
4315
4308
|
TransitionProps: e.object
|
|
4316
4309
|
});
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
return ee("MuiMenu", o);
|
|
4310
|
+
function Dr(o) {
|
|
4311
|
+
return Z("MuiMenu", o);
|
|
4320
4312
|
}
|
|
4321
|
-
const
|
|
4313
|
+
const Lr = ee("MuiMenu", ["root", "paper", "list"]), As = Lr, jr = ["onEntering"], _r = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"], Ar = {
|
|
4322
4314
|
vertical: "top",
|
|
4323
4315
|
horizontal: "right"
|
|
4324
|
-
},
|
|
4316
|
+
}, Br = {
|
|
4325
4317
|
vertical: "top",
|
|
4326
4318
|
horizontal: "left"
|
|
4327
|
-
},
|
|
4319
|
+
}, Wr = (o) => {
|
|
4328
4320
|
const {
|
|
4329
4321
|
classes: n
|
|
4330
4322
|
} = o;
|
|
4331
|
-
return
|
|
4323
|
+
return oe({
|
|
4332
4324
|
root: ["root"],
|
|
4333
4325
|
paper: ["paper"],
|
|
4334
4326
|
list: ["list"]
|
|
4335
|
-
},
|
|
4336
|
-
},
|
|
4337
|
-
shouldForwardProp: (o) =>
|
|
4327
|
+
}, Dr, n);
|
|
4328
|
+
}, Ur = j(On, {
|
|
4329
|
+
shouldForwardProp: (o) => be(o) || o === "classes",
|
|
4338
4330
|
name: "MuiMenu",
|
|
4339
4331
|
slot: "Root",
|
|
4340
4332
|
overridesResolver: (o, n) => n.root
|
|
4341
|
-
})({}),
|
|
4333
|
+
})({}), Vr = j(Tn, {
|
|
4342
4334
|
name: "MuiMenu",
|
|
4343
4335
|
slot: "Paper",
|
|
4344
4336
|
overridesResolver: (o, n) => n.paper
|
|
@@ -4349,14 +4341,14 @@ const Jr = oe("MuiMenu", ["root", "paper", "list"]), ri = Jr, Qr = ["onEntering"
|
|
|
4349
4341
|
maxHeight: "calc(100% - 96px)",
|
|
4350
4342
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
4351
4343
|
WebkitOverflowScrolling: "touch"
|
|
4352
|
-
}),
|
|
4344
|
+
}), qr = j(hn, {
|
|
4353
4345
|
name: "MuiMenu",
|
|
4354
4346
|
slot: "List",
|
|
4355
4347
|
overridesResolver: (o, n) => n.list
|
|
4356
4348
|
})({
|
|
4357
4349
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
4358
4350
|
outline: 0
|
|
4359
|
-
}),
|
|
4351
|
+
}), Rn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
4360
4352
|
var r, i;
|
|
4361
4353
|
const s = re({
|
|
4362
4354
|
props: n,
|
|
@@ -4371,80 +4363,82 @@ const Jr = oe("MuiMenu", ["root", "paper", "list"]), ri = Jr, Qr = ["onEntering"
|
|
|
4371
4363
|
open: x,
|
|
4372
4364
|
PaperProps: T = {},
|
|
4373
4365
|
PopoverClasses: v,
|
|
4374
|
-
transitionDuration:
|
|
4366
|
+
transitionDuration: M = "auto",
|
|
4375
4367
|
TransitionProps: {
|
|
4376
|
-
onEntering:
|
|
4368
|
+
onEntering: R
|
|
4377
4369
|
} = {},
|
|
4378
|
-
variant:
|
|
4379
|
-
slots:
|
|
4370
|
+
variant: y = "selectedMenu",
|
|
4371
|
+
slots: k = {},
|
|
4380
4372
|
slotProps: f = {}
|
|
4381
|
-
} = s, m =
|
|
4373
|
+
} = s, m = q(s.TransitionProps, jr), E = q(s, _r), P = Ln(), g = d({}, s, {
|
|
4382
4374
|
autoFocus: a,
|
|
4383
4375
|
disableAutoFocusItem: p,
|
|
4384
4376
|
MenuListProps: b,
|
|
4385
|
-
onEntering:
|
|
4377
|
+
onEntering: R,
|
|
4386
4378
|
PaperProps: T,
|
|
4387
|
-
transitionDuration:
|
|
4379
|
+
transitionDuration: M,
|
|
4388
4380
|
TransitionProps: m,
|
|
4389
|
-
variant:
|
|
4390
|
-
}),
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4381
|
+
variant: y
|
|
4382
|
+
}), D = Wr(g), A = a && !p && x, L = u.useRef(null), z = (O, U) => {
|
|
4383
|
+
L.current && L.current.adjustStyleForScrollbar(O, {
|
|
4384
|
+
direction: P ? "rtl" : "ltr"
|
|
4385
|
+
}), R && R(O, U);
|
|
4386
|
+
}, B = (O) => {
|
|
4387
|
+
O.key === "Tab" && (O.preventDefault(), h && h(O, "tabKeyDown"));
|
|
4394
4388
|
};
|
|
4395
|
-
let
|
|
4396
|
-
u.Children.map(l, (
|
|
4397
|
-
/* @__PURE__ */ u.isValidElement(
|
|
4398
|
-
`)),
|
|
4389
|
+
let $ = -1;
|
|
4390
|
+
u.Children.map(l, (O, U) => {
|
|
4391
|
+
/* @__PURE__ */ u.isValidElement(O) && (process.env.NODE_ENV !== "production" && yo.isFragment(O) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
4392
|
+
`)), O.props.disabled || (y === "selectedMenu" && O.props.selected || $ === -1) && ($ = U));
|
|
4399
4393
|
});
|
|
4400
|
-
const
|
|
4401
|
-
elementType:
|
|
4394
|
+
const S = (r = k.paper) != null ? r : Vr, C = (i = f.paper) != null ? i : T, w = $e({
|
|
4395
|
+
elementType: k.root,
|
|
4402
4396
|
externalSlotProps: f.root,
|
|
4403
|
-
ownerState:
|
|
4404
|
-
className: [
|
|
4405
|
-
}),
|
|
4406
|
-
elementType:
|
|
4407
|
-
externalSlotProps:
|
|
4408
|
-
ownerState:
|
|
4409
|
-
className:
|
|
4397
|
+
ownerState: g,
|
|
4398
|
+
className: [D.root, c]
|
|
4399
|
+
}), F = $e({
|
|
4400
|
+
elementType: S,
|
|
4401
|
+
externalSlotProps: C,
|
|
4402
|
+
ownerState: g,
|
|
4403
|
+
className: D.paper
|
|
4410
4404
|
});
|
|
4411
|
-
return /* @__PURE__ */ I(
|
|
4405
|
+
return /* @__PURE__ */ I(Ur, d({
|
|
4412
4406
|
onClose: h,
|
|
4413
4407
|
anchorOrigin: {
|
|
4414
4408
|
vertical: "bottom",
|
|
4415
|
-
horizontal:
|
|
4409
|
+
horizontal: P ? "right" : "left"
|
|
4416
4410
|
},
|
|
4417
|
-
transformOrigin:
|
|
4411
|
+
transformOrigin: P ? Ar : Br,
|
|
4418
4412
|
slots: {
|
|
4419
|
-
paper:
|
|
4420
|
-
root:
|
|
4413
|
+
paper: S,
|
|
4414
|
+
root: k.root
|
|
4421
4415
|
},
|
|
4422
4416
|
slotProps: {
|
|
4423
|
-
root:
|
|
4424
|
-
paper:
|
|
4417
|
+
root: w,
|
|
4418
|
+
paper: F
|
|
4425
4419
|
},
|
|
4426
4420
|
open: x,
|
|
4427
4421
|
ref: t,
|
|
4428
|
-
transitionDuration:
|
|
4422
|
+
transitionDuration: M,
|
|
4429
4423
|
TransitionProps: d({
|
|
4430
|
-
onEntering:
|
|
4424
|
+
onEntering: z
|
|
4431
4425
|
}, m),
|
|
4432
|
-
ownerState:
|
|
4426
|
+
ownerState: g
|
|
4433
4427
|
}, E, {
|
|
4434
4428
|
classes: v,
|
|
4435
|
-
children: /* @__PURE__ */ I(
|
|
4436
|
-
onKeyDown:
|
|
4437
|
-
actions:
|
|
4438
|
-
autoFocus: a && (
|
|
4429
|
+
children: /* @__PURE__ */ I(qr, d({
|
|
4430
|
+
onKeyDown: B,
|
|
4431
|
+
actions: L,
|
|
4432
|
+
autoFocus: a && ($ === -1 || p),
|
|
4439
4433
|
autoFocusItem: A,
|
|
4440
|
-
variant:
|
|
4434
|
+
variant: y
|
|
4441
4435
|
}, b, {
|
|
4442
|
-
className:
|
|
4436
|
+
className: Q(D.list, b.className),
|
|
4443
4437
|
children: l
|
|
4444
4438
|
}))
|
|
4445
4439
|
}));
|
|
4446
4440
|
});
|
|
4447
|
-
process.env.NODE_ENV !== "production" && (
|
|
4441
|
+
process.env.NODE_ENV !== "production" && (Rn.propTypes = {
|
|
4448
4442
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
4449
4443
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
4450
4444
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -4540,7 +4534,7 @@ process.env.NODE_ENV !== "production" && (Sn.propTypes = {
|
|
|
4540
4534
|
})]),
|
|
4541
4535
|
/**
|
|
4542
4536
|
* Props applied to the transition element.
|
|
4543
|
-
* By default, the element is based on this [`Transition`](
|
|
4537
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
4544
4538
|
* @default {}
|
|
4545
4539
|
*/
|
|
4546
4540
|
TransitionProps: e.object,
|
|
@@ -4550,11 +4544,11 @@ process.env.NODE_ENV !== "production" && (Sn.propTypes = {
|
|
|
4550
4544
|
*/
|
|
4551
4545
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
4552
4546
|
});
|
|
4553
|
-
const
|
|
4554
|
-
function
|
|
4555
|
-
return
|
|
4547
|
+
const zr = Rn;
|
|
4548
|
+
function Hr(o) {
|
|
4549
|
+
return Z("MuiNativeSelect", o);
|
|
4556
4550
|
}
|
|
4557
|
-
const
|
|
4551
|
+
const Io = ee("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Kr = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"], Gr = (o) => {
|
|
4558
4552
|
const {
|
|
4559
4553
|
classes: n,
|
|
4560
4554
|
variant: t,
|
|
@@ -4566,8 +4560,8 @@ const ls = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4566
4560
|
select: ["select", t, r && "disabled", i && "multiple", a && "error"],
|
|
4567
4561
|
icon: ["icon", `icon${ce(t)}`, s && "iconOpen", r && "disabled"]
|
|
4568
4562
|
};
|
|
4569
|
-
return
|
|
4570
|
-
},
|
|
4563
|
+
return oe(l, Hr, n);
|
|
4564
|
+
}, Cn = ({
|
|
4571
4565
|
ownerState: o,
|
|
4572
4566
|
theme: n
|
|
4573
4567
|
}) => d({
|
|
@@ -4621,10 +4615,10 @@ const ls = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4621
4615
|
"&&&": {
|
|
4622
4616
|
paddingRight: 32
|
|
4623
4617
|
}
|
|
4624
|
-
}),
|
|
4618
|
+
}), Xr = j("select", {
|
|
4625
4619
|
name: "MuiNativeSelect",
|
|
4626
4620
|
slot: "Select",
|
|
4627
|
-
shouldForwardProp:
|
|
4621
|
+
shouldForwardProp: be,
|
|
4628
4622
|
overridesResolver: (o, n) => {
|
|
4629
4623
|
const {
|
|
4630
4624
|
ownerState: t
|
|
@@ -4633,7 +4627,7 @@ const ls = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4633
4627
|
[`&.${Io.multiple}`]: n.multiple
|
|
4634
4628
|
}];
|
|
4635
4629
|
}
|
|
4636
|
-
})(
|
|
4630
|
+
})(Cn), Pn = ({
|
|
4637
4631
|
ownerState: o,
|
|
4638
4632
|
theme: n
|
|
4639
4633
|
}) => d({
|
|
@@ -4655,7 +4649,7 @@ const ls = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4655
4649
|
right: 7
|
|
4656
4650
|
}, o.variant === "outlined" && {
|
|
4657
4651
|
right: 7
|
|
4658
|
-
}),
|
|
4652
|
+
}), Yr = j("svg", {
|
|
4659
4653
|
name: "MuiNativeSelect",
|
|
4660
4654
|
slot: "Icon",
|
|
4661
4655
|
overridesResolver: (o, n) => {
|
|
@@ -4664,7 +4658,7 @@ const ls = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4664
4658
|
} = o;
|
|
4665
4659
|
return [n.icon, t.variant && n[`icon${ce(t.variant)}`], t.open && n.iconOpen];
|
|
4666
4660
|
}
|
|
4667
|
-
})(
|
|
4661
|
+
})(Pn), Nn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
4668
4662
|
const {
|
|
4669
4663
|
className: r,
|
|
4670
4664
|
disabled: i,
|
|
@@ -4672,25 +4666,25 @@ const ls = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4672
4666
|
IconComponent: a,
|
|
4673
4667
|
inputRef: l,
|
|
4674
4668
|
variant: c = "standard"
|
|
4675
|
-
} = n, p =
|
|
4669
|
+
} = n, p = q(n, Kr), b = d({}, n, {
|
|
4676
4670
|
disabled: i,
|
|
4677
4671
|
variant: c,
|
|
4678
4672
|
error: s
|
|
4679
|
-
}), h =
|
|
4680
|
-
return /* @__PURE__ */
|
|
4681
|
-
children: [/* @__PURE__ */ I(
|
|
4673
|
+
}), h = Gr(b);
|
|
4674
|
+
return /* @__PURE__ */ me(u.Fragment, {
|
|
4675
|
+
children: [/* @__PURE__ */ I(Xr, d({
|
|
4682
4676
|
ownerState: b,
|
|
4683
|
-
className:
|
|
4677
|
+
className: Q(h.select, r),
|
|
4684
4678
|
disabled: i,
|
|
4685
4679
|
ref: l || t
|
|
4686
|
-
}, p)), n.multiple ? null : /* @__PURE__ */ I(
|
|
4680
|
+
}, p)), n.multiple ? null : /* @__PURE__ */ I(Yr, {
|
|
4687
4681
|
as: a,
|
|
4688
4682
|
ownerState: b,
|
|
4689
4683
|
className: h.icon
|
|
4690
4684
|
})]
|
|
4691
4685
|
});
|
|
4692
4686
|
});
|
|
4693
|
-
process.env.NODE_ENV !== "production" && (
|
|
4687
|
+
process.env.NODE_ENV !== "production" && (Nn.propTypes = {
|
|
4694
4688
|
/**
|
|
4695
4689
|
* The option elements to populate the select with.
|
|
4696
4690
|
* Can be some `<option>` elements.
|
|
@@ -4698,7 +4692,6 @@ process.env.NODE_ENV !== "production" && ($n.propTypes = {
|
|
|
4698
4692
|
children: e.node,
|
|
4699
4693
|
/**
|
|
4700
4694
|
* Override or extend the styles applied to the component.
|
|
4701
|
-
* See [CSS API](#css) below for more details.
|
|
4702
4695
|
*/
|
|
4703
4696
|
classes: e.object,
|
|
4704
4697
|
/**
|
|
@@ -4746,13 +4739,12 @@ process.env.NODE_ENV !== "production" && ($n.propTypes = {
|
|
|
4746
4739
|
*/
|
|
4747
4740
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
4748
4741
|
});
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
return ee("MuiSelect", o);
|
|
4742
|
+
function Jr(o) {
|
|
4743
|
+
return Z("MuiSelect", o);
|
|
4752
4744
|
}
|
|
4753
|
-
const
|
|
4745
|
+
const Qr = ee("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), je = Qr;
|
|
4754
4746
|
var Jo;
|
|
4755
|
-
const
|
|
4747
|
+
const Zr = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"], es = j("div", {
|
|
4756
4748
|
name: "MuiSelect",
|
|
4757
4749
|
slot: "Select",
|
|
4758
4750
|
overridesResolver: (o, n) => {
|
|
@@ -4775,7 +4767,7 @@ const hs = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
|
4775
4767
|
}
|
|
4776
4768
|
];
|
|
4777
4769
|
}
|
|
4778
|
-
})(
|
|
4770
|
+
})(Cn, {
|
|
4779
4771
|
// Win specificity over the input base
|
|
4780
4772
|
[`&.${je.select}`]: {
|
|
4781
4773
|
height: "auto",
|
|
@@ -4786,7 +4778,7 @@ const hs = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
|
4786
4778
|
whiteSpace: "nowrap",
|
|
4787
4779
|
overflow: "hidden"
|
|
4788
4780
|
}
|
|
4789
|
-
}),
|
|
4781
|
+
}), os = j("svg", {
|
|
4790
4782
|
name: "MuiSelect",
|
|
4791
4783
|
slot: "Icon",
|
|
4792
4784
|
overridesResolver: (o, n) => {
|
|
@@ -4795,8 +4787,8 @@ const hs = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
|
4795
4787
|
} = o;
|
|
4796
4788
|
return [n.icon, t.variant && n[`icon${ce(t.variant)}`], t.open && n.iconOpen];
|
|
4797
4789
|
}
|
|
4798
|
-
})(
|
|
4799
|
-
shouldForwardProp: (o) =>
|
|
4790
|
+
})(Pn), ns = j("input", {
|
|
4791
|
+
shouldForwardProp: (o) => kn(o) && o !== "classes",
|
|
4800
4792
|
name: "MuiSelect",
|
|
4801
4793
|
slot: "NativeInput",
|
|
4802
4794
|
overridesResolver: (o, n) => n.nativeInput
|
|
@@ -4812,10 +4804,10 @@ const hs = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
|
4812
4804
|
function Qo(o, n) {
|
|
4813
4805
|
return typeof n == "object" && n !== null ? o === n : String(o) === String(n);
|
|
4814
4806
|
}
|
|
4815
|
-
function
|
|
4807
|
+
function ts(o) {
|
|
4816
4808
|
return o == null || typeof o == "string" && !o.trim();
|
|
4817
4809
|
}
|
|
4818
|
-
const
|
|
4810
|
+
const rs = (o) => {
|
|
4819
4811
|
const {
|
|
4820
4812
|
classes: n,
|
|
4821
4813
|
variant: t,
|
|
@@ -4828,8 +4820,8 @@ const xs = (o) => {
|
|
|
4828
4820
|
icon: ["icon", `icon${ce(t)}`, s && "iconOpen", r && "disabled"],
|
|
4829
4821
|
nativeInput: ["nativeInput"]
|
|
4830
4822
|
};
|
|
4831
|
-
return
|
|
4832
|
-
},
|
|
4823
|
+
return oe(l, Jr, n);
|
|
4824
|
+
}, In = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
4833
4825
|
var r;
|
|
4834
4826
|
const {
|
|
4835
4827
|
"aria-describedby": i,
|
|
@@ -4843,206 +4835,206 @@ const xs = (o) => {
|
|
|
4843
4835
|
disabled: x,
|
|
4844
4836
|
displayEmpty: T,
|
|
4845
4837
|
error: v = !1,
|
|
4846
|
-
IconComponent:
|
|
4847
|
-
inputRef:
|
|
4848
|
-
labelId:
|
|
4849
|
-
MenuProps:
|
|
4838
|
+
IconComponent: M,
|
|
4839
|
+
inputRef: R,
|
|
4840
|
+
labelId: y,
|
|
4841
|
+
MenuProps: k = {},
|
|
4850
4842
|
multiple: f,
|
|
4851
4843
|
name: m,
|
|
4852
4844
|
onBlur: E,
|
|
4853
4845
|
onChange: P,
|
|
4854
|
-
onClose:
|
|
4846
|
+
onClose: g,
|
|
4855
4847
|
onFocus: D,
|
|
4856
|
-
onOpen:
|
|
4857
|
-
open:
|
|
4858
|
-
readOnly:
|
|
4859
|
-
renderValue:
|
|
4860
|
-
SelectDisplayProps:
|
|
4861
|
-
tabIndex:
|
|
4848
|
+
onOpen: A,
|
|
4849
|
+
open: L,
|
|
4850
|
+
readOnly: z,
|
|
4851
|
+
renderValue: B,
|
|
4852
|
+
SelectDisplayProps: $ = {},
|
|
4853
|
+
tabIndex: S,
|
|
4862
4854
|
value: C,
|
|
4863
|
-
variant:
|
|
4864
|
-
} = n,
|
|
4855
|
+
variant: w = "standard"
|
|
4856
|
+
} = n, F = q(n, Zr), [O, U] = jo({
|
|
4865
4857
|
controlled: C,
|
|
4866
4858
|
default: h,
|
|
4867
4859
|
name: "Select"
|
|
4868
|
-
}), [
|
|
4869
|
-
controlled:
|
|
4860
|
+
}), [ne, ue] = jo({
|
|
4861
|
+
controlled: L,
|
|
4870
4862
|
default: b,
|
|
4871
4863
|
name: "Select"
|
|
4872
|
-
}),
|
|
4864
|
+
}), X = u.useRef(null), K = u.useRef(null), [H, te] = u.useState(null), {
|
|
4873
4865
|
current: se
|
|
4874
|
-
} = u.useRef(
|
|
4875
|
-
|
|
4866
|
+
} = u.useRef(L != null), [le, ae] = u.useState(), Re = he(t, R), ve = u.useCallback((N) => {
|
|
4867
|
+
K.current = N, N && te(N);
|
|
4876
4868
|
}, []), ge = H == null ? void 0 : H.parentNode;
|
|
4877
|
-
u.useImperativeHandle(
|
|
4869
|
+
u.useImperativeHandle(Re, () => ({
|
|
4878
4870
|
focus: () => {
|
|
4879
|
-
|
|
4871
|
+
K.current.focus();
|
|
4880
4872
|
},
|
|
4881
|
-
node:
|
|
4882
|
-
value:
|
|
4883
|
-
}), [
|
|
4884
|
-
b &&
|
|
4873
|
+
node: X.current,
|
|
4874
|
+
value: O
|
|
4875
|
+
}), [O]), u.useEffect(() => {
|
|
4876
|
+
b && ne && H && !se && (ae(l ? null : ge.clientWidth), K.current.focus());
|
|
4885
4877
|
}, [H, l]), u.useEffect(() => {
|
|
4886
|
-
a &&
|
|
4878
|
+
a && K.current.focus();
|
|
4887
4879
|
}, [a]), u.useEffect(() => {
|
|
4888
|
-
if (!
|
|
4880
|
+
if (!y)
|
|
4889
4881
|
return;
|
|
4890
|
-
const
|
|
4891
|
-
if (
|
|
4892
|
-
const
|
|
4893
|
-
getSelection().isCollapsed &&
|
|
4882
|
+
const N = ie(K.current).getElementById(y);
|
|
4883
|
+
if (N) {
|
|
4884
|
+
const _ = () => {
|
|
4885
|
+
getSelection().isCollapsed && K.current.focus();
|
|
4894
4886
|
};
|
|
4895
|
-
return
|
|
4896
|
-
|
|
4887
|
+
return N.addEventListener("click", _), () => {
|
|
4888
|
+
N.removeEventListener("click", _);
|
|
4897
4889
|
};
|
|
4898
4890
|
}
|
|
4899
|
-
}, [
|
|
4900
|
-
const ye = (
|
|
4901
|
-
|
|
4902
|
-
},
|
|
4903
|
-
|
|
4904
|
-
},
|
|
4905
|
-
ye(!1,
|
|
4906
|
-
},
|
|
4907
|
-
const
|
|
4908
|
-
|
|
4909
|
-
}, Ee = (
|
|
4910
|
-
let
|
|
4911
|
-
if (
|
|
4891
|
+
}, [y]);
|
|
4892
|
+
const ye = (N, _) => {
|
|
4893
|
+
N ? A && A(_) : g && g(_), se || (ae(l ? null : ge.clientWidth), ue(N));
|
|
4894
|
+
}, W = (N) => {
|
|
4895
|
+
N.button === 0 && (N.preventDefault(), K.current.focus(), ye(!0, N));
|
|
4896
|
+
}, V = (N) => {
|
|
4897
|
+
ye(!1, N);
|
|
4898
|
+
}, G = u.Children.toArray(c), pe = (N) => {
|
|
4899
|
+
const _ = G.find((Y) => Y.props.value === N.target.value);
|
|
4900
|
+
_ !== void 0 && (U(_.props.value), P && P(N, _));
|
|
4901
|
+
}, Ee = (N) => (_) => {
|
|
4902
|
+
let Y;
|
|
4903
|
+
if (_.currentTarget.hasAttribute("tabindex")) {
|
|
4912
4904
|
if (f) {
|
|
4913
|
-
|
|
4914
|
-
const Me =
|
|
4915
|
-
Me === -1 ?
|
|
4905
|
+
Y = Array.isArray(O) ? O.slice() : [];
|
|
4906
|
+
const Me = O.indexOf(N.props.value);
|
|
4907
|
+
Me === -1 ? Y.push(N.props.value) : Y.splice(Me, 1);
|
|
4916
4908
|
} else
|
|
4917
|
-
|
|
4918
|
-
if (
|
|
4919
|
-
const Me =
|
|
4920
|
-
Object.defineProperty(
|
|
4909
|
+
Y = N.props.value;
|
|
4910
|
+
if (N.props.onClick && N.props.onClick(_), O !== Y && (U(Y), P)) {
|
|
4911
|
+
const Me = _.nativeEvent || _, $o = new Me.constructor(Me.type, Me);
|
|
4912
|
+
Object.defineProperty($o, "target", {
|
|
4921
4913
|
writable: !0,
|
|
4922
4914
|
value: {
|
|
4923
|
-
value:
|
|
4915
|
+
value: Y,
|
|
4924
4916
|
name: m
|
|
4925
4917
|
}
|
|
4926
|
-
}), P(
|
|
4918
|
+
}), P($o, N);
|
|
4927
4919
|
}
|
|
4928
|
-
f || ye(!1,
|
|
4920
|
+
f || ye(!1, _);
|
|
4929
4921
|
}
|
|
4930
|
-
}, xe = (
|
|
4931
|
-
|
|
4922
|
+
}, xe = (N) => {
|
|
4923
|
+
z || [
|
|
4932
4924
|
" ",
|
|
4933
4925
|
"ArrowUp",
|
|
4934
4926
|
"ArrowDown",
|
|
4935
4927
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
4936
4928
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
4937
4929
|
"Enter"
|
|
4938
|
-
].indexOf(
|
|
4939
|
-
},
|
|
4940
|
-
!
|
|
4930
|
+
].indexOf(N.key) !== -1 && (N.preventDefault(), ye(!0, N));
|
|
4931
|
+
}, Ce = H !== null && ne, He = (N) => {
|
|
4932
|
+
!Ce && E && (Object.defineProperty(N, "target", {
|
|
4941
4933
|
writable: !0,
|
|
4942
4934
|
value: {
|
|
4943
|
-
value:
|
|
4935
|
+
value: O,
|
|
4944
4936
|
name: m
|
|
4945
4937
|
}
|
|
4946
|
-
}), E(
|
|
4938
|
+
}), E(N));
|
|
4947
4939
|
};
|
|
4948
|
-
delete
|
|
4949
|
-
let
|
|
4940
|
+
delete F["aria-invalid"];
|
|
4941
|
+
let fe, Te;
|
|
4950
4942
|
const Pe = [];
|
|
4951
|
-
let
|
|
4952
|
-
(
|
|
4953
|
-
value:
|
|
4954
|
-
}) || T) && (
|
|
4955
|
-
const
|
|
4956
|
-
if (!/* @__PURE__ */ u.isValidElement(
|
|
4943
|
+
let J = !1, ro = !1;
|
|
4944
|
+
(fo({
|
|
4945
|
+
value: O
|
|
4946
|
+
}) || T) && (B ? fe = B(O) : J = !0);
|
|
4947
|
+
const wn = G.map((N) => {
|
|
4948
|
+
if (!/* @__PURE__ */ u.isValidElement(N))
|
|
4957
4949
|
return null;
|
|
4958
|
-
process.env.NODE_ENV !== "production" &&
|
|
4950
|
+
process.env.NODE_ENV !== "production" && yo.isFragment(N) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
4959
4951
|
`));
|
|
4960
|
-
let
|
|
4952
|
+
let _;
|
|
4961
4953
|
if (f) {
|
|
4962
|
-
if (!Array.isArray(
|
|
4963
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
4964
|
-
|
|
4954
|
+
if (!Array.isArray(O))
|
|
4955
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Mn(2));
|
|
4956
|
+
_ = O.some((Y) => Qo(Y, N.props.value)), _ && J && Pe.push(N.props.children);
|
|
4965
4957
|
} else
|
|
4966
|
-
|
|
4967
|
-
return
|
|
4968
|
-
"aria-selected":
|
|
4969
|
-
onClick: Ee(
|
|
4970
|
-
onKeyUp: (
|
|
4971
|
-
|
|
4958
|
+
_ = Qo(O, N.props.value), _ && J && (Te = N.props.children);
|
|
4959
|
+
return _ && (ro = !0), /* @__PURE__ */ u.cloneElement(N, {
|
|
4960
|
+
"aria-selected": _ ? "true" : "false",
|
|
4961
|
+
onClick: Ee(N),
|
|
4962
|
+
onKeyUp: (Y) => {
|
|
4963
|
+
Y.key === " " && Y.preventDefault(), N.props.onKeyUp && N.props.onKeyUp(Y);
|
|
4972
4964
|
},
|
|
4973
4965
|
role: "option",
|
|
4974
|
-
selected:
|
|
4966
|
+
selected: _,
|
|
4975
4967
|
value: void 0,
|
|
4976
4968
|
// The value is most likely not a valid HTML attribute.
|
|
4977
|
-
"data-value":
|
|
4969
|
+
"data-value": N.props.value
|
|
4978
4970
|
// Instead, we provide it as a data attribute.
|
|
4979
4971
|
});
|
|
4980
4972
|
});
|
|
4981
4973
|
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
4982
|
-
if (!
|
|
4983
|
-
const
|
|
4984
|
-
console.warn([`MUI: You have provided an out-of-range value \`${
|
|
4974
|
+
if (!ro && !f && O !== "") {
|
|
4975
|
+
const N = G.map((_) => _.props.value);
|
|
4976
|
+
console.warn([`MUI: You have provided an out-of-range value \`${O}\` for the select ${m ? `(name="${m}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${N.filter((_) => _ != null).map((_) => `\`${_}\``).join(", ") || '""'}.`].join(`
|
|
4985
4977
|
`));
|
|
4986
4978
|
}
|
|
4987
|
-
}, [
|
|
4979
|
+
}, [ro, G, f, m, O]), J && (f ? Pe.length === 0 ? fe = null : fe = Pe.reduce((N, _, Y) => (N.push(_), Y < Pe.length - 1 && N.push(", "), N), []) : fe = Te);
|
|
4988
4980
|
let Mo = le;
|
|
4989
4981
|
!l && se && H && (Mo = ge.clientWidth);
|
|
4990
|
-
let
|
|
4991
|
-
typeof
|
|
4992
|
-
const
|
|
4993
|
-
variant:
|
|
4994
|
-
value:
|
|
4995
|
-
open:
|
|
4982
|
+
let so;
|
|
4983
|
+
typeof S < "u" ? so = S : so = x ? null : 0;
|
|
4984
|
+
const ko = $.id || (m ? `mui-component-select-${m}` : void 0), Ke = d({}, n, {
|
|
4985
|
+
variant: w,
|
|
4986
|
+
value: O,
|
|
4987
|
+
open: Ce,
|
|
4996
4988
|
error: v
|
|
4997
|
-
}),
|
|
4998
|
-
return /* @__PURE__ */
|
|
4999
|
-
children: [/* @__PURE__ */ I(
|
|
4989
|
+
}), io = rs(Ke), ao = d({}, k.PaperProps, (r = k.slotProps) == null ? void 0 : r.paper), Fo = Zo();
|
|
4990
|
+
return /* @__PURE__ */ me(u.Fragment, {
|
|
4991
|
+
children: [/* @__PURE__ */ I(es, d({
|
|
5000
4992
|
ref: ve,
|
|
5001
|
-
tabIndex:
|
|
4993
|
+
tabIndex: so,
|
|
5002
4994
|
role: "combobox",
|
|
5003
|
-
"aria-controls":
|
|
4995
|
+
"aria-controls": Fo,
|
|
5004
4996
|
"aria-disabled": x ? "true" : void 0,
|
|
5005
|
-
"aria-expanded":
|
|
4997
|
+
"aria-expanded": Ce ? "true" : "false",
|
|
5006
4998
|
"aria-haspopup": "listbox",
|
|
5007
4999
|
"aria-label": s,
|
|
5008
|
-
"aria-labelledby": [
|
|
5000
|
+
"aria-labelledby": [y, ko].filter(Boolean).join(" ") || void 0,
|
|
5009
5001
|
"aria-describedby": i,
|
|
5010
5002
|
onKeyDown: xe,
|
|
5011
|
-
onMouseDown: x ||
|
|
5012
|
-
onBlur:
|
|
5003
|
+
onMouseDown: x || z ? null : W,
|
|
5004
|
+
onBlur: He,
|
|
5013
5005
|
onFocus: D
|
|
5014
|
-
},
|
|
5015
|
-
ownerState:
|
|
5016
|
-
className:
|
|
5017
|
-
id:
|
|
5018
|
-
children:
|
|
5006
|
+
}, $, {
|
|
5007
|
+
ownerState: Ke,
|
|
5008
|
+
className: Q($.className, io.select, p),
|
|
5009
|
+
id: ko,
|
|
5010
|
+
children: ts(fe) ? (
|
|
5019
5011
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
5020
5012
|
Jo || (Jo = /* @__PURE__ */ I("span", {
|
|
5021
5013
|
className: "notranslate",
|
|
5022
5014
|
children: ""
|
|
5023
5015
|
}))
|
|
5024
|
-
) :
|
|
5025
|
-
})), /* @__PURE__ */ I(
|
|
5016
|
+
) : fe
|
|
5017
|
+
})), /* @__PURE__ */ I(ns, d({
|
|
5026
5018
|
"aria-invalid": v,
|
|
5027
|
-
value: Array.isArray(
|
|
5019
|
+
value: Array.isArray(O) ? O.join(",") : O,
|
|
5028
5020
|
name: m,
|
|
5029
|
-
ref:
|
|
5021
|
+
ref: X,
|
|
5030
5022
|
"aria-hidden": !0,
|
|
5031
|
-
onChange:
|
|
5023
|
+
onChange: pe,
|
|
5032
5024
|
tabIndex: -1,
|
|
5033
5025
|
disabled: x,
|
|
5034
|
-
className:
|
|
5026
|
+
className: io.nativeInput,
|
|
5035
5027
|
autoFocus: a,
|
|
5036
|
-
ownerState:
|
|
5037
|
-
},
|
|
5038
|
-
as:
|
|
5039
|
-
className:
|
|
5040
|
-
ownerState:
|
|
5041
|
-
}), /* @__PURE__ */ I(
|
|
5028
|
+
ownerState: Ke
|
|
5029
|
+
}, F)), /* @__PURE__ */ I(os, {
|
|
5030
|
+
as: M,
|
|
5031
|
+
className: io.icon,
|
|
5032
|
+
ownerState: Ke
|
|
5033
|
+
}), /* @__PURE__ */ I(zr, d({
|
|
5042
5034
|
id: `menu-${m || ""}`,
|
|
5043
5035
|
anchorEl: ge,
|
|
5044
|
-
open:
|
|
5045
|
-
onClose:
|
|
5036
|
+
open: Ce,
|
|
5037
|
+
onClose: V,
|
|
5046
5038
|
anchorOrigin: {
|
|
5047
5039
|
vertical: "bottom",
|
|
5048
5040
|
horizontal: "center"
|
|
@@ -5051,26 +5043,26 @@ const xs = (o) => {
|
|
|
5051
5043
|
vertical: "top",
|
|
5052
5044
|
horizontal: "center"
|
|
5053
5045
|
}
|
|
5054
|
-
},
|
|
5046
|
+
}, k, {
|
|
5055
5047
|
MenuListProps: d({
|
|
5056
|
-
"aria-labelledby":
|
|
5048
|
+
"aria-labelledby": y,
|
|
5057
5049
|
role: "listbox",
|
|
5058
5050
|
"aria-multiselectable": f ? "true" : void 0,
|
|
5059
5051
|
disableListWrap: !0,
|
|
5060
|
-
id:
|
|
5061
|
-
},
|
|
5062
|
-
slotProps: d({},
|
|
5063
|
-
paper: d({},
|
|
5052
|
+
id: Fo
|
|
5053
|
+
}, k.MenuListProps),
|
|
5054
|
+
slotProps: d({}, k.slotProps, {
|
|
5055
|
+
paper: d({}, ao, {
|
|
5064
5056
|
style: d({
|
|
5065
5057
|
minWidth: Mo
|
|
5066
|
-
},
|
|
5058
|
+
}, ao != null ? ao.style : null)
|
|
5067
5059
|
})
|
|
5068
5060
|
}),
|
|
5069
|
-
children:
|
|
5061
|
+
children: wn
|
|
5070
5062
|
}))]
|
|
5071
5063
|
});
|
|
5072
5064
|
});
|
|
5073
|
-
process.env.NODE_ENV !== "production" && (
|
|
5065
|
+
process.env.NODE_ENV !== "production" && (In.propTypes = {
|
|
5074
5066
|
/**
|
|
5075
5067
|
* @ignore
|
|
5076
5068
|
*/
|
|
@@ -5095,7 +5087,6 @@ process.env.NODE_ENV !== "production" && (kn.propTypes = {
|
|
|
5095
5087
|
children: e.node,
|
|
5096
5088
|
/**
|
|
5097
5089
|
* Override or extend the styles applied to the component.
|
|
5098
|
-
* See [CSS API](#css) below for more details.
|
|
5099
5090
|
*/
|
|
5100
5091
|
classes: e.object,
|
|
5101
5092
|
/**
|
|
@@ -5215,9 +5206,9 @@ process.env.NODE_ENV !== "production" && (kn.propTypes = {
|
|
|
5215
5206
|
*/
|
|
5216
5207
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
5217
5208
|
});
|
|
5218
|
-
const
|
|
5209
|
+
const ss = Vn(/* @__PURE__ */ I("path", {
|
|
5219
5210
|
d: "M7 10l5 5 5-5z"
|
|
5220
|
-
}), "ArrowDropDown"),
|
|
5211
|
+
}), "ArrowDropDown"), is = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"], as = ["root"], ls = (o) => {
|
|
5221
5212
|
const {
|
|
5222
5213
|
classes: n
|
|
5223
5214
|
} = o;
|
|
@@ -5225,9 +5216,9 @@ const Ts = kn, Os = Kn(/* @__PURE__ */ I("path", {
|
|
|
5225
5216
|
}, So = {
|
|
5226
5217
|
name: "MuiSelect",
|
|
5227
5218
|
overridesResolver: (o, n) => n.root,
|
|
5228
|
-
shouldForwardProp: (o) =>
|
|
5219
|
+
shouldForwardProp: (o) => be(o) && o !== "variant",
|
|
5229
5220
|
slot: "Root"
|
|
5230
|
-
},
|
|
5221
|
+
}, cs = j(oo, So)(""), ds = j(to, So)(""), us = j(no, So)(""), wo = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
5231
5222
|
const r = re({
|
|
5232
5223
|
name: "MuiSelect",
|
|
5233
5224
|
props: n
|
|
@@ -5238,79 +5229,79 @@ const Ts = kn, Os = Kn(/* @__PURE__ */ I("path", {
|
|
|
5238
5229
|
className: l,
|
|
5239
5230
|
defaultOpen: c = !1,
|
|
5240
5231
|
displayEmpty: p = !1,
|
|
5241
|
-
IconComponent: b =
|
|
5232
|
+
IconComponent: b = ss,
|
|
5242
5233
|
id: h,
|
|
5243
5234
|
input: x,
|
|
5244
5235
|
inputProps: T,
|
|
5245
5236
|
label: v,
|
|
5246
|
-
labelId:
|
|
5247
|
-
MenuProps:
|
|
5248
|
-
multiple:
|
|
5249
|
-
native:
|
|
5237
|
+
labelId: M,
|
|
5238
|
+
MenuProps: R,
|
|
5239
|
+
multiple: y = !1,
|
|
5240
|
+
native: k = !1,
|
|
5250
5241
|
onClose: f,
|
|
5251
5242
|
onOpen: m,
|
|
5252
5243
|
open: E,
|
|
5253
5244
|
renderValue: P,
|
|
5254
|
-
SelectDisplayProps:
|
|
5245
|
+
SelectDisplayProps: g,
|
|
5255
5246
|
variant: D = "outlined"
|
|
5256
|
-
} = r,
|
|
5247
|
+
} = r, A = q(r, is), L = k ? Nn : In, z = Ve(), B = qe({
|
|
5257
5248
|
props: r,
|
|
5258
|
-
muiFormControl:
|
|
5249
|
+
muiFormControl: z,
|
|
5259
5250
|
states: ["variant", "error"]
|
|
5260
|
-
}),
|
|
5261
|
-
variant:
|
|
5251
|
+
}), $ = B.variant || D, S = d({}, r, {
|
|
5252
|
+
variant: $,
|
|
5262
5253
|
classes: a
|
|
5263
|
-
}), C =
|
|
5264
|
-
standard: /* @__PURE__ */ I(
|
|
5265
|
-
ownerState:
|
|
5254
|
+
}), C = ls(S), w = q(C, as), F = x || {
|
|
5255
|
+
standard: /* @__PURE__ */ I(cs, {
|
|
5256
|
+
ownerState: S
|
|
5266
5257
|
}),
|
|
5267
|
-
outlined: /* @__PURE__ */ I(
|
|
5258
|
+
outlined: /* @__PURE__ */ I(ds, {
|
|
5268
5259
|
label: v,
|
|
5269
|
-
ownerState:
|
|
5260
|
+
ownerState: S
|
|
5270
5261
|
}),
|
|
5271
|
-
filled: /* @__PURE__ */ I(
|
|
5272
|
-
ownerState:
|
|
5262
|
+
filled: /* @__PURE__ */ I(us, {
|
|
5263
|
+
ownerState: S
|
|
5273
5264
|
})
|
|
5274
|
-
}[
|
|
5265
|
+
}[$], O = he(t, F.ref);
|
|
5275
5266
|
return /* @__PURE__ */ I(u.Fragment, {
|
|
5276
|
-
children: /* @__PURE__ */ u.cloneElement(
|
|
5267
|
+
children: /* @__PURE__ */ u.cloneElement(F, d({
|
|
5277
5268
|
// Most of the logic is implemented in `SelectInput`.
|
|
5278
5269
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
5279
|
-
inputComponent:
|
|
5270
|
+
inputComponent: L,
|
|
5280
5271
|
inputProps: d({
|
|
5281
5272
|
children: s,
|
|
5282
|
-
error:
|
|
5273
|
+
error: B.error,
|
|
5283
5274
|
IconComponent: b,
|
|
5284
|
-
variant:
|
|
5275
|
+
variant: $,
|
|
5285
5276
|
type: void 0,
|
|
5286
5277
|
// We render a select. We can ignore the type provided by the `Input`.
|
|
5287
|
-
multiple:
|
|
5288
|
-
},
|
|
5278
|
+
multiple: y
|
|
5279
|
+
}, k ? {
|
|
5289
5280
|
id: h
|
|
5290
5281
|
} : {
|
|
5291
5282
|
autoWidth: i,
|
|
5292
5283
|
defaultOpen: c,
|
|
5293
5284
|
displayEmpty: p,
|
|
5294
|
-
labelId:
|
|
5295
|
-
MenuProps:
|
|
5285
|
+
labelId: M,
|
|
5286
|
+
MenuProps: R,
|
|
5296
5287
|
onClose: f,
|
|
5297
5288
|
onOpen: m,
|
|
5298
5289
|
open: E,
|
|
5299
5290
|
renderValue: P,
|
|
5300
5291
|
SelectDisplayProps: d({
|
|
5301
5292
|
id: h
|
|
5302
|
-
},
|
|
5293
|
+
}, g)
|
|
5303
5294
|
}, T, {
|
|
5304
|
-
classes: T ?
|
|
5295
|
+
classes: T ? go(w, T.classes) : w
|
|
5305
5296
|
}, x ? x.props.inputProps : {})
|
|
5306
|
-
}, (
|
|
5297
|
+
}, (y && k || p) && $ === "outlined" ? {
|
|
5307
5298
|
notched: !0
|
|
5308
5299
|
} : {}, {
|
|
5309
|
-
ref:
|
|
5310
|
-
className:
|
|
5300
|
+
ref: O,
|
|
5301
|
+
className: Q(F.props.className, l, C.root)
|
|
5311
5302
|
}, !x && {
|
|
5312
|
-
variant:
|
|
5313
|
-
},
|
|
5303
|
+
variant: $
|
|
5304
|
+
}, A))
|
|
5314
5305
|
});
|
|
5315
5306
|
});
|
|
5316
5307
|
process.env.NODE_ENV !== "production" && (wo.propTypes = {
|
|
@@ -5461,27 +5452,27 @@ process.env.NODE_ENV !== "production" && (wo.propTypes = {
|
|
|
5461
5452
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
5462
5453
|
});
|
|
5463
5454
|
wo.muiName = "Select";
|
|
5464
|
-
const
|
|
5465
|
-
function
|
|
5466
|
-
return
|
|
5455
|
+
const ps = wo;
|
|
5456
|
+
function fs(o) {
|
|
5457
|
+
return Z("MuiTextField", o);
|
|
5467
5458
|
}
|
|
5468
|
-
|
|
5469
|
-
const
|
|
5470
|
-
standard:
|
|
5471
|
-
filled:
|
|
5472
|
-
outlined:
|
|
5473
|
-
},
|
|
5459
|
+
ee("MuiTextField", ["root"]);
|
|
5460
|
+
const ms = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"], bs = {
|
|
5461
|
+
standard: oo,
|
|
5462
|
+
filled: no,
|
|
5463
|
+
outlined: to
|
|
5464
|
+
}, hs = (o) => {
|
|
5474
5465
|
const {
|
|
5475
5466
|
classes: n
|
|
5476
5467
|
} = o;
|
|
5477
|
-
return
|
|
5468
|
+
return oe({
|
|
5478
5469
|
root: ["root"]
|
|
5479
|
-
},
|
|
5480
|
-
},
|
|
5470
|
+
}, fs, n);
|
|
5471
|
+
}, vs = j(Gt, {
|
|
5481
5472
|
name: "MuiTextField",
|
|
5482
5473
|
slot: "Root",
|
|
5483
5474
|
overridesResolver: (o, n) => n.root
|
|
5484
|
-
})({}),
|
|
5475
|
+
})({}), Sn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
5485
5476
|
const r = re({
|
|
5486
5477
|
props: n,
|
|
5487
5478
|
name: "MuiTextField"
|
|
@@ -5497,94 +5488,94 @@ const $s = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5497
5488
|
FormHelperTextProps: x,
|
|
5498
5489
|
fullWidth: T = !1,
|
|
5499
5490
|
helperText: v,
|
|
5500
|
-
id:
|
|
5501
|
-
InputLabelProps:
|
|
5502
|
-
inputProps:
|
|
5503
|
-
InputProps:
|
|
5491
|
+
id: M,
|
|
5492
|
+
InputLabelProps: R,
|
|
5493
|
+
inputProps: y,
|
|
5494
|
+
InputProps: k,
|
|
5504
5495
|
inputRef: f,
|
|
5505
5496
|
label: m,
|
|
5506
5497
|
maxRows: E,
|
|
5507
5498
|
minRows: P,
|
|
5508
|
-
multiline:
|
|
5499
|
+
multiline: g = !1,
|
|
5509
5500
|
name: D,
|
|
5510
|
-
onBlur:
|
|
5511
|
-
onChange:
|
|
5512
|
-
onFocus:
|
|
5513
|
-
placeholder:
|
|
5514
|
-
required:
|
|
5515
|
-
rows:
|
|
5501
|
+
onBlur: A,
|
|
5502
|
+
onChange: L,
|
|
5503
|
+
onFocus: z,
|
|
5504
|
+
placeholder: B,
|
|
5505
|
+
required: $ = !1,
|
|
5506
|
+
rows: S,
|
|
5516
5507
|
select: C = !1,
|
|
5517
|
-
SelectProps:
|
|
5518
|
-
type:
|
|
5519
|
-
value:
|
|
5520
|
-
variant:
|
|
5521
|
-
} = r,
|
|
5508
|
+
SelectProps: w,
|
|
5509
|
+
type: F,
|
|
5510
|
+
value: O,
|
|
5511
|
+
variant: U = "outlined"
|
|
5512
|
+
} = r, ne = q(r, ms), ue = d({}, r, {
|
|
5522
5513
|
autoFocus: s,
|
|
5523
5514
|
color: c,
|
|
5524
5515
|
disabled: b,
|
|
5525
5516
|
error: h,
|
|
5526
5517
|
fullWidth: T,
|
|
5527
|
-
multiline:
|
|
5528
|
-
required:
|
|
5518
|
+
multiline: g,
|
|
5519
|
+
required: $,
|
|
5529
5520
|
select: C,
|
|
5530
|
-
variant:
|
|
5531
|
-
}),
|
|
5521
|
+
variant: U
|
|
5522
|
+
}), X = hs(ue);
|
|
5532
5523
|
process.env.NODE_ENV !== "production" && C && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
|
|
5533
|
-
const
|
|
5534
|
-
|
|
5535
|
-
const H = Zo(
|
|
5524
|
+
const K = {};
|
|
5525
|
+
U === "outlined" && (R && typeof R.shrink < "u" && (K.notched = R.shrink), K.label = m), C && ((!w || !w.native) && (K.id = void 0), K["aria-describedby"] = void 0);
|
|
5526
|
+
const H = Zo(M), te = v && H ? `${H}-helper-text` : void 0, se = m && H ? `${H}-label` : void 0, le = bs[U], ae = /* @__PURE__ */ I(le, d({
|
|
5536
5527
|
"aria-describedby": te,
|
|
5537
5528
|
autoComplete: i,
|
|
5538
5529
|
autoFocus: s,
|
|
5539
5530
|
defaultValue: p,
|
|
5540
5531
|
fullWidth: T,
|
|
5541
|
-
multiline:
|
|
5532
|
+
multiline: g,
|
|
5542
5533
|
name: D,
|
|
5543
|
-
rows:
|
|
5534
|
+
rows: S,
|
|
5544
5535
|
maxRows: E,
|
|
5545
5536
|
minRows: P,
|
|
5546
|
-
type:
|
|
5547
|
-
value:
|
|
5537
|
+
type: F,
|
|
5538
|
+
value: O,
|
|
5548
5539
|
id: H,
|
|
5549
5540
|
inputRef: f,
|
|
5550
|
-
onBlur:
|
|
5551
|
-
onChange:
|
|
5552
|
-
onFocus:
|
|
5553
|
-
placeholder:
|
|
5554
|
-
inputProps:
|
|
5555
|
-
},
|
|
5556
|
-
return /* @__PURE__ */
|
|
5557
|
-
className:
|
|
5541
|
+
onBlur: A,
|
|
5542
|
+
onChange: L,
|
|
5543
|
+
onFocus: z,
|
|
5544
|
+
placeholder: B,
|
|
5545
|
+
inputProps: y
|
|
5546
|
+
}, K, k));
|
|
5547
|
+
return /* @__PURE__ */ me(vs, d({
|
|
5548
|
+
className: Q(X.root, l),
|
|
5558
5549
|
disabled: b,
|
|
5559
5550
|
error: h,
|
|
5560
5551
|
fullWidth: T,
|
|
5561
5552
|
ref: t,
|
|
5562
|
-
required:
|
|
5553
|
+
required: $,
|
|
5563
5554
|
color: c,
|
|
5564
|
-
variant:
|
|
5565
|
-
ownerState:
|
|
5566
|
-
},
|
|
5567
|
-
children: [m != null && m !== "" && /* @__PURE__ */ I(
|
|
5555
|
+
variant: U,
|
|
5556
|
+
ownerState: ue
|
|
5557
|
+
}, ne, {
|
|
5558
|
+
children: [m != null && m !== "" && /* @__PURE__ */ I(dn, d({
|
|
5568
5559
|
htmlFor: H,
|
|
5569
5560
|
id: se
|
|
5570
|
-
},
|
|
5561
|
+
}, R, {
|
|
5571
5562
|
children: m
|
|
5572
|
-
})), C ? /* @__PURE__ */ I(
|
|
5563
|
+
})), C ? /* @__PURE__ */ I(ps, d({
|
|
5573
5564
|
"aria-describedby": te,
|
|
5574
5565
|
id: H,
|
|
5575
5566
|
labelId: se,
|
|
5576
|
-
value:
|
|
5567
|
+
value: O,
|
|
5577
5568
|
input: ae
|
|
5578
|
-
},
|
|
5569
|
+
}, w, {
|
|
5579
5570
|
children: a
|
|
5580
|
-
})) : ae, v && /* @__PURE__ */ I(
|
|
5571
|
+
})) : ae, v && /* @__PURE__ */ I(er, d({
|
|
5581
5572
|
id: te
|
|
5582
5573
|
}, x, {
|
|
5583
5574
|
children: v
|
|
5584
5575
|
}))]
|
|
5585
5576
|
}));
|
|
5586
5577
|
});
|
|
5587
|
-
process.env.NODE_ENV !== "production" && (
|
|
5578
|
+
process.env.NODE_ENV !== "production" && (Sn.propTypes = {
|
|
5588
5579
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
5589
5580
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
5590
5581
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -5757,49 +5748,49 @@ process.env.NODE_ENV !== "production" && (Fn.propTypes = {
|
|
|
5757
5748
|
*/
|
|
5758
5749
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
5759
5750
|
});
|
|
5760
|
-
const
|
|
5751
|
+
const Bs = (o) => /* @__PURE__ */ I(Sn, { ...o, variant: o.variant || "standard" });
|
|
5761
5752
|
export {
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5753
|
+
gn as A,
|
|
5754
|
+
vr as B,
|
|
5755
|
+
vn as C,
|
|
5756
|
+
Ze as D,
|
|
5757
|
+
an as E,
|
|
5758
|
+
Gt as F,
|
|
5759
|
+
fn as G,
|
|
5769
5760
|
Ue as H,
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5761
|
+
No as I,
|
|
5762
|
+
Je as J,
|
|
5763
|
+
Sn as K,
|
|
5764
|
+
ir as L,
|
|
5765
|
+
zr as M,
|
|
5766
|
+
hn as N,
|
|
5767
|
+
Qe as P,
|
|
5768
|
+
ps as S,
|
|
5769
|
+
Bs as T,
|
|
5770
|
+
er as a,
|
|
5771
|
+
_t as b,
|
|
5772
|
+
Ir as c,
|
|
5773
|
+
js as d,
|
|
5774
|
+
Vt as e,
|
|
5775
|
+
Ds as f,
|
|
5776
|
+
pr as g,
|
|
5786
5777
|
zo as h,
|
|
5787
|
-
|
|
5778
|
+
Xt as i,
|
|
5788
5779
|
Be as j,
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5780
|
+
Lt as k,
|
|
5781
|
+
kt as l,
|
|
5782
|
+
Ls as m,
|
|
5783
|
+
or as n,
|
|
5784
|
+
As as o,
|
|
5785
|
+
Dr as p,
|
|
5786
|
+
_s as q,
|
|
5787
|
+
Or as r,
|
|
5797
5788
|
je as s,
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5789
|
+
Jr as t,
|
|
5790
|
+
Yn as u,
|
|
5791
|
+
de as v,
|
|
5792
|
+
$s as w,
|
|
5793
|
+
ze as x,
|
|
5794
|
+
nn as y,
|
|
5795
|
+
En as z
|
|
5805
5796
|
};
|