@grupo-elo-editorial/shared-ui-react 1.3.7 → 1.3.8

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.
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { clsx as J } from "clsx";
3
- import { twMerge as ee } from "tailwind-merge";
4
- import { jsx as e, jsxs as i, Fragment as _ } from "react/jsx-runtime";
2
+ import { clsx as Z } from "clsx";
3
+ import { twMerge as J } from "tailwind-merge";
4
+ import { jsx as e, jsxs as i, Fragment as A } from "react/jsx-runtime";
5
5
  import { forwardRef as N, useState as k, useEffect as D } from "react";
6
- import { Loader2 as V, User as te, Star as ae, CheckIcon as Q, ChevronDownIcon as L, ChevronUpIcon as re, CircleIcon as oe, ShoppingCart as R, Heart as ie, Search as W, X as ne, Minus as se, Plus as le, ChevronRight as K, FileX as de, Package as ce, AlertCircle as ue, RefreshCw as me, Home as fe, XIcon as O, Accessibility as ge, ZoomOut as pe, ZoomIn as ve, Moon as be, Sun as he, ChevronLeft as xe, Menu as Ne, ChevronDown as X, Instagram as we, Facebook as ye, Youtube as ke, Linkedin as ze, Mail as Ce } from "lucide-react";
6
+ import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as L, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as R, Heart as oe, Search as Q, X as ie, Minus as ne, Plus as se, ChevronRight as W, FileX as le, Package as de, AlertCircle as ce, RefreshCw as ue, Home as me, XIcon as K, Accessibility as fe, ZoomOut as ge, ZoomIn as pe, Moon as ve, Sun as be, ChevronLeft as he, Menu as xe, ChevronDown as O, Instagram as Ne, Facebook as we, Youtube as ye, Linkedin as ke, Mail as ze } from "lucide-react";
7
7
  import { cva as P } from "class-variance-authority";
8
8
  import * as z from "@radix-ui/react-select";
9
9
  import * as F from "@radix-ui/react-checkbox";
10
10
  import * as B from "@radix-ui/react-radio-group";
11
11
  import * as q from "@radix-ui/react-switch";
12
- import { Slot as Se } from "@radix-ui/react-slot";
12
+ import { Slot as Ce } from "@radix-ui/react-slot";
13
13
  import * as M from "@radix-ui/react-accordion";
14
14
  import * as I from "@radix-ui/react-tooltip";
15
15
  import { toast as na } from "sonner";
@@ -17,9 +17,9 @@ import { Progress as la } from "@radix-ui/react-progress";
17
17
  import * as w from "@radix-ui/react-dialog";
18
18
  import * as S from "@radix-ui/react-navigation-menu";
19
19
  function o(...a) {
20
- return ee(J(a));
20
+ return J(Z(a));
21
21
  }
22
- const Ie = P(
22
+ const Se = P(
23
23
  "inline-flex items-center justify-center gap-2 rounded-lg font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 whitespace-nowrap",
24
24
  {
25
25
  variants: {
@@ -55,19 +55,19 @@ const Ie = P(
55
55
  leftIcon: c,
56
56
  rightIcon: l,
57
57
  children: u,
58
- disabled: f,
58
+ disabled: m,
59
59
  ...g
60
- }, b) => /* @__PURE__ */ e(
60
+ }, v) => /* @__PURE__ */ e(
61
61
  "button",
62
62
  {
63
- className: o(Ie({ variant: t, size: r, fullWidth: n, className: a })),
64
- ref: b,
65
- disabled: f || s,
63
+ className: o(Se({ variant: t, size: r, fullWidth: n, className: a })),
64
+ ref: v,
65
+ disabled: m || s,
66
66
  ...g,
67
- children: s ? /* @__PURE__ */ i(_, { children: [
67
+ children: s ? /* @__PURE__ */ i(A, { children: [
68
68
  /* @__PURE__ */ e(V, { className: "h-4 w-4 animate-spin" }),
69
69
  u && /* @__PURE__ */ e("span", { children: u })
70
- ] }) : /* @__PURE__ */ i(_, { children: [
70
+ ] }) : /* @__PURE__ */ i(A, { children: [
71
71
  c && /* @__PURE__ */ e("span", { className: "inline-flex", children: c }),
72
72
  u,
73
73
  l && /* @__PURE__ */ e("span", { className: "inline-flex", children: l })
@@ -76,7 +76,7 @@ const Ie = P(
76
76
  )
77
77
  );
78
78
  C.displayName = "Button";
79
- const je = N(
79
+ const Ie = N(
80
80
  ({ className: a, error: t, helperText: r, ...n }, s) => /* @__PURE__ */ i("div", { className: "w-full", children: [
81
81
  /* @__PURE__ */ e(
82
82
  "textarea",
@@ -106,8 +106,8 @@ const je = N(
106
106
  )
107
107
  ] })
108
108
  );
109
- je.displayName = "Textarea";
110
- const De = P(
109
+ Ie.displayName = "Textarea";
110
+ const je = P(
111
111
  "inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
112
112
  {
113
113
  variants: {
@@ -131,12 +131,12 @@ const De = P(
131
131
  size: "md"
132
132
  }
133
133
  }
134
- ), A = N(
134
+ ), _ = N(
135
135
  ({ className: a, variant: t, size: r, icon: n, onRemove: s, children: c, ...l }, u) => /* @__PURE__ */ i(
136
136
  "div",
137
137
  {
138
138
  ref: u,
139
- className: o(De({ variant: t, size: r }), a),
139
+ className: o(je({ variant: t, size: r }), a),
140
140
  ...l,
141
141
  children: [
142
142
  n && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: n }),
@@ -154,8 +154,8 @@ const De = P(
154
154
  }
155
155
  )
156
156
  );
157
- A.displayName = "Badge";
158
- const Me = P(
157
+ _.displayName = "Badge";
158
+ const De = P(
159
159
  "relative inline-flex items-center justify-center overflow-hidden rounded-full bg-[var(--muted)] text-[var(--muted-foreground)] flex-shrink-0",
160
160
  {
161
161
  variants: {
@@ -170,37 +170,37 @@ const Me = P(
170
170
  size: "md"
171
171
  }
172
172
  }
173
- ), Pe = N(
174
- ({ className: a, size: t, src: r, alt: n, name: s, showStatus: c, statusType: l = "online", ...u }, f) => {
175
- const [g, b] = k(!1), m = (x) => x.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2), p = {
173
+ ), Me = N(
174
+ ({ className: a, size: t, src: r, alt: n, name: s, showStatus: c, statusType: l = "online", ...u }, m) => {
175
+ const [g, v] = k(!1), f = (h) => h.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2), b = {
176
176
  online: "bg-[var(--success)]",
177
177
  offline: "bg-[var(--muted-foreground)]",
178
178
  away: "bg-[var(--warning)]",
179
179
  busy: "bg-[var(--destructive)]"
180
- }, h = {
180
+ }, x = {
181
181
  sm: "h-2 w-2 border",
182
182
  md: "h-2.5 w-2.5 border-2",
183
183
  lg: "h-3 w-3 border-2",
184
184
  xl: "h-4 w-4 border-2"
185
185
  };
186
- return /* @__PURE__ */ i("div", { ref: f, className: o(Me({ size: t }), "relative", a), children: [
186
+ return /* @__PURE__ */ i("div", { ref: m, className: o(De({ size: t }), "relative", a), children: [
187
187
  r && !g ? /* @__PURE__ */ e(
188
188
  "img",
189
189
  {
190
190
  src: r,
191
191
  alt: n || s || "Avatar",
192
- onError: () => b(!0),
192
+ onError: () => v(!0),
193
193
  className: "h-full w-full object-cover",
194
194
  ...u
195
195
  }
196
- ) : s ? /* @__PURE__ */ e("span", { className: "font-medium", children: m(s) }) : /* @__PURE__ */ e(te, { className: "h-1/2 w-1/2" }),
196
+ ) : s ? /* @__PURE__ */ e("span", { className: "font-medium", children: f(s) }) : /* @__PURE__ */ e(ee, { className: "h-1/2 w-1/2" }),
197
197
  c && /* @__PURE__ */ e(
198
198
  "span",
199
199
  {
200
200
  className: o(
201
201
  "absolute bottom-0 right-0 rounded-full border-[var(--background)]",
202
- p[l],
203
- h[t || "md"]
202
+ b[l],
203
+ x[t || "md"]
204
204
  ),
205
205
  "aria-label": `Status: ${l}`
206
206
  }
@@ -208,8 +208,8 @@ const Me = P(
208
208
  ] });
209
209
  }
210
210
  );
211
- Pe.displayName = "Avatar";
212
- const _e = P("animate-spin text-[var(--brand-primary)]", {
211
+ Me.displayName = "Avatar";
212
+ const Pe = P("animate-spin text-[var(--brand-primary)]", {
213
213
  variants: {
214
214
  size: {
215
215
  sm: "h-4 w-4",
@@ -231,14 +231,14 @@ const _e = P("animate-spin text-[var(--brand-primary)]", {
231
231
  className: o("inline-flex items-center justify-center", a),
232
232
  ...n,
233
233
  children: [
234
- /* @__PURE__ */ e(V, { className: o(_e({ size: t })) }),
234
+ /* @__PURE__ */ e(V, { className: o(Pe({ size: t })) }),
235
235
  /* @__PURE__ */ e("span", { className: "sr-only", children: r || "Loading" })
236
236
  ]
237
237
  }
238
238
  )
239
239
  );
240
240
  Ae.displayName = "Spinner";
241
- const Le = N(
241
+ const _e = N(
242
242
  ({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...s }, c) => {
243
243
  const l = {
244
244
  solid: "border-solid",
@@ -284,7 +284,7 @@ const Le = N(
284
284
  );
285
285
  }
286
286
  );
287
- Le.displayName = "Divider";
287
+ _e.displayName = "Divider";
288
288
  const E = N(
289
289
  ({
290
290
  className: a,
@@ -295,50 +295,50 @@ const E = N(
295
295
  onChange: c,
296
296
  showValue: l = !1,
297
297
  ...u
298
- }, f) => {
299
- const [g, b] = k(0), m = {
298
+ }, m) => {
299
+ const [g, v] = k(0), f = {
300
300
  sm: "h-4 w-4",
301
301
  md: "h-5 w-5",
302
302
  lg: "h-6 w-6"
303
- }, p = (x) => {
304
- !s && c && c(x);
305
- }, h = g || t;
303
+ }, b = (h) => {
304
+ !s && c && c(h);
305
+ }, x = g || t;
306
306
  return /* @__PURE__ */ i(
307
307
  "div",
308
308
  {
309
- ref: f,
309
+ ref: m,
310
310
  className: o("inline-flex items-center gap-1", a),
311
311
  role: "group",
312
312
  "aria-label": `Rating: ${t} out of ${r}`,
313
313
  ...u,
314
314
  children: [
315
- /* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (x, d) => d + 1).map((x) => {
316
- const d = x <= h;
315
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (h, d) => d + 1).map((h) => {
316
+ const d = h <= x;
317
317
  return /* @__PURE__ */ e(
318
318
  "button",
319
319
  {
320
320
  type: "button",
321
321
  disabled: s,
322
- onClick: () => p(x),
323
- onMouseEnter: () => !s && b(x),
324
- onMouseLeave: () => !s && b(0),
322
+ onClick: () => b(h),
323
+ onMouseEnter: () => !s && v(h),
324
+ onMouseLeave: () => !s && v(0),
325
325
  className: o(
326
326
  "transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-1 rounded",
327
327
  s ? "cursor-default" : "cursor-pointer hover:scale-110"
328
328
  ),
329
- "aria-label": `Rate ${x} out of ${r}`,
329
+ "aria-label": `Rate ${h} out of ${r}`,
330
330
  children: /* @__PURE__ */ e(
331
- ae,
331
+ te,
332
332
  {
333
333
  className: o(
334
- m[n],
334
+ f[n],
335
335
  "transition-all",
336
336
  d ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
337
337
  )
338
338
  }
339
339
  )
340
340
  },
341
- x
341
+ h
342
342
  );
343
343
  }) }),
344
344
  l && /* @__PURE__ */ e("span", { className: "ml-1 text-sm font-medium text-[var(--foreground)]", children: t.toFixed(1) })
@@ -415,7 +415,7 @@ function jt({
415
415
  position: r,
416
416
  ...n,
417
417
  children: [
418
- /* @__PURE__ */ e(Re, {}),
418
+ /* @__PURE__ */ e(Le, {}),
419
419
  /* @__PURE__ */ e(
420
420
  z.Viewport,
421
421
  {
@@ -426,7 +426,7 @@ function jt({
426
426
  children: t
427
427
  }
428
428
  ),
429
- /* @__PURE__ */ e(Be, {})
429
+ /* @__PURE__ */ e(Re, {})
430
430
  ]
431
431
  }
432
432
  ) });
@@ -446,13 +446,13 @@ function Dt({
446
446
  ),
447
447
  ...r,
448
448
  children: [
449
- /* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(z.ItemIndicator, { children: /* @__PURE__ */ e(Q, { className: "size-4" }) }) }),
449
+ /* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(z.ItemIndicator, { children: /* @__PURE__ */ e(U, { className: "size-4" }) }) }),
450
450
  /* @__PURE__ */ e(z.ItemText, { children: t })
451
451
  ]
452
452
  }
453
453
  );
454
454
  }
455
- function Re({
455
+ function Le({
456
456
  className: a,
457
457
  ...t
458
458
  }) {
@@ -465,11 +465,11 @@ function Re({
465
465
  a
466
466
  ),
467
467
  ...t,
468
- children: /* @__PURE__ */ e(re, { className: "size-4" })
468
+ children: /* @__PURE__ */ e(ae, { className: "size-4" })
469
469
  }
470
470
  );
471
471
  }
472
- function Be({
472
+ function Re({
473
473
  className: a,
474
474
  ...t
475
475
  }) {
@@ -504,7 +504,7 @@ function Mt({
504
504
  {
505
505
  "data-slot": "checkbox-indicator",
506
506
  className: "flex items-center justify-center text-current transition-none",
507
- children: /* @__PURE__ */ e(Q, { className: "size-3.5" })
507
+ children: /* @__PURE__ */ e(U, { className: "size-3.5" })
508
508
  }
509
509
  )
510
510
  }
@@ -523,7 +523,7 @@ function Pt({
523
523
  }
524
524
  );
525
525
  }
526
- function _t({
526
+ function At({
527
527
  className: a,
528
528
  ...t
529
529
  }) {
@@ -541,13 +541,13 @@ function _t({
541
541
  {
542
542
  "data-slot": "radio-group-indicator",
543
543
  className: "relative flex items-center justify-center",
544
- children: /* @__PURE__ */ e(oe, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
544
+ children: /* @__PURE__ */ e(re, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
545
545
  }
546
546
  )
547
547
  }
548
548
  );
549
549
  }
550
- function At({
550
+ function _t({
551
551
  className: a,
552
552
  ...t
553
553
  }) {
@@ -589,23 +589,23 @@ const T = N(
589
589
  originalPrice: c,
590
590
  rating: l,
591
591
  reviewCount: u,
592
- badge: f,
592
+ badge: m,
593
593
  badgeVariant: g = "default",
594
- isSkeleton: b = !1,
595
- isOutOfStock: m = !1,
596
- onAddToCart: p,
597
- onToggleFavorite: h,
598
- isFavorite: x = !1,
594
+ isSkeleton: v = !1,
595
+ isOutOfStock: f = !1,
596
+ onAddToCart: b,
597
+ onToggleFavorite: x,
598
+ isFavorite: h = !1,
599
599
  href: d,
600
- orientation: v = "vertical",
600
+ orientation: p = "vertical",
601
601
  ...y
602
- }, j) => b ? /* @__PURE__ */ i(
602
+ }, j) => v ? /* @__PURE__ */ i(
603
603
  "div",
604
604
  {
605
605
  ref: j,
606
606
  className: o(
607
607
  "flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
608
- v === "horizontal" ? "flex-row gap-3" : "flex-col",
608
+ p === "horizontal" ? "flex-row gap-3" : "flex-col",
609
609
  a
610
610
  ),
611
611
  ...y,
@@ -615,24 +615,24 @@ const T = N(
615
615
  {
616
616
  className: o(
617
617
  "rounded-lg bg-[var(--muted)]",
618
- v === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
618
+ p === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
619
619
  )
620
620
  }
621
621
  ),
622
- /* @__PURE__ */ i("div", { className: o("flex flex-col gap-2", v === "horizontal" ? "flex-1" : "mt-3"), children: [
622
+ /* @__PURE__ */ i("div", { className: o("flex flex-col gap-2", p === "horizontal" ? "flex-1" : "mt-3"), children: [
623
623
  /* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded bg-[var(--muted)]" }),
624
624
  /* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded bg-[var(--muted)]" }),
625
625
  /* @__PURE__ */ e("div", { className: "h-10 w-full rounded bg-[var(--muted)]" })
626
626
  ] })
627
627
  ]
628
628
  }
629
- ) : v === "horizontal" ? /* @__PURE__ */ i(
629
+ ) : p === "horizontal" ? /* @__PURE__ */ i(
630
630
  "div",
631
631
  {
632
632
  ref: j,
633
633
  className: o(
634
634
  "group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
635
- m && "opacity-60",
635
+ f && "opacity-60",
636
636
  a
637
637
  ),
638
638
  ...y,
@@ -680,17 +680,17 @@ const T = N(
680
680
  c.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
681
681
  ] })
682
682
  ] }),
683
- p && /* @__PURE__ */ e(
683
+ b && /* @__PURE__ */ e(
684
684
  C,
685
685
  {
686
- onClick: p,
687
- disabled: m,
686
+ onClick: b,
687
+ disabled: f,
688
688
  variant: "primary",
689
689
  size: "sm",
690
690
  fullWidth: !0,
691
691
  leftIcon: /* @__PURE__ */ e(R, { className: "h-3.5 w-3.5" }),
692
692
  className: "mt-auto",
693
- children: m ? "Indisponível" : "Adicionar"
693
+ children: f ? "Indisponível" : "Adicionar"
694
694
  }
695
695
  )
696
696
  ] })
@@ -702,7 +702,7 @@ const T = N(
702
702
  ref: j,
703
703
  className: o(
704
704
  "group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
705
- m && "opacity-60",
705
+ f && "opacity-60",
706
706
  a
707
707
  ),
708
708
  ...y,
@@ -721,23 +721,23 @@ const T = N(
721
721
  className: "h-full w-full object-contain transition-transform group-hover:scale-105"
722
722
  }
723
723
  ),
724
- f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(A, { variant: g, children: f }) }),
725
- m && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(A, { variant: "danger", size: "lg", children: "Esgotado" }) })
724
+ m && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(_, { variant: g, children: m }) }),
725
+ f && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(_, { variant: "danger", size: "lg", children: "Esgotado" }) })
726
726
  ]
727
727
  }
728
728
  ),
729
- h && /* @__PURE__ */ e(
729
+ x && /* @__PURE__ */ e(
730
730
  "button",
731
731
  {
732
- onClick: h,
732
+ onClick: x,
733
733
  className: "absolute right-3 top-3 rounded-full bg-white/90 p-2 transition-all hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
734
- "aria-label": x ? "Remover dos favoritos" : "Adicionar aos favoritos",
734
+ "aria-label": h ? "Remover dos favoritos" : "Adicionar aos favoritos",
735
735
  children: /* @__PURE__ */ e(
736
- ie,
736
+ oe,
737
737
  {
738
738
  className: o(
739
739
  "h-5 w-5",
740
- x ? "fill-[var(--destructive)] text-[var(--destructive)]" : "text-[var(--foreground)]"
740
+ h ? "fill-[var(--destructive)] text-[var(--destructive)]" : "text-[var(--foreground)]"
741
741
  )
742
742
  }
743
743
  )
@@ -771,11 +771,11 @@ const T = N(
771
771
  c.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
772
772
  ] })
773
773
  ] }),
774
- p && /* @__PURE__ */ e(
774
+ b && /* @__PURE__ */ e(
775
775
  C,
776
776
  {
777
- onClick: p,
778
- disabled: m,
777
+ onClick: b,
778
+ disabled: f,
779
779
  variant: "primary",
780
780
  size: "md",
781
781
  fullWidth: !0,
@@ -786,7 +786,7 @@ const T = N(
786
786
  "group-hover:opacity-100 group-hover:translate-y-0",
787
787
  "focus-visible:opacity-100 focus-visible:translate-y-0"
788
788
  ),
789
- children: m ? "Indisponível" : "Adicionar"
789
+ children: f ? "Indisponível" : "Adicionar"
790
790
  }
791
791
  )
792
792
  ] })
@@ -795,7 +795,7 @@ const T = N(
795
795
  )
796
796
  );
797
797
  T.displayName = "ProductCard";
798
- const Ee = N(
798
+ const Be = N(
799
799
  ({
800
800
  className: a,
801
801
  onSearch: t,
@@ -805,59 +805,59 @@ const Ee = N(
805
805
  placeholder: c = "Buscar...",
806
806
  value: l,
807
807
  onChange: u,
808
- ...f
808
+ ...m
809
809
  }, g) => {
810
- const [b, m] = k(""), p = l !== void 0 ? l : b, h = {
810
+ const [v, f] = k(""), b = l !== void 0 ? l : v, x = {
811
811
  sm: "h-9 text-sm",
812
812
  md: "h-11 text-base",
813
813
  lg: "h-14 text-lg"
814
- }, x = (y) => {
814
+ }, h = (y) => {
815
815
  const j = y.target.value;
816
- l === void 0 && m(j), u == null || u(y);
816
+ l === void 0 && f(j), u == null || u(y);
817
817
  }, d = () => {
818
- l === void 0 && m(""), r == null || r();
819
- }, v = (y) => {
820
- y.key === "Enter" && t && t(p);
818
+ l === void 0 && f(""), r == null || r();
819
+ }, p = (y) => {
820
+ y.key === "Enter" && t && t(b);
821
821
  };
822
822
  return /* @__PURE__ */ e("div", { className: o("relative w-full", a), children: /* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
823
- /* @__PURE__ */ e(W, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
823
+ /* @__PURE__ */ e(Q, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
824
824
  /* @__PURE__ */ e(
825
825
  "input",
826
826
  {
827
827
  ref: g,
828
828
  type: "search",
829
- value: p,
830
- onChange: x,
831
- onKeyDown: v,
829
+ value: b,
830
+ onChange: h,
831
+ onKeyDown: p,
832
832
  placeholder: c,
833
833
  className: o(
834
834
  "w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
835
835
  "placeholder:text-[var(--muted-foreground)]",
836
836
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
837
837
  "disabled:cursor-not-allowed disabled:opacity-50",
838
- h[s]
838
+ x[s]
839
839
  ),
840
- ...f
840
+ ...m
841
841
  }
842
842
  ),
843
843
  /* @__PURE__ */ i("div", { className: "absolute right-3 flex items-center gap-1", children: [
844
844
  n && /* @__PURE__ */ e(V, { className: "h-5 w-5 animate-spin text-[var(--muted-foreground)]" }),
845
- p && !n && /* @__PURE__ */ e(
845
+ b && !n && /* @__PURE__ */ e(
846
846
  "button",
847
847
  {
848
848
  type: "button",
849
849
  onClick: d,
850
850
  className: "rounded-full p-1 hover:bg-[var(--muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
851
851
  "aria-label": "Clear search",
852
- children: /* @__PURE__ */ e(ne, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
852
+ children: /* @__PURE__ */ e(ie, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
853
853
  }
854
854
  )
855
855
  ] })
856
856
  ] }) });
857
857
  }
858
858
  );
859
- Ee.displayName = "SearchBar";
860
- const Te = N(
859
+ Be.displayName = "SearchBar";
860
+ const Ee = N(
861
861
  ({
862
862
  className: a,
863
863
  price: t,
@@ -867,22 +867,22 @@ const Te = N(
867
867
  showDiscount: c = !0,
868
868
  installments: l,
869
869
  ...u
870
- }, f) => {
871
- const g = r && r > t ? Math.round((r - t) / r * 100) : 0, b = {
870
+ }, m) => {
871
+ const g = r && r > t ? Math.round((r - t) / r * 100) : 0, v = {
872
872
  sm: "text-base",
873
873
  md: "text-xl",
874
874
  lg: "text-2xl",
875
875
  xl: "text-4xl"
876
- }, m = {
876
+ }, f = {
877
877
  sm: "text-xs",
878
878
  md: "text-sm",
879
879
  lg: "text-base",
880
880
  xl: "text-xl"
881
881
  };
882
- return /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1", a), ...u, children: [
882
+ return /* @__PURE__ */ i("div", { ref: m, className: o("flex flex-col gap-1", a), ...u, children: [
883
883
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 flex-wrap", children: [
884
884
  /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2", children: [
885
- /* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", b[s]), children: [
885
+ /* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", v[s]), children: [
886
886
  n,
887
887
  " ",
888
888
  t.toFixed(2)
@@ -892,7 +892,7 @@ const Te = N(
892
892
  {
893
893
  className: o(
894
894
  "text-[var(--muted-foreground)] line-through",
895
- m[s]
895
+ f[s]
896
896
  ),
897
897
  children: [
898
898
  n,
@@ -902,7 +902,7 @@ const Te = N(
902
902
  }
903
903
  )
904
904
  ] }),
905
- c && g > 0 && /* @__PURE__ */ i(A, { variant: "success", size: "sm", children: [
905
+ c && g > 0 && /* @__PURE__ */ i(_, { variant: "success", size: "sm", children: [
906
906
  "-",
907
907
  g,
908
908
  "%"
@@ -920,8 +920,8 @@ const Te = N(
920
920
  ] });
921
921
  }
922
922
  );
923
- Te.displayName = "PriceDisplay";
924
- const $e = N(
923
+ Ee.displayName = "PriceDisplay";
924
+ const Te = N(
925
925
  ({
926
926
  className: a,
927
927
  value: t,
@@ -931,25 +931,25 @@ const $e = N(
931
931
  size: c = "md",
932
932
  disabled: l = !1,
933
933
  showLabel: u = !1,
934
- ...f
934
+ ...m
935
935
  }, g) => {
936
- const b = () => {
936
+ const v = () => {
937
937
  t < n && s(t + 1);
938
- }, m = () => {
938
+ }, f = () => {
939
939
  t > r && s(t - 1);
940
- }, p = (d) => {
941
- const v = parseInt(d.target.value);
942
- !isNaN(v) && v >= r && v <= n && s(v);
943
- }, h = {
940
+ }, b = (d) => {
941
+ const p = parseInt(d.target.value);
942
+ !isNaN(p) && p >= r && p <= n && s(p);
943
+ }, x = {
944
944
  sm: "h-8 w-8",
945
945
  md: "h-10 w-10",
946
946
  lg: "h-12 w-12"
947
- }, x = {
947
+ }, h = {
948
948
  sm: "h-8 w-12 text-sm",
949
949
  md: "h-10 w-14 text-base",
950
950
  lg: "h-12 w-16 text-lg"
951
951
  };
952
- return /* @__PURE__ */ i("div", { ref: g, className: o("inline-flex flex-col gap-1", a), ...f, children: [
952
+ return /* @__PURE__ */ i("div", { ref: g, className: o("inline-flex flex-col gap-1", a), ...m, children: [
953
953
  u && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-[var(--foreground)]", children: "Quantidade" }),
954
954
  /* @__PURE__ */ i("div", { className: "inline-flex items-center gap-2", children: [
955
955
  /* @__PURE__ */ e(
@@ -958,11 +958,11 @@ const $e = N(
958
958
  type: "button",
959
959
  variant: "secondary",
960
960
  size: "sm",
961
- onClick: m,
961
+ onClick: f,
962
962
  disabled: l || t <= r,
963
- className: o(h[c], "p-0"),
963
+ className: o(x[c], "p-0"),
964
964
  "aria-label": "Decrease quantity",
965
- children: /* @__PURE__ */ e(se, { className: "h-4 w-4" })
965
+ children: /* @__PURE__ */ e(ne, { className: "h-4 w-4" })
966
966
  }
967
967
  ),
968
968
  /* @__PURE__ */ e(
@@ -970,7 +970,7 @@ const $e = N(
970
970
  {
971
971
  type: "number",
972
972
  value: t,
973
- onChange: p,
973
+ onChange: b,
974
974
  min: r,
975
975
  max: n,
976
976
  disabled: l,
@@ -979,7 +979,7 @@ const $e = N(
979
979
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
980
980
  "disabled:cursor-not-allowed disabled:opacity-50",
981
981
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
982
- x[c]
982
+ h[c]
983
983
  ),
984
984
  "aria-label": "Quantity"
985
985
  }
@@ -990,20 +990,20 @@ const $e = N(
990
990
  type: "button",
991
991
  variant: "secondary",
992
992
  size: "sm",
993
- onClick: b,
993
+ onClick: v,
994
994
  disabled: l || t >= n,
995
- className: o(h[c], "p-0"),
995
+ className: o(x[c], "p-0"),
996
996
  "aria-label": "Increase quantity",
997
- children: /* @__PURE__ */ e(le, { className: "h-4 w-4" })
997
+ children: /* @__PURE__ */ e(se, { className: "h-4 w-4" })
998
998
  }
999
999
  )
1000
1000
  ] })
1001
1001
  ] });
1002
1002
  }
1003
1003
  );
1004
- $e.displayName = "QuantitySelector";
1005
- const Ve = N(
1006
- ({ className: a, label: t, htmlFor: r, required: n, error: s, helperText: c, children: l, ...u }, f) => /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1.5", a), ...u, children: [
1004
+ Te.displayName = "QuantitySelector";
1005
+ const $e = N(
1006
+ ({ className: a, label: t, htmlFor: r, required: n, error: s, helperText: c, children: l, ...u }, m) => /* @__PURE__ */ i("div", { ref: m, className: o("flex flex-col gap-1.5", a), ...u, children: [
1007
1007
  t && /* @__PURE__ */ i(
1008
1008
  "label",
1009
1009
  {
@@ -1028,7 +1028,7 @@ const Ve = N(
1028
1028
  )
1029
1029
  ] })
1030
1030
  );
1031
- Ve.displayName = "FormGroup";
1031
+ $e.displayName = "FormGroup";
1032
1032
  function Lt({ ...a }) {
1033
1033
  return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
1034
1034
  }
@@ -1061,7 +1061,7 @@ function Et({
1061
1061
  ...r
1062
1062
  }) {
1063
1063
  return /* @__PURE__ */ e(
1064
- a ? Se : "a",
1064
+ a ? Ce : "a",
1065
1065
  {
1066
1066
  "data-slot": "breadcrumb-link",
1067
1067
  className: o("hover:text-foreground transition-colors", t),
@@ -1095,7 +1095,7 @@ function $t({
1095
1095
  "aria-hidden": "true",
1096
1096
  className: o("[&>svg]:size-3.5", t),
1097
1097
  ...r,
1098
- children: a ?? /* @__PURE__ */ e(K, {})
1098
+ children: a ?? /* @__PURE__ */ e(W, {})
1099
1099
  }
1100
1100
  );
1101
1101
  }
@@ -1153,7 +1153,7 @@ function Gt({
1153
1153
  }
1154
1154
  );
1155
1155
  }
1156
- function Fe({
1156
+ function Ve({
1157
1157
  delayDuration: a = 0,
1158
1158
  ...t
1159
1159
  }) {
@@ -1169,7 +1169,7 @@ function Fe({
1169
1169
  function Ht({
1170
1170
  ...a
1171
1171
  }) {
1172
- return /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(I.Root, { "data-slot": "tooltip", ...a }) });
1172
+ return /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(I.Root, { "data-slot": "tooltip", ...a }) });
1173
1173
  }
1174
1174
  function Ut({
1175
1175
  ...a
@@ -1199,7 +1199,7 @@ function Qt({
1199
1199
  }
1200
1200
  ) });
1201
1201
  }
1202
- const qe = N(
1202
+ const Fe = N(
1203
1203
  ({
1204
1204
  className: a,
1205
1205
  variant: t = "default",
@@ -1209,13 +1209,13 @@ const qe = N(
1209
1209
  primaryCTA: c,
1210
1210
  secondaryCTA: l,
1211
1211
  backgroundImage: u,
1212
- overlay: f = !0,
1212
+ overlay: m = !0,
1213
1213
  children: g,
1214
- ...b
1215
- }, m) => /* @__PURE__ */ i(
1214
+ ...v
1215
+ }, f) => /* @__PURE__ */ i(
1216
1216
  "section",
1217
1217
  {
1218
- ref: m,
1218
+ ref: f,
1219
1219
  className: o(
1220
1220
  "relative flex min-h-[400px] w-full flex-col justify-center px-6 py-16 lg:px-12 lg:py-24",
1221
1221
  {
@@ -1225,9 +1225,9 @@ const qe = N(
1225
1225
  }[t],
1226
1226
  a
1227
1227
  ),
1228
- ...b,
1228
+ ...v,
1229
1229
  children: [
1230
- u && /* @__PURE__ */ i(_, { children: [
1230
+ u && /* @__PURE__ */ i(A, { children: [
1231
1231
  /* @__PURE__ */ e(
1232
1232
  "div",
1233
1233
  {
@@ -1235,7 +1235,7 @@ const qe = N(
1235
1235
  style: { backgroundImage: `url(${u})` }
1236
1236
  }
1237
1237
  ),
1238
- f && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-black/70 to-black/30" })
1238
+ m && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-black/70 to-black/30" })
1239
1239
  ] }),
1240
1240
  /* @__PURE__ */ i(
1241
1241
  "div",
@@ -1306,8 +1306,8 @@ const qe = N(
1306
1306
  }
1307
1307
  )
1308
1308
  );
1309
- qe.displayName = "Hero";
1310
- const Y = N(
1309
+ Fe.displayName = "Hero";
1310
+ const X = N(
1311
1311
  ({
1312
1312
  className: a,
1313
1313
  variant: t = "default",
@@ -1318,10 +1318,10 @@ const Y = N(
1318
1318
  ...l
1319
1319
  }, u) => {
1320
1320
  const g = r || {
1321
- default: /* @__PURE__ */ e(ce, { className: "h-16 w-16" }),
1322
- search: /* @__PURE__ */ e(W, { className: "h-16 w-16" }),
1321
+ default: /* @__PURE__ */ e(de, { className: "h-16 w-16" }),
1322
+ search: /* @__PURE__ */ e(Q, { className: "h-16 w-16" }),
1323
1323
  cart: /* @__PURE__ */ e(R, { className: "h-16 w-16" }),
1324
- error: /* @__PURE__ */ e(de, { className: "h-16 w-16" })
1324
+ error: /* @__PURE__ */ e(le, { className: "h-16 w-16" })
1325
1325
  }[t];
1326
1326
  return /* @__PURE__ */ i(
1327
1327
  "div",
@@ -1351,8 +1351,8 @@ const Y = N(
1351
1351
  );
1352
1352
  }
1353
1353
  );
1354
- Y.displayName = "EmptyState";
1355
- const Ge = N(
1354
+ X.displayName = "EmptyState";
1355
+ const qe = N(
1356
1356
  ({
1357
1357
  className: a,
1358
1358
  type: t = "generic",
@@ -1362,9 +1362,9 @@ const Ge = N(
1362
1362
  onGoHome: c,
1363
1363
  showRetry: l = !0,
1364
1364
  showHome: u = !0,
1365
- ...f
1365
+ ...m
1366
1366
  }, g) => {
1367
- const m = {
1367
+ const f = {
1368
1368
  404: {
1369
1369
  title: "Página não encontrada",
1370
1370
  message: "A página que você está procurando não existe ou foi movida.",
@@ -1385,7 +1385,7 @@ const Ge = N(
1385
1385
  message: "Ocorreu um erro inesperado. Por favor, tente novamente.",
1386
1386
  code: ""
1387
1387
  }
1388
- }[t], p = r || m.title, h = n || m.message;
1388
+ }[t], b = r || f.title, x = n || f.message;
1389
1389
  return /* @__PURE__ */ i(
1390
1390
  "div",
1391
1391
  {
@@ -1396,14 +1396,14 @@ const Ge = N(
1396
1396
  ),
1397
1397
  role: "alert",
1398
1398
  "aria-live": "assertive",
1399
- ...f,
1399
+ ...m,
1400
1400
  children: [
1401
1401
  /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-4", children: [
1402
- m.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: m.code }),
1403
- /* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(ue, { className: "h-16 w-16" }) })
1402
+ f.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: f.code }),
1403
+ /* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(ce, { className: "h-16 w-16" }) })
1404
1404
  ] }),
1405
- /* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: p }),
1406
- /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: h }),
1405
+ /* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
1406
+ /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: x }),
1407
1407
  /* @__PURE__ */ i("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
1408
1408
  l && s && /* @__PURE__ */ e(
1409
1409
  C,
@@ -1411,7 +1411,7 @@ const Ge = N(
1411
1411
  onClick: s,
1412
1412
  variant: "primary",
1413
1413
  size: "lg",
1414
- leftIcon: /* @__PURE__ */ e(me, { className: "h-5 w-5" }),
1414
+ leftIcon: /* @__PURE__ */ e(ue, { className: "h-5 w-5" }),
1415
1415
  children: "Tentar novamente"
1416
1416
  }
1417
1417
  ),
@@ -1421,7 +1421,7 @@ const Ge = N(
1421
1421
  onClick: c,
1422
1422
  variant: "secondary",
1423
1423
  size: "lg",
1424
- leftIcon: /* @__PURE__ */ e(fe, { className: "h-5 w-5" }),
1424
+ leftIcon: /* @__PURE__ */ e(me, { className: "h-5 w-5" }),
1425
1425
  children: "Voltar ao início"
1426
1426
  }
1427
1427
  )
@@ -1431,8 +1431,8 @@ const Ge = N(
1431
1431
  );
1432
1432
  }
1433
1433
  );
1434
- Ge.displayName = "ErrorState";
1435
- const He = N(
1434
+ qe.displayName = "ErrorState";
1435
+ const Ge = N(
1436
1436
  ({
1437
1437
  className: a,
1438
1438
  products: t,
@@ -1442,9 +1442,9 @@ const He = N(
1442
1442
  skeletonCount: c = 8,
1443
1443
  emptyStateMessage: l = "Nenhum produto encontrado",
1444
1444
  onEmptyAction: u,
1445
- ...f
1445
+ ...m
1446
1446
  }, g) => {
1447
- const b = {
1447
+ const v = {
1448
1448
  sm: "gap-4",
1449
1449
  md: "gap-6",
1450
1450
  lg: "gap-8"
@@ -1455,11 +1455,11 @@ const He = N(
1455
1455
  ref: g,
1456
1456
  className: o(
1457
1457
  "grid grid-cols-2 lg:grid-cols-4",
1458
- b[n],
1458
+ v[n],
1459
1459
  a
1460
1460
  ),
1461
- ...f,
1462
- children: Array.from({ length: c }).map((m, p) => /* @__PURE__ */ e(
1461
+ ...m,
1462
+ children: Array.from({ length: c }).map((f, b) => /* @__PURE__ */ e(
1463
1463
  T,
1464
1464
  {
1465
1465
  image: "",
@@ -1467,11 +1467,11 @@ const He = N(
1467
1467
  price: 0,
1468
1468
  isSkeleton: !0
1469
1469
  },
1470
- p
1470
+ b
1471
1471
  ))
1472
1472
  }
1473
1473
  ) : t.length === 0 ? /* @__PURE__ */ e(
1474
- Y,
1474
+ X,
1475
1475
  {
1476
1476
  variant: "search",
1477
1477
  title: l,
@@ -1487,16 +1487,16 @@ const He = N(
1487
1487
  ref: g,
1488
1488
  className: o(
1489
1489
  "grid grid-cols-2 lg:grid-cols-4",
1490
- b[n],
1490
+ v[n],
1491
1491
  a
1492
1492
  ),
1493
- ...f,
1494
- children: t.map((m, p) => /* @__PURE__ */ e(T, { ...m }, p))
1493
+ ...m,
1494
+ children: t.map((f, b) => /* @__PURE__ */ e(T, { ...f }, b))
1495
1495
  }
1496
1496
  );
1497
1497
  }
1498
1498
  );
1499
- He.displayName = "ProductGrid";
1499
+ Ge.displayName = "ProductGrid";
1500
1500
  function Wt({
1501
1501
  ...a
1502
1502
  }) {
@@ -1507,12 +1507,12 @@ function Kt({
1507
1507
  }) {
1508
1508
  return /* @__PURE__ */ e(w.Trigger, { "data-slot": "dialog-trigger", ...a });
1509
1509
  }
1510
- function Ue({
1510
+ function He({
1511
1511
  ...a
1512
1512
  }) {
1513
1513
  return /* @__PURE__ */ e(w.Portal, { "data-slot": "dialog-portal", ...a });
1514
1514
  }
1515
- function Qe({
1515
+ function Ue({
1516
1516
  className: a,
1517
1517
  ...t
1518
1518
  }) {
@@ -1533,8 +1533,8 @@ function Ot({
1533
1533
  children: t,
1534
1534
  ...r
1535
1535
  }) {
1536
- return /* @__PURE__ */ i(Ue, { "data-slot": "dialog-portal", children: [
1537
- /* @__PURE__ */ e(Qe, {}),
1536
+ return /* @__PURE__ */ i(He, { "data-slot": "dialog-portal", children: [
1537
+ /* @__PURE__ */ e(Ue, {}),
1538
1538
  /* @__PURE__ */ i(
1539
1539
  w.Content,
1540
1540
  {
@@ -1547,7 +1547,7 @@ function Ot({
1547
1547
  children: [
1548
1548
  t,
1549
1549
  /* @__PURE__ */ i(w.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
1550
- /* @__PURE__ */ e(O, {}),
1550
+ /* @__PURE__ */ e(K, {}),
1551
1551
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
1552
1552
  ] })
1553
1553
  ]
@@ -1604,25 +1604,25 @@ function Jt({
1604
1604
  }
1605
1605
  );
1606
1606
  }
1607
- function We({ ...a }) {
1607
+ function Qe({ ...a }) {
1608
1608
  return /* @__PURE__ */ e(w.Root, { "data-slot": "sheet", ...a });
1609
1609
  }
1610
- function Ke({
1610
+ function We({
1611
1611
  ...a
1612
1612
  }) {
1613
1613
  return /* @__PURE__ */ e(w.Trigger, { "data-slot": "sheet-trigger", ...a });
1614
1614
  }
1615
- function Oe({
1615
+ function Ke({
1616
1616
  ...a
1617
1617
  }) {
1618
1618
  return /* @__PURE__ */ e(w.Close, { "data-slot": "sheet-close", ...a });
1619
1619
  }
1620
- function Xe({
1620
+ function Oe({
1621
1621
  ...a
1622
1622
  }) {
1623
1623
  return /* @__PURE__ */ e(w.Portal, { "data-slot": "sheet-portal", ...a });
1624
1624
  }
1625
- function Ye({
1625
+ function Xe({
1626
1626
  className: a,
1627
1627
  ...t
1628
1628
  }) {
@@ -1638,14 +1638,14 @@ function Ye({
1638
1638
  }
1639
1639
  );
1640
1640
  }
1641
- function Ze({
1641
+ function Ye({
1642
1642
  className: a,
1643
1643
  children: t,
1644
1644
  side: r = "right",
1645
1645
  ...n
1646
1646
  }) {
1647
- return /* @__PURE__ */ i(Xe, { children: [
1648
- /* @__PURE__ */ e(Ye, {}),
1647
+ return /* @__PURE__ */ i(Oe, { children: [
1648
+ /* @__PURE__ */ e(Xe, {}),
1649
1649
  /* @__PURE__ */ i(
1650
1650
  w.Content,
1651
1651
  {
@@ -1662,7 +1662,7 @@ function Ze({
1662
1662
  children: [
1663
1663
  t,
1664
1664
  /* @__PURE__ */ i(w.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
1665
- /* @__PURE__ */ e(O, { className: "size-4" }),
1665
+ /* @__PURE__ */ e(K, { className: "size-4" }),
1666
1666
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
1667
1667
  ] })
1668
1668
  ]
@@ -1670,7 +1670,7 @@ function Ze({
1670
1670
  )
1671
1671
  ] });
1672
1672
  }
1673
- function Je({ className: a, ...t }) {
1673
+ function Ze({ className: a, ...t }) {
1674
1674
  return /* @__PURE__ */ e(
1675
1675
  "div",
1676
1676
  {
@@ -1690,7 +1690,7 @@ function ea({ className: a, ...t }) {
1690
1690
  }
1691
1691
  );
1692
1692
  }
1693
- function et({
1693
+ function Je({
1694
1694
  className: a,
1695
1695
  ...t
1696
1696
  }) {
@@ -1716,7 +1716,7 @@ function ta({
1716
1716
  }
1717
1717
  );
1718
1718
  }
1719
- function tt({ children: a, as: t = "div", className: r }) {
1719
+ function et({ children: a, as: t = "div", className: r }) {
1720
1720
  return /* @__PURE__ */ e(
1721
1721
  t,
1722
1722
  {
@@ -1727,30 +1727,30 @@ function tt({ children: a, as: t = "div", className: r }) {
1727
1727
  }
1728
1728
  );
1729
1729
  }
1730
- const at = N(
1730
+ const tt = N(
1731
1731
  ({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s }, c) => {
1732
- const [l, u] = k("light"), [f, g] = k(16), [b, m] = k(!1);
1732
+ const [l, u] = k("light"), [m, g] = k(16), [v, f] = k(!1);
1733
1733
  D(() => {
1734
- const v = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
- u(v);
1734
+ const p = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
+ u(p);
1736
1736
  const y = Number(localStorage.getItem("a11y-font-size"));
1737
1737
  Number.isFinite(y) && y > 0 && g(y);
1738
1738
  }, []), D(() => {
1739
- if (!b && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
1740
- const v = document.createElement("script");
1741
- v.src = "https://vlibras.gov.br/app/vlibras-plugin.js", v.async = !0, v.onload = () => {
1742
- m(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
1743
- }, document.body.appendChild(v);
1739
+ if (!v && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
1740
+ const p = document.createElement("script");
1741
+ p.src = "https://vlibras.gov.br/app/vlibras-plugin.js", p.async = !0, p.onload = () => {
1742
+ f(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
1743
+ }, document.body.appendChild(p);
1744
1744
  }
1745
- }, [b]);
1746
- const p = () => {
1745
+ }, [v]);
1746
+ const b = () => {
1747
1747
  const d = l === "light" ? "dark" : "light";
1748
1748
  u(d), document.documentElement.setAttribute("data-theme", d), localStorage.setItem("a11y-theme", d), t == null || t(d);
1749
- }, h = () => {
1750
- const d = Math.min(f + 2, 24);
1751
- g(d), document.documentElement.style.setProperty("--font-size", `${d}px`), document.documentElement.style.fontSize = `${d}px`, localStorage.setItem("a11y-font-size", d.toString()), r == null || r(d);
1752
1749
  }, x = () => {
1753
- const d = Math.max(f - 2, 12);
1750
+ const d = Math.min(m + 2, 24);
1751
+ g(d), document.documentElement.style.setProperty("--font-size", `${d}px`), document.documentElement.style.fontSize = `${d}px`, localStorage.setItem("a11y-font-size", d.toString()), r == null || r(d);
1752
+ }, h = () => {
1753
+ const d = Math.max(m - 2, 12);
1754
1754
  g(d), document.documentElement.style.setProperty("--font-size", `${d}px`), document.documentElement.style.fontSize = `${d}px`, localStorage.setItem("a11y-font-size", d.toString()), r == null || r(d);
1755
1755
  };
1756
1756
  return /* @__PURE__ */ e(
@@ -1764,9 +1764,9 @@ const at = N(
1764
1764
  role: "toolbar",
1765
1765
  "aria-label": "Ferramentas de acessibilidade",
1766
1766
  ...s,
1767
- children: /* @__PURE__ */ i(tt, { className: "py-2 flex items-center justify-between", children: [
1767
+ children: /* @__PURE__ */ i(et, { className: "py-2 flex items-center justify-between", children: [
1768
1768
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-sm text-[var(--muted-foreground)]", children: [
1769
- /* @__PURE__ */ e(ge, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
1769
+ /* @__PURE__ */ e(fe, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
1770
1770
  /* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Ferramentas de Acessibilidade" })
1771
1771
  ] }),
1772
1772
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 md:gap-4", children: [
@@ -1783,15 +1783,15 @@ const at = N(
1783
1783
  "button",
1784
1784
  {
1785
1785
  type: "button",
1786
- onClick: x,
1787
- disabled: f <= 12,
1786
+ onClick: h,
1787
+ disabled: m <= 12,
1788
1788
  "aria-label": "Diminuir tamanho da fonte",
1789
1789
  className: o(
1790
1790
  "p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
1791
1791
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
1792
1792
  "disabled:opacity-40 disabled:cursor-not-allowed"
1793
1793
  ),
1794
- children: /* @__PURE__ */ e(pe, { className: "h-4 w-4" })
1794
+ children: /* @__PURE__ */ e(ge, { className: "h-4 w-4" })
1795
1795
  }
1796
1796
  ),
1797
1797
  /* @__PURE__ */ e("span", { className: "text-xs text-[var(--muted-foreground)] w-3 text-center select-none", "aria-hidden": "true", children: "A" }),
@@ -1799,15 +1799,15 @@ const at = N(
1799
1799
  "button",
1800
1800
  {
1801
1801
  type: "button",
1802
- onClick: h,
1803
- disabled: f >= 24,
1802
+ onClick: x,
1803
+ disabled: m >= 24,
1804
1804
  "aria-label": "Aumentar tamanho da fonte",
1805
1805
  className: o(
1806
1806
  "p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
1807
1807
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
1808
1808
  "disabled:opacity-40 disabled:cursor-not-allowed"
1809
1809
  ),
1810
- children: /* @__PURE__ */ e(ve, { className: "h-4 w-4" })
1810
+ children: /* @__PURE__ */ e(pe, { className: "h-4 w-4" })
1811
1811
  }
1812
1812
  )
1813
1813
  ] }),
@@ -1815,30 +1815,30 @@ const at = N(
1815
1815
  "button",
1816
1816
  {
1817
1817
  type: "button",
1818
- onClick: p,
1818
+ onClick: b,
1819
1819
  "aria-label": l === "light" ? "Ativar modo escuro" : "Ativar modo claro",
1820
1820
  className: o(
1821
1821
  "p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
1822
1822
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1823
1823
  ),
1824
- children: l === "light" ? /* @__PURE__ */ e(be, { className: "h-4 w-4" }) : /* @__PURE__ */ e(he, { className: "h-4 w-4" })
1824
+ children: l === "light" ? /* @__PURE__ */ e(ve, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
1825
1825
  }
1826
1826
  ),
1827
1827
  /* @__PURE__ */ e(
1828
1828
  "button",
1829
1829
  {
1830
1830
  type: "button",
1831
- onClick: () => m((d) => !d),
1831
+ onClick: () => f((d) => !d),
1832
1832
  "aria-label": "Ativar VLibras",
1833
- "aria-pressed": b,
1833
+ "aria-pressed": v,
1834
1834
  className: o(
1835
1835
  "px-3 py-1 text-xs font-medium rounded-md transition-colors",
1836
1836
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1837
1837
  ),
1838
1838
  style: {
1839
- backgroundColor: b ? "var(--primary)" : "transparent",
1840
- color: b ? "var(--primary-foreground)" : "var(--muted-foreground)",
1841
- border: b ? "none" : "1px solid var(--border)"
1839
+ backgroundColor: v ? "var(--primary)" : "transparent",
1840
+ color: v ? "var(--primary-foreground)" : "var(--muted-foreground)",
1841
+ border: v ? "none" : "1px solid var(--border)"
1842
1842
  },
1843
1843
  children: "VLibras"
1844
1844
  }
@@ -1849,8 +1849,8 @@ const at = N(
1849
1849
  );
1850
1850
  }
1851
1851
  );
1852
- at.displayName = "TopAccessibilityBar";
1853
- const rt = N(
1852
+ tt.displayName = "TopAccessibilityBar";
1853
+ const at = N(
1854
1854
  ({
1855
1855
  className: a,
1856
1856
  slides: t,
@@ -1858,27 +1858,27 @@ const rt = N(
1858
1858
  autoplay: n = !0,
1859
1859
  ...s
1860
1860
  }, c) => {
1861
- const [l, u] = k(0), [f, g] = k(!1), [b, m] = k(!1);
1861
+ const [l, u] = k(0), [m, g] = k(!1), [v, f] = k(!1);
1862
1862
  D(() => {
1863
1863
  const d = window.matchMedia("(prefers-reduced-motion: reduce)");
1864
- m(d.matches);
1865
- const v = (y) => {
1866
- m(y.matches);
1864
+ f(d.matches);
1865
+ const p = (y) => {
1866
+ f(y.matches);
1867
1867
  };
1868
- return d.addEventListener("change", v), () => d.removeEventListener("change", v);
1868
+ return d.addEventListener("change", p), () => d.removeEventListener("change", p);
1869
1869
  }, []), D(() => {
1870
- if (!n || f || b) return;
1870
+ if (!n || m || v) return;
1871
1871
  const d = setInterval(() => {
1872
- u((v) => (v + 1) % t.length);
1872
+ u((p) => (p + 1) % t.length);
1873
1873
  }, r);
1874
1874
  return () => clearInterval(d);
1875
- }, [n, r, t.length, f, b]);
1876
- const p = (d) => {
1875
+ }, [n, r, t.length, m, v]);
1876
+ const b = (d) => {
1877
1877
  u(d), g(!0), setTimeout(() => g(!1), r);
1878
- }, h = () => {
1879
- p((l - 1 + t.length) % t.length);
1880
1878
  }, x = () => {
1881
- p((l + 1) % t.length);
1879
+ b((l - 1 + t.length) % t.length);
1880
+ }, h = () => {
1881
+ b((l + 1) % t.length);
1882
1882
  };
1883
1883
  return t.length === 0 ? null : (t[l], /* @__PURE__ */ i(
1884
1884
  "div",
@@ -1889,14 +1889,14 @@ const rt = N(
1889
1889
  onMouseLeave: () => g(!1),
1890
1890
  ...s,
1891
1891
  children: [
1892
- /* @__PURE__ */ e("div", { className: "relative", children: t.map((d, v) => /* @__PURE__ */ i(
1892
+ /* @__PURE__ */ e("div", { className: "relative", children: t.map((d, p) => /* @__PURE__ */ i(
1893
1893
  "div",
1894
1894
  {
1895
1895
  className: o(
1896
1896
  "w-full transition-opacity duration-700",
1897
- v === l ? "block" : "hidden"
1897
+ p === l ? "block" : "hidden"
1898
1898
  ),
1899
- "aria-hidden": v !== l,
1899
+ "aria-hidden": p !== l,
1900
1900
  children: [
1901
1901
  /* @__PURE__ */ i("picture", { children: [
1902
1902
  /* @__PURE__ */ e(
@@ -1920,7 +1920,7 @@ const rt = N(
1920
1920
  srcSet: `${d.imageMobile} 1x, ${d.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
1921
1921
  alt: d.title,
1922
1922
  className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
1923
- loading: v === 0 ? "eager" : "lazy"
1923
+ loading: p === 0 ? "eager" : "lazy"
1924
1924
  }
1925
1925
  )
1926
1926
  ] }),
@@ -1940,52 +1940,52 @@ const rt = N(
1940
1940
  },
1941
1941
  d.id
1942
1942
  )) }),
1943
- t.length > 1 && /* @__PURE__ */ i(_, { children: [
1943
+ t.length > 1 && /* @__PURE__ */ i(A, { children: [
1944
1944
  /* @__PURE__ */ e(
1945
1945
  "button",
1946
1946
  {
1947
- onClick: h,
1947
+ onClick: x,
1948
1948
  className: "absolute left-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
1949
1949
  "aria-label": "Slide anterior",
1950
- children: /* @__PURE__ */ e(xe, { className: "h-6 w-6 text-gray-900" })
1950
+ children: /* @__PURE__ */ e(he, { className: "h-6 w-6 text-gray-900" })
1951
1951
  }
1952
1952
  ),
1953
1953
  /* @__PURE__ */ e(
1954
1954
  "button",
1955
1955
  {
1956
- onClick: x,
1956
+ onClick: h,
1957
1957
  className: "absolute right-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
1958
1958
  "aria-label": "Próximo slide",
1959
- children: /* @__PURE__ */ e(K, { className: "h-6 w-6 text-gray-900" })
1959
+ children: /* @__PURE__ */ e(W, { className: "h-6 w-6 text-gray-900" })
1960
1960
  }
1961
1961
  )
1962
1962
  ] }),
1963
- t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((d, v) => /* @__PURE__ */ e(
1963
+ t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((d, p) => /* @__PURE__ */ e(
1964
1964
  "button",
1965
1965
  {
1966
- onClick: () => p(v),
1966
+ onClick: () => b(p),
1967
1967
  className: "min-w-11 min-h-6 flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-full group",
1968
- "aria-label": `Ir para slide ${v + 1}`,
1969
- "aria-current": v === l,
1968
+ "aria-label": `Ir para slide ${p + 1}`,
1969
+ "aria-current": p === l,
1970
1970
  children: /* @__PURE__ */ e(
1971
1971
  "span",
1972
1972
  {
1973
1973
  className: o(
1974
1974
  "block rounded-full transition-all",
1975
- v === l ? "h-1 w-3 bg-white" : "h-1 w-1 bg-white/40 group-hover:bg-white/60"
1975
+ p === l ? "h-1 w-3 bg-white" : "h-1 w-1 bg-white/40 group-hover:bg-white/60"
1976
1976
  )
1977
1977
  }
1978
1978
  )
1979
1979
  },
1980
- v
1980
+ p
1981
1981
  )) })
1982
1982
  ]
1983
1983
  }
1984
1984
  ));
1985
1985
  }
1986
1986
  );
1987
- rt.displayName = "HeroCarousel";
1988
- function ot({
1987
+ at.displayName = "HeroCarousel";
1988
+ function rt({
1989
1989
  className: a,
1990
1990
  children: t,
1991
1991
  viewport: r = !0,
@@ -2003,12 +2003,12 @@ function ot({
2003
2003
  ...n,
2004
2004
  children: [
2005
2005
  t,
2006
- r && /* @__PURE__ */ e(dt, {})
2006
+ r && /* @__PURE__ */ e(lt, {})
2007
2007
  ]
2008
2008
  }
2009
2009
  );
2010
2010
  }
2011
- function it({
2011
+ function ot({
2012
2012
  className: a,
2013
2013
  ...t
2014
2014
  }) {
@@ -2037,10 +2037,10 @@ function H({
2037
2037
  }
2038
2038
  );
2039
2039
  }
2040
- const nt = P(
2040
+ const it = P(
2041
2041
  "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
2042
2042
  );
2043
- function st({
2043
+ function nt({
2044
2044
  className: a,
2045
2045
  children: t,
2046
2046
  ...r
@@ -2049,7 +2049,7 @@ function st({
2049
2049
  S.Trigger,
2050
2050
  {
2051
2051
  "data-slot": "navigation-menu-trigger",
2052
- className: o(nt(), "group", a),
2052
+ className: o(it(), "group", a),
2053
2053
  ...r,
2054
2054
  children: [
2055
2055
  t,
@@ -2065,7 +2065,7 @@ function st({
2065
2065
  }
2066
2066
  );
2067
2067
  }
2068
- function lt({
2068
+ function st({
2069
2069
  className: a,
2070
2070
  ...t
2071
2071
  }) {
@@ -2082,7 +2082,7 @@ function lt({
2082
2082
  }
2083
2083
  );
2084
2084
  }
2085
- function dt({
2085
+ function lt({
2086
2086
  className: a,
2087
2087
  ...t
2088
2088
  }) {
@@ -2122,7 +2122,7 @@ function $({
2122
2122
  }
2123
2123
  );
2124
2124
  }
2125
- function ct({ items: a }) {
2125
+ function dt({ items: a }) {
2126
2126
  return /* @__PURE__ */ e("ul", { className: "grid gap-0.5 p-2 min-w-[180px]", role: "none", children: a.map(
2127
2127
  (t) => {
2128
2128
  var r;
@@ -2154,10 +2154,10 @@ function ct({ items: a }) {
2154
2154
  }
2155
2155
  ) });
2156
2156
  }
2157
- function Z({ item: a, depth: t = 0 }) {
2157
+ function Y({ item: a, depth: t = 0 }) {
2158
2158
  var c;
2159
2159
  const [r, n] = k(!1);
2160
- return !((c = a.children) != null && c.length) ? /* @__PURE__ */ e(Oe, { asChild: !0, children: /* @__PURE__ */ e(
2160
+ return !((c = a.children) != null && c.length) ? /* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(
2161
2161
  "a",
2162
2162
  {
2163
2163
  href: a.href ?? "#",
@@ -2182,7 +2182,7 @@ function Z({ item: a, depth: t = 0 }) {
2182
2182
  children: [
2183
2183
  /* @__PURE__ */ e("span", { children: a.label }),
2184
2184
  /* @__PURE__ */ e(
2185
- X,
2185
+ O,
2186
2186
  {
2187
2187
  "aria-hidden": "true",
2188
2188
  className: o(
@@ -2199,12 +2199,12 @@ function Z({ item: a, depth: t = 0 }) {
2199
2199
  {
2200
2200
  id: `mobile-nav-${a.id}`,
2201
2201
  className: "mb-1 ml-2 border-l-2 border-[var(--border)] pl-3",
2202
- children: a.children.map((l) => /* @__PURE__ */ e(Z, { item: l, depth: t + 1 }, l.id))
2202
+ children: a.children.map((l) => /* @__PURE__ */ e(Y, { item: l, depth: t + 1 }, l.id))
2203
2203
  }
2204
2204
  )
2205
2205
  ] });
2206
2206
  }
2207
- const ut = N(
2207
+ const ct = N(
2208
2208
  ({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: s, className: c, ...l }, u) => /* @__PURE__ */ e(
2209
2209
  "header",
2210
2210
  {
@@ -2220,19 +2220,19 @@ const ut = N(
2220
2220
  n && /* @__PURE__ */ e("div", { className: "hidden flex-1 md:flex", children: n }),
2221
2221
  /* @__PURE__ */ e("div", { className: "flex-1 md:hidden", "aria-hidden": "true" }),
2222
2222
  r && /* @__PURE__ */ e("div", { className: "flex items-center", children: r }),
2223
- /* @__PURE__ */ i(We, { children: [
2224
- /* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(
2223
+ /* @__PURE__ */ i(Qe, { children: [
2224
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(
2225
2225
  "button",
2226
2226
  {
2227
2227
  type: "button",
2228
2228
  "aria-label": "Abrir menu de navegação",
2229
2229
  className: "inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-lg text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] md:hidden",
2230
- children: /* @__PURE__ */ e(Ne, { className: "h-5 w-5", "aria-hidden": "true" })
2230
+ children: /* @__PURE__ */ e(xe, { className: "h-5 w-5", "aria-hidden": "true" })
2231
2231
  }
2232
2232
  ) }),
2233
- /* @__PURE__ */ i(Ze, { side: "left", className: "flex flex-col p-0", children: [
2234
- /* @__PURE__ */ i(Je, { className: "border-b border-[var(--border)] px-5 py-4", children: [
2235
- /* @__PURE__ */ e(et, { className: "sr-only", children: "Menu de navegação" }),
2233
+ /* @__PURE__ */ i(Ye, { side: "left", className: "flex flex-col p-0", children: [
2234
+ /* @__PURE__ */ i(Ze, { className: "border-b border-[var(--border)] px-5 py-4", children: [
2235
+ /* @__PURE__ */ e(Je, { className: "sr-only", children: "Menu de navegação" }),
2236
2236
  t && /* @__PURE__ */ e("div", { className: "flex items-center", children: t })
2237
2237
  ] }),
2238
2238
  n && /* @__PURE__ */ e("div", { className: "border-b border-[var(--border)] px-5 py-4", children: n }),
@@ -2241,7 +2241,7 @@ const ut = N(
2241
2241
  {
2242
2242
  "aria-label": "Menu principal",
2243
2243
  className: "flex-1 overflow-y-auto px-5 py-3",
2244
- children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((f) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Z, { item: f }) }, f.id)) })
2244
+ children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((m) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Y, { item: m }) }, m.id)) })
2245
2245
  }
2246
2246
  ),
2247
2247
  s && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: s })
@@ -2253,20 +2253,20 @@ const ut = N(
2253
2253
  {
2254
2254
  "aria-label": "Menu principal",
2255
2255
  className: "hidden border-t border-[var(--border)] py-2 md:flex",
2256
- children: /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(it, { children: a.map(
2257
- (f) => {
2256
+ children: /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(ot, { children: a.map(
2257
+ (m) => {
2258
2258
  var g;
2259
- return (g = f.children) != null && g.length ? /* @__PURE__ */ i(H, { children: [
2260
- /* @__PURE__ */ e(st, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: f.label }),
2261
- /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(ct, { items: f.children }) })
2262
- ] }, f.id) : /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
2259
+ return (g = m.children) != null && g.length ? /* @__PURE__ */ i(H, { children: [
2260
+ /* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: m.label }),
2261
+ /* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items: m.children }) })
2262
+ ] }, m.id) : /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
2263
2263
  $,
2264
2264
  {
2265
- href: f.href ?? "#",
2265
+ href: m.href ?? "#",
2266
2266
  className: "inline-flex h-9 items-center rounded-md px-4 text-sm font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
2267
- children: f.label
2267
+ children: m.label
2268
2268
  }
2269
- ) }, f.id);
2269
+ ) }, m.id);
2270
2270
  }
2271
2271
  ) }) })
2272
2272
  }
@@ -2275,8 +2275,8 @@ const ut = N(
2275
2275
  }
2276
2276
  )
2277
2277
  );
2278
- ut.displayName = "MegaMenu";
2279
- const mt = [
2278
+ ct.displayName = "MegaMenu";
2279
+ const ut = [
2280
2280
  {
2281
2281
  id: "catalogo",
2282
2282
  title: "Catálogo",
@@ -2309,16 +2309,16 @@ const mt = [
2309
2309
  { label: "Sobre o APP", href: "/sobre-app" }
2310
2310
  ]
2311
2311
  }
2312
- ], U = [
2313
- { label: "Instagram", href: "https://instagram.com/eloeditora", Icon: we },
2314
- { label: "Facebook", href: "https://facebook.com/eloeditora", Icon: ye },
2315
- { label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ke },
2316
- { label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ze }
2312
+ ], mt = [
2313
+ { label: "Instagram", href: "https://instagram.com/eloeditora", Icon: Ne },
2314
+ { label: "Facebook", href: "https://facebook.com/eloeditora", Icon: we },
2315
+ { label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ye },
2316
+ { label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ke }
2317
2317
  ];
2318
2318
  function ft({ onSubmit: a }) {
2319
2319
  const [t, r] = k(""), [n, s] = k(!1);
2320
2320
  return /* @__PURE__ */ e("div", { className: "mx-auto w-full bg-[var(--brand-primary)] py-8 md:py-10 lg:py-12", style: { maxWidth: "var(--container-max)" }, children: /* @__PURE__ */ i("div", { className: "mx-auto max-w-lg px-[var(--container-px)] text-center", children: [
2321
- /* @__PURE__ */ e(Ce, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
2321
+ /* @__PURE__ */ e(ze, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
2322
2322
  /* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
2323
2323
  /* @__PURE__ */ e("p", { className: "mt-2 text-sm", style: { color: "rgba(255,255,255,0.85)" }, children: "Cadastre-se e fique por dentro dos lançamentos. Sem spam." }),
2324
2324
  n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ i("form", { onSubmit: (l) => {
@@ -2362,7 +2362,7 @@ function gt({ title: a, links: t }) {
2362
2362
  children: [
2363
2363
  a,
2364
2364
  /* @__PURE__ */ e(
2365
- X,
2365
+ O,
2366
2366
  {
2367
2367
  "aria-hidden": "true",
2368
2368
  className: o("h-4 w-4 text-[var(--muted-foreground)] transition-transform duration-200", r && "rotate-180")
@@ -2393,16 +2393,16 @@ function gt({ title: a, links: t }) {
2393
2393
  ] });
2394
2394
  }
2395
2395
  const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: n, appStoreUrl: s, className: c, ...l }) => {
2396
- const [u, f] = k("light");
2396
+ const [u, m] = k("light");
2397
2397
  D(() => {
2398
- const m = document.documentElement;
2399
- f(m.getAttribute("data-theme") ?? "light");
2400
- const p = new MutationObserver(() => {
2401
- f(m.getAttribute("data-theme") ?? "light");
2398
+ const f = document.documentElement;
2399
+ m(f.getAttribute("data-theme") ?? "light");
2400
+ const b = new MutationObserver(() => {
2401
+ m(f.getAttribute("data-theme") ?? "light");
2402
2402
  });
2403
- return p.observe(m, { attributes: !0, attributeFilter: ["data-theme"] }), () => p.disconnect();
2403
+ return b.observe(f, { attributes: !0, attributeFilter: ["data-theme"] }), () => b.disconnect();
2404
2404
  }, []);
2405
- const g = a === "perabook" ? u === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : u === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", b = a === "perabook" ? "PeraBook" : "Elo Editora";
2405
+ const g = a === "perabook" ? u === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : u === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", v = a === "perabook" ? "PeraBook" : "Elo Editora";
2406
2406
  return /* @__PURE__ */ i(
2407
2407
  "footer",
2408
2408
  {
@@ -2418,7 +2418,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2418
2418
  "img",
2419
2419
  {
2420
2420
  src: g,
2421
- alt: b,
2421
+ alt: v,
2422
2422
  width: 120,
2423
2423
  height: 40,
2424
2424
  className: "h-10 w-auto object-contain"
@@ -2430,7 +2430,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2430
2430
  /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: "(11) 3000-0000" })
2431
2431
  ] })
2432
2432
  ] }),
2433
- mt.map((m) => /* @__PURE__ */ e(gt, { title: m.title, links: m.links }, m.id)),
2433
+ ut.map((f) => /* @__PURE__ */ e(gt, { title: f.title, links: f.links }, f.id)),
2434
2434
  /* @__PURE__ */ i("div", { className: "mb-8 md:mb-0", children: [
2435
2435
  /* @__PURE__ */ e("p", { className: "text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Baixe nosso app" }),
2436
2436
  /* @__PURE__ */ i("div", { className: "mt-3 flex flex-col gap-2", children: [
@@ -2475,31 +2475,18 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2475
2475
  }
2476
2476
  )
2477
2477
  ] }),
2478
- /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Redes sociais" }),
2479
- /* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Redes sociais", children: U.map(({ label: m, href: p, Icon: h }) => /* @__PURE__ */ e(
2480
- "a",
2481
- {
2482
- href: p,
2483
- target: "_blank",
2484
- rel: "noopener noreferrer",
2485
- "aria-label": m,
2486
- className: "flex h-9 w-9 items-center justify-center rounded-full border border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:border-[var(--brand-primary)] hover:bg-[var(--brand-primary)] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
2487
- children: /* @__PURE__ */ e(h, { className: "h-4 w-4", "aria-hidden": "true" })
2488
- },
2489
- m
2490
- )) }),
2491
2478
  /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Compartilhe" }),
2492
- /* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: U.map(({ label: m, href: p, Icon: h }) => /* @__PURE__ */ e(
2479
+ /* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: mt.map(({ label: f, href: b, Icon: x }) => /* @__PURE__ */ e(
2493
2480
  "a",
2494
2481
  {
2495
- href: p,
2482
+ href: b,
2496
2483
  target: "_blank",
2497
2484
  rel: "noopener noreferrer",
2498
- "aria-label": m,
2485
+ "aria-label": f,
2499
2486
  className: "flex h-9 w-9 items-center justify-center rounded-full border border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:border-[var(--brand-primary)] hover:bg-[var(--brand-primary)] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
2500
- children: /* @__PURE__ */ e(h, { className: "h-4 w-4", "aria-hidden": "true" })
2487
+ children: /* @__PURE__ */ e(x, { className: "h-4 w-4", "aria-hidden": "true" })
2501
2488
  },
2502
- m
2489
+ f
2503
2490
  )) })
2504
2491
  ] })
2505
2492
  ] }),
@@ -2550,8 +2537,8 @@ export {
2550
2537
  Gt as AccordionContent,
2551
2538
  Ft as AccordionItem,
2552
2539
  qt as AccordionTrigger,
2553
- Pe as Avatar,
2554
- A as Badge,
2540
+ Me as Avatar,
2541
+ _ as Badge,
2555
2542
  Lt as Breadcrumb,
2556
2543
  Bt as BreadcrumbItem,
2557
2544
  Et as BreadcrumbLink,
@@ -2561,58 +2548,58 @@ export {
2561
2548
  C as Button,
2562
2549
  Mt as Checkbox,
2563
2550
  ra as Col,
2564
- tt as Container,
2551
+ et as Container,
2565
2552
  Ot as DialogContent,
2566
2553
  Jt as DialogDescription,
2567
2554
  Yt as DialogFooter,
2568
2555
  Xt as DialogHeader,
2569
2556
  Zt as DialogTitle,
2570
2557
  Kt as DialogTrigger,
2571
- Le as Divider,
2572
- We as Drawer,
2573
- Y as EmptyState,
2574
- Ge as ErrorState,
2558
+ _e as Divider,
2559
+ Qe as Drawer,
2560
+ X as EmptyState,
2561
+ qe as ErrorState,
2575
2562
  pt as Footer,
2576
- Ve as FormGroup,
2563
+ $e as FormGroup,
2577
2564
  aa as Grid,
2578
- qe as Hero,
2579
- rt as HeroCarousel,
2565
+ Fe as Hero,
2566
+ at as HeroCarousel,
2580
2567
  zt as Input,
2581
- ut as MegaMenu,
2568
+ ct as MegaMenu,
2582
2569
  Wt as Modal,
2583
- Te as PriceDisplay,
2570
+ Ee as PriceDisplay,
2584
2571
  T as ProductCard,
2585
- He as ProductGrid,
2572
+ Ge as ProductGrid,
2586
2573
  la as ProgressBar,
2587
- $e as QuantitySelector,
2574
+ Te as QuantitySelector,
2588
2575
  Pt as RadioGroup,
2589
- _t as RadioGroupItem,
2576
+ At as RadioGroupItem,
2590
2577
  E as Rating,
2591
- Ee as SearchBar,
2578
+ Be as SearchBar,
2592
2579
  Ct as Select,
2593
2580
  jt as SelectContent,
2594
2581
  Dt as SelectItem,
2595
2582
  It as SelectTrigger,
2596
2583
  St as SelectValue,
2597
- Ze as SheetContent,
2584
+ Ye as SheetContent,
2598
2585
  ta as SheetDescription,
2599
2586
  ea as SheetFooter,
2600
- Je as SheetHeader,
2601
- et as SheetTitle,
2602
- Ke as SheetTrigger,
2587
+ Ze as SheetHeader,
2588
+ Je as SheetTitle,
2589
+ We as SheetTrigger,
2603
2590
  Ae as Spinner,
2604
- je as Textarea,
2605
- At as Toggle,
2591
+ Ie as Textarea,
2592
+ _t as Toggle,
2606
2593
  Ht as Tooltip,
2607
2594
  Qt as TooltipContent,
2608
- Fe as TooltipProvider,
2595
+ Ve as TooltipProvider,
2609
2596
  Ut as TooltipTrigger,
2610
- at as TopAccessibilityBar,
2611
- Me as avatarVariants,
2612
- De as badgeVariants,
2613
- Ie as buttonVariants,
2597
+ tt as TopAccessibilityBar,
2598
+ De as avatarVariants,
2599
+ je as badgeVariants,
2600
+ Se as buttonVariants,
2614
2601
  o as cn,
2615
- _e as spinnerVariants,
2602
+ Pe as spinnerVariants,
2616
2603
  na as toast
2617
2604
  };
2618
2605
  //# sourceMappingURL=index.js.map