@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.
Files changed (70) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +8 -8
  2. package/dist/BlogCardsSponsoredSection.js +105 -89
  3. package/dist/BlogExploreSection.cjs +5 -5
  4. package/dist/BlogExploreSection.js +88 -84
  5. package/dist/BlogListSection.cjs +5 -5
  6. package/dist/BlogListSection.js +139 -126
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +37 -35
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +43 -41
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +9 -4
  13. package/dist/BlogsSectionDetailed.cjs +11 -11
  14. package/dist/BlogsSectionDetailed.js +122 -108
  15. package/dist/BlogsSectionLarge.cjs +4 -4
  16. package/dist/BlogsSectionLarge.js +43 -40
  17. package/dist/BlogsSectionSimple.cjs +8 -8
  18. package/dist/BlogsSectionSimple.js +100 -86
  19. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  20. package/dist/BlogsSectionSimpleCentered.js +81 -66
  21. package/dist/BlogsSectionWithFilters.cjs +11 -11
  22. package/dist/BlogsSectionWithFilters.js +108 -93
  23. package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
  24. package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
  25. package/dist/DetailedProductsInfinitiveSection.cjs +8 -3
  26. package/dist/DetailedProductsInfinitiveSection.js +63 -51
  27. package/dist/DetailedProductsSection.cjs +3 -3
  28. package/dist/DetailedProductsSection.js +76 -65
  29. package/dist/Dropdown.cjs +1 -1
  30. package/dist/Dropdown.js +2 -2
  31. package/dist/DropdownLookup.cjs +1 -1
  32. package/dist/DropdownLookup.js +1 -1
  33. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  34. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  35. package/dist/GiftCardsSection.cjs +1 -1
  36. package/dist/GiftCardsSection.js +1 -1
  37. package/dist/MultiSelectDropdown.cjs +1 -1
  38. package/dist/MultiSelectDropdown.js +1 -1
  39. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  40. package/dist/MultiSelectDropdownLookup.js +1 -1
  41. package/dist/ProductsWithBannerSection.cjs +10 -10
  42. package/dist/ProductsWithBannerSection.js +81 -59
  43. package/dist/SalesCampaignsSection.cjs +27 -27
  44. package/dist/SalesCampaignsSection.js +281 -272
  45. package/dist/ShopCardsSection.cjs +3 -3
  46. package/dist/ShopCardsSection.js +27 -25
  47. package/dist/SimpleCategoriesSection.cjs +1 -1
  48. package/dist/SimpleCategoriesSection.js +1 -1
  49. package/dist/SimpleProductsSection.cjs +3 -3
  50. package/dist/SimpleProductsSection.js +62 -51
  51. package/dist/UrgentSaleProductsSection.cjs +6 -6
  52. package/dist/UrgentSaleProductsSection.js +67 -56
  53. package/dist/index-1Dm1i6WK.js +52 -0
  54. package/dist/index-BGTtoLxz.cjs +1 -0
  55. package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
  56. package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
  60. package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
  61. package/dist/{style-DFPWLJBr.js → style-BLuyU97E.js} +4 -0
  62. package/dist/{style-CyHewQxg.cjs → style-lSjkOR95.cjs} +6 -2
  63. package/dist/{suspense-product-card-detailed-YJVsf2-a.js → suspense-product-card-detailed-BZtObEfA.js} +191 -162
  64. package/dist/suspense-product-card-detailed-D-pjVe22.cjs +300 -0
  65. package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
  66. package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
  67. package/package.json +1 -1
  68. package/dist/index-Cm0f72Po.cjs +0 -1
  69. package/dist/index-DGp7FHms.js +0 -42
  70. package/dist/suspense-product-card-detailed-mCJwteOy.cjs +0 -265
@@ -1,15 +1,15 @@
1
- import { jsxs as t, jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { forwardRef as M, useState as L, useRef as q, useEffect as we, cloneElement as A, Suspense as be } from "react";
3
- import { p as ke, t as Y, o as k, l as K, q as H, G as Z, k as ye } from "./utils-BdsZgOUE.js";
4
- import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
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 C from "./Badge.js";
7
- import Ne from "./Popover.js";
8
- import Ce from "./PopoverTrigger.js";
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 J } from "./consts-BuFChS64.js";
12
- const Q = $.div`
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
- ${ke(2)}
67
+ ${ye(2)}
76
68
  }
77
69
 
78
70
  & .price-text {
79
71
  font-size: 1rem;
80
72
  font-weight: 600;
81
- ${Y()}
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
- ${Y()}
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${J + "px"}) {
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
- flex-wrap: wrap;
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 = $.div`
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: ${J + "px"}) {
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 = $.div`
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
- `, Ve = $.div`
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
- `, Oe = M(({ sponsoredText: m = "Sponsored" }, v) => /* @__PURE__ */ t(Ve, { ref: v, className: "sponsored-line", children: [
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: m })
279
- ] })), Se = "Vehicles_Cars", ze = "Vehicles_Motorcycles", Be = "Vehicles_Trucks", Me = "Vehicles_AgriculturalMachines_Tractors", We = "Vehicles_ConstructionMachines", Fe = "Vehicles_Bus", De = "Vehicles_Campers", Ie = "RealEstates_", a = {
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
- }, xe = M((m, v) => {
415
+ }, Qe = B((c, f) => {
381
416
  const {
382
- uuid: p,
383
- name: y,
384
- price: u = 0,
385
- sellingPrice: _,
417
+ uuid: l,
418
+ name: _,
419
+ price: g = 0,
420
+ sellingPrice: C,
386
421
  currency: N,
387
- isNegotiable: T,
388
- isFree: E,
389
- imageUrl: x,
390
- location: ee,
391
- sponsored: re,
392
- imageComponent: W,
393
- onSelectCard: oe = () => {
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: ne = "Free",
396
- negotiableText: te = "Negotiable",
430
+ freeText: ae = "Free",
431
+ negotiableText: ie = "Negotiable",
397
432
  tags: n = [],
398
433
  categoryCode: V,
399
- condition: O,
400
- quantity: S,
401
- trade: z,
402
- sponsoredText: ie,
403
- onBookmark: F = () => {
434
+ condition: M,
435
+ quantity: F,
436
+ trade: W,
437
+ sponsoredText: se,
438
+ onBookmark: I = () => {
404
439
  },
405
- bookmarkComponent: w,
406
- bookmarked: D,
407
- bookmarkLists: ae
408
- } = m, B = $e(), se = () => {
409
- var c;
410
- if (!K(w)) return /* @__PURE__ */ e(P, {});
411
- const r = w, o = (c = w == null ? void 0 : w.props) == null ? void 0 : c.children, i = A(o, {
412
- key: `bookmark_pr__${D}`,
413
- bookmarked: D,
414
- productUuid: p,
415
- onAddToBookmark: () => F(!0, p),
416
- onRemoveFromBookmark: () => F(!1, p),
417
- bookmarkedUuidList: ae
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 A(r, void 0, i);
420
- }, I = [
421
- Se,
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
- De,
428
- Ie
462
+ We,
463
+ Ie,
464
+ je
429
465
  ].some(
430
466
  (r) => V == null ? void 0 : V.includes(r)
431
- ), [ce, j] = L(!1), le = () => {
432
- j(!0);
433
- }, de = () => {
434
- j(!1);
435
- }, s = q(null), h = q([]), [me, pe] = L(n == null ? void 0 : n.length), ge = () => {
436
- var c, l, b;
437
- if (!(s != null && s.current) || ((c = h == null ? void 0 : h.current) == null ? void 0 : c.length) === 0) return;
438
- const r = (l = s == null ? void 0 : s.current) == null ? void 0 : l.offsetWidth;
439
- let o = 0, i = 0;
440
- for (let d = 0; d < (n == null ? void 0 : n.length); d++) {
441
- const f = ((b = h == null ? void 0 : h.current[d]) == null ? void 0 : b.offsetWidth) || 0, g = o + f + 4;
442
- if (g <= r)
443
- o += g, i++;
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
- pe(i);
487
+ G(s);
448
488
  };
449
- we(() => {
450
- const r = s == null ? void 0 : s.current;
489
+ be(() => {
490
+ const r = i == null ? void 0 : i.current;
451
491
  if (!r) return;
452
492
  const o = new ResizeObserver(() => {
453
- ge();
493
+ ue();
454
494
  });
455
495
  return o.observe(r), () => {
456
496
  o.disconnect();
457
497
  };
458
- }, [n]);
459
- const ue = () => {
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, me)) == null ? void 0 : r.map((o, i) => {
462
- var f, g, R, U, X;
463
- const c = ((f = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : f.icon) ?? ((g = a == null ? void 0 : a.default) == null ? void 0 : g.icon) ?? "", l = ((R = o == null ? void 0 : o.measurementUnit) == null ? void 0 : R.symbol) ?? ((U = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : U.measure) ?? "", d = [(o == null ? void 0 : o.value) ?? ((X = o == null ? void 0 : o.multiOptions) == null ? void 0 : X[0]) ?? "", l].filter(Boolean).join(" ");
464
- return B ? /* @__PURE__ */ t("div", { className: "tag-mobile", children: [
465
- d,
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: (ve) => h.current[i] = ve,
507
+ ref: (we) => u.current[s] = we,
471
508
  className: "tag",
472
509
  children: [
473
- /* @__PURE__ */ e("i", { className: c }),
474
- d
510
+ /* @__PURE__ */ e("i", { className: d }),
511
+ m
475
512
  ]
476
513
  },
477
- `detailed-products-section-tag__${i + 1}`
514
+ `detailed-products-section-tag__${s + 1}`
478
515
  );
479
516
  }) });
480
- }, he = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: n == null ? void 0 : n.map((r, o) => {
481
- var d, f, g;
482
- const i = ((d = r == null ? void 0 : r.measurementUnit) == null ? void 0 : d.symbol) ?? ((f = a == null ? void 0 : a[r == null ? void 0 : r.code]) == null ? void 0 : f.measure) ?? "", l = [(r == null ? void 0 : r.value) ?? ((g = r == null ? void 0 : r.multiOptions) == null ? void 0 : g[0]) ?? "", i].filter(Boolean).join(" "), b = r == null ? void 0 : r.name;
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: `${b}: ` }),
485
- /* @__PURE__ */ e("span", { className: "tags-popover__value", children: l })
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
- }) }), fe = () => {
488
- var r;
489
- if (B) {
490
- const o = [O, S, z];
491
- return (r = o == null ? void 0 : o.filter((i) => ye(i))) == null ? void 0 : r.map((i, c, l) => /* @__PURE__ */ t("div", { className: "tag-mobile", children: [
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
- Q,
532
+ ee,
506
533
  {
507
- ref: s,
534
+ ref: i,
508
535
  className: "product-card",
509
- onClick: oe,
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(se, {}),
513
- K(W) ? W : /* @__PURE__ */ e(_e, { src: x })
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: y }) }),
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
- I && /* @__PURE__ */ e(
546
+ D && /* @__PURE__ */ e(
518
547
  "div",
519
548
  {
520
- ...B ? {} : {
521
- onMouseEnter: le,
522
- onMouseLeave: de
549
+ ...O ? {} : {
550
+ onMouseEnter: me,
551
+ onMouseLeave: pe
523
552
  },
524
- children: /* @__PURE__ */ t(Ne, { placement: "bottom", open: ce, children: [
525
- /* @__PURE__ */ e(Ce, { children: ue() }),
526
- /* @__PURE__ */ e(Pe, { style: { all: "unset" }, children: /* @__PURE__ */ e(Ee, { children: he() }) })
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
- !I && fe()
559
+ !D && ve()
531
560
  ] }),
532
561
  /* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
533
- /* @__PURE__ */ t("div", { className: `price-text ${G ? "new-price" : ""}`, children: [
534
- _ > 0 && N && T !== !0 && E !== !0 && /* @__PURE__ */ e("div", { children: `${H(_)} ${Z(N)}` }),
535
- G && /* @__PURE__ */ e("div", { className: `${_ > 0 ? "full-price" : ""}`, children: `${H(u)} ${Z(N)}` }),
536
- T && te,
537
- E && ne
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: ee })
568
+ /* @__PURE__ */ e("div", { className: "location-text", children: oe })
540
569
  ] }),
541
- re === !0 && /* @__PURE__ */ e(Oe, { sponsoredText: ie })
570
+ ne === !0 && /* @__PURE__ */ e(Ve, { sponsoredText: se })
542
571
  ]
543
572
  }
544
573
  )
545
574
  );
546
- }), je = M(({}, m) => /* @__PURE__ */ t(Q, { className: "product-card", children: [
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
- ] })), Ge = ({ limit: m = 5, isLoading: v = !1, keyPrefix: p }) => /* @__PURE__ */ e(P, { children: Array.from({ length: m }, (y, u) => /* @__PURE__ */ e(
557
- je,
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: v
588
+ isLoading: f
560
589
  },
561
- `${p}-skeleton-product-card-${u}`
590
+ `${l}-skeleton-product-card-${g}`
562
591
  )) }), er = ({
563
- children: m,
564
- fallbackComponent: v = /* @__PURE__ */ e(P, {}),
565
- isLoading: p = !1,
566
- limit: y,
567
- keyPrefix: u
568
- }) => /* @__PURE__ */ e(be, { fallbackComponent: v, children: p === !0 ? /* @__PURE__ */ e(
569
- Ge,
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: p,
572
- limit: y,
573
- keyPrefix: u
600
+ isLoading: l,
601
+ limit: _,
602
+ keyPrefix: g
574
603
  }
575
- ) : m });
604
+ ) : c });
576
605
  export {
577
- xe as D,
606
+ Qe as D,
578
607
  er as S
579
608
  };