@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"),l=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),P=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./style-Boz6dk5s.cjs"),u=require("./utils-CITgSxXe.cjs"),L=require("./index-DsINTjQk.cjs"),i=require("./style-Ito6YFqi.cjs"),W=S.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),C=require("./style-Boz6dk5s.cjs"),h=require("./utils-CITgSxXe.cjs"),y=require("./index-DsINTjQk.cjs"),i=require("./style-CQdEALKR.cjs"),R=j.styled.div`
2
2
  width: 100%;
3
3
  height: 22.5rem;
4
4
  min-height: 22.5rem;
@@ -16,7 +16,7 @@
16
16
  object-fit: cover;
17
17
  }
18
18
 
19
- @media ${d.down("S")} {
19
+ @media ${m.down("S")} {
20
20
  height: 100%;
21
21
  min-height: 100%;
22
22
  max-height: 100%;
@@ -31,25 +31,25 @@
31
31
  }
32
32
  }
33
33
  }
34
- `,$=S.styled.div`
34
+ `,v=j.styled.div`
35
35
  display: grid;
36
- grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
36
+ grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
37
37
  gap: 1.25rem;
38
38
 
39
- @media ${d.down("M")} {
39
+ @media ${m.down("M")} {
40
40
  grid-template-columns: repeat(3, minmax(0, 1fr));
41
41
  }
42
42
 
43
- @media ${d.down("S")} {
43
+ @media ${m.down("S")} {
44
44
  grid-template-columns: repeat(2, minmax(0, 1fr));
45
45
  gap: 1rem;
46
46
  }
47
47
 
48
- @media ${d.down("XS")} {
48
+ @media ${m.down("XS")} {
49
49
  grid-template-columns: 1fr;
50
50
  gap: 0.75rem;
51
51
  }
52
- `,C=S.styled.a`
52
+ `,N=j.styled.a`
53
53
  display: flex;
54
54
  flex-direction: column;
55
55
  gap: 0.5rem;
@@ -67,10 +67,10 @@
67
67
  & .card-title {
68
68
  font-size: 0.875rem;
69
69
  font-weight: 600;
70
- ${u.truncateTextInRows(2)}
70
+ ${h.truncateTextInRows(2)}
71
71
  }
72
72
 
73
- @media ${d.down("S")} {
73
+ @media ${m.down("S")} {
74
74
  & img {
75
75
  width: 8.875rem;
76
76
  height: 8.875rem;
@@ -81,11 +81,11 @@
81
81
  object-fit: cover;
82
82
  }
83
83
  }
84
- `,q=l.forwardRef((t,m)=>{const{uuid:s,title:n,image:c,sellerUuid:R,onSelectCard:j=()=>{},imageComponent:g,metadata:o,nameSlug:a,LinkComponent:h}=t,p=h||"a",k=l.useRef(null);return e.jsxs(C,{ref:k,className:"product-card",name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,onClick:r=>j(r,m),as:p,...h?{to:`/product/${u.isDefinedNotEmptyString(a)?`${a}-`:""}${s}`}:{href:`/product/${u.isDefinedNotEmptyString(a)?`${a}-`:""}${s}`},children:[u.isDefined(g)?g:e.jsx(L.ProductImageWrapper,{src:c}),e.jsx("div",{className:"card-title",children:n})]})}),y=S.styled(i.SkeletonColumnWrapper)`
85
- @media ${d.down("S")} {
84
+ `,q=c.forwardRef((n,o)=>{const{uuid:a,title:r,image:l,sellerUuid:k,onSelectCard:S=()=>{},imageComponent:g,metadata:s,nameSlug:d,LinkComponent:u}=n,p=u||"a",f=c.useRef(null);return t.jsxs(N,{ref:f,className:"product-card",name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:e=>S(e,o),as:p,...u?{to:`/product/${h.isDefinedNotEmptyString(d)?`${d}-`:""}${a}`}:{href:`/product/${h.isDefinedNotEmptyString(d)?`${d}-`:""}${a}`},children:[h.isDefined(g)?g:t.jsx(y.ProductImageWrapper,{src:l}),t.jsx("div",{className:"card-title",children:r})]})}),P=j.styled(i.SkeletonAnimationColumnContainer)`
85
+ @media ${m.down("S")} {
86
86
  & .skeleton__banner {
87
87
  height: 100%;
88
88
  aspect-ratio: 1 / 1;
89
89
  }
90
90
  }
91
- `,v=({keyPrefix:t})=>e.jsxs(y,{children:[e.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),e.jsxs(i.SkeletonRowWrapper,{children:[e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),N=({keyPrefix:t,isLoading:m=!1,fallbackComponent:s=e.jsx(e.Fragment,{}),children:n})=>e.jsx(l.Suspense,{fallbackComponent:s,children:m===!0?e.jsx(v,{keyPrefix:t}):n}),w=l.memo(q),U=l.forwardRef((t,m)=>{const{icon:s,items:n,limit:c=4,imageUrl:R,title:j="Season inspiration",isLoading:g=!1,getImage:o=()=>{},componentName:a,LinkComponent:h}=t,p=P.useDetectMobile(),k=l.useMemo(()=>e.jsx(e.Fragment,{children:p===!0?n==null?void 0:n.map((r,b)=>e.jsx(w,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:a,accessor:r==null?void 0:r.accessor},LinkComponent:h},b)):n==null?void 0:n.slice(0,c).map((r,b)=>e.jsx(w,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:a,accessor:r==null?void 0:r.accessor},LinkComponent:h},b))}),[n,p,c]);return e.jsxs(f.RegulatTitleSectionWrapper,{ref:m,children:[e.jsx("div",{className:"regular-title",children:e.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(s)&&e.jsx("i",{className:s}),e.jsx("span",{children:j})]})}),e.jsxs(N,{isLoading:g,keyPrefix:"products-with-banner-skeleton",children:[e.jsx(W,{className:"products-banner",children:e.jsx("img",{src:R})}),e.jsx($,{limit:c,children:k})]})]})});module.exports=U;
91
+ `,U=({keyPrefix:n})=>t.jsxs(P,{children:[t.jsx(i.SkeletonRect,{width:"100%",height:"10rem",className:"skeleton__banner"}),t.jsx(i.SkeletonContainer,{children:[1,2,3,4].map(o=>t.jsxs(i.SkeletonColumnContainer,{gap:"0.5rem",children:[t.jsx(i.SkeletonSquare,{size:"6rem"}),t.jsx(i.SkeletonRect,{width:"100%",height:"1rem"}),t.jsxs(i.SkeletonContainer,{gap:"0.5rem",children:[t.jsx(i.SkeletonRect,{width:"100%",height:"1.5rem"}),t.jsx(i.SkeletonRect,{width:"100%",height:"1.5rem"})]}),t.jsx(i.SkeletonRect,{width:"100%",height:"1.5rem"})]},`${n}-${o}`))})]}),W=({keyPrefix:n,isLoading:o=!1,fallbackComponent:a=t.jsx(t.Fragment,{}),children:r})=>t.jsx(c.Suspense,{fallbackComponent:a,children:o===!0?t.jsx(U,{keyPrefix:n}):r}),b=c.memo(q),D=c.forwardRef((n,o)=>{const{icon:a,items:r,limit:l=4,imageUrl:k,title:S="Season inspiration",isLoading:g=!1,getImage:s=()=>{},componentName:d,LinkComponent:u}=n,p=$.useDetectMobile(),f=c.useMemo(()=>t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,w)=>t.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:s(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor},LinkComponent:u},w)):r==null?void 0:r.slice(0,l).map((e,w)=>t.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:s(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor},LinkComponent:u},w))}),[r,p,l]);return t.jsxs(C.RegulatTitleSectionWrapper,{ref:o,children:[t.jsx("div",{className:"regular-title",children:t.jsxs("div",{className:"regular-title-text",children:[h.isDefinedNotEmptyString(a)&&t.jsx("i",{className:a}),t.jsx("span",{children:S})]})}),t.jsxs(W,{isLoading:g,keyPrefix:"products-with-banner-skeleton",children:[t.jsx(R,{className:"products-banner",children:t.jsx("img",{src:k})}),t.jsx(v,{limit:l,children:f})]})]})});module.exports=D;
@@ -1,13 +1,13 @@
1
- import { jsxs as t, jsx as r, Fragment as W } from "react/jsx-runtime";
2
- import { forwardRef as N, useRef as P, Suspense as U, memo as G, useMemo as j } from "react";
3
- import { s as R } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { d as h } from "./breakpoints-BubDitvo.js";
5
- import { u as M } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { R as y } from "./style-D54KOzZj.js";
7
- import { n as B, m as L, l as C } from "./utils-MoGhNMmj.js";
8
- import { P as _ } from "./index-DEypPQRI.js";
9
- import { b as s, a as i, S as g, c as f } from "./style-DvkivBNg.js";
10
- const z = R.div`
1
+ import { jsxs as s, jsx as r, Fragment as v } from "react/jsx-runtime";
2
+ import { forwardRef as P, useRef as N, Suspense as U, memo as W, useMemo as y } from "react";
3
+ import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
+ import { d } from "./breakpoints-BubDitvo.js";
5
+ import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
6
+ import { R as j } from "./style-D54KOzZj.js";
7
+ import { n as M, m as z, l as b } from "./utils-MoGhNMmj.js";
8
+ import { P as B } from "./index-DEypPQRI.js";
9
+ import { b as _, a as h, c as C, e as D, d as I } from "./style-BFPpppS9.js";
10
+ const L = g.div`
11
11
  width: 100%;
12
12
  height: 22.5rem;
13
13
  min-height: 22.5rem;
@@ -25,7 +25,7 @@ const z = R.div`
25
25
  object-fit: cover;
26
26
  }
27
27
 
28
- @media ${h("S")} {
28
+ @media ${d("S")} {
29
29
  height: 100%;
30
30
  min-height: 100%;
31
31
  max-height: 100%;
@@ -40,25 +40,25 @@ const z = R.div`
40
40
  }
41
41
  }
42
42
  }
43
- `, D = R.div`
43
+ `, T = g.div`
44
44
  display: grid;
45
- grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
45
+ grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
46
46
  gap: 1.25rem;
47
47
 
48
- @media ${h("M")} {
48
+ @media ${d("M")} {
49
49
  grid-template-columns: repeat(3, minmax(0, 1fr));
50
50
  }
51
51
 
52
- @media ${h("S")} {
52
+ @media ${d("S")} {
53
53
  grid-template-columns: repeat(2, minmax(0, 1fr));
54
54
  gap: 1rem;
55
55
  }
56
56
 
57
- @media ${h("XS")} {
57
+ @media ${d("XS")} {
58
58
  grid-template-columns: 1fr;
59
59
  gap: 0.75rem;
60
60
  }
61
- `, I = R.a`
61
+ `, q = g.a`
62
62
  display: flex;
63
63
  flex-direction: column;
64
64
  gap: 0.5rem;
@@ -76,10 +76,10 @@ const z = R.div`
76
76
  & .card-title {
77
77
  font-size: 0.875rem;
78
78
  font-weight: 600;
79
- ${B(2)}
79
+ ${M(2)}
80
80
  }
81
81
 
82
- @media ${h("S")} {
82
+ @media ${d("S")} {
83
83
  & img {
84
84
  width: 8.875rem;
85
85
  height: 8.875rem;
@@ -90,198 +90,117 @@ const z = R.div`
90
90
  object-fit: cover;
91
91
  }
92
92
  }
93
- `, T = N((a, l) => {
93
+ `, A = P((t, n) => {
94
94
  const {
95
95
  uuid: o,
96
- title: m,
96
+ title: i,
97
97
  image: c,
98
- sellerUuid: v,
99
- onSelectCard: S = () => {
98
+ sellerUuid: $,
99
+ onSelectCard: f = () => {
100
100
  },
101
- imageComponent: p,
102
- metadata: d,
103
- nameSlug: n,
104
- LinkComponent: u
105
- } = a, b = u || "a", w = P(null);
106
- return /* @__PURE__ */ t(
107
- I,
101
+ imageComponent: u,
102
+ metadata: a,
103
+ nameSlug: m,
104
+ LinkComponent: l
105
+ } = t, p = l || "a", S = N(null);
106
+ return /* @__PURE__ */ s(
107
+ q,
108
108
  {
109
- ref: w,
109
+ ref: S,
110
110
  className: "product-card",
111
- name: d == null ? void 0 : d.name,
112
- "data-accessor": d == null ? void 0 : d.accessor,
113
- onClick: (e) => S(e, l),
114
- as: b,
115
- ...u ? {
116
- to: `/product/${C(n) ? `${n}-` : ""}${o}`
111
+ name: a == null ? void 0 : a.name,
112
+ "data-accessor": a == null ? void 0 : a.accessor,
113
+ onClick: (e) => f(e, n),
114
+ as: p,
115
+ ...l ? {
116
+ to: `/product/${b(m) ? `${m}-` : ""}${o}`
117
117
  } : {
118
- href: `/product/${C(n) ? `${n}-` : ""}${o}`
118
+ href: `/product/${b(m) ? `${m}-` : ""}${o}`
119
119
  },
120
120
  children: [
121
- L(p) ? p : /* @__PURE__ */ r(_, { src: c }),
122
- /* @__PURE__ */ r("div", { className: "card-title", children: m })
121
+ z(u) ? u : /* @__PURE__ */ r(B, { src: c }),
122
+ /* @__PURE__ */ r("div", { className: "card-title", children: i })
123
123
  ]
124
124
  }
125
125
  );
126
- }), q = R(s)`
127
- @media ${h("S")} {
126
+ }), E = g(_)`
127
+ @media ${d("S")} {
128
128
  & .skeleton__banner {
129
129
  height: 100%;
130
130
  aspect-ratio: 1 / 1;
131
131
  }
132
132
  }
133
- `, E = ({ keyPrefix: a }) => /* @__PURE__ */ t(q, { children: [
134
- /* @__PURE__ */ r(i, { height: "22.5rem", className: "skeleton__banner" }),
135
- /* @__PURE__ */ t(g, { children: [
136
- /* @__PURE__ */ t(s, { gap: "0.5rem", children: [
137
- /* @__PURE__ */ r(
138
- f,
139
- {
140
- height: "100%",
141
- width: "100%",
142
- borderRadius: "0.75rem"
143
- }
144
- ),
145
- /* @__PURE__ */ r(s, { height: "1rem", children: /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }) }),
146
- /* @__PURE__ */ t(g, { gap: "0.5rem", children: [
147
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
148
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
149
- ] }),
150
- /* @__PURE__ */ r(s, { height: "2rem", children: /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" }) })
151
- ] }, `${a}-1`),
152
- /* @__PURE__ */ t(
153
- s,
154
- {
155
- gap: "0.5rem",
156
- noGradient: !0,
157
- children: [
158
- /* @__PURE__ */ r(
159
- f,
160
- {
161
- height: "100%",
162
- width: "100%",
163
- borderRadius: "0.75rem"
164
- }
165
- ),
166
- /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
167
- /* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
168
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
169
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
170
- ] }),
171
- /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
172
- ]
173
- },
174
- `${a}-2`
175
- ),
176
- /* @__PURE__ */ t(
177
- s,
178
- {
179
- gap: "0.5rem",
180
- noGradient: !0,
181
- children: [
182
- /* @__PURE__ */ r(
183
- f,
184
- {
185
- height: "100%",
186
- width: "100%",
187
- borderRadius: "0.75rem"
188
- }
189
- ),
190
- /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
191
- /* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
192
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
193
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
194
- ] }),
195
- /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
196
- ]
197
- },
198
- `${a}-3`
199
- ),
200
- /* @__PURE__ */ t(
201
- s,
202
- {
203
- gap: "0.5rem",
204
- noGradient: !0,
205
- children: [
206
- /* @__PURE__ */ r(
207
- f,
208
- {
209
- height: "100%",
210
- width: "100%",
211
- borderRadius: "0.75rem"
212
- }
213
- ),
214
- /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
215
- /* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
216
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
217
- /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
218
- ] }),
219
- /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
220
- ]
221
- },
222
- `${a}-4`
223
- )
224
- ] })
225
- ] }), F = ({
226
- keyPrefix: a,
227
- isLoading: l = !1,
228
- fallbackComponent: o = /* @__PURE__ */ r(W, {}),
229
- children: m
230
- }) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: l === !0 ? /* @__PURE__ */ r(E, { keyPrefix: a }) : m }), k = G(T), Z = N((a, l) => {
133
+ `, F = ({ keyPrefix: t }) => /* @__PURE__ */ s(E, { children: [
134
+ /* @__PURE__ */ r(h, { width: "100%", height: "10rem", className: "skeleton__banner" }),
135
+ /* @__PURE__ */ r(C, { children: [1, 2, 3, 4].map((n) => /* @__PURE__ */ s(D, { gap: "0.5rem", children: [
136
+ /* @__PURE__ */ r(I, { size: "6rem" }),
137
+ /* @__PURE__ */ r(h, { width: "100%", height: "1rem" }),
138
+ /* @__PURE__ */ s(C, { gap: "0.5rem", children: [
139
+ /* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" }),
140
+ /* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" })
141
+ ] }),
142
+ /* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" })
143
+ ] }, `${t}-${n}`)) })
144
+ ] }), G = ({
145
+ keyPrefix: t,
146
+ isLoading: n = !1,
147
+ fallbackComponent: o = /* @__PURE__ */ r(v, {}),
148
+ children: i
149
+ }) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: n === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : i }), k = W(A), x = P((t, n) => {
231
150
  const {
232
151
  icon: o,
233
- items: m,
152
+ items: i,
234
153
  limit: c = 4,
235
- imageUrl: v,
236
- title: S = "Season inspiration",
237
- isLoading: p = !1,
238
- getImage: d = () => {
154
+ imageUrl: $,
155
+ title: f = "Season inspiration",
156
+ isLoading: u = !1,
157
+ getImage: a = () => {
239
158
  },
240
- componentName: n,
241
- LinkComponent: u
242
- } = a, b = M(), w = j(() => /* @__PURE__ */ r(W, { children: b === !0 ? m == null ? void 0 : m.map((e, $) => /* @__PURE__ */ r(
159
+ componentName: m,
160
+ LinkComponent: l
161
+ } = t, p = R(), S = y(() => /* @__PURE__ */ r(v, { children: p === !0 ? i == null ? void 0 : i.map((e, w) => /* @__PURE__ */ r(
243
162
  k,
244
163
  {
245
164
  title: e == null ? void 0 : e.name,
246
165
  sellerUuid: e == null ? void 0 : e.sellerUuid,
247
166
  uuid: e == null ? void 0 : e.uuid,
248
167
  nameSlug: e == null ? void 0 : e.nameSlug,
249
- image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
250
- metadata: { name: n, accessor: e == null ? void 0 : e.accessor },
251
- LinkComponent: u
168
+ image: a(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
169
+ metadata: { name: m, accessor: e == null ? void 0 : e.accessor },
170
+ LinkComponent: l
252
171
  },
253
- $
254
- )) : m == null ? void 0 : m.slice(0, c).map((e, $) => /* @__PURE__ */ r(
172
+ w
173
+ )) : i == null ? void 0 : i.slice(0, c).map((e, w) => /* @__PURE__ */ r(
255
174
  k,
256
175
  {
257
176
  title: e == null ? void 0 : e.name,
258
177
  sellerUuid: e == null ? void 0 : e.sellerUuid,
259
178
  uuid: e == null ? void 0 : e.uuid,
260
179
  nameSlug: e == null ? void 0 : e.nameSlug,
261
- image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
262
- metadata: { name: n, accessor: e == null ? void 0 : e.accessor },
263
- LinkComponent: u
180
+ image: a(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
181
+ metadata: { name: m, accessor: e == null ? void 0 : e.accessor },
182
+ LinkComponent: l
264
183
  },
265
- $
266
- )) }), [m, b, c]);
267
- return /* @__PURE__ */ t(y, { ref: l, children: [
268
- /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
269
- C(o) && /* @__PURE__ */ r("i", { className: o }),
270
- /* @__PURE__ */ r("span", { children: S })
184
+ w
185
+ )) }), [i, p, c]);
186
+ return /* @__PURE__ */ s(j, { ref: n, children: [
187
+ /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ s("div", { className: "regular-title-text", children: [
188
+ b(o) && /* @__PURE__ */ r("i", { className: o }),
189
+ /* @__PURE__ */ r("span", { children: f })
271
190
  ] }) }),
272
- /* @__PURE__ */ t(
273
- F,
191
+ /* @__PURE__ */ s(
192
+ G,
274
193
  {
275
- isLoading: p,
194
+ isLoading: u,
276
195
  keyPrefix: "products-with-banner-skeleton",
277
196
  children: [
278
- /* @__PURE__ */ r(z, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: v }) }),
279
- /* @__PURE__ */ r(D, { limit: c, children: w })
197
+ /* @__PURE__ */ r(L, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: $ }) }),
198
+ /* @__PURE__ */ r(T, { limit: c, children: S })
280
199
  ]
281
200
  }
282
201
  )
283
202
  ] });
284
203
  });
285
204
  export {
286
- Z as default
205
+ x as default
287
206
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-CITgSxXe.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-DkPva6Gr.cjs"),b=g.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-CITgSxXe.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-BMAvJQBG.cjs"),b=g.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -5,7 +5,7 @@ import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
5
5
  import { d as m } from "./breakpoints-BubDitvo.js";
6
6
  import { u as y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  import { q as v } from "./styled-components.browser.esm-Cfeh8eHg.js";
8
- import { S as q } from "./index-CuRcxKQH.js";
8
+ import { S as q } from "./index-C6amCwRZ.js";
9
9
  const k = g.div`
10
10
  position: absolute;
11
11
  top: 0;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),g=require("react"),l=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),S=require("./useDetectMobile-DYV6V1yw.cjs"),b=require("./utils-CITgSxXe.cjs"),k=require("./ThemeProvider.cjs"),v=require("./index-DsINTjQk.cjs"),i=require("./style-Ito6YFqi.cjs"),R=l.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("react"),o=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./utils-CITgSxXe.cjs"),y=require("./ThemeProvider.cjs"),S=require("./index-DsINTjQk.cjs"),m=require("./style-CQdEALKR.cjs"),k=o.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  color: var(--darkest-950);
@@ -8,9 +8,9 @@
8
8
  font-weight: 600;
9
9
  font-size: 1.5rem;
10
10
  }
11
- `,y=l.styled.div`
11
+ `,R=o.styled.div`
12
12
  display: grid;
13
- grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
13
+ grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
15
15
 
16
16
  @media ${w.down("M")} {
@@ -24,12 +24,12 @@
24
24
  @media ${w.down("XS")} {
25
25
  grid-template-columns: repeat(1, 1fr);
26
26
  }
27
- `,$=l.styled.a`
27
+ `,$=o.styled.a`
28
28
  padding-top: 5rem;
29
29
  overflow: hidden;
30
30
  text-decoration: none;
31
31
  color: var(--gray-950);
32
- `,C=l.styled.div`
32
+ `,C=o.styled.div`
33
33
  position: relative;
34
34
  cursor: pointer;
35
35
  display: flex;
@@ -61,11 +61,11 @@
61
61
  font-size: 1.375rem;
62
62
  font-weight: 600;
63
63
  color: var(--gray-950, #14161a);
64
- ${b.truncateText()}
64
+ ${f.truncateText()}
65
65
  }
66
66
 
67
67
  & .cont-text {
68
- ${b.truncateTextInRows(2)}
68
+ ${f.truncateTextInRows(2)}
69
69
  }
70
70
  }
71
71
 
@@ -85,9 +85,9 @@
85
85
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
86
86
  0px 4px 6px -2px rgba(0, 0, 0, 0.05);
87
87
  }
88
- `,j=(t,o)=>b.getComponentPropValue(t.theme,"StarRating",t.color,t.disabled===!0?"disabled":"enabled",o),P=l.styled.div`
89
- font-size: ${t=>j(t,"fontSize")};
90
- line-height: ${t=>j(t,"lineHeight")};
88
+ `,b=(r,n)=>f.getComponentPropValue(r.theme,"StarRating",r.color,r.disabled===!0?"disabled":"enabled",n),N=o.styled.div`
89
+ font-size: ${r=>b(r,"fontSize")};
90
+ line-height: ${r=>b(r,"lineHeight")};
91
91
  line-height: 1.5rem;
92
92
  width: fit-content;
93
93
  display: flex;
@@ -104,33 +104,29 @@
104
104
  font-weight: 400;
105
105
  font-size: 0.75rem;
106
106
  line-height: 1.5rem;
107
- color: ${t=>t.color};
107
+ color: ${r=>r.color};
108
108
  }
109
- `,L=l.styled.span`
109
+ `,z=o.styled.span`
110
110
  position: absolute;
111
111
  z-index: 1;
112
112
  display: block;
113
113
  top: 0;
114
114
  left: 0;
115
115
  overflow: hidden;
116
- width: ${t=>t.width}%;
116
+ width: ${r=>r.width}%;
117
117
 
118
- color: ${t=>b.getColorRgbaValue(t.theme,"StarRating",t.color,t.disabled===!0?"disabled":"enabled","filledColor")};
119
- `,N=l.styled.span`
118
+ color: ${r=>f.getColorRgbaValue(r.theme,"StarRating",r.color,r.disabled===!0?"disabled":"enabled","filledColor")};
119
+ `,q=o.styled.span`
120
120
  padding: 0;
121
121
  display: block;
122
122
  z-index: 0;
123
- color: ${t=>t.color};
124
- `,q=g.forwardRef((t,o)=>{const{rating:a=0,reviewCount:n=null,disabled:s=!1,tabIndex:d=0,className:p="",style:h={},color:c="primary",size:u="large"}=t,{theme:r}=k.useTheme(),m={theme:r,color:c,size:u,style:h,disabled:s},x=a/5*100;return e.jsxs(P,{ref:o,tabIndex:d,...m,className:`star-rating ${p}`,children:[e.jsxs("div",{className:"rating",children:[e.jsx(L,{className:"filled-stars",...m,width:x,children:"★★★★★"}),e.jsx(N,{...m,children:"★★★★★"})]}),!isNaN(n)&&Number.isFinite(n)&&e.jsx("div",{className:"review-count",children:`(${n.toLocaleString()})`})]})}),z=g.forwardRef((t,o)=>{const{image:a,text:n,title:s,link:d,rating:p,onSelectCard:h=()=>{},LinkComponent:c}=t,u=c||"a";return e.jsx($,{ref:o,className:"review-card",onClick:h,as:u,...c?{to:`/${d}`}:{href:`/${d}`},children:e.jsxs(C,{children:[e.jsx(v.ProductImageWrapper,{src:a}),e.jsxs("div",{className:"cont",children:[e.jsx("span",{className:"cont-title",children:s}),e.jsx("div",{className:"cont-text",children:n})]}),e.jsx(q,{color:"warning",rating:p})]})})}),M=l.styled(i.SkeletonRowWrapper)`
123
+ color: ${r=>r.color};
124
+ `,M=p.forwardRef((r,n)=>{const{rating:s=0,reviewCount:i=null,disabled:a=!1,tabIndex:l=0,className:g="",style:h={},color:d="primary",size:u="large"}=r,{theme:e}=y.useTheme(),c={theme:e,color:d,size:u,style:h,disabled:a},j=s/5*100;return t.jsxs(N,{ref:n,tabIndex:l,...c,className:`star-rating ${g}`,children:[t.jsxs("div",{className:"rating",children:[t.jsx(z,{className:"filled-stars",...c,width:j,children:"★★★★★"}),t.jsx(q,{...c,children:"★★★★★"})]}),!isNaN(i)&&Number.isFinite(i)&&t.jsx("div",{className:"review-count",children:`(${i.toLocaleString()})`})]})}),P=p.forwardRef((r,n)=>{const{image:s,text:i,title:a,link:l,rating:g,onSelectCard:h=()=>{},LinkComponent:d}=r,u=d||"a";return t.jsx($,{ref:n,className:"review-card",onClick:h,as:u,...d?{to:`/${l}`}:{href:`/${l}`},children:t.jsxs(C,{children:[t.jsx(S.ProductImageWrapper,{src:s}),t.jsxs("div",{className:"cont",children:[t.jsx("span",{className:"cont-title",children:a}),t.jsx("div",{className:"cont-text",children:i})]}),t.jsx(M,{color:"warning",rating:g})]})})}),F=o.styled(m.SkeletonAnimationContainer)`
125
125
  @media ${w.down("S")} {
126
126
  flex-direction: column;
127
127
 
128
128
  & > div {
129
129
  flex-direction: column;
130
-
131
- & > div {
132
- ${i.skeletonGradientBackground}
133
- }
134
130
  }
135
131
  }
136
- `,W=({keyPrefix:t})=>e.jsxs(M,{children:[e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-3`)]}),F=({keyPrefix:t,isLoading:o=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:n})=>e.jsx(g.Suspense,{fallbackComponent:a,children:o===!0?e.jsx(W,{keyPrefix:t}):n}),f=g.memo(z),G=g.forwardRef((t,o)=>{const{title:a="Electronics reviews",items:n,limit:s=3,onSelectCard:d=()=>{},isLoading:p=!1,LinkComponent:h}=t,c=S.useDetectMobile(),u=g.useMemo(()=>e.jsx(e.Fragment,{children:c===!0?n==null?void 0:n.map((r,m)=>e.jsx(f,{text:r==null?void 0:r.text,title:r==null?void 0:r.title,image:r==null?void 0:r.image,link:r==null?void 0:r.link,rating:r==null?void 0:r.ratingArithmeticMean,onSelectCard:()=>d(r),LinkComponent:h},m)):n==null?void 0:n.slice(0,s).map((r,m)=>e.jsx(f,{text:r==null?void 0:r.text,title:r==null?void 0:r.title,image:r==null?void 0:r.image,link:r==null?void 0:r.link,rating:r==null?void 0:r.ratingArithmeticMean,onSelectCard:()=>d(r),LinkComponent:h},m))}),[n,c,s]);return e.jsxs(R,{ref:o,children:[e.jsx("div",{className:"container-title",children:a}),e.jsx(F,{isLoading:p,keyPrefix:"reviews-skeleton",children:e.jsx(y,{limit:s,children:u})})]})});module.exports=G;
132
+ `,L=({keyPrefix:r})=>t.jsx(F,{children:[1,2,3].map(n=>t.jsxs(m.SkeletonColumnContainer,{children:[t.jsx(m.SkeletonSquare,{size:"6.25rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"2rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"1rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"1rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${r}-${n}`))}),T=({keyPrefix:r,isLoading:n=!1,fallbackComponent:s=t.jsx(t.Fragment,{}),children:i})=>t.jsx(p.Suspense,{fallbackComponent:s,children:n===!0?t.jsx(L,{keyPrefix:r}):i}),v=p.memo(P),W=p.forwardRef((r,n)=>{const{title:s="Electronics reviews",items:i,limit:a=3,onSelectCard:l=()=>{},isLoading:g=!1,LinkComponent:h}=r,d=x.useDetectMobile(),u=p.useMemo(()=>t.jsx(t.Fragment,{children:d===!0?i==null?void 0:i.map((e,c)=>t.jsx(v,{text:e==null?void 0:e.text,title:e==null?void 0:e.title,image:e==null?void 0:e.image,link:e==null?void 0:e.link,rating:e==null?void 0:e.ratingArithmeticMean,onSelectCard:()=>l(e),LinkComponent:h},c)):i==null?void 0:i.slice(0,a).map((e,c)=>t.jsx(v,{text:e==null?void 0:e.text,title:e==null?void 0:e.title,image:e==null?void 0:e.image,link:e==null?void 0:e.link,rating:e==null?void 0:e.ratingArithmeticMean,onSelectCard:()=>l(e),LinkComponent:h},c))}),[i,d,a]);return t.jsxs(k,{ref:n,children:[t.jsx("div",{className:"container-title",children:s}),t.jsx(T,{isLoading:g,keyPrefix:"reviews-skeleton",children:t.jsx(R,{limit:a,children:u})})]})});module.exports=W;