@grupo-elo-editorial/shared-ui-react 1.3.9 → 1.3.12
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 +4 -0
- package/dist/components/prd/index.d.ts +1 -1
- package/dist/index.js +259 -259
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx as Z } from "clsx";
|
|
3
3
|
import { twMerge as J } from "tailwind-merge";
|
|
4
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
4
|
+
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
5
5
|
import { forwardRef as w, useState as k, useEffect as M } from "react";
|
|
6
|
-
import { Loader2 as V, User as ee, Star as te, CheckIcon as
|
|
7
|
-
import { cva as
|
|
6
|
+
import { Loader2 as V, User as ee, Star as te, CheckIcon as H, ChevronDownIcon as B, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as E, Heart as ie, Search as Q, X as oe, Minus as ne, Plus as se, ChevronRight as W, FileX as le, Package as de, AlertCircle as ce, RefreshCw as ue, Home as me, XIcon as O, Accessibility as fe, ZoomOut as ge, ZoomIn as pe, Moon as ve, Sun as be, ChevronLeft as he, Menu as xe, ChevronDown as K, Instagram as Ne, Facebook as we, Youtube as ye, Linkedin as ke, Mail as ze } from "lucide-react";
|
|
7
|
+
import { cva as P } from "class-variance-authority";
|
|
8
8
|
import * as z from "@radix-ui/react-select";
|
|
9
9
|
import * as F from "@radix-ui/react-checkbox";
|
|
10
10
|
import * as R from "@radix-ui/react-radio-group";
|
|
11
11
|
import * as q from "@radix-ui/react-switch";
|
|
12
12
|
import { Slot as Ce } from "@radix-ui/react-slot";
|
|
13
13
|
import * as A from "@radix-ui/react-accordion";
|
|
14
|
-
import * as
|
|
14
|
+
import * as D from "@radix-ui/react-tooltip";
|
|
15
15
|
import { toast as na } from "sonner";
|
|
16
16
|
import { Progress as la } from "@radix-ui/react-progress";
|
|
17
17
|
import * as y from "@radix-ui/react-dialog";
|
|
18
|
-
import * as
|
|
18
|
+
import * as j from "@radix-ui/react-navigation-menu";
|
|
19
19
|
function i(...a) {
|
|
20
20
|
return J(Z(a));
|
|
21
21
|
}
|
|
22
|
-
const Se =
|
|
22
|
+
const Se = P(
|
|
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: {
|
|
@@ -51,9 +51,9 @@ const Se = I(
|
|
|
51
51
|
variant: t,
|
|
52
52
|
size: r,
|
|
53
53
|
fullWidth: n,
|
|
54
|
-
isLoading:
|
|
55
|
-
leftIcon:
|
|
56
|
-
rightIcon:
|
|
54
|
+
isLoading: l,
|
|
55
|
+
leftIcon: s,
|
|
56
|
+
rightIcon: d,
|
|
57
57
|
children: m,
|
|
58
58
|
disabled: f,
|
|
59
59
|
...g
|
|
@@ -62,22 +62,22 @@ const Se = I(
|
|
|
62
62
|
{
|
|
63
63
|
className: i(Se({ variant: t, size: r, fullWidth: n, className: a })),
|
|
64
64
|
ref: v,
|
|
65
|
-
disabled: f ||
|
|
65
|
+
disabled: f || l,
|
|
66
66
|
...g,
|
|
67
|
-
children:
|
|
67
|
+
children: l ? /* @__PURE__ */ o(L, { children: [
|
|
68
68
|
/* @__PURE__ */ e(V, { className: "h-4 w-4 animate-spin" }),
|
|
69
69
|
m && /* @__PURE__ */ e("span", { children: m })
|
|
70
|
-
] }) : /* @__PURE__ */ o(
|
|
71
|
-
|
|
70
|
+
] }) : /* @__PURE__ */ o(L, { children: [
|
|
71
|
+
s && /* @__PURE__ */ e("span", { className: "inline-flex", children: s }),
|
|
72
72
|
m,
|
|
73
|
-
|
|
73
|
+
d && /* @__PURE__ */ e("span", { className: "inline-flex", children: d })
|
|
74
74
|
] })
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
);
|
|
78
78
|
C.displayName = "Button";
|
|
79
|
-
const
|
|
80
|
-
({ className: a, error: t, helperText: r, ...n },
|
|
79
|
+
const je = w(
|
|
80
|
+
({ className: a, error: t, helperText: r, ...n }, l) => /* @__PURE__ */ o("div", { className: "w-full", children: [
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
"textarea",
|
|
83
83
|
{
|
|
@@ -90,7 +90,7 @@ const De = w(
|
|
|
90
90
|
t && "border-[var(--destructive)] focus-visible:ring-[var(--destructive)]",
|
|
91
91
|
a
|
|
92
92
|
),
|
|
93
|
-
ref:
|
|
93
|
+
ref: l,
|
|
94
94
|
...n
|
|
95
95
|
}
|
|
96
96
|
),
|
|
@@ -106,8 +106,8 @@ const De = w(
|
|
|
106
106
|
)
|
|
107
107
|
] })
|
|
108
108
|
);
|
|
109
|
-
|
|
110
|
-
const
|
|
109
|
+
je.displayName = "Textarea";
|
|
110
|
+
const De = P(
|
|
111
111
|
"inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
@@ -131,20 +131,20 @@ const je = I(
|
|
|
131
131
|
size: "md"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
),
|
|
135
|
-
({ className: a, variant: t, size: r, icon: n, onRemove:
|
|
134
|
+
), _ = w(
|
|
135
|
+
({ className: a, variant: t, size: r, icon: n, onRemove: l, children: s, ...d }, m) => /* @__PURE__ */ o(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
138
|
ref: m,
|
|
139
|
-
className: i(
|
|
140
|
-
...
|
|
139
|
+
className: i(De({ variant: t, size: r }), a),
|
|
140
|
+
...d,
|
|
141
141
|
children: [
|
|
142
142
|
n && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: n }),
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
s,
|
|
144
|
+
l && /* @__PURE__ */ e(
|
|
145
145
|
"button",
|
|
146
146
|
{
|
|
147
|
-
onClick:
|
|
147
|
+
onClick: l,
|
|
148
148
|
className: "ml-1 inline-flex hover:opacity-70 focus:outline-none focus:ring-1 focus:ring-[var(--ring)] rounded-full",
|
|
149
149
|
"aria-label": "Remove",
|
|
150
150
|
children: "×"
|
|
@@ -154,8 +154,8 @@ const je = I(
|
|
|
154
154
|
}
|
|
155
155
|
)
|
|
156
156
|
);
|
|
157
|
-
|
|
158
|
-
const Me =
|
|
157
|
+
_.displayName = "Badge";
|
|
158
|
+
const Me = P(
|
|
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: {
|
|
@@ -171,7 +171,7 @@ const Me = I(
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
), Ae = w(
|
|
174
|
-
({ className: a, size: t, src: r, alt: n, name:
|
|
174
|
+
({ className: a, size: t, src: r, alt: n, name: l, showStatus: s, statusType: d = "online", ...m }, f) => {
|
|
175
175
|
const [g, v] = k(!1), p = (h) => h.split(" ").map((c) => c[0]).join("").toUpperCase().slice(0, 2), b = {
|
|
176
176
|
online: "bg-[var(--success)]",
|
|
177
177
|
offline: "bg-[var(--muted-foreground)]",
|
|
@@ -188,28 +188,28 @@ const Me = I(
|
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
190
190
|
src: r,
|
|
191
|
-
alt: n ||
|
|
191
|
+
alt: n || l || "Avatar",
|
|
192
192
|
onError: () => v(!0),
|
|
193
193
|
className: "h-full w-full object-cover",
|
|
194
194
|
...m
|
|
195
195
|
}
|
|
196
|
-
) :
|
|
197
|
-
|
|
196
|
+
) : l ? /* @__PURE__ */ e("span", { className: "font-medium", children: p(l) }) : /* @__PURE__ */ e(ee, { className: "h-1/2 w-1/2" }),
|
|
197
|
+
s && /* @__PURE__ */ e(
|
|
198
198
|
"span",
|
|
199
199
|
{
|
|
200
200
|
className: i(
|
|
201
201
|
"absolute bottom-0 right-0 rounded-full border-[var(--background)]",
|
|
202
|
-
b[
|
|
202
|
+
b[d],
|
|
203
203
|
x[t || "md"]
|
|
204
204
|
),
|
|
205
|
-
"aria-label": `Status: ${
|
|
205
|
+
"aria-label": `Status: ${d}`
|
|
206
206
|
}
|
|
207
207
|
)
|
|
208
208
|
] });
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
Ae.displayName = "Avatar";
|
|
212
|
-
const
|
|
212
|
+
const Pe = P("animate-spin text-[var(--brand-primary)]", {
|
|
213
213
|
variants: {
|
|
214
214
|
size: {
|
|
215
215
|
sm: "h-4 w-4",
|
|
@@ -221,26 +221,26 @@ const Ie = I("animate-spin text-[var(--brand-primary)]", {
|
|
|
221
221
|
defaultVariants: {
|
|
222
222
|
size: "md"
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
225
|
-
({ className: a, size: t, label: r, ...n },
|
|
224
|
+
}), Le = w(
|
|
225
|
+
({ className: a, size: t, label: r, ...n }, l) => /* @__PURE__ */ o(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
228
|
-
ref:
|
|
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
|
...n,
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */ e(V, { className: i(
|
|
234
|
+
/* @__PURE__ */ e(V, { className: i(Pe({ size: t })) }),
|
|
235
235
|
/* @__PURE__ */ e("span", { className: "sr-only", children: r || "Loading" })
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
)
|
|
239
239
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...
|
|
243
|
-
const
|
|
240
|
+
Le.displayName = "Spinner";
|
|
241
|
+
const _e = w(
|
|
242
|
+
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...l }, s) => {
|
|
243
|
+
const d = {
|
|
244
244
|
solid: "border-solid",
|
|
245
245
|
dashed: "border-dashed",
|
|
246
246
|
dotted: "border-dotted"
|
|
@@ -249,12 +249,12 @@ const Le = w(
|
|
|
249
249
|
/* @__PURE__ */ e(
|
|
250
250
|
"hr",
|
|
251
251
|
{
|
|
252
|
-
ref:
|
|
252
|
+
ref: s,
|
|
253
253
|
className: i(
|
|
254
254
|
"flex-1 border-[var(--border)]",
|
|
255
|
-
|
|
255
|
+
d[r]
|
|
256
256
|
),
|
|
257
|
-
...
|
|
257
|
+
...l
|
|
258
258
|
}
|
|
259
259
|
),
|
|
260
260
|
/* @__PURE__ */ e("span", { className: "text-sm text-[var(--muted-foreground)]", children: n }),
|
|
@@ -263,37 +263,37 @@ const Le = w(
|
|
|
263
263
|
{
|
|
264
264
|
className: i(
|
|
265
265
|
"flex-1 border-[var(--border)]",
|
|
266
|
-
|
|
266
|
+
d[r]
|
|
267
267
|
)
|
|
268
268
|
}
|
|
269
269
|
)
|
|
270
270
|
] }) : /* @__PURE__ */ e(
|
|
271
271
|
"hr",
|
|
272
272
|
{
|
|
273
|
-
ref:
|
|
273
|
+
ref: s,
|
|
274
274
|
role: "separator",
|
|
275
275
|
"aria-orientation": t,
|
|
276
276
|
className: i(
|
|
277
277
|
"border-[var(--border)]",
|
|
278
|
-
|
|
278
|
+
d[r],
|
|
279
279
|
t === "vertical" ? "h-full w-px border-l" : "w-full border-t my-4",
|
|
280
280
|
a
|
|
281
281
|
),
|
|
282
|
-
...
|
|
282
|
+
...l
|
|
283
283
|
}
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
|
-
|
|
287
|
+
_e.displayName = "Divider";
|
|
288
288
|
const T = w(
|
|
289
289
|
({
|
|
290
290
|
className: a,
|
|
291
291
|
value: t = 0,
|
|
292
292
|
maxRating: r = 5,
|
|
293
293
|
size: n = "md",
|
|
294
|
-
readonly:
|
|
295
|
-
onChange:
|
|
296
|
-
showValue:
|
|
294
|
+
readonly: l = !1,
|
|
295
|
+
onChange: s,
|
|
296
|
+
showValue: d = !1,
|
|
297
297
|
...m
|
|
298
298
|
}, f) => {
|
|
299
299
|
const [g, v] = k(0), p = {
|
|
@@ -301,7 +301,7 @@ const T = w(
|
|
|
301
301
|
md: "h-5 w-5",
|
|
302
302
|
lg: "h-6 w-6"
|
|
303
303
|
}, b = (h) => {
|
|
304
|
-
!
|
|
304
|
+
!l && s && s(h);
|
|
305
305
|
}, x = g || t;
|
|
306
306
|
return /* @__PURE__ */ o(
|
|
307
307
|
"div",
|
|
@@ -318,13 +318,13 @@ const T = w(
|
|
|
318
318
|
"button",
|
|
319
319
|
{
|
|
320
320
|
type: "button",
|
|
321
|
-
disabled:
|
|
321
|
+
disabled: l,
|
|
322
322
|
onClick: () => b(h),
|
|
323
|
-
onMouseEnter: () => !
|
|
324
|
-
onMouseLeave: () => !
|
|
323
|
+
onMouseEnter: () => !l && v(h),
|
|
324
|
+
onMouseLeave: () => !l && v(0),
|
|
325
325
|
className: i(
|
|
326
326
|
"transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-1 rounded",
|
|
327
|
-
|
|
327
|
+
l ? "cursor-default" : "cursor-pointer hover:scale-110"
|
|
328
328
|
),
|
|
329
329
|
"aria-label": `Rate ${h} out of ${r}`,
|
|
330
330
|
children: /* @__PURE__ */ e(
|
|
@@ -341,7 +341,7 @@ const T = w(
|
|
|
341
341
|
h
|
|
342
342
|
);
|
|
343
343
|
}) }),
|
|
344
|
-
|
|
344
|
+
d && /* @__PURE__ */ e("span", { className: "ml-1 text-sm font-medium text-[var(--foreground)]", children: t.toFixed(1) })
|
|
345
345
|
]
|
|
346
346
|
}
|
|
347
347
|
);
|
|
@@ -374,7 +374,7 @@ function St({
|
|
|
374
374
|
}) {
|
|
375
375
|
return /* @__PURE__ */ e(z.Value, { "data-slot": "select-value", ...a });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function jt({
|
|
378
378
|
className: a,
|
|
379
379
|
size: t = "default",
|
|
380
380
|
children: r,
|
|
@@ -392,12 +392,12 @@ function Dt({
|
|
|
392
392
|
...n,
|
|
393
393
|
children: [
|
|
394
394
|
r,
|
|
395
|
-
/* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(B, { className: "size-4 opacity-50" }) })
|
|
396
396
|
]
|
|
397
397
|
}
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Dt({
|
|
401
401
|
className: a,
|
|
402
402
|
children: t,
|
|
403
403
|
position: r = "popper",
|
|
@@ -415,7 +415,7 @@ function jt({
|
|
|
415
415
|
position: r,
|
|
416
416
|
...n,
|
|
417
417
|
children: [
|
|
418
|
-
/* @__PURE__ */ e(
|
|
418
|
+
/* @__PURE__ */ e(Be, {}),
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
420
|
z.Viewport,
|
|
421
421
|
{
|
|
@@ -446,13 +446,13 @@ 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(z.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
449
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(z.ItemIndicator, { children: /* @__PURE__ */ e(H, { className: "size-4" }) }) }),
|
|
450
450
|
/* @__PURE__ */ e(z.ItemText, { children: t })
|
|
451
451
|
]
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Be({
|
|
456
456
|
className: a,
|
|
457
457
|
...t
|
|
458
458
|
}) {
|
|
@@ -482,7 +482,7 @@ function Ee({
|
|
|
482
482
|
a
|
|
483
483
|
),
|
|
484
484
|
...t,
|
|
485
|
-
children: /* @__PURE__ */ e(
|
|
485
|
+
children: /* @__PURE__ */ e(B, { className: "size-4" })
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
@@ -504,13 +504,13 @@ function At({
|
|
|
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(H, { className: "size-3.5" })
|
|
508
508
|
}
|
|
509
509
|
)
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Pt({
|
|
514
514
|
className: a,
|
|
515
515
|
...t
|
|
516
516
|
}) {
|
|
@@ -523,7 +523,7 @@ function It({
|
|
|
523
523
|
}
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Lt({
|
|
527
527
|
className: a,
|
|
528
528
|
...t
|
|
529
529
|
}) {
|
|
@@ -547,7 +547,7 @@ function Pt({
|
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function _t({
|
|
551
551
|
className: a,
|
|
552
552
|
...t
|
|
553
553
|
}) {
|
|
@@ -579,15 +579,15 @@ 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 $ = w(
|
|
583
583
|
({
|
|
584
584
|
className: a,
|
|
585
585
|
image: t,
|
|
586
586
|
title: r,
|
|
587
587
|
author: n,
|
|
588
|
-
price:
|
|
589
|
-
originalPrice:
|
|
590
|
-
rating:
|
|
588
|
+
price: l,
|
|
589
|
+
originalPrice: s,
|
|
590
|
+
rating: d,
|
|
591
591
|
reviewCount: m,
|
|
592
592
|
badge: f,
|
|
593
593
|
badgeVariant: g = "default",
|
|
@@ -662,8 +662,8 @@ const B = w(
|
|
|
662
662
|
}
|
|
663
663
|
) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-sm font-medium text-[var(--card-foreground)]", children: r }),
|
|
664
664
|
n && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: n }),
|
|
665
|
-
|
|
666
|
-
/* @__PURE__ */ e(T, { value:
|
|
665
|
+
d !== void 0 && /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
|
|
666
|
+
/* @__PURE__ */ e(T, { 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,
|
|
@@ -673,11 +673,11 @@ const B = w(
|
|
|
673
673
|
/* @__PURE__ */ o("div", { className: "flex items-baseline gap-2", children: [
|
|
674
674
|
/* @__PURE__ */ o("span", { className: "text-base font-bold text-[var(--foreground)]", children: [
|
|
675
675
|
"R$ ",
|
|
676
|
-
|
|
676
|
+
l.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
677
677
|
] }),
|
|
678
|
-
|
|
678
|
+
s && s > l && /* @__PURE__ */ o("span", { className: "text-xs text-[var(--muted-foreground)] line-through", children: [
|
|
679
679
|
"R$ ",
|
|
680
|
-
|
|
680
|
+
s.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
681
681
|
] })
|
|
682
682
|
] }),
|
|
683
683
|
b && /* @__PURE__ */ e(
|
|
@@ -721,8 +721,8 @@ const B = w(
|
|
|
721
721
|
className: "h-full w-full object-contain transition-transform group-hover:scale-105"
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
|
-
f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(
|
|
725
|
-
p && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(
|
|
724
|
+
f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(_, { variant: g, children: f }) }),
|
|
725
|
+
p && /* @__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
|
),
|
|
@@ -753,8 +753,8 @@ const B = w(
|
|
|
753
753
|
}
|
|
754
754
|
) : /* @__PURE__ */ e("h3", { className: "wrap-break-word text-base font-medium text-card-foreground", children: r }),
|
|
755
755
|
n && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: n }),
|
|
756
|
-
|
|
757
|
-
/* @__PURE__ */ e(T, { value:
|
|
756
|
+
d !== void 0 && /* @__PURE__ */ o("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
757
|
+
/* @__PURE__ */ e(T, { 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,
|
|
@@ -764,11 +764,11 @@ const B = w(
|
|
|
764
764
|
/* @__PURE__ */ o("div", { className: "mt-3 flex items-baseline gap-2", children: [
|
|
765
765
|
/* @__PURE__ */ o("span", { className: "text-xl font-bold text-[var(--foreground)]", children: [
|
|
766
766
|
"R$ ",
|
|
767
|
-
|
|
767
|
+
l.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
768
768
|
] }),
|
|
769
|
-
|
|
769
|
+
s && s > l && /* @__PURE__ */ o("span", { className: "text-sm text-[var(--muted-foreground)] line-through", children: [
|
|
770
770
|
"R$ ",
|
|
771
|
-
|
|
771
|
+
s.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
772
772
|
] })
|
|
773
773
|
] }),
|
|
774
774
|
b && /* @__PURE__ */ e(
|
|
@@ -794,28 +794,28 @@ const B = w(
|
|
|
794
794
|
}
|
|
795
795
|
)
|
|
796
796
|
);
|
|
797
|
-
|
|
797
|
+
$.displayName = "ProductCard";
|
|
798
798
|
const Re = w(
|
|
799
799
|
({
|
|
800
800
|
className: a,
|
|
801
801
|
onSearch: t,
|
|
802
802
|
onClear: r,
|
|
803
803
|
isLoading: n = !1,
|
|
804
|
-
size:
|
|
805
|
-
placeholder:
|
|
806
|
-
value:
|
|
804
|
+
size: l = "md",
|
|
805
|
+
placeholder: s = "Buscar...",
|
|
806
|
+
value: d,
|
|
807
807
|
onChange: m,
|
|
808
808
|
...f
|
|
809
809
|
}, g) => {
|
|
810
|
-
const [v, p] = k(""), b =
|
|
810
|
+
const [v, p] = k(""), b = d !== void 0 ? d : v, x = {
|
|
811
811
|
sm: "h-9 text-sm",
|
|
812
812
|
md: "h-11 text-base",
|
|
813
813
|
lg: "h-14 text-lg"
|
|
814
814
|
}, h = (N) => {
|
|
815
815
|
const S = N.target.value;
|
|
816
|
-
|
|
816
|
+
d === void 0 && p(S), m == null || m(N);
|
|
817
817
|
}, c = () => {
|
|
818
|
-
|
|
818
|
+
d === void 0 && p(""), r == null || r();
|
|
819
819
|
}, u = (N) => {
|
|
820
820
|
N.key === "Enter" && t && t(b);
|
|
821
821
|
};
|
|
@@ -829,13 +829,13 @@ const Re = w(
|
|
|
829
829
|
value: b,
|
|
830
830
|
onChange: h,
|
|
831
831
|
onKeyDown: u,
|
|
832
|
-
placeholder:
|
|
832
|
+
placeholder: s,
|
|
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
|
-
x[
|
|
838
|
+
x[l]
|
|
839
839
|
),
|
|
840
840
|
...f
|
|
841
841
|
}
|
|
@@ -863,9 +863,9 @@ const Te = w(
|
|
|
863
863
|
price: t,
|
|
864
864
|
originalPrice: r,
|
|
865
865
|
currency: n = "R$",
|
|
866
|
-
size:
|
|
867
|
-
showDiscount:
|
|
868
|
-
installments:
|
|
866
|
+
size: l = "md",
|
|
867
|
+
showDiscount: s = !0,
|
|
868
|
+
installments: d,
|
|
869
869
|
...m
|
|
870
870
|
}, f) => {
|
|
871
871
|
const g = r && r > t ? Math.round((r - t) / r * 100) : 0, v = {
|
|
@@ -882,7 +882,7 @@ const Te = w(
|
|
|
882
882
|
return /* @__PURE__ */ o("div", { ref: f, 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
|
-
/* @__PURE__ */ o("span", { className: i("font-bold text-[var(--foreground)]", v[
|
|
885
|
+
/* @__PURE__ */ o("span", { className: i("font-bold text-[var(--foreground)]", v[l]), children: [
|
|
886
886
|
n,
|
|
887
887
|
" ",
|
|
888
888
|
t.toFixed(2)
|
|
@@ -892,7 +892,7 @@ const Te = w(
|
|
|
892
892
|
{
|
|
893
893
|
className: i(
|
|
894
894
|
"text-[var(--muted-foreground)] line-through",
|
|
895
|
-
p[
|
|
895
|
+
p[l]
|
|
896
896
|
),
|
|
897
897
|
children: [
|
|
898
898
|
n,
|
|
@@ -902,44 +902,44 @@ const Te = w(
|
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
|
|
905
|
+
s && g > 0 && /* @__PURE__ */ o(_, { variant: "success", size: "sm", children: [
|
|
906
906
|
"-",
|
|
907
907
|
g,
|
|
908
908
|
"%"
|
|
909
909
|
] })
|
|
910
910
|
] }),
|
|
911
|
-
|
|
911
|
+
d && /* @__PURE__ */ o("p", { className: "text-sm text-[var(--muted-foreground)]", children: [
|
|
912
912
|
"ou ",
|
|
913
|
-
|
|
913
|
+
d.count,
|
|
914
914
|
"x de ",
|
|
915
915
|
n,
|
|
916
916
|
" ",
|
|
917
|
-
|
|
917
|
+
d.value.toFixed(2),
|
|
918
918
|
" sem juros"
|
|
919
919
|
] })
|
|
920
920
|
] });
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
923
|
Te.displayName = "PriceDisplay";
|
|
924
|
-
const
|
|
924
|
+
const $e = w(
|
|
925
925
|
({
|
|
926
926
|
className: a,
|
|
927
927
|
value: t,
|
|
928
928
|
min: r = 1,
|
|
929
929
|
max: n = 99,
|
|
930
|
-
onChange:
|
|
931
|
-
size:
|
|
932
|
-
disabled:
|
|
930
|
+
onChange: l,
|
|
931
|
+
size: s = "md",
|
|
932
|
+
disabled: d = !1,
|
|
933
933
|
showLabel: m = !1,
|
|
934
934
|
...f
|
|
935
935
|
}, g) => {
|
|
936
936
|
const v = () => {
|
|
937
|
-
t < n &&
|
|
937
|
+
t < n && l(t + 1);
|
|
938
938
|
}, p = () => {
|
|
939
|
-
t > r &&
|
|
939
|
+
t > r && l(t - 1);
|
|
940
940
|
}, b = (c) => {
|
|
941
941
|
const u = parseInt(c.target.value);
|
|
942
|
-
!isNaN(u) && u >= r && u <= n &&
|
|
942
|
+
!isNaN(u) && u >= r && u <= n && l(u);
|
|
943
943
|
}, x = {
|
|
944
944
|
sm: "h-8 w-8",
|
|
945
945
|
md: "h-10 w-10",
|
|
@@ -959,8 +959,8 @@ const Be = w(
|
|
|
959
959
|
variant: "secondary",
|
|
960
960
|
size: "sm",
|
|
961
961
|
onClick: p,
|
|
962
|
-
disabled:
|
|
963
|
-
className: i(x[
|
|
962
|
+
disabled: d || t <= r,
|
|
963
|
+
className: i(x[s], "p-0"),
|
|
964
964
|
"aria-label": "Decrease quantity",
|
|
965
965
|
children: /* @__PURE__ */ e(ne, { className: "h-4 w-4" })
|
|
966
966
|
}
|
|
@@ -973,13 +973,13 @@ const Be = w(
|
|
|
973
973
|
onChange: b,
|
|
974
974
|
min: r,
|
|
975
975
|
max: n,
|
|
976
|
-
disabled:
|
|
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[s]
|
|
983
983
|
),
|
|
984
984
|
"aria-label": "Quantity"
|
|
985
985
|
}
|
|
@@ -991,8 +991,8 @@ const Be = w(
|
|
|
991
991
|
variant: "secondary",
|
|
992
992
|
size: "sm",
|
|
993
993
|
onClick: v,
|
|
994
|
-
disabled:
|
|
995
|
-
className: i(x[
|
|
994
|
+
disabled: d || t >= n,
|
|
995
|
+
className: i(x[s], "p-0"),
|
|
996
996
|
"aria-label": "Increase quantity",
|
|
997
997
|
children: /* @__PURE__ */ e(se, { className: "h-4 w-4" })
|
|
998
998
|
}
|
|
@@ -1001,9 +1001,9 @@ const Be = w(
|
|
|
1001
1001
|
] });
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
|
|
1005
|
-
const
|
|
1006
|
-
({ className: a, label: t, htmlFor: r, required: n, error:
|
|
1004
|
+
$e.displayName = "QuantitySelector";
|
|
1005
|
+
const Ie = w(
|
|
1006
|
+
({ className: a, label: t, htmlFor: r, required: n, error: l, helperText: s, children: d, ...m }, f) => /* @__PURE__ */ o("div", { ref: f, className: i("flex flex-col gap-1.5", a), ...m, children: [
|
|
1007
1007
|
t && /* @__PURE__ */ o(
|
|
1008
1008
|
"label",
|
|
1009
1009
|
{
|
|
@@ -1015,21 +1015,21 @@ const $e = w(
|
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
|
-
|
|
1019
|
-
(
|
|
1018
|
+
d,
|
|
1019
|
+
(l || s) && /* @__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:
|
|
1026
|
+
children: l || s
|
|
1027
1027
|
}
|
|
1028
1028
|
)
|
|
1029
1029
|
] })
|
|
1030
1030
|
);
|
|
1031
|
-
|
|
1032
|
-
function
|
|
1031
|
+
Ie.displayName = "FormGroup";
|
|
1032
|
+
function Bt({ ...a }) {
|
|
1033
1033
|
return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
1034
1034
|
}
|
|
1035
1035
|
function Et({ className: a, ...t }) {
|
|
@@ -1069,7 +1069,7 @@ function Tt({
|
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function $t({ className: a, ...t }) {
|
|
1073
1073
|
return /* @__PURE__ */ e(
|
|
1074
1074
|
"span",
|
|
1075
1075
|
{
|
|
@@ -1082,7 +1082,7 @@ function Bt({ className: a, ...t }) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function It({
|
|
1086
1086
|
children: a,
|
|
1087
1087
|
className: t,
|
|
1088
1088
|
...r
|
|
@@ -1133,7 +1133,7 @@ function qt({
|
|
|
1133
1133
|
...r,
|
|
1134
1134
|
children: [
|
|
1135
1135
|
t,
|
|
1136
|
-
/* @__PURE__ */ e(
|
|
1136
|
+
/* @__PURE__ */ e(B, { 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
|
) });
|
|
@@ -1158,7 +1158,7 @@ function Ve({
|
|
|
1158
1158
|
...t
|
|
1159
1159
|
}) {
|
|
1160
1160
|
return /* @__PURE__ */ e(
|
|
1161
|
-
|
|
1161
|
+
D.Provider,
|
|
1162
1162
|
{
|
|
1163
1163
|
"data-slot": "tooltip-provider",
|
|
1164
1164
|
delayDuration: a,
|
|
@@ -1166,15 +1166,15 @@ function Ve({
|
|
|
1166
1166
|
}
|
|
1167
1167
|
);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Ut({
|
|
1170
1170
|
...a
|
|
1171
1171
|
}) {
|
|
1172
|
-
return /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(
|
|
1172
|
+
return /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(D.Root, { "data-slot": "tooltip", ...a }) });
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Ht({
|
|
1175
1175
|
...a
|
|
1176
1176
|
}) {
|
|
1177
|
-
return /* @__PURE__ */ e(
|
|
1177
|
+
return /* @__PURE__ */ e(D.Trigger, { "data-slot": "tooltip-trigger", ...a });
|
|
1178
1178
|
}
|
|
1179
1179
|
function Qt({
|
|
1180
1180
|
className: a,
|
|
@@ -1182,8 +1182,8 @@ function Qt({
|
|
|
1182
1182
|
children: r,
|
|
1183
1183
|
...n
|
|
1184
1184
|
}) {
|
|
1185
|
-
return /* @__PURE__ */ e(
|
|
1186
|
-
|
|
1185
|
+
return /* @__PURE__ */ e(D.Portal, { children: /* @__PURE__ */ o(
|
|
1186
|
+
D.Content,
|
|
1187
1187
|
{
|
|
1188
1188
|
"data-slot": "tooltip-content",
|
|
1189
1189
|
sideOffset: t,
|
|
@@ -1194,7 +1194,7 @@ function Qt({
|
|
|
1194
1194
|
...n,
|
|
1195
1195
|
children: [
|
|
1196
1196
|
r,
|
|
1197
|
-
/* @__PURE__ */ e(
|
|
1197
|
+
/* @__PURE__ */ e(D.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
|
) });
|
|
@@ -1205,9 +1205,9 @@ const Fe = w(
|
|
|
1205
1205
|
variant: t = "default",
|
|
1206
1206
|
title: r,
|
|
1207
1207
|
subtitle: n,
|
|
1208
|
-
description:
|
|
1209
|
-
primaryCTA:
|
|
1210
|
-
secondaryCTA:
|
|
1208
|
+
description: l,
|
|
1209
|
+
primaryCTA: s,
|
|
1210
|
+
secondaryCTA: d,
|
|
1211
1211
|
backgroundImage: m,
|
|
1212
1212
|
overlay: f = !0,
|
|
1213
1213
|
children: g,
|
|
@@ -1227,7 +1227,7 @@ const Fe = w(
|
|
|
1227
1227
|
),
|
|
1228
1228
|
...v,
|
|
1229
1229
|
children: [
|
|
1230
|
-
m && /* @__PURE__ */ o(
|
|
1230
|
+
m && /* @__PURE__ */ o(L, { children: [
|
|
1231
1231
|
/* @__PURE__ */ e(
|
|
1232
1232
|
"div",
|
|
1233
1233
|
{
|
|
@@ -1266,33 +1266,33 @@ const Fe = w(
|
|
|
1266
1266
|
children: r
|
|
1267
1267
|
}
|
|
1268
1268
|
),
|
|
1269
|
-
|
|
1269
|
+
l && /* @__PURE__ */ e(
|
|
1270
1270
|
"p",
|
|
1271
1271
|
{
|
|
1272
1272
|
className: i(
|
|
1273
1273
|
"mt-6 text-lg lg:text-xl",
|
|
1274
1274
|
m ? "text-gray-200" : "text-[var(--muted-foreground)]"
|
|
1275
1275
|
),
|
|
1276
|
-
children:
|
|
1276
|
+
children: l
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1279
|
+
(s || d) && /* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4", children: [
|
|
1280
|
+
s && /* @__PURE__ */ e(
|
|
1281
1281
|
C,
|
|
1282
1282
|
{
|
|
1283
1283
|
size: "lg",
|
|
1284
|
-
onClick:
|
|
1284
|
+
onClick: s.onClick,
|
|
1285
1285
|
variant: "primary",
|
|
1286
|
-
children:
|
|
1286
|
+
children: s.label
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
|
-
|
|
1289
|
+
d && /* @__PURE__ */ e(
|
|
1290
1290
|
C,
|
|
1291
1291
|
{
|
|
1292
1292
|
size: "lg",
|
|
1293
|
-
onClick:
|
|
1293
|
+
onClick: d.onClick,
|
|
1294
1294
|
variant: "secondary",
|
|
1295
|
-
children:
|
|
1295
|
+
children: d.label
|
|
1296
1296
|
}
|
|
1297
1297
|
)
|
|
1298
1298
|
] })
|
|
@@ -1313,9 +1313,9 @@ const X = w(
|
|
|
1313
1313
|
variant: t = "default",
|
|
1314
1314
|
icon: r,
|
|
1315
1315
|
title: n,
|
|
1316
|
-
description:
|
|
1317
|
-
action:
|
|
1318
|
-
...
|
|
1316
|
+
description: l,
|
|
1317
|
+
action: s,
|
|
1318
|
+
...d
|
|
1319
1319
|
}, m) => {
|
|
1320
1320
|
const g = r || {
|
|
1321
1321
|
default: /* @__PURE__ */ e(de, { className: "h-16 w-16" }),
|
|
@@ -1331,19 +1331,19 @@ const X = w(
|
|
|
1331
1331
|
"flex flex-col items-center justify-center py-16 px-6 text-center",
|
|
1332
1332
|
a
|
|
1333
1333
|
),
|
|
1334
|
-
...
|
|
1334
|
+
...d,
|
|
1335
1335
|
children: [
|
|
1336
1336
|
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--muted)] p-6 text-[var(--muted-foreground)]", children: g }),
|
|
1337
1337
|
/* @__PURE__ */ e("h3", { className: "mt-6 text-xl font-semibold text-[var(--foreground)]", children: n }),
|
|
1338
|
-
|
|
1339
|
-
|
|
1338
|
+
l && /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: l }),
|
|
1339
|
+
s && /* @__PURE__ */ e(
|
|
1340
1340
|
C,
|
|
1341
1341
|
{
|
|
1342
|
-
onClick:
|
|
1342
|
+
onClick: s.onClick,
|
|
1343
1343
|
variant: "primary",
|
|
1344
1344
|
size: "lg",
|
|
1345
1345
|
className: "mt-6",
|
|
1346
|
-
children:
|
|
1346
|
+
children: s.label
|
|
1347
1347
|
}
|
|
1348
1348
|
)
|
|
1349
1349
|
]
|
|
@@ -1358,9 +1358,9 @@ const qe = w(
|
|
|
1358
1358
|
type: t = "generic",
|
|
1359
1359
|
title: r,
|
|
1360
1360
|
message: n,
|
|
1361
|
-
onRetry:
|
|
1362
|
-
onGoHome:
|
|
1363
|
-
showRetry:
|
|
1361
|
+
onRetry: l,
|
|
1362
|
+
onGoHome: s,
|
|
1363
|
+
showRetry: d = !0,
|
|
1364
1364
|
showHome: m = !0,
|
|
1365
1365
|
...f
|
|
1366
1366
|
}, g) => {
|
|
@@ -1405,20 +1405,20 @@ const qe = w(
|
|
|
1405
1405
|
/* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
|
|
1406
1406
|
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: x }),
|
|
1407
1407
|
/* @__PURE__ */ o("div", { className: "mt-8 flex flex-wrap gap-4 justify-center", children: [
|
|
1408
|
-
|
|
1408
|
+
d && l && /* @__PURE__ */ e(
|
|
1409
1409
|
C,
|
|
1410
1410
|
{
|
|
1411
|
-
onClick:
|
|
1411
|
+
onClick: l,
|
|
1412
1412
|
variant: "primary",
|
|
1413
1413
|
size: "lg",
|
|
1414
1414
|
leftIcon: /* @__PURE__ */ e(ue, { className: "h-5 w-5" }),
|
|
1415
1415
|
children: "Tentar novamente"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
1418
|
-
m &&
|
|
1418
|
+
m && s && /* @__PURE__ */ e(
|
|
1419
1419
|
C,
|
|
1420
1420
|
{
|
|
1421
|
-
onClick:
|
|
1421
|
+
onClick: s,
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
size: "lg",
|
|
1424
1424
|
leftIcon: /* @__PURE__ */ e(me, { className: "h-5 w-5" }),
|
|
@@ -1438,9 +1438,9 @@ const Ge = w(
|
|
|
1438
1438
|
products: t,
|
|
1439
1439
|
columns: r = 4,
|
|
1440
1440
|
gap: n = "md",
|
|
1441
|
-
isLoading:
|
|
1442
|
-
skeletonCount:
|
|
1443
|
-
emptyStateMessage:
|
|
1441
|
+
isLoading: l = !1,
|
|
1442
|
+
skeletonCount: s = 8,
|
|
1443
|
+
emptyStateMessage: d = "Nenhum produto encontrado",
|
|
1444
1444
|
onEmptyAction: m,
|
|
1445
1445
|
...f
|
|
1446
1446
|
}, g) => {
|
|
@@ -1449,7 +1449,7 @@ const Ge = w(
|
|
|
1449
1449
|
md: "gap-6",
|
|
1450
1450
|
lg: "gap-8"
|
|
1451
1451
|
};
|
|
1452
|
-
return
|
|
1452
|
+
return l ? /* @__PURE__ */ e(
|
|
1453
1453
|
"div",
|
|
1454
1454
|
{
|
|
1455
1455
|
ref: g,
|
|
@@ -1459,8 +1459,8 @@ const Ge = w(
|
|
|
1459
1459
|
a
|
|
1460
1460
|
),
|
|
1461
1461
|
...f,
|
|
1462
|
-
children: Array.from({ length:
|
|
1463
|
-
|
|
1462
|
+
children: Array.from({ length: s }).map((p, b) => /* @__PURE__ */ e(
|
|
1463
|
+
$,
|
|
1464
1464
|
{
|
|
1465
1465
|
image: "",
|
|
1466
1466
|
title: "",
|
|
@@ -1474,7 +1474,7 @@ const Ge = w(
|
|
|
1474
1474
|
X,
|
|
1475
1475
|
{
|
|
1476
1476
|
variant: "search",
|
|
1477
|
-
title:
|
|
1477
|
+
title: d,
|
|
1478
1478
|
description: "Tente ajustar seus filtros ou realizar uma nova busca",
|
|
1479
1479
|
action: m ? {
|
|
1480
1480
|
label: "Limpar filtros",
|
|
@@ -1491,7 +1491,7 @@ const Ge = w(
|
|
|
1491
1491
|
a
|
|
1492
1492
|
),
|
|
1493
1493
|
...f,
|
|
1494
|
-
children: t.map((p, b) => /* @__PURE__ */ e(
|
|
1494
|
+
children: t.map((p, b) => /* @__PURE__ */ e($, { ...p }, b))
|
|
1495
1495
|
}
|
|
1496
1496
|
);
|
|
1497
1497
|
}
|
|
@@ -1507,12 +1507,12 @@ function Ot({
|
|
|
1507
1507
|
}) {
|
|
1508
1508
|
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function Ue({
|
|
1511
1511
|
...a
|
|
1512
1512
|
}) {
|
|
1513
1513
|
return /* @__PURE__ */ e(y.Portal, { "data-slot": "dialog-portal", ...a });
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function He({
|
|
1516
1516
|
className: a,
|
|
1517
1517
|
...t
|
|
1518
1518
|
}) {
|
|
@@ -1533,8 +1533,8 @@ function Kt({
|
|
|
1533
1533
|
children: t,
|
|
1534
1534
|
...r
|
|
1535
1535
|
}) {
|
|
1536
|
-
return /* @__PURE__ */ o(
|
|
1537
|
-
/* @__PURE__ */ e(
|
|
1536
|
+
return /* @__PURE__ */ o(Ue, { "data-slot": "dialog-portal", children: [
|
|
1537
|
+
/* @__PURE__ */ e(He, {}),
|
|
1538
1538
|
/* @__PURE__ */ o(
|
|
1539
1539
|
y.Content,
|
|
1540
1540
|
{
|
|
@@ -1728,8 +1728,8 @@ function et({ children: a, as: t = "div", className: r }) {
|
|
|
1728
1728
|
);
|
|
1729
1729
|
}
|
|
1730
1730
|
const tt = w(
|
|
1731
|
-
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...
|
|
1732
|
-
const [
|
|
1731
|
+
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...l }, s) => {
|
|
1732
|
+
const [d, m] = k("light"), [f, g] = k(16), [v, p] = k(!1);
|
|
1733
1733
|
M(() => {
|
|
1734
1734
|
const u = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
|
|
1735
1735
|
m(u);
|
|
@@ -1744,7 +1744,7 @@ const tt = w(
|
|
|
1744
1744
|
}
|
|
1745
1745
|
}, [v]);
|
|
1746
1746
|
const b = () => {
|
|
1747
|
-
const c =
|
|
1747
|
+
const c = d === "light" ? "dark" : "light";
|
|
1748
1748
|
m(c), document.documentElement.setAttribute("data-theme", c), localStorage.setItem("a11y-theme", c), t == null || t(c);
|
|
1749
1749
|
}, x = () => {
|
|
1750
1750
|
const c = Math.min(f + 2, 24);
|
|
@@ -1756,14 +1756,14 @@ const tt = w(
|
|
|
1756
1756
|
return /* @__PURE__ */ e(
|
|
1757
1757
|
"div",
|
|
1758
1758
|
{
|
|
1759
|
-
ref:
|
|
1759
|
+
ref: s,
|
|
1760
1760
|
className: i(
|
|
1761
1761
|
"w-full border-b border-[var(--border)] bg-[var(--card)] sticky top-0 z-50",
|
|
1762
1762
|
a
|
|
1763
1763
|
),
|
|
1764
1764
|
role: "toolbar",
|
|
1765
1765
|
"aria-label": "Ferramentas de acessibilidade",
|
|
1766
|
-
...
|
|
1766
|
+
...l,
|
|
1767
1767
|
children: /* @__PURE__ */ o(et, { 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
1769
|
/* @__PURE__ */ e(fe, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
|
|
@@ -1816,12 +1816,12 @@ const tt = w(
|
|
|
1816
1816
|
{
|
|
1817
1817
|
type: "button",
|
|
1818
1818
|
onClick: b,
|
|
1819
|
-
"aria-label":
|
|
1819
|
+
"aria-label": d === "light" ? "Ativar modo escuro" : "Ativar modo claro",
|
|
1820
1820
|
className: i(
|
|
1821
1821
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1822
1822
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
|
|
1823
1823
|
),
|
|
1824
|
-
children:
|
|
1824
|
+
children: d === "light" ? /* @__PURE__ */ e(ve, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
|
|
1825
1825
|
}
|
|
1826
1826
|
),
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
@@ -1856,9 +1856,9 @@ const at = w(
|
|
|
1856
1856
|
slides: t,
|
|
1857
1857
|
autoplayDelay: r = 5e3,
|
|
1858
1858
|
autoplay: n = !0,
|
|
1859
|
-
...
|
|
1860
|
-
},
|
|
1861
|
-
const [
|
|
1859
|
+
...l
|
|
1860
|
+
}, s) => {
|
|
1861
|
+
const [d, m] = k(0), [f, g] = k(!1), [v, p] = k(!1);
|
|
1862
1862
|
M(() => {
|
|
1863
1863
|
const c = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
1864
1864
|
p(c.matches);
|
|
@@ -1876,27 +1876,27 @@ const at = w(
|
|
|
1876
1876
|
const b = (c) => {
|
|
1877
1877
|
m(c), g(!0), setTimeout(() => g(!1), r);
|
|
1878
1878
|
}, x = () => {
|
|
1879
|
-
b((
|
|
1879
|
+
b((d - 1 + t.length) % t.length);
|
|
1880
1880
|
}, h = () => {
|
|
1881
|
-
b((
|
|
1881
|
+
b((d + 1) % t.length);
|
|
1882
1882
|
};
|
|
1883
|
-
return t.length === 0 ? null : (t[
|
|
1883
|
+
return t.length === 0 ? null : (t[d], /* @__PURE__ */ o(
|
|
1884
1884
|
"div",
|
|
1885
1885
|
{
|
|
1886
|
-
ref:
|
|
1886
|
+
ref: s,
|
|
1887
1887
|
className: i("relative w-full overflow-hidden", a),
|
|
1888
1888
|
onMouseEnter: () => g(!0),
|
|
1889
1889
|
onMouseLeave: () => g(!1),
|
|
1890
|
-
...
|
|
1890
|
+
...l,
|
|
1891
1891
|
children: [
|
|
1892
1892
|
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c, u) => /* @__PURE__ */ o(
|
|
1893
1893
|
"div",
|
|
1894
1894
|
{
|
|
1895
1895
|
className: i(
|
|
1896
1896
|
"w-full transition-opacity duration-700",
|
|
1897
|
-
u ===
|
|
1897
|
+
u === d ? "block" : "hidden"
|
|
1898
1898
|
),
|
|
1899
|
-
"aria-hidden": u !==
|
|
1899
|
+
"aria-hidden": u !== d,
|
|
1900
1900
|
children: [
|
|
1901
1901
|
/* @__PURE__ */ o("picture", { children: [
|
|
1902
1902
|
/* @__PURE__ */ e(
|
|
@@ -1940,7 +1940,7 @@ const at = w(
|
|
|
1940
1940
|
},
|
|
1941
1941
|
c.id
|
|
1942
1942
|
)) }),
|
|
1943
|
-
t.length > 1 && /* @__PURE__ */ o(
|
|
1943
|
+
t.length > 1 && /* @__PURE__ */ o(L, { children: [
|
|
1944
1944
|
/* @__PURE__ */ e(
|
|
1945
1945
|
"button",
|
|
1946
1946
|
{
|
|
@@ -1966,13 +1966,13 @@ const at = w(
|
|
|
1966
1966
|
onClick: () => b(u),
|
|
1967
1967
|
className: "min-w-11 min-h-6 flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-full group",
|
|
1968
1968
|
"aria-label": `Ir para slide ${u + 1}`,
|
|
1969
|
-
"aria-current": u ===
|
|
1969
|
+
"aria-current": u === d,
|
|
1970
1970
|
children: /* @__PURE__ */ e(
|
|
1971
1971
|
"span",
|
|
1972
1972
|
{
|
|
1973
1973
|
className: i(
|
|
1974
1974
|
"block rounded-full transition-all",
|
|
1975
|
-
u ===
|
|
1975
|
+
u === 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
|
)
|
|
@@ -1992,7 +1992,7 @@ function rt({
|
|
|
1992
1992
|
...n
|
|
1993
1993
|
}) {
|
|
1994
1994
|
return /* @__PURE__ */ o(
|
|
1995
|
-
|
|
1995
|
+
j.Root,
|
|
1996
1996
|
{
|
|
1997
1997
|
"data-slot": "navigation-menu",
|
|
1998
1998
|
"data-viewport": r,
|
|
@@ -2013,7 +2013,7 @@ function it({
|
|
|
2013
2013
|
...t
|
|
2014
2014
|
}) {
|
|
2015
2015
|
return /* @__PURE__ */ e(
|
|
2016
|
-
|
|
2016
|
+
j.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 U({
|
|
2028
2028
|
className: a,
|
|
2029
2029
|
...t
|
|
2030
2030
|
}) {
|
|
2031
2031
|
return /* @__PURE__ */ e(
|
|
2032
|
-
|
|
2032
|
+
j.Item,
|
|
2033
2033
|
{
|
|
2034
2034
|
"data-slot": "navigation-menu-item",
|
|
2035
2035
|
className: i("relative", a),
|
|
@@ -2037,7 +2037,7 @@ function H({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
|
-
const ot =
|
|
2040
|
+
const ot = P(
|
|
2041
2041
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
2042
2042
|
);
|
|
2043
2043
|
function nt({
|
|
@@ -2046,7 +2046,7 @@ function nt({
|
|
|
2046
2046
|
...r
|
|
2047
2047
|
}) {
|
|
2048
2048
|
return /* @__PURE__ */ o(
|
|
2049
|
-
|
|
2049
|
+
j.Trigger,
|
|
2050
2050
|
{
|
|
2051
2051
|
"data-slot": "navigation-menu-trigger",
|
|
2052
2052
|
className: i(ot(), "group", a),
|
|
@@ -2055,7 +2055,7 @@ function nt({
|
|
|
2055
2055
|
t,
|
|
2056
2056
|
" ",
|
|
2057
2057
|
/* @__PURE__ */ e(
|
|
2058
|
-
|
|
2058
|
+
B,
|
|
2059
2059
|
{
|
|
2060
2060
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
2061
2061
|
"aria-hidden": "true"
|
|
@@ -2070,7 +2070,7 @@ function st({
|
|
|
2070
2070
|
...t
|
|
2071
2071
|
}) {
|
|
2072
2072
|
return /* @__PURE__ */ e(
|
|
2073
|
-
|
|
2073
|
+
j.Content,
|
|
2074
2074
|
{
|
|
2075
2075
|
"data-slot": "navigation-menu-content",
|
|
2076
2076
|
className: i(
|
|
@@ -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
|
+
j.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 I({
|
|
2110
2110
|
className: a,
|
|
2111
2111
|
...t
|
|
2112
2112
|
}) {
|
|
2113
2113
|
return /* @__PURE__ */ e(
|
|
2114
|
-
|
|
2114
|
+
j.Link,
|
|
2115
2115
|
{
|
|
2116
2116
|
"data-slot": "navigation-menu-link",
|
|
2117
2117
|
className: i(
|
|
@@ -2136,7 +2136,7 @@ function dt({ items: a }) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
),
|
|
2138
2138
|
/* @__PURE__ */ e("ul", { className: "ml-1", role: "none", children: t.children.map((n) => /* @__PURE__ */ e("li", { role: "none", children: /* @__PURE__ */ e(
|
|
2139
|
-
|
|
2139
|
+
I,
|
|
2140
2140
|
{
|
|
2141
2141
|
href: n.href ?? "#",
|
|
2142
2142
|
className: "block rounded px-3 py-1.5 text-sm text-[var(--foreground)] hover:bg-[var(--accent)] transition-colors",
|
|
@@ -2144,7 +2144,7 @@ function dt({ items: a }) {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
) }, n.id)) })
|
|
2146
2146
|
] }, t.id) : /* @__PURE__ */ e("li", { role: "none", children: /* @__PURE__ */ e(
|
|
2147
|
-
|
|
2147
|
+
I,
|
|
2148
2148
|
{
|
|
2149
2149
|
href: t.href ?? "#",
|
|
2150
2150
|
className: "block rounded px-3 py-1.5 text-sm text-[var(--foreground)] hover:bg-[var(--accent)] transition-colors",
|
|
@@ -2155,9 +2155,9 @@ function dt({ items: a }) {
|
|
|
2155
2155
|
) });
|
|
2156
2156
|
}
|
|
2157
2157
|
function Y({ item: a, depth: t = 0 }) {
|
|
2158
|
-
var
|
|
2158
|
+
var s;
|
|
2159
2159
|
const [r, n] = k(!1);
|
|
2160
|
-
return !((
|
|
2160
|
+
return !((s = a.children) != null && s.length) ? /* @__PURE__ */ e(Oe, { 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: () => n((
|
|
2177
|
+
onClick: () => n((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"
|
|
@@ -2199,21 +2199,21 @@ 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((
|
|
2202
|
+
children: a.children.map((d) => /* @__PURE__ */ e(Y, { item: d, depth: t + 1 }, d.id))
|
|
2203
2203
|
}
|
|
2204
2204
|
)
|
|
2205
2205
|
] });
|
|
2206
2206
|
}
|
|
2207
2207
|
const ct = w(
|
|
2208
|
-
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter:
|
|
2208
|
+
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: l, className: s, ...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
|
+
s
|
|
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 }),
|
|
@@ -2244,7 +2244,7 @@ const ct = w(
|
|
|
2244
2244
|
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((f) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Y, { item: f }) }, f.id)) })
|
|
2245
2245
|
}
|
|
2246
2246
|
),
|
|
2247
|
-
|
|
2247
|
+
l && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: l })
|
|
2248
2248
|
] })
|
|
2249
2249
|
] })
|
|
2250
2250
|
] }),
|
|
@@ -2256,11 +2256,11 @@ const ct = w(
|
|
|
2256
2256
|
children: /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(it, { children: a.map(
|
|
2257
2257
|
(f) => {
|
|
2258
2258
|
var g;
|
|
2259
|
-
return (g = f.children) != null && g.length ? /* @__PURE__ */ o(
|
|
2259
|
+
return (g = f.children) != null && g.length ? /* @__PURE__ */ o(U, { children: [
|
|
2260
2260
|
/* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: f.label }),
|
|
2261
2261
|
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items: f.children }) })
|
|
2262
|
-
] }, f.id) : /* @__PURE__ */ e(
|
|
2263
|
-
|
|
2262
|
+
] }, f.id) : /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(
|
|
2263
|
+
I,
|
|
2264
2264
|
{
|
|
2265
2265
|
href: f.href ?? "#",
|
|
2266
2266
|
className: "inline-flex h-9 items-center rounded-md px-4 text-sm font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
@@ -2316,13 +2316,13 @@ const ut = [
|
|
|
2316
2316
|
}
|
|
2317
2317
|
];
|
|
2318
2318
|
function ft({ onSubmit: a }) {
|
|
2319
|
-
const [t, r] = k(""), [n,
|
|
2319
|
+
const [t, r] = k(""), [n, l] = k(!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
2321
|
/* @__PURE__ */ e(ze, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
2322
2322
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
|
|
2323
2323
|
/* @__PURE__ */ e("p", { className: "mt-2 text-sm", style: { color: "rgba(255,255,255,0.85)" }, children: "Cadastre-se e fique por dentro dos lançamentos. Sem spam." }),
|
|
2324
|
-
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (
|
|
2325
|
-
|
|
2324
|
+
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (d) => {
|
|
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" }),
|
|
2328
2328
|
/* @__PURE__ */ e(
|
|
@@ -2332,7 +2332,7 @@ function ft({ onSubmit: a }) {
|
|
|
2332
2332
|
type: "email",
|
|
2333
2333
|
required: !0,
|
|
2334
2334
|
value: t,
|
|
2335
|
-
onChange: (
|
|
2335
|
+
onChange: (d) => r(d.target.value),
|
|
2336
2336
|
placeholder: "Seu melhor e-mail",
|
|
2337
2337
|
className: "min-h-[44px] flex-1 rounded-lg border border-white px-4 text-sm text-[#1a1e2e] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-white"
|
|
2338
2338
|
}
|
|
@@ -2357,7 +2357,7 @@ function gt({ title: a, links: t }) {
|
|
|
2357
2357
|
{
|
|
2358
2358
|
type: "button",
|
|
2359
2359
|
"aria-expanded": r,
|
|
2360
|
-
onClick: () => n((
|
|
2360
|
+
onClick: () => n((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,
|
|
@@ -2380,19 +2380,19 @@ function gt({ title: a, links: t }) {
|
|
|
2380
2380
|
r ? "max-h-96 pb-4" : "max-h-0 md:max-h-none"
|
|
2381
2381
|
),
|
|
2382
2382
|
role: "list",
|
|
2383
|
-
children: t.map((
|
|
2383
|
+
children: t.map((l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
2384
2384
|
"a",
|
|
2385
2385
|
{
|
|
2386
|
-
href:
|
|
2386
|
+
href: l.href,
|
|
2387
2387
|
className: "text-sm text-[var(--muted-foreground)] transition-colors hover:text-[var(--brand-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded",
|
|
2388
|
-
children:
|
|
2388
|
+
children: l.label
|
|
2389
2389
|
}
|
|
2390
|
-
) },
|
|
2390
|
+
) }, l.label))
|
|
2391
2391
|
}
|
|
2392
2392
|
)
|
|
2393
2393
|
] });
|
|
2394
2394
|
}
|
|
2395
|
-
const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: n, appStoreUrl:
|
|
2395
|
+
const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r, playStoreUrl: n, appStoreUrl: l, orgInfo: s, className: d, ...m }) => {
|
|
2396
2396
|
const [f, g] = k("light");
|
|
2397
2397
|
M(() => {
|
|
2398
2398
|
const u = document.documentElement;
|
|
@@ -2404,12 +2404,12 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2404
2404
|
}, []);
|
|
2405
2405
|
const v = a === "perabook" ? f === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : f === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", p = a === "perabook" ? "PeraBook" : "Elo Editora", b = ut.map((u) => ({
|
|
2406
2406
|
...u,
|
|
2407
|
-
href: (
|
|
2408
|
-
})).filter((u) => u.href), x = (
|
|
2407
|
+
href: (s == null ? void 0 : s[u.key]) ?? u.href
|
|
2408
|
+
})).filter((u) => u.href), x = (s == null ? void 0 : s.email) ?? "contato@grupoeloediorial.com.br", h = (s == null ? void 0 : s.phone) ?? "(11) 3000-0000", c = s == null ? void 0 : s.fullAddress;
|
|
2409
2409
|
return /* @__PURE__ */ o(
|
|
2410
2410
|
"footer",
|
|
2411
2411
|
{
|
|
2412
|
-
className: i("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]",
|
|
2412
|
+
className: i("border-t border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]", d),
|
|
2413
2413
|
"aria-label": "Rodapé do site",
|
|
2414
2414
|
...m,
|
|
2415
2415
|
children: [
|
|
@@ -2449,11 +2449,11 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2449
2449
|
children: /* @__PURE__ */ e(
|
|
2450
2450
|
"img",
|
|
2451
2451
|
{
|
|
2452
|
-
src: "/badges/google-play.png",
|
|
2452
|
+
src: (s == null ? void 0 : s.googlePlayBadgeUrl) ?? "/badges/google-play.png",
|
|
2453
2453
|
alt: "Disponível no Google Play",
|
|
2454
2454
|
width: 135,
|
|
2455
2455
|
height: 40,
|
|
2456
|
-
className: "h-10 w-
|
|
2456
|
+
className: "h-10 w-[135px] object-contain"
|
|
2457
2457
|
}
|
|
2458
2458
|
)
|
|
2459
2459
|
}
|
|
@@ -2461,7 +2461,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2461
2461
|
/* @__PURE__ */ e(
|
|
2462
2462
|
"a",
|
|
2463
2463
|
{
|
|
2464
|
-
href:
|
|
2464
|
+
href: l ?? "#",
|
|
2465
2465
|
target: "_blank",
|
|
2466
2466
|
rel: "noopener noreferrer",
|
|
2467
2467
|
"aria-label": "Disponível na App Store",
|
|
@@ -2469,11 +2469,11 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2469
2469
|
children: /* @__PURE__ */ e(
|
|
2470
2470
|
"img",
|
|
2471
2471
|
{
|
|
2472
|
-
src: "/badges/app-store.png",
|
|
2472
|
+
src: (s == null ? void 0 : s.appStoreBadgeUrl) ?? "/badges/app-store.png",
|
|
2473
2473
|
alt: "Disponível na App Store",
|
|
2474
2474
|
width: 135,
|
|
2475
2475
|
height: 40,
|
|
2476
|
-
className: "h-10 w-
|
|
2476
|
+
className: "h-10 w-[135px] object-contain"
|
|
2477
2477
|
}
|
|
2478
2478
|
)
|
|
2479
2479
|
}
|
|
@@ -2542,13 +2542,13 @@ export {
|
|
|
2542
2542
|
Ft as AccordionItem,
|
|
2543
2543
|
qt as AccordionTrigger,
|
|
2544
2544
|
Ae as Avatar,
|
|
2545
|
-
|
|
2546
|
-
|
|
2545
|
+
_ as Badge,
|
|
2546
|
+
Bt as Breadcrumb,
|
|
2547
2547
|
Rt as BreadcrumbItem,
|
|
2548
2548
|
Tt as BreadcrumbLink,
|
|
2549
2549
|
Et as BreadcrumbList,
|
|
2550
|
-
|
|
2551
|
-
|
|
2550
|
+
$t as BreadcrumbPage,
|
|
2551
|
+
It as BreadcrumbSeparator,
|
|
2552
2552
|
C as Button,
|
|
2553
2553
|
At as Checkbox,
|
|
2554
2554
|
ra as Col,
|
|
@@ -2559,12 +2559,12 @@ export {
|
|
|
2559
2559
|
Xt as DialogHeader,
|
|
2560
2560
|
Zt as DialogTitle,
|
|
2561
2561
|
Ot as DialogTrigger,
|
|
2562
|
-
|
|
2562
|
+
_e as Divider,
|
|
2563
2563
|
Qe as Drawer,
|
|
2564
2564
|
X as EmptyState,
|
|
2565
2565
|
qe as ErrorState,
|
|
2566
2566
|
pt as Footer,
|
|
2567
|
-
|
|
2567
|
+
Ie as FormGroup,
|
|
2568
2568
|
aa as Grid,
|
|
2569
2569
|
Fe as Hero,
|
|
2570
2570
|
at as HeroCarousel,
|
|
@@ -2572,18 +2572,18 @@ export {
|
|
|
2572
2572
|
ct as MegaMenu,
|
|
2573
2573
|
Wt as Modal,
|
|
2574
2574
|
Te as PriceDisplay,
|
|
2575
|
-
|
|
2575
|
+
$ as ProductCard,
|
|
2576
2576
|
Ge as ProductGrid,
|
|
2577
2577
|
la as ProgressBar,
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2578
|
+
$e as QuantitySelector,
|
|
2579
|
+
Pt as RadioGroup,
|
|
2580
|
+
Lt as RadioGroupItem,
|
|
2581
2581
|
T as Rating,
|
|
2582
2582
|
Re as SearchBar,
|
|
2583
2583
|
Ct as Select,
|
|
2584
|
-
|
|
2584
|
+
Dt as SelectContent,
|
|
2585
2585
|
Mt as SelectItem,
|
|
2586
|
-
|
|
2586
|
+
jt as SelectTrigger,
|
|
2587
2587
|
St as SelectValue,
|
|
2588
2588
|
Ye as SheetContent,
|
|
2589
2589
|
ta as SheetDescription,
|
|
@@ -2591,19 +2591,19 @@ export {
|
|
|
2591
2591
|
Ze as SheetHeader,
|
|
2592
2592
|
Je as SheetTitle,
|
|
2593
2593
|
We as SheetTrigger,
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2594
|
+
Le as Spinner,
|
|
2595
|
+
je as Textarea,
|
|
2596
|
+
_t as Toggle,
|
|
2597
|
+
Ut as Tooltip,
|
|
2598
2598
|
Qt as TooltipContent,
|
|
2599
2599
|
Ve as TooltipProvider,
|
|
2600
|
-
|
|
2600
|
+
Ht as TooltipTrigger,
|
|
2601
2601
|
tt as TopAccessibilityBar,
|
|
2602
2602
|
Me as avatarVariants,
|
|
2603
|
-
|
|
2603
|
+
De as badgeVariants,
|
|
2604
2604
|
Se as buttonVariants,
|
|
2605
2605
|
i as cn,
|
|
2606
|
-
|
|
2606
|
+
Pe as spinnerVariants,
|
|
2607
2607
|
na as toast
|
|
2608
2608
|
};
|
|
2609
2609
|
//# sourceMappingURL=index.js.map
|