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