everest-npm-features 0.0.23 → 0.0.25

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 (244) hide show
  1. package/dist/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
  2. package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
  3. package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
  4. package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
  5. package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
  6. package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
  7. package/dist/Button-C57IMamW.js +660 -0
  8. package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
  9. package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
  10. package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
  11. package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
  12. package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
  13. package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
  14. package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
  15. package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
  16. package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
  17. package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
  18. package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
  19. package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
  20. package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
  21. package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
  22. package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
  23. package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
  24. package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
  25. package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
  26. package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
  27. package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
  28. package/dist/GlobalStyles-DhHHc9O0.js +59 -0
  29. package/dist/Grid-BXyV_lM8.js +410 -0
  30. package/dist/Grow-B2p7O_1C.js +196 -0
  31. package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
  32. package/dist/IconButton-eWRhV6Q9.js +295 -0
  33. package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
  34. package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
  35. package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
  36. package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
  37. package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
  38. package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
  39. package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
  40. package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
  41. package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
  42. package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
  43. package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
  44. package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
  45. package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
  46. package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
  47. package/dist/SwitchBase-CHO5ZceN.js +317 -0
  48. package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
  49. package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
  50. package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
  51. package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
  52. package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
  53. package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
  54. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  55. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  57. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  58. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  59. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  60. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  61. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  62. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  63. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  64. package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
  65. package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  69. package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
  70. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  71. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  72. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  73. package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
  74. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  75. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  76. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  77. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  78. package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
  79. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  80. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  81. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  82. package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
  83. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  84. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  85. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  86. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  87. package/dist/components/RocketRamp/Transactions/index.js +4 -4
  88. package/dist/components/Shared/FullKyc/index.js +4 -4
  89. package/dist/components/Shared/FullKyc/pep.js +9 -9
  90. package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
  91. package/dist/components/Shared/FullKyc/userInfo.js +11 -11
  92. package/dist/components/Shared/HistoryItem/index.js +7 -7
  93. package/dist/components/Shared/Incode/index.js +5 -5
  94. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  95. package/dist/components/Shared/loader.js +2 -2
  96. package/dist/components/Shared/tooltip.js +2 -2
  97. package/dist/components/Shared/transition.js +1 -1
  98. package/dist/components/Wallet/Account/createIban.d.ts +1 -0
  99. package/dist/components/Wallet/Account/createIban.js +36 -35
  100. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  101. package/dist/components/Wallet/Account/iban.js +16 -16
  102. package/dist/components/Wallet/Account/index.d.ts +1 -0
  103. package/dist/components/Wallet/Account/index.js +76 -70
  104. package/dist/components/Wallet/Account/sendIban.js +61 -61
  105. package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
  106. package/dist/components/Wallet/Buy/form.d.ts +2 -2
  107. package/dist/components/Wallet/Buy/form.js +17 -17
  108. package/dist/components/Wallet/Buy/index.js +6 -6
  109. package/dist/components/Wallet/Deposit/index.js +7 -7
  110. package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
  111. package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
  112. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  113. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  114. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  115. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  116. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
  117. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
  118. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  119. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
  120. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  121. package/dist/components/Wallet/History/index.js +61 -62
  122. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
  123. package/dist/components/Wallet/Portfolio/index.js +95 -95
  124. package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
  125. package/dist/components/Wallet/Profile/documents.js +17 -17
  126. package/dist/components/Wallet/Profile/index.js +225 -206
  127. package/dist/components/Wallet/Receive/index.js +9 -9
  128. package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
  129. package/dist/components/Wallet/Sell/form.js +17 -17
  130. package/dist/components/Wallet/Sell/index.js +6 -6
  131. package/dist/components/Wallet/Send/index.js +14 -14
  132. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  133. package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
  134. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  135. package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
  136. package/dist/components/Wallet/Shared/Container/index.js +3 -3
  137. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  138. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
  139. package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
  140. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  141. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  142. package/dist/components/Wallet/Shared/addBank.js +11 -11
  143. package/dist/components/Wallet/Shared/appButton.js +5 -5
  144. package/dist/components/Wallet/Shared/backBtn.js +8 -8
  145. package/dist/components/Wallet/Shared/button.js +1 -1
  146. package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
  147. package/dist/components/Wallet/Shared/inputField.js +1 -1
  148. package/dist/components/Wallet/Shared/noData.js +2 -2
  149. package/dist/components/Wallet/Shared/pin.js +3 -3
  150. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  151. package/dist/components/Wallet/Shared/step.js +2 -2
  152. package/dist/components/Wallet/SignIn/index.js +2 -2
  153. package/dist/components/Wallet/SignUp/index.js +2 -2
  154. package/dist/components/Wallet/SignUp/terms.js +4 -4
  155. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  156. package/dist/components/Wallet/Stake/id/index.js +12 -12
  157. package/dist/components/Wallet/Stake/index.js +10 -10
  158. package/dist/components/Wallet/Swap/index.js +138 -150
  159. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  160. package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
  161. package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
  162. package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
  163. package/dist/components/Wallet/Withdraw/form.js +16 -16
  164. package/dist/components/Wallet/Withdraw/index.js +5 -5
  165. package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
  166. package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
  167. package/dist/createTheme-DmGCMO09.js +3825 -0
  168. package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
  169. package/dist/defaultTheme-9fAph5zo.js +5 -0
  170. package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
  171. package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
  172. package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
  173. package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
  174. package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
  175. package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
  176. package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
  177. package/dist/hoc/withThemeProvider.js +518 -417
  178. package/dist/hooks/useDialog/index.js +4 -4
  179. package/dist/hooks/useRrDialog/index.js +4 -4
  180. package/dist/hooks/useSnackBar.js +363 -288
  181. package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
  182. package/dist/icons/buyIcon.js +1 -1
  183. package/dist/icons/canceledBuyIcon.js +1 -1
  184. package/dist/icons/canceledRedeemIcon.js +1 -1
  185. package/dist/icons/failedBuyIcon.js +1 -1
  186. package/dist/icons/failedRedeemIcon.js +1 -1
  187. package/dist/icons/pendingBuyIcon.js +1 -1
  188. package/dist/icons/pendingRedeemIcon.js +1 -1
  189. package/dist/icons/redeemIcon.js +1 -1
  190. package/dist/index-BB3__zW3.js +644 -0
  191. package/dist/index-C86AoaoB.js +43 -0
  192. package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
  193. package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
  194. package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
  195. package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
  196. package/dist/index-eEYiDlpX.js +723 -0
  197. package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
  198. package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
  199. package/dist/main.js +6 -6
  200. package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
  201. package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
  202. package/dist/pep-C5Ge-kU4.js +2691 -0
  203. package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
  204. package/dist/refType-CaiGhRso.js +56 -0
  205. package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
  206. package/dist/tokenRow-BR8f4g7G.js +198 -0
  207. package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
  208. package/dist/useControlled-nm4pBabJ.js +31 -0
  209. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  210. package/dist/useSlot-DtSnboW7.js +125 -0
  211. package/dist/useSlotProps-D62tWbb1.js +25 -0
  212. package/dist/useTheme-Bfw5Gt1b.js +17 -0
  213. package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
  214. package/dist/useThemeProps-lRuJRcRX.js +29 -0
  215. package/dist/wallet-DDW5KCHp.js +39 -0
  216. package/package.json +7 -6
  217. package/dist/Button-DCBtFwk3.js +0 -452
  218. package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
  219. package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
  220. package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
  221. package/dist/Grid-BaaKMDwM.js +0 -501
  222. package/dist/Grid2-DX2sucnU.js +0 -374
  223. package/dist/Grow-CC3Va50c.js +0 -216
  224. package/dist/IconButton-8B2ygvr4.js +0 -238
  225. package/dist/SwitchBase-B9rcpVZ0.js +0 -261
  226. package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
  227. package/dist/createTheme-D_EHVLXp.js +0 -3662
  228. package/dist/defaultTheme-CGLnLLk_.js +0 -5
  229. package/dist/index-BEH1PkNC.js +0 -572
  230. package/dist/index-DSZxScyY.js +0 -704
  231. package/dist/index-DlZLKtdr.js +0 -72
  232. package/dist/pep-BsWvrgyM.js +0 -2600
  233. package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
  234. package/dist/styled-CyBKg0N-.js +0 -5
  235. package/dist/tokenRow-QlGBYRKR.js +0 -206
  236. package/dist/useControlled-BYdyS7Pn.js +0 -31
  237. package/dist/useSlot-BdP6R4tz.js +0 -50
  238. package/dist/useTheme-BFI_g9FY.js +0 -9
  239. package/dist/useThemeProps-BOrAzOS4.js +0 -40
  240. package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
  241. package/dist/useTimeout-_ag1gI7y.js +0 -56
  242. package/dist/utils-B-vKE_Dv.js +0 -50
  243. package/dist/utils-asicApOI.js +0 -21
  244. package/dist/wallet-z7NHqtCj.js +0 -35
@@ -0,0 +1,2691 @@
1
+ import { jsx as s, jsxs as E, Fragment as zt } from "react/jsx-runtime";
2
+ import * as x from "react";
3
+ import { useState as Fe } from "react";
4
+ import eo from "./components/Wallet/Shared/step.js";
5
+ import { c as to } from "./countries-BVn1FubK.js";
6
+ import oo from "./components/Wallet/Shared/appButton.js";
7
+ import { B as et } from "./Box-B12x52NC.js";
8
+ import { T as He } from "./Typography-DBlMiOti.js";
9
+ import { G as St } from "./Grid-BXyV_lM8.js";
10
+ import { F as ft } from "./FormControl-DeeQCuu5.js";
11
+ import { i as kt, o as Ft, A as no, S as gt } from "./Select-Chubcks_.js";
12
+ import { M as he } from "./MenuItem-CeCt0bfa.js";
13
+ import { g as wt, b as v, P as t, a as J } from "./createTheme-DmGCMO09.js";
14
+ import { c as ye } from "./DefaultPropsProvider-CZh8M2jM.js";
15
+ import { i as we, f as We } from "./FilledInput-DrGeWgue.js";
16
+ import { C as ro } from "./Close-jnEgOCZv.js";
17
+ import { g as Lt, s as _, m as ve, u as At, c as Dt } from "./DefaultPropsProvider-B2njZVNv.js";
18
+ import { u as tt } from "./useSlot-DtSnboW7.js";
19
+ import { I as _t } from "./IconButton-eWRhV6Q9.js";
20
+ import { P as Yt } from "./Popper-pPBEFLi4.js";
21
+ import { P as Jt, i as ao } from "./Paper-CnStNE24.js";
22
+ import { u as lo } from "./useId-CK6Kn3Tn.js";
23
+ import { u as Tt } from "./useControlled-nm4pBabJ.js";
24
+ import { a as bt } from "./refType-CaiGhRso.js";
25
+ import { s as io } from "./Portal-CLa9CbMv.js";
26
+ import { c as so } from "./createSvgIcon-CH41ZVFw.js";
27
+ import { c as mt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
28
+ import { u as co } from "./TransitionGroupContext-CYRQkQ6k.js";
29
+ import { B as Ht } from "./ButtonBase-DugIO1pR.js";
30
+ import { c as Wt } from "./chainPropTypes-D9lkm76m.js";
31
+ import { T as po } from "./TextField-q_SeLeNd.js";
32
+ import { C as uo } from "./CircularProgress-t8uGhLMo.js";
33
+ function fo(e, r, a, c, h) {
34
+ if (process.env.NODE_ENV === "production")
35
+ return null;
36
+ const k = h || r;
37
+ return typeof e[r] < "u" ? new Error(`The prop \`${k}\` is not supported. Please remove it.`) : null;
38
+ }
39
+ const go = (e) => {
40
+ const r = x.useRef({});
41
+ return x.useEffect(() => {
42
+ r.current = e;
43
+ }), r.current;
44
+ };
45
+ function jt(e) {
46
+ return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
47
+ }
48
+ function bo(e = {}) {
49
+ const {
50
+ ignoreAccents: r = !0,
51
+ ignoreCase: a = !0,
52
+ limit: c,
53
+ matchFrom: h = "any",
54
+ stringify: k,
55
+ trim: C = !1
56
+ } = e;
57
+ return (I, {
58
+ inputValue: S,
59
+ getOptionLabel: $
60
+ }) => {
61
+ let T = C ? S.trim() : S;
62
+ a && (T = T.toLowerCase()), r && (T = jt(T));
63
+ const R = T ? I.filter((Q) => {
64
+ let A = (k || $)(Q);
65
+ return a && (A = A.toLowerCase()), r && (A = jt(A)), h === "start" ? A.startsWith(T) : A.includes(T);
66
+ }) : I;
67
+ return typeof c == "number" ? R.slice(0, c) : R;
68
+ };
69
+ }
70
+ const mo = bo(), Bt = 5, ho = (e) => {
71
+ var r;
72
+ return e.current !== null && ((r = e.current.parentElement) == null ? void 0 : r.contains(document.activeElement));
73
+ }, yo = [];
74
+ function Ut(e, r, a, c) {
75
+ if (r || e == null || c)
76
+ return "";
77
+ const h = a(e);
78
+ return typeof h == "string" ? h : "";
79
+ }
80
+ function vo(e) {
81
+ const {
82
+ // eslint-disable-next-line @typescript-eslint/naming-convention
83
+ unstable_isActiveElementInListbox: r = ho,
84
+ // eslint-disable-next-line @typescript-eslint/naming-convention
85
+ unstable_classNamePrefix: a = "Mui",
86
+ autoComplete: c = !1,
87
+ autoHighlight: h = !1,
88
+ autoSelect: k = !1,
89
+ blurOnSelect: C = !1,
90
+ clearOnBlur: I = !e.freeSolo,
91
+ clearOnEscape: S = !1,
92
+ componentName: $ = "useAutocomplete",
93
+ defaultValue: T = e.multiple ? yo : null,
94
+ disableClearable: R = !1,
95
+ disableCloseOnSelect: Q = !1,
96
+ disabled: A,
97
+ disabledItemsFocusable: V = !1,
98
+ disableListWrap: ie = !1,
99
+ filterOptions: re = mo,
100
+ filterSelectedOptions: de = !1,
101
+ freeSolo: ae = !1,
102
+ getOptionDisabled: p,
103
+ getOptionKey: W,
104
+ getOptionLabel: je = (n) => n.label ?? n,
105
+ groupBy: se,
106
+ handleHomeEndKeys: Be = !e.freeSolo,
107
+ id: ot,
108
+ includeInputInList: xe = !1,
109
+ inputValue: Ce,
110
+ isOptionEqualToValue: X = (n, o) => n === o,
111
+ multiple: m = !1,
112
+ onChange: Ie,
113
+ onClose: $e,
114
+ onHighlightChange: fe,
115
+ onInputChange: F,
116
+ onOpen: Le,
117
+ open: Ue,
118
+ openOnFocus: Ae = !1,
119
+ options: De,
120
+ readOnly: Z = !1,
121
+ renderValue: H,
122
+ selectOnFocus: Ge = !e.freeSolo,
123
+ value: Re
124
+ } = e, j = lo(ot);
125
+ let d = je;
126
+ d = (n) => {
127
+ const o = je(n);
128
+ if (typeof o != "string") {
129
+ if (process.env.NODE_ENV !== "production") {
130
+ const l = o === void 0 ? "undefined" : `${typeof o} (${o})`;
131
+ console.error(`MUI: The \`getOptionLabel\` method of ${$} returned ${l} instead of a string for ${JSON.stringify(n)}.`);
132
+ }
133
+ return String(o);
134
+ }
135
+ return o;
136
+ };
137
+ const U = x.useRef(!1), G = x.useRef(!0), L = x.useRef(null), ee = x.useRef(null), [Ke, Rt] = x.useState(null), [Y, nt] = x.useState(-1), yt = h ? 0 : -1, z = x.useRef(yt), Et = x.useRef(Ut(T ?? Re, m, d)).current, [u, qe] = Tt({
138
+ controlled: Re,
139
+ default: T,
140
+ name: $
141
+ }), [P, Oe] = Tt({
142
+ controlled: Ce,
143
+ default: Et,
144
+ name: $,
145
+ state: "inputValue"
146
+ }), [Ee, rt] = x.useState(!1), Ne = x.useCallback((n, o, l) => {
147
+ if (!(m ? u.length < o.length : o !== null) && !I)
148
+ return;
149
+ const i = Ut(o, m, d, H);
150
+ P !== i && (Oe(i), F && F(n, i, l));
151
+ }, [d, P, m, F, Oe, I, u, H]), [ce, Pe] = Tt({
152
+ controlled: Ue,
153
+ default: !1,
154
+ name: $,
155
+ state: "open"
156
+ }), [Nt, Me] = x.useState(!0), at = !m && u != null && P === d(u), K = ce && !Z, w = K ? re(
157
+ De.filter((n) => !(de && (m ? u : [u]).some((o) => o !== null && X(n, o)))),
158
+ // we use the empty string to manipulate `filterOptions` to not filter any options
159
+ // i.e. the filter predicate always returns true
160
+ {
161
+ inputValue: at && Nt ? "" : P,
162
+ getOptionLabel: d
163
+ }
164
+ ) : [], te = go({
165
+ filteredOptions: w,
166
+ value: u,
167
+ inputValue: P
168
+ });
169
+ x.useEffect(() => {
170
+ const n = u !== te.value;
171
+ Ee && !n || ae && !n || Ne(null, u, "reset");
172
+ }, [u, Ne, Ee, te.value, ae]);
173
+ const lt = ce && w.length > 0 && !Z, oe = bt((n) => {
174
+ if (n === -1)
175
+ L.current.focus();
176
+ else {
177
+ const o = H ? "data-item-index" : "data-tag-index";
178
+ Ke.querySelector(`[${o}="${n}"]`).focus();
179
+ }
180
+ });
181
+ x.useEffect(() => {
182
+ m && Y > u.length - 1 && (nt(-1), oe(-1));
183
+ }, [u, m, Y, oe]);
184
+ function vt(n, o) {
185
+ if (!ee.current || n < 0 || n >= w.length)
186
+ return -1;
187
+ let l = n;
188
+ for (; ; ) {
189
+ const g = ee.current.querySelector(`[data-option-index="${l}"]`), i = V ? !1 : !g || g.disabled || g.getAttribute("aria-disabled") === "true";
190
+ if (g && g.hasAttribute("tabindex") && !i)
191
+ return l;
192
+ if (o === "next" ? l = (l + 1) % w.length : l = (l - 1 + w.length) % w.length, l === n)
193
+ return -1;
194
+ }
195
+ }
196
+ const pe = bt(({
197
+ event: n,
198
+ index: o,
199
+ reason: l
200
+ }) => {
201
+ if (z.current = o, o === -1 ? L.current.removeAttribute("aria-activedescendant") : L.current.setAttribute("aria-activedescendant", `${j}-option-${o}`), fe && ["mouse", "keyboard", "touch"].includes(l) && fe(n, o === -1 ? null : w[o], l), !ee.current)
202
+ return;
203
+ const g = ee.current.querySelector(`[role="option"].${a}-focused`);
204
+ g && (g.classList.remove(`${a}-focused`), g.classList.remove(`${a}-focusVisible`));
205
+ let i = ee.current;
206
+ if (ee.current.getAttribute("role") !== "listbox" && (i = ee.current.parentElement.querySelector('[role="listbox"]')), !i)
207
+ return;
208
+ if (o === -1) {
209
+ i.scrollTop = 0;
210
+ return;
211
+ }
212
+ const O = ee.current.querySelector(`[data-option-index="${o}"]`);
213
+ if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), i.scrollHeight > i.clientHeight && l !== "mouse" && l !== "touch")) {
214
+ const D = O, B = i.clientHeight + i.scrollTop, Xe = D.offsetTop + D.offsetHeight;
215
+ Xe > B ? i.scrollTop = Xe - i.clientHeight : D.offsetTop - D.offsetHeight * (se ? 1.3 : 0) < i.scrollTop && (i.scrollTop = D.offsetTop - D.offsetHeight * (se ? 1.3 : 0));
216
+ }
217
+ }), ne = bt(({
218
+ event: n,
219
+ diff: o,
220
+ direction: l = "next",
221
+ reason: g
222
+ }) => {
223
+ if (!K)
224
+ return;
225
+ const O = vt((() => {
226
+ const D = w.length - 1;
227
+ if (o === "reset")
228
+ return yt;
229
+ if (o === "start")
230
+ return 0;
231
+ if (o === "end")
232
+ return D;
233
+ const B = z.current + o;
234
+ return B < 0 ? B === -1 && xe ? -1 : ie && z.current !== -1 || Math.abs(o) > 1 ? 0 : D : B > D ? B === D + 1 && xe ? -1 : ie || Math.abs(o) > 1 ? D : 0 : B;
235
+ })(), l);
236
+ if (pe({
237
+ index: O,
238
+ reason: g,
239
+ event: n
240
+ }), c && o !== "reset")
241
+ if (O === -1)
242
+ L.current.value = P;
243
+ else {
244
+ const D = d(w[O]);
245
+ L.current.value = D, D.toLowerCase().indexOf(P.toLowerCase()) === 0 && P.length > 0 && L.current.setSelectionRange(P.length, D.length);
246
+ }
247
+ }), xt = () => {
248
+ const n = (o, l) => {
249
+ const g = o ? d(o) : "", i = l ? d(l) : "";
250
+ return g === i;
251
+ };
252
+ if (z.current !== -1 && te.filteredOptions && te.filteredOptions.length !== w.length && te.inputValue === P && (m ? u.length === te.value.length && te.value.every((o, l) => d(u[l]) === d(o)) : n(te.value, u))) {
253
+ const o = te.filteredOptions[z.current];
254
+ if (o)
255
+ return w.findIndex((l) => d(l) === d(o));
256
+ }
257
+ return -1;
258
+ }, _e = x.useCallback(() => {
259
+ if (!K)
260
+ return;
261
+ const n = xt();
262
+ if (n !== -1) {
263
+ z.current = n;
264
+ return;
265
+ }
266
+ const o = m ? u[0] : u;
267
+ if (w.length === 0 || o == null) {
268
+ ne({
269
+ diff: "reset"
270
+ });
271
+ return;
272
+ }
273
+ if (ee.current) {
274
+ if (o != null) {
275
+ const l = w[z.current];
276
+ if (m && l && u.findIndex((i) => X(l, i)) !== -1)
277
+ return;
278
+ const g = w.findIndex((i) => X(i, o));
279
+ g === -1 ? ne({
280
+ diff: "reset"
281
+ }) : pe({
282
+ index: g
283
+ });
284
+ return;
285
+ }
286
+ if (z.current >= w.length - 1) {
287
+ pe({
288
+ index: w.length - 1
289
+ });
290
+ return;
291
+ }
292
+ pe({
293
+ index: z.current
294
+ });
295
+ }
296
+ }, [
297
+ // Only sync the highlighted index when the option switch between empty and not
298
+ w.length,
299
+ // Don't sync the highlighted index with the value when multiple
300
+ // eslint-disable-next-line react-hooks/exhaustive-deps
301
+ m ? !1 : u,
302
+ de,
303
+ ne,
304
+ pe,
305
+ K,
306
+ P,
307
+ m
308
+ ]), Ct = bt((n) => {
309
+ io(ee, n), n && _e();
310
+ });
311
+ process.env.NODE_ENV !== "production" && x.useEffect(() => {
312
+ (!L.current || L.current.nodeName !== "INPUT") && (L.current && L.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${$} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
313
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${L.current} while an HTMLInputElement was expected.`, `Instead, ${$} expects an input element.`, "", $ === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
314
+ `)));
315
+ }, [$]), x.useEffect(() => {
316
+ _e();
317
+ }, [_e]);
318
+ const q = (n) => {
319
+ ce || (Pe(!0), Me(!0), Le && Le(n));
320
+ }, Se = (n, o) => {
321
+ ce && (Pe(!1), $e && $e(n, o));
322
+ }, ue = (n, o, l, g) => {
323
+ if (m) {
324
+ if (u.length === o.length && u.every((i, O) => i === o[O]))
325
+ return;
326
+ } else if (u === o)
327
+ return;
328
+ Ie && Ie(n, o, l, g), qe(o);
329
+ }, Ve = x.useRef(!1), le = (n, o, l = "selectOption", g = "options") => {
330
+ let i = l, O = o;
331
+ if (m) {
332
+ if (O = Array.isArray(u) ? u.slice() : [], process.env.NODE_ENV !== "production") {
333
+ const B = O.filter((Xe) => X(o, Xe));
334
+ B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${$} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
335
+ `));
336
+ }
337
+ const D = O.findIndex((B) => X(o, B));
338
+ D === -1 ? O.push(o) : g !== "freeSolo" && (O.splice(D, 1), i = "removeOption");
339
+ }
340
+ Ne(n, O, i), ue(n, O, i, {
341
+ option: o
342
+ }), !Q && (!n || !n.ctrlKey && !n.metaKey) && Se(n, i), (C === !0 || C === "touch" && Ve.current || C === "mouse" && !Ve.current) && L.current.blur();
343
+ };
344
+ function it(n, o) {
345
+ if (n === -1)
346
+ return -1;
347
+ let l = n;
348
+ for (; ; ) {
349
+ if (o === "next" && l === u.length || o === "previous" && l === -1)
350
+ return -1;
351
+ const g = H ? "data-item-index" : "data-tag-index", i = Ke.querySelector(`[${g}="${l}"]`);
352
+ if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
353
+ l += o === "next" ? 1 : -1;
354
+ else
355
+ return l;
356
+ }
357
+ }
358
+ const st = (n, o) => {
359
+ if (!m)
360
+ return;
361
+ P === "" && Se(n, "toggleInput");
362
+ let l = Y;
363
+ Y === -1 ? P === "" && o === "previous" && (l = u.length - 1) : (l += o === "next" ? 1 : -1, l < 0 && (l = 0), l === u.length && (l = -1)), l = it(l, o), nt(l), oe(l);
364
+ }, ke = (n) => {
365
+ U.current = !0, Oe(""), F && F(n, "", "clear"), ue(n, m ? [] : null, "clear");
366
+ }, It = (n) => (o) => {
367
+ if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (Y !== -1 && !["ArrowLeft", "ArrowRight"].includes(o.key) && (nt(-1), oe(-1)), o.which !== 229))
368
+ switch (o.key) {
369
+ case "Home":
370
+ K && Be && (o.preventDefault(), ne({
371
+ diff: "start",
372
+ direction: "next",
373
+ reason: "keyboard",
374
+ event: o
375
+ }));
376
+ break;
377
+ case "End":
378
+ K && Be && (o.preventDefault(), ne({
379
+ diff: "end",
380
+ direction: "previous",
381
+ reason: "keyboard",
382
+ event: o
383
+ }));
384
+ break;
385
+ case "PageUp":
386
+ o.preventDefault(), ne({
387
+ diff: -Bt,
388
+ direction: "previous",
389
+ reason: "keyboard",
390
+ event: o
391
+ }), q(o);
392
+ break;
393
+ case "PageDown":
394
+ o.preventDefault(), ne({
395
+ diff: Bt,
396
+ direction: "next",
397
+ reason: "keyboard",
398
+ event: o
399
+ }), q(o);
400
+ break;
401
+ case "ArrowDown":
402
+ o.preventDefault(), ne({
403
+ diff: 1,
404
+ direction: "next",
405
+ reason: "keyboard",
406
+ event: o
407
+ }), q(o);
408
+ break;
409
+ case "ArrowUp":
410
+ o.preventDefault(), ne({
411
+ diff: -1,
412
+ direction: "previous",
413
+ reason: "keyboard",
414
+ event: o
415
+ }), q(o);
416
+ break;
417
+ case "ArrowLeft":
418
+ !m && H ? oe(0) : st(o, "previous");
419
+ break;
420
+ case "ArrowRight":
421
+ !m && H ? oe(-1) : st(o, "next");
422
+ break;
423
+ case "Enter":
424
+ if (z.current !== -1 && K) {
425
+ const l = w[z.current], g = p ? p(l) : !1;
426
+ if (o.preventDefault(), g)
427
+ return;
428
+ le(o, l, "selectOption"), c && L.current.setSelectionRange(L.current.value.length, L.current.value.length);
429
+ } else ae && P !== "" && at === !1 && (m && o.preventDefault(), le(o, P, "createOption", "freeSolo"));
430
+ break;
431
+ case "Escape":
432
+ K ? (o.preventDefault(), o.stopPropagation(), Se(o, "escape")) : S && (P !== "" || m && u.length > 0 || H) && (o.preventDefault(), o.stopPropagation(), ke(o));
433
+ break;
434
+ case "Backspace":
435
+ if (m && !Z && P === "" && u.length > 0) {
436
+ const l = Y === -1 ? u.length - 1 : Y, g = u.slice();
437
+ g.splice(l, 1), ue(o, g, "removeOption", {
438
+ option: u[l]
439
+ });
440
+ }
441
+ !m && H && !Z && (qe(null), oe(-1));
442
+ break;
443
+ case "Delete":
444
+ if (m && !Z && P === "" && u.length > 0 && Y !== -1) {
445
+ const l = Y, g = u.slice();
446
+ g.splice(l, 1), ue(o, g, "removeOption", {
447
+ option: u[l]
448
+ });
449
+ }
450
+ !m && H && !Z && (qe(null), oe(-1));
451
+ break;
452
+ }
453
+ }, $t = (n) => {
454
+ rt(!0), Ae && !U.current && q(n);
455
+ }, Te = (n) => {
456
+ if (r(ee)) {
457
+ L.current.focus();
458
+ return;
459
+ }
460
+ rt(!1), G.current = !0, U.current = !1, k && z.current !== -1 && K ? le(n, w[z.current], "blur") : k && ae && P !== "" ? le(n, P, "blur", "freeSolo") : I && Ne(n, u, "blur"), Se(n, "blur");
461
+ }, Ye = (n) => {
462
+ const o = n.target.value;
463
+ P !== o && (Oe(o), Me(!1), F && F(n, o, "input")), o === "" ? !R && !m && ue(n, null, "clear") : q(n);
464
+ }, Je = (n) => {
465
+ const o = Number(n.currentTarget.getAttribute("data-option-index"));
466
+ z.current !== o && pe({
467
+ event: n,
468
+ index: o,
469
+ reason: "mouse"
470
+ });
471
+ }, Ot = (n) => {
472
+ pe({
473
+ event: n,
474
+ index: Number(n.currentTarget.getAttribute("data-option-index")),
475
+ reason: "touch"
476
+ }), Ve.current = !0;
477
+ }, Pt = (n) => {
478
+ const o = Number(n.currentTarget.getAttribute("data-option-index"));
479
+ le(n, w[o], "selectOption"), Ve.current = !1;
480
+ }, ct = (n) => (o) => {
481
+ const l = u.slice();
482
+ l.splice(n, 1), ue(o, l, "removeOption", {
483
+ option: u[n]
484
+ });
485
+ }, Mt = (n) => {
486
+ ue(n, null, "removeOption", {
487
+ option: u
488
+ });
489
+ }, ze = (n) => {
490
+ ce ? Se(n, "toggleInput") : q(n);
491
+ }, N = (n) => {
492
+ n.currentTarget.contains(n.target) && n.target.getAttribute("id") !== j && n.preventDefault();
493
+ }, M = (n) => {
494
+ n.currentTarget.contains(n.target) && (L.current.focus(), Ge && G.current && L.current.selectionEnd - L.current.selectionStart === 0 && L.current.select(), G.current = !1);
495
+ }, ge = (n) => {
496
+ !A && (P === "" || !ce) && ze(n);
497
+ };
498
+ let Qe = ae && P.length > 0;
499
+ Qe = Qe || (m ? u.length > 0 : u !== null);
500
+ let pt = w;
501
+ if (se) {
502
+ const n = /* @__PURE__ */ new Map();
503
+ let o = !1;
504
+ pt = w.reduce((l, g, i) => {
505
+ const O = se(g);
506
+ return l.length > 0 && l[l.length - 1].group === O ? l[l.length - 1].options.push(g) : (process.env.NODE_ENV !== "production" && (n.get(O) && !o && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${$} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), o = !0), n.set(O, !0)), l.push({
507
+ key: i,
508
+ index: i,
509
+ group: O,
510
+ options: [g]
511
+ })), l;
512
+ }, []);
513
+ }
514
+ return A && Ee && Te(), {
515
+ getRootProps: (n = {}) => ({
516
+ ...n,
517
+ onKeyDown: It(n),
518
+ onMouseDown: N,
519
+ onClick: M
520
+ }),
521
+ getInputLabelProps: () => ({
522
+ id: `${j}-label`,
523
+ htmlFor: j
524
+ }),
525
+ getInputProps: () => ({
526
+ id: j,
527
+ value: P,
528
+ onBlur: Te,
529
+ onFocus: $t,
530
+ onChange: Ye,
531
+ onMouseDown: ge,
532
+ // if open then this is handled imperatively so don't let react override
533
+ // only have an opinion about this when closed
534
+ "aria-activedescendant": K ? "" : null,
535
+ "aria-autocomplete": c ? "both" : "list",
536
+ "aria-controls": lt ? `${j}-listbox` : void 0,
537
+ "aria-expanded": lt,
538
+ // Disable browser's suggestion that might overlap with the popup.
539
+ // Handle autocomplete but not autofill.
540
+ autoComplete: "off",
541
+ ref: L,
542
+ autoCapitalize: "none",
543
+ spellCheck: "false",
544
+ role: "combobox",
545
+ disabled: A
546
+ }),
547
+ getClearProps: () => ({
548
+ tabIndex: -1,
549
+ type: "button",
550
+ onClick: ke
551
+ }),
552
+ getItemProps: ({
553
+ index: n = 0
554
+ } = {}) => ({
555
+ ...m && {
556
+ key: n
557
+ },
558
+ ...H ? {
559
+ "data-item-index": n
560
+ } : {
561
+ "data-tag-index": n
562
+ },
563
+ tabIndex: -1,
564
+ ...!Z && {
565
+ onDelete: m ? ct(n) : Mt
566
+ }
567
+ }),
568
+ getPopupIndicatorProps: () => ({
569
+ tabIndex: -1,
570
+ type: "button",
571
+ onClick: ze
572
+ }),
573
+ // deprecated
574
+ getTagProps: ({
575
+ index: n
576
+ }) => ({
577
+ key: n,
578
+ "data-tag-index": n,
579
+ tabIndex: -1,
580
+ ...!Z && {
581
+ onDelete: ct(n)
582
+ }
583
+ }),
584
+ getListboxProps: () => ({
585
+ role: "listbox",
586
+ id: `${j}-listbox`,
587
+ "aria-labelledby": `${j}-label`,
588
+ ref: Ct,
589
+ onMouseDown: (n) => {
590
+ n.preventDefault();
591
+ }
592
+ }),
593
+ getOptionProps: ({
594
+ index: n,
595
+ option: o
596
+ }) => {
597
+ const l = (m ? u : [u]).some((i) => i != null && X(o, i)), g = p ? p(o) : !1;
598
+ return {
599
+ key: (W == null ? void 0 : W(o)) ?? d(o),
600
+ tabIndex: -1,
601
+ role: "option",
602
+ id: `${j}-option-${n}`,
603
+ onMouseMove: Je,
604
+ onClick: Pt,
605
+ onTouchStart: Ot,
606
+ "data-option-index": n,
607
+ "aria-disabled": g,
608
+ "aria-selected": l
609
+ };
610
+ },
611
+ id: j,
612
+ inputValue: P,
613
+ value: u,
614
+ dirty: Qe,
615
+ expanded: K && Ke,
616
+ popupOpen: K,
617
+ focused: Ee || Y !== -1,
618
+ anchorEl: Ke,
619
+ setAnchorEl: Rt,
620
+ focusedItem: Y,
621
+ // deprecated
622
+ focusedTag: Y,
623
+ groupedOptions: pt
624
+ };
625
+ }
626
+ function xo(e) {
627
+ return wt("MuiListSubheader", e);
628
+ }
629
+ Lt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
630
+ const Co = (e) => {
631
+ const {
632
+ classes: r,
633
+ color: a,
634
+ disableGutters: c,
635
+ inset: h,
636
+ disableSticky: k
637
+ } = e, C = {
638
+ root: ["root", a !== "default" && `color${v(a)}`, !c && "gutters", h && "inset", !k && "sticky"]
639
+ };
640
+ return Dt(C, xo, r);
641
+ }, Io = _("li", {
642
+ name: "MuiListSubheader",
643
+ slot: "Root",
644
+ overridesResolver: (e, r) => {
645
+ const {
646
+ ownerState: a
647
+ } = e;
648
+ return [r.root, a.color !== "default" && r[`color${v(a.color)}`], !a.disableGutters && r.gutters, a.inset && r.inset, !a.disableSticky && r.sticky];
649
+ }
650
+ })(ve(({
651
+ theme: e
652
+ }) => ({
653
+ boxSizing: "border-box",
654
+ lineHeight: "48px",
655
+ listStyle: "none",
656
+ color: (e.vars || e).palette.text.secondary,
657
+ fontFamily: e.typography.fontFamily,
658
+ fontWeight: e.typography.fontWeightMedium,
659
+ fontSize: e.typography.pxToRem(14),
660
+ variants: [{
661
+ props: {
662
+ color: "primary"
663
+ },
664
+ style: {
665
+ color: (e.vars || e).palette.primary.main
666
+ }
667
+ }, {
668
+ props: {
669
+ color: "inherit"
670
+ },
671
+ style: {
672
+ color: "inherit"
673
+ }
674
+ }, {
675
+ props: ({
676
+ ownerState: r
677
+ }) => !r.disableGutters,
678
+ style: {
679
+ paddingLeft: 16,
680
+ paddingRight: 16
681
+ }
682
+ }, {
683
+ props: ({
684
+ ownerState: r
685
+ }) => r.inset,
686
+ style: {
687
+ paddingLeft: 72
688
+ }
689
+ }, {
690
+ props: ({
691
+ ownerState: r
692
+ }) => !r.disableSticky,
693
+ style: {
694
+ position: "sticky",
695
+ top: 0,
696
+ zIndex: 1,
697
+ backgroundColor: (e.vars || e).palette.background.paper
698
+ }
699
+ }]
700
+ }))), ht = /* @__PURE__ */ x.forwardRef(function(r, a) {
701
+ const c = At({
702
+ props: r,
703
+ name: "MuiListSubheader"
704
+ }), {
705
+ className: h,
706
+ color: k = "default",
707
+ component: C = "li",
708
+ disableGutters: I = !1,
709
+ disableSticky: S = !1,
710
+ inset: $ = !1,
711
+ ...T
712
+ } = c, R = {
713
+ ...c,
714
+ color: k,
715
+ component: C,
716
+ disableGutters: I,
717
+ disableSticky: S,
718
+ inset: $
719
+ }, Q = Co(R);
720
+ return /* @__PURE__ */ s(Io, {
721
+ as: C,
722
+ className: ye(Q.root, h),
723
+ ref: a,
724
+ ownerState: R,
725
+ ...T
726
+ });
727
+ });
728
+ ht && (ht.muiSkipListHighlight = !0);
729
+ process.env.NODE_ENV !== "production" && (ht.propTypes = {
730
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
731
+ // │ These PropTypes are generated from the TypeScript type definitions. │
732
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
733
+ // └─────────────────────────────────────────────────────────────────────┘
734
+ /**
735
+ * The content of the component.
736
+ */
737
+ children: t.node,
738
+ /**
739
+ * Override or extend the styles applied to the component.
740
+ */
741
+ classes: t.object,
742
+ /**
743
+ * @ignore
744
+ */
745
+ className: t.string,
746
+ /**
747
+ * The color of the component. It supports those theme colors that make sense for this component.
748
+ * @default 'default'
749
+ */
750
+ color: t.oneOf(["default", "inherit", "primary"]),
751
+ /**
752
+ * The component used for the root node.
753
+ * Either a string to use a HTML element or a component.
754
+ */
755
+ component: t.elementType,
756
+ /**
757
+ * If `true`, the List Subheader will not have gutters.
758
+ * @default false
759
+ */
760
+ disableGutters: t.bool,
761
+ /**
762
+ * If `true`, the List Subheader will not stick to the top during scroll.
763
+ * @default false
764
+ */
765
+ disableSticky: t.bool,
766
+ /**
767
+ * If `true`, the List Subheader is indented.
768
+ * @default false
769
+ */
770
+ inset: t.bool,
771
+ /**
772
+ * The system prop that allows defining system overrides as well as additional CSS styles.
773
+ */
774
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
775
+ });
776
+ const $o = so(/* @__PURE__ */ s("path", {
777
+ d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
778
+ }), "Cancel");
779
+ function Oo(e) {
780
+ return wt("MuiChip", e);
781
+ }
782
+ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), Po = (e) => {
783
+ const {
784
+ classes: r,
785
+ disabled: a,
786
+ size: c,
787
+ color: h,
788
+ iconColor: k,
789
+ onDelete: C,
790
+ clickable: I,
791
+ variant: S
792
+ } = e, $ = {
793
+ root: ["root", S, a && "disabled", `size${v(c)}`, `color${v(h)}`, I && "clickable", I && `clickableColor${v(h)}`, C && "deletable", C && `deletableColor${v(h)}`, `${S}${v(h)}`],
794
+ label: ["label", `label${v(c)}`],
795
+ avatar: ["avatar", `avatar${v(c)}`, `avatarColor${v(h)}`],
796
+ icon: ["icon", `icon${v(c)}`, `iconColor${v(k)}`],
797
+ deleteIcon: ["deleteIcon", `deleteIcon${v(c)}`, `deleteIconColor${v(h)}`, `deleteIcon${v(S)}Color${v(h)}`]
798
+ };
799
+ return Dt($, Oo, r);
800
+ }, So = _("div", {
801
+ name: "MuiChip",
802
+ slot: "Root",
803
+ overridesResolver: (e, r) => {
804
+ const {
805
+ ownerState: a
806
+ } = e, {
807
+ color: c,
808
+ iconColor: h,
809
+ clickable: k,
810
+ onDelete: C,
811
+ size: I,
812
+ variant: S
813
+ } = a;
814
+ return [{
815
+ [`& .${b.avatar}`]: r.avatar
816
+ }, {
817
+ [`& .${b.avatar}`]: r[`avatar${v(I)}`]
818
+ }, {
819
+ [`& .${b.avatar}`]: r[`avatarColor${v(c)}`]
820
+ }, {
821
+ [`& .${b.icon}`]: r.icon
822
+ }, {
823
+ [`& .${b.icon}`]: r[`icon${v(I)}`]
824
+ }, {
825
+ [`& .${b.icon}`]: r[`iconColor${v(h)}`]
826
+ }, {
827
+ [`& .${b.deleteIcon}`]: r.deleteIcon
828
+ }, {
829
+ [`& .${b.deleteIcon}`]: r[`deleteIcon${v(I)}`]
830
+ }, {
831
+ [`& .${b.deleteIcon}`]: r[`deleteIconColor${v(c)}`]
832
+ }, {
833
+ [`& .${b.deleteIcon}`]: r[`deleteIcon${v(S)}Color${v(c)}`]
834
+ }, r.root, r[`size${v(I)}`], r[`color${v(c)}`], k && r.clickable, k && c !== "default" && r[`clickableColor${v(c)})`], C && r.deletable, C && c !== "default" && r[`deletableColor${v(c)}`], r[S], r[`${S}${v(c)}`]];
835
+ }
836
+ })(ve(({
837
+ theme: e
838
+ }) => {
839
+ const r = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
840
+ return {
841
+ maxWidth: "100%",
842
+ fontFamily: e.typography.fontFamily,
843
+ fontSize: e.typography.pxToRem(13),
844
+ display: "inline-flex",
845
+ alignItems: "center",
846
+ justifyContent: "center",
847
+ height: 32,
848
+ lineHeight: 1.5,
849
+ color: (e.vars || e).palette.text.primary,
850
+ backgroundColor: (e.vars || e).palette.action.selected,
851
+ borderRadius: 32 / 2,
852
+ whiteSpace: "nowrap",
853
+ transition: e.transitions.create(["background-color", "box-shadow"]),
854
+ // reset cursor explicitly in case ButtonBase is used
855
+ cursor: "unset",
856
+ // We disable the focus ring for mouse, touch and keyboard users.
857
+ outline: 0,
858
+ textDecoration: "none",
859
+ border: 0,
860
+ // Remove `button` border
861
+ padding: 0,
862
+ // Remove `button` padding
863
+ verticalAlign: "middle",
864
+ boxSizing: "border-box",
865
+ [`&.${b.disabled}`]: {
866
+ opacity: (e.vars || e).palette.action.disabledOpacity,
867
+ pointerEvents: "none"
868
+ },
869
+ [`& .${b.avatar}`]: {
870
+ marginLeft: 5,
871
+ marginRight: -6,
872
+ width: 24,
873
+ height: 24,
874
+ color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : r,
875
+ fontSize: e.typography.pxToRem(12)
876
+ },
877
+ [`& .${b.avatarColorPrimary}`]: {
878
+ color: (e.vars || e).palette.primary.contrastText,
879
+ backgroundColor: (e.vars || e).palette.primary.dark
880
+ },
881
+ [`& .${b.avatarColorSecondary}`]: {
882
+ color: (e.vars || e).palette.secondary.contrastText,
883
+ backgroundColor: (e.vars || e).palette.secondary.dark
884
+ },
885
+ [`& .${b.avatarSmall}`]: {
886
+ marginLeft: 4,
887
+ marginRight: -4,
888
+ width: 18,
889
+ height: 18,
890
+ fontSize: e.typography.pxToRem(10)
891
+ },
892
+ [`& .${b.icon}`]: {
893
+ marginLeft: 5,
894
+ marginRight: -6
895
+ },
896
+ [`& .${b.deleteIcon}`]: {
897
+ WebkitTapHighlightColor: "transparent",
898
+ color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : J(e.palette.text.primary, 0.26),
899
+ fontSize: 22,
900
+ cursor: "pointer",
901
+ margin: "0 5px 0 -6px",
902
+ "&:hover": {
903
+ color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : J(e.palette.text.primary, 0.4)
904
+ }
905
+ },
906
+ variants: [{
907
+ props: {
908
+ size: "small"
909
+ },
910
+ style: {
911
+ height: 24,
912
+ [`& .${b.icon}`]: {
913
+ fontSize: 18,
914
+ marginLeft: 4,
915
+ marginRight: -4
916
+ },
917
+ [`& .${b.deleteIcon}`]: {
918
+ fontSize: 16,
919
+ marginRight: 4,
920
+ marginLeft: -4
921
+ }
922
+ }
923
+ }, ...Object.entries(e.palette).filter(mt(["contrastText"])).map(([a]) => ({
924
+ props: {
925
+ color: a
926
+ },
927
+ style: {
928
+ backgroundColor: (e.vars || e).palette[a].main,
929
+ color: (e.vars || e).palette[a].contrastText,
930
+ [`& .${b.deleteIcon}`]: {
931
+ color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : J(e.palette[a].contrastText, 0.7),
932
+ "&:hover, &:active": {
933
+ color: (e.vars || e).palette[a].contrastText
934
+ }
935
+ }
936
+ }
937
+ })), {
938
+ props: (a) => a.iconColor === a.color,
939
+ style: {
940
+ [`& .${b.icon}`]: {
941
+ color: e.vars ? e.vars.palette.Chip.defaultIconColor : r
942
+ }
943
+ }
944
+ }, {
945
+ props: (a) => a.iconColor === a.color && a.color !== "default",
946
+ style: {
947
+ [`& .${b.icon}`]: {
948
+ color: "inherit"
949
+ }
950
+ }
951
+ }, {
952
+ props: {
953
+ onDelete: !0
954
+ },
955
+ style: {
956
+ [`&.${b.focusVisible}`]: {
957
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : J(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
958
+ }
959
+ }
960
+ }, ...Object.entries(e.palette).filter(mt(["dark"])).map(([a]) => ({
961
+ props: {
962
+ color: a,
963
+ onDelete: !0
964
+ },
965
+ style: {
966
+ [`&.${b.focusVisible}`]: {
967
+ background: (e.vars || e).palette[a].dark
968
+ }
969
+ }
970
+ })), {
971
+ props: {
972
+ clickable: !0
973
+ },
974
+ style: {
975
+ userSelect: "none",
976
+ WebkitTapHighlightColor: "transparent",
977
+ cursor: "pointer",
978
+ "&:hover": {
979
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : J(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
980
+ },
981
+ [`&.${b.focusVisible}`]: {
982
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : J(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
983
+ },
984
+ "&:active": {
985
+ boxShadow: (e.vars || e).shadows[1]
986
+ }
987
+ }
988
+ }, ...Object.entries(e.palette).filter(mt(["dark"])).map(([a]) => ({
989
+ props: {
990
+ color: a,
991
+ clickable: !0
992
+ },
993
+ style: {
994
+ [`&:hover, &.${b.focusVisible}`]: {
995
+ backgroundColor: (e.vars || e).palette[a].dark
996
+ }
997
+ }
998
+ })), {
999
+ props: {
1000
+ variant: "outlined"
1001
+ },
1002
+ style: {
1003
+ backgroundColor: "transparent",
1004
+ border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
1005
+ [`&.${b.clickable}:hover`]: {
1006
+ backgroundColor: (e.vars || e).palette.action.hover
1007
+ },
1008
+ [`&.${b.focusVisible}`]: {
1009
+ backgroundColor: (e.vars || e).palette.action.focus
1010
+ },
1011
+ [`& .${b.avatar}`]: {
1012
+ marginLeft: 4
1013
+ },
1014
+ [`& .${b.avatarSmall}`]: {
1015
+ marginLeft: 2
1016
+ },
1017
+ [`& .${b.icon}`]: {
1018
+ marginLeft: 4
1019
+ },
1020
+ [`& .${b.iconSmall}`]: {
1021
+ marginLeft: 2
1022
+ },
1023
+ [`& .${b.deleteIcon}`]: {
1024
+ marginRight: 5
1025
+ },
1026
+ [`& .${b.deleteIconSmall}`]: {
1027
+ marginRight: 3
1028
+ }
1029
+ }
1030
+ }, ...Object.entries(e.palette).filter(mt()).map(([a]) => ({
1031
+ props: {
1032
+ variant: "outlined",
1033
+ color: a
1034
+ },
1035
+ style: {
1036
+ color: (e.vars || e).palette[a].main,
1037
+ border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : J(e.palette[a].main, 0.7)}`,
1038
+ [`&.${b.clickable}:hover`]: {
1039
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : J(e.palette[a].main, e.palette.action.hoverOpacity)
1040
+ },
1041
+ [`&.${b.focusVisible}`]: {
1042
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : J(e.palette[a].main, e.palette.action.focusOpacity)
1043
+ },
1044
+ [`& .${b.deleteIcon}`]: {
1045
+ color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : J(e.palette[a].main, 0.7),
1046
+ "&:hover, &:active": {
1047
+ color: (e.vars || e).palette[a].main
1048
+ }
1049
+ }
1050
+ }
1051
+ }))]
1052
+ };
1053
+ })), ko = _("span", {
1054
+ name: "MuiChip",
1055
+ slot: "Label",
1056
+ overridesResolver: (e, r) => {
1057
+ const {
1058
+ ownerState: a
1059
+ } = e, {
1060
+ size: c
1061
+ } = a;
1062
+ return [r.label, r[`label${v(c)}`]];
1063
+ }
1064
+ })({
1065
+ overflow: "hidden",
1066
+ textOverflow: "ellipsis",
1067
+ paddingLeft: 12,
1068
+ paddingRight: 12,
1069
+ whiteSpace: "nowrap",
1070
+ variants: [{
1071
+ props: {
1072
+ variant: "outlined"
1073
+ },
1074
+ style: {
1075
+ paddingLeft: 11,
1076
+ paddingRight: 11
1077
+ }
1078
+ }, {
1079
+ props: {
1080
+ size: "small"
1081
+ },
1082
+ style: {
1083
+ paddingLeft: 8,
1084
+ paddingRight: 8
1085
+ }
1086
+ }, {
1087
+ props: {
1088
+ size: "small",
1089
+ variant: "outlined"
1090
+ },
1091
+ style: {
1092
+ paddingLeft: 7,
1093
+ paddingRight: 7
1094
+ }
1095
+ }]
1096
+ });
1097
+ function Gt(e) {
1098
+ return e.key === "Backspace" || e.key === "Delete";
1099
+ }
1100
+ const Qt = /* @__PURE__ */ x.forwardRef(function(r, a) {
1101
+ const c = At({
1102
+ props: r,
1103
+ name: "MuiChip"
1104
+ }), {
1105
+ avatar: h,
1106
+ className: k,
1107
+ clickable: C,
1108
+ color: I = "default",
1109
+ component: S,
1110
+ deleteIcon: $,
1111
+ disabled: T = !1,
1112
+ icon: R,
1113
+ label: Q,
1114
+ onClick: A,
1115
+ onDelete: V,
1116
+ onKeyDown: ie,
1117
+ onKeyUp: re,
1118
+ size: de = "medium",
1119
+ variant: ae = "filled",
1120
+ tabIndex: p,
1121
+ skipFocusWhenDisabled: W = !1,
1122
+ // TODO v6: Rename to `focusableWhenDisabled`.
1123
+ slots: je = {},
1124
+ slotProps: se = {},
1125
+ ...Be
1126
+ } = c, ot = x.useRef(null), xe = co(ot, a), Ce = (d) => {
1127
+ d.stopPropagation(), V && V(d);
1128
+ }, X = (d) => {
1129
+ d.currentTarget === d.target && Gt(d) && d.preventDefault(), ie && ie(d);
1130
+ }, m = (d) => {
1131
+ d.currentTarget === d.target && V && Gt(d) && V(d), re && re(d);
1132
+ }, Ie = C !== !1 && A ? !0 : C, $e = Ie || V ? Ht : S || "div", fe = {
1133
+ ...c,
1134
+ component: $e,
1135
+ disabled: T,
1136
+ size: de,
1137
+ color: I,
1138
+ iconColor: /* @__PURE__ */ x.isValidElement(R) && R.props.color || I,
1139
+ onDelete: !!V,
1140
+ clickable: Ie,
1141
+ variant: ae
1142
+ }, F = Po(fe), Le = $e === Ht ? {
1143
+ component: S || "div",
1144
+ focusVisibleClassName: F.focusVisible,
1145
+ ...V && {
1146
+ disableRipple: !0
1147
+ }
1148
+ } : {};
1149
+ let Ue = null;
1150
+ V && (Ue = $ && /* @__PURE__ */ x.isValidElement($) ? /* @__PURE__ */ x.cloneElement($, {
1151
+ className: ye($.props.className, F.deleteIcon),
1152
+ onClick: Ce
1153
+ }) : /* @__PURE__ */ s($o, {
1154
+ className: F.deleteIcon,
1155
+ onClick: Ce
1156
+ }));
1157
+ let Ae = null;
1158
+ h && /* @__PURE__ */ x.isValidElement(h) && (Ae = /* @__PURE__ */ x.cloneElement(h, {
1159
+ className: ye(F.avatar, h.props.className)
1160
+ }));
1161
+ let De = null;
1162
+ R && /* @__PURE__ */ x.isValidElement(R) && (De = /* @__PURE__ */ x.cloneElement(R, {
1163
+ className: ye(F.icon, R.props.className)
1164
+ })), process.env.NODE_ENV !== "production" && Ae && De && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");
1165
+ const Z = {
1166
+ slots: je,
1167
+ slotProps: se
1168
+ }, [H, Ge] = tt("root", {
1169
+ elementType: So,
1170
+ externalForwardedProps: {
1171
+ ...Z,
1172
+ ...Be
1173
+ },
1174
+ ownerState: fe,
1175
+ // The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
1176
+ shouldForwardComponentProp: !0,
1177
+ ref: xe,
1178
+ className: ye(F.root, k),
1179
+ additionalProps: {
1180
+ disabled: Ie && T ? !0 : void 0,
1181
+ tabIndex: W && T ? -1 : p,
1182
+ ...Le
1183
+ },
1184
+ getSlotProps: (d) => ({
1185
+ ...d,
1186
+ onClick: (U) => {
1187
+ var G;
1188
+ (G = d.onClick) == null || G.call(d, U), A == null || A(U);
1189
+ },
1190
+ onKeyDown: (U) => {
1191
+ var G;
1192
+ (G = d.onKeyDown) == null || G.call(d, U), X == null || X(U);
1193
+ },
1194
+ onKeyUp: (U) => {
1195
+ var G;
1196
+ (G = d.onKeyUp) == null || G.call(d, U), m == null || m(U);
1197
+ }
1198
+ })
1199
+ }), [Re, j] = tt("label", {
1200
+ elementType: ko,
1201
+ externalForwardedProps: Z,
1202
+ ownerState: fe,
1203
+ className: F.label
1204
+ });
1205
+ return /* @__PURE__ */ E(H, {
1206
+ as: $e,
1207
+ ...Ge,
1208
+ children: [Ae || De, /* @__PURE__ */ s(Re, {
1209
+ ...j,
1210
+ children: Q
1211
+ }), Ue]
1212
+ });
1213
+ });
1214
+ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
1215
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1216
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1217
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1218
+ // └─────────────────────────────────────────────────────────────────────┘
1219
+ /**
1220
+ * The Avatar element to display.
1221
+ */
1222
+ avatar: t.element,
1223
+ /**
1224
+ * This prop isn't supported.
1225
+ * Use the `component` prop if you need to change the children structure.
1226
+ */
1227
+ children: fo,
1228
+ /**
1229
+ * Override or extend the styles applied to the component.
1230
+ */
1231
+ classes: t.object,
1232
+ /**
1233
+ * @ignore
1234
+ */
1235
+ className: t.string,
1236
+ /**
1237
+ * If `true`, the chip will appear clickable, and will raise when pressed,
1238
+ * even if the onClick prop is not defined.
1239
+ * If `false`, the chip will not appear clickable, even if onClick prop is defined.
1240
+ * This can be used, for example,
1241
+ * along with the component prop to indicate an anchor Chip is clickable.
1242
+ * Note: this controls the UI and does not affect the onClick event.
1243
+ */
1244
+ clickable: t.bool,
1245
+ /**
1246
+ * The color of the component.
1247
+ * It supports both default and custom theme colors, which can be added as shown in the
1248
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1249
+ * @default 'default'
1250
+ */
1251
+ color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
1252
+ /**
1253
+ * The component used for the root node.
1254
+ * Either a string to use a HTML element or a component.
1255
+ */
1256
+ component: t.elementType,
1257
+ /**
1258
+ * Override the default delete icon element. Shown only if `onDelete` is set.
1259
+ */
1260
+ deleteIcon: t.element,
1261
+ /**
1262
+ * If `true`, the component is disabled.
1263
+ * @default false
1264
+ */
1265
+ disabled: t.bool,
1266
+ /**
1267
+ * Icon element.
1268
+ */
1269
+ icon: t.element,
1270
+ /**
1271
+ * The content of the component.
1272
+ */
1273
+ label: t.node,
1274
+ /**
1275
+ * @ignore
1276
+ */
1277
+ onClick: t.func,
1278
+ /**
1279
+ * Callback fired when the delete icon is clicked.
1280
+ * If set, the delete icon will be shown.
1281
+ */
1282
+ onDelete: t.func,
1283
+ /**
1284
+ * @ignore
1285
+ */
1286
+ onKeyDown: t.func,
1287
+ /**
1288
+ * @ignore
1289
+ */
1290
+ onKeyUp: t.func,
1291
+ /**
1292
+ * The size of the component.
1293
+ * @default 'medium'
1294
+ */
1295
+ size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
1296
+ /**
1297
+ * If `true`, allows the disabled chip to escape focus.
1298
+ * If `false`, allows the disabled chip to receive focus.
1299
+ * @default false
1300
+ */
1301
+ skipFocusWhenDisabled: t.bool,
1302
+ /**
1303
+ * The props used for each slot inside.
1304
+ * @default {}
1305
+ */
1306
+ slotProps: t.shape({
1307
+ label: t.oneOfType([t.func, t.object]),
1308
+ root: t.oneOfType([t.func, t.object])
1309
+ }),
1310
+ /**
1311
+ * The components used for each slot inside.
1312
+ * @default {}
1313
+ */
1314
+ slots: t.shape({
1315
+ label: t.elementType,
1316
+ root: t.elementType
1317
+ }),
1318
+ /**
1319
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1320
+ */
1321
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1322
+ /**
1323
+ * @ignore
1324
+ */
1325
+ tabIndex: t.number,
1326
+ /**
1327
+ * The variant to use.
1328
+ * @default 'filled'
1329
+ */
1330
+ variant: t.oneOfType([t.oneOf(["filled", "outlined"]), t.string])
1331
+ });
1332
+ function To(e) {
1333
+ return wt("MuiAutocomplete", e);
1334
+ }
1335
+ const f = Lt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
1336
+ var Kt, qt;
1337
+ const wo = (e) => {
1338
+ const {
1339
+ classes: r,
1340
+ disablePortal: a,
1341
+ expanded: c,
1342
+ focused: h,
1343
+ fullWidth: k,
1344
+ hasClearIcon: C,
1345
+ hasPopupIcon: I,
1346
+ inputFocused: S,
1347
+ popupOpen: $,
1348
+ size: T
1349
+ } = e, R = {
1350
+ root: ["root", c && "expanded", h && "focused", k && "fullWidth", C && "hasClearIcon", I && "hasPopupIcon"],
1351
+ inputRoot: ["inputRoot"],
1352
+ input: ["input", S && "inputFocused"],
1353
+ tag: ["tag", `tagSize${v(T)}`],
1354
+ endAdornment: ["endAdornment"],
1355
+ clearIndicator: ["clearIndicator"],
1356
+ popupIndicator: ["popupIndicator", $ && "popupIndicatorOpen"],
1357
+ popper: ["popper", a && "popperDisablePortal"],
1358
+ paper: ["paper"],
1359
+ listbox: ["listbox"],
1360
+ loading: ["loading"],
1361
+ noOptions: ["noOptions"],
1362
+ option: ["option"],
1363
+ groupLabel: ["groupLabel"],
1364
+ groupUl: ["groupUl"]
1365
+ };
1366
+ return Dt(R, To, r);
1367
+ }, Lo = _("div", {
1368
+ name: "MuiAutocomplete",
1369
+ slot: "Root",
1370
+ overridesResolver: (e, r) => {
1371
+ const {
1372
+ ownerState: a
1373
+ } = e, {
1374
+ fullWidth: c,
1375
+ hasClearIcon: h,
1376
+ hasPopupIcon: k,
1377
+ inputFocused: C,
1378
+ size: I
1379
+ } = a;
1380
+ return [{
1381
+ [`& .${f.tag}`]: r.tag
1382
+ }, {
1383
+ [`& .${f.tag}`]: r[`tagSize${v(I)}`]
1384
+ }, {
1385
+ [`& .${f.inputRoot}`]: r.inputRoot
1386
+ }, {
1387
+ [`& .${f.input}`]: r.input
1388
+ }, {
1389
+ [`& .${f.input}`]: C && r.inputFocused
1390
+ }, r.root, c && r.fullWidth, k && r.hasPopupIcon, h && r.hasClearIcon];
1391
+ }
1392
+ })({
1393
+ [`&.${f.focused} .${f.clearIndicator}`]: {
1394
+ visibility: "visible"
1395
+ },
1396
+ /* Avoid double tap issue on iOS */
1397
+ "@media (pointer: fine)": {
1398
+ [`&:hover .${f.clearIndicator}`]: {
1399
+ visibility: "visible"
1400
+ }
1401
+ },
1402
+ [`& .${f.tag}`]: {
1403
+ margin: 3,
1404
+ maxWidth: "calc(100% - 6px)"
1405
+ },
1406
+ [`& .${f.inputRoot}`]: {
1407
+ [`.${f.hasPopupIcon}&, .${f.hasClearIcon}&`]: {
1408
+ paddingRight: 30
1409
+ },
1410
+ [`.${f.hasPopupIcon}.${f.hasClearIcon}&`]: {
1411
+ paddingRight: 56
1412
+ },
1413
+ [`& .${f.input}`]: {
1414
+ width: 0,
1415
+ minWidth: 30
1416
+ }
1417
+ },
1418
+ [`& .${kt.root}`]: {
1419
+ paddingBottom: 1,
1420
+ "& .MuiInput-input": {
1421
+ padding: "4px 4px 4px 0px"
1422
+ }
1423
+ },
1424
+ [`& .${kt.root}.${we.sizeSmall}`]: {
1425
+ [`& .${kt.input}`]: {
1426
+ padding: "2px 4px 3px 0"
1427
+ }
1428
+ },
1429
+ [`& .${Ft.root}`]: {
1430
+ padding: 9,
1431
+ [`.${f.hasPopupIcon}&, .${f.hasClearIcon}&`]: {
1432
+ paddingRight: 39
1433
+ },
1434
+ [`.${f.hasPopupIcon}.${f.hasClearIcon}&`]: {
1435
+ paddingRight: 65
1436
+ },
1437
+ [`& .${f.input}`]: {
1438
+ padding: "7.5px 4px 7.5px 5px"
1439
+ },
1440
+ [`& .${f.endAdornment}`]: {
1441
+ right: 9
1442
+ }
1443
+ },
1444
+ [`& .${Ft.root}.${we.sizeSmall}`]: {
1445
+ // Don't specify paddingRight, as it overrides the default value set when there is only
1446
+ // one of the popup or clear icon as the specificity is equal so the latter one wins
1447
+ paddingTop: 6,
1448
+ paddingBottom: 6,
1449
+ paddingLeft: 6,
1450
+ [`& .${f.input}`]: {
1451
+ padding: "2.5px 4px 2.5px 8px"
1452
+ }
1453
+ },
1454
+ [`& .${We.root}`]: {
1455
+ paddingTop: 19,
1456
+ paddingLeft: 8,
1457
+ [`.${f.hasPopupIcon}&, .${f.hasClearIcon}&`]: {
1458
+ paddingRight: 39
1459
+ },
1460
+ [`.${f.hasPopupIcon}.${f.hasClearIcon}&`]: {
1461
+ paddingRight: 65
1462
+ },
1463
+ [`& .${We.input}`]: {
1464
+ padding: "7px 4px"
1465
+ },
1466
+ [`& .${f.endAdornment}`]: {
1467
+ right: 9
1468
+ }
1469
+ },
1470
+ [`& .${We.root}.${we.sizeSmall}`]: {
1471
+ paddingBottom: 1,
1472
+ [`& .${We.input}`]: {
1473
+ padding: "2.5px 4px"
1474
+ }
1475
+ },
1476
+ [`& .${we.hiddenLabel}`]: {
1477
+ paddingTop: 8
1478
+ },
1479
+ [`& .${We.root}.${we.hiddenLabel}`]: {
1480
+ paddingTop: 0,
1481
+ paddingBottom: 0,
1482
+ [`& .${f.input}`]: {
1483
+ paddingTop: 16,
1484
+ paddingBottom: 17
1485
+ }
1486
+ },
1487
+ [`& .${We.root}.${we.hiddenLabel}.${we.sizeSmall}`]: {
1488
+ [`& .${f.input}`]: {
1489
+ paddingTop: 8,
1490
+ paddingBottom: 9
1491
+ }
1492
+ },
1493
+ [`& .${f.input}`]: {
1494
+ flexGrow: 1,
1495
+ textOverflow: "ellipsis",
1496
+ opacity: 0
1497
+ },
1498
+ variants: [{
1499
+ props: {
1500
+ fullWidth: !0
1501
+ },
1502
+ style: {
1503
+ width: "100%"
1504
+ }
1505
+ }, {
1506
+ props: {
1507
+ size: "small"
1508
+ },
1509
+ style: {
1510
+ [`& .${f.tag}`]: {
1511
+ margin: 2,
1512
+ maxWidth: "calc(100% - 4px)"
1513
+ }
1514
+ }
1515
+ }, {
1516
+ props: {
1517
+ inputFocused: !0
1518
+ },
1519
+ style: {
1520
+ [`& .${f.input}`]: {
1521
+ opacity: 1
1522
+ }
1523
+ }
1524
+ }, {
1525
+ props: {
1526
+ multiple: !0
1527
+ },
1528
+ style: {
1529
+ [`& .${f.inputRoot}`]: {
1530
+ flexWrap: "wrap"
1531
+ }
1532
+ }
1533
+ }]
1534
+ }), Ao = _("div", {
1535
+ name: "MuiAutocomplete",
1536
+ slot: "EndAdornment"
1537
+ })({
1538
+ // We use a position absolute to support wrapping tags.
1539
+ position: "absolute",
1540
+ right: 0,
1541
+ top: "50%",
1542
+ transform: "translate(0, -50%)"
1543
+ }), Do = _(_t, {
1544
+ name: "MuiAutocomplete",
1545
+ slot: "ClearIndicator"
1546
+ })({
1547
+ marginRight: -2,
1548
+ padding: 4,
1549
+ visibility: "hidden"
1550
+ }), Ro = _(_t, {
1551
+ name: "MuiAutocomplete",
1552
+ slot: "PopupIndicator",
1553
+ overridesResolver: (e, r) => {
1554
+ const {
1555
+ ownerState: a
1556
+ } = e;
1557
+ return [r.popupIndicator, a.popupOpen && r.popupIndicatorOpen];
1558
+ }
1559
+ })({
1560
+ padding: 2,
1561
+ marginRight: -2,
1562
+ variants: [{
1563
+ props: {
1564
+ popupOpen: !0
1565
+ },
1566
+ style: {
1567
+ transform: "rotate(180deg)"
1568
+ }
1569
+ }]
1570
+ }), Eo = _(Yt, {
1571
+ name: "MuiAutocomplete",
1572
+ slot: "Popper",
1573
+ overridesResolver: (e, r) => {
1574
+ const {
1575
+ ownerState: a
1576
+ } = e;
1577
+ return [{
1578
+ [`& .${f.option}`]: r.option
1579
+ }, r.popper, a.disablePortal && r.popperDisablePortal];
1580
+ }
1581
+ })(ve(({
1582
+ theme: e
1583
+ }) => ({
1584
+ zIndex: (e.vars || e).zIndex.modal,
1585
+ variants: [{
1586
+ props: {
1587
+ disablePortal: !0
1588
+ },
1589
+ style: {
1590
+ position: "absolute"
1591
+ }
1592
+ }]
1593
+ }))), No = _(Jt, {
1594
+ name: "MuiAutocomplete",
1595
+ slot: "Paper"
1596
+ })(ve(({
1597
+ theme: e
1598
+ }) => ({
1599
+ ...e.typography.body1,
1600
+ overflow: "auto"
1601
+ }))), Mo = _("div", {
1602
+ name: "MuiAutocomplete",
1603
+ slot: "Loading"
1604
+ })(ve(({
1605
+ theme: e
1606
+ }) => ({
1607
+ color: (e.vars || e).palette.text.secondary,
1608
+ padding: "14px 16px"
1609
+ }))), Vo = _("div", {
1610
+ name: "MuiAutocomplete",
1611
+ slot: "NoOptions"
1612
+ })(ve(({
1613
+ theme: e
1614
+ }) => ({
1615
+ color: (e.vars || e).palette.text.secondary,
1616
+ padding: "14px 16px"
1617
+ }))), zo = _("ul", {
1618
+ name: "MuiAutocomplete",
1619
+ slot: "Listbox"
1620
+ })(ve(({
1621
+ theme: e
1622
+ }) => ({
1623
+ listStyle: "none",
1624
+ margin: 0,
1625
+ padding: "8px 0",
1626
+ maxHeight: "40vh",
1627
+ overflow: "auto",
1628
+ position: "relative",
1629
+ [`& .${f.option}`]: {
1630
+ minHeight: 48,
1631
+ display: "flex",
1632
+ overflow: "hidden",
1633
+ justifyContent: "flex-start",
1634
+ alignItems: "center",
1635
+ cursor: "pointer",
1636
+ paddingTop: 6,
1637
+ boxSizing: "border-box",
1638
+ outline: "0",
1639
+ WebkitTapHighlightColor: "transparent",
1640
+ paddingBottom: 6,
1641
+ paddingLeft: 16,
1642
+ paddingRight: 16,
1643
+ [e.breakpoints.up("sm")]: {
1644
+ minHeight: "auto"
1645
+ },
1646
+ [`&.${f.focused}`]: {
1647
+ backgroundColor: (e.vars || e).palette.action.hover,
1648
+ // Reset on touch devices, it doesn't add specificity
1649
+ "@media (hover: none)": {
1650
+ backgroundColor: "transparent"
1651
+ }
1652
+ },
1653
+ '&[aria-disabled="true"]': {
1654
+ opacity: (e.vars || e).palette.action.disabledOpacity,
1655
+ pointerEvents: "none"
1656
+ },
1657
+ [`&.${f.focusVisible}`]: {
1658
+ backgroundColor: (e.vars || e).palette.action.focus
1659
+ },
1660
+ '&[aria-selected="true"]': {
1661
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : J(e.palette.primary.main, e.palette.action.selectedOpacity),
1662
+ [`&.${f.focused}`]: {
1663
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : J(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1664
+ // Reset on touch devices, it doesn't add specificity
1665
+ "@media (hover: none)": {
1666
+ backgroundColor: (e.vars || e).palette.action.selected
1667
+ }
1668
+ },
1669
+ [`&.${f.focusVisible}`]: {
1670
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : J(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1671
+ }
1672
+ }
1673
+ }
1674
+ }))), Fo = _(ht, {
1675
+ name: "MuiAutocomplete",
1676
+ slot: "GroupLabel"
1677
+ })(ve(({
1678
+ theme: e
1679
+ }) => ({
1680
+ backgroundColor: (e.vars || e).palette.background.paper,
1681
+ top: -8
1682
+ }))), Ho = _("ul", {
1683
+ name: "MuiAutocomplete",
1684
+ slot: "GroupUl"
1685
+ })({
1686
+ padding: 0,
1687
+ [`& .${f.option}`]: {
1688
+ paddingLeft: 24
1689
+ }
1690
+ }), Xt = /* @__PURE__ */ x.forwardRef(function(r, a) {
1691
+ const c = At({
1692
+ props: r,
1693
+ name: "MuiAutocomplete"
1694
+ }), {
1695
+ autoComplete: h = !1,
1696
+ autoHighlight: k = !1,
1697
+ autoSelect: C = !1,
1698
+ blurOnSelect: I = !1,
1699
+ ChipProps: S,
1700
+ className: $,
1701
+ clearIcon: T = Kt || (Kt = /* @__PURE__ */ s(ro, {
1702
+ fontSize: "small"
1703
+ })),
1704
+ clearOnBlur: R = !c.freeSolo,
1705
+ clearOnEscape: Q = !1,
1706
+ clearText: A = "Clear",
1707
+ closeText: V = "Close",
1708
+ componentsProps: ie,
1709
+ defaultValue: re = c.multiple ? [] : null,
1710
+ disableClearable: de = !1,
1711
+ disableCloseOnSelect: ae = !1,
1712
+ disabled: p = !1,
1713
+ disabledItemsFocusable: W = !1,
1714
+ disableListWrap: je = !1,
1715
+ disablePortal: se = !1,
1716
+ filterOptions: Be,
1717
+ filterSelectedOptions: ot = !1,
1718
+ forcePopupIcon: xe = "auto",
1719
+ freeSolo: Ce = !1,
1720
+ fullWidth: X = !1,
1721
+ getLimitTagsText: m = (y) => `+${y}`,
1722
+ getOptionDisabled: Ie,
1723
+ getOptionKey: $e,
1724
+ getOptionLabel: fe,
1725
+ isOptionEqualToValue: F,
1726
+ groupBy: Le,
1727
+ handleHomeEndKeys: Ue = !c.freeSolo,
1728
+ id: Ae,
1729
+ includeInputInList: De = !1,
1730
+ inputValue: Z,
1731
+ limitTags: H = -1,
1732
+ ListboxComponent: Ge,
1733
+ ListboxProps: Re,
1734
+ loading: j = !1,
1735
+ loadingText: d = "Loading…",
1736
+ multiple: U = !1,
1737
+ noOptionsText: G = "No options",
1738
+ onChange: L,
1739
+ onClose: ee,
1740
+ onHighlightChange: Ke,
1741
+ onInputChange: Rt,
1742
+ onOpen: Y,
1743
+ open: nt,
1744
+ openOnFocus: yt = !1,
1745
+ openText: z = "Open",
1746
+ options: Et,
1747
+ PaperComponent: u,
1748
+ PopperComponent: qe,
1749
+ popupIcon: P = qt || (qt = /* @__PURE__ */ s(no, {})),
1750
+ readOnly: Oe = !1,
1751
+ renderGroup: Ee,
1752
+ renderInput: rt,
1753
+ renderOption: Ne,
1754
+ renderTags: ce,
1755
+ renderValue: Pe,
1756
+ selectOnFocus: Nt = !c.freeSolo,
1757
+ size: Me = "medium",
1758
+ slots: at = {},
1759
+ slotProps: K = {},
1760
+ value: w,
1761
+ ...te
1762
+ } = c, {
1763
+ getRootProps: lt,
1764
+ getInputProps: oe,
1765
+ getInputLabelProps: vt,
1766
+ getPopupIndicatorProps: pe,
1767
+ getClearProps: ne,
1768
+ getItemProps: xt,
1769
+ getListboxProps: _e,
1770
+ getOptionProps: Ct,
1771
+ value: q,
1772
+ dirty: Se,
1773
+ expanded: ue,
1774
+ id: Ve,
1775
+ popupOpen: le,
1776
+ focused: it,
1777
+ focusedItem: st,
1778
+ anchorEl: ke,
1779
+ setAnchorEl: It,
1780
+ inputValue: $t,
1781
+ groupedOptions: Te
1782
+ } = vo({
1783
+ ...c,
1784
+ componentName: "Autocomplete"
1785
+ }), Ye = !de && !p && Se && !Oe, Je = (!Ce || xe === !0) && xe !== !1, {
1786
+ onMouseDown: Ot
1787
+ } = oe(), {
1788
+ ref: Pt,
1789
+ ...ct
1790
+ } = _e(), ze = fe || ((y) => y.label ?? y), N = {
1791
+ ...c,
1792
+ disablePortal: se,
1793
+ expanded: ue,
1794
+ focused: it,
1795
+ fullWidth: X,
1796
+ getOptionLabel: ze,
1797
+ hasClearIcon: Ye,
1798
+ hasPopupIcon: Je,
1799
+ inputFocused: st === -1,
1800
+ popupOpen: le,
1801
+ size: Me
1802
+ }, M = wo(N), ge = {
1803
+ slots: {
1804
+ paper: u,
1805
+ popper: qe,
1806
+ ...at
1807
+ },
1808
+ slotProps: {
1809
+ chip: S,
1810
+ listbox: Re,
1811
+ ...ie,
1812
+ ...K
1813
+ }
1814
+ }, [Qe, pt] = tt("listbox", {
1815
+ elementType: zo,
1816
+ externalForwardedProps: ge,
1817
+ ownerState: N,
1818
+ className: M.listbox,
1819
+ additionalProps: ct,
1820
+ ref: Pt
1821
+ }), [n, o] = tt("paper", {
1822
+ elementType: Jt,
1823
+ externalForwardedProps: ge,
1824
+ ownerState: N,
1825
+ className: M.paper
1826
+ }), [l, g] = tt("popper", {
1827
+ elementType: Yt,
1828
+ externalForwardedProps: ge,
1829
+ ownerState: N,
1830
+ className: M.popper,
1831
+ additionalProps: {
1832
+ disablePortal: se,
1833
+ style: {
1834
+ width: ke ? ke.clientWidth : null
1835
+ },
1836
+ role: "presentation",
1837
+ anchorEl: ke,
1838
+ open: le
1839
+ }
1840
+ });
1841
+ let i;
1842
+ const O = (y) => ({
1843
+ className: M.tag,
1844
+ disabled: p,
1845
+ ...xt(y)
1846
+ });
1847
+ if (U ? q.length > 0 && (ce ? i = ce(q, O, N) : Pe ? i = Pe(q, O, N) : i = q.map((y, be) => {
1848
+ const {
1849
+ key: me,
1850
+ ...Ze
1851
+ } = O({
1852
+ index: be
1853
+ });
1854
+ return /* @__PURE__ */ s(Qt, {
1855
+ label: ze(y),
1856
+ size: Me,
1857
+ ...Ze,
1858
+ ...ge.slotProps.chip
1859
+ }, me);
1860
+ })) : Pe && q != null && (i = Pe(q, O, N)), H > -1 && Array.isArray(i)) {
1861
+ const y = i.length - H;
1862
+ !it && y > 0 && (i = i.splice(0, H), i.push(/* @__PURE__ */ s("span", {
1863
+ className: M.tag,
1864
+ children: m(y)
1865
+ }, i.length)));
1866
+ }
1867
+ const B = Ee || ((y) => /* @__PURE__ */ E("li", {
1868
+ children: [/* @__PURE__ */ s(Fo, {
1869
+ className: M.groupLabel,
1870
+ ownerState: N,
1871
+ component: "div",
1872
+ children: y.group
1873
+ }), /* @__PURE__ */ s(Ho, {
1874
+ className: M.groupUl,
1875
+ ownerState: N,
1876
+ children: y.children
1877
+ })]
1878
+ }, y.key)), Zt = Ne || ((y, be) => {
1879
+ const {
1880
+ key: me,
1881
+ ...Ze
1882
+ } = y;
1883
+ return /* @__PURE__ */ s("li", {
1884
+ ...Ze,
1885
+ children: ze(be)
1886
+ }, me);
1887
+ }), Vt = (y, be) => {
1888
+ const me = Ct({
1889
+ option: y,
1890
+ index: be
1891
+ });
1892
+ return Zt({
1893
+ ...me,
1894
+ className: M.option
1895
+ }, y, {
1896
+ selected: me["aria-selected"],
1897
+ index: be,
1898
+ inputValue: $t
1899
+ }, N);
1900
+ }, ut = ge.slotProps.clearIndicator, dt = ge.slotProps.popupIndicator;
1901
+ return /* @__PURE__ */ E(x.Fragment, {
1902
+ children: [/* @__PURE__ */ s(Lo, {
1903
+ ref: a,
1904
+ className: ye(M.root, $),
1905
+ ownerState: N,
1906
+ ...lt(te),
1907
+ children: rt({
1908
+ id: Ve,
1909
+ disabled: p,
1910
+ fullWidth: !0,
1911
+ size: Me === "small" ? "small" : void 0,
1912
+ InputLabelProps: vt(),
1913
+ InputProps: {
1914
+ ref: It,
1915
+ className: M.inputRoot,
1916
+ startAdornment: i,
1917
+ onMouseDown: (y) => {
1918
+ y.target === y.currentTarget && Ot(y);
1919
+ },
1920
+ ...(Ye || Je) && {
1921
+ endAdornment: /* @__PURE__ */ E(Ao, {
1922
+ className: M.endAdornment,
1923
+ ownerState: N,
1924
+ children: [Ye ? /* @__PURE__ */ s(Do, {
1925
+ ...ne(),
1926
+ "aria-label": A,
1927
+ title: A,
1928
+ ownerState: N,
1929
+ ...ut,
1930
+ className: ye(M.clearIndicator, ut == null ? void 0 : ut.className),
1931
+ children: T
1932
+ }) : null, Je ? /* @__PURE__ */ s(Ro, {
1933
+ ...pe(),
1934
+ disabled: p,
1935
+ "aria-label": le ? V : z,
1936
+ title: le ? V : z,
1937
+ ownerState: N,
1938
+ ...dt,
1939
+ className: ye(M.popupIndicator, dt == null ? void 0 : dt.className),
1940
+ children: P
1941
+ }) : null]
1942
+ })
1943
+ }
1944
+ },
1945
+ inputProps: {
1946
+ className: M.input,
1947
+ disabled: p,
1948
+ readOnly: Oe,
1949
+ ...oe()
1950
+ }
1951
+ })
1952
+ }), ke ? /* @__PURE__ */ s(Eo, {
1953
+ as: l,
1954
+ ...g,
1955
+ children: /* @__PURE__ */ E(No, {
1956
+ as: n,
1957
+ ...o,
1958
+ children: [j && Te.length === 0 ? /* @__PURE__ */ s(Mo, {
1959
+ className: M.loading,
1960
+ ownerState: N,
1961
+ children: d
1962
+ }) : null, Te.length === 0 && !Ce && !j ? /* @__PURE__ */ s(Vo, {
1963
+ className: M.noOptions,
1964
+ ownerState: N,
1965
+ role: "presentation",
1966
+ onMouseDown: (y) => {
1967
+ y.preventDefault();
1968
+ },
1969
+ children: G
1970
+ }) : null, Te.length > 0 ? /* @__PURE__ */ s(Qe, {
1971
+ as: Ge,
1972
+ ...pt,
1973
+ children: Te.map((y, be) => Le ? B({
1974
+ key: y.key,
1975
+ group: y.group,
1976
+ children: y.options.map((me, Ze) => Vt(me, y.index + Ze))
1977
+ }) : Vt(y, be))
1978
+ }) : null]
1979
+ })
1980
+ }) : null]
1981
+ });
1982
+ });
1983
+ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
1984
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1985
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1986
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1987
+ // └─────────────────────────────────────────────────────────────────────┘
1988
+ /**
1989
+ * If `true`, the portion of the selected suggestion that the user hasn't typed,
1990
+ * known as the completion string, appears inline after the input cursor in the textbox.
1991
+ * The inline completion string is visually highlighted and has a selected state.
1992
+ * @default false
1993
+ */
1994
+ autoComplete: t.bool,
1995
+ /**
1996
+ * If `true`, the first option is automatically highlighted.
1997
+ * @default false
1998
+ */
1999
+ autoHighlight: t.bool,
2000
+ /**
2001
+ * If `true`, the selected option becomes the value of the input
2002
+ * when the Autocomplete loses focus unless the user chooses
2003
+ * a different option or changes the character string in the input.
2004
+ *
2005
+ * When using the `freeSolo` mode, the typed value will be the input value
2006
+ * if the Autocomplete loses focus without highlighting an option.
2007
+ * @default false
2008
+ */
2009
+ autoSelect: t.bool,
2010
+ /**
2011
+ * Control if the input should be blurred when an option is selected:
2012
+ *
2013
+ * - `false` the input is not blurred.
2014
+ * - `true` the input is always blurred.
2015
+ * - `touch` the input is blurred after a touch event.
2016
+ * - `mouse` the input is blurred after a mouse event.
2017
+ * @default false
2018
+ */
2019
+ blurOnSelect: t.oneOfType([t.oneOf(["mouse", "touch"]), t.bool]),
2020
+ /**
2021
+ * Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
2022
+ * @deprecated Use `slotProps.chip` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2023
+ */
2024
+ ChipProps: t.object,
2025
+ /**
2026
+ * Override or extend the styles applied to the component.
2027
+ */
2028
+ classes: t.object,
2029
+ /**
2030
+ * @ignore
2031
+ */
2032
+ className: t.string,
2033
+ /**
2034
+ * The icon to display in place of the default clear icon.
2035
+ * @default <ClearIcon fontSize="small" />
2036
+ */
2037
+ clearIcon: t.node,
2038
+ /**
2039
+ * If `true`, the input's text is cleared on blur if no value is selected.
2040
+ *
2041
+ * Set it to `true` if you want to help the user enter a new value.
2042
+ * Set it to `false` if you want to help the user resume their search.
2043
+ * @default !props.freeSolo
2044
+ */
2045
+ clearOnBlur: t.bool,
2046
+ /**
2047
+ * If `true`, clear all values when the user presses escape and the popup is closed.
2048
+ * @default false
2049
+ */
2050
+ clearOnEscape: t.bool,
2051
+ /**
2052
+ * Override the default text for the *clear* icon button.
2053
+ *
2054
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
2055
+ * @default 'Clear'
2056
+ */
2057
+ clearText: t.string,
2058
+ /**
2059
+ * Override the default text for the *close popup* icon button.
2060
+ *
2061
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
2062
+ * @default 'Close'
2063
+ */
2064
+ closeText: t.string,
2065
+ /**
2066
+ * The props used for each slot inside.
2067
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2068
+ */
2069
+ componentsProps: t.shape({
2070
+ clearIndicator: t.object,
2071
+ paper: t.object,
2072
+ popper: t.object,
2073
+ popupIndicator: t.object
2074
+ }),
2075
+ /**
2076
+ * The default value. Use when the component is not controlled.
2077
+ * @default props.multiple ? [] : null
2078
+ */
2079
+ defaultValue: Wt(t.any, (e) => e.multiple && e.defaultValue !== void 0 && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join(`
2080
+ `)) : null),
2081
+ /**
2082
+ * If `true`, the input can't be cleared.
2083
+ * @default false
2084
+ */
2085
+ disableClearable: t.bool,
2086
+ /**
2087
+ * If `true`, the popup won't close when a value is selected.
2088
+ * @default false
2089
+ */
2090
+ disableCloseOnSelect: t.bool,
2091
+ /**
2092
+ * If `true`, the component is disabled.
2093
+ * @default false
2094
+ */
2095
+ disabled: t.bool,
2096
+ /**
2097
+ * If `true`, will allow focus on disabled items.
2098
+ * @default false
2099
+ */
2100
+ disabledItemsFocusable: t.bool,
2101
+ /**
2102
+ * If `true`, the list box in the popup will not wrap focus.
2103
+ * @default false
2104
+ */
2105
+ disableListWrap: t.bool,
2106
+ /**
2107
+ * If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.
2108
+ * @default false
2109
+ */
2110
+ disablePortal: t.bool,
2111
+ /**
2112
+ * A function that determines the filtered options to be rendered on search.
2113
+ *
2114
+ * @default createFilterOptions()
2115
+ * @param {Value[]} options The options to render.
2116
+ * @param {object} state The state of the component.
2117
+ * @returns {Value[]}
2118
+ */
2119
+ filterOptions: t.func,
2120
+ /**
2121
+ * If `true`, hide the selected options from the list box.
2122
+ * @default false
2123
+ */
2124
+ filterSelectedOptions: t.bool,
2125
+ /**
2126
+ * Force the visibility display of the popup icon.
2127
+ * @default 'auto'
2128
+ */
2129
+ forcePopupIcon: t.oneOfType([t.oneOf(["auto"]), t.bool]),
2130
+ /**
2131
+ * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
2132
+ * @default false
2133
+ */
2134
+ freeSolo: t.bool,
2135
+ /**
2136
+ * If `true`, the input will take up the full width of its container.
2137
+ * @default false
2138
+ */
2139
+ fullWidth: t.bool,
2140
+ /**
2141
+ * The label to display when the tags are truncated (`limitTags`).
2142
+ *
2143
+ * @param {number} more The number of truncated tags.
2144
+ * @returns {ReactNode}
2145
+ * @default (more) => `+${more}`
2146
+ */
2147
+ getLimitTagsText: t.func,
2148
+ /**
2149
+ * Used to determine the disabled state for a given option.
2150
+ *
2151
+ * @param {Value} option The option to test.
2152
+ * @returns {boolean}
2153
+ */
2154
+ getOptionDisabled: t.func,
2155
+ /**
2156
+ * Used to determine the key for a given option.
2157
+ * This can be useful when the labels of options are not unique (since labels are used as keys by default).
2158
+ *
2159
+ * @param {Value} option The option to get the key for.
2160
+ * @returns {string | number}
2161
+ */
2162
+ getOptionKey: t.func,
2163
+ /**
2164
+ * Used to determine the string value for a given option.
2165
+ * It's used to fill the input (and the list box options if `renderOption` is not provided).
2166
+ *
2167
+ * If used in free solo mode, it must accept both the type of the options and a string.
2168
+ *
2169
+ * @param {Value} option
2170
+ * @returns {string}
2171
+ * @default (option) => option.label ?? option
2172
+ */
2173
+ getOptionLabel: t.func,
2174
+ /**
2175
+ * If provided, the options will be grouped under the returned string.
2176
+ * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
2177
+ *
2178
+ * @param {Value} option The Autocomplete option.
2179
+ * @returns {string}
2180
+ */
2181
+ groupBy: t.func,
2182
+ /**
2183
+ * If `true`, the component handles the "Home" and "End" keys when the popup is open.
2184
+ * It should move focus to the first option and last option, respectively.
2185
+ * @default !props.freeSolo
2186
+ */
2187
+ handleHomeEndKeys: t.bool,
2188
+ /**
2189
+ * This prop is used to help implement the accessibility logic.
2190
+ * If you don't provide an id it will fall back to a randomly generated one.
2191
+ */
2192
+ id: t.string,
2193
+ /**
2194
+ * If `true`, the highlight can move to the input.
2195
+ * @default false
2196
+ */
2197
+ includeInputInList: t.bool,
2198
+ /**
2199
+ * The input value.
2200
+ */
2201
+ inputValue: t.string,
2202
+ /**
2203
+ * Used to determine if the option represents the given value.
2204
+ * Uses strict equality by default.
2205
+ * ⚠️ Both arguments need to be handled, an option can only match with one value.
2206
+ *
2207
+ * @param {Value} option The option to test.
2208
+ * @param {Value} value The value to test against.
2209
+ * @returns {boolean}
2210
+ */
2211
+ isOptionEqualToValue: t.func,
2212
+ /**
2213
+ * The maximum number of tags that will be visible when not focused.
2214
+ * Set `-1` to disable the limit.
2215
+ * @default -1
2216
+ */
2217
+ limitTags: ao,
2218
+ /**
2219
+ * The component used to render the listbox.
2220
+ * @default 'ul'
2221
+ * @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2222
+ */
2223
+ ListboxComponent: t.elementType,
2224
+ /**
2225
+ * Props applied to the Listbox element.
2226
+ * @deprecated Use `slotProps.listbox` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2227
+ */
2228
+ ListboxProps: t.object,
2229
+ /**
2230
+ * If `true`, the component is in a loading state.
2231
+ * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, for example `options` are empty).
2232
+ * @default false
2233
+ */
2234
+ loading: t.bool,
2235
+ /**
2236
+ * Text to display when in a loading state.
2237
+ *
2238
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
2239
+ * @default 'Loading…'
2240
+ */
2241
+ loadingText: t.node,
2242
+ /**
2243
+ * If `true`, `value` must be an array and the menu will support multiple selections.
2244
+ * @default false
2245
+ */
2246
+ multiple: t.bool,
2247
+ /**
2248
+ * Text to display when there are no options.
2249
+ *
2250
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
2251
+ * @default 'No options'
2252
+ */
2253
+ noOptionsText: t.node,
2254
+ /**
2255
+ * Callback fired when the value changes.
2256
+ *
2257
+ * @param {React.SyntheticEvent} event The event source of the callback.
2258
+ * @param {Value|Value[]} value The new value of the component.
2259
+ * @param {string} reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
2260
+ * @param {string} [details]
2261
+ */
2262
+ onChange: t.func,
2263
+ /**
2264
+ * Callback fired when the popup requests to be closed.
2265
+ * Use in controlled mode (see open).
2266
+ *
2267
+ * @param {React.SyntheticEvent} event The event source of the callback.
2268
+ * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"selectOption"`, `"removeOption"`, `"blur"`.
2269
+ */
2270
+ onClose: t.func,
2271
+ /**
2272
+ * Callback fired when the highlight option changes.
2273
+ *
2274
+ * @param {React.SyntheticEvent} event The event source of the callback.
2275
+ * @param {Value} option The highlighted option.
2276
+ * @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
2277
+ */
2278
+ onHighlightChange: t.func,
2279
+ /**
2280
+ * Callback fired when the input value changes.
2281
+ *
2282
+ * @param {React.SyntheticEvent} event The event source of the callback.
2283
+ * @param {string} value The new value of the text input.
2284
+ * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`, `"blur"`, `"selectOption"`, `"removeOption"`
2285
+ */
2286
+ onInputChange: t.func,
2287
+ /**
2288
+ * @ignore
2289
+ */
2290
+ onKeyDown: t.func,
2291
+ /**
2292
+ * Callback fired when the popup requests to be opened.
2293
+ * Use in controlled mode (see open).
2294
+ *
2295
+ * @param {React.SyntheticEvent} event The event source of the callback.
2296
+ */
2297
+ onOpen: t.func,
2298
+ /**
2299
+ * If `true`, the component is shown.
2300
+ */
2301
+ open: t.bool,
2302
+ /**
2303
+ * If `true`, the popup will open on input focus.
2304
+ * @default false
2305
+ */
2306
+ openOnFocus: t.bool,
2307
+ /**
2308
+ * Override the default text for the *open popup* icon button.
2309
+ *
2310
+ * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
2311
+ * @default 'Open'
2312
+ */
2313
+ openText: t.string,
2314
+ /**
2315
+ * A list of options that will be shown in the Autocomplete.
2316
+ */
2317
+ options: t.array.isRequired,
2318
+ /**
2319
+ * The component used to render the body of the popup.
2320
+ * @default Paper
2321
+ * @deprecated Use `slots.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2322
+ */
2323
+ PaperComponent: t.elementType,
2324
+ /**
2325
+ * The component used to position the popup.
2326
+ * @default Popper
2327
+ * @deprecated Use `slots.popper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2328
+ */
2329
+ PopperComponent: t.elementType,
2330
+ /**
2331
+ * The icon to display in place of the default popup icon.
2332
+ * @default <ArrowDropDownIcon />
2333
+ */
2334
+ popupIcon: t.node,
2335
+ /**
2336
+ * If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
2337
+ * @default false
2338
+ */
2339
+ readOnly: t.bool,
2340
+ /**
2341
+ * Render the group.
2342
+ *
2343
+ * @param {AutocompleteRenderGroupParams} params The group to render.
2344
+ * @returns {ReactNode}
2345
+ */
2346
+ renderGroup: t.func,
2347
+ /**
2348
+ * Render the input.
2349
+ *
2350
+ * **Note:** The `renderInput` prop must return a `TextField` component or a compatible custom component
2351
+ * that correctly forwards `InputProps.ref` and spreads `inputProps`. This ensures proper integration
2352
+ * with the Autocomplete's internal logic (e.g., focus management and keyboard navigation).
2353
+ *
2354
+ * Avoid using components like `DatePicker` or `Select` directly, as they may not forward the required props,
2355
+ * leading to runtime errors or unexpected behavior.
2356
+ *
2357
+ * @param {object} params
2358
+ * @returns {ReactNode}
2359
+ */
2360
+ renderInput: t.func.isRequired,
2361
+ /**
2362
+ * Render the option, use `getOptionLabel` by default.
2363
+ *
2364
+ * @param {object} props The props to apply on the li element.
2365
+ * @param {Value} option The option to render.
2366
+ * @param {object} state The state of each option.
2367
+ * @param {object} ownerState The state of the Autocomplete component.
2368
+ * @returns {ReactNode}
2369
+ */
2370
+ renderOption: t.func,
2371
+ /**
2372
+ * Render the selected value when doing multiple selections.
2373
+ *
2374
+ * @deprecated Use `renderValue` prop instead
2375
+ *
2376
+ * @param {Value[]} value The `value` provided to the component.
2377
+ * @param {function} getTagProps A tag props getter.
2378
+ * @param {object} ownerState The state of the Autocomplete component.
2379
+ * @returns {ReactNode}
2380
+ */
2381
+ renderTags: t.func,
2382
+ /**
2383
+ * Renders the selected value(s) as rich content in the input for both single and multiple selections.
2384
+ *
2385
+ * @param {AutocompleteRenderValue<Value, Multiple, FreeSolo>} value The `value` provided to the component.
2386
+ * @param {function} getItemProps The value item props.
2387
+ * @param {object} ownerState The state of the Autocomplete component.
2388
+ * @returns {ReactNode}
2389
+ */
2390
+ renderValue: t.func,
2391
+ /**
2392
+ * If `true`, the input's text is selected on focus.
2393
+ * It helps the user clear the selected value.
2394
+ * @default !props.freeSolo
2395
+ */
2396
+ selectOnFocus: t.bool,
2397
+ /**
2398
+ * The size of the component.
2399
+ * @default 'medium'
2400
+ */
2401
+ size: t.oneOfType([t.oneOf(["small", "medium"]), t.string]),
2402
+ /**
2403
+ * The props used for each slot inside.
2404
+ * @default {}
2405
+ */
2406
+ slotProps: t.shape({
2407
+ chip: t.oneOfType([t.func, t.object]),
2408
+ clearIndicator: t.oneOfType([t.func, t.object]),
2409
+ listbox: t.oneOfType([t.func, t.object]),
2410
+ paper: t.oneOfType([t.func, t.object]),
2411
+ popper: t.oneOfType([t.func, t.object]),
2412
+ popupIndicator: t.oneOfType([t.func, t.object])
2413
+ }),
2414
+ /**
2415
+ * The components used for each slot inside.
2416
+ * @default {}
2417
+ */
2418
+ slots: t.shape({
2419
+ listbox: t.elementType,
2420
+ paper: t.elementType,
2421
+ popper: t.elementType
2422
+ }),
2423
+ /**
2424
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2425
+ */
2426
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
2427
+ /**
2428
+ * The value of the autocomplete.
2429
+ *
2430
+ * The value must have reference equality with the option in order to be selected.
2431
+ * You can customize the equality behavior with the `isOptionEqualToValue` prop.
2432
+ */
2433
+ value: Wt(t.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
2434
+ `)) : null)
2435
+ });
2436
+ const Wo = [
2437
+ "Hold a high public office",
2438
+ "Have an immediate family member who does",
2439
+ "A close business associate who does"
2440
+ ], jo = [
2441
+ "Savings from salary (basic and/or bonus)",
2442
+ "Savings from salary (basic and/or bonus), self-employed",
2443
+ "Savings from salary (basic and/or bonus), self-employed company less than one year old",
2444
+ "Sales of shares or other investments / liquidation of investment portfolio",
2445
+ "Loan",
2446
+ "Sale of property - Land",
2447
+ "Sale of property - House, Condominium, Apartment",
2448
+ "Sale of property - Boat",
2449
+ "Sale of property - Autombile, Truck",
2450
+ "Inheritance - sole inheritor",
2451
+ "Inheritance - partical inheritor",
2452
+ "Maturity/surrender of life policy",
2453
+ "Maturity/surrender of retirement policy",
2454
+ "Company sale - Sole Proprietor, Sole Owner",
2455
+ "Company sale - Partnership",
2456
+ "Company sale - Corporation, LLC",
2457
+ "Company Profitsharing or Disbursement",
2458
+ "Company Dividends",
2459
+ "Gift"
2460
+ ], Bo = [
2461
+ "Once a year",
2462
+ "Once every 3 months ",
2463
+ "Once a month ",
2464
+ "Once a week ",
2465
+ "Other"
2466
+ ], Uo = [
2467
+ "Investment",
2468
+ "Cross Border ",
2469
+ "Identity Services ",
2470
+ "Buy, sell or trade Crypto ",
2471
+ "Wallet Services",
2472
+ "Custody Services",
2473
+ "Other Services"
2474
+ ], $n = ({
2475
+ userInfo: e,
2476
+ setUserInfo: r,
2477
+ processKyc: a,
2478
+ buttonComponent: c,
2479
+ processLoader: h
2480
+ }) => {
2481
+ const k = c ?? oo, [C, I] = Fe(!1), [S, $] = Fe(""), [T, R] = Fe(""), [Q, A] = Fe(""), [V, ie] = Fe(""), [re, de] = Fe(null), ae = () => {
2482
+ re && (r({
2483
+ ...e,
2484
+ isPoliticalExpose: C,
2485
+ politicalExpose: S,
2486
+ frequency: T,
2487
+ reason: Q,
2488
+ source: V,
2489
+ origin: re.alpha3
2490
+ }), a());
2491
+ };
2492
+ return /* @__PURE__ */ E(zt, { children: [
2493
+ /* @__PURE__ */ s(et, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s(eo, { totalSteps: 4, currentStep: 4 }) }),
2494
+ /* @__PURE__ */ E(et, { pl: 2, mt: 4, children: [
2495
+ /* @__PURE__ */ s(He, { variant: "h5", sx: { fontWeight: "bold" }, children: "Additional Questions" }),
2496
+ /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2497
+ "Are you a politically exposed person?",
2498
+ /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2499
+ ] }) }),
2500
+ /* @__PURE__ */ E(St, { mt: 0, container: !0, spacing: 2, children: [
2501
+ /* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
2502
+ et,
2503
+ {
2504
+ onClick: () => I(!0),
2505
+ className: `political-expose ${C === !0 && "active"}`,
2506
+ children: "Yes"
2507
+ }
2508
+ ) }),
2509
+ /* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
2510
+ et,
2511
+ {
2512
+ onClick: () => {
2513
+ I(!1), $("");
2514
+ },
2515
+ className: `political-expose ${C === !1 && "active"}`,
2516
+ children: "No"
2517
+ }
2518
+ ) })
2519
+ ] }),
2520
+ C && /* @__PURE__ */ s(ft, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2521
+ gt,
2522
+ {
2523
+ sx: {
2524
+ fontWeight: "bold",
2525
+ color: "#16359D",
2526
+ ".MuiSvgIcon-root ": {
2527
+ fill: "#16359D !important"
2528
+ }
2529
+ },
2530
+ variant: "filled",
2531
+ value: S,
2532
+ displayEmpty: !0,
2533
+ onChange: (p) => $(p.target.value),
2534
+ children: [
2535
+ /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2536
+ Wo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2537
+ ]
2538
+ }
2539
+ ) }),
2540
+ /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2541
+ "Expected frequency of transactions?",
2542
+ /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2543
+ ] }) }),
2544
+ /* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2545
+ gt,
2546
+ {
2547
+ sx: {
2548
+ fontWeight: "bold",
2549
+ color: "#16359D",
2550
+ ".MuiSvgIcon-root ": {
2551
+ fill: "#16359D !important"
2552
+ }
2553
+ },
2554
+ variant: "filled",
2555
+ value: T,
2556
+ displayEmpty: !0,
2557
+ onChange: (p) => R(p.target.value),
2558
+ children: [
2559
+ /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2560
+ Bo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2561
+ ]
2562
+ }
2563
+ ) }),
2564
+ /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2565
+ "Reason for signing up",
2566
+ /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2567
+ ] }) }),
2568
+ /* @__PURE__ */ s(ft, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2569
+ gt,
2570
+ {
2571
+ sx: {
2572
+ fontWeight: "bold",
2573
+ color: "#16359D",
2574
+ ".MuiSvgIcon-root ": {
2575
+ fill: "#16359D !important"
2576
+ }
2577
+ },
2578
+ variant: "filled",
2579
+ value: Q,
2580
+ displayEmpty: !0,
2581
+ onChange: (p) => A(p.target.value),
2582
+ children: [
2583
+ /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2584
+ Uo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2585
+ ]
2586
+ }
2587
+ ) }),
2588
+ /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2589
+ "Source of wealth",
2590
+ /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2591
+ ] }) }),
2592
+ /* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2593
+ gt,
2594
+ {
2595
+ sx: {
2596
+ fontWeight: "bold",
2597
+ color: "#16359D",
2598
+ ".MuiSvgIcon-root ": {
2599
+ fill: "#16359D !important"
2600
+ }
2601
+ },
2602
+ variant: "filled",
2603
+ value: V,
2604
+ displayEmpty: !0,
2605
+ onChange: (p) => ie(p.target.value),
2606
+ children: [
2607
+ /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2608
+ jo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2609
+ ]
2610
+ }
2611
+ ) }),
2612
+ /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2613
+ "Origin of funds",
2614
+ /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2615
+ ] }) }),
2616
+ /* @__PURE__ */ s(
2617
+ Xt,
2618
+ {
2619
+ sx: {
2620
+ mt: 2,
2621
+ ".MuiSvgIcon-root ": {
2622
+ fill: "#16359D !important"
2623
+ }
2624
+ },
2625
+ value: re,
2626
+ isOptionEqualToValue: (p, W) => p.alpha3 === W.alpha3,
2627
+ onChange: (p, W) => de(W),
2628
+ options: to,
2629
+ autoHighlight: !0,
2630
+ openOnFocus: !0,
2631
+ getOptionLabel: (p) => p.name,
2632
+ renderOption: (p, W) => /* @__PURE__ */ E(
2633
+ et,
2634
+ {
2635
+ component: "li",
2636
+ sx: { "& > img": { mr: 2, flexShrink: 0 } },
2637
+ ...p,
2638
+ children: [
2639
+ /* @__PURE__ */ s(
2640
+ "img",
2641
+ {
2642
+ loading: "lazy",
2643
+ width: "20",
2644
+ src: `https://flagcdn.com/w20/${W.alpha2.toLowerCase()}.png`,
2645
+ srcSet: `https://flagcdn.com/w40/${W.alpha2.toLowerCase()}.png 2x`,
2646
+ alt: ""
2647
+ }
2648
+ ),
2649
+ W.name,
2650
+ " (",
2651
+ W.alpha3,
2652
+ ")"
2653
+ ]
2654
+ }
2655
+ ),
2656
+ renderInput: (p) => /* @__PURE__ */ s(
2657
+ po,
2658
+ {
2659
+ className: "country-select-field",
2660
+ ...p,
2661
+ variant: "filled",
2662
+ placeholder: "Please select",
2663
+ inputProps: {
2664
+ ...p.inputProps,
2665
+ autoComplete: "new-password"
2666
+ }
2667
+ }
2668
+ )
2669
+ }
2670
+ )
2671
+ ] }),
2672
+ /* @__PURE__ */ s(
2673
+ k,
2674
+ {
2675
+ sx: { mt: 4 },
2676
+ variant: "contained",
2677
+ onClick: ae,
2678
+ disabled: !T || !Q || !V || !re || C && !S,
2679
+ fullWidth: !0,
2680
+ children: /* @__PURE__ */ s("strong", { children: h ? /* @__PURE__ */ E(zt, { children: [
2681
+ /* @__PURE__ */ s(uo, { size: 15, color: "inherit" }),
2682
+ " Processing..."
2683
+ ] }) : "Submit KYC" })
2684
+ }
2685
+ )
2686
+ ] });
2687
+ };
2688
+ export {
2689
+ Xt as A,
2690
+ $n as P
2691
+ };