@lanaco/lnc-react-ui 4.0.200 → 4.0.201

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