@lanaco/lnc-react-ui 4.0.108 → 4.0.110

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 (47) hide show
  1. package/dist/BlogCategoryCardsSection.cjs +1 -1
  2. package/dist/BlogCategoryCardsSection.js +1 -1
  3. package/dist/BlogListSection.cjs +4 -4
  4. package/dist/BlogListSection.js +41 -39
  5. package/dist/BlogProductCardsSection.cjs +1 -1
  6. package/dist/BlogProductCardsSection.js +2 -2
  7. package/dist/BlogsSectionDetailed.cjs +6 -9
  8. package/dist/BlogsSectionDetailed.js +9 -12
  9. package/dist/BlogsSectionSimple.cjs +6 -9
  10. package/dist/BlogsSectionSimple.js +23 -26
  11. package/dist/DetailedProductsSection.cjs +1 -1
  12. package/dist/DetailedProductsSection.js +1 -1
  13. package/dist/FieldOfInterestsMasonrySection.cjs +13 -4
  14. package/dist/FieldOfInterestsMasonrySection.js +51 -41
  15. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  16. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  17. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +0 -9
  18. package/dist/FieldOfInterestsWithTagsCardsSection.js +15 -24
  19. package/dist/GeneralWithTagsCardsSection.cjs +3 -12
  20. package/dist/GeneralWithTagsCardsSection.js +5 -14
  21. package/dist/GiftCardsSection.cjs +10 -3
  22. package/dist/GiftCardsSection.js +24 -17
  23. package/dist/LocationSearchSection.cjs +3 -7
  24. package/dist/LocationSearchSection.js +8 -12
  25. package/dist/MasonryGeneralCardsSection.cjs +2 -11
  26. package/dist/MasonryGeneralCardsSection.js +0 -9
  27. package/dist/OverlayGeneralCardsSection.cjs +17 -11
  28. package/dist/OverlayGeneralCardsSection.js +37 -31
  29. package/dist/ProductsWithBannerSection.cjs +5 -11
  30. package/dist/ProductsWithBannerSection.js +8 -14
  31. package/dist/SalesCampaignsSection.cjs +9 -12
  32. package/dist/SalesCampaignsSection.js +22 -25
  33. package/dist/SimpleCategoriesSection.cjs +1 -1
  34. package/dist/SimpleCategoriesSection.js +1 -1
  35. package/dist/SimpleProductsSection.cjs +1 -1
  36. package/dist/SimpleProductsSection.js +2 -2
  37. package/dist/UrgentSaleProductsSection.cjs +1 -1
  38. package/dist/UrgentSaleProductsSection.js +1 -1
  39. package/dist/{index-CEI_JOki.js → index-B2pFbNKc.js} +4 -5
  40. package/dist/{index-B30K8mkW.cjs → index-B_HNDmXL.cjs} +3 -4
  41. package/dist/{suspense-categories-card-simple-Ds6hXZKt.js → suspense-categories-card-simple-BbtBbuWb.js} +15 -17
  42. package/dist/{suspense-categories-card-simple-B5zd-nnm.cjs → suspense-categories-card-simple-CK7XDK4k.cjs} +2 -4
  43. package/dist/{suspense-product-card-detailed-DXwya4fQ.cjs → suspense-product-card-detailed-LcBMp1iw.cjs} +4 -10
  44. package/dist/{suspense-product-card-detailed-bYBpLiXc.js → suspense-product-card-detailed-PArA5O4M.js} +0 -6
  45. package/dist/{suspense-product-card-simple-Ba1UPqgy.cjs → suspense-product-card-simple-CJwnghtt.cjs} +1 -1
  46. package/dist/{suspense-product-card-simple-ib6FLerL.js → suspense-product-card-simple-Z-FddSb-.js} +1 -1
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-B5zd-nnm.cjs"),l=require("./style-BTTXJFJN.cjs"),m=a.memo(u.CategorySimpleCard),p=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},C)=>{const d=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,g)=>s.jsx(m,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},g))},[r]);return s.jsx(l.Wrapper,{className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:d})})})});module.exports=p;
1
+ "use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-CK7XDK4k.cjs"),l=require("./style-BTTXJFJN.cjs"),m=a.memo(u.CategorySimpleCard),p=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},C)=>{const d=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,g)=>s.jsx(m,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},g))},[r]);return s.jsx(l.Wrapper,{className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:d})})})});module.exports=p;
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { memo as l, forwardRef as f, useMemo as t } from "react";
3
- import { C as u, S as n } from "./suspense-categories-card-simple-Ds6hXZKt.js";
3
+ import { C as u, S as n } from "./suspense-categories-card-simple-BbtBbuWb.js";
4
4
  import { W as c } from "./style-tw6KjI2J.js";
5
5
  const C = l(u), M = f(
6
6
  ({
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-CZynEOC_.cjs"),N=require("./index-BvSNRLNa.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-CtcwWswP.cjs"),q=y.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),w=require("./Icon.cjs"),y=require("./IconButton.cjs"),N=require("./Chip.cjs"),o=require("./utils-CZynEOC_.cjs"),k=require("./index-BvSNRLNa.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-CtcwWswP.cjs"),q=j.styled.div`
2
2
  display: flex;
3
3
  padding: 1rem;
4
4
  align-items: center;
@@ -43,7 +43,7 @@
43
43
  font-weight: 600;
44
44
  line-height: 1.5rem;
45
45
  letter-spacing: 0.1px;
46
- ${c.truncateTextInRows(3)}
46
+ ${o.truncateTextInRows(3)}
47
47
  }
48
48
 
49
49
  & .wrapper__tags {
@@ -117,7 +117,7 @@
117
117
  }
118
118
  }
119
119
  }
120
- `,I=o.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,onSelectCard:g=()=>{},onSelectOption:_=()=>{},onBookmark:f=()=>{},onShare:e=()=>{}},h)=>r.jsxs(q,{onClick:g,children:[r.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:d}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,j)=>r.jsx(v,{label:t==null?void 0:t.name,color:t==null?void 0:t.color,className:"wrapper__tag",onClick:u=>{u==null||u.stopPropagation(),_(t==null?void 0:t.code)}},`blog-card-sponsored-option__${j+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(a)} • ${c.formatString(n,l)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(m)]}),r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(p)]})]})]}),r.jsxs("div",{className:"info__content",children:[r.jsx(w,{icon:" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),f()}}),r.jsx(w,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}})]})]})]})]})),z=y.styled.div`
120
+ `,I=c.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,isBookmarked:g=!1,onSelectCard:h=()=>{},onSelectOption:f=()=>{},onBookmark:e=()=>{},onShare:u=()=>{}},b)=>r.jsxs(q,{onClick:h,children:[r.jsx(k.ProductImageWrapper,{src:s,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:d}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,v)=>r.jsx(N,{label:t==null?void 0:t.name,color:t==null?void 0:t.color,className:"wrapper__tag",onClick:_=>{_==null||_.stopPropagation(),f(t==null?void 0:t.code)}},`blog-card-sponsored-option__${v+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(a)} • ${o.formatString(n,l)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),o.getRoundedNumber(m)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),o.getRoundedNumber(p)]})]})]}),r.jsxs("div",{className:"info__content",children:[r.jsx(y,{icon:g?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}}),r.jsx(y,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),u()}})]})]})]})]})),z=j.styled.div`
121
121
  display: flex;
122
122
  flex-direction: column;
123
123
  align-items: flex-start;
@@ -139,4 +139,4 @@
139
139
  bottom: -0.75rem;
140
140
  }
141
141
  }
142
- `,k=o.memo(I),C=o.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},_)=>{const f=o.useMemo(()=>s==null?void 0:s.map((e,h)=>r.jsx(k,{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:d,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:()=>i==null?void 0:i(e),onSelectOption:t=>a==null?void 0:a(t),onShare:()=>n==null?void 0:n(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${h+1}`)),[s]);return r.jsx(z,{className:g?"separated":"",children:r.jsx(R.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:f})})});module.exports=C;
142
+ `,C=c.memo(I),L=c.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},h)=>{const f=c.useMemo(()=>s==null?void 0:s.map((e,u)=>r.jsx(C,{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:d,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,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>i==null?void 0:i(e),onSelectOption:b=>a==null?void 0:a(b),onShare:()=>n==null?void 0:n(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${u+1}`)),[s]);return r.jsx(z,{className:g?"separated":"",children:r.jsx(R.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:f})})});module.exports=L;
@@ -1,13 +1,13 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as v, memo as z, useMemo as I } from "react";
3
- import h from "./Icon.js";
4
- import b from "./IconButton.js";
2
+ import { forwardRef as y, memo as z, useMemo as I } from "react";
3
+ import b from "./Icon.js";
4
+ import w from "./IconButton.js";
5
5
  import R from "./Chip.js";
6
- import { p as j, s as k, v as C, w } from "./utils-BbgAIA9N.js";
7
- import { P } from "./index-YGcWbzeb.js";
8
- import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
- import { S as $ } from "./suspense-large-BM9s_kZP.js";
10
- const L = y.div`
6
+ import { p as j, s as C, v as P, w as v } from "./utils-BbgAIA9N.js";
7
+ import { P as $ } from "./index-YGcWbzeb.js";
8
+ import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import { S as B } from "./suspense-large-BM9s_kZP.js";
10
+ const L = N.div`
11
11
  display: flex;
12
12
  padding: 1rem;
13
13
  align-items: center;
@@ -126,7 +126,7 @@ const L = y.div`
126
126
  }
127
127
  }
128
128
  }
129
- `, T = v(
129
+ `, T = y(
130
130
  ({
131
131
  title: m,
132
132
  imageUrl: n,
@@ -136,70 +136,71 @@ const L = y.div`
136
136
  timeToRead: o = 0,
137
137
  numberOfLikes: c = 0,
138
138
  numberOfComments: d = 0,
139
- onSelectCard: p = () => {
139
+ isBookmarked: p = !1,
140
+ onSelectCard: _ = () => {
140
141
  },
141
- onSelectOption: u = () => {
142
+ onSelectOption: f = () => {
142
143
  },
143
- onBookmark: f = () => {
144
+ onBookmark: e = () => {
144
145
  },
145
- onShare: e = () => {
146
+ onShare: g = () => {
146
147
  }
147
- }, _) => /* @__PURE__ */ i(L, { onClick: p, children: [
148
- /* @__PURE__ */ t(P, { src: n, className: "wrapper__image" }),
148
+ }, h) => /* @__PURE__ */ i(L, { onClick: _, children: [
149
+ /* @__PURE__ */ t($, { src: n, className: "wrapper__image" }),
149
150
  /* @__PURE__ */ i("div", { className: "wrapper__content", children: [
150
151
  /* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
151
152
  /* @__PURE__ */ t("div", { className: "wrapper__title", children: m }),
152
- /* @__PURE__ */ t("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((r, N) => /* @__PURE__ */ t(
153
+ /* @__PURE__ */ t("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((r, k) => /* @__PURE__ */ t(
153
154
  R,
154
155
  {
155
156
  label: r == null ? void 0 : r.name,
156
157
  color: r == null ? void 0 : r.color,
157
158
  className: "wrapper__tag",
158
- onClick: (g) => {
159
- g == null || g.stopPropagation(), u(r == null ? void 0 : r.code);
159
+ onClick: (u) => {
160
+ u == null || u.stopPropagation(), f(r == null ? void 0 : r.code);
160
161
  }
161
162
  },
162
- `blog-card-sponsored-option__${N + 1}`
163
+ `blog-card-sponsored-option__${k + 1}`
163
164
  ))) })
164
165
  ] }),
165
166
  /* @__PURE__ */ i("div", { className: "wrapper__info", children: [
166
167
  /* @__PURE__ */ i("div", { className: "info__content", children: [
167
- /* @__PURE__ */ t("div", { className: "info__text", children: `${k(
168
+ /* @__PURE__ */ t("div", { className: "info__text", children: `${C(
168
169
  l
169
- )} • ${C(s, o)}` }),
170
+ )} • ${P(s, o)}` }),
170
171
  /* @__PURE__ */ i("div", { className: "info__text", children: [
171
172
  /* @__PURE__ */ i("div", { children: [
172
- /* @__PURE__ */ t(h, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
173
- w(c)
173
+ /* @__PURE__ */ t(b, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
174
+ v(c)
174
175
  ] }),
175
176
  /* @__PURE__ */ i("div", { children: [
176
- /* @__PURE__ */ t(h, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
177
- w(d)
177
+ /* @__PURE__ */ t(b, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
178
+ v(d)
178
179
  ] })
179
180
  ] })
180
181
  ] }),
181
182
  /* @__PURE__ */ i("div", { className: "info__content", children: [
182
183
  /* @__PURE__ */ t(
183
- b,
184
+ w,
184
185
  {
185
- icon: " mng-lnc-bookmark",
186
+ icon: p ? " mng-lnc-bookmark--filled" : " mng-lnc-bookmark",
186
187
  borderRadius: "curved",
187
188
  btnType: "basic",
188
189
  color: "neutral",
189
190
  onClick: (r) => {
190
- r == null || r.stopPropagation(), f();
191
+ r == null || r.stopPropagation(), e();
191
192
  }
192
193
  }
193
194
  ),
194
195
  /* @__PURE__ */ t(
195
- b,
196
+ w,
196
197
  {
197
198
  icon: " mng-lnc-share",
198
199
  borderRadius: "curved",
199
200
  btnType: "basic",
200
201
  color: "neutral",
201
202
  onClick: (r) => {
202
- r == null || r.stopPropagation(), e();
203
+ r == null || r.stopPropagation(), g();
203
204
  }
204
205
  }
205
206
  )
@@ -207,7 +208,7 @@ const L = y.div`
207
208
  ] })
208
209
  ] })
209
210
  ] })
210
- ), U = y.div`
211
+ ), U = N.div`
211
212
  display: flex;
212
213
  flex-direction: column;
213
214
  align-items: flex-start;
@@ -229,7 +230,7 @@ const L = y.div`
229
230
  bottom: -0.75rem;
230
231
  }
231
232
  }
232
- `, B = z(T), H = v(
233
+ `, W = z(T), J = y(
233
234
  ({
234
235
  timeToReadText: m = "{0} min read",
235
236
  items: n,
@@ -245,9 +246,9 @@ const L = y.div`
245
246
  getImage: d = () => {
246
247
  },
247
248
  isSeparated: p = !0
248
- }, u) => {
249
- const f = I(() => n == null ? void 0 : n.map((e, _) => /* @__PURE__ */ t(
250
- B,
249
+ }, _) => {
250
+ const f = I(() => n == null ? void 0 : n.map((e, g) => /* @__PURE__ */ t(
251
+ W,
251
252
  {
252
253
  title: e == null ? void 0 : e.title,
253
254
  titleSlug: e == null ? void 0 : e.titleSlug,
@@ -258,16 +259,17 @@ const L = y.div`
258
259
  numberOfLikes: e == null ? void 0 : e.numberOfLikes,
259
260
  numberOfComments: e == null ? void 0 : e.numberOfComments,
260
261
  isSponsored: e == null ? void 0 : e.isSponsored,
262
+ isBookmarked: e == null ? void 0 : e.isBookmarked,
261
263
  onSelectCard: () => a == null ? void 0 : a(e),
262
- onSelectOption: (r) => l == null ? void 0 : l(r),
264
+ onSelectOption: (h) => l == null ? void 0 : l(h),
263
265
  onShare: () => s == null ? void 0 : s(e),
264
266
  onBookmark: () => o == null ? void 0 : o(e),
265
267
  imageUrl: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
266
268
  },
267
- `blog-card-item__${_ + 1}`
269
+ `blog-card-item__${g + 1}`
268
270
  )), [n]);
269
271
  return /* @__PURE__ */ t(U, { className: p ? "separated" : "", children: /* @__PURE__ */ t(
270
- $,
272
+ B,
271
273
  {
272
274
  isLoading: c,
273
275
  limit: 5,
@@ -278,5 +280,5 @@ const L = y.div`
278
280
  }
279
281
  );
280
282
  export {
281
- H as default
283
+ J as default
282
284
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./index-B30K8mkW.cjs"),f=require("./suspense-product-card-simple-Ba1UPqgy.cjs"),h=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),y=u.memo(P.SimpleProductCard),M=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},N)=>{const m=q.useDetectMobile(),b=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,g)=>r.jsx(y,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),image:a(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},g))},[i]);return r.jsxs(j.Wrapper,{className:p?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(f.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:b})}),r.jsx(h,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=M;
1
+ "use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./index-B_HNDmXL.cjs"),f=require("./suspense-product-card-simple-CJwnghtt.cjs"),h=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),y=u.memo(P.SimpleProductCard),M=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},N)=>{const m=q.useDetectMobile(),b=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,g)=>r.jsx(y,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),image:a(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},g))},[i]);return r.jsxs(j.Wrapper,{className:p?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(f.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:b})}),r.jsx(h,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=M;
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, jsxs as g } from "react/jsx-runtime";
2
2
  import { memo as b, forwardRef as h, useMemo as P } from "react";
3
3
  import { u as N } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { S as y } from "./index-CEI_JOki.js";
5
- import { S as M } from "./suspense-product-card-simple-ib6FLerL.js";
4
+ import { S as y } from "./index-B2pFbNKc.js";
5
+ import { S as M } from "./suspense-product-card-simple-Z-FddSb-.js";
6
6
  import S from "./Button.js";
7
7
  import { W as _ } from "./style-tw6KjI2J.js";
8
8
  const w = b(y), R = h(
@@ -1,12 +1,12 @@
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-CZynEOC_.cjs"),N=require("./style-JqDQj4jh.cjs"),T=require("./Button.cjs"),O=require("./index-BvSNRLNa.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"),N=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-CZynEOC_.cjs"),k=require("./style-JqDQj4jh.cjs"),T=require("./Button.cjs"),O=require("./index-BvSNRLNa.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;
5
5
 
6
- @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${N.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,k=w.styled.div`
9
+ `,v=w.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -20,10 +20,7 @@
20
20
  min-height: 21.5625rem;
21
21
  cursor: pointer;
22
22
  &:hover {
23
- & .text-wr-title {
24
- color: var(--primary-500, #f59e0b);
25
- transition: var(--transition);
26
- }
23
+
27
24
  }
28
25
 
29
26
  & img {
@@ -47,7 +44,7 @@
47
44
  padding: 0 1rem 1rem 1rem;
48
45
  }
49
46
 
50
- @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
47
+ @media (max-width: ${N.MOBILE_SIZE_PX+"px"}) {
51
48
  }
52
49
  `,S=w.styled.div`
53
50
  padding: 1rem 1rem 0 1rem;
@@ -108,4 +105,4 @@
108
105
  align-items: center;
109
106
  gap: 1rem;
110
107
  }
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",className:"button-link",children:h})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:j,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
108
+ `,$=u.forwardRef((i,a)=>{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(v,{ref:a,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((l,b)=>t.jsx(k.BlogTag,{color:l==null?void 0:l.color,children:l==null?void 0:l.name},b))})]})}),D=u.forwardRef(({},i)=>t.jsxs(v,{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:a=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:i},(m,o)=>t.jsx(D,{isLoading:a},`${s}-skeleton-product-card-${o}`))}),B=({children:i,fallbackComponent:a=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:m,keyPrefix:o})=>t.jsx(u.Suspense,{fallbackComponent:a,children:s===!0?t.jsx(q,{isLoading:s,limit:m,keyPrefix:o}):i}),y=u.memo($),L=u.forwardRef((i,a)=>{const{icon:s,title:m,onButtonAction:o,items:n,buttonText:h,timeToReadText:p,limit:c=3,onSelectCard:d=()=>{},isLoading:j=!1,buttonLink:f,getImage:l=()=>{}}=i,b=R.useDetectMobile(),C=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?n==null?void 0:n.map((e,g)=>t.jsx(y,{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:l(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(y,{title:e==null?void 0:e.title,imageUrl:l(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(k.RegulatTitleSectionWrapper,{ref:a,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",className:"button-link",children:h})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:j,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
@@ -1,9 +1,9 @@
1
- import { jsxs as t, jsx as r, Fragment as k } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as r, Fragment as v } from "react/jsx-runtime";
2
2
  import { forwardRef as N, Suspense as A, memo as B, useMemo as L } from "react";
3
3
  import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as T } from "./consts-BuFChS64.js";
5
5
  import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as v, p as P, v as z, s as M, w as C, k as w } from "./utils-BbgAIA9N.js";
6
+ import { o as k, p as P, v as z, s as M, w as C, k as w } from "./utils-BbgAIA9N.js";
7
7
  import { B as I, R as U } from "./style-08foMKSd.js";
8
8
  import W from "./Button.js";
9
9
  import { P as j } from "./index-YGcWbzeb.js";
@@ -29,10 +29,7 @@ const E = y.div`
29
29
  min-height: 21.5625rem;
30
30
  cursor: pointer;
31
31
  &:hover {
32
- & .text-wr-title {
33
- color: var(--primary-500, #f59e0b);
34
- transition: var(--transition);
35
- }
32
+
36
33
  }
37
34
 
38
35
  & img {
@@ -46,7 +43,7 @@ const E = y.div`
46
43
  width: 100%;
47
44
  max-height: 11.0625rem;
48
45
  min-height: 11.0625rem;
49
- background-color: ${v("-90deg")};
46
+ background-color: ${k("-90deg")};
50
47
  }
51
48
 
52
49
  & .tags-wr {
@@ -72,13 +69,13 @@ const E = y.div`
72
69
  }
73
70
 
74
71
  & .info-wr-skeleton {
75
- background-color: ${v("-90deg")};
72
+ background-color: ${k("-90deg")};
76
73
  height: 1rem;
77
74
  width: 100%;
78
75
  }
79
76
 
80
77
  & .skeleton-title {
81
- background-color: ${v("-90deg")};
78
+ background-color: ${k("-90deg")};
82
79
  height: 1.5rem;
83
80
  width: 70%;
84
81
  }
@@ -168,7 +165,7 @@ const E = y.div`
168
165
  /* @__PURE__ */ r("div", { className: "skeleton-title" }),
169
166
  /* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
170
167
  ] })
171
- ] })), F = ({ limit: i = 3, isLoading: o = !1, keyPrefix: a }) => /* @__PURE__ */ r(k, { children: Array.from({ length: i }, (d, s) => /* @__PURE__ */ r(
168
+ ] })), F = ({ limit: i = 3, isLoading: o = !1, keyPrefix: a }) => /* @__PURE__ */ r(v, { children: Array.from({ length: i }, (d, s) => /* @__PURE__ */ r(
172
169
  G,
173
170
  {
174
171
  isLoading: o
@@ -176,7 +173,7 @@ const E = y.div`
176
173
  `${a}-skeleton-product-card-${s}`
177
174
  )) }), X = ({
178
175
  children: i,
179
- fallbackComponent: o = /* @__PURE__ */ r(k, {}),
176
+ fallbackComponent: o = /* @__PURE__ */ r(v, {}),
180
177
  isLoading: a = !1,
181
178
  limit: d,
182
179
  keyPrefix: s
@@ -202,7 +199,7 @@ const E = y.div`
202
199
  buttonLink: u,
203
200
  getImage: n = () => {
204
201
  }
205
- } = i, h = D(), $ = L(() => /* @__PURE__ */ r(k, { children: h === !0 ? l == null ? void 0 : l.map((e, g) => /* @__PURE__ */ r(
202
+ } = i, h = D(), $ = L(() => /* @__PURE__ */ r(v, { children: h === !0 ? l == null ? void 0 : l.map((e, g) => /* @__PURE__ */ r(
206
203
  S,
207
204
  {
208
205
  title: e == null ? void 0 : e.title,
@@ -1,12 +1,12 @@
1
- "use strict";const r=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-CZynEOC_.cjs"),x=require("./style-JqDQj4jh.cjs"),q=require("./Button.cjs"),R=require("./Link.cjs"),M=require("./index-BvSNRLNa.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-CZynEOC_.cjs"),q=require("./style-JqDQj4jh.cjs"),x=require("./Button.cjs"),R=require("./Link.cjs"),M=require("./index-BvSNRLNa.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;
5
5
 
6
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,S=p.styled.div`
9
+ `,b=p.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -21,10 +21,7 @@
21
21
  cursor: pointer;
22
22
 
23
23
  &:hover {
24
- & .text-wr-title {
25
- color: var(--primary-500, #f59e0b);
26
- transition: var(--transition);
27
- }
24
+
28
25
  }
29
26
 
30
27
  & img {
@@ -46,7 +43,7 @@
46
43
  margin-top: auto;
47
44
  }
48
45
 
49
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
46
+ @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
50
47
  }
51
48
  `,y=p.styled.div`
52
49
  padding: 1rem 1rem 0 1rem;
@@ -68,4 +65,4 @@
68
65
  color: var(--gray-700, #4e555f);
69
66
  ${u.truncateTextInRows(3)}
70
67
  }
71
- `,$=c.forwardRef((t,o)=>{const{title:i,imageUrl:s,text:l,onCardClick:d,readMoreText:m="Read more"}=t;return r.jsxs(S,{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(S,{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",className:"button-link",children:v})]}),r.jsx(B,{limit:g,children:r.jsx(T,{isLoading:w,limit:g,keyPrefix:"explore-landing",children:C})})]})});module.exports=_;
68
+ `,$=c.forwardRef((t,l)=>{const{title:i,imageUrl:n,text:o,onCardClick:d,readMoreText:m="Read more"}=t;return r.jsxs(b,{ref:l,className:"blog-card",onClick:d,children:[r.jsx(M.ProductImageWrapper,{src:n}),r.jsxs(y,{children:[r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:o})]}),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:l=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(n,o)=>r.jsx(I,{isLoading:l},`${i}-skeleton-product-card-${o}`))}),T=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:n,keyPrefix:o})=>r.jsx(c.Suspense,{fallbackComponent:l,children:i===!0?r.jsx(P,{isLoading:i,limit:n,keyPrefix:o}):t}),j=c.memo($),_=c.forwardRef((t,l)=>{const{icon:i,title:n,onButtonAction:o=()=>{},onSelectCard:d=()=>{},buttonLink:m,items:s,buttonText:w,limit:g=3,isLoading:v=!1,getImage:h=()=>{},readMoreText:f="Read more"}=t,k=N.useDetectMobile(),C=c.useMemo(()=>r.jsx(r.Fragment,{children:k===!0?s==null?void 0:s.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)):s==null?void 0:s.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))}),[s]);return r.jsxs(q.RegulatTitleSectionWrapper,{ref:l,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:n})]}),u.isDefinedNotEmptyString(m)&&r.jsx(x,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),o(m)},borderRadius:"curved",className:"button-link",children:w})]}),r.jsx(B,{limit:g,children:r.jsx(T,{isLoading:v,limit:g,keyPrefix:"explore-landing",children:C})})]})});module.exports=_;
@@ -1,9 +1,9 @@
1
- import { jsxs as d, jsx as r, Fragment as g } from "react/jsx-runtime";
1
+ import { jsxs as m, 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
- import { M as k } from "./consts-BuFChS64.js";
4
+ import { M as v } from "./consts-BuFChS64.js";
5
5
  import { u as T } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as I, p as U, k as v } from "./utils-BbgAIA9N.js";
6
+ import { o as I, p as U, k as S } from "./utils-BbgAIA9N.js";
7
7
  import { R as W } from "./style-08foMKSd.js";
8
8
  import z from "./Button.js";
9
9
  import j from "./Link.js";
@@ -13,7 +13,7 @@ const E = h.div`
13
13
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
15
15
 
16
- @media (max-width: ${k + "px"}) {
16
+ @media (max-width: ${v + "px"}) {
17
17
  grid-template-columns: repeat(1, 1fr);
18
18
  }
19
19
  `, w = h.div`
@@ -31,10 +31,7 @@ const E = h.div`
31
31
  cursor: pointer;
32
32
 
33
33
  &:hover {
34
- & .text-wr-title {
35
- color: var(--primary-500, #f59e0b);
36
- transition: var(--transition);
37
- }
34
+
38
35
  }
39
36
 
40
37
  & img {
@@ -56,7 +53,7 @@ const E = h.div`
56
53
  margin-top: auto;
57
54
  }
58
55
 
59
- @media (max-width: ${k + "px"}) {
56
+ @media (max-width: ${v + "px"}) {
60
57
  }
61
58
  `, y = h.div`
62
59
  padding: 1rem 1rem 0 1rem;
@@ -80,9 +77,9 @@ const E = h.div`
80
77
  }
81
78
  `, L = u((t, o) => {
82
79
  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: [
80
+ return /* @__PURE__ */ m(w, { ref: o, className: "blog-card", onClick: c, children: [
84
81
  /* @__PURE__ */ r(A, { src: n }),
85
- /* @__PURE__ */ d(y, { children: [
82
+ /* @__PURE__ */ m(y, { children: [
86
83
  /* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
87
84
  /* @__PURE__ */ r("div", { className: "text-wr", children: l })
88
85
  ] }),
@@ -90,7 +87,7 @@ const E = h.div`
90
87
  ] });
91
88
  }), _ = u(({}, t) => (
92
89
  // <LandingPageClearProductCardSkeleton />
93
- /* @__PURE__ */ d(w, { className: "product-card", children: [
90
+ /* @__PURE__ */ m(w, { className: "product-card", children: [
94
91
  /* @__PURE__ */ r("div", { className: "skeleton-img" }),
95
92
  /* @__PURE__ */ r("div", { className: "card-title" }),
96
93
  /* @__PURE__ */ r(y, {})
@@ -114,7 +111,7 @@ const E = h.div`
114
111
  limit: n,
115
112
  keyPrefix: l
116
113
  }
117
- ) : t }), S = P(L), Y = u((t, o) => {
114
+ ) : t }), k = P(L), Y = u((t, o) => {
118
115
  const {
119
116
  icon: i,
120
117
  title: n,
@@ -130,8 +127,8 @@ const E = h.div`
130
127
  getImage: f = () => {
131
128
  },
132
129
  readMoreText: b = "Read more"
133
- } = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, m) => /* @__PURE__ */ r(
134
- S,
130
+ } = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, d) => /* @__PURE__ */ r(
131
+ k,
135
132
  {
136
133
  title: e == null ? void 0 : e.title,
137
134
  imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
@@ -140,9 +137,9 @@ const E = h.div`
140
137
  readMoreText: b,
141
138
  onCardClick: () => c(e == null ? void 0 : e.titleSlug)
142
139
  },
143
- m
144
- )) : a == null ? void 0 : a.slice(0, p).map((e, m) => /* @__PURE__ */ r(
145
- S,
140
+ d
141
+ )) : a == null ? void 0 : a.slice(0, p).map((e, d) => /* @__PURE__ */ r(
142
+ k,
146
143
  {
147
144
  title: e == null ? void 0 : e.title,
148
145
  imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
@@ -151,23 +148,23 @@ const E = h.div`
151
148
  readMoreText: b,
152
149
  onCardClick: () => c(e == null ? void 0 : e.titleSlug)
153
150
  },
154
- m
151
+ d
155
152
  )) }), [a]);
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
- v(i) && /* @__PURE__ */ r("i", { className: i }),
153
+ return /* @__PURE__ */ m(W, { ref: o, children: [
154
+ /* @__PURE__ */ m("div", { className: "regular-title", children: [
155
+ /* @__PURE__ */ m("div", { className: "regular-title-text", children: [
156
+ S(i) && /* @__PURE__ */ r("i", { className: i }),
160
157
  /* @__PURE__ */ r("span", { children: n })
161
158
  ] }),
162
- v(s) && /* @__PURE__ */ r(
159
+ S(s) && /* @__PURE__ */ r(
163
160
  z,
164
161
  {
165
162
  type: "button",
166
163
  btnType: "tinted",
167
164
  color: "gray",
168
165
  onClick: (e) => {
169
- var m;
170
- (m = e == null ? void 0 : e.target) == null || m.blur(), l(s);
166
+ var d;
167
+ (d = e == null ? void 0 : e.target) == null || d.blur(), l(s);
171
168
  },
172
169
  borderRadius: "curved",
173
170
  className: "button-link",
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),U=require("./Button.cjs"),y=require("./utils-CZynEOC_.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./style-JqDQj4jh.cjs"),h=require("./suspense-product-card-detailed-DXwya4fQ.cjs"),T=require("./index-C1DkD2ug.cjs"),E=v.styled.div`
1
+ "use strict";const i=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),U=require("./Button.cjs"),y=require("./utils-CZynEOC_.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./style-JqDQj4jh.cjs"),h=require("./suspense-product-card-detailed-LcBMp1iw.cjs"),T=require("./index-C1DkD2ug.cjs"),E=v.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: ${r=>(r==null?void 0:r.gap)||"1.25rem"};
@@ -6,7 +6,7 @@ import E from "./Button.js";
6
6
  import { k as f } from "./utils-BbgAIA9N.js";
7
7
  import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
8
8
  import { T as $ } from "./style-08foMKSd.js";
9
- import { D as L, S as O } from "./suspense-product-card-detailed-bYBpLiXc.js";
9
+ import { D as L, S as O } from "./suspense-product-card-detailed-PArA5O4M.js";
10
10
  import { S as R } from "./index-CQLF61YV.js";
11
11
  const W = F.div`
12
12
  display: grid;