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