xertica-ui 2.2.1 → 2.4.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 (708) hide show
  1. package/CHANGELOG.md +564 -525
  2. package/README.md +417 -382
  3. package/bin/cli.ts +1244 -748
  4. package/bin/generate-tokens.ts +262 -262
  5. package/bin/language-config.ts +5 -8
  6. package/components/assets/xertica-orbe-animation.ts +1162 -1162
  7. package/components/assistant/code-block/CodeBlock.tsx +268 -268
  8. package/components/assistant/code-block/code-block.stories.tsx +57 -57
  9. package/components/assistant/code-block/code-block.test.tsx +44 -44
  10. package/components/assistant/code-block/index.ts +1 -1
  11. package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
  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 +17 -7
  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/AssistantCollapsedView.tsx +99 -99
  26. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -106
  27. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
  28. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -78
  29. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
  30. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -560
  31. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
  32. package/components/assistant/xertica-assistant/parts/AssistantTypingIndicator.tsx +41 -41
  33. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
  34. package/components/assistant/xertica-assistant/parts/index.ts +16 -16
  35. package/components/assistant/xertica-assistant/types.ts +134 -134
  36. package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
  37. package/components/assistant/xertica-assistant/xertica-assistant.stories.tsx +407 -407
  38. package/components/assistant/xertica-assistant/xertica-assistant.test.tsx +65 -65
  39. package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -613
  40. package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
  41. package/components/blocks/card-patterns/FeatureCard.tsx +109 -109
  42. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +1 -6
  43. package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
  44. package/components/blocks/card-patterns/ProfileCard.tsx +112 -114
  45. package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
  46. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +1 -6
  47. package/components/blocks/card-patterns/QuickActionCard.tsx +68 -68
  48. package/components/blocks/card-patterns/card-patterns.mdx +123 -123
  49. package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
  50. package/components/blocks/card-patterns/index.ts +29 -29
  51. package/components/blocks/index.ts +1 -1
  52. package/components/brand/branding/branding.stories.tsx +57 -57
  53. package/components/brand/index.ts +6 -6
  54. package/components/brand/language-selector/index.ts +1 -1
  55. package/components/brand/language-selector/language-selector.mdx +126 -126
  56. package/components/brand/language-selector/language-selector.stories.tsx +1 -4
  57. package/components/brand/theme-toggle/ThemeToggle.tsx +74 -70
  58. package/components/brand/theme-toggle/index.ts +1 -1
  59. package/components/brand/theme-toggle/theme-toggle.stories.tsx +34 -34
  60. package/components/brand/theme-toggle/theme-toggle.test.tsx +34 -34
  61. package/components/brand/xertica-logo/XerticaLogo.stories.tsx +82 -82
  62. package/components/brand/xertica-logo/XerticaLogo.tsx +104 -104
  63. package/components/brand/xertica-logo/index.ts +1 -1
  64. package/components/brand/xertica-logo/xertica-logo.test.tsx +26 -26
  65. package/components/brand/xertica-orbe/XerticaOrbe.tsx +1927 -1927
  66. package/components/brand/xertica-orbe/index.ts +1 -1
  67. package/components/brand/xertica-orbe/xertica-orbe.stories.tsx +40 -40
  68. package/components/brand/xertica-orbe/xertica-orbe.test.tsx +19 -19
  69. package/components/brand/xertica-provider/XerticaProvider.tsx +1 -4
  70. package/components/brand/xertica-provider/index.ts +1 -1
  71. package/components/brand/xertica-provider/xertica-provider.test.tsx +74 -74
  72. package/components/brand/xertica-xlogo/XerticaXLogo.stories.tsx +79 -79
  73. package/components/brand/xertica-xlogo/XerticaXLogo.tsx +65 -65
  74. package/components/brand/xertica-xlogo/index.ts +1 -1
  75. package/components/brand/xertica-xlogo/xertica-xlogo.test.tsx +16 -16
  76. package/components/examples/ApiKeyMapExample.tsx +71 -71
  77. package/components/examples/DrawingMapExample.tsx +565 -565
  78. package/components/examples/FilterableMapExample.tsx +393 -393
  79. package/components/examples/LocationPickerExample.tsx +348 -348
  80. package/components/examples/MapExamples.tsx +268 -268
  81. package/components/examples/MapGmpExample.tsx +169 -169
  82. package/components/examples/MapShowcase.tsx +471 -471
  83. package/components/examples/RouteMapExamples.tsx +329 -329
  84. package/components/examples/SidebarLogoExample.tsx +65 -65
  85. package/components/examples/SimpleFilterableMap.tsx +219 -219
  86. package/components/examples/index.ts +45 -45
  87. package/components/figma/ImageWithFallback.tsx +27 -27
  88. package/components/hooks/index.ts +13 -13
  89. package/components/hooks/use-layout-shortcuts.ts +43 -43
  90. package/components/index.ts +86 -90
  91. package/components/layout/header/header.stories.tsx +204 -204
  92. package/components/layout/header/header.test.tsx +75 -75
  93. package/components/layout/header/header.tsx +349 -349
  94. package/components/layout/header/index.ts +1 -1
  95. package/components/layout/index.ts +2 -2
  96. package/components/layout/sidebar/index.ts +3 -3
  97. package/components/layout/sidebar/sidebar.stories.tsx +586 -586
  98. package/components/layout/sidebar/sidebar.test.tsx +76 -76
  99. package/components/layout/sidebar/sidebar.tsx +1079 -1073
  100. package/components/layout/sidebar/use-sidebar.ts +104 -104
  101. package/components/media/FloatingMediaWrapper.tsx +371 -371
  102. package/components/media/audio-player/AudioPlayer.stories.tsx +124 -124
  103. package/components/media/audio-player/AudioPlayer.test.tsx +106 -106
  104. package/components/media/audio-player/AudioPlayer.tsx +767 -765
  105. package/components/media/audio-player/index.ts +1 -1
  106. package/components/media/audio-player/use-audio-player.ts +312 -312
  107. package/components/media/index.ts +3 -3
  108. package/components/media/video-player/VideoPlayer.stories.tsx +98 -98
  109. package/components/media/video-player/VideoPlayer.test.tsx +73 -73
  110. package/components/media/video-player/VideoPlayer.tsx +310 -310
  111. package/components/media/video-player/index.ts +1 -1
  112. package/components/pages/forgot-password-page/ForgotPasswordPage.stories.tsx +24 -24
  113. package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +188 -188
  114. package/components/pages/forgot-password-page/forgot-password-page.test.tsx +45 -45
  115. package/components/pages/forgot-password-page/index.ts +1 -1
  116. package/components/pages/home-content/HomeContent.stories.tsx +43 -43
  117. package/components/pages/home-content/HomeContent.tsx +120 -120
  118. package/components/pages/home-content/index.ts +1 -1
  119. package/components/pages/home-page/HomePage.stories.tsx +39 -39
  120. package/components/pages/home-page/HomePage.tsx +78 -74
  121. package/components/pages/home-page/home-page.test.tsx +53 -53
  122. package/components/pages/home-page/index.ts +1 -1
  123. package/components/pages/index.ts +8 -8
  124. package/components/pages/login-page/LoginPage.stories.tsx +39 -39
  125. package/components/pages/login-page/LoginPage.tsx +218 -216
  126. package/components/pages/login-page/index.ts +1 -1
  127. package/components/pages/login-page/login-page.test.tsx +63 -63
  128. package/components/pages/reset-password-page/ResetPasswordPage.stories.tsx +24 -24
  129. package/components/pages/reset-password-page/ResetPasswordPage.tsx +243 -239
  130. package/components/pages/reset-password-page/index.ts +1 -1
  131. package/components/pages/template-content/TemplateContent.stories.tsx +43 -43
  132. package/components/pages/template-content/TemplateContent.tsx +1354 -1235
  133. package/components/pages/template-content/index.ts +1 -1
  134. package/components/pages/template-page/TemplatePage.stories.tsx +39 -39
  135. package/components/pages/template-page/TemplatePage.tsx +62 -62
  136. package/components/pages/template-page/index.ts +1 -1
  137. package/components/pages/template-page/template-page.test.tsx +52 -52
  138. package/components/pages/verify-email-page/VerifyEmailPage.stories.tsx +41 -41
  139. package/components/pages/verify-email-page/VerifyEmailPage.tsx +206 -206
  140. package/components/pages/verify-email-page/index.ts +1 -1
  141. package/components/public-api-smoke.test.tsx +52 -52
  142. package/components/shared/CustomTooltipContent.tsx +48 -48
  143. package/components/shared/assistant-utils.test.ts +16 -16
  144. package/components/shared/assistant-utils.ts +225 -225
  145. package/components/shared/error-boundary.stories.tsx +114 -132
  146. package/components/shared/error-boundary.tsx +150 -154
  147. package/components/shared/error-fallbacks.tsx +222 -226
  148. package/components/shared/layout-constants.ts +8 -8
  149. package/components/shared/navigation.ts +35 -35
  150. package/components/shared/use-mobile.test.ts +16 -16
  151. package/components/shared/use-mobile.ts +36 -36
  152. package/components/shared/utils.test.ts +14 -14
  153. package/components/shared/utils.ts +6 -6
  154. package/components/ui/accordion/accordion.stories.tsx +105 -105
  155. package/components/ui/accordion/accordion.test.tsx +59 -59
  156. package/components/ui/accordion/accordion.tsx +77 -77
  157. package/components/ui/accordion/index.ts +1 -1
  158. package/components/ui/alert/alert.stories.tsx +86 -86
  159. package/components/ui/alert/alert.test.tsx +53 -53
  160. package/components/ui/alert/alert.tsx +93 -93
  161. package/components/ui/alert/index.ts +1 -1
  162. package/components/ui/alert-dialog/alert-dialog.stories.tsx +84 -84
  163. package/components/ui/alert-dialog/alert-dialog.test.tsx +70 -70
  164. package/components/ui/alert-dialog/alert-dialog.tsx +149 -149
  165. package/components/ui/alert-dialog/index.ts +1 -1
  166. package/components/ui/aspect-ratio/aspect-ratio.stories.tsx +46 -46
  167. package/components/ui/aspect-ratio/aspect-ratio.test.tsx +28 -28
  168. package/components/ui/aspect-ratio/aspect-ratio.tsx +20 -20
  169. package/components/ui/aspect-ratio/index.ts +1 -1
  170. package/components/ui/assistant-chart/AssistantChart.tsx +64 -64
  171. package/components/ui/assistant-chart/assistant-chart.stories.tsx +44 -44
  172. package/components/ui/assistant-chart/assistant-chart.test.tsx +46 -46
  173. package/components/ui/assistant-chart/index.ts +1 -1
  174. package/components/ui/avatar/avatar.stories.tsx +86 -86
  175. package/components/ui/avatar/avatar.test.tsx +55 -55
  176. package/components/ui/avatar/avatar.tsx +71 -71
  177. package/components/ui/avatar/index.ts +1 -1
  178. package/components/ui/badge/badge.stories.tsx +72 -72
  179. package/components/ui/badge/badge.test.tsx +40 -40
  180. package/components/ui/badge/badge.tsx +58 -58
  181. package/components/ui/badge/index.ts +1 -1
  182. package/components/ui/breadcrumb/breadcrumb.stories.tsx +123 -123
  183. package/components/ui/breadcrumb/breadcrumb.test.tsx +70 -70
  184. package/components/ui/breadcrumb/breadcrumb.tsx +114 -114
  185. package/components/ui/breadcrumb/index.ts +1 -1
  186. package/components/ui/button/button.stories.tsx +183 -183
  187. package/components/ui/button/button.test.tsx +64 -64
  188. package/components/ui/button/button.tsx +98 -98
  189. package/components/ui/button/index.ts +1 -1
  190. package/components/ui/calendar/calendar.stories.tsx +108 -108
  191. package/components/ui/calendar/calendar.test.tsx +53 -53
  192. package/components/ui/calendar/calendar.tsx +230 -230
  193. package/components/ui/calendar/index.ts +1 -1
  194. package/components/ui/card/card.stories.tsx +301 -301
  195. package/components/ui/card/card.test.tsx +55 -55
  196. package/components/ui/card/card.tsx +83 -83
  197. package/components/ui/card/index.ts +1 -1
  198. package/components/ui/carousel/carousel.stories.tsx +80 -80
  199. package/components/ui/carousel/carousel.test.tsx +75 -75
  200. package/components/ui/carousel/carousel.tsx +242 -242
  201. package/components/ui/carousel/index.ts +1 -1
  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.stories.tsx +109 -109
  207. package/components/ui/checkbox/checkbox.test.tsx +49 -49
  208. package/components/ui/checkbox/checkbox.tsx +68 -68
  209. package/components/ui/checkbox/index.ts +1 -1
  210. package/components/ui/collapsible/collapsible.stories.tsx +45 -45
  211. package/components/ui/collapsible/collapsible.test.tsx +51 -51
  212. package/components/ui/collapsible/collapsible.tsx +32 -32
  213. package/components/ui/collapsible/index.ts +1 -1
  214. package/components/ui/command/command.stories.tsx +134 -134
  215. package/components/ui/command/command.test.tsx +48 -48
  216. package/components/ui/command/command.tsx +163 -163
  217. package/components/ui/command/index.ts +1 -1
  218. package/components/ui/context-menu/context-menu.stories.tsx +76 -76
  219. package/components/ui/context-menu/context-menu.test.tsx +61 -61
  220. package/components/ui/context-menu/context-menu.tsx +236 -236
  221. package/components/ui/context-menu/index.ts +1 -1
  222. package/components/ui/dialog/dialog.stories.tsx +174 -174
  223. package/components/ui/dialog/dialog.test.tsx +78 -78
  224. package/components/ui/dialog/dialog.tsx +189 -189
  225. package/components/ui/dialog/index.ts +1 -1
  226. package/components/ui/drawer/drawer.stories.tsx +71 -71
  227. package/components/ui/drawer/drawer.test.tsx +67 -67
  228. package/components/ui/drawer/drawer.tsx +146 -146
  229. package/components/ui/drawer/index.ts +1 -1
  230. package/components/ui/dropdown-menu/dropdown-menu.stories.tsx +156 -156
  231. package/components/ui/dropdown-menu/dropdown-menu.test.tsx +62 -62
  232. package/components/ui/dropdown-menu/dropdown-menu.tsx +240 -240
  233. package/components/ui/dropdown-menu/index.ts +1 -1
  234. package/components/ui/empty/empty.stories.tsx +85 -85
  235. package/components/ui/empty/empty.test.tsx +31 -31
  236. package/components/ui/empty/empty.tsx +88 -88
  237. package/components/ui/empty/index.ts +1 -1
  238. package/components/ui/file-upload/file-upload.stories.tsx +144 -144
  239. package/components/ui/file-upload/file-upload.test.tsx +65 -65
  240. package/components/ui/file-upload/file-upload.tsx +142 -142
  241. package/components/ui/file-upload/index.ts +2 -2
  242. package/components/ui/file-upload/use-file-upload.ts +177 -177
  243. package/components/ui/form/form.stories.tsx +85 -85
  244. package/components/ui/form/form.test.tsx +75 -75
  245. package/components/ui/form/form.tsx +163 -163
  246. package/components/ui/form/index.ts +1 -1
  247. package/components/ui/google-maps-loader/google-maps-loader.test.tsx +35 -35
  248. package/components/ui/google-maps-loader/google-maps-loader.tsx +465 -465
  249. package/components/ui/google-maps-loader/index.ts +1 -1
  250. package/components/ui/hover-card/hover-card.stories.tsx +61 -61
  251. package/components/ui/hover-card/hover-card.test.tsx +48 -48
  252. package/components/ui/hover-card/hover-card.tsx +50 -50
  253. package/components/ui/hover-card/index.ts +1 -1
  254. package/components/ui/index.ts +400 -400
  255. package/components/ui/input/index.ts +1 -1
  256. package/components/ui/input/input.stories.tsx +153 -153
  257. package/components/ui/input/input.test.tsx +47 -47
  258. package/components/ui/input/input.tsx +57 -57
  259. package/components/ui/input-otp/index.ts +1 -1
  260. package/components/ui/input-otp/input-otp.stories.tsx +120 -120
  261. package/components/ui/input-otp/input-otp.test.tsx +74 -74
  262. package/components/ui/input-otp/input-otp.tsx +101 -101
  263. package/components/ui/label/index.ts +1 -1
  264. package/components/ui/label/label.stories.tsx +74 -74
  265. package/components/ui/label/label.test.tsx +45 -45
  266. package/components/ui/label/label.tsx +53 -53
  267. package/components/ui/map/index.ts +1 -1
  268. package/components/ui/map/map.stories.tsx +86 -86
  269. package/components/ui/map/map.test.tsx +82 -82
  270. package/components/ui/map/map.tsx +506 -506
  271. package/components/ui/map/mock.test.tsx +13 -13
  272. package/components/ui/map-config/index.ts +1 -1
  273. package/components/ui/map-config/map-config.ts +18 -18
  274. package/components/ui/map-layers/index.ts +1 -1
  275. package/components/ui/map-layers/map-layers.test.tsx +48 -48
  276. package/components/ui/map-layers/map-layers.tsx +126 -126
  277. package/components/ui/map.exports/index.ts +1 -1
  278. package/components/ui/map.exports/map.exports.ts +31 -31
  279. package/components/ui/menubar/index.ts +1 -1
  280. package/components/ui/menubar/menubar.stories.tsx +130 -130
  281. package/components/ui/menubar/menubar.test.tsx +53 -53
  282. package/components/ui/menubar/menubar.tsx +265 -265
  283. package/components/ui/navigation-menu/index.ts +1 -1
  284. package/components/ui/navigation-menu/navigation-menu.stories.tsx +126 -126
  285. package/components/ui/navigation-menu/navigation-menu.test.tsx +47 -47
  286. package/components/ui/navigation-menu/navigation-menu.tsx +165 -165
  287. package/components/ui/notification-badge/index.ts +1 -1
  288. package/components/ui/notification-badge/notification-badge.stories.tsx +66 -66
  289. package/components/ui/notification-badge/notification-badge.test.tsx +61 -61
  290. package/components/ui/notification-badge/notification-badge.tsx +91 -91
  291. package/components/ui/page-header/index.ts +1 -1
  292. package/components/ui/page-header/page-header.stories.tsx +69 -69
  293. package/components/ui/page-header/page-header.test.tsx +37 -37
  294. package/components/ui/page-header/page-header.tsx +124 -124
  295. package/components/ui/pagination/index.ts +3 -3
  296. package/components/ui/pagination/pagination.stories.tsx +210 -210
  297. package/components/ui/pagination/pagination.test.tsx +63 -63
  298. package/components/ui/pagination/pagination.tsx +140 -140
  299. package/components/ui/pagination/use-pagination.ts +173 -173
  300. package/components/ui/popover/index.ts +1 -1
  301. package/components/ui/popover/popover.stories.tsx +73 -73
  302. package/components/ui/popover/popover.test.tsx +48 -48
  303. package/components/ui/popover/popover.tsx +54 -54
  304. package/components/ui/progress/index.ts +1 -1
  305. package/components/ui/progress/progress.stories.tsx +55 -55
  306. package/components/ui/progress/progress.test.tsx +23 -23
  307. package/components/ui/progress/progress.tsx +68 -68
  308. package/components/ui/radio-group/index.ts +1 -1
  309. package/components/ui/radio-group/radio-group.stories.tsx +114 -114
  310. package/components/ui/radio-group/radio-group.test.tsx +78 -78
  311. package/components/ui/radio-group/radio-group.tsx +93 -93
  312. package/components/ui/rating/index.ts +1 -1
  313. package/components/ui/rating/rating.stories.tsx +50 -50
  314. package/components/ui/rating/rating.test.tsx +48 -48
  315. package/components/ui/rating/rating.tsx +145 -145
  316. package/components/ui/resizable/index.ts +1 -1
  317. package/components/ui/resizable/resizable.stories.tsx +88 -88
  318. package/components/ui/resizable/resizable.test.tsx +61 -61
  319. package/components/ui/resizable/resizable.tsx +452 -452
  320. package/components/ui/rich-text-editor/index.ts +7 -7
  321. package/components/ui/rich-text-editor/rich-text-editor.stories.tsx +290 -290
  322. package/components/ui/rich-text-editor/rich-text-editor.test.tsx +86 -86
  323. package/components/ui/rich-text-editor/rich-text-editor.tsx +634 -634
  324. package/components/ui/rich-text-editor/use-rich-text-editor.ts +453 -453
  325. package/components/ui/route-map/index.ts +1 -1
  326. package/components/ui/route-map/route-map.stories.tsx +48 -48
  327. package/components/ui/route-map/route-map.test.tsx +108 -108
  328. package/components/ui/route-map/route-map.tsx +349 -349
  329. package/components/ui/scroll-area/index.ts +1 -1
  330. package/components/ui/scroll-area/scroll-area.stories.tsx +31 -31
  331. package/components/ui/scroll-area/scroll-area.test.tsx +27 -27
  332. package/components/ui/scroll-area/scroll-area.tsx +70 -70
  333. package/components/ui/search/index.ts +1 -1
  334. package/components/ui/search/search.stories.tsx +107 -107
  335. package/components/ui/search/search.test.tsx +67 -67
  336. package/components/ui/search/search.tsx +141 -141
  337. package/components/ui/select/index.ts +1 -1
  338. package/components/ui/select/select.stories.tsx +163 -163
  339. package/components/ui/select/select.test.tsx +99 -99
  340. package/components/ui/select/select.tsx +195 -195
  341. package/components/ui/separator/index.ts +1 -1
  342. package/components/ui/separator/separator.stories.tsx +55 -55
  343. package/components/ui/separator/separator.test.tsx +23 -23
  344. package/components/ui/separator/separator.tsx +39 -39
  345. package/components/ui/sheet/index.ts +1 -1
  346. package/components/ui/sheet/sheet.stories.tsx +93 -93
  347. package/components/ui/sheet/sheet.test.tsx +62 -62
  348. package/components/ui/sheet/sheet.tsx +149 -149
  349. package/components/ui/simple-map/index.ts +1 -1
  350. package/components/ui/simple-map/simple-map.stories.tsx +44 -44
  351. package/components/ui/simple-map/simple-map.test.tsx +36 -36
  352. package/components/ui/simple-map/simple-map.tsx +92 -92
  353. package/components/ui/skeleton/index.ts +1 -1
  354. package/components/ui/skeleton/skeleton.stories.tsx +36 -36
  355. package/components/ui/skeleton/skeleton.test.tsx +19 -19
  356. package/components/ui/skeleton/skeleton.tsx +25 -25
  357. package/components/ui/slider/index.ts +1 -1
  358. package/components/ui/slider/slider.stories.tsx +44 -44
  359. package/components/ui/slider/slider.test.tsx +25 -25
  360. package/components/ui/slider/slider.tsx +66 -66
  361. package/components/ui/sonner/index.ts +1 -1
  362. package/components/ui/sonner/sonner.stories.tsx +41 -41
  363. package/components/ui/sonner/sonner.test.tsx +24 -24
  364. package/components/ui/sonner/sonner.tsx +74 -74
  365. package/components/ui/stats-card/index.ts +2 -2
  366. package/components/ui/stats-card/stats-card-skeleton.tsx +1 -3
  367. package/components/ui/stats-card/stats-card.stories.tsx +99 -99
  368. package/components/ui/stats-card/stats-card.test.tsx +34 -34
  369. package/components/ui/stats-card/stats-card.tsx +93 -93
  370. package/components/ui/stepper/index.ts +3 -3
  371. package/components/ui/stepper/stepper.stories.tsx +171 -171
  372. package/components/ui/stepper/stepper.test.tsx +47 -47
  373. package/components/ui/stepper/stepper.tsx +190 -190
  374. package/components/ui/stepper/use-stepper.ts +139 -139
  375. package/components/ui/switch/index.ts +1 -1
  376. package/components/ui/switch/switch.stories.tsx +93 -93
  377. package/components/ui/switch/switch.test.tsx +44 -44
  378. package/components/ui/switch/switch.tsx +70 -70
  379. package/components/ui/table/index.ts +1 -1
  380. package/components/ui/table/table.stories.tsx +114 -114
  381. package/components/ui/table/table.test.tsx +43 -43
  382. package/components/ui/table/table.tsx +104 -104
  383. package/components/ui/tabs/index.ts +1 -1
  384. package/components/ui/tabs/tabs.stories.tsx +140 -140
  385. package/components/ui/tabs/tabs.test.tsx +50 -50
  386. package/components/ui/tabs/tabs.tsx +66 -66
  387. package/components/ui/textarea/index.ts +1 -1
  388. package/components/ui/textarea/textarea.stories.tsx +69 -69
  389. package/components/ui/textarea/textarea.test.tsx +41 -41
  390. package/components/ui/textarea/textarea.tsx +61 -61
  391. package/components/ui/timeline/index.ts +1 -1
  392. package/components/ui/timeline/timeline.stories.tsx +97 -97
  393. package/components/ui/timeline/timeline.test.tsx +53 -53
  394. package/components/ui/timeline/timeline.tsx +124 -124
  395. package/components/ui/toggle/index.ts +1 -1
  396. package/components/ui/toggle/toggle.stories.tsx +56 -56
  397. package/components/ui/toggle/toggle.test.tsx +32 -32
  398. package/components/ui/toggle/toggle.tsx +55 -55
  399. package/components/ui/toggle-group/index.ts +1 -1
  400. package/components/ui/toggle-group/toggle-group.stories.tsx +66 -66
  401. package/components/ui/toggle-group/toggle-group.test.tsx +47 -47
  402. package/components/ui/toggle-group/toggle-group.tsx +79 -79
  403. package/components/ui/tooltip/index.ts +1 -1
  404. package/components/ui/tooltip/tooltip.stories.tsx +83 -83
  405. package/components/ui/tooltip/tooltip.test.tsx +39 -39
  406. package/components/ui/tooltip/tooltip.tsx +69 -69
  407. package/components/ui/tree-view/index.ts +4 -4
  408. package/components/ui/tree-view/tree-view.stories.tsx +154 -154
  409. package/components/ui/tree-view/tree-view.test.tsx +58 -58
  410. package/components/ui/tree-view/tree-view.tsx +171 -171
  411. package/components/ui/tree-view/use-tree-view.ts +237 -237
  412. package/components.json +892 -892
  413. package/contexts/ApiKeyContext.test.tsx +26 -26
  414. package/contexts/ApiKeyContext.tsx +196 -196
  415. package/contexts/AssistenteContext.test.tsx +17 -17
  416. package/contexts/AssistenteContext.tsx +113 -113
  417. package/contexts/AuthContext.tsx +121 -118
  418. package/contexts/BrandColorsContext.test.tsx +21 -21
  419. package/contexts/BrandColorsContext.tsx +251 -251
  420. package/contexts/LanguageContext.tsx +1 -2
  421. package/contexts/LayoutContext.test.tsx +29 -29
  422. package/contexts/LayoutContext.tsx +140 -140
  423. package/contexts/ThemeContext.test.tsx +38 -38
  424. package/contexts/ThemeContext.tsx +111 -111
  425. package/contexts/index.ts +8 -8
  426. package/contexts/theme-data.ts +340 -340
  427. package/dist/AssistantChart-COGiOV-g.cjs +3541 -0
  428. package/dist/AssistantChart-CWX1OWNM.js +3373 -0
  429. package/dist/AudioPlayer-9psiEucT.cjs +1282 -0
  430. package/dist/AudioPlayer-Dp2bD1Gk.js +1278 -0
  431. package/dist/BrandColorsContext-DZT7JjeD.js +659 -0
  432. package/dist/BrandColorsContext-awnBCmC4.cjs +666 -0
  433. package/dist/CodeBlock-DYkTfR0f.js +221 -0
  434. package/dist/CodeBlock-EOvp9cVu.cjs +223 -0
  435. package/dist/CustomTooltipContent-BhdIeBEg.cjs +54 -0
  436. package/dist/CustomTooltipContent-CNbVB2NS.js +33 -0
  437. package/dist/FeatureCard-BZ4CYxFf.cjs +497 -0
  438. package/dist/FeatureCard-DNycVGwT.js +485 -0
  439. package/dist/FeatureCardSkeleton-DZqc96mt.js +27 -0
  440. package/dist/FeatureCardSkeleton-pTa0YNKP.cjs +29 -0
  441. package/dist/LayoutContext-BEq_-n98.cjs +96 -0
  442. package/dist/LayoutContext-DNl1xSoX.js +92 -0
  443. package/dist/ThemeContext-CMD3z2Dz.cjs +1930 -0
  444. package/dist/ThemeContext-x_F2zsnv.js +1923 -0
  445. package/dist/VerifyEmailPage-BJjAMUTW.js +3223 -0
  446. package/dist/VerifyEmailPage-Bv8Ah_TK.cjs +3235 -0
  447. package/dist/VerifyEmailPage-CkBYfsNy.cjs +3232 -0
  448. package/dist/VerifyEmailPage-Cyl55sJb.js +3226 -0
  449. package/dist/VerifyEmailPage-X14vhdyl.js +3296 -0
  450. package/dist/VerifyEmailPage-u_Dn7t1U.cjs +3305 -0
  451. package/dist/XerticaOrbe-Uk2JML1-.cjs +1927 -0
  452. package/dist/XerticaOrbe-jA5T2iOk.js +1925 -0
  453. package/dist/XerticaProvider-BErr83Bg.js +42 -0
  454. package/dist/XerticaProvider-CwOkHxiT.cjs +44 -0
  455. package/dist/XerticaProvider-DUOJg9iX.js +49 -0
  456. package/dist/XerticaProvider-Dl_b72_l.cjs +51 -0
  457. package/dist/XerticaXLogo-BX3ueACh.js +255 -0
  458. package/dist/XerticaXLogo-mqjoBiLI.js +252 -0
  459. package/dist/XerticaXLogo-qBPhwK3g.cjs +260 -0
  460. package/dist/XerticaXLogo-uQgwns_E.cjs +257 -0
  461. package/dist/alert-dialog-DhwPioBa.cjs +885 -0
  462. package/dist/alert-dialog-DqlRW_An.js +831 -0
  463. package/dist/assistant.cjs.js +8 -4
  464. package/dist/assistant.es.js +5 -11
  465. package/dist/avatar-3kO2Anrp.js +54 -0
  466. package/dist/avatar-BCM7YQRC.cjs +77 -0
  467. package/dist/blocks.cjs.js +9 -4
  468. package/dist/blocks.es.js +2 -16
  469. package/dist/brand.cjs.js +10 -5
  470. package/dist/brand.es.js +3 -11
  471. package/dist/breadcrumb-BKtHF4gk.cjs +98 -0
  472. package/dist/breadcrumb-ifNsA7Zl.js +90 -0
  473. package/dist/button-0BlA47It.cjs +85 -0
  474. package/dist/button-DZHzN1Gd.js +62 -0
  475. package/dist/cli.js +471 -93
  476. package/dist/components/brand/theme-toggle/ThemeToggle.d.ts +1 -1
  477. package/dist/components/index.d.ts +1 -1
  478. package/dist/dropdown-menu-BMcykFDf.cjs +225 -0
  479. package/dist/dropdown-menu-Dn_eV2Xb.js +190 -0
  480. package/dist/google-maps-loader-BCe58h9D.js +308 -0
  481. package/dist/google-maps-loader-casMyxlo.cjs +316 -0
  482. package/dist/hooks.cjs.js +12 -8
  483. package/dist/hooks.es.js +10 -27
  484. package/dist/index-9GWd0qxq.cjs +12 -0
  485. package/dist/index-BabBx2pa.js +6 -0
  486. package/dist/index.cjs.js +37 -32
  487. package/dist/index.es.js +30 -363
  488. package/dist/input-C_UiS2Py.cjs +152 -0
  489. package/dist/input-cc-PTD4R.js +123 -0
  490. package/dist/layout.cjs.js +10 -6
  491. package/dist/layout.es.js +7 -9
  492. package/dist/media.cjs.js +8 -3
  493. package/dist/media.es.js +1 -6
  494. package/dist/pages.cjs.js +8 -3
  495. package/dist/pages.es.js +1 -11
  496. package/dist/progress-C7Lti5wo.js +80 -0
  497. package/dist/progress-Cqwxbqs1.cjs +103 -0
  498. package/dist/rich-text-editor-DqLICivI.js +2832 -0
  499. package/dist/rich-text-editor-DxO1Hz3a.cjs +2903 -0
  500. package/dist/select-CH6v_KcQ.cjs +161 -0
  501. package/dist/select-D-xvCZK2.js +130 -0
  502. package/dist/sidebar-3XyzjVBw.js +792 -0
  503. package/dist/sidebar-B4ZWaMrE.js +792 -0
  504. package/dist/sidebar-BS1p2V7t.cjs +795 -0
  505. package/dist/sidebar-DyYvgyBj.cjs +795 -0
  506. package/dist/skeleton-DjiHerJn.cjs +87 -0
  507. package/dist/skeleton-DtR5tkYe.js +78 -0
  508. package/dist/slider-B00b9SVK.cjs +78 -0
  509. package/dist/slider-DQCNUUMj.js +56 -0
  510. package/dist/sonner-B-jWlik1.cjs +68 -0
  511. package/dist/sonner-C9tiqj4f.js +47 -0
  512. package/dist/tooltip-D8n9UYoU.cjs +72 -0
  513. package/dist/tooltip-RtbSmPYJ.js +48 -0
  514. package/dist/ui.cjs.js +23 -18
  515. package/dist/ui.es.js +16 -303
  516. package/dist/use-audio-player-B78fd2ct.js +188 -0
  517. package/dist/use-audio-player-DGvhPrgR.cjs +190 -0
  518. package/dist/use-mobile-BdXTRb0Z.cjs +51 -0
  519. package/dist/use-mobile-Ce2cBAQe.js +29 -0
  520. package/dist/xertica-assistant-B1NaSFFj.js +2173 -0
  521. package/dist/xertica-assistant-B687qEPU.js +2165 -0
  522. package/dist/xertica-assistant-CIaUlbIt.cjs +2180 -0
  523. package/dist/xertica-assistant-sOHwTgIP.cjs +2172 -0
  524. package/dist/xertica-ui.css +1 -1
  525. package/docs/ai-usage.md +195 -195
  526. package/docs/architecture-improvements.md +456 -456
  527. package/docs/architecture.md +312 -306
  528. package/docs/components/accordion.md +109 -109
  529. package/docs/components/alert-dialog.md +127 -127
  530. package/docs/components/alert.md +106 -106
  531. package/docs/components/aspect-ratio.md +58 -58
  532. package/docs/components/assistant-chart.md +47 -47
  533. package/docs/components/assistant.md +428 -426
  534. package/docs/components/audio-player.md +167 -167
  535. package/docs/components/avatar.md +101 -101
  536. package/docs/components/badge.md +84 -84
  537. package/docs/components/branding.md +252 -252
  538. package/docs/components/breadcrumb.md +104 -104
  539. package/docs/components/button.md +156 -156
  540. package/docs/components/calendar.md +141 -141
  541. package/docs/components/card-patterns.md +447 -445
  542. package/docs/components/card.md +245 -245
  543. package/docs/components/carousel.md +100 -100
  544. package/docs/components/chart.md +638 -638
  545. package/docs/components/checkbox.md +88 -88
  546. package/docs/components/code-block.md +105 -105
  547. package/docs/components/collapsible.md +86 -86
  548. package/docs/components/command.md +113 -113
  549. package/docs/components/context-menu.md +81 -81
  550. package/docs/components/dialog.md +198 -198
  551. package/docs/components/drawer.md +105 -105
  552. package/docs/components/dropdown-menu.md +127 -127
  553. package/docs/components/empty.md +127 -127
  554. package/docs/components/error-boundary.md +201 -191
  555. package/docs/components/file-upload.md +189 -189
  556. package/docs/components/floating-media-wrapper.md +63 -63
  557. package/docs/components/form.md +177 -177
  558. package/docs/components/formatted-document.md +105 -105
  559. package/docs/components/google-maps-loader.md +44 -44
  560. package/docs/components/header.md +177 -177
  561. package/docs/components/hooks.md +432 -430
  562. package/docs/components/hover-card.md +86 -86
  563. package/docs/components/image-with-fallback.md +107 -107
  564. package/docs/components/input-otp.md +95 -95
  565. package/docs/components/input.md +130 -130
  566. package/docs/components/label.md +69 -69
  567. package/docs/components/language-selector.md +20 -16
  568. package/docs/components/map-layers.md +138 -138
  569. package/docs/components/map.md +84 -84
  570. package/docs/components/markdown-message.md +47 -47
  571. package/docs/components/menubar.md +89 -89
  572. package/docs/components/modern-chat-input.md +164 -164
  573. package/docs/components/navigation-menu.md +83 -83
  574. package/docs/components/notification-badge.md +78 -78
  575. package/docs/components/page-header.md +93 -93
  576. package/docs/components/pages.md +323 -309
  577. package/docs/components/pagination.md +334 -334
  578. package/docs/components/popover.md +116 -116
  579. package/docs/components/progress.md +103 -103
  580. package/docs/components/radio-group.md +133 -133
  581. package/docs/components/rating.md +77 -77
  582. package/docs/components/resizable.md +84 -84
  583. package/docs/components/rich-text-editor.md +255 -255
  584. package/docs/components/route-map.md +124 -124
  585. package/docs/components/scroll-area.md +58 -58
  586. package/docs/components/search.md +87 -87
  587. package/docs/components/select.md +144 -144
  588. package/docs/components/separator.md +58 -58
  589. package/docs/components/sheet.md +122 -122
  590. package/docs/components/sidebar.md +314 -314
  591. package/docs/components/simple-map.md +51 -51
  592. package/docs/components/skeleton.md +99 -99
  593. package/docs/components/slider.md +84 -84
  594. package/docs/components/sonner.md +115 -115
  595. package/docs/components/stats-card.md +120 -120
  596. package/docs/components/stepper.md +268 -268
  597. package/docs/components/switch.md +106 -106
  598. package/docs/components/table.md +138 -138
  599. package/docs/components/tabs.md +117 -117
  600. package/docs/components/textarea.md +86 -86
  601. package/docs/components/theme-toggle.md +73 -73
  602. package/docs/components/timeline.md +121 -121
  603. package/docs/components/toggle-group.md +68 -68
  604. package/docs/components/toggle.md +62 -62
  605. package/docs/components/tooltip.md +116 -116
  606. package/docs/components/tree-view.md +238 -238
  607. package/docs/components/use-mobile.md +96 -96
  608. package/docs/components/video-player.md +68 -68
  609. package/docs/components/xertica-logo.md +36 -36
  610. package/docs/components/xertica-orbe.md +35 -35
  611. package/docs/components/xertica-provider.md +65 -65
  612. package/docs/components/xertica-xlogo.md +35 -35
  613. package/docs/decision-tree.md +293 -293
  614. package/docs/doc-audit.md +244 -243
  615. package/docs/form-sizing.md +162 -162
  616. package/docs/getting-started.md +616 -591
  617. package/docs/guidelines.md +330 -328
  618. package/docs/i18n.md +61 -57
  619. package/docs/installation.md +268 -267
  620. package/docs/layout.md +143 -143
  621. package/docs/llms.md +295 -295
  622. package/docs/patterns/analytics.md +194 -194
  623. package/docs/patterns/crud.md +149 -149
  624. package/docs/patterns/dashboard.md +138 -138
  625. package/docs/patterns/detail-page.md +296 -296
  626. package/docs/patterns/form.md +241 -241
  627. package/docs/patterns/login.md +156 -156
  628. package/docs/patterns/settings.md +368 -368
  629. package/docs/patterns/wizard.md +213 -213
  630. package/docs/state-management.md +289 -289
  631. package/guidelines/Guidelines.md +409 -406
  632. package/hooks/useTheme.test.tsx +16 -16
  633. package/hooks/useTheme.ts +4 -4
  634. package/imports/Podcast.tsx +540 -540
  635. package/imports/XerticaAi.tsx +46 -46
  636. package/imports/XerticaX.tsx +15 -15
  637. package/imports/svg-aueiaqngck.ts +20 -20
  638. package/imports/svg-v9krss1ozd.ts +23 -23
  639. package/imports/svg-vhrdofe3qe.ts +6 -6
  640. package/llms-compact.txt +2 -1
  641. package/llms.txt +2 -1
  642. package/mcp/resources.json +22 -22
  643. package/mcp/tools.json +35 -35
  644. package/package.json +219 -213
  645. package/scripts/ai-validator.ts +91 -91
  646. package/scripts/cleanup-case-dupes.ts +62 -62
  647. package/scripts/generate-ai-manifests.ts +107 -107
  648. package/styles/globals.css +13 -13
  649. package/styles/xertica/app-overrides/chat.css +61 -61
  650. package/styles/xertica/app-overrides/scrollbar.css +33 -33
  651. package/styles/xertica/base.css +90 -71
  652. package/styles/xertica/integrations/google-maps.css +76 -76
  653. package/styles/xertica/integrations/sonner.css +73 -73
  654. package/styles/xertica/theme-map.css +102 -99
  655. package/styles/xertica/tokens.css +240 -236
  656. package/templates/CLAUDE.md +16 -1
  657. package/templates/eslint.config.js +26 -26
  658. package/templates/guidelines/Guidelines.md +577 -553
  659. package/templates/package.json +69 -69
  660. package/templates/postcss.config.js +6 -6
  661. package/templates/src/app/App.tsx +46 -46
  662. package/templates/src/app/components/AppLayout.tsx +55 -55
  663. package/templates/src/app/components/AuthGuard.tsx +131 -82
  664. package/templates/src/app/context/AuthContext.tsx +108 -108
  665. package/templates/src/features/assistant/index.ts +5 -5
  666. package/templates/src/features/auth/index.ts +4 -4
  667. package/templates/src/features/auth/ui/AuthPageShell.tsx +32 -32
  668. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -72
  669. package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
  670. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +6 -2
  671. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
  672. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +2 -6
  673. package/templates/src/features/home/data/mock.ts +41 -35
  674. package/templates/src/features/home/index.ts +11 -11
  675. package/templates/src/features/home/store/dashboardStore.ts +25 -25
  676. package/templates/src/features/home/ui/HomeContent.tsx +117 -119
  677. package/templates/src/features/template/index.ts +5 -5
  678. package/templates/src/features/template/ui/CrudTemplate.tsx +1 -4
  679. package/templates/src/features/template/ui/LoginTemplate.tsx +1 -1
  680. package/templates/src/features/template/ui/TemplateContent.tsx +29 -21
  681. package/templates/src/locales/en/pages/templates.json +17 -17
  682. package/templates/src/locales/es/pages/templates.json +17 -17
  683. package/templates/src/locales/pt-BR/pages/templates.json +17 -17
  684. package/templates/src/main.tsx +11 -11
  685. package/templates/src/pages/AssistantPage.tsx +26 -20
  686. package/templates/src/pages/ForgotPasswordPage.tsx +6 -6
  687. package/templates/src/pages/HomePage.tsx +53 -49
  688. package/templates/src/pages/LoginPage.tsx +10 -10
  689. package/templates/src/pages/ResetPasswordPage.tsx +6 -6
  690. package/templates/src/pages/TemplatePage.tsx +28 -28
  691. package/templates/src/pages/VerifyEmailPage.tsx +6 -6
  692. package/templates/src/shared/config/navigation.ts +19 -19
  693. package/templates/src/shared/error-boundary.tsx +150 -154
  694. package/templates/src/shared/error-fallbacks.tsx +222 -226
  695. package/templates/src/shared/lib/auth.ts +20 -20
  696. package/templates/src/shared/types/auth.ts +3 -3
  697. package/templates/src/styles/index.css +95 -95
  698. package/templates/src/styles/xertica/tokens.css +240 -236
  699. package/templates/tsconfig.json +25 -25
  700. package/templates/tsconfig.node.json +12 -12
  701. package/templates/vite-env.d.ts +1 -1
  702. package/templates/vite.config.js +20 -20
  703. package/templates/vite.config.ts +54 -51
  704. package/utils/color-utils.ts +72 -72
  705. package/utils/demo-responses.test.ts +10 -10
  706. package/utils/demo-responses.ts +151 -151
  707. package/utils/gemini.test.ts +25 -25
  708. package/utils/gemini.ts +155 -155
@@ -0,0 +1,3232 @@
1
+ 'use strict';
2
+
3
+ const jsxRuntime = require('react/jsx-runtime');
4
+ const React = require('react');
5
+ const button = require('./button-0BlA47It.cjs');
6
+ const input = require('./input-C_UiS2Py.cjs');
7
+ const alertDialog = require('./alert-dialog-DhwPioBa.cjs');
8
+ const XerticaXLogo = require('./XerticaXLogo-uQgwns_E.cjs');
9
+ const lucideReact = require('lucide-react');
10
+ const reactRouterDom = require('react-router-dom');
11
+ const sidebar = require('./sidebar-DyYvgyBj.cjs');
12
+ const skeleton = require('./skeleton-DjiHerJn.cjs');
13
+ const progress = require('./progress-Cqwxbqs1.cjs');
14
+ const LayoutContext = require('./LayoutContext-BEq_-n98.cjs');
15
+ const ThemeContext = require('./ThemeContext-CMD3z2Dz.cjs');
16
+ const reactQuery = require('@tanstack/react-query');
17
+ const reactI18next = require('react-i18next');
18
+ const FeatureCardSkeleton = require('./FeatureCardSkeleton-pTa0YNKP.cjs');
19
+ const xerticaAssistant = require('./xertica-assistant-sOHwTgIP.cjs');
20
+ const i18n = require('i18next');
21
+ const richTextEditor = require('./rich-text-editor-DxO1Hz3a.cjs');
22
+ const select = require('./select-CH6v_KcQ.cjs');
23
+ const slider = require('./slider-B00b9SVK.cjs');
24
+ const sonner = require('sonner');
25
+ const zustand = require('zustand');
26
+
27
+ function ForgotPasswordPage() {
28
+ const navigate = reactRouterDom.useNavigate();
29
+ const [email, setEmail] = React.useState("");
30
+ const [isLoading, setIsLoading] = React.useState(false);
31
+ const handleSubmit = async (e) => {
32
+ e.preventDefault();
33
+ setIsLoading(true);
34
+ await new Promise((resolve) => setTimeout(resolve, 1500));
35
+ navigate("/verify-email", { state: { email } });
36
+ setIsLoading(false);
37
+ };
38
+ const handleSocialLogin = (_provider) => {
39
+ };
40
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-full flex overflow-y-auto", children: [
41
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
42
+ /* @__PURE__ */ jsxRuntime.jsx(
43
+ alertDialog.ImageWithFallback,
44
+ {
45
+ src: "https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1200&h=800&fit=crop&auto=format",
46
+ alt: "Segurança e tecnologia",
47
+ className: "absolute inset-0 w-full h-full object-cover"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
51
+ ] }),
52
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
53
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
54
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
55
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
56
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
57
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
58
+ XerticaXLogo.XerticaLogo,
59
+ {
60
+ className: "h-12 w-auto text-primary dark:text-foreground",
61
+ variant: "theme"
62
+ }
63
+ ) }),
64
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: "Recuperar senha" }),
65
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: "Digite seu e-mail e enviaremos as instruções para redefinir sua senha" })
66
+ ] }),
67
+ /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
68
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "form-group space-y-2", children: [
69
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", className: "form-label", children: "E-mail" }),
70
+ /* @__PURE__ */ jsxRuntime.jsx(
71
+ input.Input,
72
+ {
73
+ id: "email",
74
+ name: "email",
75
+ type: "email",
76
+ required: true,
77
+ className: "w-full",
78
+ placeholder: "seu@email.com",
79
+ value: email,
80
+ onChange: (e) => setEmail(e.target.value)
81
+ }
82
+ )
83
+ ] }),
84
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
85
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? "Enviando..." : "Enviar instruções" }),
86
+ /* @__PURE__ */ jsxRuntime.jsxs(
87
+ button.Button,
88
+ {
89
+ type: "button",
90
+ onClick: () => navigate("/login"),
91
+ variant: "outline",
92
+ className: "w-full text-muted-foreground hover:text-foreground",
93
+ children: [
94
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4 mr-2" }),
95
+ "Voltar para o login"
96
+ ]
97
+ }
98
+ )
99
+ ] })
100
+ ] }),
101
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
102
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
103
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
104
+ ] }),
105
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
106
+ /* @__PURE__ */ jsxRuntime.jsxs(
107
+ button.Button,
108
+ {
109
+ type: "button",
110
+ variant: "outline",
111
+ className: "w-full justify-center",
112
+ onClick: () => handleSocialLogin(),
113
+ children: [
114
+ /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
115
+ /* @__PURE__ */ jsxRuntime.jsx(
116
+ "path",
117
+ {
118
+ fill: "#EA4335",
119
+ d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"
120
+ }
121
+ ),
122
+ /* @__PURE__ */ jsxRuntime.jsx(
123
+ "path",
124
+ {
125
+ fill: "#4285F4",
126
+ d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"
127
+ }
128
+ ),
129
+ /* @__PURE__ */ jsxRuntime.jsx(
130
+ "path",
131
+ {
132
+ fill: "#FBBC05",
133
+ d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"
134
+ }
135
+ ),
136
+ /* @__PURE__ */ jsxRuntime.jsx(
137
+ "path",
138
+ {
139
+ fill: "#34A853",
140
+ d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"
141
+ }
142
+ ),
143
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
144
+ ] }),
145
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com Google" })
146
+ ]
147
+ }
148
+ ),
149
+ /* @__PURE__ */ jsxRuntime.jsxs(
150
+ button.Button,
151
+ {
152
+ type: "button",
153
+ variant: "outline",
154
+ className: "w-full justify-center",
155
+ onClick: () => handleSocialLogin(),
156
+ children: [
157
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
158
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com MT Login" })
159
+ ]
160
+ }
161
+ ),
162
+ /* @__PURE__ */ jsxRuntime.jsx(
163
+ button.Button,
164
+ {
165
+ type: "button",
166
+ variant: "outline",
167
+ className: "w-full justify-center font-normal",
168
+ onClick: () => handleSocialLogin(),
169
+ children: /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
170
+ "Entrar com ",
171
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { className: "font-semibold", children: "gov.br" })
172
+ ] })
173
+ }
174
+ )
175
+ ] })
176
+ ] })
177
+ ] })
178
+ ] });
179
+ }
180
+
181
+ const SIDEBAR_COLLAPSED_WIDTH = 80;
182
+
183
+ const t = (key, options) => i18n.t(key, options);
184
+ const MOCK_TEAM_MEMBERS = [
185
+ { id: "1", name: "Ana Silva", email: "ana.silva@example.com", role: "Developer", status: "active" },
186
+ { id: "2", name: "Bruno Costa", email: "bruno.costa@example.com", role: "Designer", status: "active" },
187
+ { id: "3", name: "Carla Oliveira", email: "carla.oliveira@example.com", role: "Manager", status: "away" },
188
+ { id: "4", name: "Diego Santos", email: "diego.santos@example.com", role: "Analyst", status: "inactive" }
189
+ ];
190
+ async function fetchTeamMembers() {
191
+ await new Promise((resolve) => setTimeout(resolve, 250));
192
+ return MOCK_TEAM_MEMBERS;
193
+ }
194
+ async function fetchFeatureCards() {
195
+ await new Promise((resolve) => setTimeout(resolve, 100));
196
+ return [
197
+ {
198
+ id: "template-cli",
199
+ title: t("home.templateCliTitle"),
200
+ description: t("home.templateCliDescription"),
201
+ badge: t("home.templateClibadge"),
202
+ href: "/template"
203
+ }
204
+ ];
205
+ }
206
+
207
+ function useTeamMembers() {
208
+ const { language } = ThemeContext.useLanguage();
209
+ return reactQuery.useQuery({
210
+ // Language is part of the key so each locale has its own cache slot.
211
+ queryKey: ["home", "team-members", language],
212
+ queryFn: fetchTeamMembers,
213
+ staleTime: 2 * 60 * 1e3
214
+ // 2 min
215
+ });
216
+ }
217
+
218
+ function useFeatureCards() {
219
+ const { language } = ThemeContext.useLanguage();
220
+ return reactQuery.useQuery({
221
+ // Language is part of the key so each locale has its own cache slot.
222
+ queryKey: ["home", "feature-cards", language],
223
+ queryFn: fetchFeatureCards,
224
+ staleTime: 10 * 60 * 1e3
225
+ // 10 min — feature list is fairly static
226
+ });
227
+ }
228
+
229
+ const useDashboardStore = zustand.create((set) => ({
230
+ // Filters
231
+ activeTab: "overview",
232
+ setActiveTab: (tab) => set({ activeTab: tab }),
233
+ // UI toggles
234
+ statsExpanded: true,
235
+ toggleStats: () => set((state) => ({ statsExpanded: !state.statsExpanded })),
236
+ // Showcase controls
237
+ progress: 45,
238
+ setProgress: (value) => set({ progress: value }),
239
+ sliderValue: [50],
240
+ setSliderValue: (value) => set({ sliderValue: value }),
241
+ switchEnabled: false,
242
+ toggleSwitch: () => set((state) => ({ switchEnabled: !state.switchEnabled }))
243
+ }));
244
+
245
+ function isDev() {
246
+ return false;
247
+ }
248
+ function SectionErrorFallback({ error, reset }) {
249
+ return /* @__PURE__ */ jsxRuntime.jsxs(
250
+ "div",
251
+ {
252
+ role: "alert",
253
+ className: "flex flex-col items-center justify-center gap-3 p-6 rounded-[var(--radius-lg)] border border-destructive/30 bg-destructive/5 text-center",
254
+ children: [
255
+ /* @__PURE__ */ jsxRuntime.jsxs(
256
+ "svg",
257
+ {
258
+ width: "24",
259
+ height: "24",
260
+ viewBox: "0 0 24 24",
261
+ fill: "none",
262
+ stroke: "currentColor",
263
+ strokeWidth: "2",
264
+ strokeLinecap: "round",
265
+ strokeLinejoin: "round",
266
+ className: "text-destructive shrink-0",
267
+ "aria-hidden": "true",
268
+ children: [
269
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
270
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
271
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "16", x2: "12.01", y2: "16" })
272
+ ]
273
+ }
274
+ ),
275
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
276
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium", children: "Não foi possível carregar este conteúdo" }),
277
+ isDev()
278
+ ] }),
279
+ /* @__PURE__ */ jsxRuntime.jsx(
280
+ "button",
281
+ {
282
+ onClick: reset,
283
+ className: "inline-flex items-center px-3 py-1.5 text-xs rounded-[var(--radius-button)] border border-border bg-background hover:bg-accent hover:text-accent-foreground transition-colors",
284
+ children: "Tentar novamente"
285
+ }
286
+ )
287
+ ]
288
+ }
289
+ );
290
+ }
291
+
292
+ class ErrorBoundary extends React.Component {
293
+ constructor(props) {
294
+ super(props);
295
+ this.state = { hasError: false, error: null };
296
+ this.reset = this.reset.bind(this);
297
+ }
298
+ static getDerivedStateFromError(error) {
299
+ return { hasError: true, error };
300
+ }
301
+ componentDidCatch(error, info) {
302
+ this.props.onError?.(error, info);
303
+ }
304
+ componentDidUpdate(prevProps) {
305
+ if (!this.state.hasError) return;
306
+ const { resetKeys } = this.props;
307
+ if (!resetKeys?.length) return;
308
+ const prevKeys = prevProps.resetKeys ?? [];
309
+ const changed = resetKeys.some((key, i) => key !== prevKeys[i]);
310
+ if (changed) this.reset();
311
+ }
312
+ reset() {
313
+ this.setState({ hasError: false, error: null });
314
+ }
315
+ render() {
316
+ const { hasError, error } = this.state;
317
+ const { children, fallback: Fallback } = this.props;
318
+ if (hasError && error) {
319
+ return /* @__PURE__ */ jsxRuntime.jsx(Fallback, { error, reset: this.reset });
320
+ }
321
+ return children;
322
+ }
323
+ }
324
+ function SectionErrorBoundary({ children, onError, resetKeys }) {
325
+ return /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { fallback: SectionErrorFallback, onError, resetKeys, children });
326
+ }
327
+
328
+ function HomeContent() {
329
+ const { t } = reactI18next.useTranslation();
330
+ const layout = LayoutContext.useOptionalLayout();
331
+ const sidebarExpanded = layout?.sidebarExpanded ?? false;
332
+ const sidebarWidth = layout?.sidebarWidth ?? 256;
333
+ const navigate = reactRouterDom.useNavigate();
334
+ const { data: featureCards = [], isLoading } = useFeatureCards();
335
+ return /* @__PURE__ */ jsxRuntime.jsxs(
336
+ "div",
337
+ {
338
+ style: {
339
+ paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : SIDEBAR_COLLAPSED_WIDTH
340
+ },
341
+ className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
342
+ children: [
343
+ /* @__PURE__ */ jsxRuntime.jsx(
344
+ sidebar.Header,
345
+ {
346
+ showThemeToggle: true,
347
+ showLanguageSelector: true,
348
+ breadcrumbs: [
349
+ { label: t("nav.designSystem"), href: "/home" },
350
+ { label: t("nav.home") }
351
+ ],
352
+ renderLink: (href, props) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, ...props })
353
+ }
354
+ ),
355
+ /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(input.ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-5 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
356
+ /* @__PURE__ */ jsxRuntime.jsx(
357
+ alertDialog.PageHeader,
358
+ {
359
+ title: t("home.welcome"),
360
+ subtitle: t("home.subtitle")
361
+ }
362
+ ),
363
+ /* @__PURE__ */ jsxRuntime.jsx(SectionErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
364
+ /* @__PURE__ */ jsxRuntime.jsx(FeatureCardSkeleton.FeatureCardSkeleton, { showAction: true }),
365
+ /* @__PURE__ */ jsxRuntime.jsx(FeatureCardSkeleton.FeatureCardSkeleton, { showAction: true }),
366
+ /* @__PURE__ */ jsxRuntime.jsx(FeatureCardSkeleton.FeatureCardSkeleton, { showAction: true })
367
+ ] }) : featureCards.map((card) => /* @__PURE__ */ jsxRuntime.jsxs(
368
+ skeleton.Card,
369
+ {
370
+ className: "hover:shadow-xl transition-shadow duration-200 flex flex-col h-full",
371
+ children: [
372
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
373
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 bg-[var(--chart-2)]/20 rounded-[var(--radius)]", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "w-6 h-6 text-[var(--chart-2)]" }) }),
374
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
375
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children: t(`home.${card.id.replace(/-/g, "")}Title`, { defaultValue: card.title }) }),
376
+ card.badge && /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", className: "text-xs", children: t(`home.${card.id.replace(/-/g, "")}badge`, { defaultValue: card.badge }) })
377
+ ] })
378
+ ] }) }),
379
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t(`home.${card.id.replace(/-/g, "")}Description`, { defaultValue: card.description }) }) }),
380
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
381
+ button.Button,
382
+ {
383
+ variant: "outline",
384
+ className: "w-full",
385
+ onClick: () => navigate(card.href),
386
+ children: t("common.view")
387
+ }
388
+ ) })
389
+ ]
390
+ },
391
+ card.id
392
+ )) }) })
393
+ ] }) }) }) })
394
+ ]
395
+ }
396
+ );
397
+ }
398
+
399
+ const routes = [
400
+ { path: "/home", label: "Home", icon: lucideReact.Home },
401
+ { path: "/template", label: "Template", icon: lucideReact.FileText }
402
+ ];
403
+
404
+ const AuthContext = React.createContext(null);
405
+ function useAuth() {
406
+ const ctx = React.useContext(AuthContext);
407
+ if (!ctx) throw new Error("useAuth must be used within <AuthProvider>");
408
+ return ctx;
409
+ }
410
+
411
+ async function fetchAssistantConfig() {
412
+ await new Promise((resolve) => setTimeout(resolve, 150));
413
+ const t = (key) => i18n.t(key);
414
+ return {
415
+ suggestions: [
416
+ { id: "1", text: t("assistant.suggestions.whatCanIAsk") },
417
+ { id: "2", text: t("assistant.suggestions.whatDoYouDo") },
418
+ { id: "3", text: t("assistant.suggestions.whichProjects") },
419
+ { id: "4", text: t("assistant.suggestions.nextProject") }
420
+ ],
421
+ richSuggestions: [
422
+ { id: "rich-1", text: t("assistant.richSuggestions.viewPerformance") },
423
+ { id: "rich-2", text: t("assistant.richSuggestions.generateReport") },
424
+ { id: "rich-3", text: t("assistant.richSuggestions.createDocument") },
425
+ { id: "rich-4", text: t("assistant.richSuggestions.generatePodcast") }
426
+ ],
427
+ feedbackOptions: [
428
+ t("assistant.feedback.notWhatIWanted"),
429
+ t("assistant.feedback.incorrectInfo"),
430
+ t("assistant.feedback.incompleteAnswer")
431
+ ]
432
+ };
433
+ }
434
+ function getMockRichSuggestions() {
435
+ return [
436
+ { id: "rich-1", text: i18n.t("assistant.richSuggestions.viewPerformance") },
437
+ { id: "rich-2", text: i18n.t("assistant.richSuggestions.generateReport") },
438
+ { id: "rich-3", text: i18n.t("assistant.richSuggestions.createDocument") },
439
+ { id: "rich-4", text: i18n.t("assistant.richSuggestions.generatePodcast") }
440
+ ];
441
+ }
442
+ function getMockFeedbackOptions() {
443
+ return [
444
+ i18n.t("assistant.feedback.notWhatIWanted"),
445
+ i18n.t("assistant.feedback.incorrectInfo"),
446
+ i18n.t("assistant.feedback.incompleteAnswer")
447
+ ];
448
+ }
449
+
450
+ function useAssistantConfig() {
451
+ const { language } = ThemeContext.useLanguage();
452
+ return reactQuery.useQuery({
453
+ // Language is part of the key so each locale has its own cache slot.
454
+ queryKey: ["assistant", "config", language],
455
+ queryFn: fetchAssistantConfig,
456
+ staleTime: 30 * 60 * 1e3
457
+ // 30 min — config rarely changes
458
+ });
459
+ }
460
+
461
+ function HomePage() {
462
+ const { user, logout } = useAuth();
463
+ const layout = LayoutContext.useOptionalLayout();
464
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
465
+ const [localAssistantExpanded, setLocalAssistantExpanded] = React.useState(false);
466
+ const sidebarExpanded = layout?.sidebarExpanded ?? localSidebarExpanded;
467
+ const sidebarWidth = layout?.sidebarWidth ?? 280;
468
+ const assistenteExpanded = layout?.assistenteExpanded ?? localAssistantExpanded;
469
+ const toggleSidebar = layout?.toggleSidebar ?? (() => setLocalSidebarExpanded((value) => !value));
470
+ const toggleAssistente = layout?.toggleAssistente ?? (() => setLocalAssistantExpanded((value) => !value));
471
+ const location = reactRouterDom.useLocation();
472
+ const navigate = reactRouterDom.useNavigate();
473
+ const { data: assistantConfig } = useAssistantConfig();
474
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
475
+ /* @__PURE__ */ jsxRuntime.jsx(
476
+ sidebar.Sidebar,
477
+ {
478
+ expanded: sidebarExpanded,
479
+ width: sidebarWidth,
480
+ onToggle: toggleSidebar,
481
+ user: {
482
+ ...user,
483
+ name: "Ariel Santos",
484
+ avatar: "https://github.com/shadcn.png"
485
+ },
486
+ onLogout: logout,
487
+ onSettingsClick: () => navigate("/settings"),
488
+ location,
489
+ navigate,
490
+ routes
491
+ }
492
+ ),
493
+ /* @__PURE__ */ jsxRuntime.jsx(HomeContent, {}),
494
+ /* @__PURE__ */ jsxRuntime.jsx(
495
+ xerticaAssistant.XerticaAssistant,
496
+ {
497
+ isExpanded: assistenteExpanded,
498
+ onToggle: toggleAssistente,
499
+ defaultTab: "chat",
500
+ demoMode: true,
501
+ responseGenerator: xerticaAssistant.gerarResposta,
502
+ suggestions: assistantConfig?.suggestions,
503
+ richSuggestions: assistantConfig?.richSuggestions ?? getMockRichSuggestions(),
504
+ feedbackOptions: assistantConfig?.feedbackOptions ?? getMockFeedbackOptions(),
505
+ onEvaluation: () => {
506
+ }
507
+ }
508
+ )
509
+ ] });
510
+ }
511
+
512
+ function LoginPage({ onLogin }) {
513
+ const navigate = reactRouterDom.useNavigate();
514
+ const { t } = reactI18next.useTranslation();
515
+ const [email, setEmail] = React.useState("");
516
+ const [password, setPassword] = React.useState("");
517
+ const [isLoading, setIsLoading] = React.useState(false);
518
+ const [error, setError] = React.useState("");
519
+ const handleSubmit = async (e) => {
520
+ e.preventDefault();
521
+ setError("");
522
+ setIsLoading(true);
523
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
524
+ const success = onLogin(email, password);
525
+ if (!success) {
526
+ setError(t("login.errorFillFields"));
527
+ }
528
+ setIsLoading(false);
529
+ };
530
+ const handleSocialLogin = (_provider) => {
531
+ onLogin("social@user.com", "social-auth");
532
+ };
533
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-full flex overflow-y-auto", children: [
534
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
535
+ /* @__PURE__ */ jsxRuntime.jsx(
536
+ alertDialog.ImageWithFallback,
537
+ {
538
+ src: "https://images.unsplash.com/photo-1551434678-e076c223a692?w=1200&h=800&fit=crop&auto=format",
539
+ alt: t("login.heroImageAlt"),
540
+ className: "absolute inset-0 w-full h-full object-cover"
541
+ }
542
+ ),
543
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
544
+ ] }),
545
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
546
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
547
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
548
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
549
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
550
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
551
+ XerticaXLogo.XerticaLogo,
552
+ {
553
+ className: "h-12 w-auto text-primary dark:text-foreground",
554
+ variant: "theme"
555
+ }
556
+ ) }),
557
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: t("login.heading") })
558
+ ] }),
559
+ /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
560
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
561
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children: t("login.emailLabel") }),
562
+ /* @__PURE__ */ jsxRuntime.jsx(
563
+ input.Input,
564
+ {
565
+ id: "email",
566
+ name: "email",
567
+ type: "email",
568
+ required: true,
569
+ className: "w-full",
570
+ placeholder: t("login.emailPlaceholder"),
571
+ value: email,
572
+ onChange: (e) => setEmail(e.target.value)
573
+ }
574
+ )
575
+ ] }),
576
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
577
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children: t("login.passwordLabel") }),
578
+ /* @__PURE__ */ jsxRuntime.jsx(
579
+ input.Input,
580
+ {
581
+ id: "password",
582
+ name: "password",
583
+ type: "password",
584
+ required: true,
585
+ className: "w-full",
586
+ placeholder: "••••••••",
587
+ value: password,
588
+ onChange: (e) => setPassword(e.target.value)
589
+ }
590
+ )
591
+ ] }),
592
+ error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive text-sm text-center", children: error }),
593
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? t("login.submitting") : t("login.submit") }),
594
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
595
+ "button",
596
+ {
597
+ type: "button",
598
+ onClick: () => navigate("/forgot-password"),
599
+ className: "text-sm text-primary hover:opacity-80 transition-colors",
600
+ children: t("login.forgotPassword")
601
+ }
602
+ ) })
603
+ ] }),
604
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
605
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
606
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: t("login.orContinueWith") }) })
607
+ ] }),
608
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
609
+ /* @__PURE__ */ jsxRuntime.jsxs(
610
+ button.Button,
611
+ {
612
+ type: "button",
613
+ variant: "outline",
614
+ className: "w-full justify-center",
615
+ onClick: () => handleSocialLogin(),
616
+ children: [
617
+ /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
618
+ /* @__PURE__ */ jsxRuntime.jsx(
619
+ "path",
620
+ {
621
+ fill: "#EA4335",
622
+ d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"
623
+ }
624
+ ),
625
+ /* @__PURE__ */ jsxRuntime.jsx(
626
+ "path",
627
+ {
628
+ fill: "#4285F4",
629
+ d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"
630
+ }
631
+ ),
632
+ /* @__PURE__ */ jsxRuntime.jsx(
633
+ "path",
634
+ {
635
+ fill: "#FBBC05",
636
+ d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"
637
+ }
638
+ ),
639
+ /* @__PURE__ */ jsxRuntime.jsx(
640
+ "path",
641
+ {
642
+ fill: "#34A853",
643
+ d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"
644
+ }
645
+ ),
646
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
647
+ ] }),
648
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("login.signInWithGoogle") })
649
+ ]
650
+ }
651
+ ),
652
+ /* @__PURE__ */ jsxRuntime.jsxs(
653
+ button.Button,
654
+ {
655
+ type: "button",
656
+ variant: "outline",
657
+ className: "w-full justify-center",
658
+ onClick: () => handleSocialLogin(),
659
+ children: [
660
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
661
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("login.signInWithMTLogin") })
662
+ ]
663
+ }
664
+ ),
665
+ /* @__PURE__ */ jsxRuntime.jsx(
666
+ button.Button,
667
+ {
668
+ type: "button",
669
+ variant: "outline",
670
+ className: "w-full justify-center font-normal",
671
+ onClick: () => handleSocialLogin(),
672
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("login.signInWithGovBr") })
673
+ }
674
+ )
675
+ ] })
676
+ ] })
677
+ ] })
678
+ ] });
679
+ }
680
+
681
+ function ResetPasswordPage() {
682
+ const navigate = reactRouterDom.useNavigate();
683
+ const { t } = reactI18next.useTranslation();
684
+ const [password, setPassword] = React.useState("");
685
+ const [confirmPassword, setConfirmPassword] = React.useState("");
686
+ const [isLoading, setIsLoading] = React.useState(false);
687
+ const [error, setError] = React.useState("");
688
+ const [passwordStrength, setPasswordStrength] = React.useState(
689
+ null
690
+ );
691
+ const checkPasswordStrength = (pwd) => {
692
+ if (pwd.length === 0) {
693
+ setPasswordStrength(null);
694
+ return;
695
+ }
696
+ if (pwd.length < 6) {
697
+ setPasswordStrength("weak");
698
+ } else if (pwd.length < 10) {
699
+ setPasswordStrength("medium");
700
+ } else {
701
+ setPasswordStrength("strong");
702
+ }
703
+ };
704
+ const handlePasswordChange = (value) => {
705
+ setPassword(value);
706
+ checkPasswordStrength(value);
707
+ setError("");
708
+ };
709
+ const handleSubmit = async (e) => {
710
+ e.preventDefault();
711
+ setError("");
712
+ if (password.length < 6) {
713
+ setError(t("resetPassword.errorMinLength"));
714
+ return;
715
+ }
716
+ if (password !== confirmPassword) {
717
+ setError(t("resetPassword.errorMismatch"));
718
+ return;
719
+ }
720
+ setIsLoading(true);
721
+ await new Promise((resolve) => setTimeout(resolve, 1500));
722
+ navigate("/login", { state: { resetSuccess: true } });
723
+ setIsLoading(false);
724
+ };
725
+ const getStrengthColor = () => {
726
+ switch (passwordStrength) {
727
+ case "weak":
728
+ return "text-destructive";
729
+ case "medium":
730
+ return "text-[var(--chart-3)]";
731
+ case "strong":
732
+ return "text-[var(--chart-2)]";
733
+ default:
734
+ return "text-muted-foreground";
735
+ }
736
+ };
737
+ const getStrengthText = () => {
738
+ switch (passwordStrength) {
739
+ case "weak":
740
+ return t("resetPassword.strengthWeak");
741
+ case "medium":
742
+ return t("resetPassword.strengthMedium");
743
+ case "strong":
744
+ return t("resetPassword.strengthStrong");
745
+ default:
746
+ return "";
747
+ }
748
+ };
749
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-full flex overflow-y-auto", children: [
750
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
751
+ /* @__PURE__ */ jsxRuntime.jsx(
752
+ alertDialog.ImageWithFallback,
753
+ {
754
+ src: "https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop&auto=format",
755
+ alt: t("resetPassword.heroImageAlt"),
756
+ className: "absolute inset-0 w-full h-full object-cover"
757
+ }
758
+ ),
759
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
760
+ ] }),
761
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
762
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
763
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
764
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
765
+ /* @__PURE__ */ jsxRuntime.jsxs(
766
+ "button",
767
+ {
768
+ onClick: () => navigate("/login"),
769
+ className: "flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",
770
+ children: [
771
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4" }),
772
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small", children: t("resetPassword.backToLogin") })
773
+ ]
774
+ }
775
+ ),
776
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
777
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
778
+ XerticaXLogo.XerticaLogo,
779
+ {
780
+ className: "h-12 w-auto text-primary dark:text-foreground",
781
+ variant: "theme"
782
+ }
783
+ ) }),
784
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: t("resetPassword.heading") }),
785
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: t("resetPassword.subheading") })
786
+ ] }),
787
+ /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
788
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
789
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children: t("resetPassword.newPasswordLabel") }),
790
+ /* @__PURE__ */ jsxRuntime.jsx(
791
+ input.Input,
792
+ {
793
+ id: "password",
794
+ name: "password",
795
+ type: "password",
796
+ required: true,
797
+ className: "w-full",
798
+ placeholder: "••••••••",
799
+ value: password,
800
+ onChange: (e) => handlePasswordChange(e.target.value)
801
+ }
802
+ ),
803
+ passwordStrength && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
804
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 h-1 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
805
+ "div",
806
+ {
807
+ className: `h-full transition-all duration-300 ${passwordStrength === "weak" ? "w-1/3 bg-destructive" : passwordStrength === "medium" ? "w-2/3 bg-[var(--chart-3)]" : "w-full bg-[var(--chart-2)]"}`
808
+ }
809
+ ) }),
810
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-small ${getStrengthColor()}`, children: getStrengthText() })
811
+ ] })
812
+ ] }),
813
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
814
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "confirmPassword", children: t("resetPassword.confirmPasswordLabel") }),
815
+ /* @__PURE__ */ jsxRuntime.jsx(
816
+ input.Input,
817
+ {
818
+ id: "confirmPassword",
819
+ name: "confirmPassword",
820
+ type: "password",
821
+ required: true,
822
+ className: "w-full",
823
+ placeholder: "••••••••",
824
+ value: confirmPassword,
825
+ onChange: (e) => {
826
+ setConfirmPassword(e.target.value);
827
+ setError("");
828
+ }
829
+ }
830
+ )
831
+ ] }),
832
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-2", children: [
833
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: t("resetPassword.requirements") }),
834
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
835
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
836
+ /* @__PURE__ */ jsxRuntime.jsx(
837
+ lucideReact.CheckCircle2,
838
+ {
839
+ className: `w-4 h-4 ${password.length >= 6 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
840
+ }
841
+ ),
842
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: t("resetPassword.requirementMinChars") })
843
+ ] }),
844
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
845
+ /* @__PURE__ */ jsxRuntime.jsx(
846
+ lucideReact.CheckCircle2,
847
+ {
848
+ className: `w-4 h-4 ${password === confirmPassword && password.length > 0 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
849
+ }
850
+ ),
851
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: t("resetPassword.requirementMatch") })
852
+ ] })
853
+ ] })
854
+ ] }),
855
+ error && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-destructive bg-destructive/10 rounded-[var(--radius)] p-3", children: [
856
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "w-4 h-4 flex-shrink-0" }),
857
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: error })
858
+ ] }),
859
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? t("resetPassword.submitting") : t("resetPassword.submit") })
860
+ ] })
861
+ ] })
862
+ ] })
863
+ ] });
864
+ }
865
+
866
+ function createLucideIconSvg(iconName) {
867
+ const iconPaths = {
868
+ utensils: '<path d="M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"></path><path d="M7 2v20"></path><path d="M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7"></path>',
869
+ hotel: '<path d="M18 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"></path><path d="M8 6h8"></path><path d="M8 10h8"></path><path d="M8 14h8"></path><path d="M8 18h8"></path>',
870
+ landmark: '<path d="m3 21 18-18"></path><path d="M9 15V6h6v9"></path><path d="M12 3v3"></path><path d="M3 15h18"></path><path d="M6 21v-6"></path><path d="M18 21v-6"></path>',
871
+ shopping: '<path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"></path><path d="M3 6h18"></path><path d="M16 10a4 4 0 0 1-8 0"></path>',
872
+ coffee: '<path d="M17 8h1a4 4 0 1 1 0 8h-1"></path><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z"></path><line x1="6" x2="6" y1="2" y2="4"></line><line x1="10" x2="10" y1="2" y2="4"></line><line x1="14" x2="14" y1="2" y2="4"></line>'
873
+ };
874
+ const path = iconPaths[iconName] || "";
875
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">${path}</svg>`;
876
+ }
877
+ const markerGroups = {
878
+ restaurant: {
879
+ id: "restaurant",
880
+ name: "Restaurantes",
881
+ color: "var(--destructive)",
882
+ // red
883
+ iconColor: "#FFFFFF",
884
+ // white para contraste
885
+ iconName: "utensils",
886
+ icon: lucideReact.Utensils
887
+ },
888
+ hotel: {
889
+ id: "hotel",
890
+ name: "Hotéis",
891
+ color: "var(--info)",
892
+ // blue
893
+ iconColor: "#FFFFFF",
894
+ iconName: "hotel",
895
+ icon: lucideReact.Hotel
896
+ },
897
+ landmark: {
898
+ id: "landmark",
899
+ name: "Pontos Turísticos",
900
+ color: "var(--success)",
901
+ // green
902
+ iconColor: "#FFFFFF",
903
+ iconName: "landmark",
904
+ icon: lucideReact.Landmark
905
+ },
906
+ shopping: {
907
+ id: "shopping",
908
+ name: "Compras",
909
+ color: "var(--warning)",
910
+ // orange
911
+ iconColor: "#FFFFFF",
912
+ iconName: "shopping",
913
+ icon: lucideReact.ShoppingBag
914
+ },
915
+ cafe: {
916
+ id: "cafe",
917
+ name: "Cafeterias",
918
+ color: "var(--primary)",
919
+ // purple
920
+ iconColor: "#FFFFFF",
921
+ iconName: "coffee",
922
+ icon: lucideReact.Coffee
923
+ }
924
+ };
925
+ const sampleLocations = [
926
+ // Restaurantes
927
+ {
928
+ position: { lat: -23.5505, lng: -46.6333 },
929
+ title: "Restaurante Italiano",
930
+ info: "Melhor pizza da cidade",
931
+ group: "restaurant"
932
+ },
933
+ {
934
+ position: { lat: -23.5485, lng: -46.635 },
935
+ title: "Sushi Bar",
936
+ info: "Comida japonesa autêntica",
937
+ group: "restaurant"
938
+ },
939
+ {
940
+ position: { lat: -23.552, lng: -46.631 },
941
+ title: "Churrascaria Premium",
942
+ info: "Rodízio tradicional brasileiro",
943
+ group: "restaurant"
944
+ },
945
+ // Hotéis
946
+ {
947
+ position: { lat: -23.5475, lng: -46.6361 },
948
+ title: "Hotel Luxo",
949
+ info: "5 estrelas - Vista panorâmica",
950
+ group: "hotel"
951
+ },
952
+ {
953
+ position: { lat: -23.553, lng: -46.634 },
954
+ title: "Hotel Boutique",
955
+ info: "Design moderno e aconchegante",
956
+ group: "hotel"
957
+ },
958
+ // Pontos Turísticos
959
+ {
960
+ position: { lat: -23.5613, lng: -46.6563 },
961
+ title: "Parque Ibirapuera",
962
+ info: "Maior parque urbano da cidade",
963
+ group: "landmark"
964
+ },
965
+ {
966
+ position: { lat: -23.5558, lng: -46.6396 },
967
+ title: "MASP",
968
+ info: "Museu de Arte de São Paulo",
969
+ group: "landmark"
970
+ },
971
+ {
972
+ position: { lat: -23.5489, lng: -46.6388 },
973
+ title: "Avenida Paulista",
974
+ info: "Centro financeiro e cultural",
975
+ group: "landmark"
976
+ },
977
+ // Shopping
978
+ {
979
+ position: { lat: -23.5465, lng: -46.64 },
980
+ title: "Shopping Center",
981
+ info: "Mais de 300 lojas",
982
+ group: "shopping"
983
+ },
984
+ {
985
+ position: { lat: -23.554, lng: -46.638 },
986
+ title: "Galeria de Arte",
987
+ info: "Arte contemporânea e design",
988
+ group: "shopping"
989
+ },
990
+ // Cafeterias
991
+ {
992
+ position: { lat: -23.5495, lng: -46.6345 },
993
+ title: "Café Artesanal",
994
+ info: "Café especial e brunch",
995
+ group: "cafe"
996
+ },
997
+ {
998
+ position: { lat: -23.551, lng: -46.637 },
999
+ title: "Coffee House",
1000
+ info: "Café gourmet e wi-fi",
1001
+ group: "cafe"
1002
+ },
1003
+ {
1004
+ position: { lat: -23.5525, lng: -46.6355 },
1005
+ title: "Café Cultural",
1006
+ info: "Livros e café",
1007
+ group: "cafe"
1008
+ }
1009
+ ];
1010
+ function FilterableMapExample({ apiKey }) {
1011
+ const [activeFilters, setActiveFilters] = React.useState(
1012
+ new Set(Object.keys(markerGroups))
1013
+ );
1014
+ const [showFilters, setShowFilters] = React.useState(true);
1015
+ const filteredLocations = React.useMemo(() => {
1016
+ return sampleLocations.filter((location) => activeFilters.has(location.group));
1017
+ }, [activeFilters]);
1018
+ const toggleFilter = (groupId) => {
1019
+ setActiveFilters((prev) => {
1020
+ const newFilters = new Set(prev);
1021
+ if (newFilters.has(groupId)) {
1022
+ newFilters.delete(groupId);
1023
+ } else {
1024
+ newFilters.add(groupId);
1025
+ }
1026
+ return newFilters;
1027
+ });
1028
+ };
1029
+ const toggleAll = () => {
1030
+ if (activeFilters.size === Object.keys(markerGroups).length) {
1031
+ setActiveFilters(/* @__PURE__ */ new Set());
1032
+ } else {
1033
+ setActiveFilters(new Set(Object.keys(markerGroups)));
1034
+ }
1035
+ };
1036
+ const markersWithCustomization = filteredLocations.map((location) => ({
1037
+ ...location,
1038
+ customColor: markerGroups[location.group].color,
1039
+ iconSvg: createLucideIconSvg(markerGroups[location.group].iconName),
1040
+ iconColor: markerGroups[location.group].iconColor
1041
+ }));
1042
+ const getGroupCount = (groupId) => {
1043
+ return sampleLocations.filter((loc) => loc.group === groupId).length;
1044
+ };
1045
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
1046
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
1047
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
1048
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-primary" }),
1049
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { children: "Filtro por Categorias" })
1050
+ ] }),
1051
+ /* @__PURE__ */ jsxRuntime.jsxs(progress.Badge, { variant: "secondary", children: [
1052
+ filteredLocations.length,
1053
+ " de ",
1054
+ sampleLocations.length,
1055
+ " locais"
1056
+ ] })
1057
+ ] }),
1058
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Use os filtros compactos no canto superior esquerdo do mapa para visualizar marcadores por categoria" }),
1059
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
1060
+ /* @__PURE__ */ jsxRuntime.jsx(
1061
+ alertDialog.Map,
1062
+ {
1063
+ center: { lat: -23.5505, lng: -46.6333 },
1064
+ zoom: 14,
1065
+ markers: markersWithCustomization,
1066
+ height: "500px",
1067
+ zoomControl: true,
1068
+ fullscreenControl: true,
1069
+ apiKey
1070
+ }
1071
+ ),
1072
+ /* @__PURE__ */ jsxRuntime.jsx(
1073
+ "div",
1074
+ {
1075
+ className: button.cn(
1076
+ "absolute top-4 left-4 z-10 transition-all duration-300",
1077
+ showFilters ? "translate-x-0" : "-translate-x-full"
1078
+ ),
1079
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2.5 rounded-lg shadow-[var(--shadow-elevation-sm)] bg-card border border-border max-w-[220px]", children: [
1080
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-2 gap-2", children: [
1081
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
1082
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "w-3.5 h-3.5 text-foreground" }),
1083
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-foreground", children: "Filtros" })
1084
+ ] }),
1085
+ /* @__PURE__ */ jsxRuntime.jsx(
1086
+ button.Button,
1087
+ {
1088
+ size: "sm",
1089
+ variant: "ghost",
1090
+ onClick: () => setShowFilters(false),
1091
+ className: "h-5 w-5 p-0",
1092
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-3 h-3" })
1093
+ }
1094
+ )
1095
+ ] }),
1096
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1097
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
1098
+ /* @__PURE__ */ jsxRuntime.jsx(
1099
+ alertDialog.Checkbox,
1100
+ {
1101
+ id: "filter-all",
1102
+ checked: activeFilters.size === Object.keys(markerGroups).length,
1103
+ onCheckedChange: toggleAll
1104
+ }
1105
+ ),
1106
+ /* @__PURE__ */ jsxRuntime.jsxs(
1107
+ alertDialog.Label,
1108
+ {
1109
+ htmlFor: "filter-all",
1110
+ className: "flex items-center gap-1.5 cursor-pointer text-sm",
1111
+ children: [
1112
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-3.5 h-3.5" }),
1113
+ "Todos",
1114
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", className: "text-xs h-4 px-1", children: sampleLocations.length })
1115
+ ]
1116
+ }
1117
+ )
1118
+ ] }),
1119
+ Object.entries(markerGroups).map(([id, group]) => {
1120
+ const groupId = id;
1121
+ const Icon = group.icon;
1122
+ const isActive = activeFilters.has(groupId);
1123
+ const count = getGroupCount(groupId);
1124
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
1125
+ /* @__PURE__ */ jsxRuntime.jsx(
1126
+ alertDialog.Checkbox,
1127
+ {
1128
+ id: `filter-${id}`,
1129
+ checked: isActive,
1130
+ onCheckedChange: () => toggleFilter(groupId)
1131
+ }
1132
+ ),
1133
+ /* @__PURE__ */ jsxRuntime.jsxs(
1134
+ alertDialog.Label,
1135
+ {
1136
+ htmlFor: `filter-${id}`,
1137
+ className: "flex items-center gap-1.5 cursor-pointer text-sm",
1138
+ children: [
1139
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "w-3.5 h-3.5", style: { color: group.color } }),
1140
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: isActive ? "text-foreground" : "text-muted-foreground", children: group.name }),
1141
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "text-xs h-4 px-1", children: count })
1142
+ ]
1143
+ }
1144
+ )
1145
+ ] }, id);
1146
+ })
1147
+ ] })
1148
+ ] })
1149
+ }
1150
+ ),
1151
+ !showFilters && /* @__PURE__ */ jsxRuntime.jsxs(
1152
+ button.Button,
1153
+ {
1154
+ size: "sm",
1155
+ onClick: () => setShowFilters(true),
1156
+ className: "absolute top-4 left-4 z-10 h-8 bg-primary text-primary-foreground",
1157
+ children: [
1158
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "w-3.5 h-3.5 mr-1.5" }),
1159
+ "Filtros"
1160
+ ]
1161
+ }
1162
+ )
1163
+ ] }),
1164
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3 justify-center pt-2 border-t border-border", children: Object.entries(markerGroups).map(([id, group]) => {
1165
+ const Icon = group.icon;
1166
+ const count = getGroupCount(id);
1167
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 px-3 py-1 rounded-lg bg-muted", children: [
1168
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-3 h-3 rounded-full", style: { backgroundColor: group.color } }),
1169
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "w-4 h-4", style: { color: group.color } }),
1170
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", style: { color: "var(--foreground)" }, children: group.name }),
1171
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", className: "text-xs h-5", children: count })
1172
+ ] }, id);
1173
+ }) }),
1174
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: [
1175
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
1176
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Total de Locais" }),
1177
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-foreground", children: sampleLocations.length })
1178
+ ] }),
1179
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
1180
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Visíveis" }),
1181
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-primary", children: filteredLocations.length })
1182
+ ] }),
1183
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
1184
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Categorias" }),
1185
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-foreground", children: Object.keys(markerGroups).length })
1186
+ ] }),
1187
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
1188
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Filtros Ativos" }),
1189
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-chart-2", children: activeFilters.size })
1190
+ ] })
1191
+ ] })
1192
+ ] });
1193
+ }
1194
+
1195
+ function DrawingMapExample({ apiKey }) {
1196
+ const [mapInstance, setMapInstance] = React.useState(null);
1197
+ const [selectedMode, setSelectedMode] = React.useState(null);
1198
+ const [shapes, setShapes] = React.useState([]);
1199
+ const [showSaveDialog, setShowSaveDialog] = React.useState(false);
1200
+ const [savedData, setSavedData] = React.useState("");
1201
+ const [isDrawingPolygon, setIsDrawingPolygon] = React.useState(false);
1202
+ const tempPolylineRef = React.useRef(null);
1203
+ const polygonPathRef = React.useRef([]);
1204
+ const mapListenersRef = React.useRef([]);
1205
+ const colors = {
1206
+ fill: "#2C275B",
1207
+ // Primary do CSS
1208
+ stroke: "#2C275B",
1209
+ fillOpacity: 0.2,
1210
+ strokeWeight: 2,
1211
+ editable: true,
1212
+ draggable: true
1213
+ };
1214
+ const addMarker = React.useCallback(
1215
+ (position) => {
1216
+ if (!mapInstance) return;
1217
+ const marker = new google.maps.marker.AdvancedMarkerElement({
1218
+ position,
1219
+ map: mapInstance,
1220
+ gmpDraggable: true,
1221
+ // Propriedade correta para AdvancedMarkerElement
1222
+ title: "Marcador"
1223
+ });
1224
+ marker.addListener("dragend", () => {
1225
+ sonner.toast.info("Posição do marcador atualizada");
1226
+ });
1227
+ const newShape = { type: "marker", overlay: marker };
1228
+ setShapes((prev) => [...prev, newShape]);
1229
+ sonner.toast.success("Marcador adicionado");
1230
+ },
1231
+ [mapInstance]
1232
+ );
1233
+ const addCircle = React.useCallback(
1234
+ (center) => {
1235
+ if (!mapInstance) return;
1236
+ const circle = new google.maps.Circle({
1237
+ map: mapInstance,
1238
+ center,
1239
+ radius: 500,
1240
+ fillColor: colors.fill,
1241
+ fillOpacity: colors.fillOpacity,
1242
+ strokeColor: colors.stroke,
1243
+ strokeWeight: colors.strokeWeight,
1244
+ editable: true,
1245
+ draggable: true
1246
+ });
1247
+ const newShape = { type: "circle", overlay: circle };
1248
+ setShapes((prev) => [...prev, newShape]);
1249
+ sonner.toast.success("Círculo adicionado");
1250
+ },
1251
+ [mapInstance, colors]
1252
+ );
1253
+ const addRectangle = React.useCallback(
1254
+ (center) => {
1255
+ if (!mapInstance) return;
1256
+ const offset = 5e-3;
1257
+ const bounds = {
1258
+ north: center.lat() + offset,
1259
+ south: center.lat() - offset,
1260
+ east: center.lng() + offset,
1261
+ west: center.lng() - offset
1262
+ };
1263
+ const rectangle = new google.maps.Rectangle({
1264
+ map: mapInstance,
1265
+ bounds,
1266
+ fillColor: colors.fill,
1267
+ fillOpacity: colors.fillOpacity,
1268
+ strokeColor: colors.stroke,
1269
+ strokeWeight: colors.strokeWeight,
1270
+ editable: true,
1271
+ draggable: true
1272
+ });
1273
+ const newShape = { type: "rectangle", overlay: rectangle };
1274
+ setShapes((prev) => [...prev, newShape]);
1275
+ sonner.toast.success("Retângulo adicionado");
1276
+ },
1277
+ [mapInstance, colors]
1278
+ );
1279
+ const cancelPolygonDrawing = React.useCallback(() => {
1280
+ if (tempPolylineRef.current) {
1281
+ tempPolylineRef.current.setMap(null);
1282
+ tempPolylineRef.current = null;
1283
+ }
1284
+ polygonPathRef.current = [];
1285
+ setIsDrawingPolygon(false);
1286
+ }, []);
1287
+ const finishPolygon = React.useCallback(() => {
1288
+ if (!mapInstance || polygonPathRef.current.length < 3) {
1289
+ if (polygonPathRef.current.length < 3 && polygonPathRef.current.length > 0) {
1290
+ sonner.toast.error("Polígono precisa de pelo menos 3 pontos.");
1291
+ }
1292
+ return;
1293
+ }
1294
+ const polygon = new google.maps.Polygon({
1295
+ map: mapInstance,
1296
+ paths: polygonPathRef.current,
1297
+ fillColor: colors.fill,
1298
+ fillOpacity: colors.fillOpacity,
1299
+ strokeColor: colors.stroke,
1300
+ strokeWeight: colors.strokeWeight,
1301
+ editable: true,
1302
+ draggable: true
1303
+ });
1304
+ const newShape = { type: "polygon", overlay: polygon };
1305
+ setShapes((prev) => [...prev, newShape]);
1306
+ cancelPolygonDrawing();
1307
+ sonner.toast.success("Polígono criado com sucesso!");
1308
+ }, [mapInstance, colors, cancelPolygonDrawing]);
1309
+ const addPolygonPoint = React.useCallback(
1310
+ (point) => {
1311
+ if (!mapInstance) return;
1312
+ if (!isDrawingPolygon) {
1313
+ setIsDrawingPolygon(true);
1314
+ polygonPathRef.current = [point];
1315
+ tempPolylineRef.current = new google.maps.Polyline({
1316
+ map: mapInstance,
1317
+ path: polygonPathRef.current,
1318
+ strokeColor: colors.stroke,
1319
+ strokeOpacity: 0.8,
1320
+ strokeWeight: 2,
1321
+ geodesic: true,
1322
+ clickable: false
1323
+ // Importante: não capturar cliques para não atrapalhar o mapa
1324
+ });
1325
+ sonner.toast.info("Clique para adicionar pontos. Duplo clique ou botão check para fechar.", {
1326
+ duration: 4e3
1327
+ });
1328
+ } else {
1329
+ polygonPathRef.current.push(point);
1330
+ tempPolylineRef.current?.setPath(polygonPathRef.current);
1331
+ }
1332
+ },
1333
+ [mapInstance, isDrawingPolygon, colors]
1334
+ );
1335
+ const clearListeners = () => {
1336
+ mapListenersRef.current.forEach((listener) => google.maps.event.removeListener(listener));
1337
+ mapListenersRef.current = [];
1338
+ };
1339
+ React.useEffect(() => {
1340
+ if (!mapInstance) return;
1341
+ clearListeners();
1342
+ if (!selectedMode) {
1343
+ mapInstance.setOptions({ draggableCursor: "grab", clickableIcons: true });
1344
+ return;
1345
+ }
1346
+ mapInstance.setOptions({
1347
+ draggableCursor: "crosshair",
1348
+ clickableIcons: false
1349
+ });
1350
+ const clickListener = mapInstance.addListener("click", (e) => {
1351
+ if (!e.latLng) return;
1352
+ switch (selectedMode) {
1353
+ case "marker":
1354
+ addMarker(e.latLng);
1355
+ break;
1356
+ case "circle":
1357
+ addCircle(e.latLng);
1358
+ break;
1359
+ case "rectangle":
1360
+ addRectangle(e.latLng);
1361
+ break;
1362
+ case "polygon":
1363
+ addPolygonPoint(e.latLng);
1364
+ break;
1365
+ }
1366
+ });
1367
+ mapListenersRef.current.push(clickListener);
1368
+ if (selectedMode === "polygon") {
1369
+ const dblClickListener = mapInstance.addListener("dblclick", (e) => {
1370
+ if (e.domEvent) e.domEvent.stopPropagation();
1371
+ finishPolygon();
1372
+ });
1373
+ mapListenersRef.current.push(dblClickListener);
1374
+ }
1375
+ return () => {
1376
+ clearListeners();
1377
+ };
1378
+ }, [
1379
+ mapInstance,
1380
+ selectedMode,
1381
+ addMarker,
1382
+ addCircle,
1383
+ addRectangle,
1384
+ addPolygonPoint,
1385
+ finishPolygon
1386
+ ]);
1387
+ const handleModeChange = (mode) => {
1388
+ if (isDrawingPolygon) {
1389
+ cancelPolygonDrawing();
1390
+ }
1391
+ setSelectedMode(mode);
1392
+ };
1393
+ const clearAll = () => {
1394
+ shapes.forEach((shape) => {
1395
+ if ("setMap" in shape.overlay) shape.overlay.setMap(null);
1396
+ else shape.overlay.map = null;
1397
+ });
1398
+ setShapes([]);
1399
+ if (isDrawingPolygon) cancelPolygonDrawing();
1400
+ sonner.toast.info("Mapa limpo");
1401
+ };
1402
+ const undoLast = () => {
1403
+ if (isDrawingPolygon) {
1404
+ if (polygonPathRef.current.length > 0) {
1405
+ polygonPathRef.current.pop();
1406
+ tempPolylineRef.current?.setPath(polygonPathRef.current);
1407
+ if (polygonPathRef.current.length === 0) {
1408
+ cancelPolygonDrawing();
1409
+ }
1410
+ }
1411
+ return;
1412
+ }
1413
+ if (shapes.length === 0) return;
1414
+ const lastShape = shapes[shapes.length - 1];
1415
+ if ("setMap" in lastShape.overlay) lastShape.overlay.setMap(null);
1416
+ else lastShape.overlay.map = null;
1417
+ setShapes((prev) => prev.slice(0, prev.length - 1));
1418
+ };
1419
+ const handleSave = () => {
1420
+ if (shapes.length === 0) {
1421
+ sonner.toast.error("Adicione desenhos ao mapa antes de salvar.");
1422
+ return;
1423
+ }
1424
+ const exportData = shapes.map((s) => {
1425
+ let data = {};
1426
+ if (s.type === "marker") {
1427
+ const marker = s.overlay;
1428
+ const pos = marker.position;
1429
+ if (pos) {
1430
+ const lat = typeof pos.lat === "function" ? pos.lat() : pos.lat;
1431
+ const lng = typeof pos.lng === "function" ? pos.lng() : pos.lng;
1432
+ data = { lat, lng };
1433
+ }
1434
+ } else if (s.type === "circle") {
1435
+ const circle = s.overlay;
1436
+ data = {
1437
+ center: { lat: circle.getCenter()?.lat(), lng: circle.getCenter()?.lng() },
1438
+ radius: circle.getRadius()
1439
+ };
1440
+ } else if (s.type === "rectangle") {
1441
+ const rect = s.overlay;
1442
+ const bounds = rect.getBounds();
1443
+ data = {
1444
+ north: bounds?.getNorthEast().lat(),
1445
+ south: bounds?.getSouthWest().lat(),
1446
+ east: bounds?.getNorthEast().lng(),
1447
+ west: bounds?.getSouthWest().lng()
1448
+ };
1449
+ } else if (s.type === "polygon") {
1450
+ const poly = s.overlay;
1451
+ const path = poly.getPath();
1452
+ data = path.getArray().map((coord) => ({ lat: coord.lat(), lng: coord.lng() }));
1453
+ }
1454
+ return { type: s.type, data };
1455
+ });
1456
+ setSavedData(JSON.stringify(exportData, null, 2));
1457
+ setShowSaveDialog(true);
1458
+ };
1459
+ const ToolButton = ({
1460
+ active,
1461
+ onClick,
1462
+ icon: Icon,
1463
+ label
1464
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(
1465
+ button.Button,
1466
+ {
1467
+ variant: active ? "default" : "ghost",
1468
+ className: `w-full justify-start gap-3 ${active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"}`,
1469
+ onClick,
1470
+ children: [
1471
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-4 w-4" }),
1472
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: label })
1473
+ ]
1474
+ }
1475
+ );
1476
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: "h-full border-0 shadow-none md:border md:shadow-sm", children: [
1477
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { className: "border-b bg-muted/20 pb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
1478
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1479
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Ferramentas de Desenho" }),
1480
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { className: "mt-1", children: "Crie geometrias personalizadas no mapa" })
1481
+ ] }),
1482
+ /* @__PURE__ */ jsxRuntime.jsxs(progress.Badge, { variant: "outline", className: "h-6", children: [
1483
+ shapes.length,
1484
+ " ",
1485
+ shapes.length === 1 ? "elemento" : "elementos"
1486
+ ] })
1487
+ ] }) }),
1488
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "p-0 flex flex-col md:flex-row h-[600px] bg-background", children: [
1489
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full md:w-64 border-b md:border-b-0 md:border-r bg-muted/10 flex flex-col", children: [
1490
+ /* @__PURE__ */ jsxRuntime.jsx(input.ScrollArea, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 space-y-6", children: [
1491
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
1492
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ferramentas" }),
1493
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
1494
+ /* @__PURE__ */ jsxRuntime.jsx(
1495
+ ToolButton,
1496
+ {
1497
+ active: selectedMode === null,
1498
+ onClick: () => handleModeChange(null),
1499
+ icon: lucideReact.MousePointer2,
1500
+ label: "Navegar"
1501
+ }
1502
+ ),
1503
+ /* @__PURE__ */ jsxRuntime.jsx(
1504
+ ToolButton,
1505
+ {
1506
+ active: selectedMode === "marker",
1507
+ onClick: () => handleModeChange("marker"),
1508
+ icon: lucideReact.MapPin,
1509
+ label: "Marcador"
1510
+ }
1511
+ ),
1512
+ /* @__PURE__ */ jsxRuntime.jsx(
1513
+ ToolButton,
1514
+ {
1515
+ active: selectedMode === "circle",
1516
+ onClick: () => handleModeChange("circle"),
1517
+ icon: lucideReact.Circle,
1518
+ label: "Círculo"
1519
+ }
1520
+ ),
1521
+ /* @__PURE__ */ jsxRuntime.jsx(
1522
+ ToolButton,
1523
+ {
1524
+ active: selectedMode === "rectangle",
1525
+ onClick: () => handleModeChange("rectangle"),
1526
+ icon: lucideReact.Square,
1527
+ label: "Retângulo"
1528
+ }
1529
+ ),
1530
+ /* @__PURE__ */ jsxRuntime.jsx(
1531
+ ToolButton,
1532
+ {
1533
+ active: selectedMode === "polygon",
1534
+ onClick: () => handleModeChange("polygon"),
1535
+ icon: lucideReact.Hexagon,
1536
+ label: "Polígono"
1537
+ }
1538
+ )
1539
+ ] })
1540
+ ] }),
1541
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
1542
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
1543
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ações" }),
1544
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1545
+ /* @__PURE__ */ jsxRuntime.jsxs(
1546
+ button.Button,
1547
+ {
1548
+ variant: "outline",
1549
+ onClick: undoLast,
1550
+ disabled: shapes.length === 0 && !isDrawingPolygon,
1551
+ className: "w-full",
1552
+ title: "Desfazer último",
1553
+ "aria-label": "Desfazer último",
1554
+ children: [
1555
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Undo, { className: "h-4 w-4 mr-2" }),
1556
+ "Desfazer"
1557
+ ]
1558
+ }
1559
+ ),
1560
+ /* @__PURE__ */ jsxRuntime.jsxs(
1561
+ button.Button,
1562
+ {
1563
+ variant: "destructive",
1564
+ onClick: clearAll,
1565
+ disabled: shapes.length === 0 && !isDrawingPolygon,
1566
+ className: "w-full bg-destructive/10 text-destructive hover:bg-destructive hover:text-destructive-foreground border-0 shadow-none",
1567
+ children: [
1568
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "h-4 w-4 mr-2" }),
1569
+ "Limpar"
1570
+ ]
1571
+ }
1572
+ )
1573
+ ] }),
1574
+ /* @__PURE__ */ jsxRuntime.jsxs(
1575
+ button.Button,
1576
+ {
1577
+ variant: "default",
1578
+ onClick: handleSave,
1579
+ disabled: shapes.length === 0,
1580
+ className: "w-full mt-2",
1581
+ children: [
1582
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Save, { className: "h-4 w-4 mr-2" }),
1583
+ "Salvar GeoJSON"
1584
+ ]
1585
+ }
1586
+ )
1587
+ ] })
1588
+ ] }) }),
1589
+ isDrawingPolygon && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 bg-primary/5 border-t border-primary/10", children: [
1590
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-2 text-primary text-xs font-medium", children: [
1591
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative flex h-2 w-2", children: [
1592
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75" }),
1593
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary" })
1594
+ ] }),
1595
+ "Desenhando Polígono..."
1596
+ ] }),
1597
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
1598
+ /* @__PURE__ */ jsxRuntime.jsxs(
1599
+ button.Button,
1600
+ {
1601
+ size: "sm",
1602
+ className: "w-full bg-green-600 hover:bg-green-700 text-white",
1603
+ onClick: finishPolygon,
1604
+ children: [
1605
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3 w-3 mr-1" }),
1606
+ " Concluir"
1607
+ ]
1608
+ }
1609
+ ),
1610
+ /* @__PURE__ */ jsxRuntime.jsxs(
1611
+ button.Button,
1612
+ {
1613
+ size: "sm",
1614
+ variant: "outline",
1615
+ className: "w-full",
1616
+ onClick: cancelPolygonDrawing,
1617
+ children: [
1618
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3 w-3 mr-1" }),
1619
+ " Cancelar"
1620
+ ]
1621
+ }
1622
+ )
1623
+ ] })
1624
+ ] })
1625
+ ] }),
1626
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 relative bg-muted/5 min-h-[400px]", children: [
1627
+ /* @__PURE__ */ jsxRuntime.jsx(
1628
+ alertDialog.Map,
1629
+ {
1630
+ className: "h-full w-full rounded-none md:rounded-br-lg",
1631
+ center: { lat: -23.5505, lng: -46.6333 },
1632
+ zoom: 13,
1633
+ height: "100%",
1634
+ mapContainerClassName: "h-full w-full rounded-none md:rounded-br-lg",
1635
+ disableDefaultUI: true,
1636
+ zoomControl: true,
1637
+ onMapLoad: setMapInstance,
1638
+ apiKey
1639
+ }
1640
+ ),
1641
+ selectedMode && !isDrawingPolygon && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute bottom-6 left-1/2 -translate-x-1/2 bg-background/90 backdrop-blur border px-4 py-2 rounded-full shadow-sm text-xs font-medium text-muted-foreground pointer-events-none z-10", children: [
1642
+ selectedMode === "marker" && "Clique no mapa para adicionar um marcador",
1643
+ selectedMode === "circle" && "Clique no mapa para definir o centro do círculo",
1644
+ selectedMode === "rectangle" && "Clique no mapa para criar um retângulo",
1645
+ selectedMode === "polygon" && "Clique sequencialmente para desenhar a área"
1646
+ ] })
1647
+ ] }),
1648
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.Dialog, { open: showSaveDialog, onOpenChange: setShowSaveDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogContent, { className: "max-w-md", children: [
1649
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { children: [
1650
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: "Dados Geográficos (GeoJSON)" }),
1651
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: "Copie os dados das formas desenhadas abaixo." })
1652
+ ] }),
1653
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
1654
+ "pre",
1655
+ {
1656
+ className: "p-4 rounded-lg bg-muted overflow-auto max-h-[300px] text-xs font-mono",
1657
+ "data-custom-scrollbar": true,
1658
+ children: savedData
1659
+ }
1660
+ ) }),
1661
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end mt-4", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: () => setShowSaveDialog(false), children: "Fechar" }) })
1662
+ ] }) })
1663
+ ] })
1664
+ ] });
1665
+ }
1666
+
1667
+ function MapShowcase() {
1668
+ const [activeTab, setActiveTab] = React.useState("simple");
1669
+ const [isTransitioning, setIsTransitioning] = React.useState(false);
1670
+ const [apiKey, setApiKey] = React.useState("");
1671
+ const [inputApiKey, setInputApiKey] = React.useState("");
1672
+ const [showTraffic, setShowTraffic] = React.useState(false);
1673
+ const [showTransit, setShowTransit] = React.useState(false);
1674
+ const [showBicycling, setShowBicycling] = React.useState(false);
1675
+ const [showZoomControl, setShowZoomControl] = React.useState(true);
1676
+ const [showMapTypeControl, setShowMapTypeControl] = React.useState(false);
1677
+ const [showStreetViewControl, setShowStreetViewControl] = React.useState(false);
1678
+ const [showFullscreenControl, setShowFullscreenControl] = React.useState(true);
1679
+ const handleTabChange = (value) => {
1680
+ if (value === activeTab) return;
1681
+ setIsTransitioning(true);
1682
+ setTimeout(() => {
1683
+ setActiveTab(value);
1684
+ setIsTransitioning(false);
1685
+ }, 50);
1686
+ };
1687
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-8", children: [
1688
+ /* @__PURE__ */ jsxRuntime.jsx(
1689
+ alertDialog.PageHeader,
1690
+ {
1691
+ title: "Mapas",
1692
+ subtitle: "Biblioteca de componentes de mapa para visualização de dados geoespaciais. Utiliza a API do Google Maps com estilização personalizada do Xertica UI.",
1693
+ actions: /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { children: "Design System" })
1694
+ }
1695
+ ),
1696
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1697
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1698
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Configuração da API Key" }),
1699
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Insira sua Google Maps API Key para renderizar os mapas abaixo." })
1700
+ ] }),
1701
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-md items-center space-x-2", children: [
1702
+ /* @__PURE__ */ jsxRuntime.jsx(
1703
+ input.Input,
1704
+ {
1705
+ type: "password",
1706
+ placeholder: "Cole sua Google Maps API Key aqui",
1707
+ "aria-label": "Google Maps API Key",
1708
+ value: inputApiKey,
1709
+ onChange: (e) => setInputApiKey(e.target.value),
1710
+ className: "max-w-md h-10"
1711
+ }
1712
+ ),
1713
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: () => setApiKey(inputApiKey), children: "Salvar" })
1714
+ ] }) })
1715
+ ] }),
1716
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { value: activeTab, onValueChange: handleTabChange, className: "w-full", children: [
1717
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "grid w-full grid-cols-4 mb-8", children: [
1718
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "simple", children: "Mapas Simples" }),
1719
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "markers", children: "Marcadores" }),
1720
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "controls", children: "Controles" }),
1721
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsTrigger, { value: "drawing", className: "flex items-center gap-2", children: [
1722
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "w-3 h-3" }),
1723
+ " Desenho"
1724
+ ] })
1725
+ ] }),
1726
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "simple", className: "space-y-8", children: !isTransitioning && activeTab === "simple" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1727
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1728
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1729
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Mapa Padrão" }),
1730
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Configuração básica do mapa centralizado em uma coordenada específica." })
1731
+ ] }),
1732
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1733
+ alertDialog.Map,
1734
+ {
1735
+ center: { lat: -23.5505, lng: -46.6333 },
1736
+ zoom: 13,
1737
+ height: "400px",
1738
+ apiKey
1739
+ }
1740
+ ) })
1741
+ ] }),
1742
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1743
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1744
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Camadas (Layers)" }),
1745
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Sobreposição de informações como tráfego, transporte público e ciclovias." })
1746
+ ] }),
1747
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-4", children: [
1748
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-6 p-4 border rounded-lg bg-muted/50", children: [
1749
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1750
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "traffic", checked: showTraffic, onCheckedChange: setShowTraffic }),
1751
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "traffic", className: "flex items-center gap-2", children: [
1752
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Layers, { className: "w-4 h-4" }),
1753
+ " Trânsito"
1754
+ ] })
1755
+ ] }),
1756
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1757
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "transit", checked: showTransit, onCheckedChange: setShowTransit }),
1758
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "transit", className: "flex items-center gap-2", children: [
1759
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Layers, { className: "w-4 h-4" }),
1760
+ " Transporte"
1761
+ ] })
1762
+ ] }),
1763
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1764
+ /* @__PURE__ */ jsxRuntime.jsx(
1765
+ alertDialog.Switch,
1766
+ {
1767
+ id: "bicycling",
1768
+ checked: showBicycling,
1769
+ onCheckedChange: setShowBicycling
1770
+ }
1771
+ ),
1772
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "bicycling", className: "flex items-center gap-2", children: [
1773
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Layers, { className: "w-4 h-4" }),
1774
+ " Ciclovias"
1775
+ ] })
1776
+ ] })
1777
+ ] }),
1778
+ /* @__PURE__ */ jsxRuntime.jsx(
1779
+ alertDialog.Map,
1780
+ {
1781
+ center: { lat: -23.5505, lng: -46.6333 },
1782
+ zoom: 12,
1783
+ height: "500px",
1784
+ layers: {
1785
+ traffic: showTraffic,
1786
+ transit: showTransit,
1787
+ bicycling: showBicycling
1788
+ },
1789
+ apiKey
1790
+ }
1791
+ )
1792
+ ] })
1793
+ ] }),
1794
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid md:grid-cols-3 gap-4", children: [
1795
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1796
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children: "São Paulo" }) }),
1797
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsxRuntime.jsx(
1798
+ alertDialog.Map,
1799
+ {
1800
+ center: { lat: -23.5505, lng: -46.6333 },
1801
+ zoom: 11,
1802
+ height: "200px",
1803
+ disableDefaultUI: true,
1804
+ apiKey
1805
+ }
1806
+ ) })
1807
+ ] }),
1808
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1809
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children: "Rio de Janeiro" }) }),
1810
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsxRuntime.jsx(
1811
+ alertDialog.Map,
1812
+ {
1813
+ center: { lat: -22.9068, lng: -43.1729 },
1814
+ zoom: 11,
1815
+ height: "200px",
1816
+ disableDefaultUI: true,
1817
+ apiKey
1818
+ }
1819
+ ) })
1820
+ ] }),
1821
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1822
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children: "New York" }) }),
1823
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsxRuntime.jsx(
1824
+ alertDialog.Map,
1825
+ {
1826
+ center: { lat: 40.7128, lng: -74.006 },
1827
+ zoom: 11,
1828
+ height: "200px",
1829
+ disableDefaultUI: true,
1830
+ apiKey
1831
+ }
1832
+ ) })
1833
+ ] })
1834
+ ] })
1835
+ ] }) }),
1836
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "markers", className: "space-y-8", children: !isTransitioning && activeTab === "markers" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1837
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1838
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1839
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Marcadores e Pins" }),
1840
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Exemplos de marcadores personalizados com diferentes cores e informações." })
1841
+ ] }),
1842
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1843
+ alertDialog.Map,
1844
+ {
1845
+ center: { lat: -23.5505, lng: -46.6333 },
1846
+ zoom: 13,
1847
+ height: "500px",
1848
+ apiKey,
1849
+ markers: [
1850
+ {
1851
+ position: { lat: -23.5505, lng: -46.6333 },
1852
+ title: "Principal",
1853
+ info: "Marcador padrão",
1854
+ customColor: "#4F46E5"
1855
+ },
1856
+ {
1857
+ position: { lat: -23.54, lng: -46.64 },
1858
+ title: "Secundário",
1859
+ info: "Marcador de alerta",
1860
+ customColor: "#EF4444",
1861
+ icon: "!"
1862
+ },
1863
+ {
1864
+ position: { lat: -23.56, lng: -46.62 },
1865
+ title: "Loja",
1866
+ info: "Ponto de venda",
1867
+ customColor: "#10B981",
1868
+ icon: "S"
1869
+ }
1870
+ ]
1871
+ }
1872
+ ) })
1873
+ ] }),
1874
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1875
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1876
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Marcador com Ações" }),
1877
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Marcador interativo que exibe conteúdo rico (texto, imagem, botões) ao ser clicado." })
1878
+ ] }),
1879
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1880
+ alertDialog.Map,
1881
+ {
1882
+ center: { lat: -23.5505, lng: -46.6333 },
1883
+ zoom: 13,
1884
+ height: "500px",
1885
+ apiKey,
1886
+ markers: [
1887
+ {
1888
+ position: { lat: -23.5505, lng: -46.6333 },
1889
+ label: "🏢",
1890
+ richContent: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 max-w-[260px]", children: [
1891
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
1892
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-base", children: "Xertica HQ" }),
1893
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "text-[10px] h-5", children: "Open" })
1894
+ ] }),
1895
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full h-32 bg-muted rounded-md mb-3 overflow-hidden relative", children: [
1896
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" }),
1897
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center text-white font-medium", children: "Office View" })
1898
+ ] }),
1899
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mb-3 leading-relaxed", children: "Sede principal em São Paulo. Espaço moderno para reuniões e eventos." }),
1900
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1901
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", className: "w-full h-8 text-xs shadow-sm", children: "Navegar" }),
1902
+ /* @__PURE__ */ jsxRuntime.jsx(
1903
+ button.Button,
1904
+ {
1905
+ size: "sm",
1906
+ variant: "outline",
1907
+ className: "w-full h-8 text-xs bg-background",
1908
+ children: "Detalhes"
1909
+ }
1910
+ )
1911
+ ] })
1912
+ ] })
1913
+ }
1914
+ ]
1915
+ }
1916
+ ) })
1917
+ ] }),
1918
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1919
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1920
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Áreas e Zonas" }),
1921
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Delimitação de áreas geográficas usando círculos e polígonos." })
1922
+ ] }),
1923
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1924
+ alertDialog.Map,
1925
+ {
1926
+ center: { lat: -23.5505, lng: -46.6333 },
1927
+ zoom: 12,
1928
+ height: "500px",
1929
+ apiKey,
1930
+ markers: [
1931
+ {
1932
+ position: { lat: -23.5505, lng: -46.6333 },
1933
+ title: "Centro da Zona",
1934
+ info: "Raio de 3km",
1935
+ customColor: "#6366F1"
1936
+ }
1937
+ ],
1938
+ circle: {
1939
+ center: { lat: -23.5505, lng: -46.6333 },
1940
+ radius: 3e3,
1941
+ fillColor: "#6366F1",
1942
+ strokeColor: "#4F46E5"
1943
+ },
1944
+ polygon: {
1945
+ paths: [
1946
+ [
1947
+ { lat: -23.52, lng: -46.6 },
1948
+ { lat: -23.52, lng: -46.66 },
1949
+ { lat: -23.58, lng: -46.66 },
1950
+ { lat: -23.58, lng: -46.6 }
1951
+ ]
1952
+ ],
1953
+ fillColor: "#10B981",
1954
+ strokeColor: "#059669"
1955
+ }
1956
+ }
1957
+ ) })
1958
+ ] })
1959
+ ] }) }),
1960
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "controls", className: "space-y-8", children: !isTransitioning && activeTab === "controls" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1961
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
1962
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
1963
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Controles do Mapa" }),
1964
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Personalize a interface do mapa ativando ou desativando controles nativos." })
1965
+ ] }),
1966
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-4", children: [
1967
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 p-4 border rounded-lg bg-muted/50", children: [
1968
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1969
+ /* @__PURE__ */ jsxRuntime.jsx(
1970
+ alertDialog.Checkbox,
1971
+ {
1972
+ id: "zoom",
1973
+ checked: showZoomControl,
1974
+ onCheckedChange: (c) => setShowZoomControl(!!c)
1975
+ }
1976
+ ),
1977
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "zoom", children: "Zoom Control" })
1978
+ ] }),
1979
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1980
+ /* @__PURE__ */ jsxRuntime.jsx(
1981
+ alertDialog.Checkbox,
1982
+ {
1983
+ id: "maptype",
1984
+ checked: showMapTypeControl,
1985
+ onCheckedChange: (c) => setShowMapTypeControl(!!c)
1986
+ }
1987
+ ),
1988
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "maptype", children: "Map Type" })
1989
+ ] }),
1990
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1991
+ /* @__PURE__ */ jsxRuntime.jsx(
1992
+ alertDialog.Checkbox,
1993
+ {
1994
+ id: "streetview",
1995
+ checked: showStreetViewControl,
1996
+ onCheckedChange: (c) => setShowStreetViewControl(!!c)
1997
+ }
1998
+ ),
1999
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "streetview", children: "Street View" })
2000
+ ] }),
2001
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2002
+ /* @__PURE__ */ jsxRuntime.jsx(
2003
+ alertDialog.Checkbox,
2004
+ {
2005
+ id: "fullscreen",
2006
+ checked: showFullscreenControl,
2007
+ onCheckedChange: (c) => setShowFullscreenControl(!!c)
2008
+ }
2009
+ ),
2010
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "fullscreen", children: "Fullscreen" })
2011
+ ] })
2012
+ ] }),
2013
+ /* @__PURE__ */ jsxRuntime.jsx(
2014
+ alertDialog.Map,
2015
+ {
2016
+ center: { lat: -23.5505, lng: -46.6333 },
2017
+ zoom: 13,
2018
+ height: "400px",
2019
+ apiKey,
2020
+ zoomControl: showZoomControl,
2021
+ mapTypeControl: showMapTypeControl,
2022
+ streetViewControl: showStreetViewControl,
2023
+ fullscreenControl: showFullscreenControl
2024
+ }
2025
+ )
2026
+ ] })
2027
+ ] }),
2028
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2029
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2030
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Filtros Interativos" }),
2031
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Exemplo avançado de mapa com controles customizados para filtragem de marcadores." })
2032
+ ] }),
2033
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(FilterableMapExample, { apiKey }) })
2034
+ ] })
2035
+ ] }) }),
2036
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "drawing", className: "space-y-8", children: !isTransitioning && activeTab === "drawing" && /* @__PURE__ */ jsxRuntime.jsx(DrawingMapExample, { apiKey }) })
2037
+ ] }),
2038
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid md:grid-cols-3 gap-6 pt-8 border-t", children: [
2039
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2040
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-sm", children: "Documentação" }),
2041
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
2042
+ "Verifique ",
2043
+ /* @__PURE__ */ jsxRuntime.jsx("code", { children: "MAP_SETUP.md" }),
2044
+ " para configuração inicial e requisitos de API."
2045
+ ] })
2046
+ ] }),
2047
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2048
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-sm", children: "Performance" }),
2049
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Utiliza carregamento assíncrono e AdvancedMarkerElement para melhor desempenho." })
2050
+ ] }),
2051
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2052
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-sm", children: "Design System" }),
2053
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
2054
+ "Componentes seguem estritamente as variáveis de tokens do ",
2055
+ /* @__PURE__ */ jsxRuntime.jsx("code", { children: "globals.css" }),
2056
+ "."
2057
+ ] })
2058
+ ] })
2059
+ ] })
2060
+ ] });
2061
+ }
2062
+
2063
+ function TemplateContent() {
2064
+ const { t } = reactI18next.useTranslation();
2065
+ const layout = LayoutContext.useOptionalLayout();
2066
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
2067
+ const [localSidebarWidth, setLocalSidebarWidth] = React.useState(280);
2068
+ const sidebarExpanded = layout?.sidebarExpanded ?? localSidebarExpanded;
2069
+ const sidebarWidth = layout?.sidebarWidth ?? localSidebarWidth;
2070
+ const setSidebarWidth = layout?.setSidebarWidth ?? setLocalSidebarWidth;
2071
+ layout?.toggleSidebar ?? (() => setLocalSidebarExpanded((value) => !value));
2072
+ reactRouterDom.useNavigate();
2073
+ const { data: teamMembers = [], isLoading: teamLoading } = useTeamMembers();
2074
+ const progress$1 = useDashboardStore((s) => s.progress);
2075
+ const setProgress = useDashboardStore((s) => s.setProgress);
2076
+ const sliderValue = useDashboardStore((s) => s.sliderValue);
2077
+ const setSliderValue = useDashboardStore((s) => s.setSliderValue);
2078
+ const switchEnabled = useDashboardStore((s) => s.switchEnabled);
2079
+ const toggleSwitch = useDashboardStore((s) => s.toggleSwitch);
2080
+ const [showSidebarUser, setShowSidebarUser] = React.useState(true);
2081
+ const [showSidebarSettings, setShowSidebarSettings] = React.useState(true);
2082
+ const [showSidebarLogout, setShowSidebarLogout] = React.useState(true);
2083
+ const [showHeaderActions, setShowHeaderActions] = React.useState(true);
2084
+ const [showHeaderBreadcrumbs, setShowHeaderBreadcrumbs] = React.useState(true);
2085
+ const handleFormSubmit = (e) => {
2086
+ e.preventDefault();
2087
+ sonner.toast.success(t("templates.formSubmitSuccess"));
2088
+ };
2089
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2090
+ "div",
2091
+ {
2092
+ className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
2093
+ style: {
2094
+ paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : "80px"
2095
+ },
2096
+ children: [
2097
+ /* @__PURE__ */ jsxRuntime.jsx(
2098
+ sidebar.Header,
2099
+ {
2100
+ showThemeToggle: true,
2101
+ showLanguageSelector: true,
2102
+ breadcrumbs: [
2103
+ { label: t("nav.designSystem"), href: "/home", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
2104
+ { label: t("templates.breadcrumb") }
2105
+ ],
2106
+ renderLink: (href, props) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, ...props })
2107
+ }
2108
+ ),
2109
+ /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(input.ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-5 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
2110
+ /* @__PURE__ */ jsxRuntime.jsx(
2111
+ alertDialog.PageHeader,
2112
+ {
2113
+ title: t("templates.title"),
2114
+ subtitle: t("templates.subtitle")
2115
+ }
2116
+ ),
2117
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2118
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.headerWithBreadcrumbs.sectionTitle") }),
2119
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2120
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2121
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.headerWithBreadcrumbs.cardTitle") }),
2122
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.headerWithBreadcrumbs.cardDescription") })
2123
+ ] }),
2124
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "p-0 border-t bg-background overflow-hidden rounded-b-[var(--radius-lg)]", children: [
2125
+ /* @__PURE__ */ jsxRuntime.jsx(
2126
+ sidebar.Header,
2127
+ {
2128
+ className: "border-b",
2129
+ breadcrumbs: [
2130
+ { label: t("templates.headerWithBreadcrumbs.breadcrumbs.dashboard"), href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
2131
+ { label: t("templates.headerWithBreadcrumbs.breadcrumbs.settings"), href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "w-4 h-4" }) },
2132
+ { label: t("templates.headerWithBreadcrumbs.breadcrumbs.users"), href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "w-4 h-4" }) },
2133
+ { label: t("templates.headerWithBreadcrumbs.breadcrumbs.accessProfile") }
2134
+ ],
2135
+ showLanguageSelector: true,
2136
+ showThemeToggle: true
2137
+ }
2138
+ ),
2139
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 min-h-[200px]", children: [
2140
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-lg font-semibold mb-2", children: t("templates.headerWithBreadcrumbs.exampleContentTitle") }),
2141
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
2142
+ t("templates.headerWithBreadcrumbs.exampleContentDescriptionPart1"),
2143
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Header" }),
2144
+ t("templates.headerWithBreadcrumbs.exampleContentDescriptionPart2")
2145
+ ] })
2146
+ ] })
2147
+ ] })
2148
+ ] })
2149
+ ] }),
2150
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2151
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2152
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.sections.alerts") }),
2153
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2154
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "info", children: [
2155
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: t("templates.alerts.infoTitle") }),
2156
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: t("templates.alerts.infoDescription") })
2157
+ ] }),
2158
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "destructive", children: [
2159
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: t("templates.alerts.errorTitle") }),
2160
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: t("templates.alerts.errorDescription") })
2161
+ ] }),
2162
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "success", children: [
2163
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: t("templates.alerts.successTitle") }),
2164
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: t("templates.alerts.successDescription") })
2165
+ ] }),
2166
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "warning", children: [
2167
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: t("templates.alerts.warningTitle") }),
2168
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: t("templates.alerts.warningDescription") })
2169
+ ] })
2170
+ ] })
2171
+ ] }),
2172
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2173
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2174
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.sections.cardsAndTabs") }),
2175
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { defaultValue: "overview", className: "w-full", children: [
2176
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "grid w-full grid-cols-4", children: [
2177
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "overview", children: t("templates.tabs.overview") }),
2178
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "forms", children: t("templates.tabs.forms") }),
2179
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "data", children: t("templates.tabs.data") }),
2180
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "settings", children: t("templates.tabs.settings") })
2181
+ ] }),
2182
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsContent, { value: "overview", className: "space-y-4", children: [
2183
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-3", children: [
2184
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2185
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2186
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("stats.totalUsers") }),
2187
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("stats.last30Days") })
2188
+ ] }),
2189
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
2190
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "1,234" }),
2191
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", className: "ml-2", children: "+12%" })
2192
+ ] }) })
2193
+ ] }),
2194
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2195
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2196
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("stats.totalRevenue") }),
2197
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("stats.currentMonth") })
2198
+ ] }),
2199
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
2200
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "$ 45.2k" }),
2201
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", className: "ml-2", children: "+8%" })
2202
+ ] }) })
2203
+ ] }),
2204
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2205
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2206
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("stats.conversionRate") }),
2207
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("stats.currentWeek") })
2208
+ ] }),
2209
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
2210
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "3.2%" }),
2211
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "ml-2", children: "-2%" })
2212
+ ] }) })
2213
+ ] })
2214
+ ] }),
2215
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2216
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2217
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.overview.progressTitle") }),
2218
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.overview.progressDescription") })
2219
+ ] }),
2220
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
2221
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2222
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2223
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.overview.projectProgress") }),
2224
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
2225
+ progress$1,
2226
+ "%"
2227
+ ] })
2228
+ ] }),
2229
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Progress, { value: progress$1, className: "w-full" }),
2230
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
2231
+ /* @__PURE__ */ jsxRuntime.jsx(
2232
+ button.Button,
2233
+ {
2234
+ size: "sm",
2235
+ onClick: () => setProgress(Math.max(0, progress$1 - 10)),
2236
+ children: "-10%"
2237
+ }
2238
+ ),
2239
+ /* @__PURE__ */ jsxRuntime.jsx(
2240
+ button.Button,
2241
+ {
2242
+ size: "sm",
2243
+ onClick: () => setProgress(Math.min(100, progress$1 + 10)),
2244
+ children: "+10%"
2245
+ }
2246
+ )
2247
+ ] })
2248
+ ] }),
2249
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2250
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2251
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2252
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.overview.volume") }),
2253
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
2254
+ sliderValue[0],
2255
+ "%"
2256
+ ] })
2257
+ ] }),
2258
+ /* @__PURE__ */ jsxRuntime.jsx(
2259
+ slider.Slider,
2260
+ {
2261
+ value: sliderValue,
2262
+ onValueChange: setSliderValue,
2263
+ min: 0,
2264
+ max: 100,
2265
+ step: 1,
2266
+ className: "w-full",
2267
+ "aria-label": t("templates.overview.volume")
2268
+ }
2269
+ )
2270
+ ] })
2271
+ ] })
2272
+ ] })
2273
+ ] }),
2274
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "forms", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2275
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2276
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.forms.registrationTitle") }),
2277
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.forms.registrationDescription") })
2278
+ ] }),
2279
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleFormSubmit, className: "space-y-4", children: [
2280
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2281
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2282
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "firstName", children: t("templates.forms.firstName") }),
2283
+ /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "firstName", placeholder: t("templates.forms.firstNamePlaceholder") })
2284
+ ] }),
2285
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2286
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "lastName", children: t("templates.forms.lastName") }),
2287
+ /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "lastName", placeholder: t("templates.forms.lastNamePlaceholder") })
2288
+ ] })
2289
+ ] }),
2290
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2291
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children: t("templates.forms.email") }),
2292
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2293
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2294
+ /* @__PURE__ */ jsxRuntime.jsx(
2295
+ input.Input,
2296
+ {
2297
+ id: "email",
2298
+ type: "email",
2299
+ placeholder: t("templates.forms.emailPlaceholder"),
2300
+ className: "pl-10"
2301
+ }
2302
+ )
2303
+ ] })
2304
+ ] }),
2305
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2306
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "phone", children: t("templates.forms.phone") }),
2307
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2308
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2309
+ /* @__PURE__ */ jsxRuntime.jsx(
2310
+ input.Input,
2311
+ {
2312
+ id: "phone",
2313
+ type: "tel",
2314
+ placeholder: t("templates.forms.phonePlaceholder"),
2315
+ className: "pl-10"
2316
+ }
2317
+ )
2318
+ ] })
2319
+ ] }),
2320
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2321
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "role", children: t("templates.forms.role") }),
2322
+ /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { children: [
2323
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { id: "role", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, { placeholder: t("templates.forms.rolePlaceholder") }) }),
2324
+ /* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
2325
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "developer", children: t("templates.forms.roles.developer") }),
2326
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "designer", children: t("templates.forms.roles.designer") }),
2327
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "manager", children: t("templates.forms.roles.manager") }),
2328
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "analyst", children: t("templates.forms.roles.analyst") })
2329
+ ] })
2330
+ ] })
2331
+ ] }),
2332
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2333
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "bio", children: t("templates.forms.bio") }),
2334
+ /* @__PURE__ */ jsxRuntime.jsx(
2335
+ richTextEditor.Textarea,
2336
+ {
2337
+ id: "bio",
2338
+ placeholder: t("templates.forms.bioPlaceholder"),
2339
+ rows: 4
2340
+ }
2341
+ )
2342
+ ] }),
2343
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2344
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
2345
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { children: t("templates.forms.preferences") }),
2346
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2347
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2348
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "newsletter" }),
2349
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "newsletter", className: "font-normal", children: t("templates.forms.newsletter") })
2350
+ ] }),
2351
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2352
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "notifications" }),
2353
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "notifications", className: "font-normal", children: t("templates.forms.pushNotifications") })
2354
+ ] }),
2355
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2356
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "updates" }),
2357
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "updates", className: "font-normal", children: t("templates.forms.featureUpdates") })
2358
+ ] })
2359
+ ] }),
2360
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2361
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2362
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.forms.accountType") }),
2363
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.RadioGroup, { defaultValue: "personal", "aria-label": t("templates.forms.accountType"), children: [
2364
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2365
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "personal", id: "personal" }),
2366
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "personal", className: "font-normal", children: t("templates.forms.accountPersonal") })
2367
+ ] }),
2368
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2369
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "business", id: "business" }),
2370
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "business", className: "font-normal", children: t("templates.forms.accountBusiness") })
2371
+ ] }),
2372
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2373
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "enterprise", id: "enterprise" }),
2374
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "enterprise", className: "font-normal", children: t("templates.forms.accountEnterprise") })
2375
+ ] })
2376
+ ] })
2377
+ ] })
2378
+ ] })
2379
+ ] }) }),
2380
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex justify-between", children: [
2381
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: t("templates.forms.cancel") }),
2382
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: handleFormSubmit, children: t("templates.forms.createAccount") })
2383
+ ] })
2384
+ ] }) }),
2385
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "data", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsx(SectionErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2386
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2387
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.data.title") }),
2388
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.data.description") })
2389
+ ] }),
2390
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { children: [
2391
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2392
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2393
+ /* @__PURE__ */ jsxRuntime.jsx(
2394
+ input.Input,
2395
+ {
2396
+ placeholder: t("templates.data.searchPlaceholder"),
2397
+ "aria-label": t("templates.data.searchPlaceholder"),
2398
+ className: "pl-10"
2399
+ }
2400
+ )
2401
+ ] }) }),
2402
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius-lg)] border border-border overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Table, { children: [
2403
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2404
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t("team.name") }),
2405
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t("team.email") }),
2406
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t("team.role") }),
2407
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t("team.status") }),
2408
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { className: "text-right", children: t("team.actions") })
2409
+ ] }) }),
2410
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableBody, { children: teamLoading ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2411
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
2412
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-8 rounded-full shrink-0" }),
2413
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3.5 w-28" })
2414
+ ] }) }),
2415
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3.5 w-36" }) }),
2416
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3.5 w-20" }) }),
2417
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-16 rounded-full" }) }),
2418
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-7 w-14 ml-auto" }) })
2419
+ ] }, i)) }) : teamMembers.map((member) => /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2420
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: member.name }),
2421
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: member.email }),
2422
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: t(`team.roles.${member.role}`) }),
2423
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
2424
+ progress.Badge,
2425
+ {
2426
+ variant: member.status === "active" ? "default" : member.status === "away" ? "secondary" : "outline",
2427
+ children: t(`common.${member.status}`)
2428
+ }
2429
+ ) }),
2430
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children: t("common.edit") }) })
2431
+ ] }, member.id)) })
2432
+ ] }) })
2433
+ ] }),
2434
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex justify-between items-center", children: [
2435
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t("team.showing", { count: teamMembers.length, total: teamMembers.length }) }),
2436
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
2437
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children: t("common.previous") }),
2438
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children: t("common.next") })
2439
+ ] })
2440
+ ] })
2441
+ ] }) }) }),
2442
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "settings", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2443
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2444
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.settings.title") }),
2445
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.settings.description") })
2446
+ ] }),
2447
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
2448
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2449
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
2450
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "dark-mode", children: t("templates.settings.darkMode") }),
2451
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t("templates.settings.darkModeDescription") })
2452
+ ] }),
2453
+ /* @__PURE__ */ jsxRuntime.jsx(
2454
+ alertDialog.Switch,
2455
+ {
2456
+ id: "dark-mode",
2457
+ checked: switchEnabled,
2458
+ onCheckedChange: toggleSwitch
2459
+ }
2460
+ )
2461
+ ] }),
2462
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2463
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2464
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
2465
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email-notifications", children: t("templates.settings.emailNotifications") }),
2466
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t("templates.settings.emailNotificationsDescription") })
2467
+ ] }),
2468
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "email-notifications", defaultChecked: true })
2469
+ ] }),
2470
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2471
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2472
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
2473
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "push-notifications", children: t("templates.settings.pushNotifications") }),
2474
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t("templates.settings.pushNotificationsDescription") })
2475
+ ] }),
2476
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "push-notifications" })
2477
+ ] }),
2478
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2479
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2480
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.settings.language") }),
2481
+ /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { defaultValue: "pt-br", children: [
2482
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label": t("templates.settings.language"), children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, {}) }),
2483
+ /* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
2484
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "pt-br", children: t("templates.settings.languages.ptBR") }),
2485
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "en", children: t("templates.settings.languages.en") }),
2486
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "es", children: t("templates.settings.languages.es") })
2487
+ ] })
2488
+ ] })
2489
+ ] }),
2490
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2491
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2492
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.settings.timezone") }),
2493
+ /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { defaultValue: "america-sao-paulo", children: [
2494
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label": t("templates.settings.timezone"), children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, {}) }),
2495
+ /* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
2496
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-sao-paulo", children: t("templates.settings.timezones.saoPaulo") }),
2497
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-new-york", children: t("templates.settings.timezones.newYork") }),
2498
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "europe-london", children: t("templates.settings.timezones.london") })
2499
+ ] })
2500
+ ] })
2501
+ ] })
2502
+ ] }),
2503
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex justify-between", children: [
2504
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: t("templates.settings.restoreDefaults") }),
2505
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { children: t("templates.settings.saveChanges") })
2506
+ ] })
2507
+ ] }) })
2508
+ ] })
2509
+ ] }),
2510
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2511
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2512
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.sections.buttons") }),
2513
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2514
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2515
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.buttons.title") }),
2516
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.buttons.description") })
2517
+ ] }),
2518
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
2519
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2520
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.buttons.variants") }),
2521
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2522
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "default", children: "Default" }),
2523
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "secondary", children: "Secondary" }),
2524
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Outline" }),
2525
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", children: "Ghost" }),
2526
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "link", children: "Link" }),
2527
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "destructive", children: "Destructive" })
2528
+ ] })
2529
+ ] }),
2530
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2531
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2532
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.buttons.sizes") }),
2533
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
2534
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", children: "Small" }),
2535
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "default", children: "Default" }),
2536
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "lg", children: "Large" }),
2537
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "icon", "aria-label": t("nav.settings"), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "h-4 w-4" }) })
2538
+ ] })
2539
+ ] }),
2540
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2541
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2542
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.buttons.withIcons") }),
2543
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2544
+ /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { children: [
2545
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "mr-2 h-4 w-4" }),
2546
+ t("templates.buttons.profile")
2547
+ ] }),
2548
+ /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "secondary", children: [
2549
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "mr-2 h-4 w-4" }),
2550
+ t("templates.buttons.messages")
2551
+ ] }),
2552
+ /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "outline", children: [
2553
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "mr-2 h-4 w-4" }),
2554
+ t("templates.buttons.schedule")
2555
+ ] })
2556
+ ] })
2557
+ ] }),
2558
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2559
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2560
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: t("templates.buttons.states") }),
2561
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2562
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { disabled: true, children: t("templates.buttons.disabled") }),
2563
+ /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", disabled: true, children: t("templates.buttons.outlineDisabled") })
2564
+ ] })
2565
+ ] })
2566
+ ] })
2567
+ ] })
2568
+ ] }),
2569
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2570
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2571
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.sections.badges") }),
2572
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2573
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2574
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.badges.title") }),
2575
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.badges.description") })
2576
+ ] }),
2577
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2578
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", children: "Default" }),
2579
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", children: "Secondary" }),
2580
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", children: "Outline" }),
2581
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "destructive", children: "Destructive" }),
2582
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-success text-success-foreground", children: "Success" }),
2583
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-warning text-warning-foreground", children: "Warning" }),
2584
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-info text-info-foreground", children: "Info" })
2585
+ ] }) })
2586
+ ] })
2587
+ ] }),
2588
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2589
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2590
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.sections.dialogs") }),
2591
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2592
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2593
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2594
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.dialogs.dialogTitle") }),
2595
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.dialogs.dialogDescription") })
2596
+ ] }),
2597
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { children: [
2598
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: t("templates.dialogs.editProfile") }) }),
2599
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogContent, { className: "sm:max-w-[425px]", children: [
2600
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { children: [
2601
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: t("templates.dialogs.editProfile") }),
2602
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: t("templates.dialogs.editProfileDescription") })
2603
+ ] }),
2604
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 py-4", children: [
2605
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2606
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "name", className: "text-right", children: t("templates.dialogs.name") }),
2607
+ /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "name", defaultValue: "John Doe", className: "col-span-3" })
2608
+ ] }),
2609
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2610
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "username", className: "text-right", children: t("templates.dialogs.username") }),
2611
+ /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "username", defaultValue: "@johndoe", className: "col-span-3" })
2612
+ ] })
2613
+ ] }),
2614
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", children: t("templates.dialogs.update") }) })
2615
+ ] })
2616
+ ] }) })
2617
+ ] }),
2618
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2619
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2620
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.dialogs.alertDialogTitle") }),
2621
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.dialogs.alertDialogDescription") })
2622
+ ] }),
2623
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialog, { children: [
2624
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "destructive", children: t("templates.dialogs.deleteAccount") }) }),
2625
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogContent, { className: "sm:max-w-[425px]", children: [
2626
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogHeader, { children: [
2627
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTitle, { children: t("templates.dialogs.areYouSure") }),
2628
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogDescription, { children: t("templates.dialogs.deleteWarning") })
2629
+ ] }),
2630
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogFooter, { children: [
2631
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogCancel, { children: t("templates.dialogs.cancel") }),
2632
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: t("templates.dialogs.continue") })
2633
+ ] })
2634
+ ] })
2635
+ ] }) })
2636
+ ] })
2637
+ ] })
2638
+ ] }),
2639
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2640
+ /* @__PURE__ */ jsxRuntime.jsx("section", { children: /* @__PURE__ */ jsxRuntime.jsx(MapShowcase, {}) }),
2641
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2642
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2643
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.headerVariations.sectionTitle") }),
2644
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2645
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2646
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.headerVariations.cardTitle") }),
2647
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.headerVariations.cardDescription") })
2648
+ ] }),
2649
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
2650
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2651
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children: t("templates.headerVariations.visibleElements") }),
2652
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6", children: [
2653
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2654
+ /* @__PURE__ */ jsxRuntime.jsx(
2655
+ alertDialog.Switch,
2656
+ {
2657
+ id: "header-actions",
2658
+ checked: showHeaderActions,
2659
+ onCheckedChange: setShowHeaderActions
2660
+ }
2661
+ ),
2662
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-actions", className: "cursor-pointer", children: t("templates.headerVariations.actionButtons") })
2663
+ ] }),
2664
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2665
+ /* @__PURE__ */ jsxRuntime.jsx(
2666
+ alertDialog.Switch,
2667
+ {
2668
+ id: "header-bread",
2669
+ checked: showHeaderBreadcrumbs,
2670
+ onCheckedChange: setShowHeaderBreadcrumbs
2671
+ }
2672
+ ),
2673
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-bread", className: "cursor-pointer", children: t("templates.headerVariations.breadcrumbsLabel") })
2674
+ ] })
2675
+ ] })
2676
+ ] }),
2677
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative border rounded-[var(--radius-lg)] bg-muted/10 overflow-hidden shadow-inner", children: [
2678
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children: t("templates.headerVariations.preview") }),
2679
+ /* @__PURE__ */ jsxRuntime.jsx(
2680
+ sidebar.Header,
2681
+ {
2682
+ title: !showHeaderBreadcrumbs ? t("templates.headerVariations.currentPage") : void 0,
2683
+ breadcrumbs: showHeaderBreadcrumbs ? [
2684
+ {
2685
+ label: t("templates.headerVariations.breadcrumbBrand"),
2686
+ href: "#",
2687
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" })
2688
+ },
2689
+ { label: t("templates.headerVariations.breadcrumbSettings"), href: "#" },
2690
+ { label: t("templates.headerVariations.breadcrumbProfile") }
2691
+ ] : void 0,
2692
+ actions: showHeaderActions ? [
2693
+ {
2694
+ id: "notify",
2695
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bell, { className: "w-5 h-5" }),
2696
+ onClick: () => sonner.toast(t("templates.headerVariations.notificationsOpenedToast"))
2697
+ },
2698
+ {
2699
+ id: "mail",
2700
+ label: t("templates.headerVariations.messagesLabel"),
2701
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-5 h-5" }),
2702
+ onClick: () => sonner.toast(t("templates.headerVariations.messagesOpenedToast"))
2703
+ }
2704
+ ] : void 0
2705
+ }
2706
+ ),
2707
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children: t("templates.headerVariations.contentArea") })
2708
+ ] })
2709
+ ] })
2710
+ ] })
2711
+ ] }),
2712
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2713
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2714
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: t("templates.sections.sidebarVariations") }),
2715
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
2716
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2717
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.sidebar.title") }),
2718
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.sidebar.description") })
2719
+ ] }),
2720
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { defaultValue: "assistant", className: "w-full", children: [
2721
+ /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "mb-4", children: [
2722
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "assistant", children: t("templates.sidebar.assistantMode") }),
2723
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "default", children: t("templates.sidebar.defaultMode") })
2724
+ ] }),
2725
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2726
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children: t("templates.sidebarControls.footerSettings") }),
2727
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-6 mt-2", children: [
2728
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2729
+ /* @__PURE__ */ jsxRuntime.jsx(
2730
+ alertDialog.Switch,
2731
+ {
2732
+ id: "show-user",
2733
+ checked: showSidebarUser,
2734
+ onCheckedChange: setShowSidebarUser
2735
+ }
2736
+ ),
2737
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-user", className: "cursor-pointer", children: t("templates.sidebarControls.userProfile") })
2738
+ ] }),
2739
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2740
+ /* @__PURE__ */ jsxRuntime.jsx(
2741
+ alertDialog.Switch,
2742
+ {
2743
+ id: "show-settings",
2744
+ checked: showSidebarSettings,
2745
+ onCheckedChange: setShowSidebarSettings
2746
+ }
2747
+ ),
2748
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-settings", className: "cursor-pointer", children: t("templates.sidebarControls.settings") })
2749
+ ] }),
2750
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2751
+ /* @__PURE__ */ jsxRuntime.jsx(
2752
+ alertDialog.Switch,
2753
+ {
2754
+ id: "show-logout",
2755
+ checked: showSidebarLogout,
2756
+ onCheckedChange: setShowSidebarLogout
2757
+ }
2758
+ ),
2759
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-logout", className: "cursor-pointer", children: t("templates.sidebarControls.logoutButton") })
2760
+ ] })
2761
+ ] }),
2762
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 pt-6 border-t", children: [
2763
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
2764
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold", children: t("templates.sidebarControls.sidebarWidthDesktop") }),
2765
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-mono bg-muted px-2 py-1 rounded", children: [
2766
+ sidebarWidth,
2767
+ "px"
2768
+ ] })
2769
+ ] }),
2770
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [
2771
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground w-12 text-right", children: "240px" }),
2772
+ /* @__PURE__ */ jsxRuntime.jsx(
2773
+ slider.Slider,
2774
+ {
2775
+ value: [sidebarWidth],
2776
+ onValueChange: (val) => setSidebarWidth(val[0]),
2777
+ min: 240,
2778
+ max: 450,
2779
+ step: 10,
2780
+ className: "flex-1",
2781
+ "aria-label": t("templates.sidebarControls.sidebarWidthAriaLabel")
2782
+ }
2783
+ ),
2784
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground w-12", children: "450px" })
2785
+ ] })
2786
+ ] })
2787
+ ] }),
2788
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "assistant", children: /* @__PURE__ */ jsxRuntime.jsxs(
2789
+ "div",
2790
+ {
2791
+ className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden",
2792
+ style: { transform: "translateZ(0)" },
2793
+ children: [
2794
+ /* @__PURE__ */ jsxRuntime.jsx(
2795
+ sidebar.Sidebar,
2796
+ {
2797
+ expanded: true,
2798
+ width: sidebarWidth,
2799
+ onToggle: () => {
2800
+ },
2801
+ user: { email: "admin@xertica.com" },
2802
+ onLogout: () => sonner.toast(t("templates.sidebar.logoutToast")),
2803
+ location: { pathname: "/assistant/current" },
2804
+ navigate: () => {
2805
+ },
2806
+ variant: "assistant",
2807
+ search: {
2808
+ show: true,
2809
+ placeholder: t("templates.sidebar.searchTopicsPlaceholder"),
2810
+ filter: {
2811
+ show: true,
2812
+ content: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2 space-y-2", children: [
2813
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children: t("templates.sidebarControls.filterByStatus") }),
2814
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-2 p-1", children: [
2815
+ /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children: t("templates.sidebarControls.filterActive") }),
2816
+ /* @__PURE__ */ jsxRuntime.jsx(
2817
+ progress.Badge,
2818
+ {
2819
+ variant: "outline",
2820
+ className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10",
2821
+ children: t("templates.sidebarControls.filterArchived")
2822
+ }
2823
+ ),
2824
+ /* @__PURE__ */ jsxRuntime.jsx(
2825
+ progress.Badge,
2826
+ {
2827
+ variant: "outline",
2828
+ className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10",
2829
+ children: t("templates.sidebarControls.filterPending")
2830
+ }
2831
+ )
2832
+ ] })
2833
+ ] })
2834
+ }
2835
+ },
2836
+ fixedArea: {
2837
+ show: true,
2838
+ content: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full bg-sidebar-primary hover:bg-sidebar-primary/90 text-sidebar-primary-foreground shadow-lg font-bold border-none transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98]", children: [
2839
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "w-4 h-4 mr-2" }),
2840
+ t("templates.sidebar.newConversation")
2841
+ ] })
2842
+ },
2843
+ navigationGroups: [
2844
+ {
2845
+ id: "recent",
2846
+ label: t("templates.sidebar.recent"),
2847
+ icon: lucideReact.Clock,
2848
+ items: [
2849
+ {
2850
+ path: "/assistant/refatoracao",
2851
+ label: t("templates.sidebar.items.sidebarRefactor"),
2852
+ description: t("templates.sidebar.items.sidebarRefactorDescription"),
2853
+ actions: [
2854
+ {
2855
+ label: t("templates.sidebar.actions.rename"),
2856
+ icon: lucideReact.FileEdit,
2857
+ onClick: () => sonner.toast(t("templates.sidebar.actions.renameToast"))
2858
+ },
2859
+ {
2860
+ label: t("templates.sidebar.actions.move"),
2861
+ icon: lucideReact.ArrowRightLeft,
2862
+ children: [
2863
+ {
2864
+ label: t("templates.sidebar.actions.moveActive"),
2865
+ onClick: () => sonner.toast(t("templates.sidebar.actions.moveActiveToast"))
2866
+ },
2867
+ {
2868
+ label: t("templates.sidebar.actions.moveMonitoring"),
2869
+ onClick: () => sonner.toast(t("templates.sidebar.actions.moveMonitoringToast"))
2870
+ },
2871
+ {
2872
+ label: t("templates.sidebar.actions.moveArchive"),
2873
+ onClick: () => sonner.toast(t("templates.sidebar.actions.moveArchiveToast"))
2874
+ }
2875
+ ]
2876
+ },
2877
+ {
2878
+ label: t("templates.sidebar.actions.clear"),
2879
+ icon: lucideReact.Trash2,
2880
+ onClick: () => sonner.toast(t("templates.sidebar.actions.clearToast")),
2881
+ variant: "destructive"
2882
+ }
2883
+ ]
2884
+ }
2885
+ ]
2886
+ },
2887
+ {
2888
+ id: "projects",
2889
+ label: t("templates.sidebar.constructionMonitoring"),
2890
+ icon: lucideReact.Map,
2891
+ actions: [
2892
+ {
2893
+ label: t("templates.sidebar.actions.newCategory"),
2894
+ icon: lucideReact.Plus,
2895
+ onClick: () => sonner.toast(t("templates.sidebar.actions.newCategoryToast"))
2896
+ },
2897
+ {
2898
+ label: t("templates.sidebar.actions.archiveGroup"),
2899
+ icon: lucideReact.Archive,
2900
+ onClick: () => sonner.toast(t("templates.sidebar.actions.archiveGroupToast"))
2901
+ }
2902
+ ],
2903
+ items: [
2904
+ {
2905
+ path: "/assistant/br163",
2906
+ label: t("templates.sidebar.items.br163Restoration"),
2907
+ icon: () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-500" }),
2908
+ description: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5 min-w-[160px]", children: [
2909
+ /* @__PURE__ */ jsxRuntime.jsx(
2910
+ progress.Progress,
2911
+ {
2912
+ value: 67,
2913
+ className: "h-1.5 bg-sidebar-foreground/10"
2914
+ }
2915
+ ),
2916
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-[10px] text-sidebar-foreground/60", children: [
2917
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("templates.sidebar.items.br163Location") }),
2918
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "67%" })
2919
+ ] })
2920
+ ] })
2921
+ }
2922
+ ]
2923
+ }
2924
+ ],
2925
+ footer: {
2926
+ showUser: showSidebarUser,
2927
+ showSettings: showSidebarSettings,
2928
+ showLogout: showSidebarLogout
2929
+ }
2930
+ }
2931
+ ),
2932
+ /* @__PURE__ */ jsxRuntime.jsx(
2933
+ "div",
2934
+ {
2935
+ className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300",
2936
+ style: { left: `${sidebarWidth}px` },
2937
+ children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children: t("templates.sidebar.assistantContent") })
2938
+ }
2939
+ )
2940
+ ]
2941
+ }
2942
+ ) }),
2943
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "default", children: /* @__PURE__ */ jsxRuntime.jsxs(
2944
+ "div",
2945
+ {
2946
+ className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden",
2947
+ style: { transform: "translateZ(0)" },
2948
+ children: [
2949
+ /* @__PURE__ */ jsxRuntime.jsx(
2950
+ sidebar.Sidebar,
2951
+ {
2952
+ expanded: true,
2953
+ width: sidebarWidth,
2954
+ onToggle: () => {
2955
+ },
2956
+ user: {
2957
+ name: "Ariel Santos",
2958
+ email: "admin@xertica.com",
2959
+ avatar: "https://github.com/shadcn.png"
2960
+ },
2961
+ onLogout: () => sonner.toast(t("templates.sidebar.logoutToast")),
2962
+ onSettingsClick: () => sonner.toast(t("templates.sidebar.settingsClickedToast")),
2963
+ location: { pathname: "/home" },
2964
+ navigate: () => {
2965
+ },
2966
+ variant: "default",
2967
+ routes: [
2968
+ { path: "/home", label: t("templates.sidebar.routes.home"), icon: lucideReact.Home },
2969
+ { path: "/dashboard", label: t("templates.sidebar.routes.dashboard"), icon: lucideReact.Users },
2970
+ { path: "/settings", label: t("templates.sidebar.routes.settings"), icon: lucideReact.Settings }
2971
+ ],
2972
+ footer: {
2973
+ showUser: showSidebarUser,
2974
+ showSettings: showSidebarSettings,
2975
+ showLogout: showSidebarLogout
2976
+ }
2977
+ }
2978
+ ),
2979
+ /* @__PURE__ */ jsxRuntime.jsx(
2980
+ "div",
2981
+ {
2982
+ className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300",
2983
+ style: { left: `${sidebarWidth}px` },
2984
+ children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children: t("templates.sidebar.defaultContent") })
2985
+ }
2986
+ )
2987
+ ]
2988
+ }
2989
+ ) })
2990
+ ] }) })
2991
+ ] })
2992
+ ] }),
2993
+ /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2994
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: "mt-8", children: [
2995
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
2996
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: t("templates.footer.title") }),
2997
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: t("templates.footer.subtitle") })
2998
+ ] }),
2999
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-4", children: [
3000
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
3001
+ t("templates.footer.descriptionPart1"),
3002
+ /* @__PURE__ */ jsxRuntime.jsx("code", { className: "bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]", children: "xertica-ui" }),
3003
+ t("templates.footer.descriptionPart2")
3004
+ ] }),
3005
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "info", children: [
3006
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: t("templates.footer.tipTitle") }),
3007
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.AlertDescription, { children: [
3008
+ t("templates.footer.tipDescriptionPart1"),
3009
+ /* @__PURE__ */ jsxRuntime.jsx("code", { className: "bg-muted px-1 rounded", children: "styles/xertica/tokens.css" }),
3010
+ t("templates.footer.tipDescriptionPart2")
3011
+ ] })
3012
+ ] })
3013
+ ] })
3014
+ ] })
3015
+ ] }) }) }) })
3016
+ ]
3017
+ }
3018
+ );
3019
+ }
3020
+
3021
+ function TemplatePage() {
3022
+ const { user, logout } = useAuth();
3023
+ const layout = LayoutContext.useOptionalLayout();
3024
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
3025
+ const [localAssistantExpanded, setLocalAssistantExpanded] = React.useState(false);
3026
+ const sidebarExpanded = layout?.sidebarExpanded ?? localSidebarExpanded;
3027
+ const sidebarWidth = layout?.sidebarWidth ?? 280;
3028
+ const assistenteExpanded = layout?.assistenteExpanded ?? localAssistantExpanded;
3029
+ const toggleSidebar = layout?.toggleSidebar ?? (() => setLocalSidebarExpanded((value) => !value));
3030
+ const toggleAssistente = layout?.toggleAssistente ?? (() => setLocalAssistantExpanded((value) => !value));
3031
+ const location = reactRouterDom.useLocation();
3032
+ const navigate = reactRouterDom.useNavigate();
3033
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
3034
+ /* @__PURE__ */ jsxRuntime.jsx(
3035
+ sidebar.Sidebar,
3036
+ {
3037
+ expanded: sidebarExpanded,
3038
+ width: sidebarWidth,
3039
+ onToggle: toggleSidebar,
3040
+ user: {
3041
+ ...user,
3042
+ name: "Ariel Santos",
3043
+ avatar: "https://github.com/shadcn.png"
3044
+ },
3045
+ onLogout: logout,
3046
+ onSettingsClick: () => navigate("/settings"),
3047
+ location,
3048
+ navigate,
3049
+ routes
3050
+ }
3051
+ ),
3052
+ /* @__PURE__ */ jsxRuntime.jsx(TemplateContent, {}),
3053
+ /* @__PURE__ */ jsxRuntime.jsx(
3054
+ xerticaAssistant.XerticaAssistant,
3055
+ {
3056
+ isExpanded: assistenteExpanded,
3057
+ onToggle: toggleAssistente,
3058
+ onEvaluation: () => {
3059
+ }
3060
+ }
3061
+ )
3062
+ ] });
3063
+ }
3064
+
3065
+ function VerifyEmailPage() {
3066
+ const navigate = reactRouterDom.useNavigate();
3067
+ const location = reactRouterDom.useLocation();
3068
+ const { t } = reactI18next.useTranslation();
3069
+ const email = location.state?.email || "your@email.com";
3070
+ const [isResending, setIsResending] = React.useState(false);
3071
+ const [resendSuccess, setResendSuccess] = React.useState(false);
3072
+ const handleResend = async () => {
3073
+ setIsResending(true);
3074
+ setResendSuccess(false);
3075
+ await new Promise((resolve) => setTimeout(resolve, 1500));
3076
+ setIsResending(false);
3077
+ setResendSuccess(true);
3078
+ setTimeout(() => setResendSuccess(false), 3e3);
3079
+ };
3080
+ const handleSocialLogin = (_provider) => {
3081
+ };
3082
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-full flex overflow-y-auto", children: [
3083
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
3084
+ /* @__PURE__ */ jsxRuntime.jsx(
3085
+ alertDialog.ImageWithFallback,
3086
+ {
3087
+ src: "https://images.unsplash.com/photo-1563986768609-322da13575f3?w=1200&h=800&fit=crop&auto=format",
3088
+ alt: t("verifyEmail.heroImageAlt"),
3089
+ className: "absolute inset-0 w-full h-full object-cover"
3090
+ }
3091
+ ),
3092
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
3093
+ ] }),
3094
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
3095
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
3096
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
3097
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
3098
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
3099
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
3100
+ XerticaXLogo.XerticaLogo,
3101
+ {
3102
+ className: "h-12 w-auto text-primary dark:text-foreground",
3103
+ variant: "theme"
3104
+ }
3105
+ ) }),
3106
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-primary/10 rounded-[var(--radius)]", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-12 h-12 text-primary" }) }) }),
3107
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: t("verifyEmail.heading") }),
3108
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: t("verifyEmail.instructionsSent") }),
3109
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-primary", children: email })
3110
+ ] }),
3111
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-3", children: [
3112
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t("verifyEmail.instructions") }),
3113
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2 text-muted-foreground", children: [
3114
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "w-4 h-4 mt-0.5 flex-shrink-0 text-[var(--chart-2)]" }),
3115
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: t("verifyEmail.checkSpam") })
3116
+ ] })
3117
+ ] }),
3118
+ resendSuccess && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-[var(--chart-2)]/10 border border-[var(--chart-2)]/20 rounded-[var(--radius)] p-3 flex items-center gap-2", children: [
3119
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "w-5 h-5 text-[var(--chart-2)] flex-shrink-0" }),
3120
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-[var(--chart-2)]", children: t("verifyEmail.resentSuccess") })
3121
+ ] }),
3122
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
3123
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-muted-foreground", children: t("verifyEmail.notReceived") }),
3124
+ /* @__PURE__ */ jsxRuntime.jsx(
3125
+ button.Button,
3126
+ {
3127
+ variant: "outline",
3128
+ className: "w-full",
3129
+ onClick: handleResend,
3130
+ disabled: isResending,
3131
+ children: isResending ? t("verifyEmail.resending") : t("verifyEmail.resend")
3132
+ }
3133
+ ),
3134
+ /* @__PURE__ */ jsxRuntime.jsxs(
3135
+ button.Button,
3136
+ {
3137
+ type: "button",
3138
+ onClick: () => navigate("/login"),
3139
+ variant: "outline",
3140
+ className: "w-full text-muted-foreground hover:text-foreground",
3141
+ children: [
3142
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4 mr-2" }),
3143
+ t("verifyEmail.backToLogin")
3144
+ ]
3145
+ }
3146
+ )
3147
+ ] }),
3148
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
3149
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
3150
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: t("login.orContinueWith") }) })
3151
+ ] }),
3152
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
3153
+ /* @__PURE__ */ jsxRuntime.jsxs(
3154
+ button.Button,
3155
+ {
3156
+ type: "button",
3157
+ variant: "outline",
3158
+ className: "w-full justify-center",
3159
+ onClick: () => handleSocialLogin(),
3160
+ children: [
3161
+ /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
3162
+ /* @__PURE__ */ jsxRuntime.jsx(
3163
+ "path",
3164
+ {
3165
+ fill: "#EA4335",
3166
+ d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"
3167
+ }
3168
+ ),
3169
+ /* @__PURE__ */ jsxRuntime.jsx(
3170
+ "path",
3171
+ {
3172
+ fill: "#4285F4",
3173
+ d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"
3174
+ }
3175
+ ),
3176
+ /* @__PURE__ */ jsxRuntime.jsx(
3177
+ "path",
3178
+ {
3179
+ fill: "#FBBC05",
3180
+ d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"
3181
+ }
3182
+ ),
3183
+ /* @__PURE__ */ jsxRuntime.jsx(
3184
+ "path",
3185
+ {
3186
+ fill: "#34A853",
3187
+ d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"
3188
+ }
3189
+ ),
3190
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
3191
+ ] }),
3192
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("login.signInWithGoogle") })
3193
+ ]
3194
+ }
3195
+ ),
3196
+ /* @__PURE__ */ jsxRuntime.jsxs(
3197
+ button.Button,
3198
+ {
3199
+ type: "button",
3200
+ variant: "outline",
3201
+ className: "w-full justify-center",
3202
+ onClick: () => handleSocialLogin(),
3203
+ children: [
3204
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
3205
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("login.signInWithMTLogin") })
3206
+ ]
3207
+ }
3208
+ ),
3209
+ /* @__PURE__ */ jsxRuntime.jsx(
3210
+ button.Button,
3211
+ {
3212
+ type: "button",
3213
+ variant: "outline",
3214
+ className: "w-full justify-center font-normal",
3215
+ onClick: () => handleSocialLogin(),
3216
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("login.signInWithGovBr") })
3217
+ }
3218
+ )
3219
+ ] })
3220
+ ] })
3221
+ ] })
3222
+ ] });
3223
+ }
3224
+
3225
+ exports.ForgotPasswordPage = ForgotPasswordPage;
3226
+ exports.HomeContent = HomeContent;
3227
+ exports.HomePage = HomePage;
3228
+ exports.LoginPage = LoginPage;
3229
+ exports.ResetPasswordPage = ResetPasswordPage;
3230
+ exports.TemplateContent = TemplateContent;
3231
+ exports.TemplatePage = TemplatePage;
3232
+ exports.VerifyEmailPage = VerifyEmailPage;