@k3-universe/react-kit 0.0.7 → 0.0.9

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 (359) hide show
  1. package/dist/index.js +2403 -3156
  2. package/dist/kit/builder/data-table/components/DataTable.d.ts +2 -2
  3. package/dist/kit/builder/data-table/components/DataTable.d.ts.map +1 -1
  4. package/package.json +6 -2
  5. package/src/kit/builder/data-table/components/DataTable.tsx +9 -9
  6. package/vite.config.ts +1 -1
  7. package/storybook-static/assets/Accordion.stories-q6yg6wg1.js +0 -52
  8. package/storybook-static/assets/AdminLayout-B9bV4J_6.js +0 -53
  9. package/storybook-static/assets/AdminLayout.Basic.stories-C-ZxuH-O.js +0 -4
  10. package/storybook-static/assets/AdminLayout.Collapsible.stories-xcQzkxio.js +0 -4
  11. package/storybook-static/assets/AdminLayout.Complex.stories-DyjkVpvE.js +0 -29
  12. package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-BqhzWCIA.js +0 -9
  13. package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-aWxyR67T.js +0 -4
  14. package/storybook-static/assets/AdminLayout.HeaderSlots.stories-dNzhUdDt.js +0 -7
  15. package/storybook-static/assets/Alert.stories-DXwNfJ3w.js +0 -27
  16. package/storybook-static/assets/AlertDialog.stories-I324NsnP.js +0 -43
  17. package/storybook-static/assets/AspectRatio.stories-CghHiX3Z.js +0 -22
  18. package/storybook-static/assets/Autocomplete-B4gV705L.js +0 -35
  19. package/storybook-static/assets/Autocomplete.stories-CyOvjTGN.js +0 -33
  20. package/storybook-static/assets/Avatar.stories-CEF5FVSR.js +0 -12
  21. package/storybook-static/assets/Badge.stories-_-G3GriP.js +0 -12
  22. package/storybook-static/assets/Breadcrumb.stories-DORe9T4b.js +0 -25
  23. package/storybook-static/assets/Button.stories-3nQ6wsBX.js +0 -26
  24. package/storybook-static/assets/Calendar.stories-Dn__djE1.js +0 -3
  25. package/storybook-static/assets/Card.stories-BJcbdwCI.js +0 -15
  26. package/storybook-static/assets/Carousel.stories-CfqbE7Va.js +0 -15
  27. package/storybook-static/assets/Chart.stories-cGgef3tv.js +0 -126
  28. package/storybook-static/assets/Checkbox.stories-BcaxWzCS.js +0 -12
  29. package/storybook-static/assets/Collapsible.stories-CQ95s7Cs.js +0 -18
  30. package/storybook-static/assets/Combination-CeVus13L.js +0 -41
  31. package/storybook-static/assets/Command.stories-DYflJh8u.js +0 -30
  32. package/storybook-static/assets/ContextMenu.stories-CU7ehYrE.js +0 -31
  33. package/storybook-static/assets/DataTable.Basic.stories-BQNWUKiw.js +0 -6
  34. package/storybook-static/assets/DataTable.Filters.stories-DPCoeYhK.js +0 -21
  35. package/storybook-static/assets/DataTable.Pagination.stories-8UNqTNgw.js +0 -24
  36. package/storybook-static/assets/DataTable.SelectionAndActions.stories-CDEjgQ6T.js +0 -26
  37. package/storybook-static/assets/DataTable.Sorting.stories-qG7-X_6r.js +0 -6
  38. package/storybook-static/assets/Dialog.stories-Bu6ZJXNH.js +0 -18
  39. package/storybook-static/assets/Dialog.stories-DobNZ0Hp.js +0 -54
  40. package/storybook-static/assets/Drawer.stories-BN0idp4u.js +0 -24
  41. package/storybook-static/assets/DropdownMenu.stories-sfsVDTvm.js +0 -35
  42. package/storybook-static/assets/Form.Basic.stories-dE4nbgpr.js +0 -45
  43. package/storybook-static/assets/Form.Complex.stories-BEZufnjb.js +0 -230
  44. package/storybook-static/assets/Form.Dynamic.stories-cJTbd6cV.js +0 -247
  45. package/storybook-static/assets/Form.Simple.stories-DOPzZKhh.js +0 -50
  46. package/storybook-static/assets/Form.stories-27doU7JS.js +0 -3
  47. package/storybook-static/assets/FormBuilder-C0S7C69Q.js +0 -5
  48. package/storybook-static/assets/HoverCard.stories-0lted9Zx.js +0 -21
  49. package/storybook-static/assets/Input.stories-CwsIObFs.js +0 -16
  50. package/storybook-static/assets/InputOtp.stories-DVc086h4.js +0 -42
  51. package/storybook-static/assets/Label.stories-bJa0rk1A.js +0 -14
  52. package/storybook-static/assets/Login.stories-C6X6Kj5B.js +0 -37
  53. package/storybook-static/assets/Menubar.stories-CuediVp7.js +0 -44
  54. package/storybook-static/assets/NavigationMenu.stories-CKGZYhKk.js +0 -30
  55. package/storybook-static/assets/Page.stories-Cf76wtRx.js +0 -91
  56. package/storybook-static/assets/Pagination.stories-D7IdL1_4.js +0 -29
  57. package/storybook-static/assets/Popover.stories-1VP_zNY8.js +0 -15
  58. package/storybook-static/assets/Progress.stories-C35R5YvA.js +0 -8
  59. package/storybook-static/assets/RadioGroup.stories-CjuD3CwD.js +0 -16
  60. package/storybook-static/assets/Resizable.stories-Cs8dvdc5.js +0 -25
  61. package/storybook-static/assets/ScrollArea.stories-D6_z-5jm.js +0 -12
  62. package/storybook-static/assets/Section.stories-Ce5qYITI.js +0 -196
  63. package/storybook-static/assets/SectionBuilder-Df_lRZkj.js +0 -1
  64. package/storybook-static/assets/Select.stories-w_kbza5k.js +0 -17
  65. package/storybook-static/assets/Separator.stories-B5QnaJXb.js +0 -17
  66. package/storybook-static/assets/Sheet.stories-CORnEGvV.js +0 -24
  67. package/storybook-static/assets/Sidebar.stories-DVuWTi4j.js +0 -106
  68. package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +0 -9
  69. package/storybook-static/assets/Slider.stories-YoS2vvT2.js +0 -6
  70. package/storybook-static/assets/Sonner.stories-CXW5e_Qg.js +0 -18
  71. package/storybook-static/assets/Switch.stories-zr6i-aNi.js +0 -3
  72. package/storybook-static/assets/Table.stories-BuGU4MUM.js +0 -35
  73. package/storybook-static/assets/Tabs.stories-jxkJ-AUI.js +0 -10
  74. package/storybook-static/assets/Textarea.stories-CHXVobz6.js +0 -17
  75. package/storybook-static/assets/Toggle.stories-C4uB4Hkq.js +0 -3
  76. package/storybook-static/assets/ToggleGroup.stories-Cr229wf_.js +0 -13
  77. package/storybook-static/assets/Tooltip.stories-DmMYGR3T.js +0 -10
  78. package/storybook-static/assets/accordion-BCfsz_gl.js +0 -1
  79. package/storybook-static/assets/alert-dialog-BYt6Z7Kt.js +0 -7
  80. package/storybook-static/assets/avatar-CRn1qQsC.js +0 -1
  81. package/storybook-static/assets/axe-JCJl60WC.js +0 -30
  82. package/storybook-static/assets/button-BObfgcV1.js +0 -1
  83. package/storybook-static/assets/card-BJpPOzP8.js +0 -1
  84. package/storybook-static/assets/chart-column-CplFCmg8.js +0 -6
  85. package/storybook-static/assets/check-DyecuwP4.js +0 -6
  86. package/storybook-static/assets/checkbox-D5BmNJeL.js +0 -1
  87. package/storybook-static/assets/chevron-down-Bp7zbUB0.js +0 -6
  88. package/storybook-static/assets/chevron-left-D1L4J3UW.js +0 -6
  89. package/storybook-static/assets/chevron-right-oMYqDJ_f.js +0 -6
  90. package/storybook-static/assets/circle-CyarsADt.js +0 -6
  91. package/storybook-static/assets/clean-slate-V4nUw2Bm.css +0 -1
  92. package/storybook-static/assets/command-DCnXmNmT.js +0 -6
  93. package/storybook-static/assets/createLucideIcon-CLBo0iA0.js +0 -21
  94. package/storybook-static/assets/default-CuTBjDca.css +0 -1
  95. package/storybook-static/assets/dependencies-ctrV69dx.js +0 -1
  96. package/storybook-static/assets/dialog-DL0QBIbC.js +0 -1
  97. package/storybook-static/assets/dropdown-menu-BwL9gQwG.js +0 -1
  98. package/storybook-static/assets/ellipsis-DPg968Rc.js +0 -6
  99. package/storybook-static/assets/grip-vertical-CM0GDwvq.js +0 -6
  100. package/storybook-static/assets/iframe-BWjPIle6.js +0 -1555
  101. package/storybook-static/assets/iframe-C9bogcIc.css +0 -1
  102. package/storybook-static/assets/index-04C4iZwC.js +0 -1
  103. package/storybook-static/assets/index-3zykFCgl.js +0 -1
  104. package/storybook-static/assets/index-7XoYQV2z.js +0 -1
  105. package/storybook-static/assets/index-A7UzX-Xw.js +0 -1
  106. package/storybook-static/assets/index-BN5_W3Yi.js +0 -1
  107. package/storybook-static/assets/index-BcAKBHrX.js +0 -1
  108. package/storybook-static/assets/index-BdQq_4o_.js +0 -1
  109. package/storybook-static/assets/index-BfKpUbCE.js +0 -1
  110. package/storybook-static/assets/index-C5eJ31Z3.js +0 -1
  111. package/storybook-static/assets/index-C6O7WofA.js +0 -1
  112. package/storybook-static/assets/index-C9xvlw_B.js +0 -1
  113. package/storybook-static/assets/index-CGrAONsN.js +0 -1
  114. package/storybook-static/assets/index-CKwUGXmt.js +0 -1
  115. package/storybook-static/assets/index-Cce91yJQ.js +0 -1
  116. package/storybook-static/assets/index-Cw7p-pms.js +0 -1
  117. package/storybook-static/assets/index-DE2OlfDP.js +0 -1
  118. package/storybook-static/assets/index-DMk2qc2_.js +0 -1
  119. package/storybook-static/assets/index-DW48STyt.js +0 -1
  120. package/storybook-static/assets/index-DWC9SV-P.js +0 -1
  121. package/storybook-static/assets/index-Dqw7miiX.js +0 -1
  122. package/storybook-static/assets/index-Dr2xmx-F.js +0 -1
  123. package/storybook-static/assets/index-DschQYGl.js +0 -1
  124. package/storybook-static/assets/index-Dsg7S8zu.js +0 -9
  125. package/storybook-static/assets/index-Pk2lGsul.js +0 -1
  126. package/storybook-static/assets/index-URSssr5a.js +0 -1
  127. package/storybook-static/assets/index-npvyVsxD.js +0 -9
  128. package/storybook-static/assets/index-u70nzfOV.js +0 -5
  129. package/storybook-static/assets/input-11YRd9gD.js +0 -1
  130. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
  131. package/storybook-static/assets/label-CwntpYJ0.js +0 -1
  132. package/storybook-static/assets/lodash-BkmSIg_J.js +0 -73
  133. package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
  134. package/storybook-static/assets/minimal-modern-d2yFlFJM.css +0 -1
  135. package/storybook-static/assets/popover-ClqrrvjL.js +0 -1
  136. package/storybook-static/assets/preload-helper-Dp1pzeXC.js +0 -1
  137. package/storybook-static/assets/radio-group-CvN0LQZp.js +0 -1
  138. package/storybook-static/assets/react-18-Bj31y5Nr.js +0 -25
  139. package/storybook-static/assets/react-icons.esm-DNr9VcvP.js +0 -1
  140. package/storybook-static/assets/refresh-cw-OZakDsFY.js +0 -6
  141. package/storybook-static/assets/schemas-CaLvKjsI.js +0 -18
  142. package/storybook-static/assets/section-factories-DKfKL-5s.js +0 -1
  143. package/storybook-static/assets/select-gtXRB92c.js +0 -6
  144. package/storybook-static/assets/separator-CxCWfpZX.js +0 -1
  145. package/storybook-static/assets/settings-2-DSSkfF6W.js +0 -6
  146. package/storybook-static/assets/sheet-r0VNiBiN.js +0 -1
  147. package/storybook-static/assets/shopping-cart-CJBClF2m.js +0 -11
  148. package/storybook-static/assets/sidebar-BsMnOE7Y.js +0 -6
  149. package/storybook-static/assets/skeleton-CjDnQs43.js +0 -1
  150. package/storybook-static/assets/spotify-BuPUgQEa.css +0 -1
  151. package/storybook-static/assets/table-CP3vMqFn.js +0 -1
  152. package/storybook-static/assets/textarea-Dw2vruMl.js +0 -1
  153. package/storybook-static/assets/toggle-D08-8sQA.js +0 -16
  154. package/storybook-static/assets/tooltip-CZ1UAE_e.js +0 -1
  155. package/storybook-static/assets/trash-2-D55eseMQ.js +0 -11
  156. package/storybook-static/assets/utils-D-KgF5mV.js +0 -1
  157. package/storybook-static/assets/x-n8sFtlI2.js +0 -6
  158. package/storybook-static/favicon-wrapper.svg +0 -46
  159. package/storybook-static/favicon.svg +0 -1
  160. package/storybook-static/iframe.html +0 -687
  161. package/storybook-static/index.d.ts +0 -64
  162. package/storybook-static/index.d.ts.map +0 -1
  163. package/storybook-static/index.html +0 -166
  164. package/storybook-static/index.json +0 -1
  165. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +0 -34
  166. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +0 -1
  167. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +0 -8
  168. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +0 -1
  169. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +0 -6
  170. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +0 -1
  171. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +0 -5
  172. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +0 -1
  173. package/storybook-static/kit/builder/data-table/index.d.ts +0 -6
  174. package/storybook-static/kit/builder/data-table/index.d.ts.map +0 -1
  175. package/storybook-static/kit/builder/data-table/types.d.ts +0 -27
  176. package/storybook-static/kit/builder/data-table/types.d.ts.map +0 -1
  177. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +0 -2
  178. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +0 -1
  179. package/storybook-static/kit/builder/dialog/index.d.ts +0 -3
  180. package/storybook-static/kit/builder/dialog/index.d.ts.map +0 -1
  181. package/storybook-static/kit/builder/dialog/provider.d.ts +0 -26
  182. package/storybook-static/kit/builder/dialog/provider.d.ts.map +0 -1
  183. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +0 -97
  184. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +0 -1
  185. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts +0 -20
  186. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts.map +0 -1
  187. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts +0 -12
  188. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts.map +0 -1
  189. package/storybook-static/kit/builder/form/components/index.d.ts +0 -4
  190. package/storybook-static/kit/builder/form/components/index.d.ts.map +0 -1
  191. package/storybook-static/kit/builder/form/index.d.ts +0 -3
  192. package/storybook-static/kit/builder/form/index.d.ts.map +0 -1
  193. package/storybook-static/kit/builder/form/utils/common-forms.d.ts +0 -7
  194. package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +0 -1
  195. package/storybook-static/kit/builder/form/utils/dependencies.d.ts +0 -41
  196. package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +0 -1
  197. package/storybook-static/kit/builder/form/utils/field-factories.d.ts +0 -22
  198. package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +0 -1
  199. package/storybook-static/kit/builder/form/utils/index.d.ts +0 -15
  200. package/storybook-static/kit/builder/form/utils/index.d.ts.map +0 -1
  201. package/storybook-static/kit/builder/form/utils/section-factories.d.ts +0 -7
  202. package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +0 -1
  203. package/storybook-static/kit/builder/form/utils/transformers.d.ts +0 -6
  204. package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +0 -1
  205. package/storybook-static/kit/builder/form/utils/validations.d.ts +0 -13
  206. package/storybook-static/kit/builder/form/utils/validations.d.ts.map +0 -1
  207. package/storybook-static/kit/builder/form/utils/validators.d.ts +0 -8
  208. package/storybook-static/kit/builder/form/utils/validators.d.ts.map +0 -1
  209. package/storybook-static/kit/builder/page/Page.d.ts +0 -48
  210. package/storybook-static/kit/builder/page/Page.d.ts.map +0 -1
  211. package/storybook-static/kit/builder/page/index.d.ts +0 -2
  212. package/storybook-static/kit/builder/page/index.d.ts.map +0 -1
  213. package/storybook-static/kit/builder/section/SectionBuilder.d.ts +0 -3
  214. package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +0 -1
  215. package/storybook-static/kit/builder/section/index.d.ts +0 -3
  216. package/storybook-static/kit/builder/section/index.d.ts.map +0 -1
  217. package/storybook-static/kit/builder/section/types.d.ts +0 -59
  218. package/storybook-static/kit/builder/section/types.d.ts.map +0 -1
  219. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +0 -21
  220. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +0 -1
  221. package/storybook-static/kit/components/autocomplete/index.d.ts +0 -3
  222. package/storybook-static/kit/components/autocomplete/index.d.ts.map +0 -1
  223. package/storybook-static/kit/components/autocomplete/types.d.ts +0 -19
  224. package/storybook-static/kit/components/autocomplete/types.d.ts.map +0 -1
  225. package/storybook-static/kit/components/login/Login.d.ts +0 -29
  226. package/storybook-static/kit/components/login/Login.d.ts.map +0 -1
  227. package/storybook-static/kit/components/login/index.d.ts +0 -2
  228. package/storybook-static/kit/components/login/index.d.ts.map +0 -1
  229. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +0 -17
  230. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +0 -1
  231. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +0 -5
  232. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +0 -1
  233. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +0 -12
  234. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +0 -1
  235. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +0 -7
  236. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +0 -1
  237. package/storybook-static/kit/layouts/admin/types/index.d.ts +0 -27
  238. package/storybook-static/kit/layouts/admin/types/index.d.ts.map +0 -1
  239. package/storybook-static/kit/providers/ThemeProvider.d.ts +0 -14
  240. package/storybook-static/kit/providers/ThemeProvider.d.ts.map +0 -1
  241. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  242. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  243. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  244. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  245. package/storybook-static/project.json +0 -1
  246. package/storybook-static/sb-addons/a11y-5/manager-bundle.js +0 -5
  247. package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +0 -3
  248. package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +0 -3
  249. package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +0 -3
  250. package/storybook-static/sb-addons/interactions-4/manager-bundle.js +0 -57
  251. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -971
  252. package/storybook-static/sb-addons/storysource-6/manager-bundle.js +0 -3
  253. package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
  254. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  255. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  256. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  257. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  258. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  259. package/storybook-static/sb-manager/globals-module-info.js +0 -797
  260. package/storybook-static/sb-manager/globals-runtime.js +0 -69653
  261. package/storybook-static/sb-manager/globals.js +0 -34
  262. package/storybook-static/sb-manager/runtime.js +0 -13181
  263. package/storybook-static/shadcn/hooks/use-mobile.d.ts +0 -2
  264. package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +0 -1
  265. package/storybook-static/shadcn/lib/utils.d.ts +0 -3
  266. package/storybook-static/shadcn/lib/utils.d.ts.map +0 -1
  267. package/storybook-static/shadcn/ui/accordion.d.ts +0 -8
  268. package/storybook-static/shadcn/ui/accordion.d.ts.map +0 -1
  269. package/storybook-static/shadcn/ui/alert-dialog.d.ts +0 -15
  270. package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +0 -1
  271. package/storybook-static/shadcn/ui/alert.d.ts +0 -10
  272. package/storybook-static/shadcn/ui/alert.d.ts.map +0 -1
  273. package/storybook-static/shadcn/ui/aspect-ratio.d.ts +0 -4
  274. package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +0 -1
  275. package/storybook-static/shadcn/ui/avatar.d.ts +0 -7
  276. package/storybook-static/shadcn/ui/avatar.d.ts.map +0 -1
  277. package/storybook-static/shadcn/ui/badge.d.ts +0 -10
  278. package/storybook-static/shadcn/ui/badge.d.ts.map +0 -1
  279. package/storybook-static/shadcn/ui/breadcrumb.d.ts +0 -12
  280. package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +0 -1
  281. package/storybook-static/shadcn/ui/button.d.ts +0 -11
  282. package/storybook-static/shadcn/ui/button.d.ts.map +0 -1
  283. package/storybook-static/shadcn/ui/calendar.d.ts +0 -9
  284. package/storybook-static/shadcn/ui/calendar.d.ts.map +0 -1
  285. package/storybook-static/shadcn/ui/card.d.ts +0 -10
  286. package/storybook-static/shadcn/ui/card.d.ts.map +0 -1
  287. package/storybook-static/shadcn/ui/carousel.d.ts +0 -20
  288. package/storybook-static/shadcn/ui/carousel.d.ts.map +0 -1
  289. package/storybook-static/shadcn/ui/chart.d.ts +0 -41
  290. package/storybook-static/shadcn/ui/chart.d.ts.map +0 -1
  291. package/storybook-static/shadcn/ui/checkbox.d.ts +0 -5
  292. package/storybook-static/shadcn/ui/checkbox.d.ts.map +0 -1
  293. package/storybook-static/shadcn/ui/collapsible.d.ts +0 -6
  294. package/storybook-static/shadcn/ui/collapsible.d.ts.map +0 -1
  295. package/storybook-static/shadcn/ui/command.d.ts +0 -19
  296. package/storybook-static/shadcn/ui/command.d.ts.map +0 -1
  297. package/storybook-static/shadcn/ui/context-menu.d.ts +0 -26
  298. package/storybook-static/shadcn/ui/context-menu.d.ts.map +0 -1
  299. package/storybook-static/shadcn/ui/dialog.d.ts +0 -16
  300. package/storybook-static/shadcn/ui/dialog.d.ts.map +0 -1
  301. package/storybook-static/shadcn/ui/drawer.d.ts +0 -14
  302. package/storybook-static/shadcn/ui/drawer.d.ts.map +0 -1
  303. package/storybook-static/shadcn/ui/dropdown-menu.d.ts +0 -26
  304. package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +0 -1
  305. package/storybook-static/shadcn/ui/form.d.ts +0 -25
  306. package/storybook-static/shadcn/ui/form.d.ts.map +0 -1
  307. package/storybook-static/shadcn/ui/hover-card.d.ts +0 -7
  308. package/storybook-static/shadcn/ui/hover-card.d.ts.map +0 -1
  309. package/storybook-static/shadcn/ui/input-otp.d.ts +0 -12
  310. package/storybook-static/shadcn/ui/input-otp.d.ts.map +0 -1
  311. package/storybook-static/shadcn/ui/input.d.ts +0 -4
  312. package/storybook-static/shadcn/ui/input.d.ts.map +0 -1
  313. package/storybook-static/shadcn/ui/label.d.ts +0 -5
  314. package/storybook-static/shadcn/ui/label.d.ts.map +0 -1
  315. package/storybook-static/shadcn/ui/menubar.d.ts +0 -27
  316. package/storybook-static/shadcn/ui/menubar.d.ts.map +0 -1
  317. package/storybook-static/shadcn/ui/navigation-menu.d.ts +0 -15
  318. package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +0 -1
  319. package/storybook-static/shadcn/ui/pagination.d.ts +0 -14
  320. package/storybook-static/shadcn/ui/pagination.d.ts.map +0 -1
  321. package/storybook-static/shadcn/ui/popover.d.ts +0 -8
  322. package/storybook-static/shadcn/ui/popover.d.ts.map +0 -1
  323. package/storybook-static/shadcn/ui/progress.d.ts +0 -5
  324. package/storybook-static/shadcn/ui/progress.d.ts.map +0 -1
  325. package/storybook-static/shadcn/ui/radio-group.d.ts +0 -6
  326. package/storybook-static/shadcn/ui/radio-group.d.ts.map +0 -1
  327. package/storybook-static/shadcn/ui/resizable.d.ts +0 -9
  328. package/storybook-static/shadcn/ui/resizable.d.ts.map +0 -1
  329. package/storybook-static/shadcn/ui/scroll-area.d.ts +0 -6
  330. package/storybook-static/shadcn/ui/scroll-area.d.ts.map +0 -1
  331. package/storybook-static/shadcn/ui/select.d.ts +0 -16
  332. package/storybook-static/shadcn/ui/select.d.ts.map +0 -1
  333. package/storybook-static/shadcn/ui/separator.d.ts +0 -5
  334. package/storybook-static/shadcn/ui/separator.d.ts.map +0 -1
  335. package/storybook-static/shadcn/ui/sheet.d.ts +0 -14
  336. package/storybook-static/shadcn/ui/sheet.d.ts.map +0 -1
  337. package/storybook-static/shadcn/ui/sidebar.d.ts +0 -70
  338. package/storybook-static/shadcn/ui/sidebar.d.ts.map +0 -1
  339. package/storybook-static/shadcn/ui/skeleton.d.ts +0 -3
  340. package/storybook-static/shadcn/ui/skeleton.d.ts.map +0 -1
  341. package/storybook-static/shadcn/ui/slider.d.ts +0 -5
  342. package/storybook-static/shadcn/ui/slider.d.ts.map +0 -1
  343. package/storybook-static/shadcn/ui/sonner.d.ts +0 -4
  344. package/storybook-static/shadcn/ui/sonner.d.ts.map +0 -1
  345. package/storybook-static/shadcn/ui/switch.d.ts +0 -5
  346. package/storybook-static/shadcn/ui/switch.d.ts.map +0 -1
  347. package/storybook-static/shadcn/ui/table.d.ts +0 -11
  348. package/storybook-static/shadcn/ui/table.d.ts.map +0 -1
  349. package/storybook-static/shadcn/ui/tabs.d.ts +0 -8
  350. package/storybook-static/shadcn/ui/tabs.d.ts.map +0 -1
  351. package/storybook-static/shadcn/ui/textarea.d.ts +0 -4
  352. package/storybook-static/shadcn/ui/textarea.d.ts.map +0 -1
  353. package/storybook-static/shadcn/ui/toggle-group.d.ts +0 -8
  354. package/storybook-static/shadcn/ui/toggle-group.d.ts.map +0 -1
  355. package/storybook-static/shadcn/ui/toggle.d.ts +0 -10
  356. package/storybook-static/shadcn/ui/toggle.d.ts.map +0 -1
  357. package/storybook-static/shadcn/ui/tooltip.d.ts +0 -8
  358. package/storybook-static/shadcn/ui/tooltip.d.ts.map +0 -1
  359. package/storybook-static/vite-inject-mocker-entry.js +0 -18
@@ -1,5 +1,5 @@
1
- import { ColumnDef, ColumnFiltersState, Table as ReactTable, SortingState, VisibilityState, PaginationState } from '@tanstack/react-table';
2
- import { DataTableFiltersProp, DataTableAction, DataTableBatchAction } from '../types';
1
+ import { ColumnDef, ColumnFiltersState, PaginationState, Table as ReactTable, SortingState, VisibilityState } from '@tanstack/react-table';
2
+ import { DataTableAction, DataTableBatchAction, DataTableFiltersProp } from '../types';
3
3
  export interface DataTableProps<TData, TValue> {
4
4
  columns: ColumnDef<TData, TValue>[];
5
5
  data: TData[];
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/kit/builder/data-table/components/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,KAAK,IAAI,UAAU,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAM5F,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,MAAM;IAC3C,OAAO,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,eAAe,CAAC;IACxC,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IAE/D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAE7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAClD,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAE/D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;IAE7C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAElC,aAAa,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EACvC,OAAO,EACP,IAAI,EACJ,OAAO,EACP,OAAO,EACP,YAAY,EACZ,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,OAAO,EACP,SAAS,EACT,SAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,aAAa,EACb,WAAW,EACX,0BAA0B,GAC3B,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,2CAyT/B"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/kit/builder/data-table/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,KAAK,IAAI,UAAU,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAI5F,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,MAAM;IAC3C,OAAO,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,eAAe,CAAC;IACxC,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IAE/D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAE7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAClD,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAE/D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;IAE7C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAElC,aAAa,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EACvC,OAAO,EACP,IAAI,EACJ,OAAO,EACP,OAAO,EACP,YAAY,EACZ,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,OAAO,EACP,SAAS,EACT,SAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,aAAa,EACb,WAAW,EACX,0BAA0B,GAC3B,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,2CAyT/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3-universe/react-kit",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -18,6 +18,11 @@
18
18
  "default": "./dist/index.js"
19
19
  }
20
20
  },
21
+ "peerDependencies": {
22
+ "react": "^18.0.0 || ^19.0.0",
23
+ "react-dom": "^18.0.0 || ^19.0.0",
24
+ "@tanstack/react-router": "^1.131.27"
25
+ },
21
26
  "dependencies": {
22
27
  "@hookform/resolvers": "^5.2.1",
23
28
  "@radix-ui/react-accordion": "^1.2.12",
@@ -47,7 +52,6 @@
47
52
  "@radix-ui/react-toggle": "^1.1.10",
48
53
  "@radix-ui/react-toggle-group": "^1.1.11",
49
54
  "@radix-ui/react-tooltip": "^1.2.8",
50
- "@tanstack/react-router": "^1.131.27",
51
55
  "@tanstack/react-table": "^8.21.3",
52
56
  "class-variance-authority": "^0.7.1",
53
57
  "clsx": "^2.1.1",
@@ -1,27 +1,27 @@
1
- import * as React from 'react';
2
1
  import {
3
2
  flexRender,
4
3
  getCoreRowModel,
4
+ getFilteredRowModel,
5
5
  getPaginationRowModel,
6
6
  getSortedRowModel,
7
- getFilteredRowModel,
8
7
  useReactTable,
9
8
  type ColumnDef,
10
9
  type ColumnFiltersState,
10
+ type PaginationState,
11
11
  type Table as ReactTable,
12
12
  type SortingState,
13
13
  type VisibilityState,
14
- type PaginationState,
15
14
  } from '@tanstack/react-table';
16
- import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../../../../shadcn/ui/table';
15
+ import { Loader2, RefreshCw } from 'lucide-react';
16
+ import * as React from 'react';
17
17
  import { cn } from '../../../../shadcn/lib/utils';
18
- import { Checkbox } from '../../../../shadcn/ui/checkbox';
18
+ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '../../../../shadcn/ui/accordion';
19
19
  import { Button } from '../../../../shadcn/ui/button';
20
+ import { Checkbox } from '../../../../shadcn/ui/checkbox';
20
21
  import { Skeleton } from '../../../../shadcn/ui/skeleton';
22
+ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../../../../shadcn/ui/table';
21
23
  import { FormBuilder, type FormBuilderSectionConfig } from '../../form/components/FormBuilder';
22
- import type { DataTableFiltersProp, DataTableAction, DataTableBatchAction } from '../types';
23
- import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '../../../../shadcn/ui/accordion';
24
- import { RefreshCw, Loader2 } from 'lucide-react';
24
+ import type { DataTableAction, DataTableBatchAction, DataTableFiltersProp } from '../types';
25
25
  import { DataTablePagination } from './DataTablePagination';
26
26
  import { DataTableViewOptions } from './DataTableViewOptions';
27
27
 
@@ -322,7 +322,7 @@ export function DataTable<TData, TValue>({
322
322
  ) : null}
323
323
  {/* Actions Bar */}
324
324
  {(safeActions.length || showStandardActions || (selectable && table.getSelectedRowModel().rows.length > 0 && safeBatchActions.length)) && (
325
- <div className="rounded-md border p-2 mt-6">
325
+ <div className="rounded-md p-2 mt-6">
326
326
  <div className="flex items-center justify-between">
327
327
  <div className="flex items-center gap-2">
328
328
  {selectable && table.getSelectedRowModel().rows.length > 0 && safeBatchActions.map((a) => renderBatchButton(a, a.key))}
package/vite.config.ts CHANGED
@@ -63,7 +63,7 @@ export default defineConfig(() => {
63
63
  // Use Rollup multi-entry: library index + each theme CSS
64
64
  rollupOptions: {
65
65
  // External packages that should not be bundled into your library.
66
- external: ['react', 'react-dom', 'react/jsx-runtime'],
66
+ external: ['react', 'react-dom', 'react/jsx-runtime', '@tanstack/react-router'],
67
67
  input,
68
68
  output: {
69
69
  // Preserve entry-relative paths; our CSS entries are named 'kit/themes/<name>'
@@ -1,52 +0,0 @@
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-BCfsz_gl.js";import{r as T}from"./iframe-BWjPIle6.js";import"./index-Pk2lGsul.js";import"./index-C9xvlw_B.js";import"./index-BcAKBHrX.js";import"./index-DW48STyt.js";import"./index-7XoYQV2z.js";import"./index-DWC9SV-P.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-3zykFCgl.js";import"./index-CKwUGXmt.js";import"./index-BN5_W3Yi.js";import"./index-Dr2xmx-F.js";import"./utils-D-KgF5mV.js";import"./chevron-down-Bp7zbUB0.js";import"./createLucideIcon-CLBo0iA0.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};
@@ -1,53 +0,0 @@
1
- import{c as he}from"./createLucideIcon-CLBo0iA0.js";import{j as m}from"./jsx-runtime-D_zvdyIk.js";import{i as H,r as R,R as xe,a as Po}from"./iframe-BWjPIle6.js";import{S as wo,a as Mo,b as Co,c as Lo,d as ko,e as To,f as Io,g as bt,h as Eo,i as Pt,j as wt,k as No,l as jo}from"./sidebar-BsMnOE7Y.js";import{S as Ao}from"./separator-CxCWfpZX.js";import{r as $o}from"./index-C5eJ31Z3.js";import{r as Fo}from"./index-Dsg7S8zu.js";import{D as Oo,a as Do,b as Bo,c as Vo,d as zo,f as He}from"./dropdown-menu-BwL9gQwG.js";import{B as Wo}from"./button-BObfgcV1.js";import{C as Uo}from"./chevron-down-Bp7zbUB0.js";import{C as Ho}from"./chevron-right-oMYqDJ_f.js";import{C as Ko}from"./circle-CyarsADt.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 qo=[["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"}]],Xr=he("house",qo);/**
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 Go=[["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"}]],Mt=he("laptop",Go);/**
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"}]],Jo=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 Xo=[["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"}]],Ct=he("moon",Xo);/**
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 Zo=[["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"}]],Qo=he("package",Zo);/**
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 es=[["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",es);const ne=new WeakMap,Te=new WeakMap,Ee={current:[]};let Ke=!1,ye=0;const ge=new Set,Me=new Map;function Yt(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&&Yt(n)}}}function ts(e){e.listeners.forEach(o=>o({prevVal:e.prevState,currentVal:e.state}))}function os(e){e.listeners.forEach(o=>o({prevVal:e.prevState,currentVal:e.state}))}function Jt(e){if(ye>0&&!Me.has(e)&&Me.set(e,e.prevState),ge.add(e),!(ye>0)&&!Ke)try{for(Ke=!0;ge.size>0;){const o=Array.from(ge);ge.clear();for(const t of o){const s=Me.get(t)??t.prevState;t.prevState=s,ts(t)}for(const t of o){const s=ne.get(t);s&&(Ee.current.push(t),Yt(s))}for(const t of o){const s=ne.get(t);if(s)for(const r of s)os(r)}}}finally{Ke=!1,Ee.current=[],Me.clear()}}function _e(e){ye++;try{e()}finally{if(ye--,ye===0){const o=Array.from(ge)[0];o&&Jt(o)}}}function ss(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):ss(o)?this.state=o(this.prevState):this.state=o,(r=(s=this.options)==null?void 0:s.onUpdate)==null||r.call(s),Jt(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(c=>c({location:o,action:a}))},r=a=>{e.notifyOnIndexChange??!0?s(a):o=e.getLocation()},n=async({task:a,navigateOpts:c,...i})=>{var u,h;if((c==null?void 0:c.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,c,i)=>{const u=o.state[G];c=ot(u+1,c),n({task:()=>{e.pushState(a,c),s({type:"PUSH"})},navigateOpts:i,type:"PUSH",path:a,state:c})},replace:(a,c,i)=>{const u=o.state[G];c=ot(u,c),n({task:()=>{e.replaceState(a,c),s({type:"REPLACE"})},navigateOpts:i,type:"REPLACE",path:a,state:c})},go:(a,c)=>{n({task:()=>{e.go(a),r({type:"GO",index:a})},navigateOpts:c,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 c;if(!e.setBlockers)return()=>{};const i=((c=e.getBlockers)==null?void 0:c.call(e))??[];return e.setBlockers([...i,a]),()=>{var u,h;const l=((u=e.getBlockers)==null?void 0:u.call(e))??[];(h=e.setBlockers)==null||h.call(e,l.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 rs(e){var o,t;const s=typeof document<"u"?window:void 0,r=s.history.pushState,n=s.history.replaceState;let a=[];const c=()=>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 l=h(),d,f=!1,p=!1,v=!1,y=!1;const _=()=>l;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=l),l=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=>{l=h(),k.notify({type:x})},M=async()=>{if(p){p=!1;return}const x=h(),L=x.state[G]-l.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 J=c();if(typeof document<"u"&&J.length){for(const gt of J)if(await gt.blockerFn({currentLocation:l,nextLocation:x,action:be})){p=!0,s.history.go(1),k.notify(D);return}}}l=h(),k.notify(D)},C=x=>{if(y){y=!1;return}let L=!1;const I=c();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,C,{capture:!0}),s.removeEventListener(kt,M)},onBlocked:()=>{d&&l!==d&&(l=d)},getBlockers:c,setBlockers:i,notifyOnIndexChange:!1});return s.addEventListener(Tt,C,{capture:!0}),s.addEventListener(kt,M),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 ns(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 is(e){return typeof e=="function"}function Q(e,o){return is(e)?e(o):e}function A(e,o){if(e===o)return e;const t=o,s=Nt(e)&&Nt(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)),c=a.length,i=s?[]:{};let u=0;for(let h=0;h<c;h++){const l=s?h:a[h];(!s&&r.includes(l)||s)&&e[l]===void 0&&t[l]===void 0?(i[l]=void 0,u++):(i[l]=A(e[l],t[l]),i[l]===e[l]&&e[l]!==void 0&&u++)}return n===c&&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 Nt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jt(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=jt(e,s),n=jt(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 Y(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const W=0,te=1,oe=2,le=3;function U(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 Ne(e,o){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${o}/`?e.slice(0,-1):e}function as(e,o,t){return Ne(e,t)===Ne(o,t)}function cs(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 ls({basepath:e,base:o,to:t,trailingSlash:s="never",caseSensitive:r,parseCache:n}){var a;o=je(e,o,r),t=je(e,t,r);let c=de(o,n).slice();const i=de(t,n);c.length>1&&((a=st(c))==null?void 0:a.value)==="/"&&c.pop();for(let l=0,d=i.length;l<d;l++){const f=i[l],p=f.value;p==="/"?l?l===d-1&&c.push(f):c=[f]:p===".."?c.pop():p==="."||c.push(f)}c.length>1&&(st(c).value==="/"?s==="never"&&c.pop():s==="always"&&c.push({type:W,value:"/"}));const u=c.map(cs);return U([e,...u])}const de=(e,o)=>{if(!e)return[];const t=o==null?void 0:o.get(e);if(t)return t;const s=ms(e);return o==null||o.set(e,s),s},us=/^\$.{1,}$/,ds=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,hs=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,fs=/^\$$/,ps=/^(.*?)\{\$\}(.*)$/;function ms(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(ps);if(r){const c=r[1],i=r[2];return{type:oe,value:"$",prefixSegment:c||void 0,suffixSegment:i||void 0}}const n=s.match(hs);if(n){const c=n[1],i=n[2],u=n[3];return{type:le,value:i,prefixSegment:c||void 0,suffixSegment:u||void 0}}const a=s.match(ds);if(a){const c=a[1],i=a[2],u=a[3];return{type:te,value:""+i,prefixSegment:c||void 0,suffixSegment:u||void 0}}if(us.test(s)){const c=s.substring(1);return{type:te,value:"$"+c,prefixSegment:void 0,suffixSegment:void 0}}return fs.test(s)?{type:oe,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:W,value:s.includes("%25")?s.split("%25").map(c=>decodeURI(c)).join("%25"):decodeURI(s)}})),e.slice(-1)==="/"&&(e=e.substring(1),o.push({type:W,value:"/"})),o}function Ce({path:e,params:o,leaveWildcards:t,leaveParams:s,decodeCharMap:r,parseCache:n}){const a=de(e,n);function c(l){const d=o[l],f=typeof d=="string";return l==="*"||l==="_splat"?f?encodeURI(d):d:f?vs(d,r):d}let i=!1;const u={},h=U(a.map(l=>{if(l.type===W)return l.value;if(l.type===oe){u._splat=o._splat;const d=l.prefixSegment||"",f=l.suffixSegment||"";if(!("_splat"in o))return i=!0,t?`${d}${l.value}${f}`:d||f?`${d}${f}`:void 0;const p=c("_splat");return t?`${d}${l.value}${p??""}${f}`:`${d}${p}${f}`}if(l.type===te){const d=l.value.substring(1);!i&&!(d in o)&&(i=!0),u[d]=o[d];const f=l.prefixSegment||"",p=l.suffixSegment||"";if(s){const v=c(l.value);return`${f}${l.value}${v??""}${p}`}return`${f}${c(d)??"undefined"}${p}`}if(l.type===le){const d=l.value.substring(1),f=l.prefixSegment||"",p=l.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=c(l.value);return`${f}${l.value}${v??""}${p}`}return t?`${f}${d}${c(d)??""}${p}`:`${f}${c(d)??""}${p}`}return l.value}));return{usedParams:u,interpolatedPath:h,isMissingParams:i}}function vs(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=gs(e,o,t,s);if(!(t.to&&!r))return r??{}}function je(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 gs(e,o,{to:t,fuzzy:s,caseSensitive:r},n){if(e!=="/"&&!o.startsWith(e))return;o=je(e,o,r),t=je(e,`${t??"$"}`,r);const a=de(o.startsWith("/")?o:`/${o}`,n),c=de(t.startsWith("/")?t:`/${t}`,n),i={};return ys(a,c,i,s,r)?i:void 0}function ys(e,o,t,s,r){var n,a,c;let i=0,u=0;for(;i<e.length||u<o.length;){const h=e[i],l=o[u];if(l){if(l.type===oe){const d=e.slice(i);let f;if(l.prefixSegment||l.suffixSegment){if(!h)return!1;const p=l.prefixSegment||"",v=l.suffixSegment||"",y=h.value;if("prefixSegment"in l&&!y.startsWith(p)||"suffixSegment"in l&&!((n=e[e.length-1])!=null&&n.value.endsWith(v)))return!1;let _=decodeURI(U(d.map(P=>P.value)));p&&_.startsWith(p)&&(_=_.slice(p.length)),v&&_.endsWith(v)&&(_=_.slice(0,_.length-v.length)),f=_}else f=decodeURI(U(d.map(p=>p.value)));return t["*"]=f,t._splat=f,!0}if(l.type===W){if(l.value==="/"&&!(h!=null&&h.value)){u++;continue}if(h){if(r){if(l.value!==h.value)return!1}else if(l.value.toLowerCase()!==h.value.toLowerCase())return!1;i++,u++;continue}else return!1}if(l.type===te){if(!h||h.value==="/")return!1;let d="",f=!1;if(l.prefixSegment||l.suffixSegment){const p=l.prefixSegment||"",v=l.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[l.value.substring(1)]=d,i++),u++;continue}if(l.type===le){if(!h){u++;continue}if(h.value==="/"){u++;continue}let d="",f=!1;if(l.prefixSegment||l.suffixSegment){const p=l.prefixSegment||"",v=l.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[l.value.substring(1)]=d,i++),u++;continue}}if(i<e.length&&u>=o.length)return t["**"]=U(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(((c=o[d])==null?void 0:c.type)!==le)return!1;break}break}return!0}function z(e){return!!(e!=null&&e.isNotFound)}function _s(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ae="tsr-scroll-restoration-v1_3",Ss=(e,o)=>{let t;return(...s)=>{t||(t=setTimeout(()=>{e(...s),t=null},o))}};function xs(){const e=_s();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=xs(),it=e=>e.state.__TSR_key||e.href;function Rs(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,c;let i;try{i=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(l){console.error(l);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 l=(n??window.location).hash.split("#",2)[1];if(l){const f=((c=window.history.state)==null?void 0:c.__hashScrollIntoViewOptions)??!0;if(f){const p=document.getElementById(l);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 bs(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=Rs(n.target)}const c=s(e.state.location);Ge.set(i=>{const u=i[c]||(i[c]={}),h=u[a]||(u[a]={});if(a==="window")h.scrollX=window.scrollX||0,h.scrollY=window.scrollY||0;else if(a){const l=document.querySelector(a);l&&(h.scrollX=l.scrollLeft||0,h.scrollY=l.scrollTop||0)}return i})};typeof document<"u"&&document.addEventListener("scroll",Ss(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(c=>(c[a]||(c[a]={}),c))})}function Ps(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 ws(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 Ye(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]=Ye(r):Array.isArray(n)?n.push(Ye(r)):t[s]=[n,Ye(r)]}return t}const Cs=ks(JSON.parse),Ls=Ts(JSON.stringify,JSON.parse);function ks(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 Ts(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=ws(r,s);return n?`?${n}`:""}}const $="__root__";function Is(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 Es(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 c=o.get(n);if(c)c.value=a,r(c);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),H(s.options.notFoundComponent);const r=e.matches.find(n=>n.routeId===s.id);H(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,c=>({...c,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:c}=e.matches[o],i=e.router.looseRoutesById[c];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,l;return(h=u._nonReactive.beforeLoadPromise)==null||h.resolve(),u._nonReactive.beforeLoadPromise=void 0,(l=u._nonReactive.loadPromise)==null||l.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,c=a?e.router.getMatch(a):void 0;if(e.router.isShell()){n.ssr=o===$;return}if((c==null?void 0:c.ssr)===!1){n.ssr=!1;return}const i=p=>p===!0&&(c==null?void 0:c.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:l}=n,d={search:Le(h,n.searchError),params:Le(l,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(Y(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 c=setTimeout(()=>{Ie(e)},n);s._nonReactive.pendingTimeout=c}},js=(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()},As=(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:c,searchError:i}=n;c&&pe(e,t,c,"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,l=h?e.router.getMatch(h):void 0,f={...(l==null?void 0:l.context)??e.router.options.context??void 0,...n.__routeContext};let p=!1;const v=()=>{p||(p=!0,e.updateMatch(o,C=>({...C,isFetching:"beforeLoad",fetchCount:C.fetchCount+1,abortController:u,context:f})))},y=()=>{var C;(C=n._nonReactive.beforeLoadPromise)==null||C.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:C=>e.router.navigate({...C,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:S?"preload":g,matches:e.matches},w=C=>{if(C===void 0){_e(()=>{v(),y()});return}(V(C)||z(C))&&(v(),pe(e,t,C,"BEFORE_LOAD")),_e(()=>{v(),e.updateMatch(o,k=>({...k,__beforeLoadContext:C,context:{...k.context,...C}})),y()})};let M;try{if(M=s.options.beforeLoad(b),Y(M))return v(),M.catch(C=>{pe(e,t,C,"BEFORE_LOAD")}).then(w)}catch(C){v(),pe(e,t,C,"BEFORE_LOAD")}w(M)},$s=(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(Y(i))return i.then(a)}return a()},a=()=>{if(eo(e,t))return;const i=js(e,t,r);return Y(i)?i.then(c):c()},c=()=>As(e,t,o,r);return n()},Se=(e,o,t)=>{var s,r,n,a,c,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=(c=t.options).headers)==null?void 0:i.call(c,h)]).then(([l,d,f])=>{const p=l==null?void 0:l.meta,v=l==null?void 0:l.links,y=l==null?void 0:l.scripts,_=l==null?void 0:l.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:c,context:i,cause:u}=e.router.getMatch(o),h=De(e,o);return{params:n,deps:a,preload:!!h,parentMatchPromise:r,abortController:c,context:i,location:e.location,navigate:l=>e.router.navigate({...l,_fromLocation:e.location}),cause:h?"preload":u,route:s}},At=async(e,o,t,s)=>{var r,n,a,c;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&&Y(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 l=i._nonReactive.minPendingPromise;l&&await l,q(e,e.router.getMatch(o),u);try{(c=(a=s.options).onError)==null||c.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 l=await h;e.updateMatch(o,d=>({...d,...l}))}u._nonReactive.loaderPromise=void 0}q(e,u,i)}},Fs=async(e,o)=>{var t,s;const{id:r,routeId:n}=e.matches[o];let a=!1,c=!1;const i=e.router.looseRoutesById[n];if(eo(e,r)){if(e.router.isServer){const l=Se(e,r,i);if(l){const d=await l;e.updateMatch(r,f=>({...f,...d}))}return e.router.getMatch(r)}}else{const l=e.router.getMatch(r);if(l._nonReactive.loaderPromise){if(l.status==="success"&&!e.sync&&!l.preload)return l;await l._nonReactive.loaderPromise;const d=e.router.getMatch(r);d.error&&q(e,d,d.error)}else{const d=Date.now()-l.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)c=!0,(async()=>{var b,w;try{await At(e,r,o,i);const M=e.router.getMatch(r);(b=M._nonReactive.loaderPromise)==null||b.resolve(),(w=M._nonReactive.loadPromise)==null||w.resolve(),M._nonReactive.loaderPromise=void 0}catch(M){V(M)&&await e.router.navigate(M.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,M=>({...M,...w}))}}}}const u=e.router.getMatch(r);c||((t=u._nonReactive.loaderPromise)==null||t.resolve(),(s=u._nonReactive.loadPromise)==null||s.resolve()),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,c||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const h=c?u.isFetching:!1;return h!==u.isFetching||u.invalid!==!1?(e.updateMatch(r,l=>({...l,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=$s(o,r);Y(n)&&await n}const t=o.firstBadMatchIndex??o.matches.length;for(let r=0;r<t;r++)o.matchPromises.push(Fs(o,r));await Promise.all(o.matchPromises);const s=Ie(o);Y(s)&&await s}catch(t){if(z(t)&&!o.preload){const s=Ie(o);throw Y(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 Os{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?ns({initialEntries:[this.basepath||"/"]}):rs()),this.updateLatestLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new tt(Bs(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(n=>!["redirected"].includes(n.status))}}}),bs(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}=qs({routeTree:this.routeTree,initRoute:(a,c)=>{a.init({originalIndex:c})}});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:l})=>{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,l)}},n=r(t),{__tempLocation:a,__tempKey:c}=n.state;if(a&&(!c||c===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)=>ls({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=Es(1e3),this.getMatchedRoutes=(t,s)=>Gs({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,c;const i=n._fromLocation||this.latestLocation,u=this.matchRoutes(i,{_buildLocation:!0}),h=st(u);let l=this.resolvePathWithBase(h.fullPath,".");const d=n.to?this.resolvePathWithBase(l,`${n.to}`):this.resolvePathWithBase(l,"."),f=!!n.to&&!Ot(n.to.toString(),l)&&!Ot(d,l);n.unsafeRelative==="path"?l=i.pathname:f&&n.from&&(l=n.from),l=this.resolvePathWithBase(l,".");const p=h.search,v={...h.params},y=n.to?this.resolvePathWithBase(l,`${n.to}`):this.resolvePathWithBase(l,"."),_=n.params===!1||n.params===null?{}:(n.params??!0)===!0?v:Object.assign(v,Q(n.params,v)),P=Ce({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=Ce({path:y,params:_,leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let b=p;if(t._includeValidateSearch&&((c=this.options.search)!=null&&c.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),M=n.hash===!0?i.hash:n.hash?Q(n.hash,i.hash):void 0,C=M?`#${M}`:"";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:M??"",href:`${S}${w}${C}`,unmaskOnReload:n.unmaskOnReload}},r=(n={},a)=>{var c;const i=s(n);let u=a?s(a):void 0;if(!u){let h={};const l=(c=this.options.routeMasks)==null?void 0:c.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(l){const{from:d,...f}=l;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,c=this.commitLocationPromise;if(this.commitLocationPromise=ce(()=>{c==null||c.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:c,...i}={})=>{if(c){const h=this.history.location.state.__TSR_index,l=Re(c,{__TSR_index:t?h:h+1});i.to=l.pathname,i.search=this.options.parseSearch(l.search),i.hash=l.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 Is({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 c;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,l,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)),l=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"],[l,"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&&((c=this.commitLocationPromise)==null||c.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,c=typeof s.types=="function"?s.types(ee({resolvedLocation:a,location:n})):s.types;r={update:t,types:c}}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 c;return{...a,[n]:(c=a[n])==null?void 0:c.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(c=>c.id)),a=new Set([...n,...this.state.cachedMatches.map(c=>c.id)]);_e(()=>{r.forEach(c=>{a.has(c.id)||this.__store.setState(i=>({...i,cachedMatches:[...i.cachedMatches,c]}))})});try{return r=await $t({router:this,matches:r,location:s,preload:!0,updateMatch:(c,i)=>{n.has(c)?r=r.map(u=>u.id===c?i(u):u):this.updateMatch(c,i)}}),r}catch(c){if(V(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:s});z(c)||console.error(c);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 c=((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,c.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(c.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??Ls,parseSearch:o.parseSearch??Cs}),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 c=!1;(r?r.path!=="/"&&a["**"]:ue(o.pathname))&&(this.options.notFoundRoute?n.push(this.options.notFoundRoute):c=!0);const i=(()=>{if(c){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 Ds(y.message,{cause:y}),t!=null&&t.throwOnError)throw p;return p}}),h=[],l=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 J=D;if(D instanceof Fe||(J=new Fe(D.message,{cause:D})),t!=null&&t.throwOnError)throw J;return[E,{},J]}})(),S=((v=(p=d.options).loaderDeps)==null?void 0:v.call(p,{search:_}))??"",b=S?JSON.stringify(S):"",{usedParams:w,interpolatedPath:M}=Ce({path:d.fullPath,params:a,decodeCharMap:this.pathParamsDecodeCharMap}),C=Ce({path:d.id,params:a,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+b,k=this.getMatch(C),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:C,index:f,routeId:d.id,params:x?A(x.params,a):a,_strictParams:w,pathname:U([this.basepath,M]),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=l(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],_=l(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 Ds 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 Bs(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 Vs=.5,zs=.4,Ws=.25,Us=.05,Hs=.02,Ks=.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+Ks+Bt*e.suffixSegment.length:o}function qs({routeTree:e,initRoute:o}){const t={},s={},r=i=>{i.forEach((u,h)=>{o==null||o(u,h);const l=t[u.id];if(H(!l,`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 l=ut(i.fullPath);let d=de(l),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=Vs:_.type===le?(g=zs,p++):_.type===oe&&(g=Ws),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:l,parsed:d,index:u,scores:y,optionalParamCount:p,hasStaticAfter:v})});const c=n.sort((i,u)=>{const h=Math.min(i.scores.length,u.scores.length);for(let l=0;l<h;l++)if(i.scores[l]!==u.scores[l])return u.scores[l]-i.scores[l];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 l=0;l<h;l++)if(i.parsed[l].value!==u.parsed[l].value)return i.parsed[l].value>u.parsed[l].value?1:-1;return i.index-u.index}).map((i,u)=>(i.child.rank=u,i.child));return{routesById:t,routesByPath:s,flatRoutes:c}}function Gs({pathname:e,routePathname:o,basepath:t,caseSensitive:s,routesByPath:r,routesById:n,flatRoutes:a,parseCache:c}){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},c)};let l=o!==void 0?r[o]:void 0;if(l)i=h(l);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{l=v,i=y;break}}!l&&p&&(l=p.foundRoute,i=p.routeParams)}let d=l||n[$];const f=[d];for(;d.parentRoute;)d=d.parentRoute,f.push(d);return f.reverse(),{matchedRoutes:f,routeParams:i,foundRoute:l}}function Ys({search:e,dest:o,destRoutes:t,_includeValidateSearch:s}){const r=t.reduce((c,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 l=({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(l)}if(s&&i.options.validateSearch){const l=({search:d,next:f})=>{const p=f(d);try{return{...p,...at(i.options.validateSearch,p)??void 0}}catch{return p}};h.push(l)}return c.concat(h)},[])??[],n=({search:c})=>o.search?o.search===!0?c:Q(o.search,c):{};r.push(n);const a=(c,i)=>{if(c>=r.length)return i;const u=r[c];return u({search:i,next:l=>a(c+1,l)})};return a(0,e)}const Js="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||H(!1);let c=a?$:n==null?void 0:n.path;c&&c!=="/"&&(c=ut(c));const i=(n==null?void 0:n.id)||c;let u=a?$:U([this.parentRoute.id===$?"":this.parentRoute.id,i]);c===$&&(c="/"),u!==$&&(u=U(["/",u]));const h=u===$?"/":U([this.parentRoute.fullPath,c]);this._path=c,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 Xs extends io{constructor(o){super(o)}}function dt(e){const o=e.errorComponent??Be;return m.jsx(Zs,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:t,reset:s})=>t?R.createElement(o,{error:t,reset:s}):e.children})}class Zs 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 Qs({children:e,fallback:o=null}){return er()?m.jsx(xe.Fragment,{children:e}):m.jsx(xe.Fragment,{children:o})}function er(){return xe.useSyncExternalStore(tr,()=>!0,()=>!1)}function tr(){return()=>{}}var Je={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 or(){if(zt)return Xe;zt=1;var e=Po(),o=Fo();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,c=e.useMemo,i=e.useDebugValue;return Xe.useSyncExternalStoreWithSelector=function(u,h,l,d,f){var p=n(null);if(p.current===null){var v={hasValue:!1,value:null};p.current=v}else v=p.current;p=c(function(){function _(w){if(!P){if(P=!0,g=w,w=d(w),f!==void 0&&v.hasValue){var M=v.value;if(f(M,w))return S=M}return S=w}if(M=S,s(g,w))return M;var C=d(w);return f!==void 0&&f(M,C)?(g=w,M):(g=w,S=C)}var P=!1,g,S,b=l===void 0?null:l;return[function(){return _(h())},b===null?void 0:function(){return _(b())}]},[h,l,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 sr(){return Wt||(Wt=1,Je.exports=or()),Je.exports}var rr=sr();function nr(e,o=t=>t){return rr.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,o,ir)}function ir(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 N(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 nr(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),ar=R.createContext(void 0);function F(e){const o=R.useContext(e.from?ar:Ve);return N({select:s=>{const r=s.matches.find(n=>e.from?e.from===n.routeId:n.id===o);if(H(!((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 cr(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 lr(e){const o=R.useRef(null);return R.useImperativeHandle(e,()=>o.current,[]),o}function ur(e,o){const t=O(),[s,r]=R.useState(!1),n=R.useRef(!1),a=lr(o),{activeProps:c,inactiveProps:i,activeOptions:u,to:h,preload:l,preloadDelay:d,hashScrollIntoView:f,replace:p,startTransition:v,resetScroll:y,viewTransition:_,children:P,target:g,disabled:S,style:b,className:w,onClick:M,onFocus:C,onMouseEnter:k,onMouseLeave:x,onTouchStart:L,ignoreBlocker:I,params:B,search:E,hash:be,state:D,mask:J,reloadDocument:gt,unsafeRelative:go,from:$r,_fromLocation:Fr,...yt}=e,_t=R.useMemo(()=>{try{return new URL(h),"external"}catch{}return"internal"},[h]),yo=N({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,yo,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:l??t.options.defaultPreload,We=d??t.options.defaultPreloadDelay??0,Ue=N({select:T=>{if(ze)return!1;if(u!=null&&u.exact){if(!as(T.location.pathname,X.pathname,t.basepath))return!1}else{const j=Ne(T.location.pathname,t.basepath),K=Ne(X.pathname,t.basepath);if(!(j.startsWith(K)&&(j.length===K.length||j[K.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(Js)})},[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]),_o=R.useCallback(T=>{T!=null&&T.isIntersecting&&Z()},[Z]);if(cr(a,_o,mr,{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},...M&&{onClick:M},...C&&{onFocus:C},...k&&{onMouseEnter:k},...x&&{onMouseLeave:x},...L&&{onTouchStart:L}};const So=T=>{if(!S&&!vr(T)&&!T.defaultPrevented&&(!g||g==="_self")&&T.button===0){T.preventDefault(),$o.flushSync(()=>{r(!0)});const j=t.subscribe("onResolved",()=>{j(),r(!1)});t.navigate({...e,from:fe,replace:p,resetScroll:y,hashScrollIntoView:f,startTransition:v,viewTransition:_,ignoreBlocker:I})}},St=T=>{S||se&&Z()},xo=St,Ro=T=>{if(!(S||!se))if(!We)Z();else{const j=T.target;if(me.has(j))return;const K=setTimeout(()=>{me.delete(j),Z()},We);me.set(j,K)}},bo=T=>{if(S||!se||!We)return;const j=T.target,K=me.get(j);K&&(clearTimeout(K),me.delete(j))},Pe=Ue?Q(c,{})??dr:et,we=Ue?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([M,So]),onFocus:ve([C,St]),onMouseEnter:ve([k,Ro]),onMouseLeave:ve([x,bo]),onTouchStart:ve([L,xo]),disabled:!!S,target:g,...Rt&&{style:Rt},...xt&&{className:xt},...S&&hr,...Ue&&fr,...s&&pr}}const et={},dr={className:"active"},hr={role:"link","aria-disabled":!0},fr={"data-status":"active","aria-current":"page"},pr={"data-transitioning":"transitioning"},me=new WeakMap,mr={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}=ur(s,o),c=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},c)});function vr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}class gr 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 yr(e){return new gr(e)}class _r extends Xs{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 Zr(e){return new _r(e)}function Ut(e){return typeof e=="object"?new Ht(e,{silent:!0}).createRoute(e):new Ht(e,{silent:!0}).createRoute}class Ht{constructor(o,t){this.path=o,this.createRoute=s=>{this.silent;const r=yr(s);return r.isRoot=!1,r},this.silent=t==null?void 0:t.silent}}class Kt{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 Kt(e):o=>new Kt({id:e,...o})}function Sr(){const e=O(),o=R.useRef({router:e,mounted:!1}),[t,s]=R.useState(!1),{hasPendingMatches:r,isLoading:n}=N({select:l=>({isLoading:l.isLoading,hasPendingMatches:l.matches.some(d=>d.status==="pending")}),structuralSharing:!0}),a=Qe(n),c=n||t||r,i=Qe(c),u=n||r,h=Qe(u);return e.startTransition=l=>{s(!0),R.startTransition(()=>{l(),s(!1)})},R.useEffect(()=>{const l=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}),()=>{l()}},[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&&!c&&(e.emit({type:"onResolved",...ee(e.state)}),e.__store.setState(l=>({...l,status:"idle",resolvedLocation:l.location})),Ps(e))},[c,i,e]),null}function xr(e){const o=N({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 Rr(){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(Rr,{})}function br({children:e}){return typeof document<"u"?null:m.jsx("script",{className:"$tsr",dangerouslySetInnerHTML:{__html:[e].filter(Boolean).join(`
40
- `)}})}function Pr(){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(br,{children:`(${Zt.toString()})(${JSON.stringify(r)})`})}const lo=R.memo(function({matchId:o}){var t,s;const r=O(),n=N({select:g=>{const S=g.matches.find(b=>b.id===o);return H(S),{routeId:S.routeId,ssr:S.ssr,_displayPending:S._displayPending}},structuralSharing:!0}),a=r.routesById[n.routeId],c=a.options.pendingComponent??r.options.defaultPendingComponent,i=c?m.jsx(c,{}):null,u=a.options.errorComponent??r.options.defaultErrorComponent,h=a.options.onCatch??r.options.defaultOnCatch,l=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??c??(((s=a.options.errorComponent)==null?void 0:s.preload)||d))?R.Suspense:re,p=u?dt:re,v=l?xr:re,y=N({select:g=>g.loadedAt}),_=N({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(!l||g.routeId&&g.routeId!==n.routeId||!g.routeId&&!a.isRoot)throw g;return R.createElement(l,g)},children:d||n._displayPending?m.jsx(Qs,{fallback:i,children:m.jsx(Gt,{matchId:o})}):m.jsx(Gt,{matchId:o})})})})}),_===$&&r.options.scrollRestoration?m.jsxs(m.Fragment,{children:[m.jsx(wr,{}),m.jsx(Pr,{})]}):null]})});function wr(){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:c,key:i,routeId:u}=N({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],l=R.useMemo(()=>{const d=h.options.component??a.options.defaultComponent;return d?m.jsx(d,{},i):m.jsx(uo,{})},[i,h.options.component,a.options.defaultComponent]);if(c._displayPending)throw(t=a.getMatch(c.id))==null?void 0:t._nonReactive.displayPendingPromise;if(c._forcePending)throw(s=a.getMatch(c.id))==null?void 0:s._nonReactive.minPendingPromise;if(c.status==="pending"){const d=h.options.pendingMinMs??a.options.defaultPendingMinMs;if(d){const f=a.getMatch(c.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(c.id))==null?void 0:r._nonReactive.loadPromise}if(c.status==="notFound")return H(z(c.error)),co(a,h,c.error);if(c.status==="redirected")throw H(V(c.error)),(n=a.getMatch(c.id))==null?void 0:n._nonReactive.loadPromise;if(c.status==="error"){if(a.isServer){const d=(h.options.errorComponent??a.options.defaultErrorComponent)||Be;return m.jsx(d,{error:c.error,reset:void 0,info:{componentStack:""}})}throw c.error}return l}),uo=R.memo(function(){const o=O(),t=R.useContext(Ve),s=N({select:u=>{var h;return(h=u.matches.find(l=>l.id===t))==null?void 0:h.routeId}}),r=o.routesById[s],n=N({select:u=>{const l=u.matches.find(d=>d.id===t);return H(l),l.globalNotFound}}),a=N({select:u=>{var h;const l=u.matches,d=l.findIndex(f=>f.id===t);return(h=l[d+1])==null?void 0:h.id}}),c=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:c,children:i}):i});function Mr(){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(Sr,{}),m.jsx(Cr,{})]});return e.options.InnerWrap?m.jsx(e.options.InnerWrap,{children:s}):s}function Cr(){const e=O(),o=N({select:r=>{var n;return(n=r.matches[0])==null?void 0:n.id}}),t=N({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 Qr=e=>new Lr(e);class Lr extends Os{constructor(o){super(o)}}typeof globalThis<"u"?(globalThis.createFileRoute=Ut,globalThis.createLazyFileRoute=qt):typeof window<"u"&&(window.createFileRoute=Ut,window.createLazyFileRoute=qt);function kr({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 en({router:e,...o}){return m.jsx(kr,{router:e,...o,children:m.jsx(Mr,{})})}function Tr(e){return N({select:o=>o.location})}const Ir={theme:"system",setTheme:()=>null},ho=R.createContext(Ir);function Er({children:e,defaultTheme:o="system",storageKey:t="vite-ui-theme",...s}){const[r,n]=R.useState(()=>localStorage.getItem(t)||o);R.useEffect(()=>{const c=localStorage.getItem(t);(!c||c==="system")&&o!=="system"&&(localStorage.setItem(t,o),n(o))},[]),R.useEffect(()=>{const c=window.document.documentElement,i=window.document.body,u=window.document.getElementById("app");c.classList.remove("light","dark"),i.classList.remove("light","dark"),u==null||u.classList.remove("light","dark");const h=r==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":r;c.classList.add(h),i.classList.add(h),u==null||u.classList.add(h),c.style.colorScheme=h,c.setAttribute("data-theme",h)},[r]);const a={theme:r,setTheme:c=>{localStorage.setItem(t,c),n(c)}};return m.jsx(ho,{...s,value:a,children:e})}const Nr=()=>{const e=R.use(ho);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};Er.__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 fo({className:e}){const{theme:o,setTheme:t}=Nr(),s=R.useMemo(()=>o==="light"?m.jsx(Lt,{className:"h-4 w-4"}):o==="dark"?m.jsx(Ct,{className:"h-4 w-4"}):m.jsx(Mt,{className:"h-4 w-4"}),[o]);return m.jsxs(Oo,{children:[m.jsx(Do,{asChild:!0,children:m.jsx(Wo,{variant:"ghost",size:"sm",className:e,"aria-label":"Toggle theme",children:s})}),m.jsxs(Bo,{align:"end",sideOffset:8,className:"w-40",children:[m.jsx(Vo,{children:"Theme"}),m.jsx(zo,{}),m.jsxs(He,{onClick:()=>t("light"),children:[m.jsx(Lt,{className:"mr-2 h-4 w-4"})," ","Light"]}),m.jsxs(He,{onClick:()=>t("dark"),children:[m.jsx(Ct,{className:"mr-2 h-4 w-4"})," ","Dark"]}),m.jsxs(He,{onClick:()=>t("system"),children:[m.jsx(Mt,{className:"mr-2 h-4 w-4"})," ","System"]})]})]})}fo.__docgenInfo={description:"",methods:[],displayName:"ThemeToggle",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const po=R.createContext(null);function mo(){const e=R.useContext(po);if(!e){const o=()=>{};return{groups:[],setGroups:o,registerGroup:o,registerItem:o,clear:o}}return e}function tn(){const{registerGroup:e,registerItem:o,clear:t}=mo();return{registerGroup:e,registerItem:o,clear:t}}function vo({initialGroups:e=[],children:o}){const[t,s]=R.useState(e),r=R.useCallback(i=>{s(u=>u.some(l=>l.id===i.id)?u:[...u,{id:i.id,label:i.label,items:i.items??[]}])},[]),n=R.useCallback((i,u)=>{s(h=>{const l=h.findIndex(d=>d.id===i);if(l>=0){const d=h[l],f=[...d.items],p=f.findIndex(y=>y.id===u.id);p>=0?f[p]=u:f.push(u);const v=[...h];return v[l]={...d,items:f},v}return[...h,{id:i,label:i,items:[u]}]})},[]),a=R.useCallback(()=>{s([])},[]),c=R.useMemo(()=>({groups:t,setGroups:s,registerGroup:r,registerItem:n,clear:a}),[t,r,n,a]);return m.jsx(po.Provider,{value:c,children:o})}vo.__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 jr({children:e,defaultItemIcon:o,sidebarCollapsible:t=!1,sidebarHeader:s,sidebarHeaderTitle:r,sidebarHeaderIcon:n,headerAfterTrigger:a,headerAfterTheme:c}){const{groups:i}=mo(),u=Tr(),[h,l]=R.useState({}),d=o??Ko,f=n??Qo,p=r??"Application",v=g=>g?u.pathname===g||u.pathname.startsWith(g+"/"):!1,y=R.useCallback((g,S)=>{l(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),M=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&&(M?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&&M&&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(Mo,{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(Lo,{className:"bg-sidebar px-2 py-4",children:i.map((g,S)=>m.jsxs(R.Fragment,{children:[m.jsxs(ko,{children:[m.jsx(To,{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(Io,{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(Ao,{orientation:"horizontal",className:"bg-sidebar-border group-data-[collapsible=icon]:hidden"})]},g.id))}),m.jsx(Eo,{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(Jo,{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(No,{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(fo,{}),c]})]}),m.jsxs("main",{className:"flex flex-1 flex-col gap-4 p-4",children:[e,m.jsx(uo,{})]})]})]})}function Ar({children:e,defaultItemIcon:o,sidebarCollapsible:t,sidebarHeader:s,sidebarHeaderTitle:r,sidebarHeaderIcon:n,headerAfterTrigger:a,headerAfterTheme:c}){return m.jsx(vo,{children:m.jsx(wo,{children:m.jsx(jr,{defaultItemIcon:o,sidebarCollapsible:t,sidebarHeader:s,sidebarHeaderTitle:r,sidebarHeaderIcon:n,headerAfterTrigger:a,headerAfterTheme:c,children:e})})})}Ar.__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{Ar as A,Xr as H,en as R,Er as T,yr as a,Qr as b,Zr as c,tn as u};
@@ -1,4 +0,0 @@
1
- import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as x}from"./iframe-BWjPIle6.js";import{A as p,c as h,a as i,b as g,R as b,T as f,u as j,H as R}from"./AdminLayout-B9bV4J_6.js";import{S as N,a as S}from"./shopping-cart-CJBClF2m.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-CLBo0iA0.js";import"./sidebar-BsMnOE7Y.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";import"./index-Dsg7S8zu.js";import"./dropdown-menu-BwL9gQwG.js";import"./index-DE2OlfDP.js";import"./index-C9xvlw_B.js";import"./index-Dr2xmx-F.js";import"./index-Cw7p-pms.js";import"./check-DyecuwP4.js";import"./circle-CyarsADt.js";import"./chevron-right-oMYqDJ_f.js";import"./chevron-down-Bp7zbUB0.js";const ht={title:"Kit/Layouts/Admin",component:p};function y(){const{registerGroup:r,registerItem:e,clear:o}=j();return x.useEffect(()=>{o(),r({id:"main",label:"Main"}),e("main",{id:"dashboard",title:"Dashboard",url:"/",icon:R}),r({id:"commerce",label:"Commerce"}),e("commerce",{id:"orders",title:"Orders",url:"/orders",icon:N,badge:12}),r({id:"settings",label:"Settings"}),e("settings",{id:"general",title:"General",url:"/settings",icon:S})},[r,e,o]),null}function A(r){const e=h({component:()=>t.jsx(f,{children:t.jsx(p,{...r,children:t.jsx(y,{})})})}),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(A,{})};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 gt=["Basic"];export{s as Basic,gt as __namedExportsOrder,ht as default};
@@ -1,4 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as d}from"./iframe-BWjPIle6.js";import{A as a,c,a as u,b,R as g,T as x,u as R,H as h}from"./AdminLayout-B9bV4J_6.js";import{S as f,a as C}from"./shopping-cart-CJBClF2m.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-CLBo0iA0.js";import"./sidebar-BsMnOE7Y.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";import"./index-Dsg7S8zu.js";import"./dropdown-menu-BwL9gQwG.js";import"./index-DE2OlfDP.js";import"./index-C9xvlw_B.js";import"./index-Dr2xmx-F.js";import"./index-Cw7p-pms.js";import"./check-DyecuwP4.js";import"./circle-CyarsADt.js";import"./chevron-right-oMYqDJ_f.js";import"./chevron-down-Bp7zbUB0.js";const ur={title:"Kit/Layouts/Admin",component:a};function j(){const{registerGroup:t,registerItem:r,clear:o}=R();return d.useEffect(()=>{o(),t({id:"main",label:"Main"}),r("main",{id:"dashboard",title:"Dashboard",url:"/",icon:h}),t({id:"commerce",label:"Commerce"}),r("commerce",{id:"orders",title:"Orders",url:"/orders",icon:f,badge:12}),t({id:"settings",label:"Settings"}),r("settings",{id:"general",title:"General",url:"/settings",icon:C})},[t,r,o]),null}function A(t){const r=c({component:()=>e.jsx(x,{children:e.jsx(a,{...t,children:e.jsx(j,{})})})}),o=u({getParentRoute:()=>r,path:"/",component:()=>e.jsx("div",{className:"p-6",children:"Home"})}),n=r.addChildren([o]),l=b({routeTree:n,basepath:"/iframe.html"});return e.jsx(g,{router:l})}const i={name:"Collapsible sidebar",render:()=>e.jsx(A,{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 br=["Collapsible"];export{i as Collapsible,br as __namedExportsOrder,ur as default};
@@ -1,29 +0,0 @@
1
- import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as y}from"./iframe-BWjPIle6.js";import{A as c,H as h,c as f,a as l,b as v,R as A,T as k,u as C}from"./AdminLayout-B9bV4J_6.js";import{C as T}from"./chart-column-CplFCmg8.js";import{c as s}from"./createLucideIcon-CLBo0iA0.js";import{S as j,a as S}from"./shopping-cart-CJBClF2m.js";import"./preload-helper-Dp1pzeXC.js";import"./sidebar-BsMnOE7Y.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";import"./index-Dsg7S8zu.js";import"./dropdown-menu-BwL9gQwG.js";import"./index-DE2OlfDP.js";import"./index-C9xvlw_B.js";import"./index-Dr2xmx-F.js";import"./index-Cw7p-pms.js";import"./check-DyecuwP4.js";import"./circle-CyarsADt.js";import"./chevron-right-oMYqDJ_f.js";import"./chevron-down-Bp7zbUB0.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 H=[["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"}]],M=s("bell",H);/**
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 N=[["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",N);/**
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 R=[["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"}]],_=s("life-buoy",R);/**
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"}]],O=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 P=[["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"}]],E=s("users",P),Ne={title:"Kit/Layouts/Admin",component:c};function q(){const{registerGroup:r,registerItem:e,clear:i}=C();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:E,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:j,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:M}),e("system",{id:"security",title:"Security",url:"/security",icon:O,disabled:!0}),e("system",{id:"support",title:"Support",url:"/support",icon:_}),r({id:"settings",label:"Settings"}),e("settings",{id:"general",title:"General",url:"/settings",icon:S})},[r,e,i]),null}function B(r){const e=f({component:()=>t.jsx(k,{children:t.jsx(c,{...r,children:t.jsx(q,{})})})}),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(B,{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 Re=["Complex"];export{a as Complex,Re as __namedExportsOrder,Ne as default};
@@ -1,9 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-BWjPIle6.js";import{A as p,c as u,a as l,b as x,R as f,T as h,u as g,H as v}from"./AdminLayout-B9bV4J_6.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-CLBo0iA0.js";import"./sidebar-BsMnOE7Y.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";import"./index-Dsg7S8zu.js";import"./dropdown-menu-BwL9gQwG.js";import"./index-DE2OlfDP.js";import"./index-C9xvlw_B.js";import"./index-Dr2xmx-F.js";import"./index-Cw7p-pms.js";import"./check-DyecuwP4.js";import"./circle-CyarsADt.js";import"./chevron-right-oMYqDJ_f.js";import"./chevron-down-Bp7zbUB0.js";const de={title:"Kit/Layouts/Admin",component:p};function b(){const{registerGroup:t,registerItem:r,clear:o}=g();return c.useEffect(()=>{o(),t({id:"overview",label:"Overview"}),r("overview",{id:"home",title:"Home",url:"/",icon:v})},[t,r,o]),null}function j(t){const r=u({component:()=>e.jsx(h,{children:e.jsx(p,{...t,children:e.jsx(b,{})})})}),o=l({getParentRoute:()=>r,path:"/",component:()=>e.jsx("div",{className:"p-6",children:"Home"})}),n=r.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(j,{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 ce=["CustomSidebarHeaderComponent"];export{m as CustomSidebarHeaderComponent,ce as __namedExportsOrder,de as default};
@@ -1,4 +0,0 @@
1
- import{j as r}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-BWjPIle6.js";import{A as a,c as u,a as l,b as x,R as b,T as h,u as R,H as C}from"./AdminLayout-B9bV4J_6.js";import{C as f}from"./chart-column-CplFCmg8.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-CLBo0iA0.js";import"./sidebar-BsMnOE7Y.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";import"./index-Dsg7S8zu.js";import"./dropdown-menu-BwL9gQwG.js";import"./index-DE2OlfDP.js";import"./index-C9xvlw_B.js";import"./index-Dr2xmx-F.js";import"./index-Cw7p-pms.js";import"./check-DyecuwP4.js";import"./circle-CyarsADt.js";import"./chevron-right-oMYqDJ_f.js";import"./chevron-down-Bp7zbUB0.js";const ur={title:"Kit/Layouts/Admin",component:a};function j(){const{registerGroup:o,registerItem:t,clear:e}=R();return c.useEffect(()=>{e(),o({id:"overview",label:"Overview"}),t("overview",{id:"home",title:"Home",url:"/",icon:C})},[o,t,e]),null}function v(o){const t=u({component:()=>r.jsx(h,{children:r.jsx(a,{...o,children:r.jsx(j,{})})})}),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(v,{sidebarHeaderIcon:f,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 lr=["CustomSidebarTitleAndIcon"];export{i as CustomSidebarTitleAndIcon,lr as __namedExportsOrder,ur as default};
@@ -1,7 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-BWjPIle6.js";import{A as p,c as u,a as l,b as x,R as h,T as g,u as f,H as b}from"./AdminLayout-B9bV4J_6.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-CLBo0iA0.js";import"./sidebar-BsMnOE7Y.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";import"./index-Dsg7S8zu.js";import"./dropdown-menu-BwL9gQwG.js";import"./index-DE2OlfDP.js";import"./index-C9xvlw_B.js";import"./index-Dr2xmx-F.js";import"./index-Cw7p-pms.js";import"./check-DyecuwP4.js";import"./circle-CyarsADt.js";import"./chevron-right-oMYqDJ_f.js";import"./chevron-down-Bp7zbUB0.js";const ne={title:"Kit/Layouts/Admin",component:p};function v(){const{registerGroup:t,registerItem:r,clear:o}=f();return c.useEffect(()=>{o(),t({id:"overview",label:"Overview"}),r("overview",{id:"home",title:"Home",url:"/",icon:b})},[t,r,o]),null}function j(t){const r=u({component:()=>e.jsx(g,{children:e.jsx(p,{...t,children:e.jsx(v,{})})})}),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(j,{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 ce=["HeaderSlots"];export{m as HeaderSlots,ce as __namedExportsOrder,ne as default};
@@ -1,27 +0,0 @@
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-CLBo0iA0.js";import"./iframe-BWjPIle6.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};