@lanaco/lnc-react-ui 4.0.86 → 4.0.88
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/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +6 -3
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +3 -3
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +33 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +2 -2
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +4 -4
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +33 -30
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +50 -45
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +96 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +40 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
- package/dist/FieldOfInterestsMasonrySection.js +72 -66
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +12 -11
- package/dist/FieldOfInterestsWithTagsCardsSection.js +56 -53
- package/dist/GeneralWithTagsCardsSection.cjs +6 -7
- package/dist/GeneralWithTagsCardsSection.js +8 -9
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +55 -52
- package/dist/LoanCalculatorSection.cjs +106 -4
- package/dist/LoanCalculatorSection.js +505 -350
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +4 -4
- package/dist/LocationSearchSection.js +18 -16
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +2 -2
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -2
- package/dist/SeparatorSection.cjs +1 -1
- package/dist/SeparatorSection.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +19 -16
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/UrgentSaleProductsSection.cjs +12 -6
- package/dist/UrgentSaleProductsSection.js +56 -47
- package/dist/consts-BuFChS64.js +7 -0
- package/dist/consts-goSZX3xP.cjs +1 -0
- package/dist/{index-BxlCwYfi.cjs → index-BaLBHyTh.cjs} +1 -1
- package/dist/{index-C7iutNsj.cjs → index-Ccw8sLnK.cjs} +1 -1
- package/dist/{index-CpuLfTNK.js → index-CsrdUl1x.js} +1 -1
- package/dist/{index-CWAifrDS.cjs → index-Cx4KvZ9L.cjs} +1 -1
- package/dist/{index-rYeYJwuL.cjs → index-DG7qQq8L.cjs} +1 -1
- package/dist/{index-DmuZIVnC.js → index-Db8wvLXS.js} +2 -2
- package/dist/{index-BpS5mEUu.js → index-Yh18uk_f.js} +2 -2
- package/dist/{index-B5bRol0l.js → index-iSD5jNBk.js} +2 -2
- package/dist/{skeleton-BRWiMY6b.cjs → skeleton-BBSBZ4JV.cjs} +1 -1
- package/dist/{skeleton-DhXNRCfI.js → skeleton-DALCB1S7.js} +1 -1
- package/dist/{style-OPSfrtFm.cjs → style-BTTXJFJN.cjs} +1 -1
- package/dist/{style-CsMpu4iC.js → style-sLF37aOA.js} +1 -1
- package/dist/{style-DOKM5cZi.js → style-tw6KjI2J.js} +1 -1
- package/dist/{style-C571ywKV.cjs → style-xvwWn3Zv.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-D-tE8xV6.cjs → suspense-categories-card-simple-5JZtz7wj.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BmmCOsc0.js → suspense-categories-card-simple-BTFqzXyn.js} +1 -1
- package/dist/{suspense-large-Buu1428e.cjs → suspense-large-BtfvnzWh.cjs} +1 -1
- package/dist/{suspense-large-iKRJJlJv.js → suspense-large-DFlSJhGG.js} +1 -1
- package/dist/{suspense-product-card-detailed-J2a9wi6Z.js → suspense-product-card-detailed-CwdbxJrY.js} +1 -1
- package/dist/{suspense-product-card-detailed-CwUN6A-L.cjs → suspense-product-card-detailed-DBNlkFiP.cjs} +1 -1
- package/dist/{useDetectMobile-BC6EGaBc.js → useDetectMobile-Bkvj0VMa.js} +1 -1
- package/dist/{useDetectMobile-D6d5LpdL.cjs → useDetectMobile-zkbzoOGV.cjs} +1 -1
- package/package.json +1 -1
- package/dist/consts-C1uHV4xc.js +0 -6
- package/dist/consts-CtNoHdBj.cjs +0 -1
- package/dist/index-B69VVFyo.js +0 -164
- package/dist/index-ZR5ws_qw.cjs +0 -103
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import { l as
|
|
7
|
-
const y =
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Fragment as h } from "react";
|
|
3
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
5
|
+
import x from "./Button.js";
|
|
6
|
+
import { l as n } from "./utils-BE-UlkKf.js";
|
|
7
|
+
const y = c.div`
|
|
8
8
|
padding-bottom: 1.38rem;
|
|
9
9
|
text-align: center;
|
|
10
10
|
display: flex;
|
|
@@ -17,10 +17,10 @@ const y = l.div`
|
|
|
17
17
|
width: fit-content;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@media (max-width: ${
|
|
20
|
+
@media (max-width: ${m + "px"}) {
|
|
21
21
|
padding-bottom: 0;
|
|
22
22
|
}
|
|
23
|
-
`, b =
|
|
23
|
+
`, b = c.div`
|
|
24
24
|
text-align: center;
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: center;
|
|
@@ -38,9 +38,9 @@ const y = l.div`
|
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@media (max-width: ${
|
|
41
|
+
@media (max-width: ${m + "px"}) {
|
|
42
42
|
}
|
|
43
|
-
`, v =
|
|
43
|
+
`, v = c.div`
|
|
44
44
|
text-align: center;
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
@@ -60,7 +60,7 @@ const y = l.div`
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@media (max-width: ${
|
|
63
|
+
@media (max-width: ${m + "px"}) {
|
|
64
64
|
& .list-item {
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
text-align: center;
|
|
@@ -68,33 +68,36 @@ const y = l.div`
|
|
|
68
68
|
gap: 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`, N =
|
|
71
|
+
`, N = g((s, d) => {
|
|
72
72
|
const {
|
|
73
|
-
title:
|
|
74
|
-
subtitle:
|
|
75
|
-
buttonText:
|
|
76
|
-
list:
|
|
77
|
-
buttonLink:
|
|
78
|
-
onButtonAction:
|
|
73
|
+
title: r,
|
|
74
|
+
subtitle: o,
|
|
75
|
+
buttonText: f,
|
|
76
|
+
list: l,
|
|
77
|
+
buttonLink: p,
|
|
78
|
+
onButtonAction: u = () => {
|
|
79
79
|
}
|
|
80
|
-
} =
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
} = s;
|
|
81
|
+
return /* @__PURE__ */ a(y, { ref: d, children: [
|
|
82
|
+
(n(r) || n(o)) && /* @__PURE__ */ a(b, { children: [
|
|
83
|
+
n(r) && /* @__PURE__ */ e("div", { className: "header-title", children: r }),
|
|
84
|
+
n(o) && /* @__PURE__ */ e("div", { className: "header-subitle", children: o })
|
|
85
85
|
] }),
|
|
86
|
-
/* @__PURE__ */ e(v, { children:
|
|
86
|
+
/* @__PURE__ */ e(v, { children: l == null ? void 0 : l.map((t, i) => /* @__PURE__ */ e(h, { children: /* @__PURE__ */ a("div", { className: "list-item", children: [
|
|
87
87
|
/* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
88
|
-
/* @__PURE__ */ e("span", { children:
|
|
89
|
-
] }) },
|
|
88
|
+
/* @__PURE__ */ e("span", { children: t })
|
|
89
|
+
] }) }, i)) }),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
|
-
|
|
91
|
+
x,
|
|
92
92
|
{
|
|
93
93
|
size: "medium",
|
|
94
94
|
color: "neutral",
|
|
95
95
|
type: "button",
|
|
96
|
-
onClick: () =>
|
|
97
|
-
|
|
96
|
+
onClick: (t) => {
|
|
97
|
+
var i;
|
|
98
|
+
(i = t == null ? void 0 : t.target) == null || i.blur(), u(p);
|
|
99
|
+
},
|
|
100
|
+
children: f
|
|
98
101
|
}
|
|
99
102
|
)
|
|
100
103
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),y=require("./Button.cjs"),j=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>(e==null?void 0:e.bgColor)||"transparent"};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
`}
|
|
23
23
|
|
|
24
|
-
@media (max-width: ${
|
|
24
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
& img {
|
|
27
27
|
max-width: 100%;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,v=
|
|
33
|
+
`,v=n.styled.div`
|
|
34
34
|
padding: 2rem;
|
|
35
35
|
display: flex;
|
|
36
36
|
gap: 1.25rem;
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
flex: 1;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
|
|
41
|
-
@media (max-width: ${
|
|
41
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
42
42
|
padding: 1.25rem;
|
|
43
43
|
}
|
|
44
|
-
`,$=
|
|
44
|
+
`,$=n.styled.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: 0.25rem;
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
font-weight: 500;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
@media (max-width: ${
|
|
60
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
}
|
|
63
|
-
`,_=
|
|
63
|
+
`,_=n.styled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
gap: 0.75rem;
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
@media (max-width: ${
|
|
80
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
81
81
|
}
|
|
82
|
-
`,B=
|
|
82
|
+
`,B=a.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:c,list:s,imageUrl:x,imageHeight:g,imageWidth:h,imageHeightMobile:p,hasBorder:u=!0,backgroundColor:b="transparent",onButtonAction:f=()=>{},buttonLink:w}=e;return i.jsxs(j,{ref:m,imgH:g,imgW:h,imgHMob:p,hasBorder:u,bgColor:b,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:d}),i.jsx("div",{className:"header-subitle",children:l})]}),i.jsx(_,{children:s==null?void 0:s.map((t,r)=>i.jsx(a.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:t})]})},r))}),i.jsx(y,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:t=>{var r;(r=t==null?void 0:t.target)==null||r.blur(),f(w)},children:c})]}),i.jsx("img",{src:x})]})});module.exports=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, Fragment as y } from "react";
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
3
|
+
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
5
5
|
import $ from "./Button.js";
|
|
6
|
-
const H =
|
|
6
|
+
const H = n.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
border-radius: 0.75rem;
|
|
9
9
|
background-color: ${(e) => (e == null ? void 0 : e.bgColor) || "transparent"};
|
|
@@ -26,7 +26,7 @@ const H = r.div`
|
|
|
26
26
|
|
|
27
27
|
`}
|
|
28
28
|
|
|
29
|
-
@media (max-width: ${
|
|
29
|
+
@media (max-width: ${m + "px"}) {
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
& img {
|
|
32
32
|
max-width: 100%;
|
|
@@ -35,7 +35,7 @@ const H = r.div`
|
|
|
35
35
|
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`, W =
|
|
38
|
+
`, W = n.div`
|
|
39
39
|
padding: 2rem;
|
|
40
40
|
display: flex;
|
|
41
41
|
gap: 1.25rem;
|
|
@@ -43,10 +43,10 @@ const H = r.div`
|
|
|
43
43
|
flex: 1;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
|
|
46
|
-
@media (max-width: ${
|
|
46
|
+
@media (max-width: ${m + "px"}) {
|
|
47
47
|
padding: 1.25rem;
|
|
48
48
|
}
|
|
49
|
-
`, k =
|
|
49
|
+
`, k = n.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 0.25rem;
|
|
@@ -62,10 +62,10 @@ const H = r.div`
|
|
|
62
62
|
font-weight: 500;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@media (max-width: ${
|
|
65
|
+
@media (max-width: ${m + "px"}) {
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
}
|
|
68
|
-
`, B =
|
|
68
|
+
`, B = n.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
gap: 0.75rem;
|
|
@@ -82,43 +82,43 @@ const H = r.div`
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
@media (max-width: ${
|
|
85
|
+
@media (max-width: ${m + "px"}) {
|
|
86
86
|
}
|
|
87
|
-
`, N = v((e,
|
|
87
|
+
`, N = v((e, d) => {
|
|
88
88
|
const {
|
|
89
|
-
title:
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
92
|
-
list:
|
|
93
|
-
imageUrl:
|
|
94
|
-
imageHeight:
|
|
95
|
-
imageWidth:
|
|
96
|
-
imageHeightMobile:
|
|
97
|
-
hasBorder:
|
|
98
|
-
backgroundColor:
|
|
99
|
-
onButtonAction:
|
|
89
|
+
title: l,
|
|
90
|
+
subtitle: s,
|
|
91
|
+
buttonText: c,
|
|
92
|
+
list: a,
|
|
93
|
+
imageUrl: g,
|
|
94
|
+
imageHeight: h,
|
|
95
|
+
imageWidth: x,
|
|
96
|
+
imageHeightMobile: p,
|
|
97
|
+
hasBorder: f = !0,
|
|
98
|
+
backgroundColor: b = "transparent",
|
|
99
|
+
onButtonAction: u = () => {
|
|
100
100
|
},
|
|
101
|
-
buttonLink:
|
|
101
|
+
buttonLink: w
|
|
102
102
|
} = e;
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ o(
|
|
104
104
|
H,
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
107
|
-
imgH:
|
|
108
|
-
imgW:
|
|
109
|
-
imgHMob:
|
|
110
|
-
hasBorder:
|
|
111
|
-
bgColor:
|
|
106
|
+
ref: d,
|
|
107
|
+
imgH: h,
|
|
108
|
+
imgW: x,
|
|
109
|
+
imgHMob: p,
|
|
110
|
+
hasBorder: f,
|
|
111
|
+
bgColor: b,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */ i("div", { className: "header-title", children:
|
|
116
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
113
|
+
/* @__PURE__ */ o(W, { children: [
|
|
114
|
+
/* @__PURE__ */ o(k, { children: [
|
|
115
|
+
/* @__PURE__ */ i("div", { className: "header-title", children: l }),
|
|
116
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
117
117
|
] }),
|
|
118
|
-
/* @__PURE__ */ i(B, { children:
|
|
118
|
+
/* @__PURE__ */ i(B, { children: a == null ? void 0 : a.map((t, r) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
|
|
119
119
|
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
120
|
-
/* @__PURE__ */ i("span", { children:
|
|
121
|
-
] }) },
|
|
120
|
+
/* @__PURE__ */ i("span", { children: t })
|
|
121
|
+
] }) }, r)) }),
|
|
122
122
|
/* @__PURE__ */ i(
|
|
123
123
|
$,
|
|
124
124
|
{
|
|
@@ -126,12 +126,15 @@ const H = r.div`
|
|
|
126
126
|
color: "gray",
|
|
127
127
|
type: "button",
|
|
128
128
|
btnType: "outline",
|
|
129
|
-
onClick: () =>
|
|
130
|
-
|
|
129
|
+
onClick: (t) => {
|
|
130
|
+
var r;
|
|
131
|
+
(r = t == null ? void 0 : t.target) == null || r.blur(), u(w);
|
|
132
|
+
},
|
|
133
|
+
children: c
|
|
131
134
|
}
|
|
132
135
|
)
|
|
133
136
|
] }),
|
|
134
|
-
/* @__PURE__ */ i("img", { src:
|
|
137
|
+
/* @__PURE__ */ i("img", { src: g })
|
|
135
138
|
]
|
|
136
139
|
}
|
|
137
140
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),p=require("react"),c=require("./utils-DhRHf5Ed.cjs"),w=require("./Icon.cjs"),N=require("./Chip.cjs"),x=require("./index-BVaZWq6y.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),z=require("./suspense-large-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),c=require("./utils-DhRHf5Ed.cjs"),w=require("./Icon.cjs"),N=require("./Chip.cjs"),x=require("./index-BVaZWq6y.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),z=require("./suspense-large-BtfvnzWh.cjs"),k=require("./Button.cjs"),q=require("./consts-goSZX3xP.cjs"),R=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 1.25rem;
|
|
6
6
|
border-radius: 1.25rem;
|
|
7
7
|
align-items: stretch;
|
|
8
|
-
border: ${
|
|
8
|
+
border: ${s=>s!=null&&s.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
9
9
|
background: var(--white, #fff);
|
|
10
10
|
min-height: 10.5rem;
|
|
11
11
|
position: relative;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,S=p.forwardRef(({title:
|
|
117
|
+
`,S=p.forwardRef(({title:s,imageUrl:o,options:t,publishedAt:g,timeToReadText:_="{0} min read",timeToRead:f=0,numberOfLikes:l=0,numberOfComments:n=0,isSponsored:d=!1,onSelectCard:m=()=>{},onSelectOption:u=()=>{}},b)=>r.jsxs(R,{isSponsored:d,onClick:m,children:[d&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(x.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:s}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.map((a,h)=>r.jsx(N,{label:a==null?void 0:a.name,color:a==null?void 0:a.color,className:"wrapper__tag",onClick:i=>{i==null||i.stopPropagation(),u(a==null?void 0:a.code)}},`blog-card-sponsored-option__${h+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(g)} • ${c.formatString(_,f)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(l)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(n)]})]})]})]})]})),I=y.styled.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: column;
|
|
120
120
|
align-items: flex-start;
|
|
@@ -196,4 +196,4 @@
|
|
|
196
196
|
gap: 1rem;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,$=p.memo(S),C=p.forwardRef(({title:
|
|
199
|
+
`,$=p.memo(S),C=p.forwardRef(({title:s,subtitle:o,icon:t,buttonText:g,buttonLink:_,timeToReadText:f="{0} min read",items:l,onButtonAction:n=()=>{},onSelectCard:d=()=>{},onSelectOption:m=()=>{},isLoading:u=!1,getImage:b=()=>{}},a)=>{const h=p.useMemo(()=>{var i;return(i=l==null?void 0:l.slice(0,4))==null?void 0:i.map((e,v)=>r.jsx($,{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:f,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:()=>d==null?void 0:d(e==null?void 0:e.uuid,e==null?void 0:e.titleSlug),onSelectOption:j=>m==null?void 0:m(j),imageUrl:b(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${v+1}`))},[l]);return r.jsxs(I,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[s&&r.jsxs("div",{className:"title__text",children:[c.isDefinedNotEmptyString(t)&&r.jsx("i",{className:t}),r.jsx("span",{children:s})]}),n&&r.jsx(k,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:i=>{var e;(e=i==null?void 0:i.target)==null||e.blur(),n==null||n(_)}})]}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(z.SuspenseBlogLarge,{isLoading:u,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=C;
|
|
@@ -5,9 +5,9 @@ import u from "./Icon.js";
|
|
|
5
5
|
import R from "./Chip.js";
|
|
6
6
|
import { P as L } from "./index-Ca38iPjf.js";
|
|
7
7
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
-
import { S as P } from "./suspense-large-
|
|
8
|
+
import { S as P } from "./suspense-large-DFlSJhGG.js";
|
|
9
9
|
import U from "./Button.js";
|
|
10
|
-
import { M } from "./consts-
|
|
10
|
+
import { M } from "./consts-BuFChS64.js";
|
|
11
11
|
const T = y.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: 1rem;
|
|
@@ -15,7 +15,7 @@ const T = y.div`
|
|
|
15
15
|
gap: 1.25rem;
|
|
16
16
|
border-radius: 1.25rem;
|
|
17
17
|
align-items: stretch;
|
|
18
|
-
border: ${(
|
|
18
|
+
border: ${(l) => l != null && l.isSponsored ? "2px solid var(--yellow-500, #f59e0b)" : "1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
19
19
|
background: var(--white, #fff);
|
|
20
20
|
min-height: 10.5rem;
|
|
21
21
|
position: relative;
|
|
@@ -126,33 +126,33 @@ const T = y.div`
|
|
|
126
126
|
}
|
|
127
127
|
`, E = v(
|
|
128
128
|
({
|
|
129
|
-
title:
|
|
129
|
+
title: l,
|
|
130
130
|
imageUrl: d,
|
|
131
|
-
options:
|
|
131
|
+
options: s,
|
|
132
132
|
publishedAt: c,
|
|
133
133
|
timeToReadText: g = "{0} min read",
|
|
134
134
|
timeToRead: f = 0,
|
|
135
|
-
numberOfLikes:
|
|
136
|
-
numberOfComments:
|
|
137
|
-
isSponsored:
|
|
135
|
+
numberOfLikes: n = 0,
|
|
136
|
+
numberOfComments: m = 0,
|
|
137
|
+
isSponsored: p = !1,
|
|
138
138
|
onSelectCard: o = () => {
|
|
139
139
|
},
|
|
140
140
|
onSelectOption: _ = () => {
|
|
141
141
|
}
|
|
142
|
-
}, w) => /* @__PURE__ */ a(T, { isSponsored:
|
|
143
|
-
|
|
142
|
+
}, w) => /* @__PURE__ */ a(T, { isSponsored: p, onClick: o, children: [
|
|
143
|
+
p && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
144
144
|
/* @__PURE__ */ r(L, { src: d, className: "wrapper__image" }),
|
|
145
145
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
147
|
-
/* @__PURE__ */ r("div", { className: "wrapper__title", children:
|
|
148
|
-
/* @__PURE__ */ r("div", { className: "wrapper__tags", children:
|
|
147
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title", children: l }),
|
|
148
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: s && (s == null ? void 0 : s.map((i, h) => /* @__PURE__ */ r(
|
|
149
149
|
R,
|
|
150
150
|
{
|
|
151
151
|
label: i == null ? void 0 : i.name,
|
|
152
152
|
color: i == null ? void 0 : i.color,
|
|
153
153
|
className: "wrapper__tag",
|
|
154
|
-
onClick: (
|
|
155
|
-
|
|
154
|
+
onClick: (t) => {
|
|
155
|
+
t == null || t.stopPropagation(), _(i == null ? void 0 : i.code);
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
`blog-card-sponsored-option__${h + 1}`
|
|
@@ -165,11 +165,11 @@ const T = y.div`
|
|
|
165
165
|
/* @__PURE__ */ a("div", { className: "info__text", children: [
|
|
166
166
|
/* @__PURE__ */ a("div", { children: [
|
|
167
167
|
/* @__PURE__ */ r(u, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
168
|
-
b(
|
|
168
|
+
b(n)
|
|
169
169
|
] }),
|
|
170
170
|
/* @__PURE__ */ a("div", { children: [
|
|
171
171
|
/* @__PURE__ */ r(u, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
|
|
172
|
-
b(
|
|
172
|
+
b(m)
|
|
173
173
|
] })
|
|
174
174
|
] })
|
|
175
175
|
] })
|
|
@@ -259,16 +259,16 @@ const T = y.div`
|
|
|
259
259
|
}
|
|
260
260
|
`, B = z(E), Q = v(
|
|
261
261
|
({
|
|
262
|
-
title:
|
|
262
|
+
title: l,
|
|
263
263
|
subtitle: d,
|
|
264
|
-
icon:
|
|
264
|
+
icon: s,
|
|
265
265
|
buttonText: c,
|
|
266
266
|
buttonLink: g,
|
|
267
267
|
timeToReadText: f = "{0} min read",
|
|
268
|
-
items:
|
|
269
|
-
onButtonAction:
|
|
268
|
+
items: n,
|
|
269
|
+
onButtonAction: m = () => {
|
|
270
270
|
},
|
|
271
|
-
onSelectCard:
|
|
271
|
+
onSelectCard: p = () => {
|
|
272
272
|
},
|
|
273
273
|
onSelectOption: o = () => {
|
|
274
274
|
},
|
|
@@ -277,8 +277,8 @@ const T = y.div`
|
|
|
277
277
|
}
|
|
278
278
|
}, i) => {
|
|
279
279
|
const h = S(() => {
|
|
280
|
-
var
|
|
281
|
-
return (
|
|
280
|
+
var t;
|
|
281
|
+
return (t = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : t.map((e, N) => /* @__PURE__ */ r(
|
|
282
282
|
B,
|
|
283
283
|
{
|
|
284
284
|
title: e == null ? void 0 : e.title,
|
|
@@ -290,28 +290,31 @@ const T = y.div`
|
|
|
290
290
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
291
291
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
292
292
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
293
|
-
onSelectCard: () =>
|
|
293
|
+
onSelectCard: () => p == null ? void 0 : p(e == null ? void 0 : e.uuid, e == null ? void 0 : e.titleSlug),
|
|
294
294
|
onSelectOption: (k) => o == null ? void 0 : o(k),
|
|
295
295
|
imageUrl: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
296
296
|
},
|
|
297
297
|
`blog-card-sponsored__${N + 1}`
|
|
298
298
|
));
|
|
299
|
-
}, [
|
|
299
|
+
}, [n]);
|
|
300
300
|
return /* @__PURE__ */ a(W, { children: [
|
|
301
301
|
/* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
|
|
302
302
|
/* @__PURE__ */ a("div", { className: "wrapper__title", children: [
|
|
303
|
-
|
|
304
|
-
C(
|
|
305
|
-
/* @__PURE__ */ r("span", { children:
|
|
303
|
+
l && /* @__PURE__ */ a("div", { className: "title__text", children: [
|
|
304
|
+
C(s) && /* @__PURE__ */ r("i", { className: s }),
|
|
305
|
+
/* @__PURE__ */ r("span", { children: l })
|
|
306
306
|
] }),
|
|
307
|
-
|
|
307
|
+
m && /* @__PURE__ */ r(
|
|
308
308
|
U,
|
|
309
309
|
{
|
|
310
310
|
text: c,
|
|
311
311
|
borderRadius: "curved",
|
|
312
312
|
btnType: "tinted",
|
|
313
313
|
className: "title__action",
|
|
314
|
-
onClick: () =>
|
|
314
|
+
onClick: (t) => {
|
|
315
|
+
var e;
|
|
316
|
+
(e = t == null ? void 0 : t.target) == null || e.blur(), m == null || m(g);
|
|
317
|
+
}
|
|
315
318
|
}
|
|
316
319
|
)
|
|
317
320
|
] }),
|
|
@@ -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-5JZtz7wj.cjs"),l=require("./style-BTTXJFJN.cjs"),m=a.memo(u.CategorySimpleCard),p=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},C)=>{const d=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,g)=>s.jsx(m,{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)},g))},[r]);return s.jsx(l.Wrapper,{className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:d})})})});module.exports=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { memo as l, forwardRef as f, useMemo as t } from "react";
|
|
3
|
-
import { C as u, S as n } from "./suspense-categories-card-simple-
|
|
4
|
-
import { W as c } from "./style-
|
|
3
|
+
import { C as u, S as n } from "./suspense-categories-card-simple-BTFqzXyn.js";
|
|
4
|
+
import { W as c } from "./style-tw6KjI2J.js";
|
|
5
5
|
const C = l(u), M = f(
|
|
6
6
|
({
|
|
7
7
|
items: r,
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-DhRHf5Ed.cjs"),N=require("./index-BVaZWq6y.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-DhRHf5Ed.cjs"),N=require("./index-BVaZWq6y.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-BtfvnzWh.cjs"),q=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -6,7 +6,7 @@ import R from "./Chip.js";
|
|
|
6
6
|
import { t as j, p as k, q as C, s as w } from "./utils-BE-UlkKf.js";
|
|
7
7
|
import { P } from "./index-Ca38iPjf.js";
|
|
8
8
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
-
import { S as $ } from "./suspense-large-
|
|
9
|
+
import { S as $ } from "./suspense-large-DFlSJhGG.js";
|
|
10
10
|
const L = y.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
padding: 1rem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./index-B9HSHvhH.cjs"),f=require("./suspense-product-card-simple-0x5sc47a.cjs"),h=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),y=u.memo(P.SimpleProductCard),M=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},N)=>{const m=q.useDetectMobile(),b=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,g)=>r.jsx(y,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),image:a(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},g))},[i]);return r.jsxs(j.Wrapper,{className:p?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(f.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:b})}),r.jsx(h,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=M;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { memo as b, forwardRef as h, useMemo as P } from "react";
|
|
3
|
-
import { u as N } from "./useDetectMobile-
|
|
3
|
+
import { u as N } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
4
|
import { S as y } from "./index-BBPnKoi6.js";
|
|
5
5
|
import { S as M } from "./suspense-product-card-simple--ExcEpD-.js";
|
|
6
6
|
import S from "./Button.js";
|
|
7
|
-
import { W as _ } from "./style-
|
|
7
|
+
import { W as _ } from "./style-tw6KjI2J.js";
|
|
8
8
|
const w = b(y), R = h(
|
|
9
9
|
({
|
|
10
10
|
buttonText: u,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-C_Jypl8r.cjs"),S=require("./Button.cjs"),b=require("./style-BTTXJFJN.cjs"),_=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),k=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(_,{isLoading:s,limit:i,keyPrefix:t}):o}),q=u.memo(a.ShopCard),C=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},w)=>{const m=f.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,j)=>r.jsx(q,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${j+1}`))},[s]);return r.jsxs(b.Wrapper,{className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(k,{isLoading:l,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(S,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=C;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, Fragment as u, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as S, memo as b, forwardRef as _, useMemo as C } from "react";
|
|
3
|
-
import { u as k } from "./useDetectMobile-
|
|
3
|
+
import { u as k } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
4
|
import { a as w, S as v } from "./skeleton-wfDIalr3.js";
|
|
5
5
|
import M from "./Button.js";
|
|
6
|
-
import { W as y } from "./style-
|
|
6
|
+
import { W as y } from "./style-tw6KjI2J.js";
|
|
7
7
|
const N = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
|
|
8
8
|
w,
|
|
9
9
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-Ccw8sLnK.cjs"),a=require("./skeleton-BBSBZ4JV.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as s, forwardRef as u } from "react";
|
|
3
|
-
import { B as d } from "./index-
|
|
4
|
-
import { B as c } from "./skeleton-
|
|
3
|
+
import { B as d } from "./index-Yh18uk_f.js";
|
|
4
|
+
import { B as c } from "./skeleton-DALCB1S7.js";
|
|
5
5
|
const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
|
|
6
6
|
c,
|
|
7
7
|
{
|