@lanaco/lnc-react-ui 4.0.185 → 4.0.188
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/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +150 -158
- package/dist/BlogCardsSponsoredSection.cjs +5 -5
- package/dist/BlogCardsSponsoredSection.js +55 -51
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +182 -215
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +134 -116
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +26 -24
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +21 -19
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +81 -76
- package/dist/BlogsSectionLarge.cjs +6 -6
- package/dist/BlogsSectionLarge.js +34 -31
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +68 -63
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +67 -54
- package/dist/BlogsSectionWithFilters.cjs +9 -9
- package/dist/BlogsSectionWithFilters.js +98 -84
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +50 -32
- package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
- package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
- package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +23 -21
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +38 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
- package/dist/FieldOfInterestsMasonrySection.js +87 -83
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +83 -46
- package/dist/GiftCardsSection.cjs +7 -7
- package/dist/GiftCardsSection.js +56 -47
- package/dist/MasonryGeneralCardsSection.cjs +16 -15
- package/dist/MasonryGeneralCardsSection.js +83 -68
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +58 -50
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +79 -70
- package/dist/QuattroCardsSection.cjs +8 -8
- package/dist/QuattroCardsSection.js +62 -40
- package/dist/ReviewsSection.cjs +8 -8
- package/dist/ReviewsSection.js +92 -67
- package/dist/SalesCampaignsSection.cjs +18 -18
- package/dist/SalesCampaignsSection.js +304 -298
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +25 -23
- package/dist/SimpleCategoriesSection.cjs +4 -4
- package/dist/SimpleCategoriesSection.js +25 -22
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +53 -50
- package/dist/UrgentSaleProductsSection.cjs +4 -4
- package/dist/UrgentSaleProductsSection.js +41 -38
- package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
- package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
- package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
- package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
- package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
- package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
- package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
- package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { Suspense as
|
|
3
|
-
import { B as
|
|
4
|
-
import { S as
|
|
1
|
+
import { jsx as r, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as g, forwardRef as d } from "react";
|
|
3
|
+
import { B as u } from "./index-DMHtIdm-.js";
|
|
4
|
+
import { S as f, b as p } from "./style-CXMUA6cI.js";
|
|
5
5
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import { M as
|
|
7
|
-
const
|
|
8
|
-
@media (max-width: ${
|
|
6
|
+
import { M as S } from "./consts-BuFChS64.js";
|
|
7
|
+
const h = c(f)`
|
|
8
|
+
@media (max-width: ${S + "px"}) {
|
|
9
9
|
& > div {
|
|
10
10
|
height: 13.25rem;
|
|
11
11
|
|
|
@@ -19,8 +19,8 @@ const S = c(u)`
|
|
|
19
19
|
box-shadow: none;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
23
|
-
|
|
22
|
+
`, m = ({ keyPrefix: o }) => /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(
|
|
23
|
+
p,
|
|
24
24
|
{
|
|
25
25
|
height: "11.25rem",
|
|
26
26
|
borderRadius: "0.75rem"
|
|
@@ -28,31 +28,33 @@ const S = c(u)`
|
|
|
28
28
|
`${o}-1`
|
|
29
29
|
) }), b = ({
|
|
30
30
|
keyPrefix: o,
|
|
31
|
-
isLoading:
|
|
32
|
-
fallbackComponent:
|
|
31
|
+
isLoading: n = !1,
|
|
32
|
+
fallbackComponent: t = /* @__PURE__ */ r(i, {}),
|
|
33
33
|
children: e
|
|
34
|
-
}) => /* @__PURE__ */ r(
|
|
34
|
+
}) => /* @__PURE__ */ r(g, { fallbackComponent: t, children: n === !0 ? /* @__PURE__ */ r(m, { keyPrefix: o }) : e }), I = d((o, n) => {
|
|
35
35
|
const {
|
|
36
|
-
isLoading:
|
|
36
|
+
isLoading: t,
|
|
37
37
|
item: e,
|
|
38
38
|
onSelectCard: l = () => {
|
|
39
39
|
},
|
|
40
40
|
getImage: a = () => {
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
LinkComponent: s
|
|
42
43
|
} = o;
|
|
43
|
-
return /* @__PURE__ */ r(b, { isLoading:
|
|
44
|
-
|
|
44
|
+
return /* @__PURE__ */ r(b, { isLoading: t, keyPrefix: "blogs-single-skeleton", children: /* @__PURE__ */ r(
|
|
45
|
+
u,
|
|
45
46
|
{
|
|
46
|
-
ref:
|
|
47
|
+
ref: n,
|
|
47
48
|
title: e == null ? void 0 : e.title,
|
|
48
49
|
imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
49
50
|
text: e == null ? void 0 : e.description,
|
|
50
51
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
51
52
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
52
|
-
onCardClick: () => l(e == null ? void 0 : e.titleSlug)
|
|
53
|
+
onCardClick: () => l(e == null ? void 0 : e.titleSlug),
|
|
54
|
+
LinkComponent: s
|
|
53
55
|
}
|
|
54
56
|
) });
|
|
55
57
|
});
|
|
56
58
|
export {
|
|
57
|
-
|
|
59
|
+
I as default
|
|
58
60
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),O=require("./Button.cjs"),q=require("./index-uwl7BjRF.cjs"),B=require("./index-D-3I_Ppj.cjs"),D=v.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
`,$=v.styled.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
max-height: 100%;
|
|
50
50
|
min-height: 100%;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
`,A=v.styled.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
55
55
|
gap: 0;
|
|
@@ -94,4 +94,4 @@
|
|
|
94
94
|
align-items: center;
|
|
95
95
|
gap: 1rem;
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,E=u.forwardRef((o,S)=>{const{title:p,imageUrl:w,text:y,numberOfLikes:r,numberOfComments:f,timeToRead:l,publishedAt:c,tags:s,onCardClick:h,timeToReadText:d="{0} min read",metadata:i,titleSlug:m,LinkComponent:g}=o,b=g||"a",j=u.useRef();return t.jsxs($,{ref:j,className:"blog-card","data-accessor":i==null?void 0:i.accessor,name:i==null?void 0:i.name,onClick:e=>h(e,j),as:b,...g?{to:`/blog/${m}`}:{href:`/blog/${m}`},children:[t.jsx(q.ProductImageWrapper,{src:w}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs(A,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[a.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),l&&d?`${a.formatString(d,l)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:a.getRoundedNumber(r)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:a.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:p}),t.jsx("div",{className:"text-wr",children:y})]}),s&&t.jsx("div",{className:"tags-wr",children:s==null?void 0:s.map((e,n)=>t.jsx(k.BlogTag,{color:e==null?void 0:e.color,children:e==null?void 0:e.name},n))})]})]})}),C=u.memo(E),I=u.forwardRef((o,S)=>{const{icon:p,title:w,onButtonAction:y,items:r,buttonText:f,timeToReadText:l,limit:c=3,onSelectCard:s=()=>{},isLoading:h=!1,buttonLink:d,getImage:i=()=>{},componentName:m,LinkComponent:g}=o,b=L.useDetectMobile(),j=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?r==null?void 0:r.map((e,n)=>t.jsx(C,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:l,tags:e==null?void 0:e.tags,onCardClick:(T,N)=>s(e==null?void 0:e.titleSlug,N),imageUrl:i(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},n)):r==null?void 0:r.slice(0,c).map((e,n)=>t.jsx(C,{title:e==null?void 0:e.title,imageUrl:i(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,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:l,onCardClick:(T,N)=>s(e==null?void 0:e.titleSlug,N),metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},n))}),[r,b,c,s]);return t.jsxs(k.RegulatTitleSectionWrapper,{ref:S,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:w})]}),a.isDefinedNotEmptyString(f)&&a.isDefinedNotEmptyString(d)&&!h&&t.jsx(O,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),y(d)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(B.SuspenseBlogsSectionDetailed,{isLoading:h,keyPrefix:"blogs-detailed-skeleton",children:t.jsx(D,{limit:c,children:j})})]})});module.exports=I;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { o as
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
9
|
-
import { P as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
2
|
+
import { forwardRef as T, useRef as $, memo as A, useMemo as z } from "react";
|
|
3
|
+
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as L } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { o as M, s as j, q as I, v as S, k as N } from "./utils-Dc5zIpaz.js";
|
|
7
|
+
import { B as P, R as U } from "./style-C7FUSHmS.js";
|
|
8
|
+
import W from "./Button.js";
|
|
9
|
+
import { P as E } from "./index-C_NnINik.js";
|
|
10
|
+
import { S as _ } from "./index-BovNbKxB.js";
|
|
11
|
+
const q = C.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${L + "px"}) {
|
|
17
17
|
grid-template-columns: repeat(1, 1fr);
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`, F = C.a`
|
|
20
20
|
text-decoration: none;
|
|
21
21
|
color: var(--gray-950);
|
|
22
22
|
display: flex;
|
|
@@ -55,11 +55,11 @@ const _ = N.div`
|
|
|
55
55
|
gap: 0.5rem;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
@media (max-width: ${
|
|
58
|
+
@media (max-width: ${L + "px"}) {
|
|
59
59
|
max-height: 100%;
|
|
60
60
|
min-height: 100%;
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`, G = C.div`
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
65
65
|
gap: 0;
|
|
@@ -75,7 +75,7 @@ const _ = N.div`
|
|
|
75
75
|
font-size: 0.875rem;
|
|
76
76
|
flex: 1;
|
|
77
77
|
color: var(--gray-700, #4e555f);
|
|
78
|
-
${
|
|
78
|
+
${M(2)}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
& .info-wr {
|
|
@@ -104,80 +104,83 @@ const _ = N.div`
|
|
|
104
104
|
align-items: center;
|
|
105
105
|
gap: 1rem;
|
|
106
106
|
}
|
|
107
|
-
`,
|
|
107
|
+
`, X = T((l, k) => {
|
|
108
108
|
const {
|
|
109
|
-
title:
|
|
110
|
-
imageUrl:
|
|
111
|
-
text:
|
|
112
|
-
numberOfLikes:
|
|
109
|
+
title: g,
|
|
110
|
+
imageUrl: w,
|
|
111
|
+
text: v,
|
|
112
|
+
numberOfLikes: i,
|
|
113
113
|
numberOfComments: f,
|
|
114
|
-
timeToRead:
|
|
115
|
-
publishedAt:
|
|
116
|
-
tags:
|
|
114
|
+
timeToRead: s,
|
|
115
|
+
publishedAt: m,
|
|
116
|
+
tags: o,
|
|
117
117
|
onCardClick: u,
|
|
118
|
-
timeToReadText:
|
|
119
|
-
metadata:
|
|
120
|
-
titleSlug:
|
|
121
|
-
|
|
118
|
+
timeToReadText: c = "{0} min read",
|
|
119
|
+
metadata: a,
|
|
120
|
+
titleSlug: d,
|
|
121
|
+
LinkComponent: p
|
|
122
|
+
} = l, h = p || "a", b = $();
|
|
122
123
|
return /* @__PURE__ */ r(
|
|
123
|
-
|
|
124
|
+
F,
|
|
124
125
|
{
|
|
125
|
-
ref:
|
|
126
|
+
ref: b,
|
|
126
127
|
className: "blog-card",
|
|
127
|
-
"data-accessor":
|
|
128
|
-
name:
|
|
129
|
-
onClick: (
|
|
130
|
-
|
|
128
|
+
"data-accessor": a == null ? void 0 : a.accessor,
|
|
129
|
+
name: a == null ? void 0 : a.name,
|
|
130
|
+
onClick: (e) => u(e, b),
|
|
131
|
+
as: h,
|
|
132
|
+
...p ? { to: `/blog/${d}` } : { href: `/blog/${d}` },
|
|
131
133
|
children: [
|
|
132
|
-
/* @__PURE__ */ t(
|
|
134
|
+
/* @__PURE__ */ t(E, { src: w }),
|
|
133
135
|
/* @__PURE__ */ r("div", { className: "blog-card-content", children: [
|
|
134
|
-
/* @__PURE__ */ r(
|
|
136
|
+
/* @__PURE__ */ r(G, { children: [
|
|
135
137
|
/* @__PURE__ */ r("div", { className: "info-wr", children: [
|
|
136
138
|
/* @__PURE__ */ r("div", { className: "info-wr-1", children: [
|
|
137
139
|
/* @__PURE__ */ r("span", { children: [
|
|
138
|
-
|
|
140
|
+
I(m),
|
|
139
141
|
" "
|
|
140
142
|
] }),
|
|
141
143
|
/* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
|
|
142
|
-
|
|
144
|
+
s && c ? `${j(c, s)}` : "N/A"
|
|
143
145
|
] }),
|
|
144
146
|
/* @__PURE__ */ r("div", { className: "info-wr-2", children: [
|
|
145
147
|
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
146
148
|
/* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
147
|
-
/* @__PURE__ */ t("span", { children:
|
|
149
|
+
/* @__PURE__ */ t("span", { children: S(i) })
|
|
148
150
|
] }),
|
|
149
151
|
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
150
152
|
/* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
|
|
151
|
-
/* @__PURE__ */ t("span", { children:
|
|
153
|
+
/* @__PURE__ */ t("span", { children: S(f) })
|
|
152
154
|
] })
|
|
153
155
|
] })
|
|
154
156
|
] }),
|
|
155
|
-
/* @__PURE__ */ t("div", { className: "text-wr-title", children:
|
|
156
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
157
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: g }),
|
|
158
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: v })
|
|
157
159
|
] }),
|
|
158
|
-
|
|
160
|
+
o && /* @__PURE__ */ t("div", { className: "tags-wr", children: o == null ? void 0 : o.map((e, n) => /* @__PURE__ */ t(P, { color: e == null ? void 0 : e.color, children: e == null ? void 0 : e.name }, n)) })
|
|
159
161
|
] })
|
|
160
162
|
]
|
|
161
163
|
}
|
|
162
164
|
);
|
|
163
|
-
}),
|
|
165
|
+
}), R = A(X), re = T((l, k) => {
|
|
164
166
|
const {
|
|
165
|
-
icon:
|
|
166
|
-
title:
|
|
167
|
-
onButtonAction:
|
|
168
|
-
items:
|
|
167
|
+
icon: g,
|
|
168
|
+
title: w,
|
|
169
|
+
onButtonAction: v,
|
|
170
|
+
items: i,
|
|
169
171
|
buttonText: f,
|
|
170
|
-
timeToReadText:
|
|
171
|
-
limit:
|
|
172
|
-
onSelectCard:
|
|
172
|
+
timeToReadText: s,
|
|
173
|
+
limit: m = 3,
|
|
174
|
+
onSelectCard: o = () => {
|
|
173
175
|
},
|
|
174
176
|
isLoading: u = !1,
|
|
175
|
-
buttonLink:
|
|
176
|
-
getImage:
|
|
177
|
+
buttonLink: c,
|
|
178
|
+
getImage: a = () => {
|
|
177
179
|
},
|
|
178
|
-
componentName:
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
componentName: d,
|
|
181
|
+
LinkComponent: p
|
|
182
|
+
} = l, h = D(), b = z(() => /* @__PURE__ */ t(B, { children: h === !0 ? i == null ? void 0 : i.map((e, n) => /* @__PURE__ */ t(
|
|
183
|
+
R,
|
|
181
184
|
{
|
|
182
185
|
title: e == null ? void 0 : e.title,
|
|
183
186
|
text: e == null ? void 0 : e.description,
|
|
@@ -186,18 +189,19 @@ const _ = N.div`
|
|
|
186
189
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
187
190
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
188
191
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
189
|
-
timeToReadText:
|
|
192
|
+
timeToReadText: s,
|
|
190
193
|
tags: e == null ? void 0 : e.tags,
|
|
191
|
-
onCardClick: (O,
|
|
192
|
-
imageUrl:
|
|
193
|
-
metadata: { name:
|
|
194
|
+
onCardClick: (O, y) => o(e == null ? void 0 : e.titleSlug, y),
|
|
195
|
+
imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
196
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
197
|
+
LinkComponent: p
|
|
194
198
|
},
|
|
195
199
|
n
|
|
196
|
-
)) :
|
|
197
|
-
|
|
200
|
+
)) : i == null ? void 0 : i.slice(0, m).map((e, n) => /* @__PURE__ */ t(
|
|
201
|
+
R,
|
|
198
202
|
{
|
|
199
203
|
title: e == null ? void 0 : e.title,
|
|
200
|
-
imageUrl:
|
|
204
|
+
imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
201
205
|
text: e == null ? void 0 : e.description,
|
|
202
206
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
203
207
|
tags: e == null ? void 0 : e.tags,
|
|
@@ -205,27 +209,28 @@ const _ = N.div`
|
|
|
205
209
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
206
210
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
207
211
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
208
|
-
timeToReadText:
|
|
209
|
-
onCardClick: (O,
|
|
210
|
-
metadata: { name:
|
|
212
|
+
timeToReadText: s,
|
|
213
|
+
onCardClick: (O, y) => o(e == null ? void 0 : e.titleSlug, y),
|
|
214
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
215
|
+
LinkComponent: p
|
|
211
216
|
},
|
|
212
217
|
n
|
|
213
|
-
)) }), [
|
|
214
|
-
return /* @__PURE__ */ r(
|
|
218
|
+
)) }), [i, h, m, o]);
|
|
219
|
+
return /* @__PURE__ */ r(U, { ref: k, children: [
|
|
215
220
|
/* @__PURE__ */ r("div", { className: "regular-title", children: [
|
|
216
221
|
/* @__PURE__ */ r("div", { className: "regular-title-text", children: [
|
|
217
|
-
|
|
218
|
-
/* @__PURE__ */ t("span", { children:
|
|
222
|
+
N(g) && /* @__PURE__ */ t("i", { className: g }),
|
|
223
|
+
/* @__PURE__ */ t("span", { children: w })
|
|
219
224
|
] }),
|
|
220
|
-
|
|
221
|
-
|
|
225
|
+
N(f) && N(c) && !u && /* @__PURE__ */ t(
|
|
226
|
+
W,
|
|
222
227
|
{
|
|
223
228
|
type: "button",
|
|
224
229
|
btnType: "tinted",
|
|
225
230
|
color: "neutral",
|
|
226
231
|
onClick: (e) => {
|
|
227
232
|
var n;
|
|
228
|
-
(n = e == null ? void 0 : e.target) == null || n.blur(),
|
|
233
|
+
(n = e == null ? void 0 : e.target) == null || n.blur(), v(c);
|
|
229
234
|
},
|
|
230
235
|
borderRadius: "curved",
|
|
231
236
|
className: "button-link",
|
|
@@ -234,15 +239,15 @@ const _ = N.div`
|
|
|
234
239
|
)
|
|
235
240
|
] }),
|
|
236
241
|
/* @__PURE__ */ t(
|
|
237
|
-
|
|
242
|
+
_,
|
|
238
243
|
{
|
|
239
244
|
isLoading: u,
|
|
240
245
|
keyPrefix: "blogs-detailed-skeleton",
|
|
241
|
-
children: /* @__PURE__ */ t(
|
|
246
|
+
children: /* @__PURE__ */ t(q, { limit: m, children: b })
|
|
242
247
|
}
|
|
243
248
|
)
|
|
244
249
|
] });
|
|
245
250
|
});
|
|
246
251
|
export {
|
|
247
|
-
|
|
252
|
+
re as default
|
|
248
253
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),n=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),k=require("./useDetectMobile-zkbzoOGV.cjs"),C=require("./index-BWE-RCPy.cjs"),d=require("./style-BAcV7F53.cjs"),q=b.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
10
|
-
@media (max-width: ${
|
|
9
|
+
`,B=b.styled(d.SkeletonRowWrapper)`
|
|
10
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
|
|
13
13
|
& > div {
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
box-shadow: none;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
`,
|
|
24
|
+
`,M=({keyPrefix:o})=>t.jsxs(B,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-2`)]}),w=({keyPrefix:o,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:i})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(M,{keyPrefix:o}):i}),S=n.memo(C.BlogCardLarge),R=n.forwardRef((o,s)=>{const{items:r,onSelectCard:i=()=>{},limit:l=2,isLoading:f=!1,getImage:u=()=>{},componentName:m,LinkComponent:g}=o,p=k.useDetectMobile(),j=n.useMemo(()=>t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,a)=>t.jsx(S,{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:(L,c)=>i(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(S,{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:(L,c)=>i(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},a))}),[r,p,l]);return t.jsx(w,{isLoading:f,keyPrefix:"blogs-large-skeleton",children:t.jsx(q,{ref:s,limit:l,children:j})})});module.exports=R;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Suspense as B, memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { B as
|
|
7
|
-
import { a as
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as L, jsx as t, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as B, memo as M, forwardRef as $, useMemo as w } from "react";
|
|
3
|
+
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as b } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as R } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { B as T } from "./index-DMHtIdm-.js";
|
|
7
|
+
import { a as U, b as g } from "./style-CXMUA6cI.js";
|
|
8
|
+
const I = S.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
|
|
13
|
-
@media (max-width: ${
|
|
13
|
+
@media (max-width: ${b + "px"}) {
|
|
14
14
|
grid-template-columns: repeat(1, 1fr);
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
17
|
-
@media (max-width: ${
|
|
16
|
+
`, P = S(U)`
|
|
17
|
+
@media (max-width: ${b + "px"}) {
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
|
|
20
20
|
& > div {
|
|
@@ -28,9 +28,9 @@ const U = f.div`
|
|
|
28
28
|
box-shadow: none;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`, j = ({ keyPrefix: o }) => /* @__PURE__ */ L(P, { children: [
|
|
32
32
|
/* @__PURE__ */ t(
|
|
33
|
-
|
|
33
|
+
g,
|
|
34
34
|
{
|
|
35
35
|
height: "11.25rem",
|
|
36
36
|
borderRadius: "0.75rem"
|
|
@@ -38,62 +38,65 @@ const U = f.div`
|
|
|
38
38
|
`${o}-1`
|
|
39
39
|
),
|
|
40
40
|
/* @__PURE__ */ t(
|
|
41
|
-
|
|
41
|
+
g,
|
|
42
42
|
{
|
|
43
43
|
height: "11.25rem",
|
|
44
44
|
borderRadius: "0.75rem"
|
|
45
45
|
},
|
|
46
46
|
`${o}-2`
|
|
47
47
|
)
|
|
48
|
-
] }),
|
|
48
|
+
] }), v = ({
|
|
49
49
|
keyPrefix: o,
|
|
50
50
|
isLoading: a = !1,
|
|
51
|
-
fallbackComponent: r = /* @__PURE__ */ t(
|
|
51
|
+
fallbackComponent: r = /* @__PURE__ */ t(f, {}),
|
|
52
52
|
children: i
|
|
53
|
-
}) => /* @__PURE__ */ t(B, { fallbackComponent: r, children: a === !0 ? /* @__PURE__ */ t(
|
|
53
|
+
}) => /* @__PURE__ */ t(B, { fallbackComponent: r, children: a === !0 ? /* @__PURE__ */ t(j, { keyPrefix: o }) : i }), p = M(T), G = $((o, a) => {
|
|
54
54
|
const {
|
|
55
55
|
items: r,
|
|
56
56
|
onSelectCard: i = () => {
|
|
57
57
|
},
|
|
58
58
|
limit: l = 2,
|
|
59
|
-
isLoading:
|
|
59
|
+
isLoading: h = !1,
|
|
60
60
|
getImage: m = () => {
|
|
61
61
|
},
|
|
62
|
-
componentName: d
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
componentName: d,
|
|
63
|
+
LinkComponent: c
|
|
64
|
+
} = o, u = R(), C = w(() => /* @__PURE__ */ t(f, { children: u === !0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
|
|
65
|
+
p,
|
|
65
66
|
{
|
|
66
67
|
title: e == null ? void 0 : e.title,
|
|
67
68
|
imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
68
69
|
text: e == null ? void 0 : e.description,
|
|
69
70
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
70
71
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
71
|
-
onCardClick: (
|
|
72
|
-
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
72
|
+
onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
|
|
73
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
74
|
+
LinkComponent: c
|
|
73
75
|
},
|
|
74
76
|
n
|
|
75
77
|
)) : r == null ? void 0 : r.slice(0, l).map((e, n) => /* @__PURE__ */ t(
|
|
76
|
-
|
|
78
|
+
p,
|
|
77
79
|
{
|
|
78
80
|
title: e == null ? void 0 : e.title,
|
|
79
81
|
imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
80
82
|
text: e == null ? void 0 : e.description,
|
|
81
83
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
82
84
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
83
|
-
onCardClick: (
|
|
84
|
-
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
85
|
+
onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
|
|
86
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
87
|
+
LinkComponent: c
|
|
85
88
|
},
|
|
86
89
|
n
|
|
87
|
-
)) }), [r,
|
|
90
|
+
)) }), [r, u, l]);
|
|
88
91
|
return /* @__PURE__ */ t(
|
|
89
|
-
|
|
92
|
+
v,
|
|
90
93
|
{
|
|
91
|
-
isLoading:
|
|
94
|
+
isLoading: h,
|
|
92
95
|
keyPrefix: "blogs-large-skeleton",
|
|
93
|
-
children: /* @__PURE__ */ t(
|
|
96
|
+
children: /* @__PURE__ */ t(I, { ref: a, limit: l, children: C })
|
|
94
97
|
}
|
|
95
98
|
);
|
|
96
99
|
});
|
|
97
100
|
export {
|
|
98
|
-
|
|
101
|
+
G as default
|
|
99
102
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-RnrgDDZP.cjs"),C=require("./style-CkcozOY6.cjs"),M=require("./Button.cjs"),$=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=j.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,L=j.styled.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-height: 12.5625rem;
|
|
34
34
|
min-height: 12.5625rem;
|
|
35
|
-
background-color: ${
|
|
35
|
+
background-color: ${g.linearGradientAnimation("-90deg")};
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
& .action {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
padding: 1rem;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
@media (max-width: ${
|
|
61
|
+
@media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
|
|
62
62
|
}
|
|
63
|
-
`,D=
|
|
63
|
+
`,D=j.styled.div`
|
|
64
64
|
padding: 1rem 1rem 0 1rem;
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: column;
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
font-size: 0.875rem;
|
|
79
79
|
flex: 1;
|
|
80
80
|
color: var(--gray-700, #4e555f);
|
|
81
|
-
${
|
|
81
|
+
${g.truncateTextInRows(3)}
|
|
82
82
|
}
|
|
83
|
-
`,_=
|
|
83
|
+
`,_=p.forwardRef((s,S)=>{const{title:u,imageUrl:b,text:y,options:n,onCardClick:a,readMoreText:i="Read more",metadata:o,titleSlug:c,LinkComponent:d}=s,h=d||"a",m=p.useRef();return r.jsxs(L,{ref:m,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,m),as:h,...d?{to:`/blog/${c}`}:{href:`/blog/${c}`},children:[r.jsx(T.ProductImageWrapper,{src:b}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:u}),r.jsx("div",{className:"text-wr",children:y})]}),n&&r.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((t,f)=>r.jsx(C.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},f))}),r.jsx($,{className:"action",color:"gray",onClick:a,children:i})]})}),v=p.memo(_),P=p.forwardRef((s,S)=>{const{icon:u,title:b,onButtonAction:y=()=>{},onSelectCard:n=()=>{},buttonLink:a,items:i,buttonText:o,limit:c=3,isLoading:d=!1,getImage:h=()=>{},readMoreText:m="Read more",componentName:t,LinkComponent:f}=s,N=R.useDetectMobile(),q=p.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,l)=>r.jsx(v,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:h(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,readMoreText:m,options:e==null?void 0:e.options,onCardClick:(B,w)=>n(e==null?void 0:e.titleSlug,w),metadata:{name:t,accessor:e==null?void 0:e.accessor},LinkComponent:f},l)):i==null?void 0:i.slice(0,c).map((e,l)=>r.jsx(v,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:h(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,readMoreText:m,options:e==null?void 0:e.options,onCardClick:(B,w)=>n(e==null?void 0:e.titleSlug,w),metadata:{name:t,accessor:e==null?void 0:e.accessor},LinkComponent:f},l))}),[i]);return r.jsxs(C.RegulatTitleSectionWrapper,{ref:S,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[g.isDefinedNotEmptyString(u)&&r.jsx("i",{className:u}),r.jsx("span",{children:b})]}),g.isDefinedNotEmptyString(o)&&g.isDefinedNotEmptyString(a)&&!d&&r.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),y(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx(E.SuspenseBlogsSectionDetailed,{isLoading:d,keyPrefix:"blogs-simple-skeleton",children:r.jsx(I,{limit:c,children:q})})]})});module.exports=P;
|