@grupo-elo-editorial/shared-ui-react 1.2.15 → 1.2.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/dist/components/prd/Footer.d.ts +3 -1
- package/dist/index.js +275 -275
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51,33 +51,33 @@ const Se = L(
|
|
|
51
51
|
variant: t,
|
|
52
52
|
size: r,
|
|
53
53
|
fullWidth: n,
|
|
54
|
-
isLoading:
|
|
54
|
+
isLoading: l,
|
|
55
55
|
leftIcon: c,
|
|
56
|
-
rightIcon:
|
|
57
|
-
children:
|
|
58
|
-
disabled:
|
|
59
|
-
...
|
|
60
|
-
},
|
|
56
|
+
rightIcon: s,
|
|
57
|
+
children: u,
|
|
58
|
+
disabled: m,
|
|
59
|
+
...g
|
|
60
|
+
}, f) => /* @__PURE__ */ e(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
63
|
className: o(Se({ variant: t, size: r, fullWidth: n, className: a })),
|
|
64
|
-
ref:
|
|
65
|
-
disabled:
|
|
66
|
-
...
|
|
67
|
-
children:
|
|
64
|
+
ref: f,
|
|
65
|
+
disabled: m || l,
|
|
66
|
+
...g,
|
|
67
|
+
children: l ? /* @__PURE__ */ i(P, { children: [
|
|
68
68
|
/* @__PURE__ */ e(V, { className: "h-4 w-4 animate-spin" }),
|
|
69
|
-
|
|
69
|
+
u && /* @__PURE__ */ e("span", { children: u })
|
|
70
70
|
] }) : /* @__PURE__ */ i(P, { children: [
|
|
71
71
|
c && /* @__PURE__ */ e("span", { className: "inline-flex", children: c }),
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
u,
|
|
73
|
+
s && /* @__PURE__ */ e("span", { className: "inline-flex", children: s })
|
|
74
74
|
] })
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
);
|
|
78
78
|
C.displayName = "Button";
|
|
79
79
|
const Ie = x(
|
|
80
|
-
({ className: a, error: t, helperText: r, ...n },
|
|
80
|
+
({ className: a, error: t, helperText: r, ...n }, l) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
"textarea",
|
|
83
83
|
{
|
|
@@ -90,7 +90,7 @@ const Ie = x(
|
|
|
90
90
|
t && "border-[var(--destructive)] focus-visible:ring-[var(--destructive)]",
|
|
91
91
|
a
|
|
92
92
|
),
|
|
93
|
-
ref:
|
|
93
|
+
ref: l,
|
|
94
94
|
...n
|
|
95
95
|
}
|
|
96
96
|
),
|
|
@@ -132,19 +132,19 @@ const je = L(
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
), A = x(
|
|
135
|
-
({ className: a, variant: t, size: r, icon: n, onRemove:
|
|
135
|
+
({ className: a, variant: t, size: r, icon: n, onRemove: l, children: c, ...s }, u) => /* @__PURE__ */ i(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
|
-
ref:
|
|
138
|
+
ref: u,
|
|
139
139
|
className: o(je({ variant: t, size: r }), a),
|
|
140
|
-
...
|
|
140
|
+
...s,
|
|
141
141
|
children: [
|
|
142
142
|
n && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: n }),
|
|
143
143
|
c,
|
|
144
|
-
|
|
144
|
+
l && /* @__PURE__ */ e(
|
|
145
145
|
"button",
|
|
146
146
|
{
|
|
147
|
-
onClick:
|
|
147
|
+
onClick: l,
|
|
148
148
|
className: "ml-1 inline-flex hover:opacity-70 focus:outline-none focus:ring-1 focus:ring-[var(--ring)] rounded-full",
|
|
149
149
|
"aria-label": "Remove",
|
|
150
150
|
children: "×"
|
|
@@ -171,8 +171,8 @@ const Me = L(
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
), De = x(
|
|
174
|
-
({ className: a, size: t, src: r, alt: n, name:
|
|
175
|
-
const [
|
|
174
|
+
({ className: a, size: t, src: r, alt: n, name: l, showStatus: c, statusType: s = "online", ...u }, m) => {
|
|
175
|
+
const [g, f] = k(!1), p = (h) => h.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2), b = {
|
|
176
176
|
online: "bg-[var(--success)]",
|
|
177
177
|
offline: "bg-[var(--muted-foreground)]",
|
|
178
178
|
away: "bg-[var(--warning)]",
|
|
@@ -183,26 +183,26 @@ const Me = L(
|
|
|
183
183
|
lg: "h-3 w-3 border-2",
|
|
184
184
|
xl: "h-4 w-4 border-2"
|
|
185
185
|
};
|
|
186
|
-
return /* @__PURE__ */ i("div", { ref:
|
|
187
|
-
r && !
|
|
186
|
+
return /* @__PURE__ */ i("div", { ref: m, className: o(Me({ size: t }), "relative", a), children: [
|
|
187
|
+
r && !g ? /* @__PURE__ */ e(
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
190
190
|
src: r,
|
|
191
|
-
alt: n ||
|
|
192
|
-
onError: () =>
|
|
191
|
+
alt: n || l || "Avatar",
|
|
192
|
+
onError: () => f(!0),
|
|
193
193
|
className: "h-full w-full object-cover",
|
|
194
|
-
...
|
|
194
|
+
...u
|
|
195
195
|
}
|
|
196
|
-
) :
|
|
196
|
+
) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children: p(l) }) : /* @__PURE__ */ e(ee, { className: "h-1/2 w-1/2" }),
|
|
197
197
|
c && /* @__PURE__ */ e(
|
|
198
198
|
"span",
|
|
199
199
|
{
|
|
200
200
|
className: o(
|
|
201
201
|
"absolute bottom-0 right-0 rounded-full border-[var(--background)]",
|
|
202
|
-
b[
|
|
202
|
+
b[s],
|
|
203
203
|
N[t || "md"]
|
|
204
204
|
),
|
|
205
|
-
"aria-label": `Status: ${
|
|
205
|
+
"aria-label": `Status: ${s}`
|
|
206
206
|
}
|
|
207
207
|
)
|
|
208
208
|
] });
|
|
@@ -222,10 +222,10 @@ const Le = L("animate-spin text-[var(--brand-primary)]", {
|
|
|
222
222
|
size: "md"
|
|
223
223
|
}
|
|
224
224
|
}), Pe = x(
|
|
225
|
-
({ className: a, size: t, label: r, ...n },
|
|
225
|
+
({ className: a, size: t, label: r, ...n }, l) => /* @__PURE__ */ i(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
228
|
-
ref:
|
|
228
|
+
ref: l,
|
|
229
229
|
role: "status",
|
|
230
230
|
"aria-label": r || "Loading",
|
|
231
231
|
className: o("inline-flex items-center justify-center", a),
|
|
@@ -239,8 +239,8 @@ const Le = L("animate-spin text-[var(--brand-primary)]", {
|
|
|
239
239
|
);
|
|
240
240
|
Pe.displayName = "Spinner";
|
|
241
241
|
const Ae = x(
|
|
242
|
-
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...
|
|
243
|
-
const
|
|
242
|
+
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...l }, c) => {
|
|
243
|
+
const s = {
|
|
244
244
|
solid: "border-solid",
|
|
245
245
|
dashed: "border-dashed",
|
|
246
246
|
dotted: "border-dotted"
|
|
@@ -252,9 +252,9 @@ const Ae = x(
|
|
|
252
252
|
ref: c,
|
|
253
253
|
className: o(
|
|
254
254
|
"flex-1 border-[var(--border)]",
|
|
255
|
-
|
|
255
|
+
s[r]
|
|
256
256
|
),
|
|
257
|
-
...
|
|
257
|
+
...l
|
|
258
258
|
}
|
|
259
259
|
),
|
|
260
260
|
/* @__PURE__ */ e("span", { className: "text-sm text-[var(--muted-foreground)]", children: n }),
|
|
@@ -263,7 +263,7 @@ const Ae = x(
|
|
|
263
263
|
{
|
|
264
264
|
className: o(
|
|
265
265
|
"flex-1 border-[var(--border)]",
|
|
266
|
-
|
|
266
|
+
s[r]
|
|
267
267
|
)
|
|
268
268
|
}
|
|
269
269
|
)
|
|
@@ -275,11 +275,11 @@ const Ae = x(
|
|
|
275
275
|
"aria-orientation": t,
|
|
276
276
|
className: o(
|
|
277
277
|
"border-[var(--border)]",
|
|
278
|
-
|
|
278
|
+
s[r],
|
|
279
279
|
t === "vertical" ? "h-full w-px border-l" : "w-full border-t my-4",
|
|
280
280
|
a
|
|
281
281
|
),
|
|
282
|
-
...
|
|
282
|
+
...l
|
|
283
283
|
}
|
|
284
284
|
);
|
|
285
285
|
}
|
|
@@ -291,26 +291,26 @@ const T = x(
|
|
|
291
291
|
value: t = 0,
|
|
292
292
|
maxRating: r = 5,
|
|
293
293
|
size: n = "md",
|
|
294
|
-
readonly:
|
|
294
|
+
readonly: l = !1,
|
|
295
295
|
onChange: c,
|
|
296
|
-
showValue:
|
|
297
|
-
...
|
|
298
|
-
},
|
|
299
|
-
const [
|
|
296
|
+
showValue: s = !1,
|
|
297
|
+
...u
|
|
298
|
+
}, m) => {
|
|
299
|
+
const [g, f] = k(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
|
-
!
|
|
305
|
-
}, N =
|
|
304
|
+
!l && c && c(h);
|
|
305
|
+
}, N = g || t;
|
|
306
306
|
return /* @__PURE__ */ i(
|
|
307
307
|
"div",
|
|
308
308
|
{
|
|
309
|
-
ref:
|
|
309
|
+
ref: m,
|
|
310
310
|
className: o("inline-flex items-center gap-1", a),
|
|
311
311
|
role: "group",
|
|
312
312
|
"aria-label": `Rating: ${t} out of ${r}`,
|
|
313
|
-
...
|
|
313
|
+
...u,
|
|
314
314
|
children: [
|
|
315
315
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (h, d) => d + 1).map((h) => {
|
|
316
316
|
const d = h <= N;
|
|
@@ -318,20 +318,20 @@ const T = x(
|
|
|
318
318
|
"button",
|
|
319
319
|
{
|
|
320
320
|
type: "button",
|
|
321
|
-
disabled:
|
|
321
|
+
disabled: l,
|
|
322
322
|
onClick: () => b(h),
|
|
323
|
-
onMouseEnter: () => !
|
|
324
|
-
onMouseLeave: () => !
|
|
323
|
+
onMouseEnter: () => !l && f(h),
|
|
324
|
+
onMouseLeave: () => !l && f(0),
|
|
325
325
|
className: o(
|
|
326
326
|
"transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-1 rounded",
|
|
327
|
-
|
|
327
|
+
l ? "cursor-default" : "cursor-pointer hover:scale-110"
|
|
328
328
|
),
|
|
329
329
|
"aria-label": `Rate ${h} out of ${r}`,
|
|
330
330
|
children: /* @__PURE__ */ e(
|
|
331
331
|
te,
|
|
332
332
|
{
|
|
333
333
|
className: o(
|
|
334
|
-
|
|
334
|
+
p[n],
|
|
335
335
|
"transition-all",
|
|
336
336
|
d ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
|
|
337
337
|
)
|
|
@@ -341,7 +341,7 @@ const T = x(
|
|
|
341
341
|
h
|
|
342
342
|
);
|
|
343
343
|
}) }),
|
|
344
|
-
|
|
344
|
+
s && /* @__PURE__ */ e("span", { className: "ml-1 text-sm font-medium text-[var(--foreground)]", children: t.toFixed(1) })
|
|
345
345
|
]
|
|
346
346
|
}
|
|
347
347
|
);
|
|
@@ -585,21 +585,21 @@ const $ = x(
|
|
|
585
585
|
image: t,
|
|
586
586
|
title: r,
|
|
587
587
|
author: n,
|
|
588
|
-
price:
|
|
588
|
+
price: l,
|
|
589
589
|
originalPrice: c,
|
|
590
|
-
rating:
|
|
591
|
-
reviewCount:
|
|
592
|
-
badge:
|
|
593
|
-
badgeVariant:
|
|
594
|
-
isSkeleton:
|
|
595
|
-
isOutOfStock:
|
|
590
|
+
rating: s,
|
|
591
|
+
reviewCount: u,
|
|
592
|
+
badge: m,
|
|
593
|
+
badgeVariant: g = "default",
|
|
594
|
+
isSkeleton: f = !1,
|
|
595
|
+
isOutOfStock: p = !1,
|
|
596
596
|
onAddToCart: b,
|
|
597
597
|
onToggleFavorite: N,
|
|
598
598
|
isFavorite: h = !1,
|
|
599
599
|
href: d,
|
|
600
600
|
orientation: v = "vertical",
|
|
601
601
|
...y
|
|
602
|
-
}, j) =>
|
|
602
|
+
}, j) => f ? /* @__PURE__ */ i(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
605
|
ref: j,
|
|
@@ -632,7 +632,7 @@ const $ = x(
|
|
|
632
632
|
ref: j,
|
|
633
633
|
className: o(
|
|
634
634
|
"group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
|
|
635
|
-
|
|
635
|
+
p && "opacity-60",
|
|
636
636
|
a
|
|
637
637
|
),
|
|
638
638
|
...y,
|
|
@@ -662,20 +662,20 @@ const $ = x(
|
|
|
662
662
|
}
|
|
663
663
|
) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-sm font-medium text-[var(--card-foreground)]", children: r }),
|
|
664
664
|
n && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: n }),
|
|
665
|
-
|
|
666
|
-
/* @__PURE__ */ e(T, { value:
|
|
667
|
-
|
|
665
|
+
s !== void 0 && /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
666
|
+
/* @__PURE__ */ e(T, { value: s, size: "sm", readonly: !0 }),
|
|
667
|
+
u !== void 0 && /* @__PURE__ */ i("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
|
|
668
668
|
"(",
|
|
669
|
-
|
|
669
|
+
u,
|
|
670
670
|
")"
|
|
671
671
|
] })
|
|
672
672
|
] }),
|
|
673
673
|
/* @__PURE__ */ i("div", { className: "flex items-baseline gap-2", children: [
|
|
674
674
|
/* @__PURE__ */ i("span", { className: "text-base font-bold text-[var(--foreground)]", children: [
|
|
675
675
|
"R$ ",
|
|
676
|
-
|
|
676
|
+
l.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
677
677
|
] }),
|
|
678
|
-
c && c >
|
|
678
|
+
c && c > l && /* @__PURE__ */ i("span", { className: "text-xs text-[var(--muted-foreground)] line-through", children: [
|
|
679
679
|
"R$ ",
|
|
680
680
|
c.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
681
681
|
] })
|
|
@@ -684,13 +684,13 @@ const $ = x(
|
|
|
684
684
|
C,
|
|
685
685
|
{
|
|
686
686
|
onClick: b,
|
|
687
|
-
disabled:
|
|
687
|
+
disabled: p,
|
|
688
688
|
variant: "primary",
|
|
689
689
|
size: "sm",
|
|
690
690
|
fullWidth: !0,
|
|
691
691
|
leftIcon: /* @__PURE__ */ e(_, { 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
|
] })
|
|
@@ -702,7 +702,7 @@ const $ = x(
|
|
|
702
702
|
ref: j,
|
|
703
703
|
className: o(
|
|
704
704
|
"group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
|
|
705
|
-
|
|
705
|
+
p && "opacity-60",
|
|
706
706
|
a
|
|
707
707
|
),
|
|
708
708
|
...y,
|
|
@@ -721,8 +721,8 @@ const $ = x(
|
|
|
721
721
|
className: "h-full w-full object-contain transition-transform group-hover:scale-105"
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
|
-
|
|
725
|
-
|
|
724
|
+
m && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(A, { variant: g, children: m }) }),
|
|
725
|
+
p && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(A, { variant: "danger", size: "lg", children: "Esgotado" }) })
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
),
|
|
@@ -753,20 +753,20 @@ const $ = x(
|
|
|
753
753
|
}
|
|
754
754
|
) : /* @__PURE__ */ e("h3", { className: "wrap-break-word text-base font-medium text-card-foreground", children: r }),
|
|
755
755
|
n && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: n }),
|
|
756
|
-
|
|
757
|
-
/* @__PURE__ */ e(T, { value:
|
|
758
|
-
|
|
756
|
+
s !== void 0 && /* @__PURE__ */ i("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
757
|
+
/* @__PURE__ */ e(T, { value: s, size: "sm", readonly: !0 }),
|
|
758
|
+
u !== void 0 && /* @__PURE__ */ i("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
759
759
|
"(",
|
|
760
|
-
|
|
760
|
+
u,
|
|
761
761
|
")"
|
|
762
762
|
] })
|
|
763
763
|
] }),
|
|
764
764
|
/* @__PURE__ */ i("div", { className: "mt-3 flex items-baseline gap-2", children: [
|
|
765
765
|
/* @__PURE__ */ i("span", { className: "text-xl font-bold text-[var(--foreground)]", children: [
|
|
766
766
|
"R$ ",
|
|
767
|
-
|
|
767
|
+
l.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
768
768
|
] }),
|
|
769
|
-
c && c >
|
|
769
|
+
c && c > l && /* @__PURE__ */ i("span", { className: "text-sm text-[var(--muted-foreground)] line-through", children: [
|
|
770
770
|
"R$ ",
|
|
771
771
|
c.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
772
772
|
] })
|
|
@@ -775,7 +775,7 @@ const $ = x(
|
|
|
775
775
|
C,
|
|
776
776
|
{
|
|
777
777
|
onClick: b,
|
|
778
|
-
disabled:
|
|
778
|
+
disabled: p,
|
|
779
779
|
variant: "primary",
|
|
780
780
|
size: "md",
|
|
781
781
|
fullWidth: !0,
|
|
@@ -786,7 +786,7 @@ const $ = x(
|
|
|
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
|
] })
|
|
@@ -801,21 +801,21 @@ const Ee = x(
|
|
|
801
801
|
onSearch: t,
|
|
802
802
|
onClear: r,
|
|
803
803
|
isLoading: n = !1,
|
|
804
|
-
size:
|
|
804
|
+
size: l = "md",
|
|
805
805
|
placeholder: c = "Buscar...",
|
|
806
|
-
value:
|
|
807
|
-
onChange:
|
|
808
|
-
...
|
|
809
|
-
},
|
|
810
|
-
const [
|
|
806
|
+
value: s,
|
|
807
|
+
onChange: u,
|
|
808
|
+
...m
|
|
809
|
+
}, g) => {
|
|
810
|
+
const [f, p] = k(""), b = s !== void 0 ? s : f, N = {
|
|
811
811
|
sm: "h-9 text-sm",
|
|
812
812
|
md: "h-11 text-base",
|
|
813
813
|
lg: "h-14 text-lg"
|
|
814
814
|
}, h = (y) => {
|
|
815
815
|
const j = y.target.value;
|
|
816
|
-
|
|
816
|
+
s === void 0 && p(j), u == null || u(y);
|
|
817
817
|
}, d = () => {
|
|
818
|
-
|
|
818
|
+
s === void 0 && p(""), r == null || r();
|
|
819
819
|
}, v = (y) => {
|
|
820
820
|
y.key === "Enter" && t && t(b);
|
|
821
821
|
};
|
|
@@ -824,7 +824,7 @@ const Ee = x(
|
|
|
824
824
|
/* @__PURE__ */ e(
|
|
825
825
|
"input",
|
|
826
826
|
{
|
|
827
|
-
ref:
|
|
827
|
+
ref: g,
|
|
828
828
|
type: "search",
|
|
829
829
|
value: b,
|
|
830
830
|
onChange: h,
|
|
@@ -835,9 +835,9 @@ const Ee = x(
|
|
|
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
|
-
N[
|
|
838
|
+
N[l]
|
|
839
839
|
),
|
|
840
|
-
...
|
|
840
|
+
...m
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
843
|
/* @__PURE__ */ i("div", { className: "absolute right-3 flex items-center gap-1", children: [
|
|
@@ -863,26 +863,26 @@ const Te = x(
|
|
|
863
863
|
price: t,
|
|
864
864
|
originalPrice: r,
|
|
865
865
|
currency: n = "R$",
|
|
866
|
-
size:
|
|
866
|
+
size: l = "md",
|
|
867
867
|
showDiscount: c = !0,
|
|
868
|
-
installments:
|
|
869
|
-
...
|
|
870
|
-
},
|
|
871
|
-
const
|
|
868
|
+
installments: s,
|
|
869
|
+
...u
|
|
870
|
+
}, m) => {
|
|
871
|
+
const g = r && r > t ? Math.round((r - t) / r * 100) : 0, f = {
|
|
872
872
|
sm: "text-base",
|
|
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",
|
|
880
880
|
xl: "text-xl"
|
|
881
881
|
};
|
|
882
|
-
return /* @__PURE__ */ i("div", { ref:
|
|
882
|
+
return /* @__PURE__ */ i("div", { ref: m, className: o("flex flex-col gap-1", a), ...u, children: [
|
|
883
883
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
884
884
|
/* @__PURE__ */ i("div", { className: "flex items-baseline gap-2", children: [
|
|
885
|
-
/* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]",
|
|
885
|
+
/* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", f[l]), children: [
|
|
886
886
|
n,
|
|
887
887
|
" ",
|
|
888
888
|
t.toFixed(2)
|
|
@@ -892,7 +892,7 @@ const Te = x(
|
|
|
892
892
|
{
|
|
893
893
|
className: o(
|
|
894
894
|
"text-[var(--muted-foreground)] line-through",
|
|
895
|
-
|
|
895
|
+
p[l]
|
|
896
896
|
),
|
|
897
897
|
children: [
|
|
898
898
|
n,
|
|
@@ -902,19 +902,19 @@ const Te = x(
|
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
c &&
|
|
905
|
+
c && g > 0 && /* @__PURE__ */ i(A, { variant: "success", size: "sm", children: [
|
|
906
906
|
"-",
|
|
907
|
-
|
|
907
|
+
g,
|
|
908
908
|
"%"
|
|
909
909
|
] })
|
|
910
910
|
] }),
|
|
911
|
-
|
|
911
|
+
s && /* @__PURE__ */ i("p", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
912
912
|
"ou ",
|
|
913
|
-
|
|
913
|
+
s.count,
|
|
914
914
|
"x de ",
|
|
915
915
|
n,
|
|
916
916
|
" ",
|
|
917
|
-
|
|
917
|
+
s.value.toFixed(2),
|
|
918
918
|
" sem juros"
|
|
919
919
|
] })
|
|
920
920
|
] });
|
|
@@ -927,19 +927,19 @@ const $e = x(
|
|
|
927
927
|
value: t,
|
|
928
928
|
min: r = 1,
|
|
929
929
|
max: n = 99,
|
|
930
|
-
onChange:
|
|
930
|
+
onChange: l,
|
|
931
931
|
size: c = "md",
|
|
932
|
-
disabled:
|
|
933
|
-
showLabel:
|
|
934
|
-
...
|
|
935
|
-
},
|
|
936
|
-
const
|
|
937
|
-
t < n &&
|
|
938
|
-
},
|
|
939
|
-
t > r &&
|
|
932
|
+
disabled: s = !1,
|
|
933
|
+
showLabel: u = !1,
|
|
934
|
+
...m
|
|
935
|
+
}, g) => {
|
|
936
|
+
const f = () => {
|
|
937
|
+
t < n && l(t + 1);
|
|
938
|
+
}, p = () => {
|
|
939
|
+
t > r && l(t - 1);
|
|
940
940
|
}, b = (d) => {
|
|
941
941
|
const v = parseInt(d.target.value);
|
|
942
|
-
!isNaN(v) && v >= r && v <= n &&
|
|
942
|
+
!isNaN(v) && v >= r && v <= n && l(v);
|
|
943
943
|
}, N = {
|
|
944
944
|
sm: "h-8 w-8",
|
|
945
945
|
md: "h-10 w-10",
|
|
@@ -949,8 +949,8 @@ const $e = x(
|
|
|
949
949
|
md: "h-10 w-14 text-base",
|
|
950
950
|
lg: "h-12 w-16 text-lg"
|
|
951
951
|
};
|
|
952
|
-
return /* @__PURE__ */ i("div", { ref:
|
|
953
|
-
|
|
952
|
+
return /* @__PURE__ */ i("div", { ref: g, className: o("inline-flex flex-col gap-1", a), ...m, children: [
|
|
953
|
+
u && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-[var(--foreground)]", children: "Quantidade" }),
|
|
954
954
|
/* @__PURE__ */ i("div", { className: "inline-flex items-center gap-2", children: [
|
|
955
955
|
/* @__PURE__ */ e(
|
|
956
956
|
C,
|
|
@@ -958,8 +958,8 @@ const $e = x(
|
|
|
958
958
|
type: "button",
|
|
959
959
|
variant: "secondary",
|
|
960
960
|
size: "sm",
|
|
961
|
-
onClick:
|
|
962
|
-
disabled:
|
|
961
|
+
onClick: p,
|
|
962
|
+
disabled: s || t <= r,
|
|
963
963
|
className: o(N[c], "p-0"),
|
|
964
964
|
"aria-label": "Decrease quantity",
|
|
965
965
|
children: /* @__PURE__ */ e(ne, { className: "h-4 w-4" })
|
|
@@ -973,7 +973,7 @@ const $e = x(
|
|
|
973
973
|
onChange: b,
|
|
974
974
|
min: r,
|
|
975
975
|
max: n,
|
|
976
|
-
disabled:
|
|
976
|
+
disabled: s,
|
|
977
977
|
className: o(
|
|
978
978
|
"rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] text-center font-medium transition-colors",
|
|
979
979
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
|
|
@@ -990,8 +990,8 @@ const $e = x(
|
|
|
990
990
|
type: "button",
|
|
991
991
|
variant: "secondary",
|
|
992
992
|
size: "sm",
|
|
993
|
-
onClick:
|
|
994
|
-
disabled:
|
|
993
|
+
onClick: f,
|
|
994
|
+
disabled: s || t >= n,
|
|
995
995
|
className: o(N[c], "p-0"),
|
|
996
996
|
"aria-label": "Increase quantity",
|
|
997
997
|
children: /* @__PURE__ */ e(se, { className: "h-4 w-4" })
|
|
@@ -1003,7 +1003,7 @@ const $e = x(
|
|
|
1003
1003
|
);
|
|
1004
1004
|
$e.displayName = "QuantitySelector";
|
|
1005
1005
|
const Be = x(
|
|
1006
|
-
({ className: a, label: t, htmlFor: r, required: n, error:
|
|
1006
|
+
({ className: a, label: t, htmlFor: r, required: n, error: l, helperText: c, children: s, ...u }, m) => /* @__PURE__ */ i("div", { ref: m, className: o("flex flex-col gap-1.5", a), ...u, children: [
|
|
1007
1007
|
t && /* @__PURE__ */ i(
|
|
1008
1008
|
"label",
|
|
1009
1009
|
{
|
|
@@ -1015,15 +1015,15 @@ const Be = x(
|
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
|
-
|
|
1019
|
-
(
|
|
1018
|
+
s,
|
|
1019
|
+
(l || c) && /* @__PURE__ */ e(
|
|
1020
1020
|
"p",
|
|
1021
1021
|
{
|
|
1022
1022
|
className: o(
|
|
1023
1023
|
"text-sm",
|
|
1024
|
-
|
|
1024
|
+
l ? "text-[var(--destructive)]" : "text-[var(--muted-foreground)]"
|
|
1025
1025
|
),
|
|
1026
|
-
children:
|
|
1026
|
+
children: l || c
|
|
1027
1027
|
}
|
|
1028
1028
|
)
|
|
1029
1029
|
] })
|
|
@@ -1205,17 +1205,17 @@ const Fe = x(
|
|
|
1205
1205
|
variant: t = "default",
|
|
1206
1206
|
title: r,
|
|
1207
1207
|
subtitle: n,
|
|
1208
|
-
description:
|
|
1208
|
+
description: l,
|
|
1209
1209
|
primaryCTA: c,
|
|
1210
|
-
secondaryCTA:
|
|
1211
|
-
backgroundImage:
|
|
1212
|
-
overlay:
|
|
1213
|
-
children:
|
|
1214
|
-
...
|
|
1215
|
-
},
|
|
1210
|
+
secondaryCTA: s,
|
|
1211
|
+
backgroundImage: u,
|
|
1212
|
+
overlay: m = !0,
|
|
1213
|
+
children: g,
|
|
1214
|
+
...f
|
|
1215
|
+
}, p) => /* @__PURE__ */ i(
|
|
1216
1216
|
"section",
|
|
1217
1217
|
{
|
|
1218
|
-
ref:
|
|
1218
|
+
ref: p,
|
|
1219
1219
|
className: o(
|
|
1220
1220
|
"relative flex min-h-[400px] w-full flex-col justify-center px-6 py-16 lg:px-12 lg:py-24",
|
|
1221
1221
|
{
|
|
@@ -1225,17 +1225,17 @@ const Fe = x(
|
|
|
1225
1225
|
}[t],
|
|
1226
1226
|
a
|
|
1227
1227
|
),
|
|
1228
|
-
...
|
|
1228
|
+
...f,
|
|
1229
1229
|
children: [
|
|
1230
|
-
|
|
1230
|
+
u && /* @__PURE__ */ i(P, { children: [
|
|
1231
1231
|
/* @__PURE__ */ e(
|
|
1232
1232
|
"div",
|
|
1233
1233
|
{
|
|
1234
1234
|
className: "absolute inset-0 bg-cover bg-center bg-no-repeat",
|
|
1235
|
-
style: { backgroundImage: `url(${
|
|
1235
|
+
style: { backgroundImage: `url(${u})` }
|
|
1236
1236
|
}
|
|
1237
1237
|
),
|
|
1238
|
-
|
|
1238
|
+
m && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-black/70 to-black/30" })
|
|
1239
1239
|
] }),
|
|
1240
1240
|
/* @__PURE__ */ i(
|
|
1241
1241
|
"div",
|
|
@@ -1251,7 +1251,7 @@ const Fe = x(
|
|
|
1251
1251
|
{
|
|
1252
1252
|
className: o(
|
|
1253
1253
|
"mb-4 text-sm font-semibold uppercase tracking-wider",
|
|
1254
|
-
|
|
1254
|
+
u ? "text-[var(--warning)]" : "text-[var(--brand-primary)]"
|
|
1255
1255
|
),
|
|
1256
1256
|
children: n
|
|
1257
1257
|
}
|
|
@@ -1261,22 +1261,22 @@ const Fe = x(
|
|
|
1261
1261
|
{
|
|
1262
1262
|
className: o(
|
|
1263
1263
|
"text-4xl font-bold leading-tight lg:text-5xl xl:text-6xl",
|
|
1264
|
-
|
|
1264
|
+
u ? "text-white" : "text-[var(--foreground)]"
|
|
1265
1265
|
),
|
|
1266
1266
|
children: r
|
|
1267
1267
|
}
|
|
1268
1268
|
),
|
|
1269
|
-
|
|
1269
|
+
l && /* @__PURE__ */ e(
|
|
1270
1270
|
"p",
|
|
1271
1271
|
{
|
|
1272
1272
|
className: o(
|
|
1273
1273
|
"mt-6 text-lg lg:text-xl",
|
|
1274
|
-
|
|
1274
|
+
u ? "text-gray-200" : "text-[var(--muted-foreground)]"
|
|
1275
1275
|
),
|
|
1276
|
-
children:
|
|
1276
|
+
children: l
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
(c ||
|
|
1279
|
+
(c || s) && /* @__PURE__ */ i("div", { className: "mt-8 flex flex-wrap gap-4", children: [
|
|
1280
1280
|
c && /* @__PURE__ */ e(
|
|
1281
1281
|
C,
|
|
1282
1282
|
{
|
|
@@ -1286,22 +1286,22 @@ const Fe = x(
|
|
|
1286
1286
|
children: c.label
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
|
-
|
|
1289
|
+
s && /* @__PURE__ */ e(
|
|
1290
1290
|
C,
|
|
1291
1291
|
{
|
|
1292
1292
|
size: "lg",
|
|
1293
|
-
onClick:
|
|
1293
|
+
onClick: s.onClick,
|
|
1294
1294
|
variant: "secondary",
|
|
1295
|
-
children:
|
|
1295
|
+
children: s.label
|
|
1296
1296
|
}
|
|
1297
1297
|
)
|
|
1298
1298
|
] })
|
|
1299
1299
|
] }),
|
|
1300
|
-
t === "split" &&
|
|
1300
|
+
t === "split" && g && /* @__PURE__ */ e("div", { className: "mt-8 lg:mt-0", children: g })
|
|
1301
1301
|
]
|
|
1302
1302
|
}
|
|
1303
1303
|
),
|
|
1304
|
-
t !== "split" &&
|
|
1304
|
+
t !== "split" && g && /* @__PURE__ */ e("div", { className: "relative z-10 mt-12 w-full max-w-7xl mx-auto", children: g })
|
|
1305
1305
|
]
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
@@ -1313,11 +1313,11 @@ const X = x(
|
|
|
1313
1313
|
variant: t = "default",
|
|
1314
1314
|
icon: r,
|
|
1315
1315
|
title: n,
|
|
1316
|
-
description:
|
|
1316
|
+
description: l,
|
|
1317
1317
|
action: c,
|
|
1318
|
-
...
|
|
1319
|
-
},
|
|
1320
|
-
const
|
|
1318
|
+
...s
|
|
1319
|
+
}, u) => {
|
|
1320
|
+
const g = r || {
|
|
1321
1321
|
default: /* @__PURE__ */ e(de, { className: "h-16 w-16" }),
|
|
1322
1322
|
search: /* @__PURE__ */ e(Q, { className: "h-16 w-16" }),
|
|
1323
1323
|
cart: /* @__PURE__ */ e(_, { className: "h-16 w-16" }),
|
|
@@ -1326,16 +1326,16 @@ const X = x(
|
|
|
1326
1326
|
return /* @__PURE__ */ i(
|
|
1327
1327
|
"div",
|
|
1328
1328
|
{
|
|
1329
|
-
ref:
|
|
1329
|
+
ref: u,
|
|
1330
1330
|
className: o(
|
|
1331
1331
|
"flex flex-col items-center justify-center py-16 px-6 text-center",
|
|
1332
1332
|
a
|
|
1333
1333
|
),
|
|
1334
|
-
...
|
|
1334
|
+
...s,
|
|
1335
1335
|
children: [
|
|
1336
|
-
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--muted)] p-6 text-[var(--muted-foreground)]", children:
|
|
1336
|
+
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--muted)] p-6 text-[var(--muted-foreground)]", children: g }),
|
|
1337
1337
|
/* @__PURE__ */ e("h3", { className: "mt-6 text-xl font-semibold text-[var(--foreground)]", children: n }),
|
|
1338
|
-
|
|
1338
|
+
l && /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: l }),
|
|
1339
1339
|
c && /* @__PURE__ */ e(
|
|
1340
1340
|
C,
|
|
1341
1341
|
{
|
|
@@ -1358,13 +1358,13 @@ const qe = x(
|
|
|
1358
1358
|
type: t = "generic",
|
|
1359
1359
|
title: r,
|
|
1360
1360
|
message: n,
|
|
1361
|
-
onRetry:
|
|
1361
|
+
onRetry: l,
|
|
1362
1362
|
onGoHome: c,
|
|
1363
|
-
showRetry:
|
|
1364
|
-
showHome:
|
|
1365
|
-
...
|
|
1366
|
-
},
|
|
1367
|
-
const
|
|
1363
|
+
showRetry: s = !0,
|
|
1364
|
+
showHome: u = !0,
|
|
1365
|
+
...m
|
|
1366
|
+
}, g) => {
|
|
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,37 +1385,37 @@ const qe = x(
|
|
|
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, N = n || p.message;
|
|
1389
1389
|
return /* @__PURE__ */ i(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
1392
|
-
ref:
|
|
1392
|
+
ref: g,
|
|
1393
1393
|
className: o(
|
|
1394
1394
|
"flex min-h-[500px] flex-col items-center justify-center py-16 px-6 text-center",
|
|
1395
1395
|
a
|
|
1396
1396
|
),
|
|
1397
1397
|
role: "alert",
|
|
1398
1398
|
"aria-live": "assertive",
|
|
1399
|
-
...
|
|
1399
|
+
...m,
|
|
1400
1400
|
children: [
|
|
1401
1401
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-4", children: [
|
|
1402
|
-
|
|
1402
|
+
p.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: p.code }),
|
|
1403
1403
|
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(ce, { className: "h-16 w-16" }) })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
/* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
|
|
1406
1406
|
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: N }),
|
|
1407
1407
|
/* @__PURE__ */ i("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
|
|
1408
|
-
|
|
1408
|
+
s && l && /* @__PURE__ */ e(
|
|
1409
1409
|
C,
|
|
1410
1410
|
{
|
|
1411
|
-
onClick:
|
|
1411
|
+
onClick: l,
|
|
1412
1412
|
variant: "primary",
|
|
1413
1413
|
size: "lg",
|
|
1414
1414
|
leftIcon: /* @__PURE__ */ e(ue, { className: "h-5 w-5" }),
|
|
1415
1415
|
children: "Tentar novamente"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
1418
|
-
|
|
1418
|
+
u && c && /* @__PURE__ */ e(
|
|
1419
1419
|
C,
|
|
1420
1420
|
{
|
|
1421
1421
|
onClick: c,
|
|
@@ -1438,28 +1438,28 @@ const He = x(
|
|
|
1438
1438
|
products: t,
|
|
1439
1439
|
columns: r = 4,
|
|
1440
1440
|
gap: n = "md",
|
|
1441
|
-
isLoading:
|
|
1441
|
+
isLoading: l = !1,
|
|
1442
1442
|
skeletonCount: c = 8,
|
|
1443
|
-
emptyStateMessage:
|
|
1444
|
-
onEmptyAction:
|
|
1445
|
-
...
|
|
1446
|
-
},
|
|
1447
|
-
const
|
|
1443
|
+
emptyStateMessage: s = "Nenhum produto encontrado",
|
|
1444
|
+
onEmptyAction: u,
|
|
1445
|
+
...m
|
|
1446
|
+
}, g) => {
|
|
1447
|
+
const f = {
|
|
1448
1448
|
sm: "gap-4",
|
|
1449
1449
|
md: "gap-6",
|
|
1450
1450
|
lg: "gap-8"
|
|
1451
1451
|
};
|
|
1452
|
-
return
|
|
1452
|
+
return l ? /* @__PURE__ */ e(
|
|
1453
1453
|
"div",
|
|
1454
1454
|
{
|
|
1455
|
-
ref:
|
|
1455
|
+
ref: g,
|
|
1456
1456
|
className: o(
|
|
1457
1457
|
"grid grid-cols-2 lg:grid-cols-4",
|
|
1458
|
-
|
|
1458
|
+
f[n],
|
|
1459
1459
|
a
|
|
1460
1460
|
),
|
|
1461
|
-
...
|
|
1462
|
-
children: Array.from({ length: c }).map((
|
|
1461
|
+
...m,
|
|
1462
|
+
children: Array.from({ length: c }).map((p, b) => /* @__PURE__ */ e(
|
|
1463
1463
|
$,
|
|
1464
1464
|
{
|
|
1465
1465
|
image: "",
|
|
@@ -1474,24 +1474,24 @@ const He = x(
|
|
|
1474
1474
|
X,
|
|
1475
1475
|
{
|
|
1476
1476
|
variant: "search",
|
|
1477
|
-
title:
|
|
1477
|
+
title: s,
|
|
1478
1478
|
description: "Tente ajustar seus filtros ou realizar uma nova busca",
|
|
1479
|
-
action:
|
|
1479
|
+
action: u ? {
|
|
1480
1480
|
label: "Limpar filtros",
|
|
1481
|
-
onClick:
|
|
1481
|
+
onClick: u
|
|
1482
1482
|
} : void 0
|
|
1483
1483
|
}
|
|
1484
1484
|
) : /* @__PURE__ */ e(
|
|
1485
1485
|
"div",
|
|
1486
1486
|
{
|
|
1487
|
-
ref:
|
|
1487
|
+
ref: g,
|
|
1488
1488
|
className: o(
|
|
1489
1489
|
"grid grid-cols-2 lg:grid-cols-4",
|
|
1490
|
-
|
|
1490
|
+
f[n],
|
|
1491
1491
|
a
|
|
1492
1492
|
),
|
|
1493
|
-
...
|
|
1494
|
-
children: t.map((
|
|
1493
|
+
...m,
|
|
1494
|
+
children: t.map((p, b) => /* @__PURE__ */ e($, { ...p }, b))
|
|
1495
1495
|
}
|
|
1496
1496
|
);
|
|
1497
1497
|
}
|
|
@@ -1728,30 +1728,30 @@ function et({ children: a, as: t = "div", className: r }) {
|
|
|
1728
1728
|
);
|
|
1729
1729
|
}
|
|
1730
1730
|
const tt = x(
|
|
1731
|
-
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...
|
|
1732
|
-
const [
|
|
1731
|
+
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...l }, c) => {
|
|
1732
|
+
const [s, u] = k("light"), [m, g] = k(16), [f, p] = k(!1);
|
|
1733
1733
|
M(() => {
|
|
1734
1734
|
const v = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
|
|
1735
|
-
|
|
1735
|
+
u(v);
|
|
1736
1736
|
const y = Number(localStorage.getItem("a11y-font-size"));
|
|
1737
|
-
Number.isFinite(y) && y > 0 &&
|
|
1737
|
+
Number.isFinite(y) && y > 0 && g(y);
|
|
1738
1738
|
}, []), M(() => {
|
|
1739
|
-
if (!
|
|
1739
|
+
if (!f && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
|
|
1740
1740
|
const v = document.createElement("script");
|
|
1741
1741
|
v.src = "https://vlibras.gov.br/app/vlibras-plugin.js", v.async = !0, v.onload = () => {
|
|
1742
|
-
|
|
1742
|
+
p(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
|
|
1743
1743
|
}, document.body.appendChild(v);
|
|
1744
1744
|
}
|
|
1745
|
-
}, [
|
|
1745
|
+
}, [f]);
|
|
1746
1746
|
const b = () => {
|
|
1747
|
-
const d =
|
|
1748
|
-
|
|
1747
|
+
const d = s === "light" ? "dark" : "light";
|
|
1748
|
+
u(d), document.documentElement.setAttribute("data-theme", d), localStorage.setItem("a11y-theme", d), t == null || t(d);
|
|
1749
1749
|
}, N = () => {
|
|
1750
|
-
const d = Math.min(
|
|
1751
|
-
|
|
1750
|
+
const d = Math.min(m + 2, 24);
|
|
1751
|
+
g(d), document.documentElement.style.setProperty("--font-size", `${d}px`), document.documentElement.style.fontSize = `${d}px`, localStorage.setItem("a11y-font-size", d.toString()), r == null || r(d);
|
|
1752
1752
|
}, h = () => {
|
|
1753
|
-
const d = Math.max(
|
|
1754
|
-
|
|
1753
|
+
const d = Math.max(m - 2, 12);
|
|
1754
|
+
g(d), document.documentElement.style.setProperty("--font-size", `${d}px`), document.documentElement.style.fontSize = `${d}px`, localStorage.setItem("a11y-font-size", d.toString()), r == null || r(d);
|
|
1755
1755
|
};
|
|
1756
1756
|
return /* @__PURE__ */ e(
|
|
1757
1757
|
"div",
|
|
@@ -1763,7 +1763,7 @@ const tt = x(
|
|
|
1763
1763
|
),
|
|
1764
1764
|
role: "toolbar",
|
|
1765
1765
|
"aria-label": "Ferramentas de acessibilidade",
|
|
1766
|
-
...
|
|
1766
|
+
...l,
|
|
1767
1767
|
children: /* @__PURE__ */ i(et, { className: "py-2 flex items-center justify-between", children: [
|
|
1768
1768
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-sm text-[var(--muted-foreground)]", children: [
|
|
1769
1769
|
/* @__PURE__ */ e(fe, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
|
|
@@ -1784,7 +1784,7 @@ const tt = x(
|
|
|
1784
1784
|
{
|
|
1785
1785
|
type: "button",
|
|
1786
1786
|
onClick: h,
|
|
1787
|
-
disabled:
|
|
1787
|
+
disabled: m <= 12,
|
|
1788
1788
|
"aria-label": "Diminuir tamanho da fonte",
|
|
1789
1789
|
className: o(
|
|
1790
1790
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
@@ -1800,7 +1800,7 @@ const tt = x(
|
|
|
1800
1800
|
{
|
|
1801
1801
|
type: "button",
|
|
1802
1802
|
onClick: N,
|
|
1803
|
-
disabled:
|
|
1803
|
+
disabled: m >= 24,
|
|
1804
1804
|
"aria-label": "Aumentar tamanho da fonte",
|
|
1805
1805
|
className: o(
|
|
1806
1806
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
@@ -1816,29 +1816,29 @@ const tt = x(
|
|
|
1816
1816
|
{
|
|
1817
1817
|
type: "button",
|
|
1818
1818
|
onClick: b,
|
|
1819
|
-
"aria-label":
|
|
1819
|
+
"aria-label": s === "light" ? "Ativar modo escuro" : "Ativar modo claro",
|
|
1820
1820
|
className: o(
|
|
1821
1821
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1822
1822
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
|
|
1823
1823
|
),
|
|
1824
|
-
children:
|
|
1824
|
+
children: s === "light" ? /* @__PURE__ */ e(ve, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
|
|
1825
1825
|
}
|
|
1826
1826
|
),
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
1828
|
"button",
|
|
1829
1829
|
{
|
|
1830
1830
|
type: "button",
|
|
1831
|
-
onClick: () =>
|
|
1831
|
+
onClick: () => p((d) => !d),
|
|
1832
1832
|
"aria-label": "Ativar VLibras",
|
|
1833
|
-
"aria-pressed":
|
|
1833
|
+
"aria-pressed": f,
|
|
1834
1834
|
className: o(
|
|
1835
1835
|
"px-3 py-1 text-xs font-medium rounded-md transition-colors",
|
|
1836
1836
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
|
|
1837
1837
|
),
|
|
1838
1838
|
style: {
|
|
1839
|
-
backgroundColor:
|
|
1840
|
-
color:
|
|
1841
|
-
border:
|
|
1839
|
+
backgroundColor: f ? "var(--primary)" : "transparent",
|
|
1840
|
+
color: f ? "var(--primary-foreground)" : "var(--muted-foreground)",
|
|
1841
|
+
border: f ? "none" : "1px solid var(--border)"
|
|
1842
1842
|
},
|
|
1843
1843
|
children: "VLibras"
|
|
1844
1844
|
}
|
|
@@ -1856,47 +1856,47 @@ const at = x(
|
|
|
1856
1856
|
slides: t,
|
|
1857
1857
|
autoplayDelay: r = 5e3,
|
|
1858
1858
|
autoplay: n = !0,
|
|
1859
|
-
...
|
|
1859
|
+
...l
|
|
1860
1860
|
}, c) => {
|
|
1861
|
-
const [
|
|
1861
|
+
const [s, u] = k(0), [m, g] = k(!1), [f, p] = k(!1);
|
|
1862
1862
|
M(() => {
|
|
1863
1863
|
const d = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
1864
|
-
|
|
1864
|
+
p(d.matches);
|
|
1865
1865
|
const v = (y) => {
|
|
1866
|
-
|
|
1866
|
+
p(y.matches);
|
|
1867
1867
|
};
|
|
1868
1868
|
return d.addEventListener("change", v), () => d.removeEventListener("change", v);
|
|
1869
1869
|
}, []), M(() => {
|
|
1870
|
-
if (!n ||
|
|
1870
|
+
if (!n || m || f) return;
|
|
1871
1871
|
const d = setInterval(() => {
|
|
1872
|
-
|
|
1872
|
+
u((v) => (v + 1) % t.length);
|
|
1873
1873
|
}, r);
|
|
1874
1874
|
return () => clearInterval(d);
|
|
1875
|
-
}, [n, r, t.length,
|
|
1875
|
+
}, [n, r, t.length, m, f]);
|
|
1876
1876
|
const b = (d) => {
|
|
1877
|
-
|
|
1877
|
+
u(d), g(!0), setTimeout(() => g(!1), r);
|
|
1878
1878
|
}, N = () => {
|
|
1879
|
-
b((
|
|
1879
|
+
b((s - 1 + t.length) % t.length);
|
|
1880
1880
|
}, h = () => {
|
|
1881
|
-
b((
|
|
1881
|
+
b((s + 1) % t.length);
|
|
1882
1882
|
};
|
|
1883
|
-
return t.length === 0 ? null : (t[
|
|
1883
|
+
return t.length === 0 ? null : (t[s], /* @__PURE__ */ i(
|
|
1884
1884
|
"div",
|
|
1885
1885
|
{
|
|
1886
1886
|
ref: c,
|
|
1887
1887
|
className: o("relative w-full overflow-hidden", a),
|
|
1888
|
-
onMouseEnter: () =>
|
|
1889
|
-
onMouseLeave: () =>
|
|
1890
|
-
...
|
|
1888
|
+
onMouseEnter: () => g(!0),
|
|
1889
|
+
onMouseLeave: () => g(!1),
|
|
1890
|
+
...l,
|
|
1891
1891
|
children: [
|
|
1892
1892
|
/* @__PURE__ */ e("div", { className: "relative", children: t.map((d, v) => /* @__PURE__ */ i(
|
|
1893
1893
|
"div",
|
|
1894
1894
|
{
|
|
1895
1895
|
className: o(
|
|
1896
1896
|
"w-full transition-opacity duration-700",
|
|
1897
|
-
v ===
|
|
1897
|
+
v === s ? "block" : "hidden"
|
|
1898
1898
|
),
|
|
1899
|
-
"aria-hidden": v !==
|
|
1899
|
+
"aria-hidden": v !== s,
|
|
1900
1900
|
children: [
|
|
1901
1901
|
/* @__PURE__ */ i("picture", { children: [
|
|
1902
1902
|
/* @__PURE__ */ e(
|
|
@@ -1966,10 +1966,10 @@ const at = x(
|
|
|
1966
1966
|
onClick: () => b(v),
|
|
1967
1967
|
className: o(
|
|
1968
1968
|
"h-2 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[24px] flex items-center justify-center",
|
|
1969
|
-
v ===
|
|
1969
|
+
v === s ? "w-8 bg-white" : "w-2 bg-white/50 hover:bg-white/70"
|
|
1970
1970
|
),
|
|
1971
1971
|
"aria-label": `Ir para slide ${v + 1}`,
|
|
1972
|
-
"aria-current": v ===
|
|
1972
|
+
"aria-current": v === s
|
|
1973
1973
|
},
|
|
1974
1974
|
v
|
|
1975
1975
|
)) })
|
|
@@ -2168,7 +2168,7 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2168
2168
|
type: "button",
|
|
2169
2169
|
"aria-expanded": r,
|
|
2170
2170
|
"aria-controls": `mobile-nav-${a.id}`,
|
|
2171
|
-
onClick: () => n((
|
|
2171
|
+
onClick: () => n((s) => !s),
|
|
2172
2172
|
className: o(
|
|
2173
2173
|
"flex min-h-[44px] w-full items-center justify-between rounded py-2 text-sm font-medium text-[var(--foreground)] hover:text-[var(--brand-primary)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
2174
2174
|
t > 0 && "pl-4"
|
|
@@ -2193,21 +2193,21 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2193
2193
|
{
|
|
2194
2194
|
id: `mobile-nav-${a.id}`,
|
|
2195
2195
|
className: "mb-1 ml-2 border-l-2 border-[var(--border)] pl-3",
|
|
2196
|
-
children: a.children.map((
|
|
2196
|
+
children: a.children.map((s) => /* @__PURE__ */ e(Y, { item: s, depth: t + 1 }, s.id))
|
|
2197
2197
|
}
|
|
2198
2198
|
)
|
|
2199
2199
|
] });
|
|
2200
2200
|
}
|
|
2201
2201
|
const ct = x(
|
|
2202
|
-
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter:
|
|
2202
|
+
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: l, className: c, ...s }, u) => /* @__PURE__ */ e(
|
|
2203
2203
|
"header",
|
|
2204
2204
|
{
|
|
2205
|
-
ref:
|
|
2205
|
+
ref: u,
|
|
2206
2206
|
className: o(
|
|
2207
2207
|
"sticky top-0 z-40 border-b border-[var(--border)] bg-[var(--card)]",
|
|
2208
2208
|
c
|
|
2209
2209
|
),
|
|
2210
|
-
...
|
|
2210
|
+
...s,
|
|
2211
2211
|
children: /* @__PURE__ */ i("div", { className: "px-4", children: [
|
|
2212
2212
|
/* @__PURE__ */ i("div", { className: "flex items-center py-3 gap-4", children: [
|
|
2213
2213
|
t && /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: t }),
|
|
@@ -2235,10 +2235,10 @@ const ct = x(
|
|
|
2235
2235
|
{
|
|
2236
2236
|
"aria-label": "Menu principal",
|
|
2237
2237
|
className: "flex-1 overflow-y-auto px-5 py-3",
|
|
2238
|
-
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((
|
|
2238
|
+
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((m) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Y, { item: m }) }, m.id)) })
|
|
2239
2239
|
}
|
|
2240
2240
|
),
|
|
2241
|
-
|
|
2241
|
+
l && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: l })
|
|
2242
2242
|
] })
|
|
2243
2243
|
] })
|
|
2244
2244
|
] }),
|
|
@@ -2248,19 +2248,19 @@ const ct = x(
|
|
|
2248
2248
|
"aria-label": "Menu principal",
|
|
2249
2249
|
className: "hidden border-t border-[var(--border)] py-2 md:flex",
|
|
2250
2250
|
children: /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(ot, { children: a.map(
|
|
2251
|
-
(
|
|
2252
|
-
var
|
|
2253
|
-
return (
|
|
2254
|
-
/* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children:
|
|
2255
|
-
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items:
|
|
2256
|
-
] },
|
|
2251
|
+
(m) => {
|
|
2252
|
+
var g;
|
|
2253
|
+
return (g = m.children) != null && g.length ? /* @__PURE__ */ i(G, { children: [
|
|
2254
|
+
/* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: m.label }),
|
|
2255
|
+
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items: m.children }) })
|
|
2256
|
+
] }, m.id) : /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
|
|
2257
2257
|
B,
|
|
2258
2258
|
{
|
|
2259
|
-
href:
|
|
2259
|
+
href: m.href ?? "#",
|
|
2260
2260
|
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)]",
|
|
2261
|
-
children:
|
|
2261
|
+
children: m.label
|
|
2262
2262
|
}
|
|
2263
|
-
) },
|
|
2263
|
+
) }, m.id);
|
|
2264
2264
|
}
|
|
2265
2265
|
) }) })
|
|
2266
2266
|
}
|
|
@@ -2310,13 +2310,13 @@ const ut = [
|
|
|
2310
2310
|
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ke }
|
|
2311
2311
|
];
|
|
2312
2312
|
function ft({ onSubmit: a }) {
|
|
2313
|
-
const [t, r] = k(""), [n,
|
|
2314
|
-
return /* @__PURE__ */ e("div", { className: "bg-[var(--brand-primary)] py-10", children: /* @__PURE__ */ i("div", { className: "mx-auto max-w-lg px-
|
|
2313
|
+
const [t, r] = k(""), [n, l] = k(!1);
|
|
2314
|
+
return /* @__PURE__ */ e("div", { className: "mx-auto w-full bg-[var(--brand-primary)] py-8 md:py-10 lg:py-12", style: { maxWidth: "var(--container-max)" }, children: /* @__PURE__ */ i("div", { className: "mx-auto max-w-lg px-[var(--container-px)] text-center", children: [
|
|
2315
2315
|
/* @__PURE__ */ e(ze, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
2316
2316
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
|
|
2317
2317
|
/* @__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." }),
|
|
2318
|
-
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ i("form", { onSubmit: (
|
|
2319
|
-
|
|
2318
|
+
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ i("form", { onSubmit: (s) => {
|
|
2319
|
+
s.preventDefault(), t && (a == null || a(t), l(!0), r(""));
|
|
2320
2320
|
}, className: "mt-6 flex flex-col gap-2 sm:flex-row", children: [
|
|
2321
2321
|
/* @__PURE__ */ e("label", { htmlFor: "footer-newsletter-email", className: "sr-only", children: "Seu e-mail" }),
|
|
2322
2322
|
/* @__PURE__ */ e(
|
|
@@ -2326,7 +2326,7 @@ function ft({ onSubmit: a }) {
|
|
|
2326
2326
|
type: "email",
|
|
2327
2327
|
required: !0,
|
|
2328
2328
|
value: t,
|
|
2329
|
-
onChange: (
|
|
2329
|
+
onChange: (s) => r(s.target.value),
|
|
2330
2330
|
placeholder: "Seu melhor e-mail",
|
|
2331
2331
|
className: "min-h-[44px] flex-1 rounded-lg border border-white px-4 text-sm text-[#1a1e2e] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-white"
|
|
2332
2332
|
}
|
|
@@ -2351,7 +2351,7 @@ function gt({ title: a, links: t }) {
|
|
|
2351
2351
|
{
|
|
2352
2352
|
type: "button",
|
|
2353
2353
|
"aria-expanded": r,
|
|
2354
|
-
onClick: () => n((
|
|
2354
|
+
onClick: () => n((l) => !l),
|
|
2355
2355
|
className: "flex w-full items-center justify-between py-4 text-left text-sm font-semibold text-[var(--foreground)] md:hidden",
|
|
2356
2356
|
children: [
|
|
2357
2357
|
a,
|
|
@@ -2374,62 +2374,62 @@ function gt({ title: a, links: t }) {
|
|
|
2374
2374
|
r ? "max-h-96 pb-4" : "max-h-0 md:max-h-none"
|
|
2375
2375
|
),
|
|
2376
2376
|
role: "list",
|
|
2377
|
-
children: t.map((
|
|
2377
|
+
children: t.map((l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
2378
2378
|
"a",
|
|
2379
2379
|
{
|
|
2380
|
-
href:
|
|
2380
|
+
href: l.href,
|
|
2381
2381
|
className: "text-sm text-[var(--muted-foreground)] transition-colors hover:text-[var(--brand-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded",
|
|
2382
|
-
children:
|
|
2382
|
+
children: l.label
|
|
2383
2383
|
}
|
|
2384
|
-
) },
|
|
2384
|
+
) }, l.label))
|
|
2385
2385
|
}
|
|
2386
2386
|
)
|
|
2387
2387
|
] });
|
|
2388
2388
|
}
|
|
2389
|
-
const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t,
|
|
2390
|
-
const [
|
|
2389
|
+
const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, className: n, ...l }) => {
|
|
2390
|
+
const [c, s] = k("light");
|
|
2391
2391
|
M(() => {
|
|
2392
|
-
const
|
|
2393
|
-
|
|
2392
|
+
const f = document.documentElement;
|
|
2393
|
+
s(f.getAttribute("data-theme") ?? "light");
|
|
2394
2394
|
const p = new MutationObserver(() => {
|
|
2395
|
-
|
|
2395
|
+
s(f.getAttribute("data-theme") ?? "light");
|
|
2396
2396
|
});
|
|
2397
|
-
return p.observe(
|
|
2397
|
+
return p.observe(f, { attributes: !0, attributeFilter: ["data-theme"] }), () => p.disconnect();
|
|
2398
2398
|
}, []);
|
|
2399
|
-
const
|
|
2399
|
+
const u = a === "perabook" ? c === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : c === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", m = a === "perabook" ? "PeraBook" : "Elo Editora", g = a === "perabook" ? "Educação socioemocional e diversidade cultural" : "Literatura infantojuvenil que transforma vidas";
|
|
2400
2400
|
return /* @__PURE__ */ i(
|
|
2401
2401
|
"footer",
|
|
2402
2402
|
{
|
|
2403
|
-
className: o("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]",
|
|
2403
|
+
className: o("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]", n),
|
|
2404
2404
|
"aria-label": "Rodapé do site",
|
|
2405
|
-
...
|
|
2405
|
+
...l,
|
|
2406
2406
|
children: [
|
|
2407
|
-
/* @__PURE__ */ e(ft, { onSubmit: t }),
|
|
2407
|
+
r !== void 0 ? r : /* @__PURE__ */ e(ft, { onSubmit: t }),
|
|
2408
2408
|
/* @__PURE__ */ i("div", { className: "mx-auto max-w-screen-xl px-4", children: [
|
|
2409
2409
|
/* @__PURE__ */ i("div", { className: "py-10 md:grid md:grid-cols-4 md:gap-8", children: [
|
|
2410
2410
|
/* @__PURE__ */ i("div", { className: "mb-8 md:mb-0", children: [
|
|
2411
2411
|
/* @__PURE__ */ e(
|
|
2412
2412
|
"img",
|
|
2413
2413
|
{
|
|
2414
|
-
src:
|
|
2414
|
+
src: u,
|
|
2415
2415
|
alt: m,
|
|
2416
2416
|
width: 120,
|
|
2417
2417
|
height: 40,
|
|
2418
2418
|
className: "h-10 w-auto object-contain"
|
|
2419
2419
|
}
|
|
2420
2420
|
),
|
|
2421
|
-
/* @__PURE__ */ e("p", { className: "mt-3 max-w-xs text-sm text-[var(--muted-foreground)]", children:
|
|
2422
|
-
/* @__PURE__ */ e("div", { className: "mt-6 flex flex-wrap gap-2", "aria-label": "Redes sociais", children: mt.map(({ label:
|
|
2421
|
+
/* @__PURE__ */ e("p", { className: "mt-3 max-w-xs text-sm text-[var(--muted-foreground)]", children: g }),
|
|
2422
|
+
/* @__PURE__ */ e("div", { className: "mt-6 flex flex-wrap gap-2", "aria-label": "Redes sociais", children: mt.map(({ label: f, href: p, Icon: b }) => /* @__PURE__ */ e(
|
|
2423
2423
|
"a",
|
|
2424
2424
|
{
|
|
2425
2425
|
href: p,
|
|
2426
2426
|
target: "_blank",
|
|
2427
2427
|
rel: "noopener noreferrer",
|
|
2428
|
-
"aria-label":
|
|
2428
|
+
"aria-label": f,
|
|
2429
2429
|
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)]",
|
|
2430
|
-
children: /* @__PURE__ */ e(
|
|
2430
|
+
children: /* @__PURE__ */ e(b, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
2431
2431
|
},
|
|
2432
|
-
|
|
2432
|
+
f
|
|
2433
2433
|
)) }),
|
|
2434
2434
|
/* @__PURE__ */ i("div", { className: "mt-6 space-y-1 text-sm", children: [
|
|
2435
2435
|
/* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: "Atendimento:" }),
|
|
@@ -2437,7 +2437,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
|
|
|
2437
2437
|
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: "(11) 3000-0000" })
|
|
2438
2438
|
] })
|
|
2439
2439
|
] }),
|
|
2440
|
-
ut.map((
|
|
2440
|
+
ut.map((f) => /* @__PURE__ */ e(gt, { title: f.title, links: f.links }, f.id))
|
|
2441
2441
|
] }),
|
|
2442
2442
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-2 border-t border-[var(--border)] py-6 text-xs text-[var(--muted-foreground)] sm:flex-row sm:items-center sm:justify-between", children: [
|
|
2443
2443
|
/* @__PURE__ */ i("p", { children: [
|