@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.
@@ -15,7 +15,7 @@ const T = y.div`
15
15
  gap: 1.25rem;
16
16
  border-radius: 1.25rem;
17
17
  align-items: stretch;
18
- border: ${(t) => t != null && t.isSponsored ? "2px solid var(--yellow-500, #f59e0b)" : "1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
18
+ border: ${(l) => l != null && l.isSponsored ? "2px solid var(--yellow-500, #f59e0b)" : "1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
19
19
  background: var(--white, #fff);
20
20
  min-height: 10.5rem;
21
21
  position: relative;
@@ -126,33 +126,33 @@ const T = y.div`
126
126
  }
127
127
  `, E = v(
128
128
  ({
129
- title: t,
129
+ title: l,
130
130
  imageUrl: d,
131
- options: l,
131
+ options: s,
132
132
  publishedAt: c,
133
133
  timeToReadText: g = "{0} min read",
134
134
  timeToRead: f = 0,
135
- numberOfLikes: s = 0,
136
- numberOfComments: n = 0,
137
- isSponsored: m = !1,
135
+ numberOfLikes: n = 0,
136
+ numberOfComments: m = 0,
137
+ isSponsored: p = !1,
138
138
  onSelectCard: o = () => {
139
139
  },
140
140
  onSelectOption: _ = () => {
141
141
  }
142
- }, w) => /* @__PURE__ */ a(T, { isSponsored: m, onClick: o, children: [
143
- m && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
142
+ }, w) => /* @__PURE__ */ a(T, { isSponsored: p, onClick: o, children: [
143
+ p && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
144
144
  /* @__PURE__ */ r(L, { src: d, className: "wrapper__image" }),
145
145
  /* @__PURE__ */ a("div", { className: "wrapper__content", children: [
146
146
  /* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
147
- /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
148
- /* @__PURE__ */ r("div", { className: "wrapper__tags", children: l && (l == null ? void 0 : l.map((i, h) => /* @__PURE__ */ r(
147
+ /* @__PURE__ */ r("div", { className: "wrapper__title", children: l }),
148
+ /* @__PURE__ */ r("div", { className: "wrapper__tags", children: s && (s == null ? void 0 : s.map((i, h) => /* @__PURE__ */ r(
149
149
  R,
150
150
  {
151
151
  label: i == null ? void 0 : i.name,
152
152
  color: i == null ? void 0 : i.color,
153
153
  className: "wrapper__tag",
154
- onClick: (p) => {
155
- p == null || p.stopPropagation(), _(i == null ? void 0 : i.code);
154
+ onClick: (t) => {
155
+ t == null || t.stopPropagation(), _(i == null ? void 0 : i.code);
156
156
  }
157
157
  },
158
158
  `blog-card-sponsored-option__${h + 1}`
@@ -165,11 +165,11 @@ const T = y.div`
165
165
  /* @__PURE__ */ a("div", { className: "info__text", children: [
166
166
  /* @__PURE__ */ a("div", { children: [
167
167
  /* @__PURE__ */ r(u, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
168
- b(s)
168
+ b(n)
169
169
  ] }),
170
170
  /* @__PURE__ */ a("div", { children: [
171
171
  /* @__PURE__ */ r(u, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
172
- b(n)
172
+ b(m)
173
173
  ] })
174
174
  ] })
175
175
  ] })
@@ -259,16 +259,16 @@ const T = y.div`
259
259
  }
260
260
  `, B = z(E), Q = v(
261
261
  ({
262
- title: t,
262
+ title: l,
263
263
  subtitle: d,
264
- icon: l,
264
+ icon: s,
265
265
  buttonText: c,
266
266
  buttonLink: g,
267
267
  timeToReadText: f = "{0} min read",
268
- items: s,
269
- onButtonAction: n = () => {
268
+ items: n,
269
+ onButtonAction: m = () => {
270
270
  },
271
- onSelectCard: m = () => {
271
+ onSelectCard: p = () => {
272
272
  },
273
273
  onSelectOption: o = () => {
274
274
  },
@@ -277,8 +277,8 @@ const T = y.div`
277
277
  }
278
278
  }, i) => {
279
279
  const h = S(() => {
280
- var p;
281
- return (p = s == null ? void 0 : s.slice(0, 4)) == null ? void 0 : p.map((e, N) => /* @__PURE__ */ r(
280
+ var t;
281
+ return (t = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : t.map((e, N) => /* @__PURE__ */ r(
282
282
  B,
283
283
  {
284
284
  title: e == null ? void 0 : e.title,
@@ -290,28 +290,31 @@ const T = y.div`
290
290
  numberOfLikes: e == null ? void 0 : e.numberOfLikes,
291
291
  numberOfComments: e == null ? void 0 : e.numberOfComments,
292
292
  isSponsored: e == null ? void 0 : e.isSponsored,
293
- onSelectCard: () => m == null ? void 0 : m(e == null ? void 0 : e.uuid, e == null ? void 0 : e.titleSlug),
293
+ onSelectCard: () => p == null ? void 0 : p(e == null ? void 0 : e.uuid, e == null ? void 0 : e.titleSlug),
294
294
  onSelectOption: (k) => o == null ? void 0 : o(k),
295
295
  imageUrl: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
296
296
  },
297
297
  `blog-card-sponsored__${N + 1}`
298
298
  ));
299
- }, [s]);
299
+ }, [n]);
300
300
  return /* @__PURE__ */ a(W, { children: [
301
301
  /* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
302
302
  /* @__PURE__ */ a("div", { className: "wrapper__title", children: [
303
- t && /* @__PURE__ */ a("div", { className: "title__text", children: [
304
- C(l) && /* @__PURE__ */ r("i", { className: l }),
305
- /* @__PURE__ */ r("span", { children: t })
303
+ l && /* @__PURE__ */ a("div", { className: "title__text", children: [
304
+ C(s) && /* @__PURE__ */ r("i", { className: s }),
305
+ /* @__PURE__ */ r("span", { children: l })
306
306
  ] }),
307
- n && /* @__PURE__ */ r(
307
+ m && /* @__PURE__ */ r(
308
308
  U,
309
309
  {
310
310
  text: c,
311
311
  borderRadius: "curved",
312
312
  btnType: "tinted",
313
313
  className: "title__action",
314
- onClick: () => n == null ? void 0 : n(g)
314
+ onClick: (t) => {
315
+ var e;
316
+ (e = t == null ? void 0 : t.target) == null || e.blur(), m == null || m(g);
317
+ }
315
318
  }
316
319
  )
317
320
  ] }),
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),g=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-DhRHf5Ed.cjs"),N=require("./style-xvwWn3Zv.cjs"),T=require("./Button.cjs"),O=require("./index-BVaZWq6y.cjs"),A=w.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-DhRHf5Ed.cjs"),N=require("./style-xvwWn3Zv.cjs"),T=require("./Button.cjs"),O=require("./index-BVaZWq6y.cjs"),A=w.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -108,4 +108,4 @@
108
108
  align-items: center;
109
109
  gap: 1rem;
110
110
  }
111
- `,$=g.forwardRef((i,l)=>{const{title:s,imageUrl:m,text:o,numberOfLikes:n,numberOfComments:f,timeToRead:u,publishedAt:c,tags:d,onCardClick:b,timeToReadText:p="{0} min read"}=i;return t.jsxs(k,{ref:l,className:"blog-card",onClick:b,children:[t.jsx(O.ProductImageWrapper,{src:m}),t.jsxs(S,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[r.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),u&&p?`${r.formatString(p,u)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:r.getRoundedNumber(n)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:r.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:s}),t.jsx("div",{className:"text-wr",children:o})]}),t.jsx("div",{className:"tags-wr",children:d==null?void 0:d.map((a,h)=>t.jsx(N.BlogTag,{color:a==null?void 0:a.color,children:a==null?void 0:a.name},h))})]})}),D=g.forwardRef(({},i)=>t.jsxs(k,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsxs(S,{children:[t.jsx("div",{className:"info-wr"}),t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"info-wr-skeleton"})]})]})),q=({limit:i=3,isLoading:l=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:i},(m,o)=>t.jsx(D,{isLoading:l},`${s}-skeleton-product-card-${o}`))}),B=({children:i,fallbackComponent:l=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:m,keyPrefix:o})=>t.jsx(g.Suspense,{fallbackComponent:l,children:s===!0?t.jsx(q,{isLoading:s,limit:m,keyPrefix:o}):i}),v=g.memo($),L=g.forwardRef((i,l)=>{const{icon:s,title:m,onButtonAction:o,items:n,buttonText:f,timeToReadText:u,limit:c=3,onSelectCard:d=()=>{},isLoading:b=!1,buttonLink:p,getImage:a=()=>{}}=i,h=R.useDetectMobile(),C=g.useMemo(()=>t.jsx(t.Fragment,{children:h===!0?n==null?void 0:n.map((e,j)=>t.jsx(v,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:u,tags:e==null?void 0:e.tags,onCardClick:()=>d(e==null?void 0:e.titleSlug),imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},j)):n==null?void 0:n.slice(0,c).map((e,j)=>t.jsx(v,{title:e==null?void 0:e.title,imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:u,onCardClick:()=>d(e==null?void 0:e.titleSlug)},j))}),[n,h,c,d]);return t.jsxs(N.RegulatTitleSectionWrapper,{ref:l,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[r.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:m})]}),r.isDefinedNotEmptyString(f)&&r.isDefinedNotEmptyString(p)&&t.jsx(T,{type:"button",btnType:"tinted",color:"gray",onClick:()=>o(p),borderRadius:"curved",children:f})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:b,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
111
+ `,$=u.forwardRef((i,l)=>{const{title:s,imageUrl:m,text:o,numberOfLikes:n,numberOfComments:h,timeToRead:p,publishedAt:c,tags:d,onCardClick:j,timeToReadText:f="{0} min read"}=i;return t.jsxs(k,{ref:l,className:"blog-card",onClick:j,children:[t.jsx(O.ProductImageWrapper,{src:m}),t.jsxs(S,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[r.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),p&&f?`${r.formatString(f,p)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:r.getRoundedNumber(n)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:r.getRoundedNumber(h)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:s}),t.jsx("div",{className:"text-wr",children:o})]}),t.jsx("div",{className:"tags-wr",children:d==null?void 0:d.map((a,b)=>t.jsx(N.BlogTag,{color:a==null?void 0:a.color,children:a==null?void 0:a.name},b))})]})}),D=u.forwardRef(({},i)=>t.jsxs(k,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsxs(S,{children:[t.jsx("div",{className:"info-wr"}),t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"info-wr-skeleton"})]})]})),q=({limit:i=3,isLoading:l=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:i},(m,o)=>t.jsx(D,{isLoading:l},`${s}-skeleton-product-card-${o}`))}),B=({children:i,fallbackComponent:l=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:m,keyPrefix:o})=>t.jsx(u.Suspense,{fallbackComponent:l,children:s===!0?t.jsx(q,{isLoading:s,limit:m,keyPrefix:o}):i}),v=u.memo($),L=u.forwardRef((i,l)=>{const{icon:s,title:m,onButtonAction:o,items:n,buttonText:h,timeToReadText:p,limit:c=3,onSelectCard:d=()=>{},isLoading:j=!1,buttonLink:f,getImage:a=()=>{}}=i,b=R.useDetectMobile(),C=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?n==null?void 0:n.map((e,g)=>t.jsx(v,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:p,tags:e==null?void 0:e.tags,onCardClick:()=>d(e==null?void 0:e.titleSlug),imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},g)):n==null?void 0:n.slice(0,c).map((e,g)=>t.jsx(v,{title:e==null?void 0:e.title,imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:p,onCardClick:()=>d(e==null?void 0:e.titleSlug)},g))}),[n,b,c,d]);return t.jsxs(N.RegulatTitleSectionWrapper,{ref:l,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[r.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:m})]}),r.isDefinedNotEmptyString(h)&&r.isDefinedNotEmptyString(f)&&t.jsx(T,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var g;(g=e==null?void 0:e.target)==null||g.blur(),o(f)},borderRadius:"curved",children:h})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:j,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
@@ -123,16 +123,16 @@ const E = y.div`
123
123
  imageUrl: d,
124
124
  text: s,
125
125
  numberOfLikes: l,
126
- numberOfComments: u,
127
- timeToRead: g,
126
+ numberOfComments: f,
127
+ timeToRead: p,
128
128
  publishedAt: c,
129
129
  tags: m,
130
- onCardClick: h,
131
- timeToReadText: p = "{0} min read"
130
+ onCardClick: b,
131
+ timeToReadText: u = "{0} min read"
132
132
  } = i;
133
133
  return (
134
134
  // <BlogCardDetailedSkeleton />
135
- /* @__PURE__ */ t(R, { ref: o, className: "blog-card", onClick: h, children: [
135
+ /* @__PURE__ */ t(R, { ref: o, className: "blog-card", onClick: b, children: [
136
136
  /* @__PURE__ */ r(j, { src: d }),
137
137
  /* @__PURE__ */ t(O, { children: [
138
138
  /* @__PURE__ */ t("div", { className: "info-wr", children: [
@@ -142,7 +142,7 @@ const E = y.div`
142
142
  " "
143
143
  ] }),
144
144
  /* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
145
- g && p ? `${z(p, g)}` : "N/A"
145
+ p && u ? `${z(u, p)}` : "N/A"
146
146
  ] }),
147
147
  /* @__PURE__ */ t("div", { className: "info-wr-2", children: [
148
148
  /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
@@ -151,14 +151,14 @@ const E = y.div`
151
151
  ] }),
152
152
  /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
153
153
  /* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
154
- /* @__PURE__ */ r("span", { children: C(u) })
154
+ /* @__PURE__ */ r("span", { children: C(f) })
155
155
  ] })
156
156
  ] })
157
157
  ] }),
158
158
  /* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
159
159
  /* @__PURE__ */ r("div", { className: "text-wr", children: s })
160
160
  ] }),
161
- /* @__PURE__ */ r("div", { className: "tags-wr", children: m == null ? void 0 : m.map((n, f) => /* @__PURE__ */ r(I, { color: n == null ? void 0 : n.color, children: n == null ? void 0 : n.name }, f)) })
161
+ /* @__PURE__ */ r("div", { className: "tags-wr", children: m == null ? void 0 : m.map((n, h) => /* @__PURE__ */ r(I, { color: n == null ? void 0 : n.color, children: n == null ? void 0 : n.name }, h)) })
162
162
  ] })
163
163
  );
164
164
  }), G = N(({}, i) => /* @__PURE__ */ t(R, { className: "blog-card", children: [
@@ -193,16 +193,16 @@ const E = y.div`
193
193
  title: d,
194
194
  onButtonAction: s,
195
195
  items: l,
196
- buttonText: u,
197
- timeToReadText: g,
196
+ buttonText: f,
197
+ timeToReadText: p,
198
198
  limit: c = 3,
199
199
  onSelectCard: m = () => {
200
200
  },
201
- isLoading: h = !1,
202
- buttonLink: p,
201
+ isLoading: b = !1,
202
+ buttonLink: u,
203
203
  getImage: n = () => {
204
204
  }
205
- } = i, f = D(), $ = L(() => /* @__PURE__ */ r(k, { children: f === !0 ? l == null ? void 0 : l.map((e, b) => /* @__PURE__ */ r(
205
+ } = i, h = D(), $ = L(() => /* @__PURE__ */ r(k, { children: h === !0 ? l == null ? void 0 : l.map((e, g) => /* @__PURE__ */ r(
206
206
  S,
207
207
  {
208
208
  title: e == null ? void 0 : e.title,
@@ -212,13 +212,13 @@ const E = y.div`
212
212
  numberOfComments: e == null ? void 0 : e.numberOfComments,
213
213
  publishedAt: e == null ? void 0 : e.publishedAt,
214
214
  timeToRead: e == null ? void 0 : e.timeToRead,
215
- timeToReadText: g,
215
+ timeToReadText: p,
216
216
  tags: e == null ? void 0 : e.tags,
217
217
  onCardClick: () => m(e == null ? void 0 : e.titleSlug),
218
218
  imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
219
219
  },
220
- b
221
- )) : l == null ? void 0 : l.slice(0, c).map((e, b) => /* @__PURE__ */ r(
220
+ g
221
+ )) : l == null ? void 0 : l.slice(0, c).map((e, g) => /* @__PURE__ */ r(
222
222
  S,
223
223
  {
224
224
  title: e == null ? void 0 : e.title,
@@ -230,33 +230,36 @@ const E = y.div`
230
230
  numberOfComments: e == null ? void 0 : e.numberOfComments,
231
231
  publishedAt: e == null ? void 0 : e.publishedAt,
232
232
  timeToRead: e == null ? void 0 : e.timeToRead,
233
- timeToReadText: g,
233
+ timeToReadText: p,
234
234
  onCardClick: () => m(e == null ? void 0 : e.titleSlug)
235
235
  },
236
- b
237
- )) }), [l, f, c, m]);
236
+ g
237
+ )) }), [l, h, c, m]);
238
238
  return /* @__PURE__ */ t(U, { ref: o, children: [
239
239
  /* @__PURE__ */ t("div", { className: "regular-title", children: [
240
240
  /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
241
241
  w(a) && /* @__PURE__ */ r("i", { className: a }),
242
242
  /* @__PURE__ */ r("span", { children: d })
243
243
  ] }),
244
- w(u) && w(p) && /* @__PURE__ */ r(
244
+ w(f) && w(u) && /* @__PURE__ */ r(
245
245
  W,
246
246
  {
247
247
  type: "button",
248
248
  btnType: "tinted",
249
249
  color: "gray",
250
- onClick: () => s(p),
250
+ onClick: (e) => {
251
+ var g;
252
+ (g = e == null ? void 0 : e.target) == null || g.blur(), s(u);
253
+ },
251
254
  borderRadius: "curved",
252
- children: u
255
+ children: f
253
256
  }
254
257
  )
255
258
  ] }),
256
259
  /* @__PURE__ */ r(E, { limit: c, children: /* @__PURE__ */ r(
257
260
  F,
258
261
  {
259
- isLoading: h,
262
+ isLoading: b,
260
263
  limit: c,
261
264
  keyPrefix: "explore-landing",
262
265
  children: $
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),a=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-DhRHf5Ed.cjs"),x=require("./style-xvwWn3Zv.cjs"),q=require("./Button.cjs"),R=require("./Link.cjs"),M=require("./index-BVaZWq6y.cjs"),B=p.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-DhRHf5Ed.cjs"),x=require("./style-xvwWn3Zv.cjs"),q=require("./Button.cjs"),R=require("./Link.cjs"),M=require("./index-BVaZWq6y.cjs"),B=p.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -6,7 +6,7 @@
6
6
  @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,y=p.styled.div`
9
+ `,b=p.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -38,7 +38,7 @@
38
38
  width: 100%;
39
39
  max-height: 12.5625rem;
40
40
  min-height: 12.5625rem;
41
- background-color: ${m.linearGradientAnimation("-90deg")};
41
+ background-color: ${u.linearGradientAnimation("-90deg")};
42
42
  }
43
43
 
44
44
  & .action {
@@ -48,7 +48,7 @@
48
48
 
49
49
  @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
50
50
  }
51
- `,b=p.styled.div`
51
+ `,y=p.styled.div`
52
52
  padding: 1rem 1rem 0 1rem;
53
53
  display: flex;
54
54
  flex-direction: column;
@@ -66,6 +66,6 @@
66
66
  font-size: 0.875rem;
67
67
  flex: 1;
68
68
  color: var(--gray-700, #4e555f);
69
- ${m.truncateTextInRows(3)}
69
+ ${u.truncateTextInRows(3)}
70
70
  }
71
- `,$=a.forwardRef((t,o)=>{const{title:i,imageUrl:s,text:l,onCardClick:c,readMoreText:d="Read more"}=t;return r.jsxs(y,{ref:o,className:"blog-card",onClick:c,children:[r.jsx(M.ProductImageWrapper,{src:s}),r.jsxs(b,{children:[r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:l})]}),r.jsx(R,{className:"action",color:"gray",onClick:c,children:d})]})}),I=a.forwardRef(({},t)=>r.jsxs(y,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(b,{})]})),P=({limit:t=3,isLoading:o=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(s,l)=>r.jsx(I,{isLoading:o},`${i}-skeleton-product-card-${l}`))}),T=({children:t,fallbackComponent:o=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:s,keyPrefix:l})=>r.jsx(a.Suspense,{fallbackComponent:o,children:i===!0?r.jsx(P,{isLoading:i,limit:s,keyPrefix:l}):t}),j=a.memo($),_=a.forwardRef((t,o)=>{const{icon:i,title:s,onButtonAction:l=()=>{},onSelectCard:c=()=>{},buttonLink:d,items:n,buttonText:v,limit:u=3,isLoading:w=!1,getImage:h=()=>{},readMoreText:f="Read more"}=t,k=N.useDetectMobile(),C=a.useMemo(()=>r.jsx(r.Fragment,{children:k===!0?n==null?void 0:n.map((e,g)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:f,onCardClick:()=>c(e==null?void 0:e.titleSlug)},g)):n==null?void 0:n.slice(0,u).map((e,g)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:f,onCardClick:()=>c(e==null?void 0:e.titleSlug)},g))}),[n]);return r.jsxs(x.RegulatTitleSectionWrapper,{ref:o,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[m.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:s})]}),m.isDefinedNotEmptyString(d)&&r.jsx(q,{type:"button",btnType:"tinted",color:"gray",onClick:()=>l(d),borderRadius:"curved",children:v})]}),r.jsx(B,{limit:u,children:r.jsx(T,{isLoading:w,limit:u,keyPrefix:"explore-landing",children:C})})]})});module.exports=_;
71
+ `,$=c.forwardRef((t,o)=>{const{title:i,imageUrl:s,text:l,onCardClick:d,readMoreText:m="Read more"}=t;return r.jsxs(b,{ref:o,className:"blog-card",onClick:d,children:[r.jsx(M.ProductImageWrapper,{src:s}),r.jsxs(y,{children:[r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:l})]}),r.jsx(R,{className:"action",color:"gray",onClick:d,children:m})]})}),I=c.forwardRef(({},t)=>r.jsxs(b,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(y,{})]})),P=({limit:t=3,isLoading:o=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(s,l)=>r.jsx(I,{isLoading:o},`${i}-skeleton-product-card-${l}`))}),T=({children:t,fallbackComponent:o=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:s,keyPrefix:l})=>r.jsx(c.Suspense,{fallbackComponent:o,children:i===!0?r.jsx(P,{isLoading:i,limit:s,keyPrefix:l}):t}),j=c.memo($),_=c.forwardRef((t,o)=>{const{icon:i,title:s,onButtonAction:l=()=>{},onSelectCard:d=()=>{},buttonLink:m,items:n,buttonText:v,limit:g=3,isLoading:w=!1,getImage:h=()=>{},readMoreText:f="Read more"}=t,k=N.useDetectMobile(),C=c.useMemo(()=>r.jsx(r.Fragment,{children:k===!0?n==null?void 0:n.map((e,a)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:f,onCardClick:()=>d(e==null?void 0:e.titleSlug)},a)):n==null?void 0:n.slice(0,g).map((e,a)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:f,onCardClick:()=>d(e==null?void 0:e.titleSlug)},a))}),[n]);return r.jsxs(x.RegulatTitleSectionWrapper,{ref:o,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:s})]}),u.isDefinedNotEmptyString(m)&&r.jsx(q,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),l(m)},borderRadius:"curved",children:v})]}),r.jsx(B,{limit:g,children:r.jsx(T,{isLoading:w,limit:g,keyPrefix:"explore-landing",children:C})})]})});module.exports=_;
@@ -1,9 +1,9 @@
1
- import { jsxs as m, jsx as r, Fragment as g } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as r, Fragment as g } from "react/jsx-runtime";
2
2
  import { forwardRef as u, Suspense as B, memo as P, useMemo as R } from "react";
3
3
  import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as k } from "./consts-BuFChS64.js";
5
5
  import { u as T } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { m as I, t as U, k as S } from "./utils-BE-UlkKf.js";
6
+ import { m as I, t as U, k as b } from "./utils-BE-UlkKf.js";
7
7
  import { R as W } from "./style-sLF37aOA.js";
8
8
  import z from "./Button.js";
9
9
  import j from "./Link.js";
@@ -79,18 +79,18 @@ const E = h.div`
79
79
  ${U(3)}
80
80
  }
81
81
  `, L = u((t, o) => {
82
- const { title: i, imageUrl: n, text: l, onCardClick: d, readMoreText: c = "Read more" } = t;
83
- return /* @__PURE__ */ m(w, { ref: o, className: "blog-card", onClick: d, children: [
82
+ const { title: i, imageUrl: n, text: l, onCardClick: c, readMoreText: s = "Read more" } = t;
83
+ return /* @__PURE__ */ d(w, { ref: o, className: "blog-card", onClick: c, children: [
84
84
  /* @__PURE__ */ r(A, { src: n }),
85
- /* @__PURE__ */ m(y, { children: [
85
+ /* @__PURE__ */ d(y, { children: [
86
86
  /* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
87
87
  /* @__PURE__ */ r("div", { className: "text-wr", children: l })
88
88
  ] }),
89
- /* @__PURE__ */ r(j, { className: "action", color: "gray", onClick: d, children: c })
89
+ /* @__PURE__ */ r(j, { className: "action", color: "gray", onClick: c, children: s })
90
90
  ] });
91
91
  }), _ = u(({}, t) => (
92
92
  // <LandingPageClearProductCardSkeleton />
93
- /* @__PURE__ */ m(w, { className: "product-card", children: [
93
+ /* @__PURE__ */ d(w, { className: "product-card", children: [
94
94
  /* @__PURE__ */ r("div", { className: "skeleton-img" }),
95
95
  /* @__PURE__ */ r("div", { className: "card-title" }),
96
96
  /* @__PURE__ */ r(y, {})
@@ -114,68 +114,71 @@ const E = h.div`
114
114
  limit: n,
115
115
  keyPrefix: l
116
116
  }
117
- ) : t }), b = P(L), Y = u((t, o) => {
117
+ ) : t }), S = P(L), Y = u((t, o) => {
118
118
  const {
119
119
  icon: i,
120
120
  title: n,
121
121
  onButtonAction: l = () => {
122
122
  },
123
- onSelectCard: d = () => {
123
+ onSelectCard: c = () => {
124
124
  },
125
- buttonLink: c,
125
+ buttonLink: s,
126
126
  items: a,
127
127
  buttonText: C,
128
- limit: s = 3,
128
+ limit: p = 3,
129
129
  isLoading: N = !1,
130
130
  getImage: f = () => {
131
131
  },
132
132
  readMoreText: v = "Read more"
133
- } = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
134
- b,
133
+ } = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, m) => /* @__PURE__ */ r(
134
+ S,
135
135
  {
136
136
  title: e == null ? void 0 : e.title,
137
137
  imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
138
138
  text: e == null ? void 0 : e.description,
139
139
  titleSlug: e == null ? void 0 : e.titleSlug,
140
140
  readMoreText: v,
141
- onCardClick: () => d(e == null ? void 0 : e.titleSlug)
141
+ onCardClick: () => c(e == null ? void 0 : e.titleSlug)
142
142
  },
143
- p
144
- )) : a == null ? void 0 : a.slice(0, s).map((e, p) => /* @__PURE__ */ r(
145
- b,
143
+ m
144
+ )) : a == null ? void 0 : a.slice(0, p).map((e, m) => /* @__PURE__ */ r(
145
+ S,
146
146
  {
147
147
  title: e == null ? void 0 : e.title,
148
148
  imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
149
149
  text: e == null ? void 0 : e.description,
150
150
  titleSlug: e == null ? void 0 : e.titleSlug,
151
151
  readMoreText: v,
152
- onCardClick: () => d(e == null ? void 0 : e.titleSlug)
152
+ onCardClick: () => c(e == null ? void 0 : e.titleSlug)
153
153
  },
154
- p
154
+ m
155
155
  )) }), [a]);
156
- return /* @__PURE__ */ m(W, { ref: o, children: [
157
- /* @__PURE__ */ m("div", { className: "regular-title", children: [
158
- /* @__PURE__ */ m("div", { className: "regular-title-text", children: [
159
- S(i) && /* @__PURE__ */ r("i", { className: i }),
156
+ return /* @__PURE__ */ d(W, { ref: o, children: [
157
+ /* @__PURE__ */ d("div", { className: "regular-title", children: [
158
+ /* @__PURE__ */ d("div", { className: "regular-title-text", children: [
159
+ b(i) && /* @__PURE__ */ r("i", { className: i }),
160
160
  /* @__PURE__ */ r("span", { children: n })
161
161
  ] }),
162
- S(c) && /* @__PURE__ */ r(
162
+ b(s) && /* @__PURE__ */ r(
163
163
  z,
164
164
  {
165
165
  type: "button",
166
166
  btnType: "tinted",
167
167
  color: "gray",
168
- onClick: () => l(c),
168
+ onClick: (e) => {
169
+ var m;
170
+ (m = e == null ? void 0 : e.target) == null || m.blur(), l(s);
171
+ },
169
172
  borderRadius: "curved",
170
173
  children: C
171
174
  }
172
175
  )
173
176
  ] }),
174
- /* @__PURE__ */ r(E, { limit: s, children: /* @__PURE__ */ r(
177
+ /* @__PURE__ */ r(E, { limit: p, children: /* @__PURE__ */ r(
175
178
  G,
176
179
  {
177
180
  isLoading: N,
178
- limit: s,
181
+ limit: p,
179
182
  keyPrefix: "explore-landing",
180
183
  children: $
181
184
  }
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-DhRHf5Ed.cjs"),$=require("./style-xvwWn3Zv.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),R=require("./index-BVaZWq6y.cjs"),W=require("./index-DG7qQq8L.cjs"),A=h.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),d=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),c=require("./utils-DhRHf5Ed.cjs"),$=require("./style-xvwWn3Zv.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),R=require("./index-BVaZWq6y.cjs"),W=require("./index-DG7qQq8L.cjs"),A=h.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -39,7 +39,7 @@
39
39
  min-height: 3.3125rem;
40
40
  max-height: 3.3125rem;
41
41
  border-radius: 0.75rem;
42
- background-color: ${a.linearGradientAnimation("-90deg")};
42
+ background-color: ${c.linearGradientAnimation("-90deg")};
43
43
  }
44
44
 
45
45
  & a {
@@ -62,19 +62,19 @@
62
62
  & .skeleton-title {
63
63
  height: 1.5rem;
64
64
  width: 80%;
65
- background-color: ${a.linearGradientAnimation("-90deg")};
65
+ background-color: ${c.linearGradientAnimation("-90deg")};
66
66
  }
67
67
 
68
68
  & .skeleton-action {
69
69
  height: 1.25rem;
70
70
  width: 20%;
71
- background-color: ${a.linearGradientAnimation("-90deg")};
71
+ background-color: ${c.linearGradientAnimation("-90deg")};
72
72
  }
73
73
 
74
74
  & .text-wr {
75
75
  font-weight: 400;
76
76
  font-size: 0.875rem;
77
77
  color: var(--gray-700, #4e555f);
78
- ${a.truncateTextInRows(3)}
78
+ ${c.truncateTextInRows(3)}
79
79
  }
80
- `,I=c.forwardRef((i,o)=>{const{title:n,imageUrl:l,text:r,buttonText:m,onCardClick:s}=i;return e.jsxs(w,{ref:o,className:"blog-card",onClick:s,children:[e.jsxs(k,{children:[e.jsx("div",{className:"text-wr-title",children:n}),e.jsx("div",{className:"text-wr",children:r}),e.jsx(M,{color:"gray",onClick:s,children:m})]}),e.jsx(R.ProductImageWrapper,{src:l})]})}),P=c.forwardRef(({},i)=>e.jsxs(w,{className:"blog-card",children:[e.jsxs(k,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),_=({limit:i=3,isLoading:o=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:i},(l,r)=>e.jsx(P,{isLoading:o},`${n}-skeleton-product-card-${r}`))}),z=({children:i,fallbackComponent:o=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:l,keyPrefix:r})=>e.jsx(c.Suspense,{fallbackComponent:o,children:n===!0?e.jsx(_,{isLoading:n,limit:l,keyPrefix:r}):i}),b=c.memo(I),E=c.forwardRef((i,o)=>{const{icon:n,title:l,items:r,buttonText:m,limit:s=3,options:d,selectedOption:v=[],onButtonAction:y=()=>{},buttonLink:p,onSelectOption:x=()=>{},onSelectAll:S=()=>{},isLoading:N=!1,onSelectCard:u=()=>{},productsToolbarName:C="All"}=i,j=T.useDetectMobile(),q=c.useMemo(()=>e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g)):r==null?void 0:r.slice(0,s).map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g))}),[r,j,s,u]);return e.jsxs($.TitleWithOptionsSectionWrapper,{ref:o,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(n)&&e.jsx("i",{className:n}),e.jsx("span",{children:l})]}),a.isDefinedNotEmptyString(p)&&e.jsx(B,{type:"button",btnType:"tinted",color:"gray",onClick:()=>y(p),borderRadius:"curved",children:m})]}),(d==null?void 0:d.length)>0&&e.jsx(W.SelectBar,{items:d,selectedIds:v,onRemove:t=>{x(t)},onSelect:t=>{x(t)},onSelectAll:S,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:C}),e.jsx(A,{limit:s,children:e.jsx(z,{isLoading:N,limit:s,keyPrefix:"explore-landing",children:q})})]})});module.exports=E;
80
+ `,I=d.forwardRef((i,o)=>{const{title:n,imageUrl:l,text:r,buttonText:u,onCardClick:s}=i;return t.jsxs(w,{ref:o,className:"blog-card",onClick:s,children:[t.jsxs(k,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:r}),t.jsx(M,{color:"gray",onClick:s,children:u})]}),t.jsx(R.ProductImageWrapper,{src:l})]})}),P=d.forwardRef(({},i)=>t.jsxs(w,{className:"blog-card",children:[t.jsxs(k,{children:[t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"text-wr"}),t.jsx("div",{className:"skeleton-action"})]}),t.jsx("div",{className:"skeleton-img"})]})),_=({limit:i=3,isLoading:o=!1,keyPrefix:n})=>t.jsx(t.Fragment,{children:Array.from({length:i},(l,r)=>t.jsx(P,{isLoading:o},`${n}-skeleton-product-card-${r}`))}),z=({children:i,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:n=!1,limit:l,keyPrefix:r})=>t.jsx(d.Suspense,{fallbackComponent:o,children:n===!0?t.jsx(_,{isLoading:n,limit:l,keyPrefix:r}):i}),j=d.memo(I),E=d.forwardRef((i,o)=>{const{icon:n,title:l,items:r,buttonText:u,limit:s=3,options:m,selectedOption:v=[],onButtonAction:y=()=>{},buttonLink:p,onSelectOption:x=()=>{},onSelectAll:S=()=>{},isLoading:N=!1,onSelectCard:g=()=>{},productsToolbarName:C="All"}=i,b=T.useDetectMobile(),q=d.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?r==null?void 0:r.map((e,a)=>t.jsx(j,{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:()=>g(e)},a)):r==null?void 0:r.slice(0,s).map((e,a)=>t.jsx(j,{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:()=>g(e)},a))}),[r,b,s,g]);return t.jsxs($.TitleWithOptionsSectionWrapper,{ref:o,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(n)&&t.jsx("i",{className:n}),t.jsx("span",{children:l})]}),c.isDefinedNotEmptyString(p)&&t.jsx(B,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),y(p)},borderRadius:"curved",children:u})]}),(m==null?void 0:m.length)>0&&t.jsx(W.SelectBar,{items:m,selectedIds:v,onRemove:e=>{x(e)},onSelect:e=>{x(e)},onSelectAll:S,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:C}),t.jsx(A,{limit:s,children:t.jsx(z,{isLoading:N,limit:s,keyPrefix:"explore-landing",children:q})})]})});module.exports=E;
@@ -89,12 +89,12 @@ const U = f.div`
89
89
  ${O(3)}
90
90
  }
91
91
  `, _ = u((i, l) => {
92
- const { title: o, imageUrl: m, text: r, buttonText: c, onCardClick: a } = i;
92
+ const { title: o, imageUrl: m, text: r, buttonText: s, onCardClick: a } = i;
93
93
  return /* @__PURE__ */ n(C, { ref: l, className: "blog-card", onClick: a, children: [
94
94
  /* @__PURE__ */ n(N, { children: [
95
95
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: o }),
96
96
  /* @__PURE__ */ t("div", { className: "text-wr", children: r }),
97
- /* @__PURE__ */ t(E, { color: "gray", onClick: a, children: c })
97
+ /* @__PURE__ */ t(E, { color: "gray", onClick: a, children: s })
98
98
  ] }),
99
99
  /* @__PURE__ */ t(F, { src: m })
100
100
  ] });
@@ -129,9 +129,9 @@ const U = f.div`
129
129
  icon: o,
130
130
  title: m,
131
131
  items: r,
132
- buttonText: c,
132
+ buttonText: s,
133
133
  limit: a = 3,
134
- options: d,
134
+ options: c,
135
135
  selectedOption: T = [],
136
136
  onButtonAction: $ = () => {
137
137
  },
@@ -141,30 +141,30 @@ const U = f.div`
141
141
  onSelectAll: B = () => {
142
142
  },
143
143
  isLoading: W = !1,
144
- onSelectCard: s = () => {
144
+ onSelectCard: p = () => {
145
145
  },
146
146
  productsToolbarName: x = "All"
147
- } = i, v = I(), M = A(() => /* @__PURE__ */ t(h, { children: v === !0 ? r == null ? void 0 : r.map((e, p) => /* @__PURE__ */ t(
147
+ } = i, v = I(), M = A(() => /* @__PURE__ */ t(h, { children: v === !0 ? r == null ? void 0 : r.map((e, d) => /* @__PURE__ */ t(
148
148
  y,
149
149
  {
150
150
  title: e == null ? void 0 : e.title,
151
151
  imageUrl: (e == null ? void 0 : e.image) || null,
152
152
  text: e == null ? void 0 : e.text,
153
153
  buttonText: e == null ? void 0 : e.buttonText,
154
- onCardClick: () => s(e)
154
+ onCardClick: () => p(e)
155
155
  },
156
- p
157
- )) : r == null ? void 0 : r.slice(0, a).map((e, p) => /* @__PURE__ */ t(
156
+ d
157
+ )) : r == null ? void 0 : r.slice(0, a).map((e, d) => /* @__PURE__ */ t(
158
158
  y,
159
159
  {
160
160
  title: e == null ? void 0 : e.title,
161
161
  imageUrl: (e == null ? void 0 : e.image) || null,
162
162
  text: e == null ? void 0 : e.text,
163
163
  buttonText: e == null ? void 0 : e.buttonText,
164
- onCardClick: () => s(e)
164
+ onCardClick: () => p(e)
165
165
  },
166
- p
167
- )) }), [r, v, a, s]);
166
+ d
167
+ )) }), [r, v, a, p]);
168
168
  return /* @__PURE__ */ n(R, { ref: l, children: [
169
169
  /* @__PURE__ */ n("div", { className: "regular-title", children: [
170
170
  /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
@@ -177,16 +177,19 @@ const U = f.div`
177
177
  type: "button",
178
178
  btnType: "tinted",
179
179
  color: "gray",
180
- onClick: () => $(b),
180
+ onClick: (e) => {
181
+ var d;
182
+ (d = e == null ? void 0 : e.target) == null || d.blur(), $(b);
183
+ },
181
184
  borderRadius: "curved",
182
- children: c
185
+ children: s
183
186
  }
184
187
  )
185
188
  ] }),
186
- (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t(
189
+ (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ t(
187
190
  L,
188
191
  {
189
- items: d,
192
+ items: c,
190
193
  selectedIds: T,
191
194
  onRemove: (e) => {
192
195
  k(e);