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