@lanaco/lnc-react-ui 4.0.163 → 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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),r=require("./index-BpbMKBf_.cjs"),oe=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./utils-Dl9xPH4c.cjs"),ce=require("./TextInput.cjs"),k=require("./Icon.cjs"),le=require("./Link.cjs"),$=require("./IconButton.cjs"),M=require("./DropdownMenu.cjs"),R=require("./DropdownItem.cjs"),de=require("./tag-CmeZsPQt.cjs"),me=require("./BlogProductCardsSection.cjs"),V=require("./emotion-styled.browser.esm-BtEseadx.cjs"),he=require("./index-BueKsXT8.cjs"),D=require("./BlogListSection.cjs"),pe=require("./consts-goSZX3xP.cjs"),ue=V.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
|
-
`,
|
|
82
|
+
`,_e=x.forwardRef(({perPageOptions:l=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:u,handlePerPage:g=()=>{},page:s=1,handlePage:d=()=>{},totalPage:t},p)=>{var f,m;const _=()=>{s>1&&(d==null||d(s-1))},y=()=>{s<t&&(d==null||d(s+1))},b=()=>{const i=[];if(t<=7)for(let a=1;a<=t;a++)i.push(a);else s<=3?i.push(1,2,3,"...",t):s>=t-2?i.push(1,"...",t-2,t-1,t):i.push(1,2,3,"...",t);return i==null?void 0:i.map((a,v)=>a==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:a},`pagination-ellipsis__${v}`):e.jsx("div",{onClick:()=>d(a),className:`pagination__page ${s===a?"active":""}`,children:a},`pagination-page__${v}`))};return e.jsxs(ue,{className:"pagination",children:[e.jsx(M,{color:"neutral",control:((f=l==null?void 0:l.find(i=>(i==null?void 0:i.code)===u))==null?void 0:f.name)||((m=l[0])==null?void 0:m.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:l==null?void 0:l.map((i,a)=>e.jsx(R,{active:(i==null?void 0:i.code)===(u==null?void 0:u.code),className:"sort-by__item",onClick:()=>g(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:_,children:e.jsx(k,{icon:" mng-lnc-chevron--left"})}),b(),e.jsx("div",{className:`pagination__page ${s===t?"disabled":""}`,onClick:y,children:e.jsx(k,{icon:" mng-lnc-chevron--right"})})]})]})}),fe=V.styled.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: flex-start;
|
|
85
85
|
gap: 2rem;
|
|
@@ -96,18 +96,44 @@
|
|
|
96
96
|
flex-direction: column;
|
|
97
97
|
align-items: flex-start;
|
|
98
98
|
gap: 1.5rem;
|
|
99
|
+
max-width: 50rem;
|
|
99
100
|
|
|
100
101
|
border-right: 1px solid var(--gray-200, #dddfe4);
|
|
101
102
|
padding-right: 2rem;
|
|
102
103
|
|
|
103
104
|
& .section__tags {
|
|
104
|
-
flex-wrap:
|
|
105
|
+
flex-wrap: nowrap;
|
|
106
|
+
width: 100%;
|
|
107
|
+
overflow-x: hidden;
|
|
108
|
+
white-space: nowrap;
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
& .pagination {
|
|
108
112
|
padding: 1.25rem 0;
|
|
109
113
|
}
|
|
110
114
|
|
|
115
|
+
& .main-content__heading {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
width: 100%;
|
|
119
|
+
|
|
120
|
+
& .main-content__tags-nav {
|
|
121
|
+
display: flex;
|
|
122
|
+
gap: 0.25rem;
|
|
123
|
+
|
|
124
|
+
& .main-content__tag-nav {
|
|
125
|
+
&:not(:disabled) {
|
|
126
|
+
color: var(--gray-950, #14161a);
|
|
127
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
128
|
+
|
|
129
|
+
&:hover {
|
|
130
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
111
137
|
& .main-content__title {
|
|
112
138
|
color: var(--gray-950, #14161a);
|
|
113
139
|
font-size: 1.5rem;
|
|
@@ -118,7 +144,11 @@
|
|
|
118
144
|
|
|
119
145
|
& .tags__item {
|
|
120
146
|
&:not(.active) {
|
|
121
|
-
background: var(--neutral-
|
|
147
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
148
|
+
|
|
149
|
+
&:hover {
|
|
150
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
151
|
+
}
|
|
122
152
|
}
|
|
123
153
|
}
|
|
124
154
|
|
|
@@ -255,7 +285,7 @@
|
|
|
255
285
|
font-style: normal;
|
|
256
286
|
font-weight: 500;
|
|
257
287
|
line-height: 1.25rem;
|
|
258
|
-
${
|
|
288
|
+
${P.truncateTextInRows(2)}
|
|
259
289
|
}
|
|
260
290
|
|
|
261
291
|
& .item__description {
|
|
@@ -270,16 +300,19 @@
|
|
|
270
300
|
}
|
|
271
301
|
}
|
|
272
302
|
|
|
273
|
-
@media (max-width: ${
|
|
303
|
+
@media (max-width: ${pe.MOBILE_SIZE_PX+"px"}) {
|
|
274
304
|
flex-direction: column;
|
|
275
305
|
|
|
276
306
|
& .landing__main-content {
|
|
277
307
|
width: 100%;
|
|
308
|
+
max-width: 100%;
|
|
278
309
|
padding-right: 0;
|
|
279
310
|
border-right: none;
|
|
280
311
|
|
|
281
312
|
& .section__tags {
|
|
282
|
-
|
|
313
|
+
width: 100%;
|
|
314
|
+
overflow-x: auto;
|
|
315
|
+
white-space: nowrap;
|
|
283
316
|
}
|
|
284
317
|
|
|
285
318
|
& .main-content__actions {
|
|
@@ -287,6 +320,8 @@
|
|
|
287
320
|
}
|
|
288
321
|
|
|
289
322
|
& .main-content__items {
|
|
323
|
+
width: 100%;
|
|
324
|
+
|
|
290
325
|
& .main-content__divider {
|
|
291
326
|
display: none;
|
|
292
327
|
}
|
|
@@ -317,4 +352,4 @@
|
|
|
317
352
|
display: none;
|
|
318
353
|
}
|
|
319
354
|
}
|
|
320
|
-
`,
|
|
355
|
+
`,W=x.forwardRef(({mainTitle:l,sideTitle:u,tags:g,selectedTag:s,handleSelectTag:d=()=>{},blogs:t,miniBlogs:p,products:_,blogsLoading:y=!1,productsLoading:b=!1,sortingOptions:f,sortBy:m,handleSortBy:i=()=>{},allTagText:a="All",searchPlaceholderText:v="Search blogs",timeToReadText:C="{0} min read",getBlogImageUrl:w=()=>{},handleSelectBlog:T=()=>{},handleSelectBlogTag:q=()=>{},handleShareBlog:L=()=>{},showAllButtonLink:E,showAllButtonText:F="Show all products",viewAllButtonText:U="View all (11)",handleViewAll:H=()=>{},handleShowAll:X=()=>{},handleSelectProduct:Z=()=>{},getProductImageUrl:G=()=>{},page:J,handlePage:j=()=>{},perPage:K,handlePerPage:Q=()=>{},totalPage:N,perPageOptions:Y,handleSearch:B=()=>{},onBookmark:A=()=>{},bookmarkComponent:z=e.jsx(e.Fragment,{}),componentName:S},O)=>{const ee=n=>{document.getElementById("landing__container").scrollIntoView({behavior:"smooth",block:"start"}),j==null||j(n)},o=x.useRef(null),ne=oe.useDetectMobile(),[h,re]=x.useState({arrowsVisible:!1,leftArrowDisabled:!1,rightArrowDisabled:!1});x.useEffect(()=>{const n=o==null?void 0:o.current;if(!n)return;const c=()=>{const ae=n.scrollWidth-n.clientWidth;re(se=>({...se,arrowsVisible:n.clientWidth<n.scrollWidth,leftArrowDisabled:n.scrollLeft<=0,rightArrowDisabled:n.scrollLeft>=ae}))},I=new ResizeObserver(c);return I.observe(n),c(),n.addEventListener("scroll",c),()=>{I.disconnect(),n.removeEventListener("scroll",c)}},[]);const te=()=>{var n;(n=o==null?void 0:o.current)==null||n.scrollBy({left:100,behavior:"smooth"})},ie=()=>{var n;(n=o==null?void 0:o.current)==null||n.scrollBy({left:-100,behavior:"smooth"})};return e.jsxs(fe,{ref:O,id:"landing__container",children:[e.jsxs("div",{className:"landing__main-content",children:[e.jsxs("div",{className:"main-content__heading",children:[e.jsx("div",{className:"main-content__title",children:l}),!ne&&(h==null?void 0:h.arrowsVisible)&&e.jsxs("div",{className:"main-content__tags-nav",children:[e.jsx($,{icon:"chevron-left",borderRadius:"curved",btnType:"tinted",color:"neutral",disabled:h==null?void 0:h.leftArrowDisabled,className:"main-content__tag-nav",onClick:ie}),e.jsx($,{icon:"chevron-right",borderRadius:"curved",btnType:"tinted",color:"neutral",disabled:h==null?void 0:h.rightArrowDisabled,className:"main-content__tag-nav",onClick:te})]})]}),g&&e.jsx(de.FaqSectionTags,{ref:o,tags:g,allTagText:a,selectedTagCode:s,onSelectTag:d}),e.jsxs("div",{className:"main-content__actions",children:[e.jsx(ce,{className:"main-content__search",placeholder:v,debounceTime:200,prefix:e.jsx(k,{icon:" mng-lnc-search",sizeInUnits:"1.25rem",className:"main-content__search-prefix"}),color:"neutral",onChange:B}),e.jsx(M,{color:"neutral",control:m==null?void 0:m.name,zIndex:1001,className:"main-content__sort-by",children:f==null?void 0:f.map((n,c)=>e.jsx(R,{active:(n==null?void 0:n.code)===(m==null?void 0:m.code),className:"sort-by__item",onClick:()=>i(n),children:n==null?void 0:n.name},`blog-epxlore-section-sorting-option__${c+1}`))})]}),e.jsxs("div",{className:"main-content__items",children:[t&&(t==null?void 0:t.length)>0&&e.jsx(D,{timeToReadText:C,items:t==null?void 0:t.slice(0,5),isLoading:y,getImage:w,onSelectCard:T,onSelectOption:q,onShare:L,onBookmark:A,bookmarkComponent:z,componentName:S}),e.jsx("div",{className:"main-content__divider"}),_&&(_==null?void 0:_.length)>0&&e.jsx(me,{buttonText:F,buttonLink:E,onButtonAction:X,onSelectCard:Z,items:_,isLoading:b,getImage:G,isHighlight:!0,componentName:S}),e.jsx("div",{className:"main-content__divider"}),t&&(t==null?void 0:t.length)>0&&e.jsx(D,{timeToReadText:C,items:t==null?void 0:t.slice(5),isLoading:y,getImage:w,onSelectCard:T,onSelectOption:q,onShare:L,onBookmark:A,bookmarkComponent:z,componentName:S})]}),N&&N>1&&e.jsx(_e,{perPageOptions:Y,perPage:K,handlePerPage:Q,page:J,handlePage:ee,totalPage:N})]}),e.jsxs("div",{className:"landing__side-content",children:[u&&e.jsx("div",{className:"side-content__title",children:u}),p&&(p==null?void 0:p.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"side-content__items",children:p==null?void 0:p.map((n,c)=>e.jsx(x.Fragment,{children:e.jsxs("div",{className:"side-content__item",onClick:()=>T(n),children:[e.jsx(he.ProductImageWrapper,{src:w(n==null?void 0:n.imageUrl,n==null?void 0:n.uuid)||null,alt:`Mini blog ${c+1}`,className:"item__image"}),e.jsxs("div",{className:"item__content",children:[e.jsx("div",{className:"item__title",children:n==null?void 0:n.title}),e.jsx("div",{className:"item__description",children:P.formatLocaleDateString(n==null?void 0:n.publishedAt)})]})]})},`mini_blg_${c}`))}),e.jsx(le,{onClick:H,className:"side-content__link",children:U})]})]})]})});W.propTypes={mainTitle:r.PropTypes.string,sideTitle:r.PropTypes.string,tags:r.PropTypes.array,selectedTag:r.PropTypes.any,handleSelectTag:r.PropTypes.func,blogs:r.PropTypes.array,miniBlogs:r.PropTypes.array,products:r.PropTypes.array,blogsLoading:r.PropTypes.bool,productsLoading:r.PropTypes.bool,sortingOptions:r.PropTypes.array,sortBy:r.PropTypes.any,handleSortBy:r.PropTypes.func,allTagText:r.PropTypes.string,searchPlaceholderText:r.PropTypes.string,timeToReadText:r.PropTypes.string,getBlogImageUrl:r.PropTypes.func,handleSelectBlog:r.PropTypes.func,handleSelectBlogTag:r.PropTypes.func,handleShareBlog:r.PropTypes.func,handleBookmarkBlog:r.PropTypes.func,showAllButtonLink:r.PropTypes.string,showAllButtonText:r.PropTypes.string,viewAllButtonText:r.PropTypes.string,handleShowAll:r.PropTypes.func,handleSelectProduct:r.PropTypes.func,getProductImageUrl:r.PropTypes.func,page:r.PropTypes.number,handlePage:r.PropTypes.func,perPage:r.PropTypes.any,handlePerPage:r.PropTypes.func,totalPage:r.PropTypes.number,perPageOptions:r.PropTypes.array,handleSearch:r.PropTypes.func};module.exports=W;
|
|
@@ -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
|
};
|
package/dist/FaqSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),u=require("react"),n=require("./index-BpbMKBf_.cjs"),P=require("./tag-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("react"),n=require("./index-BpbMKBf_.cjs"),P=require("./tag-CmeZsPQt.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./Icon.cjs"),b=require("./IconButton.cjs"),I=require("./Button.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),m=({title:t,description:i,questionText:a,feedbackText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}})=>{const[h,c]=u.useState(!1),[x,y]=u.useState(!1),T=()=>{c(o=>!o),p()},r=(o,_)=>{o==null||o.stopPropagation(),y(!0),d(_)};return e.jsxs(P.ItemContainer,{className:h?"expanded":"",onClick:T,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:t}),e.jsx(q,{icon:h?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:i}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(q,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:a}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(b,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!0)}),e.jsx(b,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!1)})]})]})})]})]})},v=u.forwardRef(({items:t=[],questionText:i,feedbackText:a,showMoreText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}},h)=>{const c=w.useDetectMobile(),[x,y]=u.useState(!1),T=()=>{y(o=>!o)},r=u.useMemo(()=>{if(c)return t==null?void 0:t.map((s,f)=>e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`));const o=[],_=[];return t==null||t.forEach((s,f)=>{f%2===0?o.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`)):_.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:_})]})},[t,c]);return e.jsx(P.ItemsContainer,{ref:h,children:c?x?r:e.jsxs(e.Fragment,{children:[r==null?void 0:r.slice(0,4),(r==null?void 0:r.length)>4&&e.jsx(I,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:T})]}):r})});m.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};v.propTypes={items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};const M=N.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
package/dist/FaqSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as i, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useState as x, useMemo as q } from "react";
|
|
3
3
|
import { P as n } from "./index-CblbdqjE.js";
|
|
4
|
-
import { I as M, a as C, F } from "./tag-
|
|
4
|
+
import { I as M, a as C, F } from "./tag-BtS5lWJ0.js";
|
|
5
5
|
import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import w from "./Icon.js";
|
|
7
7
|
import S from "./IconButton.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
3
|
import { P as r } from "./index-CblbdqjE.js";
|
|
4
4
|
import d from "./Chip.js";
|
|
5
5
|
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import { M as
|
|
6
|
+
import { M as a } from "./consts-BuFChS64.js";
|
|
7
7
|
const p = o.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: 0.75rem;
|
|
@@ -12,7 +12,7 @@ const p = o.div`
|
|
|
12
12
|
|
|
13
13
|
& .tags__item {
|
|
14
14
|
color: var(--gray-900, #0c1520);
|
|
15
|
-
background: var(--
|
|
15
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
16
16
|
font-size: 0.875rem;
|
|
17
17
|
font-style: normal;
|
|
18
18
|
font-weight: 400;
|
|
@@ -33,6 +33,7 @@ const p = o.div`
|
|
|
33
33
|
|
|
34
34
|
&:hover {
|
|
35
35
|
background: var(--gray-200, #e4e9f0);
|
|
36
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
&:focus {
|
|
@@ -40,7 +41,7 @@ const p = o.div`
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
@media (max-width: ${
|
|
44
|
+
@media (max-width: ${a + "px"}) {
|
|
44
45
|
width: 100%;
|
|
45
46
|
overflow-x: auto;
|
|
46
47
|
white-space: nowrap;
|
|
@@ -59,7 +60,7 @@ const p = o.div`
|
|
|
59
60
|
/* Safari and Chrome */
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
`,
|
|
63
|
+
`, v = o.div`
|
|
63
64
|
display: flex;
|
|
64
65
|
gap: 1.25rem;
|
|
65
66
|
width: 100%;
|
|
@@ -84,10 +85,10 @@ const p = o.div`
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
@media (max-width: ${
|
|
88
|
+
@media (max-width: ${a + "px"}) {
|
|
88
89
|
flex-direction: column;
|
|
89
90
|
}
|
|
90
|
-
`,
|
|
91
|
+
`, y = o.div`
|
|
91
92
|
width: 100%;
|
|
92
93
|
height: fit-content;
|
|
93
94
|
background: var(--white, #fff);
|
|
@@ -167,7 +168,7 @@ const p = o.div`
|
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
|
|
170
|
-
@media (max-width: ${
|
|
171
|
+
@media (max-width: ${a + "px"}) {
|
|
171
172
|
& .card__impression {
|
|
172
173
|
justify-content: space-between;
|
|
173
174
|
|
|
@@ -176,9 +177,9 @@ const p = o.div`
|
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
|
-
`, g =
|
|
180
|
+
`, g = f(
|
|
180
181
|
({ tags: n = [], allTagText: i, selectedTagCode: l = null, onSelectTag: s = () => {
|
|
181
|
-
} }, c) => /* @__PURE__ */
|
|
182
|
+
} }, c) => /* @__PURE__ */ t(p, { ref: c, className: "section__tags", children: [{ name: i, code: null }, ...n].map((e, m) => /* @__PURE__ */ t(
|
|
182
183
|
d,
|
|
183
184
|
{
|
|
184
185
|
label: e == null ? void 0 : e.name,
|
|
@@ -189,7 +190,7 @@ const p = o.div`
|
|
|
189
190
|
s(e);
|
|
190
191
|
}
|
|
191
192
|
},
|
|
192
|
-
`faq-section-tag__${
|
|
193
|
+
`faq-section-tag__${m + 1}`
|
|
193
194
|
)) })
|
|
194
195
|
);
|
|
195
196
|
g.propTypes = {
|
|
@@ -199,6 +200,6 @@ g.propTypes = {
|
|
|
199
200
|
};
|
|
200
201
|
export {
|
|
201
202
|
g as F,
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
v as I,
|
|
204
|
+
y as a
|
|
204
205
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),m=require("react"),r=require("./index-BpbMKBf_.cjs"),p=require("./Chip.cjs"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),g=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 0.75rem;
|
|
4
4
|
align-items: center;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
& .tags__item {
|
|
8
8
|
color: var(--gray-900, #0c1520);
|
|
9
|
-
background: var(--
|
|
9
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
10
10
|
font-size: 0.875rem;
|
|
11
11
|
font-style: normal;
|
|
12
12
|
font-weight: 400;
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
&:hover {
|
|
29
29
|
background: var(--gray-200, #e4e9f0);
|
|
30
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
&:focus {
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
@media (max-width: ${
|
|
38
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
38
39
|
width: 100%;
|
|
39
40
|
overflow-x: auto;
|
|
40
41
|
white-space: nowrap;
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
/* Safari and Chrome */
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
`,u=
|
|
57
|
+
`,u=n.styled.div`
|
|
57
58
|
display: flex;
|
|
58
59
|
gap: 1.25rem;
|
|
59
60
|
width: 100%;
|
|
@@ -78,10 +79,10 @@
|
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
@media (max-width: ${
|
|
82
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
82
83
|
flex-direction: column;
|
|
83
84
|
}
|
|
84
|
-
`,h=
|
|
85
|
+
`,h=n.styled.div`
|
|
85
86
|
width: 100%;
|
|
86
87
|
height: fit-content;
|
|
87
88
|
background: var(--white, #fff);
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
164
|
|
|
164
|
-
@media (max-width: ${
|
|
165
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
165
166
|
& .card__impression {
|
|
166
167
|
justify-content: space-between;
|
|
167
168
|
|
|
@@ -170,4 +171,4 @@
|
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
|
-
`,
|
|
174
|
+
`,a=m.forwardRef(({tags:i=[],allTagText:s,selectedTagCode:l=null,onSelectTag:c=()=>{}},d)=>t.jsx(g,{ref:d,className:"section__tags",children:[{name:s,code:null},...i].map((e,f)=>t.jsx(p,{label:e==null?void 0:e.name,borderRadius:"curved",color:"neutral",className:`tags__item ${l===(e==null?void 0:e.code)?"active":""}`,onClick:()=>{c(e)}},`faq-section-tag__${f+1}`))}));a.propTypes={tags:r.PropTypes.array,allTagText:r.PropTypes.string,onSelectTag:r.PropTypes.func};exports.FaqSectionTags=a;exports.ItemContainer=h;exports.ItemsContainer=u;
|