@lanaco/lnc-react-ui 4.0.156 → 4.0.160
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/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +105 -89
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +88 -84
- package/dist/BlogListSection.cjs +5 -5
- package/dist/BlogListSection.js +139 -126
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +37 -35
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +43 -41
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +9 -4
- package/dist/BlogsSectionDetailed.cjs +11 -11
- package/dist/BlogsSectionDetailed.js +122 -108
- package/dist/BlogsSectionLarge.cjs +4 -4
- package/dist/BlogsSectionLarge.js +43 -40
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +100 -86
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +81 -66
- package/dist/BlogsSectionWithFilters.cjs +11 -11
- package/dist/BlogsSectionWithFilters.js +108 -93
- package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
- package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +8 -3
- package/dist/DetailedProductsInfinitiveSection.js +63 -51
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +76 -65
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +81 -59
- package/dist/SalesCampaignsSection.cjs +27 -27
- package/dist/SalesCampaignsSection.js +281 -272
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +27 -25
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +62 -51
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +67 -56
- package/dist/index-1Dm1i6WK.js +52 -0
- package/dist/index-BGTtoLxz.cjs +1 -0
- package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
- package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
- package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
- package/dist/{style-DFPWLJBr.js → style-BLuyU97E.js} +4 -0
- package/dist/{style-CyHewQxg.cjs → style-lSjkOR95.cjs} +6 -2
- package/dist/{suspense-product-card-detailed-YJVsf2-a.js → suspense-product-card-detailed-BZtObEfA.js} +191 -162
- package/dist/suspense-product-card-detailed-D-pjVe22.cjs +300 -0
- package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
- package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Cm0f72Po.cjs +0 -1
- package/dist/index-DGp7FHms.js +0 -42
- package/dist/suspense-product-card-detailed-mCJwteOy.cjs +0 -265
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as n, jsxs as g, Fragment as De } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useRef as he, useEffect as Q, Fragment as Te, createElement as Pe, useState as U, Suspense as ze, memo as Me, useMemo as Le } from "react";
|
|
3
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { M as
|
|
6
|
-
import { m as
|
|
4
|
+
import { a as O, k as K, l as Ue, o as pe } from "./utils-BdsZgOUE.js";
|
|
5
|
+
import { M as k } from "./consts-BuFChS64.js";
|
|
6
|
+
import { m as fe } from "./motion-Ckekul_K.js";
|
|
7
7
|
import { P as a } from "./index-CblbdqjE.js";
|
|
8
|
-
import
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
const
|
|
8
|
+
import ue from "./Icon.js";
|
|
9
|
+
import { D as se } from "./ShopAvatar-4-fCYGEc.js";
|
|
10
|
+
import Oe from "./Badge.js";
|
|
11
|
+
import { u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
12
|
+
import le from "./IconButton.js";
|
|
13
|
+
import { u as xe } from "./useDetectMobile-Bkvj0VMa.js";
|
|
14
|
+
const Ee = h.div`
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
display: flex;
|
|
17
17
|
gap: 1rem;
|
|
@@ -19,13 +19,13 @@ const Ue = h.div`
|
|
|
19
19
|
border-radius: 1.25rem;
|
|
20
20
|
border: 1px solid var(--gray-200, #e4e9f0);
|
|
21
21
|
|
|
22
|
-
@media (max-width: ${
|
|
22
|
+
@media (max-width: ${k + "px"}) {
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
padding: 1rem;
|
|
25
25
|
gap: 0;
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
28
|
-
border-radius: ${(e) =>
|
|
27
|
+
`, je = h.div`
|
|
28
|
+
border-radius: ${(e) => O(e.theme, "edged")};
|
|
29
29
|
height: 13.75rem;
|
|
30
30
|
width: 13.75rem;
|
|
31
31
|
min-width: 13.75rem;
|
|
@@ -47,7 +47,7 @@ const Ue = h.div`
|
|
|
47
47
|
transform: scale(1.25);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`, Re = h.div`
|
|
51
51
|
flex: 1;
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
@@ -130,7 +130,7 @@ const Ue = h.div`
|
|
|
130
130
|
color: var(--gray-600, #676e79);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
@media (max-width: ${
|
|
133
|
+
@media (max-width: ${k + "px"}) {
|
|
134
134
|
padding: 1rem 0 0 0;
|
|
135
135
|
|
|
136
136
|
& .campaign-title-text {
|
|
@@ -155,13 +155,13 @@ const Ue = h.div`
|
|
|
155
155
|
gap: 0.25rem;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
`,
|
|
158
|
+
`, ce = (e = !1, t = !1, o = !1) => `
|
|
159
159
|
display: flex;
|
|
160
|
-
${
|
|
161
|
-
${
|
|
160
|
+
${t ? "flex-wrap: wrap;" : ""}
|
|
161
|
+
${t ? "" : "flex-wrap: nowrap;"}
|
|
162
162
|
${e ? "align-items: center;" : ""}
|
|
163
163
|
${o ? "justify-content: center;" : ""}
|
|
164
|
-
`,
|
|
164
|
+
`, Be = h(fe.div)`
|
|
165
165
|
text-decoration: none;
|
|
166
166
|
${(e) => e.hasPermission === !0 && "cursor: pointer"};
|
|
167
167
|
|
|
@@ -178,14 +178,14 @@ const Ue = h.div`
|
|
|
178
178
|
text-decoration: none;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
${
|
|
181
|
+
${ce(!0)}
|
|
182
182
|
gap: 0.5rem;
|
|
183
183
|
padding: 0.5rem;
|
|
184
184
|
color: var(--gray-950, #14161a);
|
|
185
185
|
font-weight: 500;
|
|
186
186
|
font-size: 1rem;
|
|
187
187
|
line-height: 1.5rem;
|
|
188
|
-
border-radius: ${(e) =>
|
|
188
|
+
border-radius: ${(e) => O(e.theme, "slight")};
|
|
189
189
|
transition: all 0.25s ease;
|
|
190
190
|
& .description {
|
|
191
191
|
font-size: 0.85rem;
|
|
@@ -194,7 +194,7 @@ const Ue = h.div`
|
|
|
194
194
|
font-weight: 400;
|
|
195
195
|
}
|
|
196
196
|
& .logo-wrapper {
|
|
197
|
-
${
|
|
197
|
+
${ce(!0, !1, !0)}
|
|
198
198
|
flex-shrink: 0;
|
|
199
199
|
border-radius: 999px;
|
|
200
200
|
|
|
@@ -233,18 +233,18 @@ const Ue = h.div`
|
|
|
233
233
|
background-color: var(--gray-95080, #14161acc);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
@media (max-width: ${
|
|
236
|
+
@media (max-width: ${k + "px"}) {
|
|
237
237
|
padding: 0;
|
|
238
238
|
font-size: 0.875rem;
|
|
239
239
|
}
|
|
240
|
-
`,
|
|
240
|
+
`, Fe = h.div`
|
|
241
241
|
position: absolute;
|
|
242
242
|
top: 0.5rem;
|
|
243
243
|
${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
244
244
|
display: flex;
|
|
245
245
|
gap: 0.25rem;
|
|
246
|
-
`,
|
|
247
|
-
border-radius: ${(e) =>
|
|
246
|
+
`, We = h.div`
|
|
247
|
+
border-radius: ${(e) => O(e.theme, e.borderRadius || "slight")};
|
|
248
248
|
background-color: ${(e) => e == null ? void 0 : e.color};
|
|
249
249
|
color: white;
|
|
250
250
|
height: 1.5rem;
|
|
@@ -259,21 +259,21 @@ const Ue = h.div`
|
|
|
259
259
|
& i {
|
|
260
260
|
font-size: 0.813rem;
|
|
261
261
|
}
|
|
262
|
-
`,
|
|
263
|
-
const i =
|
|
264
|
-
return
|
|
262
|
+
`, Ae = M(({ src: e, ...t }, o) => {
|
|
263
|
+
const i = he();
|
|
264
|
+
return Q(() => {
|
|
265
265
|
var f;
|
|
266
266
|
const l = (s) => {
|
|
267
|
-
s.target.src =
|
|
267
|
+
s.target.src = se, s.onerror = null;
|
|
268
268
|
};
|
|
269
269
|
return (f = i == null ? void 0 : i.current) == null || f.addEventListener("error", l), () => {
|
|
270
270
|
var s;
|
|
271
271
|
(s = i == null ? void 0 : i.current) == null || s.removeEventListener("error", l);
|
|
272
272
|
};
|
|
273
|
-
}, []), /* @__PURE__ */
|
|
274
|
-
}),
|
|
273
|
+
}, []), /* @__PURE__ */ n(Te, { ref: o, children: K(e) ? /* @__PURE__ */ n("img", { ref: i, src: e, ...t }) : /* @__PURE__ */ n("img", { src: se, ...t }) });
|
|
274
|
+
}), we = (e) => {
|
|
275
275
|
const {
|
|
276
|
-
uuid:
|
|
276
|
+
uuid: t,
|
|
277
277
|
hasPermission: o = !0,
|
|
278
278
|
isUser: i,
|
|
279
279
|
image: l,
|
|
@@ -281,45 +281,45 @@ const Ue = h.div`
|
|
|
281
281
|
name: s,
|
|
282
282
|
notifications: m = 0,
|
|
283
283
|
color: c = "primary",
|
|
284
|
-
size:
|
|
285
|
-
style:
|
|
286
|
-
disabled:
|
|
287
|
-
onClick:
|
|
284
|
+
size: w = "large",
|
|
285
|
+
style: N,
|
|
286
|
+
disabled: I,
|
|
287
|
+
onClick: $ = () => {
|
|
288
288
|
},
|
|
289
|
-
isActive:
|
|
290
|
-
className:
|
|
291
|
-
shopCategory:
|
|
289
|
+
isActive: D,
|
|
290
|
+
className: b,
|
|
291
|
+
shopCategory: v,
|
|
292
292
|
// new
|
|
293
|
-
themeData:
|
|
293
|
+
themeData: y
|
|
294
294
|
} = e, _ = {
|
|
295
|
-
theme:
|
|
295
|
+
theme: ee(),
|
|
296
296
|
color: c,
|
|
297
|
-
size:
|
|
298
|
-
style:
|
|
299
|
-
disabled:
|
|
297
|
+
size: w,
|
|
298
|
+
style: N,
|
|
299
|
+
disabled: I
|
|
300
300
|
};
|
|
301
|
-
return /* @__PURE__ */
|
|
302
|
-
|
|
301
|
+
return /* @__PURE__ */ Pe(
|
|
302
|
+
Be,
|
|
303
303
|
{
|
|
304
304
|
onClick: (d) => {
|
|
305
|
-
d.stopPropagation(), o === !0 && (
|
|
305
|
+
d.stopPropagation(), o === !0 && ($ == null || $());
|
|
306
306
|
},
|
|
307
307
|
..._,
|
|
308
308
|
key: s,
|
|
309
|
-
className: `profile-item ${
|
|
309
|
+
className: `profile-item ${b}`,
|
|
310
310
|
hasPermission: o,
|
|
311
|
-
isActive:
|
|
312
|
-
themeColor: (
|
|
311
|
+
isActive: D,
|
|
312
|
+
themeColor: (y == null ? void 0 : y.code) || "transparent"
|
|
313
313
|
},
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ n("div", { className: "logo-wrapper", children: Ue(f) ? f : l }),
|
|
315
315
|
/* @__PURE__ */ g("div", { children: [
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
!i && /* @__PURE__ */
|
|
318
|
-
m > 0 && /* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ n("div", { className: "name", children: s }),
|
|
317
|
+
!i && /* @__PURE__ */ n("div", { className: "description", children: v }),
|
|
318
|
+
m > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Oe, { className: "badge", color: "danger", size: "small", children: m > 99 ? "99+" : m }) })
|
|
319
319
|
] })
|
|
320
320
|
);
|
|
321
321
|
};
|
|
322
|
-
|
|
322
|
+
we.propTypes = {
|
|
323
323
|
id: a.any,
|
|
324
324
|
isUserProfile: a.bool,
|
|
325
325
|
themeColor: a.string,
|
|
@@ -341,18 +341,18 @@ he.propTypes = {
|
|
|
341
341
|
onSelect: a.func,
|
|
342
342
|
hasPermission: a.bool
|
|
343
343
|
};
|
|
344
|
-
const
|
|
345
|
-
if (!e || !
|
|
346
|
-
const o = e.getTime() -
|
|
347
|
-
return
|
|
348
|
-
},
|
|
344
|
+
const de = (e, t) => {
|
|
345
|
+
if (!e || !t) return null;
|
|
346
|
+
const o = e.getTime() - t.getTime(), i = 24 * 60 * 60 * 1e3;
|
|
347
|
+
return Math.floor(o / i);
|
|
348
|
+
}, ge = (e) => {
|
|
349
349
|
if (e !== void 0) {
|
|
350
|
-
const
|
|
351
|
-
return `${String(
|
|
350
|
+
const t = new Date(e), o = t.getFullYear(), i = t.getMonth() + 1;
|
|
351
|
+
return `${String(t.getDate()).padStart(2)}. ${i}. ${o}.`;
|
|
352
352
|
}
|
|
353
|
-
},
|
|
354
|
-
var
|
|
355
|
-
const o =
|
|
353
|
+
}, be = M((e, t) => {
|
|
354
|
+
var ie;
|
|
355
|
+
const o = ee(), {
|
|
356
356
|
// uuid,
|
|
357
357
|
shopUuid: i,
|
|
358
358
|
title: l = "",
|
|
@@ -363,142 +363,145 @@ const ie = (e, n) => {
|
|
|
363
363
|
// status,
|
|
364
364
|
startDate: m,
|
|
365
365
|
endDate: c,
|
|
366
|
-
salesPackages:
|
|
367
|
-
shopName:
|
|
368
|
-
shopCategory:
|
|
369
|
-
shopImage:
|
|
370
|
-
shopImageComponent:
|
|
371
|
-
className:
|
|
372
|
-
onSelectCard:
|
|
366
|
+
salesPackages: w,
|
|
367
|
+
shopName: N,
|
|
368
|
+
shopCategory: I,
|
|
369
|
+
shopImage: $,
|
|
370
|
+
shopImageComponent: D,
|
|
371
|
+
className: b,
|
|
372
|
+
onSelectCard: v = () => {
|
|
373
373
|
},
|
|
374
|
-
onSelectShop:
|
|
374
|
+
onSelectShop: y = () => {
|
|
375
375
|
},
|
|
376
|
-
upcoming:
|
|
376
|
+
upcoming: T = !1,
|
|
377
377
|
upcomingCampaignText: _,
|
|
378
378
|
campaignSingleText: d,
|
|
379
379
|
salesCampaignTypes: p = [],
|
|
380
|
-
startsInPrefixTextPlural:
|
|
381
|
-
startsinSuffixTextPlural:
|
|
382
|
-
startsInPrefixTextSingular:
|
|
383
|
-
startsinSuffixTextSingular:
|
|
384
|
-
endsInPrefixTextPlural:
|
|
385
|
-
endsinSuffixTextPlural:
|
|
386
|
-
endsInPrefixTextSingular:
|
|
387
|
-
endsinSuffixTextSingular:
|
|
388
|
-
themeData:
|
|
389
|
-
numberOfListings:
|
|
390
|
-
numberOfListingsTextSingular:
|
|
391
|
-
numberOfListingsTextPlural:
|
|
392
|
-
|
|
393
|
-
|
|
380
|
+
startsInPrefixTextPlural: W,
|
|
381
|
+
startsinSuffixTextPlural: A,
|
|
382
|
+
startsInPrefixTextSingular: V,
|
|
383
|
+
startsinSuffixTextSingular: re,
|
|
384
|
+
endsInPrefixTextPlural: H,
|
|
385
|
+
endsinSuffixTextPlural: G,
|
|
386
|
+
endsInPrefixTextSingular: X,
|
|
387
|
+
endsinSuffixTextSingular: L,
|
|
388
|
+
themeData: Y,
|
|
389
|
+
numberOfListings: P,
|
|
390
|
+
numberOfListingsTextSingular: r,
|
|
391
|
+
numberOfListingsTextPlural: Z,
|
|
392
|
+
metadata: C,
|
|
393
|
+
...q
|
|
394
|
+
} = e, ne = he(), te = m ? new Date(m) <= /* @__PURE__ */ new Date() : !1, $e = de(
|
|
394
395
|
m ? new Date(m) : null,
|
|
395
396
|
/* @__PURE__ */ new Date()
|
|
396
|
-
),
|
|
397
|
+
), E = de(
|
|
397
398
|
c ? new Date(c) : null,
|
|
398
399
|
/* @__PURE__ */ new Date()
|
|
399
|
-
),
|
|
400
|
+
), _e = E !== null && E <= 2 && E > 0, ae = c ? new Date(c).getTime() : null, Ce = Date.now(), J = ae !== null ? ae - Ce : null, j = J !== null && J > 0 && J < 24 * 60 * 60 * 1e3, oe = (x, B, u, z, S) => u === 1 ? `${x} ${u} ${z}` : `${B} ${u} ${S}`, Se = () => {
|
|
400
401
|
if (!c) return null;
|
|
401
|
-
const
|
|
402
|
+
const x = ke, u = new Date(c).getTime() - x.getTime();
|
|
402
403
|
if (u <= 0) return null;
|
|
403
|
-
const
|
|
404
|
-
return { hours:
|
|
405
|
-
}, [
|
|
406
|
-
|
|
407
|
-
if (!
|
|
408
|
-
const
|
|
409
|
-
|
|
404
|
+
const z = Math.floor(u / (1e3 * 60 * 60)), S = Math.floor(u % (1e3 * 60 * 60) / (1e3 * 60)), Ie = Math.floor(u % (1e3 * 60) / 1e3);
|
|
405
|
+
return { hours: z, minutes: S, seconds: Ie };
|
|
406
|
+
}, [ke, Ne] = U(/* @__PURE__ */ new Date());
|
|
407
|
+
Q(() => {
|
|
408
|
+
if (!j) return;
|
|
409
|
+
const x = setInterval(() => {
|
|
410
|
+
Ne(/* @__PURE__ */ new Date());
|
|
410
411
|
}, 1e3);
|
|
411
|
-
return () => clearInterval(
|
|
412
|
-
}, [
|
|
413
|
-
const
|
|
412
|
+
return () => clearInterval(x);
|
|
413
|
+
}, [j]);
|
|
414
|
+
const R = j ? Se() : null;
|
|
414
415
|
return /* @__PURE__ */ g(
|
|
415
|
-
|
|
416
|
+
Ee,
|
|
416
417
|
{
|
|
417
|
-
ref:
|
|
418
|
+
ref: ne,
|
|
418
419
|
theme: o,
|
|
419
|
-
className:
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
className: b,
|
|
421
|
+
name: C == null ? void 0 : C.name,
|
|
422
|
+
"data-accessor": C == null ? void 0 : C.accessor,
|
|
423
|
+
onClick: (x) => v(x, ne),
|
|
424
|
+
...q,
|
|
422
425
|
children: [
|
|
423
|
-
/* @__PURE__ */ g(
|
|
424
|
-
/* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
var u,
|
|
427
|
-
return /* @__PURE__ */
|
|
428
|
-
|
|
426
|
+
/* @__PURE__ */ g(je, { theme: o, onClick: () => s == null ? void 0 : s(), children: [
|
|
427
|
+
/* @__PURE__ */ n("img", { src: f }),
|
|
428
|
+
/* @__PURE__ */ n(Fe, { children: w == null ? void 0 : w.map((x, B) => {
|
|
429
|
+
var u, z;
|
|
430
|
+
return /* @__PURE__ */ n(
|
|
431
|
+
We,
|
|
429
432
|
{
|
|
430
|
-
color: (u = p == null ? void 0 : p.find((
|
|
433
|
+
color: (u = p == null ? void 0 : p.find((S) => S.value === x)) == null ? void 0 : u.color,
|
|
431
434
|
theme: o,
|
|
432
|
-
children: /* @__PURE__ */
|
|
433
|
-
|
|
435
|
+
children: /* @__PURE__ */ n(
|
|
436
|
+
ue,
|
|
434
437
|
{
|
|
435
|
-
icon: (
|
|
438
|
+
icon: (z = p == null ? void 0 : p.find((S) => S.value === x)) == null ? void 0 : z.icon
|
|
436
439
|
}
|
|
437
440
|
)
|
|
438
441
|
},
|
|
439
|
-
`package__${
|
|
442
|
+
`package__${B}`
|
|
440
443
|
);
|
|
441
444
|
}) })
|
|
442
445
|
] }),
|
|
443
|
-
/* @__PURE__ */ g(
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ g(Re, { theme: o, children: [
|
|
447
|
+
/* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ g("div", { className: "title-block-wrapper", children: [
|
|
448
|
+
/* @__PURE__ */ n("div", { className: "campaign-title", children: (ie = T ? _ : d) == null ? void 0 : ie.toUpperCase() }),
|
|
449
|
+
/* @__PURE__ */ n("div", { className: "campaign-title-text", children: l }),
|
|
447
450
|
c && m && /* @__PURE__ */ g("div", { className: "campaign-date", children: [
|
|
448
|
-
|
|
451
|
+
ge(m),
|
|
449
452
|
" - ",
|
|
450
|
-
|
|
453
|
+
ge(c)
|
|
451
454
|
] }),
|
|
452
455
|
/* @__PURE__ */ g("div", { className: "timestamp-text", children: [
|
|
453
|
-
|
|
454
|
-
|
|
456
|
+
P > 0 && /* @__PURE__ */ g("span", { className: "listings-text", children: [
|
|
457
|
+
P,
|
|
455
458
|
" ",
|
|
456
|
-
|
|
459
|
+
P === 1 ? r : Z,
|
|
457
460
|
" ",
|
|
458
461
|
"∙",
|
|
459
462
|
" "
|
|
460
463
|
] }),
|
|
461
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ n(
|
|
462
465
|
"span",
|
|
463
466
|
{
|
|
464
|
-
className: `duration-text ${
|
|
465
|
-
children:
|
|
466
|
-
|
|
467
|
+
className: `duration-text ${_e ? "urgent" : ""} ${te ? "" : "starts-in"}`,
|
|
468
|
+
children: j && R ? /* @__PURE__ */ g("div", { className: "countdown-timer", children: [
|
|
469
|
+
X,
|
|
467
470
|
" ",
|
|
468
|
-
|
|
471
|
+
R.hours.toString().padStart(2, "0"),
|
|
469
472
|
":",
|
|
470
|
-
|
|
473
|
+
R.minutes.toString().padStart(2, "0"),
|
|
471
474
|
":",
|
|
472
|
-
|
|
473
|
-
] }) :
|
|
474
|
-
|
|
475
|
-
V,
|
|
476
|
-
O,
|
|
475
|
+
R.seconds.toString().padStart(2, "0")
|
|
476
|
+
] }) : te ? oe(
|
|
477
|
+
X,
|
|
477
478
|
H,
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
479
|
+
E,
|
|
480
|
+
L,
|
|
481
|
+
G
|
|
482
|
+
) : oe(
|
|
483
|
+
V,
|
|
484
|
+
W,
|
|
485
|
+
$e,
|
|
486
|
+
re,
|
|
487
|
+
A
|
|
485
488
|
)
|
|
486
489
|
}
|
|
487
490
|
)
|
|
488
491
|
] })
|
|
489
492
|
] }) }),
|
|
490
|
-
/* @__PURE__ */
|
|
491
|
-
|
|
493
|
+
/* @__PURE__ */ n(
|
|
494
|
+
we,
|
|
492
495
|
{
|
|
493
496
|
hasPermission: !0,
|
|
494
|
-
image: /* @__PURE__ */
|
|
495
|
-
imageComponent:
|
|
496
|
-
themeData:
|
|
497
|
+
image: /* @__PURE__ */ n(Ae, { src: $ }),
|
|
498
|
+
imageComponent: D,
|
|
499
|
+
themeData: Y,
|
|
497
500
|
isActive: !0,
|
|
498
501
|
isUser: !1,
|
|
499
|
-
name:
|
|
500
|
-
shopCategory:
|
|
501
|
-
onClick: () =>
|
|
502
|
+
name: N,
|
|
503
|
+
shopCategory: I,
|
|
504
|
+
onClick: () => y(i)
|
|
502
505
|
}
|
|
503
506
|
)
|
|
504
507
|
] })
|
|
@@ -506,7 +509,7 @@ const ie = (e, n) => {
|
|
|
506
509
|
}
|
|
507
510
|
);
|
|
508
511
|
});
|
|
509
|
-
|
|
512
|
+
be.propTypes = {
|
|
510
513
|
title: a.oneOfType([a.string, a.element]),
|
|
511
514
|
numberOfListings: a.number,
|
|
512
515
|
dropdown: a.any,
|
|
@@ -543,7 +546,7 @@ h.div`
|
|
|
543
546
|
}
|
|
544
547
|
}
|
|
545
548
|
|
|
546
|
-
@media (max-width: ${
|
|
549
|
+
@media (max-width: ${k + "px"}) {
|
|
547
550
|
& .campaign-item {
|
|
548
551
|
min-width: 100%;
|
|
549
552
|
width: 100%;
|
|
@@ -551,19 +554,19 @@ h.div`
|
|
|
551
554
|
}
|
|
552
555
|
}
|
|
553
556
|
`;
|
|
554
|
-
const
|
|
557
|
+
const F = h.div`
|
|
555
558
|
width: ${(e) => e.width || "100%"};
|
|
556
559
|
height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
|
|
557
560
|
background-color: var(--gray-200, #dddfe4);
|
|
558
561
|
|
|
559
|
-
${
|
|
560
|
-
`,
|
|
562
|
+
${pe("-90deg")}
|
|
563
|
+
`, Ve = h.div`
|
|
561
564
|
display: flex;
|
|
562
565
|
flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
|
|
563
566
|
gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
|
|
564
567
|
width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
|
|
565
|
-
`,
|
|
566
|
-
border-radius: ${(e) =>
|
|
568
|
+
`, me = h.div`
|
|
569
|
+
border-radius: ${(e) => O(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
|
|
567
570
|
background: var(--gray-200, #dddfe4);
|
|
568
571
|
position: relative;
|
|
569
572
|
max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
|
|
@@ -572,10 +575,10 @@ const B = h.div`
|
|
|
572
575
|
width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
|
|
573
576
|
flex-shrink: 0;
|
|
574
577
|
|
|
575
|
-
${
|
|
576
|
-
`,
|
|
578
|
+
${pe()}
|
|
579
|
+
`, He = h.div`
|
|
577
580
|
background: var(--white, #fff);
|
|
578
|
-
border-radius: ${(e) =>
|
|
581
|
+
border-radius: ${(e) => O(e.theme, "edged")};
|
|
579
582
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
580
583
|
border: 1px solid var(--gray-95012, #14161a1f);
|
|
581
584
|
|
|
@@ -602,59 +605,59 @@ const B = h.div`
|
|
|
602
605
|
gap: 0.5rem;
|
|
603
606
|
}
|
|
604
607
|
|
|
605
|
-
@media (max-width: ${
|
|
608
|
+
@media (max-width: ${k + "px"}) {
|
|
606
609
|
flex-direction: column;
|
|
607
610
|
|
|
608
611
|
& .campaign__user {
|
|
609
612
|
margin-top: 1rem;
|
|
610
613
|
}
|
|
611
614
|
}
|
|
612
|
-
`,
|
|
615
|
+
`, Ge = h.div`
|
|
613
616
|
display: flex;
|
|
614
617
|
gap: 1.5rem;
|
|
615
|
-
`,
|
|
616
|
-
const
|
|
617
|
-
return /* @__PURE__ */ g(
|
|
618
|
-
/* @__PURE__ */
|
|
619
|
-
|
|
618
|
+
`, Xe = M(({}, e) => {
|
|
619
|
+
const t = ee();
|
|
620
|
+
return /* @__PURE__ */ g(He, { ref: e, theme: t, children: [
|
|
621
|
+
/* @__PURE__ */ n("div", { className: "campaign__left-section", children: /* @__PURE__ */ n(
|
|
622
|
+
me,
|
|
620
623
|
{
|
|
621
|
-
theme:
|
|
624
|
+
theme: t,
|
|
622
625
|
width: "15rem",
|
|
623
626
|
height: "15rem",
|
|
624
627
|
borderRadius: "edged"
|
|
625
628
|
}
|
|
626
629
|
) }),
|
|
627
630
|
/* @__PURE__ */ g("div", { className: "campaign__right-section", children: [
|
|
628
|
-
/* @__PURE__ */ g(
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ g(Ve, { theme: t, children: [
|
|
632
|
+
/* @__PURE__ */ n(F, { heightCoeff: 0.75, theme: t, width: "35%" }),
|
|
633
|
+
/* @__PURE__ */ n(F, { heightCoeff: 1.25, theme: t }),
|
|
634
|
+
/* @__PURE__ */ n(F, { heightCoeff: 3, theme: t })
|
|
632
635
|
] }),
|
|
633
636
|
/* @__PURE__ */ g("div", { className: "campaign__user", children: [
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
|
|
637
|
+
/* @__PURE__ */ n(
|
|
638
|
+
me,
|
|
636
639
|
{
|
|
637
|
-
theme:
|
|
640
|
+
theme: t,
|
|
638
641
|
width: "2.5rem",
|
|
639
642
|
height: "2.5rem",
|
|
640
643
|
borderRadius: "curved"
|
|
641
644
|
}
|
|
642
645
|
),
|
|
643
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ n(F, { theme: t, width: "75%" })
|
|
644
647
|
] })
|
|
645
648
|
] })
|
|
646
649
|
] });
|
|
647
|
-
}),
|
|
648
|
-
|
|
650
|
+
}), Ye = ({ itemsCount: e = 5, keyPrefix: t }) => /* @__PURE__ */ n(Ge, { children: Array.from({ length: e }, (o, i) => /* @__PURE__ */ n(
|
|
651
|
+
Xe,
|
|
649
652
|
{},
|
|
650
|
-
`${
|
|
651
|
-
)) }),
|
|
653
|
+
`${t}-skeleton-campaign-card-${i}`
|
|
654
|
+
)) }), Ze = ({
|
|
652
655
|
children: e,
|
|
653
|
-
fallbackComponent:
|
|
656
|
+
fallbackComponent: t = /* @__PURE__ */ n(De, {}),
|
|
654
657
|
isLoading: o = !1,
|
|
655
658
|
itemsCount: i = 5,
|
|
656
659
|
keyPrefix: l
|
|
657
|
-
}) => /* @__PURE__ */
|
|
660
|
+
}) => /* @__PURE__ */ n(ze, { fallback: t, children: o === !0 ? /* @__PURE__ */ n(Ye, { itemsCount: i, keyPrefix: l }) : e }), qe = h.div`
|
|
658
661
|
margin: 0 auto;
|
|
659
662
|
display: flex;
|
|
660
663
|
flex-direction: column;
|
|
@@ -693,7 +696,7 @@ const B = h.div`
|
|
|
693
696
|
right: 0;
|
|
694
697
|
}
|
|
695
698
|
|
|
696
|
-
@media (max-width: ${
|
|
699
|
+
@media (max-width: ${k + "px"}) {
|
|
697
700
|
& .scrollable-section__header {
|
|
698
701
|
& .scrollable-section__title {
|
|
699
702
|
& .title__text {
|
|
@@ -703,13 +706,13 @@ const B = h.div`
|
|
|
703
706
|
}
|
|
704
707
|
}
|
|
705
708
|
}
|
|
706
|
-
`,
|
|
709
|
+
`, Je = h(fe.div)`
|
|
707
710
|
display: grid;
|
|
708
711
|
grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumns}, 1fr);
|
|
709
712
|
gap: 1.5rem;
|
|
710
713
|
width: 100%;
|
|
711
714
|
|
|
712
|
-
@media (max-width: ${
|
|
715
|
+
@media (max-width: ${k + "px"}) {
|
|
713
716
|
display: flex;
|
|
714
717
|
flex-wrap: nowrap;
|
|
715
718
|
overflow-x: scroll;
|
|
@@ -731,26 +734,26 @@ const B = h.div`
|
|
|
731
734
|
/* Safari and Chrome */
|
|
732
735
|
}
|
|
733
736
|
}
|
|
734
|
-
`,
|
|
735
|
-
({ icon: e, title:
|
|
736
|
-
const [s, m] =
|
|
737
|
-
|
|
737
|
+
`, ve = M(
|
|
738
|
+
({ icon: e, title: t, numOfSlides: o = 2, showNavigation: i = !0, children: l }, f) => {
|
|
739
|
+
const [s, m] = U(0), [c, w] = U(1), [N, I] = U(null), [$, D] = U(null), b = xe(), v = (l == null ? void 0 : l.length) ?? 1;
|
|
740
|
+
Q(() => {
|
|
738
741
|
const d = () => {
|
|
739
|
-
|
|
742
|
+
w(o);
|
|
740
743
|
};
|
|
741
744
|
return window.addEventListener("resize", d), d(), () => window.removeEventListener("resize", d);
|
|
742
745
|
}, []);
|
|
743
|
-
const
|
|
746
|
+
const y = b ? l : l == null ? void 0 : l.slice(s, s + c), T = (d) => {
|
|
744
747
|
var p;
|
|
745
|
-
(p = d == null ? void 0 : d.target) == null || p.blur(), s + c <
|
|
748
|
+
(p = d == null ? void 0 : d.target) == null || p.blur(), s + c < v && m(s + c);
|
|
746
749
|
}, _ = (d) => {
|
|
747
750
|
var p;
|
|
748
751
|
(p = d == null ? void 0 : d.target) == null || p.blur(), s - c >= 0 && m(s - c);
|
|
749
752
|
};
|
|
750
|
-
return /* @__PURE__ */ g(
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
|
|
753
|
-
|
|
753
|
+
return /* @__PURE__ */ g(qe, { ref: f, children: [
|
|
754
|
+
/* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ g("div", { className: "scrollable-section__title", children: [
|
|
755
|
+
K(e) && /* @__PURE__ */ n(
|
|
756
|
+
ue,
|
|
754
757
|
{
|
|
755
758
|
icon: e,
|
|
756
759
|
color: "primary",
|
|
@@ -758,13 +761,16 @@ const B = h.div`
|
|
|
758
761
|
className: "title__icon"
|
|
759
762
|
}
|
|
760
763
|
),
|
|
761
|
-
|
|
764
|
+
K(t) && /* @__PURE__ */ g("div", { className: "title__text", children: [
|
|
765
|
+
" ",
|
|
766
|
+
t
|
|
767
|
+
] })
|
|
762
768
|
] }) }),
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
|
|
769
|
+
/* @__PURE__ */ n(
|
|
770
|
+
Je,
|
|
765
771
|
{
|
|
766
772
|
numOfColumns: o,
|
|
767
|
-
...!
|
|
773
|
+
...!b && {
|
|
768
774
|
animate: {
|
|
769
775
|
x: 0,
|
|
770
776
|
opacity: 1
|
|
@@ -774,13 +780,13 @@ const B = h.div`
|
|
|
774
780
|
opacity: 0
|
|
775
781
|
}
|
|
776
782
|
},
|
|
777
|
-
children:
|
|
783
|
+
children: y
|
|
778
784
|
},
|
|
779
785
|
`scrollable-section__content-${s}`
|
|
780
786
|
),
|
|
781
|
-
i &&
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
|
|
787
|
+
i && v > c && !b && /* @__PURE__ */ g("div", { className: "scrollable-section__navigation", children: [
|
|
788
|
+
/* @__PURE__ */ n(
|
|
789
|
+
le,
|
|
784
790
|
{
|
|
785
791
|
icon: "angle-left",
|
|
786
792
|
borderRadius: "curved",
|
|
@@ -791,30 +797,30 @@ const B = h.div`
|
|
|
791
797
|
onClick: _
|
|
792
798
|
}
|
|
793
799
|
),
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
|
|
800
|
+
/* @__PURE__ */ n(
|
|
801
|
+
le,
|
|
796
802
|
{
|
|
797
803
|
icon: "angle-right",
|
|
798
804
|
borderRadius: "curved",
|
|
799
805
|
btnType: "tinted",
|
|
800
806
|
color: "neutral",
|
|
801
807
|
className: "navigation__arrow",
|
|
802
|
-
disabled: s + c >=
|
|
803
|
-
onClick:
|
|
808
|
+
disabled: s + c >= v,
|
|
809
|
+
onClick: T
|
|
804
810
|
}
|
|
805
811
|
)
|
|
806
812
|
] })
|
|
807
813
|
] });
|
|
808
814
|
}
|
|
809
815
|
);
|
|
810
|
-
|
|
816
|
+
ve.propTypes = {
|
|
811
817
|
icon: a.string,
|
|
812
818
|
title: a.string,
|
|
813
819
|
numOfSlides: a.number,
|
|
814
820
|
numOfSlidesForMobile: a.number,
|
|
815
821
|
showNavigation: a.bool
|
|
816
822
|
};
|
|
817
|
-
const
|
|
823
|
+
const Ke = h.div`
|
|
818
824
|
display: flex;
|
|
819
825
|
flex: 1;
|
|
820
826
|
width: 100%;
|
|
@@ -831,36 +837,36 @@ const qe = h.div`
|
|
|
831
837
|
border-radius: 1.25rem;
|
|
832
838
|
object-fit: cover;
|
|
833
839
|
}
|
|
834
|
-
`,
|
|
840
|
+
`, ye = M(
|
|
835
841
|
({
|
|
836
842
|
sectionName: e,
|
|
837
|
-
imageUrl:
|
|
843
|
+
imageUrl: t,
|
|
838
844
|
maxHeight: o = "16.25rem",
|
|
839
845
|
className: i = "",
|
|
840
846
|
handleClick: l = () => {
|
|
841
847
|
}
|
|
842
|
-
}, f) => /* @__PURE__ */
|
|
843
|
-
|
|
848
|
+
}, f) => /* @__PURE__ */ n(
|
|
849
|
+
Ke,
|
|
844
850
|
{
|
|
845
851
|
ref: f,
|
|
846
852
|
maxHeight: o,
|
|
847
853
|
onClick: l,
|
|
848
854
|
className: `itemless-banner ${i}`,
|
|
849
|
-
children: /* @__PURE__ */
|
|
855
|
+
children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${e}` })
|
|
850
856
|
}
|
|
851
857
|
)
|
|
852
858
|
);
|
|
853
|
-
|
|
859
|
+
ye.propTypes = {
|
|
854
860
|
sectionName: a.string,
|
|
855
861
|
imageUrl: a.string,
|
|
856
862
|
maxHeight: a.string,
|
|
857
863
|
className: a.string,
|
|
858
864
|
handleClick: a.func
|
|
859
865
|
};
|
|
860
|
-
const
|
|
866
|
+
const Qe = Me(be), hr = M(
|
|
861
867
|
({
|
|
862
868
|
sellerType: e = "Shop",
|
|
863
|
-
items:
|
|
869
|
+
items: t = [],
|
|
864
870
|
title: o,
|
|
865
871
|
icon: i,
|
|
866
872
|
isLoading: l,
|
|
@@ -871,28 +877,29 @@ const Je = Pe(pe), gr = z(
|
|
|
871
877
|
getImage: m = () => {
|
|
872
878
|
},
|
|
873
879
|
campaignSingleText: c,
|
|
874
|
-
upcomingCampaignText:
|
|
875
|
-
salesCampaignTypes:
|
|
876
|
-
startsInPrefixTextPlural:
|
|
877
|
-
startsinSuffixTextPlural:
|
|
878
|
-
startsInPrefixTextSingular:
|
|
879
|
-
startsinSuffixTextSingular:
|
|
880
|
-
endsInPrefixTextPlural:
|
|
881
|
-
endsinSuffixTextPlural:
|
|
882
|
-
endsInPrefixTextSingular:
|
|
880
|
+
upcomingCampaignText: w,
|
|
881
|
+
salesCampaignTypes: N = [],
|
|
882
|
+
startsInPrefixTextPlural: I,
|
|
883
|
+
startsinSuffixTextPlural: $,
|
|
884
|
+
startsInPrefixTextSingular: D,
|
|
885
|
+
startsinSuffixTextSingular: b,
|
|
886
|
+
endsInPrefixTextPlural: v,
|
|
887
|
+
endsinSuffixTextPlural: y,
|
|
888
|
+
endsInPrefixTextSingular: T,
|
|
883
889
|
endsinSuffixTextSingular: _,
|
|
884
890
|
numOfSlides: d = 2,
|
|
885
891
|
showNavigation: p = !0,
|
|
886
|
-
numberOfListingsTextSingular:
|
|
887
|
-
numberOfListingsTextPlural:
|
|
888
|
-
itemlessImageUrl:
|
|
889
|
-
itemlessLink:
|
|
890
|
-
handleItemlessLink:
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
892
|
+
numberOfListingsTextSingular: W,
|
|
893
|
+
numberOfListingsTextPlural: A,
|
|
894
|
+
itemlessImageUrl: V,
|
|
895
|
+
itemlessLink: re,
|
|
896
|
+
handleItemlessLink: H = () => {
|
|
897
|
+
},
|
|
898
|
+
componentName: G
|
|
899
|
+
}, X) => {
|
|
900
|
+
const L = xe(), Y = Le(() => {
|
|
901
|
+
let P = t == null ? void 0 : t.map((r, Z) => /* @__PURE__ */ n(
|
|
902
|
+
Qe,
|
|
896
903
|
{
|
|
897
904
|
className: "campaign-item",
|
|
898
905
|
coverPhoto: m(
|
|
@@ -911,60 +918,62 @@ const Je = Pe(pe), gr = z(
|
|
|
911
918
|
startDate: r == null ? void 0 : r.startDate,
|
|
912
919
|
title: r == null ? void 0 : r.name,
|
|
913
920
|
uuid: r == null ? void 0 : r.campaignUuid,
|
|
914
|
-
onSelectCard: () => f(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
|
|
921
|
+
onSelectCard: (C, q) => f(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid, q),
|
|
915
922
|
onSelectShop: () => s(r == null ? void 0 : r.shopUuid),
|
|
916
923
|
campaignSingleText: c,
|
|
917
|
-
upcomingCampaignText:
|
|
924
|
+
upcomingCampaignText: w,
|
|
918
925
|
upcoming: r == null ? void 0 : r.upcoming,
|
|
919
|
-
salesCampaignTypes:
|
|
920
|
-
startsInPrefixTextPlural:
|
|
921
|
-
startsinSuffixTextPlural:
|
|
922
|
-
startsInPrefixTextSingular:
|
|
923
|
-
startsinSuffixTextSingular:
|
|
924
|
-
endsInPrefixTextPlural:
|
|
925
|
-
endsinSuffixTextPlural:
|
|
926
|
-
endsInPrefixTextSingular:
|
|
926
|
+
salesCampaignTypes: N,
|
|
927
|
+
startsInPrefixTextPlural: I,
|
|
928
|
+
startsinSuffixTextPlural: $,
|
|
929
|
+
startsInPrefixTextSingular: D,
|
|
930
|
+
startsinSuffixTextSingular: b,
|
|
931
|
+
endsInPrefixTextPlural: v,
|
|
932
|
+
endsinSuffixTextPlural: y,
|
|
933
|
+
endsInPrefixTextSingular: T,
|
|
927
934
|
endsinSuffixTextSingular: _,
|
|
928
935
|
themeData: r == null ? void 0 : r.themeData,
|
|
929
936
|
numberOfListings: r == null ? void 0 : r.numberOfListings,
|
|
930
|
-
numberOfListingsTextSingular:
|
|
931
|
-
numberOfListingsTextPlural:
|
|
937
|
+
numberOfListingsTextSingular: W,
|
|
938
|
+
numberOfListingsTextPlural: A,
|
|
939
|
+
metadata: { name: G, accessor: r == null ? void 0 : r.accessor }
|
|
932
940
|
},
|
|
933
|
-
`campaign__item__${
|
|
941
|
+
`campaign__item__${Z}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
|
|
934
942
|
));
|
|
935
|
-
return (
|
|
936
|
-
...
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
|
|
943
|
+
return (t == null ? void 0 : t.length) < 2 && !L ? [
|
|
944
|
+
...P,
|
|
945
|
+
/* @__PURE__ */ n(
|
|
946
|
+
ye,
|
|
939
947
|
{
|
|
940
|
-
imageUrl:
|
|
948
|
+
imageUrl: V,
|
|
941
949
|
className: "campaign-item",
|
|
942
|
-
handleClick:
|
|
943
|
-
}
|
|
950
|
+
handleClick: H
|
|
951
|
+
},
|
|
952
|
+
"itemless-campaign-section-banner"
|
|
944
953
|
)
|
|
945
|
-
] :
|
|
946
|
-
}, [
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
|
|
954
|
+
] : P;
|
|
955
|
+
}, [t]);
|
|
956
|
+
return /* @__PURE__ */ n(
|
|
957
|
+
Ze,
|
|
949
958
|
{
|
|
950
959
|
isLoading: l,
|
|
951
|
-
itemsCount:
|
|
960
|
+
itemsCount: L ? 1 : 2,
|
|
952
961
|
keyPrefix: "sales-camp",
|
|
953
|
-
children: /* @__PURE__ */
|
|
954
|
-
|
|
962
|
+
children: /* @__PURE__ */ n(
|
|
963
|
+
ve,
|
|
955
964
|
{
|
|
956
965
|
icon: i,
|
|
957
966
|
title: o,
|
|
958
967
|
numOfSlides: d,
|
|
959
968
|
showNavigation: p,
|
|
960
|
-
children:
|
|
969
|
+
children: Y
|
|
961
970
|
},
|
|
962
|
-
`sales-campaign-section__${
|
|
971
|
+
`sales-campaign-section__${L}`
|
|
963
972
|
)
|
|
964
973
|
}
|
|
965
974
|
);
|
|
966
975
|
}
|
|
967
976
|
);
|
|
968
977
|
export {
|
|
969
|
-
|
|
978
|
+
hr as default
|
|
970
979
|
};
|