@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.
@@ -1,19 +1,21 @@
1
- import { jsxs as l, jsx as n, Fragment as L } from "react/jsx-runtime";
2
- import { forwardRef as j, Fragment as B } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
- import { p as O, s as P } from "./utils-BdsZgOUE.js";
5
- import ee from "./TextInput.js";
6
- import k from "./Icon.js";
7
- import ne from "./Link.js";
8
- import F from "./DropdownMenu.js";
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 te } from "./tag-cRMfP-SZ.js";
11
- import re from "./BlogProductCardsSection.js";
12
- import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
13
- import { P as ie } from "./index-CF3HhgvN.js";
14
- import A from "./BlogListSection.js";
15
- import { M as ae } from "./consts-BuFChS64.js";
16
- const ce = M.div`
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
- `, oe = j(
99
+ `, be = V(
98
100
  ({
99
- perPageOptions: o = [
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: f,
105
- handlePerPage: g = () => {
106
+ perPage: u,
107
+ handlePerPage: v = () => {
106
108
  },
107
109
  page: c = 1,
108
- handlePage: s = () => {
110
+ handlePage: m = () => {
109
111
  },
110
- totalPage: t
111
- }, m) => {
112
- var _, d;
113
- const h = () => {
114
- c > 1 && (s == null || s(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 (t <= 7)
120
- for (let a = 1; a <= t; 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, "...", t) : c >= t - 2 ? i.push(1, "...", t - 2, t - 1, t) : i.push(1, 2, 3, "...", t);
124
- return i == null ? void 0 : i.map((a, v) => a === "..." ? /* @__PURE__ */ n(
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__${v}`
131
- ) : /* @__PURE__ */ n(
132
+ `pagination-ellipsis__${y}`
133
+ ) : /* @__PURE__ */ t(
132
134
  "div",
133
135
  {
134
- onClick: () => s(a),
136
+ onClick: () => m(a),
135
137
  className: `pagination__page ${c === a ? "active" : ""}`,
136
138
  children: a
137
139
  },
138
- `pagination-page__${v}`
140
+ `pagination-page__${y}`
139
141
  ));
140
142
  };
141
- return /* @__PURE__ */ l(ce, { className: "pagination", children: [
142
- /* @__PURE__ */ n(
143
- F,
143
+ return /* @__PURE__ */ o(ye, { className: "pagination", children: [
144
+ /* @__PURE__ */ t(
145
+ W,
144
146
  {
145
147
  color: "neutral",
146
- control: ((_ = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.code) === f)) == null ? void 0 : _.name) || ((d = o[0]) == null ? void 0 : d.name),
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: o == null ? void 0 : o.map((i, a) => /* @__PURE__ */ n(
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) === (f == null ? void 0 : f.code),
155
+ active: (i == null ? void 0 : i.code) === (u == null ? void 0 : u.code),
154
156
  className: "sort-by__item",
155
- onClick: () => g(i),
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__ */ l("div", { className: "pagination__pages", children: [
163
- /* @__PURE__ */ n(
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: h,
168
- children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--left" })
169
+ onClick: g,
170
+ children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--left" })
169
171
  }
170
172
  ),
171
- x(),
172
- /* @__PURE__ */ n(
173
+ b(),
174
+ /* @__PURE__ */ t(
173
175
  "div",
174
176
  {
175
- className: `pagination__page ${c === t ? "disabled" : ""}`,
176
- onClick: p,
177
- children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--right" })
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
- ), le = M.div`
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: 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-9504, rgba(20, 22, 26, 0.04));
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
- ${O(2)}
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: ${ae + "px"}) {
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
- flex-wrap: nowrap;
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
- `, se = j(
458
+ `, Ne = V(
422
459
  ({
423
- mainTitle: o,
424
- sideTitle: f,
425
- tags: g,
460
+ mainTitle: d,
461
+ sideTitle: u,
462
+ tags: v,
426
463
  selectedTag: c,
427
- handleSelectTag: s = () => {
464
+ handleSelectTag: m = () => {
428
465
  },
429
- blogs: t,
430
- miniBlogs: m,
431
- products: h,
432
- blogsLoading: p = !1,
433
- productsLoading: x = !1,
434
- sortingOptions: _,
435
- sortBy: d,
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: v = "Search blogs",
440
- timeToReadText: T = "{0} min read",
441
- getBlogImageUrl: y = () => {
476
+ searchPlaceholderText: y = "Search blogs",
477
+ timeToReadText: L = "{0} min read",
478
+ getBlogImageUrl: w = () => {
442
479
  },
443
- handleSelectBlog: w = () => {
480
+ handleSelectBlog: N = () => {
444
481
  },
445
- handleSelectBlogTag: C = () => {
482
+ handleSelectBlogTag: A = () => {
446
483
  },
447
- handleShareBlog: I = () => {
484
+ handleShareBlog: z = () => {
448
485
  },
449
486
  // handleBookmarkBlog = () => {},
450
- showAllButtonLink: D,
451
- showAllButtonText: R = "Show all products",
452
- viewAllButtonText: U = "View all (11)",
453
- viewAllButtonLink: de,
454
- handleViewAll: V = () => {
487
+ showAllButtonLink: U,
488
+ showAllButtonText: q = "Show all products",
489
+ viewAllButtonText: H = "View all (11)",
490
+ // viewAllButtonLink,
491
+ handleViewAll: X = () => {
455
492
  },
456
- handleShowAll: q = () => {
493
+ handleShowAll: Z = () => {
457
494
  },
458
- handleSelectProduct: H = () => {
495
+ handleSelectProduct: G = () => {
459
496
  },
460
- getProductImageUrl: W = () => {
497
+ getProductImageUrl: J = () => {
461
498
  },
462
- page: X,
463
- handlePage: b = () => {
499
+ page: K,
500
+ handlePage: k = () => {
464
501
  },
465
- perPage: Z,
466
- handlePerPage: G = () => {
502
+ perPage: Q,
503
+ handlePerPage: Y = () => {
467
504
  },
468
- totalPage: N,
469
- perPageOptions: J,
470
- handleSearch: K = () => {
505
+ totalPage: S,
506
+ perPageOptions: B,
507
+ handleSearch: O = () => {
471
508
  },
472
509
  onBookmark: $ = () => {
473
510
  },
474
- bookmarkComponent: z = /* @__PURE__ */ n(L, { children: " " }),
475
- componentName: S
476
- }, Q) => {
477
- const Y = (r) => {
478
- document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), b == null || b(r);
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__ */ l(le, { ref: Q, id: "landing__container", children: [
481
- /* @__PURE__ */ l("div", { className: "landing__main-content", children: [
482
- o && /* @__PURE__ */ n("div", { className: "main-content__title", children: o }),
483
- g && /* @__PURE__ */ n(
484
- te,
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
- tags: g,
578
+ ref: l,
579
+ tags: v,
487
580
  allTagText: a,
488
581
  selectedTagCode: c,
489
- onSelectTag: s
582
+ onSelectTag: m
490
583
  }
491
584
  ),
492
- /* @__PURE__ */ l("div", { className: "main-content__actions", children: [
493
- /* @__PURE__ */ n(
494
- ee,
585
+ /* @__PURE__ */ o("div", { className: "main-content__actions", children: [
586
+ /* @__PURE__ */ t(
587
+ _e,
495
588
  {
496
589
  className: "main-content__search",
497
- placeholder: v,
590
+ placeholder: y,
498
591
  debounceTime: 200,
499
- prefix: /* @__PURE__ */ n(
500
- k,
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: K
601
+ onChange: O
509
602
  }
510
603
  ),
511
- /* @__PURE__ */ n(
512
- F,
604
+ /* @__PURE__ */ t(
605
+ W,
513
606
  {
514
607
  color: "neutral",
515
- control: d == null ? void 0 : d.name,
608
+ control: h == null ? void 0 : h.name,
516
609
  zIndex: 1001,
517
610
  className: "main-content__sort-by",
518
- children: _ == null ? void 0 : _.map((r, u) => /* @__PURE__ */ n(
611
+ children: p == null ? void 0 : p.map((e, s) => /* @__PURE__ */ t(
519
612
  E,
520
613
  {
521
- active: (r == null ? void 0 : r.code) === (d == null ? void 0 : d.code),
614
+ active: (e == null ? void 0 : e.code) === (h == null ? void 0 : h.code),
522
615
  className: "sort-by__item",
523
- onClick: () => i(r),
524
- children: r == null ? void 0 : r.name
616
+ onClick: () => i(e),
617
+ children: e == null ? void 0 : e.name
525
618
  },
526
- `blog-epxlore-section-sorting-option__${u + 1}`
619
+ `blog-epxlore-section-sorting-option__${s + 1}`
527
620
  ))
528
621
  }
529
622
  )
530
623
  ] }),
531
- /* @__PURE__ */ l("div", { className: "main-content__items", children: [
532
- t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
533
- A,
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: T,
536
- items: t == null ? void 0 : t.slice(0, 5),
537
- isLoading: p,
538
- getImage: y,
539
- onSelectCard: w,
540
- onSelectOption: C,
541
- onShare: I,
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: z,
544
- componentName: S
636
+ bookmarkComponent: I,
637
+ componentName: T
545
638
  }
546
639
  ),
547
- /* @__PURE__ */ n("div", { className: "main-content__divider" }),
548
- h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
549
- re,
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: R,
552
- buttonLink: D,
553
- onButtonAction: q,
554
- onSelectCard: H,
555
- items: h,
556
- isLoading: x,
557
- getImage: W,
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: S
652
+ componentName: T
560
653
  }
561
654
  ),
562
- /* @__PURE__ */ n("div", { className: "main-content__divider" }),
563
- t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
564
- A,
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: T,
567
- items: t == null ? void 0 : t.slice(5),
568
- isLoading: p,
569
- getImage: y,
570
- onSelectCard: w,
571
- onSelectOption: C,
572
- onShare: I,
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: z,
575
- componentName: S
667
+ bookmarkComponent: I,
668
+ componentName: T
576
669
  }
577
670
  )
578
671
  ] }),
579
- N && N > 1 && /* @__PURE__ */ n(
580
- oe,
672
+ S && S > 1 && /* @__PURE__ */ t(
673
+ be,
581
674
  {
582
- perPageOptions: J,
583
- perPage: Z,
584
- handlePerPage: G,
585
- page: X,
586
- handlePage: Y,
587
- totalPage: N
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__ */ l("div", { className: "landing__side-content", children: [
592
- f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
593
- m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(L, { children: [
594
- /* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, u) => /* @__PURE__ */ n(B, { children: /* @__PURE__ */ l(
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: () => w(r),
691
+ onClick: () => N(e),
599
692
  children: [
600
- /* @__PURE__ */ n(
601
- ie,
693
+ /* @__PURE__ */ t(
694
+ ve,
602
695
  {
603
- src: y(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
604
- alt: `Mini blog ${u + 1}`,
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__ */ l("div", { className: "item__content", children: [
609
- /* @__PURE__ */ n("div", { className: "item__title", children: r == null ? void 0 : r.title }),
610
- /* @__PURE__ */ n("div", { className: "item__description", children: P(r == null ? void 0 : r.publishedAt) })
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_${u}`)) }),
615
- /* @__PURE__ */ n(ne, { onClick: V, className: "side-content__link", children: U })
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
- se.propTypes = {
622
- mainTitle: e.string,
623
- sideTitle: e.string,
624
- tags: e.array,
625
- selectedTag: e.any,
626
- handleSelectTag: e.func,
627
- blogs: e.array,
628
- miniBlogs: e.array,
629
- products: e.array,
630
- blogsLoading: e.bool,
631
- productsLoading: e.bool,
632
- sortingOptions: e.array,
633
- sortBy: e.any,
634
- handleSortBy: e.func,
635
- allTagText: e.string,
636
- searchPlaceholderText: e.string,
637
- timeToReadText: e.string,
638
- getBlogImageUrl: e.func,
639
- handleSelectBlog: e.func,
640
- handleSelectBlogTag: e.func,
641
- handleShareBlog: e.func,
642
- handleBookmarkBlog: e.func,
643
- showAllButtonLink: e.string,
644
- showAllButtonText: e.string,
645
- viewAllButtonText: e.string,
646
- handleShowAll: e.func,
647
- handleSelectProduct: e.func,
648
- getProductImageUrl: e.func,
649
- page: e.number,
650
- handlePage: e.func,
651
- perPage: e.any,
652
- handlePerPage: e.func,
653
- totalPage: e.number,
654
- perPageOptions: e.array,
655
- handleSearch: e.func
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
- se as default
751
+ Ne as default
659
752
  };