@lanaco/lnc-react-ui 4.0.156 → 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 +8 -3
- package/dist/DetailedProductsInfinitiveSection.js +63 -51
- 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/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.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 +281 -272
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +27 -25
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- 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/{style-DFPWLJBr.js → style-BLuyU97E.js} +4 -0
- package/dist/{style-CyHewQxg.cjs → style-lSjkOR95.cjs} +6 -2
- package/dist/{suspense-product-card-detailed-YJVsf2-a.js → suspense-product-card-detailed-BZtObEfA.js} +191 -162
- package/dist/suspense-product-card-detailed-D-pjVe22.cjs +300 -0
- 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
- package/dist/suspense-product-card-detailed-mCJwteOy.cjs +0 -265
|
@@ -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
|
|
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
5
|
import { P as _e } from "./index-CF3HhgvN.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import P from "./Badge.js";
|
|
7
|
+
import Ce from "./Popover.js";
|
|
8
|
+
import Ne from "./PopoverTrigger.js";
|
|
9
9
|
import Pe from "./PopoverContent.js";
|
|
10
10
|
import { u as $e } from "./useDetectMobile-Bkvj0VMa.js";
|
|
11
|
-
import { M as
|
|
12
|
-
const
|
|
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;
|
|
@@ -61,24 +61,16 @@ const Q = $.div`
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
& .tag-mobile {
|
|
65
|
-
font-weight: 400;
|
|
66
|
-
font-size: 0.75rem;
|
|
67
|
-
line-height: 1rem;
|
|
68
|
-
letter-spacing: 0.025rem;
|
|
69
|
-
color: var(--gray-600, #676e79);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
64
|
& .card-title {
|
|
73
65
|
font-size: 0.875rem;
|
|
74
66
|
font-weight: 600;
|
|
75
|
-
${
|
|
67
|
+
${ye(2)}
|
|
76
68
|
}
|
|
77
69
|
|
|
78
70
|
& .price-text {
|
|
79
71
|
font-size: 1rem;
|
|
80
72
|
font-weight: 600;
|
|
81
|
-
${
|
|
73
|
+
${K()}
|
|
82
74
|
display: flex;
|
|
83
75
|
align-items: end;
|
|
84
76
|
gap: 0.5rem;
|
|
@@ -101,7 +93,7 @@ const Q = $.div`
|
|
|
101
93
|
font-size: 0.75rem;
|
|
102
94
|
font-weight: 400;
|
|
103
95
|
color: var(--gray-600, #676e79);
|
|
104
|
-
${
|
|
96
|
+
${K()}
|
|
105
97
|
}
|
|
106
98
|
|
|
107
99
|
& .tags-wrapper {
|
|
@@ -110,7 +102,7 @@ const Q = $.div`
|
|
|
110
102
|
}
|
|
111
103
|
|
|
112
104
|
& .skeleton-img {
|
|
113
|
-
background-color: ${
|
|
105
|
+
background-color: ${y("-90deg")};
|
|
114
106
|
border-radius: 0.75rem;
|
|
115
107
|
border: 1px solid white;
|
|
116
108
|
width: 100%;
|
|
@@ -118,25 +110,25 @@ const Q = $.div`
|
|
|
118
110
|
}
|
|
119
111
|
|
|
120
112
|
& .skeleton-title {
|
|
121
|
-
background-color: ${
|
|
113
|
+
background-color: ${y("-90deg")};
|
|
122
114
|
width: 100%;
|
|
123
115
|
height: 2.5rem;
|
|
124
116
|
}
|
|
125
117
|
|
|
126
118
|
& .skeleton-tags {
|
|
127
|
-
background-color: ${
|
|
119
|
+
background-color: ${y("-90deg")};
|
|
128
120
|
width: 80%;
|
|
129
121
|
height: 1.5rem;
|
|
130
122
|
}
|
|
131
123
|
|
|
132
124
|
& .skeleton-price {
|
|
133
|
-
background-color: ${
|
|
125
|
+
background-color: ${y("-90deg")};
|
|
134
126
|
width: 50%;
|
|
135
127
|
height: 2.5rem;
|
|
136
128
|
}
|
|
137
129
|
|
|
138
130
|
& .skeleton-sponsored {
|
|
139
|
-
background-color: ${
|
|
131
|
+
background-color: ${y("-90deg")};
|
|
140
132
|
width: 50%;
|
|
141
133
|
height: 1rem;
|
|
142
134
|
}
|
|
@@ -146,11 +138,54 @@ const Q = $.div`
|
|
|
146
138
|
gap: 0.25rem;
|
|
147
139
|
}
|
|
148
140
|
|
|
149
|
-
@media (max-width: ${
|
|
141
|
+
@media (max-width: ${Q + "px"}) {
|
|
150
142
|
overflow: visible;
|
|
151
143
|
|
|
144
|
+
& .wrapper-card-3 {
|
|
145
|
+
flex-wrap: nowrap;
|
|
146
|
+
justify-content: flex-start;
|
|
147
|
+
overflow-x: scroll;
|
|
148
|
+
width: 8.875rem !important;
|
|
149
|
+
|
|
150
|
+
-webkit-overflow-scrolling: touch;
|
|
151
|
+
::-webkit-scrollbar {
|
|
152
|
+
-webkit-appearance: none;
|
|
153
|
+
}
|
|
154
|
+
-ms-overflow-style: none;
|
|
155
|
+
/* Internet Explorer 10+ */
|
|
156
|
+
scrollbar-width: none;
|
|
157
|
+
/* Firefox */
|
|
158
|
+
|
|
159
|
+
&::-webkit-scrollbar {
|
|
160
|
+
display: none;
|
|
161
|
+
/* Safari and Chrome */
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
& > div {
|
|
165
|
+
& > div {
|
|
166
|
+
width: 8.875rem !important;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
152
171
|
& .tags-popover__trigger {
|
|
153
|
-
|
|
172
|
+
overflow-x: scroll;
|
|
173
|
+
justify-content: flex-start;
|
|
174
|
+
width: 100%;
|
|
175
|
+
|
|
176
|
+
-webkit-overflow-scrolling: touch;
|
|
177
|
+
::-webkit-scrollbar {
|
|
178
|
+
-webkit-appearance: none;
|
|
179
|
+
}
|
|
180
|
+
-ms-overflow-style: none;
|
|
181
|
+
/* Internet Explorer 10+ */
|
|
182
|
+
scrollbar-width: none;
|
|
183
|
+
/* Firefox */
|
|
184
|
+
|
|
185
|
+
&::-webkit-scrollbar {
|
|
186
|
+
display: none;
|
|
187
|
+
/* Safari and Chrome */
|
|
188
|
+
}
|
|
154
189
|
}
|
|
155
190
|
|
|
156
191
|
& .price-text {
|
|
@@ -166,7 +201,7 @@ const Q = $.div`
|
|
|
166
201
|
&:hover .product-image-wrapper img {
|
|
167
202
|
transform: scale(1.1);
|
|
168
203
|
}
|
|
169
|
-
`, Te =
|
|
204
|
+
`, Te = T.div`
|
|
170
205
|
position: relative;
|
|
171
206
|
overflow: hidden;
|
|
172
207
|
border-radius: 0.75rem;
|
|
@@ -198,7 +233,7 @@ const Q = $.div`
|
|
|
198
233
|
transition: var(--transition, all 0.3s ease);
|
|
199
234
|
}
|
|
200
235
|
|
|
201
|
-
@media (max-width: ${
|
|
236
|
+
@media (max-width: ${Q + "px"}) {
|
|
202
237
|
& img {
|
|
203
238
|
width: 8.875rem;
|
|
204
239
|
height: 8.875rem;
|
|
@@ -211,7 +246,7 @@ const Q = $.div`
|
|
|
211
246
|
display: flex;
|
|
212
247
|
}
|
|
213
248
|
}
|
|
214
|
-
`, Ee =
|
|
249
|
+
`, Ee = T.div`
|
|
215
250
|
background: var(--white, #fff);
|
|
216
251
|
z-index: 1;
|
|
217
252
|
|
|
@@ -261,7 +296,7 @@ const Q = $.div`
|
|
|
261
296
|
color: var(--gray-950, #14161a);
|
|
262
297
|
}
|
|
263
298
|
}
|
|
264
|
-
`,
|
|
299
|
+
`, Se = T.div`
|
|
265
300
|
display: flex;
|
|
266
301
|
align-items: center;
|
|
267
302
|
gap: 0.25rem;
|
|
@@ -273,10 +308,10 @@ const Q = $.div`
|
|
|
273
308
|
font-size: 1rem;
|
|
274
309
|
color: var(--warning-500, #F59E0B);
|
|
275
310
|
}
|
|
276
|
-
`,
|
|
311
|
+
`, Ve = B(({ sponsoredText: c = "Sponsored" }, f) => /* @__PURE__ */ t(Se, { ref: f, className: "sponsored-line", children: [
|
|
277
312
|
/* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
|
|
278
|
-
/* @__PURE__ */ e("span", { children:
|
|
279
|
-
] })),
|
|
313
|
+
/* @__PURE__ */ e("span", { children: c })
|
|
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 = {
|
|
280
315
|
Mileage: {
|
|
281
316
|
icon: "mng-lnc-road",
|
|
282
317
|
measure: "km"
|
|
@@ -377,173 +412,167 @@ const Q = $.div`
|
|
|
377
412
|
icon: " mng-lnc-clock--filled",
|
|
378
413
|
measure: ""
|
|
379
414
|
}
|
|
380
|
-
},
|
|
415
|
+
}, Qe = B((c, f) => {
|
|
381
416
|
const {
|
|
382
|
-
uuid:
|
|
383
|
-
name:
|
|
384
|
-
price:
|
|
385
|
-
sellingPrice:
|
|
417
|
+
uuid: l,
|
|
418
|
+
name: _,
|
|
419
|
+
price: g = 0,
|
|
420
|
+
sellingPrice: C,
|
|
386
421
|
currency: N,
|
|
387
|
-
isNegotiable:
|
|
388
|
-
isFree:
|
|
389
|
-
imageUrl:
|
|
390
|
-
location:
|
|
391
|
-
sponsored:
|
|
392
|
-
imageComponent:
|
|
393
|
-
onSelectCard:
|
|
422
|
+
isNegotiable: E,
|
|
423
|
+
isFree: S,
|
|
424
|
+
imageUrl: re,
|
|
425
|
+
location: oe,
|
|
426
|
+
sponsored: ne,
|
|
427
|
+
imageComponent: z,
|
|
428
|
+
onSelectCard: te = () => {
|
|
394
429
|
},
|
|
395
|
-
freeText:
|
|
396
|
-
negotiableText:
|
|
430
|
+
freeText: ae = "Free",
|
|
431
|
+
negotiableText: ie = "Negotiable",
|
|
397
432
|
tags: n = [],
|
|
398
433
|
categoryCode: V,
|
|
399
|
-
condition:
|
|
400
|
-
quantity:
|
|
401
|
-
trade:
|
|
402
|
-
sponsoredText:
|
|
403
|
-
onBookmark:
|
|
434
|
+
condition: M,
|
|
435
|
+
quantity: F,
|
|
436
|
+
trade: W,
|
|
437
|
+
sponsoredText: se,
|
|
438
|
+
onBookmark: I = () => {
|
|
404
439
|
},
|
|
405
|
-
bookmarkComponent:
|
|
406
|
-
bookmarked:
|
|
407
|
-
bookmarkLists:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
440
|
+
bookmarkComponent: b,
|
|
441
|
+
bookmarked: j,
|
|
442
|
+
bookmarkLists: ce,
|
|
443
|
+
metadata: v
|
|
444
|
+
} = c, O = $e(), le = () => {
|
|
445
|
+
var d;
|
|
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,
|
|
450
|
+
productUuid: l,
|
|
451
|
+
onAddToBookmark: () => I(!0, l),
|
|
452
|
+
onRemoveFromBookmark: () => I(!1, l),
|
|
453
|
+
bookmarkedUuidList: ce
|
|
418
454
|
});
|
|
419
|
-
return
|
|
420
|
-
},
|
|
421
|
-
|
|
422
|
-
ze,
|
|
455
|
+
return Y(r, void 0, s);
|
|
456
|
+
}, D = [
|
|
457
|
+
Oe,
|
|
423
458
|
Be,
|
|
459
|
+
ze,
|
|
424
460
|
Me,
|
|
425
|
-
We,
|
|
426
461
|
Fe,
|
|
427
|
-
|
|
428
|
-
Ie
|
|
462
|
+
We,
|
|
463
|
+
Ie,
|
|
464
|
+
je
|
|
429
465
|
].some(
|
|
430
466
|
(r) => V == null ? void 0 : V.includes(r)
|
|
431
|
-
), [
|
|
432
|
-
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
},
|
|
436
|
-
var
|
|
437
|
-
if (!(
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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;
|
|
473
|
+
if (!(i != null && i.current) || ((d = u == null ? void 0 : u.current) == null ? void 0 : d.length) === 0) return;
|
|
474
|
+
if (O) {
|
|
475
|
+
G(n == null ? void 0 : n.length);
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
const r = (w = i == null ? void 0 : i.current) == null ? void 0 : w.offsetWidth;
|
|
479
|
+
let o = 0, s = 0;
|
|
480
|
+
for (let m = 0; m < (n == null ? void 0 : n.length); m++) {
|
|
481
|
+
const h = ((k = u == null ? void 0 : u.current[m]) == null ? void 0 : k.offsetWidth) || 0, p = o + h + 4;
|
|
482
|
+
if (p <= r)
|
|
483
|
+
o += p, s++;
|
|
444
484
|
else
|
|
445
485
|
break;
|
|
446
486
|
}
|
|
447
|
-
|
|
487
|
+
G(s);
|
|
448
488
|
};
|
|
449
|
-
|
|
450
|
-
const r =
|
|
489
|
+
be(() => {
|
|
490
|
+
const r = i == null ? void 0 : i.current;
|
|
451
491
|
if (!r) return;
|
|
452
492
|
const o = new ResizeObserver(() => {
|
|
453
|
-
|
|
493
|
+
ue();
|
|
454
494
|
});
|
|
455
495
|
return o.observe(r), () => {
|
|
456
496
|
o.disconnect();
|
|
457
497
|
};
|
|
458
|
-
}, [n]);
|
|
459
|
-
const
|
|
498
|
+
}, [n, O]);
|
|
499
|
+
const he = () => {
|
|
460
500
|
var r;
|
|
461
|
-
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = n == null ? void 0 : n.slice(0,
|
|
462
|
-
var
|
|
463
|
-
const
|
|
464
|
-
return
|
|
465
|
-
|
|
466
|
-
i < (n == null ? void 0 : n.length) - 1 ? " · " : ""
|
|
467
|
-
] }) : /* @__PURE__ */ t(
|
|
468
|
-
C,
|
|
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(" ");
|
|
504
|
+
return /* @__PURE__ */ t(
|
|
505
|
+
P,
|
|
469
506
|
{
|
|
470
|
-
ref: (
|
|
507
|
+
ref: (we) => u.current[s] = we,
|
|
471
508
|
className: "tag",
|
|
472
509
|
children: [
|
|
473
|
-
/* @__PURE__ */ e("i", { className:
|
|
474
|
-
|
|
510
|
+
/* @__PURE__ */ e("i", { className: d }),
|
|
511
|
+
m
|
|
475
512
|
]
|
|
476
513
|
},
|
|
477
|
-
`detailed-products-section-tag__${
|
|
514
|
+
`detailed-products-section-tag__${s + 1}`
|
|
478
515
|
);
|
|
479
516
|
}) });
|
|
480
|
-
},
|
|
481
|
-
var
|
|
482
|
-
const
|
|
517
|
+
}, fe = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: n == null ? void 0 : n.map((r, o) => {
|
|
518
|
+
var m, h, p;
|
|
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;
|
|
483
520
|
return /* @__PURE__ */ t("div", { children: [
|
|
484
|
-
/* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${
|
|
485
|
-
/* @__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 })
|
|
486
523
|
] }, `detailed-products-section-tag-dropdown__${o + 1}`);
|
|
487
|
-
}) }),
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
i,
|
|
493
|
-
c < (l == null ? void 0 : l.length) - 1 ? " · " : ""
|
|
494
|
-
] }));
|
|
495
|
-
}
|
|
496
|
-
return /* @__PURE__ */ t(P, { children: [
|
|
497
|
-
O && /* @__PURE__ */ e(C, { className: "tag", children: O }, "detailed-products-section-tag__condition"),
|
|
498
|
-
S && /* @__PURE__ */ e(C, { className: "tag", children: S }, "detailed-products-section-tag__quantity"),
|
|
499
|
-
z && /* @__PURE__ */ e(C, { className: "tag", children: z }, "detailed-products-section-tag__trade")
|
|
500
|
-
] });
|
|
501
|
-
}, G = u > 0 && N && T !== !0 && E !== !0 && u !== _;
|
|
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;
|
|
502
529
|
return (
|
|
503
530
|
// <LandingPageProductCardSkeleton />
|
|
504
531
|
/* @__PURE__ */ t(
|
|
505
|
-
|
|
532
|
+
ee,
|
|
506
533
|
{
|
|
507
|
-
ref:
|
|
534
|
+
ref: i,
|
|
508
535
|
className: "product-card",
|
|
509
|
-
|
|
536
|
+
"data-accessor": v == null ? void 0 : v.accessor,
|
|
537
|
+
name: v == null ? void 0 : v.name,
|
|
538
|
+
onClick: (r) => te(r, i),
|
|
510
539
|
children: [
|
|
511
540
|
/* @__PURE__ */ t(Te, { className: "product-image-wrapper", children: [
|
|
512
|
-
/* @__PURE__ */ e(
|
|
513
|
-
|
|
541
|
+
/* @__PURE__ */ e(le, {}),
|
|
542
|
+
H(z) ? z : /* @__PURE__ */ e(_e, { src: re })
|
|
514
543
|
] }),
|
|
515
|
-
/* @__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: _ }) }),
|
|
516
545
|
/* @__PURE__ */ t("div", { className: "wrapper-card-3", children: [
|
|
517
|
-
|
|
546
|
+
D && /* @__PURE__ */ e(
|
|
518
547
|
"div",
|
|
519
548
|
{
|
|
520
|
-
...
|
|
521
|
-
onMouseEnter:
|
|
522
|
-
onMouseLeave:
|
|
549
|
+
...O ? {} : {
|
|
550
|
+
onMouseEnter: me,
|
|
551
|
+
onMouseLeave: pe
|
|
523
552
|
},
|
|
524
|
-
children: /* @__PURE__ */ t(
|
|
525
|
-
/* @__PURE__ */ e(
|
|
526
|
-
/* @__PURE__ */ e(Pe, { style: { all: "unset" }, children: /* @__PURE__ */ e(Ee, { children:
|
|
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() }) })
|
|
527
556
|
] })
|
|
528
557
|
}
|
|
529
558
|
),
|
|
530
|
-
!
|
|
559
|
+
!D && ve()
|
|
531
560
|
] }),
|
|
532
561
|
/* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
|
|
533
|
-
/* @__PURE__ */ t("div", { className: `price-text ${
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
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
|
|
538
567
|
] }),
|
|
539
|
-
/* @__PURE__ */ e("div", { className: "location-text", children:
|
|
568
|
+
/* @__PURE__ */ e("div", { className: "location-text", children: oe })
|
|
540
569
|
] }),
|
|
541
|
-
|
|
570
|
+
ne === !0 && /* @__PURE__ */ e(Ve, { sponsoredText: se })
|
|
542
571
|
]
|
|
543
572
|
}
|
|
544
573
|
)
|
|
545
574
|
);
|
|
546
|
-
}),
|
|
575
|
+
}), De = B(({}, c) => /* @__PURE__ */ t(ee, { className: "product-card", children: [
|
|
547
576
|
/* @__PURE__ */ e("img", { className: "skeleton-img" }),
|
|
548
577
|
/* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
|
|
549
578
|
/* @__PURE__ */ e("div", { className: "skeleton-title" }),
|
|
@@ -553,27 +582,27 @@ const Q = $.div`
|
|
|
553
582
|
/* @__PURE__ */ e("div", { className: "skeleton-price" }),
|
|
554
583
|
/* @__PURE__ */ e("div", { className: "skeleton-sponsored" })
|
|
555
584
|
] })
|
|
556
|
-
] })),
|
|
557
|
-
|
|
585
|
+
] })), xe = ({ limit: c = 5, isLoading: f = !1, keyPrefix: l }) => /* @__PURE__ */ e($, { children: Array.from({ length: c }, (_, g) => /* @__PURE__ */ e(
|
|
586
|
+
De,
|
|
558
587
|
{
|
|
559
|
-
isLoading:
|
|
588
|
+
isLoading: f
|
|
560
589
|
},
|
|
561
|
-
`${
|
|
590
|
+
`${l}-skeleton-product-card-${g}`
|
|
562
591
|
)) }), er = ({
|
|
563
|
-
children:
|
|
564
|
-
fallbackComponent:
|
|
565
|
-
isLoading:
|
|
566
|
-
limit:
|
|
567
|
-
keyPrefix:
|
|
568
|
-
}) => /* @__PURE__ */ e(
|
|
569
|
-
|
|
592
|
+
children: c,
|
|
593
|
+
fallbackComponent: f = /* @__PURE__ */ e($, {}),
|
|
594
|
+
isLoading: l = !1,
|
|
595
|
+
limit: _,
|
|
596
|
+
keyPrefix: g
|
|
597
|
+
}) => /* @__PURE__ */ e(ke, { fallbackComponent: f, children: l === !0 ? /* @__PURE__ */ e(
|
|
598
|
+
xe,
|
|
570
599
|
{
|
|
571
|
-
isLoading:
|
|
572
|
-
limit:
|
|
573
|
-
keyPrefix:
|
|
600
|
+
isLoading: l,
|
|
601
|
+
limit: _,
|
|
602
|
+
keyPrefix: g
|
|
574
603
|
}
|
|
575
|
-
) :
|
|
604
|
+
) : c });
|
|
576
605
|
export {
|
|
577
|
-
|
|
606
|
+
Qe as D,
|
|
578
607
|
er as S
|
|
579
608
|
};
|