@smart-factor/gem-ui-components 0.0.56 → 0.0.58

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 (363) hide show
  1. package/dist/{Drawer-D8kHnT0B.js → Drawer-d8461jqd.js} +115 -115
  2. package/dist/SignEditor.js +72298 -0
  3. package/dist/{Stack-Dr1yNuib.js → Stack-ThmeJzqr.js} +65 -65
  4. package/dist/{Tree-B4Bd33fe.js → Tree-D_Zjc1fk.js} +711 -774
  5. package/dist/assets/SignEditor.css +1 -0
  6. package/dist/components/Drawer/index.js +1 -1
  7. package/dist/components/SignEditor/SignEditor.d.ts +8 -0
  8. package/dist/components/SignEditor/SignEditor.stories.d.ts +6 -0
  9. package/dist/components/SignEditor/SignEditor.styles.d.ts +33 -0
  10. package/dist/components/SignEditor/SignEditorCanvas.d.ts +7 -0
  11. package/dist/components/SignEditor/SignEditorCanvasHeader.d.ts +7 -0
  12. package/dist/components/SignEditor/SignEditorContext.d.ts +9 -0
  13. package/dist/components/SignEditor/SignEditorContextProvider.d.ts +7 -0
  14. package/dist/components/SignEditor/SignEditorEditDialog.d.ts +12 -0
  15. package/dist/components/SignEditor/SignEditorImage.d.ts +16 -0
  16. package/dist/components/SignEditor/SignEditorImagesList.d.ts +11 -0
  17. package/dist/components/SignEditor/SignEditorPicker.d.ts +1 -0
  18. package/dist/components/SignEditor/SignEditorPickerSigns.d.ts +1 -0
  19. package/dist/components/SignEditor/SignEditorPickerStencils.d.ts +1 -0
  20. package/dist/components/SignEditor/SignEditorSaveDialog.d.ts +10 -0
  21. package/dist/components/SignEditor/index.d.ts +3 -0
  22. package/dist/components/SignEditor/useIsNameUnique.d.ts +1 -0
  23. package/dist/components/SignEditor/useOnSvgSelected.d.ts +3 -0
  24. package/dist/components/SignEditor/useSaveStencil.d.ts +9 -0
  25. package/dist/components/SignEditor/useSvgMount.d.ts +2 -0
  26. package/dist/components/Tree/index.js +1 -1
  27. package/dist/extensions/ext-connector/ext-connector.js +11 -0
  28. package/dist/extensions/ext-connector/ext-connector.js.map +1 -0
  29. package/dist/extensions/ext-eyedropper/ext-eyedropper.js +11 -0
  30. package/dist/extensions/ext-eyedropper/ext-eyedropper.js.map +1 -0
  31. package/dist/extensions/ext-grid/ext-grid.js +10 -0
  32. package/dist/extensions/ext-grid/ext-grid.js.map +1 -0
  33. package/dist/extensions/ext-helloworld/ext-helloworld.js +10 -0
  34. package/dist/extensions/ext-helloworld/ext-helloworld.js.map +1 -0
  35. package/dist/extensions/ext-layer_view/ext-layer_view.js +9 -0
  36. package/dist/extensions/ext-layer_view/ext-layer_view.js.map +1 -0
  37. package/dist/extensions/ext-markers/ext-markers.js +30 -0
  38. package/dist/extensions/ext-markers/ext-markers.js.map +1 -0
  39. package/dist/extensions/ext-opensave/ext-opensave.js +2 -0
  40. package/dist/extensions/ext-opensave/ext-opensave.js.map +1 -0
  41. package/dist/extensions/ext-overview_window/ext-overview_window.js +11 -0
  42. package/dist/extensions/ext-overview_window/ext-overview_window.js.map +1 -0
  43. package/dist/extensions/ext-panning/ext-panning.js +10 -0
  44. package/dist/extensions/ext-panning/ext-panning.js.map +1 -0
  45. package/dist/extensions/ext-polystar/ext-polystar.js +11 -0
  46. package/dist/extensions/ext-polystar/ext-polystar.js.map +1 -0
  47. package/dist/extensions/ext-shapes/ext-shapes.js +10 -0
  48. package/dist/extensions/ext-shapes/ext-shapes.js.map +1 -0
  49. package/dist/extensions/ext-shapes/shapelib/animal.json +21 -0
  50. package/dist/extensions/ext-shapes/shapelib/arrow.json +28 -0
  51. package/dist/extensions/ext-shapes/shapelib/basic.json +32 -0
  52. package/dist/extensions/ext-shapes/shapelib/dialog_balloon.json +9 -0
  53. package/dist/extensions/ext-shapes/shapelib/electronics.json +20 -0
  54. package/dist/extensions/ext-shapes/shapelib/flowchart.json +25 -0
  55. package/dist/extensions/ext-shapes/shapelib/game.json +13 -0
  56. package/dist/extensions/ext-shapes/shapelib/index.json +18 -0
  57. package/dist/extensions/ext-shapes/shapelib/license-MIT-raphael.txt +12 -0
  58. package/dist/extensions/ext-shapes/shapelib/math.json +9 -0
  59. package/dist/extensions/ext-shapes/shapelib/misc.json +37 -0
  60. package/dist/extensions/ext-shapes/shapelib/music.json +21 -0
  61. package/dist/extensions/ext-shapes/shapelib/object.json +18 -0
  62. package/dist/extensions/ext-shapes/shapelib/raphael_1.json +65 -0
  63. package/dist/extensions/ext-shapes/shapelib/raphael_2.json +64 -0
  64. package/dist/extensions/ext-shapes/shapelib/symbol.json +28 -0
  65. package/dist/extensions/ext-storage/ext-storage.js +23 -0
  66. package/dist/extensions/ext-storage/ext-storage.js.map +1 -0
  67. package/dist/fonts/roadsign-condensed.ttf +0 -0
  68. package/dist/fonts/roadsign-normal.ttf +0 -0
  69. package/dist/licenses.txt +1034 -172
  70. package/dist/main.js +2402 -38744
  71. package/dist/svgedit-assets/images/add_subpath.svg +16 -0
  72. package/dist/svgedit-assets/images/align.svg +5 -0
  73. package/dist/svgedit-assets/images/align_bottom.svg +1 -0
  74. package/dist/svgedit-assets/images/align_center.svg +1 -0
  75. package/dist/svgedit-assets/images/align_distrib_horiz.svg +1 -0
  76. package/dist/svgedit-assets/images/align_distrib_verti.svg +1 -0
  77. package/dist/svgedit-assets/images/align_left.svg +1 -0
  78. package/dist/svgedit-assets/images/align_middle.svg +1 -0
  79. package/dist/svgedit-assets/images/align_right.svg +1 -0
  80. package/dist/svgedit-assets/images/align_top.svg +1 -0
  81. package/dist/svgedit-assets/images/anchor_end.svg +8 -0
  82. package/dist/svgedit-assets/images/anchor_middle.svg +8 -0
  83. package/dist/svgedit-assets/images/anchor_start.svg +8 -0
  84. package/dist/svgedit-assets/images/angle.svg +1 -0
  85. package/dist/svgedit-assets/images/arrow_down.svg +3 -0
  86. package/dist/svgedit-assets/images/arrow_right.svg +3 -0
  87. package/dist/svgedit-assets/images/arrow_right_big.svg +3 -0
  88. package/dist/svgedit-assets/images/blur.svg +1 -0
  89. package/dist/svgedit-assets/images/bold.svg +8 -0
  90. package/dist/svgedit-assets/images/box.svg +3 -0
  91. package/dist/svgedit-assets/images/box_o.svg +3 -0
  92. package/dist/svgedit-assets/images/c_radius.svg +5 -0
  93. package/dist/svgedit-assets/images/cancel.svg +9 -0
  94. package/dist/svgedit-assets/images/circle.svg +1 -0
  95. package/dist/svgedit-assets/images/clone.svg +1 -0
  96. package/dist/svgedit-assets/images/close_path.svg +14 -0
  97. package/dist/svgedit-assets/images/closepath_icons.svg +41 -0
  98. package/dist/svgedit-assets/images/config.svg +1 -0
  99. package/dist/svgedit-assets/images/conn.svg +1 -0
  100. package/dist/svgedit-assets/images/context_menu.svg +9 -0
  101. package/dist/svgedit-assets/images/cursors/circle_cursor.svg +14 -0
  102. package/dist/svgedit-assets/images/cursors/ellipse_cursor.svg +14 -0
  103. package/dist/svgedit-assets/images/cursors/rect_cursor.svg +14 -0
  104. package/dist/svgedit-assets/images/cursors/square_cursor.svg +13 -0
  105. package/dist/svgedit-assets/images/delete.svg +1 -0
  106. package/dist/svgedit-assets/images/docprop.svg +1 -0
  107. package/dist/svgedit-assets/images/docprops.svg +19 -0
  108. package/dist/svgedit-assets/images/editPref.svg +1 -0
  109. package/dist/svgedit-assets/images/edit_foreign.svg +57 -0
  110. package/dist/svgedit-assets/images/ellipse.svg +1 -0
  111. package/dist/svgedit-assets/images/export.svg +1 -0
  112. package/dist/svgedit-assets/images/eye.svg +12 -0
  113. package/dist/svgedit-assets/images/eye_dropper.svg +1 -0
  114. package/dist/svgedit-assets/images/fh_ellipse.svg +1 -0
  115. package/dist/svgedit-assets/images/fh_rect.svg +1 -0
  116. package/dist/svgedit-assets/images/fill.svg +8 -0
  117. package/dist/svgedit-assets/images/fontsize.svg +4 -0
  118. package/dist/svgedit-assets/images/forwardslash.svg +3 -0
  119. package/dist/svgedit-assets/images/globe_link.svg +1 -0
  120. package/dist/svgedit-assets/images/go_down.svg +9 -0
  121. package/dist/svgedit-assets/images/go_up.svg +9 -0
  122. package/dist/svgedit-assets/images/grid.svg +1 -0
  123. package/dist/svgedit-assets/images/group_elements.svg +1 -0
  124. package/dist/svgedit-assets/images/handle.svg +1 -0
  125. package/dist/svgedit-assets/images/height.svg +3 -0
  126. package/dist/svgedit-assets/images/hello_world.svg +11 -0
  127. package/dist/svgedit-assets/images/image.svg +1 -0
  128. package/dist/svgedit-assets/images/imagelib.svg +10 -0
  129. package/dist/svgedit-assets/images/import.svg +10 -0
  130. package/dist/svgedit-assets/images/importImg.svg +1 -0
  131. package/dist/svgedit-assets/images/italic.svg +8 -0
  132. package/dist/svgedit-assets/images/layer_view.svg +6 -0
  133. package/dist/svgedit-assets/images/leftarrow.svg +3 -0
  134. package/dist/svgedit-assets/images/leftarrow_o.svg +3 -0
  135. package/dist/svgedit-assets/images/letter_spacing.svg +17 -0
  136. package/dist/svgedit-assets/images/library.svg +1 -0
  137. package/dist/svgedit-assets/images/linecap_butt.svg +1 -0
  138. package/dist/svgedit-assets/images/linecap_round.svg +1 -0
  139. package/dist/svgedit-assets/images/linecap_square.svg +1 -0
  140. package/dist/svgedit-assets/images/linejoin_bevel.svg +1 -0
  141. package/dist/svgedit-assets/images/linejoin_miter.svg +1 -0
  142. package/dist/svgedit-assets/images/linejoin_round.svg +1 -0
  143. package/dist/svgedit-assets/images/link_controls.svg +7 -0
  144. package/dist/svgedit-assets/images/logo.svg +25 -0
  145. package/dist/svgedit-assets/images/mcircle.svg +3 -0
  146. package/dist/svgedit-assets/images/mcircle_o.svg +3 -0
  147. package/dist/svgedit-assets/images/mkr_markers_dimension.svg +7 -0
  148. package/dist/svgedit-assets/images/mkr_markers_label.svg +5 -0
  149. package/dist/svgedit-assets/images/mkr_markers_off.svg +3 -0
  150. package/dist/svgedit-assets/images/move_bottom.svg +1 -0
  151. package/dist/svgedit-assets/images/move_top.svg +1 -0
  152. package/dist/svgedit-assets/images/netlify-dark.svg +17 -0
  153. package/dist/svgedit-assets/images/new.svg +1 -0
  154. package/dist/svgedit-assets/images/no_color.svg +4 -0
  155. package/dist/svgedit-assets/images/node_clone.svg +8 -0
  156. package/dist/svgedit-assets/images/node_delete.svg +10 -0
  157. package/dist/svgedit-assets/images/nomarker.svg +3 -0
  158. package/dist/svgedit-assets/images/ok.svg +9 -0
  159. package/dist/svgedit-assets/images/opacity.svg +12 -0
  160. package/dist/svgedit-assets/images/open.svg +1 -0
  161. package/dist/svgedit-assets/images/open_path.svg +17 -0
  162. package/dist/svgedit-assets/images/openpath.png +0 -0
  163. package/dist/svgedit-assets/images/panning.svg +1 -0
  164. package/dist/svgedit-assets/images/path.svg +1 -0
  165. package/dist/svgedit-assets/images/pen.svg +1 -0
  166. package/dist/svgedit-assets/images/pencil.svg +1 -0
  167. package/dist/svgedit-assets/images/polygon.svg +1 -0
  168. package/dist/svgedit-assets/images/rect.svg +1 -0
  169. package/dist/svgedit-assets/images/redo.svg +1 -0
  170. package/dist/svgedit-assets/images/reorient.svg +1 -0
  171. package/dist/svgedit-assets/images/reverseslash.svg +3 -0
  172. package/dist/svgedit-assets/images/rightarrow.svg +3 -0
  173. package/dist/svgedit-assets/images/rightarrow_o.svg +3 -0
  174. package/dist/svgedit-assets/images/rotate.svg +4 -0
  175. package/dist/svgedit-assets/images/save.svg +16 -0
  176. package/dist/svgedit-assets/images/saveImg.svg +1 -0
  177. package/dist/svgedit-assets/images/select.svg +1 -0
  178. package/dist/svgedit-assets/images/select_node.svg +4 -0
  179. package/dist/svgedit-assets/images/shapelib.svg +1 -0
  180. package/dist/svgedit-assets/images/source.svg +1 -0
  181. package/dist/svgedit-assets/images/square.svg +1 -0
  182. package/dist/svgedit-assets/images/star.svg +1 -0
  183. package/dist/svgedit-assets/images/star_o.svg +3 -0
  184. package/dist/svgedit-assets/images/stroke.svg +3 -0
  185. package/dist/svgedit-assets/images/svg-edit-home.svg +26 -0
  186. package/dist/svgedit-assets/images/text.svg +1 -0
  187. package/dist/svgedit-assets/images/text_decoration_linethrough.svg +6 -0
  188. package/dist/svgedit-assets/images/text_decoration_overline.svg +6 -0
  189. package/dist/svgedit-assets/images/text_decoration_underline.svg +6 -0
  190. package/dist/svgedit-assets/images/text_length.svg +19 -0
  191. package/dist/svgedit-assets/images/textmarker.svg +3 -0
  192. package/dist/svgedit-assets/images/textmarker_bottom.svg +3 -0
  193. package/dist/svgedit-assets/images/textmarker_top.svg +3 -0
  194. package/dist/svgedit-assets/images/to_path.svg +1 -0
  195. package/dist/svgedit-assets/images/tool_add_subpath.svg +1 -0
  196. package/dist/svgedit-assets/images/tool_foreign.svg +30 -0
  197. package/dist/svgedit-assets/images/tool_imagelib.svg +10 -0
  198. package/dist/svgedit-assets/images/tool_node_clone.svg +1 -0
  199. package/dist/svgedit-assets/images/tool_node_delete.svg +1 -0
  200. package/dist/svgedit-assets/images/tool_node_link.svg +1 -0
  201. package/dist/svgedit-assets/images/tool_openclose_path.svg +1 -0
  202. package/dist/svgedit-assets/images/tool_placemark.svg +11 -0
  203. package/dist/svgedit-assets/images/triangle.svg +3 -0
  204. package/dist/svgedit-assets/images/triangle_o.svg +3 -0
  205. package/dist/svgedit-assets/images/undo.svg +1 -0
  206. package/dist/svgedit-assets/images/ungroup.svg +21 -0
  207. package/dist/svgedit-assets/images/unlink_use.svg +14 -0
  208. package/dist/svgedit-assets/images/verticalslash.svg +3 -0
  209. package/dist/svgedit-assets/images/warning.svg +11 -0
  210. package/dist/svgedit-assets/images/webappfind.svg +23 -0
  211. package/dist/svgedit-assets/images/width.svg +3 -0
  212. package/dist/svgedit-assets/images/wireframe.svg +1 -0
  213. package/dist/svgedit-assets/images/word_spacing.svg +15 -0
  214. package/dist/svgedit-assets/images/xmark.svg +3 -0
  215. package/dist/svgedit-assets/images/zoom.svg +1 -0
  216. package/dist/theme-BzEoBwfH.js +37291 -0
  217. package/dist/useFormControl-Cj8rSR6R.js +68 -0
  218. package/package.json +29 -5
  219. package/dist/components/AccordionSummary/AccordionSummary.d.ts +0 -7
  220. package/dist/components/AccordionSummary/AccordionSummary.stories.d.ts +0 -8
  221. package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +0 -7
  222. package/dist/components/Button/Button.d.ts +0 -8
  223. package/dist/components/Button/Button.stories.d.ts +0 -8
  224. package/dist/components/Button/Button.styles.d.ts +0 -6
  225. package/dist/components/Button/ButtonAdd.d.ts +0 -3
  226. package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +0 -10
  227. package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +0 -7
  228. package/dist/components/Dialog/Dialog.d.ts +0 -3
  229. package/dist/components/Dialog/Dialog.stories.d.ts +0 -7
  230. package/dist/components/Dialog/Dialog.styles.d.ts +0 -11
  231. package/dist/components/Dialog/index.d.ts +0 -2
  232. package/dist/components/Dialog/types.d.ts +0 -9
  233. package/dist/components/Drawer/Drawer.d.ts +0 -15
  234. package/dist/components/Drawer/Drawer.stories.d.ts +0 -8
  235. package/dist/components/Drawer/DrawerContent.d.ts +0 -6
  236. package/dist/components/Drawer/DrawerFooter.d.ts +0 -6
  237. package/dist/components/Drawer/DrawerHeader.d.ts +0 -7
  238. package/dist/components/Drawer/index.d.ts +0 -1
  239. package/dist/components/Dropzone/Dropzone.d.ts +0 -7
  240. package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -9
  241. package/dist/components/Dropzone/Dropzone.styles.d.ts +0 -17
  242. package/dist/components/Dropzone/DropzoneField.d.ts +0 -12
  243. package/dist/components/Dropzone/const.d.ts +0 -12
  244. package/dist/components/Dropzone/index.d.ts +0 -3
  245. package/dist/components/ElementsPicker/ElementsPicker.d.ts +0 -8
  246. package/dist/components/ElementsPicker/ElementsPicker.stories.d.ts +0 -8
  247. package/dist/components/ElementsPicker/ElementsPickerElement.d.ts +0 -9
  248. package/dist/components/ElementsPicker/index.d.ts +0 -2
  249. package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.d.ts +0 -18
  250. package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +0 -13
  251. package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +0 -6
  252. package/dist/components/FormComponents/Autocomplete/Autocomplete.d.ts +0 -4
  253. package/dist/components/FormComponents/Autocomplete/Autocomplete.stories.d.ts +0 -11
  254. package/dist/components/FormComponents/Autocomplete/Autocomplete.styles.d.ts +0 -7
  255. package/dist/components/FormComponents/Autocomplete/index.d.ts +0 -2
  256. package/dist/components/FormComponents/Autocomplete/types.d.ts +0 -27
  257. package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +0 -40
  258. package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +0 -15
  259. package/dist/components/FormComponents/ContextualSearch/ContextualSearch.styles.d.ts +0 -4
  260. package/dist/components/FormComponents/ContextualSearch/ContextualSearchControlled.d.ts +0 -9
  261. package/dist/components/FormComponents/ContextualSearch/ContextualSearchListListbox.d.ts +0 -7
  262. package/dist/components/FormComponents/ContextualSearch/index.d.ts +0 -2
  263. package/dist/components/FormComponents/ContextualSearch/mock.d.ts +0 -13
  264. package/dist/components/FormComponents/DatePicker/DatePicker.d.ts +0 -12
  265. package/dist/components/FormComponents/DatePicker/DatePicker.stories.d.ts +0 -9
  266. package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +0 -7
  267. package/dist/components/FormComponents/DateTimePicker/DateTimePicker.d.ts +0 -12
  268. package/dist/components/FormComponents/DateTimePicker/DateTimePicker.stories.d.ts +0 -9
  269. package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +0 -7
  270. package/dist/components/FormComponents/Input/Input.d.ts +0 -11
  271. package/dist/components/FormComponents/Input/Input.stories.d.ts +0 -11
  272. package/dist/components/FormComponents/Input/Input.styles.d.ts +0 -3
  273. package/dist/components/FormComponents/RadioChips/RadioChips.d.ts +0 -21
  274. package/dist/components/FormComponents/RadioChips/RadioChips.stories.d.ts +0 -9
  275. package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +0 -10
  276. package/dist/components/FormComponents/SearchInput/SearchInput.d.ts +0 -11
  277. package/dist/components/FormComponents/SearchInput/SearchInput.stories.d.ts +0 -9
  278. package/dist/components/FormComponents/SearchInput/SearchInput.styles.d.ts +0 -1
  279. package/dist/components/FormComponents/Select/Select.d.ts +0 -30
  280. package/dist/components/FormComponents/Select/Select.stories.d.ts +0 -11
  281. package/dist/components/FormComponents/Select/Select.styles.d.ts +0 -4
  282. package/dist/components/FormComponents/index.d.ts +0 -9
  283. package/dist/components/Grid/Grid.d.ts +0 -4
  284. package/dist/components/Grid/index.d.ts +0 -2
  285. package/dist/components/Grid/types.d.ts +0 -40
  286. package/dist/components/Grid/useGridInitialState.d.ts +0 -6
  287. package/dist/components/LoadingBackdrop/LoadingBackdrop.d.ts +0 -7
  288. package/dist/components/LoadingBackdrop/LoadingBackdrop.stories.d.ts +0 -7
  289. package/dist/components/LoadingBackdrop/index.d.ts +0 -1
  290. package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +0 -11
  291. package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +0 -7
  292. package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +0 -10
  293. package/dist/components/SimpleAutocomplete/SimpleAutocomplete.d.ts +0 -9
  294. package/dist/components/SimpleAutocomplete/SimpleAutocomplete.stories.d.ts +0 -11
  295. package/dist/components/SimpleAutocomplete/index.d.ts +0 -1
  296. package/dist/components/SimpleInput/SimpleInput.d.ts +0 -6
  297. package/dist/components/SimpleInput/SimpleInput.stories.d.ts +0 -7
  298. package/dist/components/SimpleSelect/SimpleSelect.d.ts +0 -14
  299. package/dist/components/SimpleSelect/SimpleSelect.stories.d.ts +0 -7
  300. package/dist/components/Stepper/Stepper.d.ts +0 -13
  301. package/dist/components/Stepper/Stepper.stories.d.ts +0 -7
  302. package/dist/components/Stepper/Stepper.styles.d.ts +0 -9
  303. package/dist/components/StickyContainer/StickyContainer.d.ts +0 -7
  304. package/dist/components/StickyContainer/StickyContainer.stories.d.ts +0 -7
  305. package/dist/components/StickyContainer/StickyContainer.styles.d.ts +0 -7
  306. package/dist/components/TableComponents/ContextMenu/ContextMenu.d.ts +0 -6
  307. package/dist/components/TableComponents/ContextMenu/ContextMenu.stories.d.ts +0 -7
  308. package/dist/components/TableComponents/ContextMenu/ContextMenu.styles.d.ts +0 -1
  309. package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +0 -7
  310. package/dist/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +0 -8
  311. package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +0 -6
  312. package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/useContextMenuProps.d.ts +0 -3
  313. package/dist/components/TableComponents/ContextMenu/index.d.ts +0 -2
  314. package/dist/components/TableComponents/TableActions/TableActions.d.ts +0 -7
  315. package/dist/components/TableComponents/TableActions/TableActions.stories.d.ts +0 -7
  316. package/dist/components/TableComponents/TableActions/index.d.ts +0 -2
  317. package/dist/components/TableComponents/TableCustomToolbar/TableCustomToolbar.d.ts +0 -10
  318. package/dist/components/TableComponents/TableCustomToolbar/index.d.ts +0 -1
  319. package/dist/components/TableComponents/TableExportButton/TableExportButton.d.ts +0 -9
  320. package/dist/components/TableComponents/TableExportButton/index.d.ts +0 -1
  321. package/dist/components/TableComponents/TableRecord/TableRecord.d.ts +0 -8
  322. package/dist/components/TableComponents/TableRecord/index.d.ts +0 -1
  323. package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +0 -4
  324. package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +0 -13
  325. package/dist/components/TableComponents/TableWithPagination/TableWithPaginationExport.d.ts +0 -0
  326. package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +0 -8
  327. package/dist/components/TableComponents/TableWithPagination/types.d.ts +0 -53
  328. package/dist/components/TableComponents/index.d.ts +0 -5
  329. package/dist/components/TabsPanel/TabsPanel.d.ts +0 -14
  330. package/dist/components/TabsPanel/TabsPanel.stories.d.ts +0 -7
  331. package/dist/components/TabsPanel/TabsPanel.styles.d.ts +0 -8
  332. package/dist/components/Toast/Toast.stories.d.ts +0 -7
  333. package/dist/components/Toast/Toast.styles.d.ts +0 -12
  334. package/dist/components/Toast/ToastContent.d.ts +0 -4
  335. package/dist/components/Toast/errorToast.d.ts +0 -1
  336. package/dist/components/Toast/index.d.ts +0 -2
  337. package/dist/components/Toast/successToast.d.ts +0 -1
  338. package/dist/components/Tree/Tree.d.ts +0 -18
  339. package/dist/components/Tree/Tree.stories.d.ts +0 -7
  340. package/dist/components/Tree/index.d.ts +0 -1
  341. package/dist/consts/data-grid.d.ts +0 -122
  342. package/dist/helpers/columns/getBooleanColumn.d.ts +0 -6
  343. package/dist/helpers/columns/getDateColumn.d.ts +0 -6
  344. package/dist/helpers/columns/getDateTimeColumn.d.ts +0 -6
  345. package/dist/helpers/columns/getNumericColumn.d.ts +0 -6
  346. package/dist/helpers/columns/getStaticColumn.d.ts +0 -6
  347. package/dist/helpers/columns/getStringColumn.d.ts +0 -6
  348. package/dist/helpers/columns/index.d.ts +0 -6
  349. package/dist/helpers/date/formatDate.d.ts +0 -3
  350. package/dist/helpers/date/formatDateTime.d.ts +0 -3
  351. package/dist/helpers/date/index.d.ts +0 -2
  352. package/dist/helpers/index.d.ts +0 -2
  353. package/dist/hooks/index.d.ts +0 -4
  354. package/dist/hooks/useContextMenu.d.ts +0 -8
  355. package/dist/hooks/useDataGridInitialState.d.ts +0 -6
  356. package/dist/hooks/useDataGridState.d.ts +0 -9
  357. package/dist/hooks/useGetFileUrl.d.ts +0 -5
  358. package/dist/hooks/useKeepDefinedValue.d.ts +0 -1
  359. package/dist/hooks/useScrollPosition.d.ts +0 -2
  360. package/dist/providers/GemUIComponentsProvider.d.ts +0 -4
  361. package/dist/providers/ToasterProvider.d.ts +0 -1
  362. package/dist/theme/theme.d.ts +0 -19
  363. package/dist/types/function.d.ts +0 -1
@@ -1,67 +1,13 @@
1
1
  import { jsx as w, jsxs as ve } from "react/jsx-runtime";
2
2
  import * as x from "react";
3
- import { createElement as Ht } from "react";
4
- import { J as Yt, K as Qe, L as Qt, M as Zt, N as en, k as fe, l as me, m as U, _ as D, p as ot, O as tn, T as nn, q as Ne, r as on, Q as rn, h as de, t as Ie, P as r, R as rt, v as ge, x as Ze, U as sn, D as it, f as ln, V as st, a as ue, b as te, n as an, d as cn, g as G, o as dn, E as un, u as pn, B as ce, W as fn, X as lt, Y as ie, A as et, e as mn, F as In, S as gn, H as hn, I as bn } from "./Stack-Dr1yNuib.js";
5
- function yn(e, t = 0, n = 1) {
6
- return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), Yt(e, t, n);
7
- }
8
- function xn(e) {
9
- e = e.slice(1);
10
- const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
11
- let n = e.match(t);
12
- return n && n[0].length === 1 && (n = n.map((o) => o + o)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((o, s) => s < 3 ? parseInt(o, 16) : Math.round(parseInt(o, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
13
- }
14
- function at(e) {
15
- if (e.type)
16
- return e;
17
- if (e.charAt(0) === "#")
18
- return at(xn(e));
19
- const t = e.indexOf("("), n = e.substring(0, t);
20
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1)
21
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
22
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Qe(9, e));
23
- let o = e.substring(t + 1, e.length - 1), s;
24
- if (n === "color") {
25
- if (o = o.split(" "), s = o.shift(), o.length === 4 && o[3].charAt(0) === "/" && (o[3] = o[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(s) === -1)
26
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${s}\` color space.
27
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Qe(10, s));
28
- } else
29
- o = o.split(",");
30
- return o = o.map((d) => parseFloat(d)), {
31
- type: n,
32
- values: o,
33
- colorSpace: s
34
- };
35
- }
36
- function En(e) {
37
- const {
38
- type: t,
39
- colorSpace: n
40
- } = e;
41
- let {
42
- values: o
43
- } = e;
44
- return t.indexOf("rgb") !== -1 ? o = o.map((s, d) => d < 3 ? parseInt(s, 10) : s) : t.indexOf("hsl") !== -1 && (o[1] = `${o[1]}%`, o[2] = `${o[2]}%`), t.indexOf("color") !== -1 ? o = `${n} ${o.join(" ")}` : o = `${o.join(", ")}`, `${t}(${o})`;
45
- }
46
- function X(e, t) {
47
- return e = at(e), t = yn(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, En(e);
48
- }
49
- function Cn({
50
- props: e,
51
- name: t
52
- }) {
53
- return Qt({
54
- props: e,
55
- name: t,
56
- defaultTheme: Zt,
57
- themeId: en
58
- });
59
- }
60
- function Tn(e) {
3
+ import { createElement as Wt } from "react";
4
+ import { p as fe, q as me, r as U, _ as D, v as nt, O as Jt, A as Gt, w as Le, x as Ht, Q as Yt, l as de, y as Ie, P as r, R as ot, z as ge, D as Qe, U as Qt, I as rt, j as Zt, V as it, b as ue, e as te, t as en, h as tn, k as G, o as nn, J as on, g as rn, H as ce, W as sn, X as st, Y as ie, G as Ze, i as ln, K as an, S as cn, M as dn, N as un } from "./Stack-ThmeJzqr.js";
5
+ import { u as pn, a as fn, b as X } from "./useFormControl-Cj8rSR6R.js";
6
+ function mn(e) {
61
7
  return fe("MuiCollapse", e);
62
8
  }
63
9
  me("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
64
- const wn = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], vn = (e) => {
10
+ const In = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], gn = (e) => {
65
11
  const {
66
12
  orientation: t,
67
13
  classes: n
@@ -72,8 +18,8 @@ const wn = ["addEndListener", "children", "className", "collapsedSize", "compone
72
18
  wrapper: ["wrapper", `${t}`],
73
19
  wrapperInner: ["wrapperInner", `${t}`]
74
20
  };
75
- return ge(o, Tn, n);
76
- }, Mn = U("div", {
21
+ return ge(o, mn, n);
22
+ }, hn = U("div", {
77
23
  name: "MuiCollapse",
78
24
  slot: "Root",
79
25
  overridesResolver: (e, t) => {
@@ -100,7 +46,7 @@ const wn = ["addEndListener", "children", "className", "collapsedSize", "compone
100
46
  width: "auto"
101
47
  }), t.state === "exited" && !t.in && t.collapsedSize === "0px" && {
102
48
  visibility: "hidden"
103
- })), Sn = U("div", {
49
+ })), bn = U("div", {
104
50
  name: "MuiCollapse",
105
51
  slot: "Wrapper",
106
52
  overridesResolver: (e, t) => t.wrapper
@@ -113,7 +59,7 @@ const wn = ["addEndListener", "children", "className", "collapsedSize", "compone
113
59
  }, e.orientation === "horizontal" && {
114
60
  width: "auto",
115
61
  height: "100%"
116
- })), Rn = U("div", {
62
+ })), yn = U("div", {
117
63
  name: "MuiCollapse",
118
64
  slot: "WrapperInner",
119
65
  overridesResolver: (e, t) => t.wrapperInner
@@ -124,18 +70,18 @@ const wn = ["addEndListener", "children", "className", "collapsedSize", "compone
124
70
  }, e.orientation === "horizontal" && {
125
71
  width: "auto",
126
72
  height: "100%"
127
- })), Le = /* @__PURE__ */ x.forwardRef(function(t, n) {
128
- const o = ot({
73
+ })), Ne = /* @__PURE__ */ x.forwardRef(function(t, n) {
74
+ const o = nt({
129
75
  props: t,
130
76
  name: "MuiCollapse"
131
77
  }), {
132
- addEndListener: s,
133
- children: d,
78
+ addEndListener: l,
79
+ children: p,
134
80
  className: c,
135
81
  collapsedSize: i = "0px",
136
- component: p,
137
- easing: u,
138
- in: l,
82
+ component: u,
83
+ easing: d,
84
+ in: s,
139
85
  onEnter: a,
140
86
  onEntered: m,
141
87
  onEntering: I,
@@ -144,108 +90,108 @@ const wn = ["addEndListener", "children", "className", "collapsedSize", "compone
144
90
  onExiting: g,
145
91
  orientation: b = "vertical",
146
92
  style: y,
147
- timeout: C = tn.standard,
93
+ timeout: C = Jt.standard,
148
94
  // eslint-disable-next-line react/prop-types
149
- TransitionComponent: k = nn
150
- } = o, T = Ne(o, wn), v = D({}, o, {
95
+ TransitionComponent: k = Gt
96
+ } = o, T = Le(o, In), v = D({}, o, {
151
97
  orientation: b,
152
98
  collapsedSize: i
153
- }), R = vn(v), B = on(), K = rn(), V = x.useRef(null), A = x.useRef(), z = typeof i == "number" ? `${i}px` : i, j = b === "horizontal", q = j ? "width" : "height", N = x.useRef(null), H = de(n, N), L = (M) => (F) => {
154
- if (M) {
155
- const _ = N.current;
156
- F === void 0 ? M(_) : M(_, F);
99
+ }), M = gn(v), B = Ht(), K = Yt(), V = x.useRef(null), F = x.useRef(), _ = typeof i == "number" ? `${i}px` : i, j = b === "horizontal", q = j ? "width" : "height", L = x.useRef(null), H = de(n, L), N = (S) => ($) => {
100
+ if (S) {
101
+ const z = L.current;
102
+ $ === void 0 ? S(z) : S(z, $);
157
103
  }
158
- }, W = () => V.current ? V.current[j ? "clientWidth" : "clientHeight"] : 0, O = L((M, F) => {
159
- V.current && j && (V.current.style.position = "absolute"), M.style[q] = z, a && a(M, F);
160
- }), P = L((M, F) => {
161
- const _ = W();
104
+ }, W = () => V.current ? V.current[j ? "clientWidth" : "clientHeight"] : 0, P = N((S, $) => {
105
+ V.current && j && (V.current.style.position = "absolute"), S.style[q] = _, a && a(S, $);
106
+ }), O = N((S, $) => {
107
+ const z = W();
162
108
  V.current && j && (V.current.style.position = "");
163
109
  const {
164
- duration: $,
110
+ duration: A,
165
111
  easing: Y
166
- } = Ze({
112
+ } = Qe({
167
113
  style: y,
168
114
  timeout: C,
169
- easing: u
115
+ easing: d
170
116
  }, {
171
117
  mode: "enter"
172
118
  });
173
119
  if (C === "auto") {
174
- const xe = B.transitions.getAutoHeightDuration(_);
175
- M.style.transitionDuration = `${xe}ms`, A.current = xe;
120
+ const xe = B.transitions.getAutoHeightDuration(z);
121
+ S.style.transitionDuration = `${xe}ms`, F.current = xe;
176
122
  } else
177
- M.style.transitionDuration = typeof $ == "string" ? $ : `${$}ms`;
178
- M.style[q] = `${_}px`, M.style.transitionTimingFunction = Y, I && I(M, F);
179
- }), ne = L((M, F) => {
180
- M.style[q] = "auto", m && m(M, F);
181
- }), ye = L((M) => {
182
- M.style[q] = `${W()}px`, h && h(M);
183
- }), Re = L(f), ke = L((M) => {
184
- const F = W(), {
185
- duration: _,
186
- easing: $
187
- } = Ze({
123
+ S.style.transitionDuration = typeof A == "string" ? A : `${A}ms`;
124
+ S.style[q] = `${z}px`, S.style.transitionTimingFunction = Y, I && I(S, $);
125
+ }), ne = N((S, $) => {
126
+ S.style[q] = "auto", m && m(S, $);
127
+ }), ye = N((S) => {
128
+ S.style[q] = `${W()}px`, h && h(S);
129
+ }), Me = N(f), ke = N((S) => {
130
+ const $ = W(), {
131
+ duration: z,
132
+ easing: A
133
+ } = Qe({
188
134
  style: y,
189
135
  timeout: C,
190
- easing: u
136
+ easing: d
191
137
  }, {
192
138
  mode: "exit"
193
139
  });
194
140
  if (C === "auto") {
195
- const Y = B.transitions.getAutoHeightDuration(F);
196
- M.style.transitionDuration = `${Y}ms`, A.current = Y;
141
+ const Y = B.transitions.getAutoHeightDuration($);
142
+ S.style.transitionDuration = `${Y}ms`, F.current = Y;
197
143
  } else
198
- M.style.transitionDuration = typeof _ == "string" ? _ : `${_}ms`;
199
- M.style[q] = z, M.style.transitionTimingFunction = $, g && g(M);
144
+ S.style.transitionDuration = typeof z == "string" ? z : `${z}ms`;
145
+ S.style[q] = _, S.style.transitionTimingFunction = A, g && g(S);
200
146
  });
201
147
  return /* @__PURE__ */ w(k, D({
202
- in: l,
203
- onEnter: O,
148
+ in: s,
149
+ onEnter: P,
204
150
  onEntered: ne,
205
- onEntering: P,
151
+ onEntering: O,
206
152
  onExit: ye,
207
- onExited: Re,
153
+ onExited: Me,
208
154
  onExiting: ke,
209
- addEndListener: (M) => {
210
- C === "auto" && K.start(A.current || 0, M), s && s(N.current, M);
155
+ addEndListener: (S) => {
156
+ C === "auto" && K.start(F.current || 0, S), l && l(L.current, S);
211
157
  },
212
- nodeRef: N,
158
+ nodeRef: L,
213
159
  timeout: C === "auto" ? null : C
214
160
  }, T, {
215
- children: (M, F) => /* @__PURE__ */ w(Mn, D({
216
- as: p,
217
- className: Ie(R.root, c, {
218
- entered: R.entered,
219
- exited: !l && z === "0px" && R.hidden
220
- }[M]),
161
+ children: (S, $) => /* @__PURE__ */ w(hn, D({
162
+ as: u,
163
+ className: Ie(M.root, c, {
164
+ entered: M.entered,
165
+ exited: !s && _ === "0px" && M.hidden
166
+ }[S]),
221
167
  style: D({
222
- [j ? "minWidth" : "minHeight"]: z
168
+ [j ? "minWidth" : "minHeight"]: _
223
169
  }, y),
224
170
  ref: H
225
- }, F, {
171
+ }, $, {
226
172
  // `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
227
173
  // that might have been forwarded from the Transition component.
228
174
  ownerState: D({}, v, {
229
- state: M
175
+ state: S
230
176
  }),
231
- children: /* @__PURE__ */ w(Sn, {
177
+ children: /* @__PURE__ */ w(bn, {
232
178
  ownerState: D({}, v, {
233
- state: M
179
+ state: S
234
180
  }),
235
- className: R.wrapper,
181
+ className: M.wrapper,
236
182
  ref: V,
237
- children: /* @__PURE__ */ w(Rn, {
183
+ children: /* @__PURE__ */ w(yn, {
238
184
  ownerState: D({}, v, {
239
- state: M
185
+ state: S
240
186
  }),
241
- className: R.wrapperInner,
242
- children: d
187
+ className: M.wrapperInner,
188
+ children: p
243
189
  })
244
190
  })
245
191
  }))
246
192
  }));
247
193
  });
248
- process.env.NODE_ENV !== "production" && (Le.propTypes = {
194
+ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
249
195
  // ┌────────────────────────────── Warning ──────────────────────────────┐
250
196
  // │ These PropTypes are generated from the TypeScript type definitions. │
251
197
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -277,7 +223,7 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
277
223
  * The component used for the root node.
278
224
  * Either a string to use a HTML element or a component.
279
225
  */
280
- component: rt,
226
+ component: ot,
281
227
  /**
282
228
  * The transition timing function.
283
229
  * You may specify a single easing or a object containing enter and exit values.
@@ -340,28 +286,23 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
340
286
  exit: r.number
341
287
  })])
342
288
  });
343
- Le.muiSupportAuto = !0;
344
- const ct = /* @__PURE__ */ x.createContext(void 0);
345
- process.env.NODE_ENV !== "production" && (ct.displayName = "FormControlContext");
346
- function kn() {
347
- return x.useContext(ct);
348
- }
349
- function On(e) {
289
+ Ne.muiSupportAuto = !0;
290
+ function xn(e) {
350
291
  return fe("PrivateSwitchBase", e);
351
292
  }
352
293
  me("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
353
- const Pn = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], Dn = (e) => {
294
+ const En = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], Cn = (e) => {
354
295
  const {
355
296
  classes: t,
356
297
  checked: n,
357
298
  disabled: o,
358
- edge: s
359
- } = e, d = {
360
- root: ["root", n && "checked", o && "disabled", s && `edge${ue(s)}`],
299
+ edge: l
300
+ } = e, p = {
301
+ root: ["root", n && "checked", o && "disabled", l && `edge${ue(l)}`],
361
302
  input: ["input"]
362
303
  };
363
- return ge(d, On, t);
364
- }, Vn = U(sn)(({
304
+ return ge(p, xn, t);
305
+ }, Tn = U(Qt)(({
365
306
  ownerState: e
366
307
  }) => D({
367
308
  padding: 9,
@@ -370,8 +311,8 @@ const Pn = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
370
311
  marginLeft: e.size === "small" ? -3 : -12
371
312
  }, e.edge === "end" && {
372
313
  marginRight: e.size === "small" ? -3 : -12
373
- })), $n = U("input", {
374
- shouldForwardProp: it
314
+ })), wn = U("input", {
315
+ shouldForwardProp: rt
375
316
  })({
376
317
  cursor: "inherit",
377
318
  position: "absolute",
@@ -383,16 +324,16 @@ const Pn = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
383
324
  margin: 0,
384
325
  padding: 0,
385
326
  zIndex: 1
386
- }), dt = /* @__PURE__ */ x.forwardRef(function(t, n) {
327
+ }), lt = /* @__PURE__ */ x.forwardRef(function(t, n) {
387
328
  const {
388
329
  autoFocus: o,
389
- checked: s,
390
- checkedIcon: d,
330
+ checked: l,
331
+ checkedIcon: p,
391
332
  className: c,
392
333
  defaultChecked: i,
393
- disabled: p,
394
- disableFocusRipple: u = !1,
395
- edge: l = !1,
334
+ disabled: u,
335
+ disableFocusRipple: d = !1,
336
+ edge: s = !1,
396
337
  icon: a,
397
338
  id: m,
398
339
  inputProps: I,
@@ -405,64 +346,64 @@ const Pn = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
405
346
  required: k = !1,
406
347
  tabIndex: T,
407
348
  type: v,
408
- value: R
409
- } = t, B = Ne(t, Pn), [K, V] = ln({
410
- controlled: s,
349
+ value: M
350
+ } = t, B = Le(t, En), [K, V] = Zt({
351
+ controlled: l,
411
352
  default: !!i,
412
353
  name: "SwitchBase",
413
354
  state: "checked"
414
- }), A = kn(), z = (O) => {
415
- y && y(O), A && A.onFocus && A.onFocus(O);
416
- }, j = (O) => {
417
- g && g(O), A && A.onBlur && A.onBlur(O);
418
- }, q = (O) => {
419
- if (O.nativeEvent.defaultPrevented)
355
+ }), F = pn(), _ = (P) => {
356
+ y && y(P), F && F.onFocus && F.onFocus(P);
357
+ }, j = (P) => {
358
+ g && g(P), F && F.onBlur && F.onBlur(P);
359
+ }, q = (P) => {
360
+ if (P.nativeEvent.defaultPrevented)
420
361
  return;
421
- const P = O.target.checked;
422
- V(P), b && b(O, P);
362
+ const O = P.target.checked;
363
+ V(O), b && b(P, O);
423
364
  };
424
- let N = p;
425
- A && typeof N > "u" && (N = A.disabled);
426
- const H = v === "checkbox" || v === "radio", L = D({}, t, {
365
+ let L = u;
366
+ F && typeof L > "u" && (L = F.disabled);
367
+ const H = v === "checkbox" || v === "radio", N = D({}, t, {
427
368
  checked: K,
428
- disabled: N,
429
- disableFocusRipple: u,
430
- edge: l
431
- }), W = Dn(L);
432
- return /* @__PURE__ */ ve(Vn, D({
369
+ disabled: L,
370
+ disableFocusRipple: d,
371
+ edge: s
372
+ }), W = Cn(N);
373
+ return /* @__PURE__ */ ve(Tn, D({
433
374
  component: "span",
434
375
  className: Ie(W.root, c),
435
376
  centerRipple: !0,
436
- focusRipple: !u,
437
- disabled: N,
377
+ focusRipple: !d,
378
+ disabled: L,
438
379
  tabIndex: null,
439
380
  role: void 0,
440
- onFocus: z,
381
+ onFocus: _,
441
382
  onBlur: j,
442
- ownerState: L,
383
+ ownerState: N,
443
384
  ref: n
444
385
  }, B, {
445
- children: [/* @__PURE__ */ w($n, D({
386
+ children: [/* @__PURE__ */ w(wn, D({
446
387
  autoFocus: o,
447
- checked: s,
388
+ checked: l,
448
389
  defaultChecked: i,
449
390
  className: W.input,
450
- disabled: N,
391
+ disabled: L,
451
392
  id: H ? m : void 0,
452
393
  name: f,
453
394
  onChange: q,
454
395
  readOnly: C,
455
396
  ref: h,
456
397
  required: k,
457
- ownerState: L,
398
+ ownerState: N,
458
399
  tabIndex: T,
459
400
  type: v
460
- }, v === "checkbox" && R === void 0 ? {} : {
461
- value: R
462
- }, I)), K ? d : a]
401
+ }, v === "checkbox" && M === void 0 ? {} : {
402
+ value: M
403
+ }, I)), K ? p : a]
463
404
  }));
464
405
  });
465
- process.env.NODE_ENV !== "production" && (dt.propTypes = {
406
+ process.env.NODE_ENV !== "production" && (lt.propTypes = {
466
407
  /**
467
408
  * If `true`, the `input` element is focused during the first mount.
468
409
  */
@@ -519,7 +460,7 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
519
460
  /**
520
461
  * Pass a ref to the `input` element.
521
462
  */
522
- inputRef: st,
463
+ inputRef: it,
523
464
  /*
524
465
  * @ignore
525
466
  */
@@ -565,28 +506,28 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
565
506
  */
566
507
  value: r.any
567
508
  });
568
- const An = te(/* @__PURE__ */ w("path", {
509
+ const vn = te(/* @__PURE__ */ w("path", {
569
510
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
570
- }), "CheckBoxOutlineBlank"), Fn = te(/* @__PURE__ */ w("path", {
511
+ }), "CheckBoxOutlineBlank"), Sn = te(/* @__PURE__ */ w("path", {
571
512
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
572
- }), "CheckBox"), Nn = te(/* @__PURE__ */ w("path", {
513
+ }), "CheckBox"), Rn = te(/* @__PURE__ */ w("path", {
573
514
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
574
515
  }), "IndeterminateCheckBox");
575
- function Ln(e) {
516
+ function Mn(e) {
576
517
  return fe("MuiCheckbox", e);
577
518
  }
578
- const $e = me("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), jn = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], _n = (e) => {
519
+ const Ae = me("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), kn = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], Pn = (e) => {
579
520
  const {
580
521
  classes: t,
581
522
  indeterminate: n,
582
523
  color: o,
583
- size: s
584
- } = e, d = {
585
- root: ["root", n && "indeterminate", `color${ue(o)}`, `size${ue(s)}`]
586
- }, c = ge(d, Ln, t);
524
+ size: l
525
+ } = e, p = {
526
+ root: ["root", n && "indeterminate", `color${ue(o)}`, `size${ue(l)}`]
527
+ }, c = ge(p, Mn, t);
587
528
  return D({}, t, c);
588
- }, Bn = U(dt, {
589
- shouldForwardProp: (e) => it(e) || e === "classes",
529
+ }, On = U(lt, {
530
+ shouldForwardProp: (e) => rt(e) || e === "classes",
590
531
  name: "MuiCheckbox",
591
532
  slot: "Root",
592
533
  overridesResolver: (e, t) => {
@@ -602,48 +543,48 @@ const $e = me("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
602
543
  color: (e.vars || e).palette.text.secondary
603
544
  }, !t.disableRipple && {
604
545
  "&:hover": {
605
- backgroundColor: e.vars ? `rgba(${t.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : an(t.color === "default" ? e.palette.action.active : e.palette[t.color].main, e.palette.action.hoverOpacity),
546
+ backgroundColor: e.vars ? `rgba(${t.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : en(t.color === "default" ? e.palette.action.active : e.palette[t.color].main, e.palette.action.hoverOpacity),
606
547
  // Reset on touch devices, it doesn't add specificity
607
548
  "@media (hover: none)": {
608
549
  backgroundColor: "transparent"
609
550
  }
610
551
  }
611
552
  }, t.color !== "default" && {
612
- [`&.${$e.checked}, &.${$e.indeterminate}`]: {
553
+ [`&.${Ae.checked}, &.${Ae.indeterminate}`]: {
613
554
  color: (e.vars || e).palette[t.color].main
614
555
  },
615
- [`&.${$e.disabled}`]: {
556
+ [`&.${Ae.disabled}`]: {
616
557
  color: (e.vars || e).palette.action.disabled
617
558
  }
618
- })), zn = /* @__PURE__ */ w(Fn, {}), Un = /* @__PURE__ */ w(An, {}), Kn = /* @__PURE__ */ w(Nn, {}), ut = /* @__PURE__ */ x.forwardRef(function(t, n) {
619
- var o, s;
620
- const d = ot({
559
+ })), Dn = /* @__PURE__ */ w(Sn, {}), Vn = /* @__PURE__ */ w(vn, {}), An = /* @__PURE__ */ w(Rn, {}), at = /* @__PURE__ */ x.forwardRef(function(t, n) {
560
+ var o, l;
561
+ const p = nt({
621
562
  props: t,
622
563
  name: "MuiCheckbox"
623
564
  }), {
624
- checkedIcon: c = zn,
565
+ checkedIcon: c = Dn,
625
566
  color: i = "primary",
626
- icon: p = Un,
627
- indeterminate: u = !1,
628
- indeterminateIcon: l = Kn,
567
+ icon: u = Vn,
568
+ indeterminate: d = !1,
569
+ indeterminateIcon: s = An,
629
570
  inputProps: a,
630
571
  size: m = "medium",
631
572
  className: I
632
- } = d, h = Ne(d, jn), f = u ? l : p, g = u ? l : c, b = D({}, d, {
573
+ } = p, h = Le(p, kn), f = d ? s : u, g = d ? s : c, b = D({}, p, {
633
574
  color: i,
634
- indeterminate: u,
575
+ indeterminate: d,
635
576
  size: m
636
- }), y = _n(b);
637
- return /* @__PURE__ */ w(Bn, D({
577
+ }), y = Pn(b);
578
+ return /* @__PURE__ */ w(On, D({
638
579
  type: "checkbox",
639
580
  inputProps: D({
640
- "data-indeterminate": u
581
+ "data-indeterminate": d
641
582
  }, a),
642
583
  icon: /* @__PURE__ */ x.cloneElement(f, {
643
584
  fontSize: (o = f.props.fontSize) != null ? o : m
644
585
  }),
645
586
  checkedIcon: /* @__PURE__ */ x.cloneElement(g, {
646
- fontSize: (s = g.props.fontSize) != null ? s : m
587
+ fontSize: (l = g.props.fontSize) != null ? l : m
647
588
  }),
648
589
  ownerState: b,
649
590
  ref: n,
@@ -652,7 +593,7 @@ const $e = me("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
652
593
  classes: y
653
594
  }));
654
595
  });
655
- process.env.NODE_ENV !== "production" && (ut.propTypes = {
596
+ process.env.NODE_ENV !== "production" && (at.propTypes = {
656
597
  // ┌────────────────────────────── Warning ──────────────────────────────┐
657
598
  // │ These PropTypes are generated from the TypeScript type definitions. │
658
599
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -724,7 +665,7 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
724
665
  /**
725
666
  * Pass a ref to the `input` element.
726
667
  */
727
- inputRef: st,
668
+ inputRef: it,
728
669
  /**
729
670
  * Callback fired when the state is changed.
730
671
  *
@@ -753,9 +694,9 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
753
694
  */
754
695
  value: r.any
755
696
  });
756
- const qn = te(/* @__PURE__ */ w("path", {
697
+ const Fn = te(/* @__PURE__ */ w("path", {
757
698
  d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
758
- }), "Visibility"), Xn = te(/* @__PURE__ */ w("path", {
699
+ }), "Visibility"), $n = te(/* @__PURE__ */ w("path", {
759
700
  d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
760
701
  }), "VisibilityOff");
761
702
  function E() {
@@ -767,70 +708,70 @@ function E() {
767
708
  return e;
768
709
  }, E.apply(null, arguments);
769
710
  }
770
- function pt(e) {
771
- return Cn;
711
+ function ct(e) {
712
+ return fn;
772
713
  }
773
- const tt = /* @__PURE__ */ new Set();
774
- function ft(e, t = "warning") {
714
+ const et = /* @__PURE__ */ new Set();
715
+ function dt(e, t = "warning") {
775
716
  if (process.env.NODE_ENV === "production")
776
717
  return;
777
718
  const n = Array.isArray(e) ? e.join(`
778
719
  `) : e;
779
- tt.has(n) || (tt.add(n), t === "error" ? console.error(n) : console.warn(n));
720
+ et.has(n) || (et.add(n), t === "error" ? console.error(n) : console.warn(n));
780
721
  }
781
- function Wn(e) {
722
+ function Ln(e) {
782
723
  return fe("MuiSimpleTreeView", e);
783
724
  }
784
725
  me("MuiSimpleTreeView", ["root"]);
785
- const Jn = (e, t) => {
786
- const n = x.useRef({}), [o, s] = x.useState(() => {
726
+ const Nn = (e, t) => {
727
+ const n = x.useRef({}), [o, l] = x.useState(() => {
787
728
  const c = {};
788
729
  return e.forEach((i) => {
789
- i.models && Object.entries(i.models).forEach(([p, u]) => {
790
- n.current[p] = {
791
- isControlled: t[p] !== void 0,
792
- getDefaultValue: u.getDefaultValue
793
- }, c[p] = u.getDefaultValue(t);
730
+ i.models && Object.entries(i.models).forEach(([u, d]) => {
731
+ n.current[u] = {
732
+ isControlled: t[u] !== void 0,
733
+ getDefaultValue: d.getDefaultValue
734
+ }, c[u] = d.getDefaultValue(t);
794
735
  });
795
736
  }), c;
796
- }), d = Object.fromEntries(Object.entries(n.current).map(([c, i]) => {
797
- const p = t[c] ?? o[c];
737
+ }), p = Object.fromEntries(Object.entries(n.current).map(([c, i]) => {
738
+ const u = t[c] ?? o[c];
798
739
  return [c, {
799
- value: p,
800
- setControlledValue: (u) => {
801
- i.isControlled || s((l) => E({}, l, {
802
- [c]: u
740
+ value: u,
741
+ setControlledValue: (d) => {
742
+ i.isControlled || l((s) => E({}, s, {
743
+ [c]: d
803
744
  }));
804
745
  }
805
746
  }];
806
747
  }));
807
748
  return process.env.NODE_ENV !== "production" && Object.entries(n.current).forEach(([c, i]) => {
808
- const p = t[c], u = i.getDefaultValue(t);
749
+ const u = t[c], d = i.getDefaultValue(t);
809
750
  x.useEffect(() => {
810
- i.isControlled !== (p !== void 0) && console.error([`MUI X: A component is changing the ${i.isControlled ? "" : "un"}controlled ${c} state of TreeView to be ${i.isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${c} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
751
+ i.isControlled !== (u !== void 0) && console.error([`MUI X: A component is changing the ${i.isControlled ? "" : "un"}controlled ${c} state of TreeView to be ${i.isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${c} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
811
752
  `));
812
- }, [p]);
753
+ }, [u]);
813
754
  const {
814
- current: l
815
- } = x.useRef(u);
755
+ current: s
756
+ } = x.useRef(d);
816
757
  x.useEffect(() => {
817
- !i.isControlled && l !== u && console.error([`MUI X: A component is changing the default ${c} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
758
+ !i.isControlled && s !== d && console.error([`MUI X: A component is changing the default ${c} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
818
759
  `));
819
- }, [JSON.stringify(u)]);
820
- }), d;
760
+ }, [JSON.stringify(d)]);
761
+ }), p;
821
762
  };
822
- class Gn {
763
+ class jn {
823
764
  constructor() {
824
765
  this.maxListeners = 20, this.warnOnce = !1, this.events = {};
825
766
  }
826
767
  on(t, n, o = {}) {
827
- let s = this.events[t];
828
- if (s || (s = {
768
+ let l = this.events[t];
769
+ if (l || (l = {
829
770
  highPriority: /* @__PURE__ */ new Map(),
830
771
  regular: /* @__PURE__ */ new Map()
831
- }, this.events[t] = s), o.isFirst ? s.highPriority.set(n, !0) : s.regular.set(n, !0), process.env.NODE_ENV !== "production") {
832
- const d = s.highPriority.size + s.regular.size;
833
- d > this.maxListeners && !this.warnOnce && (this.warnOnce = !0, console.warn([`Possible EventEmitter memory leak detected. ${d} ${t} listeners added.`].join(`
772
+ }, this.events[t] = l), o.isFirst ? l.highPriority.set(n, !0) : l.regular.set(n, !0), process.env.NODE_ENV !== "production") {
773
+ const p = l.highPriority.size + l.regular.size;
774
+ p > this.maxListeners && !this.warnOnce && (this.warnOnce = !0, console.warn([`Possible EventEmitter memory leak detected. ${p} ${t} listeners added.`].join(`
834
775
  `)));
835
776
  }
836
777
  }
@@ -844,29 +785,29 @@ class Gn {
844
785
  const o = this.events[t];
845
786
  if (!o)
846
787
  return;
847
- const s = Array.from(o.highPriority.keys()), d = Array.from(o.regular.keys());
848
- for (let c = s.length - 1; c >= 0; c -= 1) {
849
- const i = s[c];
788
+ const l = Array.from(o.highPriority.keys()), p = Array.from(o.regular.keys());
789
+ for (let c = l.length - 1; c >= 0; c -= 1) {
790
+ const i = l[c];
850
791
  o.highPriority.has(i) && i.apply(this, n);
851
792
  }
852
- for (let c = 0; c < d.length; c += 1) {
853
- const i = d[c];
793
+ for (let c = 0; c < p.length; c += 1) {
794
+ const i = p[c];
854
795
  o.regular.has(i) && i.apply(this, n);
855
796
  }
856
797
  }
857
798
  once(t, n) {
858
799
  const o = this;
859
- this.on(t, function s(...d) {
860
- o.removeListener(t, s), n.apply(o, d);
800
+ this.on(t, function l(...p) {
801
+ o.removeListener(t, l), n.apply(o, p);
861
802
  });
862
803
  }
863
804
  }
864
- const Hn = (e) => e.isPropagationStopped !== void 0, mt = () => {
865
- const [e] = x.useState(() => new Gn()), t = x.useCallback((...o) => {
866
- const [s, d, c = {}] = o;
867
- c.defaultMuiPrevented = !1, !(Hn(c) && c.isPropagationStopped()) && e.emit(s, d, c);
868
- }, [e]), n = x.useCallback((o, s) => (e.on(o, s), () => {
869
- e.removeListener(o, s);
805
+ const zn = (e) => e.isPropagationStopped !== void 0, ut = () => {
806
+ const [e] = x.useState(() => new jn()), t = x.useCallback((...o) => {
807
+ const [l, p, c = {}] = o;
808
+ c.defaultMuiPrevented = !1, !(zn(c) && c.isPropagationStopped()) && e.emit(l, p, c);
809
+ }, [e]), n = x.useCallback((o, l) => (e.on(o, l), () => {
810
+ e.removeListener(o, l);
870
811
  }), [e]);
871
812
  return {
872
813
  instance: {
@@ -875,8 +816,8 @@ const Hn = (e) => e.isPropagationStopped !== void 0, mt = () => {
875
816
  }
876
817
  };
877
818
  };
878
- mt.params = {};
879
- const It = ({
819
+ ut.params = {};
820
+ const pt = ({
880
821
  plugins: e
881
822
  }) => {
882
823
  const t = new Set(e);
@@ -886,11 +827,11 @@ const It = ({
886
827
  }
887
828
  };
888
829
  };
889
- It.params = {};
890
- const gt = ({
830
+ pt.params = {};
831
+ const ft = ({
891
832
  params: e
892
833
  }) => {
893
- const t = cn(e.id), n = x.useCallback((o, s) => s ?? `${t}-${o}`, [t]);
834
+ const t = tn(e.id), n = x.useCallback((o, l) => l ?? `${t}-${o}`, [t]);
894
835
  return {
895
836
  getRootProps: () => ({
896
837
  id: t
@@ -900,10 +841,10 @@ const gt = ({
900
841
  }
901
842
  };
902
843
  };
903
- gt.params = {
844
+ ft.params = {
904
845
  id: !0
905
846
  };
906
- const Yn = [mt, It, gt];
847
+ const Bn = [ut, pt, ft];
907
848
  function Q(e, t) {
908
849
  if (e == null) return {};
909
850
  var n = {};
@@ -913,154 +854,154 @@ function Q(e, t) {
913
854
  }
914
855
  return n;
915
856
  }
916
- const Qn = ["slots", "slotProps", "apiRef", "experimentalFeatures"], Zn = (e) => {
857
+ const _n = ["slots", "slotProps", "apiRef", "experimentalFeatures"], Un = (e) => {
917
858
  let {
918
859
  props: {
919
860
  slots: t,
920
861
  slotProps: n,
921
862
  apiRef: o,
922
- experimentalFeatures: s
863
+ experimentalFeatures: l
923
864
  },
924
- plugins: d
925
- } = e, c = Q(e.props, Qn);
865
+ plugins: p
866
+ } = e, c = Q(e.props, _n);
926
867
  const i = {};
927
- d.forEach((a) => {
868
+ p.forEach((a) => {
928
869
  Object.assign(i, a.params);
929
870
  });
930
- const p = {}, u = {};
871
+ const u = {}, d = {};
931
872
  Object.keys(c).forEach((a) => {
932
873
  const m = c[a];
933
- i[a] ? p[a] = m : u[a] = m;
874
+ i[a] ? u[a] = m : d[a] = m;
934
875
  });
935
- const l = d.reduce((a, m) => m.getDefaultizedParams ? m.getDefaultizedParams(a) : a, p);
876
+ const s = p.reduce((a, m) => m.getDefaultizedParams ? m.getDefaultizedParams(a) : a, u);
936
877
  return {
937
878
  apiRef: o,
938
- forwardedProps: u,
939
- pluginParams: l,
879
+ forwardedProps: d,
880
+ pluginParams: s,
940
881
  slots: t ?? {},
941
882
  slotProps: n ?? {},
942
- experimentalFeatures: s ?? {}
883
+ experimentalFeatures: l ?? {}
943
884
  };
944
- }, eo = ({
885
+ }, Kn = ({
945
886
  plugins: e,
946
887
  instance: t,
947
888
  publicAPI: n,
948
889
  rootRef: o
949
890
  }) => ({
950
891
  runItemPlugins: (i) => {
951
- let p = null, u = null;
952
- const l = [], a = {};
892
+ let u = null, d = null;
893
+ const s = [], a = {};
953
894
  e.forEach((h) => {
954
895
  if (!h.itemPlugin)
955
896
  return;
956
897
  const f = h.itemPlugin({
957
898
  props: i,
958
- rootRef: p,
959
- contentRef: u
899
+ rootRef: u,
900
+ contentRef: d
960
901
  });
961
- f != null && f.rootRef && (p = f.rootRef), f != null && f.contentRef && (u = f.contentRef), f != null && f.propsEnhancers && (l.push(f.propsEnhancers), Object.keys(f.propsEnhancers).forEach((g) => {
902
+ f != null && f.rootRef && (u = f.rootRef), f != null && f.contentRef && (d = f.contentRef), f != null && f.propsEnhancers && (s.push(f.propsEnhancers), Object.keys(f.propsEnhancers).forEach((g) => {
962
903
  a[g] = !0;
963
904
  }));
964
905
  });
965
906
  const m = (h) => (f) => {
966
907
  const g = {};
967
- return l.forEach((b) => {
908
+ return s.forEach((b) => {
968
909
  const y = b[h];
969
910
  y != null && Object.assign(g, y(f));
970
911
  }), g;
971
912
  }, I = Object.fromEntries(Object.keys(a).map((h) => [h, m(h)]));
972
913
  return {
973
- contentRef: u,
974
- rootRef: p,
914
+ contentRef: d,
915
+ rootRef: u,
975
916
  propsEnhancers: I
976
917
  };
977
918
  },
978
919
  wrapItem: ({
979
920
  itemId: i,
980
- children: p
921
+ children: u
981
922
  }) => {
982
- let u = p;
983
- for (let l = e.length - 1; l >= 0; l -= 1) {
984
- const a = e[l];
985
- a.wrapItem && (u = a.wrapItem({
923
+ let d = u;
924
+ for (let s = e.length - 1; s >= 0; s -= 1) {
925
+ const a = e[s];
926
+ a.wrapItem && (d = a.wrapItem({
986
927
  itemId: i,
987
- children: u,
928
+ children: d,
988
929
  instance: t
989
930
  }));
990
931
  }
991
- return u;
932
+ return d;
992
933
  },
993
934
  wrapRoot: ({
994
935
  children: i
995
936
  }) => {
996
- let p = i;
997
- for (let u = e.length - 1; u >= 0; u -= 1) {
998
- const l = e[u];
999
- l.wrapRoot && (p = l.wrapRoot({
1000
- children: p,
937
+ let u = i;
938
+ for (let d = e.length - 1; d >= 0; d -= 1) {
939
+ const s = e[d];
940
+ s.wrapRoot && (u = s.wrapRoot({
941
+ children: u,
1001
942
  instance: t
1002
943
  }));
1003
944
  }
1004
- return p;
945
+ return u;
1005
946
  },
1006
947
  instance: t,
1007
948
  rootRef: o,
1008
949
  publicAPI: n
1009
950
  });
1010
- function to(e) {
951
+ function qn(e) {
1011
952
  const t = x.useRef({});
1012
953
  return e ? (e.current == null && (e.current = {}), e.current) : t.current;
1013
954
  }
1014
- const no = ({
955
+ const Xn = ({
1015
956
  plugins: e,
1016
957
  rootRef: t,
1017
958
  props: n
1018
959
  }) => {
1019
- const o = [...Yn, ...e], {
1020
- pluginParams: s,
1021
- forwardedProps: d,
960
+ const o = [...Bn, ...e], {
961
+ pluginParams: l,
962
+ forwardedProps: p,
1022
963
  apiRef: c,
1023
964
  experimentalFeatures: i,
1024
- slots: p,
1025
- slotProps: u
1026
- } = Zn({
965
+ slots: u,
966
+ slotProps: d
967
+ } = Un({
1027
968
  plugins: o,
1028
969
  props: n
1029
- }), l = Jn(o, s), m = x.useRef({}).current, I = to(c), h = x.useRef(null), f = de(h, t), g = eo({
970
+ }), s = Nn(o, l), m = x.useRef({}).current, I = qn(c), h = x.useRef(null), f = de(h, t), g = Kn({
1030
971
  plugins: o,
1031
972
  instance: m,
1032
973
  publicAPI: I,
1033
974
  rootRef: h
1034
975
  }), [b, y] = x.useState(() => {
1035
976
  const v = {};
1036
- return o.forEach((R) => {
1037
- R.getInitialState && Object.assign(v, R.getInitialState(s));
977
+ return o.forEach((M) => {
978
+ M.getInitialState && Object.assign(v, M.getInitialState(l));
1038
979
  }), v;
1039
980
  }), C = [], k = (v) => {
1040
- const R = v({
981
+ const M = v({
1041
982
  instance: m,
1042
- params: s,
1043
- slots: p,
1044
- slotProps: u,
983
+ params: l,
984
+ slots: u,
985
+ slotProps: d,
1045
986
  experimentalFeatures: i,
1046
987
  state: b,
1047
988
  setState: y,
1048
989
  rootRef: h,
1049
- models: l,
990
+ models: s,
1050
991
  plugins: o
1051
992
  });
1052
- R.getRootProps && C.push(R.getRootProps), R.publicAPI && Object.assign(I, R.publicAPI), R.instance && Object.assign(m, R.instance), R.contextValue && Object.assign(g, R.contextValue);
993
+ M.getRootProps && C.push(M.getRootProps), M.publicAPI && Object.assign(I, M.publicAPI), M.instance && Object.assign(m, M.instance), M.contextValue && Object.assign(g, M.contextValue);
1053
994
  };
1054
995
  return o.forEach(k), {
1055
996
  getRootProps: (v = {}) => {
1056
- const R = E({
997
+ const M = E({
1057
998
  role: "tree"
1058
- }, d, v, {
999
+ }, p, v, {
1059
1000
  ref: f
1060
1001
  });
1061
1002
  return C.forEach((B) => {
1062
- Object.assign(R, B(v));
1063
- }), R;
1003
+ Object.assign(M, B(v));
1004
+ }), M;
1064
1005
  },
1065
1006
  rootRef: f,
1066
1007
  contextValue: g,
@@ -1068,7 +1009,7 @@ const no = ({
1068
1009
  };
1069
1010
  }, je = /* @__PURE__ */ x.createContext(null);
1070
1011
  process.env.NODE_ENV !== "production" && (je.displayName = "TreeViewContext");
1071
- function oo(e) {
1012
+ function Wn(e) {
1072
1013
  const {
1073
1014
  value: t,
1074
1015
  children: n
@@ -1086,72 +1027,72 @@ const le = () => {
1086
1027
  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(`
1087
1028
  `));
1088
1029
  return e;
1089
- }, ht = (e, t, n) => {
1030
+ }, mt = (e, t, n) => {
1090
1031
  e.$$publishEvent(t, n);
1091
- }, Z = "__TREE_VIEW_ROOT_PARENT_ID__", bt = (e) => {
1032
+ }, Z = "__TREE_VIEW_ROOT_PARENT_ID__", It = (e) => {
1092
1033
  const t = {};
1093
1034
  return e.forEach((n, o) => {
1094
1035
  t[n] = o;
1095
1036
  }), t;
1096
1037
  }, se = /* @__PURE__ */ x.createContext(() => -1);
1097
1038
  process.env.NODE_ENV !== "production" && (se.displayName = "TreeViewItemDepthContext");
1098
- const ro = ["children"], yt = ({
1039
+ const Jn = ["children"], gt = ({
1099
1040
  items: e,
1100
1041
  isItemDisabled: t,
1101
1042
  getItemLabel: n,
1102
1043
  getItemId: o
1103
1044
  }) => {
1104
- const s = {}, d = {}, c = {
1045
+ const l = {}, p = {}, c = {
1105
1046
  [Z]: []
1106
- }, i = (u, l, a) => {
1047
+ }, i = (d, s, a) => {
1107
1048
  var f, g;
1108
- const m = o ? o(u) : u.id;
1049
+ const m = o ? o(d) : d.id;
1109
1050
  if (m == null)
1110
- throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", "An item was provided without id in the `items` prop:", JSON.stringify(u)].join(`
1051
+ throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", "An item was provided without id in the `items` prop:", JSON.stringify(d)].join(`
1111
1052
  `));
1112
- if (s[m] != null)
1053
+ if (l[m] != null)
1113
1054
  throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${m}"`].join(`
1114
1055
  `));
1115
- const I = n ? n(u) : u.label;
1056
+ const I = n ? n(d) : d.label;
1116
1057
  if (I == null)
1117
- throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(u)].join(`
1058
+ throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(d)].join(`
1118
1059
  `));
1119
- s[m] = {
1060
+ l[m] = {
1120
1061
  id: m,
1121
1062
  label: I,
1122
1063
  parentId: a,
1123
1064
  idAttribute: void 0,
1124
- expandable: !!((f = u.children) != null && f.length),
1125
- disabled: t ? t(u) : !1,
1126
- depth: l
1127
- }, d[m] = u;
1065
+ expandable: !!((f = d.children) != null && f.length),
1066
+ disabled: t ? t(d) : !1,
1067
+ depth: s
1068
+ }, p[m] = d;
1128
1069
  const h = a ?? Z;
1129
- c[h] || (c[h] = []), c[h].push(m), (g = u.children) == null || g.forEach((b) => i(b, l + 1, m));
1070
+ c[h] || (c[h] = []), c[h].push(m), (g = d.children) == null || g.forEach((b) => i(b, s + 1, m));
1130
1071
  };
1131
- e.forEach((u) => i(u, 0, null));
1132
- const p = {};
1133
- return Object.keys(c).forEach((u) => {
1134
- p[u] = bt(c[u]);
1072
+ e.forEach((d) => i(d, 0, null));
1073
+ const u = {};
1074
+ return Object.keys(c).forEach((d) => {
1075
+ u[d] = It(c[d]);
1135
1076
  }), {
1136
- itemMetaMap: s,
1137
- itemMap: d,
1077
+ itemMetaMap: l,
1078
+ itemMap: p,
1138
1079
  itemOrderedChildrenIds: c,
1139
- itemChildrenIndexes: p
1080
+ itemChildrenIndexes: u
1140
1081
  };
1141
1082
  }, he = ({
1142
1083
  instance: e,
1143
1084
  params: t,
1144
1085
  state: n,
1145
1086
  setState: o,
1146
- experimentalFeatures: s
1087
+ experimentalFeatures: l
1147
1088
  }) => {
1148
- const d = x.useCallback((b) => n.items.itemMetaMap[b], [n.items.itemMetaMap]), c = x.useCallback((b) => n.items.itemMap[b], [n.items.itemMap]), i = x.useCallback(() => {
1089
+ const p = x.useCallback((b) => n.items.itemMetaMap[b], [n.items.itemMetaMap]), c = x.useCallback((b) => n.items.itemMap[b], [n.items.itemMap]), i = x.useCallback(() => {
1149
1090
  const b = (y) => {
1150
- const C = n.items.itemMap[y], k = Q(C, ro), T = n.items.itemOrderedChildrenIds[y];
1091
+ const C = n.items.itemMap[y], k = Q(C, Jn), T = n.items.itemOrderedChildrenIds[y];
1151
1092
  return T && (k.children = T.map(b)), k;
1152
1093
  };
1153
1094
  return n.items.itemOrderedChildrenIds[Z].map(b);
1154
- }, [n.items.itemMap, n.items.itemOrderedChildrenIds]), p = x.useCallback((b) => {
1095
+ }, [n.items.itemMap, n.items.itemOrderedChildrenIds]), u = x.useCallback((b) => {
1155
1096
  if (b == null)
1156
1097
  return !1;
1157
1098
  let y = e.getItemMeta(b);
@@ -1163,10 +1104,10 @@ const ro = ["children"], yt = ({
1163
1104
  if (y = e.getItemMeta(y.parentId), y.disabled)
1164
1105
  return !0;
1165
1106
  return !1;
1166
- }, [e]), u = x.useCallback((b) => {
1107
+ }, [e]), d = x.useCallback((b) => {
1167
1108
  const y = e.getItemMeta(b).parentId ?? Z;
1168
1109
  return n.items.itemChildrenIndexes[y][b];
1169
- }, [e, n.items.itemChildrenIndexes]), l = x.useCallback((b) => n.items.itemOrderedChildrenIds[b ?? Z] ?? [], [n.items.itemOrderedChildrenIds]), a = (b) => {
1110
+ }, [e, n.items.itemChildrenIndexes]), s = x.useCallback((b) => n.items.itemOrderedChildrenIds[b ?? Z] ?? [], [n.items.itemOrderedChildrenIds]), a = (b) => {
1170
1111
  const y = e.getItemMeta(b);
1171
1112
  return y == null ? null : document.getElementById(e.getTreeItemIdAttribute(b, y.idAttribute));
1172
1113
  }, m = (b) => t.disabledItemsFocusable ? !0 : !e.isItemDisabled(b), I = x.useRef(!1), h = x.useCallback(() => {
@@ -1174,14 +1115,14 @@ const ro = ["children"], yt = ({
1174
1115
  }, []), f = x.useCallback(() => I.current, []);
1175
1116
  return x.useEffect(() => {
1176
1117
  e.areItemUpdatesPrevented() || o((b) => {
1177
- const y = yt({
1118
+ const y = gt({
1178
1119
  items: t.items,
1179
1120
  isItemDisabled: t.isItemDisabled,
1180
1121
  getItemId: t.getItemId,
1181
1122
  getItemLabel: t.getItemLabel
1182
1123
  });
1183
1124
  return Object.values(b.items.itemMetaMap).forEach((C) => {
1184
- y.itemMetaMap[C.id] || ht(e, "removeItem", {
1125
+ y.itemMetaMap[C.id] || mt(e, "removeItem", {
1185
1126
  id: C.id
1186
1127
  });
1187
1128
  }), E({}, b, {
@@ -1198,10 +1139,10 @@ const ro = ["children"], yt = ({
1198
1139
  getItem: c,
1199
1140
  getItemDOMElement: a,
1200
1141
  getItemTree: i,
1201
- getItemOrderedChildrenIds: l
1142
+ getItemOrderedChildrenIds: s
1202
1143
  },
1203
1144
  instance: {
1204
- getItemMeta: d,
1145
+ getItemMeta: p,
1205
1146
  getItem: c,
1206
1147
  getItemTree: i,
1207
1148
  getItemsToRender: () => {
@@ -1217,10 +1158,10 @@ const ro = ["children"], yt = ({
1217
1158
  };
1218
1159
  return n.items.itemOrderedChildrenIds[Z].map(b);
1219
1160
  },
1220
- getItemIndex: u,
1161
+ getItemIndex: d,
1221
1162
  getItemDOMElement: a,
1222
- getItemOrderedChildrenIds: l,
1223
- isItemDisabled: p,
1163
+ getItemOrderedChildrenIds: s,
1164
+ isItemDisabled: u,
1224
1165
  isItemNavigable: m,
1225
1166
  preventItemUpdates: h,
1226
1167
  areItemUpdatesPrevented: f
@@ -1229,13 +1170,13 @@ const ro = ["children"], yt = ({
1229
1170
  items: {
1230
1171
  onItemClick: t.onItemClick,
1231
1172
  disabledItemsFocusable: t.disabledItemsFocusable,
1232
- indentationAtItemLevel: s.indentationAtItemLevel ?? !1
1173
+ indentationAtItemLevel: l.indentationAtItemLevel ?? !1
1233
1174
  }
1234
1175
  }
1235
1176
  };
1236
1177
  };
1237
1178
  he.getInitialState = (e) => ({
1238
- items: yt({
1179
+ items: gt({
1239
1180
  items: e.items,
1240
1181
  isItemDisabled: e.isItemDisabled,
1241
1182
  getItemId: e.getItemId,
@@ -1265,7 +1206,7 @@ he.params = {
1265
1206
  onItemClick: !0,
1266
1207
  itemChildrenIndentation: !0
1267
1208
  };
1268
- const Me = ({
1209
+ const Se = ({
1269
1210
  instance: e,
1270
1211
  params: t,
1271
1212
  models: n
@@ -1275,76 +1216,76 @@ const Me = ({
1275
1216
  return n.expandedItems.value.forEach((m) => {
1276
1217
  a.set(m, !0);
1277
1218
  }), a;
1278
- }, [n.expandedItems.value]), s = (a, m) => {
1219
+ }, [n.expandedItems.value]), l = (a, m) => {
1279
1220
  var I;
1280
1221
  (I = t.onExpandedItemsChange) == null || I.call(t, a, m), n.expandedItems.setControlledValue(m);
1281
- }, d = x.useCallback((a) => o.has(a), [o]), c = x.useCallback((a) => {
1222
+ }, p = x.useCallback((a) => o.has(a), [o]), c = x.useCallback((a) => {
1282
1223
  var m;
1283
1224
  return !!((m = e.getItemMeta(a)) != null && m.expandable);
1284
1225
  }, [e]), i = G((a, m) => {
1285
1226
  const I = e.isItemExpanded(m);
1286
1227
  e.setItemExpansion(a, m, !I);
1287
- }), p = G((a, m, I) => {
1228
+ }), u = G((a, m, I) => {
1288
1229
  if (e.isItemExpanded(m) === I)
1289
1230
  return;
1290
1231
  let f;
1291
- I ? f = [m].concat(n.expandedItems.value) : f = n.expandedItems.value.filter((g) => g !== m), t.onItemExpansionToggle && t.onItemExpansionToggle(a, m, I), s(a, f);
1292
- }), u = (a, m) => {
1232
+ I ? f = [m].concat(n.expandedItems.value) : f = n.expandedItems.value.filter((g) => g !== m), t.onItemExpansionToggle && t.onItemExpansionToggle(a, m, I), l(a, f);
1233
+ }), d = (a, m) => {
1293
1234
  const I = e.getItemMeta(m), f = e.getItemOrderedChildrenIds(I.parentId).filter((b) => e.isItemExpandable(b) && !e.isItemExpanded(b)), g = n.expandedItems.value.concat(f);
1294
1235
  f.length > 0 && (t.onItemExpansionToggle && f.forEach((b) => {
1295
1236
  t.onItemExpansionToggle(a, b, !0);
1296
- }), s(a, g));
1297
- }, l = x.useMemo(() => t.expansionTrigger ? t.expansionTrigger : e.isTreeViewEditable ? "iconContainer" : "content", [t.expansionTrigger, e.isTreeViewEditable]);
1237
+ }), l(a, g));
1238
+ }, s = x.useMemo(() => t.expansionTrigger ? t.expansionTrigger : e.isTreeViewEditable ? "iconContainer" : "content", [t.expansionTrigger, e.isTreeViewEditable]);
1298
1239
  return {
1299
1240
  publicAPI: {
1300
- setItemExpansion: p
1241
+ setItemExpansion: u
1301
1242
  },
1302
1243
  instance: {
1303
- isItemExpanded: d,
1244
+ isItemExpanded: p,
1304
1245
  isItemExpandable: c,
1305
- setItemExpansion: p,
1246
+ setItemExpansion: u,
1306
1247
  toggleItemExpansion: i,
1307
- expandAllSiblings: u
1248
+ expandAllSiblings: d
1308
1249
  },
1309
1250
  contextValue: {
1310
1251
  expansion: {
1311
- expansionTrigger: l
1252
+ expansionTrigger: s
1312
1253
  }
1313
1254
  }
1314
1255
  };
1315
1256
  };
1316
- Me.models = {
1257
+ Se.models = {
1317
1258
  expandedItems: {
1318
1259
  getDefaultValue: (e) => e.defaultExpandedItems
1319
1260
  }
1320
1261
  };
1321
- const io = [];
1322
- Me.getDefaultizedParams = (e) => E({}, e, {
1323
- defaultExpandedItems: e.defaultExpandedItems ?? io
1262
+ const Gn = [];
1263
+ Se.getDefaultizedParams = (e) => E({}, e, {
1264
+ defaultExpandedItems: e.defaultExpandedItems ?? Gn
1324
1265
  });
1325
- Me.params = {
1266
+ Se.params = {
1326
1267
  expandedItems: !0,
1327
1268
  defaultExpandedItems: !0,
1328
1269
  onExpandedItemsChange: !0,
1329
1270
  onItemExpansionToggle: !0,
1330
1271
  expansionTrigger: !0
1331
1272
  };
1332
- const xt = (e, t) => {
1273
+ const ht = (e, t) => {
1333
1274
  let n = t.length - 1;
1334
1275
  for (; n >= 0 && !e.isItemNavigable(t[n]); )
1335
1276
  n -= 1;
1336
1277
  if (n !== -1)
1337
1278
  return t[n];
1338
- }, Et = (e, t) => {
1339
- const n = e.getItemMeta(t), o = e.getItemOrderedChildrenIds(n.parentId), s = e.getItemIndex(t);
1340
- if (s === 0)
1279
+ }, bt = (e, t) => {
1280
+ const n = e.getItemMeta(t), o = e.getItemOrderedChildrenIds(n.parentId), l = e.getItemIndex(t);
1281
+ if (l === 0)
1341
1282
  return n.parentId;
1342
- let d = s - 1;
1343
- for (; !e.isItemNavigable(o[d]) && d >= 0; )
1344
- d -= 1;
1345
- if (d === -1)
1346
- return n.parentId == null ? null : Et(e, n.parentId);
1347
- let c = o[d], i = xt(e, e.getItemOrderedChildrenIds(c));
1283
+ let p = l - 1;
1284
+ for (; !e.isItemNavigable(o[p]) && p >= 0; )
1285
+ p -= 1;
1286
+ if (p === -1)
1287
+ return n.parentId == null ? null : bt(e, n.parentId);
1288
+ let c = o[p], i = ht(e, e.getItemOrderedChildrenIds(c));
1348
1289
  for (; e.isItemExpanded(c) && i != null; )
1349
1290
  c = i, i = e.getItemOrderedChildrenIds(c).find(e.isItemNavigable);
1350
1291
  return c;
@@ -1356,72 +1297,72 @@ const xt = (e, t) => {
1356
1297
  }
1357
1298
  let n = e.getItemMeta(t);
1358
1299
  for (; n != null; ) {
1359
- const o = e.getItemOrderedChildrenIds(n.parentId), s = e.getItemIndex(n.id);
1360
- if (s < o.length - 1) {
1361
- let d = s + 1;
1362
- for (; !e.isItemNavigable(o[d]) && d < o.length - 1; )
1363
- d += 1;
1364
- if (e.isItemNavigable(o[d]))
1365
- return o[d];
1300
+ const o = e.getItemOrderedChildrenIds(n.parentId), l = e.getItemIndex(n.id);
1301
+ if (l < o.length - 1) {
1302
+ let p = l + 1;
1303
+ for (; !e.isItemNavigable(o[p]) && p < o.length - 1; )
1304
+ p += 1;
1305
+ if (e.isItemNavigable(o[p]))
1306
+ return o[p];
1366
1307
  }
1367
1308
  n = e.getItemMeta(n.parentId);
1368
1309
  }
1369
1310
  return null;
1370
- }, Ct = (e) => {
1311
+ }, yt = (e) => {
1371
1312
  let t = null;
1372
1313
  for (; t == null || e.isItemExpanded(t); ) {
1373
- const n = e.getItemOrderedChildrenIds(t), o = xt(e, n);
1314
+ const n = e.getItemOrderedChildrenIds(t), o = ht(e, n);
1374
1315
  if (o == null)
1375
1316
  return t;
1376
1317
  t = o;
1377
1318
  }
1378
1319
  return t;
1379
- }, pe = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), Tt = (e, t, n) => {
1320
+ }, pe = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), xt = (e, t, n) => {
1380
1321
  if (t === n)
1381
1322
  return [t, n];
1382
- const o = e.getItemMeta(t), s = e.getItemMeta(n);
1383
- if (o.parentId === s.id || s.parentId === o.id)
1384
- return s.parentId === o.id ? [o.id, s.id] : [s.id, o.id];
1385
- const d = [o.id], c = [s.id];
1386
- let i = o.parentId, p = s.parentId, u = c.indexOf(i) !== -1, l = d.indexOf(p) !== -1, a = !0, m = !0;
1387
- for (; !l && !u; )
1388
- a && (d.push(i), u = c.indexOf(i) !== -1, a = i !== null, !u && a && (i = e.getItemMeta(i).parentId)), m && !u && (c.push(p), l = d.indexOf(p) !== -1, m = p !== null, !l && m && (p = e.getItemMeta(p).parentId));
1389
- const I = u ? i : p, h = e.getItemOrderedChildrenIds(I), f = d[d.indexOf(I) - 1], g = c[c.indexOf(I) - 1];
1323
+ const o = e.getItemMeta(t), l = e.getItemMeta(n);
1324
+ if (o.parentId === l.id || l.parentId === o.id)
1325
+ return l.parentId === o.id ? [o.id, l.id] : [l.id, o.id];
1326
+ const p = [o.id], c = [l.id];
1327
+ let i = o.parentId, u = l.parentId, d = c.indexOf(i) !== -1, s = p.indexOf(u) !== -1, a = !0, m = !0;
1328
+ for (; !s && !d; )
1329
+ a && (p.push(i), d = c.indexOf(i) !== -1, a = i !== null, !d && a && (i = e.getItemMeta(i).parentId)), m && !d && (c.push(u), s = p.indexOf(u) !== -1, m = u !== null, !s && m && (u = e.getItemMeta(u).parentId));
1330
+ const I = d ? i : u, h = e.getItemOrderedChildrenIds(I), f = p[p.indexOf(I) - 1], g = c[c.indexOf(I) - 1];
1390
1331
  return h.indexOf(f) < h.indexOf(g) ? [t, n] : [n, t];
1391
- }, so = (e, t, n) => {
1392
- const o = (p) => {
1393
- if (e.isItemExpandable(p) && e.isItemExpanded(p))
1394
- return e.getItemOrderedChildrenIds(p)[0];
1395
- let u = e.getItemMeta(p);
1396
- for (; u != null; ) {
1397
- const l = e.getItemOrderedChildrenIds(u.parentId), a = e.getItemIndex(u.id);
1398
- if (a < l.length - 1)
1399
- return l[a + 1];
1400
- u = e.getItemMeta(u.parentId);
1332
+ }, Hn = (e, t, n) => {
1333
+ const o = (u) => {
1334
+ if (e.isItemExpandable(u) && e.isItemExpanded(u))
1335
+ return e.getItemOrderedChildrenIds(u)[0];
1336
+ let d = e.getItemMeta(u);
1337
+ for (; d != null; ) {
1338
+ const s = e.getItemOrderedChildrenIds(d.parentId), a = e.getItemIndex(d.id);
1339
+ if (a < s.length - 1)
1340
+ return s[a + 1];
1341
+ d = e.getItemMeta(d.parentId);
1401
1342
  }
1402
1343
  throw new Error("Invalid range");
1403
- }, [s, d] = Tt(e, t, n), c = [s];
1404
- let i = s;
1405
- for (; i !== d; )
1344
+ }, [l, p] = xt(e, t, n), c = [l];
1345
+ let i = l;
1346
+ for (; i !== p; )
1406
1347
  i = o(i), e.isItemDisabled(i) || c.push(i);
1407
1348
  return c;
1408
- }, lo = (e) => {
1349
+ }, Yn = (e) => {
1409
1350
  let t = pe(e);
1410
1351
  const n = [];
1411
1352
  for (; t != null; )
1412
1353
  n.push(t), t = Ce(e, t);
1413
1354
  return n;
1414
- }, Fe = (e, t) => t !== e.closest('*[role="treeitem"]'), Te = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Ae = (e) => {
1355
+ }, $e = (e, t) => t !== e.closest('*[role="treeitem"]'), Te = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Fe = (e) => {
1415
1356
  const t = {};
1416
1357
  return e.forEach((n) => {
1417
1358
  t[n] = !0;
1418
1359
  }), t;
1419
- }, Se = ({
1360
+ }, Re = ({
1420
1361
  instance: e,
1421
1362
  params: t,
1422
1363
  models: n
1423
1364
  }) => {
1424
- const o = x.useRef(null), s = x.useRef({}), d = x.useMemo(() => {
1365
+ const o = x.useRef(null), l = x.useRef({}), p = x.useMemo(() => {
1425
1366
  const f = /* @__PURE__ */ new Map();
1426
1367
  return Array.isArray(n.selectedItems.value) ? n.selectedItems.value.forEach((g) => {
1427
1368
  f.set(g, !0);
@@ -1437,7 +1378,7 @@ const xt = (e, t) => {
1437
1378
  });
1438
1379
  } else g !== n.selectedItems.value && (n.selectedItems.value != null && t.onItemSelectionToggle(f, n.selectedItems.value, !1), g != null && t.onItemSelectionToggle(f, g, !0));
1439
1380
  t.onSelectedItemsChange && t.onSelectedItemsChange(f, g), n.selectedItems.setControlledValue(g);
1440
- }, i = (f) => d.has(f), p = ({
1381
+ }, i = (f) => p.has(f), u = ({
1441
1382
  event: f,
1442
1383
  itemId: g,
1443
1384
  keepExistingSelection: b = !1,
@@ -1451,51 +1392,51 @@ const xt = (e, t) => {
1451
1392
  T && (y === !1 || y == null) ? C = k.filter((v) => v !== g) : !T && (y === !0 || y == null) ? C = [g].concat(k) : C = k;
1452
1393
  } else
1453
1394
  y === !1 || y == null && e.isItemSelected(g) ? C = t.multiSelect ? [] : null : C = t.multiSelect ? [g] : g;
1454
- c(f, C), o.current = g, s.current = {};
1455
- }, u = (f, [g, b]) => {
1395
+ c(f, C), o.current = g, l.current = {};
1396
+ }, d = (f, [g, b]) => {
1456
1397
  if (t.disableSelection || !t.multiSelect)
1457
1398
  return;
1458
1399
  let y = Te(n.selectedItems.value).slice();
1459
- Object.keys(s.current).length > 0 && (y = y.filter((v) => !s.current[v]));
1460
- const C = Ae(y), k = so(e, g, b), T = k.filter((v) => !C[v]);
1461
- y = y.concat(T), c(f, y), s.current = Ae(k);
1400
+ Object.keys(l.current).length > 0 && (y = y.filter((v) => !l.current[v]));
1401
+ const C = Fe(y), k = Hn(e, g, b), T = k.filter((v) => !C[v]);
1402
+ y = y.concat(T), c(f, y), l.current = Fe(k);
1462
1403
  };
1463
1404
  return {
1464
1405
  getRootProps: () => ({
1465
1406
  "aria-multiselectable": t.multiSelect
1466
1407
  }),
1467
1408
  publicAPI: {
1468
- selectItem: p
1409
+ selectItem: u
1469
1410
  },
1470
1411
  instance: {
1471
1412
  isItemSelected: i,
1472
- selectItem: p,
1413
+ selectItem: u,
1473
1414
  selectAllNavigableItems: (f) => {
1474
1415
  if (t.disableSelection || !t.multiSelect)
1475
1416
  return;
1476
- const g = lo(e);
1477
- c(f, g), s.current = Ae(g);
1417
+ const g = Yn(e);
1418
+ c(f, g), l.current = Fe(g);
1478
1419
  },
1479
1420
  expandSelectionRange: (f, g) => {
1480
1421
  if (o.current != null) {
1481
- const [b, y] = Tt(e, g, o.current);
1482
- u(f, [b, y]);
1422
+ const [b, y] = xt(e, g, o.current);
1423
+ d(f, [b, y]);
1483
1424
  }
1484
1425
  },
1485
1426
  selectRangeFromStartToItem: (f, g) => {
1486
- u(f, [pe(e), g]);
1427
+ d(f, [pe(e), g]);
1487
1428
  },
1488
1429
  selectRangeFromItemToEnd: (f, g) => {
1489
- u(f, [g, Ct(e)]);
1430
+ d(f, [g, yt(e)]);
1490
1431
  },
1491
1432
  selectItemFromArrowNavigation: (f, g, b) => {
1492
1433
  if (t.disableSelection || !t.multiSelect)
1493
1434
  return;
1494
1435
  let y = Te(n.selectedItems.value).slice();
1495
- Object.keys(s.current).length === 0 ? (y.push(b), s.current = {
1436
+ Object.keys(l.current).length === 0 ? (y.push(b), l.current = {
1496
1437
  [g]: !0,
1497
1438
  [b]: !0
1498
- }) : (s.current[g] || (s.current = {}), s.current[b] ? (y = y.filter((C) => C !== g), delete s.current[g]) : (y.push(b), s.current[b] = !0)), c(f, y);
1439
+ }) : (l.current[g] || (l.current = {}), l.current[b] ? (y = y.filter((C) => C !== g), delete l.current[g]) : (y.push(b), l.current[b] = !0)), c(f, y);
1499
1440
  }
1500
1441
  },
1501
1442
  contextValue: {
@@ -1507,19 +1448,19 @@ const xt = (e, t) => {
1507
1448
  }
1508
1449
  };
1509
1450
  };
1510
- Se.models = {
1451
+ Re.models = {
1511
1452
  selectedItems: {
1512
1453
  getDefaultValue: (e) => e.defaultSelectedItems
1513
1454
  }
1514
1455
  };
1515
- const ao = [];
1516
- Se.getDefaultizedParams = (e) => E({}, e, {
1456
+ const Qn = [];
1457
+ Re.getDefaultizedParams = (e) => E({}, e, {
1517
1458
  disableSelection: e.disableSelection ?? !1,
1518
1459
  multiSelect: e.multiSelect ?? !1,
1519
1460
  checkboxSelection: e.checkboxSelection ?? !1,
1520
- defaultSelectedItems: e.defaultSelectedItems ?? (e.multiSelect ? ao : null)
1461
+ defaultSelectedItems: e.defaultSelectedItems ?? (e.multiSelect ? Qn : null)
1521
1462
  });
1522
- Se.params = {
1463
+ Re.params = {
1523
1464
  disableSelection: !0,
1524
1465
  multiSelect: !0,
1525
1466
  checkboxSelection: !0,
@@ -1528,17 +1469,17 @@ Se.params = {
1528
1469
  onSelectedItemsChange: !0,
1529
1470
  onItemSelectionToggle: !0
1530
1471
  };
1531
- const nt = 1e3;
1532
- class co {
1533
- constructor(t = nt) {
1534
- this.timeouts = /* @__PURE__ */ new Map(), this.cleanupTimeout = nt, this.cleanupTimeout = t;
1472
+ const tt = 1e3;
1473
+ class Zn {
1474
+ constructor(t = tt) {
1475
+ this.timeouts = /* @__PURE__ */ new Map(), this.cleanupTimeout = tt, this.cleanupTimeout = t;
1535
1476
  }
1536
1477
  register(t, n, o) {
1537
1478
  this.timeouts || (this.timeouts = /* @__PURE__ */ new Map());
1538
- const s = setTimeout(() => {
1479
+ const l = setTimeout(() => {
1539
1480
  typeof n == "function" && n(), this.timeouts.delete(o.cleanupToken);
1540
1481
  }, this.cleanupTimeout);
1541
- this.timeouts.set(o.cleanupToken, s);
1482
+ this.timeouts.set(o.cleanupToken, l);
1542
1483
  }
1543
1484
  unregister(t) {
1544
1485
  const n = this.timeouts.get(t.cleanupToken);
@@ -1552,7 +1493,7 @@ class co {
1552
1493
  }), this.timeouts = void 0);
1553
1494
  }
1554
1495
  }
1555
- class uo {
1496
+ class eo {
1556
1497
  constructor() {
1557
1498
  this.registry = new FinalizationRegistry((t) => {
1558
1499
  typeof t == "function" && t();
@@ -1568,85 +1509,85 @@ class uo {
1568
1509
  reset() {
1569
1510
  }
1570
1511
  }
1571
- class po {
1512
+ class to {
1572
1513
  }
1573
- function fo(e) {
1514
+ function no(e) {
1574
1515
  let t = 0;
1575
- return function(o, s, d) {
1576
- e.registry === null && (e.registry = typeof FinalizationRegistry < "u" ? new uo() : new co());
1577
- const [c] = x.useState(new po()), i = x.useRef(null), p = x.useRef();
1578
- p.current = d;
1579
- const u = x.useRef(null);
1580
- if (!i.current && p.current) {
1581
- const l = (a, m) => {
1516
+ return function(o, l, p) {
1517
+ e.registry === null && (e.registry = typeof FinalizationRegistry < "u" ? new eo() : new Zn());
1518
+ const [c] = x.useState(new to()), i = x.useRef(null), u = x.useRef();
1519
+ u.current = p;
1520
+ const d = x.useRef(null);
1521
+ if (!i.current && u.current) {
1522
+ const s = (a, m) => {
1582
1523
  var I;
1583
- m.defaultMuiPrevented || (I = p.current) == null || I.call(p, a, m);
1524
+ m.defaultMuiPrevented || (I = u.current) == null || I.call(u, a, m);
1584
1525
  };
1585
- i.current = o.$$subscribeEvent(s, l), t += 1, u.current = {
1526
+ i.current = o.$$subscribeEvent(l, s), t += 1, d.current = {
1586
1527
  cleanupToken: t
1587
1528
  }, e.registry.register(
1588
1529
  c,
1589
1530
  // The callback below will be called once this reference stops being retained
1590
1531
  () => {
1591
1532
  var a;
1592
- (a = i.current) == null || a.call(i), i.current = null, u.current = null;
1533
+ (a = i.current) == null || a.call(i), i.current = null, d.current = null;
1593
1534
  },
1594
- u.current
1535
+ d.current
1595
1536
  );
1596
- } else !p.current && i.current && (i.current(), i.current = null, u.current && (e.registry.unregister(u.current), u.current = null));
1537
+ } else !u.current && i.current && (i.current(), i.current = null, d.current && (e.registry.unregister(d.current), d.current = null));
1597
1538
  x.useEffect(() => {
1598
- if (!i.current && p.current) {
1599
- const l = (a, m) => {
1539
+ if (!i.current && u.current) {
1540
+ const s = (a, m) => {
1600
1541
  var I;
1601
- m.defaultMuiPrevented || (I = p.current) == null || I.call(p, a, m);
1542
+ m.defaultMuiPrevented || (I = u.current) == null || I.call(u, a, m);
1602
1543
  };
1603
- i.current = o.$$subscribeEvent(s, l);
1544
+ i.current = o.$$subscribeEvent(l, s);
1604
1545
  }
1605
- return u.current && e.registry && (e.registry.unregister(u.current), u.current = null), () => {
1606
- var l;
1607
- (l = i.current) == null || l.call(i), i.current = null;
1546
+ return d.current && e.registry && (e.registry.unregister(d.current), d.current = null), () => {
1547
+ var s;
1548
+ (s = i.current) == null || s.call(i), i.current = null;
1608
1549
  };
1609
- }, [o, s]);
1550
+ }, [o, l]);
1610
1551
  };
1611
1552
  }
1612
- const mo = {
1553
+ const oo = {
1613
1554
  registry: null
1614
- }, Io = fo(mo), wt = (e = document) => {
1555
+ }, ro = no(oo), Et = (e = document) => {
1615
1556
  const t = e.activeElement;
1616
- return t ? t.shadowRoot ? wt(t.shadowRoot) : t : null;
1557
+ return t ? t.shadowRoot ? Et(t.shadowRoot) : t : null;
1617
1558
  };
1618
- function go(e) {
1559
+ function io(e) {
1619
1560
  return e.replace(/["\\]/g, "\\$&");
1620
1561
  }
1621
- const ho = (e, t) => {
1562
+ const so = (e, t) => {
1622
1563
  let n = Te(t).find((o) => {
1623
1564
  if (!e.isItemNavigable(o))
1624
1565
  return !1;
1625
- const s = e.getItemMeta(o);
1626
- return s && (s.parentId == null || e.isItemExpanded(s.parentId));
1566
+ const l = e.getItemMeta(o);
1567
+ return l && (l.parentId == null || e.isItemExpanded(l.parentId));
1627
1568
  });
1628
1569
  return n == null && (n = pe(e)), n;
1629
- }, _e = ({
1570
+ }, ze = ({
1630
1571
  instance: e,
1631
1572
  params: t,
1632
1573
  state: n,
1633
1574
  setState: o,
1634
- models: s,
1635
- rootRef: d
1575
+ models: l,
1576
+ rootRef: p
1636
1577
  }) => {
1637
- const c = ho(e, s.selectedItems.value), i = G((g) => {
1578
+ const c = so(e, l.selectedItems.value), i = G((g) => {
1638
1579
  const b = typeof g == "function" ? g(n.focusedItemId) : g;
1639
1580
  n.focusedItemId !== b && o((y) => E({}, y, {
1640
1581
  focusedItemId: b
1641
1582
  }));
1642
- }), p = x.useCallback(() => !!d.current && d.current.contains(wt(dn(d.current))), [d]), u = x.useCallback((g) => n.focusedItemId === g && p(), [n.focusedItemId, p]), l = (g) => {
1583
+ }), u = x.useCallback(() => !!p.current && p.current.contains(Et(nn(p.current))), [p]), d = x.useCallback((g) => n.focusedItemId === g && u(), [n.focusedItemId, u]), s = (g) => {
1643
1584
  const b = e.getItemMeta(g);
1644
1585
  return b && (b.parentId == null || e.isItemExpanded(b.parentId));
1645
1586
  }, a = (g, b) => {
1646
1587
  const y = e.getItemDOMElement(b);
1647
1588
  y && y.focus(), i(b), t.onItemFocus && t.onItemFocus(g, b);
1648
1589
  }, m = G((g, b) => {
1649
- l(b) && a(g, b);
1590
+ s(b) && a(g, b);
1650
1591
  }), I = G(() => {
1651
1592
  if (n.focusedItemId == null)
1652
1593
  return;
@@ -1657,7 +1598,7 @@ const ho = (e, t) => {
1657
1598
  }
1658
1599
  i(null);
1659
1600
  }), h = (g) => g === c;
1660
- Io(e, "removeItem", ({
1601
+ ro(e, "removeItem", ({
1661
1602
  id: g
1662
1603
  }) => {
1663
1604
  n.focusedItemId === g && a(null, c);
@@ -1674,20 +1615,20 @@ const ho = (e, t) => {
1674
1615
  focusItem: m
1675
1616
  },
1676
1617
  instance: {
1677
- isItemFocused: u,
1618
+ isItemFocused: d,
1678
1619
  canItemBeTabbed: h,
1679
1620
  focusItem: m,
1680
1621
  removeFocusedItem: I
1681
1622
  }
1682
1623
  };
1683
1624
  };
1684
- _e.getInitialState = () => ({
1625
+ ze.getInitialState = () => ({
1685
1626
  focusedItemId: null
1686
1627
  });
1687
- _e.params = {
1628
+ ze.params = {
1688
1629
  onItemFocus: !0
1689
1630
  };
1690
- const we = (e, t) => e.getAvailablePlugins().has(t), bo = ({
1631
+ const we = (e, t) => e.getAvailablePlugins().has(t), lo = ({
1691
1632
  props: e
1692
1633
  }) => {
1693
1634
  const {
@@ -1695,31 +1636,31 @@ const we = (e, t) => e.getAvailablePlugins().has(t), bo = ({
1695
1636
  } = le(), {
1696
1637
  label: n,
1697
1638
  itemId: o
1698
- } = e, [s, d] = x.useState(n), c = t.isItemBeingEdited(o);
1639
+ } = e, [l, p] = x.useState(n), c = t.isItemBeingEdited(o);
1699
1640
  return x.useEffect(() => {
1700
- c || d(n);
1641
+ c || p(n);
1701
1642
  }, [c, n]), {
1702
1643
  propsEnhancers: {
1703
1644
  labelInput: ({
1704
1645
  externalEventHandlers: i,
1705
- interactions: p
1646
+ interactions: u
1706
1647
  }) => t.isItemEditable(o) ? {
1707
- value: s ?? "",
1648
+ value: l ?? "",
1708
1649
  "data-element": "labelInput",
1709
1650
  onChange: (I) => {
1710
1651
  var h;
1711
- (h = i.onChange) == null || h.call(i, I), d(I.target.value);
1652
+ (h = i.onChange) == null || h.call(i, I), p(I.target.value);
1712
1653
  },
1713
1654
  onKeyDown: (I) => {
1714
1655
  var f;
1715
1656
  if ((f = i.onKeyDown) == null || f.call(i, I), I.defaultMuiPrevented)
1716
1657
  return;
1717
1658
  const h = I.target;
1718
- I.key === "Enter" && h.value ? p.handleSaveItemLabel(I, h.value) : I.key === "Escape" && p.handleCancelItemLabelEditing(I);
1659
+ I.key === "Enter" && h.value ? u.handleSaveItemLabel(I, h.value) : I.key === "Escape" && u.handleCancelItemLabelEditing(I);
1719
1660
  },
1720
1661
  onBlur: (I) => {
1721
1662
  var h;
1722
- (h = i.onBlur) == null || h.call(i, I), !I.defaultMuiPrevented && I.target.value && p.handleSaveItemLabel(I, I.target.value);
1663
+ (h = i.onBlur) == null || h.call(i, I), !I.defaultMuiPrevented && I.target.value && u.handleSaveItemLabel(I, I.target.value);
1723
1664
  },
1724
1665
  autoFocus: !0,
1725
1666
  type: "text"
@@ -1731,15 +1672,15 @@ const we = (e, t) => e.getAvailablePlugins().has(t), bo = ({
1731
1672
  state: t,
1732
1673
  setState: n,
1733
1674
  params: o,
1734
- experimentalFeatures: s
1675
+ experimentalFeatures: l
1735
1676
  }) => {
1736
- process.env.NODE_ENV !== "production" && o.isItemEditable && !(s != null && s.labelEditing) && ft(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the `RichTreeViewPro` component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]);
1737
- const d = x.useRef(t.editedItemId), c = (m) => d.current === m, i = (m) => {
1677
+ process.env.NODE_ENV !== "production" && o.isItemEditable && !(l != null && l.labelEditing) && dt(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the `RichTreeViewPro` component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]);
1678
+ const p = x.useRef(t.editedItemId), c = (m) => p.current === m, i = (m) => {
1738
1679
  n((I) => E({}, I, {
1739
1680
  editedItemId: m
1740
- })), d.current = m;
1741
- }, p = (m) => m === t.editedItemId, u = !!o.isItemEditable && !!s.labelEditing, l = (m) => {
1742
- if (m == null || !u)
1681
+ })), p.current = m;
1682
+ }, u = (m) => m === t.editedItemId, d = !!o.isItemEditable && !!l.labelEditing, s = (m) => {
1683
+ if (m == null || !d)
1743
1684
  return !1;
1744
1685
  const I = e.getItem(m);
1745
1686
  return I ? typeof o.isItemEditable == "function" ? o.isItemEditable(I) : !!o.isItemEditable : !1;
@@ -1763,10 +1704,10 @@ const we = (e, t) => e.getAvailablePlugins().has(t), bo = ({
1763
1704
  return {
1764
1705
  instance: {
1765
1706
  setEditedItemId: i,
1766
- isItemBeingEdited: p,
1707
+ isItemBeingEdited: u,
1767
1708
  updateItemLabel: a,
1768
- isItemEditable: l,
1769
- isTreeViewEditable: u,
1709
+ isItemEditable: s,
1710
+ isTreeViewEditable: d,
1770
1711
  isItemBeingEditedRef: c
1771
1712
  },
1772
1713
  publicAPI: {
@@ -1774,7 +1715,7 @@ const we = (e, t) => e.getAvailablePlugins().has(t), bo = ({
1774
1715
  }
1775
1716
  };
1776
1717
  };
1777
- ee.itemPlugin = bo;
1718
+ ee.itemPlugin = lo;
1778
1719
  ee.getInitialState = () => ({
1779
1720
  editedItemId: null
1780
1721
  });
@@ -1782,47 +1723,47 @@ ee.params = {
1782
1723
  onItemLabelChange: !0,
1783
1724
  isItemEditable: !0
1784
1725
  };
1785
- function yo(e) {
1726
+ function ao(e) {
1786
1727
  return !!e && e.length === 1 && !!e.match(/\S/);
1787
1728
  }
1788
- const vt = ({
1729
+ const Ct = ({
1789
1730
  instance: e,
1790
1731
  params: t,
1791
1732
  state: n
1792
1733
  }) => {
1793
- const o = un(), s = x.useRef({}), d = G((l) => {
1794
- s.current = l(s.current);
1734
+ const o = on(), l = x.useRef({}), p = G((s) => {
1735
+ l.current = s(l.current);
1795
1736
  });
1796
1737
  x.useEffect(() => {
1797
1738
  if (e.areItemUpdatesPrevented())
1798
1739
  return;
1799
- const l = {}, a = (m) => {
1800
- l[m.id] = m.label.substring(0, 1).toLowerCase();
1740
+ const s = {}, a = (m) => {
1741
+ s[m.id] = m.label.substring(0, 1).toLowerCase();
1801
1742
  };
1802
- Object.values(n.items.itemMetaMap).forEach(a), s.current = l;
1743
+ Object.values(n.items.itemMetaMap).forEach(a), l.current = s;
1803
1744
  }, [n.items.itemMetaMap, t.getItemId, e]);
1804
- const c = (l, a) => {
1745
+ const c = (s, a) => {
1805
1746
  const m = a.toLowerCase(), I = (b) => {
1806
1747
  const y = Ce(e, b);
1807
1748
  return y === null ? pe(e) : y;
1808
1749
  };
1809
- let h = null, f = I(l);
1750
+ let h = null, f = I(s);
1810
1751
  const g = {};
1811
1752
  for (; h == null && !g[f]; )
1812
- s.current[f] === m ? h = f : (g[f] = !0, f = I(f));
1753
+ l.current[f] === m ? h = f : (g[f] = !0, f = I(f));
1813
1754
  return h;
1814
- }, i = (l) => !t.disableSelection && !e.isItemDisabled(l), p = (l) => !e.isItemDisabled(l) && e.isItemExpandable(l);
1755
+ }, i = (s) => !t.disableSelection && !e.isItemDisabled(s), u = (s) => !e.isItemDisabled(s) && e.isItemExpandable(s);
1815
1756
  return {
1816
1757
  instance: {
1817
- updateFirstCharMap: d,
1818
- handleItemKeyDown: (l, a) => {
1819
- if (l.defaultMuiPrevented || l.altKey || Fe(l.target, l.currentTarget))
1758
+ updateFirstCharMap: p,
1759
+ handleItemKeyDown: (s, a) => {
1760
+ if (s.defaultMuiPrevented || s.altKey || $e(s.target, s.currentTarget))
1820
1761
  return;
1821
- const m = l.ctrlKey || l.metaKey, I = l.key;
1762
+ const m = s.ctrlKey || s.metaKey, I = s.key;
1822
1763
  switch (!0) {
1823
1764
  case (I === " " && i(a)): {
1824
- l.preventDefault(), t.multiSelect && l.shiftKey ? e.expandSelectionRange(l, a) : e.selectItem({
1825
- event: l,
1765
+ s.preventDefault(), t.multiSelect && s.shiftKey ? e.expandSelectionRange(s, a) : e.selectItem({
1766
+ event: s,
1826
1767
  itemId: a,
1827
1768
  keepExistingSelection: t.multiSelect,
1828
1769
  shouldBeSelected: t.multiSelect ? void 0 : !0
@@ -1830,61 +1771,61 @@ const vt = ({
1830
1771
  break;
1831
1772
  }
1832
1773
  case I === "Enter": {
1833
- we(e, ee) && e.isItemEditable(a) && !e.isItemBeingEdited(a) ? e.setEditedItemId(a) : p(a) ? (e.toggleItemExpansion(l, a), l.preventDefault()) : i(a) && (t.multiSelect ? (l.preventDefault(), e.selectItem({
1834
- event: l,
1774
+ we(e, ee) && e.isItemEditable(a) && !e.isItemBeingEdited(a) ? e.setEditedItemId(a) : u(a) ? (e.toggleItemExpansion(s, a), s.preventDefault()) : i(a) && (t.multiSelect ? (s.preventDefault(), e.selectItem({
1775
+ event: s,
1835
1776
  itemId: a,
1836
1777
  keepExistingSelection: !0
1837
1778
  })) : e.isItemSelected(a) || (e.selectItem({
1838
- event: l,
1779
+ event: s,
1839
1780
  itemId: a
1840
- }), l.preventDefault()));
1781
+ }), s.preventDefault()));
1841
1782
  break;
1842
1783
  }
1843
1784
  case I === "ArrowDown": {
1844
1785
  const h = Ce(e, a);
1845
- h && (l.preventDefault(), e.focusItem(l, h), t.multiSelect && l.shiftKey && i(h) && e.selectItemFromArrowNavigation(l, a, h));
1786
+ h && (s.preventDefault(), e.focusItem(s, h), t.multiSelect && s.shiftKey && i(h) && e.selectItemFromArrowNavigation(s, a, h));
1846
1787
  break;
1847
1788
  }
1848
1789
  case I === "ArrowUp": {
1849
- const h = Et(e, a);
1850
- h && (l.preventDefault(), e.focusItem(l, h), t.multiSelect && l.shiftKey && i(h) && e.selectItemFromArrowNavigation(l, a, h));
1790
+ const h = bt(e, a);
1791
+ h && (s.preventDefault(), e.focusItem(s, h), t.multiSelect && s.shiftKey && i(h) && e.selectItemFromArrowNavigation(s, a, h));
1851
1792
  break;
1852
1793
  }
1853
1794
  case (I === "ArrowRight" && !o || I === "ArrowLeft" && o): {
1854
1795
  if (e.isItemExpanded(a)) {
1855
1796
  const h = Ce(e, a);
1856
- h && (e.focusItem(l, h), l.preventDefault());
1857
- } else p(a) && (e.toggleItemExpansion(l, a), l.preventDefault());
1797
+ h && (e.focusItem(s, h), s.preventDefault());
1798
+ } else u(a) && (e.toggleItemExpansion(s, a), s.preventDefault());
1858
1799
  break;
1859
1800
  }
1860
1801
  case (I === "ArrowLeft" && !o || I === "ArrowRight" && o): {
1861
- if (p(a) && e.isItemExpanded(a))
1862
- e.toggleItemExpansion(l, a), l.preventDefault();
1802
+ if (u(a) && e.isItemExpanded(a))
1803
+ e.toggleItemExpansion(s, a), s.preventDefault();
1863
1804
  else {
1864
1805
  const h = e.getItemMeta(a).parentId;
1865
- h && (e.focusItem(l, h), l.preventDefault());
1806
+ h && (e.focusItem(s, h), s.preventDefault());
1866
1807
  }
1867
1808
  break;
1868
1809
  }
1869
1810
  case I === "Home": {
1870
- i(a) && t.multiSelect && m && l.shiftKey ? e.selectRangeFromStartToItem(l, a) : e.focusItem(l, pe(e)), l.preventDefault();
1811
+ i(a) && t.multiSelect && m && s.shiftKey ? e.selectRangeFromStartToItem(s, a) : e.focusItem(s, pe(e)), s.preventDefault();
1871
1812
  break;
1872
1813
  }
1873
1814
  case I === "End": {
1874
- i(a) && t.multiSelect && m && l.shiftKey ? e.selectRangeFromItemToEnd(l, a) : e.focusItem(l, Ct(e)), l.preventDefault();
1815
+ i(a) && t.multiSelect && m && s.shiftKey ? e.selectRangeFromItemToEnd(s, a) : e.focusItem(s, yt(e)), s.preventDefault();
1875
1816
  break;
1876
1817
  }
1877
1818
  case I === "*": {
1878
- e.expandAllSiblings(l, a), l.preventDefault();
1819
+ e.expandAllSiblings(s, a), s.preventDefault();
1879
1820
  break;
1880
1821
  }
1881
1822
  case (I === "a" && m && t.multiSelect && !t.disableSelection): {
1882
- e.selectAllNavigableItems(l), l.preventDefault();
1823
+ e.selectAllNavigableItems(s), s.preventDefault();
1883
1824
  break;
1884
1825
  }
1885
- case (!m && !l.shiftKey && yo(I)): {
1826
+ case (!m && !s.shiftKey && ao(I)): {
1886
1827
  const h = c(a, I);
1887
- h != null && (e.focusItem(l, h), l.preventDefault());
1828
+ h != null && (e.focusItem(s, h), s.preventDefault());
1888
1829
  break;
1889
1830
  }
1890
1831
  }
@@ -1892,8 +1833,8 @@ const vt = ({
1892
1833
  }
1893
1834
  };
1894
1835
  };
1895
- vt.params = {};
1896
- const Mt = ({
1836
+ Ct.params = {};
1837
+ const Tt = ({
1897
1838
  slots: e,
1898
1839
  slotProps: t
1899
1840
  }) => ({
@@ -1912,35 +1853,35 @@ const Mt = ({
1912
1853
  }
1913
1854
  }
1914
1855
  });
1915
- Mt.params = {};
1856
+ Tt.params = {};
1916
1857
  const Be = /* @__PURE__ */ x.createContext(null);
1917
1858
  process.env.NODE_ENV !== "production" && (Be.displayName = "TreeViewChildrenItemContext");
1918
- function ze(e) {
1859
+ function _e(e) {
1919
1860
  const {
1920
1861
  children: t,
1921
1862
  itemId: n = null
1922
1863
  } = e, {
1923
1864
  instance: o,
1924
- rootRef: s
1925
- } = le(), d = x.useRef(/* @__PURE__ */ new Map());
1865
+ rootRef: l
1866
+ } = le(), p = x.useRef(/* @__PURE__ */ new Map());
1926
1867
  x.useEffect(() => {
1927
- if (!s.current)
1868
+ if (!l.current)
1928
1869
  return;
1929
1870
  let i = null;
1930
1871
  if (n == null)
1931
- i = s.current.id;
1872
+ i = l.current.id;
1932
1873
  else {
1933
1874
  const I = o.getItemMeta(n);
1934
1875
  I !== void 0 && (i = o.getTreeItemIdAttribute(n, I.idAttribute));
1935
1876
  }
1936
1877
  if (i == null)
1937
1878
  return;
1938
- const p = o.getItemOrderedChildrenIds(n ?? null) ?? [], u = go(i), l = s.current.querySelectorAll(`${n == null ? "" : `*[id="${u}"] `}[role="treeitem"]:not(*[id="${u}"] [role="treeitem"] [role="treeitem"])`), a = Array.from(l).map((I) => d.current.get(I.id));
1939
- (a.length !== p.length || a.some((I, h) => I !== p[h])) && o.setJSXItemsOrderedChildrenIds(n ?? null, a);
1879
+ const u = o.getItemOrderedChildrenIds(n ?? null) ?? [], d = io(i), s = l.current.querySelectorAll(`${n == null ? "" : `*[id="${d}"] `}[role="treeitem"]:not(*[id="${d}"] [role="treeitem"] [role="treeitem"])`), a = Array.from(s).map((I) => p.current.get(I.id));
1880
+ (a.length !== u.length || a.some((I, h) => I !== u[h])) && o.setJSXItemsOrderedChildrenIds(n ?? null, a);
1940
1881
  });
1941
1882
  const c = x.useMemo(() => ({
1942
- registerChild: (i, p) => d.current.set(i, p),
1943
- unregisterChild: (i) => d.current.delete(i),
1883
+ registerChild: (i, u) => p.current.set(i, u),
1884
+ unregisterChild: (i) => p.current.delete(i),
1944
1885
  parentId: n
1945
1886
  }), [n]);
1946
1887
  return /* @__PURE__ */ w(Be.Provider, {
@@ -1948,7 +1889,7 @@ function ze(e) {
1948
1889
  children: t
1949
1890
  });
1950
1891
  }
1951
- process.env.NODE_ENV !== "production" && (ze.propTypes = {
1892
+ process.env.NODE_ENV !== "production" && (_e.propTypes = {
1952
1893
  children: r.node,
1953
1894
  id: r.string
1954
1895
  });
@@ -1957,62 +1898,62 @@ const be = ({
1957
1898
  setState: t
1958
1899
  }) => {
1959
1900
  e.preventItemUpdates();
1960
- const n = G((d) => (t((c) => {
1961
- if (c.items.itemMetaMap[d.id] != null)
1962
- throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${d.id}"`].join(`
1901
+ const n = G((p) => (t((c) => {
1902
+ if (c.items.itemMetaMap[p.id] != null)
1903
+ throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${p.id}"`].join(`
1963
1904
  `));
1964
1905
  return E({}, c, {
1965
1906
  items: E({}, c.items, {
1966
1907
  itemMetaMap: E({}, c.items.itemMetaMap, {
1967
- [d.id]: d
1908
+ [p.id]: p
1968
1909
  }),
1969
1910
  // For `SimpleTreeView`, we don't have a proper `item` object, so we create a very basic one.
1970
1911
  itemMap: E({}, c.items.itemMap, {
1971
- [d.id]: {
1972
- id: d.id,
1973
- label: d.label
1912
+ [p.id]: {
1913
+ id: p.id,
1914
+ label: p.label
1974
1915
  }
1975
1916
  })
1976
1917
  })
1977
1918
  });
1978
1919
  }), () => {
1979
1920
  t((c) => {
1980
- const i = E({}, c.items.itemMetaMap), p = E({}, c.items.itemMap);
1981
- return delete i[d.id], delete p[d.id], E({}, c, {
1921
+ const i = E({}, c.items.itemMetaMap), u = E({}, c.items.itemMap);
1922
+ return delete i[p.id], delete u[p.id], E({}, c, {
1982
1923
  items: E({}, c.items, {
1983
1924
  itemMetaMap: i,
1984
- itemMap: p
1925
+ itemMap: u
1985
1926
  })
1986
1927
  });
1987
- }), ht(e, "removeItem", {
1988
- id: d.id
1928
+ }), mt(e, "removeItem", {
1929
+ id: p.id
1989
1930
  });
1990
- })), o = (d, c) => {
1991
- const i = d ?? Z;
1992
- t((p) => E({}, p, {
1993
- items: E({}, p.items, {
1994
- itemOrderedChildrenIds: E({}, p.items.itemOrderedChildrenIds, {
1931
+ })), o = (p, c) => {
1932
+ const i = p ?? Z;
1933
+ t((u) => E({}, u, {
1934
+ items: E({}, u.items, {
1935
+ itemOrderedChildrenIds: E({}, u.items.itemOrderedChildrenIds, {
1995
1936
  [i]: c
1996
1937
  }),
1997
- itemChildrenIndexes: E({}, p.items.itemChildrenIndexes, {
1998
- [i]: bt(c)
1938
+ itemChildrenIndexes: E({}, u.items.itemChildrenIndexes, {
1939
+ [i]: It(c)
1999
1940
  })
2000
1941
  })
2001
1942
  }));
2002
- }, s = G((d, c) => (e.updateFirstCharMap((i) => (i[d] = c, i)), () => {
1943
+ }, l = G((p, c) => (e.updateFirstCharMap((i) => (i[p] = c, i)), () => {
2003
1944
  e.updateFirstCharMap((i) => {
2004
- const p = E({}, i);
2005
- return delete p[d], p;
1945
+ const u = E({}, i);
1946
+ return delete u[p], u;
2006
1947
  });
2007
1948
  }));
2008
1949
  return {
2009
1950
  instance: {
2010
1951
  insertJSXItem: n,
2011
1952
  setJSXItemsOrderedChildrenIds: o,
2012
- mapFirstCharFromJSX: s
1953
+ mapFirstCharFromJSX: l
2013
1954
  }
2014
1955
  };
2015
- }, St = (e) => Array.isArray(e) ? e.length > 0 && e.some(St) : !!e, xo = ({
1956
+ }, wt = (e) => Array.isArray(e) ? e.length > 0 && e.some(wt) : !!e, co = ({
2016
1957
  props: e,
2017
1958
  rootRef: t,
2018
1959
  contentRef: n
@@ -2020,32 +1961,32 @@ const be = ({
2020
1961
  const {
2021
1962
  instance: o
2022
1963
  } = le(), {
2023
- children: s,
2024
- disabled: d = !1,
1964
+ children: l,
1965
+ disabled: p = !1,
2025
1966
  label: c,
2026
1967
  itemId: i,
2027
- id: p
2028
- } = e, u = x.useContext(Be);
2029
- if (u == null)
1968
+ id: u
1969
+ } = e, d = x.useContext(Be);
1970
+ if (d == null)
2030
1971
  throw new Error(["MUI X: Could not find the Tree View Children Item context.", "It looks like you rendered your component outside of a SimpleTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
2031
1972
  `));
2032
1973
  const {
2033
- registerChild: l,
1974
+ registerChild: s,
2034
1975
  unregisterChild: a,
2035
1976
  parentId: m
2036
- } = u, I = St(s), h = x.useRef(null), f = de(h, n);
2037
- return pn(() => {
2038
- const g = o.getTreeItemIdAttribute(i, p);
2039
- return l(g, i), () => {
1977
+ } = d, I = wt(l), h = x.useRef(null), f = de(h, n);
1978
+ return rn(() => {
1979
+ const g = o.getTreeItemIdAttribute(i, u);
1980
+ return s(g, i), () => {
2040
1981
  a(g);
2041
1982
  };
2042
- }, [o, l, a, i, p]), x.useEffect(() => o.insertJSXItem({
1983
+ }, [o, s, a, i, u]), x.useEffect(() => o.insertJSXItem({
2043
1984
  id: i,
2044
- idAttribute: p,
1985
+ idAttribute: u,
2045
1986
  parentId: m,
2046
1987
  expandable: I,
2047
- disabled: d
2048
- }), [o, m, i, I, d, p]), x.useEffect(() => {
1988
+ disabled: p
1989
+ }), [o, m, i, I, p, u]), x.useEffect(() => {
2049
1990
  var g;
2050
1991
  if (c)
2051
1992
  return o.mapFirstCharFromJSX(i, (((g = h.current) == null ? void 0 : g.textContent) ?? "").substring(0, 1).toLowerCase());
@@ -2054,13 +1995,13 @@ const be = ({
2054
1995
  rootRef: t
2055
1996
  };
2056
1997
  };
2057
- be.itemPlugin = xo;
1998
+ be.itemPlugin = co;
2058
1999
  be.wrapItem = ({
2059
2000
  children: e,
2060
2001
  itemId: t
2061
2002
  }) => {
2062
2003
  const n = x.useContext(se);
2063
- return /* @__PURE__ */ w(ze, {
2004
+ return /* @__PURE__ */ w(_e, {
2064
2005
  itemId: t,
2065
2006
  children: /* @__PURE__ */ w(se.Provider, {
2066
2007
  value: n + 1,
@@ -2070,21 +2011,21 @@ be.wrapItem = ({
2070
2011
  };
2071
2012
  be.wrapRoot = ({
2072
2013
  children: e
2073
- }) => /* @__PURE__ */ w(ze, {
2014
+ }) => /* @__PURE__ */ w(_e, {
2074
2015
  children: /* @__PURE__ */ w(se.Provider, {
2075
2016
  value: 0,
2076
2017
  children: e
2077
2018
  })
2078
2019
  });
2079
2020
  be.params = {};
2080
- const Eo = [he, Me, Se, _e, vt, Mt, be], Co = pt(), To = (e) => {
2021
+ const uo = [he, Se, Re, ze, Ct, Tt, be], po = ct(), fo = (e) => {
2081
2022
  const {
2082
2023
  classes: t
2083
2024
  } = e;
2084
2025
  return ge({
2085
2026
  root: ["root"]
2086
- }, Wn, t);
2087
- }, wo = U("ul", {
2027
+ }, Ln, t);
2028
+ }, mo = U("ul", {
2088
2029
  name: "MuiSimpleTreeView",
2089
2030
  slot: "Root",
2090
2031
  overridesResolver: (e, t) => t.root
@@ -2094,37 +2035,37 @@ const Eo = [he, Me, Se, _e, vt, Mt, be], Co = pt(), To = (e) => {
2094
2035
  listStyle: "none",
2095
2036
  outline: 0,
2096
2037
  position: "relative"
2097
- }), vo = [], Rt = /* @__PURE__ */ x.forwardRef(function(t, n) {
2098
- const o = Co({
2038
+ }), Io = [], vt = /* @__PURE__ */ x.forwardRef(function(t, n) {
2039
+ const o = po({
2099
2040
  props: t,
2100
2041
  name: "MuiSimpleTreeView"
2101
- }), s = o;
2102
- process.env.NODE_ENV !== "production" && o.items != null && ft(["MUI X: The `SimpleTreeView` component does not support the `items` prop.", "If you want to add items, you need to pass them as JSX children.", "Check the documentation for more details: https://mui.com/x/react-tree-view/simple-tree-view/items/."]);
2042
+ }), l = o;
2043
+ process.env.NODE_ENV !== "production" && o.items != null && dt(["MUI X: The `SimpleTreeView` component does not support the `items` prop.", "If you want to add items, you need to pass them as JSX children.", "Check the documentation for more details: https://mui.com/x/react-tree-view/simple-tree-view/items/."]);
2103
2044
  const {
2104
- getRootProps: d,
2045
+ getRootProps: p,
2105
2046
  contextValue: c
2106
- } = no({
2107
- plugins: Eo,
2047
+ } = Xn({
2048
+ plugins: uo,
2108
2049
  rootRef: n,
2109
2050
  props: E({}, o, {
2110
- items: vo
2051
+ items: Io
2111
2052
  })
2112
2053
  }), {
2113
2054
  slots: i,
2114
- slotProps: p
2115
- } = o, u = To(o), l = (i == null ? void 0 : i.root) ?? wo, a = ce({
2116
- elementType: l,
2117
- externalSlotProps: p == null ? void 0 : p.root,
2118
- className: u.root,
2119
- getSlotProps: d,
2120
- ownerState: s
2055
+ slotProps: u
2056
+ } = o, d = fo(o), s = (i == null ? void 0 : i.root) ?? mo, a = ce({
2057
+ elementType: s,
2058
+ externalSlotProps: u == null ? void 0 : u.root,
2059
+ className: d.root,
2060
+ getSlotProps: p,
2061
+ ownerState: l
2121
2062
  });
2122
- return /* @__PURE__ */ w(oo, {
2063
+ return /* @__PURE__ */ w(Wn, {
2123
2064
  value: c,
2124
- children: /* @__PURE__ */ w(l, E({}, a))
2065
+ children: /* @__PURE__ */ w(s, E({}, a))
2125
2066
  });
2126
2067
  });
2127
- process.env.NODE_ENV !== "production" && (Rt.propTypes = {
2068
+ process.env.NODE_ENV !== "production" && (vt.propTypes = {
2128
2069
  // ----------------------------- Warning --------------------------------
2129
2070
  // | These PropTypes are generated from the TypeScript type definitions |
2130
2071
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -2270,7 +2211,7 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
2270
2211
  */
2271
2212
  sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
2272
2213
  });
2273
- function kt(e) {
2214
+ function St(e) {
2274
2215
  const {
2275
2216
  instance: t,
2276
2217
  items: {
@@ -2278,20 +2219,20 @@ function kt(e) {
2278
2219
  },
2279
2220
  selection: {
2280
2221
  multiSelect: o,
2281
- checkboxSelection: s,
2282
- disableSelection: d
2222
+ checkboxSelection: l,
2223
+ disableSelection: p
2283
2224
  },
2284
2225
  expansion: {
2285
2226
  expansionTrigger: c
2286
2227
  }
2287
- } = le(), i = t.isItemExpandable(e), p = t.isItemExpanded(e), u = t.isItemFocused(e), l = t.isItemSelected(e), a = t.isItemDisabled(e), m = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, I = t.isItemEditable ? t.isItemEditable(e) : !1, h = (T) => {
2228
+ } = le(), i = t.isItemExpandable(e), u = t.isItemExpanded(e), d = t.isItemFocused(e), s = t.isItemSelected(e), a = t.isItemDisabled(e), m = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, I = t.isItemEditable ? t.isItemEditable(e) : !1, h = (T) => {
2288
2229
  if (!a) {
2289
- u || t.focusItem(T, e);
2230
+ d || t.focusItem(T, e);
2290
2231
  const v = o && (T.shiftKey || T.ctrlKey || T.metaKey);
2291
2232
  i && !(v && t.isItemExpanded(e)) && t.toggleItemExpansion(T, e);
2292
2233
  }
2293
2234
  }, f = (T) => {
2294
- a || (u || t.focusItem(T, e), o && (T.shiftKey || T.ctrlKey || T.metaKey) ? T.shiftKey ? t.expandSelectionRange(T, e) : t.selectItem({
2235
+ a || (d || t.focusItem(T, e), o && (T.shiftKey || T.ctrlKey || T.metaKey) ? T.shiftKey ? t.expandSelectionRange(T, e) : t.selectItem({
2295
2236
  event: T,
2296
2237
  itemId: e,
2297
2238
  keepExistingSelection: !0
@@ -2301,7 +2242,7 @@ function kt(e) {
2301
2242
  shouldBeSelected: !0
2302
2243
  }));
2303
2244
  }, g = (T) => {
2304
- if (d || a)
2245
+ if (p || a)
2305
2246
  return;
2306
2247
  const v = T.nativeEvent.shiftKey;
2307
2248
  o && v ? t.expandSelectionRange(T, e) : t.selectItem({
@@ -2317,13 +2258,13 @@ function kt(e) {
2317
2258
  };
2318
2259
  return {
2319
2260
  disabled: a,
2320
- expanded: p,
2321
- selected: l,
2322
- focused: u,
2261
+ expanded: u,
2262
+ selected: s,
2263
+ focused: d,
2323
2264
  editable: I,
2324
2265
  editing: m,
2325
- disableSelection: d,
2326
- checkboxSelection: s,
2266
+ disableSelection: p,
2267
+ checkboxSelection: l,
2327
2268
  handleExpansion: h,
2328
2269
  handleSelection: f,
2329
2270
  handleCheckboxSelection: g,
@@ -2339,11 +2280,11 @@ function kt(e) {
2339
2280
  }
2340
2281
  };
2341
2282
  }
2342
- const Mo = U("div", {
2283
+ const go = U("div", {
2343
2284
  name: "MuiTreeItem2DragAndDropOverlay",
2344
2285
  slot: "Root",
2345
2286
  overridesResolver: (e, t) => t.root,
2346
- shouldForwardProp: (e) => fn(e) && e !== "action"
2287
+ shouldForwardProp: (e) => sn(e) && e !== "action"
2347
2288
  })(({
2348
2289
  theme: e
2349
2290
  }) => ({
@@ -2395,10 +2336,10 @@ const Mo = U("div", {
2395
2336
  }))
2396
2337
  }]
2397
2338
  }));
2398
- function So(e) {
2399
- return e.action == null ? null : /* @__PURE__ */ w(Mo, E({}, e));
2339
+ function ho(e) {
2340
+ return e.action == null ? null : /* @__PURE__ */ w(go, E({}, e));
2400
2341
  }
2401
- const Ro = U("input", {
2342
+ const bo = U("input", {
2402
2343
  name: "MuiTreeItem2",
2403
2344
  slot: "LabelInput",
2404
2345
  overridesResolver: (e, t) => t.labelInput
@@ -2414,20 +2355,20 @@ const Ro = U("input", {
2414
2355
  "&:focus": {
2415
2356
  outline: `1px solid ${e.palette.primary.main}`
2416
2357
  }
2417
- })), ko = ["classes", "className", "displayIcon", "expansionIcon", "icon", "label", "itemId", "onClick", "onMouseDown", "dragAndDropOverlayProps", "labelInputProps"], Ue = /* @__PURE__ */ x.forwardRef(function(t, n) {
2358
+ })), yo = ["classes", "className", "displayIcon", "expansionIcon", "icon", "label", "itemId", "onClick", "onMouseDown", "dragAndDropOverlayProps", "labelInputProps"], Ue = /* @__PURE__ */ x.forwardRef(function(t, n) {
2418
2359
  const {
2419
2360
  classes: o,
2420
- className: s,
2421
- displayIcon: d,
2361
+ className: l,
2362
+ displayIcon: p,
2422
2363
  expansionIcon: c,
2423
2364
  icon: i,
2424
- label: p,
2425
- itemId: u,
2426
- onClick: l,
2365
+ label: u,
2366
+ itemId: d,
2367
+ onClick: s,
2427
2368
  onMouseDown: a,
2428
2369
  dragAndDropOverlayProps: m,
2429
2370
  labelInputProps: I
2430
- } = t, h = Q(t, ko), {
2371
+ } = t, h = Q(t, yo), {
2431
2372
  disabled: f,
2432
2373
  expanded: g,
2433
2374
  selected: b,
@@ -2436,47 +2377,47 @@ const Ro = U("input", {
2436
2377
  editable: k,
2437
2378
  disableSelection: T,
2438
2379
  checkboxSelection: v,
2439
- handleExpansion: R,
2380
+ handleExpansion: M,
2440
2381
  handleSelection: B,
2441
2382
  handleCheckboxSelection: K,
2442
2383
  handleContentClick: V,
2443
- preventSelection: A,
2444
- expansionTrigger: z,
2384
+ preventSelection: F,
2385
+ expansionTrigger: _,
2445
2386
  toggleItemEditing: j
2446
- } = kt(u), q = i || c || d, N = x.useRef(null), H = (O) => {
2447
- A(O), a && a(O);
2448
- }, L = (O) => {
2449
- var P;
2450
- V == null || V(O, u), !((P = N.current) != null && P.contains(O.target)) && (z === "content" && R(O), v || B(O), l && l(O));
2451
- }, W = (O) => {
2452
- O.defaultMuiPrevented || j();
2387
+ } = St(d), q = i || c || p, L = x.useRef(null), H = (P) => {
2388
+ F(P), a && a(P);
2389
+ }, N = (P) => {
2390
+ var O;
2391
+ V == null || V(P, d), !((O = L.current) != null && O.contains(P.target)) && (_ === "content" && M(P), v || B(P), s && s(P));
2392
+ }, W = (P) => {
2393
+ P.defaultMuiPrevented || j();
2453
2394
  };
2454
2395
  return (
2455
2396
  /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
2456
2397
  /* @__PURE__ */ ve("div", E({}, h, {
2457
- className: Ie(s, o.root, g && o.expanded, b && o.selected, y && o.focused, f && o.disabled, C && o.editing, k && o.editable),
2458
- onClick: L,
2398
+ className: Ie(l, o.root, g && o.expanded, b && o.selected, y && o.focused, f && o.disabled, C && o.editing, k && o.editable),
2399
+ onClick: N,
2459
2400
  onMouseDown: H,
2460
2401
  ref: n,
2461
2402
  children: [/* @__PURE__ */ w("div", {
2462
2403
  className: o.iconContainer,
2463
2404
  children: q
2464
- }), v && /* @__PURE__ */ w(ut, {
2405
+ }), v && /* @__PURE__ */ w(at, {
2465
2406
  className: o.checkbox,
2466
2407
  checked: b,
2467
2408
  onChange: K,
2468
2409
  disabled: f || T,
2469
- ref: N,
2410
+ ref: L,
2470
2411
  tabIndex: -1
2471
- }), C ? /* @__PURE__ */ w(Ro, E({}, I, {
2412
+ }), C ? /* @__PURE__ */ w(bo, E({}, I, {
2472
2413
  className: o.labelInput
2473
2414
  })) : /* @__PURE__ */ w("div", E({
2474
2415
  className: o.label
2475
2416
  }, k && {
2476
2417
  onDoubleClick: W
2477
2418
  }, {
2478
- children: p
2479
- })), m && /* @__PURE__ */ w(So, E({}, m))]
2419
+ children: u
2420
+ })), m && /* @__PURE__ */ w(ho, E({}, m))]
2480
2421
  }))
2481
2422
  );
2482
2423
  });
@@ -2524,29 +2465,29 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
2524
2465
  value: r.string
2525
2466
  })
2526
2467
  });
2527
- function Oo(e) {
2468
+ function xo(e) {
2528
2469
  return fe("MuiTreeItem", e);
2529
2470
  }
2530
- const J = me("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), Po = te(/* @__PURE__ */ w("path", {
2471
+ const J = me("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), Eo = te(/* @__PURE__ */ w("path", {
2531
2472
  d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
2532
- }), "TreeViewExpandIcon"), Do = te(/* @__PURE__ */ w("path", {
2473
+ }), "TreeViewExpandIcon"), Co = te(/* @__PURE__ */ w("path", {
2533
2474
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
2534
2475
  }), "TreeViewCollapseIcon");
2535
- function Ot(e) {
2476
+ function Rt(e) {
2536
2477
  const {
2537
2478
  children: t,
2538
2479
  itemId: n
2539
2480
  } = e, {
2540
2481
  wrapItem: o,
2541
- instance: s
2482
+ instance: l
2542
2483
  } = le();
2543
2484
  return o({
2544
2485
  children: t,
2545
2486
  itemId: n,
2546
- instance: s
2487
+ instance: l
2547
2488
  });
2548
2489
  }
2549
- Ot.propTypes = {
2490
+ Rt.propTypes = {
2550
2491
  // ----------------------------- Warning --------------------------------
2551
2492
  // | These PropTypes are generated from the TypeScript type definitions |
2552
2493
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -2554,7 +2495,7 @@ Ot.propTypes = {
2554
2495
  children: r.node,
2555
2496
  itemId: r.string.isRequired
2556
2497
  };
2557
- const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "ContentProps", "itemId", "id", "label", "onClick", "onMouseDown", "onFocus", "onBlur", "onKeyDown"], $o = ["ownerState"], Ao = ["ownerState"], Fo = ["ownerState"], No = pt(), Lo = (e) => {
2498
+ const To = ["children", "className", "slots", "slotProps", "ContentComponent", "ContentProps", "itemId", "id", "label", "onClick", "onMouseDown", "onFocus", "onBlur", "onKeyDown"], wo = ["ownerState"], vo = ["ownerState"], So = ["ownerState"], Ro = ct(), Mo = (e) => {
2558
2499
  const {
2559
2500
  classes: t
2560
2501
  } = e;
@@ -2572,8 +2513,8 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2572
2513
  editing: ["editing"],
2573
2514
  editable: ["editable"],
2574
2515
  groupTransition: ["groupTransition"]
2575
- }, Oo, t);
2576
- }, jo = U("li", {
2516
+ }, xo, t);
2517
+ }, ko = U("li", {
2577
2518
  name: "MuiTreeItem",
2578
2519
  slot: "Root",
2579
2520
  overridesResolver: (e, t) => t.root
@@ -2582,7 +2523,7 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2582
2523
  margin: 0,
2583
2524
  padding: 0,
2584
2525
  outline: 0
2585
- }), _o = U(Ue, {
2526
+ }), Po = U(Ue, {
2586
2527
  name: "MuiTreeItem",
2587
2528
  slot: "Content",
2588
2529
  overridesResolver: (e, t) => [t.content, t.iconContainer && {
@@ -2590,7 +2531,7 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2590
2531
  }, t.label && {
2591
2532
  [`& .${J.label}`]: t.label
2592
2533
  }],
2593
- shouldForwardProp: (e) => lt(e) && e !== "indentationAtItemLevel"
2534
+ shouldForwardProp: (e) => st(e) && e !== "indentationAtItemLevel"
2594
2535
  })(({
2595
2536
  theme: e
2596
2537
  }) => ({
@@ -2660,11 +2601,11 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2660
2601
  paddingLeft: `calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`
2661
2602
  }
2662
2603
  }]
2663
- })), Bo = U(Le, {
2604
+ })), Oo = U(Ne, {
2664
2605
  name: "MuiTreeItem",
2665
2606
  slot: "GroupTransition",
2666
2607
  overridesResolver: (e, t) => t.groupTransition,
2667
- shouldForwardProp: (e) => lt(e) && e !== "indentationAtItemLevel"
2608
+ shouldForwardProp: (e) => st(e) && e !== "indentationAtItemLevel"
2668
2609
  })({
2669
2610
  margin: 0,
2670
2611
  padding: 0,
@@ -2677,23 +2618,23 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2677
2618
  paddingLeft: 0
2678
2619
  }
2679
2620
  }]
2680
- }), Pt = /* @__PURE__ */ x.forwardRef(function(t, n) {
2621
+ }), Mt = /* @__PURE__ */ x.forwardRef(function(t, n) {
2681
2622
  var Xe, We, Je, Ge;
2682
2623
  const {
2683
2624
  icons: o,
2684
- runItemPlugins: s,
2625
+ runItemPlugins: l,
2685
2626
  items: {
2686
- disabledItemsFocusable: d,
2627
+ disabledItemsFocusable: p,
2687
2628
  indentationAtItemLevel: c
2688
2629
  },
2689
2630
  selection: {
2690
2631
  multiSelect: i
2691
2632
  },
2692
2633
  expansion: {
2693
- expansionTrigger: p
2634
+ expansionTrigger: u
2694
2635
  },
2695
- instance: u
2696
- } = le(), l = x.useContext(se), a = No({
2636
+ instance: d
2637
+ } = le(), s = x.useContext(se), a = Ro({
2697
2638
  props: t,
2698
2639
  name: "MuiTreeItem"
2699
2640
  }), {
@@ -2708,34 +2649,34 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2708
2649
  label: k,
2709
2650
  onClick: T,
2710
2651
  onMouseDown: v,
2711
- onBlur: R,
2652
+ onBlur: M,
2712
2653
  onKeyDown: B
2713
- } = a, K = Q(a, Vo), {
2654
+ } = a, K = Q(a, To), {
2714
2655
  expanded: V,
2715
- focused: A,
2716
- selected: z,
2656
+ focused: F,
2657
+ selected: _,
2717
2658
  disabled: j,
2718
2659
  editing: q,
2719
- handleExpansion: N,
2660
+ handleExpansion: L,
2720
2661
  handleCancelItemLabelEditing: H,
2721
- handleSaveItemLabel: L
2722
- } = kt(y), {
2662
+ handleSaveItemLabel: N
2663
+ } = St(y), {
2723
2664
  contentRef: W,
2724
- rootRef: O,
2725
- propsEnhancers: P
2726
- } = s(a), ne = x.useRef(null), ye = x.useRef(null), Re = de(n, O, ne), ke = de(b == null ? void 0 : b.ref, W, ye), oe = {
2727
- expandIcon: (h == null ? void 0 : h.expandIcon) ?? o.slots.expandIcon ?? Po,
2728
- collapseIcon: (h == null ? void 0 : h.collapseIcon) ?? o.slots.collapseIcon ?? Do,
2665
+ rootRef: P,
2666
+ propsEnhancers: O
2667
+ } = l(a), ne = x.useRef(null), ye = x.useRef(null), Me = de(n, P, ne), ke = de(b == null ? void 0 : b.ref, W, ye), oe = {
2668
+ expandIcon: (h == null ? void 0 : h.expandIcon) ?? o.slots.expandIcon ?? Eo,
2669
+ collapseIcon: (h == null ? void 0 : h.collapseIcon) ?? o.slots.collapseIcon ?? Co,
2729
2670
  endIcon: (h == null ? void 0 : h.endIcon) ?? o.slots.endIcon,
2730
2671
  icon: h == null ? void 0 : h.icon,
2731
2672
  groupTransition: h == null ? void 0 : h.groupTransition
2732
- }, M = (S) => Array.isArray(S) ? S.length > 0 && S.some(M) : !!S, F = M(m), _ = E({}, a, {
2673
+ }, S = (R) => Array.isArray(R) ? R.length > 0 && R.some(S) : !!R, $ = S(m), z = E({}, a, {
2733
2674
  expanded: V,
2734
- focused: A,
2735
- selected: z,
2675
+ focused: F,
2676
+ selected: _,
2736
2677
  disabled: j,
2737
2678
  indentationAtItemLevel: c
2738
- }), $ = Lo(_), Y = oe.groupTransition ?? void 0, xe = ce({
2679
+ }), A = Mo(z), Y = oe.groupTransition ?? void 0, xe = ce({
2739
2680
  elementType: Y,
2740
2681
  ownerState: {},
2741
2682
  externalSlotProps: f == null ? void 0 : f.groupTransition,
@@ -2747,105 +2688,105 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2747
2688
  }, c ? {
2748
2689
  indentationAtItemLevel: !0
2749
2690
  } : {}),
2750
- className: $.groupTransition
2751
- }), Vt = (S) => {
2752
- p === "iconContainer" && N(S);
2753
- }, Oe = V ? oe.collapseIcon : oe.expandIcon, $t = ce({
2754
- elementType: Oe,
2691
+ className: A.groupTransition
2692
+ }), Pt = (R) => {
2693
+ u === "iconContainer" && L(R);
2694
+ }, Pe = V ? oe.collapseIcon : oe.expandIcon, Ot = ce({
2695
+ elementType: Pe,
2755
2696
  ownerState: {},
2756
- externalSlotProps: (S) => V ? E({}, ie(o.slotProps.collapseIcon, S), ie(f == null ? void 0 : f.collapseIcon, S)) : E({}, ie(o.slotProps.expandIcon, S), ie(f == null ? void 0 : f.expandIcon, S)),
2697
+ externalSlotProps: (R) => V ? E({}, ie(o.slotProps.collapseIcon, R), ie(f == null ? void 0 : f.collapseIcon, R)) : E({}, ie(o.slotProps.expandIcon, R), ie(f == null ? void 0 : f.expandIcon, R)),
2757
2698
  additionalProps: {
2758
- onClick: Vt
2699
+ onClick: Pt
2759
2700
  }
2760
- }), At = Q($t, $o), Ft = F && Oe ? /* @__PURE__ */ w(Oe, E({}, At)) : null, Pe = F ? void 0 : oe.endIcon, Nt = ce({
2761
- elementType: Pe,
2701
+ }), Dt = Q(Ot, wo), Vt = $ && Pe ? /* @__PURE__ */ w(Pe, E({}, Dt)) : null, Oe = $ ? void 0 : oe.endIcon, At = ce({
2702
+ elementType: Oe,
2762
2703
  ownerState: {},
2763
- externalSlotProps: (S) => F ? {} : E({}, ie(o.slotProps.endIcon, S), ie(f == null ? void 0 : f.endIcon, S))
2764
- }), Lt = Q(Nt, Ao), jt = Pe ? /* @__PURE__ */ w(Pe, E({}, Lt)) : null, De = oe.icon, _t = ce({
2704
+ externalSlotProps: (R) => $ ? {} : E({}, ie(o.slotProps.endIcon, R), ie(f == null ? void 0 : f.endIcon, R))
2705
+ }), Ft = Q(At, vo), $t = Oe ? /* @__PURE__ */ w(Oe, E({}, Ft)) : null, De = oe.icon, Lt = ce({
2765
2706
  elementType: De,
2766
2707
  ownerState: {},
2767
2708
  externalSlotProps: f == null ? void 0 : f.icon
2768
- }), Bt = Q(_t, Fo), zt = De ? /* @__PURE__ */ w(De, E({}, Bt)) : null;
2709
+ }), Nt = Q(Lt, So), jt = De ? /* @__PURE__ */ w(De, E({}, Nt)) : null;
2769
2710
  let Ve;
2770
- i ? Ve = z : z && (Ve = !0);
2771
- function Ut(S) {
2772
- !A && (!j || d) && S.currentTarget === S.target && u.focusItem(S, y);
2711
+ i ? Ve = _ : _ && (Ve = !0);
2712
+ function zt(R) {
2713
+ !F && (!j || p) && R.currentTarget === R.target && d.focusItem(R, y);
2773
2714
  }
2774
- function Kt(S) {
2715
+ function Bt(R) {
2775
2716
  var re, ae, He, Ye;
2776
- R == null || R(S), !(q || // 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
2717
+ M == null || M(R), !(q || // 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
2777
2718
  // 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
2778
- S.relatedTarget && Fe(S.relatedTarget, ne.current) && (S.target && ((ae = (re = S.target) == null ? void 0 : re.dataset) == null ? void 0 : ae.element) === "labelInput" && Fe(S.target, ne.current) || ((Ye = (He = S.relatedTarget) == null ? void 0 : He.dataset) == null ? void 0 : Ye.element) === "labelInput")) && u.removeFocusedItem();
2719
+ R.relatedTarget && $e(R.relatedTarget, ne.current) && (R.target && ((ae = (re = R.target) == null ? void 0 : re.dataset) == null ? void 0 : ae.element) === "labelInput" && $e(R.target, ne.current) || ((Ye = (He = R.relatedTarget) == null ? void 0 : He.dataset) == null ? void 0 : Ye.element) === "labelInput")) && d.removeFocusedItem();
2779
2720
  }
2780
- const qt = (S) => {
2721
+ const _t = (R) => {
2781
2722
  var re, ae;
2782
- B == null || B(S), ((ae = (re = S.target) == null ? void 0 : re.dataset) == null ? void 0 : ae.element) !== "labelInput" && u.handleItemKeyDown(S, y);
2783
- }, Xt = u.getTreeItemIdAttribute(y, C), Wt = u.canItemBeTabbed(y) ? 0 : -1, Ee = {
2723
+ B == null || B(R), ((ae = (re = R.target) == null ? void 0 : re.dataset) == null ? void 0 : ae.element) !== "labelInput" && d.handleItemKeyDown(R, y);
2724
+ }, Ut = d.getTreeItemIdAttribute(y, C), Kt = d.canItemBeTabbed(y) ? 0 : -1, Ee = {
2784
2725
  rootRefObject: ne,
2785
2726
  contentRefObject: ye,
2786
2727
  interactions: {
2787
- handleSaveItemLabel: L,
2728
+ handleSaveItemLabel: N,
2788
2729
  handleCancelItemLabelEditing: H
2789
2730
  }
2790
- }, Jt = ((Xe = P.root) == null ? void 0 : Xe.call(P, E({}, Ee, {
2791
- externalEventHandlers: et(K)
2792
- }))) ?? {}, Gt = ((We = P.content) == null ? void 0 : We.call(P, E({}, Ee, {
2793
- externalEventHandlers: et(b)
2794
- }))) ?? {}, Ke = ((Je = P.dragAndDropOverlay) == null ? void 0 : Je.call(P, E({}, Ee, {
2731
+ }, qt = ((Xe = O.root) == null ? void 0 : Xe.call(O, E({}, Ee, {
2732
+ externalEventHandlers: Ze(K)
2733
+ }))) ?? {}, Xt = ((We = O.content) == null ? void 0 : We.call(O, E({}, Ee, {
2734
+ externalEventHandlers: Ze(b)
2735
+ }))) ?? {}, Ke = ((Je = O.dragAndDropOverlay) == null ? void 0 : Je.call(O, E({}, Ee, {
2795
2736
  externalEventHandlers: {}
2796
- }))) ?? {}, qe = ((Ge = P.labelInput) == null ? void 0 : Ge.call(P, E({}, Ee, {
2737
+ }))) ?? {}, qe = ((Ge = O.labelInput) == null ? void 0 : Ge.call(O, E({}, Ee, {
2797
2738
  externalEventHandlers: {}
2798
2739
  }))) ?? {};
2799
- return /* @__PURE__ */ w(Ot, {
2740
+ return /* @__PURE__ */ w(Rt, {
2800
2741
  itemId: y,
2801
- children: /* @__PURE__ */ ve(jo, E({
2802
- className: Ie($.root, I),
2742
+ children: /* @__PURE__ */ ve(ko, E({
2743
+ className: Ie(A.root, I),
2803
2744
  role: "treeitem",
2804
- "aria-expanded": F ? V : void 0,
2745
+ "aria-expanded": $ ? V : void 0,
2805
2746
  "aria-selected": Ve,
2806
2747
  "aria-disabled": j || void 0,
2807
- id: Xt,
2808
- tabIndex: Wt
2748
+ id: Ut,
2749
+ tabIndex: Kt
2809
2750
  }, K, {
2810
- ownerState: _,
2811
- onFocus: Ut,
2812
- onBlur: Kt,
2813
- onKeyDown: qt,
2814
- ref: Re,
2751
+ ownerState: z,
2752
+ onFocus: zt,
2753
+ onBlur: Bt,
2754
+ onKeyDown: _t,
2755
+ ref: Me,
2815
2756
  style: c ? E({}, K.style, {
2816
- "--TreeView-itemDepth": typeof l == "function" ? l(y) : l
2757
+ "--TreeView-itemDepth": typeof s == "function" ? s(y) : s
2817
2758
  }) : K.style
2818
- }, Jt, {
2819
- children: [/* @__PURE__ */ w(_o, E({
2759
+ }, qt, {
2760
+ children: [/* @__PURE__ */ w(Po, E({
2820
2761
  as: g,
2821
2762
  classes: {
2822
- root: $.content,
2823
- expanded: $.expanded,
2824
- selected: $.selected,
2825
- focused: $.focused,
2826
- disabled: $.disabled,
2827
- editable: $.editable,
2828
- editing: $.editing,
2829
- iconContainer: $.iconContainer,
2830
- label: $.label,
2831
- labelInput: $.labelInput,
2832
- checkbox: $.checkbox
2763
+ root: A.content,
2764
+ expanded: A.expanded,
2765
+ selected: A.selected,
2766
+ focused: A.focused,
2767
+ disabled: A.disabled,
2768
+ editable: A.editable,
2769
+ editing: A.editing,
2770
+ iconContainer: A.iconContainer,
2771
+ label: A.label,
2772
+ labelInput: A.labelInput,
2773
+ checkbox: A.checkbox
2833
2774
  },
2834
2775
  label: k,
2835
2776
  itemId: y,
2836
2777
  onClick: T,
2837
2778
  onMouseDown: v,
2838
- icon: zt,
2839
- expansionIcon: Ft,
2840
- displayIcon: jt,
2841
- ownerState: _
2842
- }, b, Gt, Ke.action == null ? {} : {
2779
+ icon: jt,
2780
+ expansionIcon: Vt,
2781
+ displayIcon: $t,
2782
+ ownerState: z
2783
+ }, b, Xt, Ke.action == null ? {} : {
2843
2784
  dragAndDropOverlayProps: Ke
2844
2785
  }, qe.value == null ? {} : {
2845
2786
  labelInputProps: qe
2846
2787
  }, {
2847
2788
  ref: ke
2848
- })), m && /* @__PURE__ */ w(Bo, E({
2789
+ })), m && /* @__PURE__ */ w(Oo, E({
2849
2790
  as: Y
2850
2791
  }, xe, {
2851
2792
  children: m
@@ -2853,7 +2794,7 @@ const Vo = ["children", "className", "slots", "slotProps", "ContentComponent", "
2853
2794
  }))
2854
2795
  });
2855
2796
  });
2856
- process.env.NODE_ENV !== "production" && (Pt.propTypes = {
2797
+ process.env.NODE_ENV !== "production" && (Mt.propTypes = {
2857
2798
  // ----------------------------- Warning --------------------------------
2858
2799
  // | These PropTypes are generated from the TypeScript type definitions |
2859
2800
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -2871,7 +2812,7 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
2871
2812
  * The component used to render the content of the item.
2872
2813
  * @default TreeItemContent
2873
2814
  */
2874
- ContentComponent: rt,
2815
+ ContentComponent: ot,
2875
2816
  /**
2876
2817
  * Props applied to ContentComponent.
2877
2818
  */
@@ -2893,7 +2834,7 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
2893
2834
  * This prop isn't supported.
2894
2835
  * Use the `onItemFocus` callback on the tree if you need to monitor a item's focus.
2895
2836
  */
2896
- onFocus: mn,
2837
+ onFocus: ln,
2897
2838
  /**
2898
2839
  * Callback fired when a key of the keyboard is pressed on the item.
2899
2840
  */
@@ -2913,46 +2854,42 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
2913
2854
  */
2914
2855
  sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
2915
2856
  });
2916
- const Xo = ({
2857
+ const Lo = ({
2917
2858
  items: e,
2918
2859
  handleCheck: t,
2919
2860
  width: n = "250px",
2920
2861
  height: o = "350px",
2921
- expanded: s
2922
- }) => /* @__PURE__ */ w(In, { width: n, height: o, children: /* @__PURE__ */ w(Rt, { expandedItems: s, children: Dt(e, t) }) }), Dt = (e, t) => e.map((n) => /* @__PURE__ */ Ht(zo, { ...n, key: n.id, handleCheck: t })), zo = ({
2862
+ expanded: l
2863
+ }) => /* @__PURE__ */ w(an, { width: n, height: o, children: /* @__PURE__ */ w(vt, { expandedItems: l, children: kt(e, t) }) }), kt = (e, t) => e.map((n) => /* @__PURE__ */ Wt(Do, { ...n, key: n.id, handleCheck: t })), Do = ({
2923
2864
  id: e,
2924
2865
  checked: t,
2925
2866
  children: n,
2926
2867
  label: o,
2927
- handleCheck: s
2868
+ handleCheck: l
2928
2869
  }) => /* @__PURE__ */ w(
2929
- Pt,
2870
+ Mt,
2930
2871
  {
2931
2872
  itemId: e,
2932
- label: /* @__PURE__ */ ve(gn, { flexDirection: "row", alignItems: "center", children: [
2933
- /* @__PURE__ */ w(hn, { children: o }),
2934
- s && /* @__PURE__ */ w(
2935
- bn,
2873
+ label: /* @__PURE__ */ ve(cn, { flexDirection: "row", alignItems: "center", children: [
2874
+ /* @__PURE__ */ w(dn, { children: o }),
2875
+ l && /* @__PURE__ */ w(
2876
+ un,
2936
2877
  {
2937
2878
  disableRipple: !0,
2938
2879
  sx: { marginLeft: "auto" },
2939
- onClick: (d) => {
2940
- d.stopPropagation(), s(e, !t);
2880
+ onClick: (p) => {
2881
+ p.stopPropagation(), l(e, !t);
2941
2882
  },
2942
2883
  "data-testid": `toggle-visibility-${e}`,
2943
- children: t ? /* @__PURE__ */ w(qn, { "data-testid": `visibility-icon-${e}` }) : /* @__PURE__ */ w(Xn, { "data-testid": `visibility-off-icon-${e}` })
2884
+ children: t ? /* @__PURE__ */ w(Fn, { "data-testid": `visibility-icon-${e}` }) : /* @__PURE__ */ w($n, { "data-testid": `visibility-off-icon-${e}` })
2944
2885
  }
2945
2886
  )
2946
2887
  ] }),
2947
- children: n.length > 0 && Dt(n, s)
2888
+ children: n.length > 0 && kt(n, l)
2948
2889
  }
2949
2890
  );
2950
2891
  export {
2951
- Le as C,
2952
- ct as F,
2953
- Xo as T,
2954
- X as a,
2955
- Cn as b,
2956
- ut as c,
2957
- kn as u
2892
+ Ne as C,
2893
+ Lo as T,
2894
+ at as a
2958
2895
  };