@cgi-learning-hub/ui 1.7.0 → 1.8.0

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