@lanaco/lnc-react-ui 4.0.87 → 4.0.88

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.
@@ -140,4 +140,4 @@
140
140
  display: none;
141
141
  }
142
142
  }
143
- `,Me=N.forwardRef(({carouselItems:t=[],onSelectItem:n=()=>{},onButtonAction:r=()=>{}},i)=>{const e=Le.useDetectMobile();return D.jsx(Ot,{ref:i,children:D.jsx(Oe.Carousel,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:500,onClickItem:o=>{e||n==null||n(t==null?void 0:t.at(o),o)},children:t&&(t==null?void 0:t.map((o,a)=>D.jsxs(Rt,{backgroundColor:o==null?void 0:o.backgroundColor,children:[D.jsx("img",{loading:"lazy",src:o.imageUrl}),D.jsx(Et,{backgroundColor:o==null?void 0:o.backgroundColor,children:D.jsxs("div",{className:"banner-content",children:[D.jsxs("div",{className:"banner-text",children:[D.jsx("div",{className:"banner-title",children:o.title}),o.description]}),re.isDefinedNotEmptyString(o==null?void 0:o.buttonText)&&D.jsx(De,{color:"neutral",onClick:()=>r(o),children:o.buttonText})]})})]},`banner-${a+1}`)))})})});Me.propTypes={items:fe.PropTypes.array,handleClick:fe.PropTypes.func};module.exports=Me;
143
+ `,Me=N.forwardRef(({carouselItems:t=[],onSelectItem:n=()=>{},onButtonAction:r=()=>{}},i)=>{const e=Le.useDetectMobile();return D.jsx(Ot,{ref:i,children:D.jsx(Oe.Carousel,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:500,onClickItem:o=>{e||n==null||n(t==null?void 0:t.at(o),o)},children:t&&(t==null?void 0:t.map((o,a)=>D.jsxs(Rt,{backgroundColor:o==null?void 0:o.backgroundColor,children:[D.jsx("img",{loading:"lazy",src:o.imageUrl}),D.jsx(Et,{backgroundColor:o==null?void 0:o.backgroundColor,children:D.jsxs("div",{className:"banner-content",children:[D.jsxs("div",{className:"banner-text",children:[D.jsx("div",{className:"banner-title",children:o.title}),o.description]}),re.isDefinedNotEmptyString(o==null?void 0:o.buttonText)&&D.jsx(De,{color:"neutral",onClick:s=>{var f;(f=s==null?void 0:s.target)==null||f.blur(),r(o)},children:o.buttonText})]})})]},`banner-${a+1}`)))})})});Me.propTypes={items:fe.PropTypes.array,handleClick:fe.PropTypes.func};module.exports=Me;
@@ -1540,7 +1540,10 @@ const Tt = te.div`
1540
1540
  Ae,
1541
1541
  {
1542
1542
  color: "neutral",
1543
- onClick: () => r(o),
1543
+ onClick: (s) => {
1544
+ var f;
1545
+ (f = s == null ? void 0 : s.target) == null || f.blur(), r(o);
1546
+ },
1544
1547
  children: o.buttonText
1545
1548
  }
1546
1549
  )
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),j=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./consts-goSZX3xP.cjs"),y=require("./Button.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),v=i.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),M=require("react"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),v=require("./Button.cjs"),H=require("./useDetectMobile-zkbzoOGV.cjs"),B=r.styled.div`
2
2
  display: flex;
3
3
  border-radius: 0.75rem;
4
4
  background-color: ${e=>e.bgcolor||"transparent"};
@@ -24,7 +24,7 @@
24
24
 
25
25
  `}
26
26
 
27
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
27
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
28
28
  gap: 1.5rem;
29
29
  flex-direction: column;
30
30
  min-height: unset;
@@ -42,7 +42,7 @@
42
42
  min-height: ${e=>`${e.imgHMob}px`||"12.1rem"};
43
43
  }
44
44
  }
45
- `,H=i.styled.div`
45
+ `,_=r.styled.div`
46
46
  padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
47
47
  display: flex;
48
48
  gap: 2rem;
@@ -51,11 +51,11 @@
51
51
 
52
52
  ${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
53
53
 
54
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
54
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
55
55
  padding: 0;
56
56
  flex-direction: column;
57
57
  }
58
- `,B=i.styled.div`
58
+ `,C=r.styled.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  gap: 0.25rem;
@@ -71,7 +71,7 @@
71
71
  font-weight: 500;
72
72
  }
73
73
 
74
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
74
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
75
75
  flex-direction: column;
76
76
  }
77
- `,_=j.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:s=!1,sectionHeight:x="12.65625rem",imageWidth:u,imageHeightMobile:p,smallPadding:b=!1,isHorizontalContent:$=!1,backgroundColor:f,hasBorder:w=!1}=e,a=M.useDetectMobile();return t.jsxs(v,{ref:m,bgcolor:f,height:x,imgW:u,imgHMob:p,hasBorder:w,children:[n!=="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o}),t.jsxs(H,{isHorizontalContent:$,smallPadding:b,children:[t.jsxs(B,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx(y,{size:"medium",color:"neutral",type:"button",onClick:()=>g(c),children:h})]}),n==="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o})]})});module.exports=_;
77
+ `,I=M.forwardRef((e,d)=>{const{title:h,subtitle:c,buttonText:g,buttonLink:x,onButtonAction:u=()=>{},imageUrl:n,imagePosition:s="right",hideImageForMobile:a=!1,sectionHeight:p="12.65625rem",imageWidth:b,imageHeightMobile:$,smallPadding:f=!1,isHorizontalContent:w=!1,backgroundColor:j,hasBorder:y=!1}=e,l=H.useDetectMobile();return t.jsxs(B,{ref:d,bgcolor:j,height:p,imgW:b,imgHMob:$,hasBorder:y,children:[s!=="right"&&!(a===!0&&l===!0)&&t.jsx("img",{src:n}),t.jsxs(_,{isHorizontalContent:w,smallPadding:f,children:[t.jsxs(C,{children:[t.jsx("div",{className:"header-title",children:h}),t.jsx("div",{className:"header-subitle",children:c})]}),t.jsx(v,{size:"medium",color:"neutral",type:"button",onClick:i=>{var m;(m=i==null?void 0:i.target)==null||m.blur(),u(x)},children:g})]}),s==="right"&&!(a===!0&&l===!0)&&t.jsx("img",{src:n})]})});module.exports=I;
@@ -1,10 +1,10 @@
1
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as H } from "react";
3
- import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as o } from "./consts-BuFChS64.js";
5
- import M from "./Button.js";
6
- import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
7
- const C = r.div`
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as n } from "./consts-BuFChS64.js";
5
+ import C from "./Button.js";
6
+ import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
7
+ const B = o.div`
8
8
  display: flex;
9
9
  border-radius: 0.75rem;
10
10
  background-color: ${(e) => e.bgcolor || "transparent"};
@@ -30,7 +30,7 @@ const C = r.div`
30
30
 
31
31
  `}
32
32
 
33
- @media (max-width: ${o + "px"}) {
33
+ @media (max-width: ${n + "px"}) {
34
34
  gap: 1.5rem;
35
35
  flex-direction: column;
36
36
  min-height: unset;
@@ -48,7 +48,7 @@ const C = r.div`
48
48
  min-height: ${(e) => `${e.imgHMob}px` || "12.1rem"};
49
49
  }
50
50
  }
51
- `, z = r.div`
51
+ `, k = o.div`
52
52
  padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
53
53
  display: flex;
54
54
  gap: 2rem;
@@ -57,11 +57,11 @@ const C = r.div`
57
57
 
58
58
  ${(e) => e.isHorizontalContent === !0 && "justify-content: space-between;"}
59
59
 
60
- @media (max-width: ${o + "px"}) {
60
+ @media (max-width: ${n + "px"}) {
61
61
  padding: 0;
62
62
  flex-direction: column;
63
63
  }
64
- `, B = r.div`
64
+ `, W = o.div`
65
65
  display: flex;
66
66
  flex-direction: column;
67
67
  gap: 0.25rem;
@@ -77,67 +77,70 @@ const C = r.div`
77
77
  font-weight: 500;
78
78
  }
79
79
 
80
- @media (max-width: ${o + "px"}) {
80
+ @media (max-width: ${n + "px"}) {
81
81
  flex-direction: column;
82
82
  }
83
- `, E = H((e, l) => {
83
+ `, N = y((e, g) => {
84
84
  const {
85
- title: h,
86
- subtitle: s,
87
- buttonText: g,
88
- buttonLink: c,
89
- onButtonAction: x = () => {
85
+ title: s,
86
+ subtitle: c,
87
+ buttonText: x,
88
+ buttonLink: p,
89
+ onButtonAction: u = () => {
90
90
  },
91
- imageUrl: n,
92
- imagePosition: a = "right",
93
- hideImageForMobile: m = !1,
94
- sectionHeight: p = "12.65625rem",
95
- imageWidth: u,
96
- imageHeightMobile: f,
97
- smallPadding: b = !1,
98
- isHorizontalContent: $ = !1,
99
- backgroundColor: w,
100
- hasBorder: v = !1
101
- } = e, d = y();
102
- return /* @__PURE__ */ t(
103
- C,
91
+ imageUrl: a,
92
+ imagePosition: m = "right",
93
+ hideImageForMobile: d = !1,
94
+ sectionHeight: b = "12.65625rem",
95
+ imageWidth: f,
96
+ imageHeightMobile: $,
97
+ smallPadding: w = !1,
98
+ isHorizontalContent: v = !1,
99
+ backgroundColor: H,
100
+ hasBorder: M = !1
101
+ } = e, l = z();
102
+ return /* @__PURE__ */ r(
103
+ B,
104
104
  {
105
- ref: l,
106
- bgcolor: w,
107
- height: p,
108
- imgW: u,
109
- imgHMob: f,
110
- hasBorder: v,
105
+ ref: g,
106
+ bgcolor: H,
107
+ height: b,
108
+ imgW: f,
109
+ imgHMob: $,
110
+ hasBorder: M,
111
111
  children: [
112
- a !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n }),
113
- /* @__PURE__ */ t(
114
- z,
112
+ m !== "right" && !(d === !0 && l === !0) && /* @__PURE__ */ t("img", { src: a }),
113
+ /* @__PURE__ */ r(
114
+ k,
115
115
  {
116
- isHorizontalContent: $,
117
- smallPadding: b,
116
+ isHorizontalContent: v,
117
+ smallPadding: w,
118
118
  children: [
119
- /* @__PURE__ */ t(B, { children: [
120
- /* @__PURE__ */ i("div", { className: "header-title", children: h }),
121
- /* @__PURE__ */ i("div", { className: "header-subitle", children: s })
119
+ /* @__PURE__ */ r(W, { children: [
120
+ /* @__PURE__ */ t("div", { className: "header-title", children: s }),
121
+ /* @__PURE__ */ t("div", { className: "header-subitle", children: c })
122
122
  ] }),
123
- /* @__PURE__ */ i(
124
- M,
123
+ /* @__PURE__ */ t(
124
+ C,
125
125
  {
126
126
  size: "medium",
127
127
  color: "neutral",
128
128
  type: "button",
129
- onClick: () => x(c),
130
- children: g
129
+ onClick: (i) => {
130
+ var h;
131
+ (h = i == null ? void 0 : i.target) == null || h.blur(), u(p);
132
+ },
133
+ children: x
131
134
  }
132
135
  )
133
136
  ]
134
137
  }
135
138
  ),
136
- a === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n })
139
+ m === "right" && !(d === !0 && l === !0) && /* @__PURE__ */ t("img", { src: a })
137
140
  ]
138
141
  }
139
142
  );
140
143
  });
141
144
  export {
142
- E as default
145
+ N as default
143
146
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./consts-goSZX3xP.cjs"),h=require("./Button.cjs"),t=require("./utils-DhRHf5Ed.cjs"),g=r.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./consts-goSZX3xP.cjs"),g=require("./Button.cjs"),n=require("./utils-DhRHf5Ed.cjs"),h=o.styled.div`
2
2
  padding-bottom: 1.38rem;
3
3
  text-align: center;
4
4
  display: flex;
@@ -11,10 +11,10 @@
11
11
  width: fit-content;
12
12
  }
13
13
 
14
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
14
+ @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
15
15
  padding-bottom: 0;
16
16
  }
17
- `,p=r.styled.div`
17
+ `,p=o.styled.div`
18
18
  text-align: center;
19
19
  display: flex;
20
20
  justify-content: center;
@@ -32,9 +32,9 @@
32
32
  font-weight: 500;
33
33
  }
34
34
 
35
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
35
+ @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
36
36
  }
37
- `,j=r.styled.div`
37
+ `,j=o.styled.div`
38
38
  text-align: center;
39
39
  display: flex;
40
40
  flex-direction: column;
@@ -54,7 +54,7 @@
54
54
  }
55
55
  }
56
56
 
57
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
57
+ @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
58
58
  & .list-item {
59
59
  flex-direction: column;
60
60
  text-align: center;
@@ -62,4 +62,4 @@
62
62
  gap: 0;
63
63
  }
64
64
  }
65
- `,y=o.forwardRef((l,a)=>{const{title:i,subtitle:n,buttonText:d,list:s,buttonLink:m,onButtonAction:x=()=>{}}=l;return e.jsxs(g,{ref:a,children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(p,{children:[t.isDefined(i)&&e.jsx("div",{className:"header-title",children:i}),t.isDefined(n)&&e.jsx("div",{className:"header-subitle",children:n})]}),e.jsx(j,{children:s==null?void 0:s.map((u,f)=>e.jsx(o.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:u})]})},f))}),e.jsx(h,{size:"medium",color:"neutral",type:"button",onClick:()=>x(m),children:d})]})});module.exports=y;
65
+ `,y=a.forwardRef((d,m)=>{const{title:s,subtitle:r,buttonText:u,list:c,buttonLink:x,onButtonAction:f=()=>{}}=d;return e.jsxs(h,{ref:m,children:[(n.isDefined(s)||n.isDefined(r))&&e.jsxs(p,{children:[n.isDefined(s)&&e.jsx("div",{className:"header-title",children:s}),n.isDefined(r)&&e.jsx("div",{className:"header-subitle",children:r})]}),e.jsx(j,{children:c==null?void 0:c.map((t,i)=>e.jsx(a.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:t})]})},i))}),e.jsx(g,{size:"medium",color:"neutral",type:"button",onClick:t=>{var i;(i=t==null?void 0:t.target)==null||i.blur(),f(x)},children:u})]})});module.exports=y;
@@ -1,10 +1,10 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as u, Fragment as x } from "react";
3
- import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as a } from "./consts-BuFChS64.js";
5
- import g from "./Button.js";
6
- import { l as t } from "./utils-BE-UlkKf.js";
7
- const y = l.div`
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as g, Fragment as h } from "react";
3
+ import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as m } from "./consts-BuFChS64.js";
5
+ import x from "./Button.js";
6
+ import { l as n } from "./utils-BE-UlkKf.js";
7
+ const y = c.div`
8
8
  padding-bottom: 1.38rem;
9
9
  text-align: center;
10
10
  display: flex;
@@ -17,10 +17,10 @@ const y = l.div`
17
17
  width: fit-content;
18
18
  }
19
19
 
20
- @media (max-width: ${a + "px"}) {
20
+ @media (max-width: ${m + "px"}) {
21
21
  padding-bottom: 0;
22
22
  }
23
- `, b = l.div`
23
+ `, b = c.div`
24
24
  text-align: center;
25
25
  display: flex;
26
26
  justify-content: center;
@@ -38,9 +38,9 @@ const y = l.div`
38
38
  font-weight: 500;
39
39
  }
40
40
 
41
- @media (max-width: ${a + "px"}) {
41
+ @media (max-width: ${m + "px"}) {
42
42
  }
43
- `, v = l.div`
43
+ `, v = c.div`
44
44
  text-align: center;
45
45
  display: flex;
46
46
  flex-direction: column;
@@ -60,7 +60,7 @@ const y = l.div`
60
60
  }
61
61
  }
62
62
 
63
- @media (max-width: ${a + "px"}) {
63
+ @media (max-width: ${m + "px"}) {
64
64
  & .list-item {
65
65
  flex-direction: column;
66
66
  text-align: center;
@@ -68,33 +68,36 @@ const y = l.div`
68
68
  gap: 0;
69
69
  }
70
70
  }
71
- `, N = u((c, m) => {
71
+ `, N = g((s, d) => {
72
72
  const {
73
- title: i,
74
- subtitle: n,
75
- buttonText: s,
76
- list: r,
77
- buttonLink: d,
78
- onButtonAction: f = () => {
73
+ title: r,
74
+ subtitle: o,
75
+ buttonText: f,
76
+ list: l,
77
+ buttonLink: p,
78
+ onButtonAction: u = () => {
79
79
  }
80
- } = c;
81
- return /* @__PURE__ */ o(y, { ref: m, children: [
82
- (t(i) || t(n)) && /* @__PURE__ */ o(b, { children: [
83
- t(i) && /* @__PURE__ */ e("div", { className: "header-title", children: i }),
84
- t(n) && /* @__PURE__ */ e("div", { className: "header-subitle", children: n })
80
+ } = s;
81
+ return /* @__PURE__ */ a(y, { ref: d, children: [
82
+ (n(r) || n(o)) && /* @__PURE__ */ a(b, { children: [
83
+ n(r) && /* @__PURE__ */ e("div", { className: "header-title", children: r }),
84
+ n(o) && /* @__PURE__ */ e("div", { className: "header-subitle", children: o })
85
85
  ] }),
86
- /* @__PURE__ */ e(v, { children: r == null ? void 0 : r.map((p, h) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
86
+ /* @__PURE__ */ e(v, { children: l == null ? void 0 : l.map((t, i) => /* @__PURE__ */ e(h, { children: /* @__PURE__ */ a("div", { className: "list-item", children: [
87
87
  /* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
88
- /* @__PURE__ */ e("span", { children: p })
89
- ] }) }, h)) }),
88
+ /* @__PURE__ */ e("span", { children: t })
89
+ ] }) }, i)) }),
90
90
  /* @__PURE__ */ e(
91
- g,
91
+ x,
92
92
  {
93
93
  size: "medium",
94
94
  color: "neutral",
95
95
  type: "button",
96
- onClick: () => f(d),
97
- children: s
96
+ onClick: (t) => {
97
+ var i;
98
+ (i = t == null ? void 0 : t.target) == null || i.blur(), u(p);
99
+ },
100
+ children: f
98
101
  }
99
102
  )
100
103
  ] });
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),o=require("react"),t=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./consts-goSZX3xP.cjs"),y=require("./Button.cjs"),j=t.styled.div`
1
+ "use strict";const i=require("react/jsx-runtime"),a=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),y=require("./Button.cjs"),j=n.styled.div`
2
2
  display: flex;
3
3
  border-radius: 0.75rem;
4
4
  background-color: ${e=>(e==null?void 0:e.bgColor)||"transparent"};
@@ -21,7 +21,7 @@
21
21
 
22
22
  `}
23
23
 
24
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
24
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
25
25
  flex-direction: column;
26
26
  & img {
27
27
  max-width: 100%;
@@ -30,7 +30,7 @@
30
30
  min-height: ${e=>e.imgHMob||"12.1rem"};
31
31
  }
32
32
  }
33
- `,v=t.styled.div`
33
+ `,v=n.styled.div`
34
34
  padding: 2rem;
35
35
  display: flex;
36
36
  gap: 1.25rem;
@@ -38,10 +38,10 @@
38
38
  flex: 1;
39
39
  flex-direction: column;
40
40
 
41
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
41
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
42
42
  padding: 1.25rem;
43
43
  }
44
- `,$=t.styled.div`
44
+ `,$=n.styled.div`
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  gap: 0.25rem;
@@ -57,10 +57,10 @@
57
57
  font-weight: 500;
58
58
  }
59
59
 
60
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
60
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
61
61
  flex-direction: column;
62
62
  }
63
- `,_=t.styled.div`
63
+ `,_=n.styled.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
66
  gap: 0.75rem;
@@ -77,6 +77,6 @@
77
77
  }
78
78
  }
79
79
 
80
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
80
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
81
81
  }
82
- `,B=o.forwardRef((e,s)=>{const{title:a,subtitle:m,buttonText:d,list:n,imageUrl:l,imageHeight:c,imageWidth:x,imageHeightMobile:g,hasBorder:h=!0,backgroundColor:p="transparent",onButtonAction:u=()=>{},buttonLink:f}=e;return i.jsxs(j,{ref:s,imgH:c,imgW:x,imgHMob:g,hasBorder:h,bgColor:p,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:a}),i.jsx("div",{className:"header-subitle",children:m})]}),i.jsx(_,{children:n==null?void 0:n.map((b,w)=>i.jsx(o.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:b})]})},w))}),i.jsx(y,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:()=>u(f),children:d})]}),i.jsx("img",{src:l})]})});module.exports=B;
82
+ `,B=a.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:c,list:s,imageUrl:x,imageHeight:g,imageWidth:h,imageHeightMobile:p,hasBorder:u=!0,backgroundColor:b="transparent",onButtonAction:f=()=>{},buttonLink:w}=e;return i.jsxs(j,{ref:m,imgH:g,imgW:h,imgHMob:p,hasBorder:u,bgColor:b,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:d}),i.jsx("div",{className:"header-subitle",children:l})]}),i.jsx(_,{children:s==null?void 0:s.map((t,r)=>i.jsx(a.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:t})]})},r))}),i.jsx(y,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:t=>{var r;(r=t==null?void 0:t.target)==null||r.blur(),f(w)},children:c})]}),i.jsx("img",{src:x})]})});module.exports=B;
@@ -1,9 +1,9 @@
1
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as v, Fragment as y } from "react";
3
- import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as o } from "./consts-BuFChS64.js";
3
+ import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as m } from "./consts-BuFChS64.js";
5
5
  import $ from "./Button.js";
6
- const H = r.div`
6
+ const H = n.div`
7
7
  display: flex;
8
8
  border-radius: 0.75rem;
9
9
  background-color: ${(e) => (e == null ? void 0 : e.bgColor) || "transparent"};
@@ -26,7 +26,7 @@ const H = r.div`
26
26
 
27
27
  `}
28
28
 
29
- @media (max-width: ${o + "px"}) {
29
+ @media (max-width: ${m + "px"}) {
30
30
  flex-direction: column;
31
31
  & img {
32
32
  max-width: 100%;
@@ -35,7 +35,7 @@ const H = r.div`
35
35
  min-height: ${(e) => e.imgHMob || "12.1rem"};
36
36
  }
37
37
  }
38
- `, W = r.div`
38
+ `, W = n.div`
39
39
  padding: 2rem;
40
40
  display: flex;
41
41
  gap: 1.25rem;
@@ -43,10 +43,10 @@ const H = r.div`
43
43
  flex: 1;
44
44
  flex-direction: column;
45
45
 
46
- @media (max-width: ${o + "px"}) {
46
+ @media (max-width: ${m + "px"}) {
47
47
  padding: 1.25rem;
48
48
  }
49
- `, k = r.div`
49
+ `, k = n.div`
50
50
  display: flex;
51
51
  flex-direction: column;
52
52
  gap: 0.25rem;
@@ -62,10 +62,10 @@ const H = r.div`
62
62
  font-weight: 500;
63
63
  }
64
64
 
65
- @media (max-width: ${o + "px"}) {
65
+ @media (max-width: ${m + "px"}) {
66
66
  flex-direction: column;
67
67
  }
68
- `, B = r.div`
68
+ `, B = n.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  gap: 0.75rem;
@@ -82,43 +82,43 @@ const H = r.div`
82
82
  }
83
83
  }
84
84
 
85
- @media (max-width: ${o + "px"}) {
85
+ @media (max-width: ${m + "px"}) {
86
86
  }
87
- `, N = v((e, m) => {
87
+ `, N = v((e, d) => {
88
88
  const {
89
- title: a,
90
- subtitle: d,
91
- buttonText: l,
92
- list: n,
93
- imageUrl: s,
94
- imageHeight: c,
95
- imageWidth: g,
96
- imageHeightMobile: h,
97
- hasBorder: x = !0,
98
- backgroundColor: p = "transparent",
99
- onButtonAction: f = () => {
89
+ title: l,
90
+ subtitle: s,
91
+ buttonText: c,
92
+ list: a,
93
+ imageUrl: g,
94
+ imageHeight: h,
95
+ imageWidth: x,
96
+ imageHeightMobile: p,
97
+ hasBorder: f = !0,
98
+ backgroundColor: b = "transparent",
99
+ onButtonAction: u = () => {
100
100
  },
101
- buttonLink: b
101
+ buttonLink: w
102
102
  } = e;
103
- return /* @__PURE__ */ t(
103
+ return /* @__PURE__ */ o(
104
104
  H,
105
105
  {
106
- ref: m,
107
- imgH: c,
108
- imgW: g,
109
- imgHMob: h,
110
- hasBorder: x,
111
- bgColor: p,
106
+ ref: d,
107
+ imgH: h,
108
+ imgW: x,
109
+ imgHMob: p,
110
+ hasBorder: f,
111
+ bgColor: b,
112
112
  children: [
113
- /* @__PURE__ */ t(W, { children: [
114
- /* @__PURE__ */ t(k, { children: [
115
- /* @__PURE__ */ i("div", { className: "header-title", children: a }),
116
- /* @__PURE__ */ i("div", { className: "header-subitle", children: d })
113
+ /* @__PURE__ */ o(W, { children: [
114
+ /* @__PURE__ */ o(k, { children: [
115
+ /* @__PURE__ */ i("div", { className: "header-title", children: l }),
116
+ /* @__PURE__ */ i("div", { className: "header-subitle", children: s })
117
117
  ] }),
118
- /* @__PURE__ */ i(B, { children: n == null ? void 0 : n.map((u, w) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ t("div", { className: "list-item", children: [
118
+ /* @__PURE__ */ i(B, { children: a == null ? void 0 : a.map((t, r) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
119
119
  /* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
120
- /* @__PURE__ */ i("span", { children: u })
121
- ] }) }, w)) }),
120
+ /* @__PURE__ */ i("span", { children: t })
121
+ ] }) }, r)) }),
122
122
  /* @__PURE__ */ i(
123
123
  $,
124
124
  {
@@ -126,12 +126,15 @@ const H = r.div`
126
126
  color: "gray",
127
127
  type: "button",
128
128
  btnType: "outline",
129
- onClick: () => f(b),
130
- children: l
129
+ onClick: (t) => {
130
+ var r;
131
+ (r = t == null ? void 0 : t.target) == null || r.blur(), u(w);
132
+ },
133
+ children: c
131
134
  }
132
135
  )
133
136
  ] }),
134
- /* @__PURE__ */ i("img", { src: s })
137
+ /* @__PURE__ */ i("img", { src: g })
135
138
  ]
136
139
  }
137
140
  );
@@ -5,7 +5,7 @@
5
5
  gap: 1.25rem;
6
6
  border-radius: 1.25rem;
7
7
  align-items: stretch;
8
- border: ${i=>i!=null&&i.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
8
+ border: ${s=>s!=null&&s.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
9
9
  background: var(--white, #fff);
10
10
  min-height: 10.5rem;
11
11
  position: relative;
@@ -114,7 +114,7 @@
114
114
  }
115
115
  }
116
116
  }
117
- `,S=p.forwardRef(({title:i,imageUrl:o,options:s,publishedAt:g,timeToReadText:_="{0} min read",timeToRead:f=0,numberOfLikes:t=0,numberOfComments:n=0,isSponsored:l=!1,onSelectCard:m=()=>{},onSelectOption:u=()=>{}},b)=>r.jsxs(R,{isSponsored:l,onClick:m,children:[l&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(x.ProductImageWrapper,{src:o,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:i}),r.jsx("div",{className:"wrapper__tags",children:s&&(s==null?void 0:s.map((a,h)=>r.jsx(N,{label:a==null?void 0:a.name,color:a==null?void 0:a.color,className:"wrapper__tag",onClick:d=>{d==null||d.stopPropagation(),u(a==null?void 0:a.code)}},`blog-card-sponsored-option__${h+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(g)} • ${c.formatString(_,f)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(t)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(n)]})]})]})]})]})),I=y.styled.div`
117
+ `,S=p.forwardRef(({title:s,imageUrl:o,options:t,publishedAt:g,timeToReadText:_="{0} min read",timeToRead:f=0,numberOfLikes:l=0,numberOfComments:n=0,isSponsored:d=!1,onSelectCard:m=()=>{},onSelectOption:u=()=>{}},b)=>r.jsxs(R,{isSponsored:d,onClick:m,children:[d&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(x.ProductImageWrapper,{src:o,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:s}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.map((a,h)=>r.jsx(N,{label:a==null?void 0:a.name,color:a==null?void 0:a.color,className:"wrapper__tag",onClick:i=>{i==null||i.stopPropagation(),u(a==null?void 0:a.code)}},`blog-card-sponsored-option__${h+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(g)} • ${c.formatString(_,f)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(l)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(n)]})]})]})]})]})),I=y.styled.div`
118
118
  display: flex;
119
119
  flex-direction: column;
120
120
  align-items: flex-start;
@@ -196,4 +196,4 @@
196
196
  gap: 1rem;
197
197
  }
198
198
  }
199
- `,$=p.memo(S),C=p.forwardRef(({title:i,subtitle:o,icon:s,buttonText:g,buttonLink:_,timeToReadText:f="{0} min read",items:t,onButtonAction:n=()=>{},onSelectCard:l=()=>{},onSelectOption:m=()=>{},isLoading:u=!1,getImage:b=()=>{}},a)=>{const h=p.useMemo(()=>{var d;return(d=t==null?void 0:t.slice(0,4))==null?void 0:d.map((e,v)=>r.jsx($,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:f,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>l==null?void 0:l(e==null?void 0:e.uuid,e==null?void 0:e.titleSlug),onSelectOption:j=>m==null?void 0:m(j),imageUrl:b(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${v+1}`))},[t]);return r.jsxs(I,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[i&&r.jsxs("div",{className:"title__text",children:[c.isDefinedNotEmptyString(s)&&r.jsx("i",{className:s}),r.jsx("span",{children:i})]}),n&&r.jsx(k,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:()=>n==null?void 0:n(_)})]}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(z.SuspenseBlogLarge,{isLoading:u,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=C;
199
+ `,$=p.memo(S),C=p.forwardRef(({title:s,subtitle:o,icon:t,buttonText:g,buttonLink:_,timeToReadText:f="{0} min read",items:l,onButtonAction:n=()=>{},onSelectCard:d=()=>{},onSelectOption:m=()=>{},isLoading:u=!1,getImage:b=()=>{}},a)=>{const h=p.useMemo(()=>{var i;return(i=l==null?void 0:l.slice(0,4))==null?void 0:i.map((e,v)=>r.jsx($,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:f,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>d==null?void 0:d(e==null?void 0:e.uuid,e==null?void 0:e.titleSlug),onSelectOption:j=>m==null?void 0:m(j),imageUrl:b(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${v+1}`))},[l]);return r.jsxs(I,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[s&&r.jsxs("div",{className:"title__text",children:[c.isDefinedNotEmptyString(t)&&r.jsx("i",{className:t}),r.jsx("span",{children:s})]}),n&&r.jsx(k,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:i=>{var e;(e=i==null?void 0:i.target)==null||e.blur(),n==null||n(_)}})]}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(z.SuspenseBlogLarge,{isLoading:u,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=C;