@cgi-learning-hub/ui 1.7.0 → 1.8.0-dev.1756195117

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 (330) hide show
  1. package/dist/Alert-CCAddvmN.cjs +1 -0
  2. package/dist/{Alert-OeEy_IGc.js → Alert-CY0ot7Q9.js} +7 -7
  3. package/dist/Alert-Dqk8yUzj.cjs +1 -0
  4. package/dist/{Alert-BhLIlUBu.js → Alert-bpzERS3n.js} +85 -84
  5. package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-C58-IF0F.js} +692 -675
  6. package/dist/Autocomplete-Dr_nOPLP.cjs +6 -0
  7. package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-BKhYF22u.js} +39 -38
  8. package/dist/Backdrop-D0LHg40V.cjs +1 -0
  9. package/dist/Badge-BLQ9lQDm.cjs +1 -0
  10. package/dist/{Badge-Bwcsnbsa.js → Badge-BYxYuye1.js} +11 -10
  11. package/dist/{Box-BI4osO9v.js → Box-CQ3BMNr_.js} +4 -4
  12. package/dist/Box-VEPJVs-3.cjs +1 -0
  13. package/dist/Button-7-ViQGIl.cjs +1 -0
  14. package/dist/{Button-DDV5EfwJ.js → Button-Bb0YW9kM.js} +162 -125
  15. package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-B1T-Lqz2.cjs} +1 -1
  16. package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-BEtR8-Lv.js} +7 -7
  17. package/dist/CardContent-DHsA4vHZ.cjs +1 -0
  18. package/dist/{CardContent-D3uGcxlr.js → CardContent-D_O38a2P.js} +4 -4
  19. package/dist/{Checkbox-BfBDowB2.js → Checkbox-BUc4uLEm.js} +85 -84
  20. package/dist/Checkbox-CCUAaeKc.cjs +1 -0
  21. package/dist/Chip-BqD6kZQu.js +574 -0
  22. package/dist/Chip-Gtwf_H4u.cjs +1 -0
  23. package/dist/CircularProgress-9SSFT_JT.cjs +28 -0
  24. package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-DLHunSUI.js} +15 -14
  25. package/dist/{Close-DEMecSZ6.js → Close-Bfa6kvKL.js} +1 -1
  26. package/dist/{Close-7S2hSoFB.cjs → Close-DgAWdt-h.cjs} +1 -1
  27. package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BmxvxW3h.js} +1 -1
  28. package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-Cmyp8ExI.cjs} +1 -1
  29. package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-CAWvvti1.cjs} +3 -3
  30. package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-R9JdfW5S.js} +19 -19
  31. package/dist/{DatePicker-DasS2wq6.js → DatePicker-CPl6e2jQ.js} +2766 -2762
  32. package/dist/DatePicker-DzmgZZm2.cjs +16 -0
  33. package/dist/DefaultPropsProvider--EgnwFDi.cjs +1 -0
  34. package/dist/DefaultPropsProvider-BwYGfRVu.js +312 -0
  35. package/dist/{Delete-B5VTV71K.js → Delete-BbsnDAxB.js} +1 -1
  36. package/dist/{Delete-BvkBJXEM.cjs → Delete-CP1l1lK0.cjs} +1 -1
  37. package/dist/{Dialog-DEWB041V.js → Dialog-Bopi9166.js} +18 -17
  38. package/dist/Dialog-DBeA-P-5.cjs +1 -0
  39. package/dist/{DialogContent-C294EkoQ.js → DialogContent-BjQDm7Pm.js} +4 -4
  40. package/dist/DialogContent-LhC5HOzk.cjs +1 -0
  41. package/dist/DialogTitle-BngRm8Ai.cjs +1 -0
  42. package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-Bo0Gi01d.js} +6 -6
  43. package/dist/Divider-BMvxID38.cjs +1 -0
  44. package/dist/{Divider-kKp4VqHh.js → Divider-DY0U9aTK.js} +27 -27
  45. package/dist/{Folder-BgQP5-Ve.js → Folder-BEocKcZQ.js} +1 -1
  46. package/dist/{Folder-BfLBqDHM.cjs → Folder-DH_JFLkH.cjs} +1 -1
  47. package/dist/{FormLabel-B3WAnPGP.js → FormLabel-BfxjK0e6.js} +17 -16
  48. package/dist/FormLabel-D8szBNPL.cjs +2 -0
  49. package/dist/Grid-BK4F7WMn.cjs +2 -0
  50. package/dist/{Grid-DFk-4jnZ.js → Grid-BcHG0Tju.js} +83 -75
  51. package/dist/{Grow-BULCy6GX.cjs → Grow-CYNh0mFI.cjs} +1 -1
  52. package/dist/{Grow-BfjkXlG8.js → Grow-DIADFmT4.js} +4 -4
  53. package/dist/{IconButton-BYvak8Nw.js → IconButton-Bkyl-NVE.js} +60 -59
  54. package/dist/IconButton-CW3Ax1Re.cjs +2 -0
  55. package/dist/InputAdornment-CUNCJ9uu.cjs +1 -0
  56. package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-RdcIDDtB.js} +16 -15
  57. package/dist/{InputBase-BS5oknUK.js → InputBase-BQvkpGXw.js} +52 -51
  58. package/dist/InputBase-DlQ4AmeL.cjs +4 -0
  59. package/dist/Link-BSTFC-cm.cjs +1 -0
  60. package/dist/{Link-DYPjEdvu.js → Link-B_3z4AZj.js} +81 -67
  61. package/dist/{List-CB_cqCSw.js → List-3IHU9lAZ.js} +3 -3
  62. package/dist/List-D6OWN6pC.cjs +1 -0
  63. package/dist/{ListItem-DAZQEir2.js → ListItem-C40mdSeT.js} +6 -6
  64. package/dist/ListItem-DAW9xSDR.cjs +1 -0
  65. package/dist/ListItemText-CSkIbczH.cjs +1 -0
  66. package/dist/{ListItemText-qfdqJP77.js → ListItemText-DKZYTXDc.js} +139 -139
  67. package/dist/{Menu-C61wLk41.cjs → Menu-CYG4lAV5.cjs} +5 -5
  68. package/dist/{Menu-9BK8jmzW.js → Menu-v2809GzG.js} +14 -14
  69. package/dist/MenuItem-CE1zzd3t.cjs +1 -0
  70. package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CtaUN7Tf.js} +94 -94
  71. package/dist/{Modal-D3Q9vEAI.js → Modal-5Sd-onxN.js} +8 -8
  72. package/dist/Modal-Czds3gRe.cjs +2 -0
  73. package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-D8Vmampk.js} +1 -1
  74. package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-oRU8DXq_.cjs} +1 -1
  75. package/dist/{Paper-IQckggbn.js → Paper-CVfXywZr.js} +5 -5
  76. package/dist/Paper-DfgCIvIc.cjs +2 -0
  77. package/dist/{Popper-CfFLBZ7-.js → Popper-AaewvJPc.js} +7 -7
  78. package/dist/Popper-D7N2KmyK.cjs +4 -0
  79. package/dist/Portal-Cmv45gpL.cjs +1 -0
  80. package/dist/{Portal-BlK6ttxt.js → Portal-PkRJuFYN.js} +17 -17
  81. package/dist/{Radio-DKiu6lVB.js → Radio-CJMMhGKK.js} +196 -190
  82. package/dist/Radio-DSTF6-0u.cjs +1 -0
  83. package/dist/RadioGroup-Dv2H8eCy.cjs +1 -0
  84. package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-HN8d8Ia5.js} +4 -4
  85. package/dist/{Select-CpNF3a57.js → Select-B3A-Agfw.js} +643 -608
  86. package/dist/Select-Dx8bhqFc.cjs +3 -0
  87. package/dist/Stack-BLHXEe7p.cjs +1 -0
  88. package/dist/{Stack-DSJ2DqNd.js → Stack-Dxm_cNN7.js} +17 -17
  89. package/dist/{Stepper-DE2l91K0.js → Stepper-BzU8ArmD.js} +24 -23
  90. package/dist/Stepper-DKRSy-u6.cjs +1 -0
  91. package/dist/{Switch-BIcwDf_P.js → Switch-Kkgo0WAh.js} +103 -99
  92. package/dist/Switch-pAIsJqNE.cjs +1 -0
  93. package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-D25OhIzI.js} +47 -43
  94. package/dist/SwitchBase-Rj-rHz4Z.cjs +1 -0
  95. package/dist/{Tab-Ckr6Bn59.js → Tab-CD-dlBpG.js} +29 -28
  96. package/dist/Tab-DAnZTr_J.cjs +4 -0
  97. package/dist/TextField-BOV-t6n5.cjs +1 -0
  98. package/dist/{TextField-BenBw4oE.js → TextField-hWLcPKMC.js} +25 -24
  99. package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-DnkyxRyH.js} +2192 -2136
  100. package/dist/ToggleButtonGroup-tZHZu6VI.cjs +138 -0
  101. package/dist/{Tooltip-KkgNQm4r.js → Tooltip-Dyhu9Axq.js} +87 -86
  102. package/dist/Tooltip-uaa7kSpb.cjs +4 -0
  103. package/dist/{Typography-Dy8r_tT2.js → Typography-BCrXGKM_.js} +8 -7
  104. package/dist/Typography-CzfDwsAP.cjs +1 -0
  105. package/dist/capitalize-CqfTUOe6.js +9 -0
  106. package/dist/capitalize-nmXHj--f.cjs +1 -0
  107. package/dist/components/ActionBar/ActionBar.cjs.js +1 -0
  108. package/dist/components/ActionBar/ActionBar.d.ts +3 -0
  109. package/dist/components/ActionBar/ActionBar.es.js +63 -0
  110. package/dist/components/ActionBar/index.cjs.js +1 -0
  111. package/dist/components/ActionBar/index.d.ts +2 -0
  112. package/dist/components/ActionBar/index.es.js +4 -0
  113. package/dist/components/ActionBar/style.cjs.js +1 -0
  114. package/dist/components/ActionBar/style.es.js +61 -0
  115. package/dist/components/ActionBar/types.cjs.js +1 -0
  116. package/dist/components/ActionBar/types.d.ts +17 -0
  117. package/dist/components/ActionBar/types.es.js +1 -0
  118. package/dist/components/Alert/Alert.cjs.js +1 -1
  119. package/dist/components/Alert/Alert.es.js +4 -4
  120. package/dist/components/Alert/index.cjs.js +1 -1
  121. package/dist/components/Alert/index.es.js +1 -1
  122. package/dist/components/Button/Button.cjs.js +1 -1
  123. package/dist/components/Button/Button.es.js +2 -2
  124. package/dist/components/ColorPicker/ColorPicker.cjs.js +4 -4
  125. package/dist/components/ColorPicker/ColorPicker.es.js +64 -64
  126. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  127. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  128. package/dist/components/DatePicker/index.cjs.js +1 -1
  129. package/dist/components/DatePicker/index.es.js +1 -1
  130. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  131. package/dist/components/Dialog/Dialog.es.js +2 -2
  132. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  133. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  134. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  135. package/dist/components/EmptyState/EmptyState.d.ts +1 -0
  136. package/dist/components/EmptyState/EmptyState.es.js +22 -20
  137. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  138. package/dist/components/FileList/FileIcon.es.js +1 -1
  139. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  140. package/dist/components/FileList/FileListItem.es.js +4 -4
  141. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  142. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  143. package/dist/components/Heading/Heading.cjs.js +1 -1
  144. package/dist/components/Heading/Heading.es.js +2 -2
  145. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  146. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  147. package/dist/components/Loader/Loader.cjs.js +1 -1
  148. package/dist/components/Loader/Loader.es.js +1 -1
  149. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  150. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  151. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  152. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  153. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  154. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  155. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  156. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  157. package/dist/components/TreeView/TreeView.cjs.js +2 -2
  158. package/dist/components/TreeView/TreeView.es.js +41 -41
  159. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  160. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  161. package/dist/components/TreeView/types.d.ts +1 -0
  162. package/dist/components/TreeView/utils.cjs.js +1 -1
  163. package/dist/components/TreeView/utils.es.js +3 -3
  164. package/dist/components/index.cjs.js +1 -1
  165. package/dist/components/index.d.ts +2 -1
  166. package/dist/components/index.es.js +302 -300
  167. package/dist/components/stories/ActionBar.stories.cjs.js +1 -0
  168. package/dist/components/stories/ActionBar.stories.d.ts +11 -0
  169. package/dist/components/stories/ActionBar.stories.es.js +206 -0
  170. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  171. package/dist/components/stories/Alert.stories.es.js +1 -1
  172. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  173. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  174. package/dist/components/stories/Badge.stories.cjs.js +1 -1
  175. package/dist/components/stories/Badge.stories.es.js +2 -2
  176. package/dist/components/stories/Button.stories.cjs.js +1 -1
  177. package/dist/components/stories/Button.stories.es.js +1 -1
  178. package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
  179. package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
  180. package/dist/components/stories/Card.stories.cjs.js +1 -1
  181. package/dist/components/stories/Card.stories.es.js +2 -2
  182. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  183. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  184. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  185. package/dist/components/stories/Chip.stories.es.js +1 -1
  186. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  187. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  188. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  189. package/dist/components/stories/Dialog.stories.es.js +2 -2
  190. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  191. package/dist/components/stories/Divider.stories.es.js +1 -1
  192. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  193. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  194. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  195. package/dist/components/stories/Heading.stories.es.js +2 -2
  196. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  197. package/dist/components/stories/IconButton.stories.es.js +2 -2
  198. package/dist/components/stories/Link.stories.cjs.js +1 -1
  199. package/dist/components/stories/Link.stories.es.js +1 -1
  200. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  201. package/dist/components/stories/Menu.stories.es.js +2 -2
  202. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  203. package/dist/components/stories/Paper.stories.es.js +1 -1
  204. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  205. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  206. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  207. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  208. package/dist/components/stories/Select.stories.cjs.js +1 -1
  209. package/dist/components/stories/Select.stories.es.js +3 -3
  210. package/dist/components/stories/Stepper.stories.cjs.js +1 -1
  211. package/dist/components/stories/Stepper.stories.es.js +4 -4
  212. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  213. package/dist/components/stories/TabList.stories.es.js +1 -1
  214. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  215. package/dist/components/stories/TextField.stories.es.js +1 -1
  216. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  217. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  218. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  219. package/dist/components/stories/TreeView.stories.es.js +12 -12
  220. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  221. package/dist/components/stories/Typography.stories.es.js +1 -1
  222. package/dist/composeClasses-CF8TNlsM.cjs +1 -0
  223. package/dist/composeClasses-YZNMOb8-.js +51 -0
  224. package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-CjBLQGwH.js} +9 -8
  225. package/dist/createSvgIcon-D6Bf0D-L.cjs +1 -0
  226. package/dist/dividerClasses-B-pTb1RM.cjs +1 -0
  227. package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DaeUd1Wt.js} +1 -1
  228. package/dist/{elementAcceptingRef-CEweUuUA.js → elementAcceptingRef-CZLfau9O.js} +1 -1
  229. package/dist/{elementAcceptingRef-BZ42cOGO.cjs → elementAcceptingRef-CuMilXz3.cjs} +1 -1
  230. package/dist/{elementTypeAcceptingRef-DOeckaXy.js → elementTypeAcceptingRef-vRb2iI4O.js} +1 -1
  231. package/dist/{elementTypeAcceptingRef-BwZv9xBI.cjs → elementTypeAcceptingRef-vjR5jGLx.cjs} +1 -1
  232. package/dist/extendSxProp-B7ear6Mt.cjs +1 -0
  233. package/dist/{extendSxProp-CesAxox9.js → extendSxProp-CYcZXmNy.js} +1 -1
  234. package/dist/generateUtilityClasses-BMLLB4Uz.cjs +55 -0
  235. package/dist/generateUtilityClasses-BSBs8sf8.js +2703 -0
  236. package/dist/{index-Sy88PpwE.js → index-B9vkf41S.js} +2 -2
  237. package/dist/{index-DIyAQH20.cjs → index-BS46Ff4t.cjs} +1 -1
  238. package/dist/{index-DX2Sl0Ig.js → index-Ba4TEBpP.js} +1 -1
  239. package/dist/index-C7LHZznM.cjs +1 -0
  240. package/dist/{index-CX0sAlmK.js → index-CJMnfcQs.js} +1 -1
  241. package/dist/{index-CrINMjCH.cjs → index-D_kvDIOz.cjs} +1 -1
  242. package/dist/{index-8G2jvqZ8.js → index-DoJhn5B5.js} +48 -42
  243. package/dist/{index-DLnSn8GT.cjs → index-kjfz41UI.cjs} +1 -1
  244. package/dist/index.cjs.js +1 -1
  245. package/dist/index.es.js +302 -300
  246. package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-BXp3ggQU.js} +1 -1
  247. package/dist/listItemTextClasses-DbXYCyua.cjs +1 -0
  248. package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-DZ3r2a_u.cjs} +1 -1
  249. package/dist/{memoTheme-DAFDflPY.js → memoTheme-_Lq-6t75.js} +1 -1
  250. package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-BauotErM.js} +1 -1
  251. package/dist/mergeSlotProps-DxEGON0Z.cjs +1 -0
  252. package/dist/{refType-Dp7CJc86.js → refType-8hihVLUh.js} +1 -1
  253. package/dist/{refType-B_IEJm4x.cjs → refType-DJyA--UV.cjs} +1 -1
  254. package/dist/useSlot-BQ5B4uxv.cjs +1 -0
  255. package/dist/{useSlot-BzdKwDQ5.js → useSlot-EJyrOSVX.js} +1 -1
  256. package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-BgLi3k0l.cjs} +1 -1
  257. package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-Dqdl-VjK.js} +1 -1
  258. package/dist/useTheme-B-uC25ym.js +11 -0
  259. package/dist/useTheme-BF7BEGuC.cjs +1 -0
  260. package/dist/useTheme-Bp-Kqg9p.cjs +1 -0
  261. package/dist/{useTheme--i9fxE_A.js → useTheme-DiTK5w6x.js} +1 -1
  262. package/dist/useThemeProps-BPpcxcBc.cjs +1 -0
  263. package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BR4m1AIN.cjs} +1 -1
  264. package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-Ddl3KJ8f.js} +4 -4
  265. package/dist/useThemeProps-zsxJokxk.js +17 -0
  266. package/dist/{utils-BQenyzDz.js → utils-B_pVp6UZ.js} +3 -3
  267. package/dist/utils-XujN9ndp.cjs +1 -0
  268. package/package.json +7 -7
  269. package/dist/Alert-DPSZppEy.cjs +0 -1
  270. package/dist/Alert-rPyl-bqs.cjs +0 -1
  271. package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
  272. package/dist/Backdrop-DeNTZlA5.cjs +0 -1
  273. package/dist/Badge-DFzvdVS-.cjs +0 -1
  274. package/dist/Box-DR3n_po_.cjs +0 -1
  275. package/dist/Button-DyJV5llI.cjs +0 -1
  276. package/dist/CardContent-COfaU6E0.cjs +0 -1
  277. package/dist/Checkbox-3hTSv0EZ.cjs +0 -1
  278. package/dist/Chip-BG0OU0KI.cjs +0 -1
  279. package/dist/Chip-DmjZbx_X.js +0 -572
  280. package/dist/CircularProgress-CXXyPavb.cjs +0 -28
  281. package/dist/DatePicker-CH8XRum0.cjs +0 -16
  282. package/dist/DefaultPropsProvider-Cnf49AIv.cjs +0 -1
  283. package/dist/DefaultPropsProvider-DqazQPtr.js +0 -306
  284. package/dist/Dialog-Btagj_Gt.cjs +0 -1
  285. package/dist/DialogContent-DXfUge3c.cjs +0 -1
  286. package/dist/DialogTitle-y2PrK6uU.cjs +0 -1
  287. package/dist/Divider-NermA5hZ.cjs +0 -1
  288. package/dist/FormLabel-JrZR9kt8.cjs +0 -2
  289. package/dist/Grid-BHYQ3JNy.cjs +0 -2
  290. package/dist/IconButton-CjtMjZ9e.cjs +0 -2
  291. package/dist/InputAdornment-DvHQMisT.cjs +0 -1
  292. package/dist/InputBase-DPdKpmOz.cjs +0 -4
  293. package/dist/Link-BwbY60dS.cjs +0 -1
  294. package/dist/List-t9bWFewp.cjs +0 -1
  295. package/dist/ListItem-DP7YmqZk.cjs +0 -1
  296. package/dist/ListItemText-cVnimPLO.cjs +0 -1
  297. package/dist/MenuItem-DHM3qxwr.cjs +0 -1
  298. package/dist/Modal-DkzrSKHd.cjs +0 -2
  299. package/dist/Paper-BbqZL5vx.cjs +0 -2
  300. package/dist/Popper-DvWx5tR3.cjs +0 -4
  301. package/dist/Portal-CPOCKeMh.cjs +0 -1
  302. package/dist/Radio-Bwh_t6PC.cjs +0 -1
  303. package/dist/RadioGroup-Cvnwt4JE.cjs +0 -1
  304. package/dist/Select-3HP39Z7o.cjs +0 -3
  305. package/dist/Stack-CIyfgZCM.cjs +0 -1
  306. package/dist/Stepper-CXHfLPtA.cjs +0 -1
  307. package/dist/Switch-CTEqKDiv.cjs +0 -1
  308. package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
  309. package/dist/Tab-r5imbU9z.cjs +0 -4
  310. package/dist/TextField-Brw3X9cn.cjs +0 -1
  311. package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
  312. package/dist/Tooltip-BAOKe3SY.cjs +0 -4
  313. package/dist/Typography-CSTmKyr8.cjs +0 -1
  314. package/dist/createSvgIcon-IET9soda.cjs +0 -1
  315. package/dist/dividerClasses-C07OJKLL.cjs +0 -1
  316. package/dist/extendSxProp-ZMCunXYm.cjs +0 -1
  317. package/dist/identifier-BoZelETM.cjs +0 -55
  318. package/dist/identifier-PWESmBq6.js +0 -2598
  319. package/dist/index-D3lMWU76.cjs +0 -1
  320. package/dist/listItemTextClasses-CJDKfXvl.cjs +0 -1
  321. package/dist/mergeSlotProps-DXwOW3FE.cjs +0 -1
  322. package/dist/styled-C7gyRDlj.js +0 -5
  323. package/dist/styled-Cax0O00h.cjs +0 -1
  324. package/dist/useSlot-C2FjoUpF.cjs +0 -1
  325. package/dist/useTheme-BLMJDSsv.cjs +0 -1
  326. package/dist/useTheme-CooC_6Ep.cjs +0 -1
  327. package/dist/useTheme-XJ9sFCWX.js +0 -11
  328. package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
  329. package/dist/useThemeProps-CQ9rZe7g.js +0 -17
  330. package/dist/utils-ByXw_ZY1.cjs +0 -1
@@ -1,350 +1,366 @@
1
1
  import * as x from "react";
2
- import { P as t } from "./index-Sy88PpwE.js";
3
- import { F as Rt, G as Dt, H as Je, K as Ye, n as ct } from "./identifier-PWESmBq6.js";
4
- import { A as zt, f as he, o as St, i as dt } from "./Select-CpNF3a57.js";
5
- import { i as le } from "./InputBase-BS5oknUK.js";
6
- import { C as jt } from "./Close-DEMecSZ6.js";
7
- import { m as pe } from "./memoTheme-DAFDflPY.js";
8
- import { u as ft } from "./useSlot-BzdKwDQ5.js";
9
- import { jsx as A, jsxs as Ke } from "react/jsx-runtime";
10
- import { u as Nt, s as H, c as Et } from "./DefaultPropsProvider-DqazQPtr.js";
2
+ import { P as t } from "./index-B9vkf41S.js";
3
+ import { F as Dt, G as Nt, H as Je } from "./generateUtilityClasses-BSBs8sf8.js";
4
+ import { A as zt, f as xe, o as St, i as ft } from "./Select-B3A-Agfw.js";
5
+ import { i as pe } from "./InputBase-BQvkpGXw.js";
6
+ import { C as jt } from "./Close-Bfa6kvKL.js";
7
+ import { m as ue } from "./memoTheme-_Lq-6t75.js";
8
+ import { u as gt } from "./useSlot-EJyrOSVX.js";
9
+ import { jsx as A, jsxs as _e } from "react/jsx-runtime";
10
+ import { u as Et, s as F, c as Mt } from "./DefaultPropsProvider-BwYGfRVu.js";
11
11
  import { u as Ut } from "./useId-CK6Kn3Tn.js";
12
- import { u as gt } from "./useControlled-nm4pBabJ.js";
12
+ import { u as mt } from "./useControlled-nm4pBabJ.js";
13
13
  import { u as Bt } from "./usePreviousProps-ByGlbpJ6.js";
14
- import { a as _e } from "./useEventCallback-Y2KwRxBw.js";
15
- import { s as Wt } from "./Portal-BlK6ttxt.js";
16
- import { P as Mt } from "./Paper-IQckggbn.js";
17
- import { P as Vt } from "./Popper-CfFLBZ7-.js";
18
- import { C as Gt } from "./Chip-DmjZbx_X.js";
19
- import { I as Ft } from "./IconButton-BYvak8Nw.js";
14
+ import { a as Ke } from "./useEventCallback-Y2KwRxBw.js";
15
+ import { s as Wt } from "./Portal-PkRJuFYN.js";
16
+ import { P as Vt } from "./Paper-CVfXywZr.js";
17
+ import { P as Ft } from "./Popper-AaewvJPc.js";
18
+ import { C as Gt } from "./Chip-BqD6kZQu.js";
19
+ import { c as Ye } from "./capitalize-CqfTUOe6.js";
20
+ import { I as Ht } from "./IconButton-Bkyl-NVE.js";
20
21
  import { c as Tt } from "./chainPropTypes-D9lkm76m.js";
21
22
  import { i as qt } from "./integerPropType-BihGt2aU.js";
22
- function vt(n) {
23
+ function vt({
24
+ array1: n,
25
+ array2: a,
26
+ parser: u = (f) => f
27
+ }) {
28
+ return n && a && n.length === a.length && n.every((f, $) => u(f) === u(a[$]));
29
+ }
30
+ function At(n) {
23
31
  return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
24
32
  }
25
- function Kt(n = {}) {
33
+ function _t(n = {}) {
26
34
  const {
27
- ignoreAccents: i = !0,
28
- ignoreCase: d = !0,
29
- limit: m,
30
- matchFrom: T = "any",
31
- stringify: D,
35
+ ignoreAccents: a = !0,
36
+ ignoreCase: u = !0,
37
+ limit: f,
38
+ matchFrom: $ = "any",
39
+ stringify: R,
32
40
  trim: v = !1
33
41
  } = n;
34
- return (N, {
35
- inputValue: B,
36
- getOptionLabel: I
42
+ return (D, {
43
+ inputValue: U,
44
+ getOptionLabel: O
37
45
  }) => {
38
- let $ = v ? B.trim() : B;
39
- d && ($ = $.toLowerCase()), i && ($ = vt($));
40
- const W = $ ? N.filter((ue) => {
41
- let E = (D || I)(ue);
42
- return d && (E = E.toLowerCase()), i && (E = vt(E)), T === "start" ? E.startsWith($) : E.includes($);
43
- }) : N;
44
- return typeof m == "number" ? W.slice(0, m) : W;
46
+ let T = v ? U.trim() : U;
47
+ u && (T = T.toLowerCase()), a && (T = At(T));
48
+ const B = T ? D.filter((ce) => {
49
+ let N = (R || O)(ce);
50
+ return u && (N = N.toLowerCase()), a && (N = At(N)), $ === "start" ? N.startsWith(T) : N.includes(T);
51
+ }) : D;
52
+ return typeof f == "number" ? B.slice(0, f) : B;
45
53
  };
46
54
  }
47
- const _t = Kt(), wt = 5, Jt = (n) => {
48
- var i;
49
- return n.current !== null && ((i = n.current.parentElement) == null ? void 0 : i.contains(document.activeElement));
55
+ const Kt = _t(), wt = 5, Jt = (n) => {
56
+ var a;
57
+ return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
50
58
  }, Xt = [];
51
- function At(n, i, d, m) {
52
- if (i || n == null || m)
59
+ function Lt(n, a, u, f) {
60
+ if (a || n == null || f)
53
61
  return "";
54
- const T = d(n);
55
- return typeof T == "string" ? T : "";
62
+ const $ = u(n);
63
+ return typeof $ == "string" ? $ : "";
56
64
  }
57
65
  function Yt(n) {
58
66
  const {
59
67
  // eslint-disable-next-line @typescript-eslint/naming-convention
60
- unstable_isActiveElementInListbox: i = Jt,
68
+ unstable_isActiveElementInListbox: a = Jt,
61
69
  // eslint-disable-next-line @typescript-eslint/naming-convention
62
- unstable_classNamePrefix: d = "Mui",
63
- autoComplete: m = !1,
64
- autoHighlight: T = !1,
65
- autoSelect: D = !1,
70
+ unstable_classNamePrefix: u = "Mui",
71
+ autoComplete: f = !1,
72
+ autoHighlight: $ = !1,
73
+ autoSelect: R = !1,
66
74
  blurOnSelect: v = !1,
67
- clearOnBlur: N = !n.freeSolo,
68
- clearOnEscape: B = !1,
69
- componentName: I = "useAutocomplete",
70
- defaultValue: $ = n.multiple ? Xt : null,
71
- disableClearable: W = !1,
72
- disableCloseOnSelect: ue = !1,
73
- disabled: E,
74
- disabledItemsFocusable: Ae = !1,
75
- disableListWrap: Le = !1,
76
- filterOptions: mt = _t,
77
- filterSelectedOptions: ke = !1,
78
- freeSolo: ce = !1,
79
- getOptionDisabled: G,
80
- getOptionKey: Re,
75
+ clearOnBlur: D = !n.freeSolo,
76
+ clearOnEscape: U = !1,
77
+ componentName: O = "useAutocomplete",
78
+ defaultValue: T = n.multiple ? Xt : null,
79
+ disableClearable: B = !1,
80
+ disableCloseOnSelect: ce = !1,
81
+ disabled: N,
82
+ disabledItemsFocusable: Le = !1,
83
+ disableListWrap: ke = !1,
84
+ filterOptions: bt = Kt,
85
+ filterSelectedOptions: Re = !1,
86
+ freeSolo: de = !1,
87
+ getOptionDisabled: W,
88
+ getOptionKey: De,
81
89
  getOptionLabel: Qe = (o) => o.label ?? o,
82
- groupBy: oe,
90
+ groupBy: re,
83
91
  handleHomeEndKeys: Ze = !n.freeSolo,
84
- id: bt,
85
- includeInputInList: ye = !1,
86
- inputValue: De,
92
+ id: ht,
93
+ includeInputInList: Ie = !1,
94
+ inputValue: Ne,
87
95
  isOptionEqualToValue: Y = (o, e) => o === e,
88
- multiple: u = !1,
96
+ multiple: c = !1,
89
97
  onChange: et,
90
98
  onClose: tt,
91
- onHighlightChange: Ne,
99
+ onHighlightChange: Ee,
92
100
  onInputChange: Q,
93
- onOpen: Ee,
94
- open: ht,
95
- openOnFocus: yt = !1,
96
- options: xt,
97
- readOnly: K = !1,
98
- renderValue: L,
101
+ onOpen: Me,
102
+ open: yt,
103
+ openOnFocus: xt = !1,
104
+ options: It,
105
+ readOnly: G = !1,
106
+ renderValue: w,
99
107
  selectOnFocus: ot = !n.freeSolo,
100
- value: Me
101
- } = n, M = Ut(bt);
102
- let S = Qe;
103
- S = (o) => {
108
+ value: Ve
109
+ } = n, E = Ut(ht);
110
+ let P = Qe;
111
+ P = (o) => {
104
112
  const e = Qe(o);
105
113
  if (typeof e != "string") {
106
114
  if (process.env.NODE_ENV !== "production") {
107
115
  const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
108
- console.error(`MUI: The \`getOptionLabel\` method of ${I} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
116
+ console.error(`MUI: The \`getOptionLabel\` method of ${O} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
109
117
  }
110
118
  return String(e);
111
119
  }
112
120
  return e;
113
121
  };
114
- const xe = x.useRef(!1), Ie = x.useRef(!0), h = x.useRef(null), F = x.useRef(null), [Oe, It] = x.useState(null), [V, Ve] = x.useState(-1), nt = T ? 0 : -1, C = x.useRef(nt), Ot = x.useRef(At($ ?? Me, u, S)).current, [s, Pe] = gt({
115
- controlled: Me,
116
- default: $,
117
- name: I
118
- }), [g, ne] = gt({
119
- controlled: De,
120
- default: Ot,
121
- name: I,
122
+ const Oe = x.useRef(!1), Pe = x.useRef(!0), h = x.useRef(null), V = x.useRef(null), [Ce, Ot] = x.useState(null), [M, Fe] = x.useState(-1), nt = $ ? 0 : -1, S = x.useRef(nt), Pt = x.useRef(Lt(T ?? Ve, c, P)).current, [l, $e] = mt({
123
+ controlled: Ve,
124
+ default: T,
125
+ name: O
126
+ }), [g, ae] = mt({
127
+ controlled: Ne,
128
+ default: Pt,
129
+ name: O,
122
130
  state: "inputValue"
123
- }), [de, Fe] = x.useState(!1), fe = x.useCallback((o, e, r) => {
124
- if (!(u ? s.length < e.length : e !== null) && !N)
131
+ }), [fe, He] = x.useState(!1), ge = x.useCallback((o, e, r) => {
132
+ if (!(c ? l.length < e.length : e !== null) && !D)
125
133
  return;
126
- const a = At(e, u, S, L);
127
- g !== a && (ne(a), Q && Q(o, a, r));
128
- }, [S, g, u, Q, ne, N, s, L]), [_, re] = gt({
129
- controlled: ht,
134
+ const i = Lt(e, c, P, w);
135
+ g !== i && (ae(i), Q && Q(o, i, r));
136
+ }, [P, g, c, Q, ae, D, l, w]), [q, se] = mt({
137
+ controlled: yt,
130
138
  default: !1,
131
- name: I,
139
+ name: O,
132
140
  state: "open"
133
- }), [Pt, ge] = x.useState(!0), He = !u && s != null && g === S(s), k = _ && !K, b = k ? mt(
134
- xt.filter((o) => !(ke && (u ? s : [s]).some((e) => e !== null && Y(o, e)))),
141
+ }), [Ct, me] = x.useState(!0), ze = !c && l != null && g === P(l), L = q && !G, m = L ? bt(
142
+ It.filter((o) => !(Re && (c ? l : [l]).some((e) => e !== null && Y(o, e)))),
135
143
  // we use the empty string to manipulate `filterOptions` to not filter any options
136
144
  // i.e. the filter predicate always returns true
137
145
  {
138
- inputValue: He && Pt ? "" : g,
139
- getOptionLabel: S
146
+ inputValue: ze && Ct ? "" : g,
147
+ getOptionLabel: P
140
148
  }
141
- ) : [], z = Bt({
142
- filteredOptions: b,
143
- value: s,
149
+ ) : [], H = Bt({
150
+ filteredOptions: m,
151
+ value: l,
144
152
  inputValue: g
145
153
  });
146
154
  x.useEffect(() => {
147
- const o = s !== z.value;
148
- de && !o || ce && !o || fe(null, s, "reset");
149
- }, [s, fe, de, z.value, ce]);
150
- const ze = _ && b.length > 0 && !K, j = _e((o) => {
155
+ const o = l !== H.value;
156
+ fe && !o || de && !o || ge(null, l, "reset");
157
+ }, [l, ge, fe, H.value, de]);
158
+ const je = q && m.length > 0 && !G, z = Ke((o) => {
151
159
  if (o === -1)
152
160
  h.current.focus();
153
161
  else {
154
- const e = L ? "data-item-index" : "data-tag-index";
155
- Oe.querySelector(`[${e}="${o}"]`).focus();
162
+ const e = w ? "data-item-index" : "data-tag-index";
163
+ Ce.querySelector(`[${e}="${o}"]`).focus();
156
164
  }
157
165
  });
158
166
  x.useEffect(() => {
159
- u && V > s.length - 1 && (Ve(-1), j(-1));
160
- }, [s, u, V, j]);
167
+ c && M > l.length - 1 && (Fe(-1), z(-1));
168
+ }, [l, c, M, z]);
161
169
  function rt(o, e) {
162
- if (!F.current || o < 0 || o >= b.length)
170
+ if (!V.current || o < 0 || o >= m.length)
163
171
  return -1;
164
172
  let r = o;
165
173
  for (; ; ) {
166
- const p = F.current.querySelector(`[data-option-index="${r}"]`), a = Ae ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
167
- if (p && p.hasAttribute("tabindex") && !a)
174
+ const s = V.current.querySelector(`[data-option-index="${r}"]`), i = Le ? !1 : !s || s.disabled || s.getAttribute("aria-disabled") === "true";
175
+ if (s && s.hasAttribute("tabindex") && !i)
168
176
  return r;
169
- if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
177
+ if (e === "next" ? r = (r + 1) % m.length : r = (r - 1 + m.length) % m.length, r === o)
170
178
  return -1;
171
179
  }
172
180
  }
173
- const J = _e(({
181
+ const _ = Ke(({
174
182
  event: o,
175
183
  index: e,
176
184
  reason: r
177
185
  }) => {
178
- if (C.current = e, e === -1 ? h.current.removeAttribute("aria-activedescendant") : h.current.setAttribute("aria-activedescendant", `${M}-option-${e}`), Ne && ["mouse", "keyboard", "touch"].includes(r) && Ne(o, e === -1 ? null : b[e], r), !F.current)
186
+ if (S.current = e, e === -1 ? h.current.removeAttribute("aria-activedescendant") : h.current.setAttribute("aria-activedescendant", `${E}-option-${e}`), Ee && ["mouse", "keyboard", "touch"].includes(r) && Ee(o, e === -1 ? null : m[e], r), !V.current)
179
187
  return;
180
- const p = F.current.querySelector(`[role="option"].${d}-focused`);
181
- p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
182
- let a = F.current;
183
- if (F.current.getAttribute("role") !== "listbox" && (a = F.current.parentElement.querySelector('[role="listbox"]')), !a)
188
+ const s = V.current.querySelector(`[role="option"].${u}-focused`);
189
+ s && (s.classList.remove(`${u}-focused`), s.classList.remove(`${u}-focusVisible`));
190
+ let i = V.current;
191
+ if (V.current.getAttribute("role") !== "listbox" && (i = V.current.parentElement.querySelector('[role="listbox"]')), !i)
184
192
  return;
185
193
  if (e === -1) {
186
- a.scrollTop = 0;
194
+ i.scrollTop = 0;
187
195
  return;
188
196
  }
189
- const f = F.current.querySelector(`[data-option-index="${e}"]`);
190
- if (f && (f.classList.add(`${d}-focused`), r === "keyboard" && f.classList.add(`${d}-focusVisible`), a.scrollHeight > a.clientHeight && r !== "mouse" && r !== "touch")) {
191
- const y = f, w = a.clientHeight + a.scrollTop, ve = y.offsetTop + y.offsetHeight;
192
- ve > w ? a.scrollTop = ve - a.clientHeight : y.offsetTop - y.offsetHeight * (oe ? 1.3 : 0) < a.scrollTop && (a.scrollTop = y.offsetTop - y.offsetHeight * (oe ? 1.3 : 0));
197
+ const b = V.current.querySelector(`[data-option-index="${e}"]`);
198
+ if (b && (b.classList.add(`${u}-focused`), r === "keyboard" && b.classList.add(`${u}-focusVisible`), i.scrollHeight > i.clientHeight && r !== "mouse" && r !== "touch")) {
199
+ const y = b, k = i.clientHeight + i.scrollTop, ye = y.offsetTop + y.offsetHeight;
200
+ ye > k ? i.scrollTop = ye - i.clientHeight : y.offsetTop - y.offsetHeight * (re ? 1.3 : 0) < i.scrollTop && (i.scrollTop = y.offsetTop - y.offsetHeight * (re ? 1.3 : 0));
193
201
  }
194
- }), U = _e(({
202
+ }), j = Ke(({
195
203
  event: o,
196
204
  diff: e,
197
205
  direction: r = "next",
198
- reason: p
206
+ reason: s
199
207
  }) => {
200
- if (!k)
208
+ if (!L)
201
209
  return;
202
- const f = rt((() => {
203
- const y = b.length - 1;
210
+ const b = rt((() => {
211
+ const y = m.length - 1;
204
212
  if (e === "reset")
205
213
  return nt;
206
214
  if (e === "start")
207
215
  return 0;
208
216
  if (e === "end")
209
217
  return y;
210
- const w = C.current + e;
211
- return w < 0 ? w === -1 && ye ? -1 : Le && C.current !== -1 || Math.abs(e) > 1 ? 0 : y : w > y ? w === y + 1 && ye ? -1 : Le || Math.abs(e) > 1 ? y : 0 : w;
218
+ const k = S.current + e;
219
+ return k < 0 ? k === -1 && Ie ? -1 : ke && S.current !== -1 || Math.abs(e) > 1 ? 0 : y : k > y ? k === y + 1 && Ie ? -1 : ke || Math.abs(e) > 1 ? y : 0 : k;
212
220
  })(), r);
213
- if (J({
214
- index: f,
215
- reason: p,
221
+ if (_({
222
+ index: b,
223
+ reason: s,
216
224
  event: o
217
- }), m && e !== "reset")
218
- if (f === -1)
225
+ }), f && e !== "reset")
226
+ if (b === -1)
219
227
  h.current.value = g;
220
228
  else {
221
- const y = S(b[f]);
229
+ const y = P(m[b]);
222
230
  h.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && h.current.setSelectionRange(g.length, y.length);
223
231
  }
232
+ }), Ue = !vt({
233
+ array1: H.filteredOptions,
234
+ array2: m,
235
+ parser: P
224
236
  }), at = () => {
225
237
  const o = (e, r) => {
226
- const p = e ? S(e) : "", a = r ? S(r) : "";
227
- return p === a;
238
+ const s = e ? P(e) : "", i = r ? P(r) : "";
239
+ return s === i;
228
240
  };
229
- if (C.current !== -1 && z.filteredOptions && z.filteredOptions.length !== b.length && z.inputValue === g && (u ? s.length === z.value.length && z.value.every((e, r) => S(s[r]) === S(e)) : o(z.value, s))) {
230
- const e = z.filteredOptions[C.current];
241
+ if (S.current !== -1 && !vt({
242
+ array1: H.filteredOptions,
243
+ array2: m,
244
+ parser: P
245
+ }) && H.inputValue === g && (c ? l.length === H.value.length && H.value.every((e, r) => P(l[r]) === P(e)) : o(H.value, l))) {
246
+ const e = H.filteredOptions[S.current];
231
247
  if (e)
232
- return b.findIndex((r) => S(r) === S(e));
248
+ return m.findIndex((r) => P(r) === P(e));
233
249
  }
234
250
  return -1;
235
- }, Ce = x.useCallback(() => {
236
- if (!k)
251
+ }, Se = x.useCallback(() => {
252
+ if (!L)
237
253
  return;
238
254
  const o = at();
239
255
  if (o !== -1) {
240
- C.current = o;
256
+ S.current = o;
241
257
  return;
242
258
  }
243
- const e = u ? s[0] : s;
244
- if (b.length === 0 || e == null) {
245
- U({
259
+ const e = c ? l[0] : l;
260
+ if (m.length === 0 || e == null) {
261
+ j({
246
262
  diff: "reset"
247
263
  });
248
264
  return;
249
265
  }
250
- if (F.current) {
266
+ if (V.current) {
251
267
  if (e != null) {
252
- const r = b[C.current];
253
- if (u && r && s.findIndex((a) => Y(r, a)) !== -1)
268
+ const r = m[S.current];
269
+ if (c && r && l.findIndex((i) => Y(r, i)) !== -1)
254
270
  return;
255
- const p = b.findIndex((a) => Y(a, e));
256
- p === -1 ? U({
271
+ const s = m.findIndex((i) => Y(i, e));
272
+ s === -1 ? j({
257
273
  diff: "reset"
258
- }) : J({
259
- index: p
274
+ }) : _({
275
+ index: s
260
276
  });
261
277
  return;
262
278
  }
263
- if (C.current >= b.length - 1) {
264
- J({
265
- index: b.length - 1
279
+ if (S.current >= m.length - 1) {
280
+ _({
281
+ index: m.length - 1
266
282
  });
267
283
  return;
268
284
  }
269
- J({
270
- index: C.current
285
+ _({
286
+ index: S.current
271
287
  });
272
288
  }
273
289
  }, [
274
290
  // Only sync the highlighted index when the option switch between empty and not
275
- b.length,
291
+ m.length,
276
292
  // Don't sync the highlighted index with the value when multiple
277
293
  // eslint-disable-next-line react-hooks/exhaustive-deps
278
- u ? !1 : s,
279
- ke,
280
- U,
281
- J,
282
- k,
294
+ c ? !1 : l,
295
+ Re,
296
+ j,
297
+ _,
298
+ L,
283
299
  g,
284
- u
285
- ]), it = _e((o) => {
286
- Wt(F, o), o && Ce();
300
+ c
301
+ ]), Z = Ke((o) => {
302
+ Wt(V, o), o && Se();
287
303
  });
288
304
  process.env.NODE_ENV !== "production" && x.useEffect(() => {
289
- (!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${I} 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(`
290
- `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${I} expects an input element.`, "", I === "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(`
305
+ (!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${O} 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(`
306
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${O} expects an input element.`, "", O === "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(`
291
307
  `)));
292
- }, [I]), x.useEffect(() => {
293
- Ce();
294
- }, [Ce]);
295
- const R = (o) => {
296
- _ || (re(!0), ge(!0), Ee && Ee(o));
297
- }, ae = (o, e) => {
298
- _ && (re(!1), tt && tt(o, e));
299
- }, X = (o, e, r, p) => {
300
- if (u) {
301
- if (s.length === e.length && s.every((a, f) => a === e[f]))
308
+ }, [O]), x.useEffect(() => {
309
+ Ue && Se();
310
+ }, [Se, Ue]);
311
+ const K = (o) => {
312
+ q || (se(!0), me(!0), Me && Me(o));
313
+ }, ie = (o, e) => {
314
+ q && (se(!1), tt && tt(o, e));
315
+ }, J = (o, e, r, s) => {
316
+ if (c) {
317
+ if (l.length === e.length && l.every((i, b) => i === e[b]))
302
318
  return;
303
- } else if (s === e)
319
+ } else if (l === e)
304
320
  return;
305
- et && et(o, e, r, p), Pe(e);
306
- }, me = x.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
307
- let a = r, f = e;
308
- if (u) {
309
- if (f = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
310
- const w = f.filter((ve) => Y(e, ve));
311
- w.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${I} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${w.length} matches.`].join(`
321
+ et && et(o, e, r, s), $e(e);
322
+ }, X = x.useRef(!1), ee = (o, e, r = "selectOption", s = "options") => {
323
+ let i = r, b = e;
324
+ if (c) {
325
+ if (b = Array.isArray(l) ? l.slice() : [], process.env.NODE_ENV !== "production") {
326
+ const k = b.filter((ye) => Y(e, ye));
327
+ k.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${O} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${k.length} matches.`].join(`
312
328
  `));
313
329
  }
314
- const y = f.findIndex((w) => Y(e, w));
315
- y === -1 ? f.push(e) : p !== "freeSolo" && (f.splice(y, 1), a = "removeOption");
330
+ const y = b.findIndex((k) => Y(e, k));
331
+ y === -1 ? b.push(e) : s !== "freeSolo" && (b.splice(y, 1), i = "removeOption");
316
332
  }
317
- fe(o, f, a), X(o, f, a, {
333
+ ge(o, b, i), J(o, b, i, {
318
334
  option: e
319
- }), !ue && (!o || !o.ctrlKey && !o.metaKey) && ae(o, a), (v === !0 || v === "touch" && me.current || v === "mouse" && !me.current) && h.current.blur();
335
+ }), !ce && (!o || !o.ctrlKey && !o.metaKey) && ie(o, i), (v === !0 || v === "touch" && X.current || v === "mouse" && !X.current) && h.current.blur();
320
336
  };
321
- function je(o, e) {
337
+ function st(o, e) {
322
338
  if (o === -1)
323
339
  return -1;
324
340
  let r = o;
325
341
  for (; ; ) {
326
- if (e === "next" && r === s.length || e === "previous" && r === -1)
342
+ if (e === "next" && r === l.length || e === "previous" && r === -1)
327
343
  return -1;
328
- const p = L ? "data-item-index" : "data-tag-index", a = Oe.querySelector(`[${p}="${r}"]`);
329
- if (!a || !a.hasAttribute("tabindex") || a.disabled || a.getAttribute("aria-disabled") === "true")
344
+ const s = w ? "data-item-index" : "data-tag-index", i = Ce.querySelector(`[${s}="${r}"]`);
345
+ if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
330
346
  r += e === "next" ? 1 : -1;
331
347
  else
332
348
  return r;
333
349
  }
334
350
  }
335
- const Ue = (o, e) => {
336
- if (!u)
351
+ const le = (o, e) => {
352
+ if (!c)
337
353
  return;
338
- g === "" && ae(o, "toggleInput");
339
- let r = V;
340
- V === -1 ? g === "" && e === "previous" && (r = s.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === s.length && (r = -1)), r = je(r, e), Ve(r), j(r);
341
- }, ie = (o) => {
342
- xe.current = !0, ne(""), Q && Q(o, "", "clear"), X(o, u ? [] : null, "clear");
343
- }, st = (o) => (e) => {
344
- if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
354
+ g === "" && ie(o, "toggleInput");
355
+ let r = M;
356
+ M === -1 ? g === "" && e === "previous" && (r = l.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === l.length && (r = -1)), r = st(r, e), Fe(r), z(r);
357
+ }, Be = (o) => {
358
+ Oe.current = !0, ae(""), Q && Q(o, "", "clear"), J(o, c ? [] : null, "clear");
359
+ }, it = (o) => (e) => {
360
+ if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (M !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Fe(-1), z(-1)), e.which !== 229))
345
361
  switch (e.key) {
346
362
  case "Home":
347
- k && Ze && (e.preventDefault(), U({
363
+ L && Ze && (e.preventDefault(), j({
348
364
  diff: "start",
349
365
  direction: "next",
350
366
  reason: "keyboard",
@@ -352,7 +368,7 @@ function Yt(n) {
352
368
  }));
353
369
  break;
354
370
  case "End":
355
- k && Ze && (e.preventDefault(), U({
371
+ L && Ze && (e.preventDefault(), j({
356
372
  diff: "end",
357
373
  direction: "previous",
358
374
  reason: "keyboard",
@@ -360,158 +376,158 @@ function Yt(n) {
360
376
  }));
361
377
  break;
362
378
  case "PageUp":
363
- e.preventDefault(), U({
379
+ e.preventDefault(), j({
364
380
  diff: -wt,
365
381
  direction: "previous",
366
382
  reason: "keyboard",
367
383
  event: e
368
- }), R(e);
384
+ }), K(e);
369
385
  break;
370
386
  case "PageDown":
371
- e.preventDefault(), U({
387
+ e.preventDefault(), j({
372
388
  diff: wt,
373
389
  direction: "next",
374
390
  reason: "keyboard",
375
391
  event: e
376
- }), R(e);
392
+ }), K(e);
377
393
  break;
378
394
  case "ArrowDown":
379
- e.preventDefault(), U({
395
+ e.preventDefault(), j({
380
396
  diff: 1,
381
397
  direction: "next",
382
398
  reason: "keyboard",
383
399
  event: e
384
- }), R(e);
400
+ }), K(e);
385
401
  break;
386
402
  case "ArrowUp":
387
- e.preventDefault(), U({
403
+ e.preventDefault(), j({
388
404
  diff: -1,
389
405
  direction: "previous",
390
406
  reason: "keyboard",
391
407
  event: e
392
- }), R(e);
408
+ }), K(e);
393
409
  break;
394
410
  case "ArrowLeft":
395
- !u && L ? j(0) : Ue(e, "previous");
411
+ !c && w ? z(0) : le(e, "previous");
396
412
  break;
397
413
  case "ArrowRight":
398
- !u && L ? j(-1) : Ue(e, "next");
414
+ !c && w ? z(-1) : le(e, "next");
399
415
  break;
400
416
  case "Enter":
401
- if (C.current !== -1 && k) {
402
- const r = b[C.current], p = G ? G(r) : !1;
403
- if (e.preventDefault(), p)
417
+ if (S.current !== -1 && L) {
418
+ const r = m[S.current], s = W ? W(r) : !1;
419
+ if (e.preventDefault(), s)
404
420
  return;
405
- q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
406
- } else ce && g !== "" && He === !1 && (u && e.preventDefault(), q(e, g, "createOption", "freeSolo"));
421
+ ee(e, r, "selectOption"), f && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
422
+ } else de && g !== "" && ze === !1 && (c && e.preventDefault(), ee(e, g, "createOption", "freeSolo"));
407
423
  break;
408
424
  case "Escape":
409
- k ? (e.preventDefault(), e.stopPropagation(), ae(e, "escape")) : B && (g !== "" || u && s.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), ie(e));
425
+ L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : U && (g !== "" || c && l.length > 0 || w) && (e.preventDefault(), e.stopPropagation(), Be(e));
410
426
  break;
411
427
  case "Backspace":
412
- if (u && !K && g === "" && s.length > 0) {
413
- const r = V === -1 ? s.length - 1 : V, p = s.slice();
414
- p.splice(r, 1), X(e, p, "removeOption", {
415
- option: s[r]
428
+ if (c && !G && g === "" && l.length > 0) {
429
+ const r = M === -1 ? l.length - 1 : M, s = l.slice();
430
+ s.splice(r, 1), J(e, s, "removeOption", {
431
+ option: l[r]
416
432
  });
417
433
  }
418
- !u && L && !K && (Pe(null), j(-1));
434
+ !c && w && !G && ($e(null), z(-1));
419
435
  break;
420
436
  case "Delete":
421
- if (u && !K && g === "" && s.length > 0 && V !== -1) {
422
- const r = V, p = s.slice();
423
- p.splice(r, 1), X(e, p, "removeOption", {
424
- option: s[r]
437
+ if (c && !G && g === "" && l.length > 0 && M !== -1) {
438
+ const r = M, s = l.slice();
439
+ s.splice(r, 1), J(e, s, "removeOption", {
440
+ option: l[r]
425
441
  });
426
442
  }
427
- !u && L && !K && (Pe(null), j(-1));
443
+ !c && w && !G && ($e(null), z(-1));
428
444
  break;
429
445
  }
430
- }, lt = (o) => {
431
- Fe(!0), yt && !xe.current && R(o);
432
- }, se = (o) => {
433
- if (i(F)) {
446
+ }, be = (o) => {
447
+ He(!0), xt && !Oe.current && K(o);
448
+ }, he = (o) => {
449
+ if (a(V)) {
434
450
  h.current.focus();
435
451
  return;
436
452
  }
437
- Fe(!1), Ie.current = !0, xe.current = !1, D && C.current !== -1 && k ? q(o, b[C.current], "blur") : D && ce && g !== "" ? q(o, g, "blur", "freeSolo") : N && fe(o, s, "blur"), ae(o, "blur");
438
- }, $e = (o) => {
453
+ He(!1), Pe.current = !0, Oe.current = !1, R && S.current !== -1 && L ? ee(o, m[S.current], "blur") : R && de && g !== "" ? ee(o, g, "blur", "freeSolo") : D && ge(o, l, "blur"), ie(o, "blur");
454
+ }, Te = (o) => {
439
455
  const e = o.target.value;
440
- g !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
441
- }, Se = (o) => {
456
+ g !== e && (ae(e), me(!1), Q && Q(o, e, "input")), e === "" ? !B && !c && J(o, null, "clear") : K(o);
457
+ }, lt = (o) => {
442
458
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
443
- C.current !== e && J({
459
+ S.current !== e && _({
444
460
  event: o,
445
461
  index: e,
446
462
  reason: "mouse"
447
463
  });
448
464
  }, pt = (o) => {
449
- J({
465
+ _({
450
466
  event: o,
451
467
  index: Number(o.currentTarget.getAttribute("data-option-index")),
452
468
  reason: "touch"
453
- }), me.current = !0;
469
+ }), X.current = !0;
454
470
  }, ut = (o) => {
455
471
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
456
- q(o, b[e], "selectOption"), me.current = !1;
457
- }, Be = (o) => (e) => {
458
- const r = s.slice();
459
- r.splice(o, 1), X(e, r, "removeOption", {
460
- option: s[o]
472
+ ee(o, m[e], "selectOption"), X.current = !1;
473
+ }, ct = (o) => (e) => {
474
+ const r = l.slice();
475
+ r.splice(o, 1), J(e, r, "removeOption", {
476
+ option: l[o]
461
477
  });
462
- }, Ct = (o) => {
463
- X(o, null, "removeOption", {
464
- option: s
478
+ }, ve = (o) => {
479
+ J(o, null, "removeOption", {
480
+ option: l
465
481
  });
466
- }, be = (o) => {
467
- _ ? ae(o, "toggleInput") : R(o);
468
- }, O = (o) => {
469
- o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
470
- }, P = (o) => {
471
- o.currentTarget.contains(o.target) && (h.current.focus(), ot && Ie.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Ie.current = !1);
472
- }, Z = (o) => {
473
- !E && (g === "" || !_) && be(o);
482
+ }, I = (o) => {
483
+ q ? ie(o, "toggleInput") : K(o);
484
+ }, C = (o) => {
485
+ o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== E && o.preventDefault();
486
+ }, te = (o) => {
487
+ o.currentTarget.contains(o.target) && (h.current.focus(), ot && Pe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Pe.current = !1);
488
+ }, dt = (o) => {
489
+ !N && (g === "" || !q) && I(o);
474
490
  };
475
- let Te = ce && g.length > 0;
476
- Te = Te || (u ? s.length > 0 : s !== null);
477
- let We = b;
478
- if (oe) {
491
+ let Ae = de && g.length > 0;
492
+ Ae = Ae || (c ? l.length > 0 : l !== null);
493
+ let We = m;
494
+ if (re) {
479
495
  const o = /* @__PURE__ */ new Map();
480
496
  let e = !1;
481
- We = b.reduce((r, p, a) => {
482
- const f = oe(p);
483
- return r.length > 0 && r[r.length - 1].group === f ? r[r.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (o.get(f) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${I} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(f, !0)), r.push({
484
- key: a,
485
- index: a,
486
- group: f,
487
- options: [p]
497
+ We = m.reduce((r, s, i) => {
498
+ const b = re(s);
499
+ return r.length > 0 && r[r.length - 1].group === b ? r[r.length - 1].options.push(s) : (process.env.NODE_ENV !== "production" && (o.get(b) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${O} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(b, !0)), r.push({
500
+ key: i,
501
+ index: i,
502
+ group: b,
503
+ options: [s]
488
504
  })), r;
489
505
  }, []);
490
506
  }
491
- return E && de && se(), {
507
+ return N && fe && he(), {
492
508
  getRootProps: (o = {}) => ({
493
509
  ...o,
494
- onKeyDown: st(o),
495
- onMouseDown: O,
496
- onClick: P
510
+ onKeyDown: it(o),
511
+ onMouseDown: C,
512
+ onClick: te
497
513
  }),
498
514
  getInputLabelProps: () => ({
499
- id: `${M}-label`,
500
- htmlFor: M
515
+ id: `${E}-label`,
516
+ htmlFor: E
501
517
  }),
502
518
  getInputProps: () => ({
503
- id: M,
519
+ id: E,
504
520
  value: g,
505
- onBlur: se,
506
- onFocus: lt,
507
- onChange: $e,
508
- onMouseDown: Z,
521
+ onBlur: he,
522
+ onFocus: be,
523
+ onChange: Te,
524
+ onMouseDown: dt,
509
525
  // if open then this is handled imperatively so don't let react override
510
526
  // only have an opinion about this when closed
511
- "aria-activedescendant": k ? "" : null,
512
- "aria-autocomplete": m ? "both" : "list",
513
- "aria-controls": ze ? `${M}-listbox` : void 0,
514
- "aria-expanded": ze,
527
+ "aria-activedescendant": L ? "" : null,
528
+ "aria-autocomplete": f ? "both" : "list",
529
+ "aria-controls": je ? `${E}-listbox` : void 0,
530
+ "aria-expanded": je,
515
531
  // Disable browser's suggestion that might overlap with the popup.
516
532
  // Handle autocomplete but not autofill.
517
533
  autoComplete: "off",
@@ -519,33 +535,33 @@ function Yt(n) {
519
535
  autoCapitalize: "none",
520
536
  spellCheck: "false",
521
537
  role: "combobox",
522
- disabled: E
538
+ disabled: N
523
539
  }),
524
540
  getClearProps: () => ({
525
541
  tabIndex: -1,
526
542
  type: "button",
527
- onClick: ie
543
+ onClick: Be
528
544
  }),
529
545
  getItemProps: ({
530
546
  index: o = 0
531
547
  } = {}) => ({
532
- ...u && {
548
+ ...c && {
533
549
  key: o
534
550
  },
535
- ...L ? {
551
+ ...w ? {
536
552
  "data-item-index": o
537
553
  } : {
538
554
  "data-tag-index": o
539
555
  },
540
556
  tabIndex: -1,
541
- ...!K && {
542
- onDelete: u ? Be(o) : Ct
557
+ ...!G && {
558
+ onDelete: c ? ct(o) : ve
543
559
  }
544
560
  }),
545
561
  getPopupIndicatorProps: () => ({
546
562
  tabIndex: -1,
547
563
  type: "button",
548
- onClick: be
564
+ onClick: I
549
565
  }),
550
566
  // deprecated
551
567
  getTagProps: ({
@@ -554,15 +570,15 @@ function Yt(n) {
554
570
  key: o,
555
571
  "data-tag-index": o,
556
572
  tabIndex: -1,
557
- ...!K && {
558
- onDelete: Be(o)
573
+ ...!G && {
574
+ onDelete: ct(o)
559
575
  }
560
576
  }),
561
577
  getListboxProps: () => ({
562
578
  role: "listbox",
563
- id: `${M}-listbox`,
564
- "aria-labelledby": `${M}-label`,
565
- ref: it,
579
+ id: `${E}-listbox`,
580
+ "aria-labelledby": `${E}-label`,
581
+ ref: Z,
566
582
  onMouseDown: (o) => {
567
583
  o.preventDefault();
568
584
  }
@@ -571,59 +587,59 @@ function Yt(n) {
571
587
  index: o,
572
588
  option: e
573
589
  }) => {
574
- const r = (u ? s : [s]).some((a) => a != null && Y(e, a)), p = G ? G(e) : !1;
590
+ const r = (c ? l : [l]).some((i) => i != null && Y(e, i)), s = W ? W(e) : !1;
575
591
  return {
576
- key: (Re == null ? void 0 : Re(e)) ?? S(e),
592
+ key: (De == null ? void 0 : De(e)) ?? P(e),
577
593
  tabIndex: -1,
578
594
  role: "option",
579
- id: `${M}-option-${o}`,
580
- onMouseMove: Se,
595
+ id: `${E}-option-${o}`,
596
+ onMouseMove: lt,
581
597
  onClick: ut,
582
598
  onTouchStart: pt,
583
599
  "data-option-index": o,
584
- "aria-disabled": p,
600
+ "aria-disabled": s,
585
601
  "aria-selected": r
586
602
  };
587
603
  },
588
- id: M,
604
+ id: E,
589
605
  inputValue: g,
590
- value: s,
591
- dirty: Te,
592
- expanded: k && Oe,
593
- popupOpen: k,
594
- focused: de || V !== -1,
595
- anchorEl: Oe,
596
- setAnchorEl: It,
597
- focusedItem: V,
606
+ value: l,
607
+ dirty: Ae,
608
+ expanded: L && Ce,
609
+ popupOpen: L,
610
+ focused: fe || M !== -1,
611
+ anchorEl: Ce,
612
+ setAnchorEl: Ot,
613
+ focusedItem: M,
598
614
  // deprecated
599
- focusedTag: V,
615
+ focusedTag: M,
600
616
  groupedOptions: We
601
617
  };
602
618
  }
603
619
  function Qt(n) {
604
- return Dt("MuiListSubheader", n);
620
+ return Nt("MuiListSubheader", n);
605
621
  }
606
- const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
622
+ const Vo = Dt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
607
623
  const {
608
- classes: i,
609
- color: d,
610
- disableGutters: m,
611
- inset: T,
612
- disableSticky: D
624
+ classes: a,
625
+ color: u,
626
+ disableGutters: f,
627
+ inset: $,
628
+ disableSticky: R
613
629
  } = n, v = {
614
- root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters", T && "inset", !D && "sticky"]
630
+ root: ["root", u !== "default" && `color${Ye(u)}`, !f && "gutters", $ && "inset", !R && "sticky"]
615
631
  };
616
- return Et(v, Qt, i);
617
- }, eo = H("li", {
632
+ return Mt(v, Qt, a);
633
+ }, eo = F("li", {
618
634
  name: "MuiListSubheader",
619
635
  slot: "Root",
620
- overridesResolver: (n, i) => {
636
+ overridesResolver: (n, a) => {
621
637
  const {
622
- ownerState: d
638
+ ownerState: u
623
639
  } = n;
624
- return [i.root, d.color !== "default" && i[`color${Ye(d.color)}`], !d.disableGutters && i.gutters, d.inset && i.inset, !d.disableSticky && i.sticky];
640
+ return [a.root, u.color !== "default" && a[`color${Ye(u.color)}`], !u.disableGutters && a.gutters, u.inset && a.inset, !u.disableSticky && a.sticky];
625
641
  }
626
- })(pe(({
642
+ })(ue(({
627
643
  theme: n
628
644
  }) => ({
629
645
  boxSizing: "border-box",
@@ -649,23 +665,23 @@ const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
649
665
  }
650
666
  }, {
651
667
  props: ({
652
- ownerState: i
653
- }) => !i.disableGutters,
668
+ ownerState: a
669
+ }) => !a.disableGutters,
654
670
  style: {
655
671
  paddingLeft: 16,
656
672
  paddingRight: 16
657
673
  }
658
674
  }, {
659
675
  props: ({
660
- ownerState: i
661
- }) => i.inset,
676
+ ownerState: a
677
+ }) => a.inset,
662
678
  style: {
663
679
  paddingLeft: 72
664
680
  }
665
681
  }, {
666
682
  props: ({
667
- ownerState: i
668
- }) => !i.disableSticky,
683
+ ownerState: a
684
+ }) => !a.disableSticky,
669
685
  style: {
670
686
  position: "sticky",
671
687
  top: 0,
@@ -673,32 +689,32 @@ const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
673
689
  backgroundColor: (n.vars || n).palette.background.paper
674
690
  }
675
691
  }]
676
- }))), Xe = /* @__PURE__ */ x.forwardRef(function(i, d) {
677
- const m = Nt({
678
- props: i,
692
+ }))), Xe = /* @__PURE__ */ x.forwardRef(function(a, u) {
693
+ const f = Et({
694
+ props: a,
679
695
  name: "MuiListSubheader"
680
696
  }), {
681
- className: T,
682
- color: D = "default",
697
+ className: $,
698
+ color: R = "default",
683
699
  component: v = "li",
684
- disableGutters: N = !1,
685
- disableSticky: B = !1,
686
- inset: I = !1,
687
- ...$
688
- } = m, W = {
689
- ...m,
690
- color: D,
700
+ disableGutters: D = !1,
701
+ disableSticky: U = !1,
702
+ inset: O = !1,
703
+ ...T
704
+ } = f, B = {
705
+ ...f,
706
+ color: R,
691
707
  component: v,
692
- disableGutters: N,
693
- disableSticky: B,
694
- inset: I
695
- }, ue = Zt(W);
708
+ disableGutters: D,
709
+ disableSticky: U,
710
+ inset: O
711
+ }, ce = Zt(B);
696
712
  return /* @__PURE__ */ A(eo, {
697
713
  as: v,
698
- className: Je(ue.root, T),
699
- ref: d,
700
- ownerState: W,
701
- ...$
714
+ className: Je(ce.root, $),
715
+ ref: u,
716
+ ownerState: B,
717
+ ...T
702
718
  });
703
719
  });
704
720
  Xe && (Xe.muiSkipListHighlight = !0);
@@ -750,31 +766,31 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
750
766
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
751
767
  });
752
768
  function to(n) {
753
- return Dt("MuiAutocomplete", n);
769
+ return Nt("MuiAutocomplete", n);
754
770
  }
755
- const l = Rt("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"]);
756
- var Lt, kt;
771
+ const p = Dt("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"]);
772
+ var kt, Rt;
757
773
  const oo = (n) => {
758
774
  const {
759
- classes: i,
760
- disablePortal: d,
761
- expanded: m,
762
- focused: T,
763
- fullWidth: D,
775
+ classes: a,
776
+ disablePortal: u,
777
+ expanded: f,
778
+ focused: $,
779
+ fullWidth: R,
764
780
  hasClearIcon: v,
765
- hasPopupIcon: N,
766
- inputFocused: B,
767
- popupOpen: I,
768
- size: $
769
- } = n, W = {
770
- root: ["root", m && "expanded", T && "focused", D && "fullWidth", v && "hasClearIcon", N && "hasPopupIcon"],
781
+ hasPopupIcon: D,
782
+ inputFocused: U,
783
+ popupOpen: O,
784
+ size: T
785
+ } = n, B = {
786
+ root: ["root", f && "expanded", $ && "focused", R && "fullWidth", v && "hasClearIcon", D && "hasPopupIcon"],
771
787
  inputRoot: ["inputRoot"],
772
- input: ["input", B && "inputFocused"],
773
- tag: ["tag", `tagSize${Ye($)}`],
788
+ input: ["input", U && "inputFocused"],
789
+ tag: ["tag", `tagSize${Ye(T)}`],
774
790
  endAdornment: ["endAdornment"],
775
791
  clearIndicator: ["clearIndicator"],
776
- popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
777
- popper: ["popper", d && "popperDisablePortal"],
792
+ popupIndicator: ["popupIndicator", O && "popupIndicatorOpen"],
793
+ popper: ["popper", u && "popperDisablePortal"],
778
794
  paper: ["paper"],
779
795
  listbox: ["listbox"],
780
796
  loading: ["loading"],
@@ -783,134 +799,134 @@ const oo = (n) => {
783
799
  groupLabel: ["groupLabel"],
784
800
  groupUl: ["groupUl"]
785
801
  };
786
- return Et(W, to, i);
787
- }, no = H("div", {
802
+ return Mt(B, to, a);
803
+ }, no = F("div", {
788
804
  name: "MuiAutocomplete",
789
805
  slot: "Root",
790
- overridesResolver: (n, i) => {
806
+ overridesResolver: (n, a) => {
791
807
  const {
792
- ownerState: d
808
+ ownerState: u
793
809
  } = n, {
794
- fullWidth: m,
795
- hasClearIcon: T,
796
- hasPopupIcon: D,
810
+ fullWidth: f,
811
+ hasClearIcon: $,
812
+ hasPopupIcon: R,
797
813
  inputFocused: v,
798
- size: N
799
- } = d;
814
+ size: D
815
+ } = u;
800
816
  return [{
801
- [`& .${l.tag}`]: i.tag
817
+ [`& .${p.tag}`]: a.tag
802
818
  }, {
803
- [`& .${l.tag}`]: i[`tagSize${Ye(N)}`]
819
+ [`& .${p.tag}`]: a[`tagSize${Ye(D)}`]
804
820
  }, {
805
- [`& .${l.inputRoot}`]: i.inputRoot
821
+ [`& .${p.inputRoot}`]: a.inputRoot
806
822
  }, {
807
- [`& .${l.input}`]: i.input
823
+ [`& .${p.input}`]: a.input
808
824
  }, {
809
- [`& .${l.input}`]: v && i.inputFocused
810
- }, i.root, m && i.fullWidth, D && i.hasPopupIcon, T && i.hasClearIcon];
825
+ [`& .${p.input}`]: v && a.inputFocused
826
+ }, a.root, f && a.fullWidth, R && a.hasPopupIcon, $ && a.hasClearIcon];
811
827
  }
812
828
  })({
813
- [`&.${l.focused} .${l.clearIndicator}`]: {
829
+ [`&.${p.focused} .${p.clearIndicator}`]: {
814
830
  visibility: "visible"
815
831
  },
816
832
  /* Avoid double tap issue on iOS */
817
833
  "@media (pointer: fine)": {
818
- [`&:hover .${l.clearIndicator}`]: {
834
+ [`&:hover .${p.clearIndicator}`]: {
819
835
  visibility: "visible"
820
836
  }
821
837
  },
822
- [`& .${l.tag}`]: {
838
+ [`& .${p.tag}`]: {
823
839
  margin: 3,
824
840
  maxWidth: "calc(100% - 6px)"
825
841
  },
826
- [`& .${l.inputRoot}`]: {
827
- [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
842
+ [`& .${p.inputRoot}`]: {
843
+ [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
828
844
  paddingRight: 30
829
845
  },
830
- [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
846
+ [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
831
847
  paddingRight: 56
832
848
  },
833
- [`& .${l.input}`]: {
849
+ [`& .${p.input}`]: {
834
850
  width: 0,
835
851
  minWidth: 30
836
852
  }
837
853
  },
838
- [`& .${dt.root}`]: {
854
+ [`& .${ft.root}`]: {
839
855
  paddingBottom: 1,
840
856
  "& .MuiInput-input": {
841
857
  padding: "4px 4px 4px 0px"
842
858
  }
843
859
  },
844
- [`& .${dt.root}.${le.sizeSmall}`]: {
845
- [`& .${dt.input}`]: {
860
+ [`& .${ft.root}.${pe.sizeSmall}`]: {
861
+ [`& .${ft.input}`]: {
846
862
  padding: "2px 4px 3px 0"
847
863
  }
848
864
  },
849
865
  [`& .${St.root}`]: {
850
866
  padding: 9,
851
- [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
867
+ [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
852
868
  paddingRight: 39
853
869
  },
854
- [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
870
+ [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
855
871
  paddingRight: 65
856
872
  },
857
- [`& .${l.input}`]: {
873
+ [`& .${p.input}`]: {
858
874
  padding: "7.5px 4px 7.5px 5px"
859
875
  },
860
- [`& .${l.endAdornment}`]: {
876
+ [`& .${p.endAdornment}`]: {
861
877
  right: 9
862
878
  }
863
879
  },
864
- [`& .${St.root}.${le.sizeSmall}`]: {
880
+ [`& .${St.root}.${pe.sizeSmall}`]: {
865
881
  // Don't specify paddingRight, as it overrides the default value set when there is only
866
882
  // one of the popup or clear icon as the specificity is equal so the latter one wins
867
883
  paddingTop: 6,
868
884
  paddingBottom: 6,
869
885
  paddingLeft: 6,
870
- [`& .${l.input}`]: {
886
+ [`& .${p.input}`]: {
871
887
  padding: "2.5px 4px 2.5px 8px"
872
888
  }
873
889
  },
874
- [`& .${he.root}`]: {
890
+ [`& .${xe.root}`]: {
875
891
  paddingTop: 19,
876
892
  paddingLeft: 8,
877
- [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
893
+ [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
878
894
  paddingRight: 39
879
895
  },
880
- [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
896
+ [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
881
897
  paddingRight: 65
882
898
  },
883
- [`& .${he.input}`]: {
899
+ [`& .${xe.input}`]: {
884
900
  padding: "7px 4px"
885
901
  },
886
- [`& .${l.endAdornment}`]: {
902
+ [`& .${p.endAdornment}`]: {
887
903
  right: 9
888
904
  }
889
905
  },
890
- [`& .${he.root}.${le.sizeSmall}`]: {
906
+ [`& .${xe.root}.${pe.sizeSmall}`]: {
891
907
  paddingBottom: 1,
892
- [`& .${he.input}`]: {
908
+ [`& .${xe.input}`]: {
893
909
  padding: "2.5px 4px"
894
910
  }
895
911
  },
896
- [`& .${le.hiddenLabel}`]: {
912
+ [`& .${pe.hiddenLabel}`]: {
897
913
  paddingTop: 8
898
914
  },
899
- [`& .${he.root}.${le.hiddenLabel}`]: {
915
+ [`& .${xe.root}.${pe.hiddenLabel}`]: {
900
916
  paddingTop: 0,
901
917
  paddingBottom: 0,
902
- [`& .${l.input}`]: {
918
+ [`& .${p.input}`]: {
903
919
  paddingTop: 16,
904
920
  paddingBottom: 17
905
921
  }
906
922
  },
907
- [`& .${he.root}.${le.hiddenLabel}.${le.sizeSmall}`]: {
908
- [`& .${l.input}`]: {
923
+ [`& .${xe.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
924
+ [`& .${p.input}`]: {
909
925
  paddingTop: 8,
910
926
  paddingBottom: 9
911
927
  }
912
928
  },
913
- [`& .${l.input}`]: {
929
+ [`& .${p.input}`]: {
914
930
  flexGrow: 1,
915
931
  textOverflow: "ellipsis",
916
932
  opacity: 0
@@ -927,7 +943,7 @@ const oo = (n) => {
927
943
  size: "small"
928
944
  },
929
945
  style: {
930
- [`& .${l.tag}`]: {
946
+ [`& .${p.tag}`]: {
931
947
  margin: 2,
932
948
  maxWidth: "calc(100% - 4px)"
933
949
  }
@@ -937,7 +953,7 @@ const oo = (n) => {
937
953
  inputFocused: !0
938
954
  },
939
955
  style: {
940
- [`& .${l.input}`]: {
956
+ [`& .${p.input}`]: {
941
957
  opacity: 1
942
958
  }
943
959
  }
@@ -946,12 +962,12 @@ const oo = (n) => {
946
962
  multiple: !0
947
963
  },
948
964
  style: {
949
- [`& .${l.inputRoot}`]: {
965
+ [`& .${p.inputRoot}`]: {
950
966
  flexWrap: "wrap"
951
967
  }
952
968
  }
953
969
  }]
954
- }), ro = H("div", {
970
+ }), ro = F("div", {
955
971
  name: "MuiAutocomplete",
956
972
  slot: "EndAdornment"
957
973
  })({
@@ -960,21 +976,21 @@ const oo = (n) => {
960
976
  right: 0,
961
977
  top: "50%",
962
978
  transform: "translate(0, -50%)"
963
- }), ao = H(Ft, {
979
+ }), ao = F(Ht, {
964
980
  name: "MuiAutocomplete",
965
981
  slot: "ClearIndicator"
966
982
  })({
967
983
  marginRight: -2,
968
984
  padding: 4,
969
985
  visibility: "hidden"
970
- }), io = H(Ft, {
986
+ }), so = F(Ht, {
971
987
  name: "MuiAutocomplete",
972
988
  slot: "PopupIndicator",
973
- overridesResolver: (n, i) => {
989
+ overridesResolver: (n, a) => {
974
990
  const {
975
- ownerState: d
991
+ ownerState: u
976
992
  } = n;
977
- return [i.popupIndicator, d.popupOpen && i.popupIndicatorOpen];
993
+ return [a.popupIndicator, u.popupOpen && a.popupIndicatorOpen];
978
994
  }
979
995
  })({
980
996
  padding: 2,
@@ -987,18 +1003,18 @@ const oo = (n) => {
987
1003
  transform: "rotate(180deg)"
988
1004
  }
989
1005
  }]
990
- }), so = H(Vt, {
1006
+ }), io = F(Ft, {
991
1007
  name: "MuiAutocomplete",
992
1008
  slot: "Popper",
993
- overridesResolver: (n, i) => {
1009
+ overridesResolver: (n, a) => {
994
1010
  const {
995
- ownerState: d
1011
+ ownerState: u
996
1012
  } = n;
997
1013
  return [{
998
- [`& .${l.option}`]: i.option
999
- }, i.popper, d.disablePortal && i.popperDisablePortal];
1014
+ [`& .${p.option}`]: a.option
1015
+ }, a.popper, u.disablePortal && a.popperDisablePortal];
1000
1016
  }
1001
- })(pe(({
1017
+ })(ue(({
1002
1018
  theme: n
1003
1019
  }) => ({
1004
1020
  zIndex: (n.vars || n).zIndex.modal,
@@ -1010,34 +1026,34 @@ const oo = (n) => {
1010
1026
  position: "absolute"
1011
1027
  }
1012
1028
  }]
1013
- }))), lo = H(Mt, {
1029
+ }))), lo = F(Vt, {
1014
1030
  name: "MuiAutocomplete",
1015
1031
  slot: "Paper"
1016
- })(pe(({
1032
+ })(ue(({
1017
1033
  theme: n
1018
1034
  }) => ({
1019
1035
  ...n.typography.body1,
1020
1036
  overflow: "auto"
1021
- }))), po = H("div", {
1037
+ }))), po = F("div", {
1022
1038
  name: "MuiAutocomplete",
1023
1039
  slot: "Loading"
1024
- })(pe(({
1040
+ })(ue(({
1025
1041
  theme: n
1026
1042
  }) => ({
1027
1043
  color: (n.vars || n).palette.text.secondary,
1028
1044
  padding: "14px 16px"
1029
- }))), uo = H("div", {
1045
+ }))), uo = F("div", {
1030
1046
  name: "MuiAutocomplete",
1031
1047
  slot: "NoOptions"
1032
- })(pe(({
1048
+ })(ue(({
1033
1049
  theme: n
1034
1050
  }) => ({
1035
1051
  color: (n.vars || n).palette.text.secondary,
1036
1052
  padding: "14px 16px"
1037
- }))), co = H("ul", {
1053
+ }))), co = F("ul", {
1038
1054
  name: "MuiAutocomplete",
1039
1055
  slot: "Listbox"
1040
- })(pe(({
1056
+ })(ue(({
1041
1057
  theme: n
1042
1058
  }) => ({
1043
1059
  listStyle: "none",
@@ -1046,7 +1062,7 @@ const oo = (n) => {
1046
1062
  maxHeight: "40vh",
1047
1063
  overflow: "auto",
1048
1064
  position: "relative",
1049
- [`& .${l.option}`]: {
1065
+ [`& .${p.option}`]: {
1050
1066
  minHeight: 48,
1051
1067
  display: "flex",
1052
1068
  overflow: "hidden",
@@ -1063,7 +1079,7 @@ const oo = (n) => {
1063
1079
  [n.breakpoints.up("sm")]: {
1064
1080
  minHeight: "auto"
1065
1081
  },
1066
- [`&.${l.focused}`]: {
1082
+ [`&.${p.focused}`]: {
1067
1083
  backgroundColor: (n.vars || n).palette.action.hover,
1068
1084
  // Reset on touch devices, it doesn't add specificity
1069
1085
  "@media (hover: none)": {
@@ -1074,327 +1090,327 @@ const oo = (n) => {
1074
1090
  opacity: (n.vars || n).palette.action.disabledOpacity,
1075
1091
  pointerEvents: "none"
1076
1092
  },
1077
- [`&.${l.focusVisible}`]: {
1093
+ [`&.${p.focusVisible}`]: {
1078
1094
  backgroundColor: (n.vars || n).palette.action.focus
1079
1095
  },
1080
1096
  '&[aria-selected="true"]': {
1081
- backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})` : ct(n.palette.primary.main, n.palette.action.selectedOpacity),
1082
- [`&.${l.focused}`]: {
1083
- backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))` : ct(n.palette.primary.main, n.palette.action.selectedOpacity + n.palette.action.hoverOpacity),
1097
+ backgroundColor: n.alpha((n.vars || n).palette.primary.main, (n.vars || n).palette.action.selectedOpacity),
1098
+ [`&.${p.focused}`]: {
1099
+ backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.hoverOpacity}`),
1084
1100
  // Reset on touch devices, it doesn't add specificity
1085
1101
  "@media (hover: none)": {
1086
1102
  backgroundColor: (n.vars || n).palette.action.selected
1087
1103
  }
1088
1104
  },
1089
- [`&.${l.focusVisible}`]: {
1090
- backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))` : ct(n.palette.primary.main, n.palette.action.selectedOpacity + n.palette.action.focusOpacity)
1105
+ [`&.${p.focusVisible}`]: {
1106
+ backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.focusOpacity}`)
1091
1107
  }
1092
1108
  }
1093
1109
  }
1094
- }))), fo = H(Xe, {
1110
+ }))), fo = F(Xe, {
1095
1111
  name: "MuiAutocomplete",
1096
1112
  slot: "GroupLabel"
1097
- })(pe(({
1113
+ })(ue(({
1098
1114
  theme: n
1099
1115
  }) => ({
1100
1116
  backgroundColor: (n.vars || n).palette.background.paper,
1101
1117
  top: -8
1102
- }))), go = H("ul", {
1118
+ }))), go = F("ul", {
1103
1119
  name: "MuiAutocomplete",
1104
1120
  slot: "GroupUl"
1105
1121
  })({
1106
1122
  padding: 0,
1107
- [`& .${l.option}`]: {
1123
+ [`& .${p.option}`]: {
1108
1124
  paddingLeft: 24
1109
1125
  }
1110
- }), mo = /* @__PURE__ */ x.forwardRef(function(i, d) {
1111
- const m = Nt({
1112
- props: i,
1126
+ }), mo = /* @__PURE__ */ x.forwardRef(function(a, u) {
1127
+ const f = Et({
1128
+ props: a,
1113
1129
  name: "MuiAutocomplete"
1114
1130
  }), {
1115
- autoComplete: T = !1,
1116
- autoHighlight: D = !1,
1131
+ autoComplete: $ = !1,
1132
+ autoHighlight: R = !1,
1117
1133
  autoSelect: v = !1,
1118
- blurOnSelect: N = !1,
1119
- ChipProps: B,
1120
- className: I,
1121
- clearIcon: $ = Lt || (Lt = /* @__PURE__ */ A(jt, {
1134
+ blurOnSelect: D = !1,
1135
+ ChipProps: U,
1136
+ className: O,
1137
+ clearIcon: T = kt || (kt = /* @__PURE__ */ A(jt, {
1122
1138
  fontSize: "small"
1123
1139
  })),
1124
- clearOnBlur: W = !m.freeSolo,
1125
- clearOnEscape: ue = !1,
1126
- clearText: E = "Clear",
1127
- closeText: Ae = "Close",
1128
- componentsProps: Le,
1129
- defaultValue: mt = m.multiple ? [] : null,
1130
- disableClearable: ke = !1,
1131
- disableCloseOnSelect: ce = !1,
1132
- disabled: G = !1,
1133
- disabledItemsFocusable: Re = !1,
1140
+ clearOnBlur: B = !f.freeSolo,
1141
+ clearOnEscape: ce = !1,
1142
+ clearText: N = "Clear",
1143
+ closeText: Le = "Close",
1144
+ componentsProps: ke,
1145
+ defaultValue: bt = f.multiple ? [] : null,
1146
+ disableClearable: Re = !1,
1147
+ disableCloseOnSelect: de = !1,
1148
+ disabled: W = !1,
1149
+ disabledItemsFocusable: De = !1,
1134
1150
  disableListWrap: Qe = !1,
1135
- disablePortal: oe = !1,
1151
+ disablePortal: re = !1,
1136
1152
  filterOptions: Ze,
1137
- filterSelectedOptions: bt = !1,
1138
- forcePopupIcon: ye = "auto",
1139
- freeSolo: De = !1,
1153
+ filterSelectedOptions: ht = !1,
1154
+ forcePopupIcon: Ie = "auto",
1155
+ freeSolo: Ne = !1,
1140
1156
  fullWidth: Y = !1,
1141
- getLimitTagsText: u = (c) => `+${c}`,
1157
+ getLimitTagsText: c = (d) => `+${d}`,
1142
1158
  getOptionDisabled: et,
1143
1159
  getOptionKey: tt,
1144
- getOptionLabel: Ne,
1160
+ getOptionLabel: Ee,
1145
1161
  isOptionEqualToValue: Q,
1146
- groupBy: Ee,
1147
- handleHomeEndKeys: ht = !m.freeSolo,
1148
- id: yt,
1149
- includeInputInList: xt = !1,
1150
- inputValue: K,
1151
- limitTags: L = -1,
1162
+ groupBy: Me,
1163
+ handleHomeEndKeys: yt = !f.freeSolo,
1164
+ id: xt,
1165
+ includeInputInList: It = !1,
1166
+ inputValue: G,
1167
+ limitTags: w = -1,
1152
1168
  ListboxComponent: ot,
1153
- ListboxProps: Me,
1154
- loading: M = !1,
1155
- loadingText: S = "Loading…",
1156
- multiple: xe = !1,
1157
- noOptionsText: Ie = "No options",
1169
+ ListboxProps: Ve,
1170
+ loading: E = !1,
1171
+ loadingText: P = "Loading…",
1172
+ multiple: Oe = !1,
1173
+ noOptionsText: Pe = "No options",
1158
1174
  onChange: h,
1159
- onClose: F,
1160
- onHighlightChange: Oe,
1161
- onInputChange: It,
1162
- onOpen: V,
1163
- open: Ve,
1175
+ onClose: V,
1176
+ onHighlightChange: Ce,
1177
+ onInputChange: Ot,
1178
+ onOpen: M,
1179
+ open: Fe,
1164
1180
  openOnFocus: nt = !1,
1165
- openText: C = "Open",
1166
- options: Ot,
1167
- PaperComponent: s,
1168
- PopperComponent: Pe,
1169
- popupIcon: g = kt || (kt = /* @__PURE__ */ A(zt, {})),
1170
- readOnly: ne = !1,
1171
- renderGroup: de,
1172
- renderInput: Fe,
1173
- renderOption: fe,
1174
- renderTags: _,
1175
- renderValue: re,
1176
- selectOnFocus: Pt = !m.freeSolo,
1177
- size: ge = "medium",
1178
- slots: He = {},
1179
- slotProps: k = {},
1180
- value: b,
1181
- ...z
1182
- } = m, {
1183
- getRootProps: ze,
1184
- getInputProps: j,
1181
+ openText: S = "Open",
1182
+ options: Pt,
1183
+ PaperComponent: l,
1184
+ PopperComponent: $e,
1185
+ popupIcon: g = Rt || (Rt = /* @__PURE__ */ A(zt, {})),
1186
+ readOnly: ae = !1,
1187
+ renderGroup: fe,
1188
+ renderInput: He,
1189
+ renderOption: ge,
1190
+ renderTags: q,
1191
+ renderValue: se,
1192
+ selectOnFocus: Ct = !f.freeSolo,
1193
+ size: me = "medium",
1194
+ slots: ze = {},
1195
+ slotProps: L = {},
1196
+ value: m,
1197
+ ...H
1198
+ } = f, {
1199
+ getRootProps: je,
1200
+ getInputProps: z,
1185
1201
  getInputLabelProps: rt,
1186
- getPopupIndicatorProps: J,
1187
- getClearProps: U,
1188
- getItemProps: at,
1189
- getListboxProps: Ce,
1190
- getOptionProps: it,
1191
- value: R,
1192
- dirty: ae,
1193
- expanded: X,
1194
- id: me,
1195
- popupOpen: q,
1196
- focused: je,
1197
- focusedItem: Ue,
1198
- anchorEl: ie,
1199
- setAnchorEl: st,
1200
- inputValue: lt,
1201
- groupedOptions: se
1202
+ getPopupIndicatorProps: _,
1203
+ getClearProps: j,
1204
+ getItemProps: Ue,
1205
+ getListboxProps: at,
1206
+ getOptionProps: Se,
1207
+ value: Z,
1208
+ dirty: K,
1209
+ expanded: ie,
1210
+ id: J,
1211
+ popupOpen: X,
1212
+ focused: ee,
1213
+ focusedItem: st,
1214
+ anchorEl: le,
1215
+ setAnchorEl: Be,
1216
+ inputValue: it,
1217
+ groupedOptions: be
1202
1218
  } = Yt({
1203
- ...m,
1219
+ ...f,
1204
1220
  componentName: "Autocomplete"
1205
- }), $e = !ke && !G && ae && !ne, Se = (!De || ye === !0) && ye !== !1, {
1206
- onMouseDown: pt
1207
- } = j(), {
1208
- ref: ut,
1209
- ...Be
1210
- } = Ce(), be = Ne || ((c) => c.label ?? c), O = {
1211
- ...m,
1212
- disablePortal: oe,
1213
- expanded: X,
1214
- focused: je,
1221
+ }), he = !Re && !W && K && !ae, Te = (!Ne || Ie === !0) && Ie !== !1, {
1222
+ onMouseDown: lt
1223
+ } = z(), {
1224
+ ref: pt,
1225
+ ...ut
1226
+ } = at(), ve = Ee || ((d) => d.label ?? d), I = {
1227
+ ...f,
1228
+ disablePortal: re,
1229
+ expanded: ie,
1230
+ focused: ee,
1215
1231
  fullWidth: Y,
1216
- getOptionLabel: be,
1217
- hasClearIcon: $e,
1218
- hasPopupIcon: Se,
1219
- inputFocused: Ue === -1,
1220
- popupOpen: q,
1221
- size: ge
1222
- }, P = oo(O), Z = {
1232
+ getOptionLabel: ve,
1233
+ hasClearIcon: he,
1234
+ hasPopupIcon: Te,
1235
+ inputFocused: st === -1,
1236
+ popupOpen: X,
1237
+ size: me
1238
+ }, C = oo(I), te = {
1223
1239
  slots: {
1224
- paper: s,
1225
- popper: Pe,
1226
- ...He
1240
+ paper: l,
1241
+ popper: $e,
1242
+ ...ze
1227
1243
  },
1228
1244
  slotProps: {
1229
- chip: B,
1230
- listbox: Me,
1231
- ...Le,
1232
- ...k
1245
+ chip: U,
1246
+ listbox: Ve,
1247
+ ...ke,
1248
+ ...L
1233
1249
  }
1234
- }, [Te, We] = ft("listbox", {
1250
+ }, [dt, Ae] = gt("listbox", {
1235
1251
  elementType: co,
1236
- externalForwardedProps: Z,
1237
- ownerState: O,
1238
- className: P.listbox,
1239
- additionalProps: Be,
1240
- ref: ut
1241
- }), [o, e] = ft("paper", {
1242
- elementType: Mt,
1243
- externalForwardedProps: Z,
1244
- ownerState: O,
1245
- className: P.paper
1246
- }), [r, p] = ft("popper", {
1252
+ externalForwardedProps: te,
1253
+ ownerState: I,
1254
+ className: C.listbox,
1255
+ additionalProps: ut,
1256
+ ref: pt
1257
+ }), [We, o] = gt("paper", {
1247
1258
  elementType: Vt,
1248
- externalForwardedProps: Z,
1249
- ownerState: O,
1250
- className: P.popper,
1259
+ externalForwardedProps: te,
1260
+ ownerState: I,
1261
+ className: C.paper
1262
+ }), [e, r] = gt("popper", {
1263
+ elementType: Ft,
1264
+ externalForwardedProps: te,
1265
+ ownerState: I,
1266
+ className: C.popper,
1251
1267
  additionalProps: {
1252
- disablePortal: oe,
1268
+ disablePortal: re,
1253
1269
  style: {
1254
- width: ie ? ie.clientWidth : null
1270
+ width: le ? le.clientWidth : null
1255
1271
  },
1256
1272
  role: "presentation",
1257
- anchorEl: ie,
1258
- open: q
1273
+ anchorEl: le,
1274
+ open: X
1259
1275
  }
1260
1276
  });
1261
- let a;
1262
- const f = (c) => ({
1263
- className: P.tag,
1264
- disabled: G,
1265
- ...at(c)
1277
+ let s;
1278
+ const i = (d) => ({
1279
+ className: C.tag,
1280
+ disabled: W,
1281
+ ...Ue(d)
1266
1282
  });
1267
- if (xe ? R.length > 0 && (_ ? a = _(R, f, O) : re ? a = re(R, f, O) : a = R.map((c, ee) => {
1283
+ if (Oe ? Z.length > 0 && (q ? s = q(Z, i, I) : se ? s = se(Z, i, I) : s = Z.map((d, oe) => {
1268
1284
  const {
1269
- key: te,
1285
+ key: ne,
1270
1286
  ...we
1271
- } = f({
1272
- index: ee
1287
+ } = i({
1288
+ index: oe
1273
1289
  });
1274
1290
  return /* @__PURE__ */ A(Gt, {
1275
- label: be(c),
1276
- size: ge,
1291
+ label: ve(d),
1292
+ size: me,
1277
1293
  ...we,
1278
- ...Z.slotProps.chip
1279
- }, te);
1280
- })) : re && R != null && (a = re(R, f, O)), L > -1 && Array.isArray(a)) {
1281
- const c = a.length - L;
1282
- !je && c > 0 && (a = a.splice(0, L), a.push(/* @__PURE__ */ A("span", {
1283
- className: P.tag,
1284
- children: u(c)
1285
- }, a.length)));
1294
+ ...te.slotProps.chip
1295
+ }, ne);
1296
+ })) : se && Z != null && (s = se(Z, i, I)), w > -1 && Array.isArray(s)) {
1297
+ const d = s.length - w;
1298
+ !ee && d > 0 && (s = s.splice(0, w), s.push(/* @__PURE__ */ A("span", {
1299
+ className: C.tag,
1300
+ children: c(d)
1301
+ }, s.length)));
1286
1302
  }
1287
- const w = de || ((c) => /* @__PURE__ */ Ke("li", {
1303
+ const y = fe || ((d) => /* @__PURE__ */ _e("li", {
1288
1304
  children: [/* @__PURE__ */ A(fo, {
1289
- className: P.groupLabel,
1290
- ownerState: O,
1305
+ className: C.groupLabel,
1306
+ ownerState: I,
1291
1307
  component: "div",
1292
- children: c.group
1308
+ children: d.group
1293
1309
  }), /* @__PURE__ */ A(go, {
1294
- className: P.groupUl,
1295
- ownerState: O,
1296
- children: c.children
1310
+ className: C.groupUl,
1311
+ ownerState: I,
1312
+ children: d.children
1297
1313
  })]
1298
- }, c.key)), Ht = fe || ((c, ee) => {
1314
+ }, d.key)), ye = ge || ((d, oe) => {
1299
1315
  const {
1300
- key: te,
1316
+ key: ne,
1301
1317
  ...we
1302
- } = c;
1318
+ } = d;
1303
1319
  return /* @__PURE__ */ A("li", {
1304
1320
  ...we,
1305
- children: be(ee)
1306
- }, te);
1307
- }), $t = (c, ee) => {
1308
- const te = it({
1309
- option: c,
1310
- index: ee
1321
+ children: ve(oe)
1322
+ }, ne);
1323
+ }), $t = (d, oe) => {
1324
+ const ne = Se({
1325
+ option: d,
1326
+ index: oe
1311
1327
  });
1312
- return Ht({
1313
- ...te,
1314
- className: P.option
1315
- }, c, {
1316
- selected: te["aria-selected"],
1317
- index: ee,
1318
- inputValue: lt
1319
- }, O);
1320
- }, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
1321
- return /* @__PURE__ */ Ke(x.Fragment, {
1328
+ return ye({
1329
+ ...ne,
1330
+ className: C.option
1331
+ }, d, {
1332
+ selected: ne["aria-selected"],
1333
+ index: oe,
1334
+ inputValue: it
1335
+ }, I);
1336
+ }, Ge = te.slotProps.clearIndicator, qe = te.slotProps.popupIndicator;
1337
+ return /* @__PURE__ */ _e(x.Fragment, {
1322
1338
  children: [/* @__PURE__ */ A(no, {
1323
- ref: d,
1324
- className: Je(P.root, I),
1325
- ownerState: O,
1326
- ...ze(z),
1327
- children: Fe({
1328
- id: me,
1329
- disabled: G,
1339
+ ref: u,
1340
+ className: Je(C.root, O),
1341
+ ownerState: I,
1342
+ ...je(H),
1343
+ children: He({
1344
+ id: J,
1345
+ disabled: W,
1330
1346
  fullWidth: !0,
1331
- size: ge === "small" ? "small" : void 0,
1347
+ size: me === "small" ? "small" : void 0,
1332
1348
  InputLabelProps: rt(),
1333
1349
  InputProps: {
1334
- ref: st,
1335
- className: P.inputRoot,
1336
- startAdornment: a,
1337
- onMouseDown: (c) => {
1338
- c.target === c.currentTarget && pt(c);
1350
+ ref: Be,
1351
+ className: C.inputRoot,
1352
+ startAdornment: s,
1353
+ onMouseDown: (d) => {
1354
+ d.target === d.currentTarget && lt(d);
1339
1355
  },
1340
- ...($e || Se) && {
1341
- endAdornment: /* @__PURE__ */ Ke(ro, {
1342
- className: P.endAdornment,
1343
- ownerState: O,
1344
- children: [$e ? /* @__PURE__ */ A(ao, {
1345
- ...U(),
1346
- "aria-label": E,
1347
- title: E,
1348
- ownerState: O,
1356
+ ...(he || Te) && {
1357
+ endAdornment: /* @__PURE__ */ _e(ro, {
1358
+ className: C.endAdornment,
1359
+ ownerState: I,
1360
+ children: [he ? /* @__PURE__ */ A(ao, {
1361
+ ...j(),
1362
+ "aria-label": N,
1363
+ title: N,
1364
+ ownerState: I,
1349
1365
  ...Ge,
1350
- className: Je(P.clearIndicator, Ge == null ? void 0 : Ge.className),
1351
- children: $
1352
- }) : null, Se ? /* @__PURE__ */ A(io, {
1353
- ...J(),
1354
- disabled: G,
1355
- "aria-label": q ? Ae : C,
1356
- title: q ? Ae : C,
1357
- ownerState: O,
1366
+ className: Je(C.clearIndicator, Ge == null ? void 0 : Ge.className),
1367
+ children: T
1368
+ }) : null, Te ? /* @__PURE__ */ A(so, {
1369
+ ..._(),
1370
+ disabled: W,
1371
+ "aria-label": X ? Le : S,
1372
+ title: X ? Le : S,
1373
+ ownerState: I,
1358
1374
  ...qe,
1359
- className: Je(P.popupIndicator, qe == null ? void 0 : qe.className),
1375
+ className: Je(C.popupIndicator, qe == null ? void 0 : qe.className),
1360
1376
  children: g
1361
1377
  }) : null]
1362
1378
  })
1363
1379
  }
1364
1380
  },
1365
1381
  inputProps: {
1366
- className: P.input,
1367
- disabled: G,
1368
- readOnly: ne,
1369
- ...j()
1382
+ className: C.input,
1383
+ disabled: W,
1384
+ readOnly: ae,
1385
+ ...z()
1370
1386
  }
1371
1387
  })
1372
- }), ie ? /* @__PURE__ */ A(so, {
1373
- as: r,
1374
- ...p,
1375
- children: /* @__PURE__ */ Ke(lo, {
1376
- as: o,
1377
- ...e,
1378
- children: [M && se.length === 0 ? /* @__PURE__ */ A(po, {
1379
- className: P.loading,
1380
- ownerState: O,
1381
- children: S
1382
- }) : null, se.length === 0 && !De && !M ? /* @__PURE__ */ A(uo, {
1383
- className: P.noOptions,
1384
- ownerState: O,
1388
+ }), le ? /* @__PURE__ */ A(io, {
1389
+ as: e,
1390
+ ...r,
1391
+ children: /* @__PURE__ */ _e(lo, {
1392
+ as: We,
1393
+ ...o,
1394
+ children: [E && be.length === 0 ? /* @__PURE__ */ A(po, {
1395
+ className: C.loading,
1396
+ ownerState: I,
1397
+ children: P
1398
+ }) : null, be.length === 0 && !Ne && !E ? /* @__PURE__ */ A(uo, {
1399
+ className: C.noOptions,
1400
+ ownerState: I,
1385
1401
  role: "presentation",
1386
- onMouseDown: (c) => {
1387
- c.preventDefault();
1402
+ onMouseDown: (d) => {
1403
+ d.preventDefault();
1388
1404
  },
1389
- children: Ie
1390
- }) : null, se.length > 0 ? /* @__PURE__ */ A(Te, {
1405
+ children: Pe
1406
+ }) : null, be.length > 0 ? /* @__PURE__ */ A(dt, {
1391
1407
  as: ot,
1392
- ...We,
1393
- children: se.map((c, ee) => Ee ? w({
1394
- key: c.key,
1395
- group: c.group,
1396
- children: c.options.map((te, we) => $t(te, c.index + we))
1397
- }) : $t(c, ee))
1408
+ ...Ae,
1409
+ children: be.map((d, oe) => Me ? y({
1410
+ key: d.key,
1411
+ group: d.group,
1412
+ children: d.options.map((ne, we) => $t(ne, d.index + we))
1413
+ }) : $t(d, oe))
1398
1414
  }) : null]
1399
1415
  })
1400
1416
  }) : null]
@@ -1569,6 +1585,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
1569
1585
  * Used to determine the disabled state for a given option.
1570
1586
  *
1571
1587
  * @param {Value} option The option to test.
1588
+ * @template Value The option shape. Will be the same shape as an item of the options.
1572
1589
  * @returns {boolean}
1573
1590
  */
1574
1591
  getOptionDisabled: t.func,
@@ -1856,9 +1873,9 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
1856
1873
  export {
1857
1874
  mo as A,
1858
1875
  Xe as L,
1859
- l as a,
1876
+ p as a,
1860
1877
  Qt as b,
1861
- Kt as c,
1878
+ _t as c,
1862
1879
  to as g,
1863
- Mo as l
1880
+ Vo as l
1864
1881
  };