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