everest-npm-features 0.0.32 → 0.0.34

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 (240) hide show
  1. package/dist/{Alert-CUoIVlUd.js → Alert-DzsbFW3-.js} +38 -37
  2. package/dist/{pep-C_LViPSb.js → Autocomplete-CE-OI2t8.js} +934 -1197
  3. package/dist/{Avatar-CwczQLPi.js → Avatar-1XklXr4O.js} +54 -53
  4. package/dist/{Backdrop-yR8IRnFX.js → Backdrop-CioURPVG.js} +7 -6
  5. package/dist/{Box-BwKpr_VI.js → Box-B0YSYLco.js} +5 -5
  6. package/dist/{Button-tAfK4lud.js → Button-Df4vgU24.js} +24 -22
  7. package/dist/{ButtonBase-CaH152Zd.js → ButtonBase-DLF5c6wi.js} +13 -12
  8. package/dist/{Cancel-BoEk0xRy.js → Cancel-4lT7GZUA.js} +1 -1
  9. package/dist/{CardContent-ZS4vlcvi.js → CardContent-D9wTdpu-.js} +14 -13
  10. package/dist/{CircularProgress-Yx712vpT.js → CircularProgress-xZA3lvba.js} +6 -5
  11. package/dist/{Close-CFg1QB5M.js → Close-CNwiMz_O.js} +1 -1
  12. package/dist/{Close-B_8kEwSt.js → Close-CxzDL3J-.js} +1 -1
  13. package/dist/{Container-CBPBT38n.js → Container-urNKV7hm.js} +4 -4
  14. package/dist/{ContentCopy-D4Eg7Nkm.js → ContentCopy-coPwrEuz.js} +1 -1
  15. package/dist/DefaultPropsProvider-CeF7UYM9.js +92 -0
  16. package/dist/DefaultPropsProvider-oAu9El-f.js +226 -0
  17. package/dist/{Delete-BGp4FPdE.js → Delete-jpMstGIF.js} +1 -1
  18. package/dist/{DialogContent-_gvZOy18.js → DialogContent-BMwlOnbW.js} +23 -22
  19. package/dist/{DialogTitle-dq22bYlF.js → DialogTitle-CfS0bb2K.js} +5 -5
  20. package/dist/{Divider-CIL55YSC.js → Divider-BShhMFf4.js} +5 -5
  21. package/dist/{ErrorOutline-BykbFh0r.js → ErrorOutline-CPQcnl2b.js} +1 -1
  22. package/dist/{FileDownload-BSy7tA6m.js → FileDownload-Bt3R_NBr.js} +1 -1
  23. package/dist/{FilledInput-QaJVaeIX.js → FilledInput-DuNqnPjc.js} +15 -14
  24. package/dist/{FormControl-H4D1Z6Ov.js → FormControl-RtZDQMdA.js} +6 -5
  25. package/dist/{FormControlLabel-BvI1nkJ1.js → FormControlLabel-BliKW48y.js} +18 -17
  26. package/dist/{GlobalStyles-DhHHc9O0.js → GlobalStyles-ChMhDfTS.js} +4 -4
  27. package/dist/{Grid-CPkjiKqX.js → Grid-CFe3amXO.js} +7 -7
  28. package/dist/{Grow-B2p7O_1C.js → Grow-CnGtel3u.js} +4 -4
  29. package/dist/{IconButton-WneJM4uP.js → IconButton-DHm-hucF.js} +11 -10
  30. package/dist/{Info-0vSsl6Bm.js → Info-BVeUSPyk.js} +1 -1
  31. package/dist/{InputAdornment-Bqn4-Kns.js → InputAdornment-DMiED3JH.js} +21 -20
  32. package/dist/{Link-DhdK4VfZ.js → Link-DBA9Yifs.js} +20 -19
  33. package/dist/{ListItemIcon-D657XWHf.js → ListItemIcon-CUcyTEEm.js} +6 -6
  34. package/dist/{Menu-BAFJBGa-.js → Menu-DLYFFrEk.js} +21 -20
  35. package/dist/{MenuItem-ByxiQtY2.js → MenuItem-DUdYOJr4.js} +40 -39
  36. package/dist/{Modal-DEfOsvWK.js → Modal-CFIQ_s3T.js} +15 -14
  37. package/dist/{Paper-jx_cZiyU.js → Paper-Bgt2WXI6.js} +11 -10
  38. package/dist/PlayArrow-CcX9hutu.js +13 -0
  39. package/dist/{Popper-B1He9eVi.js → Popper-BBAoiZKn.js} +14 -13
  40. package/dist/{Portal-CLa9CbMv.js → Portal-BMAxiQwe.js} +2 -2
  41. package/dist/{RadioGroup-_-H2gvH2.js → RadioGroup-nvoSN0JN.js} +25 -24
  42. package/dist/{Select-CGei0bav.js → Select-CB5yWmyn.js} +12 -11
  43. package/dist/{Slide-DHG0r2gy.js → Slide-B9Nw0LZ4.js} +3 -3
  44. package/dist/{Stack-DH-Nxf9q.js → Stack-k55YTxET.js} +5 -5
  45. package/dist/{SwitchBase-BDUzpdBf.js → SwitchBase-C8zFyg_x.js} +11 -10
  46. package/dist/{TextField-DmiK1A_S.js → TextField-DPpRUQe3.js} +10 -9
  47. package/dist/{Typography-BQDN44CM.js → Typography-pAaje37G.js} +13 -12
  48. package/dist/assets/styles2.css +1 -1
  49. package/dist/assets/styles3.css +1 -1
  50. package/dist/assets/withThemeProvider.css +1 -1
  51. package/dist/{auth-IOh0JhPD.js → auth-BzJj8HQz.js} +5 -5
  52. package/dist/{bank-BNgO--wu.js → bank-CCdUsDB2.js} +1 -1
  53. package/dist/clsx-BTaloaeC.js +264 -0
  54. package/dist/components/RocketRamp/MinimalKyc/form.js +10 -10
  55. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  56. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  57. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  58. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  59. package/dist/components/RocketRamp/Player/Buy/index.js +7 -7
  60. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  61. package/dist/components/RocketRamp/Player/Dashboard/index.js +5 -5
  62. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  63. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  64. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  65. package/dist/components/RocketRamp/Player/Sell/index.js +8 -8
  66. package/dist/components/RocketRamp/Player/SignIn/index.js +6 -6
  67. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  69. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  70. package/dist/components/RocketRamp/Player/SignUp/index.js +7 -7
  71. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  72. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  73. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  74. package/dist/components/RocketRamp/ResetPassword/index.js +6 -6
  75. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  76. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  77. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  78. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  79. package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
  80. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  81. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  82. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  83. package/dist/components/RocketRamp/Store/SignUp/index.js +7 -7
  84. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  85. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  86. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  87. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  88. package/dist/components/RocketRamp/Transactions/index.js +9 -9
  89. package/dist/components/Shared/FullKyc/countryList.d.ts +10 -0
  90. package/dist/components/Shared/FullKyc/countryList.js +54 -0
  91. package/dist/components/Shared/FullKyc/edd.d.ts +3 -0
  92. package/dist/components/Shared/FullKyc/edd.js +184 -0
  93. package/dist/components/Shared/FullKyc/index.d.ts +1 -0
  94. package/dist/components/Shared/FullKyc/index.js +12 -10
  95. package/dist/components/Shared/FullKyc/pep.js +276 -15
  96. package/dist/components/Shared/FullKyc/personalDetails.js +7 -9
  97. package/dist/components/Shared/FullKyc/types.d.ts +21 -3
  98. package/dist/components/Shared/FullKyc/userInfo.js +13 -13
  99. package/dist/components/Shared/HistoryItem/index.js +99 -75
  100. package/dist/components/Shared/Incode/index.d.ts +2 -1
  101. package/dist/components/Shared/Incode/index.js +42 -40
  102. package/dist/components/Shared/MinimalKyc/index.js +9 -9
  103. package/dist/components/Shared/loader.js +2 -2
  104. package/dist/components/Shared/tooltip.js +2 -2
  105. package/dist/components/Shared/transition.js +1 -1
  106. package/dist/components/Wallet/Account/createIban.js +8 -8
  107. package/dist/components/Wallet/Account/iban.js +14 -14
  108. package/dist/components/Wallet/Account/index.js +24 -24
  109. package/dist/components/Wallet/Account/sendIban.js +16 -16
  110. package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
  111. package/dist/components/Wallet/Buy/form.js +20 -20
  112. package/dist/components/Wallet/Buy/index.js +7 -7
  113. package/dist/components/Wallet/Deposit/index.js +27 -25
  114. package/dist/components/Wallet/EnterpriseKyc/edd.js +8 -8
  115. package/dist/components/Wallet/EnterpriseKyc/index.js +123 -113
  116. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  117. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  118. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  119. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  120. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +21 -21
  121. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +16 -16
  122. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  123. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  124. package/dist/components/Wallet/History/index.js +18 -17
  125. package/dist/components/Wallet/Home/index.js +2 -2
  126. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +41 -41
  127. package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
  128. package/dist/components/Wallet/Portfolio/index.js +159 -147
  129. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -3
  130. package/dist/components/Wallet/Profile/documents.js +17 -17
  131. package/dist/components/Wallet/Profile/index.js +12 -12
  132. package/dist/components/Wallet/Receive/index.js +11 -11
  133. package/dist/components/Wallet/Sell/confirmTransaction.js +26 -10
  134. package/dist/components/Wallet/Sell/form.js +20 -20
  135. package/dist/components/Wallet/Sell/index.d.ts +1 -0
  136. package/dist/components/Wallet/Sell/index.js +12 -11
  137. package/dist/components/Wallet/Send/index.js +21 -21
  138. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  139. package/dist/components/Wallet/Shared/Auth/otpForm.js +7 -7
  140. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  141. package/dist/components/Wallet/Shared/ConnectWallet/index.js +11 -11
  142. package/dist/components/Wallet/Shared/Container/index.js +2 -2
  143. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  144. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  145. package/dist/components/Wallet/Shared/Order/paymentButton.js +2 -2
  146. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  147. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  148. package/dist/components/Wallet/Shared/addBank.js +12 -12
  149. package/dist/components/Wallet/Shared/appButton.js +6 -6
  150. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  151. package/dist/components/Wallet/Shared/button.js +1 -1
  152. package/dist/components/Wallet/Shared/connectPlaidBank.js +6 -6
  153. package/dist/components/Wallet/Shared/inputField.js +1 -1
  154. package/dist/components/Wallet/Shared/manualSend.d.ts +11 -0
  155. package/dist/components/Wallet/Shared/manualSend.js +38 -0
  156. package/dist/components/Wallet/Shared/noData.js +2 -2
  157. package/dist/components/Wallet/Shared/pin.js +4 -4
  158. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  159. package/dist/components/Wallet/Shared/step.js +2 -2
  160. package/dist/components/Wallet/Shared/timer.d.ts +9 -0
  161. package/dist/components/Wallet/Shared/timer.js +53 -0
  162. package/dist/components/Wallet/SignIn/index.js +3 -3
  163. package/dist/components/Wallet/SignUp/index.js +12 -11
  164. package/dist/components/Wallet/SignUp/terms.js +1 -1
  165. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  166. package/dist/components/Wallet/Stake/id/index.js +12 -12
  167. package/dist/components/Wallet/Stake/index.js +12 -12
  168. package/dist/components/Wallet/Swap/form.d.ts +3 -0
  169. package/dist/components/Wallet/Swap/form.js +46 -0
  170. package/dist/components/Wallet/Swap/index.d.ts +3 -0
  171. package/dist/components/Wallet/Swap/index.js +19 -551
  172. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  173. package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
  174. package/dist/components/Wallet/Withdraw/confirmTransaction.js +10 -10
  175. package/dist/components/Wallet/Withdraw/form.js +17 -17
  176. package/dist/components/Wallet/Withdraw/index.js +6 -6
  177. package/dist/{constants-DWENgBjv.js → constants-B1fWUUck.js} +1107 -1102
  178. package/dist/{createSvgIcon-BgBEJXMh.js → createSvgIcon-Cuzqm90l.js} +25 -24
  179. package/dist/{createTheme-DmGCMO09.js → createTheme-CD19zQB7.js} +13 -13
  180. package/dist/cryptoAssets-BU3EHVIY.js +16 -0
  181. package/dist/defaultTheme-C35y5cLB.js +5 -0
  182. package/dist/{dividerClasses-BVK5cNr7.js → dividerClasses-BDxa2gAa.js} +2 -2
  183. package/dist/{documents-BA_pUCQh.js → documents-PylmjRbk.js} +24 -24
  184. package/dist/{elementAcceptingRef-BbsmdE_3.js → elementAcceptingRef-CqLvP78G.js} +1 -1
  185. package/dist/{elementTypeAcceptingRef-CdmXUhJ8.js → elementTypeAcceptingRef-BdsMpCbS.js} +1 -1
  186. package/dist/{emotion-react.browser.esm-C2mxoK1z.js → emotion-react.browser.esm-BIrDfk-B.js} +43 -43
  187. package/dist/{extendSxProp-Bwha5fon.js → extendSxProp-B8UjbJ56.js} +1 -1
  188. package/dist/generateUtilityClasses-BRiE4Guh.js +10 -0
  189. package/dist/hoc/withThemeProvider.js +5 -5
  190. package/dist/hooks/useDialog/index.js +4 -4
  191. package/dist/hooks/useRrDialog/index.js +4 -4
  192. package/dist/hooks/useSnackBar.js +23 -22
  193. package/dist/icons/buyIcon.js +1 -1
  194. package/dist/icons/canceledBuyIcon.js +1 -1
  195. package/dist/icons/canceledRedeemIcon.js +1 -1
  196. package/dist/icons/failedBuyIcon.js +1 -1
  197. package/dist/icons/failedRedeemIcon.js +1 -1
  198. package/dist/icons/pendingBuyIcon.js +1 -1
  199. package/dist/icons/pendingRedeemIcon.js +1 -1
  200. package/dist/icons/redeemIcon.js +1 -1
  201. package/dist/{index-x9CniyQB.js → index-B0Z-Gjno.js} +1 -1
  202. package/dist/index-BJsAyUhP.js +730 -0
  203. package/dist/index-BW-RJYiq.js +499 -0
  204. package/dist/index-CQ-u6bTN.js +917 -0
  205. package/dist/{index-CNLxRkdf.js → index-DUCRi3yf.js} +31 -32
  206. package/dist/{index-C86AoaoB.js → index-DUcLo3x5.js} +4 -4
  207. package/dist/index-DjWC9DGk.js +623 -0
  208. package/dist/{index-GXDDOdOI.js → index-Dka1TfUt.js} +42 -43
  209. package/dist/{index-v4KC1K_V.js → index-FwnHkXdK.js} +4 -4
  210. package/dist/{index-Cz_n7X7q.js → index-OSl1NZiT.js} +40 -41
  211. package/dist/{kyc-DbZ4KGFX.js → kyc-CSbzb5MW.js} +3 -3
  212. package/dist/main.js +10 -10
  213. package/dist/{memoTheme-BUUB1UEO.js → memoTheme-yHaPezod.js} +1 -1
  214. package/dist/order-BtLfPFH9.js +51 -0
  215. package/dist/{radioButton-CBcYX40o.js → radioButton-CzlYB0Lh.js} +18 -17
  216. package/dist/{react-redux-C7I9-1M6.js → react-redux-B4BZippc.js} +2 -2
  217. package/dist/{refType-CaiGhRso.js → refType-BsTH3qnM.js} +1 -1
  218. package/dist/{stake-tw1n23io.js → stake-C7IQSI0J.js} +1 -1
  219. package/dist/styles.module-CHEBh2ID.js +35 -0
  220. package/dist/{styles.module-verVx4pE.js → styles.module-CUA1zLEJ.js} +1 -1
  221. package/dist/{tokenRow-C5N2uPgO.js → tokenRow-D32W5WH3.js} +2 -2
  222. package/dist/{tooltip-Dv3Lfsa2.js → tooltip-3UvETWtS.js} +19 -18
  223. package/dist/{useSlot-DtSnboW7.js → useSlot-CW7SOYlh.js} +1 -1
  224. package/dist/{useSlotProps-D62tWbb1.js → useSlotProps-BfEOwJvJ.js} +1 -1
  225. package/dist/{useTheme-XTDzJ69d.js → useTheme-BQJ5lp0i.js} +3 -3
  226. package/dist/{useTheme-Bfw5Gt1b.js → useTheme-S5_DHFsQ.js} +1 -1
  227. package/dist/{useThemeProps-DLhzJP-y.js → useThemeProps-DN9MjdTl.js} +3 -3
  228. package/dist/{wallet-DZwD-8oa.js → wallet-Bq1E67kO.js} +1 -1
  229. package/package.json +2 -2
  230. package/dist/DefaultPropsProvider-4P82EuVL.js +0 -232
  231. package/dist/DefaultPropsProvider-CZh8M2jM.js +0 -351
  232. package/dist/PlayArrow-BCWGWaUq.js +0 -8
  233. package/dist/cryptoAssets-C7fIAflf.js +0 -16
  234. package/dist/defaultTheme-9fAph5zo.js +0 -5
  235. package/dist/fiatAssets-Bkh4X4hq.js +0 -8
  236. package/dist/index-BtYuKn1z.js +0 -724
  237. package/dist/index-BvD3O03n.js +0 -483
  238. package/dist/index-dsM-tUkI.js +0 -708
  239. package/dist/order-BLu2iLAt.js +0 -43
  240. package/dist/styles.module-CRVptIQs.js +0 -33
@@ -1,374 +1,364 @@
1
- import { jsx as s, jsxs as E, Fragment as zt } from "react/jsx-runtime";
2
- import * as C 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-BwKpr_VI.js";
8
- import { T as He } from "./Typography-BQDN44CM.js";
9
- import { G as St } from "./Grid-CPkjiKqX.js";
10
- import { F as ft } from "./FormControl-H4D1Z6Ov.js";
11
- import { i as kt, o as Ft, A as no, S as gt } from "./Select-CGei0bav.js";
12
- import { M as he } from "./MenuItem-ByxiQtY2.js";
13
- import { g as wt, b as v, P as t, a as Q } from "./createTheme-DmGCMO09.js";
14
- import { c as ye } from "./DefaultPropsProvider-CZh8M2jM.js";
15
- import { i as we, f as We } from "./FilledInput-QaJVaeIX.js";
16
- import { C as ro } from "./Close-B_8kEwSt.js";
17
- import { m as ve } from "./memoTheme-BUUB1UEO.js";
18
- import { g as Lt, s as _, u as At, c as Dt } from "./DefaultPropsProvider-4P82EuVL.js";
19
- import { u as tt } from "./useSlot-DtSnboW7.js";
20
- import { I as _t } from "./IconButton-WneJM4uP.js";
21
- import { P as Yt } from "./Popper-B1He9eVi.js";
22
- import { P as Jt, i as ao } from "./Paper-jx_cZiyU.js";
23
- import { u as lo } from "./useId-CK6Kn3Tn.js";
24
- import { u as Tt } from "./useControlled-nm4pBabJ.js";
25
- import { a as bt } from "./refType-CaiGhRso.js";
26
- import { s as io } from "./Portal-CLa9CbMv.js";
27
- import { c as so } from "./createSvgIcon-BgBEJXMh.js";
28
- import { c as mt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
29
- import { u as co } from "./TransitionGroupContext-CYRQkQ6k.js";
30
- import { B as Ht } from "./ButtonBase-CaH152Zd.js";
31
- import { c as Wt } from "./chainPropTypes-D9lkm76m.js";
32
- import { T as po } from "./TextField-DmiK1A_S.js";
33
- import { C as uo } from "./CircularProgress-Yx712vpT.js";
34
- function fo(e, r, a, c, h) {
1
+ import * as h from "react";
2
+ import { g as Ct, b as y, P as t, a as _ } from "./createTheme-CD19zQB7.js";
3
+ import { c as de } from "./clsx-BTaloaeC.js";
4
+ import { i as xt, o as At, A as Gt } from "./Select-CB5yWmyn.js";
5
+ import { i as Oe, f as Me } from "./FilledInput-DuNqnPjc.js";
6
+ import { C as Kt } from "./Close-CxzDL3J-.js";
7
+ import { m as fe } from "./memoTheme-yHaPezod.js";
8
+ import { g as $t } from "./generateUtilityClasses-BRiE4Guh.js";
9
+ import { u as Ye } from "./useSlot-CW7SOYlh.js";
10
+ import { jsx as D, jsxs as Xe } from "react/jsx-runtime";
11
+ import { s as W, u as Ot, c as Pt } from "./DefaultPropsProvider-oAu9El-f.js";
12
+ import { I as jt } from "./IconButton-DHm-hucF.js";
13
+ import { P as Ht } from "./Popper-BBAoiZKn.js";
14
+ import { P as Ut, i as _t } from "./Paper-Bgt2WXI6.js";
15
+ import { u as qt } from "./useId-CK6Kn3Tn.js";
16
+ import { u as It } from "./useControlled-nm4pBabJ.js";
17
+ import { a as ct } from "./refType-BsTH3qnM.js";
18
+ import { s as Jt } from "./Portal-BMAxiQwe.js";
19
+ import { c as Xt } from "./createSvgIcon-Cuzqm90l.js";
20
+ import { c as pt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
21
+ import { u as Yt } from "./TransitionGroupContext-CYRQkQ6k.js";
22
+ import { B as Rt } from "./ButtonBase-DLF5c6wi.js";
23
+ import { c as Dt } from "./chainPropTypes-D9lkm76m.js";
24
+ function Qt(e, r, l, s, b) {
35
25
  if (process.env.NODE_ENV === "production")
36
26
  return null;
37
- const T = h || r;
38
- return typeof e[r] < "u" ? new Error(`The prop \`${T}\` is not supported. Please remove it.`) : null;
27
+ const P = b || r;
28
+ return typeof e[r] < "u" ? new Error(`The prop \`${P}\` is not supported. Please remove it.`) : null;
39
29
  }
40
- const go = (e) => {
41
- const r = C.useRef({});
42
- return C.useEffect(() => {
30
+ const Zt = (e) => {
31
+ const r = h.useRef({});
32
+ return h.useEffect(() => {
43
33
  r.current = e;
44
34
  }), r.current;
45
35
  };
46
- function jt(e) {
36
+ function Nt(e) {
47
37
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
48
38
  }
49
- function bo(e = {}) {
39
+ function eo(e = {}) {
50
40
  const {
51
41
  ignoreAccents: r = !0,
52
- ignoreCase: a = !0,
53
- limit: c,
54
- matchFrom: h = "any",
55
- stringify: T,
56
- trim: x = !1
42
+ ignoreCase: l = !0,
43
+ limit: s,
44
+ matchFrom: b = "any",
45
+ stringify: P,
46
+ trim: $ = !1
57
47
  } = e;
58
48
  return (I, {
59
- inputValue: S,
60
- getOptionLabel: $
49
+ inputValue: k,
50
+ getOptionLabel: C
61
51
  }) => {
62
- let k = x ? S.trim() : S;
63
- a && (k = k.toLowerCase()), r && (k = jt(k));
64
- const R = k ? I.filter((Y) => {
65
- let A = (T || $)(Y);
66
- return a && (A = A.toLowerCase()), r && (A = jt(A)), h === "start" ? A.startsWith(k) : A.includes(k);
52
+ let T = $ ? k.trim() : k;
53
+ l && (T = T.toLowerCase()), r && (T = Nt(T));
54
+ const N = T ? I.filter((le) => {
55
+ let L = (P || C)(le);
56
+ return l && (L = L.toLowerCase()), r && (L = Nt(L)), b === "start" ? L.startsWith(T) : L.includes(T);
67
57
  }) : I;
68
- return typeof c == "number" ? R.slice(0, c) : R;
58
+ return typeof s == "number" ? N.slice(0, s) : N;
69
59
  };
70
60
  }
71
- const mo = bo(), Bt = 5, ho = (e) => {
61
+ const to = eo(), Et = 5, oo = (e) => {
72
62
  var r;
73
63
  return e.current !== null && ((r = e.current.parentElement) == null ? void 0 : r.contains(document.activeElement));
74
- }, yo = [];
75
- function Ut(e, r, a, c) {
76
- if (r || e == null || c)
64
+ }, no = [];
65
+ function Mt(e, r, l, s) {
66
+ if (r || e == null || s)
77
67
  return "";
78
- const h = a(e);
79
- return typeof h == "string" ? h : "";
68
+ const b = l(e);
69
+ return typeof b == "string" ? b : "";
80
70
  }
81
- function vo(e) {
71
+ function ro(e) {
82
72
  const {
83
73
  // eslint-disable-next-line @typescript-eslint/naming-convention
84
- unstable_isActiveElementInListbox: r = ho,
74
+ unstable_isActiveElementInListbox: r = oo,
85
75
  // eslint-disable-next-line @typescript-eslint/naming-convention
86
- unstable_classNamePrefix: a = "Mui",
87
- autoComplete: c = !1,
88
- autoHighlight: h = !1,
89
- autoSelect: T = !1,
90
- blurOnSelect: x = !1,
76
+ unstable_classNamePrefix: l = "Mui",
77
+ autoComplete: s = !1,
78
+ autoHighlight: b = !1,
79
+ autoSelect: P = !1,
80
+ blurOnSelect: $ = !1,
91
81
  clearOnBlur: I = !e.freeSolo,
92
- clearOnEscape: S = !1,
93
- componentName: $ = "useAutocomplete",
94
- defaultValue: k = e.multiple ? yo : null,
95
- disableClearable: R = !1,
96
- disableCloseOnSelect: Y = !1,
97
- disabled: A,
98
- disabledItemsFocusable: N = !1,
99
- disableListWrap: ie = !1,
100
- filterOptions: te = mo,
101
- filterSelectedOptions: de = !1,
102
- freeSolo: ae = !1,
103
- getOptionDisabled: p,
104
- getOptionKey: W,
105
- getOptionLabel: je = (n) => n.label ?? n,
106
- groupBy: se,
107
- handleHomeEndKeys: Be = !e.freeSolo,
108
- id: ot,
109
- includeInputInList: xe = !1,
110
- inputValue: Ce,
111
- isOptionEqualToValue: X = (n, o) => n === o,
112
- multiple: m = !1,
113
- onChange: Ie,
114
- onClose: $e,
115
- onHighlightChange: fe,
116
- onInputChange: F,
117
- onOpen: Le,
118
- open: Ue,
119
- openOnFocus: Ae = !1,
120
- options: De,
121
- readOnly: Z = !1,
122
- renderValue: H,
123
- selectOnFocus: Ge = !e.freeSolo,
124
- value: Re
125
- } = e, j = lo(ot);
126
- let d = je;
127
- d = (n) => {
128
- const o = je(n);
82
+ clearOnEscape: k = !1,
83
+ componentName: C = "useAutocomplete",
84
+ defaultValue: T = e.multiple ? no : null,
85
+ disableClearable: N = !1,
86
+ disableCloseOnSelect: le = !1,
87
+ disabled: L,
88
+ disabledItemsFocusable: G = !1,
89
+ disableListWrap: ge = !1,
90
+ filterOptions: Ve = to,
91
+ filterSelectedOptions: Pe = !1,
92
+ freeSolo: ie = !1,
93
+ getOptionDisabled: q,
94
+ getOptionKey: Se,
95
+ getOptionLabel: ze = (n) => n.label ?? n,
96
+ groupBy: oe,
97
+ handleHomeEndKeys: Fe = !e.freeSolo,
98
+ id: Qe,
99
+ includeInputInList: be = !1,
100
+ inputValue: me,
101
+ isOptionEqualToValue: J = (n, o) => n === o,
102
+ multiple: g = !1,
103
+ onChange: ye,
104
+ onClose: he,
105
+ onHighlightChange: se,
106
+ onInputChange: M,
107
+ onOpen: ke,
108
+ open: je,
109
+ openOnFocus: Te = !1,
110
+ options: we,
111
+ readOnly: X = !1,
112
+ renderValue: V,
113
+ selectOnFocus: He = !e.freeSolo,
114
+ value: Le
115
+ } = e, z = qt(Qe);
116
+ let p = ze;
117
+ p = (n) => {
118
+ const o = ze(n);
129
119
  if (typeof o != "string") {
130
120
  if (process.env.NODE_ENV !== "production") {
131
- const l = o === void 0 ? "undefined" : `${typeof o} (${o})`;
132
- console.error(`MUI: The \`getOptionLabel\` method of ${$} returned ${l} instead of a string for ${JSON.stringify(n)}.`);
121
+ const a = o === void 0 ? "undefined" : `${typeof o} (${o})`;
122
+ console.error(`MUI: The \`getOptionLabel\` method of ${C} returned ${a} instead of a string for ${JSON.stringify(n)}.`);
133
123
  }
134
124
  return String(o);
135
125
  }
136
126
  return o;
137
127
  };
138
- const U = C.useRef(!1), G = C.useRef(!0), L = C.useRef(null), ee = C.useRef(null), [Ke, Rt] = C.useState(null), [J, nt] = C.useState(-1), yt = h ? 0 : -1, z = C.useRef(yt), Et = C.useRef(Ut(k ?? Re, m, d)).current, [u, qe] = Tt({
139
- controlled: Re,
140
- default: k,
141
- name: $
142
- }), [P, Oe] = Tt({
143
- controlled: Ce,
144
- default: Et,
145
- name: $,
128
+ const j = h.useRef(!1), H = h.useRef(!0), S = h.useRef(null), Y = h.useRef(null), [Ue, St] = h.useState(null), [K, Ze] = h.useState(-1), dt = b ? 0 : -1, E = h.useRef(dt), kt = h.useRef(Mt(T ?? Le, g, p)).current, [c, Be] = It({
129
+ controlled: Le,
130
+ default: T,
131
+ name: C
132
+ }), [x, ve] = It({
133
+ controlled: me,
134
+ default: kt,
135
+ name: C,
146
136
  state: "inputValue"
147
- }), [Ee, rt] = C.useState(!1), Ne = C.useCallback((n, o, l) => {
148
- if (!(m ? u.length < o.length : o !== null) && !I)
137
+ }), [Ae, et] = h.useState(!1), Re = h.useCallback((n, o, a) => {
138
+ if (!(g ? c.length < o.length : o !== null) && !I)
149
139
  return;
150
- const i = Ut(o, m, d, H);
151
- P !== i && (Oe(i), F && F(n, i, l));
152
- }, [d, P, m, F, Oe, I, u, H]), [ce, Pe] = Tt({
153
- controlled: Ue,
140
+ const i = Mt(o, g, p, V);
141
+ x !== i && (ve(i), M && M(n, i, a));
142
+ }, [p, x, g, M, ve, I, c, V]), [ne, xe] = It({
143
+ controlled: je,
154
144
  default: !1,
155
- name: $,
145
+ name: C,
156
146
  state: "open"
157
- }), [Nt, Me] = C.useState(!0), at = !m && u != null && P === d(u), K = ce && !Z, w = K ? te(
158
- De.filter((n) => !(de && (m ? u : [u]).some((o) => o !== null && X(n, o)))),
147
+ }), [Tt, De] = h.useState(!0), tt = !g && c != null && x === p(c), U = ne && !X, O = U ? Ve(
148
+ we.filter((n) => !(Pe && (g ? c : [c]).some((o) => o !== null && J(n, o)))),
159
149
  // we use the empty string to manipulate `filterOptions` to not filter any options
160
150
  // i.e. the filter predicate always returns true
161
151
  {
162
- inputValue: at && Nt ? "" : P,
163
- getOptionLabel: d
152
+ inputValue: tt && Tt ? "" : x,
153
+ getOptionLabel: p
164
154
  }
165
- ) : [], oe = go({
166
- filteredOptions: w,
167
- value: u,
168
- inputValue: P
155
+ ) : [], Q = Zt({
156
+ filteredOptions: O,
157
+ value: c,
158
+ inputValue: x
169
159
  });
170
- C.useEffect(() => {
171
- const n = u !== oe.value;
172
- Ee && !n || ae && !n || Ne(null, u, "reset");
173
- }, [u, Ne, Ee, oe.value, ae]);
174
- const lt = ce && w.length > 0 && !Z, ne = bt((n) => {
160
+ h.useEffect(() => {
161
+ const n = c !== Q.value;
162
+ Ae && !n || ie && !n || Re(null, c, "reset");
163
+ }, [c, Re, Ae, Q.value, ie]);
164
+ const ot = ne && O.length > 0 && !X, Z = ct((n) => {
175
165
  if (n === -1)
176
- L.current.focus();
166
+ S.current.focus();
177
167
  else {
178
- const o = H ? "data-item-index" : "data-tag-index";
179
- Ke.querySelector(`[${o}="${n}"]`).focus();
168
+ const o = V ? "data-item-index" : "data-tag-index";
169
+ Ue.querySelector(`[${o}="${n}"]`).focus();
180
170
  }
181
171
  });
182
- C.useEffect(() => {
183
- m && J > u.length - 1 && (nt(-1), ne(-1));
184
- }, [u, m, J, ne]);
185
- function vt(n, o) {
186
- if (!ee.current || n < 0 || n >= w.length)
172
+ h.useEffect(() => {
173
+ g && K > c.length - 1 && (Ze(-1), Z(-1));
174
+ }, [c, g, K, Z]);
175
+ function ft(n, o) {
176
+ if (!Y.current || n < 0 || n >= O.length)
187
177
  return -1;
188
- let l = n;
178
+ let a = n;
189
179
  for (; ; ) {
190
- const g = ee.current.querySelector(`[data-option-index="${l}"]`), i = N ? !1 : !g || g.disabled || g.getAttribute("aria-disabled") === "true";
191
- if (g && g.hasAttribute("tabindex") && !i)
192
- return l;
193
- if (o === "next" ? l = (l + 1) % w.length : l = (l - 1 + w.length) % w.length, l === n)
180
+ const d = Y.current.querySelector(`[data-option-index="${a}"]`), i = G ? !1 : !d || d.disabled || d.getAttribute("aria-disabled") === "true";
181
+ if (d && d.hasAttribute("tabindex") && !i)
182
+ return a;
183
+ if (o === "next" ? a = (a + 1) % O.length : a = (a - 1 + O.length) % O.length, a === n)
194
184
  return -1;
195
185
  }
196
186
  }
197
- const pe = bt(({
187
+ const re = ct(({
198
188
  event: n,
199
189
  index: o,
200
- reason: l
190
+ reason: a
201
191
  }) => {
202
- 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)
192
+ if (E.current = o, o === -1 ? S.current.removeAttribute("aria-activedescendant") : S.current.setAttribute("aria-activedescendant", `${z}-option-${o}`), se && ["mouse", "keyboard", "touch"].includes(a) && se(n, o === -1 ? null : O[o], a), !Y.current)
203
193
  return;
204
- const g = ee.current.querySelector(`[role="option"].${a}-focused`);
205
- g && (g.classList.remove(`${a}-focused`), g.classList.remove(`${a}-focusVisible`));
206
- let i = ee.current;
207
- if (ee.current.getAttribute("role") !== "listbox" && (i = ee.current.parentElement.querySelector('[role="listbox"]')), !i)
194
+ const d = Y.current.querySelector(`[role="option"].${l}-focused`);
195
+ d && (d.classList.remove(`${l}-focused`), d.classList.remove(`${l}-focusVisible`));
196
+ let i = Y.current;
197
+ if (Y.current.getAttribute("role") !== "listbox" && (i = Y.current.parentElement.querySelector('[role="listbox"]')), !i)
208
198
  return;
209
199
  if (o === -1) {
210
200
  i.scrollTop = 0;
211
201
  return;
212
202
  }
213
- const O = ee.current.querySelector(`[data-option-index="${o}"]`);
214
- if (O && (O.classList.add(`${a}-focused`), l === "keyboard" && O.classList.add(`${a}-focusVisible`), i.scrollHeight > i.clientHeight && l !== "mouse" && l !== "touch")) {
215
- const D = O, B = i.clientHeight + i.scrollTop, Xe = D.offsetTop + D.offsetHeight;
216
- 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));
203
+ const v = Y.current.querySelector(`[data-option-index="${o}"]`);
204
+ if (v && (v.classList.add(`${l}-focused`), a === "keyboard" && v.classList.add(`${l}-focusVisible`), i.scrollHeight > i.clientHeight && a !== "mouse" && a !== "touch")) {
205
+ const w = v, F = i.clientHeight + i.scrollTop, qe = w.offsetTop + w.offsetHeight;
206
+ qe > F ? i.scrollTop = qe - i.clientHeight : w.offsetTop - w.offsetHeight * (oe ? 1.3 : 0) < i.scrollTop && (i.scrollTop = w.offsetTop - w.offsetHeight * (oe ? 1.3 : 0));
217
207
  }
218
- }), re = bt(({
208
+ }), ee = ct(({
219
209
  event: n,
220
210
  diff: o,
221
- direction: l = "next",
222
- reason: g
211
+ direction: a = "next",
212
+ reason: d
223
213
  }) => {
224
- if (!K)
214
+ if (!U)
225
215
  return;
226
- const O = vt((() => {
227
- const D = w.length - 1;
216
+ const v = ft((() => {
217
+ const w = O.length - 1;
228
218
  if (o === "reset")
229
- return yt;
219
+ return dt;
230
220
  if (o === "start")
231
221
  return 0;
232
222
  if (o === "end")
233
- return D;
234
- const B = z.current + o;
235
- 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;
236
- })(), l);
237
- if (pe({
238
- index: O,
239
- reason: g,
223
+ return w;
224
+ const F = E.current + o;
225
+ return F < 0 ? F === -1 && be ? -1 : ge && E.current !== -1 || Math.abs(o) > 1 ? 0 : w : F > w ? F === w + 1 && be ? -1 : ge || Math.abs(o) > 1 ? w : 0 : F;
226
+ })(), a);
227
+ if (re({
228
+ index: v,
229
+ reason: d,
240
230
  event: n
241
- }), c && o !== "reset")
242
- if (O === -1)
243
- L.current.value = P;
231
+ }), s && o !== "reset")
232
+ if (v === -1)
233
+ S.current.value = x;
244
234
  else {
245
- const D = d(w[O]);
246
- L.current.value = D, D.toLowerCase().indexOf(P.toLowerCase()) === 0 && P.length > 0 && L.current.setSelectionRange(P.length, D.length);
235
+ const w = p(O[v]);
236
+ S.current.value = w, w.toLowerCase().indexOf(x.toLowerCase()) === 0 && x.length > 0 && S.current.setSelectionRange(x.length, w.length);
247
237
  }
248
- }), xt = () => {
249
- const n = (o, l) => {
250
- const g = o ? d(o) : "", i = l ? d(l) : "";
251
- return g === i;
238
+ }), gt = () => {
239
+ const n = (o, a) => {
240
+ const d = o ? p(o) : "", i = a ? p(a) : "";
241
+ return d === i;
252
242
  };
253
- if (z.current !== -1 && oe.filteredOptions && oe.filteredOptions.length !== w.length && oe.inputValue === P && (m ? u.length === oe.value.length && oe.value.every((o, l) => d(u[l]) === d(o)) : n(oe.value, u))) {
254
- const o = oe.filteredOptions[z.current];
243
+ if (E.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== O.length && Q.inputValue === x && (g ? c.length === Q.value.length && Q.value.every((o, a) => p(c[a]) === p(o)) : n(Q.value, c))) {
244
+ const o = Q.filteredOptions[E.current];
255
245
  if (o)
256
- return w.findIndex((l) => d(l) === d(o));
246
+ return O.findIndex((a) => p(a) === p(o));
257
247
  }
258
248
  return -1;
259
- }, _e = C.useCallback(() => {
260
- if (!K)
249
+ }, We = h.useCallback(() => {
250
+ if (!U)
261
251
  return;
262
- const n = xt();
252
+ const n = gt();
263
253
  if (n !== -1) {
264
- z.current = n;
254
+ E.current = n;
265
255
  return;
266
256
  }
267
- const o = m ? u[0] : u;
268
- if (w.length === 0 || o == null) {
269
- re({
257
+ const o = g ? c[0] : c;
258
+ if (O.length === 0 || o == null) {
259
+ ee({
270
260
  diff: "reset"
271
261
  });
272
262
  return;
273
263
  }
274
- if (ee.current) {
264
+ if (Y.current) {
275
265
  if (o != null) {
276
- const l = w[z.current];
277
- if (m && l && u.findIndex((i) => X(l, i)) !== -1)
266
+ const a = O[E.current];
267
+ if (g && a && c.findIndex((i) => J(a, i)) !== -1)
278
268
  return;
279
- const g = w.findIndex((i) => X(i, o));
280
- g === -1 ? re({
269
+ const d = O.findIndex((i) => J(i, o));
270
+ d === -1 ? ee({
281
271
  diff: "reset"
282
- }) : pe({
283
- index: g
272
+ }) : re({
273
+ index: d
284
274
  });
285
275
  return;
286
276
  }
287
- if (z.current >= w.length - 1) {
288
- pe({
289
- index: w.length - 1
277
+ if (E.current >= O.length - 1) {
278
+ re({
279
+ index: O.length - 1
290
280
  });
291
281
  return;
292
282
  }
293
- pe({
294
- index: z.current
283
+ re({
284
+ index: E.current
295
285
  });
296
286
  }
297
287
  }, [
298
288
  // Only sync the highlighted index when the option switch between empty and not
299
- w.length,
289
+ O.length,
300
290
  // Don't sync the highlighted index with the value when multiple
301
291
  // eslint-disable-next-line react-hooks/exhaustive-deps
302
- m ? !1 : u,
303
- de,
292
+ g ? !1 : c,
293
+ Pe,
294
+ ee,
304
295
  re,
305
- pe,
306
- K,
307
- P,
308
- m
309
- ]), Ct = bt((n) => {
310
- io(ee, n), n && _e();
296
+ U,
297
+ x,
298
+ g
299
+ ]), bt = ct((n) => {
300
+ Jt(Y, n), n && We();
311
301
  });
312
- process.env.NODE_ENV !== "production" && C.useEffect(() => {
313
- (!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(`
314
- `)) : 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(`
302
+ process.env.NODE_ENV !== "production" && h.useEffect(() => {
303
+ (!S.current || S.current.nodeName !== "INPUT") && (S.current && S.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${C} 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(`
304
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${S.current} while an HTMLInputElement was expected.`, `Instead, ${C} expects an input element.`, "", C === "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(`
315
305
  `)));
316
- }, [$]), C.useEffect(() => {
317
- _e();
318
- }, [_e]);
319
- const q = (n) => {
320
- ce || (Pe(!0), Me(!0), Le && Le(n));
321
- }, Se = (n, o) => {
322
- ce && (Pe(!1), $e && $e(n, o));
323
- }, ue = (n, o, l, g) => {
324
- if (m) {
325
- if (u.length === o.length && u.every((i, O) => i === o[O]))
306
+ }, [C]), h.useEffect(() => {
307
+ We();
308
+ }, [We]);
309
+ const B = (n) => {
310
+ ne || (xe(!0), De(!0), ke && ke(n));
311
+ }, Ie = (n, o) => {
312
+ ne && (xe(!1), he && he(n, o));
313
+ }, ae = (n, o, a, d) => {
314
+ if (g) {
315
+ if (c.length === o.length && c.every((i, v) => i === o[v]))
326
316
  return;
327
- } else if (u === o)
317
+ } else if (c === o)
328
318
  return;
329
- Ie && Ie(n, o, l, g), qe(o);
330
- }, Ve = C.useRef(!1), le = (n, o, l = "selectOption", g = "options") => {
331
- let i = l, O = o;
332
- if (m) {
333
- if (O = Array.isArray(u) ? u.slice() : [], process.env.NODE_ENV !== "production") {
334
- const B = O.filter((Xe) => X(o, Xe));
335
- 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(`
319
+ ye && ye(n, o, a, d), Be(o);
320
+ }, Ne = h.useRef(!1), te = (n, o, a = "selectOption", d = "options") => {
321
+ let i = a, v = o;
322
+ if (g) {
323
+ if (v = Array.isArray(c) ? c.slice() : [], process.env.NODE_ENV !== "production") {
324
+ const F = v.filter((qe) => J(o, qe));
325
+ F.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${C} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${F.length} matches.`].join(`
336
326
  `));
337
327
  }
338
- const D = O.findIndex((B) => X(o, B));
339
- D === -1 ? O.push(o) : g !== "freeSolo" && (O.splice(D, 1), i = "removeOption");
328
+ const w = v.findIndex((F) => J(o, F));
329
+ w === -1 ? v.push(o) : d !== "freeSolo" && (v.splice(w, 1), i = "removeOption");
340
330
  }
341
- Ne(n, O, i), ue(n, O, i, {
331
+ Re(n, v, i), ae(n, v, i, {
342
332
  option: o
343
- }), !Y && (!n || !n.ctrlKey && !n.metaKey) && Se(n, i), (x === !0 || x === "touch" && Ve.current || x === "mouse" && !Ve.current) && L.current.blur();
333
+ }), !le && (!n || !n.ctrlKey && !n.metaKey) && Ie(n, i), ($ === !0 || $ === "touch" && Ne.current || $ === "mouse" && !Ne.current) && S.current.blur();
344
334
  };
345
- function it(n, o) {
335
+ function nt(n, o) {
346
336
  if (n === -1)
347
337
  return -1;
348
- let l = n;
338
+ let a = n;
349
339
  for (; ; ) {
350
- if (o === "next" && l === u.length || o === "previous" && l === -1)
340
+ if (o === "next" && a === c.length || o === "previous" && a === -1)
351
341
  return -1;
352
- const g = H ? "data-item-index" : "data-tag-index", i = Ke.querySelector(`[${g}="${l}"]`);
342
+ const d = V ? "data-item-index" : "data-tag-index", i = Ue.querySelector(`[${d}="${a}"]`);
353
343
  if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
354
- l += o === "next" ? 1 : -1;
344
+ a += o === "next" ? 1 : -1;
355
345
  else
356
- return l;
346
+ return a;
357
347
  }
358
348
  }
359
- const st = (n, o) => {
360
- if (!m)
349
+ const rt = (n, o) => {
350
+ if (!g)
361
351
  return;
362
- P === "" && Se(n, "toggleInput");
363
- let l = J;
364
- J === -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), ne(l);
365
- }, ke = (n) => {
366
- U.current = !0, Oe(""), F && F(n, "", "clear"), ue(n, m ? [] : null, "clear");
367
- }, It = (n) => (o) => {
368
- if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (J !== -1 && !["ArrowLeft", "ArrowRight"].includes(o.key) && (nt(-1), ne(-1)), o.which !== 229))
352
+ x === "" && Ie(n, "toggleInput");
353
+ let a = K;
354
+ K === -1 ? x === "" && o === "previous" && (a = c.length - 1) : (a += o === "next" ? 1 : -1, a < 0 && (a = 0), a === c.length && (a = -1)), a = nt(a, o), Ze(a), Z(a);
355
+ }, Ce = (n) => {
356
+ j.current = !0, ve(""), M && M(n, "", "clear"), ae(n, g ? [] : null, "clear");
357
+ }, mt = (n) => (o) => {
358
+ if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (K !== -1 && !["ArrowLeft", "ArrowRight"].includes(o.key) && (Ze(-1), Z(-1)), o.which !== 229))
369
359
  switch (o.key) {
370
360
  case "Home":
371
- K && Be && (o.preventDefault(), re({
361
+ U && Fe && (o.preventDefault(), ee({
372
362
  diff: "start",
373
363
  direction: "next",
374
364
  reason: "keyboard",
@@ -376,7 +366,7 @@ function vo(e) {
376
366
  }));
377
367
  break;
378
368
  case "End":
379
- K && Be && (o.preventDefault(), re({
369
+ U && Fe && (o.preventDefault(), ee({
380
370
  diff: "end",
381
371
  direction: "previous",
382
372
  reason: "keyboard",
@@ -384,192 +374,192 @@ function vo(e) {
384
374
  }));
385
375
  break;
386
376
  case "PageUp":
387
- o.preventDefault(), re({
388
- diff: -Bt,
377
+ o.preventDefault(), ee({
378
+ diff: -Et,
389
379
  direction: "previous",
390
380
  reason: "keyboard",
391
381
  event: o
392
- }), q(o);
382
+ }), B(o);
393
383
  break;
394
384
  case "PageDown":
395
- o.preventDefault(), re({
396
- diff: Bt,
385
+ o.preventDefault(), ee({
386
+ diff: Et,
397
387
  direction: "next",
398
388
  reason: "keyboard",
399
389
  event: o
400
- }), q(o);
390
+ }), B(o);
401
391
  break;
402
392
  case "ArrowDown":
403
- o.preventDefault(), re({
393
+ o.preventDefault(), ee({
404
394
  diff: 1,
405
395
  direction: "next",
406
396
  reason: "keyboard",
407
397
  event: o
408
- }), q(o);
398
+ }), B(o);
409
399
  break;
410
400
  case "ArrowUp":
411
- o.preventDefault(), re({
401
+ o.preventDefault(), ee({
412
402
  diff: -1,
413
403
  direction: "previous",
414
404
  reason: "keyboard",
415
405
  event: o
416
- }), q(o);
406
+ }), B(o);
417
407
  break;
418
408
  case "ArrowLeft":
419
- !m && H ? ne(0) : st(o, "previous");
409
+ !g && V ? Z(0) : rt(o, "previous");
420
410
  break;
421
411
  case "ArrowRight":
422
- !m && H ? ne(-1) : st(o, "next");
412
+ !g && V ? Z(-1) : rt(o, "next");
423
413
  break;
424
414
  case "Enter":
425
- if (z.current !== -1 && K) {
426
- const l = w[z.current], g = p ? p(l) : !1;
427
- if (o.preventDefault(), g)
415
+ if (E.current !== -1 && U) {
416
+ const a = O[E.current], d = q ? q(a) : !1;
417
+ if (o.preventDefault(), d)
428
418
  return;
429
- le(o, l, "selectOption"), c && L.current.setSelectionRange(L.current.value.length, L.current.value.length);
430
- } else ae && P !== "" && at === !1 && (m && o.preventDefault(), le(o, P, "createOption", "freeSolo"));
419
+ te(o, a, "selectOption"), s && S.current.setSelectionRange(S.current.value.length, S.current.value.length);
420
+ } else ie && x !== "" && tt === !1 && (g && o.preventDefault(), te(o, x, "createOption", "freeSolo"));
431
421
  break;
432
422
  case "Escape":
433
- K ? (o.preventDefault(), o.stopPropagation(), Se(o, "escape")) : S && (P !== "" || m && u.length > 0 || H) && (o.preventDefault(), o.stopPropagation(), ke(o));
423
+ U ? (o.preventDefault(), o.stopPropagation(), Ie(o, "escape")) : k && (x !== "" || g && c.length > 0 || V) && (o.preventDefault(), o.stopPropagation(), Ce(o));
434
424
  break;
435
425
  case "Backspace":
436
- if (m && !Z && P === "" && u.length > 0) {
437
- const l = J === -1 ? u.length - 1 : J, g = u.slice();
438
- g.splice(l, 1), ue(o, g, "removeOption", {
439
- option: u[l]
426
+ if (g && !X && x === "" && c.length > 0) {
427
+ const a = K === -1 ? c.length - 1 : K, d = c.slice();
428
+ d.splice(a, 1), ae(o, d, "removeOption", {
429
+ option: c[a]
440
430
  });
441
431
  }
442
- !m && H && !Z && (qe(null), ne(-1));
432
+ !g && V && !X && (Be(null), Z(-1));
443
433
  break;
444
434
  case "Delete":
445
- if (m && !Z && P === "" && u.length > 0 && J !== -1) {
446
- const l = J, g = u.slice();
447
- g.splice(l, 1), ue(o, g, "removeOption", {
448
- option: u[l]
435
+ if (g && !X && x === "" && c.length > 0 && K !== -1) {
436
+ const a = K, d = c.slice();
437
+ d.splice(a, 1), ae(o, d, "removeOption", {
438
+ option: c[a]
449
439
  });
450
440
  }
451
- !m && H && !Z && (qe(null), ne(-1));
441
+ !g && V && !X && (Be(null), Z(-1));
452
442
  break;
453
443
  }
454
- }, $t = (n) => {
455
- rt(!0), Ae && !U.current && q(n);
456
- }, Te = (n) => {
457
- if (r(ee)) {
458
- L.current.focus();
444
+ }, yt = (n) => {
445
+ et(!0), Te && !j.current && B(n);
446
+ }, $e = (n) => {
447
+ if (r(Y)) {
448
+ S.current.focus();
459
449
  return;
460
450
  }
461
- rt(!1), G.current = !0, U.current = !1, T && z.current !== -1 && K ? le(n, w[z.current], "blur") : T && ae && P !== "" ? le(n, P, "blur", "freeSolo") : I && Ne(n, u, "blur"), Se(n, "blur");
462
- }, Ye = (n) => {
451
+ et(!1), H.current = !0, j.current = !1, P && E.current !== -1 && U ? te(n, O[E.current], "blur") : P && ie && x !== "" ? te(n, x, "blur", "freeSolo") : I && Re(n, c, "blur"), Ie(n, "blur");
452
+ }, Ge = (n) => {
463
453
  const o = n.target.value;
464
- P !== o && (Oe(o), Me(!1), F && F(n, o, "input")), o === "" ? !R && !m && ue(n, null, "clear") : q(n);
465
- }, Je = (n) => {
454
+ x !== o && (ve(o), De(!1), M && M(n, o, "input")), o === "" ? !N && !g && ae(n, null, "clear") : B(n);
455
+ }, Ke = (n) => {
466
456
  const o = Number(n.currentTarget.getAttribute("data-option-index"));
467
- z.current !== o && pe({
457
+ E.current !== o && re({
468
458
  event: n,
469
459
  index: o,
470
460
  reason: "mouse"
471
461
  });
472
- }, Ot = (n) => {
473
- pe({
462
+ }, ht = (n) => {
463
+ re({
474
464
  event: n,
475
465
  index: Number(n.currentTarget.getAttribute("data-option-index")),
476
466
  reason: "touch"
477
- }), Ve.current = !0;
478
- }, Pt = (n) => {
467
+ }), Ne.current = !0;
468
+ }, vt = (n) => {
479
469
  const o = Number(n.currentTarget.getAttribute("data-option-index"));
480
- le(n, w[o], "selectOption"), Ve.current = !1;
481
- }, ct = (n) => (o) => {
482
- const l = u.slice();
483
- l.splice(n, 1), ue(o, l, "removeOption", {
484
- option: u[n]
470
+ te(n, O[o], "selectOption"), Ne.current = !1;
471
+ }, at = (n) => (o) => {
472
+ const a = c.slice();
473
+ a.splice(n, 1), ae(o, a, "removeOption", {
474
+ option: c[n]
485
475
  });
486
- }, Mt = (n) => {
487
- ue(n, null, "removeOption", {
488
- option: u
476
+ }, wt = (n) => {
477
+ ae(n, null, "removeOption", {
478
+ option: c
489
479
  });
490
- }, ze = (n) => {
491
- ce ? Se(n, "toggleInput") : q(n);
492
- }, M = (n) => {
493
- n.currentTarget.contains(n.target) && n.target.getAttribute("id") !== j && n.preventDefault();
494
- }, V = (n) => {
495
- n.currentTarget.contains(n.target) && (L.current.focus(), Ge && G.current && L.current.selectionEnd - L.current.selectionStart === 0 && L.current.select(), G.current = !1);
496
- }, ge = (n) => {
497
- !A && (P === "" || !ce) && ze(n);
480
+ }, Ee = (n) => {
481
+ ne ? Ie(n, "toggleInput") : B(n);
482
+ }, A = (n) => {
483
+ n.currentTarget.contains(n.target) && n.target.getAttribute("id") !== z && n.preventDefault();
484
+ }, R = (n) => {
485
+ n.currentTarget.contains(n.target) && (S.current.focus(), He && H.current && S.current.selectionEnd - S.current.selectionStart === 0 && S.current.select(), H.current = !1);
486
+ }, ce = (n) => {
487
+ !L && (x === "" || !ne) && Ee(n);
498
488
  };
499
- let Qe = ae && P.length > 0;
500
- Qe = Qe || (m ? u.length > 0 : u !== null);
501
- let pt = w;
502
- if (se) {
489
+ let _e = ie && x.length > 0;
490
+ _e = _e || (g ? c.length > 0 : c !== null);
491
+ let lt = O;
492
+ if (oe) {
503
493
  const n = /* @__PURE__ */ new Map();
504
494
  let o = !1;
505
- pt = w.reduce((l, g, i) => {
506
- const O = se(g);
507
- 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({
495
+ lt = O.reduce((a, d, i) => {
496
+ const v = oe(d);
497
+ return a.length > 0 && a[a.length - 1].group === v ? a[a.length - 1].options.push(d) : (process.env.NODE_ENV !== "production" && (n.get(v) && !o && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${C} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), o = !0), n.set(v, !0)), a.push({
508
498
  key: i,
509
499
  index: i,
510
- group: O,
511
- options: [g]
512
- })), l;
500
+ group: v,
501
+ options: [d]
502
+ })), a;
513
503
  }, []);
514
504
  }
515
- return A && Ee && Te(), {
505
+ return L && Ae && $e(), {
516
506
  getRootProps: (n = {}) => ({
517
507
  ...n,
518
- onKeyDown: It(n),
519
- onMouseDown: M,
520
- onClick: V
508
+ onKeyDown: mt(n),
509
+ onMouseDown: A,
510
+ onClick: R
521
511
  }),
522
512
  getInputLabelProps: () => ({
523
- id: `${j}-label`,
524
- htmlFor: j
513
+ id: `${z}-label`,
514
+ htmlFor: z
525
515
  }),
526
516
  getInputProps: () => ({
527
- id: j,
528
- value: P,
529
- onBlur: Te,
530
- onFocus: $t,
531
- onChange: Ye,
532
- onMouseDown: ge,
517
+ id: z,
518
+ value: x,
519
+ onBlur: $e,
520
+ onFocus: yt,
521
+ onChange: Ge,
522
+ onMouseDown: ce,
533
523
  // if open then this is handled imperatively so don't let react override
534
524
  // only have an opinion about this when closed
535
- "aria-activedescendant": K ? "" : null,
536
- "aria-autocomplete": c ? "both" : "list",
537
- "aria-controls": lt ? `${j}-listbox` : void 0,
538
- "aria-expanded": lt,
525
+ "aria-activedescendant": U ? "" : null,
526
+ "aria-autocomplete": s ? "both" : "list",
527
+ "aria-controls": ot ? `${z}-listbox` : void 0,
528
+ "aria-expanded": ot,
539
529
  // Disable browser's suggestion that might overlap with the popup.
540
530
  // Handle autocomplete but not autofill.
541
531
  autoComplete: "off",
542
- ref: L,
532
+ ref: S,
543
533
  autoCapitalize: "none",
544
534
  spellCheck: "false",
545
535
  role: "combobox",
546
- disabled: A
536
+ disabled: L
547
537
  }),
548
538
  getClearProps: () => ({
549
539
  tabIndex: -1,
550
540
  type: "button",
551
- onClick: ke
541
+ onClick: Ce
552
542
  }),
553
543
  getItemProps: ({
554
544
  index: n = 0
555
545
  } = {}) => ({
556
- ...m && {
546
+ ...g && {
557
547
  key: n
558
548
  },
559
- ...H ? {
549
+ ...V ? {
560
550
  "data-item-index": n
561
551
  } : {
562
552
  "data-tag-index": n
563
553
  },
564
554
  tabIndex: -1,
565
- ...!Z && {
566
- onDelete: m ? ct(n) : Mt
555
+ ...!X && {
556
+ onDelete: g ? at(n) : wt
567
557
  }
568
558
  }),
569
559
  getPopupIndicatorProps: () => ({
570
560
  tabIndex: -1,
571
561
  type: "button",
572
- onClick: ze
562
+ onClick: Ee
573
563
  }),
574
564
  // deprecated
575
565
  getTagProps: ({
@@ -578,15 +568,15 @@ function vo(e) {
578
568
  key: n,
579
569
  "data-tag-index": n,
580
570
  tabIndex: -1,
581
- ...!Z && {
582
- onDelete: ct(n)
571
+ ...!X && {
572
+ onDelete: at(n)
583
573
  }
584
574
  }),
585
575
  getListboxProps: () => ({
586
576
  role: "listbox",
587
- id: `${j}-listbox`,
588
- "aria-labelledby": `${j}-label`,
589
- ref: Ct,
577
+ id: `${z}-listbox`,
578
+ "aria-labelledby": `${z}-label`,
579
+ ref: bt,
590
580
  onMouseDown: (n) => {
591
581
  n.preventDefault();
592
582
  }
@@ -595,60 +585,60 @@ function vo(e) {
595
585
  index: n,
596
586
  option: o
597
587
  }) => {
598
- const l = (m ? u : [u]).some((i) => i != null && X(o, i)), g = p ? p(o) : !1;
588
+ const a = (g ? c : [c]).some((i) => i != null && J(o, i)), d = q ? q(o) : !1;
599
589
  return {
600
- key: (W == null ? void 0 : W(o)) ?? d(o),
590
+ key: (Se == null ? void 0 : Se(o)) ?? p(o),
601
591
  tabIndex: -1,
602
592
  role: "option",
603
- id: `${j}-option-${n}`,
604
- onMouseMove: Je,
605
- onClick: Pt,
606
- onTouchStart: Ot,
593
+ id: `${z}-option-${n}`,
594
+ onMouseMove: Ke,
595
+ onClick: vt,
596
+ onTouchStart: ht,
607
597
  "data-option-index": n,
608
- "aria-disabled": g,
609
- "aria-selected": l
598
+ "aria-disabled": d,
599
+ "aria-selected": a
610
600
  };
611
601
  },
612
- id: j,
613
- inputValue: P,
614
- value: u,
615
- dirty: Qe,
616
- expanded: K && Ke,
617
- popupOpen: K,
618
- focused: Ee || J !== -1,
619
- anchorEl: Ke,
620
- setAnchorEl: Rt,
621
- focusedItem: J,
602
+ id: z,
603
+ inputValue: x,
604
+ value: c,
605
+ dirty: _e,
606
+ expanded: U && Ue,
607
+ popupOpen: U,
608
+ focused: Ae || K !== -1,
609
+ anchorEl: Ue,
610
+ setAnchorEl: St,
611
+ focusedItem: K,
622
612
  // deprecated
623
- focusedTag: J,
624
- groupedOptions: pt
613
+ focusedTag: K,
614
+ groupedOptions: lt
625
615
  };
626
616
  }
627
- function xo(e) {
628
- return wt("MuiListSubheader", e);
617
+ function ao(e) {
618
+ return Ct("MuiListSubheader", e);
629
619
  }
630
- Lt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
631
- const Co = (e) => {
620
+ $t("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
621
+ const lo = (e) => {
632
622
  const {
633
623
  classes: r,
634
- color: a,
635
- disableGutters: c,
636
- inset: h,
637
- disableSticky: T
638
- } = e, x = {
639
- root: ["root", a !== "default" && `color${v(a)}`, !c && "gutters", h && "inset", !T && "sticky"]
624
+ color: l,
625
+ disableGutters: s,
626
+ inset: b,
627
+ disableSticky: P
628
+ } = e, $ = {
629
+ root: ["root", l !== "default" && `color${y(l)}`, !s && "gutters", b && "inset", !P && "sticky"]
640
630
  };
641
- return Dt(x, xo, r);
642
- }, Io = _("li", {
631
+ return Pt($, ao, r);
632
+ }, io = W("li", {
643
633
  name: "MuiListSubheader",
644
634
  slot: "Root",
645
635
  overridesResolver: (e, r) => {
646
636
  const {
647
- ownerState: a
637
+ ownerState: l
648
638
  } = e;
649
- return [r.root, a.color !== "default" && r[`color${v(a.color)}`], !a.disableGutters && r.gutters, a.inset && r.inset, !a.disableSticky && r.sticky];
639
+ return [r.root, l.color !== "default" && r[`color${y(l.color)}`], !l.disableGutters && r.gutters, l.inset && r.inset, !l.disableSticky && r.sticky];
650
640
  }
651
- })(ve(({
641
+ })(fe(({
652
642
  theme: e
653
643
  }) => ({
654
644
  boxSizing: "border-box",
@@ -698,36 +688,36 @@ const Co = (e) => {
698
688
  backgroundColor: (e.vars || e).palette.background.paper
699
689
  }
700
690
  }]
701
- }))), ht = /* @__PURE__ */ C.forwardRef(function(r, a) {
702
- const c = At({
691
+ }))), ut = /* @__PURE__ */ h.forwardRef(function(r, l) {
692
+ const s = Ot({
703
693
  props: r,
704
694
  name: "MuiListSubheader"
705
695
  }), {
706
- className: h,
707
- color: T = "default",
708
- component: x = "li",
696
+ className: b,
697
+ color: P = "default",
698
+ component: $ = "li",
709
699
  disableGutters: I = !1,
710
- disableSticky: S = !1,
711
- inset: $ = !1,
712
- ...k
713
- } = c, R = {
714
- ...c,
715
- color: T,
716
- component: x,
700
+ disableSticky: k = !1,
701
+ inset: C = !1,
702
+ ...T
703
+ } = s, N = {
704
+ ...s,
705
+ color: P,
706
+ component: $,
717
707
  disableGutters: I,
718
- disableSticky: S,
719
- inset: $
720
- }, Y = Co(R);
721
- return /* @__PURE__ */ s(Io, {
722
- as: x,
723
- className: ye(Y.root, h),
724
- ref: a,
725
- ownerState: R,
726
- ...k
708
+ disableSticky: k,
709
+ inset: C
710
+ }, le = lo(N);
711
+ return /* @__PURE__ */ D(io, {
712
+ as: $,
713
+ className: de(le.root, b),
714
+ ref: l,
715
+ ownerState: N,
716
+ ...T
727
717
  });
728
718
  });
729
- ht && (ht.muiSkipListHighlight = !0);
730
- process.env.NODE_ENV !== "production" && (ht.propTypes = {
719
+ ut && (ut.muiSkipListHighlight = !0);
720
+ process.env.NODE_ENV !== "production" && (ut.propTypes = {
731
721
  // ┌────────────────────────────── Warning ──────────────────────────────┐
732
722
  // │ These PropTypes are generated from the TypeScript type definitions. │
733
723
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -774,67 +764,67 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
774
764
  */
775
765
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
776
766
  });
777
- const $o = so(/* @__PURE__ */ s("path", {
767
+ const so = Xt(/* @__PURE__ */ D("path", {
778
768
  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"
779
769
  }), "Cancel");
780
- function Oo(e) {
781
- return wt("MuiChip", e);
770
+ function co(e) {
771
+ return Ct("MuiChip", e);
782
772
  }
783
- 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) => {
773
+ const f = $t("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) => {
784
774
  const {
785
775
  classes: r,
786
- disabled: a,
787
- size: c,
788
- color: h,
789
- iconColor: T,
790
- onDelete: x,
776
+ disabled: l,
777
+ size: s,
778
+ color: b,
779
+ iconColor: P,
780
+ onDelete: $,
791
781
  clickable: I,
792
- variant: S
793
- } = e, $ = {
794
- root: ["root", S, a && "disabled", `size${v(c)}`, `color${v(h)}`, I && "clickable", I && `clickableColor${v(h)}`, x && "deletable", x && `deletableColor${v(h)}`, `${S}${v(h)}`],
795
- label: ["label", `label${v(c)}`],
796
- avatar: ["avatar", `avatar${v(c)}`, `avatarColor${v(h)}`],
797
- icon: ["icon", `icon${v(c)}`, `iconColor${v(T)}`],
798
- deleteIcon: ["deleteIcon", `deleteIcon${v(c)}`, `deleteIconColor${v(h)}`, `deleteIcon${v(S)}Color${v(h)}`]
782
+ variant: k
783
+ } = e, C = {
784
+ root: ["root", k, l && "disabled", `size${y(s)}`, `color${y(b)}`, I && "clickable", I && `clickableColor${y(b)}`, $ && "deletable", $ && `deletableColor${y(b)}`, `${k}${y(b)}`],
785
+ label: ["label", `label${y(s)}`],
786
+ avatar: ["avatar", `avatar${y(s)}`, `avatarColor${y(b)}`],
787
+ icon: ["icon", `icon${y(s)}`, `iconColor${y(P)}`],
788
+ deleteIcon: ["deleteIcon", `deleteIcon${y(s)}`, `deleteIconColor${y(b)}`, `deleteIcon${y(k)}Color${y(b)}`]
799
789
  };
800
- return Dt($, Oo, r);
801
- }, So = _("div", {
790
+ return Pt(C, co, r);
791
+ }, uo = W("div", {
802
792
  name: "MuiChip",
803
793
  slot: "Root",
804
794
  overridesResolver: (e, r) => {
805
795
  const {
806
- ownerState: a
796
+ ownerState: l
807
797
  } = e, {
808
- color: c,
809
- iconColor: h,
810
- clickable: T,
811
- onDelete: x,
798
+ color: s,
799
+ iconColor: b,
800
+ clickable: P,
801
+ onDelete: $,
812
802
  size: I,
813
- variant: S
814
- } = a;
803
+ variant: k
804
+ } = l;
815
805
  return [{
816
- [`& .${b.avatar}`]: r.avatar
806
+ [`& .${f.avatar}`]: r.avatar
817
807
  }, {
818
- [`& .${b.avatar}`]: r[`avatar${v(I)}`]
808
+ [`& .${f.avatar}`]: r[`avatar${y(I)}`]
819
809
  }, {
820
- [`& .${b.avatar}`]: r[`avatarColor${v(c)}`]
810
+ [`& .${f.avatar}`]: r[`avatarColor${y(s)}`]
821
811
  }, {
822
- [`& .${b.icon}`]: r.icon
812
+ [`& .${f.icon}`]: r.icon
823
813
  }, {
824
- [`& .${b.icon}`]: r[`icon${v(I)}`]
814
+ [`& .${f.icon}`]: r[`icon${y(I)}`]
825
815
  }, {
826
- [`& .${b.icon}`]: r[`iconColor${v(h)}`]
816
+ [`& .${f.icon}`]: r[`iconColor${y(b)}`]
827
817
  }, {
828
- [`& .${b.deleteIcon}`]: r.deleteIcon
818
+ [`& .${f.deleteIcon}`]: r.deleteIcon
829
819
  }, {
830
- [`& .${b.deleteIcon}`]: r[`deleteIcon${v(I)}`]
820
+ [`& .${f.deleteIcon}`]: r[`deleteIcon${y(I)}`]
831
821
  }, {
832
- [`& .${b.deleteIcon}`]: r[`deleteIconColor${v(c)}`]
822
+ [`& .${f.deleteIcon}`]: r[`deleteIconColor${y(s)}`]
833
823
  }, {
834
- [`& .${b.deleteIcon}`]: r[`deleteIcon${v(S)}Color${v(c)}`]
835
- }, r.root, r[`size${v(I)}`], r[`color${v(c)}`], T && r.clickable, T && c !== "default" && r[`clickableColor${v(c)})`], x && r.deletable, x && c !== "default" && r[`deletableColor${v(c)}`], r[S], r[`${S}${v(c)}`]];
824
+ [`& .${f.deleteIcon}`]: r[`deleteIcon${y(k)}Color${y(s)}`]
825
+ }, r.root, r[`size${y(I)}`], r[`color${y(s)}`], P && r.clickable, P && s !== "default" && r[`clickableColor${y(s)})`], $ && r.deletable, $ && s !== "default" && r[`deletableColor${y(s)}`], r[k], r[`${k}${y(s)}`]];
836
826
  }
837
- })(ve(({
827
+ })(fe(({
838
828
  theme: e
839
829
  }) => {
840
830
  const r = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
@@ -863,11 +853,11 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
863
853
  // Remove `button` padding
864
854
  verticalAlign: "middle",
865
855
  boxSizing: "border-box",
866
- [`&.${b.disabled}`]: {
856
+ [`&.${f.disabled}`]: {
867
857
  opacity: (e.vars || e).palette.action.disabledOpacity,
868
858
  pointerEvents: "none"
869
859
  },
870
- [`& .${b.avatar}`]: {
860
+ [`& .${f.avatar}`]: {
871
861
  marginLeft: 5,
872
862
  marginRight: -6,
873
863
  width: 24,
@@ -875,33 +865,33 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
875
865
  color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : r,
876
866
  fontSize: e.typography.pxToRem(12)
877
867
  },
878
- [`& .${b.avatarColorPrimary}`]: {
868
+ [`& .${f.avatarColorPrimary}`]: {
879
869
  color: (e.vars || e).palette.primary.contrastText,
880
870
  backgroundColor: (e.vars || e).palette.primary.dark
881
871
  },
882
- [`& .${b.avatarColorSecondary}`]: {
872
+ [`& .${f.avatarColorSecondary}`]: {
883
873
  color: (e.vars || e).palette.secondary.contrastText,
884
874
  backgroundColor: (e.vars || e).palette.secondary.dark
885
875
  },
886
- [`& .${b.avatarSmall}`]: {
876
+ [`& .${f.avatarSmall}`]: {
887
877
  marginLeft: 4,
888
878
  marginRight: -4,
889
879
  width: 18,
890
880
  height: 18,
891
881
  fontSize: e.typography.pxToRem(10)
892
882
  },
893
- [`& .${b.icon}`]: {
883
+ [`& .${f.icon}`]: {
894
884
  marginLeft: 5,
895
885
  marginRight: -6
896
886
  },
897
- [`& .${b.deleteIcon}`]: {
887
+ [`& .${f.deleteIcon}`]: {
898
888
  WebkitTapHighlightColor: "transparent",
899
- color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : Q(e.palette.text.primary, 0.26),
889
+ color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : _(e.palette.text.primary, 0.26),
900
890
  fontSize: 22,
901
891
  cursor: "pointer",
902
892
  margin: "0 5px 0 -6px",
903
893
  "&:hover": {
904
- color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : Q(e.palette.text.primary, 0.4)
894
+ color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : _(e.palette.text.primary, 0.4)
905
895
  }
906
896
  },
907
897
  variants: [{
@@ -910,42 +900,42 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
910
900
  },
911
901
  style: {
912
902
  height: 24,
913
- [`& .${b.icon}`]: {
903
+ [`& .${f.icon}`]: {
914
904
  fontSize: 18,
915
905
  marginLeft: 4,
916
906
  marginRight: -4
917
907
  },
918
- [`& .${b.deleteIcon}`]: {
908
+ [`& .${f.deleteIcon}`]: {
919
909
  fontSize: 16,
920
910
  marginRight: 4,
921
911
  marginLeft: -4
922
912
  }
923
913
  }
924
- }, ...Object.entries(e.palette).filter(mt(["contrastText"])).map(([a]) => ({
914
+ }, ...Object.entries(e.palette).filter(pt(["contrastText"])).map(([l]) => ({
925
915
  props: {
926
- color: a
916
+ color: l
927
917
  },
928
918
  style: {
929
- backgroundColor: (e.vars || e).palette[a].main,
930
- color: (e.vars || e).palette[a].contrastText,
931
- [`& .${b.deleteIcon}`]: {
932
- color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : Q(e.palette[a].contrastText, 0.7),
919
+ backgroundColor: (e.vars || e).palette[l].main,
920
+ color: (e.vars || e).palette[l].contrastText,
921
+ [`& .${f.deleteIcon}`]: {
922
+ color: e.vars ? `rgba(${e.vars.palette[l].contrastTextChannel} / 0.7)` : _(e.palette[l].contrastText, 0.7),
933
923
  "&:hover, &:active": {
934
- color: (e.vars || e).palette[a].contrastText
924
+ color: (e.vars || e).palette[l].contrastText
935
925
  }
936
926
  }
937
927
  }
938
928
  })), {
939
- props: (a) => a.iconColor === a.color,
929
+ props: (l) => l.iconColor === l.color,
940
930
  style: {
941
- [`& .${b.icon}`]: {
931
+ [`& .${f.icon}`]: {
942
932
  color: e.vars ? e.vars.palette.Chip.defaultIconColor : r
943
933
  }
944
934
  }
945
935
  }, {
946
- props: (a) => a.iconColor === a.color && a.color !== "default",
936
+ props: (l) => l.iconColor === l.color && l.color !== "default",
947
937
  style: {
948
- [`& .${b.icon}`]: {
938
+ [`& .${f.icon}`]: {
949
939
  color: "inherit"
950
940
  }
951
941
  }
@@ -954,18 +944,18 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
954
944
  onDelete: !0
955
945
  },
956
946
  style: {
957
- [`&.${b.focusVisible}`]: {
958
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : Q(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
947
+ [`&.${f.focusVisible}`]: {
948
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
959
949
  }
960
950
  }
961
- }, ...Object.entries(e.palette).filter(mt(["dark"])).map(([a]) => ({
951
+ }, ...Object.entries(e.palette).filter(pt(["dark"])).map(([l]) => ({
962
952
  props: {
963
- color: a,
953
+ color: l,
964
954
  onDelete: !0
965
955
  },
966
956
  style: {
967
- [`&.${b.focusVisible}`]: {
968
- background: (e.vars || e).palette[a].dark
957
+ [`&.${f.focusVisible}`]: {
958
+ background: (e.vars || e).palette[l].dark
969
959
  }
970
960
  }
971
961
  })), {
@@ -977,23 +967,23 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
977
967
  WebkitTapHighlightColor: "transparent",
978
968
  cursor: "pointer",
979
969
  "&:hover": {
980
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : Q(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
970
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
981
971
  },
982
- [`&.${b.focusVisible}`]: {
983
- backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : Q(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
972
+ [`&.${f.focusVisible}`]: {
973
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
984
974
  },
985
975
  "&:active": {
986
976
  boxShadow: (e.vars || e).shadows[1]
987
977
  }
988
978
  }
989
- }, ...Object.entries(e.palette).filter(mt(["dark"])).map(([a]) => ({
979
+ }, ...Object.entries(e.palette).filter(pt(["dark"])).map(([l]) => ({
990
980
  props: {
991
- color: a,
981
+ color: l,
992
982
  clickable: !0
993
983
  },
994
984
  style: {
995
- [`&:hover, &.${b.focusVisible}`]: {
996
- backgroundColor: (e.vars || e).palette[a].dark
985
+ [`&:hover, &.${f.focusVisible}`]: {
986
+ backgroundColor: (e.vars || e).palette[l].dark
997
987
  }
998
988
  }
999
989
  })), {
@@ -1003,64 +993,64 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1003
993
  style: {
1004
994
  backgroundColor: "transparent",
1005
995
  border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
1006
- [`&.${b.clickable}:hover`]: {
996
+ [`&.${f.clickable}:hover`]: {
1007
997
  backgroundColor: (e.vars || e).palette.action.hover
1008
998
  },
1009
- [`&.${b.focusVisible}`]: {
999
+ [`&.${f.focusVisible}`]: {
1010
1000
  backgroundColor: (e.vars || e).palette.action.focus
1011
1001
  },
1012
- [`& .${b.avatar}`]: {
1002
+ [`& .${f.avatar}`]: {
1013
1003
  marginLeft: 4
1014
1004
  },
1015
- [`& .${b.avatarSmall}`]: {
1005
+ [`& .${f.avatarSmall}`]: {
1016
1006
  marginLeft: 2
1017
1007
  },
1018
- [`& .${b.icon}`]: {
1008
+ [`& .${f.icon}`]: {
1019
1009
  marginLeft: 4
1020
1010
  },
1021
- [`& .${b.iconSmall}`]: {
1011
+ [`& .${f.iconSmall}`]: {
1022
1012
  marginLeft: 2
1023
1013
  },
1024
- [`& .${b.deleteIcon}`]: {
1014
+ [`& .${f.deleteIcon}`]: {
1025
1015
  marginRight: 5
1026
1016
  },
1027
- [`& .${b.deleteIconSmall}`]: {
1017
+ [`& .${f.deleteIconSmall}`]: {
1028
1018
  marginRight: 3
1029
1019
  }
1030
1020
  }
1031
- }, ...Object.entries(e.palette).filter(mt()).map(([a]) => ({
1021
+ }, ...Object.entries(e.palette).filter(pt()).map(([l]) => ({
1032
1022
  props: {
1033
1023
  variant: "outlined",
1034
- color: a
1024
+ color: l
1035
1025
  },
1036
1026
  style: {
1037
- color: (e.vars || e).palette[a].main,
1038
- border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : Q(e.palette[a].main, 0.7)}`,
1039
- [`&.${b.clickable}:hover`]: {
1040
- backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Q(e.palette[a].main, e.palette.action.hoverOpacity)
1027
+ color: (e.vars || e).palette[l].main,
1028
+ border: `1px solid ${e.vars ? `rgba(${e.vars.palette[l].mainChannel} / 0.7)` : _(e.palette[l].main, 0.7)}`,
1029
+ [`&.${f.clickable}:hover`]: {
1030
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : _(e.palette[l].main, e.palette.action.hoverOpacity)
1041
1031
  },
1042
- [`&.${b.focusVisible}`]: {
1043
- backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : Q(e.palette[a].main, e.palette.action.focusOpacity)
1032
+ [`&.${f.focusVisible}`]: {
1033
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / ${e.vars.palette.action.focusOpacity})` : _(e.palette[l].main, e.palette.action.focusOpacity)
1044
1034
  },
1045
- [`& .${b.deleteIcon}`]: {
1046
- color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : Q(e.palette[a].main, 0.7),
1035
+ [`& .${f.deleteIcon}`]: {
1036
+ color: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / 0.7)` : _(e.palette[l].main, 0.7),
1047
1037
  "&:hover, &:active": {
1048
- color: (e.vars || e).palette[a].main
1038
+ color: (e.vars || e).palette[l].main
1049
1039
  }
1050
1040
  }
1051
1041
  }
1052
1042
  }))]
1053
1043
  };
1054
- })), ko = _("span", {
1044
+ })), fo = W("span", {
1055
1045
  name: "MuiChip",
1056
1046
  slot: "Label",
1057
1047
  overridesResolver: (e, r) => {
1058
1048
  const {
1059
- ownerState: a
1049
+ ownerState: l
1060
1050
  } = e, {
1061
- size: c
1062
- } = a;
1063
- return [r.label, r[`label${v(c)}`]];
1051
+ size: s
1052
+ } = l;
1053
+ return [r.label, r[`label${y(s)}`]];
1064
1054
  }
1065
1055
  })({
1066
1056
  overflow: "hidden",
@@ -1095,124 +1085,124 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
1095
1085
  }
1096
1086
  }]
1097
1087
  });
1098
- function Gt(e) {
1088
+ function Vt(e) {
1099
1089
  return e.key === "Backspace" || e.key === "Delete";
1100
1090
  }
1101
- const Qt = /* @__PURE__ */ C.forwardRef(function(r, a) {
1102
- const c = At({
1091
+ const Bt = /* @__PURE__ */ h.forwardRef(function(r, l) {
1092
+ const s = Ot({
1103
1093
  props: r,
1104
1094
  name: "MuiChip"
1105
1095
  }), {
1106
- avatar: h,
1107
- className: T,
1108
- clickable: x,
1096
+ avatar: b,
1097
+ className: P,
1098
+ clickable: $,
1109
1099
  color: I = "default",
1110
- component: S,
1111
- deleteIcon: $,
1112
- disabled: k = !1,
1113
- icon: R,
1114
- label: Y,
1115
- onClick: A,
1116
- onDelete: N,
1117
- onKeyDown: ie,
1118
- onKeyUp: te,
1119
- size: de = "medium",
1120
- variant: ae = "filled",
1121
- tabIndex: p,
1122
- skipFocusWhenDisabled: W = !1,
1100
+ component: k,
1101
+ deleteIcon: C,
1102
+ disabled: T = !1,
1103
+ icon: N,
1104
+ label: le,
1105
+ onClick: L,
1106
+ onDelete: G,
1107
+ onKeyDown: ge,
1108
+ onKeyUp: Ve,
1109
+ size: Pe = "medium",
1110
+ variant: ie = "filled",
1111
+ tabIndex: q,
1112
+ skipFocusWhenDisabled: Se = !1,
1123
1113
  // TODO v6: Rename to `focusableWhenDisabled`.
1124
- slots: je = {},
1125
- slotProps: se = {},
1126
- ...Be
1127
- } = c, ot = C.useRef(null), xe = co(ot, a), Ce = (d) => {
1128
- d.stopPropagation(), N && N(d);
1129
- }, X = (d) => {
1130
- d.currentTarget === d.target && Gt(d) && d.preventDefault(), ie && ie(d);
1131
- }, m = (d) => {
1132
- d.currentTarget === d.target && N && Gt(d) && N(d), te && te(d);
1133
- }, Ie = x !== !1 && A ? !0 : x, $e = Ie || N ? Ht : S || "div", fe = {
1134
- ...c,
1135
- component: $e,
1136
- disabled: k,
1137
- size: de,
1114
+ slots: ze = {},
1115
+ slotProps: oe = {},
1116
+ ...Fe
1117
+ } = s, Qe = h.useRef(null), be = Yt(Qe, l), me = (p) => {
1118
+ p.stopPropagation(), G && G(p);
1119
+ }, J = (p) => {
1120
+ p.currentTarget === p.target && Vt(p) && p.preventDefault(), ge && ge(p);
1121
+ }, g = (p) => {
1122
+ p.currentTarget === p.target && G && Vt(p) && G(p), Ve && Ve(p);
1123
+ }, ye = $ !== !1 && L ? !0 : $, he = ye || G ? Rt : k || "div", se = {
1124
+ ...s,
1125
+ component: he,
1126
+ disabled: T,
1127
+ size: Pe,
1138
1128
  color: I,
1139
- iconColor: /* @__PURE__ */ C.isValidElement(R) && R.props.color || I,
1140
- onDelete: !!N,
1141
- clickable: Ie,
1142
- variant: ae
1143
- }, F = Po(fe), Le = $e === Ht ? {
1144
- component: S || "div",
1145
- focusVisibleClassName: F.focusVisible,
1146
- ...N && {
1129
+ iconColor: /* @__PURE__ */ h.isValidElement(N) && N.props.color || I,
1130
+ onDelete: !!G,
1131
+ clickable: ye,
1132
+ variant: ie
1133
+ }, M = po(se), ke = he === Rt ? {
1134
+ component: k || "div",
1135
+ focusVisibleClassName: M.focusVisible,
1136
+ ...G && {
1147
1137
  disableRipple: !0
1148
1138
  }
1149
1139
  } : {};
1150
- let Ue = null;
1151
- N && (Ue = $ && /* @__PURE__ */ C.isValidElement($) ? /* @__PURE__ */ C.cloneElement($, {
1152
- className: ye($.props.className, F.deleteIcon),
1153
- onClick: Ce
1154
- }) : /* @__PURE__ */ s($o, {
1155
- className: F.deleteIcon,
1156
- onClick: Ce
1140
+ let je = null;
1141
+ G && (je = C && /* @__PURE__ */ h.isValidElement(C) ? /* @__PURE__ */ h.cloneElement(C, {
1142
+ className: de(C.props.className, M.deleteIcon),
1143
+ onClick: me
1144
+ }) : /* @__PURE__ */ D(so, {
1145
+ className: M.deleteIcon,
1146
+ onClick: me
1157
1147
  }));
1158
- let Ae = null;
1159
- h && /* @__PURE__ */ C.isValidElement(h) && (Ae = /* @__PURE__ */ C.cloneElement(h, {
1160
- className: ye(F.avatar, h.props.className)
1148
+ let Te = null;
1149
+ b && /* @__PURE__ */ h.isValidElement(b) && (Te = /* @__PURE__ */ h.cloneElement(b, {
1150
+ className: de(M.avatar, b.props.className)
1161
1151
  }));
1162
- let De = null;
1163
- R && /* @__PURE__ */ C.isValidElement(R) && (De = /* @__PURE__ */ C.cloneElement(R, {
1164
- className: ye(F.icon, R.props.className)
1165
- })), 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.");
1166
- const Z = {
1167
- slots: je,
1168
- slotProps: se
1169
- }, [H, Ge] = tt("root", {
1170
- elementType: So,
1152
+ let we = null;
1153
+ N && /* @__PURE__ */ h.isValidElement(N) && (we = /* @__PURE__ */ h.cloneElement(N, {
1154
+ className: de(M.icon, N.props.className)
1155
+ })), process.env.NODE_ENV !== "production" && Te && we && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");
1156
+ const X = {
1157
+ slots: ze,
1158
+ slotProps: oe
1159
+ }, [V, He] = Ye("root", {
1160
+ elementType: uo,
1171
1161
  externalForwardedProps: {
1172
- ...Z,
1173
- ...Be
1162
+ ...X,
1163
+ ...Fe
1174
1164
  },
1175
- ownerState: fe,
1165
+ ownerState: se,
1176
1166
  // 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.
1177
1167
  shouldForwardComponentProp: !0,
1178
- ref: xe,
1179
- className: ye(F.root, T),
1168
+ ref: be,
1169
+ className: de(M.root, P),
1180
1170
  additionalProps: {
1181
- disabled: Ie && k ? !0 : void 0,
1182
- tabIndex: W && k ? -1 : p,
1183
- ...Le
1171
+ disabled: ye && T ? !0 : void 0,
1172
+ tabIndex: Se && T ? -1 : q,
1173
+ ...ke
1184
1174
  },
1185
- getSlotProps: (d) => ({
1186
- ...d,
1187
- onClick: (U) => {
1188
- var G;
1189
- (G = d.onClick) == null || G.call(d, U), A == null || A(U);
1175
+ getSlotProps: (p) => ({
1176
+ ...p,
1177
+ onClick: (j) => {
1178
+ var H;
1179
+ (H = p.onClick) == null || H.call(p, j), L == null || L(j);
1190
1180
  },
1191
- onKeyDown: (U) => {
1192
- var G;
1193
- (G = d.onKeyDown) == null || G.call(d, U), X == null || X(U);
1181
+ onKeyDown: (j) => {
1182
+ var H;
1183
+ (H = p.onKeyDown) == null || H.call(p, j), J == null || J(j);
1194
1184
  },
1195
- onKeyUp: (U) => {
1196
- var G;
1197
- (G = d.onKeyUp) == null || G.call(d, U), m == null || m(U);
1185
+ onKeyUp: (j) => {
1186
+ var H;
1187
+ (H = p.onKeyUp) == null || H.call(p, j), g == null || g(j);
1198
1188
  }
1199
1189
  })
1200
- }), [Re, j] = tt("label", {
1201
- elementType: ko,
1202
- externalForwardedProps: Z,
1203
- ownerState: fe,
1204
- className: F.label
1190
+ }), [Le, z] = Ye("label", {
1191
+ elementType: fo,
1192
+ externalForwardedProps: X,
1193
+ ownerState: se,
1194
+ className: M.label
1205
1195
  });
1206
- return /* @__PURE__ */ E(H, {
1207
- as: $e,
1208
- ...Ge,
1209
- children: [Ae || De, /* @__PURE__ */ s(Re, {
1210
- ...j,
1211
- children: Y
1212
- }), Ue]
1196
+ return /* @__PURE__ */ Xe(V, {
1197
+ as: he,
1198
+ ...He,
1199
+ children: [Te || we, /* @__PURE__ */ D(Le, {
1200
+ ...z,
1201
+ children: le
1202
+ }), je]
1213
1203
  });
1214
1204
  });
1215
- process.env.NODE_ENV !== "production" && (Qt.propTypes = {
1205
+ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
1216
1206
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1217
1207
  // │ These PropTypes are generated from the TypeScript type definitions. │
1218
1208
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1225,7 +1215,7 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
1225
1215
  * This prop isn't supported.
1226
1216
  * Use the `component` prop if you need to change the children structure.
1227
1217
  */
1228
- children: fo,
1218
+ children: Qt,
1229
1219
  /**
1230
1220
  * Override or extend the styles applied to the component.
1231
1221
  */
@@ -1330,32 +1320,32 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
1330
1320
  */
1331
1321
  variant: t.oneOfType([t.oneOf(["filled", "outlined"]), t.string])
1332
1322
  });
1333
- function To(e) {
1334
- return wt("MuiAutocomplete", e);
1323
+ function go(e) {
1324
+ return Ct("MuiAutocomplete", e);
1335
1325
  }
1336
- 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"]);
1337
- var Kt, qt;
1338
- const wo = (e) => {
1326
+ const u = $t("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"]);
1327
+ var zt, Ft;
1328
+ const bo = (e) => {
1339
1329
  const {
1340
1330
  classes: r,
1341
- disablePortal: a,
1342
- expanded: c,
1343
- focused: h,
1344
- fullWidth: T,
1345
- hasClearIcon: x,
1331
+ disablePortal: l,
1332
+ expanded: s,
1333
+ focused: b,
1334
+ fullWidth: P,
1335
+ hasClearIcon: $,
1346
1336
  hasPopupIcon: I,
1347
- inputFocused: S,
1348
- popupOpen: $,
1349
- size: k
1350
- } = e, R = {
1351
- root: ["root", c && "expanded", h && "focused", T && "fullWidth", x && "hasClearIcon", I && "hasPopupIcon"],
1337
+ inputFocused: k,
1338
+ popupOpen: C,
1339
+ size: T
1340
+ } = e, N = {
1341
+ root: ["root", s && "expanded", b && "focused", P && "fullWidth", $ && "hasClearIcon", I && "hasPopupIcon"],
1352
1342
  inputRoot: ["inputRoot"],
1353
- input: ["input", S && "inputFocused"],
1354
- tag: ["tag", `tagSize${v(k)}`],
1343
+ input: ["input", k && "inputFocused"],
1344
+ tag: ["tag", `tagSize${y(T)}`],
1355
1345
  endAdornment: ["endAdornment"],
1356
1346
  clearIndicator: ["clearIndicator"],
1357
- popupIndicator: ["popupIndicator", $ && "popupIndicatorOpen"],
1358
- popper: ["popper", a && "popperDisablePortal"],
1347
+ popupIndicator: ["popupIndicator", C && "popupIndicatorOpen"],
1348
+ popper: ["popper", l && "popperDisablePortal"],
1359
1349
  paper: ["paper"],
1360
1350
  listbox: ["listbox"],
1361
1351
  loading: ["loading"],
@@ -1364,134 +1354,134 @@ const wo = (e) => {
1364
1354
  groupLabel: ["groupLabel"],
1365
1355
  groupUl: ["groupUl"]
1366
1356
  };
1367
- return Dt(R, To, r);
1368
- }, Lo = _("div", {
1357
+ return Pt(N, go, r);
1358
+ }, mo = W("div", {
1369
1359
  name: "MuiAutocomplete",
1370
1360
  slot: "Root",
1371
1361
  overridesResolver: (e, r) => {
1372
1362
  const {
1373
- ownerState: a
1363
+ ownerState: l
1374
1364
  } = e, {
1375
- fullWidth: c,
1376
- hasClearIcon: h,
1377
- hasPopupIcon: T,
1378
- inputFocused: x,
1365
+ fullWidth: s,
1366
+ hasClearIcon: b,
1367
+ hasPopupIcon: P,
1368
+ inputFocused: $,
1379
1369
  size: I
1380
- } = a;
1370
+ } = l;
1381
1371
  return [{
1382
- [`& .${f.tag}`]: r.tag
1372
+ [`& .${u.tag}`]: r.tag
1383
1373
  }, {
1384
- [`& .${f.tag}`]: r[`tagSize${v(I)}`]
1374
+ [`& .${u.tag}`]: r[`tagSize${y(I)}`]
1385
1375
  }, {
1386
- [`& .${f.inputRoot}`]: r.inputRoot
1376
+ [`& .${u.inputRoot}`]: r.inputRoot
1387
1377
  }, {
1388
- [`& .${f.input}`]: r.input
1378
+ [`& .${u.input}`]: r.input
1389
1379
  }, {
1390
- [`& .${f.input}`]: x && r.inputFocused
1391
- }, r.root, c && r.fullWidth, T && r.hasPopupIcon, h && r.hasClearIcon];
1380
+ [`& .${u.input}`]: $ && r.inputFocused
1381
+ }, r.root, s && r.fullWidth, P && r.hasPopupIcon, b && r.hasClearIcon];
1392
1382
  }
1393
1383
  })({
1394
- [`&.${f.focused} .${f.clearIndicator}`]: {
1384
+ [`&.${u.focused} .${u.clearIndicator}`]: {
1395
1385
  visibility: "visible"
1396
1386
  },
1397
1387
  /* Avoid double tap issue on iOS */
1398
1388
  "@media (pointer: fine)": {
1399
- [`&:hover .${f.clearIndicator}`]: {
1389
+ [`&:hover .${u.clearIndicator}`]: {
1400
1390
  visibility: "visible"
1401
1391
  }
1402
1392
  },
1403
- [`& .${f.tag}`]: {
1393
+ [`& .${u.tag}`]: {
1404
1394
  margin: 3,
1405
1395
  maxWidth: "calc(100% - 6px)"
1406
1396
  },
1407
- [`& .${f.inputRoot}`]: {
1408
- [`.${f.hasPopupIcon}&, .${f.hasClearIcon}&`]: {
1397
+ [`& .${u.inputRoot}`]: {
1398
+ [`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
1409
1399
  paddingRight: 30
1410
1400
  },
1411
- [`.${f.hasPopupIcon}.${f.hasClearIcon}&`]: {
1401
+ [`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
1412
1402
  paddingRight: 56
1413
1403
  },
1414
- [`& .${f.input}`]: {
1404
+ [`& .${u.input}`]: {
1415
1405
  width: 0,
1416
1406
  minWidth: 30
1417
1407
  }
1418
1408
  },
1419
- [`& .${kt.root}`]: {
1409
+ [`& .${xt.root}`]: {
1420
1410
  paddingBottom: 1,
1421
1411
  "& .MuiInput-input": {
1422
1412
  padding: "4px 4px 4px 0px"
1423
1413
  }
1424
1414
  },
1425
- [`& .${kt.root}.${we.sizeSmall}`]: {
1426
- [`& .${kt.input}`]: {
1415
+ [`& .${xt.root}.${Oe.sizeSmall}`]: {
1416
+ [`& .${xt.input}`]: {
1427
1417
  padding: "2px 4px 3px 0"
1428
1418
  }
1429
1419
  },
1430
- [`& .${Ft.root}`]: {
1420
+ [`& .${At.root}`]: {
1431
1421
  padding: 9,
1432
- [`.${f.hasPopupIcon}&, .${f.hasClearIcon}&`]: {
1422
+ [`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
1433
1423
  paddingRight: 39
1434
1424
  },
1435
- [`.${f.hasPopupIcon}.${f.hasClearIcon}&`]: {
1425
+ [`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
1436
1426
  paddingRight: 65
1437
1427
  },
1438
- [`& .${f.input}`]: {
1428
+ [`& .${u.input}`]: {
1439
1429
  padding: "7.5px 4px 7.5px 5px"
1440
1430
  },
1441
- [`& .${f.endAdornment}`]: {
1431
+ [`& .${u.endAdornment}`]: {
1442
1432
  right: 9
1443
1433
  }
1444
1434
  },
1445
- [`& .${Ft.root}.${we.sizeSmall}`]: {
1435
+ [`& .${At.root}.${Oe.sizeSmall}`]: {
1446
1436
  // Don't specify paddingRight, as it overrides the default value set when there is only
1447
1437
  // one of the popup or clear icon as the specificity is equal so the latter one wins
1448
1438
  paddingTop: 6,
1449
1439
  paddingBottom: 6,
1450
1440
  paddingLeft: 6,
1451
- [`& .${f.input}`]: {
1441
+ [`& .${u.input}`]: {
1452
1442
  padding: "2.5px 4px 2.5px 8px"
1453
1443
  }
1454
1444
  },
1455
- [`& .${We.root}`]: {
1445
+ [`& .${Me.root}`]: {
1456
1446
  paddingTop: 19,
1457
1447
  paddingLeft: 8,
1458
- [`.${f.hasPopupIcon}&, .${f.hasClearIcon}&`]: {
1448
+ [`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
1459
1449
  paddingRight: 39
1460
1450
  },
1461
- [`.${f.hasPopupIcon}.${f.hasClearIcon}&`]: {
1451
+ [`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
1462
1452
  paddingRight: 65
1463
1453
  },
1464
- [`& .${We.input}`]: {
1454
+ [`& .${Me.input}`]: {
1465
1455
  padding: "7px 4px"
1466
1456
  },
1467
- [`& .${f.endAdornment}`]: {
1457
+ [`& .${u.endAdornment}`]: {
1468
1458
  right: 9
1469
1459
  }
1470
1460
  },
1471
- [`& .${We.root}.${we.sizeSmall}`]: {
1461
+ [`& .${Me.root}.${Oe.sizeSmall}`]: {
1472
1462
  paddingBottom: 1,
1473
- [`& .${We.input}`]: {
1463
+ [`& .${Me.input}`]: {
1474
1464
  padding: "2.5px 4px"
1475
1465
  }
1476
1466
  },
1477
- [`& .${we.hiddenLabel}`]: {
1467
+ [`& .${Oe.hiddenLabel}`]: {
1478
1468
  paddingTop: 8
1479
1469
  },
1480
- [`& .${We.root}.${we.hiddenLabel}`]: {
1470
+ [`& .${Me.root}.${Oe.hiddenLabel}`]: {
1481
1471
  paddingTop: 0,
1482
1472
  paddingBottom: 0,
1483
- [`& .${f.input}`]: {
1473
+ [`& .${u.input}`]: {
1484
1474
  paddingTop: 16,
1485
1475
  paddingBottom: 17
1486
1476
  }
1487
1477
  },
1488
- [`& .${We.root}.${we.hiddenLabel}.${we.sizeSmall}`]: {
1489
- [`& .${f.input}`]: {
1478
+ [`& .${Me.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]: {
1479
+ [`& .${u.input}`]: {
1490
1480
  paddingTop: 8,
1491
1481
  paddingBottom: 9
1492
1482
  }
1493
1483
  },
1494
- [`& .${f.input}`]: {
1484
+ [`& .${u.input}`]: {
1495
1485
  flexGrow: 1,
1496
1486
  textOverflow: "ellipsis",
1497
1487
  opacity: 0
@@ -1508,7 +1498,7 @@ const wo = (e) => {
1508
1498
  size: "small"
1509
1499
  },
1510
1500
  style: {
1511
- [`& .${f.tag}`]: {
1501
+ [`& .${u.tag}`]: {
1512
1502
  margin: 2,
1513
1503
  maxWidth: "calc(100% - 4px)"
1514
1504
  }
@@ -1518,7 +1508,7 @@ const wo = (e) => {
1518
1508
  inputFocused: !0
1519
1509
  },
1520
1510
  style: {
1521
- [`& .${f.input}`]: {
1511
+ [`& .${u.input}`]: {
1522
1512
  opacity: 1
1523
1513
  }
1524
1514
  }
@@ -1527,12 +1517,12 @@ const wo = (e) => {
1527
1517
  multiple: !0
1528
1518
  },
1529
1519
  style: {
1530
- [`& .${f.inputRoot}`]: {
1520
+ [`& .${u.inputRoot}`]: {
1531
1521
  flexWrap: "wrap"
1532
1522
  }
1533
1523
  }
1534
1524
  }]
1535
- }), Ao = _("div", {
1525
+ }), yo = W("div", {
1536
1526
  name: "MuiAutocomplete",
1537
1527
  slot: "EndAdornment"
1538
1528
  })({
@@ -1541,21 +1531,21 @@ const wo = (e) => {
1541
1531
  right: 0,
1542
1532
  top: "50%",
1543
1533
  transform: "translate(0, -50%)"
1544
- }), Do = _(_t, {
1534
+ }), ho = W(jt, {
1545
1535
  name: "MuiAutocomplete",
1546
1536
  slot: "ClearIndicator"
1547
1537
  })({
1548
1538
  marginRight: -2,
1549
1539
  padding: 4,
1550
1540
  visibility: "hidden"
1551
- }), Ro = _(_t, {
1541
+ }), vo = W(jt, {
1552
1542
  name: "MuiAutocomplete",
1553
1543
  slot: "PopupIndicator",
1554
1544
  overridesResolver: (e, r) => {
1555
1545
  const {
1556
- ownerState: a
1546
+ ownerState: l
1557
1547
  } = e;
1558
- return [r.popupIndicator, a.popupOpen && r.popupIndicatorOpen];
1548
+ return [r.popupIndicator, l.popupOpen && r.popupIndicatorOpen];
1559
1549
  }
1560
1550
  })({
1561
1551
  padding: 2,
@@ -1568,18 +1558,18 @@ const wo = (e) => {
1568
1558
  transform: "rotate(180deg)"
1569
1559
  }
1570
1560
  }]
1571
- }), Eo = _(Yt, {
1561
+ }), xo = W(Ht, {
1572
1562
  name: "MuiAutocomplete",
1573
1563
  slot: "Popper",
1574
1564
  overridesResolver: (e, r) => {
1575
1565
  const {
1576
- ownerState: a
1566
+ ownerState: l
1577
1567
  } = e;
1578
1568
  return [{
1579
- [`& .${f.option}`]: r.option
1580
- }, r.popper, a.disablePortal && r.popperDisablePortal];
1569
+ [`& .${u.option}`]: r.option
1570
+ }, r.popper, l.disablePortal && r.popperDisablePortal];
1581
1571
  }
1582
- })(ve(({
1572
+ })(fe(({
1583
1573
  theme: e
1584
1574
  }) => ({
1585
1575
  zIndex: (e.vars || e).zIndex.modal,
@@ -1591,34 +1581,34 @@ const wo = (e) => {
1591
1581
  position: "absolute"
1592
1582
  }
1593
1583
  }]
1594
- }))), No = _(Jt, {
1584
+ }))), Io = W(Ut, {
1595
1585
  name: "MuiAutocomplete",
1596
1586
  slot: "Paper"
1597
- })(ve(({
1587
+ })(fe(({
1598
1588
  theme: e
1599
1589
  }) => ({
1600
1590
  ...e.typography.body1,
1601
1591
  overflow: "auto"
1602
- }))), Mo = _("div", {
1592
+ }))), Co = W("div", {
1603
1593
  name: "MuiAutocomplete",
1604
1594
  slot: "Loading"
1605
- })(ve(({
1595
+ })(fe(({
1606
1596
  theme: e
1607
1597
  }) => ({
1608
1598
  color: (e.vars || e).palette.text.secondary,
1609
1599
  padding: "14px 16px"
1610
- }))), Vo = _("div", {
1600
+ }))), $o = W("div", {
1611
1601
  name: "MuiAutocomplete",
1612
1602
  slot: "NoOptions"
1613
- })(ve(({
1603
+ })(fe(({
1614
1604
  theme: e
1615
1605
  }) => ({
1616
1606
  color: (e.vars || e).palette.text.secondary,
1617
1607
  padding: "14px 16px"
1618
- }))), zo = _("ul", {
1608
+ }))), Oo = W("ul", {
1619
1609
  name: "MuiAutocomplete",
1620
1610
  slot: "Listbox"
1621
- })(ve(({
1611
+ })(fe(({
1622
1612
  theme: e
1623
1613
  }) => ({
1624
1614
  listStyle: "none",
@@ -1627,7 +1617,7 @@ const wo = (e) => {
1627
1617
  maxHeight: "40vh",
1628
1618
  overflow: "auto",
1629
1619
  position: "relative",
1630
- [`& .${f.option}`]: {
1620
+ [`& .${u.option}`]: {
1631
1621
  minHeight: 48,
1632
1622
  display: "flex",
1633
1623
  overflow: "hidden",
@@ -1644,7 +1634,7 @@ const wo = (e) => {
1644
1634
  [e.breakpoints.up("sm")]: {
1645
1635
  minHeight: "auto"
1646
1636
  },
1647
- [`&.${f.focused}`]: {
1637
+ [`&.${u.focused}`]: {
1648
1638
  backgroundColor: (e.vars || e).palette.action.hover,
1649
1639
  // Reset on touch devices, it doesn't add specificity
1650
1640
  "@media (hover: none)": {
@@ -1655,333 +1645,333 @@ const wo = (e) => {
1655
1645
  opacity: (e.vars || e).palette.action.disabledOpacity,
1656
1646
  pointerEvents: "none"
1657
1647
  },
1658
- [`&.${f.focusVisible}`]: {
1648
+ [`&.${u.focusVisible}`]: {
1659
1649
  backgroundColor: (e.vars || e).palette.action.focus
1660
1650
  },
1661
1651
  '&[aria-selected="true"]': {
1662
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : Q(e.palette.primary.main, e.palette.action.selectedOpacity),
1663
- [`&.${f.focused}`]: {
1664
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : Q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1652
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : _(e.palette.primary.main, e.palette.action.selectedOpacity),
1653
+ [`&.${u.focused}`]: {
1654
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : _(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1665
1655
  // Reset on touch devices, it doesn't add specificity
1666
1656
  "@media (hover: none)": {
1667
1657
  backgroundColor: (e.vars || e).palette.action.selected
1668
1658
  }
1669
1659
  },
1670
- [`&.${f.focusVisible}`]: {
1671
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : Q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1660
+ [`&.${u.focusVisible}`]: {
1661
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1672
1662
  }
1673
1663
  }
1674
1664
  }
1675
- }))), Fo = _(ht, {
1665
+ }))), Po = W(ut, {
1676
1666
  name: "MuiAutocomplete",
1677
1667
  slot: "GroupLabel"
1678
- })(ve(({
1668
+ })(fe(({
1679
1669
  theme: e
1680
1670
  }) => ({
1681
1671
  backgroundColor: (e.vars || e).palette.background.paper,
1682
1672
  top: -8
1683
- }))), Ho = _("ul", {
1673
+ }))), So = W("ul", {
1684
1674
  name: "MuiAutocomplete",
1685
1675
  slot: "GroupUl"
1686
1676
  })({
1687
1677
  padding: 0,
1688
- [`& .${f.option}`]: {
1678
+ [`& .${u.option}`]: {
1689
1679
  paddingLeft: 24
1690
1680
  }
1691
- }), Xt = /* @__PURE__ */ C.forwardRef(function(r, a) {
1692
- const c = At({
1681
+ }), ko = /* @__PURE__ */ h.forwardRef(function(r, l) {
1682
+ const s = Ot({
1693
1683
  props: r,
1694
1684
  name: "MuiAutocomplete"
1695
1685
  }), {
1696
- autoComplete: h = !1,
1697
- autoHighlight: T = !1,
1698
- autoSelect: x = !1,
1686
+ autoComplete: b = !1,
1687
+ autoHighlight: P = !1,
1688
+ autoSelect: $ = !1,
1699
1689
  blurOnSelect: I = !1,
1700
- ChipProps: S,
1701
- className: $,
1702
- clearIcon: k = Kt || (Kt = /* @__PURE__ */ s(ro, {
1690
+ ChipProps: k,
1691
+ className: C,
1692
+ clearIcon: T = zt || (zt = /* @__PURE__ */ D(Kt, {
1703
1693
  fontSize: "small"
1704
1694
  })),
1705
- clearOnBlur: R = !c.freeSolo,
1706
- clearOnEscape: Y = !1,
1707
- clearText: A = "Clear",
1708
- closeText: N = "Close",
1709
- componentsProps: ie,
1710
- defaultValue: te = c.multiple ? [] : null,
1711
- disableClearable: de = !1,
1712
- disableCloseOnSelect: ae = !1,
1713
- disabled: p = !1,
1714
- disabledItemsFocusable: W = !1,
1715
- disableListWrap: je = !1,
1716
- disablePortal: se = !1,
1717
- filterOptions: Be,
1718
- filterSelectedOptions: ot = !1,
1719
- forcePopupIcon: xe = "auto",
1720
- freeSolo: Ce = !1,
1721
- fullWidth: X = !1,
1722
- getLimitTagsText: m = (y) => `+${y}`,
1723
- getOptionDisabled: Ie,
1724
- getOptionKey: $e,
1725
- getOptionLabel: fe,
1726
- isOptionEqualToValue: F,
1727
- groupBy: Le,
1728
- handleHomeEndKeys: Ue = !c.freeSolo,
1729
- id: Ae,
1730
- includeInputInList: De = !1,
1731
- inputValue: Z,
1732
- limitTags: H = -1,
1733
- ListboxComponent: Ge,
1734
- ListboxProps: Re,
1735
- loading: j = !1,
1736
- loadingText: d = "Loading…",
1737
- multiple: U = !1,
1738
- noOptionsText: G = "No options",
1739
- onChange: L,
1740
- onClose: ee,
1741
- onHighlightChange: Ke,
1742
- onInputChange: Rt,
1743
- onOpen: J,
1744
- open: nt,
1745
- openOnFocus: yt = !1,
1746
- openText: z = "Open",
1747
- options: Et,
1748
- PaperComponent: u,
1749
- PopperComponent: qe,
1750
- popupIcon: P = qt || (qt = /* @__PURE__ */ s(no, {})),
1751
- readOnly: Oe = !1,
1752
- renderGroup: Ee,
1753
- renderInput: rt,
1754
- renderOption: Ne,
1755
- renderTags: ce,
1756
- renderValue: Pe,
1757
- selectOnFocus: Nt = !c.freeSolo,
1758
- size: Me = "medium",
1759
- slots: at = {},
1760
- slotProps: K = {},
1761
- value: w,
1762
- ...oe
1763
- } = c, {
1764
- getRootProps: lt,
1765
- getInputProps: ne,
1766
- getInputLabelProps: vt,
1767
- getPopupIndicatorProps: pe,
1768
- getClearProps: re,
1769
- getItemProps: xt,
1770
- getListboxProps: _e,
1771
- getOptionProps: Ct,
1772
- value: q,
1773
- dirty: Se,
1774
- expanded: ue,
1775
- id: Ve,
1776
- popupOpen: le,
1777
- focused: it,
1778
- focusedItem: st,
1779
- anchorEl: ke,
1780
- setAnchorEl: It,
1781
- inputValue: $t,
1782
- groupedOptions: Te
1783
- } = vo({
1784
- ...c,
1695
+ clearOnBlur: N = !s.freeSolo,
1696
+ clearOnEscape: le = !1,
1697
+ clearText: L = "Clear",
1698
+ closeText: G = "Close",
1699
+ componentsProps: ge,
1700
+ defaultValue: Ve = s.multiple ? [] : null,
1701
+ disableClearable: Pe = !1,
1702
+ disableCloseOnSelect: ie = !1,
1703
+ disabled: q = !1,
1704
+ disabledItemsFocusable: Se = !1,
1705
+ disableListWrap: ze = !1,
1706
+ disablePortal: oe = !1,
1707
+ filterOptions: Fe,
1708
+ filterSelectedOptions: Qe = !1,
1709
+ forcePopupIcon: be = "auto",
1710
+ freeSolo: me = !1,
1711
+ fullWidth: J = !1,
1712
+ getLimitTagsText: g = (m) => `+${m}`,
1713
+ getOptionDisabled: ye,
1714
+ getOptionKey: he,
1715
+ getOptionLabel: se,
1716
+ isOptionEqualToValue: M,
1717
+ groupBy: ke,
1718
+ handleHomeEndKeys: je = !s.freeSolo,
1719
+ id: Te,
1720
+ includeInputInList: we = !1,
1721
+ inputValue: X,
1722
+ limitTags: V = -1,
1723
+ ListboxComponent: He,
1724
+ ListboxProps: Le,
1725
+ loading: z = !1,
1726
+ loadingText: p = "Loading…",
1727
+ multiple: j = !1,
1728
+ noOptionsText: H = "No options",
1729
+ onChange: S,
1730
+ onClose: Y,
1731
+ onHighlightChange: Ue,
1732
+ onInputChange: St,
1733
+ onOpen: K,
1734
+ open: Ze,
1735
+ openOnFocus: dt = !1,
1736
+ openText: E = "Open",
1737
+ options: kt,
1738
+ PaperComponent: c,
1739
+ PopperComponent: Be,
1740
+ popupIcon: x = Ft || (Ft = /* @__PURE__ */ D(Gt, {})),
1741
+ readOnly: ve = !1,
1742
+ renderGroup: Ae,
1743
+ renderInput: et,
1744
+ renderOption: Re,
1745
+ renderTags: ne,
1746
+ renderValue: xe,
1747
+ selectOnFocus: Tt = !s.freeSolo,
1748
+ size: De = "medium",
1749
+ slots: tt = {},
1750
+ slotProps: U = {},
1751
+ value: O,
1752
+ ...Q
1753
+ } = s, {
1754
+ getRootProps: ot,
1755
+ getInputProps: Z,
1756
+ getInputLabelProps: ft,
1757
+ getPopupIndicatorProps: re,
1758
+ getClearProps: ee,
1759
+ getItemProps: gt,
1760
+ getListboxProps: We,
1761
+ getOptionProps: bt,
1762
+ value: B,
1763
+ dirty: Ie,
1764
+ expanded: ae,
1765
+ id: Ne,
1766
+ popupOpen: te,
1767
+ focused: nt,
1768
+ focusedItem: rt,
1769
+ anchorEl: Ce,
1770
+ setAnchorEl: mt,
1771
+ inputValue: yt,
1772
+ groupedOptions: $e
1773
+ } = ro({
1774
+ ...s,
1785
1775
  componentName: "Autocomplete"
1786
- }), Ye = !de && !p && Se && !Oe, Je = (!Ce || xe === !0) && xe !== !1, {
1787
- onMouseDown: Ot
1788
- } = ne(), {
1789
- ref: Pt,
1790
- ...ct
1791
- } = _e(), ze = fe || ((y) => y.label ?? y), M = {
1792
- ...c,
1793
- disablePortal: se,
1794
- expanded: ue,
1795
- focused: it,
1796
- fullWidth: X,
1797
- getOptionLabel: ze,
1798
- hasClearIcon: Ye,
1799
- hasPopupIcon: Je,
1800
- inputFocused: st === -1,
1801
- popupOpen: le,
1802
- size: Me
1803
- }, V = wo(M), ge = {
1776
+ }), Ge = !Pe && !q && Ie && !ve, Ke = (!me || be === !0) && be !== !1, {
1777
+ onMouseDown: ht
1778
+ } = Z(), {
1779
+ ref: vt,
1780
+ ...at
1781
+ } = We(), Ee = se || ((m) => m.label ?? m), A = {
1782
+ ...s,
1783
+ disablePortal: oe,
1784
+ expanded: ae,
1785
+ focused: nt,
1786
+ fullWidth: J,
1787
+ getOptionLabel: Ee,
1788
+ hasClearIcon: Ge,
1789
+ hasPopupIcon: Ke,
1790
+ inputFocused: rt === -1,
1791
+ popupOpen: te,
1792
+ size: De
1793
+ }, R = bo(A), ce = {
1804
1794
  slots: {
1805
- paper: u,
1806
- popper: qe,
1807
- ...at
1795
+ paper: c,
1796
+ popper: Be,
1797
+ ...tt
1808
1798
  },
1809
1799
  slotProps: {
1810
- chip: S,
1811
- listbox: Re,
1812
- ...ie,
1813
- ...K
1800
+ chip: k,
1801
+ listbox: Le,
1802
+ ...ge,
1803
+ ...U
1814
1804
  }
1815
- }, [Qe, pt] = tt("listbox", {
1816
- elementType: zo,
1817
- externalForwardedProps: ge,
1818
- ownerState: M,
1819
- className: V.listbox,
1820
- additionalProps: ct,
1821
- ref: Pt
1822
- }), [n, o] = tt("paper", {
1823
- elementType: Jt,
1824
- externalForwardedProps: ge,
1825
- ownerState: M,
1826
- className: V.paper
1827
- }), [l, g] = tt("popper", {
1828
- elementType: Yt,
1829
- externalForwardedProps: ge,
1830
- ownerState: M,
1831
- className: V.popper,
1805
+ }, [_e, lt] = Ye("listbox", {
1806
+ elementType: Oo,
1807
+ externalForwardedProps: ce,
1808
+ ownerState: A,
1809
+ className: R.listbox,
1810
+ additionalProps: at,
1811
+ ref: vt
1812
+ }), [n, o] = Ye("paper", {
1813
+ elementType: Ut,
1814
+ externalForwardedProps: ce,
1815
+ ownerState: A,
1816
+ className: R.paper
1817
+ }), [a, d] = Ye("popper", {
1818
+ elementType: Ht,
1819
+ externalForwardedProps: ce,
1820
+ ownerState: A,
1821
+ className: R.popper,
1832
1822
  additionalProps: {
1833
- disablePortal: se,
1823
+ disablePortal: oe,
1834
1824
  style: {
1835
- width: ke ? ke.clientWidth : null
1825
+ width: Ce ? Ce.clientWidth : null
1836
1826
  },
1837
1827
  role: "presentation",
1838
- anchorEl: ke,
1839
- open: le
1828
+ anchorEl: Ce,
1829
+ open: te
1840
1830
  }
1841
1831
  });
1842
1832
  let i;
1843
- const O = (y) => ({
1844
- className: V.tag,
1845
- disabled: p,
1846
- ...xt(y)
1833
+ const v = (m) => ({
1834
+ className: R.tag,
1835
+ disabled: q,
1836
+ ...gt(m)
1847
1837
  });
1848
- if (U ? q.length > 0 && (ce ? i = ce(q, O, M) : Pe ? i = Pe(q, O, M) : i = q.map((y, be) => {
1838
+ if (j ? B.length > 0 && (ne ? i = ne(B, v, A) : xe ? i = xe(B, v, A) : i = B.map((m, pe) => {
1849
1839
  const {
1850
- key: me,
1851
- ...Ze
1852
- } = O({
1853
- index: be
1840
+ key: ue,
1841
+ ...Je
1842
+ } = v({
1843
+ index: pe
1854
1844
  });
1855
- return /* @__PURE__ */ s(Qt, {
1856
- label: ze(y),
1857
- size: Me,
1858
- ...Ze,
1859
- ...ge.slotProps.chip
1860
- }, me);
1861
- })) : Pe && q != null && (i = Pe(q, O, M)), H > -1 && Array.isArray(i)) {
1862
- const y = i.length - H;
1863
- !it && y > 0 && (i = i.splice(0, H), i.push(/* @__PURE__ */ s("span", {
1864
- className: V.tag,
1865
- children: m(y)
1845
+ return /* @__PURE__ */ D(Bt, {
1846
+ label: Ee(m),
1847
+ size: De,
1848
+ ...Je,
1849
+ ...ce.slotProps.chip
1850
+ }, ue);
1851
+ })) : xe && B != null && (i = xe(B, v, A)), V > -1 && Array.isArray(i)) {
1852
+ const m = i.length - V;
1853
+ !nt && m > 0 && (i = i.splice(0, V), i.push(/* @__PURE__ */ D("span", {
1854
+ className: R.tag,
1855
+ children: g(m)
1866
1856
  }, i.length)));
1867
1857
  }
1868
- const B = Ee || ((y) => /* @__PURE__ */ E("li", {
1869
- children: [/* @__PURE__ */ s(Fo, {
1870
- className: V.groupLabel,
1871
- ownerState: M,
1858
+ const F = Ae || ((m) => /* @__PURE__ */ Xe("li", {
1859
+ children: [/* @__PURE__ */ D(Po, {
1860
+ className: R.groupLabel,
1861
+ ownerState: A,
1872
1862
  component: "div",
1873
- children: y.group
1874
- }), /* @__PURE__ */ s(Ho, {
1875
- className: V.groupUl,
1876
- ownerState: M,
1877
- children: y.children
1863
+ children: m.group
1864
+ }), /* @__PURE__ */ D(So, {
1865
+ className: R.groupUl,
1866
+ ownerState: A,
1867
+ children: m.children
1878
1868
  })]
1879
- }, y.key)), Zt = Ne || ((y, be) => {
1869
+ }, m.key)), Wt = Re || ((m, pe) => {
1880
1870
  const {
1881
- key: me,
1882
- ...Ze
1883
- } = y;
1884
- return /* @__PURE__ */ s("li", {
1885
- ...Ze,
1886
- children: ze(be)
1887
- }, me);
1888
- }), Vt = (y, be) => {
1889
- const me = Ct({
1890
- option: y,
1891
- index: be
1871
+ key: ue,
1872
+ ...Je
1873
+ } = m;
1874
+ return /* @__PURE__ */ D("li", {
1875
+ ...Je,
1876
+ children: Ee(pe)
1877
+ }, ue);
1878
+ }), Lt = (m, pe) => {
1879
+ const ue = bt({
1880
+ option: m,
1881
+ index: pe
1892
1882
  });
1893
- return Zt({
1894
- ...me,
1895
- className: V.option
1896
- }, y, {
1897
- selected: me["aria-selected"],
1898
- index: be,
1899
- inputValue: $t
1900
- }, M);
1901
- }, ut = ge.slotProps.clearIndicator, dt = ge.slotProps.popupIndicator;
1902
- return /* @__PURE__ */ E(C.Fragment, {
1903
- children: [/* @__PURE__ */ s(Lo, {
1904
- ref: a,
1905
- className: ye(V.root, $),
1906
- ownerState: M,
1907
- ...lt(oe),
1908
- children: rt({
1909
- id: Ve,
1910
- disabled: p,
1883
+ return Wt({
1884
+ ...ue,
1885
+ className: R.option
1886
+ }, m, {
1887
+ selected: ue["aria-selected"],
1888
+ index: pe,
1889
+ inputValue: yt
1890
+ }, A);
1891
+ }, it = ce.slotProps.clearIndicator, st = ce.slotProps.popupIndicator;
1892
+ return /* @__PURE__ */ Xe(h.Fragment, {
1893
+ children: [/* @__PURE__ */ D(mo, {
1894
+ ref: l,
1895
+ className: de(R.root, C),
1896
+ ownerState: A,
1897
+ ...ot(Q),
1898
+ children: et({
1899
+ id: Ne,
1900
+ disabled: q,
1911
1901
  fullWidth: !0,
1912
- size: Me === "small" ? "small" : void 0,
1913
- InputLabelProps: vt(),
1902
+ size: De === "small" ? "small" : void 0,
1903
+ InputLabelProps: ft(),
1914
1904
  InputProps: {
1915
- ref: It,
1916
- className: V.inputRoot,
1905
+ ref: mt,
1906
+ className: R.inputRoot,
1917
1907
  startAdornment: i,
1918
- onMouseDown: (y) => {
1919
- y.target === y.currentTarget && Ot(y);
1908
+ onMouseDown: (m) => {
1909
+ m.target === m.currentTarget && ht(m);
1920
1910
  },
1921
- ...(Ye || Je) && {
1922
- endAdornment: /* @__PURE__ */ E(Ao, {
1923
- className: V.endAdornment,
1924
- ownerState: M,
1925
- children: [Ye ? /* @__PURE__ */ s(Do, {
1911
+ ...(Ge || Ke) && {
1912
+ endAdornment: /* @__PURE__ */ Xe(yo, {
1913
+ className: R.endAdornment,
1914
+ ownerState: A,
1915
+ children: [Ge ? /* @__PURE__ */ D(ho, {
1916
+ ...ee(),
1917
+ "aria-label": L,
1918
+ title: L,
1919
+ ownerState: A,
1920
+ ...it,
1921
+ className: de(R.clearIndicator, it == null ? void 0 : it.className),
1922
+ children: T
1923
+ }) : null, Ke ? /* @__PURE__ */ D(vo, {
1926
1924
  ...re(),
1927
- "aria-label": A,
1928
- title: A,
1929
- ownerState: M,
1930
- ...ut,
1931
- className: ye(V.clearIndicator, ut == null ? void 0 : ut.className),
1932
- children: k
1933
- }) : null, Je ? /* @__PURE__ */ s(Ro, {
1934
- ...pe(),
1935
- disabled: p,
1936
- "aria-label": le ? N : z,
1937
- title: le ? N : z,
1938
- ownerState: M,
1939
- ...dt,
1940
- className: ye(V.popupIndicator, dt == null ? void 0 : dt.className),
1941
- children: P
1925
+ disabled: q,
1926
+ "aria-label": te ? G : E,
1927
+ title: te ? G : E,
1928
+ ownerState: A,
1929
+ ...st,
1930
+ className: de(R.popupIndicator, st == null ? void 0 : st.className),
1931
+ children: x
1942
1932
  }) : null]
1943
1933
  })
1944
1934
  }
1945
1935
  },
1946
1936
  inputProps: {
1947
- className: V.input,
1948
- disabled: p,
1949
- readOnly: Oe,
1950
- ...ne()
1937
+ className: R.input,
1938
+ disabled: q,
1939
+ readOnly: ve,
1940
+ ...Z()
1951
1941
  }
1952
1942
  })
1953
- }), ke ? /* @__PURE__ */ s(Eo, {
1954
- as: l,
1955
- ...g,
1956
- children: /* @__PURE__ */ E(No, {
1943
+ }), Ce ? /* @__PURE__ */ D(xo, {
1944
+ as: a,
1945
+ ...d,
1946
+ children: /* @__PURE__ */ Xe(Io, {
1957
1947
  as: n,
1958
1948
  ...o,
1959
- children: [j && Te.length === 0 ? /* @__PURE__ */ s(Mo, {
1960
- className: V.loading,
1961
- ownerState: M,
1962
- children: d
1963
- }) : null, Te.length === 0 && !Ce && !j ? /* @__PURE__ */ s(Vo, {
1964
- className: V.noOptions,
1965
- ownerState: M,
1949
+ children: [z && $e.length === 0 ? /* @__PURE__ */ D(Co, {
1950
+ className: R.loading,
1951
+ ownerState: A,
1952
+ children: p
1953
+ }) : null, $e.length === 0 && !me && !z ? /* @__PURE__ */ D($o, {
1954
+ className: R.noOptions,
1955
+ ownerState: A,
1966
1956
  role: "presentation",
1967
- onMouseDown: (y) => {
1968
- y.preventDefault();
1957
+ onMouseDown: (m) => {
1958
+ m.preventDefault();
1969
1959
  },
1970
- children: G
1971
- }) : null, Te.length > 0 ? /* @__PURE__ */ s(Qe, {
1972
- as: Ge,
1973
- ...pt,
1974
- children: Te.map((y, be) => Le ? B({
1975
- key: y.key,
1976
- group: y.group,
1977
- children: y.options.map((me, Ze) => Vt(me, y.index + Ze))
1978
- }) : Vt(y, be))
1960
+ children: H
1961
+ }) : null, $e.length > 0 ? /* @__PURE__ */ D(_e, {
1962
+ as: He,
1963
+ ...lt,
1964
+ children: $e.map((m, pe) => ke ? F({
1965
+ key: m.key,
1966
+ group: m.group,
1967
+ children: m.options.map((ue, Je) => Lt(ue, m.index + Je))
1968
+ }) : Lt(m, pe))
1979
1969
  }) : null]
1980
1970
  })
1981
1971
  }) : null]
1982
1972
  });
1983
1973
  });
1984
- process.env.NODE_ENV !== "production" && (Xt.propTypes = {
1974
+ process.env.NODE_ENV !== "production" && (ko.propTypes = {
1985
1975
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1986
1976
  // │ These PropTypes are generated from the TypeScript type definitions. │
1987
1977
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2077,7 +2067,7 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
2077
2067
  * The default value. Use when the component is not controlled.
2078
2068
  * @default props.multiple ? [] : null
2079
2069
  */
2080
- 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(`
2070
+ defaultValue: Dt(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(`
2081
2071
  `)) : null),
2082
2072
  /**
2083
2073
  * If `true`, the input can't be cleared.
@@ -2215,7 +2205,7 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
2215
2205
  * Set `-1` to disable the limit.
2216
2206
  * @default -1
2217
2207
  */
2218
- limitTags: ao,
2208
+ limitTags: _t,
2219
2209
  /**
2220
2210
  * The component used to render the listbox.
2221
2211
  * @default 'ul'
@@ -2431,262 +2421,9 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
2431
2421
  * The value must have reference equality with the option in order to be selected.
2432
2422
  * You can customize the equality behavior with the `isOptionEqualToValue` prop.
2433
2423
  */
2434
- 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(`
2424
+ value: Dt(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(`
2435
2425
  `)) : null)
2436
2426
  });
2437
- const Wo = [
2438
- "Hold a high public office",
2439
- "Have an immediate family member who does",
2440
- "A close business associate who does"
2441
- ], jo = [
2442
- "Savings from salary (basic and/or bonus)",
2443
- "Savings from salary (basic and/or bonus), self-employed",
2444
- "Savings from salary (basic and/or bonus), self-employed company less than one year old",
2445
- "Sales of shares or other investments / liquidation of investment portfolio",
2446
- "Loan",
2447
- "Sale of property - Land",
2448
- "Sale of property - House, Condominium, Apartment",
2449
- "Sale of property - Boat",
2450
- "Sale of property - Autombile, Truck",
2451
- "Inheritance - sole inheritor",
2452
- "Inheritance - partical inheritor",
2453
- "Maturity/surrender of life policy",
2454
- "Maturity/surrender of retirement policy",
2455
- "Company sale - Sole Proprietor, Sole Owner",
2456
- "Company sale - Partnership",
2457
- "Company sale - Corporation, LLC",
2458
- "Company Profitsharing or Disbursement",
2459
- "Company Dividends",
2460
- "Gift"
2461
- ], Bo = [
2462
- "Once a year",
2463
- "Once every 3 months ",
2464
- "Once a month ",
2465
- "Once a week ",
2466
- "Other"
2467
- ], Uo = [
2468
- "Investment",
2469
- "Cross Border ",
2470
- "Identity Services ",
2471
- "Buy, sell or trade Crypto ",
2472
- "Wallet Services",
2473
- "Custody Services",
2474
- "Other Services"
2475
- ], On = ({
2476
- userInfo: e,
2477
- setUserInfo: r,
2478
- processKyc: a,
2479
- buttonComponent: c,
2480
- processLoader: h
2481
- }) => {
2482
- const T = c ?? oo, [x, I] = Fe(!1), [S, $] = Fe(""), [k, R] = Fe(""), [Y, A] = Fe(""), [N, ie] = Fe(""), [te, de] = Fe(null), ae = () => {
2483
- te && (r({
2484
- ...e,
2485
- isPoliticalExpose: x,
2486
- politicalExpose: S,
2487
- frequency: k,
2488
- reason: Y,
2489
- source: N,
2490
- origin: te.alpha3
2491
- }), a(x, S, k, Y, N, te.alpha3));
2492
- };
2493
- return /* @__PURE__ */ E(zt, { children: [
2494
- /* @__PURE__ */ s(et, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s(eo, { totalSteps: 4, currentStep: 4 }) }),
2495
- /* @__PURE__ */ E(et, { pl: 2, mt: 4, children: [
2496
- /* @__PURE__ */ s(He, { variant: "h5", sx: { fontWeight: "bold" }, children: "Additional Questions" }),
2497
- /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2498
- "Are you a politically exposed person?",
2499
- /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2500
- ] }) }),
2501
- /* @__PURE__ */ E(St, { mt: 0, container: !0, spacing: 2, children: [
2502
- /* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
2503
- et,
2504
- {
2505
- onClick: () => I(!0),
2506
- className: `political-expose ${x === !0 && "active"}`,
2507
- children: "Yes"
2508
- }
2509
- ) }),
2510
- /* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
2511
- et,
2512
- {
2513
- onClick: () => {
2514
- I(!1), $("");
2515
- },
2516
- className: `political-expose ${x === !1 && "active"}`,
2517
- children: "No"
2518
- }
2519
- ) })
2520
- ] }),
2521
- x && /* @__PURE__ */ s(ft, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2522
- gt,
2523
- {
2524
- sx: {
2525
- fontWeight: "bold",
2526
- color: "#16359D",
2527
- ".MuiSvgIcon-root ": {
2528
- fill: "#16359D !important"
2529
- }
2530
- },
2531
- variant: "filled",
2532
- value: S,
2533
- displayEmpty: !0,
2534
- onChange: (p) => $(p.target.value),
2535
- children: [
2536
- /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2537
- Wo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2538
- ]
2539
- }
2540
- ) }),
2541
- /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2542
- "Expected frequency of transactions?",
2543
- /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2544
- ] }) }),
2545
- /* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2546
- gt,
2547
- {
2548
- sx: {
2549
- fontWeight: "bold",
2550
- color: "#16359D",
2551
- ".MuiSvgIcon-root ": {
2552
- fill: "#16359D !important"
2553
- }
2554
- },
2555
- variant: "filled",
2556
- value: k,
2557
- displayEmpty: !0,
2558
- onChange: (p) => R(p.target.value),
2559
- children: [
2560
- /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2561
- Bo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2562
- ]
2563
- }
2564
- ) }),
2565
- /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2566
- "Reason for signing up",
2567
- /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2568
- ] }) }),
2569
- /* @__PURE__ */ s(ft, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2570
- gt,
2571
- {
2572
- sx: {
2573
- fontWeight: "bold",
2574
- color: "#16359D",
2575
- ".MuiSvgIcon-root ": {
2576
- fill: "#16359D !important"
2577
- }
2578
- },
2579
- variant: "filled",
2580
- value: Y,
2581
- displayEmpty: !0,
2582
- onChange: (p) => A(p.target.value),
2583
- children: [
2584
- /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2585
- Uo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2586
- ]
2587
- }
2588
- ) }),
2589
- /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2590
- "Source of wealth",
2591
- /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2592
- ] }) }),
2593
- /* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
2594
- gt,
2595
- {
2596
- sx: {
2597
- fontWeight: "bold",
2598
- color: "#16359D",
2599
- ".MuiSvgIcon-root ": {
2600
- fill: "#16359D !important"
2601
- }
2602
- },
2603
- variant: "filled",
2604
- value: N,
2605
- displayEmpty: !0,
2606
- onChange: (p) => ie(p.target.value),
2607
- children: [
2608
- /* @__PURE__ */ s(he, { value: "", children: "Please select" }),
2609
- jo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
2610
- ]
2611
- }
2612
- ) }),
2613
- /* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
2614
- "Origin of funds",
2615
- /* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
2616
- ] }) }),
2617
- /* @__PURE__ */ s(
2618
- Xt,
2619
- {
2620
- sx: {
2621
- mt: 2,
2622
- ".MuiSvgIcon-root ": {
2623
- fill: "#16359D !important"
2624
- }
2625
- },
2626
- value: te,
2627
- isOptionEqualToValue: (p, W) => p.alpha3 === W.alpha3,
2628
- onChange: (p, W) => de(W),
2629
- options: to,
2630
- autoHighlight: !0,
2631
- openOnFocus: !0,
2632
- getOptionLabel: (p) => p.name,
2633
- renderOption: (p, W) => /* @__PURE__ */ E(
2634
- et,
2635
- {
2636
- component: "li",
2637
- sx: { "& > img": { mr: 2, flexShrink: 0 } },
2638
- ...p,
2639
- children: [
2640
- /* @__PURE__ */ s(
2641
- "img",
2642
- {
2643
- loading: "lazy",
2644
- width: "20",
2645
- src: `https://flagcdn.com/w20/${W.alpha2.toLowerCase()}.png`,
2646
- srcSet: `https://flagcdn.com/w40/${W.alpha2.toLowerCase()}.png 2x`,
2647
- alt: ""
2648
- }
2649
- ),
2650
- W.name,
2651
- " (",
2652
- W.alpha3,
2653
- ")"
2654
- ]
2655
- }
2656
- ),
2657
- renderInput: (p) => /* @__PURE__ */ s(
2658
- po,
2659
- {
2660
- className: "country-select-field",
2661
- ...p,
2662
- variant: "filled",
2663
- placeholder: "Please select",
2664
- inputProps: {
2665
- ...p.inputProps,
2666
- autoComplete: "new-password"
2667
- }
2668
- }
2669
- )
2670
- }
2671
- )
2672
- ] }),
2673
- /* @__PURE__ */ s(
2674
- T,
2675
- {
2676
- sx: { mt: 4 },
2677
- variant: "contained",
2678
- onClick: ae,
2679
- disabled: !k || !Y || !N || !te || x && !S,
2680
- fullWidth: !0,
2681
- children: /* @__PURE__ */ s("strong", { children: h ? /* @__PURE__ */ E(zt, { children: [
2682
- /* @__PURE__ */ s(uo, { size: 15, color: "inherit" }),
2683
- " Processing..."
2684
- ] }) : "Submit KYC" })
2685
- }
2686
- )
2687
- ] });
2688
- };
2689
2427
  export {
2690
- Xt as A,
2691
- On as P
2428
+ ko as A
2692
2429
  };