xertica-ui 2.4.0 → 2.4.1

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 (524) hide show
  1. package/CHANGELOG.md +572 -564
  2. package/README.md +417 -417
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/cli.ts +1244 -1244
  6. package/bin/language-config.ts +358 -358
  7. package/components/assistant/code-block/CodeBlock.tsx +268 -268
  8. package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
  9. package/components/assistant/modern-chat-input/ModernChatInput.tsx +564 -564
  10. package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +99 -99
  11. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -104
  12. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
  13. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -88
  14. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
  15. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -564
  16. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
  17. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
  18. package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
  19. package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -611
  20. package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
  21. package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
  22. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +58 -58
  23. package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
  24. package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
  25. package/components/blocks/card-patterns/ProfileCard.tsx +112 -112
  26. package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
  27. package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
  28. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +67 -67
  29. package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
  30. package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
  31. package/components/blocks/card-patterns/index.ts +29 -29
  32. package/components/brand/language-selector/LanguageSelector.tsx +102 -102
  33. package/components/brand/language-selector/language-selector.stories.tsx +111 -111
  34. package/components/brand/language-selector/language-selector.test.tsx +101 -101
  35. package/components/brand/theme-toggle/ThemeToggle.tsx +74 -74
  36. package/components/brand/xertica-provider/XerticaProvider.tsx +109 -109
  37. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  38. package/components/index.ts +86 -86
  39. package/components/layout/sidebar/sidebar.mdx +1 -1
  40. package/components/layout/sidebar/sidebar.tsx +1079 -1079
  41. package/components/media/FloatingMediaWrapper.tsx +371 -371
  42. package/components/media/audio-player/AudioPlayer.tsx +768 -768
  43. package/components/media/video-player/VideoPlayer.tsx +310 -310
  44. package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +188 -188
  45. package/components/pages/home-content/HomeContent.tsx +120 -120
  46. package/components/pages/home-content/home-content.mdx +62 -62
  47. package/components/pages/home-page/HomePage.tsx +78 -78
  48. package/components/pages/home-page/home-page.mdx +53 -53
  49. package/components/pages/login-page/LoginPage.tsx +218 -218
  50. package/components/pages/reset-password-page/ResetPasswordPage.tsx +243 -243
  51. package/components/pages/template-content/TemplateContent.tsx +1354 -1354
  52. package/components/pages/template-content/template-content.mdx +61 -61
  53. package/components/pages/template-page/template-page.mdx +53 -53
  54. package/components/pages/verify-email-page/VerifyEmailPage.tsx +206 -206
  55. package/components/shared/error-boundary.stories.tsx +114 -114
  56. package/components/shared/error-boundary.tsx +150 -150
  57. package/components/shared/error-fallbacks.tsx +222 -222
  58. package/components/ui/accordion/accordion.mdx +8 -8
  59. package/components/ui/alert/alert.mdx +8 -8
  60. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  61. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  62. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  63. package/components/ui/avatar/avatar.mdx +8 -8
  64. package/components/ui/badge/badge.mdx +8 -8
  65. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  66. package/components/ui/button/button.mdx +8 -8
  67. package/components/ui/calendar/calendar.mdx +8 -8
  68. package/components/ui/card/card.mdx +8 -8
  69. package/components/ui/carousel/carousel.mdx +8 -8
  70. package/components/ui/chart/chart.mdx +8 -8
  71. package/components/ui/checkbox/checkbox.mdx +8 -8
  72. package/components/ui/collapsible/collapsible.mdx +8 -8
  73. package/components/ui/command/command.mdx +8 -8
  74. package/components/ui/context-menu/context-menu.mdx +8 -8
  75. package/components/ui/dialog/dialog.mdx +8 -8
  76. package/components/ui/drawer/drawer.mdx +8 -8
  77. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  78. package/components/ui/empty/empty.mdx +8 -8
  79. package/components/ui/file-upload/file-upload.mdx +8 -8
  80. package/components/ui/hover-card/hover-card.mdx +8 -8
  81. package/components/ui/input/input.mdx +8 -8
  82. package/components/ui/input-otp/input-otp.mdx +8 -8
  83. package/components/ui/label/label.mdx +8 -8
  84. package/components/ui/map/map.mdx +8 -8
  85. package/components/ui/menubar/menubar.mdx +8 -8
  86. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  87. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  88. package/components/ui/pagination/pagination.mdx +8 -8
  89. package/components/ui/popover/popover.mdx +8 -8
  90. package/components/ui/progress/progress.mdx +8 -8
  91. package/components/ui/radio-group/radio-group.mdx +8 -8
  92. package/components/ui/rating/rating.mdx +8 -8
  93. package/components/ui/resizable/resizable.mdx +8 -8
  94. package/components/ui/route-map/route-map.mdx +8 -8
  95. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  96. package/components/ui/search/search.mdx +8 -8
  97. package/components/ui/select/select.mdx +8 -8
  98. package/components/ui/separator/separator.mdx +8 -8
  99. package/components/ui/sheet/sheet.mdx +8 -8
  100. package/components/ui/simple-map/simple-map.mdx +8 -8
  101. package/components/ui/skeleton/skeleton.mdx +8 -8
  102. package/components/ui/slider/slider.mdx +8 -8
  103. package/components/ui/sonner/sonner.mdx +8 -8
  104. package/components/ui/stats-card/index.ts +2 -2
  105. package/components/ui/stats-card/stats-card-skeleton.tsx +60 -60
  106. package/components/ui/stats-card/stats-card.mdx +8 -8
  107. package/components/ui/stats-card/stats-card.stories.tsx +117 -99
  108. package/components/ui/stats-card/stats-card.tsx +18 -2
  109. package/components/ui/stepper/stepper.mdx +8 -8
  110. package/components/ui/switch/switch.mdx +8 -8
  111. package/components/ui/table/table.mdx +8 -8
  112. package/components/ui/tabs/tabs.mdx +8 -8
  113. package/components/ui/textarea/textarea.mdx +8 -8
  114. package/components/ui/timeline/timeline.mdx +8 -8
  115. package/components/ui/toggle/toggle.mdx +8 -8
  116. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  117. package/components/ui/tooltip/tooltip.mdx +8 -8
  118. package/components/ui/tree-view/tree-view.mdx +8 -8
  119. package/components.json +153 -533
  120. package/contexts/AuthContext.tsx +121 -121
  121. package/contexts/LanguageContext.test.tsx +121 -121
  122. package/contexts/LanguageContext.tsx +250 -250
  123. package/dist/AssistantChart-BKVtGUKF.js +3383 -0
  124. package/dist/{AssistantChart-BAx9VQvb.cjs → AssistantChart-Bdd44uBn.cjs} +388 -127
  125. package/dist/{AssistantChart-CVko2A1W.js → AssistantChart-CFhDdGyU.js} +391 -130
  126. package/dist/{AssistantChart-CVzmmhx4.js → AssistantChart-C_hwFRRr.js} +4 -4
  127. package/dist/{AssistantChart-BAudAfne.cjs → AssistantChart-CldVCVDe.cjs} +5 -5
  128. package/dist/{AssistantChart-BP8upjMk.js → AssistantChart-Cu3m7RBo.js} +5 -5
  129. package/dist/AssistantChart-CxGjH7Qk.js +3477 -0
  130. package/dist/AssistantChart-DIpshm3i.js +4784 -0
  131. package/dist/AssistantChart-D_PTeu8P.cjs +3503 -0
  132. package/dist/{AssistantChart-9w31gdAb.cjs → AssistantChart-DoZCyS5r.cjs} +4 -4
  133. package/dist/AssistantChart-WeycT5Pd.cjs +3551 -0
  134. package/dist/AssistantChart-zjsy2GaZ.cjs +4810 -0
  135. package/dist/AudioPlayer-B1lt5cPl.cjs +989 -0
  136. package/dist/AudioPlayer-BZ7bibzU.cjs +982 -0
  137. package/dist/AudioPlayer-BpRPS4-1.cjs +1277 -0
  138. package/dist/AudioPlayer-C12BjQBV.cjs +997 -0
  139. package/dist/{AudioPlayer-1ypwE2Wh.cjs → AudioPlayer-CFeV8t-5.cjs} +1 -1
  140. package/dist/{AudioPlayer-DuKXrCfy.js → AudioPlayer-CGRUtUdN.js} +1 -1
  141. package/dist/AudioPlayer-Coly3q5R.js +1278 -0
  142. package/dist/AudioPlayer-CySJIyvL.js +937 -0
  143. package/dist/AudioPlayer-DMcG_c7L.js +990 -0
  144. package/dist/AudioPlayer-DcFKRJE_.js +998 -0
  145. package/dist/AudioPlayer-IAU5q5T1.cjs +936 -0
  146. package/dist/AudioPlayer-e8LfNoqO.js +983 -0
  147. package/dist/BrandColorsContext-565dDHd5.js +660 -0
  148. package/dist/BrandColorsContext-BcJbtkqn.cjs +659 -0
  149. package/dist/{xertica-assistant-Qp3ydksa.cjs → CodeBlock-7TTgmdGG.cjs} +263 -51
  150. package/dist/{xertica-assistant-gnCJdcZY.js → CodeBlock-BeSt1h5P.js} +219 -7
  151. package/dist/CodeBlock-BgfYL_rD.cjs +2094 -0
  152. package/dist/CodeBlock-BlcqlA9M.cjs +2094 -0
  153. package/dist/CodeBlock-Bnmeu5ez.cjs +2094 -0
  154. package/dist/CodeBlock-BtfPlbAI.js +2078 -0
  155. package/dist/CodeBlock-CIySIuYr.js +2078 -0
  156. package/dist/CodeBlock-CuPtUM-7.cjs +2094 -0
  157. package/dist/CodeBlock-D6ffWXgc.js +2078 -0
  158. package/dist/CodeBlock-D8dcwbit.cjs +2094 -0
  159. package/dist/CodeBlock-DMZrFnlw.cjs +2094 -0
  160. package/dist/CodeBlock-DlBehYN8.js +2078 -0
  161. package/dist/CodeBlock-DnYNI8rQ.js +2078 -0
  162. package/dist/CodeBlock-DvKWbSnE.cjs +2094 -0
  163. package/dist/CodeBlock-DwMCfkFY.js +2078 -0
  164. package/dist/CodeBlock-Dy6CNYyj.js +2078 -0
  165. package/dist/CodeBlock-U1pPOQI7.cjs +2094 -0
  166. package/dist/CodeBlock-f_GpNhEB.js +2078 -0
  167. package/dist/CodeBlock-oB6u8nI1.js +2078 -0
  168. package/dist/CodeBlock-tZC31B73.cjs +2094 -0
  169. package/dist/FeatureCard-CxC-7C-C.cjs +300 -0
  170. package/dist/FeatureCard-DbHWCb4E.js +301 -0
  171. package/dist/ImageWithFallback-CGtidP6B.cjs +4542 -0
  172. package/dist/ImageWithFallback-lsg3pdFg.js +4508 -0
  173. package/dist/{LanguageContext-DvUt5jBg.cjs → LanguageContext-B_KFTCzT.cjs} +2 -2
  174. package/dist/{LanguageContext-BwhwC3G2.js → LanguageContext-CS14yCpi.js} +2 -2
  175. package/dist/{XerticaXLogo-DHz5SugF.js → LanguageSelector-B5YfbHra.js} +115 -136
  176. package/dist/{XerticaXLogo-DTee_y8X.cjs → LanguageSelector-D6uacAIM.cjs} +115 -136
  177. package/dist/LayoutContext-B45-e9DI.cjs +93 -0
  178. package/dist/LayoutContext-BAql6ZRY.js +97 -0
  179. package/dist/LayoutContext-Bav3UMEA.js +94 -0
  180. package/dist/LayoutContext-BvK-ggDa.cjs +96 -0
  181. package/dist/{ThemeContext-Bo-W2WZH.js → ThemeContext-BWq9ACPo.js} +8 -13
  182. package/dist/{ThemeContext-ept8jhXI.js → ThemeContext-BXjrgUjW.js} +261 -200
  183. package/dist/{ThemeContext-BblcjQup.cjs → ThemeContext-Bmod0Cg2.cjs} +8 -13
  184. package/dist/ThemeContext-BoH4NLfN.js +734 -0
  185. package/dist/{ThemeContext-BbBNoFTG.js → ThemeContext-C2EwAPDt.js} +2 -2
  186. package/dist/{ThemeContext-U4dEYc6C.cjs → ThemeContext-CGk3KK0k.cjs} +1 -8
  187. package/dist/{ThemeContext-D3LzacmG.js → ThemeContext-CQSo4Iwc.js} +1 -8
  188. package/dist/{ThemeContext-CP3a0jxy.cjs → ThemeContext-j5aGtPky.cjs} +262 -193
  189. package/dist/ThemeContext-r69W20Xg.cjs +733 -0
  190. package/dist/{ThemeContext-Cmr8Ex8H.cjs → ThemeContext-vTjumZeM.cjs} +2 -2
  191. package/dist/{VerifyEmailPage-BRSP-Pwt.cjs → VerifyEmailPage--1Vurewl.cjs} +3 -3
  192. package/dist/{VerifyEmailPage-CbgjOF0v.js → VerifyEmailPage-1WwWczAn.js} +12 -22
  193. package/dist/{VerifyEmailPage-DF2ilhum.cjs → VerifyEmailPage-B4peJjAT.cjs} +356 -334
  194. package/dist/{VerifyEmailPage-CR7kb5df.cjs → VerifyEmailPage-BComraR7.cjs} +12 -22
  195. package/dist/{VerifyEmailPage-u_Dn7t1U.cjs → VerifyEmailPage-Bp1XXl3H.cjs} +4 -4
  196. package/dist/{VerifyEmailPage-CkBYfsNy.cjs → VerifyEmailPage-By3Jf__L.cjs} +4 -4
  197. package/dist/{VerifyEmailPage-Bv8Ah_TK.cjs → VerifyEmailPage-ByerOcm4.cjs} +20 -23
  198. package/dist/{VerifyEmailPage-BE-L9mB7.js → VerifyEmailPage-C0c2e5n0.js} +7 -7
  199. package/dist/{VerifyEmailPage-EhudUdqF.js → VerifyEmailPage-C5TNQTBa.js} +355 -343
  200. package/dist/{VerifyEmailPage-Dt7zgA4w.cjs → VerifyEmailPage-CFLMls1p.cjs} +4 -4
  201. package/dist/{VerifyEmailPage-Cyl55sJb.js → VerifyEmailPage-CJLz3jrn.js} +20 -23
  202. package/dist/VerifyEmailPage-COiyNl1y.js +2825 -0
  203. package/dist/{VerifyEmailPage-DMBh4NM9.cjs → VerifyEmailPage-CYXtbKi3.cjs} +1 -1
  204. package/dist/{VerifyEmailPage-DTtFfC-J.js → VerifyEmailPage-CgMxRb4z.js} +3 -3
  205. package/dist/VerifyEmailPage-CqKsR2v8.js +2827 -0
  206. package/dist/{VerifyEmailPage-Bae2cBXT.cjs → VerifyEmailPage-Cwi3kbol.cjs} +7 -7
  207. package/dist/{VerifyEmailPage-X14vhdyl.js → VerifyEmailPage-DGhuIqkb.js} +4 -4
  208. package/dist/{VerifyEmailPage-BIBOKV7Z.js → VerifyEmailPage-DSBMRHtl.js} +36 -41
  209. package/dist/{VerifyEmailPage-D-FRj5TU.cjs → VerifyEmailPage-De6bQjrz.cjs} +36 -41
  210. package/dist/{VerifyEmailPage-BJjAMUTW.js → VerifyEmailPage-DgIid028.js} +4 -4
  211. package/dist/VerifyEmailPage-DjQKRlUS.cjs +2824 -0
  212. package/dist/{VerifyEmailPage-CdYPSJoO.js → VerifyEmailPage-DvMLZgFt.js} +1 -1
  213. package/dist/{VerifyEmailPage-C_ihbcth.js → VerifyEmailPage-MTD7AG1Z.js} +4 -4
  214. package/dist/VerifyEmailPage-s-1X3LDJ.cjs +2826 -0
  215. package/dist/XerticaOrbe-KL1RBHzw.cjs +1354 -0
  216. package/dist/XerticaOrbe-zwS1p2a8.js +1355 -0
  217. package/dist/XerticaProvider-6btlAlzc.js +17 -0
  218. package/dist/{XerticaProvider-siSt9uG2.js → XerticaProvider-B7EVH-NF.js} +2 -2
  219. package/dist/{XerticaProvider-AbWlr7Af.cjs → XerticaProvider-BIrqfZ-i.cjs} +11 -8
  220. package/dist/XerticaProvider-BNoNOxQ5.cjs +16 -0
  221. package/dist/XerticaProvider-BlY2limY.cjs +38 -0
  222. package/dist/{XerticaProvider-CWgby5mY.js → XerticaProvider-C1DKnvLh.js} +4 -4
  223. package/dist/{XerticaProvider-AChwphCO.cjs → XerticaProvider-CBGc4EMA.cjs} +4 -4
  224. package/dist/{XerticaProvider-BITjgC5p.js → XerticaProvider-CEoWMTxu.js} +2 -2
  225. package/dist/{XerticaProvider-By8q3Roe.cjs → XerticaProvider-CllrbMEJ.cjs} +2 -2
  226. package/dist/{XerticaProvider-B8CaV7xu.cjs → XerticaProvider-D-yNhF94.cjs} +1 -1
  227. package/dist/XerticaProvider-DDuiIcKo.js +39 -0
  228. package/dist/{XerticaProvider-DQtvJU7m.js → XerticaProvider-DYq4JWtg.js} +1 -1
  229. package/dist/{XerticaProvider-CWs6EwNa.js → XerticaProvider-Dt5HEzbQ.js} +10 -10
  230. package/dist/{XerticaProvider-CW9hpCdF.cjs → XerticaProvider-ET0ihewn.cjs} +2 -2
  231. package/dist/XerticaProvider-cI9hSs27.cjs +38 -0
  232. package/dist/XerticaProvider-hSwhNQex.js +39 -0
  233. package/dist/{XerticaXLogo-ChryA6xj.js → XerticaXLogo-B7xQ5dhi.js} +1 -1
  234. package/dist/{XerticaXLogo-CziKMQil.cjs → XerticaXLogo-CQUUjXoH.cjs} +8 -8
  235. package/dist/{XerticaXLogo-DfUvz-lD.js → XerticaXLogo-Cmsp-Eey.js} +9 -9
  236. package/dist/{XerticaXLogo-CFuIlYFH.js → XerticaXLogo-DZbo4vOE.js} +12 -12
  237. package/dist/{XerticaXLogo-8TTzBjHw.cjs → XerticaXLogo-Zw2B276b.cjs} +1 -1
  238. package/dist/{XerticaXLogo-kslQ8Tk_.cjs → XerticaXLogo-bvZSgwGF.cjs} +13 -7
  239. package/dist/alert-dialog-BOje--vD.js +847 -0
  240. package/dist/alert-dialog-BtEuQqrg.cjs +870 -0
  241. package/dist/{alert-dialog-yckpaOpy.cjs → alert-dialog-DSKByiKZ.cjs} +3 -3
  242. package/dist/{alert-dialog-iDe5VE5o.js → alert-dialog-s-vmNkJ_.js} +3 -3
  243. package/dist/breadcrumb-CqJ7bHY5.js +161 -0
  244. package/dist/breadcrumb-m9Hb2_XN.cjs +177 -0
  245. package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +6 -0
  246. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +21 -0
  247. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +49 -0
  248. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +16 -0
  249. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +35 -0
  250. package/dist/components/blocks/audio-player/index.d.ts +1 -0
  251. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +26 -0
  252. package/dist/components/blocks/document-editor/index.d.ts +1 -0
  253. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +41 -0
  254. package/dist/components/blocks/podcast-player/index.d.ts +1 -0
  255. package/dist/components/ui/chart/parts/chart-dashboard.d.ts +113 -0
  256. package/dist/components/ui/chart/parts/chart-metric.d.ts +118 -0
  257. package/dist/components/ui/chart/parts/chart-primitives.d.ts +101 -0
  258. package/dist/components/ui/chart/parts/chart-shared.d.ts +20 -0
  259. package/dist/components/ui/chart/parts/chart-utils.d.ts +12 -0
  260. package/dist/components/ui/chart/parts/index.d.ts +5 -0
  261. package/dist/components/ui/stats-card/stats-card.d.ts +10 -0
  262. package/dist/dropdown-menu-BDB5CmQs.cjs +247 -0
  263. package/dist/dropdown-menu-DQidbKBD.js +231 -0
  264. package/dist/google-maps-loader-BFWp6VPd.js +287 -0
  265. package/dist/google-maps-loader-BKcdgFbu.cjs +312 -0
  266. package/dist/{google-maps-loader-t2IlYBzw.js → google-maps-loader-CTYySAun.js} +4 -0
  267. package/dist/google-maps-loader-CumCNXeG.js +312 -0
  268. package/dist/{google-maps-loader-BqsYL48U.cjs → google-maps-loader-Y-QkD-Li.cjs} +5 -0
  269. package/dist/google-maps-loader-eS3uQ5TA.cjs +287 -0
  270. package/dist/header-Cgy6vYPk.cjs +731 -0
  271. package/dist/header-DRlT4jgI.js +715 -0
  272. package/dist/header-Dux00SI4.cjs +731 -0
  273. package/dist/header-EkGKXPsD.js +715 -0
  274. package/dist/header-WfEywpyc.cjs +731 -0
  275. package/dist/header-tifNQn2U.js +715 -0
  276. package/dist/index-BhapVLVj.js +8 -0
  277. package/dist/{index-D3RLKRAs.cjs → index-COtD8bRW.cjs} +1 -1
  278. package/dist/index-D6fxYEY8.cjs +7 -0
  279. package/dist/index-DAIp0_HK.js +8 -0
  280. package/dist/index-DW5tYe26.js +8 -0
  281. package/dist/index-GA__GvnG.cjs +7 -0
  282. package/dist/index.cjs.js +2 -2
  283. package/dist/index.es.js +2 -2
  284. package/dist/index.umd.js +1043 -470
  285. package/dist/input-2R4loU86.js +127 -0
  286. package/dist/input-DWANSKGb.cjs +145 -0
  287. package/dist/pages.cjs.js +1 -1
  288. package/dist/pages.es.js +1 -1
  289. package/dist/progress-DPtzoVV8.js +175 -0
  290. package/dist/progress-EeaoqqUs.cjs +191 -0
  291. package/dist/rich-text-editor-0mraWT5y.cjs +2376 -0
  292. package/dist/rich-text-editor-B-IkcPD0.js +2874 -0
  293. package/dist/rich-text-editor-B6jMRLzk.cjs +1939 -0
  294. package/dist/rich-text-editor-B8_oYcIR.js +1730 -0
  295. package/dist/rich-text-editor-B9UbSXNb.js +1203 -0
  296. package/dist/rich-text-editor-BYuRBNBU.js +2373 -0
  297. package/dist/rich-text-editor-Bb9pySTs.cjs +2374 -0
  298. package/dist/rich-text-editor-BcL6L3cm.cjs +2374 -0
  299. package/dist/rich-text-editor-BoVZYtTs.cjs +2391 -0
  300. package/dist/rich-text-editor-Bp3zQqMC.js +2954 -0
  301. package/dist/rich-text-editor-CMgSN_w2.js +1189 -0
  302. package/dist/rich-text-editor-CPV1lEPH.cjs +1748 -0
  303. package/dist/rich-text-editor-CeucBdIv.cjs +2971 -0
  304. package/dist/rich-text-editor-CoKqbCtu.cjs +1799 -0
  305. package/dist/rich-text-editor-Cw56T_mB.js +2356 -0
  306. package/dist/rich-text-editor-Cyt8qs2b.js +1921 -0
  307. package/dist/rich-text-editor-D6H84OcX.cjs +1220 -0
  308. package/dist/rich-text-editor-D76gD-QI.js +2328 -0
  309. package/dist/rich-text-editor-DKkokOnA.js +1781 -0
  310. package/dist/rich-text-editor-DNsdpN64.cjs +2359 -0
  311. package/dist/rich-text-editor-DfG8bCyY.js +2358 -0
  312. package/dist/rich-text-editor-Dxjw31Z4.js +2341 -0
  313. package/dist/rich-text-editor-DzP0Epmb.js +2356 -0
  314. package/dist/rich-text-editor-bRkNoeZY.cjs +2891 -0
  315. package/dist/rich-text-editor-lyYE2ZG5.cjs +1207 -0
  316. package/dist/rich-text-editor-skplNlBM.cjs +2345 -0
  317. package/dist/select-Bkbr0f-Z.cjs +162 -0
  318. package/dist/select-CvIVdX2n.js +145 -0
  319. package/dist/{sidebar-CA6_ek3f.js → sidebar-B6SlKZYN.js} +40 -49
  320. package/dist/{sidebar-CmvwjnVb.js → sidebar-BViy8Eeu.js} +17 -9
  321. package/dist/{sidebar-Dz7bd3zP.js → sidebar-BbVIQvlP.js} +1 -1
  322. package/dist/{sidebar-CVUGHOS_.cjs → sidebar-BxGXsDAd.cjs} +16 -8
  323. package/dist/sidebar-CK_0ZQHj.cjs +803 -0
  324. package/dist/sidebar-CUuOvYhK.js +787 -0
  325. package/dist/{sidebar-KIS0C2JH.js → sidebar-CrQDDdcz.js} +24 -33
  326. package/dist/{sidebar-zowjejT2.cjs → sidebar-DAaY8bRU.cjs} +24 -33
  327. package/dist/{sidebar-B3EYhli0.cjs → sidebar-DQj1z3jG.cjs} +227 -269
  328. package/dist/{sidebar-B9NR0lCe.cjs → sidebar-Djn5syhi.cjs} +295 -309
  329. package/dist/{sidebar-CplprZpM.js → sidebar-LluMXfam.js} +227 -269
  330. package/dist/sidebar-_rT7rBMk.js +787 -0
  331. package/dist/{sidebar-BvF5I2Ue.cjs → sidebar-nzPoVHBQ.cjs} +41 -46
  332. package/dist/{sidebar-C5B_LHek.cjs → sidebar-q7P2Godd.cjs} +1 -1
  333. package/dist/slider-Bc5Hd0y1.js +56 -0
  334. package/dist/slider-N7hFFj6X.cjs +73 -0
  335. package/dist/tooltip-Ded96neP.cjs +137 -0
  336. package/dist/tooltip-HDOoD2-0.js +120 -0
  337. package/dist/ui.cjs.js +1 -1
  338. package/dist/ui.es.js +1 -1
  339. package/dist/use-audio-player-B31J-aqh.cjs +187 -0
  340. package/dist/use-audio-player-BkmEmj8Q.js +185 -0
  341. package/dist/use-audio-player-CLFTWFW1.cjs +184 -0
  342. package/dist/use-audio-player-CLLn00I6.js +188 -0
  343. package/dist/{use-audio-player-Dn1NR9xN.cjs → use-audio-player-NKsWyjWu.cjs} +7 -3
  344. package/dist/{use-audio-player-Bkh23vQ3.js → use-audio-player-nv8ZSGa1.js} +7 -3
  345. package/dist/use-file-upload-BcjEo2S5.js +404 -0
  346. package/dist/use-file-upload-CRJR68Tj.cjs +403 -0
  347. package/dist/use-mobile-B0hNy_Y6.cjs +4303 -0
  348. package/dist/use-mobile-BXuYROXM.js +4202 -0
  349. package/dist/use-mobile-Bbd51ASU.cjs +4392 -0
  350. package/dist/use-mobile-Bk6CX-TC.js +4359 -0
  351. package/dist/use-mobile-BvYdisLP.js +4202 -0
  352. package/dist/use-mobile-BzuxjzNX.cjs +4392 -0
  353. package/dist/use-mobile-CG2-SdXV.cjs +4235 -0
  354. package/dist/use-mobile-CKb5pqTs.js +4269 -0
  355. package/dist/use-mobile-CYuAuGDl.js +4202 -0
  356. package/dist/use-mobile-CaENcqm-.js +4508 -0
  357. package/dist/use-mobile-CbrYgJGJ.js +4203 -0
  358. package/dist/use-mobile-Cd4xPrKq.cjs +46 -0
  359. package/dist/use-mobile-DMOvImGQ.cjs +4542 -0
  360. package/dist/use-mobile-DRB3BQgD.cjs +4235 -0
  361. package/dist/use-mobile-DZvv7QMR.js +4359 -0
  362. package/dist/use-mobile-DdI_TXam.cjs +4235 -0
  363. package/dist/use-mobile-DlceKf8a.js +4359 -0
  364. package/dist/use-mobile-DsOnow1o.cjs +4236 -0
  365. package/dist/use-mobile-Kcj6jSnK.cjs +4392 -0
  366. package/dist/use-mobile-bnKcua_i.js +4202 -0
  367. package/dist/use-mobile-j4w2Jrf1.js +30 -0
  368. package/dist/use-mobile-ncXBeE2z.cjs +4235 -0
  369. package/dist/use-rich-text-editor-DjiddBGv.js +282 -0
  370. package/dist/use-rich-text-editor-lpeswbCs.cjs +281 -0
  371. package/dist/xertica-assistant-BdiZag0h.js +2187 -0
  372. package/dist/xertica-assistant-CrgTb6Hs.cjs +2155 -0
  373. package/dist/xertica-assistant-DCsnQyi5.js +2156 -0
  374. package/dist/xertica-assistant-DUBpmEgo.cjs +2186 -0
  375. package/dist/{xertica-assistant-Bj3vBCq_.cjs → xertica-assistant-V_IdW4WF.cjs} +27 -9
  376. package/dist/{xertica-assistant-BMqdyRVi.js → xertica-assistant-ciJaWqm1.js} +28 -10
  377. package/dist/{xertica-assistant-B1IaHXnB.cjs → xertica-assistant-dyP7KHM5.cjs} +533 -392
  378. package/dist/{xertica-assistant-DPsESB6t.js → xertica-assistant-yX1CFBBo.js} +535 -394
  379. package/dist/xertica-ui.css +2 -2
  380. package/docs/architecture-improvements.md +456 -456
  381. package/docs/architecture.md +312 -312
  382. package/docs/components/assistant.md +428 -428
  383. package/docs/components/branding.md +252 -252
  384. package/docs/components/card-patterns.md +447 -447
  385. package/docs/components/error-boundary.md +201 -201
  386. package/docs/components/hooks.md +432 -432
  387. package/docs/components/language-selector.md +176 -176
  388. package/docs/components/pages.md +323 -323
  389. package/docs/components/stats-card.md +20 -2
  390. package/docs/doc-audit.md +244 -244
  391. package/docs/getting-started.md +616 -616
  392. package/docs/guidelines.md +330 -330
  393. package/docs/i18n.md +480 -480
  394. package/docs/installation.md +268 -268
  395. package/docs/llms.md +295 -295
  396. package/docs/state-management.md +289 -289
  397. package/guidelines/Guidelines.md +409 -409
  398. package/llms-compact.txt +1 -1
  399. package/llms-full.txt +11553 -7133
  400. package/llms.txt +1 -1
  401. package/package.json +219 -219
  402. package/styles/xertica/base.css +90 -90
  403. package/templates/.prettierignore +4 -4
  404. package/templates/.prettierrc +10 -10
  405. package/templates/CLAUDE.md +180 -180
  406. package/templates/guidelines/Guidelines.md +577 -577
  407. package/templates/package.json +69 -69
  408. package/templates/src/app/App.tsx +46 -46
  409. package/templates/src/app/components/AuthGuard.tsx +131 -131
  410. package/templates/src/features/assistant/data/mock.ts +75 -75
  411. package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
  412. package/templates/src/features/assistant/index.ts +5 -5
  413. package/templates/src/features/auth/ui/AuthPageShell.tsx +32 -32
  414. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  415. package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
  416. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +183 -183
  417. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
  418. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +80 -80
  419. package/templates/src/features/home/data/mock.ts +41 -41
  420. package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
  421. package/templates/src/features/home/index.ts +11 -11
  422. package/templates/src/features/home/ui/HomeContent.tsx +117 -117
  423. package/templates/src/features/template/ui/CrudTemplate.tsx +112 -112
  424. package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
  425. package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
  426. package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
  427. package/templates/src/features/template/ui/TemplateContent.tsx +1322 -1322
  428. package/templates/src/i18n.ts +124 -124
  429. package/templates/src/locales/en/common.json +21 -21
  430. package/templates/src/locales/en/components/activityCard.json +10 -10
  431. package/templates/src/locales/en/components/assistant.json +119 -119
  432. package/templates/src/locales/en/components/media.json +29 -29
  433. package/templates/src/locales/en/components/notificationCard.json +5 -5
  434. package/templates/src/locales/en/components/profileCard.json +8 -8
  435. package/templates/src/locales/en/components/projectCard.json +10 -10
  436. package/templates/src/locales/en/components/sidebar.json +14 -14
  437. package/templates/src/locales/en/components/stats.json +8 -8
  438. package/templates/src/locales/en/components/team.json +14 -14
  439. package/templates/src/locales/en/errors.json +9 -9
  440. package/templates/src/locales/en/languageSelector.json +7 -7
  441. package/templates/src/locales/en/nav.json +6 -6
  442. package/templates/src/locales/en/pages/crudTemplate.json +25 -25
  443. package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
  444. package/templates/src/locales/en/pages/forgotPassword.json +10 -10
  445. package/templates/src/locales/en/pages/formTemplate.json +16 -16
  446. package/templates/src/locales/en/pages/home.json +7 -7
  447. package/templates/src/locales/en/pages/login.json +15 -15
  448. package/templates/src/locales/en/pages/loginTemplate.json +9 -9
  449. package/templates/src/locales/en/pages/resetPassword.json +18 -18
  450. package/templates/src/locales/en/pages/templates.json +317 -317
  451. package/templates/src/locales/en/pages/verifyEmail.json +12 -12
  452. package/templates/src/locales/en/themeToggle.json +6 -6
  453. package/templates/src/locales/es/common.json +21 -21
  454. package/templates/src/locales/es/components/activityCard.json +10 -10
  455. package/templates/src/locales/es/components/assistant.json +119 -119
  456. package/templates/src/locales/es/components/media.json +29 -29
  457. package/templates/src/locales/es/components/notificationCard.json +5 -5
  458. package/templates/src/locales/es/components/profileCard.json +8 -8
  459. package/templates/src/locales/es/components/projectCard.json +10 -10
  460. package/templates/src/locales/es/components/sidebar.json +14 -14
  461. package/templates/src/locales/es/components/stats.json +8 -8
  462. package/templates/src/locales/es/components/team.json +14 -14
  463. package/templates/src/locales/es/errors.json +9 -9
  464. package/templates/src/locales/es/languageSelector.json +7 -7
  465. package/templates/src/locales/es/nav.json +6 -6
  466. package/templates/src/locales/es/pages/crudTemplate.json +25 -25
  467. package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
  468. package/templates/src/locales/es/pages/forgotPassword.json +10 -10
  469. package/templates/src/locales/es/pages/formTemplate.json +16 -16
  470. package/templates/src/locales/es/pages/home.json +7 -7
  471. package/templates/src/locales/es/pages/login.json +15 -15
  472. package/templates/src/locales/es/pages/loginTemplate.json +9 -9
  473. package/templates/src/locales/es/pages/resetPassword.json +18 -18
  474. package/templates/src/locales/es/pages/templates.json +317 -317
  475. package/templates/src/locales/es/pages/verifyEmail.json +12 -12
  476. package/templates/src/locales/es/themeToggle.json +6 -6
  477. package/templates/src/locales/pt-BR/common.json +21 -21
  478. package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
  479. package/templates/src/locales/pt-BR/components/assistant.json +119 -119
  480. package/templates/src/locales/pt-BR/components/media.json +29 -29
  481. package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
  482. package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
  483. package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
  484. package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
  485. package/templates/src/locales/pt-BR/components/stats.json +8 -8
  486. package/templates/src/locales/pt-BR/components/team.json +14 -14
  487. package/templates/src/locales/pt-BR/errors.json +9 -9
  488. package/templates/src/locales/pt-BR/languageSelector.json +7 -7
  489. package/templates/src/locales/pt-BR/nav.json +6 -6
  490. package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
  491. package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
  492. package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
  493. package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
  494. package/templates/src/locales/pt-BR/pages/home.json +7 -7
  495. package/templates/src/locales/pt-BR/pages/login.json +15 -15
  496. package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
  497. package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
  498. package/templates/src/locales/pt-BR/pages/templates.json +317 -317
  499. package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
  500. package/templates/src/locales/pt-BR/themeToggle.json +6 -6
  501. package/templates/src/pages/AssistantPage.tsx +470 -470
  502. package/templates/src/pages/HomePage.tsx +53 -53
  503. package/templates/src/shared/error-boundary.tsx +150 -150
  504. package/templates/src/shared/error-fallbacks.tsx +222 -222
  505. package/templates/vite.config.js +20 -20
  506. package/templates/vite.config.ts +55 -55
  507. package/dist/ThemeContext-CpqYShLq.cjs +0 -324
  508. package/dist/ThemeContext-Du2nE1PL.js +0 -325
  509. package/dist/ThemeContext-GeEBTJ3q.cjs +0 -1621
  510. package/dist/ThemeContext-JyLK9B1o.js +0 -1622
  511. package/dist/VerifyEmailPage-BiRm7Nh4.cjs +0 -3213
  512. package/dist/VerifyEmailPage-Bvfv8HVQ.js +0 -3214
  513. package/dist/VerifyEmailPage-hdB8JQGv.cjs +0 -3213
  514. package/dist/VerifyEmailPage-vYHbYK3q.js +0 -3214
  515. package/dist/XerticaProvider-CUYJZc32.js +0 -49
  516. package/dist/XerticaProvider-CjQAQPcn.cjs +0 -48
  517. package/dist/XerticaProvider-D5lLumH-.js +0 -49
  518. package/dist/XerticaProvider-qQUDop71.cjs +0 -48
  519. package/dist/XerticaXLogo-BWaag64t.js +0 -252
  520. package/dist/XerticaXLogo-CU-U-GP4.cjs +0 -251
  521. package/dist/index-CkTUgOwX.js +0 -8
  522. package/dist/sidebar-OTO_up7Z.js +0 -801
  523. package/dist/{rich-text-editor-BmsjY03B.js → rich-text-editor-DgF8s7xW.js} +26 -26
  524. package/dist/{rich-text-editor-GS2kpTAK.cjs → rich-text-editor-mWoaSCE4.cjs} +26 -26
@@ -0,0 +1,2827 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import React__default, { useState, useMemo, useRef, useCallback, useEffect } from "react";
3
+ import { B as Button, c as cn } from "./button-qkz7Icqf.js";
4
+ import { I as Input, S as ScrollArea } from "./input-D-6IsAca.js";
5
+ import { I as ImageWithFallback, L as Label, P as PageHeader, M as Map, C as Checkbox, S as Separator, T as Tabs, p as TabsList, q as TabsTrigger, o as TabsContent, n as Switch, R as RadioGroup, m as RadioGroupItem, A as AlertDialog, j as AlertDialogTrigger, c as AlertDialogContent, f as AlertDialogHeader, i as AlertDialogTitle, d as AlertDialogDescription, e as AlertDialogFooter, b as AlertDialogCancel, a as AlertDialogAction } from "./alert-dialog-s-vmNkJ_.js";
6
+ import { L as LanguageSelector, X as XerticaLogo } from "./XerticaXLogo-fAJMy3H4.js";
7
+ import { ArrowLeft, Lock, Home, FileText, CheckCircle2, AlertCircle, Coffee, ShoppingBag, Landmark, Hotel, Utensils, MapPin, Filter, X, MousePointer2, Circle, Square, Hexagon, Undo, Trash2, Save, Check, Pencil, Layers, Settings, Users, Mail, Phone, Search, User, Calendar, Bell, FileEdit, ArrowRightLeft, Clock, Plus, Archive, Map as Map$1 } from "lucide-react";
8
+ import { useNavigate, useLocation, Link } from "react-router-dom";
9
+ import { H as Header, S as Sidebar } from "./sidebar-BViy8Eeu.js";
10
+ import { C as Card, e as CardHeader, f as CardTitle, B as Badge, b as CardContent, d as CardFooter, c as CardDescription, P as Progress } from "./progress-DPtzoVV8.js";
11
+ import { a as useOptionalLayout } from "./LayoutContext-dbQvdC4O.js";
12
+ import { X as XerticaAssistant, g as gerarResposta } from "./xertica-assistant-BdiZag0h.js";
13
+ import { D as Dialog, j as DialogContent, m as DialogHeader, p as DialogTitle, k as DialogDescription, A as Alert, b as AlertTitle, a as AlertDescription, H as Textarea, T as Table, F as TableHeader, G as TableRow, B as TableHead, w as TableBody, y as TableCell, q as DialogTrigger, l as DialogFooter } from "./rich-text-editor-CMgSN_w2.js";
14
+ import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from "./select-En8DkoaQ.js";
15
+ import { S as Slider } from "./slider-C0JKA9k3.js";
16
+ import { toast } from "sonner";
17
+ function ForgotPasswordPage() {
18
+ const navigate = useNavigate();
19
+ const [email, setEmail] = useState("");
20
+ const [isLoading, setIsLoading] = useState(false);
21
+ const handleSubmit = async (e) => {
22
+ e.preventDefault();
23
+ setIsLoading(true);
24
+ await new Promise((resolve) => setTimeout(resolve, 1500));
25
+ navigate("/verify-email", { state: { email } });
26
+ setIsLoading(false);
27
+ };
28
+ const handleSocialLogin = (_provider) => {
29
+ };
30
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
31
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
32
+ /* @__PURE__ */ jsx(
33
+ ImageWithFallback,
34
+ {
35
+ src: "https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1200&h=800&fit=crop&auto=format",
36
+ alt: "Segurança e tecnologia",
37
+ className: "absolute inset-0 w-full h-full object-cover"
38
+ }
39
+ ),
40
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
41
+ ] }),
42
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
43
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
44
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
45
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
46
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
47
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
48
+ XerticaLogo,
49
+ {
50
+ className: "h-12 w-auto text-primary dark:text-foreground",
51
+ variant: "theme"
52
+ }
53
+ ) }),
54
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Recuperar senha" }),
55
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: "Digite seu e-mail e enviaremos as instruções para redefinir sua senha" })
56
+ ] }),
57
+ /* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
58
+ /* @__PURE__ */ jsxs("div", { className: "form-group space-y-2", children: [
59
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email", className: "form-label", children: "E-mail" }),
60
+ /* @__PURE__ */ jsx(
61
+ Input,
62
+ {
63
+ id: "email",
64
+ name: "email",
65
+ type: "email",
66
+ required: true,
67
+ className: "w-full",
68
+ placeholder: "seu@email.com",
69
+ value: email,
70
+ onChange: (e) => setEmail(e.target.value)
71
+ }
72
+ )
73
+ ] }),
74
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
75
+ /* @__PURE__ */ jsx(
76
+ Button,
77
+ {
78
+ type: "submit",
79
+ className: "w-full",
80
+ disabled: isLoading,
81
+ children: isLoading ? "Enviando..." : "Enviar instruções"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ jsxs(
85
+ Button,
86
+ {
87
+ type: "button",
88
+ onClick: () => navigate("/login"),
89
+ variant: "outline",
90
+ className: "w-full text-muted-foreground hover:text-foreground",
91
+ children: [
92
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4 mr-2" }),
93
+ "Voltar para o login"
94
+ ]
95
+ }
96
+ )
97
+ ] })
98
+ ] }),
99
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
100
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
101
+ /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
102
+ ] }),
103
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
104
+ /* @__PURE__ */ jsxs(
105
+ Button,
106
+ {
107
+ type: "button",
108
+ variant: "outline",
109
+ className: "w-full justify-center",
110
+ onClick: () => handleSocialLogin(),
111
+ children: [
112
+ /* @__PURE__ */ jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
113
+ /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
114
+ /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
115
+ /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
116
+ /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
117
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
118
+ ] }),
119
+ /* @__PURE__ */ jsx("span", { children: "Entrar com Google" })
120
+ ]
121
+ }
122
+ ),
123
+ /* @__PURE__ */ jsxs(
124
+ Button,
125
+ {
126
+ type: "button",
127
+ variant: "outline",
128
+ className: "w-full justify-center",
129
+ onClick: () => handleSocialLogin(),
130
+ children: [
131
+ /* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
132
+ /* @__PURE__ */ jsx("span", { children: "Entrar com MT Login" })
133
+ ]
134
+ }
135
+ ),
136
+ /* @__PURE__ */ jsx(
137
+ Button,
138
+ {
139
+ type: "button",
140
+ variant: "outline",
141
+ className: "w-full justify-center font-normal",
142
+ onClick: () => handleSocialLogin(),
143
+ children: /* @__PURE__ */ jsxs("span", { children: [
144
+ "Entrar com ",
145
+ /* @__PURE__ */ jsx("strong", { className: "font-semibold", children: "gov.br" })
146
+ ] })
147
+ }
148
+ )
149
+ ] })
150
+ ] })
151
+ ] })
152
+ ] });
153
+ }
154
+ const routes = [
155
+ {
156
+ path: "/home",
157
+ label: "Home",
158
+ icon: Home
159
+ },
160
+ {
161
+ path: "/template",
162
+ label: "Template",
163
+ icon: FileText
164
+ }
165
+ ];
166
+ const getRouteByPath = (path) => {
167
+ return routes.find((route) => route.path === path);
168
+ };
169
+ const SIDEBAR_COLLAPSED_WIDTH = 80;
170
+ function HomeContent({ user, onLogout, onSettings }) {
171
+ const layout = useOptionalLayout();
172
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? false;
173
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 256;
174
+ const location = useLocation();
175
+ const navigate = useNavigate();
176
+ const labelTranslations = {
177
+ "home": "Início",
178
+ "template": "Template"
179
+ };
180
+ const currentRoute = getRouteByPath(location.pathname);
181
+ (currentRoute == null ? void 0 : currentRoute.label) ? labelTranslations[currentRoute.label.toLowerCase()] || currentRoute.label : "Início";
182
+ return /* @__PURE__ */ jsxs(
183
+ "div",
184
+ {
185
+ style: {
186
+ paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : SIDEBAR_COLLAPSED_WIDTH
187
+ },
188
+ className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
189
+ children: [
190
+ /* @__PURE__ */ jsx(
191
+ Header,
192
+ {
193
+ showThemeToggle: true,
194
+ showLanguageSelector: true,
195
+ breadcrumbs: [
196
+ { label: "Design System", href: "/home" },
197
+ { label: "Início" }
198
+ ],
199
+ renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props })
200
+ }
201
+ ),
202
+ /* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsx("div", { className: "p-2 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
203
+ /* @__PURE__ */ jsx(
204
+ PageHeader,
205
+ {
206
+ title: "Bem-vindo ao Design System!",
207
+ subtitle: "Sua plataforma inteligente para automação e análise de dados"
208
+ }
209
+ ),
210
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: /* @__PURE__ */ jsxs(Card, { className: "hover:shadow-xl transition-shadow duration-200 flex flex-col h-full", children: [
211
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
212
+ /* @__PURE__ */ jsx("div", { className: "p-2 bg-[var(--chart-2)]/20 rounded-[var(--radius)]", children: /* @__PURE__ */ jsx(FileText, { className: "w-6 h-6 text-[var(--chart-2)]" }) }),
213
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
214
+ /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "Template CLI" }),
215
+ /* @__PURE__ */ jsx(Badge, { variant: "default", className: "text-xs", children: "Novo" })
216
+ ] })
217
+ ] }) }),
218
+ /* @__PURE__ */ jsx(CardContent, { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Página de template pronta para uso CLI com todos os componentes configurados." }) }),
219
+ /* @__PURE__ */ jsx(CardFooter, { children: /* @__PURE__ */ jsx(
220
+ Button,
221
+ {
222
+ variant: "outline",
223
+ className: "w-full",
224
+ onClick: () => navigate("/template"),
225
+ children: "Visualizar"
226
+ }
227
+ ) })
228
+ ] }) })
229
+ ] }) }) }) })
230
+ ]
231
+ }
232
+ );
233
+ }
234
+ const richSuggestions = [
235
+ { id: "chart-1", text: "Ver análise de desempenho" },
236
+ { id: "table-1", text: "Gerar relatório do projeto" },
237
+ { id: "doc-1", text: "Criar documento de requisitos" },
238
+ { id: "pod-1", text: "Gerar podcast de resumo diário" }
239
+ ];
240
+ const feedbackOptions = [
241
+ "Não era o que eu estava procurando",
242
+ "Informações incorretas",
243
+ "Resposta incompleta"
244
+ ];
245
+ function HomePage({ user, onLogout }) {
246
+ const layout = useOptionalLayout();
247
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React__default.useState(false);
248
+ const [localAssistantExpanded, setLocalAssistantExpanded] = React__default.useState(false);
249
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
250
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
251
+ const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
252
+ const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
253
+ const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
254
+ const location = useLocation();
255
+ const navigate = useNavigate();
256
+ return /* @__PURE__ */ jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
257
+ /* @__PURE__ */ jsx(
258
+ Sidebar,
259
+ {
260
+ expanded: sidebarExpanded,
261
+ width: sidebarWidth,
262
+ onToggle: toggleSidebar,
263
+ user: {
264
+ ...user,
265
+ name: "Ariel Santos",
266
+ avatar: "https://github.com/shadcn.png"
267
+ },
268
+ onLogout,
269
+ onSettingsClick: () => navigate("/settings"),
270
+ location,
271
+ navigate,
272
+ routes
273
+ }
274
+ ),
275
+ /* @__PURE__ */ jsx(
276
+ HomeContent,
277
+ {
278
+ user,
279
+ onLogout,
280
+ onSettings: () => navigate("/settings")
281
+ }
282
+ ),
283
+ /* @__PURE__ */ jsx(
284
+ XerticaAssistant,
285
+ {
286
+ isExpanded: assistenteExpanded,
287
+ onToggle: toggleAssistente,
288
+ defaultTab: "chat",
289
+ demoMode: true,
290
+ responseGenerator: gerarResposta,
291
+ richSuggestions,
292
+ feedbackOptions,
293
+ onEvaluation: () => {
294
+ }
295
+ }
296
+ )
297
+ ] });
298
+ }
299
+ function LoginPage({ onLogin }) {
300
+ const navigate = useNavigate();
301
+ const [email, setEmail] = useState("");
302
+ const [password, setPassword] = useState("");
303
+ const [isLoading, setIsLoading] = useState(false);
304
+ const [error, setError] = useState("");
305
+ const handleSubmit = async (e) => {
306
+ e.preventDefault();
307
+ setError("");
308
+ setIsLoading(true);
309
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
310
+ const success = onLogin(email, password);
311
+ if (!success) {
312
+ setError("Por favor, preencha todos os campos");
313
+ }
314
+ setIsLoading(false);
315
+ };
316
+ const handleSocialLogin = (_provider) => {
317
+ onLogin("social@user.com", "social-auth");
318
+ };
319
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
320
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
321
+ /* @__PURE__ */ jsx(
322
+ ImageWithFallback,
323
+ {
324
+ src: "https://images.unsplash.com/photo-1551434678-e076c223a692?w=1200&h=800&fit=crop&auto=format",
325
+ alt: "Equipe trabalhando com tecnologia",
326
+ className: "absolute inset-0 w-full h-full object-cover"
327
+ }
328
+ ),
329
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
330
+ ] }),
331
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
332
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
333
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
334
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
335
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
336
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
337
+ XerticaLogo,
338
+ {
339
+ className: "h-12 w-auto text-primary dark:text-foreground",
340
+ variant: "theme"
341
+ }
342
+ ) }),
343
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Acesse sua conta" })
344
+ ] }),
345
+ /* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
346
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
347
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email", children: "E-mail" }),
348
+ /* @__PURE__ */ jsx(
349
+ Input,
350
+ {
351
+ id: "email",
352
+ name: "email",
353
+ type: "email",
354
+ required: true,
355
+ className: "w-full",
356
+ placeholder: "seu@email.com",
357
+ value: email,
358
+ onChange: (e) => setEmail(e.target.value)
359
+ }
360
+ )
361
+ ] }),
362
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
363
+ /* @__PURE__ */ jsx(Label, { htmlFor: "password", children: "Senha" }),
364
+ /* @__PURE__ */ jsx(
365
+ Input,
366
+ {
367
+ id: "password",
368
+ name: "password",
369
+ type: "password",
370
+ required: true,
371
+ className: "w-full",
372
+ placeholder: "••••••••",
373
+ value: password,
374
+ onChange: (e) => setPassword(e.target.value)
375
+ }
376
+ )
377
+ ] }),
378
+ error && /* @__PURE__ */ jsx("div", { className: "text-destructive text-sm text-center", children: error }),
379
+ /* @__PURE__ */ jsx(
380
+ Button,
381
+ {
382
+ type: "submit",
383
+ className: "w-full",
384
+ disabled: isLoading,
385
+ children: isLoading ? "Entrando..." : "Entrar"
386
+ }
387
+ ),
388
+ /* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(
389
+ "button",
390
+ {
391
+ type: "button",
392
+ onClick: () => navigate("/forgot-password"),
393
+ className: "text-sm text-primary hover:opacity-80 transition-colors",
394
+ children: "Esqueceu sua senha?"
395
+ }
396
+ ) })
397
+ ] }),
398
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
399
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
400
+ /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
401
+ ] }),
402
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
403
+ /* @__PURE__ */ jsxs(
404
+ Button,
405
+ {
406
+ type: "button",
407
+ variant: "outline",
408
+ className: "w-full justify-center",
409
+ onClick: () => handleSocialLogin(),
410
+ children: [
411
+ /* @__PURE__ */ jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
412
+ /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
413
+ /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
414
+ /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
415
+ /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
416
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
417
+ ] }),
418
+ /* @__PURE__ */ jsx("span", { children: "Entrar com Google" })
419
+ ]
420
+ }
421
+ ),
422
+ /* @__PURE__ */ jsxs(
423
+ Button,
424
+ {
425
+ type: "button",
426
+ variant: "outline",
427
+ className: "w-full justify-center",
428
+ onClick: () => handleSocialLogin(),
429
+ children: [
430
+ /* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
431
+ /* @__PURE__ */ jsx("span", { children: "Entrar com MT Login" })
432
+ ]
433
+ }
434
+ ),
435
+ /* @__PURE__ */ jsx(
436
+ Button,
437
+ {
438
+ type: "button",
439
+ variant: "outline",
440
+ className: "w-full justify-center font-normal",
441
+ onClick: () => handleSocialLogin(),
442
+ children: /* @__PURE__ */ jsxs("span", { children: [
443
+ "Entrar com ",
444
+ /* @__PURE__ */ jsx("strong", { className: "font-semibold", children: "gov.br" })
445
+ ] })
446
+ }
447
+ )
448
+ ] })
449
+ ] })
450
+ ] })
451
+ ] });
452
+ }
453
+ function ResetPasswordPage() {
454
+ const navigate = useNavigate();
455
+ const [password, setPassword] = useState("");
456
+ const [confirmPassword, setConfirmPassword] = useState("");
457
+ const [isLoading, setIsLoading] = useState(false);
458
+ const [error, setError] = useState("");
459
+ const [passwordStrength, setPasswordStrength] = useState(null);
460
+ const checkPasswordStrength = (pwd) => {
461
+ if (pwd.length === 0) {
462
+ setPasswordStrength(null);
463
+ return;
464
+ }
465
+ if (pwd.length < 6) {
466
+ setPasswordStrength("weak");
467
+ } else if (pwd.length < 10) {
468
+ setPasswordStrength("medium");
469
+ } else {
470
+ setPasswordStrength("strong");
471
+ }
472
+ };
473
+ const handlePasswordChange = (value) => {
474
+ setPassword(value);
475
+ checkPasswordStrength(value);
476
+ setError("");
477
+ };
478
+ const handleSubmit = async (e) => {
479
+ e.preventDefault();
480
+ setError("");
481
+ if (password.length < 6) {
482
+ setError("A senha deve ter pelo menos 6 caracteres");
483
+ return;
484
+ }
485
+ if (password !== confirmPassword) {
486
+ setError("As senhas não coincidem");
487
+ return;
488
+ }
489
+ setIsLoading(true);
490
+ await new Promise((resolve) => setTimeout(resolve, 1500));
491
+ navigate("/login", { state: { resetSuccess: true } });
492
+ setIsLoading(false);
493
+ };
494
+ const getStrengthColor = () => {
495
+ switch (passwordStrength) {
496
+ case "weak":
497
+ return "text-destructive";
498
+ case "medium":
499
+ return "text-[var(--chart-3)]";
500
+ case "strong":
501
+ return "text-[var(--chart-2)]";
502
+ default:
503
+ return "text-muted-foreground";
504
+ }
505
+ };
506
+ const getStrengthText = () => {
507
+ switch (passwordStrength) {
508
+ case "weak":
509
+ return "Senha fraca";
510
+ case "medium":
511
+ return "Senha média";
512
+ case "strong":
513
+ return "Senha forte";
514
+ default:
515
+ return "";
516
+ }
517
+ };
518
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
519
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
520
+ /* @__PURE__ */ jsx(
521
+ ImageWithFallback,
522
+ {
523
+ src: "https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop&auto=format",
524
+ alt: "Segurança e proteção",
525
+ className: "absolute inset-0 w-full h-full object-cover"
526
+ }
527
+ ),
528
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
529
+ ] }),
530
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
531
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
532
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
533
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
534
+ /* @__PURE__ */ jsxs(
535
+ "button",
536
+ {
537
+ onClick: () => navigate("/login"),
538
+ className: "flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",
539
+ children: [
540
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4" }),
541
+ /* @__PURE__ */ jsx("span", { className: "text-small", children: "Voltar para o login" })
542
+ ]
543
+ }
544
+ ),
545
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
546
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
547
+ XerticaLogo,
548
+ {
549
+ className: "h-12 w-auto text-primary dark:text-foreground",
550
+ variant: "theme"
551
+ }
552
+ ) }),
553
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Redefinir senha" }),
554
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: "Crie uma nova senha segura para sua conta" })
555
+ ] }),
556
+ /* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
557
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
558
+ /* @__PURE__ */ jsx(Label, { htmlFor: "password", children: "Nova senha" }),
559
+ /* @__PURE__ */ jsx(
560
+ Input,
561
+ {
562
+ id: "password",
563
+ name: "password",
564
+ type: "password",
565
+ required: true,
566
+ className: "w-full",
567
+ placeholder: "••••••••",
568
+ value: password,
569
+ onChange: (e) => handlePasswordChange(e.target.value)
570
+ }
571
+ ),
572
+ passwordStrength && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
573
+ /* @__PURE__ */ jsx("div", { className: "flex-1 h-1 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
574
+ "div",
575
+ {
576
+ className: `h-full transition-all duration-300 ${passwordStrength === "weak" ? "w-1/3 bg-destructive" : passwordStrength === "medium" ? "w-2/3 bg-[var(--chart-3)]" : "w-full bg-[var(--chart-2)]"}`
577
+ }
578
+ ) }),
579
+ /* @__PURE__ */ jsx("span", { className: `text-small ${getStrengthColor()}`, children: getStrengthText() })
580
+ ] })
581
+ ] }),
582
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
583
+ /* @__PURE__ */ jsx(Label, { htmlFor: "confirmPassword", children: "Confirmar senha" }),
584
+ /* @__PURE__ */ jsx(
585
+ Input,
586
+ {
587
+ id: "confirmPassword",
588
+ name: "confirmPassword",
589
+ type: "password",
590
+ required: true,
591
+ className: "w-full",
592
+ placeholder: "••••••••",
593
+ value: confirmPassword,
594
+ onChange: (e) => {
595
+ setConfirmPassword(e.target.value);
596
+ setError("");
597
+ }
598
+ }
599
+ )
600
+ ] }),
601
+ /* @__PURE__ */ jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-2", children: [
602
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: "Requisitos de senha:" }),
603
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
604
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
605
+ /* @__PURE__ */ jsx(
606
+ CheckCircle2,
607
+ {
608
+ className: `w-4 h-4 ${password.length >= 6 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
609
+ }
610
+ ),
611
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "Mínimo de 6 caracteres" })
612
+ ] }),
613
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
614
+ /* @__PURE__ */ jsx(
615
+ CheckCircle2,
616
+ {
617
+ className: `w-4 h-4 ${password === confirmPassword && password.length > 0 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
618
+ }
619
+ ),
620
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "As senhas coincidem" })
621
+ ] })
622
+ ] })
623
+ ] }),
624
+ error && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-destructive bg-destructive/10 rounded-[var(--radius)] p-3", children: [
625
+ /* @__PURE__ */ jsx(AlertCircle, { className: "w-4 h-4 flex-shrink-0" }),
626
+ /* @__PURE__ */ jsx("span", { className: "text-sm", children: error })
627
+ ] }),
628
+ /* @__PURE__ */ jsx(
629
+ Button,
630
+ {
631
+ type: "submit",
632
+ className: "w-full",
633
+ disabled: isLoading,
634
+ children: isLoading ? "Redefinindo..." : "Redefinir senha"
635
+ }
636
+ )
637
+ ] })
638
+ ] })
639
+ ] })
640
+ ] });
641
+ }
642
+ function createLucideIconSvg(iconName) {
643
+ const iconPaths = {
644
+ 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>',
645
+ 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>',
646
+ 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>',
647
+ 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>',
648
+ 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>'
649
+ };
650
+ const path = iconPaths[iconName] || "";
651
+ 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>`;
652
+ }
653
+ const markerGroups = {
654
+ restaurant: {
655
+ id: "restaurant",
656
+ name: "Restaurantes",
657
+ color: "var(--destructive)",
658
+ // red
659
+ iconColor: "#FFFFFF",
660
+ // white para contraste
661
+ iconName: "utensils",
662
+ icon: Utensils
663
+ },
664
+ hotel: {
665
+ id: "hotel",
666
+ name: "Hotéis",
667
+ color: "var(--info)",
668
+ // blue
669
+ iconColor: "#FFFFFF",
670
+ iconName: "hotel",
671
+ icon: Hotel
672
+ },
673
+ landmark: {
674
+ id: "landmark",
675
+ name: "Pontos Turísticos",
676
+ color: "var(--success)",
677
+ // green
678
+ iconColor: "#FFFFFF",
679
+ iconName: "landmark",
680
+ icon: Landmark
681
+ },
682
+ shopping: {
683
+ id: "shopping",
684
+ name: "Compras",
685
+ color: "var(--warning)",
686
+ // orange
687
+ iconColor: "#FFFFFF",
688
+ iconName: "shopping",
689
+ icon: ShoppingBag
690
+ },
691
+ cafe: {
692
+ id: "cafe",
693
+ name: "Cafeterias",
694
+ color: "var(--primary)",
695
+ // purple
696
+ iconColor: "#FFFFFF",
697
+ iconName: "coffee",
698
+ icon: Coffee
699
+ }
700
+ };
701
+ const sampleLocations = [
702
+ // Restaurantes
703
+ {
704
+ position: { lat: -23.5505, lng: -46.6333 },
705
+ title: "Restaurante Italiano",
706
+ info: "Melhor pizza da cidade",
707
+ group: "restaurant"
708
+ },
709
+ {
710
+ position: { lat: -23.5485, lng: -46.635 },
711
+ title: "Sushi Bar",
712
+ info: "Comida japonesa autêntica",
713
+ group: "restaurant"
714
+ },
715
+ {
716
+ position: { lat: -23.552, lng: -46.631 },
717
+ title: "Churrascaria Premium",
718
+ info: "Rodízio tradicional brasileiro",
719
+ group: "restaurant"
720
+ },
721
+ // Hotéis
722
+ {
723
+ position: { lat: -23.5475, lng: -46.6361 },
724
+ title: "Hotel Luxo",
725
+ info: "5 estrelas - Vista panorâmica",
726
+ group: "hotel"
727
+ },
728
+ {
729
+ position: { lat: -23.553, lng: -46.634 },
730
+ title: "Hotel Boutique",
731
+ info: "Design moderno e aconchegante",
732
+ group: "hotel"
733
+ },
734
+ // Pontos Turísticos
735
+ {
736
+ position: { lat: -23.5613, lng: -46.6563 },
737
+ title: "Parque Ibirapuera",
738
+ info: "Maior parque urbano da cidade",
739
+ group: "landmark"
740
+ },
741
+ {
742
+ position: { lat: -23.5558, lng: -46.6396 },
743
+ title: "MASP",
744
+ info: "Museu de Arte de São Paulo",
745
+ group: "landmark"
746
+ },
747
+ {
748
+ position: { lat: -23.5489, lng: -46.6388 },
749
+ title: "Avenida Paulista",
750
+ info: "Centro financeiro e cultural",
751
+ group: "landmark"
752
+ },
753
+ // Shopping
754
+ {
755
+ position: { lat: -23.5465, lng: -46.64 },
756
+ title: "Shopping Center",
757
+ info: "Mais de 300 lojas",
758
+ group: "shopping"
759
+ },
760
+ {
761
+ position: { lat: -23.554, lng: -46.638 },
762
+ title: "Galeria de Arte",
763
+ info: "Arte contemporânea e design",
764
+ group: "shopping"
765
+ },
766
+ // Cafeterias
767
+ {
768
+ position: { lat: -23.5495, lng: -46.6345 },
769
+ title: "Café Artesanal",
770
+ info: "Café especial e brunch",
771
+ group: "cafe"
772
+ },
773
+ {
774
+ position: { lat: -23.551, lng: -46.637 },
775
+ title: "Coffee House",
776
+ info: "Café gourmet e wi-fi",
777
+ group: "cafe"
778
+ },
779
+ {
780
+ position: { lat: -23.5525, lng: -46.6355 },
781
+ title: "Café Cultural",
782
+ info: "Livros e café",
783
+ group: "cafe"
784
+ }
785
+ ];
786
+ function FilterableMapExample({ apiKey }) {
787
+ const [activeFilters, setActiveFilters] = useState(
788
+ new Set(Object.keys(markerGroups))
789
+ );
790
+ const [showFilters, setShowFilters] = useState(true);
791
+ const filteredLocations = useMemo(() => {
792
+ return sampleLocations.filter((location) => activeFilters.has(location.group));
793
+ }, [activeFilters]);
794
+ const toggleFilter = (groupId) => {
795
+ setActiveFilters((prev) => {
796
+ const newFilters = new Set(prev);
797
+ if (newFilters.has(groupId)) {
798
+ newFilters.delete(groupId);
799
+ } else {
800
+ newFilters.add(groupId);
801
+ }
802
+ return newFilters;
803
+ });
804
+ };
805
+ const toggleAll = () => {
806
+ if (activeFilters.size === Object.keys(markerGroups).length) {
807
+ setActiveFilters(/* @__PURE__ */ new Set());
808
+ } else {
809
+ setActiveFilters(new Set(Object.keys(markerGroups)));
810
+ }
811
+ };
812
+ const markersWithCustomization = filteredLocations.map((location) => ({
813
+ ...location,
814
+ customColor: markerGroups[location.group].color,
815
+ iconSvg: createLucideIconSvg(markerGroups[location.group].iconName),
816
+ iconColor: markerGroups[location.group].iconColor
817
+ }));
818
+ const getGroupCount = (groupId) => {
819
+ return sampleLocations.filter((loc) => loc.group === groupId).length;
820
+ };
821
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
822
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
823
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
824
+ /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-primary" }),
825
+ /* @__PURE__ */ jsx("h3", { children: "Filtro por Categorias" })
826
+ ] }),
827
+ /* @__PURE__ */ jsxs(Badge, { variant: "secondary", children: [
828
+ filteredLocations.length,
829
+ " de ",
830
+ sampleLocations.length,
831
+ " locais"
832
+ ] })
833
+ ] }),
834
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Use os filtros compactos no canto superior esquerdo do mapa para visualizar marcadores por categoria" }),
835
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
836
+ /* @__PURE__ */ jsx(
837
+ Map,
838
+ {
839
+ center: { lat: -23.5505, lng: -46.6333 },
840
+ zoom: 14,
841
+ markers: markersWithCustomization,
842
+ height: "500px",
843
+ zoomControl: true,
844
+ fullscreenControl: true,
845
+ apiKey
846
+ }
847
+ ),
848
+ /* @__PURE__ */ jsx(
849
+ "div",
850
+ {
851
+ className: cn(
852
+ "absolute top-4 left-4 z-10 transition-all duration-300",
853
+ showFilters ? "translate-x-0" : "-translate-x-full"
854
+ ),
855
+ children: /* @__PURE__ */ jsxs(
856
+ "div",
857
+ {
858
+ className: "p-2.5 rounded-lg shadow-[var(--shadow-elevation-sm)] bg-card border border-border max-w-[220px]",
859
+ children: [
860
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2 gap-2", children: [
861
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
862
+ /* @__PURE__ */ jsx(Filter, { className: "w-3.5 h-3.5 text-foreground" }),
863
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-foreground", children: "Filtros" })
864
+ ] }),
865
+ /* @__PURE__ */ jsx(
866
+ Button,
867
+ {
868
+ size: "sm",
869
+ variant: "ghost",
870
+ onClick: () => setShowFilters(false),
871
+ className: "h-5 w-5 p-0",
872
+ children: /* @__PURE__ */ jsx(X, { className: "w-3 h-3" })
873
+ }
874
+ )
875
+ ] }),
876
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
877
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
878
+ /* @__PURE__ */ jsx(
879
+ Checkbox,
880
+ {
881
+ id: "filter-all",
882
+ checked: activeFilters.size === Object.keys(markerGroups).length,
883
+ onCheckedChange: toggleAll
884
+ }
885
+ ),
886
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "filter-all", className: "flex items-center gap-1.5 cursor-pointer text-sm", children: [
887
+ /* @__PURE__ */ jsx(MapPin, { className: "w-3.5 h-3.5" }),
888
+ "Todos",
889
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs h-4 px-1", children: sampleLocations.length })
890
+ ] })
891
+ ] }),
892
+ Object.entries(markerGroups).map(([id, group]) => {
893
+ const groupId = id;
894
+ const Icon = group.icon;
895
+ const isActive = activeFilters.has(groupId);
896
+ const count = getGroupCount(groupId);
897
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
898
+ /* @__PURE__ */ jsx(
899
+ Checkbox,
900
+ {
901
+ id: `filter-${id}`,
902
+ checked: isActive,
903
+ onCheckedChange: () => toggleFilter(groupId)
904
+ }
905
+ ),
906
+ /* @__PURE__ */ jsxs(
907
+ Label,
908
+ {
909
+ htmlFor: `filter-${id}`,
910
+ className: "flex items-center gap-1.5 cursor-pointer text-sm",
911
+ children: [
912
+ /* @__PURE__ */ jsx(
913
+ Icon,
914
+ {
915
+ className: "w-3.5 h-3.5",
916
+ style: { color: group.color }
917
+ }
918
+ ),
919
+ /* @__PURE__ */ jsx("span", { className: isActive ? "text-foreground" : "text-muted-foreground", children: group.name }),
920
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs h-4 px-1", children: count })
921
+ ]
922
+ }
923
+ )
924
+ ] }, id);
925
+ })
926
+ ] })
927
+ ]
928
+ }
929
+ )
930
+ }
931
+ ),
932
+ !showFilters && /* @__PURE__ */ jsxs(
933
+ Button,
934
+ {
935
+ size: "sm",
936
+ onClick: () => setShowFilters(true),
937
+ className: "absolute top-4 left-4 z-10 h-8 bg-primary text-primary-foreground",
938
+ children: [
939
+ /* @__PURE__ */ jsx(Filter, { className: "w-3.5 h-3.5 mr-1.5" }),
940
+ "Filtros"
941
+ ]
942
+ }
943
+ )
944
+ ] }),
945
+ /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3 justify-center pt-2 border-t border-border", children: Object.entries(markerGroups).map(([id, group]) => {
946
+ const Icon = group.icon;
947
+ const count = getGroupCount(id);
948
+ return /* @__PURE__ */ jsxs(
949
+ "div",
950
+ {
951
+ className: "flex items-center gap-2 px-3 py-1 rounded-lg bg-muted",
952
+ children: [
953
+ /* @__PURE__ */ jsx(
954
+ "div",
955
+ {
956
+ className: "w-3 h-3 rounded-full",
957
+ style: { backgroundColor: group.color }
958
+ }
959
+ ),
960
+ /* @__PURE__ */ jsx(Icon, { className: "w-4 h-4", style: { color: group.color } }),
961
+ /* @__PURE__ */ jsx("span", { className: "text-sm", style: { color: "var(--foreground)" }, children: group.name }),
962
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs h-5", children: count })
963
+ ]
964
+ },
965
+ id
966
+ );
967
+ }) }),
968
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: [
969
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
970
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Total de Locais" }),
971
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-foreground", children: sampleLocations.length })
972
+ ] }),
973
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
974
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Visíveis" }),
975
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-primary", children: filteredLocations.length })
976
+ ] }),
977
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
978
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Categorias" }),
979
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-foreground", children: Object.keys(markerGroups).length })
980
+ ] }),
981
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
982
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Filtros Ativos" }),
983
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-chart-2", children: activeFilters.size })
984
+ ] })
985
+ ] })
986
+ ] });
987
+ }
988
+ function DrawingMapExample({ apiKey }) {
989
+ const [mapInstance, setMapInstance] = useState(null);
990
+ const [selectedMode, setSelectedMode] = useState(null);
991
+ const [shapes, setShapes] = useState([]);
992
+ const [showSaveDialog, setShowSaveDialog] = useState(false);
993
+ const [savedData, setSavedData] = useState("");
994
+ const [isDrawingPolygon, setIsDrawingPolygon] = useState(false);
995
+ const tempPolylineRef = useRef(null);
996
+ const polygonPathRef = useRef([]);
997
+ const mapListenersRef = useRef([]);
998
+ const colors = {
999
+ fill: "#2C275B",
1000
+ // Primary do CSS
1001
+ stroke: "#2C275B",
1002
+ fillOpacity: 0.2,
1003
+ strokeWeight: 2,
1004
+ editable: true,
1005
+ draggable: true
1006
+ };
1007
+ const addMarker = useCallback((position) => {
1008
+ if (!mapInstance) return;
1009
+ const marker = new google.maps.marker.AdvancedMarkerElement({
1010
+ position,
1011
+ map: mapInstance,
1012
+ gmpDraggable: true,
1013
+ // Propriedade correta para AdvancedMarkerElement
1014
+ title: "Marcador"
1015
+ });
1016
+ marker.addListener("dragend", () => {
1017
+ toast.info("Posição do marcador atualizada");
1018
+ });
1019
+ const newShape = { type: "marker", overlay: marker };
1020
+ setShapes((prev) => [...prev, newShape]);
1021
+ toast.success("Marcador adicionado");
1022
+ }, [mapInstance]);
1023
+ const addCircle = useCallback((center) => {
1024
+ if (!mapInstance) return;
1025
+ const circle = new google.maps.Circle({
1026
+ map: mapInstance,
1027
+ center,
1028
+ radius: 500,
1029
+ fillColor: colors.fill,
1030
+ fillOpacity: colors.fillOpacity,
1031
+ strokeColor: colors.stroke,
1032
+ strokeWeight: colors.strokeWeight,
1033
+ editable: true,
1034
+ draggable: true
1035
+ });
1036
+ const newShape = { type: "circle", overlay: circle };
1037
+ setShapes((prev) => [...prev, newShape]);
1038
+ toast.success("Círculo adicionado");
1039
+ }, [mapInstance, colors]);
1040
+ const addRectangle = useCallback((center) => {
1041
+ if (!mapInstance) return;
1042
+ const offset = 5e-3;
1043
+ const bounds = {
1044
+ north: center.lat() + offset,
1045
+ south: center.lat() - offset,
1046
+ east: center.lng() + offset,
1047
+ west: center.lng() - offset
1048
+ };
1049
+ const rectangle = new google.maps.Rectangle({
1050
+ map: mapInstance,
1051
+ bounds,
1052
+ fillColor: colors.fill,
1053
+ fillOpacity: colors.fillOpacity,
1054
+ strokeColor: colors.stroke,
1055
+ strokeWeight: colors.strokeWeight,
1056
+ editable: true,
1057
+ draggable: true
1058
+ });
1059
+ const newShape = { type: "rectangle", overlay: rectangle };
1060
+ setShapes((prev) => [...prev, newShape]);
1061
+ toast.success("Retângulo adicionado");
1062
+ }, [mapInstance, colors]);
1063
+ const cancelPolygonDrawing = useCallback(() => {
1064
+ if (tempPolylineRef.current) {
1065
+ tempPolylineRef.current.setMap(null);
1066
+ tempPolylineRef.current = null;
1067
+ }
1068
+ polygonPathRef.current = [];
1069
+ setIsDrawingPolygon(false);
1070
+ }, []);
1071
+ const finishPolygon = useCallback(() => {
1072
+ if (!mapInstance || polygonPathRef.current.length < 3) {
1073
+ if (polygonPathRef.current.length < 3 && polygonPathRef.current.length > 0) {
1074
+ toast.error("Polígono precisa de pelo menos 3 pontos.");
1075
+ }
1076
+ return;
1077
+ }
1078
+ const polygon = new google.maps.Polygon({
1079
+ map: mapInstance,
1080
+ paths: polygonPathRef.current,
1081
+ fillColor: colors.fill,
1082
+ fillOpacity: colors.fillOpacity,
1083
+ strokeColor: colors.stroke,
1084
+ strokeWeight: colors.strokeWeight,
1085
+ editable: true,
1086
+ draggable: true
1087
+ });
1088
+ const newShape = { type: "polygon", overlay: polygon };
1089
+ setShapes((prev) => [...prev, newShape]);
1090
+ cancelPolygonDrawing();
1091
+ toast.success("Polígono criado com sucesso!");
1092
+ }, [mapInstance, colors, cancelPolygonDrawing]);
1093
+ const addPolygonPoint = useCallback((point) => {
1094
+ var _a;
1095
+ if (!mapInstance) return;
1096
+ if (!isDrawingPolygon) {
1097
+ setIsDrawingPolygon(true);
1098
+ polygonPathRef.current = [point];
1099
+ tempPolylineRef.current = new google.maps.Polyline({
1100
+ map: mapInstance,
1101
+ path: polygonPathRef.current,
1102
+ strokeColor: colors.stroke,
1103
+ strokeOpacity: 0.8,
1104
+ strokeWeight: 2,
1105
+ geodesic: true,
1106
+ clickable: false
1107
+ // Importante: não capturar cliques para não atrapalhar o mapa
1108
+ });
1109
+ toast.info("Clique para adicionar pontos. Duplo clique ou botão check para fechar.", { duration: 4e3 });
1110
+ } else {
1111
+ polygonPathRef.current.push(point);
1112
+ (_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
1113
+ }
1114
+ }, [mapInstance, isDrawingPolygon, colors]);
1115
+ const clearListeners = () => {
1116
+ mapListenersRef.current.forEach((listener) => google.maps.event.removeListener(listener));
1117
+ mapListenersRef.current = [];
1118
+ };
1119
+ useEffect(() => {
1120
+ if (!mapInstance) return;
1121
+ clearListeners();
1122
+ if (!selectedMode) {
1123
+ mapInstance.setOptions({ draggableCursor: "grab", clickableIcons: true });
1124
+ return;
1125
+ }
1126
+ mapInstance.setOptions({
1127
+ draggableCursor: "crosshair",
1128
+ clickableIcons: false
1129
+ });
1130
+ const clickListener = mapInstance.addListener("click", (e) => {
1131
+ if (!e.latLng) return;
1132
+ switch (selectedMode) {
1133
+ case "marker":
1134
+ addMarker(e.latLng);
1135
+ break;
1136
+ case "circle":
1137
+ addCircle(e.latLng);
1138
+ break;
1139
+ case "rectangle":
1140
+ addRectangle(e.latLng);
1141
+ break;
1142
+ case "polygon":
1143
+ addPolygonPoint(e.latLng);
1144
+ break;
1145
+ }
1146
+ });
1147
+ mapListenersRef.current.push(clickListener);
1148
+ if (selectedMode === "polygon") {
1149
+ const dblClickListener = mapInstance.addListener("dblclick", (e) => {
1150
+ if (e.domEvent) e.domEvent.stopPropagation();
1151
+ finishPolygon();
1152
+ });
1153
+ mapListenersRef.current.push(dblClickListener);
1154
+ }
1155
+ return () => {
1156
+ clearListeners();
1157
+ };
1158
+ }, [mapInstance, selectedMode, addMarker, addCircle, addRectangle, addPolygonPoint, finishPolygon]);
1159
+ const handleModeChange = (mode) => {
1160
+ if (isDrawingPolygon) {
1161
+ cancelPolygonDrawing();
1162
+ }
1163
+ setSelectedMode(mode);
1164
+ };
1165
+ const clearAll = () => {
1166
+ shapes.forEach((shape) => {
1167
+ if ("setMap" in shape.overlay) shape.overlay.setMap(null);
1168
+ else shape.overlay.map = null;
1169
+ });
1170
+ setShapes([]);
1171
+ if (isDrawingPolygon) cancelPolygonDrawing();
1172
+ toast.info("Mapa limpo");
1173
+ };
1174
+ const undoLast = () => {
1175
+ var _a;
1176
+ if (isDrawingPolygon) {
1177
+ if (polygonPathRef.current.length > 0) {
1178
+ polygonPathRef.current.pop();
1179
+ (_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
1180
+ if (polygonPathRef.current.length === 0) {
1181
+ cancelPolygonDrawing();
1182
+ }
1183
+ }
1184
+ return;
1185
+ }
1186
+ if (shapes.length === 0) return;
1187
+ const lastShape = shapes[shapes.length - 1];
1188
+ if ("setMap" in lastShape.overlay) lastShape.overlay.setMap(null);
1189
+ else lastShape.overlay.map = null;
1190
+ setShapes((prev) => prev.slice(0, prev.length - 1));
1191
+ };
1192
+ const handleSave = () => {
1193
+ if (shapes.length === 0) {
1194
+ toast.error("Adicione desenhos ao mapa antes de salvar.");
1195
+ return;
1196
+ }
1197
+ const exportData = shapes.map((s) => {
1198
+ var _a, _b;
1199
+ let data = {};
1200
+ if (s.type === "marker") {
1201
+ const marker = s.overlay;
1202
+ const pos = marker.position;
1203
+ if (pos) {
1204
+ const lat = typeof pos.lat === "function" ? pos.lat() : pos.lat;
1205
+ const lng = typeof pos.lng === "function" ? pos.lng() : pos.lng;
1206
+ data = { lat, lng };
1207
+ }
1208
+ } else if (s.type === "circle") {
1209
+ const circle = s.overlay;
1210
+ data = {
1211
+ center: { lat: (_a = circle.getCenter()) == null ? void 0 : _a.lat(), lng: (_b = circle.getCenter()) == null ? void 0 : _b.lng() },
1212
+ radius: circle.getRadius()
1213
+ };
1214
+ } else if (s.type === "rectangle") {
1215
+ const rect = s.overlay;
1216
+ const bounds = rect.getBounds();
1217
+ data = {
1218
+ north: bounds == null ? void 0 : bounds.getNorthEast().lat(),
1219
+ south: bounds == null ? void 0 : bounds.getSouthWest().lat(),
1220
+ east: bounds == null ? void 0 : bounds.getNorthEast().lng(),
1221
+ west: bounds == null ? void 0 : bounds.getSouthWest().lng()
1222
+ };
1223
+ } else if (s.type === "polygon") {
1224
+ const poly = s.overlay;
1225
+ const path = poly.getPath();
1226
+ data = path.getArray().map((coord) => ({ lat: coord.lat(), lng: coord.lng() }));
1227
+ }
1228
+ return { type: s.type, data };
1229
+ });
1230
+ setSavedData(JSON.stringify(exportData, null, 2));
1231
+ setShowSaveDialog(true);
1232
+ };
1233
+ const ToolButton = ({
1234
+ active,
1235
+ onClick,
1236
+ icon: Icon,
1237
+ label
1238
+ }) => /* @__PURE__ */ jsxs(
1239
+ Button,
1240
+ {
1241
+ variant: active ? "default" : "ghost",
1242
+ className: `w-full justify-start gap-3 ${active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"}`,
1243
+ onClick,
1244
+ children: [
1245
+ /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4" }),
1246
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: label })
1247
+ ]
1248
+ }
1249
+ );
1250
+ return /* @__PURE__ */ jsxs(Card, { className: "h-full border-0 shadow-none md:border md:shadow-sm", children: [
1251
+ /* @__PURE__ */ jsx(CardHeader, { className: "border-b bg-muted/20 pb-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1252
+ /* @__PURE__ */ jsxs("div", { children: [
1253
+ /* @__PURE__ */ jsx(CardTitle, { children: "Ferramentas de Desenho" }),
1254
+ /* @__PURE__ */ jsx(CardDescription, { className: "mt-1", children: "Crie geometrias personalizadas no mapa" })
1255
+ ] }),
1256
+ /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "h-6", children: [
1257
+ shapes.length,
1258
+ " ",
1259
+ shapes.length === 1 ? "elemento" : "elementos"
1260
+ ] })
1261
+ ] }) }),
1262
+ /* @__PURE__ */ jsxs(CardContent, { className: "p-0 flex flex-col md:flex-row h-[600px] bg-background", children: [
1263
+ /* @__PURE__ */ jsxs("div", { className: "w-full md:w-64 border-b md:border-b-0 md:border-r bg-muted/10 flex flex-col", children: [
1264
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: /* @__PURE__ */ jsxs("div", { className: "p-4 space-y-6", children: [
1265
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
1266
+ /* @__PURE__ */ jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ferramentas" }),
1267
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
1268
+ /* @__PURE__ */ jsx(
1269
+ ToolButton,
1270
+ {
1271
+ active: selectedMode === null,
1272
+ onClick: () => handleModeChange(null),
1273
+ icon: MousePointer2,
1274
+ label: "Navegar"
1275
+ }
1276
+ ),
1277
+ /* @__PURE__ */ jsx(
1278
+ ToolButton,
1279
+ {
1280
+ active: selectedMode === "marker",
1281
+ onClick: () => handleModeChange("marker"),
1282
+ icon: MapPin,
1283
+ label: "Marcador"
1284
+ }
1285
+ ),
1286
+ /* @__PURE__ */ jsx(
1287
+ ToolButton,
1288
+ {
1289
+ active: selectedMode === "circle",
1290
+ onClick: () => handleModeChange("circle"),
1291
+ icon: Circle,
1292
+ label: "Círculo"
1293
+ }
1294
+ ),
1295
+ /* @__PURE__ */ jsx(
1296
+ ToolButton,
1297
+ {
1298
+ active: selectedMode === "rectangle",
1299
+ onClick: () => handleModeChange("rectangle"),
1300
+ icon: Square,
1301
+ label: "Retângulo"
1302
+ }
1303
+ ),
1304
+ /* @__PURE__ */ jsx(
1305
+ ToolButton,
1306
+ {
1307
+ active: selectedMode === "polygon",
1308
+ onClick: () => handleModeChange("polygon"),
1309
+ icon: Hexagon,
1310
+ label: "Polígono"
1311
+ }
1312
+ )
1313
+ ] })
1314
+ ] }),
1315
+ /* @__PURE__ */ jsx(Separator, {}),
1316
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
1317
+ /* @__PURE__ */ jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ações" }),
1318
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1319
+ /* @__PURE__ */ jsxs(
1320
+ Button,
1321
+ {
1322
+ variant: "outline",
1323
+ onClick: undoLast,
1324
+ disabled: shapes.length === 0 && !isDrawingPolygon,
1325
+ className: "w-full",
1326
+ title: "Desfazer último",
1327
+ "aria-label": "Desfazer último",
1328
+ children: [
1329
+ /* @__PURE__ */ jsx(Undo, { className: "h-4 w-4 mr-2" }),
1330
+ "Desfazer"
1331
+ ]
1332
+ }
1333
+ ),
1334
+ /* @__PURE__ */ jsxs(
1335
+ Button,
1336
+ {
1337
+ variant: "destructive",
1338
+ onClick: clearAll,
1339
+ disabled: shapes.length === 0 && !isDrawingPolygon,
1340
+ className: "w-full bg-destructive/10 text-destructive hover:bg-destructive hover:text-destructive-foreground border-0 shadow-none",
1341
+ children: [
1342
+ /* @__PURE__ */ jsx(Trash2, { className: "h-4 w-4 mr-2" }),
1343
+ "Limpar"
1344
+ ]
1345
+ }
1346
+ )
1347
+ ] }),
1348
+ /* @__PURE__ */ jsxs(
1349
+ Button,
1350
+ {
1351
+ variant: "default",
1352
+ onClick: handleSave,
1353
+ disabled: shapes.length === 0,
1354
+ className: "w-full mt-2",
1355
+ children: [
1356
+ /* @__PURE__ */ jsx(Save, { className: "h-4 w-4 mr-2" }),
1357
+ "Salvar GeoJSON"
1358
+ ]
1359
+ }
1360
+ )
1361
+ ] })
1362
+ ] }) }),
1363
+ isDrawingPolygon && /* @__PURE__ */ jsxs("div", { className: "p-4 bg-primary/5 border-t border-primary/10", children: [
1364
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2 text-primary text-xs font-medium", children: [
1365
+ /* @__PURE__ */ jsxs("span", { className: "relative flex h-2 w-2", children: [
1366
+ /* @__PURE__ */ jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75" }),
1367
+ /* @__PURE__ */ jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary" })
1368
+ ] }),
1369
+ "Desenhando Polígono..."
1370
+ ] }),
1371
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
1372
+ /* @__PURE__ */ jsxs(
1373
+ Button,
1374
+ {
1375
+ size: "sm",
1376
+ className: "w-full bg-green-600 hover:bg-green-700 text-white",
1377
+ onClick: finishPolygon,
1378
+ children: [
1379
+ /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 mr-1" }),
1380
+ " Concluir"
1381
+ ]
1382
+ }
1383
+ ),
1384
+ /* @__PURE__ */ jsxs(
1385
+ Button,
1386
+ {
1387
+ size: "sm",
1388
+ variant: "outline",
1389
+ className: "w-full",
1390
+ onClick: cancelPolygonDrawing,
1391
+ children: [
1392
+ /* @__PURE__ */ jsx(X, { className: "h-3 w-3 mr-1" }),
1393
+ " Cancelar"
1394
+ ]
1395
+ }
1396
+ )
1397
+ ] })
1398
+ ] })
1399
+ ] }),
1400
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 relative bg-muted/5 min-h-[400px]", children: [
1401
+ /* @__PURE__ */ jsx(
1402
+ Map,
1403
+ {
1404
+ className: "h-full w-full rounded-none md:rounded-br-lg",
1405
+ center: { lat: -23.5505, lng: -46.6333 },
1406
+ zoom: 13,
1407
+ height: "100%",
1408
+ mapContainerClassName: "h-full w-full rounded-none md:rounded-br-lg",
1409
+ disableDefaultUI: true,
1410
+ zoomControl: true,
1411
+ onMapLoad: setMapInstance,
1412
+ apiKey
1413
+ }
1414
+ ),
1415
+ selectedMode && !isDrawingPolygon && /* @__PURE__ */ jsxs("div", { className: "absolute bottom-6 left-1/2 -translate-x-1/2 bg-background/90 backdrop-blur border px-4 py-2 rounded-full shadow-sm text-xs font-medium text-muted-foreground pointer-events-none z-10", children: [
1416
+ selectedMode === "marker" && "Clique no mapa para adicionar um marcador",
1417
+ selectedMode === "circle" && "Clique no mapa para definir o centro do círculo",
1418
+ selectedMode === "rectangle" && "Clique no mapa para criar um retângulo",
1419
+ selectedMode === "polygon" && "Clique sequencialmente para desenhar a área"
1420
+ ] })
1421
+ ] }),
1422
+ /* @__PURE__ */ jsx(Dialog, { open: showSaveDialog, onOpenChange: setShowSaveDialog, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-md", children: [
1423
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
1424
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Dados Geográficos (GeoJSON)" }),
1425
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Copie os dados das formas desenhadas abaixo." })
1426
+ ] }),
1427
+ /* @__PURE__ */ jsx("div", { className: "relative mt-2", children: /* @__PURE__ */ jsx("pre", { className: "p-4 rounded-lg bg-muted overflow-auto max-h-[300px] text-xs font-mono", "data-custom-scrollbar": true, children: savedData }) }),
1428
+ /* @__PURE__ */ jsx("div", { className: "flex justify-end mt-4", children: /* @__PURE__ */ jsx(Button, { onClick: () => setShowSaveDialog(false), children: "Fechar" }) })
1429
+ ] }) })
1430
+ ] })
1431
+ ] });
1432
+ }
1433
+ function MapShowcase() {
1434
+ const [activeTab, setActiveTab] = useState("simple");
1435
+ const [isTransitioning, setIsTransitioning] = useState(false);
1436
+ const [apiKey, setApiKey] = useState("");
1437
+ const [inputApiKey, setInputApiKey] = useState("");
1438
+ const [showTraffic, setShowTraffic] = useState(false);
1439
+ const [showTransit, setShowTransit] = useState(false);
1440
+ const [showBicycling, setShowBicycling] = useState(false);
1441
+ const [showZoomControl, setShowZoomControl] = useState(true);
1442
+ const [showMapTypeControl, setShowMapTypeControl] = useState(false);
1443
+ const [showStreetViewControl, setShowStreetViewControl] = useState(false);
1444
+ const [showFullscreenControl, setShowFullscreenControl] = useState(true);
1445
+ const handleTabChange = (value) => {
1446
+ if (value === activeTab) return;
1447
+ setIsTransitioning(true);
1448
+ setTimeout(() => {
1449
+ setActiveTab(value);
1450
+ setIsTransitioning(false);
1451
+ }, 50);
1452
+ };
1453
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-8", children: [
1454
+ /* @__PURE__ */ jsx(
1455
+ PageHeader,
1456
+ {
1457
+ title: "Mapas",
1458
+ 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.",
1459
+ actions: /* @__PURE__ */ jsx(Badge, { children: "Design System" })
1460
+ }
1461
+ ),
1462
+ /* @__PURE__ */ jsxs(Card, { children: [
1463
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1464
+ /* @__PURE__ */ jsx(CardTitle, { children: "Configuração da API Key" }),
1465
+ /* @__PURE__ */ jsx(CardDescription, { children: "Insira sua Google Maps API Key para renderizar os mapas abaixo." })
1466
+ ] }),
1467
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-md items-center space-x-2", children: [
1468
+ /* @__PURE__ */ jsx(
1469
+ Input,
1470
+ {
1471
+ type: "password",
1472
+ placeholder: "Cole sua Google Maps API Key aqui",
1473
+ "aria-label": "Google Maps API Key",
1474
+ value: inputApiKey,
1475
+ onChange: (e) => setInputApiKey(e.target.value),
1476
+ className: "max-w-md h-10"
1477
+ }
1478
+ ),
1479
+ /* @__PURE__ */ jsx(Button, { onClick: () => setApiKey(inputApiKey), children: "Salvar" })
1480
+ ] }) })
1481
+ ] }),
1482
+ /* @__PURE__ */ jsxs(Tabs, { value: activeTab, onValueChange: handleTabChange, className: "w-full", children: [
1483
+ /* @__PURE__ */ jsxs(TabsList, { className: "grid w-full grid-cols-4 mb-8", children: [
1484
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "simple", children: "Mapas Simples" }),
1485
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "markers", children: "Marcadores" }),
1486
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "controls", children: "Controles" }),
1487
+ /* @__PURE__ */ jsxs(TabsTrigger, { value: "drawing", className: "flex items-center gap-2", children: [
1488
+ /* @__PURE__ */ jsx(Pencil, { className: "w-3 h-3" }),
1489
+ " Desenho"
1490
+ ] })
1491
+ ] }),
1492
+ /* @__PURE__ */ jsx(TabsContent, { value: "simple", className: "space-y-8", children: !isTransitioning && activeTab === "simple" && /* @__PURE__ */ jsxs(Fragment, { children: [
1493
+ /* @__PURE__ */ jsxs(Card, { children: [
1494
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1495
+ /* @__PURE__ */ jsx(CardTitle, { children: "Mapa Padrão" }),
1496
+ /* @__PURE__ */ jsx(CardDescription, { children: "Configuração básica do mapa centralizado em uma coordenada específica." })
1497
+ ] }),
1498
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1499
+ Map,
1500
+ {
1501
+ center: { lat: -23.5505, lng: -46.6333 },
1502
+ zoom: 13,
1503
+ height: "400px",
1504
+ apiKey
1505
+ }
1506
+ ) })
1507
+ ] }),
1508
+ /* @__PURE__ */ jsxs(Card, { children: [
1509
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1510
+ /* @__PURE__ */ jsx(CardTitle, { children: "Camadas (Layers)" }),
1511
+ /* @__PURE__ */ jsx(CardDescription, { children: "Sobreposição de informações como tráfego, transporte público e ciclovias." })
1512
+ ] }),
1513
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
1514
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-6 p-4 border rounded-lg bg-muted/50", children: [
1515
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1516
+ /* @__PURE__ */ jsx(
1517
+ Switch,
1518
+ {
1519
+ id: "traffic",
1520
+ checked: showTraffic,
1521
+ onCheckedChange: setShowTraffic
1522
+ }
1523
+ ),
1524
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "traffic", className: "flex items-center gap-2", children: [
1525
+ /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4" }),
1526
+ " Trânsito"
1527
+ ] })
1528
+ ] }),
1529
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1530
+ /* @__PURE__ */ jsx(
1531
+ Switch,
1532
+ {
1533
+ id: "transit",
1534
+ checked: showTransit,
1535
+ onCheckedChange: setShowTransit
1536
+ }
1537
+ ),
1538
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "transit", className: "flex items-center gap-2", children: [
1539
+ /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4" }),
1540
+ " Transporte"
1541
+ ] })
1542
+ ] }),
1543
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1544
+ /* @__PURE__ */ jsx(
1545
+ Switch,
1546
+ {
1547
+ id: "bicycling",
1548
+ checked: showBicycling,
1549
+ onCheckedChange: setShowBicycling
1550
+ }
1551
+ ),
1552
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "bicycling", className: "flex items-center gap-2", children: [
1553
+ /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4" }),
1554
+ " Ciclovias"
1555
+ ] })
1556
+ ] })
1557
+ ] }),
1558
+ /* @__PURE__ */ jsx(
1559
+ Map,
1560
+ {
1561
+ center: { lat: -23.5505, lng: -46.6333 },
1562
+ zoom: 12,
1563
+ height: "500px",
1564
+ layers: {
1565
+ traffic: showTraffic,
1566
+ transit: showTransit,
1567
+ bicycling: showBicycling
1568
+ },
1569
+ apiKey
1570
+ }
1571
+ )
1572
+ ] })
1573
+ ] }),
1574
+ /* @__PURE__ */ jsxs("div", { className: "grid md:grid-cols-3 gap-4", children: [
1575
+ /* @__PURE__ */ jsxs(Card, { children: [
1576
+ /* @__PURE__ */ jsx(CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "São Paulo" }) }),
1577
+ /* @__PURE__ */ jsx(CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsx(
1578
+ Map,
1579
+ {
1580
+ center: { lat: -23.5505, lng: -46.6333 },
1581
+ zoom: 11,
1582
+ height: "200px",
1583
+ disableDefaultUI: true,
1584
+ apiKey
1585
+ }
1586
+ ) })
1587
+ ] }),
1588
+ /* @__PURE__ */ jsxs(Card, { children: [
1589
+ /* @__PURE__ */ jsx(CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "Rio de Janeiro" }) }),
1590
+ /* @__PURE__ */ jsx(CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsx(
1591
+ Map,
1592
+ {
1593
+ center: { lat: -22.9068, lng: -43.1729 },
1594
+ zoom: 11,
1595
+ height: "200px",
1596
+ disableDefaultUI: true,
1597
+ apiKey
1598
+ }
1599
+ ) })
1600
+ ] }),
1601
+ /* @__PURE__ */ jsxs(Card, { children: [
1602
+ /* @__PURE__ */ jsx(CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "New York" }) }),
1603
+ /* @__PURE__ */ jsx(CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsx(
1604
+ Map,
1605
+ {
1606
+ center: { lat: 40.7128, lng: -74.006 },
1607
+ zoom: 11,
1608
+ height: "200px",
1609
+ disableDefaultUI: true,
1610
+ apiKey
1611
+ }
1612
+ ) })
1613
+ ] })
1614
+ ] })
1615
+ ] }) }),
1616
+ /* @__PURE__ */ jsx(TabsContent, { value: "markers", className: "space-y-8", children: !isTransitioning && activeTab === "markers" && /* @__PURE__ */ jsxs(Fragment, { children: [
1617
+ /* @__PURE__ */ jsxs(Card, { children: [
1618
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1619
+ /* @__PURE__ */ jsx(CardTitle, { children: "Marcadores e Pins" }),
1620
+ /* @__PURE__ */ jsx(CardDescription, { children: "Exemplos de marcadores personalizados com diferentes cores e informações." })
1621
+ ] }),
1622
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1623
+ Map,
1624
+ {
1625
+ center: { lat: -23.5505, lng: -46.6333 },
1626
+ zoom: 13,
1627
+ height: "500px",
1628
+ apiKey,
1629
+ markers: [
1630
+ {
1631
+ position: { lat: -23.5505, lng: -46.6333 },
1632
+ title: "Principal",
1633
+ info: "Marcador padrão",
1634
+ customColor: "#4F46E5"
1635
+ },
1636
+ {
1637
+ position: { lat: -23.54, lng: -46.64 },
1638
+ title: "Secundário",
1639
+ info: "Marcador de alerta",
1640
+ customColor: "#EF4444",
1641
+ icon: "!"
1642
+ },
1643
+ {
1644
+ position: { lat: -23.56, lng: -46.62 },
1645
+ title: "Loja",
1646
+ info: "Ponto de venda",
1647
+ customColor: "#10B981",
1648
+ icon: "S"
1649
+ }
1650
+ ]
1651
+ }
1652
+ ) })
1653
+ ] }),
1654
+ /* @__PURE__ */ jsxs(Card, { children: [
1655
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1656
+ /* @__PURE__ */ jsx(CardTitle, { children: "Marcador com Ações" }),
1657
+ /* @__PURE__ */ jsx(CardDescription, { children: "Marcador interativo que exibe conteúdo rico (texto, imagem, botões) ao ser clicado." })
1658
+ ] }),
1659
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1660
+ Map,
1661
+ {
1662
+ center: { lat: -23.5505, lng: -46.6333 },
1663
+ zoom: 13,
1664
+ height: "500px",
1665
+ apiKey,
1666
+ markers: [
1667
+ {
1668
+ position: { lat: -23.5505, lng: -46.6333 },
1669
+ label: "🏢",
1670
+ richContent: /* @__PURE__ */ jsxs("div", { className: "p-4 max-w-[260px]", children: [
1671
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
1672
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-base", children: "Xertica HQ" }),
1673
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-[10px] h-5", children: "Open" })
1674
+ ] }),
1675
+ /* @__PURE__ */ jsxs("div", { className: "w-full h-32 bg-muted rounded-md mb-3 overflow-hidden relative", children: [
1676
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" }),
1677
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center text-white font-medium", children: "Office View" })
1678
+ ] }),
1679
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-3 leading-relaxed", children: "Sede principal em São Paulo. Espaço moderno para reuniões e eventos." }),
1680
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1681
+ /* @__PURE__ */ jsx(Button, { size: "sm", className: "w-full h-8 text-xs shadow-sm", children: "Navegar" }),
1682
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", className: "w-full h-8 text-xs bg-background", children: "Detalhes" })
1683
+ ] })
1684
+ ] })
1685
+ }
1686
+ ]
1687
+ }
1688
+ ) })
1689
+ ] }),
1690
+ /* @__PURE__ */ jsxs(Card, { children: [
1691
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1692
+ /* @__PURE__ */ jsx(CardTitle, { children: "Áreas e Zonas" }),
1693
+ /* @__PURE__ */ jsx(CardDescription, { children: "Delimitação de áreas geográficas usando círculos e polígonos." })
1694
+ ] }),
1695
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1696
+ Map,
1697
+ {
1698
+ center: { lat: -23.5505, lng: -46.6333 },
1699
+ zoom: 12,
1700
+ height: "500px",
1701
+ apiKey,
1702
+ markers: [
1703
+ {
1704
+ position: { lat: -23.5505, lng: -46.6333 },
1705
+ title: "Centro da Zona",
1706
+ info: "Raio de 3km",
1707
+ customColor: "#6366F1"
1708
+ }
1709
+ ],
1710
+ circle: {
1711
+ center: { lat: -23.5505, lng: -46.6333 },
1712
+ radius: 3e3,
1713
+ fillColor: "#6366F1",
1714
+ strokeColor: "#4F46E5"
1715
+ },
1716
+ polygon: {
1717
+ paths: [
1718
+ [
1719
+ { lat: -23.52, lng: -46.6 },
1720
+ { lat: -23.52, lng: -46.66 },
1721
+ { lat: -23.58, lng: -46.66 },
1722
+ { lat: -23.58, lng: -46.6 }
1723
+ ]
1724
+ ],
1725
+ fillColor: "#10B981",
1726
+ strokeColor: "#059669"
1727
+ }
1728
+ }
1729
+ ) })
1730
+ ] })
1731
+ ] }) }),
1732
+ /* @__PURE__ */ jsx(TabsContent, { value: "controls", className: "space-y-8", children: !isTransitioning && activeTab === "controls" && /* @__PURE__ */ jsxs(Fragment, { children: [
1733
+ /* @__PURE__ */ jsxs(Card, { children: [
1734
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1735
+ /* @__PURE__ */ jsx(CardTitle, { children: "Controles do Mapa" }),
1736
+ /* @__PURE__ */ jsx(CardDescription, { children: "Personalize a interface do mapa ativando ou desativando controles nativos." })
1737
+ ] }),
1738
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
1739
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 p-4 border rounded-lg bg-muted/50", children: [
1740
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1741
+ /* @__PURE__ */ jsx(
1742
+ Checkbox,
1743
+ {
1744
+ id: "zoom",
1745
+ checked: showZoomControl,
1746
+ onCheckedChange: (c) => setShowZoomControl(!!c)
1747
+ }
1748
+ ),
1749
+ /* @__PURE__ */ jsx(Label, { htmlFor: "zoom", children: "Zoom Control" })
1750
+ ] }),
1751
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1752
+ /* @__PURE__ */ jsx(
1753
+ Checkbox,
1754
+ {
1755
+ id: "maptype",
1756
+ checked: showMapTypeControl,
1757
+ onCheckedChange: (c) => setShowMapTypeControl(!!c)
1758
+ }
1759
+ ),
1760
+ /* @__PURE__ */ jsx(Label, { htmlFor: "maptype", children: "Map Type" })
1761
+ ] }),
1762
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1763
+ /* @__PURE__ */ jsx(
1764
+ Checkbox,
1765
+ {
1766
+ id: "streetview",
1767
+ checked: showStreetViewControl,
1768
+ onCheckedChange: (c) => setShowStreetViewControl(!!c)
1769
+ }
1770
+ ),
1771
+ /* @__PURE__ */ jsx(Label, { htmlFor: "streetview", children: "Street View" })
1772
+ ] }),
1773
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1774
+ /* @__PURE__ */ jsx(
1775
+ Checkbox,
1776
+ {
1777
+ id: "fullscreen",
1778
+ checked: showFullscreenControl,
1779
+ onCheckedChange: (c) => setShowFullscreenControl(!!c)
1780
+ }
1781
+ ),
1782
+ /* @__PURE__ */ jsx(Label, { htmlFor: "fullscreen", children: "Fullscreen" })
1783
+ ] })
1784
+ ] }),
1785
+ /* @__PURE__ */ jsx(
1786
+ Map,
1787
+ {
1788
+ center: { lat: -23.5505, lng: -46.6333 },
1789
+ zoom: 13,
1790
+ height: "400px",
1791
+ apiKey,
1792
+ zoomControl: showZoomControl,
1793
+ mapTypeControl: showMapTypeControl,
1794
+ streetViewControl: showStreetViewControl,
1795
+ fullscreenControl: showFullscreenControl
1796
+ }
1797
+ )
1798
+ ] })
1799
+ ] }),
1800
+ /* @__PURE__ */ jsxs(Card, { children: [
1801
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1802
+ /* @__PURE__ */ jsx(CardTitle, { children: "Filtros Interativos" }),
1803
+ /* @__PURE__ */ jsx(CardDescription, { children: "Exemplo avançado de mapa com controles customizados para filtragem de marcadores." })
1804
+ ] }),
1805
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(FilterableMapExample, { apiKey }) })
1806
+ ] })
1807
+ ] }) }),
1808
+ /* @__PURE__ */ jsx(TabsContent, { value: "drawing", className: "space-y-8", children: !isTransitioning && activeTab === "drawing" && /* @__PURE__ */ jsx(DrawingMapExample, { apiKey }) })
1809
+ ] }),
1810
+ /* @__PURE__ */ jsxs("div", { className: "grid md:grid-cols-3 gap-6 pt-8 border-t", children: [
1811
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1812
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm", children: "Documentação" }),
1813
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
1814
+ "Verifique ",
1815
+ /* @__PURE__ */ jsx("code", { children: "MAP_SETUP.md" }),
1816
+ " para configuração inicial e requisitos de API."
1817
+ ] })
1818
+ ] }),
1819
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1820
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm", children: "Performance" }),
1821
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Utiliza carregamento assíncrono e AdvancedMarkerElement para melhor desempenho." })
1822
+ ] }),
1823
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1824
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm", children: "Design System" }),
1825
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
1826
+ "Componentes seguem estritamente as variáveis de tokens do ",
1827
+ /* @__PURE__ */ jsx("code", { children: "globals.css" }),
1828
+ "."
1829
+ ] })
1830
+ ] })
1831
+ ] })
1832
+ ] });
1833
+ }
1834
+ function TemplateContent({ user, onLogout, onSettings }) {
1835
+ const layout = useOptionalLayout();
1836
+ const [localSidebarExpanded, setLocalSidebarExpanded] = useState(false);
1837
+ const [localSidebarWidth, setLocalSidebarWidth] = useState(280);
1838
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
1839
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? localSidebarWidth;
1840
+ const setSidebarWidth = (layout == null ? void 0 : layout.setSidebarWidth) ?? setLocalSidebarWidth;
1841
+ (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
1842
+ useNavigate();
1843
+ const [progress, setProgress] = useState(45);
1844
+ const [sliderValue, setSliderValue] = useState([50]);
1845
+ const [switchEnabled, setSwitchEnabled] = useState(false);
1846
+ const [showSidebarUser, setShowSidebarUser] = useState(true);
1847
+ const [showSidebarSettings, setShowSidebarSettings] = useState(true);
1848
+ const [showSidebarLogout, setShowSidebarLogout] = useState(true);
1849
+ const [showHeaderActions, setShowHeaderActions] = useState(true);
1850
+ const [showHeaderBreadcrumbs, setShowHeaderBreadcrumbs] = useState(true);
1851
+ const handleFormSubmit = (e) => {
1852
+ e.preventDefault();
1853
+ toast.success("Form submitted successfully!");
1854
+ };
1855
+ return /* @__PURE__ */ jsxs(
1856
+ "div",
1857
+ {
1858
+ className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
1859
+ style: {
1860
+ paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : "80px"
1861
+ },
1862
+ children: [
1863
+ /* @__PURE__ */ jsx(
1864
+ Header,
1865
+ {
1866
+ showThemeToggle: true,
1867
+ showLanguageSelector: true,
1868
+ breadcrumbs: [
1869
+ { label: "Design System", href: "/home", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
1870
+ { label: "Página de Template" }
1871
+ ],
1872
+ renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props })
1873
+ }
1874
+ ),
1875
+ /* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsx("div", { className: "p-2 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
1876
+ /* @__PURE__ */ jsx(
1877
+ PageHeader,
1878
+ {
1879
+ title: "Página de Template",
1880
+ subtitle: "Template completo com componentes do Design System"
1881
+ }
1882
+ ),
1883
+ /* @__PURE__ */ jsxs("section", { children: [
1884
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Header with Breadcrumbs" }),
1885
+ /* @__PURE__ */ jsxs(Card, { children: [
1886
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1887
+ /* @__PURE__ */ jsx(CardTitle, { children: "Main Header" }),
1888
+ /* @__PURE__ */ jsx(CardDescription, { children: "Example of Header with 4-level breadcrumbs" })
1889
+ ] }),
1890
+ /* @__PURE__ */ jsxs(CardContent, { className: "p-0 border-t bg-background overflow-hidden rounded-b-[var(--radius-lg)]", children: [
1891
+ /* @__PURE__ */ jsx(
1892
+ Header,
1893
+ {
1894
+ className: "border-b",
1895
+ breadcrumbs: [
1896
+ { label: "Dashboard", href: "#", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
1897
+ { label: "Settings", href: "#", icon: /* @__PURE__ */ jsx(Settings, { className: "w-4 h-4" }) },
1898
+ { label: "Users", href: "#", icon: /* @__PURE__ */ jsx(Users, { className: "w-4 h-4" }) },
1899
+ { label: "Access Profile" }
1900
+ ],
1901
+ showLanguageSelector: true,
1902
+ showThemeToggle: true
1903
+ }
1904
+ ),
1905
+ /* @__PURE__ */ jsxs("div", { className: "p-6 min-h-[200px]", children: [
1906
+ /* @__PURE__ */ jsx("h4", { className: "text-lg font-semibold mb-2", children: "Example Content" }),
1907
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
1908
+ "Neste exemplo, o componente ",
1909
+ /* @__PURE__ */ jsx("strong", { children: "Header" }),
1910
+ " principal da aplicação agora suporta receber um array de breadcrumbs para navegações complexas com mais de 3 níveis."
1911
+ ] })
1912
+ ] })
1913
+ ] })
1914
+ ] })
1915
+ ] }),
1916
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
1917
+ /* @__PURE__ */ jsxs("section", { children: [
1918
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Alertas" }),
1919
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
1920
+ /* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
1921
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Informação" }),
1922
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Este é um exemplo de alerta informativo usando os componentes do Design System." })
1923
+ ] }),
1924
+ /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
1925
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Erro" }),
1926
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Ocorreu um erro ao processar sua solicitação." })
1927
+ ] }),
1928
+ /* @__PURE__ */ jsxs(Alert, { variant: "success", children: [
1929
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Sucesso" }),
1930
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Operação realizada com sucesso!" })
1931
+ ] }),
1932
+ /* @__PURE__ */ jsxs(Alert, { variant: "warning", children: [
1933
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Aviso" }),
1934
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Atenção: Esta ação não pode ser desfeita." })
1935
+ ] })
1936
+ ] })
1937
+ ] }),
1938
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
1939
+ /* @__PURE__ */ jsxs("section", { children: [
1940
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Cards & Abas" }),
1941
+ /* @__PURE__ */ jsxs(Tabs, { defaultValue: "overview", className: "w-full", children: [
1942
+ /* @__PURE__ */ jsxs(TabsList, { className: "grid w-full grid-cols-4", children: [
1943
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "overview", children: "Visão Geral" }),
1944
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "forms", children: "Formulários" }),
1945
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "data", children: "Dados" }),
1946
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "settings", children: "Configurações" })
1947
+ ] }),
1948
+ /* @__PURE__ */ jsxs(TabsContent, { value: "overview", className: "space-y-4", children: [
1949
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-3", children: [
1950
+ /* @__PURE__ */ jsxs(Card, { children: [
1951
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1952
+ /* @__PURE__ */ jsx(CardTitle, { children: "Total de Usuários" }),
1953
+ /* @__PURE__ */ jsx(CardDescription, { children: "Últimos 30 dias" })
1954
+ ] }),
1955
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
1956
+ /* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "1,234" }),
1957
+ /* @__PURE__ */ jsx(Badge, { variant: "default", className: "ml-2", children: "+12%" })
1958
+ ] }) })
1959
+ ] }),
1960
+ /* @__PURE__ */ jsxs(Card, { children: [
1961
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1962
+ /* @__PURE__ */ jsx(CardTitle, { children: "Receita Total" }),
1963
+ /* @__PURE__ */ jsx(CardDescription, { children: "Mês atual" })
1964
+ ] }),
1965
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
1966
+ /* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "$ 45.2k" }),
1967
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "ml-2", children: "+8%" })
1968
+ ] }) })
1969
+ ] }),
1970
+ /* @__PURE__ */ jsxs(Card, { children: [
1971
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1972
+ /* @__PURE__ */ jsx(CardTitle, { children: "Taxa de Conversão" }),
1973
+ /* @__PURE__ */ jsx(CardDescription, { children: "Semana atual" })
1974
+ ] }),
1975
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
1976
+ /* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "3.2%" }),
1977
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "ml-2", children: "-2%" })
1978
+ ] }) })
1979
+ ] })
1980
+ ] }),
1981
+ /* @__PURE__ */ jsxs(Card, { children: [
1982
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1983
+ /* @__PURE__ */ jsx(CardTitle, { children: "Progresso & Sliders" }),
1984
+ /* @__PURE__ */ jsx(CardDescription, { children: "Exemplo de componentes de progresso" })
1985
+ ] }),
1986
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
1987
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1988
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1989
+ /* @__PURE__ */ jsx(Label, { children: "Progresso do Projeto" }),
1990
+ /* @__PURE__ */ jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
1991
+ progress,
1992
+ "%"
1993
+ ] })
1994
+ ] }),
1995
+ /* @__PURE__ */ jsx(Progress, { value: progress, className: "w-full" }),
1996
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
1997
+ /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => setProgress(Math.max(0, progress - 10)), children: "-10%" }),
1998
+ /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => setProgress(Math.min(100, progress + 10)), children: "+10%" })
1999
+ ] })
2000
+ ] }),
2001
+ /* @__PURE__ */ jsx(Separator, {}),
2002
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2003
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2004
+ /* @__PURE__ */ jsx(Label, { children: "Volume" }),
2005
+ /* @__PURE__ */ jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
2006
+ sliderValue[0],
2007
+ "%"
2008
+ ] })
2009
+ ] }),
2010
+ /* @__PURE__ */ jsx(
2011
+ Slider,
2012
+ {
2013
+ value: sliderValue,
2014
+ onValueChange: setSliderValue,
2015
+ min: 0,
2016
+ max: 100,
2017
+ step: 1,
2018
+ className: "w-full",
2019
+ "aria-label": "Volume"
2020
+ }
2021
+ )
2022
+ ] })
2023
+ ] })
2024
+ ] })
2025
+ ] }),
2026
+ /* @__PURE__ */ jsx(TabsContent, { value: "forms", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
2027
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2028
+ /* @__PURE__ */ jsx(CardTitle, { children: "Formulário de Cadastro" }),
2029
+ /* @__PURE__ */ jsx(CardDescription, { children: "Preencha os campos abaixo para criar uma nova conta" })
2030
+ ] }),
2031
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleFormSubmit, className: "space-y-4", children: [
2032
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2033
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2034
+ /* @__PURE__ */ jsx(Label, { htmlFor: "firstName", children: "Nome" }),
2035
+ /* @__PURE__ */ jsx(Input, { id: "firstName", placeholder: "João" })
2036
+ ] }),
2037
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2038
+ /* @__PURE__ */ jsx(Label, { htmlFor: "lastName", children: "Sobrenome" }),
2039
+ /* @__PURE__ */ jsx(Input, { id: "lastName", placeholder: "Silva" })
2040
+ ] })
2041
+ ] }),
2042
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2043
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email", children: "E-mail" }),
2044
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2045
+ /* @__PURE__ */ jsx(Mail, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2046
+ /* @__PURE__ */ jsx(Input, { id: "email", type: "email", placeholder: "john@example.com", className: "pl-10" })
2047
+ ] })
2048
+ ] }),
2049
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2050
+ /* @__PURE__ */ jsx(Label, { htmlFor: "phone", children: "Telefone" }),
2051
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2052
+ /* @__PURE__ */ jsx(Phone, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2053
+ /* @__PURE__ */ jsx(Input, { id: "phone", type: "tel", placeholder: "(11) 99999-9999", className: "pl-10" })
2054
+ ] })
2055
+ ] }),
2056
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2057
+ /* @__PURE__ */ jsx(Label, { htmlFor: "role", children: "Função" }),
2058
+ /* @__PURE__ */ jsxs(Select, { children: [
2059
+ /* @__PURE__ */ jsx(SelectTrigger, { id: "role", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Selecione uma função" }) }),
2060
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
2061
+ /* @__PURE__ */ jsx(SelectItem, { value: "developer", children: "Desenvolvedor" }),
2062
+ /* @__PURE__ */ jsx(SelectItem, { value: "designer", children: "Designer" }),
2063
+ /* @__PURE__ */ jsx(SelectItem, { value: "manager", children: "Gerente" }),
2064
+ /* @__PURE__ */ jsx(SelectItem, { value: "analyst", children: "Analista" })
2065
+ ] })
2066
+ ] })
2067
+ ] }),
2068
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2069
+ /* @__PURE__ */ jsx(Label, { htmlFor: "bio", children: "Biografia" }),
2070
+ /* @__PURE__ */ jsx(
2071
+ Textarea,
2072
+ {
2073
+ id: "bio",
2074
+ placeholder: "Conte-nos um pouco sobre você...",
2075
+ rows: 4
2076
+ }
2077
+ )
2078
+ ] }),
2079
+ /* @__PURE__ */ jsx(Separator, {}),
2080
+ /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
2081
+ /* @__PURE__ */ jsx("h4", { children: "Preferências" }),
2082
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2083
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2084
+ /* @__PURE__ */ jsx(Checkbox, { id: "newsletter" }),
2085
+ /* @__PURE__ */ jsx(Label, { htmlFor: "newsletter", className: "font-normal", children: "Receber newsletter por e-mail" })
2086
+ ] }),
2087
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2088
+ /* @__PURE__ */ jsx(Checkbox, { id: "notifications" }),
2089
+ /* @__PURE__ */ jsx(Label, { htmlFor: "notifications", className: "font-normal", children: "Ativar notificações push" })
2090
+ ] }),
2091
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2092
+ /* @__PURE__ */ jsx(Checkbox, { id: "updates" }),
2093
+ /* @__PURE__ */ jsx(Label, { htmlFor: "updates", className: "font-normal", children: "Receber atualizações sobre novos recursos" })
2094
+ ] })
2095
+ ] }),
2096
+ /* @__PURE__ */ jsx(Separator, {}),
2097
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2098
+ /* @__PURE__ */ jsx(Label, { children: "Tipo de Conta" }),
2099
+ /* @__PURE__ */ jsxs(RadioGroup, { defaultValue: "personal", "aria-label": "Tipo de Conta", children: [
2100
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2101
+ /* @__PURE__ */ jsx(RadioGroupItem, { value: "personal", id: "personal" }),
2102
+ /* @__PURE__ */ jsx(Label, { htmlFor: "personal", className: "font-normal", children: "Pessoal" })
2103
+ ] }),
2104
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2105
+ /* @__PURE__ */ jsx(RadioGroupItem, { value: "business", id: "business" }),
2106
+ /* @__PURE__ */ jsx(Label, { htmlFor: "business", className: "font-normal", children: "Empresarial" })
2107
+ ] }),
2108
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2109
+ /* @__PURE__ */ jsx(RadioGroupItem, { value: "enterprise", id: "enterprise" }),
2110
+ /* @__PURE__ */ jsx(Label, { htmlFor: "enterprise", className: "font-normal", children: "Corporativo" })
2111
+ ] })
2112
+ ] })
2113
+ ] })
2114
+ ] })
2115
+ ] }) }),
2116
+ /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
2117
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Cancelar" }),
2118
+ /* @__PURE__ */ jsx(Button, { onClick: handleFormSubmit, children: "Criar Conta" })
2119
+ ] })
2120
+ ] }) }),
2121
+ /* @__PURE__ */ jsx(TabsContent, { value: "data", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
2122
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2123
+ /* @__PURE__ */ jsx(CardTitle, { children: "Lista de Usuários" }),
2124
+ /* @__PURE__ */ jsx(CardDescription, { children: "Gerenciar usuários do sistema" })
2125
+ ] }),
2126
+ /* @__PURE__ */ jsxs(CardContent, { children: [
2127
+ /* @__PURE__ */ jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2128
+ /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2129
+ /* @__PURE__ */ jsx(
2130
+ Input,
2131
+ {
2132
+ placeholder: "Buscar usuários...",
2133
+ "aria-label": "Buscar usuários",
2134
+ className: "pl-10"
2135
+ }
2136
+ )
2137
+ ] }) }),
2138
+ /* @__PURE__ */ jsx("div", { className: "rounded-[var(--radius-lg)] border border-border overflow-hidden", children: /* @__PURE__ */ jsxs(Table, { children: [
2139
+ /* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
2140
+ /* @__PURE__ */ jsx(TableHead, { children: "Name" }),
2141
+ /* @__PURE__ */ jsx(TableHead, { children: "Email" }),
2142
+ /* @__PURE__ */ jsx(TableHead, { children: "Role" }),
2143
+ /* @__PURE__ */ jsx(TableHead, { children: "Status" }),
2144
+ /* @__PURE__ */ jsx(TableHead, { className: "text-right", children: "Actions" })
2145
+ ] }) }),
2146
+ /* @__PURE__ */ jsxs(TableBody, { children: [
2147
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2148
+ /* @__PURE__ */ jsx(TableCell, { children: "Ana Silva" }),
2149
+ /* @__PURE__ */ jsx(TableCell, { children: "ana.silva@example.com" }),
2150
+ /* @__PURE__ */ jsx(TableCell, { children: "Developer" }),
2151
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "default", children: "Active" }) }),
2152
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2153
+ ] }),
2154
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2155
+ /* @__PURE__ */ jsx(TableCell, { children: "Bruno Costa" }),
2156
+ /* @__PURE__ */ jsx(TableCell, { children: "bruno.costa@example.com" }),
2157
+ /* @__PURE__ */ jsx(TableCell, { children: "Designer" }),
2158
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "default", children: "Active" }) }),
2159
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2160
+ ] }),
2161
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2162
+ /* @__PURE__ */ jsx(TableCell, { children: "Carla Oliveira" }),
2163
+ /* @__PURE__ */ jsx(TableCell, { children: "carla.oliveira@example.com" }),
2164
+ /* @__PURE__ */ jsx(TableCell, { children: "Manager" }),
2165
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "Away" }) }),
2166
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2167
+ ] }),
2168
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2169
+ /* @__PURE__ */ jsx(TableCell, { children: "Diego Santos" }),
2170
+ /* @__PURE__ */ jsx(TableCell, { children: "diego.santos@example.com" }),
2171
+ /* @__PURE__ */ jsx(TableCell, { children: "Analyst" }),
2172
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Inactive" }) }),
2173
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2174
+ ] })
2175
+ ] })
2176
+ ] }) })
2177
+ ] }),
2178
+ /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between items-center", children: [
2179
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Showing 4 of 127 users" }),
2180
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
2181
+ /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Previous" }),
2182
+ /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Next" })
2183
+ ] })
2184
+ ] })
2185
+ ] }) }),
2186
+ /* @__PURE__ */ jsx(TabsContent, { value: "settings", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
2187
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2188
+ /* @__PURE__ */ jsx(CardTitle, { children: "Configurações do Sistema" }),
2189
+ /* @__PURE__ */ jsx(CardDescription, { children: "Gerenciar configurações gerais" })
2190
+ ] }),
2191
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
2192
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2193
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
2194
+ /* @__PURE__ */ jsx(Label, { htmlFor: "dark-mode", children: "Dark Mode" }),
2195
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Enable dark theme in the interface" })
2196
+ ] }),
2197
+ /* @__PURE__ */ jsx(Switch, { id: "dark-mode", checked: switchEnabled, onCheckedChange: setSwitchEnabled })
2198
+ ] }),
2199
+ /* @__PURE__ */ jsx(Separator, {}),
2200
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2201
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
2202
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email-notifications", children: "Email Notifications" }),
2203
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Receive important updates by email" })
2204
+ ] }),
2205
+ /* @__PURE__ */ jsx(Switch, { id: "email-notifications", defaultChecked: true })
2206
+ ] }),
2207
+ /* @__PURE__ */ jsx(Separator, {}),
2208
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2209
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
2210
+ /* @__PURE__ */ jsx(Label, { htmlFor: "push-notifications", children: "Push Notifications" }),
2211
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Receive instant notifications in the browser" })
2212
+ ] }),
2213
+ /* @__PURE__ */ jsx(Switch, { id: "push-notifications" })
2214
+ ] }),
2215
+ /* @__PURE__ */ jsx(Separator, {}),
2216
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2217
+ /* @__PURE__ */ jsx(Label, { children: "Language" }),
2218
+ /* @__PURE__ */ jsxs(Select, { defaultValue: "pt-br", children: [
2219
+ /* @__PURE__ */ jsx(SelectTrigger, { "aria-label": "Idioma do sistema", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
2220
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
2221
+ /* @__PURE__ */ jsx(SelectItem, { value: "pt-br", children: "Portuguese (Brazil)" }),
2222
+ /* @__PURE__ */ jsx(SelectItem, { value: "en", children: "English" }),
2223
+ /* @__PURE__ */ jsx(SelectItem, { value: "es", children: "Spanish" })
2224
+ ] })
2225
+ ] })
2226
+ ] }),
2227
+ /* @__PURE__ */ jsx(Separator, {}),
2228
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2229
+ /* @__PURE__ */ jsx(Label, { children: "Time Zone" }),
2230
+ /* @__PURE__ */ jsxs(Select, { defaultValue: "america-sao-paulo", children: [
2231
+ /* @__PURE__ */ jsx(SelectTrigger, { "aria-label": "Fuso horário", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
2232
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
2233
+ /* @__PURE__ */ jsx(SelectItem, { value: "america-sao-paulo", children: "America/Sao Paulo (GMT-3)" }),
2234
+ /* @__PURE__ */ jsx(SelectItem, { value: "america-new-york", children: "America/New York (GMT-5)" }),
2235
+ /* @__PURE__ */ jsx(SelectItem, { value: "europe-london", children: "Europe/London (GMT+0)" })
2236
+ ] })
2237
+ ] })
2238
+ ] })
2239
+ ] }),
2240
+ /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
2241
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Restaurar Padrões" }),
2242
+ /* @__PURE__ */ jsx(Button, { children: "Salvar Alterações" })
2243
+ ] })
2244
+ ] }) })
2245
+ ] })
2246
+ ] }),
2247
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2248
+ /* @__PURE__ */ jsxs("section", { children: [
2249
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Botões" }),
2250
+ /* @__PURE__ */ jsxs(Card, { children: [
2251
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2252
+ /* @__PURE__ */ jsx(CardTitle, { children: "Variações de Botão" }),
2253
+ /* @__PURE__ */ jsx(CardDescription, { children: "Diferentes estilos e tamanhos de botões" })
2254
+ ] }),
2255
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
2256
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2257
+ /* @__PURE__ */ jsx(Label, { children: "Variants" }),
2258
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2259
+ /* @__PURE__ */ jsx(Button, { variant: "default", children: "Default" }),
2260
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Secondary" }),
2261
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Outline" }),
2262
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", children: "Ghost" }),
2263
+ /* @__PURE__ */ jsx(Button, { variant: "link", children: "Link" }),
2264
+ /* @__PURE__ */ jsx(Button, { variant: "destructive", children: "Destructive" })
2265
+ ] })
2266
+ ] }),
2267
+ /* @__PURE__ */ jsx(Separator, {}),
2268
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2269
+ /* @__PURE__ */ jsx(Label, { children: "Sizes" }),
2270
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
2271
+ /* @__PURE__ */ jsx(Button, { size: "sm", children: "Small" }),
2272
+ /* @__PURE__ */ jsx(Button, { size: "default", children: "Default" }),
2273
+ /* @__PURE__ */ jsx(Button, { size: "lg", children: "Large" }),
2274
+ /* @__PURE__ */ jsx(Button, { size: "icon", "aria-label": "Configurações", children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }) })
2275
+ ] })
2276
+ ] }),
2277
+ /* @__PURE__ */ jsx(Separator, {}),
2278
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2279
+ /* @__PURE__ */ jsx(Label, { children: "With Icons" }),
2280
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2281
+ /* @__PURE__ */ jsxs(Button, { children: [
2282
+ /* @__PURE__ */ jsx(User, { className: "mr-2 h-4 w-4" }),
2283
+ "Profile"
2284
+ ] }),
2285
+ /* @__PURE__ */ jsxs(Button, { variant: "secondary", children: [
2286
+ /* @__PURE__ */ jsx(Mail, { className: "mr-2 h-4 w-4" }),
2287
+ "Messages"
2288
+ ] }),
2289
+ /* @__PURE__ */ jsxs(Button, { variant: "outline", children: [
2290
+ /* @__PURE__ */ jsx(Calendar, { className: "mr-2 h-4 w-4" }),
2291
+ "Schedule"
2292
+ ] })
2293
+ ] })
2294
+ ] }),
2295
+ /* @__PURE__ */ jsx(Separator, {}),
2296
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2297
+ /* @__PURE__ */ jsx(Label, { children: "States" }),
2298
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2299
+ /* @__PURE__ */ jsx(Button, { disabled: true, children: "Disabled" }),
2300
+ /* @__PURE__ */ jsx(Button, { variant: "outline", disabled: true, children: "Outline Disabled" })
2301
+ ] })
2302
+ ] })
2303
+ ] })
2304
+ ] })
2305
+ ] }),
2306
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2307
+ /* @__PURE__ */ jsxs("section", { children: [
2308
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Badges" }),
2309
+ /* @__PURE__ */ jsxs(Card, { children: [
2310
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2311
+ /* @__PURE__ */ jsx(CardTitle, { children: "Variações de Badge" }),
2312
+ /* @__PURE__ */ jsx(CardDescription, { children: "Estilos diferentes de badge para status e tags" })
2313
+ ] }),
2314
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2315
+ /* @__PURE__ */ jsx(Badge, { variant: "default", children: "Padrão" }),
2316
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "Secundário" }),
2317
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Contorno" }),
2318
+ /* @__PURE__ */ jsx(Badge, { variant: "destructive", children: "Destrutivo" }),
2319
+ /* @__PURE__ */ jsx(Badge, { className: "bg-success text-success-foreground", children: "Sucesso" }),
2320
+ /* @__PURE__ */ jsx(Badge, { className: "bg-warning text-warning-foreground", children: "Aviso" }),
2321
+ /* @__PURE__ */ jsx(Badge, { className: "bg-info text-info-foreground", children: "Info" })
2322
+ ] }) })
2323
+ ] })
2324
+ ] }),
2325
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2326
+ /* @__PURE__ */ jsxs("section", { children: [
2327
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Diálogos" }),
2328
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2329
+ /* @__PURE__ */ jsxs(Card, { children: [
2330
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2331
+ /* @__PURE__ */ jsx(CardTitle, { children: "Diálogo" }),
2332
+ /* @__PURE__ */ jsx(CardDescription, { children: "Um modal interativo básico" })
2333
+ ] }),
2334
+ /* @__PURE__ */ jsx(CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxs(Dialog, { children: [
2335
+ /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Editar Perfil" }) }),
2336
+ /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [
2337
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
2338
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Editar Perfil" }),
2339
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Faça alterações no seu perfil aqui. Clique em salvar quando terminar." })
2340
+ ] }),
2341
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
2342
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2343
+ /* @__PURE__ */ jsx(Label, { htmlFor: "name", className: "text-right", children: "Nome" }),
2344
+ /* @__PURE__ */ jsx(Input, { id: "name", defaultValue: "John Doe", className: "col-span-3" })
2345
+ ] }),
2346
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2347
+ /* @__PURE__ */ jsx(Label, { htmlFor: "username", className: "text-right", children: "Usuário" }),
2348
+ /* @__PURE__ */ jsx(Input, { id: "username", defaultValue: "@johndoe", className: "col-span-3" })
2349
+ ] })
2350
+ ] }),
2351
+ /* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(Button, { type: "submit", children: "Atualizar" }) })
2352
+ ] })
2353
+ ] }) })
2354
+ ] }),
2355
+ /* @__PURE__ */ jsxs(Card, { children: [
2356
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2357
+ /* @__PURE__ */ jsx(CardTitle, { children: "Alerta de Diálogo" }),
2358
+ /* @__PURE__ */ jsx(CardDescription, { children: "Um alerta para decisões importantes" })
2359
+ ] }),
2360
+ /* @__PURE__ */ jsx(CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxs(AlertDialog, { children: [
2361
+ /* @__PURE__ */ jsx(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "destructive", children: "Excluir Conta" }) }),
2362
+ /* @__PURE__ */ jsxs(AlertDialogContent, { className: "sm:max-w-[425px]", children: [
2363
+ /* @__PURE__ */ jsxs(AlertDialogHeader, { children: [
2364
+ /* @__PURE__ */ jsx(AlertDialogTitle, { children: "Você tem certeza absoluta?" }),
2365
+ /* @__PURE__ */ jsx(AlertDialogDescription, { children: "Esta ação não pode ser desfeita. Isso excluirá permanentemente sua conta e removerá seus dados de nossos servidores." })
2366
+ ] }),
2367
+ /* @__PURE__ */ jsxs(AlertDialogFooter, { children: [
2368
+ /* @__PURE__ */ jsx(AlertDialogCancel, { children: "Cancelar" }),
2369
+ /* @__PURE__ */ jsx(AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: "Continuar" })
2370
+ ] })
2371
+ ] })
2372
+ ] }) })
2373
+ ] })
2374
+ ] })
2375
+ ] }),
2376
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2377
+ /* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsx(MapShowcase, {}) }),
2378
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2379
+ /* @__PURE__ */ jsxs("section", { children: [
2380
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Variações de Cabeçalho" }),
2381
+ /* @__PURE__ */ jsxs(Card, { children: [
2382
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2383
+ /* @__PURE__ */ jsx(CardTitle, { children: "Configurações do Cabeçalho Principal" }),
2384
+ /* @__PURE__ */ jsx(CardDescription, { children: "O Header é focado em navegação (breadcrumbs) e ações contextuais rápidas." })
2385
+ ] }),
2386
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
2387
+ /* @__PURE__ */ jsxs("div", { className: "p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2388
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children: "Elementos Visíveis" }),
2389
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6", children: [
2390
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2391
+ /* @__PURE__ */ jsx(Switch, { id: "header-actions", checked: showHeaderActions, onCheckedChange: setShowHeaderActions }),
2392
+ /* @__PURE__ */ jsx(Label, { htmlFor: "header-actions", className: "cursor-pointer", children: "Botões de Ação" })
2393
+ ] }),
2394
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2395
+ /* @__PURE__ */ jsx(Switch, { id: "header-bread", checked: showHeaderBreadcrumbs, onCheckedChange: setShowHeaderBreadcrumbs }),
2396
+ /* @__PURE__ */ jsx(Label, { htmlFor: "header-bread", className: "cursor-pointer", children: "Breadcrumbs" })
2397
+ ] })
2398
+ ] })
2399
+ ] }),
2400
+ /* @__PURE__ */ jsxs("div", { className: "relative border rounded-[var(--radius-lg)] bg-muted/10 overflow-hidden shadow-inner", children: [
2401
+ /* @__PURE__ */ jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children: "Visualização" }),
2402
+ /* @__PURE__ */ jsx(
2403
+ Header,
2404
+ {
2405
+ title: !showHeaderBreadcrumbs ? "Página Atual" : void 0,
2406
+ breadcrumbs: showHeaderBreadcrumbs ? [
2407
+ { label: "Xertica UI", href: "#", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
2408
+ { label: "Configurações", href: "#" },
2409
+ { label: "Perfil" }
2410
+ ] : void 0,
2411
+ actions: showHeaderActions ? [
2412
+ { id: "notify", icon: /* @__PURE__ */ jsx(Bell, { className: "w-5 h-5" }), onClick: () => toast("Notificações abertas") },
2413
+ { id: "mail", label: "Mensagens", icon: /* @__PURE__ */ jsx(Mail, { className: "w-5 h-5" }), onClick: () => toast("Mensagens abertas") }
2414
+ ] : void 0
2415
+ }
2416
+ ),
2417
+ /* @__PURE__ */ jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children: "Área de Conteúdo da Página" })
2418
+ ] })
2419
+ ] })
2420
+ ] })
2421
+ ] }),
2422
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2423
+ /* @__PURE__ */ jsxs("section", { children: [
2424
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Variações da Sidebar" }),
2425
+ /* @__PURE__ */ jsxs(Card, { children: [
2426
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2427
+ /* @__PURE__ */ jsx(CardTitle, { children: "Sidebar Modo Assistente vs Padrão" }),
2428
+ /* @__PURE__ */ jsx(CardDescription, { children: "A Sidebar suporta flexibilidade através da propriedade variant." })
2429
+ ] }),
2430
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(Tabs, { defaultValue: "assistant", className: "w-full", children: [
2431
+ /* @__PURE__ */ jsxs(TabsList, { className: "mb-4", children: [
2432
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "assistant", children: "Modo Assistente" }),
2433
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "default", children: "Modo Padrão" })
2434
+ ] }),
2435
+ /* @__PURE__ */ jsxs("div", { className: "mb-6 p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2436
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children: "Configurações do Rodapé" }),
2437
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-6 mt-2", children: [
2438
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2439
+ /* @__PURE__ */ jsx(Switch, { id: "show-user", checked: showSidebarUser, onCheckedChange: setShowSidebarUser }),
2440
+ /* @__PURE__ */ jsx(Label, { htmlFor: "show-user", className: "cursor-pointer", children: "Perfil do Usuário" })
2441
+ ] }),
2442
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2443
+ /* @__PURE__ */ jsx(Switch, { id: "show-settings", checked: showSidebarSettings, onCheckedChange: setShowSidebarSettings }),
2444
+ /* @__PURE__ */ jsx(Label, { htmlFor: "show-settings", className: "cursor-pointer", children: "Configurações" })
2445
+ ] }),
2446
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2447
+ /* @__PURE__ */ jsx(Switch, { id: "show-logout", checked: showSidebarLogout, onCheckedChange: setShowSidebarLogout }),
2448
+ /* @__PURE__ */ jsx(Label, { htmlFor: "show-logout", className: "cursor-pointer", children: "Botão de Sair" })
2449
+ ] })
2450
+ ] }),
2451
+ /* @__PURE__ */ jsxs("div", { className: "mt-6 pt-6 border-t", children: [
2452
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
2453
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold", children: "Largura da Sidebar (Desktop)" }),
2454
+ /* @__PURE__ */ jsxs("span", { className: "text-xs font-mono bg-muted px-2 py-1 rounded", children: [
2455
+ sidebarWidth,
2456
+ "px"
2457
+ ] })
2458
+ ] }),
2459
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
2460
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground w-12 text-right", children: "240px" }),
2461
+ /* @__PURE__ */ jsx(
2462
+ Slider,
2463
+ {
2464
+ value: [sidebarWidth],
2465
+ onValueChange: (val) => setSidebarWidth(val[0]),
2466
+ min: 240,
2467
+ max: 450,
2468
+ step: 10,
2469
+ className: "flex-1",
2470
+ "aria-label": "Largura da Sidebar"
2471
+ }
2472
+ ),
2473
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground w-12", children: "450px" })
2474
+ ] })
2475
+ ] })
2476
+ ] }),
2477
+ /* @__PURE__ */ jsx(TabsContent, { value: "assistant", children: /* @__PURE__ */ jsxs("div", { className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden", style: { transform: "translateZ(0)" }, children: [
2478
+ /* @__PURE__ */ jsx(
2479
+ Sidebar,
2480
+ {
2481
+ expanded: true,
2482
+ width: sidebarWidth,
2483
+ onToggle: () => {
2484
+ },
2485
+ user: { email: "admin@xertica.com" },
2486
+ onLogout: () => toast("Saiu"),
2487
+ location: { pathname: "/assistant/current" },
2488
+ navigate: () => {
2489
+ },
2490
+ variant: "assistant",
2491
+ search: {
2492
+ show: true,
2493
+ placeholder: "Buscar tópicos...",
2494
+ filter: {
2495
+ show: true,
2496
+ content: /* @__PURE__ */ jsxs("div", { className: "p-2 space-y-2", children: [
2497
+ /* @__PURE__ */ jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children: "Filtrar por Status" }),
2498
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 p-1", children: [
2499
+ /* @__PURE__ */ jsx(Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children: "Ativo" }),
2500
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10", children: "Arquivado" }),
2501
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10", children: "Pendente" })
2502
+ ] })
2503
+ ] })
2504
+ }
2505
+ },
2506
+ fixedArea: {
2507
+ show: true,
2508
+ content: /* @__PURE__ */ jsxs(Button, { className: "w-full bg-sidebar-primary hover:bg-sidebar-primary/90 text-sidebar-primary-foreground shadow-lg font-bold border-none transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98]", children: [
2509
+ /* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 mr-2" }),
2510
+ "Nova Conversa"
2511
+ ] })
2512
+ },
2513
+ navigationGroups: [
2514
+ {
2515
+ id: "recent",
2516
+ label: "Recentes",
2517
+ icon: Clock,
2518
+ items: [
2519
+ {
2520
+ path: "/assistant/refatoracao",
2521
+ label: "Refatoração da Sidebar",
2522
+ description: "Ativo agora",
2523
+ actions: [
2524
+ { label: "Renomear", icon: FileEdit, onClick: () => toast("Abrir renomear...") },
2525
+ {
2526
+ label: "Mover",
2527
+ icon: ArrowRightLeft,
2528
+ children: [
2529
+ { label: "Projetos Ativos", onClick: () => toast("Movido para Projetos Ativos") },
2530
+ { label: "Monitoramento", onClick: () => toast("Movido para Monitoramento") },
2531
+ { label: "Arquivar", onClick: () => toast("Movido para Arquivo") }
2532
+ ]
2533
+ },
2534
+ { label: "Limpar", icon: Trash2, onClick: () => toast("Histórico Limpo!"), variant: "destructive" }
2535
+ ]
2536
+ }
2537
+ ]
2538
+ },
2539
+ {
2540
+ id: "projects",
2541
+ label: "Monitoramento de Projetos",
2542
+ icon: Map$1,
2543
+ actions: [
2544
+ { label: "Nova Categoria", icon: Plus, onClick: () => toast("Criar nova categoria...") },
2545
+ { label: "Arquivar Grupo", icon: Archive, onClick: () => toast("Arquivando grupo...") }
2546
+ ],
2547
+ items: [
2548
+ {
2549
+ path: "/assistant/br163",
2550
+ label: "Restauração BR-163",
2551
+ icon: () => /* @__PURE__ */ jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-500" }),
2552
+ description: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5 min-w-[160px]", children: [
2553
+ /* @__PURE__ */ jsx(Progress, { value: 67, className: "h-1.5 bg-sidebar-foreground/10" }),
2554
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-[10px] text-sidebar-foreground/60", children: [
2555
+ /* @__PURE__ */ jsx("span", { children: "Cuiabá, MT" }),
2556
+ /* @__PURE__ */ jsx("span", { children: "67%" })
2557
+ ] })
2558
+ ] })
2559
+ }
2560
+ ]
2561
+ }
2562
+ ],
2563
+ footer: {
2564
+ showUser: showSidebarUser,
2565
+ showSettings: showSidebarSettings,
2566
+ showLogout: showSidebarLogout
2567
+ }
2568
+ }
2569
+ ),
2570
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300", style: { left: `${sidebarWidth}px` }, children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children: "Conteúdo do Modo Assistente" }) })
2571
+ ] }) }),
2572
+ /* @__PURE__ */ jsx(TabsContent, { value: "default", children: /* @__PURE__ */ jsxs("div", { className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden", style: { transform: "translateZ(0)" }, children: [
2573
+ /* @__PURE__ */ jsx(
2574
+ Sidebar,
2575
+ {
2576
+ expanded: true,
2577
+ width: sidebarWidth,
2578
+ onToggle: () => {
2579
+ },
2580
+ user: {
2581
+ name: "Ariel Santos",
2582
+ email: "admin@xertica.com",
2583
+ avatar: "https://github.com/shadcn.png"
2584
+ },
2585
+ onLogout: () => toast("Saiu"),
2586
+ onSettingsClick: () => toast("Configurações clicadas"),
2587
+ location: { pathname: "/home" },
2588
+ navigate: () => {
2589
+ },
2590
+ variant: "default",
2591
+ routes: [
2592
+ { path: "/home", label: "Início", icon: Home },
2593
+ { path: "/dashboard", label: "Dashboard", icon: Users },
2594
+ { path: "/settings", label: "Configurações", icon: Settings }
2595
+ ],
2596
+ footer: {
2597
+ showUser: showSidebarUser,
2598
+ showSettings: showSidebarSettings,
2599
+ showLogout: showSidebarLogout
2600
+ }
2601
+ }
2602
+ ),
2603
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300", style: { left: `${sidebarWidth}px` }, children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children: "Navegação Tradicional do Sistema" }) })
2604
+ ] }) })
2605
+ ] }) })
2606
+ ] })
2607
+ ] }),
2608
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2609
+ /* @__PURE__ */ jsxs(Card, { className: "mt-8", children: [
2610
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2611
+ /* @__PURE__ */ jsx(CardTitle, { children: "Template Pronto para CLI" }),
2612
+ /* @__PURE__ */ jsx(CardDescription, { children: "Como usar este template" })
2613
+ ] }),
2614
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
2615
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
2616
+ "Este template está pronto para ser usado como base para novos projetos. Todos os componentes usam as variáveis CSS definidas em ",
2617
+ /* @__PURE__ */ jsx("code", { className: "bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]", children: "/styles/xertica/tokens.css" }),
2618
+ "and follow the Xertica UI CLI-first architecture."
2619
+ ] }),
2620
+ /* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
2621
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Dica" }),
2622
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Copie este arquivo como ponto de partida para suas páginas. Todos os componentes são reutilizáveis e customizáveis através de variáveis CSS." })
2623
+ ] })
2624
+ ] })
2625
+ ] })
2626
+ ] }) }) }) })
2627
+ ]
2628
+ }
2629
+ );
2630
+ }
2631
+ function TemplatePage({ user, onLogout }) {
2632
+ const layout = useOptionalLayout();
2633
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React__default.useState(false);
2634
+ const [localAssistantExpanded, setLocalAssistantExpanded] = React__default.useState(false);
2635
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
2636
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
2637
+ const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
2638
+ const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
2639
+ const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
2640
+ const location = useLocation();
2641
+ const navigate = useNavigate();
2642
+ return /* @__PURE__ */ jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
2643
+ /* @__PURE__ */ jsx(
2644
+ Sidebar,
2645
+ {
2646
+ expanded: sidebarExpanded,
2647
+ width: sidebarWidth,
2648
+ onToggle: toggleSidebar,
2649
+ user: {
2650
+ ...user,
2651
+ name: "Ariel Santos",
2652
+ avatar: "https://github.com/shadcn.png"
2653
+ },
2654
+ onLogout,
2655
+ onSettingsClick: () => navigate("/settings"),
2656
+ location,
2657
+ navigate,
2658
+ routes
2659
+ }
2660
+ ),
2661
+ /* @__PURE__ */ jsx(
2662
+ TemplateContent,
2663
+ {
2664
+ user,
2665
+ onLogout,
2666
+ onSettings: () => navigate("/settings")
2667
+ }
2668
+ ),
2669
+ /* @__PURE__ */ jsx(
2670
+ XerticaAssistant,
2671
+ {
2672
+ isExpanded: assistenteExpanded,
2673
+ onToggle: toggleAssistente,
2674
+ onEvaluation: () => {
2675
+ }
2676
+ }
2677
+ )
2678
+ ] });
2679
+ }
2680
+ function VerifyEmailPage() {
2681
+ var _a;
2682
+ const navigate = useNavigate();
2683
+ const location = useLocation();
2684
+ const email = ((_a = location.state) == null ? void 0 : _a.email) || "your@email.com";
2685
+ const [isResending, setIsResending] = useState(false);
2686
+ const [resendSuccess, setResendSuccess] = useState(false);
2687
+ const handleResend = async () => {
2688
+ setIsResending(true);
2689
+ setResendSuccess(false);
2690
+ await new Promise((resolve) => setTimeout(resolve, 1500));
2691
+ setIsResending(false);
2692
+ setResendSuccess(true);
2693
+ setTimeout(() => setResendSuccess(false), 3e3);
2694
+ };
2695
+ const handleSocialLogin = (_provider) => {
2696
+ };
2697
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
2698
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
2699
+ /* @__PURE__ */ jsx(
2700
+ ImageWithFallback,
2701
+ {
2702
+ src: "https://images.unsplash.com/photo-1563986768609-322da13575f3?w=1200&h=800&fit=crop&auto=format",
2703
+ alt: "E-mail e comunicação",
2704
+ className: "absolute inset-0 w-full h-full object-cover"
2705
+ }
2706
+ ),
2707
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
2708
+ ] }),
2709
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
2710
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
2711
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
2712
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
2713
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
2714
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
2715
+ XerticaLogo,
2716
+ {
2717
+ className: "h-12 w-auto text-primary dark:text-foreground",
2718
+ variant: "theme"
2719
+ }
2720
+ ) }),
2721
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx("div", { className: "p-4 bg-primary/10 rounded-[var(--radius)]", children: /* @__PURE__ */ jsx(Mail, { className: "w-12 h-12 text-primary" }) }) }),
2722
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Verifique seu e-mail" }),
2723
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: "Enviamos as instruções para redefinir sua senha para:" }),
2724
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-primary", children: email })
2725
+ ] }),
2726
+ /* @__PURE__ */ jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-3", children: [
2727
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Siga as instruções no e-mail para redefinir sua senha. O link expira em 24 horas." }),
2728
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2 text-muted-foreground", children: [
2729
+ /* @__PURE__ */ jsx(CheckCircle2, { className: "w-4 h-4 mt-0.5 flex-shrink-0 text-[var(--chart-2)]" }),
2730
+ /* @__PURE__ */ jsx("span", { className: "text-sm", children: "Verifique sua pasta de spam se não encontrar o e-mail" })
2731
+ ] })
2732
+ ] }),
2733
+ resendSuccess && /* @__PURE__ */ jsxs("div", { className: "bg-[var(--chart-2)]/10 border border-[var(--chart-2)]/20 rounded-[var(--radius)] p-3 flex items-center gap-2", children: [
2734
+ /* @__PURE__ */ jsx(CheckCircle2, { className: "w-5 h-5 text-[var(--chart-2)] flex-shrink-0" }),
2735
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-[var(--chart-2)]", children: "E-mail reenviado com sucesso!" })
2736
+ ] }),
2737
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2738
+ /* @__PURE__ */ jsx("p", { className: "text-center text-muted-foreground", children: "Não recebeu o e-mail?" }),
2739
+ /* @__PURE__ */ jsx(
2740
+ Button,
2741
+ {
2742
+ variant: "outline",
2743
+ className: "w-full",
2744
+ onClick: handleResend,
2745
+ disabled: isResending,
2746
+ children: isResending ? "Reenviando..." : "Reenviar e-mail"
2747
+ }
2748
+ ),
2749
+ /* @__PURE__ */ jsxs(
2750
+ Button,
2751
+ {
2752
+ type: "button",
2753
+ onClick: () => navigate("/login"),
2754
+ variant: "outline",
2755
+ className: "w-full text-muted-foreground hover:text-foreground",
2756
+ children: [
2757
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4 mr-2" }),
2758
+ "Voltar para o login"
2759
+ ]
2760
+ }
2761
+ )
2762
+ ] }),
2763
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2764
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
2765
+ /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
2766
+ ] }),
2767
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2768
+ /* @__PURE__ */ jsxs(
2769
+ Button,
2770
+ {
2771
+ type: "button",
2772
+ variant: "outline",
2773
+ className: "w-full justify-center",
2774
+ onClick: () => handleSocialLogin(),
2775
+ children: [
2776
+ /* @__PURE__ */ jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
2777
+ /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
2778
+ /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
2779
+ /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
2780
+ /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
2781
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
2782
+ ] }),
2783
+ /* @__PURE__ */ jsx("span", { children: "Entrar com Google" })
2784
+ ]
2785
+ }
2786
+ ),
2787
+ /* @__PURE__ */ jsxs(
2788
+ Button,
2789
+ {
2790
+ type: "button",
2791
+ variant: "outline",
2792
+ className: "w-full justify-center",
2793
+ onClick: () => handleSocialLogin(),
2794
+ children: [
2795
+ /* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
2796
+ /* @__PURE__ */ jsx("span", { children: "Entrar com MT Login" })
2797
+ ]
2798
+ }
2799
+ ),
2800
+ /* @__PURE__ */ jsx(
2801
+ Button,
2802
+ {
2803
+ type: "button",
2804
+ variant: "outline",
2805
+ className: "w-full justify-center font-normal",
2806
+ onClick: () => handleSocialLogin(),
2807
+ children: /* @__PURE__ */ jsxs("span", { children: [
2808
+ "Entrar com ",
2809
+ /* @__PURE__ */ jsx("strong", { className: "font-semibold", children: "gov.br" })
2810
+ ] })
2811
+ }
2812
+ )
2813
+ ] })
2814
+ ] })
2815
+ ] })
2816
+ ] });
2817
+ }
2818
+ export {
2819
+ ForgotPasswordPage as F,
2820
+ HomeContent as H,
2821
+ LoginPage as L,
2822
+ ResetPasswordPage as R,
2823
+ TemplateContent as T,
2824
+ VerifyEmailPage as V,
2825
+ HomePage as a,
2826
+ TemplatePage as b
2827
+ };