everest-npm-features 0.0.26 → 0.0.27
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/{Alert-CbQZ8Nii.js → Alert-CUoIVlUd.js} +8 -7
- package/dist/{ArrowBack-BoYSBb8u.js → ArrowBack-BV158RTp.js} +1 -1
- package/dist/Avatar-CwczQLPi.js +280 -0
- package/dist/{Backdrop-CJBRZv_z.js → Backdrop-yR8IRnFX.js} +1 -1
- package/dist/{Box-B12x52NC.js → Box-BwKpr_VI.js} +1 -1
- package/dist/{Button-C57IMamW.js → Button-tAfK4lud.js} +13 -12
- package/dist/{ButtonBase-DugIO1pR.js → ButtonBase-CaH152Zd.js} +1 -1
- package/dist/{Cancel-D1JNu4Hj.js → Cancel-BoEk0xRy.js} +1 -1
- package/dist/{CardContent-CbObWW6t.js → CardContent-ZS4vlcvi.js} +2 -2
- package/dist/{CircularProgress-t8uGhLMo.js → CircularProgress-Yx712vpT.js} +7 -6
- package/dist/{Close-jnEgOCZv.js → Close-B_8kEwSt.js} +1 -1
- package/dist/{Close-VV7zb3cu.js → Close-CFg1QB5M.js} +1 -1
- package/dist/{Container-B3Af6Sc3.js → Container-CBPBT38n.js} +2 -2
- package/dist/{ContentCopy-Ufwoeeov.js → ContentCopy-D4Eg7Nkm.js} +1 -1
- package/dist/DefaultPropsProvider-4P82EuVL.js +232 -0
- package/dist/{Delete-TCARcVtU.js → Delete-BGp4FPdE.js} +1 -1
- package/dist/{DialogContent-DzidtXui.js → DialogContent-_gvZOy18.js} +13 -12
- package/dist/{DialogTitle-Bg61Hr7M.js → DialogTitle-dq22bYlF.js} +3 -3
- package/dist/{Divider-Dy5hKfey.js → Divider-CIL55YSC.js} +10 -9
- package/dist/{ErrorOutline-CI_ys3Zo.js → ErrorOutline-BykbFh0r.js} +1 -1
- package/dist/{FileDownload-BcYF17B0.js → FileDownload-BSy7tA6m.js} +1 -1
- package/dist/{FilledInput-DrGeWgue.js → FilledInput-QaJVaeIX.js} +12 -14
- package/dist/{FormControl-DeeQCuu5.js → FormControl-H4D1Z6Ov.js} +1 -1
- package/dist/{FormControlLabel-DVnrJkC8.js → FormControlLabel-BvI1nkJ1.js} +7 -6
- package/dist/{Grid-BXyV_lM8.js → Grid-CPkjiKqX.js} +2 -2
- package/dist/{IconButton-eWRhV6Q9.js → IconButton-WneJM4uP.js} +10 -9
- package/dist/{Info-D2UkGxyK.js → Info-0vSsl6Bm.js} +1 -1
- package/dist/{InputAdornment-BKuUMfPj.js → InputAdornment-Bqn4-Kns.js} +6 -5
- package/dist/{Link-Cm4BkRHO.js → Link-DhdK4VfZ.js} +6 -5
- package/dist/{ListItemIcon-GKRFb1Gr.js → ListItemIcon-D657XWHf.js} +15 -14
- package/dist/Menu-BAFJBGa-.js +1238 -0
- package/dist/{MenuItem-CeCt0bfa.js → MenuItem-ByxiQtY2.js} +36 -35
- package/dist/{Modal-csf3Y8d2.js → Modal-DEfOsvWK.js} +16 -15
- package/dist/{Paper-CnStNE24.js → Paper-jx_cZiyU.js} +27 -26
- package/dist/{PlayArrow-DRCGjsrx.js → PlayArrow-BCWGWaUq.js} +1 -1
- package/dist/{Popper-pPBEFLi4.js → Popper-B1He9eVi.js} +1 -1
- package/dist/{RadioGroup-KiyYjXaT.js → RadioGroup-_-H2gvH2.js} +3 -3
- package/dist/Select-CGei0bav.js +1885 -0
- package/dist/{Stack-CcR5RCg8.js → Stack-DH-Nxf9q.js} +2 -2
- package/dist/{SwitchBase-CHO5ZceN.js → SwitchBase-BDUzpdBf.js} +2 -2
- package/dist/{TextField-q_SeLeNd.js → TextField-DmiK1A_S.js} +17 -16
- package/dist/{Typography-DBlMiOti.js → Typography-BQDN44CM.js} +16 -15
- package/dist/assets/documents.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/tokenRow.css +1 -1
- package/dist/assets/withThemeProvider.css +1 -1
- package/dist/{auth-Bf9zHZ-x.js → auth-SxpGte_3.js} +1 -1
- package/dist/{bank-BC4YNBRb.js → bank-DyVf4Uoo.js} +6 -6
- package/dist/components/RocketRamp/MinimalKyc/form.js +13 -12
- package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/index.js +16 -14
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
- package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
- package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
- package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/Transactions/index.js +4 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- package/dist/components/Shared/FullKyc/pep.js +9 -9
- package/dist/components/Shared/FullKyc/personalDetails.js +10 -9
- package/dist/components/Shared/FullKyc/userInfo.js +15 -14
- package/dist/components/Shared/HistoryItem/index.js +64 -65
- package/dist/components/Shared/Incode/index.js +5 -5
- package/dist/components/Shared/MinimalKyc/index.js +8 -8
- package/dist/components/Shared/loader.js +2 -2
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Wallet/Account/createIban.js +76 -85
- package/dist/components/Wallet/Account/iban.d.ts +5 -1
- package/dist/components/Wallet/Account/iban.js +223 -25
- package/dist/components/Wallet/Account/index.js +144 -149
- package/dist/components/Wallet/Account/sendIban.js +25 -27
- package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
- package/dist/components/Wallet/Buy/form.js +21 -20
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +25 -24
- package/dist/components/Wallet/EnterpriseKyc/edd.js +23 -22
- package/dist/components/Wallet/EnterpriseKyc/index.js +15 -14
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +26 -25
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +30 -28
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/verify.js +8 -7
- package/dist/components/Wallet/History/index.js +111 -112
- package/dist/components/Wallet/Home/index.d.ts +5 -0
- package/dist/components/Wallet/Home/index.js +20 -0
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +18 -17
- package/dist/components/Wallet/Portfolio/dropdown.d.ts +14 -0
- package/dist/components/Wallet/Portfolio/dropdown.js +76 -0
- package/dist/components/Wallet/Portfolio/index.js +309 -304
- package/dist/components/Wallet/Portfolio/tokenRow.js +5 -7
- package/dist/components/Wallet/Profile/documents.js +18 -18
- package/dist/components/Wallet/Profile/index.js +152 -419
- package/dist/components/Wallet/Receive/index.js +10 -10
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -8
- package/dist/components/Wallet/Sell/form.js +19 -19
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +20 -19
- package/dist/components/Wallet/Shared/Auth/emailForm.js +14 -13
- package/dist/components/Wallet/Shared/Auth/otpForm.d.ts +1 -1
- package/dist/components/Wallet/Shared/Auth/otpForm.js +98 -88
- package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +10 -12
- package/dist/components/Wallet/Shared/Container/index.d.ts +7 -4
- package/dist/components/Wallet/Shared/Container/index.js +62 -26
- package/dist/components/Wallet/Shared/Input/index.js +1 -1
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Wallet/Shared/Order/paymentButton.d.ts +2 -0
- package/dist/components/Wallet/Shared/Order/paymentButton.js +46 -0
- package/dist/components/Wallet/Shared/Order/types.d.ts +2 -0
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +13 -11
- package/dist/components/Wallet/Shared/addBank.js +44 -48
- package/dist/components/Wallet/Shared/appButton.d.ts +1 -1
- package/dist/components/Wallet/Shared/appButton.js +77 -57
- package/dist/components/Wallet/Shared/backBtn.js +2 -2
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.d.ts +5 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +39 -38
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/noData.js +7 -7
- package/dist/components/Wallet/Shared/pin.js +4 -4
- package/dist/components/Wallet/Shared/radioButton.js +3 -3
- package/dist/components/Wallet/Shared/step.js +2 -2
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/SignUp/terms.js +4 -4
- package/dist/components/Wallet/Stake/gems/index.js +11 -11
- package/dist/components/Wallet/Stake/id/index.js +12 -12
- package/dist/components/Wallet/Stake/index.js +30 -29
- package/dist/components/Wallet/Swap/index.js +112 -116
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +9 -9
- package/dist/components/Wallet/Withdraw/form.js +19 -18
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-CsMPRK0U.js → constants-BF50a6s-.js} +30 -30
- package/dist/context/dialogContext.d.ts +6 -0
- package/dist/context/dialogContext.js +13 -0
- package/dist/{createSvgIcon-CH41ZVFw.js → createSvgIcon-BgBEJXMh.js} +15 -14
- package/dist/cryptoAssets-Dck03SPI.js +16 -0
- package/dist/{dividerClasses-DnbM--4s.js → dividerClasses-BVK5cNr7.js} +1 -1
- package/dist/documents-Sh6RH769.js +549 -0
- package/dist/{fiatAssets-DVHfFafS.js → fiatAssets-CTIJw9N4.js} +1 -1
- package/dist/hooks/useDialog/index.js +35 -38
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +12 -11
- package/dist/index-BRwse7X5.js +631 -0
- package/dist/{index-DxX5Mo0o.js → index-CWzs4-wZ.js} +18 -18
- package/dist/{index-DZ__IpVI.js → index-CbogTdwW.js} +25 -24
- package/dist/{index-C9uGghB8.js → index-CmJNKC9m.js} +26 -26
- package/dist/{index-VE9lYjq3.js → index-D8j7wPDM.js} +15 -14
- package/dist/{index-eEYiDlpX.js → index-GxLtFwhs.js} +228 -230
- package/dist/{index-f15o1nhn.js → index-v4KC1K_V.js} +2 -2
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{kyc-BweeW6k9.js → kyc-kWxxF1vI.js} +1 -1
- package/dist/main.d.ts +7 -0
- package/dist/main.js +66 -59
- package/dist/memoTheme-BUUB1UEO.js +15 -0
- package/dist/{order-DmTHC7ZG.js → order-D-FBHreS.js} +1 -1
- package/dist/{pep-C5Ge-kU4.js → pep-D8bFjgpy.js} +19 -18
- package/dist/{radioButton-Bgy7Kxxo.js → radioButton-CBcYX40o.js} +8 -7
- package/dist/{stake-B150utJI.js → stake-mS8fdG8g.js} +1 -1
- package/dist/styles.module-B-t8vvWh.js +31 -0
- package/dist/styles.module-verVx4pE.js +8 -0
- package/dist/tokenRow-DBnoUm0z.js +186 -0
- package/dist/{tooltip-DGtrVEzU.js → tooltip-Dv3Lfsa2.js} +5 -4
- package/dist/{useThemeProps-lRuJRcRX.js → useThemeProps-DLhzJP-y.js} +1 -1
- package/dist/util/constants.d.ts +5 -0
- package/dist/util/constants.js +88 -83
- package/dist/{wallet-DDW5KCHp.js → wallet-BTc5u8j2.js} +1 -1
- package/package.json +1 -1
- package/dist/ArrowDropDown-BC_iEASy.js +0 -8
- package/dist/ArrowRight-rYkfGJuF.js +0 -8
- package/dist/CheckCircle-CyxKX1TY.js +0 -8
- package/dist/DefaultPropsProvider-B2njZVNv.js +0 -242
- package/dist/Select-Chubcks_.js +0 -3108
- package/dist/assets/iban.css +0 -1
- package/dist/assets/index11.css +0 -1
- package/dist/cryptoAssets-CzNDY1j6.js +0 -16
- package/dist/documents-CEeV8SyW.js +0 -569
- package/dist/iban-DRT7i0vb.js +0 -275
- package/dist/index-BB3__zW3.js +0 -644
- package/dist/styles.module-BFHktEw2.js +0 -30
- package/dist/styles.module-DJk7Pf0F.js +0 -10
- package/dist/tokenRow-X6vlp1LH.js +0 -198
package/dist/Select-Chubcks_.js
DELETED
|
@@ -1,3108 +0,0 @@
|
|
|
1
|
-
import * as d from "react";
|
|
2
|
-
import { g as le, j as fo, P as e, b as Me, q as jo } from "./createTheme-DmGCMO09.js";
|
|
3
|
-
import { c as re } from "./DefaultPropsProvider-CZh8M2jM.js";
|
|
4
|
-
import { u as Uo } from "./index-x9CniyQB.js";
|
|
5
|
-
import { g as ce, s as F, r as ue, m as Ee, u as me, c as se, b as Wo } from "./DefaultPropsProvider-B2njZVNv.js";
|
|
6
|
-
import { u as fe } from "./useSlot-DtSnboW7.js";
|
|
7
|
-
import { jsx as _, jsxs as _e } from "react/jsx-runtime";
|
|
8
|
-
import { i as mo, I as bo, r as ho, a as yo, b as vo, c as go, d as zo, F as Vo } from "./FilledInput-DrGeWgue.js";
|
|
9
|
-
import { g as Yo, M as Bo } from "./Modal-csf3Y8d2.js";
|
|
10
|
-
import { P as qo, i as Ko } from "./Paper-CnStNE24.js";
|
|
11
|
-
import { o as Ne, H as Ue } from "./HTMLElementType-BrQSV2FE.js";
|
|
12
|
-
import { o as We } from "./ownerWindow-CRgpWY6I.js";
|
|
13
|
-
import { d as Ho } from "./debounce-46wSf_lW.js";
|
|
14
|
-
import { G as Go } from "./Grow-B2p7O_1C.js";
|
|
15
|
-
import { r as Te } from "./refType-CaiGhRso.js";
|
|
16
|
-
import { c as Xo } from "./chainPropTypes-D9lkm76m.js";
|
|
17
|
-
import { e as Zo } from "./elementTypeAcceptingRef-CdmXUhJ8.js";
|
|
18
|
-
import { u as Jo } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
19
|
-
import { u as Ve } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
20
|
-
import { u as Qo } from "./useSlotProps-D62tWbb1.js";
|
|
21
|
-
import { f as Eo, i as et } from "./FormControl-DeeQCuu5.js";
|
|
22
|
-
import { u as to } from "./useControlled-nm4pBabJ.js";
|
|
23
|
-
import { u as ot } from "./useId-CK6Kn3Tn.js";
|
|
24
|
-
import { u as To } from "./useFormControl-CatNKXAi.js";
|
|
25
|
-
import { c as tt } from "./createSvgIcon-CH41ZVFw.js";
|
|
26
|
-
import { c as Oo } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
27
|
-
import { g as nt } from "./elementAcceptingRef-BbsmdE_3.js";
|
|
28
|
-
function rt(o, t) {
|
|
29
|
-
const r = o.charCodeAt(2);
|
|
30
|
-
return o[0] === "o" && o[1] === "n" && r >= 65 && r <= 90 && typeof t == "function";
|
|
31
|
-
}
|
|
32
|
-
function st(o, t) {
|
|
33
|
-
if (!o)
|
|
34
|
-
return t;
|
|
35
|
-
function r(l, i) {
|
|
36
|
-
const a = {};
|
|
37
|
-
return Object.keys(i).forEach((m) => {
|
|
38
|
-
rt(m, i[m]) && typeof l[m] == "function" && (a[m] = (...h) => {
|
|
39
|
-
l[m](...h), i[m](...h);
|
|
40
|
-
});
|
|
41
|
-
}), a;
|
|
42
|
-
}
|
|
43
|
-
if (typeof o == "function" || typeof t == "function")
|
|
44
|
-
return (l) => {
|
|
45
|
-
const i = typeof t == "function" ? t(l) : t, a = typeof o == "function" ? o({
|
|
46
|
-
...l,
|
|
47
|
-
...i
|
|
48
|
-
}) : o, m = re(l == null ? void 0 : l.className, i == null ? void 0 : i.className, a == null ? void 0 : a.className), h = r(a, i);
|
|
49
|
-
return {
|
|
50
|
-
...i,
|
|
51
|
-
...a,
|
|
52
|
-
...h,
|
|
53
|
-
...!!m && {
|
|
54
|
-
className: m
|
|
55
|
-
},
|
|
56
|
-
...(i == null ? void 0 : i.style) && (a == null ? void 0 : a.style) && {
|
|
57
|
-
style: {
|
|
58
|
-
...i.style,
|
|
59
|
-
...a.style
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
...(i == null ? void 0 : i.sx) && (a == null ? void 0 : a.sx) && {
|
|
63
|
-
sx: [...Array.isArray(i.sx) ? i.sx : [i.sx], ...Array.isArray(a.sx) ? a.sx : [a.sx]]
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
const s = t, p = r(o, s), c = re(s == null ? void 0 : s.className, o == null ? void 0 : o.className);
|
|
68
|
-
return {
|
|
69
|
-
...t,
|
|
70
|
-
...o,
|
|
71
|
-
...p,
|
|
72
|
-
...!!c && {
|
|
73
|
-
className: c
|
|
74
|
-
},
|
|
75
|
-
...(s == null ? void 0 : s.style) && (o == null ? void 0 : o.style) && {
|
|
76
|
-
style: {
|
|
77
|
-
...s.style,
|
|
78
|
-
...o.style
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
...(s == null ? void 0 : s.sx) && (o == null ? void 0 : o.sx) && {
|
|
82
|
-
sx: [...Array.isArray(s.sx) ? s.sx : [s.sx], ...Array.isArray(o.sx) ? o.sx : [o.sx]]
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
var ze = { exports: {} }, N = {};
|
|
87
|
-
/**
|
|
88
|
-
* @license React
|
|
89
|
-
* react-is.production.js
|
|
90
|
-
*
|
|
91
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the MIT license found in the
|
|
94
|
-
* LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/
|
|
96
|
-
var no;
|
|
97
|
-
function it() {
|
|
98
|
-
if (no) return N;
|
|
99
|
-
no = 1;
|
|
100
|
-
var o = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), w = Symbol.for("react.view_transition"), y = Symbol.for("react.client.reference");
|
|
101
|
-
function v(n) {
|
|
102
|
-
if (typeof n == "object" && n !== null) {
|
|
103
|
-
var T = n.$$typeof;
|
|
104
|
-
switch (T) {
|
|
105
|
-
case o:
|
|
106
|
-
switch (n = n.type, n) {
|
|
107
|
-
case r:
|
|
108
|
-
case p:
|
|
109
|
-
case s:
|
|
110
|
-
case a:
|
|
111
|
-
case m:
|
|
112
|
-
case w:
|
|
113
|
-
return n;
|
|
114
|
-
default:
|
|
115
|
-
switch (n = n && n.$$typeof, n) {
|
|
116
|
-
case l:
|
|
117
|
-
case i:
|
|
118
|
-
case E:
|
|
119
|
-
case h:
|
|
120
|
-
return n;
|
|
121
|
-
case c:
|
|
122
|
-
return n;
|
|
123
|
-
default:
|
|
124
|
-
return T;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
case t:
|
|
128
|
-
return T;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return N.ContextConsumer = c, N.ContextProvider = l, N.Element = o, N.ForwardRef = i, N.Fragment = r, N.Lazy = E, N.Memo = h, N.Portal = t, N.Profiler = p, N.StrictMode = s, N.Suspense = a, N.SuspenseList = m, N.isContextConsumer = function(n) {
|
|
133
|
-
return v(n) === c;
|
|
134
|
-
}, N.isContextProvider = function(n) {
|
|
135
|
-
return v(n) === l;
|
|
136
|
-
}, N.isElement = function(n) {
|
|
137
|
-
return typeof n == "object" && n !== null && n.$$typeof === o;
|
|
138
|
-
}, N.isForwardRef = function(n) {
|
|
139
|
-
return v(n) === i;
|
|
140
|
-
}, N.isFragment = function(n) {
|
|
141
|
-
return v(n) === r;
|
|
142
|
-
}, N.isLazy = function(n) {
|
|
143
|
-
return v(n) === E;
|
|
144
|
-
}, N.isMemo = function(n) {
|
|
145
|
-
return v(n) === h;
|
|
146
|
-
}, N.isPortal = function(n) {
|
|
147
|
-
return v(n) === t;
|
|
148
|
-
}, N.isProfiler = function(n) {
|
|
149
|
-
return v(n) === p;
|
|
150
|
-
}, N.isStrictMode = function(n) {
|
|
151
|
-
return v(n) === s;
|
|
152
|
-
}, N.isSuspense = function(n) {
|
|
153
|
-
return v(n) === a;
|
|
154
|
-
}, N.isSuspenseList = function(n) {
|
|
155
|
-
return v(n) === m;
|
|
156
|
-
}, N.isValidElementType = function(n) {
|
|
157
|
-
return typeof n == "string" || typeof n == "function" || n === r || n === p || n === s || n === a || n === m || typeof n == "object" && n !== null && (n.$$typeof === E || n.$$typeof === h || n.$$typeof === l || n.$$typeof === c || n.$$typeof === i || n.$$typeof === y || n.getModuleId !== void 0);
|
|
158
|
-
}, N.typeOf = v, N;
|
|
159
|
-
}
|
|
160
|
-
var M = {};
|
|
161
|
-
/**
|
|
162
|
-
* @license React
|
|
163
|
-
* react-is.development.js
|
|
164
|
-
*
|
|
165
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the MIT license found in the
|
|
168
|
-
* LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/
|
|
170
|
-
var ro;
|
|
171
|
-
function at() {
|
|
172
|
-
return ro || (ro = 1, process.env.NODE_ENV !== "production" && function() {
|
|
173
|
-
function o(n) {
|
|
174
|
-
if (typeof n == "object" && n !== null) {
|
|
175
|
-
var T = n.$$typeof;
|
|
176
|
-
switch (T) {
|
|
177
|
-
case t:
|
|
178
|
-
switch (n = n.type, n) {
|
|
179
|
-
case s:
|
|
180
|
-
case c:
|
|
181
|
-
case p:
|
|
182
|
-
case m:
|
|
183
|
-
case h:
|
|
184
|
-
case y:
|
|
185
|
-
return n;
|
|
186
|
-
default:
|
|
187
|
-
switch (n = n && n.$$typeof, n) {
|
|
188
|
-
case i:
|
|
189
|
-
case a:
|
|
190
|
-
case w:
|
|
191
|
-
case E:
|
|
192
|
-
return n;
|
|
193
|
-
case l:
|
|
194
|
-
return n;
|
|
195
|
-
default:
|
|
196
|
-
return T;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
case r:
|
|
200
|
-
return T;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), i = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), y = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
205
|
-
M.ContextConsumer = l, M.ContextProvider = i, M.Element = t, M.ForwardRef = a, M.Fragment = s, M.Lazy = w, M.Memo = E, M.Portal = r, M.Profiler = c, M.StrictMode = p, M.Suspense = m, M.SuspenseList = h, M.isContextConsumer = function(n) {
|
|
206
|
-
return o(n) === l;
|
|
207
|
-
}, M.isContextProvider = function(n) {
|
|
208
|
-
return o(n) === i;
|
|
209
|
-
}, M.isElement = function(n) {
|
|
210
|
-
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
211
|
-
}, M.isForwardRef = function(n) {
|
|
212
|
-
return o(n) === a;
|
|
213
|
-
}, M.isFragment = function(n) {
|
|
214
|
-
return o(n) === s;
|
|
215
|
-
}, M.isLazy = function(n) {
|
|
216
|
-
return o(n) === w;
|
|
217
|
-
}, M.isMemo = function(n) {
|
|
218
|
-
return o(n) === E;
|
|
219
|
-
}, M.isPortal = function(n) {
|
|
220
|
-
return o(n) === r;
|
|
221
|
-
}, M.isProfiler = function(n) {
|
|
222
|
-
return o(n) === c;
|
|
223
|
-
}, M.isStrictMode = function(n) {
|
|
224
|
-
return o(n) === p;
|
|
225
|
-
}, M.isSuspense = function(n) {
|
|
226
|
-
return o(n) === m;
|
|
227
|
-
}, M.isSuspenseList = function(n) {
|
|
228
|
-
return o(n) === h;
|
|
229
|
-
}, M.isValidElementType = function(n) {
|
|
230
|
-
return typeof n == "string" || typeof n == "function" || n === s || n === c || n === p || n === m || n === h || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === E || n.$$typeof === i || n.$$typeof === l || n.$$typeof === a || n.$$typeof === v || n.getModuleId !== void 0);
|
|
231
|
-
}, M.typeOf = o;
|
|
232
|
-
}()), M;
|
|
233
|
-
}
|
|
234
|
-
process.env.NODE_ENV === "production" ? ze.exports = it() : ze.exports = at();
|
|
235
|
-
var Ye = ze.exports;
|
|
236
|
-
function lt(o) {
|
|
237
|
-
return le("MuiInput", o);
|
|
238
|
-
}
|
|
239
|
-
const he = {
|
|
240
|
-
...mo,
|
|
241
|
-
...ce("MuiInput", ["root", "underline", "input"])
|
|
242
|
-
};
|
|
243
|
-
function ct(o) {
|
|
244
|
-
return le("MuiOutlinedInput", o);
|
|
245
|
-
}
|
|
246
|
-
const X = {
|
|
247
|
-
...mo,
|
|
248
|
-
...ce("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
249
|
-
}, ut = tt(/* @__PURE__ */ _("path", {
|
|
250
|
-
d: "M7 10l5 5 5-5z"
|
|
251
|
-
}), "ArrowDropDown"), pt = (o) => {
|
|
252
|
-
const {
|
|
253
|
-
classes: t,
|
|
254
|
-
disableUnderline: r
|
|
255
|
-
} = o, p = se({
|
|
256
|
-
root: ["root", !r && "underline"],
|
|
257
|
-
input: ["input"]
|
|
258
|
-
}, lt, t);
|
|
259
|
-
return {
|
|
260
|
-
...t,
|
|
261
|
-
// forward classes to the InputBase
|
|
262
|
-
...p
|
|
263
|
-
};
|
|
264
|
-
}, dt = F(bo, {
|
|
265
|
-
shouldForwardProp: (o) => ue(o) || o === "classes",
|
|
266
|
-
name: "MuiInput",
|
|
267
|
-
slot: "Root",
|
|
268
|
-
overridesResolver: (o, t) => {
|
|
269
|
-
const {
|
|
270
|
-
ownerState: r
|
|
271
|
-
} = o;
|
|
272
|
-
return [...ho(o, t), !r.disableUnderline && t.underline];
|
|
273
|
-
}
|
|
274
|
-
})(Ee(({
|
|
275
|
-
theme: o
|
|
276
|
-
}) => {
|
|
277
|
-
let r = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
278
|
-
return o.vars && (r = `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`), {
|
|
279
|
-
position: "relative",
|
|
280
|
-
variants: [{
|
|
281
|
-
props: ({
|
|
282
|
-
ownerState: s
|
|
283
|
-
}) => s.formControl,
|
|
284
|
-
style: {
|
|
285
|
-
"label + &": {
|
|
286
|
-
marginTop: 16
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}, {
|
|
290
|
-
props: ({
|
|
291
|
-
ownerState: s
|
|
292
|
-
}) => !s.disableUnderline,
|
|
293
|
-
style: {
|
|
294
|
-
"&::after": {
|
|
295
|
-
left: 0,
|
|
296
|
-
bottom: 0,
|
|
297
|
-
content: '""',
|
|
298
|
-
position: "absolute",
|
|
299
|
-
right: 0,
|
|
300
|
-
transform: "scaleX(0)",
|
|
301
|
-
transition: o.transitions.create("transform", {
|
|
302
|
-
duration: o.transitions.duration.shorter,
|
|
303
|
-
easing: o.transitions.easing.easeOut
|
|
304
|
-
}),
|
|
305
|
-
pointerEvents: "none"
|
|
306
|
-
// Transparent to the hover style.
|
|
307
|
-
},
|
|
308
|
-
[`&.${he.focused}:after`]: {
|
|
309
|
-
// translateX(0) is a workaround for Safari transform scale bug
|
|
310
|
-
// See https://github.com/mui/material-ui/issues/31766
|
|
311
|
-
transform: "scaleX(1) translateX(0)"
|
|
312
|
-
},
|
|
313
|
-
[`&.${he.error}`]: {
|
|
314
|
-
"&::before, &::after": {
|
|
315
|
-
borderBottomColor: (o.vars || o).palette.error.main
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
"&::before": {
|
|
319
|
-
borderBottom: `1px solid ${r}`,
|
|
320
|
-
left: 0,
|
|
321
|
-
bottom: 0,
|
|
322
|
-
content: '"\\00a0"',
|
|
323
|
-
position: "absolute",
|
|
324
|
-
right: 0,
|
|
325
|
-
transition: o.transitions.create("border-bottom-color", {
|
|
326
|
-
duration: o.transitions.duration.shorter
|
|
327
|
-
}),
|
|
328
|
-
pointerEvents: "none"
|
|
329
|
-
// Transparent to the hover style.
|
|
330
|
-
},
|
|
331
|
-
[`&:hover:not(.${he.disabled}, .${he.error}):before`]: {
|
|
332
|
-
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
333
|
-
// Reset on touch devices, it doesn't add specificity
|
|
334
|
-
"@media (hover: none)": {
|
|
335
|
-
borderBottom: `1px solid ${r}`
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
[`&.${he.disabled}:before`]: {
|
|
339
|
-
borderBottomStyle: "dotted"
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}, ...Object.entries(o.palette).filter(Oo()).map(([s]) => ({
|
|
343
|
-
props: {
|
|
344
|
-
color: s,
|
|
345
|
-
disableUnderline: !1
|
|
346
|
-
},
|
|
347
|
-
style: {
|
|
348
|
-
"&::after": {
|
|
349
|
-
borderBottom: `2px solid ${(o.vars || o).palette[s].main}`
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}))]
|
|
353
|
-
};
|
|
354
|
-
})), ft = F(yo, {
|
|
355
|
-
name: "MuiInput",
|
|
356
|
-
slot: "Input",
|
|
357
|
-
overridesResolver: vo
|
|
358
|
-
})({}), Be = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
359
|
-
const s = me({
|
|
360
|
-
props: t,
|
|
361
|
-
name: "MuiInput"
|
|
362
|
-
}), {
|
|
363
|
-
disableUnderline: p = !1,
|
|
364
|
-
components: c = {},
|
|
365
|
-
componentsProps: l,
|
|
366
|
-
fullWidth: i = !1,
|
|
367
|
-
inputComponent: a = "input",
|
|
368
|
-
multiline: m = !1,
|
|
369
|
-
slotProps: h,
|
|
370
|
-
slots: E = {},
|
|
371
|
-
type: w = "text",
|
|
372
|
-
...y
|
|
373
|
-
} = s, v = pt(s), T = {
|
|
374
|
-
root: {
|
|
375
|
-
ownerState: {
|
|
376
|
-
disableUnderline: p
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}, g = h ?? l ? fo(h ?? l, T) : T, P = E.root ?? c.Root ?? dt, f = E.input ?? c.Input ?? ft;
|
|
380
|
-
return /* @__PURE__ */ _(go, {
|
|
381
|
-
slots: {
|
|
382
|
-
root: P,
|
|
383
|
-
input: f
|
|
384
|
-
},
|
|
385
|
-
slotProps: g,
|
|
386
|
-
fullWidth: i,
|
|
387
|
-
inputComponent: a,
|
|
388
|
-
multiline: m,
|
|
389
|
-
ref: r,
|
|
390
|
-
type: w,
|
|
391
|
-
...y,
|
|
392
|
-
classes: v
|
|
393
|
-
});
|
|
394
|
-
});
|
|
395
|
-
process.env.NODE_ENV !== "production" && (Be.propTypes = {
|
|
396
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
397
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
398
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
399
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
400
|
-
/**
|
|
401
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
402
|
-
* The name can be confusing, as it's more like an autofill.
|
|
403
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
404
|
-
*/
|
|
405
|
-
autoComplete: e.string,
|
|
406
|
-
/**
|
|
407
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
408
|
-
*/
|
|
409
|
-
autoFocus: e.bool,
|
|
410
|
-
/**
|
|
411
|
-
* Override or extend the styles applied to the component.
|
|
412
|
-
*/
|
|
413
|
-
classes: e.object,
|
|
414
|
-
/**
|
|
415
|
-
* The color of the component.
|
|
416
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
417
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
418
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
419
|
-
*/
|
|
420
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
421
|
-
/**
|
|
422
|
-
* The components used for each slot inside.
|
|
423
|
-
*
|
|
424
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
425
|
-
*
|
|
426
|
-
* @default {}
|
|
427
|
-
*/
|
|
428
|
-
components: e.shape({
|
|
429
|
-
Input: e.elementType,
|
|
430
|
-
Root: e.elementType
|
|
431
|
-
}),
|
|
432
|
-
/**
|
|
433
|
-
* The extra props for the slot components.
|
|
434
|
-
* You can override the existing props or add new ones.
|
|
435
|
-
*
|
|
436
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
437
|
-
*
|
|
438
|
-
* @default {}
|
|
439
|
-
*/
|
|
440
|
-
componentsProps: e.shape({
|
|
441
|
-
input: e.object,
|
|
442
|
-
root: e.object
|
|
443
|
-
}),
|
|
444
|
-
/**
|
|
445
|
-
* The default value. Use when the component is not controlled.
|
|
446
|
-
*/
|
|
447
|
-
defaultValue: e.any,
|
|
448
|
-
/**
|
|
449
|
-
* If `true`, the component is disabled.
|
|
450
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
451
|
-
*/
|
|
452
|
-
disabled: e.bool,
|
|
453
|
-
/**
|
|
454
|
-
* If `true`, the `input` will not have an underline.
|
|
455
|
-
* @default false
|
|
456
|
-
*/
|
|
457
|
-
disableUnderline: e.bool,
|
|
458
|
-
/**
|
|
459
|
-
* End `InputAdornment` for this component.
|
|
460
|
-
*/
|
|
461
|
-
endAdornment: e.node,
|
|
462
|
-
/**
|
|
463
|
-
* If `true`, the `input` will indicate an error.
|
|
464
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
465
|
-
*/
|
|
466
|
-
error: e.bool,
|
|
467
|
-
/**
|
|
468
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
469
|
-
* @default false
|
|
470
|
-
*/
|
|
471
|
-
fullWidth: e.bool,
|
|
472
|
-
/**
|
|
473
|
-
* The id of the `input` element.
|
|
474
|
-
*/
|
|
475
|
-
id: e.string,
|
|
476
|
-
/**
|
|
477
|
-
* The component used for the `input` element.
|
|
478
|
-
* Either a string to use a HTML element or a component.
|
|
479
|
-
* @default 'input'
|
|
480
|
-
*/
|
|
481
|
-
inputComponent: e.elementType,
|
|
482
|
-
/**
|
|
483
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
484
|
-
* @default {}
|
|
485
|
-
*/
|
|
486
|
-
inputProps: e.object,
|
|
487
|
-
/**
|
|
488
|
-
* Pass a ref to the `input` element.
|
|
489
|
-
*/
|
|
490
|
-
inputRef: Te,
|
|
491
|
-
/**
|
|
492
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
493
|
-
* FormControl.
|
|
494
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
495
|
-
*/
|
|
496
|
-
margin: e.oneOf(["dense", "none"]),
|
|
497
|
-
/**
|
|
498
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
499
|
-
*/
|
|
500
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
501
|
-
/**
|
|
502
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
503
|
-
*/
|
|
504
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
505
|
-
/**
|
|
506
|
-
* If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
|
|
507
|
-
* @default false
|
|
508
|
-
*/
|
|
509
|
-
multiline: e.bool,
|
|
510
|
-
/**
|
|
511
|
-
* Name attribute of the `input` element.
|
|
512
|
-
*/
|
|
513
|
-
name: e.string,
|
|
514
|
-
/**
|
|
515
|
-
* Callback fired when the value is changed.
|
|
516
|
-
*
|
|
517
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
518
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
519
|
-
*/
|
|
520
|
-
onChange: e.func,
|
|
521
|
-
/**
|
|
522
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
523
|
-
*/
|
|
524
|
-
placeholder: e.string,
|
|
525
|
-
/**
|
|
526
|
-
* It prevents the user from changing the value of the field
|
|
527
|
-
* (not from interacting with the field).
|
|
528
|
-
*/
|
|
529
|
-
readOnly: e.bool,
|
|
530
|
-
/**
|
|
531
|
-
* If `true`, the `input` element is required.
|
|
532
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
533
|
-
*/
|
|
534
|
-
required: e.bool,
|
|
535
|
-
/**
|
|
536
|
-
* Number of rows to display when multiline option is set to true.
|
|
537
|
-
*/
|
|
538
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
539
|
-
/**
|
|
540
|
-
* The extra props for the slot components.
|
|
541
|
-
* You can override the existing props or add new ones.
|
|
542
|
-
*
|
|
543
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
544
|
-
*
|
|
545
|
-
* @default {}
|
|
546
|
-
*/
|
|
547
|
-
slotProps: e.shape({
|
|
548
|
-
input: e.object,
|
|
549
|
-
root: e.object
|
|
550
|
-
}),
|
|
551
|
-
/**
|
|
552
|
-
* The components used for each slot inside.
|
|
553
|
-
*
|
|
554
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
555
|
-
*
|
|
556
|
-
* @default {}
|
|
557
|
-
*/
|
|
558
|
-
slots: e.shape({
|
|
559
|
-
input: e.elementType,
|
|
560
|
-
root: e.elementType
|
|
561
|
-
}),
|
|
562
|
-
/**
|
|
563
|
-
* Start `InputAdornment` for this component.
|
|
564
|
-
*/
|
|
565
|
-
startAdornment: e.node,
|
|
566
|
-
/**
|
|
567
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
568
|
-
*/
|
|
569
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
570
|
-
/**
|
|
571
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
|
|
572
|
-
* @default 'text'
|
|
573
|
-
*/
|
|
574
|
-
type: e.string,
|
|
575
|
-
/**
|
|
576
|
-
* The value of the `input` element, required for a controlled component.
|
|
577
|
-
*/
|
|
578
|
-
value: e.any
|
|
579
|
-
});
|
|
580
|
-
Be.muiName = "Input";
|
|
581
|
-
const Co = /* @__PURE__ */ d.createContext({});
|
|
582
|
-
process.env.NODE_ENV !== "production" && (Co.displayName = "ListContext");
|
|
583
|
-
function mt(o) {
|
|
584
|
-
return le("MuiList", o);
|
|
585
|
-
}
|
|
586
|
-
ce("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
587
|
-
const bt = (o) => {
|
|
588
|
-
const {
|
|
589
|
-
classes: t,
|
|
590
|
-
disablePadding: r,
|
|
591
|
-
dense: s,
|
|
592
|
-
subheader: p
|
|
593
|
-
} = o;
|
|
594
|
-
return se({
|
|
595
|
-
root: ["root", !r && "padding", s && "dense", p && "subheader"]
|
|
596
|
-
}, mt, t);
|
|
597
|
-
}, ht = F("ul", {
|
|
598
|
-
name: "MuiList",
|
|
599
|
-
slot: "Root",
|
|
600
|
-
overridesResolver: (o, t) => {
|
|
601
|
-
const {
|
|
602
|
-
ownerState: r
|
|
603
|
-
} = o;
|
|
604
|
-
return [t.root, !r.disablePadding && t.padding, r.dense && t.dense, r.subheader && t.subheader];
|
|
605
|
-
}
|
|
606
|
-
})({
|
|
607
|
-
listStyle: "none",
|
|
608
|
-
margin: 0,
|
|
609
|
-
padding: 0,
|
|
610
|
-
position: "relative",
|
|
611
|
-
variants: [{
|
|
612
|
-
props: ({
|
|
613
|
-
ownerState: o
|
|
614
|
-
}) => !o.disablePadding,
|
|
615
|
-
style: {
|
|
616
|
-
paddingTop: 8,
|
|
617
|
-
paddingBottom: 8
|
|
618
|
-
}
|
|
619
|
-
}, {
|
|
620
|
-
props: ({
|
|
621
|
-
ownerState: o
|
|
622
|
-
}) => o.subheader,
|
|
623
|
-
style: {
|
|
624
|
-
paddingTop: 0
|
|
625
|
-
}
|
|
626
|
-
}]
|
|
627
|
-
}), Ro = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
628
|
-
const s = me({
|
|
629
|
-
props: t,
|
|
630
|
-
name: "MuiList"
|
|
631
|
-
}), {
|
|
632
|
-
children: p,
|
|
633
|
-
className: c,
|
|
634
|
-
component: l = "ul",
|
|
635
|
-
dense: i = !1,
|
|
636
|
-
disablePadding: a = !1,
|
|
637
|
-
subheader: m,
|
|
638
|
-
...h
|
|
639
|
-
} = s, E = d.useMemo(() => ({
|
|
640
|
-
dense: i
|
|
641
|
-
}), [i]), w = {
|
|
642
|
-
...s,
|
|
643
|
-
component: l,
|
|
644
|
-
dense: i,
|
|
645
|
-
disablePadding: a
|
|
646
|
-
}, y = bt(w);
|
|
647
|
-
return /* @__PURE__ */ _(Co.Provider, {
|
|
648
|
-
value: E,
|
|
649
|
-
children: /* @__PURE__ */ _e(ht, {
|
|
650
|
-
as: l,
|
|
651
|
-
className: re(y.root, c),
|
|
652
|
-
ref: r,
|
|
653
|
-
ownerState: w,
|
|
654
|
-
...h,
|
|
655
|
-
children: [m, p]
|
|
656
|
-
})
|
|
657
|
-
});
|
|
658
|
-
});
|
|
659
|
-
process.env.NODE_ENV !== "production" && (Ro.propTypes = {
|
|
660
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
661
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
662
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
663
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
664
|
-
/**
|
|
665
|
-
* The content of the component.
|
|
666
|
-
*/
|
|
667
|
-
children: e.node,
|
|
668
|
-
/**
|
|
669
|
-
* Override or extend the styles applied to the component.
|
|
670
|
-
*/
|
|
671
|
-
classes: e.object,
|
|
672
|
-
/**
|
|
673
|
-
* @ignore
|
|
674
|
-
*/
|
|
675
|
-
className: e.string,
|
|
676
|
-
/**
|
|
677
|
-
* The component used for the root node.
|
|
678
|
-
* Either a string to use a HTML element or a component.
|
|
679
|
-
*/
|
|
680
|
-
component: e.elementType,
|
|
681
|
-
/**
|
|
682
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
683
|
-
* the list and list items.
|
|
684
|
-
* The prop is available to descendant components as the `dense` context.
|
|
685
|
-
* @default false
|
|
686
|
-
*/
|
|
687
|
-
dense: e.bool,
|
|
688
|
-
/**
|
|
689
|
-
* If `true`, vertical padding is removed from the list.
|
|
690
|
-
* @default false
|
|
691
|
-
*/
|
|
692
|
-
disablePadding: e.bool,
|
|
693
|
-
/**
|
|
694
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
695
|
-
*/
|
|
696
|
-
subheader: e.node,
|
|
697
|
-
/**
|
|
698
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
699
|
-
*/
|
|
700
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
701
|
-
});
|
|
702
|
-
function je(o, t, r) {
|
|
703
|
-
return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : r ? null : o.firstChild;
|
|
704
|
-
}
|
|
705
|
-
function so(o, t, r) {
|
|
706
|
-
return o === t ? r ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : r ? null : o.lastChild;
|
|
707
|
-
}
|
|
708
|
-
function Po(o, t) {
|
|
709
|
-
if (t === void 0)
|
|
710
|
-
return !0;
|
|
711
|
-
let r = o.innerText;
|
|
712
|
-
return r === void 0 && (r = o.textContent), r = r.trim().toLowerCase(), r.length === 0 ? !1 : t.repeating ? r[0] === t.keys[0] : r.startsWith(t.keys.join(""));
|
|
713
|
-
}
|
|
714
|
-
function ye(o, t, r, s, p, c) {
|
|
715
|
-
let l = !1, i = p(o, t, t ? r : !1);
|
|
716
|
-
for (; i; ) {
|
|
717
|
-
if (i === o.firstChild) {
|
|
718
|
-
if (l)
|
|
719
|
-
return !1;
|
|
720
|
-
l = !0;
|
|
721
|
-
}
|
|
722
|
-
const a = s ? !1 : i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
723
|
-
if (!i.hasAttribute("tabindex") || !Po(i, c) || a)
|
|
724
|
-
i = p(o, i, r);
|
|
725
|
-
else
|
|
726
|
-
return i.focus(), !0;
|
|
727
|
-
}
|
|
728
|
-
return !1;
|
|
729
|
-
}
|
|
730
|
-
const So = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
731
|
-
const {
|
|
732
|
-
// private
|
|
733
|
-
// eslint-disable-next-line react/prop-types
|
|
734
|
-
actions: s,
|
|
735
|
-
autoFocus: p = !1,
|
|
736
|
-
autoFocusItem: c = !1,
|
|
737
|
-
children: l,
|
|
738
|
-
className: i,
|
|
739
|
-
disabledItemsFocusable: a = !1,
|
|
740
|
-
disableListWrap: m = !1,
|
|
741
|
-
onKeyDown: h,
|
|
742
|
-
variant: E = "selectedMenu",
|
|
743
|
-
...w
|
|
744
|
-
} = t, y = d.useRef(null), v = d.useRef({
|
|
745
|
-
keys: [],
|
|
746
|
-
repeating: !0,
|
|
747
|
-
previousKeyMatched: !0,
|
|
748
|
-
lastTime: null
|
|
749
|
-
});
|
|
750
|
-
Jo(() => {
|
|
751
|
-
p && y.current.focus();
|
|
752
|
-
}, [p]), d.useImperativeHandle(s, () => ({
|
|
753
|
-
adjustStyleForScrollbar: (f, {
|
|
754
|
-
direction: R
|
|
755
|
-
}) => {
|
|
756
|
-
const O = !y.current.style.width;
|
|
757
|
-
if (f.clientHeight < y.current.clientHeight && O) {
|
|
758
|
-
const $ = `${Yo(We(f))}px`;
|
|
759
|
-
y.current.style[R === "rtl" ? "paddingLeft" : "paddingRight"] = $, y.current.style.width = `calc(100% + ${$})`;
|
|
760
|
-
}
|
|
761
|
-
return y.current;
|
|
762
|
-
}
|
|
763
|
-
}), []);
|
|
764
|
-
const n = (f) => {
|
|
765
|
-
const R = y.current, O = f.key;
|
|
766
|
-
if (f.ctrlKey || f.metaKey || f.altKey) {
|
|
767
|
-
h && h(f);
|
|
768
|
-
return;
|
|
769
|
-
}
|
|
770
|
-
const B = Ne(R).activeElement;
|
|
771
|
-
if (O === "ArrowDown")
|
|
772
|
-
f.preventDefault(), ye(R, B, m, a, je);
|
|
773
|
-
else if (O === "ArrowUp")
|
|
774
|
-
f.preventDefault(), ye(R, B, m, a, so);
|
|
775
|
-
else if (O === "Home")
|
|
776
|
-
f.preventDefault(), ye(R, null, m, a, je);
|
|
777
|
-
else if (O === "End")
|
|
778
|
-
f.preventDefault(), ye(R, null, m, a, so);
|
|
779
|
-
else if (O.length === 1) {
|
|
780
|
-
const I = v.current, k = O.toLowerCase(), K = performance.now();
|
|
781
|
-
I.keys.length > 0 && (K - I.lastTime > 500 ? (I.keys = [], I.repeating = !0, I.previousKeyMatched = !0) : I.repeating && k !== I.keys[0] && (I.repeating = !1)), I.lastTime = K, I.keys.push(k);
|
|
782
|
-
const W = B && !I.repeating && Po(B, I);
|
|
783
|
-
I.previousKeyMatched && (W || ye(R, B, !1, a, je, I)) ? f.preventDefault() : I.previousKeyMatched = !1;
|
|
784
|
-
}
|
|
785
|
-
h && h(f);
|
|
786
|
-
}, T = Ve(y, r);
|
|
787
|
-
let g = -1;
|
|
788
|
-
d.Children.forEach(l, (f, R) => {
|
|
789
|
-
if (!/* @__PURE__ */ d.isValidElement(f)) {
|
|
790
|
-
g === R && (g += 1, g >= l.length && (g = -1));
|
|
791
|
-
return;
|
|
792
|
-
}
|
|
793
|
-
process.env.NODE_ENV !== "production" && Ye.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
794
|
-
`)), f.props.disabled || (E === "selectedMenu" && f.props.selected || g === -1) && (g = R), g === R && (f.props.disabled || f.props.muiSkipListHighlight || f.type.muiSkipListHighlight) && (g += 1, g >= l.length && (g = -1));
|
|
795
|
-
});
|
|
796
|
-
const P = d.Children.map(l, (f, R) => {
|
|
797
|
-
if (R === g) {
|
|
798
|
-
const O = {};
|
|
799
|
-
return c && (O.autoFocus = !0), f.props.tabIndex === void 0 && E === "selectedMenu" && (O.tabIndex = 0), /* @__PURE__ */ d.cloneElement(f, O);
|
|
800
|
-
}
|
|
801
|
-
return f;
|
|
802
|
-
});
|
|
803
|
-
return /* @__PURE__ */ _(Ro, {
|
|
804
|
-
role: "menu",
|
|
805
|
-
ref: T,
|
|
806
|
-
className: i,
|
|
807
|
-
onKeyDown: n,
|
|
808
|
-
tabIndex: p ? 0 : -1,
|
|
809
|
-
...w,
|
|
810
|
-
children: P
|
|
811
|
-
});
|
|
812
|
-
});
|
|
813
|
-
process.env.NODE_ENV !== "production" && (So.propTypes = {
|
|
814
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
815
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
816
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
817
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
818
|
-
/**
|
|
819
|
-
* If `true`, will focus the `[role="menu"]` container and move into tab order.
|
|
820
|
-
* @default false
|
|
821
|
-
*/
|
|
822
|
-
autoFocus: e.bool,
|
|
823
|
-
/**
|
|
824
|
-
* If `true`, will focus the first menuitem if `variant="menu"` or selected item
|
|
825
|
-
* if `variant="selectedMenu"`.
|
|
826
|
-
* @default false
|
|
827
|
-
*/
|
|
828
|
-
autoFocusItem: e.bool,
|
|
829
|
-
/**
|
|
830
|
-
* MenuList contents, normally `MenuItem`s.
|
|
831
|
-
*/
|
|
832
|
-
children: e.node,
|
|
833
|
-
/**
|
|
834
|
-
* @ignore
|
|
835
|
-
*/
|
|
836
|
-
className: e.string,
|
|
837
|
-
/**
|
|
838
|
-
* If `true`, will allow focus on disabled items.
|
|
839
|
-
* @default false
|
|
840
|
-
*/
|
|
841
|
-
disabledItemsFocusable: e.bool,
|
|
842
|
-
/**
|
|
843
|
-
* If `true`, the menu items will not wrap focus.
|
|
844
|
-
* @default false
|
|
845
|
-
*/
|
|
846
|
-
disableListWrap: e.bool,
|
|
847
|
-
/**
|
|
848
|
-
* @ignore
|
|
849
|
-
*/
|
|
850
|
-
onKeyDown: e.func,
|
|
851
|
-
/**
|
|
852
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
853
|
-
* and the vertical alignment relative to the anchor element.
|
|
854
|
-
* @default 'selectedMenu'
|
|
855
|
-
*/
|
|
856
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
857
|
-
});
|
|
858
|
-
function yt(o) {
|
|
859
|
-
return le("MuiPopover", o);
|
|
860
|
-
}
|
|
861
|
-
ce("MuiPopover", ["root", "paper"]);
|
|
862
|
-
function io(o, t) {
|
|
863
|
-
let r = 0;
|
|
864
|
-
return typeof t == "number" ? r = t : t === "center" ? r = o.height / 2 : t === "bottom" && (r = o.height), r;
|
|
865
|
-
}
|
|
866
|
-
function ao(o, t) {
|
|
867
|
-
let r = 0;
|
|
868
|
-
return typeof t == "number" ? r = t : t === "center" ? r = o.width / 2 : t === "right" && (r = o.width), r;
|
|
869
|
-
}
|
|
870
|
-
function lo(o) {
|
|
871
|
-
return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
|
|
872
|
-
}
|
|
873
|
-
function ge(o) {
|
|
874
|
-
return typeof o == "function" ? o() : o;
|
|
875
|
-
}
|
|
876
|
-
const vt = (o) => {
|
|
877
|
-
const {
|
|
878
|
-
classes: t
|
|
879
|
-
} = o;
|
|
880
|
-
return se({
|
|
881
|
-
root: ["root"],
|
|
882
|
-
paper: ["paper"]
|
|
883
|
-
}, yt, t);
|
|
884
|
-
}, gt = F(Bo, {
|
|
885
|
-
name: "MuiPopover",
|
|
886
|
-
slot: "Root"
|
|
887
|
-
})({}), wo = F(qo, {
|
|
888
|
-
name: "MuiPopover",
|
|
889
|
-
slot: "Paper"
|
|
890
|
-
})({
|
|
891
|
-
position: "absolute",
|
|
892
|
-
overflowY: "auto",
|
|
893
|
-
overflowX: "hidden",
|
|
894
|
-
// So we see the popover when it's empty.
|
|
895
|
-
// It's most likely on issue on userland.
|
|
896
|
-
minWidth: 16,
|
|
897
|
-
minHeight: 16,
|
|
898
|
-
maxWidth: "calc(100% - 32px)",
|
|
899
|
-
maxHeight: "calc(100% - 32px)",
|
|
900
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
901
|
-
outline: 0
|
|
902
|
-
}), Io = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
903
|
-
const s = me({
|
|
904
|
-
props: t,
|
|
905
|
-
name: "MuiPopover"
|
|
906
|
-
}), {
|
|
907
|
-
action: p,
|
|
908
|
-
anchorEl: c,
|
|
909
|
-
anchorOrigin: l = {
|
|
910
|
-
vertical: "top",
|
|
911
|
-
horizontal: "left"
|
|
912
|
-
},
|
|
913
|
-
anchorPosition: i,
|
|
914
|
-
anchorReference: a = "anchorEl",
|
|
915
|
-
children: m,
|
|
916
|
-
className: h,
|
|
917
|
-
container: E,
|
|
918
|
-
elevation: w = 8,
|
|
919
|
-
marginThreshold: y = 16,
|
|
920
|
-
open: v,
|
|
921
|
-
PaperProps: n = {},
|
|
922
|
-
// TODO: remove in v7
|
|
923
|
-
slots: T = {},
|
|
924
|
-
slotProps: g = {},
|
|
925
|
-
transformOrigin: P = {
|
|
926
|
-
vertical: "top",
|
|
927
|
-
horizontal: "left"
|
|
928
|
-
},
|
|
929
|
-
TransitionComponent: f,
|
|
930
|
-
// TODO: remove in v7
|
|
931
|
-
transitionDuration: R = "auto",
|
|
932
|
-
TransitionProps: O = {},
|
|
933
|
-
// TODO: remove in v7
|
|
934
|
-
disableScrollLock: $ = !1,
|
|
935
|
-
...B
|
|
936
|
-
} = s, I = d.useRef(), k = {
|
|
937
|
-
...s,
|
|
938
|
-
anchorOrigin: l,
|
|
939
|
-
anchorReference: a,
|
|
940
|
-
elevation: w,
|
|
941
|
-
marginThreshold: y,
|
|
942
|
-
transformOrigin: P,
|
|
943
|
-
TransitionComponent: f,
|
|
944
|
-
transitionDuration: R,
|
|
945
|
-
TransitionProps: O
|
|
946
|
-
}, K = vt(k), W = d.useCallback(() => {
|
|
947
|
-
if (a === "anchorPosition")
|
|
948
|
-
return process.env.NODE_ENV !== "production" && (i || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), i;
|
|
949
|
-
const S = ge(c), x = S && S.nodeType === 1 ? S : Ne(I.current).body, A = x.getBoundingClientRect();
|
|
950
|
-
if (process.env.NODE_ENV !== "production") {
|
|
951
|
-
const U = x.getBoundingClientRect();
|
|
952
|
-
process.env.NODE_ENV !== "test" && U.top === 0 && U.left === 0 && U.right === 0 && U.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(`
|
|
953
|
-
`));
|
|
954
|
-
}
|
|
955
|
-
return {
|
|
956
|
-
top: A.top + io(A, l.vertical),
|
|
957
|
-
left: A.left + ao(A, l.horizontal)
|
|
958
|
-
};
|
|
959
|
-
}, [c, l.horizontal, l.vertical, i, a]), z = d.useCallback((S) => ({
|
|
960
|
-
vertical: io(S, P.vertical),
|
|
961
|
-
horizontal: ao(S, P.horizontal)
|
|
962
|
-
}), [P.horizontal, P.vertical]), V = d.useCallback((S) => {
|
|
963
|
-
const x = {
|
|
964
|
-
width: S.offsetWidth,
|
|
965
|
-
height: S.offsetHeight
|
|
966
|
-
}, A = z(x);
|
|
967
|
-
if (a === "none")
|
|
968
|
-
return {
|
|
969
|
-
top: null,
|
|
970
|
-
left: null,
|
|
971
|
-
transformOrigin: lo(A)
|
|
972
|
-
};
|
|
973
|
-
const U = W();
|
|
974
|
-
let oe = U.top - A.vertical, te = U.left - A.horizontal;
|
|
975
|
-
const ie = oe + x.height, Re = te + x.width, Pe = We(ge(c)), ae = Pe.innerHeight - y, ne = Pe.innerWidth - y;
|
|
976
|
-
if (y !== null && oe < y) {
|
|
977
|
-
const q = oe - y;
|
|
978
|
-
oe -= q, A.vertical += q;
|
|
979
|
-
} else if (y !== null && ie > ae) {
|
|
980
|
-
const q = ie - ae;
|
|
981
|
-
oe -= q, A.vertical += q;
|
|
982
|
-
}
|
|
983
|
-
if (process.env.NODE_ENV !== "production" && x.height > ae && x.height && ae && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${x.height - ae}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
984
|
-
`)), y !== null && te < y) {
|
|
985
|
-
const q = te - y;
|
|
986
|
-
te -= q, A.horizontal += q;
|
|
987
|
-
} else if (Re > ne) {
|
|
988
|
-
const q = Re - ne;
|
|
989
|
-
te -= q, A.horizontal += q;
|
|
990
|
-
}
|
|
991
|
-
return {
|
|
992
|
-
top: `${Math.round(oe)}px`,
|
|
993
|
-
left: `${Math.round(te)}px`,
|
|
994
|
-
transformOrigin: lo(A)
|
|
995
|
-
};
|
|
996
|
-
}, [c, a, W, z, y]), [H, J] = d.useState(v), Y = d.useCallback(() => {
|
|
997
|
-
const S = I.current;
|
|
998
|
-
if (!S)
|
|
999
|
-
return;
|
|
1000
|
-
const x = V(S);
|
|
1001
|
-
x.top !== null && S.style.setProperty("top", x.top), x.left !== null && (S.style.left = x.left), S.style.transformOrigin = x.transformOrigin, J(!0);
|
|
1002
|
-
}, [V]);
|
|
1003
|
-
d.useEffect(() => ($ && window.addEventListener("scroll", Y), () => window.removeEventListener("scroll", Y)), [c, $, Y]);
|
|
1004
|
-
const Q = () => {
|
|
1005
|
-
Y();
|
|
1006
|
-
}, j = () => {
|
|
1007
|
-
J(!1);
|
|
1008
|
-
};
|
|
1009
|
-
d.useEffect(() => {
|
|
1010
|
-
v && Y();
|
|
1011
|
-
}), d.useImperativeHandle(p, () => v ? {
|
|
1012
|
-
updatePosition: () => {
|
|
1013
|
-
Y();
|
|
1014
|
-
}
|
|
1015
|
-
} : null, [v, Y]), d.useEffect(() => {
|
|
1016
|
-
if (!v)
|
|
1017
|
-
return;
|
|
1018
|
-
const S = Ho(() => {
|
|
1019
|
-
Y();
|
|
1020
|
-
}), x = We(ge(c));
|
|
1021
|
-
return x.addEventListener("resize", S), () => {
|
|
1022
|
-
S.clear(), x.removeEventListener("resize", S);
|
|
1023
|
-
};
|
|
1024
|
-
}, [c, v, Y]);
|
|
1025
|
-
let b = R;
|
|
1026
|
-
const L = {
|
|
1027
|
-
slots: {
|
|
1028
|
-
transition: f,
|
|
1029
|
-
...T
|
|
1030
|
-
},
|
|
1031
|
-
slotProps: {
|
|
1032
|
-
transition: O,
|
|
1033
|
-
paper: n,
|
|
1034
|
-
...g
|
|
1035
|
-
}
|
|
1036
|
-
}, [ee, xe] = fe("transition", {
|
|
1037
|
-
elementType: Go,
|
|
1038
|
-
externalForwardedProps: L,
|
|
1039
|
-
ownerState: k,
|
|
1040
|
-
getSlotProps: (S) => ({
|
|
1041
|
-
...S,
|
|
1042
|
-
onEntering: (x, A) => {
|
|
1043
|
-
var U;
|
|
1044
|
-
(U = S.onEntering) == null || U.call(S, x, A), Q();
|
|
1045
|
-
},
|
|
1046
|
-
onExited: (x) => {
|
|
1047
|
-
var A;
|
|
1048
|
-
(A = S.onExited) == null || A.call(S, x), j();
|
|
1049
|
-
}
|
|
1050
|
-
}),
|
|
1051
|
-
additionalProps: {
|
|
1052
|
-
appear: !0,
|
|
1053
|
-
in: v
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
R === "auto" && !ee.muiSupportAuto && (b = void 0);
|
|
1057
|
-
const Oe = E || (c ? Ne(ge(c)).body : void 0), [G, {
|
|
1058
|
-
slots: Z,
|
|
1059
|
-
slotProps: Ae,
|
|
1060
|
-
...be
|
|
1061
|
-
}] = fe("root", {
|
|
1062
|
-
ref: r,
|
|
1063
|
-
elementType: gt,
|
|
1064
|
-
externalForwardedProps: {
|
|
1065
|
-
...L,
|
|
1066
|
-
...B
|
|
1067
|
-
},
|
|
1068
|
-
shouldForwardComponentProp: !0,
|
|
1069
|
-
additionalProps: {
|
|
1070
|
-
slots: {
|
|
1071
|
-
backdrop: T.backdrop
|
|
1072
|
-
},
|
|
1073
|
-
slotProps: {
|
|
1074
|
-
backdrop: st(typeof g.backdrop == "function" ? g.backdrop(k) : g.backdrop, {
|
|
1075
|
-
invisible: !0
|
|
1076
|
-
})
|
|
1077
|
-
},
|
|
1078
|
-
container: Oe,
|
|
1079
|
-
open: v
|
|
1080
|
-
},
|
|
1081
|
-
ownerState: k,
|
|
1082
|
-
className: re(K.root, h)
|
|
1083
|
-
}), [Fe, Ce] = fe("paper", {
|
|
1084
|
-
ref: I,
|
|
1085
|
-
className: K.paper,
|
|
1086
|
-
elementType: wo,
|
|
1087
|
-
externalForwardedProps: L,
|
|
1088
|
-
shouldForwardComponentProp: !0,
|
|
1089
|
-
additionalProps: {
|
|
1090
|
-
elevation: w,
|
|
1091
|
-
style: H ? void 0 : {
|
|
1092
|
-
opacity: 0
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
ownerState: k
|
|
1096
|
-
});
|
|
1097
|
-
return /* @__PURE__ */ _(G, {
|
|
1098
|
-
...be,
|
|
1099
|
-
...!zo(G) && {
|
|
1100
|
-
slots: Z,
|
|
1101
|
-
slotProps: Ae,
|
|
1102
|
-
disableScrollLock: $
|
|
1103
|
-
},
|
|
1104
|
-
children: /* @__PURE__ */ _(ee, {
|
|
1105
|
-
...xe,
|
|
1106
|
-
timeout: b,
|
|
1107
|
-
children: /* @__PURE__ */ _(Fe, {
|
|
1108
|
-
...Ce,
|
|
1109
|
-
children: m
|
|
1110
|
-
})
|
|
1111
|
-
})
|
|
1112
|
-
});
|
|
1113
|
-
});
|
|
1114
|
-
process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
1115
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1116
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1117
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1118
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1119
|
-
/**
|
|
1120
|
-
* A ref for imperative actions.
|
|
1121
|
-
* It currently only supports updatePosition() action.
|
|
1122
|
-
*/
|
|
1123
|
-
action: Te,
|
|
1124
|
-
/**
|
|
1125
|
-
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
1126
|
-
* or a function that returns either.
|
|
1127
|
-
* It's used to set the position of the popover.
|
|
1128
|
-
*/
|
|
1129
|
-
anchorEl: Xo(e.oneOfType([Ue, e.func]), (o) => {
|
|
1130
|
-
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
1131
|
-
const t = ge(o.anchorEl);
|
|
1132
|
-
if (t && t.nodeType === 1) {
|
|
1133
|
-
const r = t.getBoundingClientRect();
|
|
1134
|
-
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1135
|
-
return new Error(["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(`
|
|
1136
|
-
`));
|
|
1137
|
-
} else
|
|
1138
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
1139
|
-
`));
|
|
1140
|
-
}
|
|
1141
|
-
return null;
|
|
1142
|
-
}),
|
|
1143
|
-
/**
|
|
1144
|
-
* This is the point on the anchor where the popover's
|
|
1145
|
-
* `anchorEl` will attach to. This is not used when the
|
|
1146
|
-
* anchorReference is 'anchorPosition'.
|
|
1147
|
-
*
|
|
1148
|
-
* Options:
|
|
1149
|
-
* vertical: [top, center, bottom];
|
|
1150
|
-
* horizontal: [left, center, right].
|
|
1151
|
-
* @default {
|
|
1152
|
-
* vertical: 'top',
|
|
1153
|
-
* horizontal: 'left',
|
|
1154
|
-
* }
|
|
1155
|
-
*/
|
|
1156
|
-
anchorOrigin: e.shape({
|
|
1157
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
1158
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
1159
|
-
}),
|
|
1160
|
-
/**
|
|
1161
|
-
* This is the position that may be used to set the position of the popover.
|
|
1162
|
-
* The coordinates are relative to the application's client area.
|
|
1163
|
-
*/
|
|
1164
|
-
anchorPosition: e.shape({
|
|
1165
|
-
left: e.number.isRequired,
|
|
1166
|
-
top: e.number.isRequired
|
|
1167
|
-
}),
|
|
1168
|
-
/**
|
|
1169
|
-
* This determines which anchor prop to refer to when setting
|
|
1170
|
-
* the position of the popover.
|
|
1171
|
-
* @default 'anchorEl'
|
|
1172
|
-
*/
|
|
1173
|
-
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
1174
|
-
/**
|
|
1175
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
1176
|
-
* @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1177
|
-
* @default styled(Backdrop, {
|
|
1178
|
-
* name: 'MuiModal',
|
|
1179
|
-
* slot: 'Backdrop',
|
|
1180
|
-
* overridesResolver: (props, styles) => {
|
|
1181
|
-
* return styles.backdrop;
|
|
1182
|
-
* },
|
|
1183
|
-
* })({
|
|
1184
|
-
* zIndex: -1,
|
|
1185
|
-
* })
|
|
1186
|
-
*/
|
|
1187
|
-
BackdropComponent: e.elementType,
|
|
1188
|
-
/**
|
|
1189
|
-
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
1190
|
-
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1191
|
-
*/
|
|
1192
|
-
BackdropProps: e.object,
|
|
1193
|
-
/**
|
|
1194
|
-
* The content of the component.
|
|
1195
|
-
*/
|
|
1196
|
-
children: e.node,
|
|
1197
|
-
/**
|
|
1198
|
-
* Override or extend the styles applied to the component.
|
|
1199
|
-
*/
|
|
1200
|
-
classes: e.object,
|
|
1201
|
-
/**
|
|
1202
|
-
* @ignore
|
|
1203
|
-
*/
|
|
1204
|
-
className: e.string,
|
|
1205
|
-
/**
|
|
1206
|
-
* An HTML element, component instance, or function that returns either.
|
|
1207
|
-
* The `container` will passed to the Modal component.
|
|
1208
|
-
*
|
|
1209
|
-
* By default, it uses the body of the anchorEl's top-level document object,
|
|
1210
|
-
* so it's simply `document.body` most of the time.
|
|
1211
|
-
*/
|
|
1212
|
-
container: e.oneOfType([Ue, e.func]),
|
|
1213
|
-
/**
|
|
1214
|
-
* Disable the scroll lock behavior.
|
|
1215
|
-
* @default false
|
|
1216
|
-
*/
|
|
1217
|
-
disableScrollLock: e.bool,
|
|
1218
|
-
/**
|
|
1219
|
-
* The elevation of the popover.
|
|
1220
|
-
* @default 8
|
|
1221
|
-
*/
|
|
1222
|
-
elevation: Ko,
|
|
1223
|
-
/**
|
|
1224
|
-
* Specifies how close to the edge of the window the popover can appear.
|
|
1225
|
-
* If null, the popover will not be constrained by the window.
|
|
1226
|
-
* @default 16
|
|
1227
|
-
*/
|
|
1228
|
-
marginThreshold: e.number,
|
|
1229
|
-
/**
|
|
1230
|
-
* Callback fired when the component requests to be closed.
|
|
1231
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
1232
|
-
*/
|
|
1233
|
-
onClose: e.func,
|
|
1234
|
-
/**
|
|
1235
|
-
* If `true`, the component is shown.
|
|
1236
|
-
*/
|
|
1237
|
-
open: e.bool.isRequired,
|
|
1238
|
-
/**
|
|
1239
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
1240
|
-
*
|
|
1241
|
-
* This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
|
|
1242
|
-
* @deprecated Use `slotProps.paper` instead.
|
|
1243
|
-
*
|
|
1244
|
-
* @default {}
|
|
1245
|
-
*/
|
|
1246
|
-
PaperProps: e.shape({
|
|
1247
|
-
component: Zo
|
|
1248
|
-
}),
|
|
1249
|
-
/**
|
|
1250
|
-
* The props used for each slot inside.
|
|
1251
|
-
* @default {}
|
|
1252
|
-
*/
|
|
1253
|
-
slotProps: e.shape({
|
|
1254
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
1255
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
1256
|
-
root: e.oneOfType([e.func, e.object]),
|
|
1257
|
-
transition: e.oneOfType([e.func, e.object])
|
|
1258
|
-
}),
|
|
1259
|
-
/**
|
|
1260
|
-
* The components used for each slot inside.
|
|
1261
|
-
* @default {}
|
|
1262
|
-
*/
|
|
1263
|
-
slots: e.shape({
|
|
1264
|
-
backdrop: e.elementType,
|
|
1265
|
-
paper: e.elementType,
|
|
1266
|
-
root: e.elementType,
|
|
1267
|
-
transition: e.elementType
|
|
1268
|
-
}),
|
|
1269
|
-
/**
|
|
1270
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1271
|
-
*/
|
|
1272
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1273
|
-
/**
|
|
1274
|
-
* This is the point on the popover which
|
|
1275
|
-
* will attach to the anchor's origin.
|
|
1276
|
-
*
|
|
1277
|
-
* Options:
|
|
1278
|
-
* vertical: [top, center, bottom, x(px)];
|
|
1279
|
-
* horizontal: [left, center, right, x(px)].
|
|
1280
|
-
* @default {
|
|
1281
|
-
* vertical: 'top',
|
|
1282
|
-
* horizontal: 'left',
|
|
1283
|
-
* }
|
|
1284
|
-
*/
|
|
1285
|
-
transformOrigin: e.shape({
|
|
1286
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
1287
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
1288
|
-
}),
|
|
1289
|
-
/**
|
|
1290
|
-
* The component used for the transition.
|
|
1291
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
1292
|
-
* @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1293
|
-
* @default Grow
|
|
1294
|
-
*/
|
|
1295
|
-
TransitionComponent: e.elementType,
|
|
1296
|
-
/**
|
|
1297
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
1298
|
-
* @default 'auto'
|
|
1299
|
-
*/
|
|
1300
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
1301
|
-
appear: e.number,
|
|
1302
|
-
enter: e.number,
|
|
1303
|
-
exit: e.number
|
|
1304
|
-
})]),
|
|
1305
|
-
/**
|
|
1306
|
-
* Props applied to the transition element.
|
|
1307
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1308
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1309
|
-
* @default {}
|
|
1310
|
-
*/
|
|
1311
|
-
TransitionProps: e.object
|
|
1312
|
-
});
|
|
1313
|
-
function Et(o) {
|
|
1314
|
-
return le("MuiMenu", o);
|
|
1315
|
-
}
|
|
1316
|
-
ce("MuiMenu", ["root", "paper", "list"]);
|
|
1317
|
-
const Tt = {
|
|
1318
|
-
vertical: "top",
|
|
1319
|
-
horizontal: "right"
|
|
1320
|
-
}, Ot = {
|
|
1321
|
-
vertical: "top",
|
|
1322
|
-
horizontal: "left"
|
|
1323
|
-
}, Ct = (o) => {
|
|
1324
|
-
const {
|
|
1325
|
-
classes: t
|
|
1326
|
-
} = o;
|
|
1327
|
-
return se({
|
|
1328
|
-
root: ["root"],
|
|
1329
|
-
paper: ["paper"],
|
|
1330
|
-
list: ["list"]
|
|
1331
|
-
}, Et, t);
|
|
1332
|
-
}, Rt = F(Io, {
|
|
1333
|
-
shouldForwardProp: (o) => ue(o) || o === "classes",
|
|
1334
|
-
name: "MuiMenu",
|
|
1335
|
-
slot: "Root"
|
|
1336
|
-
})({}), Pt = F(wo, {
|
|
1337
|
-
name: "MuiMenu",
|
|
1338
|
-
slot: "Paper"
|
|
1339
|
-
})({
|
|
1340
|
-
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
1341
|
-
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
1342
|
-
// the menu.
|
|
1343
|
-
maxHeight: "calc(100% - 96px)",
|
|
1344
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
1345
|
-
WebkitOverflowScrolling: "touch"
|
|
1346
|
-
}), St = F(So, {
|
|
1347
|
-
name: "MuiMenu",
|
|
1348
|
-
slot: "List"
|
|
1349
|
-
})({
|
|
1350
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1351
|
-
outline: 0
|
|
1352
|
-
}), No = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
1353
|
-
const s = me({
|
|
1354
|
-
props: t,
|
|
1355
|
-
name: "MuiMenu"
|
|
1356
|
-
}), {
|
|
1357
|
-
autoFocus: p = !0,
|
|
1358
|
-
children: c,
|
|
1359
|
-
className: l,
|
|
1360
|
-
disableAutoFocusItem: i = !1,
|
|
1361
|
-
MenuListProps: a = {},
|
|
1362
|
-
onClose: m,
|
|
1363
|
-
open: h,
|
|
1364
|
-
PaperProps: E = {},
|
|
1365
|
-
PopoverClasses: w,
|
|
1366
|
-
transitionDuration: y = "auto",
|
|
1367
|
-
TransitionProps: {
|
|
1368
|
-
onEntering: v,
|
|
1369
|
-
...n
|
|
1370
|
-
} = {},
|
|
1371
|
-
variant: T = "selectedMenu",
|
|
1372
|
-
slots: g = {},
|
|
1373
|
-
slotProps: P = {},
|
|
1374
|
-
...f
|
|
1375
|
-
} = s, R = Uo(), O = {
|
|
1376
|
-
...s,
|
|
1377
|
-
autoFocus: p,
|
|
1378
|
-
disableAutoFocusItem: i,
|
|
1379
|
-
MenuListProps: a,
|
|
1380
|
-
onEntering: v,
|
|
1381
|
-
PaperProps: E,
|
|
1382
|
-
transitionDuration: y,
|
|
1383
|
-
TransitionProps: n,
|
|
1384
|
-
variant: T
|
|
1385
|
-
}, $ = Ct(O), B = p && !i && h, I = d.useRef(null), k = (b, L) => {
|
|
1386
|
-
I.current && I.current.adjustStyleForScrollbar(b, {
|
|
1387
|
-
direction: R ? "rtl" : "ltr"
|
|
1388
|
-
}), v && v(b, L);
|
|
1389
|
-
}, K = (b) => {
|
|
1390
|
-
b.key === "Tab" && (b.preventDefault(), m && m(b, "tabKeyDown"));
|
|
1391
|
-
};
|
|
1392
|
-
let W = -1;
|
|
1393
|
-
d.Children.map(c, (b, L) => {
|
|
1394
|
-
/* @__PURE__ */ d.isValidElement(b) && (process.env.NODE_ENV !== "production" && Ye.isFragment(b) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1395
|
-
`)), b.props.disabled || (T === "selectedMenu" && b.props.selected || W === -1) && (W = L));
|
|
1396
|
-
});
|
|
1397
|
-
const z = {
|
|
1398
|
-
slots: g,
|
|
1399
|
-
slotProps: {
|
|
1400
|
-
list: a,
|
|
1401
|
-
transition: n,
|
|
1402
|
-
paper: E,
|
|
1403
|
-
...P
|
|
1404
|
-
}
|
|
1405
|
-
}, V = Qo({
|
|
1406
|
-
elementType: g.root,
|
|
1407
|
-
externalSlotProps: P.root,
|
|
1408
|
-
ownerState: O,
|
|
1409
|
-
className: [$.root, l]
|
|
1410
|
-
}), [H, J] = fe("paper", {
|
|
1411
|
-
className: $.paper,
|
|
1412
|
-
elementType: Pt,
|
|
1413
|
-
externalForwardedProps: z,
|
|
1414
|
-
shouldForwardComponentProp: !0,
|
|
1415
|
-
ownerState: O
|
|
1416
|
-
}), [Y, Q] = fe("list", {
|
|
1417
|
-
className: re($.list, a.className),
|
|
1418
|
-
elementType: St,
|
|
1419
|
-
shouldForwardComponentProp: !0,
|
|
1420
|
-
externalForwardedProps: z,
|
|
1421
|
-
getSlotProps: (b) => ({
|
|
1422
|
-
...b,
|
|
1423
|
-
onKeyDown: (L) => {
|
|
1424
|
-
var ee;
|
|
1425
|
-
K(L), (ee = b.onKeyDown) == null || ee.call(b, L);
|
|
1426
|
-
}
|
|
1427
|
-
}),
|
|
1428
|
-
ownerState: O
|
|
1429
|
-
}), j = typeof z.slotProps.transition == "function" ? z.slotProps.transition(O) : z.slotProps.transition;
|
|
1430
|
-
return /* @__PURE__ */ _(Rt, {
|
|
1431
|
-
onClose: m,
|
|
1432
|
-
anchorOrigin: {
|
|
1433
|
-
vertical: "bottom",
|
|
1434
|
-
horizontal: R ? "right" : "left"
|
|
1435
|
-
},
|
|
1436
|
-
transformOrigin: R ? Tt : Ot,
|
|
1437
|
-
slots: {
|
|
1438
|
-
root: g.root,
|
|
1439
|
-
paper: H,
|
|
1440
|
-
backdrop: g.backdrop,
|
|
1441
|
-
...g.transition && {
|
|
1442
|
-
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
1443
|
-
transition: g.transition
|
|
1444
|
-
}
|
|
1445
|
-
},
|
|
1446
|
-
slotProps: {
|
|
1447
|
-
root: V,
|
|
1448
|
-
paper: J,
|
|
1449
|
-
backdrop: typeof P.backdrop == "function" ? P.backdrop(O) : P.backdrop,
|
|
1450
|
-
transition: {
|
|
1451
|
-
...j,
|
|
1452
|
-
onEntering: (...b) => {
|
|
1453
|
-
var L;
|
|
1454
|
-
k(...b), (L = j == null ? void 0 : j.onEntering) == null || L.call(j, ...b);
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
},
|
|
1458
|
-
open: h,
|
|
1459
|
-
ref: r,
|
|
1460
|
-
transitionDuration: y,
|
|
1461
|
-
ownerState: O,
|
|
1462
|
-
...f,
|
|
1463
|
-
classes: w,
|
|
1464
|
-
children: /* @__PURE__ */ _(Y, {
|
|
1465
|
-
actions: I,
|
|
1466
|
-
autoFocus: p && (W === -1 || i),
|
|
1467
|
-
autoFocusItem: B,
|
|
1468
|
-
variant: T,
|
|
1469
|
-
...Q,
|
|
1470
|
-
children: c
|
|
1471
|
-
})
|
|
1472
|
-
});
|
|
1473
|
-
});
|
|
1474
|
-
process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
1475
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1476
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1477
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1478
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1479
|
-
/**
|
|
1480
|
-
* An HTML element, or a function that returns one.
|
|
1481
|
-
* It's used to set the position of the menu.
|
|
1482
|
-
*/
|
|
1483
|
-
anchorEl: e.oneOfType([Ue, e.func]),
|
|
1484
|
-
/**
|
|
1485
|
-
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
1486
|
-
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
1487
|
-
* on the parent modal container. This has severe accessibility implications
|
|
1488
|
-
* and should only be considered if you manage focus otherwise.
|
|
1489
|
-
* @default true
|
|
1490
|
-
*/
|
|
1491
|
-
autoFocus: e.bool,
|
|
1492
|
-
/**
|
|
1493
|
-
* Menu contents, normally `MenuItem`s.
|
|
1494
|
-
*/
|
|
1495
|
-
children: e.node,
|
|
1496
|
-
/**
|
|
1497
|
-
* Override or extend the styles applied to the component.
|
|
1498
|
-
*/
|
|
1499
|
-
classes: e.object,
|
|
1500
|
-
/**
|
|
1501
|
-
* @ignore
|
|
1502
|
-
*/
|
|
1503
|
-
className: e.string,
|
|
1504
|
-
/**
|
|
1505
|
-
* When opening the menu will not focus the active item but the `[role="menu"]`
|
|
1506
|
-
* unless `autoFocus` is also set to `false`. Not using the default means not
|
|
1507
|
-
* following WAI-ARIA authoring practices. Please be considerate about possible
|
|
1508
|
-
* accessibility implications.
|
|
1509
|
-
* @default false
|
|
1510
|
-
*/
|
|
1511
|
-
disableAutoFocusItem: e.bool,
|
|
1512
|
-
/**
|
|
1513
|
-
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
1514
|
-
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1515
|
-
* @default {}
|
|
1516
|
-
*/
|
|
1517
|
-
MenuListProps: e.object,
|
|
1518
|
-
/**
|
|
1519
|
-
* Callback fired when the component requests to be closed.
|
|
1520
|
-
*
|
|
1521
|
-
* @param {object} event The event source of the callback.
|
|
1522
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
1523
|
-
*/
|
|
1524
|
-
onClose: e.func,
|
|
1525
|
-
/**
|
|
1526
|
-
* If `true`, the component is shown.
|
|
1527
|
-
*/
|
|
1528
|
-
open: e.bool.isRequired,
|
|
1529
|
-
/**
|
|
1530
|
-
* @ignore
|
|
1531
|
-
*/
|
|
1532
|
-
PaperProps: e.object,
|
|
1533
|
-
/**
|
|
1534
|
-
* `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
|
|
1535
|
-
*/
|
|
1536
|
-
PopoverClasses: e.object,
|
|
1537
|
-
/**
|
|
1538
|
-
* The props used for each slot inside.
|
|
1539
|
-
* @default {}
|
|
1540
|
-
*/
|
|
1541
|
-
slotProps: e.shape({
|
|
1542
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
1543
|
-
list: e.oneOfType([e.func, e.object]),
|
|
1544
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
1545
|
-
root: e.oneOfType([e.func, e.object]),
|
|
1546
|
-
transition: e.oneOfType([e.func, e.object])
|
|
1547
|
-
}),
|
|
1548
|
-
/**
|
|
1549
|
-
* The components used for each slot inside.
|
|
1550
|
-
* @default {}
|
|
1551
|
-
*/
|
|
1552
|
-
slots: e.shape({
|
|
1553
|
-
backdrop: e.elementType,
|
|
1554
|
-
list: e.elementType,
|
|
1555
|
-
paper: e.elementType,
|
|
1556
|
-
root: e.elementType,
|
|
1557
|
-
transition: e.elementType
|
|
1558
|
-
}),
|
|
1559
|
-
/**
|
|
1560
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1561
|
-
*/
|
|
1562
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1563
|
-
/**
|
|
1564
|
-
* The length of the transition in `ms`, or 'auto'
|
|
1565
|
-
* @default 'auto'
|
|
1566
|
-
*/
|
|
1567
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
1568
|
-
appear: e.number,
|
|
1569
|
-
enter: e.number,
|
|
1570
|
-
exit: e.number
|
|
1571
|
-
})]),
|
|
1572
|
-
/**
|
|
1573
|
-
* Props applied to the transition element.
|
|
1574
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1575
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1576
|
-
* @default {}
|
|
1577
|
-
*/
|
|
1578
|
-
TransitionProps: e.object,
|
|
1579
|
-
/**
|
|
1580
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
|
|
1581
|
-
* @default 'selectedMenu'
|
|
1582
|
-
*/
|
|
1583
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
1584
|
-
});
|
|
1585
|
-
function wt(o) {
|
|
1586
|
-
return le("MuiNativeSelect", o);
|
|
1587
|
-
}
|
|
1588
|
-
const qe = ce("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), It = (o) => {
|
|
1589
|
-
const {
|
|
1590
|
-
classes: t,
|
|
1591
|
-
variant: r,
|
|
1592
|
-
disabled: s,
|
|
1593
|
-
multiple: p,
|
|
1594
|
-
open: c,
|
|
1595
|
-
error: l
|
|
1596
|
-
} = o, i = {
|
|
1597
|
-
select: ["select", r, s && "disabled", p && "multiple", l && "error"],
|
|
1598
|
-
icon: ["icon", `icon${Me(r)}`, c && "iconOpen", s && "disabled"]
|
|
1599
|
-
};
|
|
1600
|
-
return se(i, wt, t);
|
|
1601
|
-
}, Mo = F("select", {
|
|
1602
|
-
name: "MuiNativeSelect"
|
|
1603
|
-
})(({
|
|
1604
|
-
theme: o
|
|
1605
|
-
}) => ({
|
|
1606
|
-
// Reset
|
|
1607
|
-
MozAppearance: "none",
|
|
1608
|
-
// Reset
|
|
1609
|
-
WebkitAppearance: "none",
|
|
1610
|
-
// When interacting quickly, the text can end up selected.
|
|
1611
|
-
// Native select can't be selected either.
|
|
1612
|
-
userSelect: "none",
|
|
1613
|
-
// Reset
|
|
1614
|
-
borderRadius: 0,
|
|
1615
|
-
cursor: "pointer",
|
|
1616
|
-
"&:focus": {
|
|
1617
|
-
// Reset Chrome style
|
|
1618
|
-
borderRadius: 0
|
|
1619
|
-
},
|
|
1620
|
-
[`&.${qe.disabled}`]: {
|
|
1621
|
-
cursor: "default"
|
|
1622
|
-
},
|
|
1623
|
-
"&[multiple]": {
|
|
1624
|
-
height: "auto"
|
|
1625
|
-
},
|
|
1626
|
-
"&:not([multiple]) option, &:not([multiple]) optgroup": {
|
|
1627
|
-
backgroundColor: (o.vars || o).palette.background.paper
|
|
1628
|
-
},
|
|
1629
|
-
variants: [{
|
|
1630
|
-
props: ({
|
|
1631
|
-
ownerState: t
|
|
1632
|
-
}) => t.variant !== "filled" && t.variant !== "outlined",
|
|
1633
|
-
style: {
|
|
1634
|
-
// Bump specificity to allow extending custom inputs
|
|
1635
|
-
"&&&": {
|
|
1636
|
-
paddingRight: 24,
|
|
1637
|
-
minWidth: 16
|
|
1638
|
-
// So it doesn't collapse.
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
}, {
|
|
1642
|
-
props: {
|
|
1643
|
-
variant: "filled"
|
|
1644
|
-
},
|
|
1645
|
-
style: {
|
|
1646
|
-
"&&&": {
|
|
1647
|
-
paddingRight: 32
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
}, {
|
|
1651
|
-
props: {
|
|
1652
|
-
variant: "outlined"
|
|
1653
|
-
},
|
|
1654
|
-
style: {
|
|
1655
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
1656
|
-
"&:focus": {
|
|
1657
|
-
borderRadius: (o.vars || o).shape.borderRadius
|
|
1658
|
-
// Reset the reset for Chrome style
|
|
1659
|
-
},
|
|
1660
|
-
"&&&": {
|
|
1661
|
-
paddingRight: 32
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
}]
|
|
1665
|
-
})), Nt = F(Mo, {
|
|
1666
|
-
name: "MuiNativeSelect",
|
|
1667
|
-
slot: "Select",
|
|
1668
|
-
shouldForwardProp: ue,
|
|
1669
|
-
overridesResolver: (o, t) => {
|
|
1670
|
-
const {
|
|
1671
|
-
ownerState: r
|
|
1672
|
-
} = o;
|
|
1673
|
-
return [t.select, t[r.variant], r.error && t.error, {
|
|
1674
|
-
[`&.${qe.multiple}`]: t.multiple
|
|
1675
|
-
}];
|
|
1676
|
-
}
|
|
1677
|
-
})({}), _o = F("svg", {
|
|
1678
|
-
name: "MuiNativeSelect"
|
|
1679
|
-
})(({
|
|
1680
|
-
theme: o
|
|
1681
|
-
}) => ({
|
|
1682
|
-
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
1683
|
-
// to the input and to support wrapping tags..
|
|
1684
|
-
position: "absolute",
|
|
1685
|
-
right: 0,
|
|
1686
|
-
// Center vertically, height is 1em
|
|
1687
|
-
top: "calc(50% - .5em)",
|
|
1688
|
-
// Don't block pointer events on the select under the icon.
|
|
1689
|
-
pointerEvents: "none",
|
|
1690
|
-
color: (o.vars || o).palette.action.active,
|
|
1691
|
-
[`&.${qe.disabled}`]: {
|
|
1692
|
-
color: (o.vars || o).palette.action.disabled
|
|
1693
|
-
},
|
|
1694
|
-
variants: [{
|
|
1695
|
-
props: ({
|
|
1696
|
-
ownerState: t
|
|
1697
|
-
}) => t.open,
|
|
1698
|
-
style: {
|
|
1699
|
-
transform: "rotate(180deg)"
|
|
1700
|
-
}
|
|
1701
|
-
}, {
|
|
1702
|
-
props: {
|
|
1703
|
-
variant: "filled"
|
|
1704
|
-
},
|
|
1705
|
-
style: {
|
|
1706
|
-
right: 7
|
|
1707
|
-
}
|
|
1708
|
-
}, {
|
|
1709
|
-
props: {
|
|
1710
|
-
variant: "outlined"
|
|
1711
|
-
},
|
|
1712
|
-
style: {
|
|
1713
|
-
right: 7
|
|
1714
|
-
}
|
|
1715
|
-
}]
|
|
1716
|
-
})), Mt = F(_o, {
|
|
1717
|
-
name: "MuiNativeSelect",
|
|
1718
|
-
slot: "Icon",
|
|
1719
|
-
overridesResolver: (o, t) => {
|
|
1720
|
-
const {
|
|
1721
|
-
ownerState: r
|
|
1722
|
-
} = o;
|
|
1723
|
-
return [t.icon, r.variant && t[`icon${Me(r.variant)}`], r.open && t.iconOpen];
|
|
1724
|
-
}
|
|
1725
|
-
})({}), xo = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
1726
|
-
const {
|
|
1727
|
-
className: s,
|
|
1728
|
-
disabled: p,
|
|
1729
|
-
error: c,
|
|
1730
|
-
IconComponent: l,
|
|
1731
|
-
inputRef: i,
|
|
1732
|
-
variant: a = "standard",
|
|
1733
|
-
...m
|
|
1734
|
-
} = t, h = {
|
|
1735
|
-
...t,
|
|
1736
|
-
disabled: p,
|
|
1737
|
-
variant: a,
|
|
1738
|
-
error: c
|
|
1739
|
-
}, E = It(h);
|
|
1740
|
-
return /* @__PURE__ */ _e(d.Fragment, {
|
|
1741
|
-
children: [/* @__PURE__ */ _(Nt, {
|
|
1742
|
-
ownerState: h,
|
|
1743
|
-
className: re(E.select, s),
|
|
1744
|
-
disabled: p,
|
|
1745
|
-
ref: i || r,
|
|
1746
|
-
...m
|
|
1747
|
-
}), t.multiple ? null : /* @__PURE__ */ _(Mt, {
|
|
1748
|
-
as: l,
|
|
1749
|
-
ownerState: h,
|
|
1750
|
-
className: E.icon
|
|
1751
|
-
})]
|
|
1752
|
-
});
|
|
1753
|
-
});
|
|
1754
|
-
process.env.NODE_ENV !== "production" && (xo.propTypes = {
|
|
1755
|
-
/**
|
|
1756
|
-
* The option elements to populate the select with.
|
|
1757
|
-
* Can be some `<option>` elements.
|
|
1758
|
-
*/
|
|
1759
|
-
children: e.node,
|
|
1760
|
-
/**
|
|
1761
|
-
* Override or extend the styles applied to the component.
|
|
1762
|
-
*/
|
|
1763
|
-
classes: e.object,
|
|
1764
|
-
/**
|
|
1765
|
-
* The CSS class name of the select element.
|
|
1766
|
-
*/
|
|
1767
|
-
className: e.string,
|
|
1768
|
-
/**
|
|
1769
|
-
* If `true`, the select is disabled.
|
|
1770
|
-
*/
|
|
1771
|
-
disabled: e.bool,
|
|
1772
|
-
/**
|
|
1773
|
-
* If `true`, the `select input` will indicate an error.
|
|
1774
|
-
*/
|
|
1775
|
-
error: e.bool,
|
|
1776
|
-
/**
|
|
1777
|
-
* The icon that displays the arrow.
|
|
1778
|
-
*/
|
|
1779
|
-
IconComponent: e.elementType.isRequired,
|
|
1780
|
-
/**
|
|
1781
|
-
* Use that prop to pass a ref to the native select element.
|
|
1782
|
-
* @deprecated
|
|
1783
|
-
*/
|
|
1784
|
-
inputRef: Te,
|
|
1785
|
-
/**
|
|
1786
|
-
* @ignore
|
|
1787
|
-
*/
|
|
1788
|
-
multiple: e.bool,
|
|
1789
|
-
/**
|
|
1790
|
-
* Name attribute of the `select` or hidden `input` element.
|
|
1791
|
-
*/
|
|
1792
|
-
name: e.string,
|
|
1793
|
-
/**
|
|
1794
|
-
* Callback fired when a menu item is selected.
|
|
1795
|
-
*
|
|
1796
|
-
* @param {object} event The event source of the callback.
|
|
1797
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
1798
|
-
*/
|
|
1799
|
-
onChange: e.func,
|
|
1800
|
-
/**
|
|
1801
|
-
* The input value.
|
|
1802
|
-
*/
|
|
1803
|
-
value: e.any,
|
|
1804
|
-
/**
|
|
1805
|
-
* The variant to use.
|
|
1806
|
-
*/
|
|
1807
|
-
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
1808
|
-
});
|
|
1809
|
-
var co;
|
|
1810
|
-
const _t = F("fieldset", {
|
|
1811
|
-
name: "MuiNotchedOutlined",
|
|
1812
|
-
shouldForwardProp: ue
|
|
1813
|
-
})({
|
|
1814
|
-
textAlign: "left",
|
|
1815
|
-
position: "absolute",
|
|
1816
|
-
bottom: 0,
|
|
1817
|
-
right: 0,
|
|
1818
|
-
top: -5,
|
|
1819
|
-
left: 0,
|
|
1820
|
-
margin: 0,
|
|
1821
|
-
padding: "0 8px",
|
|
1822
|
-
pointerEvents: "none",
|
|
1823
|
-
borderRadius: "inherit",
|
|
1824
|
-
borderStyle: "solid",
|
|
1825
|
-
borderWidth: 1,
|
|
1826
|
-
overflow: "hidden",
|
|
1827
|
-
minWidth: "0%"
|
|
1828
|
-
}), xt = F("legend", {
|
|
1829
|
-
name: "MuiNotchedOutlined",
|
|
1830
|
-
shouldForwardProp: ue
|
|
1831
|
-
})(Ee(({
|
|
1832
|
-
theme: o
|
|
1833
|
-
}) => ({
|
|
1834
|
-
float: "unset",
|
|
1835
|
-
// Fix conflict with bootstrap
|
|
1836
|
-
width: "auto",
|
|
1837
|
-
// Fix conflict with bootstrap
|
|
1838
|
-
overflow: "hidden",
|
|
1839
|
-
// Fix Horizontal scroll when label too long
|
|
1840
|
-
variants: [{
|
|
1841
|
-
props: ({
|
|
1842
|
-
ownerState: t
|
|
1843
|
-
}) => !t.withLabel,
|
|
1844
|
-
style: {
|
|
1845
|
-
padding: 0,
|
|
1846
|
-
lineHeight: "11px",
|
|
1847
|
-
// sync with `height` in `legend` styles
|
|
1848
|
-
transition: o.transitions.create("width", {
|
|
1849
|
-
duration: 150,
|
|
1850
|
-
easing: o.transitions.easing.easeOut
|
|
1851
|
-
})
|
|
1852
|
-
}
|
|
1853
|
-
}, {
|
|
1854
|
-
props: ({
|
|
1855
|
-
ownerState: t
|
|
1856
|
-
}) => t.withLabel,
|
|
1857
|
-
style: {
|
|
1858
|
-
display: "block",
|
|
1859
|
-
// Fix conflict with normalize.css and sanitize.css
|
|
1860
|
-
padding: 0,
|
|
1861
|
-
height: 11,
|
|
1862
|
-
// sync with `lineHeight` in `legend` styles
|
|
1863
|
-
fontSize: "0.75em",
|
|
1864
|
-
visibility: "hidden",
|
|
1865
|
-
maxWidth: 0.01,
|
|
1866
|
-
transition: o.transitions.create("max-width", {
|
|
1867
|
-
duration: 50,
|
|
1868
|
-
easing: o.transitions.easing.easeOut
|
|
1869
|
-
}),
|
|
1870
|
-
whiteSpace: "nowrap",
|
|
1871
|
-
"& > span": {
|
|
1872
|
-
paddingLeft: 5,
|
|
1873
|
-
paddingRight: 5,
|
|
1874
|
-
display: "inline-block",
|
|
1875
|
-
opacity: 0,
|
|
1876
|
-
visibility: "visible"
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
}, {
|
|
1880
|
-
props: ({
|
|
1881
|
-
ownerState: t
|
|
1882
|
-
}) => t.withLabel && t.notched,
|
|
1883
|
-
style: {
|
|
1884
|
-
maxWidth: "100%",
|
|
1885
|
-
transition: o.transitions.create("max-width", {
|
|
1886
|
-
duration: 100,
|
|
1887
|
-
easing: o.transitions.easing.easeOut,
|
|
1888
|
-
delay: 50
|
|
1889
|
-
})
|
|
1890
|
-
}
|
|
1891
|
-
}]
|
|
1892
|
-
})));
|
|
1893
|
-
function Ao(o) {
|
|
1894
|
-
const {
|
|
1895
|
-
children: t,
|
|
1896
|
-
classes: r,
|
|
1897
|
-
className: s,
|
|
1898
|
-
label: p,
|
|
1899
|
-
notched: c,
|
|
1900
|
-
...l
|
|
1901
|
-
} = o, i = p != null && p !== "", a = {
|
|
1902
|
-
...o,
|
|
1903
|
-
notched: c,
|
|
1904
|
-
withLabel: i
|
|
1905
|
-
};
|
|
1906
|
-
return /* @__PURE__ */ _(_t, {
|
|
1907
|
-
"aria-hidden": !0,
|
|
1908
|
-
className: s,
|
|
1909
|
-
ownerState: a,
|
|
1910
|
-
...l,
|
|
1911
|
-
children: /* @__PURE__ */ _(xt, {
|
|
1912
|
-
ownerState: a,
|
|
1913
|
-
children: i ? /* @__PURE__ */ _("span", {
|
|
1914
|
-
children: p
|
|
1915
|
-
}) : (
|
|
1916
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1917
|
-
co || (co = /* @__PURE__ */ _("span", {
|
|
1918
|
-
className: "notranslate",
|
|
1919
|
-
"aria-hidden": !0,
|
|
1920
|
-
children: ""
|
|
1921
|
-
}))
|
|
1922
|
-
)
|
|
1923
|
-
})
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1926
|
-
process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
1927
|
-
/**
|
|
1928
|
-
* The content of the component.
|
|
1929
|
-
*/
|
|
1930
|
-
children: e.node,
|
|
1931
|
-
/**
|
|
1932
|
-
* Override or extend the styles applied to the component.
|
|
1933
|
-
*/
|
|
1934
|
-
classes: e.object,
|
|
1935
|
-
/**
|
|
1936
|
-
* @ignore
|
|
1937
|
-
*/
|
|
1938
|
-
className: e.string,
|
|
1939
|
-
/**
|
|
1940
|
-
* The label.
|
|
1941
|
-
*/
|
|
1942
|
-
label: e.node,
|
|
1943
|
-
/**
|
|
1944
|
-
* If `true`, the outline is notched to accommodate the label.
|
|
1945
|
-
*/
|
|
1946
|
-
notched: e.bool.isRequired,
|
|
1947
|
-
/**
|
|
1948
|
-
* @ignore
|
|
1949
|
-
*/
|
|
1950
|
-
style: e.object
|
|
1951
|
-
});
|
|
1952
|
-
const At = (o) => {
|
|
1953
|
-
const {
|
|
1954
|
-
classes: t
|
|
1955
|
-
} = o, s = se({
|
|
1956
|
-
root: ["root"],
|
|
1957
|
-
notchedOutline: ["notchedOutline"],
|
|
1958
|
-
input: ["input"]
|
|
1959
|
-
}, ct, t);
|
|
1960
|
-
return {
|
|
1961
|
-
...t,
|
|
1962
|
-
// forward classes to the InputBase
|
|
1963
|
-
...s
|
|
1964
|
-
};
|
|
1965
|
-
}, Ft = F(bo, {
|
|
1966
|
-
shouldForwardProp: (o) => ue(o) || o === "classes",
|
|
1967
|
-
name: "MuiOutlinedInput",
|
|
1968
|
-
slot: "Root",
|
|
1969
|
-
overridesResolver: ho
|
|
1970
|
-
})(Ee(({
|
|
1971
|
-
theme: o
|
|
1972
|
-
}) => {
|
|
1973
|
-
const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
1974
|
-
return {
|
|
1975
|
-
position: "relative",
|
|
1976
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
1977
|
-
[`&:hover .${X.notchedOutline}`]: {
|
|
1978
|
-
borderColor: (o.vars || o).palette.text.primary
|
|
1979
|
-
},
|
|
1980
|
-
// Reset on touch devices, it doesn't add specificity
|
|
1981
|
-
"@media (hover: none)": {
|
|
1982
|
-
[`&:hover .${X.notchedOutline}`]: {
|
|
1983
|
-
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
1984
|
-
}
|
|
1985
|
-
},
|
|
1986
|
-
[`&.${X.focused} .${X.notchedOutline}`]: {
|
|
1987
|
-
borderWidth: 2
|
|
1988
|
-
},
|
|
1989
|
-
variants: [...Object.entries(o.palette).filter(Oo()).map(([r]) => ({
|
|
1990
|
-
props: {
|
|
1991
|
-
color: r
|
|
1992
|
-
},
|
|
1993
|
-
style: {
|
|
1994
|
-
[`&.${X.focused} .${X.notchedOutline}`]: {
|
|
1995
|
-
borderColor: (o.vars || o).palette[r].main
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
})), {
|
|
1999
|
-
props: {},
|
|
2000
|
-
// to overide the above style
|
|
2001
|
-
style: {
|
|
2002
|
-
[`&.${X.error} .${X.notchedOutline}`]: {
|
|
2003
|
-
borderColor: (o.vars || o).palette.error.main
|
|
2004
|
-
},
|
|
2005
|
-
[`&.${X.disabled} .${X.notchedOutline}`]: {
|
|
2006
|
-
borderColor: (o.vars || o).palette.action.disabled
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
}, {
|
|
2010
|
-
props: ({
|
|
2011
|
-
ownerState: r
|
|
2012
|
-
}) => r.startAdornment,
|
|
2013
|
-
style: {
|
|
2014
|
-
paddingLeft: 14
|
|
2015
|
-
}
|
|
2016
|
-
}, {
|
|
2017
|
-
props: ({
|
|
2018
|
-
ownerState: r
|
|
2019
|
-
}) => r.endAdornment,
|
|
2020
|
-
style: {
|
|
2021
|
-
paddingRight: 14
|
|
2022
|
-
}
|
|
2023
|
-
}, {
|
|
2024
|
-
props: ({
|
|
2025
|
-
ownerState: r
|
|
2026
|
-
}) => r.multiline,
|
|
2027
|
-
style: {
|
|
2028
|
-
padding: "16.5px 14px"
|
|
2029
|
-
}
|
|
2030
|
-
}, {
|
|
2031
|
-
props: ({
|
|
2032
|
-
ownerState: r,
|
|
2033
|
-
size: s
|
|
2034
|
-
}) => r.multiline && s === "small",
|
|
2035
|
-
style: {
|
|
2036
|
-
padding: "8.5px 14px"
|
|
2037
|
-
}
|
|
2038
|
-
}]
|
|
2039
|
-
};
|
|
2040
|
-
})), $t = F(Ao, {
|
|
2041
|
-
name: "MuiOutlinedInput",
|
|
2042
|
-
slot: "NotchedOutline"
|
|
2043
|
-
})(Ee(({
|
|
2044
|
-
theme: o
|
|
2045
|
-
}) => {
|
|
2046
|
-
const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
2047
|
-
return {
|
|
2048
|
-
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
2049
|
-
};
|
|
2050
|
-
})), Lt = F(yo, {
|
|
2051
|
-
name: "MuiOutlinedInput",
|
|
2052
|
-
slot: "Input",
|
|
2053
|
-
overridesResolver: vo
|
|
2054
|
-
})(Ee(({
|
|
2055
|
-
theme: o
|
|
2056
|
-
}) => ({
|
|
2057
|
-
padding: "16.5px 14px",
|
|
2058
|
-
...!o.vars && {
|
|
2059
|
-
"&:-webkit-autofill": {
|
|
2060
|
-
WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
2061
|
-
WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
|
|
2062
|
-
caretColor: o.palette.mode === "light" ? null : "#fff",
|
|
2063
|
-
borderRadius: "inherit"
|
|
2064
|
-
}
|
|
2065
|
-
},
|
|
2066
|
-
...o.vars && {
|
|
2067
|
-
"&:-webkit-autofill": {
|
|
2068
|
-
borderRadius: "inherit"
|
|
2069
|
-
},
|
|
2070
|
-
[o.getColorSchemeSelector("dark")]: {
|
|
2071
|
-
"&:-webkit-autofill": {
|
|
2072
|
-
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
2073
|
-
WebkitTextFillColor: "#fff",
|
|
2074
|
-
caretColor: "#fff"
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
},
|
|
2078
|
-
variants: [{
|
|
2079
|
-
props: {
|
|
2080
|
-
size: "small"
|
|
2081
|
-
},
|
|
2082
|
-
style: {
|
|
2083
|
-
padding: "8.5px 14px"
|
|
2084
|
-
}
|
|
2085
|
-
}, {
|
|
2086
|
-
props: ({
|
|
2087
|
-
ownerState: t
|
|
2088
|
-
}) => t.multiline,
|
|
2089
|
-
style: {
|
|
2090
|
-
padding: 0
|
|
2091
|
-
}
|
|
2092
|
-
}, {
|
|
2093
|
-
props: ({
|
|
2094
|
-
ownerState: t
|
|
2095
|
-
}) => t.startAdornment,
|
|
2096
|
-
style: {
|
|
2097
|
-
paddingLeft: 0
|
|
2098
|
-
}
|
|
2099
|
-
}, {
|
|
2100
|
-
props: ({
|
|
2101
|
-
ownerState: t
|
|
2102
|
-
}) => t.endAdornment,
|
|
2103
|
-
style: {
|
|
2104
|
-
paddingRight: 0
|
|
2105
|
-
}
|
|
2106
|
-
}]
|
|
2107
|
-
}))), Ke = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
2108
|
-
const s = me({
|
|
2109
|
-
props: t,
|
|
2110
|
-
name: "MuiOutlinedInput"
|
|
2111
|
-
}), {
|
|
2112
|
-
components: p = {},
|
|
2113
|
-
fullWidth: c = !1,
|
|
2114
|
-
inputComponent: l = "input",
|
|
2115
|
-
label: i,
|
|
2116
|
-
multiline: a = !1,
|
|
2117
|
-
notched: m,
|
|
2118
|
-
slots: h = {},
|
|
2119
|
-
slotProps: E = {},
|
|
2120
|
-
type: w = "text",
|
|
2121
|
-
...y
|
|
2122
|
-
} = s, v = At(s), n = To(), T = Eo({
|
|
2123
|
-
props: s,
|
|
2124
|
-
muiFormControl: n,
|
|
2125
|
-
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
2126
|
-
}), g = {
|
|
2127
|
-
...s,
|
|
2128
|
-
color: T.color || "primary",
|
|
2129
|
-
disabled: T.disabled,
|
|
2130
|
-
error: T.error,
|
|
2131
|
-
focused: T.focused,
|
|
2132
|
-
formControl: n,
|
|
2133
|
-
fullWidth: c,
|
|
2134
|
-
hiddenLabel: T.hiddenLabel,
|
|
2135
|
-
multiline: a,
|
|
2136
|
-
size: T.size,
|
|
2137
|
-
type: w
|
|
2138
|
-
}, P = h.root ?? p.Root ?? Ft, f = h.input ?? p.Input ?? Lt, [R, O] = fe("notchedOutline", {
|
|
2139
|
-
elementType: $t,
|
|
2140
|
-
className: v.notchedOutline,
|
|
2141
|
-
shouldForwardComponentProp: !0,
|
|
2142
|
-
ownerState: g,
|
|
2143
|
-
externalForwardedProps: {
|
|
2144
|
-
slots: h,
|
|
2145
|
-
slotProps: E
|
|
2146
|
-
},
|
|
2147
|
-
additionalProps: {
|
|
2148
|
-
label: i != null && i !== "" && T.required ? /* @__PURE__ */ _e(d.Fragment, {
|
|
2149
|
-
children: [i, " ", "*"]
|
|
2150
|
-
}) : i
|
|
2151
|
-
}
|
|
2152
|
-
});
|
|
2153
|
-
return /* @__PURE__ */ _(go, {
|
|
2154
|
-
slots: {
|
|
2155
|
-
root: P,
|
|
2156
|
-
input: f
|
|
2157
|
-
},
|
|
2158
|
-
slotProps: E,
|
|
2159
|
-
renderSuffix: ($) => /* @__PURE__ */ _(R, {
|
|
2160
|
-
...O,
|
|
2161
|
-
notched: typeof m < "u" ? m : !!($.startAdornment || $.filled || $.focused)
|
|
2162
|
-
}),
|
|
2163
|
-
fullWidth: c,
|
|
2164
|
-
inputComponent: l,
|
|
2165
|
-
multiline: a,
|
|
2166
|
-
ref: r,
|
|
2167
|
-
type: w,
|
|
2168
|
-
...y,
|
|
2169
|
-
classes: {
|
|
2170
|
-
...v,
|
|
2171
|
-
notchedOutline: null
|
|
2172
|
-
}
|
|
2173
|
-
});
|
|
2174
|
-
});
|
|
2175
|
-
process.env.NODE_ENV !== "production" && (Ke.propTypes = {
|
|
2176
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2177
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2178
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
2179
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
2180
|
-
/**
|
|
2181
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
2182
|
-
* The name can be confusing, as it's more like an autofill.
|
|
2183
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
2184
|
-
*/
|
|
2185
|
-
autoComplete: e.string,
|
|
2186
|
-
/**
|
|
2187
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
2188
|
-
*/
|
|
2189
|
-
autoFocus: e.bool,
|
|
2190
|
-
/**
|
|
2191
|
-
* Override or extend the styles applied to the component.
|
|
2192
|
-
*/
|
|
2193
|
-
classes: e.object,
|
|
2194
|
-
/**
|
|
2195
|
-
* The color of the component.
|
|
2196
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
2197
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
2198
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
2199
|
-
*/
|
|
2200
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
2201
|
-
/**
|
|
2202
|
-
* The components used for each slot inside.
|
|
2203
|
-
*
|
|
2204
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2205
|
-
*
|
|
2206
|
-
* @default {}
|
|
2207
|
-
*/
|
|
2208
|
-
components: e.shape({
|
|
2209
|
-
Input: e.elementType,
|
|
2210
|
-
Root: e.elementType
|
|
2211
|
-
}),
|
|
2212
|
-
/**
|
|
2213
|
-
* The default value. Use when the component is not controlled.
|
|
2214
|
-
*/
|
|
2215
|
-
defaultValue: e.any,
|
|
2216
|
-
/**
|
|
2217
|
-
* If `true`, the component is disabled.
|
|
2218
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
2219
|
-
*/
|
|
2220
|
-
disabled: e.bool,
|
|
2221
|
-
/**
|
|
2222
|
-
* End `InputAdornment` for this component.
|
|
2223
|
-
*/
|
|
2224
|
-
endAdornment: e.node,
|
|
2225
|
-
/**
|
|
2226
|
-
* If `true`, the `input` will indicate an error.
|
|
2227
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
2228
|
-
*/
|
|
2229
|
-
error: e.bool,
|
|
2230
|
-
/**
|
|
2231
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
2232
|
-
* @default false
|
|
2233
|
-
*/
|
|
2234
|
-
fullWidth: e.bool,
|
|
2235
|
-
/**
|
|
2236
|
-
* The id of the `input` element.
|
|
2237
|
-
*/
|
|
2238
|
-
id: e.string,
|
|
2239
|
-
/**
|
|
2240
|
-
* The component used for the `input` element.
|
|
2241
|
-
* Either a string to use a HTML element or a component.
|
|
2242
|
-
* @default 'input'
|
|
2243
|
-
*/
|
|
2244
|
-
inputComponent: e.elementType,
|
|
2245
|
-
/**
|
|
2246
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
2247
|
-
* @default {}
|
|
2248
|
-
*/
|
|
2249
|
-
inputProps: e.object,
|
|
2250
|
-
/**
|
|
2251
|
-
* Pass a ref to the `input` element.
|
|
2252
|
-
*/
|
|
2253
|
-
inputRef: Te,
|
|
2254
|
-
/**
|
|
2255
|
-
* The label of the `input`. It is only used for layout. The actual labelling
|
|
2256
|
-
* is handled by `InputLabel`.
|
|
2257
|
-
*/
|
|
2258
|
-
label: e.node,
|
|
2259
|
-
/**
|
|
2260
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
2261
|
-
* FormControl.
|
|
2262
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
2263
|
-
*/
|
|
2264
|
-
margin: e.oneOf(["dense", "none"]),
|
|
2265
|
-
/**
|
|
2266
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
2267
|
-
*/
|
|
2268
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
2269
|
-
/**
|
|
2270
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
2271
|
-
*/
|
|
2272
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
2273
|
-
/**
|
|
2274
|
-
* If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
|
|
2275
|
-
* @default false
|
|
2276
|
-
*/
|
|
2277
|
-
multiline: e.bool,
|
|
2278
|
-
/**
|
|
2279
|
-
* Name attribute of the `input` element.
|
|
2280
|
-
*/
|
|
2281
|
-
name: e.string,
|
|
2282
|
-
/**
|
|
2283
|
-
* If `true`, the outline is notched to accommodate the label.
|
|
2284
|
-
*/
|
|
2285
|
-
notched: e.bool,
|
|
2286
|
-
/**
|
|
2287
|
-
* Callback fired when the value is changed.
|
|
2288
|
-
*
|
|
2289
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
2290
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
2291
|
-
*/
|
|
2292
|
-
onChange: e.func,
|
|
2293
|
-
/**
|
|
2294
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
2295
|
-
*/
|
|
2296
|
-
placeholder: e.string,
|
|
2297
|
-
/**
|
|
2298
|
-
* It prevents the user from changing the value of the field
|
|
2299
|
-
* (not from interacting with the field).
|
|
2300
|
-
*/
|
|
2301
|
-
readOnly: e.bool,
|
|
2302
|
-
/**
|
|
2303
|
-
* If `true`, the `input` element is required.
|
|
2304
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
2305
|
-
*/
|
|
2306
|
-
required: e.bool,
|
|
2307
|
-
/**
|
|
2308
|
-
* Number of rows to display when multiline option is set to true.
|
|
2309
|
-
*/
|
|
2310
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
2311
|
-
/**
|
|
2312
|
-
* The props used for each slot inside.
|
|
2313
|
-
* @default {}
|
|
2314
|
-
*/
|
|
2315
|
-
slotProps: e.shape({
|
|
2316
|
-
input: e.object,
|
|
2317
|
-
notchedOutline: e.oneOfType([e.func, e.object]),
|
|
2318
|
-
root: e.object
|
|
2319
|
-
}),
|
|
2320
|
-
/**
|
|
2321
|
-
* The components used for each slot inside.
|
|
2322
|
-
* @default {}
|
|
2323
|
-
*/
|
|
2324
|
-
slots: e.shape({
|
|
2325
|
-
input: e.elementType,
|
|
2326
|
-
notchedOutline: e.elementType,
|
|
2327
|
-
root: e.elementType
|
|
2328
|
-
}),
|
|
2329
|
-
/**
|
|
2330
|
-
* Start `InputAdornment` for this component.
|
|
2331
|
-
*/
|
|
2332
|
-
startAdornment: e.node,
|
|
2333
|
-
/**
|
|
2334
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2335
|
-
*/
|
|
2336
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2337
|
-
/**
|
|
2338
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
|
|
2339
|
-
* @default 'text'
|
|
2340
|
-
*/
|
|
2341
|
-
type: e.string,
|
|
2342
|
-
/**
|
|
2343
|
-
* The value of the `input` element, required for a controlled component.
|
|
2344
|
-
*/
|
|
2345
|
-
value: e.any
|
|
2346
|
-
});
|
|
2347
|
-
Ke.muiName = "Input";
|
|
2348
|
-
function Fo(o) {
|
|
2349
|
-
return le("MuiSelect", o);
|
|
2350
|
-
}
|
|
2351
|
-
const ve = ce("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
2352
|
-
var uo;
|
|
2353
|
-
const Dt = F(Mo, {
|
|
2354
|
-
name: "MuiSelect",
|
|
2355
|
-
slot: "Select",
|
|
2356
|
-
overridesResolver: (o, t) => {
|
|
2357
|
-
const {
|
|
2358
|
-
ownerState: r
|
|
2359
|
-
} = o;
|
|
2360
|
-
return [
|
|
2361
|
-
// Win specificity over the input base
|
|
2362
|
-
{
|
|
2363
|
-
[`&.${ve.select}`]: t.select
|
|
2364
|
-
},
|
|
2365
|
-
{
|
|
2366
|
-
[`&.${ve.select}`]: t[r.variant]
|
|
2367
|
-
},
|
|
2368
|
-
{
|
|
2369
|
-
[`&.${ve.error}`]: t.error
|
|
2370
|
-
},
|
|
2371
|
-
{
|
|
2372
|
-
[`&.${ve.multiple}`]: t.multiple
|
|
2373
|
-
}
|
|
2374
|
-
];
|
|
2375
|
-
}
|
|
2376
|
-
})({
|
|
2377
|
-
// Win specificity over the input base
|
|
2378
|
-
[`&.${ve.select}`]: {
|
|
2379
|
-
height: "auto",
|
|
2380
|
-
// Resets for multiple select with chips
|
|
2381
|
-
minHeight: "1.4375em",
|
|
2382
|
-
// Required for select\text-field height consistency
|
|
2383
|
-
textOverflow: "ellipsis",
|
|
2384
|
-
whiteSpace: "nowrap",
|
|
2385
|
-
overflow: "hidden"
|
|
2386
|
-
}
|
|
2387
|
-
}), kt = F(_o, {
|
|
2388
|
-
name: "MuiSelect",
|
|
2389
|
-
slot: "Icon",
|
|
2390
|
-
overridesResolver: (o, t) => {
|
|
2391
|
-
const {
|
|
2392
|
-
ownerState: r
|
|
2393
|
-
} = o;
|
|
2394
|
-
return [t.icon, r.variant && t[`icon${Me(r.variant)}`], r.open && t.iconOpen];
|
|
2395
|
-
}
|
|
2396
|
-
})({}), jt = F("input", {
|
|
2397
|
-
shouldForwardProp: (o) => Wo(o) && o !== "classes",
|
|
2398
|
-
name: "MuiSelect",
|
|
2399
|
-
slot: "NativeInput"
|
|
2400
|
-
})({
|
|
2401
|
-
bottom: 0,
|
|
2402
|
-
left: 0,
|
|
2403
|
-
position: "absolute",
|
|
2404
|
-
opacity: 0,
|
|
2405
|
-
pointerEvents: "none",
|
|
2406
|
-
width: "100%",
|
|
2407
|
-
boxSizing: "border-box"
|
|
2408
|
-
});
|
|
2409
|
-
function po(o, t) {
|
|
2410
|
-
return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
|
|
2411
|
-
}
|
|
2412
|
-
function Ut(o) {
|
|
2413
|
-
return o == null || typeof o == "string" && !o.trim();
|
|
2414
|
-
}
|
|
2415
|
-
const Wt = (o) => {
|
|
2416
|
-
const {
|
|
2417
|
-
classes: t,
|
|
2418
|
-
variant: r,
|
|
2419
|
-
disabled: s,
|
|
2420
|
-
multiple: p,
|
|
2421
|
-
open: c,
|
|
2422
|
-
error: l
|
|
2423
|
-
} = o, i = {
|
|
2424
|
-
select: ["select", r, s && "disabled", p && "multiple", l && "error"],
|
|
2425
|
-
icon: ["icon", `icon${Me(r)}`, c && "iconOpen", s && "disabled"],
|
|
2426
|
-
nativeInput: ["nativeInput"]
|
|
2427
|
-
};
|
|
2428
|
-
return se(i, Fo, t);
|
|
2429
|
-
}, $o = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
2430
|
-
var Qe, eo;
|
|
2431
|
-
const {
|
|
2432
|
-
"aria-describedby": s,
|
|
2433
|
-
"aria-label": p,
|
|
2434
|
-
autoFocus: c,
|
|
2435
|
-
autoWidth: l,
|
|
2436
|
-
children: i,
|
|
2437
|
-
className: a,
|
|
2438
|
-
defaultOpen: m,
|
|
2439
|
-
defaultValue: h,
|
|
2440
|
-
disabled: E,
|
|
2441
|
-
displayEmpty: w,
|
|
2442
|
-
error: y = !1,
|
|
2443
|
-
IconComponent: v,
|
|
2444
|
-
inputRef: n,
|
|
2445
|
-
labelId: T,
|
|
2446
|
-
MenuProps: g = {},
|
|
2447
|
-
multiple: P,
|
|
2448
|
-
name: f,
|
|
2449
|
-
onBlur: R,
|
|
2450
|
-
onChange: O,
|
|
2451
|
-
onClose: $,
|
|
2452
|
-
onFocus: B,
|
|
2453
|
-
onOpen: I,
|
|
2454
|
-
open: k,
|
|
2455
|
-
readOnly: K,
|
|
2456
|
-
renderValue: W,
|
|
2457
|
-
required: z,
|
|
2458
|
-
SelectDisplayProps: V = {},
|
|
2459
|
-
tabIndex: H,
|
|
2460
|
-
// catching `type` from Input which makes no sense for SelectInput
|
|
2461
|
-
type: J,
|
|
2462
|
-
value: Y,
|
|
2463
|
-
variant: Q = "standard",
|
|
2464
|
-
...j
|
|
2465
|
-
} = t, [b, L] = to({
|
|
2466
|
-
controlled: Y,
|
|
2467
|
-
default: h,
|
|
2468
|
-
name: "Select"
|
|
2469
|
-
}), [ee, xe] = to({
|
|
2470
|
-
controlled: k,
|
|
2471
|
-
default: m,
|
|
2472
|
-
name: "Select"
|
|
2473
|
-
}), Oe = d.useRef(null), G = d.useRef(null), [Z, Ae] = d.useState(null), {
|
|
2474
|
-
current: be
|
|
2475
|
-
} = d.useRef(k != null), [Fe, Ce] = d.useState(), S = Ve(r, n), x = d.useCallback((u) => {
|
|
2476
|
-
G.current = u, u && Ae(u);
|
|
2477
|
-
}, []), A = Z == null ? void 0 : Z.parentNode;
|
|
2478
|
-
d.useImperativeHandle(S, () => ({
|
|
2479
|
-
focus: () => {
|
|
2480
|
-
G.current.focus();
|
|
2481
|
-
},
|
|
2482
|
-
node: Oe.current,
|
|
2483
|
-
value: b
|
|
2484
|
-
}), [b]), d.useEffect(() => {
|
|
2485
|
-
m && ee && Z && !be && (Ce(l ? null : A.clientWidth), G.current.focus());
|
|
2486
|
-
}, [Z, l]), d.useEffect(() => {
|
|
2487
|
-
c && G.current.focus();
|
|
2488
|
-
}, [c]), d.useEffect(() => {
|
|
2489
|
-
if (!T)
|
|
2490
|
-
return;
|
|
2491
|
-
const u = Ne(G.current).getElementById(T);
|
|
2492
|
-
if (u) {
|
|
2493
|
-
const C = () => {
|
|
2494
|
-
getSelection().isCollapsed && G.current.focus();
|
|
2495
|
-
};
|
|
2496
|
-
return u.addEventListener("click", C), () => {
|
|
2497
|
-
u.removeEventListener("click", C);
|
|
2498
|
-
};
|
|
2499
|
-
}
|
|
2500
|
-
}, [T]);
|
|
2501
|
-
const U = (u, C) => {
|
|
2502
|
-
u ? I && I(C) : $ && $(C), be || (Ce(l ? null : A.clientWidth), xe(u));
|
|
2503
|
-
}, oe = (u) => {
|
|
2504
|
-
u.button === 0 && (u.preventDefault(), G.current.focus(), U(!0, u));
|
|
2505
|
-
}, te = (u) => {
|
|
2506
|
-
U(!1, u);
|
|
2507
|
-
}, ie = d.Children.toArray(i), Re = (u) => {
|
|
2508
|
-
const C = ie.find((D) => D.props.value === u.target.value);
|
|
2509
|
-
C !== void 0 && (L(C.props.value), O && O(u, C));
|
|
2510
|
-
}, Pe = (u) => (C) => {
|
|
2511
|
-
let D;
|
|
2512
|
-
if (C.currentTarget.hasAttribute("tabindex")) {
|
|
2513
|
-
if (P) {
|
|
2514
|
-
D = Array.isArray(b) ? b.slice() : [];
|
|
2515
|
-
const de = b.indexOf(u.props.value);
|
|
2516
|
-
de === -1 ? D.push(u.props.value) : D.splice(de, 1);
|
|
2517
|
-
} else
|
|
2518
|
-
D = u.props.value;
|
|
2519
|
-
if (u.props.onClick && u.props.onClick(C), b !== D && (L(D), O)) {
|
|
2520
|
-
const de = C.nativeEvent || C, oo = new de.constructor(de.type, de);
|
|
2521
|
-
Object.defineProperty(oo, "target", {
|
|
2522
|
-
writable: !0,
|
|
2523
|
-
value: {
|
|
2524
|
-
value: D,
|
|
2525
|
-
name: f
|
|
2526
|
-
}
|
|
2527
|
-
}), O(oo, u);
|
|
2528
|
-
}
|
|
2529
|
-
P || U(!1, C);
|
|
2530
|
-
}
|
|
2531
|
-
}, ae = (u) => {
|
|
2532
|
-
K || [
|
|
2533
|
-
" ",
|
|
2534
|
-
"ArrowUp",
|
|
2535
|
-
"ArrowDown",
|
|
2536
|
-
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
2537
|
-
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
2538
|
-
"Enter"
|
|
2539
|
-
].includes(u.key) && (u.preventDefault(), U(!0, u));
|
|
2540
|
-
}, ne = Z !== null && ee, q = (u) => {
|
|
2541
|
-
!ne && R && (Object.defineProperty(u, "target", {
|
|
2542
|
-
writable: !0,
|
|
2543
|
-
value: {
|
|
2544
|
-
value: b,
|
|
2545
|
-
name: f
|
|
2546
|
-
}
|
|
2547
|
-
}), R(u));
|
|
2548
|
-
};
|
|
2549
|
-
delete j["aria-invalid"];
|
|
2550
|
-
let pe, Ge;
|
|
2551
|
-
const Se = [];
|
|
2552
|
-
let we = !1, $e = !1;
|
|
2553
|
-
(et({
|
|
2554
|
-
value: b
|
|
2555
|
-
}) || w) && (W ? pe = W(b) : we = !0);
|
|
2556
|
-
const Do = ie.map((u) => {
|
|
2557
|
-
if (!/* @__PURE__ */ d.isValidElement(u))
|
|
2558
|
-
return null;
|
|
2559
|
-
process.env.NODE_ENV !== "production" && Ye.isFragment(u) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2560
|
-
`));
|
|
2561
|
-
let C;
|
|
2562
|
-
if (P) {
|
|
2563
|
-
if (!Array.isArray(b))
|
|
2564
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : jo(2));
|
|
2565
|
-
C = b.some((D) => po(D, u.props.value)), C && we && Se.push(u.props.children);
|
|
2566
|
-
} else
|
|
2567
|
-
C = po(b, u.props.value), C && we && (Ge = u.props.children);
|
|
2568
|
-
return C && ($e = !0), /* @__PURE__ */ d.cloneElement(u, {
|
|
2569
|
-
"aria-selected": C ? "true" : "false",
|
|
2570
|
-
onClick: Pe(u),
|
|
2571
|
-
onKeyUp: (D) => {
|
|
2572
|
-
D.key === " " && D.preventDefault(), u.props.onKeyUp && u.props.onKeyUp(D);
|
|
2573
|
-
},
|
|
2574
|
-
role: "option",
|
|
2575
|
-
selected: C,
|
|
2576
|
-
value: void 0,
|
|
2577
|
-
// The value is most likely not a valid HTML attribute.
|
|
2578
|
-
"data-value": u.props.value
|
|
2579
|
-
// Instead, we provide it as a data attribute.
|
|
2580
|
-
});
|
|
2581
|
-
});
|
|
2582
|
-
process.env.NODE_ENV !== "production" && d.useEffect(() => {
|
|
2583
|
-
if (!$e && !P && b !== "") {
|
|
2584
|
-
const u = ie.map((C) => C.props.value);
|
|
2585
|
-
console.warn([`MUI: You have provided an out-of-range value \`${b}\` for the select ${f ? `(name="${f}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${u.filter((C) => C != null).map((C) => `\`${C}\``).join(", ") || '""'}.`].join(`
|
|
2586
|
-
`));
|
|
2587
|
-
}
|
|
2588
|
-
}, [$e, ie, P, f, b]), we && (P ? Se.length === 0 ? pe = null : pe = Se.reduce((u, C, D) => (u.push(C), D < Se.length - 1 && u.push(", "), u), []) : pe = Ge);
|
|
2589
|
-
let Xe = Fe;
|
|
2590
|
-
!l && be && Z && (Xe = A.clientWidth);
|
|
2591
|
-
let Le;
|
|
2592
|
-
typeof H < "u" ? Le = H : Le = E ? null : 0;
|
|
2593
|
-
const Ze = V.id || (f ? `mui-component-select-${f}` : void 0), Ie = {
|
|
2594
|
-
...t,
|
|
2595
|
-
variant: Q,
|
|
2596
|
-
value: b,
|
|
2597
|
-
open: ne,
|
|
2598
|
-
error: y
|
|
2599
|
-
}, De = Wt(Ie), ke = {
|
|
2600
|
-
...g.PaperProps,
|
|
2601
|
-
...(Qe = g.slotProps) == null ? void 0 : Qe.paper
|
|
2602
|
-
}, ko = {
|
|
2603
|
-
...g.MenuListProps,
|
|
2604
|
-
...(eo = g.slotProps) == null ? void 0 : eo.list
|
|
2605
|
-
}, Je = ot();
|
|
2606
|
-
return /* @__PURE__ */ _e(d.Fragment, {
|
|
2607
|
-
children: [/* @__PURE__ */ _(Dt, {
|
|
2608
|
-
as: "div",
|
|
2609
|
-
ref: x,
|
|
2610
|
-
tabIndex: Le,
|
|
2611
|
-
role: "combobox",
|
|
2612
|
-
"aria-controls": ne ? Je : void 0,
|
|
2613
|
-
"aria-disabled": E ? "true" : void 0,
|
|
2614
|
-
"aria-expanded": ne ? "true" : "false",
|
|
2615
|
-
"aria-haspopup": "listbox",
|
|
2616
|
-
"aria-label": p,
|
|
2617
|
-
"aria-labelledby": [T, Ze].filter(Boolean).join(" ") || void 0,
|
|
2618
|
-
"aria-describedby": s,
|
|
2619
|
-
"aria-required": z ? "true" : void 0,
|
|
2620
|
-
"aria-invalid": y ? "true" : void 0,
|
|
2621
|
-
onKeyDown: ae,
|
|
2622
|
-
onMouseDown: E || K ? null : oe,
|
|
2623
|
-
onBlur: q,
|
|
2624
|
-
onFocus: B,
|
|
2625
|
-
...V,
|
|
2626
|
-
ownerState: Ie,
|
|
2627
|
-
className: re(V.className, De.select, a),
|
|
2628
|
-
id: Ze,
|
|
2629
|
-
children: Ut(pe) ? (
|
|
2630
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
2631
|
-
uo || (uo = /* @__PURE__ */ _("span", {
|
|
2632
|
-
className: "notranslate",
|
|
2633
|
-
"aria-hidden": !0,
|
|
2634
|
-
children: ""
|
|
2635
|
-
}))
|
|
2636
|
-
) : pe
|
|
2637
|
-
}), /* @__PURE__ */ _(jt, {
|
|
2638
|
-
"aria-invalid": y,
|
|
2639
|
-
value: Array.isArray(b) ? b.join(",") : b,
|
|
2640
|
-
name: f,
|
|
2641
|
-
ref: Oe,
|
|
2642
|
-
"aria-hidden": !0,
|
|
2643
|
-
onChange: Re,
|
|
2644
|
-
tabIndex: -1,
|
|
2645
|
-
disabled: E,
|
|
2646
|
-
className: De.nativeInput,
|
|
2647
|
-
autoFocus: c,
|
|
2648
|
-
required: z,
|
|
2649
|
-
...j,
|
|
2650
|
-
ownerState: Ie
|
|
2651
|
-
}), /* @__PURE__ */ _(kt, {
|
|
2652
|
-
as: v,
|
|
2653
|
-
className: De.icon,
|
|
2654
|
-
ownerState: Ie
|
|
2655
|
-
}), /* @__PURE__ */ _(No, {
|
|
2656
|
-
id: `menu-${f || ""}`,
|
|
2657
|
-
anchorEl: A,
|
|
2658
|
-
open: ne,
|
|
2659
|
-
onClose: te,
|
|
2660
|
-
anchorOrigin: {
|
|
2661
|
-
vertical: "bottom",
|
|
2662
|
-
horizontal: "center"
|
|
2663
|
-
},
|
|
2664
|
-
transformOrigin: {
|
|
2665
|
-
vertical: "top",
|
|
2666
|
-
horizontal: "center"
|
|
2667
|
-
},
|
|
2668
|
-
...g,
|
|
2669
|
-
slotProps: {
|
|
2670
|
-
...g.slotProps,
|
|
2671
|
-
list: {
|
|
2672
|
-
"aria-labelledby": T,
|
|
2673
|
-
role: "listbox",
|
|
2674
|
-
"aria-multiselectable": P ? "true" : void 0,
|
|
2675
|
-
disableListWrap: !0,
|
|
2676
|
-
id: Je,
|
|
2677
|
-
...ko
|
|
2678
|
-
},
|
|
2679
|
-
paper: {
|
|
2680
|
-
...ke,
|
|
2681
|
-
style: {
|
|
2682
|
-
minWidth: Xe,
|
|
2683
|
-
...ke != null ? ke.style : null
|
|
2684
|
-
}
|
|
2685
|
-
}
|
|
2686
|
-
},
|
|
2687
|
-
children: Do
|
|
2688
|
-
})]
|
|
2689
|
-
});
|
|
2690
|
-
});
|
|
2691
|
-
process.env.NODE_ENV !== "production" && ($o.propTypes = {
|
|
2692
|
-
/**
|
|
2693
|
-
* @ignore
|
|
2694
|
-
*/
|
|
2695
|
-
"aria-describedby": e.string,
|
|
2696
|
-
/**
|
|
2697
|
-
* @ignore
|
|
2698
|
-
*/
|
|
2699
|
-
"aria-label": e.string,
|
|
2700
|
-
/**
|
|
2701
|
-
* @ignore
|
|
2702
|
-
*/
|
|
2703
|
-
autoFocus: e.bool,
|
|
2704
|
-
/**
|
|
2705
|
-
* If `true`, the width of the popover will automatically be set according to the items inside the
|
|
2706
|
-
* menu, otherwise it will be at least the width of the select input.
|
|
2707
|
-
*/
|
|
2708
|
-
autoWidth: e.bool,
|
|
2709
|
-
/**
|
|
2710
|
-
* The option elements to populate the select with.
|
|
2711
|
-
* Can be some `<MenuItem>` elements.
|
|
2712
|
-
*/
|
|
2713
|
-
children: e.node,
|
|
2714
|
-
/**
|
|
2715
|
-
* Override or extend the styles applied to the component.
|
|
2716
|
-
*/
|
|
2717
|
-
classes: e.object,
|
|
2718
|
-
/**
|
|
2719
|
-
* The CSS class name of the select element.
|
|
2720
|
-
*/
|
|
2721
|
-
className: e.string,
|
|
2722
|
-
/**
|
|
2723
|
-
* If `true`, the component is toggled on mount. Use when the component open state is not controlled.
|
|
2724
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
2725
|
-
*/
|
|
2726
|
-
defaultOpen: e.bool,
|
|
2727
|
-
/**
|
|
2728
|
-
* The default value. Use when the component is not controlled.
|
|
2729
|
-
*/
|
|
2730
|
-
defaultValue: e.any,
|
|
2731
|
-
/**
|
|
2732
|
-
* If `true`, the select is disabled.
|
|
2733
|
-
*/
|
|
2734
|
-
disabled: e.bool,
|
|
2735
|
-
/**
|
|
2736
|
-
* If `true`, the selected item is displayed even if its value is empty.
|
|
2737
|
-
*/
|
|
2738
|
-
displayEmpty: e.bool,
|
|
2739
|
-
/**
|
|
2740
|
-
* If `true`, the `select input` will indicate an error.
|
|
2741
|
-
*/
|
|
2742
|
-
error: e.bool,
|
|
2743
|
-
/**
|
|
2744
|
-
* The icon that displays the arrow.
|
|
2745
|
-
*/
|
|
2746
|
-
IconComponent: e.elementType.isRequired,
|
|
2747
|
-
/**
|
|
2748
|
-
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
2749
|
-
* Equivalent to `ref`
|
|
2750
|
-
*/
|
|
2751
|
-
inputRef: Te,
|
|
2752
|
-
/**
|
|
2753
|
-
* The ID of an element that acts as an additional label. The Select will
|
|
2754
|
-
* be labelled by the additional label and the selected value.
|
|
2755
|
-
*/
|
|
2756
|
-
labelId: e.string,
|
|
2757
|
-
/**
|
|
2758
|
-
* Props applied to the [`Menu`](/material-ui/api/menu/) element.
|
|
2759
|
-
*/
|
|
2760
|
-
MenuProps: e.object,
|
|
2761
|
-
/**
|
|
2762
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
2763
|
-
*/
|
|
2764
|
-
multiple: e.bool,
|
|
2765
|
-
/**
|
|
2766
|
-
* Name attribute of the `select` or hidden `input` element.
|
|
2767
|
-
*/
|
|
2768
|
-
name: e.string,
|
|
2769
|
-
/**
|
|
2770
|
-
* @ignore
|
|
2771
|
-
*/
|
|
2772
|
-
onBlur: e.func,
|
|
2773
|
-
/**
|
|
2774
|
-
* Callback fired when a menu item is selected.
|
|
2775
|
-
*
|
|
2776
|
-
* @param {object} event The event source of the callback.
|
|
2777
|
-
* You can pull out the new value by accessing `event.target.value` (any).
|
|
2778
|
-
* @param {object} [child] The react element that was selected.
|
|
2779
|
-
*/
|
|
2780
|
-
onChange: e.func,
|
|
2781
|
-
/**
|
|
2782
|
-
* Callback fired when the component requests to be closed.
|
|
2783
|
-
* Use in controlled mode (see open).
|
|
2784
|
-
*
|
|
2785
|
-
* @param {object} event The event source of the callback.
|
|
2786
|
-
*/
|
|
2787
|
-
onClose: e.func,
|
|
2788
|
-
/**
|
|
2789
|
-
* @ignore
|
|
2790
|
-
*/
|
|
2791
|
-
onFocus: e.func,
|
|
2792
|
-
/**
|
|
2793
|
-
* Callback fired when the component requests to be opened.
|
|
2794
|
-
* Use in controlled mode (see open).
|
|
2795
|
-
*
|
|
2796
|
-
* @param {object} event The event source of the callback.
|
|
2797
|
-
*/
|
|
2798
|
-
onOpen: e.func,
|
|
2799
|
-
/**
|
|
2800
|
-
* If `true`, the component is shown.
|
|
2801
|
-
*/
|
|
2802
|
-
open: e.bool,
|
|
2803
|
-
/**
|
|
2804
|
-
* @ignore
|
|
2805
|
-
*/
|
|
2806
|
-
readOnly: e.bool,
|
|
2807
|
-
/**
|
|
2808
|
-
* Render the selected value.
|
|
2809
|
-
*
|
|
2810
|
-
* @param {any} value The `value` provided to the component.
|
|
2811
|
-
* @returns {ReactNode}
|
|
2812
|
-
*/
|
|
2813
|
-
renderValue: e.func,
|
|
2814
|
-
/**
|
|
2815
|
-
* If `true`, the component is required.
|
|
2816
|
-
*/
|
|
2817
|
-
required: e.bool,
|
|
2818
|
-
/**
|
|
2819
|
-
* Props applied to the clickable div element.
|
|
2820
|
-
*/
|
|
2821
|
-
SelectDisplayProps: e.object,
|
|
2822
|
-
/**
|
|
2823
|
-
* @ignore
|
|
2824
|
-
*/
|
|
2825
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
2826
|
-
/**
|
|
2827
|
-
* @ignore
|
|
2828
|
-
*/
|
|
2829
|
-
type: e.any,
|
|
2830
|
-
/**
|
|
2831
|
-
* The input value.
|
|
2832
|
-
*/
|
|
2833
|
-
value: e.any,
|
|
2834
|
-
/**
|
|
2835
|
-
* The variant to use.
|
|
2836
|
-
*/
|
|
2837
|
-
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
2838
|
-
});
|
|
2839
|
-
const zt = (o) => {
|
|
2840
|
-
const {
|
|
2841
|
-
classes: t
|
|
2842
|
-
} = o, s = se({
|
|
2843
|
-
root: ["root"]
|
|
2844
|
-
}, Fo, t);
|
|
2845
|
-
return {
|
|
2846
|
-
...t,
|
|
2847
|
-
...s
|
|
2848
|
-
};
|
|
2849
|
-
}, He = {
|
|
2850
|
-
name: "MuiSelect",
|
|
2851
|
-
slot: "Root",
|
|
2852
|
-
shouldForwardProp: (o) => ue(o) && o !== "variant"
|
|
2853
|
-
}, Vt = F(Be, He)(""), Yt = F(Ke, He)(""), Bt = F(Vo, He)(""), Lo = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
2854
|
-
const s = me({
|
|
2855
|
-
name: "MuiSelect",
|
|
2856
|
-
props: t
|
|
2857
|
-
}), {
|
|
2858
|
-
autoWidth: p = !1,
|
|
2859
|
-
children: c,
|
|
2860
|
-
classes: l = {},
|
|
2861
|
-
className: i,
|
|
2862
|
-
defaultOpen: a = !1,
|
|
2863
|
-
displayEmpty: m = !1,
|
|
2864
|
-
IconComponent: h = ut,
|
|
2865
|
-
id: E,
|
|
2866
|
-
input: w,
|
|
2867
|
-
inputProps: y,
|
|
2868
|
-
label: v,
|
|
2869
|
-
labelId: n,
|
|
2870
|
-
MenuProps: T,
|
|
2871
|
-
multiple: g = !1,
|
|
2872
|
-
native: P = !1,
|
|
2873
|
-
onClose: f,
|
|
2874
|
-
onOpen: R,
|
|
2875
|
-
open: O,
|
|
2876
|
-
renderValue: $,
|
|
2877
|
-
SelectDisplayProps: B,
|
|
2878
|
-
variant: I = "outlined",
|
|
2879
|
-
...k
|
|
2880
|
-
} = s, K = P ? xo : $o, W = To(), z = Eo({
|
|
2881
|
-
props: s,
|
|
2882
|
-
muiFormControl: W,
|
|
2883
|
-
states: ["variant", "error"]
|
|
2884
|
-
}), V = z.variant || I, H = {
|
|
2885
|
-
...s,
|
|
2886
|
-
variant: V,
|
|
2887
|
-
classes: l
|
|
2888
|
-
}, J = zt(H), {
|
|
2889
|
-
root: Y,
|
|
2890
|
-
...Q
|
|
2891
|
-
} = J, j = w || {
|
|
2892
|
-
standard: /* @__PURE__ */ _(Vt, {
|
|
2893
|
-
ownerState: H
|
|
2894
|
-
}),
|
|
2895
|
-
outlined: /* @__PURE__ */ _(Yt, {
|
|
2896
|
-
label: v,
|
|
2897
|
-
ownerState: H
|
|
2898
|
-
}),
|
|
2899
|
-
filled: /* @__PURE__ */ _(Bt, {
|
|
2900
|
-
ownerState: H
|
|
2901
|
-
})
|
|
2902
|
-
}[V], b = Ve(r, nt(j));
|
|
2903
|
-
return /* @__PURE__ */ _(d.Fragment, {
|
|
2904
|
-
children: /* @__PURE__ */ d.cloneElement(j, {
|
|
2905
|
-
// Most of the logic is implemented in `SelectInput`.
|
|
2906
|
-
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
2907
|
-
inputComponent: K,
|
|
2908
|
-
inputProps: {
|
|
2909
|
-
children: c,
|
|
2910
|
-
error: z.error,
|
|
2911
|
-
IconComponent: h,
|
|
2912
|
-
variant: V,
|
|
2913
|
-
type: void 0,
|
|
2914
|
-
// We render a select. We can ignore the type provided by the `Input`.
|
|
2915
|
-
multiple: g,
|
|
2916
|
-
...P ? {
|
|
2917
|
-
id: E
|
|
2918
|
-
} : {
|
|
2919
|
-
autoWidth: p,
|
|
2920
|
-
defaultOpen: a,
|
|
2921
|
-
displayEmpty: m,
|
|
2922
|
-
labelId: n,
|
|
2923
|
-
MenuProps: T,
|
|
2924
|
-
onClose: f,
|
|
2925
|
-
onOpen: R,
|
|
2926
|
-
open: O,
|
|
2927
|
-
renderValue: $,
|
|
2928
|
-
SelectDisplayProps: {
|
|
2929
|
-
id: E,
|
|
2930
|
-
...B
|
|
2931
|
-
}
|
|
2932
|
-
},
|
|
2933
|
-
...y,
|
|
2934
|
-
classes: y ? fo(Q, y.classes) : Q,
|
|
2935
|
-
...w ? w.props.inputProps : {}
|
|
2936
|
-
},
|
|
2937
|
-
...(g && P || m) && V === "outlined" ? {
|
|
2938
|
-
notched: !0
|
|
2939
|
-
} : {},
|
|
2940
|
-
ref: b,
|
|
2941
|
-
className: re(j.props.className, i, J.root),
|
|
2942
|
-
// If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
|
|
2943
|
-
...!w && {
|
|
2944
|
-
variant: V
|
|
2945
|
-
},
|
|
2946
|
-
...k
|
|
2947
|
-
})
|
|
2948
|
-
});
|
|
2949
|
-
});
|
|
2950
|
-
process.env.NODE_ENV !== "production" && (Lo.propTypes = {
|
|
2951
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2952
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2953
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
2954
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
2955
|
-
/**
|
|
2956
|
-
* If `true`, the width of the popover will automatically be set according to the items inside the
|
|
2957
|
-
* menu, otherwise it will be at least the width of the select input.
|
|
2958
|
-
* @default false
|
|
2959
|
-
*/
|
|
2960
|
-
autoWidth: e.bool,
|
|
2961
|
-
/**
|
|
2962
|
-
* The option elements to populate the select with.
|
|
2963
|
-
* Can be some `MenuItem` when `native` is false and `option` when `native` is true.
|
|
2964
|
-
*
|
|
2965
|
-
* ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.
|
|
2966
|
-
*/
|
|
2967
|
-
children: e.node,
|
|
2968
|
-
/**
|
|
2969
|
-
* Override or extend the styles applied to the component.
|
|
2970
|
-
* @default {}
|
|
2971
|
-
*/
|
|
2972
|
-
classes: e.object,
|
|
2973
|
-
/**
|
|
2974
|
-
* @ignore
|
|
2975
|
-
*/
|
|
2976
|
-
className: e.string,
|
|
2977
|
-
/**
|
|
2978
|
-
* If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).
|
|
2979
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
2980
|
-
* @default false
|
|
2981
|
-
*/
|
|
2982
|
-
defaultOpen: e.bool,
|
|
2983
|
-
/**
|
|
2984
|
-
* The default value. Use when the component is not controlled.
|
|
2985
|
-
*/
|
|
2986
|
-
defaultValue: e.any,
|
|
2987
|
-
/**
|
|
2988
|
-
* If `true`, a value is displayed even if no items are selected.
|
|
2989
|
-
*
|
|
2990
|
-
* In order to display a meaningful value, a function can be passed to the `renderValue` prop which
|
|
2991
|
-
* returns the value to be displayed when no items are selected.
|
|
2992
|
-
*
|
|
2993
|
-
* ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
|
|
2994
|
-
* The label should either be hidden or forced to a shrunk state.
|
|
2995
|
-
* @default false
|
|
2996
|
-
*/
|
|
2997
|
-
displayEmpty: e.bool,
|
|
2998
|
-
/**
|
|
2999
|
-
* The icon that displays the arrow.
|
|
3000
|
-
* @default ArrowDropDownIcon
|
|
3001
|
-
*/
|
|
3002
|
-
IconComponent: e.elementType,
|
|
3003
|
-
/**
|
|
3004
|
-
* The `id` of the wrapper element or the `select` element when `native`.
|
|
3005
|
-
*/
|
|
3006
|
-
id: e.string,
|
|
3007
|
-
/**
|
|
3008
|
-
* An `Input` element; does not have to be a material-ui specific `Input`.
|
|
3009
|
-
*/
|
|
3010
|
-
input: e.element,
|
|
3011
|
-
/**
|
|
3012
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
3013
|
-
* When `native` is `true`, the attributes are applied on the `select` element.
|
|
3014
|
-
*/
|
|
3015
|
-
inputProps: e.object,
|
|
3016
|
-
/**
|
|
3017
|
-
* See [OutlinedInput#label](https://mui.com/material-ui/api/outlined-input/#props)
|
|
3018
|
-
*/
|
|
3019
|
-
label: e.node,
|
|
3020
|
-
/**
|
|
3021
|
-
* The ID of an element that acts as an additional label. The Select will
|
|
3022
|
-
* be labelled by the additional label and the selected value.
|
|
3023
|
-
*/
|
|
3024
|
-
labelId: e.string,
|
|
3025
|
-
/**
|
|
3026
|
-
* Props applied to the [`Menu`](https://mui.com/material-ui/api/menu/) element.
|
|
3027
|
-
*/
|
|
3028
|
-
MenuProps: e.object,
|
|
3029
|
-
/**
|
|
3030
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
3031
|
-
* @default false
|
|
3032
|
-
*/
|
|
3033
|
-
multiple: e.bool,
|
|
3034
|
-
/**
|
|
3035
|
-
* If `true`, the component uses a native `select` element.
|
|
3036
|
-
* @default false
|
|
3037
|
-
*/
|
|
3038
|
-
native: e.bool,
|
|
3039
|
-
/**
|
|
3040
|
-
* Callback fired when a menu item is selected.
|
|
3041
|
-
*
|
|
3042
|
-
* @param {SelectChangeEvent<Value>} event The event source of the callback.
|
|
3043
|
-
* You can pull out the new value by accessing `event.target.value` (any).
|
|
3044
|
-
* **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.
|
|
3045
|
-
* @param {object} [child] The react element that was selected when `native` is `false` (default).
|
|
3046
|
-
*/
|
|
3047
|
-
onChange: e.func,
|
|
3048
|
-
/**
|
|
3049
|
-
* Callback fired when the component requests to be closed.
|
|
3050
|
-
* Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapses).
|
|
3051
|
-
*
|
|
3052
|
-
* @param {object} event The event source of the callback.
|
|
3053
|
-
*/
|
|
3054
|
-
onClose: e.func,
|
|
3055
|
-
/**
|
|
3056
|
-
* Callback fired when the component requests to be opened.
|
|
3057
|
-
* Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).
|
|
3058
|
-
*
|
|
3059
|
-
* @param {object} event The event source of the callback.
|
|
3060
|
-
*/
|
|
3061
|
-
onOpen: e.func,
|
|
3062
|
-
/**
|
|
3063
|
-
* If `true`, the component is shown.
|
|
3064
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
3065
|
-
*/
|
|
3066
|
-
open: e.bool,
|
|
3067
|
-
/**
|
|
3068
|
-
* Render the selected value.
|
|
3069
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
3070
|
-
*
|
|
3071
|
-
* @param {any} value The `value` provided to the component.
|
|
3072
|
-
* @returns {ReactNode}
|
|
3073
|
-
*/
|
|
3074
|
-
renderValue: e.func,
|
|
3075
|
-
/**
|
|
3076
|
-
* Props applied to the clickable div element.
|
|
3077
|
-
*/
|
|
3078
|
-
SelectDisplayProps: e.object,
|
|
3079
|
-
/**
|
|
3080
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3081
|
-
*/
|
|
3082
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
3083
|
-
/**
|
|
3084
|
-
* The `input` value. Providing an empty string will select no options.
|
|
3085
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected.
|
|
3086
|
-
*
|
|
3087
|
-
* If the value is an object it must have reference equality with the option in order to be selected.
|
|
3088
|
-
* If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
|
|
3089
|
-
*/
|
|
3090
|
-
value: e.oneOfType([e.oneOf([""]), e.any]),
|
|
3091
|
-
/**
|
|
3092
|
-
* The variant to use.
|
|
3093
|
-
* @default 'outlined'
|
|
3094
|
-
*/
|
|
3095
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
3096
|
-
});
|
|
3097
|
-
Lo.muiName = "Select";
|
|
3098
|
-
export {
|
|
3099
|
-
ut as A,
|
|
3100
|
-
Be as I,
|
|
3101
|
-
Co as L,
|
|
3102
|
-
No as M,
|
|
3103
|
-
Ke as O,
|
|
3104
|
-
Lo as S,
|
|
3105
|
-
he as i,
|
|
3106
|
-
st as m,
|
|
3107
|
-
X as o
|
|
3108
|
-
};
|