everest-npm-features 0.0.61 → 0.0.63

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.
Files changed (247) hide show
  1. package/dist/ArrowBack-DEJjwfp0.js +8 -0
  2. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  3. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  4. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  5. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  6. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  7. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  8. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  9. package/dist/PlayArrow-71FP5PzJ.js +13 -0
  10. package/dist/Portal-BeS9yJCZ.js +968 -0
  11. package/dist/assets/styles.css +1 -1
  12. package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
  13. package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
  14. package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
  15. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  16. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
  17. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
  18. package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
  19. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  20. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  21. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  22. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  23. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
  24. package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
  25. package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
  26. package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
  27. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
  28. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
  29. package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
  30. package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
  31. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
  32. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  33. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  34. package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
  35. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  36. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  37. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  38. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  39. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  40. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  41. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  42. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  43. package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
  44. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
  45. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
  46. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  47. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  48. package/dist/components/RocketRamp/Transactions/index.js +23 -24
  49. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  50. package/dist/components/Shared/FullKyc/edd.js +51 -53
  51. package/dist/components/Shared/FullKyc/index.js +13 -11
  52. package/dist/components/Shared/FullKyc/pep.js +35 -43
  53. package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
  54. package/dist/components/Shared/FullKyc/userInfo.js +8 -13
  55. package/dist/components/Shared/HistoryItem/index.js +43 -48
  56. package/dist/components/Shared/Incode/index.js +31 -35
  57. package/dist/components/Shared/MinimalKyc/index.js +60 -65
  58. package/dist/components/Shared/Sumsub/index.js +75 -62
  59. package/dist/components/Shared/loader.js +4 -5
  60. package/dist/components/Shared/tooltip.js +2 -2
  61. package/dist/components/Shared/transition.js +4 -4
  62. package/dist/components/Wallet/Account/createIban.d.ts +1 -2
  63. package/dist/components/Wallet/Account/createIban.js +324 -102
  64. package/dist/components/Wallet/Account/eWallet.js +37 -43
  65. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  66. package/dist/components/Wallet/Account/iban.js +41 -45
  67. package/dist/components/Wallet/Account/ibanItem.js +70 -75
  68. package/dist/components/Wallet/Account/index.d.ts +1 -0
  69. package/dist/components/Wallet/Account/index.js +113 -118
  70. package/dist/components/Wallet/Account/sendIban.js +79 -88
  71. package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
  72. package/dist/components/Wallet/Buy/form.js +8 -18
  73. package/dist/components/Wallet/Buy/index.js +6 -6
  74. package/dist/components/Wallet/Deposit/index.js +16 -18
  75. package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  77. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  78. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  79. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  80. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  81. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
  82. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
  83. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  84. package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
  85. package/dist/components/Wallet/History/index.js +23 -797
  86. package/dist/components/Wallet/Home/index.js +13 -14
  87. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
  88. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  89. package/dist/components/Wallet/Portfolio/index.js +48 -51
  90. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  91. package/dist/components/Wallet/Profile/documents.js +164 -176
  92. package/dist/components/Wallet/Profile/index.js +39 -44
  93. package/dist/components/Wallet/Profile/storage.js +39 -47
  94. package/dist/components/Wallet/Receive/index.js +32 -37
  95. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
  96. package/dist/components/Wallet/Sell/form.js +8 -18
  97. package/dist/components/Wallet/Sell/index.js +6 -6
  98. package/dist/components/Wallet/Send/index.js +98 -107
  99. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  100. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
  101. package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
  102. package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
  103. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  104. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  105. package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
  106. package/dist/components/Wallet/Shared/Container/index.js +11 -11
  107. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  108. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  109. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  110. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  111. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  112. package/dist/components/Wallet/Shared/addBank.js +41 -45
  113. package/dist/components/Wallet/Shared/appButton.js +11 -15
  114. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  115. package/dist/components/Wallet/Shared/button.js +7 -7
  116. package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
  117. package/dist/components/Wallet/Shared/inputField.js +5 -5
  118. package/dist/components/Wallet/Shared/manualSend.js +9 -13
  119. package/dist/components/Wallet/Shared/noData.js +4 -5
  120. package/dist/components/Wallet/Shared/pin.js +25 -27
  121. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  122. package/dist/components/Wallet/Shared/step.js +12 -13
  123. package/dist/components/Wallet/Shared/timer.js +1 -1
  124. package/dist/components/Wallet/SignIn/index.js +17 -17
  125. package/dist/components/Wallet/SignUp/index.js +63 -153
  126. package/dist/components/Wallet/SignUp/terms.js +1 -1
  127. package/dist/components/Wallet/Stake/gems/index.js +71 -69
  128. package/dist/components/Wallet/Stake/id/index.js +77 -84
  129. package/dist/components/Wallet/Stake/index.js +65 -68
  130. package/dist/components/Wallet/Swap/form.js +11 -20
  131. package/dist/components/Wallet/Swap/index.js +5 -5
  132. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  133. package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
  134. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
  135. package/dist/components/Wallet/Withdraw/form.js +6 -17
  136. package/dist/components/Wallet/Withdraw/index.js +5 -5
  137. package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
  138. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  139. package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
  140. package/dist/hoc/withThemeProvider.js +5 -732
  141. package/dist/hooks/useDialog/index.js +22 -23
  142. package/dist/hooks/useRrDialog/index.js +43 -46
  143. package/dist/hooks/useSnackBar.js +24 -696
  144. package/dist/icons/buyIcon.js +1 -1
  145. package/dist/icons/canceledBuyIcon.js +1 -1
  146. package/dist/icons/canceledRedeemIcon.js +1 -1
  147. package/dist/icons/failedBuyIcon.js +2 -2
  148. package/dist/icons/failedRedeemIcon.js +2 -2
  149. package/dist/icons/pendingBuyIcon.js +1 -1
  150. package/dist/icons/pendingRedeemIcon.js +1 -1
  151. package/dist/icons/redeemIcon.js +1 -1
  152. package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
  153. package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
  154. package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
  155. package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
  156. package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
  157. package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
  158. package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
  159. package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
  160. package/dist/main.js +7 -7
  161. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  162. package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
  163. package/dist/otpForm-DeeegaX2.js +7378 -0
  164. package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
  165. package/dist/styles.module-DFoezEqS.js +28 -0
  166. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  167. package/dist/tooltip-BW0UyWw7.js +2129 -0
  168. package/dist/util/constants.d.ts +1 -0
  169. package/dist/util/constants.js +72 -71
  170. package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
  171. package/package.json +6 -6
  172. package/dist/Alert-DzsbFW3-.js +0 -369
  173. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  174. package/dist/Avatar-1XklXr4O.js +0 -281
  175. package/dist/Backdrop-CioURPVG.js +0 -359
  176. package/dist/Box-B0YSYLco.js +0 -59
  177. package/dist/Button-Df4vgU24.js +0 -663
  178. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  179. package/dist/CardContent-D9wTdpu-.js +0 -141
  180. package/dist/CircularProgress-xZA3lvba.js +0 -252
  181. package/dist/Close-CxzDL3J-.js +0 -9
  182. package/dist/Container-urNKV7hm.js +0 -181
  183. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  184. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  185. package/dist/DialogContent-BMwlOnbW.js +0 -567
  186. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  187. package/dist/Divider-BShhMFf4.js +0 -297
  188. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  189. package/dist/FormControl-RtZDQMdA.js +0 -258
  190. package/dist/FormControlLabel-BliKW48y.js +0 -519
  191. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  192. package/dist/Grid-CFe3amXO.js +0 -410
  193. package/dist/Grow-CnGtel3u.js +0 -196
  194. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  195. package/dist/IconButton-DHm-hucF.js +0 -297
  196. package/dist/InputAdornment-DMiED3JH.js +0 -173
  197. package/dist/Link-DBA9Yifs.js +0 -266
  198. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  199. package/dist/Menu-DLYFFrEk.js +0 -1239
  200. package/dist/MenuItem-DUdYOJr4.js +0 -271
  201. package/dist/Modal-CFIQ_s3T.js +0 -743
  202. package/dist/Paper-Bgt2WXI6.js +0 -186
  203. package/dist/PlayArrow-Bjz9LxhD.js +0 -13
  204. package/dist/Popper-BBAoiZKn.js +0 -1409
  205. package/dist/Portal-BMAxiQwe.js +0 -69
  206. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  207. package/dist/Select-CB5yWmyn.js +0 -1886
  208. package/dist/Slide-B9Nw0LZ4.js +0 -235
  209. package/dist/Stack-k55YTxET.js +0 -172
  210. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  211. package/dist/TextField-DPpRUQe3.js +0 -978
  212. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  213. package/dist/Typography-pAaje37G.js +0 -260
  214. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  215. package/dist/clsx-BTaloaeC.js +0 -264
  216. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  217. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  218. package/dist/createTheme-CD19zQB7.js +0 -3825
  219. package/dist/debounce-46wSf_lW.js +0 -15
  220. package/dist/defaultTheme-C35y5cLB.js +0 -5
  221. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  222. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  223. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  224. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  225. package/dist/exactProp-C1Lmtwf_.js +0 -13
  226. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  227. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  228. package/dist/index-B0Z-Gjno.js +0 -22
  229. package/dist/index-DUcLo3x5.js +0 -43
  230. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  231. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  232. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  233. package/dist/memoTheme-yHaPezod.js +0 -15
  234. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  235. package/dist/radioButton-CzlYB0Lh.js +0 -402
  236. package/dist/refType-BsTH3qnM.js +0 -56
  237. package/dist/styles.module-CHPRGltL.js +0 -28
  238. package/dist/tooltip-3UvETWtS.js +0 -740
  239. package/dist/useControlled-nm4pBabJ.js +0 -31
  240. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  241. package/dist/useFormControl-CatNKXAi.js +0 -10
  242. package/dist/useId-CK6Kn3Tn.js +0 -21
  243. package/dist/useSlot-CW7SOYlh.js +0 -125
  244. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  245. package/dist/useTheme-BQJ5lp0i.js +0 -11
  246. package/dist/useTheme-S5_DHFsQ.js +0 -17
  247. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,1886 +0,0 @@
1
- import * as a from "react";
2
- import { g as ne, j as ke, P as e, b as re, q as mt } from "./createTheme-CD19zQB7.js";
3
- import { c as me } from "./clsx-BTaloaeC.js";
4
- import { r as bt, M as vt } from "./Menu-DLYFFrEk.js";
5
- import { g as se } from "./generateUtilityClasses-BRiE4Guh.js";
6
- import { s as v, r as U, u as be, c as z, b as yt } from "./DefaultPropsProvider-oAu9El-f.js";
7
- import { jsx as f, jsxs as ve } from "react/jsx-runtime";
8
- import { r as le } from "./refType-BsTH3qnM.js";
9
- import { f as Ae, i as ht } from "./FormControl-RtZDQMdA.js";
10
- import { u as je } from "./useControlled-nm4pBabJ.js";
11
- import { u as Ue } from "./TransitionGroupContext-CYRQkQ6k.js";
12
- import { o as gt } from "./HTMLElementType-BrQSV2FE.js";
13
- import { u as Ot } from "./useId-CK6Kn3Tn.js";
14
- import { u as Be } from "./useFormControl-CatNKXAi.js";
15
- import { c as St } from "./createSvgIcon-Cuzqm90l.js";
16
- import { m as _ } from "./memoTheme-yHaPezod.js";
17
- import { c as Ve } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
18
- import { i as Le, I as qe, r as ze, a as _e, b as Ke, c as He, F as Ct } from "./FilledInput-DuNqnPjc.js";
19
- import { u as It } from "./useSlot-CW7SOYlh.js";
20
- import { g as wt } from "./elementAcceptingRef-CqLvP78G.js";
21
- function Rt(t) {
22
- return ne("MuiInput", t);
23
- }
24
- const L = {
25
- ...Le,
26
- ...se("MuiInput", ["root", "underline", "input"])
27
- };
28
- function Nt(t) {
29
- return ne("MuiOutlinedInput", t);
30
- }
31
- const N = {
32
- ...Le,
33
- ...se("MuiOutlinedInput", ["root", "notchedOutline", "input"])
34
- }, Pt = St(/* @__PURE__ */ f("path", {
35
- d: "M7 10l5 5 5-5z"
36
- }), "ArrowDropDown"), xt = (t) => {
37
- const {
38
- classes: o,
39
- disableUnderline: r
40
- } = t, i = z({
41
- root: ["root", !r && "underline"],
42
- input: ["input"]
43
- }, Rt, o);
44
- return {
45
- ...o,
46
- // forward classes to the InputBase
47
- ...i
48
- };
49
- }, Et = v(qe, {
50
- shouldForwardProp: (t) => U(t) || t === "classes",
51
- name: "MuiInput",
52
- slot: "Root",
53
- overridesResolver: (t, o) => {
54
- const {
55
- ownerState: r
56
- } = t;
57
- return [...ze(t, o), !r.disableUnderline && o.underline];
58
- }
59
- })(_(({
60
- theme: t
61
- }) => {
62
- let r = t.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
63
- return t.vars && (r = `rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`), {
64
- position: "relative",
65
- variants: [{
66
- props: ({
67
- ownerState: s
68
- }) => s.formControl,
69
- style: {
70
- "label + &": {
71
- marginTop: 16
72
- }
73
- }
74
- }, {
75
- props: ({
76
- ownerState: s
77
- }) => !s.disableUnderline,
78
- style: {
79
- "&::after": {
80
- left: 0,
81
- bottom: 0,
82
- content: '""',
83
- position: "absolute",
84
- right: 0,
85
- transform: "scaleX(0)",
86
- transition: t.transitions.create("transform", {
87
- duration: t.transitions.duration.shorter,
88
- easing: t.transitions.easing.easeOut
89
- }),
90
- pointerEvents: "none"
91
- // Transparent to the hover style.
92
- },
93
- [`&.${L.focused}:after`]: {
94
- // translateX(0) is a workaround for Safari transform scale bug
95
- // See https://github.com/mui/material-ui/issues/31766
96
- transform: "scaleX(1) translateX(0)"
97
- },
98
- [`&.${L.error}`]: {
99
- "&::before, &::after": {
100
- borderBottomColor: (t.vars || t).palette.error.main
101
- }
102
- },
103
- "&::before": {
104
- borderBottom: `1px solid ${r}`,
105
- left: 0,
106
- bottom: 0,
107
- content: '"\\00a0"',
108
- position: "absolute",
109
- right: 0,
110
- transition: t.transitions.create("border-bottom-color", {
111
- duration: t.transitions.duration.shorter
112
- }),
113
- pointerEvents: "none"
114
- // Transparent to the hover style.
115
- },
116
- [`&:hover:not(.${L.disabled}, .${L.error}):before`]: {
117
- borderBottom: `2px solid ${(t.vars || t).palette.text.primary}`,
118
- // Reset on touch devices, it doesn't add specificity
119
- "@media (hover: none)": {
120
- borderBottom: `1px solid ${r}`
121
- }
122
- },
123
- [`&.${L.disabled}:before`]: {
124
- borderBottomStyle: "dotted"
125
- }
126
- }
127
- }, ...Object.entries(t.palette).filter(Ve()).map(([s]) => ({
128
- props: {
129
- color: s,
130
- disableUnderline: !1
131
- },
132
- style: {
133
- "&::after": {
134
- borderBottom: `2px solid ${(t.vars || t).palette[s].main}`
135
- }
136
- }
137
- }))]
138
- };
139
- })), Mt = v(_e, {
140
- name: "MuiInput",
141
- slot: "Input",
142
- overridesResolver: Ke
143
- })({}), ye = /* @__PURE__ */ a.forwardRef(function(o, r) {
144
- const s = be({
145
- props: o,
146
- name: "MuiInput"
147
- }), {
148
- disableUnderline: i = !1,
149
- components: u = {},
150
- componentsProps: d,
151
- fullWidth: c = !1,
152
- inputComponent: S = "input",
153
- multiline: I = !1,
154
- slotProps: O,
155
- slots: y = {},
156
- type: w = "text",
157
- ...R
158
- } = s, x = xt(s), m = {
159
- root: {
160
- ownerState: {
161
- disableUnderline: i
162
- }
163
- }
164
- }, C = O ?? d ? ke(O ?? d, m) : m, h = y.root ?? u.Root ?? Et, g = y.input ?? u.Input ?? Mt;
165
- return /* @__PURE__ */ f(He, {
166
- slots: {
167
- root: h,
168
- input: g
169
- },
170
- slotProps: C,
171
- fullWidth: c,
172
- inputComponent: S,
173
- multiline: I,
174
- ref: r,
175
- type: w,
176
- ...R,
177
- classes: x
178
- });
179
- });
180
- process.env.NODE_ENV !== "production" && (ye.propTypes = {
181
- // ┌────────────────────────────── Warning ──────────────────────────────┐
182
- // │ These PropTypes are generated from the TypeScript type definitions. │
183
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
184
- // └─────────────────────────────────────────────────────────────────────┘
185
- /**
186
- * This prop helps users to fill forms faster, especially on mobile devices.
187
- * The name can be confusing, as it's more like an autofill.
188
- * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
189
- */
190
- autoComplete: e.string,
191
- /**
192
- * If `true`, the `input` element is focused during the first mount.
193
- */
194
- autoFocus: e.bool,
195
- /**
196
- * Override or extend the styles applied to the component.
197
- */
198
- classes: e.object,
199
- /**
200
- * The color of the component.
201
- * It supports both default and custom theme colors, which can be added as shown in the
202
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
203
- * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
204
- */
205
- color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
206
- /**
207
- * The components used for each slot inside.
208
- *
209
- * @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.
210
- *
211
- * @default {}
212
- */
213
- components: e.shape({
214
- Input: e.elementType,
215
- Root: e.elementType
216
- }),
217
- /**
218
- * The extra props for the slot components.
219
- * You can override the existing props or add new ones.
220
- *
221
- * @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.
222
- *
223
- * @default {}
224
- */
225
- componentsProps: e.shape({
226
- input: e.object,
227
- root: e.object
228
- }),
229
- /**
230
- * The default value. Use when the component is not controlled.
231
- */
232
- defaultValue: e.any,
233
- /**
234
- * If `true`, the component is disabled.
235
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
236
- */
237
- disabled: e.bool,
238
- /**
239
- * If `true`, the `input` will not have an underline.
240
- * @default false
241
- */
242
- disableUnderline: e.bool,
243
- /**
244
- * End `InputAdornment` for this component.
245
- */
246
- endAdornment: e.node,
247
- /**
248
- * If `true`, the `input` will indicate an error.
249
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
250
- */
251
- error: e.bool,
252
- /**
253
- * If `true`, the `input` will take up the full width of its container.
254
- * @default false
255
- */
256
- fullWidth: e.bool,
257
- /**
258
- * The id of the `input` element.
259
- */
260
- id: e.string,
261
- /**
262
- * The component used for the `input` element.
263
- * Either a string to use a HTML element or a component.
264
- * @default 'input'
265
- */
266
- inputComponent: e.elementType,
267
- /**
268
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
269
- * @default {}
270
- */
271
- inputProps: e.object,
272
- /**
273
- * Pass a ref to the `input` element.
274
- */
275
- inputRef: le,
276
- /**
277
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
278
- * FormControl.
279
- * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
280
- */
281
- margin: e.oneOf(["dense", "none"]),
282
- /**
283
- * Maximum number of rows to display when multiline option is set to true.
284
- */
285
- maxRows: e.oneOfType([e.number, e.string]),
286
- /**
287
- * Minimum number of rows to display when multiline option is set to true.
288
- */
289
- minRows: e.oneOfType([e.number, e.string]),
290
- /**
291
- * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
292
- * @default false
293
- */
294
- multiline: e.bool,
295
- /**
296
- * Name attribute of the `input` element.
297
- */
298
- name: e.string,
299
- /**
300
- * Callback fired when the value is changed.
301
- *
302
- * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
303
- * You can pull out the new value by accessing `event.target.value` (string).
304
- */
305
- onChange: e.func,
306
- /**
307
- * The short hint displayed in the `input` before the user enters a value.
308
- */
309
- placeholder: e.string,
310
- /**
311
- * It prevents the user from changing the value of the field
312
- * (not from interacting with the field).
313
- */
314
- readOnly: e.bool,
315
- /**
316
- * If `true`, the `input` element is required.
317
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
318
- */
319
- required: e.bool,
320
- /**
321
- * Number of rows to display when multiline option is set to true.
322
- */
323
- rows: e.oneOfType([e.number, e.string]),
324
- /**
325
- * The extra props for the slot components.
326
- * You can override the existing props or add new ones.
327
- *
328
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
329
- *
330
- * @default {}
331
- */
332
- slotProps: e.shape({
333
- input: e.object,
334
- root: e.object
335
- }),
336
- /**
337
- * The components used for each slot inside.
338
- *
339
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
340
- *
341
- * @default {}
342
- */
343
- slots: e.shape({
344
- input: e.elementType,
345
- root: e.elementType
346
- }),
347
- /**
348
- * Start `InputAdornment` for this component.
349
- */
350
- startAdornment: e.node,
351
- /**
352
- * The system prop that allows defining system overrides as well as additional CSS styles.
353
- */
354
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
355
- /**
356
- * 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).
357
- * @default 'text'
358
- */
359
- type: e.string,
360
- /**
361
- * The value of the `input` element, required for a controlled component.
362
- */
363
- value: e.any
364
- });
365
- ye.muiName = "Input";
366
- function Tt(t) {
367
- return ne("MuiNativeSelect", t);
368
- }
369
- const he = se("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), $t = (t) => {
370
- const {
371
- classes: o,
372
- variant: r,
373
- disabled: s,
374
- multiple: i,
375
- open: u,
376
- error: d
377
- } = t, c = {
378
- select: ["select", r, s && "disabled", i && "multiple", d && "error"],
379
- icon: ["icon", `icon${re(r)}`, u && "iconOpen", s && "disabled"]
380
- };
381
- return z(c, Tt, o);
382
- }, Xe = v("select", {
383
- name: "MuiNativeSelect"
384
- })(({
385
- theme: t
386
- }) => ({
387
- // Reset
388
- MozAppearance: "none",
389
- // Reset
390
- WebkitAppearance: "none",
391
- // When interacting quickly, the text can end up selected.
392
- // Native select can't be selected either.
393
- userSelect: "none",
394
- // Reset
395
- borderRadius: 0,
396
- cursor: "pointer",
397
- "&:focus": {
398
- // Reset Chrome style
399
- borderRadius: 0
400
- },
401
- [`&.${he.disabled}`]: {
402
- cursor: "default"
403
- },
404
- "&[multiple]": {
405
- height: "auto"
406
- },
407
- "&:not([multiple]) option, &:not([multiple]) optgroup": {
408
- backgroundColor: (t.vars || t).palette.background.paper
409
- },
410
- variants: [{
411
- props: ({
412
- ownerState: o
413
- }) => o.variant !== "filled" && o.variant !== "outlined",
414
- style: {
415
- // Bump specificity to allow extending custom inputs
416
- "&&&": {
417
- paddingRight: 24,
418
- minWidth: 16
419
- // So it doesn't collapse.
420
- }
421
- }
422
- }, {
423
- props: {
424
- variant: "filled"
425
- },
426
- style: {
427
- "&&&": {
428
- paddingRight: 32
429
- }
430
- }
431
- }, {
432
- props: {
433
- variant: "outlined"
434
- },
435
- style: {
436
- borderRadius: (t.vars || t).shape.borderRadius,
437
- "&:focus": {
438
- borderRadius: (t.vars || t).shape.borderRadius
439
- // Reset the reset for Chrome style
440
- },
441
- "&&&": {
442
- paddingRight: 32
443
- }
444
- }
445
- }]
446
- })), jt = v(Xe, {
447
- name: "MuiNativeSelect",
448
- slot: "Select",
449
- shouldForwardProp: U,
450
- overridesResolver: (t, o) => {
451
- const {
452
- ownerState: r
453
- } = t;
454
- return [o.select, o[r.variant], r.error && o.error, {
455
- [`&.${he.multiple}`]: o.multiple
456
- }];
457
- }
458
- })({}), Ye = v("svg", {
459
- name: "MuiNativeSelect"
460
- })(({
461
- theme: t
462
- }) => ({
463
- // We use a position absolute over a flexbox in order to forward the pointer events
464
- // to the input and to support wrapping tags..
465
- position: "absolute",
466
- right: 0,
467
- // Center vertically, height is 1em
468
- top: "calc(50% - .5em)",
469
- // Don't block pointer events on the select under the icon.
470
- pointerEvents: "none",
471
- color: (t.vars || t).palette.action.active,
472
- [`&.${he.disabled}`]: {
473
- color: (t.vars || t).palette.action.disabled
474
- },
475
- variants: [{
476
- props: ({
477
- ownerState: o
478
- }) => o.open,
479
- style: {
480
- transform: "rotate(180deg)"
481
- }
482
- }, {
483
- props: {
484
- variant: "filled"
485
- },
486
- style: {
487
- right: 7
488
- }
489
- }, {
490
- props: {
491
- variant: "outlined"
492
- },
493
- style: {
494
- right: 7
495
- }
496
- }]
497
- })), Ft = v(Ye, {
498
- name: "MuiNativeSelect",
499
- slot: "Icon",
500
- overridesResolver: (t, o) => {
501
- const {
502
- ownerState: r
503
- } = t;
504
- return [o.icon, r.variant && o[`icon${re(r.variant)}`], r.open && o.iconOpen];
505
- }
506
- })({}), Ge = /* @__PURE__ */ a.forwardRef(function(o, r) {
507
- const {
508
- className: s,
509
- disabled: i,
510
- error: u,
511
- IconComponent: d,
512
- inputRef: c,
513
- variant: S = "standard",
514
- ...I
515
- } = o, O = {
516
- ...o,
517
- disabled: i,
518
- variant: S,
519
- error: u
520
- }, y = $t(O);
521
- return /* @__PURE__ */ ve(a.Fragment, {
522
- children: [/* @__PURE__ */ f(jt, {
523
- ownerState: O,
524
- className: me(y.select, s),
525
- disabled: i,
526
- ref: c || r,
527
- ...I
528
- }), o.multiple ? null : /* @__PURE__ */ f(Ft, {
529
- as: d,
530
- ownerState: O,
531
- className: y.icon
532
- })]
533
- });
534
- });
535
- process.env.NODE_ENV !== "production" && (Ge.propTypes = {
536
- /**
537
- * The option elements to populate the select with.
538
- * Can be some `<option>` elements.
539
- */
540
- children: e.node,
541
- /**
542
- * Override or extend the styles applied to the component.
543
- */
544
- classes: e.object,
545
- /**
546
- * The CSS class name of the select element.
547
- */
548
- className: e.string,
549
- /**
550
- * If `true`, the select is disabled.
551
- */
552
- disabled: e.bool,
553
- /**
554
- * If `true`, the `select input` will indicate an error.
555
- */
556
- error: e.bool,
557
- /**
558
- * The icon that displays the arrow.
559
- */
560
- IconComponent: e.elementType.isRequired,
561
- /**
562
- * Use that prop to pass a ref to the native select element.
563
- * @deprecated
564
- */
565
- inputRef: le,
566
- /**
567
- * @ignore
568
- */
569
- multiple: e.bool,
570
- /**
571
- * Name attribute of the `select` or hidden `input` element.
572
- */
573
- name: e.string,
574
- /**
575
- * Callback fired when a menu item is selected.
576
- *
577
- * @param {object} event The event source of the callback.
578
- * You can pull out the new value by accessing `event.target.value` (string).
579
- */
580
- onChange: e.func,
581
- /**
582
- * The input value.
583
- */
584
- value: e.any,
585
- /**
586
- * The variant to use.
587
- */
588
- variant: e.oneOf(["standard", "outlined", "filled"])
589
- });
590
- var Fe;
591
- const Dt = v("fieldset", {
592
- name: "MuiNotchedOutlined",
593
- shouldForwardProp: U
594
- })({
595
- textAlign: "left",
596
- position: "absolute",
597
- bottom: 0,
598
- right: 0,
599
- top: -5,
600
- left: 0,
601
- margin: 0,
602
- padding: "0 8px",
603
- pointerEvents: "none",
604
- borderRadius: "inherit",
605
- borderStyle: "solid",
606
- borderWidth: 1,
607
- overflow: "hidden",
608
- minWidth: "0%"
609
- }), Wt = v("legend", {
610
- name: "MuiNotchedOutlined",
611
- shouldForwardProp: U
612
- })(_(({
613
- theme: t
614
- }) => ({
615
- float: "unset",
616
- // Fix conflict with bootstrap
617
- width: "auto",
618
- // Fix conflict with bootstrap
619
- overflow: "hidden",
620
- // Fix Horizontal scroll when label too long
621
- variants: [{
622
- props: ({
623
- ownerState: o
624
- }) => !o.withLabel,
625
- style: {
626
- padding: 0,
627
- lineHeight: "11px",
628
- // sync with `height` in `legend` styles
629
- transition: t.transitions.create("width", {
630
- duration: 150,
631
- easing: t.transitions.easing.easeOut
632
- })
633
- }
634
- }, {
635
- props: ({
636
- ownerState: o
637
- }) => o.withLabel,
638
- style: {
639
- display: "block",
640
- // Fix conflict with normalize.css and sanitize.css
641
- padding: 0,
642
- height: 11,
643
- // sync with `lineHeight` in `legend` styles
644
- fontSize: "0.75em",
645
- visibility: "hidden",
646
- maxWidth: 0.01,
647
- transition: t.transitions.create("max-width", {
648
- duration: 50,
649
- easing: t.transitions.easing.easeOut
650
- }),
651
- whiteSpace: "nowrap",
652
- "& > span": {
653
- paddingLeft: 5,
654
- paddingRight: 5,
655
- display: "inline-block",
656
- opacity: 0,
657
- visibility: "visible"
658
- }
659
- }
660
- }, {
661
- props: ({
662
- ownerState: o
663
- }) => o.withLabel && o.notched,
664
- style: {
665
- maxWidth: "100%",
666
- transition: t.transitions.create("max-width", {
667
- duration: 100,
668
- easing: t.transitions.easing.easeOut,
669
- delay: 50
670
- })
671
- }
672
- }]
673
- })));
674
- function Je(t) {
675
- const {
676
- children: o,
677
- classes: r,
678
- className: s,
679
- label: i,
680
- notched: u,
681
- ...d
682
- } = t, c = i != null && i !== "", S = {
683
- ...t,
684
- notched: u,
685
- withLabel: c
686
- };
687
- return /* @__PURE__ */ f(Dt, {
688
- "aria-hidden": !0,
689
- className: s,
690
- ownerState: S,
691
- ...d,
692
- children: /* @__PURE__ */ f(Wt, {
693
- ownerState: S,
694
- children: c ? /* @__PURE__ */ f("span", {
695
- children: i
696
- }) : (
697
- // notranslate needed while Google Translate will not fix zero-width space issue
698
- Fe || (Fe = /* @__PURE__ */ f("span", {
699
- className: "notranslate",
700
- "aria-hidden": !0,
701
- children: "​"
702
- }))
703
- )
704
- })
705
- });
706
- }
707
- process.env.NODE_ENV !== "production" && (Je.propTypes = {
708
- /**
709
- * The content of the component.
710
- */
711
- children: e.node,
712
- /**
713
- * Override or extend the styles applied to the component.
714
- */
715
- classes: e.object,
716
- /**
717
- * @ignore
718
- */
719
- className: e.string,
720
- /**
721
- * The label.
722
- */
723
- label: e.node,
724
- /**
725
- * If `true`, the outline is notched to accommodate the label.
726
- */
727
- notched: e.bool.isRequired,
728
- /**
729
- * @ignore
730
- */
731
- style: e.object
732
- });
733
- const kt = (t) => {
734
- const {
735
- classes: o
736
- } = t, s = z({
737
- root: ["root"],
738
- notchedOutline: ["notchedOutline"],
739
- input: ["input"]
740
- }, Nt, o);
741
- return {
742
- ...o,
743
- // forward classes to the InputBase
744
- ...s
745
- };
746
- }, At = v(qe, {
747
- shouldForwardProp: (t) => U(t) || t === "classes",
748
- name: "MuiOutlinedInput",
749
- slot: "Root",
750
- overridesResolver: ze
751
- })(_(({
752
- theme: t
753
- }) => {
754
- const o = t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
755
- return {
756
- position: "relative",
757
- borderRadius: (t.vars || t).shape.borderRadius,
758
- [`&:hover .${N.notchedOutline}`]: {
759
- borderColor: (t.vars || t).palette.text.primary
760
- },
761
- // Reset on touch devices, it doesn't add specificity
762
- "@media (hover: none)": {
763
- [`&:hover .${N.notchedOutline}`]: {
764
- borderColor: t.vars ? `rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : o
765
- }
766
- },
767
- [`&.${N.focused} .${N.notchedOutline}`]: {
768
- borderWidth: 2
769
- },
770
- variants: [...Object.entries(t.palette).filter(Ve()).map(([r]) => ({
771
- props: {
772
- color: r
773
- },
774
- style: {
775
- [`&.${N.focused} .${N.notchedOutline}`]: {
776
- borderColor: (t.vars || t).palette[r].main
777
- }
778
- }
779
- })), {
780
- props: {},
781
- // to overide the above style
782
- style: {
783
- [`&.${N.error} .${N.notchedOutline}`]: {
784
- borderColor: (t.vars || t).palette.error.main
785
- },
786
- [`&.${N.disabled} .${N.notchedOutline}`]: {
787
- borderColor: (t.vars || t).palette.action.disabled
788
- }
789
- }
790
- }, {
791
- props: ({
792
- ownerState: r
793
- }) => r.startAdornment,
794
- style: {
795
- paddingLeft: 14
796
- }
797
- }, {
798
- props: ({
799
- ownerState: r
800
- }) => r.endAdornment,
801
- style: {
802
- paddingRight: 14
803
- }
804
- }, {
805
- props: ({
806
- ownerState: r
807
- }) => r.multiline,
808
- style: {
809
- padding: "16.5px 14px"
810
- }
811
- }, {
812
- props: ({
813
- ownerState: r,
814
- size: s
815
- }) => r.multiline && s === "small",
816
- style: {
817
- padding: "8.5px 14px"
818
- }
819
- }]
820
- };
821
- })), Ut = v(Je, {
822
- name: "MuiOutlinedInput",
823
- slot: "NotchedOutline"
824
- })(_(({
825
- theme: t
826
- }) => {
827
- const o = t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
828
- return {
829
- borderColor: t.vars ? `rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : o
830
- };
831
- })), Bt = v(_e, {
832
- name: "MuiOutlinedInput",
833
- slot: "Input",
834
- overridesResolver: Ke
835
- })(_(({
836
- theme: t
837
- }) => ({
838
- padding: "16.5px 14px",
839
- ...!t.vars && {
840
- "&:-webkit-autofill": {
841
- WebkitBoxShadow: t.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
842
- WebkitTextFillColor: t.palette.mode === "light" ? null : "#fff",
843
- caretColor: t.palette.mode === "light" ? null : "#fff",
844
- borderRadius: "inherit"
845
- }
846
- },
847
- ...t.vars && {
848
- "&:-webkit-autofill": {
849
- borderRadius: "inherit"
850
- },
851
- [t.getColorSchemeSelector("dark")]: {
852
- "&:-webkit-autofill": {
853
- WebkitBoxShadow: "0 0 0 100px #266798 inset",
854
- WebkitTextFillColor: "#fff",
855
- caretColor: "#fff"
856
- }
857
- }
858
- },
859
- variants: [{
860
- props: {
861
- size: "small"
862
- },
863
- style: {
864
- padding: "8.5px 14px"
865
- }
866
- }, {
867
- props: ({
868
- ownerState: o
869
- }) => o.multiline,
870
- style: {
871
- padding: 0
872
- }
873
- }, {
874
- props: ({
875
- ownerState: o
876
- }) => o.startAdornment,
877
- style: {
878
- paddingLeft: 0
879
- }
880
- }, {
881
- props: ({
882
- ownerState: o
883
- }) => o.endAdornment,
884
- style: {
885
- paddingRight: 0
886
- }
887
- }]
888
- }))), ge = /* @__PURE__ */ a.forwardRef(function(o, r) {
889
- const s = be({
890
- props: o,
891
- name: "MuiOutlinedInput"
892
- }), {
893
- components: i = {},
894
- fullWidth: u = !1,
895
- inputComponent: d = "input",
896
- label: c,
897
- multiline: S = !1,
898
- notched: I,
899
- slots: O = {},
900
- slotProps: y = {},
901
- type: w = "text",
902
- ...R
903
- } = s, x = kt(s), T = Be(), m = Ae({
904
- props: s,
905
- muiFormControl: T,
906
- states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
907
- }), C = {
908
- ...s,
909
- color: m.color || "primary",
910
- disabled: m.disabled,
911
- error: m.error,
912
- focused: m.focused,
913
- formControl: T,
914
- fullWidth: u,
915
- hiddenLabel: m.hiddenLabel,
916
- multiline: S,
917
- size: m.size,
918
- type: w
919
- }, h = O.root ?? i.Root ?? At, g = O.input ?? i.Input ?? Bt, [D, E] = It("notchedOutline", {
920
- elementType: Ut,
921
- className: x.notchedOutline,
922
- shouldForwardComponentProp: !0,
923
- ownerState: C,
924
- externalForwardedProps: {
925
- slots: O,
926
- slotProps: y
927
- },
928
- additionalProps: {
929
- label: c != null && c !== "" && m.required ? /* @__PURE__ */ ve(a.Fragment, {
930
- children: [c, " ", "*"]
931
- }) : c
932
- }
933
- });
934
- return /* @__PURE__ */ f(He, {
935
- slots: {
936
- root: h,
937
- input: g
938
- },
939
- slotProps: y,
940
- renderSuffix: (M) => /* @__PURE__ */ f(D, {
941
- ...E,
942
- notched: typeof I < "u" ? I : !!(M.startAdornment || M.filled || M.focused)
943
- }),
944
- fullWidth: u,
945
- inputComponent: d,
946
- multiline: S,
947
- ref: r,
948
- type: w,
949
- ...R,
950
- classes: {
951
- ...x,
952
- notchedOutline: null
953
- }
954
- });
955
- });
956
- process.env.NODE_ENV !== "production" && (ge.propTypes = {
957
- // ┌────────────────────────────── Warning ──────────────────────────────┐
958
- // │ These PropTypes are generated from the TypeScript type definitions. │
959
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
960
- // └─────────────────────────────────────────────────────────────────────┘
961
- /**
962
- * This prop helps users to fill forms faster, especially on mobile devices.
963
- * The name can be confusing, as it's more like an autofill.
964
- * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
965
- */
966
- autoComplete: e.string,
967
- /**
968
- * If `true`, the `input` element is focused during the first mount.
969
- */
970
- autoFocus: e.bool,
971
- /**
972
- * Override or extend the styles applied to the component.
973
- */
974
- classes: e.object,
975
- /**
976
- * The color of the component.
977
- * It supports both default and custom theme colors, which can be added as shown in the
978
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
979
- * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
980
- */
981
- color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
982
- /**
983
- * The components used for each slot inside.
984
- *
985
- * @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.
986
- *
987
- * @default {}
988
- */
989
- components: e.shape({
990
- Input: e.elementType,
991
- Root: e.elementType
992
- }),
993
- /**
994
- * The default value. Use when the component is not controlled.
995
- */
996
- defaultValue: e.any,
997
- /**
998
- * If `true`, the component is disabled.
999
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1000
- */
1001
- disabled: e.bool,
1002
- /**
1003
- * End `InputAdornment` for this component.
1004
- */
1005
- endAdornment: e.node,
1006
- /**
1007
- * If `true`, the `input` will indicate an error.
1008
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1009
- */
1010
- error: e.bool,
1011
- /**
1012
- * If `true`, the `input` will take up the full width of its container.
1013
- * @default false
1014
- */
1015
- fullWidth: e.bool,
1016
- /**
1017
- * The id of the `input` element.
1018
- */
1019
- id: e.string,
1020
- /**
1021
- * The component used for the `input` element.
1022
- * Either a string to use a HTML element or a component.
1023
- * @default 'input'
1024
- */
1025
- inputComponent: e.elementType,
1026
- /**
1027
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
1028
- * @default {}
1029
- */
1030
- inputProps: e.object,
1031
- /**
1032
- * Pass a ref to the `input` element.
1033
- */
1034
- inputRef: le,
1035
- /**
1036
- * The label of the `input`. It is only used for layout. The actual labelling
1037
- * is handled by `InputLabel`.
1038
- */
1039
- label: e.node,
1040
- /**
1041
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1042
- * FormControl.
1043
- * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
1044
- */
1045
- margin: e.oneOf(["dense", "none"]),
1046
- /**
1047
- * Maximum number of rows to display when multiline option is set to true.
1048
- */
1049
- maxRows: e.oneOfType([e.number, e.string]),
1050
- /**
1051
- * Minimum number of rows to display when multiline option is set to true.
1052
- */
1053
- minRows: e.oneOfType([e.number, e.string]),
1054
- /**
1055
- * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
1056
- * @default false
1057
- */
1058
- multiline: e.bool,
1059
- /**
1060
- * Name attribute of the `input` element.
1061
- */
1062
- name: e.string,
1063
- /**
1064
- * If `true`, the outline is notched to accommodate the label.
1065
- */
1066
- notched: e.bool,
1067
- /**
1068
- * Callback fired when the value is changed.
1069
- *
1070
- * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
1071
- * You can pull out the new value by accessing `event.target.value` (string).
1072
- */
1073
- onChange: e.func,
1074
- /**
1075
- * The short hint displayed in the `input` before the user enters a value.
1076
- */
1077
- placeholder: e.string,
1078
- /**
1079
- * It prevents the user from changing the value of the field
1080
- * (not from interacting with the field).
1081
- */
1082
- readOnly: e.bool,
1083
- /**
1084
- * If `true`, the `input` element is required.
1085
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1086
- */
1087
- required: e.bool,
1088
- /**
1089
- * Number of rows to display when multiline option is set to true.
1090
- */
1091
- rows: e.oneOfType([e.number, e.string]),
1092
- /**
1093
- * The props used for each slot inside.
1094
- * @default {}
1095
- */
1096
- slotProps: e.shape({
1097
- input: e.object,
1098
- notchedOutline: e.oneOfType([e.func, e.object]),
1099
- root: e.object
1100
- }),
1101
- /**
1102
- * The components used for each slot inside.
1103
- * @default {}
1104
- */
1105
- slots: e.shape({
1106
- input: e.elementType,
1107
- notchedOutline: e.elementType,
1108
- root: e.elementType
1109
- }),
1110
- /**
1111
- * Start `InputAdornment` for this component.
1112
- */
1113
- startAdornment: e.node,
1114
- /**
1115
- * The system prop that allows defining system overrides as well as additional CSS styles.
1116
- */
1117
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1118
- /**
1119
- * 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).
1120
- * @default 'text'
1121
- */
1122
- type: e.string,
1123
- /**
1124
- * The value of the `input` element, required for a controlled component.
1125
- */
1126
- value: e.any
1127
- });
1128
- ge.muiName = "Input";
1129
- function Qe(t) {
1130
- return ne("MuiSelect", t);
1131
- }
1132
- const q = se("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
1133
- var De;
1134
- const Vt = v(Xe, {
1135
- name: "MuiSelect",
1136
- slot: "Select",
1137
- overridesResolver: (t, o) => {
1138
- const {
1139
- ownerState: r
1140
- } = t;
1141
- return [
1142
- // Win specificity over the input base
1143
- {
1144
- [`&.${q.select}`]: o.select
1145
- },
1146
- {
1147
- [`&.${q.select}`]: o[r.variant]
1148
- },
1149
- {
1150
- [`&.${q.error}`]: o.error
1151
- },
1152
- {
1153
- [`&.${q.multiple}`]: o.multiple
1154
- }
1155
- ];
1156
- }
1157
- })({
1158
- // Win specificity over the input base
1159
- [`&.${q.select}`]: {
1160
- height: "auto",
1161
- // Resets for multiple select with chips
1162
- minHeight: "1.4375em",
1163
- // Required for select\text-field height consistency
1164
- textOverflow: "ellipsis",
1165
- whiteSpace: "nowrap",
1166
- overflow: "hidden"
1167
- }
1168
- }), Lt = v(Ye, {
1169
- name: "MuiSelect",
1170
- slot: "Icon",
1171
- overridesResolver: (t, o) => {
1172
- const {
1173
- ownerState: r
1174
- } = t;
1175
- return [o.icon, r.variant && o[`icon${re(r.variant)}`], r.open && o.iconOpen];
1176
- }
1177
- })({}), qt = v("input", {
1178
- shouldForwardProp: (t) => yt(t) && t !== "classes",
1179
- name: "MuiSelect",
1180
- slot: "NativeInput"
1181
- })({
1182
- bottom: 0,
1183
- left: 0,
1184
- position: "absolute",
1185
- opacity: 0,
1186
- pointerEvents: "none",
1187
- width: "100%",
1188
- boxSizing: "border-box"
1189
- });
1190
- function We(t, o) {
1191
- return typeof o == "object" && o !== null ? t === o : String(t) === String(o);
1192
- }
1193
- function zt(t) {
1194
- return t == null || typeof t == "string" && !t.trim();
1195
- }
1196
- const _t = (t) => {
1197
- const {
1198
- classes: o,
1199
- variant: r,
1200
- disabled: s,
1201
- multiple: i,
1202
- open: u,
1203
- error: d
1204
- } = t, c = {
1205
- select: ["select", r, s && "disabled", i && "multiple", d && "error"],
1206
- icon: ["icon", `icon${re(r)}`, u && "iconOpen", s && "disabled"],
1207
- nativeInput: ["nativeInput"]
1208
- };
1209
- return z(c, Qe, o);
1210
- }, Ze = /* @__PURE__ */ a.forwardRef(function(o, r) {
1211
- var Me, Te;
1212
- const {
1213
- "aria-describedby": s,
1214
- "aria-label": i,
1215
- autoFocus: u,
1216
- autoWidth: d,
1217
- children: c,
1218
- className: S,
1219
- defaultOpen: I,
1220
- defaultValue: O,
1221
- disabled: y,
1222
- displayEmpty: w,
1223
- error: R = !1,
1224
- IconComponent: x,
1225
- inputRef: T,
1226
- labelId: m,
1227
- MenuProps: C = {},
1228
- multiple: h,
1229
- name: g,
1230
- onBlur: D,
1231
- onChange: E,
1232
- onClose: M,
1233
- onFocus: ae,
1234
- onOpen: K,
1235
- open: H,
1236
- readOnly: X,
1237
- renderValue: Y,
1238
- required: B,
1239
- SelectDisplayProps: P = {},
1240
- tabIndex: $,
1241
- // catching `type` from Input which makes no sense for SelectInput
1242
- type: ie,
1243
- value: Se,
1244
- variant: G = "standard",
1245
- ...W
1246
- } = o, [p, Ce] = je({
1247
- controlled: Se,
1248
- default: O,
1249
- name: "Select"
1250
- }), [Ie, tt] = je({
1251
- controlled: H,
1252
- default: I,
1253
- name: "Select"
1254
- }), we = a.useRef(null), j = a.useRef(null), [F, ot] = a.useState(null), {
1255
- current: pe
1256
- } = a.useRef(H != null), [nt, Re] = a.useState(), rt = Ue(r, T), st = a.useCallback((n) => {
1257
- j.current = n, n && ot(n);
1258
- }, []), J = F == null ? void 0 : F.parentNode;
1259
- a.useImperativeHandle(rt, () => ({
1260
- focus: () => {
1261
- j.current.focus();
1262
- },
1263
- node: we.current,
1264
- value: p
1265
- }), [p]), a.useEffect(() => {
1266
- I && Ie && F && !pe && (Re(d ? null : J.clientWidth), j.current.focus());
1267
- }, [F, d]), a.useEffect(() => {
1268
- u && j.current.focus();
1269
- }, [u]), a.useEffect(() => {
1270
- if (!m)
1271
- return;
1272
- const n = gt(j.current).getElementById(m);
1273
- if (n) {
1274
- const l = () => {
1275
- getSelection().isCollapsed && j.current.focus();
1276
- };
1277
- return n.addEventListener("click", l), () => {
1278
- n.removeEventListener("click", l);
1279
- };
1280
- }
1281
- }, [m]);
1282
- const Q = (n, l) => {
1283
- n ? K && K(l) : M && M(l), pe || (Re(d ? null : J.clientWidth), tt(n));
1284
- }, lt = (n) => {
1285
- n.button === 0 && (n.preventDefault(), j.current.focus(), Q(!0, n));
1286
- }, at = (n) => {
1287
- Q(!1, n);
1288
- }, Z = a.Children.toArray(c), it = (n) => {
1289
- const l = Z.find((b) => b.props.value === n.target.value);
1290
- l !== void 0 && (Ce(l.props.value), E && E(n, l));
1291
- }, pt = (n) => (l) => {
1292
- let b;
1293
- if (l.currentTarget.hasAttribute("tabindex")) {
1294
- if (h) {
1295
- b = Array.isArray(p) ? p.slice() : [];
1296
- const A = p.indexOf(n.props.value);
1297
- A === -1 ? b.push(n.props.value) : b.splice(A, 1);
1298
- } else
1299
- b = n.props.value;
1300
- if (n.props.onClick && n.props.onClick(l), p !== b && (Ce(b), E)) {
1301
- const A = l.nativeEvent || l, $e = new A.constructor(A.type, A);
1302
- Object.defineProperty($e, "target", {
1303
- writable: !0,
1304
- value: {
1305
- value: b,
1306
- name: g
1307
- }
1308
- }), E($e, n);
1309
- }
1310
- h || Q(!1, l);
1311
- }
1312
- }, ut = (n) => {
1313
- X || [
1314
- " ",
1315
- "ArrowUp",
1316
- "ArrowDown",
1317
- // The native select doesn't respond to enter on macOS, but it's recommended by
1318
- // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
1319
- "Enter"
1320
- ].includes(n.key) && (n.preventDefault(), Q(!0, n));
1321
- }, V = F !== null && Ie, dt = (n) => {
1322
- !V && D && (Object.defineProperty(n, "target", {
1323
- writable: !0,
1324
- value: {
1325
- value: p,
1326
- name: g
1327
- }
1328
- }), D(n));
1329
- };
1330
- delete W["aria-invalid"];
1331
- let k, Ne;
1332
- const ee = [];
1333
- let te = !1, ue = !1;
1334
- (ht({
1335
- value: p
1336
- }) || w) && (Y ? k = Y(p) : te = !0);
1337
- const ct = Z.map((n) => {
1338
- if (!/* @__PURE__ */ a.isValidElement(n))
1339
- return null;
1340
- process.env.NODE_ENV !== "production" && bt.isFragment(n) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1341
- `));
1342
- let l;
1343
- if (h) {
1344
- if (!Array.isArray(p))
1345
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : mt(2));
1346
- l = p.some((b) => We(b, n.props.value)), l && te && ee.push(n.props.children);
1347
- } else
1348
- l = We(p, n.props.value), l && te && (Ne = n.props.children);
1349
- return l && (ue = !0), /* @__PURE__ */ a.cloneElement(n, {
1350
- "aria-selected": l ? "true" : "false",
1351
- onClick: pt(n),
1352
- onKeyUp: (b) => {
1353
- b.key === " " && b.preventDefault(), n.props.onKeyUp && n.props.onKeyUp(b);
1354
- },
1355
- role: "option",
1356
- selected: l,
1357
- value: void 0,
1358
- // The value is most likely not a valid HTML attribute.
1359
- "data-value": n.props.value
1360
- // Instead, we provide it as a data attribute.
1361
- });
1362
- });
1363
- process.env.NODE_ENV !== "production" && a.useEffect(() => {
1364
- if (!ue && !h && p !== "") {
1365
- const n = Z.map((l) => l.props.value);
1366
- console.warn([`MUI: You have provided an out-of-range value \`${p}\` for the select ${g ? `(name="${g}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${n.filter((l) => l != null).map((l) => `\`${l}\``).join(", ") || '""'}.`].join(`
1367
- `));
1368
- }
1369
- }, [ue, Z, h, g, p]), te && (h ? ee.length === 0 ? k = null : k = ee.reduce((n, l, b) => (n.push(l), b < ee.length - 1 && n.push(", "), n), []) : k = Ne);
1370
- let Pe = nt;
1371
- !d && pe && F && (Pe = J.clientWidth);
1372
- let de;
1373
- typeof $ < "u" ? de = $ : de = y ? null : 0;
1374
- const xe = P.id || (g ? `mui-component-select-${g}` : void 0), oe = {
1375
- ...o,
1376
- variant: G,
1377
- value: p,
1378
- open: V,
1379
- error: R
1380
- }, ce = _t(oe), fe = {
1381
- ...C.PaperProps,
1382
- ...(Me = C.slotProps) == null ? void 0 : Me.paper
1383
- }, ft = {
1384
- ...C.MenuListProps,
1385
- ...(Te = C.slotProps) == null ? void 0 : Te.list
1386
- }, Ee = Ot();
1387
- return /* @__PURE__ */ ve(a.Fragment, {
1388
- children: [/* @__PURE__ */ f(Vt, {
1389
- as: "div",
1390
- ref: st,
1391
- tabIndex: de,
1392
- role: "combobox",
1393
- "aria-controls": V ? Ee : void 0,
1394
- "aria-disabled": y ? "true" : void 0,
1395
- "aria-expanded": V ? "true" : "false",
1396
- "aria-haspopup": "listbox",
1397
- "aria-label": i,
1398
- "aria-labelledby": [m, xe].filter(Boolean).join(" ") || void 0,
1399
- "aria-describedby": s,
1400
- "aria-required": B ? "true" : void 0,
1401
- "aria-invalid": R ? "true" : void 0,
1402
- onKeyDown: ut,
1403
- onMouseDown: y || X ? null : lt,
1404
- onBlur: dt,
1405
- onFocus: ae,
1406
- ...P,
1407
- ownerState: oe,
1408
- className: me(P.className, ce.select, S),
1409
- id: xe,
1410
- children: zt(k) ? (
1411
- // notranslate needed while Google Translate will not fix zero-width space issue
1412
- De || (De = /* @__PURE__ */ f("span", {
1413
- className: "notranslate",
1414
- "aria-hidden": !0,
1415
- children: "​"
1416
- }))
1417
- ) : k
1418
- }), /* @__PURE__ */ f(qt, {
1419
- "aria-invalid": R,
1420
- value: Array.isArray(p) ? p.join(",") : p,
1421
- name: g,
1422
- ref: we,
1423
- "aria-hidden": !0,
1424
- onChange: it,
1425
- tabIndex: -1,
1426
- disabled: y,
1427
- className: ce.nativeInput,
1428
- autoFocus: u,
1429
- required: B,
1430
- ...W,
1431
- ownerState: oe
1432
- }), /* @__PURE__ */ f(Lt, {
1433
- as: x,
1434
- className: ce.icon,
1435
- ownerState: oe
1436
- }), /* @__PURE__ */ f(vt, {
1437
- id: `menu-${g || ""}`,
1438
- anchorEl: J,
1439
- open: V,
1440
- onClose: at,
1441
- anchorOrigin: {
1442
- vertical: "bottom",
1443
- horizontal: "center"
1444
- },
1445
- transformOrigin: {
1446
- vertical: "top",
1447
- horizontal: "center"
1448
- },
1449
- ...C,
1450
- slotProps: {
1451
- ...C.slotProps,
1452
- list: {
1453
- "aria-labelledby": m,
1454
- role: "listbox",
1455
- "aria-multiselectable": h ? "true" : void 0,
1456
- disableListWrap: !0,
1457
- id: Ee,
1458
- ...ft
1459
- },
1460
- paper: {
1461
- ...fe,
1462
- style: {
1463
- minWidth: Pe,
1464
- ...fe != null ? fe.style : null
1465
- }
1466
- }
1467
- },
1468
- children: ct
1469
- })]
1470
- });
1471
- });
1472
- process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1473
- /**
1474
- * @ignore
1475
- */
1476
- "aria-describedby": e.string,
1477
- /**
1478
- * @ignore
1479
- */
1480
- "aria-label": e.string,
1481
- /**
1482
- * @ignore
1483
- */
1484
- autoFocus: e.bool,
1485
- /**
1486
- * If `true`, the width of the popover will automatically be set according to the items inside the
1487
- * menu, otherwise it will be at least the width of the select input.
1488
- */
1489
- autoWidth: e.bool,
1490
- /**
1491
- * The option elements to populate the select with.
1492
- * Can be some `<MenuItem>` elements.
1493
- */
1494
- children: e.node,
1495
- /**
1496
- * Override or extend the styles applied to the component.
1497
- */
1498
- classes: e.object,
1499
- /**
1500
- * The CSS class name of the select element.
1501
- */
1502
- className: e.string,
1503
- /**
1504
- * If `true`, the component is toggled on mount. Use when the component open state is not controlled.
1505
- * You can only use it when the `native` prop is `false` (default).
1506
- */
1507
- defaultOpen: e.bool,
1508
- /**
1509
- * The default value. Use when the component is not controlled.
1510
- */
1511
- defaultValue: e.any,
1512
- /**
1513
- * If `true`, the select is disabled.
1514
- */
1515
- disabled: e.bool,
1516
- /**
1517
- * If `true`, the selected item is displayed even if its value is empty.
1518
- */
1519
- displayEmpty: e.bool,
1520
- /**
1521
- * If `true`, the `select input` will indicate an error.
1522
- */
1523
- error: e.bool,
1524
- /**
1525
- * The icon that displays the arrow.
1526
- */
1527
- IconComponent: e.elementType.isRequired,
1528
- /**
1529
- * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
1530
- * Equivalent to `ref`
1531
- */
1532
- inputRef: le,
1533
- /**
1534
- * The ID of an element that acts as an additional label. The Select will
1535
- * be labelled by the additional label and the selected value.
1536
- */
1537
- labelId: e.string,
1538
- /**
1539
- * Props applied to the [`Menu`](/material-ui/api/menu/) element.
1540
- */
1541
- MenuProps: e.object,
1542
- /**
1543
- * If `true`, `value` must be an array and the menu will support multiple selections.
1544
- */
1545
- multiple: e.bool,
1546
- /**
1547
- * Name attribute of the `select` or hidden `input` element.
1548
- */
1549
- name: e.string,
1550
- /**
1551
- * @ignore
1552
- */
1553
- onBlur: e.func,
1554
- /**
1555
- * Callback fired when a menu item is selected.
1556
- *
1557
- * @param {object} event The event source of the callback.
1558
- * You can pull out the new value by accessing `event.target.value` (any).
1559
- * @param {object} [child] The react element that was selected.
1560
- */
1561
- onChange: e.func,
1562
- /**
1563
- * Callback fired when the component requests to be closed.
1564
- * Use in controlled mode (see open).
1565
- *
1566
- * @param {object} event The event source of the callback.
1567
- */
1568
- onClose: e.func,
1569
- /**
1570
- * @ignore
1571
- */
1572
- onFocus: e.func,
1573
- /**
1574
- * Callback fired when the component requests to be opened.
1575
- * Use in controlled mode (see open).
1576
- *
1577
- * @param {object} event The event source of the callback.
1578
- */
1579
- onOpen: e.func,
1580
- /**
1581
- * If `true`, the component is shown.
1582
- */
1583
- open: e.bool,
1584
- /**
1585
- * @ignore
1586
- */
1587
- readOnly: e.bool,
1588
- /**
1589
- * Render the selected value.
1590
- *
1591
- * @param {any} value The `value` provided to the component.
1592
- * @returns {ReactNode}
1593
- */
1594
- renderValue: e.func,
1595
- /**
1596
- * If `true`, the component is required.
1597
- */
1598
- required: e.bool,
1599
- /**
1600
- * Props applied to the clickable div element.
1601
- */
1602
- SelectDisplayProps: e.object,
1603
- /**
1604
- * @ignore
1605
- */
1606
- tabIndex: e.oneOfType([e.number, e.string]),
1607
- /**
1608
- * @ignore
1609
- */
1610
- type: e.any,
1611
- /**
1612
- * The input value.
1613
- */
1614
- value: e.any,
1615
- /**
1616
- * The variant to use.
1617
- */
1618
- variant: e.oneOf(["standard", "outlined", "filled"])
1619
- });
1620
- const Kt = (t) => {
1621
- const {
1622
- classes: o
1623
- } = t, s = z({
1624
- root: ["root"]
1625
- }, Qe, o);
1626
- return {
1627
- ...o,
1628
- ...s
1629
- };
1630
- }, Oe = {
1631
- name: "MuiSelect",
1632
- slot: "Root",
1633
- shouldForwardProp: (t) => U(t) && t !== "variant"
1634
- }, Ht = v(ye, Oe)(""), Xt = v(ge, Oe)(""), Yt = v(Ct, Oe)(""), et = /* @__PURE__ */ a.forwardRef(function(o, r) {
1635
- const s = be({
1636
- name: "MuiSelect",
1637
- props: o
1638
- }), {
1639
- autoWidth: i = !1,
1640
- children: u,
1641
- classes: d = {},
1642
- className: c,
1643
- defaultOpen: S = !1,
1644
- displayEmpty: I = !1,
1645
- IconComponent: O = Pt,
1646
- id: y,
1647
- input: w,
1648
- inputProps: R,
1649
- label: x,
1650
- labelId: T,
1651
- MenuProps: m,
1652
- multiple: C = !1,
1653
- native: h = !1,
1654
- onClose: g,
1655
- onOpen: D,
1656
- open: E,
1657
- renderValue: M,
1658
- SelectDisplayProps: ae,
1659
- variant: K = "outlined",
1660
- ...H
1661
- } = s, X = h ? Ge : Ze, Y = Be(), B = Ae({
1662
- props: s,
1663
- muiFormControl: Y,
1664
- states: ["variant", "error"]
1665
- }), P = B.variant || K, $ = {
1666
- ...s,
1667
- variant: P,
1668
- classes: d
1669
- }, ie = Kt($), {
1670
- root: Se,
1671
- ...G
1672
- } = ie, W = w || {
1673
- standard: /* @__PURE__ */ f(Ht, {
1674
- ownerState: $
1675
- }),
1676
- outlined: /* @__PURE__ */ f(Xt, {
1677
- label: x,
1678
- ownerState: $
1679
- }),
1680
- filled: /* @__PURE__ */ f(Yt, {
1681
- ownerState: $
1682
- })
1683
- }[P], p = Ue(r, wt(W));
1684
- return /* @__PURE__ */ f(a.Fragment, {
1685
- children: /* @__PURE__ */ a.cloneElement(W, {
1686
- // Most of the logic is implemented in `SelectInput`.
1687
- // The `Select` component is a simple API wrapper to expose something better to play with.
1688
- inputComponent: X,
1689
- inputProps: {
1690
- children: u,
1691
- error: B.error,
1692
- IconComponent: O,
1693
- variant: P,
1694
- type: void 0,
1695
- // We render a select. We can ignore the type provided by the `Input`.
1696
- multiple: C,
1697
- ...h ? {
1698
- id: y
1699
- } : {
1700
- autoWidth: i,
1701
- defaultOpen: S,
1702
- displayEmpty: I,
1703
- labelId: T,
1704
- MenuProps: m,
1705
- onClose: g,
1706
- onOpen: D,
1707
- open: E,
1708
- renderValue: M,
1709
- SelectDisplayProps: {
1710
- id: y,
1711
- ...ae
1712
- }
1713
- },
1714
- ...R,
1715
- classes: R ? ke(G, R.classes) : G,
1716
- ...w ? w.props.inputProps : {}
1717
- },
1718
- ...(C && h || I) && P === "outlined" ? {
1719
- notched: !0
1720
- } : {},
1721
- ref: p,
1722
- className: me(W.props.className, c, ie.root),
1723
- // 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.
1724
- ...!w && {
1725
- variant: P
1726
- },
1727
- ...H
1728
- })
1729
- });
1730
- });
1731
- process.env.NODE_ENV !== "production" && (et.propTypes = {
1732
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1733
- // │ These PropTypes are generated from the TypeScript type definitions. │
1734
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1735
- // └─────────────────────────────────────────────────────────────────────┘
1736
- /**
1737
- * If `true`, the width of the popover will automatically be set according to the items inside the
1738
- * menu, otherwise it will be at least the width of the select input.
1739
- * @default false
1740
- */
1741
- autoWidth: e.bool,
1742
- /**
1743
- * The option elements to populate the select with.
1744
- * Can be some `MenuItem` when `native` is false and `option` when `native` is true.
1745
- *
1746
- * ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.
1747
- */
1748
- children: e.node,
1749
- /**
1750
- * Override or extend the styles applied to the component.
1751
- * @default {}
1752
- */
1753
- classes: e.object,
1754
- /**
1755
- * @ignore
1756
- */
1757
- className: e.string,
1758
- /**
1759
- * If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).
1760
- * You can only use it when the `native` prop is `false` (default).
1761
- * @default false
1762
- */
1763
- defaultOpen: e.bool,
1764
- /**
1765
- * The default value. Use when the component is not controlled.
1766
- */
1767
- defaultValue: e.any,
1768
- /**
1769
- * If `true`, a value is displayed even if no items are selected.
1770
- *
1771
- * In order to display a meaningful value, a function can be passed to the `renderValue` prop which
1772
- * returns the value to be displayed when no items are selected.
1773
- *
1774
- * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
1775
- * The label should either be hidden or forced to a shrunk state.
1776
- * @default false
1777
- */
1778
- displayEmpty: e.bool,
1779
- /**
1780
- * The icon that displays the arrow.
1781
- * @default ArrowDropDownIcon
1782
- */
1783
- IconComponent: e.elementType,
1784
- /**
1785
- * The `id` of the wrapper element or the `select` element when `native`.
1786
- */
1787
- id: e.string,
1788
- /**
1789
- * An `Input` element; does not have to be a material-ui specific `Input`.
1790
- */
1791
- input: e.element,
1792
- /**
1793
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
1794
- * When `native` is `true`, the attributes are applied on the `select` element.
1795
- */
1796
- inputProps: e.object,
1797
- /**
1798
- * See [OutlinedInput#label](https://mui.com/material-ui/api/outlined-input/#props)
1799
- */
1800
- label: e.node,
1801
- /**
1802
- * The ID of an element that acts as an additional label. The Select will
1803
- * be labelled by the additional label and the selected value.
1804
- */
1805
- labelId: e.string,
1806
- /**
1807
- * Props applied to the [`Menu`](https://mui.com/material-ui/api/menu/) element.
1808
- */
1809
- MenuProps: e.object,
1810
- /**
1811
- * If `true`, `value` must be an array and the menu will support multiple selections.
1812
- * @default false
1813
- */
1814
- multiple: e.bool,
1815
- /**
1816
- * If `true`, the component uses a native `select` element.
1817
- * @default false
1818
- */
1819
- native: e.bool,
1820
- /**
1821
- * Callback fired when a menu item is selected.
1822
- *
1823
- * @param {SelectChangeEvent<Value>} event The event source of the callback.
1824
- * You can pull out the new value by accessing `event.target.value` (any).
1825
- * **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.
1826
- * @param {object} [child] The react element that was selected when `native` is `false` (default).
1827
- */
1828
- onChange: e.func,
1829
- /**
1830
- * Callback fired when the component requests to be closed.
1831
- * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapses).
1832
- *
1833
- * @param {object} event The event source of the callback.
1834
- */
1835
- onClose: e.func,
1836
- /**
1837
- * Callback fired when the component requests to be opened.
1838
- * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).
1839
- *
1840
- * @param {object} event The event source of the callback.
1841
- */
1842
- onOpen: e.func,
1843
- /**
1844
- * If `true`, the component is shown.
1845
- * You can only use it when the `native` prop is `false` (default).
1846
- */
1847
- open: e.bool,
1848
- /**
1849
- * Render the selected value.
1850
- * You can only use it when the `native` prop is `false` (default).
1851
- *
1852
- * @param {any} value The `value` provided to the component.
1853
- * @returns {ReactNode}
1854
- */
1855
- renderValue: e.func,
1856
- /**
1857
- * Props applied to the clickable div element.
1858
- */
1859
- SelectDisplayProps: e.object,
1860
- /**
1861
- * The system prop that allows defining system overrides as well as additional CSS styles.
1862
- */
1863
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1864
- /**
1865
- * The `input` value. Providing an empty string will select no options.
1866
- * Set to an empty string `''` if you don't want any of the available options to be selected.
1867
- *
1868
- * If the value is an object it must have reference equality with the option in order to be selected.
1869
- * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
1870
- */
1871
- value: e.oneOfType([e.oneOf([""]), e.any]),
1872
- /**
1873
- * The variant to use.
1874
- * @default 'outlined'
1875
- */
1876
- variant: e.oneOf(["filled", "outlined", "standard"])
1877
- });
1878
- et.muiName = "Select";
1879
- export {
1880
- Pt as A,
1881
- ye as I,
1882
- ge as O,
1883
- et as S,
1884
- L as i,
1885
- N as o
1886
- };