@lanaco/lnc-react-ui 4.0.170 → 4.0.171

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 (173) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/AccordionSummary.js +1 -1
  3. package/dist/ActionsToolbar.js +1 -1
  4. package/dist/Alert.js +1 -1
  5. package/dist/Avatar.js +1 -1
  6. package/dist/Badge.js +1 -1
  7. package/dist/BannerSectionCarousel.cjs +9 -48
  8. package/dist/BannerSectionCarousel.js +208 -249
  9. package/dist/BannerSectionSimple.js +1 -1
  10. package/dist/BannerSectionWithList.js +1 -1
  11. package/dist/BlogCardsSponsoredSection.cjs +8 -8
  12. package/dist/BlogCardsSponsoredSection.js +67 -68
  13. package/dist/BlogCategoryCardsSection.cjs +1 -1
  14. package/dist/BlogCategoryCardsSection.js +22 -30
  15. package/dist/BlogExploreSection.js +9 -9
  16. package/dist/BlogListSection.cjs +11 -5
  17. package/dist/BlogListSection.js +187 -123
  18. package/dist/BlogProductCardsSection.cjs +1 -1
  19. package/dist/BlogProductCardsSection.js +28 -37
  20. package/dist/BlogShopCardsSection.cjs +1 -1
  21. package/dist/BlogShopCardsSection.js +40 -67
  22. package/dist/BlogSingleSection.cjs +16 -1
  23. package/dist/BlogSingleSection.js +47 -45
  24. package/dist/BlogsSectionDetailed.cjs +8 -27
  25. package/dist/BlogsSectionDetailed.js +111 -159
  26. package/dist/BlogsSectionLarge.cjs +19 -4
  27. package/dist/BlogsSectionLarge.js +73 -37
  28. package/dist/BlogsSectionSimple.cjs +9 -9
  29. package/dist/BlogsSectionSimple.js +81 -107
  30. package/dist/BlogsSectionSimpleCentered.cjs +25 -23
  31. package/dist/BlogsSectionSimpleCentered.js +103 -96
  32. package/dist/BlogsSectionWithFilters.cjs +31 -29
  33. package/dist/BlogsSectionWithFilters.js +173 -134
  34. package/dist/BrandHitsSection.cjs +10 -14
  35. package/dist/BrandHitsSection.js +93 -45
  36. package/dist/Breadcrumbs.js +1 -1
  37. package/dist/Button.js +1 -1
  38. package/dist/ButtonGroup.js +1 -1
  39. package/dist/CalorieCalculatorSection.js +1 -1
  40. package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
  41. package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
  42. package/dist/CheckBoxInput.js +1 -1
  43. package/dist/Chip.js +1 -1
  44. package/dist/ColorInput.js +1 -1
  45. package/dist/ConfirmationForm.js +1 -1
  46. package/dist/CustomLoanMapSection.js +1 -1
  47. package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
  48. package/dist/DateInput.js +1 -1
  49. package/dist/DecimalInput.js +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  52. package/dist/DetailedProductsInfinitiveSection.js +35 -36
  53. package/dist/DetailedProductsSection.cjs +4 -4
  54. package/dist/DetailedProductsSection.js +62 -63
  55. package/dist/DetailsView.js +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.js +1 -1
  58. package/dist/DragDropFiles.js +1 -1
  59. package/dist/Drawer.js +1 -1
  60. package/dist/Dropdown.js +2 -2
  61. package/dist/DropdownItem.js +1 -1
  62. package/dist/DropdownLookup.js +1 -1
  63. package/dist/DropdownMenu.js +1 -1
  64. package/dist/EditableTable.js +1 -1
  65. package/dist/FeedbackSection.js +1 -1
  66. package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
  67. package/dist/FieldOfInterestsMasonrySection.js +228 -154
  68. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
  69. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
  70. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
  71. package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
  72. package/dist/FileInput.js +1 -1
  73. package/dist/FlexGridItem.js +1 -1
  74. package/dist/FormField.js +1 -1
  75. package/dist/FormView.js +1 -1
  76. package/dist/GeneralWithTagsCardsSection.cjs +11 -27
  77. package/dist/GeneralWithTagsCardsSection.js +87 -99
  78. package/dist/GiftCardsSection.cjs +18 -23
  79. package/dist/GiftCardsSection.js +146 -77
  80. package/dist/Icon.js +1 -1
  81. package/dist/IconButton.js +1 -1
  82. package/dist/Kanban.js +1 -1
  83. package/dist/KanbanActionsToolbar.js +1 -1
  84. package/dist/KanbanView.js +1 -1
  85. package/dist/Link.js +1 -1
  86. package/dist/LoanCalculatorSection.js +1 -1
  87. package/dist/LocationFinderSection.js +1 -1
  88. package/dist/LocationSearchSection.js +1 -1
  89. package/dist/MasonryGeneralCardsSection.cjs +33 -19
  90. package/dist/MasonryGeneralCardsSection.js +114 -68
  91. package/dist/MenuItem.js +1 -1
  92. package/dist/Modal.js +1 -1
  93. package/dist/MultiSelectDropdown.js +1 -1
  94. package/dist/MultiSelectDropdownLookup.js +1 -1
  95. package/dist/NestedDropdownItem.js +1 -1
  96. package/dist/NestedMenuItem.js +1 -1
  97. package/dist/NotificationContainer.js +1 -1
  98. package/dist/NotificationMessage.js +1 -1
  99. package/dist/NumberInput.js +1 -1
  100. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  101. package/dist/OverlayGeneralCardsSection.js +54 -40
  102. package/dist/PasswordInput.js +1 -1
  103. package/dist/PopoverContent.js +1 -1
  104. package/dist/ProductsWithBannerSection.cjs +15 -20
  105. package/dist/ProductsWithBannerSection.js +176 -104
  106. package/dist/ProgressBar.js +1 -1
  107. package/dist/QuattroCardsSection.cjs +6 -6
  108. package/dist/QuattroCardsSection.js +42 -34
  109. package/dist/QuizSection.js +1 -1
  110. package/dist/RadioInput.js +1 -1
  111. package/dist/RangeSlider.js +1 -1
  112. package/dist/ReviewsSection.cjs +24 -30
  113. package/dist/ReviewsSection.js +170 -137
  114. package/dist/SalesCampaignsSection.cjs +46 -130
  115. package/dist/SalesCampaignsSection.js +354 -433
  116. package/dist/Separator.js +1 -1
  117. package/dist/ShopCardsSection.cjs +18 -5
  118. package/dist/ShopCardsSection.js +145 -88
  119. package/dist/Sidebar.js +1 -1
  120. package/dist/SimpleCategoriesSection.cjs +10 -4
  121. package/dist/SimpleCategoriesSection.js +79 -51
  122. package/dist/SimpleProductsSection.cjs +16 -3
  123. package/dist/SimpleProductsSection.js +172 -70
  124. package/dist/Spinner.js +1 -1
  125. package/dist/StatsSection.js +4 -4
  126. package/dist/Surface.js +1 -1
  127. package/dist/SwipeableDrawer.js +1 -1
  128. package/dist/TabItem.js +1 -1
  129. package/dist/Table.js +1 -1
  130. package/dist/TableView.js +1 -1
  131. package/dist/TextAreaInput.js +1 -1
  132. package/dist/TextInput.js +1 -1
  133. package/dist/ThemeProvider.js +1 -1
  134. package/dist/TimeInput.js +1 -1
  135. package/dist/Toggle.js +1 -1
  136. package/dist/TreeMenuSeparator.js +1 -1
  137. package/dist/UploadedFile.js +1 -1
  138. package/dist/UrgentSaleProductsSection.cjs +2 -2
  139. package/dist/UrgentSaleProductsSection.js +62 -61
  140. package/dist/index-BAJkosVg.cjs +11 -0
  141. package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
  142. package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
  143. package/dist/index-BSpdEGFd.js +42 -0
  144. package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
  145. package/dist/index-BhBRZf4M.js +742 -0
  146. package/dist/index-BovNbKxB.js +54 -0
  147. package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
  148. package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
  149. package/dist/index-D-3I_Ppj.cjs +16 -0
  150. package/dist/index-D0IYt1s3.cjs +20 -0
  151. package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
  152. package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
  153. package/dist/index-DFdPWO4O.js +133 -0
  154. package/dist/index-DFyV_EK2.cjs +305 -0
  155. package/dist/index-DxwIu0Wn.js +84 -0
  156. package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
  157. package/dist/index.js +1 -1
  158. package/dist/style-BAcV7F53.cjs +64 -0
  159. package/dist/style-CXMUA6cI.js +74 -0
  160. package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
  161. package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
  162. package/package.json +1 -1
  163. package/dist/index-1Dm1i6WK.js +0 -52
  164. package/dist/index-BGTtoLxz.cjs +0 -1
  165. package/dist/skeleton-BdbB-LdT.cjs +0 -97
  166. package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
  167. package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
  168. package/dist/suspense-large-BMO7JH52.js +0 -26
  169. package/dist/suspense-large-CFmcSzX-.cjs +0 -1
  170. package/dist/suspense-product-card-detailed-BU6DPCvJ.js +0 -652
  171. package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-Db3VFbfP.cjs"),c=require("./utils-Dl9xPH4c.cjs"),N=require("./index-BueKsXT8.cjs"),$=f.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),W=require("./style-Db3VFbfP.cjs"),b=require("./utils-Dl9xPH4c.cjs"),C=require("./index-BueKsXT8.cjs"),i=require("./style-BAcV7F53.cjs"),_=g.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 (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
19
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
20
20
  height: 100%;
21
21
  min-height: 100%;
22
22
  max-height: 100%;
@@ -31,15 +31,15 @@
31
31
  }
32
32
  }
33
33
  }
34
- `,I=f.styled.div`
34
+ `,q=g.styled.div`
35
35
  display: grid;
36
36
  grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
37
37
  gap: 1.25rem;
38
38
 
39
- @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
39
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
40
40
  grid-template-columns: repeat(2, minmax(0, 1fr));
41
41
  }
42
- `,C=f.styled.div`
42
+ `,$=g.styled.div`
43
43
  display: flex;
44
44
  flex-direction: column;
45
45
  gap: 0.5rem;
@@ -55,22 +55,10 @@
55
55
  & .card-title {
56
56
  font-size: 0.875rem;
57
57
  font-weight: 600;
58
- ${c.truncateTextInRows(2)}
58
+ ${b.truncateTextInRows(2)}
59
59
  }
60
60
 
61
- & .skeleton-img {
62
- background-color: ${c.linearGradientAnimation("-90deg")};
63
- border-radius: 0.75rem;
64
- border: 1px solid white;
65
- }
66
-
67
- & .skeleton-title {
68
- background-color: ${c.linearGradientAnimation("-90deg")};
69
- width: 100%;
70
- height: 1.25rem;
71
- }
72
-
73
- @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
61
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
74
62
  & img {
75
63
  width: 8.875rem;
76
64
  height: 8.875rem;
@@ -81,4 +69,11 @@
81
69
  object-fit: cover;
82
70
  }
83
71
  }
84
- `,R=o.forwardRef((t,d)=>{const{uuid:a,title:i,image:s,sellerUuid:w,onSelectCard:l=()=>{},imageComponent:m,metadata:n}=t,u=o.useRef(null);return r.jsxs(C,{ref:u,className:"product-card",name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.accessor,onClick:g=>l(g,d),children:[c.isDefined(m)?m:r.jsx(N.ProductImageWrapper,{src:s}),r.jsx("div",{className:"card-title",children:i})]})}),_=o.forwardRef(({},t)=>r.jsxs(C,{className:"product-card",children:[r.jsx("img",{className:"skeleton-img"}),r.jsx("div",{className:"skeleton-title"})]})),q=({limit:t=4,isLoading:d=!1,keyPrefix:a})=>r.jsx(r.Fragment,{children:Array.from({length:t},(i,s)=>r.jsx(_,{isLoading:d},`${a}-skeleton-product-card-${s}`))}),M=({children:t,fallbackComponent:d=r.jsx(r.Fragment,{}),isLoading:a=!1,limit:i,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:d,children:a===!0?r.jsx(q,{isLoading:a,limit:i,keyPrefix:s}):t}),b=o.memo(R),U=o.forwardRef((t,d)=>{const{icon:a,items:i,limit:s=4,imageUrl:w,onSelectCard:l=()=>{},title:m="Season inspiration",isLoading:n=!1,getImage:u=()=>{},componentName:g}=t,S=v.useDetectMobile(),P=o.useMemo(()=>r.jsx(r.Fragment,{children:S===!0?i==null?void 0:i.map((e,h)=>r.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(k,p)=>l({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:p}),image:u(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:g,accessor:e==null?void 0:e.accessor}},h)):i==null?void 0:i.slice(0,s).map((e,h)=>r.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(k,p)=>l({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:p}),image:u(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:g,accessor:e==null?void 0:e.accessor}},h))}),[i,S,s]);return r.jsxs(y.RegulatTitleSectionWrapper,{ref:d,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(a)&&r.jsx("i",{className:a}),r.jsx("span",{children:m})]})}),r.jsx($,{className:"products-banner",children:r.jsx("img",{src:w})}),r.jsx(I,{limit:s,children:r.jsx(M,{isLoading:n,limit:s,keyPrefix:"explore-landing",children:P})})]})});module.exports=U;
72
+ `,v=o.forwardRef((t,a)=>{const{uuid:d,title:n,image:l,sellerUuid:k,onSelectCard:m=()=>{},imageComponent:h,metadata:s}=t,c=o.useRef(null);return r.jsxs($,{ref:c,className:"product-card",name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:u=>m(u,a),children:[b.isDefined(h)?h:r.jsx(C.ProductImageWrapper,{src:l}),r.jsx("div",{className:"card-title",children:n})]})}),I=g.styled(i.SkeletonColumnWrapper)`
73
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
74
+ & .skeleton__banner {
75
+ height: 100%;
76
+ aspect-ratio: 1 / 1;
77
+ }
78
+ }
79
+ `,y=({keyPrefix:t})=>r.jsxs(I,{children:[r.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),r.jsxs(i.SkeletonRowWrapper,{children:[r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),E=({keyPrefix:t,isLoading:a=!1,fallbackComponent:d=r.jsx(r.Fragment,{}),children:n})=>r.jsx(o.Suspense,{fallbackComponent:d,children:a===!0?r.jsx(y,{keyPrefix:t}):n}),P=o.memo(v),M=o.forwardRef((t,a)=>{const{icon:d,items:n,limit:l=4,imageUrl:k,onSelectCard:m=()=>{},title:h="Season inspiration",isLoading:s=!1,getImage:c=()=>{},componentName:u}=t,R=f.useDetectMobile(),w=o.useMemo(()=>r.jsx(r.Fragment,{children:R===!0?n==null?void 0:n.map((e,S)=>r.jsx(P,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(L,j)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:j}),image:c(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:u,accessor:e==null?void 0:e.accessor}},S)):n==null?void 0:n.slice(0,l).map((e,S)=>r.jsx(P,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(L,j)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:j}),image:c(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:u,accessor:e==null?void 0:e.accessor}},S))}),[n,R,l]);return r.jsxs(W.RegulatTitleSectionWrapper,{ref:a,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(d)&&r.jsx("i",{className:d}),r.jsx("span",{children:h})]})}),r.jsxs(E,{isLoading:s,keyPrefix:"products-with-banner-skeleton",children:[r.jsx(_,{className:"products-banner",children:r.jsx("img",{src:k})}),r.jsx(q,{limit:l,children:w})]})]})});module.exports=M;
@@ -1,12 +1,13 @@
1
- import { jsxs as u, jsx as r, Fragment as h } from "react/jsx-runtime";
2
- import { forwardRef as f, useRef as U, Suspense as y, memo as M, useMemo as R } from "react";
3
- import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as b } from "./consts-BuFChS64.js";
5
- import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { R as j } from "./style-DKAOBWn3.js";
7
- import { p as I, o as k, l as z, k as B } from "./utils-BdsZgOUE.js";
8
- import { P as D } from "./index-CF3HhgvN.js";
9
- const E = w.div`
1
+ import { jsxs as t, jsx as r, Fragment as P } from "react/jsx-runtime";
2
+ import { forwardRef as W, useRef as U, Suspense as G, memo as M, useMemo as _ } from "react";
3
+ import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as R } from "./consts-BuFChS64.js";
5
+ import { u as j } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { R as B } from "./style-D3pIrH3v.js";
7
+ import { o as I, l as y, k as z } from "./utils-DHfRApMf.js";
8
+ import { P as D } from "./index-BbltNcou.js";
9
+ import { S as o, b as i, a as l, c as b } from "./style-CXMUA6cI.js";
10
+ const E = f.div`
10
11
  width: 100%;
11
12
  height: 22.5rem;
12
13
  min-height: 22.5rem;
@@ -24,7 +25,7 @@ const E = w.div`
24
25
  object-fit: cover;
25
26
  }
26
27
 
27
- @media (max-width: ${b + "px"}) {
28
+ @media (max-width: ${R + "px"}) {
28
29
  height: 100%;
29
30
  min-height: 100%;
30
31
  max-height: 100%;
@@ -39,15 +40,15 @@ const E = w.div`
39
40
  }
40
41
  }
41
42
  }
42
- `, _ = w.div`
43
+ `, L = f.div`
43
44
  display: grid;
44
- grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
45
+ grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
45
46
  gap: 1.25rem;
46
47
 
47
- @media (max-width: ${b + "px"}) {
48
+ @media (max-width: ${R + "px"}) {
48
49
  grid-template-columns: repeat(2, minmax(0, 1fr));
49
50
  }
50
- `, P = w.div`
51
+ `, T = f.div`
51
52
  display: flex;
52
53
  flex-direction: column;
53
54
  gap: 0.5rem;
@@ -63,22 +64,10 @@ const E = w.div`
63
64
  & .card-title {
64
65
  font-size: 0.875rem;
65
66
  font-weight: 600;
66
- ${I(2)}
67
+ ${I(2)}
67
68
  }
68
69
 
69
- & .skeleton-img {
70
- background-color: ${k("-90deg")};
71
- border-radius: 0.75rem;
72
- border: 1px solid white;
73
- }
74
-
75
- & .skeleton-title {
76
- background-color: ${k("-90deg")};
77
- width: 100%;
78
- height: 1.25rem;
79
- }
80
-
81
- @media (max-width: ${b + "px"}) {
70
+ @media (max-width: ${R + "px"}) {
82
71
  & img {
83
72
  width: 8.875rem;
84
73
  height: 8.875rem;
@@ -89,114 +78,197 @@ const E = w.div`
89
78
  object-fit: cover;
90
79
  }
91
80
  }
92
- `, A = f((t, n) => {
81
+ `, q = W((a, n) => {
93
82
  const {
94
- uuid: o,
95
- title: i,
96
- image: a,
97
- sellerUuid: S,
98
- onSelectCard: m = () => {
83
+ uuid: s,
84
+ title: d,
85
+ image: h,
86
+ sellerUuid: C,
87
+ onSelectCard: c = () => {
99
88
  },
100
- imageComponent: s,
101
- metadata: d
102
- } = t, l = U(null);
103
- return /* @__PURE__ */ u(
104
- P,
89
+ imageComponent: u,
90
+ metadata: m
91
+ } = a, g = U(null);
92
+ return /* @__PURE__ */ t(
93
+ T,
105
94
  {
106
- ref: l,
95
+ ref: g,
107
96
  className: "product-card",
108
- name: d == null ? void 0 : d.name,
109
- "data-accessor": d == null ? void 0 : d.accessor,
110
- onClick: (c) => m(c, n),
97
+ name: m == null ? void 0 : m.name,
98
+ "data-accessor": m == null ? void 0 : m.accessor,
99
+ onClick: (p) => c(p, n),
111
100
  children: [
112
- z(s) ? s : /* @__PURE__ */ r(D, { src: a }),
113
- /* @__PURE__ */ r("div", { className: "card-title", children: i })
101
+ y(u) ? u : /* @__PURE__ */ r(D, { src: h }),
102
+ /* @__PURE__ */ r("div", { className: "card-title", children: d })
114
103
  ]
115
104
  }
116
105
  );
117
- }), G = f(({}, t) => /* @__PURE__ */ u(P, { className: "product-card", children: [
118
- /* @__PURE__ */ r("img", { className: "skeleton-img" }),
119
- /* @__PURE__ */ r("div", { className: "skeleton-title" })
120
- ] })), T = ({ limit: t = 4, isLoading: n = !1, keyPrefix: o }) => /* @__PURE__ */ r(h, { children: Array.from({ length: t }, (i, a) => /* @__PURE__ */ r(
121
- G,
122
- {
123
- isLoading: n
124
- },
125
- `${o}-skeleton-product-card-${a}`
126
- )) }), F = ({
127
- children: t,
128
- fallbackComponent: n = /* @__PURE__ */ r(h, {}),
129
- isLoading: o = !1,
130
- limit: i,
131
- keyPrefix: a
132
- }) => /* @__PURE__ */ r(y, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
133
- T,
134
- {
135
- isLoading: o,
136
- limit: i,
137
- keyPrefix: a
106
+ }), F = f(o)`
107
+ @media (max-width: ${R + "px"}) {
108
+ & .skeleton__banner {
109
+ height: 100%;
110
+ aspect-ratio: 1 / 1;
111
+ }
138
112
  }
139
- ) : t }), v = M(A), Q = f((t, n) => {
113
+ `, O = ({ keyPrefix: a }) => /* @__PURE__ */ t(F, { children: [
114
+ /* @__PURE__ */ r(i, { height: "22.5rem", className: "skeleton__banner" }),
115
+ /* @__PURE__ */ t(l, { children: [
116
+ /* @__PURE__ */ t(o, { gap: "0.5rem", children: [
117
+ /* @__PURE__ */ r(
118
+ b,
119
+ {
120
+ height: "100%",
121
+ width: "100%",
122
+ borderRadius: "0.75rem"
123
+ }
124
+ ),
125
+ /* @__PURE__ */ r(o, { height: "1rem", children: /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }) }),
126
+ /* @__PURE__ */ t(l, { gap: "0.5rem", children: [
127
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
128
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
129
+ ] }),
130
+ /* @__PURE__ */ r(o, { height: "2rem", children: /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" }) })
131
+ ] }, `${a}-1`),
132
+ /* @__PURE__ */ t(
133
+ o,
134
+ {
135
+ gap: "0.5rem",
136
+ noGradient: !0,
137
+ children: [
138
+ /* @__PURE__ */ r(
139
+ b,
140
+ {
141
+ height: "100%",
142
+ width: "100%",
143
+ borderRadius: "0.75rem"
144
+ }
145
+ ),
146
+ /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
147
+ /* @__PURE__ */ t(l, { gap: "0.5rem", noGradient: !0, children: [
148
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
149
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
150
+ ] }),
151
+ /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
152
+ ]
153
+ },
154
+ `${a}-2`
155
+ ),
156
+ /* @__PURE__ */ t(
157
+ o,
158
+ {
159
+ gap: "0.5rem",
160
+ noGradient: !0,
161
+ children: [
162
+ /* @__PURE__ */ r(
163
+ b,
164
+ {
165
+ height: "100%",
166
+ width: "100%",
167
+ borderRadius: "0.75rem"
168
+ }
169
+ ),
170
+ /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
171
+ /* @__PURE__ */ t(l, { gap: "0.5rem", noGradient: !0, children: [
172
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
173
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
174
+ ] }),
175
+ /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
176
+ ]
177
+ },
178
+ `${a}-3`
179
+ ),
180
+ /* @__PURE__ */ t(
181
+ o,
182
+ {
183
+ gap: "0.5rem",
184
+ noGradient: !0,
185
+ children: [
186
+ /* @__PURE__ */ r(
187
+ b,
188
+ {
189
+ height: "100%",
190
+ width: "100%",
191
+ borderRadius: "0.75rem"
192
+ }
193
+ ),
194
+ /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
195
+ /* @__PURE__ */ t(l, { gap: "0.5rem", noGradient: !0, children: [
196
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
197
+ /* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
198
+ ] }),
199
+ /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
200
+ ]
201
+ },
202
+ `${a}-4`
203
+ )
204
+ ] })
205
+ ] }), X = ({
206
+ keyPrefix: a,
207
+ isLoading: n = !1,
208
+ fallbackComponent: s = /* @__PURE__ */ r(P, {}),
209
+ children: d
210
+ }) => /* @__PURE__ */ r(G, { fallbackComponent: s, children: n === !0 ? /* @__PURE__ */ r(O, { keyPrefix: a }) : d }), $ = M(q), ee = W((a, n) => {
140
211
  const {
141
- icon: o,
142
- items: i,
143
- limit: a = 4,
144
- imageUrl: S,
145
- onSelectCard: m = () => {
212
+ icon: s,
213
+ items: d,
214
+ limit: h = 4,
215
+ imageUrl: C,
216
+ onSelectCard: c = () => {
146
217
  },
147
- title: s = "Season inspiration",
148
- isLoading: d = !1,
149
- getImage: l = () => {
218
+ title: u = "Season inspiration",
219
+ isLoading: m = !1,
220
+ getImage: g = () => {
150
221
  },
151
- componentName: c
152
- } = t, C = W(), N = R(() => /* @__PURE__ */ r(h, { children: C === !0 ? i == null ? void 0 : i.map((e, p) => /* @__PURE__ */ r(
153
- v,
222
+ componentName: p
223
+ } = a, v = j(), k = _(() => /* @__PURE__ */ r(P, { children: v === !0 ? d == null ? void 0 : d.map((e, w) => /* @__PURE__ */ r(
224
+ $,
154
225
  {
155
226
  title: e == null ? void 0 : e.name,
156
227
  sellerUuid: e == null ? void 0 : e.sellerUuid,
157
228
  uuid: e == null ? void 0 : e.uuid,
158
- onSelectCard: ($, g) => m({
229
+ onSelectCard: (N, S) => c({
159
230
  uuid: e == null ? void 0 : e.uuid,
160
231
  nameSlug: e == null ? void 0 : e.nameSlug,
161
- cardRef: g
232
+ cardRef: S
162
233
  }),
163
- image: l(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
164
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
234
+ image: g(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
235
+ metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
165
236
  },
166
- p
167
- )) : i == null ? void 0 : i.slice(0, a).map((e, p) => /* @__PURE__ */ r(
168
- v,
237
+ w
238
+ )) : d == null ? void 0 : d.slice(0, h).map((e, w) => /* @__PURE__ */ r(
239
+ $,
169
240
  {
170
241
  title: e == null ? void 0 : e.name,
171
242
  sellerUuid: e == null ? void 0 : e.sellerUuid,
172
243
  uuid: e == null ? void 0 : e.uuid,
173
- onSelectCard: ($, g) => m({
244
+ onSelectCard: (N, S) => c({
174
245
  uuid: e == null ? void 0 : e.uuid,
175
246
  nameSlug: e == null ? void 0 : e.nameSlug,
176
- cardRef: g
247
+ cardRef: S
177
248
  }),
178
- image: l(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
179
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
249
+ image: g(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
250
+ metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
180
251
  },
181
- p
182
- )) }), [i, C, a]);
183
- return /* @__PURE__ */ u(j, { ref: n, children: [
184
- /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ u("div", { className: "regular-title-text", children: [
185
- B(o) && /* @__PURE__ */ r("i", { className: o }),
186
- /* @__PURE__ */ r("span", { children: s })
252
+ w
253
+ )) }), [d, v, h]);
254
+ return /* @__PURE__ */ t(B, { ref: n, children: [
255
+ /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
256
+ z(s) && /* @__PURE__ */ r("i", { className: s }),
257
+ /* @__PURE__ */ r("span", { children: u })
187
258
  ] }) }),
188
- /* @__PURE__ */ r(E, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: S }) }),
189
- /* @__PURE__ */ r(_, { limit: a, children: /* @__PURE__ */ r(
190
- F,
259
+ /* @__PURE__ */ t(
260
+ X,
191
261
  {
192
- isLoading: d,
193
- limit: a,
194
- keyPrefix: "explore-landing",
195
- children: N
262
+ isLoading: m,
263
+ keyPrefix: "products-with-banner-skeleton",
264
+ children: [
265
+ /* @__PURE__ */ r(E, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: C }) }),
266
+ /* @__PURE__ */ r(L, { limit: h, children: k })
267
+ ]
196
268
  }
197
- ) })
269
+ )
198
270
  ] });
199
271
  });
200
272
  export {
201
- Q as default
273
+ ee as default
202
274
  };
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as f, isValidElement as P, cloneElement as y } from "react";
3
3
  import { P as r } from "./index-CblbdqjE.js";
4
4
  import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { b as n, c as x } from "./utils-BdsZgOUE.js";
5
+ import { b as n, c as x } from "./utils-DHfRApMf.js";
6
6
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const w = t.div`
8
8
  width: 100%;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),n=require("react"),l=require("./utils-Dl9xPH4c.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=require("./styled-components.browser.esm-CvykQBGY.cjs"),_=c.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),n=require("react"),l=require("./utils-Dl9xPH4c.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CvykQBGY.cjs"),f=require("./index-D0IYt1s3.cjs"),h=m.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -41,7 +41,7 @@
41
41
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
42
42
  border-radius: 0.75rem;
43
43
  z-index: 2;
44
- `,f=c.styled.div`
44
+ `,b=m.styled.div`
45
45
  cursor: pointer;
46
46
  position: relative;
47
47
  border-radius: 0.75rem;
@@ -91,7 +91,7 @@
91
91
  }
92
92
  }
93
93
 
94
- @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
94
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
95
95
  width: 100%;
96
96
 
97
97
  img {
@@ -108,7 +108,7 @@
108
108
  display: block;
109
109
  }
110
110
  }
111
- `,h=n.forwardRef(({title:o,description:r,imageUrl:i,onSelectCard:s=()=>{}},d)=>{const{theme:a}=g.useTheme();return e.jsxs(f,{ref:d,theme:a,onClick:s,children:[e.jsx("img",{loading:"lazy",src:i}),e.jsx(_,{theme:a,className:"quattro-card__gradient",children:e.jsxs("div",{className:"quattro-card__text",children:[e.jsx("div",{className:"quattro-card__title",children:o}),e.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),b=u.qe.div`
111
+ `,w=n.forwardRef(({title:a,description:r,imageUrl:s,onSelectCard:i=()=>{}},d)=>{const{theme:o}=u.useTheme();return e.jsxs(b,{ref:d,theme:o,onClick:i,children:[e.jsx("img",{loading:"lazy",src:s}),e.jsx(h,{theme:o,className:"quattro-card__gradient",children:e.jsxs("div",{className:"quattro-card__text",children:[e.jsx("div",{className:"quattro-card__title",children:a}),e.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),x=_.qe.div`
112
112
  display: flex;
113
113
  flex-direction: column;
114
114
  align-items: flex-start;
@@ -154,7 +154,7 @@
154
154
  width: 100%;
155
155
  }
156
156
 
157
- @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
157
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
158
158
  gap: 1.25rem;
159
159
 
160
160
  & .wrapper__cards {
@@ -162,4 +162,4 @@
162
162
  gap: 1rem;
163
163
  }
164
164
  }
165
- `,w=n.memo(h),x=n.forwardRef(({title:o,items:r,onSelectCard:i=()=>{}},s)=>{const d=n.useMemo(()=>{var a;return(a=r==null?void 0:r.slice(0,4))==null?void 0:a.map((t,p)=>e.jsx(w,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,imageUrl:t==null?void 0:t.imageUrl,onSelectCard:()=>i==null?void 0:i(t)},`quattro-card__${p+1}`))},[r]);return e.jsxs(b,{ref:s,children:[e.jsx("div",{className:"wrapper__heading",children:e.jsx("div",{className:"wrapper__title",children:l.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"title__text",children:e.jsx("span",{children:o})})})}),e.jsx("div",{className:"wrapper__cards",children:d})]})});module.exports=x;
165
+ `,y=n.memo(w),q=n.forwardRef(({title:a,items:r,isLoading:s=!1,onSelectCard:i=()=>{}},d)=>{const o=n.useMemo(()=>{var c;return(c=r==null?void 0:r.slice(0,4))==null?void 0:c.map((t,g)=>e.jsx(y,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,imageUrl:t==null?void 0:t.imageUrl,onSelectCard:()=>i==null?void 0:i(t)},`quattro-card__${g+1}`))},[r]);return e.jsxs(x,{ref:d,children:[e.jsx("div",{className:"wrapper__heading",children:e.jsx("div",{className:"wrapper__title",children:l.isDefinedNotEmptyString(a)&&e.jsx("div",{className:"title__text",children:e.jsx("span",{children:a})})})}),e.jsx(f.SuspenseBlogCardsSponsored,{isLoading:s,keyPrefix:"quattro-cards-skeleton",children:e.jsx("div",{className:"wrapper__cards",children:o})})]})});module.exports=q;
@@ -1,11 +1,12 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as l, memo as g, useMemo as f } from "react";
3
- import { t as h, p as u, k as _ } from "./utils-BdsZgOUE.js";
4
- import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { M as m } from "./consts-BuFChS64.js";
6
- import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { q as w } from "./styled-components.browser.esm-D-n22PJk.js";
8
- const y = c.div`
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as c, memo as f, useMemo as u } from "react";
3
+ import { t as h, o as _, k as b } from "./utils-DHfRApMf.js";
4
+ import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { M as p } from "./consts-BuFChS64.js";
6
+ import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { q as y } from "./styled-components.browser.esm-D-n22PJk.js";
8
+ import { S as v } from "./index-BSpdEGFd.js";
9
+ const x = m.div`
9
10
  position: absolute;
10
11
  top: 0;
11
12
  left: 0;
@@ -48,7 +49,7 @@ const y = c.div`
48
49
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
49
50
  border-radius: 0.75rem;
50
51
  z-index: 2;
51
- `, v = c.div`
52
+ `, q = m.div`
52
53
  cursor: pointer;
53
54
  position: relative;
54
55
  border-radius: 0.75rem;
@@ -94,11 +95,11 @@ const y = c.div`
94
95
  font-style: normal;
95
96
  font-weight: 500;
96
97
  line-height: 1.25rem;
97
- ${u(2)}
98
+ ${_(2)}
98
99
  }
99
100
  }
100
101
 
101
- @media (max-width: ${m + "px"}) {
102
+ @media (max-width: ${p + "px"}) {
102
103
  width: 100%;
103
104
 
104
105
  img {
@@ -115,19 +116,19 @@ const y = c.div`
115
116
  display: block;
116
117
  }
117
118
  }
118
- `, x = l(
119
- ({ title: o, description: e, imageUrl: i, onSelectCard: n = () => {
120
- } }, d) => {
121
- const { theme: a } = b();
122
- return /* @__PURE__ */ s(v, { ref: d, theme: a, onClick: n, children: [
123
- /* @__PURE__ */ r("img", { loading: "lazy", src: i }),
124
- /* @__PURE__ */ r(y, { theme: a, className: "quattro-card__gradient", children: /* @__PURE__ */ s("div", { className: "quattro-card__text", children: [
125
- /* @__PURE__ */ r("div", { className: "quattro-card__title", children: o }),
119
+ `, k = c(
120
+ ({ title: i, description: e, imageUrl: n, onSelectCard: a = () => {
121
+ } }, s) => {
122
+ const { theme: o } = w();
123
+ return /* @__PURE__ */ d(q, { ref: s, theme: o, onClick: a, children: [
124
+ /* @__PURE__ */ r("img", { loading: "lazy", src: n }),
125
+ /* @__PURE__ */ r(x, { theme: o, className: "quattro-card__gradient", children: /* @__PURE__ */ d("div", { className: "quattro-card__text", children: [
126
+ /* @__PURE__ */ r("div", { className: "quattro-card__title", children: i }),
126
127
  /* @__PURE__ */ r("div", { className: "quattro-card__description", children: e })
127
128
  ] }) })
128
129
  ] });
129
130
  }
130
- ), q = w.div`
131
+ ), z = y.div`
131
132
  display: flex;
132
133
  flex-direction: column;
133
134
  align-items: flex-start;
@@ -173,7 +174,7 @@ const y = c.div`
173
174
  width: 100%;
174
175
  }
175
176
 
176
- @media (max-width: ${m + "px"}) {
177
+ @media (max-width: ${p + "px"}) {
177
178
  gap: 1.25rem;
178
179
 
179
180
  & .wrapper__cards {
@@ -181,28 +182,35 @@ const y = c.div`
181
182
  gap: 1rem;
182
183
  }
183
184
  }
184
- `, k = g(x), I = l(
185
- ({ title: o, items: e, onSelectCard: i = () => {
186
- } }, n) => {
187
- const d = f(() => {
188
- var a;
189
- return (a = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : a.map((t, p) => /* @__PURE__ */ r(
190
- k,
185
+ `, N = f(k), S = c(
186
+ ({ title: i, items: e, isLoading: n = !1, onSelectCard: a = () => {
187
+ } }, s) => {
188
+ const o = u(() => {
189
+ var l;
190
+ return (l = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : l.map((t, g) => /* @__PURE__ */ r(
191
+ N,
191
192
  {
192
193
  title: t == null ? void 0 : t.title,
193
194
  description: t == null ? void 0 : t.description,
194
195
  imageUrl: t == null ? void 0 : t.imageUrl,
195
- onSelectCard: () => i == null ? void 0 : i(t)
196
+ onSelectCard: () => a == null ? void 0 : a(t)
196
197
  },
197
- `quattro-card__${p + 1}`
198
+ `quattro-card__${g + 1}`
198
199
  ));
199
200
  }, [e]);
200
- return /* @__PURE__ */ s(q, { ref: n, children: [
201
- /* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children: _(o) && /* @__PURE__ */ r("div", { className: "title__text", children: /* @__PURE__ */ r("span", { children: o }) }) }) }),
202
- /* @__PURE__ */ r("div", { className: "wrapper__cards", children: d })
201
+ return /* @__PURE__ */ d(z, { ref: s, children: [
202
+ /* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children: b(i) && /* @__PURE__ */ r("div", { className: "title__text", children: /* @__PURE__ */ r("span", { children: i }) }) }) }),
203
+ /* @__PURE__ */ r(
204
+ v,
205
+ {
206
+ isLoading: n,
207
+ keyPrefix: "quattro-cards-skeleton",
208
+ children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: o })
209
+ }
210
+ )
203
211
  ] });
204
212
  }
205
213
  );
206
214
  export {
207
- I as default
215
+ S as default
208
216
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as I, useState as w, useRef as B, useEffect as re } from "react";
3
- import { x as ae, k as te, l as G, v as ie } from "./utils-BdsZgOUE.js";
3
+ import { x as ae, k as te, l as G, s as ie } from "./utils-DHfRApMf.js";
4
4
  import z from "./Button.js";
5
5
  import { s as E } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
6
  import { M as U, C as H, a as P } from "./consts-BuFChS64.js";
@@ -2,7 +2,7 @@ import { jsxs as b, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useState as j } from "react";
3
3
  import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { P as i } from "./index-CblbdqjE.js";
5
- import { d as f, c as N, e as T, b as t } from "./utils-BdsZgOUE.js";
5
+ import { d as f, c as N, e as T, b as t } from "./utils-DHfRApMf.js";
6
6
  import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
8
8
  min-height: ${(e) => f(e.theme, e.size)};