@lanaco/lnc-react-ui 4.0.39 → 4.0.40

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 (62) hide show
  1. package/dist/BannerSectionBasic.cjs +9 -9
  2. package/dist/BannerSectionBasic.js +20 -20
  3. package/dist/BannerSectionCarousel.cjs +13 -5
  4. package/dist/BannerSectionCarousel.js +29 -21
  5. package/dist/BannerSectionGrid.cjs +1 -1
  6. package/dist/BannerSectionGrid.js +6 -6
  7. package/dist/BannerSectionSimple.cjs +4 -4
  8. package/dist/BannerSectionSimple.js +41 -38
  9. package/dist/BannerSectionWithList.cjs +4 -4
  10. package/dist/BannerSectionWithList.js +17 -17
  11. package/dist/BannerSectionWithListImage.cjs +5 -5
  12. package/dist/BannerSectionWithListImage.js +41 -38
  13. package/dist/BlogsSectionDetailed.cjs +10 -10
  14. package/dist/BlogsSectionDetailed.js +32 -33
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +2 -2
  18. package/dist/BlogsSectionSimple.js +20 -20
  19. package/dist/BlogsSectionSimpleCentered.cjs +6 -6
  20. package/dist/BlogsSectionSimpleCentered.js +9 -9
  21. package/dist/BlogsSectionWithFilters.cjs +10 -10
  22. package/dist/BlogsSectionWithFilters.js +65 -64
  23. package/dist/BrandHitsSection.cjs +12 -7
  24. package/dist/BrandHitsSection.js +10 -5
  25. package/dist/CalorieCalculatorSection.cjs +7 -8
  26. package/dist/CalorieCalculatorSection.js +31 -32
  27. package/dist/CustomLoanMapSection.cjs +2 -2
  28. package/dist/CustomLoanMapSection.js +13 -13
  29. package/dist/DetailedProductsSection.cjs +1 -1
  30. package/dist/DetailedProductsSection.js +1 -1
  31. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  32. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
  33. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
  34. package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
  35. package/dist/GeneralWithTagsCardsSection.cjs +18 -6
  36. package/dist/GeneralWithTagsCardsSection.js +44 -31
  37. package/dist/GiftCardsSection.cjs +9 -5
  38. package/dist/GiftCardsSection.js +21 -17
  39. package/dist/LocationSearchSection.cjs +1 -1
  40. package/dist/LocationSearchSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +21 -1
  42. package/dist/MasonryGeneralCardsSection.js +20 -0
  43. package/dist/OverlayGeneralCardsSection.cjs +52 -96
  44. package/dist/OverlayGeneralCardsSection.js +116 -165
  45. package/dist/ProductsWithBannerSection.cjs +5 -5
  46. package/dist/ProductsWithBannerSection.js +26 -26
  47. package/dist/SalesCampaignsSection.cjs +17 -17
  48. package/dist/SalesCampaignsSection.js +81 -81
  49. package/dist/ShopCardsSection.cjs +19 -9
  50. package/dist/ShopCardsSection.js +54 -40
  51. package/dist/SimpleCategoriesSection.cjs +1 -1
  52. package/dist/SimpleCategoriesSection.js +1 -1
  53. package/dist/SimpleProductsSection.cjs +1 -1
  54. package/dist/SimpleProductsSection.js +1 -1
  55. package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
  56. package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
  57. package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
  58. package/dist/index-Dn5tPLgP.cjs +95 -0
  59. package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
  60. package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
  61. package/package.json +1 -1
  62. package/dist/index-Q_i-aqsF.cjs +0 -95
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as p, Fragment as G } from "react/jsx-runtime";
2
- import { createElement as ae, useState as z, useEffect as j, forwardRef as V, useRef as Q, useImperativeHandle as ne, Suspense as se, memo as le, useMemo as ce } from "react";
3
- import { n as m } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
- import { a as E, l as X, m as ee } from "./utils-DtRLzzTZ.js";
2
+ import { createElement as ae, useState as P, useEffect as j, forwardRef as V, useRef as Q, useImperativeHandle as ne, Suspense as se, memo as le, useMemo as ce } from "react";
3
+ import { n as f } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
+ import { a as z, l as X, m as ee } from "./utils-DtRLzzTZ.js";
5
5
  import { M as T } from "./consts-C1uHV4xc.js";
6
6
  import { m as de } from "./motion-Ckekul_K.js";
7
7
  import { P as i } from "./index-S5Cd7WrG.js";
@@ -9,16 +9,16 @@ import ge from "./Icon.js";
9
9
  import he from "./Badge.js";
10
10
  import { u as M } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
11
  import { u as re } from "./useDetectMobile-BC6EGaBc.js";
12
- import me from "./FlexBox.js";
12
+ import fe from "./FlexBox.js";
13
13
  import { I as Y } from "./index-wy-PXQR9.js";
14
14
  import U from "./IconButton.js";
15
- const fe = m.div`
15
+ const me = f.div`
16
16
  cursor: pointer;
17
17
  display: flex;
18
18
  gap: 1rem;
19
19
  padding: 1.25rem;
20
- border-radius: ${(e) => E(e.theme, "slightCurve")};
21
- border: 1px solid var(--gray-95080, #14161acc);
20
+ border-radius: 20px;
21
+ border: 1px solid var(--gray-95008, #14161a14);
22
22
 
23
23
  @media (max-width: ${T + "px"}) {
24
24
  flex-direction: column;
@@ -27,8 +27,8 @@ const fe = m.div`
27
27
  border: none;
28
28
  border-radius: 0;
29
29
  }
30
- `, pe = m.div`
31
- border-radius: ${(e) => E(e.theme, "edged")};
30
+ `, pe = f.div`
31
+ border-radius: ${(e) => z(e.theme, "edged")};
32
32
  height: 15rem;
33
33
  width: 15rem;
34
34
  min-width: 15rem;
@@ -56,7 +56,7 @@ const fe = m.div`
56
56
  max-width: 100dvh;
57
57
  height: 23.438rem;
58
58
  }
59
- `, ue = m.div`
59
+ `, ue = f.div`
60
60
  flex: 1;
61
61
  display: flex;
62
62
  flex-direction: column;
@@ -137,7 +137,7 @@ const fe = m.div`
137
137
  ${o ? "" : "flex-wrap: nowrap;"}
138
138
  ${e ? "align-items: center;" : ""}
139
139
  ${l ? "justify-content: center;" : ""}
140
- `, be = m(de.div)`
140
+ `, be = f(de.div)`
141
141
  text-decoration: none;
142
142
  ${(e) => e.hasPermission === !0 && "cursor: pointer"};
143
143
 
@@ -161,7 +161,7 @@ const fe = m.div`
161
161
  font-weight: 500;
162
162
  font-size: 0.875rem;
163
163
  line-height: 1.25rem;
164
- border-radius: ${(e) => E(e.theme, "slight")};
164
+ border-radius: ${(e) => z(e.theme, "slight")};
165
165
  transition: all 0.25s ease;
166
166
 
167
167
  & .logo-wrapper {
@@ -211,15 +211,15 @@ const fe = m.div`
211
211
  background-color: var(--gray-95080, #14161acc);
212
212
  color: var(--gray-600, #676e79);
213
213
  }
214
- `, ve = m.div`
214
+ `, xe = f.div`
215
215
  position: absolute;
216
216
  top: 0.5rem;
217
217
  ${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
218
218
  display: flex;
219
219
  gap: 0.25rem;
220
- `, xe = (e) => `var(--${e}-700)`, ye = m.div`
221
- border-radius: ${(e) => E(e.theme, e.borderRadius || "slight")};
222
- background-color: ${(e) => xe(e == null ? void 0 : e.color)};
220
+ `, ve = (e) => `var(--${e}-700)`, ye = f.div`
221
+ border-radius: ${(e) => z(e.theme, e.borderRadius || "slight")};
222
+ background-color: ${(e) => ve(e == null ? void 0 : e.color)};
223
223
  color: white;
224
224
  height: 1.5rem;
225
225
  min-width: 1.5rem;
@@ -247,11 +247,11 @@ const fe = m.div`
247
247
  disabled: s,
248
248
  onSelect: d = () => {
249
249
  },
250
- isActive: x,
251
- className: v,
250
+ isActive: v,
251
+ className: x,
252
252
  // new
253
- themeData: f
254
- } = e, k = {
253
+ themeData: m
254
+ } = e, C = {
255
255
  theme: M(),
256
256
  color: w,
257
257
  size: b,
@@ -264,13 +264,13 @@ const fe = m.div`
264
264
  onClick: (r) => {
265
265
  r.stopPropagation(), l === !0 && (d == null || d());
266
266
  },
267
- ...k,
267
+ ...C,
268
268
  key: n,
269
269
  animate: {
270
270
  y: 0,
271
271
  opacity: 1
272
272
  },
273
- className: `profile-item ${v}`,
273
+ className: `profile-item ${x}`,
274
274
  exit: {
275
275
  opacity: 0
276
276
  },
@@ -279,8 +279,8 @@ const fe = m.div`
279
279
  y: -10,
280
280
  opacity: 0
281
281
  },
282
- isActive: x,
283
- themeColor: (f == null ? void 0 : f.code) || "transparent"
282
+ isActive: v,
283
+ themeColor: (m == null ? void 0 : m.code) || "transparent"
284
284
  },
285
285
  /* @__PURE__ */ t("div", { className: "logo-wrapper", children: u }),
286
286
  /* @__PURE__ */ t("div", { className: "name", children: n }),
@@ -325,12 +325,12 @@ const J = (e, o) => {
325
325
  status: D,
326
326
  startDate: s,
327
327
  endDate: d,
328
- salesPackages: x,
329
- shopName: v,
330
- shopImage: f,
328
+ salesPackages: v,
329
+ shopName: x,
330
+ shopImage: m,
331
331
  onSelectCard: g = () => {
332
332
  },
333
- onSelectShop: k = () => {
333
+ onSelectShop: C = () => {
334
334
  },
335
335
  campaignSingleText: r,
336
336
  salesCampaignTypes: $ = [],
@@ -350,7 +350,7 @@ const J = (e, o) => {
350
350
  /* @__PURE__ */ new Date()
351
351
  );
352
352
  return /* @__PURE__ */ p(
353
- fe,
353
+ me,
354
354
  {
355
355
  theme: o,
356
356
  onClick: g,
@@ -358,17 +358,17 @@ const J = (e, o) => {
358
358
  children: [
359
359
  /* @__PURE__ */ p(pe, { theme: o, onClick: () => b == null ? void 0 : b(), children: [
360
360
  /* @__PURE__ */ t("img", { src: w }),
361
- /* @__PURE__ */ t(ve, { children: x == null ? void 0 : x.map((I, A) => {
362
- var _, L;
361
+ /* @__PURE__ */ t(xe, { children: v == null ? void 0 : v.map((I, A) => {
362
+ var E, L;
363
363
  return /* @__PURE__ */ t(
364
364
  ye,
365
365
  {
366
- color: (_ = $ == null ? void 0 : $.find((P) => P.value === I)) == null ? void 0 : _.color,
366
+ color: (E = $ == null ? void 0 : $.find((_) => _.value === I)) == null ? void 0 : E.color,
367
367
  theme: o,
368
368
  children: /* @__PURE__ */ t(
369
369
  ge,
370
370
  {
371
- icon: (L = $ == null ? void 0 : $.find((P) => P.value === I)) == null ? void 0 : L.icon
371
+ icon: (L = $ == null ? void 0 : $.find((_) => _.value === I)) == null ? void 0 : L.icon
372
372
  }
373
373
  )
374
374
  },
@@ -399,16 +399,16 @@ const J = (e, o) => {
399
399
  /* @__PURE__ */ t(
400
400
  "img",
401
401
  {
402
- src: f,
403
- className: `${f ? "" : "no-image"}`
402
+ src: m,
403
+ className: `${m ? "" : "no-image"}`
404
404
  }
405
405
  )
406
406
  ),
407
407
  themeData: H,
408
408
  isActive: !0,
409
409
  isUser: !1,
410
- name: v,
411
- onClick: () => k(a)
410
+ name: x,
411
+ onClick: () => C(a)
412
412
  }
413
413
  )
414
414
  ] })
@@ -422,7 +422,7 @@ oe.propTypes = {
422
422
  dropdown: i.any,
423
423
  color: i.string
424
424
  };
425
- const $e = m.div`
425
+ const $e = f.div`
426
426
  display: flex;
427
427
  flex-direction: column;
428
428
  gap: 1.5rem;
@@ -456,7 +456,7 @@ const $e = m.div`
456
456
  display: flex;
457
457
  }
458
458
  }
459
- `, De = m.div`
459
+ `, De = f.div`
460
460
  display: flex;
461
461
  align-items: center;
462
462
 
@@ -477,7 +477,7 @@ const $e = m.div`
477
477
  display: none;
478
478
  }
479
479
  }
480
- `, Ce = m.div`
480
+ `, ke = f.div`
481
481
  position: relative;
482
482
  padding: ${(e) => e.padding};
483
483
 
@@ -555,8 +555,8 @@ const $e = m.div`
555
555
  right: 0;
556
556
  }
557
557
  }
558
- `, ke = (e, o) => {
559
- const [l, a] = z({
558
+ `, Ce = (e, o) => {
559
+ const [l, a] = P({
560
560
  trigger: null,
561
561
  direction: null
562
562
  }), u = (n) => n.touches || n.originalEvent.touches;
@@ -570,14 +570,14 @@ const $e = m.div`
570
570
  }, D = (s) => {
571
571
  if (!c || !w)
572
572
  return;
573
- const d = s.touches[0].clientX, x = s.touches[0].clientY, v = c - d, f = w - x;
574
- Math.abs(v) > Math.abs(f) ? v > 0 ? a((g) => ({
573
+ const d = s.touches[0].clientX, v = s.touches[0].clientY, x = c - d, m = w - v;
574
+ Math.abs(x) > Math.abs(m) ? x > 0 ? a((g) => ({
575
575
  trigger: !g.trigger,
576
576
  direction: F.LEFT
577
577
  })) : a((g) => ({
578
578
  trigger: !g.trigger,
579
579
  direction: F.RIGHT
580
- })) : f > 0 ? a((g) => ({
580
+ })) : m > 0 ? a((g) => ({
581
581
  trigger: !g.trigger,
582
582
  direction: F.UP
583
583
  })) : a((g) => ({
@@ -609,30 +609,30 @@ const $e = m.div`
609
609
  rightAlignArrows: D = !1,
610
610
  padding: s = "0",
611
611
  showTimesBtn: d,
612
- noArrows: x,
613
- onShowEnd: v,
614
- arrowsZIndex: f,
612
+ noArrows: v,
613
+ onShowEnd: x,
614
+ arrowsZIndex: m,
615
615
  ...g
616
- }, k) => {
617
- const r = re(), $ = M(), [S, B] = z(!1), [N, R] = z(!1), [H, W] = z(!0), h = Q(), y = ke(h);
616
+ }, C) => {
617
+ const r = re(), $ = M(), [S, B] = P(!1), [N, R] = P(!1), [H, W] = P(!0), h = Q(), y = Ce(h);
618
618
  j(() => {
619
619
  (y == null ? void 0 : y.direction) === F.RIGHT && N !== !0 ? A() : (y == null ? void 0 : y.direction) === F.LEFT && S !== !0 && I();
620
620
  }, [y]);
621
621
  const I = () => {
622
- var C;
623
- (C = h.current) == null || C.scrollBy(a, 0);
622
+ var k;
623
+ (k = h.current) == null || k.scrollBy(a, 0);
624
624
  }, A = () => {
625
- var C;
626
- (C = h.current) == null || C.scrollBy(-a, 0);
627
- }, [_, L] = z(!1);
625
+ var k;
626
+ (k = h.current) == null || k.scrollBy(-a, 0);
627
+ }, [E, L] = P(!1);
628
628
  j(() => {
629
- var C, Z;
629
+ var k, Z;
630
630
  L(
631
- ((C = h == null ? void 0 : h.current) == null ? void 0 : C.scrollWidth) > ((Z = h == null ? void 0 : h.current) == null ? void 0 : Z.clientWidth)
631
+ ((k = h == null ? void 0 : h.current) == null ? void 0 : k.scrollWidth) > ((Z = h == null ? void 0 : h.current) == null ? void 0 : Z.clientWidth)
632
632
  );
633
633
  }, [c]), ne(w, () => ({
634
634
  scrollToEnd() {
635
- P();
635
+ _();
636
636
  },
637
637
  scrollLeft() {
638
638
  A();
@@ -641,10 +641,10 @@ const $e = m.div`
641
641
  I();
642
642
  }
643
643
  }));
644
- const P = () => {
644
+ const _ = () => {
645
645
  h.current.scrollLeft = h.current.scrollWidth;
646
646
  };
647
- return /* @__PURE__ */ p($e, { arrowsZIndex: f, children: [
647
+ return /* @__PURE__ */ p($e, { arrowsZIndex: m, children: [
648
648
  /* @__PURE__ */ p(De, { children: [
649
649
  /* @__PURE__ */ t("div", { children: e }),
650
650
  /* @__PURE__ */ p("div", { className: "btns-group", children: [
@@ -699,19 +699,19 @@ const $e = m.div`
699
699
  }
700
700
  ),
701
701
  /* @__PURE__ */ t(
702
- Ce,
702
+ ke,
703
703
  {
704
- ref: k,
704
+ ref: C,
705
705
  arrowsVisibleOnHover: b,
706
- hasOverflow: _,
707
- noArrows: x,
706
+ hasOverflow: E,
707
+ noArrows: v,
708
708
  padding: s,
709
709
  rightAlignArrows: D,
710
710
  showTimesBtn: d,
711
711
  theme: $,
712
712
  ...g,
713
713
  children: /* @__PURE__ */ p(
714
- me,
714
+ fe,
715
715
  {
716
716
  ref: h,
717
717
  className: "scrollable-container",
@@ -740,11 +740,11 @@ const $e = m.div`
740
740
  S === !0 && B(!1), W(!0);
741
741
  },
742
742
  onIsVisible: () => {
743
- S === !1 && B(!0), W(!1), v == null || v();
743
+ S === !1 && B(!0), W(!1), x == null || x();
744
744
  }
745
745
  }
746
746
  ),
747
- H && _ && /* @__PURE__ */ t("div", { className: "gradient" })
747
+ H && E && /* @__PURE__ */ t("div", { className: "gradient" })
748
748
  ]
749
749
  }
750
750
  )
@@ -765,7 +765,7 @@ ie.propTypes = {
765
765
  rightAlignArrows: i.bool,
766
766
  padding: i.string
767
767
  };
768
- const Se = m.div`
768
+ const Se = f.div`
769
769
  display: flex;
770
770
  flex-direction: column;
771
771
  gap: 1.5rem;
@@ -795,19 +795,19 @@ const Se = m.div`
795
795
  margin-right: 0;
796
796
  }
797
797
  }
798
- `, O = m.div`
798
+ `, O = f.div`
799
799
  width: ${(e) => e.width || "100%"};
800
800
  height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
801
801
  background-color: var(--gray-200, #dddfe4);
802
802
 
803
803
  ${ee("-90deg")}
804
- `, Ne = m.div`
804
+ `, Ne = f.div`
805
805
  display: flex;
806
806
  flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
807
807
  gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
808
808
  width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
809
- `, K = m.div`
810
- border-radius: ${(e) => E(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
809
+ `, K = f.div`
810
+ border-radius: ${(e) => z(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
811
811
  background: var(--gray-200, #dddfe4);
812
812
  position: relative;
813
813
  max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
@@ -817,9 +817,9 @@ const Se = m.div`
817
817
  flex-shrink: 0;
818
818
 
819
819
  ${ee()}
820
- `, Ie = m.div`
820
+ `, Ie = f.div`
821
821
  background: var(--white, #fff);
822
- border-radius: ${(e) => E(e.theme, "edged")};
822
+ border-radius: ${(e) => z(e.theme, "edged")};
823
823
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
824
824
  border: 1px solid var(--gray-95012, #14161a1f);
825
825
 
@@ -904,9 +904,9 @@ const Se = m.div`
904
904
  startsInPrefixTextPlural: D,
905
905
  startsinSuffixTextPlural: s,
906
906
  startsInPrefixTextSingular: d,
907
- startsinSuffixTextSingular: x
908
- }, v) => {
909
- const f = Q(), g = re(), k = ce(() => o == null ? void 0 : o.map((r, $) => /* @__PURE__ */ t(
907
+ startsinSuffixTextSingular: v
908
+ }, x) => {
909
+ const m = Q(), g = re(), C = ce(() => o == null ? void 0 : o.map((r, $) => /* @__PURE__ */ t(
910
910
  Ee,
911
911
  {
912
912
  className: "campaign-item",
@@ -928,17 +928,17 @@ const Se = m.div`
928
928
  startsInPrefixTextPlural: D,
929
929
  startsinSuffixTextPlural: s,
930
930
  startsInPrefixTextSingular: d,
931
- startsinSuffixTextSingular: x,
931
+ startsinSuffixTextSingular: v,
932
932
  themeData: r == null ? void 0 : r.themeData
933
933
  },
934
934
  `campaign__item__${$}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
935
935
  )), [o]);
936
- return /* @__PURE__ */ t(G, { children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(Se, { ref: v, className: "row-section-scroll", children: /* @__PURE__ */ t(
936
+ return /* @__PURE__ */ t(G, { children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(Se, { ref: x, className: "row-section-scroll", children: /* @__PURE__ */ t(
937
937
  ie,
938
938
  {
939
939
  arrowsVisibleOnHover: !1,
940
940
  columnGap: "0",
941
- methodsRef: f,
941
+ methodsRef: m,
942
942
  mobileHoverScrollButtons: !0,
943
943
  noArrows: !0,
944
944
  padding: "0.25rem 0",
@@ -955,7 +955,7 @@ const Se = m.div`
955
955
  isLoading: a,
956
956
  itemsCount: 2,
957
957
  keyPrefix: "sales-camp",
958
- children: k
958
+ children: C
959
959
  }
960
960
  )
961
961
  }
@@ -1,10 +1,11 @@
1
- "use strict";const r=require("react/jsx-runtime"),_=require("react"),w=require("./Button.cjs"),v=require("./Icon.cjs"),p=require("./utils-NZLCh-J5.cjs"),d=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./consts-CtNoHdBj.cjs"),b=d.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),g=require("react"),f=require("./Button.cjs"),v=require("./Icon.cjs"),l=require("./utils-NZLCh-J5.cjs"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./consts-CtNoHdBj.cjs"),j=h.newStyled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  border-radius: 1.25rem;
6
6
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
7
7
  background: var(--Lanaco-Gray-white, #fff);
8
+ width: 100%;
8
9
 
9
10
  /* drop-shadow-sm */
10
11
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
@@ -42,7 +43,7 @@
42
43
  font-weight: 500;
43
44
  line-height: 1.5rem;
44
45
  letter-spacing: -0.0112rem;
45
- ${p.truncateTextInRows(2)}
46
+ ${l.truncateTextInRows(2)}
46
47
  }
47
48
 
48
49
  & .wrapper__subtitle {
@@ -53,7 +54,7 @@
53
54
  font-weight: 400;
54
55
  line-height: 1.25rem;
55
56
  letter-spacing: -0.0056rem;
56
- ${p.truncateTextInRows(2)}
57
+ ${l.truncateTextInRows(2)}
57
58
  }
58
59
 
59
60
  & .wrapper__badges {
@@ -108,7 +109,7 @@
108
109
  }
109
110
  }
110
111
  }
111
- `,j=d.newStyled.div`
112
+ `,u=h.newStyled.div`
112
113
  display: flex;
113
114
  flex-direction: column;
114
115
  align-items: center;
@@ -134,7 +135,7 @@
134
135
  width: 4rem;
135
136
  height: 4rem;
136
137
  border-radius: 999px;
137
- background-color: ${p.linearGradientAnimation("-90deg")};
138
+ background-color: ${l.linearGradientAnimation("-90deg")};
138
139
  }
139
140
  }
140
141
 
@@ -146,12 +147,12 @@
146
147
  width: 100%;
147
148
 
148
149
  & .wrapper__info-item {
149
- background-color: ${p.linearGradientAnimation("-90deg")};
150
+ background-color: ${l.linearGradientAnimation("-90deg")};
150
151
  height: 1rem;
151
152
  width: 100%;
152
153
  }
153
154
  }
154
- `,y=_.forwardRef(({image:a,imageComponent:m,title:t,subtitle:g,badges:c,rating:o,reviewCount:n,products:s,onSelectCard:h=()=>{}},f)=>r.jsxs(b,{onClick:h,children:[r.jsxs("div",{className:"wrapper__content",children:[p.isDefined(m)?m:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"wrapper__title",children:t}),r.jsx("div",{className:"wrapper__subtitle",children:g}),c&&r.jsx("div",{className:"wrapper__badges"}),o&&n&&r.jsxs("div",{className:"wrapper__rating",children:[r.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((i,l)=>r.jsx(v,{icon:i<o?" mng-lnc-star--filled":" mng-lnc-star",className:"wrapper__star"},`shop-card-rating-star__${l+1}`))}),r.jsxs("div",{className:"wrapper__review-count",children:["(",n==null?void 0:n.toLocaleString(),")"]})]})]})]}),r.jsx("div",{className:"wrapper__products",children:s&&(s==null?void 0:s.map((i,l)=>r.jsx(_.Fragment,{children:r.jsx("div",{className:"wrapper__product",onClick:()=>{var e;return(e=i==null?void 0:i.onSelectProduct)==null?void 0:e.call(i,i==null?void 0:i.uuid)},children:p.isDefined(i==null?void 0:i.imageComponent)?i==null?void 0:i.imageComponent:r.jsx("img",{src:i==null?void 0:i.image,className:"product__image"})})},l)))})]})),N=_.forwardRef(({},a)=>r.jsx(j,{children:r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"})]})]})})),k=d.newStyled.div`
155
+ `,b=g.forwardRef(({image:a,imageComponent:p,title:s,subtitle:c,badges:x,rating:m,reviewCount:t,products:n,onSelectCard:_=()=>{}},w)=>e.jsxs(j,{onClick:_,children:[e.jsxs("div",{className:"wrapper__content",children:[l.isDefined(p)?p:e.jsx("img",{src:a,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__title",children:s}),e.jsx("div",{className:"wrapper__subtitle",children:c}),x&&e.jsx("div",{className:"wrapper__badges"}),m&&t&&e.jsxs("div",{className:"wrapper__rating",children:[e.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((i,o)=>e.jsx(v,{icon:i<m?" mng-lnc-star--filled":" mng-lnc-star",className:"wrapper__star"},`shop-card-rating-star__${o+1}`))}),e.jsxs("div",{className:"wrapper__review-count",children:["(",t==null?void 0:t.toLocaleString(),")"]})]})]})]}),e.jsx("div",{className:"wrapper__products",children:n&&(n==null?void 0:n.map((i,o)=>e.jsx(g.Fragment,{children:e.jsx("div",{className:"wrapper__product",onClick:()=>{var r;return(r=i==null?void 0:i.onSelectProduct)==null?void 0:r.call(i,i==null?void 0:i.uuid)},children:l.isDefined(i==null?void 0:i.imageComponent)?i==null?void 0:i.imageComponent:e.jsx("img",{src:i==null?void 0:i.image,className:"product__image"})})},o)))})]})),N=g.forwardRef(({},a)=>e.jsx(u,{children:e.jsxs("div",{className:"wrapper__content",children:[e.jsx("div",{className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"})]})]})})),k=h.newStyled.div`
155
156
  display: flex;
156
157
  flex-direction: column;
157
158
  align-items: flex-start;
@@ -175,6 +176,15 @@
175
176
  font-weight: 600;
176
177
  line-height: 2rem;
177
178
  letter-spacing: -0.47px;
179
+
180
+ display: flex;
181
+ align-items: center;
182
+ gap: 0.5rem;
183
+
184
+ & i {
185
+ font-size: 1.5rem;
186
+ color: var(--primary-500, #f59e0b);
187
+ }
178
188
  }
179
189
 
180
190
  & .title__action {
@@ -210,7 +220,7 @@
210
220
  width: 100%;
211
221
  }
212
222
 
213
- @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
223
+ @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
214
224
  & .wrapper__heading {
215
225
  & .wrapper__title {
216
226
  & .title__action {
@@ -231,4 +241,4 @@
231
241
  gap: 1rem;
232
242
  }
233
243
  }
234
- `,$=_.forwardRef(({title:a,subtitle:m,items:t,limit:g=4,limitForMobile:c=2,actionText:o,onSelectCard:n=()=>{},onShowMore:s},h)=>{var l;const f=()=>{s==null||s()},i=e=>{n==null||n(e==null?void 0:e.uuid)};return r.jsxs(k,{limitCards:g,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[a&&r.jsx("div",{className:"title__text",children:a}),o&&s&&r.jsx(w,{text:o,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:f})]}),m&&r.jsx("div",{className:"wrapper__subtitle",children:m})]}),r.jsx("div",{className:"wrapper__cards",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,x)=>r.jsx(y,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,subtitle:e==null?void 0:e.subtitle,image:e==null?void 0:e.image,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>i==null?void 0:i(e)},`shop-card__${x+1}`)):(l=Array.from("1234"))==null?void 0:l.map((e,x)=>r.jsx(N,{},`shop-card-skeleton__${x+1}`))})]})});module.exports=$;
244
+ `,$=g.forwardRef(({title:a,subtitle:p,items:s,limit:c=4,limitForMobile:x=2,buttonText:m="Show More",onSelectCard:t=()=>{},onButtonAction:n=()=>{},icon:_},w)=>{var o;const i=r=>{t==null||t(r==null?void 0:r.uuid)};return e.jsxs(k,{ref:w,limitCards:c,limitCardsForMobile:x,children:[e.jsxs("div",{className:"wrapper__heading",children:[e.jsxs("div",{className:"wrapper__title",children:[a&&e.jsxs("div",{className:"title__text",children:[l.isDefinedNotEmptyString(_)&&e.jsx("i",{className:_}),e.jsx("span",{children:a})]}),n&&e.jsx(f,{text:m,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:n})]}),p&&e.jsx("div",{className:"wrapper__subtitle",children:p})]}),e.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((r,d)=>e.jsx(b,{uuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,subtitle:r==null?void 0:r.subtitle,image:r==null?void 0:r.image,rating:r==null?void 0:r.rating,reviewCount:r==null?void 0:r.reviewCount,products:r==null?void 0:r.products,imageComponent:r==null?void 0:r.imageComponent,onSelectCard:()=>i==null?void 0:i(r)},`shop-card__${d+1}`)):(o=Array.from("1234"))==null?void 0:o.map((r,d)=>e.jsx(N,{},`shop-card-skeleton__${d+1}`))})]})});module.exports=$;