@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.
Files changed (63) 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 +3 -3
  26. package/dist/DetailedProductsInfinitiveSection.js +29 -27
  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/MultiSelectDropdown.cjs +1 -1
  36. package/dist/MultiSelectDropdown.js +1 -1
  37. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  38. package/dist/MultiSelectDropdownLookup.js +1 -1
  39. package/dist/ProductsWithBannerSection.cjs +10 -10
  40. package/dist/ProductsWithBannerSection.js +81 -59
  41. package/dist/SalesCampaignsSection.cjs +27 -27
  42. package/dist/SalesCampaignsSection.js +245 -239
  43. package/dist/ShopCardsSection.cjs +3 -3
  44. package/dist/ShopCardsSection.js +27 -25
  45. package/dist/SimpleProductsSection.cjs +3 -3
  46. package/dist/SimpleProductsSection.js +62 -51
  47. package/dist/UrgentSaleProductsSection.cjs +6 -6
  48. package/dist/UrgentSaleProductsSection.js +67 -56
  49. package/dist/index-1Dm1i6WK.js +52 -0
  50. package/dist/index-BGTtoLxz.cjs +1 -0
  51. package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
  52. package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.js +1 -1
  55. package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
  56. package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
  57. package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
  58. package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
  59. package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
  60. package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
  61. package/package.json +1 -1
  62. package/dist/index-Cm0f72Po.cjs +0 -1
  63. package/dist/index-DGp7FHms.js +0 -42
@@ -1,15 +1,15 @@
1
- import { jsxs as t, jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { forwardRef as O, 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 } from "./utils-BdsZgOUE.js";
4
- import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { P as ye } from "./index-CF3HhgvN.js";
6
- import N from "./Badge.js";
7
- import _e from "./Popover.js";
8
- import Ce from "./PopoverTrigger.js";
9
- import Ne from "./PopoverContent.js";
10
- import { u as Pe } from "./useDetectMobile-Bkvj0VMa.js";
11
- import { M as J } from "./consts-BuFChS64.js";
12
- const Q = $.div`
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
- ${ke(2)}
67
+ ${ye(2)}
68
68
  }
69
69
 
70
70
  & .price-text {
71
71
  font-size: 1rem;
72
72
  font-weight: 600;
73
- ${Y()}
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
- ${Y()}
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${k("-90deg")};
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: ${J + "px"}) {
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
- `, $e = $.div`
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: ${J + "px"}) {
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
- `, Te = $.div`
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
- `, Ee = $.div`
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
- `, Se = O(({ sponsoredText: c = "Sponsored" }, f) => /* @__PURE__ */ t(Ee, { ref: f, className: "sponsored-line", children: [
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
- ] })), Ve = "Vehicles_Cars", Oe = "Vehicles_Motorcycles", Be = "Vehicles_Trucks", ze = "Vehicles_AgriculturalMachines_Tractors", Me = "Vehicles_ConstructionMachines", Fe = "Vehicles_Bus", We = "Vehicles_Campers", Ie = "RealEstates_", a = {
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
- }, Je = O((c, f) => {
415
+ }, Qe = B((c, f) => {
416
416
  const {
417
417
  uuid: l,
418
- name: y,
418
+ name: _,
419
419
  price: g = 0,
420
- sellingPrice: _,
421
- currency: C,
422
- isNegotiable: T,
423
- isFree: E,
424
- imageUrl: ee,
425
- location: re,
426
- sponsored: oe,
427
- imageComponent: B,
428
- onSelectCard: ne = () => {
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: te = "Free",
431
- negotiableText: ae = "Negotiable",
430
+ freeText: ae = "Free",
431
+ negotiableText: ie = "Negotiable",
432
432
  tags: n = [],
433
- categoryCode: S,
434
- condition: z,
435
- quantity: M,
436
- trade: F,
437
- sponsoredText: ie,
438
- onBookmark: W = () => {
433
+ categoryCode: V,
434
+ condition: M,
435
+ quantity: F,
436
+ trade: W,
437
+ sponsoredText: se,
438
+ onBookmark: I = () => {
439
439
  },
440
- bookmarkComponent: w,
441
- bookmarked: I,
442
- bookmarkLists: se
443
- } = c, V = Pe(), ce = () => {
440
+ bookmarkComponent: b,
441
+ bookmarked: j,
442
+ bookmarkLists: ce,
443
+ metadata: v
444
+ } = c, O = $e(), le = () => {
444
445
  var d;
445
- if (!K(w)) return /* @__PURE__ */ e(P, {});
446
- const r = w, o = (d = w == null ? void 0 : w.props) == null ? void 0 : d.children, s = A(o, {
447
- key: `bookmark_pr__${I}`,
448
- bookmarked: I,
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: () => W(!0, l),
451
- onRemoveFromBookmark: () => W(!1, l),
452
- bookmarkedUuidList: se
451
+ onAddToBookmark: () => I(!0, l),
452
+ onRemoveFromBookmark: () => I(!1, l),
453
+ bookmarkedUuidList: ce
453
454
  });
454
- return A(r, void 0, s);
455
- }, j = [
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) => S == null ? void 0 : S.includes(r)
466
- ), [le, D] = L(!1), de = () => {
467
- D(!0);
468
- }, me = () => {
469
- D(!1);
470
- }, i = q(null), u = q([]), [pe, x] = L(n == null ? void 0 : n.length), ge = () => {
471
- var d, v, b;
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 (V) {
474
- x(n == null ? void 0 : n.length);
474
+ if (O) {
475
+ G(n == null ? void 0 : n.length);
475
476
  return;
476
477
  }
477
- const r = (v = i == null ? void 0 : i.current) == null ? void 0 : v.offsetWidth;
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 = ((b = u == null ? void 0 : u.current[m]) == null ? void 0 : b.offsetWidth) || 0, p = o + h + 4;
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
- x(s);
487
+ G(s);
487
488
  };
488
- we(() => {
489
+ be(() => {
489
490
  const r = i == null ? void 0 : i.current;
490
491
  if (!r) return;
491
492
  const o = new ResizeObserver(() => {
492
- ge();
493
+ ue();
493
494
  });
494
495
  return o.observe(r), () => {
495
496
  o.disconnect();
496
497
  };
497
- }, [n, V]);
498
- const ue = () => {
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, pe)) == null ? void 0 : r.map((o, s) => {
501
- var h, p, R, U, X;
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) ?? "", v = ((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) ?? "", m = [(o == null ? void 0 : o.value) ?? ((X = o == null ? void 0 : o.multiOptions) == null ? void 0 : X[0]) ?? "", v].filter(Boolean).join(" ");
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
- N,
505
+ P,
505
506
  {
506
- ref: (ve) => u.current[s] = ve,
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
- }, he = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: n == null ? void 0 : n.map((r, o) => {
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) ?? "", v = [(r == null ? void 0 : r.value) ?? ((p = r == null ? void 0 : r.multiOptions) == null ? void 0 : p[0]) ?? "", s].filter(Boolean).join(" "), b = r == null ? void 0 : r.name;
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: `${b}: ` }),
521
- /* @__PURE__ */ e("span", { className: "tags-popover__value", children: v })
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
- }) }), fe = () => /* @__PURE__ */ t(P, { children: [
524
- z && /* @__PURE__ */ e(N, { className: "tag", children: z }, "detailed-products-section-tag__condition"),
525
- M && /* @__PURE__ */ e(N, { className: "tag", children: M }, "detailed-products-section-tag__quantity"),
526
- F && /* @__PURE__ */ e(N, { className: "tag", children: F }, "detailed-products-section-tag__trade")
527
- ] }), G = g > 0 && C && T !== !0 && E !== !0 && g !== _;
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
- Q,
532
+ ee,
532
533
  {
533
534
  ref: i,
534
535
  className: "product-card",
535
- onClick: ne,
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($e, { className: "product-image-wrapper", children: [
538
- /* @__PURE__ */ e(ce, {}),
539
- K(B) ? B : /* @__PURE__ */ e(ye, { src: ee })
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: y }) }),
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
- j && /* @__PURE__ */ e(
546
+ D && /* @__PURE__ */ e(
544
547
  "div",
545
548
  {
546
- ...V ? {} : {
547
- onMouseEnter: de,
548
- onMouseLeave: me
549
+ ...O ? {} : {
550
+ onMouseEnter: me,
551
+ onMouseLeave: pe
549
552
  },
550
- children: /* @__PURE__ */ t(_e, { placement: "bottom", open: le, children: [
551
- /* @__PURE__ */ e(Ce, { children: ue() }),
552
- /* @__PURE__ */ e(Ne, { style: { all: "unset" }, children: /* @__PURE__ */ e(Te, { 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() }) })
553
556
  ] })
554
557
  }
555
558
  ),
556
- !j && fe()
559
+ !D && ve()
557
560
  ] }),
558
561
  /* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
559
- /* @__PURE__ */ t("div", { className: `price-text ${G ? "new-price" : ""}`, children: [
560
- _ > 0 && C && T !== !0 && E !== !0 && /* @__PURE__ */ e("div", { children: `${H(_)} ${Z(C)}` }),
561
- G && /* @__PURE__ */ e("div", { className: `${_ > 0 ? "full-price" : ""}`, children: `${H(g)} ${Z(C)}` }),
562
- T && ae,
563
- E && te
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: re })
568
+ /* @__PURE__ */ e("div", { className: "location-text", children: oe })
566
569
  ] }),
567
- oe === !0 && /* @__PURE__ */ e(Se, { sponsoredText: ie })
570
+ ne === !0 && /* @__PURE__ */ e(Ve, { sponsoredText: se })
568
571
  ]
569
572
  }
570
573
  )
571
574
  );
572
- }), je = O(({}, c) => /* @__PURE__ */ t(Q, { className: "product-card", children: [
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
- ] })), De = ({ limit: c = 5, isLoading: f = !1, keyPrefix: l }) => /* @__PURE__ */ e(P, { children: Array.from({ length: c }, (y, g) => /* @__PURE__ */ e(
583
- je,
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
- )) }), Qe = ({
591
+ )) }), er = ({
589
592
  children: c,
590
- fallbackComponent: f = /* @__PURE__ */ e(P, {}),
593
+ fallbackComponent: f = /* @__PURE__ */ e($, {}),
591
594
  isLoading: l = !1,
592
- limit: y,
595
+ limit: _,
593
596
  keyPrefix: g
594
- }) => /* @__PURE__ */ e(be, { fallbackComponent: f, children: l === !0 ? /* @__PURE__ */ e(
595
- De,
597
+ }) => /* @__PURE__ */ e(ke, { fallbackComponent: f, children: l === !0 ? /* @__PURE__ */ e(
598
+ xe,
596
599
  {
597
600
  isLoading: l,
598
- limit: y,
601
+ limit: _,
599
602
  keyPrefix: g
600
603
  }
601
604
  ) : c });
602
605
  export {
603
- Je as D,
604
- Qe as S
606
+ Qe as D,
607
+ er as S
605
608
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),t=require("./utils-Dl9xPH4c.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),le=require("./index-BueKsXT8.cjs"),_=require("./Badge.cjs"),de=require("./Popover.cjs"),me=require("./PopoverTrigger.cjs"),pe=require("./PopoverContent.cjs"),ue=require("./useDetectMobile-zkbzoOGV.cjs"),G=require("./consts-goSZX3xP.cjs"),A=C.styled.div`
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: ${G.MOBILE_SIZE_PX+"px"}) {
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
- `,ge=C.styled.div`
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: ${G.MOBILE_SIZE_PX+"px"}) {
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
- `,he=C.styled.div`
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
- `,fe=C.styled.div`
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
- `,ve=i.forwardRef(({sponsoredText:l="Sponsored"},v)=>e.jsxs(fe,{ref:v,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:l})]})),we="Vehicles_Cars",be="Vehicles_Motorcycles",ye="Vehicles_Trucks",ke="Vehicles_AgriculturalMachines_Tractors",je="Vehicles_ConstructionMachines",xe="Vehicles_Bus",_e="Vehicles_Campers",Ce="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:""}},Ne=i.forwardRef((l,v)=>{const{uuid:d,name:k,price:g=0,sellingPrice:j,currency:x,isNegotiable:N,isFree:P,imageUrl:X,location:L,sponsored:U,imageComponent:S,onSelectCard:Y=()=>{},freeText:K="Free",negotiableText:Z="Negotiable",tags:n=[],categoryCode:$,condition:T,quantity:O,trade:V,sponsoredText:H,onBookmark:B=()=>{},bookmarkComponent:b,bookmarked:F,bookmarkLists:J}=l,E=ue.useDetectMobile(),Q=()=>{var m;if(!t.isDefined(b))return e.jsx(e.Fragment,{});const r=b,o=(m=b==null?void 0:b.props)==null?void 0:m.children,c=i.cloneElement(o,{key:`bookmark_pr__${F}`,bookmarked:F,productUuid:d,onAddToBookmark:()=>B(!0,d),onRemoveFromBookmark:()=>B(!1,d),bookmarkedUuidList:J});return i.cloneElement(r,void 0,c)},M=[we,be,ye,ke,je,xe,_e,Ce].some(r=>$==null?void 0:$.includes(r)),[ee,q]=i.useState(!1),re=()=>{q(!0)},oe=()=>{q(!1)},a=i.useRef(null),h=i.useRef([]),[ne,z]=i.useState(n==null?void 0:n.length),te=()=>{var m,w,y;if(!(a!=null&&a.current)||((m=h==null?void 0:h.current)==null?void 0:m.length)===0)return;if(E){z(n==null?void 0:n.length);return}const r=(w=a==null?void 0:a.current)==null?void 0:w.offsetWidth;let o=0,c=0;for(let p=0;p<(n==null?void 0:n.length);p++){const f=((y=h==null?void 0:h.current[p])==null?void 0:y.offsetWidth)||0,u=o+f+4;if(u<=r)o+=u,c++;else break}z(c)};i.useEffect(()=>{const r=a==null?void 0:a.current;if(!r)return;const o=new ResizeObserver(()=>{te()});return o.observe(r),()=>{o.disconnect()}},[n,E]);const se=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=n==null?void 0:n.slice(0,ne))==null?void 0:r.map((o,c)=>{var f,u,W,D,R;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)??"",w=((W=o==null?void 0:o.measurementUnit)==null?void 0:W.symbol)??((D=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:D.measure)??"",p=[(o==null?void 0:o.value)??((R=o==null?void 0:o.multiOptions)==null?void 0:R[0])??"",w].filter(Boolean).join(" ");return e.jsxs(_,{ref:ce=>h.current[c]=ce,className:"tag",children:[e.jsx("i",{className:m}),p]},`detailed-products-section-tag__${c+1}`)})})},ie=()=>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)??"",w=[(r==null?void 0:r.value)??((u=r==null?void 0:r.multiOptions)==null?void 0:u[0])??"",c].filter(Boolean).join(" "),y=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${y}: `}),e.jsx("span",{className:"tags-popover__value",children:w})]},`detailed-products-section-tag-dropdown__${o+1}`)})}),ae=()=>e.jsxs(e.Fragment,{children:[T&&e.jsx(_,{className:"tag",children:T},"detailed-products-section-tag__condition"),O&&e.jsx(_,{className:"tag",children:O},"detailed-products-section-tag__quantity"),V&&e.jsx(_,{className:"tag",children:V},"detailed-products-section-tag__trade")]}),I=g>0&&x&&N!==!0&&P!==!0&&g!==j;return e.jsxs(A,{ref:a,className:"product-card",onClick:Y,children:[e.jsxs(ge,{className:"product-image-wrapper",children:[e.jsx(Q,{}),t.isDefined(S)?S:e.jsx(le.ProductImageWrapper,{src:X})]}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:k})}),e.jsxs("div",{className:"wrapper-card-3",children:[M&&e.jsx("div",{...E?{}:{onMouseEnter:re,onMouseLeave:oe},children:e.jsxs(de,{placement:"bottom",open:ee,children:[e.jsx(me,{children:se()}),e.jsx(pe,{style:{all:"unset"},children:e.jsx(he,{children:ie()})})]})}),!M&&ae()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${I?"new-price":""}`,children:[j>0&&x&&N!==!0&&P!==!0&&e.jsx("div",{children:`${t.formatPrice(j)} ${t.GetCurrencySymbol(x)}`}),I&&e.jsx("div",{className:`${j>0?"full-price":""}`,children:`${t.formatPrice(g)} ${t.GetCurrencySymbol(x)}`}),N&&Z,P&&K]}),e.jsx("div",{className:"location-text",children:L})]}),U===!0&&e.jsx(ve,{sponsoredText:H})]})}),Pe=i.forwardRef(({},l)=>e.jsxs(A,{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"})]})]})),$e=({limit:l=5,isLoading:v=!1,keyPrefix:d})=>e.jsx(e.Fragment,{children:Array.from({length:l},(k,g)=>e.jsx(Pe,{isLoading:v},`${d}-skeleton-product-card-${g}`))}),Ee=({children:l,fallbackComponent:v=e.jsx(e.Fragment,{}),isLoading:d=!1,limit:k,keyPrefix:g})=>e.jsx(i.Suspense,{fallbackComponent:v,children:d===!0?e.jsx($e,{isLoading:d,limit:k,keyPrefix:g}):l});exports.DetailedProductCard=Ne;exports.SuspenseDetailedProductCard=Ee;
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;
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),u=require("react"),c=require("./index-CLoINIGC.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;
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;
@@ -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-BGY3PSA-.js";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.157",
3
+ "version": "4.0.160",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -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;
@@ -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
- };