everest-npm-features 0.0.13 → 0.0.15

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