@k3-universe/react-kit 0.0.1

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 (703) hide show
  1. package/.babelrc +12 -0
  2. package/.storybook/main.ts +22 -0
  3. package/.storybook/preview.ts +190 -0
  4. package/Dockerfile.storybook +43 -0
  5. package/README.md +7 -0
  6. package/components.json +20 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +1 -0
  10. package/dist/kit/builder/data-table/components/DataTable.d.ts +34 -0
  11. package/dist/kit/builder/data-table/components/DataTable.d.ts.map +1 -0
  12. package/dist/kit/builder/data-table/components/DataTableColumnHeader.d.ts +8 -0
  13. package/dist/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +1 -0
  14. package/dist/kit/builder/data-table/components/DataTablePagination.d.ts +6 -0
  15. package/dist/kit/builder/data-table/components/DataTablePagination.d.ts.map +1 -0
  16. package/dist/kit/builder/data-table/components/DataTableViewOptions.d.ts +5 -0
  17. package/dist/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +1 -0
  18. package/dist/kit/builder/data-table/index.d.ts +6 -0
  19. package/dist/kit/builder/data-table/index.d.ts.map +1 -0
  20. package/dist/kit/builder/data-table/types.d.ts +27 -0
  21. package/dist/kit/builder/data-table/types.d.ts.map +1 -0
  22. package/dist/kit/builder/data-table/utils/dotAccessor.d.ts +2 -0
  23. package/dist/kit/builder/data-table/utils/dotAccessor.d.ts.map +1 -0
  24. package/dist/kit/builder/dialog/index.d.ts +3 -0
  25. package/dist/kit/builder/dialog/index.d.ts.map +1 -0
  26. package/dist/kit/builder/dialog/provider.d.ts +26 -0
  27. package/dist/kit/builder/dialog/provider.d.ts.map +1 -0
  28. package/dist/kit/builder/form/components/FormActions.d.ts +20 -0
  29. package/dist/kit/builder/form/components/FormActions.d.ts.map +1 -0
  30. package/dist/kit/builder/form/components/FormBuilder.d.ts +97 -0
  31. package/dist/kit/builder/form/components/FormBuilder.d.ts.map +1 -0
  32. package/dist/kit/builder/form/components/FormField.d.ts +12 -0
  33. package/dist/kit/builder/form/components/FormField.d.ts.map +1 -0
  34. package/dist/kit/builder/form/components/FormSection.d.ts +15 -0
  35. package/dist/kit/builder/form/components/FormSection.d.ts.map +1 -0
  36. package/dist/kit/builder/form/components/index.d.ts +5 -0
  37. package/dist/kit/builder/form/components/index.d.ts.map +1 -0
  38. package/dist/kit/builder/form/index.d.ts +3 -0
  39. package/dist/kit/builder/form/index.d.ts.map +1 -0
  40. package/dist/kit/builder/form/utils/common-forms.d.ts +7 -0
  41. package/dist/kit/builder/form/utils/common-forms.d.ts.map +1 -0
  42. package/dist/kit/builder/form/utils/dependencies.d.ts +41 -0
  43. package/dist/kit/builder/form/utils/dependencies.d.ts.map +1 -0
  44. package/dist/kit/builder/form/utils/field-factories.d.ts +22 -0
  45. package/dist/kit/builder/form/utils/field-factories.d.ts.map +1 -0
  46. package/dist/kit/builder/form/utils/index.d.ts +15 -0
  47. package/dist/kit/builder/form/utils/index.d.ts.map +1 -0
  48. package/dist/kit/builder/form/utils/section-factories.d.ts +7 -0
  49. package/dist/kit/builder/form/utils/section-factories.d.ts.map +1 -0
  50. package/dist/kit/builder/form/utils/transformers.d.ts +6 -0
  51. package/dist/kit/builder/form/utils/transformers.d.ts.map +1 -0
  52. package/dist/kit/builder/form/utils/validations.d.ts +13 -0
  53. package/dist/kit/builder/form/utils/validations.d.ts.map +1 -0
  54. package/dist/kit/builder/form/utils/validators.d.ts +8 -0
  55. package/dist/kit/builder/form/utils/validators.d.ts.map +1 -0
  56. package/dist/kit/builder/page/Page.d.ts +48 -0
  57. package/dist/kit/builder/page/Page.d.ts.map +1 -0
  58. package/dist/kit/builder/page/index.d.ts +2 -0
  59. package/dist/kit/builder/page/index.d.ts.map +1 -0
  60. package/dist/kit/builder/section/SectionBuilder.d.ts +3 -0
  61. package/dist/kit/builder/section/SectionBuilder.d.ts.map +1 -0
  62. package/dist/kit/builder/section/index.d.ts +3 -0
  63. package/dist/kit/builder/section/index.d.ts.map +1 -0
  64. package/dist/kit/builder/section/types.d.ts +59 -0
  65. package/dist/kit/builder/section/types.d.ts.map +1 -0
  66. package/dist/kit/components/autocomplete/Autocomplete.d.ts +21 -0
  67. package/dist/kit/components/autocomplete/Autocomplete.d.ts.map +1 -0
  68. package/dist/kit/components/autocomplete/index.d.ts +3 -0
  69. package/dist/kit/components/autocomplete/index.d.ts.map +1 -0
  70. package/dist/kit/components/autocomplete/types.d.ts +19 -0
  71. package/dist/kit/components/autocomplete/types.d.ts.map +1 -0
  72. package/dist/kit/components/login/Login.d.ts +29 -0
  73. package/dist/kit/components/login/Login.d.ts.map +1 -0
  74. package/dist/kit/components/login/index.d.ts +2 -0
  75. package/dist/kit/components/login/index.d.ts.map +1 -0
  76. package/dist/kit/layouts/admin/components/AdminLayout.d.ts +17 -0
  77. package/dist/kit/layouts/admin/components/AdminLayout.d.ts.map +1 -0
  78. package/dist/kit/layouts/admin/components/ThemeToggle.d.ts +5 -0
  79. package/dist/kit/layouts/admin/components/ThemeToggle.d.ts.map +1 -0
  80. package/dist/kit/layouts/admin/hooks/menu.d.ts +12 -0
  81. package/dist/kit/layouts/admin/hooks/menu.d.ts.map +1 -0
  82. package/dist/kit/layouts/admin/providers/AdminMenuProvider.d.ts +7 -0
  83. package/dist/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +1 -0
  84. package/dist/kit/layouts/admin/types/index.d.ts +27 -0
  85. package/dist/kit/layouts/admin/types/index.d.ts.map +1 -0
  86. package/dist/kit/providers/ThemeProvider.d.ts +14 -0
  87. package/dist/kit/providers/ThemeProvider.d.ts.map +1 -0
  88. package/dist/shadcn/hooks/use-mobile.d.ts +2 -0
  89. package/dist/shadcn/hooks/use-mobile.d.ts.map +1 -0
  90. package/dist/shadcn/lib/utils.d.ts +3 -0
  91. package/dist/shadcn/lib/utils.d.ts.map +1 -0
  92. package/dist/shadcn/ui/accordion.d.ts +8 -0
  93. package/dist/shadcn/ui/accordion.d.ts.map +1 -0
  94. package/dist/shadcn/ui/alert-dialog.d.ts +15 -0
  95. package/dist/shadcn/ui/alert-dialog.d.ts.map +1 -0
  96. package/dist/shadcn/ui/alert.d.ts +10 -0
  97. package/dist/shadcn/ui/alert.d.ts.map +1 -0
  98. package/dist/shadcn/ui/aspect-ratio.d.ts +4 -0
  99. package/dist/shadcn/ui/aspect-ratio.d.ts.map +1 -0
  100. package/dist/shadcn/ui/avatar.d.ts +7 -0
  101. package/dist/shadcn/ui/avatar.d.ts.map +1 -0
  102. package/dist/shadcn/ui/badge.d.ts +10 -0
  103. package/dist/shadcn/ui/badge.d.ts.map +1 -0
  104. package/dist/shadcn/ui/breadcrumb.d.ts +12 -0
  105. package/dist/shadcn/ui/breadcrumb.d.ts.map +1 -0
  106. package/dist/shadcn/ui/button.d.ts +11 -0
  107. package/dist/shadcn/ui/button.d.ts.map +1 -0
  108. package/dist/shadcn/ui/calendar.d.ts +9 -0
  109. package/dist/shadcn/ui/calendar.d.ts.map +1 -0
  110. package/dist/shadcn/ui/card.d.ts +10 -0
  111. package/dist/shadcn/ui/card.d.ts.map +1 -0
  112. package/dist/shadcn/ui/carousel.d.ts +20 -0
  113. package/dist/shadcn/ui/carousel.d.ts.map +1 -0
  114. package/dist/shadcn/ui/chart.d.ts +41 -0
  115. package/dist/shadcn/ui/chart.d.ts.map +1 -0
  116. package/dist/shadcn/ui/checkbox.d.ts +5 -0
  117. package/dist/shadcn/ui/checkbox.d.ts.map +1 -0
  118. package/dist/shadcn/ui/collapsible.d.ts +6 -0
  119. package/dist/shadcn/ui/collapsible.d.ts.map +1 -0
  120. package/dist/shadcn/ui/command.d.ts +19 -0
  121. package/dist/shadcn/ui/command.d.ts.map +1 -0
  122. package/dist/shadcn/ui/context-menu.d.ts +26 -0
  123. package/dist/shadcn/ui/context-menu.d.ts.map +1 -0
  124. package/dist/shadcn/ui/dialog.d.ts +16 -0
  125. package/dist/shadcn/ui/dialog.d.ts.map +1 -0
  126. package/dist/shadcn/ui/drawer.d.ts +14 -0
  127. package/dist/shadcn/ui/drawer.d.ts.map +1 -0
  128. package/dist/shadcn/ui/dropdown-menu.d.ts +26 -0
  129. package/dist/shadcn/ui/dropdown-menu.d.ts.map +1 -0
  130. package/dist/shadcn/ui/form.d.ts +25 -0
  131. package/dist/shadcn/ui/form.d.ts.map +1 -0
  132. package/dist/shadcn/ui/hover-card.d.ts +7 -0
  133. package/dist/shadcn/ui/hover-card.d.ts.map +1 -0
  134. package/dist/shadcn/ui/input-otp.d.ts +12 -0
  135. package/dist/shadcn/ui/input-otp.d.ts.map +1 -0
  136. package/dist/shadcn/ui/input.d.ts +4 -0
  137. package/dist/shadcn/ui/input.d.ts.map +1 -0
  138. package/dist/shadcn/ui/label.d.ts +5 -0
  139. package/dist/shadcn/ui/label.d.ts.map +1 -0
  140. package/dist/shadcn/ui/menubar.d.ts +27 -0
  141. package/dist/shadcn/ui/menubar.d.ts.map +1 -0
  142. package/dist/shadcn/ui/navigation-menu.d.ts +15 -0
  143. package/dist/shadcn/ui/navigation-menu.d.ts.map +1 -0
  144. package/dist/shadcn/ui/pagination.d.ts +14 -0
  145. package/dist/shadcn/ui/pagination.d.ts.map +1 -0
  146. package/dist/shadcn/ui/popover.d.ts +8 -0
  147. package/dist/shadcn/ui/popover.d.ts.map +1 -0
  148. package/dist/shadcn/ui/progress.d.ts +5 -0
  149. package/dist/shadcn/ui/progress.d.ts.map +1 -0
  150. package/dist/shadcn/ui/radio-group.d.ts +6 -0
  151. package/dist/shadcn/ui/radio-group.d.ts.map +1 -0
  152. package/dist/shadcn/ui/resizable.d.ts +9 -0
  153. package/dist/shadcn/ui/resizable.d.ts.map +1 -0
  154. package/dist/shadcn/ui/scroll-area.d.ts +6 -0
  155. package/dist/shadcn/ui/scroll-area.d.ts.map +1 -0
  156. package/dist/shadcn/ui/select.d.ts +16 -0
  157. package/dist/shadcn/ui/select.d.ts.map +1 -0
  158. package/dist/shadcn/ui/separator.d.ts +5 -0
  159. package/dist/shadcn/ui/separator.d.ts.map +1 -0
  160. package/dist/shadcn/ui/sheet.d.ts +14 -0
  161. package/dist/shadcn/ui/sheet.d.ts.map +1 -0
  162. package/dist/shadcn/ui/sidebar.d.ts +70 -0
  163. package/dist/shadcn/ui/sidebar.d.ts.map +1 -0
  164. package/dist/shadcn/ui/skeleton.d.ts +3 -0
  165. package/dist/shadcn/ui/skeleton.d.ts.map +1 -0
  166. package/dist/shadcn/ui/slider.d.ts +5 -0
  167. package/dist/shadcn/ui/slider.d.ts.map +1 -0
  168. package/dist/shadcn/ui/sonner.d.ts +4 -0
  169. package/dist/shadcn/ui/sonner.d.ts.map +1 -0
  170. package/dist/shadcn/ui/switch.d.ts +5 -0
  171. package/dist/shadcn/ui/switch.d.ts.map +1 -0
  172. package/dist/shadcn/ui/table.d.ts +11 -0
  173. package/dist/shadcn/ui/table.d.ts.map +1 -0
  174. package/dist/shadcn/ui/tabs.d.ts +8 -0
  175. package/dist/shadcn/ui/tabs.d.ts.map +1 -0
  176. package/dist/shadcn/ui/textarea.d.ts +4 -0
  177. package/dist/shadcn/ui/textarea.d.ts.map +1 -0
  178. package/dist/shadcn/ui/toggle-group.d.ts +8 -0
  179. package/dist/shadcn/ui/toggle-group.d.ts.map +1 -0
  180. package/dist/shadcn/ui/toggle.d.ts +10 -0
  181. package/dist/shadcn/ui/toggle.d.ts.map +1 -0
  182. package/dist/shadcn/ui/tooltip.d.ts +8 -0
  183. package/dist/shadcn/ui/tooltip.d.ts.map +1 -0
  184. package/eslint.config.mjs +19 -0
  185. package/package.json +82 -0
  186. package/src/index.css +11 -0
  187. package/src/index.ts +0 -0
  188. package/src/kit/builder/data-table/components/DataTable.tsx +375 -0
  189. package/src/kit/builder/data-table/components/DataTableColumnHeader.tsx +63 -0
  190. package/src/kit/builder/data-table/components/DataTablePagination.tsx +86 -0
  191. package/src/kit/builder/data-table/components/DataTableViewOptions.tsx +42 -0
  192. package/src/kit/builder/data-table/index.ts +5 -0
  193. package/src/kit/builder/data-table/types.ts +29 -0
  194. package/src/kit/builder/data-table/utils/dotAccessor.ts +6 -0
  195. package/src/kit/builder/dialog/index.ts +2 -0
  196. package/src/kit/builder/dialog/provider.tsx +141 -0
  197. package/src/kit/builder/form/components/FormActions.tsx +78 -0
  198. package/src/kit/builder/form/components/FormBuilder.tsx +456 -0
  199. package/src/kit/builder/form/components/FormField.tsx +395 -0
  200. package/src/kit/builder/form/components/FormSection.tsx +88 -0
  201. package/src/kit/builder/form/components/index.ts +4 -0
  202. package/src/kit/builder/form/index.ts +2 -0
  203. package/src/kit/builder/form/utils/common-forms.ts +68 -0
  204. package/src/kit/builder/form/utils/dependencies.ts +56 -0
  205. package/src/kit/builder/form/utils/field-factories.ts +164 -0
  206. package/src/kit/builder/form/utils/index.ts +17 -0
  207. package/src/kit/builder/form/utils/section-factories.ts +35 -0
  208. package/src/kit/builder/form/utils/transformers.ts +100 -0
  209. package/src/kit/builder/form/utils/validations.ts +22 -0
  210. package/src/kit/builder/form/utils/validators.ts +20 -0
  211. package/src/kit/builder/page/Page.tsx +182 -0
  212. package/src/kit/builder/page/index.ts +1 -0
  213. package/src/kit/builder/section/SectionBuilder.tsx +213 -0
  214. package/src/kit/builder/section/index.ts +2 -0
  215. package/src/kit/builder/section/types.ts +66 -0
  216. package/src/kit/components/autocomplete/Autocomplete.tsx +247 -0
  217. package/src/kit/components/autocomplete/index.ts +2 -0
  218. package/src/kit/components/autocomplete/types.ts +24 -0
  219. package/src/kit/components/login/Login.tsx +119 -0
  220. package/src/kit/components/login/index.ts +1 -0
  221. package/src/kit/layouts/admin/components/AdminLayout.tsx +251 -0
  222. package/src/kit/layouts/admin/components/ThemeToggle.tsx +60 -0
  223. package/src/kit/layouts/admin/hooks/menu.ts +26 -0
  224. package/src/kit/layouts/admin/providers/AdminMenuProvider.tsx +58 -0
  225. package/src/kit/layouts/admin/types/index.ts +26 -0
  226. package/src/kit/providers/ThemeProvider.tsx +90 -0
  227. package/src/kit/themes/clean-slate.css +147 -0
  228. package/src/kit/themes/default.css +182 -0
  229. package/src/kit/themes/minimal-modern.css +147 -0
  230. package/src/kit/themes/spotify.css +147 -0
  231. package/src/shadcn/hooks/use-mobile.ts +19 -0
  232. package/src/shadcn/lib/utils.ts +6 -0
  233. package/src/shadcn/ui/accordion.tsx +66 -0
  234. package/src/shadcn/ui/alert-dialog.tsx +157 -0
  235. package/src/shadcn/ui/alert.tsx +66 -0
  236. package/src/shadcn/ui/aspect-ratio.tsx +11 -0
  237. package/src/shadcn/ui/avatar.tsx +53 -0
  238. package/src/shadcn/ui/badge.tsx +46 -0
  239. package/src/shadcn/ui/breadcrumb.tsx +108 -0
  240. package/src/shadcn/ui/button.tsx +59 -0
  241. package/src/shadcn/ui/calendar.tsx +213 -0
  242. package/src/shadcn/ui/card.tsx +92 -0
  243. package/src/shadcn/ui/carousel.tsx +240 -0
  244. package/src/shadcn/ui/chart.tsx +353 -0
  245. package/src/shadcn/ui/checkbox.tsx +32 -0
  246. package/src/shadcn/ui/collapsible.tsx +33 -0
  247. package/src/shadcn/ui/command.tsx +184 -0
  248. package/src/shadcn/ui/context-menu.tsx +252 -0
  249. package/src/shadcn/ui/dialog.tsx +143 -0
  250. package/src/shadcn/ui/drawer.tsx +135 -0
  251. package/src/shadcn/ui/dropdown-menu.tsx +257 -0
  252. package/src/shadcn/ui/form.tsx +167 -0
  253. package/src/shadcn/ui/hover-card.tsx +44 -0
  254. package/src/shadcn/ui/input-otp.tsx +77 -0
  255. package/src/shadcn/ui/input.tsx +21 -0
  256. package/src/shadcn/ui/label.tsx +24 -0
  257. package/src/shadcn/ui/menubar.tsx +276 -0
  258. package/src/shadcn/ui/navigation-menu.tsx +168 -0
  259. package/src/shadcn/ui/pagination.tsx +127 -0
  260. package/src/shadcn/ui/popover.tsx +48 -0
  261. package/src/shadcn/ui/progress.tsx +31 -0
  262. package/src/shadcn/ui/radio-group.tsx +45 -0
  263. package/src/shadcn/ui/resizable.tsx +56 -0
  264. package/src/shadcn/ui/scroll-area.tsx +58 -0
  265. package/src/shadcn/ui/select.tsx +185 -0
  266. package/src/shadcn/ui/separator.tsx +28 -0
  267. package/src/shadcn/ui/sheet.tsx +139 -0
  268. package/src/shadcn/ui/sidebar.tsx +726 -0
  269. package/src/shadcn/ui/skeleton.tsx +13 -0
  270. package/src/shadcn/ui/slider.tsx +63 -0
  271. package/src/shadcn/ui/sonner.tsx +25 -0
  272. package/src/shadcn/ui/switch.tsx +31 -0
  273. package/src/shadcn/ui/table.tsx +116 -0
  274. package/src/shadcn/ui/tabs.tsx +66 -0
  275. package/src/shadcn/ui/textarea.tsx +18 -0
  276. package/src/shadcn/ui/toggle-group.tsx +73 -0
  277. package/src/shadcn/ui/toggle.tsx +47 -0
  278. package/src/shadcn/ui/tooltip.tsx +61 -0
  279. package/src/stories/kit/builder/DataTable.Basic.stories.tsx +61 -0
  280. package/src/stories/kit/builder/DataTable.Filters.stories.tsx +76 -0
  281. package/src/stories/kit/builder/DataTable.Pagination.stories.tsx +72 -0
  282. package/src/stories/kit/builder/DataTable.SelectionAndActions.stories.tsx +63 -0
  283. package/src/stories/kit/builder/DataTable.Sorting.stories.tsx +56 -0
  284. package/src/stories/kit/builder/Dialog.stories.tsx +84 -0
  285. package/src/stories/kit/builder/Form.Basic.stories.tsx +45 -0
  286. package/src/stories/kit/builder/Form.Complex.stories.tsx +223 -0
  287. package/src/stories/kit/builder/Form.Dynamic.stories.tsx +214 -0
  288. package/src/stories/kit/builder/Form.Simple.stories.tsx +78 -0
  289. package/src/stories/kit/builder/Page.stories.tsx +89 -0
  290. package/src/stories/kit/builder/Section.stories.tsx +179 -0
  291. package/src/stories/kit/components/Autocomplete.stories.tsx +98 -0
  292. package/src/stories/kit/components/Login.stories.tsx +161 -0
  293. package/src/stories/kit/layouts/admin/AdminLayout.Basic.stories.tsx +93 -0
  294. package/src/stories/kit/layouts/admin/AdminLayout.Collapsible.stories.tsx +58 -0
  295. package/src/stories/kit/layouts/admin/AdminLayout.Complex.stories.tsx +166 -0
  296. package/src/stories/kit/layouts/admin/AdminLayout.CustomSidebarHeaderComponent.stories.tsx +64 -0
  297. package/src/stories/kit/layouts/admin/AdminLayout.CustomSidebarTitleAndIcon.stories.tsx +55 -0
  298. package/src/stories/kit/layouts/admin/AdminLayout.HeaderSlots.stories.tsx +63 -0
  299. package/src/stories/shadcn/ui/Accordion.stories.tsx +94 -0
  300. package/src/stories/shadcn/ui/Alert.stories.tsx +36 -0
  301. package/src/stories/shadcn/ui/AlertDialog.stories.tsx +71 -0
  302. package/src/stories/shadcn/ui/AspectRatio.stories.tsx +58 -0
  303. package/src/stories/shadcn/ui/Avatar.stories.tsx +26 -0
  304. package/src/stories/shadcn/ui/Badge.stories.tsx +28 -0
  305. package/src/stories/shadcn/ui/Breadcrumb.stories.tsx +47 -0
  306. package/src/stories/shadcn/ui/Button.stories.tsx +49 -0
  307. package/src/stories/shadcn/ui/Calendar.stories.tsx +28 -0
  308. package/src/stories/shadcn/ui/Card.stories.tsx +30 -0
  309. package/src/stories/shadcn/ui/Carousel.stories.tsx +37 -0
  310. package/src/stories/shadcn/ui/Chart.stories.tsx +72 -0
  311. package/src/stories/shadcn/ui/Checkbox.stories.tsx +56 -0
  312. package/src/stories/shadcn/ui/Collapsible.stories.tsx +33 -0
  313. package/src/stories/shadcn/ui/Command.stories.tsx +53 -0
  314. package/src/stories/shadcn/ui/ContextMenu.stories.tsx +59 -0
  315. package/src/stories/shadcn/ui/Dialog.stories.tsx +33 -0
  316. package/src/stories/shadcn/ui/Drawer.stories.tsx +46 -0
  317. package/src/stories/shadcn/ui/DropdownMenu.stories.tsx +65 -0
  318. package/src/stories/shadcn/ui/Form.stories.tsx +90 -0
  319. package/src/stories/shadcn/ui/HoverCard.stories.tsx +37 -0
  320. package/src/stories/shadcn/ui/Input.stories.tsx +39 -0
  321. package/src/stories/shadcn/ui/InputOtp.stories.tsx +32 -0
  322. package/src/stories/shadcn/ui/Label.stories.tsx +29 -0
  323. package/src/stories/shadcn/ui/Menubar.stories.tsx +73 -0
  324. package/src/stories/shadcn/ui/NavigationMenu.stories.tsx +53 -0
  325. package/src/stories/shadcn/ui/Pagination.stories.tsx +51 -0
  326. package/src/stories/shadcn/ui/Popover.stories.tsx +47 -0
  327. package/src/stories/shadcn/ui/Progress.stories.tsx +30 -0
  328. package/src/stories/shadcn/ui/RadioGroup.stories.tsx +31 -0
  329. package/src/stories/shadcn/ui/Resizable.stories.tsx +43 -0
  330. package/src/stories/shadcn/ui/ScrollArea.stories.tsx +32 -0
  331. package/src/stories/shadcn/ui/Select.stories.tsx +55 -0
  332. package/src/stories/shadcn/ui/Separator.stories.tsx +35 -0
  333. package/src/stories/shadcn/ui/Sheet.stories.tsx +47 -0
  334. package/src/stories/shadcn/ui/Sidebar.stories.tsx +120 -0
  335. package/src/stories/shadcn/ui/Skeleton.stories.tsx +23 -0
  336. package/src/stories/shadcn/ui/Slider.stories.tsx +21 -0
  337. package/src/stories/shadcn/ui/Sonner.stories.tsx +39 -0
  338. package/src/stories/shadcn/ui/Switch.stories.tsx +28 -0
  339. package/src/stories/shadcn/ui/Table.stories.tsx +315 -0
  340. package/src/stories/shadcn/ui/Tabs.stories.tsx +24 -0
  341. package/src/stories/shadcn/ui/Textarea.stories.tsx +40 -0
  342. package/src/stories/shadcn/ui/Toggle.stories.tsx +36 -0
  343. package/src/stories/shadcn/ui/ToggleGroup.stories.tsx +28 -0
  344. package/src/stories/shadcn/ui/Tooltip.stories.tsx +25 -0
  345. package/storybook-static/assets/Accordion.stories-N1auke5L.js +52 -0
  346. package/storybook-static/assets/AdminLayout-Cxd0-A_L.js +53 -0
  347. package/storybook-static/assets/AdminLayout.Basic.stories-C_I6rWuq.js +4 -0
  348. package/storybook-static/assets/AdminLayout.Collapsible.stories-CsU3DwTo.js +4 -0
  349. package/storybook-static/assets/AdminLayout.Complex.stories-BbY1Ue6d.js +29 -0
  350. package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-LFVi-aIv.js +9 -0
  351. package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-BqP6UVc7.js +4 -0
  352. package/storybook-static/assets/AdminLayout.HeaderSlots.stories-BactzgkF.js +7 -0
  353. package/storybook-static/assets/Alert.stories-_FtuixdR.js +27 -0
  354. package/storybook-static/assets/AlertDialog.stories-6NY3BjwR.js +43 -0
  355. package/storybook-static/assets/AspectRatio.stories-DAT11y02.js +22 -0
  356. package/storybook-static/assets/Autocomplete-DngjqsCM.js +35 -0
  357. package/storybook-static/assets/Autocomplete.stories-BCaOrgTR.js +33 -0
  358. package/storybook-static/assets/Avatar.stories-DlzxSLJ-.js +12 -0
  359. package/storybook-static/assets/Badge.stories-DKHXsoV5.js +12 -0
  360. package/storybook-static/assets/Breadcrumb.stories-D8eUHpf7.js +25 -0
  361. package/storybook-static/assets/Button.stories-kvPdKxdw.js +26 -0
  362. package/storybook-static/assets/Calendar.stories-D-hUtQQI.js +3 -0
  363. package/storybook-static/assets/Card.stories-y8Z7NgrQ.js +15 -0
  364. package/storybook-static/assets/Carousel.stories-CFcHYKgp.js +15 -0
  365. package/storybook-static/assets/Chart.stories-BJwLNKfE.js +126 -0
  366. package/storybook-static/assets/Checkbox.stories-B22Fbwx1.js +12 -0
  367. package/storybook-static/assets/Collapsible.stories-BgcRp8Rk.js +18 -0
  368. package/storybook-static/assets/Combination-BT_gXe1L.js +41 -0
  369. package/storybook-static/assets/Command.stories-Dp4CtSQR.js +30 -0
  370. package/storybook-static/assets/ContextMenu.stories-DnVnIi-T.js +31 -0
  371. package/storybook-static/assets/DataTable.Basic.stories-DBF5VYq9.js +6 -0
  372. package/storybook-static/assets/DataTable.Filters.stories-CO0ipuGm.js +21 -0
  373. package/storybook-static/assets/DataTable.Pagination.stories-DNwCw64e.js +24 -0
  374. package/storybook-static/assets/DataTable.SelectionAndActions.stories-DGgdEbsf.js +26 -0
  375. package/storybook-static/assets/DataTable.Sorting.stories-CWpqloAB.js +6 -0
  376. package/storybook-static/assets/Dialog.stories-DQkYN8ht.js +18 -0
  377. package/storybook-static/assets/Dialog.stories-DXZINEgo.js +54 -0
  378. package/storybook-static/assets/Drawer.stories-DMH_vZgi.js +24 -0
  379. package/storybook-static/assets/DropdownMenu.stories-Dl8y-N7T.js +35 -0
  380. package/storybook-static/assets/Form.Basic.stories-CJugIYsx.js +45 -0
  381. package/storybook-static/assets/Form.Complex.stories-BPogRp6F.js +230 -0
  382. package/storybook-static/assets/Form.Dynamic.stories-Boway5AK.js +247 -0
  383. package/storybook-static/assets/Form.Simple.stories-_OXGXXpE.js +50 -0
  384. package/storybook-static/assets/Form.stories-BoHyR8ho.js +3 -0
  385. package/storybook-static/assets/FormBuilder-BGgeY8ik.js +5 -0
  386. package/storybook-static/assets/HoverCard.stories-1HM92M79.js +21 -0
  387. package/storybook-static/assets/Input.stories-sQ4EUlWt.js +16 -0
  388. package/storybook-static/assets/InputOtp.stories-Cpk_EmLx.js +42 -0
  389. package/storybook-static/assets/Label.stories-MjABHKSw.js +14 -0
  390. package/storybook-static/assets/Login.stories-BY4OYGk3.js +37 -0
  391. package/storybook-static/assets/Menubar.stories-B_60TWNE.js +44 -0
  392. package/storybook-static/assets/NavigationMenu.stories-DyuaBvvq.js +30 -0
  393. package/storybook-static/assets/Page.stories-DQKMxrPZ.js +91 -0
  394. package/storybook-static/assets/Pagination.stories-CBo7UrNd.js +29 -0
  395. package/storybook-static/assets/Popover.stories-D98_JrxN.js +15 -0
  396. package/storybook-static/assets/Progress.stories-Dejt5v3z.js +8 -0
  397. package/storybook-static/assets/RadioGroup.stories-Tz2LW6O6.js +16 -0
  398. package/storybook-static/assets/Resizable.stories-DhP2GKN7.js +25 -0
  399. package/storybook-static/assets/ScrollArea.stories-CF7-8wbM.js +12 -0
  400. package/storybook-static/assets/Section.stories-BpurjHIQ.js +196 -0
  401. package/storybook-static/assets/SectionBuilder-Bav4WrnT.js +1 -0
  402. package/storybook-static/assets/Select.stories-DJrU-mi0.js +17 -0
  403. package/storybook-static/assets/Separator.stories-BYH_o8QM.js +17 -0
  404. package/storybook-static/assets/Sheet.stories-BNJ7BIb-.js +24 -0
  405. package/storybook-static/assets/Sidebar.stories-BbjcJuOg.js +106 -0
  406. package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +9 -0
  407. package/storybook-static/assets/Slider.stories-CWOjKHKD.js +6 -0
  408. package/storybook-static/assets/Sonner.stories-CXSZs5yN.js +18 -0
  409. package/storybook-static/assets/Switch.stories-BUQjobWe.js +3 -0
  410. package/storybook-static/assets/Table.stories-DJcV7M9R.js +35 -0
  411. package/storybook-static/assets/Tabs.stories-ByeVrP18.js +10 -0
  412. package/storybook-static/assets/Textarea.stories-CKsDPHYc.js +17 -0
  413. package/storybook-static/assets/Toggle.stories-DutEzZ8k.js +3 -0
  414. package/storybook-static/assets/ToggleGroup.stories-C9fzJTh-.js +13 -0
  415. package/storybook-static/assets/Tooltip.stories-CngnJbP7.js +10 -0
  416. package/storybook-static/assets/accordion-bQe9Rep4.js +1 -0
  417. package/storybook-static/assets/alert-dialog-CypF_yaW.js +7 -0
  418. package/storybook-static/assets/avatar-CukM9hXu.js +1 -0
  419. package/storybook-static/assets/axe-W8QMjM0E.js +30 -0
  420. package/storybook-static/assets/button-BTWmFXop.js +1 -0
  421. package/storybook-static/assets/card-BJpPOzP8.js +1 -0
  422. package/storybook-static/assets/chart-column-Bzh5arua.js +6 -0
  423. package/storybook-static/assets/check-BgWXKGqi.js +6 -0
  424. package/storybook-static/assets/checkbox-QlugAqJY.js +1 -0
  425. package/storybook-static/assets/chevron-down-BqLjUn1_.js +6 -0
  426. package/storybook-static/assets/chevron-left-BR_0lKnE.js +6 -0
  427. package/storybook-static/assets/chevron-right-DpCIoMaJ.js +6 -0
  428. package/storybook-static/assets/circle-DVJTkDI7.js +6 -0
  429. package/storybook-static/assets/clean-slate-BR-XvZPt.css +1 -0
  430. package/storybook-static/assets/command-BERL33lL.js +6 -0
  431. package/storybook-static/assets/createLucideIcon-1ZwIAs_l.js +21 -0
  432. package/storybook-static/assets/default-M24vcGB8.css +1 -0
  433. package/storybook-static/assets/dependencies-ctrV69dx.js +1 -0
  434. package/storybook-static/assets/dialog-DM9YJ1JD.js +1 -0
  435. package/storybook-static/assets/dropdown-menu-TfFll7G9.js +1 -0
  436. package/storybook-static/assets/ellipsis-BSY8VuLI.js +6 -0
  437. package/storybook-static/assets/grip-vertical-Buja1rv9.js +6 -0
  438. package/storybook-static/assets/iframe-C9bogcIc.css +1 -0
  439. package/storybook-static/assets/iframe-G-6sM9Mt.js +1555 -0
  440. package/storybook-static/assets/index-1v1lhNFD.js +1 -0
  441. package/storybook-static/assets/index-7yNAGow7.js +1 -0
  442. package/storybook-static/assets/index-B-fXBfyD.js +1 -0
  443. package/storybook-static/assets/index-BDwnENHR.js +1 -0
  444. package/storybook-static/assets/index-BdQq_4o_.js +1 -0
  445. package/storybook-static/assets/index-Bq6UNRVc.js +1 -0
  446. package/storybook-static/assets/index-CAwQR9Pv.js +1 -0
  447. package/storybook-static/assets/index-CGrAONsN.js +1 -0
  448. package/storybook-static/assets/index-CLmN5G1a.js +1 -0
  449. package/storybook-static/assets/index-CMmbDm5O.js +1 -0
  450. package/storybook-static/assets/index-CZaD3imo.js +9 -0
  451. package/storybook-static/assets/index-CayhpKmv.js +1 -0
  452. package/storybook-static/assets/index-ClNNG_ys.js +1 -0
  453. package/storybook-static/assets/index-CzJf-yyP.js +5 -0
  454. package/storybook-static/assets/index-DNAxNqEO.js +1 -0
  455. package/storybook-static/assets/index-DW48STyt.js +1 -0
  456. package/storybook-static/assets/index-DhoByIgc.js +1 -0
  457. package/storybook-static/assets/index-DqWzLCH-.js +1 -0
  458. package/storybook-static/assets/index-DvM9azdj.js +1 -0
  459. package/storybook-static/assets/index-DySHPxMy.js +1 -0
  460. package/storybook-static/assets/index-HghBIZeg.js +1 -0
  461. package/storybook-static/assets/index-I343IfOC.js +1 -0
  462. package/storybook-static/assets/index-SxI7_jxe.js +9 -0
  463. package/storybook-static/assets/index-_crRFOM5.js +1 -0
  464. package/storybook-static/assets/index-d_S6mtzU.js +1 -0
  465. package/storybook-static/assets/index-ev1RjzGv.js +1 -0
  466. package/storybook-static/assets/index-lH-AZpAn.js +1 -0
  467. package/storybook-static/assets/input-11YRd9gD.js +1 -0
  468. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
  469. package/storybook-static/assets/label-C5vJTTwH.js +1 -0
  470. package/storybook-static/assets/lodash-Q9aGJGMb.js +73 -0
  471. package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
  472. package/storybook-static/assets/minimal-modern-BmvR5wyr.css +1 -0
  473. package/storybook-static/assets/popover-DW1K4QCO.js +1 -0
  474. package/storybook-static/assets/preload-helper-Dp1pzeXC.js +1 -0
  475. package/storybook-static/assets/radio-group-iPL-8jvw.js +1 -0
  476. package/storybook-static/assets/react-18-CK1-M7n3.js +25 -0
  477. package/storybook-static/assets/react-icons.esm-n2MUhK0n.js +1 -0
  478. package/storybook-static/assets/refresh-cw-FYEbhX1i.js +6 -0
  479. package/storybook-static/assets/schemas-S_Tg7JYp.js +18 -0
  480. package/storybook-static/assets/section-factories-CC6eFfbk.js +1 -0
  481. package/storybook-static/assets/select-DbLzULCJ.js +6 -0
  482. package/storybook-static/assets/separator-DoUX1TNx.js +1 -0
  483. package/storybook-static/assets/settings-2-CpOcGlDm.js +6 -0
  484. package/storybook-static/assets/sheet-n5VQ25jh.js +1 -0
  485. package/storybook-static/assets/shopping-cart-9kOJ1UDd.js +11 -0
  486. package/storybook-static/assets/sidebar-CvUiZOJe.js +6 -0
  487. package/storybook-static/assets/skeleton-CjDnQs43.js +1 -0
  488. package/storybook-static/assets/spotify-DpbeJq1r.css +1 -0
  489. package/storybook-static/assets/table-CP3vMqFn.js +1 -0
  490. package/storybook-static/assets/textarea-Dw2vruMl.js +1 -0
  491. package/storybook-static/assets/toggle-B-YKWMF8.js +16 -0
  492. package/storybook-static/assets/tooltip-CNONbPiI.js +1 -0
  493. package/storybook-static/assets/trash-2-Bt5LMclM.js +11 -0
  494. package/storybook-static/assets/utils-D-KgF5mV.js +1 -0
  495. package/storybook-static/assets/x-DG9mLFAg.js +6 -0
  496. package/storybook-static/favicon-wrapper.svg +46 -0
  497. package/storybook-static/favicon.svg +1 -0
  498. package/storybook-static/iframe.html +687 -0
  499. package/storybook-static/index.d.ts +1 -0
  500. package/storybook-static/index.d.ts.map +1 -0
  501. package/storybook-static/index.html +166 -0
  502. package/storybook-static/index.json +1 -0
  503. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +34 -0
  504. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +1 -0
  505. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +8 -0
  506. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +1 -0
  507. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +6 -0
  508. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +1 -0
  509. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +5 -0
  510. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +1 -0
  511. package/storybook-static/kit/builder/data-table/index.d.ts +6 -0
  512. package/storybook-static/kit/builder/data-table/index.d.ts.map +1 -0
  513. package/storybook-static/kit/builder/data-table/types.d.ts +27 -0
  514. package/storybook-static/kit/builder/data-table/types.d.ts.map +1 -0
  515. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +2 -0
  516. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +1 -0
  517. package/storybook-static/kit/builder/dialog/index.d.ts +3 -0
  518. package/storybook-static/kit/builder/dialog/index.d.ts.map +1 -0
  519. package/storybook-static/kit/builder/dialog/provider.d.ts +26 -0
  520. package/storybook-static/kit/builder/dialog/provider.d.ts.map +1 -0
  521. package/storybook-static/kit/builder/form/components/FormActions.d.ts +20 -0
  522. package/storybook-static/kit/builder/form/components/FormActions.d.ts.map +1 -0
  523. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +97 -0
  524. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +1 -0
  525. package/storybook-static/kit/builder/form/components/FormField.d.ts +12 -0
  526. package/storybook-static/kit/builder/form/components/FormField.d.ts.map +1 -0
  527. package/storybook-static/kit/builder/form/components/FormSection.d.ts +15 -0
  528. package/storybook-static/kit/builder/form/components/FormSection.d.ts.map +1 -0
  529. package/storybook-static/kit/builder/form/components/index.d.ts +5 -0
  530. package/storybook-static/kit/builder/form/components/index.d.ts.map +1 -0
  531. package/storybook-static/kit/builder/form/index.d.ts +3 -0
  532. package/storybook-static/kit/builder/form/index.d.ts.map +1 -0
  533. package/storybook-static/kit/builder/form/utils/common-forms.d.ts +7 -0
  534. package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +1 -0
  535. package/storybook-static/kit/builder/form/utils/dependencies.d.ts +41 -0
  536. package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +1 -0
  537. package/storybook-static/kit/builder/form/utils/field-factories.d.ts +22 -0
  538. package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +1 -0
  539. package/storybook-static/kit/builder/form/utils/index.d.ts +15 -0
  540. package/storybook-static/kit/builder/form/utils/index.d.ts.map +1 -0
  541. package/storybook-static/kit/builder/form/utils/section-factories.d.ts +7 -0
  542. package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +1 -0
  543. package/storybook-static/kit/builder/form/utils/transformers.d.ts +6 -0
  544. package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +1 -0
  545. package/storybook-static/kit/builder/form/utils/validations.d.ts +13 -0
  546. package/storybook-static/kit/builder/form/utils/validations.d.ts.map +1 -0
  547. package/storybook-static/kit/builder/form/utils/validators.d.ts +8 -0
  548. package/storybook-static/kit/builder/form/utils/validators.d.ts.map +1 -0
  549. package/storybook-static/kit/builder/page/Page.d.ts +48 -0
  550. package/storybook-static/kit/builder/page/Page.d.ts.map +1 -0
  551. package/storybook-static/kit/builder/page/index.d.ts +2 -0
  552. package/storybook-static/kit/builder/page/index.d.ts.map +1 -0
  553. package/storybook-static/kit/builder/section/SectionBuilder.d.ts +3 -0
  554. package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +1 -0
  555. package/storybook-static/kit/builder/section/index.d.ts +3 -0
  556. package/storybook-static/kit/builder/section/index.d.ts.map +1 -0
  557. package/storybook-static/kit/builder/section/types.d.ts +59 -0
  558. package/storybook-static/kit/builder/section/types.d.ts.map +1 -0
  559. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +21 -0
  560. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +1 -0
  561. package/storybook-static/kit/components/autocomplete/index.d.ts +3 -0
  562. package/storybook-static/kit/components/autocomplete/index.d.ts.map +1 -0
  563. package/storybook-static/kit/components/autocomplete/types.d.ts +19 -0
  564. package/storybook-static/kit/components/autocomplete/types.d.ts.map +1 -0
  565. package/storybook-static/kit/components/login/Login.d.ts +29 -0
  566. package/storybook-static/kit/components/login/Login.d.ts.map +1 -0
  567. package/storybook-static/kit/components/login/index.d.ts +2 -0
  568. package/storybook-static/kit/components/login/index.d.ts.map +1 -0
  569. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +17 -0
  570. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +1 -0
  571. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +5 -0
  572. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +1 -0
  573. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +12 -0
  574. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +1 -0
  575. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +7 -0
  576. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +1 -0
  577. package/storybook-static/kit/layouts/admin/types/index.d.ts +27 -0
  578. package/storybook-static/kit/layouts/admin/types/index.d.ts.map +1 -0
  579. package/storybook-static/kit/providers/ThemeProvider.d.ts +14 -0
  580. package/storybook-static/kit/providers/ThemeProvider.d.ts.map +1 -0
  581. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  582. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  583. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  584. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  585. package/storybook-static/project.json +1 -0
  586. package/storybook-static/sb-addons/a11y-5/manager-bundle.js +5 -0
  587. package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +3 -0
  588. package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +3 -0
  589. package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +3 -0
  590. package/storybook-static/sb-addons/interactions-4/manager-bundle.js +57 -0
  591. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
  592. package/storybook-static/sb-addons/storysource-6/manager-bundle.js +3 -0
  593. package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
  594. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  595. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  596. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  597. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  598. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  599. package/storybook-static/sb-manager/globals-module-info.js +797 -0
  600. package/storybook-static/sb-manager/globals-runtime.js +69653 -0
  601. package/storybook-static/sb-manager/globals.js +34 -0
  602. package/storybook-static/sb-manager/runtime.js +13181 -0
  603. package/storybook-static/shadcn/hooks/use-mobile.d.ts +2 -0
  604. package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +1 -0
  605. package/storybook-static/shadcn/lib/utils.d.ts +3 -0
  606. package/storybook-static/shadcn/lib/utils.d.ts.map +1 -0
  607. package/storybook-static/shadcn/ui/accordion.d.ts +8 -0
  608. package/storybook-static/shadcn/ui/accordion.d.ts.map +1 -0
  609. package/storybook-static/shadcn/ui/alert-dialog.d.ts +15 -0
  610. package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +1 -0
  611. package/storybook-static/shadcn/ui/alert.d.ts +10 -0
  612. package/storybook-static/shadcn/ui/alert.d.ts.map +1 -0
  613. package/storybook-static/shadcn/ui/aspect-ratio.d.ts +4 -0
  614. package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +1 -0
  615. package/storybook-static/shadcn/ui/avatar.d.ts +7 -0
  616. package/storybook-static/shadcn/ui/avatar.d.ts.map +1 -0
  617. package/storybook-static/shadcn/ui/badge.d.ts +10 -0
  618. package/storybook-static/shadcn/ui/badge.d.ts.map +1 -0
  619. package/storybook-static/shadcn/ui/breadcrumb.d.ts +12 -0
  620. package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +1 -0
  621. package/storybook-static/shadcn/ui/button.d.ts +11 -0
  622. package/storybook-static/shadcn/ui/button.d.ts.map +1 -0
  623. package/storybook-static/shadcn/ui/calendar.d.ts +9 -0
  624. package/storybook-static/shadcn/ui/calendar.d.ts.map +1 -0
  625. package/storybook-static/shadcn/ui/card.d.ts +10 -0
  626. package/storybook-static/shadcn/ui/card.d.ts.map +1 -0
  627. package/storybook-static/shadcn/ui/carousel.d.ts +20 -0
  628. package/storybook-static/shadcn/ui/carousel.d.ts.map +1 -0
  629. package/storybook-static/shadcn/ui/chart.d.ts +41 -0
  630. package/storybook-static/shadcn/ui/chart.d.ts.map +1 -0
  631. package/storybook-static/shadcn/ui/checkbox.d.ts +5 -0
  632. package/storybook-static/shadcn/ui/checkbox.d.ts.map +1 -0
  633. package/storybook-static/shadcn/ui/collapsible.d.ts +6 -0
  634. package/storybook-static/shadcn/ui/collapsible.d.ts.map +1 -0
  635. package/storybook-static/shadcn/ui/command.d.ts +19 -0
  636. package/storybook-static/shadcn/ui/command.d.ts.map +1 -0
  637. package/storybook-static/shadcn/ui/context-menu.d.ts +26 -0
  638. package/storybook-static/shadcn/ui/context-menu.d.ts.map +1 -0
  639. package/storybook-static/shadcn/ui/dialog.d.ts +16 -0
  640. package/storybook-static/shadcn/ui/dialog.d.ts.map +1 -0
  641. package/storybook-static/shadcn/ui/drawer.d.ts +14 -0
  642. package/storybook-static/shadcn/ui/drawer.d.ts.map +1 -0
  643. package/storybook-static/shadcn/ui/dropdown-menu.d.ts +26 -0
  644. package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +1 -0
  645. package/storybook-static/shadcn/ui/form.d.ts +25 -0
  646. package/storybook-static/shadcn/ui/form.d.ts.map +1 -0
  647. package/storybook-static/shadcn/ui/hover-card.d.ts +7 -0
  648. package/storybook-static/shadcn/ui/hover-card.d.ts.map +1 -0
  649. package/storybook-static/shadcn/ui/input-otp.d.ts +12 -0
  650. package/storybook-static/shadcn/ui/input-otp.d.ts.map +1 -0
  651. package/storybook-static/shadcn/ui/input.d.ts +4 -0
  652. package/storybook-static/shadcn/ui/input.d.ts.map +1 -0
  653. package/storybook-static/shadcn/ui/label.d.ts +5 -0
  654. package/storybook-static/shadcn/ui/label.d.ts.map +1 -0
  655. package/storybook-static/shadcn/ui/menubar.d.ts +27 -0
  656. package/storybook-static/shadcn/ui/menubar.d.ts.map +1 -0
  657. package/storybook-static/shadcn/ui/navigation-menu.d.ts +15 -0
  658. package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +1 -0
  659. package/storybook-static/shadcn/ui/pagination.d.ts +14 -0
  660. package/storybook-static/shadcn/ui/pagination.d.ts.map +1 -0
  661. package/storybook-static/shadcn/ui/popover.d.ts +8 -0
  662. package/storybook-static/shadcn/ui/popover.d.ts.map +1 -0
  663. package/storybook-static/shadcn/ui/progress.d.ts +5 -0
  664. package/storybook-static/shadcn/ui/progress.d.ts.map +1 -0
  665. package/storybook-static/shadcn/ui/radio-group.d.ts +6 -0
  666. package/storybook-static/shadcn/ui/radio-group.d.ts.map +1 -0
  667. package/storybook-static/shadcn/ui/resizable.d.ts +9 -0
  668. package/storybook-static/shadcn/ui/resizable.d.ts.map +1 -0
  669. package/storybook-static/shadcn/ui/scroll-area.d.ts +6 -0
  670. package/storybook-static/shadcn/ui/scroll-area.d.ts.map +1 -0
  671. package/storybook-static/shadcn/ui/select.d.ts +16 -0
  672. package/storybook-static/shadcn/ui/select.d.ts.map +1 -0
  673. package/storybook-static/shadcn/ui/separator.d.ts +5 -0
  674. package/storybook-static/shadcn/ui/separator.d.ts.map +1 -0
  675. package/storybook-static/shadcn/ui/sheet.d.ts +14 -0
  676. package/storybook-static/shadcn/ui/sheet.d.ts.map +1 -0
  677. package/storybook-static/shadcn/ui/sidebar.d.ts +70 -0
  678. package/storybook-static/shadcn/ui/sidebar.d.ts.map +1 -0
  679. package/storybook-static/shadcn/ui/skeleton.d.ts +3 -0
  680. package/storybook-static/shadcn/ui/skeleton.d.ts.map +1 -0
  681. package/storybook-static/shadcn/ui/slider.d.ts +5 -0
  682. package/storybook-static/shadcn/ui/slider.d.ts.map +1 -0
  683. package/storybook-static/shadcn/ui/sonner.d.ts +4 -0
  684. package/storybook-static/shadcn/ui/sonner.d.ts.map +1 -0
  685. package/storybook-static/shadcn/ui/switch.d.ts +5 -0
  686. package/storybook-static/shadcn/ui/switch.d.ts.map +1 -0
  687. package/storybook-static/shadcn/ui/table.d.ts +11 -0
  688. package/storybook-static/shadcn/ui/table.d.ts.map +1 -0
  689. package/storybook-static/shadcn/ui/tabs.d.ts +8 -0
  690. package/storybook-static/shadcn/ui/tabs.d.ts.map +1 -0
  691. package/storybook-static/shadcn/ui/textarea.d.ts +4 -0
  692. package/storybook-static/shadcn/ui/textarea.d.ts.map +1 -0
  693. package/storybook-static/shadcn/ui/toggle-group.d.ts +8 -0
  694. package/storybook-static/shadcn/ui/toggle-group.d.ts.map +1 -0
  695. package/storybook-static/shadcn/ui/toggle.d.ts +10 -0
  696. package/storybook-static/shadcn/ui/toggle.d.ts.map +1 -0
  697. package/storybook-static/shadcn/ui/tooltip.d.ts +8 -0
  698. package/storybook-static/shadcn/ui/tooltip.d.ts.map +1 -0
  699. package/storybook-static/vite-inject-mocker-entry.js +18 -0
  700. package/tsconfig.json +24 -0
  701. package/tsconfig.lib.json +52 -0
  702. package/tsconfig.spec.json +38 -0
  703. package/vite.config.ts +63 -0
@@ -0,0 +1,53 @@
1
+ import{c as he}from"./createLucideIcon-1ZwIAs_l.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-G-6sM9Mt.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-CvUiZOJe.js";import{S as Ao}from"./separator-DoUX1TNx.js";import{r as $o}from"./index-_crRFOM5.js";import{r as Fo}from"./index-SxI7_jxe.js";import{D as Oo,a as Do,b as Bo,c as Vo,d as zo,f as He}from"./dropdown-menu-TfFll7G9.js";import{B as Wo}from"./button-BTWmFXop.js";import{C as Uo}from"./chevron-down-BqLjUn1_.js";import{C as Ho}from"./chevron-right-DpCIoMaJ.js";import{C as Ko}from"./circle-DVJTkDI7.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};
@@ -0,0 +1,4 @@
1
+ import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as x}from"./iframe-G-6sM9Mt.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-Cxd0-A_L.js";import{S as N,a as S}from"./shopping-cart-9kOJ1UDd.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-1ZwIAs_l.js";import"./sidebar-CvUiZOJe.js";import"./index-1v1lhNFD.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BTWmFXop.js";import"./input-11YRd9gD.js";import"./separator-DoUX1TNx.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./sheet-n5VQ25jh.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DvM9azdj.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./x-DG9mLFAg.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CNONbPiI.js";import"./index-CayhpKmv.js";import"./index-ev1RjzGv.js";import"./index-DNAxNqEO.js";import"./index-SxI7_jxe.js";import"./dropdown-menu-TfFll7G9.js";import"./index-CLmN5G1a.js";import"./index-BDwnENHR.js";import"./index-ClNNG_ys.js";import"./index-CMmbDm5O.js";import"./check-BgWXKGqi.js";import"./circle-DVJTkDI7.js";import"./chevron-right-DpCIoMaJ.js";import"./chevron-down-BqLjUn1_.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};
@@ -0,0 +1,4 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as d}from"./iframe-G-6sM9Mt.js";import{A as a,c,a as u,b,R as g,T as x,u as R,H as h}from"./AdminLayout-Cxd0-A_L.js";import{S as f,a as C}from"./shopping-cart-9kOJ1UDd.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-1ZwIAs_l.js";import"./sidebar-CvUiZOJe.js";import"./index-1v1lhNFD.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BTWmFXop.js";import"./input-11YRd9gD.js";import"./separator-DoUX1TNx.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./sheet-n5VQ25jh.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DvM9azdj.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./x-DG9mLFAg.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CNONbPiI.js";import"./index-CayhpKmv.js";import"./index-ev1RjzGv.js";import"./index-DNAxNqEO.js";import"./index-SxI7_jxe.js";import"./dropdown-menu-TfFll7G9.js";import"./index-CLmN5G1a.js";import"./index-BDwnENHR.js";import"./index-ClNNG_ys.js";import"./index-CMmbDm5O.js";import"./check-BgWXKGqi.js";import"./circle-DVJTkDI7.js";import"./chevron-right-DpCIoMaJ.js";import"./chevron-down-BqLjUn1_.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};
@@ -0,0 +1,29 @@
1
+ import{j as t}from"./jsx-runtime-D_zvdyIk.js";import{r as y}from"./iframe-G-6sM9Mt.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-Cxd0-A_L.js";import{C as T}from"./chart-column-Bzh5arua.js";import{c as s}from"./createLucideIcon-1ZwIAs_l.js";import{S as j,a as S}from"./shopping-cart-9kOJ1UDd.js";import"./preload-helper-Dp1pzeXC.js";import"./sidebar-CvUiZOJe.js";import"./index-1v1lhNFD.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BTWmFXop.js";import"./input-11YRd9gD.js";import"./separator-DoUX1TNx.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./sheet-n5VQ25jh.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DvM9azdj.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./x-DG9mLFAg.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CNONbPiI.js";import"./index-CayhpKmv.js";import"./index-ev1RjzGv.js";import"./index-DNAxNqEO.js";import"./index-SxI7_jxe.js";import"./dropdown-menu-TfFll7G9.js";import"./index-CLmN5G1a.js";import"./index-BDwnENHR.js";import"./index-ClNNG_ys.js";import"./index-CMmbDm5O.js";import"./check-BgWXKGqi.js";import"./circle-DVJTkDI7.js";import"./chevron-right-DpCIoMaJ.js";import"./chevron-down-BqLjUn1_.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};
@@ -0,0 +1,9 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-G-6sM9Mt.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-Cxd0-A_L.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-1ZwIAs_l.js";import"./sidebar-CvUiZOJe.js";import"./index-1v1lhNFD.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BTWmFXop.js";import"./input-11YRd9gD.js";import"./separator-DoUX1TNx.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./sheet-n5VQ25jh.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DvM9azdj.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./x-DG9mLFAg.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CNONbPiI.js";import"./index-CayhpKmv.js";import"./index-ev1RjzGv.js";import"./index-DNAxNqEO.js";import"./index-SxI7_jxe.js";import"./dropdown-menu-TfFll7G9.js";import"./index-CLmN5G1a.js";import"./index-BDwnENHR.js";import"./index-ClNNG_ys.js";import"./index-CMmbDm5O.js";import"./check-BgWXKGqi.js";import"./circle-DVJTkDI7.js";import"./chevron-right-DpCIoMaJ.js";import"./chevron-down-BqLjUn1_.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};
@@ -0,0 +1,4 @@
1
+ import{j as r}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-G-6sM9Mt.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-Cxd0-A_L.js";import{C as f}from"./chart-column-Bzh5arua.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-1ZwIAs_l.js";import"./sidebar-CvUiZOJe.js";import"./index-1v1lhNFD.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BTWmFXop.js";import"./input-11YRd9gD.js";import"./separator-DoUX1TNx.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./sheet-n5VQ25jh.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DvM9azdj.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./x-DG9mLFAg.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CNONbPiI.js";import"./index-CayhpKmv.js";import"./index-ev1RjzGv.js";import"./index-DNAxNqEO.js";import"./index-SxI7_jxe.js";import"./dropdown-menu-TfFll7G9.js";import"./index-CLmN5G1a.js";import"./index-BDwnENHR.js";import"./index-ClNNG_ys.js";import"./index-CMmbDm5O.js";import"./check-BgWXKGqi.js";import"./circle-DVJTkDI7.js";import"./chevron-right-DpCIoMaJ.js";import"./chevron-down-BqLjUn1_.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};
@@ -0,0 +1,7 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as c}from"./iframe-G-6sM9Mt.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-Cxd0-A_L.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-1ZwIAs_l.js";import"./sidebar-CvUiZOJe.js";import"./index-1v1lhNFD.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BTWmFXop.js";import"./input-11YRd9gD.js";import"./separator-DoUX1TNx.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./sheet-n5VQ25jh.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DvM9azdj.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./x-DG9mLFAg.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CNONbPiI.js";import"./index-CayhpKmv.js";import"./index-ev1RjzGv.js";import"./index-DNAxNqEO.js";import"./index-SxI7_jxe.js";import"./dropdown-menu-TfFll7G9.js";import"./index-CLmN5G1a.js";import"./index-BDwnENHR.js";import"./index-ClNNG_ys.js";import"./index-CMmbDm5O.js";import"./check-BgWXKGqi.js";import"./circle-DVJTkDI7.js";import"./chevron-right-DpCIoMaJ.js";import"./chevron-down-BqLjUn1_.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};
@@ -0,0 +1,27 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{c as v}from"./index-CGrAONsN.js";import{c as i}from"./utils-D-KgF5mV.js";import{c as h}from"./createLucideIcon-1ZwIAs_l.js";import"./iframe-G-6sM9Mt.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};
@@ -0,0 +1,43 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{A as l,h as d,a as u,b as D,c as A,d as m,e as p,f as h,g as x}from"./alert-dialog-CypF_yaW.js";import{B as j,b as v}from"./button-BTWmFXop.js";import"./iframe-G-6sM9Mt.js";import"./preload-helper-Dp1pzeXC.js";import"./index-DvM9azdj.js";import"./index-1v1lhNFD.js";import"./index-CzJf-yyP.js";import"./index-DW48STyt.js";import"./index-DhoByIgc.js";import"./index-I343IfOC.js";import"./index-CAwQR9Pv.js";import"./index-7yNAGow7.js";import"./index-DqWzLCH-.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./index-lH-AZpAn.js";import"./Combination-BT_gXe1L.js";import"./index-d_S6mtzU.js";import"./index-Bq6UNRVc.js";import"./utils-D-KgF5mV.js";import"./index-CGrAONsN.js";const J={title:"Shadcn/UI/AlertDialog",component:l},r={render:o=>e.jsxs(l,{...o,children:[e.jsx(d,{asChild:!0,children:e.jsx(j,{variant:"outline",children:"Show Dialog"})}),e.jsxs(u,{children:[e.jsxs(D,{children:[e.jsx(A,{children:"Are you absolutely sure?"}),e.jsx(m,{children:"This action cannot be undone. This will permanently delete your account and remove your data from our servers."})]}),e.jsxs(p,{children:[e.jsx(h,{children:"Cancel"}),e.jsx(x,{children:"Continue"})]})]})]})},t={render:o=>e.jsxs(l,{...o,children:[e.jsx(d,{asChild:!0,children:e.jsx(j,{variant:"destructive",children:"Delete account"})}),e.jsxs(u,{children:[e.jsxs(D,{children:[e.jsx(A,{children:"Are you absolutely sure?"}),e.jsx(m,{children:"This action cannot be undone. This will permanently delete your account and remove your data from our servers."})]}),e.jsxs(p,{children:[e.jsx(h,{children:"Cancel"}),e.jsx(x,{className:v({variant:"destructive"}),children:"Delete"})]})]})]})};var a,i,n;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{
2
+ render: args => <AlertDialog {...args}>
3
+ <AlertDialogTrigger asChild>
4
+ <Button variant="outline">Show Dialog</Button>
5
+ </AlertDialogTrigger>
6
+ <AlertDialogContent>
7
+ <AlertDialogHeader>
8
+ <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
9
+ <AlertDialogDescription>
10
+ This action cannot be undone. This will permanently delete your
11
+ account and remove your data from our servers.
12
+ </AlertDialogDescription>
13
+ </AlertDialogHeader>
14
+ <AlertDialogFooter>
15
+ <AlertDialogCancel>Cancel</AlertDialogCancel>
16
+ <AlertDialogAction>Continue</AlertDialogAction>
17
+ </AlertDialogFooter>
18
+ </AlertDialogContent>
19
+ </AlertDialog>
20
+ }`,...(n=(i=r.parameters)==null?void 0:i.docs)==null?void 0:n.source}}};var s,c,g;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
21
+ render: args => <AlertDialog {...args}>
22
+ <AlertDialogTrigger asChild>
23
+ <Button variant="destructive">Delete account</Button>
24
+ </AlertDialogTrigger>
25
+ <AlertDialogContent>
26
+ <AlertDialogHeader>
27
+ <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
28
+ <AlertDialogDescription>
29
+ This action cannot be undone. This will permanently delete your
30
+ account and remove your data from our servers.
31
+ </AlertDialogDescription>
32
+ </AlertDialogHeader>
33
+ <AlertDialogFooter>
34
+ <AlertDialogCancel>Cancel</AlertDialogCancel>
35
+ <AlertDialogAction className={buttonVariants({
36
+ variant: 'destructive'
37
+ })}>
38
+ Delete
39
+ </AlertDialogAction>
40
+ </AlertDialogFooter>
41
+ </AlertDialogContent>
42
+ </AlertDialog>
43
+ }`,...(g=(c=t.parameters)==null?void 0:c.docs)==null?void 0:g.source}}};const K=["Default","Destructive"];export{r as Default,t as Destructive,K as __namedExportsOrder,J as default};
@@ -0,0 +1,22 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as v}from"./iframe-G-6sM9Mt.js";import{P as j}from"./index-DqWzLCH-.js";import"./preload-helper-Dp1pzeXC.js";import"./index-_crRFOM5.js";import"./index-CZaD3imo.js";import"./index-1v1lhNFD.js";var y="AspectRatio",h=v.forwardRef((a,w)=>{const{ratio:g=1/1,style:x,...b}=a;return e.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/g}%`},"data-radix-aspect-ratio-wrapper":"",children:e.jsx(j.div,{...b,ref:w,style:{...x,position:"absolute",top:0,right:0,bottom:0,left:0}})})});h.displayName=y;var N=h;function r({...a}){return e.jsx(N,{"data-slot":"aspect-ratio",...a})}r.__docgenInfo={description:"",methods:[],displayName:"AspectRatio"};const Y={title:"Shadcn/UI/AspectRatio",component:r},t={name:"Image (16:9)",render:a=>e.jsx("div",{className:"w-[450px]",children:e.jsx(r,{ratio:16/9,...a,children:e.jsx("img",{src:"https://images.unsplash.com/photo-1522771930-78848d9293e8?q=80&w=1600&auto=format&fit=crop",alt:"Landscape",className:"h-full w-full rounded-md object-cover"})})})},o={name:"Image (1:1 square)",render:a=>e.jsx("div",{className:"w-[300px]",children:e.jsx(r,{ratio:1/1,...a,children:e.jsx("img",{src:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=1200&auto=format&fit=crop",alt:"Square",className:"h-full w-full rounded-md object-cover"})})})},s={name:"YouTube Embed (16:9)",render:a=>e.jsx("div",{className:"w-[450px]",children:e.jsx(r,{ratio:16/9,...a,children:e.jsx("iframe",{className:"h-full w-full rounded-md",src:"https://www.youtube.com/embed/yMqDgbZmBdk",title:"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})};var c,i,m;t.parameters={...t.parameters,docs:{...(c=t.parameters)==null?void 0:c.docs,source:{originalSource:`{
2
+ name: 'Image (16:9)',
3
+ render: args => <div className="w-[450px]">
4
+ <AspectRatio ratio={16 / 9} {...args}>
5
+ <img src="https://images.unsplash.com/photo-1522771930-78848d9293e8?q=80&w=1600&auto=format&fit=crop" alt="Landscape" className="h-full w-full rounded-md object-cover" />
6
+ </AspectRatio>
7
+ </div>
8
+ }`,...(m=(i=t.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};var p,d,l;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`{
9
+ name: 'Image (1:1 square)',
10
+ render: args => <div className="w-[300px]">
11
+ <AspectRatio ratio={1 / 1} {...args}>
12
+ <img src="https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=1200&auto=format&fit=crop" alt="Square" className="h-full w-full rounded-md object-cover" />
13
+ </AspectRatio>
14
+ </div>
15
+ }`,...(l=(d=o.parameters)==null?void 0:d.docs)==null?void 0:l.source}}};var u,n,f;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
16
+ name: 'YouTube Embed (16:9)',
17
+ render: args => <div className="w-[450px]">
18
+ <AspectRatio ratio={16 / 9} {...args}>
19
+ <iframe className="h-full w-full rounded-md" src="https://www.youtube.com/embed/yMqDgbZmBdk" title="YouTube video" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />
20
+ </AspectRatio>
21
+ </div>
22
+ }`,...(f=(n=s.parameters)==null?void 0:n.docs)==null?void 0:f.source}}};const _=["Image16x9","Square1x1","YouTube16x9"];export{t as Image16x9,o as Square1x1,s as YouTube16x9,_ as __namedExportsOrder,Y as default};
@@ -0,0 +1,35 @@
1
+ import{j as r}from"./jsx-runtime-D_zvdyIk.js";import{r as e}from"./iframe-G-6sM9Mt.js";import{c as H}from"./utils-D-KgF5mV.js";import{P as U,a as Y,b as Z}from"./popover-DW1K4QCO.js";import{C as z,a as J,b as K,c as Q,d as X,e as ee,f as ne}from"./command-BERL33lL.js";import{B as re}from"./button-BTWmFXop.js";import{c as W}from"./createLucideIcon-1ZwIAs_l.js";import{C as te}from"./check-BgWXKGqi.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 ae=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],ue=W("chevrons-up-down",ae);/**
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 se=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],V=W("loader-circle",se);function le(u,a,o,p){var f=this,s=e.useRef(null),m=e.useRef(0),b=e.useRef(0),i=e.useRef(null),y=e.useRef([]),h=e.useRef(),j=e.useRef(),F=e.useRef(u),g=e.useRef(!0);F.current=u;var S=typeof window<"u",q=!a&&a!==0&&S;if(typeof u!="function")throw new TypeError("Expected a function");a=+a||0;var O=!!(o=o||{}).leading,w=!("trailing"in o)||!!o.trailing,d="maxWait"in o,P="debounceOnServer"in o&&!!o.debounceOnServer,E=d?Math.max(+o.maxWait||0,a):null;e.useEffect(function(){return g.current=!0,function(){g.current=!1}},[]);var k=e.useMemo(function(){var C=function(t){var l=y.current,A=h.current;return y.current=h.current=null,m.current=t,b.current=b.current||t,j.current=F.current.apply(A,l)},v=function(t,l){q&&cancelAnimationFrame(i.current),i.current=q?requestAnimationFrame(t):setTimeout(t,l)},T=function(t){if(!g.current)return!1;var l=t-s.current;return!s.current||l>=a||l<0||d&&t-m.current>=E},R=function(t){return i.current=null,w&&y.current?C(t):(y.current=h.current=null,j.current)},N=function t(){var l=Date.now();if(O&&b.current===m.current&&L(),T(l))return R(l);if(g.current){var A=a-(l-s.current),M=d?Math.min(A,E-(l-m.current)):A;v(t,M)}},L=function(){p&&p({})},x=function(){if(S||P){var t=Date.now(),l=T(t);if(y.current=[].slice.call(arguments),h.current=f,s.current=t,l){if(!i.current&&g.current)return m.current=s.current,v(N,a),O?C(s.current):j.current;if(d)return v(N,a),C(s.current)}return i.current||v(N,a),j.current}};return x.cancel=function(){i.current&&(q?cancelAnimationFrame(i.current):clearTimeout(i.current)),m.current=0,y.current=s.current=h.current=i.current=null},x.isPending=function(){return!!i.current},x.flush=function(){return i.current?R(Date.now()):j.current},x},[O,d,a,E,w,q,S,P,p]);return k}function ie(u,a){return u===a}function oe(u,a,o){var p=ie,f=e.useRef(u),s=e.useState({})[1],m=le(e.useCallback(function(i){f.current=i,s({})},[s]),a,o,s),b=e.useRef(u);return p(b.current,u)||(m(u),b.current=u),[f.current,m]}const ce=20,me=[];function de({mode:u,options:a=me,fetcher:o,pageSize:p=ce,value:f,onChange:s,placeholder:m="Select...",disabled:b,className:i,emptyText:y="No results found",renderOption:h,searchPlaceholder:j="Search...",defaultOpen:F}){const[g,S]=e.useState(!!F),[q,O]=e.useState(""),[w]=oe(q,250),[d,P]=e.useState(f??null);e.useEffect(()=>{f!==void 0&&P(f)},[f]);const E=e.useCallback(n=>{const c=n.value;f===void 0&&P(c),s==null||s(c,n),S(!1)},[f,s]),[k,C]=e.useState([]),[v,T]=e.useState(!1),[R,N]=e.useState(!1),[L,x]=e.useState(void 0),[t,l]=e.useState(1),A=e.useCallback(()=>{C([]),N(!1),x(void 0),l(1)},[]),M=e.useCallback(async()=>{if(u==="server"){if(!o)return;T(!0);try{const n=await o({search:w,cursor:L??null,page:t,pageSize:p});C(c=>t===1?n.items:[...c,...n.items]),N(!!n.hasMore),x(n.nextCursor)}finally{T(!1)}}else{T(!0);try{const n=w?a.filter(I=>I.label.toLowerCase().includes(w.toLowerCase())):a,c=(t-1)*p,_=n.slice(c,c+p);C(I=>t===1?_:[...I,..._]),N(c+p<n.length),x(void 0)}finally{T(!1)}}},[u,o,w,L,t,p,a]);e.useEffect(()=>{if(!g)return;A();const n=window.setTimeout(()=>{M()},0);return()=>window.clearTimeout(n)},[g,w,u]);const B=e.useRef(null),$=e.useCallback(()=>{const n=B.current;if(!n||v)return;n.scrollTop+n.clientHeight>=n.scrollHeight-24&&R&&l(_=>_+1)},[v,R]);e.useEffect(()=>{g&&M()},[t]);const D=e.useMemo(()=>k.find(n=>n.value===d),[k,d]),G=e.useMemo(()=>{if(D)return D.label;if(u==="client"){const n=a.find(c=>c.value===d);return(n==null?void 0:n.label)??m}return m},[u,a,D,d,m]);return r.jsxs(U,{open:g,onOpenChange:S,children:[r.jsx(Y,{asChild:!0,children:r.jsxs(re,{type:"button",variant:"outline",role:"combobox","aria-expanded":g,className:H("w-full justify-between",i),disabled:b,children:[r.jsx("span",{className:H("truncate",!d&&"text-muted-foreground"),children:G}),r.jsx(ue,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),r.jsx(Z,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:r.jsxs(z,{shouldFilter:!1,className:"w-full",children:[r.jsx("div",{className:"p-2",children:r.jsx(J,{value:q,onValueChange:O,placeholder:j,autoFocus:!0})}),r.jsxs(K,{className:"max-h-56 overflow-auto",ref:B,onScroll:$,children:[v&&k.length===0?r.jsxs("div",{className:"flex items-center justify-center py-6 text-sm text-muted-foreground",children:[r.jsx(V,{className:"mr-2 h-4 w-4 animate-spin"})," Loading"]}):null,r.jsx(Q,{children:y}),k.length>0?r.jsx(X,{children:k.map(n=>{const c=n.value===d;return r.jsxs(ee,{value:`${n.label}`,onSelect:()=>E(n),className:"flex items-center justify-between",children:[r.jsx("div",{className:"min-w-0 truncate",children:h?h(n,c):n.label}),c?r.jsx(te,{className:"h-4 w-4"}):null]},`${n.value}`)})}):null,R?r.jsxs(r.Fragment,{children:[r.jsx(ne,{}),r.jsx("div",{className:"flex items-center justify-center py-2 text-xs text-muted-foreground",children:v?r.jsxs(r.Fragment,{children:[r.jsx(V,{className:"mr-1 h-3 w-3 animate-spin"})," Loading more"]}):"Scroll to load more"})]}):null]})]})})]})}de.__docgenInfo={description:"",methods:[],displayName:"Autocomplete",props:{mode:{required:!0,tsType:{name:"union",raw:"'client' | 'server'",elements:[{name:"literal",value:"'client'"},{name:"literal",value:"'server'"}]},description:""},options:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
12
+ value: string | number
13
+ label: string
14
+ }`,signature:{properties:[{key:"value",value:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}],required:!0}},{key:"label",value:{name:"string",required:!0}}]}}],raw:"AutocompleteOption[]"},description:"",defaultValue:{value:"[]",computed:!1}},fetcher:{required:!1,tsType:{name:"signature",type:"function",raw:`(
15
+ params: AutocompleteFetchParams,
16
+ ) => Promise<AutocompleteFetchResult>`,signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
17
+ search: string
18
+ cursor?: string | number | null
19
+ page?: number
20
+ pageSize: number
21
+ }`,signature:{properties:[{key:"search",value:{name:"string",required:!0}},{key:"cursor",value:{name:"union",raw:"string | number | null",elements:[{name:"string"},{name:"number"},{name:"null"}],required:!1}},{key:"page",value:{name:"number",required:!1}},{key:"pageSize",value:{name:"number",required:!0}}]}},name:"params"}],return:{name:"Promise",elements:[{name:"signature",type:"object",raw:`{
22
+ items: AutocompleteOption[]
23
+ nextCursor?: string | number | null
24
+ hasMore: boolean
25
+ total?: number
26
+ }`,signature:{properties:[{key:"items",value:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
27
+ value: string | number
28
+ label: string
29
+ }`,signature:{properties:[{key:"value",value:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}],required:!0}},{key:"label",value:{name:"string",required:!0}}]}}],raw:"AutocompleteOption[]",required:!0}},{key:"nextCursor",value:{name:"union",raw:"string | number | null",elements:[{name:"string"},{name:"number"},{name:"null"}],required:!1}},{key:"hasMore",value:{name:"boolean",required:!0}},{key:"total",value:{name:"number",required:!1}}]}}],raw:"Promise<AutocompleteFetchResult>"}}},description:""},pageSize:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"20",computed:!1}},value:{required:!1,tsType:{name:"union",raw:"string | number | null",elements:[{name:"string"},{name:"number"},{name:"null"}]},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string | number | null, option: AutocompleteOption | null) => void",signature:{arguments:[{type:{name:"union",raw:"string | number | null",elements:[{name:"string"},{name:"number"},{name:"null"}]},name:"value"},{type:{name:"union",raw:"AutocompleteOption | null",elements:[{name:"signature",type:"object",raw:`{
30
+ value: string | number
31
+ label: string
32
+ }`,signature:{properties:[{key:"value",value:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}],required:!0}},{key:"label",value:{name:"string",required:!0}}]}},{name:"null"}]},name:"option"}],return:{name:"void"}}},description:""},placeholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'Select...'",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""},emptyText:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'No results found'",computed:!1}},renderOption:{required:!1,tsType:{name:"signature",type:"function",raw:"(option: AutocompleteOption, selected: boolean) => React.ReactNode",signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
33
+ value: string | number
34
+ label: string
35
+ }`,signature:{properties:[{key:"value",value:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}],required:!0}},{key:"label",value:{name:"string",required:!0}}]}},name:"option"},{type:{name:"boolean"},name:"selected"}],return:{name:"ReactReactNode",raw:"React.ReactNode"}}},description:""},searchPlaceholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'Search...'",computed:!1}},defaultOpen:{required:!1,tsType:{name:"boolean"},description:"Controls initial open state; component is uncontrolled otherwise"}}};export{de as A,ue as C,V as L};