@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
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { R as
|
|
5
|
-
import { p as
|
|
2
|
+
import { forwardRef as C, Suspense as $ } from "react";
|
|
3
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { R as N } from "./style-C7FUSHmS.js";
|
|
5
|
+
import { p as A, G as L, k as b } from "./utils-Dc5zIpaz.js";
|
|
6
6
|
import W from "./Button.js";
|
|
7
|
-
import { s as
|
|
7
|
+
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { M as S } from "./consts-BuFChS64.js";
|
|
9
9
|
import { s as T, a as j, S as h, b as o } from "./style-CXMUA6cI.js";
|
|
10
|
-
const z =
|
|
10
|
+
const z = g.div`
|
|
11
11
|
display: grid;
|
|
12
12
|
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
@@ -15,7 +15,7 @@ const z = p.div`
|
|
|
15
15
|
@media (max-width: ${S + "px"}) {
|
|
16
16
|
grid-template-columns: repeat(1, 1fr);
|
|
17
17
|
}
|
|
18
|
-
`, B =
|
|
18
|
+
`, B = g.a`
|
|
19
19
|
text-decoration: none;
|
|
20
20
|
color: var(--gray-950);
|
|
21
21
|
display: flex;
|
|
@@ -38,7 +38,7 @@ const z = p.div`
|
|
|
38
38
|
transform: scale(1.1);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`, E =
|
|
41
|
+
`, E = g.div`
|
|
42
42
|
width: 100%;
|
|
43
43
|
min-height: 11rem;
|
|
44
44
|
max-height: 11rem;
|
|
@@ -75,33 +75,39 @@ const z = p.div`
|
|
|
75
75
|
-webkit-transform: rotate(315deg);
|
|
76
76
|
transform: rotate(315deg);
|
|
77
77
|
}
|
|
78
|
-
`,
|
|
78
|
+
`, v = C((t, c) => {
|
|
79
79
|
const {
|
|
80
80
|
image: a,
|
|
81
|
-
text:
|
|
81
|
+
text: m,
|
|
82
82
|
price: d,
|
|
83
83
|
currency: n,
|
|
84
|
-
onSelectGiftCard:
|
|
84
|
+
onSelectGiftCard: u = () => {
|
|
85
85
|
},
|
|
86
|
-
selectAction:
|
|
86
|
+
selectAction: l,
|
|
87
|
+
LinkComponent: p
|
|
87
88
|
} = t;
|
|
88
89
|
return /* @__PURE__ */ i(
|
|
89
90
|
B,
|
|
90
91
|
{
|
|
91
|
-
ref:
|
|
92
|
+
ref: c,
|
|
92
93
|
className: "simple-gift-card",
|
|
93
|
-
onClick: () =>
|
|
94
|
-
|
|
94
|
+
onClick: () => u(d),
|
|
95
|
+
as: p || "a",
|
|
96
|
+
...p ? {
|
|
97
|
+
to: `${l}`
|
|
98
|
+
} : {
|
|
99
|
+
href: `${l}`
|
|
100
|
+
},
|
|
95
101
|
children: [
|
|
96
102
|
/* @__PURE__ */ i(E, { children: [
|
|
97
|
-
/* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${
|
|
103
|
+
/* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${A(d)} ${L(n)}` }),
|
|
98
104
|
/* @__PURE__ */ r("img", { src: a })
|
|
99
105
|
] }),
|
|
100
|
-
/* @__PURE__ */ r("div", { className: "text-wrap", children:
|
|
106
|
+
/* @__PURE__ */ r("div", { className: "text-wrap", children: m })
|
|
101
107
|
]
|
|
102
108
|
}
|
|
103
109
|
);
|
|
104
|
-
}),
|
|
110
|
+
}), M = g(j)`
|
|
105
111
|
@media (max-width: ${S + "px"}) {
|
|
106
112
|
flex-direction: column;
|
|
107
113
|
|
|
@@ -113,7 +119,7 @@ const z = p.div`
|
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
121
|
}
|
|
116
|
-
`,
|
|
122
|
+
`, D = ({ keyPrefix: t }) => /* @__PURE__ */ i(M, { children: [
|
|
117
123
|
/* @__PURE__ */ i(h, { alignItems: "center", children: [
|
|
118
124
|
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
119
125
|
/* @__PURE__ */ r(
|
|
@@ -182,49 +188,50 @@ const z = p.div`
|
|
|
182
188
|
},
|
|
183
189
|
`${t}-4`
|
|
184
190
|
)
|
|
185
|
-
] }),
|
|
191
|
+
] }), U = ({
|
|
186
192
|
keyPrefix: t,
|
|
187
|
-
isLoading:
|
|
193
|
+
isLoading: c = !1,
|
|
188
194
|
fallbackComponent: a = /* @__PURE__ */ r(R, {}),
|
|
189
|
-
children:
|
|
190
|
-
}) => /* @__PURE__ */ r(
|
|
195
|
+
children: m
|
|
196
|
+
}) => /* @__PURE__ */ r($, { fallbackComponent: a, children: c === !0 ? /* @__PURE__ */ r(D, { keyPrefix: t }) : m }), K = C((t, c) => {
|
|
191
197
|
const {
|
|
192
198
|
icon: a,
|
|
193
|
-
title:
|
|
199
|
+
title: m,
|
|
194
200
|
buttonLink: d,
|
|
195
201
|
items: n,
|
|
196
|
-
isLoading:
|
|
197
|
-
buttonText:
|
|
198
|
-
limit:
|
|
199
|
-
onSelectCard:
|
|
202
|
+
isLoading: u = !1,
|
|
203
|
+
buttonText: l,
|
|
204
|
+
limit: p = 4,
|
|
205
|
+
onSelectCard: f = () => {
|
|
200
206
|
},
|
|
201
|
-
onButtonAction:
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
onButtonAction: k = () => {
|
|
208
|
+
},
|
|
209
|
+
LinkComponent: w
|
|
210
|
+
} = t, y = I();
|
|
211
|
+
return /* @__PURE__ */ i(N, { ref: c, children: [
|
|
205
212
|
/* @__PURE__ */ i("div", { className: "regular-title", children: [
|
|
206
213
|
/* @__PURE__ */ i("div", { className: "regular-title-text", children: [
|
|
207
|
-
|
|
208
|
-
/* @__PURE__ */ r("span", { children:
|
|
214
|
+
b(a) && /* @__PURE__ */ r("i", { className: a }),
|
|
215
|
+
/* @__PURE__ */ r("span", { children: m })
|
|
209
216
|
] }),
|
|
210
|
-
|
|
217
|
+
b(l) && b(d) && !u && /* @__PURE__ */ r(
|
|
211
218
|
W,
|
|
212
219
|
{
|
|
213
220
|
type: "button",
|
|
214
221
|
btnType: "tinted",
|
|
215
222
|
color: "neutral",
|
|
216
223
|
onClick: (e) => {
|
|
217
|
-
var
|
|
218
|
-
(
|
|
224
|
+
var s;
|
|
225
|
+
(s = e == null ? void 0 : e.target) == null || s.blur(), k(d);
|
|
219
226
|
},
|
|
220
227
|
borderRadius: "curved",
|
|
221
228
|
className: "button-link",
|
|
222
|
-
children:
|
|
229
|
+
children: l
|
|
223
230
|
}
|
|
224
231
|
)
|
|
225
232
|
] }),
|
|
226
|
-
/* @__PURE__ */ r(
|
|
227
|
-
|
|
233
|
+
/* @__PURE__ */ r(U, { isLoading: u, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ r(z, { limit: p, children: y === !0 ? n == null ? void 0 : n.map((e, s) => /* @__PURE__ */ r(
|
|
234
|
+
v,
|
|
228
235
|
{
|
|
229
236
|
text: e == null ? void 0 : e.text,
|
|
230
237
|
price: e == null ? void 0 : e.priceTo,
|
|
@@ -232,11 +239,12 @@ const z = p.div`
|
|
|
232
239
|
image: e == null ? void 0 : e.imageUrl,
|
|
233
240
|
uuid: e == null ? void 0 : e.uuid,
|
|
234
241
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
235
|
-
onSelectGiftCard: (G) =>
|
|
242
|
+
onSelectGiftCard: (G) => f(e),
|
|
243
|
+
LinkComponent: w
|
|
236
244
|
},
|
|
237
|
-
|
|
238
|
-
)) : n == null ? void 0 : n.slice(0,
|
|
239
|
-
|
|
245
|
+
s
|
|
246
|
+
)) : n == null ? void 0 : n.slice(0, p).map((e, s) => /* @__PURE__ */ r(
|
|
247
|
+
v,
|
|
240
248
|
{
|
|
241
249
|
text: e == null ? void 0 : e.text,
|
|
242
250
|
price: e == null ? void 0 : e.priceTo,
|
|
@@ -244,12 +252,13 @@ const z = p.div`
|
|
|
244
252
|
image: e == null ? void 0 : e.imageUrl,
|
|
245
253
|
uuid: e == null ? void 0 : e.uuid,
|
|
246
254
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
247
|
-
onSelectGiftCard: (G) =>
|
|
255
|
+
onSelectGiftCard: (G) => f(e),
|
|
256
|
+
LinkComponent: w
|
|
248
257
|
},
|
|
249
|
-
|
|
258
|
+
s
|
|
250
259
|
)) }) })
|
|
251
260
|
] });
|
|
252
261
|
});
|
|
253
262
|
export {
|
|
254
|
-
|
|
263
|
+
K as default
|
|
255
264
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("react"),j=require("./Button.cjs"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),d=require("./consts-goSZX3xP.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),y=s.styled.a`
|
|
2
|
+
text-decoration: none;
|
|
2
3
|
display: flex;
|
|
3
4
|
flex-direction: column;
|
|
4
5
|
align-items: flex-start;
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
width: 24.5rem;
|
|
33
34
|
height: 30rem;
|
|
34
35
|
border-radius: 0.75rem;
|
|
35
|
-
background-color: ${
|
|
36
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
& .wrapper__text {
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
font-style: normal;
|
|
53
54
|
font-weight: 500;
|
|
54
55
|
line-height: 1.5rem;
|
|
55
|
-
${
|
|
56
|
+
${i.truncateTextInRows(2)}
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
& .text__tag {
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
font-style: normal;
|
|
75
76
|
font-weight: 400;
|
|
76
77
|
line-height: 1.25rem;
|
|
77
|
-
${
|
|
78
|
+
${i.truncateTextInRows(2)}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
& .text__action {
|
|
@@ -88,32 +89,32 @@
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
& .text__title--skeleton {
|
|
91
|
-
background-color: ${
|
|
92
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
92
93
|
height: 1rem;
|
|
93
94
|
width: 9rem;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
& .text__description--skeleton {
|
|
97
|
-
background-color: ${
|
|
98
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
98
99
|
height: 1rem;
|
|
99
100
|
width: 12rem;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
& .text__action--skeleton {
|
|
103
|
-
background-color: ${
|
|
104
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
104
105
|
height: 2rem;
|
|
105
106
|
width: 9rem;
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
cursor: pointer;
|
|
109
110
|
|
|
110
|
-
@media (max-width: ${
|
|
111
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
111
112
|
& .wrapper__image {
|
|
112
113
|
height: 100%;
|
|
113
114
|
max-height: 14.5rem;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
|
-
`,
|
|
117
|
+
`,k=p.forwardRef(({title:r,imageUrl:t,description:o,buttonText:a,onSelectCard:c=()=>{},className:m,position:g,tag:l,backgroundColor:h,buttonLink:x,LinkComponent:u},f)=>{const _=u||"a",w=b.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(y,{ref:f,theme:w,className:m,position:g,backgroundColor:h,onClick:c,as:_,...u?{to:`/${x}`}:{href:`/${x}`},children:[e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__text",children:[l&&e.jsx("div",{className:"text__tag",children:l}),e.jsx("div",{className:"text__title",children:r}),i.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),i.isDefinedNotEmptyString(a)&&e.jsx(j,{text:a,className:"text__action"})]})]})})}),S=s.styled.div`
|
|
117
118
|
display: flex;
|
|
118
119
|
flex-direction: column;
|
|
119
120
|
gap: 1.5rem;
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
@media (max-width: ${
|
|
141
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
141
142
|
& .regular-title {
|
|
142
143
|
font-size: 1.375rem;
|
|
143
144
|
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
|
-
|
|
150
|
+
`,$=s.styled.div`
|
|
150
151
|
display: grid;
|
|
151
152
|
grid-template-columns: ${r=>"repeat(12, minmax(0, 1fr))"};
|
|
152
153
|
|
|
@@ -156,7 +157,7 @@
|
|
|
156
157
|
height: 30rem;
|
|
157
158
|
max-height: 30rem;
|
|
158
159
|
|
|
159
|
-
@media (max-width: ${
|
|
160
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
160
161
|
display: flex;
|
|
161
162
|
flex-direction: column;
|
|
162
163
|
gap: 1.25rem;
|
|
@@ -164,8 +165,8 @@
|
|
|
164
165
|
height: 100%;
|
|
165
166
|
max-height: 100%;
|
|
166
167
|
}
|
|
167
|
-
`,
|
|
168
|
-
@media (max-width: ${
|
|
168
|
+
`,v=s.styled(n.SkeletonRowWrapper)`
|
|
169
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
169
170
|
flex-direction: column;
|
|
170
171
|
|
|
171
172
|
& .skeleton__big {
|
|
@@ -178,4 +179,4 @@
|
|
|
178
179
|
flex-direction: column;
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
|
-
`,
|
|
182
|
+
`,E=({keyPrefix:r})=>e.jsxs(v,{children:[e.jsx(n.SkeletonColumnWrapper,{children:e.jsx(n.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(n.SkeletonColumnWrapper,{children:[e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-5`)]})]})]}),G=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:o,children:t===!0?e.jsx(E,{keyPrefix:r}):a}),N=p.forwardRef(({title:r,items:t,isLoading:o=!1,limit:a=3,onSelectCard:c=()=>{},LinkComponent:m},g)=>e.jsxs(S,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx(G,{isLoading:o,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx($,{limit:a,children:t&&(t==null?void 0:t.map((l,h)=>e.jsx(k,{...l,onSelectCard:()=>c(l),LinkComponent:m},`landing-page-masonry-general-card__${h+1}`)))})})]}));module.exports=N;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as r, Fragment as $, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, Suspense as N } from "react";
|
|
3
|
+
import C from "./Button.js";
|
|
4
4
|
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { w as
|
|
6
|
-
import { M as
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as
|
|
9
|
-
const
|
|
5
|
+
import { w as d, o as _, k as w } from "./utils-Dc5zIpaz.js";
|
|
6
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
7
|
+
import { u as G } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { a as f, S as b, b as l } from "./style-CXMUA6cI.js";
|
|
9
|
+
const z = s.a`
|
|
10
|
+
text-decoration: none;
|
|
10
11
|
display: flex;
|
|
11
12
|
flex-direction: column;
|
|
12
13
|
align-items: flex-start;
|
|
@@ -52,7 +53,7 @@ const C = s.div`
|
|
|
52
53
|
width: 24.5rem;
|
|
53
54
|
height: 30rem;
|
|
54
55
|
border-radius: 0.75rem;
|
|
55
|
-
background-color: ${
|
|
56
|
+
background-color: ${d("-90deg")};
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
& .wrapper__text {
|
|
@@ -72,7 +73,7 @@ const C = s.div`
|
|
|
72
73
|
font-style: normal;
|
|
73
74
|
font-weight: 500;
|
|
74
75
|
line-height: 1.5rem;
|
|
75
|
-
${
|
|
76
|
+
${_(2)}
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
& .text__tag {
|
|
@@ -94,7 +95,7 @@ const C = s.div`
|
|
|
94
95
|
font-style: normal;
|
|
95
96
|
font-weight: 400;
|
|
96
97
|
line-height: 1.25rem;
|
|
97
|
-
${
|
|
98
|
+
${_(2)}
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
& .text__action {
|
|
@@ -108,66 +109,72 @@ const C = s.div`
|
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
& .text__title--skeleton {
|
|
111
|
-
background-color: ${
|
|
112
|
+
background-color: ${d("-90deg")};
|
|
112
113
|
height: 1rem;
|
|
113
114
|
width: 9rem;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
& .text__description--skeleton {
|
|
117
|
-
background-color: ${
|
|
118
|
+
background-color: ${d("-90deg")};
|
|
118
119
|
height: 1rem;
|
|
119
120
|
width: 12rem;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
& .text__action--skeleton {
|
|
123
|
-
background-color: ${
|
|
124
|
+
background-color: ${d("-90deg")};
|
|
124
125
|
height: 2rem;
|
|
125
126
|
width: 9rem;
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
cursor: pointer;
|
|
129
130
|
|
|
130
|
-
@media (max-width: ${
|
|
131
|
+
@media (max-width: ${m + "px"}) {
|
|
131
132
|
& .wrapper__image {
|
|
132
133
|
height: 100%;
|
|
133
134
|
max-height: 14.5rem;
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
|
-
`,
|
|
137
|
+
`, M = v(
|
|
137
138
|
({
|
|
138
139
|
title: e,
|
|
139
140
|
imageUrl: t,
|
|
140
141
|
description: a,
|
|
141
|
-
buttonText:
|
|
142
|
-
onSelectCard:
|
|
142
|
+
buttonText: o,
|
|
143
|
+
onSelectCard: c = () => {
|
|
143
144
|
},
|
|
144
|
-
className:
|
|
145
|
-
position:
|
|
146
|
-
tag:
|
|
147
|
-
backgroundColor:
|
|
148
|
-
buttonLink:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
className: g,
|
|
146
|
+
position: h,
|
|
147
|
+
tag: n,
|
|
148
|
+
backgroundColor: p,
|
|
149
|
+
buttonLink: x,
|
|
150
|
+
LinkComponent: u
|
|
151
|
+
}, y) => {
|
|
152
|
+
const k = u || "a", S = G();
|
|
153
|
+
return /* @__PURE__ */ r($, { children: /* @__PURE__ */ i(
|
|
154
|
+
z,
|
|
153
155
|
{
|
|
154
|
-
ref:
|
|
155
|
-
theme:
|
|
156
|
-
className:
|
|
157
|
-
position:
|
|
158
|
-
backgroundColor:
|
|
159
|
-
onClick:
|
|
160
|
-
|
|
156
|
+
ref: y,
|
|
157
|
+
theme: S,
|
|
158
|
+
className: g,
|
|
159
|
+
position: h,
|
|
160
|
+
backgroundColor: p,
|
|
161
|
+
onClick: c,
|
|
162
|
+
as: k,
|
|
163
|
+
...u ? {
|
|
164
|
+
to: `/${x}`
|
|
165
|
+
} : {
|
|
166
|
+
href: `/${x}`
|
|
167
|
+
},
|
|
161
168
|
children: [
|
|
162
169
|
/* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
|
|
163
170
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: [
|
|
164
|
-
|
|
171
|
+
n && /* @__PURE__ */ r("div", { className: "text__tag", children: n }),
|
|
165
172
|
/* @__PURE__ */ r("div", { className: "text__title", children: e }),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
173
|
+
w(a) && /* @__PURE__ */ r("div", { className: "text__description", children: a }),
|
|
174
|
+
w(o) && /* @__PURE__ */ r(
|
|
175
|
+
C,
|
|
169
176
|
{
|
|
170
|
-
text:
|
|
177
|
+
text: o,
|
|
171
178
|
className: "text__action"
|
|
172
179
|
}
|
|
173
180
|
)
|
|
@@ -176,7 +183,7 @@ const C = s.div`
|
|
|
176
183
|
}
|
|
177
184
|
) });
|
|
178
185
|
}
|
|
179
|
-
),
|
|
186
|
+
), j = s.div`
|
|
180
187
|
display: flex;
|
|
181
188
|
flex-direction: column;
|
|
182
189
|
gap: 1.5rem;
|
|
@@ -200,7 +207,7 @@ const C = s.div`
|
|
|
200
207
|
}
|
|
201
208
|
}
|
|
202
209
|
|
|
203
|
-
@media (max-width: ${
|
|
210
|
+
@media (max-width: ${m + "px"}) {
|
|
204
211
|
& .regular-title {
|
|
205
212
|
font-size: 1.375rem;
|
|
206
213
|
|
|
@@ -209,7 +216,7 @@ const C = s.div`
|
|
|
209
216
|
}
|
|
210
217
|
}
|
|
211
218
|
}
|
|
212
|
-
`,
|
|
219
|
+
`, E = s.div`
|
|
213
220
|
display: grid;
|
|
214
221
|
grid-template-columns: ${(e) => "repeat(12, minmax(0, 1fr))"};
|
|
215
222
|
|
|
@@ -219,7 +226,7 @@ const C = s.div`
|
|
|
219
226
|
height: 30rem;
|
|
220
227
|
max-height: 30rem;
|
|
221
228
|
|
|
222
|
-
@media (max-width: ${
|
|
229
|
+
@media (max-width: ${m + "px"}) {
|
|
223
230
|
display: flex;
|
|
224
231
|
flex-direction: column;
|
|
225
232
|
gap: 1.25rem;
|
|
@@ -227,8 +234,8 @@ const C = s.div`
|
|
|
227
234
|
height: 100%;
|
|
228
235
|
max-height: 100%;
|
|
229
236
|
}
|
|
230
|
-
`,
|
|
231
|
-
@media (max-width: ${
|
|
237
|
+
`, W = s(f)`
|
|
238
|
+
@media (max-width: ${m + "px"}) {
|
|
232
239
|
flex-direction: column;
|
|
233
240
|
|
|
234
241
|
& .skeleton__big {
|
|
@@ -241,51 +248,59 @@ const C = s.div`
|
|
|
241
248
|
flex-direction: column;
|
|
242
249
|
}
|
|
243
250
|
}
|
|
244
|
-
`,
|
|
245
|
-
/* @__PURE__ */ r(
|
|
246
|
-
|
|
251
|
+
`, R = ({ keyPrefix: e }) => /* @__PURE__ */ i(W, { children: [
|
|
252
|
+
/* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
|
|
253
|
+
l,
|
|
247
254
|
{
|
|
248
255
|
height: "31.25rem",
|
|
249
256
|
className: "skeleton__big"
|
|
250
257
|
},
|
|
251
258
|
`${e}-1`
|
|
252
259
|
) }),
|
|
253
|
-
/* @__PURE__ */ i(
|
|
254
|
-
/* @__PURE__ */ i(
|
|
255
|
-
/* @__PURE__ */ r(
|
|
256
|
-
/* @__PURE__ */ r(
|
|
260
|
+
/* @__PURE__ */ i(b, { children: [
|
|
261
|
+
/* @__PURE__ */ i(f, { noGradient: !0, children: [
|
|
262
|
+
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-2`),
|
|
263
|
+
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-3`)
|
|
257
264
|
] }),
|
|
258
|
-
/* @__PURE__ */ i(
|
|
259
|
-
/* @__PURE__ */ r(
|
|
260
|
-
/* @__PURE__ */ r(
|
|
265
|
+
/* @__PURE__ */ i(f, { noGradient: !0, children: [
|
|
266
|
+
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-4`),
|
|
267
|
+
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-5`)
|
|
261
268
|
] })
|
|
262
269
|
] })
|
|
263
|
-
] }),
|
|
270
|
+
] }), I = ({
|
|
264
271
|
keyPrefix: e,
|
|
265
272
|
isLoading: t = !1,
|
|
266
|
-
fallbackComponent: a = /* @__PURE__ */ r(
|
|
267
|
-
children:
|
|
268
|
-
}) => /* @__PURE__ */ r(
|
|
269
|
-
({
|
|
270
|
-
|
|
273
|
+
fallbackComponent: a = /* @__PURE__ */ r($, {}),
|
|
274
|
+
children: o
|
|
275
|
+
}) => /* @__PURE__ */ r(N, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ r(R, { keyPrefix: e }) : o }), Z = v(
|
|
276
|
+
({
|
|
277
|
+
title: e,
|
|
278
|
+
items: t,
|
|
279
|
+
isLoading: a = !1,
|
|
280
|
+
limit: o = 3,
|
|
281
|
+
onSelectCard: c = () => {
|
|
282
|
+
},
|
|
283
|
+
LinkComponent: g
|
|
284
|
+
}, h) => /* @__PURE__ */ i(j, { ref: h, children: [
|
|
271
285
|
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: e }) }) }),
|
|
272
286
|
/* @__PURE__ */ r(
|
|
273
|
-
|
|
287
|
+
I,
|
|
274
288
|
{
|
|
275
289
|
isLoading: a,
|
|
276
290
|
keyPrefix: "masonry-general-cards-skeleton",
|
|
277
|
-
children: /* @__PURE__ */ r(
|
|
278
|
-
|
|
291
|
+
children: /* @__PURE__ */ r(E, { limit: o, children: t && (t == null ? void 0 : t.map((n, p) => /* @__PURE__ */ r(
|
|
292
|
+
M,
|
|
279
293
|
{
|
|
280
|
-
...
|
|
281
|
-
onSelectCard: () =>
|
|
294
|
+
...n,
|
|
295
|
+
onSelectCard: () => c(n),
|
|
296
|
+
LinkComponent: g
|
|
282
297
|
},
|
|
283
|
-
`landing-page-masonry-general-card__${
|
|
298
|
+
`landing-page-masonry-general-card__${p + 1}`
|
|
284
299
|
))) })
|
|
285
300
|
}
|
|
286
301
|
)
|
|
287
302
|
] })
|
|
288
303
|
);
|
|
289
304
|
export {
|
|
290
|
-
|
|
305
|
+
Z as default
|
|
291
306
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),f=require("react"),u=require("./Button.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),m=require("./index-D-3I_Ppj.cjs"),y=g.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@media (max-width: ${
|
|
65
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
66
66
|
padding: 2rem;
|
|
67
67
|
min-height: 17.5rem;
|
|
68
68
|
width: 100%;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`,v=f.forwardRef(({title:r,description:t,buttonText:s,imageUrl:a,backgroundColor:l="none",handleSelectCard:c=()=>{},handleButtonAction:d=()=>{},selectAction:e,LinkComponent:i},x)=>{const _=i||"a";return n.jsxs(y,{ref:x,backgroundImage:a,backgroundColor:l,onClick:c,as:_,...i?{to:`/${e}`}:{href:`/${e}`},children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),t&&n.jsx("div",{className:"section__description",children:t})]}),n.jsx(u,{text:s,onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation(),d()},borderRadius:"regular",color:"gray",className:"section__action"})]})}),p=g.styled.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
flex-direction: column;
|
|
91
91
|
align-items: flex-start;
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
@media (max-width: ${
|
|
127
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
128
128
|
& .section__title {
|
|
129
129
|
font-size: 1.375rem;
|
|
130
130
|
line-height: 1.75rem;
|
|
@@ -134,4 +134,4 @@
|
|
|
134
134
|
flex-direction: column;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
`,
|
|
137
|
+
`,b=f.forwardRef(({title:r,items:t,isLoading:s=!1,onSelectCard:a=()=>{},onButtonAction:l=()=>{},LinkComponent:c},d)=>n.jsxs(p,{ref:d,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(m.SuspenseBlogsSectionDetailed,{isLoading:s,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:t==null?void 0:t.map((e,i)=>n.jsx(v,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>a(e),handleButtonAction:()=>l(e),selectAction:e==null?void 0:e.selectAction,LinkComponent:c},`overlay-general-card__${i+1}`))})})]}));module.exports=b;
|