@lanaco/lnc-react-ui 4.0.147 → 4.0.149

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