@lanaco/lnc-react-ui 4.0.226 → 4.0.227
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 +3 -3
- package/dist/BannerSectionCarousel.js +18 -11
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +19 -35
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +40 -58
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +2 -2
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +76 -146
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +14 -14
- package/dist/SalesCampaignsSection.js +299 -330
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +54 -100
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +64 -67
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/index-BXT1eY2D.js +753 -0
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/index-D3QZziO_.cjs +368 -0
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/style-CQdEALKR.cjs +59 -0
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),f=require("./utils-CITgSxXe.cjs"),I=require("./Icon.cjs"),b=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=require("./style-CQdEALKR.cjs"),R=b.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
font-style: normal;
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
line-height: 1.5rem;
|
|
42
|
-
${
|
|
42
|
+
${f.truncateTextInRows(2)}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
& .wrapper__description {
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
line-height: 1rem;
|
|
51
51
|
letter-spacing: 0.025rem;
|
|
52
|
-
${
|
|
52
|
+
${f.truncateTextInRows(2)}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
@media ${
|
|
56
|
+
@media ${w.down("S")} {
|
|
57
57
|
& .wrapper__content {
|
|
58
58
|
& .wrapper__title {
|
|
59
59
|
font-size: 0.875rem;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,E=b.styled.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
align-items: center;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
font-weight: 400;
|
|
106
106
|
line-height: 1.5rem;
|
|
107
107
|
max-width: 16rem;
|
|
108
|
-
${
|
|
108
|
+
${f.truncateText()}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
&.active {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
@media ${
|
|
118
|
+
@media ${w.down("S")} {
|
|
119
119
|
max-width: unset;
|
|
120
120
|
min-width: unset;
|
|
121
121
|
flex-direction: row;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
max-width: unset;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
`,
|
|
158
|
+
`,F=h.forwardRef(({text:t,isActive:a=!1,icon:n,onSelectCard:s=()=>{}},d)=>r.jsxs(E,{ref:d,className:a?"active":"",onClick:s,children:[r.jsx(I,{icon:n,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),O=h.forwardRef(({image:t,imageComponent:a,title:n,description:s,className:d,onSelectCard:j=()=>{},link:g,LinkComponent:x},$)=>{const c=x||"a",{theme:m}=M.useTheme();return r.jsxs(R,{ref:$,theme:m,className:d,onClick:j,as:c,...x?{to:`/${g}`}:{href:`/${g}`},children:[f.isDefined(a)?a:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[n&&r.jsx("div",{className:"wrapper__title",children:n}),s&&r.jsx("div",{className:"wrapper__description",children:s})]})]})}),T=b.styled.div`
|
|
159
159
|
display: flex;
|
|
160
160
|
flex-direction: column;
|
|
161
161
|
align-items: center;
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
@media ${
|
|
216
|
+
@media ${w.down("M")} {
|
|
217
217
|
& .wrapper__tags {
|
|
218
218
|
gap: 0.75rem;
|
|
219
219
|
}
|
|
@@ -223,21 +223,21 @@
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
@media ${
|
|
226
|
+
@media ${w.down("S")} {
|
|
227
227
|
gap: 1rem;
|
|
228
228
|
|
|
229
229
|
& .wrapper__cards {
|
|
230
230
|
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
`,
|
|
233
|
+
`,L=b.styled(v.SkeletonAnimationContainer)`
|
|
234
234
|
&.skeleton__tags {
|
|
235
235
|
max-width: 50rem;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
@media ${
|
|
238
|
+
@media ${w.down("S")} {
|
|
239
239
|
&.skeleton__tags {
|
|
240
240
|
overflow-x: hidden;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,A=({keyPrefix:t})=>r.jsx(L,{className:"skeleton__tags",children:[1,2,3,4,5].map(a=>r.jsxs(v.SkeletonColumnContainer,{alignItems:"center",gap:"0.5rem",children:[r.jsx(v.SkeletonCircle,{size:"2.75rem"}),r.jsx(v.SkeletonRect,{height:"1.5rem",width:"8rem"})]},`${t}-tag-${a}`))}),W=({keyPrefix:t,isLoading:a=!1,fallbackComponent:n=r.jsx(r.Fragment,{}),children:s})=>r.jsx(h.Suspense,{fallbackComponent:n,children:a===!0?r.jsx(A,{keyPrefix:t}):s}),D=h.forwardRef(({title:t,subtitle:a,tags:n=[],items:s=[],limitTags:d=5,limitTagsForMobile:j=5,limit:g=3,limitForMobile:x=2,selectedTag:$,onSelectTag:c=()=>{},onSelectCard:m=()=>{},className:_,isLoadingTags:S=!1,LinkComponent:q},z)=>(h.useLayoutEffect(()=>{if(!f.isDefinedNotEmptyString(_))return;const e=()=>{const p=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),o=p==null?void 0:p.querySelectorAll(".wrapper__card");o==null||o.forEach(y=>{const C=y.getBoundingClientRect().height,N=Math.ceil((C+10)/20);y.style.gridRowEnd=`span ${N}`});const k=o==null?void 0:o[(o==null?void 0:o.length)-1];if(k){const y=k.offsetTop+k.offsetHeight;p.style.height=`${y}px`}},l=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),i=l==null?void 0:l.querySelectorAll(".wrapper__image");let u=0;return(i==null?void 0:i.length)===0?e():(i==null||i.forEach(p=>{p.complete?u++:p.addEventListener("load",()=>{u++,u===(i==null?void 0:i.length)&&e()})}),u===(i==null?void 0:i.length)&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[_,s]),r.jsxs(T,{ref:z,limitTags:d,limitTagsForMobile:j,limitCards:g,limitCardsForMobile:x,className:_,numberOfTags:n==null?void 0:n.length,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__subtitle",children:a})]}),r.jsx(W,{isLoading:S,keyPrefix:"field-of-interests-masonry-tag",children:r.jsx("div",{className:"wrapper__tags__external",children:r.jsx("div",{className:"wrapper__tags",children:n==null?void 0:n.map((e,l)=>r.jsx(F,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===$,onSelectCard:()=>c==null?void 0:c(e)},`field-of-interests-masonry-tag__${l+1}`))})})}),r.jsx("div",{className:"wrapper__cards",children:s==null?void 0:s.map((e,l)=>r.jsx(O,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>m==null?void 0:m(e),className:"wrapper__card",link:e==null?void 0:e.link,LinkComponent:q},`field-of-interests-with-tags-card__${l+1}`))})]})));module.exports=D;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import
|
|
5
|
-
import { s as
|
|
6
|
-
import { d as
|
|
1
|
+
import { jsxs as m, jsx as r, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k, Suspense as F, useLayoutEffect as O } from "react";
|
|
3
|
+
import { n as S, t as L, m as R, l as T } from "./utils-MoGhNMmj.js";
|
|
4
|
+
import q from "./Icon.js";
|
|
5
|
+
import { s as y } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
6
|
+
import { d as _ } from "./breakpoints-BubDitvo.js";
|
|
7
7
|
import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
8
|
+
import { S as j, e as W, f as D, a as H } from "./style-BFPpppS9.js";
|
|
9
|
+
const B = y.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -47,7 +47,7 @@ const H = $.a`
|
|
|
47
47
|
font-style: normal;
|
|
48
48
|
font-weight: 500;
|
|
49
49
|
line-height: 1.5rem;
|
|
50
|
-
${
|
|
50
|
+
${S(2)}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
& .wrapper__description {
|
|
@@ -57,11 +57,11 @@ const H = $.a`
|
|
|
57
57
|
font-weight: 400;
|
|
58
58
|
line-height: 1rem;
|
|
59
59
|
letter-spacing: 0.025rem;
|
|
60
|
-
${
|
|
60
|
+
${S(2)}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
@media ${
|
|
64
|
+
@media ${_("S")} {
|
|
65
65
|
& .wrapper__content {
|
|
66
66
|
& .wrapper__title {
|
|
67
67
|
font-size: 0.875rem;
|
|
@@ -73,7 +73,7 @@ const H = $.a`
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`, P = y.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
align-items: center;
|
|
@@ -113,7 +113,7 @@ const H = $.a`
|
|
|
113
113
|
font-weight: 400;
|
|
114
114
|
line-height: 1.5rem;
|
|
115
115
|
max-width: 16rem;
|
|
116
|
-
${
|
|
116
|
+
${L()}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&.active {
|
|
@@ -123,7 +123,7 @@ const H = $.a`
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
@media ${
|
|
126
|
+
@media ${_("S")} {
|
|
127
127
|
max-width: unset;
|
|
128
128
|
min-width: unset;
|
|
129
129
|
flex-direction: row;
|
|
@@ -163,53 +163,53 @@ const H = $.a`
|
|
|
163
163
|
max-width: unset;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
167
|
-
({ text: t, isActive:
|
|
168
|
-
} }, d) => /* @__PURE__ */
|
|
169
|
-
|
|
166
|
+
`, G = k(
|
|
167
|
+
({ text: t, isActive: a = !1, icon: i, onSelectCard: o = () => {
|
|
168
|
+
} }, d) => /* @__PURE__ */ m(
|
|
169
|
+
P,
|
|
170
170
|
{
|
|
171
171
|
ref: d,
|
|
172
|
-
className:
|
|
173
|
-
onClick:
|
|
172
|
+
className: a ? "active" : "",
|
|
173
|
+
onClick: o,
|
|
174
174
|
children: [
|
|
175
|
-
/* @__PURE__ */ r(
|
|
175
|
+
/* @__PURE__ */ r(q, { icon: i, className: "wrapper__icon" }),
|
|
176
176
|
/* @__PURE__ */ r("div", { className: "wrapper__text", children: t })
|
|
177
177
|
]
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
|
-
),
|
|
180
|
+
), J = k(
|
|
181
181
|
({
|
|
182
182
|
image: t,
|
|
183
|
-
imageComponent:
|
|
183
|
+
imageComponent: a,
|
|
184
184
|
title: i,
|
|
185
|
-
description:
|
|
185
|
+
description: o,
|
|
186
186
|
className: d,
|
|
187
|
-
onSelectCard:
|
|
187
|
+
onSelectCard: v = () => {
|
|
188
188
|
},
|
|
189
|
-
link:
|
|
190
|
-
LinkComponent:
|
|
191
|
-
},
|
|
192
|
-
const c =
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
-
|
|
189
|
+
link: w,
|
|
190
|
+
LinkComponent: g
|
|
191
|
+
}, b) => {
|
|
192
|
+
const c = g || "a", { theme: f } = A();
|
|
193
|
+
return /* @__PURE__ */ m(
|
|
194
|
+
B,
|
|
195
195
|
{
|
|
196
|
-
ref:
|
|
197
|
-
theme:
|
|
196
|
+
ref: b,
|
|
197
|
+
theme: f,
|
|
198
198
|
className: d,
|
|
199
|
-
onClick:
|
|
199
|
+
onClick: v,
|
|
200
200
|
as: c,
|
|
201
|
-
...
|
|
201
|
+
...g ? { to: `/${w}` } : { href: `/${w}` },
|
|
202
202
|
children: [
|
|
203
|
-
|
|
204
|
-
/* @__PURE__ */
|
|
203
|
+
R(a) ? a : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
|
|
204
|
+
/* @__PURE__ */ m("div", { className: "wrapper__content", children: [
|
|
205
205
|
i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
206
|
-
|
|
206
|
+
o && /* @__PURE__ */ r("div", { className: "wrapper__description", children: o })
|
|
207
207
|
] })
|
|
208
208
|
]
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
),
|
|
212
|
+
), K = y.div`
|
|
213
213
|
display: flex;
|
|
214
214
|
flex-direction: column;
|
|
215
215
|
align-items: center;
|
|
@@ -267,7 +267,7 @@ const H = $.a`
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
@media ${
|
|
270
|
+
@media ${_("M")} {
|
|
271
271
|
& .wrapper__tags {
|
|
272
272
|
gap: 0.75rem;
|
|
273
273
|
}
|
|
@@ -277,180 +277,126 @@ const H = $.a`
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
@media ${
|
|
280
|
+
@media ${_("S")} {
|
|
281
281
|
gap: 1rem;
|
|
282
282
|
|
|
283
283
|
& .wrapper__cards {
|
|
284
284
|
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
287
|
+
`, Q = y(j)`
|
|
288
288
|
&.skeleton__tags {
|
|
289
289
|
max-width: 50rem;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
@media ${
|
|
292
|
+
@media ${_("S")} {
|
|
293
293
|
&.skeleton__tags {
|
|
294
294
|
overflow-x: hidden;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
`,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
),
|
|
310
|
-
/* @__PURE__ */ o(
|
|
311
|
-
f,
|
|
312
|
-
{
|
|
313
|
-
alignItems: "center",
|
|
314
|
-
gap: "0.5rem",
|
|
315
|
-
noGradient: !0,
|
|
316
|
-
children: [
|
|
317
|
-
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
318
|
-
/* @__PURE__ */ r(w, { height: "1.5rem", width: "8rem" })
|
|
319
|
-
]
|
|
320
|
-
},
|
|
321
|
-
`${t}-2`
|
|
322
|
-
),
|
|
323
|
-
/* @__PURE__ */ o(
|
|
324
|
-
f,
|
|
325
|
-
{
|
|
326
|
-
alignItems: "center",
|
|
327
|
-
gap: "0.5rem",
|
|
328
|
-
noGradient: !0,
|
|
329
|
-
children: [
|
|
330
|
-
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
331
|
-
/* @__PURE__ */ r(w, { height: "1.5rem", width: "8rem" })
|
|
332
|
-
]
|
|
333
|
-
},
|
|
334
|
-
`${t}-3`
|
|
335
|
-
),
|
|
336
|
-
/* @__PURE__ */ o(
|
|
337
|
-
f,
|
|
338
|
-
{
|
|
339
|
-
alignItems: "center",
|
|
340
|
-
gap: "0.5rem",
|
|
341
|
-
noGradient: !0,
|
|
342
|
-
children: [
|
|
343
|
-
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
344
|
-
/* @__PURE__ */ r(w, { height: "1.5rem", width: "8rem" })
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
`${t}-4`
|
|
348
|
-
),
|
|
349
|
-
/* @__PURE__ */ o(
|
|
350
|
-
f,
|
|
351
|
-
{
|
|
352
|
-
alignItems: "center",
|
|
353
|
-
gap: "0.5rem",
|
|
354
|
-
noGradient: !0,
|
|
355
|
-
children: [
|
|
356
|
-
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
357
|
-
/* @__PURE__ */ r(w, { height: "1.5rem", width: "8rem" })
|
|
358
|
-
]
|
|
359
|
-
},
|
|
360
|
-
`${t}-5`
|
|
361
|
-
)
|
|
362
|
-
] }), X = ({
|
|
297
|
+
`, U = ({ keyPrefix: t }) => /* @__PURE__ */ r(Q, { className: "skeleton__tags", children: [1, 2, 3, 4, 5].map((a) => /* @__PURE__ */ m(
|
|
298
|
+
W,
|
|
299
|
+
{
|
|
300
|
+
alignItems: "center",
|
|
301
|
+
gap: "0.5rem",
|
|
302
|
+
children: [
|
|
303
|
+
/* @__PURE__ */ r(D, { size: "2.75rem" }),
|
|
304
|
+
/* @__PURE__ */ r(H, { height: "1.5rem", width: "8rem" })
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
`${t}-tag-${a}`
|
|
308
|
+
)) }), V = ({
|
|
363
309
|
keyPrefix: t,
|
|
364
|
-
isLoading:
|
|
365
|
-
fallbackComponent: i = /* @__PURE__ */ r(
|
|
366
|
-
children:
|
|
367
|
-
}) => /* @__PURE__ */ r(
|
|
310
|
+
isLoading: a = !1,
|
|
311
|
+
fallbackComponent: i = /* @__PURE__ */ r(E, {}),
|
|
312
|
+
children: o
|
|
313
|
+
}) => /* @__PURE__ */ r(F, { fallbackComponent: i, children: a === !0 ? /* @__PURE__ */ r(U, { keyPrefix: t }) : o }), ae = k(
|
|
368
314
|
({
|
|
369
315
|
title: t,
|
|
370
|
-
subtitle:
|
|
316
|
+
subtitle: a,
|
|
371
317
|
tags: i = [],
|
|
372
|
-
items:
|
|
318
|
+
items: o = [],
|
|
373
319
|
limitTags: d = 5,
|
|
374
|
-
limitTagsForMobile:
|
|
375
|
-
limit:
|
|
376
|
-
limitForMobile:
|
|
377
|
-
selectedTag:
|
|
320
|
+
limitTagsForMobile: v = 5,
|
|
321
|
+
limit: w = 3,
|
|
322
|
+
limitForMobile: g = 2,
|
|
323
|
+
selectedTag: b,
|
|
378
324
|
onSelectTag: c = () => {
|
|
379
325
|
},
|
|
380
|
-
onSelectCard:
|
|
326
|
+
onSelectCard: f = () => {
|
|
381
327
|
},
|
|
382
|
-
className:
|
|
383
|
-
isLoadingTags:
|
|
328
|
+
className: h,
|
|
329
|
+
isLoadingTags: z = !1,
|
|
384
330
|
// isLoadingCards = false,
|
|
385
|
-
LinkComponent:
|
|
386
|
-
},
|
|
387
|
-
if (!
|
|
331
|
+
LinkComponent: C
|
|
332
|
+
}, N) => (O(() => {
|
|
333
|
+
if (!T(h))
|
|
388
334
|
return;
|
|
389
335
|
const e = () => {
|
|
390
|
-
const
|
|
391
|
-
s == null || s.forEach((
|
|
392
|
-
const
|
|
393
|
-
|
|
336
|
+
const p = document == null ? void 0 : document.querySelector(`.${h} .wrapper__cards`), s = p == null ? void 0 : p.querySelectorAll(".wrapper__card");
|
|
337
|
+
s == null || s.forEach((x) => {
|
|
338
|
+
const M = x.getBoundingClientRect().height, I = Math.ceil((M + 10) / 20);
|
|
339
|
+
x.style.gridRowEnd = `span ${I}`;
|
|
394
340
|
});
|
|
395
|
-
const
|
|
396
|
-
if (
|
|
397
|
-
const
|
|
398
|
-
|
|
341
|
+
const $ = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
|
|
342
|
+
if ($) {
|
|
343
|
+
const x = $.offsetTop + $.offsetHeight;
|
|
344
|
+
p.style.height = `${x}px`;
|
|
399
345
|
}
|
|
400
|
-
},
|
|
401
|
-
let
|
|
402
|
-
return (n == null ? void 0 : n.length) === 0 ? e() : (n == null || n.forEach((
|
|
403
|
-
|
|
404
|
-
|
|
346
|
+
}, l = document == null ? void 0 : document.querySelector(`.${h} .wrapper__cards`), n = l == null ? void 0 : l.querySelectorAll(".wrapper__image");
|
|
347
|
+
let u = 0;
|
|
348
|
+
return (n == null ? void 0 : n.length) === 0 ? e() : (n == null || n.forEach((p) => {
|
|
349
|
+
p.complete ? u++ : p.addEventListener("load", () => {
|
|
350
|
+
u++, u === (n == null ? void 0 : n.length) && e();
|
|
405
351
|
});
|
|
406
|
-
}),
|
|
352
|
+
}), u === (n == null ? void 0 : n.length) && e()), window.addEventListener("resize", e), () => {
|
|
407
353
|
window.removeEventListener("resize", e);
|
|
408
354
|
};
|
|
409
|
-
}, [
|
|
410
|
-
|
|
355
|
+
}, [h, o]), /* @__PURE__ */ m(
|
|
356
|
+
K,
|
|
411
357
|
{
|
|
412
|
-
ref:
|
|
358
|
+
ref: N,
|
|
413
359
|
limitTags: d,
|
|
414
|
-
limitTagsForMobile:
|
|
415
|
-
limitCards:
|
|
416
|
-
limitCardsForMobile:
|
|
417
|
-
className:
|
|
360
|
+
limitTagsForMobile: v,
|
|
361
|
+
limitCards: w,
|
|
362
|
+
limitCardsForMobile: g,
|
|
363
|
+
className: h,
|
|
418
364
|
numberOfTags: i == null ? void 0 : i.length,
|
|
419
365
|
children: [
|
|
420
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
|
|
421
367
|
t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
|
|
422
|
-
|
|
368
|
+
a && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: a })
|
|
423
369
|
] }),
|
|
424
370
|
/* @__PURE__ */ r(
|
|
425
|
-
|
|
371
|
+
V,
|
|
426
372
|
{
|
|
427
|
-
isLoading:
|
|
373
|
+
isLoading: z,
|
|
428
374
|
keyPrefix: "field-of-interests-masonry-tag",
|
|
429
|
-
children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e,
|
|
430
|
-
|
|
375
|
+
children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
|
|
376
|
+
G,
|
|
431
377
|
{
|
|
432
378
|
icon: e == null ? void 0 : e.icon,
|
|
433
379
|
text: e == null ? void 0 : e.title,
|
|
434
|
-
isActive: (e == null ? void 0 : e.code) ===
|
|
380
|
+
isActive: (e == null ? void 0 : e.code) === b,
|
|
435
381
|
onSelectCard: () => c == null ? void 0 : c(e)
|
|
436
382
|
},
|
|
437
|
-
`field-of-interests-masonry-tag__${
|
|
383
|
+
`field-of-interests-masonry-tag__${l + 1}`
|
|
438
384
|
)) }) })
|
|
439
385
|
}
|
|
440
386
|
),
|
|
441
|
-
/* @__PURE__ */ r("div", { className: "wrapper__cards", children:
|
|
442
|
-
|
|
387
|
+
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: o == null ? void 0 : o.map((e, l) => /* @__PURE__ */ r(
|
|
388
|
+
J,
|
|
443
389
|
{
|
|
444
390
|
image: e == null ? void 0 : e.image,
|
|
445
391
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
446
392
|
title: e == null ? void 0 : e.title,
|
|
447
393
|
description: e == null ? void 0 : e.description,
|
|
448
|
-
onSelectCard: () =>
|
|
394
|
+
onSelectCard: () => f == null ? void 0 : f(e),
|
|
449
395
|
className: "wrapper__card",
|
|
450
396
|
link: e == null ? void 0 : e.link,
|
|
451
|
-
LinkComponent:
|
|
397
|
+
LinkComponent: C
|
|
452
398
|
},
|
|
453
|
-
`field-of-interests-with-tags-card__${
|
|
399
|
+
`field-of-interests-with-tags-card__${l + 1}`
|
|
454
400
|
)) })
|
|
455
401
|
]
|
|
456
402
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),g=require("react"),C=require("./utils-CITgSxXe.cjs"),y=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),f=require("./breakpoints-CcVm-gVm.cjs"),b=require("./index-BkztbBWe.cjs"),$=require("./style-CQdEALKR.cjs"),F=y.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: auto;
|
|
4
4
|
border-radius: 999px;
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
border: var(--yellow-600, #d97706);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
@media ${
|
|
22
|
+
@media ${f.down("S")} {
|
|
23
23
|
& .wrapper__image {
|
|
24
24
|
height: auto;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,k=g.forwardRef(({isActive:t,image:s,imageComponent:r,onSelectCard:n=()=>{}},l)=>i.jsx(F,{ref:l,className:t?"active":"",onClick:n,children:C.isDefined(r)?r:i.jsx("img",{src:s,className:"wrapper__image"})})),N=g.forwardRef(({uuid:t,title:s,price:r,currency:n,isNegotiable:l,isFree:u,image:h,sellerUuid:o,onSelectCard:m=()=>{},imageComponent:a,negotiableText:x="Negotiable",freeText:_="Free",nameSlug:d,LinkComponent:w},p)=>i.jsx(b.SimpleProductCard,{ref:p,uuid:t,title:s,price:r,currency:n,isNegotiable:l,isFree:u,image:h,imageComponent:a,sellerUuid:o,onSelectCard:m,negotiableText:x,freeText:_,nameSlug:d,LinkComponent:w})),S=y.styled.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
align-items: center;
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
width: 100%;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
@media ${
|
|
76
|
+
@media ${f.down("M")} {
|
|
77
77
|
& .wrapper__cards {
|
|
78
78
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
@media ${
|
|
82
|
+
@media ${f.down("S")} {
|
|
83
83
|
& .wrapper__avatars {
|
|
84
84
|
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
85
85
|
gap: auto;
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
gap: 1rem;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
`,v=
|
|
93
|
+
`,v=y.styled($.SkeletonAnimationContainer)`
|
|
94
94
|
&.skeleton__tags {
|
|
95
95
|
max-width: 50rem;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
@media ${
|
|
98
|
+
@media ${f.down("S")} {
|
|
99
99
|
&.skeleton__tags {
|
|
100
100
|
overflow-x: hidden;
|
|
101
101
|
|
|
@@ -114,4 +114,4 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,W=({keyPrefix:t})=>i.
|
|
117
|
+
`,W=({keyPrefix:t})=>i.jsx(v,{className:"skeleton__tags",justifyContent:"center",children:[1,2,3,4].map(s=>i.jsx($.SkeletonCircle,{size:"9.875rem"},`${t}-${s}`))}),q=({keyPrefix:t,isLoading:s=!1,fallbackComponent:r=i.jsx(i.Fragment,{}),children:n})=>i.jsx(g.Suspense,{fallbackComponent:r,children:s===!0?i.jsx(W,{keyPrefix:t}):n}),A=({keyPrefix:t})=>i.jsx(v,{className:"skeleton__cards",justifyContent:"center",children:[1,2,3,4].map(s=>i.jsx($.SkeletonRect,{width:"100%",height:"13.75rem"},`${t}-${s}`))}),I=({keyPrefix:t,isLoading:s=!1,fallbackComponent:r=i.jsx(i.Fragment,{}),children:n})=>i.jsx(g.Suspense,{fallbackComponent:r,children:s===!0?i.jsx(A,{keyPrefix:t}):n}),O=g.forwardRef(({title:t,subtitle:s,avatars:r=[],limitAvatars:n=4,limit:l=6,limitAvatarsForMobile:u=4,limitForMobile:h=2,items:o=[],onSelectAvatar:m=()=>{},onSelectCard:a=()=>{},isLoadingTags:x=!1,isLoadingCards:_=!1,LinkComponent:d},w)=>{const p=e=>{m==null||m(e)},j=e=>{a==null||a(e)};return i.jsxs(S,{ref:w,limitAvatars:n,limitAvatarsForMobile:u,limitCards:l,limitCardsForMobile:h,children:[i.jsxs("div",{className:"wrapper__heading",children:[t&&i.jsx("div",{className:"wrapper__title",children:t}),s&&i.jsx("div",{className:"wrapper__subtitle",children:s})]}),i.jsx(q,{isLoading:x,keyPrefix:"field-of-interests-with-avatars-tag",children:i.jsx("div",{className:"wrapper__avatars",children:r==null?void 0:r.map((e,c)=>i.jsx(k,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>p==null?void 0:p(e)},`field-of-interests-with-avatars-card-avatar__${c+1}`))})}),i.jsx(I,{isLoading:_,keyPrefix:"field-of-interests-with-avatars-card",children:i.jsx("div",{className:"wrapper__cards",children:o==null?void 0:o.map((e,c)=>i.jsx(N,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>j==null?void 0:j(e),nameSlug:e==null?void 0:e.nameSlug,LinkComponent:d},`field-of-interests-with-avatars-card__${c+1}`))})})]})});module.exports=O;
|