@grupo-elo-editorial/shared-ui-react 1.3.16 → 1.4.0

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