@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750752562

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 (364) hide show
  1. package/dist/{Alert-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
  2. package/dist/Alert-DPSZppEy.cjs +1 -0
  3. package/dist/Alert-OeEy_IGc.js +94 -0
  4. package/dist/Alert-rPyl-bqs.cjs +1 -0
  5. package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
  6. package/dist/{Autocomplete-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
  7. package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
  8. package/dist/Backdrop-DeNTZlA5.cjs +1 -0
  9. package/dist/Badge-Bwcsnbsa.js +465 -0
  10. package/dist/Badge-DFzvdVS-.cjs +1 -0
  11. package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
  12. package/dist/Box-DR3n_po_.cjs +1 -0
  13. package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
  14. package/dist/Button-DyJV5llI.cjs +1 -0
  15. package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
  16. package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
  17. package/dist/CardContent-COfaU6E0.cjs +1 -0
  18. package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
  19. package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
  20. package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
  21. package/dist/Chip-BG0OU0KI.cjs +1 -0
  22. package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
  23. package/dist/CircularProgress-CXXyPavb.cjs +28 -0
  24. package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
  25. package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
  26. package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
  27. package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
  28. package/dist/{CloseRounded-Bpxbxvyb.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
  29. package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
  30. package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
  31. package/dist/DatePicker-CH8XRum0.cjs +16 -0
  32. package/dist/DatePicker-DasS2wq6.js +10663 -0
  33. package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
  34. package/dist/{DefaultPropsProvider-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
  35. package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
  36. package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
  37. package/dist/Dialog-Btagj_Gt.cjs +1 -0
  38. package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
  39. package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
  40. package/dist/DialogContent-DXfUge3c.cjs +1 -0
  41. package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
  42. package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
  43. package/dist/Divider-NermA5hZ.cjs +1 -0
  44. package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
  45. package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
  46. package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
  47. package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
  48. package/dist/FormLabel-JrZR9kt8.cjs +2 -0
  49. package/dist/Grid-BHYQ3JNy.cjs +2 -0
  50. package/dist/Grid-DFk-4jnZ.js +411 -0
  51. package/dist/Grow-BULCy6GX.cjs +1 -0
  52. package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
  53. package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
  54. package/dist/IconButton-CjtMjZ9e.cjs +2 -0
  55. package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
  56. package/dist/InputAdornment-DvHQMisT.cjs +1 -0
  57. package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
  58. package/dist/InputBase-DPdKpmOz.cjs +4 -0
  59. package/dist/Link-BwbY60dS.cjs +1 -0
  60. package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
  61. package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
  62. package/dist/List-t9bWFewp.cjs +1 -0
  63. package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
  64. package/dist/ListItem-DP7YmqZk.cjs +1 -0
  65. package/dist/ListItemText-cVnimPLO.cjs +1 -0
  66. package/dist/ListItemText-qfdqJP77.js +441 -0
  67. package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
  68. package/dist/Menu-C61wLk41.cjs +7 -0
  69. package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
  70. package/dist/MenuItem-DHM3qxwr.cjs +1 -0
  71. package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
  72. package/dist/Modal-DkzrSKHd.cjs +2 -0
  73. package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
  74. package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
  75. package/dist/Paper-BbqZL5vx.cjs +2 -0
  76. package/dist/Paper-IQckggbn.js +158 -0
  77. package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
  78. package/dist/Popper-DvWx5tR3.cjs +4 -0
  79. package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
  80. package/dist/Portal-CPOCKeMh.cjs +1 -0
  81. package/dist/Radio-Bwh_t6PC.cjs +1 -0
  82. package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
  83. package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
  84. package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
  85. package/dist/Select-3HP39Z7o.cjs +3 -0
  86. package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
  87. package/dist/Stack-CIyfgZCM.cjs +1 -0
  88. package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
  89. package/dist/Stepper-CXHfLPtA.cjs +1 -0
  90. package/dist/Stepper-DE2l91K0.js +965 -0
  91. package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
  92. package/dist/Switch-CTEqKDiv.cjs +1 -0
  93. package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
  94. package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
  95. package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
  96. package/dist/Tab-r5imbU9z.cjs +4 -0
  97. package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
  98. package/dist/TextField-Brw3X9cn.cjs +1 -0
  99. package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
  100. package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
  101. package/dist/Tooltip-BAOKe3SY.cjs +4 -0
  102. package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
  103. package/dist/Typography-CSTmKyr8.cjs +1 -0
  104. package/dist/{Typography-DwMlN0K5.js → Typography-Dy8r_tT2.js} +6 -7
  105. package/dist/components/Alert/Alert.cjs.js +1 -1
  106. package/dist/components/Alert/Alert.es.js +5 -4
  107. package/dist/components/Alert/index.cjs.js +1 -1
  108. package/dist/components/Alert/index.es.js +1 -1
  109. package/dist/components/Button/Button.cjs.js +1 -1
  110. package/dist/components/Button/Button.es.js +2 -2
  111. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -0
  112. package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
  113. package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
  114. package/dist/components/ButtonGroup/index.cjs.js +1 -0
  115. package/dist/components/ButtonGroup/index.d.ts +2 -0
  116. package/dist/components/ButtonGroup/index.es.js +4 -0
  117. package/dist/components/ButtonGroup/style.cjs.js +1 -0
  118. package/dist/components/ButtonGroup/style.es.js +29 -0
  119. package/dist/components/ButtonGroup/types.cjs.js +1 -0
  120. package/dist/components/ButtonGroup/types.d.ts +22 -0
  121. package/dist/components/ButtonGroup/types.es.js +1 -0
  122. package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
  123. package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
  124. package/dist/components/ColorPicker/styles.es.js +13 -11
  125. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  126. package/dist/components/DatePicker/DatePicker.d.ts +1 -2
  127. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  128. package/dist/components/DatePicker/index.cjs.js +1 -1
  129. package/dist/components/DatePicker/index.es.js +1 -1
  130. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  131. package/dist/components/Dialog/Dialog.es.js +8 -3
  132. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  133. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  134. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  135. package/dist/components/EmptyState/EmptyState.d.ts +1 -0
  136. package/dist/components/EmptyState/EmptyState.es.js +13 -12
  137. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  138. package/dist/components/FileList/FileIcon.es.js +1 -1
  139. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  140. package/dist/components/FileList/FileListItem.es.js +4 -4
  141. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  142. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  143. package/dist/components/Heading/Heading.cjs.js +1 -1
  144. package/dist/components/Heading/Heading.es.js +2 -2
  145. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  146. package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
  147. package/dist/components/Loader/Loader.cjs.js +1 -1
  148. package/dist/components/Loader/Loader.es.js +1 -1
  149. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  150. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  151. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  152. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  153. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  154. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  155. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  156. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  157. package/dist/components/TreeView/TreeView.cjs.js +5 -7
  158. package/dist/components/TreeView/TreeView.es.js +1207 -1452
  159. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  160. package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
  161. package/dist/components/TreeView/components/CustomTreeItem.es.js +3 -3
  162. package/dist/components/TreeView/types.d.ts +5 -5
  163. package/dist/components/TreeView/utils.cjs.js +1 -1
  164. package/dist/components/TreeView/utils.es.js +3 -3
  165. package/dist/components/index.cjs.js +1 -1
  166. package/dist/components/index.d.ts +7 -2
  167. package/dist/components/index.es.js +402 -391
  168. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  169. package/dist/components/stories/Alert.stories.d.ts +1 -1
  170. package/dist/components/stories/Alert.stories.es.js +1 -1
  171. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  172. package/dist/components/stories/Autocomplete.stories.d.ts +1 -1
  173. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  174. package/dist/components/stories/Badge.stories.cjs.js +1 -0
  175. package/dist/components/stories/Badge.stories.d.ts +17 -0
  176. package/dist/components/stories/Badge.stories.es.js +188 -0
  177. package/dist/components/stories/Button.stories.cjs.js +1 -1
  178. package/dist/components/stories/Button.stories.d.ts +1 -1
  179. package/dist/components/stories/Button.stories.es.js +1 -1
  180. package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
  181. package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
  182. package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
  183. package/dist/components/stories/Card.stories.cjs.js +1 -1
  184. package/dist/components/stories/Card.stories.d.ts +1 -1
  185. package/dist/components/stories/Card.stories.es.js +2 -2
  186. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  187. package/dist/components/stories/Checkbox.stories.d.ts +1 -1
  188. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  189. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  190. package/dist/components/stories/Chip.stories.d.ts +1 -1
  191. package/dist/components/stories/Chip.stories.es.js +1 -1
  192. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  193. package/dist/components/stories/DatePicker.stories.d.ts +1 -1
  194. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  195. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  196. package/dist/components/stories/Dialog.stories.d.ts +1 -1
  197. package/dist/components/stories/Dialog.stories.es.js +2 -2
  198. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  199. package/dist/components/stories/Divider.stories.d.ts +1 -1
  200. package/dist/components/stories/Divider.stories.es.js +1 -1
  201. package/dist/components/stories/Dropzone.stories.d.ts +1 -1
  202. package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
  203. package/dist/components/stories/EmptyState.stories.d.ts +1 -1
  204. package/dist/components/stories/FileList.stories.d.ts +1 -1
  205. package/dist/components/stories/FolderCard.stories.d.ts +1 -1
  206. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  207. package/dist/components/stories/FormControlLabel.stories.d.ts +1 -1
  208. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  209. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  210. package/dist/components/stories/Heading.stories.d.ts +1 -1
  211. package/dist/components/stories/Heading.stories.es.js +2 -2
  212. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  213. package/dist/components/stories/IconButton.stories.d.ts +1 -1
  214. package/dist/components/stories/IconButton.stories.es.js +2 -2
  215. package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
  216. package/dist/components/stories/Link.stories.cjs.js +1 -1
  217. package/dist/components/stories/Link.stories.d.ts +1 -1
  218. package/dist/components/stories/Link.stories.es.js +1 -1
  219. package/dist/components/stories/Loader.stories.d.ts +1 -1
  220. package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
  221. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  222. package/dist/components/stories/Menu.stories.d.ts +1 -1
  223. package/dist/components/stories/Menu.stories.es.js +2 -2
  224. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  225. package/dist/components/stories/Paper.stories.d.ts +1 -1
  226. package/dist/components/stories/Paper.stories.es.js +1 -1
  227. package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
  228. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  229. package/dist/components/stories/RadioGroup.stories.d.ts +1 -1
  230. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  231. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  232. package/dist/components/stories/ResourceCard.stories.d.ts +1 -1
  233. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  234. package/dist/components/stories/SearchInput.stories.d.ts +1 -1
  235. package/dist/components/stories/Select.stories.cjs.js +1 -1
  236. package/dist/components/stories/Select.stories.d.ts +1 -1
  237. package/dist/components/stories/Select.stories.es.js +3 -3
  238. package/dist/components/stories/Stepper.stories.cjs.js +1 -0
  239. package/dist/components/stories/Stepper.stories.d.ts +7 -0
  240. package/dist/components/stories/Stepper.stories.es.js +161 -0
  241. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  242. package/dist/components/stories/TabList.stories.d.ts +1 -1
  243. package/dist/components/stories/TabList.stories.es.js +1 -1
  244. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  245. package/dist/components/stories/TextField.stories.d.ts +1 -1
  246. package/dist/components/stories/TextField.stories.es.js +1 -1
  247. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  248. package/dist/components/stories/Tooltip.stories.d.ts +1 -1
  249. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  250. package/dist/components/stories/TreeView.stories.cjs.js +3 -3
  251. package/dist/components/stories/TreeView.stories.d.ts +1 -1
  252. package/dist/components/stories/TreeView.stories.es.js +39 -38
  253. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  254. package/dist/components/stories/Typography.stories.d.ts +1 -1
  255. package/dist/components/stories/Typography.stories.es.js +1 -1
  256. package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
  257. package/dist/createSvgIcon-IET9soda.cjs +1 -0
  258. package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
  259. package/dist/dividerClasses-C07OJKLL.cjs +1 -0
  260. package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
  261. package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
  262. package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
  263. package/dist/identifier-BoZelETM.cjs +55 -0
  264. package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
  265. package/dist/{index-l8yqod25.js → index-8G2jvqZ8.js} +4 -4
  266. package/dist/index-D3lMWU76.cjs +1 -0
  267. package/dist/index.cjs.js +1 -1
  268. package/dist/index.es.js +402 -391
  269. package/dist/integerPropType-BihGt2aU.js +31 -0
  270. package/dist/integerPropType-CR7ytEJG.cjs +1 -0
  271. package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
  272. package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
  273. package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
  274. package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
  275. package/dist/{mergeSlotProps-BBciKnr4.js → mergeSlotProps-ChAye7iz.js} +1 -1
  276. package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
  277. package/dist/styled-C7gyRDlj.js +5 -0
  278. package/dist/styled-Cax0O00h.cjs +1 -0
  279. package/dist/useControlled-QrrYcKxm.cjs +3 -0
  280. package/dist/useControlled-nm4pBabJ.js +31 -0
  281. package/dist/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
  282. package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
  283. package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
  284. package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
  285. package/dist/useSlot-C2FjoUpF.cjs +1 -0
  286. package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
  287. package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
  288. package/dist/{useTheme-D9cVynB-.js → useTheme--i9fxE_A.js} +1 -1
  289. package/dist/useTheme-BLMJDSsv.cjs +1 -0
  290. package/dist/useTheme-CooC_6Ep.cjs +1 -0
  291. package/dist/useTheme-XJ9sFCWX.js +11 -0
  292. package/dist/{useThemeProps-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
  293. package/dist/{useThemeProps-DQOn-ezC.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
  294. package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
  295. package/dist/useThemeProps-CQ9rZe7g.js +17 -0
  296. package/package.json +12 -11
  297. package/dist/Alert-DW8yCR-B.cjs +0 -1
  298. package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
  299. package/dist/Backdrop-3TL73mAe.cjs +0 -1
  300. package/dist/Badge-DhyDno9j.cjs +0 -138
  301. package/dist/Box-DYD6q-6M.cjs +0 -1
  302. package/dist/Button-y1LmxqGA.cjs +0 -1
  303. package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
  304. package/dist/CardContent-ji0_AneN.cjs +0 -1
  305. package/dist/Checkbox-XXqW_dbW.cjs +0 -1
  306. package/dist/Chip-Bpcd3tnL.cjs +0 -1
  307. package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
  308. package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
  309. package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
  310. package/dist/DatePicker-BMzW4v1g.js +0 -10255
  311. package/dist/DatePicker-CNhBoaI3.cjs +0 -14
  312. package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
  313. package/dist/Dialog-B2LKe7ZM.cjs +0 -1
  314. package/dist/DialogContent-BbCu_OEw.cjs +0 -1
  315. package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
  316. package/dist/Divider-Cshcr5kR.cjs +0 -1
  317. package/dist/FormLabel-0LbNeQQU.cjs +0 -2
  318. package/dist/Grow-aEgTOewU.cjs +0 -1
  319. package/dist/IconButton-BKwDNYJl.cjs +0 -2
  320. package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
  321. package/dist/InputBase-pYQWRFK2.cjs +0 -3
  322. package/dist/Link-DUtuCYMx.cjs +0 -1
  323. package/dist/List-BH_S4Hqm.cjs +0 -1
  324. package/dist/ListItem-D33t-hkx.cjs +0 -1
  325. package/dist/ListItemText-B8jlTz59.cjs +0 -2
  326. package/dist/ListItemText-BeyHu1da.js +0 -853
  327. package/dist/Menu-BjrN8rMF.cjs +0 -7
  328. package/dist/MenuItem-Cz_x60jl.cjs +0 -1
  329. package/dist/Modal-DxwlW5NV.cjs +0 -2
  330. package/dist/Paper-984iTz4H.js +0 -186
  331. package/dist/Paper-Bh9CKUCb.cjs +0 -2
  332. package/dist/Popper-yO_RaCbM.cjs +0 -4
  333. package/dist/Portal-B5KqLEa0.cjs +0 -1
  334. package/dist/Radio-C7zzpRFc.cjs +0 -1
  335. package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
  336. package/dist/Select-Doay7ukI.cjs +0 -3
  337. package/dist/Stack-BVWbOqY_.cjs +0 -1
  338. package/dist/Switch-CEfqaD33.cjs +0 -1
  339. package/dist/SwitchBase-DvCITKv8.cjs +0 -1
  340. package/dist/Tab-C6H241Pf.cjs +0 -4
  341. package/dist/TextField-bE2NUKKK.cjs +0 -1
  342. package/dist/Tooltip-D_w-IJoD.cjs +0 -4
  343. package/dist/Typography-De-21leI.cjs +0 -1
  344. package/dist/capitalize-BHFotl9B.js +0 -9
  345. package/dist/capitalize-CKLkSyDO.cjs +0 -1
  346. package/dist/composeClasses-CJKlIaRn.js +0 -51
  347. package/dist/composeClasses-CWgX5SFD.cjs +0 -1
  348. package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
  349. package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
  350. package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
  351. package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
  352. package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
  353. package/dist/index-BzsuDIEl.cjs +0 -1
  354. package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
  355. package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
  356. package/dist/useControlled-BYdyS7Pn.js +0 -31
  357. package/dist/useControlled-Ysk4KqoX.cjs +0 -3
  358. package/dist/useSlot-W0PiuVaZ.cjs +0 -1
  359. package/dist/useTheme-C59wIJ3-.js +0 -11
  360. package/dist/useTheme-ClhInrO2.cjs +0 -1
  361. package/dist/useTheme-CqYtLDbs.cjs +0 -1
  362. package/dist/useThemeProps-BFQ8ndnj.js +0 -17
  363. package/dist/useThemeProps-DYpozGhe.cjs +0 -1
  364. package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
@@ -0,0 +1,2045 @@
1
+ import { jsx as O, jsxs as de } from "react/jsx-runtime";
2
+ import { c as Ce } from "./createSvgIcon-B1E6Wo8z.js";
3
+ import At from "./components/EllipsisWithTooltip/EllipsisWithTooltip.es.js";
4
+ import { treeItemRootStyle as Pt, treeContentStyle as zt, iconStyle as Be, arrowContainerStyle as jt, expandedGroupStyle as $t } from "./components/TreeView/style.es.js";
5
+ import { getIconComponent as Kt } from "./components/TreeView/utils.es.js";
6
+ import { _ as E } from "./ButtonBase-6TF6t2SP.js";
7
+ import * as P from "react";
8
+ import Se from "react";
9
+ import { u as Ft } from "./useEventCallback-Y2KwRxBw.js";
10
+ import { u as ke } from "./useForkRef-u29GSuCu.js";
11
+ import { e as B, r as Ge } from "./useSlot-BzdKwDQ5.js";
12
+ import { P as m } from "./index-Sy88PpwE.js";
13
+ import { a as at } from "./TransitionGroupContext-DbLioz_6.js";
14
+ import { F as lt, G as ct, w as Wt, H as W, n as ue } from "./identifier-PWESmBq6.js";
15
+ import { u as Bt } from "./useThemeProps-CQ9rZe7g.js";
16
+ import { u as Gt, s as K, c as ut, f as Me } from "./DefaultPropsProvider-DqazQPtr.js";
17
+ import { u as qt } from "./useTheme-XJ9sFCWX.js";
18
+ import { m as Ut } from "./memoTheme-DAFDflPY.js";
19
+ import { T as Xt, g as qe } from "./utils-BQenyzDz.js";
20
+ import { u as Yt } from "./useTimeout-CrCYVizI.js";
21
+ import { e as Jt } from "./elementTypeAcceptingRef-DOeckaXy.js";
22
+ import { u as G } from "./useSlotProps-DdMuGelR.js";
23
+ import { C as Qt } from "./Checkbox-BfBDowB2.js";
24
+ import { C as Zt } from "./CircularProgress-DZuYTFz-.js";
25
+ import { u as Ht } from "./unsupportedProp-BuVD30Gh.js";
26
+ import { B as en } from "./Box-BI4osO9v.js";
27
+ function tn(e) {
28
+ return ct("MuiCollapse", e);
29
+ }
30
+ const Uo = lt("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), nn = (e) => {
31
+ const {
32
+ orientation: t,
33
+ classes: n
34
+ } = e, o = {
35
+ root: ["root", `${t}`],
36
+ entered: ["entered"],
37
+ hidden: ["hidden"],
38
+ wrapper: ["wrapper", `${t}`],
39
+ wrapperInner: ["wrapperInner", `${t}`]
40
+ };
41
+ return ut(o, tn, n);
42
+ }, on = K("div", {
43
+ name: "MuiCollapse",
44
+ slot: "Root",
45
+ overridesResolver: (e, t) => {
46
+ const {
47
+ ownerState: n
48
+ } = e;
49
+ return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
50
+ }
51
+ })(Ut(({
52
+ theme: e
53
+ }) => ({
54
+ height: 0,
55
+ overflow: "hidden",
56
+ transition: e.transitions.create("height"),
57
+ variants: [{
58
+ props: {
59
+ orientation: "horizontal"
60
+ },
61
+ style: {
62
+ height: "auto",
63
+ width: 0,
64
+ transition: e.transitions.create("width")
65
+ }
66
+ }, {
67
+ props: {
68
+ state: "entered"
69
+ },
70
+ style: {
71
+ height: "auto",
72
+ overflow: "visible"
73
+ }
74
+ }, {
75
+ props: {
76
+ state: "entered",
77
+ orientation: "horizontal"
78
+ },
79
+ style: {
80
+ width: "auto"
81
+ }
82
+ }, {
83
+ props: ({
84
+ ownerState: t
85
+ }) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
86
+ style: {
87
+ visibility: "hidden"
88
+ }
89
+ }]
90
+ }))), rn = K("div", {
91
+ name: "MuiCollapse",
92
+ slot: "Wrapper"
93
+ })({
94
+ // Hack to get children with a negative margin to not falsify the height computation.
95
+ display: "flex",
96
+ width: "100%",
97
+ variants: [{
98
+ props: {
99
+ orientation: "horizontal"
100
+ },
101
+ style: {
102
+ width: "auto",
103
+ height: "100%"
104
+ }
105
+ }]
106
+ }), sn = K("div", {
107
+ name: "MuiCollapse",
108
+ slot: "WrapperInner"
109
+ })({
110
+ width: "100%",
111
+ variants: [{
112
+ props: {
113
+ orientation: "horizontal"
114
+ },
115
+ style: {
116
+ width: "auto",
117
+ height: "100%"
118
+ }
119
+ }]
120
+ }), ve = /* @__PURE__ */ P.forwardRef(function(t, n) {
121
+ const o = Gt({
122
+ props: t,
123
+ name: "MuiCollapse"
124
+ }), {
125
+ addEndListener: r,
126
+ children: s,
127
+ className: u,
128
+ collapsedSize: i = "0px",
129
+ component: l,
130
+ easing: a,
131
+ in: d,
132
+ onEnter: h,
133
+ onEntered: I,
134
+ onEntering: p,
135
+ onExit: c,
136
+ onExited: b,
137
+ onExiting: y,
138
+ orientation: x = "vertical",
139
+ style: L,
140
+ timeout: R = Wt.standard,
141
+ // eslint-disable-next-line react/prop-types
142
+ TransitionComponent: V = Xt,
143
+ ...A
144
+ } = o, w = {
145
+ ...o,
146
+ orientation: x,
147
+ collapsedSize: i
148
+ }, _ = nn(w), D = qt(), v = Yt(), N = P.useRef(null), F = P.useRef(), J = typeof i == "number" ? `${i}px` : i, Q = x === "horizontal", X = Q ? "width" : "height", Z = P.useRef(null), ie = ke(n, Z), Y = (T) => ($) => {
149
+ if (T) {
150
+ const j = Z.current;
151
+ $ === void 0 ? T(j) : T(j, $);
152
+ }
153
+ }, H = () => N.current ? N.current[Q ? "clientWidth" : "clientHeight"] : 0, fe = Y((T, $) => {
154
+ N.current && Q && (N.current.style.position = "absolute"), T.style[X] = J, h && h(T, $);
155
+ }), ae = Y((T, $) => {
156
+ const j = H();
157
+ N.current && Q && (N.current.style.position = "");
158
+ const {
159
+ duration: ee,
160
+ easing: g
161
+ } = qe({
162
+ style: L,
163
+ timeout: R,
164
+ easing: a
165
+ }, {
166
+ mode: "enter"
167
+ });
168
+ if (R === "auto") {
169
+ const f = D.transitions.getAutoHeightDuration(j);
170
+ T.style.transitionDuration = `${f}ms`, F.current = f;
171
+ } else
172
+ T.style.transitionDuration = typeof ee == "string" ? ee : `${ee}ms`;
173
+ T.style[X] = `${j}px`, T.style.transitionTimingFunction = g, p && p(T, $);
174
+ }), me = Y((T, $) => {
175
+ T.style[X] = "auto", I && I(T, $);
176
+ }), le = Y((T) => {
177
+ T.style[X] = `${H()}px`, c && c(T);
178
+ }), ge = Y(b), ce = Y((T) => {
179
+ const $ = H(), {
180
+ duration: j,
181
+ easing: ee
182
+ } = qe({
183
+ style: L,
184
+ timeout: R,
185
+ easing: a
186
+ }, {
187
+ mode: "exit"
188
+ });
189
+ if (R === "auto") {
190
+ const g = D.transitions.getAutoHeightDuration($);
191
+ T.style.transitionDuration = `${g}ms`, F.current = g;
192
+ } else
193
+ T.style.transitionDuration = typeof j == "string" ? j : `${j}ms`;
194
+ T.style[X] = J, T.style.transitionTimingFunction = ee, y && y(T);
195
+ });
196
+ return /* @__PURE__ */ O(V, {
197
+ in: d,
198
+ onEnter: fe,
199
+ onEntered: me,
200
+ onEntering: ae,
201
+ onExit: le,
202
+ onExited: ge,
203
+ onExiting: ce,
204
+ addEndListener: (T) => {
205
+ R === "auto" && v.start(F.current || 0, T), r && r(Z.current, T);
206
+ },
207
+ nodeRef: Z,
208
+ timeout: R === "auto" ? null : R,
209
+ ...A,
210
+ children: (T, {
211
+ ownerState: $,
212
+ ...j
213
+ }) => /* @__PURE__ */ O(on, {
214
+ as: l,
215
+ className: W(_.root, u, {
216
+ entered: _.entered,
217
+ exited: !d && J === "0px" && _.hidden
218
+ }[T]),
219
+ style: {
220
+ [Q ? "minWidth" : "minHeight"]: J,
221
+ ...L
222
+ },
223
+ ref: ie,
224
+ ownerState: {
225
+ ...w,
226
+ state: T
227
+ },
228
+ ...j,
229
+ children: /* @__PURE__ */ O(rn, {
230
+ ownerState: {
231
+ ...w,
232
+ state: T
233
+ },
234
+ className: _.wrapper,
235
+ ref: N,
236
+ children: /* @__PURE__ */ O(sn, {
237
+ ownerState: {
238
+ ...w,
239
+ state: T
240
+ },
241
+ className: _.wrapperInner,
242
+ children: s
243
+ })
244
+ })
245
+ })
246
+ });
247
+ });
248
+ process.env.NODE_ENV !== "production" && (ve.propTypes = {
249
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
250
+ // │ These PropTypes are generated from the TypeScript type definitions. │
251
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
252
+ // └─────────────────────────────────────────────────────────────────────┘
253
+ /**
254
+ * Add a custom transition end trigger. Called with the transitioning DOM
255
+ * node and a done callback. Allows for more fine grained transition end
256
+ * logic. Note: Timeouts are still used as a fallback if provided.
257
+ */
258
+ addEndListener: m.func,
259
+ /**
260
+ * The content node to be collapsed.
261
+ */
262
+ children: m.node,
263
+ /**
264
+ * Override or extend the styles applied to the component.
265
+ */
266
+ classes: m.object,
267
+ /**
268
+ * @ignore
269
+ */
270
+ className: m.string,
271
+ /**
272
+ * The width (horizontal) or height (vertical) of the container when collapsed.
273
+ * @default '0px'
274
+ */
275
+ collapsedSize: m.oneOfType([m.number, m.string]),
276
+ /**
277
+ * The component used for the root node.
278
+ * Either a string to use a HTML element or a component.
279
+ */
280
+ component: Jt,
281
+ /**
282
+ * The transition timing function.
283
+ * You may specify a single easing or a object containing enter and exit values.
284
+ */
285
+ easing: m.oneOfType([m.shape({
286
+ enter: m.string,
287
+ exit: m.string
288
+ }), m.string]),
289
+ /**
290
+ * If `true`, the component will transition in.
291
+ */
292
+ in: m.bool,
293
+ /**
294
+ * @ignore
295
+ */
296
+ onEnter: m.func,
297
+ /**
298
+ * @ignore
299
+ */
300
+ onEntered: m.func,
301
+ /**
302
+ * @ignore
303
+ */
304
+ onEntering: m.func,
305
+ /**
306
+ * @ignore
307
+ */
308
+ onExit: m.func,
309
+ /**
310
+ * @ignore
311
+ */
312
+ onExited: m.func,
313
+ /**
314
+ * @ignore
315
+ */
316
+ onExiting: m.func,
317
+ /**
318
+ * The transition orientation.
319
+ * @default 'vertical'
320
+ */
321
+ orientation: m.oneOf(["horizontal", "vertical"]),
322
+ /**
323
+ * @ignore
324
+ */
325
+ style: m.object,
326
+ /**
327
+ * The system prop that allows defining system overrides as well as additional CSS styles.
328
+ */
329
+ sx: m.oneOfType([m.arrayOf(m.oneOfType([m.func, m.object, m.bool])), m.func, m.object]),
330
+ /**
331
+ * The duration for the transition, in milliseconds.
332
+ * You may specify a single timeout for all transitions, or individually with an object.
333
+ *
334
+ * Set to 'auto' to automatically calculate transition time based on height.
335
+ * @default duration.standard
336
+ */
337
+ timeout: m.oneOfType([m.oneOf(["auto"]), m.number, m.shape({
338
+ appear: m.number,
339
+ enter: m.number,
340
+ exit: m.number
341
+ })])
342
+ });
343
+ ve && (ve.muiSupportAuto = !0);
344
+ const an = Ce(/* @__PURE__ */ O("path", {
345
+ d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
346
+ }), "KeyboardArrowDown"), ln = Ce(/* @__PURE__ */ O("path", {
347
+ d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
348
+ }), "KeyboardArrowRight");
349
+ function cn(e) {
350
+ return Bt;
351
+ }
352
+ var be = { exports: {} }, Oe = {}, ye = { exports: {} }, _e = {};
353
+ /**
354
+ * @license React
355
+ * use-sync-external-store-shim.production.js
356
+ *
357
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
358
+ *
359
+ * This source code is licensed under the MIT license found in the
360
+ * LICENSE file in the root directory of this source tree.
361
+ */
362
+ var Ue;
363
+ function un() {
364
+ if (Ue) return _e;
365
+ Ue = 1;
366
+ var e = Se;
367
+ function t(h, I) {
368
+ return h === I && (h !== 0 || 1 / h === 1 / I) || h !== h && I !== I;
369
+ }
370
+ var n = typeof Object.is == "function" ? Object.is : t, o = e.useState, r = e.useEffect, s = e.useLayoutEffect, u = e.useDebugValue;
371
+ function i(h, I) {
372
+ var p = I(), c = o({ inst: { value: p, getSnapshot: I } }), b = c[0].inst, y = c[1];
373
+ return s(
374
+ function() {
375
+ b.value = p, b.getSnapshot = I, l(b) && y({ inst: b });
376
+ },
377
+ [h, p, I]
378
+ ), r(
379
+ function() {
380
+ return l(b) && y({ inst: b }), h(function() {
381
+ l(b) && y({ inst: b });
382
+ });
383
+ },
384
+ [h]
385
+ ), u(p), p;
386
+ }
387
+ function l(h) {
388
+ var I = h.getSnapshot;
389
+ h = h.value;
390
+ try {
391
+ var p = I();
392
+ return !n(h, p);
393
+ } catch {
394
+ return !0;
395
+ }
396
+ }
397
+ function a(h, I) {
398
+ return I();
399
+ }
400
+ var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : i;
401
+ return _e.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, _e;
402
+ }
403
+ var Re = {};
404
+ /**
405
+ * @license React
406
+ * use-sync-external-store-shim.development.js
407
+ *
408
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
409
+ *
410
+ * This source code is licensed under the MIT license found in the
411
+ * LICENSE file in the root directory of this source tree.
412
+ */
413
+ var Xe;
414
+ function dn() {
415
+ return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && function() {
416
+ function e(p, c) {
417
+ return p === c && (p !== 0 || 1 / p === 1 / c) || p !== p && c !== c;
418
+ }
419
+ function t(p, c) {
420
+ d || r.startTransition === void 0 || (d = !0, console.error(
421
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
422
+ ));
423
+ var b = c();
424
+ if (!h) {
425
+ var y = c();
426
+ s(b, y) || (console.error(
427
+ "The result of getSnapshot should be cached to avoid an infinite loop"
428
+ ), h = !0);
429
+ }
430
+ y = u({
431
+ inst: { value: b, getSnapshot: c }
432
+ });
433
+ var x = y[0].inst, L = y[1];
434
+ return l(
435
+ function() {
436
+ x.value = b, x.getSnapshot = c, n(x) && L({ inst: x });
437
+ },
438
+ [p, b, c]
439
+ ), i(
440
+ function() {
441
+ return n(x) && L({ inst: x }), p(function() {
442
+ n(x) && L({ inst: x });
443
+ });
444
+ },
445
+ [p]
446
+ ), a(b), b;
447
+ }
448
+ function n(p) {
449
+ var c = p.getSnapshot;
450
+ p = p.value;
451
+ try {
452
+ var b = c();
453
+ return !s(p, b);
454
+ } catch {
455
+ return !0;
456
+ }
457
+ }
458
+ function o(p, c) {
459
+ return c();
460
+ }
461
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
462
+ var r = Se, s = typeof Object.is == "function" ? Object.is : e, u = r.useState, i = r.useEffect, l = r.useLayoutEffect, a = r.useDebugValue, d = !1, h = !1, I = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : t;
463
+ Re.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : I, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
464
+ }()), Re;
465
+ }
466
+ var Ye;
467
+ function dt() {
468
+ return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = un() : ye.exports = dn()), ye.exports;
469
+ }
470
+ /**
471
+ * @license React
472
+ * use-sync-external-store-shim/with-selector.production.js
473
+ *
474
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
475
+ *
476
+ * This source code is licensed under the MIT license found in the
477
+ * LICENSE file in the root directory of this source tree.
478
+ */
479
+ var Je;
480
+ function pn() {
481
+ if (Je) return Oe;
482
+ Je = 1;
483
+ var e = Se, t = dt();
484
+ function n(a, d) {
485
+ return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
486
+ }
487
+ var o = typeof Object.is == "function" ? Object.is : n, r = t.useSyncExternalStore, s = e.useRef, u = e.useEffect, i = e.useMemo, l = e.useDebugValue;
488
+ return Oe.useSyncExternalStoreWithSelector = function(a, d, h, I, p) {
489
+ var c = s(null);
490
+ if (c.current === null) {
491
+ var b = { hasValue: !1, value: null };
492
+ c.current = b;
493
+ } else b = c.current;
494
+ c = i(
495
+ function() {
496
+ function x(w) {
497
+ if (!L) {
498
+ if (L = !0, R = w, w = I(w), p !== void 0 && b.hasValue) {
499
+ var _ = b.value;
500
+ if (p(_, w))
501
+ return V = _;
502
+ }
503
+ return V = w;
504
+ }
505
+ if (_ = V, o(R, w)) return _;
506
+ var D = I(w);
507
+ return p !== void 0 && p(_, D) ? (R = w, _) : (R = w, V = D);
508
+ }
509
+ var L = !1, R, V, A = h === void 0 ? null : h;
510
+ return [
511
+ function() {
512
+ return x(d());
513
+ },
514
+ A === null ? void 0 : function() {
515
+ return x(A());
516
+ }
517
+ ];
518
+ },
519
+ [d, h, I, p]
520
+ );
521
+ var y = r(a, c[0], c[1]);
522
+ return u(
523
+ function() {
524
+ b.hasValue = !0, b.value = y;
525
+ },
526
+ [y]
527
+ ), l(y), y;
528
+ }, Oe;
529
+ }
530
+ var De = {};
531
+ /**
532
+ * @license React
533
+ * use-sync-external-store-shim/with-selector.development.js
534
+ *
535
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
536
+ *
537
+ * This source code is licensed under the MIT license found in the
538
+ * LICENSE file in the root directory of this source tree.
539
+ */
540
+ var Qe;
541
+ function fn() {
542
+ return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
543
+ function e(a, d) {
544
+ return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
545
+ }
546
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
547
+ var t = Se, n = dt(), o = typeof Object.is == "function" ? Object.is : e, r = n.useSyncExternalStore, s = t.useRef, u = t.useEffect, i = t.useMemo, l = t.useDebugValue;
548
+ De.useSyncExternalStoreWithSelector = function(a, d, h, I, p) {
549
+ var c = s(null);
550
+ if (c.current === null) {
551
+ var b = { hasValue: !1, value: null };
552
+ c.current = b;
553
+ } else b = c.current;
554
+ c = i(
555
+ function() {
556
+ function x(w) {
557
+ if (!L) {
558
+ if (L = !0, R = w, w = I(w), p !== void 0 && b.hasValue) {
559
+ var _ = b.value;
560
+ if (p(_, w))
561
+ return V = _;
562
+ }
563
+ return V = w;
564
+ }
565
+ if (_ = V, o(R, w))
566
+ return _;
567
+ var D = I(w);
568
+ return p !== void 0 && p(_, D) ? (R = w, _) : (R = w, V = D);
569
+ }
570
+ var L = !1, R, V, A = h === void 0 ? null : h;
571
+ return [
572
+ function() {
573
+ return x(d());
574
+ },
575
+ A === null ? void 0 : function() {
576
+ return x(A());
577
+ }
578
+ ];
579
+ },
580
+ [d, h, I, p]
581
+ );
582
+ var y = r(a, c[0], c[1]);
583
+ return u(
584
+ function() {
585
+ b.hasValue = !0, b.value = y;
586
+ },
587
+ [y]
588
+ ), l(y), y;
589
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
590
+ }()), De;
591
+ }
592
+ var Ze;
593
+ function mn() {
594
+ return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? be.exports = pn() : be.exports = fn()), be.exports;
595
+ }
596
+ var gn = mn();
597
+ const bn = Object.is, M = (e, t, n = void 0, o = bn) => {
598
+ const r = (s) => t(s, n);
599
+ return gn.useSyncExternalStoreWithSelector(e.subscribe, e.getSnapshot, e.getSnapshot, r, o);
600
+ };
601
+ var yn = (e, t, n) => {
602
+ if (t.length === 1 && t[0] === n) {
603
+ let o = !1;
604
+ try {
605
+ const r = {};
606
+ e(r) === r && (o = !0);
607
+ } catch {
608
+ }
609
+ if (o) {
610
+ let r;
611
+ try {
612
+ throw new Error();
613
+ } catch (s) {
614
+ ({ stack: r } = s);
615
+ }
616
+ console.warn(
617
+ `The result function returned its own inputs without modification. e.g
618
+ \`createSelector([state => state.todos], todos => todos)\`
619
+ This could lead to inefficient memoization and unnecessary re-renders.
620
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
621
+ { stack: r }
622
+ );
623
+ }
624
+ }
625
+ }, hn = (e, t, n) => {
626
+ const { memoize: o, memoizeOptions: r } = t, { inputSelectorResults: s, inputSelectorResultsCopy: u } = e, i = o(() => ({}), ...r);
627
+ if (!(i.apply(null, s) === i.apply(null, u))) {
628
+ let a;
629
+ try {
630
+ throw new Error();
631
+ } catch (d) {
632
+ ({ stack: a } = d);
633
+ }
634
+ console.warn(
635
+ `An input selector returned a different result when passed same arguments.
636
+ This means your output selector will likely run more frequently than intended.
637
+ Avoid returning a new reference inside your input selector, e.g.
638
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
639
+ {
640
+ arguments: n,
641
+ firstInputs: s,
642
+ secondInputs: u,
643
+ stack: a
644
+ }
645
+ );
646
+ }
647
+ }, In = {
648
+ inputStabilityCheck: "once",
649
+ identityFunctionCheck: "once"
650
+ }, Ee = /* @__PURE__ */ Symbol("NOT_FOUND");
651
+ function vn(e, t = `expected a function, instead received ${typeof e}`) {
652
+ if (typeof e != "function")
653
+ throw new TypeError(t);
654
+ }
655
+ function En(e, t = `expected an object, instead received ${typeof e}`) {
656
+ if (typeof e != "object")
657
+ throw new TypeError(t);
658
+ }
659
+ function Cn(e, t = "expected all items to be functions, instead received the following types: ") {
660
+ if (!e.every((n) => typeof n == "function")) {
661
+ const n = e.map(
662
+ (o) => typeof o == "function" ? `function ${o.name || "unnamed"}()` : typeof o
663
+ ).join(", ");
664
+ throw new TypeError(`${t}[${n}]`);
665
+ }
666
+ }
667
+ var He = (e) => Array.isArray(e) ? e : [e];
668
+ function Sn(e) {
669
+ const t = Array.isArray(e[0]) ? e[0] : e;
670
+ return Cn(
671
+ t,
672
+ "createSelector expects all input-selectors to be functions, but received the following types: "
673
+ ), t;
674
+ }
675
+ function et(e, t) {
676
+ const n = [], { length: o } = e;
677
+ for (let r = 0; r < o; r++)
678
+ n.push(e[r].apply(null, t));
679
+ return n;
680
+ }
681
+ var Tn = (e, t) => {
682
+ const { identityFunctionCheck: n, inputStabilityCheck: o } = {
683
+ ...In,
684
+ ...t
685
+ };
686
+ return {
687
+ identityFunctionCheck: {
688
+ shouldRun: n === "always" || n === "once" && e,
689
+ run: yn
690
+ },
691
+ inputStabilityCheck: {
692
+ shouldRun: o === "always" || o === "once" && e,
693
+ run: hn
694
+ }
695
+ };
696
+ };
697
+ function xn(e) {
698
+ let t;
699
+ return {
700
+ get(n) {
701
+ return t && e(t.key, n) ? t.value : Ee;
702
+ },
703
+ put(n, o) {
704
+ t = { key: n, value: o };
705
+ },
706
+ getEntries() {
707
+ return t ? [t] : [];
708
+ },
709
+ clear() {
710
+ t = void 0;
711
+ }
712
+ };
713
+ }
714
+ function wn(e, t) {
715
+ let n = [];
716
+ function o(i) {
717
+ const l = n.findIndex((a) => t(i, a.key));
718
+ if (l > -1) {
719
+ const a = n[l];
720
+ return l > 0 && (n.splice(l, 1), n.unshift(a)), a.value;
721
+ }
722
+ return Ee;
723
+ }
724
+ function r(i, l) {
725
+ o(i) === Ee && (n.unshift({ key: i, value: l }), n.length > e && n.pop());
726
+ }
727
+ function s() {
728
+ return n;
729
+ }
730
+ function u() {
731
+ n = [];
732
+ }
733
+ return { get: o, put: r, getEntries: s, clear: u };
734
+ }
735
+ var On = (e, t) => e === t;
736
+ function _n(e) {
737
+ return function(n, o) {
738
+ if (n === null || o === null || n.length !== o.length)
739
+ return !1;
740
+ const { length: r } = n;
741
+ for (let s = 0; s < r; s++)
742
+ if (!e(n[s], o[s]))
743
+ return !1;
744
+ return !0;
745
+ };
746
+ }
747
+ function Rn(e, t) {
748
+ const n = typeof t == "object" ? t : { equalityCheck: t }, {
749
+ equalityCheck: o = On,
750
+ maxSize: r = 1,
751
+ resultEqualityCheck: s
752
+ } = n, u = _n(o);
753
+ let i = 0;
754
+ const l = r <= 1 ? xn(u) : wn(r, u);
755
+ function a() {
756
+ let d = l.get(arguments);
757
+ if (d === Ee) {
758
+ if (d = e.apply(null, arguments), i++, s) {
759
+ const I = l.getEntries().find(
760
+ (p) => s(p.value, d)
761
+ );
762
+ I && (d = I.value, i !== 0 && i--);
763
+ }
764
+ l.put(arguments, d);
765
+ }
766
+ return d;
767
+ }
768
+ return a.clearCache = () => {
769
+ l.clear(), a.resetResultsCount();
770
+ }, a.resultsCount = () => i, a.resetResultsCount = () => {
771
+ i = 0;
772
+ }, a;
773
+ }
774
+ var Dn = class {
775
+ constructor(e) {
776
+ this.value = e;
777
+ }
778
+ deref() {
779
+ return this.value;
780
+ }
781
+ }, Ln = typeof WeakRef < "u" ? WeakRef : Dn, kn = 0, tt = 1;
782
+ function he() {
783
+ return {
784
+ s: kn,
785
+ v: void 0,
786
+ o: null,
787
+ p: null
788
+ };
789
+ }
790
+ function pt(e, t = {}) {
791
+ let n = he();
792
+ const { resultEqualityCheck: o } = t;
793
+ let r, s = 0;
794
+ function u() {
795
+ var h;
796
+ let i = n;
797
+ const { length: l } = arguments;
798
+ for (let I = 0, p = l; I < p; I++) {
799
+ const c = arguments[I];
800
+ if (typeof c == "function" || typeof c == "object" && c !== null) {
801
+ let b = i.o;
802
+ b === null && (i.o = b = /* @__PURE__ */ new WeakMap());
803
+ const y = b.get(c);
804
+ y === void 0 ? (i = he(), b.set(c, i)) : i = y;
805
+ } else {
806
+ let b = i.p;
807
+ b === null && (i.p = b = /* @__PURE__ */ new Map());
808
+ const y = b.get(c);
809
+ y === void 0 ? (i = he(), b.set(c, i)) : i = y;
810
+ }
811
+ }
812
+ const a = i;
813
+ let d;
814
+ if (i.s === tt)
815
+ d = i.v;
816
+ else if (d = e.apply(null, arguments), s++, o) {
817
+ const I = ((h = r == null ? void 0 : r.deref) == null ? void 0 : h.call(r)) ?? r;
818
+ I != null && o(I, d) && (d = I, s !== 0 && s--), r = typeof d == "object" && d !== null || typeof d == "function" ? new Ln(d) : d;
819
+ }
820
+ return a.s = tt, a.v = d, d;
821
+ }
822
+ return u.clearCache = () => {
823
+ n = he(), u.resetResultsCount();
824
+ }, u.resultsCount = () => s, u.resetResultsCount = () => {
825
+ s = 0;
826
+ }, u;
827
+ }
828
+ function ft(e, ...t) {
829
+ const n = typeof e == "function" ? {
830
+ memoize: e,
831
+ memoizeOptions: t
832
+ } : e, o = (...r) => {
833
+ let s = 0, u = 0, i, l = {}, a = r.pop();
834
+ typeof a == "object" && (l = a, a = r.pop()), vn(
835
+ a,
836
+ `createSelector expects an output function after the inputs, but received: [${typeof a}]`
837
+ );
838
+ const d = {
839
+ ...n,
840
+ ...l
841
+ }, {
842
+ memoize: h,
843
+ memoizeOptions: I = [],
844
+ argsMemoize: p = pt,
845
+ argsMemoizeOptions: c = [],
846
+ devModeChecks: b = {}
847
+ } = d, y = He(I), x = He(c), L = Sn(r), R = h(function() {
848
+ return s++, a.apply(
849
+ null,
850
+ arguments
851
+ );
852
+ }, ...y);
853
+ let V = !0;
854
+ const A = p(function() {
855
+ u++;
856
+ const _ = et(
857
+ L,
858
+ arguments
859
+ );
860
+ if (i = R.apply(null, _), process.env.NODE_ENV !== "production") {
861
+ const { identityFunctionCheck: D, inputStabilityCheck: v } = Tn(V, b);
862
+ if (D.shouldRun && D.run(
863
+ a,
864
+ _,
865
+ i
866
+ ), v.shouldRun) {
867
+ const N = et(
868
+ L,
869
+ arguments
870
+ );
871
+ v.run(
872
+ { inputSelectorResults: _, inputSelectorResultsCopy: N },
873
+ { memoize: h, memoizeOptions: y },
874
+ arguments
875
+ );
876
+ }
877
+ V && (V = !1);
878
+ }
879
+ return i;
880
+ }, ...x);
881
+ return Object.assign(A, {
882
+ resultFunc: a,
883
+ memoizedResultFunc: R,
884
+ dependencies: L,
885
+ dependencyRecomputations: () => u,
886
+ resetDependencyRecomputations: () => {
887
+ u = 0;
888
+ },
889
+ lastResult: () => i,
890
+ recomputations: () => s,
891
+ resetRecomputations: () => {
892
+ s = 0;
893
+ },
894
+ memoize: h,
895
+ argsMemoize: p
896
+ });
897
+ };
898
+ return Object.assign(o, {
899
+ withTypes: () => o
900
+ }), o;
901
+ }
902
+ var Vn = /* @__PURE__ */ ft(pt), Nn = Object.assign(
903
+ (e, t = Vn) => {
904
+ En(
905
+ e,
906
+ `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
907
+ );
908
+ const n = Object.keys(e), o = n.map(
909
+ (s) => e[s]
910
+ );
911
+ return t(
912
+ o,
913
+ (...s) => s.reduce((u, i, l) => (u[n[l]] = i, u), {})
914
+ );
915
+ },
916
+ { withTypes: () => Nn }
917
+ );
918
+ const Mn = ft({
919
+ memoize: Rn,
920
+ memoizeOptions: {
921
+ maxSize: 1,
922
+ equalityCheck: Object.is
923
+ }
924
+ }), nt = /* @__PURE__ */ new WeakMap(), C = (...e) => (n, o) => {
925
+ const r = n.cacheKey;
926
+ let s = nt.get(r);
927
+ s || (s = /* @__PURE__ */ new Map(), nt.set(r, s));
928
+ const u = s.get(e);
929
+ if (u)
930
+ return u(n, o);
931
+ const i = Mn(...e);
932
+ return s.set(e, i), i(n, o);
933
+ }, An = (e) => e.id, mt = C(An, (e) => e.treeId);
934
+ let ot = 0;
935
+ const Xo = () => (ot += 1, `mui-tree-view-${ot}`), gt = ({
936
+ id: e,
937
+ treeId: t = "",
938
+ itemId: n
939
+ }) => e ?? `${t}-${n}`, bt = /* @__PURE__ */ P.createContext(null);
940
+ process.env.NODE_ENV !== "production" && (bt.displayName = "TreeViewContext");
941
+ const Te = () => {
942
+ const e = P.useContext(bt);
943
+ if (e == null)
944
+ throw new Error(["MUI X: Could not find the Tree View context.", "It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
945
+ `));
946
+ return e;
947
+ }, yt = /* @__PURE__ */ P.createContext({
948
+ classes: {},
949
+ slots: {},
950
+ slotProps: {}
951
+ });
952
+ process.env.NODE_ENV !== "production" && (yt.displayName = "TreeViewStyleContext");
953
+ const ht = () => P.useContext(yt), Ae = "__TREE_VIEW_ROOT_PARENT_ID__", Yo = (e) => {
954
+ const t = {};
955
+ return e.forEach((n, o) => {
956
+ t[n] = o;
957
+ }), t;
958
+ }, Ve = (e, t) => {
959
+ if (t == null)
960
+ return !1;
961
+ let n = e[t];
962
+ if (!n)
963
+ return !1;
964
+ if (n.disabled)
965
+ return !0;
966
+ for (; n.parentId != null; ) {
967
+ if (n = e[n.parentId], !n)
968
+ return !1;
969
+ if (n.disabled)
970
+ return !0;
971
+ }
972
+ return !1;
973
+ }, It = /* @__PURE__ */ P.createContext(() => -1);
974
+ process.env.NODE_ENV !== "production" && (It.displayName = "TreeViewItemDepthContext");
975
+ const re = (e) => e.items, Jo = C(re, (e) => e.loading), Qo = C(re, (e) => e.error), Pe = C(re, (e) => e.itemMetaLookup), Pn = [], q = C([re, (e, t) => t], (e, t) => e.itemOrderedChildrenIdsLookup[t ?? Ae] ?? Pn), zn = C([re, (e, t) => t], (e, t) => e.itemModelLookup[t]), U = C([Pe, (e, t) => t], (e, t) => e[t ?? Ae] ?? null), xe = C([Pe, (e, t) => t], Ve), ze = C([re, U], (e, t) => t == null ? -1 : e.itemChildrenIndexesLookup[t.parentId ?? Ae][t.id]), rt = C([U], (e) => (e == null ? void 0 : e.parentId) ?? null), Zo = C([U], (e) => (e == null ? void 0 : e.depth) ?? 0), vt = C([re], (e) => e.disabledItemsFocusable), ne = C([vt, xe], (e, t) => e ? !0 : !t), Et = (e) => e.expansion, jn = C([Et], (e) => e.expandedItems), Ct = C([jn], (e) => {
976
+ const t = /* @__PURE__ */ new Map();
977
+ return e.forEach((n) => {
978
+ t.set(n, !0);
979
+ }), t;
980
+ }), se = C([Ct, (e, t) => t], (e, t) => e.has(t)), St = C([U], (e) => (e == null ? void 0 : e.expandable) ?? !1), it = C([Et], (e) => e.expansionTrigger), Ne = (e, t) => {
981
+ let n = t.length - 1;
982
+ for (; n >= 0 && !ne(e, t[n]); )
983
+ n -= 1;
984
+ if (n !== -1)
985
+ return t[n];
986
+ }, $n = (e, t) => {
987
+ const n = U(e, t);
988
+ if (!n)
989
+ return null;
990
+ const o = q(e, n.parentId), r = ze(e, t);
991
+ if (r === 0)
992
+ return n.parentId;
993
+ let s = r - 1;
994
+ for (; !ne(e, o[s]) && s >= 0; )
995
+ s -= 1;
996
+ if (s === -1)
997
+ return n.parentId == null ? null : $n(e, n.parentId);
998
+ let u = o[s], i = Ne(e, q(e, u));
999
+ for (; se(e, u) && i != null; )
1000
+ u = i, i = Ne(e, q(e, u));
1001
+ return u;
1002
+ }, Kn = (e, t) => {
1003
+ if (se(e, t)) {
1004
+ const o = q(e, t).find((r) => ne(e, r));
1005
+ if (o != null)
1006
+ return o;
1007
+ }
1008
+ let n = U(e, t);
1009
+ for (; n != null; ) {
1010
+ const o = q(e, n.parentId), r = ze(e, n.id);
1011
+ if (r < o.length - 1) {
1012
+ let s = r + 1;
1013
+ for (; !ne(e, o[s]) && s < o.length - 1; )
1014
+ s += 1;
1015
+ if (ne(e, o[s]))
1016
+ return o[s];
1017
+ }
1018
+ n = U(e, n.parentId);
1019
+ }
1020
+ return null;
1021
+ }, Ho = (e) => {
1022
+ let t = null;
1023
+ for (; t == null || se(e, t); ) {
1024
+ const n = q(e, t), o = Ne(e, n);
1025
+ if (o == null)
1026
+ return t;
1027
+ t = o;
1028
+ }
1029
+ return t;
1030
+ }, Fn = (e) => q(e, null).find((t) => ne(e, t)), Wn = (e, t, n) => {
1031
+ if (t === n)
1032
+ return [t, n];
1033
+ const o = U(e, t), r = U(e, n);
1034
+ if (!o || !r)
1035
+ return [t, n];
1036
+ if (o.parentId === r.id || r.parentId === o.id)
1037
+ return r.parentId === o.id ? [o.id, r.id] : [r.id, o.id];
1038
+ const s = [o.id], u = [r.id];
1039
+ let i = o.parentId, l = r.parentId, a = u.indexOf(i) !== -1, d = s.indexOf(l) !== -1, h = !0, I = !0;
1040
+ for (; !d && !a; )
1041
+ h && (s.push(i), a = u.indexOf(i) !== -1, h = i !== null, !a && h && (i = rt(e, i))), I && !a && (u.push(l), d = s.indexOf(l) !== -1, I = l !== null, !d && I && (l = rt(e, l)));
1042
+ const p = a ? i : l, c = q(e, p), b = s[s.indexOf(p) - 1], y = u[u.indexOf(p) - 1];
1043
+ return c.indexOf(b) < c.indexOf(y) ? [t, n] : [n, t];
1044
+ }, er = (e, t, n) => {
1045
+ const o = (l) => {
1046
+ if (St(e, l) && se(e, l))
1047
+ return q(e, l)[0];
1048
+ let a = U(e, l);
1049
+ for (; a != null; ) {
1050
+ const d = q(e, a.parentId), h = ze(e, a.id);
1051
+ if (h < d.length - 1)
1052
+ return d[h + 1];
1053
+ a = a.parentId ? U(e, a.parentId) : null;
1054
+ }
1055
+ throw new Error("Invalid range");
1056
+ }, [r, s] = Wn(e, t, n), u = [r];
1057
+ let i = r;
1058
+ for (; i !== s; )
1059
+ i = o(i), xe(e, i) || u.push(i);
1060
+ return u;
1061
+ }, tr = (e) => {
1062
+ let t = Fn(e);
1063
+ const n = [];
1064
+ for (; t != null; )
1065
+ n.push(t), t = Kn(e, t);
1066
+ return n;
1067
+ }, st = (e, t) => t !== e.closest('*[role="treeitem"]'), pe = (e) => e.selection, Bn = C([pe], (e) => e.selectedItems), Tt = C([Bn], (e) => Array.isArray(e) ? e : e != null ? [e] : []), Gn = C([Tt], (e) => {
1068
+ const t = /* @__PURE__ */ new Map();
1069
+ return e.forEach((n) => {
1070
+ t.set(n, !0);
1071
+ }), t;
1072
+ }), qn = C([Gn, (e, t) => t], (e, t) => e.has(t)), Un = C([pe], (e) => e.isEnabled && e.isMultiSelectEnabled), Xn = C([pe], (e) => e.isEnabled), Yn = C([pe], (e) => e.isCheckboxSelectionEnabled), Jn = C([xe, Xn], (e, t) => t && !e), nr = C([pe], (e) => e.selectionPropagation), Qn = (e) => e.focus, Zn = C([Tt, Ct, Pe, vt, (e) => q(e, null)], (e, t, n, o, r) => {
1073
+ const s = e.find((i) => {
1074
+ if (!o && Ve(n, i))
1075
+ return !1;
1076
+ const l = n[i];
1077
+ return l && (l.parentId == null || t.has(l.parentId));
1078
+ });
1079
+ if (s != null)
1080
+ return s;
1081
+ const u = r.find((i) => o || !Ve(n, i));
1082
+ return u ?? null;
1083
+ }), Hn = C([Zn, (e, t) => t], (e, t) => e === t), eo = C(Qn, (e) => e.focusedItemId), to = C([eo, (e, t) => t], (e, t) => e === t), Le = (e, t) => e.getAvailablePlugins().has(t), je = (e) => e.label, $e = C([je, (e, t) => zn(e, t)], (e, t) => !t || !e ? !1 : typeof e.isItemEditable == "boolean" ? e.isItemEditable : e.isItemEditable(t)), Ie = C([je, (e, t) => t], (e, t) => t ? (e == null ? void 0 : e.editedItemId) === t : !1);
1084
+ C(je, (e) => !!(e != null && e.editedItemId));
1085
+ const no = ({
1086
+ props: e
1087
+ }) => {
1088
+ const {
1089
+ store: t
1090
+ } = Te(), {
1091
+ label: n,
1092
+ itemId: o
1093
+ } = e, [r, s] = P.useState(n), u = M(t, $e, o), i = M(t, Ie, o);
1094
+ return P.useEffect(() => {
1095
+ i || s(n);
1096
+ }, [i, n]), {
1097
+ propsEnhancers: {
1098
+ label: () => ({
1099
+ editable: u
1100
+ }),
1101
+ labelInput: ({
1102
+ externalEventHandlers: l,
1103
+ interactions: a
1104
+ }) => u ? {
1105
+ value: r ?? "",
1106
+ "data-element": "labelInput",
1107
+ onChange: (p) => {
1108
+ var c;
1109
+ (c = l.onChange) == null || c.call(l, p), s(p.target.value);
1110
+ },
1111
+ onKeyDown: (p) => {
1112
+ var b;
1113
+ if ((b = l.onKeyDown) == null || b.call(l, p), p.defaultMuiPrevented)
1114
+ return;
1115
+ const c = p.target;
1116
+ p.key === "Enter" && c.value ? a.handleSaveItemLabel(p, c.value) : p.key === "Escape" && a.handleCancelItemLabelEditing(p);
1117
+ },
1118
+ onBlur: (p) => {
1119
+ var c;
1120
+ (c = l.onBlur) == null || c.call(l, p), !p.defaultMuiPrevented && p.target.value && a.handleSaveItemLabel(p, p.target.value);
1121
+ },
1122
+ autoFocus: !0,
1123
+ type: "text"
1124
+ } : {}
1125
+ }
1126
+ };
1127
+ }, oe = ({
1128
+ store: e,
1129
+ params: t
1130
+ }) => {
1131
+ const n = (r) => {
1132
+ r !== null && !$e(e.value, r) || e.update((s) => E({}, s, {
1133
+ label: E({}, s.label, {
1134
+ editedItemId: r
1135
+ })
1136
+ }));
1137
+ }, o = (r, s) => {
1138
+ if (!s)
1139
+ throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "The label of an item cannot be empty.", r].join(`
1140
+ `));
1141
+ e.update((u) => {
1142
+ const i = u.items.itemMetaLookup[r];
1143
+ return i.label !== s ? E({}, u, {
1144
+ items: E({}, u.items, {
1145
+ itemMetaLookup: E({}, u.items.itemMetaLookup, {
1146
+ [r]: E({}, i, {
1147
+ label: s
1148
+ })
1149
+ })
1150
+ })
1151
+ }) : u;
1152
+ }), t.onItemLabelChange && t.onItemLabelChange(r, s);
1153
+ };
1154
+ return Ft(() => {
1155
+ e.update((r) => E({}, r, {
1156
+ label: E({}, r.label, {
1157
+ isItemEditable: t.isItemEditable
1158
+ })
1159
+ }));
1160
+ }, [e, t.isItemEditable]), {
1161
+ instance: {
1162
+ setEditedItem: n,
1163
+ updateItemLabel: o
1164
+ },
1165
+ publicAPI: {
1166
+ setEditedItem: n,
1167
+ updateItemLabel: o
1168
+ }
1169
+ };
1170
+ };
1171
+ oe.itemPlugin = no;
1172
+ oe.applyDefaultValuesToParams = ({
1173
+ params: e
1174
+ }) => E({}, e, {
1175
+ isItemEditable: e.isItemEditable ?? !1
1176
+ });
1177
+ oe.getInitialState = (e) => ({
1178
+ label: {
1179
+ isItemEditable: e.isItemEditable,
1180
+ editedItemId: null
1181
+ }
1182
+ });
1183
+ oe.params = {
1184
+ onItemLabelChange: !0,
1185
+ isItemEditable: !0
1186
+ };
1187
+ const oo = (e) => e.lazyLoading, ro = (e) => e.lazyLoading, xt = C([oo], (e) => e.dataSource), io = C([ro], (e) => !!(e != null && e.enabled)), so = C([xt, (e, t) => t], (e, t) => e.loading[t] || !1), ao = C([xt, (e, t) => t], (e, t) => e.errors[t] || null), wt = (e) => Array.isArray(e) ? e.length > 0 && e.some(wt) : !!e, lo = ({
1188
+ itemId: e,
1189
+ children: t
1190
+ }) => {
1191
+ const {
1192
+ instance: n,
1193
+ store: o,
1194
+ publicAPI: r
1195
+ } = Te(), s = M(o, St, e), u = M(o, io), i = M(o, Un), l = M(o, (v) => u ? so(v, e) : !1), a = M(o, (v) => u ? !!ao(v, e) : !1), d = wt(t) || s, h = M(o, se, e), I = M(o, to, e), p = M(o, qn, e), c = M(o, xe, e), b = M(o, Ie, e), y = M(o, $e, e), x = {
1196
+ expandable: d,
1197
+ expanded: h,
1198
+ focused: I,
1199
+ selected: p,
1200
+ disabled: c,
1201
+ editing: b,
1202
+ editable: y,
1203
+ loading: l,
1204
+ error: a
1205
+ }, L = (v) => {
1206
+ if (x.disabled)
1207
+ return;
1208
+ x.focused || n.focusItem(v, e);
1209
+ const N = i && (v.shiftKey || v.ctrlKey || v.metaKey);
1210
+ x.expandable && !(N && se(o.value, e)) && n.setItemExpansion({
1211
+ event: v,
1212
+ itemId: e
1213
+ });
1214
+ }, R = (v) => {
1215
+ if (x.disabled)
1216
+ return;
1217
+ !x.focused && !x.editing && n.focusItem(v, e), i && (v.shiftKey || v.ctrlKey || v.metaKey) ? v.shiftKey ? n.expandSelectionRange(v, e) : n.setItemSelection({
1218
+ event: v,
1219
+ itemId: e,
1220
+ keepExistingSelection: !0
1221
+ }) : n.setItemSelection({
1222
+ event: v,
1223
+ itemId: e,
1224
+ shouldBeSelected: !0
1225
+ });
1226
+ }, V = (v) => {
1227
+ const N = v.nativeEvent.shiftKey;
1228
+ i && N ? n.expandSelectionRange(v, e) : n.setItemSelection({
1229
+ event: v,
1230
+ itemId: e,
1231
+ keepExistingSelection: i,
1232
+ shouldBeSelected: v.target.checked
1233
+ });
1234
+ }, A = () => {
1235
+ Le(n, oe) && (b ? n.setEditedItem(null) : n.setEditedItem(e));
1236
+ };
1237
+ return {
1238
+ interactions: {
1239
+ handleExpansion: L,
1240
+ handleSelection: R,
1241
+ handleCheckboxSelection: V,
1242
+ toggleItemEditing: A,
1243
+ handleSaveItemLabel: (v, N) => {
1244
+ Le(n, oe) && Ie(o.value, e) && (n.updateItemLabel(e, N), A(), n.focusItem(v, e));
1245
+ },
1246
+ handleCancelItemLabelEditing: (v) => {
1247
+ Le(n, oe) && Ie(o.value, e) && (A(), n.focusItem(v, e));
1248
+ }
1249
+ },
1250
+ status: x,
1251
+ publicAPI: r
1252
+ };
1253
+ }, Ot = (e) => {
1254
+ const {
1255
+ runItemPlugins: t,
1256
+ instance: n,
1257
+ publicAPI: o,
1258
+ store: r
1259
+ } = Te(), s = P.useContext(It), u = M(r, (...g) => typeof s == "function" ? s(...g) : s, e.itemId), {
1260
+ id: i,
1261
+ itemId: l,
1262
+ label: a,
1263
+ children: d,
1264
+ rootRef: h
1265
+ } = e, {
1266
+ rootRef: I,
1267
+ contentRef: p,
1268
+ propsEnhancers: c
1269
+ } = t(e), {
1270
+ interactions: b,
1271
+ status: y
1272
+ } = lo({
1273
+ itemId: l,
1274
+ children: d
1275
+ }), x = P.useRef(null), L = P.useRef(null), R = ke(h, I, x), V = ke(p, L), A = P.useRef(null), w = M(r, mt), _ = M(r, Jn, l), D = M(r, Yn), v = gt({
1276
+ itemId: l,
1277
+ treeId: w,
1278
+ id: i
1279
+ }), N = M(r, Hn, l), F = {
1280
+ rootRefObject: x,
1281
+ contentRefObject: L,
1282
+ interactions: b
1283
+ }, J = (g) => (f) => {
1284
+ var S;
1285
+ (S = g.onFocus) == null || S.call(g, f), !f.defaultMuiPrevented && !y.focused && ne(r.value, l) && f.currentTarget === f.target && n.focusItem(f, l);
1286
+ }, Q = (g) => (f) => {
1287
+ var k, z, te, Fe, We;
1288
+ if ((k = g.onBlur) == null || k.call(g, f), f.defaultMuiPrevented)
1289
+ return;
1290
+ const S = n.getItemDOMElement(l);
1291
+ y.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
1292
+ // we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
1293
+ f.relatedTarget && st(f.relatedTarget, S) && (f.target && ((te = (z = f.target) == null ? void 0 : z.dataset) == null ? void 0 : te.element) === "labelInput" && st(f.target, S) || ((We = (Fe = f.relatedTarget) == null ? void 0 : Fe.dataset) == null ? void 0 : We.element) === "labelInput") || n.removeFocusedItem();
1294
+ }, X = (g) => (f) => {
1295
+ var S, k, z;
1296
+ (S = g.onKeyDown) == null || S.call(g, f), !(f.defaultMuiPrevented || ((z = (k = f.target) == null ? void 0 : k.dataset) == null ? void 0 : z.element) === "labelInput") && n.handleItemKeyDown(f, l);
1297
+ }, Z = (g) => (f) => {
1298
+ var S;
1299
+ (S = g.onDoubleClick) == null || S.call(g, f), !f.defaultMuiPrevented && b.toggleItemEditing();
1300
+ }, ie = (g) => (f) => {
1301
+ var S, k;
1302
+ (S = g.onClick) == null || S.call(g, f), n.handleItemClick(f, l), !(f.defaultMuiPrevented || (k = A.current) != null && k.contains(f.target)) && (it(r.value) === "content" && b.handleExpansion(f), D || b.handleSelection(f));
1303
+ }, Y = (g) => (f) => {
1304
+ var S;
1305
+ (S = g.onMouseDown) == null || S.call(g, f), !f.defaultMuiPrevented && (f.shiftKey || f.ctrlKey || f.metaKey || y.disabled) && f.preventDefault();
1306
+ }, H = (g) => (f) => {
1307
+ var S;
1308
+ (S = g.onClick) == null || S.call(g, f), !f.defaultMuiPrevented && it(r.value) === "iconContainer" && b.handleExpansion(f);
1309
+ };
1310
+ return {
1311
+ getContextProviderProps: () => ({
1312
+ itemId: l,
1313
+ id: i
1314
+ }),
1315
+ getRootProps: (g = {}) => {
1316
+ var te;
1317
+ const f = E({}, B(e), B(g));
1318
+ let S;
1319
+ y.selected ? S = !0 : _ ? S = !1 : S = void 0;
1320
+ const k = E({}, f, {
1321
+ ref: R,
1322
+ role: "treeitem",
1323
+ tabIndex: N ? 0 : -1,
1324
+ id: v,
1325
+ "aria-expanded": y.expandable ? y.expanded : void 0,
1326
+ "aria-selected": S,
1327
+ "aria-disabled": y.disabled || void 0
1328
+ }, g, {
1329
+ style: E({}, g.style ?? {}, {
1330
+ "--TreeView-itemDepth": u
1331
+ }),
1332
+ onFocus: J(f),
1333
+ onBlur: Q(f),
1334
+ onKeyDown: X(f)
1335
+ }), z = ((te = c.root) == null ? void 0 : te.call(c, E({}, F, {
1336
+ externalEventHandlers: f
1337
+ }))) ?? {};
1338
+ return E({}, k, z);
1339
+ },
1340
+ getContentProps: (g = {}) => {
1341
+ var z;
1342
+ const f = B(g), S = E({}, f, g, {
1343
+ ref: V,
1344
+ onClick: ie(f),
1345
+ onMouseDown: Y(f),
1346
+ status: y
1347
+ });
1348
+ ["expanded", "selected", "focused", "disabled", "editing", "editable"].forEach((te) => {
1349
+ y[te] && (S[`data-${te}`] = "");
1350
+ });
1351
+ const k = ((z = c.content) == null ? void 0 : z.call(c, E({}, F, {
1352
+ externalEventHandlers: f
1353
+ }))) ?? {};
1354
+ return E({}, S, k);
1355
+ },
1356
+ getGroupTransitionProps: (g = {}) => {
1357
+ const f = B(g);
1358
+ return E({}, f, {
1359
+ unmountOnExit: !0,
1360
+ component: "ul",
1361
+ role: "group",
1362
+ in: y.expanded,
1363
+ children: d
1364
+ }, g);
1365
+ },
1366
+ getIconContainerProps: (g = {}) => {
1367
+ const f = B(g);
1368
+ return E({}, f, g, {
1369
+ onClick: H(f)
1370
+ });
1371
+ },
1372
+ getCheckboxProps: (g = {}) => {
1373
+ var z;
1374
+ const f = B(g), S = E({}, f, {
1375
+ ref: A
1376
+ }, g), k = ((z = c.checkbox) == null ? void 0 : z.call(c, E({}, F, {
1377
+ externalEventHandlers: f
1378
+ }))) ?? {};
1379
+ return E({}, S, k);
1380
+ },
1381
+ getLabelProps: (g = {}) => {
1382
+ var z;
1383
+ const f = E({}, B(g)), S = E({}, f, {
1384
+ children: a
1385
+ }, g, {
1386
+ onDoubleClick: Z(f)
1387
+ }), k = ((z = c.label) == null ? void 0 : z.call(c, E({}, F, {
1388
+ externalEventHandlers: f
1389
+ }))) ?? {};
1390
+ return E({}, k, S);
1391
+ },
1392
+ getLabelInputProps: (g = {}) => {
1393
+ var k;
1394
+ const f = B(g), S = ((k = c.labelInput) == null ? void 0 : k.call(c, E({}, F, {
1395
+ externalEventHandlers: f
1396
+ }))) ?? {};
1397
+ return E({}, g, S);
1398
+ },
1399
+ getDragAndDropOverlayProps: (g = {}) => {
1400
+ var k;
1401
+ const f = B(g), S = ((k = c.dragAndDropOverlay) == null ? void 0 : k.call(c, E({}, F, {
1402
+ externalEventHandlers: f
1403
+ }))) ?? {};
1404
+ return E({}, g, S);
1405
+ },
1406
+ getErrorContainerProps: (g = {}) => {
1407
+ const f = B(g);
1408
+ return E({}, f, g);
1409
+ },
1410
+ getLoadingContainerProps: (g = {}) => {
1411
+ const f = B(g);
1412
+ return E({
1413
+ size: "12px",
1414
+ thickness: 6
1415
+ }, f, g);
1416
+ },
1417
+ rootRef: R,
1418
+ status: y,
1419
+ publicAPI: o
1420
+ };
1421
+ };
1422
+ function co(e) {
1423
+ return ct("MuiTreeItem", e);
1424
+ }
1425
+ lt("MuiTreeItem", [
1426
+ "root",
1427
+ "content",
1428
+ "groupTransition",
1429
+ "iconContainer",
1430
+ "label",
1431
+ "checkbox",
1432
+ "labelInput",
1433
+ "dragAndDropOverlay",
1434
+ "errorIcon",
1435
+ "loadingIcon",
1436
+ // State classes, will be replaced by data-attrs in the next major
1437
+ "expanded",
1438
+ "selected",
1439
+ "focused",
1440
+ "disabled",
1441
+ "editable",
1442
+ "editing"
1443
+ ]);
1444
+ const uo = Ce(/* @__PURE__ */ O("path", {
1445
+ d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
1446
+ }), "TreeViewExpandIcon"), po = Ce(/* @__PURE__ */ O("path", {
1447
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
1448
+ }), "TreeViewCollapseIcon");
1449
+ function _t(e) {
1450
+ const {
1451
+ slots: t,
1452
+ slotProps: n,
1453
+ status: o
1454
+ } = e, {
1455
+ slots: r,
1456
+ slotProps: s
1457
+ } = ht(), u = {
1458
+ collapseIcon: (t == null ? void 0 : t.collapseIcon) ?? r.collapseIcon ?? po,
1459
+ expandIcon: (t == null ? void 0 : t.expandIcon) ?? r.expandIcon ?? uo,
1460
+ endIcon: (t == null ? void 0 : t.endIcon) ?? r.endIcon,
1461
+ icon: t == null ? void 0 : t.icon
1462
+ };
1463
+ let i;
1464
+ u != null && u.icon ? i = "icon" : o.expandable ? o.expanded ? i = "collapseIcon" : i = "expandIcon" : i = "endIcon";
1465
+ const l = u[i], a = G({
1466
+ elementType: l,
1467
+ externalSlotProps: (d) => E({}, Ge(s[i], d), Ge(n == null ? void 0 : n[i], d)),
1468
+ // TODO: Add proper ownerState
1469
+ ownerState: {}
1470
+ });
1471
+ return l ? /* @__PURE__ */ O(l, E({}, a)) : null;
1472
+ }
1473
+ process.env.NODE_ENV !== "production" && (_t.propTypes = {
1474
+ // ----------------------------- Warning --------------------------------
1475
+ // | These PropTypes are generated from the TypeScript type definitions |
1476
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
1477
+ // ----------------------------------------------------------------------
1478
+ /**
1479
+ * The props used for each component slot.
1480
+ * @default {}
1481
+ */
1482
+ slotProps: m.object,
1483
+ /**
1484
+ * Overridable component slots.
1485
+ * @default {}
1486
+ */
1487
+ slots: m.object,
1488
+ status: m.shape({
1489
+ disabled: m.bool.isRequired,
1490
+ editable: m.bool.isRequired,
1491
+ editing: m.bool.isRequired,
1492
+ error: m.bool.isRequired,
1493
+ expandable: m.bool.isRequired,
1494
+ expanded: m.bool.isRequired,
1495
+ focused: m.bool.isRequired,
1496
+ loading: m.bool.isRequired,
1497
+ selected: m.bool.isRequired
1498
+ }).isRequired
1499
+ });
1500
+ const fo = K("div", {
1501
+ name: "MuiTreeItemDragAndDropOverlay",
1502
+ slot: "Root",
1503
+ shouldForwardProp: (e) => Me(e) && e !== "action"
1504
+ })(({
1505
+ theme: e
1506
+ }) => ({
1507
+ position: "absolute",
1508
+ left: 0,
1509
+ display: "flex",
1510
+ top: 0,
1511
+ bottom: 0,
1512
+ right: 0,
1513
+ pointerEvents: "none",
1514
+ variants: [{
1515
+ props: {
1516
+ action: "make-child"
1517
+ },
1518
+ style: {
1519
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
1520
+ borderRadius: e.shape.borderRadius,
1521
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})` : ue(e.palette.primary.dark, e.palette.action.focusOpacity)
1522
+ }
1523
+ }, {
1524
+ props: {
1525
+ action: "reorder-above"
1526
+ },
1527
+ style: {
1528
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
1529
+ borderTop: `1px solid ${(e.vars || e).palette.action.active}`
1530
+ }
1531
+ }, {
1532
+ props: {
1533
+ action: "reorder-below"
1534
+ },
1535
+ style: {
1536
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
1537
+ borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
1538
+ }
1539
+ }, {
1540
+ props: {
1541
+ action: "move-to-parent"
1542
+ },
1543
+ style: {
1544
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",
1545
+ borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
1546
+ }
1547
+ }]
1548
+ }));
1549
+ function Rt(e) {
1550
+ return e.action == null ? null : /* @__PURE__ */ O(fo, E({}, e));
1551
+ }
1552
+ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
1553
+ // ----------------------------- Warning --------------------------------
1554
+ // | These PropTypes are generated from the TypeScript type definitions |
1555
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
1556
+ // ----------------------------------------------------------------------
1557
+ action: m.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
1558
+ style: m.object
1559
+ });
1560
+ function Ke(e) {
1561
+ const {
1562
+ children: t,
1563
+ itemId: n,
1564
+ id: o
1565
+ } = e, {
1566
+ wrapItem: r,
1567
+ instance: s,
1568
+ store: u
1569
+ } = Te(), i = M(u, mt), l = gt({
1570
+ itemId: n,
1571
+ treeId: i,
1572
+ id: o
1573
+ });
1574
+ return /* @__PURE__ */ O(P.Fragment, {
1575
+ children: r({
1576
+ children: t,
1577
+ itemId: n,
1578
+ instance: s,
1579
+ idAttribute: l
1580
+ })
1581
+ });
1582
+ }
1583
+ process.env.NODE_ENV !== "production" && (Ke.propTypes = {
1584
+ // ----------------------------- Warning --------------------------------
1585
+ // | These PropTypes are generated from the TypeScript type definitions |
1586
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
1587
+ // ----------------------------------------------------------------------
1588
+ children: m.node,
1589
+ id: m.string,
1590
+ itemId: m.string.isRequired
1591
+ });
1592
+ const mo = K("input", {
1593
+ name: "MuiTreeItem",
1594
+ slot: "LabelInput"
1595
+ })(({
1596
+ theme: e
1597
+ }) => E({}, e.typography.body1, {
1598
+ width: "100%",
1599
+ backgroundColor: (e.vars || e).palette.background.paper,
1600
+ borderRadius: e.shape.borderRadius,
1601
+ border: "none",
1602
+ padding: "0 2px",
1603
+ boxSizing: "border-box",
1604
+ "&:focus": {
1605
+ outline: `1px solid ${(e.vars || e).palette.primary.main}`
1606
+ }
1607
+ })), go = ["visible"], bo = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps", "classes"], yo = cn(), Dt = K("li", {
1608
+ name: "MuiTreeItem",
1609
+ slot: "Root"
1610
+ })({
1611
+ listStyle: "none",
1612
+ margin: 0,
1613
+ padding: 0,
1614
+ outline: 0
1615
+ }), Lt = K("div", {
1616
+ name: "MuiTreeItem",
1617
+ slot: "Content",
1618
+ shouldForwardProp: (e) => Me(e) && e !== "status"
1619
+ })(({
1620
+ theme: e
1621
+ }) => ({
1622
+ padding: e.spacing(0.5, 1),
1623
+ paddingLeft: `calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,
1624
+ borderRadius: e.shape.borderRadius,
1625
+ width: "100%",
1626
+ boxSizing: "border-box",
1627
+ // prevent width + padding to overflow
1628
+ position: "relative",
1629
+ display: "flex",
1630
+ alignItems: "center",
1631
+ gap: e.spacing(1),
1632
+ cursor: "pointer",
1633
+ WebkitTapHighlightColor: "transparent",
1634
+ "&:hover": {
1635
+ backgroundColor: (e.vars || e).palette.action.hover,
1636
+ // Reset on touch devices, it doesn't add specificity
1637
+ "@media (hover: none)": {
1638
+ backgroundColor: "transparent"
1639
+ }
1640
+ },
1641
+ "&[data-disabled]": {
1642
+ opacity: (e.vars || e).palette.action.disabledOpacity,
1643
+ backgroundColor: "transparent"
1644
+ },
1645
+ "&[data-focused]": {
1646
+ backgroundColor: (e.vars || e).palette.action.focus
1647
+ },
1648
+ "&[data-selected]": {
1649
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : ue(e.palette.primary.main, e.palette.action.selectedOpacity),
1650
+ "&:hover": {
1651
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : ue(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1652
+ // Reset on touch devices, it doesn't add specificity
1653
+ "@media (hover: none)": {
1654
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : ue(e.palette.primary.main, e.palette.action.selectedOpacity)
1655
+ }
1656
+ }
1657
+ },
1658
+ "&[data-selected][data-focused]": {
1659
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : ue(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1660
+ }
1661
+ })), ho = K("div", {
1662
+ name: "MuiTreeItem",
1663
+ slot: "Label",
1664
+ shouldForwardProp: (e) => Me(e) && e !== "editable"
1665
+ })(({
1666
+ theme: e
1667
+ }) => E({
1668
+ width: "100%",
1669
+ boxSizing: "border-box",
1670
+ // prevent width + padding to overflow
1671
+ // fixes overflow - see https://github.com/mui/material-ui/issues/27372
1672
+ minWidth: 0,
1673
+ position: "relative",
1674
+ overflow: "hidden"
1675
+ }, e.typography.body1, {
1676
+ variants: [{
1677
+ props: ({
1678
+ editable: t
1679
+ }) => t,
1680
+ style: {
1681
+ paddingLeft: "2px"
1682
+ }
1683
+ }]
1684
+ })), kt = K("div", {
1685
+ name: "MuiTreeItem",
1686
+ slot: "IconContainer"
1687
+ })({
1688
+ width: 16,
1689
+ display: "flex",
1690
+ flexShrink: 0,
1691
+ justifyContent: "center",
1692
+ position: "relative",
1693
+ "& svg": {
1694
+ fontSize: 18
1695
+ }
1696
+ }), Vt = K(ve, {
1697
+ name: "MuiTreeItem",
1698
+ slot: "GroupTransition",
1699
+ overridesResolver: (e, t) => t.groupTransition
1700
+ })({
1701
+ margin: 0,
1702
+ padding: 0
1703
+ }), Io = K("div", {
1704
+ name: "MuiTreeItem",
1705
+ slot: "ErrorIcon"
1706
+ })({
1707
+ position: "absolute",
1708
+ right: -3,
1709
+ width: 7,
1710
+ height: 7,
1711
+ borderRadius: "50%",
1712
+ backgroundColor: "red"
1713
+ }), vo = K(Zt, {
1714
+ name: "MuiTreeItem",
1715
+ slot: "LoadingIcon"
1716
+ })({
1717
+ color: "text.primary"
1718
+ }), Nt = K(/* @__PURE__ */ P.forwardRef((e, t) => {
1719
+ const {
1720
+ visible: n
1721
+ } = e, o = at(e, go);
1722
+ return n ? /* @__PURE__ */ O(Qt, E({}, o, {
1723
+ ref: t
1724
+ })) : null;
1725
+ }), {
1726
+ name: "MuiTreeItem",
1727
+ slot: "Checkbox"
1728
+ })({
1729
+ padding: 0
1730
+ });
1731
+ process.env.NODE_ENV !== "production" && (Nt.displayName = "TreeItemCheckbox");
1732
+ const Eo = (e) => {
1733
+ const {
1734
+ classes: t
1735
+ } = ht(), n = E({}, e, {
1736
+ root: W(e == null ? void 0 : e.root, t.root),
1737
+ content: W(e == null ? void 0 : e.content, t.itemContent),
1738
+ iconContainer: W(e == null ? void 0 : e.iconContainer, t.itemIconContainer),
1739
+ checkbox: W(e == null ? void 0 : e.checkbox, t.itemCheckbox),
1740
+ label: W(e == null ? void 0 : e.label, t.itemLabel),
1741
+ groupTransition: W(e == null ? void 0 : e.groupTransition, t.itemGroupTransition),
1742
+ labelInput: W(e == null ? void 0 : e.labelInput, t.itemLabelInput),
1743
+ dragAndDropOverlay: W(e == null ? void 0 : e.dragAndDropOverlay, t.itemDragAndDropOverlay),
1744
+ errorIcon: W(e == null ? void 0 : e.errorIcon, t.itemErrorIcon),
1745
+ loadingIcon: W(e == null ? void 0 : e.loadingIcon, t.itemLoadingIcon)
1746
+ });
1747
+ return ut({
1748
+ root: ["root"],
1749
+ content: ["content"],
1750
+ iconContainer: ["iconContainer"],
1751
+ checkbox: ["checkbox"],
1752
+ label: ["label"],
1753
+ groupTransition: ["groupTransition"],
1754
+ labelInput: ["labelInput"],
1755
+ dragAndDropOverlay: ["dragAndDropOverlay"],
1756
+ errorIcon: ["errorIcon"],
1757
+ loadingIcon: ["loadingIcon"],
1758
+ expanded: ["expanded"],
1759
+ editing: ["editing"],
1760
+ editable: ["editable"],
1761
+ selected: ["selected"],
1762
+ focused: ["focused"],
1763
+ disabled: ["disabled"]
1764
+ }, co, n);
1765
+ }, Mt = /* @__PURE__ */ P.forwardRef(function(t, n) {
1766
+ const o = yo({
1767
+ props: t,
1768
+ name: "MuiTreeItem"
1769
+ }), {
1770
+ id: r,
1771
+ itemId: s,
1772
+ label: u,
1773
+ disabled: i,
1774
+ children: l,
1775
+ slots: a = {},
1776
+ slotProps: d = {},
1777
+ classes: h
1778
+ } = o, I = at(o, bo), {
1779
+ getContextProviderProps: p,
1780
+ getRootProps: c,
1781
+ getContentProps: b,
1782
+ getIconContainerProps: y,
1783
+ getCheckboxProps: x,
1784
+ getLabelProps: L,
1785
+ getGroupTransitionProps: R,
1786
+ getLabelInputProps: V,
1787
+ getDragAndDropOverlayProps: A,
1788
+ getErrorContainerProps: w,
1789
+ getLoadingContainerProps: _,
1790
+ status: D
1791
+ } = Ot({
1792
+ id: r,
1793
+ itemId: s,
1794
+ children: l,
1795
+ label: u,
1796
+ disabled: i
1797
+ }), v = Eo(h), N = a.root ?? Dt, F = G({
1798
+ elementType: N,
1799
+ getSlotProps: c,
1800
+ externalForwardedProps: I,
1801
+ externalSlotProps: d.root,
1802
+ additionalProps: {
1803
+ ref: n
1804
+ },
1805
+ ownerState: {},
1806
+ className: v.root
1807
+ }), J = a.content ?? Lt, Q = G({
1808
+ elementType: J,
1809
+ getSlotProps: b,
1810
+ externalSlotProps: d.content,
1811
+ ownerState: {},
1812
+ className: W(v.content, D.expanded && v.expanded, D.selected && v.selected, D.focused && v.focused, D.disabled && v.disabled, D.editing && v.editing, D.editable && v.editable)
1813
+ }), X = a.iconContainer ?? kt, Z = G({
1814
+ elementType: X,
1815
+ getSlotProps: y,
1816
+ externalSlotProps: d.iconContainer,
1817
+ ownerState: {},
1818
+ className: v.iconContainer
1819
+ }), ie = a.label ?? ho, Y = G({
1820
+ elementType: ie,
1821
+ getSlotProps: L,
1822
+ externalSlotProps: d.label,
1823
+ ownerState: {},
1824
+ className: v.label
1825
+ }), H = a.checkbox ?? Nt, fe = G({
1826
+ elementType: H,
1827
+ getSlotProps: x,
1828
+ externalSlotProps: d.checkbox,
1829
+ ownerState: {},
1830
+ className: v.checkbox
1831
+ }), ae = a.groupTransition ?? void 0, me = G({
1832
+ elementType: ae,
1833
+ getSlotProps: R,
1834
+ externalSlotProps: d.groupTransition,
1835
+ ownerState: {},
1836
+ className: v.groupTransition
1837
+ }), le = a.labelInput ?? mo, ge = G({
1838
+ elementType: le,
1839
+ getSlotProps: V,
1840
+ externalSlotProps: d.labelInput,
1841
+ ownerState: {},
1842
+ className: v.labelInput
1843
+ }), ce = a.dragAndDropOverlay ?? Rt, we = G({
1844
+ elementType: ce,
1845
+ getSlotProps: A,
1846
+ externalSlotProps: d.dragAndDropOverlay,
1847
+ ownerState: {},
1848
+ className: v.dragAndDropOverlay
1849
+ }), T = a.errorIcon ?? Io, $ = G({
1850
+ elementType: T,
1851
+ getSlotProps: w,
1852
+ externalSlotProps: d.errorIcon,
1853
+ ownerState: {},
1854
+ className: v.errorIcon
1855
+ }), j = a.loadingIcon ?? vo, ee = G({
1856
+ elementType: j,
1857
+ getSlotProps: _,
1858
+ externalSlotProps: d.loadingIcon,
1859
+ ownerState: {},
1860
+ className: v.loadingIcon
1861
+ });
1862
+ return /* @__PURE__ */ O(Ke, E({}, p(), {
1863
+ children: /* @__PURE__ */ de(N, E({}, F, {
1864
+ children: [/* @__PURE__ */ de(J, E({}, Q, {
1865
+ children: [/* @__PURE__ */ de(X, E({}, Z, {
1866
+ children: [D.error && /* @__PURE__ */ O(T, E({}, $)), D.loading ? /* @__PURE__ */ O(j, E({}, ee)) : /* @__PURE__ */ O(_t, {
1867
+ status: D,
1868
+ slots: a,
1869
+ slotProps: d
1870
+ })]
1871
+ })), /* @__PURE__ */ O(H, E({}, fe)), D.editing ? /* @__PURE__ */ O(le, E({}, ge)) : /* @__PURE__ */ O(ie, E({}, Y)), /* @__PURE__ */ O(ce, E({}, we))]
1872
+ })), l && /* @__PURE__ */ O(Vt, E({
1873
+ as: ae
1874
+ }, me))]
1875
+ }))
1876
+ }));
1877
+ });
1878
+ process.env.NODE_ENV !== "production" && (Mt.displayName = "TreeItem");
1879
+ process.env.NODE_ENV !== "production" && (Mt.propTypes = {
1880
+ // ----------------------------- Warning --------------------------------
1881
+ // | These PropTypes are generated from the TypeScript type definitions |
1882
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
1883
+ // ----------------------------------------------------------------------
1884
+ /**
1885
+ * The content of the component.
1886
+ */
1887
+ children: m.any,
1888
+ /**
1889
+ * Override or extend the styles applied to the component.
1890
+ */
1891
+ classes: m.object,
1892
+ className: m.string,
1893
+ /**
1894
+ * If `true`, the item is disabled.
1895
+ * @default false
1896
+ */
1897
+ disabled: m.bool,
1898
+ /**
1899
+ * The id attribute of the item. If not provided, it will be generated.
1900
+ */
1901
+ id: m.string,
1902
+ /**
1903
+ * The id of the item.
1904
+ * Must be unique.
1905
+ */
1906
+ itemId: m.string.isRequired,
1907
+ /**
1908
+ * The label of the item.
1909
+ */
1910
+ label: m.node,
1911
+ /**
1912
+ * Callback fired when the item root is blurred.
1913
+ */
1914
+ onBlur: m.func,
1915
+ /**
1916
+ * This prop isn't supported.
1917
+ * Use the `onItemFocus` callback on the tree if you need to monitor an item's focus.
1918
+ */
1919
+ onFocus: Ht,
1920
+ /**
1921
+ * Callback fired when a key is pressed on the keyboard and the tree is in focus.
1922
+ */
1923
+ onKeyDown: m.func,
1924
+ /**
1925
+ * The props used for each component slot.
1926
+ * @default {}
1927
+ */
1928
+ slotProps: m.object,
1929
+ /**
1930
+ * Overridable component slots.
1931
+ * @default {}
1932
+ */
1933
+ slots: m.object,
1934
+ /**
1935
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1936
+ */
1937
+ sx: m.oneOfType([m.arrayOf(m.oneOfType([m.func, m.object, m.bool])), m.func, m.object])
1938
+ });
1939
+ function or(e) {
1940
+ const {
1941
+ id: t,
1942
+ itemId: n,
1943
+ label: o,
1944
+ disabled: r,
1945
+ children: s,
1946
+ itemData: u,
1947
+ iconColor: i = "primary",
1948
+ hasNoIcons: l,
1949
+ ref: a
1950
+ } = e, d = Kt(
1951
+ u == null ? void 0 : u.iconType,
1952
+ u == null ? void 0 : u.customIcon
1953
+ ), {
1954
+ getRootProps: h,
1955
+ getContentProps: I,
1956
+ getLabelProps: p,
1957
+ getGroupTransitionProps: c,
1958
+ getIconContainerProps: b,
1959
+ status: y
1960
+ } = Ot({ id: t, itemId: n, label: o, disabled: r, children: s, rootRef: a }), x = {
1961
+ ...y.selected && { fontWeight: 600 },
1962
+ color: "var(--theme-palette-text-primary)"
1963
+ };
1964
+ return /* @__PURE__ */ O(Ke, { itemId: n, children: /* @__PURE__ */ de(
1965
+ Dt,
1966
+ {
1967
+ ...h(),
1968
+ "data-treeview-item": n || "",
1969
+ "data-treeview-item-label": o || "",
1970
+ sx: Pt,
1971
+ children: [
1972
+ /* @__PURE__ */ de(Lt, { ...I(), style: zt, children: [
1973
+ !l && /* @__PURE__ */ O(kt, { ...b(), sx: Be, children: /* @__PURE__ */ O(d, { color: i, sx: Be }) }),
1974
+ /* @__PURE__ */ O(
1975
+ At,
1976
+ {
1977
+ ...p(),
1978
+ typographyProps: x
1979
+ }
1980
+ ),
1981
+ /* @__PURE__ */ O(en, { sx: jt, children: y.expandable && (y.expanded ? /* @__PURE__ */ O(an, { fontSize: "small" }) : /* @__PURE__ */ O(ln, { fontSize: "small" })) })
1982
+ ] }),
1983
+ s && /* @__PURE__ */ O(
1984
+ Vt,
1985
+ {
1986
+ ...c(),
1987
+ style: y.expanded ? $t : void 0
1988
+ }
1989
+ )
1990
+ ]
1991
+ }
1992
+ ) });
1993
+ }
1994
+ export {
1995
+ Fn as A,
1996
+ Wn as B,
1997
+ ve as C,
1998
+ tr as D,
1999
+ Xn as E,
2000
+ Bn as F,
2001
+ er as G,
2002
+ eo as H,
2003
+ Zn as I,
2004
+ Pe as J,
2005
+ st as K,
2006
+ Kn as L,
2007
+ $n as M,
2008
+ Le as N,
2009
+ $e as O,
2010
+ Ie as P,
2011
+ xe as Q,
2012
+ oe as R,
2013
+ Mt as S,
2014
+ bt as T,
2015
+ cn as U,
2016
+ Jo as V,
2017
+ Qo as W,
2018
+ or as X,
2019
+ Xo as a,
2020
+ yt as b,
2021
+ Uo as c,
2022
+ zn as d,
2023
+ U as e,
2024
+ q as f,
2025
+ tn as g,
2026
+ Yo as h,
2027
+ gt as i,
2028
+ Ae as j,
2029
+ It as k,
2030
+ Zo as l,
2031
+ jn as m,
2032
+ se as n,
2033
+ St as o,
2034
+ rt as p,
2035
+ qn as q,
2036
+ Te as r,
2037
+ mt as s,
2038
+ Yn as t,
2039
+ M as u,
2040
+ Jn as v,
2041
+ nr as w,
2042
+ Un as x,
2043
+ Tt as y,
2044
+ Ho as z
2045
+ };