@lanaco/lnc-react-ui 4.0.186 → 4.0.189

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 (74) hide show
  1. package/dist/BannerSectionCarousel.cjs +4 -4
  2. package/dist/BannerSectionCarousel.js +150 -158
  3. package/dist/BlogCardsSponsoredSection.cjs +5 -5
  4. package/dist/BlogCardsSponsoredSection.js +55 -51
  5. package/dist/BlogCategoryCardsSection.cjs +1 -1
  6. package/dist/BlogCategoryCardsSection.js +1 -1
  7. package/dist/BlogExploreSection.cjs +5 -5
  8. package/dist/BlogExploreSection.js +182 -215
  9. package/dist/BlogListSection.cjs +6 -6
  10. package/dist/BlogListSection.js +134 -116
  11. package/dist/BlogProductCardsSection.cjs +1 -1
  12. package/dist/BlogProductCardsSection.js +26 -24
  13. package/dist/BlogShopCardsSection.cjs +1 -1
  14. package/dist/BlogShopCardsSection.js +1 -1
  15. package/dist/BlogSingleSection.cjs +3 -3
  16. package/dist/BlogSingleSection.js +21 -19
  17. package/dist/BlogsSectionDetailed.cjs +4 -4
  18. package/dist/BlogsSectionDetailed.js +81 -76
  19. package/dist/BlogsSectionLarge.cjs +6 -6
  20. package/dist/BlogsSectionLarge.js +34 -31
  21. package/dist/BlogsSectionSimple.cjs +8 -8
  22. package/dist/BlogsSectionSimple.js +68 -63
  23. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  24. package/dist/BlogsSectionSimpleCentered.js +67 -54
  25. package/dist/BlogsSectionWithFilters.cjs +9 -9
  26. package/dist/BlogsSectionWithFilters.js +98 -84
  27. package/dist/BrandHitsSection.cjs +7 -7
  28. package/dist/BrandHitsSection.js +50 -32
  29. package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
  30. package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
  31. package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
  32. package/dist/DetailedProductsInfinitiveSection.js +23 -21
  33. package/dist/DetailedProductsSection.cjs +3 -3
  34. package/dist/DetailedProductsSection.js +38 -35
  35. package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
  36. package/dist/FieldOfInterestsMasonrySection.js +87 -83
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
  41. package/dist/GeneralWithTagsCardsSection.cjs +4 -4
  42. package/dist/GeneralWithTagsCardsSection.js +83 -46
  43. package/dist/GiftCardsSection.cjs +7 -7
  44. package/dist/GiftCardsSection.js +56 -47
  45. package/dist/MasonryGeneralCardsSection.cjs +9 -9
  46. package/dist/MasonryGeneralCardsSection.js +82 -68
  47. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  48. package/dist/OverlayGeneralCardsSection.js +58 -50
  49. package/dist/ProductsWithBannerSection.cjs +10 -10
  50. package/dist/ProductsWithBannerSection.js +79 -70
  51. package/dist/QuattroCardsSection.cjs +8 -8
  52. package/dist/QuattroCardsSection.js +62 -40
  53. package/dist/ReviewsSection.cjs +8 -8
  54. package/dist/ReviewsSection.js +92 -67
  55. package/dist/SalesCampaignsSection.cjs +18 -18
  56. package/dist/SalesCampaignsSection.js +304 -298
  57. package/dist/ShopCardsSection.cjs +3 -3
  58. package/dist/ShopCardsSection.js +25 -23
  59. package/dist/SimpleCategoriesSection.cjs +4 -4
  60. package/dist/SimpleCategoriesSection.js +25 -22
  61. package/dist/SimpleProductsSection.cjs +3 -3
  62. package/dist/SimpleProductsSection.js +53 -50
  63. package/dist/UrgentSaleProductsSection.cjs +4 -4
  64. package/dist/UrgentSaleProductsSection.js +41 -38
  65. package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
  66. package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
  67. package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
  68. package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
  69. package/dist/index-Coo0aVuh.cjs +362 -0
  70. package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
  71. package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
  72. package/dist/{index-DZ8515cZ.js → index-PhMLWAC1.js} +277 -172
  73. package/package.json +1 -1
  74. package/dist/index-Bmr3IeZ_.cjs +0 -308
@@ -1,21 +1,20 @@
1
- import { jsxs as o, jsx as t, Fragment as j } from "react/jsx-runtime";
2
- import { forwardRef as V, useRef as ce, useState as le, useEffect as se, Fragment as de } from "react";
3
- import { P as n } from "./index-CblbdqjE.js";
1
+ import { jsxs as a, jsx as n, Fragment as j } from "react/jsx-runtime";
2
+ import { forwardRef as V, useRef as oe, useState as le, useEffect as se, Fragment as de } from "react";
4
3
  import { u as me } from "./useDetectMobile-Bkvj0VMa.js";
5
- import { o as he, q as fe } from "./utils-Dc5zIpaz.js";
6
- import _e from "./TextInput.js";
7
- import C from "./Icon.js";
4
+ import { o as _e, q as he } from "./utils-Dc5zIpaz.js";
5
+ import fe from "./TextInput.js";
6
+ import z from "./Icon.js";
8
7
  import ue from "./Link.js";
9
8
  import M from "./IconButton.js";
10
9
  import W from "./DropdownMenu.js";
11
10
  import E from "./DropdownItem.js";
12
- import { F as ge } from "./tag-BtS5lWJ0.js";
11
+ import { F as ve } from "./tag-BtS5lWJ0.js";
13
12
  import pe from "./BlogProductCardsSection.js";
14
13
  import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
15
- import { P as ve } from "./index-C_NnINik.js";
14
+ import { P as ge } from "./index-C_NnINik.js";
16
15
  import F from "./BlogListSection.js";
17
16
  import { M as xe } from "./consts-BuFChS64.js";
18
- const ye = q.div`
17
+ const we = q.div`
19
18
  display: flex;
20
19
  justify-content: space-between;
21
20
  align-items: center;
@@ -98,91 +97,91 @@ const ye = q.div`
98
97
  }
99
98
  `, be = V(
100
99
  ({
101
- perPageOptions: d = [
100
+ perPageOptions: s = [
102
101
  { code: 10, name: "Show 10 items" },
103
102
  { code: 25, name: "Show 25 items" },
104
103
  { code: 50, name: "Show 50 items" }
105
104
  ],
106
- perPage: u,
107
- handlePerPage: v = () => {
105
+ perPage: f,
106
+ handlePerPage: p = () => {
108
107
  },
109
108
  page: c = 1,
110
- handlePage: m = () => {
109
+ handlePage: d = () => {
111
110
  },
112
- totalPage: r
113
- }, _) => {
114
- var p, h;
115
- const g = () => {
116
- c > 1 && (m == null || m(c - 1));
117
- }, x = () => {
118
- c < r && (m == null || m(c + 1));
119
- }, b = () => {
120
- const i = [];
121
- if (r <= 7)
122
- for (let a = 1; a <= r; a++)
123
- i.push(a);
111
+ totalPage: t
112
+ }, h) => {
113
+ var v, m;
114
+ const u = () => {
115
+ c > 1 && (d == null || d(c - 1));
116
+ }, g = () => {
117
+ c < t && (d == null || d(c + 1));
118
+ }, w = () => {
119
+ const r = [];
120
+ if (t <= 7)
121
+ for (let i = 1; i <= t; i++)
122
+ r.push(i);
124
123
  else
125
- c <= 3 ? i.push(1, 2, 3, "...", r) : c >= r - 2 ? i.push(1, "...", r - 2, r - 1, r) : i.push(1, 2, 3, "...", r);
126
- return i == null ? void 0 : i.map((a, y) => a === "..." ? /* @__PURE__ */ t(
124
+ c <= 3 ? r.push(1, 2, 3, "...", t) : c >= t - 2 ? r.push(1, "...", t - 2, t - 1, t) : r.push(1, 2, 3, "...", t);
125
+ return r == null ? void 0 : r.map((i, x) => i === "..." ? /* @__PURE__ */ n(
127
126
  "div",
128
127
  {
129
128
  className: "pagination__page ellipsis",
130
- children: a
129
+ children: i
131
130
  },
132
- `pagination-ellipsis__${y}`
133
- ) : /* @__PURE__ */ t(
131
+ `pagination-ellipsis__${x}`
132
+ ) : /* @__PURE__ */ n(
134
133
  "div",
135
134
  {
136
- onClick: () => m(a),
137
- className: `pagination__page ${c === a ? "active" : ""}`,
138
- children: a
135
+ onClick: () => d(i),
136
+ className: `pagination__page ${c === i ? "active" : ""}`,
137
+ children: i
139
138
  },
140
- `pagination-page__${y}`
139
+ `pagination-page__${x}`
141
140
  ));
142
141
  };
143
- return /* @__PURE__ */ o(ye, { className: "pagination", children: [
144
- /* @__PURE__ */ t(
142
+ return /* @__PURE__ */ a(we, { className: "pagination", children: [
143
+ /* @__PURE__ */ n(
145
144
  W,
146
145
  {
147
146
  color: "neutral",
148
- control: ((p = d == null ? void 0 : d.find((i) => (i == null ? void 0 : i.code) === u)) == null ? void 0 : p.name) || ((h = d[0]) == null ? void 0 : h.name),
147
+ control: ((v = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.code) === f)) == null ? void 0 : v.name) || ((m = s[0]) == null ? void 0 : m.name),
149
148
  placement: "bottom",
150
149
  zIndex: 1001,
151
150
  className: "pagination__per-page",
152
- children: d == null ? void 0 : d.map((i, a) => /* @__PURE__ */ t(
151
+ children: s == null ? void 0 : s.map((r, i) => /* @__PURE__ */ n(
153
152
  E,
154
153
  {
155
- active: (i == null ? void 0 : i.code) === (u == null ? void 0 : u.code),
154
+ active: (r == null ? void 0 : r.code) === (f == null ? void 0 : f.code),
156
155
  className: "sort-by__item",
157
- onClick: () => v(i),
158
- children: i == null ? void 0 : i.name
156
+ onClick: () => p(r),
157
+ children: r == null ? void 0 : r.name
159
158
  },
160
- `blog-epxlore-section-per-page-option__${a + 1}`
159
+ `blog-epxlore-section-per-page-option__${i + 1}`
161
160
  ))
162
161
  }
163
162
  ),
164
- /* @__PURE__ */ o("div", { className: "pagination__pages", children: [
165
- /* @__PURE__ */ t(
163
+ /* @__PURE__ */ a("div", { className: "pagination__pages", children: [
164
+ /* @__PURE__ */ n(
166
165
  "div",
167
166
  {
168
167
  className: `pagination__page ${c === 1 ? "disabled" : ""}`,
169
- onClick: g,
170
- children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--left" })
168
+ onClick: u,
169
+ children: /* @__PURE__ */ n(z, { icon: " mng-lnc-chevron--left" })
171
170
  }
172
171
  ),
173
- b(),
174
- /* @__PURE__ */ t(
172
+ w(),
173
+ /* @__PURE__ */ n(
175
174
  "div",
176
175
  {
177
- className: `pagination__page ${c === r ? "disabled" : ""}`,
178
- onClick: x,
179
- children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--right" })
176
+ className: `pagination__page ${c === t ? "disabled" : ""}`,
177
+ onClick: g,
178
+ children: /* @__PURE__ */ n(z, { icon: " mng-lnc-chevron--right" })
180
179
  }
181
180
  )
182
181
  ] })
183
182
  ] });
184
183
  }
185
- ), we = q.div`
184
+ ), ye = q.div`
186
185
  display: flex;
187
186
  align-items: flex-start;
188
187
  gap: 2rem;
@@ -388,7 +387,7 @@ const ye = q.div`
388
387
  font-style: normal;
389
388
  font-weight: 500;
390
389
  line-height: 1.25rem;
391
- ${he(2)}
390
+ ${_e(2)}
392
391
  }
393
392
 
394
393
  & .item__description {
@@ -455,142 +454,143 @@ const ye = q.div`
455
454
  display: none;
456
455
  }
457
456
  }
458
- `, Ne = V(
457
+ `, Ee = V(
459
458
  ({
460
- mainTitle: d,
461
- sideTitle: u,
462
- tags: v,
459
+ mainTitle: s,
460
+ sideTitle: f,
461
+ tags: p,
463
462
  selectedTag: c,
464
- handleSelectTag: m = () => {
463
+ handleSelectTag: d = () => {
465
464
  },
466
- blogs: r,
467
- miniBlogs: _,
468
- products: g,
469
- blogsLoading: x = !1,
470
- productsLoading: b = !1,
471
- sortingOptions: p,
472
- sortBy: h,
473
- handleSortBy: i = () => {
465
+ blogs: t,
466
+ miniBlogs: h,
467
+ products: u,
468
+ blogsLoading: g = !1,
469
+ productsLoading: w = !1,
470
+ sortingOptions: v,
471
+ sortBy: m,
472
+ handleSortBy: r = () => {
474
473
  },
475
- allTagText: a = "All",
476
- searchPlaceholderText: y = "Search blogs",
477
- timeToReadText: L = "{0} min read",
478
- getBlogImageUrl: w = () => {
474
+ allTagText: i = "All",
475
+ searchPlaceholderText: x = "Search blogs",
476
+ timeToReadText: $ = "{0} min read",
477
+ getBlogImageUrl: b = () => {
479
478
  },
480
- handleSelectBlog: N = () => {
479
+ handleSelectBlog: y = () => {
481
480
  },
482
481
  handleSelectBlogTag: A = () => {
483
482
  },
484
- handleShareBlog: z = () => {
483
+ handleShareBlog: D = () => {
485
484
  },
486
485
  // handleBookmarkBlog = () => {},
487
- showAllButtonLink: R,
488
- showAllButtonText: U = "Show all products",
489
- viewAllButtonText: H = "View all (11)",
486
+ showAllButtonLink: H,
487
+ showAllButtonText: R = "Show all products",
488
+ viewAllButtonText: X = "View all (11)",
490
489
  // viewAllButtonLink,
491
- handleViewAll: X = () => {
490
+ handleViewAll: Z = () => {
492
491
  },
493
- handleShowAll: Z = () => {
492
+ handleShowAll: G = () => {
494
493
  },
495
- handleSelectProduct: G = () => {
494
+ handleSelectProduct: J = () => {
496
495
  },
497
- getProductImageUrl: J = () => {
496
+ getProductImageUrl: K = () => {
498
497
  },
499
- page: K,
500
- handlePage: k = () => {
498
+ page: Q,
499
+ handlePage: N = () => {
501
500
  },
502
- perPage: Q,
501
+ perPage: U,
503
502
  handlePerPage: Y = () => {
504
503
  },
505
- totalPage: S,
506
- perPageOptions: B,
507
- handleSearch: O = () => {
504
+ totalPage: k,
505
+ perPageOptions: O,
506
+ handleSearch: B = () => {
508
507
  },
509
- onBookmark: $ = () => {
508
+ onBookmark: I = () => {
510
509
  },
511
- bookmarkComponent: I = /* @__PURE__ */ t(j, {}),
512
- componentName: T
510
+ bookmarkComponent: L = /* @__PURE__ */ n(j, {}),
511
+ componentName: S,
512
+ LinkComponent: C
513
513
  }, P) => {
514
514
  const ee = (e) => {
515
- document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), k == null || k(e);
516
- }, l = ce(null), ne = me(), [f, te] = le({
515
+ document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), N == null || N(e);
516
+ }, o = oe(null), ne = me(), [_, te] = le({
517
517
  arrowsVisible: !1,
518
518
  leftArrowDisabled: !1,
519
519
  rightArrowDisabled: !1
520
520
  });
521
521
  se(() => {
522
- const e = l == null ? void 0 : l.current;
522
+ const e = o == null ? void 0 : o.current;
523
523
  if (!e) return;
524
- const s = () => {
524
+ const l = () => {
525
525
  const ae = e.scrollWidth - e.clientWidth;
526
- te((oe) => ({
527
- ...oe,
526
+ te((ce) => ({
527
+ ...ce,
528
528
  arrowsVisible: e.clientWidth < e.scrollWidth,
529
529
  leftArrowDisabled: e.scrollLeft <= 0,
530
530
  rightArrowDisabled: e.scrollLeft >= ae
531
531
  }));
532
- }, D = new ResizeObserver(s);
533
- return D.observe(e), s(), e.addEventListener("scroll", s), () => {
534
- D.disconnect(), e.removeEventListener("scroll", s);
532
+ }, T = new ResizeObserver(l);
533
+ return T.observe(e), l(), e.addEventListener("scroll", l), () => {
534
+ T.disconnect(), e.removeEventListener("scroll", l);
535
535
  };
536
536
  }, []);
537
537
  const re = () => {
538
538
  var e;
539
- (e = l == null ? void 0 : l.current) == null || e.scrollBy({ left: 100, behavior: "smooth" });
539
+ (e = o == null ? void 0 : o.current) == null || e.scrollBy({ left: 100, behavior: "smooth" });
540
540
  }, ie = () => {
541
541
  var e;
542
- (e = l == null ? void 0 : l.current) == null || e.scrollBy({ left: -100, behavior: "smooth" });
542
+ (e = o == null ? void 0 : o.current) == null || e.scrollBy({ left: -100, behavior: "smooth" });
543
543
  };
544
- return /* @__PURE__ */ o(we, { ref: P, id: "landing__container", children: [
545
- /* @__PURE__ */ o("div", { className: "landing__main-content", children: [
546
- /* @__PURE__ */ o("div", { className: "main-content__heading", children: [
547
- /* @__PURE__ */ t("div", { className: "main-content__title", children: d }),
548
- !ne && (f == null ? void 0 : f.arrowsVisible) && /* @__PURE__ */ o("div", { className: "main-content__tags-nav", children: [
549
- /* @__PURE__ */ t(
544
+ return /* @__PURE__ */ a(ye, { ref: P, id: "landing__container", children: [
545
+ /* @__PURE__ */ a("div", { className: "landing__main-content", children: [
546
+ /* @__PURE__ */ a("div", { className: "main-content__heading", children: [
547
+ /* @__PURE__ */ n("div", { className: "main-content__title", children: s }),
548
+ !ne && (_ == null ? void 0 : _.arrowsVisible) && /* @__PURE__ */ a("div", { className: "main-content__tags-nav", children: [
549
+ /* @__PURE__ */ n(
550
550
  M,
551
551
  {
552
552
  icon: "chevron-left",
553
553
  borderRadius: "curved",
554
554
  btnType: "tinted",
555
555
  color: "neutral",
556
- disabled: f == null ? void 0 : f.leftArrowDisabled,
556
+ disabled: _ == null ? void 0 : _.leftArrowDisabled,
557
557
  className: "main-content__tag-nav",
558
558
  onClick: ie
559
559
  }
560
560
  ),
561
- /* @__PURE__ */ t(
561
+ /* @__PURE__ */ n(
562
562
  M,
563
563
  {
564
564
  icon: "chevron-right",
565
565
  borderRadius: "curved",
566
566
  btnType: "tinted",
567
567
  color: "neutral",
568
- disabled: f == null ? void 0 : f.rightArrowDisabled,
568
+ disabled: _ == null ? void 0 : _.rightArrowDisabled,
569
569
  className: "main-content__tag-nav",
570
570
  onClick: re
571
571
  }
572
572
  )
573
573
  ] })
574
574
  ] }),
575
- v && /* @__PURE__ */ t(
576
- ge,
575
+ p && /* @__PURE__ */ n(
576
+ ve,
577
577
  {
578
- ref: l,
579
- tags: v,
580
- allTagText: a,
578
+ ref: o,
579
+ tags: p,
580
+ allTagText: i,
581
581
  selectedTagCode: c,
582
- onSelectTag: m
582
+ onSelectTag: d
583
583
  }
584
584
  ),
585
- /* @__PURE__ */ o("div", { className: "main-content__actions", children: [
586
- /* @__PURE__ */ t(
587
- _e,
585
+ /* @__PURE__ */ a("div", { className: "main-content__actions", children: [
586
+ /* @__PURE__ */ n(
587
+ fe,
588
588
  {
589
589
  className: "main-content__search",
590
- placeholder: y,
590
+ placeholder: x,
591
591
  debounceTime: 200,
592
- prefix: /* @__PURE__ */ t(
593
- C,
592
+ prefix: /* @__PURE__ */ n(
593
+ z,
594
594
  {
595
595
  icon: " mng-lnc-search",
596
596
  sizeInUnits: "1.25rem",
@@ -598,155 +598,122 @@ const ye = q.div`
598
598
  }
599
599
  ),
600
600
  color: "neutral",
601
- onChange: O
601
+ onChange: B
602
602
  }
603
603
  ),
604
- /* @__PURE__ */ t(
604
+ /* @__PURE__ */ n(
605
605
  W,
606
606
  {
607
607
  color: "neutral",
608
- control: h == null ? void 0 : h.name,
608
+ control: m == null ? void 0 : m.name,
609
609
  zIndex: 1001,
610
610
  className: "main-content__sort-by",
611
- children: p == null ? void 0 : p.map((e, s) => /* @__PURE__ */ t(
611
+ children: v == null ? void 0 : v.map((e, l) => /* @__PURE__ */ n(
612
612
  E,
613
613
  {
614
- active: (e == null ? void 0 : e.code) === (h == null ? void 0 : h.code),
614
+ active: (e == null ? void 0 : e.code) === (m == null ? void 0 : m.code),
615
615
  className: "sort-by__item",
616
- onClick: () => i(e),
616
+ onClick: () => r(e),
617
617
  children: e == null ? void 0 : e.name
618
618
  },
619
- `blog-epxlore-section-sorting-option__${s + 1}`
619
+ `blog-epxlore-section-sorting-option__${l + 1}`
620
620
  ))
621
621
  }
622
622
  )
623
623
  ] }),
624
- /* @__PURE__ */ o("div", { className: "main-content__items", children: [
625
- r && (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
624
+ /* @__PURE__ */ a("div", { className: "main-content__items", children: [
625
+ t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
626
626
  F,
627
627
  {
628
- timeToReadText: L,
629
- items: r == null ? void 0 : r.slice(0, 5),
630
- isLoading: x,
631
- getImage: w,
632
- onSelectCard: N,
628
+ timeToReadText: $,
629
+ items: t == null ? void 0 : t.slice(0, 5),
630
+ isLoading: g,
631
+ getImage: b,
632
+ onSelectCard: y,
633
633
  onSelectOption: A,
634
- onShare: z,
635
- onBookmark: $,
636
- bookmarkComponent: I,
637
- componentName: T
634
+ onShare: D,
635
+ onBookmark: I,
636
+ bookmarkComponent: L,
637
+ componentName: S,
638
+ LinkComponent: C
638
639
  }
639
640
  ),
640
- /* @__PURE__ */ t("div", { className: "main-content__divider" }),
641
- g && (g == null ? void 0 : g.length) > 0 && /* @__PURE__ */ t(
641
+ /* @__PURE__ */ n("div", { className: "main-content__divider" }),
642
+ u && (u == null ? void 0 : u.length) > 0 && /* @__PURE__ */ n(
642
643
  pe,
643
644
  {
644
- buttonText: U,
645
- buttonLink: R,
646
- onButtonAction: Z,
647
- onSelectCard: G,
648
- items: g,
649
- isLoading: b,
650
- getImage: J,
645
+ buttonText: R,
646
+ buttonLink: H,
647
+ onButtonAction: G,
648
+ onSelectCard: J,
649
+ items: u,
650
+ isLoading: w,
651
+ getImage: K,
651
652
  isHighlight: !0,
652
- componentName: T
653
+ componentName: S,
654
+ LinkComponent: C
653
655
  }
654
656
  ),
655
- /* @__PURE__ */ t("div", { className: "main-content__divider" }),
656
- r && (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
657
+ /* @__PURE__ */ n("div", { className: "main-content__divider" }),
658
+ t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
657
659
  F,
658
660
  {
659
- timeToReadText: L,
660
- items: r == null ? void 0 : r.slice(5),
661
- isLoading: x,
662
- getImage: w,
663
- onSelectCard: N,
661
+ timeToReadText: $,
662
+ items: t == null ? void 0 : t.slice(5),
663
+ isLoading: g,
664
+ getImage: b,
665
+ onSelectCard: y,
664
666
  onSelectOption: A,
665
- onShare: z,
666
- onBookmark: $,
667
- bookmarkComponent: I,
668
- componentName: T
667
+ onShare: D,
668
+ onBookmark: I,
669
+ bookmarkComponent: L,
670
+ componentName: S,
671
+ LinkComponent: C
669
672
  }
670
673
  )
671
674
  ] }),
672
- S && S > 1 && /* @__PURE__ */ t(
675
+ k && k > 1 && /* @__PURE__ */ n(
673
676
  be,
674
677
  {
675
- perPageOptions: B,
676
- perPage: Q,
678
+ perPageOptions: O,
679
+ perPage: U,
677
680
  handlePerPage: Y,
678
- page: K,
681
+ page: Q,
679
682
  handlePage: ee,
680
- totalPage: S
683
+ totalPage: k
681
684
  }
682
685
  )
683
686
  ] }),
684
- /* @__PURE__ */ o("div", { className: "landing__side-content", children: [
685
- u && /* @__PURE__ */ t("div", { className: "side-content__title", children: u }),
686
- _ && (_ == null ? void 0 : _.length) > 0 && /* @__PURE__ */ o(j, { children: [
687
- /* @__PURE__ */ t("div", { className: "side-content__items", children: _ == null ? void 0 : _.map((e, s) => /* @__PURE__ */ t(de, { children: /* @__PURE__ */ o(
687
+ /* @__PURE__ */ a("div", { className: "landing__side-content", children: [
688
+ f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
689
+ h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ a(j, { children: [
690
+ /* @__PURE__ */ n("div", { className: "side-content__items", children: h == null ? void 0 : h.map((e, l) => /* @__PURE__ */ n(de, { children: /* @__PURE__ */ a(
688
691
  "div",
689
692
  {
690
693
  className: "side-content__item",
691
- onClick: () => N(e),
694
+ onClick: () => y(e),
692
695
  children: [
693
- /* @__PURE__ */ t(
694
- ve,
696
+ /* @__PURE__ */ n(
697
+ ge,
695
698
  {
696
- src: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
697
- alt: `Mini blog ${s + 1}`,
699
+ src: b(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
700
+ alt: `Mini blog ${l + 1}`,
698
701
  className: "item__image"
699
702
  }
700
703
  ),
701
- /* @__PURE__ */ o("div", { className: "item__content", children: [
702
- /* @__PURE__ */ t("div", { className: "item__title", children: e == null ? void 0 : e.title }),
703
- /* @__PURE__ */ t("div", { className: "item__description", children: fe(e == null ? void 0 : e.publishedAt) })
704
+ /* @__PURE__ */ a("div", { className: "item__content", children: [
705
+ /* @__PURE__ */ n("div", { className: "item__title", children: e == null ? void 0 : e.title }),
706
+ /* @__PURE__ */ n("div", { className: "item__description", children: he(e == null ? void 0 : e.publishedAt) })
704
707
  ] })
705
708
  ]
706
709
  }
707
- ) }, `mini_blg_${s}`)) }),
708
- /* @__PURE__ */ t(ue, { onClick: X, className: "side-content__link", children: H })
710
+ ) }, `mini_blg_${l}`)) }),
711
+ /* @__PURE__ */ n(ue, { onClick: Z, className: "side-content__link", children: X })
709
712
  ] })
710
713
  ] })
711
714
  ] });
712
715
  }
713
716
  );
714
- Ne.propTypes = {
715
- mainTitle: n.string,
716
- sideTitle: n.string,
717
- tags: n.array,
718
- selectedTag: n.any,
719
- handleSelectTag: n.func,
720
- blogs: n.array,
721
- miniBlogs: n.array,
722
- products: n.array,
723
- blogsLoading: n.bool,
724
- productsLoading: n.bool,
725
- sortingOptions: n.array,
726
- sortBy: n.any,
727
- handleSortBy: n.func,
728
- allTagText: n.string,
729
- searchPlaceholderText: n.string,
730
- timeToReadText: n.string,
731
- getBlogImageUrl: n.func,
732
- handleSelectBlog: n.func,
733
- handleSelectBlogTag: n.func,
734
- handleShareBlog: n.func,
735
- handleBookmarkBlog: n.func,
736
- showAllButtonLink: n.string,
737
- showAllButtonText: n.string,
738
- viewAllButtonText: n.string,
739
- handleShowAll: n.func,
740
- handleSelectProduct: n.func,
741
- getProductImageUrl: n.func,
742
- page: n.number,
743
- handlePage: n.func,
744
- perPage: n.any,
745
- handlePerPage: n.func,
746
- totalPage: n.number,
747
- perPageOptions: n.array,
748
- handleSearch: n.func
749
- };
750
717
  export {
751
- Ne as default
718
+ Ee as default
752
719
  };