@lanaco/lnc-react-ui 4.0.226 → 4.0.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/BannerSectionCarousel.cjs +3 -3
  2. package/dist/BannerSectionCarousel.js +18 -11
  3. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  4. package/dist/BlogCardsSponsoredSection.js +1 -1
  5. package/dist/BlogListSection.cjs +7 -7
  6. package/dist/BlogListSection.js +157 -207
  7. package/dist/BlogSingleSection.cjs +2 -11
  8. package/dist/BlogSingleSection.js +19 -35
  9. package/dist/BlogsSectionDetailed.cjs +1 -1
  10. package/dist/BlogsSectionDetailed.js +1 -1
  11. package/dist/BlogsSectionLarge.cjs +8 -16
  12. package/dist/BlogsSectionLarge.js +40 -58
  13. package/dist/BlogsSectionSimple.cjs +1 -1
  14. package/dist/BlogsSectionSimple.js +1 -1
  15. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  16. package/dist/BlogsSectionSimpleCentered.js +64 -98
  17. package/dist/BlogsSectionWithFilters.cjs +10 -21
  18. package/dist/BlogsSectionWithFilters.js +106 -154
  19. package/dist/BrandHitsSection.cjs +7 -7
  20. package/dist/BrandHitsSection.js +41 -87
  21. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  22. package/dist/DetailedProductsInfinitiveSection.js +2 -2
  23. package/dist/DetailedProductsSection.cjs +1 -1
  24. package/dist/DetailedProductsSection.js +2 -2
  25. package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
  26. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  27. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  28. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  29. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  30. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  31. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  32. package/dist/GeneralWithTagsCardsSection.js +1 -1
  33. package/dist/GiftCardsSection.cjs +10 -14
  34. package/dist/GiftCardsSection.js +76 -146
  35. package/dist/MasonryGeneralCardsSection.cjs +10 -10
  36. package/dist/MasonryGeneralCardsSection.js +45 -44
  37. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  38. package/dist/OverlayGeneralCardsSection.js +1 -1
  39. package/dist/ProductsWithBannerSection.cjs +13 -13
  40. package/dist/ProductsWithBannerSection.js +87 -168
  41. package/dist/QuattroCardsSection.cjs +1 -1
  42. package/dist/QuattroCardsSection.js +1 -1
  43. package/dist/ReviewsSection.cjs +18 -22
  44. package/dist/ReviewsSection.js +101 -163
  45. package/dist/SalesCampaignsSection.cjs +14 -14
  46. package/dist/SalesCampaignsSection.js +299 -330
  47. package/dist/ShopCardsSection.cjs +6 -19
  48. package/dist/ShopCardsSection.js +54 -100
  49. package/dist/SimpleCategoriesSection.cjs +3 -3
  50. package/dist/SimpleCategoriesSection.js +64 -67
  51. package/dist/SimpleProductsSection.cjs +7 -7
  52. package/dist/SimpleProductsSection.js +65 -138
  53. package/dist/UrgentSaleProductsSection.cjs +1 -1
  54. package/dist/UrgentSaleProductsSection.js +1 -1
  55. package/dist/index-B7fBsitY.js +45 -0
  56. package/dist/index-BMAvJQBG.cjs +9 -0
  57. package/dist/index-BUdvfHpp.cjs +5 -0
  58. package/dist/index-BXT1eY2D.js +753 -0
  59. package/dist/index-C6amCwRZ.js +25 -0
  60. package/dist/index-C8R9lsWG.cjs +1 -0
  61. package/dist/index-CeQvy566.cjs +11 -0
  62. package/dist/index-Cyt4EUZ6.js +20 -0
  63. package/dist/index-D3QZziO_.cjs +368 -0
  64. package/dist/index-VTkAaA-n.js +18 -0
  65. package/dist/style-BFPpppS9.js +73 -0
  66. package/dist/style-CQdEALKR.cjs +59 -0
  67. package/package.json +1 -1
  68. package/dist/index-BGNavrtB.cjs +0 -368
  69. package/dist/index-BHcrzV2G.js +0 -54
  70. package/dist/index-Bj1KWOV4.cjs +0 -11
  71. package/dist/index-BsAddfgC.cjs +0 -1
  72. package/dist/index-Cn4bq6ZX.js +0 -84
  73. package/dist/index-CuRcxKQH.js +0 -42
  74. package/dist/index-DB1J-G6Z.js +0 -38
  75. package/dist/index-DkPva6Gr.cjs +0 -20
  76. package/dist/index-fzBXDy05.cjs +0 -16
  77. package/dist/index-gFZSZLba.js +0 -882
  78. package/dist/style-DvkivBNg.js +0 -74
  79. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,32 +1,24 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("react"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),i=require("./breakpoints-CcVm-gVm.cjs"),C=require("./useDetectMobile-DYV6V1yw.cjs"),w=require("./index-D4OKsSqi.cjs"),u=require("./style-Ito6YFqi.cjs"),L=f.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),s=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),l=require("./breakpoints-CcVm-gVm.cjs"),h=require("./useDetectMobile-DYV6V1yw.cjs"),$=require("./index-D4OKsSqi.cjs"),b=require("./style-CQdEALKR.cjs"),q=j.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media ${i.down("M")} {
6
+ @media ${l.down("M")} {
7
7
  grid-template-columns: repeat(2, 1fr);
8
8
  }
9
9
 
10
- @media ${i.down("S")} {
10
+ @media ${l.down("S")} {
11
11
  grid-template-columns: repeat(2, 1fr);
12
12
  }
13
13
 
14
- @media ${i.down("XS")} {
14
+ @media ${l.down("XS")} {
15
15
  grid-template-columns: repeat(1, 1fr);
16
16
  }
17
- `,$=f.styled(u.SkeletonRowWrapper)`
18
- @media ${i.down("S")} {
17
+ `,w=j.styled(b.SkeletonAnimationContainer)`
18
+ @media ${l.down("S")} {
19
19
  flex-direction: column;
20
20
 
21
21
  & > div {
22
- background: linear-gradient(
23
- to right,
24
- transparent 0%,
25
- #f4f6fb 40%,
26
- #f4f6fb 100%
27
- );
28
-
29
- box-shadow: none;
30
22
  }
31
23
  }
32
- `,q=({keyPrefix:o})=>t.jsxs($,{children:[t.jsx(u.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-1`),t.jsx(u.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-2`)]}),M=({keyPrefix:o,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:n})=>t.jsx(l.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(q,{keyPrefix:o}):n}),b=l.memo(w.BlogCardLarge),R=l.forwardRef((o,s)=>{const{items:r,onSelectCard:n=()=>{},limit:a=2,isLoading:h=!1,getImage:m=()=>{},componentName:g,LinkComponent:p}=o,S=C.useDetectMobile(),j=l.useMemo(()=>t.jsx(t.Fragment,{children:S===!0?r==null?void 0:r.map((e,c)=>t.jsx(b,{title:e==null?void 0:e.title,imageUrl:m(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:(k,d)=>n(e==null?void 0:e.titleSlug,d),metadata:{name:g,accessor:e==null?void 0:e.accessor},LinkComponent:p},c)):r==null?void 0:r.slice(0,a).map((e,c)=>t.jsx(b,{title:e==null?void 0:e.title,imageUrl:m(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:(k,d)=>n(e==null?void 0:e.titleSlug,d),metadata:{name:g,accessor:e==null?void 0:e.accessor},LinkComponent:p},c))}),[r,S,a]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(L,{ref:s,limit:a,children:j})})});module.exports=R;
24
+ `,y=({keyPrefix:i})=>t.jsx(w,{children:[1,2].map(n=>t.jsx(b.SkeletonRect,{width:"100%",height:"11.25rem"},`${i}-${n}`))}),L=({keyPrefix:i,isLoading:n=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(s.Suspense,{fallbackComponent:r,children:n===!0?t.jsx(y,{keyPrefix:i}):o}),S=s.memo($.BlogCardLarge),M=s.forwardRef((i,n)=>{const{items:r,onSelectCard:o=()=>{},limit:a=2,isLoading:f=!1,getImage:m=()=>{},componentName:u,LinkComponent:g}=i,p=h.useDetectMobile(),C=s.useMemo(()=>t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,c)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:m(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:(k,d)=>o(e==null?void 0:e.titleSlug,d),metadata:{name:u,accessor:e==null?void 0:e.accessor},LinkComponent:g},c)):r==null?void 0:r.slice(0,a).map((e,c)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:m(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:(k,d)=>o(e==null?void 0:e.titleSlug,d),metadata:{name:u,accessor:e==null?void 0:e.accessor},LinkComponent:g},c))}),[r,p,a]);return t.jsx(L,{isLoading:f,keyPrefix:"blogs-large-skeleton",children:t.jsx(q,{ref:n,limit:a,children:C})})});module.exports=M;
@@ -1,110 +1,92 @@
1
- import { jsxs as $, jsx as t, Fragment as S } from "react/jsx-runtime";
2
- import { Suspense as L, memo as B, forwardRef as M, useMemo as w } from "react";
3
- import { s as b } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { d as a } from "./breakpoints-BubDitvo.js";
5
- import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
1
+ import { jsx as t, Fragment as S } from "react/jsx-runtime";
2
+ import { Suspense as $, memo as b, forwardRef as B, useMemo as L } from "react";
3
+ import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
+ import { d as l } from "./breakpoints-BubDitvo.js";
5
+ import { u as M } from "./useDetectMobile-B0Jog4jQ.js";
6
6
  import { B as T } from "./index-rhYVjszT.js";
7
- import { S as U, a as p } from "./style-DvkivBNg.js";
8
- const j = b.div`
7
+ import { S as U, a as w } from "./style-BFPpppS9.js";
8
+ const y = f.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 ${a("M")} {
13
+ @media ${l("M")} {
14
14
  grid-template-columns: repeat(2, 1fr);
15
15
  }
16
16
 
17
- @media ${a("S")} {
17
+ @media ${l("S")} {
18
18
  grid-template-columns: repeat(2, 1fr);
19
19
  }
20
20
 
21
- @media ${a("XS")} {
21
+ @media ${l("XS")} {
22
22
  grid-template-columns: repeat(1, 1fr);
23
23
  }
24
- `, v = b(U)`
25
- @media ${a("S")} {
24
+ `, v = f(U)`
25
+ @media ${l("S")} {
26
26
  flex-direction: column;
27
27
 
28
28
  & > div {
29
- background: linear-gradient(
30
- to right,
31
- transparent 0%,
32
- #f4f6fb 40%,
33
- #f4f6fb 100%
34
- );
35
-
36
- box-shadow: none;
37
29
  }
38
30
  }
39
- `, y = ({ keyPrefix: o }) => /* @__PURE__ */ $(v, { children: [
40
- /* @__PURE__ */ t(
41
- p,
42
- {
43
- height: "11.25rem",
44
- borderRadius: "0.75rem"
45
- },
46
- `${o}-1`
47
- ),
48
- /* @__PURE__ */ t(
49
- p,
50
- {
51
- height: "11.25rem",
52
- borderRadius: "0.75rem"
53
- },
54
- `${o}-2`
55
- )
56
- ] }), z = ({
31
+ `, z = ({ keyPrefix: o }) => /* @__PURE__ */ t(v, { children: [1, 2].map((i) => /* @__PURE__ */ t(
32
+ w,
33
+ {
34
+ width: "100%",
35
+ height: "11.25rem"
36
+ },
37
+ `${o}-${i}`
38
+ )) }), P = ({
57
39
  keyPrefix: o,
58
- isLoading: l = !1,
40
+ isLoading: i = !1,
59
41
  fallbackComponent: r = /* @__PURE__ */ t(S, {}),
60
- children: i
61
- }) => /* @__PURE__ */ t(L, { fallbackComponent: r, children: l === !0 ? /* @__PURE__ */ t(y, { keyPrefix: o }) : i }), f = B(T), X = M((o, l) => {
42
+ children: a
43
+ }) => /* @__PURE__ */ t($, { fallbackComponent: r, children: i === !0 ? /* @__PURE__ */ t(z, { keyPrefix: o }) : a }), p = b(T), N = B((o, i) => {
62
44
  const {
63
45
  items: r,
64
- onSelectCard: i = () => {
46
+ onSelectCard: a = () => {
65
47
  },
66
48
  limit: n = 2,
67
- isLoading: h = !1,
68
- getImage: d = () => {
49
+ isLoading: C = !1,
50
+ getImage: c = () => {
69
51
  },
70
- componentName: c,
52
+ componentName: d,
71
53
  LinkComponent: u
72
- } = o, g = R(), C = w(() => /* @__PURE__ */ t(S, { children: g === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
73
- f,
54
+ } = o, g = M(), h = L(() => /* @__PURE__ */ t(S, { children: g === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
55
+ p,
74
56
  {
75
57
  title: e == null ? void 0 : e.title,
76
- imageUrl: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
58
+ imageUrl: c(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
77
59
  text: e == null ? void 0 : e.description,
78
60
  titleSlug: e == null ? void 0 : e.titleSlug,
79
61
  buttonText: e == null ? void 0 : e.buttonText,
80
- onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
81
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
62
+ onCardClick: (k, s) => a(e == null ? void 0 : e.titleSlug, s),
63
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
82
64
  LinkComponent: u
83
65
  },
84
66
  m
85
67
  )) : r == null ? void 0 : r.slice(0, n).map((e, m) => /* @__PURE__ */ t(
86
- f,
68
+ p,
87
69
  {
88
70
  title: e == null ? void 0 : e.title,
89
- imageUrl: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
71
+ imageUrl: c(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
90
72
  text: e == null ? void 0 : e.description,
91
73
  titleSlug: e == null ? void 0 : e.titleSlug,
92
74
  buttonText: e == null ? void 0 : e.buttonText,
93
- onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
94
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
75
+ onCardClick: (k, s) => a(e == null ? void 0 : e.titleSlug, s),
76
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
95
77
  LinkComponent: u
96
78
  },
97
79
  m
98
80
  )) }), [r, g, n]);
99
81
  return /* @__PURE__ */ t(
100
- z,
82
+ P,
101
83
  {
102
- isLoading: h,
84
+ isLoading: C,
103
85
  keyPrefix: "blogs-large-skeleton",
104
- children: /* @__PURE__ */ t(j, { ref: l, limit: n, children: C })
86
+ children: /* @__PURE__ */ t(y, { ref: i, limit: n, children: h })
105
87
  }
106
88
  );
107
89
  });
108
90
  export {
109
- X as default
91
+ N as default
110
92
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),p=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),g=require("./utils-CITgSxXe.cjs"),C=require("./style-Boz6dk5s.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-DsINTjQk.cjs"),D=require("./index-fzBXDy05.cjs"),L=S.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),p=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),g=require("./utils-CITgSxXe.cjs"),C=require("./style-Boz6dk5s.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-DsINTjQk.cjs"),D=require("./index-BUdvfHpp.cjs"),L=S.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -8,7 +8,7 @@ import { B as j, R as D } from "./style-D54KOzZj.js";
8
8
  import I from "./Button.js";
9
9
  import A from "./Link.js";
10
10
  import { P as G } from "./index-DEypPQRI.js";
11
- import { S as E } from "./index-BHcrzV2G.js";
11
+ import { S as E } from "./index-VTkAaA-n.js";
12
12
  const F = S.div`
13
13
  display: grid;
14
14
  grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
@@ -1,22 +1,22 @@
1
- "use strict";const t=require("react/jsx-runtime"),h=require("react"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),l=require("./breakpoints-CcVm-gVm.cjs"),C=require("./useDetectMobile-DYV6V1yw.cjs"),k=require("./utils-CITgSxXe.cjs"),S=require("./Button.cjs"),y=require("./index-DsINTjQk.cjs"),g=require("./style-Ito6YFqi.cjs"),$=f.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),j=require("./utils-CITgSxXe.cjs"),k=require("./Button.cjs"),S=require("./index-DsINTjQk.cjs"),b=require("./style-CQdEALKR.cjs"),$=h.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
  margin: auto;
6
6
  width: fit-content;
7
7
 
8
- @media ${l.down("M")} {
8
+ @media ${c.down("M")} {
9
9
  grid-template-columns: repeat(2, 1fr);
10
10
  }
11
11
 
12
- @media ${l.down("S")} {
12
+ @media ${c.down("S")} {
13
13
  grid-template-columns: repeat(2, 1fr);
14
14
  }
15
15
 
16
- @media ${l.down("XS")} {
16
+ @media ${c.down("XS")} {
17
17
  grid-template-columns: repeat(1, 1fr);
18
18
  }
19
- `,v=f.styled.a`
19
+ `,v=h.styled.a`
20
20
  text-decoration: none;
21
21
  color: var(--gray-950);
22
22
  display: flex;
@@ -54,10 +54,10 @@
54
54
  object-fit: cover;
55
55
  }
56
56
 
57
- @media ${l.down("S")} {
57
+ @media ${c.down("S")} {
58
58
  max-width: unset;
59
59
  }
60
- `,R=f.styled.div`
60
+ `,q=h.styled.div`
61
61
  text-align: center;
62
62
  display: flex;
63
63
  flex-direction: column;
@@ -78,23 +78,10 @@
78
78
  font-weight: 400;
79
79
  line-height: 1.25rem;
80
80
  letter-spacing: 0.0156rem;
81
- ${k.truncateTextInRows(3)}
81
+ ${j.truncateTextInRows(3)}
82
82
  }
83
- `,b=h.forwardRef((r,c)=>{const{title:n,image:o,text:d,buttonText:w,onCardClick:m,metadata:i,link:p,LinkComponent:e}=r,a=e||"a",u=h.useRef(),s=j=>{m(j,u)};return t.jsxs(v,{ref:u,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:s,as:a,...e?{to:`/${p}`}:{href:`/${p}`},children:[t.jsx(y.ProductImageWrapper,{src:o}),t.jsxs(R,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:d})]}),t.jsx(S,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:s,size:"medium",children:w})]})}),q=f.styled(g.SkeletonRowWrapper)`
84
- @media ${l.down("S")} {
83
+ `,w=g.forwardRef((n,o)=>{const{title:r,image:s,text:m,buttonText:f,onCardClick:d,metadata:i,link:p,LinkComponent:e}=n,l=e||"a",u=g.useRef(),a=C=>{d(C,u)};return t.jsxs(v,{ref:u,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:a,as:l,...e?{to:`/${p}`}:{href:`/${p}`},children:[t.jsx(S.ProductImageWrapper,{src:s}),t.jsxs(q,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:m})]}),t.jsx(k,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:a,size:"medium",children:f})]})}),R=h.styled(b.SkeletonAnimationContainer)`
84
+ @media ${c.down("S")} {
85
85
  flex-direction: column;
86
-
87
- & > div {
88
- width: 100%;
89
-
90
- background: linear-gradient(
91
- to right,
92
- transparent 0%,
93
- #f4f6fb 40%,
94
- #f4f6fb 100%
95
- );
96
-
97
- box-shadow: none;
98
- }
99
86
  }
100
- `,T=({keyPrefix:r})=>t.jsxs(q,{justifyContent:"center",alignItems:"center",children:[t.jsx(g.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(g.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(g.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),L=({keyPrefix:r,isLoading:c=!1,fallbackComponent:n=t.jsx(t.Fragment,{}),children:o})=>t.jsx(h.Suspense,{fallbackComponent:n,children:c===!0?t.jsx(T,{keyPrefix:r}):o}),B=h.forwardRef((r,c)=>{const{items:n,limit:o=3,onSelectCard:d=()=>{},isLoading:w=!1,componentName:m,LinkComponent:i}=r,p=C.useDetectMobile();return t.jsx(L,{isLoading:w,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx($,{ref:c,limit:o,children:t.jsx(t.Fragment,{children:p===!0?n==null?void 0:n.map((e,a)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,s)=>d(e,s),metadata:{name:m,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},a)):n==null?void 0:n.slice(0,o).map((e,a)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,s)=>d(e,s),metadata:{name:m,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},a))})})})});module.exports=B;
87
+ `,T=({keyPrefix:n})=>t.jsx(R,{justifyContent:"center",alignItems:"center",children:[1,2,3].map(o=>t.jsx(b.SkeletonRect,{height:"24.75rem",width:"18.5rem"},`${n}-${o}`))}),B=({keyPrefix:n,isLoading:o=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:s})=>t.jsx(g.Suspense,{fallbackComponent:r,children:o===!0?t.jsx(T,{keyPrefix:n}):s}),z=g.forwardRef((n,o)=>{const{items:r,limit:s=3,onSelectCard:m=()=>{},isLoading:f=!1,componentName:d,LinkComponent:i}=n,p=y.useDetectMobile();return t.jsx(B,{isLoading:f,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx($,{ref:o,limit:s,children:t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,l)=>t.jsx(w,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,a)=>m(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},l)):r==null?void 0:r.slice(0,s).map((e,l)=>t.jsx(w,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,a)=>m(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},l))})})})});module.exports=z;
@@ -1,31 +1,31 @@
1
- import { jsxs as b, jsx as t, Fragment as C } from "react/jsx-runtime";
2
- import { forwardRef as S, useRef as y, Suspense as $ } from "react";
3
- import { s as h } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { d as l } from "./breakpoints-BubDitvo.js";
5
- import { u as v } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { n as R } from "./utils-MoGhNMmj.js";
1
+ import { jsxs as h, jsx as t, Fragment as b } from "react/jsx-runtime";
2
+ import { forwardRef as w, useRef as S, Suspense as y } from "react";
3
+ import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
+ import { d as s } from "./breakpoints-BubDitvo.js";
5
+ import { u as $ } from "./useDetectMobile-B0Jog4jQ.js";
6
+ import { n as v } from "./utils-MoGhNMmj.js";
7
7
  import T from "./Button.js";
8
- import { P as B } from "./index-DEypPQRI.js";
9
- import { S as W, a as u } from "./style-DvkivBNg.js";
10
- const j = h.div`
8
+ import { P as R } from "./index-DEypPQRI.js";
9
+ import { S as B, a as j } from "./style-BFPpppS9.js";
10
+ const z = f.div`
11
11
  display: grid;
12
- grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
12
+ grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
13
13
  gap: 1.25rem;
14
14
  margin: auto;
15
15
  width: fit-content;
16
16
 
17
- @media ${l("M")} {
17
+ @media ${s("M")} {
18
18
  grid-template-columns: repeat(2, 1fr);
19
19
  }
20
20
 
21
- @media ${l("S")} {
21
+ @media ${s("S")} {
22
22
  grid-template-columns: repeat(2, 1fr);
23
23
  }
24
24
 
25
- @media ${l("XS")} {
25
+ @media ${s("XS")} {
26
26
  grid-template-columns: repeat(1, 1fr);
27
27
  }
28
- `, z = h.a`
28
+ `, N = f.a`
29
29
  text-decoration: none;
30
30
  color: var(--gray-950);
31
31
  display: flex;
@@ -63,10 +63,10 @@ const j = h.div`
63
63
  object-fit: cover;
64
64
  }
65
65
 
66
- @media ${l("S")} {
66
+ @media ${s("S")} {
67
67
  max-width: unset;
68
68
  }
69
- `, L = h.div`
69
+ `, W = f.div`
70
70
  text-align: center;
71
71
  display: flex;
72
72
  flex-direction: column;
@@ -87,36 +87,36 @@ const j = h.div`
87
87
  font-weight: 400;
88
88
  line-height: 1.25rem;
89
89
  letter-spacing: 0.0156rem;
90
- ${R(3)}
90
+ ${v(3)}
91
91
  }
92
- `, w = S((r, s) => {
92
+ `, C = w((n, o) => {
93
93
  const {
94
- title: n,
95
- image: o,
96
- text: d,
97
- buttonText: f,
98
- onCardClick: c,
94
+ title: r,
95
+ image: a,
96
+ text: c,
97
+ buttonText: u,
98
+ onCardClick: d,
99
99
  metadata: i,
100
100
  link: p,
101
101
  LinkComponent: e
102
- } = r, m = e || "a", g = y(), a = (k) => {
103
- c(k, g);
102
+ } = n, m = e || "a", g = S(), l = (k) => {
103
+ d(k, g);
104
104
  };
105
- return /* @__PURE__ */ b(
106
- z,
105
+ return /* @__PURE__ */ h(
106
+ N,
107
107
  {
108
108
  ref: g,
109
109
  name: i == null ? void 0 : i.name,
110
110
  "data-accessor": i == null ? void 0 : i.accessor,
111
111
  className: "blog-card",
112
- onClick: a,
112
+ onClick: l,
113
113
  as: m,
114
114
  ...e ? { to: `/${p}` } : { href: `/${p}` },
115
115
  children: [
116
- /* @__PURE__ */ t(B, { src: o }),
117
- /* @__PURE__ */ b(L, { children: [
118
- /* @__PURE__ */ t("div", { className: "text-wr-title", children: n }),
119
- /* @__PURE__ */ t("div", { className: "text-wr", children: d })
116
+ /* @__PURE__ */ t(R, { src: a }),
117
+ /* @__PURE__ */ h(W, { children: [
118
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
119
+ /* @__PURE__ */ t("div", { className: "text-wr", children: c })
120
120
  ] }),
121
121
  /* @__PURE__ */ t(
122
122
  T,
@@ -125,101 +125,67 @@ const j = h.div`
125
125
  color: "gray",
126
126
  type: "button",
127
127
  btnType: "outline",
128
- onClick: a,
128
+ onClick: l,
129
129
  size: "medium",
130
- children: f
130
+ children: u
131
131
  }
132
132
  )
133
133
  ]
134
134
  }
135
135
  );
136
- }), N = h(W)`
137
- @media ${l("S")} {
136
+ }), I = f(B)`
137
+ @media ${s("S")} {
138
138
  flex-direction: column;
139
-
140
- & > div {
141
- width: 100%;
142
-
143
- background: linear-gradient(
144
- to right,
145
- transparent 0%,
146
- #f4f6fb 40%,
147
- #f4f6fb 100%
148
- );
149
-
150
- box-shadow: none;
151
- }
152
139
  }
153
- `, I = ({ keyPrefix: r }) => /* @__PURE__ */ b(N, { justifyContent: "center", alignItems: "center", children: [
154
- /* @__PURE__ */ t(
155
- u,
156
- {
157
- height: "24.75rem",
158
- width: "18.5rem",
159
- borderRadius: "0.75rem"
160
- },
161
- `${r}-1`
162
- ),
163
- /* @__PURE__ */ t(
164
- u,
165
- {
166
- height: "24.75rem",
167
- width: "18.5rem",
168
- borderRadius: "0.75rem"
169
- },
170
- `${r}-2`
171
- ),
172
- /* @__PURE__ */ t(
173
- u,
174
- {
175
- height: "24.75rem",
176
- width: "18.5rem",
177
- borderRadius: "0.75rem"
178
- },
179
- `${r}-3`
180
- )
181
- ] }), M = ({
182
- keyPrefix: r,
183
- isLoading: s = !1,
184
- fallbackComponent: n = /* @__PURE__ */ t(C, {}),
185
- children: o
186
- }) => /* @__PURE__ */ t($, { fallbackComponent: n, children: s === !0 ? /* @__PURE__ */ t(I, { keyPrefix: r }) : o }), J = S((r, s) => {
140
+ `, L = ({ keyPrefix: n }) => /* @__PURE__ */ t(I, { justifyContent: "center", alignItems: "center", children: [1, 2, 3].map((o) => /* @__PURE__ */ t(
141
+ j,
142
+ {
143
+ height: "24.75rem",
144
+ width: "18.5rem"
145
+ },
146
+ `${n}-${o}`
147
+ )) }), M = ({
148
+ keyPrefix: n,
149
+ isLoading: o = !1,
150
+ fallbackComponent: r = /* @__PURE__ */ t(b, {}),
151
+ children: a
152
+ }) => /* @__PURE__ */ t(y, { fallbackComponent: r, children: o === !0 ? /* @__PURE__ */ t(L, { keyPrefix: n }) : a }), J = w((n, o) => {
187
153
  const {
188
- items: n,
189
- limit: o = 3,
190
- onSelectCard: d = () => {
154
+ items: r,
155
+ limit: a = 3,
156
+ onSelectCard: c = () => {
191
157
  },
192
- isLoading: f = !1,
193
- componentName: c,
158
+ isLoading: u = !1,
159
+ componentName: d,
194
160
  LinkComponent: i
195
- } = r, p = v();
161
+ } = n, p = $();
196
162
  return /* @__PURE__ */ t(
197
163
  M,
198
164
  {
199
- isLoading: f,
165
+ isLoading: u,
200
166
  keyPrefix: "blogs-simple-centered-skeleton",
201
- children: /* @__PURE__ */ t(j, { ref: s, limit: o, children: /* @__PURE__ */ t(C, { children: p === !0 ? n == null ? void 0 : n.map((e, m) => /* @__PURE__ */ t(
202
- w,
167
+ children: /* @__PURE__ */ t(z, { ref: o, limit: a, children: /* @__PURE__ */ t(b, { children: p === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
168
+ C,
203
169
  {
204
170
  title: e == null ? void 0 : e.title,
205
171
  image: (e == null ? void 0 : e.image) || null,
206
172
  text: e == null ? void 0 : e.text,
207
173
  buttonText: e == null ? void 0 : e.buttonText,
208
- onCardClick: (g, a) => d(e, a),
209
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
174
+ onCardClick: (g, l) => c(e, l),
175
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
210
176
  link: e == null ? void 0 : e.link,
211
177
  LinkComponent: i
212
178
  },
213
179
  m
214
- )) : n == null ? void 0 : n.slice(0, o).map((e, m) => /* @__PURE__ */ t(
215
- w,
180
+ )) : r == null ? void 0 : r.slice(0, a).map((e, m) => /* @__PURE__ */ t(
181
+ C,
216
182
  {
217
183
  title: e == null ? void 0 : e.title,
218
184
  image: (e == null ? void 0 : e.image) || null,
219
185
  text: e == null ? void 0 : e.text,
220
186
  buttonText: e == null ? void 0 : e.buttonText,
221
- onCardClick: (g, a) => d(e, a),
222
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
187
+ onCardClick: (g, l) => c(e, l),
188
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
223
189
  link: e == null ? void 0 : e.link,
224
190
  LinkComponent: i
225
191
  },
@@ -1,20 +1,20 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),k=require("./breakpoints-CcVm-gVm.cjs"),_=require("./useDetectMobile-DYV6V1yw.cjs"),S=require("./utils-CITgSxXe.cjs"),B=require("./style-Boz6dk5s.cjs"),M=require("./Button.cjs"),z=require("./Link.cjs"),D=require("./index-DsINTjQk.cjs"),F=require("./index-3GKF_7BJ.cjs"),s=require("./style-Ito6YFqi.cjs"),P=w.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),S=require("./utils-CITgSxXe.cjs"),M=require("./style-Boz6dk5s.cjs"),z=require("./Button.cjs"),D=require("./Link.cjs"),F=require("./index-DsINTjQk.cjs"),L=require("./index-3GKF_7BJ.cjs"),p=require("./style-CQdEALKR.cjs"),A=w.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media ${k.down("M")} {
6
+ @media ${j.down("M")} {
7
7
  grid-template-columns: repeat(2, 1fr);
8
8
  }
9
9
 
10
- @media ${k.down("S")} {
10
+ @media ${j.down("S")} {
11
11
  grid-template-columns: repeat(2, 1fr);
12
12
  }
13
13
 
14
- @media ${k.down("XS")} {
14
+ @media ${j.down("XS")} {
15
15
  grid-template-columns: repeat(1, 1fr);
16
16
  }
17
- `,A=w.styled.a`
17
+ `,E=w.styled.a`
18
18
  text-decoration: none;
19
19
  color: var(--gray-950);
20
20
  display: flex;
@@ -46,7 +46,7 @@
46
46
  & a {
47
47
  margin-top: auto;
48
48
  }
49
- `,E=w.styled.div`
49
+ `,I=w.styled.div`
50
50
  display: flex;
51
51
  flex-direction: column;
52
52
  gap: 0.5rem;
@@ -63,8 +63,8 @@
63
63
  color: var(--gray-700, #4e555f);
64
64
  ${S.truncateTextInRows(3)}
65
65
  }
66
- `,I=a.forwardRef((r,h)=>{const{title:l,imageUrl:c,text:i,buttonText:p,onCardClick:d,metadata:o,link:m,LinkComponent:g}=r,b=g||"a",u=a.useRef(),f=j=>{d(j,u)};return t.jsxs(A,{ref:u,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,className:"blog-card",onClick:f,to:`/${m}`,as:b,...g?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(E,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(z,{color:"gray",onClick:f,children:p})]}),t.jsx(D.ProductImageWrapper,{src:c})]})}),O=w.styled(s.SkeletonColumnWrapper)`
67
- @media ${k.down("S")} {
66
+ `,O=a.forwardRef((n,s)=>{const{title:l,imageUrl:c,text:i,buttonText:g,onCardClick:d,metadata:r,link:m,LinkComponent:h}=n,b=h||"a",u=a.useRef(),f=k=>{d(k,u)};return t.jsxs(E,{ref:u,name:r==null?void 0:r.name,"data-accessor":r==null?void 0:r.accessor,className:"blog-card",onClick:f,to:`/${m}`,as:b,...h?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(I,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(D,{color:"gray",onClick:f,children:g})]}),t.jsx(F.ProductImageWrapper,{src:c})]})}),U=w.styled(p.SkeletonAnimationColumnContainer)`
67
+ @media ${j.down("S")} {
68
68
  & .skeleton__tags {
69
69
  & > div {
70
70
  width: 100%;
@@ -73,17 +73,6 @@
73
73
 
74
74
  & .skeleton__cards {
75
75
  flex-direction: column;
76
-
77
- & > div {
78
- background: linear-gradient(
79
- to right,
80
- transparent 0%,
81
- #f4f6fb 40%,
82
- #f4f6fb 100%
83
- );
84
-
85
- box-shadow: none;
86
- }
87
76
  }
88
77
  }
89
- `,U=({keyPrefix:r})=>t.jsxs(O,{children:[t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),K=({keyPrefix:r,isLoading:h=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:h===!0?t.jsx(U,{keyPrefix:r}):c}),q=a.memo(I),G=a.forwardRef((r,h)=>{const{icon:l,title:c,items:i,buttonText:p,limit:d=3,options:o,selectedOption:m=[],onButtonAction:g=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:f=()=>{},isLoading:j=!1,onSelectCard:y=()=>{},productsToolbarName:W="All",allButton:x=!1,componentName:$,LinkComponent:R}=r,N=_.useDetectMobile(),L=a.useMemo(()=>{var n;return t.jsx(t.Fragment,{children:N===!0?i==null?void 0:i.map((e,v)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(T,C)=>y(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},v)):(n=i==null?void 0:i.slice(0,d))==null?void 0:n.map((e,v)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(T,C)=>y(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},v))})},[i,N,d]);return t.jsxs(B.TitleWithOptionsSectionWrapper,{ref:h,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),S.isDefinedNotEmptyString(p)&&S.isDefinedNotEmptyString(b)&&!j&&t.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:n=>{var e;(e=n==null?void 0:n.target)==null||e.blur(),g(b)},borderRadius:"curved",children:p})]}),t.jsxs(K,{isLoading:j,keyPrefix:"blogs-with-filters-skeleton",children:[(o==null?void 0:o.length)>0&&t.jsx(F.SelectBar,{items:o,selectedIds:m,onRemove:n=>{u(n)},onSelect:n=>{u(n)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:W,allButton:x}),t.jsx(P,{limit:d,children:L})]})]})});module.exports=G;
78
+ `,K=({keyPrefix:n})=>t.jsxs(U,{children:[t.jsx(p.SkeletonContainer,{className:"skeleton__tags",children:[1,2,3].map(s=>t.jsx(p.SkeletonRect,{height:"2.25rem",width:"8rem",borderRadius:"1rem"},`${n}-tab-${s}`))}),t.jsx(p.SkeletonContainer,{className:"skeleton__cards",children:[1,2,3].map(s=>t.jsx(p.SkeletonRect,{height:"10.375rem",width:"100%",borderRadius:"1rem"},`${n}-card-${s}`))})]}),P=({keyPrefix:n,isLoading:s=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:s===!0?t.jsx(K,{keyPrefix:n}):c}),q=a.memo(O),G=a.forwardRef((n,s)=>{const{icon:l,title:c,items:i,buttonText:g,limit:d=3,options:r,selectedOption:m=[],onButtonAction:h=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:f=()=>{},isLoading:k=!1,onSelectCard:v=()=>{},productsToolbarName:T="All",allButton:_=!1,componentName:$,LinkComponent:N}=n,R=x.useDetectMobile(),B=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?i==null?void 0:i.map((e,y)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(W,C)=>v(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:N},y)):(o=i==null?void 0:i.slice(0,d))==null?void 0:o.map((e,y)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(W,C)=>v(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:N},y))})},[i,R,d]);return t.jsxs(M.TitleWithOptionsSectionWrapper,{ref:s,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),S.isDefinedNotEmptyString(g)&&S.isDefinedNotEmptyString(b)&&!k&&t.jsx(z,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),h(b)},borderRadius:"curved",children:g})]}),t.jsxs(P,{isLoading:k,keyPrefix:"blogs-with-filters-skeleton",children:[(r==null?void 0:r.length)>0&&t.jsx(L.SelectBar,{items:r,selectedIds:m,onRemove:o=>{u(o)},onSelect:o=>{u(o)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:T,allButton:_}),t.jsx(A,{limit:d,children:B})]})]})});module.exports=G;