@lanaco/lnc-react-ui 4.0.157 → 4.0.161

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 (77) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +11 -9
  2. package/dist/BlogCardsSponsoredSection.js +108 -90
  3. package/dist/BlogExploreSection.cjs +5 -5
  4. package/dist/BlogExploreSection.js +88 -84
  5. package/dist/BlogListSection.cjs +5 -5
  6. package/dist/BlogListSection.js +139 -126
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +37 -35
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +43 -41
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +9 -4
  13. package/dist/BlogsSectionDetailed.cjs +11 -11
  14. package/dist/BlogsSectionDetailed.js +122 -108
  15. package/dist/BlogsSectionLarge.cjs +4 -4
  16. package/dist/BlogsSectionLarge.js +43 -40
  17. package/dist/BlogsSectionSimple.cjs +8 -8
  18. package/dist/BlogsSectionSimple.js +100 -86
  19. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  20. package/dist/BlogsSectionSimpleCentered.js +81 -66
  21. package/dist/BlogsSectionWithFilters.cjs +11 -11
  22. package/dist/BlogsSectionWithFilters.js +108 -93
  23. package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
  24. package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
  25. package/dist/DetailedProductsInfinitiveSection.cjs +5 -3
  26. package/dist/DetailedProductsInfinitiveSection.js +31 -27
  27. package/dist/DetailedProductsSection.cjs +3 -3
  28. package/dist/DetailedProductsSection.js +76 -65
  29. package/dist/Dropdown.cjs +1 -1
  30. package/dist/Dropdown.js +2 -2
  31. package/dist/DropdownLookup.cjs +1 -1
  32. package/dist/DropdownLookup.js +1 -1
  33. package/dist/FieldOfInterestsMasonrySection.cjs +20 -12
  34. package/dist/FieldOfInterestsMasonrySection.js +35 -27
  35. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  36. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  37. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -0
  38. package/dist/FieldOfInterestsWithTagsCardsSection.js +5 -3
  39. package/dist/GiftCardsSection.cjs +1 -1
  40. package/dist/GiftCardsSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +1 -3
  42. package/dist/MasonryGeneralCardsSection.js +9 -11
  43. package/dist/MultiSelectDropdown.cjs +1 -1
  44. package/dist/MultiSelectDropdown.js +1 -1
  45. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  46. package/dist/MultiSelectDropdownLookup.js +1 -1
  47. package/dist/ProductsWithBannerSection.cjs +20 -27
  48. package/dist/ProductsWithBannerSection.js +93 -78
  49. package/dist/QuattroCardsSection.cjs +2 -0
  50. package/dist/QuattroCardsSection.js +2 -0
  51. package/dist/SalesCampaignsSection.cjs +29 -27
  52. package/dist/SalesCampaignsSection.js +247 -239
  53. package/dist/ShopCardsSection.cjs +5 -3
  54. package/dist/ShopCardsSection.js +29 -25
  55. package/dist/SimpleCategoriesSection.cjs +1 -1
  56. package/dist/SimpleCategoriesSection.js +1 -1
  57. package/dist/SimpleProductsSection.cjs +3 -3
  58. package/dist/SimpleProductsSection.js +62 -51
  59. package/dist/UrgentSaleProductsSection.cjs +6 -6
  60. package/dist/UrgentSaleProductsSection.js +67 -56
  61. package/dist/index-1Dm1i6WK.js +52 -0
  62. package/dist/index-BGTtoLxz.cjs +1 -0
  63. package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
  64. package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
  68. package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
  69. package/dist/{style-BLuyU97E.js → style-DKAOBWn3.js} +1 -0
  70. package/dist/{style-lSjkOR95.cjs → style-Db3VFbfP.cjs} +1 -0
  71. package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
  72. package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
  73. package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
  74. package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
  75. package/package.json +1 -1
  76. package/dist/index-Cm0f72Po.cjs +0 -1
  77. package/dist/index-DGp7FHms.js +0 -42
@@ -1,12 +1,12 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-Dl9xPH4c.cjs"),v=require("./style-lSjkOR95.cjs"),T=require("./Button.cjs"),O=require("./index-BueKsXT8.cjs"),A=w.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),A=require("./useDetectMobile-zkbzoOGV.cjs"),i=require("./utils-Dl9xPH4c.cjs"),R=require("./style-Db3VFbfP.cjs"),$=require("./Button.cjs"),B=require("./index-BueKsXT8.cjs"),D=v.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,y=w.styled.div`
9
+ `,C=v.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -32,7 +32,7 @@
32
32
  width: 100%;
33
33
  max-height: 11.25rem;
34
34
  min-height: 11.25rem;
35
- background-color: ${r.linearGradientAnimation("-90deg")};
35
+ background-color: ${i.linearGradientAnimation("-90deg")};
36
36
  }
37
37
 
38
38
  & .tags-wr {
@@ -44,11 +44,11 @@
44
44
  padding: 0 1rem 1rem 1rem;
45
45
  }
46
46
 
47
- @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
47
+ @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
48
48
  max-height: 100%;
49
49
  min-height: 100%;
50
50
  }
51
- `,S=w.styled.div`
51
+ `,T=v.styled.div`
52
52
  padding: 1rem 1rem 0 1rem;
53
53
  display: flex;
54
54
  flex-direction: column;
@@ -62,13 +62,13 @@
62
62
  }
63
63
 
64
64
  & .info-wr-skeleton {
65
- background-color: ${r.linearGradientAnimation("-90deg")};
65
+ background-color: ${i.linearGradientAnimation("-90deg")};
66
66
  height: 1rem;
67
67
  width: 100%;
68
68
  }
69
69
 
70
70
  & .skeleton-title {
71
- background-color: ${r.linearGradientAnimation("-90deg")};
71
+ background-color: ${i.linearGradientAnimation("-90deg")};
72
72
  height: 1.5rem;
73
73
  width: 70%;
74
74
  }
@@ -78,7 +78,7 @@
78
78
  font-size: 0.875rem;
79
79
  flex: 1;
80
80
  color: var(--gray-700, #4e555f);
81
- ${r.truncateTextInRows(2)}
81
+ ${i.truncateTextInRows(2)}
82
82
  }
83
83
 
84
84
  & .info-wr {
@@ -107,4 +107,4 @@
107
107
  align-items: center;
108
108
  gap: 1rem;
109
109
  }
110
- `,$=u.forwardRef((i,o)=>{const{title:s,imageUrl:m,text:d,numberOfLikes:n,numberOfComments:h,timeToRead:p,publishedAt:c,tags:a,onCardClick:j,timeToReadText:f="{0} min read"}=i;return t.jsxs(y,{ref:o,className:"blog-card",onClick:j,children:[t.jsx(O.ProductImageWrapper,{src:m}),t.jsxs(S,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[r.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),p&&f?`${r.formatString(f,p)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:r.getRoundedNumber(n)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:r.getRoundedNumber(h)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:s}),t.jsx("div",{className:"text-wr",children:d})]}),a&&t.jsx("div",{className:"tags-wr",children:a==null?void 0:a.map((l,b)=>t.jsx(v.BlogTag,{color:l==null?void 0:l.color,children:l==null?void 0:l.name},b))})]})}),D=u.forwardRef(({},i)=>t.jsxs(y,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsxs(S,{children:[t.jsx("div",{className:"info-wr"}),t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"info-wr-skeleton"})]})]})),q=({limit:i=3,isLoading:o=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:i},(m,d)=>t.jsx(D,{isLoading:o},`${s}-skeleton-product-card-${d}`))}),B=({children:i,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:m,keyPrefix:d})=>t.jsx(u.Suspense,{fallbackComponent:o,children:s===!0?t.jsx(q,{isLoading:s,limit:m,keyPrefix:d}):i}),N=u.memo($),L=u.forwardRef((i,o)=>{const{icon:s,title:m,onButtonAction:d,items:n,buttonText:h,timeToReadText:p,limit:c=3,onSelectCard:a=()=>{},isLoading:j=!1,buttonLink:f,getImage:l=()=>{}}=i,b=R.useDetectMobile(),C=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?n==null?void 0:n.map((e,g)=>t.jsx(N,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:p,tags:e==null?void 0:e.tags,onCardClick:()=>a(e==null?void 0:e.titleSlug),imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},g)):n==null?void 0:n.slice(0,c).map((e,g)=>t.jsx(N,{title:e==null?void 0:e.title,imageUrl:l(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,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:p,onCardClick:()=>a(e==null?void 0:e.titleSlug)},g))}),[n,b,c,a]);return t.jsxs(v.RegulatTitleSectionWrapper,{ref:o,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[r.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:m})]}),r.isDefinedNotEmptyString(h)&&r.isDefinedNotEmptyString(f)&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var g;(g=e==null?void 0:e.target)==null||g.blur(),d(f)},borderRadius:"curved",className:"button-link",children:h})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:j,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
110
+ `,q=c.forwardRef((s,m)=>{const{title:n,imageUrl:g,text:d,numberOfLikes:a,numberOfComments:j,timeToRead:f,publishedAt:u,tags:o,onCardClick:w,timeToReadText:h="{0} min read",metadata:l}=s,b=c.useRef();return r.jsxs(C,{ref:b,className:"blog-card","data-accessor":l==null?void 0:l.accessor,name:l==null?void 0:l.name,onClick:t=>w(t,b),children:[r.jsx(B.ProductImageWrapper,{src:g}),r.jsxs(T,{children:[r.jsxs("div",{className:"info-wr",children:[r.jsxs("div",{className:"info-wr-1",children:[r.jsxs("span",{children:[i.formatLocaleDateString(u)," "]}),r.jsx("span",{className:"small-dot",children:"●"}),f&&h?`${i.formatString(h,f)}`:"N/A"]}),r.jsxs("div",{className:"info-wr-2",children:[r.jsxs("span",{className:"info-wr-1",children:[r.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),r.jsx("span",{children:i.getRoundedNumber(a)})]}),r.jsxs("span",{className:"info-wr-1",children:[r.jsx("i",{className:"mng mng-lnc-messages-filled"}),r.jsx("span",{children:i.getRoundedNumber(j)})]})]})]}),r.jsx("div",{className:"text-wr-title",children:n}),r.jsx("div",{className:"text-wr",children:d})]}),o&&r.jsx("div",{className:"tags-wr",children:o==null?void 0:o.map((t,N)=>r.jsx(R.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},N))})]})}),L=c.forwardRef(({},s)=>r.jsxs(C,{className:"blog-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsxs(T,{children:[r.jsx("div",{className:"info-wr"}),r.jsx("div",{className:"skeleton-title"}),r.jsx("div",{className:"info-wr-skeleton"})]})]})),E=({limit:s=3,isLoading:m=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:s},(g,d)=>r.jsx(L,{isLoading:m},`${n}-skeleton-product-card-${d}`))}),I=({children:s,fallbackComponent:m=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:g,keyPrefix:d})=>r.jsx(c.Suspense,{fallbackComponent:m,children:n===!0?r.jsx(E,{isLoading:n,limit:g,keyPrefix:d}):s}),y=c.memo(q),M=c.forwardRef((s,m)=>{const{icon:n,title:g,onButtonAction:d,items:a,buttonText:j,timeToReadText:f,limit:u=3,onSelectCard:o=()=>{},isLoading:w=!1,buttonLink:h,getImage:l=()=>{},componentName:b}=s,t=A.useDetectMobile(),N=c.useMemo(()=>r.jsx(r.Fragment,{children:t===!0?a==null?void 0:a.map((e,p)=>r.jsx(y,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:f,tags:e==null?void 0:e.tags,onCardClick:(O,k)=>o(e==null?void 0:e.titleSlug,k),imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},p)):a==null?void 0:a.slice(0,u).map((e,p)=>r.jsx(y,{title:e==null?void 0:e.title,imageUrl:l(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,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:f,onCardClick:(O,k)=>o(e==null?void 0:e.titleSlug,k),metadata:{name:b,accessor:e==null?void 0:e.accessor}},p))}),[a,t,u,o]);return r.jsxs(R.RegulatTitleSectionWrapper,{ref:m,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[i.isDefinedNotEmptyString(n)&&r.jsx("i",{className:n}),r.jsx("span",{children:g})]}),i.isDefinedNotEmptyString(j)&&i.isDefinedNotEmptyString(h)&&r.jsx($,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var p;(p=e==null?void 0:e.target)==null||p.blur(),d(h)},borderRadius:"curved",className:"button-link",children:j})]}),r.jsx(D,{limit:u,children:r.jsx(I,{isLoading:w,limit:u,keyPrefix:"explore-landing",children:N})})]})});module.exports=M;
@@ -1,21 +1,21 @@
1
- import { jsxs as t, jsx as r, Fragment as v } from "react/jsx-runtime";
2
- import { forwardRef as N, Suspense as A, memo as B, useMemo as L } from "react";
3
- import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as T } from "./consts-BuFChS64.js";
5
- import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as k, p as P, v as z, s as M, w as C, k as w } from "./utils-BdsZgOUE.js";
7
- import { B as I, R as U } from "./style-BLuyU97E.js";
8
- import W from "./Button.js";
9
- import { P as j } from "./index-CF3HhgvN.js";
10
- const E = y.div`
1
+ import { jsxs as t, jsx as r, Fragment as C } from "react/jsx-runtime";
2
+ import { forwardRef as S, useRef as D, Suspense as z, memo as M, useMemo as P } from "react";
3
+ import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as $ } from "./consts-BuFChS64.js";
5
+ import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as y, p as U, v as W, s as j, w as T, k as N } from "./utils-BdsZgOUE.js";
7
+ import { B as E, R as _ } from "./style-DKAOBWn3.js";
8
+ import G from "./Button.js";
9
+ import { P as F } from "./index-CF3HhgvN.js";
10
+ const X = R.div`
11
11
  display: grid;
12
- grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
12
+ grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
13
13
  gap: 1.25rem;
14
14
 
15
- @media (max-width: ${T + "px"}) {
15
+ @media (max-width: ${$ + "px"}) {
16
16
  grid-template-columns: repeat(1, 1fr);
17
17
  }
18
- `, R = y.div`
18
+ `, B = R.div`
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  width: 100%;
@@ -41,7 +41,7 @@ const E = y.div`
41
41
  width: 100%;
42
42
  max-height: 11.25rem;
43
43
  min-height: 11.25rem;
44
- background-color: ${k("-90deg")};
44
+ background-color: ${y("-90deg")};
45
45
  }
46
46
 
47
47
  & .tags-wr {
@@ -53,11 +53,11 @@ const E = y.div`
53
53
  padding: 0 1rem 1rem 1rem;
54
54
  }
55
55
 
56
- @media (max-width: ${T + "px"}) {
56
+ @media (max-width: ${$ + "px"}) {
57
57
  max-height: 100%;
58
58
  min-height: 100%;
59
59
  }
60
- `, O = y.div`
60
+ `, A = R.div`
61
61
  padding: 1rem 1rem 0 1rem;
62
62
  display: flex;
63
63
  flex-direction: column;
@@ -71,13 +71,13 @@ const E = y.div`
71
71
  }
72
72
 
73
73
  & .info-wr-skeleton {
74
- background-color: ${k("-90deg")};
74
+ background-color: ${y("-90deg")};
75
75
  height: 1rem;
76
76
  width: 100%;
77
77
  }
78
78
 
79
79
  & .skeleton-title {
80
- background-color: ${k("-90deg")};
80
+ background-color: ${y("-90deg")};
81
81
  height: 1.5rem;
82
82
  width: 70%;
83
83
  }
@@ -87,7 +87,7 @@ const E = y.div`
87
87
  font-size: 0.875rem;
88
88
  flex: 1;
89
89
  color: var(--gray-700, #4e555f);
90
- ${P(2)}
90
+ ${U(2)}
91
91
  }
92
92
 
93
93
  & .info-wr {
@@ -116,93 +116,105 @@ const E = y.div`
116
116
  align-items: center;
117
117
  gap: 1rem;
118
118
  }
119
- `, _ = N((i, s) => {
119
+ `, Z = S((a, d) => {
120
120
  const {
121
- title: a,
122
- imageUrl: d,
121
+ title: n,
122
+ imageUrl: c,
123
123
  text: m,
124
124
  numberOfLikes: l,
125
- numberOfComments: f,
126
- timeToRead: p,
127
- publishedAt: c,
128
- tags: o,
129
- onCardClick: b,
130
- timeToReadText: u = "{0} min read"
131
- } = i;
125
+ numberOfComments: b,
126
+ timeToRead: u,
127
+ publishedAt: g,
128
+ tags: s,
129
+ onCardClick: w,
130
+ timeToReadText: f = "{0} min read",
131
+ metadata: o
132
+ } = a, h = D();
132
133
  return (
133
134
  // <BlogCardDetailedSkeleton />
134
- /* @__PURE__ */ t(R, { ref: s, className: "blog-card", onClick: b, children: [
135
- /* @__PURE__ */ r(j, { src: d }),
136
- /* @__PURE__ */ t(O, { children: [
137
- /* @__PURE__ */ t("div", { className: "info-wr", children: [
138
- /* @__PURE__ */ t("div", { className: "info-wr-1", children: [
139
- /* @__PURE__ */ t("span", { children: [
140
- M(c),
141
- " "
135
+ /* @__PURE__ */ t(
136
+ B,
137
+ {
138
+ ref: h,
139
+ className: "blog-card",
140
+ "data-accessor": o == null ? void 0 : o.accessor,
141
+ name: o == null ? void 0 : o.name,
142
+ onClick: (i) => w(i, h),
143
+ children: [
144
+ /* @__PURE__ */ r(F, { src: c }),
145
+ /* @__PURE__ */ t(A, { children: [
146
+ /* @__PURE__ */ t("div", { className: "info-wr", children: [
147
+ /* @__PURE__ */ t("div", { className: "info-wr-1", children: [
148
+ /* @__PURE__ */ t("span", { children: [
149
+ j(g),
150
+ " "
151
+ ] }),
152
+ /* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
153
+ u && f ? `${W(f, u)}` : "N/A"
154
+ ] }),
155
+ /* @__PURE__ */ t("div", { className: "info-wr-2", children: [
156
+ /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
157
+ /* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
158
+ /* @__PURE__ */ r("span", { children: T(l) })
159
+ ] }),
160
+ /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
161
+ /* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
162
+ /* @__PURE__ */ r("span", { children: T(b) })
163
+ ] })
164
+ ] })
142
165
  ] }),
143
- /* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
144
- p && u ? `${z(u, p)}` : "N/A"
166
+ /* @__PURE__ */ r("div", { className: "text-wr-title", children: n }),
167
+ /* @__PURE__ */ r("div", { className: "text-wr", children: m })
145
168
  ] }),
146
- /* @__PURE__ */ t("div", { className: "info-wr-2", children: [
147
- /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
148
- /* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
149
- /* @__PURE__ */ r("span", { children: C(l) })
150
- ] }),
151
- /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
152
- /* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
153
- /* @__PURE__ */ r("span", { children: C(f) })
154
- ] })
155
- ] })
156
- ] }),
157
- /* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
158
- /* @__PURE__ */ r("div", { className: "text-wr", children: m })
159
- ] }),
160
- o && /* @__PURE__ */ r("div", { className: "tags-wr", children: o == null ? void 0 : o.map((n, h) => /* @__PURE__ */ r(I, { color: n == null ? void 0 : n.color, children: n == null ? void 0 : n.name }, h)) })
161
- ] })
169
+ s && /* @__PURE__ */ r("div", { className: "tags-wr", children: s == null ? void 0 : s.map((i, k) => /* @__PURE__ */ r(E, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, k)) })
170
+ ]
171
+ }
172
+ )
162
173
  );
163
- }), G = N(({}, i) => /* @__PURE__ */ t(R, { className: "blog-card", children: [
174
+ }), q = S(({}, a) => /* @__PURE__ */ t(B, { className: "blog-card", children: [
164
175
  /* @__PURE__ */ r("div", { className: "skeleton-img" }),
165
- /* @__PURE__ */ t(O, { children: [
176
+ /* @__PURE__ */ t(A, { children: [
166
177
  /* @__PURE__ */ r("div", { className: "info-wr" }),
167
178
  /* @__PURE__ */ r("div", { className: "skeleton-title" }),
168
179
  /* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
169
180
  ] })
170
- ] })), F = ({ limit: i = 3, isLoading: s = !1, keyPrefix: a }) => /* @__PURE__ */ r(v, { children: Array.from({ length: i }, (d, m) => /* @__PURE__ */ r(
171
- G,
181
+ ] })), H = ({ limit: a = 3, isLoading: d = !1, keyPrefix: n }) => /* @__PURE__ */ r(C, { children: Array.from({ length: a }, (c, m) => /* @__PURE__ */ r(
182
+ q,
172
183
  {
173
- isLoading: s
184
+ isLoading: d
174
185
  },
175
- `${a}-skeleton-product-card-${m}`
176
- )) }), X = ({
177
- children: i,
178
- fallbackComponent: s = /* @__PURE__ */ r(v, {}),
179
- isLoading: a = !1,
180
- limit: d,
186
+ `${n}-skeleton-product-card-${m}`
187
+ )) }), J = ({
188
+ children: a,
189
+ fallbackComponent: d = /* @__PURE__ */ r(C, {}),
190
+ isLoading: n = !1,
191
+ limit: c,
181
192
  keyPrefix: m
182
- }) => /* @__PURE__ */ r(A, { fallbackComponent: s, children: a === !0 ? /* @__PURE__ */ r(
183
- F,
193
+ }) => /* @__PURE__ */ r(z, { fallbackComponent: d, children: n === !0 ? /* @__PURE__ */ r(
194
+ H,
184
195
  {
185
- isLoading: a,
186
- limit: d,
196
+ isLoading: n,
197
+ limit: c,
187
198
  keyPrefix: m
188
199
  }
189
- ) : i }), S = B(_), ee = N((i, s) => {
200
+ ) : a }), O = M(Z), ae = S((a, d) => {
190
201
  const {
191
- icon: a,
192
- title: d,
202
+ icon: n,
203
+ title: c,
193
204
  onButtonAction: m,
194
205
  items: l,
195
- buttonText: f,
196
- timeToReadText: p,
197
- limit: c = 3,
198
- onSelectCard: o = () => {
206
+ buttonText: b,
207
+ timeToReadText: u,
208
+ limit: g = 3,
209
+ onSelectCard: s = () => {
199
210
  },
200
- isLoading: b = !1,
201
- buttonLink: u,
202
- getImage: n = () => {
203
- }
204
- } = i, h = D(), $ = L(() => /* @__PURE__ */ r(v, { children: h === !0 ? l == null ? void 0 : l.map((e, g) => /* @__PURE__ */ r(
205
- S,
211
+ isLoading: w = !1,
212
+ buttonLink: f,
213
+ getImage: o = () => {
214
+ },
215
+ componentName: h
216
+ } = a, i = I(), k = P(() => /* @__PURE__ */ r(C, { children: i === !0 ? l == null ? void 0 : l.map((e, p) => /* @__PURE__ */ r(
217
+ O,
206
218
  {
207
219
  title: e == null ? void 0 : e.title,
208
220
  text: e == null ? void 0 : e.description,
@@ -211,17 +223,18 @@ const E = y.div`
211
223
  numberOfComments: e == null ? void 0 : e.numberOfComments,
212
224
  publishedAt: e == null ? void 0 : e.publishedAt,
213
225
  timeToRead: e == null ? void 0 : e.timeToRead,
214
- timeToReadText: p,
226
+ timeToReadText: u,
215
227
  tags: e == null ? void 0 : e.tags,
216
- onCardClick: () => o(e == null ? void 0 : e.titleSlug),
217
- imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
228
+ onCardClick: (L, v) => s(e == null ? void 0 : e.titleSlug, v),
229
+ imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
230
+ metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
218
231
  },
219
- g
220
- )) : l == null ? void 0 : l.slice(0, c).map((e, g) => /* @__PURE__ */ r(
221
- S,
232
+ p
233
+ )) : l == null ? void 0 : l.slice(0, g).map((e, p) => /* @__PURE__ */ r(
234
+ O,
222
235
  {
223
236
  title: e == null ? void 0 : e.title,
224
- imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
237
+ imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
225
238
  text: e == null ? void 0 : e.description,
226
239
  titleSlug: e == null ? void 0 : e.titleSlug,
227
240
  tags: e == null ? void 0 : e.tags,
@@ -229,44 +242,45 @@ const E = y.div`
229
242
  numberOfComments: e == null ? void 0 : e.numberOfComments,
230
243
  publishedAt: e == null ? void 0 : e.publishedAt,
231
244
  timeToRead: e == null ? void 0 : e.timeToRead,
232
- timeToReadText: p,
233
- onCardClick: () => o(e == null ? void 0 : e.titleSlug)
245
+ timeToReadText: u,
246
+ onCardClick: (L, v) => s(e == null ? void 0 : e.titleSlug, v),
247
+ metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
234
248
  },
235
- g
236
- )) }), [l, h, c, o]);
237
- return /* @__PURE__ */ t(U, { ref: s, children: [
249
+ p
250
+ )) }), [l, i, g, s]);
251
+ return /* @__PURE__ */ t(_, { ref: d, children: [
238
252
  /* @__PURE__ */ t("div", { className: "regular-title", children: [
239
253
  /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
240
- w(a) && /* @__PURE__ */ r("i", { className: a }),
241
- /* @__PURE__ */ r("span", { children: d })
254
+ N(n) && /* @__PURE__ */ r("i", { className: n }),
255
+ /* @__PURE__ */ r("span", { children: c })
242
256
  ] }),
243
- w(f) && w(u) && /* @__PURE__ */ r(
244
- W,
257
+ N(b) && N(f) && /* @__PURE__ */ r(
258
+ G,
245
259
  {
246
260
  type: "button",
247
261
  btnType: "tinted",
248
262
  color: "neutral",
249
263
  onClick: (e) => {
250
- var g;
251
- (g = e == null ? void 0 : e.target) == null || g.blur(), m(u);
264
+ var p;
265
+ (p = e == null ? void 0 : e.target) == null || p.blur(), m(f);
252
266
  },
253
267
  borderRadius: "curved",
254
268
  className: "button-link",
255
- children: f
269
+ children: b
256
270
  }
257
271
  )
258
272
  ] }),
259
- /* @__PURE__ */ r(E, { limit: c, children: /* @__PURE__ */ r(
260
- X,
273
+ /* @__PURE__ */ r(X, { limit: g, children: /* @__PURE__ */ r(
274
+ J,
261
275
  {
262
- isLoading: b,
263
- limit: c,
276
+ isLoading: w,
277
+ limit: g,
264
278
  keyPrefix: "explore-landing",
265
- children: $
279
+ children: k
266
280
  }
267
281
  ) })
268
282
  ] });
269
283
  });
270
284
  export {
271
- ee as default
285
+ ae as default
272
286
  };
@@ -1,9 +1,9 @@
1
- "use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),b=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./index-Cm0f72Po.cjs"),C=require("./suspense-large-CFmcSzX-.cjs"),f=p.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),a=require("react"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-BGTtoLxz.cjs"),L=require("./suspense-large-CFmcSzX-.cjs"),M=q.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,c=s.memo(q.BlogCardLarge),j=s.forwardRef((l,d)=>{const{items:t,onSelectCard:o=()=>{},limit:r=2,isLoading:g=!1,getImage:u=()=>{}}=l,a=b.useDetectMobile(),m=s.useMemo(()=>i.jsx(i.Fragment,{children:a===!0?t==null?void 0:t.map((e,n)=>i.jsx(c,{title:e==null?void 0:e.title,imageUrl:u(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:()=>o(e==null?void 0:e.titleSlug)},n)):t==null?void 0:t.slice(0,r).map((e,n)=>i.jsx(c,{title:e==null?void 0:e.title,imageUrl:u(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:()=>o(e==null?void 0:e.titleSlug)},n))}),[t,a,r,o]);return i.jsx(f,{ref:d,limit:r,children:i.jsx(C.SuspenseBlogLarge,{isLoading:g,limit:r,keyPrefix:"explore-landing",children:m})})});module.exports=j;
9
+ `,m=a.memo(j.BlogCardLarge),B=a.forwardRef((o,g)=>{const{items:t,onSelectCard:s=()=>{},limit:i=2,isLoading:p=!1,getImage:c=()=>{},componentName:u}=o,d=f.useDetectMobile(),S=a.useMemo(()=>r.jsx(r.Fragment,{children:d===!0?t==null?void 0:t.map((e,l)=>r.jsx(m,{title:e==null?void 0:e.title,imageUrl:c(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:(b,n)=>s(e==null?void 0:e.titleSlug,n),metadata:{name:u,accessor:e==null?void 0:e.accessor}},l)):t==null?void 0:t.slice(0,i).map((e,l)=>r.jsx(m,{title:e==null?void 0:e.title,imageUrl:c(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:(b,n)=>s(e==null?void 0:e.titleSlug,n),metadata:{name:u,accessor:e==null?void 0:e.accessor}},l))}),[t,d,i,s]);return r.jsx(M,{ref:g,limit:i,children:r.jsx(L.SuspenseBlogLarge,{isLoading:p,limit:i,keyPrefix:"explore-landing",children:S})})});module.exports=B;
@@ -1,60 +1,63 @@
1
- import { jsx as r, Fragment as p } from "react/jsx-runtime";
2
- import { memo as c, forwardRef as f, useMemo as S } from "react";
3
- import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as b } from "./consts-BuFChS64.js";
5
- import { u as B } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { B as M } from "./index-DGp7FHms.js";
7
- import { S as L } from "./suspense-large-BMO7JH52.js";
8
- const h = C.div`
1
+ import { jsx as r, Fragment as S } from "react/jsx-runtime";
2
+ import { memo as C, forwardRef as b, useMemo as B } from "react";
3
+ import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as L } from "./consts-BuFChS64.js";
5
+ import { u as h } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { B as T } from "./index-1Dm1i6WK.js";
7
+ import { S as U } from "./suspense-large-BMO7JH52.js";
8
+ const k = M.div`
9
9
  display: grid;
10
- grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
10
+ grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
11
11
  gap: 1.25rem;
12
12
 
13
- @media (max-width: ${b + "px"}) {
13
+ @media (max-width: ${L + "px"}) {
14
14
  grid-template-columns: repeat(1, 1fr);
15
15
  }
16
- `, d = c(M), w = f((l, s) => {
16
+ `, c = C(T), _ = b((o, u) => {
17
17
  const {
18
- items: e,
19
- onSelectCard: o = () => {
18
+ items: t,
19
+ onSelectCard: a = () => {
20
20
  },
21
21
  limit: i = 2,
22
- isLoading: u = !1,
23
- getImage: m = () => {
24
- }
25
- } = l, n = B(), g = S(() => /* @__PURE__ */ r(p, { children: n === !0 ? e == null ? void 0 : e.map((t, a) => /* @__PURE__ */ r(
26
- d,
22
+ isLoading: g = !1,
23
+ getImage: n = () => {
24
+ },
25
+ componentName: s
26
+ } = o, d = h(), p = B(() => /* @__PURE__ */ r(S, { children: d === !0 ? t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ r(
27
+ c,
27
28
  {
28
- title: t == null ? void 0 : t.title,
29
- imageUrl: m(t == null ? void 0 : t.imageUrl, t == null ? void 0 : t.uuid) || null,
30
- text: t == null ? void 0 : t.description,
31
- titleSlug: t == null ? void 0 : t.titleSlug,
32
- buttonText: t == null ? void 0 : t.buttonText,
33
- onCardClick: () => o(t == null ? void 0 : t.titleSlug)
29
+ title: e == null ? void 0 : e.title,
30
+ imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
31
+ text: e == null ? void 0 : e.description,
32
+ titleSlug: e == null ? void 0 : e.titleSlug,
33
+ buttonText: e == null ? void 0 : e.buttonText,
34
+ onCardClick: (f, m) => a(e == null ? void 0 : e.titleSlug, m),
35
+ metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
34
36
  },
35
- a
36
- )) : e == null ? void 0 : e.slice(0, i).map((t, a) => /* @__PURE__ */ r(
37
- d,
37
+ l
38
+ )) : t == null ? void 0 : t.slice(0, i).map((e, l) => /* @__PURE__ */ r(
39
+ c,
38
40
  {
39
- title: t == null ? void 0 : t.title,
40
- imageUrl: m(t == null ? void 0 : t.imageUrl, t == null ? void 0 : t.uuid) || null,
41
- text: t == null ? void 0 : t.description,
42
- titleSlug: t == null ? void 0 : t.titleSlug,
43
- buttonText: t == null ? void 0 : t.buttonText,
44
- onCardClick: () => o(t == null ? void 0 : t.titleSlug)
41
+ title: e == null ? void 0 : e.title,
42
+ imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
43
+ text: e == null ? void 0 : e.description,
44
+ titleSlug: e == null ? void 0 : e.titleSlug,
45
+ buttonText: e == null ? void 0 : e.buttonText,
46
+ onCardClick: (f, m) => a(e == null ? void 0 : e.titleSlug, m),
47
+ metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
45
48
  },
46
- a
47
- )) }), [e, n, i, o]);
48
- return /* @__PURE__ */ r(h, { ref: s, limit: i, children: /* @__PURE__ */ r(
49
- L,
49
+ l
50
+ )) }), [t, d, i, a]);
51
+ return /* @__PURE__ */ r(k, { ref: u, limit: i, children: /* @__PURE__ */ r(
52
+ U,
50
53
  {
51
- isLoading: u,
54
+ isLoading: g,
52
55
  limit: i,
53
56
  keyPrefix: "explore-landing",
54
- children: g
57
+ children: p
55
58
  }
56
59
  ) });
57
60
  });
58
61
  export {
59
- w as default
62
+ _ as default
60
63
  };
@@ -1,12 +1,12 @@
1
- "use strict";const r=require("react/jsx-runtime"),m=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),q=require("./useDetectMobile-zkbzoOGV.cjs"),p=require("./utils-Dl9xPH4c.cjs"),S=require("./style-lSjkOR95.cjs"),R=require("./Button.cjs"),B=require("./Link.cjs"),M=require("./index-BueKsXT8.cjs"),T=h.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./utils-Dl9xPH4c.cjs"),k=require("./style-Db3VFbfP.cjs"),T=require("./Button.cjs"),$=require("./Link.cjs"),I=require("./index-BueKsXT8.cjs"),P=w.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,b=h.styled.div`
9
+ `,N=w.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -30,7 +30,7 @@
30
30
  width: 100%;
31
31
  max-height: 12.5625rem;
32
32
  min-height: 12.5625rem;
33
- background-color: ${p.linearGradientAnimation("-90deg")};
33
+ background-color: ${f.linearGradientAnimation("-90deg")};
34
34
  }
35
35
 
36
36
  & .action {
@@ -56,9 +56,9 @@
56
56
  padding: 1rem;
57
57
  }
58
58
 
59
- @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
59
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
60
60
  }
61
- `,v=h.styled.div`
61
+ `,C=w.styled.div`
62
62
  padding: 1rem 1rem 0 1rem;
63
63
  display: flex;
64
64
  flex-direction: column;
@@ -76,6 +76,6 @@
76
76
  font-size: 0.875rem;
77
77
  flex: 1;
78
78
  color: var(--gray-700, #4e555f);
79
- ${p.truncateTextInRows(3)}
79
+ ${f.truncateTextInRows(3)}
80
80
  }
81
- `,$=m.forwardRef((t,s)=>{const{title:i,imageUrl:c,text:n,options:a,onCardClick:g,readMoreText:o="Read more"}=t;return r.jsxs(b,{ref:s,className:"blog-card",onClick:g,children:[r.jsx(M.ProductImageWrapper,{src:c}),r.jsxs(v,{children:[r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:n})]}),a&&r.jsx("div",{className:"tags-wr",children:a==null?void 0:a.map((l,u)=>r.jsx(S.BlogTag,{color:l==null?void 0:l.color,children:l==null?void 0:l.name},u))}),r.jsx(B,{className:"action",color:"gray",onClick:g,children:o})]})}),I=m.forwardRef(({},t)=>r.jsxs(b,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(v,{})]})),P=({limit:t=3,isLoading:s=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(c,n)=>r.jsx(I,{isLoading:s},`${i}-skeleton-product-card-${n}`))}),_=({children:t,fallbackComponent:s=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:c,keyPrefix:n})=>r.jsx(m.Suspense,{fallbackComponent:s,children:i===!0?r.jsx(P,{isLoading:i,limit:c,keyPrefix:n}):t}),w=m.memo($),E=m.forwardRef((t,s)=>{const{icon:i,title:c,onButtonAction:n=()=>{},onSelectCard:a=()=>{},buttonLink:g,items:o,buttonText:l,limit:u=3,isLoading:k=!1,getImage:f=()=>{},readMoreText:j="Read more"}=t,N=q.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?o==null?void 0:o.map((e,d)=>r.jsx(w,{title:e==null?void 0:e.title,imageUrl:f(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,readMoreText:j,options:e==null?void 0:e.options,onCardClick:()=>a(e==null?void 0:e.titleSlug)},d)):o==null?void 0:o.slice(0,u).map((e,d)=>r.jsx(w,{title:e==null?void 0:e.title,imageUrl:f(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,readMoreText:j,options:e==null?void 0:e.options,onCardClick:()=>a(e==null?void 0:e.titleSlug)},d))}),[o]);return r.jsxs(S.RegulatTitleSectionWrapper,{ref:s,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[p.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:c})]}),p.isDefinedNotEmptyString(g)&&r.jsx(R,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var d;(d=e==null?void 0:e.target)==null||d.blur(),n(g)},borderRadius:"curved",className:"button-link",children:l})]}),r.jsx(T,{limit:u,children:r.jsx(_,{isLoading:k,limit:u,keyPrefix:"explore-landing",children:C})})]})});module.exports=E;
81
+ `,_=c.forwardRef((t,d)=>{const{title:o,imageUrl:m,text:l,options:a,onCardClick:p,readMoreText:s="Read more",metadata:n}=t,g=c.useRef();return r.jsxs(N,{ref:g,name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.name,className:"blog-card",onClick:i=>p(i,g),children:[r.jsx(I.ProductImageWrapper,{src:m}),r.jsxs(C,{children:[r.jsx("div",{className:"text-wr-title",children:o}),r.jsx("div",{className:"text-wr",children:l})]}),a&&r.jsx("div",{className:"tags-wr",children:a==null?void 0:a.map((i,h)=>r.jsx(k.BlogTag,{color:i==null?void 0:i.color,children:i==null?void 0:i.name},h))}),r.jsx($,{className:"action",color:"gray",onClick:p,children:s})]})}),E=c.forwardRef(({},t)=>r.jsxs(N,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(C,{})]})),z=({limit:t=3,isLoading:d=!1,keyPrefix:o})=>r.jsx(r.Fragment,{children:Array.from({length:t},(m,l)=>r.jsx(E,{isLoading:d},`${o}-skeleton-product-card-${l}`))}),U=({children:t,fallbackComponent:d=r.jsx(r.Fragment,{}),isLoading:o=!1,limit:m,keyPrefix:l})=>r.jsx(c.Suspense,{fallbackComponent:d,children:o===!0?r.jsx(z,{isLoading:o,limit:m,keyPrefix:l}):t}),b=c.memo(_),W=c.forwardRef((t,d)=>{const{icon:o,title:m,onButtonAction:l=()=>{},onSelectCard:a=()=>{},buttonLink:p,items:s,buttonText:n,limit:g=3,isLoading:i=!1,getImage:h=()=>{},readMoreText:y="Read more",componentName:S}=t,R=M.useDetectMobile(),q=c.useMemo(()=>r.jsx(r.Fragment,{children:R===!0?s==null?void 0:s.map((e,u)=>r.jsx(b,{title:e==null?void 0:e.title,imageUrl:h(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,readMoreText:y,options:e==null?void 0:e.options,onCardClick:(B,j)=>a(e==null?void 0:e.titleSlug,j),metadata:{name:S,accessor:e==null?void 0:e.accessor}},u)):s==null?void 0:s.slice(0,g).map((e,u)=>r.jsx(b,{title:e==null?void 0:e.title,imageUrl:h(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,readMoreText:y,options:e==null?void 0:e.options,onCardClick:(B,j)=>a(e==null?void 0:e.titleSlug,j),metadata:{name:S,accessor:e==null?void 0:e.accessor}},u))}),[s]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:d,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[f.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:m})]}),f.isDefinedNotEmptyString(p)&&r.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var u;(u=e==null?void 0:e.target)==null||u.blur(),l(p)},borderRadius:"curved",className:"button-link",children:n})]}),r.jsx(P,{limit:g,children:r.jsx(U,{isLoading:i,limit:g,keyPrefix:"explore-landing",children:q})})]})});module.exports=W;