@grupo-elo-editorial/shared-ui-react 1.3.14 → 1.3.16
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/CHANGELOG.md +11 -0
- package/dist/index.js +449 -448
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
5
|
-
import { forwardRef as w, useState as z, useEffect as
|
|
6
|
-
import { Loader2 as
|
|
7
|
-
import { cva as
|
|
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";
|
|
8
8
|
import * as C from "@radix-ui/react-select";
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
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
12
|
import { Slot as De } from "@radix-ui/react-slot";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import { toast as
|
|
16
|
-
import { Progress as
|
|
17
|
-
import * as
|
|
13
|
+
import * as _ from "@radix-ui/react-accordion";
|
|
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";
|
|
17
|
+
import * as y from "@radix-ui/react-dialog";
|
|
18
18
|
import * as D from "@radix-ui/react-navigation-menu";
|
|
19
19
|
function i(...a) {
|
|
20
|
-
return te(
|
|
20
|
+
return ae(te(a));
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Me = B(
|
|
23
23
|
"inline-flex items-center justify-center gap-2 rounded-lg font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 whitespace-nowrap",
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
@@ -60,14 +60,14 @@ const je = A(
|
|
|
60
60
|
}, v) => /* @__PURE__ */ e(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
|
-
className: i(
|
|
63
|
+
className: i(Me({ variant: t, size: r, fullWidth: s, className: a })),
|
|
64
64
|
ref: v,
|
|
65
65
|
disabled: u || l,
|
|
66
66
|
...f,
|
|
67
|
-
children: l ? /* @__PURE__ */ o(
|
|
68
|
-
/* @__PURE__ */ e(
|
|
67
|
+
children: l ? /* @__PURE__ */ o(P, { children: [
|
|
68
|
+
/* @__PURE__ */ e(U, { className: "h-4 w-4 animate-spin" }),
|
|
69
69
|
m && /* @__PURE__ */ e("span", { children: m })
|
|
70
|
-
] }) : /* @__PURE__ */ o(
|
|
70
|
+
] }) : /* @__PURE__ */ o(P, { children: [
|
|
71
71
|
n && /* @__PURE__ */ e("span", { className: "inline-flex", children: n }),
|
|
72
72
|
m,
|
|
73
73
|
d && /* @__PURE__ */ e("span", { className: "inline-flex", children: d })
|
|
@@ -76,7 +76,7 @@ const je = A(
|
|
|
76
76
|
)
|
|
77
77
|
);
|
|
78
78
|
S.displayName = "Button";
|
|
79
|
-
const
|
|
79
|
+
const Pe = w(
|
|
80
80
|
({ className: a, error: t, helperText: r, ...s }, l) => /* @__PURE__ */ o("div", { className: "w-full", children: [
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
"textarea",
|
|
@@ -106,8 +106,8 @@ const Me = w(
|
|
|
106
106
|
)
|
|
107
107
|
] })
|
|
108
108
|
);
|
|
109
|
-
|
|
110
|
-
const
|
|
109
|
+
Pe.displayName = "Textarea";
|
|
110
|
+
const Ae = B(
|
|
111
111
|
"inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
@@ -131,12 +131,12 @@ const Pe = A(
|
|
|
131
131
|
size: "md"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
),
|
|
134
|
+
), E = w(
|
|
135
135
|
({ className: a, variant: t, size: r, icon: s, onRemove: l, children: n, ...d }, m) => /* @__PURE__ */ o(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
138
|
ref: m,
|
|
139
|
-
className: i(
|
|
139
|
+
className: i(Ae({ variant: t, size: r }), a),
|
|
140
140
|
...d,
|
|
141
141
|
children: [
|
|
142
142
|
s && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: s }),
|
|
@@ -154,8 +154,8 @@ const Pe = A(
|
|
|
154
154
|
}
|
|
155
155
|
)
|
|
156
156
|
);
|
|
157
|
-
|
|
158
|
-
const
|
|
157
|
+
E.displayName = "Badge";
|
|
158
|
+
const _e = B(
|
|
159
159
|
"relative inline-flex items-center justify-center overflow-hidden rounded-full bg-[var(--muted)] text-[var(--muted-foreground)] flex-shrink-0",
|
|
160
160
|
{
|
|
161
161
|
variants: {
|
|
@@ -172,18 +172,18 @@ const Ae = A(
|
|
|
172
172
|
}
|
|
173
173
|
), Be = w(
|
|
174
174
|
({ className: a, size: t, src: r, alt: s, name: l, showStatus: n, statusType: d = "online", ...m }, u) => {
|
|
175
|
-
const [f, v] = z(!1),
|
|
175
|
+
const [f, v] = z(!1), p = (h) => h.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
|
-
},
|
|
180
|
+
}, x = {
|
|
181
181
|
sm: "h-2 w-2 border",
|
|
182
182
|
md: "h-2.5 w-2.5 border-2",
|
|
183
183
|
lg: "h-3 w-3 border-2",
|
|
184
184
|
xl: "h-4 w-4 border-2"
|
|
185
185
|
};
|
|
186
|
-
return /* @__PURE__ */ o("div", { ref: u, className: i(
|
|
186
|
+
return /* @__PURE__ */ o("div", { ref: u, className: i(_e({ size: t }), "relative", a), children: [
|
|
187
187
|
r && !f ? /* @__PURE__ */ e(
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
@@ -193,14 +193,14 @@ const Ae = A(
|
|
|
193
193
|
className: "h-full w-full object-cover",
|
|
194
194
|
...m
|
|
195
195
|
}
|
|
196
|
-
) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
196
|
+
) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children: p(l) }) : /* @__PURE__ */ e(re, { 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
|
-
|
|
203
|
+
x[t || "md"]
|
|
204
204
|
),
|
|
205
205
|
"aria-label": `Status: ${d}`
|
|
206
206
|
}
|
|
@@ -209,7 +209,7 @@ const Ae = A(
|
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
Be.displayName = "Avatar";
|
|
212
|
-
const Le =
|
|
212
|
+
const Le = B("animate-spin text-[var(--brand-primary)]", {
|
|
213
213
|
variants: {
|
|
214
214
|
size: {
|
|
215
215
|
sm: "h-4 w-4",
|
|
@@ -221,7 +221,7 @@ const Le = A("animate-spin text-[var(--brand-primary)]", {
|
|
|
221
221
|
defaultVariants: {
|
|
222
222
|
size: "md"
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
224
|
+
}), Ee = w(
|
|
225
225
|
({ className: a, size: t, label: r, ...s }, l) => /* @__PURE__ */ o(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
@@ -231,14 +231,14 @@ const Le = A("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(
|
|
234
|
+
/* @__PURE__ */ e(U, { className: i(Le({ size: t })) }),
|
|
235
235
|
/* @__PURE__ */ e("span", { className: "sr-only", children: r || "Loading" })
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
)
|
|
239
239
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
240
|
+
Ee.displayName = "Spinner";
|
|
241
|
+
const Re = w(
|
|
242
242
|
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: s, ...l }, n) => {
|
|
243
243
|
const d = {
|
|
244
244
|
solid: "border-solid",
|
|
@@ -284,8 +284,8 @@ const Ee = w(
|
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
|
-
|
|
288
|
-
const
|
|
287
|
+
Re.displayName = "Divider";
|
|
288
|
+
const V = w(
|
|
289
289
|
({
|
|
290
290
|
className: a,
|
|
291
291
|
value: t = 0,
|
|
@@ -296,13 +296,13 @@ const $ = w(
|
|
|
296
296
|
showValue: d = !1,
|
|
297
297
|
...m
|
|
298
298
|
}, u) => {
|
|
299
|
-
const [f, v] = z(0),
|
|
299
|
+
const [f, v] = z(0), p = {
|
|
300
300
|
sm: "h-4 w-4",
|
|
301
301
|
md: "h-5 w-5",
|
|
302
302
|
lg: "h-6 w-6"
|
|
303
303
|
}, b = (h) => {
|
|
304
304
|
!l && n && n(h);
|
|
305
|
-
},
|
|
305
|
+
}, x = f || t;
|
|
306
306
|
return /* @__PURE__ */ o(
|
|
307
307
|
"div",
|
|
308
308
|
{
|
|
@@ -313,7 +313,7 @@ const $ = w(
|
|
|
313
313
|
...m,
|
|
314
314
|
children: [
|
|
315
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 <=
|
|
316
|
+
const c = h <= x;
|
|
317
317
|
return /* @__PURE__ */ e(
|
|
318
318
|
"button",
|
|
319
319
|
{
|
|
@@ -328,10 +328,10 @@ const $ = w(
|
|
|
328
328
|
),
|
|
329
329
|
"aria-label": `Rate ${h} out of ${r}`,
|
|
330
330
|
children: /* @__PURE__ */ e(
|
|
331
|
-
|
|
331
|
+
ie,
|
|
332
332
|
{
|
|
333
333
|
className: i(
|
|
334
|
-
|
|
334
|
+
p[s],
|
|
335
335
|
"transition-all",
|
|
336
336
|
c ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
|
|
337
337
|
)
|
|
@@ -347,8 +347,8 @@ const $ = w(
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
|
-
|
|
351
|
-
function
|
|
350
|
+
V.displayName = "Rating";
|
|
351
|
+
function jt({ className: a, type: t, ...r }) {
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"input",
|
|
354
354
|
{
|
|
@@ -369,12 +369,12 @@ function Dt({
|
|
|
369
369
|
}) {
|
|
370
370
|
return /* @__PURE__ */ e(C.Root, { "data-slot": "select", ...a });
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Mt({
|
|
373
373
|
...a
|
|
374
374
|
}) {
|
|
375
375
|
return /* @__PURE__ */ e(C.Value, { "data-slot": "select-value", ...a });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Pt({
|
|
378
378
|
className: a,
|
|
379
379
|
size: t = "default",
|
|
380
380
|
children: r,
|
|
@@ -392,12 +392,12 @@ function Mt({
|
|
|
392
392
|
...s,
|
|
393
393
|
children: [
|
|
394
394
|
r,
|
|
395
|
-
/* @__PURE__ */ e(C.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(C.Icon, { asChild: !0, children: /* @__PURE__ */ e(R, { className: "size-4 opacity-50" }) })
|
|
396
396
|
]
|
|
397
397
|
}
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function At({
|
|
401
401
|
className: a,
|
|
402
402
|
children: t,
|
|
403
403
|
position: r = "popper",
|
|
@@ -415,7 +415,7 @@ function Pt({
|
|
|
415
415
|
position: r,
|
|
416
416
|
...s,
|
|
417
417
|
children: [
|
|
418
|
-
/* @__PURE__ */ e(
|
|
418
|
+
/* @__PURE__ */ e(Te, {}),
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
420
|
C.Viewport,
|
|
421
421
|
{
|
|
@@ -426,12 +426,12 @@ function Pt({
|
|
|
426
426
|
children: t
|
|
427
427
|
}
|
|
428
428
|
),
|
|
429
|
-
/* @__PURE__ */ e(
|
|
429
|
+
/* @__PURE__ */ e($e, {})
|
|
430
430
|
]
|
|
431
431
|
}
|
|
432
432
|
) });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function _t({
|
|
435
435
|
className: a,
|
|
436
436
|
children: t,
|
|
437
437
|
...r
|
|
@@ -446,13 +446,13 @@ function At({
|
|
|
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(
|
|
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" }) }) }),
|
|
450
450
|
/* @__PURE__ */ e(C.ItemText, { children: t })
|
|
451
451
|
]
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Te({
|
|
456
456
|
className: a,
|
|
457
457
|
...t
|
|
458
458
|
}) {
|
|
@@ -465,11 +465,11 @@ function Re({
|
|
|
465
465
|
a
|
|
466
466
|
),
|
|
467
467
|
...t,
|
|
468
|
-
children: /* @__PURE__ */ e(
|
|
468
|
+
children: /* @__PURE__ */ e(oe, { className: "size-4" })
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function $e({
|
|
473
473
|
className: a,
|
|
474
474
|
...t
|
|
475
475
|
}) {
|
|
@@ -482,7 +482,7 @@ function Te({
|
|
|
482
482
|
a
|
|
483
483
|
),
|
|
484
484
|
...t,
|
|
485
|
-
children: /* @__PURE__ */ e(
|
|
485
|
+
children: /* @__PURE__ */ e(R, { className: "size-4" })
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
@@ -491,7 +491,7 @@ function Bt({
|
|
|
491
491
|
...t
|
|
492
492
|
}) {
|
|
493
493
|
return /* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
q.Root,
|
|
495
495
|
{
|
|
496
496
|
"data-slot": "checkbox",
|
|
497
497
|
className: i(
|
|
@@ -500,11 +500,11 @@ function Bt({
|
|
|
500
500
|
),
|
|
501
501
|
...t,
|
|
502
502
|
children: /* @__PURE__ */ e(
|
|
503
|
-
|
|
503
|
+
q.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(
|
|
507
|
+
children: /* @__PURE__ */ e(W, { className: "size-3.5" })
|
|
508
508
|
}
|
|
509
509
|
)
|
|
510
510
|
}
|
|
@@ -515,7 +515,7 @@ function Lt({
|
|
|
515
515
|
...t
|
|
516
516
|
}) {
|
|
517
517
|
return /* @__PURE__ */ e(
|
|
518
|
-
|
|
518
|
+
$.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
|
|
526
|
+
function Et({
|
|
527
527
|
className: a,
|
|
528
528
|
...t
|
|
529
529
|
}) {
|
|
530
530
|
return /* @__PURE__ */ e(
|
|
531
|
-
|
|
531
|
+
$.Item,
|
|
532
532
|
{
|
|
533
533
|
"data-slot": "radio-group-item",
|
|
534
534
|
className: i(
|
|
@@ -537,22 +537,22 @@ function _t({
|
|
|
537
537
|
),
|
|
538
538
|
...t,
|
|
539
539
|
children: /* @__PURE__ */ e(
|
|
540
|
-
|
|
540
|
+
$.Indicator,
|
|
541
541
|
{
|
|
542
542
|
"data-slot": "radio-group-indicator",
|
|
543
543
|
className: "relative flex items-center justify-center",
|
|
544
|
-
children: /* @__PURE__ */ e(
|
|
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" })
|
|
545
545
|
}
|
|
546
546
|
)
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Rt({
|
|
551
551
|
className: a,
|
|
552
552
|
...t
|
|
553
553
|
}) {
|
|
554
554
|
return /* @__PURE__ */ e(
|
|
555
|
-
|
|
555
|
+
G.Root,
|
|
556
556
|
{
|
|
557
557
|
"data-slot": "switch",
|
|
558
558
|
className: i(
|
|
@@ -561,7 +561,7 @@ function Et({
|
|
|
561
561
|
),
|
|
562
562
|
...t,
|
|
563
563
|
children: /* @__PURE__ */ e(
|
|
564
|
-
|
|
564
|
+
G.Thumb,
|
|
565
565
|
{
|
|
566
566
|
"data-slot": "switch-thumb",
|
|
567
567
|
className: i(
|
|
@@ -572,14 +572,14 @@ function Et({
|
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function H({
|
|
576
576
|
href: a,
|
|
577
577
|
className: t,
|
|
578
578
|
children: r
|
|
579
579
|
}) {
|
|
580
580
|
return a ? /* @__PURE__ */ e("a", { href: a, className: t, tabIndex: -1, "aria-hidden": "true", children: r }) : /* @__PURE__ */ e("div", { className: t, children: r });
|
|
581
581
|
}
|
|
582
|
-
const
|
|
582
|
+
const F = w(
|
|
583
583
|
({
|
|
584
584
|
className: a,
|
|
585
585
|
image: t,
|
|
@@ -592,53 +592,53 @@ const V = w(
|
|
|
592
592
|
badge: u,
|
|
593
593
|
badgeVariant: f = "default",
|
|
594
594
|
isSkeleton: v = !1,
|
|
595
|
-
isOutOfStock:
|
|
595
|
+
isOutOfStock: p = !1,
|
|
596
596
|
onAddToCart: b,
|
|
597
|
-
onToggleFavorite:
|
|
597
|
+
onToggleFavorite: x,
|
|
598
598
|
isFavorite: h = !1,
|
|
599
599
|
href: c,
|
|
600
|
-
orientation:
|
|
601
|
-
...
|
|
602
|
-
},
|
|
600
|
+
orientation: g = "vertical",
|
|
601
|
+
...N
|
|
602
|
+
}, j) => v ? /* @__PURE__ */ o(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
|
-
ref:
|
|
605
|
+
ref: j,
|
|
606
606
|
className: i(
|
|
607
607
|
"flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
|
|
608
|
-
|
|
608
|
+
g === "horizontal" ? "flex-row gap-3" : "flex-col",
|
|
609
609
|
a
|
|
610
610
|
),
|
|
611
|
-
...
|
|
611
|
+
...N,
|
|
612
612
|
children: [
|
|
613
613
|
/* @__PURE__ */ e(
|
|
614
614
|
"div",
|
|
615
615
|
{
|
|
616
616
|
className: i(
|
|
617
617
|
"rounded-lg bg-[var(--muted)]",
|
|
618
|
-
|
|
618
|
+
g === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
),
|
|
622
|
-
/* @__PURE__ */ o("div", { className: i("flex flex-col gap-2",
|
|
622
|
+
/* @__PURE__ */ o("div", { className: i("flex flex-col gap-2", g === "horizontal" ? "flex-1" : "mt-3"), children: [
|
|
623
623
|
/* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded bg-[var(--muted)]" }),
|
|
624
624
|
/* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded bg-[var(--muted)]" }),
|
|
625
625
|
/* @__PURE__ */ e("div", { className: "h-10 w-full rounded bg-[var(--muted)]" })
|
|
626
626
|
] })
|
|
627
627
|
]
|
|
628
628
|
}
|
|
629
|
-
) :
|
|
629
|
+
) : g === "horizontal" ? /* @__PURE__ */ o(
|
|
630
630
|
"div",
|
|
631
631
|
{
|
|
632
|
-
ref:
|
|
632
|
+
ref: j,
|
|
633
633
|
className: i(
|
|
634
634
|
"group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
|
|
635
|
-
|
|
635
|
+
p && "opacity-60",
|
|
636
636
|
a
|
|
637
637
|
),
|
|
638
|
-
...
|
|
638
|
+
...N,
|
|
639
639
|
children: [
|
|
640
640
|
/* @__PURE__ */ e(
|
|
641
|
-
|
|
641
|
+
H,
|
|
642
642
|
{
|
|
643
643
|
href: c,
|
|
644
644
|
className: "block h-24 w-20 shrink-0 overflow-hidden rounded-lg",
|
|
@@ -663,7 +663,7 @@ const V = w(
|
|
|
663
663
|
) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-sm font-medium text-[var(--card-foreground)]", children: r }),
|
|
664
664
|
s && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: s }),
|
|
665
665
|
d !== void 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
|
|
666
|
-
/* @__PURE__ */ e(
|
|
666
|
+
/* @__PURE__ */ e(V, { value: d, size: "sm", readonly: !0 }),
|
|
667
667
|
m !== void 0 && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
|
|
668
668
|
"(",
|
|
669
669
|
m,
|
|
@@ -684,13 +684,13 @@ const V = w(
|
|
|
684
684
|
S,
|
|
685
685
|
{
|
|
686
686
|
onClick: b,
|
|
687
|
-
disabled:
|
|
687
|
+
disabled: p,
|
|
688
688
|
variant: "primary",
|
|
689
689
|
size: "sm",
|
|
690
690
|
fullWidth: !0,
|
|
691
|
-
leftIcon: /* @__PURE__ */ e(
|
|
691
|
+
leftIcon: /* @__PURE__ */ e(T, { className: "h-3.5 w-3.5" }),
|
|
692
692
|
className: "mt-auto",
|
|
693
|
-
children:
|
|
693
|
+
children: p ? "Indisponível" : "Adicionar"
|
|
694
694
|
}
|
|
695
695
|
)
|
|
696
696
|
] })
|
|
@@ -699,16 +699,16 @@ const V = w(
|
|
|
699
699
|
) : /* @__PURE__ */ o(
|
|
700
700
|
"div",
|
|
701
701
|
{
|
|
702
|
-
ref:
|
|
702
|
+
ref: j,
|
|
703
703
|
className: i(
|
|
704
704
|
"group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
|
|
705
|
-
|
|
705
|
+
p && "opacity-60",
|
|
706
706
|
a
|
|
707
707
|
),
|
|
708
|
-
...
|
|
708
|
+
...N,
|
|
709
709
|
children: [
|
|
710
710
|
/* @__PURE__ */ o(
|
|
711
|
-
|
|
711
|
+
H,
|
|
712
712
|
{
|
|
713
713
|
href: c,
|
|
714
714
|
className: "relative block w-full aspect-square overflow-hidden rounded-t-lg",
|
|
@@ -721,19 +721,19 @@ const V = w(
|
|
|
721
721
|
className: "h-full w-full object-contain transition-transform group-hover:scale-105"
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
|
-
u && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(
|
|
725
|
-
|
|
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" }) })
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
),
|
|
729
|
-
|
|
729
|
+
x && /* @__PURE__ */ e(
|
|
730
730
|
"button",
|
|
731
731
|
{
|
|
732
|
-
onClick:
|
|
732
|
+
onClick: x,
|
|
733
733
|
className: "absolute right-3 top-3 rounded-full bg-white/90 p-2 transition-all hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
734
734
|
"aria-label": h ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
735
735
|
children: /* @__PURE__ */ e(
|
|
736
|
-
|
|
736
|
+
se,
|
|
737
737
|
{
|
|
738
738
|
className: i(
|
|
739
739
|
"h-5 w-5",
|
|
@@ -754,7 +754,7 @@ const V = w(
|
|
|
754
754
|
) : /* @__PURE__ */ e("h3", { className: "wrap-break-word text-base font-medium text-card-foreground", children: r }),
|
|
755
755
|
s && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: s }),
|
|
756
756
|
d !== void 0 && /* @__PURE__ */ o("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
757
|
-
/* @__PURE__ */ e(
|
|
757
|
+
/* @__PURE__ */ e(V, { value: d, size: "sm", readonly: !0 }),
|
|
758
758
|
m !== void 0 && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
759
759
|
"(",
|
|
760
760
|
m,
|
|
@@ -775,18 +775,18 @@ const V = w(
|
|
|
775
775
|
S,
|
|
776
776
|
{
|
|
777
777
|
onClick: b,
|
|
778
|
-
disabled:
|
|
778
|
+
disabled: p,
|
|
779
779
|
variant: "primary",
|
|
780
780
|
size: "md",
|
|
781
781
|
fullWidth: !0,
|
|
782
|
-
leftIcon: /* @__PURE__ */ e(
|
|
782
|
+
leftIcon: /* @__PURE__ */ e(T, { className: "h-4 w-4" }),
|
|
783
783
|
className: i(
|
|
784
784
|
"mt-4 transition-all duration-200",
|
|
785
785
|
"opacity-0 translate-y-2",
|
|
786
786
|
"group-hover:opacity-100 group-hover:translate-y-0",
|
|
787
787
|
"focus-visible:opacity-100 focus-visible:translate-y-0"
|
|
788
788
|
),
|
|
789
|
-
children:
|
|
789
|
+
children: p ? "Indisponível" : "Adicionar"
|
|
790
790
|
}
|
|
791
791
|
)
|
|
792
792
|
] })
|
|
@@ -794,8 +794,8 @@ const V = w(
|
|
|
794
794
|
}
|
|
795
795
|
)
|
|
796
796
|
);
|
|
797
|
-
|
|
798
|
-
const
|
|
797
|
+
F.displayName = "ProductCard";
|
|
798
|
+
const Ve = w(
|
|
799
799
|
({
|
|
800
800
|
className: a,
|
|
801
801
|
onSearch: t,
|
|
@@ -807,20 +807,20 @@ const $e = w(
|
|
|
807
807
|
onChange: m,
|
|
808
808
|
...u
|
|
809
809
|
}, f) => {
|
|
810
|
-
const [v,
|
|
810
|
+
const [v, p] = z(""), b = d !== void 0 ? d : v, x = {
|
|
811
811
|
sm: "h-9 text-sm",
|
|
812
812
|
md: "h-11 text-base",
|
|
813
813
|
lg: "h-14 text-lg"
|
|
814
|
-
}, h = (
|
|
815
|
-
const
|
|
816
|
-
d === void 0 &&
|
|
814
|
+
}, h = (N) => {
|
|
815
|
+
const j = N.target.value;
|
|
816
|
+
d === void 0 && p(j), m == null || m(N);
|
|
817
817
|
}, c = () => {
|
|
818
|
-
d === void 0 &&
|
|
819
|
-
},
|
|
820
|
-
|
|
818
|
+
d === void 0 && p(""), r == null || r();
|
|
819
|
+
}, g = (N) => {
|
|
820
|
+
N.key === "Enter" && t && t(b);
|
|
821
821
|
};
|
|
822
822
|
return /* @__PURE__ */ e("div", { className: i("relative w-full", a), children: /* @__PURE__ */ o("div", { className: "relative flex items-center", children: [
|
|
823
|
-
/* @__PURE__ */ e(
|
|
823
|
+
/* @__PURE__ */ e(X, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
|
|
824
824
|
/* @__PURE__ */ e(
|
|
825
825
|
"input",
|
|
826
826
|
{
|
|
@@ -828,20 +828,20 @@ const $e = w(
|
|
|
828
828
|
type: "search",
|
|
829
829
|
value: b,
|
|
830
830
|
onChange: h,
|
|
831
|
-
onKeyDown:
|
|
831
|
+
onKeyDown: g,
|
|
832
832
|
placeholder: n,
|
|
833
833
|
className: i(
|
|
834
834
|
"w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
|
|
835
835
|
"placeholder:text-[var(--muted-foreground)]",
|
|
836
836
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
|
|
837
837
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
838
|
-
|
|
838
|
+
x[l]
|
|
839
839
|
),
|
|
840
840
|
...u
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
843
|
/* @__PURE__ */ o("div", { className: "absolute right-3 flex items-center gap-1", children: [
|
|
844
|
-
s && /* @__PURE__ */ e(
|
|
844
|
+
s && /* @__PURE__ */ e(U, { className: "h-5 w-5 animate-spin text-[var(--muted-foreground)]" }),
|
|
845
845
|
b && !s && /* @__PURE__ */ e(
|
|
846
846
|
"button",
|
|
847
847
|
{
|
|
@@ -849,15 +849,15 @@ const $e = w(
|
|
|
849
849
|
onClick: c,
|
|
850
850
|
className: "rounded-full p-1 hover:bg-[var(--muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
851
851
|
"aria-label": "Clear search",
|
|
852
|
-
children: /* @__PURE__ */ e(
|
|
852
|
+
children: /* @__PURE__ */ e(le, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
|
|
853
853
|
}
|
|
854
854
|
)
|
|
855
855
|
] })
|
|
856
856
|
] }) });
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
|
-
|
|
860
|
-
const
|
|
859
|
+
Ve.displayName = "SearchBar";
|
|
860
|
+
const Fe = w(
|
|
861
861
|
({
|
|
862
862
|
className: a,
|
|
863
863
|
price: t,
|
|
@@ -873,7 +873,7 @@ const Ve = w(
|
|
|
873
873
|
md: "text-xl",
|
|
874
874
|
lg: "text-2xl",
|
|
875
875
|
xl: "text-4xl"
|
|
876
|
-
},
|
|
876
|
+
}, p = {
|
|
877
877
|
sm: "text-xs",
|
|
878
878
|
md: "text-sm",
|
|
879
879
|
lg: "text-base",
|
|
@@ -892,7 +892,7 @@ const Ve = w(
|
|
|
892
892
|
{
|
|
893
893
|
className: i(
|
|
894
894
|
"text-[var(--muted-foreground)] line-through",
|
|
895
|
-
|
|
895
|
+
p[l]
|
|
896
896
|
),
|
|
897
897
|
children: [
|
|
898
898
|
s,
|
|
@@ -902,7 +902,7 @@ const Ve = w(
|
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
n && f > 0 && /* @__PURE__ */ o(
|
|
905
|
+
n && f > 0 && /* @__PURE__ */ o(E, { variant: "success", size: "sm", children: [
|
|
906
906
|
"-",
|
|
907
907
|
f,
|
|
908
908
|
"%"
|
|
@@ -920,8 +920,8 @@ const Ve = w(
|
|
|
920
920
|
] });
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
|
-
|
|
924
|
-
const
|
|
923
|
+
Fe.displayName = "PriceDisplay";
|
|
924
|
+
const Ie = w(
|
|
925
925
|
({
|
|
926
926
|
className: a,
|
|
927
927
|
value: t,
|
|
@@ -935,12 +935,12 @@ const Fe = w(
|
|
|
935
935
|
}, f) => {
|
|
936
936
|
const v = () => {
|
|
937
937
|
t < s && l(t + 1);
|
|
938
|
-
},
|
|
938
|
+
}, p = () => {
|
|
939
939
|
t > r && l(t - 1);
|
|
940
940
|
}, b = (c) => {
|
|
941
|
-
const
|
|
942
|
-
!isNaN(
|
|
943
|
-
},
|
|
941
|
+
const g = parseInt(c.target.value);
|
|
942
|
+
!isNaN(g) && g >= r && g <= s && l(g);
|
|
943
|
+
}, x = {
|
|
944
944
|
sm: "h-8 w-8",
|
|
945
945
|
md: "h-10 w-10",
|
|
946
946
|
lg: "h-12 w-12"
|
|
@@ -958,11 +958,11 @@ const Fe = w(
|
|
|
958
958
|
type: "button",
|
|
959
959
|
variant: "secondary",
|
|
960
960
|
size: "sm",
|
|
961
|
-
onClick:
|
|
961
|
+
onClick: p,
|
|
962
962
|
disabled: d || t <= r,
|
|
963
|
-
className: i(
|
|
963
|
+
className: i(x[n], "p-0"),
|
|
964
964
|
"aria-label": "Decrease quantity",
|
|
965
|
-
children: /* @__PURE__ */ e(
|
|
965
|
+
children: /* @__PURE__ */ e(de, { className: "h-4 w-4" })
|
|
966
966
|
}
|
|
967
967
|
),
|
|
968
968
|
/* @__PURE__ */ e(
|
|
@@ -992,17 +992,17 @@ const Fe = w(
|
|
|
992
992
|
size: "sm",
|
|
993
993
|
onClick: v,
|
|
994
994
|
disabled: d || t >= s,
|
|
995
|
-
className: i(
|
|
995
|
+
className: i(x[n], "p-0"),
|
|
996
996
|
"aria-label": "Increase quantity",
|
|
997
|
-
children: /* @__PURE__ */ e(
|
|
997
|
+
children: /* @__PURE__ */ e(ce, { className: "h-4 w-4" })
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
1000
|
] })
|
|
1001
1001
|
] });
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
|
|
1005
|
-
const
|
|
1004
|
+
Ie.displayName = "QuantitySelector";
|
|
1005
|
+
const Ue = w(
|
|
1006
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: [
|
|
1007
1007
|
t && /* @__PURE__ */ o(
|
|
1008
1008
|
"label",
|
|
@@ -1028,11 +1028,11 @@ const Ie = w(
|
|
|
1028
1028
|
)
|
|
1029
1029
|
] })
|
|
1030
1030
|
);
|
|
1031
|
-
|
|
1032
|
-
function
|
|
1031
|
+
Ue.displayName = "FormGroup";
|
|
1032
|
+
function Tt({ ...a }) {
|
|
1033
1033
|
return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function $t({ className: a, ...t }) {
|
|
1036
1036
|
return /* @__PURE__ */ e(
|
|
1037
1037
|
"ol",
|
|
1038
1038
|
{
|
|
@@ -1045,7 +1045,7 @@ function Tt({ className: a, ...t }) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Vt({ className: a, ...t }) {
|
|
1049
1049
|
return /* @__PURE__ */ e(
|
|
1050
1050
|
"li",
|
|
1051
1051
|
{
|
|
@@ -1055,7 +1055,7 @@ function $t({ className: a, ...t }) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Ft({
|
|
1059
1059
|
asChild: a,
|
|
1060
1060
|
className: t,
|
|
1061
1061
|
...r
|
|
@@ -1069,7 +1069,7 @@ function Vt({
|
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function It({ className: a, ...t }) {
|
|
1073
1073
|
return /* @__PURE__ */ e(
|
|
1074
1074
|
"span",
|
|
1075
1075
|
{
|
|
@@ -1082,7 +1082,7 @@ function Ft({ className: a, ...t }) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Ut({
|
|
1086
1086
|
children: a,
|
|
1087
1087
|
className: t,
|
|
1088
1088
|
...r
|
|
@@ -1095,21 +1095,21 @@ function It({
|
|
|
1095
1095
|
"aria-hidden": "true",
|
|
1096
1096
|
className: i("[&>svg]:size-3.5", t),
|
|
1097
1097
|
...r,
|
|
1098
|
-
children: a ?? /* @__PURE__ */ e(
|
|
1098
|
+
children: a ?? /* @__PURE__ */ e(Y, {})
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function qt({
|
|
1103
1103
|
...a
|
|
1104
1104
|
}) {
|
|
1105
|
-
return /* @__PURE__ */ e(
|
|
1105
|
+
return /* @__PURE__ */ e(_.Root, { "data-slot": "accordion", ...a });
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Gt({
|
|
1108
1108
|
className: a,
|
|
1109
1109
|
...t
|
|
1110
1110
|
}) {
|
|
1111
1111
|
return /* @__PURE__ */ e(
|
|
1112
|
-
|
|
1112
|
+
_.Item,
|
|
1113
1113
|
{
|
|
1114
1114
|
"data-slot": "accordion-item",
|
|
1115
1115
|
className: i("border-b last:border-b-0", a),
|
|
@@ -1117,13 +1117,13 @@ function qt({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
);
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function Ht({
|
|
1121
1121
|
className: a,
|
|
1122
1122
|
children: t,
|
|
1123
1123
|
...r
|
|
1124
1124
|
}) {
|
|
1125
|
-
return /* @__PURE__ */ e(
|
|
1126
|
-
|
|
1125
|
+
return /* @__PURE__ */ e(_.Header, { className: "flex", children: /* @__PURE__ */ o(
|
|
1126
|
+
_.Trigger,
|
|
1127
1127
|
{
|
|
1128
1128
|
"data-slot": "accordion-trigger",
|
|
1129
1129
|
className: i(
|
|
@@ -1133,18 +1133,18 @@ function Gt({
|
|
|
1133
1133
|
...r,
|
|
1134
1134
|
children: [
|
|
1135
1135
|
t,
|
|
1136
|
-
/* @__PURE__ */ e(
|
|
1136
|
+
/* @__PURE__ */ e(R, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
1137
1137
|
]
|
|
1138
1138
|
}
|
|
1139
1139
|
) });
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Qt({
|
|
1142
1142
|
className: a,
|
|
1143
1143
|
children: t,
|
|
1144
1144
|
...r
|
|
1145
1145
|
}) {
|
|
1146
1146
|
return /* @__PURE__ */ e(
|
|
1147
|
-
|
|
1147
|
+
_.Content,
|
|
1148
1148
|
{
|
|
1149
1149
|
"data-slot": "accordion-content",
|
|
1150
1150
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
@@ -1153,12 +1153,12 @@ function Ht({
|
|
|
1153
1153
|
}
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function qe({
|
|
1157
1157
|
delayDuration: a = 0,
|
|
1158
1158
|
...t
|
|
1159
1159
|
}) {
|
|
1160
1160
|
return /* @__PURE__ */ e(
|
|
1161
|
-
|
|
1161
|
+
M.Provider,
|
|
1162
1162
|
{
|
|
1163
1163
|
"data-slot": "tooltip-provider",
|
|
1164
1164
|
delayDuration: a,
|
|
@@ -1166,24 +1166,24 @@ function Ue({
|
|
|
1166
1166
|
}
|
|
1167
1167
|
);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Wt({
|
|
1170
1170
|
...a
|
|
1171
1171
|
}) {
|
|
1172
|
-
return /* @__PURE__ */ e(
|
|
1172
|
+
return /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(M.Root, { "data-slot": "tooltip", ...a }) });
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Xt({
|
|
1175
1175
|
...a
|
|
1176
1176
|
}) {
|
|
1177
|
-
return /* @__PURE__ */ e(
|
|
1177
|
+
return /* @__PURE__ */ e(M.Trigger, { "data-slot": "tooltip-trigger", ...a });
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Yt({
|
|
1180
1180
|
className: a,
|
|
1181
1181
|
sideOffset: t = 0,
|
|
1182
1182
|
children: r,
|
|
1183
1183
|
...s
|
|
1184
1184
|
}) {
|
|
1185
|
-
return /* @__PURE__ */ e(
|
|
1186
|
-
|
|
1185
|
+
return /* @__PURE__ */ e(M.Portal, { children: /* @__PURE__ */ o(
|
|
1186
|
+
M.Content,
|
|
1187
1187
|
{
|
|
1188
1188
|
"data-slot": "tooltip-content",
|
|
1189
1189
|
sideOffset: t,
|
|
@@ -1194,12 +1194,12 @@ function Ot({
|
|
|
1194
1194
|
...s,
|
|
1195
1195
|
children: [
|
|
1196
1196
|
r,
|
|
1197
|
-
/* @__PURE__ */ e(
|
|
1197
|
+
/* @__PURE__ */ e(M.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
1198
1198
|
]
|
|
1199
1199
|
}
|
|
1200
1200
|
) });
|
|
1201
1201
|
}
|
|
1202
|
-
const
|
|
1202
|
+
const Ge = w(
|
|
1203
1203
|
({
|
|
1204
1204
|
className: a,
|
|
1205
1205
|
variant: t = "default",
|
|
@@ -1212,10 +1212,10 @@ const qe = w(
|
|
|
1212
1212
|
overlay: u = !0,
|
|
1213
1213
|
children: f,
|
|
1214
1214
|
...v
|
|
1215
|
-
},
|
|
1215
|
+
}, p) => /* @__PURE__ */ o(
|
|
1216
1216
|
"section",
|
|
1217
1217
|
{
|
|
1218
|
-
ref:
|
|
1218
|
+
ref: p,
|
|
1219
1219
|
className: i(
|
|
1220
1220
|
"relative flex min-h-[400px] w-full flex-col justify-center px-6 py-16 lg:px-12 lg:py-24",
|
|
1221
1221
|
{
|
|
@@ -1227,7 +1227,7 @@ const qe = w(
|
|
|
1227
1227
|
),
|
|
1228
1228
|
...v,
|
|
1229
1229
|
children: [
|
|
1230
|
-
m && /* @__PURE__ */ o(
|
|
1230
|
+
m && /* @__PURE__ */ o(P, { children: [
|
|
1231
1231
|
/* @__PURE__ */ e(
|
|
1232
1232
|
"div",
|
|
1233
1233
|
{
|
|
@@ -1306,8 +1306,8 @@ const qe = w(
|
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
1308
1308
|
);
|
|
1309
|
-
|
|
1310
|
-
const
|
|
1309
|
+
Ge.displayName = "Hero";
|
|
1310
|
+
const Z = w(
|
|
1311
1311
|
({
|
|
1312
1312
|
className: a,
|
|
1313
1313
|
variant: t = "default",
|
|
@@ -1318,10 +1318,10 @@ const Y = w(
|
|
|
1318
1318
|
...d
|
|
1319
1319
|
}, m) => {
|
|
1320
1320
|
const f = r || {
|
|
1321
|
-
default: /* @__PURE__ */ e(
|
|
1322
|
-
search: /* @__PURE__ */ e(
|
|
1323
|
-
cart: /* @__PURE__ */ e(
|
|
1324
|
-
error: /* @__PURE__ */ e(
|
|
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" })
|
|
1325
1325
|
}[t];
|
|
1326
1326
|
return /* @__PURE__ */ o(
|
|
1327
1327
|
"div",
|
|
@@ -1351,8 +1351,8 @@ const Y = w(
|
|
|
1351
1351
|
);
|
|
1352
1352
|
}
|
|
1353
1353
|
);
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1354
|
+
Z.displayName = "EmptyState";
|
|
1355
|
+
const He = w(
|
|
1356
1356
|
({
|
|
1357
1357
|
className: a,
|
|
1358
1358
|
type: t = "generic",
|
|
@@ -1364,7 +1364,7 @@ const Ge = w(
|
|
|
1364
1364
|
showHome: m = !0,
|
|
1365
1365
|
...u
|
|
1366
1366
|
}, f) => {
|
|
1367
|
-
const
|
|
1367
|
+
const p = {
|
|
1368
1368
|
404: {
|
|
1369
1369
|
title: "Página não encontrada",
|
|
1370
1370
|
message: "A página que você está procurando não existe ou foi movida.",
|
|
@@ -1385,7 +1385,7 @@ const Ge = w(
|
|
|
1385
1385
|
message: "Ocorreu um erro inesperado. Por favor, tente novamente.",
|
|
1386
1386
|
code: ""
|
|
1387
1387
|
}
|
|
1388
|
-
}[t], b = r ||
|
|
1388
|
+
}[t], b = r || p.title, x = s || p.message;
|
|
1389
1389
|
return /* @__PURE__ */ o(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
@@ -1399,11 +1399,11 @@ const Ge = w(
|
|
|
1399
1399
|
...u,
|
|
1400
1400
|
children: [
|
|
1401
1401
|
/* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-4", children: [
|
|
1402
|
-
|
|
1403
|
-
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(
|
|
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" }) })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
/* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
|
|
1406
|
-
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children:
|
|
1406
|
+
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: x }),
|
|
1407
1407
|
/* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
|
|
1408
1408
|
d && l && /* @__PURE__ */ e(
|
|
1409
1409
|
S,
|
|
@@ -1411,7 +1411,7 @@ const Ge = w(
|
|
|
1411
1411
|
onClick: l,
|
|
1412
1412
|
variant: "primary",
|
|
1413
1413
|
size: "lg",
|
|
1414
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1414
|
+
leftIcon: /* @__PURE__ */ e(ge, { className: "h-5 w-5" }),
|
|
1415
1415
|
children: "Tentar novamente"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
@@ -1421,7 +1421,7 @@ const Ge = w(
|
|
|
1421
1421
|
onClick: n,
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
size: "lg",
|
|
1424
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1424
|
+
leftIcon: /* @__PURE__ */ e(pe, { className: "h-5 w-5" }),
|
|
1425
1425
|
children: "Voltar ao início"
|
|
1426
1426
|
}
|
|
1427
1427
|
)
|
|
@@ -1431,8 +1431,8 @@ const Ge = w(
|
|
|
1431
1431
|
);
|
|
1432
1432
|
}
|
|
1433
1433
|
);
|
|
1434
|
-
|
|
1435
|
-
const
|
|
1434
|
+
He.displayName = "ErrorState";
|
|
1435
|
+
const Qe = w(
|
|
1436
1436
|
({
|
|
1437
1437
|
className: a,
|
|
1438
1438
|
products: t,
|
|
@@ -1459,8 +1459,8 @@ const He = w(
|
|
|
1459
1459
|
a
|
|
1460
1460
|
),
|
|
1461
1461
|
...u,
|
|
1462
|
-
children: Array.from({ length: n }).map((
|
|
1463
|
-
|
|
1462
|
+
children: Array.from({ length: n }).map((p, b) => /* @__PURE__ */ e(
|
|
1463
|
+
F,
|
|
1464
1464
|
{
|
|
1465
1465
|
image: "",
|
|
1466
1466
|
title: "",
|
|
@@ -1471,7 +1471,7 @@ const He = w(
|
|
|
1471
1471
|
))
|
|
1472
1472
|
}
|
|
1473
1473
|
) : t.length === 0 ? /* @__PURE__ */ e(
|
|
1474
|
-
|
|
1474
|
+
Z,
|
|
1475
1475
|
{
|
|
1476
1476
|
variant: "search",
|
|
1477
1477
|
title: d,
|
|
@@ -1491,33 +1491,33 @@ const He = w(
|
|
|
1491
1491
|
a
|
|
1492
1492
|
),
|
|
1493
1493
|
...u,
|
|
1494
|
-
children: t.map((
|
|
1494
|
+
children: t.map((p, b) => /* @__PURE__ */ e(F, { ...p }, b))
|
|
1495
1495
|
}
|
|
1496
1496
|
);
|
|
1497
1497
|
}
|
|
1498
1498
|
);
|
|
1499
|
-
|
|
1499
|
+
Qe.displayName = "ProductGrid";
|
|
1500
1500
|
function Kt({
|
|
1501
1501
|
...a
|
|
1502
1502
|
}) {
|
|
1503
|
-
return /* @__PURE__ */ e(
|
|
1503
|
+
return /* @__PURE__ */ e(y.Root, { "data-slot": "dialog", ...a });
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Ot({
|
|
1506
1506
|
...a
|
|
1507
1507
|
}) {
|
|
1508
|
-
return /* @__PURE__ */ e(
|
|
1508
|
+
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function We({
|
|
1511
1511
|
...a
|
|
1512
1512
|
}) {
|
|
1513
|
-
return /* @__PURE__ */ e(
|
|
1513
|
+
return /* @__PURE__ */ e(y.Portal, { "data-slot": "dialog-portal", ...a });
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Xe({
|
|
1516
1516
|
className: a,
|
|
1517
1517
|
...t
|
|
1518
1518
|
}) {
|
|
1519
1519
|
return /* @__PURE__ */ e(
|
|
1520
|
-
|
|
1520
|
+
y.Overlay,
|
|
1521
1521
|
{
|
|
1522
1522
|
"data-slot": "dialog-overlay",
|
|
1523
1523
|
className: i(
|
|
@@ -1528,15 +1528,15 @@ function We({
|
|
|
1528
1528
|
}
|
|
1529
1529
|
);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Zt({
|
|
1532
1532
|
className: a,
|
|
1533
1533
|
children: t,
|
|
1534
1534
|
...r
|
|
1535
1535
|
}) {
|
|
1536
|
-
return /* @__PURE__ */ o(
|
|
1537
|
-
/* @__PURE__ */ e(
|
|
1536
|
+
return /* @__PURE__ */ o(We, { "data-slot": "dialog-portal", children: [
|
|
1537
|
+
/* @__PURE__ */ e(Xe, {}),
|
|
1538
1538
|
/* @__PURE__ */ o(
|
|
1539
|
-
|
|
1539
|
+
y.Content,
|
|
1540
1540
|
{
|
|
1541
1541
|
"data-slot": "dialog-content",
|
|
1542
1542
|
className: i(
|
|
@@ -1546,7 +1546,7 @@ function Yt({
|
|
|
1546
1546
|
...r,
|
|
1547
1547
|
children: [
|
|
1548
1548
|
t,
|
|
1549
|
-
/* @__PURE__ */ o(
|
|
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
1550
|
/* @__PURE__ */ e(K, {}),
|
|
1551
1551
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1552
1552
|
] })
|
|
@@ -1555,7 +1555,7 @@ function Yt({
|
|
|
1555
1555
|
)
|
|
1556
1556
|
] });
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Jt({ className: a, ...t }) {
|
|
1559
1559
|
return /* @__PURE__ */ e(
|
|
1560
1560
|
"div",
|
|
1561
1561
|
{
|
|
@@ -1565,7 +1565,7 @@ function Zt({ className: a, ...t }) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function ea({ className: a, ...t }) {
|
|
1569
1569
|
return /* @__PURE__ */ e(
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
@@ -1578,12 +1578,12 @@ function Jt({ className: a, ...t }) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function ta({
|
|
1582
1582
|
className: a,
|
|
1583
1583
|
...t
|
|
1584
1584
|
}) {
|
|
1585
1585
|
return /* @__PURE__ */ e(
|
|
1586
|
-
|
|
1586
|
+
y.Title,
|
|
1587
1587
|
{
|
|
1588
1588
|
"data-slot": "dialog-title",
|
|
1589
1589
|
className: i("text-lg leading-none font-semibold", a),
|
|
@@ -1591,12 +1591,12 @@ function ea({
|
|
|
1591
1591
|
}
|
|
1592
1592
|
);
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function aa({
|
|
1595
1595
|
className: a,
|
|
1596
1596
|
...t
|
|
1597
1597
|
}) {
|
|
1598
1598
|
return /* @__PURE__ */ e(
|
|
1599
|
-
|
|
1599
|
+
y.Description,
|
|
1600
1600
|
{
|
|
1601
1601
|
"data-slot": "dialog-description",
|
|
1602
1602
|
className: i("text-muted-foreground text-sm", a),
|
|
@@ -1604,30 +1604,30 @@ function ta({
|
|
|
1604
1604
|
}
|
|
1605
1605
|
);
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1608
|
-
return /* @__PURE__ */ e(
|
|
1607
|
+
function Ye({ ...a }) {
|
|
1608
|
+
return /* @__PURE__ */ e(y.Root, { "data-slot": "sheet", ...a });
|
|
1609
1609
|
}
|
|
1610
1610
|
function Ke({
|
|
1611
1611
|
...a
|
|
1612
1612
|
}) {
|
|
1613
|
-
return /* @__PURE__ */ e(
|
|
1613
|
+
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "sheet-trigger", ...a });
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function Oe({
|
|
1616
1616
|
...a
|
|
1617
1617
|
}) {
|
|
1618
|
-
return /* @__PURE__ */ e(
|
|
1618
|
+
return /* @__PURE__ */ e(y.Close, { "data-slot": "sheet-close", ...a });
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Ze({
|
|
1621
1621
|
...a
|
|
1622
1622
|
}) {
|
|
1623
|
-
return /* @__PURE__ */ e(
|
|
1623
|
+
return /* @__PURE__ */ e(y.Portal, { "data-slot": "sheet-portal", ...a });
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function Je({
|
|
1626
1626
|
className: a,
|
|
1627
1627
|
...t
|
|
1628
1628
|
}) {
|
|
1629
1629
|
return /* @__PURE__ */ e(
|
|
1630
|
-
|
|
1630
|
+
y.Overlay,
|
|
1631
1631
|
{
|
|
1632
1632
|
"data-slot": "sheet-overlay",
|
|
1633
1633
|
className: i(
|
|
@@ -1638,16 +1638,16 @@ function Ze({
|
|
|
1638
1638
|
}
|
|
1639
1639
|
);
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function et({
|
|
1642
1642
|
className: a,
|
|
1643
1643
|
children: t,
|
|
1644
1644
|
side: r = "right",
|
|
1645
1645
|
...s
|
|
1646
1646
|
}) {
|
|
1647
|
-
return /* @__PURE__ */ o(
|
|
1648
|
-
/* @__PURE__ */ e(
|
|
1647
|
+
return /* @__PURE__ */ o(Ze, { children: [
|
|
1648
|
+
/* @__PURE__ */ e(Je, {}),
|
|
1649
1649
|
/* @__PURE__ */ o(
|
|
1650
|
-
|
|
1650
|
+
y.Content,
|
|
1651
1651
|
{
|
|
1652
1652
|
"data-slot": "sheet-content",
|
|
1653
1653
|
className: i(
|
|
@@ -1661,7 +1661,7 @@ function Je({
|
|
|
1661
1661
|
...s,
|
|
1662
1662
|
children: [
|
|
1663
1663
|
t,
|
|
1664
|
-
/* @__PURE__ */ o(
|
|
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
1665
|
/* @__PURE__ */ e(K, { className: "size-4" }),
|
|
1666
1666
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1667
1667
|
] })
|
|
@@ -1670,7 +1670,7 @@ function Je({
|
|
|
1670
1670
|
)
|
|
1671
1671
|
] });
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function tt({ className: a, ...t }) {
|
|
1674
1674
|
return /* @__PURE__ */ e(
|
|
1675
1675
|
"div",
|
|
1676
1676
|
{
|
|
@@ -1680,7 +1680,7 @@ function et({ className: a, ...t }) {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
);
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function ra({ className: a, ...t }) {
|
|
1684
1684
|
return /* @__PURE__ */ e(
|
|
1685
1685
|
"div",
|
|
1686
1686
|
{
|
|
@@ -1690,12 +1690,12 @@ function aa({ className: a, ...t }) {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
);
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function at({
|
|
1694
1694
|
className: a,
|
|
1695
1695
|
...t
|
|
1696
1696
|
}) {
|
|
1697
1697
|
return /* @__PURE__ */ e(
|
|
1698
|
-
|
|
1698
|
+
y.Title,
|
|
1699
1699
|
{
|
|
1700
1700
|
"data-slot": "sheet-title",
|
|
1701
1701
|
className: i("text-foreground font-semibold", a),
|
|
@@ -1703,12 +1703,12 @@ function tt({
|
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function ia({
|
|
1707
1707
|
className: a,
|
|
1708
1708
|
...t
|
|
1709
1709
|
}) {
|
|
1710
1710
|
return /* @__PURE__ */ e(
|
|
1711
|
-
|
|
1711
|
+
y.Description,
|
|
1712
1712
|
{
|
|
1713
1713
|
"data-slot": "sheet-description",
|
|
1714
1714
|
className: i("text-muted-foreground text-sm", a),
|
|
@@ -1716,7 +1716,7 @@ function ra({
|
|
|
1716
1716
|
}
|
|
1717
1717
|
);
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function rt({ children: a, as: t = "div", className: r }) {
|
|
1720
1720
|
return /* @__PURE__ */ e(
|
|
1721
1721
|
t,
|
|
1722
1722
|
{
|
|
@@ -1727,26 +1727,26 @@ function at({ children: a, as: t = "div", className: r }) {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
);
|
|
1729
1729
|
}
|
|
1730
|
-
const
|
|
1730
|
+
const it = w(
|
|
1731
1731
|
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: s = !1, ...l }, n) => {
|
|
1732
|
-
const [d, m] = z("light"), [u, f] = z(16), [v,
|
|
1733
|
-
|
|
1734
|
-
const
|
|
1735
|
-
m(
|
|
1736
|
-
const
|
|
1737
|
-
Number.isFinite(
|
|
1738
|
-
}, []),
|
|
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(() => {
|
|
1739
1739
|
if (!v && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
|
|
1740
|
-
const
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}, document.body.appendChild(
|
|
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);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, [v]);
|
|
1746
1746
|
const b = () => {
|
|
1747
1747
|
const c = d === "light" ? "dark" : "light";
|
|
1748
1748
|
m(c), document.documentElement.setAttribute("data-theme", c), localStorage.setItem("a11y-theme", c), t == null || t(c);
|
|
1749
|
-
},
|
|
1749
|
+
}, x = () => {
|
|
1750
1750
|
const c = Math.min(u + 2, 24);
|
|
1751
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
1752
|
}, h = () => {
|
|
@@ -1764,9 +1764,9 @@ const rt = w(
|
|
|
1764
1764
|
role: "toolbar",
|
|
1765
1765
|
"aria-label": "Ferramentas de acessibilidade",
|
|
1766
1766
|
...l,
|
|
1767
|
-
children: /* @__PURE__ */ o(
|
|
1767
|
+
children: /* @__PURE__ */ o(rt, { 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(
|
|
1769
|
+
/* @__PURE__ */ e(ve, { 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: [
|
|
@@ -1791,7 +1791,7 @@ const rt = w(
|
|
|
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(
|
|
1794
|
+
children: /* @__PURE__ */ e(be, { 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,7 +1799,7 @@ const rt = w(
|
|
|
1799
1799
|
"button",
|
|
1800
1800
|
{
|
|
1801
1801
|
type: "button",
|
|
1802
|
-
onClick:
|
|
1802
|
+
onClick: x,
|
|
1803
1803
|
disabled: u >= 24,
|
|
1804
1804
|
"aria-label": "Aumentar tamanho da fonte",
|
|
1805
1805
|
className: i(
|
|
@@ -1807,7 +1807,7 @@ const rt = w(
|
|
|
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(
|
|
1810
|
+
children: /* @__PURE__ */ e(he, { className: "h-4 w-4" })
|
|
1811
1811
|
}
|
|
1812
1812
|
)
|
|
1813
1813
|
] }),
|
|
@@ -1821,14 +1821,14 @@ const rt = 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(
|
|
1824
|
+
children: d === "light" ? /* @__PURE__ */ e(xe, { className: "h-4 w-4" }) : /* @__PURE__ */ e(Ne, { className: "h-4 w-4" })
|
|
1825
1825
|
}
|
|
1826
1826
|
),
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
1828
|
"button",
|
|
1829
1829
|
{
|
|
1830
1830
|
type: "button",
|
|
1831
|
-
onClick: () =>
|
|
1831
|
+
onClick: () => p((c) => !c),
|
|
1832
1832
|
"aria-label": "Ativar VLibras",
|
|
1833
1833
|
"aria-pressed": v,
|
|
1834
1834
|
className: i(
|
|
@@ -1849,8 +1849,8 @@ const rt = w(
|
|
|
1849
1849
|
);
|
|
1850
1850
|
}
|
|
1851
1851
|
);
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1852
|
+
it.displayName = "TopAccessibilityBar";
|
|
1853
|
+
const ot = w(
|
|
1854
1854
|
({
|
|
1855
1855
|
className: a,
|
|
1856
1856
|
slides: t,
|
|
@@ -1858,24 +1858,24 @@ const it = w(
|
|
|
1858
1858
|
autoplay: s = !0,
|
|
1859
1859
|
...l
|
|
1860
1860
|
}, n) => {
|
|
1861
|
-
const [d, m] = z(0), [u, f] = z(!1), [v,
|
|
1862
|
-
|
|
1861
|
+
const [d, m] = z(0), [u, f] = z(!1), [v, p] = z(!1);
|
|
1862
|
+
A(() => {
|
|
1863
1863
|
const c = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1864
|
+
p(c.matches);
|
|
1865
|
+
const g = (N) => {
|
|
1866
|
+
p(N.matches);
|
|
1867
1867
|
};
|
|
1868
|
-
return c.addEventListener("change",
|
|
1869
|
-
}, []),
|
|
1868
|
+
return c.addEventListener("change", g), () => c.removeEventListener("change", g);
|
|
1869
|
+
}, []), A(() => {
|
|
1870
1870
|
if (!s || u || v) return;
|
|
1871
1871
|
const c = setInterval(() => {
|
|
1872
|
-
m((
|
|
1872
|
+
m((g) => (g + 1) % t.length);
|
|
1873
1873
|
}, r);
|
|
1874
1874
|
return () => clearInterval(c);
|
|
1875
1875
|
}, [s, r, t.length, u, v]);
|
|
1876
1876
|
const b = (c) => {
|
|
1877
1877
|
m(c), f(!0), setTimeout(() => f(!1), r);
|
|
1878
|
-
},
|
|
1878
|
+
}, x = () => {
|
|
1879
1879
|
b((d - 1 + t.length) % t.length);
|
|
1880
1880
|
}, h = () => {
|
|
1881
1881
|
b((d + 1) % t.length);
|
|
@@ -1889,14 +1889,14 @@ const it = w(
|
|
|
1889
1889
|
onMouseLeave: () => f(!1),
|
|
1890
1890
|
...l,
|
|
1891
1891
|
children: [
|
|
1892
|
-
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c,
|
|
1892
|
+
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c, g) => /* @__PURE__ */ o(
|
|
1893
1893
|
"div",
|
|
1894
1894
|
{
|
|
1895
1895
|
className: i(
|
|
1896
1896
|
"w-full transition-opacity duration-700",
|
|
1897
|
-
|
|
1897
|
+
g === d ? "block" : "hidden"
|
|
1898
1898
|
),
|
|
1899
|
-
"aria-hidden":
|
|
1899
|
+
"aria-hidden": g !== d,
|
|
1900
1900
|
children: [
|
|
1901
1901
|
/* @__PURE__ */ o("picture", { children: [
|
|
1902
1902
|
/* @__PURE__ */ e(
|
|
@@ -1920,7 +1920,7 @@ const it = 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:
|
|
1923
|
+
loading: g === 0 ? "eager" : "lazy"
|
|
1924
1924
|
}
|
|
1925
1925
|
)
|
|
1926
1926
|
] }),
|
|
@@ -1940,14 +1940,14 @@ const it = w(
|
|
|
1940
1940
|
},
|
|
1941
1941
|
c.id
|
|
1942
1942
|
)) }),
|
|
1943
|
-
t.length > 1 && /* @__PURE__ */ o(
|
|
1943
|
+
t.length > 1 && /* @__PURE__ */ o(P, { children: [
|
|
1944
1944
|
/* @__PURE__ */ e(
|
|
1945
1945
|
"button",
|
|
1946
1946
|
{
|
|
1947
|
-
onClick:
|
|
1947
|
+
onClick: x,
|
|
1948
1948
|
className: "absolute left-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
|
|
1949
1949
|
"aria-label": "Slide anterior",
|
|
1950
|
-
children: /* @__PURE__ */ e(
|
|
1950
|
+
children: /* @__PURE__ */ e(we, { className: "h-6 w-6 text-gray-900" })
|
|
1951
1951
|
}
|
|
1952
1952
|
),
|
|
1953
1953
|
/* @__PURE__ */ e(
|
|
@@ -1956,36 +1956,36 @@ const it = w(
|
|
|
1956
1956
|
onClick: h,
|
|
1957
1957
|
className: "absolute right-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
|
|
1958
1958
|
"aria-label": "Próximo slide",
|
|
1959
|
-
children: /* @__PURE__ */ e(
|
|
1959
|
+
children: /* @__PURE__ */ e(Y, { 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,
|
|
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(
|
|
1964
1964
|
"button",
|
|
1965
1965
|
{
|
|
1966
|
-
onClick: () => b(
|
|
1966
|
+
onClick: () => b(g),
|
|
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 ${
|
|
1969
|
-
"aria-current":
|
|
1968
|
+
"aria-label": `Ir para slide ${g + 1}`,
|
|
1969
|
+
"aria-current": g === d,
|
|
1970
1970
|
children: /* @__PURE__ */ e(
|
|
1971
1971
|
"span",
|
|
1972
1972
|
{
|
|
1973
1973
|
className: i(
|
|
1974
1974
|
"block rounded-full transition-all",
|
|
1975
|
-
|
|
1975
|
+
g === 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
|
-
|
|
1980
|
+
g
|
|
1981
1981
|
)) })
|
|
1982
1982
|
]
|
|
1983
1983
|
}
|
|
1984
1984
|
));
|
|
1985
1985
|
}
|
|
1986
1986
|
);
|
|
1987
|
-
|
|
1988
|
-
function
|
|
1987
|
+
ot.displayName = "HeroCarousel";
|
|
1988
|
+
function nt({
|
|
1989
1989
|
className: a,
|
|
1990
1990
|
children: t,
|
|
1991
1991
|
viewport: r = !0,
|
|
@@ -2003,12 +2003,12 @@ function ot({
|
|
|
2003
2003
|
...s,
|
|
2004
2004
|
children: [
|
|
2005
2005
|
t,
|
|
2006
|
-
r && /* @__PURE__ */ e(
|
|
2006
|
+
r && /* @__PURE__ */ e(ut, {})
|
|
2007
2007
|
]
|
|
2008
2008
|
}
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function st({
|
|
2012
2012
|
className: a,
|
|
2013
2013
|
...t
|
|
2014
2014
|
}) {
|
|
@@ -2024,7 +2024,7 @@ function nt({
|
|
|
2024
2024
|
}
|
|
2025
2025
|
);
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function Q({
|
|
2028
2028
|
className: a,
|
|
2029
2029
|
...t
|
|
2030
2030
|
}) {
|
|
@@ -2037,10 +2037,10 @@ function H({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const lt = B(
|
|
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
|
|
2043
|
+
function dt({
|
|
2044
2044
|
className: a,
|
|
2045
2045
|
children: t,
|
|
2046
2046
|
...r
|
|
@@ -2049,13 +2049,13 @@ function lt({
|
|
|
2049
2049
|
D.Trigger,
|
|
2050
2050
|
{
|
|
2051
2051
|
"data-slot": "navigation-menu-trigger",
|
|
2052
|
-
className: i(
|
|
2052
|
+
className: i(lt(), "group", a),
|
|
2053
2053
|
...r,
|
|
2054
2054
|
children: [
|
|
2055
2055
|
t,
|
|
2056
2056
|
" ",
|
|
2057
2057
|
/* @__PURE__ */ e(
|
|
2058
|
-
|
|
2058
|
+
R,
|
|
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,7 +2065,7 @@ function lt({
|
|
|
2065
2065
|
}
|
|
2066
2066
|
);
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function ct({
|
|
2069
2069
|
className: a,
|
|
2070
2070
|
...t
|
|
2071
2071
|
}) {
|
|
@@ -2082,7 +2082,7 @@ function dt({
|
|
|
2082
2082
|
}
|
|
2083
2083
|
);
|
|
2084
2084
|
}
|
|
2085
|
-
function
|
|
2085
|
+
function ut({
|
|
2086
2086
|
className: a,
|
|
2087
2087
|
...t
|
|
2088
2088
|
}) {
|
|
@@ -2106,7 +2106,7 @@ function ct({
|
|
|
2106
2106
|
}
|
|
2107
2107
|
);
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function I({
|
|
2110
2110
|
className: a,
|
|
2111
2111
|
...t
|
|
2112
2112
|
}) {
|
|
@@ -2122,7 +2122,7 @@ function F({
|
|
|
2122
2122
|
}
|
|
2123
2123
|
);
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function mt({ 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 ut({ 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
|
-
|
|
2139
|
+
I,
|
|
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 ut({ items: a }) {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
) }, s.id)) })
|
|
2146
2146
|
] }, t.id) : /* @__PURE__ */ e("li", { role: "none", children: /* @__PURE__ */ e(
|
|
2147
|
-
|
|
2147
|
+
I,
|
|
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 ut({ items: a }) {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
) });
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function J({ 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(
|
|
2160
|
+
return !((n = a.children) != null && n.length) ? /* @__PURE__ */ e(Oe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2161
2161
|
"a",
|
|
2162
2162
|
{
|
|
2163
2163
|
href: a.href ?? "#",
|
|
@@ -2182,7 +2182,7 @@ function Z({ item: a, depth: t = 0 }) {
|
|
|
2182
2182
|
children: [
|
|
2183
2183
|
/* @__PURE__ */ e("span", { children: a.label }),
|
|
2184
2184
|
/* @__PURE__ */ e(
|
|
2185
|
-
|
|
2185
|
+
O,
|
|
2186
2186
|
{
|
|
2187
2187
|
"aria-hidden": "true",
|
|
2188
2188
|
className: i(
|
|
@@ -2199,12 +2199,12 @@ function Z({ item: a, depth: t = 0 }) {
|
|
|
2199
2199
|
{
|
|
2200
2200
|
id: `mobile-nav-${a.id}`,
|
|
2201
2201
|
className: "mb-1 ml-2 border-l-2 border-[var(--border)] pl-3",
|
|
2202
|
-
children: a.children.map((d) => /* @__PURE__ */ e(
|
|
2202
|
+
children: a.children.map((d) => /* @__PURE__ */ e(J, { item: d, depth: t + 1 }, d.id))
|
|
2203
2203
|
}
|
|
2204
2204
|
)
|
|
2205
2205
|
] });
|
|
2206
2206
|
}
|
|
2207
|
-
const
|
|
2207
|
+
const ft = w(
|
|
2208
2208
|
({ items: a, logo: t, rightSlot: r, searchSlot: s, drawerFooter: l, className: n, ...d }, m) => /* @__PURE__ */ e(
|
|
2209
2209
|
"header",
|
|
2210
2210
|
{
|
|
@@ -2220,19 +2220,19 @@ const mt = 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(
|
|
2223
|
+
/* @__PURE__ */ o(Ye, { children: [
|
|
2224
2224
|
/* @__PURE__ */ e(Ke, { 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(
|
|
2230
|
+
children: /* @__PURE__ */ e(ye, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
2231
2231
|
}
|
|
2232
2232
|
) }),
|
|
2233
|
-
/* @__PURE__ */ o(
|
|
2234
|
-
/* @__PURE__ */ o(
|
|
2235
|
-
/* @__PURE__ */ e(
|
|
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" }),
|
|
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 mt = 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(
|
|
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)) })
|
|
2245
2245
|
}
|
|
2246
2246
|
),
|
|
2247
2247
|
l && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: l })
|
|
@@ -2253,14 +2253,14 @@ const mt = 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(
|
|
2256
|
+
children: /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(st, { children: a.map(
|
|
2257
2257
|
(u) => {
|
|
2258
2258
|
var f;
|
|
2259
|
-
return (f = u.children) != null && f.length ? /* @__PURE__ */ o(
|
|
2260
|
-
/* @__PURE__ */ e(
|
|
2261
|
-
/* @__PURE__ */ e(
|
|
2262
|
-
] }, u.id) : /* @__PURE__ */ e(
|
|
2263
|
-
|
|
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,
|
|
2264
2264
|
{
|
|
2265
2265
|
href: u.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)]",
|
|
@@ -2275,13 +2275,13 @@ const mt = w(
|
|
|
2275
2275
|
}
|
|
2276
2276
|
)
|
|
2277
2277
|
);
|
|
2278
|
-
|
|
2279
|
-
const
|
|
2280
|
-
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon:
|
|
2281
|
-
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon:
|
|
2282
|
-
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon:
|
|
2283
|
-
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon:
|
|
2284
|
-
],
|
|
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 = [
|
|
2285
2285
|
{
|
|
2286
2286
|
id: "catalogo",
|
|
2287
2287
|
title: "Catálogo",
|
|
@@ -2298,7 +2298,6 @@ const ft = [
|
|
|
2298
2298
|
title: "Editora",
|
|
2299
2299
|
links: [
|
|
2300
2300
|
{ label: "Autores", href: "/autores" },
|
|
2301
|
-
{ label: "LABBOOK", href: "/labbook" },
|
|
2302
2301
|
{ label: "Projetos", href: "/projetos" },
|
|
2303
2302
|
{ label: "Fale Conosco", href: "/editora/contato" },
|
|
2304
2303
|
{ label: "FAQ", href: "/editora/faq" }
|
|
@@ -2315,10 +2314,10 @@ const ft = [
|
|
|
2315
2314
|
]
|
|
2316
2315
|
}
|
|
2317
2316
|
];
|
|
2318
|
-
function
|
|
2317
|
+
function vt({ onSubmit: a }) {
|
|
2319
2318
|
const [t, r] = z(""), [s, l] = z(!1);
|
|
2320
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: [
|
|
2321
|
-
/* @__PURE__ */ e(
|
|
2320
|
+
/* @__PURE__ */ e(je, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
2322
2321
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
|
|
2323
2322
|
/* @__PURE__ */ e("p", { className: "mt-2 text-sm", style: { color: "rgba(255,255,255,0.85)" }, children: "Cadastre-se e fique por dentro dos lançamentos. Sem spam." }),
|
|
2324
2323
|
s ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (d) => {
|
|
@@ -2349,7 +2348,7 @@ function pt({ onSubmit: a }) {
|
|
|
2349
2348
|
] })
|
|
2350
2349
|
] }) });
|
|
2351
2350
|
}
|
|
2352
|
-
function
|
|
2351
|
+
function bt({ title: a, links: t }) {
|
|
2353
2352
|
const [r, s] = z(!1);
|
|
2354
2353
|
return /* @__PURE__ */ o("div", { className: "border-b border-[var(--border)] md:border-none", children: [
|
|
2355
2354
|
/* @__PURE__ */ o(
|
|
@@ -2362,7 +2361,7 @@ function vt({ title: a, links: t }) {
|
|
|
2362
2361
|
children: [
|
|
2363
2362
|
a,
|
|
2364
2363
|
/* @__PURE__ */ e(
|
|
2365
|
-
|
|
2364
|
+
O,
|
|
2366
2365
|
{
|
|
2367
2366
|
"aria-hidden": "true",
|
|
2368
2367
|
className: i("h-4 w-4 text-[var(--muted-foreground)] transition-transform duration-200", r && "rotate-180")
|
|
@@ -2392,20 +2391,20 @@ function vt({ title: a, links: t }) {
|
|
|
2392
2391
|
)
|
|
2393
2392
|
] });
|
|
2394
2393
|
}
|
|
2395
|
-
const
|
|
2394
|
+
const ht = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: s, appStoreUrl: l, orgInfo: n, className: d, ...m }) => {
|
|
2396
2395
|
const [u, f] = z("light");
|
|
2397
|
-
|
|
2398
|
-
const
|
|
2399
|
-
f(
|
|
2400
|
-
const
|
|
2401
|
-
f(
|
|
2396
|
+
A(() => {
|
|
2397
|
+
const k = document.documentElement;
|
|
2398
|
+
f(k.getAttribute("data-theme") ?? "light");
|
|
2399
|
+
const L = new MutationObserver(() => {
|
|
2400
|
+
f(k.getAttribute("data-theme") ?? "light");
|
|
2402
2401
|
});
|
|
2403
|
-
return
|
|
2402
|
+
return L.observe(k, { attributes: !0, attributeFilter: ["data-theme"] }), () => L.disconnect();
|
|
2404
2403
|
}, []);
|
|
2405
|
-
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",
|
|
2406
|
-
...
|
|
2407
|
-
href: (n == null ? void 0 : n[
|
|
2408
|
-
})).filter((
|
|
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) => ({
|
|
2405
|
+
...k,
|
|
2406
|
+
href: (n == null ? void 0 : n[k.key]) ?? k.href
|
|
2407
|
+
})).filter((k) => k.href), x = (n == null ? void 0 : n.email) ?? "contato@grupoeloediorial.com.br", 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);
|
|
2409
2408
|
return /* @__PURE__ */ o(
|
|
2410
2409
|
"footer",
|
|
2411
2410
|
{
|
|
@@ -2413,7 +2412,7 @@ const bt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2413
2412
|
"aria-label": "Rodapé do site",
|
|
2414
2413
|
...m,
|
|
2415
2414
|
children: [
|
|
2416
|
-
r !== void 0 ? r : /* @__PURE__ */ e(
|
|
2415
|
+
r !== void 0 ? r : /* @__PURE__ */ e(vt, { onSubmit: t }),
|
|
2417
2416
|
/* @__PURE__ */ o("div", { className: "mx-auto max-w-screen-xl px-4", children: [
|
|
2418
2417
|
/* @__PURE__ */ o("div", { className: "py-10 md:grid md:grid-cols-5 md:gap-8", children: [
|
|
2419
2418
|
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
@@ -2421,78 +2420,80 @@ const bt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2421
2420
|
"img",
|
|
2422
2421
|
{
|
|
2423
2422
|
src: v,
|
|
2424
|
-
alt:
|
|
2425
|
-
width: 120,
|
|
2426
|
-
height: 40,
|
|
2427
|
-
className: "h-10 w-auto object-contain"
|
|
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"
|
|
2428
2427
|
}
|
|
2429
2428
|
),
|
|
2430
2429
|
/* @__PURE__ */ o("div", { className: "mt-6 space-y-1 text-sm", children: [
|
|
2431
2430
|
/* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: "Atendimento:" }),
|
|
2432
|
-
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children:
|
|
2431
|
+
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: x }),
|
|
2433
2432
|
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: h }),
|
|
2434
2433
|
c && /* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: c })
|
|
2435
2434
|
] })
|
|
2436
2435
|
] }),
|
|
2437
|
-
|
|
2436
|
+
pt.map((k) => /* @__PURE__ */ e(bt, { title: k.title, links: k.links }, k.id)),
|
|
2438
2437
|
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
2439
|
-
/* @__PURE__ */
|
|
2440
|
-
|
|
2441
|
-
/* @__PURE__ */
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2438
|
+
j && /* @__PURE__ */ o(P, { children: [
|
|
2439
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Baixe nosso app" }),
|
|
2440
|
+
/* @__PURE__ */ o("div", { className: "mt-3 flex flex-col gap-2", children: [
|
|
2441
|
+
g && /* @__PURE__ */ e(
|
|
2442
|
+
"a",
|
|
2443
|
+
{
|
|
2444
|
+
href: s ?? "#",
|
|
2445
|
+
target: "_blank",
|
|
2446
|
+
rel: "noopener noreferrer",
|
|
2447
|
+
"aria-label": "Disponível no Google Play",
|
|
2448
|
+
className: "inline-block transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded-lg",
|
|
2449
|
+
children: /* @__PURE__ */ e(
|
|
2450
|
+
"img",
|
|
2451
|
+
{
|
|
2452
|
+
src: g,
|
|
2453
|
+
alt: "Disponível no Google Play",
|
|
2454
|
+
width: 135,
|
|
2455
|
+
height: 40,
|
|
2456
|
+
className: "h-10 w-[135px] object-contain"
|
|
2457
|
+
},
|
|
2458
|
+
g
|
|
2459
|
+
)
|
|
2460
|
+
}
|
|
2461
|
+
),
|
|
2462
|
+
N && /* @__PURE__ */ e(
|
|
2463
|
+
"a",
|
|
2464
|
+
{
|
|
2465
|
+
href: l ?? "#",
|
|
2466
|
+
target: "_blank",
|
|
2467
|
+
rel: "noopener noreferrer",
|
|
2468
|
+
"aria-label": "Disponível na App Store",
|
|
2469
|
+
className: "inline-block transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded-lg",
|
|
2470
|
+
children: /* @__PURE__ */ e(
|
|
2471
|
+
"img",
|
|
2472
|
+
{
|
|
2473
|
+
src: N,
|
|
2474
|
+
alt: "Disponível na App Store",
|
|
2475
|
+
width: 135,
|
|
2476
|
+
height: 40,
|
|
2477
|
+
className: "h-10 w-[135px] object-contain"
|
|
2478
|
+
},
|
|
2479
|
+
N
|
|
2480
|
+
)
|
|
2481
|
+
}
|
|
2482
|
+
)
|
|
2483
|
+
] })
|
|
2483
2484
|
] }),
|
|
2484
2485
|
/* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Compartilhe" }),
|
|
2485
|
-
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: b.map(({ label:
|
|
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
2487
|
"a",
|
|
2487
2488
|
{
|
|
2488
|
-
href:
|
|
2489
|
+
href: L,
|
|
2489
2490
|
target: "_blank",
|
|
2490
2491
|
rel: "noopener noreferrer",
|
|
2491
|
-
"aria-label":
|
|
2492
|
+
"aria-label": k,
|
|
2492
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)]",
|
|
2493
|
-
children: /* @__PURE__ */ e(
|
|
2494
|
+
children: /* @__PURE__ */ e(ee, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
2494
2495
|
},
|
|
2495
|
-
|
|
2496
|
+
k
|
|
2496
2497
|
)) })
|
|
2497
2498
|
] })
|
|
2498
2499
|
] }),
|
|
@@ -2513,8 +2514,8 @@ const bt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2513
2514
|
}
|
|
2514
2515
|
);
|
|
2515
2516
|
};
|
|
2516
|
-
|
|
2517
|
-
function
|
|
2517
|
+
ht.displayName = "Footer";
|
|
2518
|
+
function oa({ children: a, className: t }) {
|
|
2518
2519
|
return /* @__PURE__ */ e(
|
|
2519
2520
|
"div",
|
|
2520
2521
|
{
|
|
@@ -2527,7 +2528,7 @@ function ia({ children: a, className: t }) {
|
|
|
2527
2528
|
}
|
|
2528
2529
|
);
|
|
2529
2530
|
}
|
|
2530
|
-
const
|
|
2531
|
+
const xt = {
|
|
2531
2532
|
1: "col-span-1",
|
|
2532
2533
|
2: "col-span-2",
|
|
2533
2534
|
3: "col-span-3",
|
|
@@ -2535,77 +2536,77 @@ const ht = {
|
|
|
2535
2536
|
5: "col-span-5",
|
|
2536
2537
|
6: "col-span-6"
|
|
2537
2538
|
};
|
|
2538
|
-
function
|
|
2539
|
-
return /* @__PURE__ */ e("div", { "data-slot": "col", className: i("min-w-0", t &&
|
|
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 });
|
|
2540
2541
|
}
|
|
2541
2542
|
export {
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2543
|
+
qt as Accordion,
|
|
2544
|
+
Qt as AccordionContent,
|
|
2545
|
+
Gt as AccordionItem,
|
|
2546
|
+
Ht as AccordionTrigger,
|
|
2546
2547
|
Be as Avatar,
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
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,
|
|
2554
2555
|
S as Button,
|
|
2555
2556
|
Bt as Checkbox,
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
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,
|
|
2575
2576
|
Kt as Modal,
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2577
|
+
Fe as PriceDisplay,
|
|
2578
|
+
F as ProductCard,
|
|
2579
|
+
Qe as ProductGrid,
|
|
2580
|
+
ua as ProgressBar,
|
|
2581
|
+
Ie as QuantitySelector,
|
|
2581
2582
|
Lt as RadioGroup,
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2583
|
+
Et as RadioGroupItem,
|
|
2584
|
+
V as Rating,
|
|
2585
|
+
Ve as SearchBar,
|
|
2585
2586
|
Dt as Select,
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
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,
|
|
2595
2596
|
Ke as SheetTrigger,
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
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,
|
|
2607
2608
|
i as cn,
|
|
2608
2609
|
Le as spinnerVariants,
|
|
2609
|
-
|
|
2610
|
+
da as toast
|
|
2610
2611
|
};
|
|
2611
2612
|
//# sourceMappingURL=index.js.map
|