@lanaco/lnc-react-ui 4.0.185 → 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 +16 -15
  46. package/dist/MasonryGeneralCardsSection.js +83 -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,11 +1,11 @@
1
- import { jsx as r, Fragment as s } from "react/jsx-runtime";
2
- import { Suspense as i, forwardRef as g } from "react";
3
- import { B as d } from "./index-BipuzfLW.js";
4
- import { S as u, b as f } from "./style-CXMUA6cI.js";
1
+ import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
+ import { Suspense as g, forwardRef as d } from "react";
3
+ import { B as u } from "./index-DMHtIdm-.js";
4
+ import { S as f, b as p } from "./style-CXMUA6cI.js";
5
5
  import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { M as p } from "./consts-BuFChS64.js";
7
- const S = c(u)`
8
- @media (max-width: ${p + "px"}) {
6
+ import { M as S } from "./consts-BuFChS64.js";
7
+ const h = c(f)`
8
+ @media (max-width: ${S + "px"}) {
9
9
  & > div {
10
10
  height: 13.25rem;
11
11
 
@@ -19,8 +19,8 @@ const S = c(u)`
19
19
  box-shadow: none;
20
20
  }
21
21
  }
22
- `, h = ({ keyPrefix: o }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(
23
- f,
22
+ `, m = ({ keyPrefix: o }) => /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(
23
+ p,
24
24
  {
25
25
  height: "11.25rem",
26
26
  borderRadius: "0.75rem"
@@ -28,31 +28,33 @@ const S = c(u)`
28
28
  `${o}-1`
29
29
  ) }), b = ({
30
30
  keyPrefix: o,
31
- isLoading: t = !1,
32
- fallbackComponent: n = /* @__PURE__ */ r(s, {}),
31
+ isLoading: n = !1,
32
+ fallbackComponent: t = /* @__PURE__ */ r(i, {}),
33
33
  children: e
34
- }) => /* @__PURE__ */ r(i, { fallbackComponent: n, children: t === !0 ? /* @__PURE__ */ r(h, { keyPrefix: o }) : e }), w = g((o, t) => {
34
+ }) => /* @__PURE__ */ r(g, { fallbackComponent: t, children: n === !0 ? /* @__PURE__ */ r(m, { keyPrefix: o }) : e }), I = d((o, n) => {
35
35
  const {
36
- isLoading: n,
36
+ isLoading: t,
37
37
  item: e,
38
38
  onSelectCard: l = () => {
39
39
  },
40
40
  getImage: a = () => {
41
- }
41
+ },
42
+ LinkComponent: s
42
43
  } = o;
43
- return /* @__PURE__ */ r(b, { isLoading: n, keyPrefix: "blogs-single-skeleton", children: /* @__PURE__ */ r(
44
- d,
44
+ return /* @__PURE__ */ r(b, { isLoading: t, keyPrefix: "blogs-single-skeleton", children: /* @__PURE__ */ r(
45
+ u,
45
46
  {
46
- ref: t,
47
+ ref: n,
47
48
  title: e == null ? void 0 : e.title,
48
49
  imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
49
50
  text: e == null ? void 0 : e.description,
50
51
  titleSlug: e == null ? void 0 : e.titleSlug,
51
52
  buttonText: e == null ? void 0 : e.buttonText,
52
- onCardClick: () => l(e == null ? void 0 : e.titleSlug)
53
+ onCardClick: () => l(e == null ? void 0 : e.titleSlug),
54
+ LinkComponent: s
53
55
  }
54
56
  ) });
55
57
  });
56
58
  export {
57
- w as default
59
+ I as default
58
60
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-RnrgDDZP.cjs"),C=require("./style-CkcozOY6.cjs"),O=require("./Button.cjs"),q=require("./index-uwl7BjRF.cjs"),L=require("./index-D-3I_Ppj.cjs"),B=N.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),O=require("./Button.cjs"),q=require("./index-uwl7BjRF.cjs"),B=require("./index-D-3I_Ppj.cjs"),D=v.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -6,7 +6,7 @@
6
6
  @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,D=N.styled.a`
9
+ `,$=v.styled.a`
10
10
  text-decoration: none;
11
11
  color: var(--gray-950);
12
12
  display: flex;
@@ -49,7 +49,7 @@
49
49
  max-height: 100%;
50
50
  min-height: 100%;
51
51
  }
52
- `,$=N.styled.div`
52
+ `,A=v.styled.div`
53
53
  display: flex;
54
54
  flex-direction: column;
55
55
  gap: 0;
@@ -94,4 +94,4 @@
94
94
  align-items: center;
95
95
  gap: 1rem;
96
96
  }
97
- `,A=u.forwardRef((o,v)=>{const{title:p,imageUrl:j,text:w,numberOfLikes:i,numberOfComments:f,timeToRead:c,publishedAt:d,tags:n,onCardClick:h,timeToReadText:m="{0} min read",metadata:s,titleSlug:b}=o,g=u.useRef();return t.jsxs(D,{ref:g,className:"blog-card","data-accessor":s==null?void 0:s.accessor,name:s==null?void 0:s.name,onClick:r=>h(r,g),href:`/blog/${b}`,children:[t.jsx(q.ProductImageWrapper,{src:j}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs($,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[a.formatLocaleDateString(d)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),c&&m?`${a.formatString(m,c)}`:"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:a.getRoundedNumber(i)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:a.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:p}),t.jsx("div",{className:"text-wr",children:w})]}),n&&t.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((r,e)=>t.jsx(C.BlogTag,{color:r==null?void 0:r.color,children:r==null?void 0:r.name},e))})]})]})}),S=u.memo(A),E=u.forwardRef((o,v)=>{const{icon:p,title:j,onButtonAction:w,items:i,buttonText:f,timeToReadText:c,limit:d=3,onSelectCard:n=()=>{},isLoading:h=!1,buttonLink:m,getImage:s=()=>{},componentName:b}=o,g=T.useDetectMobile(),r=u.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?i==null?void 0:i.map((e,l)=>t.jsx(S,{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:c,tags:e==null?void 0:e.tags,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),imageUrl:s(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},l)):i==null?void 0:i.slice(0,d).map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:s(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:c,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),metadata:{name:b,accessor:e==null?void 0:e.accessor}},l))}),[i,g,d,n]);return t.jsxs(C.RegulatTitleSectionWrapper,{ref:v,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:j})]}),a.isDefinedNotEmptyString(f)&&a.isDefinedNotEmptyString(m)&&!h&&t.jsx(O,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),w(m)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(L.SuspenseBlogsSectionDetailed,{isLoading:h,keyPrefix:"blogs-detailed-skeleton",children:t.jsx(B,{limit:d,children:r})})]})});module.exports=E;
97
+ `,E=u.forwardRef((o,S)=>{const{title:p,imageUrl:w,text:y,numberOfLikes:r,numberOfComments:f,timeToRead:l,publishedAt:c,tags:s,onCardClick:h,timeToReadText:d="{0} min read",metadata:i,titleSlug:m,LinkComponent:g}=o,b=g||"a",j=u.useRef();return t.jsxs($,{ref:j,className:"blog-card","data-accessor":i==null?void 0:i.accessor,name:i==null?void 0:i.name,onClick:e=>h(e,j),as:b,...g?{to:`/blog/${m}`}:{href:`/blog/${m}`},children:[t.jsx(q.ProductImageWrapper,{src:w}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs(A,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[a.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),l&&d?`${a.formatString(d,l)}`:"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:a.getRoundedNumber(r)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:a.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:p}),t.jsx("div",{className:"text-wr",children:y})]}),s&&t.jsx("div",{className:"tags-wr",children:s==null?void 0:s.map((e,n)=>t.jsx(k.BlogTag,{color:e==null?void 0:e.color,children:e==null?void 0:e.name},n))})]})]})}),C=u.memo(E),I=u.forwardRef((o,S)=>{const{icon:p,title:w,onButtonAction:y,items:r,buttonText:f,timeToReadText:l,limit:c=3,onSelectCard:s=()=>{},isLoading:h=!1,buttonLink:d,getImage:i=()=>{},componentName:m,LinkComponent:g}=o,b=L.useDetectMobile(),j=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?r==null?void 0:r.map((e,n)=>t.jsx(C,{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:l,tags:e==null?void 0:e.tags,onCardClick:(T,N)=>s(e==null?void 0:e.titleSlug,N),imageUrl:i(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},n)):r==null?void 0:r.slice(0,c).map((e,n)=>t.jsx(C,{title:e==null?void 0:e.title,imageUrl:i(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:l,onCardClick:(T,N)=>s(e==null?void 0:e.titleSlug,N),metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},n))}),[r,b,c,s]);return t.jsxs(k.RegulatTitleSectionWrapper,{ref:S,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:w})]}),a.isDefinedNotEmptyString(f)&&a.isDefinedNotEmptyString(d)&&!h&&t.jsx(O,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),y(d)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(B.SuspenseBlogsSectionDetailed,{isLoading:h,keyPrefix:"blogs-detailed-skeleton",children:t.jsx(D,{limit:c,children:j})})]})});module.exports=I;
@@ -1,22 +1,22 @@
1
1
  import { jsxs as r, jsx as t, Fragment as B } from "react/jsx-runtime";
2
- import { forwardRef as R, useRef as L, memo as A, useMemo as $ } from "react";
3
- import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as T } from "./consts-BuFChS64.js";
5
- import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as D, s as M, q as j, v as k, k as y } from "./utils-Dc5zIpaz.js";
7
- import { B as I, R as P } from "./style-C7FUSHmS.js";
8
- import U from "./Button.js";
9
- import { P as W } from "./index-C_NnINik.js";
10
- import { S as E } from "./index-BovNbKxB.js";
11
- const _ = N.div`
2
+ import { forwardRef as T, useRef as $, memo as A, useMemo as z } from "react";
3
+ import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as L } from "./consts-BuFChS64.js";
5
+ import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as M, s as j, q as I, v as S, k as N } from "./utils-Dc5zIpaz.js";
7
+ import { B as P, R as U } from "./style-C7FUSHmS.js";
8
+ import W from "./Button.js";
9
+ import { P as E } from "./index-C_NnINik.js";
10
+ import { S as _ } from "./index-BovNbKxB.js";
11
+ const q = C.div`
12
12
  display: grid;
13
- grid-template-columns: ${(s) => `repeat(${s.limit}, minmax(0, 1fr))`};
13
+ grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
15
15
 
16
- @media (max-width: ${T + "px"}) {
16
+ @media (max-width: ${L + "px"}) {
17
17
  grid-template-columns: repeat(1, 1fr);
18
18
  }
19
- `, q = N.a`
19
+ `, F = C.a`
20
20
  text-decoration: none;
21
21
  color: var(--gray-950);
22
22
  display: flex;
@@ -55,11 +55,11 @@ const _ = N.div`
55
55
  gap: 0.5rem;
56
56
  }
57
57
 
58
- @media (max-width: ${T + "px"}) {
58
+ @media (max-width: ${L + "px"}) {
59
59
  max-height: 100%;
60
60
  min-height: 100%;
61
61
  }
62
- `, F = N.div`
62
+ `, G = C.div`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  gap: 0;
@@ -75,7 +75,7 @@ const _ = N.div`
75
75
  font-size: 0.875rem;
76
76
  flex: 1;
77
77
  color: var(--gray-700, #4e555f);
78
- ${D(2)}
78
+ ${M(2)}
79
79
  }
80
80
 
81
81
  & .info-wr {
@@ -104,80 +104,83 @@ const _ = N.div`
104
104
  align-items: center;
105
105
  gap: 1rem;
106
106
  }
107
- `, G = R((s, S) => {
107
+ `, X = T((l, k) => {
108
108
  const {
109
- title: p,
110
- imageUrl: b,
111
- text: w,
112
- numberOfLikes: a,
109
+ title: g,
110
+ imageUrl: w,
111
+ text: v,
112
+ numberOfLikes: i,
113
113
  numberOfComments: f,
114
- timeToRead: m,
115
- publishedAt: c,
116
- tags: l,
114
+ timeToRead: s,
115
+ publishedAt: m,
116
+ tags: o,
117
117
  onCardClick: u,
118
- timeToReadText: d = "{0} min read",
119
- metadata: o,
120
- titleSlug: h
121
- } = s, g = L();
118
+ timeToReadText: c = "{0} min read",
119
+ metadata: a,
120
+ titleSlug: d,
121
+ LinkComponent: p
122
+ } = l, h = p || "a", b = $();
122
123
  return /* @__PURE__ */ r(
123
- q,
124
+ F,
124
125
  {
125
- ref: g,
126
+ ref: b,
126
127
  className: "blog-card",
127
- "data-accessor": o == null ? void 0 : o.accessor,
128
- name: o == null ? void 0 : o.name,
129
- onClick: (i) => u(i, g),
130
- href: `/blog/${h}`,
128
+ "data-accessor": a == null ? void 0 : a.accessor,
129
+ name: a == null ? void 0 : a.name,
130
+ onClick: (e) => u(e, b),
131
+ as: h,
132
+ ...p ? { to: `/blog/${d}` } : { href: `/blog/${d}` },
131
133
  children: [
132
- /* @__PURE__ */ t(W, { src: b }),
134
+ /* @__PURE__ */ t(E, { src: w }),
133
135
  /* @__PURE__ */ r("div", { className: "blog-card-content", children: [
134
- /* @__PURE__ */ r(F, { children: [
136
+ /* @__PURE__ */ r(G, { children: [
135
137
  /* @__PURE__ */ r("div", { className: "info-wr", children: [
136
138
  /* @__PURE__ */ r("div", { className: "info-wr-1", children: [
137
139
  /* @__PURE__ */ r("span", { children: [
138
- j(c),
140
+ I(m),
139
141
  " "
140
142
  ] }),
141
143
  /* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
142
- m && d ? `${M(d, m)}` : "N/A"
144
+ s && c ? `${j(c, s)}` : "N/A"
143
145
  ] }),
144
146
  /* @__PURE__ */ r("div", { className: "info-wr-2", children: [
145
147
  /* @__PURE__ */ r("span", { className: "info-wr-1", children: [
146
148
  /* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
147
- /* @__PURE__ */ t("span", { children: k(a) })
149
+ /* @__PURE__ */ t("span", { children: S(i) })
148
150
  ] }),
149
151
  /* @__PURE__ */ r("span", { className: "info-wr-1", children: [
150
152
  /* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
151
- /* @__PURE__ */ t("span", { children: k(f) })
153
+ /* @__PURE__ */ t("span", { children: S(f) })
152
154
  ] })
153
155
  ] })
154
156
  ] }),
155
- /* @__PURE__ */ t("div", { className: "text-wr-title", children: p }),
156
- /* @__PURE__ */ t("div", { className: "text-wr", children: w })
157
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: g }),
158
+ /* @__PURE__ */ t("div", { className: "text-wr", children: v })
157
159
  ] }),
158
- l && /* @__PURE__ */ t("div", { className: "tags-wr", children: l == null ? void 0 : l.map((i, e) => /* @__PURE__ */ t(I, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, e)) })
160
+ o && /* @__PURE__ */ t("div", { className: "tags-wr", children: o == null ? void 0 : o.map((e, n) => /* @__PURE__ */ t(P, { color: e == null ? void 0 : e.color, children: e == null ? void 0 : e.name }, n)) })
159
161
  ] })
160
162
  ]
161
163
  }
162
164
  );
163
- }), C = A(G), te = R((s, S) => {
165
+ }), R = A(X), re = T((l, k) => {
164
166
  const {
165
- icon: p,
166
- title: b,
167
- onButtonAction: w,
168
- items: a,
167
+ icon: g,
168
+ title: w,
169
+ onButtonAction: v,
170
+ items: i,
169
171
  buttonText: f,
170
- timeToReadText: m,
171
- limit: c = 3,
172
- onSelectCard: l = () => {
172
+ timeToReadText: s,
173
+ limit: m = 3,
174
+ onSelectCard: o = () => {
173
175
  },
174
176
  isLoading: u = !1,
175
- buttonLink: d,
176
- getImage: o = () => {
177
+ buttonLink: c,
178
+ getImage: a = () => {
177
179
  },
178
- componentName: h
179
- } = s, g = z(), i = $(() => /* @__PURE__ */ t(B, { children: g === !0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ t(
180
- C,
180
+ componentName: d,
181
+ LinkComponent: p
182
+ } = l, h = D(), b = z(() => /* @__PURE__ */ t(B, { children: h === !0 ? i == null ? void 0 : i.map((e, n) => /* @__PURE__ */ t(
183
+ R,
181
184
  {
182
185
  title: e == null ? void 0 : e.title,
183
186
  text: e == null ? void 0 : e.description,
@@ -186,18 +189,19 @@ const _ = N.div`
186
189
  numberOfComments: e == null ? void 0 : e.numberOfComments,
187
190
  publishedAt: e == null ? void 0 : e.publishedAt,
188
191
  timeToRead: e == null ? void 0 : e.timeToRead,
189
- timeToReadText: m,
192
+ timeToReadText: s,
190
193
  tags: e == null ? void 0 : e.tags,
191
- onCardClick: (O, v) => l(e == null ? void 0 : e.titleSlug, v),
192
- imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
193
- metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
194
+ onCardClick: (O, y) => o(e == null ? void 0 : e.titleSlug, y),
195
+ imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
196
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
197
+ LinkComponent: p
194
198
  },
195
199
  n
196
- )) : a == null ? void 0 : a.slice(0, c).map((e, n) => /* @__PURE__ */ t(
197
- C,
200
+ )) : i == null ? void 0 : i.slice(0, m).map((e, n) => /* @__PURE__ */ t(
201
+ R,
198
202
  {
199
203
  title: e == null ? void 0 : e.title,
200
- imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
204
+ imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
201
205
  text: e == null ? void 0 : e.description,
202
206
  titleSlug: e == null ? void 0 : e.titleSlug,
203
207
  tags: e == null ? void 0 : e.tags,
@@ -205,27 +209,28 @@ const _ = N.div`
205
209
  numberOfComments: e == null ? void 0 : e.numberOfComments,
206
210
  publishedAt: e == null ? void 0 : e.publishedAt,
207
211
  timeToRead: e == null ? void 0 : e.timeToRead,
208
- timeToReadText: m,
209
- onCardClick: (O, v) => l(e == null ? void 0 : e.titleSlug, v),
210
- metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
212
+ timeToReadText: s,
213
+ onCardClick: (O, y) => o(e == null ? void 0 : e.titleSlug, y),
214
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
215
+ LinkComponent: p
211
216
  },
212
217
  n
213
- )) }), [a, g, c, l]);
214
- return /* @__PURE__ */ r(P, { ref: S, children: [
218
+ )) }), [i, h, m, o]);
219
+ return /* @__PURE__ */ r(U, { ref: k, children: [
215
220
  /* @__PURE__ */ r("div", { className: "regular-title", children: [
216
221
  /* @__PURE__ */ r("div", { className: "regular-title-text", children: [
217
- y(p) && /* @__PURE__ */ t("i", { className: p }),
218
- /* @__PURE__ */ t("span", { children: b })
222
+ N(g) && /* @__PURE__ */ t("i", { className: g }),
223
+ /* @__PURE__ */ t("span", { children: w })
219
224
  ] }),
220
- y(f) && y(d) && !u && /* @__PURE__ */ t(
221
- U,
225
+ N(f) && N(c) && !u && /* @__PURE__ */ t(
226
+ W,
222
227
  {
223
228
  type: "button",
224
229
  btnType: "tinted",
225
230
  color: "neutral",
226
231
  onClick: (e) => {
227
232
  var n;
228
- (n = e == null ? void 0 : e.target) == null || n.blur(), w(d);
233
+ (n = e == null ? void 0 : e.target) == null || n.blur(), v(c);
229
234
  },
230
235
  borderRadius: "curved",
231
236
  className: "button-link",
@@ -234,15 +239,15 @@ const _ = N.div`
234
239
  )
235
240
  ] }),
236
241
  /* @__PURE__ */ t(
237
- E,
242
+ _,
238
243
  {
239
244
  isLoading: u,
240
245
  keyPrefix: "blogs-detailed-skeleton",
241
- children: /* @__PURE__ */ t(_, { limit: c, children: i })
246
+ children: /* @__PURE__ */ t(q, { limit: m, children: b })
242
247
  }
243
248
  )
244
249
  ] });
245
250
  });
246
251
  export {
247
- te as default
252
+ re as default
248
253
  };
@@ -1,13 +1,13 @@
1
- "use strict";const t=require("react/jsx-runtime"),n=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./index-MiN854X_.cjs"),d=require("./style-BAcV7F53.cjs"),C=S.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),n=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),k=require("./useDetectMobile-zkbzoOGV.cjs"),C=require("./index-BWE-RCPy.cjs"),d=require("./style-BAcV7F53.cjs"),q=b.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${i=>`repeat(${i.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: ${b.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,q=S.styled(d.SkeletonRowWrapper)`
10
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
9
+ `,B=b.styled(d.SkeletonRowWrapper)`
10
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
11
11
  flex-direction: column;
12
12
 
13
13
  & > div {
@@ -21,4 +21,4 @@
21
21
  box-shadow: none;
22
22
  }
23
23
  }
24
- `,B=({keyPrefix:i})=>t.jsxs(q,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-2`)]}),M=({keyPrefix:i,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(B,{keyPrefix:i}):o}),p=n.memo(k.BlogCardLarge),w=n.forwardRef((i,s)=>{const{items:r,onSelectCard:o=()=>{},limit:l=2,isLoading:h=!1,getImage:u=()=>{},componentName:m}=i,g=L.useDetectMobile(),f=n.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?r==null?void 0:r.map((e,a)=>t.jsx(p,{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:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(p,{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:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a))}),[r,g,l]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(C,{ref:s,limit:l,children:f})})});module.exports=w;
24
+ `,M=({keyPrefix:o})=>t.jsxs(B,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-2`)]}),w=({keyPrefix:o,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:i})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(M,{keyPrefix:o}):i}),S=n.memo(C.BlogCardLarge),R=n.forwardRef((o,s)=>{const{items:r,onSelectCard:i=()=>{},limit:l=2,isLoading:f=!1,getImage:u=()=>{},componentName:m,LinkComponent:g}=o,p=k.useDetectMobile(),j=n.useMemo(()=>t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,a)=>t.jsx(S,{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:(L,c)=>i(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(S,{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:(L,c)=>i(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor},LinkComponent:g},a))}),[r,p,l]);return t.jsx(w,{isLoading:f,keyPrefix:"blogs-large-skeleton",children:t.jsx(q,{ref:s,limit:l,children:j})})});module.exports=R;
@@ -1,20 +1,20 @@
1
- import { jsxs as k, jsx as t, Fragment as p } from "react/jsx-runtime";
2
- import { Suspense as B, memo as L, forwardRef as M, useMemo as $ } from "react";
3
- import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as S } from "./consts-BuFChS64.js";
5
- import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { B as R } from "./index-BipuzfLW.js";
7
- import { a as T, b as u } from "./style-CXMUA6cI.js";
8
- const U = f.div`
1
+ import { jsxs as L, jsx as t, Fragment as f } from "react/jsx-runtime";
2
+ import { Suspense as B, memo as M, forwardRef as $, useMemo as w } from "react";
3
+ import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as b } from "./consts-BuFChS64.js";
5
+ import { u as R } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { B as T } from "./index-DMHtIdm-.js";
7
+ import { a as U, b as g } from "./style-CXMUA6cI.js";
8
+ const I = S.div`
9
9
  display: grid;
10
10
  grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
11
11
  gap: 1.25rem;
12
12
 
13
- @media (max-width: ${S + "px"}) {
13
+ @media (max-width: ${b + "px"}) {
14
14
  grid-template-columns: repeat(1, 1fr);
15
15
  }
16
- `, I = f(T)`
17
- @media (max-width: ${S + "px"}) {
16
+ `, P = S(U)`
17
+ @media (max-width: ${b + "px"}) {
18
18
  flex-direction: column;
19
19
 
20
20
  & > div {
@@ -28,9 +28,9 @@ const U = f.div`
28
28
  box-shadow: none;
29
29
  }
30
30
  }
31
- `, P = ({ keyPrefix: o }) => /* @__PURE__ */ k(I, { children: [
31
+ `, j = ({ keyPrefix: o }) => /* @__PURE__ */ L(P, { children: [
32
32
  /* @__PURE__ */ t(
33
- u,
33
+ g,
34
34
  {
35
35
  height: "11.25rem",
36
36
  borderRadius: "0.75rem"
@@ -38,62 +38,65 @@ const U = f.div`
38
38
  `${o}-1`
39
39
  ),
40
40
  /* @__PURE__ */ t(
41
- u,
41
+ g,
42
42
  {
43
43
  height: "11.25rem",
44
44
  borderRadius: "0.75rem"
45
45
  },
46
46
  `${o}-2`
47
47
  )
48
- ] }), j = ({
48
+ ] }), v = ({
49
49
  keyPrefix: o,
50
50
  isLoading: a = !1,
51
- fallbackComponent: r = /* @__PURE__ */ t(p, {}),
51
+ fallbackComponent: r = /* @__PURE__ */ t(f, {}),
52
52
  children: i
53
- }) => /* @__PURE__ */ t(B, { fallbackComponent: r, children: a === !0 ? /* @__PURE__ */ t(P, { keyPrefix: o }) : i }), g = L(R), F = M((o, a) => {
53
+ }) => /* @__PURE__ */ t(B, { fallbackComponent: r, children: a === !0 ? /* @__PURE__ */ t(j, { keyPrefix: o }) : i }), p = M(T), G = $((o, a) => {
54
54
  const {
55
55
  items: r,
56
56
  onSelectCard: i = () => {
57
57
  },
58
58
  limit: l = 2,
59
- isLoading: b = !1,
59
+ isLoading: h = !1,
60
60
  getImage: m = () => {
61
61
  },
62
- componentName: d
63
- } = o, c = w(), h = $(() => /* @__PURE__ */ t(p, { children: c === !0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
64
- g,
62
+ componentName: d,
63
+ LinkComponent: c
64
+ } = o, u = R(), C = w(() => /* @__PURE__ */ t(f, { children: u === !0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
65
+ p,
65
66
  {
66
67
  title: e == null ? void 0 : e.title,
67
68
  imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
68
69
  text: e == null ? void 0 : e.description,
69
70
  titleSlug: e == null ? void 0 : e.titleSlug,
70
71
  buttonText: e == null ? void 0 : e.buttonText,
71
- onCardClick: (C, s) => i(e == null ? void 0 : e.titleSlug, s),
72
- metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
72
+ onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
73
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
74
+ LinkComponent: c
73
75
  },
74
76
  n
75
77
  )) : r == null ? void 0 : r.slice(0, l).map((e, n) => /* @__PURE__ */ t(
76
- g,
78
+ p,
77
79
  {
78
80
  title: e == null ? void 0 : e.title,
79
81
  imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
80
82
  text: e == null ? void 0 : e.description,
81
83
  titleSlug: e == null ? void 0 : e.titleSlug,
82
84
  buttonText: e == null ? void 0 : e.buttonText,
83
- onCardClick: (C, s) => i(e == null ? void 0 : e.titleSlug, s),
84
- metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
85
+ onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
86
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
87
+ LinkComponent: c
85
88
  },
86
89
  n
87
- )) }), [r, c, l]);
90
+ )) }), [r, u, l]);
88
91
  return /* @__PURE__ */ t(
89
- j,
92
+ v,
90
93
  {
91
- isLoading: b,
94
+ isLoading: h,
92
95
  keyPrefix: "blogs-large-skeleton",
93
- children: /* @__PURE__ */ t(U, { ref: a, limit: l, children: h })
96
+ children: /* @__PURE__ */ t(I, { ref: a, limit: l, children: C })
94
97
  }
95
98
  );
96
99
  });
97
100
  export {
98
- F as default
101
+ G as default
99
102
  };
@@ -1,12 +1,12 @@
1
- "use strict";const r=require("react/jsx-runtime"),m=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),R=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),$=require("./index-D-3I_Ppj.cjs"),E=b.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),p=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-RnrgDDZP.cjs"),C=require("./style-CkcozOY6.cjs"),M=require("./Button.cjs"),$=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=j.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,I=b.styled.a`
9
+ `,L=j.styled.a`
10
10
  text-decoration: none;
11
11
  color: var(--gray-950);
12
12
  display: flex;
@@ -32,7 +32,7 @@
32
32
  width: 100%;
33
33
  max-height: 12.5625rem;
34
34
  min-height: 12.5625rem;
35
- background-color: ${d.linearGradientAnimation("-90deg")};
35
+ background-color: ${g.linearGradientAnimation("-90deg")};
36
36
  }
37
37
 
38
38
  & .action {
@@ -58,9 +58,9 @@
58
58
  padding: 1rem;
59
59
  }
60
60
 
61
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
61
+ @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
62
62
  }
63
- `,D=b.styled.div`
63
+ `,D=j.styled.div`
64
64
  padding: 1rem 1rem 0 1rem;
65
65
  display: flex;
66
66
  flex-direction: column;
@@ -78,6 +78,6 @@
78
78
  font-size: 0.875rem;
79
79
  flex: 1;
80
80
  color: var(--gray-700, #4e555f);
81
- ${d.truncateTextInRows(3)}
81
+ ${g.truncateTextInRows(3)}
82
82
  }
83
- `,_=m.forwardRef((s,w)=>{const{title:g,imageUrl:h,text:f,options:l,onCardClick:a,readMoreText:i="Read more",metadata:o,titleSlug:u}=s,c=m.useRef();return r.jsxs(I,{ref:c,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,c),href:`/blog/${u}`,children:[r.jsx(T.ProductImageWrapper,{src:h}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:g}),r.jsx("div",{className:"text-wr",children:f})]}),l&&r.jsx("div",{className:"tags-wr",children:l==null?void 0:l.map((t,p)=>r.jsx(k.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},p))}),r.jsx(M,{className:"action",color:"gray",onClick:a,children:i})]})}),S=m.memo(_),L=m.forwardRef((s,w)=>{const{icon:g,title:h,onButtonAction:f=()=>{},onSelectCard:l=()=>{},buttonLink:a,items:i,buttonText:o,limit:u=3,isLoading:c=!1,getImage:t=()=>{},readMoreText:p="Read more",componentName:j}=s,N=B.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,n)=>r.jsx(S,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:t(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:p,options:e==null?void 0:e.options,onCardClick:(q,y)=>l(e==null?void 0:e.titleSlug,y),metadata:{name:j,accessor:e==null?void 0:e.accessor}},n)):i==null?void 0:i.slice(0,u).map((e,n)=>r.jsx(S,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:t(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:p,options:e==null?void 0:e.options,onCardClick:(q,y)=>l(e==null?void 0:e.titleSlug,y),metadata:{name:j,accessor:e==null?void 0:e.accessor}},n))}),[i]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:w,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(g)&&r.jsx("i",{className:g}),r.jsx("span",{children:h})]}),d.isDefinedNotEmptyString(o)&&d.isDefinedNotEmptyString(a)&&!c&&r.jsx(R,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),f(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx($.SuspenseBlogsSectionDetailed,{isLoading:c,keyPrefix:"blogs-simple-skeleton",children:r.jsx(E,{limit:u,children:C})})]})});module.exports=L;
83
+ `,_=p.forwardRef((s,S)=>{const{title:u,imageUrl:b,text:y,options:n,onCardClick:a,readMoreText:i="Read more",metadata:o,titleSlug:c,LinkComponent:d}=s,h=d||"a",m=p.useRef();return r.jsxs(L,{ref:m,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,m),as:h,...d?{to:`/blog/${c}`}:{href:`/blog/${c}`},children:[r.jsx(T.ProductImageWrapper,{src:b}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:u}),r.jsx("div",{className:"text-wr",children:y})]}),n&&r.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((t,f)=>r.jsx(C.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},f))}),r.jsx($,{className:"action",color:"gray",onClick:a,children:i})]})}),v=p.memo(_),P=p.forwardRef((s,S)=>{const{icon:u,title:b,onButtonAction:y=()=>{},onSelectCard:n=()=>{},buttonLink:a,items:i,buttonText:o,limit:c=3,isLoading:d=!1,getImage:h=()=>{},readMoreText:m="Read more",componentName:t,LinkComponent:f}=s,N=R.useDetectMobile(),q=p.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,l)=>r.jsx(v,{isBlog:!0,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:m,options:e==null?void 0:e.options,onCardClick:(B,w)=>n(e==null?void 0:e.titleSlug,w),metadata:{name:t,accessor:e==null?void 0:e.accessor},LinkComponent:f},l)):i==null?void 0:i.slice(0,c).map((e,l)=>r.jsx(v,{isBlog:!0,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:m,options:e==null?void 0:e.options,onCardClick:(B,w)=>n(e==null?void 0:e.titleSlug,w),metadata:{name:t,accessor:e==null?void 0:e.accessor},LinkComponent:f},l))}),[i]);return r.jsxs(C.RegulatTitleSectionWrapper,{ref:S,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[g.isDefinedNotEmptyString(u)&&r.jsx("i",{className:u}),r.jsx("span",{children:b})]}),g.isDefinedNotEmptyString(o)&&g.isDefinedNotEmptyString(a)&&!d&&r.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),y(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx(E.SuspenseBlogsSectionDetailed,{isLoading:d,keyPrefix:"blogs-simple-skeleton",children:r.jsx(I,{limit:c,children:q})})]})});module.exports=P;