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