@lanaco/lnc-react-ui 4.0.132 → 4.0.133

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 (33) hide show
  1. package/dist/BlogCardsSponsoredSection.js +1 -1
  2. package/dist/BlogExploreSection.js +1 -1
  3. package/dist/BlogListSection.js +1 -1
  4. package/dist/BlogProductCardsSection.js +2 -2
  5. package/dist/BlogShopCardsSection.cjs +1 -1
  6. package/dist/BlogShopCardsSection.js +1 -1
  7. package/dist/BlogSingleSection.js +1 -1
  8. package/dist/BlogsSectionDetailed.js +1 -1
  9. package/dist/BlogsSectionLarge.js +1 -1
  10. package/dist/BlogsSectionSimple.js +1 -1
  11. package/dist/BlogsSectionSimpleCentered.js +1 -1
  12. package/dist/BlogsSectionWithFilters.js +1 -1
  13. package/dist/DetailedProductsSection.js +1 -1
  14. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  15. package/dist/ProductsWithBannerSection.js +1 -1
  16. package/dist/ReviewsSection.js +1 -1
  17. package/dist/SalesCampaignsSection.cjs +33 -33
  18. package/dist/SalesCampaignsSection.js +274 -275
  19. package/dist/ShopAvatar-4-fCYGEc.js +4 -0
  20. package/dist/ShopAvatar-CV3lj34D.cjs +1 -0
  21. package/dist/ShopCardsSection.cjs +1 -1
  22. package/dist/ShopCardsSection.js +1 -1
  23. package/dist/SimpleProductsSection.js +2 -2
  24. package/dist/UrgentSaleProductsSection.js +1 -1
  25. package/dist/{index-CU0KClNt.js → index-B7pgRoP5.js} +1 -1
  26. package/dist/{index-3TFXgZHA.js → index-DRP1yTKe.js} +13 -18
  27. package/dist/{index-DJ545v7b.js → index-DiPwx53C.js} +1 -1
  28. package/dist/{skeleton-fVxknFUi.js → skeleton-ChyJLfsR.js} +36 -35
  29. package/dist/skeleton-Dw2U9XhS.cjs +168 -0
  30. package/dist/{suspense-product-card-detailed-BP1opdKD.js → suspense-product-card-detailed-CFZchhUK.js} +1 -1
  31. package/dist/{suspense-product-card-simple-BT5gv-kY.js → suspense-product-card-simple-BuJtwiwA.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/skeleton-Bl1q9Yqe.cjs +0 -168
@@ -1,16 +1,17 @@
1
- import { jsx as t, jsxs as c, Fragment as Se } from "react/jsx-runtime";
2
- import { createElement as Ce, forwardRef as L, useState as U, useEffect as le, Suspense as Te, memo as Ne, useMemo as ke } from "react";
3
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as O, o as ce, k as te } from "./utils-BPdU4_1q.js";
5
- import { M } from "./consts-BuFChS64.js";
6
- import { m as de } from "./motion-Ckekul_K.js";
1
+ import { jsx as t, jsxs as g, Fragment as Ce } from "react/jsx-runtime";
2
+ import { forwardRef as M, useRef as Te, useEffect as J, Fragment as ke, createElement as Ne, useState as U, Suspense as De, memo as Ie, useMemo as Pe } from "react";
3
+ import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { a as O, k as q, o as de } from "./utils-BPdU4_1q.js";
5
+ import { M as z } from "./consts-BuFChS64.js";
6
+ import { m as ge } from "./motion-Ckekul_K.js";
7
7
  import { P as a } from "./index-CblbdqjE.js";
8
- import ge from "./Icon.js";
9
- import De from "./Badge.js";
10
- import { u as q } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
- import ne from "./IconButton.js";
12
- import { u as me } from "./useDetectMobile-Bkvj0VMa.js";
13
- const Ie = m.div`
8
+ import me from "./Icon.js";
9
+ import { D as ae } from "./ShopAvatar-4-fCYGEc.js";
10
+ import Me from "./Badge.js";
11
+ import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
12
+ import oe from "./IconButton.js";
13
+ import { u as he } from "./useDetectMobile-Bkvj0VMa.js";
14
+ const ze = f.div`
14
15
  cursor: pointer;
15
16
  display: flex;
16
17
  gap: 1rem;
@@ -18,14 +19,14 @@ const Ie = m.div`
18
19
  border-radius: 20px;
19
20
  border: 1px solid var(--gray-95008, #14161a14);
20
21
 
21
- @media (max-width: ${M + "px"}) {
22
+ @media (max-width: ${z + "px"}) {
22
23
  flex-direction: column;
23
24
  padding: 0;
24
25
  gap: 0;
25
26
  border: none;
26
27
  border-radius: 0;
27
28
  }
28
- `, Pe = m.div`
29
+ `, Le = f.div`
29
30
  border-radius: ${(e) => O(e.theme, "edged")};
30
31
  height: 13.75rem;
31
32
  width: 13.75rem;
@@ -49,12 +50,12 @@ const Ie = m.div`
49
50
  }
50
51
  }
51
52
 
52
- @media (max-width: ${M + "px"}) {
53
+ @media (max-width: ${z + "px"}) {
53
54
  width: 100%;
54
55
  max-width: 100dvh;
55
56
  height: 23.438rem;
56
57
  }
57
- `, Me = m.div`
58
+ `, Ue = f.div`
58
59
  flex: 1;
59
60
  display: flex;
60
61
  flex-direction: column;
@@ -126,7 +127,7 @@ const Ie = m.div`
126
127
  background-color: transparent;
127
128
  }
128
129
 
129
- @media (max-width: ${M + "px"}) {
130
+ @media (max-width: ${z + "px"}) {
130
131
  padding: 1.25rem;
131
132
 
132
133
  & .campaign-title {
@@ -140,13 +141,13 @@ const Ie = m.div`
140
141
  gap: 0.25rem;
141
142
  }
142
143
  }
143
- `, ae = (e = !1, n = !1, o = !1) => `
144
+ `, ie = (e = !1, n = !1, o = !1) => `
144
145
  display: flex;
145
146
  ${n ? "flex-wrap: wrap;" : ""}
146
147
  ${n ? "" : "flex-wrap: nowrap;"}
147
148
  ${e ? "align-items: center;" : ""}
148
149
  ${o ? "justify-content: center;" : ""}
149
- `, ze = m(de.div)`
150
+ `, Oe = f(ge.div)`
150
151
  text-decoration: none;
151
152
  ${(e) => e.hasPermission === !0 && "cursor: pointer"};
152
153
 
@@ -163,7 +164,7 @@ const Ie = m.div`
163
164
  text-decoration: none;
164
165
  }
165
166
 
166
- ${ae(!0)}
167
+ ${ie(!0)}
167
168
  gap: 0.5rem;
168
169
  padding: 0.5rem;
169
170
  color: var(--gray-950);
@@ -179,7 +180,7 @@ const Ie = m.div`
179
180
  font-weight: 400;
180
181
  }
181
182
  & .logo-wrapper {
182
- ${ae(!0, !1, !0)}
183
+ ${ie(!0, !1, !0)}
183
184
  flex-shrink: 0;
184
185
  border-radius: 999px;
185
186
 
@@ -217,13 +218,13 @@ const Ie = m.div`
217
218
  cursor: pointer;
218
219
  background-color: var(--gray-95080, #14161acc);
219
220
  }
220
- `, Ue = m.div`
221
+ `, Ee = f.div`
221
222
  position: absolute;
222
223
  top: 0.5rem;
223
224
  ${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
224
225
  display: flex;
225
226
  gap: 0.25rem;
226
- `, Le = m.div`
227
+ `, je = f.div`
227
228
  border-radius: ${(e) => O(e.theme, e.borderRadius || "slight")};
228
229
  background-color: ${(e) => e == null ? void 0 : e.color};
229
230
  color: white;
@@ -239,54 +240,66 @@ const Ie = m.div`
239
240
  & i {
240
241
  font-size: 0.813rem;
241
242
  }
242
- `, he = (e) => {
243
+ `, Re = M(({ src: e, ...n }, o) => {
244
+ const i = Te();
245
+ return J(() => {
246
+ var d;
247
+ const m = (c) => {
248
+ c.target.src = ae, c.onerror = null;
249
+ };
250
+ return (d = i == null ? void 0 : i.current) == null || d.addEventListener("error", m), () => {
251
+ var c;
252
+ (c = i == null ? void 0 : i.current) == null || c.removeEventListener("error", m);
253
+ };
254
+ }, []), /* @__PURE__ */ t(ke, { ref: o, children: q(e) ? /* @__PURE__ */ t("img", { ref: i, src: e, ...n }) : /* @__PURE__ */ t("img", { src: ae, ...n }) });
255
+ }), ue = (e) => {
243
256
  const {
244
257
  uuid: n,
245
258
  hasPermission: o = !0,
246
- isUser: l,
247
- image: f,
248
- name: u,
249
- notifications: p = 0,
250
- color: s = "primary",
251
- size: d = "large",
252
- style: g,
253
- disabled: T,
259
+ isUser: i,
260
+ image: m,
261
+ name: d,
262
+ notifications: c = 0,
263
+ color: l = "primary",
264
+ size: h = "large",
265
+ style: u,
266
+ disabled: C,
254
267
  onClick: b = () => {
255
268
  },
256
- isActive: $,
257
- className: _,
258
- shopCategory: S,
269
+ isActive: T,
270
+ className: $,
271
+ shopCategory: _,
259
272
  // new
260
273
  themeData: x
261
274
  } = e, y = {
262
- theme: q(),
263
- color: s,
264
- size: d,
265
- style: g,
266
- disabled: T
275
+ theme: K(),
276
+ color: l,
277
+ size: h,
278
+ style: u,
279
+ disabled: C
267
280
  };
268
- return /* @__PURE__ */ Ce(
269
- ze,
281
+ return /* @__PURE__ */ Ne(
282
+ Oe,
270
283
  {
271
- onClick: (k) => {
272
- k.stopPropagation(), o === !0 && (b == null || b());
284
+ onClick: (N) => {
285
+ N.stopPropagation(), o === !0 && (b == null || b());
273
286
  },
274
287
  ...y,
275
- key: u,
276
- className: `profile-item ${_}`,
288
+ key: d,
289
+ className: `profile-item ${$}`,
277
290
  hasPermission: o,
278
- isActive: $,
291
+ isActive: T,
279
292
  themeColor: (x == null ? void 0 : x.code) || "transparent"
280
293
  },
281
- /* @__PURE__ */ t("div", { className: "logo-wrapper", children: f }),
282
- /* @__PURE__ */ c("div", { children: [
283
- /* @__PURE__ */ t("div", { className: "name", children: u }),
284
- !l && /* @__PURE__ */ t("div", { className: "description", children: S }),
285
- p > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t(De, { className: "badge", color: "danger", size: "small", children: p > 99 ? "99+" : p }) })
294
+ /* @__PURE__ */ t("div", { className: "logo-wrapper", children: m }),
295
+ /* @__PURE__ */ g("div", { children: [
296
+ /* @__PURE__ */ t("div", { className: "name", children: d }),
297
+ !i && /* @__PURE__ */ t("div", { className: "description", children: _ }),
298
+ c > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t(Me, { className: "badge", color: "danger", size: "small", children: c > 99 ? "99+" : c }) })
286
299
  ] })
287
300
  );
288
301
  };
289
- he.propTypes = {
302
+ ue.propTypes = {
290
303
  id: a.any,
291
304
  isUserProfile: a.bool,
292
305
  themeColor: a.string,
@@ -308,97 +321,97 @@ he.propTypes = {
308
321
  onSelect: a.func,
309
322
  hasPermission: a.bool
310
323
  };
311
- const ie = (e, n) => {
324
+ const se = (e, n) => {
312
325
  if (!e || !n) return null;
313
- const o = e.getTime() - n.getTime(), l = 24 * 60 * 60 * 1e3;
314
- return o >= 0 ? Math.ceil(o / l) : Math.floor(o / l);
315
- }, oe = (e) => {
326
+ const o = e.getTime() - n.getTime(), i = 24 * 60 * 60 * 1e3;
327
+ return o >= 0 ? Math.ceil(o / i) : Math.floor(o / i);
328
+ }, le = (e) => {
316
329
  if (e !== void 0) {
317
- const n = new Date(e), o = n.getFullYear(), l = n.getMonth() + 1;
318
- return `${String(n.getDate()).padStart(2)}. ${l}. ${o}.`;
330
+ const n = new Date(e), o = n.getFullYear(), i = n.getMonth() + 1;
331
+ return `${String(n.getDate()).padStart(2)}. ${i}. ${o}.`;
319
332
  }
320
- }, ue = L((e, n) => {
321
- var re;
322
- const o = q(), {
333
+ }, fe = M((e, n) => {
334
+ var ne;
335
+ const o = K(), {
323
336
  // uuid,
324
- shopUuid: l,
325
- title: f = "",
337
+ shopUuid: i,
338
+ title: m = "",
326
339
  // description,
327
340
  // badges,
328
- coverPhoto: u,
329
- onSelect: p,
341
+ coverPhoto: d,
342
+ onSelect: c,
330
343
  // status,
331
- startDate: s,
332
- endDate: d,
333
- salesPackages: g,
334
- shopName: T,
344
+ startDate: l,
345
+ endDate: h,
346
+ salesPackages: u,
347
+ shopName: C,
335
348
  shopCategory: b,
336
- shopImage: $,
337
- className: _,
338
- onSelectCard: S = () => {
349
+ shopImage: T,
350
+ className: $,
351
+ onSelectCard: _ = () => {
339
352
  },
340
353
  onSelectShop: x = () => {
341
354
  },
342
- upcoming: N = !1,
355
+ upcoming: k = !1,
343
356
  upcomingCampaignText: y,
344
- campaignSingleText: k,
357
+ campaignSingleText: N,
345
358
  salesCampaignTypes: w = [],
346
359
  startsInPrefixTextPlural: I,
347
- startsinSuffixTextPlural: R,
360
+ startsinSuffixTextPlural: E,
348
361
  startsInPrefixTextSingular: j,
349
- startsinSuffixTextSingular: E,
350
- endsInPrefixTextPlural: i,
351
- endsinSuffixTextPlural: h,
362
+ startsinSuffixTextSingular: R,
363
+ endsInPrefixTextPlural: s,
364
+ endsinSuffixTextPlural: p,
352
365
  endsInPrefixTextSingular: B,
353
- endsinSuffixTextSingular: J,
354
- themeData: W,
355
- numberOfListings: z,
356
- numberOfListingsTextSingular: F,
366
+ endsinSuffixTextSingular: Q,
367
+ themeData: F,
368
+ numberOfListings: L,
369
+ numberOfListingsTextSingular: W,
357
370
  numberOfListingsTextPlural: r,
358
371
  ...Y
359
- } = e, K = s ? new Date(s) <= /* @__PURE__ */ new Date() : !1, xe = ie(
360
- s ? new Date(s) : null,
372
+ } = e, ee = l ? new Date(l) <= /* @__PURE__ */ new Date() : !1, we = se(
373
+ l ? new Date(l) : null,
361
374
  /* @__PURE__ */ new Date()
362
- ), A = ie(
363
- d ? new Date(d) : null,
375
+ ), A = se(
376
+ h ? new Date(h) : null,
364
377
  /* @__PURE__ */ new Date()
365
- ), we = A !== null && A <= 2 && A > 0, Q = d ? new Date(d).getTime() : null, ve = Date.now(), Z = Q !== null ? Q - ve : null, V = Z !== null && Z > 0 && Z < 24 * 60 * 60 * 1e3, ee = (C, H, v, P, D) => v === 1 ? `${C} ${v} ${P}` : `${H} ${v} ${D}`, be = () => {
366
- if (!d) return null;
367
- const C = ye, v = new Date(d).getTime() - C.getTime();
378
+ ), ve = A !== null && A <= 2 && A > 0, re = h ? new Date(h).getTime() : null, be = Date.now(), Z = re !== null ? re - be : null, V = Z !== null && Z > 0 && Z < 24 * 60 * 60 * 1e3, te = (S, H, v, P, D) => v === 1 ? `${S} ${v} ${P}` : `${H} ${v} ${D}`, ye = () => {
379
+ if (!h) return null;
380
+ const S = $e, v = new Date(h).getTime() - S.getTime();
368
381
  if (v <= 0) return null;
369
- const P = Math.floor(v / (1e3 * 60 * 60)), D = Math.floor(v % (1e3 * 60 * 60) / (1e3 * 60)), _e = Math.floor(v % (1e3 * 60) / 1e3);
370
- return { hours: P, minutes: D, seconds: _e };
371
- }, [ye, $e] = U(/* @__PURE__ */ new Date());
372
- le(() => {
382
+ const P = Math.floor(v / (1e3 * 60 * 60)), D = Math.floor(v % (1e3 * 60 * 60) / (1e3 * 60)), Se = Math.floor(v % (1e3 * 60) / 1e3);
383
+ return { hours: P, minutes: D, seconds: Se };
384
+ }, [$e, _e] = U(/* @__PURE__ */ new Date());
385
+ J(() => {
373
386
  if (!V) return;
374
- const C = setInterval(() => {
375
- $e(/* @__PURE__ */ new Date());
387
+ const S = setInterval(() => {
388
+ _e(/* @__PURE__ */ new Date());
376
389
  }, 1e3);
377
- return () => clearInterval(C);
390
+ return () => clearInterval(S);
378
391
  }, [V]);
379
- const X = V ? be() : null;
380
- return /* @__PURE__ */ c(
381
- Ie,
392
+ const X = V ? ye() : null;
393
+ return /* @__PURE__ */ g(
394
+ ze,
382
395
  {
383
396
  ref: n,
384
397
  theme: o,
385
- className: _,
386
- onClick: S,
398
+ className: $,
399
+ onClick: _,
387
400
  ...Y,
388
401
  children: [
389
- /* @__PURE__ */ c(Pe, { theme: o, onClick: () => p == null ? void 0 : p(), children: [
390
- /* @__PURE__ */ t("img", { src: u }),
391
- /* @__PURE__ */ t(Ue, { children: g == null ? void 0 : g.map((C, H) => {
402
+ /* @__PURE__ */ g(Le, { theme: o, onClick: () => c == null ? void 0 : c(), children: [
403
+ /* @__PURE__ */ t("img", { src: d }),
404
+ /* @__PURE__ */ t(Ee, { children: u == null ? void 0 : u.map((S, H) => {
392
405
  var v, P;
393
406
  return /* @__PURE__ */ t(
394
- Le,
407
+ je,
395
408
  {
396
- color: (v = w == null ? void 0 : w.find((D) => D.value === C)) == null ? void 0 : v.color,
409
+ color: (v = w == null ? void 0 : w.find((D) => D.value === S)) == null ? void 0 : v.color,
397
410
  theme: o,
398
411
  children: /* @__PURE__ */ t(
399
- ge,
412
+ me,
400
413
  {
401
- icon: (P = w == null ? void 0 : w.find((D) => D.value === C)) == null ? void 0 : P.icon
414
+ icon: (P = w == null ? void 0 : w.find((D) => D.value === S)) == null ? void 0 : P.icon
402
415
  }
403
416
  )
404
417
  },
@@ -406,20 +419,20 @@ const ie = (e, n) => {
406
419
  );
407
420
  }) })
408
421
  ] }),
409
- /* @__PURE__ */ c(Me, { theme: o, children: [
410
- /* @__PURE__ */ t("div", { className: "text-block-wrapper", children: /* @__PURE__ */ c("div", { className: "title-block-wrapper", children: [
411
- /* @__PURE__ */ t("div", { className: "campaign-title", children: (re = N ? y : k) == null ? void 0 : re.toUpperCase() }),
412
- /* @__PURE__ */ t("div", { className: "campaign-title-text", children: f }),
413
- d && s && /* @__PURE__ */ c("div", { children: [
414
- oe(s),
422
+ /* @__PURE__ */ g(Ue, { theme: o, children: [
423
+ /* @__PURE__ */ t("div", { className: "text-block-wrapper", children: /* @__PURE__ */ g("div", { className: "title-block-wrapper", children: [
424
+ /* @__PURE__ */ t("div", { className: "campaign-title", children: (ne = k ? y : N) == null ? void 0 : ne.toUpperCase() }),
425
+ /* @__PURE__ */ t("div", { className: "campaign-title-text", children: m }),
426
+ h && l && /* @__PURE__ */ g("div", { children: [
427
+ le(l),
415
428
  " - ",
416
- oe(d)
429
+ le(h)
417
430
  ] }),
418
- /* @__PURE__ */ c("div", { className: "timestamp-text", children: [
419
- z > 0 && /* @__PURE__ */ c("span", { className: "listings-text", children: [
420
- z,
431
+ /* @__PURE__ */ g("div", { className: "timestamp-text", children: [
432
+ L > 0 && /* @__PURE__ */ g("span", { className: "listings-text", children: [
433
+ L,
421
434
  " ",
422
- z === 1 ? F : r,
435
+ L === 1 ? W : r,
423
436
  " ",
424
437
  "∙",
425
438
  " "
@@ -427,8 +440,8 @@ const ie = (e, n) => {
427
440
  /* @__PURE__ */ t(
428
441
  "span",
429
442
  {
430
- className: `duration-text ${we ? "urgent" : ""} ${K ? "" : "starts-in"}`,
431
- children: V && X ? /* @__PURE__ */ c("div", { className: "countdown-timer", children: [
443
+ className: `duration-text ${ve ? "urgent" : ""} ${ee ? "" : "starts-in"}`,
444
+ children: V && X ? /* @__PURE__ */ g("div", { className: "countdown-timer", children: [
432
445
  B,
433
446
  " ",
434
447
  X.hours.toString().padStart(2, "0"),
@@ -436,48 +449,34 @@ const ie = (e, n) => {
436
449
  X.minutes.toString().padStart(2, "0"),
437
450
  ":",
438
451
  X.seconds.toString().padStart(2, "0")
439
- ] }) : K ? ee(
452
+ ] }) : ee ? te(
440
453
  B,
441
- i,
454
+ s,
442
455
  A,
443
- J,
444
- h
445
- ) : ee(
456
+ Q,
457
+ p
458
+ ) : te(
446
459
  j,
447
460
  I,
448
- xe,
449
- E,
450
- R
461
+ we,
462
+ R,
463
+ E
451
464
  )
452
465
  }
453
466
  )
454
467
  ] })
455
468
  ] }) }),
456
469
  /* @__PURE__ */ t(
457
- he,
470
+ ue,
458
471
  {
459
472
  hasPermission: !0,
460
- image: (
461
- // <ShopFallbackImage
462
- // image={shopImage}
463
- // uuid={shopUuid}
464
- // size={ImageSize.SMALL}
465
- // className={`${shopImage ? "" : "no-image"}`}
466
- // />
467
- /* @__PURE__ */ t(
468
- "img",
469
- {
470
- src: $,
471
- className: `${$ ? "" : "no-image"}`
472
- }
473
- )
474
- ),
475
- themeData: W,
473
+ image: /* @__PURE__ */ t(Re, { src: T }),
474
+ themeData: F,
476
475
  isActive: !0,
477
476
  isUser: !1,
478
- name: T,
477
+ name: C,
479
478
  shopCategory: b,
480
- onClick: () => x(l)
479
+ onClick: () => x(i)
481
480
  }
482
481
  )
483
482
  ] })
@@ -485,13 +484,13 @@ const ie = (e, n) => {
485
484
  }
486
485
  );
487
486
  });
488
- ue.propTypes = {
487
+ fe.propTypes = {
489
488
  title: a.oneOfType([a.string, a.element]),
490
489
  numberOfListings: a.number,
491
490
  dropdown: a.any,
492
491
  color: a.string
493
492
  };
494
- m.div`
493
+ f.div`
495
494
  display: flex;
496
495
  flex-direction: column;
497
496
  gap: 1.5rem;
@@ -522,7 +521,7 @@ m.div`
522
521
  }
523
522
  }
524
523
 
525
- @media (max-width: ${M + "px"}) {
524
+ @media (max-width: ${z + "px"}) {
526
525
  & .campaign-item {
527
526
  min-width: 100%;
528
527
  width: 100%;
@@ -530,18 +529,18 @@ m.div`
530
529
  }
531
530
  }
532
531
  `;
533
- const G = m.div`
532
+ const G = f.div`
534
533
  width: ${(e) => e.width || "100%"};
535
534
  height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
536
535
  background-color: var(--gray-200, #dddfe4);
537
536
 
538
- ${ce("-90deg")}
539
- `, Oe = m.div`
537
+ ${de("-90deg")}
538
+ `, Be = f.div`
540
539
  display: flex;
541
540
  flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
542
541
  gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
543
542
  width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
544
- `, se = m.div`
543
+ `, ce = f.div`
545
544
  border-radius: ${(e) => O(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
546
545
  background: var(--gray-200, #dddfe4);
547
546
  position: relative;
@@ -551,8 +550,8 @@ const G = m.div`
551
550
  width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
552
551
  flex-shrink: 0;
553
552
 
554
- ${ce()}
555
- `, Re = m.div`
553
+ ${de()}
554
+ `, Fe = f.div`
556
555
  background: var(--white, #fff);
557
556
  border-radius: ${(e) => O(e.theme, "edged")};
558
557
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
@@ -581,21 +580,21 @@ const G = m.div`
581
580
  gap: 0.5rem;
582
581
  }
583
582
 
584
- @media (max-width: ${M + "px"}) {
583
+ @media (max-width: ${z + "px"}) {
585
584
  flex-direction: column;
586
585
 
587
586
  & .campaign__user {
588
587
  margin-top: 1rem;
589
588
  }
590
589
  }
591
- `, je = m.div`
590
+ `, We = f.div`
592
591
  display: flex;
593
592
  gap: 1.5rem;
594
- `, Ee = L(({}, e) => {
595
- const n = q();
596
- return /* @__PURE__ */ c(Re, { ref: e, theme: n, children: [
593
+ `, Ae = M(({}, e) => {
594
+ const n = K();
595
+ return /* @__PURE__ */ g(Fe, { ref: e, theme: n, children: [
597
596
  /* @__PURE__ */ t("div", { className: "campaign__left-section", children: /* @__PURE__ */ t(
598
- se,
597
+ ce,
599
598
  {
600
599
  theme: n,
601
600
  width: "15rem",
@@ -603,15 +602,15 @@ const G = m.div`
603
602
  borderRadius: "edged"
604
603
  }
605
604
  ) }),
606
- /* @__PURE__ */ c("div", { className: "campaign__right-section", children: [
607
- /* @__PURE__ */ c(Oe, { theme: n, children: [
605
+ /* @__PURE__ */ g("div", { className: "campaign__right-section", children: [
606
+ /* @__PURE__ */ g(Be, { theme: n, children: [
608
607
  /* @__PURE__ */ t(G, { heightCoeff: 0.75, theme: n, width: "35%" }),
609
608
  /* @__PURE__ */ t(G, { heightCoeff: 1.25, theme: n }),
610
609
  /* @__PURE__ */ t(G, { heightCoeff: 3, theme: n })
611
610
  ] }),
612
- /* @__PURE__ */ c("div", { className: "campaign__user", children: [
611
+ /* @__PURE__ */ g("div", { className: "campaign__user", children: [
613
612
  /* @__PURE__ */ t(
614
- se,
613
+ ce,
615
614
  {
616
615
  theme: n,
617
616
  width: "2.5rem",
@@ -623,17 +622,17 @@ const G = m.div`
623
622
  ] })
624
623
  ] })
625
624
  ] });
626
- }), Be = ({ itemsCount: e = 5, keyPrefix: n }) => /* @__PURE__ */ t(je, { children: Array.from({ length: e }, (o, l) => /* @__PURE__ */ t(
627
- Ee,
625
+ }), Ve = ({ itemsCount: e = 5, keyPrefix: n }) => /* @__PURE__ */ t(We, { children: Array.from({ length: e }, (o, i) => /* @__PURE__ */ t(
626
+ Ae,
628
627
  {},
629
- `${n}-skeleton-campaign-card-${l}`
630
- )) }), We = ({
628
+ `${n}-skeleton-campaign-card-${i}`
629
+ )) }), Xe = ({
631
630
  children: e,
632
- fallbackComponent: n = /* @__PURE__ */ t(Se, {}),
631
+ fallbackComponent: n = /* @__PURE__ */ t(Ce, {}),
633
632
  isLoading: o = !1,
634
- itemsCount: l = 5,
635
- keyPrefix: f
636
- }) => /* @__PURE__ */ t(Te, { fallback: n, children: o === !0 ? /* @__PURE__ */ t(Be, { itemsCount: l, keyPrefix: f }) : e }), Fe = m.div`
633
+ itemsCount: i = 5,
634
+ keyPrefix: m
635
+ }) => /* @__PURE__ */ t(De, { fallback: n, children: o === !0 ? /* @__PURE__ */ t(Ve, { itemsCount: i, keyPrefix: m }) : e }), He = f.div`
637
636
  margin: 0 auto;
638
637
  display: flex;
639
638
  flex-direction: column;
@@ -674,57 +673,57 @@ const G = m.div`
674
673
  top: 0;
675
674
  right: 0;
676
675
  }
677
- `, Ae = m(de.div)`
676
+ `, Ge = f(ge.div)`
678
677
  display: grid;
679
678
  grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumns}, 1fr);
680
679
  gap: 1.5rem;
681
680
  width: 100%;
682
681
 
683
- @media (max-width: ${M + "px"}) {
682
+ @media (max-width: ${z + "px"}) {
684
683
  grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumnsForMobile}, 1fr);
685
684
  }
686
- `, fe = L(
685
+ `, pe = M(
687
686
  ({
688
687
  icon: e,
689
688
  title: n,
690
689
  numOfSlides: o = 2,
691
- numOfSlidesForMobile: l = 1,
692
- showNavigation: f = !0,
693
- children: u
694
- }, p) => {
695
- const [s, d] = U(0), [g, T] = U(1), [b, $] = U(null), [_, S] = U(null), x = me(), N = 50, y = (u == null ? void 0 : u.length) ?? 1;
696
- le(() => {
697
- const i = () => {
698
- T(x ? l : o);
690
+ numOfSlidesForMobile: i = 1,
691
+ showNavigation: m = !0,
692
+ children: d
693
+ }, c) => {
694
+ const [l, h] = U(0), [u, C] = U(1), [b, T] = U(null), [$, _] = U(null), x = he(), k = 50, y = (d == null ? void 0 : d.length) ?? 1;
695
+ J(() => {
696
+ const s = () => {
697
+ C(x ? i : o);
699
698
  };
700
- return window.addEventListener("resize", i), i(), () => window.removeEventListener("resize", i);
699
+ return window.addEventListener("resize", s), s(), () => window.removeEventListener("resize", s);
701
700
  }, []);
702
- const k = u == null ? void 0 : u.slice(s, s + g), w = (i) => {
703
- var h;
704
- (h = i == null ? void 0 : i.target) == null || h.blur(), s + g < y && d(s + g);
705
- }, I = (i) => {
706
- var h;
707
- (h = i == null ? void 0 : i.target) == null || h.blur(), s - g >= 0 && d(s - g);
701
+ const N = d == null ? void 0 : d.slice(l, l + u), w = (s) => {
702
+ var p;
703
+ (p = s == null ? void 0 : s.target) == null || p.blur(), l + u < y && h(l + u);
704
+ }, I = (s) => {
705
+ var p;
706
+ (p = s == null ? void 0 : s.target) == null || p.blur(), l - u >= 0 && h(l - u);
708
707
  };
709
- return /* @__PURE__ */ c(
710
- Fe,
708
+ return /* @__PURE__ */ g(
709
+ He,
711
710
  {
712
- ref: p,
713
- ...x ? { onTouchStart: (i) => {
714
- var h;
715
- S(null), $((h = i == null ? void 0 : i.targetTouches["0"]) == null ? void 0 : h.clientX);
716
- }, onTouchMove: (i) => {
717
- var h;
718
- S((h = i == null ? void 0 : i.targetTouches["0"]) == null ? void 0 : h.clientX);
711
+ ref: c,
712
+ ...x ? { onTouchStart: (s) => {
713
+ var p;
714
+ _(null), T((p = s == null ? void 0 : s.targetTouches["0"]) == null ? void 0 : p.clientX);
715
+ }, onTouchMove: (s) => {
716
+ var p;
717
+ _((p = s == null ? void 0 : s.targetTouches["0"]) == null ? void 0 : p.clientX);
719
718
  }, onTouchEnd: () => {
720
- if (!b || !_) return;
721
- const i = b - _;
722
- i > N && w(), i < -N && I();
719
+ if (!b || !$) return;
720
+ const s = b - $;
721
+ s > k && w(), s < -k && I();
723
722
  } } : {},
724
723
  children: [
725
- /* @__PURE__ */ t("div", { className: "scrollable-section__header", children: /* @__PURE__ */ c("div", { className: "scrollable-section__title", children: [
726
- te(e) && /* @__PURE__ */ t(
727
- ge,
724
+ /* @__PURE__ */ t("div", { className: "scrollable-section__header", children: /* @__PURE__ */ g("div", { className: "scrollable-section__title", children: [
725
+ q(e) && /* @__PURE__ */ t(
726
+ me,
728
727
  {
729
728
  icon: e,
730
729
  color: "primary",
@@ -732,13 +731,13 @@ const G = m.div`
732
731
  className: "title__icon"
733
732
  }
734
733
  ),
735
- te(n) && /* @__PURE__ */ t("div", { className: "title__text", children: n })
734
+ q(n) && /* @__PURE__ */ t("div", { className: "title__text", children: n })
736
735
  ] }) }),
737
736
  /* @__PURE__ */ t(
738
- Ae,
737
+ Ge,
739
738
  {
740
739
  numOfColumns: o,
741
- numOfColumnsForMobile: l,
740
+ numOfColumnsForMobile: i,
742
741
  animate: {
743
742
  x: 0,
744
743
  opacity: 1
@@ -747,32 +746,32 @@ const G = m.div`
747
746
  x: 10,
748
747
  opacity: 0
749
748
  },
750
- children: k
749
+ children: N
751
750
  },
752
- `scrollable-section__content-${s}`
751
+ `scrollable-section__content-${l}`
753
752
  ),
754
- f && y > g && !x && /* @__PURE__ */ c("div", { className: "scrollable-section__navigation", children: [
753
+ m && y > u && !x && /* @__PURE__ */ g("div", { className: "scrollable-section__navigation", children: [
755
754
  /* @__PURE__ */ t(
756
- ne,
755
+ oe,
757
756
  {
758
757
  icon: "angle-left",
759
758
  borderRadius: "curved",
760
759
  btnType: "tinted",
761
760
  color: "neutral",
762
761
  className: "navigation__arrow",
763
- disabled: s === 0,
762
+ disabled: l === 0,
764
763
  onClick: I
765
764
  }
766
765
  ),
767
766
  /* @__PURE__ */ t(
768
- ne,
767
+ oe,
769
768
  {
770
769
  icon: "angle-right",
771
770
  borderRadius: "curved",
772
771
  btnType: "tinted",
773
772
  color: "neutral",
774
773
  className: "navigation__arrow",
775
- disabled: s + g >= y,
774
+ disabled: l + u >= y,
776
775
  onClick: w
777
776
  }
778
777
  )
@@ -782,14 +781,14 @@ const G = m.div`
782
781
  );
783
782
  }
784
783
  );
785
- fe.propTypes = {
784
+ pe.propTypes = {
786
785
  icon: a.string,
787
786
  title: a.string,
788
787
  numOfSlides: a.number,
789
788
  numOfSlidesForMobile: a.number,
790
789
  showNavigation: a.bool
791
790
  };
792
- const Ve = m.div`
791
+ const Ye = f.div`
793
792
  display: flex;
794
793
  flex: 1;
795
794
  width: 100%;
@@ -806,71 +805,71 @@ const Ve = m.div`
806
805
  border-radius: 1.25rem;
807
806
  object-fit: cover;
808
807
  }
809
- `, pe = L(
808
+ `, xe = M(
810
809
  ({
811
810
  sectionName: e,
812
811
  imageUrl: n,
813
812
  maxHeight: o = "16.25rem",
814
- className: l = "",
815
- handleClick: f = () => {
813
+ className: i = "",
814
+ handleClick: m = () => {
816
815
  }
817
816
  }) => /* @__PURE__ */ t(
818
- Ve,
817
+ Ye,
819
818
  {
820
819
  maxHeight: o,
821
- onClick: f,
822
- className: `itemless-banner ${l}`,
820
+ onClick: m,
821
+ className: `itemless-banner ${i}`,
823
822
  children: /* @__PURE__ */ t("img", { src: n, alt: `itemless-banner__${e}` })
824
823
  }
825
824
  )
826
825
  );
827
- pe.propTypes = {
826
+ xe.propTypes = {
828
827
  sectionName: a.string,
829
828
  imageUrl: a.string,
830
829
  maxHeight: a.string,
831
830
  className: a.string,
832
831
  handleClick: a.func
833
832
  };
834
- const Xe = Ne(ue), ar = L(
833
+ const Ze = Ie(fe), cr = M(
835
834
  ({
836
835
  sellerType: e = "Shop",
837
836
  items: n = [],
838
837
  title: o,
839
- icon: l,
840
- isLoading: f,
841
- onSelectCard: u = () => {
838
+ icon: i,
839
+ isLoading: m,
840
+ onSelectCard: d = () => {
842
841
  },
843
- onSelectShop: p = () => {
842
+ onSelectShop: c = () => {
844
843
  },
845
- getImage: s = () => {
844
+ getImage: l = () => {
846
845
  },
847
- campaignSingleText: d,
848
- upcomingCampaignText: g,
849
- salesCampaignTypes: T = [],
846
+ campaignSingleText: h,
847
+ upcomingCampaignText: u,
848
+ salesCampaignTypes: C = [],
850
849
  startsInPrefixTextPlural: b,
851
- startsinSuffixTextPlural: $,
852
- startsInPrefixTextSingular: _,
853
- startsinSuffixTextSingular: S,
850
+ startsinSuffixTextPlural: T,
851
+ startsInPrefixTextSingular: $,
852
+ startsinSuffixTextSingular: _,
854
853
  endsInPrefixTextPlural: x,
855
- endsinSuffixTextPlural: N,
854
+ endsinSuffixTextPlural: k,
856
855
  endsInPrefixTextSingular: y,
857
- endsinSuffixTextSingular: k,
856
+ endsinSuffixTextSingular: N,
858
857
  numOfSlides: w = 2,
859
858
  numOfSlidesForMobile: I = 1,
860
- showNavigation: R = !0,
859
+ showNavigation: E = !0,
861
860
  numberOfListingsTextSingular: j,
862
- numberOfListingsTextPlural: E,
863
- itemlessImageUrl: i,
864
- itemlessLink: h,
861
+ numberOfListingsTextPlural: R,
862
+ itemlessImageUrl: s,
863
+ itemlessLink: p,
865
864
  handleItemlessLink: B = () => {
866
865
  }
867
- }, J) => {
868
- const W = me(), z = ke(() => {
869
- let F = n == null ? void 0 : n.map((r, Y) => /* @__PURE__ */ t(
870
- Xe,
866
+ }, Q) => {
867
+ const F = he(), L = Pe(() => {
868
+ let W = n == null ? void 0 : n.map((r, Y) => /* @__PURE__ */ t(
869
+ Ze,
871
870
  {
872
871
  className: "campaign-item",
873
- coverPhoto: s(
872
+ coverPhoto: l(
874
873
  r == null ? void 0 : r.coverPhoto,
875
874
  (r == null ? void 0 : r.uuid) || (r == null ? void 0 : r.campaignUuid)
876
875
  ),
@@ -885,54 +884,54 @@ const Xe = Ne(ue), ar = L(
885
884
  startDate: r == null ? void 0 : r.startDate,
886
885
  title: r == null ? void 0 : r.name,
887
886
  uuid: r == null ? void 0 : r.campaignUuid,
888
- onSelectCard: () => u(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
889
- onSelectShop: () => p(r == null ? void 0 : r.shopUuid),
890
- campaignSingleText: d,
891
- upcomingCampaignText: g,
887
+ onSelectCard: () => d(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
888
+ onSelectShop: () => c(r == null ? void 0 : r.shopUuid),
889
+ campaignSingleText: h,
890
+ upcomingCampaignText: u,
892
891
  upcoming: r == null ? void 0 : r.upcoming,
893
- salesCampaignTypes: T,
892
+ salesCampaignTypes: C,
894
893
  startsInPrefixTextPlural: b,
895
- startsinSuffixTextPlural: $,
896
- startsInPrefixTextSingular: _,
897
- startsinSuffixTextSingular: S,
894
+ startsinSuffixTextPlural: T,
895
+ startsInPrefixTextSingular: $,
896
+ startsinSuffixTextSingular: _,
898
897
  endsInPrefixTextPlural: x,
899
- endsinSuffixTextPlural: N,
898
+ endsinSuffixTextPlural: k,
900
899
  endsInPrefixTextSingular: y,
901
- endsinSuffixTextSingular: k,
900
+ endsinSuffixTextSingular: N,
902
901
  themeData: r == null ? void 0 : r.themeData,
903
902
  numberOfListings: r == null ? void 0 : r.numberOfListings,
904
903
  numberOfListingsTextSingular: j,
905
- numberOfListingsTextPlural: E
904
+ numberOfListingsTextPlural: R
906
905
  },
907
906
  `campaign__item__${Y}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
908
907
  ));
909
- return (n == null ? void 0 : n.length) < 2 && !W ? [
910
- ...F,
908
+ return (n == null ? void 0 : n.length) < 2 && !F ? [
909
+ ...W,
911
910
  /* @__PURE__ */ t(
912
- pe,
911
+ xe,
913
912
  {
914
- imageUrl: i,
913
+ imageUrl: s,
915
914
  className: "campaign-item",
916
915
  handleClick: B
917
916
  }
918
917
  )
919
- ] : F;
918
+ ] : W;
920
919
  }, [n]);
921
920
  return /* @__PURE__ */ t(
922
- We,
921
+ Xe,
923
922
  {
924
- isLoading: f,
925
- itemsCount: W ? 1 : 2,
923
+ isLoading: m,
924
+ itemsCount: F ? 1 : 2,
926
925
  keyPrefix: "sales-camp",
927
926
  children: /* @__PURE__ */ t(
928
- fe,
927
+ pe,
929
928
  {
930
- icon: l,
929
+ icon: i,
931
930
  title: o,
932
931
  numOfSlides: w,
933
932
  numOfSlidesForMobile: I,
934
- showNavigation: R,
935
- children: z
933
+ showNavigation: E,
934
+ children: L
936
935
  }
937
936
  )
938
937
  }
@@ -940,5 +939,5 @@ const Xe = Ne(ue), ar = L(
940
939
  }
941
940
  );
942
941
  export {
943
- ar as default
942
+ cr as default
944
943
  };