xertica-ui 2.9.7 → 2.9.9

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