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