@lanaco/lnc-react-ui 4.0.185 → 4.0.188

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 (73) hide show
  1. package/dist/BannerSectionCarousel.cjs +4 -4
  2. package/dist/BannerSectionCarousel.js +150 -158
  3. package/dist/BlogCardsSponsoredSection.cjs +5 -5
  4. package/dist/BlogCardsSponsoredSection.js +55 -51
  5. package/dist/BlogCategoryCardsSection.cjs +1 -1
  6. package/dist/BlogCategoryCardsSection.js +1 -1
  7. package/dist/BlogExploreSection.cjs +5 -5
  8. package/dist/BlogExploreSection.js +182 -215
  9. package/dist/BlogListSection.cjs +6 -6
  10. package/dist/BlogListSection.js +134 -116
  11. package/dist/BlogProductCardsSection.cjs +1 -1
  12. package/dist/BlogProductCardsSection.js +26 -24
  13. package/dist/BlogShopCardsSection.cjs +1 -1
  14. package/dist/BlogShopCardsSection.js +1 -1
  15. package/dist/BlogSingleSection.cjs +3 -3
  16. package/dist/BlogSingleSection.js +21 -19
  17. package/dist/BlogsSectionDetailed.cjs +4 -4
  18. package/dist/BlogsSectionDetailed.js +81 -76
  19. package/dist/BlogsSectionLarge.cjs +6 -6
  20. package/dist/BlogsSectionLarge.js +34 -31
  21. package/dist/BlogsSectionSimple.cjs +8 -8
  22. package/dist/BlogsSectionSimple.js +68 -63
  23. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  24. package/dist/BlogsSectionSimpleCentered.js +67 -54
  25. package/dist/BlogsSectionWithFilters.cjs +9 -9
  26. package/dist/BlogsSectionWithFilters.js +98 -84
  27. package/dist/BrandHitsSection.cjs +7 -7
  28. package/dist/BrandHitsSection.js +50 -32
  29. package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
  30. package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
  31. package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
  32. package/dist/DetailedProductsInfinitiveSection.js +23 -21
  33. package/dist/DetailedProductsSection.cjs +3 -3
  34. package/dist/DetailedProductsSection.js +38 -35
  35. package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
  36. package/dist/FieldOfInterestsMasonrySection.js +87 -83
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
  41. package/dist/GeneralWithTagsCardsSection.cjs +4 -4
  42. package/dist/GeneralWithTagsCardsSection.js +83 -46
  43. package/dist/GiftCardsSection.cjs +7 -7
  44. package/dist/GiftCardsSection.js +56 -47
  45. package/dist/MasonryGeneralCardsSection.cjs +16 -15
  46. package/dist/MasonryGeneralCardsSection.js +83 -68
  47. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  48. package/dist/OverlayGeneralCardsSection.js +58 -50
  49. package/dist/ProductsWithBannerSection.cjs +10 -10
  50. package/dist/ProductsWithBannerSection.js +79 -70
  51. package/dist/QuattroCardsSection.cjs +8 -8
  52. package/dist/QuattroCardsSection.js +62 -40
  53. package/dist/ReviewsSection.cjs +8 -8
  54. package/dist/ReviewsSection.js +92 -67
  55. package/dist/SalesCampaignsSection.cjs +18 -18
  56. package/dist/SalesCampaignsSection.js +304 -298
  57. package/dist/ShopCardsSection.cjs +3 -3
  58. package/dist/ShopCardsSection.js +25 -23
  59. package/dist/SimpleCategoriesSection.cjs +4 -4
  60. package/dist/SimpleCategoriesSection.js +25 -22
  61. package/dist/SimpleProductsSection.cjs +3 -3
  62. package/dist/SimpleProductsSection.js +53 -50
  63. package/dist/UrgentSaleProductsSection.cjs +4 -4
  64. package/dist/UrgentSaleProductsSection.js +41 -38
  65. package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
  66. package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
  67. package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
  68. package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
  69. package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
  70. package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
  71. package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
  72. package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
  73. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- import { jsx as n, jsxs as s, Fragment as Me } from "react/jsx-runtime";
2
- import { forwardRef as j, useRef as ye, useEffect as ae, Fragment as Oe, createElement as je, useState as ne, Suspense as Re, memo as Be, useMemo as We } from "react";
1
+ import { jsx as n, jsxs as s, Fragment as Oe } from "react/jsx-runtime";
2
+ import { forwardRef as j, useRef as $e, useEffect as oe, Fragment as je, createElement as Re, useState as te, Suspense as Be, memo as We, useMemo as Fe } from "react";
3
3
  import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as oe, k as te, l as Fe, z as Ge, A as Ve, B as Ae, C as he } from "./utils-Dc5zIpaz.js";
4
+ import { a as ie, k as ae, l as Ge, z as Ve, A as Ae, B as He, C as ue } from "./utils-Dc5zIpaz.js";
5
5
  import { M as U } from "./consts-BuFChS64.js";
6
- import { m as Se } from "./motion-Ckekul_K.js";
7
6
  import _e from "./Icon.js";
8
- import { D as pe } from "./ShopAvatar-4-fCYGEc.js";
9
- import He from "./Badge.js";
10
- import { P as a } from "./index-CblbdqjE.js";
11
- import { u as $e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
12
- import ue from "./IconButton.js";
13
- import { u as Ie } from "./useDetectMobile-Bkvj0VMa.js";
14
- import { I as Ze } from "./index-C0LcDEqa.js";
15
- import { a as O, c as fe, S as xe, b as w, d as be } from "./style-CXMUA6cI.js";
16
- const qe = y.a`
7
+ import { D as fe } from "./ShopAvatar-4-fCYGEc.js";
8
+ import Ze from "./Badge.js";
9
+ import { P as o } from "./index-CblbdqjE.js";
10
+ import { u as Ce } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
+ import xe from "./IconButton.js";
12
+ import { u as ke } from "./useDetectMobile-Bkvj0VMa.js";
13
+ import { I as qe } from "./index-C0LcDEqa.js";
14
+ import { m as Xe } from "./motion-Ckekul_K.js";
15
+ import { a as O, c as be, S as ve, b as w, d as we } from "./style-CXMUA6cI.js";
16
+ const Ye = y.a`
17
17
  text-decoration: none;
18
18
  color: var(--gray-950);
19
19
  cursor: pointer;
@@ -28,8 +28,8 @@ const qe = y.a`
28
28
  padding: 1rem;
29
29
  gap: 0;
30
30
  }
31
- `, Xe = y.div`
32
- border-radius: ${(r) => oe(r.theme, "edged")};
31
+ `, Je = y.div`
32
+ border-radius: ${(r) => ie(r.theme, "edged")};
33
33
  height: 13.75rem;
34
34
  width: 13.75rem;
35
35
  min-width: 13.75rem;
@@ -51,7 +51,7 @@ const qe = y.a`
51
51
  transform: scale(1.25);
52
52
  }
53
53
  }
54
- `, Ye = y.div`
54
+ `, Ke = y.div`
55
55
  flex: 1;
56
56
  display: flex;
57
57
  flex-direction: column;
@@ -159,13 +159,13 @@ const qe = y.a`
159
159
  gap: 0.25rem;
160
160
  }
161
161
  }
162
- `, ve = (r = !1, t = !1, o = !1) => `
162
+ `, ye = (r = !1, t = !1, i = !1) => `
163
163
  display: flex;
164
164
  ${t ? "flex-wrap: wrap;" : ""}
165
165
  ${t ? "" : "flex-wrap: nowrap;"}
166
166
  ${r ? "align-items: center;" : ""}
167
- ${o ? "justify-content: center;" : ""}
168
- `, Je = y(Se.a)`
167
+ ${i ? "justify-content: center;" : ""}
168
+ `, Qe = y.a`
169
169
  text-decoration: none;
170
170
  color: var(--gray-950);
171
171
  ${(r) => r.hasPermission === !0 && "cursor: pointer"};
@@ -183,14 +183,14 @@ const qe = y.a`
183
183
  text-decoration: none;
184
184
  }
185
185
 
186
- ${ve(!0)}
186
+ ${ye(!0)}
187
187
  gap: 0.5rem;
188
188
  padding: 0.5rem;
189
189
  color: var(--gray-950, #14161a);
190
190
  font-weight: 500;
191
191
  font-size: 1rem;
192
192
  line-height: 1.5rem;
193
- border-radius: ${(r) => oe(r.theme, "slight")};
193
+ border-radius: ${(r) => ie(r.theme, "slight")};
194
194
  transition: all 0.25s ease;
195
195
  & .description {
196
196
  font-size: 0.85rem;
@@ -199,7 +199,7 @@ const qe = y.a`
199
199
  font-weight: 400;
200
200
  }
201
201
  & .logo-wrapper {
202
- ${ve(!0, !1, !0)}
202
+ ${ye(!0, !1, !0)}
203
203
  flex-shrink: 0;
204
204
  border-radius: 999px;
205
205
 
@@ -242,14 +242,14 @@ const qe = y.a`
242
242
  padding: 0;
243
243
  font-size: 0.875rem;
244
244
  }
245
- `, Ke = y.div`
245
+ `, er = y.div`
246
246
  position: absolute;
247
247
  top: 0.5rem;
248
248
  ${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
249
249
  display: flex;
250
250
  gap: 0.25rem;
251
- `, Qe = y.div`
252
- border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
251
+ `, rr = y.div`
252
+ border-radius: ${(r) => ie(r.theme, r.borderRadius || "slight")};
253
253
  background-color: ${(r) => r == null ? void 0 : r.color};
254
254
  color: white;
255
255
  height: 1.5rem;
@@ -264,77 +264,79 @@ const qe = y.a`
264
264
  & i {
265
265
  font-size: 0.813rem;
266
266
  }
267
- `, er = j(({ src: r, ...t }, o) => {
268
- const i = ye();
269
- return ae(() => {
270
- var h;
267
+ `, nr = j(({ src: r, ...t }, i) => {
268
+ const a = $e();
269
+ return oe(() => {
270
+ var p;
271
271
  const d = (l) => {
272
- l.target.src = pe, l.onerror = null;
272
+ l.target.src = fe, l.onerror = null;
273
273
  };
274
- return (h = i == null ? void 0 : i.current) == null || h.addEventListener("error", d), () => {
274
+ return (p = a == null ? void 0 : a.current) == null || p.addEventListener("error", d), () => {
275
275
  var l;
276
- (l = i == null ? void 0 : i.current) == null || l.removeEventListener("error", d);
276
+ (l = a == null ? void 0 : a.current) == null || l.removeEventListener("error", d);
277
277
  };
278
- }, []), /* @__PURE__ */ n(Oe, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: i, src: r, ...t }) : /* @__PURE__ */ n("img", { src: pe, ...t }) });
279
- }), ke = (r) => {
278
+ }, []), /* @__PURE__ */ n(je, { ref: i, children: ae(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: fe, ...t }) });
279
+ }), Ie = (r) => {
280
280
  const {
281
281
  uuid: t,
282
- hasPermission: o = !0,
283
- isUser: i,
282
+ hasPermission: i = !0,
283
+ isUser: a,
284
284
  image: d,
285
- imageComponent: h,
285
+ imageComponent: p,
286
286
  name: l,
287
- notifications: $ = 0,
288
- color: c = "primary",
289
- size: p = "large",
290
- style: m,
291
- disabled: N,
292
- onClick: u = () => {
287
+ notifications: _ = 0,
288
+ color: m = "primary",
289
+ size: h = "large",
290
+ style: g,
291
+ disabled: k,
292
+ onClick: f = () => {
293
293
  },
294
294
  isActive: v,
295
- className: D,
296
- shopCategory: T,
295
+ className: I,
296
+ shopCategory: N,
297
297
  // new
298
- themeData: S
299
- } = r, f = {
300
- theme: $e(),
301
- color: c,
302
- size: p,
303
- style: m,
304
- disabled: N
298
+ themeData: S,
299
+ LinkComponent: c
300
+ } = r, x = c || "a", E = {
301
+ theme: Ce(),
302
+ color: m,
303
+ size: h,
304
+ style: g,
305
+ disabled: k
305
306
  };
306
- return /* @__PURE__ */ je(
307
- Je,
307
+ return /* @__PURE__ */ Re(
308
+ Qe,
308
309
  {
309
- onClick: (x) => {
310
- x == null || x.preventDefault(), x.stopPropagation(), o === !0 && (u == null || u());
310
+ onClick: (u) => {
311
+ u == null || u.preventDefault(), u.stopPropagation(), i === !0 && (f == null || f());
311
312
  },
312
- ...f,
313
+ ...E,
313
314
  key: l,
314
- className: `profile-item ${D}`,
315
- hasPermission: o,
315
+ className: `profile-item ${I}`,
316
+ hasPermission: i,
316
317
  isActive: v,
317
318
  themeColor: (S == null ? void 0 : S.code) || "transparent",
318
- href: `/${i ? "user" : "shop"}/${t}`
319
+ as: x,
320
+ ...c ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
319
321
  },
320
- /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Fe(h) ? h : d }),
322
+ /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Ge(p) ? p : d }),
321
323
  /* @__PURE__ */ s("div", { children: [
322
324
  /* @__PURE__ */ n("div", { className: "name", children: l }),
323
- !i && /* @__PURE__ */ n("div", { className: "description", children: T }),
324
- $ > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(He, { className: "badge", color: "danger", size: "small", children: $ > 99 ? "99+" : $ }) })
325
+ !a && /* @__PURE__ */ n("div", { className: "description", children: N }),
326
+ _ > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Ze, { className: "badge", color: "danger", size: "small", children: _ > 99 ? "99+" : _ }) })
325
327
  ] })
326
328
  );
327
329
  };
328
- ke.propTypes = {
329
- id: a.any,
330
- isUserProfile: a.bool,
331
- themeColor: a.string,
332
- image: a.any,
333
- name: a.string,
334
- notifications: a.number,
335
- style: a.object,
336
- className: a.string,
337
- color: a.oneOf([
330
+ Ie.propTypes = {
331
+ id: o.any,
332
+ isUserProfile: o.bool,
333
+ themeColor: o.string,
334
+ image: o.any,
335
+ name: o.string,
336
+ notifications: o.number,
337
+ style: o.object,
338
+ className: o.string,
339
+ color: o.oneOf([
338
340
  "primary",
339
341
  "secondary",
340
342
  "success",
@@ -343,99 +345,101 @@ ke.propTypes = {
343
345
  "information",
344
346
  "neutral"
345
347
  ]),
346
- size: a.oneOf(["large"]),
347
- onSelect: a.func,
348
- hasPermission: a.bool
348
+ size: o.oneOf(["large"]),
349
+ onSelect: o.func,
350
+ hasPermission: o.bool
349
351
  };
350
- const we = (r) => {
352
+ const Se = (r) => {
351
353
  if (r !== void 0) {
352
- const t = new Date(r), o = t.getFullYear(), i = t.getMonth() + 1;
353
- return `${String(t.getDate()).padStart(2)}. ${i}. ${o}.`;
354
+ const t = new Date(r), i = t.getFullYear(), a = t.getMonth() + 1;
355
+ return `${String(t.getDate()).padStart(2)}. ${a}. ${i}.`;
354
356
  }
355
- }, rr = j((r, t) => {
356
- var me;
357
- const o = $e(), {
358
- uuid: i,
357
+ }, tr = j((r, t) => {
358
+ var he;
359
+ const i = Ce(), {
360
+ uuid: a,
359
361
  shopUuid: d,
360
- title: h = "",
362
+ title: p = "",
361
363
  // description,
362
364
  // badges,
363
365
  coverPhoto: l,
364
- onSelect: $,
366
+ onSelect: _,
365
367
  // status,
366
- startDate: c,
367
- endDate: p,
368
- salesPackages: m,
369
- shopName: N,
370
- shopCategory: u,
368
+ startDate: m,
369
+ endDate: h,
370
+ salesPackages: g,
371
+ shopName: k,
372
+ shopCategory: f,
371
373
  shopImage: v,
372
- shopImageComponent: D,
373
- className: T,
374
+ shopImageComponent: I,
375
+ className: N,
374
376
  onSelectCard: S = () => {
375
377
  },
376
- onSelectShop: g = () => {
378
+ onSelectShop: c = () => {
377
379
  },
378
- upcoming: f = !1,
379
- upcomingCampaignText: x,
380
- campaignSingleText: A,
381
- salesCampaignTypes: I = [],
382
- startsInPrefixTextPlural: H,
383
- startsinSuffixTextPlural: Z,
384
- startsInPrefixTextSingular: q,
385
- startsinSuffixTextSingular: ie,
386
- endsInPrefixTextPlural: X,
387
- endsinSuffixTextPlural: Y,
380
+ upcoming: x = !1,
381
+ upcomingCampaignText: D,
382
+ campaignSingleText: E,
383
+ salesCampaignTypes: u = [],
384
+ startsInPrefixTextPlural: V,
385
+ startsinSuffixTextPlural: A,
386
+ startsInPrefixTextSingular: H,
387
+ startsinSuffixTextSingular: se,
388
+ endsInPrefixTextPlural: Z,
389
+ endsinSuffixTextPlural: q,
388
390
  endsInPrefixTextSingular: R,
389
- endsinSuffixTextSingular: J,
390
- endedText: se,
391
- themeData: B,
392
- numberOfListings: E,
393
- numberOfListingsTextSingular: W,
394
- numberOfListingsTextPlural: e,
395
- metadata: k,
396
- ...le
397
- } = r, F = ye(), M = Ge(c, p), K = M !== -1 && (M == null ? void 0 : M.isEnded) === !0, Q = M !== -1 && !K, ee = Ve(c), z = Ae(p), De = z !== null && z <= 2 && z > 0, ce = he(p), de = ce ? new Date(ce) : null, Te = /* @__PURE__ */ new Date(), re = de ? de.getTime() - Te.getTime() : null, G = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, ge = (b, L, C, _, P) => C === 1 ? `${b} ${C} ${_}` : `${L} ${C} ${P}`, Pe = () => {
398
- if (!p) return null;
399
- const b = he(p), L = b ? new Date(b) : null;
391
+ endsinSuffixTextSingular: X,
392
+ endedText: Y,
393
+ themeData: le,
394
+ numberOfListings: P,
395
+ numberOfListingsTextSingular: J,
396
+ numberOfListingsTextPlural: B,
397
+ metadata: e,
398
+ LinkComponent: W,
399
+ ...ce
400
+ } = r, K = W || "a", de = $e(), M = Ve(m, h), Q = M !== -1 && (M == null ? void 0 : M.isEnded) === !0, ee = M !== -1 && !Q, re = Ae(m), z = He(h), Te = z !== null && z <= 2 && z > 0, me = ue(h), ge = me ? new Date(me) : null, Pe = /* @__PURE__ */ new Date(), ne = ge ? ge.getTime() - Pe.getTime() : null, F = ne !== null && ne > 0 && ne < 24 * 60 * 60 * 1e3, pe = (b, L, C, $, T) => C === 1 ? `${b} ${C} ${$}` : `${L} ${C} ${T}`, ze = () => {
401
+ if (!h) return null;
402
+ const b = ue(h), L = b ? new Date(b) : null;
400
403
  if (!L) return null;
401
- const C = ze, _ = L.getTime() - C.getTime();
402
- if (_ <= 0) return null;
403
- const P = Math.floor(_ / (1e3 * 60 * 60)), Ue = Math.floor(_ % (1e3 * 60 * 60) / (1e3 * 60)), Ee = Math.floor(_ % (1e3 * 60) / 1e3);
404
- return { hours: P, minutes: Ue, seconds: Ee };
405
- }, [ze, Le] = ne(/* @__PURE__ */ new Date());
406
- ae(() => {
407
- if (!G) return;
404
+ const C = Le, $ = L.getTime() - C.getTime();
405
+ if ($ <= 0) return null;
406
+ const T = Math.floor($ / (1e3 * 60 * 60)), Ee = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), Me = Math.floor($ % (1e3 * 60) / 1e3);
407
+ return { hours: T, minutes: Ee, seconds: Me };
408
+ }, [Le, Ue] = te(/* @__PURE__ */ new Date());
409
+ oe(() => {
410
+ if (!F) return;
408
411
  const b = setInterval(() => {
409
- Le(/* @__PURE__ */ new Date());
412
+ Ue(/* @__PURE__ */ new Date());
410
413
  }, 1e3);
411
414
  return () => clearInterval(b);
412
- }, [G]);
413
- const V = G ? Pe() : null;
415
+ }, [F]);
416
+ const G = F ? ze() : null;
414
417
  return /* @__PURE__ */ s(
415
- qe,
418
+ Ye,
416
419
  {
417
- ref: F,
418
- theme: o,
419
- className: T,
420
- name: k == null ? void 0 : k.name,
421
- "data-accessor": k == null ? void 0 : k.accessor,
422
- onClick: (b) => S(b, F),
423
- href: `/shop/${d}/campaign/${i}`,
424
- ...le,
420
+ ref: de,
421
+ theme: i,
422
+ className: N,
423
+ name: e == null ? void 0 : e.name,
424
+ "data-accessor": e == null ? void 0 : e.accessor,
425
+ onClick: (b) => S(b, de),
426
+ as: K,
427
+ ...W ? { to: `/shop/${d}/campaign/${a}` } : { href: `/shop/${d}/campaign/${a}` },
428
+ ...ce,
425
429
  children: [
426
- /* @__PURE__ */ s(Xe, { theme: o, children: [
430
+ /* @__PURE__ */ s(Je, { theme: i, children: [
427
431
  /* @__PURE__ */ n("img", { src: l }),
428
- /* @__PURE__ */ n(Ke, { children: m == null ? void 0 : m.map((b, L) => {
429
- var C, _;
432
+ /* @__PURE__ */ n(er, { children: g == null ? void 0 : g.map((b, L) => {
433
+ var C, $;
430
434
  return /* @__PURE__ */ n(
431
- Qe,
435
+ rr,
432
436
  {
433
- color: (C = I == null ? void 0 : I.find((P) => P.value === b)) == null ? void 0 : C.color,
434
- theme: o,
437
+ color: (C = u == null ? void 0 : u.find((T) => T.value === b)) == null ? void 0 : C.color,
438
+ theme: i,
435
439
  children: /* @__PURE__ */ n(
436
440
  _e,
437
441
  {
438
- icon: (_ = I == null ? void 0 : I.find((P) => P.value === b)) == null ? void 0 : _.icon
442
+ icon: ($ = u == null ? void 0 : u.find((T) => T.value === b)) == null ? void 0 : $.icon
439
443
  }
440
444
  )
441
445
  },
@@ -443,20 +447,20 @@ const we = (r) => {
443
447
  );
444
448
  }) })
445
449
  ] }),
446
- /* @__PURE__ */ s(Ye, { theme: o, children: [
450
+ /* @__PURE__ */ s(Ke, { theme: i, children: [
447
451
  /* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
448
- /* @__PURE__ */ n("div", { className: "campaign-title", children: (me = f ? x : A) == null ? void 0 : me.toUpperCase() }),
449
- /* @__PURE__ */ n("div", { className: "campaign-title-text", children: h }),
450
- p && c && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
451
- we(c),
452
+ /* @__PURE__ */ n("div", { className: "campaign-title", children: (he = x ? D : E) == null ? void 0 : he.toUpperCase() }),
453
+ /* @__PURE__ */ n("div", { className: "campaign-title-text", children: p }),
454
+ h && m && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
455
+ Se(m),
452
456
  " - ",
453
- we(p)
457
+ Se(h)
454
458
  ] }),
455
459
  /* @__PURE__ */ s("div", { className: "timestamp-text", children: [
456
- E > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
457
- E,
460
+ P > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
461
+ P,
458
462
  " ",
459
- E === 1 ? W : e,
463
+ P === 1 ? J : B,
460
464
  " ",
461
465
  "∙",
462
466
  " "
@@ -464,52 +468,52 @@ const we = (r) => {
464
468
  /* @__PURE__ */ n(
465
469
  "span",
466
470
  {
467
- className: `duration-text ${De ? "urgent" : ""} ${Q ? "" : "starts-in"}`,
468
- children: G && V ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
471
+ className: `duration-text ${Te ? "urgent" : ""} ${ee ? "" : "starts-in"}`,
472
+ children: F && G ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
469
473
  R,
470
474
  " ",
471
- V.hours.toString().padStart(2, "0"),
475
+ G.hours.toString().padStart(2, "0"),
472
476
  ":",
473
- V.minutes.toString().padStart(2, "0"),
477
+ G.minutes.toString().padStart(2, "0"),
474
478
  ":",
475
- V.seconds.toString().padStart(2, "0")
476
- ] }) : Q && !K && z !== null && z > 0 ? ge(
479
+ G.seconds.toString().padStart(2, "0")
480
+ ] }) : ee && !Q && z !== null && z > 0 ? pe(
477
481
  R,
478
- X,
482
+ Z,
479
483
  z,
480
- J,
481
- Y
482
- ) : K ? se || "Završena" : !Q && ee !== null && ee > 0 ? ge(
483
- q,
484
+ X,
485
+ q
486
+ ) : Q ? Y || "Završena" : !ee && re !== null && re > 0 ? pe(
484
487
  H,
485
- ee,
486
- ie,
487
- Z
488
+ V,
489
+ re,
490
+ se,
491
+ A
488
492
  ) : null
489
493
  }
490
494
  )
491
495
  ] })
492
496
  ] }) }),
493
497
  /* @__PURE__ */ n(
494
- ke,
498
+ Ie,
495
499
  {
496
500
  hasPermission: !0,
497
- image: /* @__PURE__ */ n(er, { src: v }),
498
- imageComponent: D,
499
- themeData: B,
501
+ image: /* @__PURE__ */ n(nr, { src: v }),
502
+ imageComponent: I,
503
+ themeData: le,
500
504
  isActive: !0,
501
505
  isUser: !1,
502
- name: N,
503
- shopCategory: u,
506
+ name: k,
507
+ shopCategory: f,
504
508
  uuid: d,
505
- onClick: () => g(d)
509
+ onClick: () => c(d)
506
510
  }
507
511
  )
508
512
  ] })
509
513
  ]
510
514
  }
511
515
  );
512
- }), nr = y.div`
516
+ }), ar = y.div`
513
517
  margin: 0 auto;
514
518
  display: flex;
515
519
  flex-direction: column;
@@ -560,7 +564,7 @@ const we = (r) => {
560
564
  }
561
565
  }
562
566
  }
563
- `, tr = y(Se.div)`
567
+ `, or = y(Xe.div)`
564
568
  display: grid;
565
569
  grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
566
570
  gap: 1.5rem;
@@ -588,36 +592,36 @@ const we = (r) => {
588
592
  /* Safari and Chrome */
589
593
  }
590
594
  }
591
- `, Ce = j(
595
+ `, Ne = j(
592
596
  ({
593
597
  icon: r,
594
598
  title: t,
595
- numOfSlides: o = 2,
596
- showNavigation: i = !0,
599
+ numOfSlides: i = 2,
600
+ showNavigation: a = !0,
597
601
  hasNextPage: d = !1,
598
- handleFetchNextPage: h = () => {
602
+ handleFetchNextPage: p = () => {
599
603
  },
600
604
  children: l
601
- }, $) => {
602
- const [c, p] = ne(0), [m, N] = ne(1), u = Ie(), v = (l == null ? void 0 : l.length) ?? 1;
603
- ae(() => {
604
- const g = () => {
605
- N(o);
605
+ }, _) => {
606
+ const [m, h] = te(0), [g, k] = te(1), f = ke(), v = (l == null ? void 0 : l.length) ?? 1;
607
+ oe(() => {
608
+ const c = () => {
609
+ k(i);
606
610
  };
607
- return window.addEventListener("resize", g), g(), () => window.removeEventListener("resize", g);
611
+ return window.addEventListener("resize", c), c(), () => window.removeEventListener("resize", c);
608
612
  }, []);
609
- const D = u ? l : l == null ? void 0 : l.slice(c, c + m), T = (g) => {
613
+ const I = f ? l : l == null ? void 0 : l.slice(m, m + g), N = (c) => {
614
+ var D;
615
+ (D = c == null ? void 0 : c.target) == null || D.blur();
616
+ const x = m + g;
617
+ x < v && h(x), x + g >= v && d && p();
618
+ }, S = (c) => {
610
619
  var x;
611
- (x = g == null ? void 0 : g.target) == null || x.blur();
612
- const f = c + m;
613
- f < v && p(f), f + m >= v && d && h();
614
- }, S = (g) => {
615
- var f;
616
- (f = g == null ? void 0 : g.target) == null || f.blur(), c - m >= 0 && p(c - m);
620
+ (x = c == null ? void 0 : c.target) == null || x.blur(), m - g >= 0 && h(m - g);
617
621
  };
618
- return /* @__PURE__ */ s(nr, { ref: $, children: [
622
+ return /* @__PURE__ */ s(ar, { ref: _, children: [
619
623
  /* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
620
- te(r) && /* @__PURE__ */ n(
624
+ ae(r) && /* @__PURE__ */ n(
621
625
  _e,
622
626
  {
623
627
  icon: r,
@@ -626,16 +630,16 @@ const we = (r) => {
626
630
  className: "title__icon"
627
631
  }
628
632
  ),
629
- te(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
633
+ ae(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
630
634
  " ",
631
635
  t
632
636
  ] })
633
637
  ] }) }),
634
638
  /* @__PURE__ */ s(
635
- tr,
639
+ or,
636
640
  {
637
- numOfColumns: o,
638
- ...!u && {
641
+ numOfColumns: i,
642
+ ...!f && {
639
643
  animate: {
640
644
  x: 0,
641
645
  opacity: 1
@@ -646,50 +650,50 @@ const we = (r) => {
646
650
  }
647
651
  },
648
652
  children: [
649
- D,
650
- u && d && /* @__PURE__ */ n(Ze, { onIsVisible: h })
653
+ I,
654
+ f && d && /* @__PURE__ */ n(qe, { onIsVisible: p })
651
655
  ]
652
656
  },
653
- `scrollable-section__content-${c}`
657
+ `scrollable-section__content-${m}`
654
658
  ),
655
- i && v > m && !u && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
659
+ a && v > g && !f && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
656
660
  /* @__PURE__ */ n(
657
- ue,
661
+ xe,
658
662
  {
659
663
  icon: "angle-left",
660
664
  borderRadius: "curved",
661
665
  btnType: "tinted",
662
666
  color: "neutral",
663
667
  className: "navigation__arrow",
664
- disabled: c === 0,
668
+ disabled: m === 0,
665
669
  onClick: S
666
670
  }
667
671
  ),
668
672
  /* @__PURE__ */ n(
669
- ue,
673
+ xe,
670
674
  {
671
675
  icon: "angle-right",
672
676
  borderRadius: "curved",
673
677
  btnType: "tinted",
674
678
  color: "neutral",
675
679
  className: "navigation__arrow",
676
- disabled: c + m >= v,
677
- onClick: T
680
+ disabled: m + g >= v,
681
+ onClick: N
678
682
  }
679
683
  )
680
684
  ] })
681
685
  ] });
682
686
  }
683
687
  );
684
- Ce.propTypes = {
685
- icon: a.string,
686
- title: a.string,
687
- numOfSlides: a.number,
688
- numOfSlidesForMobile: a.number,
689
- handleFetchNextPage: a.func,
690
- showNavigation: a.bool
688
+ Ne.propTypes = {
689
+ icon: o.string,
690
+ title: o.string,
691
+ numOfSlides: o.number,
692
+ numOfSlidesForMobile: o.number,
693
+ handleFetchNextPage: o.func,
694
+ showNavigation: o.bool
691
695
  };
692
- const ar = y.div`
696
+ const ir = y.div`
693
697
  display: flex;
694
698
  flex: 1;
695
699
  width: 100%;
@@ -706,33 +710,33 @@ const ar = y.div`
706
710
  border-radius: 1.25rem;
707
711
  object-fit: cover;
708
712
  }
709
- `, Ne = j(
713
+ `, De = j(
710
714
  ({
711
715
  sectionName: r,
712
716
  imageUrl: t,
713
- maxHeight: o = "16.25rem",
714
- className: i = "",
717
+ maxHeight: i = "16.25rem",
718
+ className: a = "",
715
719
  handleClick: d = () => {
716
720
  }
717
- }, h) => /* @__PURE__ */ n(
718
- ar,
721
+ }, p) => /* @__PURE__ */ n(
722
+ ir,
719
723
  {
720
- ref: h,
721
- maxHeight: o,
724
+ ref: p,
725
+ maxHeight: i,
722
726
  onClick: d,
723
- className: `itemless-banner ${i}`,
727
+ className: `itemless-banner ${a}`,
724
728
  children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
725
729
  }
726
730
  )
727
731
  );
728
- Ne.propTypes = {
729
- sectionName: a.string,
730
- imageUrl: a.string,
731
- maxHeight: a.string,
732
- className: a.string,
733
- handleClick: a.func
732
+ De.propTypes = {
733
+ sectionName: o.string,
734
+ imageUrl: o.string,
735
+ maxHeight: o.string,
736
+ className: o.string,
737
+ handleClick: o.func
734
738
  };
735
- const or = y(O)`
739
+ const sr = y(O)`
736
740
  @media (max-width: ${U + "px"}) {
737
741
  flex-direction: column;
738
742
 
@@ -747,10 +751,10 @@ const or = y(O)`
747
751
  }
748
752
  }
749
753
  }
750
- `, ir = ({ keyPrefix: r }) => /* @__PURE__ */ s(or, { children: [
754
+ `, lr = ({ keyPrefix: r }) => /* @__PURE__ */ s(sr, { children: [
751
755
  /* @__PURE__ */ s(O, { children: [
752
756
  /* @__PURE__ */ n(
753
- fe,
757
+ be,
754
758
  {
755
759
  width: "13.75rem",
756
760
  height: "13.75rem",
@@ -758,20 +762,20 @@ const or = y(O)`
758
762
  },
759
763
  `${r}-1`
760
764
  ),
761
- /* @__PURE__ */ s(xe, { noGradient: !0, children: [
765
+ /* @__PURE__ */ s(ve, { noGradient: !0, children: [
762
766
  /* @__PURE__ */ n(w, { height: "1rem" }),
763
767
  /* @__PURE__ */ n(w, { height: "1.75rem" }),
764
768
  /* @__PURE__ */ n(w, { height: "1.25rem" }),
765
769
  /* @__PURE__ */ n(w, { height: "2rem" }),
766
770
  /* @__PURE__ */ s(O, { alignItems: "center", noGradient: !0, children: [
767
- /* @__PURE__ */ n(be, { width: "2.5rem", height: "2.5rem" }),
771
+ /* @__PURE__ */ n(we, { width: "2.5rem", height: "2.5rem" }),
768
772
  /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
769
773
  ] })
770
774
  ] })
771
775
  ] }),
772
776
  /* @__PURE__ */ s(O, { noGradient: !0, children: [
773
777
  /* @__PURE__ */ n(
774
- fe,
778
+ be,
775
779
  {
776
780
  width: "13.75rem",
777
781
  height: "13.75rem",
@@ -779,66 +783,67 @@ const or = y(O)`
779
783
  },
780
784
  `${r}-2`
781
785
  ),
782
- /* @__PURE__ */ s(xe, { noGradient: !0, children: [
786
+ /* @__PURE__ */ s(ve, { noGradient: !0, children: [
783
787
  /* @__PURE__ */ n(w, { height: "1rem" }),
784
788
  /* @__PURE__ */ n(w, { height: "1.75rem" }),
785
789
  /* @__PURE__ */ n(w, { height: "1.25rem" }),
786
790
  /* @__PURE__ */ n(w, { height: "2rem" }),
787
791
  /* @__PURE__ */ s(O, { alignItems: "center", noGradient: !0, children: [
788
- /* @__PURE__ */ n(be, { width: "2.5rem", height: "2.5rem" }),
792
+ /* @__PURE__ */ n(we, { width: "2.5rem", height: "2.5rem" }),
789
793
  /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
790
794
  ] })
791
795
  ] })
792
796
  ] })
793
- ] }), sr = ({
797
+ ] }), cr = ({
794
798
  keyPrefix: r,
795
799
  isLoading: t = !1,
796
- fallbackComponent: o = /* @__PURE__ */ n(Me, {}),
797
- children: i
798
- }) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(ir, { keyPrefix: r }) : i }), lr = Be(rr), $r = j(
800
+ fallbackComponent: i = /* @__PURE__ */ n(Oe, {}),
801
+ children: a
802
+ }) => /* @__PURE__ */ n(Be, { fallbackComponent: i, children: t === !0 ? /* @__PURE__ */ n(lr, { keyPrefix: r }) : a }), dr = We(tr), kr = j(
799
803
  ({
800
804
  sellerType: r = "Shop",
801
805
  items: t = [],
802
- title: o,
803
- icon: i,
806
+ title: i,
807
+ icon: a,
804
808
  isLoading: d,
805
- onSelectCard: h = () => {
809
+ onSelectCard: p = () => {
806
810
  },
807
811
  onSelectShop: l = () => {
808
812
  },
809
- getImage: $ = () => {
813
+ getImage: _ = () => {
810
814
  },
811
- campaignSingleText: c,
812
- upcomingCampaignText: p,
813
- salesCampaignTypes: m = [],
814
- startsInPrefixTextPlural: N,
815
- startsinSuffixTextPlural: u,
815
+ campaignSingleText: m,
816
+ upcomingCampaignText: h,
817
+ salesCampaignTypes: g = [],
818
+ startsInPrefixTextPlural: k,
819
+ startsinSuffixTextPlural: f,
816
820
  startsInPrefixTextSingular: v,
817
- startsinSuffixTextSingular: D,
818
- endsInPrefixTextPlural: T,
821
+ startsinSuffixTextSingular: I,
822
+ endsInPrefixTextPlural: N,
819
823
  endsinSuffixTextPlural: S,
820
- endsInPrefixTextSingular: g,
821
- endsinSuffixTextSingular: f,
822
- endedText: x,
823
- numOfSlides: A = 2,
824
- showNavigation: I = !0,
825
- numberOfListingsTextSingular: H,
826
- numberOfListingsTextPlural: Z,
827
- itemlessImageUrl: q,
828
- itemlessLink: ie,
829
- handleItemlessLink: X = () => {
824
+ endsInPrefixTextSingular: c,
825
+ endsinSuffixTextSingular: x,
826
+ endedText: D,
827
+ numOfSlides: E = 2,
828
+ showNavigation: u = !0,
829
+ numberOfListingsTextSingular: V,
830
+ numberOfListingsTextPlural: A,
831
+ itemlessImageUrl: H,
832
+ itemlessLink: se,
833
+ handleItemlessLink: Z = () => {
830
834
  },
831
- componentName: Y,
835
+ componentName: q,
832
836
  hasNextPage: R = !1,
833
- handleFetchNextPage: J = () => {
834
- }
835
- }, se) => {
836
- const B = Ie(), E = We(() => {
837
- let W = t == null ? void 0 : t.map((e, k) => /* @__PURE__ */ n(
838
- lr,
837
+ handleFetchNextPage: X = () => {
838
+ },
839
+ LinkComponent: Y
840
+ }, le) => {
841
+ const P = ke(), J = Fe(() => {
842
+ let B = t == null ? void 0 : t.map((e, W) => /* @__PURE__ */ n(
843
+ dr,
839
844
  {
840
845
  className: "campaign-item",
841
- coverPhoto: $(
846
+ coverPhoto: _(
842
847
  e == null ? void 0 : e.coverPhoto,
843
848
  (e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
844
849
  ),
@@ -854,64 +859,65 @@ const or = y(O)`
854
859
  startDate: e == null ? void 0 : e.startDate,
855
860
  title: e == null ? void 0 : e.name,
856
861
  uuid: e == null ? void 0 : e.campaignUuid,
857
- onSelectCard: (le, F) => h(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, F),
862
+ onSelectCard: (ce, K) => p(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, K),
858
863
  onSelectShop: () => l(e == null ? void 0 : e.shopUuid),
859
- campaignSingleText: c,
860
- upcomingCampaignText: p,
864
+ campaignSingleText: m,
865
+ upcomingCampaignText: h,
861
866
  upcoming: e == null ? void 0 : e.upcoming,
862
- salesCampaignTypes: m,
863
- startsInPrefixTextPlural: N,
864
- startsinSuffixTextPlural: u,
867
+ salesCampaignTypes: g,
868
+ startsInPrefixTextPlural: k,
869
+ startsinSuffixTextPlural: f,
865
870
  startsInPrefixTextSingular: v,
866
- startsinSuffixTextSingular: D,
867
- endsInPrefixTextPlural: T,
871
+ startsinSuffixTextSingular: I,
872
+ endsInPrefixTextPlural: N,
868
873
  endsinSuffixTextPlural: S,
869
- endsInPrefixTextSingular: g,
870
- endsinSuffixTextSingular: f,
871
- endedText: x,
874
+ endsInPrefixTextSingular: c,
875
+ endsinSuffixTextSingular: x,
876
+ endedText: D,
872
877
  themeData: e == null ? void 0 : e.themeData,
873
878
  numberOfListings: e == null ? void 0 : e.numberOfListings,
874
- numberOfListingsTextSingular: H,
875
- numberOfListingsTextPlural: Z,
876
- metadata: { name: Y, accessor: e == null ? void 0 : e.accessor }
879
+ numberOfListingsTextSingular: V,
880
+ numberOfListingsTextPlural: A,
881
+ metadata: { name: q, accessor: e == null ? void 0 : e.accessor },
882
+ LinkComponent: Y
877
883
  },
878
- `campaign__item__${k}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
884
+ `campaign__item__${W}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
879
885
  ));
880
- return (t == null ? void 0 : t.length) < 2 && !B ? [
881
- ...W,
886
+ return (t == null ? void 0 : t.length) < 2 && !P ? [
887
+ ...B,
882
888
  /* @__PURE__ */ n(
883
- Ne,
889
+ De,
884
890
  {
885
- imageUrl: q,
891
+ imageUrl: H,
886
892
  className: "campaign-item",
887
- handleClick: X
893
+ handleClick: Z
888
894
  },
889
895
  "itemless-campaign-section-banner"
890
896
  )
891
- ] : W;
897
+ ] : B;
892
898
  }, [t]);
893
899
  return /* @__PURE__ */ n(
894
- sr,
900
+ cr,
895
901
  {
896
902
  isLoading: d,
897
903
  keyPrefix: "sales-campaign-skeleton",
898
904
  children: /* @__PURE__ */ n(
899
- Ce,
905
+ Ne,
900
906
  {
901
- icon: i,
902
- title: o,
903
- numOfSlides: A,
904
- showNavigation: I,
907
+ icon: a,
908
+ title: i,
909
+ numOfSlides: E,
910
+ showNavigation: u,
905
911
  hasNextPage: R,
906
- handleFetchNextPage: J,
907
- children: E
912
+ handleFetchNextPage: X,
913
+ children: J
908
914
  },
909
- `sales-campaign-section__${B}`
915
+ `sales-campaign-section__${P}`
910
916
  )
911
917
  }
912
918
  );
913
919
  }
914
920
  );
915
921
  export {
916
- $r as default
922
+ kr as default
917
923
  };