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