@lanaco/lnc-react-ui 4.0.151 → 4.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AdBannerSection.cjs +3 -3
- package/dist/AdBannerSection.js +16 -16
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +33 -32
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +33 -33
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +15 -15
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -12
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +30 -30
- package/dist/BlogListSection.cjs +2 -2
- package/dist/BlogListSection.js +28 -28
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +20 -19
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +22 -22
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +24 -24
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{DailyMotion-CPQ6kDJJ.cjs → DailyMotion-BaFUcQKQ.cjs} +1 -1
- package/dist/{DailyMotion-BrbMSyj1.js → DailyMotion-ByXblnua.js} +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +41 -41
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/{Facebook-Dw3my9_4.js → Facebook-BCqiOWZO.js} +1 -1
- package/dist/{Facebook-DKhRiODC.cjs → Facebook-D9wwecSW.cjs} +1 -1
- package/dist/FaqSection.cjs +2 -2
- package/dist/FaqSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +65 -48
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +27 -25
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +10 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +77 -65
- package/dist/{FilePlayer-DlCyGLHB.cjs → FilePlayer-DB6jnpeC.cjs} +1 -1
- package/dist/{FilePlayer-Ckx8dmB0.js → FilePlayer-ktaNhf3p.js} +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +9 -9
- package/dist/GeneralWithTagsCardsSection.js +15 -15
- package/dist/{Kaltura-31Xm8S1J.cjs → Kaltura-CCdXLzOa.cjs} +1 -1
- package/dist/{Kaltura-qHdDvnjZ.js → Kaltura-CvlN0HDg.js} +1 -1
- package/dist/LoanCalculatorSection.cjs +2 -2
- package/dist/LoanCalculatorSection.js +89 -88
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/{Mixcloud-DvH0vfg5.js → Mixcloud-Bb8MTclI.js} +1 -1
- package/dist/{Mixcloud-CP9Zq_TX.cjs → Mixcloud-nG_VyBNt.cjs} +1 -1
- package/dist/{Mux-BlblTeid.cjs → Mux-BgB2a8kM.cjs} +1 -1
- package/dist/{Mux--JeF6dPG.js → Mux-DfYpGTiP.js} +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +11 -11
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/QuizSection.cjs +7 -7
- package/dist/QuizSection.js +51 -51
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -1
- package/dist/SearchSection-BcbHP6QF.cjs +161 -0
- package/dist/{SearchSection-CsfURtvf.js → SearchSection-DDQ_K98T.js} +52 -52
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/{SoundCloud-1hd9TBSO.cjs → SoundCloud-C86xwUG6.cjs} +1 -1
- package/dist/{SoundCloud-CKaavZky.js → SoundCloud-DG91z39R.js} +1 -1
- package/dist/StatsSection.cjs +5 -5
- package/dist/StatsSection.js +22 -22
- package/dist/{Streamable-DLxq1ZNX.cjs → Streamable-4uAnb3WN.cjs} +1 -1
- package/dist/{Streamable-CZEPghiG.js → Streamable-BAIWLgyD.js} +1 -1
- package/dist/ToggleSection.cjs +3 -3
- package/dist/ToggleSection.js +10 -10
- package/dist/{Twitch-Bb8e342z.cjs → Twitch-CVAj24ti.cjs} +1 -1
- package/dist/{Twitch-BJeGquex.js → Twitch-DfXeW5Xs.js} +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{Vidyard-WNQdOeK1.cjs → Vidyard-DaCcaaH4.cjs} +1 -1
- package/dist/{Vidyard-CuGoX_VE.js → Vidyard-De3pges0.js} +1 -1
- package/dist/{Vimeo-Da2vBv-V.cjs → Vimeo-8wXdCXGs.cjs} +1 -1
- package/dist/{Vimeo-B9eKoxWn.js → Vimeo-N6I2qi_h.js} +1 -1
- package/dist/{Wistia-ZPcGhh1L.cjs → Wistia-BrUzHQoq.cjs} +1 -1
- package/dist/{Wistia-BB50IUif.js → Wistia-dlV6n6tO.js} +1 -1
- package/dist/{YouTube-4RMnpdLL.cjs → YouTube-Cfsj4ZaP.cjs} +1 -1
- package/dist/{YouTube-CG6JL2_w.js → YouTube-DNJxWqRm.js} +1 -1
- package/dist/{index-DzYKmmn2.js → index-BGY3PSA-.js} +18 -18
- package/dist/{index-Djw_s9eq.js → index-C0SKNFzP.js} +15 -15
- package/dist/{index-cd9auaNr.cjs → index-CLoINIGC.cjs} +3 -3
- package/dist/{index-GxCvHDwv.cjs → index-ELUMKl0N.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{suspense-categories-card-simple-DuKEj9IU.js → suspense-categories-card-simple-BGj475Ca.js} +11 -10
- package/dist/{suspense-categories-card-simple-DaA0JGJJ.cjs → suspense-categories-card-simple-CjGtzfzp.cjs} +1 -1
- package/dist/suspense-product-card-detailed-BJ-HBkBc.js +577 -0
- package/dist/suspense-product-card-detailed-wPRUytSf.cjs +263 -0
- package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js} +1 -1
- package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs} +1 -1
- package/dist/{tag-CtleOqEC.js → tag-cRMfP-SZ.js} +9 -9
- package/dist/{tag-Bov1gw34.cjs → tag-yputMSpE.cjs} +4 -4
- package/package.json +1 -1
- package/dist/SearchSection-BGK1Fxaj.cjs +0 -161
- package/dist/suspense-product-card-detailed-C-ZCjG5p.js +0 -538
- package/dist/suspense-product-card-detailed-FuxsUusc.cjs +0 -260
package/dist/AdBannerSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),c=require("./useDetectMobile-zkbzoOGV.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=o.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
max-width: 60.625rem;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
aspect-ratio: 1 / 1;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,x=
|
|
33
|
+
`,x=a.forwardRef(({image:i,imageForMobile:r,isMobile:s,onSelectCard:e},h)=>t.jsx(d,{ref:h,children:t.jsx("img",{src:s?r:i,className:"wrapper__image",onClick:e})})),p=o.styled.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
justify-content: center;
|
|
36
36
|
width: 100%;
|
|
37
|
-
`,w=
|
|
37
|
+
`,w=a.forwardRef(({image:i,imageForMobile:r,link:s,onSelectCard:e=()=>{}},h)=>{const n=c.useDetectMobile();return t.jsx(p,{ref:h,children:t.jsx(x,{image:i,imageForMobile:r,isMobile:n,onSelectCard:()=>e==null?void 0:e(s)})})});module.exports=w;
|
package/dist/AdBannerSection.js
CHANGED
|
@@ -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 m } from "react";
|
|
3
3
|
import { u as p } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { s as
|
|
4
|
+
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { M as d } from "./consts-BuFChS64.js";
|
|
6
|
-
const n =
|
|
6
|
+
const n = o.div`
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
9
9
|
max-width: 60.625rem;
|
|
@@ -35,30 +35,30 @@ const n = m.div`
|
|
|
35
35
|
aspect-ratio: 1 / 1;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`, c =
|
|
39
|
-
({ image:
|
|
38
|
+
`, c = m(
|
|
39
|
+
({ image: e, imageForMobile: r, isMobile: a, onSelectCard: i }, h) => /* @__PURE__ */ t(n, { ref: h, children: /* @__PURE__ */ t(
|
|
40
40
|
"img",
|
|
41
41
|
{
|
|
42
|
-
src: a ?
|
|
42
|
+
src: a ? r : e,
|
|
43
43
|
className: "wrapper__image",
|
|
44
|
-
onClick:
|
|
44
|
+
onClick: i
|
|
45
45
|
}
|
|
46
46
|
) })
|
|
47
|
-
), w =
|
|
47
|
+
), w = o.div`
|
|
48
48
|
display: flex;
|
|
49
49
|
justify-content: center;
|
|
50
50
|
width: 100%;
|
|
51
|
-
`, u =
|
|
52
|
-
({ image:
|
|
53
|
-
} },
|
|
51
|
+
`, u = m(
|
|
52
|
+
({ image: e, imageForMobile: r, link: a, onSelectCard: i = () => {
|
|
53
|
+
} }, h) => {
|
|
54
54
|
const s = p();
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ t(w, { ref: h, children: /* @__PURE__ */ t(
|
|
56
56
|
c,
|
|
57
57
|
{
|
|
58
|
-
image:
|
|
59
|
-
imageForMobile:
|
|
58
|
+
image: e,
|
|
59
|
+
imageForMobile: r,
|
|
60
60
|
isMobile: s,
|
|
61
|
-
onSelectCard: () =>
|
|
61
|
+
onSelectCard: () => i == null ? void 0 : i(a)
|
|
62
62
|
}
|
|
63
63
|
) });
|
|
64
64
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("react"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./consts-goSZX3xP.cjs"),b=require("./Button.cjs"),p=r.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
width: fit-content;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,y=r.styled.div`
|
|
26
26
|
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
27
27
|
display: flex;
|
|
28
28
|
gap: 2rem;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
padding: 0;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,v=r.styled.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-direction: column;
|
|
42
42
|
gap: 0.25rem;
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
font-size: 1rem;
|
|
54
54
|
font-weight: 500;
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,w=x.forwardRef((e,n)=>{const{title:o,subtitle:a,buttonText:s,onClick:l,height:d,imageWidth:c,imageHeightMob:m,smallPadding:h=!1,isHorizontalContent:u=!1,backgroundColor:g,hasBorder:f=!1}=e;return t.jsx(p,{ref:n,bgcolor:g,height:d,imgW:c,imgHMob:m,hasBorder:f,children:t.jsxs(y,{isHorizontalContent:u,smallPadding:h,children:[t.jsxs(v,{children:[t.jsx("div",{className:"header-title",children:o}),t.jsx("div",{className:"header-subitle",children:a})]}),t.jsx(b,{size:"medium",color:"neutral",type:"button",borderRadius:"curved",onClick:l,children:s})]})})});module.exports=w;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as x } from "react";
|
|
3
3
|
import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as o } from "./consts-BuFChS64.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import b from "./Button.js";
|
|
6
|
+
const v = r.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
border-radius: 0.75rem;
|
|
9
9
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
@@ -27,7 +27,7 @@ const b = r.div`
|
|
|
27
27
|
width: fit-content;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`, w = r.div`
|
|
31
31
|
padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
|
|
32
32
|
display: flex;
|
|
33
33
|
gap: 2rem;
|
|
@@ -41,7 +41,7 @@ const b = r.div`
|
|
|
41
41
|
padding: 0;
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
}
|
|
44
|
-
`,
|
|
44
|
+
`, y = r.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: 0.25rem;
|
|
@@ -58,47 +58,48 @@ const b = r.div`
|
|
|
58
58
|
font-size: 1rem;
|
|
59
59
|
font-weight: 500;
|
|
60
60
|
}
|
|
61
|
-
`, k =
|
|
61
|
+
`, k = x((e, n) => {
|
|
62
62
|
const {
|
|
63
|
-
title:
|
|
64
|
-
subtitle:
|
|
65
|
-
buttonText:
|
|
66
|
-
onClick:
|
|
67
|
-
height:
|
|
68
|
-
imageWidth:
|
|
69
|
-
imageHeightMob:
|
|
70
|
-
smallPadding:
|
|
71
|
-
isHorizontalContent:
|
|
72
|
-
backgroundColor:
|
|
73
|
-
hasBorder:
|
|
63
|
+
title: a,
|
|
64
|
+
subtitle: l,
|
|
65
|
+
buttonText: d,
|
|
66
|
+
onClick: m,
|
|
67
|
+
height: s,
|
|
68
|
+
imageWidth: c,
|
|
69
|
+
imageHeightMob: h,
|
|
70
|
+
smallPadding: g = !1,
|
|
71
|
+
isHorizontalContent: f = !1,
|
|
72
|
+
backgroundColor: u,
|
|
73
|
+
hasBorder: p = !1
|
|
74
74
|
} = e;
|
|
75
75
|
return /* @__PURE__ */ t(
|
|
76
|
-
|
|
76
|
+
v,
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
ref: n,
|
|
79
|
+
bgcolor: u,
|
|
80
|
+
height: s,
|
|
81
|
+
imgW: c,
|
|
82
|
+
imgHMob: h,
|
|
83
|
+
hasBorder: p,
|
|
83
84
|
children: /* @__PURE__ */ i(
|
|
84
|
-
|
|
85
|
+
w,
|
|
85
86
|
{
|
|
86
|
-
isHorizontalContent:
|
|
87
|
-
smallPadding:
|
|
87
|
+
isHorizontalContent: f,
|
|
88
|
+
smallPadding: g,
|
|
88
89
|
children: [
|
|
89
|
-
/* @__PURE__ */ i(
|
|
90
|
-
/* @__PURE__ */ t("div", { className: "header-title", children:
|
|
91
|
-
/* @__PURE__ */ t("div", { className: "header-subitle", children:
|
|
90
|
+
/* @__PURE__ */ i(y, { children: [
|
|
91
|
+
/* @__PURE__ */ t("div", { className: "header-title", children: a }),
|
|
92
|
+
/* @__PURE__ */ t("div", { className: "header-subitle", children: l })
|
|
92
93
|
] }),
|
|
93
94
|
/* @__PURE__ */ t(
|
|
94
|
-
|
|
95
|
+
b,
|
|
95
96
|
{
|
|
96
97
|
size: "medium",
|
|
97
98
|
color: "neutral",
|
|
98
99
|
type: "button",
|
|
99
100
|
borderRadius: "curved",
|
|
100
|
-
onClick:
|
|
101
|
-
children:
|
|
101
|
+
onClick: m,
|
|
102
|
+
children: d
|
|
102
103
|
}
|
|
103
104
|
)
|
|
104
105
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),w=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),s=require("./index-CSgGox95.cjs"),f=k.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(2, 1fr);
|
|
4
4
|
gap: 0;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
border-radius: 0.75rem 0rem 0.75rem 0.75rem;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media (max-width: ${
|
|
28
|
+
@media (max-width: ${q.MOBILE_SIZE_PX+"px"}) {
|
|
29
29
|
grid-template-columns: repeat(1, 1fr);
|
|
30
30
|
gap: 1.5rem;
|
|
31
31
|
|
|
@@ -45,4 +45,4 @@
|
|
|
45
45
|
max-height: unset;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
`,
|
|
48
|
+
`,B=w.forwardRef((e,n)=>{const{image1Url:o,image2Url:i,title1:g,title2:a,text1:c,text2:u,subtitle1:h,subtitle2:l,buttonText1:x,buttonText2:d,buttonLink1:b,buttonLink2:p,rowHeight:j="12.65625rem",onButtonAction:r=()=>{}}=e,m=T.useDetectMobile();return t.jsxs(f,{ref:n,height:j,children:[t.jsx(s.TextBlockV1,{className:"text-item",title:g,subtitle:h,description:c,buttonText:x,buttonLink:b,onButtonAction:r}),t.jsx("img",{className:"img-item img-1",src:o}),m!==!0&&t.jsx("img",{className:"img-item img-2",src:i}),t.jsx(s.TextBlockV1,{className:"text-item",title:a,subtitle:l,description:u,buttonText:d,buttonLink:p,onButtonAction:r}),m===!0&&t.jsx("img",{className:"img-item img-2",src:i})]})});module.exports=B;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
1
|
+
import { jsxs as w, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T } from "react";
|
|
3
|
+
import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as L } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as N } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { T as o } from "./index-DK8dqEUQ.js";
|
|
7
|
-
const
|
|
7
|
+
const $ = k.div`
|
|
8
8
|
display: grid;
|
|
9
9
|
grid-template-columns: repeat(2, 1fr);
|
|
10
10
|
gap: 0;
|
|
@@ -31,7 +31,7 @@ const N = T.div`
|
|
|
31
31
|
border-radius: 0.75rem 0rem 0.75rem 0.75rem;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
@media (max-width: ${
|
|
34
|
+
@media (max-width: ${L + "px"}) {
|
|
35
35
|
grid-template-columns: repeat(1, 1fr);
|
|
36
36
|
gap: 1.5rem;
|
|
37
37
|
|
|
@@ -51,48 +51,48 @@ const N = T.div`
|
|
|
51
51
|
max-height: unset;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
`, G =
|
|
54
|
+
`, G = T((t, s) => {
|
|
55
55
|
const {
|
|
56
|
-
image1Url:
|
|
56
|
+
image1Url: a,
|
|
57
57
|
image2Url: i,
|
|
58
|
-
title1:
|
|
59
|
-
title2:
|
|
60
|
-
text1:
|
|
61
|
-
text2:
|
|
62
|
-
subtitle1:
|
|
63
|
-
subtitle2:
|
|
64
|
-
buttonText1:
|
|
65
|
-
buttonText2:
|
|
66
|
-
buttonLink1:
|
|
67
|
-
buttonLink2:
|
|
68
|
-
rowHeight:
|
|
58
|
+
title1: g,
|
|
59
|
+
title2: n,
|
|
60
|
+
text1: h,
|
|
61
|
+
text2: u,
|
|
62
|
+
subtitle1: l,
|
|
63
|
+
subtitle2: d,
|
|
64
|
+
buttonText1: c,
|
|
65
|
+
buttonText2: x,
|
|
66
|
+
buttonLink1: p,
|
|
67
|
+
buttonLink2: b,
|
|
68
|
+
rowHeight: f = "12.65625rem",
|
|
69
69
|
onButtonAction: m = () => {
|
|
70
70
|
}
|
|
71
|
-
} = t, r =
|
|
72
|
-
return /* @__PURE__ */
|
|
71
|
+
} = t, r = N();
|
|
72
|
+
return /* @__PURE__ */ w($, { ref: s, height: f, children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
o,
|
|
75
75
|
{
|
|
76
76
|
className: "text-item",
|
|
77
|
-
title:
|
|
78
|
-
subtitle:
|
|
79
|
-
description:
|
|
80
|
-
buttonText:
|
|
81
|
-
buttonLink:
|
|
77
|
+
title: g,
|
|
78
|
+
subtitle: l,
|
|
79
|
+
description: h,
|
|
80
|
+
buttonText: c,
|
|
81
|
+
buttonLink: p,
|
|
82
82
|
onButtonAction: m
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
|
-
/* @__PURE__ */ e("img", { className: "img-item img-1", src:
|
|
85
|
+
/* @__PURE__ */ e("img", { className: "img-item img-1", src: a }),
|
|
86
86
|
r !== !0 && /* @__PURE__ */ e("img", { className: "img-item img-2", src: i }),
|
|
87
87
|
/* @__PURE__ */ e(
|
|
88
88
|
o,
|
|
89
89
|
{
|
|
90
90
|
className: "text-item",
|
|
91
|
-
title:
|
|
92
|
-
subtitle:
|
|
93
|
-
description:
|
|
94
|
-
buttonText:
|
|
95
|
-
buttonLink:
|
|
91
|
+
title: n,
|
|
92
|
+
subtitle: d,
|
|
93
|
+
description: u,
|
|
94
|
+
buttonText: x,
|
|
95
|
+
buttonLink: b,
|
|
96
96
|
onButtonAction: m
|
|
97
97
|
}
|
|
98
98
|
),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),m=require("react"),s=require("./utils-Dl9xPH4c.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),s=require("./utils-Dl9xPH4c.cjs"),w=require("./Icon.cjs"),j=require("./style-CyHewQxg.cjs"),N=require("./index-BueKsXT8.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),x=require("./suspense-large-BX4jlU4U.cjs"),S=require("./Button.cjs"),z=b.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
`,I=m.forwardRef(({title:i,imageUrl:p,options:
|
|
124
|
+
`,I=m.forwardRef(({title:i,imageUrl:p,options:a,publishedAt:c,timeToReadText:g="{0} min read",timeToRead:_=0,numberOfLikes:n=0,numberOfComments:l=0,isSponsored:o=!1,onSelectCard:f=()=>{}},u)=>r.jsxs(z,{ref:u,isSponsored:o,onClick:f,children:[o&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(N.ProductImageWrapper,{src:p,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:i}),r.jsx("div",{className:"wrapper__tags",children:a&&(a==null?void 0:a.map((t,h)=>r.jsx(j.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},h)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${s.formatLocaleDateString(c)} • ${s.formatString(g,_)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),s.getRoundedNumber(n)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),s.getRoundedNumber(l)]})]})]})]})]})),R=b.styled.div`
|
|
125
125
|
display: flex;
|
|
126
126
|
flex-direction: column;
|
|
127
127
|
align-items: flex-start;
|
|
@@ -203,4 +203,4 @@
|
|
|
203
203
|
gap: 1rem;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
`,q=m.memo(I),k=m.forwardRef(({title:i,subtitle:p,icon:
|
|
206
|
+
`,q=m.memo(I),k=m.forwardRef(({title:i,subtitle:p,icon:a,buttonText:c,buttonLink:g,timeToReadText:_="{0} min read",items:n,onButtonAction:l=()=>{},onSelectCard:o=()=>{},isLoading:f=!1,getImage:u=()=>{}},t)=>{const h=m.useMemo(()=>{var d;return(d=n==null?void 0:n.slice(0,4))==null?void 0:d.map((e,y)=>r.jsx(q,{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:_,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,onSelectCard:()=>o==null?void 0:o(e),imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${y+1}`))},[n]);return r.jsxs(R,{ref:t,children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[i&&r.jsxs("div",{className:"title__text",children:[s.isDefinedNotEmptyString(a)&&r.jsx("i",{className:a}),r.jsx("span",{children:i})]}),l&&r.jsx(S,{text:c,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:d=>{var e;(e=d==null?void 0:d.target)==null||e.blur(),l==null||l(g)}})]}),p&&r.jsx("div",{className:"wrapper__subtitle",children:p})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(x.SuspenseBlogLarge,{isLoading:f,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=k;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, memo as S, useMemo as k } from "react";
|
|
3
3
|
import { p as v, s as $, v as j, w as u, k as I } from "./utils-BdsZgOUE.js";
|
|
4
|
-
import
|
|
4
|
+
import w from "./Icon.js";
|
|
5
5
|
import { B as R } from "./style-DFPWLJBr.js";
|
|
6
6
|
import { P as L } from "./index-CF3HhgvN.js";
|
|
7
7
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
@@ -135,7 +135,7 @@ const U = y.div`
|
|
|
135
135
|
({
|
|
136
136
|
title: i,
|
|
137
137
|
imageUrl: p,
|
|
138
|
-
options:
|
|
138
|
+
options: l,
|
|
139
139
|
publishedAt: d,
|
|
140
140
|
timeToReadText: c = "{0} min read",
|
|
141
141
|
timeToRead: g = 0,
|
|
@@ -144,13 +144,13 @@ const U = y.div`
|
|
|
144
144
|
isSponsored: o = !1,
|
|
145
145
|
onSelectCard: f = () => {
|
|
146
146
|
}
|
|
147
|
-
},
|
|
148
|
-
o && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(
|
|
147
|
+
}, _) => /* @__PURE__ */ a(U, { ref: _, isSponsored: o, onClick: f, children: [
|
|
148
|
+
o && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(w, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
149
149
|
/* @__PURE__ */ r(L, { src: p, className: "wrapper__image" }),
|
|
150
150
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
151
151
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
152
152
|
/* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
153
|
-
/* @__PURE__ */ r("div", { className: "wrapper__tags", children:
|
|
153
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: l && (l == null ? void 0 : l.map((t, h) => /* @__PURE__ */ r(R, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, h))) })
|
|
154
154
|
] }),
|
|
155
155
|
/* @__PURE__ */ a("div", { className: "wrapper__info", children: [
|
|
156
156
|
/* @__PURE__ */ r("div", { className: "info__text", children: `${$(
|
|
@@ -158,11 +158,11 @@ const U = y.div`
|
|
|
158
158
|
)} • ${j(c, g)}` }),
|
|
159
159
|
/* @__PURE__ */ a("div", { className: "info__text", children: [
|
|
160
160
|
/* @__PURE__ */ a("div", { children: [
|
|
161
|
-
/* @__PURE__ */ r(
|
|
161
|
+
/* @__PURE__ */ r(w, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
162
162
|
u(n)
|
|
163
163
|
] }),
|
|
164
164
|
/* @__PURE__ */ a("div", { children: [
|
|
165
|
-
/* @__PURE__ */ r(
|
|
165
|
+
/* @__PURE__ */ r(w, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
166
166
|
u(s)
|
|
167
167
|
] })
|
|
168
168
|
] })
|
|
@@ -255,7 +255,7 @@ const U = y.div`
|
|
|
255
255
|
({
|
|
256
256
|
title: i,
|
|
257
257
|
subtitle: p,
|
|
258
|
-
icon:
|
|
258
|
+
icon: l,
|
|
259
259
|
buttonText: d,
|
|
260
260
|
buttonLink: c,
|
|
261
261
|
timeToReadText: g = "{0} min read",
|
|
@@ -265,10 +265,10 @@ const U = y.div`
|
|
|
265
265
|
onSelectCard: o = () => {
|
|
266
266
|
},
|
|
267
267
|
isLoading: f = !1,
|
|
268
|
-
getImage:
|
|
268
|
+
getImage: _ = () => {
|
|
269
269
|
}
|
|
270
|
-
},
|
|
271
|
-
const
|
|
270
|
+
}, t) => {
|
|
271
|
+
const h = k(() => {
|
|
272
272
|
var m;
|
|
273
273
|
return (m = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : m.map((e, z) => /* @__PURE__ */ r(
|
|
274
274
|
M,
|
|
@@ -283,16 +283,16 @@ const U = y.div`
|
|
|
283
283
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
284
284
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
285
285
|
onSelectCard: () => o == null ? void 0 : o(e),
|
|
286
|
-
imageUrl:
|
|
286
|
+
imageUrl: _(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
287
287
|
},
|
|
288
288
|
`blog-card-sponsored__${z + 1}`
|
|
289
289
|
));
|
|
290
290
|
}, [n]);
|
|
291
|
-
return /* @__PURE__ */ a(C, { children: [
|
|
291
|
+
return /* @__PURE__ */ a(C, { ref: t, children: [
|
|
292
292
|
/* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
|
|
293
293
|
/* @__PURE__ */ a("div", { className: "wrapper__title", children: [
|
|
294
294
|
i && /* @__PURE__ */ a("div", { className: "title__text", children: [
|
|
295
|
-
I(
|
|
295
|
+
I(l) && /* @__PURE__ */ r("i", { className: l }),
|
|
296
296
|
/* @__PURE__ */ r("span", { children: i })
|
|
297
297
|
] }),
|
|
298
298
|
s && /* @__PURE__ */ r(
|
|
@@ -318,7 +318,7 @@ const U = y.div`
|
|
|
318
318
|
isLoading: f,
|
|
319
319
|
limit: 4,
|
|
320
320
|
keyPrefix: "blog-section",
|
|
321
|
-
children:
|
|
321
|
+
children: h
|
|
322
322
|
}
|
|
323
323
|
) })
|
|
324
324
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-CjGtzfzp.cjs"),m=require("./style-BTTXJFJN.cjs"),p=a.memo(u.CategorySimpleCard),C=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},d)=>{const g=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,l)=>s.jsx(p,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},l))},[r]);return s.jsx(m.Wrapper,{ref:d,className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:g})})})});module.exports=C;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { C as
|
|
4
|
-
import { W as
|
|
5
|
-
const
|
|
2
|
+
import { memo as t, forwardRef as u, useMemo as f } from "react";
|
|
3
|
+
import { C as n, S as c } from "./suspense-categories-card-simple-BGj475Ca.js";
|
|
4
|
+
import { W as C } from "./style-tw6KjI2J.js";
|
|
5
|
+
const h = t(n), M = u(
|
|
6
6
|
({
|
|
7
7
|
items: r,
|
|
8
8
|
onSelectCard: o = () => {
|
|
@@ -10,27 +10,27 @@ const C = l(u), M = f(
|
|
|
10
10
|
isLoading: m = !1,
|
|
11
11
|
limit: s = 4,
|
|
12
12
|
isHighlight: p = !1
|
|
13
|
-
},
|
|
14
|
-
const
|
|
13
|
+
}, d) => {
|
|
14
|
+
const g = f(() => {
|
|
15
15
|
var i;
|
|
16
|
-
return (i = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : i.map((e,
|
|
17
|
-
|
|
16
|
+
return (i = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : i.map((e, l) => /* @__PURE__ */ a(
|
|
17
|
+
h,
|
|
18
18
|
{
|
|
19
19
|
uuid: e == null ? void 0 : e.uuid,
|
|
20
20
|
image: e == null ? void 0 : e.image,
|
|
21
21
|
name: e == null ? void 0 : e.name,
|
|
22
22
|
onSelectCard: () => o == null ? void 0 : o(e == null ? void 0 : e.uuid)
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
l
|
|
25
25
|
));
|
|
26
26
|
}, [r]);
|
|
27
|
-
return /* @__PURE__ */ a(
|
|
28
|
-
|
|
27
|
+
return /* @__PURE__ */ a(C, { ref: d, className: p ? "highlight" : "", children: /* @__PURE__ */ a("div", { className: "wrapper__grid", children: /* @__PURE__ */ a(
|
|
28
|
+
c,
|
|
29
29
|
{
|
|
30
30
|
isLoading: m,
|
|
31
31
|
limit: s,
|
|
32
32
|
keyPrefix: "blog-section",
|
|
33
|
-
children:
|
|
33
|
+
children: g
|
|
34
34
|
}
|
|
35
35
|
) }) });
|
|
36
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),w=require("react"),n=require("./index-BpbMKBf_.cjs"),$=require("./utils-Dl9xPH4c.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),w=require("react"),n=require("./index-BpbMKBf_.cjs"),$=require("./utils-Dl9xPH4c.cjs"),Q=require("./TextInput.cjs"),b=require("./Icon.cjs"),Y=require("./Link.cjs"),z=require("./DropdownMenu.cjs"),L=require("./DropdownItem.cjs"),B=require("./tag-yputMSpE.cjs"),O=require("./BlogProductCardsSection.cjs"),P=require("./emotion-styled.browser.esm-BtEseadx.cjs"),ee=require("./index-BueKsXT8.cjs"),I=require("./BlogListSection.cjs"),ne=require("./consts-goSZX3xP.cjs"),re=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
|
-
`,
|
|
82
|
+
`,te=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(re,{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"})})]})]})}),ie=P.styled.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: flex-start;
|
|
85
85
|
gap: 2rem;
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
@media (max-width: ${
|
|
273
|
+
@media (max-width: ${ne.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
|
-
`,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:
|
|
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:ae,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:" "})},J)=>{const K=t=>{document.getElementById("landing__container").scrollIntoView({behavior:"smooth",block:"start"}),T==null||T(t)};return e.jsxs(ie,{ref:J,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(B.FaqSectionTags,{tags:u,allTagText:a,selectedTagCode:s,onSelectTag:c}),e.jsxs("div",{className:"main-content__actions",children:[e.jsx(Q,{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(O,{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(te,{perPageOptions:Z,perPage:W,handlePerPage:X,page:H,handlePage:K,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(ee.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(Y,{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;
|