xertica-ui 2.5.1 → 2.5.2

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 (535) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +14 -16
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/generate-tokens.ts +262 -262
  6. package/bin/language-config.ts +359 -358
  7. package/components/assistant/code-block/CodeBlock.tsx +268 -268
  8. package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
  9. package/components/assistant/modern-chat-input/ModernChatInput.tsx +564 -564
  10. package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +99 -99
  11. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -104
  12. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
  13. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -88
  14. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
  15. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -564
  16. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
  17. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
  18. package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
  19. package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -611
  20. package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
  21. package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
  22. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +58 -58
  23. package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
  24. package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
  25. package/components/blocks/card-patterns/ProfileCard.tsx +112 -112
  26. package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
  27. package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
  28. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +67 -67
  29. package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
  30. package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
  31. package/components/blocks/card-patterns/index.ts +29 -29
  32. package/components/brand/language-selector/LanguageSelector.tsx +102 -102
  33. package/components/brand/language-selector/language-selector.stories.tsx +111 -111
  34. package/components/brand/language-selector/language-selector.test.tsx +101 -101
  35. package/components/brand/theme-toggle/ThemeToggle.tsx +74 -74
  36. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  37. package/components/index.ts +86 -86
  38. package/components/layout/sidebar/sidebar.mdx +1 -1
  39. package/components/layout/sidebar/sidebar.stories.tsx +1033 -787
  40. package/components/layout/sidebar/sidebar.tsx +338 -1
  41. package/components/media/FloatingMediaWrapper.tsx +371 -371
  42. package/components/media/audio-player/AudioPlayer.tsx +768 -768
  43. package/components/media/video-player/VideoPlayer.tsx +310 -310
  44. package/components/pages/home-content/HomeContent.tsx +120 -120
  45. package/components/pages/home-content/home-content.mdx +62 -62
  46. package/components/pages/home-page/HomePage.tsx +78 -78
  47. package/components/pages/home-page/home-page.mdx +53 -53
  48. package/components/pages/template-content/TemplateContent.tsx +1354 -1354
  49. package/components/pages/template-content/template-content.mdx +61 -61
  50. package/components/pages/template-page/TemplatePage.stories.tsx +32 -32
  51. package/components/pages/template-page/template-page.mdx +53 -53
  52. package/components/shared/error-boundary.stories.tsx +114 -114
  53. package/components/shared/error-boundary.tsx +150 -150
  54. package/components/shared/error-fallbacks.tsx +222 -222
  55. package/components/ui/accordion/accordion.mdx +8 -8
  56. package/components/ui/alert/alert.mdx +8 -8
  57. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  58. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  59. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  60. package/components/ui/avatar/avatar.mdx +8 -8
  61. package/components/ui/badge/badge.mdx +8 -8
  62. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  63. package/components/ui/button/button.mdx +8 -8
  64. package/components/ui/calendar/calendar.mdx +8 -8
  65. package/components/ui/card/card.mdx +8 -8
  66. package/components/ui/carousel/carousel.mdx +8 -8
  67. package/components/ui/chart/chart.mdx +8 -8
  68. package/components/ui/chart/chart.test.tsx +178 -178
  69. package/components/ui/chart/chart.tsx +2245 -2239
  70. package/components/ui/checkbox/checkbox.mdx +8 -8
  71. package/components/ui/collapsible/collapsible.mdx +8 -8
  72. package/components/ui/command/command.mdx +8 -8
  73. package/components/ui/context-menu/context-menu.mdx +8 -8
  74. package/components/ui/dialog/dialog.mdx +8 -8
  75. package/components/ui/drawer/drawer.mdx +8 -8
  76. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  77. package/components/ui/empty/empty.mdx +8 -8
  78. package/components/ui/file-upload/file-upload.mdx +8 -8
  79. package/components/ui/hover-card/hover-card.mdx +8 -8
  80. package/components/ui/input/input.mdx +8 -8
  81. package/components/ui/input-otp/input-otp.mdx +8 -8
  82. package/components/ui/label/label.mdx +8 -8
  83. package/components/ui/map/map.mdx +8 -8
  84. package/components/ui/menubar/menubar.mdx +8 -8
  85. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  86. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  87. package/components/ui/pagination/pagination.mdx +8 -8
  88. package/components/ui/popover/popover.mdx +8 -8
  89. package/components/ui/progress/progress.mdx +8 -8
  90. package/components/ui/radio-group/radio-group.mdx +8 -8
  91. package/components/ui/rating/rating.mdx +8 -8
  92. package/components/ui/resizable/resizable.mdx +8 -8
  93. package/components/ui/route-map/route-map.mdx +8 -8
  94. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  95. package/components/ui/search/search.mdx +8 -8
  96. package/components/ui/select/select.mdx +8 -8
  97. package/components/ui/separator/separator.mdx +8 -8
  98. package/components/ui/sheet/sheet.mdx +8 -8
  99. package/components/ui/simple-map/simple-map.mdx +8 -8
  100. package/components/ui/skeleton/skeleton.mdx +8 -8
  101. package/components/ui/slider/slider.mdx +8 -8
  102. package/components/ui/sonner/sonner.mdx +8 -8
  103. package/components/ui/stats-card/index.ts +2 -2
  104. package/components/ui/stats-card/stats-card-skeleton.tsx +60 -60
  105. package/components/ui/stats-card/stats-card.mdx +8 -8
  106. package/components/ui/stats-card/stats-card.tsx +109 -109
  107. package/components/ui/stepper/stepper.mdx +8 -8
  108. package/components/ui/switch/switch.mdx +8 -8
  109. package/components/ui/table/table.mdx +8 -8
  110. package/components/ui/tabs/tabs.mdx +8 -8
  111. package/components/ui/textarea/textarea.mdx +8 -8
  112. package/components/ui/timeline/timeline.mdx +8 -8
  113. package/components/ui/toggle/toggle.mdx +8 -8
  114. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  115. package/components/ui/tooltip/tooltip.mdx +8 -8
  116. package/components/ui/tree-view/tree-view.mdx +8 -8
  117. package/components.json +511 -511
  118. package/contexts/AuthContext.tsx +121 -121
  119. package/contexts/BrandColorsContext.tsx +282 -282
  120. package/contexts/LanguageContext.test.tsx +121 -121
  121. package/contexts/LanguageContext.tsx +250 -250
  122. package/contexts/theme-data.ts +391 -391
  123. package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
  124. package/dist/{AssistantChart-CldVCVDe.cjs → AssistantChart-BAudAfne.cjs} +5 -5
  125. package/dist/{AssistantChart-Bdd44uBn.cjs → AssistantChart-BAx9VQvb.cjs} +127 -388
  126. package/dist/{AssistantChart-Cu3m7RBo.js → AssistantChart-BP8upjMk.js} +5 -5
  127. package/dist/{AssistantChart-CFhDdGyU.js → AssistantChart-CVko2A1W.js} +130 -391
  128. package/dist/{AssistantChart-C_hwFRRr.js → AssistantChart-CVzmmhx4.js} +4 -4
  129. package/dist/{AudioPlayer-IAU5q5T1.cjs → AudioPlayer-1ypwE2Wh.cjs} +1 -1
  130. package/dist/{AudioPlayer-CGRUtUdN.js → AudioPlayer-DuKXrCfy.js} +1 -1
  131. package/dist/{LanguageContext-CS14yCpi.js → LanguageContext-BwhwC3G2.js} +2 -2
  132. package/dist/{LanguageContext-B_KFTCzT.cjs → LanguageContext-DvUt5jBg.cjs} +2 -2
  133. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  134. package/dist/{ThemeContext-Bmod0Cg2.cjs → ThemeContext-BblcjQup.cjs} +13 -8
  135. package/dist/{ThemeContext-BWq9ACPo.js → ThemeContext-Bo-W2WZH.js} +13 -8
  136. package/dist/{ThemeContext-j5aGtPky.cjs → ThemeContext-CP3a0jxy.cjs} +193 -262
  137. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  138. package/dist/ThemeContext-CpqYShLq.cjs +324 -0
  139. package/dist/{ThemeContext-CQSo4Iwc.js → ThemeContext-D3LzacmG.js} +8 -1
  140. package/dist/ThemeContext-Du2nE1PL.js +325 -0
  141. package/dist/ThemeContext-GeEBTJ3q.cjs +1621 -0
  142. package/dist/ThemeContext-JyLK9B1o.js +1622 -0
  143. package/dist/{ThemeContext-CGk3KK0k.cjs → ThemeContext-U4dEYc6C.cjs} +8 -1
  144. package/dist/{ThemeContext-BXjrgUjW.js → ThemeContext-ept8jhXI.js} +200 -261
  145. package/dist/{VerifyEmailPage-CGIwmWrm.js → VerifyEmailPage-B31mCrMc.js} +1 -1
  146. package/dist/{VerifyEmailPage-C0c2e5n0.js → VerifyEmailPage-BE-L9mB7.js} +7 -7
  147. package/dist/{VerifyEmailPage-DSBMRHtl.js → VerifyEmailPage-BIBOKV7Z.js} +41 -36
  148. package/dist/{VerifyEmailPage-DgIid028.js → VerifyEmailPage-BJjAMUTW.js} +4 -4
  149. package/dist/{VerifyEmailPage--1Vurewl.cjs → VerifyEmailPage-BRSP-Pwt.cjs} +3 -3
  150. package/dist/{VerifyEmailPage-Cwi3kbol.cjs → VerifyEmailPage-Bae2cBXT.cjs} +7 -7
  151. package/dist/{VerifyEmailPage-De6bQjrz.cjs → VerifyEmailPage-BiRm7Nh4.cjs} +41 -36
  152. package/dist/{VerifyEmailPage-ByerOcm4.cjs → VerifyEmailPage-Bv8Ah_TK.cjs} +23 -20
  153. package/dist/VerifyEmailPage-Bvfv8HVQ.js +3214 -0
  154. package/dist/{VerifyEmailPage-BComraR7.cjs → VerifyEmailPage-CR7kb5df.cjs} +22 -12
  155. package/dist/{VerifyEmailPage-CpqqpLpo.cjs → VerifyEmailPage-C_Zk6Gen.cjs} +1 -1
  156. package/dist/{VerifyEmailPage-MTD7AG1Z.js → VerifyEmailPage-C_ihbcth.js} +4 -4
  157. package/dist/{VerifyEmailPage-1WwWczAn.js → VerifyEmailPage-CbgjOF0v.js} +22 -12
  158. package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
  159. package/dist/{VerifyEmailPage-By3Jf__L.cjs → VerifyEmailPage-CkBYfsNy.cjs} +4 -4
  160. package/dist/{VerifyEmailPage-CJLz3jrn.js → VerifyEmailPage-Cyl55sJb.js} +23 -20
  161. package/dist/VerifyEmailPage-D-FRj5TU.cjs +3213 -0
  162. package/dist/{VerifyEmailPage-B4peJjAT.cjs → VerifyEmailPage-DF2ilhum.cjs} +334 -356
  163. package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
  164. package/dist/{VerifyEmailPage-CgMxRb4z.js → VerifyEmailPage-DTtFfC-J.js} +3 -3
  165. package/dist/{VerifyEmailPage-CFLMls1p.cjs → VerifyEmailPage-Dt7zgA4w.cjs} +4 -4
  166. package/dist/{VerifyEmailPage-C5TNQTBa.js → VerifyEmailPage-EhudUdqF.js} +343 -355
  167. package/dist/{VerifyEmailPage-DGhuIqkb.js → VerifyEmailPage-X14vhdyl.js} +4 -4
  168. package/dist/VerifyEmailPage-hdB8JQGv.cjs +3213 -0
  169. package/dist/{VerifyEmailPage-Bp1XXl3H.cjs → VerifyEmailPage-u_Dn7t1U.cjs} +4 -4
  170. package/dist/VerifyEmailPage-vYHbYK3q.js +3214 -0
  171. package/dist/{XerticaProvider-CBGc4EMA.cjs → XerticaProvider-AChwphCO.cjs} +4 -4
  172. package/dist/{XerticaProvider-BIrqfZ-i.cjs → XerticaProvider-AbWlr7Af.cjs} +8 -11
  173. package/dist/{XerticaProvider-D-yNhF94.cjs → XerticaProvider-B8CaV7xu.cjs} +1 -1
  174. package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
  175. package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
  176. package/dist/{XerticaProvider-C1DKnvLh.js → XerticaProvider-CUYJZc32.js} +4 -4
  177. package/dist/{XerticaProvider-ET0ihewn.cjs → XerticaProvider-CW9hpCdF.cjs} +2 -2
  178. package/dist/{XerticaProvider-Dt5HEzbQ.js → XerticaProvider-CWgby5mY.js} +10 -10
  179. package/dist/XerticaProvider-CWs6EwNa.js +49 -0
  180. package/dist/XerticaProvider-CjQAQPcn.cjs +48 -0
  181. package/dist/XerticaProvider-D5lLumH-.js +49 -0
  182. package/dist/{XerticaProvider-DYq4JWtg.js → XerticaProvider-DQtvJU7m.js} +1 -1
  183. package/dist/XerticaProvider-qQUDop71.cjs +48 -0
  184. package/dist/{XerticaProvider-B7EVH-NF.js → XerticaProvider-siSt9uG2.js} +2 -2
  185. package/dist/{XerticaXLogo-Zw2B276b.cjs → XerticaXLogo-8TTzBjHw.cjs} +1 -1
  186. package/dist/{XerticaXLogo-B7xQ5dhi.js → XerticaXLogo-BWaag64t.js} +1 -1
  187. package/dist/{XerticaXLogo-DZbo4vOE.js → XerticaXLogo-CFuIlYFH.js} +12 -12
  188. package/dist/{XerticaXLogo-bvZSgwGF.cjs → XerticaXLogo-CU-U-GP4.cjs} +7 -13
  189. package/dist/XerticaXLogo-ChryA6xj.js +252 -0
  190. package/dist/{XerticaXLogo-CQUUjXoH.cjs → XerticaXLogo-CziKMQil.cjs} +8 -8
  191. package/dist/XerticaXLogo-DHz5SugF.js +252 -0
  192. package/dist/XerticaXLogo-DTee_y8X.cjs +251 -0
  193. package/dist/{XerticaXLogo-Cmsp-Eey.js → XerticaXLogo-DfUvz-lD.js} +9 -9
  194. package/dist/XerticaXLogo-kslQ8Tk_.cjs +251 -0
  195. package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
  196. package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
  197. package/dist/cli.js +2 -1
  198. package/dist/components/ui/chart/chart.d.ts +7 -5
  199. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  200. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  201. package/dist/index-CkTUgOwX.js +8 -0
  202. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  203. package/dist/index.cjs.js +2 -2
  204. package/dist/index.es.js +2 -2
  205. package/dist/index.umd.js +454 -1027
  206. package/dist/layout.cjs.js +1 -1
  207. package/dist/layout.es.js +1 -1
  208. package/dist/pages.cjs.js +1 -1
  209. package/dist/pages.es.js +1 -1
  210. package/dist/{sidebar-DAaY8bRU.cjs → sidebar-B3EYhli0.cjs} +33 -24
  211. package/dist/{sidebar-nzPoVHBQ.cjs → sidebar-B9NR0lCe.cjs} +46 -41
  212. package/dist/{sidebar-CeTMuzOx.cjs → sidebar-BvF5I2Ue.cjs} +47 -128
  213. package/dist/{sidebar-q7P2Godd.cjs → sidebar-C5B_LHek.cjs} +1 -1
  214. package/dist/{sidebar-CrQDDdcz.js → sidebar-CA6_ek3f.js} +33 -24
  215. package/dist/sidebar-CLmIjgNd.cjs +1136 -0
  216. package/dist/{sidebar-BxGXsDAd.cjs → sidebar-CVUGHOS_.cjs} +8 -16
  217. package/dist/{sidebar-BViy8Eeu.js → sidebar-CmvwjnVb.js} +9 -17
  218. package/dist/{sidebar-B6SlKZYN.js → sidebar-CplprZpM.js} +49 -40
  219. package/dist/sidebar-Duermn32.js +1133 -0
  220. package/dist/{sidebar-BbVIQvlP.js → sidebar-Dz7bd3zP.js} +1 -1
  221. package/dist/{sidebar-0ocFLSks.js → sidebar-KIS0C2JH.js} +50 -127
  222. package/dist/sidebar-OTO_up7Z.js +801 -0
  223. package/dist/sidebar-zowjejT2.cjs +800 -0
  224. package/dist/{use-audio-player-nv8ZSGa1.js → use-audio-player-Bkh23vQ3.js} +3 -7
  225. package/dist/{use-audio-player-NKsWyjWu.cjs → use-audio-player-Dn1NR9xN.cjs} +3 -7
  226. package/dist/{xertica-assistant-dyP7KHM5.cjs → xertica-assistant-B1IaHXnB.cjs} +388 -529
  227. package/dist/{xertica-assistant-ciJaWqm1.js → xertica-assistant-BMqdyRVi.js} +10 -28
  228. package/dist/{xertica-assistant-V_IdW4WF.cjs → xertica-assistant-Bj3vBCq_.cjs} +9 -27
  229. package/dist/{xertica-assistant-yX1CFBBo.js → xertica-assistant-DPsESB6t.js} +390 -531
  230. package/dist/{CodeBlock-7TTgmdGG.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  231. package/dist/{CodeBlock-BeSt1h5P.js → xertica-assistant-gnCJdcZY.js} +7 -219
  232. package/dist/xertica-ui.css +2 -2
  233. package/docs/architecture-improvements.md +456 -456
  234. package/docs/architecture.md +312 -312
  235. package/docs/components/assistant.md +428 -428
  236. package/docs/components/branding.md +252 -252
  237. package/docs/components/card-patterns.md +447 -447
  238. package/docs/components/error-boundary.md +201 -201
  239. package/docs/components/hooks.md +432 -432
  240. package/docs/components/language-selector.md +176 -176
  241. package/docs/components/pages.md +323 -323
  242. package/docs/components/sidebar.md +331 -331
  243. package/docs/components/stats-card.md +138 -138
  244. package/docs/doc-audit.md +244 -244
  245. package/docs/getting-started.md +616 -616
  246. package/docs/guidelines.md +330 -330
  247. package/docs/i18n.md +480 -480
  248. package/docs/installation.md +268 -268
  249. package/docs/llms.md +295 -295
  250. package/docs/state-management.md +289 -289
  251. package/guidelines/Guidelines.md +409 -409
  252. package/llms-compact.txt +1 -1
  253. package/llms-full.txt +10688 -10688
  254. package/llms.txt +1 -1
  255. package/package.json +1 -1
  256. package/styles/xertica/base.css +90 -90
  257. package/styles/xertica/tokens.css +240 -240
  258. package/templates/.prettierignore +4 -4
  259. package/templates/.prettierrc +10 -10
  260. package/templates/CLAUDE.md +180 -180
  261. package/templates/package.json +2 -2
  262. package/templates/src/app/App.tsx +46 -46
  263. package/templates/src/app/components/AuthGuard.tsx +131 -131
  264. package/templates/src/features/assistant/data/mock.ts +75 -75
  265. package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
  266. package/templates/src/features/assistant/index.ts +5 -5
  267. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  268. package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
  269. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +183 -183
  270. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
  271. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +80 -80
  272. package/templates/src/features/home/data/mock.ts +41 -41
  273. package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
  274. package/templates/src/features/home/index.ts +11 -11
  275. package/templates/src/features/home/ui/HomeContent.tsx +117 -117
  276. package/templates/src/features/template/ui/CrudTemplate.tsx +112 -112
  277. package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
  278. package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
  279. package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
  280. package/templates/src/features/template/ui/TemplateContent.tsx +1322 -1322
  281. package/templates/src/i18n.ts +124 -124
  282. package/templates/src/locales/en/common.json +21 -21
  283. package/templates/src/locales/en/components/activityCard.json +10 -10
  284. package/templates/src/locales/en/components/assistant.json +119 -119
  285. package/templates/src/locales/en/components/media.json +29 -29
  286. package/templates/src/locales/en/components/notificationCard.json +5 -5
  287. package/templates/src/locales/en/components/profileCard.json +8 -8
  288. package/templates/src/locales/en/components/projectCard.json +10 -10
  289. package/templates/src/locales/en/components/sidebar.json +14 -14
  290. package/templates/src/locales/en/components/stats.json +8 -8
  291. package/templates/src/locales/en/components/team.json +14 -14
  292. package/templates/src/locales/en/errors.json +9 -9
  293. package/templates/src/locales/en/languageSelector.json +7 -7
  294. package/templates/src/locales/en/nav.json +6 -6
  295. package/templates/src/locales/en/pages/crudTemplate.json +25 -25
  296. package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
  297. package/templates/src/locales/en/pages/forgotPassword.json +10 -10
  298. package/templates/src/locales/en/pages/formTemplate.json +16 -16
  299. package/templates/src/locales/en/pages/home.json +7 -7
  300. package/templates/src/locales/en/pages/login.json +15 -15
  301. package/templates/src/locales/en/pages/loginTemplate.json +9 -9
  302. package/templates/src/locales/en/pages/resetPassword.json +18 -18
  303. package/templates/src/locales/en/pages/templates.json +317 -317
  304. package/templates/src/locales/en/pages/verifyEmail.json +12 -12
  305. package/templates/src/locales/en/themeToggle.json +6 -6
  306. package/templates/src/locales/es/common.json +21 -21
  307. package/templates/src/locales/es/components/activityCard.json +10 -10
  308. package/templates/src/locales/es/components/assistant.json +119 -119
  309. package/templates/src/locales/es/components/media.json +29 -29
  310. package/templates/src/locales/es/components/notificationCard.json +5 -5
  311. package/templates/src/locales/es/components/profileCard.json +8 -8
  312. package/templates/src/locales/es/components/projectCard.json +10 -10
  313. package/templates/src/locales/es/components/sidebar.json +14 -14
  314. package/templates/src/locales/es/components/stats.json +8 -8
  315. package/templates/src/locales/es/components/team.json +14 -14
  316. package/templates/src/locales/es/errors.json +9 -9
  317. package/templates/src/locales/es/languageSelector.json +7 -7
  318. package/templates/src/locales/es/nav.json +6 -6
  319. package/templates/src/locales/es/pages/crudTemplate.json +25 -25
  320. package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
  321. package/templates/src/locales/es/pages/forgotPassword.json +10 -10
  322. package/templates/src/locales/es/pages/formTemplate.json +16 -16
  323. package/templates/src/locales/es/pages/home.json +7 -7
  324. package/templates/src/locales/es/pages/login.json +15 -15
  325. package/templates/src/locales/es/pages/loginTemplate.json +9 -9
  326. package/templates/src/locales/es/pages/resetPassword.json +18 -18
  327. package/templates/src/locales/es/pages/templates.json +317 -317
  328. package/templates/src/locales/es/pages/verifyEmail.json +12 -12
  329. package/templates/src/locales/es/themeToggle.json +6 -6
  330. package/templates/src/locales/pt-BR/common.json +21 -21
  331. package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
  332. package/templates/src/locales/pt-BR/components/assistant.json +119 -119
  333. package/templates/src/locales/pt-BR/components/media.json +29 -29
  334. package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
  335. package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
  336. package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
  337. package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
  338. package/templates/src/locales/pt-BR/components/stats.json +8 -8
  339. package/templates/src/locales/pt-BR/components/team.json +14 -14
  340. package/templates/src/locales/pt-BR/errors.json +9 -9
  341. package/templates/src/locales/pt-BR/languageSelector.json +7 -7
  342. package/templates/src/locales/pt-BR/nav.json +6 -6
  343. package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
  344. package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
  345. package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
  346. package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
  347. package/templates/src/locales/pt-BR/pages/home.json +7 -7
  348. package/templates/src/locales/pt-BR/pages/login.json +15 -15
  349. package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
  350. package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
  351. package/templates/src/locales/pt-BR/pages/templates.json +317 -317
  352. package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
  353. package/templates/src/locales/pt-BR/themeToggle.json +6 -6
  354. package/templates/src/pages/AssistantPage.tsx +470 -470
  355. package/templates/src/pages/HomePage.tsx +53 -53
  356. package/templates/src/shared/error-boundary.tsx +150 -150
  357. package/templates/src/shared/error-fallbacks.tsx +222 -222
  358. package/templates/src/styles/xertica/tokens.css +240 -240
  359. package/templates/vite.config.js +20 -20
  360. package/templates/vite.config.ts +55 -55
  361. package/dist/AssistantChart-BKVtGUKF.js +0 -3383
  362. package/dist/AssistantChart-CxGjH7Qk.js +0 -3477
  363. package/dist/AssistantChart-DIpshm3i.js +0 -4784
  364. package/dist/AssistantChart-D_PTeu8P.cjs +0 -3503
  365. package/dist/AssistantChart-WeycT5Pd.cjs +0 -3551
  366. package/dist/AssistantChart-zjsy2GaZ.cjs +0 -4810
  367. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  368. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  369. package/dist/AudioPlayer-BpRPS4-1.cjs +0 -1277
  370. package/dist/AudioPlayer-C12BjQBV.cjs +0 -997
  371. package/dist/AudioPlayer-CFeV8t-5.cjs +0 -936
  372. package/dist/AudioPlayer-Coly3q5R.js +0 -1278
  373. package/dist/AudioPlayer-CySJIyvL.js +0 -937
  374. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  375. package/dist/AudioPlayer-DcFKRJE_.js +0 -998
  376. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  377. package/dist/BrandColorsContext-565dDHd5.js +0 -660
  378. package/dist/BrandColorsContext-BcJbtkqn.cjs +0 -659
  379. package/dist/CodeBlock-BgfYL_rD.cjs +0 -2094
  380. package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
  381. package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
  382. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  383. package/dist/CodeBlock-CIySIuYr.js +0 -2078
  384. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  385. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  386. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  387. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  388. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  389. package/dist/CodeBlock-DnYNI8rQ.js +0 -2078
  390. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  391. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  392. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  393. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  394. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  395. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  396. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  397. package/dist/FeatureCard-CxC-7C-C.cjs +0 -300
  398. package/dist/FeatureCard-DbHWCb4E.js +0 -301
  399. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  400. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  401. package/dist/LanguageSelector-B5YfbHra.js +0 -231
  402. package/dist/LanguageSelector-D6uacAIM.cjs +0 -230
  403. package/dist/LayoutContext-B45-e9DI.cjs +0 -93
  404. package/dist/LayoutContext-BAql6ZRY.js +0 -97
  405. package/dist/LayoutContext-Bav3UMEA.js +0 -94
  406. package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
  407. package/dist/ThemeContext-BoH4NLfN.js +0 -734
  408. package/dist/ThemeContext-r69W20Xg.cjs +0 -733
  409. package/dist/VerifyEmailPage-COiyNl1y.js +0 -2825
  410. package/dist/VerifyEmailPage-CqKsR2v8.js +0 -2827
  411. package/dist/VerifyEmailPage-DjQKRlUS.cjs +0 -2824
  412. package/dist/VerifyEmailPage-s-1X3LDJ.cjs +0 -2826
  413. package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
  414. package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
  415. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  416. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  417. package/dist/XerticaProvider-BlY2limY.cjs +0 -38
  418. package/dist/XerticaProvider-DDuiIcKo.js +0 -39
  419. package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
  420. package/dist/XerticaProvider-hSwhNQex.js +0 -39
  421. package/dist/alert-dialog-BOje--vD.js +0 -847
  422. package/dist/alert-dialog-BtEuQqrg.cjs +0 -870
  423. package/dist/breadcrumb-CqJ7bHY5.js +0 -161
  424. package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
  425. package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +0 -6
  426. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +0 -21
  427. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +0 -49
  428. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +0 -16
  429. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  430. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  431. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  432. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  433. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  434. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  435. package/dist/components/ui/chart/parts/chart-dashboard.d.ts +0 -113
  436. package/dist/components/ui/chart/parts/chart-metric.d.ts +0 -118
  437. package/dist/components/ui/chart/parts/chart-primitives.d.ts +0 -101
  438. package/dist/components/ui/chart/parts/chart-shared.d.ts +0 -20
  439. package/dist/components/ui/chart/parts/chart-utils.d.ts +0 -12
  440. package/dist/components/ui/chart/parts/index.d.ts +0 -5
  441. package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
  442. package/dist/dropdown-menu-DQidbKBD.js +0 -231
  443. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  444. package/dist/google-maps-loader-BKcdgFbu.cjs +0 -312
  445. package/dist/google-maps-loader-CumCNXeG.js +0 -312
  446. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  447. package/dist/header-Cgy6vYPk.cjs +0 -731
  448. package/dist/header-DRlT4jgI.js +0 -715
  449. package/dist/header-Dux00SI4.cjs +0 -731
  450. package/dist/header-EkGKXPsD.js +0 -715
  451. package/dist/header-WfEywpyc.cjs +0 -731
  452. package/dist/header-tifNQn2U.js +0 -715
  453. package/dist/index-BhapVLVj.js +0 -8
  454. package/dist/index-D6fxYEY8.cjs +0 -7
  455. package/dist/index-DAIp0_HK.js +0 -8
  456. package/dist/index-DW5tYe26.js +0 -8
  457. package/dist/index-GA__GvnG.cjs +0 -7
  458. package/dist/input-2R4loU86.js +0 -127
  459. package/dist/input-DWANSKGb.cjs +0 -145
  460. package/dist/progress-DPtzoVV8.js +0 -175
  461. package/dist/progress-EeaoqqUs.cjs +0 -191
  462. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  463. package/dist/rich-text-editor-B-IkcPD0.js +0 -2874
  464. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  465. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  466. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  467. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  468. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  469. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  470. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  471. package/dist/rich-text-editor-Bp3zQqMC.js +0 -2954
  472. package/dist/rich-text-editor-CMgSN_w2.js +0 -1189
  473. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  474. package/dist/rich-text-editor-CeucBdIv.cjs +0 -2971
  475. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  476. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  477. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  478. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  479. package/dist/rich-text-editor-D76gD-QI.js +0 -2328
  480. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  481. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  482. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  483. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  484. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  485. package/dist/rich-text-editor-bRkNoeZY.cjs +0 -2891
  486. package/dist/rich-text-editor-lyYE2ZG5.cjs +0 -1207
  487. package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
  488. package/dist/select-Bkbr0f-Z.cjs +0 -162
  489. package/dist/select-CvIVdX2n.js +0 -145
  490. package/dist/sidebar-CK_0ZQHj.cjs +0 -803
  491. package/dist/sidebar-CUuOvYhK.js +0 -787
  492. package/dist/sidebar-DQj1z3jG.cjs +0 -758
  493. package/dist/sidebar-Djn5syhi.cjs +0 -786
  494. package/dist/sidebar-LluMXfam.js +0 -759
  495. package/dist/sidebar-_rT7rBMk.js +0 -787
  496. package/dist/slider-Bc5Hd0y1.js +0 -56
  497. package/dist/slider-N7hFFj6X.cjs +0 -73
  498. package/dist/tooltip-Ded96neP.cjs +0 -137
  499. package/dist/tooltip-HDOoD2-0.js +0 -120
  500. package/dist/use-audio-player-B31J-aqh.cjs +0 -187
  501. package/dist/use-audio-player-BkmEmj8Q.js +0 -185
  502. package/dist/use-audio-player-CLFTWFW1.cjs +0 -184
  503. package/dist/use-audio-player-CLLn00I6.js +0 -188
  504. package/dist/use-file-upload-BcjEo2S5.js +0 -404
  505. package/dist/use-file-upload-CRJR68Tj.cjs +0 -403
  506. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  507. package/dist/use-mobile-BXuYROXM.js +0 -4202
  508. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  509. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  510. package/dist/use-mobile-BvYdisLP.js +0 -4202
  511. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  512. package/dist/use-mobile-CG2-SdXV.cjs +0 -4235
  513. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  514. package/dist/use-mobile-CYuAuGDl.js +0 -4202
  515. package/dist/use-mobile-CaENcqm-.js +0 -4508
  516. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  517. package/dist/use-mobile-Cd4xPrKq.cjs +0 -46
  518. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  519. package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
  520. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  521. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  522. package/dist/use-mobile-DlceKf8a.js +0 -4359
  523. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  524. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  525. package/dist/use-mobile-bnKcua_i.js +0 -4202
  526. package/dist/use-mobile-j4w2Jrf1.js +0 -30
  527. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
  528. package/dist/use-rich-text-editor-DjiddBGv.js +0 -282
  529. package/dist/use-rich-text-editor-lpeswbCs.cjs +0 -281
  530. package/dist/xertica-assistant-BdiZag0h.js +0 -2187
  531. package/dist/xertica-assistant-CrgTb6Hs.cjs +0 -2155
  532. package/dist/xertica-assistant-DCsnQyi5.js +0 -2156
  533. package/dist/xertica-assistant-DUBpmEgo.cjs +0 -2186
  534. package/dist/{rich-text-editor-DgF8s7xW.js → rich-text-editor-BmsjY03B.js} +26 -26
  535. package/dist/{rich-text-editor-mWoaSCE4.cjs → rich-text-editor-GS2kpTAK.cjs} +26 -26
@@ -1,4269 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import * as TabsPrimitive from "@radix-ui/react-tabs";
3
- import { e as cn, B as Button, d as buttonVariants } from "./tooltip-HDOoD2-0.js";
4
- import { Slot, Slottable } from "@radix-ui/react-slot";
5
- import { cva } from "class-variance-authority";
6
- import * as React from "react";
7
- import React__default, { useRef, useEffect, useState } from "react";
8
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
9
- import { Check, ChevronLeft, GripVerticalIcon, ChevronDownIcon, MoreHorizontalIcon, ChevronRightIcon, ChevronLeftIcon, MinusIcon, ChevronRight, ChevronDown, XIcon, CheckIcon, CircleIcon, SearchIcon, TrendingUp, TrendingDown, Minus, ArrowRight, ArrowLeft, X, Upload, AlertCircle, FileIcon, Star, Search as Search$1 } from "lucide-react";
10
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
11
- import * as SwitchPrimitive from "@radix-ui/react-switch";
12
- import * as ProgressPrimitive from "@radix-ui/react-progress";
13
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
14
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
15
- import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
16
- import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
17
- import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
18
- import * as TogglePrimitive from "@radix-ui/react-toggle";
19
- import { OTPInput, OTPInputContext } from "input-otp";
20
- import { FormProvider, Controller, useFormContext, useFormState } from "react-hook-form";
21
- import * as LabelPrimitive from "@radix-ui/react-label";
22
- import { getDefaultClassNames, DayPicker } from "react-day-picker";
23
- import * as DialogPrimitive from "@radix-ui/react-dialog";
24
- import { Drawer as Drawer$1 } from "vaul";
25
- import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
26
- import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
27
- import * as MenubarPrimitive from "@radix-ui/react-menubar";
28
- import { Command as Command$1 } from "cmdk";
29
- import { r as Dialog, x as DialogHeader, B as DialogTitle, v as DialogDescription, u as DialogContent, C as Card, d as CardContent, j as ChartContainer, n as ChartTooltip, o as ChartTooltipContent } from "./rich-text-editor-D76gD-QI.js";
30
- import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
31
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
32
- import useEmblaCarousel from "embla-carousel-react";
33
- import { u as useGoogleMapsLoader } from "./google-maps-loader-CTYySAun.js";
34
- import { createRoot } from "react-dom/client";
35
- import { BarChart, CartesianGrid, XAxis, Bar } from "recharts";
36
- function Label({
37
- className,
38
- size = "md",
39
- ...props
40
- }) {
41
- const sizeClasses = {
42
- sm: "text-xs",
43
- md: "text-sm",
44
- lg: "text-base"
45
- };
46
- return /* @__PURE__ */ jsx(
47
- LabelPrimitive.Root,
48
- {
49
- "data-slot": "label",
50
- className: cn(
51
- "flex items-center gap-2 leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
52
- sizeClasses[size],
53
- className
54
- ),
55
- ...props
56
- }
57
- );
58
- }
59
- function Tabs({
60
- className,
61
- ...props
62
- }) {
63
- return /* @__PURE__ */ jsx(
64
- TabsPrimitive.Root,
65
- {
66
- "data-slot": "tabs",
67
- className: cn("flex flex-col gap-2", className),
68
- ...props
69
- }
70
- );
71
- }
72
- function TabsList({
73
- className,
74
- ...props
75
- }) {
76
- return /* @__PURE__ */ jsx(
77
- TabsPrimitive.List,
78
- {
79
- "data-slot": "tabs-list",
80
- className: cn(
81
- "relative inline-flex h-12 w-fit items-end justify-start border-b border-border bg-transparent",
82
- className
83
- ),
84
- ...props
85
- }
86
- );
87
- }
88
- function TabsTrigger({
89
- className,
90
- ...props
91
- }) {
92
- return /* @__PURE__ */ jsx(
93
- TabsPrimitive.Trigger,
94
- {
95
- "data-slot": "tabs-trigger",
96
- className: cn(
97
- "relative inline-flex h-12 items-center justify-center gap-1.5 bg-transparent px-4 py-3 text-sm font-medium whitespace-nowrap transition-all duration-200 ease-in-out border-b-2 border-transparent text-muted-foreground hover:text-foreground hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-primary data-[state=active]:border-primary data-[state=active]:bg-transparent [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
98
- className
99
- ),
100
- ...props
101
- }
102
- );
103
- }
104
- function TabsContent({
105
- className,
106
- ...props
107
- }) {
108
- return /* @__PURE__ */ jsx(
109
- TabsPrimitive.Content,
110
- {
111
- "data-slot": "tabs-content",
112
- className: cn("flex-1 outline-none", className),
113
- ...props
114
- }
115
- );
116
- }
117
- const badgeVariants = cva(
118
- "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
119
- {
120
- variants: {
121
- variant: {
122
- default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
123
- secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
124
- destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
125
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
126
- success: "border-transparent bg-success text-success-foreground",
127
- warning: "border-transparent bg-warning text-warning-foreground",
128
- info: "border-transparent bg-info text-info-foreground"
129
- }
130
- },
131
- defaultVariants: {
132
- variant: "default"
133
- }
134
- }
135
- );
136
- function Badge({
137
- className,
138
- variant,
139
- asChild = false,
140
- children,
141
- ...props
142
- }) {
143
- const Comp = asChild ? Slot : "span";
144
- return /* @__PURE__ */ jsx(
145
- Comp,
146
- {
147
- "data-slot": "badge",
148
- className: cn(badgeVariants({ variant }), className),
149
- ...props,
150
- children: /* @__PURE__ */ jsx(Slottable, { children })
151
- }
152
- );
153
- }
154
- const Checkbox = React.forwardRef(({ className, size = "md", ...props }, ref) => {
155
- const sizeClasses = {
156
- sm: "size-3.5",
157
- md: "size-4",
158
- lg: "size-5"
159
- };
160
- const iconSizeClasses = {
161
- sm: "size-3",
162
- md: "size-3.5",
163
- lg: "size-4"
164
- };
165
- return /* @__PURE__ */ jsx(
166
- CheckboxPrimitive.Root,
167
- {
168
- ref,
169
- "data-slot": "checkbox",
170
- className: cn(
171
- "peer border bg-white dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
172
- sizeClasses[size],
173
- className
174
- ),
175
- ...props,
176
- children: /* @__PURE__ */ jsx(
177
- CheckboxPrimitive.Indicator,
178
- {
179
- "data-slot": "checkbox-indicator",
180
- className: "flex items-center justify-center text-current transition-none",
181
- children: /* @__PURE__ */ jsx(Check, { className: iconSizeClasses[size] })
182
- }
183
- )
184
- }
185
- );
186
- });
187
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
188
- const RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
189
- RadioGroupPrimitive.Root,
190
- {
191
- className: cn("grid gap-4", className),
192
- ...props,
193
- ref
194
- }
195
- ));
196
- RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
197
- const RadioGroupItem = React.forwardRef(({ className, size = "md", ...props }, ref) => {
198
- const sizeClasses = {
199
- sm: "size-4",
200
- md: "size-5",
201
- lg: "size-6"
202
- };
203
- const dotSizeClasses = {
204
- sm: "size-2",
205
- md: "size-2.5",
206
- lg: "size-3"
207
- };
208
- return /* @__PURE__ */ jsx(
209
- RadioGroupPrimitive.Item,
210
- {
211
- ref,
212
- "data-slot": "radio-group-item",
213
- className: cn(
214
- // Base styles - Material UI inspired
215
- "relative aspect-square shrink-0 rounded-full border-2 transition-all duration-200 outline-none cursor-pointer",
216
- // Default state - sempre com contorno usando variáveis CSS
217
- "border-muted-foreground bg-background",
218
- // Hover state - usa variável primary
219
- "hover:border-primary hover:shadow-md",
220
- // Focus state - usa variável primary
221
- "focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
222
- // Checked state - mantém contorno com primary
223
- "data-[state=checked]:border-primary data-[state=checked]:bg-background",
224
- // Disabled state
225
- "disabled:cursor-not-allowed disabled:opacity-50 disabled:border-muted",
226
- // Invalid state - usa variável destructive
227
- "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
228
- sizeClasses[size],
229
- className
230
- ),
231
- ...props,
232
- children: /* @__PURE__ */ jsx(
233
- RadioGroupPrimitive.Indicator,
234
- {
235
- "data-slot": "radio-group-indicator",
236
- className: "flex items-center justify-center",
237
- children: /* @__PURE__ */ jsx("div", { className: cn("rounded-full bg-primary transition-all duration-200", dotSizeClasses[size]) })
238
- }
239
- )
240
- }
241
- );
242
- });
243
- RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
244
- const Switch = React.forwardRef(({ className, size = "md", ...props }, ref) => {
245
- const trackClasses = {
246
- sm: "h-3.5 w-7",
247
- md: "h-[1.15rem] w-8",
248
- lg: "h-[1.375rem] w-10"
249
- };
250
- const thumbClasses = {
251
- sm: "size-3",
252
- md: "size-4",
253
- lg: "size-5"
254
- };
255
- return /* @__PURE__ */ jsx(
256
- SwitchPrimitive.Root,
257
- {
258
- className: cn(
259
- "peer inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50",
260
- "data-[state=checked]:bg-primary",
261
- "data-[state=unchecked]:bg-muted",
262
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
263
- trackClasses[size],
264
- className
265
- ),
266
- ...props,
267
- ref,
268
- children: /* @__PURE__ */ jsx(
269
- SwitchPrimitive.Thumb,
270
- {
271
- className: cn(
272
- "pointer-events-none block rounded-full ring-0 transition-transform shadow-sm",
273
- "bg-background",
274
- "data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
275
- thumbClasses[size]
276
- )
277
- }
278
- )
279
- }
280
- );
281
- });
282
- Switch.displayName = SwitchPrimitive.Root.displayName;
283
- const trackVariants = {
284
- default: "bg-primary/20",
285
- success: "bg-success/20",
286
- info: "bg-info/20",
287
- warning: "bg-warning/20",
288
- destructive: "bg-destructive/20"
289
- };
290
- const indicatorVariants = {
291
- default: "bg-primary",
292
- success: "bg-success",
293
- info: "bg-info",
294
- warning: "bg-warning",
295
- destructive: "bg-destructive"
296
- };
297
- function Progress({
298
- className,
299
- value,
300
- variant = "default",
301
- ...props
302
- }) {
303
- return /* @__PURE__ */ jsx(
304
- ProgressPrimitive.Root,
305
- {
306
- "data-slot": "progress",
307
- "aria-label": props["aria-label"] || "Progresso",
308
- className: cn(
309
- "relative h-2 w-full overflow-hidden rounded-full",
310
- trackVariants[variant],
311
- className
312
- ),
313
- ...props,
314
- children: /* @__PURE__ */ jsx(
315
- ProgressPrimitive.Indicator,
316
- {
317
- "data-slot": "progress-indicator",
318
- className: cn("h-full w-full flex-1 transition-all", indicatorVariants[variant]),
319
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
320
- }
321
- )
322
- }
323
- );
324
- }
325
- function Separator({
326
- className,
327
- orientation = "horizontal",
328
- decorative = true,
329
- ...props
330
- }) {
331
- return /* @__PURE__ */ jsx(
332
- SeparatorPrimitive.Root,
333
- {
334
- "data-slot": "separator-root",
335
- decorative,
336
- orientation,
337
- className: cn(
338
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
339
- className
340
- ),
341
- ...props
342
- }
343
- );
344
- }
345
- function useMapLayers(map, layers) {
346
- const trafficLayerRef = useRef(null);
347
- const transitLayerRef = useRef(null);
348
- const bicyclingLayerRef = useRef(null);
349
- useEffect(() => {
350
- if (!map) return;
351
- if (layers.traffic) {
352
- if (!trafficLayerRef.current) {
353
- trafficLayerRef.current = new google.maps.TrafficLayer();
354
- }
355
- trafficLayerRef.current.setMap(map);
356
- } else {
357
- if (trafficLayerRef.current) {
358
- trafficLayerRef.current.setMap(null);
359
- }
360
- }
361
- return () => {
362
- if (trafficLayerRef.current) {
363
- trafficLayerRef.current.setMap(null);
364
- }
365
- };
366
- }, [map, layers.traffic]);
367
- useEffect(() => {
368
- if (!map) return;
369
- if (layers.transit) {
370
- if (!transitLayerRef.current) {
371
- transitLayerRef.current = new google.maps.TransitLayer();
372
- }
373
- transitLayerRef.current.setMap(map);
374
- } else {
375
- if (transitLayerRef.current) {
376
- transitLayerRef.current.setMap(null);
377
- }
378
- }
379
- return () => {
380
- if (transitLayerRef.current) {
381
- transitLayerRef.current.setMap(null);
382
- }
383
- };
384
- }, [map, layers.transit]);
385
- useEffect(() => {
386
- if (!map) return;
387
- if (layers.bicycling) {
388
- if (!bicyclingLayerRef.current) {
389
- bicyclingLayerRef.current = new google.maps.BicyclingLayer();
390
- }
391
- bicyclingLayerRef.current.setMap(map);
392
- } else {
393
- if (bicyclingLayerRef.current) {
394
- bicyclingLayerRef.current.setMap(null);
395
- }
396
- }
397
- return () => {
398
- if (bicyclingLayerRef.current) {
399
- bicyclingLayerRef.current.setMap(null);
400
- }
401
- };
402
- }, [map, layers.bicycling]);
403
- }
404
- const __vite_import_meta_env__$1 = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
405
- const DEFAULT_CENTER = { lat: -23.5505, lng: -46.6333 };
406
- const DEFAULT_ZOOM = 12;
407
- const MapContent = React__default.forwardRef(
408
- ({ apiKey, ...props }, ref) => {
409
- const { isLoaded, loadError, load } = useGoogleMapsLoader();
410
- const {
411
- center = DEFAULT_CENTER,
412
- zoom = DEFAULT_ZOOM,
413
- markers = [],
414
- circle,
415
- polygon,
416
- layers,
417
- height = "400px",
418
- mapContainerClassName,
419
- disableDefaultUI = false,
420
- zoomControl = true,
421
- streetViewControl = false,
422
- mapTypeControl = false,
423
- fullscreenControl = true,
424
- gestureHandling = "cooperative",
425
- onMapLoad,
426
- className,
427
- ...divProps
428
- } = props;
429
- const [selectedMarker, setSelectedMarker] = useState(null);
430
- const mapRef = useRef(null);
431
- const gmpMapRef = useRef(null);
432
- const infoWindowRef = useRef(null);
433
- const circleRef = useRef(null);
434
- const polygonRef = useRef(null);
435
- const [themeColors, setThemeColors] = useState({
436
- primary: "#4F46E5",
437
- chart2: "#10B981"
438
- });
439
- useEffect(() => {
440
- if (typeof window !== "undefined") {
441
- const styles = getComputedStyle(document.documentElement);
442
- setThemeColors({
443
- primary: styles.getPropertyValue("--primary").trim() || "#4F46E5",
444
- chart2: styles.getPropertyValue("--chart-2").trim() || "#10B981"
445
- });
446
- }
447
- }, []);
448
- useEffect(() => {
449
- if (!isLoaded && apiKey && !loadError && load) {
450
- load(apiKey).catch(console.error);
451
- }
452
- }, [isLoaded, apiKey, loadError, load]);
453
- useEffect(() => {
454
- if (!isLoaded || !gmpMapRef.current) return;
455
- const gmpMap = gmpMapRef.current;
456
- if (gmpMap.innerMap) {
457
- mapRef.current = gmpMap.innerMap;
458
- if (onMapLoad) {
459
- onMapLoad(gmpMap.innerMap);
460
- }
461
- } else {
462
- const interval = setInterval(() => {
463
- if (gmpMap.innerMap) {
464
- mapRef.current = gmpMap.innerMap;
465
- if (onMapLoad) {
466
- onMapLoad(gmpMap.innerMap);
467
- }
468
- clearInterval(interval);
469
- }
470
- }, 100);
471
- return () => clearInterval(interval);
472
- }
473
- return () => {
474
- mapRef.current = null;
475
- };
476
- }, [isLoaded]);
477
- useEffect(() => {
478
- if (gmpMapRef.current) {
479
- if (center) gmpMapRef.current.center = center;
480
- }
481
- }, [center]);
482
- useEffect(() => {
483
- if (gmpMapRef.current) {
484
- if (zoom !== void 0) gmpMapRef.current.zoom = zoom;
485
- }
486
- }, [zoom]);
487
- useEffect(() => {
488
- if (gmpMapRef.current) {
489
- if (props.mapTypeId) gmpMapRef.current.mapTypeId = props.mapTypeId;
490
- }
491
- }, [props.mapTypeId]);
492
- useEffect(() => {
493
- var _a;
494
- const map = mapRef.current;
495
- if (!map || !isLoaded) return;
496
- (_a = circleRef.current) == null ? void 0 : _a.setMap(null);
497
- circleRef.current = null;
498
- if (circle && circle.center && circle.radius) {
499
- circleRef.current = new google.maps.Circle({
500
- map,
501
- center: circle.center,
502
- radius: circle.radius,
503
- fillColor: circle.fillColor || themeColors.primary,
504
- fillOpacity: 0.2,
505
- strokeColor: circle.strokeColor || themeColors.primary,
506
- strokeOpacity: 0.8,
507
- strokeWeight: 2
508
- });
509
- }
510
- return () => {
511
- var _a2;
512
- (_a2 = circleRef.current) == null ? void 0 : _a2.setMap(null);
513
- };
514
- }, [circle, isLoaded, themeColors, mapRef.current]);
515
- useEffect(() => {
516
- var _a;
517
- const map = mapRef.current;
518
- if (!map || !isLoaded) return;
519
- (_a = polygonRef.current) == null ? void 0 : _a.setMap(null);
520
- polygonRef.current = null;
521
- if (polygon && polygon.paths) {
522
- polygonRef.current = new google.maps.Polygon({
523
- map,
524
- paths: polygon.paths,
525
- fillColor: polygon.fillColor || themeColors.chart2,
526
- fillOpacity: 0.2,
527
- strokeColor: polygon.strokeColor || themeColors.chart2,
528
- strokeOpacity: 0.8,
529
- strokeWeight: 2
530
- });
531
- }
532
- return () => {
533
- var _a2;
534
- (_a2 = polygonRef.current) == null ? void 0 : _a2.setMap(null);
535
- };
536
- }, [polygon, isLoaded, themeColors, mapRef.current]);
537
- useMapLayers(mapRef.current, layers || {});
538
- useEffect(() => {
539
- var _a;
540
- const map = mapRef.current;
541
- if (!map || selectedMarker === null) {
542
- (_a = infoWindowRef.current) == null ? void 0 : _a.close();
543
- return;
544
- }
545
- const markerData = markers[selectedMarker];
546
- if (!markerData) return;
547
- }, [selectedMarker, markers]);
548
- const handleMarkerClick = (index, markerElement) => {
549
- setSelectedMarker(index);
550
- const map = mapRef.current;
551
- if (!map) return;
552
- const markerData = markers[index];
553
- if (!markerData) return;
554
- let contentToRender = markerData.richContent;
555
- if (!contentToRender && (markerData.title || markerData.info)) {
556
- contentToRender = /* @__PURE__ */ jsxs("div", { className: "p-4 pr-8 min-w-[200px] max-w-[300px]", children: [
557
- markerData.title && /* @__PURE__ */ jsx("h4", { className: "font-semibold text-base mb-1", children: markerData.title }),
558
- markerData.info && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: markerData.info })
559
- ] });
560
- }
561
- if (contentToRender && markerElement.innerMarker) {
562
- if (!infoWindowRef.current) {
563
- infoWindowRef.current = new google.maps.InfoWindow();
564
- }
565
- const container = document.createElement("div");
566
- const root = createRoot(container);
567
- root.render(contentToRender);
568
- infoWindowRef.current.setContent(container);
569
- infoWindowRef.current.open({
570
- map,
571
- anchor: markerElement.innerMarker
572
- });
573
- infoWindowRef.current.addListener("closeclick", () => {
574
- setSelectedMarker(null);
575
- setTimeout(() => root.unmount(), 0);
576
- });
577
- }
578
- };
579
- if (loadError) {
580
- return /* @__PURE__ */ jsx(
581
- "div",
582
- {
583
- ref,
584
- className: cn(
585
- "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
586
- className
587
- ),
588
- style: { height },
589
- ...divProps,
590
- children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-2 p-6", children: [
591
- /* @__PURE__ */ jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
592
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: "Failed to load Google Maps" }),
593
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
594
- ] }) })
595
- }
596
- );
597
- }
598
- if (!isLoaded) {
599
- return /* @__PURE__ */ jsx(
600
- "div",
601
- {
602
- ref,
603
- className: cn(
604
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
605
- className
606
- ),
607
- style: { height },
608
- ...divProps
609
- }
610
- );
611
- }
612
- return /* @__PURE__ */ jsx(
613
- "div",
614
- {
615
- ref,
616
- className: cn(
617
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
618
- className
619
- ),
620
- style: { height },
621
- ...divProps,
622
- children: /* @__PURE__ */ jsx(
623
- "gmp-map",
624
- {
625
- ref: gmpMapRef,
626
- style: { height: "100%", width: "100%", display: "block" },
627
- "map-id": props.mapId || "DEMO_MAP_ID",
628
- children: markers.map((markerData, idx) => {
629
- const markerColor = markerData.customColor || "var(--primary)";
630
- const iconColor = markerData.iconColor || "white";
631
- return (
632
- // @ts-ignore
633
- /* @__PURE__ */ jsx(
634
- "gmp-advanced-marker",
635
- {
636
- title: markerData.title,
637
- ref: (el) => {
638
- if (el) {
639
- el.position = markerData.position;
640
- el.addEventListener("gmp-click", () => handleMarkerClick(idx, el));
641
- }
642
- },
643
- children: /* @__PURE__ */ jsx(
644
- "div",
645
- {
646
- className: "flex items-center justify-center w-8 h-8 border-[3px] border-background shadow-lg cursor-pointer origin-center transition-transform duration-200",
647
- style: {
648
- borderRadius: "50% 50% 50% 0",
649
- transform: "rotate(-45deg)",
650
- backgroundColor: markerColor
651
- },
652
- children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center rotate-45", children: markerData.iconSvg ? /* @__PURE__ */ jsx(
653
- "div",
654
- {
655
- dangerouslySetInnerHTML: { __html: markerData.iconSvg },
656
- style: { color: iconColor, width: 16, height: 16, fill: "currentColor" }
657
- }
658
- ) : /* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", style: { color: iconColor }, children: markerData.icon || markerData.label || "" }) })
659
- }
660
- )
661
- },
662
- idx
663
- )
664
- );
665
- })
666
- }
667
- )
668
- }
669
- );
670
- }
671
- );
672
- MapContent.displayName = "MapContent";
673
- const Map$1 = React__default.forwardRef(
674
- (props, ref) => {
675
- const { isLoaded, loadError } = useGoogleMapsLoader();
676
- const effectiveApiKey = props.apiKey || typeof import.meta !== "undefined" && __vite_import_meta_env__$1 && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
677
- const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
678
- if (isLoaded || isValidKey || loadError) {
679
- return /* @__PURE__ */ jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
680
- }
681
- const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
682
- if (isScriptInjected) {
683
- return /* @__PURE__ */ jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
684
- }
685
- return /* @__PURE__ */ jsx(
686
- "div",
687
- {
688
- ref,
689
- className: cn(
690
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
691
- props.className
692
- ),
693
- style: { height: props.height || "400px" },
694
- children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-muted", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-3 p-6", children: [
695
- /* @__PURE__ */ jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
696
- /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
697
- /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
698
- ] }) }),
699
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
700
- ] }) })
701
- }
702
- );
703
- }
704
- );
705
- Map$1.displayName = "Map";
706
- function PageHeader({
707
- title,
708
- subtitle,
709
- backHref,
710
- onBack,
711
- renderBackLink,
712
- actions,
713
- className,
714
- backLabel = "Back"
715
- }) {
716
- const showBack = !!(backHref || onBack || renderBackLink);
717
- const icon = /* @__PURE__ */ jsx(ChevronLeft, { className: "h-5 w-5" });
718
- return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4 md:flex-row md:items-center md:justify-between mb-8", className), children: [
719
- /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4", children: [
720
- showBack && /* @__PURE__ */ jsx(
721
- Button,
722
- {
723
- variant: "outline",
724
- size: "icon",
725
- className: "h-10 w-10 shrink-0",
726
- onClick: onBack,
727
- asChild: !!renderBackLink || !!backHref,
728
- "aria-label": backLabel,
729
- children: renderBackLink ? renderBackLink(icon) : backHref ? /* @__PURE__ */ jsx("a", { href: backHref, children: icon }) : icon
730
- }
731
- ),
732
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1", children: [
733
- /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: title }),
734
- subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: subtitle })
735
- ] })
736
- ] }),
737
- actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: actions })
738
- ] });
739
- }
740
- function PageHeaderHeading({
741
- className,
742
- ...props
743
- }) {
744
- return /* @__PURE__ */ jsx(
745
- "h1",
746
- {
747
- className: cn(
748
- "text-3xl font-bold leading-tight tracking-tighter md:text-4xl lg:leading-[1.1]",
749
- className
750
- ),
751
- ...props
752
- }
753
- );
754
- }
755
- function PageHeaderDescription({
756
- className,
757
- ...props
758
- }) {
759
- return /* @__PURE__ */ jsx(
760
- "p",
761
- {
762
- className: cn(
763
- "text-lg text-muted-foreground sm:text-xl",
764
- className
765
- ),
766
- ...props
767
- }
768
- );
769
- }
770
- function AlertDialog({
771
- ...props
772
- }) {
773
- return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
774
- }
775
- function AlertDialogTrigger({
776
- ...props
777
- }) {
778
- return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
779
- }
780
- function AlertDialogPortal({
781
- ...props
782
- }) {
783
- return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
784
- }
785
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => {
786
- return /* @__PURE__ */ jsx(
787
- AlertDialogPrimitive.Overlay,
788
- {
789
- ref,
790
- "data-slot": "alert-dialog-overlay",
791
- className: cn(
792
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
793
- className
794
- ),
795
- ...props
796
- }
797
- );
798
- });
799
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
800
- function AlertDialogContent({
801
- className,
802
- ...props
803
- }) {
804
- return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
805
- /* @__PURE__ */ jsx(AlertDialogOverlay, {}),
806
- /* @__PURE__ */ jsx(
807
- AlertDialogPrimitive.Content,
808
- {
809
- "data-slot": "alert-dialog-content",
810
- className: cn(
811
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
812
- className
813
- ),
814
- ...props
815
- }
816
- )
817
- ] });
818
- }
819
- function AlertDialogHeader({
820
- className,
821
- ...props
822
- }) {
823
- return /* @__PURE__ */ jsx(
824
- "div",
825
- {
826
- "data-slot": "alert-dialog-header",
827
- className: cn("flex flex-col gap-2 text-center sm:text-left", className),
828
- ...props
829
- }
830
- );
831
- }
832
- function AlertDialogFooter({
833
- className,
834
- ...props
835
- }) {
836
- return /* @__PURE__ */ jsx(
837
- "div",
838
- {
839
- "data-slot": "alert-dialog-footer",
840
- className: cn(
841
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
842
- className
843
- ),
844
- ...props
845
- }
846
- );
847
- }
848
- function AlertDialogTitle({
849
- className,
850
- ...props
851
- }) {
852
- return /* @__PURE__ */ jsx(
853
- AlertDialogPrimitive.Title,
854
- {
855
- "data-slot": "alert-dialog-title",
856
- className: cn("text-lg font-semibold", className),
857
- ...props
858
- }
859
- );
860
- }
861
- function AlertDialogDescription({
862
- className,
863
- ...props
864
- }) {
865
- return /* @__PURE__ */ jsx(
866
- AlertDialogPrimitive.Description,
867
- {
868
- "data-slot": "alert-dialog-description",
869
- className: cn("text-muted-foreground text-sm", className),
870
- ...props
871
- }
872
- );
873
- }
874
- function AlertDialogAction({
875
- className,
876
- ...props
877
- }) {
878
- return /* @__PURE__ */ jsx(
879
- AlertDialogPrimitive.Action,
880
- {
881
- className: cn(buttonVariants(), className),
882
- ...props
883
- }
884
- );
885
- }
886
- function AlertDialogCancel({
887
- className,
888
- ...props
889
- }) {
890
- return /* @__PURE__ */ jsx(
891
- AlertDialogPrimitive.Cancel,
892
- {
893
- className: cn(buttonVariants({ variant: "outline" }), className),
894
- ...props
895
- }
896
- );
897
- }
898
- const ERROR_IMG_SRC = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
899
- function ImageWithFallback(props) {
900
- const [didError, setDidError] = useState(false);
901
- const handleError = () => {
902
- setDidError(true);
903
- };
904
- const { src, alt, style, className, ...rest } = props;
905
- return didError ? /* @__PURE__ */ jsx(
906
- "div",
907
- {
908
- className: `inline-block bg-gray-100 text-center align-middle ${className ?? ""}`,
909
- style,
910
- children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ jsx("img", { src: ERROR_IMG_SRC, alt: "Error loading image", ...rest, "data-original-url": src }) })
911
- }
912
- ) : /* @__PURE__ */ jsx("img", { src, alt, className, style, ...rest, onError: handleError });
913
- }
914
- function AspectRatio({
915
- ...props
916
- }) {
917
- return /* @__PURE__ */ jsx(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
918
- }
919
- const ResizableContext = React.createContext(null);
920
- const ResizablePanelGroup = ({
921
- children,
922
- className,
923
- direction = "horizontal",
924
- id,
925
- autoSaveId,
926
- storage,
927
- onLayout,
928
- ...props
929
- }) => {
930
- const [panels, setPanels] = React.useState(/* @__PURE__ */ new Map());
931
- const [handles, setHandles] = React.useState(/* @__PURE__ */ new Map());
932
- const [sizes, setSizes] = React.useState(/* @__PURE__ */ new Map());
933
- const [isDragging, setIsDragging] = React.useState(false);
934
- const containerRef = React.useRef(null);
935
- const getSortedItems = React.useCallback((items) => {
936
- if (!containerRef.current) return [];
937
- return Array.from(items.values()).sort((a, b) => {
938
- if (!a.ref.current || !b.ref.current) return 0;
939
- const position = a.ref.current.compareDocumentPosition(b.ref.current);
940
- if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
941
- if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
942
- return 0;
943
- });
944
- }, []);
945
- React.useEffect(() => {
946
- const sortedPanels = getSortedItems(panels);
947
- if (sortedPanels.length === 0) return;
948
- const uninitialized = sortedPanels.some((p) => !sizes.has(p.id));
949
- if (uninitialized) {
950
- const newSizes = new Map(sizes);
951
- const remainingSpace = 100;
952
- const defaultSizeCount = sortedPanels.filter((p) => p.defaultSize).length;
953
- let usedSpace = 0;
954
- sortedPanels.forEach((p) => {
955
- if (p.defaultSize) usedSpace += p.defaultSize;
956
- });
957
- const spaceForOthers = Math.max(0, remainingSpace - usedSpace);
958
- const countOthers = sortedPanels.length - defaultSizeCount;
959
- const sizeForOthers = countOthers > 0 ? spaceForOthers / countOthers : 0;
960
- sortedPanels.forEach((p) => {
961
- if (!newSizes.has(p.id)) {
962
- newSizes.set(p.id, p.defaultSize ?? sizeForOthers);
963
- }
964
- });
965
- setSizes(newSizes);
966
- }
967
- }, [panels, sizes, getSortedItems]);
968
- const registerPanel = React.useCallback((data) => {
969
- setPanels((prev) => {
970
- const next = new Map(prev);
971
- next.set(data.id, data);
972
- return next;
973
- });
974
- }, []);
975
- const unregisterPanel = React.useCallback((id2) => {
976
- setPanels((prev) => {
977
- const next = new Map(prev);
978
- next.delete(id2);
979
- return next;
980
- });
981
- setSizes((prev) => {
982
- const next = new Map(prev);
983
- next.delete(id2);
984
- return next;
985
- });
986
- }, []);
987
- const registerHandle = React.useCallback((data) => {
988
- setHandles((prev) => {
989
- const next = new Map(prev);
990
- next.set(data.id, data);
991
- return next;
992
- });
993
- }, []);
994
- const unregisterHandle = React.useCallback((id2) => {
995
- setHandles((prev) => {
996
- const next = new Map(prev);
997
- next.delete(id2);
998
- return next;
999
- });
1000
- }, []);
1001
- const startDragging = React.useCallback((handleId, event) => {
1002
- var _a, _b;
1003
- event.preventDefault();
1004
- setIsDragging(true);
1005
- const sortedPanels = getSortedItems(panels);
1006
- const sortedHandles = getSortedItems(handles);
1007
- const handleIndex = sortedHandles.findIndex((h) => h.id === handleId);
1008
- if (handleIndex === -1) return;
1009
- const leftPanel = sortedPanels[handleIndex];
1010
- const rightPanel = sortedPanels[handleIndex + 1];
1011
- if (!leftPanel || !rightPanel) return;
1012
- const startX = "touches" in event ? event.touches[0].clientX : event.clientX;
1013
- const startY = "touches" in event ? event.touches[0].clientY : event.clientY;
1014
- const startSizeLeft = sizes.get(leftPanel.id) || 0;
1015
- const startSizeRight = sizes.get(rightPanel.id) || 0;
1016
- const containerSize = direction === "horizontal" ? ((_a = containerRef.current) == null ? void 0 : _a.offsetWidth) || 1 : ((_b = containerRef.current) == null ? void 0 : _b.offsetHeight) || 1;
1017
- const onMove = (e) => {
1018
- var _a2, _b2;
1019
- const currentX = "touches" in e ? e.touches[0].clientX : e.clientX;
1020
- const currentY = "touches" in e ? e.touches[0].clientY : e.clientY;
1021
- const deltaPixels = direction === "horizontal" ? currentX - startX : currentY - startY;
1022
- const deltaPercent = deltaPixels / containerSize * 100;
1023
- let finalLeft = startSizeLeft + deltaPercent;
1024
- let finalRight = startSizeRight - deltaPercent;
1025
- if (leftPanel.minSize !== void 0 && finalLeft < leftPanel.minSize) {
1026
- const diff = leftPanel.minSize - finalLeft;
1027
- finalLeft = leftPanel.minSize;
1028
- finalRight -= diff;
1029
- }
1030
- if (rightPanel.minSize !== void 0 && finalRight < rightPanel.minSize) {
1031
- const diff = rightPanel.minSize - finalRight;
1032
- finalRight = rightPanel.minSize;
1033
- finalLeft -= diff;
1034
- }
1035
- if (leftPanel.maxSize !== void 0 && finalLeft > leftPanel.maxSize) {
1036
- const diff = finalLeft - leftPanel.maxSize;
1037
- finalLeft = leftPanel.maxSize;
1038
- finalRight += diff;
1039
- }
1040
- if (rightPanel.maxSize !== void 0 && finalRight > rightPanel.maxSize) {
1041
- const diff = finalRight - rightPanel.maxSize;
1042
- finalRight = rightPanel.maxSize;
1043
- finalLeft -= diff;
1044
- }
1045
- finalLeft = Math.max(0, Math.min(100, finalLeft));
1046
- finalRight = Math.max(0, Math.min(100, finalRight));
1047
- setSizes((prev) => {
1048
- const next = new Map(prev);
1049
- next.set(leftPanel.id, finalLeft);
1050
- next.set(rightPanel.id, finalRight);
1051
- return next;
1052
- });
1053
- (_a2 = leftPanel.onResize) == null ? void 0 : _a2.call(leftPanel, finalLeft);
1054
- (_b2 = rightPanel.onResize) == null ? void 0 : _b2.call(rightPanel, finalRight);
1055
- };
1056
- const onUp = () => {
1057
- setIsDragging(false);
1058
- window.removeEventListener("mousemove", onMove);
1059
- window.removeEventListener("mouseup", onUp);
1060
- window.removeEventListener("touchmove", onMove);
1061
- window.removeEventListener("touchend", onUp);
1062
- if (onLayout) {
1063
- onLayout(sortedPanels.map((p) => sizes.get(p.id) || 0));
1064
- }
1065
- };
1066
- window.addEventListener("mousemove", onMove);
1067
- window.addEventListener("mouseup", onUp);
1068
- window.addEventListener("touchmove", onMove);
1069
- window.addEventListener("touchend", onUp);
1070
- }, [panels, handles, sizes, direction, getSortedItems, onLayout]);
1071
- const getPanelStyle = React.useCallback((id2) => {
1072
- const size = sizes.get(id2);
1073
- if (size === void 0) return { flex: "1 1 0%", overflow: "hidden" };
1074
- return { flex: `${size} 1 0%`, overflow: "hidden" };
1075
- }, [sizes]);
1076
- const contextValue = React.useMemo(() => ({
1077
- direction,
1078
- registerPanel,
1079
- unregisterPanel,
1080
- registerHandle,
1081
- unregisterHandle,
1082
- isDragging,
1083
- startDragging,
1084
- getPanelStyle
1085
- }), [direction, registerPanel, unregisterPanel, registerHandle, unregisterHandle, isDragging, startDragging, getPanelStyle]);
1086
- return /* @__PURE__ */ jsx(ResizableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
1087
- "div",
1088
- {
1089
- ref: containerRef,
1090
- "data-slot": "resizable-panel-group",
1091
- "data-panel-group-direction": direction,
1092
- className: cn(
1093
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
1094
- className
1095
- ),
1096
- ...props,
1097
- children
1098
- }
1099
- ) });
1100
- };
1101
- const ResizablePanel = ({
1102
- className,
1103
- defaultSize,
1104
- minSize = 0,
1105
- maxSize = 100,
1106
- collapsible,
1107
- collapsedSize,
1108
- onCollapse,
1109
- onExpand,
1110
- onResize,
1111
- order,
1112
- tagName,
1113
- id: propId,
1114
- children,
1115
- ...props
1116
- }) => {
1117
- const context = React.useContext(ResizableContext);
1118
- const ref = React.useRef(null);
1119
- const [generatedId] = React.useState(() => Math.random().toString(36).substr(2, 9));
1120
- const id = propId || generatedId;
1121
- const registerPanel = context == null ? void 0 : context.registerPanel;
1122
- const unregisterPanel = context == null ? void 0 : context.unregisterPanel;
1123
- React.useLayoutEffect(() => {
1124
- if (!registerPanel || !unregisterPanel) return;
1125
- registerPanel({
1126
- id,
1127
- ref,
1128
- defaultSize,
1129
- minSize,
1130
- maxSize,
1131
- collapsible,
1132
- onCollapse,
1133
- onExpand,
1134
- onResize
1135
- });
1136
- return () => unregisterPanel(id);
1137
- }, [registerPanel, unregisterPanel, id, defaultSize, minSize, maxSize, collapsible, onCollapse, onExpand, onResize]);
1138
- if (!context) {
1139
- return /* @__PURE__ */ jsx("div", { className: cn("flex-1", className), ...props, children });
1140
- }
1141
- return /* @__PURE__ */ jsx(
1142
- "div",
1143
- {
1144
- ref,
1145
- "data-slot": "resizable-panel",
1146
- className: cn("relative transition-[flex-grow] duration-0", className),
1147
- style: context.getPanelStyle(id),
1148
- ...props,
1149
- children
1150
- }
1151
- );
1152
- };
1153
- const ResizableHandle = ({
1154
- withHandle,
1155
- className,
1156
- id: propId,
1157
- tagName,
1158
- ...props
1159
- }) => {
1160
- const context = React.useContext(ResizableContext);
1161
- const ref = React.useRef(null);
1162
- const [generatedId] = React.useState(() => Math.random().toString(36).substr(2, 9));
1163
- const id = propId || generatedId;
1164
- const registerHandle = context == null ? void 0 : context.registerHandle;
1165
- const unregisterHandle = context == null ? void 0 : context.unregisterHandle;
1166
- React.useLayoutEffect(() => {
1167
- if (!registerHandle || !unregisterHandle) return;
1168
- registerHandle({ id, ref });
1169
- return () => unregisterHandle(id);
1170
- }, [registerHandle, unregisterHandle, id]);
1171
- const handleMouseDown = (e) => {
1172
- if (context) {
1173
- context.startDragging(id, e);
1174
- }
1175
- };
1176
- if (!context) return null;
1177
- return /* @__PURE__ */ jsx(
1178
- "div",
1179
- {
1180
- ref,
1181
- "data-slot": "resizable-handle",
1182
- className: cn(
1183
- "bg-border relative flex items-center justify-center focus-visible:outline-hidden",
1184
- "touch-none select-none",
1185
- context.direction === "vertical" ? "h-px w-full cursor-row-resize after:left-0 after:h-1 after:w-full after:-translate-y-1/2 hover:after:h-4" : "w-px h-full cursor-col-resize after:top-0 after:w-1 after:h-full after:-translate-x-1/2 hover:after:w-4",
1186
- "after:absolute after:z-10",
1187
- className
1188
- ),
1189
- onMouseDown: handleMouseDown,
1190
- onTouchStart: handleMouseDown,
1191
- ...props,
1192
- children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsx(GripVerticalIcon, { className: "size-2.5" }) })
1193
- }
1194
- );
1195
- };
1196
- function NavigationMenu({
1197
- className,
1198
- children,
1199
- viewport = true,
1200
- ...props
1201
- }) {
1202
- return /* @__PURE__ */ jsxs(
1203
- NavigationMenuPrimitive.Root,
1204
- {
1205
- "data-slot": "navigation-menu",
1206
- className: cn(
1207
- "relative z-10 flex w-full flex-1 items-center justify-center",
1208
- className
1209
- ),
1210
- ...props,
1211
- children: [
1212
- children,
1213
- viewport && /* @__PURE__ */ jsx(NavigationMenuViewport, {})
1214
- ]
1215
- }
1216
- );
1217
- }
1218
- function NavigationMenuList({
1219
- className,
1220
- ...props
1221
- }) {
1222
- return /* @__PURE__ */ jsx(
1223
- NavigationMenuPrimitive.List,
1224
- {
1225
- "data-slot": "navigation-menu-list",
1226
- className: cn(
1227
- "group flex flex-1 list-none items-center justify-center gap-1",
1228
- className
1229
- ),
1230
- ...props
1231
- }
1232
- );
1233
- }
1234
- function NavigationMenuItem({
1235
- className,
1236
- ...props
1237
- }) {
1238
- return /* @__PURE__ */ jsx(
1239
- NavigationMenuPrimitive.Item,
1240
- {
1241
- "data-slot": "navigation-menu-item",
1242
- className: cn("relative", className),
1243
- ...props
1244
- }
1245
- );
1246
- }
1247
- const navigationMenuTriggerStyle = cva(
1248
- "group inline-flex h-10 w-max items-center justify-center rounded-[var(--radius)] bg-background px-4 py-2 text-[var(--text-p)] font-[var(--font-weight-medium)] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 outline-none focus-visible:ring-2 focus-visible:ring-ring"
1249
- );
1250
- function NavigationMenuTrigger({
1251
- className,
1252
- children,
1253
- ...props
1254
- }) {
1255
- return /* @__PURE__ */ jsxs(
1256
- NavigationMenuPrimitive.Trigger,
1257
- {
1258
- "data-slot": "navigation-menu-trigger",
1259
- className: cn(navigationMenuTriggerStyle(), "group", className),
1260
- ...props,
1261
- children: [
1262
- children,
1263
- " ",
1264
- /* @__PURE__ */ jsx(
1265
- ChevronDownIcon,
1266
- {
1267
- className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
1268
- "aria-hidden": "true"
1269
- }
1270
- )
1271
- ]
1272
- }
1273
- );
1274
- }
1275
- function NavigationMenuContent({
1276
- className,
1277
- ...props
1278
- }) {
1279
- return /* @__PURE__ */ jsx(
1280
- NavigationMenuPrimitive.Content,
1281
- {
1282
- "data-slot": "navigation-menu-content",
1283
- className: cn(
1284
- "left-0 top-0 w-full md:w-auto",
1285
- className
1286
- ),
1287
- ...props
1288
- }
1289
- );
1290
- }
1291
- function NavigationMenuViewport({
1292
- className,
1293
- ...props
1294
- }) {
1295
- return /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center w-full"), children: /* @__PURE__ */ jsx(
1296
- NavigationMenuPrimitive.Viewport,
1297
- {
1298
- "data-slot": "navigation-menu-viewport",
1299
- className: cn(
1300
- "origin-top-center relative mt-1.5 overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-lg",
1301
- className
1302
- ),
1303
- ...props
1304
- }
1305
- ) });
1306
- }
1307
- function NavigationMenuLink({
1308
- className,
1309
- ...props
1310
- }) {
1311
- return /* @__PURE__ */ jsx(
1312
- NavigationMenuPrimitive.Link,
1313
- {
1314
- "data-slot": "navigation-menu-link",
1315
- className: cn(
1316
- "block select-none space-y-1 rounded-[var(--radius)] p-3 leading-none no-underline outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
1317
- className
1318
- ),
1319
- ...props
1320
- }
1321
- );
1322
- }
1323
- function NavigationMenuIndicator({
1324
- className,
1325
- ...props
1326
- }) {
1327
- return /* @__PURE__ */ jsx(
1328
- NavigationMenuPrimitive.Indicator,
1329
- {
1330
- "data-slot": "navigation-menu-indicator",
1331
- className: cn(
1332
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
1333
- className
1334
- ),
1335
- ...props,
1336
- children: /* @__PURE__ */ jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
1337
- }
1338
- );
1339
- }
1340
- function Pagination({ className, ...props }) {
1341
- return /* @__PURE__ */ jsx(
1342
- "nav",
1343
- {
1344
- role: "navigation",
1345
- "aria-label": "pagination",
1346
- "data-slot": "pagination",
1347
- className: cn("mx-auto flex w-full justify-center", className),
1348
- ...props
1349
- }
1350
- );
1351
- }
1352
- function PaginationContent({
1353
- className,
1354
- ...props
1355
- }) {
1356
- return /* @__PURE__ */ jsx(
1357
- "ul",
1358
- {
1359
- "data-slot": "pagination-content",
1360
- className: cn("flex flex-row items-center gap-1", className),
1361
- ...props
1362
- }
1363
- );
1364
- }
1365
- function PaginationItem({ ...props }) {
1366
- return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", ...props });
1367
- }
1368
- function PaginationLink({
1369
- className,
1370
- isActive,
1371
- size = "icon",
1372
- ...props
1373
- }) {
1374
- return /* @__PURE__ */ jsx(
1375
- "a",
1376
- {
1377
- "aria-current": isActive ? "page" : void 0,
1378
- "data-slot": "pagination-link",
1379
- "data-active": isActive,
1380
- className: cn(
1381
- buttonVariants({
1382
- variant: isActive ? "outline" : "ghost",
1383
- size
1384
- }),
1385
- className
1386
- ),
1387
- ...props
1388
- }
1389
- );
1390
- }
1391
- function PaginationPrevious({
1392
- className,
1393
- ...props
1394
- }) {
1395
- return /* @__PURE__ */ jsxs(
1396
- PaginationLink,
1397
- {
1398
- "aria-label": "Go to previous page",
1399
- size: "default",
1400
- className: cn("gap-1 px-2.5 sm:pl-2.5", className),
1401
- ...props,
1402
- children: [
1403
- /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
1404
- /* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Previous" })
1405
- ]
1406
- }
1407
- );
1408
- }
1409
- function PaginationNext({
1410
- className,
1411
- ...props
1412
- }) {
1413
- return /* @__PURE__ */ jsxs(
1414
- PaginationLink,
1415
- {
1416
- "aria-label": "Go to next page",
1417
- size: "default",
1418
- className: cn("gap-1 px-2.5 sm:pr-2.5", className),
1419
- ...props,
1420
- children: [
1421
- /* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Next" }),
1422
- /* @__PURE__ */ jsx(ChevronRightIcon, {})
1423
- ]
1424
- }
1425
- );
1426
- }
1427
- function PaginationEllipsis({
1428
- className,
1429
- ...props
1430
- }) {
1431
- return /* @__PURE__ */ jsxs(
1432
- "span",
1433
- {
1434
- "aria-hidden": true,
1435
- "data-slot": "pagination-ellipsis",
1436
- className: cn("flex size-9 items-center justify-center", className),
1437
- ...props,
1438
- children: [
1439
- /* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }),
1440
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
1441
- ]
1442
- }
1443
- );
1444
- }
1445
- const toggleVariants = cva(
1446
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
1447
- {
1448
- variants: {
1449
- variant: {
1450
- default: "bg-transparent",
1451
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
1452
- },
1453
- size: {
1454
- default: "h-9 px-2 min-w-9",
1455
- sm: "h-8 px-1.5 min-w-8",
1456
- lg: "h-10 px-2.5 min-w-10"
1457
- }
1458
- },
1459
- defaultVariants: {
1460
- variant: "default",
1461
- size: "default"
1462
- }
1463
- }
1464
- );
1465
- const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1466
- TogglePrimitive.Root,
1467
- {
1468
- ref,
1469
- "data-slot": "toggle",
1470
- className: cn(toggleVariants({ variant, size, className })),
1471
- ...props
1472
- }
1473
- ));
1474
- Toggle.displayName = TogglePrimitive.Root.displayName;
1475
- const ToggleGroupContext = React.createContext({
1476
- size: "default",
1477
- variant: "default"
1478
- });
1479
- const ToggleGroup = React.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
1480
- ToggleGroupPrimitive.Root,
1481
- {
1482
- ref,
1483
- "data-slot": "toggle-group",
1484
- "data-variant": variant,
1485
- "data-size": size,
1486
- className: cn(
1487
- "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
1488
- className
1489
- ),
1490
- ...props,
1491
- children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
1492
- }
1493
- ));
1494
- ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
1495
- const ToggleGroupItem = React.forwardRef(({ className, children, variant, size, ...props }, ref) => {
1496
- const context = React.useContext(ToggleGroupContext);
1497
- return /* @__PURE__ */ jsx(
1498
- ToggleGroupPrimitive.Item,
1499
- {
1500
- ref,
1501
- "data-slot": "toggle-group-item",
1502
- "data-variant": context.variant || variant,
1503
- "data-size": context.size || size,
1504
- className: cn(
1505
- toggleVariants({
1506
- variant: context.variant || variant,
1507
- size: context.size || size
1508
- }),
1509
- "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
1510
- className
1511
- ),
1512
- ...props,
1513
- children
1514
- }
1515
- );
1516
- });
1517
- ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
1518
- function InputOTP({
1519
- className,
1520
- containerClassName,
1521
- ...props
1522
- }) {
1523
- return /* @__PURE__ */ jsx(
1524
- OTPInput,
1525
- {
1526
- "data-slot": "input-otp",
1527
- containerClassName: cn(
1528
- "flex items-center gap-2 has-disabled:opacity-50",
1529
- containerClassName
1530
- ),
1531
- className: cn("disabled:cursor-not-allowed", className),
1532
- ...props
1533
- }
1534
- );
1535
- }
1536
- function InputOTPGroup({ className, ...props }) {
1537
- return /* @__PURE__ */ jsx(
1538
- "div",
1539
- {
1540
- "data-slot": "input-otp-group",
1541
- className: cn("flex items-center gap-1", className),
1542
- ...props
1543
- }
1544
- );
1545
- }
1546
- function InputOTPSlot({
1547
- index,
1548
- className,
1549
- size = "md",
1550
- ...props
1551
- }) {
1552
- const inputOTPContext = React.useContext(OTPInputContext);
1553
- const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
1554
- const sizeClasses = {
1555
- sm: "h-8 w-8 text-sm",
1556
- md: "h-10 w-10 text-base",
1557
- lg: "h-12 w-12 text-lg"
1558
- };
1559
- return /* @__PURE__ */ jsxs(
1560
- "div",
1561
- {
1562
- "data-slot": "input-otp-slot",
1563
- "data-active": isActive,
1564
- className: cn(
1565
- "data-[active=true]:border-primary data-[active=true]:ring-primary/20 data-[active=true]:aria-invalid:ring-destructive/20 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex items-center justify-center border border-border rounded-[var(--radius)] bg-background transition-all outline-none data-[active=true]:z-10 data-[active=true]:ring-2",
1566
- sizeClasses[size],
1567
- className
1568
- ),
1569
- ...props,
1570
- children: [
1571
- char,
1572
- hasFakeCaret && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
1573
- ]
1574
- }
1575
- );
1576
- }
1577
- function InputOTPSeparator({ ...props }) {
1578
- return /* @__PURE__ */ jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx(MinusIcon, {}) });
1579
- }
1580
- const Form = FormProvider;
1581
- const FormFieldContext = React.createContext(
1582
- {}
1583
- );
1584
- const FormField = ({
1585
- ...props
1586
- }) => {
1587
- return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
1588
- };
1589
- const useFormField = () => {
1590
- const fieldContext = React.useContext(FormFieldContext);
1591
- const itemContext = React.useContext(FormItemContext);
1592
- const { getFieldState } = useFormContext();
1593
- const formState = useFormState({ name: fieldContext.name });
1594
- const fieldState = getFieldState(
1595
- fieldContext.name,
1596
- formState
1597
- );
1598
- if (!fieldContext) {
1599
- throw new Error(
1600
- "useFormField should be used within <FormField>"
1601
- );
1602
- }
1603
- const { id } = itemContext;
1604
- return {
1605
- id,
1606
- name: fieldContext.name,
1607
- formItemId: `${id}-form-item`,
1608
- formDescriptionId: `${id}-form-item-description`,
1609
- formMessageId: `${id}-form-item-message`,
1610
- ...fieldState
1611
- };
1612
- };
1613
- const FormItemContext = React.createContext(
1614
- {}
1615
- );
1616
- function FormItem({
1617
- className,
1618
- ...props
1619
- }) {
1620
- const id = React.useId();
1621
- return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx(
1622
- "div",
1623
- {
1624
- "data-slot": "form-item",
1625
- className: cn("grid gap-2", className),
1626
- ...props
1627
- }
1628
- ) });
1629
- }
1630
- function FormLabel({
1631
- className,
1632
- ...props
1633
- }) {
1634
- const { error, formItemId } = useFormField();
1635
- return /* @__PURE__ */ jsx(
1636
- Label,
1637
- {
1638
- "data-slot": "form-label",
1639
- "data-error": !!error,
1640
- className: cn(
1641
- "data-[error=true]:text-destructive",
1642
- className
1643
- ),
1644
- htmlFor: formItemId,
1645
- ...props
1646
- }
1647
- );
1648
- }
1649
- function FormControl({
1650
- ...props
1651
- }) {
1652
- const {
1653
- error,
1654
- formItemId,
1655
- formDescriptionId,
1656
- formMessageId
1657
- } = useFormField();
1658
- return /* @__PURE__ */ jsx(
1659
- Slot,
1660
- {
1661
- "data-slot": "form-control",
1662
- id: formItemId,
1663
- "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1664
- "aria-invalid": !!error,
1665
- ...props
1666
- }
1667
- );
1668
- }
1669
- function FormDescription({
1670
- className,
1671
- ...props
1672
- }) {
1673
- const { formDescriptionId } = useFormField();
1674
- return /* @__PURE__ */ jsx(
1675
- "p",
1676
- {
1677
- "data-slot": "form-description",
1678
- id: formDescriptionId,
1679
- className: cn("text-muted-foreground text-sm", className),
1680
- ...props
1681
- }
1682
- );
1683
- }
1684
- function FormMessage({
1685
- className,
1686
- ...props
1687
- }) {
1688
- const { error, formMessageId } = useFormField();
1689
- const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
1690
- if (!body) {
1691
- return null;
1692
- }
1693
- return /* @__PURE__ */ jsx(
1694
- "p",
1695
- {
1696
- "data-slot": "form-message",
1697
- id: formMessageId,
1698
- className: cn("text-destructive text-sm", className),
1699
- ...props,
1700
- children: body
1701
- }
1702
- );
1703
- }
1704
- function Calendar({
1705
- className,
1706
- classNames,
1707
- showOutsideDays = true,
1708
- captionLayout = "label",
1709
- buttonVariant = "ghost",
1710
- formatters,
1711
- components,
1712
- ...props
1713
- }) {
1714
- const defaultClassNames = getDefaultClassNames();
1715
- const isDropdownCaption = captionLayout.startsWith("dropdown");
1716
- return /* @__PURE__ */ jsx(
1717
- DayPicker,
1718
- {
1719
- showOutsideDays,
1720
- className: cn(
1721
- "bg-background group/calendar p-4 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent font-sans",
1722
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1723
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
1724
- className
1725
- ),
1726
- captionLayout,
1727
- formatters,
1728
- classNames: {
1729
- root: cn("w-fit", defaultClassNames.root),
1730
- months: cn(
1731
- "flex gap-6 flex-col md:flex-row relative",
1732
- defaultClassNames.months
1733
- ),
1734
- month: cn("flex flex-col w-full gap-5", defaultClassNames.month),
1735
- nav: cn(
1736
- "flex items-center gap-2 w-full absolute top-0 inset-x-0 justify-between",
1737
- defaultClassNames.nav
1738
- ),
1739
- button_previous: cn(
1740
- buttonVariants({ variant: buttonVariant }),
1741
- "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
1742
- defaultClassNames.button_previous
1743
- ),
1744
- button_next: cn(
1745
- buttonVariants({ variant: buttonVariant }),
1746
- "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
1747
- defaultClassNames.button_next
1748
- ),
1749
- month_caption: cn(
1750
- "flex items-center justify-center w-full",
1751
- isDropdownCaption ? "h-auto px-0" : "h-(--cell-size) px-(--cell-size)",
1752
- defaultClassNames.month_caption
1753
- ),
1754
- dropdowns: cn(
1755
- "w-full flex items-center justify-center gap-2",
1756
- isDropdownCaption ? "h-auto" : "h-(--cell-size)",
1757
- defaultClassNames.dropdowns
1758
- ),
1759
- dropdown_root: cn(
1760
- isDropdownCaption ? "relative flex min-w-[7rem] items-center rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 px-2.5 py-1" : "relative rounded-[var(--radius)] hover:bg-accent transition-colors",
1761
- defaultClassNames.dropdown_root
1762
- ),
1763
- dropdown: cn(
1764
- isDropdownCaption ? "absolute inset-0 cursor-pointer opacity-0" : "absolute bg-popover inset-0 opacity-0 cursor-pointer",
1765
- defaultClassNames.dropdown
1766
- ),
1767
- caption_label: cn(
1768
- "select-none font-[family-name:var(--font-family,Roboto)] tracking-tight transition-all duration-200",
1769
- captionLayout === "label" ? "rounded-[var(--radius)] px-2 py-1 text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] hover:bg-accent hover:text-accent-foreground" : "flex h-full w-full items-center justify-between gap-2 rounded-[var(--radius)] text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] [&>svg]:text-muted-foreground [&>svg]:size-4",
1770
- defaultClassNames.caption_label
1771
- ),
1772
- table: "w-full border-collapse mt-1",
1773
- weekdays: cn("flex gap-1", defaultClassNames.weekdays),
1774
- weekday: cn(
1775
- "text-muted-foreground rounded-(--cell-radius) flex-1 select-none text-[length:var(--calendar-weekday-size)] font-[number:var(--font-weight-medium)] uppercase tracking-wider",
1776
- defaultClassNames.weekday
1777
- ),
1778
- week: cn("flex w-full gap-1", defaultClassNames.week),
1779
- week_number_header: cn(
1780
- "select-none w-(--cell-size)",
1781
- defaultClassNames.week_number_header
1782
- ),
1783
- week_number: cn(
1784
- "select-none text-muted-foreground text-[length:var(--calendar-weekday-size)]",
1785
- defaultClassNames.week_number
1786
- ),
1787
- day: cn(
1788
- "relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
1789
- props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
1790
- defaultClassNames.day
1791
- ),
1792
- range_start: cn(
1793
- "rounded-l-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:right-0 -z-0 isolate",
1794
- defaultClassNames.range_start
1795
- ),
1796
- range_middle: cn(
1797
- "rounded-none bg-accent/30",
1798
- defaultClassNames.range_middle
1799
- ),
1800
- range_end: cn(
1801
- "rounded-r-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:left-0 -z-0 isolate",
1802
- defaultClassNames.range_end
1803
- ),
1804
- today: cn(
1805
- "bg-accent/60 text-accent-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none font-[number:var(--font-weight-semibold)]",
1806
- defaultClassNames.today
1807
- ),
1808
- outside: cn(
1809
- "text-muted-foreground aria-selected:text-muted-foreground",
1810
- defaultClassNames.outside
1811
- ),
1812
- disabled: cn(
1813
- "text-muted-foreground/30 opacity-40",
1814
- defaultClassNames.disabled
1815
- ),
1816
- hidden: cn("invisible", defaultClassNames.hidden),
1817
- ...classNames
1818
- },
1819
- components: {
1820
- Root: ({ className: className2, rootRef, ...props2 }) => {
1821
- return /* @__PURE__ */ jsx(
1822
- "div",
1823
- {
1824
- "data-slot": "calendar",
1825
- ref: rootRef,
1826
- className: cn(className2),
1827
- ...props2
1828
- }
1829
- );
1830
- },
1831
- Chevron: ({ className: className2, orientation, ...props2 }) => {
1832
- if (orientation === "left") {
1833
- return /* @__PURE__ */ jsx(
1834
- ChevronLeft,
1835
- {
1836
- className: cn("size-5 transition-transform group-hover:scale-110", className2),
1837
- ...props2
1838
- }
1839
- );
1840
- }
1841
- if (orientation === "right") {
1842
- return /* @__PURE__ */ jsx(
1843
- ChevronRight,
1844
- {
1845
- className: cn("size-5 transition-transform group-hover:scale-110", className2),
1846
- ...props2
1847
- }
1848
- );
1849
- }
1850
- return /* @__PURE__ */ jsx(
1851
- ChevronDown,
1852
- {
1853
- className: cn("size-4", className2),
1854
- ...props2
1855
- }
1856
- );
1857
- },
1858
- DayButton: CalendarDayButton,
1859
- WeekNumber: ({ children, ...props2 }) => {
1860
- return /* @__PURE__ */ jsx("td", { ...props2, children: /* @__PURE__ */ jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center font-[number:var(--font-weight-medium)]", children }) });
1861
- },
1862
- ...components
1863
- },
1864
- ...props
1865
- }
1866
- );
1867
- }
1868
- function CalendarDayButton({
1869
- className,
1870
- day,
1871
- modifiers,
1872
- ...props
1873
- }) {
1874
- const defaultClassNames = getDefaultClassNames();
1875
- const ref = React.useRef(null);
1876
- React.useEffect(() => {
1877
- var _a;
1878
- if (modifiers.focused) (_a = ref.current) == null ? void 0 : _a.focus();
1879
- }, [modifiers.focused]);
1880
- return /* @__PURE__ */ jsx(
1881
- Button,
1882
- {
1883
- ref,
1884
- variant: "ghost",
1885
- size: "icon",
1886
- "data-day": day.date.toLocaleDateString(),
1887
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
1888
- "data-range-start": modifiers.range_start,
1889
- "data-range-end": modifiers.range_end,
1890
- "data-range-middle": modifiers.range_middle,
1891
- className: cn(
1892
- "relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col items-center justify-center gap-1 border-0 leading-none transition-all duration-200 cursor-pointer disabled:cursor-not-allowed",
1893
- "text-[length:var(--calendar-day-size)] font-[number:var(--font-weight-regular)]",
1894
- "hover:bg-accent/70 hover:text-accent-foreground hover:scale-105",
1895
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[selected-single=true]:font-[number:var(--font-weight-semibold)] data-[selected-single=true]:shadow-sm",
1896
- "data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-foreground",
1897
- "data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-start=true]:font-[number:var(--font-weight-semibold)] data-[range-start=true]:shadow-sm",
1898
- "data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-end=true]:font-[number:var(--font-weight-semibold)] data-[range-end=true]:shadow-sm",
1899
- "group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 group-data-[focused=true]/day:ring-2 group-data-[focused=true]/day:ring-offset-2 group-data-[focused=true]/day:ring-offset-background",
1900
- "data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius)",
1901
- "data-[range-middle=true]:rounded-none",
1902
- "data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius)",
1903
- "[&>span]:opacity-80",
1904
- defaultClassNames.day,
1905
- className
1906
- ),
1907
- ...props,
1908
- children: day.date.getDate()
1909
- }
1910
- );
1911
- }
1912
- function Sheet({ ...props }) {
1913
- return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
1914
- }
1915
- function SheetTrigger({
1916
- ...props
1917
- }) {
1918
- return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
1919
- }
1920
- function SheetPortal({
1921
- ...props
1922
- }) {
1923
- return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
1924
- }
1925
- const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1926
- DialogPrimitive.Overlay,
1927
- {
1928
- className: cn(
1929
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
1930
- className
1931
- ),
1932
- ...props,
1933
- ref
1934
- }
1935
- ));
1936
- SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
1937
- function SheetContent({
1938
- className,
1939
- children,
1940
- side = "right",
1941
- ...props
1942
- }) {
1943
- return /* @__PURE__ */ jsxs(SheetPortal, { children: [
1944
- /* @__PURE__ */ jsx(SheetOverlay, {}),
1945
- /* @__PURE__ */ jsxs(
1946
- DialogPrimitive.Content,
1947
- {
1948
- "data-slot": "sheet-content",
1949
- className: cn(
1950
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1951
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1952
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1953
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1954
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1955
- className
1956
- ),
1957
- ...props,
1958
- children: [
1959
- children,
1960
- /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
1961
- /* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
1962
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
1963
- ] })
1964
- ]
1965
- }
1966
- )
1967
- ] });
1968
- }
1969
- function SheetHeader({ className, ...props }) {
1970
- return /* @__PURE__ */ jsx(
1971
- "div",
1972
- {
1973
- "data-slot": "sheet-header",
1974
- className: cn("flex flex-col gap-1.5 px-6 pt-6", className),
1975
- ...props
1976
- }
1977
- );
1978
- }
1979
- function SheetFooter({ className, ...props }) {
1980
- return /* @__PURE__ */ jsx(
1981
- "div",
1982
- {
1983
- "data-slot": "sheet-footer",
1984
- className: cn("mt-auto flex flex-col gap-2 px-6 pb-6", className),
1985
- ...props
1986
- }
1987
- );
1988
- }
1989
- function SheetTitle({
1990
- className,
1991
- ...props
1992
- }) {
1993
- return /* @__PURE__ */ jsx(
1994
- DialogPrimitive.Title,
1995
- {
1996
- "data-slot": "sheet-title",
1997
- className: cn("text-foreground font-semibold", className),
1998
- ...props
1999
- }
2000
- );
2001
- }
2002
- function SheetDescription({
2003
- className,
2004
- ...props
2005
- }) {
2006
- return /* @__PURE__ */ jsx(
2007
- DialogPrimitive.Description,
2008
- {
2009
- "data-slot": "sheet-description",
2010
- className: cn("text-muted-foreground text-sm", className),
2011
- ...props
2012
- }
2013
- );
2014
- }
2015
- function Drawer({
2016
- ...props
2017
- }) {
2018
- return /* @__PURE__ */ jsx(Drawer$1.Root, { "data-slot": "drawer", ...props });
2019
- }
2020
- function DrawerTrigger({
2021
- ...props
2022
- }) {
2023
- return /* @__PURE__ */ jsx(Drawer$1.Trigger, { "data-slot": "drawer-trigger", ...props });
2024
- }
2025
- function DrawerPortal({
2026
- ...props
2027
- }) {
2028
- return /* @__PURE__ */ jsx(Drawer$1.Portal, { "data-slot": "drawer-portal", ...props });
2029
- }
2030
- const DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => {
2031
- return /* @__PURE__ */ jsx(
2032
- Drawer$1.Overlay,
2033
- {
2034
- ref,
2035
- "data-slot": "drawer-overlay",
2036
- className: cn(
2037
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
2038
- className
2039
- ),
2040
- ...props
2041
- }
2042
- );
2043
- });
2044
- DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
2045
- function DrawerContent({
2046
- className,
2047
- children,
2048
- ...props
2049
- }) {
2050
- return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
2051
- /* @__PURE__ */ jsx(DrawerOverlay, {}),
2052
- /* @__PURE__ */ jsxs(
2053
- Drawer$1.Content,
2054
- {
2055
- "data-slot": "drawer-content",
2056
- className: cn(
2057
- "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
2058
- "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
2059
- "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
2060
- "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
2061
- "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
2062
- className
2063
- ),
2064
- ...props,
2065
- children: [
2066
- /* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
2067
- children
2068
- ]
2069
- }
2070
- )
2071
- ] });
2072
- }
2073
- function DrawerHeader({ className, ...props }) {
2074
- return /* @__PURE__ */ jsx(
2075
- "div",
2076
- {
2077
- "data-slot": "drawer-header",
2078
- className: cn("flex flex-col gap-1.5 p-4", className),
2079
- ...props
2080
- }
2081
- );
2082
- }
2083
- function DrawerFooter({ className, ...props }) {
2084
- return /* @__PURE__ */ jsx(
2085
- "div",
2086
- {
2087
- "data-slot": "drawer-footer",
2088
- className: cn("mt-auto flex flex-col gap-2 p-4", className),
2089
- ...props
2090
- }
2091
- );
2092
- }
2093
- function DrawerTitle({
2094
- className,
2095
- ...props
2096
- }) {
2097
- return /* @__PURE__ */ jsx(
2098
- Drawer$1.Title,
2099
- {
2100
- "data-slot": "drawer-title",
2101
- className: cn("text-foreground font-semibold", className),
2102
- ...props
2103
- }
2104
- );
2105
- }
2106
- function DrawerDescription({
2107
- className,
2108
- ...props
2109
- }) {
2110
- return /* @__PURE__ */ jsx(
2111
- Drawer$1.Description,
2112
- {
2113
- "data-slot": "drawer-description",
2114
- className: cn("text-muted-foreground text-sm", className),
2115
- ...props
2116
- }
2117
- );
2118
- }
2119
- function DrawerHandle({ className, ...props }) {
2120
- return /* @__PURE__ */ jsx(
2121
- "div",
2122
- {
2123
- "data-slot": "drawer-handle",
2124
- className: cn("bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full", className),
2125
- ...props
2126
- }
2127
- );
2128
- }
2129
- function HoverCard({
2130
- ...props
2131
- }) {
2132
- return /* @__PURE__ */ jsx(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
2133
- }
2134
- function HoverCardTrigger({
2135
- ...props
2136
- }) {
2137
- return /* @__PURE__ */ jsx(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
2138
- }
2139
- function HoverCardContent({
2140
- className,
2141
- align = "center",
2142
- sideOffset = 4,
2143
- ...props
2144
- }) {
2145
- return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx(
2146
- HoverCardPrimitive.Content,
2147
- {
2148
- "data-slot": "hover-card-content",
2149
- align,
2150
- sideOffset,
2151
- className: cn(
2152
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2153
- className
2154
- ),
2155
- ...props
2156
- }
2157
- ) });
2158
- }
2159
- function ContextMenu({
2160
- ...props
2161
- }) {
2162
- return /* @__PURE__ */ jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
2163
- }
2164
- function ContextMenuTrigger({
2165
- ...props
2166
- }) {
2167
- return /* @__PURE__ */ jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
2168
- }
2169
- function ContextMenuGroup({
2170
- ...props
2171
- }) {
2172
- return /* @__PURE__ */ jsx(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
2173
- }
2174
- function ContextMenuPortal({
2175
- ...props
2176
- }) {
2177
- return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
2178
- }
2179
- function ContextMenuSub({
2180
- ...props
2181
- }) {
2182
- return /* @__PURE__ */ jsx(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
2183
- }
2184
- function ContextMenuRadioGroup({
2185
- ...props
2186
- }) {
2187
- return /* @__PURE__ */ jsx(
2188
- ContextMenuPrimitive.RadioGroup,
2189
- {
2190
- "data-slot": "context-menu-radio-group",
2191
- ...props
2192
- }
2193
- );
2194
- }
2195
- function ContextMenuSubTrigger({
2196
- className,
2197
- inset,
2198
- children,
2199
- ...props
2200
- }) {
2201
- return /* @__PURE__ */ jsxs(
2202
- ContextMenuPrimitive.SubTrigger,
2203
- {
2204
- "data-slot": "context-menu-sub-trigger",
2205
- "data-inset": inset,
2206
- className: cn(
2207
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2208
- className
2209
- ),
2210
- ...props,
2211
- children: [
2212
- children,
2213
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" })
2214
- ]
2215
- }
2216
- );
2217
- }
2218
- function ContextMenuSubContent({
2219
- className,
2220
- ...props
2221
- }) {
2222
- return /* @__PURE__ */ jsx(
2223
- ContextMenuPrimitive.SubContent,
2224
- {
2225
- "data-slot": "context-menu-sub-content",
2226
- className: cn(
2227
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2228
- className
2229
- ),
2230
- ...props
2231
- }
2232
- );
2233
- }
2234
- function ContextMenuContent({
2235
- className,
2236
- ...props
2237
- }) {
2238
- return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
2239
- ContextMenuPrimitive.Content,
2240
- {
2241
- "data-slot": "context-menu-content",
2242
- className: cn(
2243
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
2244
- className
2245
- ),
2246
- ...props
2247
- }
2248
- ) });
2249
- }
2250
- function ContextMenuItem({
2251
- className,
2252
- inset,
2253
- variant = "default",
2254
- ...props
2255
- }) {
2256
- return /* @__PURE__ */ jsx(
2257
- ContextMenuPrimitive.Item,
2258
- {
2259
- "data-slot": "context-menu-item",
2260
- "data-inset": inset,
2261
- "data-variant": variant,
2262
- className: cn(
2263
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2264
- className
2265
- ),
2266
- ...props
2267
- }
2268
- );
2269
- }
2270
- function ContextMenuCheckboxItem({
2271
- className,
2272
- children,
2273
- checked,
2274
- ...props
2275
- }) {
2276
- return /* @__PURE__ */ jsxs(
2277
- ContextMenuPrimitive.CheckboxItem,
2278
- {
2279
- "data-slot": "context-menu-checkbox-item",
2280
- className: cn(
2281
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2282
- className
2283
- ),
2284
- checked,
2285
- ...props,
2286
- children: [
2287
- /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
2288
- children
2289
- ]
2290
- }
2291
- );
2292
- }
2293
- function ContextMenuRadioItem({
2294
- className,
2295
- children,
2296
- ...props
2297
- }) {
2298
- return /* @__PURE__ */ jsxs(
2299
- ContextMenuPrimitive.RadioItem,
2300
- {
2301
- "data-slot": "context-menu-radio-item",
2302
- className: cn(
2303
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2304
- className
2305
- ),
2306
- ...props,
2307
- children: [
2308
- /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
2309
- children
2310
- ]
2311
- }
2312
- );
2313
- }
2314
- function ContextMenuLabel({
2315
- className,
2316
- inset,
2317
- ...props
2318
- }) {
2319
- return /* @__PURE__ */ jsx(
2320
- ContextMenuPrimitive.Label,
2321
- {
2322
- "data-slot": "context-menu-label",
2323
- "data-inset": inset,
2324
- className: cn(
2325
- "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2326
- className
2327
- ),
2328
- ...props
2329
- }
2330
- );
2331
- }
2332
- function ContextMenuSeparator({
2333
- className,
2334
- ...props
2335
- }) {
2336
- return /* @__PURE__ */ jsx(
2337
- ContextMenuPrimitive.Separator,
2338
- {
2339
- "data-slot": "context-menu-separator",
2340
- className: cn("bg-border -mx-1 my-1 h-px", className),
2341
- ...props
2342
- }
2343
- );
2344
- }
2345
- function ContextMenuShortcut({
2346
- className,
2347
- ...props
2348
- }) {
2349
- return /* @__PURE__ */ jsx(
2350
- "span",
2351
- {
2352
- "data-slot": "context-menu-shortcut",
2353
- className: cn(
2354
- "text-muted-foreground ml-auto text-xs tracking-widest",
2355
- className
2356
- ),
2357
- ...props
2358
- }
2359
- );
2360
- }
2361
- function Menubar({
2362
- className,
2363
- ...props
2364
- }) {
2365
- return /* @__PURE__ */ jsx(
2366
- MenubarPrimitive.Root,
2367
- {
2368
- "data-slot": "menubar",
2369
- className: cn(
2370
- "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
2371
- className
2372
- ),
2373
- ...props
2374
- }
2375
- );
2376
- }
2377
- function MenubarMenu({
2378
- ...props
2379
- }) {
2380
- return /* @__PURE__ */ jsx(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
2381
- }
2382
- function MenubarGroup({
2383
- ...props
2384
- }) {
2385
- return /* @__PURE__ */ jsx(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
2386
- }
2387
- function MenubarPortal({
2388
- ...props
2389
- }) {
2390
- return /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
2391
- }
2392
- function MenubarRadioGroup({
2393
- ...props
2394
- }) {
2395
- return /* @__PURE__ */ jsx(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
2396
- }
2397
- function MenubarTrigger({
2398
- className,
2399
- ...props
2400
- }) {
2401
- return /* @__PURE__ */ jsx(
2402
- MenubarPrimitive.Trigger,
2403
- {
2404
- "data-slot": "menubar-trigger",
2405
- className: cn(
2406
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
2407
- className
2408
- ),
2409
- ...props
2410
- }
2411
- );
2412
- }
2413
- function MenubarContent({
2414
- className,
2415
- align = "start",
2416
- alignOffset = -4,
2417
- sideOffset = 8,
2418
- ...props
2419
- }) {
2420
- return /* @__PURE__ */ jsx(MenubarPortal, { children: /* @__PURE__ */ jsx(
2421
- MenubarPrimitive.Content,
2422
- {
2423
- "data-slot": "menubar-content",
2424
- align,
2425
- alignOffset,
2426
- sideOffset,
2427
- className: cn(
2428
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2429
- className
2430
- ),
2431
- ...props
2432
- }
2433
- ) });
2434
- }
2435
- function MenubarItem({
2436
- className,
2437
- inset,
2438
- variant = "default",
2439
- ...props
2440
- }) {
2441
- return /* @__PURE__ */ jsx(
2442
- MenubarPrimitive.Item,
2443
- {
2444
- "data-slot": "menubar-item",
2445
- "data-inset": inset,
2446
- "data-variant": variant,
2447
- className: cn(
2448
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2449
- className
2450
- ),
2451
- ...props
2452
- }
2453
- );
2454
- }
2455
- function MenubarCheckboxItem({
2456
- className,
2457
- children,
2458
- checked,
2459
- ...props
2460
- }) {
2461
- return /* @__PURE__ */ jsxs(
2462
- MenubarPrimitive.CheckboxItem,
2463
- {
2464
- "data-slot": "menubar-checkbox-item",
2465
- className: cn(
2466
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2467
- className
2468
- ),
2469
- checked,
2470
- ...props,
2471
- children: [
2472
- /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
2473
- children
2474
- ]
2475
- }
2476
- );
2477
- }
2478
- function MenubarRadioItem({
2479
- className,
2480
- children,
2481
- ...props
2482
- }) {
2483
- return /* @__PURE__ */ jsxs(
2484
- MenubarPrimitive.RadioItem,
2485
- {
2486
- "data-slot": "menubar-radio-item",
2487
- className: cn(
2488
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2489
- className
2490
- ),
2491
- ...props,
2492
- children: [
2493
- /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
2494
- children
2495
- ]
2496
- }
2497
- );
2498
- }
2499
- function MenubarLabel({
2500
- className,
2501
- inset,
2502
- ...props
2503
- }) {
2504
- return /* @__PURE__ */ jsx(
2505
- MenubarPrimitive.Label,
2506
- {
2507
- "data-slot": "menubar-label",
2508
- "data-inset": inset,
2509
- className: cn(
2510
- "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2511
- className
2512
- ),
2513
- ...props
2514
- }
2515
- );
2516
- }
2517
- function MenubarSeparator({
2518
- className,
2519
- ...props
2520
- }) {
2521
- return /* @__PURE__ */ jsx(
2522
- MenubarPrimitive.Separator,
2523
- {
2524
- "data-slot": "menubar-separator",
2525
- className: cn("bg-border -mx-1 my-1 h-px", className),
2526
- ...props
2527
- }
2528
- );
2529
- }
2530
- function MenubarShortcut({
2531
- className,
2532
- ...props
2533
- }) {
2534
- return /* @__PURE__ */ jsx(
2535
- "span",
2536
- {
2537
- "data-slot": "menubar-shortcut",
2538
- className: cn(
2539
- "text-muted-foreground ml-auto text-xs tracking-widest",
2540
- className
2541
- ),
2542
- ...props
2543
- }
2544
- );
2545
- }
2546
- function MenubarSub({
2547
- ...props
2548
- }) {
2549
- return /* @__PURE__ */ jsx(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
2550
- }
2551
- function MenubarSubTrigger({
2552
- className,
2553
- inset,
2554
- children,
2555
- ...props
2556
- }) {
2557
- return /* @__PURE__ */ jsxs(
2558
- MenubarPrimitive.SubTrigger,
2559
- {
2560
- "data-slot": "menubar-sub-trigger",
2561
- "data-inset": inset,
2562
- className: cn(
2563
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
2564
- className
2565
- ),
2566
- ...props,
2567
- children: [
2568
- children,
2569
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })
2570
- ]
2571
- }
2572
- );
2573
- }
2574
- function MenubarSubContent({
2575
- className,
2576
- ...props
2577
- }) {
2578
- return /* @__PURE__ */ jsx(
2579
- MenubarPrimitive.SubContent,
2580
- {
2581
- "data-slot": "menubar-sub-content",
2582
- className: cn(
2583
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2584
- className
2585
- ),
2586
- ...props
2587
- }
2588
- );
2589
- }
2590
- function Command({
2591
- className,
2592
- ...props
2593
- }) {
2594
- return /* @__PURE__ */ jsx(
2595
- Command$1,
2596
- {
2597
- "data-slot": "command",
2598
- className: cn(
2599
- "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
2600
- className
2601
- ),
2602
- ...props
2603
- }
2604
- );
2605
- }
2606
- function CommandDialog({
2607
- title = "Command Palette",
2608
- description = "Search for a command to run...",
2609
- children,
2610
- ...props
2611
- }) {
2612
- return /* @__PURE__ */ jsxs(Dialog, { ...props, children: [
2613
- /* @__PURE__ */ jsxs(DialogHeader, { className: "sr-only", children: [
2614
- /* @__PURE__ */ jsx(DialogTitle, { children: title }),
2615
- /* @__PURE__ */ jsx(DialogDescription, { children: description })
2616
- ] }),
2617
- /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
2618
- ] });
2619
- }
2620
- function CommandInput({
2621
- className,
2622
- ...props
2623
- }) {
2624
- return /* @__PURE__ */ jsxs(
2625
- "div",
2626
- {
2627
- "data-slot": "command-input-wrapper",
2628
- className: "flex h-9 items-center gap-2 border-b px-3",
2629
- children: [
2630
- /* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
2631
- /* @__PURE__ */ jsx(
2632
- Command$1.Input,
2633
- {
2634
- "data-slot": "command-input",
2635
- className: cn(
2636
- "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
2637
- className
2638
- ),
2639
- ...props
2640
- }
2641
- )
2642
- ]
2643
- }
2644
- );
2645
- }
2646
- function CommandList({
2647
- className,
2648
- ...props
2649
- }) {
2650
- return /* @__PURE__ */ jsx(
2651
- Command$1.List,
2652
- {
2653
- "data-slot": "command-list",
2654
- role: "listbox",
2655
- className: cn(
2656
- "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
2657
- className
2658
- ),
2659
- ...props
2660
- }
2661
- );
2662
- }
2663
- function CommandEmpty({
2664
- ...props
2665
- }) {
2666
- return /* @__PURE__ */ jsx(
2667
- Command$1.Empty,
2668
- {
2669
- "data-slot": "command-empty",
2670
- className: "py-6 text-center text-sm",
2671
- ...props
2672
- }
2673
- );
2674
- }
2675
- function CommandGroup({
2676
- className,
2677
- ...props
2678
- }) {
2679
- return /* @__PURE__ */ jsx(
2680
- Command$1.Group,
2681
- {
2682
- "data-slot": "command-group",
2683
- className: cn(
2684
- "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
2685
- className
2686
- ),
2687
- ...props
2688
- }
2689
- );
2690
- }
2691
- function CommandSeparator({
2692
- className,
2693
- ...props
2694
- }) {
2695
- return /* @__PURE__ */ jsx(
2696
- Command$1.Separator,
2697
- {
2698
- "data-slot": "command-separator",
2699
- className: cn("bg-border -mx-1 h-px", className),
2700
- ...props
2701
- }
2702
- );
2703
- }
2704
- function CommandItem({
2705
- className,
2706
- ...props
2707
- }) {
2708
- return /* @__PURE__ */ jsx(
2709
- Command$1.Item,
2710
- {
2711
- "data-slot": "command-item",
2712
- role: "option",
2713
- className: cn(
2714
- "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2715
- className
2716
- ),
2717
- ...props
2718
- }
2719
- );
2720
- }
2721
- function CommandShortcut({
2722
- className,
2723
- ...props
2724
- }) {
2725
- return /* @__PURE__ */ jsx(
2726
- "span",
2727
- {
2728
- "data-slot": "command-shortcut",
2729
- className: cn(
2730
- "text-muted-foreground ml-auto text-xs tracking-widest",
2731
- className
2732
- ),
2733
- ...props
2734
- }
2735
- );
2736
- }
2737
- const variantStyles = {
2738
- default: "bg-primary text-primary-foreground",
2739
- secondary: "bg-secondary text-secondary-foreground",
2740
- destructive: "bg-destructive text-destructive-foreground",
2741
- outline: "border-2 border-primary bg-background text-primary",
2742
- success: "bg-success text-success-foreground",
2743
- info: "bg-info text-info-foreground",
2744
- warning: "bg-warning text-warning-foreground"
2745
- };
2746
- const NotificationBadge = React.forwardRef(
2747
- ({
2748
- className,
2749
- count = 0,
2750
- max = 99,
2751
- showZero = false,
2752
- dot = false,
2753
- variant = "destructive",
2754
- children,
2755
- ...props
2756
- }, ref) => {
2757
- const displayCount = count > max ? `${max}+` : count;
2758
- const shouldShow = count > 0 || showZero;
2759
- if (!shouldShow && !dot) {
2760
- return /* @__PURE__ */ jsx("div", { ref, className, ...props, children });
2761
- }
2762
- return /* @__PURE__ */ jsxs("div", { ref, className: cn("relative inline-block", className), ...props, children: [
2763
- children,
2764
- /* @__PURE__ */ jsx(
2765
- "span",
2766
- {
2767
- className: cn(
2768
- "absolute -right-1 -top-1 flex items-center justify-center rounded-full",
2769
- variantStyles[variant],
2770
- dot ? "h-2 w-2" : "min-w-[1.25rem] h-5 px-1.5"
2771
- ),
2772
- children: !dot && shouldShow && /* @__PURE__ */ jsx("span", { className: "text-[10px] font-medium leading-none", children: displayCount })
2773
- }
2774
- )
2775
- ] });
2776
- }
2777
- );
2778
- NotificationBadge.displayName = "NotificationBadge";
2779
- const StatsCard = React.forwardRef(
2780
- ({ className, title, value, description, trend, icon, ...props }, ref) => {
2781
- const getTrendIcon = () => {
2782
- if (!trend) return null;
2783
- if (trend.value > 0) {
2784
- return /* @__PURE__ */ jsx(TrendingUp, { className: "h-4 w-4 text-success" });
2785
- } else if (trend.value < 0) {
2786
- return /* @__PURE__ */ jsx(TrendingDown, { className: "h-4 w-4 text-destructive" });
2787
- } else {
2788
- return /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4 text-muted-foreground" });
2789
- }
2790
- };
2791
- const getTrendColor = () => {
2792
- if (!trend) return "";
2793
- if (trend.value > 0) {
2794
- return "text-success";
2795
- } else if (trend.value < 0) {
2796
- return "text-destructive";
2797
- } else {
2798
- return "text-muted-foreground";
2799
- }
2800
- };
2801
- return /* @__PURE__ */ jsx(Card, { ref, className: cn("", className), ...props, children: /* @__PURE__ */ jsx(CardContent, { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
2802
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
2803
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-1 text-sm", children: title }),
2804
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-2", children: [
2805
- /* @__PURE__ */ jsx("h3", { className: "text-foreground text-xl sm:text-2xl", children: value }),
2806
- trend && /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-1 text-sm", getTrendColor()), children: [
2807
- getTrendIcon(),
2808
- /* @__PURE__ */ jsxs("span", { children: [
2809
- Math.abs(trend.value),
2810
- "%"
2811
- ] })
2812
- ] })
2813
- ] }),
2814
- (description || (trend == null ? void 0 : trend.label)) && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 text-xs sm:text-sm", children: (trend == null ? void 0 : trend.label) || description })
2815
- ] }),
2816
- icon && /* @__PURE__ */ jsx("div", { className: "rounded-[var(--radius)] bg-muted p-2 sm:p-3 text-muted-foreground flex-shrink-0", children: icon })
2817
- ] }) }) });
2818
- }
2819
- );
2820
- StatsCard.displayName = "StatsCard";
2821
- const Timeline = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2822
- "ol",
2823
- {
2824
- ref,
2825
- className: cn("relative border-l border-border", className),
2826
- ...props
2827
- }
2828
- ));
2829
- Timeline.displayName = "Timeline";
2830
- const TimelineItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2831
- "li",
2832
- {
2833
- ref,
2834
- className: cn("mb-10 ml-6", className),
2835
- ...props
2836
- }
2837
- ));
2838
- TimelineItem.displayName = "TimelineItem";
2839
- const TimelineDot = React.forwardRef(({ className, variant = "default", icon, children, ...props }, ref) => {
2840
- const variantStyles2 = {
2841
- default: "bg-muted border-border",
2842
- primary: "bg-primary border-primary",
2843
- success: "bg-success border-success",
2844
- info: "bg-info border-info",
2845
- warning: "bg-warning border-warning",
2846
- destructive: "bg-destructive border-destructive",
2847
- outline: "bg-background border-border"
2848
- };
2849
- const iconColorStyles = {
2850
- default: "text-muted-foreground",
2851
- primary: "text-primary-foreground",
2852
- success: "text-success-foreground",
2853
- info: "text-info-foreground",
2854
- warning: "text-warning-foreground",
2855
- destructive: "text-destructive-foreground",
2856
- outline: "text-foreground"
2857
- };
2858
- if (icon || children) {
2859
- return /* @__PURE__ */ jsx(
2860
- "div",
2861
- {
2862
- ref,
2863
- className: cn(
2864
- "absolute -left-[17px] mt-0.5 h-8 w-8 rounded-full border-2 flex items-center justify-center",
2865
- variantStyles2[variant],
2866
- className
2867
- ),
2868
- ...props,
2869
- children: /* @__PURE__ */ jsx("span", { className: cn("h-4 w-4", iconColorStyles[variant]), children: icon || children })
2870
- }
2871
- );
2872
- }
2873
- return /* @__PURE__ */ jsx(
2874
- "div",
2875
- {
2876
- ref,
2877
- className: cn(
2878
- "absolute -left-[9px] mt-1.5 h-4 w-4 rounded-full border-2",
2879
- variantStyles2[variant],
2880
- className
2881
- ),
2882
- ...props
2883
- }
2884
- );
2885
- });
2886
- TimelineDot.displayName = "TimelineDot";
2887
- const TimelineContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2888
- "div",
2889
- {
2890
- ref,
2891
- className: cn("", className),
2892
- ...props
2893
- }
2894
- ));
2895
- TimelineContent.displayName = "TimelineContent";
2896
- const TimelineHeading = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2897
- "h3",
2898
- {
2899
- ref,
2900
- className: cn("mb-1 text-foreground", className),
2901
- ...props
2902
- }
2903
- ));
2904
- TimelineHeading.displayName = "TimelineHeading";
2905
- const TimelineTime = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2906
- "time",
2907
- {
2908
- ref,
2909
- className: cn("mb-2 block text-muted-foreground", className),
2910
- ...props
2911
- }
2912
- ));
2913
- TimelineTime.displayName = "TimelineTime";
2914
- const TimelineDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2915
- "p",
2916
- {
2917
- ref,
2918
- className: cn("text-muted-foreground", className),
2919
- ...props
2920
- }
2921
- ));
2922
- TimelineDescription.displayName = "TimelineDescription";
2923
- const TreeView = React.forwardRef(
2924
- ({ className, data, onNodeClick, onNodeSelect, defaultExpanded = [], selectedNodeId, ...props }, ref) => {
2925
- const [expanded, setExpanded] = React.useState(new Set(defaultExpanded));
2926
- const [internalSelectedId, setInternalSelectedId] = React.useState(void 0);
2927
- const nodeRefs = React.useRef(/* @__PURE__ */ new Map());
2928
- const isControlled = selectedNodeId !== void 0;
2929
- const effectiveSelectedId = isControlled ? selectedNodeId : internalSelectedId;
2930
- const toggleExpand = (nodeId) => {
2931
- setExpanded((prev) => {
2932
- const next = new Set(prev);
2933
- next.has(nodeId) ? next.delete(nodeId) : next.add(nodeId);
2934
- return next;
2935
- });
2936
- };
2937
- const getVisibleNodes = React.useCallback(() => {
2938
- const result = [];
2939
- const traverse = (nodes) => {
2940
- var _a;
2941
- for (const node of nodes) {
2942
- result.push(node);
2943
- if (((_a = node.children) == null ? void 0 : _a.length) && expanded.has(node.id)) traverse(node.children);
2944
- }
2945
- };
2946
- traverse(data);
2947
- return result;
2948
- }, [data, expanded]);
2949
- const findParent = (nodes, targetId) => {
2950
- var _a;
2951
- for (const n of nodes) {
2952
- if ((_a = n.children) == null ? void 0 : _a.some((c) => c.id === targetId)) return n;
2953
- if (n.children) {
2954
- const found = findParent(n.children, targetId);
2955
- if (found) return found;
2956
- }
2957
- }
2958
- return null;
2959
- };
2960
- const handleSelect = (node) => {
2961
- if (!isControlled) setInternalSelectedId(node.id);
2962
- onNodeSelect == null ? void 0 : onNodeSelect(node);
2963
- onNodeClick == null ? void 0 : onNodeClick(node);
2964
- };
2965
- const handleKeyDown = (e, node) => {
2966
- var _a, _b;
2967
- const visibleNodes = getVisibleNodes();
2968
- const idx = visibleNodes.findIndex((n) => n.id === node.id);
2969
- const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
2970
- const isExpanded = expanded.has(node.id);
2971
- const focusNode = (id) => {
2972
- var _a2;
2973
- (_a2 = nodeRefs.current.get(id)) == null ? void 0 : _a2.focus();
2974
- };
2975
- switch (e.key) {
2976
- case "ArrowDown": {
2977
- e.preventDefault();
2978
- const next = visibleNodes[idx + 1];
2979
- if (next) focusNode(next.id);
2980
- break;
2981
- }
2982
- case "ArrowUp": {
2983
- e.preventDefault();
2984
- const prev = visibleNodes[idx - 1];
2985
- if (prev) focusNode(prev.id);
2986
- break;
2987
- }
2988
- case "ArrowRight": {
2989
- e.preventDefault();
2990
- if (hasChildren && !isExpanded) {
2991
- toggleExpand(node.id);
2992
- } else if (hasChildren && isExpanded && ((_b = node.children) == null ? void 0 : _b.length)) {
2993
- focusNode(node.children[0].id);
2994
- }
2995
- break;
2996
- }
2997
- case "ArrowLeft": {
2998
- e.preventDefault();
2999
- if (hasChildren && isExpanded) {
3000
- toggleExpand(node.id);
3001
- } else {
3002
- const parent = findParent(data, node.id);
3003
- if (parent) focusNode(parent.id);
3004
- }
3005
- break;
3006
- }
3007
- case "Home": {
3008
- e.preventDefault();
3009
- if (visibleNodes.length > 0) focusNode(visibleNodes[0].id);
3010
- break;
3011
- }
3012
- case "End": {
3013
- e.preventDefault();
3014
- const last = visibleNodes[visibleNodes.length - 1];
3015
- if (last) focusNode(last.id);
3016
- break;
3017
- }
3018
- case "Enter":
3019
- case " ": {
3020
- e.preventDefault();
3021
- if (hasChildren) toggleExpand(node.id);
3022
- handleSelect(node);
3023
- break;
3024
- }
3025
- }
3026
- };
3027
- return /* @__PURE__ */ jsx("div", { ref, className: cn("w-full", className), role: "tree", ...props, children: data.map((node) => /* @__PURE__ */ jsx(
3028
- TreeNodeComponent,
3029
- {
3030
- node,
3031
- level: 0,
3032
- expanded,
3033
- selectedId: effectiveSelectedId,
3034
- onToggle: toggleExpand,
3035
- onSelect: handleSelect,
3036
- onKeyDown: handleKeyDown,
3037
- nodeRefs
3038
- },
3039
- node.id
3040
- )) });
3041
- }
3042
- );
3043
- TreeView.displayName = "TreeView";
3044
- const TreeNodeComponent = ({
3045
- node,
3046
- level,
3047
- expanded,
3048
- selectedId,
3049
- onToggle,
3050
- onSelect,
3051
- onKeyDown,
3052
- nodeRefs
3053
- }) => {
3054
- var _a;
3055
- const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
3056
- const isExpanded = expanded.has(node.id);
3057
- const isSelected = node.id === selectedId;
3058
- const handleClick = () => {
3059
- if (hasChildren) onToggle(node.id);
3060
- onSelect(node);
3061
- };
3062
- const setRef = (el) => {
3063
- if (el) nodeRefs.current.set(node.id, el);
3064
- else nodeRefs.current.delete(node.id);
3065
- };
3066
- return /* @__PURE__ */ jsxs("div", { role: "none", children: [
3067
- /* @__PURE__ */ jsxs(
3068
- "button",
3069
- {
3070
- ref: setRef,
3071
- role: "treeitem",
3072
- "aria-expanded": hasChildren ? isExpanded : void 0,
3073
- "aria-selected": isSelected,
3074
- tabIndex: isSelected ? 0 : -1,
3075
- onClick: handleClick,
3076
- onKeyDown: (e) => onKeyDown(e, node),
3077
- className: cn(
3078
- "flex w-full items-center gap-2 rounded-[var(--radius)] px-2 py-1.5 text-left transition-colors",
3079
- "hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
3080
- isSelected && "bg-primary/10 text-primary font-medium"
3081
- ),
3082
- style: { paddingLeft: `${level * 1.5 + 0.5}rem` },
3083
- children: [
3084
- hasChildren ? /* @__PURE__ */ jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }) }) : /* @__PURE__ */ jsx("span", { className: "w-4 flex-shrink-0", "aria-hidden": "true" }),
3085
- node.icon && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: node.icon }),
3086
- /* @__PURE__ */ jsx("span", { className: "flex-1 text-foreground", children: node.label })
3087
- ]
3088
- }
3089
- ),
3090
- hasChildren && isExpanded && /* @__PURE__ */ jsx("div", { role: "group", children: node.children.map((child) => /* @__PURE__ */ jsx(
3091
- TreeNodeComponent,
3092
- {
3093
- node: child,
3094
- level: level + 1,
3095
- expanded,
3096
- selectedId,
3097
- onToggle,
3098
- onSelect,
3099
- onKeyDown,
3100
- nodeRefs
3101
- },
3102
- child.id
3103
- )) })
3104
- ] });
3105
- };
3106
- function Collapsible({
3107
- ...props
3108
- }) {
3109
- return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
3110
- }
3111
- function CollapsibleTrigger({
3112
- ...props
3113
- }) {
3114
- return /* @__PURE__ */ jsx(
3115
- CollapsiblePrimitive.CollapsibleTrigger,
3116
- {
3117
- "data-slot": "collapsible-trigger",
3118
- ...props
3119
- }
3120
- );
3121
- }
3122
- function CollapsibleContent({
3123
- ...props
3124
- }) {
3125
- return /* @__PURE__ */ jsx(
3126
- CollapsiblePrimitive.CollapsibleContent,
3127
- {
3128
- "data-slot": "collapsible-content",
3129
- ...props
3130
- }
3131
- );
3132
- }
3133
- function Accordion({
3134
- ...props
3135
- }) {
3136
- return /* @__PURE__ */ jsx(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
3137
- }
3138
- function AccordionItem({
3139
- className,
3140
- ...props
3141
- }) {
3142
- return /* @__PURE__ */ jsx(
3143
- AccordionPrimitive.Item,
3144
- {
3145
- "data-slot": "accordion-item",
3146
- className: cn("border-b last:border-b-0", className),
3147
- ...props
3148
- }
3149
- );
3150
- }
3151
- function AccordionTrigger({
3152
- className,
3153
- children,
3154
- ...props
3155
- }) {
3156
- return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
3157
- AccordionPrimitive.Trigger,
3158
- {
3159
- "data-slot": "accordion-trigger",
3160
- className: cn(
3161
- "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
3162
- className
3163
- ),
3164
- ...props,
3165
- children: [
3166
- children,
3167
- /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
3168
- ]
3169
- }
3170
- ) });
3171
- }
3172
- function AccordionContent({
3173
- className,
3174
- children,
3175
- ...props
3176
- }) {
3177
- return /* @__PURE__ */ jsx(
3178
- AccordionPrimitive.Content,
3179
- {
3180
- "data-slot": "accordion-content",
3181
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
3182
- ...props,
3183
- children: /* @__PURE__ */ jsx("div", { className: cn("pt-0 pb-4", className), children })
3184
- }
3185
- );
3186
- }
3187
- const CarouselContext = React.createContext(null);
3188
- function useCarousel() {
3189
- const context = React.useContext(CarouselContext);
3190
- if (!context) {
3191
- throw new Error("useCarousel must be used within a <Carousel />");
3192
- }
3193
- return context;
3194
- }
3195
- function Carousel({
3196
- orientation = "horizontal",
3197
- opts,
3198
- setApi,
3199
- plugins,
3200
- className,
3201
- children,
3202
- ...props
3203
- }) {
3204
- const [carouselRef, api] = useEmblaCarousel(
3205
- {
3206
- ...opts,
3207
- axis: orientation === "horizontal" ? "x" : "y"
3208
- },
3209
- plugins
3210
- );
3211
- const [canScrollPrev, setCanScrollPrev] = React.useState(false);
3212
- const [canScrollNext, setCanScrollNext] = React.useState(false);
3213
- const onSelect = React.useCallback((api2) => {
3214
- if (!api2) return;
3215
- setCanScrollPrev(api2.canScrollPrev());
3216
- setCanScrollNext(api2.canScrollNext());
3217
- }, []);
3218
- const scrollPrev = React.useCallback(() => {
3219
- api == null ? void 0 : api.scrollPrev();
3220
- }, [api]);
3221
- const scrollNext = React.useCallback(() => {
3222
- api == null ? void 0 : api.scrollNext();
3223
- }, [api]);
3224
- const handleKeyDown = React.useCallback(
3225
- (event) => {
3226
- if (event.key === "ArrowLeft") {
3227
- event.preventDefault();
3228
- scrollPrev();
3229
- } else if (event.key === "ArrowRight") {
3230
- event.preventDefault();
3231
- scrollNext();
3232
- }
3233
- },
3234
- [scrollPrev, scrollNext]
3235
- );
3236
- React.useEffect(() => {
3237
- if (!api || !setApi) return;
3238
- setApi(api);
3239
- }, [api, setApi]);
3240
- React.useEffect(() => {
3241
- if (!api) return;
3242
- onSelect(api);
3243
- api.on("reInit", onSelect);
3244
- api.on("select", onSelect);
3245
- return () => {
3246
- api == null ? void 0 : api.off("select", onSelect);
3247
- };
3248
- }, [api, onSelect]);
3249
- return /* @__PURE__ */ jsx(
3250
- CarouselContext.Provider,
3251
- {
3252
- value: {
3253
- carouselRef,
3254
- api,
3255
- opts,
3256
- orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
3257
- scrollPrev,
3258
- scrollNext,
3259
- canScrollPrev,
3260
- canScrollNext
3261
- },
3262
- children: /* @__PURE__ */ jsx(
3263
- "div",
3264
- {
3265
- onKeyDownCapture: handleKeyDown,
3266
- className: cn("relative", className),
3267
- role: "region",
3268
- "aria-roledescription": "carousel",
3269
- "data-slot": "carousel",
3270
- ...props,
3271
- children
3272
- }
3273
- )
3274
- }
3275
- );
3276
- }
3277
- function CarouselContent({ className, ...props }) {
3278
- const { carouselRef, orientation } = useCarousel();
3279
- return /* @__PURE__ */ jsx(
3280
- "div",
3281
- {
3282
- ref: carouselRef,
3283
- className: "overflow-hidden",
3284
- "data-slot": "carousel-content",
3285
- children: /* @__PURE__ */ jsx(
3286
- "div",
3287
- {
3288
- className: cn(
3289
- "flex",
3290
- orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
3291
- className
3292
- ),
3293
- ...props
3294
- }
3295
- )
3296
- }
3297
- );
3298
- }
3299
- function CarouselItem({ className, ...props }) {
3300
- const { orientation } = useCarousel();
3301
- return /* @__PURE__ */ jsx(
3302
- "div",
3303
- {
3304
- role: "group",
3305
- "aria-roledescription": "slide",
3306
- "data-slot": "carousel-item",
3307
- className: cn(
3308
- "min-w-0 shrink-0 grow-0 basis-full",
3309
- orientation === "horizontal" ? "pl-4" : "pt-4",
3310
- className
3311
- ),
3312
- ...props
3313
- }
3314
- );
3315
- }
3316
- function CarouselPrevious({
3317
- className,
3318
- variant = "outline",
3319
- size = "icon",
3320
- ...props
3321
- }) {
3322
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
3323
- return /* @__PURE__ */ jsxs(
3324
- Button,
3325
- {
3326
- "data-slot": "carousel-previous",
3327
- variant,
3328
- size,
3329
- className: cn(
3330
- "absolute size-8 rounded-full",
3331
- orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
3332
- className
3333
- ),
3334
- disabled: !canScrollPrev,
3335
- onClick: scrollPrev,
3336
- ...props,
3337
- children: [
3338
- /* @__PURE__ */ jsx(ArrowLeft, {}),
3339
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
3340
- ]
3341
- }
3342
- );
3343
- }
3344
- function CarouselNext({
3345
- className,
3346
- variant = "outline",
3347
- size = "icon",
3348
- ...props
3349
- }) {
3350
- const { orientation, scrollNext, canScrollNext } = useCarousel();
3351
- return /* @__PURE__ */ jsxs(
3352
- Button,
3353
- {
3354
- "data-slot": "carousel-next",
3355
- variant,
3356
- size,
3357
- className: cn(
3358
- "absolute size-8 rounded-full",
3359
- orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
3360
- className
3361
- ),
3362
- disabled: !canScrollNext,
3363
- onClick: scrollNext,
3364
- ...props,
3365
- children: [
3366
- /* @__PURE__ */ jsx(ArrowRight, {}),
3367
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
3368
- ]
3369
- }
3370
- );
3371
- }
3372
- const StepperContext = React.createContext(void 0);
3373
- const useStepper = () => {
3374
- const context = React.useContext(StepperContext);
3375
- if (!context) throw new Error("useStepper must be used within a Stepper");
3376
- return context;
3377
- };
3378
- const Stepper = React.forwardRef(
3379
- ({ currentStep, orientation = "horizontal", className, children, ...props }, ref) => {
3380
- const totalSteps = React.Children.count(children);
3381
- return /* @__PURE__ */ jsx(StepperContext.Provider, { value: { currentStep, totalSteps, orientation }, children: /* @__PURE__ */ jsx(
3382
- "div",
3383
- {
3384
- ref,
3385
- className: cn("w-full", className),
3386
- ...props,
3387
- children: /* @__PURE__ */ jsx("div", { className: cn(
3388
- orientation === "horizontal" ? "flex items-start justify-between" : "flex flex-col gap-0"
3389
- ), children })
3390
- }
3391
- ) });
3392
- }
3393
- );
3394
- Stepper.displayName = "Stepper";
3395
- const Step = React.forwardRef(
3396
- ({ step, label, description, error = false, className, ...props }, ref) => {
3397
- const { currentStep, totalSteps, orientation } = useStepper();
3398
- const isActive = step === currentStep;
3399
- const isCompleted = step < currentStep && !error;
3400
- const isFirst = step === 1;
3401
- const isLast = step === totalSteps;
3402
- const circleClasses = cn(
3403
- "relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors",
3404
- isActive && !error && "border-primary bg-primary text-primary-foreground",
3405
- isCompleted && "border-primary bg-primary text-primary-foreground",
3406
- error && "border-destructive bg-destructive text-destructive-foreground",
3407
- !isActive && !isCompleted && !error && "border-muted bg-background text-muted-foreground"
3408
- );
3409
- const connectorClasses = (filled) => cn("transition-colors", filled ? "bg-primary" : "bg-muted");
3410
- if (orientation === "vertical") {
3411
- return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex gap-4", className), ...props, children: [
3412
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
3413
- /* @__PURE__ */ jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsx(X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsx(Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsx("span", { children: step }) }),
3414
- !isLast && /* @__PURE__ */ jsx("div", { className: cn("w-0.5 flex-1 min-h-[2rem] mt-1", connectorClasses(step < currentStep)) })
3415
- ] }),
3416
- /* @__PURE__ */ jsxs("div", { className: cn("pb-6", isLast && "pb-0"), children: [
3417
- /* @__PURE__ */ jsx("div", { className: cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
3418
- description && /* @__PURE__ */ jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
3419
- ] })
3420
- ] });
3421
- }
3422
- return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex flex-1 flex-col items-center", className), ...props, children: [
3423
- /* @__PURE__ */ jsxs("div", { className: "flex w-full items-start", children: [
3424
- step > 1 && /* @__PURE__ */ jsx("div", { className: cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step <= currentStep)) }),
3425
- /* @__PURE__ */ jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsx(X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsx(Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsx("span", { children: step }) }),
3426
- step < totalSteps && /* @__PURE__ */ jsx("div", { className: cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step < currentStep)) })
3427
- ] }),
3428
- /* @__PURE__ */ jsxs("div", { className: cn(
3429
- "mt-2 px-1",
3430
- isFirst && "text-left self-start",
3431
- isLast && "text-right self-end",
3432
- !isFirst && !isLast && "text-center w-full"
3433
- ), children: [
3434
- /* @__PURE__ */ jsx("div", { className: cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
3435
- description && /* @__PURE__ */ jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
3436
- ] })
3437
- ] });
3438
- }
3439
- );
3440
- Step.displayName = "Step";
3441
- const FileUpload = React.forwardRef(
3442
- ({
3443
- className,
3444
- onFilesChange,
3445
- maxFiles = 1,
3446
- maxSize = 5 * 1024 * 1024,
3447
- // 5MB default
3448
- showPreview = true,
3449
- onError,
3450
- accept,
3451
- disabled,
3452
- ...props
3453
- }, ref) => {
3454
- const [files, setFiles] = React.useState([]);
3455
- const [dragActive, setDragActive] = React.useState(false);
3456
- const [errorMessage, setErrorMessage] = React.useState(null);
3457
- const inputRef = React.useRef(null);
3458
- const handleFiles = (newFiles) => {
3459
- if (!newFiles) return;
3460
- setErrorMessage(null);
3461
- const filesArray = Array.from(newFiles);
3462
- const oversized = filesArray.filter((f) => f.size > maxSize);
3463
- const validFiles = filesArray.filter((f) => f.size <= maxSize);
3464
- if (oversized.length > 0) {
3465
- const limitMB = (maxSize / 1024 / 1024).toFixed(0);
3466
- setErrorMessage(`${oversized.length} file(s) exceed the ${limitMB}MB limit and were not added.`);
3467
- onError == null ? void 0 : onError(oversized, "size");
3468
- }
3469
- const merged = maxFiles === 1 ? validFiles.slice(0, 1) : [...files, ...validFiles].slice(0, maxFiles);
3470
- const countRejected = maxFiles === 1 ? validFiles.slice(1) : [...files, ...validFiles].slice(maxFiles);
3471
- if (countRejected.length > 0) {
3472
- setErrorMessage(`Only ${maxFiles} file(s) allowed. ${countRejected.length} file(s) were not added.`);
3473
- onError == null ? void 0 : onError(countRejected, "count");
3474
- }
3475
- setFiles(merged);
3476
- onFilesChange == null ? void 0 : onFilesChange(merged);
3477
- };
3478
- const handleDrag = (e) => {
3479
- e.preventDefault();
3480
- e.stopPropagation();
3481
- if (e.type === "dragenter" || e.type === "dragover") {
3482
- setDragActive(true);
3483
- } else if (e.type === "dragleave") {
3484
- setDragActive(false);
3485
- }
3486
- };
3487
- const handleDrop = (e) => {
3488
- e.preventDefault();
3489
- e.stopPropagation();
3490
- setDragActive(false);
3491
- if (disabled) return;
3492
- handleFiles(e.dataTransfer.files);
3493
- };
3494
- const handleChange = (e) => {
3495
- e.preventDefault();
3496
- if (disabled) return;
3497
- handleFiles(e.target.files);
3498
- };
3499
- const removeFile = (index) => {
3500
- const updatedFiles = files.filter((_, i) => i !== index);
3501
- setFiles(updatedFiles);
3502
- onFilesChange == null ? void 0 : onFilesChange(updatedFiles);
3503
- if (updatedFiles.length === 0) setErrorMessage(null);
3504
- };
3505
- const openFileDialog = () => {
3506
- var _a;
3507
- if (!disabled) {
3508
- setErrorMessage(null);
3509
- (_a = inputRef.current) == null ? void 0 : _a.click();
3510
- }
3511
- };
3512
- return /* @__PURE__ */ jsxs("div", { ref, className: cn("w-full", className), children: [
3513
- /* @__PURE__ */ jsxs(
3514
- "div",
3515
- {
3516
- onDragEnter: handleDrag,
3517
- onDragLeave: handleDrag,
3518
- onDragOver: handleDrag,
3519
- onDrop: handleDrop,
3520
- onClick: openFileDialog,
3521
- className: cn(
3522
- "relative flex cursor-pointer flex-col items-center justify-center rounded-[var(--radius)] border-2 border-dashed border-border bg-background p-8 transition-colors hover:bg-muted/50",
3523
- dragActive && "border-primary bg-primary/5",
3524
- errorMessage && "border-destructive/50",
3525
- disabled && "cursor-not-allowed opacity-50"
3526
- ),
3527
- children: [
3528
- /* @__PURE__ */ jsx(Upload, { className: "mb-4 h-10 w-10 text-muted-foreground" }),
3529
- /* @__PURE__ */ jsxs("p", { className: "mb-2 text-foreground", children: [
3530
- /* @__PURE__ */ jsx("span", { className: "text-primary", children: "Click to upload" }),
3531
- " or drag and drop"
3532
- ] }),
3533
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
3534
- maxFiles > 1 ? `Up to ${maxFiles} files` : "1 file",
3535
- " • Max ",
3536
- (maxSize / 1024 / 1024).toFixed(0),
3537
- "MB"
3538
- ] }),
3539
- /* @__PURE__ */ jsx(
3540
- "input",
3541
- {
3542
- ...props,
3543
- ref: inputRef,
3544
- type: "file",
3545
- className: "hidden",
3546
- onChange: handleChange,
3547
- multiple: maxFiles > 1,
3548
- accept,
3549
- disabled
3550
- }
3551
- )
3552
- ]
3553
- }
3554
- ),
3555
- errorMessage && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2 rounded-[var(--radius)] border border-destructive/30 bg-destructive/5 px-3 py-2 text-sm text-destructive", children: [
3556
- /* @__PURE__ */ jsx(AlertCircle, { className: "h-4 w-4 shrink-0" }),
3557
- /* @__PURE__ */ jsx("span", { children: errorMessage })
3558
- ] }),
3559
- showPreview && files.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4 space-y-2", children: files.map((file, index) => /* @__PURE__ */ jsxs(
3560
- "div",
3561
- {
3562
- className: "flex items-center justify-between rounded-[var(--radius)] border border-border bg-card p-3",
3563
- children: [
3564
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
3565
- /* @__PURE__ */ jsx(FileIcon, { className: "h-5 w-5 text-muted-foreground" }),
3566
- /* @__PURE__ */ jsxs("div", { children: [
3567
- /* @__PURE__ */ jsx("p", { className: "text-foreground", children: file.name }),
3568
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
3569
- (file.size / 1024).toFixed(2),
3570
- " KB"
3571
- ] })
3572
- ] })
3573
- ] }),
3574
- /* @__PURE__ */ jsx(
3575
- Button,
3576
- {
3577
- type: "button",
3578
- variant: "ghost",
3579
- size: "sm",
3580
- onClick: (e) => {
3581
- e.stopPropagation();
3582
- removeFile(index);
3583
- },
3584
- disabled,
3585
- children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
3586
- }
3587
- )
3588
- ]
3589
- },
3590
- index
3591
- )) })
3592
- ] });
3593
- }
3594
- );
3595
- FileUpload.displayName = "FileUpload";
3596
- const Rating = React.forwardRef(
3597
- ({
3598
- className,
3599
- value = 0,
3600
- onChange,
3601
- max = 5,
3602
- readonly = false,
3603
- disabled = false,
3604
- size = "md",
3605
- showValue = false,
3606
- allowHalf = false,
3607
- getAriaLabel,
3608
- ...props
3609
- }, ref) => {
3610
- const [hoverValue, setHoverValue] = React.useState(null);
3611
- const isInteractive = !readonly && !disabled;
3612
- const sizeStyles = {
3613
- sm: "h-4 w-4",
3614
- md: "h-5 w-5",
3615
- lg: "h-6 w-6"
3616
- };
3617
- const handleClick = (rating) => {
3618
- if (isInteractive) onChange == null ? void 0 : onChange(rating);
3619
- };
3620
- const handleMouseMove = (e, rating) => {
3621
- if (!isInteractive) return;
3622
- if (allowHalf) {
3623
- const rect = e.currentTarget.getBoundingClientRect();
3624
- setHoverValue(e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating);
3625
- } else {
3626
- setHoverValue(rating);
3627
- }
3628
- };
3629
- const handleMouseLeave = () => {
3630
- if (isInteractive) setHoverValue(null);
3631
- };
3632
- const handleClickWithHalf = (e, rating) => {
3633
- if (!isInteractive) return;
3634
- if (allowHalf) {
3635
- const rect = e.currentTarget.getBoundingClientRect();
3636
- const half = e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating;
3637
- onChange == null ? void 0 : onChange(half);
3638
- } else {
3639
- handleClick(rating);
3640
- }
3641
- };
3642
- const displayValue = hoverValue ?? value;
3643
- return /* @__PURE__ */ jsxs(
3644
- "div",
3645
- {
3646
- ref,
3647
- className: cn("flex items-center gap-1", disabled && "opacity-50", className),
3648
- ...props,
3649
- children: [
3650
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5", role: "group", "aria-label": "Rating", children: Array.from({ length: max }, (_, index) => {
3651
- const rating = index + 1;
3652
- const isFull = rating <= displayValue;
3653
- const isHalf = allowHalf && !isFull && rating - 0.5 <= displayValue;
3654
- return /* @__PURE__ */ jsxs(
3655
- "button",
3656
- {
3657
- type: "button",
3658
- onClick: (e) => handleClickWithHalf(e, rating),
3659
- onMouseMove: (e) => handleMouseMove(e, rating),
3660
- onMouseLeave: handleMouseLeave,
3661
- disabled: readonly || disabled,
3662
- "aria-label": getAriaLabel ? getAriaLabel(rating, max) : `${rating} / ${max}`,
3663
- className: cn(
3664
- "relative transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3665
- isInteractive && "cursor-pointer hover:scale-110",
3666
- !isInteractive && "cursor-default"
3667
- ),
3668
- children: [
3669
- /* @__PURE__ */ jsx(Star, { className: cn(sizeStyles[size], "fill-none text-muted-foreground") }),
3670
- (isFull || isHalf) && /* @__PURE__ */ jsx(
3671
- "span",
3672
- {
3673
- className: cn(
3674
- "absolute inset-0 overflow-hidden",
3675
- isHalf ? "w-1/2" : "w-full"
3676
- ),
3677
- children: /* @__PURE__ */ jsx(Star, { className: cn(sizeStyles[size], "fill-warning text-warning") })
3678
- }
3679
- )
3680
- ]
3681
- },
3682
- index
3683
- );
3684
- }) }),
3685
- showValue && /* @__PURE__ */ jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: value % 1 === 0 ? value.toFixed(0) : value.toFixed(1) })
3686
- ]
3687
- }
3688
- );
3689
- }
3690
- );
3691
- Rating.displayName = "Rating";
3692
- const Search = React.forwardRef(
3693
- ({
3694
- className,
3695
- containerClassName,
3696
- onSearch,
3697
- onClear,
3698
- onChange,
3699
- size = "md",
3700
- searchLabel = "Search",
3701
- clearLabel = "Clear search",
3702
- value: controlledValue,
3703
- defaultValue,
3704
- ...props
3705
- }, ref) => {
3706
- const isControlled = controlledValue !== void 0;
3707
- const [internalValue, setInternalValue] = React.useState(
3708
- isControlled ? "" : defaultValue ?? ""
3709
- );
3710
- const displayValue = isControlled ? controlledValue : internalValue;
3711
- const sizeClasses = {
3712
- sm: "h-8 px-8 py-1 text-sm",
3713
- md: "h-10 px-10 py-2 text-base",
3714
- lg: "h-12 px-12 py-3 text-base"
3715
- };
3716
- const iconSizeClasses = {
3717
- sm: "left-2 h-3.5 w-3.5",
3718
- md: "left-3 h-4 w-4",
3719
- lg: "left-4 h-5 w-5"
3720
- };
3721
- const clearSizeClasses = {
3722
- sm: "right-2",
3723
- md: "right-3",
3724
- lg: "right-4"
3725
- };
3726
- const handleChange = (e) => {
3727
- const newValue = e.target.value;
3728
- if (!isControlled) setInternalValue(newValue);
3729
- onChange == null ? void 0 : onChange(e);
3730
- onSearch == null ? void 0 : onSearch(newValue);
3731
- };
3732
- const handleClear = () => {
3733
- if (!isControlled) setInternalValue("");
3734
- onClear == null ? void 0 : onClear();
3735
- onSearch == null ? void 0 : onSearch("");
3736
- };
3737
- const handleKeyDown = (e) => {
3738
- var _a;
3739
- if (e.key === "Escape") {
3740
- handleClear();
3741
- }
3742
- (_a = props.onKeyDown) == null ? void 0 : _a.call(props, e);
3743
- };
3744
- return /* @__PURE__ */ jsxs("div", { className: cn("relative w-full", containerClassName), children: [
3745
- /* @__PURE__ */ jsx(
3746
- Search$1,
3747
- {
3748
- "aria-hidden": "true",
3749
- className: cn("absolute top-1/2 -translate-y-1/2 text-muted-foreground", iconSizeClasses[size])
3750
- }
3751
- ),
3752
- /* @__PURE__ */ jsx(
3753
- "input",
3754
- {
3755
- ref,
3756
- type: "text",
3757
- value: displayValue,
3758
- onChange: handleChange,
3759
- onKeyDown: handleKeyDown,
3760
- className: cn(
3761
- "flex w-full rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none",
3762
- "placeholder:text-muted-foreground",
3763
- "focus:ring-2 focus:ring-primary focus:border-transparent",
3764
- "disabled:cursor-not-allowed disabled:opacity-50",
3765
- sizeClasses[size],
3766
- className
3767
- ),
3768
- "aria-label": props.placeholder || searchLabel,
3769
- ...props
3770
- }
3771
- ),
3772
- displayValue && /* @__PURE__ */ jsx(
3773
- "button",
3774
- {
3775
- type: "button",
3776
- onClick: handleClear,
3777
- "aria-label": clearLabel,
3778
- className: cn(
3779
- "absolute top-1/2 -translate-y-1/2 text-muted-foreground transition-colors hover:text-foreground focus:outline-none",
3780
- clearSizeClasses[size]
3781
- ),
3782
- children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
3783
- }
3784
- )
3785
- ] });
3786
- }
3787
- );
3788
- Search.displayName = "Search";
3789
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
3790
- const RouteMapContent = React__default.forwardRef(
3791
- ({ apiKey, ...props }, ref) => {
3792
- const { isLoaded, loadError, load } = useGoogleMapsLoader();
3793
- const {
3794
- origin,
3795
- destination,
3796
- waypoints = [],
3797
- travelMode = "DRIVING",
3798
- height = "450px",
3799
- mapContainerClassName,
3800
- disableDefaultUI = false,
3801
- zoomControl = true,
3802
- streetViewControl = false,
3803
- mapTypeControl = false,
3804
- fullscreenControl = true,
3805
- onRouteCalculated,
3806
- className,
3807
- ...divProps
3808
- } = props;
3809
- const mapRef = useRef(null);
3810
- const gmpMapRef = useRef(null);
3811
- const directionsRendererRef = useRef(null);
3812
- useRef(false);
3813
- const isCalculatingRef = useRef(false);
3814
- useEffect(() => {
3815
- if (!isLoaded && apiKey && !loadError && load) {
3816
- load(apiKey).catch(console.error);
3817
- }
3818
- }, [isLoaded, apiKey, loadError, load]);
3819
- useEffect(() => {
3820
- if (!isLoaded || !gmpMapRef.current) return;
3821
- const setupMap = (map) => {
3822
- mapRef.current = map;
3823
- const computedStyle = getComputedStyle(document.documentElement);
3824
- const primaryColor = computedStyle.getPropertyValue("--primary").trim() || "#4F46E5";
3825
- if (!directionsRendererRef.current) {
3826
- directionsRendererRef.current = new google.maps.DirectionsRenderer({
3827
- map,
3828
- suppressMarkers: false,
3829
- polylineOptions: {
3830
- strokeColor: primaryColor,
3831
- strokeWeight: 5,
3832
- strokeOpacity: 0.8
3833
- }
3834
- });
3835
- } else {
3836
- directionsRendererRef.current.setMap(map);
3837
- }
3838
- };
3839
- const gmpMap = gmpMapRef.current;
3840
- if (gmpMap.innerMap) {
3841
- setupMap(gmpMap.innerMap);
3842
- } else {
3843
- const interval = setInterval(() => {
3844
- if (gmpMap.innerMap) {
3845
- setupMap(gmpMap.innerMap);
3846
- clearInterval(interval);
3847
- }
3848
- }, 100);
3849
- return () => clearInterval(interval);
3850
- }
3851
- return () => {
3852
- if (directionsRendererRef.current) {
3853
- directionsRendererRef.current.setMap(null);
3854
- }
3855
- mapRef.current = null;
3856
- };
3857
- }, [isLoaded]);
3858
- useEffect(() => {
3859
- if (gmpMapRef.current && origin) {
3860
- gmpMapRef.current.center = origin;
3861
- }
3862
- }, [origin.lat, origin.lng]);
3863
- useEffect(() => {
3864
- if (gmpMapRef.current) {
3865
- gmpMapRef.current.zoom = 13;
3866
- }
3867
- }, []);
3868
- useEffect(() => {
3869
- const map = mapRef.current;
3870
- const renderer = directionsRendererRef.current;
3871
- if (!map || !renderer || !isLoaded || isCalculatingRef.current) return;
3872
- if (!origin || !destination) return;
3873
- isCalculatingRef.current = true;
3874
- const directionsService = new google.maps.DirectionsService();
3875
- const request = {
3876
- origin,
3877
- destination,
3878
- waypoints: waypoints.map((wp) => ({
3879
- location: wp,
3880
- stopover: true
3881
- })),
3882
- travelMode: google.maps.TravelMode[travelMode]
3883
- };
3884
- directionsService.route(request, (result, status) => {
3885
- var _a;
3886
- isCalculatingRef.current = false;
3887
- if (status === "OK" && result) {
3888
- renderer.setDirections(result);
3889
- const route = result.routes[0];
3890
- if (((_a = route == null ? void 0 : route.legs) == null ? void 0 : _a.length) > 0 && onRouteCalculated) {
3891
- let totalDistance = 0;
3892
- let totalDuration = 0;
3893
- route.legs.forEach((leg) => {
3894
- if (leg.distance) totalDistance += leg.distance.value;
3895
- if (leg.duration) totalDuration += leg.duration.value;
3896
- });
3897
- const distanceKm = (totalDistance / 1e3).toFixed(1);
3898
- const distanceText = `${distanceKm} km`;
3899
- const hours = Math.floor(totalDuration / 3600);
3900
- const minutes = Math.floor(totalDuration % 3600 / 60);
3901
- const durationText = hours > 0 ? `${hours}h ${minutes}min` : `${minutes} min`;
3902
- onRouteCalculated(distanceText, durationText);
3903
- }
3904
- }
3905
- });
3906
- }, [isLoaded, origin.lat, origin.lng, destination.lat, destination.lng, travelMode, mapRef.current]);
3907
- if (loadError) {
3908
- return /* @__PURE__ */ jsx(
3909
- "div",
3910
- {
3911
- ref,
3912
- className: cn(
3913
- "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
3914
- className
3915
- ),
3916
- style: { height },
3917
- ...divProps,
3918
- children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-2 p-6", children: [
3919
- /* @__PURE__ */ jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
3920
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: "Failed to load Google Maps" }),
3921
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
3922
- ] }) })
3923
- }
3924
- );
3925
- }
3926
- if (!isLoaded) {
3927
- return /* @__PURE__ */ jsx(
3928
- "div",
3929
- {
3930
- ref,
3931
- className: cn(
3932
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
3933
- className
3934
- ),
3935
- style: { height },
3936
- ...divProps
3937
- }
3938
- );
3939
- }
3940
- return /* @__PURE__ */ jsx(
3941
- "div",
3942
- {
3943
- ref,
3944
- className: cn(
3945
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
3946
- className
3947
- ),
3948
- style: { height },
3949
- ...divProps,
3950
- children: /* @__PURE__ */ jsx(
3951
- "gmp-map",
3952
- {
3953
- ref: gmpMapRef,
3954
- style: { height: "100%", width: "100%", display: "block" },
3955
- "map-id": props.mapId || "xertica-route-map"
3956
- }
3957
- )
3958
- }
3959
- );
3960
- }
3961
- );
3962
- RouteMapContent.displayName = "RouteMapContent";
3963
- const RouteMap = React__default.forwardRef(
3964
- (props, ref) => {
3965
- const { isLoaded, loadError } = useGoogleMapsLoader();
3966
- const effectiveApiKey = props.apiKey || typeof import.meta !== "undefined" && __vite_import_meta_env__ && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
3967
- const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
3968
- if (isLoaded || isValidKey || loadError) {
3969
- return /* @__PURE__ */ jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
3970
- }
3971
- const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
3972
- if (isScriptInjected) {
3973
- return /* @__PURE__ */ jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
3974
- }
3975
- const {
3976
- origin,
3977
- destination,
3978
- waypoints,
3979
- travelMode,
3980
- height,
3981
- apiKey,
3982
- mapContainerClassName,
3983
- disableDefaultUI,
3984
- zoomControl,
3985
- streetViewControl,
3986
- mapTypeControl,
3987
- fullscreenControl,
3988
- onRouteCalculated,
3989
- ...divProps
3990
- } = props;
3991
- return /* @__PURE__ */ jsx(
3992
- "div",
3993
- {
3994
- ref,
3995
- className: cn(
3996
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
3997
- props.className
3998
- ),
3999
- style: { height: props.height || "450px" },
4000
- ...divProps,
4001
- children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-muted/50 to-muted", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-3 p-6", children: [
4002
- /* @__PURE__ */ jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
4003
- /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
4004
- /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
4005
- ] }) }),
4006
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
4007
- ] }) })
4008
- }
4009
- );
4010
- }
4011
- );
4012
- RouteMap.displayName = "RouteMap";
4013
- const SimpleMap = React__default.forwardRef(
4014
- ({
4015
- center,
4016
- address,
4017
- markerTitle,
4018
- markerInfo,
4019
- showMarker = true,
4020
- zoom = 15,
4021
- height = "350px",
4022
- ...props
4023
- }, ref) => {
4024
- const markers = showMarker && center ? [
4025
- {
4026
- position: center,
4027
- title: markerTitle || address || "Location",
4028
- info: markerInfo || address
4029
- }
4030
- ] : [];
4031
- return /* @__PURE__ */ jsx(
4032
- Map$1,
4033
- {
4034
- ref,
4035
- center,
4036
- zoom,
4037
- height,
4038
- markers,
4039
- ...props
4040
- }
4041
- );
4042
- }
4043
- );
4044
- SimpleMap.displayName = "SimpleMap";
4045
- function AssistantChart({
4046
- data,
4047
- config,
4048
- categoryKey = "month",
4049
- bars,
4050
- xAxisFormatter,
4051
- className
4052
- }) {
4053
- const resolvedBars = bars ?? Object.keys(config).map((key) => ({ dataKey: key }));
4054
- const formatTick = xAxisFormatter ?? ((value) => value.slice(0, 3));
4055
- return /* @__PURE__ */ jsx(ChartContainer, { config, className: cn("min-h-[200px] w-full", className), children: /* @__PURE__ */ jsxs(BarChart, { accessibilityLayer: true, data, children: [
4056
- /* @__PURE__ */ jsx(CartesianGrid, { vertical: false }),
4057
- /* @__PURE__ */ jsx(
4058
- XAxis,
4059
- {
4060
- dataKey: categoryKey,
4061
- tickLine: false,
4062
- tickMargin: 10,
4063
- axisLine: false,
4064
- tickFormatter: formatTick
4065
- }
4066
- ),
4067
- /* @__PURE__ */ jsx(ChartTooltip, { cursor: false, content: /* @__PURE__ */ jsx(ChartTooltipContent, { indicator: "dashed" }) }),
4068
- resolvedBars.map((bar) => /* @__PURE__ */ jsx(
4069
- Bar,
4070
- {
4071
- dataKey: bar.dataKey,
4072
- fill: bar.fill ?? `var(--color-${bar.dataKey})`,
4073
- radius: bar.radius ?? 4
4074
- },
4075
- bar.dataKey
4076
- ))
4077
- ] }) });
4078
- }
4079
- const MOBILE_BREAKPOINT = 768;
4080
- function useIsMobile() {
4081
- const [isMobile, setIsMobile] = React.useState(
4082
- void 0
4083
- );
4084
- React.useEffect(() => {
4085
- var _a;
4086
- if (typeof window === "undefined") {
4087
- setIsMobile(false);
4088
- return;
4089
- }
4090
- const mql = (_a = window.matchMedia) == null ? void 0 : _a.call(window, `(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
4091
- const onChange = () => {
4092
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
4093
- };
4094
- if (mql) {
4095
- mql.addEventListener("change", onChange);
4096
- }
4097
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
4098
- return () => {
4099
- if (mql) {
4100
- mql.removeEventListener("change", onChange);
4101
- }
4102
- };
4103
- }, []);
4104
- return !!isMobile;
4105
- }
4106
- const useMobile = useIsMobile;
4107
- export {
4108
- DrawerContent as $,
4109
- Accordion as A,
4110
- Badge as B,
4111
- Calendar as C,
4112
- CommandDialog as D,
4113
- CommandEmpty as E,
4114
- CommandGroup as F,
4115
- CommandInput as G,
4116
- CommandItem as H,
4117
- CommandList as I,
4118
- CommandSeparator as J,
4119
- CommandShortcut as K,
4120
- ContextMenu as L,
4121
- ContextMenuCheckboxItem as M,
4122
- ContextMenuContent as N,
4123
- ContextMenuGroup as O,
4124
- ContextMenuItem as P,
4125
- ContextMenuLabel as Q,
4126
- ContextMenuPortal as R,
4127
- ContextMenuRadioGroup as S,
4128
- ContextMenuRadioItem as T,
4129
- ContextMenuSeparator as U,
4130
- ContextMenuShortcut as V,
4131
- ContextMenuSub as W,
4132
- ContextMenuSubContent as X,
4133
- ContextMenuSubTrigger as Y,
4134
- ContextMenuTrigger as Z,
4135
- Drawer as _,
4136
- AccordionContent as a,
4137
- RadioGroupItem as a$,
4138
- DrawerDescription as a0,
4139
- DrawerFooter as a1,
4140
- DrawerHandle as a2,
4141
- DrawerHeader as a3,
4142
- DrawerOverlay as a4,
4143
- DrawerPortal as a5,
4144
- DrawerTitle as a6,
4145
- DrawerTrigger as a7,
4146
- FileUpload as a8,
4147
- Form as a9,
4148
- MenubarSeparator as aA,
4149
- MenubarShortcut as aB,
4150
- MenubarSub as aC,
4151
- MenubarSubContent as aD,
4152
- MenubarSubTrigger as aE,
4153
- MenubarTrigger as aF,
4154
- NavigationMenu as aG,
4155
- NavigationMenuContent as aH,
4156
- NavigationMenuIndicator as aI,
4157
- NavigationMenuItem as aJ,
4158
- NavigationMenuLink as aK,
4159
- NavigationMenuList as aL,
4160
- NavigationMenuTrigger as aM,
4161
- NavigationMenuViewport as aN,
4162
- NotificationBadge as aO,
4163
- PageHeader as aP,
4164
- PageHeaderDescription as aQ,
4165
- PageHeaderHeading as aR,
4166
- Pagination as aS,
4167
- PaginationContent as aT,
4168
- PaginationEllipsis as aU,
4169
- PaginationItem as aV,
4170
- PaginationLink as aW,
4171
- PaginationNext as aX,
4172
- PaginationPrevious as aY,
4173
- Progress as aZ,
4174
- RadioGroup as a_,
4175
- FormControl as aa,
4176
- FormDescription as ab,
4177
- FormField as ac,
4178
- FormItem as ad,
4179
- FormLabel as ae,
4180
- FormMessage as af,
4181
- HoverCard as ag,
4182
- HoverCardContent as ah,
4183
- HoverCardTrigger as ai,
4184
- ImageWithFallback as aj,
4185
- InputOTP as ak,
4186
- InputOTPGroup as al,
4187
- InputOTPSeparator as am,
4188
- InputOTPSlot as an,
4189
- Label as ao,
4190
- Map$1 as ap,
4191
- Menubar as aq,
4192
- MenubarCheckboxItem as ar,
4193
- MenubarContent as as,
4194
- MenubarGroup as at,
4195
- MenubarItem as au,
4196
- MenubarLabel as av,
4197
- MenubarMenu as aw,
4198
- MenubarPortal as ax,
4199
- MenubarRadioGroup as ay,
4200
- MenubarRadioItem as az,
4201
- AccordionItem as b,
4202
- Rating as b0,
4203
- ResizableHandle as b1,
4204
- ResizablePanel as b2,
4205
- ResizablePanelGroup as b3,
4206
- RouteMap as b4,
4207
- Search as b5,
4208
- Separator as b6,
4209
- Sheet as b7,
4210
- SheetContent as b8,
4211
- SheetDescription as b9,
4212
- navigationMenuTriggerStyle as bA,
4213
- toggleVariants as bB,
4214
- useFormField as bC,
4215
- useIsMobile as bD,
4216
- useMapLayers as bE,
4217
- useMobile as bF,
4218
- useStepper as bG,
4219
- SheetFooter as ba,
4220
- SheetHeader as bb,
4221
- SheetPortal as bc,
4222
- SheetTitle as bd,
4223
- SheetTrigger as be,
4224
- SimpleMap as bf,
4225
- StatsCard as bg,
4226
- Step as bh,
4227
- Stepper as bi,
4228
- Switch as bj,
4229
- Tabs as bk,
4230
- TabsContent as bl,
4231
- TabsList as bm,
4232
- TabsTrigger as bn,
4233
- Timeline as bo,
4234
- TimelineContent as bp,
4235
- TimelineDescription as bq,
4236
- TimelineDot as br,
4237
- TimelineHeading as bs,
4238
- TimelineItem as bt,
4239
- TimelineTime as bu,
4240
- Toggle as bv,
4241
- ToggleGroup as bw,
4242
- ToggleGroupItem as bx,
4243
- TreeView as by,
4244
- badgeVariants as bz,
4245
- AccordionTrigger as c,
4246
- AlertDialog as d,
4247
- AlertDialogAction as e,
4248
- AlertDialogCancel as f,
4249
- AlertDialogContent as g,
4250
- AlertDialogDescription as h,
4251
- AlertDialogFooter as i,
4252
- AlertDialogHeader as j,
4253
- AlertDialogOverlay as k,
4254
- AlertDialogPortal as l,
4255
- AlertDialogTitle as m,
4256
- AlertDialogTrigger as n,
4257
- AspectRatio as o,
4258
- AssistantChart as p,
4259
- Carousel as q,
4260
- CarouselContent as r,
4261
- CarouselItem as s,
4262
- CarouselNext as t,
4263
- CarouselPrevious as u,
4264
- Checkbox as v,
4265
- Collapsible as w,
4266
- CollapsibleContent as x,
4267
- CollapsibleTrigger as y,
4268
- Command as z
4269
- };