@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.
- package/dist/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +150 -158
- package/dist/BlogCardsSponsoredSection.cjs +5 -5
- package/dist/BlogCardsSponsoredSection.js +55 -51
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +182 -215
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +134 -116
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +26 -24
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +21 -19
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +81 -76
- package/dist/BlogsSectionLarge.cjs +6 -6
- package/dist/BlogsSectionLarge.js +34 -31
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +68 -63
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +67 -54
- package/dist/BlogsSectionWithFilters.cjs +9 -9
- package/dist/BlogsSectionWithFilters.js +98 -84
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +50 -32
- package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
- package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
- package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +23 -21
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +38 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
- package/dist/FieldOfInterestsMasonrySection.js +87 -83
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +83 -46
- package/dist/GiftCardsSection.cjs +7 -7
- package/dist/GiftCardsSection.js +56 -47
- package/dist/MasonryGeneralCardsSection.cjs +9 -9
- package/dist/MasonryGeneralCardsSection.js +82 -68
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +58 -50
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +79 -70
- package/dist/QuattroCardsSection.cjs +8 -8
- package/dist/QuattroCardsSection.js +62 -40
- package/dist/ReviewsSection.cjs +8 -8
- package/dist/ReviewsSection.js +92 -67
- package/dist/SalesCampaignsSection.cjs +18 -18
- package/dist/SalesCampaignsSection.js +304 -298
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +25 -23
- package/dist/SimpleCategoriesSection.cjs +4 -4
- package/dist/SimpleCategoriesSection.js +25 -22
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +53 -50
- package/dist/UrgentSaleProductsSection.cjs +4 -4
- package/dist/UrgentSaleProductsSection.js +41 -38
- package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
- package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
- package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
- package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
- package/dist/index-Coo0aVuh.cjs +362 -0
- package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
- package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
- package/dist/{index-DZ8515cZ.js → index-PhMLWAC1.js} +277 -172
- package/package.json +1 -1
- package/dist/index-Bmr3IeZ_.cjs +0 -308
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as V, useRef as
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
107
|
-
handlePerPage:
|
|
105
|
+
perPage: f,
|
|
106
|
+
handlePerPage: p = () => {
|
|
108
107
|
},
|
|
109
108
|
page: c = 1,
|
|
110
|
-
handlePage:
|
|
109
|
+
handlePage: d = () => {
|
|
111
110
|
},
|
|
112
|
-
totalPage:
|
|
113
|
-
},
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
c > 1 && (
|
|
117
|
-
},
|
|
118
|
-
c <
|
|
119
|
-
},
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
122
|
-
for (let
|
|
123
|
-
|
|
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 ?
|
|
126
|
-
return
|
|
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:
|
|
129
|
+
children: i
|
|
131
130
|
},
|
|
132
|
-
`pagination-ellipsis__${
|
|
133
|
-
) : /* @__PURE__ */
|
|
131
|
+
`pagination-ellipsis__${x}`
|
|
132
|
+
) : /* @__PURE__ */ n(
|
|
134
133
|
"div",
|
|
135
134
|
{
|
|
136
|
-
onClick: () =>
|
|
137
|
-
className: `pagination__page ${c ===
|
|
138
|
-
children:
|
|
135
|
+
onClick: () => d(i),
|
|
136
|
+
className: `pagination__page ${c === i ? "active" : ""}`,
|
|
137
|
+
children: i
|
|
139
138
|
},
|
|
140
|
-
`pagination-page__${
|
|
139
|
+
`pagination-page__${x}`
|
|
141
140
|
));
|
|
142
141
|
};
|
|
143
|
-
return /* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ a(we, { className: "pagination", children: [
|
|
143
|
+
/* @__PURE__ */ n(
|
|
145
144
|
W,
|
|
146
145
|
{
|
|
147
146
|
color: "neutral",
|
|
148
|
-
control: ((
|
|
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:
|
|
151
|
+
children: s == null ? void 0 : s.map((r, i) => /* @__PURE__ */ n(
|
|
153
152
|
E,
|
|
154
153
|
{
|
|
155
|
-
active: (
|
|
154
|
+
active: (r == null ? void 0 : r.code) === (f == null ? void 0 : f.code),
|
|
156
155
|
className: "sort-by__item",
|
|
157
|
-
onClick: () =>
|
|
158
|
-
children:
|
|
156
|
+
onClick: () => p(r),
|
|
157
|
+
children: r == null ? void 0 : r.name
|
|
159
158
|
},
|
|
160
|
-
`blog-epxlore-section-per-page-option__${
|
|
159
|
+
`blog-epxlore-section-per-page-option__${i + 1}`
|
|
161
160
|
))
|
|
162
161
|
}
|
|
163
162
|
),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
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:
|
|
170
|
-
children: /* @__PURE__ */
|
|
168
|
+
onClick: u,
|
|
169
|
+
children: /* @__PURE__ */ n(z, { icon: " mng-lnc-chevron--left" })
|
|
171
170
|
}
|
|
172
171
|
),
|
|
173
|
-
|
|
174
|
-
/* @__PURE__ */
|
|
172
|
+
w(),
|
|
173
|
+
/* @__PURE__ */ n(
|
|
175
174
|
"div",
|
|
176
175
|
{
|
|
177
|
-
className: `pagination__page ${c ===
|
|
178
|
-
onClick:
|
|
179
|
-
children: /* @__PURE__ */
|
|
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
|
-
),
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
457
|
+
`, Ee = V(
|
|
459
458
|
({
|
|
460
|
-
mainTitle:
|
|
461
|
-
sideTitle:
|
|
462
|
-
tags:
|
|
459
|
+
mainTitle: s,
|
|
460
|
+
sideTitle: f,
|
|
461
|
+
tags: p,
|
|
463
462
|
selectedTag: c,
|
|
464
|
-
handleSelectTag:
|
|
463
|
+
handleSelectTag: d = () => {
|
|
465
464
|
},
|
|
466
|
-
blogs:
|
|
467
|
-
miniBlogs:
|
|
468
|
-
products:
|
|
469
|
-
blogsLoading:
|
|
470
|
-
productsLoading:
|
|
471
|
-
sortingOptions:
|
|
472
|
-
sortBy:
|
|
473
|
-
handleSortBy:
|
|
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:
|
|
476
|
-
searchPlaceholderText:
|
|
477
|
-
timeToReadText:
|
|
478
|
-
getBlogImageUrl:
|
|
474
|
+
allTagText: i = "All",
|
|
475
|
+
searchPlaceholderText: x = "Search blogs",
|
|
476
|
+
timeToReadText: $ = "{0} min read",
|
|
477
|
+
getBlogImageUrl: b = () => {
|
|
479
478
|
},
|
|
480
|
-
handleSelectBlog:
|
|
479
|
+
handleSelectBlog: y = () => {
|
|
481
480
|
},
|
|
482
481
|
handleSelectBlogTag: A = () => {
|
|
483
482
|
},
|
|
484
|
-
handleShareBlog:
|
|
483
|
+
handleShareBlog: D = () => {
|
|
485
484
|
},
|
|
486
485
|
// handleBookmarkBlog = () => {},
|
|
487
|
-
showAllButtonLink:
|
|
488
|
-
showAllButtonText:
|
|
489
|
-
viewAllButtonText:
|
|
486
|
+
showAllButtonLink: H,
|
|
487
|
+
showAllButtonText: R = "Show all products",
|
|
488
|
+
viewAllButtonText: X = "View all (11)",
|
|
490
489
|
// viewAllButtonLink,
|
|
491
|
-
handleViewAll:
|
|
490
|
+
handleViewAll: Z = () => {
|
|
492
491
|
},
|
|
493
|
-
handleShowAll:
|
|
492
|
+
handleShowAll: G = () => {
|
|
494
493
|
},
|
|
495
|
-
handleSelectProduct:
|
|
494
|
+
handleSelectProduct: J = () => {
|
|
496
495
|
},
|
|
497
|
-
getProductImageUrl:
|
|
496
|
+
getProductImageUrl: K = () => {
|
|
498
497
|
},
|
|
499
|
-
page:
|
|
500
|
-
handlePage:
|
|
498
|
+
page: Q,
|
|
499
|
+
handlePage: N = () => {
|
|
501
500
|
},
|
|
502
|
-
perPage:
|
|
501
|
+
perPage: U,
|
|
503
502
|
handlePerPage: Y = () => {
|
|
504
503
|
},
|
|
505
|
-
totalPage:
|
|
506
|
-
perPageOptions:
|
|
507
|
-
handleSearch:
|
|
504
|
+
totalPage: k,
|
|
505
|
+
perPageOptions: O,
|
|
506
|
+
handleSearch: B = () => {
|
|
508
507
|
},
|
|
509
|
-
onBookmark:
|
|
508
|
+
onBookmark: I = () => {
|
|
510
509
|
},
|
|
511
|
-
bookmarkComponent:
|
|
512
|
-
componentName:
|
|
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" }),
|
|
516
|
-
},
|
|
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 =
|
|
522
|
+
const e = o == null ? void 0 : o.current;
|
|
523
523
|
if (!e) return;
|
|
524
|
-
const
|
|
524
|
+
const l = () => {
|
|
525
525
|
const ae = e.scrollWidth - e.clientWidth;
|
|
526
|
-
te((
|
|
527
|
-
...
|
|
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
|
-
},
|
|
533
|
-
return
|
|
534
|
-
|
|
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 =
|
|
539
|
+
(e = o == null ? void 0 : o.current) == null || e.scrollBy({ left: 100, behavior: "smooth" });
|
|
540
540
|
}, ie = () => {
|
|
541
541
|
var e;
|
|
542
|
-
(e =
|
|
542
|
+
(e = o == null ? void 0 : o.current) == null || e.scrollBy({ left: -100, behavior: "smooth" });
|
|
543
543
|
};
|
|
544
|
-
return /* @__PURE__ */
|
|
545
|
-
/* @__PURE__ */
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
!ne && (
|
|
549
|
-
/* @__PURE__ */
|
|
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:
|
|
556
|
+
disabled: _ == null ? void 0 : _.leftArrowDisabled,
|
|
557
557
|
className: "main-content__tag-nav",
|
|
558
558
|
onClick: ie
|
|
559
559
|
}
|
|
560
560
|
),
|
|
561
|
-
/* @__PURE__ */
|
|
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:
|
|
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
|
-
|
|
576
|
-
|
|
575
|
+
p && /* @__PURE__ */ n(
|
|
576
|
+
ve,
|
|
577
577
|
{
|
|
578
|
-
ref:
|
|
579
|
-
tags:
|
|
580
|
-
allTagText:
|
|
578
|
+
ref: o,
|
|
579
|
+
tags: p,
|
|
580
|
+
allTagText: i,
|
|
581
581
|
selectedTagCode: c,
|
|
582
|
-
onSelectTag:
|
|
582
|
+
onSelectTag: d
|
|
583
583
|
}
|
|
584
584
|
),
|
|
585
|
-
/* @__PURE__ */
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
|
|
585
|
+
/* @__PURE__ */ a("div", { className: "main-content__actions", children: [
|
|
586
|
+
/* @__PURE__ */ n(
|
|
587
|
+
fe,
|
|
588
588
|
{
|
|
589
589
|
className: "main-content__search",
|
|
590
|
-
placeholder:
|
|
590
|
+
placeholder: x,
|
|
591
591
|
debounceTime: 200,
|
|
592
|
-
prefix: /* @__PURE__ */
|
|
593
|
-
|
|
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:
|
|
601
|
+
onChange: B
|
|
602
602
|
}
|
|
603
603
|
),
|
|
604
|
-
/* @__PURE__ */
|
|
604
|
+
/* @__PURE__ */ n(
|
|
605
605
|
W,
|
|
606
606
|
{
|
|
607
607
|
color: "neutral",
|
|
608
|
-
control:
|
|
608
|
+
control: m == null ? void 0 : m.name,
|
|
609
609
|
zIndex: 1001,
|
|
610
610
|
className: "main-content__sort-by",
|
|
611
|
-
children:
|
|
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) === (
|
|
614
|
+
active: (e == null ? void 0 : e.code) === (m == null ? void 0 : m.code),
|
|
615
615
|
className: "sort-by__item",
|
|
616
|
-
onClick: () =>
|
|
616
|
+
onClick: () => r(e),
|
|
617
617
|
children: e == null ? void 0 : e.name
|
|
618
618
|
},
|
|
619
|
-
`blog-epxlore-section-sorting-option__${
|
|
619
|
+
`blog-epxlore-section-sorting-option__${l + 1}`
|
|
620
620
|
))
|
|
621
621
|
}
|
|
622
622
|
)
|
|
623
623
|
] }),
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
-
|
|
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:
|
|
629
|
-
items:
|
|
630
|
-
isLoading:
|
|
631
|
-
getImage:
|
|
632
|
-
onSelectCard:
|
|
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:
|
|
635
|
-
onBookmark:
|
|
636
|
-
bookmarkComponent:
|
|
637
|
-
componentName:
|
|
634
|
+
onShare: D,
|
|
635
|
+
onBookmark: I,
|
|
636
|
+
bookmarkComponent: L,
|
|
637
|
+
componentName: S,
|
|
638
|
+
LinkComponent: C
|
|
638
639
|
}
|
|
639
640
|
),
|
|
640
|
-
/* @__PURE__ */
|
|
641
|
-
|
|
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:
|
|
645
|
-
buttonLink:
|
|
646
|
-
onButtonAction:
|
|
647
|
-
onSelectCard:
|
|
648
|
-
items:
|
|
649
|
-
isLoading:
|
|
650
|
-
getImage:
|
|
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:
|
|
653
|
+
componentName: S,
|
|
654
|
+
LinkComponent: C
|
|
653
655
|
}
|
|
654
656
|
),
|
|
655
|
-
/* @__PURE__ */
|
|
656
|
-
|
|
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:
|
|
660
|
-
items:
|
|
661
|
-
isLoading:
|
|
662
|
-
getImage:
|
|
663
|
-
onSelectCard:
|
|
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:
|
|
666
|
-
onBookmark:
|
|
667
|
-
bookmarkComponent:
|
|
668
|
-
componentName:
|
|
667
|
+
onShare: D,
|
|
668
|
+
onBookmark: I,
|
|
669
|
+
bookmarkComponent: L,
|
|
670
|
+
componentName: S,
|
|
671
|
+
LinkComponent: C
|
|
669
672
|
}
|
|
670
673
|
)
|
|
671
674
|
] }),
|
|
672
|
-
|
|
675
|
+
k && k > 1 && /* @__PURE__ */ n(
|
|
673
676
|
be,
|
|
674
677
|
{
|
|
675
|
-
perPageOptions:
|
|
676
|
-
perPage:
|
|
678
|
+
perPageOptions: O,
|
|
679
|
+
perPage: U,
|
|
677
680
|
handlePerPage: Y,
|
|
678
|
-
page:
|
|
681
|
+
page: Q,
|
|
679
682
|
handlePage: ee,
|
|
680
|
-
totalPage:
|
|
683
|
+
totalPage: k
|
|
681
684
|
}
|
|
682
685
|
)
|
|
683
686
|
] }),
|
|
684
|
-
/* @__PURE__ */
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
/* @__PURE__ */
|
|
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: () =>
|
|
694
|
+
onClick: () => y(e),
|
|
692
695
|
children: [
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
|
|
696
|
+
/* @__PURE__ */ n(
|
|
697
|
+
ge,
|
|
695
698
|
{
|
|
696
|
-
src:
|
|
697
|
-
alt: `Mini blog ${
|
|
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__ */
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
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_${
|
|
708
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
718
|
+
Ee as default
|
|
752
719
|
};
|