@grupo-elo-editorial/shared-ui-react 1.3.12 → 1.3.13
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 +6 -2
- package/dist/index.js +566 -566
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { twMerge as
|
|
2
|
+
import { clsx as ee } from "clsx";
|
|
3
|
+
import { twMerge as te } from "tailwind-merge";
|
|
4
4
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
5
|
-
import { forwardRef as w, useState as
|
|
6
|
-
import { Loader2 as
|
|
7
|
-
import { cva as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
5
|
+
import { forwardRef as w, useState as z, useEffect as M } from "react";
|
|
6
|
+
import { Loader2 as I, User as ae, Star as re, CheckIcon as Q, ChevronDownIcon as E, ChevronUpIcon as ie, CircleIcon as oe, ShoppingCart as R, Heart as ne, Search as W, X as se, Minus as le, Plus as de, ChevronRight as O, FileX as ce, Package as ue, AlertCircle as me, RefreshCw as fe, Home as ge, XIcon as K, Accessibility as pe, ZoomOut as ve, ZoomIn as be, Moon as he, Sun as xe, ChevronLeft as Ne, Menu as we, ChevronDown as X, Instagram as ye, Facebook as ke, Youtube as ze, Linkedin as Ce, Mail as Se } from "lucide-react";
|
|
7
|
+
import { cva as A } from "class-variance-authority";
|
|
8
|
+
import * as C from "@radix-ui/react-select";
|
|
9
|
+
import * as U from "@radix-ui/react-checkbox";
|
|
10
|
+
import * as T from "@radix-ui/react-radio-group";
|
|
11
11
|
import * as q from "@radix-ui/react-switch";
|
|
12
|
-
import { Slot as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import { toast as
|
|
16
|
-
import { Progress as
|
|
12
|
+
import { Slot as De } from "@radix-ui/react-slot";
|
|
13
|
+
import * as P from "@radix-ui/react-accordion";
|
|
14
|
+
import * as j from "@radix-ui/react-tooltip";
|
|
15
|
+
import { toast as la } from "sonner";
|
|
16
|
+
import { Progress as ca } from "@radix-ui/react-progress";
|
|
17
17
|
import * as y from "@radix-ui/react-dialog";
|
|
18
|
-
import * as
|
|
18
|
+
import * as D from "@radix-ui/react-navigation-menu";
|
|
19
19
|
function i(...a) {
|
|
20
|
-
return
|
|
20
|
+
return te(ee(a));
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const je = A(
|
|
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,39 +45,39 @@ const Se = P(
|
|
|
45
45
|
size: "md"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
),
|
|
48
|
+
), S = w(
|
|
49
49
|
({
|
|
50
50
|
className: a,
|
|
51
51
|
variant: t,
|
|
52
52
|
size: r,
|
|
53
|
-
fullWidth:
|
|
53
|
+
fullWidth: s,
|
|
54
54
|
isLoading: l,
|
|
55
|
-
leftIcon:
|
|
55
|
+
leftIcon: n,
|
|
56
56
|
rightIcon: d,
|
|
57
57
|
children: m,
|
|
58
|
-
disabled:
|
|
59
|
-
...
|
|
58
|
+
disabled: u,
|
|
59
|
+
...f
|
|
60
60
|
}, v) => /* @__PURE__ */ e(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
|
-
className: i(
|
|
63
|
+
className: i(je({ variant: t, size: r, fullWidth: s, className: a })),
|
|
64
64
|
ref: v,
|
|
65
|
-
disabled:
|
|
66
|
-
...
|
|
65
|
+
disabled: u || l,
|
|
66
|
+
...f,
|
|
67
67
|
children: l ? /* @__PURE__ */ o(L, { children: [
|
|
68
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(I, { className: "h-4 w-4 animate-spin" }),
|
|
69
69
|
m && /* @__PURE__ */ e("span", { children: m })
|
|
70
70
|
] }) : /* @__PURE__ */ o(L, { children: [
|
|
71
|
-
|
|
71
|
+
n && /* @__PURE__ */ e("span", { className: "inline-flex", children: n }),
|
|
72
72
|
m,
|
|
73
73
|
d && /* @__PURE__ */ e("span", { className: "inline-flex", children: d })
|
|
74
74
|
] })
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
);
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
({ className: a, error: t, helperText: r, ...
|
|
78
|
+
S.displayName = "Button";
|
|
79
|
+
const Me = w(
|
|
80
|
+
({ className: a, error: t, helperText: r, ...s }, l) => /* @__PURE__ */ o("div", { className: "w-full", children: [
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
"textarea",
|
|
83
83
|
{
|
|
@@ -91,7 +91,7 @@ const je = w(
|
|
|
91
91
|
a
|
|
92
92
|
),
|
|
93
93
|
ref: l,
|
|
94
|
-
...
|
|
94
|
+
...s
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
97
|
r && /* @__PURE__ */ e(
|
|
@@ -106,8 +106,8 @@ const je = w(
|
|
|
106
106
|
)
|
|
107
107
|
] })
|
|
108
108
|
);
|
|
109
|
-
|
|
110
|
-
const
|
|
109
|
+
Me.displayName = "Textarea";
|
|
110
|
+
const Pe = A(
|
|
111
111
|
"inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
@@ -132,15 +132,15 @@ const De = P(
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
), _ = w(
|
|
135
|
-
({ className: a, variant: t, size: r, icon:
|
|
135
|
+
({ className: a, variant: t, size: r, icon: s, onRemove: l, children: n, ...d }, m) => /* @__PURE__ */ o(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
138
|
ref: m,
|
|
139
|
-
className: i(
|
|
139
|
+
className: i(Pe({ variant: t, size: r }), a),
|
|
140
140
|
...d,
|
|
141
141
|
children: [
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
s && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: s }),
|
|
143
|
+
n,
|
|
144
144
|
l && /* @__PURE__ */ e(
|
|
145
145
|
"button",
|
|
146
146
|
{
|
|
@@ -155,7 +155,7 @@ const De = P(
|
|
|
155
155
|
)
|
|
156
156
|
);
|
|
157
157
|
_.displayName = "Badge";
|
|
158
|
-
const
|
|
158
|
+
const Ae = A(
|
|
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,37 +170,37 @@ const Me = P(
|
|
|
170
170
|
size: "md"
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
),
|
|
174
|
-
({ className: a, size: t, src: r, alt:
|
|
175
|
-
const [
|
|
173
|
+
), Be = w(
|
|
174
|
+
({ className: a, size: t, src: r, alt: s, name: l, showStatus: n, statusType: d = "online", ...m }, u) => {
|
|
175
|
+
const [f, v] = z(!1), g = (h) => h.split(" ").map((c) => c[0]).join("").toUpperCase().slice(0, 2), b = {
|
|
176
176
|
online: "bg-[var(--success)]",
|
|
177
177
|
offline: "bg-[var(--muted-foreground)]",
|
|
178
178
|
away: "bg-[var(--warning)]",
|
|
179
179
|
busy: "bg-[var(--destructive)]"
|
|
180
|
-
},
|
|
180
|
+
}, N = {
|
|
181
181
|
sm: "h-2 w-2 border",
|
|
182
182
|
md: "h-2.5 w-2.5 border-2",
|
|
183
183
|
lg: "h-3 w-3 border-2",
|
|
184
184
|
xl: "h-4 w-4 border-2"
|
|
185
185
|
};
|
|
186
|
-
return /* @__PURE__ */ o("div", { ref:
|
|
187
|
-
r && !
|
|
186
|
+
return /* @__PURE__ */ o("div", { ref: u, className: i(Ae({ size: t }), "relative", a), children: [
|
|
187
|
+
r && !f ? /* @__PURE__ */ e(
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
190
190
|
src: r,
|
|
191
|
-
alt:
|
|
191
|
+
alt: s || l || "Avatar",
|
|
192
192
|
onError: () => v(!0),
|
|
193
193
|
className: "h-full w-full object-cover",
|
|
194
194
|
...m
|
|
195
195
|
}
|
|
196
|
-
) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
197
|
-
|
|
196
|
+
) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children: g(l) }) : /* @__PURE__ */ e(ae, { className: "h-1/2 w-1/2" }),
|
|
197
|
+
n && /* @__PURE__ */ e(
|
|
198
198
|
"span",
|
|
199
199
|
{
|
|
200
200
|
className: i(
|
|
201
201
|
"absolute bottom-0 right-0 rounded-full border-[var(--background)]",
|
|
202
202
|
b[d],
|
|
203
|
-
|
|
203
|
+
N[t || "md"]
|
|
204
204
|
),
|
|
205
205
|
"aria-label": `Status: ${d}`
|
|
206
206
|
}
|
|
@@ -208,8 +208,8 @@ const Me = P(
|
|
|
208
208
|
] });
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
|
-
|
|
212
|
-
const
|
|
211
|
+
Be.displayName = "Avatar";
|
|
212
|
+
const Le = A("animate-spin text-[var(--brand-primary)]", {
|
|
213
213
|
variants: {
|
|
214
214
|
size: {
|
|
215
215
|
sm: "h-4 w-4",
|
|
@@ -221,35 +221,35 @@ 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, ...
|
|
224
|
+
}), _e = w(
|
|
225
|
+
({ className: a, size: t, label: r, ...s }, l) => /* @__PURE__ */ o(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
228
228
|
ref: l,
|
|
229
229
|
role: "status",
|
|
230
230
|
"aria-label": r || "Loading",
|
|
231
231
|
className: i("inline-flex items-center justify-center", a),
|
|
232
|
-
...
|
|
232
|
+
...s,
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */ e(
|
|
234
|
+
/* @__PURE__ */ e(I, { className: i(Le({ size: t })) }),
|
|
235
235
|
/* @__PURE__ */ e("span", { className: "sr-only", children: r || "Loading" })
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
)
|
|
239
239
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
({ className: a, orientation: t = "horizontal", variant: r = "solid", text:
|
|
240
|
+
_e.displayName = "Spinner";
|
|
241
|
+
const Ee = w(
|
|
242
|
+
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: s, ...l }, n) => {
|
|
243
243
|
const d = {
|
|
244
244
|
solid: "border-solid",
|
|
245
245
|
dashed: "border-dashed",
|
|
246
246
|
dotted: "border-dotted"
|
|
247
247
|
};
|
|
248
|
-
return
|
|
248
|
+
return s && 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:
|
|
252
|
+
ref: n,
|
|
253
253
|
className: i(
|
|
254
254
|
"flex-1 border-[var(--border)]",
|
|
255
255
|
d[r]
|
|
@@ -257,7 +257,7 @@ const _e = w(
|
|
|
257
257
|
...l
|
|
258
258
|
}
|
|
259
259
|
),
|
|
260
|
-
/* @__PURE__ */ e("span", { className: "text-sm text-[var(--muted-foreground)]", children:
|
|
260
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-[var(--muted-foreground)]", children: s }),
|
|
261
261
|
/* @__PURE__ */ e(
|
|
262
262
|
"hr",
|
|
263
263
|
{
|
|
@@ -270,7 +270,7 @@ const _e = w(
|
|
|
270
270
|
] }) : /* @__PURE__ */ e(
|
|
271
271
|
"hr",
|
|
272
272
|
{
|
|
273
|
-
ref:
|
|
273
|
+
ref: n,
|
|
274
274
|
role: "separator",
|
|
275
275
|
"aria-orientation": t,
|
|
276
276
|
className: i(
|
|
@@ -284,36 +284,36 @@ const _e = w(
|
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
|
-
|
|
288
|
-
const
|
|
287
|
+
Ee.displayName = "Divider";
|
|
288
|
+
const $ = w(
|
|
289
289
|
({
|
|
290
290
|
className: a,
|
|
291
291
|
value: t = 0,
|
|
292
292
|
maxRating: r = 5,
|
|
293
|
-
size:
|
|
293
|
+
size: s = "md",
|
|
294
294
|
readonly: l = !1,
|
|
295
|
-
onChange:
|
|
295
|
+
onChange: n,
|
|
296
296
|
showValue: d = !1,
|
|
297
297
|
...m
|
|
298
|
-
},
|
|
299
|
-
const [
|
|
298
|
+
}, u) => {
|
|
299
|
+
const [f, v] = z(0), g = {
|
|
300
300
|
sm: "h-4 w-4",
|
|
301
301
|
md: "h-5 w-5",
|
|
302
302
|
lg: "h-6 w-6"
|
|
303
303
|
}, b = (h) => {
|
|
304
|
-
!l &&
|
|
305
|
-
},
|
|
304
|
+
!l && n && n(h);
|
|
305
|
+
}, N = f || t;
|
|
306
306
|
return /* @__PURE__ */ o(
|
|
307
307
|
"div",
|
|
308
308
|
{
|
|
309
|
-
ref:
|
|
309
|
+
ref: u,
|
|
310
310
|
className: i("inline-flex items-center gap-1", a),
|
|
311
311
|
role: "group",
|
|
312
312
|
"aria-label": `Rating: ${t} out of ${r}`,
|
|
313
313
|
...m,
|
|
314
314
|
children: [
|
|
315
315
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (h, c) => c + 1).map((h) => {
|
|
316
|
-
const c = h <=
|
|
316
|
+
const c = h <= N;
|
|
317
317
|
return /* @__PURE__ */ e(
|
|
318
318
|
"button",
|
|
319
319
|
{
|
|
@@ -328,10 +328,10 @@ const T = w(
|
|
|
328
328
|
),
|
|
329
329
|
"aria-label": `Rate ${h} out of ${r}`,
|
|
330
330
|
children: /* @__PURE__ */ e(
|
|
331
|
-
|
|
331
|
+
re,
|
|
332
332
|
{
|
|
333
333
|
className: i(
|
|
334
|
-
|
|
334
|
+
g[s],
|
|
335
335
|
"transition-all",
|
|
336
336
|
c ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
|
|
337
337
|
)
|
|
@@ -347,8 +347,8 @@ const T = w(
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
|
-
|
|
351
|
-
function
|
|
350
|
+
$.displayName = "Rating";
|
|
351
|
+
function St({ className: a, type: t, ...r }) {
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"input",
|
|
354
354
|
{
|
|
@@ -364,24 +364,24 @@ function zt({ className: a, type: t, ...r }) {
|
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Dt({
|
|
368
368
|
...a
|
|
369
369
|
}) {
|
|
370
|
-
return /* @__PURE__ */ e(
|
|
370
|
+
return /* @__PURE__ */ e(C.Root, { "data-slot": "select", ...a });
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function jt({
|
|
373
373
|
...a
|
|
374
374
|
}) {
|
|
375
|
-
return /* @__PURE__ */ e(
|
|
375
|
+
return /* @__PURE__ */ e(C.Value, { "data-slot": "select-value", ...a });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Mt({
|
|
378
378
|
className: a,
|
|
379
379
|
size: t = "default",
|
|
380
380
|
children: r,
|
|
381
|
-
...
|
|
381
|
+
...s
|
|
382
382
|
}) {
|
|
383
383
|
return /* @__PURE__ */ o(
|
|
384
|
-
|
|
384
|
+
C.Trigger,
|
|
385
385
|
{
|
|
386
386
|
"data-slot": "select-trigger",
|
|
387
387
|
"data-size": t,
|
|
@@ -389,22 +389,22 @@ function jt({
|
|
|
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
|
+
...s,
|
|
393
393
|
children: [
|
|
394
394
|
r,
|
|
395
|
-
/* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(C.Icon, { asChild: !0, children: /* @__PURE__ */ e(E, { className: "size-4 opacity-50" }) })
|
|
396
396
|
]
|
|
397
397
|
}
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Pt({
|
|
401
401
|
className: a,
|
|
402
402
|
children: t,
|
|
403
403
|
position: r = "popper",
|
|
404
|
-
...
|
|
404
|
+
...s
|
|
405
405
|
}) {
|
|
406
|
-
return /* @__PURE__ */ e(
|
|
407
|
-
|
|
406
|
+
return /* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ o(
|
|
407
|
+
C.Content,
|
|
408
408
|
{
|
|
409
409
|
"data-slot": "select-content",
|
|
410
410
|
className: i(
|
|
@@ -413,11 +413,11 @@ function Dt({
|
|
|
413
413
|
a
|
|
414
414
|
),
|
|
415
415
|
position: r,
|
|
416
|
-
...
|
|
416
|
+
...s,
|
|
417
417
|
children: [
|
|
418
|
-
/* @__PURE__ */ e(
|
|
418
|
+
/* @__PURE__ */ e(Re, {}),
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
|
-
|
|
420
|
+
C.Viewport,
|
|
421
421
|
{
|
|
422
422
|
className: i(
|
|
423
423
|
"p-1",
|
|
@@ -426,18 +426,18 @@ function Dt({
|
|
|
426
426
|
children: t
|
|
427
427
|
}
|
|
428
428
|
),
|
|
429
|
-
/* @__PURE__ */ e(
|
|
429
|
+
/* @__PURE__ */ e(Te, {})
|
|
430
430
|
]
|
|
431
431
|
}
|
|
432
432
|
) });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function At({
|
|
435
435
|
className: a,
|
|
436
436
|
children: t,
|
|
437
437
|
...r
|
|
438
438
|
}) {
|
|
439
439
|
return /* @__PURE__ */ o(
|
|
440
|
-
|
|
440
|
+
C.Item,
|
|
441
441
|
{
|
|
442
442
|
"data-slot": "select-item",
|
|
443
443
|
className: i(
|
|
@@ -446,18 +446,18 @@ function Mt({
|
|
|
446
446
|
),
|
|
447
447
|
...r,
|
|
448
448
|
children: [
|
|
449
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
450
|
-
/* @__PURE__ */ e(
|
|
449
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(C.ItemIndicator, { children: /* @__PURE__ */ e(Q, { className: "size-4" }) }) }),
|
|
450
|
+
/* @__PURE__ */ e(C.ItemText, { children: t })
|
|
451
451
|
]
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Re({
|
|
456
456
|
className: a,
|
|
457
457
|
...t
|
|
458
458
|
}) {
|
|
459
459
|
return /* @__PURE__ */ e(
|
|
460
|
-
|
|
460
|
+
C.ScrollUpButton,
|
|
461
461
|
{
|
|
462
462
|
"data-slot": "select-scroll-up-button",
|
|
463
463
|
className: i(
|
|
@@ -465,16 +465,16 @@ function Be({
|
|
|
465
465
|
a
|
|
466
466
|
),
|
|
467
467
|
...t,
|
|
468
|
-
children: /* @__PURE__ */ e(
|
|
468
|
+
children: /* @__PURE__ */ e(ie, { className: "size-4" })
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function Te({
|
|
473
473
|
className: a,
|
|
474
474
|
...t
|
|
475
475
|
}) {
|
|
476
476
|
return /* @__PURE__ */ e(
|
|
477
|
-
|
|
477
|
+
C.ScrollDownButton,
|
|
478
478
|
{
|
|
479
479
|
"data-slot": "select-scroll-down-button",
|
|
480
480
|
className: i(
|
|
@@ -482,16 +482,16 @@ function Ee({
|
|
|
482
482
|
a
|
|
483
483
|
),
|
|
484
484
|
...t,
|
|
485
|
-
children: /* @__PURE__ */ e(
|
|
485
|
+
children: /* @__PURE__ */ e(E, { className: "size-4" })
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Bt({
|
|
490
490
|
className: a,
|
|
491
491
|
...t
|
|
492
492
|
}) {
|
|
493
493
|
return /* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
U.Root,
|
|
495
495
|
{
|
|
496
496
|
"data-slot": "checkbox",
|
|
497
497
|
className: i(
|
|
@@ -500,22 +500,22 @@ function At({
|
|
|
500
500
|
),
|
|
501
501
|
...t,
|
|
502
502
|
children: /* @__PURE__ */ e(
|
|
503
|
-
|
|
503
|
+
U.Indicator,
|
|
504
504
|
{
|
|
505
505
|
"data-slot": "checkbox-indicator",
|
|
506
506
|
className: "flex items-center justify-center text-current transition-none",
|
|
507
|
-
children: /* @__PURE__ */ e(
|
|
507
|
+
children: /* @__PURE__ */ e(Q, { className: "size-3.5" })
|
|
508
508
|
}
|
|
509
509
|
)
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Lt({
|
|
514
514
|
className: a,
|
|
515
515
|
...t
|
|
516
516
|
}) {
|
|
517
517
|
return /* @__PURE__ */ e(
|
|
518
|
-
|
|
518
|
+
T.Root,
|
|
519
519
|
{
|
|
520
520
|
"data-slot": "radio-group",
|
|
521
521
|
className: i("grid gap-3", a),
|
|
@@ -523,12 +523,12 @@ function Pt({
|
|
|
523
523
|
}
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function _t({
|
|
527
527
|
className: a,
|
|
528
528
|
...t
|
|
529
529
|
}) {
|
|
530
530
|
return /* @__PURE__ */ e(
|
|
531
|
-
|
|
531
|
+
T.Item,
|
|
532
532
|
{
|
|
533
533
|
"data-slot": "radio-group-item",
|
|
534
534
|
className: i(
|
|
@@ -537,17 +537,17 @@ function Lt({
|
|
|
537
537
|
),
|
|
538
538
|
...t,
|
|
539
539
|
children: /* @__PURE__ */ e(
|
|
540
|
-
|
|
540
|
+
T.Indicator,
|
|
541
541
|
{
|
|
542
542
|
"data-slot": "radio-group-indicator",
|
|
543
543
|
className: "relative flex items-center justify-center",
|
|
544
|
-
children: /* @__PURE__ */ e(
|
|
544
|
+
children: /* @__PURE__ */ e(oe, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
545
545
|
}
|
|
546
546
|
)
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Et({
|
|
551
551
|
className: a,
|
|
552
552
|
...t
|
|
553
553
|
}) {
|
|
@@ -579,63 +579,63 @@ 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 V = w(
|
|
583
583
|
({
|
|
584
584
|
className: a,
|
|
585
585
|
image: t,
|
|
586
586
|
title: r,
|
|
587
|
-
author:
|
|
587
|
+
author: s,
|
|
588
588
|
price: l,
|
|
589
|
-
originalPrice:
|
|
589
|
+
originalPrice: n,
|
|
590
590
|
rating: d,
|
|
591
591
|
reviewCount: m,
|
|
592
|
-
badge:
|
|
593
|
-
badgeVariant:
|
|
592
|
+
badge: u,
|
|
593
|
+
badgeVariant: f = "default",
|
|
594
594
|
isSkeleton: v = !1,
|
|
595
|
-
isOutOfStock:
|
|
595
|
+
isOutOfStock: g = !1,
|
|
596
596
|
onAddToCart: b,
|
|
597
|
-
onToggleFavorite:
|
|
597
|
+
onToggleFavorite: N,
|
|
598
598
|
isFavorite: h = !1,
|
|
599
599
|
href: c,
|
|
600
|
-
orientation:
|
|
601
|
-
...
|
|
602
|
-
},
|
|
600
|
+
orientation: p = "vertical",
|
|
601
|
+
...k
|
|
602
|
+
}, x) => v ? /* @__PURE__ */ o(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
|
-
ref:
|
|
605
|
+
ref: x,
|
|
606
606
|
className: i(
|
|
607
607
|
"flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
|
|
608
|
-
|
|
608
|
+
p === "horizontal" ? "flex-row gap-3" : "flex-col",
|
|
609
609
|
a
|
|
610
610
|
),
|
|
611
|
-
...
|
|
611
|
+
...k,
|
|
612
612
|
children: [
|
|
613
613
|
/* @__PURE__ */ e(
|
|
614
614
|
"div",
|
|
615
615
|
{
|
|
616
616
|
className: i(
|
|
617
617
|
"rounded-lg bg-[var(--muted)]",
|
|
618
|
-
|
|
618
|
+
p === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-square"
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
),
|
|
622
|
-
/* @__PURE__ */ o("div", { className: i("flex flex-col gap-2",
|
|
622
|
+
/* @__PURE__ */ o("div", { className: i("flex flex-col gap-2", p === "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
|
+
) : p === "horizontal" ? /* @__PURE__ */ o(
|
|
630
630
|
"div",
|
|
631
631
|
{
|
|
632
|
-
ref:
|
|
632
|
+
ref: x,
|
|
633
633
|
className: i(
|
|
634
634
|
"group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
|
|
635
|
-
|
|
635
|
+
g && "opacity-60",
|
|
636
636
|
a
|
|
637
637
|
),
|
|
638
|
-
...
|
|
638
|
+
...k,
|
|
639
639
|
children: [
|
|
640
640
|
/* @__PURE__ */ e(
|
|
641
641
|
G,
|
|
@@ -661,9 +661,9 @@ const $ = w(
|
|
|
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
|
+
s && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: s }),
|
|
665
665
|
d !== void 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
|
|
666
|
-
/* @__PURE__ */ e(
|
|
666
|
+
/* @__PURE__ */ e($, { value: d, size: "sm", readonly: !0 }),
|
|
667
667
|
m !== void 0 && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
|
|
668
668
|
"(",
|
|
669
669
|
m,
|
|
@@ -675,22 +675,22 @@ const $ = w(
|
|
|
675
675
|
"R$ ",
|
|
676
676
|
l.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
677
677
|
] }),
|
|
678
|
-
|
|
678
|
+
n && n > l && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)] line-through", children: [
|
|
679
679
|
"R$ ",
|
|
680
|
-
|
|
680
|
+
n.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
681
681
|
] })
|
|
682
682
|
] }),
|
|
683
683
|
b && /* @__PURE__ */ e(
|
|
684
|
-
|
|
684
|
+
S,
|
|
685
685
|
{
|
|
686
686
|
onClick: b,
|
|
687
|
-
disabled:
|
|
687
|
+
disabled: g,
|
|
688
688
|
variant: "primary",
|
|
689
689
|
size: "sm",
|
|
690
690
|
fullWidth: !0,
|
|
691
|
-
leftIcon: /* @__PURE__ */ e(
|
|
691
|
+
leftIcon: /* @__PURE__ */ e(R, { className: "h-3.5 w-3.5" }),
|
|
692
692
|
className: "mt-auto",
|
|
693
|
-
children:
|
|
693
|
+
children: g ? "Indisponível" : "Adicionar"
|
|
694
694
|
}
|
|
695
695
|
)
|
|
696
696
|
] })
|
|
@@ -699,13 +699,13 @@ const $ = w(
|
|
|
699
699
|
) : /* @__PURE__ */ o(
|
|
700
700
|
"div",
|
|
701
701
|
{
|
|
702
|
-
ref:
|
|
702
|
+
ref: x,
|
|
703
703
|
className: i(
|
|
704
704
|
"group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
|
|
705
|
-
|
|
705
|
+
g && "opacity-60",
|
|
706
706
|
a
|
|
707
707
|
),
|
|
708
|
-
...
|
|
708
|
+
...k,
|
|
709
709
|
children: [
|
|
710
710
|
/* @__PURE__ */ o(
|
|
711
711
|
G,
|
|
@@ -721,19 +721,19 @@ const $ = w(
|
|
|
721
721
|
className: "h-full w-full object-contain transition-transform group-hover:scale-105"
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
|
-
|
|
725
|
-
|
|
724
|
+
u && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(_, { variant: f, children: u }) }),
|
|
725
|
+
g && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(_, { variant: "danger", size: "lg", children: "Esgotado" }) })
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
),
|
|
729
|
-
|
|
729
|
+
N && /* @__PURE__ */ e(
|
|
730
730
|
"button",
|
|
731
731
|
{
|
|
732
|
-
onClick:
|
|
732
|
+
onClick: 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
|
+
ne,
|
|
737
737
|
{
|
|
738
738
|
className: i(
|
|
739
739
|
"h-5 w-5",
|
|
@@ -752,9 +752,9 @@ const $ = w(
|
|
|
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
|
+
s && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: s }),
|
|
756
756
|
d !== void 0 && /* @__PURE__ */ o("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
757
|
-
/* @__PURE__ */ e(
|
|
757
|
+
/* @__PURE__ */ e($, { value: d, size: "sm", readonly: !0 }),
|
|
758
758
|
m !== void 0 && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
759
759
|
"(",
|
|
760
760
|
m,
|
|
@@ -766,27 +766,27 @@ const $ = w(
|
|
|
766
766
|
"R$ ",
|
|
767
767
|
l.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
768
768
|
] }),
|
|
769
|
-
|
|
769
|
+
n && n > l && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)] line-through", children: [
|
|
770
770
|
"R$ ",
|
|
771
|
-
|
|
771
|
+
n.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
772
772
|
] })
|
|
773
773
|
] }),
|
|
774
774
|
b && /* @__PURE__ */ e(
|
|
775
|
-
|
|
775
|
+
S,
|
|
776
776
|
{
|
|
777
777
|
onClick: b,
|
|
778
|
-
disabled:
|
|
778
|
+
disabled: g,
|
|
779
779
|
variant: "primary",
|
|
780
780
|
size: "md",
|
|
781
781
|
fullWidth: !0,
|
|
782
|
-
leftIcon: /* @__PURE__ */ e(
|
|
782
|
+
leftIcon: /* @__PURE__ */ e(R, { className: "h-4 w-4" }),
|
|
783
783
|
className: i(
|
|
784
784
|
"mt-4 transition-all duration-200",
|
|
785
785
|
"opacity-0 translate-y-2",
|
|
786
786
|
"group-hover:opacity-100 group-hover:translate-y-0",
|
|
787
787
|
"focus-visible:opacity-100 focus-visible:translate-y-0"
|
|
788
788
|
),
|
|
789
|
-
children:
|
|
789
|
+
children: g ? "Indisponível" : "Adicionar"
|
|
790
790
|
}
|
|
791
791
|
)
|
|
792
792
|
] })
|
|
@@ -794,96 +794,96 @@ const $ = w(
|
|
|
794
794
|
}
|
|
795
795
|
)
|
|
796
796
|
);
|
|
797
|
-
|
|
798
|
-
const
|
|
797
|
+
V.displayName = "ProductCard";
|
|
798
|
+
const $e = w(
|
|
799
799
|
({
|
|
800
800
|
className: a,
|
|
801
801
|
onSearch: t,
|
|
802
802
|
onClear: r,
|
|
803
|
-
isLoading:
|
|
803
|
+
isLoading: s = !1,
|
|
804
804
|
size: l = "md",
|
|
805
|
-
placeholder:
|
|
805
|
+
placeholder: n = "Buscar...",
|
|
806
806
|
value: d,
|
|
807
807
|
onChange: m,
|
|
808
|
-
...
|
|
809
|
-
},
|
|
810
|
-
const [v,
|
|
808
|
+
...u
|
|
809
|
+
}, f) => {
|
|
810
|
+
const [v, g] = z(""), b = d !== void 0 ? d : v, N = {
|
|
811
811
|
sm: "h-9 text-sm",
|
|
812
812
|
md: "h-11 text-base",
|
|
813
813
|
lg: "h-14 text-lg"
|
|
814
|
-
}, h = (
|
|
815
|
-
const
|
|
816
|
-
d === void 0 &&
|
|
814
|
+
}, h = (k) => {
|
|
815
|
+
const x = k.target.value;
|
|
816
|
+
d === void 0 && g(x), m == null || m(k);
|
|
817
817
|
}, c = () => {
|
|
818
|
-
d === void 0 &&
|
|
819
|
-
},
|
|
820
|
-
|
|
818
|
+
d === void 0 && g(""), r == null || r();
|
|
819
|
+
}, p = (k) => {
|
|
820
|
+
k.key === "Enter" && t && t(b);
|
|
821
821
|
};
|
|
822
822
|
return /* @__PURE__ */ e("div", { className: i("relative w-full", a), children: /* @__PURE__ */ o("div", { className: "relative flex items-center", children: [
|
|
823
|
-
/* @__PURE__ */ e(
|
|
823
|
+
/* @__PURE__ */ e(W, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
|
|
824
824
|
/* @__PURE__ */ e(
|
|
825
825
|
"input",
|
|
826
826
|
{
|
|
827
|
-
ref:
|
|
827
|
+
ref: f,
|
|
828
828
|
type: "search",
|
|
829
829
|
value: b,
|
|
830
830
|
onChange: h,
|
|
831
|
-
onKeyDown:
|
|
832
|
-
placeholder:
|
|
831
|
+
onKeyDown: p,
|
|
832
|
+
placeholder: n,
|
|
833
833
|
className: i(
|
|
834
834
|
"w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
|
|
835
835
|
"placeholder:text-[var(--muted-foreground)]",
|
|
836
836
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
|
|
837
837
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
838
|
-
|
|
838
|
+
N[l]
|
|
839
839
|
),
|
|
840
|
-
...
|
|
840
|
+
...u
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
843
|
/* @__PURE__ */ o("div", { className: "absolute right-3 flex items-center gap-1", children: [
|
|
844
|
-
|
|
845
|
-
b && !
|
|
844
|
+
s && /* @__PURE__ */ e(I, { className: "h-5 w-5 animate-spin text-[var(--muted-foreground)]" }),
|
|
845
|
+
b && !s && /* @__PURE__ */ e(
|
|
846
846
|
"button",
|
|
847
847
|
{
|
|
848
848
|
type: "button",
|
|
849
849
|
onClick: c,
|
|
850
850
|
className: "rounded-full p-1 hover:bg-[var(--muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
851
851
|
"aria-label": "Clear search",
|
|
852
|
-
children: /* @__PURE__ */ e(
|
|
852
|
+
children: /* @__PURE__ */ e(se, { 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
|
+
$e.displayName = "SearchBar";
|
|
860
|
+
const Ve = w(
|
|
861
861
|
({
|
|
862
862
|
className: a,
|
|
863
863
|
price: t,
|
|
864
864
|
originalPrice: r,
|
|
865
|
-
currency:
|
|
865
|
+
currency: s = "R$",
|
|
866
866
|
size: l = "md",
|
|
867
|
-
showDiscount:
|
|
867
|
+
showDiscount: n = !0,
|
|
868
868
|
installments: d,
|
|
869
869
|
...m
|
|
870
|
-
},
|
|
871
|
-
const
|
|
870
|
+
}, u) => {
|
|
871
|
+
const f = 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
|
+
}, g = {
|
|
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__ */ o("div", { ref:
|
|
882
|
+
return /* @__PURE__ */ o("div", { ref: u, className: i("flex flex-col gap-1", a), ...m, children: [
|
|
883
883
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
884
884
|
/* @__PURE__ */ o("div", { className: "flex items-baseline gap-2", children: [
|
|
885
885
|
/* @__PURE__ */ o("span", { className: i("font-bold text-[var(--foreground)]", v[l]), children: [
|
|
886
|
-
|
|
886
|
+
s,
|
|
887
887
|
" ",
|
|
888
888
|
t.toFixed(2)
|
|
889
889
|
] }),
|
|
@@ -892,19 +892,19 @@ const Te = w(
|
|
|
892
892
|
{
|
|
893
893
|
className: i(
|
|
894
894
|
"text-[var(--muted-foreground)] line-through",
|
|
895
|
-
|
|
895
|
+
g[l]
|
|
896
896
|
),
|
|
897
897
|
children: [
|
|
898
|
-
|
|
898
|
+
s,
|
|
899
899
|
" ",
|
|
900
900
|
r.toFixed(2)
|
|
901
901
|
]
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
|
|
905
|
+
n && f > 0 && /* @__PURE__ */ o(_, { variant: "success", size: "sm", children: [
|
|
906
906
|
"-",
|
|
907
|
-
|
|
907
|
+
f,
|
|
908
908
|
"%"
|
|
909
909
|
] })
|
|
910
910
|
] }),
|
|
@@ -912,7 +912,7 @@ const Te = w(
|
|
|
912
912
|
"ou ",
|
|
913
913
|
d.count,
|
|
914
914
|
"x de ",
|
|
915
|
-
|
|
915
|
+
s,
|
|
916
916
|
" ",
|
|
917
917
|
d.value.toFixed(2),
|
|
918
918
|
" sem juros"
|
|
@@ -920,27 +920,27 @@ const Te = w(
|
|
|
920
920
|
] });
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
|
-
|
|
924
|
-
const
|
|
923
|
+
Ve.displayName = "PriceDisplay";
|
|
924
|
+
const Fe = w(
|
|
925
925
|
({
|
|
926
926
|
className: a,
|
|
927
927
|
value: t,
|
|
928
928
|
min: r = 1,
|
|
929
|
-
max:
|
|
929
|
+
max: s = 99,
|
|
930
930
|
onChange: l,
|
|
931
|
-
size:
|
|
931
|
+
size: n = "md",
|
|
932
932
|
disabled: d = !1,
|
|
933
933
|
showLabel: m = !1,
|
|
934
|
-
...
|
|
935
|
-
},
|
|
934
|
+
...u
|
|
935
|
+
}, f) => {
|
|
936
936
|
const v = () => {
|
|
937
|
-
t <
|
|
938
|
-
},
|
|
937
|
+
t < s && l(t + 1);
|
|
938
|
+
}, g = () => {
|
|
939
939
|
t > r && l(t - 1);
|
|
940
940
|
}, b = (c) => {
|
|
941
|
-
const
|
|
942
|
-
!isNaN(
|
|
943
|
-
},
|
|
941
|
+
const p = parseInt(c.target.value);
|
|
942
|
+
!isNaN(p) && p >= r && p <= s && l(p);
|
|
943
|
+
}, N = {
|
|
944
944
|
sm: "h-8 w-8",
|
|
945
945
|
md: "h-10 w-10",
|
|
946
946
|
lg: "h-12 w-12"
|
|
@@ -949,20 +949,20 @@ const $e = w(
|
|
|
949
949
|
md: "h-10 w-14 text-base",
|
|
950
950
|
lg: "h-12 w-16 text-lg"
|
|
951
951
|
};
|
|
952
|
-
return /* @__PURE__ */ o("div", { ref:
|
|
952
|
+
return /* @__PURE__ */ o("div", { ref: f, className: i("inline-flex flex-col gap-1", a), ...u, children: [
|
|
953
953
|
m && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-[var(--foreground)]", children: "Quantidade" }),
|
|
954
954
|
/* @__PURE__ */ o("div", { className: "inline-flex items-center gap-2", children: [
|
|
955
955
|
/* @__PURE__ */ e(
|
|
956
|
-
|
|
956
|
+
S,
|
|
957
957
|
{
|
|
958
958
|
type: "button",
|
|
959
959
|
variant: "secondary",
|
|
960
960
|
size: "sm",
|
|
961
|
-
onClick:
|
|
961
|
+
onClick: g,
|
|
962
962
|
disabled: d || t <= r,
|
|
963
|
-
className: i(
|
|
963
|
+
className: i(N[n], "p-0"),
|
|
964
964
|
"aria-label": "Decrease quantity",
|
|
965
|
-
children: /* @__PURE__ */ e(
|
|
965
|
+
children: /* @__PURE__ */ e(le, { className: "h-4 w-4" })
|
|
966
966
|
}
|
|
967
967
|
),
|
|
968
968
|
/* @__PURE__ */ e(
|
|
@@ -972,38 +972,38 @@ const $e = w(
|
|
|
972
972
|
value: t,
|
|
973
973
|
onChange: b,
|
|
974
974
|
min: r,
|
|
975
|
-
max:
|
|
975
|
+
max: s,
|
|
976
976
|
disabled: d,
|
|
977
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[n]
|
|
983
983
|
),
|
|
984
984
|
"aria-label": "Quantity"
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
987
|
/* @__PURE__ */ e(
|
|
988
|
-
|
|
988
|
+
S,
|
|
989
989
|
{
|
|
990
990
|
type: "button",
|
|
991
991
|
variant: "secondary",
|
|
992
992
|
size: "sm",
|
|
993
993
|
onClick: v,
|
|
994
|
-
disabled: d || t >=
|
|
995
|
-
className: i(
|
|
994
|
+
disabled: d || t >= s,
|
|
995
|
+
className: i(N[n], "p-0"),
|
|
996
996
|
"aria-label": "Increase quantity",
|
|
997
|
-
children: /* @__PURE__ */ e(
|
|
997
|
+
children: /* @__PURE__ */ e(de, { className: "h-4 w-4" })
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
1000
|
] })
|
|
1001
1001
|
] });
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
|
|
1004
|
+
Fe.displayName = "QuantitySelector";
|
|
1005
1005
|
const Ie = w(
|
|
1006
|
-
({ className: a, label: t, htmlFor: r, required:
|
|
1006
|
+
({ className: a, label: t, htmlFor: r, required: s, error: l, helperText: n, children: d, ...m }, u) => /* @__PURE__ */ o("div", { ref: u, className: i("flex flex-col gap-1.5", a), ...m, children: [
|
|
1007
1007
|
t && /* @__PURE__ */ o(
|
|
1008
1008
|
"label",
|
|
1009
1009
|
{
|
|
@@ -1011,28 +1011,28 @@ const Ie = w(
|
|
|
1011
1011
|
className: "text-sm font-medium text-[var(--foreground)]",
|
|
1012
1012
|
children: [
|
|
1013
1013
|
t,
|
|
1014
|
-
|
|
1014
|
+
s && /* @__PURE__ */ e("span", { className: "ml-1 text-[var(--destructive)]", children: "*" })
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
1018
|
d,
|
|
1019
|
-
(l ||
|
|
1019
|
+
(l || n) && /* @__PURE__ */ e(
|
|
1020
1020
|
"p",
|
|
1021
1021
|
{
|
|
1022
1022
|
className: i(
|
|
1023
1023
|
"text-sm",
|
|
1024
1024
|
l ? "text-[var(--destructive)]" : "text-[var(--muted-foreground)]"
|
|
1025
1025
|
),
|
|
1026
|
-
children: l ||
|
|
1026
|
+
children: l || n
|
|
1027
1027
|
}
|
|
1028
1028
|
)
|
|
1029
1029
|
] })
|
|
1030
1030
|
);
|
|
1031
1031
|
Ie.displayName = "FormGroup";
|
|
1032
|
-
function
|
|
1032
|
+
function Rt({ ...a }) {
|
|
1033
1033
|
return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function Tt({ className: a, ...t }) {
|
|
1036
1036
|
return /* @__PURE__ */ e(
|
|
1037
1037
|
"ol",
|
|
1038
1038
|
{
|
|
@@ -1045,7 +1045,7 @@ function Et({ className: a, ...t }) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function $t({ className: a, ...t }) {
|
|
1049
1049
|
return /* @__PURE__ */ e(
|
|
1050
1050
|
"li",
|
|
1051
1051
|
{
|
|
@@ -1055,13 +1055,13 @@ function Rt({ className: a, ...t }) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Vt({
|
|
1059
1059
|
asChild: a,
|
|
1060
1060
|
className: t,
|
|
1061
1061
|
...r
|
|
1062
1062
|
}) {
|
|
1063
1063
|
return /* @__PURE__ */ e(
|
|
1064
|
-
a ?
|
|
1064
|
+
a ? De : "a",
|
|
1065
1065
|
{
|
|
1066
1066
|
"data-slot": "breadcrumb-link",
|
|
1067
1067
|
className: i("hover:text-foreground transition-colors", t),
|
|
@@ -1069,7 +1069,7 @@ function Tt({
|
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Ft({ className: a, ...t }) {
|
|
1073
1073
|
return /* @__PURE__ */ e(
|
|
1074
1074
|
"span",
|
|
1075
1075
|
{
|
|
@@ -1095,21 +1095,21 @@ function It({
|
|
|
1095
1095
|
"aria-hidden": "true",
|
|
1096
1096
|
className: i("[&>svg]:size-3.5", t),
|
|
1097
1097
|
...r,
|
|
1098
|
-
children: a ?? /* @__PURE__ */ e(
|
|
1098
|
+
children: a ?? /* @__PURE__ */ e(O, {})
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function Ut({
|
|
1103
1103
|
...a
|
|
1104
1104
|
}) {
|
|
1105
|
-
return /* @__PURE__ */ e(
|
|
1105
|
+
return /* @__PURE__ */ e(P.Root, { "data-slot": "accordion", ...a });
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function qt({
|
|
1108
1108
|
className: a,
|
|
1109
1109
|
...t
|
|
1110
1110
|
}) {
|
|
1111
1111
|
return /* @__PURE__ */ e(
|
|
1112
|
-
|
|
1112
|
+
P.Item,
|
|
1113
1113
|
{
|
|
1114
1114
|
"data-slot": "accordion-item",
|
|
1115
1115
|
className: i("border-b last:border-b-0", a),
|
|
@@ -1117,13 +1117,13 @@ function Ft({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
);
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function Gt({
|
|
1121
1121
|
className: a,
|
|
1122
1122
|
children: t,
|
|
1123
1123
|
...r
|
|
1124
1124
|
}) {
|
|
1125
|
-
return /* @__PURE__ */ e(
|
|
1126
|
-
|
|
1125
|
+
return /* @__PURE__ */ e(P.Header, { className: "flex", children: /* @__PURE__ */ o(
|
|
1126
|
+
P.Trigger,
|
|
1127
1127
|
{
|
|
1128
1128
|
"data-slot": "accordion-trigger",
|
|
1129
1129
|
className: i(
|
|
@@ -1133,18 +1133,18 @@ function qt({
|
|
|
1133
1133
|
...r,
|
|
1134
1134
|
children: [
|
|
1135
1135
|
t,
|
|
1136
|
-
/* @__PURE__ */ e(
|
|
1136
|
+
/* @__PURE__ */ e(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
|
) });
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Ht({
|
|
1142
1142
|
className: a,
|
|
1143
1143
|
children: t,
|
|
1144
1144
|
...r
|
|
1145
1145
|
}) {
|
|
1146
1146
|
return /* @__PURE__ */ e(
|
|
1147
|
-
|
|
1147
|
+
P.Content,
|
|
1148
1148
|
{
|
|
1149
1149
|
"data-slot": "accordion-content",
|
|
1150
1150
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
@@ -1153,12 +1153,12 @@ function Gt({
|
|
|
1153
1153
|
}
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function Ue({
|
|
1157
1157
|
delayDuration: a = 0,
|
|
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,
|
|
@@ -1166,24 +1166,24 @@ function Ve({
|
|
|
1166
1166
|
}
|
|
1167
1167
|
);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Qt({
|
|
1170
1170
|
...a
|
|
1171
1171
|
}) {
|
|
1172
|
-
return /* @__PURE__ */ e(
|
|
1172
|
+
return /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(j.Root, { "data-slot": "tooltip", ...a }) });
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Wt({
|
|
1175
1175
|
...a
|
|
1176
1176
|
}) {
|
|
1177
|
-
return /* @__PURE__ */ e(
|
|
1177
|
+
return /* @__PURE__ */ e(j.Trigger, { "data-slot": "tooltip-trigger", ...a });
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Ot({
|
|
1180
1180
|
className: a,
|
|
1181
1181
|
sideOffset: t = 0,
|
|
1182
1182
|
children: r,
|
|
1183
|
-
...
|
|
1183
|
+
...s
|
|
1184
1184
|
}) {
|
|
1185
|
-
return /* @__PURE__ */ e(
|
|
1186
|
-
|
|
1185
|
+
return /* @__PURE__ */ e(j.Portal, { children: /* @__PURE__ */ o(
|
|
1186
|
+
j.Content,
|
|
1187
1187
|
{
|
|
1188
1188
|
"data-slot": "tooltip-content",
|
|
1189
1189
|
sideOffset: t,
|
|
@@ -1191,31 +1191,31 @@ function Qt({
|
|
|
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
|
+
...s,
|
|
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
|
|
1202
|
+
const qe = w(
|
|
1203
1203
|
({
|
|
1204
1204
|
className: a,
|
|
1205
1205
|
variant: t = "default",
|
|
1206
1206
|
title: r,
|
|
1207
|
-
subtitle:
|
|
1207
|
+
subtitle: s,
|
|
1208
1208
|
description: l,
|
|
1209
|
-
primaryCTA:
|
|
1209
|
+
primaryCTA: n,
|
|
1210
1210
|
secondaryCTA: d,
|
|
1211
1211
|
backgroundImage: m,
|
|
1212
|
-
overlay:
|
|
1213
|
-
children:
|
|
1212
|
+
overlay: u = !0,
|
|
1213
|
+
children: f,
|
|
1214
1214
|
...v
|
|
1215
|
-
},
|
|
1215
|
+
}, g) => /* @__PURE__ */ o(
|
|
1216
1216
|
"section",
|
|
1217
1217
|
{
|
|
1218
|
-
ref:
|
|
1218
|
+
ref: g,
|
|
1219
1219
|
className: i(
|
|
1220
1220
|
"relative flex min-h-[400px] w-full flex-col justify-center px-6 py-16 lg:px-12 lg:py-24",
|
|
1221
1221
|
{
|
|
@@ -1235,7 +1235,7 @@ const Fe = w(
|
|
|
1235
1235
|
style: { backgroundImage: `url(${m})` }
|
|
1236
1236
|
}
|
|
1237
1237
|
),
|
|
1238
|
-
|
|
1238
|
+
u && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-black/70 to-black/30" })
|
|
1239
1239
|
] }),
|
|
1240
1240
|
/* @__PURE__ */ o(
|
|
1241
1241
|
"div",
|
|
@@ -1246,14 +1246,14 @@ const Fe = w(
|
|
|
1246
1246
|
),
|
|
1247
1247
|
children: [
|
|
1248
1248
|
/* @__PURE__ */ o("div", { className: i("max-w-3xl", t === "split" && "max-w-none"), children: [
|
|
1249
|
-
|
|
1249
|
+
s && /* @__PURE__ */ e(
|
|
1250
1250
|
"p",
|
|
1251
1251
|
{
|
|
1252
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
|
-
children:
|
|
1256
|
+
children: s
|
|
1257
1257
|
}
|
|
1258
1258
|
),
|
|
1259
1259
|
/* @__PURE__ */ e(
|
|
@@ -1276,18 +1276,18 @@ const Fe = w(
|
|
|
1276
1276
|
children: l
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1281
|
-
|
|
1279
|
+
(n || d) && /* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4", children: [
|
|
1280
|
+
n && /* @__PURE__ */ e(
|
|
1281
|
+
S,
|
|
1282
1282
|
{
|
|
1283
1283
|
size: "lg",
|
|
1284
|
-
onClick:
|
|
1284
|
+
onClick: n.onClick,
|
|
1285
1285
|
variant: "primary",
|
|
1286
|
-
children:
|
|
1286
|
+
children: n.label
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
1289
|
d && /* @__PURE__ */ e(
|
|
1290
|
-
|
|
1290
|
+
S,
|
|
1291
1291
|
{
|
|
1292
1292
|
size: "lg",
|
|
1293
1293
|
onClick: d.onClick,
|
|
@@ -1297,31 +1297,31 @@ const Fe = w(
|
|
|
1297
1297
|
)
|
|
1298
1298
|
] })
|
|
1299
1299
|
] }),
|
|
1300
|
-
t === "split" &&
|
|
1300
|
+
t === "split" && f && /* @__PURE__ */ e("div", { className: "mt-8 lg:mt-0", children: f })
|
|
1301
1301
|
]
|
|
1302
1302
|
}
|
|
1303
1303
|
),
|
|
1304
|
-
t !== "split" &&
|
|
1304
|
+
t !== "split" && f && /* @__PURE__ */ e("div", { className: "relative z-10 mt-12 w-full max-w-7xl mx-auto", children: f })
|
|
1305
1305
|
]
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
1308
1308
|
);
|
|
1309
|
-
|
|
1310
|
-
const
|
|
1309
|
+
qe.displayName = "Hero";
|
|
1310
|
+
const Y = w(
|
|
1311
1311
|
({
|
|
1312
1312
|
className: a,
|
|
1313
1313
|
variant: t = "default",
|
|
1314
1314
|
icon: r,
|
|
1315
|
-
title:
|
|
1315
|
+
title: s,
|
|
1316
1316
|
description: l,
|
|
1317
|
-
action:
|
|
1317
|
+
action: n,
|
|
1318
1318
|
...d
|
|
1319
1319
|
}, m) => {
|
|
1320
|
-
const
|
|
1321
|
-
default: /* @__PURE__ */ e(
|
|
1322
|
-
search: /* @__PURE__ */ e(
|
|
1323
|
-
cart: /* @__PURE__ */ e(
|
|
1324
|
-
error: /* @__PURE__ */ e(
|
|
1320
|
+
const f = r || {
|
|
1321
|
+
default: /* @__PURE__ */ e(ue, { className: "h-16 w-16" }),
|
|
1322
|
+
search: /* @__PURE__ */ e(W, { className: "h-16 w-16" }),
|
|
1323
|
+
cart: /* @__PURE__ */ e(R, { className: "h-16 w-16" }),
|
|
1324
|
+
error: /* @__PURE__ */ e(ce, { className: "h-16 w-16" })
|
|
1325
1325
|
}[t];
|
|
1326
1326
|
return /* @__PURE__ */ o(
|
|
1327
1327
|
"div",
|
|
@@ -1333,17 +1333,17 @@ const X = w(
|
|
|
1333
1333
|
),
|
|
1334
1334
|
...d,
|
|
1335
1335
|
children: [
|
|
1336
|
-
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--muted)] p-6 text-[var(--muted-foreground)]", children:
|
|
1337
|
-
/* @__PURE__ */ e("h3", { className: "mt-6 text-xl font-semibold text-[var(--foreground)]", children:
|
|
1336
|
+
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--muted)] p-6 text-[var(--muted-foreground)]", children: f }),
|
|
1337
|
+
/* @__PURE__ */ e("h3", { className: "mt-6 text-xl font-semibold text-[var(--foreground)]", children: s }),
|
|
1338
1338
|
l && /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: l }),
|
|
1339
|
-
|
|
1340
|
-
|
|
1339
|
+
n && /* @__PURE__ */ e(
|
|
1340
|
+
S,
|
|
1341
1341
|
{
|
|
1342
|
-
onClick:
|
|
1342
|
+
onClick: n.onClick,
|
|
1343
1343
|
variant: "primary",
|
|
1344
1344
|
size: "lg",
|
|
1345
1345
|
className: "mt-6",
|
|
1346
|
-
children:
|
|
1346
|
+
children: n.label
|
|
1347
1347
|
}
|
|
1348
1348
|
)
|
|
1349
1349
|
]
|
|
@@ -1351,20 +1351,20 @@ const X = w(
|
|
|
1351
1351
|
);
|
|
1352
1352
|
}
|
|
1353
1353
|
);
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1354
|
+
Y.displayName = "EmptyState";
|
|
1355
|
+
const Ge = w(
|
|
1356
1356
|
({
|
|
1357
1357
|
className: a,
|
|
1358
1358
|
type: t = "generic",
|
|
1359
1359
|
title: r,
|
|
1360
|
-
message:
|
|
1360
|
+
message: s,
|
|
1361
1361
|
onRetry: l,
|
|
1362
|
-
onGoHome:
|
|
1362
|
+
onGoHome: n,
|
|
1363
1363
|
showRetry: d = !0,
|
|
1364
1364
|
showHome: m = !0,
|
|
1365
|
-
...
|
|
1366
|
-
},
|
|
1367
|
-
const
|
|
1365
|
+
...u
|
|
1366
|
+
}, f) => {
|
|
1367
|
+
const g = {
|
|
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,43 +1385,43 @@ const qe = w(
|
|
|
1385
1385
|
message: "Ocorreu um erro inesperado. Por favor, tente novamente.",
|
|
1386
1386
|
code: ""
|
|
1387
1387
|
}
|
|
1388
|
-
}[t], b = r ||
|
|
1388
|
+
}[t], b = r || g.title, N = s || g.message;
|
|
1389
1389
|
return /* @__PURE__ */ o(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
1392
|
-
ref:
|
|
1392
|
+
ref: f,
|
|
1393
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
|
+
...u,
|
|
1400
1400
|
children: [
|
|
1401
1401
|
/* @__PURE__ */ o("div", { className: "flex flex-col items-center gap-4", children: [
|
|
1402
|
-
|
|
1403
|
-
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(
|
|
1402
|
+
g.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: g.code }),
|
|
1403
|
+
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(me, { className: "h-16 w-16" }) })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
/* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
|
|
1406
|
-
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children:
|
|
1406
|
+
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: N }),
|
|
1407
1407
|
/* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
|
|
1408
1408
|
d && l && /* @__PURE__ */ e(
|
|
1409
|
-
|
|
1409
|
+
S,
|
|
1410
1410
|
{
|
|
1411
1411
|
onClick: l,
|
|
1412
1412
|
variant: "primary",
|
|
1413
1413
|
size: "lg",
|
|
1414
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1414
|
+
leftIcon: /* @__PURE__ */ e(fe, { className: "h-5 w-5" }),
|
|
1415
1415
|
children: "Tentar novamente"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
1418
|
-
m &&
|
|
1419
|
-
|
|
1418
|
+
m && n && /* @__PURE__ */ e(
|
|
1419
|
+
S,
|
|
1420
1420
|
{
|
|
1421
|
-
onClick:
|
|
1421
|
+
onClick: n,
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
size: "lg",
|
|
1424
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1424
|
+
leftIcon: /* @__PURE__ */ e(ge, { className: "h-5 w-5" }),
|
|
1425
1425
|
children: "Voltar ao início"
|
|
1426
1426
|
}
|
|
1427
1427
|
)
|
|
@@ -1431,19 +1431,19 @@ const qe = w(
|
|
|
1431
1431
|
);
|
|
1432
1432
|
}
|
|
1433
1433
|
);
|
|
1434
|
-
|
|
1435
|
-
const
|
|
1434
|
+
Ge.displayName = "ErrorState";
|
|
1435
|
+
const He = w(
|
|
1436
1436
|
({
|
|
1437
1437
|
className: a,
|
|
1438
1438
|
products: t,
|
|
1439
1439
|
columns: r = 4,
|
|
1440
|
-
gap:
|
|
1440
|
+
gap: s = "md",
|
|
1441
1441
|
isLoading: l = !1,
|
|
1442
|
-
skeletonCount:
|
|
1442
|
+
skeletonCount: n = 8,
|
|
1443
1443
|
emptyStateMessage: d = "Nenhum produto encontrado",
|
|
1444
1444
|
onEmptyAction: m,
|
|
1445
|
-
...
|
|
1446
|
-
},
|
|
1445
|
+
...u
|
|
1446
|
+
}, f) => {
|
|
1447
1447
|
const v = {
|
|
1448
1448
|
sm: "gap-4",
|
|
1449
1449
|
md: "gap-6",
|
|
@@ -1452,15 +1452,15 @@ const Ge = w(
|
|
|
1452
1452
|
return l ? /* @__PURE__ */ e(
|
|
1453
1453
|
"div",
|
|
1454
1454
|
{
|
|
1455
|
-
ref:
|
|
1455
|
+
ref: f,
|
|
1456
1456
|
className: i(
|
|
1457
1457
|
"grid grid-cols-2 lg:grid-cols-4",
|
|
1458
|
-
v[
|
|
1458
|
+
v[s],
|
|
1459
1459
|
a
|
|
1460
1460
|
),
|
|
1461
|
-
...
|
|
1462
|
-
children: Array.from({ length:
|
|
1463
|
-
|
|
1461
|
+
...u,
|
|
1462
|
+
children: Array.from({ length: n }).map((g, b) => /* @__PURE__ */ e(
|
|
1463
|
+
V,
|
|
1464
1464
|
{
|
|
1465
1465
|
image: "",
|
|
1466
1466
|
title: "",
|
|
@@ -1471,7 +1471,7 @@ const Ge = w(
|
|
|
1471
1471
|
))
|
|
1472
1472
|
}
|
|
1473
1473
|
) : t.length === 0 ? /* @__PURE__ */ e(
|
|
1474
|
-
|
|
1474
|
+
Y,
|
|
1475
1475
|
{
|
|
1476
1476
|
variant: "search",
|
|
1477
1477
|
title: d,
|
|
@@ -1484,35 +1484,35 @@ const Ge = w(
|
|
|
1484
1484
|
) : /* @__PURE__ */ e(
|
|
1485
1485
|
"div",
|
|
1486
1486
|
{
|
|
1487
|
-
ref:
|
|
1487
|
+
ref: f,
|
|
1488
1488
|
className: i(
|
|
1489
1489
|
"grid grid-cols-2 lg:grid-cols-4",
|
|
1490
|
-
v[
|
|
1490
|
+
v[s],
|
|
1491
1491
|
a
|
|
1492
1492
|
),
|
|
1493
|
-
...
|
|
1494
|
-
children: t.map((
|
|
1493
|
+
...u,
|
|
1494
|
+
children: t.map((g, b) => /* @__PURE__ */ e(V, { ...g }, b))
|
|
1495
1495
|
}
|
|
1496
1496
|
);
|
|
1497
1497
|
}
|
|
1498
1498
|
);
|
|
1499
|
-
|
|
1500
|
-
function
|
|
1499
|
+
He.displayName = "ProductGrid";
|
|
1500
|
+
function Kt({
|
|
1501
1501
|
...a
|
|
1502
1502
|
}) {
|
|
1503
1503
|
return /* @__PURE__ */ e(y.Root, { "data-slot": "dialog", ...a });
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Xt({
|
|
1506
1506
|
...a
|
|
1507
1507
|
}) {
|
|
1508
1508
|
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function Qe({
|
|
1511
1511
|
...a
|
|
1512
1512
|
}) {
|
|
1513
1513
|
return /* @__PURE__ */ e(y.Portal, { "data-slot": "dialog-portal", ...a });
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function We({
|
|
1516
1516
|
className: a,
|
|
1517
1517
|
...t
|
|
1518
1518
|
}) {
|
|
@@ -1528,13 +1528,13 @@ function He({
|
|
|
1528
1528
|
}
|
|
1529
1529
|
);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Yt({
|
|
1532
1532
|
className: a,
|
|
1533
1533
|
children: t,
|
|
1534
1534
|
...r
|
|
1535
1535
|
}) {
|
|
1536
|
-
return /* @__PURE__ */ o(
|
|
1537
|
-
/* @__PURE__ */ e(
|
|
1536
|
+
return /* @__PURE__ */ o(Qe, { "data-slot": "dialog-portal", children: [
|
|
1537
|
+
/* @__PURE__ */ e(We, {}),
|
|
1538
1538
|
/* @__PURE__ */ o(
|
|
1539
1539
|
y.Content,
|
|
1540
1540
|
{
|
|
@@ -1547,7 +1547,7 @@ function Kt({
|
|
|
1547
1547
|
children: [
|
|
1548
1548
|
t,
|
|
1549
1549
|
/* @__PURE__ */ o(y.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
1550
|
-
/* @__PURE__ */ e(
|
|
1550
|
+
/* @__PURE__ */ e(K, {}),
|
|
1551
1551
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1552
1552
|
] })
|
|
1553
1553
|
]
|
|
@@ -1555,7 +1555,7 @@ function Kt({
|
|
|
1555
1555
|
)
|
|
1556
1556
|
] });
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Zt({ className: a, ...t }) {
|
|
1559
1559
|
return /* @__PURE__ */ e(
|
|
1560
1560
|
"div",
|
|
1561
1561
|
{
|
|
@@ -1565,7 +1565,7 @@ function Xt({ className: a, ...t }) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Jt({ className: a, ...t }) {
|
|
1569
1569
|
return /* @__PURE__ */ e(
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
@@ -1578,7 +1578,7 @@ function Yt({ className: a, ...t }) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function ea({
|
|
1582
1582
|
className: a,
|
|
1583
1583
|
...t
|
|
1584
1584
|
}) {
|
|
@@ -1591,7 +1591,7 @@ function Zt({
|
|
|
1591
1591
|
}
|
|
1592
1592
|
);
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function ta({
|
|
1595
1595
|
className: a,
|
|
1596
1596
|
...t
|
|
1597
1597
|
}) {
|
|
@@ -1604,25 +1604,25 @@ function Jt({
|
|
|
1604
1604
|
}
|
|
1605
1605
|
);
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Oe({ ...a }) {
|
|
1608
1608
|
return /* @__PURE__ */ e(y.Root, { "data-slot": "sheet", ...a });
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function Ke({
|
|
1611
1611
|
...a
|
|
1612
1612
|
}) {
|
|
1613
1613
|
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "sheet-trigger", ...a });
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function Xe({
|
|
1616
1616
|
...a
|
|
1617
1617
|
}) {
|
|
1618
1618
|
return /* @__PURE__ */ e(y.Close, { "data-slot": "sheet-close", ...a });
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Ye({
|
|
1621
1621
|
...a
|
|
1622
1622
|
}) {
|
|
1623
1623
|
return /* @__PURE__ */ e(y.Portal, { "data-slot": "sheet-portal", ...a });
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function Ze({
|
|
1626
1626
|
className: a,
|
|
1627
1627
|
...t
|
|
1628
1628
|
}) {
|
|
@@ -1638,14 +1638,14 @@ function Xe({
|
|
|
1638
1638
|
}
|
|
1639
1639
|
);
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Je({
|
|
1642
1642
|
className: a,
|
|
1643
1643
|
children: t,
|
|
1644
1644
|
side: r = "right",
|
|
1645
|
-
...
|
|
1645
|
+
...s
|
|
1646
1646
|
}) {
|
|
1647
|
-
return /* @__PURE__ */ o(
|
|
1648
|
-
/* @__PURE__ */ e(
|
|
1647
|
+
return /* @__PURE__ */ o(Ye, { children: [
|
|
1648
|
+
/* @__PURE__ */ e(Ze, {}),
|
|
1649
1649
|
/* @__PURE__ */ o(
|
|
1650
1650
|
y.Content,
|
|
1651
1651
|
{
|
|
@@ -1658,11 +1658,11 @@ function Ye({
|
|
|
1658
1658
|
r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
1659
1659
|
a
|
|
1660
1660
|
),
|
|
1661
|
-
...
|
|
1661
|
+
...s,
|
|
1662
1662
|
children: [
|
|
1663
1663
|
t,
|
|
1664
1664
|
/* @__PURE__ */ o(y.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1665
|
-
/* @__PURE__ */ e(
|
|
1665
|
+
/* @__PURE__ */ e(K, { className: "size-4" }),
|
|
1666
1666
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1667
1667
|
] })
|
|
1668
1668
|
]
|
|
@@ -1670,7 +1670,7 @@ function Ye({
|
|
|
1670
1670
|
)
|
|
1671
1671
|
] });
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function et({ className: a, ...t }) {
|
|
1674
1674
|
return /* @__PURE__ */ e(
|
|
1675
1675
|
"div",
|
|
1676
1676
|
{
|
|
@@ -1680,7 +1680,7 @@ function Ze({ className: a, ...t }) {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
);
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function aa({ className: a, ...t }) {
|
|
1684
1684
|
return /* @__PURE__ */ e(
|
|
1685
1685
|
"div",
|
|
1686
1686
|
{
|
|
@@ -1690,7 +1690,7 @@ function ea({ className: a, ...t }) {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
);
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function tt({
|
|
1694
1694
|
className: a,
|
|
1695
1695
|
...t
|
|
1696
1696
|
}) {
|
|
@@ -1703,7 +1703,7 @@ function Je({
|
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function ra({
|
|
1707
1707
|
className: a,
|
|
1708
1708
|
...t
|
|
1709
1709
|
}) {
|
|
@@ -1716,7 +1716,7 @@ function ta({
|
|
|
1716
1716
|
}
|
|
1717
1717
|
);
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function at({ children: a, as: t = "div", className: r }) {
|
|
1720
1720
|
return /* @__PURE__ */ e(
|
|
1721
1721
|
t,
|
|
1722
1722
|
{
|
|
@@ -1727,36 +1727,36 @@ function et({ children: a, as: t = "div", className: r }) {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
);
|
|
1729
1729
|
}
|
|
1730
|
-
const
|
|
1731
|
-
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink:
|
|
1732
|
-
const [d, m] =
|
|
1730
|
+
const rt = w(
|
|
1731
|
+
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: s = !1, ...l }, n) => {
|
|
1732
|
+
const [d, m] = z("light"), [u, f] = z(16), [v, g] = z(!1);
|
|
1733
1733
|
M(() => {
|
|
1734
|
-
const
|
|
1735
|
-
m(
|
|
1736
|
-
const
|
|
1737
|
-
Number.isFinite(
|
|
1734
|
+
const p = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
|
|
1735
|
+
m(p);
|
|
1736
|
+
const k = Number(localStorage.getItem("a11y-font-size"));
|
|
1737
|
+
Number.isFinite(k) && k > 0 && f(k);
|
|
1738
1738
|
}, []), M(() => {
|
|
1739
1739
|
if (!v && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
|
|
1740
|
-
const
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}, document.body.appendChild(
|
|
1740
|
+
const p = document.createElement("script");
|
|
1741
|
+
p.src = "https://vlibras.gov.br/app/vlibras-plugin.js", p.async = !0, p.onload = () => {
|
|
1742
|
+
g(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
|
|
1743
|
+
}, document.body.appendChild(p);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, [v]);
|
|
1746
1746
|
const b = () => {
|
|
1747
1747
|
const c = d === "light" ? "dark" : "light";
|
|
1748
1748
|
m(c), document.documentElement.setAttribute("data-theme", c), localStorage.setItem("a11y-theme", c), t == null || t(c);
|
|
1749
|
-
},
|
|
1750
|
-
const c = Math.min(
|
|
1751
|
-
|
|
1749
|
+
}, N = () => {
|
|
1750
|
+
const c = Math.min(u + 2, 24);
|
|
1751
|
+
f(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
|
|
1752
1752
|
}, h = () => {
|
|
1753
|
-
const c = Math.max(
|
|
1754
|
-
|
|
1753
|
+
const c = Math.max(u - 2, 12);
|
|
1754
|
+
f(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
|
|
1755
1755
|
};
|
|
1756
1756
|
return /* @__PURE__ */ e(
|
|
1757
1757
|
"div",
|
|
1758
1758
|
{
|
|
1759
|
-
ref:
|
|
1759
|
+
ref: n,
|
|
1760
1760
|
className: i(
|
|
1761
1761
|
"w-full border-b border-[var(--border)] bg-[var(--card)] sticky top-0 z-50",
|
|
1762
1762
|
a
|
|
@@ -1764,13 +1764,13 @@ const tt = w(
|
|
|
1764
1764
|
role: "toolbar",
|
|
1765
1765
|
"aria-label": "Ferramentas de acessibilidade",
|
|
1766
1766
|
...l,
|
|
1767
|
-
children: /* @__PURE__ */ o(
|
|
1767
|
+
children: /* @__PURE__ */ o(at, { className: "py-2 flex items-center justify-between", children: [
|
|
1768
1768
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 text-sm text-[var(--muted-foreground)]", children: [
|
|
1769
|
-
/* @__PURE__ */ e(
|
|
1769
|
+
/* @__PURE__ */ e(pe, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
|
|
1770
1770
|
/* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Ferramentas de Acessibilidade" })
|
|
1771
1771
|
] }),
|
|
1772
1772
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 md:gap-4", children: [
|
|
1773
|
-
|
|
1773
|
+
s && /* @__PURE__ */ e(
|
|
1774
1774
|
"a",
|
|
1775
1775
|
{
|
|
1776
1776
|
href: "/acessibilidade",
|
|
@@ -1784,14 +1784,14 @@ const tt = w(
|
|
|
1784
1784
|
{
|
|
1785
1785
|
type: "button",
|
|
1786
1786
|
onClick: h,
|
|
1787
|
-
disabled:
|
|
1787
|
+
disabled: u <= 12,
|
|
1788
1788
|
"aria-label": "Diminuir tamanho da fonte",
|
|
1789
1789
|
className: i(
|
|
1790
1790
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1791
1791
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
1792
1792
|
"disabled:opacity-40 disabled:cursor-not-allowed"
|
|
1793
1793
|
),
|
|
1794
|
-
children: /* @__PURE__ */ e(
|
|
1794
|
+
children: /* @__PURE__ */ e(ve, { className: "h-4 w-4" })
|
|
1795
1795
|
}
|
|
1796
1796
|
),
|
|
1797
1797
|
/* @__PURE__ */ e("span", { className: "text-xs text-[var(--muted-foreground)] w-3 text-center select-none", "aria-hidden": "true", children: "A" }),
|
|
@@ -1799,15 +1799,15 @@ const tt = w(
|
|
|
1799
1799
|
"button",
|
|
1800
1800
|
{
|
|
1801
1801
|
type: "button",
|
|
1802
|
-
onClick:
|
|
1803
|
-
disabled:
|
|
1802
|
+
onClick: N,
|
|
1803
|
+
disabled: u >= 24,
|
|
1804
1804
|
"aria-label": "Aumentar tamanho da fonte",
|
|
1805
1805
|
className: i(
|
|
1806
1806
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1807
1807
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
1808
1808
|
"disabled:opacity-40 disabled:cursor-not-allowed"
|
|
1809
1809
|
),
|
|
1810
|
-
children: /* @__PURE__ */ e(
|
|
1810
|
+
children: /* @__PURE__ */ e(be, { className: "h-4 w-4" })
|
|
1811
1811
|
}
|
|
1812
1812
|
)
|
|
1813
1813
|
] }),
|
|
@@ -1821,14 +1821,14 @@ const tt = w(
|
|
|
1821
1821
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1822
1822
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
|
|
1823
1823
|
),
|
|
1824
|
-
children: d === "light" ? /* @__PURE__ */ e(
|
|
1824
|
+
children: d === "light" ? /* @__PURE__ */ e(he, { className: "h-4 w-4" }) : /* @__PURE__ */ e(xe, { className: "h-4 w-4" })
|
|
1825
1825
|
}
|
|
1826
1826
|
),
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
1828
|
"button",
|
|
1829
1829
|
{
|
|
1830
1830
|
type: "button",
|
|
1831
|
-
onClick: () =>
|
|
1831
|
+
onClick: () => g((c) => !c),
|
|
1832
1832
|
"aria-label": "Ativar VLibras",
|
|
1833
1833
|
"aria-pressed": v,
|
|
1834
1834
|
className: i(
|
|
@@ -1849,33 +1849,33 @@ const tt = w(
|
|
|
1849
1849
|
);
|
|
1850
1850
|
}
|
|
1851
1851
|
);
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1852
|
+
rt.displayName = "TopAccessibilityBar";
|
|
1853
|
+
const it = w(
|
|
1854
1854
|
({
|
|
1855
1855
|
className: a,
|
|
1856
1856
|
slides: t,
|
|
1857
1857
|
autoplayDelay: r = 5e3,
|
|
1858
|
-
autoplay:
|
|
1858
|
+
autoplay: s = !0,
|
|
1859
1859
|
...l
|
|
1860
|
-
},
|
|
1861
|
-
const [d, m] =
|
|
1860
|
+
}, n) => {
|
|
1861
|
+
const [d, m] = z(0), [u, f] = z(!1), [v, g] = z(!1);
|
|
1862
1862
|
M(() => {
|
|
1863
1863
|
const c = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1864
|
+
g(c.matches);
|
|
1865
|
+
const p = (k) => {
|
|
1866
|
+
g(k.matches);
|
|
1867
1867
|
};
|
|
1868
|
-
return c.addEventListener("change",
|
|
1868
|
+
return c.addEventListener("change", p), () => c.removeEventListener("change", p);
|
|
1869
1869
|
}, []), M(() => {
|
|
1870
|
-
if (!
|
|
1870
|
+
if (!s || u || v) return;
|
|
1871
1871
|
const c = setInterval(() => {
|
|
1872
|
-
m((
|
|
1872
|
+
m((p) => (p + 1) % t.length);
|
|
1873
1873
|
}, r);
|
|
1874
1874
|
return () => clearInterval(c);
|
|
1875
|
-
}, [
|
|
1875
|
+
}, [s, r, t.length, u, v]);
|
|
1876
1876
|
const b = (c) => {
|
|
1877
|
-
m(c),
|
|
1878
|
-
},
|
|
1877
|
+
m(c), f(!0), setTimeout(() => f(!1), r);
|
|
1878
|
+
}, N = () => {
|
|
1879
1879
|
b((d - 1 + t.length) % t.length);
|
|
1880
1880
|
}, h = () => {
|
|
1881
1881
|
b((d + 1) % t.length);
|
|
@@ -1883,20 +1883,20 @@ const at = w(
|
|
|
1883
1883
|
return t.length === 0 ? null : (t[d], /* @__PURE__ */ o(
|
|
1884
1884
|
"div",
|
|
1885
1885
|
{
|
|
1886
|
-
ref:
|
|
1886
|
+
ref: n,
|
|
1887
1887
|
className: i("relative w-full overflow-hidden", a),
|
|
1888
|
-
onMouseEnter: () =>
|
|
1889
|
-
onMouseLeave: () =>
|
|
1888
|
+
onMouseEnter: () => f(!0),
|
|
1889
|
+
onMouseLeave: () => f(!1),
|
|
1890
1890
|
...l,
|
|
1891
1891
|
children: [
|
|
1892
|
-
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c,
|
|
1892
|
+
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c, p) => /* @__PURE__ */ o(
|
|
1893
1893
|
"div",
|
|
1894
1894
|
{
|
|
1895
1895
|
className: i(
|
|
1896
1896
|
"w-full transition-opacity duration-700",
|
|
1897
|
-
|
|
1897
|
+
p === d ? "block" : "hidden"
|
|
1898
1898
|
),
|
|
1899
|
-
"aria-hidden":
|
|
1899
|
+
"aria-hidden": p !== d,
|
|
1900
1900
|
children: [
|
|
1901
1901
|
/* @__PURE__ */ o("picture", { children: [
|
|
1902
1902
|
/* @__PURE__ */ e(
|
|
@@ -1920,7 +1920,7 @@ const at = w(
|
|
|
1920
1920
|
srcSet: `${c.imageMobile} 1x, ${c.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
|
|
1921
1921
|
alt: c.title,
|
|
1922
1922
|
className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
|
|
1923
|
-
loading:
|
|
1923
|
+
loading: p === 0 ? "eager" : "lazy"
|
|
1924
1924
|
}
|
|
1925
1925
|
)
|
|
1926
1926
|
] }),
|
|
@@ -1944,10 +1944,10 @@ const at = w(
|
|
|
1944
1944
|
/* @__PURE__ */ e(
|
|
1945
1945
|
"button",
|
|
1946
1946
|
{
|
|
1947
|
-
onClick:
|
|
1947
|
+
onClick: N,
|
|
1948
1948
|
className: "absolute left-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
|
|
1949
1949
|
"aria-label": "Slide anterior",
|
|
1950
|
-
children: /* @__PURE__ */ e(
|
|
1950
|
+
children: /* @__PURE__ */ e(Ne, { className: "h-6 w-6 text-gray-900" })
|
|
1951
1951
|
}
|
|
1952
1952
|
),
|
|
1953
1953
|
/* @__PURE__ */ e(
|
|
@@ -1956,43 +1956,43 @@ const at = w(
|
|
|
1956
1956
|
onClick: h,
|
|
1957
1957
|
className: "absolute right-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
|
|
1958
1958
|
"aria-label": "Próximo slide",
|
|
1959
|
-
children: /* @__PURE__ */ e(
|
|
1959
|
+
children: /* @__PURE__ */ e(O, { className: "h-6 w-6 text-gray-900" })
|
|
1960
1960
|
}
|
|
1961
1961
|
)
|
|
1962
1962
|
] }),
|
|
1963
|
-
t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((c,
|
|
1963
|
+
t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((c, p) => /* @__PURE__ */ e(
|
|
1964
1964
|
"button",
|
|
1965
1965
|
{
|
|
1966
|
-
onClick: () => b(
|
|
1966
|
+
onClick: () => b(p),
|
|
1967
1967
|
className: "min-w-11 min-h-6 flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-full group",
|
|
1968
|
-
"aria-label": `Ir para slide ${
|
|
1969
|
-
"aria-current":
|
|
1968
|
+
"aria-label": `Ir para slide ${p + 1}`,
|
|
1969
|
+
"aria-current": p === d,
|
|
1970
1970
|
children: /* @__PURE__ */ e(
|
|
1971
1971
|
"span",
|
|
1972
1972
|
{
|
|
1973
1973
|
className: i(
|
|
1974
1974
|
"block rounded-full transition-all",
|
|
1975
|
-
|
|
1975
|
+
p === d ? "h-1 w-3 bg-white" : "h-1 w-1 bg-white/40 group-hover:bg-white/60"
|
|
1976
1976
|
)
|
|
1977
1977
|
}
|
|
1978
1978
|
)
|
|
1979
1979
|
},
|
|
1980
|
-
|
|
1980
|
+
p
|
|
1981
1981
|
)) })
|
|
1982
1982
|
]
|
|
1983
1983
|
}
|
|
1984
1984
|
));
|
|
1985
1985
|
}
|
|
1986
1986
|
);
|
|
1987
|
-
|
|
1988
|
-
function
|
|
1987
|
+
it.displayName = "HeroCarousel";
|
|
1988
|
+
function ot({
|
|
1989
1989
|
className: a,
|
|
1990
1990
|
children: t,
|
|
1991
1991
|
viewport: r = !0,
|
|
1992
|
-
...
|
|
1992
|
+
...s
|
|
1993
1993
|
}) {
|
|
1994
1994
|
return /* @__PURE__ */ o(
|
|
1995
|
-
|
|
1995
|
+
D.Root,
|
|
1996
1996
|
{
|
|
1997
1997
|
"data-slot": "navigation-menu",
|
|
1998
1998
|
"data-viewport": r,
|
|
@@ -2000,20 +2000,20 @@ function rt({
|
|
|
2000
2000
|
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2001
2001
|
a
|
|
2002
2002
|
),
|
|
2003
|
-
...
|
|
2003
|
+
...s,
|
|
2004
2004
|
children: [
|
|
2005
2005
|
t,
|
|
2006
|
-
r && /* @__PURE__ */ e(
|
|
2006
|
+
r && /* @__PURE__ */ e(ct, {})
|
|
2007
2007
|
]
|
|
2008
2008
|
}
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function nt({
|
|
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
2019
|
className: i(
|
|
@@ -2024,12 +2024,12 @@ function it({
|
|
|
2024
2024
|
}
|
|
2025
2025
|
);
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function H({
|
|
2028
2028
|
className: a,
|
|
2029
2029
|
...t
|
|
2030
2030
|
}) {
|
|
2031
2031
|
return /* @__PURE__ */ e(
|
|
2032
|
-
|
|
2032
|
+
D.Item,
|
|
2033
2033
|
{
|
|
2034
2034
|
"data-slot": "navigation-menu-item",
|
|
2035
2035
|
className: i("relative", a),
|
|
@@ -2037,25 +2037,25 @@ function U({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const st = A(
|
|
2041
2041
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
2042
2042
|
);
|
|
2043
|
-
function
|
|
2043
|
+
function lt({
|
|
2044
2044
|
className: a,
|
|
2045
2045
|
children: t,
|
|
2046
2046
|
...r
|
|
2047
2047
|
}) {
|
|
2048
2048
|
return /* @__PURE__ */ o(
|
|
2049
|
-
|
|
2049
|
+
D.Trigger,
|
|
2050
2050
|
{
|
|
2051
2051
|
"data-slot": "navigation-menu-trigger",
|
|
2052
|
-
className: i(
|
|
2052
|
+
className: i(st(), "group", a),
|
|
2053
2053
|
...r,
|
|
2054
2054
|
children: [
|
|
2055
2055
|
t,
|
|
2056
2056
|
" ",
|
|
2057
2057
|
/* @__PURE__ */ e(
|
|
2058
|
-
|
|
2058
|
+
E,
|
|
2059
2059
|
{
|
|
2060
2060
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
2061
2061
|
"aria-hidden": "true"
|
|
@@ -2065,12 +2065,12 @@ function nt({
|
|
|
2065
2065
|
}
|
|
2066
2066
|
);
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function dt({
|
|
2069
2069
|
className: a,
|
|
2070
2070
|
...t
|
|
2071
2071
|
}) {
|
|
2072
2072
|
return /* @__PURE__ */ e(
|
|
2073
|
-
|
|
2073
|
+
D.Content,
|
|
2074
2074
|
{
|
|
2075
2075
|
"data-slot": "navigation-menu-content",
|
|
2076
2076
|
className: i(
|
|
@@ -2082,7 +2082,7 @@ function st({
|
|
|
2082
2082
|
}
|
|
2083
2083
|
);
|
|
2084
2084
|
}
|
|
2085
|
-
function
|
|
2085
|
+
function ct({
|
|
2086
2086
|
className: a,
|
|
2087
2087
|
...t
|
|
2088
2088
|
}) {
|
|
@@ -2093,7 +2093,7 @@ function lt({
|
|
|
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
2099
|
className: i(
|
|
@@ -2106,12 +2106,12 @@ function lt({
|
|
|
2106
2106
|
}
|
|
2107
2107
|
);
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function F({
|
|
2110
2110
|
className: a,
|
|
2111
2111
|
...t
|
|
2112
2112
|
}) {
|
|
2113
2113
|
return /* @__PURE__ */ e(
|
|
2114
|
-
|
|
2114
|
+
D.Link,
|
|
2115
2115
|
{
|
|
2116
2116
|
"data-slot": "navigation-menu-link",
|
|
2117
2117
|
className: i(
|
|
@@ -2122,7 +2122,7 @@ function I({
|
|
|
2122
2122
|
}
|
|
2123
2123
|
);
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function ut({ 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;
|
|
@@ -2135,16 +2135,16 @@ function dt({ items: a }) {
|
|
|
2135
2135
|
children: t.label
|
|
2136
2136
|
}
|
|
2137
2137
|
),
|
|
2138
|
-
/* @__PURE__ */ e("ul", { className: "ml-1", role: "none", children: t.children.map((
|
|
2139
|
-
|
|
2138
|
+
/* @__PURE__ */ e("ul", { className: "ml-1", role: "none", children: t.children.map((s) => /* @__PURE__ */ e("li", { role: "none", children: /* @__PURE__ */ e(
|
|
2139
|
+
F,
|
|
2140
2140
|
{
|
|
2141
|
-
href:
|
|
2141
|
+
href: s.href ?? "#",
|
|
2142
2142
|
className: "block rounded px-3 py-1.5 text-sm text-[var(--foreground)] hover:bg-[var(--accent)] transition-colors",
|
|
2143
|
-
children:
|
|
2143
|
+
children: s.label
|
|
2144
2144
|
}
|
|
2145
|
-
) },
|
|
2145
|
+
) }, s.id)) })
|
|
2146
2146
|
] }, t.id) : /* @__PURE__ */ e("li", { role: "none", children: /* @__PURE__ */ e(
|
|
2147
|
-
|
|
2147
|
+
F,
|
|
2148
2148
|
{
|
|
2149
2149
|
href: t.href ?? "#",
|
|
2150
2150
|
className: "block rounded px-3 py-1.5 text-sm text-[var(--foreground)] hover:bg-[var(--accent)] transition-colors",
|
|
@@ -2154,10 +2154,10 @@ function dt({ items: a }) {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
) });
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2158
|
-
var
|
|
2159
|
-
const [r,
|
|
2160
|
-
return !((
|
|
2157
|
+
function Z({ item: a, depth: t = 0 }) {
|
|
2158
|
+
var n;
|
|
2159
|
+
const [r, s] = z(!1);
|
|
2160
|
+
return !((n = a.children) != null && n.length) ? /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2161
2161
|
"a",
|
|
2162
2162
|
{
|
|
2163
2163
|
href: a.href ?? "#",
|
|
@@ -2174,7 +2174,7 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2174
2174
|
type: "button",
|
|
2175
2175
|
"aria-expanded": r,
|
|
2176
2176
|
"aria-controls": `mobile-nav-${a.id}`,
|
|
2177
|
-
onClick: () =>
|
|
2177
|
+
onClick: () => s((d) => !d),
|
|
2178
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"
|
|
@@ -2182,7 +2182,7 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2182
2182
|
children: [
|
|
2183
2183
|
/* @__PURE__ */ e("span", { children: a.label }),
|
|
2184
2184
|
/* @__PURE__ */ e(
|
|
2185
|
-
|
|
2185
|
+
X,
|
|
2186
2186
|
{
|
|
2187
2187
|
"aria-hidden": "true",
|
|
2188
2188
|
className: i(
|
|
@@ -2199,49 +2199,49 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2199
2199
|
{
|
|
2200
2200
|
id: `mobile-nav-${a.id}`,
|
|
2201
2201
|
className: "mb-1 ml-2 border-l-2 border-[var(--border)] pl-3",
|
|
2202
|
-
children: a.children.map((d) => /* @__PURE__ */ e(
|
|
2202
|
+
children: a.children.map((d) => /* @__PURE__ */ e(Z, { item: d, depth: t + 1 }, d.id))
|
|
2203
2203
|
}
|
|
2204
2204
|
)
|
|
2205
2205
|
] });
|
|
2206
2206
|
}
|
|
2207
|
-
const
|
|
2208
|
-
({ items: a, logo: t, rightSlot: r, searchSlot:
|
|
2207
|
+
const mt = w(
|
|
2208
|
+
({ items: a, logo: t, rightSlot: r, searchSlot: s, drawerFooter: l, className: n, ...d }, m) => /* @__PURE__ */ e(
|
|
2209
2209
|
"header",
|
|
2210
2210
|
{
|
|
2211
2211
|
ref: m,
|
|
2212
2212
|
className: i(
|
|
2213
2213
|
"sticky top-0 z-40 border-b border-[var(--border)] bg-[var(--card)]",
|
|
2214
|
-
|
|
2214
|
+
n
|
|
2215
2215
|
),
|
|
2216
2216
|
...d,
|
|
2217
2217
|
children: /* @__PURE__ */ o("div", { className: "px-4", children: [
|
|
2218
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
|
+
s && /* @__PURE__ */ e("div", { className: "hidden flex-1 md:flex", children: s }),
|
|
2221
2221
|
/* @__PURE__ */ e("div", { className: "flex-1 md:hidden", "aria-hidden": "true" }),
|
|
2222
2222
|
r && /* @__PURE__ */ e("div", { className: "flex items-center", children: r }),
|
|
2223
|
-
/* @__PURE__ */ o(
|
|
2224
|
-
/* @__PURE__ */ e(
|
|
2223
|
+
/* @__PURE__ */ o(Oe, { children: [
|
|
2224
|
+
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2225
2225
|
"button",
|
|
2226
2226
|
{
|
|
2227
2227
|
type: "button",
|
|
2228
2228
|
"aria-label": "Abrir menu de navegação",
|
|
2229
2229
|
className: "inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-lg text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] md:hidden",
|
|
2230
|
-
children: /* @__PURE__ */ e(
|
|
2230
|
+
children: /* @__PURE__ */ e(we, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
2231
2231
|
}
|
|
2232
2232
|
) }),
|
|
2233
|
-
/* @__PURE__ */ o(
|
|
2234
|
-
/* @__PURE__ */ o(
|
|
2235
|
-
/* @__PURE__ */ e(
|
|
2233
|
+
/* @__PURE__ */ o(Je, { side: "left", className: "flex flex-col p-0", children: [
|
|
2234
|
+
/* @__PURE__ */ o(et, { className: "border-b border-[var(--border)] px-5 py-4", children: [
|
|
2235
|
+
/* @__PURE__ */ e(tt, { className: "sr-only", children: "Menu de navegação" }),
|
|
2236
2236
|
t && /* @__PURE__ */ e("div", { className: "flex items-center", children: t })
|
|
2237
2237
|
] }),
|
|
2238
|
-
|
|
2238
|
+
s && /* @__PURE__ */ e("div", { className: "border-b border-[var(--border)] px-5 py-4", children: s }),
|
|
2239
2239
|
/* @__PURE__ */ e(
|
|
2240
2240
|
"nav",
|
|
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((u) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Z, { item: u }) }, u.id)) })
|
|
2245
2245
|
}
|
|
2246
2246
|
),
|
|
2247
2247
|
l && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: l })
|
|
@@ -2253,20 +2253,20 @@ const ct = w(
|
|
|
2253
2253
|
{
|
|
2254
2254
|
"aria-label": "Menu principal",
|
|
2255
2255
|
className: "hidden border-t border-[var(--border)] py-2 md:flex",
|
|
2256
|
-
children: /* @__PURE__ */ e(
|
|
2257
|
-
(
|
|
2258
|
-
var
|
|
2259
|
-
return (
|
|
2260
|
-
/* @__PURE__ */ e(
|
|
2261
|
-
/* @__PURE__ */ e(
|
|
2262
|
-
] },
|
|
2263
|
-
|
|
2256
|
+
children: /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(nt, { children: a.map(
|
|
2257
|
+
(u) => {
|
|
2258
|
+
var f;
|
|
2259
|
+
return (f = u.children) != null && f.length ? /* @__PURE__ */ o(H, { children: [
|
|
2260
|
+
/* @__PURE__ */ e(lt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: u.label }),
|
|
2261
|
+
/* @__PURE__ */ e(dt, { children: /* @__PURE__ */ e(ut, { items: u.children }) })
|
|
2262
|
+
] }, u.id) : /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
2263
|
+
F,
|
|
2264
2264
|
{
|
|
2265
|
-
href:
|
|
2265
|
+
href: u.href ?? "#",
|
|
2266
2266
|
className: "inline-flex h-9 items-center rounded-md px-4 text-sm font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
2267
|
-
children:
|
|
2267
|
+
children: u.label
|
|
2268
2268
|
}
|
|
2269
|
-
) },
|
|
2269
|
+
) }, u.id);
|
|
2270
2270
|
}
|
|
2271
2271
|
) }) })
|
|
2272
2272
|
}
|
|
@@ -2275,13 +2275,13 @@ const ct = w(
|
|
|
2275
2275
|
}
|
|
2276
2276
|
)
|
|
2277
2277
|
);
|
|
2278
|
-
|
|
2279
|
-
const
|
|
2280
|
-
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon:
|
|
2281
|
-
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon:
|
|
2282
|
-
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon:
|
|
2283
|
-
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon:
|
|
2284
|
-
],
|
|
2278
|
+
mt.displayName = "MegaMenu";
|
|
2279
|
+
const ft = [
|
|
2280
|
+
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon: ye, key: "instagram" },
|
|
2281
|
+
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon: ke, key: "facebook" },
|
|
2282
|
+
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ze, key: "youtube" },
|
|
2283
|
+
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: Ce, key: "linkedin" }
|
|
2284
|
+
], gt = [
|
|
2285
2285
|
{
|
|
2286
2286
|
id: "catalogo",
|
|
2287
2287
|
title: "Catálogo",
|
|
@@ -2315,13 +2315,13 @@ const ut = [
|
|
|
2315
2315
|
]
|
|
2316
2316
|
}
|
|
2317
2317
|
];
|
|
2318
|
-
function
|
|
2319
|
-
const [t, r] =
|
|
2318
|
+
function pt({ onSubmit: a }) {
|
|
2319
|
+
const [t, r] = z(""), [s, l] = z(!1);
|
|
2320
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
|
-
/* @__PURE__ */ e(
|
|
2321
|
+
/* @__PURE__ */ e(Se, { 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
|
-
|
|
2324
|
+
s ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (d) => {
|
|
2325
2325
|
d.preventDefault(), t && (a == null || a(t), l(!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" }),
|
|
@@ -2349,20 +2349,20 @@ function ft({ onSubmit: a }) {
|
|
|
2349
2349
|
] })
|
|
2350
2350
|
] }) });
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2353
|
-
const [r,
|
|
2352
|
+
function vt({ title: a, links: t }) {
|
|
2353
|
+
const [r, s] = z(!1);
|
|
2354
2354
|
return /* @__PURE__ */ o("div", { className: "border-b border-[var(--border)] md:border-none", children: [
|
|
2355
2355
|
/* @__PURE__ */ o(
|
|
2356
2356
|
"button",
|
|
2357
2357
|
{
|
|
2358
2358
|
type: "button",
|
|
2359
2359
|
"aria-expanded": r,
|
|
2360
|
-
onClick: () =>
|
|
2360
|
+
onClick: () => s((l) => !l),
|
|
2361
2361
|
className: "flex w-full items-center justify-between py-4 text-left text-sm font-semibold text-[var(--foreground)] md:hidden",
|
|
2362
2362
|
children: [
|
|
2363
2363
|
a,
|
|
2364
2364
|
/* @__PURE__ */ e(
|
|
2365
|
-
|
|
2365
|
+
X,
|
|
2366
2366
|
{
|
|
2367
2367
|
"aria-hidden": "true",
|
|
2368
2368
|
className: i("h-4 w-4 text-[var(--muted-foreground)] transition-transform duration-200", r && "rotate-180")
|
|
@@ -2392,20 +2392,20 @@ function gt({ title: a, links: t }) {
|
|
|
2392
2392
|
)
|
|
2393
2393
|
] });
|
|
2394
2394
|
}
|
|
2395
|
-
const
|
|
2396
|
-
const [
|
|
2395
|
+
const bt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: s, appStoreUrl: l, orgInfo: n, className: d, ...m }) => {
|
|
2396
|
+
const [u, f] = z("light");
|
|
2397
2397
|
M(() => {
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2400
|
-
const
|
|
2401
|
-
|
|
2398
|
+
const x = document.documentElement;
|
|
2399
|
+
f(x.getAttribute("data-theme") ?? "light");
|
|
2400
|
+
const B = new MutationObserver(() => {
|
|
2401
|
+
f(x.getAttribute("data-theme") ?? "light");
|
|
2402
2402
|
});
|
|
2403
|
-
return
|
|
2403
|
+
return B.observe(x, { attributes: !0, attributeFilter: ["data-theme"] }), () => B.disconnect();
|
|
2404
2404
|
}, []);
|
|
2405
|
-
const v = a === "perabook" ?
|
|
2406
|
-
...
|
|
2407
|
-
href: (
|
|
2408
|
-
})).filter((
|
|
2405
|
+
const v = a === "perabook" ? u === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : u === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", g = a === "perabook" ? "PeraBook" : "Elo Editora", b = ft.map((x) => ({
|
|
2406
|
+
...x,
|
|
2407
|
+
href: (n == null ? void 0 : n[x.key]) ?? x.href
|
|
2408
|
+
})).filter((x) => x.href), N = (n == null ? void 0 : n.email) ?? "contato@grupoeloediorial.com.br", h = (n == null ? void 0 : n.phone) ?? "(11) 3000-0000", c = n == null ? void 0 : n.fullAddress, p = u === "dark" && (n != null && n.googlePlayBadgeUrlDark) ? n.googlePlayBadgeUrlDark : (n == null ? void 0 : n.googlePlayBadgeUrl) ?? "/badges/google-play.png", k = u === "dark" && (n != null && n.appStoreBadgeUrlDark) ? n.appStoreBadgeUrlDark : (n == null ? void 0 : n.appStoreBadgeUrl) ?? "/badges/app-store.png";
|
|
2409
2409
|
return /* @__PURE__ */ o(
|
|
2410
2410
|
"footer",
|
|
2411
2411
|
{
|
|
@@ -2413,7 +2413,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2413
2413
|
"aria-label": "Rodapé do site",
|
|
2414
2414
|
...m,
|
|
2415
2415
|
children: [
|
|
2416
|
-
r !== void 0 ? r : /* @__PURE__ */ e(
|
|
2416
|
+
r !== void 0 ? r : /* @__PURE__ */ e(pt, { onSubmit: t }),
|
|
2417
2417
|
/* @__PURE__ */ o("div", { className: "mx-auto max-w-screen-xl px-4", children: [
|
|
2418
2418
|
/* @__PURE__ */ o("div", { className: "py-10 md:grid md:grid-cols-5 md:gap-8", children: [
|
|
2419
2419
|
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
@@ -2421,7 +2421,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2421
2421
|
"img",
|
|
2422
2422
|
{
|
|
2423
2423
|
src: v,
|
|
2424
|
-
alt:
|
|
2424
|
+
alt: g,
|
|
2425
2425
|
width: 120,
|
|
2426
2426
|
height: 40,
|
|
2427
2427
|
className: "h-10 w-auto object-contain"
|
|
@@ -2429,19 +2429,19 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2429
2429
|
),
|
|
2430
2430
|
/* @__PURE__ */ o("div", { className: "mt-6 space-y-1 text-sm", children: [
|
|
2431
2431
|
/* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: "Atendimento:" }),
|
|
2432
|
-
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children:
|
|
2432
|
+
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: N }),
|
|
2433
2433
|
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: h }),
|
|
2434
2434
|
c && /* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: c })
|
|
2435
2435
|
] })
|
|
2436
2436
|
] }),
|
|
2437
|
-
|
|
2437
|
+
gt.map((x) => /* @__PURE__ */ e(vt, { title: x.title, links: x.links }, x.id)),
|
|
2438
2438
|
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
2439
2439
|
/* @__PURE__ */ e("p", { className: "text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Baixe nosso app" }),
|
|
2440
2440
|
/* @__PURE__ */ o("div", { className: "mt-3 flex flex-col gap-2", children: [
|
|
2441
2441
|
/* @__PURE__ */ e(
|
|
2442
2442
|
"a",
|
|
2443
2443
|
{
|
|
2444
|
-
href:
|
|
2444
|
+
href: s ?? "#",
|
|
2445
2445
|
target: "_blank",
|
|
2446
2446
|
rel: "noopener noreferrer",
|
|
2447
2447
|
"aria-label": "Disponível no Google Play",
|
|
@@ -2449,7 +2449,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2449
2449
|
children: /* @__PURE__ */ e(
|
|
2450
2450
|
"img",
|
|
2451
2451
|
{
|
|
2452
|
-
src:
|
|
2452
|
+
src: p,
|
|
2453
2453
|
alt: "Disponível no Google Play",
|
|
2454
2454
|
width: 135,
|
|
2455
2455
|
height: 40,
|
|
@@ -2469,7 +2469,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2469
2469
|
children: /* @__PURE__ */ e(
|
|
2470
2470
|
"img",
|
|
2471
2471
|
{
|
|
2472
|
-
src:
|
|
2472
|
+
src: k,
|
|
2473
2473
|
alt: "Disponível na App Store",
|
|
2474
2474
|
width: 135,
|
|
2475
2475
|
height: 40,
|
|
@@ -2480,17 +2480,17 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2480
2480
|
)
|
|
2481
2481
|
] }),
|
|
2482
2482
|
/* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Compartilhe" }),
|
|
2483
|
-
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: b.map(({ label:
|
|
2483
|
+
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: b.map(({ label: x, href: B, Icon: J }) => /* @__PURE__ */ e(
|
|
2484
2484
|
"a",
|
|
2485
2485
|
{
|
|
2486
|
-
href:
|
|
2486
|
+
href: B,
|
|
2487
2487
|
target: "_blank",
|
|
2488
2488
|
rel: "noopener noreferrer",
|
|
2489
|
-
"aria-label":
|
|
2489
|
+
"aria-label": x,
|
|
2490
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)]",
|
|
2491
|
-
children: /* @__PURE__ */ e(
|
|
2491
|
+
children: /* @__PURE__ */ e(J, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
2492
2492
|
},
|
|
2493
|
-
|
|
2493
|
+
x
|
|
2494
2494
|
)) })
|
|
2495
2495
|
] })
|
|
2496
2496
|
] }),
|
|
@@ -2511,8 +2511,8 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2511
2511
|
}
|
|
2512
2512
|
);
|
|
2513
2513
|
};
|
|
2514
|
-
|
|
2515
|
-
function
|
|
2514
|
+
bt.displayName = "Footer";
|
|
2515
|
+
function ia({ children: a, className: t }) {
|
|
2516
2516
|
return /* @__PURE__ */ e(
|
|
2517
2517
|
"div",
|
|
2518
2518
|
{
|
|
@@ -2525,7 +2525,7 @@ function aa({ children: a, className: t }) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
);
|
|
2527
2527
|
}
|
|
2528
|
-
const
|
|
2528
|
+
const ht = {
|
|
2529
2529
|
1: "col-span-1",
|
|
2530
2530
|
2: "col-span-2",
|
|
2531
2531
|
3: "col-span-3",
|
|
@@ -2533,77 +2533,77 @@ const vt = {
|
|
|
2533
2533
|
5: "col-span-5",
|
|
2534
2534
|
6: "col-span-6"
|
|
2535
2535
|
};
|
|
2536
|
-
function
|
|
2537
|
-
return /* @__PURE__ */ e("div", { "data-slot": "col", className: i("min-w-0", t &&
|
|
2536
|
+
function oa({ children: a, span: t, className: r }) {
|
|
2537
|
+
return /* @__PURE__ */ e("div", { "data-slot": "col", className: i("min-w-0", t && ht[t], r), children: a });
|
|
2538
2538
|
}
|
|
2539
2539
|
export {
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2540
|
+
Ut as Accordion,
|
|
2541
|
+
Ht as AccordionContent,
|
|
2542
|
+
qt as AccordionItem,
|
|
2543
|
+
Gt as AccordionTrigger,
|
|
2544
|
+
Be as Avatar,
|
|
2545
2545
|
_ as Badge,
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2546
|
+
Rt as Breadcrumb,
|
|
2547
|
+
$t as BreadcrumbItem,
|
|
2548
|
+
Vt as BreadcrumbLink,
|
|
2549
|
+
Tt as BreadcrumbList,
|
|
2550
|
+
Ft as BreadcrumbPage,
|
|
2551
2551
|
It as BreadcrumbSeparator,
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2552
|
+
S as Button,
|
|
2553
|
+
Bt as Checkbox,
|
|
2554
|
+
oa as Col,
|
|
2555
|
+
at as Container,
|
|
2556
|
+
Yt as DialogContent,
|
|
2557
|
+
ta as DialogDescription,
|
|
2558
|
+
Jt as DialogFooter,
|
|
2559
|
+
Zt as DialogHeader,
|
|
2560
|
+
ea as DialogTitle,
|
|
2561
|
+
Xt as DialogTrigger,
|
|
2562
|
+
Ee as Divider,
|
|
2563
|
+
Oe as Drawer,
|
|
2564
|
+
Y as EmptyState,
|
|
2565
|
+
Ge as ErrorState,
|
|
2566
|
+
bt as Footer,
|
|
2567
2567
|
Ie as FormGroup,
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2568
|
+
ia as Grid,
|
|
2569
|
+
qe as Hero,
|
|
2570
|
+
it as HeroCarousel,
|
|
2571
|
+
St as Input,
|
|
2572
|
+
mt as MegaMenu,
|
|
2573
|
+
Kt as Modal,
|
|
2574
|
+
Ve as PriceDisplay,
|
|
2575
|
+
V as ProductCard,
|
|
2576
|
+
He as ProductGrid,
|
|
2577
|
+
ca as ProgressBar,
|
|
2578
|
+
Fe as QuantitySelector,
|
|
2579
|
+
Lt as RadioGroup,
|
|
2580
|
+
_t as RadioGroupItem,
|
|
2581
|
+
$ as Rating,
|
|
2582
|
+
$e as SearchBar,
|
|
2583
|
+
Dt as Select,
|
|
2584
|
+
Pt as SelectContent,
|
|
2585
|
+
At as SelectItem,
|
|
2586
|
+
Mt as SelectTrigger,
|
|
2587
|
+
jt as SelectValue,
|
|
2588
|
+
Je as SheetContent,
|
|
2589
|
+
ra as SheetDescription,
|
|
2590
|
+
aa as SheetFooter,
|
|
2591
|
+
et as SheetHeader,
|
|
2592
|
+
tt as SheetTitle,
|
|
2593
|
+
Ke as SheetTrigger,
|
|
2594
|
+
_e as Spinner,
|
|
2595
|
+
Me as Textarea,
|
|
2596
|
+
Et as Toggle,
|
|
2597
|
+
Qt as Tooltip,
|
|
2598
|
+
Ot as TooltipContent,
|
|
2599
|
+
Ue as TooltipProvider,
|
|
2600
|
+
Wt as TooltipTrigger,
|
|
2601
|
+
rt as TopAccessibilityBar,
|
|
2602
|
+
Ae as avatarVariants,
|
|
2603
|
+
Pe as badgeVariants,
|
|
2604
|
+
je as buttonVariants,
|
|
2605
2605
|
i as cn,
|
|
2606
|
-
|
|
2607
|
-
|
|
2606
|
+
Le as spinnerVariants,
|
|
2607
|
+
la as toast
|
|
2608
2608
|
};
|
|
2609
2609
|
//# sourceMappingURL=index.js.map
|