@lanaco/lnc-react-ui 4.0.183 → 4.0.185

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 (75) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +5 -3
  2. package/dist/BlogCardsSponsoredSection.js +68 -64
  3. package/dist/BlogCategoryCardsSection.cjs +1 -1
  4. package/dist/BlogCategoryCardsSection.js +1 -1
  5. package/dist/BlogListSection.cjs +8 -6
  6. package/dist/BlogListSection.js +122 -114
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +1 -1
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +1 -1
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +1 -1
  13. package/dist/BlogsSectionDetailed.cjs +5 -3
  14. package/dist/BlogsSectionDetailed.js +53 -49
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +9 -7
  18. package/dist/BlogsSectionSimple.js +53 -47
  19. package/dist/BlogsSectionSimpleCentered.cjs +7 -5
  20. package/dist/BlogsSectionSimpleCentered.js +31 -26
  21. package/dist/BlogsSectionWithFilters.cjs +9 -7
  22. package/dist/BlogsSectionWithFilters.js +47 -42
  23. package/dist/BrandHitsSection.cjs +9 -7
  24. package/dist/BrandHitsSection.js +40 -35
  25. package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
  26. package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
  27. package/dist/CheckBoxInput.cjs +27 -27
  28. package/dist/CheckBoxInput.js +61 -98
  29. package/dist/ColorInput.cjs +26 -26
  30. package/dist/ColorInput.js +127 -162
  31. package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
  32. package/dist/DetailedProductsInfinitiveSection.js +6 -5
  33. package/dist/DetailedProductsSection.cjs +2 -2
  34. package/dist/DetailedProductsSection.js +12 -10
  35. package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
  36. package/dist/FieldOfInterestsMasonrySection.js +90 -85
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
  41. package/dist/GeneralWithTagsCardsSection.cjs +12 -8
  42. package/dist/GeneralWithTagsCardsSection.js +50 -44
  43. package/dist/GiftCardsSection.cjs +7 -5
  44. package/dist/GiftCardsSection.js +46 -40
  45. package/dist/MasonryGeneralCardsSection.cjs +6 -5
  46. package/dist/MasonryGeneralCardsSection.js +26 -23
  47. package/dist/Modal.cjs +14 -13
  48. package/dist/Modal.js +88 -86
  49. package/dist/OverlayGeneralCardsSection.cjs +7 -5
  50. package/dist/OverlayGeneralCardsSection.js +30 -35
  51. package/dist/ProductsWithBannerSection.cjs +8 -6
  52. package/dist/ProductsWithBannerSection.js +71 -77
  53. package/dist/QuattroCardsSection.cjs +8 -6
  54. package/dist/QuattroCardsSection.js +31 -28
  55. package/dist/ReviewsSection.cjs +11 -9
  56. package/dist/ReviewsSection.js +38 -36
  57. package/dist/SalesCampaignsSection.cjs +22 -19
  58. package/dist/SalesCampaignsSection.js +299 -300
  59. package/dist/ShopCardsSection.cjs +1 -1
  60. package/dist/ShopCardsSection.js +1 -1
  61. package/dist/SimpleCategoriesSection.cjs +2 -2
  62. package/dist/SimpleCategoriesSection.js +7 -3
  63. package/dist/SimpleProductsSection.cjs +5 -5
  64. package/dist/SimpleProductsSection.js +62 -72
  65. package/dist/UrgentSaleProductsSection.cjs +6 -6
  66. package/dist/UrgentSaleProductsSection.js +9 -7
  67. package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
  68. package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
  69. package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
  70. package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
  71. package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
  72. package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
  73. package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
  74. package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
  75. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { jsxs as f, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { forwardRef as C, useRef as S, Suspense as v } from "react";
3
- import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import { forwardRef as C, useRef as k, Suspense as y } from "react";
3
+ import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as u } from "./consts-BuFChS64.js";
5
- import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as k } from "./utils-Dc5zIpaz.js";
5
+ import { u as S } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as v } from "./utils-Dc5zIpaz.js";
7
7
  import $ from "./Button.js";
8
8
  import { P as R } from "./index-C_NnINik.js";
9
9
  import { a as T, b as h } from "./style-CXMUA6cI.js";
10
- const B = d.div`
10
+ const B = p.div`
11
11
  display: grid;
12
12
  grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
13
13
  gap: 1.25rem;
@@ -16,7 +16,9 @@ const B = d.div`
16
16
  @media (max-width: ${u + "px"}) {
17
17
  grid-template-columns: repeat(1, 1fr);
18
18
  }
19
- `, I = d.div`
19
+ `, I = p.a`
20
+ text-decoration: none;
21
+ color: var(--gray-950);
20
22
  display: flex;
21
23
  flex-direction: column;
22
24
  width: 100%;
@@ -55,7 +57,7 @@ const B = d.div`
55
57
  @media (max-width: ${u + "px"}) {
56
58
  max-width: unset;
57
59
  }
58
- `, W = d.div`
60
+ `, W = p.div`
59
61
  text-align: center;
60
62
  display: flex;
61
63
  flex-direction: column;
@@ -76,25 +78,26 @@ const B = d.div`
76
78
  font-weight: 400;
77
79
  line-height: 1.25rem;
78
80
  letter-spacing: 0.0156rem;
79
- ${k(3)}
81
+ ${v(3)}
80
82
  }
81
83
  `, b = C((r, m) => {
82
- const { title: i, image: o, text: l, buttonText: c, onCardClick: s, metadata: n } = r, e = S(), a = (p) => {
83
- s(p, e);
84
+ const { title: i, image: o, text: s, buttonText: g, onCardClick: d, metadata: n, link: e } = r, a = k(), c = (l) => {
85
+ d(l, a);
84
86
  };
85
87
  return /* @__PURE__ */ f(
86
88
  I,
87
89
  {
88
- ref: e,
90
+ ref: a,
89
91
  name: n == null ? void 0 : n.name,
90
92
  "data-accessor": n == null ? void 0 : n.accessor,
91
93
  className: "blog-card",
92
- onClick: a,
94
+ onClick: c,
95
+ href: `/${e}`,
93
96
  children: [
94
97
  /* @__PURE__ */ t(R, { src: o }),
95
98
  /* @__PURE__ */ f(W, { children: [
96
99
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: i }),
97
- /* @__PURE__ */ t("div", { className: "text-wr", children: l })
100
+ /* @__PURE__ */ t("div", { className: "text-wr", children: s })
98
101
  ] }),
99
102
  /* @__PURE__ */ t(
100
103
  $,
@@ -103,15 +106,15 @@ const B = d.div`
103
106
  color: "gray",
104
107
  type: "button",
105
108
  btnType: "outline",
106
- onClick: a,
109
+ onClick: c,
107
110
  size: "medium",
108
- children: c
111
+ children: g
109
112
  }
110
113
  )
111
114
  ]
112
115
  }
113
116
  );
114
- }), j = d(T)`
117
+ }), j = p(T)`
115
118
  @media (max-width: ${u + "px"}) {
116
119
  flex-direction: column;
117
120
 
@@ -161,19 +164,19 @@ const B = d.div`
161
164
  isLoading: m = !1,
162
165
  fallbackComponent: i = /* @__PURE__ */ t(w, {}),
163
166
  children: o
164
- }) => /* @__PURE__ */ t(v, { fallbackComponent: i, children: m === !0 ? /* @__PURE__ */ t(z, { keyPrefix: r }) : o }), X = C((r, m) => {
167
+ }) => /* @__PURE__ */ t(y, { fallbackComponent: i, children: m === !0 ? /* @__PURE__ */ t(z, { keyPrefix: r }) : o }), X = C((r, m) => {
165
168
  const {
166
169
  items: i,
167
170
  limit: o = 3,
168
- onSelectCard: l = () => {
171
+ onSelectCard: s = () => {
169
172
  },
170
- isLoading: c = !1,
171
- componentName: s
172
- } = r, n = y();
173
+ isLoading: g = !1,
174
+ componentName: d
175
+ } = r, n = S();
173
176
  return /* @__PURE__ */ t(
174
177
  M,
175
178
  {
176
- isLoading: c,
179
+ isLoading: g,
177
180
  keyPrefix: "blogs-simple-centered-skeleton",
178
181
  children: /* @__PURE__ */ t(B, { ref: m, limit: o, children: /* @__PURE__ */ t(w, { children: n === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ t(
179
182
  b,
@@ -182,8 +185,9 @@ const B = d.div`
182
185
  image: (e == null ? void 0 : e.image) || null,
183
186
  text: e == null ? void 0 : e.text,
184
187
  buttonText: e == null ? void 0 : e.buttonText,
185
- onCardClick: (p, g) => l(e, g),
186
- metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
188
+ onCardClick: (c, l) => s(e, l),
189
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
190
+ link: e == null ? void 0 : e.link
187
191
  },
188
192
  a
189
193
  )) : i == null ? void 0 : i.slice(0, o).map((e, a) => /* @__PURE__ */ t(
@@ -193,8 +197,9 @@ const B = d.div`
193
197
  image: (e == null ? void 0 : e.image) || null,
194
198
  text: e == null ? void 0 : e.text,
195
199
  buttonText: e == null ? void 0 : e.buttonText,
196
- onCardClick: (p, g) => l(e, g),
197
- metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
200
+ onCardClick: (c, l) => s(e, l),
201
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
202
+ link: e == null ? void 0 : e.link
198
203
  },
199
204
  a
200
205
  )) }) })
@@ -1,12 +1,14 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),b=require("./utils-RnrgDDZP.cjs"),W=require("./style-CkcozOY6.cjs"),T=require("./Button.cjs"),E=require("./Link.cjs"),I=require("./index-uwl7BjRF.cjs"),M=require("./index-CSNxZFTX.cjs"),n=require("./style-BAcV7F53.cjs"),P=j.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),b=require("./utils-RnrgDDZP.cjs"),W=require("./style-CkcozOY6.cjs"),T=require("./Button.cjs"),E=require("./Link.cjs"),I=require("./index-uwl7BjRF.cjs"),M=require("./index-CSNxZFTX.cjs"),s=require("./style-BAcV7F53.cjs"),P=j.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,O=j.styled.div`
9
+ `,O=j.styled.a`
10
+ text-decoration: none;
11
+ color: var(--gray-950);
10
12
  display: flex;
11
13
  width: 100%;
12
14
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
@@ -37,7 +39,7 @@
37
39
  margin-top: auto;
38
40
  }
39
41
 
40
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
42
+ @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
41
43
  }
42
44
  `,z=j.styled.div`
43
45
  display: flex;
@@ -56,8 +58,8 @@
56
58
  color: var(--gray-700, #4e555f);
57
59
  ${b.truncateTextInRows(3)}
58
60
  }
59
- `,D=a.forwardRef((r,m)=>{const{title:l,imageUrl:c,text:s,buttonText:u,onCardClick:d,metadata:i}=r,h=a.useRef(),p=g=>{d(g,h)};return t.jsxs(O,{ref:h,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:p,children:[t.jsxs(z,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:s}),t.jsx(E,{color:"gray",onClick:p,children:u})]}),t.jsx(I.ProductImageWrapper,{src:c})]})}),F=j.styled(n.SkeletonColumnWrapper)`
60
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
61
+ `,D=a.forwardRef((r,u)=>{const{title:l,imageUrl:c,text:n,buttonText:h,onCardClick:d,metadata:i,link:f}=r,p=a.useRef(),m=g=>{d(g,p)};return t.jsxs(O,{ref:p,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:m,href:`/${f}`,children:[t.jsxs(z,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:n}),t.jsx(E,{color:"gray",onClick:m,children:h})]}),t.jsx(I.ProductImageWrapper,{src:c})]})}),F=j.styled(s.SkeletonColumnWrapper)`
62
+ @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
61
63
  & .skeleton__tags {
62
64
  & > div {
63
65
  width: 100%;
@@ -79,4 +81,4 @@
79
81
  }
80
82
  }
81
83
  }
82
- `,A=({keyPrefix:r})=>t.jsxs(F,{children:[t.jsxs(n.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(n.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),U=({keyPrefix:r,isLoading:m=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:m===!0?t.jsx(A,{keyPrefix:r}):c}),C=a.memo(D),X=a.forwardRef((r,m)=>{const{icon:l,title:c,items:s,buttonText:u,limit:d=3,options:i,selectedOption:h=[],onButtonAction:p=()=>{},buttonLink:g,onSelectOption:k=()=>{},onSelectAll:_=()=>{},isLoading:v=!1,onSelectCard:f=()=>{},productsToolbarName:$="All",allButton:N=!1,componentName:y}=r,R=L.useDetectMobile(),q=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?s==null?void 0:s.map((e,S)=>t.jsx(C,{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:(B,w)=>f(e,w),metadata:{name:y,accessor:e==null?void 0:e.accessor}},S)):(o=s==null?void 0:s.slice(0,d))==null?void 0:o.map((e,S)=>t.jsx(C,{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:(B,w)=>f(e,w),metadata:{name:y,accessor:e==null?void 0:e.accessor}},S))})},[s,R,d,f]);return t.jsxs(W.TitleWithOptionsSectionWrapper,{ref:m,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),b.isDefinedNotEmptyString(u)&&b.isDefinedNotEmptyString(g)&&!v&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),p(g)},borderRadius:"curved",children:u})]}),t.jsxs(U,{isLoading:v,keyPrefix:"blogs-with-filters-skeleton",children:[(i==null?void 0:i.length)>0&&t.jsx(M.SelectBar,{items:i,selectedIds:h,onRemove:o=>{k(o)},onSelect:o=>{k(o)},onSelectAll:_,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:$,allButton:N}),t.jsx(P,{limit:d,children:q})]})]})});module.exports=X;
84
+ `,A=({keyPrefix:r})=>t.jsxs(F,{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`)]})]}),U=({keyPrefix:r,isLoading:u=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:u===!0?t.jsx(A,{keyPrefix:r}):c}),C=a.memo(D),X=a.forwardRef((r,u)=>{const{icon:l,title:c,items:n,buttonText:h,limit:d=3,options:i,selectedOption:f=[],onButtonAction:p=()=>{},buttonLink:m,onSelectOption:g=()=>{},onSelectAll:_=()=>{},isLoading:v=!1,onSelectCard:y=()=>{},productsToolbarName:$="All",allButton:N=!1,componentName:x}=r,R=L.useDetectMobile(),q=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?n==null?void 0:n.map((e,S)=>t.jsx(C,{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:(B,k)=>y(e,k),metadata:{name:x,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link},S)):(o=n==null?void 0:n.slice(0,d))==null?void 0:o.map((e,S)=>t.jsx(C,{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:(B,k)=>y(e,k),metadata:{name:x,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link},S))})},[n,R,d]);return t.jsxs(W.TitleWithOptionsSectionWrapper,{ref:u,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),b.isDefinedNotEmptyString(h)&&b.isDefinedNotEmptyString(m)&&!v&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),p(m)},borderRadius:"curved",children:h})]}),t.jsxs(U,{isLoading:v,keyPrefix:"blogs-with-filters-skeleton",children:[(i==null?void 0:i.length)>0&&t.jsx(M.SelectBar,{items:i,selectedIds:f,onRemove:o=>{g(o)},onSelect:o=>{g(o)},onSelectAll:_,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:$,allButton:N}),t.jsx(P,{limit:d,children:q})]})]})});module.exports=X;
@@ -1,9 +1,9 @@
1
- import { jsxs as n, jsx as t, Fragment as B } from "react/jsx-runtime";
2
- import { forwardRef as _, useRef as F, Suspense as O, memo as j, useMemo as A } from "react";
1
+ import { jsxs as n, jsx as t, Fragment as y } from "react/jsx-runtime";
2
+ import { forwardRef as B, useRef as F, Suspense as O, memo as j, useMemo as A } from "react";
3
3
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as k } from "./consts-BuFChS64.js";
4
+ import { M as v } from "./consts-BuFChS64.js";
5
5
  import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as U, k as v } from "./utils-Dc5zIpaz.js";
6
+ import { o as U, k as S } from "./utils-Dc5zIpaz.js";
7
7
  import { T as D } from "./style-C7FUSHmS.js";
8
8
  import K from "./Button.js";
9
9
  import G from "./Link.js";
@@ -15,10 +15,12 @@ const Z = f.div`
15
15
  grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
16
16
  gap: 1.25rem;
17
17
 
18
- @media (max-width: ${k + "px"}) {
18
+ @media (max-width: ${v + "px"}) {
19
19
  grid-template-columns: repeat(1, 1fr);
20
20
  }
21
- `, q = f.div`
21
+ `, q = f.a`
22
+ text-decoration: none;
23
+ color: var(--gray-950);
22
24
  display: flex;
23
25
  width: 100%;
24
26
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
@@ -49,7 +51,7 @@ const Z = f.div`
49
51
  margin-top: auto;
50
52
  }
51
53
 
52
- @media (max-width: ${k + "px"}) {
54
+ @media (max-width: ${v + "px"}) {
53
55
  }
54
56
  `, J = f.div`
55
57
  display: flex;
@@ -68,30 +70,31 @@ const Z = f.div`
68
70
  color: var(--gray-700, #4e555f);
69
71
  ${U(3)}
70
72
  }
71
- `, Q = _((r, c) => {
72
- const { title: l, imageUrl: d, text: a, buttonText: p, onCardClick: m, metadata: o } = r, h = F(), u = (g) => {
73
- m(g, h);
73
+ `, Q = B((r, p) => {
74
+ const { title: l, imageUrl: d, text: a, buttonText: h, onCardClick: m, metadata: o, link: b } = r, u = F(), c = (g) => {
75
+ m(g, u);
74
76
  };
75
77
  return /* @__PURE__ */ n(
76
78
  q,
77
79
  {
78
- ref: h,
80
+ ref: u,
79
81
  name: o == null ? void 0 : o.name,
80
82
  "data-accessor": o == null ? void 0 : o.accessor,
81
83
  className: "blog-card",
82
- onClick: u,
84
+ onClick: c,
85
+ href: `/${b}`,
83
86
  children: [
84
87
  /* @__PURE__ */ n(J, { children: [
85
88
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: l }),
86
89
  /* @__PURE__ */ t("div", { className: "text-wr", children: a }),
87
- /* @__PURE__ */ t(G, { color: "gray", onClick: u, children: p })
90
+ /* @__PURE__ */ t(G, { color: "gray", onClick: c, children: h })
88
91
  ] }),
89
92
  /* @__PURE__ */ t(H, { src: d })
90
93
  ]
91
94
  }
92
95
  );
93
96
  }), V = f(X)`
94
- @media (max-width: ${k + "px"}) {
97
+ @media (max-width: ${v + "px"}) {
95
98
  & .skeleton__tags {
96
99
  & > div {
97
100
  width: 100%;
@@ -171,42 +174,43 @@ const Z = f.div`
171
174
  ] })
172
175
  ] }), x = ({
173
176
  keyPrefix: r,
174
- isLoading: c = !1,
175
- fallbackComponent: l = /* @__PURE__ */ t(B, {}),
177
+ isLoading: p = !1,
178
+ fallbackComponent: l = /* @__PURE__ */ t(y, {}),
176
179
  children: d
177
- }) => /* @__PURE__ */ t(O, { fallbackComponent: l, children: c === !0 ? /* @__PURE__ */ t(Y, { keyPrefix: r }) : d }), W = j(Q), pe = _((r, c) => {
180
+ }) => /* @__PURE__ */ t(O, { fallbackComponent: l, children: p === !0 ? /* @__PURE__ */ t(Y, { keyPrefix: r }) : d }), W = j(Q), pe = B((r, p) => {
178
181
  const {
179
182
  icon: l,
180
183
  title: d,
181
184
  items: a,
182
- buttonText: p,
185
+ buttonText: h,
183
186
  limit: m = 3,
184
187
  options: o,
185
- selectedOption: h = [],
188
+ selectedOption: b = [],
186
189
  onButtonAction: u = () => {
187
190
  },
188
- buttonLink: g,
189
- onSelectOption: C = () => {
191
+ buttonLink: c,
192
+ onSelectOption: g = () => {
190
193
  },
191
- onSelectAll: y = () => {
194
+ onSelectAll: _ = () => {
192
195
  },
193
- isLoading: R = !1,
194
- onSelectCard: b = () => {
196
+ isLoading: C = !1,
197
+ onSelectCard: R = () => {
195
198
  },
196
199
  productsToolbarName: M = "All",
197
200
  allButton: z = !1,
198
- componentName: T
199
- } = r, $ = E(), I = A(() => {
201
+ componentName: $
202
+ } = r, T = E(), I = A(() => {
200
203
  var i;
201
- return /* @__PURE__ */ t(B, { children: $ === !0 ? a == null ? void 0 : a.map((e, w) => /* @__PURE__ */ t(
204
+ return /* @__PURE__ */ t(y, { children: T === !0 ? a == null ? void 0 : a.map((e, w) => /* @__PURE__ */ t(
202
205
  W,
203
206
  {
204
207
  title: e == null ? void 0 : e.title,
205
208
  imageUrl: (e == null ? void 0 : e.image) || null,
206
209
  text: e == null ? void 0 : e.text,
207
210
  buttonText: e == null ? void 0 : e.buttonText,
208
- onCardClick: (L, S) => b(e, S),
209
- metadata: { name: T, accessor: e == null ? void 0 : e.accessor }
211
+ onCardClick: (L, k) => R(e, k),
212
+ metadata: { name: $, accessor: e == null ? void 0 : e.accessor },
213
+ link: e == null ? void 0 : e.link
210
214
  },
211
215
  w
212
216
  )) : (i = a == null ? void 0 : a.slice(0, m)) == null ? void 0 : i.map((e, w) => /* @__PURE__ */ t(
@@ -216,19 +220,20 @@ const Z = f.div`
216
220
  imageUrl: (e == null ? void 0 : e.image) || null,
217
221
  text: e == null ? void 0 : e.text,
218
222
  buttonText: e == null ? void 0 : e.buttonText,
219
- onCardClick: (L, S) => b(e, S),
220
- metadata: { name: T, accessor: e == null ? void 0 : e.accessor }
223
+ onCardClick: (L, k) => R(e, k),
224
+ metadata: { name: $, accessor: e == null ? void 0 : e.accessor },
225
+ link: e == null ? void 0 : e.link
221
226
  },
222
227
  w
223
228
  )) });
224
- }, [a, $, m, b]);
225
- return /* @__PURE__ */ n(D, { ref: c, children: [
229
+ }, [a, T, m]);
230
+ return /* @__PURE__ */ n(D, { ref: p, children: [
226
231
  /* @__PURE__ */ n("div", { className: "regular-title", children: [
227
232
  /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
228
- v(l) && /* @__PURE__ */ t("i", { className: l }),
233
+ S(l) && /* @__PURE__ */ t("i", { className: l }),
229
234
  /* @__PURE__ */ t("span", { children: d })
230
235
  ] }),
231
- v(p) && v(g) && !R && /* @__PURE__ */ t(
236
+ S(h) && S(c) && !C && /* @__PURE__ */ t(
232
237
  K,
233
238
  {
234
239
  type: "button",
@@ -236,31 +241,31 @@ const Z = f.div`
236
241
  color: "neutral",
237
242
  onClick: (i) => {
238
243
  var e;
239
- (e = i == null ? void 0 : i.target) == null || e.blur(), u(g);
244
+ (e = i == null ? void 0 : i.target) == null || e.blur(), u(c);
240
245
  },
241
246
  borderRadius: "curved",
242
- children: p
247
+ children: h
243
248
  }
244
249
  )
245
250
  ] }),
246
251
  /* @__PURE__ */ n(
247
252
  x,
248
253
  {
249
- isLoading: R,
254
+ isLoading: C,
250
255
  keyPrefix: "blogs-with-filters-skeleton",
251
256
  children: [
252
257
  (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(
253
258
  P,
254
259
  {
255
260
  items: o,
256
- selectedIds: h,
261
+ selectedIds: b,
257
262
  onRemove: (i) => {
258
- C(i);
263
+ g(i);
259
264
  },
260
265
  onSelect: (i) => {
261
- C(i);
266
+ g(i);
262
267
  },
263
- onSelectAll: y,
268
+ onSelectAll: _,
264
269
  labelKey: "name",
265
270
  valueKey: "code",
266
271
  noMargin: !0,
@@ -1,4 +1,6 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),m=require("./utils-RnrgDDZP.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),n=require("./style-BAcV7F53.cjs"),g=d.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("react"),w=require("./utils-RnrgDDZP.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),i=require("./style-BAcV7F53.cjs"),x=h.styled.a`
2
+ text-decoration: none;
3
+ color: var(--gray-950);
2
4
  width: 7.5rem;
3
5
  height: auto;
4
6
  max-height: 7.5rem;
@@ -12,7 +14,7 @@
12
14
  height: auto;
13
15
  }
14
16
 
15
- @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
17
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
16
18
  width: 4.5rem;
17
19
  height: auto;
18
20
  max-height: 4.5rem;
@@ -22,7 +24,7 @@
22
24
  height: auto;
23
25
  }
24
26
  }
25
- `,w=o.forwardRef(({imageComponent:r,image:i,onSelectCard:t},s)=>e.jsx(g,{ref:s,children:m.isDefined(r)?r:e.jsx("img",{src:i,className:"wrapper__image",onClick:t})})),_=d.styled.div`
27
+ `,_=c.forwardRef(({imageComponent:r,image:n,onSelectCard:a,urlPrefix:s,urlSufix:o,code:l},d)=>e.jsx(x,{ref:d,onClick:a,href:`${s}${l}${o}`,children:w.isDefined(r)?r:e.jsx("img",{src:n,className:"wrapper__image"})})),u=h.styled.div`
26
28
  display: flex;
27
29
  flex-direction: column;
28
30
  align-items: flex-start;
@@ -71,7 +73,7 @@
71
73
  }
72
74
  }
73
75
 
74
- @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
76
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
75
77
  & .wrapper__content {
76
78
  align-content: center;
77
79
  gap: 1rem;
@@ -82,9 +84,9 @@
82
84
  }
83
85
  }
84
86
  }
85
- `,x=d.styled(n.SkeletonRowWrapper)`
86
- @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
87
+ `,f=h.styled(i.SkeletonRowWrapper)`
88
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
87
89
  gap: 1rem;
88
90
  flex-wrap: wrap;
89
91
  }
90
- `,u=({keyPrefix:r})=>e.jsxs(x,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),f=({keyPrefix:r,isLoading:i=!1,fallbackComponent:t=e.jsx(e.Fragment,{}),children:s})=>e.jsx(o.Suspense,{fallbackComponent:t,children:i===!0?e.jsx(u,{keyPrefix:r}):s}),j=o.forwardRef(({title:r,subtitle:i,items:t=[],isLoading:s=!1,onSelectCard:l=()=>{}},p)=>e.jsxs(_,{ref:p,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),i&&e.jsx("div",{className:"wrapper__subtitle",children:i})]}),e.jsx(f,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:t==null?void 0:t.map((a,c)=>e.jsx(w,{image:a==null?void 0:a.image,imageComponent:a==null?void 0:a.imageComponent,onSelectCard:()=>l==null?void 0:l(a),className:"wrapper__item"},`brand-hit-card__${c+1}`))})})]}));module.exports=j;
92
+ `,j=({keyPrefix:r})=>e.jsxs(f,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(i.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(i.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(i.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(i.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(i.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),$=({keyPrefix:r,isLoading:n=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:s})=>e.jsx(c.Suspense,{fallbackComponent:a,children:n===!0?e.jsx(j,{keyPrefix:r}):s}),y=c.forwardRef(({title:r,subtitle:n,items:a=[],isLoading:s=!1,onSelectCard:o=()=>{},urlPrefix:l,urlSufix:d},m)=>e.jsxs(u,{ref:m,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),n&&e.jsx("div",{className:"wrapper__subtitle",children:n})]}),e.jsx($,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:a==null?void 0:a.map((t,g)=>e.jsx(_,{image:t==null?void 0:t.image,imageComponent:t==null?void 0:t.imageComponent,onSelectCard:()=>o==null?void 0:o(t),className:"wrapper__item",urlPrefix:l,urlSufix:d,code:t==null?void 0:t.card},`brand-hit-card__${g+1}`))})})]}));module.exports=y;
@@ -1,10 +1,12 @@
1
- import { jsx as e, jsxs as o, Fragment as g } from "react/jsx-runtime";
2
- import { forwardRef as h, Suspense as w } from "react";
3
- import { l as _ } from "./utils-Dc5zIpaz.js";
4
- import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { M as d } from "./consts-BuFChS64.js";
6
- import { a as f, b as m } from "./style-CXMUA6cI.js";
7
- const u = s.div`
1
+ import { jsx as e, jsxs as s, Fragment as _ } from "react/jsx-runtime";
2
+ import { forwardRef as c, Suspense as f } from "react";
3
+ import { l as u } from "./utils-Dc5zIpaz.js";
4
+ import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { M as l } from "./consts-BuFChS64.js";
6
+ import { a as x, b as p } from "./style-CXMUA6cI.js";
7
+ const $ = h.a`
8
+ text-decoration: none;
9
+ color: var(--gray-950);
8
10
  width: 7.5rem;
9
11
  height: auto;
10
12
  max-height: 7.5rem;
@@ -18,7 +20,7 @@ const u = s.div`
18
20
  height: auto;
19
21
  }
20
22
 
21
- @media (max-width: ${d + "px"}) {
23
+ @media (max-width: ${l + "px"}) {
22
24
  width: 4.5rem;
23
25
  height: auto;
24
26
  max-height: 4.5rem;
@@ -28,9 +30,9 @@ const u = s.div`
28
30
  height: auto;
29
31
  }
30
32
  }
31
- `, x = h(
32
- ({ imageComponent: r, image: i, onSelectCard: a }, n) => /* @__PURE__ */ e(u, { ref: n, children: _(r) ? r : /* @__PURE__ */ e("img", { src: i, className: "wrapper__image", onClick: a }) })
33
- ), v = s.div`
33
+ `, v = c(
34
+ ({ imageComponent: r, image: i, onSelectCard: t, urlPrefix: n, urlSufix: o, code: d }, m) => /* @__PURE__ */ e($, { ref: m, onClick: t, href: `${n}${d}${o}`, children: u(r) ? r : /* @__PURE__ */ e("img", { src: i, className: "wrapper__image" }) })
35
+ ), b = h.div`
34
36
  display: flex;
35
37
  flex-direction: column;
36
38
  align-items: flex-start;
@@ -79,7 +81,7 @@ const u = s.div`
79
81
  }
80
82
  }
81
83
 
82
- @media (max-width: ${d + "px"}) {
84
+ @media (max-width: ${l + "px"}) {
83
85
  & .wrapper__content {
84
86
  align-content: center;
85
87
  gap: 1rem;
@@ -90,14 +92,14 @@ const u = s.div`
90
92
  }
91
93
  }
92
94
  }
93
- `, b = s(f)`
94
- @media (max-width: ${d + "px"}) {
95
+ `, y = h(x)`
96
+ @media (max-width: ${l + "px"}) {
95
97
  gap: 1rem;
96
98
  flex-wrap: wrap;
97
99
  }
98
- `, $ = ({ keyPrefix: r }) => /* @__PURE__ */ o(b, { justifyContent: "center", alignItems: "center", gap: "3rem", children: [
100
+ `, R = ({ keyPrefix: r }) => /* @__PURE__ */ s(y, { justifyContent: "center", alignItems: "center", gap: "3rem", children: [
99
101
  /* @__PURE__ */ e(
100
- m,
102
+ p,
101
103
  {
102
104
  height: "4rem",
103
105
  width: "7.5rem",
@@ -106,7 +108,7 @@ const u = s.div`
106
108
  `${r}-1`
107
109
  ),
108
110
  /* @__PURE__ */ e(
109
- m,
111
+ p,
110
112
  {
111
113
  height: "4rem",
112
114
  width: "7.5rem",
@@ -115,7 +117,7 @@ const u = s.div`
115
117
  `${r}-2`
116
118
  ),
117
119
  /* @__PURE__ */ e(
118
- m,
120
+ p,
119
121
  {
120
122
  height: "4rem",
121
123
  width: "7.5rem",
@@ -124,7 +126,7 @@ const u = s.div`
124
126
  `${r}-3`
125
127
  ),
126
128
  /* @__PURE__ */ e(
127
- m,
129
+ p,
128
130
  {
129
131
  height: "4rem",
130
132
  width: "7.5rem",
@@ -133,7 +135,7 @@ const u = s.div`
133
135
  `${r}-4`
134
136
  ),
135
137
  /* @__PURE__ */ e(
136
- m,
138
+ p,
137
139
  {
138
140
  height: "4rem",
139
141
  width: "7.5rem",
@@ -141,37 +143,40 @@ const u = s.div`
141
143
  },
142
144
  `${r}-5`
143
145
  )
144
- ] }), y = ({
146
+ ] }), N = ({
145
147
  keyPrefix: r,
146
148
  isLoading: i = !1,
147
- fallbackComponent: a = /* @__PURE__ */ e(g, {}),
149
+ fallbackComponent: t = /* @__PURE__ */ e(_, {}),
148
150
  children: n
149
- }) => /* @__PURE__ */ e(w, { fallbackComponent: a, children: i === !0 ? /* @__PURE__ */ e($, { keyPrefix: r }) : n }), I = h(
150
- ({ title: r, subtitle: i, items: a = [], isLoading: n = !1, onSelectCard: p = () => {
151
- } }, l) => /* @__PURE__ */ o(v, { ref: l, children: [
152
- /* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
151
+ }) => /* @__PURE__ */ e(f, { fallbackComponent: t, children: i === !0 ? /* @__PURE__ */ e(R, { keyPrefix: r }) : n }), k = c(
152
+ ({ title: r, subtitle: i, items: t = [], isLoading: n = !1, onSelectCard: o = () => {
153
+ }, urlPrefix: d, urlSufix: m }, g) => /* @__PURE__ */ s(b, { ref: g, children: [
154
+ /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
153
155
  r && /* @__PURE__ */ e("div", { className: "wrapper__title", children: r }),
154
156
  i && /* @__PURE__ */ e("div", { className: "wrapper__subtitle", children: i })
155
157
  ] }),
156
158
  /* @__PURE__ */ e(
157
- y,
159
+ N,
158
160
  {
159
161
  isLoading: n,
160
162
  keyPrefix: "brand-hits-skeleton",
161
- children: /* @__PURE__ */ e("div", { className: "wrapper__content", children: a == null ? void 0 : a.map((t, c) => /* @__PURE__ */ e(
162
- x,
163
+ children: /* @__PURE__ */ e("div", { className: "wrapper__content", children: t == null ? void 0 : t.map((a, w) => /* @__PURE__ */ e(
164
+ v,
163
165
  {
164
- image: t == null ? void 0 : t.image,
165
- imageComponent: t == null ? void 0 : t.imageComponent,
166
- onSelectCard: () => p == null ? void 0 : p(t),
167
- className: "wrapper__item"
166
+ image: a == null ? void 0 : a.image,
167
+ imageComponent: a == null ? void 0 : a.imageComponent,
168
+ onSelectCard: () => o == null ? void 0 : o(a),
169
+ className: "wrapper__item",
170
+ urlPrefix: d,
171
+ urlSufix: m,
172
+ code: a == null ? void 0 : a.card
168
173
  },
169
- `brand-hit-card__${c + 1}`
174
+ `brand-hit-card__${w + 1}`
170
175
  )) })
171
176
  }
172
177
  )
173
178
  ] })
174
179
  );
175
180
  export {
176
- I as default
181
+ k as default
177
182
  };
@@ -1,4 +1,5 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-RnrgDDZP.cjs"),m=require("./consts-goSZX3xP.cjs"),h=d.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),h=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-RnrgDDZP.cjs"),x=require("./consts-goSZX3xP.cjs"),g=l.styled.a`
2
+ text-decoration: none;
2
3
  display: flex;
3
4
  flex-direction: column;
4
5
  gap: 0;
@@ -34,7 +35,7 @@
34
35
  max-height: 8.25rem;
35
36
  }
36
37
 
37
- @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
38
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
38
39
  min-width: 8.75rem;
39
40
  max-width: 8.75rem;
40
41
 
@@ -44,4 +45,4 @@
44
45
  max-height: 5.375rem;
45
46
  }
46
47
  }
47
- `,g=c.forwardRef((t,i)=>{const{uuid:a,image:n,name:o,onSelectCard:s=()=>{}}=t;return e.jsxs(h,{ref:i,className:"simple-category-card",onClick:()=>s(a),children:[e.jsx("img",{src:n}),e.jsx("div",{className:"card-content",children:e.jsx("div",{className:"card-content-2",children:o})})]})});exports.CategorySimpleCard=g;
48
+ `,u=h.forwardRef((t,i)=>{const{image:a,name:o,urlPrefix:n,urlSufix:s,code:c,uuid:d,onSelectCard:m=()=>{}}=t;return e.jsxs(g,{ref:i,className:"simple-category-card",onClick:()=>m(d),href:`${n}${c}${s}`,children:[e.jsx("img",{src:a}),e.jsx("div",{className:"card-content",children:e.jsx("div",{className:"card-content-2",children:o})})]})});exports.CategorySimpleCard=u;