@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.
Files changed (79) hide show
  1. package/dist/BannerSectionCarousel.cjs +3 -3
  2. package/dist/BannerSectionCarousel.js +18 -11
  3. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  4. package/dist/BlogCardsSponsoredSection.js +1 -1
  5. package/dist/BlogListSection.cjs +7 -7
  6. package/dist/BlogListSection.js +157 -207
  7. package/dist/BlogSingleSection.cjs +2 -11
  8. package/dist/BlogSingleSection.js +19 -35
  9. package/dist/BlogsSectionDetailed.cjs +1 -1
  10. package/dist/BlogsSectionDetailed.js +1 -1
  11. package/dist/BlogsSectionLarge.cjs +8 -16
  12. package/dist/BlogsSectionLarge.js +40 -58
  13. package/dist/BlogsSectionSimple.cjs +1 -1
  14. package/dist/BlogsSectionSimple.js +1 -1
  15. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  16. package/dist/BlogsSectionSimpleCentered.js +64 -98
  17. package/dist/BlogsSectionWithFilters.cjs +10 -21
  18. package/dist/BlogsSectionWithFilters.js +106 -154
  19. package/dist/BrandHitsSection.cjs +7 -7
  20. package/dist/BrandHitsSection.js +41 -87
  21. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  22. package/dist/DetailedProductsInfinitiveSection.js +2 -2
  23. package/dist/DetailedProductsSection.cjs +1 -1
  24. package/dist/DetailedProductsSection.js +2 -2
  25. package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
  26. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  27. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  28. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  29. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  30. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  31. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  32. package/dist/GeneralWithTagsCardsSection.js +1 -1
  33. package/dist/GiftCardsSection.cjs +10 -14
  34. package/dist/GiftCardsSection.js +76 -146
  35. package/dist/MasonryGeneralCardsSection.cjs +10 -10
  36. package/dist/MasonryGeneralCardsSection.js +45 -44
  37. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  38. package/dist/OverlayGeneralCardsSection.js +1 -1
  39. package/dist/ProductsWithBannerSection.cjs +13 -13
  40. package/dist/ProductsWithBannerSection.js +87 -168
  41. package/dist/QuattroCardsSection.cjs +1 -1
  42. package/dist/QuattroCardsSection.js +1 -1
  43. package/dist/ReviewsSection.cjs +18 -22
  44. package/dist/ReviewsSection.js +101 -163
  45. package/dist/SalesCampaignsSection.cjs +14 -14
  46. package/dist/SalesCampaignsSection.js +299 -330
  47. package/dist/ShopCardsSection.cjs +6 -19
  48. package/dist/ShopCardsSection.js +54 -100
  49. package/dist/SimpleCategoriesSection.cjs +3 -3
  50. package/dist/SimpleCategoriesSection.js +64 -67
  51. package/dist/SimpleProductsSection.cjs +7 -7
  52. package/dist/SimpleProductsSection.js +65 -138
  53. package/dist/UrgentSaleProductsSection.cjs +1 -1
  54. package/dist/UrgentSaleProductsSection.js +1 -1
  55. package/dist/index-B7fBsitY.js +45 -0
  56. package/dist/index-BMAvJQBG.cjs +9 -0
  57. package/dist/index-BUdvfHpp.cjs +5 -0
  58. package/dist/index-BXT1eY2D.js +753 -0
  59. package/dist/index-C6amCwRZ.js +25 -0
  60. package/dist/index-C8R9lsWG.cjs +1 -0
  61. package/dist/index-CeQvy566.cjs +11 -0
  62. package/dist/index-Cyt4EUZ6.js +20 -0
  63. package/dist/index-D3QZziO_.cjs +368 -0
  64. package/dist/index-VTkAaA-n.js +18 -0
  65. package/dist/style-BFPpppS9.js +73 -0
  66. package/dist/style-CQdEALKR.cjs +59 -0
  67. package/package.json +1 -1
  68. package/dist/index-BGNavrtB.cjs +0 -368
  69. package/dist/index-BHcrzV2G.js +0 -54
  70. package/dist/index-Bj1KWOV4.cjs +0 -11
  71. package/dist/index-BsAddfgC.cjs +0 -1
  72. package/dist/index-Cn4bq6ZX.js +0 -84
  73. package/dist/index-CuRcxKQH.js +0 -42
  74. package/dist/index-DB1J-G6Z.js +0 -38
  75. package/dist/index-DkPva6Gr.cjs +0 -20
  76. package/dist/index-fzBXDy05.cjs +0 -16
  77. package/dist/index-gFZSZLba.js +0 -882
  78. package/dist/style-DvkivBNg.js +0 -74
  79. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),_=require("react"),g=require("./utils-CITgSxXe.cjs"),z=require("./Icon.cjs"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),f=require("./breakpoints-CcVm-gVm.cjs"),L=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-Ito6YFqi.cjs"),M=j.styled.a`
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
- ${g.truncateTextInRows(2)}
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
- ${g.truncateTextInRows(2)}
52
+ ${f.truncateTextInRows(2)}
53
53
  }
54
54
  }
55
55
 
56
- @media ${f.down("S")} {
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
- `,R=j.styled.div`
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
- ${g.truncateText()}
108
+ ${f.truncateText()}
109
109
  }
110
110
 
111
111
  &.active {
@@ -115,7 +115,7 @@
115
115
  }
116
116
  }
117
117
 
118
- @media ${f.down("S")} {
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
- `,E=_.forwardRef(({text:t,isActive:s=!1,icon:i,onSelectCard:o=()=>{}},c)=>e.jsxs(R,{ref:c,className:s?"active":"",onClick:o,children:[e.jsx(z,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),F=_.forwardRef(({image:t,imageComponent:s,title:i,description:o,className:c,onSelectCard:k=()=>{},link:x,LinkComponent:u},b)=>{const m=u||"a",{theme:h}=L.useTheme();return e.jsxs(M,{ref:b,theme:h,className:c,onClick:k,as:m,...u?{to:`/${x}`}:{href:`/${x}`},children:[g.isDefined(s)?s:e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[i&&e.jsx("div",{className:"wrapper__title",children:i}),o&&e.jsx("div",{className:"wrapper__description",children:o})]})]})}),W=j.styled.div`
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 ${f.down("M")} {
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 ${f.down("S")} {
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
- `,P=j.styled(n.SkeletonRowWrapper)`
233
+ `,L=b.styled(v.SkeletonAnimationContainer)`
234
234
  &.skeleton__tags {
235
235
  max-width: 50rem;
236
236
  }
237
237
 
238
- @media ${f.down("S")} {
238
+ @media ${w.down("S")} {
239
239
  &.skeleton__tags {
240
240
  overflow-x: hidden;
241
241
  }
242
242
  }
243
- `,O=({keyPrefix:t})=>e.jsxs(P,{className:"skeleton__tags",children:[e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-1`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-2`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-3`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-4`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-5`)]}),T=({keyPrefix:t,isLoading:s=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:o})=>e.jsx(_.Suspense,{fallbackComponent:i,children:s===!0?e.jsx(O,{keyPrefix:t}):o}),G=_.forwardRef(({title:t,subtitle:s,tags:i=[],items:o=[],limitTags:c=5,limitTagsForMobile:k=5,limit:x=3,limitForMobile:u=2,selectedTag:b,onSelectTag:m=()=>{},onSelectCard:h=()=>{},className:w,isLoadingTags:S=!1,LinkComponent:C},I)=>(_.useLayoutEffect(()=>{if(!g.isDefinedNotEmptyString(w))return;const r=()=>{const d=document==null?void 0:document.querySelector(`.${w} .wrapper__cards`),l=d==null?void 0:d.querySelectorAll(".wrapper__card");l==null||l.forEach(v=>{const q=v.getBoundingClientRect().height,N=Math.ceil((q+10)/20);v.style.gridRowEnd=`span ${N}`});const $=l==null?void 0:l[(l==null?void 0:l.length)-1];if($){const v=$.offsetTop+$.offsetHeight;d.style.height=`${v}px`}},p=document==null?void 0:document.querySelector(`.${w} .wrapper__cards`),a=p==null?void 0:p.querySelectorAll(".wrapper__image");let y=0;return(a==null?void 0:a.length)===0?r():(a==null||a.forEach(d=>{d.complete?y++:d.addEventListener("load",()=>{y++,y===(a==null?void 0:a.length)&&r()})}),y===(a==null?void 0:a.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[w,o]),e.jsxs(W,{ref:I,limitTags:c,limitTagsForMobile:k,limitCards:x,limitCardsForMobile:u,className:w,numberOfTags:i==null?void 0:i.length,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),s&&e.jsx("div",{className:"wrapper__subtitle",children:s})]}),e.jsx(T,{isLoading:S,keyPrefix:"field-of-interests-masonry-tag",children:e.jsx("div",{className:"wrapper__tags__external",children:e.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((r,p)=>e.jsx(E,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===b,onSelectCard:()=>m==null?void 0:m(r)},`field-of-interests-masonry-tag__${p+1}`))})})}),e.jsx("div",{className:"wrapper__cards",children:o==null?void 0:o.map((r,p)=>e.jsx(F,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,title:r==null?void 0:r.title,description:r==null?void 0:r.description,onSelectCard:()=>h==null?void 0:h(r),className:"wrapper__card",link:r==null?void 0:r.link,LinkComponent:C},`field-of-interests-with-tags-card__${p+1}`))})]})));module.exports=G;
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 o, jsx as r, Fragment as O } from "react/jsx-runtime";
2
- import { forwardRef as N, Suspense as R, useLayoutEffect as T } from "react";
3
- import { n as z, t as W, m as q, l as G } from "./utils-MoGhNMmj.js";
4
- import j from "./Icon.js";
5
- import { s as $ } from "./emotion-styled.browser.esm-DfbrHHed.js";
6
- import { d as u } from "./breakpoints-BubDitvo.js";
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 D, b as f, d as _, a as w } from "./style-DvkivBNg.js";
9
- const H = $.a`
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
- ${z(2)}
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
- ${z(2)}
60
+ ${S(2)}
61
61
  }
62
62
  }
63
63
 
64
- @media ${u("S")} {
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
- `, B = $.div`
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
- ${W()}
116
+ ${L()}
117
117
  }
118
118
 
119
119
  &.active {
@@ -123,7 +123,7 @@ const H = $.a`
123
123
  }
124
124
  }
125
125
 
126
- @media ${u("S")} {
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
- `, J = N(
167
- ({ text: t, isActive: l = !1, icon: i, onSelectCard: a = () => {
168
- } }, d) => /* @__PURE__ */ o(
169
- B,
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: l ? "active" : "",
173
- onClick: a,
172
+ className: a ? "active" : "",
173
+ onClick: o,
174
174
  children: [
175
- /* @__PURE__ */ r(j, { icon: i, className: "wrapper__icon" }),
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
- ), K = N(
180
+ ), J = k(
181
181
  ({
182
182
  image: t,
183
- imageComponent: l,
183
+ imageComponent: a,
184
184
  title: i,
185
- description: a,
185
+ description: o,
186
186
  className: d,
187
- onSelectCard: k = () => {
187
+ onSelectCard: v = () => {
188
188
  },
189
- link: x,
190
- LinkComponent: v
191
- }, I) => {
192
- const c = v || "a", { theme: h } = A();
193
- return /* @__PURE__ */ o(
194
- H,
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: I,
197
- theme: h,
196
+ ref: b,
197
+ theme: f,
198
198
  className: d,
199
- onClick: k,
199
+ onClick: v,
200
200
  as: c,
201
- ...v ? { to: `/${x}` } : { href: `/${x}` },
201
+ ...g ? { to: `/${w}` } : { href: `/${w}` },
202
202
  children: [
203
- q(l) ? l : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
204
- /* @__PURE__ */ o("div", { className: "wrapper__content", children: [
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
- a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
206
+ o && /* @__PURE__ */ r("div", { className: "wrapper__description", children: o })
207
207
  ] })
208
208
  ]
209
209
  }
210
210
  );
211
211
  }
212
- ), Q = $.div`
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 ${u("M")} {
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 ${u("S")} {
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
- `, U = $(D)`
287
+ `, Q = y(j)`
288
288
  &.skeleton__tags {
289
289
  max-width: 50rem;
290
290
  }
291
291
 
292
- @media ${u("S")} {
292
+ @media ${_("S")} {
293
293
  &.skeleton__tags {
294
294
  overflow-x: hidden;
295
295
  }
296
296
  }
297
- `, V = ({ keyPrefix: t }) => /* @__PURE__ */ o(U, { className: "skeleton__tags", children: [
298
- /* @__PURE__ */ o(
299
- f,
300
- {
301
- alignItems: "center",
302
- gap: "0.5rem",
303
- children: [
304
- /* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
305
- /* @__PURE__ */ r(w, { height: "1.5rem", width: "8rem" })
306
- ]
307
- },
308
- `${t}-1`
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: l = !1,
365
- fallbackComponent: i = /* @__PURE__ */ r(O, {}),
366
- children: a
367
- }) => /* @__PURE__ */ r(R, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(V, { keyPrefix: t }) : a }), ae = N(
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: l,
316
+ subtitle: a,
371
317
  tags: i = [],
372
- items: a = [],
318
+ items: o = [],
373
319
  limitTags: d = 5,
374
- limitTagsForMobile: k = 5,
375
- limit: x = 3,
376
- limitForMobile: v = 2,
377
- selectedTag: I,
320
+ limitTagsForMobile: v = 5,
321
+ limit: w = 3,
322
+ limitForMobile: g = 2,
323
+ selectedTag: b,
378
324
  onSelectTag: c = () => {
379
325
  },
380
- onSelectCard: h = () => {
326
+ onSelectCard: f = () => {
381
327
  },
382
- className: g,
383
- isLoadingTags: C = !1,
328
+ className: h,
329
+ isLoadingTags: z = !1,
384
330
  // isLoadingCards = false,
385
- LinkComponent: M
386
- }, E) => (T(() => {
387
- if (!G(g))
331
+ LinkComponent: C
332
+ }, N) => (O(() => {
333
+ if (!T(h))
388
334
  return;
389
335
  const e = () => {
390
- const m = document == null ? void 0 : document.querySelector(`.${g} .wrapper__cards`), s = m == null ? void 0 : m.querySelectorAll(".wrapper__card");
391
- s == null || s.forEach((b) => {
392
- const F = b.getBoundingClientRect().height, L = Math.ceil((F + 10) / 20);
393
- b.style.gridRowEnd = `span ${L}`;
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 S = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
396
- if (S) {
397
- const b = S.offsetTop + S.offsetHeight;
398
- m.style.height = `${b}px`;
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
- }, p = document == null ? void 0 : document.querySelector(`.${g} .wrapper__cards`), n = p == null ? void 0 : p.querySelectorAll(".wrapper__image");
401
- let y = 0;
402
- return (n == null ? void 0 : n.length) === 0 ? e() : (n == null || n.forEach((m) => {
403
- m.complete ? y++ : m.addEventListener("load", () => {
404
- y++, y === (n == null ? void 0 : n.length) && e();
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
- }), y === (n == null ? void 0 : n.length) && e()), window.addEventListener("resize", e), () => {
352
+ }), u === (n == null ? void 0 : n.length) && e()), window.addEventListener("resize", e), () => {
407
353
  window.removeEventListener("resize", e);
408
354
  };
409
- }, [g, a]), /* @__PURE__ */ o(
410
- Q,
355
+ }, [h, o]), /* @__PURE__ */ m(
356
+ K,
411
357
  {
412
- ref: E,
358
+ ref: N,
413
359
  limitTags: d,
414
- limitTagsForMobile: k,
415
- limitCards: x,
416
- limitCardsForMobile: v,
417
- className: g,
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__ */ o("div", { className: "wrapper__heading", children: [
366
+ /* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
421
367
  t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
422
- l && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: l })
368
+ a && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: a })
423
369
  ] }),
424
370
  /* @__PURE__ */ r(
425
- X,
371
+ V,
426
372
  {
427
- isLoading: C,
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, p) => /* @__PURE__ */ r(
430
- J,
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) === I,
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__${p + 1}`
383
+ `field-of-interests-masonry-tag__${l + 1}`
438
384
  )) }) })
439
385
  }
440
386
  ),
441
- /* @__PURE__ */ r("div", { className: "wrapper__cards", children: a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
442
- K,
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: () => h == null ? void 0 : h(e),
394
+ onSelectCard: () => f == null ? void 0 : f(e),
449
395
  className: "wrapper__card",
450
396
  link: e == null ? void 0 : e.link,
451
- LinkComponent: M
397
+ LinkComponent: C
452
398
  },
453
- `field-of-interests-with-tags-card__${p + 1}`
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"),p=require("react"),y=require("./utils-CITgSxXe.cjs"),C=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),b=require("./index-BkztbBWe.cjs"),l=require("./style-Ito6YFqi.cjs"),F=C.styled.div`
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 ${d.down("S")} {
22
+ @media ${f.down("S")} {
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: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:u,image:x,sellerUuid:m,onSelectCard:a=()=>{},imageComponent:h,negotiableText:_="Negotiable",freeText:f="Free",nameSlug:w,LinkComponent:c},g)=>i.jsx(b.SimpleProductCard,{ref:g,uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:u,image:x,imageComponent:h,sellerUuid:m,onSelectCard:a,negotiableText:_,freeText:f,nameSlug:w,LinkComponent:c})),N=C.styled.div`
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 ${d.down("M")} {
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 ${d.down("S")} {
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=C.styled(l.SkeletonRowWrapper)`
93
+ `,v=y.styled($.SkeletonAnimationContainer)`
94
94
  &.skeleton__tags {
95
95
  max-width: 50rem;
96
96
  }
97
97
 
98
- @media ${d.down("S")} {
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.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`)]}),q=({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}),I=({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`)]}),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(I,{keyPrefix:t}):n}),A=p.forwardRef(({title:t,subtitle:r,avatars:s=[],limitAvatars:n=4,limit:o=6,limitAvatarsForMobile:u=4,limitForMobile:x=2,items:m=[],onSelectAvatar:a=()=>{},onSelectCard:h=()=>{},isLoadingTags:_=!1,isLoadingCards:f=!1,LinkComponent:w},c)=>{const g=e=>{a==null||a(e)},j=e=>{h==null||h(e)};return i.jsxs(N,{ref:c,limitAvatars:n,limitAvatarsForMobile:u,limitCards:o,limitCardsForMobile:x,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(q,{isLoading:_,keyPrefix:"field-of-interests-with-avatars-tag",children:i.jsx("div",{className:"wrapper__avatars",children:s==null?void 0:s.map((e,$)=>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__${$+1}`))})}),i.jsx(O,{isLoading:f,keyPrefix:"field-of-interests-with-avatars-card",children:i.jsx("div",{className:"wrapper__cards",children:m==null?void 0:m.map((e,$)=>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:w},`field-of-interests-with-avatars-card__${$+1}`))})})]})});module.exports=A;
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;