@lanaco/lnc-react-ui 4.0.157 → 4.0.160
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 +8 -8
- package/dist/BlogCardsSponsoredSection.js +105 -89
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +88 -84
- package/dist/BlogListSection.cjs +5 -5
- package/dist/BlogListSection.js +139 -126
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +37 -35
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +43 -41
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +9 -4
- package/dist/BlogsSectionDetailed.cjs +11 -11
- package/dist/BlogsSectionDetailed.js +122 -108
- package/dist/BlogsSectionLarge.cjs +4 -4
- package/dist/BlogsSectionLarge.js +43 -40
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +100 -86
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +81 -66
- package/dist/BlogsSectionWithFilters.cjs +11 -11
- package/dist/BlogsSectionWithFilters.js +108 -93
- package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
- package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +29 -27
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +76 -65
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +81 -59
- package/dist/SalesCampaignsSection.cjs +27 -27
- package/dist/SalesCampaignsSection.js +245 -239
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +27 -25
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +62 -51
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +67 -56
- package/dist/index-1Dm1i6WK.js +52 -0
- package/dist/index-BGTtoLxz.cjs +1 -0
- package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
- package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
- package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
- package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
- package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
- package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
- package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Cm0f72Po.cjs +0 -1
- package/dist/index-DGp7FHms.js +0 -42
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { p as
|
|
4
|
-
import { s as
|
|
5
|
-
import { P as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
import { M as
|
|
12
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useState as q, useRef as A, useEffect as be, cloneElement as Y, Suspense as ke } from "react";
|
|
3
|
+
import { p as ye, t as K, o as y, l as H, q as Z, G as J } from "./utils-BdsZgOUE.js";
|
|
4
|
+
import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { P as _e } from "./index-CF3HhgvN.js";
|
|
6
|
+
import P from "./Badge.js";
|
|
7
|
+
import Ce from "./Popover.js";
|
|
8
|
+
import Ne from "./PopoverTrigger.js";
|
|
9
|
+
import Pe from "./PopoverContent.js";
|
|
10
|
+
import { u as $e } from "./useDetectMobile-Bkvj0VMa.js";
|
|
11
|
+
import { M as Q } from "./consts-BuFChS64.js";
|
|
12
|
+
const ee = T.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
gap: 0.5rem;
|
|
@@ -64,13 +64,13 @@ const Q = $.div`
|
|
|
64
64
|
& .card-title {
|
|
65
65
|
font-size: 0.875rem;
|
|
66
66
|
font-weight: 600;
|
|
67
|
-
${
|
|
67
|
+
${ye(2)}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
& .price-text {
|
|
71
71
|
font-size: 1rem;
|
|
72
72
|
font-weight: 600;
|
|
73
|
-
${
|
|
73
|
+
${K()}
|
|
74
74
|
display: flex;
|
|
75
75
|
align-items: end;
|
|
76
76
|
gap: 0.5rem;
|
|
@@ -93,7 +93,7 @@ const Q = $.div`
|
|
|
93
93
|
font-size: 0.75rem;
|
|
94
94
|
font-weight: 400;
|
|
95
95
|
color: var(--gray-600, #676e79);
|
|
96
|
-
${
|
|
96
|
+
${K()}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
& .tags-wrapper {
|
|
@@ -102,7 +102,7 @@ const Q = $.div`
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
& .skeleton-img {
|
|
105
|
-
background-color: ${
|
|
105
|
+
background-color: ${y("-90deg")};
|
|
106
106
|
border-radius: 0.75rem;
|
|
107
107
|
border: 1px solid white;
|
|
108
108
|
width: 100%;
|
|
@@ -110,25 +110,25 @@ const Q = $.div`
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
& .skeleton-title {
|
|
113
|
-
background-color: ${
|
|
113
|
+
background-color: ${y("-90deg")};
|
|
114
114
|
width: 100%;
|
|
115
115
|
height: 2.5rem;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
& .skeleton-tags {
|
|
119
|
-
background-color: ${
|
|
119
|
+
background-color: ${y("-90deg")};
|
|
120
120
|
width: 80%;
|
|
121
121
|
height: 1.5rem;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
& .skeleton-price {
|
|
125
|
-
background-color: ${
|
|
125
|
+
background-color: ${y("-90deg")};
|
|
126
126
|
width: 50%;
|
|
127
127
|
height: 2.5rem;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
& .skeleton-sponsored {
|
|
131
|
-
background-color: ${
|
|
131
|
+
background-color: ${y("-90deg")};
|
|
132
132
|
width: 50%;
|
|
133
133
|
height: 1rem;
|
|
134
134
|
}
|
|
@@ -138,7 +138,7 @@ const Q = $.div`
|
|
|
138
138
|
gap: 0.25rem;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@media (max-width: ${
|
|
141
|
+
@media (max-width: ${Q + "px"}) {
|
|
142
142
|
overflow: visible;
|
|
143
143
|
|
|
144
144
|
& .wrapper-card-3 {
|
|
@@ -201,7 +201,7 @@ const Q = $.div`
|
|
|
201
201
|
&:hover .product-image-wrapper img {
|
|
202
202
|
transform: scale(1.1);
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`, Te = T.div`
|
|
205
205
|
position: relative;
|
|
206
206
|
overflow: hidden;
|
|
207
207
|
border-radius: 0.75rem;
|
|
@@ -233,7 +233,7 @@ const Q = $.div`
|
|
|
233
233
|
transition: var(--transition, all 0.3s ease);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
@media (max-width: ${
|
|
236
|
+
@media (max-width: ${Q + "px"}) {
|
|
237
237
|
& img {
|
|
238
238
|
width: 8.875rem;
|
|
239
239
|
height: 8.875rem;
|
|
@@ -246,7 +246,7 @@ const Q = $.div`
|
|
|
246
246
|
display: flex;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`, Ee = T.div`
|
|
250
250
|
background: var(--white, #fff);
|
|
251
251
|
z-index: 1;
|
|
252
252
|
|
|
@@ -296,7 +296,7 @@ const Q = $.div`
|
|
|
296
296
|
color: var(--gray-950, #14161a);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
`,
|
|
299
|
+
`, Se = T.div`
|
|
300
300
|
display: flex;
|
|
301
301
|
align-items: center;
|
|
302
302
|
gap: 0.25rem;
|
|
@@ -308,10 +308,10 @@ const Q = $.div`
|
|
|
308
308
|
font-size: 1rem;
|
|
309
309
|
color: var(--warning-500, #F59E0B);
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`, Ve = B(({ sponsoredText: c = "Sponsored" }, f) => /* @__PURE__ */ t(Se, { ref: f, className: "sponsored-line", children: [
|
|
312
312
|
/* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
|
|
313
313
|
/* @__PURE__ */ e("span", { children: c })
|
|
314
|
-
] })),
|
|
314
|
+
] })), Oe = "Vehicles_Cars", Be = "Vehicles_Motorcycles", ze = "Vehicles_Trucks", Me = "Vehicles_AgriculturalMachines_Tractors", Fe = "Vehicles_ConstructionMachines", We = "Vehicles_Bus", Ie = "Vehicles_Campers", je = "RealEstates_", a = {
|
|
315
315
|
Mileage: {
|
|
316
316
|
icon: "mng-lnc-road",
|
|
317
317
|
measure: "km"
|
|
@@ -412,98 +412,99 @@ const Q = $.div`
|
|
|
412
412
|
icon: " mng-lnc-clock--filled",
|
|
413
413
|
measure: ""
|
|
414
414
|
}
|
|
415
|
-
},
|
|
415
|
+
}, Qe = B((c, f) => {
|
|
416
416
|
const {
|
|
417
417
|
uuid: l,
|
|
418
|
-
name:
|
|
418
|
+
name: _,
|
|
419
419
|
price: g = 0,
|
|
420
|
-
sellingPrice:
|
|
421
|
-
currency:
|
|
422
|
-
isNegotiable:
|
|
423
|
-
isFree:
|
|
424
|
-
imageUrl:
|
|
425
|
-
location:
|
|
426
|
-
sponsored:
|
|
427
|
-
imageComponent:
|
|
428
|
-
onSelectCard:
|
|
420
|
+
sellingPrice: C,
|
|
421
|
+
currency: N,
|
|
422
|
+
isNegotiable: E,
|
|
423
|
+
isFree: S,
|
|
424
|
+
imageUrl: re,
|
|
425
|
+
location: oe,
|
|
426
|
+
sponsored: ne,
|
|
427
|
+
imageComponent: z,
|
|
428
|
+
onSelectCard: te = () => {
|
|
429
429
|
},
|
|
430
|
-
freeText:
|
|
431
|
-
negotiableText:
|
|
430
|
+
freeText: ae = "Free",
|
|
431
|
+
negotiableText: ie = "Negotiable",
|
|
432
432
|
tags: n = [],
|
|
433
|
-
categoryCode:
|
|
434
|
-
condition:
|
|
435
|
-
quantity:
|
|
436
|
-
trade:
|
|
437
|
-
sponsoredText:
|
|
438
|
-
onBookmark:
|
|
433
|
+
categoryCode: V,
|
|
434
|
+
condition: M,
|
|
435
|
+
quantity: F,
|
|
436
|
+
trade: W,
|
|
437
|
+
sponsoredText: se,
|
|
438
|
+
onBookmark: I = () => {
|
|
439
439
|
},
|
|
440
|
-
bookmarkComponent:
|
|
441
|
-
bookmarked:
|
|
442
|
-
bookmarkLists:
|
|
443
|
-
|
|
440
|
+
bookmarkComponent: b,
|
|
441
|
+
bookmarked: j,
|
|
442
|
+
bookmarkLists: ce,
|
|
443
|
+
metadata: v
|
|
444
|
+
} = c, O = $e(), le = () => {
|
|
444
445
|
var d;
|
|
445
|
-
if (!
|
|
446
|
-
const r =
|
|
447
|
-
key: `bookmark_pr__${
|
|
448
|
-
bookmarked:
|
|
446
|
+
if (!H(b)) return /* @__PURE__ */ e($, {});
|
|
447
|
+
const r = b, o = (d = b == null ? void 0 : b.props) == null ? void 0 : d.children, s = Y(o, {
|
|
448
|
+
key: `bookmark_pr__${j}`,
|
|
449
|
+
bookmarked: j,
|
|
449
450
|
productUuid: l,
|
|
450
|
-
onAddToBookmark: () =>
|
|
451
|
-
onRemoveFromBookmark: () =>
|
|
452
|
-
bookmarkedUuidList:
|
|
451
|
+
onAddToBookmark: () => I(!0, l),
|
|
452
|
+
onRemoveFromBookmark: () => I(!1, l),
|
|
453
|
+
bookmarkedUuidList: ce
|
|
453
454
|
});
|
|
454
|
-
return
|
|
455
|
-
},
|
|
456
|
-
Ve,
|
|
455
|
+
return Y(r, void 0, s);
|
|
456
|
+
}, D = [
|
|
457
457
|
Oe,
|
|
458
458
|
Be,
|
|
459
459
|
ze,
|
|
460
460
|
Me,
|
|
461
461
|
Fe,
|
|
462
462
|
We,
|
|
463
|
-
Ie
|
|
463
|
+
Ie,
|
|
464
|
+
je
|
|
464
465
|
].some(
|
|
465
|
-
(r) =>
|
|
466
|
-
), [
|
|
467
|
-
|
|
468
|
-
},
|
|
469
|
-
|
|
470
|
-
}, i =
|
|
471
|
-
var d,
|
|
466
|
+
(r) => V == null ? void 0 : V.includes(r)
|
|
467
|
+
), [de, x] = q(!1), me = () => {
|
|
468
|
+
x(!0);
|
|
469
|
+
}, pe = () => {
|
|
470
|
+
x(!1);
|
|
471
|
+
}, i = A(null), u = A([]), [ge, G] = q(n == null ? void 0 : n.length), ue = () => {
|
|
472
|
+
var d, w, k;
|
|
472
473
|
if (!(i != null && i.current) || ((d = u == null ? void 0 : u.current) == null ? void 0 : d.length) === 0) return;
|
|
473
|
-
if (
|
|
474
|
-
|
|
474
|
+
if (O) {
|
|
475
|
+
G(n == null ? void 0 : n.length);
|
|
475
476
|
return;
|
|
476
477
|
}
|
|
477
|
-
const r = (
|
|
478
|
+
const r = (w = i == null ? void 0 : i.current) == null ? void 0 : w.offsetWidth;
|
|
478
479
|
let o = 0, s = 0;
|
|
479
480
|
for (let m = 0; m < (n == null ? void 0 : n.length); m++) {
|
|
480
|
-
const h = ((
|
|
481
|
+
const h = ((k = u == null ? void 0 : u.current[m]) == null ? void 0 : k.offsetWidth) || 0, p = o + h + 4;
|
|
481
482
|
if (p <= r)
|
|
482
483
|
o += p, s++;
|
|
483
484
|
else
|
|
484
485
|
break;
|
|
485
486
|
}
|
|
486
|
-
|
|
487
|
+
G(s);
|
|
487
488
|
};
|
|
488
|
-
|
|
489
|
+
be(() => {
|
|
489
490
|
const r = i == null ? void 0 : i.current;
|
|
490
491
|
if (!r) return;
|
|
491
492
|
const o = new ResizeObserver(() => {
|
|
492
|
-
|
|
493
|
+
ue();
|
|
493
494
|
});
|
|
494
495
|
return o.observe(r), () => {
|
|
495
496
|
o.disconnect();
|
|
496
497
|
};
|
|
497
|
-
}, [n,
|
|
498
|
-
const
|
|
498
|
+
}, [n, O]);
|
|
499
|
+
const he = () => {
|
|
499
500
|
var r;
|
|
500
|
-
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = n == null ? void 0 : n.slice(0,
|
|
501
|
-
var h, p,
|
|
502
|
-
const d = ((h = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : h.icon) ?? ((p = a == null ? void 0 : a.default) == null ? void 0 : p.icon) ?? "",
|
|
501
|
+
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = n == null ? void 0 : n.slice(0, ge)) == null ? void 0 : r.map((o, s) => {
|
|
502
|
+
var h, p, U, X, L;
|
|
503
|
+
const d = ((h = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : h.icon) ?? ((p = a == null ? void 0 : a.default) == null ? void 0 : p.icon) ?? "", w = ((U = o == null ? void 0 : o.measurementUnit) == null ? void 0 : U.symbol) ?? ((X = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : X.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((L = o == null ? void 0 : o.multiOptions) == null ? void 0 : L[0]) ?? "", w].filter(Boolean).join(" ");
|
|
503
504
|
return /* @__PURE__ */ t(
|
|
504
|
-
|
|
505
|
+
P,
|
|
505
506
|
{
|
|
506
|
-
ref: (
|
|
507
|
+
ref: (we) => u.current[s] = we,
|
|
507
508
|
className: "tag",
|
|
508
509
|
children: [
|
|
509
510
|
/* @__PURE__ */ e("i", { className: d }),
|
|
@@ -513,63 +514,65 @@ const Q = $.div`
|
|
|
513
514
|
`detailed-products-section-tag__${s + 1}`
|
|
514
515
|
);
|
|
515
516
|
}) });
|
|
516
|
-
},
|
|
517
|
+
}, fe = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: n == null ? void 0 : n.map((r, o) => {
|
|
517
518
|
var m, h, p;
|
|
518
|
-
const s = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((h = a == null ? void 0 : a[r == null ? void 0 : r.code]) == null ? void 0 : h.measure) ?? "",
|
|
519
|
+
const s = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((h = a == null ? void 0 : a[r == null ? void 0 : r.code]) == null ? void 0 : h.measure) ?? "", w = [(r == null ? void 0 : r.value) ?? ((p = r == null ? void 0 : r.multiOptions) == null ? void 0 : p[0]) ?? "", s].filter(Boolean).join(" "), k = r == null ? void 0 : r.name;
|
|
519
520
|
return /* @__PURE__ */ t("div", { children: [
|
|
520
|
-
/* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${
|
|
521
|
-
/* @__PURE__ */ e("span", { className: "tags-popover__value", children:
|
|
521
|
+
/* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${k}: ` }),
|
|
522
|
+
/* @__PURE__ */ e("span", { className: "tags-popover__value", children: w })
|
|
522
523
|
] }, `detailed-products-section-tag-dropdown__${o + 1}`);
|
|
523
|
-
}) }),
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
] }),
|
|
524
|
+
}) }), ve = () => /* @__PURE__ */ t($, { children: [
|
|
525
|
+
M && /* @__PURE__ */ e(P, { className: "tag", children: M }, "detailed-products-section-tag__condition"),
|
|
526
|
+
F && /* @__PURE__ */ e(P, { className: "tag", children: F }, "detailed-products-section-tag__quantity"),
|
|
527
|
+
W && /* @__PURE__ */ e(P, { className: "tag", children: W }, "detailed-products-section-tag__trade")
|
|
528
|
+
] }), R = g > 0 && N && E !== !0 && S !== !0 && g !== C;
|
|
528
529
|
return (
|
|
529
530
|
// <LandingPageProductCardSkeleton />
|
|
530
531
|
/* @__PURE__ */ t(
|
|
531
|
-
|
|
532
|
+
ee,
|
|
532
533
|
{
|
|
533
534
|
ref: i,
|
|
534
535
|
className: "product-card",
|
|
535
|
-
|
|
536
|
+
"data-accessor": v == null ? void 0 : v.accessor,
|
|
537
|
+
name: v == null ? void 0 : v.name,
|
|
538
|
+
onClick: (r) => te(r, i),
|
|
536
539
|
children: [
|
|
537
|
-
/* @__PURE__ */ t(
|
|
538
|
-
/* @__PURE__ */ e(
|
|
539
|
-
|
|
540
|
+
/* @__PURE__ */ t(Te, { className: "product-image-wrapper", children: [
|
|
541
|
+
/* @__PURE__ */ e(le, {}),
|
|
542
|
+
H(z) ? z : /* @__PURE__ */ e(_e, { src: re })
|
|
540
543
|
] }),
|
|
541
|
-
/* @__PURE__ */ e("div", { className: "wrapper-card-1", children: /* @__PURE__ */ e("div", { className: "card-title", children:
|
|
544
|
+
/* @__PURE__ */ e("div", { className: "wrapper-card-1", children: /* @__PURE__ */ e("div", { className: "card-title", children: _ }) }),
|
|
542
545
|
/* @__PURE__ */ t("div", { className: "wrapper-card-3", children: [
|
|
543
|
-
|
|
546
|
+
D && /* @__PURE__ */ e(
|
|
544
547
|
"div",
|
|
545
548
|
{
|
|
546
|
-
...
|
|
547
|
-
onMouseEnter:
|
|
548
|
-
onMouseLeave:
|
|
549
|
+
...O ? {} : {
|
|
550
|
+
onMouseEnter: me,
|
|
551
|
+
onMouseLeave: pe
|
|
549
552
|
},
|
|
550
|
-
children: /* @__PURE__ */ t(
|
|
551
|
-
/* @__PURE__ */ e(
|
|
552
|
-
/* @__PURE__ */ e(
|
|
553
|
+
children: /* @__PURE__ */ t(Ce, { placement: "bottom", open: de, children: [
|
|
554
|
+
/* @__PURE__ */ e(Ne, { children: he() }),
|
|
555
|
+
/* @__PURE__ */ e(Pe, { style: { all: "unset" }, children: /* @__PURE__ */ e(Ee, { children: fe() }) })
|
|
553
556
|
] })
|
|
554
557
|
}
|
|
555
558
|
),
|
|
556
|
-
!
|
|
559
|
+
!D && ve()
|
|
557
560
|
] }),
|
|
558
561
|
/* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
|
|
559
|
-
/* @__PURE__ */ t("div", { className: `price-text ${
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
/* @__PURE__ */ t("div", { className: `price-text ${R ? "new-price" : ""}`, children: [
|
|
563
|
+
C > 0 && N && E !== !0 && S !== !0 && /* @__PURE__ */ e("div", { children: `${Z(C)} ${J(N)}` }),
|
|
564
|
+
R && /* @__PURE__ */ e("div", { className: `${C > 0 ? "full-price" : ""}`, children: `${Z(g)} ${J(N)}` }),
|
|
565
|
+
E && ie,
|
|
566
|
+
S && ae
|
|
564
567
|
] }),
|
|
565
|
-
/* @__PURE__ */ e("div", { className: "location-text", children:
|
|
568
|
+
/* @__PURE__ */ e("div", { className: "location-text", children: oe })
|
|
566
569
|
] }),
|
|
567
|
-
|
|
570
|
+
ne === !0 && /* @__PURE__ */ e(Ve, { sponsoredText: se })
|
|
568
571
|
]
|
|
569
572
|
}
|
|
570
573
|
)
|
|
571
574
|
);
|
|
572
|
-
}),
|
|
575
|
+
}), De = B(({}, c) => /* @__PURE__ */ t(ee, { className: "product-card", children: [
|
|
573
576
|
/* @__PURE__ */ e("img", { className: "skeleton-img" }),
|
|
574
577
|
/* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
|
|
575
578
|
/* @__PURE__ */ e("div", { className: "skeleton-title" }),
|
|
@@ -579,27 +582,27 @@ const Q = $.div`
|
|
|
579
582
|
/* @__PURE__ */ e("div", { className: "skeleton-price" }),
|
|
580
583
|
/* @__PURE__ */ e("div", { className: "skeleton-sponsored" })
|
|
581
584
|
] })
|
|
582
|
-
] })),
|
|
583
|
-
|
|
585
|
+
] })), xe = ({ limit: c = 5, isLoading: f = !1, keyPrefix: l }) => /* @__PURE__ */ e($, { children: Array.from({ length: c }, (_, g) => /* @__PURE__ */ e(
|
|
586
|
+
De,
|
|
584
587
|
{
|
|
585
588
|
isLoading: f
|
|
586
589
|
},
|
|
587
590
|
`${l}-skeleton-product-card-${g}`
|
|
588
|
-
)) }),
|
|
591
|
+
)) }), er = ({
|
|
589
592
|
children: c,
|
|
590
|
-
fallbackComponent: f = /* @__PURE__ */ e(
|
|
593
|
+
fallbackComponent: f = /* @__PURE__ */ e($, {}),
|
|
591
594
|
isLoading: l = !1,
|
|
592
|
-
limit:
|
|
595
|
+
limit: _,
|
|
593
596
|
keyPrefix: g
|
|
594
|
-
}) => /* @__PURE__ */ e(
|
|
595
|
-
|
|
597
|
+
}) => /* @__PURE__ */ e(ke, { fallbackComponent: f, children: l === !0 ? /* @__PURE__ */ e(
|
|
598
|
+
xe,
|
|
596
599
|
{
|
|
597
600
|
isLoading: l,
|
|
598
|
-
limit:
|
|
601
|
+
limit: _,
|
|
599
602
|
keyPrefix: g
|
|
600
603
|
}
|
|
601
604
|
) : c });
|
|
602
605
|
export {
|
|
603
|
-
|
|
604
|
-
|
|
606
|
+
Qe as D,
|
|
607
|
+
er as S
|
|
605
608
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),t=require("./utils-Dl9xPH4c.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),de=require("./index-BueKsXT8.cjs"),C=require("./Badge.cjs"),me=require("./Popover.cjs"),pe=require("./PopoverTrigger.cjs"),ue=require("./PopoverContent.cjs"),ge=require("./useDetectMobile-zkbzoOGV.cjs"),A=require("./consts-goSZX3xP.cjs"),X=N.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 0.5rem;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
gap: 0.25rem;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
@media (max-width: ${
|
|
130
|
+
@media (max-width: ${A.MOBILE_SIZE_PX+"px"}) {
|
|
131
131
|
overflow: visible;
|
|
132
132
|
|
|
133
133
|
& .wrapper-card-3 {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
&:hover .product-image-wrapper img {
|
|
191
191
|
transform: scale(1.1);
|
|
192
192
|
}
|
|
193
|
-
`,
|
|
193
|
+
`,he=N.styled.div`
|
|
194
194
|
position: relative;
|
|
195
195
|
overflow: hidden;
|
|
196
196
|
border-radius: 0.75rem;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
transition: var(--transition, all 0.3s ease);
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
@media (max-width: ${
|
|
225
|
+
@media (max-width: ${A.MOBILE_SIZE_PX+"px"}) {
|
|
226
226
|
& img {
|
|
227
227
|
width: 8.875rem;
|
|
228
228
|
height: 8.875rem;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
display: flex;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
238
|
+
`,fe=N.styled.div`
|
|
239
239
|
background: var(--white, #fff);
|
|
240
240
|
z-index: 1;
|
|
241
241
|
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
color: var(--gray-950, #14161a);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
`,
|
|
288
|
+
`,ve=N.styled.div`
|
|
289
289
|
display: flex;
|
|
290
290
|
align-items: center;
|
|
291
291
|
gap: 0.25rem;
|
|
@@ -297,4 +297,4 @@
|
|
|
297
297
|
font-size: 1rem;
|
|
298
298
|
color: var(--warning-500, #F59E0B);
|
|
299
299
|
}
|
|
300
|
-
`,
|
|
300
|
+
`,we=a.forwardRef(({sponsoredText:l="Sponsored"},v)=>e.jsxs(ve,{ref:v,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:l})]})),be="Vehicles_Cars",ye="Vehicles_Motorcycles",ke="Vehicles_Trucks",je="Vehicles_AgriculturalMachines_Tractors",xe="Vehicles_ConstructionMachines",_e="Vehicles_Bus",Ce="Vehicles_Campers",Ne="RealEstates_",s={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Pe=a.forwardRef((l,v)=>{const{uuid:d,name:j,price:g=0,sellingPrice:x,currency:_,isNegotiable:P,isFree:$,imageUrl:L,location:U,sponsored:Y,imageComponent:T,onSelectCard:K=()=>{},freeText:Z="Free",negotiableText:H="Negotiable",tags:n=[],categoryCode:E,condition:O,quantity:V,trade:B,sponsoredText:J,onBookmark:F=()=>{},bookmarkComponent:y,bookmarked:M,bookmarkLists:Q,metadata:w}=l,S=ge.useDetectMobile(),ee=()=>{var m;if(!t.isDefined(y))return e.jsx(e.Fragment,{});const r=y,o=(m=y==null?void 0:y.props)==null?void 0:m.children,c=a.cloneElement(o,{key:`bookmark_pr__${M}`,bookmarked:M,productUuid:d,onAddToBookmark:()=>F(!0,d),onRemoveFromBookmark:()=>F(!1,d),bookmarkedUuidList:Q});return a.cloneElement(r,void 0,c)},q=[be,ye,ke,je,xe,_e,Ce,Ne].some(r=>E==null?void 0:E.includes(r)),[re,z]=a.useState(!1),oe=()=>{z(!0)},ne=()=>{z(!1)},i=a.useRef(null),h=a.useRef([]),[te,I]=a.useState(n==null?void 0:n.length),se=()=>{var m,b,k;if(!(i!=null&&i.current)||((m=h==null?void 0:h.current)==null?void 0:m.length)===0)return;if(S){I(n==null?void 0:n.length);return}const r=(b=i==null?void 0:i.current)==null?void 0:b.offsetWidth;let o=0,c=0;for(let p=0;p<(n==null?void 0:n.length);p++){const f=((k=h==null?void 0:h.current[p])==null?void 0:k.offsetWidth)||0,u=o+f+4;if(u<=r)o+=u,c++;else break}I(c)};a.useEffect(()=>{const r=i==null?void 0:i.current;if(!r)return;const o=new ResizeObserver(()=>{se()});return o.observe(r),()=>{o.disconnect()}},[n,S]);const ie=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=n==null?void 0:n.slice(0,te))==null?void 0:r.map((o,c)=>{var f,u,D,R,G;const m=((f=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:f.icon)??((u=s==null?void 0:s.default)==null?void 0:u.icon)??"",b=((D=o==null?void 0:o.measurementUnit)==null?void 0:D.symbol)??((R=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:R.measure)??"",p=[(o==null?void 0:o.value)??((G=o==null?void 0:o.multiOptions)==null?void 0:G[0])??"",b].filter(Boolean).join(" ");return e.jsxs(C,{ref:le=>h.current[c]=le,className:"tag",children:[e.jsx("i",{className:m}),p]},`detailed-products-section-tag__${c+1}`)})})},ae=()=>e.jsx("div",{className:"tags-popover__content",children:n==null?void 0:n.map((r,o)=>{var p,f,u;const c=((p=r==null?void 0:r.measurementUnit)==null?void 0:p.symbol)??((f=s==null?void 0:s[r==null?void 0:r.code])==null?void 0:f.measure)??"",b=[(r==null?void 0:r.value)??((u=r==null?void 0:r.multiOptions)==null?void 0:u[0])??"",c].filter(Boolean).join(" "),k=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${k}: `}),e.jsx("span",{className:"tags-popover__value",children:b})]},`detailed-products-section-tag-dropdown__${o+1}`)})}),ce=()=>e.jsxs(e.Fragment,{children:[O&&e.jsx(C,{className:"tag",children:O},"detailed-products-section-tag__condition"),V&&e.jsx(C,{className:"tag",children:V},"detailed-products-section-tag__quantity"),B&&e.jsx(C,{className:"tag",children:B},"detailed-products-section-tag__trade")]}),W=g>0&&_&&P!==!0&&$!==!0&&g!==x;return e.jsxs(X,{ref:i,className:"product-card","data-accessor":w==null?void 0:w.accessor,name:w==null?void 0:w.name,onClick:r=>K(r,i),children:[e.jsxs(he,{className:"product-image-wrapper",children:[e.jsx(ee,{}),t.isDefined(T)?T:e.jsx(de.ProductImageWrapper,{src:L})]}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:j})}),e.jsxs("div",{className:"wrapper-card-3",children:[q&&e.jsx("div",{...S?{}:{onMouseEnter:oe,onMouseLeave:ne},children:e.jsxs(me,{placement:"bottom",open:re,children:[e.jsx(pe,{children:ie()}),e.jsx(ue,{style:{all:"unset"},children:e.jsx(fe,{children:ae()})})]})}),!q&&ce()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${W?"new-price":""}`,children:[x>0&&_&&P!==!0&&$!==!0&&e.jsx("div",{children:`${t.formatPrice(x)} ${t.GetCurrencySymbol(_)}`}),W&&e.jsx("div",{className:`${x>0?"full-price":""}`,children:`${t.formatPrice(g)} ${t.GetCurrencySymbol(_)}`}),P&&H,$&&Z]}),e.jsx("div",{className:"location-text",children:U})]}),Y===!0&&e.jsx(we,{sponsoredText:J})]})}),$e=a.forwardRef(({},l)=>e.jsxs(X,{className:"product-card",children:[e.jsx("img",{className:"skeleton-img"}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"skeleton-tags"})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-price"}),e.jsx("div",{className:"skeleton-sponsored"})]})]})),Ee=({limit:l=5,isLoading:v=!1,keyPrefix:d})=>e.jsx(e.Fragment,{children:Array.from({length:l},(j,g)=>e.jsx($e,{isLoading:v},`${d}-skeleton-product-card-${g}`))}),Se=({children:l,fallbackComponent:v=e.jsx(e.Fragment,{}),isLoading:d=!1,limit:j,keyPrefix:g})=>e.jsx(a.Suspense,{fallbackComponent:v,children:d===!0?e.jsx(Ee,{isLoading:d,limit:j,keyPrefix:g}):l});exports.DetailedProductCard=Pe;exports.SuspenseDetailedProductCard=Se;
|
package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),u=require("react"),c=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("react"),c=require("./index-DicTpiG0.cjs"),d=u.forwardRef((r,t)=>e.jsx(c.SkeletonWrapper,{})),l=({limit:r=6,isLoading:t=!1,keyPrefix:s})=>e.jsx(e.Fragment,{children:Array.from({length:r},(o,n)=>e.jsx(d,{isLoading:t},`${s}-skeleton-product-card-${n}`))}),a=({children:r,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:s=!1,limit:o,keyPrefix:n})=>e.jsx(u.Suspense,{fallbackComponent:t,children:s===!0?e.jsx(l,{isLoading:s,limit:o,keyPrefix:n}):r});exports.SuspenseSimpleProductCard=a;
|
package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as a, Suspense as l } from "react";
|
|
3
|
-
import { a as c } from "./index-
|
|
3
|
+
import { a as c } from "./index-y6sKgrZC.js";
|
|
4
4
|
const m = a((e, t) => /* @__PURE__ */ r(c, {})), u = ({ limit: e = 6, isLoading: t = !1, keyPrefix: o }) => /* @__PURE__ */ r(p, { children: Array.from({ length: e }, (s, n) => /* @__PURE__ */ r(
|
|
5
5
|
m,
|
|
6
6
|
{
|
package/package.json
CHANGED
package/dist/index-Cm0f72Po.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),d=require("react"),i=require("./skeleton-BdbB-LdT.cjs"),x=require("./useDetectMobile-zkbzoOGV.cjs"),c=require("./Button.cjs"),m=require("./index-BueKsXT8.cjs"),p=d.forwardRef((o,n)=>{const{title:l,imageUrl:a,text:u,onCardClick:t,buttonText:r}=o,s=x.useDetectMobile();return e.jsxs(i.Wrapper,{ref:n,className:"blog-card",onClick:t,children:[e.jsx(m.ProductImageWrapper,{src:a}),e.jsxs(i.TextWrapper,{children:[e.jsx("div",{className:"text-wr-title",children:l}),e.jsx("div",{className:"text-wr",children:u}),s!==!0&&e.jsx(c,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:r})]}),s===!0&&e.jsx(c,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:r})]})});exports.BlogCardLarge=p;
|
package/dist/index-DGp7FHms.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as p } from "react";
|
|
3
|
-
import { W as d, T as u } from "./skeleton-CQPwIEP0.js";
|
|
4
|
-
import { u as b } from "./useDetectMobile-Bkvj0VMa.js";
|
|
5
|
-
import a from "./Button.js";
|
|
6
|
-
import { P as f } from "./index-CF3HhgvN.js";
|
|
7
|
-
const k = p((l, c) => {
|
|
8
|
-
const { title: s, imageUrl: n, text: m, onCardClick: e, buttonText: t } = l, o = b();
|
|
9
|
-
return /* @__PURE__ */ i(d, { ref: c, className: "blog-card", onClick: e, children: [
|
|
10
|
-
/* @__PURE__ */ r(f, { src: n }),
|
|
11
|
-
/* @__PURE__ */ i(u, { children: [
|
|
12
|
-
/* @__PURE__ */ r("div", { className: "text-wr-title", children: s }),
|
|
13
|
-
/* @__PURE__ */ r("div", { className: "text-wr", children: m }),
|
|
14
|
-
o !== !0 && /* @__PURE__ */ r(
|
|
15
|
-
a,
|
|
16
|
-
{
|
|
17
|
-
type: "button",
|
|
18
|
-
btnType: "outline",
|
|
19
|
-
size: "medium",
|
|
20
|
-
color: "gray",
|
|
21
|
-
onClick: e,
|
|
22
|
-
children: t
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
] }),
|
|
26
|
-
o === !0 && /* @__PURE__ */ r(
|
|
27
|
-
a,
|
|
28
|
-
{
|
|
29
|
-
className: "action",
|
|
30
|
-
type: "button",
|
|
31
|
-
btnType: "outline",
|
|
32
|
-
size: "medium",
|
|
33
|
-
color: "gray",
|
|
34
|
-
onClick: e,
|
|
35
|
-
children: t
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] });
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
k as B
|
|
42
|
-
};
|