xertica-ui 2.2.0 → 2.3.0

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