@grupo-elo-editorial/shared-ui-react 1.3.8 → 1.3.9
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 +12 -1
- package/dist/index.js +556 -552
- 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 Z } from "clsx";
|
|
3
3
|
import { twMerge as J } from "tailwind-merge";
|
|
4
|
-
import { jsx as e, jsxs as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as
|
|
7
|
-
import { cva as
|
|
4
|
+
import { jsx as e, jsxs as o, Fragment as P } from "react/jsx-runtime";
|
|
5
|
+
import { forwardRef as w, useState as k, useEffect as M } from "react";
|
|
6
|
+
import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as _, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as E, Heart as ie, Search as Q, X as oe, Minus as ne, Plus as se, ChevronRight as W, FileX as le, Package as de, AlertCircle as ce, RefreshCw as ue, Home as me, XIcon as O, Accessibility as fe, ZoomOut as ge, ZoomIn as pe, Moon as ve, Sun as be, ChevronLeft as he, Menu as xe, ChevronDown as K, Instagram as Ne, Facebook as we, Youtube as ye, Linkedin as ke, Mail as ze } from "lucide-react";
|
|
7
|
+
import { cva as I } from "class-variance-authority";
|
|
8
8
|
import * as z from "@radix-ui/react-select";
|
|
9
9
|
import * as F from "@radix-ui/react-checkbox";
|
|
10
|
-
import * as
|
|
10
|
+
import * as R from "@radix-ui/react-radio-group";
|
|
11
11
|
import * as q from "@radix-ui/react-switch";
|
|
12
12
|
import { Slot as Ce } from "@radix-ui/react-slot";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as A from "@radix-ui/react-accordion";
|
|
14
|
+
import * as j from "@radix-ui/react-tooltip";
|
|
15
15
|
import { toast as na } from "sonner";
|
|
16
16
|
import { Progress as la } from "@radix-ui/react-progress";
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
function
|
|
17
|
+
import * as y from "@radix-ui/react-dialog";
|
|
18
|
+
import * as D from "@radix-ui/react-navigation-menu";
|
|
19
|
+
function i(...a) {
|
|
20
20
|
return J(Z(a));
|
|
21
21
|
}
|
|
22
|
-
const Se =
|
|
22
|
+
const Se = I(
|
|
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,43 +45,43 @@ const Se = P(
|
|
|
45
45
|
size: "md"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
), C =
|
|
48
|
+
), C = w(
|
|
49
49
|
({
|
|
50
50
|
className: a,
|
|
51
51
|
variant: t,
|
|
52
52
|
size: r,
|
|
53
53
|
fullWidth: n,
|
|
54
54
|
isLoading: s,
|
|
55
|
-
leftIcon:
|
|
55
|
+
leftIcon: d,
|
|
56
56
|
rightIcon: l,
|
|
57
|
-
children:
|
|
58
|
-
disabled:
|
|
57
|
+
children: m,
|
|
58
|
+
disabled: f,
|
|
59
59
|
...g
|
|
60
60
|
}, v) => /* @__PURE__ */ e(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
|
-
className:
|
|
63
|
+
className: i(Se({ variant: t, size: r, fullWidth: n, className: a })),
|
|
64
64
|
ref: v,
|
|
65
|
-
disabled:
|
|
65
|
+
disabled: f || s,
|
|
66
66
|
...g,
|
|
67
|
-
children: s ? /* @__PURE__ */
|
|
67
|
+
children: s ? /* @__PURE__ */ o(P, { children: [
|
|
68
68
|
/* @__PURE__ */ e(V, { className: "h-4 w-4 animate-spin" }),
|
|
69
|
-
|
|
70
|
-
] }) : /* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
m && /* @__PURE__ */ e("span", { children: m })
|
|
70
|
+
] }) : /* @__PURE__ */ o(P, { children: [
|
|
71
|
+
d && /* @__PURE__ */ e("span", { className: "inline-flex", children: d }),
|
|
72
|
+
m,
|
|
73
73
|
l && /* @__PURE__ */ e("span", { className: "inline-flex", children: l })
|
|
74
74
|
] })
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
);
|
|
78
78
|
C.displayName = "Button";
|
|
79
|
-
const
|
|
80
|
-
({ className: a, error: t, helperText: r, ...n }, s) => /* @__PURE__ */
|
|
79
|
+
const De = w(
|
|
80
|
+
({ className: a, error: t, helperText: r, ...n }, s) => /* @__PURE__ */ o("div", { className: "w-full", children: [
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
"textarea",
|
|
83
83
|
{
|
|
84
|
-
className:
|
|
84
|
+
className: i(
|
|
85
85
|
"flex min-h-[80px] w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] px-3 py-2 text-base transition-colors",
|
|
86
86
|
"placeholder:text-[var(--muted-foreground)]",
|
|
87
87
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
|
|
@@ -97,7 +97,7 @@ const Ie = N(
|
|
|
97
97
|
r && /* @__PURE__ */ e(
|
|
98
98
|
"p",
|
|
99
99
|
{
|
|
100
|
-
className:
|
|
100
|
+
className: i(
|
|
101
101
|
"mt-1.5 text-sm",
|
|
102
102
|
t ? "text-[var(--destructive)]" : "text-[var(--muted-foreground)]"
|
|
103
103
|
),
|
|
@@ -106,8 +106,8 @@ const Ie = N(
|
|
|
106
106
|
)
|
|
107
107
|
] })
|
|
108
108
|
);
|
|
109
|
-
|
|
110
|
-
const je =
|
|
109
|
+
De.displayName = "Textarea";
|
|
110
|
+
const je = I(
|
|
111
111
|
"inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
@@ -131,16 +131,16 @@ const je = P(
|
|
|
131
131
|
size: "md"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
),
|
|
135
|
-
({ className: a, variant: t, size: r, icon: n, onRemove: s, children:
|
|
134
|
+
), L = w(
|
|
135
|
+
({ className: a, variant: t, size: r, icon: n, onRemove: s, children: d, ...l }, m) => /* @__PURE__ */ o(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
|
-
ref:
|
|
139
|
-
className:
|
|
138
|
+
ref: m,
|
|
139
|
+
className: i(je({ variant: t, size: r }), a),
|
|
140
140
|
...l,
|
|
141
141
|
children: [
|
|
142
142
|
n && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: n }),
|
|
143
|
-
|
|
143
|
+
d,
|
|
144
144
|
s && /* @__PURE__ */ e(
|
|
145
145
|
"button",
|
|
146
146
|
{
|
|
@@ -154,8 +154,8 @@ const je = P(
|
|
|
154
154
|
}
|
|
155
155
|
)
|
|
156
156
|
);
|
|
157
|
-
|
|
158
|
-
const
|
|
157
|
+
L.displayName = "Badge";
|
|
158
|
+
const Me = I(
|
|
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,9 +170,9 @@ const De = P(
|
|
|
170
170
|
size: "md"
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
),
|
|
174
|
-
({ className: a, size: t, src: r, alt: n, name: s, showStatus:
|
|
175
|
-
const [g, v] = k(!1),
|
|
173
|
+
), Ae = w(
|
|
174
|
+
({ className: a, size: t, src: r, alt: n, name: s, showStatus: d, statusType: l = "online", ...m }, f) => {
|
|
175
|
+
const [g, v] = k(!1), p = (h) => h.split(" ").map((c) => c[0]).join("").toUpperCase().slice(0, 2), b = {
|
|
176
176
|
online: "bg-[var(--success)]",
|
|
177
177
|
offline: "bg-[var(--muted-foreground)]",
|
|
178
178
|
away: "bg-[var(--warning)]",
|
|
@@ -183,7 +183,7 @@ const De = P(
|
|
|
183
183
|
lg: "h-3 w-3 border-2",
|
|
184
184
|
xl: "h-4 w-4 border-2"
|
|
185
185
|
};
|
|
186
|
-
return /* @__PURE__ */
|
|
186
|
+
return /* @__PURE__ */ o("div", { ref: f, className: i(Me({ size: t }), "relative", a), children: [
|
|
187
187
|
r && !g ? /* @__PURE__ */ e(
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
@@ -191,13 +191,13 @@ const De = P(
|
|
|
191
191
|
alt: n || s || "Avatar",
|
|
192
192
|
onError: () => v(!0),
|
|
193
193
|
className: "h-full w-full object-cover",
|
|
194
|
-
...
|
|
194
|
+
...m
|
|
195
195
|
}
|
|
196
|
-
) : s ? /* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
197
|
-
|
|
196
|
+
) : s ? /* @__PURE__ */ e("span", { className: "font-medium", children: p(s) }) : /* @__PURE__ */ e(ee, { className: "h-1/2 w-1/2" }),
|
|
197
|
+
d && /* @__PURE__ */ e(
|
|
198
198
|
"span",
|
|
199
199
|
{
|
|
200
|
-
className:
|
|
200
|
+
className: i(
|
|
201
201
|
"absolute bottom-0 right-0 rounded-full border-[var(--background)]",
|
|
202
202
|
b[l],
|
|
203
203
|
x[t || "md"]
|
|
@@ -208,8 +208,8 @@ const De = P(
|
|
|
208
208
|
] });
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
|
-
|
|
212
|
-
const
|
|
211
|
+
Ae.displayName = "Avatar";
|
|
212
|
+
const Ie = I("animate-spin text-[var(--brand-primary)]", {
|
|
213
213
|
variants: {
|
|
214
214
|
size: {
|
|
215
215
|
sm: "h-4 w-4",
|
|
@@ -221,36 +221,36 @@ const Pe = P("animate-spin text-[var(--brand-primary)]", {
|
|
|
221
221
|
defaultVariants: {
|
|
222
222
|
size: "md"
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
225
|
-
({ className: a, size: t, label: r, ...n }, s) => /* @__PURE__ */
|
|
224
|
+
}), Pe = w(
|
|
225
|
+
({ className: a, size: t, label: r, ...n }, s) => /* @__PURE__ */ o(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
228
228
|
ref: s,
|
|
229
229
|
role: "status",
|
|
230
230
|
"aria-label": r || "Loading",
|
|
231
|
-
className:
|
|
231
|
+
className: i("inline-flex items-center justify-center", a),
|
|
232
232
|
...n,
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */ e(V, { className:
|
|
234
|
+
/* @__PURE__ */ e(V, { className: i(Ie({ size: t })) }),
|
|
235
235
|
/* @__PURE__ */ e("span", { className: "sr-only", children: r || "Loading" })
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
)
|
|
239
239
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...s },
|
|
240
|
+
Pe.displayName = "Spinner";
|
|
241
|
+
const Le = w(
|
|
242
|
+
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...s }, d) => {
|
|
243
243
|
const l = {
|
|
244
244
|
solid: "border-solid",
|
|
245
245
|
dashed: "border-dashed",
|
|
246
246
|
dotted: "border-dotted"
|
|
247
247
|
};
|
|
248
|
-
return n && t === "horizontal" ? /* @__PURE__ */
|
|
248
|
+
return n && t === "horizontal" ? /* @__PURE__ */ o("div", { className: i("flex items-center gap-4 my-4", a), role: "separator", children: [
|
|
249
249
|
/* @__PURE__ */ e(
|
|
250
250
|
"hr",
|
|
251
251
|
{
|
|
252
|
-
ref:
|
|
253
|
-
className:
|
|
252
|
+
ref: d,
|
|
253
|
+
className: i(
|
|
254
254
|
"flex-1 border-[var(--border)]",
|
|
255
255
|
l[r]
|
|
256
256
|
),
|
|
@@ -261,7 +261,7 @@ const _e = N(
|
|
|
261
261
|
/* @__PURE__ */ e(
|
|
262
262
|
"hr",
|
|
263
263
|
{
|
|
264
|
-
className:
|
|
264
|
+
className: i(
|
|
265
265
|
"flex-1 border-[var(--border)]",
|
|
266
266
|
l[r]
|
|
267
267
|
)
|
|
@@ -270,10 +270,10 @@ const _e = N(
|
|
|
270
270
|
] }) : /* @__PURE__ */ e(
|
|
271
271
|
"hr",
|
|
272
272
|
{
|
|
273
|
-
ref:
|
|
273
|
+
ref: d,
|
|
274
274
|
role: "separator",
|
|
275
275
|
"aria-orientation": t,
|
|
276
|
-
className:
|
|
276
|
+
className: i(
|
|
277
277
|
"border-[var(--border)]",
|
|
278
278
|
l[r],
|
|
279
279
|
t === "vertical" ? "h-full w-px border-l" : "w-full border-t my-4",
|
|
@@ -284,36 +284,36 @@ const _e = N(
|
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
|
-
|
|
288
|
-
const
|
|
287
|
+
Le.displayName = "Divider";
|
|
288
|
+
const T = w(
|
|
289
289
|
({
|
|
290
290
|
className: a,
|
|
291
291
|
value: t = 0,
|
|
292
292
|
maxRating: r = 5,
|
|
293
293
|
size: n = "md",
|
|
294
294
|
readonly: s = !1,
|
|
295
|
-
onChange:
|
|
295
|
+
onChange: d,
|
|
296
296
|
showValue: l = !1,
|
|
297
|
-
...
|
|
298
|
-
},
|
|
299
|
-
const [g, v] = k(0),
|
|
297
|
+
...m
|
|
298
|
+
}, f) => {
|
|
299
|
+
const [g, v] = 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
|
-
!s &&
|
|
304
|
+
!s && d && d(h);
|
|
305
305
|
}, x = g || t;
|
|
306
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ o(
|
|
307
307
|
"div",
|
|
308
308
|
{
|
|
309
|
-
ref:
|
|
310
|
-
className:
|
|
309
|
+
ref: f,
|
|
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
|
+
...m,
|
|
314
314
|
children: [
|
|
315
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (h,
|
|
316
|
-
const
|
|
315
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (h, c) => c + 1).map((h) => {
|
|
316
|
+
const c = h <= x;
|
|
317
317
|
return /* @__PURE__ */ e(
|
|
318
318
|
"button",
|
|
319
319
|
{
|
|
@@ -322,7 +322,7 @@ const E = N(
|
|
|
322
322
|
onClick: () => b(h),
|
|
323
323
|
onMouseEnter: () => !s && v(h),
|
|
324
324
|
onMouseLeave: () => !s && v(0),
|
|
325
|
-
className:
|
|
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
|
s ? "cursor-default" : "cursor-pointer hover:scale-110"
|
|
328
328
|
),
|
|
@@ -330,10 +330,10 @@ const E = N(
|
|
|
330
330
|
children: /* @__PURE__ */ e(
|
|
331
331
|
te,
|
|
332
332
|
{
|
|
333
|
-
className:
|
|
334
|
-
|
|
333
|
+
className: i(
|
|
334
|
+
p[n],
|
|
335
335
|
"transition-all",
|
|
336
|
-
|
|
336
|
+
c ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
|
|
337
337
|
)
|
|
338
338
|
}
|
|
339
339
|
)
|
|
@@ -347,14 +347,14 @@ const E = N(
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
|
-
|
|
350
|
+
T.displayName = "Rating";
|
|
351
351
|
function zt({ className: a, type: t, ...r }) {
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"input",
|
|
354
354
|
{
|
|
355
355
|
type: t,
|
|
356
356
|
"data-slot": "input",
|
|
357
|
-
className:
|
|
357
|
+
className: i(
|
|
358
358
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
359
359
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
360
360
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -374,25 +374,25 @@ function St({
|
|
|
374
374
|
}) {
|
|
375
375
|
return /* @__PURE__ */ e(z.Value, { "data-slot": "select-value", ...a });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Dt({
|
|
378
378
|
className: a,
|
|
379
379
|
size: t = "default",
|
|
380
380
|
children: r,
|
|
381
381
|
...n
|
|
382
382
|
}) {
|
|
383
|
-
return /* @__PURE__ */
|
|
383
|
+
return /* @__PURE__ */ o(
|
|
384
384
|
z.Trigger,
|
|
385
385
|
{
|
|
386
386
|
"data-slot": "select-trigger",
|
|
387
387
|
"data-size": t,
|
|
388
|
-
className:
|
|
388
|
+
className: i(
|
|
389
389
|
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-input-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
390
390
|
a
|
|
391
391
|
),
|
|
392
392
|
...n,
|
|
393
393
|
children: [
|
|
394
394
|
r,
|
|
395
|
-
/* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(_, { className: "size-4 opacity-50" }) })
|
|
396
396
|
]
|
|
397
397
|
}
|
|
398
398
|
);
|
|
@@ -403,11 +403,11 @@ function jt({
|
|
|
403
403
|
position: r = "popper",
|
|
404
404
|
...n
|
|
405
405
|
}) {
|
|
406
|
-
return /* @__PURE__ */ e(z.Portal, { children: /* @__PURE__ */
|
|
406
|
+
return /* @__PURE__ */ e(z.Portal, { children: /* @__PURE__ */ o(
|
|
407
407
|
z.Content,
|
|
408
408
|
{
|
|
409
409
|
"data-slot": "select-content",
|
|
410
|
-
className:
|
|
410
|
+
className: i(
|
|
411
411
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
412
412
|
r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
413
413
|
a
|
|
@@ -415,32 +415,32 @@ function jt({
|
|
|
415
415
|
position: r,
|
|
416
416
|
...n,
|
|
417
417
|
children: [
|
|
418
|
-
/* @__PURE__ */ e(
|
|
418
|
+
/* @__PURE__ */ e(_e, {}),
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
420
|
z.Viewport,
|
|
421
421
|
{
|
|
422
|
-
className:
|
|
422
|
+
className: i(
|
|
423
423
|
"p-1",
|
|
424
424
|
r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
425
425
|
),
|
|
426
426
|
children: t
|
|
427
427
|
}
|
|
428
428
|
),
|
|
429
|
-
/* @__PURE__ */ e(
|
|
429
|
+
/* @__PURE__ */ e(Ee, {})
|
|
430
430
|
]
|
|
431
431
|
}
|
|
432
432
|
) });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Mt({
|
|
435
435
|
className: a,
|
|
436
436
|
children: t,
|
|
437
437
|
...r
|
|
438
438
|
}) {
|
|
439
|
-
return /* @__PURE__ */
|
|
439
|
+
return /* @__PURE__ */ o(
|
|
440
440
|
z.Item,
|
|
441
441
|
{
|
|
442
442
|
"data-slot": "select-item",
|
|
443
|
-
className:
|
|
443
|
+
className: i(
|
|
444
444
|
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
445
445
|
a
|
|
446
446
|
),
|
|
@@ -452,7 +452,7 @@ function Dt({
|
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function _e({
|
|
456
456
|
className: a,
|
|
457
457
|
...t
|
|
458
458
|
}) {
|
|
@@ -460,7 +460,7 @@ function Le({
|
|
|
460
460
|
z.ScrollUpButton,
|
|
461
461
|
{
|
|
462
462
|
"data-slot": "select-scroll-up-button",
|
|
463
|
-
className:
|
|
463
|
+
className: i(
|
|
464
464
|
"flex cursor-default items-center justify-center py-1",
|
|
465
465
|
a
|
|
466
466
|
),
|
|
@@ -469,7 +469,7 @@ function Le({
|
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function Ee({
|
|
473
473
|
className: a,
|
|
474
474
|
...t
|
|
475
475
|
}) {
|
|
@@ -477,16 +477,16 @@ function Re({
|
|
|
477
477
|
z.ScrollDownButton,
|
|
478
478
|
{
|
|
479
479
|
"data-slot": "select-scroll-down-button",
|
|
480
|
-
className:
|
|
480
|
+
className: i(
|
|
481
481
|
"flex cursor-default items-center justify-center py-1",
|
|
482
482
|
a
|
|
483
483
|
),
|
|
484
484
|
...t,
|
|
485
|
-
children: /* @__PURE__ */ e(
|
|
485
|
+
children: /* @__PURE__ */ e(_, { className: "size-4" })
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function At({
|
|
490
490
|
className: a,
|
|
491
491
|
...t
|
|
492
492
|
}) {
|
|
@@ -494,7 +494,7 @@ function Mt({
|
|
|
494
494
|
F.Root,
|
|
495
495
|
{
|
|
496
496
|
"data-slot": "checkbox",
|
|
497
|
-
className:
|
|
497
|
+
className: i(
|
|
498
498
|
"peer border bg-input-background dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
499
499
|
a
|
|
500
500
|
),
|
|
@@ -510,34 +510,34 @@ function Mt({
|
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function It({
|
|
514
514
|
className: a,
|
|
515
515
|
...t
|
|
516
516
|
}) {
|
|
517
517
|
return /* @__PURE__ */ e(
|
|
518
|
-
|
|
518
|
+
R.Root,
|
|
519
519
|
{
|
|
520
520
|
"data-slot": "radio-group",
|
|
521
|
-
className:
|
|
521
|
+
className: i("grid gap-3", a),
|
|
522
522
|
...t
|
|
523
523
|
}
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Pt({
|
|
527
527
|
className: a,
|
|
528
528
|
...t
|
|
529
529
|
}) {
|
|
530
530
|
return /* @__PURE__ */ e(
|
|
531
|
-
|
|
531
|
+
R.Item,
|
|
532
532
|
{
|
|
533
533
|
"data-slot": "radio-group-item",
|
|
534
|
-
className:
|
|
534
|
+
className: i(
|
|
535
535
|
"border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
536
536
|
a
|
|
537
537
|
),
|
|
538
538
|
...t,
|
|
539
539
|
children: /* @__PURE__ */ e(
|
|
540
|
-
|
|
540
|
+
R.Indicator,
|
|
541
541
|
{
|
|
542
542
|
"data-slot": "radio-group-indicator",
|
|
543
543
|
className: "relative flex items-center justify-center",
|
|
@@ -547,7 +547,7 @@ function At({
|
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Lt({
|
|
551
551
|
className: a,
|
|
552
552
|
...t
|
|
553
553
|
}) {
|
|
@@ -555,7 +555,7 @@ function _t({
|
|
|
555
555
|
q.Root,
|
|
556
556
|
{
|
|
557
557
|
"data-slot": "switch",
|
|
558
|
-
className:
|
|
558
|
+
className: i(
|
|
559
559
|
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-background focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
560
560
|
a
|
|
561
561
|
),
|
|
@@ -564,7 +564,7 @@ function _t({
|
|
|
564
564
|
q.Thumb,
|
|
565
565
|
{
|
|
566
566
|
"data-slot": "switch-thumb",
|
|
567
|
-
className:
|
|
567
|
+
className: i(
|
|
568
568
|
"bg-card dark:data-[state=unchecked]:bg-card-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
569
569
|
)
|
|
570
570
|
}
|
|
@@ -579,68 +579,68 @@ function G({
|
|
|
579
579
|
}) {
|
|
580
580
|
return a ? /* @__PURE__ */ e("a", { href: a, className: t, tabIndex: -1, "aria-hidden": "true", children: r }) : /* @__PURE__ */ e("div", { className: t, children: r });
|
|
581
581
|
}
|
|
582
|
-
const
|
|
582
|
+
const B = w(
|
|
583
583
|
({
|
|
584
584
|
className: a,
|
|
585
585
|
image: t,
|
|
586
586
|
title: r,
|
|
587
587
|
author: n,
|
|
588
588
|
price: s,
|
|
589
|
-
originalPrice:
|
|
589
|
+
originalPrice: d,
|
|
590
590
|
rating: l,
|
|
591
|
-
reviewCount:
|
|
592
|
-
badge:
|
|
591
|
+
reviewCount: m,
|
|
592
|
+
badge: f,
|
|
593
593
|
badgeVariant: g = "default",
|
|
594
594
|
isSkeleton: v = !1,
|
|
595
|
-
isOutOfStock:
|
|
595
|
+
isOutOfStock: p = !1,
|
|
596
596
|
onAddToCart: b,
|
|
597
597
|
onToggleFavorite: x,
|
|
598
598
|
isFavorite: h = !1,
|
|
599
|
-
href:
|
|
600
|
-
orientation:
|
|
601
|
-
...
|
|
602
|
-
},
|
|
599
|
+
href: c,
|
|
600
|
+
orientation: u = "vertical",
|
|
601
|
+
...N
|
|
602
|
+
}, S) => v ? /* @__PURE__ */ o(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
|
-
ref:
|
|
606
|
-
className:
|
|
605
|
+
ref: S,
|
|
606
|
+
className: i(
|
|
607
607
|
"flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
|
|
608
|
-
|
|
608
|
+
u === "horizontal" ? "flex-row gap-3" : "flex-col",
|
|
609
609
|
a
|
|
610
610
|
),
|
|
611
|
-
...
|
|
611
|
+
...N,
|
|
612
612
|
children: [
|
|
613
613
|
/* @__PURE__ */ e(
|
|
614
614
|
"div",
|
|
615
615
|
{
|
|
616
|
-
className:
|
|
616
|
+
className: i(
|
|
617
617
|
"rounded-lg bg-[var(--muted)]",
|
|
618
|
-
|
|
618
|
+
u === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
),
|
|
622
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ o("div", { className: i("flex flex-col gap-2", u === "horizontal" ? "flex-1" : "mt-3"), children: [
|
|
623
623
|
/* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded bg-[var(--muted)]" }),
|
|
624
624
|
/* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded bg-[var(--muted)]" }),
|
|
625
625
|
/* @__PURE__ */ e("div", { className: "h-10 w-full rounded bg-[var(--muted)]" })
|
|
626
626
|
] })
|
|
627
627
|
]
|
|
628
628
|
}
|
|
629
|
-
) :
|
|
629
|
+
) : u === "horizontal" ? /* @__PURE__ */ o(
|
|
630
630
|
"div",
|
|
631
631
|
{
|
|
632
|
-
ref:
|
|
633
|
-
className:
|
|
632
|
+
ref: S,
|
|
633
|
+
className: i(
|
|
634
634
|
"group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
|
|
635
|
-
|
|
635
|
+
p && "opacity-60",
|
|
636
636
|
a
|
|
637
637
|
),
|
|
638
|
-
...
|
|
638
|
+
...N,
|
|
639
639
|
children: [
|
|
640
640
|
/* @__PURE__ */ e(
|
|
641
641
|
G,
|
|
642
642
|
{
|
|
643
|
-
href:
|
|
643
|
+
href: c,
|
|
644
644
|
className: "block h-24 w-20 shrink-0 overflow-hidden rounded-lg",
|
|
645
645
|
children: /* @__PURE__ */ e(
|
|
646
646
|
"img",
|
|
@@ -652,65 +652,65 @@ const T = N(
|
|
|
652
652
|
)
|
|
653
653
|
}
|
|
654
654
|
),
|
|
655
|
-
/* @__PURE__ */
|
|
656
|
-
|
|
655
|
+
/* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
656
|
+
c ? /* @__PURE__ */ e(
|
|
657
657
|
"a",
|
|
658
658
|
{
|
|
659
|
-
href:
|
|
659
|
+
href: c,
|
|
660
660
|
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",
|
|
661
661
|
children: r
|
|
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
|
-
l !== void 0 && /* @__PURE__ */
|
|
666
|
-
/* @__PURE__ */ e(
|
|
667
|
-
|
|
665
|
+
l !== void 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
|
|
666
|
+
/* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
|
|
667
|
+
m !== void 0 && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
|
|
668
668
|
"(",
|
|
669
|
-
|
|
669
|
+
m,
|
|
670
670
|
")"
|
|
671
671
|
] })
|
|
672
672
|
] }),
|
|
673
|
-
/* @__PURE__ */
|
|
674
|
-
/* @__PURE__ */
|
|
673
|
+
/* @__PURE__ */ o("div", { className: "flex items-baseline gap-2", children: [
|
|
674
|
+
/* @__PURE__ */ o("span", { className: "text-base font-bold text-[var(--foreground)]", children: [
|
|
675
675
|
"R$ ",
|
|
676
676
|
s.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
677
677
|
] }),
|
|
678
|
-
|
|
678
|
+
d && d > s && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)] line-through", children: [
|
|
679
679
|
"R$ ",
|
|
680
|
-
|
|
680
|
+
d.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
681
681
|
] })
|
|
682
682
|
] }),
|
|
683
683
|
b && /* @__PURE__ */ e(
|
|
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
|
-
leftIcon: /* @__PURE__ */ e(
|
|
691
|
+
leftIcon: /* @__PURE__ */ e(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
|
] })
|
|
697
697
|
]
|
|
698
698
|
}
|
|
699
|
-
) : /* @__PURE__ */
|
|
699
|
+
) : /* @__PURE__ */ o(
|
|
700
700
|
"div",
|
|
701
701
|
{
|
|
702
|
-
ref:
|
|
703
|
-
className:
|
|
702
|
+
ref: S,
|
|
703
|
+
className: i(
|
|
704
704
|
"group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
|
|
705
|
-
|
|
705
|
+
p && "opacity-60",
|
|
706
706
|
a
|
|
707
707
|
),
|
|
708
|
-
...
|
|
708
|
+
...N,
|
|
709
709
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ o(
|
|
711
711
|
G,
|
|
712
712
|
{
|
|
713
|
-
href:
|
|
713
|
+
href: c,
|
|
714
714
|
className: "relative block w-full aspect-square overflow-hidden rounded-t-lg",
|
|
715
715
|
children: [
|
|
716
716
|
/* @__PURE__ */ e(
|
|
@@ -721,8 +721,8 @@ const T = N(
|
|
|
721
721
|
className: "h-full w-full object-contain transition-transform group-hover:scale-105"
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
|
-
|
|
725
|
-
|
|
724
|
+
f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(L, { variant: g, children: f }) }),
|
|
725
|
+
p && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(L, { variant: "danger", size: "lg", children: "Esgotado" }) })
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
),
|
|
@@ -733,9 +733,9 @@ const T = N(
|
|
|
733
733
|
className: "absolute right-3 top-3 rounded-full bg-white/90 p-2 transition-all hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
734
734
|
"aria-label": h ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
735
735
|
children: /* @__PURE__ */ e(
|
|
736
|
-
|
|
736
|
+
ie,
|
|
737
737
|
{
|
|
738
|
-
className:
|
|
738
|
+
className: i(
|
|
739
739
|
"h-5 w-5",
|
|
740
740
|
h ? "fill-[var(--destructive)] text-[var(--destructive)]" : "text-[var(--foreground)]"
|
|
741
741
|
)
|
|
@@ -743,50 +743,50 @@ const T = N(
|
|
|
743
743
|
)
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
|
|
746
|
+
/* @__PURE__ */ o("div", { className: "flex flex-1 flex-col p-4", children: [
|
|
747
|
+
c ? /* @__PURE__ */ e(
|
|
748
748
|
"a",
|
|
749
749
|
{
|
|
750
|
-
href:
|
|
750
|
+
href: c,
|
|
751
751
|
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",
|
|
752
752
|
children: r
|
|
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
|
-
l !== void 0 && /* @__PURE__ */
|
|
757
|
-
/* @__PURE__ */ e(
|
|
758
|
-
|
|
756
|
+
l !== void 0 && /* @__PURE__ */ o("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
757
|
+
/* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
|
|
758
|
+
m !== void 0 && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
759
759
|
"(",
|
|
760
|
-
|
|
760
|
+
m,
|
|
761
761
|
")"
|
|
762
762
|
] })
|
|
763
763
|
] }),
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ o("div", { className: "mt-3 flex items-baseline gap-2", children: [
|
|
765
|
+
/* @__PURE__ */ o("span", { className: "text-xl font-bold text-[var(--foreground)]", children: [
|
|
766
766
|
"R$ ",
|
|
767
767
|
s.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
768
768
|
] }),
|
|
769
|
-
|
|
769
|
+
d && d > s && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)] line-through", children: [
|
|
770
770
|
"R$ ",
|
|
771
|
-
|
|
771
|
+
d.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
772
772
|
] })
|
|
773
773
|
] }),
|
|
774
774
|
b && /* @__PURE__ */ e(
|
|
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,
|
|
782
|
-
leftIcon: /* @__PURE__ */ e(
|
|
783
|
-
className:
|
|
782
|
+
leftIcon: /* @__PURE__ */ e(E, { className: "h-4 w-4" }),
|
|
783
|
+
className: i(
|
|
784
784
|
"mt-4 transition-all duration-200",
|
|
785
785
|
"opacity-0 translate-y-2",
|
|
786
786
|
"group-hover:opacity-100 group-hover:translate-y-0",
|
|
787
787
|
"focus-visible:opacity-100 focus-visible:translate-y-0"
|
|
788
788
|
),
|
|
789
|
-
children:
|
|
789
|
+
children: p ? "Indisponível" : "Adicionar"
|
|
790
790
|
}
|
|
791
791
|
)
|
|
792
792
|
] })
|
|
@@ -794,32 +794,32 @@ const T = N(
|
|
|
794
794
|
}
|
|
795
795
|
)
|
|
796
796
|
);
|
|
797
|
-
|
|
798
|
-
const
|
|
797
|
+
B.displayName = "ProductCard";
|
|
798
|
+
const Re = w(
|
|
799
799
|
({
|
|
800
800
|
className: a,
|
|
801
801
|
onSearch: t,
|
|
802
802
|
onClear: r,
|
|
803
803
|
isLoading: n = !1,
|
|
804
804
|
size: s = "md",
|
|
805
|
-
placeholder:
|
|
805
|
+
placeholder: d = "Buscar...",
|
|
806
806
|
value: l,
|
|
807
|
-
onChange:
|
|
808
|
-
...
|
|
807
|
+
onChange: m,
|
|
808
|
+
...f
|
|
809
809
|
}, g) => {
|
|
810
|
-
const [v,
|
|
810
|
+
const [v, p] = k(""), b = l !== void 0 ? l : v, x = {
|
|
811
811
|
sm: "h-9 text-sm",
|
|
812
812
|
md: "h-11 text-base",
|
|
813
813
|
lg: "h-14 text-lg"
|
|
814
|
-
}, h = (
|
|
815
|
-
const
|
|
816
|
-
l === void 0 &&
|
|
817
|
-
},
|
|
818
|
-
l === void 0 &&
|
|
819
|
-
},
|
|
820
|
-
|
|
814
|
+
}, h = (N) => {
|
|
815
|
+
const S = N.target.value;
|
|
816
|
+
l === void 0 && p(S), m == null || m(N);
|
|
817
|
+
}, c = () => {
|
|
818
|
+
l === void 0 && p(""), r == null || r();
|
|
819
|
+
}, u = (N) => {
|
|
820
|
+
N.key === "Enter" && t && t(b);
|
|
821
821
|
};
|
|
822
|
-
return /* @__PURE__ */ e("div", { className:
|
|
822
|
+
return /* @__PURE__ */ e("div", { className: i("relative w-full", a), children: /* @__PURE__ */ o("div", { className: "relative flex items-center", children: [
|
|
823
823
|
/* @__PURE__ */ e(Q, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
|
|
824
824
|
/* @__PURE__ */ e(
|
|
825
825
|
"input",
|
|
@@ -828,71 +828,71 @@ const Be = N(
|
|
|
828
828
|
type: "search",
|
|
829
829
|
value: b,
|
|
830
830
|
onChange: h,
|
|
831
|
-
onKeyDown:
|
|
832
|
-
placeholder:
|
|
833
|
-
className:
|
|
831
|
+
onKeyDown: u,
|
|
832
|
+
placeholder: d,
|
|
833
|
+
className: i(
|
|
834
834
|
"w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
|
|
835
835
|
"placeholder:text-[var(--muted-foreground)]",
|
|
836
836
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
|
|
837
837
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
838
838
|
x[s]
|
|
839
839
|
),
|
|
840
|
-
...
|
|
840
|
+
...f
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ o("div", { className: "absolute right-3 flex items-center gap-1", children: [
|
|
844
844
|
n && /* @__PURE__ */ e(V, { className: "h-5 w-5 animate-spin text-[var(--muted-foreground)]" }),
|
|
845
845
|
b && !n && /* @__PURE__ */ e(
|
|
846
846
|
"button",
|
|
847
847
|
{
|
|
848
848
|
type: "button",
|
|
849
|
-
onClick:
|
|
849
|
+
onClick: c,
|
|
850
850
|
className: "rounded-full p-1 hover:bg-[var(--muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
851
851
|
"aria-label": "Clear search",
|
|
852
|
-
children: /* @__PURE__ */ e(
|
|
852
|
+
children: /* @__PURE__ */ e(oe, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
|
|
853
853
|
}
|
|
854
854
|
)
|
|
855
855
|
] })
|
|
856
856
|
] }) });
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
|
-
|
|
860
|
-
const
|
|
859
|
+
Re.displayName = "SearchBar";
|
|
860
|
+
const Te = w(
|
|
861
861
|
({
|
|
862
862
|
className: a,
|
|
863
863
|
price: t,
|
|
864
864
|
originalPrice: r,
|
|
865
865
|
currency: n = "R$",
|
|
866
866
|
size: s = "md",
|
|
867
|
-
showDiscount:
|
|
867
|
+
showDiscount: d = !0,
|
|
868
868
|
installments: l,
|
|
869
|
-
...
|
|
870
|
-
},
|
|
869
|
+
...m
|
|
870
|
+
}, f) => {
|
|
871
871
|
const g = r && r > t ? Math.round((r - t) / r * 100) : 0, v = {
|
|
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__ */
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
-
/* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ o("div", { ref: f, className: i("flex flex-col gap-1", a), ...m, children: [
|
|
883
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
884
|
+
/* @__PURE__ */ o("div", { className: "flex items-baseline gap-2", children: [
|
|
885
|
+
/* @__PURE__ */ o("span", { className: i("font-bold text-[var(--foreground)]", v[s]), children: [
|
|
886
886
|
n,
|
|
887
887
|
" ",
|
|
888
888
|
t.toFixed(2)
|
|
889
889
|
] }),
|
|
890
|
-
r && r > t && /* @__PURE__ */
|
|
890
|
+
r && r > t && /* @__PURE__ */ o(
|
|
891
891
|
"span",
|
|
892
892
|
{
|
|
893
|
-
className:
|
|
893
|
+
className: i(
|
|
894
894
|
"text-[var(--muted-foreground)] line-through",
|
|
895
|
-
|
|
895
|
+
p[s]
|
|
896
896
|
),
|
|
897
897
|
children: [
|
|
898
898
|
n,
|
|
@@ -902,13 +902,13 @@ const Ee = N(
|
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
|
|
905
|
+
d && g > 0 && /* @__PURE__ */ o(L, { variant: "success", size: "sm", children: [
|
|
906
906
|
"-",
|
|
907
907
|
g,
|
|
908
908
|
"%"
|
|
909
909
|
] })
|
|
910
910
|
] }),
|
|
911
|
-
l && /* @__PURE__ */
|
|
911
|
+
l && /* @__PURE__ */ o("p", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
912
912
|
"ou ",
|
|
913
913
|
l.count,
|
|
914
914
|
"x de ",
|
|
@@ -920,26 +920,26 @@ const Ee = N(
|
|
|
920
920
|
] });
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
|
-
|
|
924
|
-
const
|
|
923
|
+
Te.displayName = "PriceDisplay";
|
|
924
|
+
const Be = w(
|
|
925
925
|
({
|
|
926
926
|
className: a,
|
|
927
927
|
value: t,
|
|
928
928
|
min: r = 1,
|
|
929
929
|
max: n = 99,
|
|
930
930
|
onChange: s,
|
|
931
|
-
size:
|
|
931
|
+
size: d = "md",
|
|
932
932
|
disabled: l = !1,
|
|
933
|
-
showLabel:
|
|
934
|
-
...
|
|
933
|
+
showLabel: m = !1,
|
|
934
|
+
...f
|
|
935
935
|
}, g) => {
|
|
936
936
|
const v = () => {
|
|
937
937
|
t < n && s(t + 1);
|
|
938
|
-
},
|
|
938
|
+
}, p = () => {
|
|
939
939
|
t > r && s(t - 1);
|
|
940
|
-
}, b = (
|
|
941
|
-
const
|
|
942
|
-
!isNaN(
|
|
940
|
+
}, b = (c) => {
|
|
941
|
+
const u = parseInt(c.target.value);
|
|
942
|
+
!isNaN(u) && u >= r && u <= n && s(u);
|
|
943
943
|
}, x = {
|
|
944
944
|
sm: "h-8 w-8",
|
|
945
945
|
md: "h-10 w-10",
|
|
@@ -949,18 +949,18 @@ const Te = N(
|
|
|
949
949
|
md: "h-10 w-14 text-base",
|
|
950
950
|
lg: "h-12 w-16 text-lg"
|
|
951
951
|
};
|
|
952
|
-
return /* @__PURE__ */
|
|
953
|
-
|
|
954
|
-
/* @__PURE__ */
|
|
952
|
+
return /* @__PURE__ */ o("div", { ref: g, className: i("inline-flex flex-col gap-1", a), ...f, children: [
|
|
953
|
+
m && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-[var(--foreground)]", children: "Quantidade" }),
|
|
954
|
+
/* @__PURE__ */ o("div", { className: "inline-flex items-center gap-2", children: [
|
|
955
955
|
/* @__PURE__ */ e(
|
|
956
956
|
C,
|
|
957
957
|
{
|
|
958
958
|
type: "button",
|
|
959
959
|
variant: "secondary",
|
|
960
960
|
size: "sm",
|
|
961
|
-
onClick:
|
|
961
|
+
onClick: p,
|
|
962
962
|
disabled: l || t <= r,
|
|
963
|
-
className:
|
|
963
|
+
className: i(x[d], "p-0"),
|
|
964
964
|
"aria-label": "Decrease quantity",
|
|
965
965
|
children: /* @__PURE__ */ e(ne, { className: "h-4 w-4" })
|
|
966
966
|
}
|
|
@@ -974,12 +974,12 @@ const Te = N(
|
|
|
974
974
|
min: r,
|
|
975
975
|
max: n,
|
|
976
976
|
disabled: l,
|
|
977
|
-
className:
|
|
977
|
+
className: i(
|
|
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",
|
|
980
980
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
981
981
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
982
|
-
h[
|
|
982
|
+
h[d]
|
|
983
983
|
),
|
|
984
984
|
"aria-label": "Quantity"
|
|
985
985
|
}
|
|
@@ -992,7 +992,7 @@ const Te = N(
|
|
|
992
992
|
size: "sm",
|
|
993
993
|
onClick: v,
|
|
994
994
|
disabled: l || t >= n,
|
|
995
|
-
className:
|
|
995
|
+
className: i(x[d], "p-0"),
|
|
996
996
|
"aria-label": "Increase quantity",
|
|
997
997
|
children: /* @__PURE__ */ e(se, { className: "h-4 w-4" })
|
|
998
998
|
}
|
|
@@ -1001,10 +1001,10 @@ const Te = N(
|
|
|
1001
1001
|
] });
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
|
|
1005
|
-
const $e =
|
|
1006
|
-
({ className: a, label: t, htmlFor: r, required: n, error: s, helperText:
|
|
1007
|
-
t && /* @__PURE__ */
|
|
1004
|
+
Be.displayName = "QuantitySelector";
|
|
1005
|
+
const $e = w(
|
|
1006
|
+
({ className: a, label: t, htmlFor: r, required: n, error: s, helperText: d, children: l, ...m }, f) => /* @__PURE__ */ o("div", { ref: f, className: i("flex flex-col gap-1.5", a), ...m, children: [
|
|
1007
|
+
t && /* @__PURE__ */ o(
|
|
1008
1008
|
"label",
|
|
1009
1009
|
{
|
|
1010
1010
|
htmlFor: r,
|
|
@@ -1016,28 +1016,28 @@ const $e = N(
|
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
1018
|
l,
|
|
1019
|
-
(s ||
|
|
1019
|
+
(s || d) && /* @__PURE__ */ e(
|
|
1020
1020
|
"p",
|
|
1021
1021
|
{
|
|
1022
|
-
className:
|
|
1022
|
+
className: i(
|
|
1023
1023
|
"text-sm",
|
|
1024
1024
|
s ? "text-[var(--destructive)]" : "text-[var(--muted-foreground)]"
|
|
1025
1025
|
),
|
|
1026
|
-
children: s ||
|
|
1026
|
+
children: s || d
|
|
1027
1027
|
}
|
|
1028
1028
|
)
|
|
1029
1029
|
] })
|
|
1030
1030
|
);
|
|
1031
1031
|
$e.displayName = "FormGroup";
|
|
1032
|
-
function
|
|
1032
|
+
function _t({ ...a }) {
|
|
1033
1033
|
return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function Et({ className: a, ...t }) {
|
|
1036
1036
|
return /* @__PURE__ */ e(
|
|
1037
1037
|
"ol",
|
|
1038
1038
|
{
|
|
1039
1039
|
"data-slot": "breadcrumb-list",
|
|
1040
|
-
className:
|
|
1040
|
+
className: i(
|
|
1041
1041
|
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
1042
1042
|
a
|
|
1043
1043
|
),
|
|
@@ -1045,17 +1045,17 @@ function Rt({ className: a, ...t }) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Rt({ className: a, ...t }) {
|
|
1049
1049
|
return /* @__PURE__ */ e(
|
|
1050
1050
|
"li",
|
|
1051
1051
|
{
|
|
1052
1052
|
"data-slot": "breadcrumb-item",
|
|
1053
|
-
className:
|
|
1053
|
+
className: i("inline-flex items-center gap-1.5", a),
|
|
1054
1054
|
...t
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Tt({
|
|
1059
1059
|
asChild: a,
|
|
1060
1060
|
className: t,
|
|
1061
1061
|
...r
|
|
@@ -1064,12 +1064,12 @@ function Et({
|
|
|
1064
1064
|
a ? Ce : "a",
|
|
1065
1065
|
{
|
|
1066
1066
|
"data-slot": "breadcrumb-link",
|
|
1067
|
-
className:
|
|
1067
|
+
className: i("hover:text-foreground transition-colors", t),
|
|
1068
1068
|
...r
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Bt({ className: a, ...t }) {
|
|
1073
1073
|
return /* @__PURE__ */ e(
|
|
1074
1074
|
"span",
|
|
1075
1075
|
{
|
|
@@ -1077,7 +1077,7 @@ function Tt({ className: a, ...t }) {
|
|
|
1077
1077
|
role: "link",
|
|
1078
1078
|
"aria-disabled": "true",
|
|
1079
1079
|
"aria-current": "page",
|
|
1080
|
-
className:
|
|
1080
|
+
className: i("text-foreground font-normal", a),
|
|
1081
1081
|
...t
|
|
1082
1082
|
}
|
|
1083
1083
|
);
|
|
@@ -1093,7 +1093,7 @@ function $t({
|
|
|
1093
1093
|
"data-slot": "breadcrumb-separator",
|
|
1094
1094
|
role: "presentation",
|
|
1095
1095
|
"aria-hidden": "true",
|
|
1096
|
-
className:
|
|
1096
|
+
className: i("[&>svg]:size-3.5", t),
|
|
1097
1097
|
...r,
|
|
1098
1098
|
children: a ?? /* @__PURE__ */ e(W, {})
|
|
1099
1099
|
}
|
|
@@ -1102,17 +1102,17 @@ function $t({
|
|
|
1102
1102
|
function Vt({
|
|
1103
1103
|
...a
|
|
1104
1104
|
}) {
|
|
1105
|
-
return /* @__PURE__ */ e(
|
|
1105
|
+
return /* @__PURE__ */ e(A.Root, { "data-slot": "accordion", ...a });
|
|
1106
1106
|
}
|
|
1107
1107
|
function Ft({
|
|
1108
1108
|
className: a,
|
|
1109
1109
|
...t
|
|
1110
1110
|
}) {
|
|
1111
1111
|
return /* @__PURE__ */ e(
|
|
1112
|
-
|
|
1112
|
+
A.Item,
|
|
1113
1113
|
{
|
|
1114
1114
|
"data-slot": "accordion-item",
|
|
1115
|
-
className:
|
|
1115
|
+
className: i("border-b last:border-b-0", a),
|
|
1116
1116
|
...t
|
|
1117
1117
|
}
|
|
1118
1118
|
);
|
|
@@ -1122,18 +1122,18 @@ function qt({
|
|
|
1122
1122
|
children: t,
|
|
1123
1123
|
...r
|
|
1124
1124
|
}) {
|
|
1125
|
-
return /* @__PURE__ */ e(
|
|
1126
|
-
|
|
1125
|
+
return /* @__PURE__ */ e(A.Header, { className: "flex", children: /* @__PURE__ */ o(
|
|
1126
|
+
A.Trigger,
|
|
1127
1127
|
{
|
|
1128
1128
|
"data-slot": "accordion-trigger",
|
|
1129
|
-
className:
|
|
1129
|
+
className: i(
|
|
1130
1130
|
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
1131
1131
|
a
|
|
1132
1132
|
),
|
|
1133
1133
|
...r,
|
|
1134
1134
|
children: [
|
|
1135
1135
|
t,
|
|
1136
|
-
/* @__PURE__ */ e(
|
|
1136
|
+
/* @__PURE__ */ e(_, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
1137
1137
|
]
|
|
1138
1138
|
}
|
|
1139
1139
|
) });
|
|
@@ -1144,12 +1144,12 @@ function Gt({
|
|
|
1144
1144
|
...r
|
|
1145
1145
|
}) {
|
|
1146
1146
|
return /* @__PURE__ */ e(
|
|
1147
|
-
|
|
1147
|
+
A.Content,
|
|
1148
1148
|
{
|
|
1149
1149
|
"data-slot": "accordion-content",
|
|
1150
1150
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
1151
1151
|
...r,
|
|
1152
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
1152
|
+
children: /* @__PURE__ */ e("div", { className: i("pt-0 pb-4", a), children: t })
|
|
1153
1153
|
}
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
@@ -1158,7 +1158,7 @@ function Ve({
|
|
|
1158
1158
|
...t
|
|
1159
1159
|
}) {
|
|
1160
1160
|
return /* @__PURE__ */ e(
|
|
1161
|
-
|
|
1161
|
+
j.Provider,
|
|
1162
1162
|
{
|
|
1163
1163
|
"data-slot": "tooltip-provider",
|
|
1164
1164
|
delayDuration: a,
|
|
@@ -1169,12 +1169,12 @@ function Ve({
|
|
|
1169
1169
|
function Ht({
|
|
1170
1170
|
...a
|
|
1171
1171
|
}) {
|
|
1172
|
-
return /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(
|
|
1172
|
+
return /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(j.Root, { "data-slot": "tooltip", ...a }) });
|
|
1173
1173
|
}
|
|
1174
1174
|
function Ut({
|
|
1175
1175
|
...a
|
|
1176
1176
|
}) {
|
|
1177
|
-
return /* @__PURE__ */ e(
|
|
1177
|
+
return /* @__PURE__ */ e(j.Trigger, { "data-slot": "tooltip-trigger", ...a });
|
|
1178
1178
|
}
|
|
1179
1179
|
function Qt({
|
|
1180
1180
|
className: a,
|
|
@@ -1182,41 +1182,41 @@ function Qt({
|
|
|
1182
1182
|
children: r,
|
|
1183
1183
|
...n
|
|
1184
1184
|
}) {
|
|
1185
|
-
return /* @__PURE__ */ e(
|
|
1186
|
-
|
|
1185
|
+
return /* @__PURE__ */ e(j.Portal, { children: /* @__PURE__ */ o(
|
|
1186
|
+
j.Content,
|
|
1187
1187
|
{
|
|
1188
1188
|
"data-slot": "tooltip-content",
|
|
1189
1189
|
sideOffset: t,
|
|
1190
|
-
className:
|
|
1190
|
+
className: i(
|
|
1191
1191
|
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
1192
1192
|
a
|
|
1193
1193
|
),
|
|
1194
1194
|
...n,
|
|
1195
1195
|
children: [
|
|
1196
1196
|
r,
|
|
1197
|
-
/* @__PURE__ */ e(
|
|
1197
|
+
/* @__PURE__ */ e(j.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
1198
1198
|
]
|
|
1199
1199
|
}
|
|
1200
1200
|
) });
|
|
1201
1201
|
}
|
|
1202
|
-
const Fe =
|
|
1202
|
+
const Fe = w(
|
|
1203
1203
|
({
|
|
1204
1204
|
className: a,
|
|
1205
1205
|
variant: t = "default",
|
|
1206
1206
|
title: r,
|
|
1207
1207
|
subtitle: n,
|
|
1208
1208
|
description: s,
|
|
1209
|
-
primaryCTA:
|
|
1209
|
+
primaryCTA: d,
|
|
1210
1210
|
secondaryCTA: l,
|
|
1211
|
-
backgroundImage:
|
|
1212
|
-
overlay:
|
|
1211
|
+
backgroundImage: m,
|
|
1212
|
+
overlay: f = !0,
|
|
1213
1213
|
children: g,
|
|
1214
1214
|
...v
|
|
1215
|
-
},
|
|
1215
|
+
}, p) => /* @__PURE__ */ o(
|
|
1216
1216
|
"section",
|
|
1217
1217
|
{
|
|
1218
|
-
ref:
|
|
1219
|
-
className:
|
|
1218
|
+
ref: p,
|
|
1219
|
+
className: i(
|
|
1220
1220
|
"relative flex min-h-[400px] w-full flex-col justify-center px-6 py-16 lg:px-12 lg:py-24",
|
|
1221
1221
|
{
|
|
1222
1222
|
default: "items-start text-left",
|
|
@@ -1227,31 +1227,31 @@ const Fe = N(
|
|
|
1227
1227
|
),
|
|
1228
1228
|
...v,
|
|
1229
1229
|
children: [
|
|
1230
|
-
|
|
1230
|
+
m && /* @__PURE__ */ o(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(${m})` }
|
|
1236
1236
|
}
|
|
1237
1237
|
),
|
|
1238
|
-
|
|
1238
|
+
f && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-black/70 to-black/30" })
|
|
1239
1239
|
] }),
|
|
1240
|
-
/* @__PURE__ */
|
|
1240
|
+
/* @__PURE__ */ o(
|
|
1241
1241
|
"div",
|
|
1242
1242
|
{
|
|
1243
|
-
className:
|
|
1243
|
+
className: i(
|
|
1244
1244
|
"relative z-10 max-w-7xl mx-auto w-full",
|
|
1245
1245
|
t === "centered" && "flex flex-col items-center"
|
|
1246
1246
|
),
|
|
1247
1247
|
children: [
|
|
1248
|
-
/* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ o("div", { className: i("max-w-3xl", t === "split" && "max-w-none"), children: [
|
|
1249
1249
|
n && /* @__PURE__ */ e(
|
|
1250
1250
|
"p",
|
|
1251
1251
|
{
|
|
1252
|
-
className:
|
|
1252
|
+
className: i(
|
|
1253
1253
|
"mb-4 text-sm font-semibold uppercase tracking-wider",
|
|
1254
|
-
|
|
1254
|
+
m ? "text-[var(--warning)]" : "text-[var(--brand-primary)]"
|
|
1255
1255
|
),
|
|
1256
1256
|
children: n
|
|
1257
1257
|
}
|
|
@@ -1259,9 +1259,9 @@ const Fe = N(
|
|
|
1259
1259
|
/* @__PURE__ */ e(
|
|
1260
1260
|
"h1",
|
|
1261
1261
|
{
|
|
1262
|
-
className:
|
|
1262
|
+
className: i(
|
|
1263
1263
|
"text-4xl font-bold leading-tight lg:text-5xl xl:text-6xl",
|
|
1264
|
-
|
|
1264
|
+
m ? "text-white" : "text-[var(--foreground)]"
|
|
1265
1265
|
),
|
|
1266
1266
|
children: r
|
|
1267
1267
|
}
|
|
@@ -1269,21 +1269,21 @@ const Fe = N(
|
|
|
1269
1269
|
s && /* @__PURE__ */ e(
|
|
1270
1270
|
"p",
|
|
1271
1271
|
{
|
|
1272
|
-
className:
|
|
1272
|
+
className: i(
|
|
1273
1273
|
"mt-6 text-lg lg:text-xl",
|
|
1274
|
-
|
|
1274
|
+
m ? "text-gray-200" : "text-[var(--muted-foreground)]"
|
|
1275
1275
|
),
|
|
1276
1276
|
children: s
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1279
|
+
(d || l) && /* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4", children: [
|
|
1280
|
+
d && /* @__PURE__ */ e(
|
|
1281
1281
|
C,
|
|
1282
1282
|
{
|
|
1283
1283
|
size: "lg",
|
|
1284
|
-
onClick:
|
|
1284
|
+
onClick: d.onClick,
|
|
1285
1285
|
variant: "primary",
|
|
1286
|
-
children:
|
|
1286
|
+
children: d.label
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
1289
|
l && /* @__PURE__ */ e(
|
|
@@ -1307,27 +1307,27 @@ const Fe = N(
|
|
|
1307
1307
|
)
|
|
1308
1308
|
);
|
|
1309
1309
|
Fe.displayName = "Hero";
|
|
1310
|
-
const X =
|
|
1310
|
+
const X = w(
|
|
1311
1311
|
({
|
|
1312
1312
|
className: a,
|
|
1313
1313
|
variant: t = "default",
|
|
1314
1314
|
icon: r,
|
|
1315
1315
|
title: n,
|
|
1316
1316
|
description: s,
|
|
1317
|
-
action:
|
|
1317
|
+
action: d,
|
|
1318
1318
|
...l
|
|
1319
|
-
},
|
|
1319
|
+
}, m) => {
|
|
1320
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
|
-
cart: /* @__PURE__ */ e(
|
|
1323
|
+
cart: /* @__PURE__ */ e(E, { className: "h-16 w-16" }),
|
|
1324
1324
|
error: /* @__PURE__ */ e(le, { className: "h-16 w-16" })
|
|
1325
1325
|
}[t];
|
|
1326
|
-
return /* @__PURE__ */
|
|
1326
|
+
return /* @__PURE__ */ o(
|
|
1327
1327
|
"div",
|
|
1328
1328
|
{
|
|
1329
|
-
ref:
|
|
1330
|
-
className:
|
|
1329
|
+
ref: m,
|
|
1330
|
+
className: i(
|
|
1331
1331
|
"flex flex-col items-center justify-center py-16 px-6 text-center",
|
|
1332
1332
|
a
|
|
1333
1333
|
),
|
|
@@ -1336,14 +1336,14 @@ const X = N(
|
|
|
1336
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
|
s && /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: s }),
|
|
1339
|
-
|
|
1339
|
+
d && /* @__PURE__ */ e(
|
|
1340
1340
|
C,
|
|
1341
1341
|
{
|
|
1342
|
-
onClick:
|
|
1342
|
+
onClick: d.onClick,
|
|
1343
1343
|
variant: "primary",
|
|
1344
1344
|
size: "lg",
|
|
1345
1345
|
className: "mt-6",
|
|
1346
|
-
children:
|
|
1346
|
+
children: d.label
|
|
1347
1347
|
}
|
|
1348
1348
|
)
|
|
1349
1349
|
]
|
|
@@ -1352,19 +1352,19 @@ const X = N(
|
|
|
1352
1352
|
}
|
|
1353
1353
|
);
|
|
1354
1354
|
X.displayName = "EmptyState";
|
|
1355
|
-
const qe =
|
|
1355
|
+
const qe = w(
|
|
1356
1356
|
({
|
|
1357
1357
|
className: a,
|
|
1358
1358
|
type: t = "generic",
|
|
1359
1359
|
title: r,
|
|
1360
1360
|
message: n,
|
|
1361
1361
|
onRetry: s,
|
|
1362
|
-
onGoHome:
|
|
1362
|
+
onGoHome: d,
|
|
1363
1363
|
showRetry: l = !0,
|
|
1364
|
-
showHome:
|
|
1365
|
-
...
|
|
1364
|
+
showHome: m = !0,
|
|
1365
|
+
...f
|
|
1366
1366
|
}, g) => {
|
|
1367
|
-
const
|
|
1367
|
+
const p = {
|
|
1368
1368
|
404: {
|
|
1369
1369
|
title: "Página não encontrada",
|
|
1370
1370
|
message: "A página que você está procurando não existe ou foi movida.",
|
|
@@ -1385,26 +1385,26 @@ const qe = N(
|
|
|
1385
1385
|
message: "Ocorreu um erro inesperado. Por favor, tente novamente.",
|
|
1386
1386
|
code: ""
|
|
1387
1387
|
}
|
|
1388
|
-
}[t], b = r ||
|
|
1389
|
-
return /* @__PURE__ */
|
|
1388
|
+
}[t], b = r || p.title, x = n || p.message;
|
|
1389
|
+
return /* @__PURE__ */ o(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
1392
1392
|
ref: g,
|
|
1393
|
-
className:
|
|
1393
|
+
className: i(
|
|
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
|
+
...f,
|
|
1400
1400
|
children: [
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
-
|
|
1401
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-4", children: [
|
|
1402
|
+
p.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: p.code }),
|
|
1403
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: x }),
|
|
1407
|
-
/* @__PURE__ */
|
|
1407
|
+
/* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
|
|
1408
1408
|
l && s && /* @__PURE__ */ e(
|
|
1409
1409
|
C,
|
|
1410
1410
|
{
|
|
@@ -1415,10 +1415,10 @@ const qe = N(
|
|
|
1415
1415
|
children: "Tentar novamente"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
1418
|
-
|
|
1418
|
+
m && d && /* @__PURE__ */ e(
|
|
1419
1419
|
C,
|
|
1420
1420
|
{
|
|
1421
|
-
onClick:
|
|
1421
|
+
onClick: d,
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
size: "lg",
|
|
1424
1424
|
leftIcon: /* @__PURE__ */ e(me, { className: "h-5 w-5" }),
|
|
@@ -1432,17 +1432,17 @@ const qe = N(
|
|
|
1432
1432
|
}
|
|
1433
1433
|
);
|
|
1434
1434
|
qe.displayName = "ErrorState";
|
|
1435
|
-
const Ge =
|
|
1435
|
+
const Ge = w(
|
|
1436
1436
|
({
|
|
1437
1437
|
className: a,
|
|
1438
1438
|
products: t,
|
|
1439
1439
|
columns: r = 4,
|
|
1440
1440
|
gap: n = "md",
|
|
1441
1441
|
isLoading: s = !1,
|
|
1442
|
-
skeletonCount:
|
|
1442
|
+
skeletonCount: d = 8,
|
|
1443
1443
|
emptyStateMessage: l = "Nenhum produto encontrado",
|
|
1444
|
-
onEmptyAction:
|
|
1445
|
-
...
|
|
1444
|
+
onEmptyAction: m,
|
|
1445
|
+
...f
|
|
1446
1446
|
}, g) => {
|
|
1447
1447
|
const v = {
|
|
1448
1448
|
sm: "gap-4",
|
|
@@ -1453,14 +1453,14 @@ const Ge = N(
|
|
|
1453
1453
|
"div",
|
|
1454
1454
|
{
|
|
1455
1455
|
ref: g,
|
|
1456
|
-
className:
|
|
1456
|
+
className: i(
|
|
1457
1457
|
"grid grid-cols-2 lg:grid-cols-4",
|
|
1458
1458
|
v[n],
|
|
1459
1459
|
a
|
|
1460
1460
|
),
|
|
1461
|
-
...
|
|
1462
|
-
children: Array.from({ length:
|
|
1463
|
-
|
|
1461
|
+
...f,
|
|
1462
|
+
children: Array.from({ length: d }).map((p, b) => /* @__PURE__ */ e(
|
|
1463
|
+
B,
|
|
1464
1464
|
{
|
|
1465
1465
|
image: "",
|
|
1466
1466
|
title: "",
|
|
@@ -1476,22 +1476,22 @@ const Ge = N(
|
|
|
1476
1476
|
variant: "search",
|
|
1477
1477
|
title: l,
|
|
1478
1478
|
description: "Tente ajustar seus filtros ou realizar uma nova busca",
|
|
1479
|
-
action:
|
|
1479
|
+
action: m ? {
|
|
1480
1480
|
label: "Limpar filtros",
|
|
1481
|
-
onClick:
|
|
1481
|
+
onClick: m
|
|
1482
1482
|
} : void 0
|
|
1483
1483
|
}
|
|
1484
1484
|
) : /* @__PURE__ */ e(
|
|
1485
1485
|
"div",
|
|
1486
1486
|
{
|
|
1487
1487
|
ref: g,
|
|
1488
|
-
className:
|
|
1488
|
+
className: i(
|
|
1489
1489
|
"grid grid-cols-2 lg:grid-cols-4",
|
|
1490
1490
|
v[n],
|
|
1491
1491
|
a
|
|
1492
1492
|
),
|
|
1493
|
-
...
|
|
1494
|
-
children: t.map((
|
|
1493
|
+
...f,
|
|
1494
|
+
children: t.map((p, b) => /* @__PURE__ */ e(B, { ...p }, b))
|
|
1495
1495
|
}
|
|
1496
1496
|
);
|
|
1497
1497
|
}
|
|
@@ -1500,27 +1500,27 @@ Ge.displayName = "ProductGrid";
|
|
|
1500
1500
|
function Wt({
|
|
1501
1501
|
...a
|
|
1502
1502
|
}) {
|
|
1503
|
-
return /* @__PURE__ */ e(
|
|
1503
|
+
return /* @__PURE__ */ e(y.Root, { "data-slot": "dialog", ...a });
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Ot({
|
|
1506
1506
|
...a
|
|
1507
1507
|
}) {
|
|
1508
|
-
return /* @__PURE__ */ e(
|
|
1508
|
+
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
1509
1509
|
}
|
|
1510
1510
|
function He({
|
|
1511
1511
|
...a
|
|
1512
1512
|
}) {
|
|
1513
|
-
return /* @__PURE__ */ e(
|
|
1513
|
+
return /* @__PURE__ */ e(y.Portal, { "data-slot": "dialog-portal", ...a });
|
|
1514
1514
|
}
|
|
1515
1515
|
function Ue({
|
|
1516
1516
|
className: a,
|
|
1517
1517
|
...t
|
|
1518
1518
|
}) {
|
|
1519
1519
|
return /* @__PURE__ */ e(
|
|
1520
|
-
|
|
1520
|
+
y.Overlay,
|
|
1521
1521
|
{
|
|
1522
1522
|
"data-slot": "dialog-overlay",
|
|
1523
|
-
className:
|
|
1523
|
+
className: i(
|
|
1524
1524
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
1525
1525
|
a
|
|
1526
1526
|
),
|
|
@@ -1528,26 +1528,26 @@ function Ue({
|
|
|
1528
1528
|
}
|
|
1529
1529
|
);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Kt({
|
|
1532
1532
|
className: a,
|
|
1533
1533
|
children: t,
|
|
1534
1534
|
...r
|
|
1535
1535
|
}) {
|
|
1536
|
-
return /* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ o(He, { "data-slot": "dialog-portal", children: [
|
|
1537
1537
|
/* @__PURE__ */ e(Ue, {}),
|
|
1538
|
-
/* @__PURE__ */
|
|
1539
|
-
|
|
1538
|
+
/* @__PURE__ */ o(
|
|
1539
|
+
y.Content,
|
|
1540
1540
|
{
|
|
1541
1541
|
"data-slot": "dialog-content",
|
|
1542
|
-
className:
|
|
1542
|
+
className: i(
|
|
1543
1543
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1544
1544
|
a
|
|
1545
1545
|
),
|
|
1546
1546
|
...r,
|
|
1547
1547
|
children: [
|
|
1548
1548
|
t,
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
/* @__PURE__ */ e(
|
|
1549
|
+
/* @__PURE__ */ o(y.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
1550
|
+
/* @__PURE__ */ e(O, {}),
|
|
1551
1551
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1552
1552
|
] })
|
|
1553
1553
|
]
|
|
@@ -1560,7 +1560,7 @@ function Xt({ className: a, ...t }) {
|
|
|
1560
1560
|
"div",
|
|
1561
1561
|
{
|
|
1562
1562
|
"data-slot": "dialog-header",
|
|
1563
|
-
className:
|
|
1563
|
+
className: i("flex flex-col gap-2 text-center sm:text-left", a),
|
|
1564
1564
|
...t
|
|
1565
1565
|
}
|
|
1566
1566
|
);
|
|
@@ -1570,7 +1570,7 @@ function Yt({ className: a, ...t }) {
|
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
1572
1572
|
"data-slot": "dialog-footer",
|
|
1573
|
-
className:
|
|
1573
|
+
className: i(
|
|
1574
1574
|
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
1575
1575
|
a
|
|
1576
1576
|
),
|
|
@@ -1583,10 +1583,10 @@ function Zt({
|
|
|
1583
1583
|
...t
|
|
1584
1584
|
}) {
|
|
1585
1585
|
return /* @__PURE__ */ e(
|
|
1586
|
-
|
|
1586
|
+
y.Title,
|
|
1587
1587
|
{
|
|
1588
1588
|
"data-slot": "dialog-title",
|
|
1589
|
-
className:
|
|
1589
|
+
className: i("text-lg leading-none font-semibold", a),
|
|
1590
1590
|
...t
|
|
1591
1591
|
}
|
|
1592
1592
|
);
|
|
@@ -1596,41 +1596,41 @@ function Jt({
|
|
|
1596
1596
|
...t
|
|
1597
1597
|
}) {
|
|
1598
1598
|
return /* @__PURE__ */ e(
|
|
1599
|
-
|
|
1599
|
+
y.Description,
|
|
1600
1600
|
{
|
|
1601
1601
|
"data-slot": "dialog-description",
|
|
1602
|
-
className:
|
|
1602
|
+
className: i("text-muted-foreground text-sm", a),
|
|
1603
1603
|
...t
|
|
1604
1604
|
}
|
|
1605
1605
|
);
|
|
1606
1606
|
}
|
|
1607
1607
|
function Qe({ ...a }) {
|
|
1608
|
-
return /* @__PURE__ */ e(
|
|
1608
|
+
return /* @__PURE__ */ e(y.Root, { "data-slot": "sheet", ...a });
|
|
1609
1609
|
}
|
|
1610
1610
|
function We({
|
|
1611
1611
|
...a
|
|
1612
1612
|
}) {
|
|
1613
|
-
return /* @__PURE__ */ e(
|
|
1613
|
+
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "sheet-trigger", ...a });
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function Oe({
|
|
1616
1616
|
...a
|
|
1617
1617
|
}) {
|
|
1618
|
-
return /* @__PURE__ */ e(
|
|
1618
|
+
return /* @__PURE__ */ e(y.Close, { "data-slot": "sheet-close", ...a });
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Ke({
|
|
1621
1621
|
...a
|
|
1622
1622
|
}) {
|
|
1623
|
-
return /* @__PURE__ */ e(
|
|
1623
|
+
return /* @__PURE__ */ e(y.Portal, { "data-slot": "sheet-portal", ...a });
|
|
1624
1624
|
}
|
|
1625
1625
|
function Xe({
|
|
1626
1626
|
className: a,
|
|
1627
1627
|
...t
|
|
1628
1628
|
}) {
|
|
1629
1629
|
return /* @__PURE__ */ e(
|
|
1630
|
-
|
|
1630
|
+
y.Overlay,
|
|
1631
1631
|
{
|
|
1632
1632
|
"data-slot": "sheet-overlay",
|
|
1633
|
-
className:
|
|
1633
|
+
className: i(
|
|
1634
1634
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
1635
1635
|
a
|
|
1636
1636
|
),
|
|
@@ -1644,13 +1644,13 @@ function Ye({
|
|
|
1644
1644
|
side: r = "right",
|
|
1645
1645
|
...n
|
|
1646
1646
|
}) {
|
|
1647
|
-
return /* @__PURE__ */
|
|
1647
|
+
return /* @__PURE__ */ o(Ke, { children: [
|
|
1648
1648
|
/* @__PURE__ */ e(Xe, {}),
|
|
1649
|
-
/* @__PURE__ */
|
|
1650
|
-
|
|
1649
|
+
/* @__PURE__ */ o(
|
|
1650
|
+
y.Content,
|
|
1651
1651
|
{
|
|
1652
1652
|
"data-slot": "sheet-content",
|
|
1653
|
-
className:
|
|
1653
|
+
className: i(
|
|
1654
1654
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1655
1655
|
r === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
1656
1656
|
r === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -1661,8 +1661,8 @@ function Ye({
|
|
|
1661
1661
|
...n,
|
|
1662
1662
|
children: [
|
|
1663
1663
|
t,
|
|
1664
|
-
/* @__PURE__ */
|
|
1665
|
-
/* @__PURE__ */ e(
|
|
1664
|
+
/* @__PURE__ */ o(y.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1665
|
+
/* @__PURE__ */ e(O, { className: "size-4" }),
|
|
1666
1666
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1667
1667
|
] })
|
|
1668
1668
|
]
|
|
@@ -1675,7 +1675,7 @@ function Ze({ className: a, ...t }) {
|
|
|
1675
1675
|
"div",
|
|
1676
1676
|
{
|
|
1677
1677
|
"data-slot": "sheet-header",
|
|
1678
|
-
className:
|
|
1678
|
+
className: i("flex flex-col gap-1.5 p-4", a),
|
|
1679
1679
|
...t
|
|
1680
1680
|
}
|
|
1681
1681
|
);
|
|
@@ -1685,7 +1685,7 @@ function ea({ className: a, ...t }) {
|
|
|
1685
1685
|
"div",
|
|
1686
1686
|
{
|
|
1687
1687
|
"data-slot": "sheet-footer",
|
|
1688
|
-
className:
|
|
1688
|
+
className: i("mt-auto flex flex-col gap-2 p-4", a),
|
|
1689
1689
|
...t
|
|
1690
1690
|
}
|
|
1691
1691
|
);
|
|
@@ -1695,10 +1695,10 @@ function Je({
|
|
|
1695
1695
|
...t
|
|
1696
1696
|
}) {
|
|
1697
1697
|
return /* @__PURE__ */ e(
|
|
1698
|
-
|
|
1698
|
+
y.Title,
|
|
1699
1699
|
{
|
|
1700
1700
|
"data-slot": "sheet-title",
|
|
1701
|
-
className:
|
|
1701
|
+
className: i("text-foreground font-semibold", a),
|
|
1702
1702
|
...t
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
@@ -1708,10 +1708,10 @@ function ta({
|
|
|
1708
1708
|
...t
|
|
1709
1709
|
}) {
|
|
1710
1710
|
return /* @__PURE__ */ e(
|
|
1711
|
-
|
|
1711
|
+
y.Description,
|
|
1712
1712
|
{
|
|
1713
1713
|
"data-slot": "sheet-description",
|
|
1714
|
-
className:
|
|
1714
|
+
className: i("text-muted-foreground text-sm", a),
|
|
1715
1715
|
...t
|
|
1716
1716
|
}
|
|
1717
1717
|
);
|
|
@@ -1721,55 +1721,55 @@ function et({ children: a, as: t = "div", className: r }) {
|
|
|
1721
1721
|
t,
|
|
1722
1722
|
{
|
|
1723
1723
|
"data-slot": "container",
|
|
1724
|
-
className:
|
|
1724
|
+
className: i("w-full mx-auto px-[var(--container-px)]", r),
|
|
1725
1725
|
style: { maxWidth: "var(--container-max)" },
|
|
1726
1726
|
children: a
|
|
1727
1727
|
}
|
|
1728
1728
|
);
|
|
1729
1729
|
}
|
|
1730
|
-
const tt =
|
|
1731
|
-
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s },
|
|
1732
|
-
const [l,
|
|
1733
|
-
|
|
1734
|
-
const
|
|
1735
|
-
u
|
|
1736
|
-
const
|
|
1737
|
-
Number.isFinite(
|
|
1738
|
-
}, []),
|
|
1730
|
+
const tt = w(
|
|
1731
|
+
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s }, d) => {
|
|
1732
|
+
const [l, m] = k("light"), [f, g] = k(16), [v, p] = k(!1);
|
|
1733
|
+
M(() => {
|
|
1734
|
+
const u = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
|
|
1735
|
+
m(u);
|
|
1736
|
+
const N = Number(localStorage.getItem("a11y-font-size"));
|
|
1737
|
+
Number.isFinite(N) && N > 0 && g(N);
|
|
1738
|
+
}, []), M(() => {
|
|
1739
1739
|
if (!v && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
|
|
1740
|
-
const
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}, document.body.appendChild(
|
|
1740
|
+
const u = document.createElement("script");
|
|
1741
|
+
u.src = "https://vlibras.gov.br/app/vlibras-plugin.js", u.async = !0, u.onload = () => {
|
|
1742
|
+
p(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
|
|
1743
|
+
}, document.body.appendChild(u);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, [v]);
|
|
1746
1746
|
const b = () => {
|
|
1747
|
-
const
|
|
1748
|
-
|
|
1747
|
+
const c = l === "light" ? "dark" : "light";
|
|
1748
|
+
m(c), document.documentElement.setAttribute("data-theme", c), localStorage.setItem("a11y-theme", c), t == null || t(c);
|
|
1749
1749
|
}, x = () => {
|
|
1750
|
-
const
|
|
1751
|
-
g(
|
|
1750
|
+
const c = Math.min(f + 2, 24);
|
|
1751
|
+
g(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
|
|
1752
1752
|
}, h = () => {
|
|
1753
|
-
const
|
|
1754
|
-
g(
|
|
1753
|
+
const c = Math.max(f - 2, 12);
|
|
1754
|
+
g(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
|
|
1755
1755
|
};
|
|
1756
1756
|
return /* @__PURE__ */ e(
|
|
1757
1757
|
"div",
|
|
1758
1758
|
{
|
|
1759
|
-
ref:
|
|
1760
|
-
className:
|
|
1759
|
+
ref: d,
|
|
1760
|
+
className: i(
|
|
1761
1761
|
"w-full border-b border-[var(--border)] bg-[var(--card)] sticky top-0 z-50",
|
|
1762
1762
|
a
|
|
1763
1763
|
),
|
|
1764
1764
|
role: "toolbar",
|
|
1765
1765
|
"aria-label": "Ferramentas de acessibilidade",
|
|
1766
1766
|
...s,
|
|
1767
|
-
children: /* @__PURE__ */
|
|
1768
|
-
/* @__PURE__ */
|
|
1767
|
+
children: /* @__PURE__ */ o(et, { className: "py-2 flex items-center justify-between", children: [
|
|
1768
|
+
/* @__PURE__ */ o("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" }),
|
|
1770
1770
|
/* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Ferramentas de Acessibilidade" })
|
|
1771
1771
|
] }),
|
|
1772
|
-
/* @__PURE__ */
|
|
1772
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 md:gap-4", children: [
|
|
1773
1773
|
n && /* @__PURE__ */ e(
|
|
1774
1774
|
"a",
|
|
1775
1775
|
{
|
|
@@ -1778,15 +1778,15 @@ const tt = N(
|
|
|
1778
1778
|
children: /* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Acessibilidade" })
|
|
1779
1779
|
}
|
|
1780
1780
|
),
|
|
1781
|
-
/* @__PURE__ */
|
|
1781
|
+
/* @__PURE__ */ o("div", { role: "group", "aria-label": "Tamanho da fonte", className: "flex items-center gap-1", children: [
|
|
1782
1782
|
/* @__PURE__ */ e(
|
|
1783
1783
|
"button",
|
|
1784
1784
|
{
|
|
1785
1785
|
type: "button",
|
|
1786
1786
|
onClick: h,
|
|
1787
|
-
disabled:
|
|
1787
|
+
disabled: f <= 12,
|
|
1788
1788
|
"aria-label": "Diminuir tamanho da fonte",
|
|
1789
|
-
className:
|
|
1789
|
+
className: i(
|
|
1790
1790
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1791
1791
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
1792
1792
|
"disabled:opacity-40 disabled:cursor-not-allowed"
|
|
@@ -1800,9 +1800,9 @@ const tt = N(
|
|
|
1800
1800
|
{
|
|
1801
1801
|
type: "button",
|
|
1802
1802
|
onClick: x,
|
|
1803
|
-
disabled:
|
|
1803
|
+
disabled: f >= 24,
|
|
1804
1804
|
"aria-label": "Aumentar tamanho da fonte",
|
|
1805
|
-
className:
|
|
1805
|
+
className: i(
|
|
1806
1806
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1807
1807
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
1808
1808
|
"disabled:opacity-40 disabled:cursor-not-allowed"
|
|
@@ -1817,7 +1817,7 @@ const tt = N(
|
|
|
1817
1817
|
type: "button",
|
|
1818
1818
|
onClick: b,
|
|
1819
1819
|
"aria-label": l === "light" ? "Ativar modo escuro" : "Ativar modo claro",
|
|
1820
|
-
className:
|
|
1820
|
+
className: i(
|
|
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
|
),
|
|
@@ -1828,10 +1828,10 @@ const tt = N(
|
|
|
1828
1828
|
"button",
|
|
1829
1829
|
{
|
|
1830
1830
|
type: "button",
|
|
1831
|
-
onClick: () =>
|
|
1831
|
+
onClick: () => p((c) => !c),
|
|
1832
1832
|
"aria-label": "Ativar VLibras",
|
|
1833
1833
|
"aria-pressed": v,
|
|
1834
|
-
className:
|
|
1834
|
+
className: i(
|
|
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
|
),
|
|
@@ -1850,97 +1850,97 @@ const tt = N(
|
|
|
1850
1850
|
}
|
|
1851
1851
|
);
|
|
1852
1852
|
tt.displayName = "TopAccessibilityBar";
|
|
1853
|
-
const at =
|
|
1853
|
+
const at = w(
|
|
1854
1854
|
({
|
|
1855
1855
|
className: a,
|
|
1856
1856
|
slides: t,
|
|
1857
1857
|
autoplayDelay: r = 5e3,
|
|
1858
1858
|
autoplay: n = !0,
|
|
1859
1859
|
...s
|
|
1860
|
-
},
|
|
1861
|
-
const [l,
|
|
1862
|
-
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1860
|
+
}, d) => {
|
|
1861
|
+
const [l, m] = k(0), [f, g] = k(!1), [v, p] = k(!1);
|
|
1862
|
+
M(() => {
|
|
1863
|
+
const c = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
1864
|
+
p(c.matches);
|
|
1865
|
+
const u = (N) => {
|
|
1866
|
+
p(N.matches);
|
|
1867
1867
|
};
|
|
1868
|
-
return
|
|
1869
|
-
}, []),
|
|
1870
|
-
if (!n ||
|
|
1871
|
-
const
|
|
1872
|
-
|
|
1868
|
+
return c.addEventListener("change", u), () => c.removeEventListener("change", u);
|
|
1869
|
+
}, []), M(() => {
|
|
1870
|
+
if (!n || f || v) return;
|
|
1871
|
+
const c = setInterval(() => {
|
|
1872
|
+
m((u) => (u + 1) % t.length);
|
|
1873
1873
|
}, r);
|
|
1874
|
-
return () => clearInterval(
|
|
1875
|
-
}, [n, r, t.length,
|
|
1876
|
-
const b = (
|
|
1877
|
-
|
|
1874
|
+
return () => clearInterval(c);
|
|
1875
|
+
}, [n, r, t.length, f, v]);
|
|
1876
|
+
const b = (c) => {
|
|
1877
|
+
m(c), g(!0), setTimeout(() => g(!1), r);
|
|
1878
1878
|
}, x = () => {
|
|
1879
1879
|
b((l - 1 + t.length) % t.length);
|
|
1880
1880
|
}, h = () => {
|
|
1881
1881
|
b((l + 1) % t.length);
|
|
1882
1882
|
};
|
|
1883
|
-
return t.length === 0 ? null : (t[l], /* @__PURE__ */
|
|
1883
|
+
return t.length === 0 ? null : (t[l], /* @__PURE__ */ o(
|
|
1884
1884
|
"div",
|
|
1885
1885
|
{
|
|
1886
|
-
ref:
|
|
1887
|
-
className:
|
|
1886
|
+
ref: d,
|
|
1887
|
+
className: i("relative w-full overflow-hidden", a),
|
|
1888
1888
|
onMouseEnter: () => g(!0),
|
|
1889
1889
|
onMouseLeave: () => g(!1),
|
|
1890
1890
|
...s,
|
|
1891
1891
|
children: [
|
|
1892
|
-
/* @__PURE__ */ e("div", { className: "relative", children: t.map((
|
|
1892
|
+
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c, u) => /* @__PURE__ */ o(
|
|
1893
1893
|
"div",
|
|
1894
1894
|
{
|
|
1895
|
-
className:
|
|
1895
|
+
className: i(
|
|
1896
1896
|
"w-full transition-opacity duration-700",
|
|
1897
|
-
|
|
1897
|
+
u === l ? "block" : "hidden"
|
|
1898
1898
|
),
|
|
1899
|
-
"aria-hidden":
|
|
1899
|
+
"aria-hidden": u !== l,
|
|
1900
1900
|
children: [
|
|
1901
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ o("picture", { children: [
|
|
1902
1902
|
/* @__PURE__ */ e(
|
|
1903
1903
|
"source",
|
|
1904
1904
|
{
|
|
1905
1905
|
media: "(min-width: 1024px)",
|
|
1906
|
-
srcSet: `${
|
|
1906
|
+
srcSet: `${c.imageDesktop} 1x, ${c.imageDesktop.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
|
|
1907
1907
|
}
|
|
1908
1908
|
),
|
|
1909
1909
|
/* @__PURE__ */ e(
|
|
1910
1910
|
"source",
|
|
1911
1911
|
{
|
|
1912
1912
|
media: "(min-width: 768px)",
|
|
1913
|
-
srcSet: `${
|
|
1913
|
+
srcSet: `${c.imageTablet} 1x, ${c.imageTablet.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
|
|
1914
1914
|
}
|
|
1915
1915
|
),
|
|
1916
1916
|
/* @__PURE__ */ e(
|
|
1917
1917
|
"img",
|
|
1918
1918
|
{
|
|
1919
|
-
src:
|
|
1920
|
-
srcSet: `${
|
|
1921
|
-
alt:
|
|
1919
|
+
src: c.imageMobile,
|
|
1920
|
+
srcSet: `${c.imageMobile} 1x, ${c.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
|
|
1921
|
+
alt: c.title,
|
|
1922
1922
|
className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
|
|
1923
|
-
loading:
|
|
1923
|
+
loading: u === 0 ? "eager" : "lazy"
|
|
1924
1924
|
}
|
|
1925
1925
|
)
|
|
1926
1926
|
] }),
|
|
1927
|
-
|
|
1928
|
-
/* @__PURE__ */ e("h2", { className: "text-2xl font-bold text-white md:text-3xl", children:
|
|
1929
|
-
|
|
1930
|
-
|
|
1927
|
+
c.showOverlay && /* @__PURE__ */ o("div", { className: "absolute inset-0 flex flex-col justify-end bg-linear-to-t from-black/60 to-transparent p-6 md:p-10", children: [
|
|
1928
|
+
/* @__PURE__ */ e("h2", { className: "text-2xl font-bold text-white md:text-3xl", children: c.title }),
|
|
1929
|
+
c.description && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-gray-200 md:text-base", children: c.description }),
|
|
1930
|
+
c.cta && /* @__PURE__ */ e(
|
|
1931
1931
|
"a",
|
|
1932
1932
|
{
|
|
1933
|
-
href:
|
|
1933
|
+
href: c.cta.href,
|
|
1934
1934
|
className: "mt-4 inline-block self-start rounded-md bg-brand-primary px-5 py-2 text-sm font-semibold text-white transition hover:opacity-90",
|
|
1935
|
-
children:
|
|
1935
|
+
children: c.cta.label
|
|
1936
1936
|
}
|
|
1937
1937
|
)
|
|
1938
1938
|
] })
|
|
1939
1939
|
]
|
|
1940
1940
|
},
|
|
1941
|
-
|
|
1941
|
+
c.id
|
|
1942
1942
|
)) }),
|
|
1943
|
-
t.length > 1 && /* @__PURE__ */
|
|
1943
|
+
t.length > 1 && /* @__PURE__ */ o(P, { children: [
|
|
1944
1944
|
/* @__PURE__ */ e(
|
|
1945
1945
|
"button",
|
|
1946
1946
|
{
|
|
@@ -1960,24 +1960,24 @@ const at = N(
|
|
|
1960
1960
|
}
|
|
1961
1961
|
)
|
|
1962
1962
|
] }),
|
|
1963
|
-
t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((
|
|
1963
|
+
t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((c, u) => /* @__PURE__ */ e(
|
|
1964
1964
|
"button",
|
|
1965
1965
|
{
|
|
1966
|
-
onClick: () => b(
|
|
1966
|
+
onClick: () => b(u),
|
|
1967
1967
|
className: "min-w-11 min-h-6 flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-full group",
|
|
1968
|
-
"aria-label": `Ir para slide ${
|
|
1969
|
-
"aria-current":
|
|
1968
|
+
"aria-label": `Ir para slide ${u + 1}`,
|
|
1969
|
+
"aria-current": u === l,
|
|
1970
1970
|
children: /* @__PURE__ */ e(
|
|
1971
1971
|
"span",
|
|
1972
1972
|
{
|
|
1973
|
-
className:
|
|
1973
|
+
className: i(
|
|
1974
1974
|
"block rounded-full transition-all",
|
|
1975
|
-
|
|
1975
|
+
u === l ? "h-1 w-3 bg-white" : "h-1 w-1 bg-white/40 group-hover:bg-white/60"
|
|
1976
1976
|
)
|
|
1977
1977
|
}
|
|
1978
1978
|
)
|
|
1979
1979
|
},
|
|
1980
|
-
|
|
1980
|
+
u
|
|
1981
1981
|
)) })
|
|
1982
1982
|
]
|
|
1983
1983
|
}
|
|
@@ -1991,12 +1991,12 @@ function rt({
|
|
|
1991
1991
|
viewport: r = !0,
|
|
1992
1992
|
...n
|
|
1993
1993
|
}) {
|
|
1994
|
-
return /* @__PURE__ */
|
|
1995
|
-
|
|
1994
|
+
return /* @__PURE__ */ o(
|
|
1995
|
+
D.Root,
|
|
1996
1996
|
{
|
|
1997
1997
|
"data-slot": "navigation-menu",
|
|
1998
1998
|
"data-viewport": r,
|
|
1999
|
-
className:
|
|
1999
|
+
className: i(
|
|
2000
2000
|
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2001
2001
|
a
|
|
2002
2002
|
),
|
|
@@ -2008,15 +2008,15 @@ function rt({
|
|
|
2008
2008
|
}
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function it({
|
|
2012
2012
|
className: a,
|
|
2013
2013
|
...t
|
|
2014
2014
|
}) {
|
|
2015
2015
|
return /* @__PURE__ */ e(
|
|
2016
|
-
|
|
2016
|
+
D.List,
|
|
2017
2017
|
{
|
|
2018
2018
|
"data-slot": "navigation-menu-list",
|
|
2019
|
-
className:
|
|
2019
|
+
className: i(
|
|
2020
2020
|
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
2021
2021
|
a
|
|
2022
2022
|
),
|
|
@@ -2029,15 +2029,15 @@ function H({
|
|
|
2029
2029
|
...t
|
|
2030
2030
|
}) {
|
|
2031
2031
|
return /* @__PURE__ */ e(
|
|
2032
|
-
|
|
2032
|
+
D.Item,
|
|
2033
2033
|
{
|
|
2034
2034
|
"data-slot": "navigation-menu-item",
|
|
2035
|
-
className:
|
|
2035
|
+
className: i("relative", a),
|
|
2036
2036
|
...t
|
|
2037
2037
|
}
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const ot = I(
|
|
2041
2041
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
2042
2042
|
);
|
|
2043
2043
|
function nt({
|
|
@@ -2045,17 +2045,17 @@ function nt({
|
|
|
2045
2045
|
children: t,
|
|
2046
2046
|
...r
|
|
2047
2047
|
}) {
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
|
|
2048
|
+
return /* @__PURE__ */ o(
|
|
2049
|
+
D.Trigger,
|
|
2050
2050
|
{
|
|
2051
2051
|
"data-slot": "navigation-menu-trigger",
|
|
2052
|
-
className:
|
|
2052
|
+
className: i(ot(), "group", a),
|
|
2053
2053
|
...r,
|
|
2054
2054
|
children: [
|
|
2055
2055
|
t,
|
|
2056
2056
|
" ",
|
|
2057
2057
|
/* @__PURE__ */ e(
|
|
2058
|
-
|
|
2058
|
+
_,
|
|
2059
2059
|
{
|
|
2060
2060
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
2061
2061
|
"aria-hidden": "true"
|
|
@@ -2070,10 +2070,10 @@ function st({
|
|
|
2070
2070
|
...t
|
|
2071
2071
|
}) {
|
|
2072
2072
|
return /* @__PURE__ */ e(
|
|
2073
|
-
|
|
2073
|
+
D.Content,
|
|
2074
2074
|
{
|
|
2075
2075
|
"data-slot": "navigation-menu-content",
|
|
2076
|
-
className:
|
|
2076
|
+
className: i(
|
|
2077
2077
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
2078
2078
|
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
2079
2079
|
a
|
|
@@ -2089,14 +2089,14 @@ function lt({
|
|
|
2089
2089
|
return /* @__PURE__ */ e(
|
|
2090
2090
|
"div",
|
|
2091
2091
|
{
|
|
2092
|
-
className:
|
|
2092
|
+
className: i(
|
|
2093
2093
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2094
2094
|
),
|
|
2095
2095
|
children: /* @__PURE__ */ e(
|
|
2096
|
-
|
|
2096
|
+
D.Viewport,
|
|
2097
2097
|
{
|
|
2098
2098
|
"data-slot": "navigation-menu-viewport",
|
|
2099
|
-
className:
|
|
2099
|
+
className: i(
|
|
2100
2100
|
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
2101
2101
|
a
|
|
2102
2102
|
),
|
|
@@ -2111,10 +2111,10 @@ function $({
|
|
|
2111
2111
|
...t
|
|
2112
2112
|
}) {
|
|
2113
2113
|
return /* @__PURE__ */ e(
|
|
2114
|
-
|
|
2114
|
+
D.Link,
|
|
2115
2115
|
{
|
|
2116
2116
|
"data-slot": "navigation-menu-link",
|
|
2117
|
-
className:
|
|
2117
|
+
className: i(
|
|
2118
2118
|
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
2119
2119
|
a
|
|
2120
2120
|
),
|
|
@@ -2126,7 +2126,7 @@ function dt({ items: a }) {
|
|
|
2126
2126
|
return /* @__PURE__ */ e("ul", { className: "grid gap-0.5 p-2 min-w-[180px]", role: "none", children: a.map(
|
|
2127
2127
|
(t) => {
|
|
2128
2128
|
var r;
|
|
2129
|
-
return (r = t.children) != null && r.length ? /* @__PURE__ */
|
|
2129
|
+
return (r = t.children) != null && r.length ? /* @__PURE__ */ o("li", { role: "none", children: [
|
|
2130
2130
|
/* @__PURE__ */ e(
|
|
2131
2131
|
"span",
|
|
2132
2132
|
{
|
|
@@ -2155,37 +2155,37 @@ function dt({ items: a }) {
|
|
|
2155
2155
|
) });
|
|
2156
2156
|
}
|
|
2157
2157
|
function Y({ item: a, depth: t = 0 }) {
|
|
2158
|
-
var
|
|
2158
|
+
var d;
|
|
2159
2159
|
const [r, n] = k(!1);
|
|
2160
|
-
return !((
|
|
2160
|
+
return !((d = a.children) != null && d.length) ? /* @__PURE__ */ e(Oe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2161
2161
|
"a",
|
|
2162
2162
|
{
|
|
2163
2163
|
href: a.href ?? "#",
|
|
2164
|
-
className:
|
|
2164
|
+
className: i(
|
|
2165
2165
|
"flex min-h-[44px] items-center rounded py-2 text-sm text-[var(--foreground)] hover:text-[var(--brand-primary)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
2166
2166
|
t > 0 && "pl-4 text-xs text-[var(--muted-foreground)]"
|
|
2167
2167
|
),
|
|
2168
2168
|
children: a.label
|
|
2169
2169
|
}
|
|
2170
|
-
) }) : /* @__PURE__ */
|
|
2171
|
-
/* @__PURE__ */
|
|
2170
|
+
) }) : /* @__PURE__ */ o("div", { children: [
|
|
2171
|
+
/* @__PURE__ */ o(
|
|
2172
2172
|
"button",
|
|
2173
2173
|
{
|
|
2174
2174
|
type: "button",
|
|
2175
2175
|
"aria-expanded": r,
|
|
2176
2176
|
"aria-controls": `mobile-nav-${a.id}`,
|
|
2177
2177
|
onClick: () => n((l) => !l),
|
|
2178
|
-
className:
|
|
2178
|
+
className: i(
|
|
2179
2179
|
"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)]",
|
|
2180
2180
|
t > 0 && "pl-4"
|
|
2181
2181
|
),
|
|
2182
2182
|
children: [
|
|
2183
2183
|
/* @__PURE__ */ e("span", { children: a.label }),
|
|
2184
2184
|
/* @__PURE__ */ e(
|
|
2185
|
-
|
|
2185
|
+
K,
|
|
2186
2186
|
{
|
|
2187
2187
|
"aria-hidden": "true",
|
|
2188
|
-
className:
|
|
2188
|
+
className: i(
|
|
2189
2189
|
"h-4 w-4 text-[var(--muted-foreground)] transition-transform duration-200",
|
|
2190
2190
|
r && "rotate-180"
|
|
2191
2191
|
)
|
|
@@ -2204,23 +2204,23 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2204
2204
|
)
|
|
2205
2205
|
] });
|
|
2206
2206
|
}
|
|
2207
|
-
const ct =
|
|
2208
|
-
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: s, className:
|
|
2207
|
+
const ct = w(
|
|
2208
|
+
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: s, className: d, ...l }, m) => /* @__PURE__ */ e(
|
|
2209
2209
|
"header",
|
|
2210
2210
|
{
|
|
2211
|
-
ref:
|
|
2212
|
-
className:
|
|
2211
|
+
ref: m,
|
|
2212
|
+
className: i(
|
|
2213
2213
|
"sticky top-0 z-40 border-b border-[var(--border)] bg-[var(--card)]",
|
|
2214
|
-
|
|
2214
|
+
d
|
|
2215
2215
|
),
|
|
2216
2216
|
...l,
|
|
2217
|
-
children: /* @__PURE__ */
|
|
2218
|
-
/* @__PURE__ */
|
|
2217
|
+
children: /* @__PURE__ */ o("div", { className: "px-4", children: [
|
|
2218
|
+
/* @__PURE__ */ o("div", { className: "flex items-center py-3 gap-4", children: [
|
|
2219
2219
|
t && /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: t }),
|
|
2220
2220
|
n && /* @__PURE__ */ e("div", { className: "hidden flex-1 md:flex", children: n }),
|
|
2221
2221
|
/* @__PURE__ */ e("div", { className: "flex-1 md:hidden", "aria-hidden": "true" }),
|
|
2222
2222
|
r && /* @__PURE__ */ e("div", { className: "flex items-center", children: r }),
|
|
2223
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ o(Qe, { children: [
|
|
2224
2224
|
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2225
2225
|
"button",
|
|
2226
2226
|
{
|
|
@@ -2230,8 +2230,8 @@ const ct = N(
|
|
|
2230
2230
|
children: /* @__PURE__ */ e(xe, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
2231
2231
|
}
|
|
2232
2232
|
) }),
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ o(Ye, { side: "left", className: "flex flex-col p-0", children: [
|
|
2234
|
+
/* @__PURE__ */ o(Ze, { className: "border-b border-[var(--border)] px-5 py-4", children: [
|
|
2235
2235
|
/* @__PURE__ */ e(Je, { className: "sr-only", children: "Menu de navegação" }),
|
|
2236
2236
|
t && /* @__PURE__ */ e("div", { className: "flex items-center", children: t })
|
|
2237
2237
|
] }),
|
|
@@ -2241,7 +2241,7 @@ const ct = N(
|
|
|
2241
2241
|
{
|
|
2242
2242
|
"aria-label": "Menu principal",
|
|
2243
2243
|
className: "flex-1 overflow-y-auto px-5 py-3",
|
|
2244
|
-
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((
|
|
2244
|
+
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((f) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Y, { item: f }) }, f.id)) })
|
|
2245
2245
|
}
|
|
2246
2246
|
),
|
|
2247
2247
|
s && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: s })
|
|
@@ -2253,20 +2253,20 @@ const ct = N(
|
|
|
2253
2253
|
{
|
|
2254
2254
|
"aria-label": "Menu principal",
|
|
2255
2255
|
className: "hidden border-t border-[var(--border)] py-2 md:flex",
|
|
2256
|
-
children: /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(
|
|
2257
|
-
(
|
|
2256
|
+
children: /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(it, { children: a.map(
|
|
2257
|
+
(f) => {
|
|
2258
2258
|
var g;
|
|
2259
|
-
return (g =
|
|
2260
|
-
/* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children:
|
|
2261
|
-
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items:
|
|
2262
|
-
] },
|
|
2259
|
+
return (g = f.children) != null && g.length ? /* @__PURE__ */ o(H, { children: [
|
|
2260
|
+
/* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: f.label }),
|
|
2261
|
+
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items: f.children }) })
|
|
2262
|
+
] }, f.id) : /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
2263
2263
|
$,
|
|
2264
2264
|
{
|
|
2265
|
-
href:
|
|
2265
|
+
href: f.href ?? "#",
|
|
2266
2266
|
className: "inline-flex h-9 items-center rounded-md px-4 text-sm font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
2267
|
-
children:
|
|
2267
|
+
children: f.label
|
|
2268
2268
|
}
|
|
2269
|
-
) },
|
|
2269
|
+
) }, f.id);
|
|
2270
2270
|
}
|
|
2271
2271
|
) }) })
|
|
2272
2272
|
}
|
|
@@ -2277,6 +2277,11 @@ const ct = N(
|
|
|
2277
2277
|
);
|
|
2278
2278
|
ct.displayName = "MegaMenu";
|
|
2279
2279
|
const ut = [
|
|
2280
|
+
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon: Ne, key: "instagram" },
|
|
2281
|
+
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon: we, key: "facebook" },
|
|
2282
|
+
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ye, key: "youtube" },
|
|
2283
|
+
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ke, key: "linkedin" }
|
|
2284
|
+
], mt = [
|
|
2280
2285
|
{
|
|
2281
2286
|
id: "catalogo",
|
|
2282
2287
|
title: "Catálogo",
|
|
@@ -2309,19 +2314,14 @@ const ut = [
|
|
|
2309
2314
|
{ label: "Sobre o APP", href: "/sobre-app" }
|
|
2310
2315
|
]
|
|
2311
2316
|
}
|
|
2312
|
-
], mt = [
|
|
2313
|
-
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon: Ne },
|
|
2314
|
-
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon: we },
|
|
2315
|
-
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ye },
|
|
2316
|
-
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ke }
|
|
2317
2317
|
];
|
|
2318
2318
|
function ft({ onSubmit: a }) {
|
|
2319
2319
|
const [t, r] = k(""), [n, s] = k(!1);
|
|
2320
|
-
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__ */
|
|
2320
|
+
return /* @__PURE__ */ e("div", { className: "mx-auto w-full bg-[var(--brand-primary)] py-8 md:py-10 lg:py-12", style: { maxWidth: "var(--container-max)" }, children: /* @__PURE__ */ o("div", { className: "mx-auto max-w-lg px-[var(--container-px)] text-center", children: [
|
|
2321
2321
|
/* @__PURE__ */ e(ze, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
2322
2322
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
|
|
2323
2323
|
/* @__PURE__ */ e("p", { className: "mt-2 text-sm", style: { color: "rgba(255,255,255,0.85)" }, children: "Cadastre-se e fique por dentro dos lançamentos. Sem spam." }),
|
|
2324
|
-
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */
|
|
2324
|
+
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (l) => {
|
|
2325
2325
|
l.preventDefault(), t && (a == null || a(t), s(!0), r(""));
|
|
2326
2326
|
}, className: "mt-6 flex flex-col gap-2 sm:flex-row", children: [
|
|
2327
2327
|
/* @__PURE__ */ e("label", { htmlFor: "footer-newsletter-email", className: "sr-only", children: "Seu e-mail" }),
|
|
@@ -2351,8 +2351,8 @@ function ft({ onSubmit: a }) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
function gt({ title: a, links: t }) {
|
|
2353
2353
|
const [r, n] = k(!1);
|
|
2354
|
-
return /* @__PURE__ */
|
|
2355
|
-
/* @__PURE__ */
|
|
2354
|
+
return /* @__PURE__ */ o("div", { className: "border-b border-[var(--border)] md:border-none", children: [
|
|
2355
|
+
/* @__PURE__ */ o(
|
|
2356
2356
|
"button",
|
|
2357
2357
|
{
|
|
2358
2358
|
type: "button",
|
|
@@ -2362,10 +2362,10 @@ function gt({ title: a, links: t }) {
|
|
|
2362
2362
|
children: [
|
|
2363
2363
|
a,
|
|
2364
2364
|
/* @__PURE__ */ e(
|
|
2365
|
-
|
|
2365
|
+
K,
|
|
2366
2366
|
{
|
|
2367
2367
|
"aria-hidden": "true",
|
|
2368
|
-
className:
|
|
2368
|
+
className: i("h-4 w-4 text-[var(--muted-foreground)] transition-transform duration-200", r && "rotate-180")
|
|
2369
2369
|
}
|
|
2370
2370
|
)
|
|
2371
2371
|
]
|
|
@@ -2375,7 +2375,7 @@ function gt({ title: a, links: t }) {
|
|
|
2375
2375
|
/* @__PURE__ */ e(
|
|
2376
2376
|
"ul",
|
|
2377
2377
|
{
|
|
2378
|
-
className:
|
|
2378
|
+
className: i(
|
|
2379
2379
|
"flex flex-col gap-2 overflow-hidden transition-all duration-200 md:mt-3 md:max-h-none md:pb-0",
|
|
2380
2380
|
r ? "max-h-96 pb-4" : "max-h-0 md:max-h-none"
|
|
2381
2381
|
),
|
|
@@ -2392,48 +2392,52 @@ function gt({ title: a, links: t }) {
|
|
|
2392
2392
|
)
|
|
2393
2393
|
] });
|
|
2394
2394
|
}
|
|
2395
|
-
const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: n, appStoreUrl: s, className:
|
|
2396
|
-
const [
|
|
2397
|
-
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2400
|
-
const
|
|
2401
|
-
|
|
2395
|
+
const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: n, appStoreUrl: s, orgInfo: d, className: l, ...m }) => {
|
|
2396
|
+
const [f, g] = k("light");
|
|
2397
|
+
M(() => {
|
|
2398
|
+
const u = document.documentElement;
|
|
2399
|
+
g(u.getAttribute("data-theme") ?? "light");
|
|
2400
|
+
const N = new MutationObserver(() => {
|
|
2401
|
+
g(u.getAttribute("data-theme") ?? "light");
|
|
2402
2402
|
});
|
|
2403
|
-
return
|
|
2403
|
+
return N.observe(u, { attributes: !0, attributeFilter: ["data-theme"] }), () => N.disconnect();
|
|
2404
2404
|
}, []);
|
|
2405
|
-
const
|
|
2406
|
-
|
|
2405
|
+
const v = 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", p = a === "perabook" ? "PeraBook" : "Elo Editora", b = ut.map((u) => ({
|
|
2406
|
+
...u,
|
|
2407
|
+
href: (d == null ? void 0 : d[u.key]) ?? u.href
|
|
2408
|
+
})).filter((u) => u.href), x = (d == null ? void 0 : d.email) ?? "contato@grupoeloediorial.com.br", h = (d == null ? void 0 : d.phone) ?? "(11) 3000-0000", c = d == null ? void 0 : d.fullAddress;
|
|
2409
|
+
return /* @__PURE__ */ o(
|
|
2407
2410
|
"footer",
|
|
2408
2411
|
{
|
|
2409
|
-
className:
|
|
2412
|
+
className: i("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]", l),
|
|
2410
2413
|
"aria-label": "Rodapé do site",
|
|
2411
|
-
...
|
|
2414
|
+
...m,
|
|
2412
2415
|
children: [
|
|
2413
2416
|
r !== void 0 ? r : /* @__PURE__ */ e(ft, { onSubmit: t }),
|
|
2414
|
-
/* @__PURE__ */
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
+
/* @__PURE__ */ o("div", { className: "mx-auto max-w-screen-xl px-4", children: [
|
|
2418
|
+
/* @__PURE__ */ o("div", { className: "py-10 md:grid md:grid-cols-5 md:gap-8", children: [
|
|
2419
|
+
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
2417
2420
|
/* @__PURE__ */ e(
|
|
2418
2421
|
"img",
|
|
2419
2422
|
{
|
|
2420
|
-
src:
|
|
2421
|
-
alt:
|
|
2423
|
+
src: v,
|
|
2424
|
+
alt: p,
|
|
2422
2425
|
width: 120,
|
|
2423
2426
|
height: 40,
|
|
2424
2427
|
className: "h-10 w-auto object-contain"
|
|
2425
2428
|
}
|
|
2426
2429
|
),
|
|
2427
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ o("div", { className: "mt-6 space-y-1 text-sm", children: [
|
|
2428
2431
|
/* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: "Atendimento:" }),
|
|
2429
|
-
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children:
|
|
2430
|
-
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children:
|
|
2432
|
+
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: x }),
|
|
2433
|
+
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: h }),
|
|
2434
|
+
c && /* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: c })
|
|
2431
2435
|
] })
|
|
2432
2436
|
] }),
|
|
2433
|
-
|
|
2434
|
-
/* @__PURE__ */
|
|
2437
|
+
mt.map((u) => /* @__PURE__ */ e(gt, { title: u.title, links: u.links }, u.id)),
|
|
2438
|
+
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
2435
2439
|
/* @__PURE__ */ e("p", { className: "text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Baixe nosso app" }),
|
|
2436
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ o("div", { className: "mt-3 flex flex-col gap-2", children: [
|
|
2437
2441
|
/* @__PURE__ */ e(
|
|
2438
2442
|
"a",
|
|
2439
2443
|
{
|
|
@@ -2476,27 +2480,27 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2476
2480
|
)
|
|
2477
2481
|
] }),
|
|
2478
2482
|
/* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Compartilhe" }),
|
|
2479
|
-
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children:
|
|
2483
|
+
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: b.map(({ label: u, href: N, Icon: S }) => /* @__PURE__ */ e(
|
|
2480
2484
|
"a",
|
|
2481
2485
|
{
|
|
2482
|
-
href:
|
|
2486
|
+
href: N,
|
|
2483
2487
|
target: "_blank",
|
|
2484
2488
|
rel: "noopener noreferrer",
|
|
2485
|
-
"aria-label":
|
|
2489
|
+
"aria-label": u,
|
|
2486
2490
|
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)]",
|
|
2487
|
-
children: /* @__PURE__ */ e(
|
|
2491
|
+
children: /* @__PURE__ */ e(S, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
2488
2492
|
},
|
|
2489
|
-
|
|
2493
|
+
u
|
|
2490
2494
|
)) })
|
|
2491
2495
|
] })
|
|
2492
2496
|
] }),
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
/* @__PURE__ */
|
|
2497
|
+
/* @__PURE__ */ o("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: [
|
|
2498
|
+
/* @__PURE__ */ o("p", { children: [
|
|
2495
2499
|
"© ",
|
|
2496
2500
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
2497
2501
|
" Grupo ELO Editorial. Todos os direitos reservados."
|
|
2498
2502
|
] }),
|
|
2499
|
-
/* @__PURE__ */
|
|
2503
|
+
/* @__PURE__ */ o("nav", { "aria-label": "Links legais", className: "flex flex-wrap gap-4", children: [
|
|
2500
2504
|
/* @__PURE__ */ e("a", { href: "/editora/privacidade/politica", className: "transition-colors hover:text-[var(--foreground)]", children: "Política de Privacidade" }),
|
|
2501
2505
|
/* @__PURE__ */ e("a", { href: "/editora/privacidade/cookies", className: "transition-colors hover:text-[var(--foreground)]", children: "Cookies" }),
|
|
2502
2506
|
/* @__PURE__ */ e("a", { href: "/editora/privacidade/demais", className: "transition-colors hover:text-[var(--foreground)]", children: "Termos de Uso" })
|
|
@@ -2513,7 +2517,7 @@ function aa({ children: a, className: t }) {
|
|
|
2513
2517
|
"div",
|
|
2514
2518
|
{
|
|
2515
2519
|
"data-slot": "grid",
|
|
2516
|
-
className:
|
|
2520
|
+
className: i(
|
|
2517
2521
|
"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-[var(--grid-gutter)]",
|
|
2518
2522
|
t
|
|
2519
2523
|
),
|
|
@@ -2530,32 +2534,32 @@ const vt = {
|
|
|
2530
2534
|
6: "col-span-6"
|
|
2531
2535
|
};
|
|
2532
2536
|
function ra({ children: a, span: t, className: r }) {
|
|
2533
|
-
return /* @__PURE__ */ e("div", { "data-slot": "col", className:
|
|
2537
|
+
return /* @__PURE__ */ e("div", { "data-slot": "col", className: i("min-w-0", t && vt[t], r), children: a });
|
|
2534
2538
|
}
|
|
2535
2539
|
export {
|
|
2536
2540
|
Vt as Accordion,
|
|
2537
2541
|
Gt as AccordionContent,
|
|
2538
2542
|
Ft as AccordionItem,
|
|
2539
2543
|
qt as AccordionTrigger,
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2544
|
+
Ae as Avatar,
|
|
2545
|
+
L as Badge,
|
|
2546
|
+
_t as Breadcrumb,
|
|
2547
|
+
Rt as BreadcrumbItem,
|
|
2548
|
+
Tt as BreadcrumbLink,
|
|
2549
|
+
Et as BreadcrumbList,
|
|
2550
|
+
Bt as BreadcrumbPage,
|
|
2547
2551
|
$t as BreadcrumbSeparator,
|
|
2548
2552
|
C as Button,
|
|
2549
|
-
|
|
2553
|
+
At as Checkbox,
|
|
2550
2554
|
ra as Col,
|
|
2551
2555
|
et as Container,
|
|
2552
|
-
|
|
2556
|
+
Kt as DialogContent,
|
|
2553
2557
|
Jt as DialogDescription,
|
|
2554
2558
|
Yt as DialogFooter,
|
|
2555
2559
|
Xt as DialogHeader,
|
|
2556
2560
|
Zt as DialogTitle,
|
|
2557
|
-
|
|
2558
|
-
|
|
2561
|
+
Ot as DialogTrigger,
|
|
2562
|
+
Le as Divider,
|
|
2559
2563
|
Qe as Drawer,
|
|
2560
2564
|
X as EmptyState,
|
|
2561
2565
|
qe as ErrorState,
|
|
@@ -2567,19 +2571,19 @@ export {
|
|
|
2567
2571
|
zt as Input,
|
|
2568
2572
|
ct as MegaMenu,
|
|
2569
2573
|
Wt as Modal,
|
|
2570
|
-
|
|
2571
|
-
|
|
2574
|
+
Te as PriceDisplay,
|
|
2575
|
+
B as ProductCard,
|
|
2572
2576
|
Ge as ProductGrid,
|
|
2573
2577
|
la as ProgressBar,
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2578
|
+
Be as QuantitySelector,
|
|
2579
|
+
It as RadioGroup,
|
|
2580
|
+
Pt as RadioGroupItem,
|
|
2581
|
+
T as Rating,
|
|
2582
|
+
Re as SearchBar,
|
|
2579
2583
|
Ct as Select,
|
|
2580
2584
|
jt as SelectContent,
|
|
2581
|
-
|
|
2582
|
-
|
|
2585
|
+
Mt as SelectItem,
|
|
2586
|
+
Dt as SelectTrigger,
|
|
2583
2587
|
St as SelectValue,
|
|
2584
2588
|
Ye as SheetContent,
|
|
2585
2589
|
ta as SheetDescription,
|
|
@@ -2587,19 +2591,19 @@ export {
|
|
|
2587
2591
|
Ze as SheetHeader,
|
|
2588
2592
|
Je as SheetTitle,
|
|
2589
2593
|
We as SheetTrigger,
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2594
|
+
Pe as Spinner,
|
|
2595
|
+
De as Textarea,
|
|
2596
|
+
Lt as Toggle,
|
|
2593
2597
|
Ht as Tooltip,
|
|
2594
2598
|
Qt as TooltipContent,
|
|
2595
2599
|
Ve as TooltipProvider,
|
|
2596
2600
|
Ut as TooltipTrigger,
|
|
2597
2601
|
tt as TopAccessibilityBar,
|
|
2598
|
-
|
|
2602
|
+
Me as avatarVariants,
|
|
2599
2603
|
je as badgeVariants,
|
|
2600
2604
|
Se as buttonVariants,
|
|
2601
|
-
|
|
2602
|
-
|
|
2605
|
+
i as cn,
|
|
2606
|
+
Ie as spinnerVariants,
|
|
2603
2607
|
na as toast
|
|
2604
2608
|
};
|
|
2605
2609
|
//# sourceMappingURL=index.js.map
|