@lanaco/lnc-react-ui 4.0.162 → 4.0.164
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/BlogExploreSection.cjs +43 -8
- package/dist/BlogExploreSection.js +303 -210
- package/dist/{CustomStyles-BwHfr4iM.cjs → CustomStyles-Q6et9atl.cjs} +4 -4
- package/dist/{CustomStyles-iconSXFL.js → CustomStyles-SyQRnjuy.js} +95 -95
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/FaqSection.cjs +1 -1
- package/dist/FaqSection.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{tag-cRMfP-SZ.js → tag-BtS5lWJ0.js} +15 -14
- package/dist/{tag-yputMSpE.cjs → tag-CmeZsPQt.cjs} +9 -8
- package/package.json +1 -1
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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";
|
|
4
|
+
import { u as me } from "./useDetectMobile-Bkvj0VMa.js";
|
|
5
|
+
import { p as he, s as fe } from "./utils-BdsZgOUE.js";
|
|
6
|
+
import _e from "./TextInput.js";
|
|
7
|
+
import C from "./Icon.js";
|
|
8
|
+
import ue from "./Link.js";
|
|
9
|
+
import M from "./IconButton.js";
|
|
10
|
+
import W from "./DropdownMenu.js";
|
|
9
11
|
import E from "./DropdownItem.js";
|
|
10
|
-
import { F as
|
|
11
|
-
import
|
|
12
|
-
import { s as
|
|
13
|
-
import { P as
|
|
14
|
-
import
|
|
15
|
-
import { M as
|
|
16
|
-
const
|
|
12
|
+
import { F as ge } from "./tag-BtS5lWJ0.js";
|
|
13
|
+
import pe from "./BlogProductCardsSection.js";
|
|
14
|
+
import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
15
|
+
import { P as ve } from "./index-CF3HhgvN.js";
|
|
16
|
+
import F from "./BlogListSection.js";
|
|
17
|
+
import { M as xe } from "./consts-BuFChS64.js";
|
|
18
|
+
const ye = R.div`
|
|
17
19
|
display: flex;
|
|
18
20
|
justify-content: space-between;
|
|
19
21
|
align-items: center;
|
|
@@ -94,93 +96,93 @@ const ce = M.div`
|
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
|
-
`,
|
|
99
|
+
`, be = V(
|
|
98
100
|
({
|
|
99
|
-
perPageOptions:
|
|
101
|
+
perPageOptions: d = [
|
|
100
102
|
{ code: 10, name: "Show 10 items" },
|
|
101
103
|
{ code: 25, name: "Show 25 items" },
|
|
102
104
|
{ code: 50, name: "Show 50 items" }
|
|
103
105
|
],
|
|
104
|
-
perPage:
|
|
105
|
-
handlePerPage:
|
|
106
|
+
perPage: u,
|
|
107
|
+
handlePerPage: v = () => {
|
|
106
108
|
},
|
|
107
109
|
page: c = 1,
|
|
108
|
-
handlePage:
|
|
110
|
+
handlePage: m = () => {
|
|
109
111
|
},
|
|
110
|
-
totalPage:
|
|
111
|
-
},
|
|
112
|
-
var
|
|
113
|
-
const
|
|
114
|
-
c > 1 && (
|
|
115
|
-
}, p = () => {
|
|
116
|
-
c < t && (s == null || s(c + 1));
|
|
112
|
+
totalPage: r
|
|
113
|
+
}, _) => {
|
|
114
|
+
var p, h;
|
|
115
|
+
const g = () => {
|
|
116
|
+
c > 1 && (m == null || m(c - 1));
|
|
117
117
|
}, x = () => {
|
|
118
|
+
c < r && (m == null || m(c + 1));
|
|
119
|
+
}, b = () => {
|
|
118
120
|
const i = [];
|
|
119
|
-
if (
|
|
120
|
-
for (let a = 1; a <=
|
|
121
|
+
if (r <= 7)
|
|
122
|
+
for (let a = 1; a <= r; a++)
|
|
121
123
|
i.push(a);
|
|
122
124
|
else
|
|
123
|
-
c <= 3 ? i.push(1, 2, 3, "...",
|
|
124
|
-
return i == null ? void 0 : i.map((a,
|
|
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(
|
|
125
127
|
"div",
|
|
126
128
|
{
|
|
127
129
|
className: "pagination__page ellipsis",
|
|
128
130
|
children: a
|
|
129
131
|
},
|
|
130
|
-
`pagination-ellipsis__${
|
|
131
|
-
) : /* @__PURE__ */
|
|
132
|
+
`pagination-ellipsis__${y}`
|
|
133
|
+
) : /* @__PURE__ */ t(
|
|
132
134
|
"div",
|
|
133
135
|
{
|
|
134
|
-
onClick: () =>
|
|
136
|
+
onClick: () => m(a),
|
|
135
137
|
className: `pagination__page ${c === a ? "active" : ""}`,
|
|
136
138
|
children: a
|
|
137
139
|
},
|
|
138
|
-
`pagination-page__${
|
|
140
|
+
`pagination-page__${y}`
|
|
139
141
|
));
|
|
140
142
|
};
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
|
|
143
|
+
return /* @__PURE__ */ o(ye, { className: "pagination", children: [
|
|
144
|
+
/* @__PURE__ */ t(
|
|
145
|
+
W,
|
|
144
146
|
{
|
|
145
147
|
color: "neutral",
|
|
146
|
-
control: ((
|
|
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
149
|
placement: "bottom",
|
|
148
150
|
zIndex: 1001,
|
|
149
151
|
className: "pagination__per-page",
|
|
150
|
-
children:
|
|
152
|
+
children: d == null ? void 0 : d.map((i, a) => /* @__PURE__ */ t(
|
|
151
153
|
E,
|
|
152
154
|
{
|
|
153
|
-
active: (i == null ? void 0 : i.code) === (
|
|
155
|
+
active: (i == null ? void 0 : i.code) === (u == null ? void 0 : u.code),
|
|
154
156
|
className: "sort-by__item",
|
|
155
|
-
onClick: () =>
|
|
157
|
+
onClick: () => v(i),
|
|
156
158
|
children: i == null ? void 0 : i.name
|
|
157
159
|
},
|
|
158
160
|
`blog-epxlore-section-per-page-option__${a + 1}`
|
|
159
161
|
))
|
|
160
162
|
}
|
|
161
163
|
),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ o("div", { className: "pagination__pages", children: [
|
|
165
|
+
/* @__PURE__ */ t(
|
|
164
166
|
"div",
|
|
165
167
|
{
|
|
166
168
|
className: `pagination__page ${c === 1 ? "disabled" : ""}`,
|
|
167
|
-
onClick:
|
|
168
|
-
children: /* @__PURE__ */
|
|
169
|
+
onClick: g,
|
|
170
|
+
children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--left" })
|
|
169
171
|
}
|
|
170
172
|
),
|
|
171
|
-
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
+
b(),
|
|
174
|
+
/* @__PURE__ */ t(
|
|
173
175
|
"div",
|
|
174
176
|
{
|
|
175
|
-
className: `pagination__page ${c ===
|
|
176
|
-
onClick:
|
|
177
|
-
children: /* @__PURE__ */
|
|
177
|
+
className: `pagination__page ${c === r ? "disabled" : ""}`,
|
|
178
|
+
onClick: x,
|
|
179
|
+
children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--right" })
|
|
178
180
|
}
|
|
179
181
|
)
|
|
180
182
|
] })
|
|
181
183
|
] });
|
|
182
184
|
}
|
|
183
|
-
),
|
|
185
|
+
), we = R.div`
|
|
184
186
|
display: flex;
|
|
185
187
|
align-items: flex-start;
|
|
186
188
|
gap: 2rem;
|
|
@@ -197,18 +199,44 @@ const ce = M.div`
|
|
|
197
199
|
flex-direction: column;
|
|
198
200
|
align-items: flex-start;
|
|
199
201
|
gap: 1.5rem;
|
|
202
|
+
max-width: 50rem;
|
|
200
203
|
|
|
201
204
|
border-right: 1px solid var(--gray-200, #dddfe4);
|
|
202
205
|
padding-right: 2rem;
|
|
203
206
|
|
|
204
207
|
& .section__tags {
|
|
205
|
-
flex-wrap:
|
|
208
|
+
flex-wrap: nowrap;
|
|
209
|
+
width: 100%;
|
|
210
|
+
overflow-x: hidden;
|
|
211
|
+
white-space: nowrap;
|
|
206
212
|
}
|
|
207
213
|
|
|
208
214
|
& .pagination {
|
|
209
215
|
padding: 1.25rem 0;
|
|
210
216
|
}
|
|
211
217
|
|
|
218
|
+
& .main-content__heading {
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
width: 100%;
|
|
222
|
+
|
|
223
|
+
& .main-content__tags-nav {
|
|
224
|
+
display: flex;
|
|
225
|
+
gap: 0.25rem;
|
|
226
|
+
|
|
227
|
+
& .main-content__tag-nav {
|
|
228
|
+
&:not(:disabled) {
|
|
229
|
+
color: var(--gray-950, #14161a);
|
|
230
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
231
|
+
|
|
232
|
+
&:hover {
|
|
233
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
212
240
|
& .main-content__title {
|
|
213
241
|
color: var(--gray-950, #14161a);
|
|
214
242
|
font-size: 1.5rem;
|
|
@@ -219,7 +247,11 @@ const ce = M.div`
|
|
|
219
247
|
|
|
220
248
|
& .tags__item {
|
|
221
249
|
&:not(.active) {
|
|
222
|
-
background: var(--neutral-
|
|
250
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
251
|
+
|
|
252
|
+
&:hover {
|
|
253
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
254
|
+
}
|
|
223
255
|
}
|
|
224
256
|
}
|
|
225
257
|
|
|
@@ -356,7 +388,7 @@ const ce = M.div`
|
|
|
356
388
|
font-style: normal;
|
|
357
389
|
font-weight: 500;
|
|
358
390
|
line-height: 1.25rem;
|
|
359
|
-
${
|
|
391
|
+
${he(2)}
|
|
360
392
|
}
|
|
361
393
|
|
|
362
394
|
& .item__description {
|
|
@@ -371,16 +403,19 @@ const ce = M.div`
|
|
|
371
403
|
}
|
|
372
404
|
}
|
|
373
405
|
|
|
374
|
-
@media (max-width: ${
|
|
406
|
+
@media (max-width: ${xe + "px"}) {
|
|
375
407
|
flex-direction: column;
|
|
376
408
|
|
|
377
409
|
& .landing__main-content {
|
|
378
410
|
width: 100%;
|
|
411
|
+
max-width: 100%;
|
|
379
412
|
padding-right: 0;
|
|
380
413
|
border-right: none;
|
|
381
414
|
|
|
382
415
|
& .section__tags {
|
|
383
|
-
|
|
416
|
+
width: 100%;
|
|
417
|
+
overflow-x: auto;
|
|
418
|
+
white-space: nowrap;
|
|
384
419
|
}
|
|
385
420
|
|
|
386
421
|
& .main-content__actions {
|
|
@@ -388,6 +423,8 @@ const ce = M.div`
|
|
|
388
423
|
}
|
|
389
424
|
|
|
390
425
|
& .main-content__items {
|
|
426
|
+
width: 100%;
|
|
427
|
+
|
|
391
428
|
& .main-content__divider {
|
|
392
429
|
display: none;
|
|
393
430
|
}
|
|
@@ -418,86 +455,142 @@ const ce = M.div`
|
|
|
418
455
|
display: none;
|
|
419
456
|
}
|
|
420
457
|
}
|
|
421
|
-
`,
|
|
458
|
+
`, Ne = V(
|
|
422
459
|
({
|
|
423
|
-
mainTitle:
|
|
424
|
-
sideTitle:
|
|
425
|
-
tags:
|
|
460
|
+
mainTitle: d,
|
|
461
|
+
sideTitle: u,
|
|
462
|
+
tags: v,
|
|
426
463
|
selectedTag: c,
|
|
427
|
-
handleSelectTag:
|
|
464
|
+
handleSelectTag: m = () => {
|
|
428
465
|
},
|
|
429
|
-
blogs:
|
|
430
|
-
miniBlogs:
|
|
431
|
-
products:
|
|
432
|
-
blogsLoading:
|
|
433
|
-
productsLoading:
|
|
434
|
-
sortingOptions:
|
|
435
|
-
sortBy:
|
|
466
|
+
blogs: r,
|
|
467
|
+
miniBlogs: _,
|
|
468
|
+
products: g,
|
|
469
|
+
blogsLoading: x = !1,
|
|
470
|
+
productsLoading: b = !1,
|
|
471
|
+
sortingOptions: p,
|
|
472
|
+
sortBy: h,
|
|
436
473
|
handleSortBy: i = () => {
|
|
437
474
|
},
|
|
438
475
|
allTagText: a = "All",
|
|
439
|
-
searchPlaceholderText:
|
|
440
|
-
timeToReadText:
|
|
441
|
-
getBlogImageUrl:
|
|
476
|
+
searchPlaceholderText: y = "Search blogs",
|
|
477
|
+
timeToReadText: L = "{0} min read",
|
|
478
|
+
getBlogImageUrl: w = () => {
|
|
442
479
|
},
|
|
443
|
-
handleSelectBlog:
|
|
480
|
+
handleSelectBlog: N = () => {
|
|
444
481
|
},
|
|
445
|
-
handleSelectBlogTag:
|
|
482
|
+
handleSelectBlogTag: A = () => {
|
|
446
483
|
},
|
|
447
|
-
handleShareBlog:
|
|
484
|
+
handleShareBlog: z = () => {
|
|
448
485
|
},
|
|
449
486
|
// handleBookmarkBlog = () => {},
|
|
450
|
-
showAllButtonLink:
|
|
451
|
-
showAllButtonText:
|
|
452
|
-
viewAllButtonText:
|
|
453
|
-
viewAllButtonLink
|
|
454
|
-
handleViewAll:
|
|
487
|
+
showAllButtonLink: U,
|
|
488
|
+
showAllButtonText: q = "Show all products",
|
|
489
|
+
viewAllButtonText: H = "View all (11)",
|
|
490
|
+
// viewAllButtonLink,
|
|
491
|
+
handleViewAll: X = () => {
|
|
455
492
|
},
|
|
456
|
-
handleShowAll:
|
|
493
|
+
handleShowAll: Z = () => {
|
|
457
494
|
},
|
|
458
|
-
handleSelectProduct:
|
|
495
|
+
handleSelectProduct: G = () => {
|
|
459
496
|
},
|
|
460
|
-
getProductImageUrl:
|
|
497
|
+
getProductImageUrl: J = () => {
|
|
461
498
|
},
|
|
462
|
-
page:
|
|
463
|
-
handlePage:
|
|
499
|
+
page: K,
|
|
500
|
+
handlePage: k = () => {
|
|
464
501
|
},
|
|
465
|
-
perPage:
|
|
466
|
-
handlePerPage:
|
|
502
|
+
perPage: Q,
|
|
503
|
+
handlePerPage: Y = () => {
|
|
467
504
|
},
|
|
468
|
-
totalPage:
|
|
469
|
-
perPageOptions:
|
|
470
|
-
handleSearch:
|
|
505
|
+
totalPage: S,
|
|
506
|
+
perPageOptions: B,
|
|
507
|
+
handleSearch: O = () => {
|
|
471
508
|
},
|
|
472
509
|
onBookmark: $ = () => {
|
|
473
510
|
},
|
|
474
|
-
bookmarkComponent:
|
|
475
|
-
componentName:
|
|
476
|
-
},
|
|
477
|
-
const
|
|
478
|
-
document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }),
|
|
511
|
+
bookmarkComponent: I = /* @__PURE__ */ t(j, {}),
|
|
512
|
+
componentName: T
|
|
513
|
+
}, P) => {
|
|
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({
|
|
517
|
+
arrowsVisible: !1,
|
|
518
|
+
leftArrowDisabled: !1,
|
|
519
|
+
rightArrowDisabled: !1
|
|
520
|
+
});
|
|
521
|
+
se(() => {
|
|
522
|
+
const e = l == null ? void 0 : l.current;
|
|
523
|
+
if (!e) return;
|
|
524
|
+
const s = () => {
|
|
525
|
+
const ae = e.scrollWidth - e.clientWidth;
|
|
526
|
+
te((oe) => ({
|
|
527
|
+
...oe,
|
|
528
|
+
arrowsVisible: e.clientWidth < e.scrollWidth,
|
|
529
|
+
leftArrowDisabled: e.scrollLeft <= 0,
|
|
530
|
+
rightArrowDisabled: e.scrollLeft >= ae
|
|
531
|
+
}));
|
|
532
|
+
}, D = new ResizeObserver(s);
|
|
533
|
+
return D.observe(e), s(), e.addEventListener("scroll", s), () => {
|
|
534
|
+
D.disconnect(), e.removeEventListener("scroll", s);
|
|
535
|
+
};
|
|
536
|
+
}, []);
|
|
537
|
+
const re = () => {
|
|
538
|
+
var e;
|
|
539
|
+
(e = l == null ? void 0 : l.current) == null || e.scrollBy({ left: 100, behavior: "smooth" });
|
|
540
|
+
}, ie = () => {
|
|
541
|
+
var e;
|
|
542
|
+
(e = l == null ? void 0 : l.current) == null || e.scrollBy({ left: -100, behavior: "smooth" });
|
|
479
543
|
};
|
|
480
|
-
return /* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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(
|
|
550
|
+
M,
|
|
551
|
+
{
|
|
552
|
+
icon: "chevron-left",
|
|
553
|
+
borderRadius: "curved",
|
|
554
|
+
btnType: "tinted",
|
|
555
|
+
color: "neutral",
|
|
556
|
+
disabled: f == null ? void 0 : f.leftArrowDisabled,
|
|
557
|
+
className: "main-content__tag-nav",
|
|
558
|
+
onClick: ie
|
|
559
|
+
}
|
|
560
|
+
),
|
|
561
|
+
/* @__PURE__ */ t(
|
|
562
|
+
M,
|
|
563
|
+
{
|
|
564
|
+
icon: "chevron-right",
|
|
565
|
+
borderRadius: "curved",
|
|
566
|
+
btnType: "tinted",
|
|
567
|
+
color: "neutral",
|
|
568
|
+
disabled: f == null ? void 0 : f.rightArrowDisabled,
|
|
569
|
+
className: "main-content__tag-nav",
|
|
570
|
+
onClick: re
|
|
571
|
+
}
|
|
572
|
+
)
|
|
573
|
+
] })
|
|
574
|
+
] }),
|
|
575
|
+
v && /* @__PURE__ */ t(
|
|
576
|
+
ge,
|
|
485
577
|
{
|
|
486
|
-
|
|
578
|
+
ref: l,
|
|
579
|
+
tags: v,
|
|
487
580
|
allTagText: a,
|
|
488
581
|
selectedTagCode: c,
|
|
489
|
-
onSelectTag:
|
|
582
|
+
onSelectTag: m
|
|
490
583
|
}
|
|
491
584
|
),
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
/* @__PURE__ */
|
|
494
|
-
|
|
585
|
+
/* @__PURE__ */ o("div", { className: "main-content__actions", children: [
|
|
586
|
+
/* @__PURE__ */ t(
|
|
587
|
+
_e,
|
|
495
588
|
{
|
|
496
589
|
className: "main-content__search",
|
|
497
|
-
placeholder:
|
|
590
|
+
placeholder: y,
|
|
498
591
|
debounceTime: 200,
|
|
499
|
-
prefix: /* @__PURE__ */
|
|
500
|
-
|
|
592
|
+
prefix: /* @__PURE__ */ t(
|
|
593
|
+
C,
|
|
501
594
|
{
|
|
502
595
|
icon: " mng-lnc-search",
|
|
503
596
|
sizeInUnits: "1.25rem",
|
|
@@ -505,155 +598,155 @@ const ce = M.div`
|
|
|
505
598
|
}
|
|
506
599
|
),
|
|
507
600
|
color: "neutral",
|
|
508
|
-
onChange:
|
|
601
|
+
onChange: O
|
|
509
602
|
}
|
|
510
603
|
),
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
|
|
604
|
+
/* @__PURE__ */ t(
|
|
605
|
+
W,
|
|
513
606
|
{
|
|
514
607
|
color: "neutral",
|
|
515
|
-
control:
|
|
608
|
+
control: h == null ? void 0 : h.name,
|
|
516
609
|
zIndex: 1001,
|
|
517
610
|
className: "main-content__sort-by",
|
|
518
|
-
children:
|
|
611
|
+
children: p == null ? void 0 : p.map((e, s) => /* @__PURE__ */ t(
|
|
519
612
|
E,
|
|
520
613
|
{
|
|
521
|
-
active: (
|
|
614
|
+
active: (e == null ? void 0 : e.code) === (h == null ? void 0 : h.code),
|
|
522
615
|
className: "sort-by__item",
|
|
523
|
-
onClick: () => i(
|
|
524
|
-
children:
|
|
616
|
+
onClick: () => i(e),
|
|
617
|
+
children: e == null ? void 0 : e.name
|
|
525
618
|
},
|
|
526
|
-
`blog-epxlore-section-sorting-option__${
|
|
619
|
+
`blog-epxlore-section-sorting-option__${s + 1}`
|
|
527
620
|
))
|
|
528
621
|
}
|
|
529
622
|
)
|
|
530
623
|
] }),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
|
|
533
|
-
|
|
624
|
+
/* @__PURE__ */ o("div", { className: "main-content__items", children: [
|
|
625
|
+
r && (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
|
|
626
|
+
F,
|
|
534
627
|
{
|
|
535
|
-
timeToReadText:
|
|
536
|
-
items:
|
|
537
|
-
isLoading:
|
|
538
|
-
getImage:
|
|
539
|
-
onSelectCard:
|
|
540
|
-
onSelectOption:
|
|
541
|
-
onShare:
|
|
628
|
+
timeToReadText: L,
|
|
629
|
+
items: r == null ? void 0 : r.slice(0, 5),
|
|
630
|
+
isLoading: x,
|
|
631
|
+
getImage: w,
|
|
632
|
+
onSelectCard: N,
|
|
633
|
+
onSelectOption: A,
|
|
634
|
+
onShare: z,
|
|
542
635
|
onBookmark: $,
|
|
543
|
-
bookmarkComponent:
|
|
544
|
-
componentName:
|
|
636
|
+
bookmarkComponent: I,
|
|
637
|
+
componentName: T
|
|
545
638
|
}
|
|
546
639
|
),
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
|
|
549
|
-
|
|
640
|
+
/* @__PURE__ */ t("div", { className: "main-content__divider" }),
|
|
641
|
+
g && (g == null ? void 0 : g.length) > 0 && /* @__PURE__ */ t(
|
|
642
|
+
pe,
|
|
550
643
|
{
|
|
551
|
-
buttonText:
|
|
552
|
-
buttonLink:
|
|
553
|
-
onButtonAction:
|
|
554
|
-
onSelectCard:
|
|
555
|
-
items:
|
|
556
|
-
isLoading:
|
|
557
|
-
getImage:
|
|
644
|
+
buttonText: q,
|
|
645
|
+
buttonLink: U,
|
|
646
|
+
onButtonAction: Z,
|
|
647
|
+
onSelectCard: G,
|
|
648
|
+
items: g,
|
|
649
|
+
isLoading: b,
|
|
650
|
+
getImage: J,
|
|
558
651
|
isHighlight: !0,
|
|
559
|
-
componentName:
|
|
652
|
+
componentName: T
|
|
560
653
|
}
|
|
561
654
|
),
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
|
|
564
|
-
|
|
655
|
+
/* @__PURE__ */ t("div", { className: "main-content__divider" }),
|
|
656
|
+
r && (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
|
|
657
|
+
F,
|
|
565
658
|
{
|
|
566
|
-
timeToReadText:
|
|
567
|
-
items:
|
|
568
|
-
isLoading:
|
|
569
|
-
getImage:
|
|
570
|
-
onSelectCard:
|
|
571
|
-
onSelectOption:
|
|
572
|
-
onShare:
|
|
659
|
+
timeToReadText: L,
|
|
660
|
+
items: r == null ? void 0 : r.slice(5),
|
|
661
|
+
isLoading: x,
|
|
662
|
+
getImage: w,
|
|
663
|
+
onSelectCard: N,
|
|
664
|
+
onSelectOption: A,
|
|
665
|
+
onShare: z,
|
|
573
666
|
onBookmark: $,
|
|
574
|
-
bookmarkComponent:
|
|
575
|
-
componentName:
|
|
667
|
+
bookmarkComponent: I,
|
|
668
|
+
componentName: T
|
|
576
669
|
}
|
|
577
670
|
)
|
|
578
671
|
] }),
|
|
579
|
-
|
|
580
|
-
|
|
672
|
+
S && S > 1 && /* @__PURE__ */ t(
|
|
673
|
+
be,
|
|
581
674
|
{
|
|
582
|
-
perPageOptions:
|
|
583
|
-
perPage:
|
|
584
|
-
handlePerPage:
|
|
585
|
-
page:
|
|
586
|
-
handlePage:
|
|
587
|
-
totalPage:
|
|
675
|
+
perPageOptions: B,
|
|
676
|
+
perPage: Q,
|
|
677
|
+
handlePerPage: Y,
|
|
678
|
+
page: K,
|
|
679
|
+
handlePage: ee,
|
|
680
|
+
totalPage: S
|
|
588
681
|
}
|
|
589
682
|
)
|
|
590
683
|
] }),
|
|
591
|
-
/* @__PURE__ */
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
/* @__PURE__ */
|
|
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(
|
|
595
688
|
"div",
|
|
596
689
|
{
|
|
597
690
|
className: "side-content__item",
|
|
598
|
-
onClick: () =>
|
|
691
|
+
onClick: () => N(e),
|
|
599
692
|
children: [
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
|
|
693
|
+
/* @__PURE__ */ t(
|
|
694
|
+
ve,
|
|
602
695
|
{
|
|
603
|
-
src:
|
|
604
|
-
alt: `Mini blog ${
|
|
696
|
+
src: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
697
|
+
alt: `Mini blog ${s + 1}`,
|
|
605
698
|
className: "item__image"
|
|
606
699
|
}
|
|
607
700
|
),
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
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) })
|
|
611
704
|
] })
|
|
612
705
|
]
|
|
613
706
|
}
|
|
614
|
-
) }, `mini_blg_${
|
|
615
|
-
/* @__PURE__ */
|
|
707
|
+
) }, `mini_blg_${s}`)) }),
|
|
708
|
+
/* @__PURE__ */ t(ue, { onClick: X, className: "side-content__link", children: H })
|
|
616
709
|
] })
|
|
617
710
|
] })
|
|
618
711
|
] });
|
|
619
712
|
}
|
|
620
713
|
);
|
|
621
|
-
|
|
622
|
-
mainTitle:
|
|
623
|
-
sideTitle:
|
|
624
|
-
tags:
|
|
625
|
-
selectedTag:
|
|
626
|
-
handleSelectTag:
|
|
627
|
-
blogs:
|
|
628
|
-
miniBlogs:
|
|
629
|
-
products:
|
|
630
|
-
blogsLoading:
|
|
631
|
-
productsLoading:
|
|
632
|
-
sortingOptions:
|
|
633
|
-
sortBy:
|
|
634
|
-
handleSortBy:
|
|
635
|
-
allTagText:
|
|
636
|
-
searchPlaceholderText:
|
|
637
|
-
timeToReadText:
|
|
638
|
-
getBlogImageUrl:
|
|
639
|
-
handleSelectBlog:
|
|
640
|
-
handleSelectBlogTag:
|
|
641
|
-
handleShareBlog:
|
|
642
|
-
handleBookmarkBlog:
|
|
643
|
-
showAllButtonLink:
|
|
644
|
-
showAllButtonText:
|
|
645
|
-
viewAllButtonText:
|
|
646
|
-
handleShowAll:
|
|
647
|
-
handleSelectProduct:
|
|
648
|
-
getProductImageUrl:
|
|
649
|
-
page:
|
|
650
|
-
handlePage:
|
|
651
|
-
perPage:
|
|
652
|
-
handlePerPage:
|
|
653
|
-
totalPage:
|
|
654
|
-
perPageOptions:
|
|
655
|
-
handleSearch:
|
|
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
|
|
656
749
|
};
|
|
657
750
|
export {
|
|
658
|
-
|
|
751
|
+
Ne as default
|
|
659
752
|
};
|