xertica-ui 2.7.0 → 2.9.6

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