@grupo-elo-editorial/shared-ui-react 1.4.2 → 1.4.4

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,25 +1,25 @@
1
1
  "use client";
2
2
  import { clsx as ae } from "clsx";
3
3
  import { twMerge as re } from "tailwind-merge";
4
- import { jsx as e, jsxs as o, Fragment as A } from "react/jsx-runtime";
5
- import { forwardRef as N, useState as z, useEffect as _ } from "react";
6
- import { Loader2 as q, User as ie, Star as oe, CheckIcon as X, ChevronDownIcon as T, ChevronUpIcon as ne, CircleIcon as se, ShoppingCart as $, Heart as le, Search as Y, X as de, Minus as ce, Plus as ue, ChevronRight as K, FileX as me, Package as fe, AlertCircle as ge, RefreshCw as pe, Home as ve, XIcon as O, Accessibility as be, ZoomOut as he, ZoomIn as xe, Moon as Ne, Sun as we, ChevronLeft as ye, Menu as ke, ChevronDown as Z, Instagram as ze, Facebook as Ce, Youtube as Se, Linkedin as De, Mail as je } from "lucide-react";
7
- import { cva as L } from "class-variance-authority";
8
- import * as C from "@radix-ui/react-select";
4
+ import { jsx as e, jsxs as o, Fragment as P } from "react/jsx-runtime";
5
+ import { forwardRef as w, useState as C, useRef as ie, useEffect as L } from "react";
6
+ import { Loader2 as q, User as oe, Star as ne, CheckIcon as X, ChevronDownIcon as T, ChevronUpIcon as se, CircleIcon as le, ShoppingCart as $, Heart as de, Search as Y, X as ce, Minus as ue, Plus as me, ChevronRight as K, FileX as fe, Package as ge, AlertCircle as pe, RefreshCw as ve, Home as be, XIcon as O, Accessibility as he, ZoomOut as xe, ZoomIn as Ne, Moon as ye, Sun as we, ChevronLeft as ke, Menu as ze, ChevronDown as Z, Instagram as Ce, Facebook as Se, Youtube as je, Linkedin as De, Mail as Me } from "lucide-react";
7
+ import { cva as B } from "class-variance-authority";
8
+ import * as S from "@radix-ui/react-select";
9
9
  import * as G from "@radix-ui/react-checkbox";
10
10
  import * as V from "@radix-ui/react-radio-group";
11
11
  import * as H from "@radix-ui/react-switch";
12
- import { Slot as Me } from "@radix-ui/react-slot";
13
- import * as B from "@radix-ui/react-accordion";
14
- import * as M from "@radix-ui/react-tooltip";
15
- import { toast as ua } from "sonner";
16
- import { Progress as fa } from "@radix-ui/react-progress";
17
- import * as y from "@radix-ui/react-dialog";
18
- import * as j from "@radix-ui/react-navigation-menu";
12
+ import { Slot as Ae } from "@radix-ui/react-slot";
13
+ import * as _ from "@radix-ui/react-accordion";
14
+ import * as A from "@radix-ui/react-tooltip";
15
+ import { toast as ma } from "sonner";
16
+ import { Progress as ga } from "@radix-ui/react-progress";
17
+ import * as k from "@radix-ui/react-dialog";
18
+ import * as M from "@radix-ui/react-navigation-menu";
19
19
  function i(...a) {
20
20
  return re(ae(a));
21
21
  }
22
- const Pe = L(
22
+ const Pe = B(
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: {
@@ -45,7 +45,7 @@ const Pe = L(
45
45
  size: "md"
46
46
  }
47
47
  }
48
- ), D = N(
48
+ ), j = w(
49
49
  ({
50
50
  className: a,
51
51
  variant: t,
@@ -54,7 +54,7 @@ const Pe = L(
54
54
  isLoading: l,
55
55
  leftIcon: n,
56
56
  rightIcon: d,
57
- children: u,
57
+ children: c,
58
58
  disabled: m,
59
59
  ...f
60
60
  }, v) => /* @__PURE__ */ e(
@@ -64,19 +64,19 @@ const Pe = L(
64
64
  ref: v,
65
65
  disabled: m || l,
66
66
  ...f,
67
- children: l ? /* @__PURE__ */ o(A, { children: [
67
+ children: l ? /* @__PURE__ */ o(P, { children: [
68
68
  /* @__PURE__ */ e(q, { className: "h-4 w-4 animate-spin" }),
69
- u && /* @__PURE__ */ e("span", { children: u })
70
- ] }) : /* @__PURE__ */ o(A, { children: [
69
+ c && /* @__PURE__ */ e("span", { children: c })
70
+ ] }) : /* @__PURE__ */ o(P, { children: [
71
71
  n && /* @__PURE__ */ e("span", { className: "inline-flex", children: n }),
72
- u,
72
+ c,
73
73
  d && /* @__PURE__ */ e("span", { className: "inline-flex", children: d })
74
74
  ] })
75
75
  }
76
76
  )
77
77
  );
78
- D.displayName = "Button";
79
- const Ae = N(
78
+ j.displayName = "Button";
79
+ const _e = w(
80
80
  ({ className: a, error: t, helperText: r, ...s }, l) => /* @__PURE__ */ o("div", { className: "w-full", children: [
81
81
  /* @__PURE__ */ e(
82
82
  "textarea",
@@ -106,8 +106,8 @@ const Ae = N(
106
106
  )
107
107
  ] })
108
108
  );
109
- Ae.displayName = "Textarea";
110
- const _e = L(
109
+ _e.displayName = "Textarea";
110
+ const Be = B(
111
111
  "inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
112
112
  {
113
113
  variants: {
@@ -131,12 +131,12 @@ const _e = L(
131
131
  size: "md"
132
132
  }
133
133
  }
134
- ), E = N(
135
- ({ className: a, variant: t, size: r, icon: s, onRemove: l, children: n, ...d }, u) => /* @__PURE__ */ o(
134
+ ), R = w(
135
+ ({ className: a, variant: t, size: r, icon: s, onRemove: l, children: n, ...d }, c) => /* @__PURE__ */ o(
136
136
  "div",
137
137
  {
138
- ref: u,
139
- className: i(_e({ variant: t, size: r }), a),
138
+ ref: c,
139
+ className: i(Be({ variant: t, size: r }), a),
140
140
  ...d,
141
141
  children: [
142
142
  s && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: s }),
@@ -154,8 +154,8 @@ const _e = L(
154
154
  }
155
155
  )
156
156
  );
157
- E.displayName = "Badge";
158
- const Be = L(
157
+ R.displayName = "Badge";
158
+ const Ee = B(
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,20 +170,20 @@ const Be = L(
170
170
  size: "md"
171
171
  }
172
172
  }
173
- ), Le = N(
174
- ({ className: a, size: t, src: r, alt: s, name: l, showStatus: n, statusType: d = "online", ...u }, m) => {
175
- const [f, v] = z(!1), g = (x) => x.split(" ").map((c) => c[0]).join("").toUpperCase().slice(0, 2), b = {
173
+ ), Le = w(
174
+ ({ className: a, size: t, src: r, alt: s, name: l, showStatus: n, statusType: d = "online", ...c }, m) => {
175
+ const [f, v] = C(!1), p = (N) => N.split(" ").map((u) => u[0]).join("").toUpperCase().slice(0, 2), h = {
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__ */ o("div", { ref: m, className: i(Be({ size: t }), "relative", a), children: [
186
+ return /* @__PURE__ */ o("div", { ref: m, className: i(Ee({ size: t }), "relative", a), children: [
187
187
  r && !f ? /* @__PURE__ */ e(
188
188
  "img",
189
189
  {
@@ -191,16 +191,16 @@ const Be = L(
191
191
  alt: s || l || "Avatar",
192
192
  onError: () => v(!0),
193
193
  className: "h-full w-full object-cover",
194
- ...u
194
+ ...c
195
195
  }
196
- ) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children: g(l) }) : /* @__PURE__ */ e(ie, { className: "h-1/2 w-1/2" }),
196
+ ) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children: p(l) }) : /* @__PURE__ */ e(oe, { className: "h-1/2 w-1/2" }),
197
197
  n && /* @__PURE__ */ e(
198
198
  "span",
199
199
  {
200
200
  className: i(
201
201
  "absolute bottom-0 right-0 rounded-full border-[var(--background)]",
202
- b[d],
203
- h[t || "md"]
202
+ h[d],
203
+ x[t || "md"]
204
204
  ),
205
205
  "aria-label": `Status: ${d}`
206
206
  }
@@ -209,7 +209,7 @@ const Be = L(
209
209
  }
210
210
  );
211
211
  Le.displayName = "Avatar";
212
- const Re = L("animate-spin text-[var(--brand-primary)]", {
212
+ const Re = B("animate-spin text-[var(--brand-primary)]", {
213
213
  variants: {
214
214
  size: {
215
215
  sm: "h-4 w-4",
@@ -221,7 +221,7 @@ const Re = L("animate-spin text-[var(--brand-primary)]", {
221
221
  defaultVariants: {
222
222
  size: "md"
223
223
  }
224
- }), Ee = N(
224
+ }), Te = w(
225
225
  ({ className: a, size: t, label: r, ...s }, l) => /* @__PURE__ */ o(
226
226
  "div",
227
227
  {
@@ -237,8 +237,8 @@ const Re = L("animate-spin text-[var(--brand-primary)]", {
237
237
  }
238
238
  )
239
239
  );
240
- Ee.displayName = "Spinner";
241
- const Te = N(
240
+ Te.displayName = "Spinner";
241
+ const $e = w(
242
242
  ({ className: a, orientation: t = "horizontal", variant: r = "solid", text: s, ...l }, n) => {
243
243
  const d = {
244
244
  solid: "border-solid",
@@ -284,8 +284,8 @@ const Te = N(
284
284
  );
285
285
  }
286
286
  );
287
- Te.displayName = "Divider";
288
- const F = N(
287
+ $e.displayName = "Divider";
288
+ const F = w(
289
289
  ({
290
290
  className: a,
291
291
  value: t = 0,
@@ -294,15 +294,15 @@ const F = N(
294
294
  readonly: l = !1,
295
295
  onChange: n,
296
296
  showValue: d = !1,
297
- ...u
297
+ ...c
298
298
  }, m) => {
299
- const [f, v] = z(0), g = {
299
+ const [f, v] = C(0), p = {
300
300
  sm: "h-4 w-4",
301
301
  md: "h-5 w-5",
302
302
  lg: "h-6 w-6"
303
- }, b = (x) => {
304
- !l && n && n(x);
305
- }, h = f || t;
303
+ }, h = (N) => {
304
+ !l && n && n(N);
305
+ }, x = f || t;
306
306
  return /* @__PURE__ */ o(
307
307
  "div",
308
308
  {
@@ -310,35 +310,35 @@ const F = N(
310
310
  className: i("inline-flex items-center gap-1", a),
311
311
  role: "group",
312
312
  "aria-label": `Rating: ${t} out of ${r}`,
313
- ...u,
313
+ ...c,
314
314
  children: [
315
- /* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (x, c) => c + 1).map((x) => {
316
- const c = x <= h;
315
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (N, u) => u + 1).map((N) => {
316
+ const u = N <= x;
317
317
  return /* @__PURE__ */ e(
318
318
  "button",
319
319
  {
320
320
  type: "button",
321
321
  disabled: l,
322
- onClick: () => b(x),
323
- onMouseEnter: () => !l && v(x),
322
+ onClick: () => h(N),
323
+ onMouseEnter: () => !l && v(N),
324
324
  onMouseLeave: () => !l && v(0),
325
325
  className: i(
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
  l ? "cursor-default" : "cursor-pointer hover:scale-110"
328
328
  ),
329
- "aria-label": `Rate ${x} out of ${r}`,
329
+ "aria-label": `Rate ${N} out of ${r}`,
330
330
  children: /* @__PURE__ */ e(
331
- oe,
331
+ ne,
332
332
  {
333
333
  className: i(
334
- g[s],
334
+ p[s],
335
335
  "transition-all",
336
- c ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
336
+ u ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
337
337
  )
338
338
  }
339
339
  )
340
340
  },
341
- x
341
+ N
342
342
  );
343
343
  }) }),
344
344
  d && /* @__PURE__ */ e("span", { className: "ml-1 text-sm font-medium text-[var(--foreground)]", children: t.toFixed(1) })
@@ -348,7 +348,7 @@ const F = N(
348
348
  }
349
349
  );
350
350
  F.displayName = "Rating";
351
- function Mt({ className: a, type: t, ...r }) {
351
+ function At({ className: a, type: t, ...r }) {
352
352
  return /* @__PURE__ */ e(
353
353
  "input",
354
354
  {
@@ -367,21 +367,21 @@ function Mt({ className: a, type: t, ...r }) {
367
367
  function Pt({
368
368
  ...a
369
369
  }) {
370
- return /* @__PURE__ */ e(C.Root, { "data-slot": "select", ...a });
370
+ return /* @__PURE__ */ e(S.Root, { "data-slot": "select", ...a });
371
371
  }
372
- function At({
372
+ function _t({
373
373
  ...a
374
374
  }) {
375
- return /* @__PURE__ */ e(C.Value, { "data-slot": "select-value", ...a });
375
+ return /* @__PURE__ */ e(S.Value, { "data-slot": "select-value", ...a });
376
376
  }
377
- function _t({
377
+ function Bt({
378
378
  className: a,
379
379
  size: t = "default",
380
380
  children: r,
381
381
  ...s
382
382
  }) {
383
383
  return /* @__PURE__ */ o(
384
- C.Trigger,
384
+ S.Trigger,
385
385
  {
386
386
  "data-slot": "select-trigger",
387
387
  "data-size": t,
@@ -392,19 +392,19 @@ function _t({
392
392
  ...s,
393
393
  children: [
394
394
  r,
395
- /* @__PURE__ */ e(C.Icon, { asChild: !0, children: /* @__PURE__ */ e(T, { className: "size-4 opacity-50" }) })
395
+ /* @__PURE__ */ e(S.Icon, { asChild: !0, children: /* @__PURE__ */ e(T, { className: "size-4 opacity-50" }) })
396
396
  ]
397
397
  }
398
398
  );
399
399
  }
400
- function Bt({
400
+ function Et({
401
401
  className: a,
402
402
  children: t,
403
403
  position: r = "popper",
404
404
  ...s
405
405
  }) {
406
- return /* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ o(
407
- C.Content,
406
+ return /* @__PURE__ */ e(S.Portal, { children: /* @__PURE__ */ o(
407
+ S.Content,
408
408
  {
409
409
  "data-slot": "select-content",
410
410
  className: i(
@@ -415,9 +415,9 @@ function Bt({
415
415
  position: r,
416
416
  ...s,
417
417
  children: [
418
- /* @__PURE__ */ e($e, {}),
418
+ /* @__PURE__ */ e(Ve, {}),
419
419
  /* @__PURE__ */ e(
420
- C.Viewport,
420
+ S.Viewport,
421
421
  {
422
422
  className: i(
423
423
  "p-1",
@@ -426,7 +426,7 @@ function Bt({
426
426
  children: t
427
427
  }
428
428
  ),
429
- /* @__PURE__ */ e(Ve, {})
429
+ /* @__PURE__ */ e(Fe, {})
430
430
  ]
431
431
  }
432
432
  ) });
@@ -437,7 +437,7 @@ function Lt({
437
437
  ...r
438
438
  }) {
439
439
  return /* @__PURE__ */ o(
440
- C.Item,
440
+ S.Item,
441
441
  {
442
442
  "data-slot": "select-item",
443
443
  className: i(
@@ -446,18 +446,18 @@ function Lt({
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(C.ItemIndicator, { children: /* @__PURE__ */ e(X, { className: "size-4" }) }) }),
450
- /* @__PURE__ */ e(C.ItemText, { children: t })
449
+ /* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(S.ItemIndicator, { children: /* @__PURE__ */ e(X, { className: "size-4" }) }) }),
450
+ /* @__PURE__ */ e(S.ItemText, { children: t })
451
451
  ]
452
452
  }
453
453
  );
454
454
  }
455
- function $e({
455
+ function Ve({
456
456
  className: a,
457
457
  ...t
458
458
  }) {
459
459
  return /* @__PURE__ */ e(
460
- C.ScrollUpButton,
460
+ S.ScrollUpButton,
461
461
  {
462
462
  "data-slot": "select-scroll-up-button",
463
463
  className: i(
@@ -465,16 +465,16 @@ function $e({
465
465
  a
466
466
  ),
467
467
  ...t,
468
- children: /* @__PURE__ */ e(ne, { className: "size-4" })
468
+ children: /* @__PURE__ */ e(se, { className: "size-4" })
469
469
  }
470
470
  );
471
471
  }
472
- function Ve({
472
+ function Fe({
473
473
  className: a,
474
474
  ...t
475
475
  }) {
476
476
  return /* @__PURE__ */ e(
477
- C.ScrollDownButton,
477
+ S.ScrollDownButton,
478
478
  {
479
479
  "data-slot": "select-scroll-down-button",
480
480
  className: i(
@@ -510,7 +510,7 @@ function Rt({
510
510
  }
511
511
  );
512
512
  }
513
- function Et({
513
+ function Tt({
514
514
  className: a,
515
515
  ...t
516
516
  }) {
@@ -523,7 +523,7 @@ function Et({
523
523
  }
524
524
  );
525
525
  }
526
- function Tt({
526
+ function $t({
527
527
  className: a,
528
528
  ...t
529
529
  }) {
@@ -541,13 +541,13 @@ function Tt({
541
541
  {
542
542
  "data-slot": "radio-group-indicator",
543
543
  className: "relative flex items-center justify-center",
544
- children: /* @__PURE__ */ e(se, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
544
+ children: /* @__PURE__ */ e(le, { 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 $t({
550
+ function Vt({
551
551
  className: a,
552
552
  ...t
553
553
  }) {
@@ -572,7 +572,7 @@ function $t({
572
572
  }
573
573
  );
574
574
  }
575
- const Fe = ({ src: a, alt: t, className: r }) => (
575
+ const Ie = ({ src: a, alt: t, className: r }) => (
576
576
  // eslint-disable-next-line @next/next/no-img-element
577
577
  /* @__PURE__ */ e("img", { src: a, alt: t, className: r, loading: "lazy", decoding: "async" })
578
578
  );
@@ -583,7 +583,7 @@ function Q({
583
583
  }) {
584
584
  return a ? /* @__PURE__ */ e("a", { href: a, className: t, tabIndex: -1, "aria-hidden": "true", children: r }) : /* @__PURE__ */ e("div", { className: t, children: r });
585
585
  }
586
- const I = N(
586
+ const I = w(
587
587
  ({
588
588
  className: a,
589
589
  image: t,
@@ -592,62 +592,62 @@ const I = N(
592
592
  price: l,
593
593
  originalPrice: n,
594
594
  rating: d,
595
- reviewCount: u,
595
+ reviewCount: c,
596
596
  badge: m,
597
597
  badgeVariant: f = "default",
598
598
  isSkeleton: v = !1,
599
- isOutOfStock: g = !1,
600
- onAddToCart: b,
601
- onToggleFavorite: h,
602
- isFavorite: x = !1,
603
- href: c,
604
- orientation: p = "vertical",
605
- renderImage: w = Fe,
606
- ...S
607
- }, P) => v ? /* @__PURE__ */ o(
599
+ isOutOfStock: p = !1,
600
+ onAddToCart: h,
601
+ onToggleFavorite: x,
602
+ isFavorite: N = !1,
603
+ href: u,
604
+ orientation: b = "vertical",
605
+ renderImage: g = Ie,
606
+ ...y
607
+ }, D) => v ? /* @__PURE__ */ o(
608
608
  "div",
609
609
  {
610
- ref: P,
610
+ ref: D,
611
611
  className: i(
612
612
  "flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
613
- p === "horizontal" ? "flex-row gap-3" : "flex-col",
613
+ b === "horizontal" ? "flex-row gap-3" : "flex-col",
614
614
  a
615
615
  ),
616
- ...S,
616
+ ...y,
617
617
  children: [
618
618
  /* @__PURE__ */ e(
619
619
  "div",
620
620
  {
621
621
  className: i(
622
622
  "rounded-lg bg-[var(--muted)]",
623
- p === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
623
+ b === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
624
624
  )
625
625
  }
626
626
  ),
627
- /* @__PURE__ */ o("div", { className: i("flex flex-col gap-2", p === "horizontal" ? "flex-1" : "mt-3"), children: [
627
+ /* @__PURE__ */ o("div", { className: i("flex flex-col gap-2", b === "horizontal" ? "flex-1" : "mt-3"), children: [
628
628
  /* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded bg-[var(--muted)]" }),
629
629
  /* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded bg-[var(--muted)]" }),
630
630
  /* @__PURE__ */ e("div", { className: "h-10 w-full rounded bg-[var(--muted)]" })
631
631
  ] })
632
632
  ]
633
633
  }
634
- ) : p === "horizontal" ? /* @__PURE__ */ o(
634
+ ) : b === "horizontal" ? /* @__PURE__ */ o(
635
635
  "div",
636
636
  {
637
- ref: P,
637
+ ref: D,
638
638
  className: i(
639
639
  "group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
640
- g && "opacity-60",
640
+ p && "opacity-60",
641
641
  a
642
642
  ),
643
- ...S,
643
+ ...y,
644
644
  children: [
645
645
  /* @__PURE__ */ e(
646
646
  Q,
647
647
  {
648
- href: c,
648
+ href: u,
649
649
  className: "relative block h-24 w-20 shrink-0 overflow-hidden rounded-lg",
650
- children: w({
650
+ children: g({
651
651
  src: t,
652
652
  alt: r,
653
653
  className: "h-full w-full object-contain transition-transform duration-300 group-hover:scale-105"
@@ -655,10 +655,10 @@ const I = N(
655
655
  }
656
656
  ),
657
657
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
658
- c ? /* @__PURE__ */ e(
658
+ u ? /* @__PURE__ */ e(
659
659
  "a",
660
660
  {
661
- href: c,
661
+ href: u,
662
662
  className: "line-clamp-2 text-sm font-medium text-[var(--card-foreground)] hover:text-[var(--brand-primary)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded",
663
663
  children: r
664
664
  }
@@ -666,9 +666,9 @@ const I = N(
666
666
  s && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: s }),
667
667
  d !== void 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
668
668
  /* @__PURE__ */ e(F, { value: d, size: "sm", readonly: !0 }),
669
- u !== void 0 && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
669
+ c !== void 0 && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
670
670
  "(",
671
- u,
671
+ c,
672
672
  ")"
673
673
  ] })
674
674
  ] }),
@@ -682,17 +682,17 @@ const I = N(
682
682
  n.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
683
683
  ] })
684
684
  ] }),
685
- b && /* @__PURE__ */ e(
686
- D,
685
+ h && /* @__PURE__ */ e(
686
+ j,
687
687
  {
688
- onClick: b,
689
- disabled: g,
688
+ onClick: h,
689
+ disabled: p,
690
690
  variant: "primary",
691
691
  size: "sm",
692
692
  fullWidth: !0,
693
693
  leftIcon: /* @__PURE__ */ e($, { className: "h-3.5 w-3.5" }),
694
694
  className: "mt-auto",
695
- children: g ? "Indisponível" : "Adicionar"
695
+ children: p ? "Indisponível" : "Adicionar"
696
696
  }
697
697
  )
698
698
  ] })
@@ -701,52 +701,52 @@ const I = N(
701
701
  ) : /* @__PURE__ */ o(
702
702
  "div",
703
703
  {
704
- ref: P,
704
+ ref: D,
705
705
  className: i(
706
706
  "group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
707
- g && "opacity-60",
707
+ p && "opacity-60",
708
708
  a
709
709
  ),
710
- ...S,
710
+ ...y,
711
711
  children: [
712
712
  /* @__PURE__ */ o(
713
713
  Q,
714
714
  {
715
- href: c,
715
+ href: u,
716
716
  className: "relative block w-full aspect-square overflow-hidden rounded-t-lg",
717
717
  children: [
718
- w({
718
+ g({
719
719
  src: t,
720
720
  alt: r,
721
721
  className: "h-full w-full object-contain transition-transform group-hover:scale-105"
722
722
  }),
723
- m && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(E, { variant: f, children: m }) }),
724
- g && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(E, { variant: "danger", size: "lg", children: "Esgotado" }) })
723
+ m && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(R, { variant: f, children: m }) }),
724
+ p && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(R, { variant: "danger", size: "lg", children: "Esgotado" }) })
725
725
  ]
726
726
  }
727
727
  ),
728
- h && /* @__PURE__ */ e(
728
+ x && /* @__PURE__ */ e(
729
729
  "button",
730
730
  {
731
- onClick: h,
731
+ onClick: x,
732
732
  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)]",
733
- "aria-label": x ? "Remover dos favoritos" : "Adicionar aos favoritos",
733
+ "aria-label": N ? "Remover dos favoritos" : "Adicionar aos favoritos",
734
734
  children: /* @__PURE__ */ e(
735
- le,
735
+ de,
736
736
  {
737
737
  className: i(
738
738
  "h-5 w-5",
739
- x ? "fill-[var(--destructive)] text-[var(--destructive)]" : "text-[var(--foreground)]"
739
+ N ? "fill-[var(--destructive)] text-[var(--destructive)]" : "text-[var(--foreground)]"
740
740
  )
741
741
  }
742
742
  )
743
743
  }
744
744
  ),
745
745
  /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col p-4", children: [
746
- c ? /* @__PURE__ */ e(
746
+ u ? /* @__PURE__ */ e(
747
747
  "a",
748
748
  {
749
- href: c,
749
+ href: u,
750
750
  className: "wrap-break-word text-base font-medium text-card-foreground hover:text-brand-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",
751
751
  children: r
752
752
  }
@@ -754,9 +754,9 @@ const I = N(
754
754
  s && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: s }),
755
755
  d !== void 0 && /* @__PURE__ */ o("div", { className: "mt-2 flex items-center gap-2", children: [
756
756
  /* @__PURE__ */ e(F, { value: d, size: "sm", readonly: !0 }),
757
- u !== void 0 && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
757
+ c !== void 0 && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
758
758
  "(",
759
- u,
759
+ c,
760
760
  ")"
761
761
  ] })
762
762
  ] }),
@@ -770,11 +770,11 @@ const I = N(
770
770
  n.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
771
771
  ] })
772
772
  ] }),
773
- b && /* @__PURE__ */ e(
774
- D,
773
+ h && /* @__PURE__ */ e(
774
+ j,
775
775
  {
776
- onClick: b,
777
- disabled: g,
776
+ onClick: h,
777
+ disabled: p,
778
778
  variant: "primary",
779
779
  size: "md",
780
780
  fullWidth: !0,
@@ -785,7 +785,7 @@ const I = N(
785
785
  "group-hover:opacity-100 group-hover:translate-y-0",
786
786
  "focus-visible:opacity-100 focus-visible:translate-y-0"
787
787
  ),
788
- children: g ? "Indisponível" : "Adicionar"
788
+ children: p ? "Indisponível" : "Adicionar"
789
789
  }
790
790
  )
791
791
  ] })
@@ -794,7 +794,7 @@ const I = N(
794
794
  )
795
795
  );
796
796
  I.displayName = "ProductCard";
797
- const Ie = N(
797
+ const Ue = w(
798
798
  ({
799
799
  className: a,
800
800
  onSearch: t,
@@ -803,20 +803,20 @@ const Ie = N(
803
803
  size: l = "md",
804
804
  placeholder: n = "Buscar...",
805
805
  value: d,
806
- onChange: u,
806
+ onChange: c,
807
807
  ...m
808
808
  }, f) => {
809
- const [v, g] = z(""), b = d !== void 0 ? d : v, h = {
809
+ const [v, p] = C(""), h = d !== void 0 ? d : v, x = {
810
810
  sm: "h-9 text-sm",
811
811
  md: "h-11 text-base",
812
812
  lg: "h-14 text-lg"
813
- }, x = (w) => {
814
- const S = w.target.value;
815
- d === void 0 && g(S), u == null || u(w);
816
- }, c = () => {
817
- d === void 0 && g(""), r == null || r();
818
- }, p = (w) => {
819
- w.key === "Enter" && t && t(b);
813
+ }, N = (g) => {
814
+ const y = g.target.value;
815
+ d === void 0 && p(y), c == null || c(g);
816
+ }, u = () => {
817
+ d === void 0 && p(""), r == null || r();
818
+ }, b = (g) => {
819
+ g.key === "Enter" && t && t(h);
820
820
  };
821
821
  return /* @__PURE__ */ e("div", { className: i("relative w-full", a), children: /* @__PURE__ */ o("div", { className: "relative flex items-center", children: [
822
822
  /* @__PURE__ */ e(Y, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
@@ -825,38 +825,38 @@ const Ie = N(
825
825
  {
826
826
  ref: f,
827
827
  type: "search",
828
- value: b,
829
- onChange: x,
830
- onKeyDown: p,
828
+ value: h,
829
+ onChange: N,
830
+ onKeyDown: b,
831
831
  placeholder: n,
832
832
  className: i(
833
833
  "w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
834
834
  "placeholder:text-[var(--muted-foreground)]",
835
835
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
836
836
  "disabled:cursor-not-allowed disabled:opacity-50",
837
- h[l]
837
+ x[l]
838
838
  ),
839
839
  ...m
840
840
  }
841
841
  ),
842
842
  /* @__PURE__ */ o("div", { className: "absolute right-3 flex items-center gap-1", children: [
843
843
  s && /* @__PURE__ */ e(q, { className: "h-5 w-5 animate-spin text-[var(--muted-foreground)]" }),
844
- b && !s && /* @__PURE__ */ e(
844
+ h && !s && /* @__PURE__ */ e(
845
845
  "button",
846
846
  {
847
847
  type: "button",
848
- onClick: c,
848
+ onClick: u,
849
849
  className: "rounded-full p-1 hover:bg-[var(--muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
850
850
  "aria-label": "Clear search",
851
- children: /* @__PURE__ */ e(de, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
851
+ children: /* @__PURE__ */ e(ce, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
852
852
  }
853
853
  )
854
854
  ] })
855
855
  ] }) });
856
856
  }
857
857
  );
858
- Ie.displayName = "SearchBar";
859
- const Ue = N(
858
+ Ue.displayName = "SearchBar";
859
+ const qe = w(
860
860
  ({
861
861
  className: a,
862
862
  price: t,
@@ -865,20 +865,20 @@ const Ue = N(
865
865
  size: l = "md",
866
866
  showDiscount: n = !0,
867
867
  installments: d,
868
- ...u
868
+ ...c
869
869
  }, m) => {
870
870
  const f = r && r > t ? Math.round((r - t) / r * 100) : 0, v = {
871
871
  sm: "text-base",
872
872
  md: "text-xl",
873
873
  lg: "text-2xl",
874
874
  xl: "text-4xl"
875
- }, g = {
875
+ }, p = {
876
876
  sm: "text-xs",
877
877
  md: "text-sm",
878
878
  lg: "text-base",
879
879
  xl: "text-xl"
880
880
  };
881
- return /* @__PURE__ */ o("div", { ref: m, className: i("flex flex-col gap-1", a), ...u, children: [
881
+ return /* @__PURE__ */ o("div", { ref: m, className: i("flex flex-col gap-1", a), ...c, children: [
882
882
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2 flex-wrap", children: [
883
883
  /* @__PURE__ */ o("div", { className: "flex items-baseline gap-2", children: [
884
884
  /* @__PURE__ */ o("span", { className: i("font-bold text-[var(--foreground)]", v[l]), children: [
@@ -891,7 +891,7 @@ const Ue = N(
891
891
  {
892
892
  className: i(
893
893
  "text-[var(--muted-foreground)] line-through",
894
- g[l]
894
+ p[l]
895
895
  ),
896
896
  children: [
897
897
  s,
@@ -901,7 +901,7 @@ const Ue = N(
901
901
  }
902
902
  )
903
903
  ] }),
904
- n && f > 0 && /* @__PURE__ */ o(E, { variant: "success", size: "sm", children: [
904
+ n && f > 0 && /* @__PURE__ */ o(R, { variant: "success", size: "sm", children: [
905
905
  "-",
906
906
  f,
907
907
  "%"
@@ -919,8 +919,8 @@ const Ue = N(
919
919
  ] });
920
920
  }
921
921
  );
922
- Ue.displayName = "PriceDisplay";
923
- const qe = N(
922
+ qe.displayName = "PriceDisplay";
923
+ const Ge = w(
924
924
  ({
925
925
  className: a,
926
926
  value: t,
@@ -929,39 +929,39 @@ const qe = N(
929
929
  onChange: l,
930
930
  size: n = "md",
931
931
  disabled: d = !1,
932
- showLabel: u = !1,
932
+ showLabel: c = !1,
933
933
  ...m
934
934
  }, f) => {
935
935
  const v = () => {
936
936
  t < s && l(t + 1);
937
- }, g = () => {
937
+ }, p = () => {
938
938
  t > r && l(t - 1);
939
- }, b = (c) => {
940
- const p = parseInt(c.target.value);
941
- !isNaN(p) && p >= r && p <= s && l(p);
942
- }, h = {
939
+ }, h = (u) => {
940
+ const b = parseInt(u.target.value);
941
+ !isNaN(b) && b >= r && b <= s && l(b);
942
+ }, x = {
943
943
  sm: "h-8 w-8",
944
944
  md: "h-10 w-10",
945
945
  lg: "h-12 w-12"
946
- }, x = {
946
+ }, N = {
947
947
  sm: "h-8 w-12 text-sm",
948
948
  md: "h-10 w-14 text-base",
949
949
  lg: "h-12 w-16 text-lg"
950
950
  };
951
951
  return /* @__PURE__ */ o("div", { ref: f, className: i("inline-flex flex-col gap-1", a), ...m, children: [
952
- u && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-[var(--foreground)]", children: "Quantidade" }),
952
+ c && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-[var(--foreground)]", children: "Quantidade" }),
953
953
  /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-2", children: [
954
954
  /* @__PURE__ */ e(
955
- D,
955
+ j,
956
956
  {
957
957
  type: "button",
958
958
  variant: "secondary",
959
959
  size: "sm",
960
- onClick: g,
960
+ onClick: p,
961
961
  disabled: d || t <= r,
962
- className: i(h[n], "p-0"),
962
+ className: i(x[n], "p-0"),
963
963
  "aria-label": "Decrease quantity",
964
- children: /* @__PURE__ */ e(ce, { className: "h-4 w-4" })
964
+ children: /* @__PURE__ */ e(ue, { className: "h-4 w-4" })
965
965
  }
966
966
  ),
967
967
  /* @__PURE__ */ e(
@@ -969,7 +969,7 @@ const qe = N(
969
969
  {
970
970
  type: "number",
971
971
  value: t,
972
- onChange: b,
972
+ onChange: h,
973
973
  min: r,
974
974
  max: s,
975
975
  disabled: d,
@@ -978,31 +978,31 @@ const qe = N(
978
978
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
979
979
  "disabled:cursor-not-allowed disabled:opacity-50",
980
980
  "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
981
- x[n]
981
+ N[n]
982
982
  ),
983
983
  "aria-label": "Quantity"
984
984
  }
985
985
  ),
986
986
  /* @__PURE__ */ e(
987
- D,
987
+ j,
988
988
  {
989
989
  type: "button",
990
990
  variant: "secondary",
991
991
  size: "sm",
992
992
  onClick: v,
993
993
  disabled: d || t >= s,
994
- className: i(h[n], "p-0"),
994
+ className: i(x[n], "p-0"),
995
995
  "aria-label": "Increase quantity",
996
- children: /* @__PURE__ */ e(ue, { className: "h-4 w-4" })
996
+ children: /* @__PURE__ */ e(me, { className: "h-4 w-4" })
997
997
  }
998
998
  )
999
999
  ] })
1000
1000
  ] });
1001
1001
  }
1002
1002
  );
1003
- qe.displayName = "QuantitySelector";
1004
- const Ge = N(
1005
- ({ className: a, label: t, htmlFor: r, required: s, error: l, helperText: n, children: d, ...u }, m) => /* @__PURE__ */ o("div", { ref: m, className: i("flex flex-col gap-1.5", a), ...u, children: [
1003
+ Ge.displayName = "QuantitySelector";
1004
+ const He = w(
1005
+ ({ className: a, label: t, htmlFor: r, required: s, error: l, helperText: n, children: d, ...c }, m) => /* @__PURE__ */ o("div", { ref: m, className: i("flex flex-col gap-1.5", a), ...c, children: [
1006
1006
  t && /* @__PURE__ */ o(
1007
1007
  "label",
1008
1008
  {
@@ -1027,11 +1027,11 @@ const Ge = N(
1027
1027
  )
1028
1028
  ] })
1029
1029
  );
1030
- Ge.displayName = "FormGroup";
1031
- function Vt({ ...a }) {
1030
+ He.displayName = "FormGroup";
1031
+ function Ft({ ...a }) {
1032
1032
  return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
1033
1033
  }
1034
- function Ft({ className: a, ...t }) {
1034
+ function It({ className: a, ...t }) {
1035
1035
  return /* @__PURE__ */ e(
1036
1036
  "ol",
1037
1037
  {
@@ -1044,7 +1044,7 @@ function Ft({ className: a, ...t }) {
1044
1044
  }
1045
1045
  );
1046
1046
  }
1047
- function It({ className: a, ...t }) {
1047
+ function Ut({ className: a, ...t }) {
1048
1048
  return /* @__PURE__ */ e(
1049
1049
  "li",
1050
1050
  {
@@ -1054,13 +1054,13 @@ function It({ className: a, ...t }) {
1054
1054
  }
1055
1055
  );
1056
1056
  }
1057
- function Ut({
1057
+ function qt({
1058
1058
  asChild: a,
1059
1059
  className: t,
1060
1060
  ...r
1061
1061
  }) {
1062
1062
  return /* @__PURE__ */ e(
1063
- a ? Me : "a",
1063
+ a ? Ae : "a",
1064
1064
  {
1065
1065
  "data-slot": "breadcrumb-link",
1066
1066
  className: i("hover:text-foreground transition-colors", t),
@@ -1068,7 +1068,7 @@ function Ut({
1068
1068
  }
1069
1069
  );
1070
1070
  }
1071
- function qt({ className: a, ...t }) {
1071
+ function Gt({ className: a, ...t }) {
1072
1072
  return /* @__PURE__ */ e(
1073
1073
  "span",
1074
1074
  {
@@ -1081,7 +1081,7 @@ function qt({ className: a, ...t }) {
1081
1081
  }
1082
1082
  );
1083
1083
  }
1084
- function Gt({
1084
+ function Ht({
1085
1085
  children: a,
1086
1086
  className: t,
1087
1087
  ...r
@@ -1098,17 +1098,17 @@ function Gt({
1098
1098
  }
1099
1099
  );
1100
1100
  }
1101
- function Ht({
1101
+ function Qt({
1102
1102
  ...a
1103
1103
  }) {
1104
- return /* @__PURE__ */ e(B.Root, { "data-slot": "accordion", ...a });
1104
+ return /* @__PURE__ */ e(_.Root, { "data-slot": "accordion", ...a });
1105
1105
  }
1106
- function Qt({
1106
+ function Wt({
1107
1107
  className: a,
1108
1108
  ...t
1109
1109
  }) {
1110
1110
  return /* @__PURE__ */ e(
1111
- B.Item,
1111
+ _.Item,
1112
1112
  {
1113
1113
  "data-slot": "accordion-item",
1114
1114
  className: i("border-b last:border-b-0", a),
@@ -1116,13 +1116,13 @@ function Qt({
1116
1116
  }
1117
1117
  );
1118
1118
  }
1119
- function Wt({
1119
+ function Xt({
1120
1120
  className: a,
1121
1121
  children: t,
1122
1122
  ...r
1123
1123
  }) {
1124
- return /* @__PURE__ */ e(B.Header, { className: "flex", children: /* @__PURE__ */ o(
1125
- B.Trigger,
1124
+ return /* @__PURE__ */ e(_.Header, { className: "flex", children: /* @__PURE__ */ o(
1125
+ _.Trigger,
1126
1126
  {
1127
1127
  "data-slot": "accordion-trigger",
1128
1128
  className: i(
@@ -1137,13 +1137,13 @@ function Wt({
1137
1137
  }
1138
1138
  ) });
1139
1139
  }
1140
- function Xt({
1140
+ function Yt({
1141
1141
  className: a,
1142
1142
  children: t,
1143
1143
  ...r
1144
1144
  }) {
1145
1145
  return /* @__PURE__ */ e(
1146
- B.Content,
1146
+ _.Content,
1147
1147
  {
1148
1148
  "data-slot": "accordion-content",
1149
1149
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
@@ -1152,12 +1152,12 @@ function Xt({
1152
1152
  }
1153
1153
  );
1154
1154
  }
1155
- function He({
1155
+ function Qe({
1156
1156
  delayDuration: a = 0,
1157
1157
  ...t
1158
1158
  }) {
1159
1159
  return /* @__PURE__ */ e(
1160
- M.Provider,
1160
+ A.Provider,
1161
1161
  {
1162
1162
  "data-slot": "tooltip-provider",
1163
1163
  delayDuration: a,
@@ -1165,24 +1165,24 @@ function He({
1165
1165
  }
1166
1166
  );
1167
1167
  }
1168
- function Yt({
1168
+ function Kt({
1169
1169
  ...a
1170
1170
  }) {
1171
- return /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(M.Root, { "data-slot": "tooltip", ...a }) });
1171
+ return /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e(A.Root, { "data-slot": "tooltip", ...a }) });
1172
1172
  }
1173
- function Kt({
1173
+ function Ot({
1174
1174
  ...a
1175
1175
  }) {
1176
- return /* @__PURE__ */ e(M.Trigger, { "data-slot": "tooltip-trigger", ...a });
1176
+ return /* @__PURE__ */ e(A.Trigger, { "data-slot": "tooltip-trigger", ...a });
1177
1177
  }
1178
- function Ot({
1178
+ function Zt({
1179
1179
  className: a,
1180
1180
  sideOffset: t = 0,
1181
1181
  children: r,
1182
1182
  ...s
1183
1183
  }) {
1184
- return /* @__PURE__ */ e(M.Portal, { children: /* @__PURE__ */ o(
1185
- M.Content,
1184
+ return /* @__PURE__ */ e(A.Portal, { children: /* @__PURE__ */ o(
1185
+ A.Content,
1186
1186
  {
1187
1187
  "data-slot": "tooltip-content",
1188
1188
  sideOffset: t,
@@ -1193,12 +1193,12 @@ function Ot({
1193
1193
  ...s,
1194
1194
  children: [
1195
1195
  r,
1196
- /* @__PURE__ */ e(M.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1196
+ /* @__PURE__ */ e(A.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1197
1197
  ]
1198
1198
  }
1199
1199
  ) });
1200
1200
  }
1201
- const Qe = N(
1201
+ const We = w(
1202
1202
  ({
1203
1203
  className: a,
1204
1204
  variant: t = "default",
@@ -1207,14 +1207,14 @@ const Qe = N(
1207
1207
  description: l,
1208
1208
  primaryCTA: n,
1209
1209
  secondaryCTA: d,
1210
- backgroundImage: u,
1210
+ backgroundImage: c,
1211
1211
  overlay: m = !0,
1212
1212
  children: f,
1213
1213
  ...v
1214
- }, g) => /* @__PURE__ */ o(
1214
+ }, p) => /* @__PURE__ */ o(
1215
1215
  "section",
1216
1216
  {
1217
- ref: g,
1217
+ ref: p,
1218
1218
  className: i(
1219
1219
  "relative flex min-h-[400px] w-full flex-col justify-center px-6 py-16 lg:px-12 lg:py-24",
1220
1220
  {
@@ -1226,12 +1226,12 @@ const Qe = N(
1226
1226
  ),
1227
1227
  ...v,
1228
1228
  children: [
1229
- u && /* @__PURE__ */ o(A, { children: [
1229
+ c && /* @__PURE__ */ o(P, { children: [
1230
1230
  /* @__PURE__ */ e(
1231
1231
  "div",
1232
1232
  {
1233
1233
  className: "absolute inset-0 bg-cover bg-center bg-no-repeat",
1234
- style: { backgroundImage: `url(${u})` }
1234
+ style: { backgroundImage: `url(${c})` }
1235
1235
  }
1236
1236
  ),
1237
1237
  m && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-black/70 to-black/30" })
@@ -1250,7 +1250,7 @@ const Qe = N(
1250
1250
  {
1251
1251
  className: i(
1252
1252
  "mb-4 text-sm font-semibold uppercase tracking-wider",
1253
- u ? "text-[var(--warning)]" : "text-[var(--brand-primary)]"
1253
+ c ? "text-[var(--warning)]" : "text-[var(--brand-primary)]"
1254
1254
  ),
1255
1255
  children: s
1256
1256
  }
@@ -1260,7 +1260,7 @@ const Qe = N(
1260
1260
  {
1261
1261
  className: i(
1262
1262
  "text-4xl font-bold leading-tight lg:text-5xl xl:text-6xl",
1263
- u ? "text-white" : "text-[var(--foreground)]"
1263
+ c ? "text-white" : "text-[var(--foreground)]"
1264
1264
  ),
1265
1265
  children: r
1266
1266
  }
@@ -1270,14 +1270,14 @@ const Qe = N(
1270
1270
  {
1271
1271
  className: i(
1272
1272
  "mt-6 text-lg lg:text-xl",
1273
- u ? "text-gray-200" : "text-[var(--muted-foreground)]"
1273
+ c ? "text-gray-200" : "text-[var(--muted-foreground)]"
1274
1274
  ),
1275
1275
  children: l
1276
1276
  }
1277
1277
  ),
1278
1278
  (n || d) && /* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4", children: [
1279
1279
  n && /* @__PURE__ */ e(
1280
- D,
1280
+ j,
1281
1281
  {
1282
1282
  size: "lg",
1283
1283
  onClick: n.onClick,
@@ -1286,7 +1286,7 @@ const Qe = N(
1286
1286
  }
1287
1287
  ),
1288
1288
  d && /* @__PURE__ */ e(
1289
- D,
1289
+ j,
1290
1290
  {
1291
1291
  size: "lg",
1292
1292
  onClick: d.onClick,
@@ -1305,8 +1305,8 @@ const Qe = N(
1305
1305
  }
1306
1306
  )
1307
1307
  );
1308
- Qe.displayName = "Hero";
1309
- const J = N(
1308
+ We.displayName = "Hero";
1309
+ const J = w(
1310
1310
  ({
1311
1311
  className: a,
1312
1312
  variant: t = "default",
@@ -1315,17 +1315,17 @@ const J = N(
1315
1315
  description: l,
1316
1316
  action: n,
1317
1317
  ...d
1318
- }, u) => {
1318
+ }, c) => {
1319
1319
  const f = r || {
1320
- default: /* @__PURE__ */ e(fe, { className: "h-16 w-16" }),
1320
+ default: /* @__PURE__ */ e(ge, { className: "h-16 w-16" }),
1321
1321
  search: /* @__PURE__ */ e(Y, { className: "h-16 w-16" }),
1322
1322
  cart: /* @__PURE__ */ e($, { className: "h-16 w-16" }),
1323
- error: /* @__PURE__ */ e(me, { className: "h-16 w-16" })
1323
+ error: /* @__PURE__ */ e(fe, { className: "h-16 w-16" })
1324
1324
  }[t];
1325
1325
  return /* @__PURE__ */ o(
1326
1326
  "div",
1327
1327
  {
1328
- ref: u,
1328
+ ref: c,
1329
1329
  className: i(
1330
1330
  "flex flex-col items-center justify-center py-16 px-6 text-center",
1331
1331
  a
@@ -1336,7 +1336,7 @@ const J = N(
1336
1336
  /* @__PURE__ */ e("h3", { className: "mt-6 text-xl font-semibold text-[var(--foreground)]", children: s }),
1337
1337
  l && /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: l }),
1338
1338
  n && /* @__PURE__ */ e(
1339
- D,
1339
+ j,
1340
1340
  {
1341
1341
  onClick: n.onClick,
1342
1342
  variant: "primary",
@@ -1351,7 +1351,7 @@ const J = N(
1351
1351
  }
1352
1352
  );
1353
1353
  J.displayName = "EmptyState";
1354
- const We = N(
1354
+ const Xe = w(
1355
1355
  ({
1356
1356
  className: a,
1357
1357
  type: t = "generic",
@@ -1360,10 +1360,10 @@ const We = N(
1360
1360
  onRetry: l,
1361
1361
  onGoHome: n,
1362
1362
  showRetry: d = !0,
1363
- showHome: u = !0,
1363
+ showHome: c = !0,
1364
1364
  ...m
1365
1365
  }, f) => {
1366
- const g = {
1366
+ const p = {
1367
1367
  404: {
1368
1368
  title: "Página não encontrada",
1369
1369
  message: "A página que você está procurando não existe ou foi movida.",
@@ -1384,7 +1384,7 @@ const We = N(
1384
1384
  message: "Ocorreu um erro inesperado. Por favor, tente novamente.",
1385
1385
  code: ""
1386
1386
  }
1387
- }[t], b = r || g.title, h = s || g.message;
1387
+ }[t], h = r || p.title, x = s || p.message;
1388
1388
  return /* @__PURE__ */ o(
1389
1389
  "div",
1390
1390
  {
@@ -1398,29 +1398,29 @@ const We = N(
1398
1398
  ...m,
1399
1399
  children: [
1400
1400
  /* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-4", children: [
1401
- g.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: g.code }),
1402
- /* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(ge, { className: "h-16 w-16" }) })
1401
+ p.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: p.code }),
1402
+ /* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(pe, { className: "h-16 w-16" }) })
1403
1403
  ] }),
1404
- /* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
1405
- /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: h }),
1404
+ /* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: h }),
1405
+ /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: x }),
1406
1406
  /* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
1407
1407
  d && l && /* @__PURE__ */ e(
1408
- D,
1408
+ j,
1409
1409
  {
1410
1410
  onClick: l,
1411
1411
  variant: "primary",
1412
1412
  size: "lg",
1413
- leftIcon: /* @__PURE__ */ e(pe, { className: "h-5 w-5" }),
1413
+ leftIcon: /* @__PURE__ */ e(ve, { className: "h-5 w-5" }),
1414
1414
  children: "Tentar novamente"
1415
1415
  }
1416
1416
  ),
1417
- u && n && /* @__PURE__ */ e(
1418
- D,
1417
+ c && n && /* @__PURE__ */ e(
1418
+ j,
1419
1419
  {
1420
1420
  onClick: n,
1421
1421
  variant: "secondary",
1422
1422
  size: "lg",
1423
- leftIcon: /* @__PURE__ */ e(ve, { className: "h-5 w-5" }),
1423
+ leftIcon: /* @__PURE__ */ e(be, { className: "h-5 w-5" }),
1424
1424
  children: "Voltar ao início"
1425
1425
  }
1426
1426
  )
@@ -1430,8 +1430,8 @@ const We = N(
1430
1430
  );
1431
1431
  }
1432
1432
  );
1433
- We.displayName = "ErrorState";
1434
- const Xe = N(
1433
+ Xe.displayName = "ErrorState";
1434
+ const Ye = w(
1435
1435
  ({
1436
1436
  className: a,
1437
1437
  products: t,
@@ -1440,11 +1440,11 @@ const Xe = N(
1440
1440
  isLoading: l = !1,
1441
1441
  skeletonCount: n = 8,
1442
1442
  emptyStateMessage: d = "Nenhum produto encontrado",
1443
- onEmptyAction: u,
1443
+ onEmptyAction: c,
1444
1444
  renderImage: m,
1445
1445
  ...f
1446
1446
  }, v) => {
1447
- const g = {
1447
+ const p = {
1448
1448
  sm: "gap-4",
1449
1449
  md: "gap-6",
1450
1450
  lg: "gap-8"
@@ -1455,11 +1455,11 @@ const Xe = N(
1455
1455
  ref: v,
1456
1456
  className: i(
1457
1457
  "grid grid-cols-2 lg:grid-cols-4",
1458
- g[s],
1458
+ p[s],
1459
1459
  a
1460
1460
  ),
1461
1461
  ...f,
1462
- children: Array.from({ length: n }).map((b, h) => /* @__PURE__ */ e(
1462
+ children: Array.from({ length: n }).map((h, x) => /* @__PURE__ */ e(
1463
1463
  I,
1464
1464
  {
1465
1465
  image: "",
@@ -1467,7 +1467,7 @@ const Xe = N(
1467
1467
  price: 0,
1468
1468
  isSkeleton: !0
1469
1469
  },
1470
- h
1470
+ x
1471
1471
  ))
1472
1472
  }
1473
1473
  ) : t.length === 0 ? /* @__PURE__ */ e(
@@ -1476,9 +1476,9 @@ const Xe = N(
1476
1476
  variant: "search",
1477
1477
  title: d,
1478
1478
  description: "Tente ajustar seus filtros ou realizar uma nova busca",
1479
- action: u ? {
1479
+ action: c ? {
1480
1480
  label: "Limpar filtros",
1481
- onClick: u
1481
+ onClick: c
1482
1482
  } : void 0
1483
1483
  }
1484
1484
  ) : /* @__PURE__ */ e(
@@ -1487,37 +1487,37 @@ const Xe = N(
1487
1487
  ref: v,
1488
1488
  className: i(
1489
1489
  "grid grid-cols-2 lg:grid-cols-4",
1490
- g[s],
1490
+ p[s],
1491
1491
  a
1492
1492
  ),
1493
1493
  ...f,
1494
- children: t.map((b, h) => /* @__PURE__ */ e(I, { ...b, renderImage: b.renderImage ?? m }, h))
1494
+ children: t.map((h, x) => /* @__PURE__ */ e(I, { ...h, renderImage: h.renderImage ?? m }, x))
1495
1495
  }
1496
1496
  );
1497
1497
  }
1498
1498
  );
1499
- Xe.displayName = "ProductGrid";
1500
- function Zt({
1499
+ Ye.displayName = "ProductGrid";
1500
+ function Jt({
1501
1501
  ...a
1502
1502
  }) {
1503
- return /* @__PURE__ */ e(y.Root, { "data-slot": "dialog", ...a });
1503
+ return /* @__PURE__ */ e(k.Root, { "data-slot": "dialog", ...a });
1504
1504
  }
1505
- function Jt({
1505
+ function ea({
1506
1506
  ...a
1507
1507
  }) {
1508
- return /* @__PURE__ */ e(y.Trigger, { "data-slot": "dialog-trigger", ...a });
1508
+ return /* @__PURE__ */ e(k.Trigger, { "data-slot": "dialog-trigger", ...a });
1509
1509
  }
1510
- function Ye({
1510
+ function Ke({
1511
1511
  ...a
1512
1512
  }) {
1513
- return /* @__PURE__ */ e(y.Portal, { "data-slot": "dialog-portal", ...a });
1513
+ return /* @__PURE__ */ e(k.Portal, { "data-slot": "dialog-portal", ...a });
1514
1514
  }
1515
- function Ke({
1515
+ function Oe({
1516
1516
  className: a,
1517
1517
  ...t
1518
1518
  }) {
1519
1519
  return /* @__PURE__ */ e(
1520
- y.Overlay,
1520
+ k.Overlay,
1521
1521
  {
1522
1522
  "data-slot": "dialog-overlay",
1523
1523
  className: i(
@@ -1528,15 +1528,15 @@ function Ke({
1528
1528
  }
1529
1529
  );
1530
1530
  }
1531
- function ea({
1531
+ function ta({
1532
1532
  className: a,
1533
1533
  children: t,
1534
1534
  ...r
1535
1535
  }) {
1536
- return /* @__PURE__ */ o(Ye, { "data-slot": "dialog-portal", children: [
1537
- /* @__PURE__ */ e(Ke, {}),
1536
+ return /* @__PURE__ */ o(Ke, { "data-slot": "dialog-portal", children: [
1537
+ /* @__PURE__ */ e(Oe, {}),
1538
1538
  /* @__PURE__ */ o(
1539
- y.Content,
1539
+ k.Content,
1540
1540
  {
1541
1541
  "data-slot": "dialog-content",
1542
1542
  className: i(
@@ -1546,7 +1546,7 @@ function ea({
1546
1546
  ...r,
1547
1547
  children: [
1548
1548
  t,
1549
- /* @__PURE__ */ o(y.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: [
1549
+ /* @__PURE__ */ o(k.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
1550
  /* @__PURE__ */ e(O, {}),
1551
1551
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
1552
1552
  ] })
@@ -1555,7 +1555,7 @@ function ea({
1555
1555
  )
1556
1556
  ] });
1557
1557
  }
1558
- function ta({ className: a, ...t }) {
1558
+ function aa({ className: a, ...t }) {
1559
1559
  return /* @__PURE__ */ e(
1560
1560
  "div",
1561
1561
  {
@@ -1565,7 +1565,7 @@ function ta({ className: a, ...t }) {
1565
1565
  }
1566
1566
  );
1567
1567
  }
1568
- function aa({ className: a, ...t }) {
1568
+ function ra({ className: a, ...t }) {
1569
1569
  return /* @__PURE__ */ e(
1570
1570
  "div",
1571
1571
  {
@@ -1578,12 +1578,12 @@ function aa({ className: a, ...t }) {
1578
1578
  }
1579
1579
  );
1580
1580
  }
1581
- function ra({
1581
+ function ia({
1582
1582
  className: a,
1583
1583
  ...t
1584
1584
  }) {
1585
1585
  return /* @__PURE__ */ e(
1586
- y.Title,
1586
+ k.Title,
1587
1587
  {
1588
1588
  "data-slot": "dialog-title",
1589
1589
  className: i("text-lg leading-none font-semibold", a),
@@ -1591,12 +1591,12 @@ function ra({
1591
1591
  }
1592
1592
  );
1593
1593
  }
1594
- function ia({
1594
+ function oa({
1595
1595
  className: a,
1596
1596
  ...t
1597
1597
  }) {
1598
1598
  return /* @__PURE__ */ e(
1599
- y.Description,
1599
+ k.Description,
1600
1600
  {
1601
1601
  "data-slot": "dialog-description",
1602
1602
  className: i("text-muted-foreground text-sm", a),
@@ -1604,30 +1604,30 @@ function ia({
1604
1604
  }
1605
1605
  );
1606
1606
  }
1607
- function Oe({ ...a }) {
1608
- return /* @__PURE__ */ e(y.Root, { "data-slot": "sheet", ...a });
1609
- }
1610
- function Ze({
1611
- ...a
1612
- }) {
1613
- return /* @__PURE__ */ e(y.Trigger, { "data-slot": "sheet-trigger", ...a });
1607
+ function Ze({ ...a }) {
1608
+ return /* @__PURE__ */ e(k.Root, { "data-slot": "sheet", ...a });
1614
1609
  }
1615
1610
  function Je({
1616
1611
  ...a
1617
1612
  }) {
1618
- return /* @__PURE__ */ e(y.Close, { "data-slot": "sheet-close", ...a });
1613
+ return /* @__PURE__ */ e(k.Trigger, { "data-slot": "sheet-trigger", ...a });
1619
1614
  }
1620
1615
  function et({
1621
1616
  ...a
1622
1617
  }) {
1623
- return /* @__PURE__ */ e(y.Portal, { "data-slot": "sheet-portal", ...a });
1618
+ return /* @__PURE__ */ e(k.Close, { "data-slot": "sheet-close", ...a });
1624
1619
  }
1625
1620
  function tt({
1621
+ ...a
1622
+ }) {
1623
+ return /* @__PURE__ */ e(k.Portal, { "data-slot": "sheet-portal", ...a });
1624
+ }
1625
+ function at({
1626
1626
  className: a,
1627
1627
  ...t
1628
1628
  }) {
1629
1629
  return /* @__PURE__ */ e(
1630
- y.Overlay,
1630
+ k.Overlay,
1631
1631
  {
1632
1632
  "data-slot": "sheet-overlay",
1633
1633
  className: i(
@@ -1638,16 +1638,16 @@ function tt({
1638
1638
  }
1639
1639
  );
1640
1640
  }
1641
- function at({
1641
+ function rt({
1642
1642
  className: a,
1643
1643
  children: t,
1644
1644
  side: r = "right",
1645
1645
  ...s
1646
1646
  }) {
1647
- return /* @__PURE__ */ o(et, { children: [
1648
- /* @__PURE__ */ e(tt, {}),
1647
+ return /* @__PURE__ */ o(tt, { children: [
1648
+ /* @__PURE__ */ e(at, {}),
1649
1649
  /* @__PURE__ */ o(
1650
- y.Content,
1650
+ k.Content,
1651
1651
  {
1652
1652
  "data-slot": "sheet-content",
1653
1653
  className: i(
@@ -1661,7 +1661,7 @@ function at({
1661
1661
  ...s,
1662
1662
  children: [
1663
1663
  t,
1664
- /* @__PURE__ */ o(y.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: [
1664
+ /* @__PURE__ */ o(k.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
1665
  /* @__PURE__ */ e(O, { className: "size-4" }),
1666
1666
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
1667
1667
  ] })
@@ -1670,7 +1670,7 @@ function at({
1670
1670
  )
1671
1671
  ] });
1672
1672
  }
1673
- function rt({ className: a, ...t }) {
1673
+ function it({ className: a, ...t }) {
1674
1674
  return /* @__PURE__ */ e(
1675
1675
  "div",
1676
1676
  {
@@ -1680,7 +1680,7 @@ function rt({ className: a, ...t }) {
1680
1680
  }
1681
1681
  );
1682
1682
  }
1683
- function oa({ className: a, ...t }) {
1683
+ function na({ className: a, ...t }) {
1684
1684
  return /* @__PURE__ */ e(
1685
1685
  "div",
1686
1686
  {
@@ -1690,12 +1690,12 @@ function oa({ className: a, ...t }) {
1690
1690
  }
1691
1691
  );
1692
1692
  }
1693
- function it({
1693
+ function ot({
1694
1694
  className: a,
1695
1695
  ...t
1696
1696
  }) {
1697
1697
  return /* @__PURE__ */ e(
1698
- y.Title,
1698
+ k.Title,
1699
1699
  {
1700
1700
  "data-slot": "sheet-title",
1701
1701
  className: i("text-foreground font-semibold", a),
@@ -1703,12 +1703,12 @@ function it({
1703
1703
  }
1704
1704
  );
1705
1705
  }
1706
- function na({
1706
+ function sa({
1707
1707
  className: a,
1708
1708
  ...t
1709
1709
  }) {
1710
1710
  return /* @__PURE__ */ e(
1711
- y.Description,
1711
+ k.Description,
1712
1712
  {
1713
1713
  "data-slot": "sheet-description",
1714
1714
  className: i("text-muted-foreground text-sm", a),
@@ -1716,7 +1716,7 @@ function na({
1716
1716
  }
1717
1717
  );
1718
1718
  }
1719
- function ot({ children: a, as: t = "div", className: r }) {
1719
+ function nt({ children: a, as: t = "div", className: r }) {
1720
1720
  return /* @__PURE__ */ e(
1721
1721
  t,
1722
1722
  {
@@ -1727,31 +1727,36 @@ function ot({ children: a, as: t = "div", className: r }) {
1727
1727
  }
1728
1728
  );
1729
1729
  }
1730
- const nt = N(
1730
+ const st = w(
1731
1731
  ({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: s = !1, ...l }, n) => {
1732
- const [d, u] = z("light"), [m, f] = z(16), [v, g] = z(!1);
1733
- _(() => {
1734
- const p = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
- u(p);
1736
- const w = Number(localStorage.getItem("a11y-font-size"));
1737
- Number.isFinite(w) && w > 0 && f(w);
1738
- }, []), _(() => {
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
- g(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
1743
- }, document.body.appendChild(p);
1732
+ const [d, c] = C("light"), [m, f] = C(16), [v, p] = C(!1), h = ie(!1);
1733
+ L(() => {
1734
+ const y = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
+ c(y);
1736
+ const D = Number(localStorage.getItem("a11y-font-size"));
1737
+ Number.isFinite(D) && D > 0 && f(D);
1738
+ }, []);
1739
+ const x = () => {
1740
+ if (h.current) {
1741
+ const g = document.querySelector("[vw]"), y = !v;
1742
+ g && (g.style.display = y ? "" : "none"), p(y);
1743
+ } else {
1744
+ const g = document.createElement("div");
1745
+ g.setAttribute("vw", ""), g.className = "enabled", g.innerHTML = '<div vw-access-button class="active"></div><div vw-plugin-wrapper><div class="vw-plugin-top-wrapper"></div></div>', document.body.appendChild(g);
1746
+ const y = document.createElement("script");
1747
+ y.src = "https://vlibras.gov.br/app/vlibras-plugin.js", y.async = !0, y.onload = () => {
1748
+ window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app"), h.current = !0, p(!0);
1749
+ }, document.body.appendChild(y);
1744
1750
  }
1745
- }, [v]);
1746
- const b = () => {
1747
- const c = d === "light" ? "dark" : "light";
1748
- u(c), document.documentElement.setAttribute("data-theme", c), localStorage.setItem("a11y-theme", c), t == null || t(c);
1749
- }, h = () => {
1750
- const c = Math.min(m + 2, 24);
1751
- f(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
1752
- }, x = () => {
1753
- const c = Math.max(m - 2, 12);
1754
- f(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
1751
+ }, N = () => {
1752
+ const g = d === "light" ? "dark" : "light";
1753
+ c(g), document.documentElement.setAttribute("data-theme", g), localStorage.setItem("a11y-theme", g), t == null || t(g);
1754
+ }, u = () => {
1755
+ const g = Math.min(m + 2, 24);
1756
+ f(g), document.documentElement.style.setProperty("--font-size", `${g}px`), document.documentElement.style.fontSize = `${g}px`, localStorage.setItem("a11y-font-size", g.toString()), r == null || r(g);
1757
+ }, b = () => {
1758
+ const g = Math.max(m - 2, 12);
1759
+ f(g), document.documentElement.style.setProperty("--font-size", `${g}px`), document.documentElement.style.fontSize = `${g}px`, localStorage.setItem("a11y-font-size", g.toString()), r == null || r(g);
1755
1760
  };
1756
1761
  return /* @__PURE__ */ e(
1757
1762
  "div",
@@ -1764,9 +1769,9 @@ const nt = N(
1764
1769
  role: "toolbar",
1765
1770
  "aria-label": "Ferramentas de acessibilidade",
1766
1771
  ...l,
1767
- children: /* @__PURE__ */ o(ot, { className: "py-2 flex items-center justify-between", children: [
1772
+ children: /* @__PURE__ */ o(nt, { className: "py-2 flex items-center justify-between", children: [
1768
1773
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2 text-sm text-[var(--muted-foreground)]", children: [
1769
- /* @__PURE__ */ e(be, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
1774
+ /* @__PURE__ */ e(he, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
1770
1775
  /* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Ferramentas de Acessibilidade" })
1771
1776
  ] }),
1772
1777
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2 md:gap-4", children: [
@@ -1783,7 +1788,7 @@ const nt = N(
1783
1788
  "button",
1784
1789
  {
1785
1790
  type: "button",
1786
- onClick: x,
1791
+ onClick: b,
1787
1792
  disabled: m <= 12,
1788
1793
  "aria-label": "Diminuir tamanho da fonte",
1789
1794
  className: i(
@@ -1791,7 +1796,7 @@ const nt = N(
1791
1796
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
1792
1797
  "disabled:opacity-40 disabled:cursor-not-allowed"
1793
1798
  ),
1794
- children: /* @__PURE__ */ e(he, { className: "h-4 w-4" })
1799
+ children: /* @__PURE__ */ e(xe, { className: "h-4 w-4" })
1795
1800
  }
1796
1801
  ),
1797
1802
  /* @__PURE__ */ e("span", { className: "text-xs text-[var(--muted-foreground)] w-3 text-center select-none", "aria-hidden": "true", children: "A" }),
@@ -1799,7 +1804,7 @@ const nt = N(
1799
1804
  "button",
1800
1805
  {
1801
1806
  type: "button",
1802
- onClick: h,
1807
+ onClick: u,
1803
1808
  disabled: m >= 24,
1804
1809
  "aria-label": "Aumentar tamanho da fonte",
1805
1810
  className: i(
@@ -1807,7 +1812,7 @@ const nt = N(
1807
1812
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
1808
1813
  "disabled:opacity-40 disabled:cursor-not-allowed"
1809
1814
  ),
1810
- children: /* @__PURE__ */ e(xe, { className: "h-4 w-4" })
1815
+ children: /* @__PURE__ */ e(Ne, { className: "h-4 w-4" })
1811
1816
  }
1812
1817
  )
1813
1818
  ] }),
@@ -1815,20 +1820,20 @@ const nt = N(
1815
1820
  "button",
1816
1821
  {
1817
1822
  type: "button",
1818
- onClick: b,
1823
+ onClick: N,
1819
1824
  "aria-label": d === "light" ? "Ativar modo escuro" : "Ativar modo claro",
1820
1825
  className: i(
1821
1826
  "p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
1822
1827
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1823
1828
  ),
1824
- children: d === "light" ? /* @__PURE__ */ e(Ne, { className: "h-4 w-4" }) : /* @__PURE__ */ e(we, { className: "h-4 w-4" })
1829
+ children: d === "light" ? /* @__PURE__ */ e(ye, { className: "h-4 w-4" }) : /* @__PURE__ */ e(we, { className: "h-4 w-4" })
1825
1830
  }
1826
1831
  ),
1827
1832
  /* @__PURE__ */ e(
1828
1833
  "button",
1829
1834
  {
1830
1835
  type: "button",
1831
- onClick: () => g((c) => !c),
1836
+ onClick: x,
1832
1837
  "aria-label": "Ativar VLibras",
1833
1838
  "aria-pressed": v,
1834
1839
  className: i(
@@ -1849,8 +1854,8 @@ const nt = N(
1849
1854
  );
1850
1855
  }
1851
1856
  );
1852
- nt.displayName = "TopAccessibilityBar";
1853
- const st = N(
1857
+ st.displayName = "TopAccessibilityBar";
1858
+ const lt = w(
1854
1859
  ({
1855
1860
  className: a,
1856
1861
  slides: t,
@@ -1858,141 +1863,143 @@ const st = N(
1858
1863
  autoplay: s = !0,
1859
1864
  ...l
1860
1865
  }, n) => {
1861
- const [d, u] = z(0), [m, f] = z(!1), [v, g] = z(!1);
1862
- _(() => {
1863
- const c = window.matchMedia("(prefers-reduced-motion: reduce)");
1864
- g(c.matches);
1865
- const p = (w) => {
1866
- g(w.matches);
1866
+ const [d, c] = C(0), [m, f] = C(!1), [v, p] = C(!1);
1867
+ L(() => {
1868
+ const u = window.matchMedia("(prefers-reduced-motion: reduce)");
1869
+ p(u.matches);
1870
+ const b = (g) => {
1871
+ p(g.matches);
1867
1872
  };
1868
- return c.addEventListener("change", p), () => c.removeEventListener("change", p);
1869
- }, []), _(() => {
1873
+ return u.addEventListener("change", b), () => u.removeEventListener("change", b);
1874
+ }, []), L(() => {
1870
1875
  if (!s || m || v) return;
1871
- const c = setInterval(() => {
1872
- u((p) => (p + 1) % t.length);
1876
+ const u = setInterval(() => {
1877
+ c((b) => (b + 1) % t.length);
1873
1878
  }, r);
1874
- return () => clearInterval(c);
1879
+ return () => clearInterval(u);
1875
1880
  }, [s, r, t.length, m, v]);
1876
- const b = (c) => {
1877
- u(c), f(!0), setTimeout(() => f(!1), r);
1878
- }, h = () => {
1879
- b((d - 1 + t.length) % t.length);
1881
+ const h = (u) => {
1882
+ c(u), f(!0), setTimeout(() => f(!1), r);
1880
1883
  }, x = () => {
1881
- b((d + 1) % t.length);
1884
+ h((d - 1 + t.length) % t.length);
1885
+ }, N = () => {
1886
+ h((d + 1) % t.length);
1882
1887
  };
1883
1888
  return t.length === 0 ? null : (t[d], /* @__PURE__ */ o(
1884
1889
  "div",
1885
1890
  {
1886
1891
  ref: n,
1887
- className: i("relative w-full overflow-hidden", a),
1892
+ className: i("w-full", a),
1888
1893
  onMouseEnter: () => f(!0),
1889
1894
  onMouseLeave: () => f(!1),
1890
1895
  ...l,
1891
1896
  children: [
1892
- /* @__PURE__ */ e("div", { className: "relative", children: t.map((c, p) => /* @__PURE__ */ o(
1893
- "div",
1894
- {
1895
- className: i(
1896
- "w-full transition-opacity duration-700",
1897
- p === d ? "block" : "hidden"
1898
- ),
1899
- "aria-hidden": p !== d,
1900
- children: [
1901
- /* @__PURE__ */ o("picture", { children: [
1902
- /* @__PURE__ */ e(
1903
- "source",
1904
- {
1905
- media: "(min-width: 1024px)",
1906
- srcSet: `${c.imageDesktop} 1x, ${c.imageDesktop.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
1907
- }
1908
- ),
1909
- /* @__PURE__ */ e(
1910
- "source",
1911
- {
1912
- media: "(min-width: 768px)",
1913
- srcSet: `${c.imageTablet} 1x, ${c.imageTablet.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
1914
- }
1915
- ),
1916
- /* @__PURE__ */ e(
1917
- "img",
1918
- {
1919
- src: c.imageMobile,
1920
- srcSet: `${c.imageMobile} 1x, ${c.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
1921
- alt: c.title,
1922
- className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
1923
- loading: p === 0 ? "eager" : "lazy"
1924
- }
1925
- )
1926
- ] }),
1927
- c.showOverlay && /* @__PURE__ */ o("div", { className: "absolute inset-0 flex flex-col justify-end bg-linear-to-t from-black/60 to-transparent p-6 md:p-10", children: [
1928
- /* @__PURE__ */ e("h2", { className: "text-2xl font-bold text-white md:text-3xl", children: c.title }),
1929
- c.description && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-gray-200 md:text-base", children: c.description }),
1930
- c.cta && /* @__PURE__ */ e(
1931
- "a",
1932
- {
1933
- href: c.cta.href,
1934
- className: "mt-4 inline-block self-start rounded-md bg-brand-primary px-5 py-2 text-sm font-semibold text-white transition hover:opacity-90",
1935
- children: c.cta.label
1936
- }
1937
- )
1938
- ] })
1939
- ]
1940
- },
1941
- c.id
1942
- )) }),
1943
- t.length > 1 && /* @__PURE__ */ o(A, { children: [
1944
- /* @__PURE__ */ e(
1945
- "button",
1946
- {
1947
- onClick: h,
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
- "aria-label": "Slide anterior",
1950
- children: /* @__PURE__ */ e(ye, { className: "h-6 w-6 text-gray-900" })
1951
- }
1952
- ),
1953
- /* @__PURE__ */ e(
1954
- "button",
1897
+ /* @__PURE__ */ o("div", { className: "relative w-full overflow-hidden", children: [
1898
+ /* @__PURE__ */ e("div", { className: "relative", children: t.map((u, b) => /* @__PURE__ */ o(
1899
+ "div",
1955
1900
  {
1956
- onClick: x,
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
- "aria-label": "Próximo slide",
1959
- children: /* @__PURE__ */ e(K, { className: "h-6 w-6 text-gray-900" })
1960
- }
1961
- )
1901
+ className: i(
1902
+ "w-full transition-opacity duration-700",
1903
+ b === d ? "block" : "hidden"
1904
+ ),
1905
+ "aria-hidden": b !== d,
1906
+ children: [
1907
+ /* @__PURE__ */ o("picture", { children: [
1908
+ /* @__PURE__ */ e(
1909
+ "source",
1910
+ {
1911
+ media: "(min-width: 1024px)",
1912
+ srcSet: `${u.imageDesktop} 1x, ${u.imageDesktop.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
1913
+ }
1914
+ ),
1915
+ /* @__PURE__ */ e(
1916
+ "source",
1917
+ {
1918
+ media: "(min-width: 768px)",
1919
+ srcSet: `${u.imageTablet} 1x, ${u.imageTablet.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
1920
+ }
1921
+ ),
1922
+ /* @__PURE__ */ e(
1923
+ "img",
1924
+ {
1925
+ src: u.imageMobile,
1926
+ srcSet: `${u.imageMobile} 1x, ${u.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
1927
+ alt: u.title,
1928
+ className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
1929
+ loading: b === 0 ? "eager" : "lazy"
1930
+ }
1931
+ )
1932
+ ] }),
1933
+ u.showOverlay && /* @__PURE__ */ o("div", { className: "absolute inset-0 flex flex-col justify-end bg-linear-to-t from-black/60 to-transparent p-6 md:p-10", children: [
1934
+ /* @__PURE__ */ e("h2", { className: "text-2xl font-bold text-white md:text-3xl", children: u.title }),
1935
+ u.description && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-gray-200 md:text-base", children: u.description }),
1936
+ u.cta && /* @__PURE__ */ e(
1937
+ "a",
1938
+ {
1939
+ href: u.cta.href,
1940
+ className: "mt-4 inline-block self-start rounded-md bg-brand-primary px-5 py-2 text-sm font-semibold text-white transition hover:opacity-90",
1941
+ children: u.cta.label
1942
+ }
1943
+ )
1944
+ ] })
1945
+ ]
1946
+ },
1947
+ u.id
1948
+ )) }),
1949
+ t.length > 1 && /* @__PURE__ */ o(P, { children: [
1950
+ /* @__PURE__ */ e(
1951
+ "button",
1952
+ {
1953
+ onClick: x,
1954
+ 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-ring min-w-11 min-h-11",
1955
+ "aria-label": "Slide anterior",
1956
+ children: /* @__PURE__ */ e(ke, { className: "h-6 w-6 text-gray-900" })
1957
+ }
1958
+ ),
1959
+ /* @__PURE__ */ e(
1960
+ "button",
1961
+ {
1962
+ onClick: N,
1963
+ 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-ring min-w-11 min-h-11",
1964
+ "aria-label": "Próximo slide",
1965
+ children: /* @__PURE__ */ e(K, { className: "h-6 w-6 text-gray-900" })
1966
+ }
1967
+ )
1968
+ ] })
1962
1969
  ] }),
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((c, p) => /* @__PURE__ */ e(
1970
+ t.length > 1 && /* @__PURE__ */ e("div", { className: "flex justify-center gap-2 py-3", children: t.map((u, b) => /* @__PURE__ */ e(
1964
1971
  "button",
1965
1972
  {
1966
- onClick: () => b(p),
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 ${p + 1}`,
1969
- "aria-current": p === d,
1973
+ onClick: () => h(b),
1974
+ className: "min-w-11 min-h-11 flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-full group",
1975
+ "aria-label": `Ir para slide ${b + 1}`,
1976
+ "aria-current": b === d,
1970
1977
  children: /* @__PURE__ */ e(
1971
1978
  "span",
1972
1979
  {
1973
1980
  className: i(
1974
- "block rounded-full transition-all",
1975
- p === d ? "h-1 w-3 bg-white" : "h-1 w-1 bg-white/40 group-hover:bg-white/60"
1981
+ "block h-3 w-3 rounded-full transition-all",
1982
+ b === d ? "bg-gray-700" : "bg-gray-700/30 group-hover:bg-gray-700/60"
1976
1983
  )
1977
1984
  }
1978
1985
  )
1979
1986
  },
1980
- p
1987
+ b
1981
1988
  )) })
1982
1989
  ]
1983
1990
  }
1984
1991
  ));
1985
1992
  }
1986
1993
  );
1987
- st.displayName = "HeroCarousel";
1988
- function lt({
1994
+ lt.displayName = "HeroCarousel";
1995
+ function dt({
1989
1996
  className: a,
1990
1997
  children: t,
1991
1998
  viewport: r = !0,
1992
1999
  ...s
1993
2000
  }) {
1994
2001
  return /* @__PURE__ */ o(
1995
- j.Root,
2002
+ M.Root,
1996
2003
  {
1997
2004
  "data-slot": "navigation-menu",
1998
2005
  "data-viewport": r,
@@ -2003,17 +2010,17 @@ function lt({
2003
2010
  ...s,
2004
2011
  children: [
2005
2012
  t,
2006
- r && /* @__PURE__ */ e(ft, {})
2013
+ r && /* @__PURE__ */ e(gt, {})
2007
2014
  ]
2008
2015
  }
2009
2016
  );
2010
2017
  }
2011
- function dt({
2018
+ function ct({
2012
2019
  className: a,
2013
2020
  ...t
2014
2021
  }) {
2015
2022
  return /* @__PURE__ */ e(
2016
- j.List,
2023
+ M.List,
2017
2024
  {
2018
2025
  "data-slot": "navigation-menu-list",
2019
2026
  className: i(
@@ -2029,7 +2036,7 @@ function W({
2029
2036
  ...t
2030
2037
  }) {
2031
2038
  return /* @__PURE__ */ e(
2032
- j.Item,
2039
+ M.Item,
2033
2040
  {
2034
2041
  "data-slot": "navigation-menu-item",
2035
2042
  className: i("relative", a),
@@ -2037,19 +2044,19 @@ function W({
2037
2044
  }
2038
2045
  );
2039
2046
  }
2040
- const ct = L(
2047
+ const ut = B(
2041
2048
  "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
2049
  );
2043
- function ut({
2050
+ function mt({
2044
2051
  className: a,
2045
2052
  children: t,
2046
2053
  ...r
2047
2054
  }) {
2048
2055
  return /* @__PURE__ */ o(
2049
- j.Trigger,
2056
+ M.Trigger,
2050
2057
  {
2051
2058
  "data-slot": "navigation-menu-trigger",
2052
- className: i(ct(), "group", a),
2059
+ className: i(ut(), "group", a),
2053
2060
  ...r,
2054
2061
  children: [
2055
2062
  t,
@@ -2065,12 +2072,12 @@ function ut({
2065
2072
  }
2066
2073
  );
2067
2074
  }
2068
- function mt({
2075
+ function ft({
2069
2076
  className: a,
2070
2077
  ...t
2071
2078
  }) {
2072
2079
  return /* @__PURE__ */ e(
2073
- j.Content,
2080
+ M.Content,
2074
2081
  {
2075
2082
  "data-slot": "navigation-menu-content",
2076
2083
  className: i(
@@ -2082,7 +2089,7 @@ function mt({
2082
2089
  }
2083
2090
  );
2084
2091
  }
2085
- function ft({
2092
+ function gt({
2086
2093
  className: a,
2087
2094
  ...t
2088
2095
  }) {
@@ -2093,7 +2100,7 @@ function ft({
2093
2100
  "absolute top-full left-0 isolate z-50 flex justify-center"
2094
2101
  ),
2095
2102
  children: /* @__PURE__ */ e(
2096
- j.Viewport,
2103
+ M.Viewport,
2097
2104
  {
2098
2105
  "data-slot": "navigation-menu-viewport",
2099
2106
  className: i(
@@ -2111,7 +2118,7 @@ function U({
2111
2118
  ...t
2112
2119
  }) {
2113
2120
  return /* @__PURE__ */ e(
2114
- j.Link,
2121
+ M.Link,
2115
2122
  {
2116
2123
  "data-slot": "navigation-menu-link",
2117
2124
  className: i(
@@ -2122,7 +2129,7 @@ function U({
2122
2129
  }
2123
2130
  );
2124
2131
  }
2125
- function gt({ items: a }) {
2132
+ function pt({ items: a }) {
2126
2133
  return /* @__PURE__ */ e("ul", { className: "grid gap-0.5 p-2 min-w-[180px]", role: "none", children: a.map(
2127
2134
  (t) => {
2128
2135
  var r;
@@ -2156,8 +2163,8 @@ function gt({ items: a }) {
2156
2163
  }
2157
2164
  function ee({ item: a, depth: t = 0 }) {
2158
2165
  var n;
2159
- const [r, s] = z(!1);
2160
- return !((n = a.children) != null && n.length) ? /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(
2166
+ const [r, s] = C(!1);
2167
+ return !((n = a.children) != null && n.length) ? /* @__PURE__ */ e(et, { asChild: !0, children: /* @__PURE__ */ e(
2161
2168
  "a",
2162
2169
  {
2163
2170
  href: a.href ?? "#",
@@ -2204,11 +2211,11 @@ function ee({ item: a, depth: t = 0 }) {
2204
2211
  )
2205
2212
  ] });
2206
2213
  }
2207
- const pt = N(
2208
- ({ items: a, logo: t, rightSlot: r, searchSlot: s, drawerFooter: l, className: n, ...d }, u) => /* @__PURE__ */ e(
2214
+ const vt = w(
2215
+ ({ items: a, logo: t, rightSlot: r, searchSlot: s, drawerFooter: l, className: n, ...d }, c) => /* @__PURE__ */ e(
2209
2216
  "header",
2210
2217
  {
2211
- ref: u,
2218
+ ref: c,
2212
2219
  className: i(
2213
2220
  "sticky top-0 z-40 border-b border-[var(--border)] bg-[var(--card)]",
2214
2221
  n
@@ -2220,19 +2227,19 @@ const pt = N(
2220
2227
  s && /* @__PURE__ */ e("div", { className: "hidden flex-1 md:flex", children: s }),
2221
2228
  /* @__PURE__ */ e("div", { className: "flex-1 md:hidden", "aria-hidden": "true" }),
2222
2229
  r && /* @__PURE__ */ e("div", { className: "flex items-center", children: r }),
2223
- /* @__PURE__ */ o(Oe, { children: [
2224
- /* @__PURE__ */ e(Ze, { asChild: !0, children: /* @__PURE__ */ e(
2230
+ /* @__PURE__ */ o(Ze, { children: [
2231
+ /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(
2225
2232
  "button",
2226
2233
  {
2227
2234
  type: "button",
2228
2235
  "aria-label": "Abrir menu de navegação",
2229
2236
  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(ke, { className: "h-5 w-5", "aria-hidden": "true" })
2237
+ children: /* @__PURE__ */ e(ze, { className: "h-5 w-5", "aria-hidden": "true" })
2231
2238
  }
2232
2239
  ) }),
2233
- /* @__PURE__ */ o(at, { side: "left", className: "flex flex-col p-0", children: [
2234
- /* @__PURE__ */ o(rt, { className: "border-b border-[var(--border)] px-5 py-4", children: [
2235
- /* @__PURE__ */ e(it, { className: "sr-only", children: "Menu de navegação" }),
2240
+ /* @__PURE__ */ o(rt, { side: "left", className: "flex flex-col p-0", children: [
2241
+ /* @__PURE__ */ o(it, { className: "border-b border-[var(--border)] px-5 py-4", children: [
2242
+ /* @__PURE__ */ e(ot, { className: "sr-only", children: "Menu de navegação" }),
2236
2243
  t && /* @__PURE__ */ e("div", { className: "flex items-center", children: t })
2237
2244
  ] }),
2238
2245
  s && /* @__PURE__ */ e("div", { className: "border-b border-[var(--border)] px-5 py-4", children: s }),
@@ -2253,12 +2260,12 @@ const pt = N(
2253
2260
  {
2254
2261
  "aria-label": "Menu principal",
2255
2262
  className: "hidden border-t border-[var(--border)] py-2 md:flex",
2256
- children: /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(dt, { children: a.map(
2263
+ children: /* @__PURE__ */ e(dt, { children: /* @__PURE__ */ e(ct, { children: a.map(
2257
2264
  (m) => {
2258
2265
  var f;
2259
2266
  return (f = m.children) != null && f.length ? /* @__PURE__ */ o(W, { children: [
2260
- /* @__PURE__ */ e(ut, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: m.label }),
2261
- /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ e(gt, { items: m.children }) })
2267
+ /* @__PURE__ */ e(mt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: m.label }),
2268
+ /* @__PURE__ */ e(ft, { children: /* @__PURE__ */ e(pt, { items: m.children }) })
2262
2269
  ] }, m.id) : /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
2263
2270
  U,
2264
2271
  {
@@ -2275,13 +2282,13 @@ const pt = N(
2275
2282
  }
2276
2283
  )
2277
2284
  );
2278
- pt.displayName = "MegaMenu";
2279
- const vt = [
2280
- { label: "Instagram", href: "https://instagram.com/eloeditora", Icon: ze, key: "instagram" },
2281
- { label: "Facebook", href: "https://facebook.com/eloeditora", Icon: Ce, key: "facebook" },
2282
- { label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: Se, key: "youtube" },
2285
+ vt.displayName = "MegaMenu";
2286
+ const bt = [
2287
+ { label: "Instagram", href: "https://instagram.com/eloeditora", Icon: Ce, key: "instagram" },
2288
+ { label: "Facebook", href: "https://facebook.com/eloeditora", Icon: Se, key: "facebook" },
2289
+ { label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: je, key: "youtube" },
2283
2290
  { label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: De, key: "linkedin" }
2284
- ], bt = [
2291
+ ], ht = [
2285
2292
  {
2286
2293
  id: "catalogo",
2287
2294
  title: "Catálogo",
@@ -2314,10 +2321,10 @@ const vt = [
2314
2321
  ]
2315
2322
  }
2316
2323
  ];
2317
- function ht({ onSubmit: a }) {
2318
- const [t, r] = z(""), [s, l] = z(!1);
2324
+ function xt({ onSubmit: a }) {
2325
+ const [t, r] = C(""), [s, l] = C(!1);
2319
2326
  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__ */ o("div", { className: "mx-auto max-w-lg px-[var(--container-px)] text-center", children: [
2320
- /* @__PURE__ */ e(je, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
2327
+ /* @__PURE__ */ e(Me, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
2321
2328
  /* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
2322
2329
  /* @__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." }),
2323
2330
  s ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (d) => {
@@ -2348,8 +2355,8 @@ function ht({ onSubmit: a }) {
2348
2355
  ] })
2349
2356
  ] }) });
2350
2357
  }
2351
- function xt({ title: a, links: t }) {
2352
- const [r, s] = z(!1);
2358
+ function Nt({ title: a, links: t }) {
2359
+ const [r, s] = C(!1);
2353
2360
  return /* @__PURE__ */ o("div", { className: "border-b border-[var(--border)] md:border-none", children: [
2354
2361
  /* @__PURE__ */ o(
2355
2362
  "button",
@@ -2391,36 +2398,36 @@ function xt({ title: a, links: t }) {
2391
2398
  )
2392
2399
  ] });
2393
2400
  }
2394
- const Nt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: s, appStoreUrl: l, orgInfo: n, navColumns: d, className: u, ...m }) => {
2395
- const [f, v] = z("light");
2396
- _(() => {
2397
- const k = document.documentElement;
2398
- v(k.getAttribute("data-theme") ?? "light");
2399
- const R = new MutationObserver(() => {
2400
- v(k.getAttribute("data-theme") ?? "light");
2401
+ const yt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: s, appStoreUrl: l, orgInfo: n, navColumns: d, className: c, ...m }) => {
2402
+ const [f, v] = C("light");
2403
+ L(() => {
2404
+ const z = document.documentElement;
2405
+ v(z.getAttribute("data-theme") ?? "light");
2406
+ const E = new MutationObserver(() => {
2407
+ v(z.getAttribute("data-theme") ?? "light");
2401
2408
  });
2402
- return R.observe(k, { attributes: !0, attributeFilter: ["data-theme"] }), () => R.disconnect();
2409
+ return E.observe(z, { attributes: !0, attributeFilter: ["data-theme"] }), () => E.disconnect();
2403
2410
  }, []);
2404
- const g = a === "perabook" ? f === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : f === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", b = a === "perabook" ? "PeraBook" : "Elo Editora", h = vt.map((k) => ({
2405
- ...k,
2406
- href: (n == null ? void 0 : n[k.key]) ?? k.href
2407
- })).filter((k) => k.href), x = (n == null ? void 0 : n.email) ?? "contato@grupoeloediorial.com.br", c = (n == null ? void 0 : n.phone) ?? "(11) 3000-0000", p = n == null ? void 0 : n.fullAddress, w = f === "dark" && (n == null ? void 0 : n.googlePlayBadgeUrlDark) || (n == null ? void 0 : n.googlePlayBadgeUrl) || "", S = f === "dark" && (n == null ? void 0 : n.appStoreBadgeUrlDark) || (n == null ? void 0 : n.appStoreBadgeUrl) || "", P = !!(w || S);
2411
+ const p = a === "perabook" ? f === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : f === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", h = a === "perabook" ? "PeraBook" : "Elo Editora", x = bt.map((z) => ({
2412
+ ...z,
2413
+ href: (n == null ? void 0 : n[z.key]) ?? z.href
2414
+ })).filter((z) => z.href), N = (n == null ? void 0 : n.email) ?? "contato@grupoeloediorial.com.br", u = (n == null ? void 0 : n.phone) ?? "(11) 3000-0000", b = n == null ? void 0 : n.fullAddress, g = f === "dark" && (n == null ? void 0 : n.googlePlayBadgeUrlDark) || (n == null ? void 0 : n.googlePlayBadgeUrl) || "", y = f === "dark" && (n == null ? void 0 : n.appStoreBadgeUrlDark) || (n == null ? void 0 : n.appStoreBadgeUrl) || "", D = !!(g || y);
2408
2415
  return /* @__PURE__ */ o(
2409
2416
  "footer",
2410
2417
  {
2411
- className: i("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]", u),
2418
+ className: i("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]", c),
2412
2419
  "aria-label": "Rodapé do site",
2413
2420
  ...m,
2414
2421
  children: [
2415
- r !== void 0 ? r : /* @__PURE__ */ e(ht, { onSubmit: t }),
2422
+ r !== void 0 ? r : /* @__PURE__ */ e(xt, { onSubmit: t }),
2416
2423
  /* @__PURE__ */ o("div", { className: "mx-auto max-w-screen-xl px-4", children: [
2417
2424
  /* @__PURE__ */ o("div", { className: "py-10 md:grid md:grid-cols-5 md:gap-8", children: [
2418
2425
  /* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
2419
2426
  /* @__PURE__ */ e(
2420
2427
  "img",
2421
2428
  {
2422
- src: g,
2423
- alt: b,
2429
+ src: p,
2430
+ alt: h,
2424
2431
  width: 160,
2425
2432
  height: 53,
2426
2433
  className: "h-14 w-auto object-contain"
@@ -2428,18 +2435,18 @@ const Nt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2428
2435
  ),
2429
2436
  /* @__PURE__ */ o("div", { className: "mt-6 space-y-1 text-sm", children: [
2430
2437
  /* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: "Atendimento:" }),
2431
- /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: x }),
2432
- /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: c }),
2433
- p && /* @__PURE__ */ e("p", { className: "whitespace-pre-line text-[var(--muted-foreground)]", children: p.replace(/\\n/g, `
2438
+ /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: N }),
2439
+ /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: u }),
2440
+ b && /* @__PURE__ */ e("p", { className: "whitespace-pre-line text-[var(--muted-foreground)]", children: b.replace(/\\n/g, `
2434
2441
  `) })
2435
2442
  ] })
2436
2443
  ] }),
2437
- (d ?? bt).map((k) => /* @__PURE__ */ e(xt, { title: k.title, links: k.links }, k.id)),
2444
+ (d ?? ht).map((z) => /* @__PURE__ */ e(Nt, { title: z.title, links: z.links }, z.id)),
2438
2445
  /* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
2439
- P && /* @__PURE__ */ o(A, { children: [
2446
+ D && /* @__PURE__ */ o(P, { children: [
2440
2447
  /* @__PURE__ */ e("p", { className: "text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Baixe nosso app" }),
2441
2448
  /* @__PURE__ */ o("div", { className: "mt-3 flex flex-col gap-2", children: [
2442
- w && /* @__PURE__ */ e(
2449
+ g && /* @__PURE__ */ e(
2443
2450
  "a",
2444
2451
  {
2445
2452
  href: s ?? "#",
@@ -2450,17 +2457,17 @@ const Nt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2450
2457
  children: /* @__PURE__ */ e(
2451
2458
  "img",
2452
2459
  {
2453
- src: w,
2460
+ src: g,
2454
2461
  alt: "Disponível no Google Play",
2455
2462
  width: 135,
2456
2463
  height: 40,
2457
2464
  className: "h-10 w-[135px] object-contain"
2458
2465
  },
2459
- w
2466
+ g
2460
2467
  )
2461
2468
  }
2462
2469
  ),
2463
- S && /* @__PURE__ */ e(
2470
+ y && /* @__PURE__ */ e(
2464
2471
  "a",
2465
2472
  {
2466
2473
  href: l ?? "#",
@@ -2471,30 +2478,30 @@ const Nt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2471
2478
  children: /* @__PURE__ */ e(
2472
2479
  "img",
2473
2480
  {
2474
- src: S,
2481
+ src: y,
2475
2482
  alt: "Disponível na App Store",
2476
2483
  width: 135,
2477
2484
  height: 40,
2478
2485
  className: "h-10 w-[135px] object-contain"
2479
2486
  },
2480
- S
2487
+ y
2481
2488
  )
2482
2489
  }
2483
2490
  )
2484
2491
  ] })
2485
2492
  ] }),
2486
2493
  /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Compartilhe" }),
2487
- /* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: h.map(({ label: k, href: R, Icon: te }) => /* @__PURE__ */ e(
2494
+ /* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: x.map(({ label: z, href: E, Icon: te }) => /* @__PURE__ */ e(
2488
2495
  "a",
2489
2496
  {
2490
- href: R,
2497
+ href: E,
2491
2498
  target: "_blank",
2492
2499
  rel: "noopener noreferrer",
2493
- "aria-label": k,
2500
+ "aria-label": z,
2494
2501
  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)]",
2495
2502
  children: /* @__PURE__ */ e(te, { className: "h-4 w-4", "aria-hidden": "true" })
2496
2503
  },
2497
- k
2504
+ z
2498
2505
  )) })
2499
2506
  ] })
2500
2507
  ] }),
@@ -2515,8 +2522,8 @@ const Nt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2515
2522
  }
2516
2523
  );
2517
2524
  };
2518
- Nt.displayName = "Footer";
2519
- function sa({ children: a, className: t }) {
2525
+ yt.displayName = "Footer";
2526
+ function la({ children: a, className: t }) {
2520
2527
  return /* @__PURE__ */ e(
2521
2528
  "div",
2522
2529
  {
@@ -2537,77 +2544,77 @@ const wt = {
2537
2544
  5: "col-span-5",
2538
2545
  6: "col-span-6"
2539
2546
  };
2540
- function la({ children: a, span: t, className: r }) {
2547
+ function da({ children: a, span: t, className: r }) {
2541
2548
  return /* @__PURE__ */ e("div", { "data-slot": "col", className: i("min-w-0", t && wt[t], r), children: a });
2542
2549
  }
2543
2550
  export {
2544
- Ht as Accordion,
2545
- Xt as AccordionContent,
2546
- Qt as AccordionItem,
2547
- Wt as AccordionTrigger,
2551
+ Qt as Accordion,
2552
+ Yt as AccordionContent,
2553
+ Wt as AccordionItem,
2554
+ Xt as AccordionTrigger,
2548
2555
  Le as Avatar,
2549
- E as Badge,
2550
- Vt as Breadcrumb,
2551
- It as BreadcrumbItem,
2552
- Ut as BreadcrumbLink,
2553
- Ft as BreadcrumbList,
2554
- qt as BreadcrumbPage,
2555
- Gt as BreadcrumbSeparator,
2556
- D as Button,
2556
+ R as Badge,
2557
+ Ft as Breadcrumb,
2558
+ Ut as BreadcrumbItem,
2559
+ qt as BreadcrumbLink,
2560
+ It as BreadcrumbList,
2561
+ Gt as BreadcrumbPage,
2562
+ Ht as BreadcrumbSeparator,
2563
+ j as Button,
2557
2564
  Rt as Checkbox,
2558
- la as Col,
2559
- ot as Container,
2560
- ea as DialogContent,
2561
- ia as DialogDescription,
2562
- aa as DialogFooter,
2563
- ta as DialogHeader,
2564
- ra as DialogTitle,
2565
- Jt as DialogTrigger,
2566
- Te as Divider,
2567
- Oe as Drawer,
2565
+ da as Col,
2566
+ nt as Container,
2567
+ ta as DialogContent,
2568
+ oa as DialogDescription,
2569
+ ra as DialogFooter,
2570
+ aa as DialogHeader,
2571
+ ia as DialogTitle,
2572
+ ea as DialogTrigger,
2573
+ $e as Divider,
2574
+ Ze as Drawer,
2568
2575
  J as EmptyState,
2569
- We as ErrorState,
2570
- Nt as Footer,
2571
- Ge as FormGroup,
2572
- sa as Grid,
2573
- Qe as Hero,
2574
- st as HeroCarousel,
2575
- Mt as Input,
2576
- pt as MegaMenu,
2577
- Zt as Modal,
2578
- Ue as PriceDisplay,
2576
+ Xe as ErrorState,
2577
+ yt as Footer,
2578
+ He as FormGroup,
2579
+ la as Grid,
2580
+ We as Hero,
2581
+ lt as HeroCarousel,
2582
+ At as Input,
2583
+ vt as MegaMenu,
2584
+ Jt as Modal,
2585
+ qe as PriceDisplay,
2579
2586
  I as ProductCard,
2580
- Xe as ProductGrid,
2581
- fa as ProgressBar,
2582
- qe as QuantitySelector,
2583
- Et as RadioGroup,
2584
- Tt as RadioGroupItem,
2587
+ Ye as ProductGrid,
2588
+ ga as ProgressBar,
2589
+ Ge as QuantitySelector,
2590
+ Tt as RadioGroup,
2591
+ $t as RadioGroupItem,
2585
2592
  F as Rating,
2586
- Ie as SearchBar,
2593
+ Ue as SearchBar,
2587
2594
  Pt as Select,
2588
- Bt as SelectContent,
2595
+ Et as SelectContent,
2589
2596
  Lt as SelectItem,
2590
- _t as SelectTrigger,
2591
- At as SelectValue,
2592
- at as SheetContent,
2593
- na as SheetDescription,
2594
- oa as SheetFooter,
2595
- rt as SheetHeader,
2596
- it as SheetTitle,
2597
- Ze as SheetTrigger,
2598
- Ee as Spinner,
2599
- Ae as Textarea,
2600
- $t as Toggle,
2601
- Yt as Tooltip,
2602
- Ot as TooltipContent,
2603
- He as TooltipProvider,
2604
- Kt as TooltipTrigger,
2605
- nt as TopAccessibilityBar,
2606
- Be as avatarVariants,
2607
- _e as badgeVariants,
2597
+ Bt as SelectTrigger,
2598
+ _t as SelectValue,
2599
+ rt as SheetContent,
2600
+ sa as SheetDescription,
2601
+ na as SheetFooter,
2602
+ it as SheetHeader,
2603
+ ot as SheetTitle,
2604
+ Je as SheetTrigger,
2605
+ Te as Spinner,
2606
+ _e as Textarea,
2607
+ Vt as Toggle,
2608
+ Kt as Tooltip,
2609
+ Zt as TooltipContent,
2610
+ Qe as TooltipProvider,
2611
+ Ot as TooltipTrigger,
2612
+ st as TopAccessibilityBar,
2613
+ Ee as avatarVariants,
2614
+ Be as badgeVariants,
2608
2615
  Pe as buttonVariants,
2609
2616
  i as cn,
2610
2617
  Re as spinnerVariants,
2611
- ua as toast
2618
+ ma as toast
2612
2619
  };
2613
2620
  //# sourceMappingURL=index.js.map