@lanaco/lnc-react-ui 4.0.226 → 4.0.227
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.
- package/dist/BannerSectionCarousel.cjs +3 -3
- package/dist/BannerSectionCarousel.js +18 -11
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +19 -35
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +40 -58
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +2 -2
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +76 -146
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +14 -14
- package/dist/SalesCampaignsSection.js +299 -330
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +54 -100
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +64 -67
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/index-BXT1eY2D.js +753 -0
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/index-D3QZziO_.cjs +368 -0
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/style-CQdEALKR.cjs +59 -0
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { b as
|
|
5
|
-
import { d as
|
|
6
|
-
import
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useRef as ve, useEffect as te, Fragment as Pe, createElement as Le, useState as re, Suspense as Ue, memo as Ee, useMemo as Me } from "react";
|
|
3
|
+
import { s as w } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
+
import { b as oe, l as ae, m as Re, z as je, A as Oe, B as Be, C as pe } from "./utils-MoGhNMmj.js";
|
|
5
|
+
import { d as T, o as Ve } from "./breakpoints-BubDitvo.js";
|
|
6
|
+
import we from "./Icon.js";
|
|
7
7
|
import { D as fe } from "./ShopAvatar-4-fCYGEc.js";
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { I as
|
|
13
|
-
import { m as
|
|
14
|
-
import { S as
|
|
15
|
-
const
|
|
8
|
+
import We from "./Badge.js";
|
|
9
|
+
import { u as ye } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
+
import he from "./IconButton.js";
|
|
11
|
+
import { u as Se } from "./useDetectMobile-B0Jog4jQ.js";
|
|
12
|
+
import { I as Ae } from "./index-DMmw5Ad5.js";
|
|
13
|
+
import { m as Fe } from "./motion-Ckekul_K.js";
|
|
14
|
+
import { S as He, c as ue, d as qe, e as Ye, a as E, f as Ze } from "./style-BFPpppS9.js";
|
|
15
|
+
const Ge = w.a`
|
|
16
16
|
text-decoration: none;
|
|
17
17
|
color: var(--gray-950);
|
|
18
18
|
cursor: pointer;
|
|
@@ -23,7 +23,7 @@ const Ye = y.a`
|
|
|
23
23
|
border-radius: 1.25rem;
|
|
24
24
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
25
25
|
|
|
26
|
-
${(
|
|
26
|
+
${(n) => n != null && n.sponsored ? `
|
|
27
27
|
border: 1px solid transparent;
|
|
28
28
|
background:
|
|
29
29
|
linear-gradient(#ffffff, #ffffff) padding-box,
|
|
@@ -42,7 +42,7 @@ const Ye = y.a`
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@media ${
|
|
45
|
+
@media ${T("S")} {
|
|
46
46
|
width: 100%;
|
|
47
47
|
gap: 0;
|
|
48
48
|
|
|
@@ -55,8 +55,8 @@ const Ye = y.a`
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
59
|
-
border-radius: ${(
|
|
58
|
+
`, Je = w.div`
|
|
59
|
+
border-radius: ${(n) => oe(n.theme, "edged")};
|
|
60
60
|
cursor: pointer;
|
|
61
61
|
|
|
62
62
|
position: relative;
|
|
@@ -76,10 +76,10 @@ const Ye = y.a`
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
@media ${
|
|
79
|
+
@media ${T("S")} {
|
|
80
80
|
width: 14.5rem;
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`, Ke = w.div`
|
|
83
83
|
flex: 1;
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: column;
|
|
@@ -162,7 +162,7 @@ const Ye = y.a`
|
|
|
162
162
|
color: var(--gray-600, #676e79);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
@media ${
|
|
165
|
+
@media ${T("S")} {
|
|
166
166
|
padding: 1rem 0 0 0;
|
|
167
167
|
|
|
168
168
|
& .campaign-title-text {
|
|
@@ -187,16 +187,16 @@ const Ye = y.a`
|
|
|
187
187
|
gap: 0.25rem;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`, xe = (n = !1, a = !1, o = !1) => `
|
|
191
191
|
display: flex;
|
|
192
|
-
${
|
|
193
|
-
${
|
|
194
|
-
${
|
|
192
|
+
${a ? "flex-wrap: wrap;" : ""}
|
|
193
|
+
${a ? "" : "flex-wrap: nowrap;"}
|
|
194
|
+
${n ? "align-items: center;" : ""}
|
|
195
195
|
${o ? "justify-content: center;" : ""}
|
|
196
|
-
`,
|
|
196
|
+
`, Qe = w.a`
|
|
197
197
|
text-decoration: none;
|
|
198
198
|
color: var(--gray-950);
|
|
199
|
-
${(
|
|
199
|
+
${(n) => n.hasPermission === !0 && "cursor: pointer"};
|
|
200
200
|
|
|
201
201
|
&:focus,
|
|
202
202
|
&:hover,
|
|
@@ -211,13 +211,13 @@ const Ye = y.a`
|
|
|
211
211
|
text-decoration: none;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
${
|
|
214
|
+
${xe(!0)}
|
|
215
215
|
gap: 0.5rem;
|
|
216
216
|
color: var(--gray-950, #14161a);
|
|
217
217
|
font-weight: 500;
|
|
218
218
|
font-size: 1rem;
|
|
219
219
|
line-height: 1.5rem;
|
|
220
|
-
border-radius: ${(
|
|
220
|
+
border-radius: ${(n) => oe(n.theme, "slight")};
|
|
221
221
|
transition: all 0.25s ease;
|
|
222
222
|
& .description {
|
|
223
223
|
font-size: 0.85rem;
|
|
@@ -226,7 +226,7 @@ const Ye = y.a`
|
|
|
226
226
|
font-weight: 400;
|
|
227
227
|
}
|
|
228
228
|
& .logo-wrapper {
|
|
229
|
-
${
|
|
229
|
+
${xe(!0, !1, !0)}
|
|
230
230
|
flex-shrink: 0;
|
|
231
231
|
border-radius: 999px;
|
|
232
232
|
|
|
@@ -265,261 +265,261 @@ const Ye = y.a`
|
|
|
265
265
|
background-color: var(--gray-95080, #14161acc);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
@media ${
|
|
268
|
+
@media ${T("S")} {
|
|
269
269
|
padding: 0;
|
|
270
270
|
font-size: 0.875rem;
|
|
271
271
|
}
|
|
272
|
-
`,
|
|
272
|
+
`, Xe = w.div`
|
|
273
273
|
position: absolute;
|
|
274
274
|
top: 0.5rem;
|
|
275
|
-
${(
|
|
275
|
+
${(n) => n.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
276
276
|
display: flex;
|
|
277
277
|
gap: 0.25rem;
|
|
278
|
-
`,
|
|
279
|
-
border-radius: ${(
|
|
280
|
-
background-color: ${(
|
|
278
|
+
`, en = w.div`
|
|
279
|
+
border-radius: ${(n) => oe(n.theme, n.borderRadius || "slight")};
|
|
280
|
+
background-color: ${(n) => n == null ? void 0 : n.color};
|
|
281
281
|
color: white;
|
|
282
282
|
height: 1.5rem;
|
|
283
283
|
min-width: 1.5rem;
|
|
284
|
-
width: ${(
|
|
285
|
-
${(
|
|
284
|
+
width: ${(n) => n.fitContent === !0 ? "fit-content" : "1.5rem"};
|
|
285
|
+
${(n) => n.fitContent === !0 && "padding: 0 0.1rem;"};
|
|
286
286
|
font-size: 0.75rem;
|
|
287
287
|
display: flex;
|
|
288
288
|
align-items: center;
|
|
289
289
|
justify-content: center;
|
|
290
|
-
padding: ${(
|
|
290
|
+
padding: ${(n) => n.padding};
|
|
291
291
|
& i {
|
|
292
292
|
font-size: 0.813rem;
|
|
293
293
|
}
|
|
294
|
-
`,
|
|
295
|
-
const
|
|
296
|
-
return
|
|
297
|
-
var
|
|
298
|
-
const
|
|
299
|
-
|
|
294
|
+
`, nn = M(({ src: n, ...a }, o) => {
|
|
295
|
+
const t = ve();
|
|
296
|
+
return te(() => {
|
|
297
|
+
var p;
|
|
298
|
+
const i = (f) => {
|
|
299
|
+
f.target.src = fe, f.onerror = null;
|
|
300
300
|
};
|
|
301
|
-
return (
|
|
302
|
-
var
|
|
303
|
-
(
|
|
301
|
+
return (p = t == null ? void 0 : t.current) == null || p.addEventListener("error", i), () => {
|
|
302
|
+
var f;
|
|
303
|
+
(f = t == null ? void 0 : t.current) == null || f.removeEventListener("error", i);
|
|
304
304
|
};
|
|
305
|
-
}, []), /* @__PURE__ */
|
|
306
|
-
}),
|
|
305
|
+
}, []), /* @__PURE__ */ r(Pe, { ref: o, children: ae(n) ? /* @__PURE__ */ r("img", { ref: t, src: n, ...a }) : /* @__PURE__ */ r("img", { src: fe, ...a }) });
|
|
306
|
+
}), rn = (n) => {
|
|
307
307
|
const {
|
|
308
|
-
uuid:
|
|
308
|
+
uuid: a,
|
|
309
309
|
hasPermission: o = !0,
|
|
310
|
-
isUser:
|
|
311
|
-
image:
|
|
312
|
-
imageComponent:
|
|
313
|
-
name:
|
|
314
|
-
notifications:
|
|
310
|
+
isUser: t,
|
|
311
|
+
image: i,
|
|
312
|
+
imageComponent: p,
|
|
313
|
+
name: f,
|
|
314
|
+
notifications: y = 0,
|
|
315
315
|
color: l = "primary",
|
|
316
|
-
size:
|
|
316
|
+
size: h = "large",
|
|
317
317
|
style: c,
|
|
318
|
-
disabled:
|
|
318
|
+
disabled: _,
|
|
319
319
|
onClick: m = () => {
|
|
320
320
|
},
|
|
321
|
-
isActive:
|
|
321
|
+
isActive: I,
|
|
322
322
|
className: b,
|
|
323
323
|
shopCategory: v,
|
|
324
324
|
// new
|
|
325
|
-
themeData:
|
|
326
|
-
LinkComponent:
|
|
327
|
-
} =
|
|
328
|
-
theme:
|
|
325
|
+
themeData: S,
|
|
326
|
+
LinkComponent: C
|
|
327
|
+
} = n, N = C || "a", u = {
|
|
328
|
+
theme: ye(),
|
|
329
329
|
color: l,
|
|
330
|
-
size:
|
|
330
|
+
size: h,
|
|
331
331
|
style: c,
|
|
332
|
-
disabled:
|
|
332
|
+
disabled: _
|
|
333
333
|
};
|
|
334
|
-
return /* @__PURE__ */
|
|
335
|
-
|
|
334
|
+
return /* @__PURE__ */ Le(
|
|
335
|
+
Qe,
|
|
336
336
|
{
|
|
337
337
|
onClick: (g) => {
|
|
338
338
|
g == null || g.preventDefault(), g.stopPropagation(), o === !0 && (m == null || m());
|
|
339
339
|
},
|
|
340
340
|
...u,
|
|
341
|
-
key:
|
|
341
|
+
key: f,
|
|
342
342
|
className: `profile-item ${b}`,
|
|
343
343
|
hasPermission: o,
|
|
344
|
-
isActive:
|
|
345
|
-
themeColor: (
|
|
346
|
-
as:
|
|
347
|
-
...
|
|
344
|
+
isActive: I,
|
|
345
|
+
themeColor: (S == null ? void 0 : S.code) || "transparent",
|
|
346
|
+
as: N,
|
|
347
|
+
...C ? { to: `/${t ? "user" : "shop"}/${a}` } : { href: `/${t ? "user" : "shop"}/${a}` }
|
|
348
348
|
},
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
!
|
|
353
|
-
|
|
349
|
+
/* @__PURE__ */ r("div", { className: "logo-wrapper", children: Re(p) ? p : i }),
|
|
350
|
+
/* @__PURE__ */ s("div", { children: [
|
|
351
|
+
/* @__PURE__ */ r("div", { className: "name", children: f }),
|
|
352
|
+
!t && /* @__PURE__ */ r("div", { className: "description", children: v }),
|
|
353
|
+
y > 0 && /* @__PURE__ */ r("div", { className: "notifications-number", children: /* @__PURE__ */ r(We, { className: "badge", color: "danger", size: "small", children: y > 99 ? "99+" : y }) })
|
|
354
354
|
] })
|
|
355
355
|
);
|
|
356
|
-
},
|
|
357
|
-
if (
|
|
358
|
-
const
|
|
359
|
-
return `${String(
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
var
|
|
363
|
-
const o =
|
|
364
|
-
uuid:
|
|
365
|
-
shopUuid:
|
|
366
|
-
title:
|
|
356
|
+
}, be = (n) => {
|
|
357
|
+
if (n !== void 0) {
|
|
358
|
+
const a = new Date(n), o = a.getFullYear(), t = a.getMonth() + 1;
|
|
359
|
+
return `${String(a.getDate()).padStart(2)}. ${t}. ${o}.`;
|
|
360
|
+
}
|
|
361
|
+
}, an = M((n, a) => {
|
|
362
|
+
var me;
|
|
363
|
+
const o = ye(), {
|
|
364
|
+
uuid: t,
|
|
365
|
+
shopUuid: i,
|
|
366
|
+
title: p = "",
|
|
367
367
|
// description,
|
|
368
368
|
// badges,
|
|
369
|
-
coverPhoto:
|
|
370
|
-
onSelect:
|
|
369
|
+
coverPhoto: f,
|
|
370
|
+
onSelect: y,
|
|
371
371
|
// status,
|
|
372
372
|
startDate: l,
|
|
373
|
-
endDate:
|
|
373
|
+
endDate: h,
|
|
374
374
|
salesPackages: c,
|
|
375
|
-
shopName:
|
|
375
|
+
shopName: _,
|
|
376
376
|
shopCategory: m,
|
|
377
|
-
shopImage:
|
|
377
|
+
shopImage: I,
|
|
378
378
|
shopImageComponent: b,
|
|
379
379
|
className: v,
|
|
380
|
-
onSelectCard:
|
|
380
|
+
onSelectCard: S = () => {
|
|
381
381
|
},
|
|
382
|
-
onSelectShop:
|
|
382
|
+
onSelectShop: C = () => {
|
|
383
383
|
},
|
|
384
|
-
upcoming:
|
|
384
|
+
upcoming: N = !1,
|
|
385
385
|
upcomingCampaignText: d,
|
|
386
386
|
campaignSingleText: u,
|
|
387
387
|
salesCampaignTypes: g = [],
|
|
388
|
-
startsInPrefixTextPlural:
|
|
389
|
-
startsinSuffixTextPlural:
|
|
390
|
-
startsInPrefixTextSingular:
|
|
388
|
+
startsInPrefixTextPlural: W,
|
|
389
|
+
startsinSuffixTextPlural: A,
|
|
390
|
+
startsInPrefixTextSingular: F,
|
|
391
391
|
startsinSuffixTextSingular: H,
|
|
392
392
|
endsInPrefixTextPlural: q,
|
|
393
393
|
endsinSuffixTextPlural: Y,
|
|
394
|
-
endsInPrefixTextSingular:
|
|
394
|
+
endsInPrefixTextSingular: R,
|
|
395
395
|
endsinSuffixTextSingular: Z,
|
|
396
|
-
endedText:
|
|
396
|
+
endedText: G,
|
|
397
397
|
themeData: se,
|
|
398
|
-
numberOfListings:
|
|
399
|
-
numberOfListingsTextSingular:
|
|
400
|
-
numberOfListingsTextPlural:
|
|
398
|
+
numberOfListings: D,
|
|
399
|
+
numberOfListingsTextSingular: J,
|
|
400
|
+
numberOfListingsTextPlural: j,
|
|
401
401
|
metadata: e,
|
|
402
|
-
LinkComponent:
|
|
403
|
-
sponsored:
|
|
404
|
-
...
|
|
405
|
-
} =
|
|
406
|
-
if (!
|
|
407
|
-
const x = pe(
|
|
408
|
-
if (!
|
|
409
|
-
const
|
|
410
|
-
if (
|
|
411
|
-
const
|
|
412
|
-
return { hours:
|
|
413
|
-
}, [
|
|
414
|
-
|
|
415
|
-
if (!
|
|
402
|
+
LinkComponent: O,
|
|
403
|
+
sponsored: ie,
|
|
404
|
+
...K
|
|
405
|
+
} = n, $e = O || "a", le = ve(), U = je(l, h), Q = U !== -1 && (U == null ? void 0 : U.isEnded) === !0, X = U !== -1 && !Q, ee = Oe(l), P = Be(h), _e = P !== null && P <= 2 && P > 0, ce = pe(h), de = ce ? new Date(ce) : null, Ce = /* @__PURE__ */ new Date(), ne = de ? de.getTime() - Ce.getTime() : null, B = ne !== null && ne > 0 && ne < 24 * 60 * 60 * 1e3, ge = (x, L, k, $, z) => k === 1 ? `${x} ${k} ${$}` : `${L} ${k} ${z}`, ke = () => {
|
|
406
|
+
if (!h) return null;
|
|
407
|
+
const x = pe(h), L = x ? new Date(x) : null;
|
|
408
|
+
if (!L) return null;
|
|
409
|
+
const k = Ie, $ = L.getTime() - k.getTime();
|
|
410
|
+
if ($ <= 0) return null;
|
|
411
|
+
const z = Math.floor($ / (1e3 * 60 * 60)), De = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), ze = Math.floor($ % (1e3 * 60) / 1e3);
|
|
412
|
+
return { hours: z, minutes: De, seconds: ze };
|
|
413
|
+
}, [Ie, Ne] = re(/* @__PURE__ */ new Date());
|
|
414
|
+
te(() => {
|
|
415
|
+
if (!B) return;
|
|
416
416
|
const x = setInterval(() => {
|
|
417
|
-
|
|
417
|
+
Ne(/* @__PURE__ */ new Date());
|
|
418
418
|
}, 1e3);
|
|
419
419
|
return () => clearInterval(x);
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
422
|
-
return /* @__PURE__ */
|
|
423
|
-
|
|
420
|
+
}, [B]);
|
|
421
|
+
const V = B ? ke() : null;
|
|
422
|
+
return /* @__PURE__ */ s(
|
|
423
|
+
Ge,
|
|
424
424
|
{
|
|
425
|
-
ref:
|
|
425
|
+
ref: le,
|
|
426
426
|
theme: o,
|
|
427
427
|
className: v,
|
|
428
428
|
name: e == null ? void 0 : e.name,
|
|
429
429
|
"data-accessor": e == null ? void 0 : e.accessor,
|
|
430
|
-
onClick: (x) =>
|
|
431
|
-
as:
|
|
432
|
-
...
|
|
433
|
-
sponsored:
|
|
434
|
-
...
|
|
430
|
+
onClick: (x) => S(x, le),
|
|
431
|
+
as: $e,
|
|
432
|
+
...O ? { to: `/shop/${i}/campaign/${t}` } : { href: `/shop/${i}/campaign/${t}` },
|
|
433
|
+
sponsored: ie,
|
|
434
|
+
...K,
|
|
435
435
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
var
|
|
440
|
-
return /* @__PURE__ */
|
|
441
|
-
|
|
436
|
+
/* @__PURE__ */ s(Je, { theme: o, children: [
|
|
437
|
+
/* @__PURE__ */ r("img", { src: f }),
|
|
438
|
+
/* @__PURE__ */ r(Xe, { children: c == null ? void 0 : c.map((x, L) => {
|
|
439
|
+
var k, $;
|
|
440
|
+
return /* @__PURE__ */ r(
|
|
441
|
+
en,
|
|
442
442
|
{
|
|
443
|
-
color: (
|
|
443
|
+
color: (k = g == null ? void 0 : g.find((z) => z.value === x)) == null ? void 0 : k.color,
|
|
444
444
|
theme: o,
|
|
445
|
-
children: /* @__PURE__ */
|
|
446
|
-
|
|
445
|
+
children: /* @__PURE__ */ r(
|
|
446
|
+
we,
|
|
447
447
|
{
|
|
448
|
-
icon: (
|
|
448
|
+
icon: ($ = g == null ? void 0 : g.find((z) => z.value === x)) == null ? void 0 : $.icon
|
|
449
449
|
}
|
|
450
450
|
)
|
|
451
451
|
},
|
|
452
|
-
`package__${
|
|
452
|
+
`package__${L}`
|
|
453
453
|
);
|
|
454
454
|
}) })
|
|
455
455
|
] }),
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
|
|
461
|
-
|
|
456
|
+
/* @__PURE__ */ s(Ke, { theme: o, children: [
|
|
457
|
+
/* @__PURE__ */ r("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
|
|
458
|
+
/* @__PURE__ */ r("div", { className: "campaign-title", children: (me = N ? d : u) == null ? void 0 : me.toUpperCase() }),
|
|
459
|
+
/* @__PURE__ */ r("div", { className: "campaign-title-text", children: p }),
|
|
460
|
+
h && l && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
|
|
461
|
+
be(l),
|
|
462
462
|
" - ",
|
|
463
|
-
|
|
463
|
+
be(h)
|
|
464
464
|
] }),
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
/* @__PURE__ */ s("div", { className: "timestamp-text", children: [
|
|
466
|
+
D > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
|
|
467
|
+
D,
|
|
468
468
|
" ",
|
|
469
|
-
|
|
469
|
+
D === 1 ? J : j,
|
|
470
470
|
" ",
|
|
471
471
|
"∙",
|
|
472
472
|
" "
|
|
473
473
|
] }),
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ r(
|
|
475
475
|
"span",
|
|
476
476
|
{
|
|
477
|
-
className: `duration-text ${
|
|
478
|
-
children:
|
|
479
|
-
|
|
477
|
+
className: `duration-text ${_e ? "urgent" : ""} ${X ? "" : "starts-in"}`,
|
|
478
|
+
children: B && V ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
|
|
479
|
+
R,
|
|
480
480
|
" ",
|
|
481
|
-
|
|
481
|
+
V.hours.toString().padStart(2, "0"),
|
|
482
482
|
":",
|
|
483
|
-
|
|
483
|
+
V.minutes.toString().padStart(2, "0"),
|
|
484
484
|
":",
|
|
485
|
-
|
|
486
|
-
] }) :
|
|
487
|
-
|
|
485
|
+
V.seconds.toString().padStart(2, "0")
|
|
486
|
+
] }) : X && !Q && P !== null && P > 0 ? ge(
|
|
487
|
+
R,
|
|
488
488
|
q,
|
|
489
|
-
|
|
489
|
+
P,
|
|
490
490
|
Z,
|
|
491
491
|
Y
|
|
492
|
-
) :
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
492
|
+
) : Q ? G || "Završena" : !X && ee !== null && ee > 0 ? ge(
|
|
493
|
+
F,
|
|
494
|
+
W,
|
|
495
|
+
ee,
|
|
496
496
|
H,
|
|
497
|
-
|
|
497
|
+
A
|
|
498
498
|
) : null
|
|
499
499
|
}
|
|
500
500
|
)
|
|
501
501
|
] })
|
|
502
502
|
] }) }),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
|
|
503
|
+
/* @__PURE__ */ r(
|
|
504
|
+
rn,
|
|
505
505
|
{
|
|
506
506
|
hasPermission: !0,
|
|
507
|
-
image: /* @__PURE__ */
|
|
507
|
+
image: /* @__PURE__ */ r(nn, { src: I }),
|
|
508
508
|
imageComponent: b,
|
|
509
509
|
themeData: se,
|
|
510
510
|
isActive: !0,
|
|
511
511
|
isUser: !1,
|
|
512
|
-
name:
|
|
512
|
+
name: _,
|
|
513
513
|
shopCategory: m,
|
|
514
|
-
uuid:
|
|
515
|
-
onClick: () =>
|
|
514
|
+
uuid: i,
|
|
515
|
+
onClick: () => C(i)
|
|
516
516
|
}
|
|
517
517
|
)
|
|
518
518
|
] })
|
|
519
519
|
]
|
|
520
520
|
}
|
|
521
521
|
);
|
|
522
|
-
}),
|
|
522
|
+
}), tn = w.div`
|
|
523
523
|
margin: 0 auto;
|
|
524
524
|
display: flex;
|
|
525
525
|
flex-direction: column;
|
|
@@ -570,7 +570,7 @@ const Ye = y.a`
|
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
|
|
573
|
-
@media ${
|
|
573
|
+
@media ${T("S")} {
|
|
574
574
|
gap: 1.25rem;
|
|
575
575
|
|
|
576
576
|
& .scrollable-section__header {
|
|
@@ -582,17 +582,17 @@ const Ye = y.a`
|
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
`,
|
|
585
|
+
`, on = w(Fe.div)`
|
|
586
586
|
display: grid;
|
|
587
|
-
grid-template-columns: repeat(${(
|
|
587
|
+
grid-template-columns: repeat(${(n) => n == null ? void 0 : n.numOfColumns}, 1fr);
|
|
588
588
|
gap: 1.5rem;
|
|
589
589
|
width: 100%;
|
|
590
590
|
|
|
591
|
-
@media ${
|
|
592
|
-
grid-template-columns: repeat(${(
|
|
591
|
+
@media ${Ve("M")} {
|
|
592
|
+
grid-template-columns: repeat(${(n) => (n == null ? void 0 : n.tabletNumOfColumns) ?? 2}, 1fr);
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
@media ${
|
|
595
|
+
@media ${T("S")} {
|
|
596
596
|
display: flex;
|
|
597
597
|
flex-wrap: nowrap;
|
|
598
598
|
overflow-x: scroll;
|
|
@@ -614,56 +614,56 @@ const Ye = y.a`
|
|
|
614
614
|
/* Safari and Chrome */
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
`,
|
|
617
|
+
`, sn = M(
|
|
618
618
|
({
|
|
619
|
-
icon:
|
|
620
|
-
title:
|
|
619
|
+
icon: n,
|
|
620
|
+
title: a,
|
|
621
621
|
numOfSlides: o = 4,
|
|
622
|
-
tabletNumOfSlides:
|
|
623
|
-
showNavigation:
|
|
624
|
-
hasNextPage:
|
|
625
|
-
className:
|
|
626
|
-
handleFetchNextPage:
|
|
622
|
+
tabletNumOfSlides: t,
|
|
623
|
+
showNavigation: i = !0,
|
|
624
|
+
hasNextPage: p = !1,
|
|
625
|
+
className: f = "",
|
|
626
|
+
handleFetchNextPage: y = () => {
|
|
627
627
|
},
|
|
628
628
|
children: l
|
|
629
|
-
},
|
|
630
|
-
const [c,
|
|
631
|
-
|
|
629
|
+
}, h) => {
|
|
630
|
+
const [c, _] = re(0), [m, I] = re(1), b = Se(), v = (l == null ? void 0 : l.length) ?? 1;
|
|
631
|
+
te(() => {
|
|
632
632
|
const d = () => {
|
|
633
|
-
|
|
633
|
+
I(o);
|
|
634
634
|
};
|
|
635
635
|
return window.addEventListener("resize", d), d(), () => window.removeEventListener("resize", d);
|
|
636
636
|
}, []);
|
|
637
|
-
const
|
|
637
|
+
const S = b ? l : l == null ? void 0 : l.slice(c, c + m), C = (d) => {
|
|
638
638
|
var g;
|
|
639
639
|
(g = d == null ? void 0 : d.target) == null || g.blur();
|
|
640
640
|
const u = c + m;
|
|
641
|
-
u < v &&
|
|
642
|
-
},
|
|
641
|
+
u < v && _(u), u + m >= v && p && y();
|
|
642
|
+
}, N = (d) => {
|
|
643
643
|
var u;
|
|
644
|
-
(u = d == null ? void 0 : d.target) == null || u.blur(), c - m >= 0 &&
|
|
644
|
+
(u = d == null ? void 0 : d.target) == null || u.blur(), c - m >= 0 && _(c - m);
|
|
645
645
|
};
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
ae(
|
|
649
|
-
|
|
646
|
+
return /* @__PURE__ */ s(tn, { ref: h, className: f, children: [
|
|
647
|
+
/* @__PURE__ */ r("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
|
|
648
|
+
ae(n) && /* @__PURE__ */ r(
|
|
649
|
+
we,
|
|
650
650
|
{
|
|
651
|
-
icon:
|
|
651
|
+
icon: n,
|
|
652
652
|
color: "primary",
|
|
653
653
|
sizeInUnits: "1.5rem",
|
|
654
654
|
className: "title__icon"
|
|
655
655
|
}
|
|
656
656
|
),
|
|
657
|
-
ae(
|
|
657
|
+
ae(a) && /* @__PURE__ */ s("div", { className: "title__text", children: [
|
|
658
658
|
" ",
|
|
659
|
-
|
|
659
|
+
a
|
|
660
660
|
] })
|
|
661
661
|
] }) }),
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
|
|
662
|
+
/* @__PURE__ */ s(
|
|
663
|
+
on,
|
|
664
664
|
{
|
|
665
665
|
numOfColumns: o,
|
|
666
|
-
tabletNumOfColumns:
|
|
666
|
+
tabletNumOfColumns: t,
|
|
667
667
|
...!b && {
|
|
668
668
|
animate: {
|
|
669
669
|
x: 0,
|
|
@@ -676,15 +676,15 @@ const Ye = y.a`
|
|
|
676
676
|
},
|
|
677
677
|
className: "scrollable-section__content",
|
|
678
678
|
children: [
|
|
679
|
-
|
|
680
|
-
b &&
|
|
679
|
+
S,
|
|
680
|
+
b && p && /* @__PURE__ */ r(Ae, { onIsVisible: y })
|
|
681
681
|
]
|
|
682
682
|
},
|
|
683
683
|
`scrollable-section__content-${c}`
|
|
684
684
|
),
|
|
685
|
-
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
|
|
685
|
+
i && v > m && !b && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
|
|
686
|
+
/* @__PURE__ */ r(
|
|
687
|
+
he,
|
|
688
688
|
{
|
|
689
689
|
icon: "angle-left",
|
|
690
690
|
borderRadius: "curved",
|
|
@@ -692,11 +692,11 @@ const Ye = y.a`
|
|
|
692
692
|
color: "neutral",
|
|
693
693
|
className: "navigation__arrow",
|
|
694
694
|
disabled: c === 0,
|
|
695
|
-
onClick:
|
|
695
|
+
onClick: N
|
|
696
696
|
}
|
|
697
697
|
),
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
|
|
698
|
+
/* @__PURE__ */ r(
|
|
699
|
+
he,
|
|
700
700
|
{
|
|
701
701
|
icon: "angle-right",
|
|
702
702
|
borderRadius: "curved",
|
|
@@ -704,17 +704,17 @@ const Ye = y.a`
|
|
|
704
704
|
color: "neutral",
|
|
705
705
|
className: "navigation__arrow",
|
|
706
706
|
disabled: c + m >= v,
|
|
707
|
-
onClick:
|
|
707
|
+
onClick: C
|
|
708
708
|
}
|
|
709
709
|
)
|
|
710
710
|
] })
|
|
711
711
|
] });
|
|
712
712
|
}
|
|
713
|
-
),
|
|
713
|
+
), ln = w.div`
|
|
714
714
|
display: flex;
|
|
715
715
|
flex: 1;
|
|
716
716
|
width: 100%;
|
|
717
|
-
max-height: ${(
|
|
717
|
+
max-height: ${(n) => n == null ? void 0 : n.maxHeight};
|
|
718
718
|
border-radius: 1.25rem;
|
|
719
719
|
|
|
720
720
|
&:hover {
|
|
@@ -727,26 +727,26 @@ const Ye = y.a`
|
|
|
727
727
|
border-radius: 1.25rem;
|
|
728
728
|
object-fit: cover;
|
|
729
729
|
}
|
|
730
|
-
`,
|
|
730
|
+
`, cn = M(
|
|
731
731
|
({
|
|
732
|
-
sectionName:
|
|
733
|
-
imageUrl:
|
|
732
|
+
sectionName: n,
|
|
733
|
+
imageUrl: a,
|
|
734
734
|
maxHeight: o = "16.25rem",
|
|
735
|
-
className:
|
|
736
|
-
handleClick:
|
|
735
|
+
className: t = "",
|
|
736
|
+
handleClick: i = () => {
|
|
737
737
|
}
|
|
738
|
-
},
|
|
739
|
-
|
|
738
|
+
}, p) => /* @__PURE__ */ r(
|
|
739
|
+
ln,
|
|
740
740
|
{
|
|
741
|
-
ref:
|
|
741
|
+
ref: p,
|
|
742
742
|
maxHeight: o,
|
|
743
|
-
onClick:
|
|
744
|
-
className: `itemless-banner ${
|
|
745
|
-
children: /* @__PURE__ */
|
|
743
|
+
onClick: i,
|
|
744
|
+
className: `itemless-banner ${t}`,
|
|
745
|
+
children: /* @__PURE__ */ r("img", { src: a, alt: `itemless-banner__${n}` })
|
|
746
746
|
}
|
|
747
747
|
)
|
|
748
|
-
),
|
|
749
|
-
@media ${
|
|
748
|
+
), dn = w(He)`
|
|
749
|
+
@media ${T("S")} {
|
|
750
750
|
flex-direction: column;
|
|
751
751
|
|
|
752
752
|
& .skeleton__image {
|
|
@@ -760,106 +760,75 @@ const Ye = y.a`
|
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
`,
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
),
|
|
774
|
-
/* @__PURE__ */ i(be, { noGradient: !0, children: [
|
|
775
|
-
/* @__PURE__ */ n(w, { height: "1rem" }),
|
|
776
|
-
/* @__PURE__ */ n(w, { height: "1.75rem" }),
|
|
777
|
-
/* @__PURE__ */ n(w, { height: "1.25rem" }),
|
|
778
|
-
/* @__PURE__ */ n(w, { height: "2rem" }),
|
|
779
|
-
/* @__PURE__ */ i(M, { alignItems: "center", noGradient: !0, children: [
|
|
780
|
-
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
781
|
-
/* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
|
|
782
|
-
] })
|
|
783
|
-
] })
|
|
784
|
-
] }),
|
|
785
|
-
/* @__PURE__ */ i(M, { noGradient: !0, children: [
|
|
786
|
-
/* @__PURE__ */ n(
|
|
787
|
-
xe,
|
|
788
|
-
{
|
|
789
|
-
width: "13.75rem",
|
|
790
|
-
height: "13.75rem",
|
|
791
|
-
className: "skeleton__image"
|
|
792
|
-
},
|
|
793
|
-
`${r}-2`
|
|
794
|
-
),
|
|
795
|
-
/* @__PURE__ */ i(be, { noGradient: !0, children: [
|
|
796
|
-
/* @__PURE__ */ n(w, { height: "1rem" }),
|
|
797
|
-
/* @__PURE__ */ n(w, { height: "1.75rem" }),
|
|
798
|
-
/* @__PURE__ */ n(w, { height: "1.25rem" }),
|
|
799
|
-
/* @__PURE__ */ n(w, { height: "2rem" }),
|
|
800
|
-
/* @__PURE__ */ i(M, { alignItems: "center", noGradient: !0, children: [
|
|
801
|
-
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
802
|
-
/* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
|
|
803
|
-
] })
|
|
763
|
+
`, gn = ({ keyPrefix: n }) => /* @__PURE__ */ r(dn, { children: [1, 2].map((a) => /* @__PURE__ */ s(ue, { children: [
|
|
764
|
+
/* @__PURE__ */ r(qe, { size: "13.75rem", className: "skeleton__image" }),
|
|
765
|
+
/* @__PURE__ */ s(Ye, { children: [
|
|
766
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "1rem" }),
|
|
767
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "1.75rem" }),
|
|
768
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "1.25rem" }),
|
|
769
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "2rem" }),
|
|
770
|
+
/* @__PURE__ */ s(ue, { alignItems: "center", children: [
|
|
771
|
+
/* @__PURE__ */ r(Ze, { size: "2.5rem" }),
|
|
772
|
+
/* @__PURE__ */ r(E, { width: "5rem", height: "1.25rem" })
|
|
804
773
|
] })
|
|
805
774
|
] })
|
|
806
|
-
] }),
|
|
807
|
-
keyPrefix:
|
|
808
|
-
isLoading:
|
|
809
|
-
fallbackComponent: o = /* @__PURE__ */
|
|
810
|
-
children:
|
|
811
|
-
}) => /* @__PURE__ */
|
|
775
|
+
] }, `${n}-${a}`)) }), mn = ({
|
|
776
|
+
keyPrefix: n,
|
|
777
|
+
isLoading: a = !1,
|
|
778
|
+
fallbackComponent: o = /* @__PURE__ */ r(Te, {}),
|
|
779
|
+
children: t
|
|
780
|
+
}) => /* @__PURE__ */ r(Ue, { fallbackComponent: o, children: a === !0 ? /* @__PURE__ */ r(gn, { keyPrefix: n }) : t }), pn = Ee(an), Nn = M(
|
|
812
781
|
({
|
|
813
|
-
sellerType:
|
|
814
|
-
items:
|
|
782
|
+
sellerType: n = "Shop",
|
|
783
|
+
items: a = [],
|
|
815
784
|
title: o,
|
|
816
|
-
icon:
|
|
817
|
-
isLoading:
|
|
818
|
-
onSelectCard:
|
|
785
|
+
icon: t,
|
|
786
|
+
isLoading: i,
|
|
787
|
+
onSelectCard: p = () => {
|
|
819
788
|
},
|
|
820
|
-
onSelectShop:
|
|
789
|
+
onSelectShop: f = () => {
|
|
821
790
|
},
|
|
822
|
-
getImage:
|
|
791
|
+
getImage: y = () => {
|
|
823
792
|
},
|
|
824
793
|
campaignSingleText: l,
|
|
825
|
-
upcomingCampaignText:
|
|
794
|
+
upcomingCampaignText: h,
|
|
826
795
|
salesCampaignTypes: c = [],
|
|
827
|
-
startsInPrefixTextPlural:
|
|
796
|
+
startsInPrefixTextPlural: _,
|
|
828
797
|
startsinSuffixTextPlural: m,
|
|
829
|
-
startsInPrefixTextSingular:
|
|
798
|
+
startsInPrefixTextSingular: I,
|
|
830
799
|
startsinSuffixTextSingular: b,
|
|
831
800
|
endsInPrefixTextPlural: v,
|
|
832
|
-
endsinSuffixTextPlural:
|
|
833
|
-
endsInPrefixTextSingular:
|
|
834
|
-
endsinSuffixTextSingular:
|
|
801
|
+
endsinSuffixTextPlural: S,
|
|
802
|
+
endsInPrefixTextSingular: C,
|
|
803
|
+
endsinSuffixTextSingular: N,
|
|
835
804
|
endedText: d,
|
|
836
805
|
numOfSlides: u = 4,
|
|
837
806
|
showNavigation: g = !0,
|
|
838
|
-
numberOfListingsTextSingular:
|
|
839
|
-
numberOfListingsTextPlural:
|
|
840
|
-
itemlessImageUrl:
|
|
807
|
+
numberOfListingsTextSingular: W,
|
|
808
|
+
numberOfListingsTextPlural: A,
|
|
809
|
+
itemlessImageUrl: F,
|
|
841
810
|
itemlessMaxHeight: H,
|
|
842
811
|
handleItemlessLink: q = () => {
|
|
843
812
|
},
|
|
844
813
|
componentName: Y,
|
|
845
|
-
hasNextPage:
|
|
814
|
+
hasNextPage: R = !1,
|
|
846
815
|
handleFetchNextPage: Z = () => {
|
|
847
816
|
},
|
|
848
|
-
LinkComponent:
|
|
817
|
+
LinkComponent: G
|
|
849
818
|
}, se) => {
|
|
850
|
-
const
|
|
851
|
-
let
|
|
852
|
-
|
|
819
|
+
const D = Se(), J = Me(() => {
|
|
820
|
+
let j = a == null ? void 0 : a.map((e, O) => /* @__PURE__ */ r(
|
|
821
|
+
pn,
|
|
853
822
|
{
|
|
854
|
-
className: `campaign-item ${(
|
|
855
|
-
coverPhoto:
|
|
823
|
+
className: `campaign-item ${(a == null ? void 0 : a.length) === 1 ? "horizontal-campaign-item" : ""}`,
|
|
824
|
+
coverPhoto: y(
|
|
856
825
|
e == null ? void 0 : e.coverPhoto,
|
|
857
826
|
(e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
|
|
858
827
|
),
|
|
859
828
|
description: e == null ? void 0 : e.description,
|
|
860
829
|
endDate: e == null ? void 0 : e.endDate,
|
|
861
830
|
salesPackages: e == null ? void 0 : e.salesPackages,
|
|
862
|
-
sellerType:
|
|
831
|
+
sellerType: n,
|
|
863
832
|
shopImage: e == null ? void 0 : e.profileImage,
|
|
864
833
|
shopImageComponent: e == null ? void 0 : e.profileImageComponent,
|
|
865
834
|
shopName: e == null ? void 0 : e.shopName,
|
|
@@ -868,69 +837,69 @@ const Ye = y.a`
|
|
|
868
837
|
startDate: e == null ? void 0 : e.startDate,
|
|
869
838
|
title: e == null ? void 0 : e.name,
|
|
870
839
|
uuid: e == null ? void 0 : e.campaignUuid,
|
|
871
|
-
onSelectCard: (
|
|
872
|
-
onSelectShop: () =>
|
|
840
|
+
onSelectCard: (ie, K) => p(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, K),
|
|
841
|
+
onSelectShop: () => f(e == null ? void 0 : e.shopUuid),
|
|
873
842
|
campaignSingleText: l,
|
|
874
|
-
upcomingCampaignText:
|
|
843
|
+
upcomingCampaignText: h,
|
|
875
844
|
upcoming: e == null ? void 0 : e.upcoming,
|
|
876
845
|
salesCampaignTypes: c,
|
|
877
|
-
startsInPrefixTextPlural:
|
|
846
|
+
startsInPrefixTextPlural: _,
|
|
878
847
|
startsinSuffixTextPlural: m,
|
|
879
|
-
startsInPrefixTextSingular:
|
|
848
|
+
startsInPrefixTextSingular: I,
|
|
880
849
|
startsinSuffixTextSingular: b,
|
|
881
850
|
endsInPrefixTextPlural: v,
|
|
882
|
-
endsinSuffixTextPlural:
|
|
883
|
-
endsInPrefixTextSingular:
|
|
884
|
-
endsinSuffixTextSingular:
|
|
851
|
+
endsinSuffixTextPlural: S,
|
|
852
|
+
endsInPrefixTextSingular: C,
|
|
853
|
+
endsinSuffixTextSingular: N,
|
|
885
854
|
endedText: d,
|
|
886
855
|
themeData: e == null ? void 0 : e.themeData,
|
|
887
856
|
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
888
|
-
numberOfListingsTextSingular:
|
|
889
|
-
numberOfListingsTextPlural:
|
|
857
|
+
numberOfListingsTextSingular: W,
|
|
858
|
+
numberOfListingsTextPlural: A,
|
|
890
859
|
metadata: { name: Y, accessor: e == null ? void 0 : e.accessor },
|
|
891
|
-
LinkComponent:
|
|
860
|
+
LinkComponent: G,
|
|
892
861
|
sponsored: e == null ? void 0 : e.sponsored
|
|
893
862
|
},
|
|
894
|
-
`campaign__item__${
|
|
863
|
+
`campaign__item__${O}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
895
864
|
));
|
|
896
|
-
return (
|
|
897
|
-
...
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
|
|
865
|
+
return (a == null ? void 0 : a.length) < 4 && !D ? [
|
|
866
|
+
...j,
|
|
867
|
+
/* @__PURE__ */ r(
|
|
868
|
+
cn,
|
|
900
869
|
{
|
|
901
|
-
imageUrl:
|
|
870
|
+
imageUrl: F,
|
|
902
871
|
className: "campaign-item",
|
|
903
872
|
maxHeight: H,
|
|
904
873
|
handleClick: q
|
|
905
874
|
},
|
|
906
875
|
"itemless-campaign-section-banner"
|
|
907
876
|
)
|
|
908
|
-
] :
|
|
909
|
-
}, [
|
|
910
|
-
return /* @__PURE__ */
|
|
911
|
-
|
|
877
|
+
] : j;
|
|
878
|
+
}, [a]);
|
|
879
|
+
return /* @__PURE__ */ r(
|
|
880
|
+
mn,
|
|
912
881
|
{
|
|
913
|
-
isLoading:
|
|
882
|
+
isLoading: i,
|
|
914
883
|
keyPrefix: "sales-campaign-skeleton",
|
|
915
|
-
children: /* @__PURE__ */
|
|
916
|
-
|
|
884
|
+
children: /* @__PURE__ */ r(
|
|
885
|
+
sn,
|
|
917
886
|
{
|
|
918
|
-
icon:
|
|
887
|
+
icon: t,
|
|
919
888
|
title: o,
|
|
920
889
|
numOfSlides: u,
|
|
921
890
|
tabletNumOfSlides: 2,
|
|
922
891
|
showNavigation: g,
|
|
923
|
-
hasNextPage:
|
|
892
|
+
hasNextPage: R,
|
|
924
893
|
handleFetchNextPage: Z,
|
|
925
|
-
className: (
|
|
926
|
-
children:
|
|
894
|
+
className: (a == null ? void 0 : a.length) < 4 && !D ? "itemless" : "",
|
|
895
|
+
children: J
|
|
927
896
|
},
|
|
928
|
-
`sales-campaign-section__${
|
|
897
|
+
`sales-campaign-section__${D}`
|
|
929
898
|
)
|
|
930
899
|
}
|
|
931
900
|
);
|
|
932
901
|
}
|
|
933
902
|
);
|
|
934
903
|
export {
|
|
935
|
-
|
|
904
|
+
Nn as default
|
|
936
905
|
};
|