@k3-universe/react-kit 0.0.35 → 0.0.37

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 (411) hide show
  1. package/dist/index.js +15 -2
  2. package/dist/kit/builder/form/hooks/useFormBuilder.d.ts.map +1 -1
  3. package/dist/kit/builder/section/SectionBuilder.d.ts.map +1 -1
  4. package/package.json +1 -1
  5. package/src/kit/builder/form/hooks/useFormBuilder.ts +3 -0
  6. package/src/kit/builder/section/SectionBuilder.tsx +22 -4
  7. package/storybook-static/assets/Accordion.stories-KU4JBR8U.js +52 -0
  8. package/storybook-static/assets/AdminLayout-CPvVCwfY.js +53 -0
  9. package/storybook-static/assets/AdminLayout.Basic.stories-DkP2UVXe.js +4 -0
  10. package/storybook-static/assets/AdminLayout.Collapsible.stories-BuuVjtpW.js +4 -0
  11. package/storybook-static/assets/AdminLayout.Complex.stories-D-k4H0hJ.js +29 -0
  12. package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-B_0IEDd4.js +9 -0
  13. package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-CvAeXUyA.js +4 -0
  14. package/storybook-static/assets/AdminLayout.HeaderSlots.stories-RBFHoSZK.js +7 -0
  15. package/storybook-static/assets/Alert.stories-DKxKtIc0.js +27 -0
  16. package/storybook-static/assets/AlertDialog.stories-BqTpZ_nG.js +43 -0
  17. package/storybook-static/assets/AspectRatio.stories-DPO9QQ5F.js +22 -0
  18. package/storybook-static/assets/Autocomplete-Cpg4CaJe.js +56 -0
  19. package/storybook-static/assets/Autocomplete.stories-CWj4G5fh.js +56 -0
  20. package/storybook-static/assets/Avatar.stories-DPhov_2g.js +12 -0
  21. package/storybook-static/assets/Badge.stories-DFKrRdXq.js +12 -0
  22. package/storybook-static/assets/Breadcrumb.stories-CTE6CZUC.js +25 -0
  23. package/storybook-static/assets/Button.stories-cbt2InL-.js +26 -0
  24. package/storybook-static/assets/Calendar.stories-DRhTw_43.js +3 -0
  25. package/storybook-static/assets/Card.stories-Isf6n_K3.js +15 -0
  26. package/storybook-static/assets/Carousel.stories-Cmg0I3fR.js +15 -0
  27. package/storybook-static/assets/Chart.stories-aQ-fNijT.js +126 -0
  28. package/storybook-static/assets/Checkbox.stories-B7YMXPDc.js +12 -0
  29. package/storybook-static/assets/Collapsible.stories-BUzl17ZZ.js +18 -0
  30. package/storybook-static/assets/Combination-BdQWAuko.js +41 -0
  31. package/storybook-static/assets/Command.stories-DzBlWQs0.js +30 -0
  32. package/storybook-static/assets/ContextMenu.stories-CJlBQyXc.js +31 -0
  33. package/storybook-static/assets/DataTable.Basic.stories-BWYKFDmK.js +6 -0
  34. package/storybook-static/assets/DataTable.Filters.stories-uZdtJk8t.js +21 -0
  35. package/storybook-static/assets/DataTable.Pagination.stories-C5N1khkp.js +24 -0
  36. package/storybook-static/assets/DataTable.SelectionAndActions.stories-FhCqZKvO.js +26 -0
  37. package/storybook-static/assets/DataTable.Sorting.stories-D-k7EtRj.js +6 -0
  38. package/storybook-static/assets/Dialog.stories-C62AF-Gx.js +54 -0
  39. package/storybook-static/assets/Dialog.stories-lrjRwOus.js +18 -0
  40. package/storybook-static/assets/Drawer.stories-CGjkdJeV.js +24 -0
  41. package/storybook-static/assets/DropdownMenu.stories-DkGClRAA.js +35 -0
  42. package/storybook-static/assets/Form.ArrayLayouts.stories-C5d_062d.js +130 -0
  43. package/storybook-static/assets/Form.Autocomplete.stories-CPZPkk4o.js +142 -0
  44. package/storybook-static/assets/Form.Basic.stories-Bhcu3-3n.js +58 -0
  45. package/storybook-static/assets/Form.Complex.stories-QnXh5a7Q.js +361 -0
  46. package/storybook-static/assets/Form.Dynamic.stories-DFW6wIuT.js +502 -0
  47. package/storybook-static/assets/Form.Simple.stories-BhJcyhbE.js +53 -0
  48. package/storybook-static/assets/Form.stories-PFNsMYxO.js +3 -0
  49. package/storybook-static/assets/FormBuilder-BQBBxo_k.js +5 -0
  50. package/storybook-static/assets/HoverCard.stories-CAlQEVn8.js +21 -0
  51. package/storybook-static/assets/Input.stories-CEhODt0V.js +16 -0
  52. package/storybook-static/assets/InputOtp.stories-DSvNP4dS.js +42 -0
  53. package/storybook-static/assets/Label.stories-B3pa8ZLY.js +14 -0
  54. package/storybook-static/assets/Login.stories-C7KQkmR_.js +37 -0
  55. package/storybook-static/assets/Menubar.stories-CHXhSHxc.js +44 -0
  56. package/storybook-static/assets/MonthPicker.stories-BnrOc4fm.js +99 -0
  57. package/storybook-static/assets/MonthRangePicker.stories-55Gk1t-7.js +134 -0
  58. package/storybook-static/assets/NavigationMenu.stories-CXoS080P.js +30 -0
  59. package/storybook-static/assets/Page.stories-GdSJgZ6-.js +91 -0
  60. package/storybook-static/assets/Pagination.stories-BEBwqH4N.js +29 -0
  61. package/storybook-static/assets/Popover.stories-BICy98Cw.js +15 -0
  62. package/storybook-static/assets/Progress.stories-DECHNOME.js +8 -0
  63. package/storybook-static/assets/RadioGroup.stories-DA7-uKfV.js +16 -0
  64. package/storybook-static/assets/Resizable.stories-B99kWkH7.js +25 -0
  65. package/storybook-static/assets/ScrollArea.stories-BqvUAXqU.js +12 -0
  66. package/storybook-static/assets/Section.stories-lFMlFBQn.js +277 -0
  67. package/storybook-static/assets/SectionBuilder-BQW705x0.js +1 -0
  68. package/storybook-static/assets/Select.stories-BsKyZ6Io.js +17 -0
  69. package/storybook-static/assets/Separator.stories-BTDOaOM2.js +17 -0
  70. package/storybook-static/assets/Sheet.stories-Cam1gR6G.js +24 -0
  71. package/storybook-static/assets/Sidebar.stories-DnOa6G7y.js +106 -0
  72. package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +9 -0
  73. package/storybook-static/assets/Slider.stories-Bslq7hjq.js +6 -0
  74. package/storybook-static/assets/Sonner.stories-D34pBBtI.js +18 -0
  75. package/storybook-static/assets/Switch.stories-Puyb1-Bx.js +3 -0
  76. package/storybook-static/assets/Table.stories-ClZxAhut.js +35 -0
  77. package/storybook-static/assets/Tabs.stories-CURNTETB.js +10 -0
  78. package/storybook-static/assets/Textarea.stories-Cf1ZBrWw.js +17 -0
  79. package/storybook-static/assets/Toggle.stories-CdMHY_bi.js +3 -0
  80. package/storybook-static/assets/ToggleGroup.stories-BM68m1dX.js +13 -0
  81. package/storybook-static/assets/Tooltip.stories-DiQv64dM.js +10 -0
  82. package/storybook-static/assets/accordion-DVgwQcnw.js +1 -0
  83. package/storybook-static/assets/alert-dialog-DCUEwpqm.js +7 -0
  84. package/storybook-static/assets/avatar-BzwOE-mi.js +1 -0
  85. package/storybook-static/assets/axe-HmUsR1st.js +30 -0
  86. package/storybook-static/assets/badge-BnQWua6u.js +1 -0
  87. package/storybook-static/assets/button-0oMkiryo.js +1 -0
  88. package/storybook-static/assets/card-BJpPOzP8.js +1 -0
  89. package/storybook-static/assets/chart-column-DZGb4ZZS.js +6 -0
  90. package/storybook-static/assets/check-B9hBGj6o.js +6 -0
  91. package/storybook-static/assets/checkbox-CyIeaWHX.js +1 -0
  92. package/storybook-static/assets/chevron-down-D_37S6il.js +6 -0
  93. package/storybook-static/assets/chevron-left-BBoN0vbI.js +6 -0
  94. package/storybook-static/assets/chevron-right-B5vIMLxK.js +6 -0
  95. package/storybook-static/assets/circle-C5Lzx6Nx.js +6 -0
  96. package/storybook-static/assets/clean-slate-D1HmMFJM.css +1 -0
  97. package/storybook-static/assets/command-Csa9p8_a.js +6 -0
  98. package/storybook-static/assets/createLucideIcon-BrHXro7t.js +21 -0
  99. package/storybook-static/assets/default-CN_Fo1GY.css +1 -0
  100. package/storybook-static/assets/dependencies-ctrV69dx.js +1 -0
  101. package/storybook-static/assets/dialog-CsnqITTn.js +1 -0
  102. package/storybook-static/assets/dropdown-menu-BWxxwPHL.js +1 -0
  103. package/storybook-static/assets/ellipsis-BRS038RR.js +6 -0
  104. package/storybook-static/assets/grip-vertical-BxXG8KNA.js +6 -0
  105. package/storybook-static/assets/iframe-C9bogcIc.css +1 -0
  106. package/storybook-static/assets/iframe-v7iAhKit.js +1555 -0
  107. package/storybook-static/assets/index-0-qMRXou.js +1 -0
  108. package/storybook-static/assets/index-AvwFFKJc.js +1 -0
  109. package/storybook-static/assets/index-BVDb4dFc.js +1 -0
  110. package/storybook-static/assets/index-B_qx7A5T.js +1 -0
  111. package/storybook-static/assets/index-BdQq_4o_.js +1 -0
  112. package/storybook-static/assets/index-BfiCOk42.js +1 -0
  113. package/storybook-static/assets/index-Bv9yk470.js +1 -0
  114. package/storybook-static/assets/index-Bw1A27Kp.js +1 -0
  115. package/storybook-static/assets/index-ByqivBWx.js +1 -0
  116. package/storybook-static/assets/index-C9Ta0ZTH.js +1 -0
  117. package/storybook-static/assets/index-CDY5kTx5.js +1 -0
  118. package/storybook-static/assets/index-CGnyVRgB.js +1 -0
  119. package/storybook-static/assets/index-CGrAONsN.js +1 -0
  120. package/storybook-static/assets/index-CWjrGFAQ.js +1 -0
  121. package/storybook-static/assets/index-CwBdPBFz.js +9 -0
  122. package/storybook-static/assets/index-D8RXF03I.js +1 -0
  123. package/storybook-static/assets/index-DLIxT4Z7.js +1 -0
  124. package/storybook-static/assets/index-DW48STyt.js +1 -0
  125. package/storybook-static/assets/index-DbaA6-o1.js +1 -0
  126. package/storybook-static/assets/index-Dph_5COR.js +1 -0
  127. package/storybook-static/assets/index-DrN5n71E.js +1 -0
  128. package/storybook-static/assets/index-Tp9IdbR8.js +1 -0
  129. package/storybook-static/assets/index-WyF3-wTE.js +9 -0
  130. package/storybook-static/assets/index-XSmPROEP.js +1 -0
  131. package/storybook-static/assets/index-Z6wF44KX.js +5 -0
  132. package/storybook-static/assets/index-_RPqOjlQ.js +1 -0
  133. package/storybook-static/assets/index-jrimW4QO.js +1 -0
  134. package/storybook-static/assets/index-nqc17SX4.js +1 -0
  135. package/storybook-static/assets/input-11YRd9gD.js +1 -0
  136. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
  137. package/storybook-static/assets/label-Do8ODIVk.js +1 -0
  138. package/storybook-static/assets/lodash-DDwpuhPG.js +73 -0
  139. package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
  140. package/storybook-static/assets/minimal-modern-BlYVzfQU.css +1 -0
  141. package/storybook-static/assets/popover-CcciSWAw.js +1 -0
  142. package/storybook-static/assets/preload-helper-Dp1pzeXC.js +1 -0
  143. package/storybook-static/assets/radio-group-DiJ0Y_KQ.js +1 -0
  144. package/storybook-static/assets/react-18-Cr9fq_Ip.js +25 -0
  145. package/storybook-static/assets/react-icons.esm-B_ULMmNU.js +1 -0
  146. package/storybook-static/assets/refresh-cw-BmRDhIV_.js +6 -0
  147. package/storybook-static/assets/schemas-CGNYCiJ6.js +18 -0
  148. package/storybook-static/assets/section-factories-DCCY9R35.js +1 -0
  149. package/storybook-static/assets/select-DDrkxaOg.js +6 -0
  150. package/storybook-static/assets/separator-o5SAUnaJ.js +1 -0
  151. package/storybook-static/assets/settings-2-xWGvvbG6.js +6 -0
  152. package/storybook-static/assets/sheet-C7jhU3XE.js +1 -0
  153. package/storybook-static/assets/shopping-cart-BFlrufvo.js +11 -0
  154. package/storybook-static/assets/sidebar-C8hU1Mxy.js +6 -0
  155. package/storybook-static/assets/skeleton-CjDnQs43.js +1 -0
  156. package/storybook-static/assets/spotify-CUDj7g8m.css +1 -0
  157. package/storybook-static/assets/switch-CKGRuk3u.js +1 -0
  158. package/storybook-static/assets/table-CP3vMqFn.js +1 -0
  159. package/storybook-static/assets/tabs-CopK2m3j.js +1 -0
  160. package/storybook-static/assets/textarea-Dw2vruMl.js +1 -0
  161. package/storybook-static/assets/toggle-DmHbWetf.js +16 -0
  162. package/storybook-static/assets/tooltip-_LqYEYFw.js +1 -0
  163. package/storybook-static/assets/trash-2-xdbApPby.js +11 -0
  164. package/storybook-static/assets/utils-D-KgF5mV.js +1 -0
  165. package/storybook-static/assets/x-B1a4fyWM.js +6 -0
  166. package/storybook-static/favicon-wrapper.svg +46 -0
  167. package/storybook-static/favicon.svg +1 -0
  168. package/storybook-static/iframe.html +687 -0
  169. package/storybook-static/index.d.ts +64 -0
  170. package/storybook-static/index.d.ts.map +1 -0
  171. package/storybook-static/index.html +166 -0
  172. package/storybook-static/index.json +1 -0
  173. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +37 -0
  174. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +1 -0
  175. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +8 -0
  176. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +1 -0
  177. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +6 -0
  178. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +1 -0
  179. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +5 -0
  180. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +1 -0
  181. package/storybook-static/kit/builder/data-table/index.d.ts +7 -0
  182. package/storybook-static/kit/builder/data-table/index.d.ts.map +1 -0
  183. package/storybook-static/kit/builder/data-table/types.d.ts +27 -0
  184. package/storybook-static/kit/builder/data-table/types.d.ts.map +1 -0
  185. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +2 -0
  186. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +1 -0
  187. package/storybook-static/kit/builder/dialog/index.d.ts +3 -0
  188. package/storybook-static/kit/builder/dialog/index.d.ts.map +1 -0
  189. package/storybook-static/kit/builder/dialog/provider.d.ts +26 -0
  190. package/storybook-static/kit/builder/dialog/provider.d.ts.map +1 -0
  191. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +137 -0
  192. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +1 -0
  193. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts +20 -0
  194. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts.map +1 -0
  195. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts +12 -0
  196. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts.map +1 -0
  197. package/storybook-static/kit/builder/form/components/fields/ArrayField.d.ts +3 -0
  198. package/storybook-static/kit/builder/form/components/fields/ArrayField.d.ts.map +1 -0
  199. package/storybook-static/kit/builder/form/components/fields/AutocompleteField.d.ts +3 -0
  200. package/storybook-static/kit/builder/form/components/fields/AutocompleteField.d.ts.map +1 -0
  201. package/storybook-static/kit/builder/form/components/fields/CheckboxField.d.ts +3 -0
  202. package/storybook-static/kit/builder/form/components/fields/CheckboxField.d.ts.map +1 -0
  203. package/storybook-static/kit/builder/form/components/fields/DateField.d.ts +3 -0
  204. package/storybook-static/kit/builder/form/components/fields/DateField.d.ts.map +1 -0
  205. package/storybook-static/kit/builder/form/components/fields/FileField.d.ts +3 -0
  206. package/storybook-static/kit/builder/form/components/fields/FileField.d.ts.map +1 -0
  207. package/storybook-static/kit/builder/form/components/fields/NumberField.d.ts +3 -0
  208. package/storybook-static/kit/builder/form/components/fields/NumberField.d.ts.map +1 -0
  209. package/storybook-static/kit/builder/form/components/fields/ObjectField.d.ts +3 -0
  210. package/storybook-static/kit/builder/form/components/fields/ObjectField.d.ts.map +1 -0
  211. package/storybook-static/kit/builder/form/components/fields/RadioField.d.ts +3 -0
  212. package/storybook-static/kit/builder/form/components/fields/RadioField.d.ts.map +1 -0
  213. package/storybook-static/kit/builder/form/components/fields/SelectField.d.ts +3 -0
  214. package/storybook-static/kit/builder/form/components/fields/SelectField.d.ts.map +1 -0
  215. package/storybook-static/kit/builder/form/components/fields/SwitchField.d.ts +3 -0
  216. package/storybook-static/kit/builder/form/components/fields/SwitchField.d.ts.map +1 -0
  217. package/storybook-static/kit/builder/form/components/fields/TextField.d.ts +3 -0
  218. package/storybook-static/kit/builder/form/components/fields/TextField.d.ts.map +1 -0
  219. package/storybook-static/kit/builder/form/components/fields/TextareaField.d.ts +3 -0
  220. package/storybook-static/kit/builder/form/components/fields/TextareaField.d.ts.map +1 -0
  221. package/storybook-static/kit/builder/form/components/fields/index.d.ts +14 -0
  222. package/storybook-static/kit/builder/form/components/fields/index.d.ts.map +1 -0
  223. package/storybook-static/kit/builder/form/components/fields/types.d.ts +14 -0
  224. package/storybook-static/kit/builder/form/components/fields/types.d.ts.map +1 -0
  225. package/storybook-static/kit/builder/form/components/index.d.ts +4 -0
  226. package/storybook-static/kit/builder/form/components/index.d.ts.map +1 -0
  227. package/storybook-static/kit/builder/form/index.d.ts +3 -0
  228. package/storybook-static/kit/builder/form/index.d.ts.map +1 -0
  229. package/storybook-static/kit/builder/form/utils/common-forms.d.ts +7 -0
  230. package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +1 -0
  231. package/storybook-static/kit/builder/form/utils/dependencies.d.ts +41 -0
  232. package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +1 -0
  233. package/storybook-static/kit/builder/form/utils/field-factories.d.ts +23 -0
  234. package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +1 -0
  235. package/storybook-static/kit/builder/form/utils/index.d.ts +15 -0
  236. package/storybook-static/kit/builder/form/utils/index.d.ts.map +1 -0
  237. package/storybook-static/kit/builder/form/utils/section-factories.d.ts +7 -0
  238. package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +1 -0
  239. package/storybook-static/kit/builder/form/utils/transformers.d.ts +6 -0
  240. package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +1 -0
  241. package/storybook-static/kit/builder/form/utils/validations.d.ts +13 -0
  242. package/storybook-static/kit/builder/form/utils/validations.d.ts.map +1 -0
  243. package/storybook-static/kit/builder/form/utils/validators.d.ts +8 -0
  244. package/storybook-static/kit/builder/form/utils/validators.d.ts.map +1 -0
  245. package/storybook-static/kit/builder/page/Page.d.ts +48 -0
  246. package/storybook-static/kit/builder/page/Page.d.ts.map +1 -0
  247. package/storybook-static/kit/builder/page/index.d.ts +2 -0
  248. package/storybook-static/kit/builder/page/index.d.ts.map +1 -0
  249. package/storybook-static/kit/builder/section/SectionBuilder.d.ts +3 -0
  250. package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +1 -0
  251. package/storybook-static/kit/builder/section/index.d.ts +3 -0
  252. package/storybook-static/kit/builder/section/index.d.ts.map +1 -0
  253. package/storybook-static/kit/builder/section/types.d.ts +70 -0
  254. package/storybook-static/kit/builder/section/types.d.ts.map +1 -0
  255. package/storybook-static/kit/builder/stack-dialog/context.d.ts +3 -0
  256. package/storybook-static/kit/builder/stack-dialog/context.d.ts.map +1 -0
  257. package/storybook-static/kit/builder/stack-dialog/hooks.d.ts +6 -0
  258. package/storybook-static/kit/builder/stack-dialog/hooks.d.ts.map +1 -0
  259. package/storybook-static/kit/builder/stack-dialog/index.d.ts +5 -0
  260. package/storybook-static/kit/builder/stack-dialog/index.d.ts.map +1 -0
  261. package/storybook-static/kit/builder/stack-dialog/provider.d.ts +3 -0
  262. package/storybook-static/kit/builder/stack-dialog/provider.d.ts.map +1 -0
  263. package/storybook-static/kit/builder/stack-dialog/renderer.d.ts +6 -0
  264. package/storybook-static/kit/builder/stack-dialog/renderer.d.ts.map +1 -0
  265. package/storybook-static/kit/builder/stack-dialog/types.d.ts +20 -0
  266. package/storybook-static/kit/builder/stack-dialog/types.d.ts.map +1 -0
  267. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +53 -0
  268. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +1 -0
  269. package/storybook-static/kit/components/autocomplete/index.d.ts +4 -0
  270. package/storybook-static/kit/components/autocomplete/index.d.ts.map +1 -0
  271. package/storybook-static/kit/components/autocomplete/types.d.ts +19 -0
  272. package/storybook-static/kit/components/autocomplete/types.d.ts.map +1 -0
  273. package/storybook-static/kit/components/login/Login.d.ts +29 -0
  274. package/storybook-static/kit/components/login/Login.d.ts.map +1 -0
  275. package/storybook-static/kit/components/login/index.d.ts +2 -0
  276. package/storybook-static/kit/components/login/index.d.ts.map +1 -0
  277. package/storybook-static/kit/components/monthpicker/MonthPicker.d.ts +32 -0
  278. package/storybook-static/kit/components/monthpicker/MonthPicker.d.ts.map +1 -0
  279. package/storybook-static/kit/components/monthpicker/MonthRangePicker.d.ts +48 -0
  280. package/storybook-static/kit/components/monthpicker/MonthRangePicker.d.ts.map +1 -0
  281. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +17 -0
  282. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +1 -0
  283. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +5 -0
  284. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +1 -0
  285. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +13 -0
  286. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +1 -0
  287. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +7 -0
  288. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +1 -0
  289. package/storybook-static/kit/layouts/admin/types/index.d.ts +27 -0
  290. package/storybook-static/kit/layouts/admin/types/index.d.ts.map +1 -0
  291. package/storybook-static/kit/providers/ThemeProvider.d.ts +14 -0
  292. package/storybook-static/kit/providers/ThemeProvider.d.ts.map +1 -0
  293. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  294. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  295. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  296. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  297. package/storybook-static/project.json +1 -0
  298. package/storybook-static/sb-addons/a11y-5/manager-bundle.js +5 -0
  299. package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +3 -0
  300. package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +3 -0
  301. package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +3 -0
  302. package/storybook-static/sb-addons/interactions-4/manager-bundle.js +57 -0
  303. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
  304. package/storybook-static/sb-addons/storysource-6/manager-bundle.js +3 -0
  305. package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
  306. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  307. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  308. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  309. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  310. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  311. package/storybook-static/sb-manager/globals-module-info.js +797 -0
  312. package/storybook-static/sb-manager/globals-runtime.js +69653 -0
  313. package/storybook-static/sb-manager/globals.js +34 -0
  314. package/storybook-static/sb-manager/runtime.js +13181 -0
  315. package/storybook-static/shadcn/hooks/use-mobile.d.ts +2 -0
  316. package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +1 -0
  317. package/storybook-static/shadcn/lib/utils.d.ts +3 -0
  318. package/storybook-static/shadcn/lib/utils.d.ts.map +1 -0
  319. package/storybook-static/shadcn/ui/accordion.d.ts +8 -0
  320. package/storybook-static/shadcn/ui/accordion.d.ts.map +1 -0
  321. package/storybook-static/shadcn/ui/alert-dialog.d.ts +15 -0
  322. package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +1 -0
  323. package/storybook-static/shadcn/ui/alert.d.ts +10 -0
  324. package/storybook-static/shadcn/ui/alert.d.ts.map +1 -0
  325. package/storybook-static/shadcn/ui/aspect-ratio.d.ts +4 -0
  326. package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +1 -0
  327. package/storybook-static/shadcn/ui/avatar.d.ts +7 -0
  328. package/storybook-static/shadcn/ui/avatar.d.ts.map +1 -0
  329. package/storybook-static/shadcn/ui/badge.d.ts +10 -0
  330. package/storybook-static/shadcn/ui/badge.d.ts.map +1 -0
  331. package/storybook-static/shadcn/ui/breadcrumb.d.ts +12 -0
  332. package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +1 -0
  333. package/storybook-static/shadcn/ui/button.d.ts +11 -0
  334. package/storybook-static/shadcn/ui/button.d.ts.map +1 -0
  335. package/storybook-static/shadcn/ui/calendar.d.ts +9 -0
  336. package/storybook-static/shadcn/ui/calendar.d.ts.map +1 -0
  337. package/storybook-static/shadcn/ui/card.d.ts +10 -0
  338. package/storybook-static/shadcn/ui/card.d.ts.map +1 -0
  339. package/storybook-static/shadcn/ui/carousel.d.ts +20 -0
  340. package/storybook-static/shadcn/ui/carousel.d.ts.map +1 -0
  341. package/storybook-static/shadcn/ui/chart.d.ts +41 -0
  342. package/storybook-static/shadcn/ui/chart.d.ts.map +1 -0
  343. package/storybook-static/shadcn/ui/checkbox.d.ts +5 -0
  344. package/storybook-static/shadcn/ui/checkbox.d.ts.map +1 -0
  345. package/storybook-static/shadcn/ui/collapsible.d.ts +6 -0
  346. package/storybook-static/shadcn/ui/collapsible.d.ts.map +1 -0
  347. package/storybook-static/shadcn/ui/command.d.ts +19 -0
  348. package/storybook-static/shadcn/ui/command.d.ts.map +1 -0
  349. package/storybook-static/shadcn/ui/context-menu.d.ts +26 -0
  350. package/storybook-static/shadcn/ui/context-menu.d.ts.map +1 -0
  351. package/storybook-static/shadcn/ui/dialog.d.ts +16 -0
  352. package/storybook-static/shadcn/ui/dialog.d.ts.map +1 -0
  353. package/storybook-static/shadcn/ui/drawer.d.ts +14 -0
  354. package/storybook-static/shadcn/ui/drawer.d.ts.map +1 -0
  355. package/storybook-static/shadcn/ui/dropdown-menu.d.ts +26 -0
  356. package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +1 -0
  357. package/storybook-static/shadcn/ui/form.d.ts +25 -0
  358. package/storybook-static/shadcn/ui/form.d.ts.map +1 -0
  359. package/storybook-static/shadcn/ui/hover-card.d.ts +7 -0
  360. package/storybook-static/shadcn/ui/hover-card.d.ts.map +1 -0
  361. package/storybook-static/shadcn/ui/input-otp.d.ts +12 -0
  362. package/storybook-static/shadcn/ui/input-otp.d.ts.map +1 -0
  363. package/storybook-static/shadcn/ui/input.d.ts +4 -0
  364. package/storybook-static/shadcn/ui/input.d.ts.map +1 -0
  365. package/storybook-static/shadcn/ui/label.d.ts +5 -0
  366. package/storybook-static/shadcn/ui/label.d.ts.map +1 -0
  367. package/storybook-static/shadcn/ui/menubar.d.ts +27 -0
  368. package/storybook-static/shadcn/ui/menubar.d.ts.map +1 -0
  369. package/storybook-static/shadcn/ui/navigation-menu.d.ts +15 -0
  370. package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +1 -0
  371. package/storybook-static/shadcn/ui/pagination.d.ts +14 -0
  372. package/storybook-static/shadcn/ui/pagination.d.ts.map +1 -0
  373. package/storybook-static/shadcn/ui/popover.d.ts +8 -0
  374. package/storybook-static/shadcn/ui/popover.d.ts.map +1 -0
  375. package/storybook-static/shadcn/ui/progress.d.ts +5 -0
  376. package/storybook-static/shadcn/ui/progress.d.ts.map +1 -0
  377. package/storybook-static/shadcn/ui/radio-group.d.ts +6 -0
  378. package/storybook-static/shadcn/ui/radio-group.d.ts.map +1 -0
  379. package/storybook-static/shadcn/ui/resizable.d.ts +9 -0
  380. package/storybook-static/shadcn/ui/resizable.d.ts.map +1 -0
  381. package/storybook-static/shadcn/ui/scroll-area.d.ts +6 -0
  382. package/storybook-static/shadcn/ui/scroll-area.d.ts.map +1 -0
  383. package/storybook-static/shadcn/ui/select.d.ts +16 -0
  384. package/storybook-static/shadcn/ui/select.d.ts.map +1 -0
  385. package/storybook-static/shadcn/ui/separator.d.ts +5 -0
  386. package/storybook-static/shadcn/ui/separator.d.ts.map +1 -0
  387. package/storybook-static/shadcn/ui/sheet.d.ts +14 -0
  388. package/storybook-static/shadcn/ui/sheet.d.ts.map +1 -0
  389. package/storybook-static/shadcn/ui/sidebar.d.ts +70 -0
  390. package/storybook-static/shadcn/ui/sidebar.d.ts.map +1 -0
  391. package/storybook-static/shadcn/ui/skeleton.d.ts +3 -0
  392. package/storybook-static/shadcn/ui/skeleton.d.ts.map +1 -0
  393. package/storybook-static/shadcn/ui/slider.d.ts +5 -0
  394. package/storybook-static/shadcn/ui/slider.d.ts.map +1 -0
  395. package/storybook-static/shadcn/ui/sonner.d.ts +4 -0
  396. package/storybook-static/shadcn/ui/sonner.d.ts.map +1 -0
  397. package/storybook-static/shadcn/ui/switch.d.ts +5 -0
  398. package/storybook-static/shadcn/ui/switch.d.ts.map +1 -0
  399. package/storybook-static/shadcn/ui/table.d.ts +11 -0
  400. package/storybook-static/shadcn/ui/table.d.ts.map +1 -0
  401. package/storybook-static/shadcn/ui/tabs.d.ts +8 -0
  402. package/storybook-static/shadcn/ui/tabs.d.ts.map +1 -0
  403. package/storybook-static/shadcn/ui/textarea.d.ts +4 -0
  404. package/storybook-static/shadcn/ui/textarea.d.ts.map +1 -0
  405. package/storybook-static/shadcn/ui/toggle-group.d.ts +8 -0
  406. package/storybook-static/shadcn/ui/toggle-group.d.ts.map +1 -0
  407. package/storybook-static/shadcn/ui/toggle.d.ts +10 -0
  408. package/storybook-static/shadcn/ui/toggle.d.ts.map +1 -0
  409. package/storybook-static/shadcn/ui/tooltip.d.ts +8 -0
  410. package/storybook-static/shadcn/ui/tooltip.d.ts.map +1 -0
  411. package/storybook-static/vite-inject-mocker-entry.js +18 -0
package/dist/index.js CHANGED
@@ -11881,9 +11881,19 @@ function shallowEqualSpan(a2, b2) {
11881
11881
  if (!a2 || !b2) return !a2 && !b2;
11882
11882
  return a2.base === b2.base && a2.sm === b2.sm && a2.md === b2.md && a2.lg === b2.lg && a2.xl === b2.xl;
11883
11883
  }
11884
+ function isReactElement(value) {
11885
+ return value !== null && typeof value === "object" && "$$typeof" in value;
11886
+ }
11884
11887
  function shallowEqualLeaf(a2, b2) {
11885
- const renderKeyEqual = (a2.renderKey ?? null) === (b2.renderKey ?? null);
11886
- return a2.key === b2.key && a2.hidden === b2.hidden && a2.className === b2.className && a2.labelLayout === b2.labelLayout && a2.labelClassName === b2.labelClassName && a2.valueClassName === b2.valueClassName && a2.inlineLabelWidthClass === b2.inlineLabelWidthClass && shallowEqualSpan(a2.span, b2.span) && renderKeyEqual;
11888
+ if (a2.renderKey !== void 0 || b2.renderKey !== void 0) {
11889
+ if ((a2.renderKey ?? null) !== (b2.renderKey ?? null)) return false;
11890
+ } else {
11891
+ if (isReactElement(a2.content) || isReactElement(b2.content)) {
11892
+ return false;
11893
+ }
11894
+ if (a2.content !== b2.content) return false;
11895
+ }
11896
+ return a2.key === b2.key && a2.hidden === b2.hidden && a2.className === b2.className && a2.labelLayout === b2.labelLayout && a2.labelClassName === b2.labelClassName && a2.valueClassName === b2.valueClassName && a2.inlineLabelWidthClass === b2.inlineLabelWidthClass && shallowEqualSpan(a2.span, b2.span);
11887
11897
  }
11888
11898
  const SectionLeafRenderer = memo$1(
11889
11899
  function SectionLeafRenderer2({
@@ -36710,6 +36720,9 @@ function useFormBuilder(options) {
36710
36720
  case "custom_field":
36711
36721
  fieldSchema = any();
36712
36722
  break;
36723
+ case "hidden":
36724
+ fieldSchema = any();
36725
+ break;
36713
36726
  default:
36714
36727
  fieldSchema = string();
36715
36728
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useFormBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/kit/builder/form/hooks/useFormBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,qBAAqB,CACpC,YAAY,SAAS,WAAW,GAAG,WAAW;IAE9C,QAAQ,EAAE,wBAAwB,CAAC,YAAY,CAAC,EAAE,CAAC;IACnD,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB,CACnC,YAAY,SAAS,WAAW,GAAG,WAAW;IAE9C,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAClC,QAAQ,EAAE,wBAAwB,CAAC,YAAY,CAAC,EAAE,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EAC3E,OAAO,EAAE,qBAAqB,CAAC,YAAY,CAAC,GAC3C,oBAAoB,CAAC,YAAY,CAAC,CAoapC"}
1
+ {"version":3,"file":"useFormBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/kit/builder/form/hooks/useFormBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,qBAAqB,CACpC,YAAY,SAAS,WAAW,GAAG,WAAW;IAE9C,QAAQ,EAAE,wBAAwB,CAAC,YAAY,CAAC,EAAE,CAAC;IACnD,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB,CACnC,YAAY,SAAS,WAAW,GAAG,WAAW;IAE9C,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAClC,QAAQ,EAAE,wBAAwB,CAAC,YAAY,CAAC,EAAE,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EAC3E,OAAO,EAAE,qBAAqB,CAAC,YAAY,CAAC,GAC3C,oBAAoB,CAAC,YAAY,CAAC,CAuapC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../../src/kit/builder/section/SectionBuilder.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAA4B,MAAM,SAAS,CAAC;AA8Y7E,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,mBAAmB,2CAYrB"}
1
+ {"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../../src/kit/builder/section/SectionBuilder.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAA4B,MAAM,SAAS,CAAC;AAga7E,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,mBAAmB,2CAYrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3-universe/react-kit",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -275,6 +275,9 @@ export function useFormBuilder<TFieldValues extends FieldValues = FieldValues>(
275
275
  case 'custom_field':
276
276
  fieldSchema = z.any();
277
277
  break;
278
+ case 'hidden':
279
+ fieldSchema = z.any();
280
+ break;
278
281
  default:
279
282
  // Default to string for text, textarea, password, etc.
280
283
  fieldSchema = z.string();
@@ -226,9 +226,28 @@ function shallowEqualSpan(a?: SectionLeaf['span'], b?: SectionLeaf['span']) {
226
226
  );
227
227
  }
228
228
 
229
+ function isReactElement(value: unknown): boolean {
230
+ return (
231
+ value !== null &&
232
+ typeof value === 'object' &&
233
+ '$$typeof' in (value as object)
234
+ );
235
+ }
236
+
229
237
  function shallowEqualLeaf(a: SectionLeaf, b: SectionLeaf) {
230
- // Use renderKey when provided to force updates; otherwise ignore content ref equality
231
- const renderKeyEqual = (a.renderKey ?? null) === (b.renderKey ?? null);
238
+ // If renderKey is provided, use it for comparison
239
+ if (a.renderKey !== undefined || b.renderKey !== undefined) {
240
+ if ((a.renderKey ?? null) !== (b.renderKey ?? null)) return false;
241
+ } else {
242
+ // No renderKey: if content is a ReactElement, always re-render
243
+ // (JSX creates new object refs each render, so we can't reliably compare)
244
+ if (isReactElement(a.content) || isReactElement(b.content)) {
245
+ return false;
246
+ }
247
+ // For primitives (string, number, null, undefined), compare directly
248
+ if (a.content !== b.content) return false;
249
+ }
250
+
232
251
  return (
233
252
  a.key === b.key &&
234
253
  a.hidden === b.hidden &&
@@ -237,8 +256,7 @@ function shallowEqualLeaf(a: SectionLeaf, b: SectionLeaf) {
237
256
  a.labelClassName === b.labelClassName &&
238
257
  a.valueClassName === b.valueClassName &&
239
258
  a.inlineLabelWidthClass === b.inlineLabelWidthClass &&
240
- shallowEqualSpan(a.span, b.span) &&
241
- renderKeyEqual
259
+ shallowEqualSpan(a.span, b.span)
242
260
  );
243
261
  }
244
262
 
@@ -0,0 +1,52 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{A as n,a as o,b as r,c as i}from"./accordion-DVgwQcnw.js";import{r as T}from"./iframe-v7iAhKit.js";import"./index-CDY5kTx5.js";import"./index-Bv9yk470.js";import"./index-DbaA6-o1.js";import"./index-DW48STyt.js";import"./index-ByqivBWx.js";import"./index-D8RXF03I.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./index-CGnyVRgB.js";import"./index-AvwFFKJc.js";import"./index-BfiCOk42.js";import"./index-B_qx7A5T.js";import"./utils-D-KgF5mV.js";import"./chevron-down-D_37S6il.js";import"./createLucideIcon-BrHXro7t.js";import"./preload-helper-Dp1pzeXC.js";const G={title:"Shadcn/UI/Accordion",component:n},c={args:{type:"single",collapsible:!0},render:t=>e.jsxs(n,{...t,children:[e.jsxs(o,{value:"item-1",children:[e.jsx(r,{children:"Is it accessible?"}),e.jsx(i,{children:"Yes. It adheres to WAI-ARIA design patterns."})]}),e.jsxs(o,{value:"item-2",children:[e.jsx(r,{children:"Is it styled?"}),e.jsx(i,{children:"Yes. It comes with default styles that can be overridden."})]}),e.jsxs(o,{value:"item-3",children:[e.jsx(r,{children:"Is it animated?"}),e.jsx(i,{children:"Yes. It uses utility classes for smooth animations."})]})]})},s={args:{type:"multiple",defaultValue:["item-1"]},render:t=>e.jsxs(n,{...t,children:[e.jsxs(o,{value:"item-1",children:[e.jsx(r,{children:"Open multiple items?"}),e.jsx(i,{children:"Yes. In multiple mode you can keep several sections open."})]}),e.jsxs(o,{value:"item-2",children:[e.jsx(r,{children:"Keeps state independent?"}),e.jsx(i,{children:"Each item can be toggled independently in multiple mode."})]}),e.jsxs(o,{value:"item-3",children:[e.jsx(r,{children:"Works with defaultValue?"}),e.jsx(i,{children:"Provide an array of values to open initially."})]})]})},d={render:t=>e.jsxs(n,{...t,children:[e.jsxs(o,{value:"item-1",children:[e.jsx(r,{children:"Interactable item"}),e.jsx(i,{children:"This item can be toggled as usual."})]}),e.jsxs(o,{value:"item-2",disabled:!0,children:[e.jsx(r,{children:"Disabled item"}),e.jsx(i,{children:"This content cannot be toggled because the item is disabled."})]})]})};function y(){const[t,C]=T.useState("item-1");return e.jsxs(n,{type:"single",collapsible:!0,value:t,onValueChange:C,children:[e.jsxs(o,{value:"item-1",children:[e.jsx(r,{children:"Controlled: Item 1"}),e.jsx(i,{children:"Clicking again will collapse because collapsible is true."})]}),e.jsxs(o,{value:"item-2",children:[e.jsx(r,{children:"Controlled: Item 2"}),e.jsx(i,{children:"State is managed via value/onValueChange."})]})]})}const a={render:()=>e.jsx(y,{})};var l,m,u;c.parameters={...c.parameters,docs:{...(l=c.parameters)==null?void 0:l.docs,source:{originalSource:`{
2
+ args: {
3
+ type: 'single',
4
+ collapsible: true
5
+ },
6
+ render: args => <Accordion {...args}>
7
+ <AccordionItem value="item-1">
8
+ <AccordionTrigger>Is it accessible?</AccordionTrigger>
9
+ <AccordionContent>Yes. It adheres to WAI-ARIA design patterns.</AccordionContent>
10
+ </AccordionItem>
11
+ <AccordionItem value="item-2">
12
+ <AccordionTrigger>Is it styled?</AccordionTrigger>
13
+ <AccordionContent>Yes. It comes with default styles that can be overridden.</AccordionContent>
14
+ </AccordionItem>
15
+ <AccordionItem value="item-3">
16
+ <AccordionTrigger>Is it animated?</AccordionTrigger>
17
+ <AccordionContent>Yes. It uses utility classes for smooth animations.</AccordionContent>
18
+ </AccordionItem>
19
+ </Accordion>
20
+ }`,...(u=(m=c.parameters)==null?void 0:m.docs)==null?void 0:u.source}}};var p,g,A;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:`{
21
+ args: {
22
+ type: 'multiple',
23
+ defaultValue: ['item-1']
24
+ },
25
+ render: args => <Accordion {...args}>
26
+ <AccordionItem value="item-1">
27
+ <AccordionTrigger>Open multiple items?</AccordionTrigger>
28
+ <AccordionContent>Yes. In multiple mode you can keep several sections open.</AccordionContent>
29
+ </AccordionItem>
30
+ <AccordionItem value="item-2">
31
+ <AccordionTrigger>Keeps state independent?</AccordionTrigger>
32
+ <AccordionContent>Each item can be toggled independently in multiple mode.</AccordionContent>
33
+ </AccordionItem>
34
+ <AccordionItem value="item-3">
35
+ <AccordionTrigger>Works with defaultValue?</AccordionTrigger>
36
+ <AccordionContent>Provide an array of values to open initially.</AccordionContent>
37
+ </AccordionItem>
38
+ </Accordion>
39
+ }`,...(A=(g=s.parameters)==null?void 0:g.docs)==null?void 0:A.source}}};var h,I,x;d.parameters={...d.parameters,docs:{...(h=d.parameters)==null?void 0:h.docs,source:{originalSource:`{
40
+ render: args => <Accordion {...args}>
41
+ <AccordionItem value="item-1">
42
+ <AccordionTrigger>Interactable item</AccordionTrigger>
43
+ <AccordionContent>This item can be toggled as usual.</AccordionContent>
44
+ </AccordionItem>
45
+ <AccordionItem value="item-2" disabled>
46
+ <AccordionTrigger>Disabled item</AccordionTrigger>
47
+ <AccordionContent>This content cannot be toggled because the item is disabled.</AccordionContent>
48
+ </AccordionItem>
49
+ </Accordion>
50
+ }`,...(x=(I=d.parameters)==null?void 0:I.docs)==null?void 0:x.source}}};var j,v,b;a.parameters={...a.parameters,docs:{...(j=a.parameters)==null?void 0:j.docs,source:{originalSource:`{
51
+ render: () => <ControlledAccordionDemo />
52
+ }`,...(b=(v=a.parameters)==null?void 0:v.docs)==null?void 0:b.source}}};const H=["Basic","Multiple","DisabledItem","Controlled"];export{c as Basic,a as Controlled,d as DisabledItem,s as Multiple,H as __namedExportsOrder,G as default};
@@ -0,0 +1,53 @@
1
+ import{c as he}from"./createLucideIcon-BrHXro7t.js";import{j as m}from"./jsx-runtime-D_zvdyIk.js";import{i as U,r as R,R as xe,a as bo}from"./iframe-v7iAhKit.js";import{S as Po,a as wo,b as Co,c as Mo,d as Lo,e as ko,f as To,g as bt,h as Io,i as Pt,j as wt,k as Eo,l as jo}from"./sidebar-C8hU1Mxy.js";import{S as No}from"./separator-o5SAUnaJ.js";import{r as Ao}from"./index-DrN5n71E.js";import{r as $o}from"./index-WyF3-wTE.js";import{D as Fo,a as Oo,b as Do,c as Bo,d as Vo,f as Ue}from"./dropdown-menu-BWxxwPHL.js";import{B as zo}from"./button-0oMkiryo.js";import{J as Wo,z as Ko}from"./index-Dph_5COR.js";import{C as Uo}from"./chevron-down-D_37S6il.js";import{C as Ho}from"./chevron-right-B5vIMLxK.js";import{C as qo}from"./circle-C5Lzx6Nx.js";/**
2
+ * @license lucide-react v0.540.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Go=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],tn=he("house",Go);/**
7
+ * @license lucide-react v0.540.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Jo=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Ct=he("laptop",Jo);/**
12
+ * @license lucide-react v0.540.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const Yo=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Xo=he("log-out",Yo);/**
17
+ * @license lucide-react v0.540.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const Zo=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Mt=he("moon",Zo);/**
22
+ * @license lucide-react v0.540.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const Qo=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],es=he("package",Qo);/**
27
+ * @license lucide-react v0.540.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const ts=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Lt=he("sun",ts);const ne=new WeakMap,Te=new WeakMap,Ee={current:[]};let He=!1,ye=0;const ge=new Set,Ce=new Map;function Jt(e){const o=Array.from(e).sort((t,s)=>t instanceof ie&&t.options.deps.includes(s)?1:s instanceof ie&&s.options.deps.includes(t)?-1:0);for(const t of o){if(Ee.current.includes(t))continue;Ee.current.push(t),t.recompute();const s=Te.get(t);if(s)for(const r of s){const n=ne.get(r);n&&Jt(n)}}}function os(e){e.listeners.forEach(o=>o({prevVal:e.prevState,currentVal:e.state}))}function ss(e){e.listeners.forEach(o=>o({prevVal:e.prevState,currentVal:e.state}))}function Yt(e){if(ye>0&&!Ce.has(e)&&Ce.set(e,e.prevState),ge.add(e),!(ye>0)&&!He)try{for(He=!0;ge.size>0;){const o=Array.from(ge);ge.clear();for(const t of o){const s=Ce.get(t)??t.prevState;t.prevState=s,os(t)}for(const t of o){const s=ne.get(t);s&&(Ee.current.push(t),Jt(s))}for(const t of o){const s=ne.get(t);if(s)for(const r of s)ss(r)}}}finally{He=!1,Ee.current=[],Ce.clear()}}function _e(e){ye++;try{e()}finally{if(ye--,ye===0){const o=Array.from(ge)[0];o&&Yt(o)}}}function rs(e){return typeof e=="function"}class tt{constructor(o,t){this.listeners=new Set,this.subscribe=s=>{var r,n;this.listeners.add(s);const a=(n=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:n.call(r,s,this);return()=>{this.listeners.delete(s),a==null||a()}},this.prevState=o,this.state=o,this.options=t}setState(o){var t,s,r;this.prevState=this.state,(t=this.options)!=null&&t.updateFn?this.state=this.options.updateFn(this.prevState)(o):rs(o)?this.state=o(this.prevState):this.state=o,(r=(s=this.options)==null?void 0:s.onUpdate)==null||r.call(s),Yt(this)}}class ie{constructor(o){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],s=[];for(const r of this.options.deps)t.push(r.prevState),s.push(r.state);return this.lastSeenDepValues=s,{prevDepVals:t,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,s;this.prevState=this.state;const{prevDepVals:r,currDepVals:n,prevVal:a}=this.getDepVals();this.state=this.options.fn({prevDepVals:r,currDepVals:n,prevVal:a}),(s=(t=this.options).onUpdate)==null||s.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const n of this.options.deps)n instanceof ie&&n.checkIfRecalculationNeededDeeply();let t=!1;const s=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let n=0;n<r.length;n++)if(r[n]!==s[n]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var s,r;this.listeners.add(t);const n=(r=(s=this.options).onSubscribe)==null?void 0:r.call(s,t,this);return()=>{this.listeners.delete(t),n==null||n()}},this.options=o,this.state=o.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(o=this.options.deps){for(const t of o)if(t instanceof ie)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof tt){let s=ne.get(t);s||(s=new Set,ne.set(t,s)),s.add(this);let r=Te.get(this);r||(r=new Set,Te.set(this,r)),r.add(t)}}unregisterFromGraph(o=this.options.deps){for(const t of o)if(t instanceof ie)this.unregisterFromGraph(t.options.deps);else if(t instanceof tt){const s=ne.get(t);s&&s.delete(this);const r=Te.get(this);r&&r.delete(t)}}}const G="__TSR_index",kt="popstate",Tt="beforeunload";function Xt(e){let o=e.getLocation();const t=new Set,s=a=>{o=e.getLocation(),t.forEach(l=>l({location:o,action:a}))},r=a=>{e.notifyOnIndexChange??!0?s(a):o=e.getLocation()},n=async({task:a,navigateOpts:l,...i})=>{var u,h;if((l==null?void 0:l.ignoreBlocker)??!1){a();return}const d=((u=e.getBlockers)==null?void 0:u.call(e))??[],f=i.type==="PUSH"||i.type==="REPLACE";if(typeof document<"u"&&d.length&&f)for(const p of d){const v=Re(i.path,i.state);if(await p.blockerFn({currentLocation:o,nextLocation:v,action:i.type})){(h=e.onBlocked)==null||h.call(e);return}}a()};return{get location(){return o},get length(){return e.getLength()},subscribers:t,subscribe:a=>(t.add(a),()=>{t.delete(a)}),push:(a,l,i)=>{const u=o.state[G];l=ot(u+1,l),n({task:()=>{e.pushState(a,l),s({type:"PUSH"})},navigateOpts:i,type:"PUSH",path:a,state:l})},replace:(a,l,i)=>{const u=o.state[G];l=ot(u,l),n({task:()=>{e.replaceState(a,l),s({type:"REPLACE"})},navigateOpts:i,type:"REPLACE",path:a,state:l})},go:(a,l)=>{n({task:()=>{e.go(a),r({type:"GO",index:a})},navigateOpts:l,type:"GO"})},back:a=>{n({task:()=>{e.back((a==null?void 0:a.ignoreBlocker)??!1),r({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{n({task:()=>{e.forward((a==null?void 0:a.ignoreBlocker)??!1),r({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>o.state[G]!==0,createHref:a=>e.createHref(a),block:a=>{var l;if(!e.setBlockers)return()=>{};const i=((l=e.getBlockers)==null?void 0:l.call(e))??[];return e.setBlockers([...i,a]),()=>{var u,h;const c=((u=e.getBlockers)==null?void 0:u.call(e))??[];(h=e.setBlockers)==null||h.call(e,c.filter(d=>d!==a))}},flush:()=>{var a;return(a=e.flush)==null?void 0:a.call(e)},destroy:()=>{var a;return(a=e.destroy)==null?void 0:a.call(e)},notify:s}}function ot(e,o){o||(o={});const t=ct();return{...o,key:t,__TSR_key:t,[G]:e}}function ns(e){var o,t;const s=typeof document<"u"?window:void 0,r=s.history.pushState,n=s.history.replaceState;let a=[];const l=()=>a,i=x=>a=x,u=(x=>x),h=(()=>Re(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((o=s.history.state)!=null&&o.__TSR_key)&&!((t=s.history.state)!=null&&t.key)){const x=ct();s.history.replaceState({[G]:0,key:x,__TSR_key:x},"")}let c=h(),d,f=!1,p=!1,v=!1,y=!1;const _=()=>c;let P,g;const S=()=>{P&&(k._ignoreSubscribers=!0,(P.isPush?s.history.pushState:s.history.replaceState)(P.state,"",P.href),k._ignoreSubscribers=!1,P=void 0,g=void 0,d=void 0)},b=(x,L,I)=>{const B=u(L);g||(d=c),c=Re(L,I),P={href:B,state:I,isPush:(P==null?void 0:P.isPush)||x==="push"},g||(g=Promise.resolve().then(()=>S()))},w=x=>{c=h(),k.notify({type:x})},C=async()=>{if(p){p=!1;return}const x=h(),L=x.state[G]-c.state[G],I=L===1,B=L===-1,E=!I&&!B||f;f=!1;const be=E?"GO":B?"BACK":"FORWARD",D=E?{type:"GO",index:L}:{type:B?"BACK":"FORWARD"};if(v)v=!1;else{const Y=l();if(typeof document<"u"&&Y.length){for(const gt of Y)if(await gt.blockerFn({currentLocation:c,nextLocation:x,action:be})){p=!0,s.history.go(1),k.notify(D);return}}}c=h(),k.notify(D)},M=x=>{if(y){y=!1;return}let L=!1;const I=l();if(typeof document<"u"&&I.length)for(const B of I){const E=B.enableBeforeUnload??!0;if(E===!0){L=!0;break}if(typeof E=="function"&&E()===!0){L=!0;break}}if(L)return x.preventDefault(),x.returnValue=""},k=Xt({getLocation:_,getLength:()=>s.history.length,pushState:(x,L)=>b("push",x,L),replaceState:(x,L)=>b("replace",x,L),back:x=>(x&&(v=!0),y=!0,s.history.back()),forward:x=>{x&&(v=!0),y=!0,s.history.forward()},go:x=>{f=!0,s.history.go(x)},createHref:x=>u(x),flush:S,destroy:()=>{s.history.pushState=r,s.history.replaceState=n,s.removeEventListener(Tt,M,{capture:!0}),s.removeEventListener(kt,C)},onBlocked:()=>{d&&c!==d&&(c=d)},getBlockers:l,setBlockers:i,notifyOnIndexChange:!1});return s.addEventListener(Tt,M,{capture:!0}),s.addEventListener(kt,C),s.history.pushState=function(...x){const L=r.apply(s.history,x);return k._ignoreSubscribers||w("PUSH"),L},s.history.replaceState=function(...x){const L=n.apply(s.history,x);return k._ignoreSubscribers||w("REPLACE"),L},k}function is(e={initialEntries:["/"]}){const o=e.initialEntries;let t=e.initialIndex?Math.min(Math.max(e.initialIndex,0),o.length-1):o.length-1;const s=o.map((n,a)=>ot(a,void 0));return Xt({getLocation:()=>Re(o[t],s[t]),getLength:()=>o.length,pushState:(n,a)=>{t<o.length-1&&(o.splice(t+1),s.splice(t+1)),s.push(a),o.push(n),t=Math.max(o.length-1,0)},replaceState:(n,a)=>{s[t]=a,o[t]=n},back:()=>{t=Math.max(t-1,0)},forward:()=>{t=Math.min(t+1,o.length-1)},go:n=>{t=Math.min(Math.max(t+n,0),o.length-1)},createHref:n=>n})}function Re(e,o){const t=e.indexOf("#"),s=e.indexOf("?"),r=ct();return{href:e,pathname:e.substring(0,t>0?s>0?Math.min(t,s):t:s>0?s:e.length),hash:t>-1?e.substring(t):"",search:s>-1?e.slice(s,t===-1?void 0:t):"",state:o||{[G]:0,key:r,__TSR_key:r}}}function ct(){return(Math.random()+1).toString(36).substring(7)}function st(e){return e[e.length-1]}function as(e){return typeof e=="function"}function Q(e,o){return as(e)?e(o):e}function A(e,o){if(e===o)return e;const t=o,s=jt(e)&&jt(t);if(s||It(e)&&It(t)){const r=s?e:Object.keys(e).concat(Object.getOwnPropertySymbols(e)),n=r.length,a=s?t:Object.keys(t).concat(Object.getOwnPropertySymbols(t)),l=a.length,i=s?[]:{};let u=0;for(let h=0;h<l;h++){const c=s?h:a[h];(!s&&r.includes(c)||s)&&e[c]===void 0&&t[c]===void 0?(i[c]=void 0,u++):(i[c]=A(e[c],t[c]),i[c]===e[c]&&e[c]!==void 0&&u++)}return n===l&&u===n?e:i}return t}function It(e){return rt(e)&&Object.getOwnPropertyNames(e).length===Object.keys(e).length}function rt(e){if(!Et(e))return!1;const o=e.constructor;if(typeof o>"u")return!0;const t=o.prototype;return!(!Et(t)||!t.hasOwnProperty("isPrototypeOf"))}function Et(e){return Object.prototype.toString.call(e)==="[object Object]"}function jt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nt(e,o){let t=Object.keys(e);return o&&(t=t.filter(s=>e[s]!==void 0)),t}function ae(e,o,t){if(e===o)return!0;if(typeof e!=typeof o)return!1;if(rt(e)&&rt(o)){const s=(t==null?void 0:t.ignoreUndefined)??!0,r=Nt(e,s),n=Nt(o,s);return!(t!=null&&t.partial)&&r.length!==n.length?!1:n.every(a=>ae(e[a],o[a],t))}return Array.isArray(e)&&Array.isArray(o)?e.length!==o.length?!1:!e.some((s,r)=>!ae(s,o[r],t)):!1}function ce(e){let o,t;const s=new Promise((r,n)=>{o=r,t=n});return s.status="pending",s.resolve=r=>{s.status="resolved",s.value=r,o(r),e==null||e(r)},s.reject=r=>{s.status="rejected",t(r)},s}function J(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const W=0,te=1,oe=2,le=3;function K(e){return lt(e.filter(o=>o!==void 0).join("/"))}function lt(e){return e.replace(/\/{2,}/g,"/")}function ut(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ue(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function qe(e){return ue(ut(e))}function je(e,o){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${o}/`?e.slice(0,-1):e}function cs(e,o,t){return je(e,t)===je(o,t)}function ls(e){const{type:o,value:t}=e;if(o===W)return t;const{prefixSegment:s,suffixSegment:r}=e;if(o===te){const n=t.substring(1);if(s&&r)return`${s}{$${n}}${r}`;if(s)return`${s}{$${n}}`;if(r)return`{$${n}}${r}`}if(o===le){const n=t.substring(1);return s&&r?`${s}{-$${n}}${r}`:s?`${s}{-$${n}}`:r?`{-$${n}}${r}`:`{-$${n}}`}if(o===oe){if(s&&r)return`${s}{$}${r}`;if(s)return`${s}{$}`;if(r)return`{$}${r}`}return t}function us({basepath:e,base:o,to:t,trailingSlash:s="never",caseSensitive:r,parseCache:n}){var a;o=Ne(e,o,r),t=Ne(e,t,r);let l=de(o,n).slice();const i=de(t,n);l.length>1&&((a=st(l))==null?void 0:a.value)==="/"&&l.pop();for(let c=0,d=i.length;c<d;c++){const f=i[c],p=f.value;p==="/"?c?c===d-1&&l.push(f):l=[f]:p===".."?l.pop():p==="."||l.push(f)}l.length>1&&(st(l).value==="/"?s==="never"&&l.pop():s==="always"&&l.push({type:W,value:"/"}));const u=l.map(ls);return K([e,...u])}const de=(e,o)=>{if(!e)return[];const t=o==null?void 0:o.get(e);if(t)return t;const s=vs(e);return o==null||o.set(e,s),s},ds=/^\$.{1,}$/,hs=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,fs=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,ps=/^\$$/,ms=/^(.*?)\{\$\}(.*)$/;function vs(e){e=lt(e);const o=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),o.push({type:W,value:"/"})),!e)return o;const t=e.split("/").filter(Boolean);return o.push(...t.map(s=>{const r=s.match(ms);if(r){const l=r[1],i=r[2];return{type:oe,value:"$",prefixSegment:l||void 0,suffixSegment:i||void 0}}const n=s.match(fs);if(n){const l=n[1],i=n[2],u=n[3];return{type:le,value:i,prefixSegment:l||void 0,suffixSegment:u||void 0}}const a=s.match(hs);if(a){const l=a[1],i=a[2],u=a[3];return{type:te,value:""+i,prefixSegment:l||void 0,suffixSegment:u||void 0}}if(ds.test(s)){const l=s.substring(1);return{type:te,value:"$"+l,prefixSegment:void 0,suffixSegment:void 0}}return ps.test(s)?{type:oe,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:W,value:s.includes("%25")?s.split("%25").map(l=>decodeURI(l)).join("%25"):decodeURI(s)}})),e.slice(-1)==="/"&&(e=e.substring(1),o.push({type:W,value:"/"})),o}function Me({path:e,params:o,leaveWildcards:t,leaveParams:s,decodeCharMap:r,parseCache:n}){const a=de(e,n);function l(c){const d=o[c],f=typeof d=="string";return c==="*"||c==="_splat"?f?encodeURI(d):d:f?gs(d,r):d}let i=!1;const u={},h=K(a.map(c=>{if(c.type===W)return c.value;if(c.type===oe){u._splat=o._splat;const d=c.prefixSegment||"",f=c.suffixSegment||"";if(!("_splat"in o))return i=!0,t?`${d}${c.value}${f}`:d||f?`${d}${f}`:void 0;const p=l("_splat");return t?`${d}${c.value}${p??""}${f}`:`${d}${p}${f}`}if(c.type===te){const d=c.value.substring(1);!i&&!(d in o)&&(i=!0),u[d]=o[d];const f=c.prefixSegment||"",p=c.suffixSegment||"";if(s){const v=l(c.value);return`${f}${c.value}${v??""}${p}`}return`${f}${l(d)??"undefined"}${p}`}if(c.type===le){const d=c.value.substring(1),f=c.prefixSegment||"",p=c.suffixSegment||"";if(!(d in o)||o[d]==null)return t?`${f}${d}${p}`:f||p?`${f}${p}`:void 0;if(u[d]=o[d],s){const v=l(c.value);return`${f}${c.value}${v??""}${p}`}return t?`${f}${d}${l(d)??""}${p}`:`${f}${l(d)??""}${p}`}return c.value}));return{usedParams:u,interpolatedPath:h,isMissingParams:i}}function gs(e,o){let t=encodeURIComponent(e);if(o)for(const[s,r]of o)t=t.replaceAll(s,r);return t}function nt(e,o,t,s){const r=ys(e,o,t,s);if(!(t.to&&!r))return r??{}}function Ne(e,o,t=!1){const s=t?e:e.toLowerCase(),r=t?o:o.toLowerCase();switch(!0){case s==="/":return o;case r===s:return"";case o.length<e.length:return o;case r[s.length]!=="/":return o;case r.startsWith(s):return o.slice(e.length);default:return o}}function ys(e,o,{to:t,fuzzy:s,caseSensitive:r},n){if(e!=="/"&&!o.startsWith(e))return;o=Ne(e,o,r),t=Ne(e,`${t??"$"}`,r);const a=de(o.startsWith("/")?o:`/${o}`,n),l=de(t.startsWith("/")?t:`/${t}`,n),i={};return _s(a,l,i,s,r)?i:void 0}function _s(e,o,t,s,r){var n,a,l;let i=0,u=0;for(;i<e.length||u<o.length;){const h=e[i],c=o[u];if(c){if(c.type===oe){const d=e.slice(i);let f;if(c.prefixSegment||c.suffixSegment){if(!h)return!1;const p=c.prefixSegment||"",v=c.suffixSegment||"",y=h.value;if("prefixSegment"in c&&!y.startsWith(p)||"suffixSegment"in c&&!((n=e[e.length-1])!=null&&n.value.endsWith(v)))return!1;let _=decodeURI(K(d.map(P=>P.value)));p&&_.startsWith(p)&&(_=_.slice(p.length)),v&&_.endsWith(v)&&(_=_.slice(0,_.length-v.length)),f=_}else f=decodeURI(K(d.map(p=>p.value)));return t["*"]=f,t._splat=f,!0}if(c.type===W){if(c.value==="/"&&!(h!=null&&h.value)){u++;continue}if(h){if(r){if(c.value!==h.value)return!1}else if(c.value.toLowerCase()!==h.value.toLowerCase())return!1;i++,u++;continue}else return!1}if(c.type===te){if(!h||h.value==="/")return!1;let d="",f=!1;if(c.prefixSegment||c.suffixSegment){const p=c.prefixSegment||"",v=c.suffixSegment||"",y=h.value;if(p&&!y.startsWith(p)||v&&!y.endsWith(v))return!1;let _=y;p&&_.startsWith(p)&&(_=_.slice(p.length)),v&&_.endsWith(v)&&(_=_.slice(0,_.length-v.length)),d=decodeURIComponent(_),f=!0}else d=decodeURIComponent(h.value),f=!0;f&&(t[c.value.substring(1)]=d,i++),u++;continue}if(c.type===le){if(!h){u++;continue}if(h.value==="/"){u++;continue}let d="",f=!1;if(c.prefixSegment||c.suffixSegment){const p=c.prefixSegment||"",v=c.suffixSegment||"",y=h.value;if((!p||y.startsWith(p))&&(!v||y.endsWith(v))){let _=y;p&&_.startsWith(p)&&(_=_.slice(p.length)),v&&_.endsWith(v)&&(_=_.slice(0,_.length-v.length)),d=decodeURIComponent(_),f=!0}}else{let p=!0;for(let v=u+1;v<o.length;v++){const y=o[v];if((y==null?void 0:y.type)===W&&y.value===h.value){p=!1;break}if((y==null?void 0:y.type)===te||(y==null?void 0:y.type)===oe){e.length<o.length&&(p=!1);break}}p&&(d=decodeURIComponent(h.value),f=!0)}f&&(t[c.value.substring(1)]=d,i++),u++;continue}}if(i<e.length&&u>=o.length)return t["**"]=K(e.slice(i).map(d=>d.value)),!!s&&((a=o[o.length-1])==null?void 0:a.value)!=="/";if(u<o.length&&i>=e.length){for(let d=u;d<o.length;d++)if(((l=o[d])==null?void 0:l.type)!==le)return!1;break}break}return!0}function z(e){return!!(e!=null&&e.isNotFound)}function Ss(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ae="tsr-scroll-restoration-v1_3",xs=(e,o)=>{let t;return(...s)=>{t||(t=setTimeout(()=>{e(...s),t=null},o))}};function Rs(){const e=Ss();if(!e)return;const o=e.getItem(Ae);let t=o?JSON.parse(o):{};return{state:t,set:s=>(t=Q(s,t)||t,e.setItem(Ae,JSON.stringify(t)))}}const Ge=Rs(),it=e=>e.state.__TSR_key||e.href;function bs(e){const o=[];let t;for(;t=e.parentNode;)o.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(t.children,e)+1})`),e=t;return`${o.reverse().join(" > ")}`.toLowerCase()}let $e=!1;function Zt({storageKey:e,key:o,behavior:t,shouldScrollRestoration:s,scrollToTopSelectors:r,location:n}){var a,l;let i;try{i=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(c){console.error(c);return}const u=o||((a=window.history.state)==null?void 0:a.key),h=i[u];$e=!0;e:{if(s&&h&&Object.keys(h).length>0){for(const f in h){const p=h[f];if(f==="window")window.scrollTo({top:p.scrollY,left:p.scrollX,behavior:t});else if(f){const v=document.querySelector(f);v&&(v.scrollLeft=p.scrollX,v.scrollTop=p.scrollY)}}break e}const c=(n??window.location).hash.split("#",2)[1];if(c){const f=((l=window.history.state)==null?void 0:l.__hashScrollIntoViewOptions)??!0;if(f){const p=document.getElementById(c);p&&p.scrollIntoView(f)}break e}const d={top:0,left:0,behavior:t};if(window.scrollTo(d),r)for(const f of r){if(f==="window")continue;const p=typeof f=="function"?f():document.querySelector(f);p&&p.scrollTo(d)}}$e=!1}function Ps(e,o){if(Ge===void 0||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup))return;e.isScrollRestorationSetup=!0,$e=!1;const s=e.options.getScrollRestorationKey||it;window.history.scrollRestoration="manual";const r=n=>{if($e||!e.isScrollRestoring)return;let a="";if(n.target===document||n.target===window)a="window";else{const i=n.target.getAttribute("data-scroll-restoration-id");i?a=`[data-scroll-restoration-id="${i}"]`:a=bs(n.target)}const l=s(e.state.location);Ge.set(i=>{const u=i[l]||(i[l]={}),h=u[a]||(u[a]={});if(a==="window")h.scrollX=window.scrollX||0,h.scrollY=window.scrollY||0;else if(a){const c=document.querySelector(a);c&&(h.scrollX=c.scrollLeft||0,h.scrollY=c.scrollTop||0)}return i})};typeof document<"u"&&document.addEventListener("scroll",xs(r,100),!0),e.subscribe("onRendered",n=>{const a=s(n.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}Zt({storageKey:Ae,key:a,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Ge.set(l=>(l[a]||(l[a]={}),l))})}function ws(e){if(typeof document<"u"&&document.querySelector){const o=e.state.location.state.__hashScrollIntoViewOptions??!0;if(o&&e.state.location.hash!==""){const t=document.getElementById(e.state.location.hash);t&&t.scrollIntoView(o)}}}function Cs(e,o=String){const t=new URLSearchParams;for(const s in e){const r=e[s];r!==void 0&&t.set(s,o(r))}return t.toString()}function Je(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function Ms(e){const o=new URLSearchParams(e),t={};for(const[s,r]of o.entries()){const n=t[s];n==null?t[s]=Je(r):Array.isArray(n)?n.push(Je(r)):t[s]=[n,Je(r)]}return t}const Ls=Ts(JSON.parse),ks=Is(JSON.stringify,JSON.parse);function Ts(e){return o=>{o[0]==="?"&&(o=o.substring(1));const t=Ms(o);for(const s in t){const r=t[s];if(typeof r=="string")try{t[s]=e(r)}catch{}}return t}}function Is(e,o){const t=typeof o=="function";function s(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(t&&typeof r=="string")try{return o(r),e(r)}catch{}return r}return r=>{const n=Cs(r,s);return n?`?${n}`:""}}const $="__root__";function Es(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const o=new Headers(e.headers||{});e.href&&o.get("Location")===null&&o.set("Location",e.href);const t=new Response(null,{status:e.statusCode,headers:o});if(t.options=e,e.throw)throw t;return t}function V(e){return e instanceof Response&&!!e.options}function js(e){const o=new Map;let t,s;const r=n=>{n.next&&(n.prev?(n.prev.next=n.next,n.next.prev=n.prev,n.next=void 0,s&&(s.next=n,n.prev=s)):(n.next.prev=void 0,t=n.next,n.next=void 0,s&&(n.prev=s,s.next=n)),s=n)};return{get(n){const a=o.get(n);if(a)return r(a),a.value},set(n,a){if(o.size>=e&&t){const i=t;o.delete(i.key),i.next&&(t=i.next,i.next.prev=void 0),i===s&&(s=void 0)}const l=o.get(n);if(l)l.value=a,r(l);else{const i={key:n,value:a,prev:s};s&&(s.next=i),s=i,t||(t=i),o.set(n,i)}}}}const Ie=e=>{var o;if(!e.rendered)return e.rendered=!0,(o=e.onReady)==null?void 0:o.call(e)},De=(e,o)=>!!(e.preload&&!e.router.state.matches.some(t=>t.id===o)),Qt=(e,o)=>{var t;const s=e.router.routesById[o.routeId??""]??e.router.routeTree;!s.options.notFoundComponent&&((t=e.router.options)!=null&&t.defaultNotFoundComponent)&&(s.options.notFoundComponent=e.router.options.defaultNotFoundComponent),U(s.options.notFoundComponent);const r=e.matches.find(n=>n.routeId===s.id);U(r,"Could not find match for route: "+s.id),e.updateMatch(r.id,n=>({...n,status:"notFound",error:o,isFetching:!1})),o.routerCode==="BEFORE_LOAD"&&s.parentRoute&&(o.routeId=s.parentRoute.id,Qt(e,o))},q=(e,o,t)=>{var s,r,n;if(!(!V(t)&&!z(t))){if(V(t)&&t.redirectHandled&&!t.options.reloadDocument)throw t;if(o){(s=o._nonReactive.beforeLoadPromise)==null||s.resolve(),(r=o._nonReactive.loaderPromise)==null||r.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loaderPromise=void 0;const a=V(t)?"redirected":"notFound";e.updateMatch(o.id,l=>({...l,status:a,isFetching:!1,error:t})),z(t)&&!t.routeId&&(t.routeId=o.routeId),(n=o._nonReactive.loadPromise)==null||n.resolve()}throw V(t)?(e.rendered=!0,t.options._fromLocation=e.location,t.redirectHandled=!0,t=e.router.resolveRedirect(t),t):(Qt(e,t),t)}},eo=(e,o)=>{const t=e.router.getMatch(o);return!!(!e.router.isServer&&t._nonReactive.dehydrated||e.router.isServer&&t.ssr===!1)},pe=(e,o,t,s)=>{var r,n;const{id:a,routeId:l}=e.matches[o],i=e.router.looseRoutesById[l];if(t instanceof Promise)throw t;t.routerCode=s,e.firstBadMatchIndex??(e.firstBadMatchIndex=o),q(e,e.router.getMatch(a),t);try{(n=(r=i.options).onError)==null||n.call(r,t)}catch(u){t=u,q(e,e.router.getMatch(a),t)}e.updateMatch(a,u=>{var h,c;return(h=u._nonReactive.beforeLoadPromise)==null||h.resolve(),u._nonReactive.beforeLoadPromise=void 0,(c=u._nonReactive.loadPromise)==null||c.resolve(),{...u,error:t,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Ns=(e,o,t,s)=>{var r;const n=e.router.getMatch(o),a=(r=e.matches[t-1])==null?void 0:r.id,l=a?e.router.getMatch(a):void 0;if(e.router.isShell()){n.ssr=o===$;return}if((l==null?void 0:l.ssr)===!1){n.ssr=!1;return}const i=p=>p===!0&&(l==null?void 0:l.ssr)==="data-only"?"data-only":p,u=e.router.options.defaultSsr??!0;if(s.options.ssr===void 0){n.ssr=i(u);return}if(typeof s.options.ssr!="function"){n.ssr=i(s.options.ssr);return}const{search:h,params:c}=n,d={search:Le(h,n.searchError),params:Le(c,n.paramsError),location:e.location,matches:e.matches.map(p=>({index:p.index,pathname:p.pathname,fullPath:p.fullPath,staticData:p.staticData,id:p.id,routeId:p.routeId,search:Le(p.search,p.searchError),params:Le(p.params,p.paramsError),ssr:p.ssr}))},f=s.options.ssr(d);if(J(f))return f.then(p=>{n.ssr=i(p??u)});n.ssr=i(f??u)},to=(e,o,t,s)=>{var r;if(s._nonReactive.pendingTimeout!==void 0)return;const n=t.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!De(e,o)&&(t.options.loader||t.options.beforeLoad||ro(t))&&typeof n=="number"&&n!==1/0&&(t.options.pendingComponent??((r=e.router.options)==null?void 0:r.defaultPendingComponent)))){const l=setTimeout(()=>{Ie(e)},n);s._nonReactive.pendingTimeout=l}},As=(e,o,t)=>{const s=e.router.getMatch(o);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;to(e,o,t,s);const r=()=>{const n=e.router.getMatch(o);n.preload&&(n.status==="redirected"||n.status==="notFound")&&q(e,n,n.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(r):r()},$s=(e,o,t,s)=>{var r;const n=e.router.getMatch(o),a=n._nonReactive.loadPromise;n._nonReactive.loadPromise=ce(()=>{a==null||a.resolve()});const{paramsError:l,searchError:i}=n;l&&pe(e,t,l,"PARSE_PARAMS"),i&&pe(e,t,i,"VALIDATE_SEARCH"),to(e,o,s,n);const u=new AbortController,h=(r=e.matches[t-1])==null?void 0:r.id,c=h?e.router.getMatch(h):void 0,f={...(c==null?void 0:c.context)??e.router.options.context??void 0,...n.__routeContext};let p=!1;const v=()=>{p||(p=!0,e.updateMatch(o,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:u,context:f})))},y=()=>{var M;(M=n._nonReactive.beforeLoadPromise)==null||M.resolve(),n._nonReactive.beforeLoadPromise=void 0,e.updateMatch(o,k=>({...k,isFetching:!1}))};if(!s.options.beforeLoad){_e(()=>{v(),y()});return}n._nonReactive.beforeLoadPromise=ce();const{search:_,params:P,cause:g}=n,S=De(e,o),b={search:_,abortController:u,params:P,preload:S,context:f,location:e.location,navigate:M=>e.router.navigate({...M,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:S?"preload":g,matches:e.matches},w=M=>{if(M===void 0){_e(()=>{v(),y()});return}(V(M)||z(M))&&(v(),pe(e,t,M,"BEFORE_LOAD")),_e(()=>{v(),e.updateMatch(o,k=>({...k,__beforeLoadContext:M,context:{...k.context,...M}})),y()})};let C;try{if(C=s.options.beforeLoad(b),J(C))return v(),C.catch(M=>{pe(e,t,M,"BEFORE_LOAD")}).then(w)}catch(M){v(),pe(e,t,M,"BEFORE_LOAD")}w(C)},Fs=(e,o)=>{const{id:t,routeId:s}=e.matches[o],r=e.router.looseRoutesById[s],n=()=>{if(e.router.isServer){const i=Ns(e,t,o,r);if(J(i))return i.then(a)}return a()},a=()=>{if(eo(e,t))return;const i=As(e,t,r);return J(i)?i.then(l):l()},l=()=>$s(e,t,o,r);return n()},Se=(e,o,t)=>{var s,r,n,a,l,i;const u=e.router.getMatch(o);if(!u||!t.options.head&&!t.options.scripts&&!t.options.headers)return;const h={matches:e.matches,match:u,params:u.params,loaderData:u.loaderData};return Promise.all([(r=(s=t.options).head)==null?void 0:r.call(s,h),(a=(n=t.options).scripts)==null?void 0:a.call(n,h),(i=(l=t.options).headers)==null?void 0:i.call(l,h)]).then(([c,d,f])=>{const p=c==null?void 0:c.meta,v=c==null?void 0:c.links,y=c==null?void 0:c.scripts,_=c==null?void 0:c.styles;return{meta:p,links:v,headScripts:y,headers:f,scripts:d,styles:_}})},oo=(e,o,t,s)=>{const r=e.matchPromises[t-1],{params:n,loaderDeps:a,abortController:l,context:i,cause:u}=e.router.getMatch(o),h=De(e,o);return{params:n,deps:a,preload:!!h,parentMatchPromise:r,abortController:l,context:i,location:e.location,navigate:c=>e.router.navigate({...c,_fromLocation:e.location}),cause:h?"preload":u,route:s}},At=async(e,o,t,s)=>{var r,n,a,l;try{const i=e.router.getMatch(o);try{(!e.router.isServer||i.ssr===!0)&&so(s);const u=(n=(r=s.options).loader)==null?void 0:n.call(r,oo(e,o,t,s)),h=s.options.loader&&J(u);if(!!(h||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(o,v=>({...v,isFetching:"loader"})),s.options.loader){const v=h?await u:u;q(e,e.router.getMatch(o),v),v!==void 0&&e.updateMatch(o,y=>({...y,loaderData:v}))}s._lazyPromise&&await s._lazyPromise;const d=Se(e,o,s),f=d?await d:void 0,p=i._nonReactive.minPendingPromise;p&&await p,s._componentsPromise&&await s._componentsPromise,e.updateMatch(o,v=>({...v,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...f}))}catch(u){let h=u;const c=i._nonReactive.minPendingPromise;c&&await c,q(e,e.router.getMatch(o),u);try{(l=(a=s.options).onError)==null||l.call(a,u)}catch(p){h=p,q(e,e.router.getMatch(o),p)}const d=Se(e,o,s),f=d?await d:void 0;e.updateMatch(o,p=>({...p,error:h,status:"error",isFetching:!1,...f}))}}catch(i){const u=e.router.getMatch(o);if(u){const h=Se(e,o,s);if(h){const c=await h;e.updateMatch(o,d=>({...d,...c}))}u._nonReactive.loaderPromise=void 0}q(e,u,i)}},Os=async(e,o)=>{var t,s;const{id:r,routeId:n}=e.matches[o];let a=!1,l=!1;const i=e.router.looseRoutesById[n];if(eo(e,r)){if(e.router.isServer){const c=Se(e,r,i);if(c){const d=await c;e.updateMatch(r,f=>({...f,...d}))}return e.router.getMatch(r)}}else{const c=e.router.getMatch(r);if(c._nonReactive.loaderPromise){if(c.status==="success"&&!e.sync&&!c.preload)return c;await c._nonReactive.loaderPromise;const d=e.router.getMatch(r);d.error&&q(e,d,d.error)}else{const d=Date.now()-c.updatedAt,f=De(e,r),p=f?i.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:i.options.staleTime??e.router.options.defaultStaleTime??0,v=i.options.shouldReload,y=typeof v=="function"?v(oo(e,r,o,i)):v,_=!!f&&!e.router.state.matches.some(b=>b.id===r),P=e.router.getMatch(r);P._nonReactive.loaderPromise=ce(),_!==P.preload&&e.updateMatch(r,b=>({...b,preload:_}));const{status:g,invalid:S}=P;if(a=g==="success"&&(S||(y??d>p)),!(f&&i.options.preload===!1))if(a&&!e.sync)l=!0,(async()=>{var b,w;try{await At(e,r,o,i);const C=e.router.getMatch(r);(b=C._nonReactive.loaderPromise)==null||b.resolve(),(w=C._nonReactive.loadPromise)==null||w.resolve(),C._nonReactive.loaderPromise=void 0}catch(C){V(C)&&await e.router.navigate(C.options)}})();else if(g!=="success"||a&&e.sync)await At(e,r,o,i);else{const b=Se(e,r,i);if(b){const w=await b;e.updateMatch(r,C=>({...C,...w}))}}}}const u=e.router.getMatch(r);l||((t=u._nonReactive.loaderPromise)==null||t.resolve(),(s=u._nonReactive.loadPromise)==null||s.resolve()),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,l||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const h=l?u.isFetching:!1;return h!==u.isFetching||u.invalid!==!1?(e.updateMatch(r,c=>({...c,isFetching:h,invalid:!1})),e.router.getMatch(r)):u};async function $t(e){const o=Object.assign(e,{matchPromises:[]});!o.router.isServer&&o.router.state.matches.some(t=>t._forcePending)&&Ie(o);try{for(let r=0;r<o.matches.length;r++){const n=Fs(o,r);J(n)&&await n}const t=o.firstBadMatchIndex??o.matches.length;for(let r=0;r<t;r++)o.matchPromises.push(Os(o,r));await Promise.all(o.matchPromises);const s=Ie(o);J(s)&&await s}catch(t){if(z(t)&&!o.preload){const s=Ie(o);throw J(s)&&await s,t}if(V(t))throw t}return o.matches}async function so(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(o=>{const{id:t,...s}=o.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const o=()=>{var t;const s=[];for(const r of no){const n=(t=e.options[r])==null?void 0:t.preload;n&&s.push(n())}if(s.length)return Promise.all(s).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(o):o()}return e._componentsPromise}function Le(e,o){return o?{status:"error",error:o}:{status:"success",value:e}}function ro(e){var o;for(const t of no)if((o=e.options[t])!=null&&o.preload)return!0;return!1}const no=["component","errorComponent","pendingComponent","notFoundComponent"];function ee(e){const o=e.resolvedLocation,t=e.location,s=(o==null?void 0:o.pathname)!==t.pathname,r=(o==null?void 0:o.href)!==t.href,n=(o==null?void 0:o.hash)!==t.hash;return{fromLocation:o,toLocation:t,pathChanged:s,hrefChanged:r,hashChanged:n}}class Ds{constructor(o){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=t=>t(),this.update=t=>{var s;t.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options;this.options={...this.options,...t},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(n=>[encodeURIComponent(n),n])):void 0,(!this.basepath||t.basepath&&t.basepath!==r.basepath)&&(t.basepath===void 0||t.basepath===""||t.basepath==="/"?this.basepath="/":this.basepath=`/${qe(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?is({initialEntries:[this.basepath||"/"]}):ns()),this.updateLatestLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new tt(Vs(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(n=>!["redirected"].includes(n.status))}}}),Ps(this)),typeof window<"u"&&"CSS"in window&&typeof((s=window.CSS)==null?void 0:s.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:t,routesByPath:s,flatRoutes:r}=Gs({routeTree:this.routeTree,initRoute:(a,l)=>{a.init({originalIndex:l})}});this.routesById=t,this.routesByPath=s,this.flatRoutes=r;const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n)},this.subscribe=(t,s)=>{const r={eventType:t,fn:s};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=t=>{this.subscribers.forEach(s=>{s.eventType===t.type&&s.fn(t)})},this.parseLocation=(t,s)=>{const r=({pathname:i,search:u,hash:h,state:c})=>{const d=this.options.parseSearch(u),f=this.options.stringifySearch(d);return{pathname:i,searchStr:f,search:A(s==null?void 0:s.search,d),hash:h.split("#").reverse()[0]??"",href:`${i}${f}${h}`,state:A(s==null?void 0:s.state,c)}},n=r(t),{__tempLocation:a,__tempKey:l}=n.state;if(a&&(!l||l===this.tempLocationKey)){const i=r(a);return i.state.key=n.state.key,i.state.__TSR_key=n.state.__TSR_key,delete i.state.__tempLocation,{...i,maskedLocation:n}}return n},this.resolvePathWithBase=(t,s)=>us({basepath:this.basepath,base:t,to:lt(s),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive,parseCache:this.parsePathnameCache}),this.matchRoutes=(t,s,r)=>typeof t=="string"?this.matchRoutesInternal({pathname:t,search:s},r):this.matchRoutesInternal(t,s),this.parsePathnameCache=js(1e3),this.getMatchedRoutes=(t,s)=>Js({pathname:t,routePathname:s,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=t=>{const s=this.getMatch(t);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{var t;(t=this.state.pendingMatches)==null||t.forEach(s=>{this.cancelMatch(s.id)})},this.buildLocation=t=>{const s=(n={})=>{var a,l;const i=n._fromLocation||this.latestLocation,u=this.matchRoutes(i,{_buildLocation:!0}),h=st(u);let c=this.resolvePathWithBase(h.fullPath,".");const d=n.to?this.resolvePathWithBase(c,`${n.to}`):this.resolvePathWithBase(c,"."),f=!!n.to&&!Ot(n.to.toString(),c)&&!Ot(d,c);n.unsafeRelative==="path"?c=i.pathname:f&&n.from&&(c=n.from),c=this.resolvePathWithBase(c,".");const p=h.search,v={...h.params},y=n.to?this.resolvePathWithBase(c,`${n.to}`):this.resolvePathWithBase(c,"."),_=n.params===!1||n.params===null?{}:(n.params??!0)===!0?v:Object.assign(v,Q(n.params,v)),P=Me({path:y,params:_,parseCache:this.parsePathnameCache}).interpolatedPath,g=this.matchRoutes(P,void 0,{_buildLocation:!0}).map(x=>this.looseRoutesById[x.routeId]);if(Object.keys(_).length>0)for(const x of g){const L=((a=x.options.params)==null?void 0:a.stringify)??x.options.stringifyParams;L&&Object.assign(_,L(_))}const S=Me({path:y,params:_,leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let b=p;if(t._includeValidateSearch&&((l=this.options.search)!=null&&l.strict)){const x={};g.forEach(L=>{if(L.options.validateSearch)try{Object.assign(x,at(L.options.validateSearch,{...x,...b}))}catch{}}),b=x}b=Ys({search:b,dest:n,destRoutes:g,_includeValidateSearch:t._includeValidateSearch}),b=A(p,b);const w=this.options.stringifySearch(b),C=n.hash===!0?i.hash:n.hash?Q(n.hash,i.hash):void 0,M=C?`#${C}`:"";let k=n.state===!0?i.state:n.state?Q(n.state,i.state):{};return k=A(i.state,k),{pathname:S,search:b,searchStr:w,state:k,hash:C??"",href:`${S}${w}${M}`,unmaskOnReload:n.unmaskOnReload}},r=(n={},a)=>{var l;const i=s(n);let u=a?s(a):void 0;if(!u){let h={};const c=(l=this.options.routeMasks)==null?void 0:l.find(d=>{const f=nt(this.basepath,i.pathname,{to:d.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return f?(h=f,!0):!1});if(c){const{from:d,...f}=c;a={from:t.from,...f,params:h},u=s(a)}}if(u){const h=s(a);i.maskedLocation=h}return i};return t.mask?r(t,{from:t.from,...t.mask}):r(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:s,...r})=>{const n=()=>{const i=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];i.forEach(h=>{r.state[h]=this.latestLocation.state[h]});const u=ae(r.state,this.latestLocation.state);return i.forEach(h=>{delete r.state[h]}),u},a=this.latestLocation.href===r.href,l=this.commitLocationPromise;if(this.commitLocationPromise=ce(()=>{l==null||l.resolve()}),a&&n())this.load();else{let{maskedLocation:i,hashScrollIntoView:u,...h}=r;i&&(h={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=u??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,this.history[r.replace?"replace":"push"](h.href,h.state,{ignoreBlocker:s})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:s,hashScrollIntoView:r,viewTransition:n,ignoreBlocker:a,href:l,...i}={})=>{if(l){const h=this.history.location.state.__TSR_index,c=Re(l,{__TSR_index:t?h:h+1});i.to=c.pathname,i.search=this.options.parseSearch(c.search),i.hash=c.hash.slice(1)}const u=this.buildLocation({...i,_includeValidateSearch:!0});return this.commitLocation({...u,viewTransition:n,replace:t,resetScroll:s,hashScrollIntoView:r,ignoreBlocker:a})},this.navigate=({to:t,reloadDocument:s,href:r,...n})=>{if(!s&&r)try{new URL(`${r}`),s=!0}catch{}if(s){if(!r){const a=this.buildLocation({to:t,...n});r=this.history.createHref(a.href)}return n.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...n,href:r,to:t,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const s=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=n=>{try{return encodeURI(decodeURI(n))}catch{return n}};if(qe(r(this.latestLocation.href))!==qe(r(s.href)))throw Es({href:s.href})}const t=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:t,cachedMatches:s.cachedMatches.filter(r=>!t.some(n=>n.id===r.id))}))},this.load=async t=>{let s,r,n;for(n=new Promise(a=>{this.startTransition(async()=>{var l;try{this.beforeLoad();const i=this.latestLocation,u=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ee({resolvedLocation:u,location:i})}),this.emit({type:"onBeforeLoad",...ee({resolvedLocation:u,location:i})}),await $t({router:this,sync:t==null?void 0:t.sync,matches:this.state.pendingMatches,location:i,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let h,c,d;_e(()=>{this.__store.setState(f=>{const p=f.matches,v=f.pendingMatches||f.matches;return h=p.filter(y=>!v.some(_=>_.id===y.id)),c=v.filter(y=>!p.some(_=>_.id===y.id)),d=p.filter(y=>v.some(_=>_.id===y.id)),{...f,isLoading:!1,loadedAt:Date.now(),matches:v,pendingMatches:void 0,cachedMatches:[...f.cachedMatches,...h.filter(y=>y.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[c,"onEnter"],[d,"onStay"]].forEach(([f,p])=>{f.forEach(v=>{var y,_;(_=(y=this.looseRoutesById[v.routeId].options)[p])==null||_.call(y,v)})})})}})}catch(i){V(i)?(s=i,this.isServer||this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):z(i)&&(r=i),this.__store.setState(u=>({...u,statusCode:s?s.status:r?404:u.matches.some(h=>h.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===n&&((l=this.commitLocationPromise)==null||l.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=n,await n;this.latestLoadPromise&&n!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(a=>({...a,statusCode:404}))},this.startViewTransition=t=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const n=this.latestLocation,a=this.state.resolvedLocation,l=typeof s.types=="function"?s.types(ee({resolvedLocation:a,location:n})):s.types;r={update:t,types:l}}else r=t;document.startViewTransition(r)}else t()},this.updateMatch=(t,s)=>{var r;const n=(r=this.state.pendingMatches)!=null&&r.some(a=>a.id===t)?"pendingMatches":this.state.matches.some(a=>a.id===t)?"matches":this.state.cachedMatches.some(a=>a.id===t)?"cachedMatches":"";n&&this.__store.setState(a=>{var l;return{...a,[n]:(l=a[n])==null?void 0:l.map(i=>i.id===t?s(i):i)}})},this.getMatch=t=>{var s;const r=n=>n.id===t;return this.state.cachedMatches.find(r)??((s=this.state.pendingMatches)==null?void 0:s.find(r))??this.state.matches.find(r)},this.invalidate=t=>{const s=r=>{var n;return((n=t==null?void 0:t.filter)==null?void 0:n.call(t,r))??!0?{...r,invalid:!0,...t!=null&&t.forcePending||r.status==="error"?{status:"pending",error:void 0}:void 0}:r};return this.__store.setState(r=>{var n;return{...r,matches:r.matches.map(s),cachedMatches:r.cachedMatches.map(s),pendingMatches:(n=r.pendingMatches)==null?void 0:n.map(s)}}),this.shouldViewTransition=!1,this.load({sync:t==null?void 0:t.sync})},this.resolveRedirect=t=>(t.options.href||(t.options.href=this.buildLocation(t.options).href,t.headers.set("Location",t.options.href)),t.headers.get("Location")||t.headers.set("Location",t.options.href),t),this.clearCache=t=>{const s=t==null?void 0:t.filter;s!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(n=>!s(n))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const t=s=>{const r=this.looseRoutesById[s.routeId];if(!r.options.loader)return!0;const n=(s.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=n};this.clearCache({filter:t})},this.loadRouteChunk=so,this.preloadRoute=async t=>{const s=this.buildLocation(t);let r=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:t});const n=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(l=>l.id)),a=new Set([...n,...this.state.cachedMatches.map(l=>l.id)]);_e(()=>{r.forEach(l=>{a.has(l.id)||this.__store.setState(i=>({...i,cachedMatches:[...i.cachedMatches,l]}))})});try{return r=await $t({router:this,matches:r,location:s,preload:!0,updateMatch:(l,i)=>{n.has(l)?r=r.map(u=>u.id===l?i(u):u):this.updateMatch(l,i)}}),r}catch(l){if(V(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:s});z(l)||console.error(l);return}},this.matchRoute=(t,s)=>{const r={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},n=this.buildLocation(r);if(s!=null&&s.pending&&this.state.status!=="pending")return!1;const l=((s==null?void 0:s.pending)===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,i=nt(this.basepath,l.pathname,{...s,to:n.pathname},this.parsePathnameCache);return!i||t.params&&!ae(i,t.params,{partial:!0})?!1:i&&((s==null?void 0:s.includeSearch)??!0)?ae(l.search,n.search,{partial:!0})?i:!1:i},this.hasNotFoundMatch=()=>this.__store.state.matches.some(t=>t.status==="notFound"||t.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...o,caseSensitive:o.caseSensitive??!1,notFoundMode:o.notFoundMode??"fuzzy",stringifySearch:o.stringifySearch??ks,parseSearch:o.parseSearch??Ls}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(o,t){var s;const{foundRoute:r,matchedRoutes:n,routeParams:a}=this.getMatchedRoutes(o.pathname,(s=t==null?void 0:t.dest)==null?void 0:s.to);let l=!1;(r?r.path!=="/"&&a["**"]:ue(o.pathname))&&(this.options.notFoundRoute?n.push(this.options.notFoundRoute):l=!0);const i=(()=>{if(l){if(this.options.notFoundMode!=="root")for(let d=n.length-1;d>=0;d--){const f=n[d];if(f.children)return f.id}return $}})(),u=n.map(d=>{var f;let p;const v=((f=d.options.params)==null?void 0:f.parse)??d.options.parseParams;if(v)try{const y=v(a);Object.assign(a,y)}catch(y){if(p=new Bs(y.message,{cause:y}),t!=null&&t.throwOnError)throw p;return p}}),h=[],c=d=>(d==null?void 0:d.id)?d.context??this.options.context??void 0:this.options.context??void 0;return n.forEach((d,f)=>{var p,v;const y=h[f-1],[_,P,g]=(()=>{const E=(y==null?void 0:y.search)??o.search,be=(y==null?void 0:y._strictSearch)??void 0;try{const D=at(d.options.validateSearch,{...E})??void 0;return[{...E,...D},{...be,...D},void 0]}catch(D){let Y=D;if(D instanceof Fe||(Y=new Fe(D.message,{cause:D})),t!=null&&t.throwOnError)throw Y;return[E,{},Y]}})(),S=((v=(p=d.options).loaderDeps)==null?void 0:v.call(p,{search:_}))??"",b=S?JSON.stringify(S):"",{usedParams:w,interpolatedPath:C}=Me({path:d.fullPath,params:a,decodeCharMap:this.pathParamsDecodeCharMap}),M=Me({path:d.id,params:a,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+b,k=this.getMatch(M),x=this.state.matches.find(E=>E.routeId===d.id),L=x?"stay":"enter";let I;if(k)I={...k,cause:L,params:x?A(x.params,a):a,_strictParams:w,search:A(x?x.search:k.search,_),_strictSearch:P};else{const E=d.options.loader||d.options.beforeLoad||d.lazyFn||ro(d)?"pending":"success";I={id:M,index:f,routeId:d.id,params:x?A(x.params,a):a,_strictParams:w,pathname:K([this.basepath,C]),updatedAt:Date.now(),search:x?A(x.search,_):_,_strictSearch:P,searchError:void 0,status:E,isFetching:!1,error:void 0,paramsError:u[f],__routeContext:void 0,_nonReactive:{loadPromise:ce()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:x?A(x.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:d.options.staticData||{},fullPath:d.fullPath}}t!=null&&t.preload||(I.globalNotFound=i===d.id),I.searchError=g;const B=c(y);I.context={...B,...I.__routeContext,...I.__beforeLoadContext},h.push(I)}),h.forEach((d,f)=>{const p=this.looseRoutesById[d.routeId];if(!this.getMatch(d.id)&&(t==null?void 0:t._buildLocation)!==!0){const y=h[f-1],_=c(y);if(p.options.context){const P={deps:d.loaderDeps,params:d.params,context:_??{},location:o,navigate:g=>this.navigate({...g,_fromLocation:o}),buildLocation:this.buildLocation,cause:d.cause,abortController:d.abortController,preload:!!d.preload,matches:h};d.__routeContext=p.options.context(P)??void 0}d.context={..._,...d.__routeContext,...d.__beforeLoadContext}}}),h}}class Fe extends Error{}class Bs extends Error{}const Ft=e=>e.endsWith("/")&&e.length>1?e.slice(0,-1):e;function Ot(e,o){return Ft(e)===Ft(o)}function Vs(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function at(e,o){if(e==null)return{};if("~standard"in e){const t=e["~standard"].validate(o);if(t instanceof Promise)throw new Fe("Async validation not supported");if(t.issues)throw new Fe(JSON.stringify(t.issues,void 0,2),{cause:t});return t.value}return"parse"in e?e.parse(o):typeof e=="function"?e(o):{}}const zs=.5,Ws=.4,Ks=.25,Us=.05,Hs=.02,qs=.01,Dt=2e-4,Bt=1e-4;function Vt(e,o){return e.prefixSegment&&e.suffixSegment?o+Us+Dt*e.prefixSegment.length+Bt*e.suffixSegment.length:e.prefixSegment?o+Hs+Dt*e.prefixSegment.length:e.suffixSegment?o+qs+Bt*e.suffixSegment.length:o}function Gs({routeTree:e,initRoute:o}){const t={},s={},r=i=>{i.forEach((u,h)=>{o==null||o(u,h);const c=t[u.id];if(U(!c,`Duplicate routes found with id: ${String(u.id)}`),t[u.id]=u,!u.isRoot&&u.path){const f=ue(u.fullPath);(!s[f]||u.fullPath.endsWith("/"))&&(s[f]=u)}const d=u.children;d!=null&&d.length&&r(d)})};r([e]);const n=[];Object.values(t).forEach((i,u)=>{var h;if(i.isRoot||!i.path)return;const c=ut(i.fullPath);let d=de(c),f=0;for(;d.length>f+1&&((h=d[f])==null?void 0:h.value)==="/";)f++;f>0&&(d=d.slice(f));let p=0,v=!1;const y=d.map((_,P)=>{if(_.value==="/")return .75;let g;if(_.type===te?g=zs:_.type===le?(g=Ws,p++):_.type===oe&&(g=Ks),g){for(let S=P+1;S<d.length;S++){const b=d[S];if(b.type===W&&b.value!=="/")return v=!0,Vt(_,g+.2)}return Vt(_,g)}return 1});n.push({child:i,trimmed:c,parsed:d,index:u,scores:y,optionalParamCount:p,hasStaticAfter:v})});const l=n.sort((i,u)=>{const h=Math.min(i.scores.length,u.scores.length);for(let c=0;c<h;c++)if(i.scores[c]!==u.scores[c])return u.scores[c]-i.scores[c];if(i.scores.length!==u.scores.length){if(i.optionalParamCount!==u.optionalParamCount){if(i.hasStaticAfter===u.hasStaticAfter)return i.optionalParamCount-u.optionalParamCount;if(i.hasStaticAfter&&!u.hasStaticAfter)return-1;if(!i.hasStaticAfter&&u.hasStaticAfter)return 1}return u.scores.length-i.scores.length}for(let c=0;c<h;c++)if(i.parsed[c].value!==u.parsed[c].value)return i.parsed[c].value>u.parsed[c].value?1:-1;return i.index-u.index}).map((i,u)=>(i.child.rank=u,i.child));return{routesById:t,routesByPath:s,flatRoutes:l}}function Js({pathname:e,routePathname:o,basepath:t,caseSensitive:s,routesByPath:r,routesById:n,flatRoutes:a,parseCache:l}){let i={};const u=ue(e),h=p=>{var v;return nt(t,u,{to:p.fullPath,caseSensitive:((v=p.options)==null?void 0:v.caseSensitive)??s,fuzzy:!0},l)};let c=o!==void 0?r[o]:void 0;if(c)i=h(c);else{let p;for(const v of a){const y=h(v);if(y)if(v.path!=="/"&&y["**"])p||(p={foundRoute:v,routeParams:y});else{c=v,i=y;break}}!c&&p&&(c=p.foundRoute,i=p.routeParams)}let d=c||n[$];const f=[d];for(;d.parentRoute;)d=d.parentRoute,f.push(d);return f.reverse(),{matchedRoutes:f,routeParams:i,foundRoute:c}}function Ys({search:e,dest:o,destRoutes:t,_includeValidateSearch:s}){const r=t.reduce((l,i)=>{var u;const h=[];if("search"in i.options)(u=i.options.search)!=null&&u.middlewares&&h.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:d,next:f})=>{let p=d;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(p=i.options.preSearchFilters.reduce((y,_)=>_(y),d));const v=f(p);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((y,_)=>_(y),v):v};h.push(c)}if(s&&i.options.validateSearch){const c=({search:d,next:f})=>{const p=f(d);try{return{...p,...at(i.options.validateSearch,p)??void 0}}catch{return p}};h.push(c)}return l.concat(h)},[])??[],n=({search:l})=>o.search?o.search===!0?l:Q(o.search,l):{};r.push(n);const a=(l,i)=>{if(l>=r.length)return i;const u=r[l];return u({search:i,next:c=>a(l+1,c)})};return a(0,e)}const Xs="Error preloading route! ☝️";class io{constructor(o){if(this.init=t=>{var s,r;this.originalIndex=t.originalIndex;const n=this.options,a=!(n!=null&&n.path)&&!(n!=null&&n.id);this.parentRoute=(r=(s=this.options).getParentRoute)==null?void 0:r.call(s),a?this._path=$:this.parentRoute||U(!1);let l=a?$:n==null?void 0:n.path;l&&l!=="/"&&(l=ut(l));const i=(n==null?void 0:n.id)||l;let u=a?$:K([this.parentRoute.id===$?"":this.parentRoute.id,i]);l===$&&(l="/"),u!==$&&(u=K(["/",u]));const h=u===$?"/":K([this.parentRoute.fullPath,l]);this._path=l,this._id=u,this._fullPath=h,this._to=h},this.clone=t=>{this._path=t._path,this._id=t._id,this._fullPath=t._fullPath,this._to=t._to,this.options.getParentRoute=t.options.getParentRoute,this.children=t.children},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.options=o||{},this.isRoot=!(o!=null&&o.getParentRoute),o!=null&&o.id&&(o!=null&&o.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Zs extends io{constructor(o){super(o)}}function dt(e){const o=e.errorComponent??Be;return m.jsx(Qs,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:t,reset:s})=>t?R.createElement(o,{error:t,reset:s}):e.children})}class Qs extends R.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(o){return{resetKey:o.getResetKey()}}static getDerivedStateFromError(o){return{error:o}}reset(){this.setState({error:null})}componentDidUpdate(o,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(o,t){this.props.onCatch&&this.props.onCatch(o,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Be({error:e}){const[o,t]=R.useState(!1);return m.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[m.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),m.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>t(s=>!s),children:o?"Hide Error":"Show Error"})]}),m.jsx("div",{style:{height:".25rem"}}),o?m.jsx("div",{children:m.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?m.jsx("code",{children:e.message}):null})}):null]})}function er({children:e,fallback:o=null}){return tr()?m.jsx(xe.Fragment,{children:e}):m.jsx(xe.Fragment,{children:o})}function tr(){return xe.useSyncExternalStore(or,()=>!0,()=>!1)}function or(){return()=>{}}var Ye={exports:{}},Xe={};/**
32
+ * @license React
33
+ * use-sync-external-store-shim/with-selector.production.js
34
+ *
35
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */var zt;function sr(){if(zt)return Xe;zt=1;var e=bo(),o=$o();function t(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var s=typeof Object.is=="function"?Object.is:t,r=o.useSyncExternalStore,n=e.useRef,a=e.useEffect,l=e.useMemo,i=e.useDebugValue;return Xe.useSyncExternalStoreWithSelector=function(u,h,c,d,f){var p=n(null);if(p.current===null){var v={hasValue:!1,value:null};p.current=v}else v=p.current;p=l(function(){function _(w){if(!P){if(P=!0,g=w,w=d(w),f!==void 0&&v.hasValue){var C=v.value;if(f(C,w))return S=C}return S=w}if(C=S,s(g,w))return C;var M=d(w);return f!==void 0&&f(C,M)?(g=w,C):(g=w,S=M)}var P=!1,g,S,b=c===void 0?null:c;return[function(){return _(h())},b===null?void 0:function(){return _(b())}]},[h,c,d,f]);var y=r(u,p[0],p[1]);return a(function(){v.hasValue=!0,v.value=y},[y]),i(y),y},Xe}var Wt;function rr(){return Wt||(Wt=1,Ye.exports=sr()),Ye.exports}var nr=rr();function ir(e,o=t=>t){return nr.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,o,ar)}function ar(e,o){if(Object.is(e,o))return!0;if(typeof e!="object"||e===null||typeof o!="object"||o===null)return!1;if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(const[s,r]of e)if(!o.has(s)||!Object.is(r,o.get(s)))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(const s of e)if(!o.has(s))return!1;return!0}if(e instanceof Date&&o instanceof Date)return e.getTime()===o.getTime();const t=Object.keys(e);if(t.length!==Object.keys(o).length)return!1;for(let s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(o,t[s])||!Object.is(e[t[s]],o[t[s]]))return!1;return!0}const Ze=R.createContext(null);function ao(){return typeof document>"u"?Ze:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Ze,Ze)}function O(e){const o=R.useContext(ao());return e==null||e.warn,o}function j(e){const o=O({warn:(e==null?void 0:e.router)===void 0}),t=(e==null?void 0:e.router)||o,s=R.useRef(void 0);return ir(t.__store,r=>{if(e!=null&&e.select){if(e.structuralSharing??t.options.defaultStructuralSharing){const n=A(s.current,e.select(r));return s.current=n,n}return e.select(r)}return r})}const Ve=R.createContext(void 0),cr=R.createContext(void 0);function F(e){const o=R.useContext(e.from?cr:Ve);return j({select:s=>{const r=s.matches.find(n=>e.from?e.from===n.routeId:n.id===o);if(U(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function ht(e){return F({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:o=>e.select?e.select(o.loaderData):o.loaderData})}function ft(e){const{select:o,...t}=e;return F({...t,select:s=>o?o(s.loaderDeps):s.loaderDeps})}function pt(e){return F({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:o=>e.select?e.select(o.params):o.params})}function mt(e){return F({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:o=>e.select?e.select(o.search):o.search})}function vt(e){const{navigate:o,state:t}=O(),s=F({strict:!1,select:r=>r.index});return R.useCallback(r=>{const n=r.from??(e==null?void 0:e.from)??t.matches[s].fullPath;return o({...r,from:n})},[e==null?void 0:e.from,o])}const ke=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Qe(e){const o=R.useRef({value:e,prev:null}),t=o.current.value;return e!==t&&(o.current={value:e,prev:t}),o.current.prev}function lr(e,o,t={},s={}){R.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([n])=>{o(n)},t);return r.observe(e.current),()=>{r.disconnect()}},[o,t,s.disabled,e])}function ur(e){const o=R.useRef(null);return R.useImperativeHandle(e,()=>o.current,[]),o}function dr(e,o){const t=O(),[s,r]=R.useState(!1),n=R.useRef(!1),a=ur(o),{activeProps:l,inactiveProps:i,activeOptions:u,to:h,preload:c,preloadDelay:d,hashScrollIntoView:f,replace:p,startTransition:v,resetScroll:y,viewTransition:_,children:P,target:g,disabled:S,style:b,className:w,onClick:C,onFocus:M,onMouseEnter:k,onMouseLeave:x,onTouchStart:L,ignoreBlocker:I,params:B,search:E,hash:be,state:D,mask:Y,reloadDocument:gt,unsafeRelative:vo,from:Dr,_fromLocation:Br,...yt}=e,_t=R.useMemo(()=>{try{return new URL(h),"external"}catch{}return"internal"},[h]),go=j({select:T=>T.location.search,structuralSharing:!0}),fe=F({strict:!1,select:T=>e.from??T.fullPath}),X=R.useMemo(()=>t.buildLocation({...e,from:fe}),[t,go,e._fromLocation,fe,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ze=_t==="external",se=e.reloadDocument||ze?!1:c??t.options.defaultPreload,We=d??t.options.defaultPreloadDelay??0,Ke=j({select:T=>{if(ze)return!1;if(u!=null&&u.exact){if(!cs(T.location.pathname,X.pathname,t.basepath))return!1}else{const N=je(T.location.pathname,t.basepath),H=je(X.pathname,t.basepath);if(!(N.startsWith(H)&&(N.length===H.length||N[H.length]==="/")))return!1}return((u==null?void 0:u.includeSearch)??!0)&&!ae(T.location.search,X.search,{partial:!(u!=null&&u.exact),ignoreUndefined:!(u!=null&&u.explicitUndefined)})?!1:u!=null&&u.includeHash?T.location.hash===X.hash:!0}}),Z=R.useCallback(()=>{t.preloadRoute({...e,from:fe}).catch(T=>{console.warn(T),console.warn(Xs)})},[t,e.to,e._fromLocation,fe,e.search,e.hash,e.params,e.state,e.mask,e.unsafeRelative,e.hashScrollIntoView,e.href,e.ignoreBlocker,e.reloadDocument,e.replace,e.resetScroll,e.viewTransition]),yo=R.useCallback(T=>{T!=null&&T.isIntersecting&&Z()},[Z]);if(lr(a,yo,vr,{disabled:!!S||se!=="viewport"}),R.useEffect(()=>{n.current||!S&&se==="render"&&(Z(),n.current=!0)},[S,Z,se]),ze)return{...yt,ref:a,type:_t,href:h,...P&&{children:P},...g&&{target:g},...S&&{disabled:S},...b&&{style:b},...w&&{className:w},...C&&{onClick:C},...M&&{onFocus:M},...k&&{onMouseEnter:k},...x&&{onMouseLeave:x},...L&&{onTouchStart:L}};const _o=T=>{if(!S&&!gr(T)&&!T.defaultPrevented&&(!g||g==="_self")&&T.button===0){T.preventDefault(),Ao.flushSync(()=>{r(!0)});const N=t.subscribe("onResolved",()=>{N(),r(!1)});t.navigate({...e,from:fe,replace:p,resetScroll:y,hashScrollIntoView:f,startTransition:v,viewTransition:_,ignoreBlocker:I})}},St=T=>{S||se&&Z()},So=St,xo=T=>{if(!(S||!se))if(!We)Z();else{const N=T.target;if(me.has(N))return;const H=setTimeout(()=>{me.delete(N),Z()},We);me.set(N,H)}},Ro=T=>{if(S||!se||!We)return;const N=T.target,H=me.get(N);H&&(clearTimeout(H),me.delete(N))},Pe=Ke?Q(l,{})??hr:et,we=Ke?et:Q(i,{})??et,xt=[w,Pe.className,we.className].filter(Boolean).join(" "),Rt=(b||Pe.style||we.style)&&{...b,...Pe.style,...we.style};return{...yt,...Pe,...we,href:S?void 0:X.maskedLocation?t.history.createHref(X.maskedLocation.href):t.history.createHref(X.href),ref:a,onClick:ve([C,_o]),onFocus:ve([M,St]),onMouseEnter:ve([k,xo]),onMouseLeave:ve([x,Ro]),onTouchStart:ve([L,So]),disabled:!!S,target:g,...Rt&&{style:Rt},...xt&&{className:xt},...S&&fr,...Ke&&pr,...s&&mr}}const et={},hr={className:"active"},fr={role:"link","aria-disabled":!0},pr={"data-status":"active","aria-current":"page"},mr={"data-transitioning":"transitioning"},me=new WeakMap,vr={rootMargin:"100px"},ve=e=>o=>{e.filter(Boolean).forEach(t=>{o.defaultPrevented||t(o)})},Oe=R.forwardRef((e,o)=>{const{_asChild:t,...s}=e,{type:r,ref:n,...a}=dr(s,o),l=typeof s.children=="function"?s.children({isActive:a["data-status"]==="active"}):s.children;return t===void 0&&delete a.disabled,R.createElement(t||"a",{...a,ref:n},l)});function gr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}class yr extends io{constructor(o){super(o),this.useMatch=t=>F({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>F({...t,from:this.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>mt({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>pt({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>ft({...t,from:this.id}),this.useLoaderData=t=>ht({...t,from:this.id}),this.useNavigate=()=>vt({from:this.fullPath}),this.Link=xe.forwardRef((t,s)=>m.jsx(Oe,{ref:s,from:this.fullPath,...t})),this.$$typeof=Symbol.for("react.memo")}}function _r(e){return new yr(e)}class Sr extends Zs{constructor(o){super(o),this.useMatch=t=>F({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>F({...t,from:this.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>mt({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>pt({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>ft({...t,from:this.id}),this.useLoaderData=t=>ht({...t,from:this.id}),this.useNavigate=()=>vt({from:this.fullPath}),this.Link=xe.forwardRef((t,s)=>m.jsx(Oe,{ref:s,from:this.fullPath,...t})),this.$$typeof=Symbol.for("react.memo")}}function on(e){return new Sr(e)}function Kt(e){return typeof e=="object"?new Ut(e,{silent:!0}).createRoute(e):new Ut(e,{silent:!0}).createRoute}class Ut{constructor(o,t){this.path=o,this.createRoute=s=>{this.silent;const r=_r(s);return r.isRoot=!1,r},this.silent=t==null?void 0:t.silent}}class Ht{constructor(o){this.useMatch=t=>F({select:t==null?void 0:t.select,from:this.options.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>F({from:this.options.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>mt({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.options.id}),this.useParams=t=>pt({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.options.id}),this.useLoaderDeps=t=>ft({...t,from:this.options.id}),this.useLoaderData=t=>ht({...t,from:this.options.id}),this.useNavigate=()=>{const t=O();return vt({from:t.routesById[this.options.id].fullPath})},this.options=o,this.$$typeof=Symbol.for("react.memo")}}function qt(e){return typeof e=="object"?new Ht(e):o=>new Ht({id:e,...o})}function xr(){const e=O(),o=R.useRef({router:e,mounted:!1}),[t,s]=R.useState(!1),{hasPendingMatches:r,isLoading:n}=j({select:c=>({isLoading:c.isLoading,hasPendingMatches:c.matches.some(d=>d.status==="pending")}),structuralSharing:!0}),a=Qe(n),l=n||t||r,i=Qe(l),u=n||r,h=Qe(u);return e.startTransition=c=>{s(!0),R.startTransition(()=>{c(),s(!1)})},R.useEffect(()=>{const c=e.history.subscribe(e.load),d=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ue(e.latestLocation.href)!==ue(d.href)&&e.commitLocation({...d,replace:!0}),()=>{c()}},[e,e.history]),ke(()=>{if(typeof window<"u"&&e.ssr||o.current.router===e&&o.current.mounted)return;o.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(d){console.error(d)}})()},[e]),ke(()=>{a&&!n&&e.emit({type:"onLoad",...ee(e.state)})},[a,e,n]),ke(()=>{h&&!u&&e.emit({type:"onBeforeRouteMount",...ee(e.state)})},[u,h,e]),ke(()=>{i&&!l&&(e.emit({type:"onResolved",...ee(e.state)}),e.__store.setState(c=>({...c,status:"idle",resolvedLocation:c.location})),ws(e))},[l,i,e]),null}function Rr(e){const o=j({select:t=>`not-found-${t.location.pathname}-${t.status}`});return m.jsx(dt,{getResetKey:()=>o,onCatch:(t,s)=>{var r;if(z(t))(r=e.onCatch)==null||r.call(e,t,s);else throw t},errorComponent:({error:t})=>{var s;if(z(t))return(s=e.fallback)==null?void 0:s.call(e,t);throw t},children:e.children})}function br(){return m.jsx("p",{children:"Not Found"})}function re(e){return m.jsx(m.Fragment,{children:e.children})}function co(e,o,t){return o.options.notFoundComponent?m.jsx(o.options.notFoundComponent,{data:t}):e.options.defaultNotFoundComponent?m.jsx(e.options.defaultNotFoundComponent,{data:t}):m.jsx(br,{})}function Pr({children:e}){return typeof document<"u"?null:m.jsx("script",{className:"$tsr",dangerouslySetInnerHTML:{__html:[e].filter(Boolean).join(`
40
+ `)}})}function wr(){const e=O(),t=(e.options.getScrollRestorationKey||it)(e.latestLocation),s=t!==it(e.latestLocation)?t:void 0;if(!e.isScrollRestoring||!e.isServer)return null;const r={storageKey:Ae,shouldScrollRestoration:!0};return s&&(r.key=s),m.jsx(Pr,{children:`(${Zt.toString()})(${JSON.stringify(r)})`})}const lo=R.memo(function({matchId:o}){var t,s;const r=O(),n=j({select:g=>{const S=g.matches.find(b=>b.id===o);return U(S),{routeId:S.routeId,ssr:S.ssr,_displayPending:S._displayPending}},structuralSharing:!0}),a=r.routesById[n.routeId],l=a.options.pendingComponent??r.options.defaultPendingComponent,i=l?m.jsx(l,{}):null,u=a.options.errorComponent??r.options.defaultErrorComponent,h=a.options.onCatch??r.options.defaultOnCatch,c=a.isRoot?a.options.notFoundComponent??((t=r.options.notFoundRoute)==null?void 0:t.options.component):a.options.notFoundComponent,d=n.ssr===!1||n.ssr==="data-only",f=(!a.isRoot||a.options.wrapInSuspense||d)&&(a.options.wrapInSuspense??l??(((s=a.options.errorComponent)==null?void 0:s.preload)||d))?R.Suspense:re,p=u?dt:re,v=c?Rr:re,y=j({select:g=>g.loadedAt}),_=j({select:g=>{var S;const b=g.matches.findIndex(w=>w.id===o);return(S=g.matches[b-1])==null?void 0:S.routeId}}),P=a.isRoot?a.options.shellComponent??re:re;return m.jsxs(P,{children:[m.jsx(Ve.Provider,{value:o,children:m.jsx(f,{fallback:i,children:m.jsx(p,{getResetKey:()=>y,errorComponent:u||Be,onCatch:(g,S)=>{if(z(g))throw g;h==null||h(g,S)},children:m.jsx(v,{fallback:g=>{if(!c||g.routeId&&g.routeId!==n.routeId||!g.routeId&&!a.isRoot)throw g;return R.createElement(c,g)},children:d||n._displayPending?m.jsx(er,{fallback:i,children:m.jsx(Gt,{matchId:o})}):m.jsx(Gt,{matchId:o})})})})}),_===$&&r.options.scrollRestoration?m.jsxs(m.Fragment,{children:[m.jsx(Cr,{}),m.jsx(wr,{})]}):null]})});function Cr(){const e=O(),o=R.useRef(void 0);return m.jsx("script",{suppressHydrationWarning:!0,ref:t=>{t&&(o.current===void 0||o.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...ee(e.state)}),o.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Gt=R.memo(function({matchId:o}){var t,s,r,n;const a=O(),{match:l,key:i,routeId:u}=j({select:d=>{const f=d.matches.find(P=>P.id===o),p=f.routeId,v=a.routesById[p].options.remountDeps??a.options.defaultRemountDeps,y=v==null?void 0:v({routeId:p,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return{key:y?JSON.stringify(y):void 0,routeId:p,match:{id:f.id,status:f.status,error:f.error,_forcePending:f._forcePending,_displayPending:f._displayPending}}},structuralSharing:!0}),h=a.routesById[u],c=R.useMemo(()=>{const d=h.options.component??a.options.defaultComponent;return d?m.jsx(d,{},i):m.jsx(Mr,{})},[i,h.options.component,a.options.defaultComponent]);if(l._displayPending)throw(t=a.getMatch(l.id))==null?void 0:t._nonReactive.displayPendingPromise;if(l._forcePending)throw(s=a.getMatch(l.id))==null?void 0:s._nonReactive.minPendingPromise;if(l.status==="pending"){const d=h.options.pendingMinMs??a.options.defaultPendingMinMs;if(d){const f=a.getMatch(l.id);if(f&&!f._nonReactive.minPendingPromise&&!a.isServer){const p=ce();f._nonReactive.minPendingPromise=p,setTimeout(()=>{p.resolve(),f._nonReactive.minPendingPromise=void 0},d)}}throw(r=a.getMatch(l.id))==null?void 0:r._nonReactive.loadPromise}if(l.status==="notFound")return U(z(l.error)),co(a,h,l.error);if(l.status==="redirected")throw U(V(l.error)),(n=a.getMatch(l.id))==null?void 0:n._nonReactive.loadPromise;if(l.status==="error"){if(a.isServer){const d=(h.options.errorComponent??a.options.defaultErrorComponent)||Be;return m.jsx(d,{error:l.error,reset:void 0,info:{componentStack:""}})}throw l.error}return c}),Mr=R.memo(function(){const o=O(),t=R.useContext(Ve),s=j({select:u=>{var h;return(h=u.matches.find(c=>c.id===t))==null?void 0:h.routeId}}),r=o.routesById[s],n=j({select:u=>{const c=u.matches.find(d=>d.id===t);return U(c),c.globalNotFound}}),a=j({select:u=>{var h;const c=u.matches,d=c.findIndex(f=>f.id===t);return(h=c[d+1])==null?void 0:h.id}}),l=o.options.defaultPendingComponent?m.jsx(o.options.defaultPendingComponent,{}):null;if(n)return co(o,r,void 0);if(!a)return null;const i=m.jsx(lo,{matchId:a});return t===$?m.jsx(R.Suspense,{fallback:l,children:i}):i});function Lr(){const e=O(),o=e.options.defaultPendingComponent?m.jsx(e.options.defaultPendingComponent,{}):null,t=e.isServer||typeof document<"u"&&e.ssr?re:R.Suspense,s=m.jsxs(t,{fallback:o,children:[!e.isServer&&m.jsx(xr,{}),m.jsx(kr,{})]});return e.options.InnerWrap?m.jsx(e.options.InnerWrap,{children:s}):s}function kr(){const e=O(),o=j({select:r=>{var n;return(n=r.matches[0])==null?void 0:n.id}}),t=j({select:r=>r.loadedAt}),s=o?m.jsx(lo,{matchId:o}):null;return m.jsx(Ve.Provider,{value:o,children:e.options.disableGlobalCatchBoundary?s:m.jsx(dt,{getResetKey:()=>t,errorComponent:Be,onCatch:r=>{r.message||r.toString()},children:s})})}const sn=e=>new Tr(e);class Tr extends Ds{constructor(o){super(o)}}typeof globalThis<"u"?(globalThis.createFileRoute=Kt,globalThis.createLazyFileRoute=qt):typeof window<"u"&&(window.createFileRoute=Kt,window.createLazyFileRoute=qt);function Ir({router:e,children:o,...t}){Object.keys(t).length>0&&e.update({...e.options,...t,context:{...e.options.context,...t.context}});const s=ao(),r=m.jsx(s.Provider,{value:e,children:o});return e.options.Wrap?m.jsx(e.options.Wrap,{children:r}):r}function rn({router:e,...o}){return m.jsx(Ir,{router:e,...o,children:m.jsx(Lr,{})})}function Er(e){return j({select:o=>o.location})}const jr={theme:"system",setTheme:()=>null},uo=R.createContext(jr);function Nr({children:e,defaultTheme:o="system",storageKey:t="vite-ui-theme",...s}){return m.jsx(Wo,{attribute:"class",defaultTheme:o,storageKey:t,enableSystem:!0,disableTransitionOnChange:!0,children:m.jsx(Ar,{...s,children:e})})}function Ar({children:e,...o}){const{theme:t,resolvedTheme:s,setTheme:r}=Ko();R.useEffect(()=>{if(typeof document>"u")return;const a=document.documentElement,l=document.body,i=document.getElementById("app"),u=s??"light";a.setAttribute("data-theme",u),a.style.colorScheme=u;const h=u==="dark"?"light":"dark";a.classList.remove(h),l.classList.remove(h),i==null||i.classList.remove(h),a.classList.add(u),l.classList.add(u),i==null||i.classList.add(u)},[s]);const n={theme:t??"system",setTheme:a=>r(a)};return m.jsx(uo,{...o,value:n,children:e})}const $r=()=>{const e=R.use(uo);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};Nr.__docgenInfo={description:"",methods:[],displayName:"ThemeProvider",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultTheme:{required:!1,tsType:{name:"union",raw:"'dark' | 'light' | 'system'",elements:[{name:"literal",value:"'dark'"},{name:"literal",value:"'light'"},{name:"literal",value:"'system'"}]},description:"",defaultValue:{value:"'system'",computed:!1}},storageKey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'vite-ui-theme'",computed:!1}}}};function ho({className:e}){const{theme:o,setTheme:t}=$r(),s=R.useMemo(()=>o==="light"?m.jsx(Lt,{className:"h-4 w-4"}):o==="dark"?m.jsx(Mt,{className:"h-4 w-4"}):m.jsx(Ct,{className:"h-4 w-4"}),[o]);return m.jsxs(Fo,{children:[m.jsx(Oo,{asChild:!0,children:m.jsx(zo,{variant:"ghost",size:"sm",className:e,"aria-label":"Toggle theme",children:s})}),m.jsxs(Do,{align:"end",sideOffset:8,className:"w-40",children:[m.jsx(Bo,{children:"Theme"}),m.jsx(Vo,{}),m.jsxs(Ue,{onClick:()=>t("light"),children:[m.jsx(Lt,{className:"mr-2 h-4 w-4"})," ","Light"]}),m.jsxs(Ue,{onClick:()=>t("dark"),children:[m.jsx(Mt,{className:"mr-2 h-4 w-4"})," ","Dark"]}),m.jsxs(Ue,{onClick:()=>t("system"),children:[m.jsx(Ct,{className:"mr-2 h-4 w-4"})," ","System"]})]})]})}ho.__docgenInfo={description:"",methods:[],displayName:"ThemeToggle",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const fo=R.createContext(null);function po(){const e=R.useContext(fo);if(!e){const o=()=>{};return{groups:[],setGroups:o,registerGroup:o,registerItem:o,clear:o}}return e}function nn(){const{setGroups:e,registerGroup:o,registerItem:t,clear:s}=po();return{setGroups:e,registerGroup:o,registerItem:t,clear:s}}function mo({initialGroups:e=[],children:o}){const[t,s]=R.useState(e),r=R.useCallback(i=>{s(u=>u.some(c=>c.id===i.id)?u:[...u,{id:i.id,label:i.label,items:i.items??[]}])},[]),n=R.useCallback((i,u)=>{s(h=>{const c=h.findIndex(d=>d.id===i);if(c>=0){const d=h[c],f=[...d.items],p=f.findIndex(y=>y.id===u.id);p>=0?f[p]=u:f.push(u);const v=[...h];return v[c]={...d,items:f},v}return[...h,{id:i,label:i,items:[u]}]})},[]),a=R.useCallback(()=>{s([])},[]),l=R.useMemo(()=>({groups:t,setGroups:s,registerGroup:r,registerItem:n,clear:a}),[t,r,n,a]);return m.jsx(fo.Provider,{value:l,children:o})}mo.__docgenInfo={description:"",methods:[],displayName:"AdminMenuProvider",props:{initialGroups:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
41
+ id: string;
42
+ label: string;
43
+ items: AdminMenuItem[];
44
+ }`,signature:{properties:[{key:"id",value:{name:"string",required:!0}},{key:"label",value:{name:"string",required:!0}},{key:"items",value:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
45
+ id: string;
46
+ title: string;
47
+ url?: string;
48
+ icon?: React.ComponentType<{ className?: string }>;
49
+ badge?: string | number;
50
+ onClick?: () => void;
51
+ disabled?: boolean;
52
+ children?: AdminMenuItem[];
53
+ }`,signature:{properties:[{key:"id",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}},{key:"url",value:{name:"string",required:!1}},{key:"icon",value:{name:"ReactComponentType",raw:"React.ComponentType<{ className?: string }>",elements:[{name:"signature",type:"object",raw:"{ className?: string }",signature:{properties:[{key:"className",value:{name:"string",required:!1}}]}}],required:!1}},{key:"badge",value:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}],required:!1}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}},{key:"disabled",value:{name:"boolean",required:!1}},{key:"children",value:{name:"Array",elements:[{name:"AdminMenuItem"}],raw:"AdminMenuItem[]",required:!1}}]}}],raw:"AdminMenuItem[]",required:!0}}]}}],raw:"AdminMenuGroup[]"},description:"",defaultValue:{value:"[]",computed:!1}},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};function Fr({children:e,defaultItemIcon:o,sidebarCollapsible:t=!1,sidebarHeader:s,sidebarHeaderTitle:r,sidebarHeaderIcon:n,headerAfterTrigger:a,headerAfterTheme:l}){const{groups:i}=po(),u=Er(),[h,c]=R.useState({}),d=o??qo,f=n??es,p=r??"Application",v=g=>g?u.pathname===g||u.pathname.startsWith(g+"/"):!1,y=R.useCallback((g,S)=>{c(b=>({...b,[g]:S??!b[g]}))},[]),_=g=>!g.children||g.children.length===0?!1:g.children.some(S=>v(S.url)||_(S)),P=(g,S=0)=>{const b=Array.isArray(g.children)&&g.children.length>0,w=v(g.url),C=h[g.id]??(b&&_(g)),k=["","pl-6","pl-10","pl-14"][Math.min(S,3)];return m.jsxs(Pt,{className:`mb-1 ${S>0?"ml-1":""}`,children:[m.jsx(wt,{asChild:!!g.url&&!b,isActive:w,tooltip:g.title,onClick:()=>{b&&y(g.id)},disabled:g.disabled,className:`group relative overflow-hidden rounded-lg transition-all duration-200 hover:bg-sidebar-accent/70 data-[active=true]:bg-primary data-[active=true]:text-primary-foreground ${k}`,children:g.url&&!b?m.jsxs(Oe,{to:g.url,className:"flex items-center gap-3 px-3",children:[g.icon&&m.jsx(g.icon,{className:`h-4 w-4 transition-colors ${w?"text-primary-foreground":"text-sidebar-foreground group-hover:text-sidebar-accent-foreground"}`}),m.jsx("span",{className:`font-medium transition-colors ${w?"text-primary-foreground":"text-sidebar-foreground group-hover:text-sidebar-accent-foreground"}`,children:g.title}),g.badge&&m.jsx("span",{className:"ml-auto text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:g.badge})]}):m.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 w-full",children:[b&&(C?m.jsx(Uo,{className:"h-3.5 w-3.5 text-muted-foreground"}):m.jsx(Ho,{className:"h-3.5 w-3.5 text-muted-foreground"})),g.icon?m.jsx(g.icon,{className:"h-4 w-4 text-sidebar-foreground group-hover:text-sidebar-accent-foreground"}):m.jsx(d,{className:"h-3.5 w-3.5 text-muted-foreground"}),g.url?m.jsx(Oe,{to:g.url,className:"flex-1 text-left",children:m.jsx("span",{className:"font-medium text-sidebar-foreground group-hover:text-sidebar-accent-foreground",children:g.title})}):m.jsx("span",{className:"font-medium text-sidebar-foreground group-hover:text-sidebar-accent-foreground flex-1",children:g.title}),g.badge&&m.jsx("span",{className:"ml-auto text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:g.badge})]})}),b&&C&&m.jsx("div",{className:"mt-1 flex flex-col",children:(g.children??[]).map(L=>P(L,Math.min(S+1,3)))})]},g.id)};return m.jsxs("div",{className:"flex min-h-dvh w-full",children:[m.jsxs(wo,{className:"bg-sidebar border-r border-sidebar-border",collapsible:t?"icon":"none",children:[m.jsx(Co,{className:"bg-sidebar border-b border-sidebar-border",children:s||m.jsx("div",{className:"sidebar-header-content flex items-center justify-center px-4 py-3",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary text-primary-foreground",children:m.jsx(f,{className:"h-4 w-4"})}),m.jsx("span",{className:"font-semibold text-sidebar-foreground",children:p})]})})}),m.jsx(Mo,{className:"bg-sidebar px-2 py-4",children:i.map((g,S)=>m.jsxs(R.Fragment,{children:[m.jsxs(Lo,{children:[m.jsx(ko,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider px-3 mb-2 group-data-[collapsible=icon]:hidden",children:g.label}),m.jsx(To,{children:m.jsx(bt,{className:"group-data-[collapsible=icon]:items-center",children:g.items.map(b=>P(b,0))})})]}),S<i.length-1&&m.jsx(No,{orientation:"horizontal",className:"bg-sidebar-border group-data-[collapsible=icon]:hidden"})]},g.id))}),m.jsx(Io,{className:"bg-sidebar border-t border-sidebar-border px-2 py-3",children:m.jsx(bt,{children:m.jsx(Pt,{className:"group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:justify-center",children:m.jsx(wt,{tooltip:"Logout",className:"group relative overflow-hidden rounded-lg mx-1 transition-all duration-200 hover:bg-sidebar-accent/70 hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!px-0 group-data-[collapsible=icon]:!gap-0",children:m.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!gap-0 group-data-[collapsible=icon]:!px-0",children:[m.jsx(Xo,{className:"h-4 w-4 text-sidebar-foreground group-hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:mx-auto group-data-[collapsible=icon]:mr-0"}),m.jsx("span",{className:"font-medium text-sidebar-foreground group-hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:hidden",children:"Logout"})]})})})})})]}),m.jsxs(Eo,{children:[m.jsxs("header",{className:"flex h-16 shrink-0 items-center justify-between gap-4 border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-6",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[t&&m.jsx(jo,{className:"h-8 w-8 text-foreground hover:bg-accent hover:text-accent-foreground rounded-md"}),a]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(ho,{}),l]})]}),m.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4",children:e})]})]})}function Or({children:e,defaultItemIcon:o,sidebarCollapsible:t,sidebarHeader:s,sidebarHeaderTitle:r,sidebarHeaderIcon:n,headerAfterTrigger:a,headerAfterTheme:l}){return m.jsx(mo,{children:m.jsx(Po,{children:m.jsx(Fr,{defaultItemIcon:o,sidebarCollapsible:t,sidebarHeader:s,sidebarHeaderTitle:r,sidebarHeaderIcon:n,headerAfterTrigger:a,headerAfterTheme:l,children:e})})})}Or.__docgenInfo={description:"",methods:[],displayName:"AdminLayout",props:{children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},defaultItemIcon:{required:!1,tsType:{name:"ReactComponentType",raw:"React.ComponentType<{ className?: string }>",elements:[{name:"signature",type:"object",raw:"{ className?: string }",signature:{properties:[{key:"className",value:{name:"string",required:!1}}]}}]},description:""},sidebarCollapsible:{required:!1,tsType:{name:"boolean"},description:""},sidebarHeader:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},sidebarHeaderTitle:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},sidebarHeaderIcon:{required:!1,tsType:{name:"ReactComponentType",raw:"React.ComponentType<{ className?: string }>",elements:[{name:"signature",type:"object",raw:"{ className?: string }",signature:{properties:[{key:"className",value:{name:"string",required:!1}}]}}]},description:""},headerAfterTrigger:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},headerAfterTheme:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};export{Or as A,tn as H,Mr as O,rn as R,Nr as T,_r as a,sn as b,on as c,nn as u};
@@ -0,0 +1,4 @@
1
+ import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as x}from"./iframe-v7iAhKit.js";import{A as p,c as h,a as i,b as g,R as b,T as f,O as j,u as R,H as N}from"./AdminLayout-CPvVCwfY.js";import{S,a as y}from"./shopping-cart-BFlrufvo.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-BrHXro7t.js";import"./sidebar-C8hU1Mxy.js";import"./index-DbaA6-o1.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-0oMkiryo.js";import"./input-11YRd9gD.js";import"./separator-o5SAUnaJ.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./sheet-C7jhU3XE.js";import"./index-Z6wF44KX.js";import"./index-DW48STyt.js";import"./index-CDY5kTx5.js";import"./index-BfiCOk42.js";import"./index-D8RXF03I.js";import"./index-ByqivBWx.js";import"./index-BVDb4dFc.js";import"./index-0-qMRXou.js";import"./Combination-BdQWAuko.js";import"./index-jrimW4QO.js";import"./index-AvwFFKJc.js";import"./x-B1a4fyWM.js";import"./skeleton-CjDnQs43.js";import"./tooltip-_LqYEYFw.js";import"./index-nqc17SX4.js";import"./index-Bw1A27Kp.js";import"./index-C9Ta0ZTH.js";import"./index-WyF3-wTE.js";import"./dropdown-menu-BWxxwPHL.js";import"./index-DLIxT4Z7.js";import"./index-Bv9yk470.js";import"./index-B_qx7A5T.js";import"./index-CWjrGFAQ.js";import"./check-B9hBGj6o.js";import"./circle-C5Lzx6Nx.js";import"./chevron-right-B5vIMLxK.js";import"./index-Dph_5COR.js";import"./chevron-down-D_37S6il.js";const bt={title:"Kit/Layouts/Admin",component:p};function A(){const{registerGroup:r,registerItem:e,clear:o}=R();return x.useEffect(()=>{o(),r({id:"main",label:"Main"}),e("main",{id:"dashboard",title:"Dashboard",url:"/",icon:N}),r({id:"commerce",label:"Commerce"}),e("commerce",{id:"orders",title:"Orders",url:"/orders",icon:S,badge:12}),r({id:"settings",label:"Settings"}),e("settings",{id:"general",title:"General",url:"/settings",icon:y})},[r,e,o]),null}function v(r){const e=h({component:()=>t.jsx(f,{children:t.jsxs(p,{...r,children:[t.jsx(A,{}),t.jsx(j,{})]})})}),o=i({getParentRoute:()=>e,path:"/",component:()=>t.jsxs("div",{className:"p-6",children:[t.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Dashboard"}),t.jsx("p",{className:"text-muted-foreground",children:"Welcome to the admin dashboard."})]})}),c=i({getParentRoute:()=>e,path:"/orders",component:()=>t.jsxs("div",{className:"p-6",children:[t.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Orders"}),t.jsx("p",{className:"text-muted-foreground",children:"Manage your store orders here."})]})}),d=i({getParentRoute:()=>e,path:"/settings",component:()=>t.jsxs("div",{className:"p-6",children:[t.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Settings"}),t.jsx("p",{className:"text-muted-foreground",children:"Update your application settings."})]})}),l=e.addChildren([o,c,d]),u=g({routeTree:l,basepath:"/iframe.html"});return t.jsx(b,{router:u})}const s={name:"Basic (non-collapsible by default)",render:()=>t.jsx(v,{})};var a,m,n;s.parameters={...s.parameters,docs:{...(a=s.parameters)==null?void 0:a.docs,source:{originalSource:`{
2
+ name: 'Basic (non-collapsible by default)',
3
+ render: () => <App />
4
+ }`,...(n=(m=s.parameters)==null?void 0:m.docs)==null?void 0:n.source}}};const ft=["Basic"];export{s as Basic,ft as __namedExportsOrder,bt as default};
@@ -0,0 +1,4 @@
1
+ import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as d}from"./iframe-v7iAhKit.js";import{A as a,c,a as u,b,R as g,T as x,O as R,u as h,H as f}from"./AdminLayout-CPvVCwfY.js";import{S as j,a as C}from"./shopping-cart-BFlrufvo.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-BrHXro7t.js";import"./sidebar-C8hU1Mxy.js";import"./index-DbaA6-o1.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-0oMkiryo.js";import"./input-11YRd9gD.js";import"./separator-o5SAUnaJ.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./sheet-C7jhU3XE.js";import"./index-Z6wF44KX.js";import"./index-DW48STyt.js";import"./index-CDY5kTx5.js";import"./index-BfiCOk42.js";import"./index-D8RXF03I.js";import"./index-ByqivBWx.js";import"./index-BVDb4dFc.js";import"./index-0-qMRXou.js";import"./Combination-BdQWAuko.js";import"./index-jrimW4QO.js";import"./index-AvwFFKJc.js";import"./x-B1a4fyWM.js";import"./skeleton-CjDnQs43.js";import"./tooltip-_LqYEYFw.js";import"./index-nqc17SX4.js";import"./index-Bw1A27Kp.js";import"./index-C9Ta0ZTH.js";import"./index-WyF3-wTE.js";import"./dropdown-menu-BWxxwPHL.js";import"./index-DLIxT4Z7.js";import"./index-Bv9yk470.js";import"./index-B_qx7A5T.js";import"./index-CWjrGFAQ.js";import"./check-B9hBGj6o.js";import"./circle-C5Lzx6Nx.js";import"./chevron-right-B5vIMLxK.js";import"./index-Dph_5COR.js";import"./chevron-down-D_37S6il.js";const gr={title:"Kit/Layouts/Admin",component:a};function A(){const{registerGroup:e,registerItem:r,clear:o}=h();return d.useEffect(()=>{o(),e({id:"main",label:"Main"}),r("main",{id:"dashboard",title:"Dashboard",url:"/",icon:f}),e({id:"commerce",label:"Commerce"}),r("commerce",{id:"orders",title:"Orders",url:"/orders",icon:j,badge:12}),e({id:"settings",label:"Settings"}),r("settings",{id:"general",title:"General",url:"/settings",icon:C})},[e,r,o]),null}function S(e){const r=c({component:()=>t.jsx(x,{children:t.jsxs(a,{...e,children:[t.jsx(A,{}),t.jsx(R,{})]})})}),o=u({getParentRoute:()=>r,path:"/",component:()=>t.jsx("div",{className:"p-6",children:"Home"})}),n=r.addChildren([o]),l=b({routeTree:n,basepath:"/iframe.html"});return t.jsx(g,{router:l})}const i={name:"Collapsible sidebar",render:()=>t.jsx(S,{sidebarCollapsible:!0})};var m,s,p;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`{
2
+ name: 'Collapsible sidebar',
3
+ render: () => <App sidebarCollapsible />
4
+ }`,...(p=(s=i.parameters)==null?void 0:s.docs)==null?void 0:p.source}}};const xr=["Collapsible"];export{i as Collapsible,xr as __namedExportsOrder,gr as default};
@@ -0,0 +1,29 @@
1
+ import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as y}from"./iframe-v7iAhKit.js";import{A as c,H as h,c as f,a as l,b as v,R as A,T as k,O as C,u as j}from"./AdminLayout-CPvVCwfY.js";import{C as T}from"./chart-column-DZGb4ZZS.js";import{c as s}from"./createLucideIcon-BrHXro7t.js";import{S,a as H}from"./shopping-cart-BFlrufvo.js";import"./preload-helper-Dp1pzeXC.js";import"./sidebar-C8hU1Mxy.js";import"./index-DbaA6-o1.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-0oMkiryo.js";import"./input-11YRd9gD.js";import"./separator-o5SAUnaJ.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./sheet-C7jhU3XE.js";import"./index-Z6wF44KX.js";import"./index-DW48STyt.js";import"./index-CDY5kTx5.js";import"./index-BfiCOk42.js";import"./index-D8RXF03I.js";import"./index-ByqivBWx.js";import"./index-BVDb4dFc.js";import"./index-0-qMRXou.js";import"./Combination-BdQWAuko.js";import"./index-jrimW4QO.js";import"./index-AvwFFKJc.js";import"./x-B1a4fyWM.js";import"./skeleton-CjDnQs43.js";import"./tooltip-_LqYEYFw.js";import"./index-nqc17SX4.js";import"./index-Bw1A27Kp.js";import"./index-C9Ta0ZTH.js";import"./index-WyF3-wTE.js";import"./dropdown-menu-BWxxwPHL.js";import"./index-DLIxT4Z7.js";import"./index-Bv9yk470.js";import"./index-B_qx7A5T.js";import"./index-CWjrGFAQ.js";import"./check-B9hBGj6o.js";import"./circle-C5Lzx6Nx.js";import"./chevron-right-B5vIMLxK.js";import"./index-Dph_5COR.js";import"./chevron-down-D_37S6il.js";/**
2
+ * @license lucide-react v0.540.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const M=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],N=s("bell",M);/**
7
+ * @license lucide-react v0.540.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const R=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],p=s("file-text",R);/**
12
+ * @license lucide-react v0.540.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const _=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],O=s("life-buoy",_);/**
17
+ * @license lucide-react v0.540.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const w=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],P=s("shield",w);/**
22
+ * @license lucide-react v0.540.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const E=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],q=s("users",E),_e={title:"Kit/Layouts/Admin",component:c};function B(){const{registerGroup:r,registerItem:e,clear:i}=j();return y.useEffect(()=>{i(),r({id:"overview",label:"Overview"}),e("overview",{id:"home",title:"Home",url:"/",icon:h}),e("overview",{id:"reports",title:"Reports",url:"/reports",icon:T,badge:"New"}),r({id:"management",label:"Management"}),e("management",{id:"users",title:"Users",icon:q,badge:3,children:[{id:"users-all",title:"All Users",url:"/users"},{id:"users-teams",title:"Teams",children:[{id:"team-alpha",title:"Team Alpha",url:"/users/teams/alpha",children:[{id:"team-alpha-members",title:"Members",url:"/users/teams/alpha/members"},{id:"team-alpha-settings",title:"Settings",url:"/users/teams/alpha/settings"}]},{id:"team-beta",title:"Team Beta",url:"/users/teams/beta"}]}]}),e("management",{id:"orders",title:"Orders",icon:S,children:[{id:"orders-all",title:"All Orders",url:"/orders"},{id:"orders-pending",title:"Pending",url:"/orders/pending",badge:5},{id:"orders-completed",title:"Completed",url:"/orders/completed"}]}),e("management",{id:"export",title:"Export CSV",onClick:()=>console.log("Export CSV")}),r({id:"content",label:"Content"}),e("content",{id:"articles",title:"Articles",icon:p,children:[{id:"articles-published",title:"Published",url:"/articles"},{id:"articles-archived",title:"Archived",url:"/articles/archived"}]}),e("content",{id:"drafts",title:"Drafts",url:"/drafts",icon:p,badge:7}),r({id:"system",label:"System"}),e("system",{id:"alerts",title:"Alerts",url:"/alerts",icon:N}),e("system",{id:"security",title:"Security",url:"/security",icon:P,disabled:!0}),e("system",{id:"support",title:"Support",url:"/support",icon:O}),r({id:"settings",label:"Settings"}),e("settings",{id:"general",title:"General",url:"/settings",icon:H})},[r,e,i]),null}function I(r){const e=f({component:()=>t.jsx(k,{children:t.jsxs(c,{...r,children:[t.jsx(B,{}),t.jsx(C,{})]})})}),i=l({getParentRoute:()=>e,path:"/",component:()=>t.jsxs("div",{className:"p-6",children:[t.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Home"}),t.jsx("p",{className:"text-muted-foreground",children:"Overview of your admin panel."})]})}),u=[{path:"/reports",title:"Reports"},{path:"/users",title:"Users"},{path:"/users/teams/alpha",title:"Team Alpha"},{path:"/users/teams/alpha/members",title:"Team Alpha Members"},{path:"/users/teams/alpha/settings",title:"Team Alpha Settings"},{path:"/users/teams/beta",title:"Team Beta"},{path:"/orders",title:"Orders"},{path:"/orders/pending",title:"Orders Pending"},{path:"/orders/completed",title:"Orders Completed"},{path:"/articles",title:"Articles"},{path:"/articles/archived",title:"Articles Archived"},{path:"/drafts",title:"Drafts"},{path:"/alerts",title:"Alerts"},{path:"/security",title:"Security"},{path:"/support",title:"Support"},{path:"/settings",title:"Settings"}].map(({path:b,title:o})=>l({getParentRoute:()=>e,path:b,component:()=>t.jsxs("div",{className:"p-6",children:[t.jsx("h2",{className:"text-xl font-semibold mb-2",children:o}),t.jsxs("p",{className:"text-muted-foreground",children:["This is the ",o," page."]})]})})),x=e.addChildren([i,...u]),g=v({routeTree:x,basepath:"/iframe.html"});return t.jsx(A,{router:g})}const a={name:"Complex menu",render:()=>t.jsx(I,{sidebarHeaderIcon:h,sidebarHeaderTitle:t.jsx("span",{children:"Admin App"}),headerAfterTrigger:t.jsx("input",{className:"h-8 w-64 rounded-md border px-3 text-sm",placeholder:"Quick search…"}),headerAfterTheme:t.jsx("button",{className:"h-8 rounded-md border px-3 text-sm",children:"Help"})})};var m,d,n;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`{
27
+ name: 'Complex menu',
28
+ render: () => <App sidebarHeaderIcon={Home} sidebarHeaderTitle={<span>Admin App</span>} headerAfterTrigger={<input className="h-8 w-64 rounded-md border px-3 text-sm" placeholder="Quick search…" />} headerAfterTheme={<button className="h-8 rounded-md border px-3 text-sm">Help</button>} />
29
+ }`,...(n=(d=a.parameters)==null?void 0:d.docs)==null?void 0:n.source}}};const Oe=["Complex"];export{a as Complex,Oe as __namedExportsOrder,_e as default};
@@ -0,0 +1,9 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-v7iAhKit.js";import{A as p,c as u,a as l,b as x,R as f,T as h,O as g,u as v,H as j}from"./AdminLayout-CPvVCwfY.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-BrHXro7t.js";import"./sidebar-C8hU1Mxy.js";import"./index-DbaA6-o1.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-0oMkiryo.js";import"./input-11YRd9gD.js";import"./separator-o5SAUnaJ.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./sheet-C7jhU3XE.js";import"./index-Z6wF44KX.js";import"./index-DW48STyt.js";import"./index-CDY5kTx5.js";import"./index-BfiCOk42.js";import"./index-D8RXF03I.js";import"./index-ByqivBWx.js";import"./index-BVDb4dFc.js";import"./index-0-qMRXou.js";import"./Combination-BdQWAuko.js";import"./index-jrimW4QO.js";import"./index-AvwFFKJc.js";import"./x-B1a4fyWM.js";import"./skeleton-CjDnQs43.js";import"./tooltip-_LqYEYFw.js";import"./index-nqc17SX4.js";import"./index-Bw1A27Kp.js";import"./index-C9Ta0ZTH.js";import"./index-WyF3-wTE.js";import"./dropdown-menu-BWxxwPHL.js";import"./index-DLIxT4Z7.js";import"./index-Bv9yk470.js";import"./index-B_qx7A5T.js";import"./index-CWjrGFAQ.js";import"./check-B9hBGj6o.js";import"./circle-C5Lzx6Nx.js";import"./chevron-right-B5vIMLxK.js";import"./index-Dph_5COR.js";import"./chevron-down-D_37S6il.js";const ue={title:"Kit/Layouts/Admin",component:p};function b(){const{registerGroup:r,registerItem:t,clear:o}=v();return c.useEffect(()=>{o(),r({id:"overview",label:"Overview"}),t("overview",{id:"home",title:"Home",url:"/",icon:j})},[r,t,o]),null}function R(r){const t=u({component:()=>e.jsx(h,{children:e.jsxs(p,{...r,children:[e.jsx(b,{}),e.jsx(g,{})]})})}),o=l({getParentRoute:()=>t,path:"/",component:()=>e.jsx("div",{className:"p-6",children:"Home"})}),n=t.addChildren([o]),d=x({routeTree:n,basepath:"/iframe.html"});return e.jsx(f,{router:d})}const m={name:"Custom sidebar header component",render:()=>e.jsx(R,{sidebarHeader:e.jsx("div",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{src:"https://dummyimage.com/32x32/000/fff.png&text=A",alt:"Logo",className:"h-8 w-8 rounded"}),e.jsx("span",{className:"font-semibold",children:"My Admin"})]})})})};var i,s,a;m.parameters={...m.parameters,docs:{...(i=m.parameters)==null?void 0:i.docs,source:{originalSource:`{
2
+ name: 'Custom sidebar header component',
3
+ render: () => <App sidebarHeader={<div className="px-4 py-3">
4
+ <div className="flex items-center gap-2">
5
+ <img src="https://dummyimage.com/32x32/000/fff.png&text=A" alt="Logo" className="h-8 w-8 rounded" />
6
+ <span className="font-semibold">My Admin</span>
7
+ </div>
8
+ </div>} />
9
+ }`,...(a=(s=m.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};const le=["CustomSidebarHeaderComponent"];export{m as CustomSidebarHeaderComponent,le as __namedExportsOrder,ue as default};
@@ -0,0 +1,4 @@
1
+ import{j as r}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-v7iAhKit.js";import{A as a,c as u,a as l,b as x,R as b,T as h,O as R,u as C,H as f}from"./AdminLayout-CPvVCwfY.js";import{C as j}from"./chart-column-DZGb4ZZS.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-BrHXro7t.js";import"./sidebar-C8hU1Mxy.js";import"./index-DbaA6-o1.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-0oMkiryo.js";import"./input-11YRd9gD.js";import"./separator-o5SAUnaJ.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./sheet-C7jhU3XE.js";import"./index-Z6wF44KX.js";import"./index-DW48STyt.js";import"./index-CDY5kTx5.js";import"./index-BfiCOk42.js";import"./index-D8RXF03I.js";import"./index-ByqivBWx.js";import"./index-BVDb4dFc.js";import"./index-0-qMRXou.js";import"./Combination-BdQWAuko.js";import"./index-jrimW4QO.js";import"./index-AvwFFKJc.js";import"./x-B1a4fyWM.js";import"./skeleton-CjDnQs43.js";import"./tooltip-_LqYEYFw.js";import"./index-nqc17SX4.js";import"./index-Bw1A27Kp.js";import"./index-C9Ta0ZTH.js";import"./index-WyF3-wTE.js";import"./dropdown-menu-BWxxwPHL.js";import"./index-DLIxT4Z7.js";import"./index-Bv9yk470.js";import"./index-B_qx7A5T.js";import"./index-CWjrGFAQ.js";import"./check-B9hBGj6o.js";import"./circle-C5Lzx6Nx.js";import"./chevron-right-B5vIMLxK.js";import"./index-Dph_5COR.js";import"./chevron-down-D_37S6il.js";const xr={title:"Kit/Layouts/Admin",component:a};function v(){const{registerGroup:o,registerItem:t,clear:e}=C();return c.useEffect(()=>{e(),o({id:"overview",label:"Overview"}),t("overview",{id:"home",title:"Home",url:"/",icon:f})},[o,t,e]),null}function T(o){const t=u({component:()=>r.jsx(h,{children:r.jsxs(a,{...o,children:[r.jsx(v,{}),r.jsx(R,{})]})})}),e=l({getParentRoute:()=>t,path:"/",component:()=>r.jsx("div",{className:"p-6",children:"Home"})}),n=t.addChildren([e]),d=x({routeTree:n,basepath:"/iframe.html"});return r.jsx(b,{router:d})}const i={name:"Custom sidebar title and icon",render:()=>r.jsx(T,{sidebarHeaderIcon:j,sidebarHeaderTitle:r.jsx("span",{children:"Custom Title"})})};var m,s,p;i.parameters={...i.parameters,docs:{...(m=i.parameters)==null?void 0:m.docs,source:{originalSource:`{
2
+ name: 'Custom sidebar title and icon',
3
+ render: () => <App sidebarHeaderIcon={BarChart3} sidebarHeaderTitle={<span>Custom Title</span>} />
4
+ }`,...(p=(s=i.parameters)==null?void 0:s.docs)==null?void 0:p.source}}};const br=["CustomSidebarTitleAndIcon"];export{i as CustomSidebarTitleAndIcon,br as __namedExportsOrder,xr as default};
@@ -0,0 +1,7 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-v7iAhKit.js";import{A as p,c as u,a as l,b as x,R as h,T as g,O as f,u as b,H as v}from"./AdminLayout-CPvVCwfY.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-BrHXro7t.js";import"./sidebar-C8hU1Mxy.js";import"./index-DbaA6-o1.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-0oMkiryo.js";import"./input-11YRd9gD.js";import"./separator-o5SAUnaJ.js";import"./index-Tp9IdbR8.js";import"./index-DrN5n71E.js";import"./index-CwBdPBFz.js";import"./sheet-C7jhU3XE.js";import"./index-Z6wF44KX.js";import"./index-DW48STyt.js";import"./index-CDY5kTx5.js";import"./index-BfiCOk42.js";import"./index-D8RXF03I.js";import"./index-ByqivBWx.js";import"./index-BVDb4dFc.js";import"./index-0-qMRXou.js";import"./Combination-BdQWAuko.js";import"./index-jrimW4QO.js";import"./index-AvwFFKJc.js";import"./x-B1a4fyWM.js";import"./skeleton-CjDnQs43.js";import"./tooltip-_LqYEYFw.js";import"./index-nqc17SX4.js";import"./index-Bw1A27Kp.js";import"./index-C9Ta0ZTH.js";import"./index-WyF3-wTE.js";import"./dropdown-menu-BWxxwPHL.js";import"./index-DLIxT4Z7.js";import"./index-Bv9yk470.js";import"./index-B_qx7A5T.js";import"./index-CWjrGFAQ.js";import"./check-B9hBGj6o.js";import"./circle-C5Lzx6Nx.js";import"./chevron-right-B5vIMLxK.js";import"./index-Dph_5COR.js";import"./chevron-down-D_37S6il.js";const ue={title:"Kit/Layouts/Admin",component:p};function j(){const{registerGroup:t,registerItem:r,clear:o}=b();return c.useEffect(()=>{o(),t({id:"overview",label:"Overview"}),r("overview",{id:"home",title:"Home",url:"/",icon:v})},[t,r,o]),null}function R(t){const r=u({component:()=>e.jsx(g,{children:e.jsxs(p,{...t,children:[e.jsx(j,{}),e.jsx(f,{})]})})}),o=l({getParentRoute:()=>r,path:"/",component:()=>e.jsx("div",{className:"p-6",children:"Home"})}),d=r.addChildren([o]),n=x({routeTree:d,basepath:"/iframe.html"});return e.jsx(h,{router:n})}const m={name:"Header slots (after trigger/theme)",render:()=>e.jsx(R,{headerAfterTrigger:e.jsx("input",{className:"h-8 w-64 rounded-md border px-3 text-sm",placeholder:"Search…"}),headerAfterTheme:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{className:"h-8 rounded-md border px-3 text-sm",children:"Invite"}),e.jsx("button",{className:"h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground",children:"New"})]})})};var i,s,a;m.parameters={...m.parameters,docs:{...(i=m.parameters)==null?void 0:i.docs,source:{originalSource:`{
2
+ name: 'Header slots (after trigger/theme)',
3
+ render: () => <App headerAfterTrigger={<input className="h-8 w-64 rounded-md border px-3 text-sm" placeholder="Search…" />} headerAfterTheme={<div className="flex items-center gap-2">
4
+ <button className="h-8 rounded-md border px-3 text-sm">Invite</button>
5
+ <button className="h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground">New</button>
6
+ </div>} />
7
+ }`,...(a=(s=m.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};const le=["HeaderSlots"];export{m as HeaderSlots,le as __namedExportsOrder,ue as default};
@@ -0,0 +1,27 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{c as v}from"./index-CGrAONsN.js";import{c as i}from"./utils-D-KgF5mV.js";import{c as h}from"./createLucideIcon-BrHXro7t.js";import"./iframe-v7iAhKit.js";import"./preload-helper-Dp1pzeXC.js";/**
2
+ * @license lucide-react v0.540.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const f=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],A=h("terminal",f);/**
7
+ * @license lucide-react v0.540.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const j=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_=h("triangle-alert",j),y=v("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function n({className:t,variant:r,...x}){return e.jsx("div",{"data-slot":"alert",role:"alert",className:i(y({variant:r}),t),...x})}function o({className:t,...r}){return e.jsx("div",{"data-slot":"alert-title",className:i("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...r})}function c({className:t,...r}){return e.jsx("div",{"data-slot":"alert-description",className:i("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}n.__docgenInfo={description:"",methods:[],displayName:"Alert"};o.__docgenInfo={description:"",methods:[],displayName:"AlertTitle"};c.__docgenInfo={description:"",methods:[],displayName:"AlertDescription"};const b={title:"Shadcn/UI/Alert",component:n},a={render:t=>e.jsxs(n,{...t,children:[e.jsx(A,{className:"h-4 w-4"}),e.jsx(o,{children:"Heads up!"}),e.jsx(c,{children:"You can add components using the shadcn UI CLI."})]})},s={render:t=>e.jsxs(n,{variant:"destructive",...t,children:[e.jsx(_,{className:"h-4 w-4"}),e.jsx(o,{children:"Error"}),e.jsx(c,{children:"Your session has expired. Please log in again."})]})};var l,d,p;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:`{
12
+ render: args => <Alert {...args}>
13
+ <Terminal className="h-4 w-4" />
14
+ <AlertTitle>Heads up!</AlertTitle>
15
+ <AlertDescription>
16
+ You can add components using the shadcn UI CLI.
17
+ </AlertDescription>
18
+ </Alert>
19
+ }`,...(p=(d=a.parameters)==null?void 0:d.docs)==null?void 0:p.source}}};var m,u,g;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{
20
+ render: args => <Alert variant="destructive" {...args}>
21
+ <AlertTriangle className="h-4 w-4" />
22
+ <AlertTitle>Error</AlertTitle>
23
+ <AlertDescription>
24
+ Your session has expired. Please log in again.
25
+ </AlertDescription>
26
+ </Alert>
27
+ }`,...(g=(u=s.parameters)==null?void 0:u.docs)==null?void 0:g.source}}};const E=["Default","Destructive"];export{a as Default,s as Destructive,E as __namedExportsOrder,b as default};