@lanaco/lnc-react-ui 4.0.183 → 4.0.185
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/BlogCardsSponsoredSection.cjs +5 -3
- package/dist/BlogCardsSponsoredSection.js +68 -64
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +8 -6
- package/dist/BlogListSection.js +122 -114
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +5 -3
- package/dist/BlogsSectionDetailed.js +53 -49
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +9 -7
- package/dist/BlogsSectionSimple.js +53 -47
- package/dist/BlogsSectionSimpleCentered.cjs +7 -5
- package/dist/BlogsSectionSimpleCentered.js +31 -26
- package/dist/BlogsSectionWithFilters.cjs +9 -7
- package/dist/BlogsSectionWithFilters.js +47 -42
- package/dist/BrandHitsSection.cjs +9 -7
- package/dist/BrandHitsSection.js +40 -35
- package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
- package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
- package/dist/CheckBoxInput.cjs +27 -27
- package/dist/CheckBoxInput.js +61 -98
- package/dist/ColorInput.cjs +26 -26
- package/dist/ColorInput.js +127 -162
- package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
- package/dist/DetailedProductsInfinitiveSection.js +6 -5
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +12 -10
- package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
- package/dist/FieldOfInterestsMasonrySection.js +90 -85
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
- package/dist/GeneralWithTagsCardsSection.cjs +12 -8
- package/dist/GeneralWithTagsCardsSection.js +50 -44
- package/dist/GiftCardsSection.cjs +7 -5
- package/dist/GiftCardsSection.js +46 -40
- package/dist/MasonryGeneralCardsSection.cjs +6 -5
- package/dist/MasonryGeneralCardsSection.js +26 -23
- package/dist/Modal.cjs +14 -13
- package/dist/Modal.js +88 -86
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +30 -35
- package/dist/ProductsWithBannerSection.cjs +8 -6
- package/dist/ProductsWithBannerSection.js +71 -77
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +31 -28
- package/dist/ReviewsSection.cjs +11 -9
- package/dist/ReviewsSection.js +38 -36
- package/dist/SalesCampaignsSection.cjs +22 -19
- package/dist/SalesCampaignsSection.js +299 -300
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +7 -3
- package/dist/SimpleProductsSection.cjs +5 -5
- package/dist/SimpleProductsSection.js +62 -72
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +9 -7
- package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
- package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
- package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
- package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
- package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
- package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
- package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
- package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
- package/package.json +1 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as ne, useState as
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ne, useState as Z, useRef as J, useEffect as Ve, cloneElement as ee, Suspense as Oe } from "react";
|
|
3
3
|
import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as F } from "./consts-BuFChS64.js";
|
|
5
|
-
import { t as G, o as
|
|
6
|
-
import { P as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { a as
|
|
13
|
-
const
|
|
5
|
+
import { t as G, o as Be, a as ze, l as re, p as oe, G as te, k as We } from "./utils-Dc5zIpaz.js";
|
|
6
|
+
import { P as Ge } from "./index-C_NnINik.js";
|
|
7
|
+
import V from "./Badge.js";
|
|
8
|
+
import Me from "./Popover.js";
|
|
9
|
+
import Fe from "./PopoverTrigger.js";
|
|
10
|
+
import Ie from "./PopoverContent.js";
|
|
11
|
+
import { u as De } from "./useDetectMobile-Bkvj0VMa.js";
|
|
12
|
+
import { a as b, S as p, c as y, b as t } from "./style-CXMUA6cI.js";
|
|
13
|
+
const je = N.a`
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
gap: 0.5rem;
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
width: 100%;
|
|
20
|
-
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
color: var(--gray-950, #14161a);
|
|
21
22
|
& .seller {
|
|
22
23
|
text-transform: uppercase;
|
|
23
24
|
${G()}
|
|
@@ -73,7 +74,7 @@ const Ie = N.div`
|
|
|
73
74
|
& .card-title {
|
|
74
75
|
font-size: 0.875rem;
|
|
75
76
|
font-weight: 600;
|
|
76
|
-
${
|
|
77
|
+
${Be(2)}
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
& .price-text {
|
|
@@ -178,7 +179,7 @@ const Ie = N.div`
|
|
|
178
179
|
&:hover .product-image-wrapper img {
|
|
179
180
|
transform: scale(1.1);
|
|
180
181
|
}
|
|
181
|
-
`,
|
|
182
|
+
`, Ue = N.div`
|
|
182
183
|
position: relative;
|
|
183
184
|
overflow: hidden;
|
|
184
185
|
border-radius: 0.75rem;
|
|
@@ -199,7 +200,7 @@ const Ie = N.div`
|
|
|
199
200
|
|
|
200
201
|
width: 2.25rem;
|
|
201
202
|
height: 2.25rem;
|
|
202
|
-
border-radius: ${(a) =>
|
|
203
|
+
border-radius: ${(a) => ze(a.theme, "curved")};
|
|
203
204
|
border: 1px solid var(--gray-95008);
|
|
204
205
|
background-color: white;
|
|
205
206
|
color: var(--gray-950);
|
|
@@ -246,7 +247,7 @@ const Ie = N.div`
|
|
|
246
247
|
top: unset;
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
|
-
`,
|
|
250
|
+
`, Le = N.div`
|
|
250
251
|
background: var(--white, #fff);
|
|
251
252
|
z-index: 1;
|
|
252
253
|
|
|
@@ -296,7 +297,7 @@ const Ie = N.div`
|
|
|
296
297
|
color: var(--gray-950, #14161a);
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
|
-
`,
|
|
300
|
+
`, Xe = N.div`
|
|
300
301
|
display: flex;
|
|
301
302
|
align-items: center;
|
|
302
303
|
gap: 0.25rem;
|
|
@@ -308,10 +309,10 @@ const Ie = N.div`
|
|
|
308
309
|
font-size: 1rem;
|
|
309
310
|
color: var(--warning-500, #F59E0B);
|
|
310
311
|
}
|
|
311
|
-
`,
|
|
312
|
+
`, xe = ne(({ sponsoredText: a = "Sponsored" }, $) => /* @__PURE__ */ n(Xe, { ref: $, className: "sponsored-line", children: [
|
|
312
313
|
/* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
|
|
313
314
|
/* @__PURE__ */ e("span", { children: a })
|
|
314
|
-
] })),
|
|
315
|
+
] })), qe = "Vehicles_Cars", Ye = "Vehicles_Motorcycles", Ae = "Vehicles_Trucks", Ke = "Vehicles_AgriculturalMachines_Tractors", He = "Vehicles_ConstructionMachines", Qe = "Vehicles_Bus", Ze = "Vehicles_Campers", Je = "RealEstates_", s = {
|
|
315
316
|
Mileage: {
|
|
316
317
|
icon: "mng-lnc-road",
|
|
317
318
|
measure: "km"
|
|
@@ -412,30 +413,28 @@ const Ie = N.div`
|
|
|
412
413
|
icon: " mng-lnc-clock--filled",
|
|
413
414
|
measure: ""
|
|
414
415
|
}
|
|
415
|
-
},
|
|
416
|
+
}, gr = ne((a, $) => {
|
|
416
417
|
const {
|
|
417
|
-
uuid:
|
|
418
|
+
uuid: u,
|
|
418
419
|
sellerUuid: O,
|
|
419
|
-
name:
|
|
420
|
+
name: ie,
|
|
420
421
|
price: S = 0,
|
|
421
422
|
sellingPrice: k,
|
|
422
423
|
currency: _,
|
|
423
424
|
isNegotiable: P,
|
|
424
|
-
isFree:
|
|
425
|
-
imageUrl:
|
|
426
|
-
location:
|
|
427
|
-
sponsored:
|
|
425
|
+
isFree: E,
|
|
426
|
+
imageUrl: ae,
|
|
427
|
+
location: se,
|
|
428
|
+
sponsored: le,
|
|
428
429
|
imageComponent: I,
|
|
429
|
-
onSelectCard: le = () => {
|
|
430
|
-
},
|
|
431
430
|
freeText: ce = "Free",
|
|
432
431
|
negotiableText: de = "Negotiable",
|
|
433
432
|
tags: i = [],
|
|
434
|
-
categoryCode:
|
|
433
|
+
categoryCode: T,
|
|
435
434
|
categoryName: me,
|
|
436
|
-
condition:
|
|
435
|
+
condition: D,
|
|
437
436
|
quantity: B,
|
|
438
|
-
trade:
|
|
437
|
+
trade: j,
|
|
439
438
|
sponsoredText: he,
|
|
440
439
|
forCart: pe,
|
|
441
440
|
forOrder: ue,
|
|
@@ -449,16 +448,19 @@ const Ie = N.div`
|
|
|
449
448
|
bookmarked: U,
|
|
450
449
|
bookmarkLists: we,
|
|
451
450
|
metadata: v,
|
|
452
|
-
sellerName: L
|
|
453
|
-
|
|
451
|
+
sellerName: L,
|
|
452
|
+
nameSlug: X,
|
|
453
|
+
onSelectCard: ye = () => {
|
|
454
|
+
}
|
|
455
|
+
} = a, W = De(), ke = () => {
|
|
454
456
|
var d;
|
|
455
|
-
if (!
|
|
456
|
-
const r = C, o = (d = C == null ? void 0 : C.props) == null ? void 0 : d.children, c =
|
|
457
|
+
if (!re(C)) return /* @__PURE__ */ e(M, {});
|
|
458
|
+
const r = C, o = (d = C == null ? void 0 : C.props) == null ? void 0 : d.children, c = ee(o, {
|
|
457
459
|
key: `bookmark_pr__${U}`,
|
|
458
460
|
bookmarked: U,
|
|
459
|
-
productUuid:
|
|
460
|
-
onAddToBookmark: () => z(!0,
|
|
461
|
-
onRemoveFromBookmark: () => z(!1,
|
|
461
|
+
productUuid: u,
|
|
462
|
+
onAddToBookmark: () => z(!0, u),
|
|
463
|
+
onRemoveFromBookmark: () => z(!1, u),
|
|
462
464
|
bookmarkedUuidList: we,
|
|
463
465
|
sellerUuid: O,
|
|
464
466
|
handleBookmarking: z,
|
|
@@ -470,69 +472,69 @@ const Ie = N.div`
|
|
|
470
472
|
quantity: B,
|
|
471
473
|
hasQuantities: be,
|
|
472
474
|
productBasicInfo: {
|
|
473
|
-
uuid:
|
|
475
|
+
uuid: u,
|
|
474
476
|
price: S,
|
|
475
477
|
sellingPrice: k,
|
|
476
|
-
categoryCode:
|
|
478
|
+
categoryCode: T,
|
|
477
479
|
categoryName: me,
|
|
478
480
|
currency: _,
|
|
479
481
|
isNegotiable: P,
|
|
480
|
-
isFree:
|
|
482
|
+
isFree: E
|
|
481
483
|
}
|
|
482
484
|
});
|
|
483
|
-
return
|
|
484
|
-
},
|
|
485
|
-
Xe,
|
|
485
|
+
return ee(r, void 0, c);
|
|
486
|
+
}, x = [
|
|
486
487
|
qe,
|
|
487
|
-
xe,
|
|
488
488
|
Ye,
|
|
489
489
|
Ae,
|
|
490
490
|
Ke,
|
|
491
491
|
He,
|
|
492
|
-
Qe
|
|
492
|
+
Qe,
|
|
493
|
+
Ze,
|
|
494
|
+
Je
|
|
493
495
|
].some(
|
|
494
|
-
(r) =>
|
|
495
|
-
), [
|
|
496
|
+
(r) => T == null ? void 0 : T.includes(r)
|
|
497
|
+
), [_e, q] = Z(!1), Ce = () => {
|
|
496
498
|
q(!0);
|
|
497
|
-
},
|
|
499
|
+
}, Re = () => {
|
|
498
500
|
q(!1);
|
|
499
|
-
}, l =
|
|
501
|
+
}, l = J(null), g = J([]), [Ne, Y] = Z(i == null ? void 0 : i.length), $e = () => {
|
|
500
502
|
var d, w, R;
|
|
501
|
-
if (!(l != null && l.current) || ((d =
|
|
503
|
+
if (!(l != null && l.current) || ((d = g == null ? void 0 : g.current) == null ? void 0 : d.length) === 0) return;
|
|
502
504
|
if (W) {
|
|
503
|
-
|
|
505
|
+
Y(i == null ? void 0 : i.length);
|
|
504
506
|
return;
|
|
505
507
|
}
|
|
506
508
|
const r = (w = l == null ? void 0 : l.current) == null ? void 0 : w.offsetWidth;
|
|
507
509
|
let o = 0, c = 0;
|
|
508
510
|
for (let m = 0; m < (i == null ? void 0 : i.length); m++) {
|
|
509
|
-
const
|
|
511
|
+
const f = ((R = g == null ? void 0 : g.current[m]) == null ? void 0 : R.offsetWidth) || 0, h = o + f + 4;
|
|
510
512
|
if (h <= r)
|
|
511
513
|
o += h, c++;
|
|
512
514
|
else
|
|
513
515
|
break;
|
|
514
516
|
}
|
|
515
|
-
|
|
517
|
+
Y(c);
|
|
516
518
|
};
|
|
517
519
|
Ve(() => {
|
|
518
520
|
const r = l == null ? void 0 : l.current;
|
|
519
521
|
if (!r) return;
|
|
520
522
|
const o = new ResizeObserver(() => {
|
|
521
|
-
|
|
523
|
+
$e();
|
|
522
524
|
});
|
|
523
525
|
return o.observe(r), () => {
|
|
524
526
|
o.disconnect();
|
|
525
527
|
};
|
|
526
528
|
}, [i, W]);
|
|
527
|
-
const
|
|
529
|
+
const Se = () => {
|
|
528
530
|
var r;
|
|
529
|
-
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0,
|
|
530
|
-
var
|
|
531
|
-
const d = ((
|
|
532
|
-
return /* @__PURE__ */
|
|
533
|
-
|
|
531
|
+
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0, Ne)) == null ? void 0 : r.map((o, c) => {
|
|
532
|
+
var f, h, K, H, Q;
|
|
533
|
+
const d = ((f = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : f.icon) ?? ((h = s == null ? void 0 : s.default) == null ? void 0 : h.icon) ?? "", w = ((K = o == null ? void 0 : o.measurementUnit) == null ? void 0 : K.symbol) ?? ((H = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : H.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((Q = o == null ? void 0 : o.multiOptions) == null ? void 0 : Q[0]) ?? "", w].filter(Boolean).join(" ");
|
|
534
|
+
return /* @__PURE__ */ n(
|
|
535
|
+
V,
|
|
534
536
|
{
|
|
535
|
-
ref: (Te) =>
|
|
537
|
+
ref: (Te) => g.current[c] = Te,
|
|
536
538
|
className: "tag",
|
|
537
539
|
children: [
|
|
538
540
|
/* @__PURE__ */ e("i", { className: d }),
|
|
@@ -542,68 +544,73 @@ const Ie = N.div`
|
|
|
542
544
|
`detailed-products-section-tag__${c + 1}`
|
|
543
545
|
);
|
|
544
546
|
}) });
|
|
545
|
-
},
|
|
546
|
-
var m,
|
|
547
|
-
const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((
|
|
548
|
-
return /* @__PURE__ */
|
|
547
|
+
}, Pe = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: i == null ? void 0 : i.map((r, o) => {
|
|
548
|
+
var m, f, h;
|
|
549
|
+
const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((f = s == null ? void 0 : s[r == null ? void 0 : r.code]) == null ? void 0 : f.measure) ?? "", w = [(r == null ? void 0 : r.value) ?? ((h = r == null ? void 0 : r.multiOptions) == null ? void 0 : h[0]) ?? "", c].filter(Boolean).join(" "), R = r == null ? void 0 : r.name;
|
|
550
|
+
return /* @__PURE__ */ n("div", { children: [
|
|
549
551
|
/* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${R}: ` }),
|
|
550
552
|
/* @__PURE__ */ e("span", { className: "tags-popover__value", children: w })
|
|
551
553
|
] }, `detailed-products-section-tag-dropdown__${o + 1}`);
|
|
552
|
-
}) }),
|
|
553
|
-
|
|
554
|
-
B && /* @__PURE__ */ e(
|
|
555
|
-
|
|
556
|
-
] }),
|
|
554
|
+
}) }), Ee = () => /* @__PURE__ */ n(M, { children: [
|
|
555
|
+
D && /* @__PURE__ */ e(V, { className: "tag", children: D }, "detailed-products-section-tag__condition"),
|
|
556
|
+
B && /* @__PURE__ */ e(V, { className: "tag", children: B }, "detailed-products-section-tag__quantity"),
|
|
557
|
+
j && /* @__PURE__ */ e(V, { className: "tag", children: j }, "detailed-products-section-tag__trade")
|
|
558
|
+
] }), A = S > 0 && _ && P !== !0 && E !== !0 && S !== k;
|
|
557
559
|
return (
|
|
558
560
|
// <LandingPageProductCardSkeleton />
|
|
559
|
-
/* @__PURE__ */
|
|
560
|
-
|
|
561
|
+
/* @__PURE__ */ n(
|
|
562
|
+
je,
|
|
561
563
|
{
|
|
562
564
|
ref: l,
|
|
563
565
|
className: "product-card",
|
|
564
566
|
"data-accessor": v == null ? void 0 : v.accessor,
|
|
565
567
|
name: v == null ? void 0 : v.name,
|
|
566
|
-
onClick: (r) =>
|
|
568
|
+
onClick: (r) => ye(r, l),
|
|
569
|
+
href: `/product/${We(X) ? `${X}-` : ""}${u}`,
|
|
567
570
|
children: [
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
/* @__PURE__ */ e(
|
|
570
|
-
|
|
571
|
+
/* @__PURE__ */ n(Ue, { className: "product-image-wrapper", children: [
|
|
572
|
+
/* @__PURE__ */ e("div", { onClick: (r) => {
|
|
573
|
+
r == null || r.preventDefault(), r == null || r.stopPropagation();
|
|
574
|
+
}, children: /* @__PURE__ */ e(ke, {}) }),
|
|
575
|
+
re(I) ? I : /* @__PURE__ */ e(Ge, { src: ae })
|
|
571
576
|
] }),
|
|
572
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ n("div", { className: "wrapper-card-1", children: [
|
|
573
578
|
/* @__PURE__ */ e("div", { className: "seller", title: L, children: L }),
|
|
574
|
-
/* @__PURE__ */ e("div", { className: "card-title", children:
|
|
579
|
+
/* @__PURE__ */ e("div", { className: "card-title", children: ie })
|
|
575
580
|
] }),
|
|
576
|
-
/* @__PURE__ */
|
|
577
|
-
|
|
581
|
+
/* @__PURE__ */ n("div", { className: "wrapper-card-3", onClick: (r) => {
|
|
582
|
+
r == null || r.preventDefault(), r == null || r.stopPropagation();
|
|
583
|
+
}, children: [
|
|
584
|
+
x && /* @__PURE__ */ e(
|
|
578
585
|
"div",
|
|
579
586
|
{
|
|
580
587
|
...W ? {} : {
|
|
581
|
-
onMouseEnter:
|
|
582
|
-
onMouseLeave:
|
|
588
|
+
onMouseEnter: Ce,
|
|
589
|
+
onMouseLeave: Re
|
|
583
590
|
},
|
|
584
|
-
children: /* @__PURE__ */
|
|
585
|
-
/* @__PURE__ */ e(
|
|
586
|
-
/* @__PURE__ */ e(
|
|
591
|
+
children: /* @__PURE__ */ n(Me, { placement: "bottom", open: _e, children: [
|
|
592
|
+
/* @__PURE__ */ e(Fe, { children: Se() }),
|
|
593
|
+
/* @__PURE__ */ e(Ie, { style: { all: "unset" }, children: /* @__PURE__ */ e(Le, { children: Pe() }) })
|
|
587
594
|
] })
|
|
588
595
|
}
|
|
589
596
|
),
|
|
590
|
-
!
|
|
597
|
+
!x && Ee()
|
|
591
598
|
] }),
|
|
592
|
-
/* @__PURE__ */
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
-
k > 0 && _ && P !== !0 &&
|
|
595
|
-
|
|
599
|
+
/* @__PURE__ */ n("div", { className: "wrapper-card-2", children: [
|
|
600
|
+
/* @__PURE__ */ n("div", { className: `price-text ${A ? "new-price" : ""}`, children: [
|
|
601
|
+
k > 0 && _ && P !== !0 && E !== !0 && /* @__PURE__ */ e("div", { children: `${oe(k)} ${te(_)}` }),
|
|
602
|
+
A && /* @__PURE__ */ e("div", { className: `${k > 0 ? "full-price" : ""}`, children: `${oe(S)} ${te(_)}` }),
|
|
596
603
|
P && de,
|
|
597
|
-
|
|
604
|
+
E && ce
|
|
598
605
|
] }),
|
|
599
|
-
/* @__PURE__ */ e("div", { className: "location-text", children:
|
|
606
|
+
/* @__PURE__ */ e("div", { className: "location-text", children: se })
|
|
600
607
|
] }),
|
|
601
|
-
|
|
608
|
+
le === !0 && /* @__PURE__ */ e(xe, { sponsoredText: he })
|
|
602
609
|
]
|
|
603
610
|
}
|
|
604
611
|
)
|
|
605
612
|
);
|
|
606
|
-
}),
|
|
613
|
+
}), er = N(b)`
|
|
607
614
|
@media (max-width: ${F + "px"}) {
|
|
608
615
|
& > div {
|
|
609
616
|
&:nth-of-type(even) {
|
|
@@ -611,8 +618,8 @@ const Ie = N.div`
|
|
|
611
618
|
}
|
|
612
619
|
}
|
|
613
620
|
}
|
|
614
|
-
`,
|
|
615
|
-
/* @__PURE__ */
|
|
621
|
+
`, rr = ({ keyPrefix: a }) => /* @__PURE__ */ n(er, { children: [
|
|
622
|
+
/* @__PURE__ */ n(p, { gap: "0.5rem", children: [
|
|
616
623
|
/* @__PURE__ */ e(
|
|
617
624
|
y,
|
|
618
625
|
{
|
|
@@ -621,14 +628,14 @@ const Ie = N.div`
|
|
|
621
628
|
borderRadius: "0.75rem"
|
|
622
629
|
}
|
|
623
630
|
),
|
|
624
|
-
/* @__PURE__ */ e(p, { height: "1rem", children: /* @__PURE__ */ e(
|
|
625
|
-
/* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */ e(
|
|
627
|
-
/* @__PURE__ */ e(
|
|
631
|
+
/* @__PURE__ */ e(p, { height: "1rem", children: /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }) }),
|
|
632
|
+
/* @__PURE__ */ n(b, { gap: "0.5rem", children: [
|
|
633
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
634
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
628
635
|
] }),
|
|
629
|
-
/* @__PURE__ */ e(p, { height: "2rem", children: /* @__PURE__ */ e(
|
|
636
|
+
/* @__PURE__ */ e(p, { height: "2rem", children: /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" }) })
|
|
630
637
|
] }, `${a}-1`),
|
|
631
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ n(
|
|
632
639
|
p,
|
|
633
640
|
{
|
|
634
641
|
gap: "0.5rem",
|
|
@@ -642,17 +649,17 @@ const Ie = N.div`
|
|
|
642
649
|
borderRadius: "0.75rem"
|
|
643
650
|
}
|
|
644
651
|
),
|
|
645
|
-
/* @__PURE__ */ e(
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */ e(
|
|
648
|
-
/* @__PURE__ */ e(
|
|
652
|
+
/* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
|
|
653
|
+
/* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
|
|
654
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
655
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
649
656
|
] }),
|
|
650
|
-
/* @__PURE__ */ e(
|
|
657
|
+
/* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
|
|
651
658
|
]
|
|
652
659
|
},
|
|
653
660
|
`${a}-2`
|
|
654
661
|
),
|
|
655
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ n(
|
|
656
663
|
p,
|
|
657
664
|
{
|
|
658
665
|
gap: "0.5rem",
|
|
@@ -666,17 +673,17 @@ const Ie = N.div`
|
|
|
666
673
|
borderRadius: "0.75rem"
|
|
667
674
|
}
|
|
668
675
|
),
|
|
669
|
-
/* @__PURE__ */ e(
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */ e(
|
|
672
|
-
/* @__PURE__ */ e(
|
|
676
|
+
/* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
|
|
677
|
+
/* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
|
|
678
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
679
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
673
680
|
] }),
|
|
674
|
-
/* @__PURE__ */ e(
|
|
681
|
+
/* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
|
|
675
682
|
]
|
|
676
683
|
},
|
|
677
684
|
`${a}-3`
|
|
678
685
|
),
|
|
679
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ n(
|
|
680
687
|
p,
|
|
681
688
|
{
|
|
682
689
|
gap: "0.5rem",
|
|
@@ -690,17 +697,17 @@ const Ie = N.div`
|
|
|
690
697
|
borderRadius: "0.75rem"
|
|
691
698
|
}
|
|
692
699
|
),
|
|
693
|
-
/* @__PURE__ */ e(
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */ e(
|
|
696
|
-
/* @__PURE__ */ e(
|
|
700
|
+
/* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
|
|
701
|
+
/* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
|
|
702
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
703
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
697
704
|
] }),
|
|
698
|
-
/* @__PURE__ */ e(
|
|
705
|
+
/* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
|
|
699
706
|
]
|
|
700
707
|
},
|
|
701
708
|
`${a}-4`
|
|
702
709
|
),
|
|
703
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ n(
|
|
704
711
|
p,
|
|
705
712
|
{
|
|
706
713
|
gap: "0.5rem",
|
|
@@ -714,17 +721,17 @@ const Ie = N.div`
|
|
|
714
721
|
borderRadius: "0.75rem"
|
|
715
722
|
}
|
|
716
723
|
),
|
|
717
|
-
/* @__PURE__ */ e(
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */ e(
|
|
720
|
-
/* @__PURE__ */ e(
|
|
724
|
+
/* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
|
|
725
|
+
/* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
|
|
726
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
727
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
721
728
|
] }),
|
|
722
|
-
/* @__PURE__ */ e(
|
|
729
|
+
/* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
|
|
723
730
|
]
|
|
724
731
|
},
|
|
725
732
|
`${a}-5`
|
|
726
733
|
),
|
|
727
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ n(
|
|
728
735
|
p,
|
|
729
736
|
{
|
|
730
737
|
gap: "0.5rem",
|
|
@@ -738,23 +745,23 @@ const Ie = N.div`
|
|
|
738
745
|
borderRadius: "0.75rem"
|
|
739
746
|
}
|
|
740
747
|
),
|
|
741
|
-
/* @__PURE__ */ e(
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */ e(
|
|
744
|
-
/* @__PURE__ */ e(
|
|
748
|
+
/* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
|
|
749
|
+
/* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
|
|
750
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
751
|
+
/* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
745
752
|
] }),
|
|
746
|
-
/* @__PURE__ */ e(
|
|
753
|
+
/* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
|
|
747
754
|
]
|
|
748
755
|
},
|
|
749
756
|
`${a}-6`
|
|
750
757
|
)
|
|
751
|
-
] }),
|
|
758
|
+
] }), fr = ({
|
|
752
759
|
keyPrefix: a,
|
|
753
760
|
isLoading: $ = !1,
|
|
754
|
-
fallbackComponent:
|
|
761
|
+
fallbackComponent: u = /* @__PURE__ */ e(M, {}),
|
|
755
762
|
children: O
|
|
756
|
-
}) => /* @__PURE__ */ e(
|
|
763
|
+
}) => /* @__PURE__ */ e(Oe, { fallbackComponent: u, children: $ === !0 ? /* @__PURE__ */ e(rr, { keyPrefix: a }) : O });
|
|
757
764
|
export {
|
|
758
|
-
|
|
759
|
-
|
|
765
|
+
gr as D,
|
|
766
|
+
fr as S
|
|
760
767
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),p=require("./utils-RnrgDDZP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),s=require("./Button.cjs"),b=require("./index-uwl7BjRF.cjs"),f=c.styled.a`
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
color: var(--gray-950);
|
|
2
4
|
display: flex;
|
|
3
5
|
width: 100%;
|
|
4
6
|
gap: 1.25rem;
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
margin-top: auto;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
`,
|
|
55
|
+
`,y=c.styled.div`
|
|
54
56
|
padding: 1rem;
|
|
55
57
|
display: flex;
|
|
56
58
|
flex-direction: column;
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
font-weight: 400;
|
|
67
69
|
font-size: 0.875rem;
|
|
68
70
|
color: var(--gray-700, #4e555f);
|
|
69
|
-
${
|
|
71
|
+
${p.truncateTextInRows(3)}
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
& button {
|
|
@@ -77,4 +79,4 @@
|
|
|
77
79
|
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
78
80
|
padding: 0;
|
|
79
81
|
}
|
|
80
|
-
`,
|
|
82
|
+
`,v=a.forwardRef((d,j)=>{const{title:l,imageUrl:g,text:u,onCardClick:t,buttonText:i,metadata:r,titleSlug:x}=d,o=w.useDetectMobile(),n=a.useRef();return e.jsxs(f,{ref:n,className:"blog-card","data-accessor":r==null?void 0:r.accessor,name:r==null?void 0:r.name,onClick:h=>t(h,n),href:`/blog/${x}`,children:[e.jsx(b.ProductImageWrapper,{src:g}),e.jsxs(y,{children:[e.jsx("div",{className:"text-wr-title",children:l}),e.jsx("div",{className:"text-wr",children:u}),o!==!0&&e.jsx(s,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:i})]}),o===!0&&e.jsx(s,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:i})]})});exports.BlogCardLarge=v;
|