@lanaco/lnc-react-ui 4.0.183 → 4.0.185
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/BlogCardsSponsoredSection.cjs +5 -3
- package/dist/BlogCardsSponsoredSection.js +68 -64
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +8 -6
- package/dist/BlogListSection.js +122 -114
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +5 -3
- package/dist/BlogsSectionDetailed.js +53 -49
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +9 -7
- package/dist/BlogsSectionSimple.js +53 -47
- package/dist/BlogsSectionSimpleCentered.cjs +7 -5
- package/dist/BlogsSectionSimpleCentered.js +31 -26
- package/dist/BlogsSectionWithFilters.cjs +9 -7
- package/dist/BlogsSectionWithFilters.js +47 -42
- package/dist/BrandHitsSection.cjs +9 -7
- package/dist/BrandHitsSection.js +40 -35
- package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
- package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
- package/dist/CheckBoxInput.cjs +27 -27
- package/dist/CheckBoxInput.js +61 -98
- package/dist/ColorInput.cjs +26 -26
- package/dist/ColorInput.js +127 -162
- package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
- package/dist/DetailedProductsInfinitiveSection.js +6 -5
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +12 -10
- package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
- package/dist/FieldOfInterestsMasonrySection.js +90 -85
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
- package/dist/GeneralWithTagsCardsSection.cjs +12 -8
- package/dist/GeneralWithTagsCardsSection.js +50 -44
- package/dist/GiftCardsSection.cjs +7 -5
- package/dist/GiftCardsSection.js +46 -40
- package/dist/MasonryGeneralCardsSection.cjs +6 -5
- package/dist/MasonryGeneralCardsSection.js +26 -23
- package/dist/Modal.cjs +14 -13
- package/dist/Modal.js +88 -86
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +30 -35
- package/dist/ProductsWithBannerSection.cjs +8 -6
- package/dist/ProductsWithBannerSection.js +71 -77
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +31 -28
- package/dist/ReviewsSection.cjs +11 -9
- package/dist/ReviewsSection.js +38 -36
- package/dist/SalesCampaignsSection.cjs +22 -19
- package/dist/SalesCampaignsSection.js +299 -300
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +7 -3
- package/dist/SimpleProductsSection.cjs +5 -5
- package/dist/SimpleProductsSection.js +62 -72
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +9 -7
- package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
- package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
- package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
- package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
- package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
- package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
- package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
- package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { o as
|
|
1
|
+
import { jsxs as o, jsx as r, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, Suspense as E, useLayoutEffect as W } from "react";
|
|
3
|
+
import { o as N, l as j, k as q } from "./utils-Dc5zIpaz.js";
|
|
4
4
|
import T from "./Icon.js";
|
|
5
5
|
import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
6
|
import { M as x } from "./consts-BuFChS64.js";
|
|
7
7
|
import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
import { a as B, S as f, d as w, b as p } from "./style-CXMUA6cI.js";
|
|
9
|
-
const D = u.
|
|
9
|
+
const D = u.a`
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
color: var(--gray-950);
|
|
10
12
|
display: flex;
|
|
11
13
|
width: 100%;
|
|
12
14
|
height: fit-content;
|
|
@@ -45,7 +47,7 @@ const D = u.div`
|
|
|
45
47
|
font-style: normal;
|
|
46
48
|
font-weight: 500;
|
|
47
49
|
line-height: 1.5rem;
|
|
48
|
-
${
|
|
50
|
+
${N(2)}
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
& .wrapper__description {
|
|
@@ -55,7 +57,7 @@ const D = u.div`
|
|
|
55
57
|
font-weight: 400;
|
|
56
58
|
line-height: 1rem;
|
|
57
59
|
letter-spacing: 0.025rem;
|
|
58
|
-
${
|
|
60
|
+
${N(2)}
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
|
|
@@ -112,7 +114,7 @@ const D = u.div`
|
|
|
112
114
|
font-weight: 400;
|
|
113
115
|
line-height: 1.5rem;
|
|
114
116
|
max-width: 8rem;
|
|
115
|
-
${
|
|
117
|
+
${N(2)}
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
&.active {
|
|
@@ -162,43 +164,45 @@ const D = u.div`
|
|
|
162
164
|
max-width: unset;
|
|
163
165
|
}
|
|
164
166
|
}
|
|
165
|
-
`, X =
|
|
167
|
+
`, X = S(
|
|
166
168
|
({ text: t, isActive: l = !1, icon: i, onSelectCard: n = () => {
|
|
167
|
-
} },
|
|
169
|
+
} }, h) => /* @__PURE__ */ o(
|
|
168
170
|
H,
|
|
169
171
|
{
|
|
170
|
-
ref:
|
|
172
|
+
ref: h,
|
|
171
173
|
className: l ? "active" : "",
|
|
172
174
|
onClick: n,
|
|
173
175
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ r(T, { icon: i, className: "wrapper__icon" }),
|
|
177
|
+
/* @__PURE__ */ r("div", { className: "wrapper__text", children: t })
|
|
176
178
|
]
|
|
177
179
|
}
|
|
178
180
|
)
|
|
179
|
-
), Z =
|
|
181
|
+
), Z = S(
|
|
180
182
|
({
|
|
181
183
|
image: t,
|
|
182
184
|
imageComponent: l,
|
|
183
185
|
title: i,
|
|
184
186
|
description: n,
|
|
185
|
-
className:
|
|
186
|
-
onSelectCard:
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
className: h,
|
|
188
|
+
onSelectCard: y = () => {
|
|
189
|
+
},
|
|
190
|
+
link: v
|
|
191
|
+
}, b) => {
|
|
192
|
+
const { theme: $ } = A();
|
|
190
193
|
return /* @__PURE__ */ o(
|
|
191
194
|
D,
|
|
192
195
|
{
|
|
193
|
-
ref:
|
|
194
|
-
theme:
|
|
195
|
-
className:
|
|
196
|
-
onClick:
|
|
196
|
+
ref: b,
|
|
197
|
+
theme: $,
|
|
198
|
+
className: h,
|
|
199
|
+
onClick: y,
|
|
200
|
+
href: `/${v}`,
|
|
197
201
|
children: [
|
|
198
|
-
j(l) ? l : /* @__PURE__ */
|
|
202
|
+
j(l) ? l : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
|
|
199
203
|
/* @__PURE__ */ o("div", { className: "wrapper__content", children: [
|
|
200
|
-
i && /* @__PURE__ */
|
|
201
|
-
n && /* @__PURE__ */
|
|
204
|
+
i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
205
|
+
n && /* @__PURE__ */ r("div", { className: "wrapper__description", children: n })
|
|
202
206
|
] })
|
|
203
207
|
]
|
|
204
208
|
}
|
|
@@ -286,7 +290,7 @@ const D = u.div`
|
|
|
286
290
|
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
287
291
|
}
|
|
288
292
|
}
|
|
289
|
-
`,
|
|
293
|
+
`, F = u(B)`
|
|
290
294
|
&.skeleton__tags {
|
|
291
295
|
max-width: 50rem;
|
|
292
296
|
}
|
|
@@ -296,15 +300,15 @@ const D = u.div`
|
|
|
296
300
|
overflow-x: hidden;
|
|
297
301
|
}
|
|
298
302
|
}
|
|
299
|
-
`, K = ({ keyPrefix: t }) => /* @__PURE__ */ o(
|
|
303
|
+
`, K = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__tags", children: [
|
|
300
304
|
/* @__PURE__ */ o(
|
|
301
305
|
f,
|
|
302
306
|
{
|
|
303
307
|
alignItems: "center",
|
|
304
308
|
gap: "0.5rem",
|
|
305
309
|
children: [
|
|
306
|
-
/* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ r(w, { width: "2.75rem", height: "2.75rem" }),
|
|
311
|
+
/* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
|
|
308
312
|
]
|
|
309
313
|
},
|
|
310
314
|
`${t}-1`
|
|
@@ -316,8 +320,8 @@ const D = u.div`
|
|
|
316
320
|
gap: "0.5rem",
|
|
317
321
|
noGradient: !0,
|
|
318
322
|
children: [
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ r(w, { width: "2.75rem", height: "2.75rem" }),
|
|
324
|
+
/* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
|
|
321
325
|
]
|
|
322
326
|
},
|
|
323
327
|
`${t}-2`
|
|
@@ -329,8 +333,8 @@ const D = u.div`
|
|
|
329
333
|
gap: "0.5rem",
|
|
330
334
|
noGradient: !0,
|
|
331
335
|
children: [
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ r(w, { width: "2.75rem", height: "2.75rem" }),
|
|
337
|
+
/* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
|
|
334
338
|
]
|
|
335
339
|
},
|
|
336
340
|
`${t}-3`
|
|
@@ -342,8 +346,8 @@ const D = u.div`
|
|
|
342
346
|
gap: "0.5rem",
|
|
343
347
|
noGradient: !0,
|
|
344
348
|
children: [
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ r(w, { width: "2.75rem", height: "2.75rem" }),
|
|
350
|
+
/* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
|
|
347
351
|
]
|
|
348
352
|
},
|
|
349
353
|
`${t}-4`
|
|
@@ -355,8 +359,8 @@ const D = u.div`
|
|
|
355
359
|
gap: "0.5rem",
|
|
356
360
|
noGradient: !0,
|
|
357
361
|
children: [
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ r(w, { width: "2.75rem", height: "2.75rem" }),
|
|
363
|
+
/* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
|
|
360
364
|
]
|
|
361
365
|
},
|
|
362
366
|
`${t}-5`
|
|
@@ -364,104 +368,105 @@ const D = u.div`
|
|
|
364
368
|
] }), Q = ({
|
|
365
369
|
keyPrefix: t,
|
|
366
370
|
isLoading: l = !1,
|
|
367
|
-
fallbackComponent: i = /* @__PURE__ */
|
|
371
|
+
fallbackComponent: i = /* @__PURE__ */ r(z, {}),
|
|
368
372
|
children: n
|
|
369
|
-
}) => /* @__PURE__ */
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
+
}) => /* @__PURE__ */ r(E, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(K, { keyPrefix: t }) : n }), U = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__cards", children: [
|
|
374
|
+
/* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-1`),
|
|
375
|
+
/* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-2`),
|
|
376
|
+
/* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-3`)
|
|
373
377
|
] }), V = ({
|
|
374
378
|
keyPrefix: t,
|
|
375
379
|
isLoading: l = !1,
|
|
376
|
-
fallbackComponent: i = /* @__PURE__ */
|
|
380
|
+
fallbackComponent: i = /* @__PURE__ */ r(z, {}),
|
|
377
381
|
children: n
|
|
378
|
-
}) => /* @__PURE__ */
|
|
382
|
+
}) => /* @__PURE__ */ r(E, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(U, { keyPrefix: t }) : n }), oe = S(
|
|
379
383
|
({
|
|
380
384
|
title: t,
|
|
381
385
|
subtitle: l,
|
|
382
386
|
tags: i = [],
|
|
383
387
|
items: n = [],
|
|
384
|
-
limitTags:
|
|
385
|
-
limitTagsForMobile:
|
|
386
|
-
limit:
|
|
388
|
+
limitTags: h = 5,
|
|
389
|
+
limitTagsForMobile: y = 5,
|
|
390
|
+
limit: v = 3,
|
|
387
391
|
limitForMobile: b = 2,
|
|
388
|
-
selectedTag:
|
|
389
|
-
onSelectTag:
|
|
392
|
+
selectedTag: $,
|
|
393
|
+
onSelectTag: k = () => {
|
|
390
394
|
},
|
|
391
|
-
onSelectCard:
|
|
395
|
+
onSelectCard: I = () => {
|
|
392
396
|
},
|
|
393
|
-
className:
|
|
397
|
+
className: c,
|
|
394
398
|
isLoadingTags: L = !1,
|
|
395
|
-
isLoadingCards:
|
|
399
|
+
isLoadingCards: C = !1
|
|
396
400
|
}, O) => (W(() => {
|
|
397
|
-
if (!q(
|
|
401
|
+
if (!q(c))
|
|
398
402
|
return;
|
|
399
|
-
const
|
|
400
|
-
const m = document == null ? void 0 : document.querySelector(`.${
|
|
403
|
+
const e = () => {
|
|
404
|
+
const m = document == null ? void 0 : document.querySelector(`.${c} .wrapper__cards`), s = m == null ? void 0 : m.querySelectorAll(".wrapper__card");
|
|
401
405
|
s == null || s.forEach((g) => {
|
|
402
406
|
const G = g.getBoundingClientRect().height, R = Math.ceil((G + 10) / 20);
|
|
403
407
|
g.style.gridRowEnd = `span ${R}`;
|
|
404
408
|
});
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
407
|
-
const g =
|
|
409
|
+
const M = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
|
|
410
|
+
if (M) {
|
|
411
|
+
const g = M.offsetTop + M.offsetHeight;
|
|
408
412
|
m.style.height = `${g}px`;
|
|
409
413
|
}
|
|
410
|
-
}, d = document == null ? void 0 : document.querySelector(`.${
|
|
414
|
+
}, d = document == null ? void 0 : document.querySelector(`.${c} .wrapper__cards`), a = d == null ? void 0 : d.querySelectorAll(".wrapper__image");
|
|
411
415
|
let _ = 0;
|
|
412
|
-
return (a == null ? void 0 : a.length) === 0 ?
|
|
416
|
+
return (a == null ? void 0 : a.length) === 0 ? e() : (a == null || a.forEach((m) => {
|
|
413
417
|
m.complete ? _++ : m.addEventListener("load", () => {
|
|
414
|
-
_++, _ === (a == null ? void 0 : a.length) &&
|
|
418
|
+
_++, _ === (a == null ? void 0 : a.length) && e();
|
|
415
419
|
});
|
|
416
|
-
}), _ === (a == null ? void 0 : a.length) &&
|
|
417
|
-
window.removeEventListener("resize",
|
|
420
|
+
}), _ === (a == null ? void 0 : a.length) && e()), window.addEventListener("resize", e), () => {
|
|
421
|
+
window.removeEventListener("resize", e);
|
|
418
422
|
};
|
|
419
|
-
}, [
|
|
423
|
+
}, [c, n, C]), /* @__PURE__ */ o(
|
|
420
424
|
J,
|
|
421
425
|
{
|
|
422
426
|
ref: O,
|
|
423
|
-
limitTags:
|
|
424
|
-
limitTagsForMobile:
|
|
425
|
-
limitCards:
|
|
427
|
+
limitTags: h,
|
|
428
|
+
limitTagsForMobile: y,
|
|
429
|
+
limitCards: v,
|
|
426
430
|
limitCardsForMobile: b,
|
|
427
|
-
className:
|
|
431
|
+
className: c,
|
|
428
432
|
numberOfTags: i == null ? void 0 : i.length,
|
|
429
433
|
children: [
|
|
430
434
|
/* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
|
|
431
|
-
t && /* @__PURE__ */
|
|
432
|
-
l && /* @__PURE__ */
|
|
435
|
+
t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
|
|
436
|
+
l && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: l })
|
|
433
437
|
] }),
|
|
434
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ r(
|
|
435
439
|
Q,
|
|
436
440
|
{
|
|
437
441
|
isLoading: L,
|
|
438
442
|
keyPrefix: "field-of-interests-masonry-tag",
|
|
439
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e, d) => /* @__PURE__ */ r(
|
|
440
444
|
X,
|
|
441
445
|
{
|
|
442
|
-
icon:
|
|
443
|
-
text:
|
|
444
|
-
isActive: (
|
|
445
|
-
onSelectCard: () =>
|
|
446
|
+
icon: e == null ? void 0 : e.icon,
|
|
447
|
+
text: e == null ? void 0 : e.title,
|
|
448
|
+
isActive: (e == null ? void 0 : e.code) === $,
|
|
449
|
+
onSelectCard: () => k == null ? void 0 : k(e)
|
|
446
450
|
},
|
|
447
451
|
`field-of-interests-masonry-tag__${d + 1}`
|
|
448
452
|
)) }) })
|
|
449
453
|
}
|
|
450
454
|
),
|
|
451
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ r(
|
|
452
456
|
V,
|
|
453
457
|
{
|
|
454
|
-
isLoading:
|
|
458
|
+
isLoading: C,
|
|
455
459
|
keyPrefix: "field-of-interests-masonry-card",
|
|
456
|
-
children: /* @__PURE__ */
|
|
460
|
+
children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: n == null ? void 0 : n.map((e, d) => /* @__PURE__ */ r(
|
|
457
461
|
Z,
|
|
458
462
|
{
|
|
459
|
-
image:
|
|
460
|
-
imageComponent:
|
|
461
|
-
title:
|
|
462
|
-
description:
|
|
463
|
-
onSelectCard: () =>
|
|
464
|
-
className: "wrapper__card"
|
|
463
|
+
image: e == null ? void 0 : e.image,
|
|
464
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
465
|
+
title: e == null ? void 0 : e.title,
|
|
466
|
+
description: e == null ? void 0 : e.description,
|
|
467
|
+
onSelectCard: () => I == null ? void 0 : I(e),
|
|
468
|
+
className: "wrapper__card",
|
|
469
|
+
link: e == null ? void 0 : e.link
|
|
465
470
|
},
|
|
466
471
|
`field-of-interests-with-tags-card__${d + 1}`
|
|
467
472
|
)) })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),p=require("react"),v=require("./utils-RnrgDDZP.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./consts-goSZX3xP.cjs"),y=require("./index-DHV9awrE.cjs"),l=require("./style-BAcV7F53.cjs"),F=c.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: auto;
|
|
4
4
|
border-radius: 999px;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
height: auto;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,S=p.forwardRef(({isActive:t,image:r,imageComponent:s,onSelectCard:n=()=>{}},o)=>i.jsx(F,{ref:o,className:t?"active":"",onClick:n,children:v.isDefined(s)?s:i.jsx("img",{src:r,className:"wrapper__image"})})),b=p.forwardRef(({uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:x,image:u,sellerUuid:m,onSelectCard:a=()=>{},imageComponent:h,negotiableText:_="Negotiable",freeText:d="Free",nameSlug:f},g)=>i.jsx(y.SimpleProductCard,{ref:g,uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:x,image:u,imageComponent:h,sellerUuid:m,onSelectCard:a,negotiableText:_,freeText:d,nameSlug:f})),k=c.styled.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
align-items: center;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
gap: 1rem;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
`,C=
|
|
87
|
+
`,C=c.styled(l.SkeletonRowWrapper)`
|
|
88
88
|
&.skeleton__tags {
|
|
89
89
|
max-width: 50rem;
|
|
90
90
|
}
|
|
@@ -108,4 +108,4 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,I=({keyPrefix:t})=>i.jsxs(C,{className:"skeleton__tags",justifyContent:"center",children:[i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-1`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-2`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-3`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-4`)]}),N=({keyPrefix:t,isLoading:r=!1,fallbackComponent:s=i.jsx(i.Fragment,{}),children:n})=>i.jsx(p.Suspense,{fallbackComponent:s,children:r===!0?i.jsx(I,{keyPrefix:t}):n}),O=({keyPrefix:t})=>i.jsxs(C,{className:"skeleton__cards",justifyContent:"center",children:[i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-1`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-2`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`)]}),W=({keyPrefix:t,isLoading:r=!1,fallbackComponent:s=i.jsx(i.Fragment,{}),children:n})=>i.jsx(p.Suspense,{fallbackComponent:s,children:r===!0?i.jsx(O,{keyPrefix:t}):n}),L=p.forwardRef(({title:t,subtitle:r,avatars:s=[],limitAvatars:n=4,limit:o=6,limitAvatarsForMobile:x=4,limitForMobile:u=2,items:m=[],onSelectAvatar:a=()=>{},onSelectCard:h=()=>{},isLoadingTags:_=!1,isLoadingCards:d=!1},f)=>{const g=e=>{a==null||a(e)},w=e=>{h==null||h(e)};return i.jsxs(k,{ref:f,limitAvatars:n,limitAvatarsForMobile:x,limitCards:o,limitCardsForMobile:u,children:[i.jsxs("div",{className:"wrapper__heading",children:[t&&i.jsx("div",{className:"wrapper__title",children:t}),r&&i.jsx("div",{className:"wrapper__subtitle",children:r})]}),i.jsx(N,{isLoading:_,keyPrefix:"field-of-interests-with-avatars-tag",children:i.jsx("div",{className:"wrapper__avatars",children:s==null?void 0:s.map((e,j)=>i.jsx(S,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g==null?void 0:g(e)},`field-of-interests-with-avatars-card-avatar__${j+1}`))})}),i.jsx(W,{isLoading:d,keyPrefix:"field-of-interests-with-avatars-card",children:i.jsx("div",{className:"wrapper__cards",children:m==null?void 0:m.map((e,j)=>i.jsx(b,{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:()=>w==null?void 0:w(e),nameSlug:e==null?void 0:e.nameSlug},`field-of-interests-with-avatars-card__${j+1}`))})})]})});module.exports=L;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as i, jsxs as f, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, Suspense as y } from "react";
|
|
3
3
|
import { l as W } from "./utils-Dc5zIpaz.js";
|
|
4
4
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { M as b } from "./consts-BuFChS64.js";
|
|
6
|
-
import { S as I } from "./index-
|
|
7
|
-
import { a as O, d as
|
|
6
|
+
import { S as I } from "./index-C8QkdNHi.js";
|
|
7
|
+
import { a as O, d as p, b as g } from "./style-CXMUA6cI.js";
|
|
8
8
|
const j = C.div`
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: auto;
|
|
@@ -31,7 +31,7 @@ const j = C.div`
|
|
|
31
31
|
height: auto;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`, k =
|
|
34
|
+
`, k = c(
|
|
35
35
|
({ isActive: t, image: s, imageComponent: r, onSelectCard: n = () => {
|
|
36
36
|
} }, l) => /* @__PURE__ */ i(
|
|
37
37
|
j,
|
|
@@ -42,40 +42,42 @@ const j = C.div`
|
|
|
42
42
|
children: W(r) ? r : /* @__PURE__ */ i("img", { src: s, className: "wrapper__image" })
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
|
-
), A =
|
|
45
|
+
), A = c(
|
|
46
46
|
({
|
|
47
47
|
uuid: t,
|
|
48
48
|
title: s,
|
|
49
49
|
price: r,
|
|
50
50
|
currency: n,
|
|
51
51
|
isNegotiable: l,
|
|
52
|
-
isFree:
|
|
53
|
-
image:
|
|
52
|
+
isFree: _,
|
|
53
|
+
image: u,
|
|
54
54
|
sellerUuid: m,
|
|
55
55
|
onSelectCard: o = () => {
|
|
56
56
|
},
|
|
57
57
|
imageComponent: a,
|
|
58
58
|
negotiableText: d = "Negotiable",
|
|
59
|
-
freeText:
|
|
60
|
-
|
|
59
|
+
freeText: w = "Free",
|
|
60
|
+
nameSlug: x
|
|
61
|
+
}, h) => /* @__PURE__ */ i(
|
|
61
62
|
I,
|
|
62
63
|
{
|
|
63
|
-
ref:
|
|
64
|
+
ref: h,
|
|
64
65
|
uuid: t,
|
|
65
66
|
title: s,
|
|
66
67
|
price: r,
|
|
67
68
|
currency: n,
|
|
68
69
|
isNegotiable: l,
|
|
69
|
-
isFree:
|
|
70
|
-
image:
|
|
70
|
+
isFree: _,
|
|
71
|
+
image: u,
|
|
71
72
|
imageComponent: a,
|
|
72
73
|
sellerUuid: m,
|
|
73
74
|
onSelectCard: o,
|
|
74
75
|
negotiableText: d,
|
|
75
|
-
freeText:
|
|
76
|
+
freeText: w,
|
|
77
|
+
nameSlug: x
|
|
76
78
|
}
|
|
77
79
|
)
|
|
78
|
-
),
|
|
80
|
+
), S = C.div`
|
|
79
81
|
display: flex;
|
|
80
82
|
flex-direction: column;
|
|
81
83
|
align-items: center;
|
|
@@ -159,9 +161,9 @@ const j = C.div`
|
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
|
-
`,
|
|
164
|
+
`, T = ({ keyPrefix: t }) => /* @__PURE__ */ f(N, { className: "skeleton__tags", justifyContent: "center", children: [
|
|
163
165
|
/* @__PURE__ */ i(
|
|
164
|
-
|
|
166
|
+
p,
|
|
165
167
|
{
|
|
166
168
|
width: "9.875rem",
|
|
167
169
|
height: "9.875rem"
|
|
@@ -169,7 +171,7 @@ const j = C.div`
|
|
|
169
171
|
`${t}-1`
|
|
170
172
|
),
|
|
171
173
|
/* @__PURE__ */ i(
|
|
172
|
-
|
|
174
|
+
p,
|
|
173
175
|
{
|
|
174
176
|
width: "9.875rem",
|
|
175
177
|
height: "9.875rem"
|
|
@@ -177,7 +179,7 @@ const j = C.div`
|
|
|
177
179
|
`${t}-2`
|
|
178
180
|
),
|
|
179
181
|
/* @__PURE__ */ i(
|
|
180
|
-
|
|
182
|
+
p,
|
|
181
183
|
{
|
|
182
184
|
width: "9.875rem",
|
|
183
185
|
height: "9.875rem"
|
|
@@ -185,85 +187,85 @@ const j = C.div`
|
|
|
185
187
|
`${t}-3`
|
|
186
188
|
),
|
|
187
189
|
/* @__PURE__ */ i(
|
|
188
|
-
|
|
190
|
+
p,
|
|
189
191
|
{
|
|
190
192
|
width: "9.875rem",
|
|
191
193
|
height: "9.875rem"
|
|
192
194
|
},
|
|
193
195
|
`${t}-4`
|
|
194
196
|
)
|
|
195
|
-
] }),
|
|
197
|
+
] }), M = ({
|
|
196
198
|
keyPrefix: t,
|
|
197
199
|
isLoading: s = !1,
|
|
198
200
|
fallbackComponent: r = /* @__PURE__ */ i(F, {}),
|
|
199
201
|
children: n
|
|
200
|
-
}) => /* @__PURE__ */ i(y, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(
|
|
201
|
-
/* @__PURE__ */ i(
|
|
202
|
-
/* @__PURE__ */ i(
|
|
203
|
-
/* @__PURE__ */ i(
|
|
204
|
-
/* @__PURE__ */ i(
|
|
202
|
+
}) => /* @__PURE__ */ i(y, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(T, { keyPrefix: t }) : n }), L = ({ keyPrefix: t }) => /* @__PURE__ */ f(N, { className: "skeleton__cards", justifyContent: "center", children: [
|
|
203
|
+
/* @__PURE__ */ i(g, { height: "13.75rem" }, `${t}-1`),
|
|
204
|
+
/* @__PURE__ */ i(g, { height: "13.75rem" }, `${t}-2`),
|
|
205
|
+
/* @__PURE__ */ i(g, { height: "13.75rem" }, `${t}-3`),
|
|
206
|
+
/* @__PURE__ */ i(g, { height: "13.75rem" }, `${t}-3`)
|
|
205
207
|
] }), z = ({
|
|
206
208
|
keyPrefix: t,
|
|
207
209
|
isLoading: s = !1,
|
|
208
210
|
fallbackComponent: r = /* @__PURE__ */ i(F, {}),
|
|
209
211
|
children: n
|
|
210
|
-
}) => /* @__PURE__ */ i(y, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(
|
|
212
|
+
}) => /* @__PURE__ */ i(y, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(L, { keyPrefix: t }) : n }), q = c(
|
|
211
213
|
({
|
|
212
214
|
title: t,
|
|
213
215
|
subtitle: s,
|
|
214
216
|
avatars: r = [],
|
|
215
217
|
limitAvatars: n = 4,
|
|
216
218
|
limit: l = 6,
|
|
217
|
-
limitAvatarsForMobile:
|
|
218
|
-
limitForMobile:
|
|
219
|
+
limitAvatarsForMobile: _ = 4,
|
|
220
|
+
limitForMobile: u = 2,
|
|
219
221
|
items: m = [],
|
|
220
222
|
onSelectAvatar: o = () => {
|
|
221
223
|
},
|
|
222
224
|
onSelectCard: a = () => {
|
|
223
225
|
},
|
|
224
226
|
isLoadingTags: d = !1,
|
|
225
|
-
isLoadingCards:
|
|
226
|
-
},
|
|
227
|
-
const
|
|
227
|
+
isLoadingCards: w = !1
|
|
228
|
+
}, x) => {
|
|
229
|
+
const h = (e) => {
|
|
228
230
|
o == null || o(e);
|
|
229
231
|
}, $ = (e) => {
|
|
230
232
|
a == null || a(e);
|
|
231
233
|
};
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
|
|
234
|
+
return /* @__PURE__ */ f(
|
|
235
|
+
S,
|
|
234
236
|
{
|
|
235
|
-
ref:
|
|
237
|
+
ref: x,
|
|
236
238
|
limitAvatars: n,
|
|
237
|
-
limitAvatarsForMobile:
|
|
239
|
+
limitAvatarsForMobile: _,
|
|
238
240
|
limitCards: l,
|
|
239
|
-
limitCardsForMobile:
|
|
241
|
+
limitCardsForMobile: u,
|
|
240
242
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ f("div", { className: "wrapper__heading", children: [
|
|
242
244
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
243
245
|
s && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: s })
|
|
244
246
|
] }),
|
|
245
247
|
/* @__PURE__ */ i(
|
|
246
|
-
|
|
248
|
+
M,
|
|
247
249
|
{
|
|
248
250
|
isLoading: d,
|
|
249
251
|
keyPrefix: "field-of-interests-with-avatars-tag",
|
|
250
|
-
children: /* @__PURE__ */ i("div", { className: "wrapper__avatars", children: r == null ? void 0 : r.map((e,
|
|
252
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__avatars", children: r == null ? void 0 : r.map((e, v) => /* @__PURE__ */ i(
|
|
251
253
|
k,
|
|
252
254
|
{
|
|
253
255
|
image: e == null ? void 0 : e.image,
|
|
254
256
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
255
|
-
onSelectCard: () =>
|
|
257
|
+
onSelectCard: () => h == null ? void 0 : h(e)
|
|
256
258
|
},
|
|
257
|
-
`field-of-interests-with-avatars-card-avatar__${
|
|
259
|
+
`field-of-interests-with-avatars-card-avatar__${v + 1}`
|
|
258
260
|
)) })
|
|
259
261
|
}
|
|
260
262
|
),
|
|
261
263
|
/* @__PURE__ */ i(
|
|
262
264
|
z,
|
|
263
265
|
{
|
|
264
|
-
isLoading:
|
|
266
|
+
isLoading: w,
|
|
265
267
|
keyPrefix: "field-of-interests-with-avatars-card",
|
|
266
|
-
children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e,
|
|
268
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e, v) => /* @__PURE__ */ i(
|
|
267
269
|
A,
|
|
268
270
|
{
|
|
269
271
|
uuid: e == null ? void 0 : e.uuid,
|
|
@@ -277,9 +279,10 @@ const j = C.div`
|
|
|
277
279
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
278
280
|
negotiableText: e == null ? void 0 : e.negotiableText,
|
|
279
281
|
freeText: e == null ? void 0 : e.freeText,
|
|
280
|
-
onSelectCard: () => $ == null ? void 0 : $(e)
|
|
282
|
+
onSelectCard: () => $ == null ? void 0 : $(e),
|
|
283
|
+
nameSlug: e == null ? void 0 : e.nameSlug
|
|
281
284
|
},
|
|
282
|
-
`field-of-interests-with-avatars-card__${
|
|
285
|
+
`field-of-interests-with-avatars-card__${v + 1}`
|
|
283
286
|
)) })
|
|
284
287
|
}
|
|
285
288
|
)
|