@lanaco/lnc-react-ui 4.0.186 → 4.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/BannerSectionCarousel.cjs +4 -4
  2. package/dist/BannerSectionCarousel.js +150 -158
  3. package/dist/BlogCardsSponsoredSection.cjs +5 -5
  4. package/dist/BlogCardsSponsoredSection.js +55 -51
  5. package/dist/BlogCategoryCardsSection.cjs +1 -1
  6. package/dist/BlogCategoryCardsSection.js +1 -1
  7. package/dist/BlogExploreSection.cjs +5 -5
  8. package/dist/BlogExploreSection.js +182 -215
  9. package/dist/BlogListSection.cjs +6 -6
  10. package/dist/BlogListSection.js +134 -116
  11. package/dist/BlogProductCardsSection.cjs +1 -1
  12. package/dist/BlogProductCardsSection.js +26 -24
  13. package/dist/BlogShopCardsSection.cjs +1 -1
  14. package/dist/BlogShopCardsSection.js +1 -1
  15. package/dist/BlogSingleSection.cjs +3 -3
  16. package/dist/BlogSingleSection.js +21 -19
  17. package/dist/BlogsSectionDetailed.cjs +4 -4
  18. package/dist/BlogsSectionDetailed.js +81 -76
  19. package/dist/BlogsSectionLarge.cjs +6 -6
  20. package/dist/BlogsSectionLarge.js +34 -31
  21. package/dist/BlogsSectionSimple.cjs +8 -8
  22. package/dist/BlogsSectionSimple.js +68 -63
  23. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  24. package/dist/BlogsSectionSimpleCentered.js +67 -54
  25. package/dist/BlogsSectionWithFilters.cjs +9 -9
  26. package/dist/BlogsSectionWithFilters.js +98 -84
  27. package/dist/BrandHitsSection.cjs +7 -7
  28. package/dist/BrandHitsSection.js +50 -32
  29. package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
  30. package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
  31. package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
  32. package/dist/DetailedProductsInfinitiveSection.js +23 -21
  33. package/dist/DetailedProductsSection.cjs +3 -3
  34. package/dist/DetailedProductsSection.js +38 -35
  35. package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
  36. package/dist/FieldOfInterestsMasonrySection.js +87 -83
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
  41. package/dist/GeneralWithTagsCardsSection.cjs +4 -4
  42. package/dist/GeneralWithTagsCardsSection.js +83 -46
  43. package/dist/GiftCardsSection.cjs +7 -7
  44. package/dist/GiftCardsSection.js +56 -47
  45. package/dist/MasonryGeneralCardsSection.cjs +9 -9
  46. package/dist/MasonryGeneralCardsSection.js +82 -68
  47. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  48. package/dist/OverlayGeneralCardsSection.js +58 -50
  49. package/dist/ProductsWithBannerSection.cjs +10 -10
  50. package/dist/ProductsWithBannerSection.js +79 -70
  51. package/dist/QuattroCardsSection.cjs +8 -8
  52. package/dist/QuattroCardsSection.js +62 -40
  53. package/dist/ReviewsSection.cjs +8 -8
  54. package/dist/ReviewsSection.js +92 -67
  55. package/dist/SalesCampaignsSection.cjs +18 -18
  56. package/dist/SalesCampaignsSection.js +304 -298
  57. package/dist/ShopCardsSection.cjs +3 -3
  58. package/dist/ShopCardsSection.js +25 -23
  59. package/dist/SimpleCategoriesSection.cjs +4 -4
  60. package/dist/SimpleCategoriesSection.js +25 -22
  61. package/dist/SimpleProductsSection.cjs +3 -3
  62. package/dist/SimpleProductsSection.js +53 -50
  63. package/dist/UrgentSaleProductsSection.cjs +4 -4
  64. package/dist/UrgentSaleProductsSection.js +41 -38
  65. package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
  66. package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
  67. package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
  68. package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
  69. package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
  70. package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
  71. package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
  72. package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
  73. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("react"),v=require("./Icon.cjs"),P=require("./IconButton.cjs"),d=require("./utils-RnrgDDZP.cjs"),C=require("./index-uwl7BjRF.cjs"),$=require("./style-CkcozOY6.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),N=b.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),P=require("./Icon.cjs"),R=require("./IconButton.cjs"),d=require("./utils-RnrgDDZP.cjs"),N=require("./index-uwl7BjRF.cjs"),q=require("./style-CkcozOY6.cjs"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),W=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),B=x.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -95,7 +95,7 @@
95
95
  }
96
96
  }
97
97
 
98
- @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
98
+ @media (max-width: ${W.MOBILE_SIZE_PX+"px"}) {
99
99
  flex-direction: column;
100
100
  padding: 0;
101
101
  background: transparent;
@@ -146,7 +146,7 @@
146
146
  }
147
147
  }
148
148
  }
149
- `,q=a.forwardRef(({blogUuid:i,title:s,imageUrl:c,options:o,publishedAt:h,timeToReadText:g="{0} min read",timeToRead:u=0,numberOfLikes:j=0,numberOfComments:w=0,isBookmarked:m=!1,onSelectCard:f=()=>{},onBookmark:_=()=>{},onShare:r=()=>{},bookmarkComponent:p=e.jsx(e.Fragment,{}),metadata:l,titleSlug:y},k)=>{const x=()=>d.isDefined(p)?a.cloneElement(p,{key:`bookmark_blog__${i}__${m}`,isBookmarked:m,blogUuid:i,onBookmark:(S,W)=>_(S,W),ref:k,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),L=a.useRef();return e.jsxs(N,{ref:L,name:l==null?void 0:l.name,"data-accessor":l==null?void 0:l.accessor,onClick:n=>f(n,L),className:"blog-card-item",href:`/blog/${y}`,children:[e.jsx(C.ProductImageWrapper,{src:c,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__subcontent",children:[e.jsx("div",{className:"wrapper__title",children:s}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((n,S)=>e.jsx($.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${S+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",onClick:n=>{n.stopPropagation(),n.preventDefault()},children:[e.jsx(x,{}),e.jsx(P,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{r()}})]})]})]}),e.jsxs("div",{className:"wrapper__info",children:[e.jsxs("div",{className:"info__content",children:[e.jsx("div",{className:"info__text",children:`${d.formatLocaleDateString(h)} • ${d.formatString(g,u)}`}),e.jsxs("div",{className:"info__text",children:[e.jsxs("div",{children:[e.jsx(v,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),d.getRoundedNumber(j)]}),e.jsxs("div",{children:[e.jsx(v,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),d.getRoundedNumber(w)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",onClick:n=>{n==null||n.preventDefault(),n==null||n.stopPropagation()},children:[e.jsx(x,{}),e.jsx(P,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{r()}})]})]})]})]})}),B=b.styled.div`
149
+ `,I=a.forwardRef(({blogUuid:i,title:l,imageUrl:c,options:o,publishedAt:h,timeToReadText:u="{0} min read",timeToRead:j=0,numberOfLikes:w=0,numberOfComments:f=0,isBookmarked:p=!1,onSelectCard:_=()=>{},onBookmark:k=()=>{},onShare:g=()=>{},bookmarkComponent:r=e.jsx(e.Fragment,{}),metadata:s,titleSlug:m,LinkComponent:S},b)=>{const $=S||"a",v=()=>d.isDefined(r)?a.cloneElement(r,{key:`bookmark_blog__${i}__${p}`,isBookmarked:p,blogUuid:i,onBookmark:(y,C)=>k(y,C),ref:b,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),L=a.useRef();return e.jsxs(B,{ref:L,name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:n=>_(n,L),className:"blog-card-item",as:$,...S?{to:`/blog/${m}`}:{href:`/blog/${m}`},children:[e.jsx(N.ProductImageWrapper,{src:c,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__subcontent",children:[e.jsx("div",{className:"wrapper__title",children:l}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((n,y)=>e.jsx(q.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${y+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",onClick:n=>{n.stopPropagation(),n.preventDefault()},children:[e.jsx(v,{}),e.jsx(R,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]}),e.jsxs("div",{className:"wrapper__info",children:[e.jsxs("div",{className:"info__content",children:[e.jsx("div",{className:"info__text",children:`${d.formatLocaleDateString(h)} • ${d.formatString(u,j)}`}),e.jsxs("div",{className:"info__text",children:[e.jsxs("div",{children:[e.jsx(P,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),d.getRoundedNumber(w)]}),e.jsxs("div",{children:[e.jsx(P,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),d.getRoundedNumber(f)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",onClick:n=>{n==null||n.preventDefault(),n==null||n.stopPropagation()},children:[e.jsx(v,{}),e.jsx(R,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]})]})}),G=x.styled.div`
150
150
  display: flex;
151
151
  flex-direction: column;
152
152
  align-items: flex-start;
@@ -170,10 +170,10 @@
170
170
  bottom: -1.25rem;
171
171
  }
172
172
  }
173
- `,I=b.styled(t.SkeletonColumnWrapper)`
174
- @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
173
+ `,z=x.styled(t.SkeletonColumnWrapper)`
174
+ @media (max-width: ${W.MOBILE_SIZE_PX+"px"}) {
175
175
  & > div {
176
176
  flex-direction: column;
177
177
  }
178
178
  }
179
- `,G=({keyPrefix:i})=>e.jsxs(I,{children:[e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-1`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-2`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-3`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-4`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-5`)]}),z=({keyPrefix:i,isLoading:s=!1,fallbackComponent:c=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:c,children:s===!0?e.jsx(G,{keyPrefix:i}):o}),E=a.memo(q),O=a.forwardRef(({timeToReadText:i="{0} min read",items:s,isLoading:c=!1,onSelectCard:o=()=>{},onShare:h=()=>{},onBookmark:g=()=>{},getImage:u=()=>{},isSeparated:j=!0,bookmarkComponent:w=e.jsx(e.Fragment,{}),componentName:m},f)=>{const _=a.useMemo(()=>s==null?void 0:s.map((r,p)=>{var l;return e.jsx(E,{blogUuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,titleSlug:r==null?void 0:r.titleSlug,options:r==null?void 0:r.options,publishedAt:r==null?void 0:r.publishedAt,timeToReadText:i,timeToRead:r==null?void 0:r.timeToRead,numberOfLikes:r==null?void 0:r.numberOfLikes,numberOfComments:r==null?void 0:r.numberOfComments,isSponsored:r==null?void 0:r.isSponsored,isBookmarked:r==null?void 0:r.isBookmarked,onSelectCard:(y,k)=>o==null?void 0:o(r,k),onShare:()=>h==null?void 0:h(r),onBookmark:g,imageUrl:u(r==null?void 0:r.imageUrl,r==null?void 0:r.uuid)||null,bookmarkComponent:w,metadata:{name:m,accessor:r==null?void 0:r.accessor}},`blog-card-item__${p+1}__${(l=r==null?void 0:r.isBookmarked)==null?void 0:l.toString()}`)}),[s]);return e.jsx(z,{isLoading:c,keyPrefix:"blog-list-skeleton",children:e.jsx(B,{ref:f,className:j?"separated":"",children:_})})});module.exports=O;
179
+ `,E=({keyPrefix:i})=>e.jsxs(z,{children:[e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-1`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-2`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-3`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-4`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-5`)]}),O=({keyPrefix:i,isLoading:l=!1,fallbackComponent:c=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:c,children:l===!0?e.jsx(E,{keyPrefix:i}):o}),T=a.memo(I),D=a.forwardRef(({timeToReadText:i="{0} min read",items:l,isLoading:c=!1,onSelectCard:o=()=>{},onShare:h=()=>{},onBookmark:u=()=>{},getImage:j=()=>{},isSeparated:w=!0,bookmarkComponent:f=e.jsx(e.Fragment,{}),componentName:p,LinkComponent:_},k)=>{const g=a.useMemo(()=>l==null?void 0:l.map((r,s)=>{var m;return e.jsx(T,{blogUuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,titleSlug:r==null?void 0:r.titleSlug,options:r==null?void 0:r.options,publishedAt:r==null?void 0:r.publishedAt,timeToReadText:i,timeToRead:r==null?void 0:r.timeToRead,numberOfLikes:r==null?void 0:r.numberOfLikes,numberOfComments:r==null?void 0:r.numberOfComments,isSponsored:r==null?void 0:r.isSponsored,isBookmarked:r==null?void 0:r.isBookmarked,onSelectCard:(S,b)=>o==null?void 0:o(r,b),onShare:()=>h==null?void 0:h(r),onBookmark:u,imageUrl:j(r==null?void 0:r.imageUrl,r==null?void 0:r.uuid)||null,bookmarkComponent:f,metadata:{name:p,accessor:r==null?void 0:r.accessor},LinkComponent:_},`blog-card-item__${s+1}__${(m=r==null?void 0:r.isBookmarked)==null?void 0:m.toString()}`)}),[l]);return e.jsx(O,{isLoading:c,keyPrefix:"blog-list-skeleton",children:e.jsx(G,{ref:k,className:w?"separated":"",children:g})})});module.exports=D;
@@ -1,14 +1,14 @@
1
- import { jsxs as t, jsx as e, Fragment as u } from "react/jsx-runtime";
2
- import { forwardRef as L, useRef as O, cloneElement as W, Suspense as D, memo as E, useMemo as M } from "react";
3
- import R from "./Icon.js";
4
- import I from "./IconButton.js";
5
- import { o as P, q as U, s as q, v as j, l as A } from "./utils-Dc5zIpaz.js";
6
- import { P as F } from "./index-C_NnINik.js";
7
- import { B as X } from "./style-C7FUSHmS.js";
8
- import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
- import { M as z } from "./consts-BuFChS64.js";
10
- import { S as s, a as l, c as p, b as i } from "./style-CXMUA6cI.js";
11
- const Z = B.a`
1
+ import { jsxs as t, jsx as e, Fragment as w } from "react/jsx-runtime";
2
+ import { forwardRef as z, useRef as D, cloneElement as E, Suspense as M, memo as P, useMemo as U } from "react";
3
+ import I from "./Icon.js";
4
+ import j from "./IconButton.js";
5
+ import { o as q, q as A, s as F, v as L, l as X } from "./utils-Dc5zIpaz.js";
6
+ import { P as Z } from "./index-C_NnINik.js";
7
+ import { B as H } from "./style-C7FUSHmS.js";
8
+ import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import { M as T } from "./consts-BuFChS64.js";
10
+ import { S as s, a as l, c as g, b as i } from "./style-CXMUA6cI.js";
11
+ const J = S.a`
12
12
  text-decoration: none;
13
13
  color: var(--gray-950);
14
14
  display: flex;
@@ -62,7 +62,7 @@ const Z = B.a`
62
62
  font-weight: 600;
63
63
  line-height: 1.5rem;
64
64
  letter-spacing: 0.1px;
65
- ${P(3)}
65
+ ${q(3)}
66
66
  }
67
67
 
68
68
  & .wrapper__tags {
@@ -105,7 +105,7 @@ const Z = B.a`
105
105
  }
106
106
  }
107
107
 
108
- @media (max-width: ${z + "px"}) {
108
+ @media (max-width: ${T + "px"}) {
109
109
  flex-direction: column;
110
110
  padding: 0;
111
111
  background: transparent;
@@ -156,118 +156,134 @@ const Z = B.a`
156
156
  }
157
157
  }
158
158
  }
159
- `, H = L(
159
+ `, K = z(
160
160
  ({
161
161
  blogUuid: o,
162
- title: d,
162
+ title: m,
163
163
  imageUrl: c,
164
164
  options: a,
165
165
  publishedAt: h,
166
- timeToReadText: w = "{0} min read",
167
- timeToRead: _ = 0,
168
- numberOfLikes: b = 0,
169
- numberOfComments: v = 0,
170
- isBookmarked: g = !1,
171
- onSelectCard: y = () => {
166
+ timeToReadText: _ = "{0} min read",
167
+ timeToRead: b = 0,
168
+ numberOfLikes: v = 0,
169
+ numberOfComments: y = 0,
170
+ isBookmarked: f = !1,
171
+ onSelectCard: k = () => {
172
172
  },
173
- onBookmark: k = () => {
173
+ onBookmark: $ = () => {
174
174
  },
175
- onShare: r = () => {
175
+ onShare: u = () => {
176
176
  },
177
- bookmarkComponent: f = /* @__PURE__ */ e(u, {}),
178
- metadata: m,
179
- titleSlug: C
180
- }, $) => {
181
- const S = () => A(f) ? W(f, {
182
- key: `bookmark_blog__${o}__${g}`,
183
- isBookmarked: g,
177
+ bookmarkComponent: r = /* @__PURE__ */ e(w, {}),
178
+ metadata: d,
179
+ titleSlug: p,
180
+ LinkComponent: N
181
+ }, B) => {
182
+ const O = N || "a", G = () => X(r) ? E(r, {
183
+ key: `bookmark_blog__${o}__${f}`,
184
+ isBookmarked: f,
184
185
  blogUuid: o,
185
- onBookmark: (N, T) => k(N, T),
186
- ref: $,
186
+ onBookmark: (C, W) => $(C, W),
187
+ ref: B,
187
188
  componentName: "ExploreBlogSectionCard"
188
- }) : /* @__PURE__ */ e(u, {}), G = O();
189
+ }) : /* @__PURE__ */ e(w, {}), R = D();
189
190
  return /* @__PURE__ */ t(
190
- Z,
191
+ J,
191
192
  {
192
- ref: G,
193
- name: m == null ? void 0 : m.name,
194
- "data-accessor": m == null ? void 0 : m.accessor,
195
- onClick: (n) => y(n, G),
193
+ ref: R,
194
+ name: d == null ? void 0 : d.name,
195
+ "data-accessor": d == null ? void 0 : d.accessor,
196
+ onClick: (n) => k(n, R),
196
197
  className: "blog-card-item",
197
- href: `/blog/${C}`,
198
+ as: O,
199
+ ...N ? { to: `/blog/${p}` } : { href: `/blog/${p}` },
198
200
  children: [
199
- /* @__PURE__ */ e(F, { src: c, className: "wrapper__image" }),
201
+ /* @__PURE__ */ e(Z, { src: c, className: "wrapper__image" }),
200
202
  /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
201
203
  /* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
202
- /* @__PURE__ */ e("div", { className: "wrapper__title", children: d }),
204
+ /* @__PURE__ */ e("div", { className: "wrapper__title", children: m }),
203
205
  /* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
204
- /* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, N) => /* @__PURE__ */ e(
205
- X,
206
+ /* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, C) => /* @__PURE__ */ e(
207
+ H,
206
208
  {
207
209
  color: n == null ? void 0 : n.color,
208
210
  children: n == null ? void 0 : n.name
209
211
  },
210
- `blog-card-sponsored-option__${N + 1}`
212
+ `blog-card-sponsored-option__${C + 1}`
211
213
  ))) }),
212
- /* @__PURE__ */ t("div", { className: "info__content mobile-only", onClick: (n) => {
213
- n.stopPropagation(), n.preventDefault();
214
- }, children: [
215
- /* @__PURE__ */ e(S, {}),
216
- /* @__PURE__ */ e(
217
- I,
218
- {
219
- icon: " mng-lnc-share",
220
- borderRadius: "curved",
221
- btnType: "basic",
222
- color: "neutral",
223
- onClick: () => {
224
- r();
225
- }
226
- }
227
- )
228
- ] })
214
+ /* @__PURE__ */ t(
215
+ "div",
216
+ {
217
+ className: "info__content mobile-only",
218
+ onClick: (n) => {
219
+ n.stopPropagation(), n.preventDefault();
220
+ },
221
+ children: [
222
+ /* @__PURE__ */ e(G, {}),
223
+ /* @__PURE__ */ e(
224
+ j,
225
+ {
226
+ icon: " mng-lnc-share",
227
+ borderRadius: "curved",
228
+ btnType: "basic",
229
+ color: "neutral",
230
+ onClick: () => {
231
+ u();
232
+ }
233
+ }
234
+ )
235
+ ]
236
+ }
237
+ )
229
238
  ] })
230
239
  ] }),
231
240
  /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
232
241
  /* @__PURE__ */ t("div", { className: "info__content", children: [
233
- /* @__PURE__ */ e("div", { className: "info__text", children: `${U(
242
+ /* @__PURE__ */ e("div", { className: "info__text", children: `${A(
234
243
  h
235
- )} • ${q(w, _)}` }),
244
+ )} • ${F(_, b)}` }),
236
245
  /* @__PURE__ */ t("div", { className: "info__text", children: [
237
246
  /* @__PURE__ */ t("div", { children: [
238
- /* @__PURE__ */ e(R, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
239
- j(b)
247
+ /* @__PURE__ */ e(I, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
248
+ L(v)
240
249
  ] }),
241
250
  /* @__PURE__ */ t("div", { children: [
242
- /* @__PURE__ */ e(R, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
243
- j(v)
251
+ /* @__PURE__ */ e(I, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
252
+ L(y)
244
253
  ] })
245
254
  ] })
246
255
  ] }),
247
- /* @__PURE__ */ t("div", { className: "info__content desktop-only", onClick: (n) => {
248
- n == null || n.preventDefault(), n == null || n.stopPropagation();
249
- }, children: [
250
- /* @__PURE__ */ e(S, {}),
251
- /* @__PURE__ */ e(
252
- I,
253
- {
254
- icon: " mng-lnc-share",
255
- borderRadius: "curved",
256
- btnType: "basic",
257
- color: "neutral",
258
- onClick: () => {
259
- r();
260
- }
261
- }
262
- )
263
- ] })
256
+ /* @__PURE__ */ t(
257
+ "div",
258
+ {
259
+ className: "info__content desktop-only",
260
+ onClick: (n) => {
261
+ n == null || n.preventDefault(), n == null || n.stopPropagation();
262
+ },
263
+ children: [
264
+ /* @__PURE__ */ e(G, {}),
265
+ /* @__PURE__ */ e(
266
+ j,
267
+ {
268
+ icon: " mng-lnc-share",
269
+ borderRadius: "curved",
270
+ btnType: "basic",
271
+ color: "neutral",
272
+ onClick: () => {
273
+ u();
274
+ }
275
+ }
276
+ )
277
+ ]
278
+ }
279
+ )
264
280
  ] })
265
281
  ] })
266
282
  ]
267
283
  }
268
284
  );
269
285
  }
270
- ), J = B.div`
286
+ ), Q = S.div`
271
287
  display: flex;
272
288
  flex-direction: column;
273
289
  align-items: flex-start;
@@ -291,15 +307,15 @@ const Z = B.a`
291
307
  bottom: -1.25rem;
292
308
  }
293
309
  }
294
- `, K = B(s)`
295
- @media (max-width: ${z + "px"}) {
310
+ `, V = S(s)`
311
+ @media (max-width: ${T + "px"}) {
296
312
  & > div {
297
313
  flex-direction: column;
298
314
  }
299
315
  }
300
- `, Q = ({ keyPrefix: o }) => /* @__PURE__ */ t(K, { children: [
316
+ `, Y = ({ keyPrefix: o }) => /* @__PURE__ */ t(V, { children: [
301
317
  /* @__PURE__ */ t(l, { children: [
302
- /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
318
+ /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
303
319
  /* @__PURE__ */ t(s, { noGradient: !0, children: [
304
320
  /* @__PURE__ */ e(i, { height: "1.5rem" }),
305
321
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
@@ -311,7 +327,7 @@ const Z = B.a`
311
327
  ] })
312
328
  ] }, `${o}-1`),
313
329
  /* @__PURE__ */ t(l, { children: [
314
- /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
330
+ /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
315
331
  /* @__PURE__ */ t(s, { noGradient: !0, children: [
316
332
  /* @__PURE__ */ e(i, { height: "1.5rem" }),
317
333
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
@@ -323,7 +339,7 @@ const Z = B.a`
323
339
  ] })
324
340
  ] }, `${o}-2`),
325
341
  /* @__PURE__ */ t(l, { children: [
326
- /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
342
+ /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
327
343
  /* @__PURE__ */ t(s, { noGradient: !0, children: [
328
344
  /* @__PURE__ */ e(i, { height: "1.5rem" }),
329
345
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
@@ -335,7 +351,7 @@ const Z = B.a`
335
351
  ] })
336
352
  ] }, `${o}-3`),
337
353
  /* @__PURE__ */ t(l, { children: [
338
- /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
354
+ /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
339
355
  /* @__PURE__ */ t(s, { noGradient: !0, children: [
340
356
  /* @__PURE__ */ e(i, { height: "1.5rem" }),
341
357
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
@@ -347,7 +363,7 @@ const Z = B.a`
347
363
  ] })
348
364
  ] }, `${o}-4`),
349
365
  /* @__PURE__ */ t(l, { children: [
350
- /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
366
+ /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
351
367
  /* @__PURE__ */ t(s, { noGradient: !0, children: [
352
368
  /* @__PURE__ */ e(i, { height: "1.5rem" }),
353
369
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
@@ -358,32 +374,33 @@ const Z = B.a`
358
374
  ] })
359
375
  ] })
360
376
  ] }, `${o}-5`)
361
- ] }), V = ({
377
+ ] }), x = ({
362
378
  keyPrefix: o,
363
- isLoading: d = !1,
364
- fallbackComponent: c = /* @__PURE__ */ e(u, {}),
379
+ isLoading: m = !1,
380
+ fallbackComponent: c = /* @__PURE__ */ e(w, {}),
365
381
  children: a
366
- }) => /* @__PURE__ */ e(D, { fallbackComponent: c, children: d === !0 ? /* @__PURE__ */ e(Q, { keyPrefix: o }) : a }), Y = E(H), de = L(
382
+ }) => /* @__PURE__ */ e(M, { fallbackComponent: c, children: m === !0 ? /* @__PURE__ */ e(Y, { keyPrefix: o }) : a }), ee = P(K), ce = z(
367
383
  ({
368
384
  timeToReadText: o = "{0} min read",
369
- items: d,
385
+ items: m,
370
386
  isLoading: c = !1,
371
387
  onSelectCard: a = () => {
372
388
  },
373
389
  onShare: h = () => {
374
390
  },
375
- onBookmark: w = () => {
391
+ onBookmark: _ = () => {
376
392
  },
377
- getImage: _ = () => {
393
+ getImage: b = () => {
378
394
  },
379
- isSeparated: b = !0,
380
- bookmarkComponent: v = /* @__PURE__ */ e(u, {}),
381
- componentName: g
382
- }, y) => {
383
- const k = M(() => d == null ? void 0 : d.map((r, f) => {
384
- var m;
395
+ isSeparated: v = !0,
396
+ bookmarkComponent: y = /* @__PURE__ */ e(w, {}),
397
+ componentName: f,
398
+ LinkComponent: k
399
+ }, $) => {
400
+ const u = U(() => m == null ? void 0 : m.map((r, d) => {
401
+ var p;
385
402
  return /* @__PURE__ */ e(
386
- Y,
403
+ ee,
387
404
  {
388
405
  blogUuid: r == null ? void 0 : r.uuid,
389
406
  title: r == null ? void 0 : r.title,
@@ -396,19 +413,20 @@ const Z = B.a`
396
413
  numberOfComments: r == null ? void 0 : r.numberOfComments,
397
414
  isSponsored: r == null ? void 0 : r.isSponsored,
398
415
  isBookmarked: r == null ? void 0 : r.isBookmarked,
399
- onSelectCard: (C, $) => a == null ? void 0 : a(r, $),
416
+ onSelectCard: (N, B) => a == null ? void 0 : a(r, B),
400
417
  onShare: () => h == null ? void 0 : h(r),
401
- onBookmark: w,
402
- imageUrl: _(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
403
- bookmarkComponent: v,
404
- metadata: { name: g, accessor: r == null ? void 0 : r.accessor }
418
+ onBookmark: _,
419
+ imageUrl: b(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
420
+ bookmarkComponent: y,
421
+ metadata: { name: f, accessor: r == null ? void 0 : r.accessor },
422
+ LinkComponent: k
405
423
  },
406
- `blog-card-item__${f + 1}__${(m = r == null ? void 0 : r.isBookmarked) == null ? void 0 : m.toString()}`
424
+ `blog-card-item__${d + 1}__${(p = r == null ? void 0 : r.isBookmarked) == null ? void 0 : p.toString()}`
407
425
  );
408
- }), [d]);
409
- return /* @__PURE__ */ e(V, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(J, { ref: y, className: b ? "separated" : "", children: k }) });
426
+ }), [m]);
427
+ return /* @__PURE__ */ e(x, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(Q, { ref: $, className: v ? "separated" : "", children: u }) });
410
428
  }
411
429
  );
412
430
  export {
413
- de as default
431
+ ce as default
414
432
  };
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),c=require("react"),h=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-DHV9awrE.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),f=c.memo(j.SimpleProductCard),y=c.forwardRef(({buttonText:t,buttonLink:u,items:r,onButtonAction:a=()=>{},onSelectCard:s=()=>{},isLoading:P=!1,limit:R=4,getImage:l=()=>{},isHighlight:n=!1,componentName:d},m)=>{const p=h.useDetectMobile(),g=c.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,b)=>i.jsx(f,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(_,q)=>s==null?void 0:s(e==null?void 0:e.uuid,q),image:l(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}},b))},[r]);return i.jsxs(N.Wrapper,{ref:m,className:`blog-product-cards-section ${n?"highlight":""}`,children:[i.jsx("div",{className:"wrapper__grid",children:g}),i.jsx(M,{text:t,borderRadius:"curved",btnType:p?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>a(u)})]})});module.exports=y;
1
+ "use strict";const i=require("react/jsx-runtime"),c=require("react"),j=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./index-BFc3nxYZ.cjs"),N=require("./Button.cjs"),f=require("./style-BTTXJFJN.cjs"),y=c.memo(M.SimpleProductCard),P=c.forwardRef(({buttonText:t,buttonLink:u,items:r,onButtonAction:a=()=>{},onSelectCard:s=()=>{},isLoading:R=!1,limit:_=4,getImage:l=()=>{},isHighlight:n=!1,componentName:d,LinkComponent:m},p)=>{const g=j.useDetectMobile(),b=c.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,q)=>i.jsx(y,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(w,h)=>s==null?void 0:s(e==null?void 0:e.uuid,h),image:l(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:m},q))},[r]);return i.jsxs(f.Wrapper,{ref:p,className:`blog-product-cards-section ${n?"highlight":""}`,children:[i.jsx("div",{className:"wrapper__grid",children:b}),i.jsx(N,{text:t,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>a(u)})]})});module.exports=P;
@@ -1,10 +1,10 @@
1
- import { jsx as o, jsxs as b } from "react/jsx-runtime";
2
- import { memo as h, forwardRef as N, useMemo as M } from "react";
3
- import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { S as _ } from "./index-C8QkdNHi.js";
5
- import w from "./Button.js";
6
- import { W as y } from "./style-tw6KjI2J.js";
7
- const U = h(_), D = N(
1
+ import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
+ import { memo as N, forwardRef as M, useMemo as P } from "react";
3
+ import { u as _ } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { S as w } from "./index-BB63Jo6p.js";
5
+ import y from "./Button.js";
6
+ import { W as U } from "./style-tw6KjI2J.js";
7
+ const j = N(w), L = M(
8
8
  ({
9
9
  buttonText: a,
10
10
  buttonLink: c,
@@ -13,17 +13,18 @@ const U = h(_), D = N(
13
13
  },
14
14
  onSelectCard: i = () => {
15
15
  },
16
- isLoading: j = !1,
17
- limit: v = 4,
16
+ isLoading: v = !1,
17
+ limit: z = 4,
18
18
  getImage: u = () => {
19
19
  },
20
20
  isHighlight: l = !1,
21
- componentName: d
22
- }, m) => {
23
- const p = P(), n = M(() => {
21
+ componentName: d,
22
+ LinkComponent: m
23
+ }, p) => {
24
+ const n = _(), f = P(() => {
24
25
  var s;
25
- return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, f) => /* @__PURE__ */ o(
26
- U,
26
+ return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, g) => /* @__PURE__ */ o(
27
+ j,
27
28
  {
28
29
  title: e == null ? void 0 : e.name,
29
30
  price: e == null ? void 0 : e.price,
@@ -32,26 +33,27 @@ const U = h(_), D = N(
32
33
  currency: e == null ? void 0 : e.currency,
33
34
  sellerUuid: e == null ? void 0 : e.sellerUuid,
34
35
  uuid: e == null ? void 0 : e.uuid,
35
- onSelectCard: (z, g) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, g),
36
+ onSelectCard: (B, b) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, b),
36
37
  image: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
37
- metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
38
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
39
+ LinkComponent: m
38
40
  },
39
- f
41
+ g
40
42
  ));
41
43
  }, [r]);
42
- return /* @__PURE__ */ b(
43
- y,
44
+ return /* @__PURE__ */ h(
45
+ U,
44
46
  {
45
- ref: m,
47
+ ref: p,
46
48
  className: `blog-product-cards-section ${l ? "highlight" : ""}`,
47
49
  children: [
48
- /* @__PURE__ */ o("div", { className: "wrapper__grid", children: n }),
50
+ /* @__PURE__ */ o("div", { className: "wrapper__grid", children: f }),
49
51
  /* @__PURE__ */ o(
50
- w,
52
+ y,
51
53
  {
52
54
  text: a,
53
55
  borderRadius: "curved",
54
- btnType: p ? "basic" : "outline",
56
+ btnType: n ? "basic" : "outline",
55
57
  color: "neutral",
56
58
  className: "wrapper__action",
57
59
  onClick: () => t(c)
@@ -63,5 +65,5 @@ const U = h(_), D = N(
63
65
  }
64
66
  );
65
67
  export {
66
- D as default
68
+ L as default
67
69
  };
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-0p_3g3pT.cjs"),f=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
1
+ "use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-D_5jNP-o.cjs"),f=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
@@ -1,7 +1,7 @@
1
1
  import { jsx as i, jsxs as g } from "react/jsx-runtime";
2
2
  import { memo as b, forwardRef as _, useMemo as w } from "react";
3
3
  import { u as v } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { S as M } from "./index-CA59z2ge.js";
4
+ import { S as M } from "./index-9inVkeN6.js";
5
5
  import C from "./Button.js";
6
6
  import { W as N } from "./style-tw6KjI2J.js";
7
7
  const S = b(M), L = _(
@@ -1,5 +1,5 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("react"),u=require("./index-MiN854X_.cjs"),l=require("./style-BAcV7F53.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./consts-goSZX3xP.cjs"),d=g.styled(l.SkeletonColumnWrapper)`
2
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
1
+ "use strict";const n=require("react/jsx-runtime"),s=require("react"),g=require("./index-BWE-RCPy.cjs"),l=require("./style-BAcV7F53.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),x=c.styled(l.SkeletonColumnWrapper)`
2
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
3
3
  & > div {
4
4
  height: 13.25rem;
5
5
 
@@ -13,4 +13,4 @@
13
13
  box-shadow: none;
14
14
  }
15
15
  }
16
- `,x=({keyPrefix:n})=>r.jsx(d,{children:r.jsx(l.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${n}-1`)}),S=({keyPrefix:n,isLoading:t=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:e})=>r.jsx(s.Suspense,{fallbackComponent:o,children:t===!0?r.jsx(x,{keyPrefix:n}):e}),h=s.forwardRef((n,t)=>{const{isLoading:o,item:e,onSelectCard:i=()=>{},getImage:a=()=>{}}=n;return r.jsx(S,{isLoading:o,keyPrefix:"blogs-single-skeleton",children:r.jsx(u.BlogCardLarge,{ref:t,title:e==null?void 0:e.title,imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>i(e==null?void 0:e.titleSlug)})})});module.exports=h;
16
+ `,S=({keyPrefix:r})=>n.jsx(x,{children:n.jsx(l.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${r}-1`)}),h=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=n.jsx(n.Fragment,{}),children:e})=>n.jsx(s.Suspense,{fallbackComponent:o,children:t===!0?n.jsx(S,{keyPrefix:r}):e}),f=s.forwardRef((r,t)=>{const{isLoading:o,item:e,onSelectCard:i=()=>{},getImage:a=()=>{},LinkComponent:u}=r;return n.jsx(h,{isLoading:o,keyPrefix:"blogs-single-skeleton",children:n.jsx(g.BlogCardLarge,{ref:t,title:e==null?void 0:e.title,imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>i(e==null?void 0:e.titleSlug),LinkComponent:u})})});module.exports=f;