@lanaco/lnc-react-ui 4.0.130 → 4.0.132

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,18 +1,19 @@
1
1
  import { jsxs as l, jsx as n, Fragment as J } from "react/jsx-runtime";
2
- import { forwardRef as I } from "react";
2
+ import { forwardRef as L } from "react";
3
3
  import { P as e } from "./index-CblbdqjE.js";
4
4
  import { p as K, s as Q } from "./utils-BPdU4_1q.js";
5
- import W from "./TextInput.js";
6
- import N from "./Icon.js";
7
- import Y from "./Link.js";
8
- import L from "./DropdownMenu.js";
9
- import $ from "./DropdownItem.js";
10
- import { F as B } from "./tag-CtleOqEC.js";
11
- import O from "./BlogProductCardsSection.js";
12
- import { s as A } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import Y from "./TextInput.js";
6
+ import k from "./Icon.js";
7
+ import B from "./Link.js";
8
+ import $ from "./DropdownMenu.js";
9
+ import A from "./DropdownItem.js";
10
+ import { F as O } from "./tag-CtleOqEC.js";
11
+ import P from "./BlogProductCardsSection.js";
12
+ import { s as j } from "./emotion-styled.browser.esm-BNN1dTl3.js";
13
+ import { P as ee } from "./index-3TFXgZHA.js";
13
14
  import z from "./BlogListSection.js";
14
- import { M as P } from "./consts-BuFChS64.js";
15
- const ee = A.div`
15
+ import { M as ne } from "./consts-BuFChS64.js";
16
+ const te = j.div`
16
17
  display: flex;
17
18
  justify-content: space-between;
18
19
  align-items: center;
@@ -93,9 +94,9 @@ const ee = A.div`
93
94
  }
94
95
  }
95
96
  }
96
- `, ne = I(
97
+ `, re = L(
97
98
  ({
98
- perPageOptions: o = [
99
+ perPageOptions: c = [
99
100
  { code: 10, name: "Show 10 items" },
100
101
  { code: 25, name: "Show 25 items" },
101
102
  { code: 50, name: "Show 50 items" }
@@ -103,24 +104,24 @@ const ee = A.div`
103
104
  perPage: f,
104
105
  handlePerPage: u = () => {
105
106
  },
106
- page: c = 1,
107
+ page: o = 1,
107
108
  handlePage: s = () => {
108
109
  },
109
110
  totalPage: t
110
111
  }, m) => {
111
- var _, d;
112
- const h = () => {
113
- c > 1 && (s == null || s(c - 1));
112
+ var h, d;
113
+ const _ = () => {
114
+ o > 1 && (s == null || s(o - 1));
114
115
  }, g = () => {
115
- c < t && (s == null || s(c + 1));
116
- }, v = () => {
117
- const r = [];
116
+ o < t && (s == null || s(o + 1));
117
+ }, x = () => {
118
+ const i = [];
118
119
  if (t <= 7)
119
120
  for (let a = 1; a <= t; a++)
120
- r.push(a);
121
+ i.push(a);
121
122
  else
122
- 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);
123
- return r == null ? void 0 : r.map((a, p) => a === "..." ? /* @__PURE__ */ n(
123
+ o <= 3 ? i.push(1, 2, 3, "...", t) : o >= 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, p) => a === "..." ? /* @__PURE__ */ n(
124
125
  "div",
125
126
  {
126
127
  className: "pagination__page ellipsis",
@@ -131,28 +132,28 @@ const ee = A.div`
131
132
  "div",
132
133
  {
133
134
  onClick: () => s(a),
134
- className: `pagination__page ${c === a ? "active" : ""}`,
135
+ className: `pagination__page ${o === a ? "active" : ""}`,
135
136
  children: a
136
137
  },
137
138
  `pagination-page__${p}`
138
139
  ));
139
140
  };
140
- return /* @__PURE__ */ l(ee, { className: "pagination", children: [
141
+ return /* @__PURE__ */ l(te, { className: "pagination", children: [
141
142
  /* @__PURE__ */ n(
142
- L,
143
+ $,
143
144
  {
144
145
  color: "neutral",
145
- control: ((_ = o == null ? void 0 : o.find((r) => (r == null ? void 0 : r.code) === f)) == null ? void 0 : _.name) || ((d = o[0]) == null ? void 0 : d.name),
146
+ control: ((h = c == null ? void 0 : c.find((i) => (i == null ? void 0 : i.code) === f)) == null ? void 0 : h.name) || ((d = c[0]) == null ? void 0 : d.name),
146
147
  placement: "bottom",
147
148
  zIndex: 1001,
148
149
  className: "pagination__per-page",
149
- children: o == null ? void 0 : o.map((r, a) => /* @__PURE__ */ n(
150
- $,
150
+ children: c == null ? void 0 : c.map((i, a) => /* @__PURE__ */ n(
151
+ A,
151
152
  {
152
- active: (r == null ? void 0 : r.code) === (f == null ? void 0 : f.code),
153
+ active: (i == null ? void 0 : i.code) === (f == null ? void 0 : f.code),
153
154
  className: "sort-by__item",
154
- onClick: () => u(r),
155
- children: r == null ? void 0 : r.name
155
+ onClick: () => u(i),
156
+ children: i == null ? void 0 : i.name
156
157
  },
157
158
  `blog-epxlore-section-per-page-option__${a + 1}`
158
159
  ))
@@ -162,24 +163,24 @@ const ee = A.div`
162
163
  /* @__PURE__ */ n(
163
164
  "div",
164
165
  {
165
- className: `pagination__page ${c === 1 ? "disabled" : ""}`,
166
- onClick: h,
167
- children: /* @__PURE__ */ n(N, { icon: " mng-lnc-chevron--left" })
166
+ className: `pagination__page ${o === 1 ? "disabled" : ""}`,
167
+ onClick: _,
168
+ children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--left" })
168
169
  }
169
170
  ),
170
- v(),
171
+ x(),
171
172
  /* @__PURE__ */ n(
172
173
  "div",
173
174
  {
174
- className: `pagination__page ${c === t ? "disabled" : ""}`,
175
+ className: `pagination__page ${o === t ? "disabled" : ""}`,
175
176
  onClick: g,
176
- children: /* @__PURE__ */ n(N, { icon: " mng-lnc-chevron--right" })
177
+ children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--right" })
177
178
  }
178
179
  )
179
180
  ] })
180
181
  ] });
181
182
  }
182
- ), te = A.div`
183
+ ), ie = j.div`
183
184
  display: flex;
184
185
  align-items: flex-start;
185
186
  gap: 2rem;
@@ -370,7 +371,7 @@ const ee = A.div`
370
371
  }
371
372
  }
372
373
 
373
- @media (max-width: ${P + "px"}) {
374
+ @media (max-width: ${ne + "px"}) {
374
375
  flex-direction: column;
375
376
 
376
377
  & .landing__main-content {
@@ -417,194 +418,199 @@ const ee = A.div`
417
418
  display: none;
418
419
  }
419
420
  }
420
- `, re = I(
421
+ `, ae = L(
421
422
  ({
422
- mainTitle: o,
423
+ mainTitle: c,
423
424
  sideTitle: f,
424
425
  tags: u,
425
- selectedTag: c,
426
+ selectedTag: o,
426
427
  handleSelectTag: s = () => {
427
428
  },
428
429
  blogs: t,
429
430
  miniBlogs: m,
430
- products: h,
431
+ products: _,
431
432
  blogsLoading: g = !1,
432
- productsLoading: v = !1,
433
- sortingOptions: _,
433
+ productsLoading: x = !1,
434
+ sortingOptions: h,
434
435
  sortBy: d,
435
- handleSortBy: r = () => {
436
+ handleSortBy: i = () => {
436
437
  },
437
438
  allTagText: a = "All",
438
439
  searchPlaceholderText: p = "Search blogs",
439
- timeToReadText: k = "{0} min read",
440
- getBlogImageUrl: x = () => {
440
+ timeToReadText: S = "{0} min read",
441
+ getBlogImageUrl: y = () => {
441
442
  },
442
- handleSelectBlog: y = () => {
443
+ handleSelectBlog: w = () => {
443
444
  },
444
- handleSelectBlogTag: S = () => {
445
+ handleSelectBlogTag: T = () => {
445
446
  },
446
- handleShareBlog: T = () => {
447
+ handleShareBlog: C = () => {
447
448
  },
448
- handleBookmarkBlog: C = () => {
449
+ handleBookmarkBlog: I = () => {
449
450
  },
450
- showAllButtonLink: j,
451
+ showAllButtonLink: E,
451
452
  showAllButtonText: M = "Show all products",
452
453
  viewAllButtonText: D = "View all (11)",
453
- viewAllButtonLink: ie,
454
- handleViewAll: E = () => {
454
+ viewAllButtonLink: oe,
455
+ handleViewAll: F = () => {
455
456
  },
456
- handleShowAll: F = () => {
457
+ handleShowAll: R = () => {
457
458
  },
458
- handleSelectProduct: R = () => {
459
+ handleSelectProduct: U = () => {
459
460
  },
460
- getProductImageUrl: U = () => {
461
+ getProductImageUrl: V = () => {
461
462
  },
462
463
  page: q,
463
- handlePage: H = () => {
464
+ handlePage: b = () => {
464
465
  },
465
- perPage: V,
466
- handlePerPage: X = () => {
466
+ perPage: H,
467
+ handlePerPage: W = () => {
467
468
  },
468
- totalPage: w,
469
- perPageOptions: Z,
470
- handleSearch: G = () => {
469
+ totalPage: N,
470
+ perPageOptions: X,
471
+ handleSearch: Z = () => {
471
472
  }
472
- }, ae) => /* @__PURE__ */ l(te, { children: [
473
- /* @__PURE__ */ l("div", { className: "landing__main-content", children: [
474
- o && /* @__PURE__ */ n("div", { className: "main-content__title", children: o }),
475
- u && /* @__PURE__ */ n(
476
- B,
477
- {
478
- tags: u,
479
- allTagText: a,
480
- selectedTagCode: c,
481
- onSelectTag: s
482
- }
483
- ),
484
- /* @__PURE__ */ l("div", { className: "main-content__actions", children: [
485
- /* @__PURE__ */ n(
486
- W,
487
- {
488
- className: "main-content__search",
489
- placeholder: p,
490
- debounceTime: 200,
491
- prefix: /* @__PURE__ */ n(
492
- N,
493
- {
494
- icon: " mng-lnc-search",
495
- sizeInUnits: "1.25rem",
496
- className: "main-content__search-prefix"
497
- }
498
- ),
499
- color: "neutral",
500
- onChange: G
501
- }
502
- ),
503
- /* @__PURE__ */ n(
504
- L,
505
- {
506
- color: "neutral",
507
- control: d == null ? void 0 : d.name,
508
- zIndex: 1001,
509
- className: "main-content__sort-by",
510
- children: _ == null ? void 0 : _.map((i, b) => /* @__PURE__ */ n(
511
- $,
512
- {
513
- active: (i == null ? void 0 : i.code) === (d == null ? void 0 : d.code),
514
- className: "sort-by__item",
515
- onClick: () => r(i),
516
- children: i == null ? void 0 : i.name
517
- },
518
- `blog-epxlore-section-sorting-option__${b + 1}`
519
- ))
520
- }
521
- )
522
- ] }),
523
- /* @__PURE__ */ l("div", { className: "main-content__items", children: [
524
- t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
525
- z,
526
- {
527
- timeToReadText: k,
528
- items: t == null ? void 0 : t.slice(0, 5),
529
- isLoading: g,
530
- getImage: x,
531
- onSelectCard: y,
532
- onSelectOption: S,
533
- onShare: T,
534
- onBookmark: C
535
- }
536
- ),
537
- /* @__PURE__ */ n("div", { className: "main-content__divider" }),
538
- h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
473
+ }, ce) => {
474
+ const G = (r) => {
475
+ document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), b == null || b(r);
476
+ };
477
+ return /* @__PURE__ */ l(ie, { id: "landing__container", children: [
478
+ /* @__PURE__ */ l("div", { className: "landing__main-content", children: [
479
+ c && /* @__PURE__ */ n("div", { className: "main-content__title", children: c }),
480
+ u && /* @__PURE__ */ n(
539
481
  O,
540
482
  {
541
- buttonText: M,
542
- buttonLink: j,
543
- onButtonAction: F,
544
- onSelectCard: R,
545
- items: h,
546
- isLoading: v,
547
- getImage: U,
548
- isHighlight: !0
483
+ tags: u,
484
+ allTagText: a,
485
+ selectedTagCode: o,
486
+ onSelectTag: s
549
487
  }
550
488
  ),
551
- /* @__PURE__ */ n("div", { className: "main-content__divider" }),
552
- t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
553
- z,
554
- {
555
- timeToReadText: k,
556
- items: t == null ? void 0 : t.slice(5),
557
- isLoading: g,
558
- getImage: x,
559
- onSelectCard: y,
560
- onSelectOption: S,
561
- onShare: T,
562
- onBookmark: C
563
- }
564
- )
565
- ] }),
566
- w && w > 1 && /* @__PURE__ */ n(
567
- ne,
568
- {
569
- perPageOptions: Z,
570
- perPage: V,
571
- handlePerPage: X,
572
- page: q,
573
- handlePage: H,
574
- totalPage: w
575
- }
576
- )
577
- ] }),
578
- /* @__PURE__ */ l("div", { className: "landing__side-content", children: [
579
- f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
580
- m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(J, { children: [
581
- /* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((i, b) => /* @__PURE__ */ l(
582
- "div",
583
- {
584
- className: "side-content__item",
585
- onClick: () => y(i),
586
- children: [
587
- /* @__PURE__ */ n(
588
- "img",
489
+ /* @__PURE__ */ l("div", { className: "main-content__actions", children: [
490
+ /* @__PURE__ */ n(
491
+ Y,
492
+ {
493
+ className: "main-content__search",
494
+ placeholder: p,
495
+ debounceTime: 200,
496
+ prefix: /* @__PURE__ */ n(
497
+ k,
589
498
  {
590
- src: x(i == null ? void 0 : i.imageUrl, i == null ? void 0 : i.uuid) || null,
591
- alt: `Mini blog ${b + 1}`,
592
- className: "item__image"
499
+ icon: " mng-lnc-search",
500
+ sizeInUnits: "1.25rem",
501
+ className: "main-content__search-prefix"
593
502
  }
594
503
  ),
595
- /* @__PURE__ */ l("div", { className: "item__content", children: [
596
- /* @__PURE__ */ n("div", { className: "item__title", children: i == null ? void 0 : i.title }),
597
- /* @__PURE__ */ n("div", { className: "item__description", children: Q(i == null ? void 0 : i.publishedAt) })
598
- ] })
599
- ]
504
+ color: "neutral",
505
+ onChange: Z
506
+ }
507
+ ),
508
+ /* @__PURE__ */ n(
509
+ $,
510
+ {
511
+ color: "neutral",
512
+ control: d == null ? void 0 : d.name,
513
+ zIndex: 1001,
514
+ className: "main-content__sort-by",
515
+ children: h == null ? void 0 : h.map((r, v) => /* @__PURE__ */ n(
516
+ A,
517
+ {
518
+ active: (r == null ? void 0 : r.code) === (d == null ? void 0 : d.code),
519
+ className: "sort-by__item",
520
+ onClick: () => i(r),
521
+ children: r == null ? void 0 : r.name
522
+ },
523
+ `blog-epxlore-section-sorting-option__${v + 1}`
524
+ ))
525
+ }
526
+ )
527
+ ] }),
528
+ /* @__PURE__ */ l("div", { className: "main-content__items", children: [
529
+ t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
530
+ z,
531
+ {
532
+ timeToReadText: S,
533
+ items: t == null ? void 0 : t.slice(0, 5),
534
+ isLoading: g,
535
+ getImage: y,
536
+ onSelectCard: w,
537
+ onSelectOption: T,
538
+ onShare: C,
539
+ onBookmark: I
540
+ }
541
+ ),
542
+ /* @__PURE__ */ n("div", { className: "main-content__divider" }),
543
+ _ && (_ == null ? void 0 : _.length) > 0 && /* @__PURE__ */ n(
544
+ P,
545
+ {
546
+ buttonText: M,
547
+ buttonLink: E,
548
+ onButtonAction: R,
549
+ onSelectCard: U,
550
+ items: _,
551
+ isLoading: x,
552
+ getImage: V,
553
+ isHighlight: !0
554
+ }
555
+ ),
556
+ /* @__PURE__ */ n("div", { className: "main-content__divider" }),
557
+ t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
558
+ z,
559
+ {
560
+ timeToReadText: S,
561
+ items: t == null ? void 0 : t.slice(5),
562
+ isLoading: g,
563
+ getImage: y,
564
+ onSelectCard: w,
565
+ onSelectOption: T,
566
+ onShare: C,
567
+ onBookmark: I
568
+ }
569
+ )
570
+ ] }),
571
+ N && N > 1 && /* @__PURE__ */ n(
572
+ re,
573
+ {
574
+ perPageOptions: X,
575
+ perPage: H,
576
+ handlePerPage: W,
577
+ page: q,
578
+ handlePage: G,
579
+ totalPage: N
600
580
  }
601
- )) }),
602
- /* @__PURE__ */ n(Y, { onClick: E, className: "side-content__link", children: D })
581
+ )
582
+ ] }),
583
+ /* @__PURE__ */ l("div", { className: "landing__side-content", children: [
584
+ f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
585
+ m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(J, { children: [
586
+ /* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, v) => /* @__PURE__ */ l(
587
+ "div",
588
+ {
589
+ className: "side-content__item",
590
+ onClick: () => w(r),
591
+ children: [
592
+ /* @__PURE__ */ n(
593
+ ee,
594
+ {
595
+ src: y(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
596
+ alt: `Mini blog ${v + 1}`,
597
+ className: "item__image"
598
+ }
599
+ ),
600
+ /* @__PURE__ */ l("div", { className: "item__content", children: [
601
+ /* @__PURE__ */ n("div", { className: "item__title", children: r == null ? void 0 : r.title }),
602
+ /* @__PURE__ */ n("div", { className: "item__description", children: Q(r == null ? void 0 : r.publishedAt) })
603
+ ] })
604
+ ]
605
+ }
606
+ )) }),
607
+ /* @__PURE__ */ n(B, { onClick: F, className: "side-content__link", children: D })
608
+ ] })
603
609
  ] })
604
- ] })
605
- ] })
610
+ ] });
611
+ }
606
612
  );
607
- re.propTypes = {
613
+ ae.propTypes = {
608
614
  mainTitle: e.string,
609
615
  sideTitle: e.string,
610
616
  tags: e.array,
@@ -641,5 +647,5 @@ re.propTypes = {
641
647
  handleSearch: e.func
642
648
  };
643
649
  export {
644
- re as default
650
+ ae as default
645
651
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),p=require("react"),y=require("./Icon.cjs"),m=require("./IconButton.cjs"),k=require("./Chip.cjs"),o=require("./utils-DmMdPm9O.cjs"),N=require("./index-DiIeF_76.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),q=require("./suspense-large-PHdzP1Ln.cjs"),I=j.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),b=require("./Icon.cjs"),c=require("./IconButton.cjs"),o=require("./utils-DmMdPm9O.cjs"),y=require("./index-DiIeF_76.cjs"),j=require("./style-C_BRvopE.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),k=require("./suspense-large-PHdzP1Ln.cjs"),N=h.styled.div`
2
2
  display: flex;
3
3
  padding: 1rem;
4
4
  align-items: center;
@@ -56,20 +56,6 @@
56
56
  display: flex;
57
57
  flex-wrap: wrap;
58
58
  gap: 0.25rem;
59
-
60
- & .wrapper__tag {
61
- font-size: 0.75rem;
62
- font-style: normal;
63
- font-weight: 500;
64
- line-height: 1rem;
65
- letter-spacing: 0.5px;
66
- padding: 0.125rem 0.5rem;
67
- justify-content: center;
68
- align-items: center;
69
- gap: 0.25rem;
70
- height: 1.25rem;
71
- border: 1px solid;
72
- }
73
59
  }
74
60
  }
75
61
 
@@ -106,7 +92,7 @@
106
92
  }
107
93
  }
108
94
 
109
- @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
95
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
110
96
  flex-direction: column;
111
97
  padding: 0;
112
98
  background: transparent;
@@ -156,7 +142,7 @@
156
142
  }
157
143
  }
158
144
  }
159
- `,C=p.forwardRef(({title:g,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:f=0,numberOfComments:u=0,isBookmarked:c=!1,onSelectCard:h=()=>{},onSelectOption:_=()=>{},onBookmark:e=()=>{},onShare:d=()=>{}},w)=>t.jsxs(I,{onClick:h,className:"blog-card-item",children:[t.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),t.jsxs("div",{className:"wrapper__content",children:[t.jsxs("div",{className:"wrapper__subcontent",children:[t.jsx("div",{className:"wrapper__title",children:g}),t.jsxs("div",{className:"wrapper__tags-action",children:[t.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((r,v)=>t.jsx(k,{label:r==null?void 0:r.name,color:r==null?void 0:r.color,className:"wrapper__tag",onClick:b=>{b==null||b.stopPropagation(),_(r==null?void 0:r.code)}},`blog-card-sponsored-option__${v+1}`)))}),t.jsxs("div",{className:"info__content mobile-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]}),t.jsxs("div",{className:"wrapper__info",children:[t.jsxs("div",{className:"info__content",children:[t.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(a)} • ${o.formatString(n,l)}`}),t.jsxs("div",{className:"info__text",children:[t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(f)]}),t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(u)]})]})]}),t.jsxs("div",{className:"info__content desktop-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]})]})),P=j.styled.div`
145
+ `,R=d.forwardRef(({title:p,imageUrl:n,options:i,publishedAt:s,timeToReadText:a="{0} min read",timeToRead:m=0,numberOfLikes:g=0,numberOfComments:u=0,isBookmarked:f=!1,onSelectCard:_=()=>{},onBookmark:e=()=>{},onShare:l=()=>{}},L)=>r.jsxs(N,{onClick:_,className:"blog-card-item",children:[r.jsx(y.ProductImageWrapper,{src:n,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:p}),r.jsxs("div",{className:"wrapper__tags-action",children:[r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,w)=>r.jsx(j.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},`blog-card-sponsored-option__${w+1}`)))}),r.jsxs("div",{className:"info__content mobile-only",children:[r.jsx(c,{icon:f?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}}),r.jsx(c,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),l()}})]})]})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(s)} • ${o.formatString(a,m)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(g)]}),r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(u)]})]})]}),r.jsxs("div",{className:"info__content desktop-only",children:[r.jsx(c,{icon:f?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}}),r.jsx(c,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),l()}})]})]})]})]})),q=h.styled.div`
160
146
  display: flex;
161
147
  flex-direction: column;
162
148
  align-items: flex-start;
@@ -180,4 +166,4 @@
180
166
  bottom: -1.25rem;
181
167
  }
182
168
  }
183
- `,x=p.memo(C),z=p.forwardRef(({timeToReadText:g="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:f=!1,getImage:u=()=>{},isSeparated:c=!0},h)=>{const _=p.useMemo(()=>s==null?void 0:s.map((e,d)=>t.jsx(x,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:g,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>i==null?void 0:i(e),onSelectOption:w=>a==null?void 0:a(w),onShare:()=>n==null?void 0:n(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${d+1}`)),[s]);return t.jsx(P,{className:c?"separated":"",children:t.jsx(q.SuspenseBlogLarge,{isLoading:f,limit:5,keyPrefix:"blog-section",children:_})})});module.exports=z;
169
+ `,I=d.memo(R),T=d.forwardRef(({timeToReadText:p="{0} min read",items:n,onSelectCard:i=()=>{},onShare:s=()=>{},onBookmark:a=()=>{},isLoading:m=!1,getImage:g=()=>{},isSeparated:u=!0},f)=>{const _=d.useMemo(()=>n==null?void 0:n.map((e,l)=>r.jsx(I,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:p,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>i==null?void 0:i(e),onShare:()=>s==null?void 0:s(e),onBookmark:()=>a==null?void 0:a(e),imageUrl:g(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${l+1}`)),[n]);return r.jsx(q,{className:u?"separated":"",children:r.jsx(k.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:_})})});module.exports=T;