@cgi-learning-hub/ui 1.7.0-dev.1754301696 → 1.7.0-dev.1754384740

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 (296) hide show
  1. package/dist/{Alert-D7CiHM6d.js → Alert-6yOnGlLE.js} +6 -6
  2. package/dist/Alert-CWHOYWde.cjs +1 -0
  3. package/dist/Alert-D4-73fYc.cjs +1 -0
  4. package/dist/{Alert-kxWN2hw0.js → Alert-D6SQnjuJ.js} +83 -84
  5. package/dist/{Autocomplete-BfNqYbav.js → Autocomplete-B8u-WYi5.js} +690 -675
  6. package/dist/Autocomplete-BA6NkciB.cjs +6 -0
  7. package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
  8. package/dist/{Backdrop-D7dPrxSb.js → Backdrop-DuOPKUSY.js} +36 -35
  9. package/dist/{Badge-DBzOcFK5.js → Badge-BJ4yH_Da.js} +9 -10
  10. package/dist/Badge-XMr4Ygjv.cjs +1 -0
  11. package/dist/Box-B5E7sstc.cjs +1 -0
  12. package/dist/{Box-CBqFcDTK.js → Box-BWETzF5p.js} +3 -3
  13. package/dist/Button-BJB830NI.cjs +1 -0
  14. package/dist/{Button-CdzT4uYI.js → Button-C8_HxKFe.js} +139 -173
  15. package/dist/{ButtonBase-C1FIHWcD.js → ButtonBase-CJYV8wgs.js} +2 -2
  16. package/dist/{ButtonBase-BOnOTx73.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
  17. package/dist/CardContent-H0z20SY7.cjs +1 -0
  18. package/dist/{CardContent-cbluqmUz.js → CardContent-V9JMSLmA.js} +3 -3
  19. package/dist/Checkbox-BZPMiwbF.cjs +1 -0
  20. package/dist/{Checkbox-CXMDqMmf.js → Checkbox-DMMz_IAP.js} +85 -86
  21. package/dist/Chip-BDVqkZZM.js +573 -0
  22. package/dist/Chip-DMBSp59F.cjs +1 -0
  23. package/dist/CircularProgress-BMVNeiSf.cjs +28 -0
  24. package/dist/{CircularProgress-ByBabaUG.js → CircularProgress-CrWnCGqN.js} +13 -14
  25. package/dist/{Close-NlNVwj8F.cjs → Close-2eEmvKPH.cjs} +1 -1
  26. package/dist/{Close-BjQCC0qE.js → Close-Cr2OT0GV.js} +1 -1
  27. package/dist/{CloseRounded-XK3z7Pzh.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
  28. package/dist/{CloseRounded-DHTxUBWk.js → CloseRounded-BrGeesu1.js} +1 -1
  29. package/dist/{CustomTreeItem-C1bfen5B.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
  30. package/dist/{CustomTreeItem-D-4kMx41.js → CustomTreeItem-DhB3ECa2.js} +12 -12
  31. package/dist/DatePicker-DtPvvFiK.cjs +16 -0
  32. package/dist/{DatePicker-DZrDegSu.js → DatePicker-ofISDY8Q.js} +2862 -2864
  33. package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
  34. package/dist/{DefaultPropsProvider-BrNsAtD3.js → DefaultPropsProvider-nxIPd34m.js} +23 -23
  35. package/dist/{Delete-jSTHS8bP.cjs → Delete-BF63Gpr-.cjs} +1 -1
  36. package/dist/{Delete-De1w6Wb0.js → Delete-CwWpjEOT.js} +1 -1
  37. package/dist/Dialog-Cymf3DJ2.cjs +1 -0
  38. package/dist/{Dialog-Cx__5cTV.js → Dialog-eK1zTFBm.js} +14 -15
  39. package/dist/{DialogContent-DrRkY205.js → DialogContent-BsPZJR2a.js} +3 -3
  40. package/dist/DialogContent-Gy1s3ela.cjs +1 -0
  41. package/dist/DialogTitle-BDyrzRXS.cjs +1 -0
  42. package/dist/{DialogTitle-CdH-pj3R.js → DialogTitle-CaAd59jN.js} +5 -5
  43. package/dist/Divider-BzdMIEJJ.cjs +1 -0
  44. package/dist/{Divider-BTDjUp2v.js → Divider-D_gbcyWE.js} +26 -26
  45. package/dist/{Folder-BdmrBiSE.js → Folder-COKXTjZ4.js} +1 -1
  46. package/dist/{Folder-Ry-DhShC.cjs → Folder-D0fZbyc-.cjs} +1 -1
  47. package/dist/FormLabel-BLySmpkL.cjs +2 -0
  48. package/dist/{FormLabel-BqkN_xxS.js → FormLabel-DmLckqyT.js} +15 -16
  49. package/dist/Grid-DFaRzlB4.cjs +2 -0
  50. package/dist/{Grid-Dal_bzkG.js → Grid-vM--ojbL.js} +74 -82
  51. package/dist/{Grow-BpiZp6xU.js → Grow-DE5x7F5S.js} +1 -1
  52. package/dist/{Grow-DPkmt9jI.cjs → Grow-ovNT7Sot.cjs} +1 -1
  53. package/dist/IconButton-DCQiOq7W.cjs +2 -0
  54. package/dist/{IconButton-BrEiwZs1.js → IconButton-f9EZgwvD.js} +66 -67
  55. package/dist/{InputAdornment-6pibWhBs.js → InputAdornment-B615VSjF.js} +14 -15
  56. package/dist/InputAdornment-BrrJ8chb.cjs +1 -0
  57. package/dist/{InputBase--Jk0Al5O.js → InputBase-BCbPPzW1.js} +50 -51
  58. package/dist/InputBase-CRrFludT.cjs +4 -0
  59. package/dist/Link-CMes5bws.cjs +1 -0
  60. package/dist/{Link-8wJ87d6M.js → Link-GBRiPElP.js} +56 -44
  61. package/dist/{List-q9c0EQIN.js → List-DZkddOsr.js} +2 -2
  62. package/dist/List-E_TAQ1jJ.cjs +1 -0
  63. package/dist/{ListItem-iH38wGFD.js → ListItem-CMoibMI7.js} +4 -4
  64. package/dist/ListItem-qTKJTg7f.cjs +1 -0
  65. package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
  66. package/dist/{ListItemText-7p6JHq3z.js → ListItemText-BbrPf29n.js} +139 -139
  67. package/dist/{Menu-B-AGEy5x.js → Menu-3UjlpKRJ.js} +28 -28
  68. package/dist/{Menu-CZF84BcH.cjs → Menu-C0uY9Dd0.cjs} +5 -5
  69. package/dist/MenuItem--a878rw9.cjs +1 -0
  70. package/dist/{MenuItem-D-Y0l50p.js → MenuItem-CHEWce5u.js} +94 -94
  71. package/dist/Modal-CdcolE0C.cjs +2 -0
  72. package/dist/{Modal-rm4Wr5mr.js → Modal-Du5LfkZg.js} +6 -6
  73. package/dist/{MoreVert-4w5beLFq.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
  74. package/dist/{MoreVert-K_wr6kJS.js → MoreVert-PLU7h8WO.js} +1 -1
  75. package/dist/{Paper-CFhnudKQ.js → Paper-BylmTlAJ.js} +4 -4
  76. package/dist/Paper-DgHGh6vt.cjs +2 -0
  77. package/dist/Popper-BsNp09Gg.cjs +4 -0
  78. package/dist/{Popper-tW85AcRT.js → Popper-CvQLHjwo.js} +4 -4
  79. package/dist/{Portal-DZrHcvYi.js → Portal-BlK6ttxt.js} +15 -15
  80. package/dist/Portal-CPOCKeMh.cjs +1 -0
  81. package/dist/Radio-CLNMQGNf.cjs +1 -0
  82. package/dist/{Radio-C1IIog7f.js → Radio-CbYgci2-.js} +124 -120
  83. package/dist/{RadioGroup-C03E_nJT.js → RadioGroup-D-Cq8SmM.js} +3 -3
  84. package/dist/RadioGroup-Dyf8fKum.cjs +1 -0
  85. package/dist/{Select-qUF3oQz8.js → Select-Bx0yVOZE.js} +596 -563
  86. package/dist/Select-CRVPbesC.cjs +3 -0
  87. package/dist/Stack-COmIqMxy.cjs +1 -0
  88. package/dist/{Stack-D1BZQ4nk.js → Stack-CbK4a2n5.js} +16 -16
  89. package/dist/Stepper-CWq9t5jy.cjs +1 -0
  90. package/dist/{Stepper-N5qN-x7q.js → Stepper-DU9nixCp.js} +22 -23
  91. package/dist/{Switch-PlSZBWfd.js → Switch-Bm3Gclye.js} +97 -95
  92. package/dist/Switch-kHZOqjeU.cjs +1 -0
  93. package/dist/{SwitchBase-CAOV2ay6.js → SwitchBase-9CKmTWdZ.js} +50 -48
  94. package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
  95. package/dist/{Tab-DfH7qAIY.js → Tab-DBCv1T9W.js} +75 -76
  96. package/dist/Tab-DnxFjc89.cjs +4 -0
  97. package/dist/TextField-BhdmUny-.cjs +1 -0
  98. package/dist/{TextField-CUhKk24w.js → TextField-V-EQ80Y6.js} +22 -23
  99. package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
  100. package/dist/{ToggleButtonGroup-D_I3DjEz.js → ToggleButtonGroup-_UpIjysl.js} +1742 -1760
  101. package/dist/{Tooltip-BLSnjkFh.js → Tooltip-DKHOTDh0.js} +84 -85
  102. package/dist/Tooltip-DYTDIzp4.cjs +4 -0
  103. package/dist/Typography-BvRUTdLD.cjs +1 -0
  104. package/dist/{Typography-Bdfl0Alf.js → Typography-o0iALAVg.js} +6 -7
  105. package/dist/components/ActionBar/style.cjs.js +1 -1
  106. package/dist/components/ActionBar/style.es.js +2 -2
  107. package/dist/components/Alert/Alert.cjs.js +1 -1
  108. package/dist/components/Alert/Alert.es.js +4 -4
  109. package/dist/components/Alert/index.cjs.js +1 -1
  110. package/dist/components/Alert/index.es.js +1 -1
  111. package/dist/components/Button/Button.cjs.js +1 -1
  112. package/dist/components/Button/Button.es.js +2 -2
  113. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  114. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  115. package/dist/components/DatePicker/index.cjs.js +1 -1
  116. package/dist/components/DatePicker/index.es.js +1 -1
  117. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  118. package/dist/components/Dialog/Dialog.es.js +2 -2
  119. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  120. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  121. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  122. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  123. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  124. package/dist/components/FileList/FileIcon.es.js +1 -1
  125. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  126. package/dist/components/FileList/FileListItem.es.js +4 -4
  127. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  128. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  129. package/dist/components/Heading/Heading.cjs.js +1 -1
  130. package/dist/components/Heading/Heading.es.js +2 -2
  131. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  132. package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
  133. package/dist/components/Loader/Loader.cjs.js +1 -1
  134. package/dist/components/Loader/Loader.es.js +1 -1
  135. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  136. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  137. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  138. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  139. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  140. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  141. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  142. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  143. package/dist/components/TreeView/TreeView.cjs.js +2 -2
  144. package/dist/components/TreeView/TreeView.es.js +39 -39
  145. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  146. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  147. package/dist/components/TreeView/utils.cjs.js +1 -1
  148. package/dist/components/TreeView/utils.es.js +3 -3
  149. package/dist/components/index.cjs.js +1 -1
  150. package/dist/components/index.es.js +44 -44
  151. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  152. package/dist/components/stories/Alert.stories.es.js +1 -1
  153. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  154. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  155. package/dist/components/stories/Badge.stories.cjs.js +1 -1
  156. package/dist/components/stories/Badge.stories.es.js +2 -2
  157. package/dist/components/stories/Button.stories.cjs.js +1 -1
  158. package/dist/components/stories/Button.stories.es.js +1 -1
  159. package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
  160. package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
  161. package/dist/components/stories/Card.stories.cjs.js +1 -1
  162. package/dist/components/stories/Card.stories.es.js +2 -2
  163. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  164. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  165. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  166. package/dist/components/stories/Chip.stories.es.js +1 -1
  167. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  168. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  169. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  170. package/dist/components/stories/Dialog.stories.es.js +2 -2
  171. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  172. package/dist/components/stories/Divider.stories.es.js +1 -1
  173. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  174. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  175. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  176. package/dist/components/stories/Heading.stories.es.js +2 -2
  177. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  178. package/dist/components/stories/IconButton.stories.es.js +2 -2
  179. package/dist/components/stories/Link.stories.cjs.js +1 -1
  180. package/dist/components/stories/Link.stories.es.js +1 -1
  181. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  182. package/dist/components/stories/Menu.stories.es.js +2 -2
  183. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  184. package/dist/components/stories/Paper.stories.es.js +1 -1
  185. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  186. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  187. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  188. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  189. package/dist/components/stories/Select.stories.cjs.js +1 -1
  190. package/dist/components/stories/Select.stories.es.js +3 -3
  191. package/dist/components/stories/Stepper.stories.cjs.js +1 -1
  192. package/dist/components/stories/Stepper.stories.es.js +4 -4
  193. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  194. package/dist/components/stories/TabList.stories.es.js +1 -1
  195. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  196. package/dist/components/stories/TextField.stories.es.js +1 -1
  197. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  198. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  199. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  200. package/dist/components/stories/TreeView.stories.es.js +12 -12
  201. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  202. package/dist/components/stories/Typography.stories.es.js +1 -1
  203. package/dist/createSvgIcon-BJRigbha.cjs +1 -0
  204. package/dist/{createSvgIcon-nrGLeL-I.js → createSvgIcon-BV54rC7k.js} +7 -8
  205. package/dist/dividerClasses-CbwbHy8r.cjs +1 -0
  206. package/dist/{dividerClasses-Cds5AHtx.js → dividerClasses-DDXs86hs.js} +1 -1
  207. package/dist/extendSxProp-CxMSlckP.cjs +1 -0
  208. package/dist/{extendSxProp-e_bx8m3Z.js → extendSxProp-XouBF-Ct.js} +1 -1
  209. package/dist/identifier-DBvccNCw.cjs +55 -0
  210. package/dist/{generateUtilityClasses-32ARRWdA.js → identifier-Dnc8T93Z.js} +1062 -1021
  211. package/dist/{index-B9KBbi0q.js → index-9te7SXrs.js} +4 -4
  212. package/dist/index-BkNQtUZJ.cjs +1 -0
  213. package/dist/index.cjs.js +1 -1
  214. package/dist/index.es.js +44 -44
  215. package/dist/{listItemTextClasses-D1H_8v-c.js → listItemTextClasses-4p_83pwn.js} +1 -1
  216. package/dist/listItemTextClasses-Cxo4anAo.cjs +1 -0
  217. package/dist/{memoTheme-BsSXjuJK.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
  218. package/dist/{memoTheme-BBxIYGG7.js → memoTheme-K37vidlb.js} +1 -1
  219. package/dist/mergeSlotProps-CXO1f70l.cjs +1 -0
  220. package/dist/{mergeSlotProps-r8Lw8Cah.js → mergeSlotProps-DSWiBSbD.js} +1 -1
  221. package/dist/styled-B7pKW9DQ.cjs +1 -0
  222. package/dist/styled-JnAdiSL5.js +5 -0
  223. package/dist/{useSlot-DnOTNYbF.js → useSlot-GooGQrej.js} +1 -1
  224. package/dist/useSlot-ONna5RyM.cjs +1 -0
  225. package/dist/{useSlotProps-BwBEemtt.js → useSlotProps-C34Wr67s.js} +1 -1
  226. package/dist/{useSlotProps-5aNXGFYF.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
  227. package/dist/useTheme-CH7DA5fq.js +11 -0
  228. package/dist/useTheme-D6wPRo0G.cjs +1 -0
  229. package/dist/useTheme-DkiCyF-9.cjs +1 -0
  230. package/dist/{useTheme-CMVVKo4v.js → useTheme-VH02z7nF.js} +1 -1
  231. package/dist/{useThemeProps-BIb0QYVO.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
  232. package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
  233. package/dist/useThemeProps-DT4QxdFn.js +17 -0
  234. package/dist/{useThemeProps-lFVeX-f0.js → useThemeProps-DZ05-54P.js} +4 -4
  235. package/package.json +7 -7
  236. package/dist/Alert-C6iEisoq.cjs +0 -1
  237. package/dist/Alert-D4JVZyQU.cjs +0 -1
  238. package/dist/Autocomplete-1xee2eiQ.cjs +0 -6
  239. package/dist/Backdrop-DgkaE-oT.cjs +0 -1
  240. package/dist/Badge-BUbP5vp-.cjs +0 -1
  241. package/dist/Box-C1W2izKY.cjs +0 -1
  242. package/dist/Button-cDSw19Nq.cjs +0 -1
  243. package/dist/CardContent-D4botNGC.cjs +0 -1
  244. package/dist/Checkbox-BXKolrmm.cjs +0 -1
  245. package/dist/Chip-BpeHDShb.js +0 -573
  246. package/dist/Chip-Ch-5oIUc.cjs +0 -1
  247. package/dist/CircularProgress-CTG6zAAM.cjs +0 -28
  248. package/dist/DatePicker-Slqqr585.cjs +0 -16
  249. package/dist/DefaultPropsProvider-H9bB_0gL.cjs +0 -1
  250. package/dist/Dialog-CzMU1Vaw.cjs +0 -1
  251. package/dist/DialogContent-mzqgUnTG.cjs +0 -1
  252. package/dist/DialogTitle-Ba_P5rRd.cjs +0 -1
  253. package/dist/Divider-CZPVxsPO.cjs +0 -1
  254. package/dist/FormLabel-DJ9MlN95.cjs +0 -2
  255. package/dist/Grid-gwsV6B8i.cjs +0 -2
  256. package/dist/IconButton-DQ0-3085.cjs +0 -2
  257. package/dist/InputAdornment-BM3llcq_.cjs +0 -1
  258. package/dist/InputBase-C4hx7uf2.cjs +0 -4
  259. package/dist/Link-CIQePe28.cjs +0 -1
  260. package/dist/List--5MPONUQ.cjs +0 -1
  261. package/dist/ListItem-C2_Z7drq.cjs +0 -1
  262. package/dist/ListItemText-D9-Pz-Pv.cjs +0 -1
  263. package/dist/MenuItem-Tfoo4dBw.cjs +0 -1
  264. package/dist/Modal-DeI0Mlfa.cjs +0 -2
  265. package/dist/Paper-_oaR1_0W.cjs +0 -2
  266. package/dist/Popper-D60dNc4H.cjs +0 -4
  267. package/dist/Portal-BXwfYalF.cjs +0 -1
  268. package/dist/Radio-DTyaqbCx.cjs +0 -1
  269. package/dist/RadioGroup-Ch703c6I.cjs +0 -1
  270. package/dist/Select-BFy88I22.cjs +0 -3
  271. package/dist/Stack-DraxEahz.cjs +0 -1
  272. package/dist/Stepper-DZ3G6yg0.cjs +0 -1
  273. package/dist/Switch-JAYiSudG.cjs +0 -1
  274. package/dist/SwitchBase-CLGs4Tit.cjs +0 -1
  275. package/dist/Tab-BnZwSzzt.cjs +0 -4
  276. package/dist/TextField-3tuxHLZ9.cjs +0 -1
  277. package/dist/ToggleButtonGroup-BZRf-b3W.cjs +0 -138
  278. package/dist/Tooltip-Bzb_mXr7.cjs +0 -4
  279. package/dist/Typography-CZKR4ZRK.cjs +0 -1
  280. package/dist/capitalize-CgHuXq7I.js +0 -9
  281. package/dist/capitalize-N-bUbBKG.cjs +0 -1
  282. package/dist/composeClasses-CZaHK87I.js +0 -51
  283. package/dist/composeClasses-DLNLdr2K.cjs +0 -1
  284. package/dist/createSvgIcon-DzMPK9Wt.cjs +0 -1
  285. package/dist/dividerClasses-DT1ACCA-.cjs +0 -1
  286. package/dist/extendSxProp-IrF6qCII.cjs +0 -1
  287. package/dist/generateUtilityClasses-CdsrTlgj.cjs +0 -55
  288. package/dist/index-DGUCeeBA.cjs +0 -1
  289. package/dist/listItemTextClasses-BK-fvEix.cjs +0 -1
  290. package/dist/mergeSlotProps-wZnr2VqA.cjs +0 -1
  291. package/dist/useSlot-BI_E4Zjs.cjs +0 -1
  292. package/dist/useTheme-6FgHgKII.cjs +0 -1
  293. package/dist/useTheme-Bjns7t5p.js +0 -11
  294. package/dist/useTheme-BxDf8E3o.cjs +0 -1
  295. package/dist/useThemeProps-BwzAhOV5.cjs +0 -1
  296. package/dist/useThemeProps-DV7UxDZG.js +0 -17
@@ -1,351 +1,365 @@
1
1
  import * as x from "react";
2
2
  import { P as t } from "./index-Sy88PpwE.js";
3
- import { F as Rt, G as Dt, H as Je, n as ct } from "./generateUtilityClasses-32ARRWdA.js";
4
- import { A as zt, f as he, o as St, i as dt } from "./Select-qUF3oQz8.js";
5
- import { i as le } from "./InputBase--Jk0Al5O.js";
6
- import { C as jt } from "./Close-BjQCC0qE.js";
7
- import { m as pe } from "./memoTheme-BBxIYGG7.js";
8
- import { u as ft } from "./useSlot-DnOTNYbF.js";
9
- import { jsx as A, jsxs as _e } from "react/jsx-runtime";
10
- import { u as Nt, s as H, c as Et } from "./DefaultPropsProvider-BrNsAtD3.js";
3
+ import { F as Dt, G as Nt, H as Je, K as Ye } from "./identifier-Dnc8T93Z.js";
4
+ import { A as zt, f as xe, o as St, i as ft } from "./Select-Bx0yVOZE.js";
5
+ import { i as pe } from "./InputBase-BCbPPzW1.js";
6
+ import { C as jt } from "./Close-Cr2OT0GV.js";
7
+ import { m as ue } from "./memoTheme-K37vidlb.js";
8
+ import { u as gt } from "./useSlot-GooGQrej.js";
9
+ import { jsx as A, jsxs as Ke } from "react/jsx-runtime";
10
+ import { u as Et, s as F, c as Mt } from "./DefaultPropsProvider-nxIPd34m.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 Ke } from "./useEventCallback-Y2KwRxBw.js";
15
- import { s as Wt } from "./Portal-DZrHcvYi.js";
16
- import { P as Mt } from "./Paper-CFhnudKQ.js";
17
- import { P as Vt } from "./Popper-tW85AcRT.js";
18
- import { C as Gt } from "./Chip-BpeHDShb.js";
19
- import { c as Ye } from "./capitalize-CgHuXq7I.js";
20
- import { I as Ft } from "./IconButton-BrEiwZs1.js";
14
+ import { a as _e } from "./useEventCallback-Y2KwRxBw.js";
15
+ import { s as Wt } from "./Portal-BlK6ttxt.js";
16
+ import { P as Vt } from "./Paper-BylmTlAJ.js";
17
+ import { P as Ft } from "./Popper-CvQLHjwo.js";
18
+ import { C as Gt } from "./Chip-BDVqkZZM.js";
19
+ import { I as Ht } from "./IconButton-f9EZgwvD.js";
21
20
  import { c as Tt } from "./chainPropTypes-D9lkm76m.js";
22
21
  import { i as qt } from "./integerPropType-BihGt2aU.js";
23
- function vt(n) {
22
+ function vt({
23
+ array1: n,
24
+ array2: a,
25
+ parser: u = (f) => f
26
+ }) {
27
+ return n && a && n.length === a.length && n.every((f, $) => u(f) === u(a[$]));
28
+ }
29
+ function At(n) {
24
30
  return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
25
31
  }
26
- function _t(n = {}) {
32
+ function Kt(n = {}) {
27
33
  const {
28
- ignoreAccents: i = !0,
29
- ignoreCase: d = !0,
30
- limit: m,
31
- matchFrom: T = "any",
32
- stringify: D,
34
+ ignoreAccents: a = !0,
35
+ ignoreCase: u = !0,
36
+ limit: f,
37
+ matchFrom: $ = "any",
38
+ stringify: R,
33
39
  trim: v = !1
34
40
  } = n;
35
- return (N, {
36
- inputValue: B,
37
- getOptionLabel: I
41
+ return (D, {
42
+ inputValue: U,
43
+ getOptionLabel: O
38
44
  }) => {
39
- let $ = v ? B.trim() : B;
40
- d && ($ = $.toLowerCase()), i && ($ = vt($));
41
- const W = $ ? N.filter((ue) => {
42
- let E = (D || I)(ue);
43
- return d && (E = E.toLowerCase()), i && (E = vt(E)), T === "start" ? E.startsWith($) : E.includes($);
44
- }) : N;
45
- return typeof m == "number" ? W.slice(0, m) : W;
45
+ let T = v ? U.trim() : U;
46
+ u && (T = T.toLowerCase()), a && (T = At(T));
47
+ const B = T ? D.filter((ce) => {
48
+ let N = (R || O)(ce);
49
+ return u && (N = N.toLowerCase()), a && (N = At(N)), $ === "start" ? N.startsWith(T) : N.includes(T);
50
+ }) : D;
51
+ return typeof f == "number" ? B.slice(0, f) : B;
46
52
  };
47
53
  }
48
- const Kt = _t(), wt = 5, Jt = (n) => {
49
- var i;
50
- return n.current !== null && ((i = n.current.parentElement) == null ? void 0 : i.contains(document.activeElement));
54
+ const _t = Kt(), wt = 5, Jt = (n) => {
55
+ var a;
56
+ return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
51
57
  }, Xt = [];
52
- function At(n, i, d, m) {
53
- if (i || n == null || m)
58
+ function Lt(n, a, u, f) {
59
+ if (a || n == null || f)
54
60
  return "";
55
- const T = d(n);
56
- return typeof T == "string" ? T : "";
61
+ const $ = u(n);
62
+ return typeof $ == "string" ? $ : "";
57
63
  }
58
64
  function Yt(n) {
59
65
  const {
60
66
  // eslint-disable-next-line @typescript-eslint/naming-convention
61
- unstable_isActiveElementInListbox: i = Jt,
67
+ unstable_isActiveElementInListbox: a = Jt,
62
68
  // eslint-disable-next-line @typescript-eslint/naming-convention
63
- unstable_classNamePrefix: d = "Mui",
64
- autoComplete: m = !1,
65
- autoHighlight: T = !1,
66
- autoSelect: D = !1,
69
+ unstable_classNamePrefix: u = "Mui",
70
+ autoComplete: f = !1,
71
+ autoHighlight: $ = !1,
72
+ autoSelect: R = !1,
67
73
  blurOnSelect: v = !1,
68
- clearOnBlur: N = !n.freeSolo,
69
- clearOnEscape: B = !1,
70
- componentName: I = "useAutocomplete",
71
- defaultValue: $ = n.multiple ? Xt : null,
72
- disableClearable: W = !1,
73
- disableCloseOnSelect: ue = !1,
74
- disabled: E,
75
- disabledItemsFocusable: Ae = !1,
76
- disableListWrap: Le = !1,
77
- filterOptions: mt = Kt,
78
- filterSelectedOptions: ke = !1,
79
- freeSolo: ce = !1,
80
- getOptionDisabled: G,
81
- getOptionKey: Re,
74
+ clearOnBlur: D = !n.freeSolo,
75
+ clearOnEscape: U = !1,
76
+ componentName: O = "useAutocomplete",
77
+ defaultValue: T = n.multiple ? Xt : null,
78
+ disableClearable: B = !1,
79
+ disableCloseOnSelect: ce = !1,
80
+ disabled: N,
81
+ disabledItemsFocusable: Le = !1,
82
+ disableListWrap: ke = !1,
83
+ filterOptions: bt = _t,
84
+ filterSelectedOptions: Re = !1,
85
+ freeSolo: de = !1,
86
+ getOptionDisabled: W,
87
+ getOptionKey: De,
82
88
  getOptionLabel: Qe = (o) => o.label ?? o,
83
- groupBy: oe,
89
+ groupBy: re,
84
90
  handleHomeEndKeys: Ze = !n.freeSolo,
85
- id: bt,
86
- includeInputInList: ye = !1,
87
- inputValue: De,
91
+ id: ht,
92
+ includeInputInList: Ie = !1,
93
+ inputValue: Ne,
88
94
  isOptionEqualToValue: Y = (o, e) => o === e,
89
- multiple: u = !1,
95
+ multiple: c = !1,
90
96
  onChange: et,
91
97
  onClose: tt,
92
- onHighlightChange: Ne,
98
+ onHighlightChange: Ee,
93
99
  onInputChange: Q,
94
- onOpen: Ee,
95
- open: ht,
96
- openOnFocus: yt = !1,
97
- options: xt,
98
- readOnly: _ = !1,
99
- renderValue: L,
100
+ onOpen: Me,
101
+ open: yt,
102
+ openOnFocus: xt = !1,
103
+ options: It,
104
+ readOnly: G = !1,
105
+ renderValue: w,
100
106
  selectOnFocus: ot = !n.freeSolo,
101
- value: Me
102
- } = n, M = Ut(bt);
103
- let S = Qe;
104
- S = (o) => {
107
+ value: Ve
108
+ } = n, E = Ut(ht);
109
+ let P = Qe;
110
+ P = (o) => {
105
111
  const e = Qe(o);
106
112
  if (typeof e != "string") {
107
113
  if (process.env.NODE_ENV !== "production") {
108
114
  const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
109
- console.error(`MUI: The \`getOptionLabel\` method of ${I} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
115
+ console.error(`MUI: The \`getOptionLabel\` method of ${O} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
110
116
  }
111
117
  return String(e);
112
118
  }
113
119
  return e;
114
120
  };
115
- 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({
116
- controlled: Me,
117
- default: $,
118
- name: I
119
- }), [g, ne] = gt({
120
- controlled: De,
121
- default: Ot,
122
- name: I,
121
+ 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({
122
+ controlled: Ve,
123
+ default: T,
124
+ name: O
125
+ }), [g, ae] = mt({
126
+ controlled: Ne,
127
+ default: Pt,
128
+ name: O,
123
129
  state: "inputValue"
124
- }), [de, Fe] = x.useState(!1), fe = x.useCallback((o, e, r) => {
125
- if (!(u ? s.length < e.length : e !== null) && !N)
130
+ }), [fe, He] = x.useState(!1), ge = x.useCallback((o, e, r) => {
131
+ if (!(c ? l.length < e.length : e !== null) && !D)
126
132
  return;
127
- const a = At(e, u, S, L);
128
- g !== a && (ne(a), Q && Q(o, a, r));
129
- }, [S, g, u, Q, ne, N, s, L]), [K, re] = gt({
130
- controlled: ht,
133
+ const i = Lt(e, c, P, w);
134
+ g !== i && (ae(i), Q && Q(o, i, r));
135
+ }, [P, g, c, Q, ae, D, l, w]), [q, se] = mt({
136
+ controlled: yt,
131
137
  default: !1,
132
- name: I,
138
+ name: O,
133
139
  state: "open"
134
- }), [Pt, ge] = x.useState(!0), He = !u && s != null && g === S(s), k = K && !_, b = k ? mt(
135
- xt.filter((o) => !(ke && (u ? s : [s]).some((e) => e !== null && Y(o, e)))),
140
+ }), [Ct, me] = x.useState(!0), ze = !c && l != null && g === P(l), L = q && !G, m = L ? bt(
141
+ It.filter((o) => !(Re && (c ? l : [l]).some((e) => e !== null && Y(o, e)))),
136
142
  // we use the empty string to manipulate `filterOptions` to not filter any options
137
143
  // i.e. the filter predicate always returns true
138
144
  {
139
- inputValue: He && Pt ? "" : g,
140
- getOptionLabel: S
145
+ inputValue: ze && Ct ? "" : g,
146
+ getOptionLabel: P
141
147
  }
142
- ) : [], z = Bt({
143
- filteredOptions: b,
144
- value: s,
148
+ ) : [], H = Bt({
149
+ filteredOptions: m,
150
+ value: l,
145
151
  inputValue: g
146
152
  });
147
153
  x.useEffect(() => {
148
- const o = s !== z.value;
149
- de && !o || ce && !o || fe(null, s, "reset");
150
- }, [s, fe, de, z.value, ce]);
151
- const ze = K && b.length > 0 && !_, j = Ke((o) => {
154
+ const o = l !== H.value;
155
+ fe && !o || de && !o || ge(null, l, "reset");
156
+ }, [l, ge, fe, H.value, de]);
157
+ const je = q && m.length > 0 && !G, z = _e((o) => {
152
158
  if (o === -1)
153
159
  h.current.focus();
154
160
  else {
155
- const e = L ? "data-item-index" : "data-tag-index";
156
- Oe.querySelector(`[${e}="${o}"]`).focus();
161
+ const e = w ? "data-item-index" : "data-tag-index";
162
+ Ce.querySelector(`[${e}="${o}"]`).focus();
157
163
  }
158
164
  });
159
165
  x.useEffect(() => {
160
- u && V > s.length - 1 && (Ve(-1), j(-1));
161
- }, [s, u, V, j]);
166
+ c && M > l.length - 1 && (Fe(-1), z(-1));
167
+ }, [l, c, M, z]);
162
168
  function rt(o, e) {
163
- if (!F.current || o < 0 || o >= b.length)
169
+ if (!V.current || o < 0 || o >= m.length)
164
170
  return -1;
165
171
  let r = o;
166
172
  for (; ; ) {
167
- const p = F.current.querySelector(`[data-option-index="${r}"]`), a = Ae ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
168
- if (p && p.hasAttribute("tabindex") && !a)
173
+ const s = V.current.querySelector(`[data-option-index="${r}"]`), i = Le ? !1 : !s || s.disabled || s.getAttribute("aria-disabled") === "true";
174
+ if (s && s.hasAttribute("tabindex") && !i)
169
175
  return r;
170
- if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
176
+ if (e === "next" ? r = (r + 1) % m.length : r = (r - 1 + m.length) % m.length, r === o)
171
177
  return -1;
172
178
  }
173
179
  }
174
- const J = Ke(({
180
+ const K = _e(({
175
181
  event: o,
176
182
  index: e,
177
183
  reason: r
178
184
  }) => {
179
- 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)
185
+ 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)
180
186
  return;
181
- const p = F.current.querySelector(`[role="option"].${d}-focused`);
182
- p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
183
- let a = F.current;
184
- if (F.current.getAttribute("role") !== "listbox" && (a = F.current.parentElement.querySelector('[role="listbox"]')), !a)
187
+ const s = V.current.querySelector(`[role="option"].${u}-focused`);
188
+ s && (s.classList.remove(`${u}-focused`), s.classList.remove(`${u}-focusVisible`));
189
+ let i = V.current;
190
+ if (V.current.getAttribute("role") !== "listbox" && (i = V.current.parentElement.querySelector('[role="listbox"]')), !i)
185
191
  return;
186
192
  if (e === -1) {
187
- a.scrollTop = 0;
193
+ i.scrollTop = 0;
188
194
  return;
189
195
  }
190
- const f = F.current.querySelector(`[data-option-index="${e}"]`);
191
- if (f && (f.classList.add(`${d}-focused`), r === "keyboard" && f.classList.add(`${d}-focusVisible`), a.scrollHeight > a.clientHeight && r !== "mouse" && r !== "touch")) {
192
- const y = f, w = a.clientHeight + a.scrollTop, ve = y.offsetTop + y.offsetHeight;
193
- 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));
196
+ const b = V.current.querySelector(`[data-option-index="${e}"]`);
197
+ if (b && (b.classList.add(`${u}-focused`), r === "keyboard" && b.classList.add(`${u}-focusVisible`), i.scrollHeight > i.clientHeight && r !== "mouse" && r !== "touch")) {
198
+ const y = b, k = i.clientHeight + i.scrollTop, ye = y.offsetTop + y.offsetHeight;
199
+ 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));
194
200
  }
195
- }), U = Ke(({
201
+ }), j = _e(({
196
202
  event: o,
197
203
  diff: e,
198
204
  direction: r = "next",
199
- reason: p
205
+ reason: s
200
206
  }) => {
201
- if (!k)
207
+ if (!L)
202
208
  return;
203
- const f = rt((() => {
204
- const y = b.length - 1;
209
+ const b = rt((() => {
210
+ const y = m.length - 1;
205
211
  if (e === "reset")
206
212
  return nt;
207
213
  if (e === "start")
208
214
  return 0;
209
215
  if (e === "end")
210
216
  return y;
211
- const w = C.current + e;
212
- 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;
217
+ const k = S.current + e;
218
+ 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;
213
219
  })(), r);
214
- if (J({
215
- index: f,
216
- reason: p,
220
+ if (K({
221
+ index: b,
222
+ reason: s,
217
223
  event: o
218
- }), m && e !== "reset")
219
- if (f === -1)
224
+ }), f && e !== "reset")
225
+ if (b === -1)
220
226
  h.current.value = g;
221
227
  else {
222
- const y = S(b[f]);
228
+ const y = P(m[b]);
223
229
  h.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && h.current.setSelectionRange(g.length, y.length);
224
230
  }
231
+ }), Ue = !vt({
232
+ array1: H.filteredOptions,
233
+ array2: m,
234
+ parser: P
225
235
  }), at = () => {
226
236
  const o = (e, r) => {
227
- const p = e ? S(e) : "", a = r ? S(r) : "";
228
- return p === a;
237
+ const s = e ? P(e) : "", i = r ? P(r) : "";
238
+ return s === i;
229
239
  };
230
- 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))) {
231
- const e = z.filteredOptions[C.current];
240
+ if (S.current !== -1 && !vt({
241
+ array1: H.filteredOptions,
242
+ array2: m,
243
+ parser: P
244
+ }) && H.inputValue === g && (c ? l.length === H.value.length && H.value.every((e, r) => P(l[r]) === P(e)) : o(H.value, l))) {
245
+ const e = H.filteredOptions[S.current];
232
246
  if (e)
233
- return b.findIndex((r) => S(r) === S(e));
247
+ return m.findIndex((r) => P(r) === P(e));
234
248
  }
235
249
  return -1;
236
- }, Ce = x.useCallback(() => {
237
- if (!k)
250
+ }, Se = x.useCallback(() => {
251
+ if (!L)
238
252
  return;
239
253
  const o = at();
240
254
  if (o !== -1) {
241
- C.current = o;
255
+ S.current = o;
242
256
  return;
243
257
  }
244
- const e = u ? s[0] : s;
245
- if (b.length === 0 || e == null) {
246
- U({
258
+ const e = c ? l[0] : l;
259
+ if (m.length === 0 || e == null) {
260
+ j({
247
261
  diff: "reset"
248
262
  });
249
263
  return;
250
264
  }
251
- if (F.current) {
265
+ if (V.current) {
252
266
  if (e != null) {
253
- const r = b[C.current];
254
- if (u && r && s.findIndex((a) => Y(r, a)) !== -1)
267
+ const r = m[S.current];
268
+ if (c && r && l.findIndex((i) => Y(r, i)) !== -1)
255
269
  return;
256
- const p = b.findIndex((a) => Y(a, e));
257
- p === -1 ? U({
270
+ const s = m.findIndex((i) => Y(i, e));
271
+ s === -1 ? j({
258
272
  diff: "reset"
259
- }) : J({
260
- index: p
273
+ }) : K({
274
+ index: s
261
275
  });
262
276
  return;
263
277
  }
264
- if (C.current >= b.length - 1) {
265
- J({
266
- index: b.length - 1
278
+ if (S.current >= m.length - 1) {
279
+ K({
280
+ index: m.length - 1
267
281
  });
268
282
  return;
269
283
  }
270
- J({
271
- index: C.current
284
+ K({
285
+ index: S.current
272
286
  });
273
287
  }
274
288
  }, [
275
289
  // Only sync the highlighted index when the option switch between empty and not
276
- b.length,
290
+ m.length,
277
291
  // Don't sync the highlighted index with the value when multiple
278
292
  // eslint-disable-next-line react-hooks/exhaustive-deps
279
- u ? !1 : s,
280
- ke,
281
- U,
282
- J,
283
- k,
293
+ c ? !1 : l,
294
+ Re,
295
+ j,
296
+ K,
297
+ L,
284
298
  g,
285
- u
286
- ]), it = Ke((o) => {
287
- Wt(F, o), o && Ce();
299
+ c
300
+ ]), Z = _e((o) => {
301
+ Wt(V, o), o && Se();
288
302
  });
289
303
  process.env.NODE_ENV !== "production" && x.useEffect(() => {
290
- (!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(`
291
- `)) : 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(`
304
+ (!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(`
305
+ `)) : 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(`
292
306
  `)));
293
- }, [I]), x.useEffect(() => {
294
- Ce();
295
- }, [Ce]);
296
- const R = (o) => {
297
- K || (re(!0), ge(!0), Ee && Ee(o));
298
- }, ae = (o, e) => {
299
- K && (re(!1), tt && tt(o, e));
300
- }, X = (o, e, r, p) => {
301
- if (u) {
302
- if (s.length === e.length && s.every((a, f) => a === e[f]))
307
+ }, [O]), x.useEffect(() => {
308
+ Ue && Se();
309
+ }, [Se, Ue]);
310
+ const _ = (o) => {
311
+ q || (se(!0), me(!0), Me && Me(o));
312
+ }, ie = (o, e) => {
313
+ q && (se(!1), tt && tt(o, e));
314
+ }, J = (o, e, r, s) => {
315
+ if (c) {
316
+ if (l.length === e.length && l.every((i, b) => i === e[b]))
303
317
  return;
304
- } else if (s === e)
318
+ } else if (l === e)
305
319
  return;
306
- et && et(o, e, r, p), Pe(e);
307
- }, me = x.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
308
- let a = r, f = e;
309
- if (u) {
310
- if (f = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
311
- const w = f.filter((ve) => Y(e, ve));
312
- 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(`
320
+ et && et(o, e, r, s), $e(e);
321
+ }, X = x.useRef(!1), ee = (o, e, r = "selectOption", s = "options") => {
322
+ let i = r, b = e;
323
+ if (c) {
324
+ if (b = Array.isArray(l) ? l.slice() : [], process.env.NODE_ENV !== "production") {
325
+ const k = b.filter((ye) => Y(e, ye));
326
+ 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(`
313
327
  `));
314
328
  }
315
- const y = f.findIndex((w) => Y(e, w));
316
- y === -1 ? f.push(e) : p !== "freeSolo" && (f.splice(y, 1), a = "removeOption");
329
+ const y = b.findIndex((k) => Y(e, k));
330
+ y === -1 ? b.push(e) : s !== "freeSolo" && (b.splice(y, 1), i = "removeOption");
317
331
  }
318
- fe(o, f, a), X(o, f, a, {
332
+ ge(o, b, i), J(o, b, i, {
319
333
  option: e
320
- }), !ue && (!o || !o.ctrlKey && !o.metaKey) && ae(o, a), (v === !0 || v === "touch" && me.current || v === "mouse" && !me.current) && h.current.blur();
334
+ }), !ce && (!o || !o.ctrlKey && !o.metaKey) && ie(o, i), (v === !0 || v === "touch" && X.current || v === "mouse" && !X.current) && h.current.blur();
321
335
  };
322
- function je(o, e) {
336
+ function st(o, e) {
323
337
  if (o === -1)
324
338
  return -1;
325
339
  let r = o;
326
340
  for (; ; ) {
327
- if (e === "next" && r === s.length || e === "previous" && r === -1)
341
+ if (e === "next" && r === l.length || e === "previous" && r === -1)
328
342
  return -1;
329
- const p = L ? "data-item-index" : "data-tag-index", a = Oe.querySelector(`[${p}="${r}"]`);
330
- if (!a || !a.hasAttribute("tabindex") || a.disabled || a.getAttribute("aria-disabled") === "true")
343
+ const s = w ? "data-item-index" : "data-tag-index", i = Ce.querySelector(`[${s}="${r}"]`);
344
+ if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
331
345
  r += e === "next" ? 1 : -1;
332
346
  else
333
347
  return r;
334
348
  }
335
349
  }
336
- const Ue = (o, e) => {
337
- if (!u)
350
+ const le = (o, e) => {
351
+ if (!c)
338
352
  return;
339
- g === "" && ae(o, "toggleInput");
340
- let r = V;
341
- 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);
342
- }, ie = (o) => {
343
- xe.current = !0, ne(""), Q && Q(o, "", "clear"), X(o, u ? [] : null, "clear");
344
- }, st = (o) => (e) => {
345
- if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
353
+ g === "" && ie(o, "toggleInput");
354
+ let r = M;
355
+ 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);
356
+ }, Be = (o) => {
357
+ Oe.current = !0, ae(""), Q && Q(o, "", "clear"), J(o, c ? [] : null, "clear");
358
+ }, it = (o) => (e) => {
359
+ if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (M !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Fe(-1), z(-1)), e.which !== 229))
346
360
  switch (e.key) {
347
361
  case "Home":
348
- k && Ze && (e.preventDefault(), U({
362
+ L && Ze && (e.preventDefault(), j({
349
363
  diff: "start",
350
364
  direction: "next",
351
365
  reason: "keyboard",
@@ -353,7 +367,7 @@ function Yt(n) {
353
367
  }));
354
368
  break;
355
369
  case "End":
356
- k && Ze && (e.preventDefault(), U({
370
+ L && Ze && (e.preventDefault(), j({
357
371
  diff: "end",
358
372
  direction: "previous",
359
373
  reason: "keyboard",
@@ -361,158 +375,158 @@ function Yt(n) {
361
375
  }));
362
376
  break;
363
377
  case "PageUp":
364
- e.preventDefault(), U({
378
+ e.preventDefault(), j({
365
379
  diff: -wt,
366
380
  direction: "previous",
367
381
  reason: "keyboard",
368
382
  event: e
369
- }), R(e);
383
+ }), _(e);
370
384
  break;
371
385
  case "PageDown":
372
- e.preventDefault(), U({
386
+ e.preventDefault(), j({
373
387
  diff: wt,
374
388
  direction: "next",
375
389
  reason: "keyboard",
376
390
  event: e
377
- }), R(e);
391
+ }), _(e);
378
392
  break;
379
393
  case "ArrowDown":
380
- e.preventDefault(), U({
394
+ e.preventDefault(), j({
381
395
  diff: 1,
382
396
  direction: "next",
383
397
  reason: "keyboard",
384
398
  event: e
385
- }), R(e);
399
+ }), _(e);
386
400
  break;
387
401
  case "ArrowUp":
388
- e.preventDefault(), U({
402
+ e.preventDefault(), j({
389
403
  diff: -1,
390
404
  direction: "previous",
391
405
  reason: "keyboard",
392
406
  event: e
393
- }), R(e);
407
+ }), _(e);
394
408
  break;
395
409
  case "ArrowLeft":
396
- !u && L ? j(0) : Ue(e, "previous");
410
+ !c && w ? z(0) : le(e, "previous");
397
411
  break;
398
412
  case "ArrowRight":
399
- !u && L ? j(-1) : Ue(e, "next");
413
+ !c && w ? z(-1) : le(e, "next");
400
414
  break;
401
415
  case "Enter":
402
- if (C.current !== -1 && k) {
403
- const r = b[C.current], p = G ? G(r) : !1;
404
- if (e.preventDefault(), p)
416
+ if (S.current !== -1 && L) {
417
+ const r = m[S.current], s = W ? W(r) : !1;
418
+ if (e.preventDefault(), s)
405
419
  return;
406
- q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
407
- } else ce && g !== "" && He === !1 && (u && e.preventDefault(), q(e, g, "createOption", "freeSolo"));
420
+ ee(e, r, "selectOption"), f && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
421
+ } else de && g !== "" && ze === !1 && (c && e.preventDefault(), ee(e, g, "createOption", "freeSolo"));
408
422
  break;
409
423
  case "Escape":
410
- k ? (e.preventDefault(), e.stopPropagation(), ae(e, "escape")) : B && (g !== "" || u && s.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), ie(e));
424
+ L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : U && (g !== "" || c && l.length > 0 || w) && (e.preventDefault(), e.stopPropagation(), Be(e));
411
425
  break;
412
426
  case "Backspace":
413
- if (u && !_ && g === "" && s.length > 0) {
414
- const r = V === -1 ? s.length - 1 : V, p = s.slice();
415
- p.splice(r, 1), X(e, p, "removeOption", {
416
- option: s[r]
427
+ if (c && !G && g === "" && l.length > 0) {
428
+ const r = M === -1 ? l.length - 1 : M, s = l.slice();
429
+ s.splice(r, 1), J(e, s, "removeOption", {
430
+ option: l[r]
417
431
  });
418
432
  }
419
- !u && L && !_ && (Pe(null), j(-1));
433
+ !c && w && !G && ($e(null), z(-1));
420
434
  break;
421
435
  case "Delete":
422
- if (u && !_ && g === "" && s.length > 0 && V !== -1) {
423
- const r = V, p = s.slice();
424
- p.splice(r, 1), X(e, p, "removeOption", {
425
- option: s[r]
436
+ if (c && !G && g === "" && l.length > 0 && M !== -1) {
437
+ const r = M, s = l.slice();
438
+ s.splice(r, 1), J(e, s, "removeOption", {
439
+ option: l[r]
426
440
  });
427
441
  }
428
- !u && L && !_ && (Pe(null), j(-1));
442
+ !c && w && !G && ($e(null), z(-1));
429
443
  break;
430
444
  }
431
- }, lt = (o) => {
432
- Fe(!0), yt && !xe.current && R(o);
433
- }, se = (o) => {
434
- if (i(F)) {
445
+ }, be = (o) => {
446
+ He(!0), xt && !Oe.current && _(o);
447
+ }, he = (o) => {
448
+ if (a(V)) {
435
449
  h.current.focus();
436
450
  return;
437
451
  }
438
- 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");
439
- }, $e = (o) => {
452
+ 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");
453
+ }, Te = (o) => {
440
454
  const e = o.target.value;
441
- g !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
442
- }, Se = (o) => {
455
+ g !== e && (ae(e), me(!1), Q && Q(o, e, "input")), e === "" ? !B && !c && J(o, null, "clear") : _(o);
456
+ }, lt = (o) => {
443
457
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
444
- C.current !== e && J({
458
+ S.current !== e && K({
445
459
  event: o,
446
460
  index: e,
447
461
  reason: "mouse"
448
462
  });
449
463
  }, pt = (o) => {
450
- J({
464
+ K({
451
465
  event: o,
452
466
  index: Number(o.currentTarget.getAttribute("data-option-index")),
453
467
  reason: "touch"
454
- }), me.current = !0;
468
+ }), X.current = !0;
455
469
  }, ut = (o) => {
456
470
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
457
- q(o, b[e], "selectOption"), me.current = !1;
458
- }, Be = (o) => (e) => {
459
- const r = s.slice();
460
- r.splice(o, 1), X(e, r, "removeOption", {
461
- option: s[o]
471
+ ee(o, m[e], "selectOption"), X.current = !1;
472
+ }, ct = (o) => (e) => {
473
+ const r = l.slice();
474
+ r.splice(o, 1), J(e, r, "removeOption", {
475
+ option: l[o]
462
476
  });
463
- }, Ct = (o) => {
464
- X(o, null, "removeOption", {
465
- option: s
477
+ }, ve = (o) => {
478
+ J(o, null, "removeOption", {
479
+ option: l
466
480
  });
467
- }, be = (o) => {
468
- K ? ae(o, "toggleInput") : R(o);
469
- }, O = (o) => {
470
- o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
471
- }, P = (o) => {
472
- o.currentTarget.contains(o.target) && (h.current.focus(), ot && Ie.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Ie.current = !1);
473
- }, Z = (o) => {
474
- !E && (g === "" || !K) && be(o);
481
+ }, I = (o) => {
482
+ q ? ie(o, "toggleInput") : _(o);
483
+ }, C = (o) => {
484
+ o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== E && o.preventDefault();
485
+ }, te = (o) => {
486
+ o.currentTarget.contains(o.target) && (h.current.focus(), ot && Pe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Pe.current = !1);
487
+ }, dt = (o) => {
488
+ !N && (g === "" || !q) && I(o);
475
489
  };
476
- let Te = ce && g.length > 0;
477
- Te = Te || (u ? s.length > 0 : s !== null);
478
- let We = b;
479
- if (oe) {
490
+ let Ae = de && g.length > 0;
491
+ Ae = Ae || (c ? l.length > 0 : l !== null);
492
+ let We = m;
493
+ if (re) {
480
494
  const o = /* @__PURE__ */ new Map();
481
495
  let e = !1;
482
- We = b.reduce((r, p, a) => {
483
- const f = oe(p);
484
- 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({
485
- key: a,
486
- index: a,
487
- group: f,
488
- options: [p]
496
+ We = m.reduce((r, s, i) => {
497
+ const b = re(s);
498
+ 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({
499
+ key: i,
500
+ index: i,
501
+ group: b,
502
+ options: [s]
489
503
  })), r;
490
504
  }, []);
491
505
  }
492
- return E && de && se(), {
506
+ return N && fe && he(), {
493
507
  getRootProps: (o = {}) => ({
494
508
  ...o,
495
- onKeyDown: st(o),
496
- onMouseDown: O,
497
- onClick: P
509
+ onKeyDown: it(o),
510
+ onMouseDown: C,
511
+ onClick: te
498
512
  }),
499
513
  getInputLabelProps: () => ({
500
- id: `${M}-label`,
501
- htmlFor: M
514
+ id: `${E}-label`,
515
+ htmlFor: E
502
516
  }),
503
517
  getInputProps: () => ({
504
- id: M,
518
+ id: E,
505
519
  value: g,
506
- onBlur: se,
507
- onFocus: lt,
508
- onChange: $e,
509
- onMouseDown: Z,
520
+ onBlur: he,
521
+ onFocus: be,
522
+ onChange: Te,
523
+ onMouseDown: dt,
510
524
  // if open then this is handled imperatively so don't let react override
511
525
  // only have an opinion about this when closed
512
- "aria-activedescendant": k ? "" : null,
513
- "aria-autocomplete": m ? "both" : "list",
514
- "aria-controls": ze ? `${M}-listbox` : void 0,
515
- "aria-expanded": ze,
526
+ "aria-activedescendant": L ? "" : null,
527
+ "aria-autocomplete": f ? "both" : "list",
528
+ "aria-controls": je ? `${E}-listbox` : void 0,
529
+ "aria-expanded": je,
516
530
  // Disable browser's suggestion that might overlap with the popup.
517
531
  // Handle autocomplete but not autofill.
518
532
  autoComplete: "off",
@@ -520,33 +534,33 @@ function Yt(n) {
520
534
  autoCapitalize: "none",
521
535
  spellCheck: "false",
522
536
  role: "combobox",
523
- disabled: E
537
+ disabled: N
524
538
  }),
525
539
  getClearProps: () => ({
526
540
  tabIndex: -1,
527
541
  type: "button",
528
- onClick: ie
542
+ onClick: Be
529
543
  }),
530
544
  getItemProps: ({
531
545
  index: o = 0
532
546
  } = {}) => ({
533
- ...u && {
547
+ ...c && {
534
548
  key: o
535
549
  },
536
- ...L ? {
550
+ ...w ? {
537
551
  "data-item-index": o
538
552
  } : {
539
553
  "data-tag-index": o
540
554
  },
541
555
  tabIndex: -1,
542
- ...!_ && {
543
- onDelete: u ? Be(o) : Ct
556
+ ...!G && {
557
+ onDelete: c ? ct(o) : ve
544
558
  }
545
559
  }),
546
560
  getPopupIndicatorProps: () => ({
547
561
  tabIndex: -1,
548
562
  type: "button",
549
- onClick: be
563
+ onClick: I
550
564
  }),
551
565
  // deprecated
552
566
  getTagProps: ({
@@ -555,15 +569,15 @@ function Yt(n) {
555
569
  key: o,
556
570
  "data-tag-index": o,
557
571
  tabIndex: -1,
558
- ...!_ && {
559
- onDelete: Be(o)
572
+ ...!G && {
573
+ onDelete: ct(o)
560
574
  }
561
575
  }),
562
576
  getListboxProps: () => ({
563
577
  role: "listbox",
564
- id: `${M}-listbox`,
565
- "aria-labelledby": `${M}-label`,
566
- ref: it,
578
+ id: `${E}-listbox`,
579
+ "aria-labelledby": `${E}-label`,
580
+ ref: Z,
567
581
  onMouseDown: (o) => {
568
582
  o.preventDefault();
569
583
  }
@@ -572,59 +586,59 @@ function Yt(n) {
572
586
  index: o,
573
587
  option: e
574
588
  }) => {
575
- const r = (u ? s : [s]).some((a) => a != null && Y(e, a)), p = G ? G(e) : !1;
589
+ const r = (c ? l : [l]).some((i) => i != null && Y(e, i)), s = W ? W(e) : !1;
576
590
  return {
577
- key: (Re == null ? void 0 : Re(e)) ?? S(e),
591
+ key: (De == null ? void 0 : De(e)) ?? P(e),
578
592
  tabIndex: -1,
579
593
  role: "option",
580
- id: `${M}-option-${o}`,
581
- onMouseMove: Se,
594
+ id: `${E}-option-${o}`,
595
+ onMouseMove: lt,
582
596
  onClick: ut,
583
597
  onTouchStart: pt,
584
598
  "data-option-index": o,
585
- "aria-disabled": p,
599
+ "aria-disabled": s,
586
600
  "aria-selected": r
587
601
  };
588
602
  },
589
- id: M,
603
+ id: E,
590
604
  inputValue: g,
591
- value: s,
592
- dirty: Te,
593
- expanded: k && Oe,
594
- popupOpen: k,
595
- focused: de || V !== -1,
596
- anchorEl: Oe,
597
- setAnchorEl: It,
598
- focusedItem: V,
605
+ value: l,
606
+ dirty: Ae,
607
+ expanded: L && Ce,
608
+ popupOpen: L,
609
+ focused: fe || M !== -1,
610
+ anchorEl: Ce,
611
+ setAnchorEl: Ot,
612
+ focusedItem: M,
599
613
  // deprecated
600
- focusedTag: V,
614
+ focusedTag: M,
601
615
  groupedOptions: We
602
616
  };
603
617
  }
604
618
  function Qt(n) {
605
- return Dt("MuiListSubheader", n);
619
+ return Nt("MuiListSubheader", n);
606
620
  }
607
- const Vo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
621
+ const Mo = Dt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
608
622
  const {
609
- classes: i,
610
- color: d,
611
- disableGutters: m,
612
- inset: T,
613
- disableSticky: D
623
+ classes: a,
624
+ color: u,
625
+ disableGutters: f,
626
+ inset: $,
627
+ disableSticky: R
614
628
  } = n, v = {
615
- root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters", T && "inset", !D && "sticky"]
629
+ root: ["root", u !== "default" && `color${Ye(u)}`, !f && "gutters", $ && "inset", !R && "sticky"]
616
630
  };
617
- return Et(v, Qt, i);
618
- }, eo = H("li", {
631
+ return Mt(v, Qt, a);
632
+ }, eo = F("li", {
619
633
  name: "MuiListSubheader",
620
634
  slot: "Root",
621
- overridesResolver: (n, i) => {
635
+ overridesResolver: (n, a) => {
622
636
  const {
623
- ownerState: d
637
+ ownerState: u
624
638
  } = n;
625
- return [i.root, d.color !== "default" && i[`color${Ye(d.color)}`], !d.disableGutters && i.gutters, d.inset && i.inset, !d.disableSticky && i.sticky];
639
+ return [a.root, u.color !== "default" && a[`color${Ye(u.color)}`], !u.disableGutters && a.gutters, u.inset && a.inset, !u.disableSticky && a.sticky];
626
640
  }
627
- })(pe(({
641
+ })(ue(({
628
642
  theme: n
629
643
  }) => ({
630
644
  boxSizing: "border-box",
@@ -650,23 +664,23 @@ const Vo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
650
664
  }
651
665
  }, {
652
666
  props: ({
653
- ownerState: i
654
- }) => !i.disableGutters,
667
+ ownerState: a
668
+ }) => !a.disableGutters,
655
669
  style: {
656
670
  paddingLeft: 16,
657
671
  paddingRight: 16
658
672
  }
659
673
  }, {
660
674
  props: ({
661
- ownerState: i
662
- }) => i.inset,
675
+ ownerState: a
676
+ }) => a.inset,
663
677
  style: {
664
678
  paddingLeft: 72
665
679
  }
666
680
  }, {
667
681
  props: ({
668
- ownerState: i
669
- }) => !i.disableSticky,
682
+ ownerState: a
683
+ }) => !a.disableSticky,
670
684
  style: {
671
685
  position: "sticky",
672
686
  top: 0,
@@ -674,32 +688,32 @@ const Vo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
674
688
  backgroundColor: (n.vars || n).palette.background.paper
675
689
  }
676
690
  }]
677
- }))), Xe = /* @__PURE__ */ x.forwardRef(function(i, d) {
678
- const m = Nt({
679
- props: i,
691
+ }))), Xe = /* @__PURE__ */ x.forwardRef(function(a, u) {
692
+ const f = Et({
693
+ props: a,
680
694
  name: "MuiListSubheader"
681
695
  }), {
682
- className: T,
683
- color: D = "default",
696
+ className: $,
697
+ color: R = "default",
684
698
  component: v = "li",
685
- disableGutters: N = !1,
686
- disableSticky: B = !1,
687
- inset: I = !1,
688
- ...$
689
- } = m, W = {
690
- ...m,
691
- color: D,
699
+ disableGutters: D = !1,
700
+ disableSticky: U = !1,
701
+ inset: O = !1,
702
+ ...T
703
+ } = f, B = {
704
+ ...f,
705
+ color: R,
692
706
  component: v,
693
- disableGutters: N,
694
- disableSticky: B,
695
- inset: I
696
- }, ue = Zt(W);
707
+ disableGutters: D,
708
+ disableSticky: U,
709
+ inset: O
710
+ }, ce = Zt(B);
697
711
  return /* @__PURE__ */ A(eo, {
698
712
  as: v,
699
- className: Je(ue.root, T),
700
- ref: d,
701
- ownerState: W,
702
- ...$
713
+ className: Je(ce.root, $),
714
+ ref: u,
715
+ ownerState: B,
716
+ ...T
703
717
  });
704
718
  });
705
719
  Xe && (Xe.muiSkipListHighlight = !0);
@@ -751,31 +765,31 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
751
765
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
752
766
  });
753
767
  function to(n) {
754
- return Dt("MuiAutocomplete", n);
768
+ return Nt("MuiAutocomplete", n);
755
769
  }
756
- 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"]);
757
- var Lt, kt;
770
+ 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"]);
771
+ var kt, Rt;
758
772
  const oo = (n) => {
759
773
  const {
760
- classes: i,
761
- disablePortal: d,
762
- expanded: m,
763
- focused: T,
764
- fullWidth: D,
774
+ classes: a,
775
+ disablePortal: u,
776
+ expanded: f,
777
+ focused: $,
778
+ fullWidth: R,
765
779
  hasClearIcon: v,
766
- hasPopupIcon: N,
767
- inputFocused: B,
768
- popupOpen: I,
769
- size: $
770
- } = n, W = {
771
- root: ["root", m && "expanded", T && "focused", D && "fullWidth", v && "hasClearIcon", N && "hasPopupIcon"],
780
+ hasPopupIcon: D,
781
+ inputFocused: U,
782
+ popupOpen: O,
783
+ size: T
784
+ } = n, B = {
785
+ root: ["root", f && "expanded", $ && "focused", R && "fullWidth", v && "hasClearIcon", D && "hasPopupIcon"],
772
786
  inputRoot: ["inputRoot"],
773
- input: ["input", B && "inputFocused"],
774
- tag: ["tag", `tagSize${Ye($)}`],
787
+ input: ["input", U && "inputFocused"],
788
+ tag: ["tag", `tagSize${Ye(T)}`],
775
789
  endAdornment: ["endAdornment"],
776
790
  clearIndicator: ["clearIndicator"],
777
- popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
778
- popper: ["popper", d && "popperDisablePortal"],
791
+ popupIndicator: ["popupIndicator", O && "popupIndicatorOpen"],
792
+ popper: ["popper", u && "popperDisablePortal"],
779
793
  paper: ["paper"],
780
794
  listbox: ["listbox"],
781
795
  loading: ["loading"],
@@ -784,134 +798,134 @@ const oo = (n) => {
784
798
  groupLabel: ["groupLabel"],
785
799
  groupUl: ["groupUl"]
786
800
  };
787
- return Et(W, to, i);
788
- }, no = H("div", {
801
+ return Mt(B, to, a);
802
+ }, no = F("div", {
789
803
  name: "MuiAutocomplete",
790
804
  slot: "Root",
791
- overridesResolver: (n, i) => {
805
+ overridesResolver: (n, a) => {
792
806
  const {
793
- ownerState: d
807
+ ownerState: u
794
808
  } = n, {
795
- fullWidth: m,
796
- hasClearIcon: T,
797
- hasPopupIcon: D,
809
+ fullWidth: f,
810
+ hasClearIcon: $,
811
+ hasPopupIcon: R,
798
812
  inputFocused: v,
799
- size: N
800
- } = d;
813
+ size: D
814
+ } = u;
801
815
  return [{
802
- [`& .${l.tag}`]: i.tag
816
+ [`& .${p.tag}`]: a.tag
803
817
  }, {
804
- [`& .${l.tag}`]: i[`tagSize${Ye(N)}`]
818
+ [`& .${p.tag}`]: a[`tagSize${Ye(D)}`]
805
819
  }, {
806
- [`& .${l.inputRoot}`]: i.inputRoot
820
+ [`& .${p.inputRoot}`]: a.inputRoot
807
821
  }, {
808
- [`& .${l.input}`]: i.input
822
+ [`& .${p.input}`]: a.input
809
823
  }, {
810
- [`& .${l.input}`]: v && i.inputFocused
811
- }, i.root, m && i.fullWidth, D && i.hasPopupIcon, T && i.hasClearIcon];
824
+ [`& .${p.input}`]: v && a.inputFocused
825
+ }, a.root, f && a.fullWidth, R && a.hasPopupIcon, $ && a.hasClearIcon];
812
826
  }
813
827
  })({
814
- [`&.${l.focused} .${l.clearIndicator}`]: {
828
+ [`&.${p.focused} .${p.clearIndicator}`]: {
815
829
  visibility: "visible"
816
830
  },
817
831
  /* Avoid double tap issue on iOS */
818
832
  "@media (pointer: fine)": {
819
- [`&:hover .${l.clearIndicator}`]: {
833
+ [`&:hover .${p.clearIndicator}`]: {
820
834
  visibility: "visible"
821
835
  }
822
836
  },
823
- [`& .${l.tag}`]: {
837
+ [`& .${p.tag}`]: {
824
838
  margin: 3,
825
839
  maxWidth: "calc(100% - 6px)"
826
840
  },
827
- [`& .${l.inputRoot}`]: {
828
- [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
841
+ [`& .${p.inputRoot}`]: {
842
+ [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
829
843
  paddingRight: 30
830
844
  },
831
- [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
845
+ [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
832
846
  paddingRight: 56
833
847
  },
834
- [`& .${l.input}`]: {
848
+ [`& .${p.input}`]: {
835
849
  width: 0,
836
850
  minWidth: 30
837
851
  }
838
852
  },
839
- [`& .${dt.root}`]: {
853
+ [`& .${ft.root}`]: {
840
854
  paddingBottom: 1,
841
855
  "& .MuiInput-input": {
842
856
  padding: "4px 4px 4px 0px"
843
857
  }
844
858
  },
845
- [`& .${dt.root}.${le.sizeSmall}`]: {
846
- [`& .${dt.input}`]: {
859
+ [`& .${ft.root}.${pe.sizeSmall}`]: {
860
+ [`& .${ft.input}`]: {
847
861
  padding: "2px 4px 3px 0"
848
862
  }
849
863
  },
850
864
  [`& .${St.root}`]: {
851
865
  padding: 9,
852
- [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
866
+ [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
853
867
  paddingRight: 39
854
868
  },
855
- [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
869
+ [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
856
870
  paddingRight: 65
857
871
  },
858
- [`& .${l.input}`]: {
872
+ [`& .${p.input}`]: {
859
873
  padding: "7.5px 4px 7.5px 5px"
860
874
  },
861
- [`& .${l.endAdornment}`]: {
875
+ [`& .${p.endAdornment}`]: {
862
876
  right: 9
863
877
  }
864
878
  },
865
- [`& .${St.root}.${le.sizeSmall}`]: {
879
+ [`& .${St.root}.${pe.sizeSmall}`]: {
866
880
  // Don't specify paddingRight, as it overrides the default value set when there is only
867
881
  // one of the popup or clear icon as the specificity is equal so the latter one wins
868
882
  paddingTop: 6,
869
883
  paddingBottom: 6,
870
884
  paddingLeft: 6,
871
- [`& .${l.input}`]: {
885
+ [`& .${p.input}`]: {
872
886
  padding: "2.5px 4px 2.5px 8px"
873
887
  }
874
888
  },
875
- [`& .${he.root}`]: {
889
+ [`& .${xe.root}`]: {
876
890
  paddingTop: 19,
877
891
  paddingLeft: 8,
878
- [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
892
+ [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
879
893
  paddingRight: 39
880
894
  },
881
- [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
895
+ [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
882
896
  paddingRight: 65
883
897
  },
884
- [`& .${he.input}`]: {
898
+ [`& .${xe.input}`]: {
885
899
  padding: "7px 4px"
886
900
  },
887
- [`& .${l.endAdornment}`]: {
901
+ [`& .${p.endAdornment}`]: {
888
902
  right: 9
889
903
  }
890
904
  },
891
- [`& .${he.root}.${le.sizeSmall}`]: {
905
+ [`& .${xe.root}.${pe.sizeSmall}`]: {
892
906
  paddingBottom: 1,
893
- [`& .${he.input}`]: {
907
+ [`& .${xe.input}`]: {
894
908
  padding: "2.5px 4px"
895
909
  }
896
910
  },
897
- [`& .${le.hiddenLabel}`]: {
911
+ [`& .${pe.hiddenLabel}`]: {
898
912
  paddingTop: 8
899
913
  },
900
- [`& .${he.root}.${le.hiddenLabel}`]: {
914
+ [`& .${xe.root}.${pe.hiddenLabel}`]: {
901
915
  paddingTop: 0,
902
916
  paddingBottom: 0,
903
- [`& .${l.input}`]: {
917
+ [`& .${p.input}`]: {
904
918
  paddingTop: 16,
905
919
  paddingBottom: 17
906
920
  }
907
921
  },
908
- [`& .${he.root}.${le.hiddenLabel}.${le.sizeSmall}`]: {
909
- [`& .${l.input}`]: {
922
+ [`& .${xe.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
923
+ [`& .${p.input}`]: {
910
924
  paddingTop: 8,
911
925
  paddingBottom: 9
912
926
  }
913
927
  },
914
- [`& .${l.input}`]: {
928
+ [`& .${p.input}`]: {
915
929
  flexGrow: 1,
916
930
  textOverflow: "ellipsis",
917
931
  opacity: 0
@@ -928,7 +942,7 @@ const oo = (n) => {
928
942
  size: "small"
929
943
  },
930
944
  style: {
931
- [`& .${l.tag}`]: {
945
+ [`& .${p.tag}`]: {
932
946
  margin: 2,
933
947
  maxWidth: "calc(100% - 4px)"
934
948
  }
@@ -938,7 +952,7 @@ const oo = (n) => {
938
952
  inputFocused: !0
939
953
  },
940
954
  style: {
941
- [`& .${l.input}`]: {
955
+ [`& .${p.input}`]: {
942
956
  opacity: 1
943
957
  }
944
958
  }
@@ -947,12 +961,12 @@ const oo = (n) => {
947
961
  multiple: !0
948
962
  },
949
963
  style: {
950
- [`& .${l.inputRoot}`]: {
964
+ [`& .${p.inputRoot}`]: {
951
965
  flexWrap: "wrap"
952
966
  }
953
967
  }
954
968
  }]
955
- }), ro = H("div", {
969
+ }), ro = F("div", {
956
970
  name: "MuiAutocomplete",
957
971
  slot: "EndAdornment"
958
972
  })({
@@ -961,21 +975,21 @@ const oo = (n) => {
961
975
  right: 0,
962
976
  top: "50%",
963
977
  transform: "translate(0, -50%)"
964
- }), ao = H(Ft, {
978
+ }), ao = F(Ht, {
965
979
  name: "MuiAutocomplete",
966
980
  slot: "ClearIndicator"
967
981
  })({
968
982
  marginRight: -2,
969
983
  padding: 4,
970
984
  visibility: "hidden"
971
- }), io = H(Ft, {
985
+ }), so = F(Ht, {
972
986
  name: "MuiAutocomplete",
973
987
  slot: "PopupIndicator",
974
- overridesResolver: (n, i) => {
988
+ overridesResolver: (n, a) => {
975
989
  const {
976
- ownerState: d
990
+ ownerState: u
977
991
  } = n;
978
- return [i.popupIndicator, d.popupOpen && i.popupIndicatorOpen];
992
+ return [a.popupIndicator, u.popupOpen && a.popupIndicatorOpen];
979
993
  }
980
994
  })({
981
995
  padding: 2,
@@ -988,18 +1002,18 @@ const oo = (n) => {
988
1002
  transform: "rotate(180deg)"
989
1003
  }
990
1004
  }]
991
- }), so = H(Vt, {
1005
+ }), io = F(Ft, {
992
1006
  name: "MuiAutocomplete",
993
1007
  slot: "Popper",
994
- overridesResolver: (n, i) => {
1008
+ overridesResolver: (n, a) => {
995
1009
  const {
996
- ownerState: d
1010
+ ownerState: u
997
1011
  } = n;
998
1012
  return [{
999
- [`& .${l.option}`]: i.option
1000
- }, i.popper, d.disablePortal && i.popperDisablePortal];
1013
+ [`& .${p.option}`]: a.option
1014
+ }, a.popper, u.disablePortal && a.popperDisablePortal];
1001
1015
  }
1002
- })(pe(({
1016
+ })(ue(({
1003
1017
  theme: n
1004
1018
  }) => ({
1005
1019
  zIndex: (n.vars || n).zIndex.modal,
@@ -1011,34 +1025,34 @@ const oo = (n) => {
1011
1025
  position: "absolute"
1012
1026
  }
1013
1027
  }]
1014
- }))), lo = H(Mt, {
1028
+ }))), lo = F(Vt, {
1015
1029
  name: "MuiAutocomplete",
1016
1030
  slot: "Paper"
1017
- })(pe(({
1031
+ })(ue(({
1018
1032
  theme: n
1019
1033
  }) => ({
1020
1034
  ...n.typography.body1,
1021
1035
  overflow: "auto"
1022
- }))), po = H("div", {
1036
+ }))), po = F("div", {
1023
1037
  name: "MuiAutocomplete",
1024
1038
  slot: "Loading"
1025
- })(pe(({
1039
+ })(ue(({
1026
1040
  theme: n
1027
1041
  }) => ({
1028
1042
  color: (n.vars || n).palette.text.secondary,
1029
1043
  padding: "14px 16px"
1030
- }))), uo = H("div", {
1044
+ }))), uo = F("div", {
1031
1045
  name: "MuiAutocomplete",
1032
1046
  slot: "NoOptions"
1033
- })(pe(({
1047
+ })(ue(({
1034
1048
  theme: n
1035
1049
  }) => ({
1036
1050
  color: (n.vars || n).palette.text.secondary,
1037
1051
  padding: "14px 16px"
1038
- }))), co = H("ul", {
1052
+ }))), co = F("ul", {
1039
1053
  name: "MuiAutocomplete",
1040
1054
  slot: "Listbox"
1041
- })(pe(({
1055
+ })(ue(({
1042
1056
  theme: n
1043
1057
  }) => ({
1044
1058
  listStyle: "none",
@@ -1047,7 +1061,7 @@ const oo = (n) => {
1047
1061
  maxHeight: "40vh",
1048
1062
  overflow: "auto",
1049
1063
  position: "relative",
1050
- [`& .${l.option}`]: {
1064
+ [`& .${p.option}`]: {
1051
1065
  minHeight: 48,
1052
1066
  display: "flex",
1053
1067
  overflow: "hidden",
@@ -1064,7 +1078,7 @@ const oo = (n) => {
1064
1078
  [n.breakpoints.up("sm")]: {
1065
1079
  minHeight: "auto"
1066
1080
  },
1067
- [`&.${l.focused}`]: {
1081
+ [`&.${p.focused}`]: {
1068
1082
  backgroundColor: (n.vars || n).palette.action.hover,
1069
1083
  // Reset on touch devices, it doesn't add specificity
1070
1084
  "@media (hover: none)": {
@@ -1075,327 +1089,327 @@ const oo = (n) => {
1075
1089
  opacity: (n.vars || n).palette.action.disabledOpacity,
1076
1090
  pointerEvents: "none"
1077
1091
  },
1078
- [`&.${l.focusVisible}`]: {
1092
+ [`&.${p.focusVisible}`]: {
1079
1093
  backgroundColor: (n.vars || n).palette.action.focus
1080
1094
  },
1081
1095
  '&[aria-selected="true"]': {
1082
- backgroundColor: n.vars ? `rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})` : ct(n.palette.primary.main, n.palette.action.selectedOpacity),
1083
- [`&.${l.focused}`]: {
1084
- 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),
1096
+ backgroundColor: n.alpha((n.vars || n).palette.primary.main, (n.vars || n).palette.action.selectedOpacity),
1097
+ [`&.${p.focused}`]: {
1098
+ backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.hoverOpacity}`),
1085
1099
  // Reset on touch devices, it doesn't add specificity
1086
1100
  "@media (hover: none)": {
1087
1101
  backgroundColor: (n.vars || n).palette.action.selected
1088
1102
  }
1089
1103
  },
1090
- [`&.${l.focusVisible}`]: {
1091
- 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)
1104
+ [`&.${p.focusVisible}`]: {
1105
+ backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.focusOpacity}`)
1092
1106
  }
1093
1107
  }
1094
1108
  }
1095
- }))), fo = H(Xe, {
1109
+ }))), fo = F(Xe, {
1096
1110
  name: "MuiAutocomplete",
1097
1111
  slot: "GroupLabel"
1098
- })(pe(({
1112
+ })(ue(({
1099
1113
  theme: n
1100
1114
  }) => ({
1101
1115
  backgroundColor: (n.vars || n).palette.background.paper,
1102
1116
  top: -8
1103
- }))), go = H("ul", {
1117
+ }))), go = F("ul", {
1104
1118
  name: "MuiAutocomplete",
1105
1119
  slot: "GroupUl"
1106
1120
  })({
1107
1121
  padding: 0,
1108
- [`& .${l.option}`]: {
1122
+ [`& .${p.option}`]: {
1109
1123
  paddingLeft: 24
1110
1124
  }
1111
- }), mo = /* @__PURE__ */ x.forwardRef(function(i, d) {
1112
- const m = Nt({
1113
- props: i,
1125
+ }), mo = /* @__PURE__ */ x.forwardRef(function(a, u) {
1126
+ const f = Et({
1127
+ props: a,
1114
1128
  name: "MuiAutocomplete"
1115
1129
  }), {
1116
- autoComplete: T = !1,
1117
- autoHighlight: D = !1,
1130
+ autoComplete: $ = !1,
1131
+ autoHighlight: R = !1,
1118
1132
  autoSelect: v = !1,
1119
- blurOnSelect: N = !1,
1120
- ChipProps: B,
1121
- className: I,
1122
- clearIcon: $ = Lt || (Lt = /* @__PURE__ */ A(jt, {
1133
+ blurOnSelect: D = !1,
1134
+ ChipProps: U,
1135
+ className: O,
1136
+ clearIcon: T = kt || (kt = /* @__PURE__ */ A(jt, {
1123
1137
  fontSize: "small"
1124
1138
  })),
1125
- clearOnBlur: W = !m.freeSolo,
1126
- clearOnEscape: ue = !1,
1127
- clearText: E = "Clear",
1128
- closeText: Ae = "Close",
1129
- componentsProps: Le,
1130
- defaultValue: mt = m.multiple ? [] : null,
1131
- disableClearable: ke = !1,
1132
- disableCloseOnSelect: ce = !1,
1133
- disabled: G = !1,
1134
- disabledItemsFocusable: Re = !1,
1139
+ clearOnBlur: B = !f.freeSolo,
1140
+ clearOnEscape: ce = !1,
1141
+ clearText: N = "Clear",
1142
+ closeText: Le = "Close",
1143
+ componentsProps: ke,
1144
+ defaultValue: bt = f.multiple ? [] : null,
1145
+ disableClearable: Re = !1,
1146
+ disableCloseOnSelect: de = !1,
1147
+ disabled: W = !1,
1148
+ disabledItemsFocusable: De = !1,
1135
1149
  disableListWrap: Qe = !1,
1136
- disablePortal: oe = !1,
1150
+ disablePortal: re = !1,
1137
1151
  filterOptions: Ze,
1138
- filterSelectedOptions: bt = !1,
1139
- forcePopupIcon: ye = "auto",
1140
- freeSolo: De = !1,
1152
+ filterSelectedOptions: ht = !1,
1153
+ forcePopupIcon: Ie = "auto",
1154
+ freeSolo: Ne = !1,
1141
1155
  fullWidth: Y = !1,
1142
- getLimitTagsText: u = (c) => `+${c}`,
1156
+ getLimitTagsText: c = (d) => `+${d}`,
1143
1157
  getOptionDisabled: et,
1144
1158
  getOptionKey: tt,
1145
- getOptionLabel: Ne,
1159
+ getOptionLabel: Ee,
1146
1160
  isOptionEqualToValue: Q,
1147
- groupBy: Ee,
1148
- handleHomeEndKeys: ht = !m.freeSolo,
1149
- id: yt,
1150
- includeInputInList: xt = !1,
1151
- inputValue: _,
1152
- limitTags: L = -1,
1161
+ groupBy: Me,
1162
+ handleHomeEndKeys: yt = !f.freeSolo,
1163
+ id: xt,
1164
+ includeInputInList: It = !1,
1165
+ inputValue: G,
1166
+ limitTags: w = -1,
1153
1167
  ListboxComponent: ot,
1154
- ListboxProps: Me,
1155
- loading: M = !1,
1156
- loadingText: S = "Loading…",
1157
- multiple: xe = !1,
1158
- noOptionsText: Ie = "No options",
1168
+ ListboxProps: Ve,
1169
+ loading: E = !1,
1170
+ loadingText: P = "Loading…",
1171
+ multiple: Oe = !1,
1172
+ noOptionsText: Pe = "No options",
1159
1173
  onChange: h,
1160
- onClose: F,
1161
- onHighlightChange: Oe,
1162
- onInputChange: It,
1163
- onOpen: V,
1164
- open: Ve,
1174
+ onClose: V,
1175
+ onHighlightChange: Ce,
1176
+ onInputChange: Ot,
1177
+ onOpen: M,
1178
+ open: Fe,
1165
1179
  openOnFocus: nt = !1,
1166
- openText: C = "Open",
1167
- options: Ot,
1168
- PaperComponent: s,
1169
- PopperComponent: Pe,
1170
- popupIcon: g = kt || (kt = /* @__PURE__ */ A(zt, {})),
1171
- readOnly: ne = !1,
1172
- renderGroup: de,
1173
- renderInput: Fe,
1174
- renderOption: fe,
1175
- renderTags: K,
1176
- renderValue: re,
1177
- selectOnFocus: Pt = !m.freeSolo,
1178
- size: ge = "medium",
1179
- slots: He = {},
1180
- slotProps: k = {},
1181
- value: b,
1182
- ...z
1183
- } = m, {
1184
- getRootProps: ze,
1185
- getInputProps: j,
1180
+ openText: S = "Open",
1181
+ options: Pt,
1182
+ PaperComponent: l,
1183
+ PopperComponent: $e,
1184
+ popupIcon: g = Rt || (Rt = /* @__PURE__ */ A(zt, {})),
1185
+ readOnly: ae = !1,
1186
+ renderGroup: fe,
1187
+ renderInput: He,
1188
+ renderOption: ge,
1189
+ renderTags: q,
1190
+ renderValue: se,
1191
+ selectOnFocus: Ct = !f.freeSolo,
1192
+ size: me = "medium",
1193
+ slots: ze = {},
1194
+ slotProps: L = {},
1195
+ value: m,
1196
+ ...H
1197
+ } = f, {
1198
+ getRootProps: je,
1199
+ getInputProps: z,
1186
1200
  getInputLabelProps: rt,
1187
- getPopupIndicatorProps: J,
1188
- getClearProps: U,
1189
- getItemProps: at,
1190
- getListboxProps: Ce,
1191
- getOptionProps: it,
1192
- value: R,
1193
- dirty: ae,
1194
- expanded: X,
1195
- id: me,
1196
- popupOpen: q,
1197
- focused: je,
1198
- focusedItem: Ue,
1199
- anchorEl: ie,
1200
- setAnchorEl: st,
1201
- inputValue: lt,
1202
- groupedOptions: se
1201
+ getPopupIndicatorProps: K,
1202
+ getClearProps: j,
1203
+ getItemProps: Ue,
1204
+ getListboxProps: at,
1205
+ getOptionProps: Se,
1206
+ value: Z,
1207
+ dirty: _,
1208
+ expanded: ie,
1209
+ id: J,
1210
+ popupOpen: X,
1211
+ focused: ee,
1212
+ focusedItem: st,
1213
+ anchorEl: le,
1214
+ setAnchorEl: Be,
1215
+ inputValue: it,
1216
+ groupedOptions: be
1203
1217
  } = Yt({
1204
- ...m,
1218
+ ...f,
1205
1219
  componentName: "Autocomplete"
1206
- }), $e = !ke && !G && ae && !ne, Se = (!De || ye === !0) && ye !== !1, {
1207
- onMouseDown: pt
1208
- } = j(), {
1209
- ref: ut,
1210
- ...Be
1211
- } = Ce(), be = Ne || ((c) => c.label ?? c), O = {
1212
- ...m,
1213
- disablePortal: oe,
1214
- expanded: X,
1215
- focused: je,
1220
+ }), he = !Re && !W && _ && !ae, Te = (!Ne || Ie === !0) && Ie !== !1, {
1221
+ onMouseDown: lt
1222
+ } = z(), {
1223
+ ref: pt,
1224
+ ...ut
1225
+ } = at(), ve = Ee || ((d) => d.label ?? d), I = {
1226
+ ...f,
1227
+ disablePortal: re,
1228
+ expanded: ie,
1229
+ focused: ee,
1216
1230
  fullWidth: Y,
1217
- getOptionLabel: be,
1218
- hasClearIcon: $e,
1219
- hasPopupIcon: Se,
1220
- inputFocused: Ue === -1,
1221
- popupOpen: q,
1222
- size: ge
1223
- }, P = oo(O), Z = {
1231
+ getOptionLabel: ve,
1232
+ hasClearIcon: he,
1233
+ hasPopupIcon: Te,
1234
+ inputFocused: st === -1,
1235
+ popupOpen: X,
1236
+ size: me
1237
+ }, C = oo(I), te = {
1224
1238
  slots: {
1225
- paper: s,
1226
- popper: Pe,
1227
- ...He
1239
+ paper: l,
1240
+ popper: $e,
1241
+ ...ze
1228
1242
  },
1229
1243
  slotProps: {
1230
- chip: B,
1231
- listbox: Me,
1232
- ...Le,
1233
- ...k
1244
+ chip: U,
1245
+ listbox: Ve,
1246
+ ...ke,
1247
+ ...L
1234
1248
  }
1235
- }, [Te, We] = ft("listbox", {
1249
+ }, [dt, Ae] = gt("listbox", {
1236
1250
  elementType: co,
1237
- externalForwardedProps: Z,
1238
- ownerState: O,
1239
- className: P.listbox,
1240
- additionalProps: Be,
1241
- ref: ut
1242
- }), [o, e] = ft("paper", {
1243
- elementType: Mt,
1244
- externalForwardedProps: Z,
1245
- ownerState: O,
1246
- className: P.paper
1247
- }), [r, p] = ft("popper", {
1251
+ externalForwardedProps: te,
1252
+ ownerState: I,
1253
+ className: C.listbox,
1254
+ additionalProps: ut,
1255
+ ref: pt
1256
+ }), [We, o] = gt("paper", {
1248
1257
  elementType: Vt,
1249
- externalForwardedProps: Z,
1250
- ownerState: O,
1251
- className: P.popper,
1258
+ externalForwardedProps: te,
1259
+ ownerState: I,
1260
+ className: C.paper
1261
+ }), [e, r] = gt("popper", {
1262
+ elementType: Ft,
1263
+ externalForwardedProps: te,
1264
+ ownerState: I,
1265
+ className: C.popper,
1252
1266
  additionalProps: {
1253
- disablePortal: oe,
1267
+ disablePortal: re,
1254
1268
  style: {
1255
- width: ie ? ie.clientWidth : null
1269
+ width: le ? le.clientWidth : null
1256
1270
  },
1257
1271
  role: "presentation",
1258
- anchorEl: ie,
1259
- open: q
1272
+ anchorEl: le,
1273
+ open: X
1260
1274
  }
1261
1275
  });
1262
- let a;
1263
- const f = (c) => ({
1264
- className: P.tag,
1265
- disabled: G,
1266
- ...at(c)
1276
+ let s;
1277
+ const i = (d) => ({
1278
+ className: C.tag,
1279
+ disabled: W,
1280
+ ...Ue(d)
1267
1281
  });
1268
- if (xe ? R.length > 0 && (K ? a = K(R, f, O) : re ? a = re(R, f, O) : a = R.map((c, ee) => {
1282
+ if (Oe ? Z.length > 0 && (q ? s = q(Z, i, I) : se ? s = se(Z, i, I) : s = Z.map((d, oe) => {
1269
1283
  const {
1270
- key: te,
1284
+ key: ne,
1271
1285
  ...we
1272
- } = f({
1273
- index: ee
1286
+ } = i({
1287
+ index: oe
1274
1288
  });
1275
1289
  return /* @__PURE__ */ A(Gt, {
1276
- label: be(c),
1277
- size: ge,
1290
+ label: ve(d),
1291
+ size: me,
1278
1292
  ...we,
1279
- ...Z.slotProps.chip
1280
- }, te);
1281
- })) : re && R != null && (a = re(R, f, O)), L > -1 && Array.isArray(a)) {
1282
- const c = a.length - L;
1283
- !je && c > 0 && (a = a.splice(0, L), a.push(/* @__PURE__ */ A("span", {
1284
- className: P.tag,
1285
- children: u(c)
1286
- }, a.length)));
1293
+ ...te.slotProps.chip
1294
+ }, ne);
1295
+ })) : se && Z != null && (s = se(Z, i, I)), w > -1 && Array.isArray(s)) {
1296
+ const d = s.length - w;
1297
+ !ee && d > 0 && (s = s.splice(0, w), s.push(/* @__PURE__ */ A("span", {
1298
+ className: C.tag,
1299
+ children: c(d)
1300
+ }, s.length)));
1287
1301
  }
1288
- const w = de || ((c) => /* @__PURE__ */ _e("li", {
1302
+ const y = fe || ((d) => /* @__PURE__ */ Ke("li", {
1289
1303
  children: [/* @__PURE__ */ A(fo, {
1290
- className: P.groupLabel,
1291
- ownerState: O,
1304
+ className: C.groupLabel,
1305
+ ownerState: I,
1292
1306
  component: "div",
1293
- children: c.group
1307
+ children: d.group
1294
1308
  }), /* @__PURE__ */ A(go, {
1295
- className: P.groupUl,
1296
- ownerState: O,
1297
- children: c.children
1309
+ className: C.groupUl,
1310
+ ownerState: I,
1311
+ children: d.children
1298
1312
  })]
1299
- }, c.key)), Ht = fe || ((c, ee) => {
1313
+ }, d.key)), ye = ge || ((d, oe) => {
1300
1314
  const {
1301
- key: te,
1315
+ key: ne,
1302
1316
  ...we
1303
- } = c;
1317
+ } = d;
1304
1318
  return /* @__PURE__ */ A("li", {
1305
1319
  ...we,
1306
- children: be(ee)
1307
- }, te);
1308
- }), $t = (c, ee) => {
1309
- const te = it({
1310
- option: c,
1311
- index: ee
1320
+ children: ve(oe)
1321
+ }, ne);
1322
+ }), $t = (d, oe) => {
1323
+ const ne = Se({
1324
+ option: d,
1325
+ index: oe
1312
1326
  });
1313
- return Ht({
1314
- ...te,
1315
- className: P.option
1316
- }, c, {
1317
- selected: te["aria-selected"],
1318
- index: ee,
1319
- inputValue: lt
1320
- }, O);
1321
- }, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
1322
- return /* @__PURE__ */ _e(x.Fragment, {
1327
+ return ye({
1328
+ ...ne,
1329
+ className: C.option
1330
+ }, d, {
1331
+ selected: ne["aria-selected"],
1332
+ index: oe,
1333
+ inputValue: it
1334
+ }, I);
1335
+ }, Ge = te.slotProps.clearIndicator, qe = te.slotProps.popupIndicator;
1336
+ return /* @__PURE__ */ Ke(x.Fragment, {
1323
1337
  children: [/* @__PURE__ */ A(no, {
1324
- ref: d,
1325
- className: Je(P.root, I),
1326
- ownerState: O,
1327
- ...ze(z),
1328
- children: Fe({
1329
- id: me,
1330
- disabled: G,
1338
+ ref: u,
1339
+ className: Je(C.root, O),
1340
+ ownerState: I,
1341
+ ...je(H),
1342
+ children: He({
1343
+ id: J,
1344
+ disabled: W,
1331
1345
  fullWidth: !0,
1332
- size: ge === "small" ? "small" : void 0,
1346
+ size: me === "small" ? "small" : void 0,
1333
1347
  InputLabelProps: rt(),
1334
1348
  InputProps: {
1335
- ref: st,
1336
- className: P.inputRoot,
1337
- startAdornment: a,
1338
- onMouseDown: (c) => {
1339
- c.target === c.currentTarget && pt(c);
1349
+ ref: Be,
1350
+ className: C.inputRoot,
1351
+ startAdornment: s,
1352
+ onMouseDown: (d) => {
1353
+ d.target === d.currentTarget && lt(d);
1340
1354
  },
1341
- ...($e || Se) && {
1342
- endAdornment: /* @__PURE__ */ _e(ro, {
1343
- className: P.endAdornment,
1344
- ownerState: O,
1345
- children: [$e ? /* @__PURE__ */ A(ao, {
1346
- ...U(),
1347
- "aria-label": E,
1348
- title: E,
1349
- ownerState: O,
1355
+ ...(he || Te) && {
1356
+ endAdornment: /* @__PURE__ */ Ke(ro, {
1357
+ className: C.endAdornment,
1358
+ ownerState: I,
1359
+ children: [he ? /* @__PURE__ */ A(ao, {
1360
+ ...j(),
1361
+ "aria-label": N,
1362
+ title: N,
1363
+ ownerState: I,
1350
1364
  ...Ge,
1351
- className: Je(P.clearIndicator, Ge == null ? void 0 : Ge.className),
1352
- children: $
1353
- }) : null, Se ? /* @__PURE__ */ A(io, {
1354
- ...J(),
1355
- disabled: G,
1356
- "aria-label": q ? Ae : C,
1357
- title: q ? Ae : C,
1358
- ownerState: O,
1365
+ className: Je(C.clearIndicator, Ge == null ? void 0 : Ge.className),
1366
+ children: T
1367
+ }) : null, Te ? /* @__PURE__ */ A(so, {
1368
+ ...K(),
1369
+ disabled: W,
1370
+ "aria-label": X ? Le : S,
1371
+ title: X ? Le : S,
1372
+ ownerState: I,
1359
1373
  ...qe,
1360
- className: Je(P.popupIndicator, qe == null ? void 0 : qe.className),
1374
+ className: Je(C.popupIndicator, qe == null ? void 0 : qe.className),
1361
1375
  children: g
1362
1376
  }) : null]
1363
1377
  })
1364
1378
  }
1365
1379
  },
1366
1380
  inputProps: {
1367
- className: P.input,
1368
- disabled: G,
1369
- readOnly: ne,
1370
- ...j()
1381
+ className: C.input,
1382
+ disabled: W,
1383
+ readOnly: ae,
1384
+ ...z()
1371
1385
  }
1372
1386
  })
1373
- }), ie ? /* @__PURE__ */ A(so, {
1374
- as: r,
1375
- ...p,
1376
- children: /* @__PURE__ */ _e(lo, {
1377
- as: o,
1378
- ...e,
1379
- children: [M && se.length === 0 ? /* @__PURE__ */ A(po, {
1380
- className: P.loading,
1381
- ownerState: O,
1382
- children: S
1383
- }) : null, se.length === 0 && !De && !M ? /* @__PURE__ */ A(uo, {
1384
- className: P.noOptions,
1385
- ownerState: O,
1387
+ }), le ? /* @__PURE__ */ A(io, {
1388
+ as: e,
1389
+ ...r,
1390
+ children: /* @__PURE__ */ Ke(lo, {
1391
+ as: We,
1392
+ ...o,
1393
+ children: [E && be.length === 0 ? /* @__PURE__ */ A(po, {
1394
+ className: C.loading,
1395
+ ownerState: I,
1396
+ children: P
1397
+ }) : null, be.length === 0 && !Ne && !E ? /* @__PURE__ */ A(uo, {
1398
+ className: C.noOptions,
1399
+ ownerState: I,
1386
1400
  role: "presentation",
1387
- onMouseDown: (c) => {
1388
- c.preventDefault();
1401
+ onMouseDown: (d) => {
1402
+ d.preventDefault();
1389
1403
  },
1390
- children: Ie
1391
- }) : null, se.length > 0 ? /* @__PURE__ */ A(Te, {
1404
+ children: Pe
1405
+ }) : null, be.length > 0 ? /* @__PURE__ */ A(dt, {
1392
1406
  as: ot,
1393
- ...We,
1394
- children: se.map((c, ee) => Ee ? w({
1395
- key: c.key,
1396
- group: c.group,
1397
- children: c.options.map((te, we) => $t(te, c.index + we))
1398
- }) : $t(c, ee))
1407
+ ...Ae,
1408
+ children: be.map((d, oe) => Me ? y({
1409
+ key: d.key,
1410
+ group: d.group,
1411
+ children: d.options.map((ne, we) => $t(ne, d.index + we))
1412
+ }) : $t(d, oe))
1399
1413
  }) : null]
1400
1414
  })
1401
1415
  }) : null]
@@ -1570,6 +1584,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
1570
1584
  * Used to determine the disabled state for a given option.
1571
1585
  *
1572
1586
  * @param {Value} option The option to test.
1587
+ * @template Value The option shape. Will be the same shape as an item of the options.
1573
1588
  * @returns {boolean}
1574
1589
  */
1575
1590
  getOptionDisabled: t.func,
@@ -1857,9 +1872,9 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
1857
1872
  export {
1858
1873
  mo as A,
1859
1874
  Xe as L,
1860
- l as a,
1875
+ p as a,
1861
1876
  Qt as b,
1862
- _t as c,
1877
+ Kt as c,
1863
1878
  to as g,
1864
- Vo as l
1879
+ Mo as l
1865
1880
  };