@lanaco/lnc-react-ui 4.0.157 → 4.0.161

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 (77) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +11 -9
  2. package/dist/BlogCardsSponsoredSection.js +108 -90
  3. package/dist/BlogExploreSection.cjs +5 -5
  4. package/dist/BlogExploreSection.js +88 -84
  5. package/dist/BlogListSection.cjs +5 -5
  6. package/dist/BlogListSection.js +139 -126
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +37 -35
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +43 -41
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +9 -4
  13. package/dist/BlogsSectionDetailed.cjs +11 -11
  14. package/dist/BlogsSectionDetailed.js +122 -108
  15. package/dist/BlogsSectionLarge.cjs +4 -4
  16. package/dist/BlogsSectionLarge.js +43 -40
  17. package/dist/BlogsSectionSimple.cjs +8 -8
  18. package/dist/BlogsSectionSimple.js +100 -86
  19. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  20. package/dist/BlogsSectionSimpleCentered.js +81 -66
  21. package/dist/BlogsSectionWithFilters.cjs +11 -11
  22. package/dist/BlogsSectionWithFilters.js +108 -93
  23. package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
  24. package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
  25. package/dist/DetailedProductsInfinitiveSection.cjs +5 -3
  26. package/dist/DetailedProductsInfinitiveSection.js +31 -27
  27. package/dist/DetailedProductsSection.cjs +3 -3
  28. package/dist/DetailedProductsSection.js +76 -65
  29. package/dist/Dropdown.cjs +1 -1
  30. package/dist/Dropdown.js +2 -2
  31. package/dist/DropdownLookup.cjs +1 -1
  32. package/dist/DropdownLookup.js +1 -1
  33. package/dist/FieldOfInterestsMasonrySection.cjs +20 -12
  34. package/dist/FieldOfInterestsMasonrySection.js +35 -27
  35. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  36. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  37. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -0
  38. package/dist/FieldOfInterestsWithTagsCardsSection.js +5 -3
  39. package/dist/GiftCardsSection.cjs +1 -1
  40. package/dist/GiftCardsSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +1 -3
  42. package/dist/MasonryGeneralCardsSection.js +9 -11
  43. package/dist/MultiSelectDropdown.cjs +1 -1
  44. package/dist/MultiSelectDropdown.js +1 -1
  45. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  46. package/dist/MultiSelectDropdownLookup.js +1 -1
  47. package/dist/ProductsWithBannerSection.cjs +20 -27
  48. package/dist/ProductsWithBannerSection.js +93 -78
  49. package/dist/QuattroCardsSection.cjs +2 -0
  50. package/dist/QuattroCardsSection.js +2 -0
  51. package/dist/SalesCampaignsSection.cjs +29 -27
  52. package/dist/SalesCampaignsSection.js +247 -239
  53. package/dist/ShopCardsSection.cjs +5 -3
  54. package/dist/ShopCardsSection.js +29 -25
  55. package/dist/SimpleCategoriesSection.cjs +1 -1
  56. package/dist/SimpleCategoriesSection.js +1 -1
  57. package/dist/SimpleProductsSection.cjs +3 -3
  58. package/dist/SimpleProductsSection.js +62 -51
  59. package/dist/UrgentSaleProductsSection.cjs +6 -6
  60. package/dist/UrgentSaleProductsSection.js +67 -56
  61. package/dist/index-1Dm1i6WK.js +52 -0
  62. package/dist/index-BGTtoLxz.cjs +1 -0
  63. package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
  64. package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
  68. package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
  69. package/dist/{style-BLuyU97E.js → style-DKAOBWn3.js} +1 -0
  70. package/dist/{style-lSjkOR95.cjs → style-Db3VFbfP.cjs} +1 -0
  71. package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
  72. package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
  73. package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
  74. package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
  75. package/package.json +1 -1
  76. package/dist/index-Cm0f72Po.cjs +0 -1
  77. package/dist/index-DGp7FHms.js +0 -42
@@ -1,14 +1,14 @@
1
- import { jsxs as i, jsx as r, Fragment as w } from "react/jsx-runtime";
2
- import { forwardRef as N, cloneElement as j, memo as C, useMemo as R } from "react";
3
- import y from "./Icon.js";
4
- import v from "./IconButton.js";
5
- import { p as z, s as L, v as P, w as k, l as T } from "./utils-BdsZgOUE.js";
6
- import { P as O } from "./index-CF3HhgvN.js";
7
- import { B as S } from "./style-BLuyU97E.js";
8
- import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
- import { M as E } from "./consts-BuFChS64.js";
10
- import { S as M } from "./suspense-large-BMO7JH52.js";
11
- const U = B.div`
1
+ import { jsxs as t, jsx as i, Fragment as y } from "react/jsx-runtime";
2
+ import { forwardRef as C, useRef as j, cloneElement as z, memo as L, useMemo as P } from "react";
3
+ import N from "./Icon.js";
4
+ import B from "./IconButton.js";
5
+ import { p as T, s as O, v as S, w as $, l as E } from "./utils-BdsZgOUE.js";
6
+ import { P as M } from "./index-CF3HhgvN.js";
7
+ import { B as U } from "./style-DKAOBWn3.js";
8
+ import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import { M as W } from "./consts-BuFChS64.js";
10
+ import { S as A } from "./suspense-large-BMO7JH52.js";
11
+ const D = I.div`
12
12
  display: flex;
13
13
  padding: 1rem;
14
14
  align-items: center;
@@ -60,7 +60,7 @@ const U = B.div`
60
60
  font-weight: 600;
61
61
  line-height: 1.5rem;
62
62
  letter-spacing: 0.1px;
63
- ${z(3)}
63
+ ${T(3)}
64
64
  }
65
65
 
66
66
  & .wrapper__tags {
@@ -103,7 +103,7 @@ const U = B.div`
103
103
  }
104
104
  }
105
105
 
106
- @media (max-width: ${E + "px"}) {
106
+ @media (max-width: ${W + "px"}) {
107
107
  flex-direction: column;
108
108
  padding: 0;
109
109
  background: transparent;
@@ -154,101 +154,112 @@ const U = B.div`
154
154
  }
155
155
  }
156
156
  }
157
- `, W = N(
157
+ `, F = C(
158
158
  ({
159
- blogUuid: s,
160
- title: n,
161
- imageUrl: o,
162
- options: a,
163
- publishedAt: c,
164
- timeToReadText: p = "{0} min read",
165
- timeToRead: f = 0,
166
- numberOfLikes: g = 0,
167
- numberOfComments: _ = 0,
168
- isBookmarked: m = !1,
169
- onSelectCard: u = () => {
159
+ blogUuid: l,
160
+ title: a,
161
+ imageUrl: s,
162
+ options: n,
163
+ publishedAt: p,
164
+ timeToReadText: f = "{0} min read",
165
+ timeToRead: g = 0,
166
+ numberOfLikes: _ = 0,
167
+ numberOfComments: u = 0,
168
+ isBookmarked: c = !1,
169
+ onSelectCard: h = () => {
170
170
  },
171
- onBookmark: e = () => {
171
+ onBookmark: w = () => {
172
172
  },
173
- onShare: d = () => {
173
+ onShare: e = () => {
174
174
  },
175
- bookmarkComponent: l = /* @__PURE__ */ r(w, {})
176
- }, $) => {
177
- const b = () => T(l) ? j(l, {
178
- key: `bookmark_blog__${s}__${m}`,
179
- isBookmarked: m,
180
- blogUuid: s,
181
- onBookmark: (h, I) => e(h, I),
182
- ref: $,
175
+ bookmarkComponent: m = /* @__PURE__ */ i(y, {}),
176
+ metadata: o
177
+ }, v) => {
178
+ const d = () => E(m) ? z(m, {
179
+ key: `bookmark_blog__${l}__${c}`,
180
+ isBookmarked: c,
181
+ blogUuid: l,
182
+ onBookmark: (b, R) => w(b, R),
183
+ ref: v,
183
184
  componentName: "ExploreBlogSectionCard"
184
- }) : /* @__PURE__ */ r(w, {});
185
- return /* @__PURE__ */ i(U, { onClick: u, className: "blog-card-item", children: [
186
- /* @__PURE__ */ r(O, { src: o, className: "wrapper__image" }),
187
- /* @__PURE__ */ i("div", { className: "wrapper__content", children: [
188
- /* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
189
- /* @__PURE__ */ r("div", { className: "wrapper__title", children: n }),
190
- /* @__PURE__ */ i("div", { className: "wrapper__tags-action", children: [
191
- /* @__PURE__ */ r("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((t, h) => /* @__PURE__ */ r(
192
- S,
193
- {
194
- color: t == null ? void 0 : t.color,
195
- children: t == null ? void 0 : t.name
196
- },
197
- `blog-card-sponsored-option__${h + 1}`
198
- ))) }),
199
- /* @__PURE__ */ i("div", { className: "info__content mobile-only", children: [
200
- /* @__PURE__ */ r(b, {}),
201
- /* @__PURE__ */ r(
202
- v,
203
- {
204
- icon: " mng-lnc-share",
205
- borderRadius: "curved",
206
- btnType: "basic",
207
- color: "neutral",
208
- onClick: (t) => {
209
- t == null || t.stopPropagation(), d();
210
- }
211
- }
212
- )
213
- ] })
214
- ] })
215
- ] }),
216
- /* @__PURE__ */ i("div", { className: "wrapper__info", children: [
217
- /* @__PURE__ */ i("div", { className: "info__content", children: [
218
- /* @__PURE__ */ r("div", { className: "info__text", children: `${L(
219
- c
220
- )} • ${P(p, f)}` }),
221
- /* @__PURE__ */ i("div", { className: "info__text", children: [
222
- /* @__PURE__ */ i("div", { children: [
223
- /* @__PURE__ */ r(y, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
224
- k(g)
185
+ }) : /* @__PURE__ */ i(y, {}), k = j();
186
+ return /* @__PURE__ */ t(
187
+ D,
188
+ {
189
+ ref: k,
190
+ name: o == null ? void 0 : o.name,
191
+ "data-accessor": o == null ? void 0 : o.accessor,
192
+ onClick: (r) => h(r, k),
193
+ className: "blog-card-item",
194
+ children: [
195
+ /* @__PURE__ */ i(M, { src: s, className: "wrapper__image" }),
196
+ /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
197
+ /* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
198
+ /* @__PURE__ */ i("div", { className: "wrapper__title", children: a }),
199
+ /* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
200
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: n && (n == null ? void 0 : n.map((r, b) => /* @__PURE__ */ i(
201
+ U,
202
+ {
203
+ color: r == null ? void 0 : r.color,
204
+ children: r == null ? void 0 : r.name
205
+ },
206
+ `blog-card-sponsored-option__${b + 1}`
207
+ ))) }),
208
+ /* @__PURE__ */ t("div", { className: "info__content mobile-only", children: [
209
+ /* @__PURE__ */ i(d, {}),
210
+ /* @__PURE__ */ i(
211
+ B,
212
+ {
213
+ icon: " mng-lnc-share",
214
+ borderRadius: "curved",
215
+ btnType: "basic",
216
+ color: "neutral",
217
+ onClick: (r) => {
218
+ r == null || r.stopPropagation(), e();
219
+ }
220
+ }
221
+ )
222
+ ] })
223
+ ] })
224
+ ] }),
225
+ /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
226
+ /* @__PURE__ */ t("div", { className: "info__content", children: [
227
+ /* @__PURE__ */ i("div", { className: "info__text", children: `${O(
228
+ p
229
+ )} • ${S(f, g)}` }),
230
+ /* @__PURE__ */ t("div", { className: "info__text", children: [
231
+ /* @__PURE__ */ t("div", { children: [
232
+ /* @__PURE__ */ i(N, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
233
+ $(_)
234
+ ] }),
235
+ /* @__PURE__ */ t("div", { children: [
236
+ /* @__PURE__ */ i(N, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
237
+ $(u)
238
+ ] })
239
+ ] })
225
240
  ] }),
226
- /* @__PURE__ */ i("div", { children: [
227
- /* @__PURE__ */ r(y, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
228
- k(_)
241
+ /* @__PURE__ */ t("div", { className: "info__content desktop-only", children: [
242
+ /* @__PURE__ */ i(d, {}),
243
+ /* @__PURE__ */ i(
244
+ B,
245
+ {
246
+ icon: " mng-lnc-share",
247
+ borderRadius: "curved",
248
+ btnType: "basic",
249
+ color: "neutral",
250
+ onClick: (r) => {
251
+ r == null || r.stopPropagation(), e();
252
+ }
253
+ }
254
+ )
229
255
  ] })
230
256
  ] })
231
- ] }),
232
- /* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
233
- /* @__PURE__ */ r(b, {}),
234
- /* @__PURE__ */ r(
235
- v,
236
- {
237
- icon: " mng-lnc-share",
238
- borderRadius: "curved",
239
- btnType: "basic",
240
- color: "neutral",
241
- onClick: (t) => {
242
- t == null || t.stopPropagation(), d();
243
- }
244
- }
245
- )
246
257
  ] })
247
- ] })
248
- ] })
249
- ] });
258
+ ]
259
+ }
260
+ );
250
261
  }
251
- ), A = B.div`
262
+ ), X = I.div`
252
263
  display: flex;
253
264
  flex-direction: column;
254
265
  align-items: flex-start;
@@ -272,58 +283,60 @@ const U = B.div`
272
283
  bottom: -1.25rem;
273
284
  }
274
285
  }
275
- `, D = C(W), Y = N(
286
+ `, Z = L(F), re = C(
276
287
  ({
277
- timeToReadText: s = "{0} min read",
278
- items: n,
279
- onSelectCard: o = () => {
288
+ timeToReadText: l = "{0} min read",
289
+ items: a,
290
+ onSelectCard: s = () => {
280
291
  },
281
- onShare: a = () => {
292
+ onShare: n = () => {
282
293
  },
283
- onBookmark: c = () => {
294
+ onBookmark: p = () => {
284
295
  },
285
- isLoading: p = !1,
286
- getImage: f = () => {
296
+ isLoading: f = !1,
297
+ getImage: g = () => {
287
298
  },
288
- isSeparated: g = !0,
289
- bookmarkComponent: _ = /* @__PURE__ */ r(w, {})
290
- }, m) => {
291
- const u = R(() => n == null ? void 0 : n.map((e, d) => {
292
- var l;
293
- return /* @__PURE__ */ r(
294
- D,
299
+ isSeparated: _ = !0,
300
+ bookmarkComponent: u = /* @__PURE__ */ i(y, {}),
301
+ componentName: c
302
+ }, h) => {
303
+ const w = P(() => a == null ? void 0 : a.map((e, m) => {
304
+ var o;
305
+ return /* @__PURE__ */ i(
306
+ Z,
295
307
  {
296
308
  blogUuid: e == null ? void 0 : e.uuid,
297
309
  title: e == null ? void 0 : e.title,
298
310
  titleSlug: e == null ? void 0 : e.titleSlug,
299
311
  options: e == null ? void 0 : e.options,
300
312
  publishedAt: e == null ? void 0 : e.publishedAt,
301
- timeToReadText: s,
313
+ timeToReadText: l,
302
314
  timeToRead: e == null ? void 0 : e.timeToRead,
303
315
  numberOfLikes: e == null ? void 0 : e.numberOfLikes,
304
316
  numberOfComments: e == null ? void 0 : e.numberOfComments,
305
317
  isSponsored: e == null ? void 0 : e.isSponsored,
306
318
  isBookmarked: e == null ? void 0 : e.isBookmarked,
307
- onSelectCard: () => o == null ? void 0 : o(e),
308
- onShare: () => a == null ? void 0 : a(e),
309
- onBookmark: c,
310
- imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
311
- bookmarkComponent: _
319
+ onSelectCard: (v, d) => s == null ? void 0 : s(e, d),
320
+ onShare: () => n == null ? void 0 : n(e),
321
+ onBookmark: p,
322
+ imageUrl: g(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
323
+ bookmarkComponent: u,
324
+ metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
312
325
  },
313
- `blog-card-item__${d + 1}__${(l = e == null ? void 0 : e.isBookmarked) == null ? void 0 : l.toString()}`
326
+ `blog-card-item__${m + 1}__${(o = e == null ? void 0 : e.isBookmarked) == null ? void 0 : o.toString()}`
314
327
  );
315
- }), [n]);
316
- return /* @__PURE__ */ r(A, { ref: m, className: g ? "separated" : "", children: /* @__PURE__ */ r(
317
- M,
328
+ }), [a]);
329
+ return /* @__PURE__ */ i(X, { ref: h, className: _ ? "separated" : "", children: /* @__PURE__ */ i(
330
+ A,
318
331
  {
319
- isLoading: p,
332
+ isLoading: f,
320
333
  limit: 5,
321
334
  keyPrefix: "blog-section",
322
- children: u
335
+ children: w
323
336
  }
324
337
  ) });
325
338
  }
326
339
  );
327
340
  export {
328
- Y as default
341
+ re as default
329
342
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),u=require("react"),P=require("./useDetectMobile-zkbzoOGV.cjs"),h=require("./index-CLoINIGC.cjs"),j=require("./suspense-product-card-simple-CrqjSxHI.cjs"),f=require("./Button.cjs"),y=require("./style-BTTXJFJN.cjs"),M=u.memo(h.SimpleProductCard),N=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},m)=>{const b=P.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,q)=>r.jsx(M,{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},q))},[i]);return r.jsxs(y.Wrapper,{ref:m,className:`blog-product-cards-section ${p?"highlight":""}`,children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(j.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(f,{text:o,borderRadius:"curved",btnType:b?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=N;
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),j=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./index-DicTpiG0.cjs"),y=require("./suspense-product-card-simple-DJ8UYolb.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),R=c.memo(f.SimpleProductCard),_=c.forwardRef(({buttonText:o,buttonLink:t,items:s,onButtonAction:l=()=>{},onSelectCard:i=()=>{},isLoading:a=!1,limit:n=4,getImage:d=()=>{},isHighlight:p=!1,componentName:m},b)=>{const g=j.useDetectMobile(),q=c.useMemo(()=>{var u;return(u=s==null?void 0:s.slice(0,4))==null?void 0:u.map((e,P)=>r.jsx(R,{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:(w,h)=>i==null?void 0:i(e==null?void 0:e.uuid,h),image:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:m,accessor:e==null?void 0:e.accessor}},P))},[s]);return r.jsxs(N.Wrapper,{ref:b,className:`blog-product-cards-section ${p?"highlight":""}`,children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(y.SuspenseSimpleProductCard,{isLoading:a,limit:n,keyPrefix:"blog-section",children:q})}),r.jsx(M,{text:o,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=_;
@@ -1,29 +1,30 @@
1
- import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
- import { memo as h, forwardRef as P, useMemo as N } from "react";
3
- import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { S as M } from "./index-BGY3PSA-.js";
5
- import { S } from "./suspense-product-card-simple-CLJjab5B.js";
6
- import _ from "./Button.js";
7
- import { W as w } from "./style-tw6KjI2J.js";
8
- const U = h(M), R = P(
1
+ import { jsx as o, jsxs as P } from "react/jsx-runtime";
2
+ import { memo as N, forwardRef as y, useMemo as M } from "react";
3
+ import { u as S } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { S as _ } from "./index-y6sKgrZC.js";
5
+ import { S as w } from "./suspense-product-card-simple-ziy0XcLp.js";
6
+ import U from "./Button.js";
7
+ import { W as j } from "./style-tw6KjI2J.js";
8
+ const k = N(_), T = y(
9
9
  ({
10
- buttonText: u,
11
- buttonLink: l,
10
+ buttonText: a,
11
+ buttonLink: c,
12
12
  items: r,
13
13
  onButtonAction: t = () => {
14
14
  },
15
- onSelectCard: o = () => {
15
+ onSelectCard: i = () => {
16
16
  },
17
- isLoading: a = !1,
18
- limit: c = 4,
17
+ isLoading: u = !1,
18
+ limit: l = 4,
19
19
  getImage: d = () => {
20
20
  },
21
- isHighlight: m = !1
22
- }, p) => {
23
- const n = y(), f = N(() => {
21
+ isHighlight: m = !1,
22
+ componentName: p
23
+ }, n) => {
24
+ const f = S(), g = M(() => {
24
25
  var s;
25
- return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, g) => /* @__PURE__ */ i(
26
- U,
26
+ return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, b) => /* @__PURE__ */ o(
27
+ k,
27
28
  {
28
29
  title: e == null ? void 0 : e.name,
29
30
  price: e == null ? void 0 : e.price,
@@ -32,36 +33,37 @@ const U = h(M), R = P(
32
33
  currency: e == null ? void 0 : e.currency,
33
34
  sellerUuid: e == null ? void 0 : e.sellerUuid,
34
35
  uuid: e == null ? void 0 : e.uuid,
35
- onSelectCard: () => o == null ? void 0 : o(e == null ? void 0 : e.uuid),
36
- image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null
36
+ onSelectCard: (v, h) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, h),
37
+ image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
38
+ metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
37
39
  },
38
- g
40
+ b
39
41
  ));
40
42
  }, [r]);
41
- return /* @__PURE__ */ b(
42
- w,
43
+ return /* @__PURE__ */ P(
44
+ j,
43
45
  {
44
- ref: p,
46
+ ref: n,
45
47
  className: `blog-product-cards-section ${m ? "highlight" : ""}`,
46
48
  children: [
47
- /* @__PURE__ */ i("div", { className: "wrapper__grid", children: /* @__PURE__ */ i(
48
- S,
49
+ /* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
50
+ w,
49
51
  {
50
- isLoading: a,
51
- limit: c,
52
+ isLoading: u,
53
+ limit: l,
52
54
  keyPrefix: "blog-section",
53
- children: f
55
+ children: g
54
56
  }
55
57
  ) }),
56
- /* @__PURE__ */ i(
57
- _,
58
+ /* @__PURE__ */ o(
59
+ U,
58
60
  {
59
- text: u,
61
+ text: a,
60
62
  borderRadius: "curved",
61
- btnType: n ? "basic" : "outline",
63
+ btnType: f ? "basic" : "outline",
62
64
  color: "neutral",
63
65
  className: "wrapper__action",
64
- onClick: () => t(l)
66
+ onClick: () => t(c)
65
67
  }
66
68
  )
67
69
  ]
@@ -70,5 +72,5 @@ const U = h(M), R = P(
70
72
  }
71
73
  );
72
74
  export {
73
- R as default
75
+ T as default
74
76
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),u=require("react"),S=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-CanJ6Gr6.cjs"),b=require("./Button.cjs"),_=require("./style-BTTXJFJN.cjs"),k=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),q=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(k,{isLoading:s,limit:i,keyPrefix:t}):o}),C=u.memo(a.ShopCard),w=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},m)=>{const g=S.useDetectMobile(),j=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,f)=>r.jsx(C,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${f+1}`))},[s]);return r.jsxs(_.Wrapper,{ref:m,className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(q,{isLoading:l,limit:d,keyPrefix:"blog-section",children:j})}),r.jsx(b,{text:o,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=w;
1
+ "use strict";const r=require("react/jsx-runtime"),a=require("react"),_=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./skeleton-Ccd6EDeB.cjs"),k=require("./Button.cjs"),q=require("./style-BTTXJFJN.cjs"),C=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(u.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),w=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(a.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(C,{isLoading:s,limit:i,keyPrefix:t}):o}),M=a.memo(u.ShopCard),v=a.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1,componentName:m},g)=>{const j=_.useDetectMobile(),f=a.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,S)=>r.jsx(M,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(y,b)=>t==null?void 0:t(e==null?void 0:e.uuid,b),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:m,accessor:e==null?void 0:e.accessor}},`shop-card__${S+1}`))},[s]);return r.jsxs(q.Wrapper,{ref:g,className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(w,{isLoading:l,limit:d,keyPrefix:"blog-section",children:f})}),r.jsx(k,{text:o,borderRadius:"curved",btnType:j?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=v;
@@ -1,84 +1,86 @@
1
- import { jsx as o, Fragment as u, jsxs as S } from "react/jsx-runtime";
2
- import { Suspense as b, memo as _, forwardRef as C, useMemo as k } from "react";
3
- import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { a as v, S as M } from "./skeleton-BWFqIToC.js";
5
- import y from "./Button.js";
6
- import { W as N } from "./style-tw6KjI2J.js";
7
- const $ = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
8
- v,
1
+ import { jsx as o, Fragment as u, jsxs as _ } from "react/jsx-runtime";
2
+ import { Suspense as C, memo as k, forwardRef as w, useMemo as v } from "react";
3
+ import { u as M } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { a as y, S as N } from "./skeleton-5mO22c5S.js";
5
+ import $ from "./Button.js";
6
+ import { W as j } from "./style-tw6KjI2J.js";
7
+ const z = ({ limit: a = 4, isLoading: t = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: a }, (i, s) => /* @__PURE__ */ o(
8
+ y,
9
9
  {
10
- isLoading: a
10
+ isLoading: t
11
11
  },
12
- `${r}-skeleton-shop-card-${t}`
13
- )) }), j = ({
14
- children: s,
15
- fallbackComponent: a = /* @__PURE__ */ o(u, {}),
12
+ `${r}-skeleton-shop-card-${s}`
13
+ )) }), B = ({
14
+ children: a,
15
+ fallbackComponent: t = /* @__PURE__ */ o(u, {}),
16
16
  isLoading: r = !1,
17
17
  limit: i,
18
- keyPrefix: t
19
- }) => /* @__PURE__ */ o(b, { fallbackComponent: a, children: r === !0 ? /* @__PURE__ */ o(
20
- $,
18
+ keyPrefix: s
19
+ }) => /* @__PURE__ */ o(C, { fallbackComponent: t, children: r === !0 ? /* @__PURE__ */ o(
20
+ z,
21
21
  {
22
22
  isLoading: r,
23
23
  limit: i,
24
- keyPrefix: t
24
+ keyPrefix: s
25
25
  }
26
- ) : s }), z = _(M), F = C(
26
+ ) : a }), D = k(N), q = w(
27
27
  ({
28
- buttonText: s,
29
- buttonLink: a,
28
+ buttonText: a,
29
+ buttonLink: t,
30
30
  items: r,
31
31
  onButtonAction: i = () => {
32
32
  },
33
- onSelectCard: t = () => {
33
+ onSelectCard: s = () => {
34
34
  },
35
35
  isLoading: l = !1,
36
- limit: p = 4,
37
- getImage: c = () => {
36
+ limit: c = 4,
37
+ getImage: p = () => {
38
38
  },
39
- isHighlight: d = !1
40
- }, m) => {
41
- const h = w(), f = k(() => {
39
+ isHighlight: d = !1,
40
+ componentName: m
41
+ }, h) => {
42
+ const f = M(), g = v(() => {
42
43
  var n;
43
- return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e, g) => /* @__PURE__ */ o(
44
- z,
44
+ return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e, S) => /* @__PURE__ */ o(
45
+ D,
45
46
  {
46
47
  uuid: e == null ? void 0 : e.uuid,
47
48
  title: e == null ? void 0 : e.name,
48
49
  subtitle: e == null ? void 0 : e.shortDescription,
49
50
  rating: e == null ? void 0 : e.rating,
50
51
  reviewCount: e == null ? void 0 : e.reviewCount,
51
- onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid),
52
- image: c(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
53
- hideProducts: !0
52
+ onSelectCard: (P, b) => s == null ? void 0 : s(e == null ? void 0 : e.uuid, b),
53
+ image: p(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
54
+ hideProducts: !0,
55
+ metadata: { name: m, accessor: e == null ? void 0 : e.accessor }
54
56
  },
55
- `shop-card__${g + 1}`
57
+ `shop-card__${S + 1}`
56
58
  ));
57
59
  }, [r]);
58
- return /* @__PURE__ */ S(N, { ref: m, className: d ? "highlight" : "", children: [
60
+ return /* @__PURE__ */ _(j, { ref: h, className: d ? "highlight" : "", children: [
59
61
  /* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
60
- j,
62
+ B,
61
63
  {
62
64
  isLoading: l,
63
- limit: p,
65
+ limit: c,
64
66
  keyPrefix: "blog-section",
65
- children: f
67
+ children: g
66
68
  }
67
69
  ) }),
68
70
  /* @__PURE__ */ o(
69
- y,
71
+ $,
70
72
  {
71
- text: s,
73
+ text: a,
72
74
  borderRadius: "curved",
73
- btnType: h ? "basic" : "outline",
75
+ btnType: f ? "basic" : "outline",
74
76
  color: "neutral",
75
77
  className: "wrapper__action",
76
- onClick: () => i(a)
78
+ onClick: () => i(t)
77
79
  }
78
80
  )
79
81
  ] });
80
82
  }
81
83
  );
82
84
  export {
83
- F as default
85
+ q as default
84
86
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-Cm0f72Po.cjs"),a=require("./skeleton-BdbB-LdT.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-BGTtoLxz.cjs"),a=require("./skeleton-BdbB-LdT.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
2
  import { Suspense as s, forwardRef as u } from "react";
3
- import { B as d } from "./index-DGp7FHms.js";
3
+ import { B as d } from "./index-1Dm1i6WK.js";
4
4
  import { B as c } from "./skeleton-CQPwIEP0.js";
5
5
  const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
6
6
  c,
@@ -22,9 +22,14 @@ const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */
22
22
  keyPrefix: n
23
23
  }
24
24
  ) : o }), k = u((o, t) => {
25
- const { isLoading: l, item: r, onSelectCard: n = () => {
26
- }, getImage: g = () => {
27
- } } = o;
25
+ const {
26
+ isLoading: l,
27
+ item: r,
28
+ onSelectCard: n = () => {
29
+ },
30
+ getImage: g = () => {
31
+ }
32
+ } = o;
28
33
  return /* @__PURE__ */ e(
29
34
  i,
30
35
  {