@lanaco/lnc-react-ui 4.0.131 → 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.
- package/dist/BannerSectionCarousel.cjs +12 -8
- package/dist/BannerSectionCarousel.js +14 -10
- package/dist/BlogCardsSponsoredSection.cjs +7 -20
- package/dist/BlogCardsSponsoredSection.js +70 -99
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +198 -192
- package/dist/BlogListSection.cjs +4 -18
- package/dist/BlogListSection.js +70 -93
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +2 -5
- package/dist/BlogsSectionDetailed.js +23 -26
- package/dist/BlogsSectionLarge.js +1 -1
- package/dist/BlogsSectionSimple.cjs +14 -7
- package/dist/BlogsSectionSimple.js +83 -72
- package/dist/BlogsSectionSimpleCentered.js +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/ReviewsSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +33 -33
- package/dist/SalesCampaignsSection.js +274 -275
- package/dist/ShopAvatar-4-fCYGEc.js +4 -0
- package/dist/ShopAvatar-CV3lj34D.cjs +1 -0
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-CU0KClNt.js → index-B7pgRoP5.js} +1 -1
- package/dist/{index-3TFXgZHA.js → index-DRP1yTKe.js} +13 -18
- package/dist/{index-EE-IJbC3.js → index-DiPwx53C.js} +2 -8
- package/dist/{skeleton-fVxknFUi.js → skeleton-ChyJLfsR.js} +36 -35
- package/dist/skeleton-Dw2U9XhS.cjs +168 -0
- package/dist/{suspense-product-card-detailed-BP1opdKD.js → suspense-product-card-detailed-CFZchhUK.js} +1 -1
- package/dist/{suspense-product-card-simple-BT5gv-kY.js → suspense-product-card-simple-BuJtwiwA.js} +1 -1
- package/package.json +1 -1
- package/dist/skeleton-Bl1q9Yqe.cjs +0 -168
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
import { a as O,
|
|
5
|
-
import { M } from "./consts-BuFChS64.js";
|
|
6
|
-
import { m as
|
|
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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
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: ${
|
|
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
|
-
`,
|
|
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: ${
|
|
53
|
+
@media (max-width: ${z + "px"}) {
|
|
53
54
|
width: 100%;
|
|
54
55
|
max-width: 100dvh;
|
|
55
56
|
height: 23.438rem;
|
|
56
57
|
}
|
|
57
|
-
`,
|
|
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: ${
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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:
|
|
247
|
-
image:
|
|
248
|
-
name:
|
|
249
|
-
notifications:
|
|
250
|
-
color:
|
|
251
|
-
size:
|
|
252
|
-
style:
|
|
253
|
-
disabled:
|
|
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:
|
|
269
|
+
isActive: T,
|
|
270
|
+
className: $,
|
|
271
|
+
shopCategory: _,
|
|
259
272
|
// new
|
|
260
273
|
themeData: x
|
|
261
274
|
} = e, y = {
|
|
262
|
-
theme:
|
|
263
|
-
color:
|
|
264
|
-
size:
|
|
265
|
-
style:
|
|
266
|
-
disabled:
|
|
275
|
+
theme: K(),
|
|
276
|
+
color: l,
|
|
277
|
+
size: h,
|
|
278
|
+
style: u,
|
|
279
|
+
disabled: C
|
|
267
280
|
};
|
|
268
|
-
return /* @__PURE__ */
|
|
269
|
-
|
|
281
|
+
return /* @__PURE__ */ Ne(
|
|
282
|
+
Oe,
|
|
270
283
|
{
|
|
271
|
-
onClick: (
|
|
272
|
-
|
|
284
|
+
onClick: (N) => {
|
|
285
|
+
N.stopPropagation(), o === !0 && (b == null || b());
|
|
273
286
|
},
|
|
274
287
|
...y,
|
|
275
|
-
key:
|
|
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:
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */ t("div", { className: "name", children:
|
|
284
|
-
!
|
|
285
|
-
|
|
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
|
-
|
|
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
|
|
324
|
+
const se = (e, n) => {
|
|
312
325
|
if (!e || !n) return null;
|
|
313
|
-
const o = e.getTime() - n.getTime(),
|
|
314
|
-
return o >= 0 ? Math.ceil(o /
|
|
315
|
-
},
|
|
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(),
|
|
318
|
-
return `${String(n.getDate()).padStart(2)}. ${
|
|
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
|
-
},
|
|
321
|
-
var
|
|
322
|
-
const o =
|
|
333
|
+
}, fe = M((e, n) => {
|
|
334
|
+
var ne;
|
|
335
|
+
const o = K(), {
|
|
323
336
|
// uuid,
|
|
324
|
-
shopUuid:
|
|
325
|
-
title:
|
|
337
|
+
shopUuid: i,
|
|
338
|
+
title: m = "",
|
|
326
339
|
// description,
|
|
327
340
|
// badges,
|
|
328
|
-
coverPhoto:
|
|
329
|
-
onSelect:
|
|
341
|
+
coverPhoto: d,
|
|
342
|
+
onSelect: c,
|
|
330
343
|
// status,
|
|
331
|
-
startDate:
|
|
332
|
-
endDate:
|
|
333
|
-
salesPackages:
|
|
334
|
-
shopName:
|
|
344
|
+
startDate: l,
|
|
345
|
+
endDate: h,
|
|
346
|
+
salesPackages: u,
|
|
347
|
+
shopName: C,
|
|
335
348
|
shopCategory: b,
|
|
336
|
-
shopImage:
|
|
337
|
-
className:
|
|
338
|
-
onSelectCard:
|
|
349
|
+
shopImage: T,
|
|
350
|
+
className: $,
|
|
351
|
+
onSelectCard: _ = () => {
|
|
339
352
|
},
|
|
340
353
|
onSelectShop: x = () => {
|
|
341
354
|
},
|
|
342
|
-
upcoming:
|
|
355
|
+
upcoming: k = !1,
|
|
343
356
|
upcomingCampaignText: y,
|
|
344
|
-
campaignSingleText:
|
|
357
|
+
campaignSingleText: N,
|
|
345
358
|
salesCampaignTypes: w = [],
|
|
346
359
|
startsInPrefixTextPlural: I,
|
|
347
|
-
startsinSuffixTextPlural:
|
|
360
|
+
startsinSuffixTextPlural: E,
|
|
348
361
|
startsInPrefixTextSingular: j,
|
|
349
|
-
startsinSuffixTextSingular:
|
|
350
|
-
endsInPrefixTextPlural:
|
|
351
|
-
endsinSuffixTextPlural:
|
|
362
|
+
startsinSuffixTextSingular: R,
|
|
363
|
+
endsInPrefixTextPlural: s,
|
|
364
|
+
endsinSuffixTextPlural: p,
|
|
352
365
|
endsInPrefixTextSingular: B,
|
|
353
|
-
endsinSuffixTextSingular:
|
|
354
|
-
themeData:
|
|
355
|
-
numberOfListings:
|
|
356
|
-
numberOfListingsTextSingular:
|
|
366
|
+
endsinSuffixTextSingular: Q,
|
|
367
|
+
themeData: F,
|
|
368
|
+
numberOfListings: L,
|
|
369
|
+
numberOfListingsTextSingular: W,
|
|
357
370
|
numberOfListingsTextPlural: r,
|
|
358
371
|
...Y
|
|
359
|
-
} = e,
|
|
360
|
-
|
|
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 =
|
|
363
|
-
|
|
375
|
+
), A = se(
|
|
376
|
+
h ? new Date(h) : null,
|
|
364
377
|
/* @__PURE__ */ new Date()
|
|
365
|
-
),
|
|
366
|
-
if (!
|
|
367
|
-
const
|
|
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)),
|
|
370
|
-
return { hours: P, minutes: D, seconds:
|
|
371
|
-
}, [
|
|
372
|
-
|
|
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
|
|
375
|
-
|
|
387
|
+
const S = setInterval(() => {
|
|
388
|
+
_e(/* @__PURE__ */ new Date());
|
|
376
389
|
}, 1e3);
|
|
377
|
-
return () => clearInterval(
|
|
390
|
+
return () => clearInterval(S);
|
|
378
391
|
}, [V]);
|
|
379
|
-
const X = V ?
|
|
380
|
-
return /* @__PURE__ */
|
|
381
|
-
|
|
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:
|
|
398
|
+
className: $,
|
|
399
|
+
onClick: _,
|
|
387
400
|
...Y,
|
|
388
401
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
/* @__PURE__ */ t("img", { src:
|
|
391
|
-
/* @__PURE__ */ t(
|
|
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
|
-
|
|
407
|
+
je,
|
|
395
408
|
{
|
|
396
|
-
color: (v = w == null ? void 0 : w.find((D) => D.value ===
|
|
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
|
-
|
|
412
|
+
me,
|
|
400
413
|
{
|
|
401
|
-
icon: (P = w == null ? void 0 : w.find((D) => D.value ===
|
|
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__ */
|
|
410
|
-
/* @__PURE__ */ t("div", { className: "text-block-wrapper", children: /* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */ t("div", { className: "campaign-title", children: (
|
|
412
|
-
/* @__PURE__ */ t("div", { className: "campaign-title-text", children:
|
|
413
|
-
|
|
414
|
-
|
|
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
|
-
|
|
429
|
+
le(h)
|
|
417
430
|
] }),
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
|
|
420
|
-
|
|
431
|
+
/* @__PURE__ */ g("div", { className: "timestamp-text", children: [
|
|
432
|
+
L > 0 && /* @__PURE__ */ g("span", { className: "listings-text", children: [
|
|
433
|
+
L,
|
|
421
434
|
" ",
|
|
422
|
-
|
|
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 ${
|
|
431
|
-
children: V && X ? /* @__PURE__ */
|
|
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
|
-
] }) :
|
|
452
|
+
] }) : ee ? te(
|
|
440
453
|
B,
|
|
441
|
-
|
|
454
|
+
s,
|
|
442
455
|
A,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
) :
|
|
456
|
+
Q,
|
|
457
|
+
p
|
|
458
|
+
) : te(
|
|
446
459
|
j,
|
|
447
460
|
I,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
461
|
+
we,
|
|
462
|
+
R,
|
|
463
|
+
E
|
|
451
464
|
)
|
|
452
465
|
}
|
|
453
466
|
)
|
|
454
467
|
] })
|
|
455
468
|
] }) }),
|
|
456
469
|
/* @__PURE__ */ t(
|
|
457
|
-
|
|
470
|
+
ue,
|
|
458
471
|
{
|
|
459
472
|
hasPermission: !0,
|
|
460
|
-
image: (
|
|
461
|
-
|
|
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:
|
|
477
|
+
name: C,
|
|
479
478
|
shopCategory: b,
|
|
480
|
-
onClick: () => x(
|
|
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
|
-
|
|
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
|
-
|
|
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: ${
|
|
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 =
|
|
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
|
-
${
|
|
539
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
${
|
|
555
|
-
`,
|
|
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: ${
|
|
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
|
-
`,
|
|
590
|
+
`, We = f.div`
|
|
592
591
|
display: flex;
|
|
593
592
|
gap: 1.5rem;
|
|
594
|
-
`,
|
|
595
|
-
const n =
|
|
596
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
607
|
-
/* @__PURE__ */
|
|
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__ */
|
|
611
|
+
/* @__PURE__ */ g("div", { className: "campaign__user", children: [
|
|
613
612
|
/* @__PURE__ */ t(
|
|
614
|
-
|
|
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
|
-
}),
|
|
627
|
-
|
|
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-${
|
|
630
|
-
)) }),
|
|
628
|
+
`${n}-skeleton-campaign-card-${i}`
|
|
629
|
+
)) }), Xe = ({
|
|
631
630
|
children: e,
|
|
632
|
-
fallbackComponent: n = /* @__PURE__ */ t(
|
|
631
|
+
fallbackComponent: n = /* @__PURE__ */ t(Ce, {}),
|
|
633
632
|
isLoading: o = !1,
|
|
634
|
-
itemsCount:
|
|
635
|
-
keyPrefix:
|
|
636
|
-
}) => /* @__PURE__ */ t(
|
|
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
|
-
`,
|
|
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: ${
|
|
682
|
+
@media (max-width: ${z + "px"}) {
|
|
684
683
|
grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumnsForMobile}, 1fr);
|
|
685
684
|
}
|
|
686
|
-
`,
|
|
685
|
+
`, pe = M(
|
|
687
686
|
({
|
|
688
687
|
icon: e,
|
|
689
688
|
title: n,
|
|
690
689
|
numOfSlides: o = 2,
|
|
691
|
-
numOfSlidesForMobile:
|
|
692
|
-
showNavigation:
|
|
693
|
-
children:
|
|
694
|
-
},
|
|
695
|
-
const [
|
|
696
|
-
|
|
697
|
-
const
|
|
698
|
-
|
|
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",
|
|
699
|
+
return window.addEventListener("resize", s), s(), () => window.removeEventListener("resize", s);
|
|
701
700
|
}, []);
|
|
702
|
-
const
|
|
703
|
-
var
|
|
704
|
-
(
|
|
705
|
-
}, I = (
|
|
706
|
-
var
|
|
707
|
-
(
|
|
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__ */
|
|
710
|
-
|
|
708
|
+
return /* @__PURE__ */ g(
|
|
709
|
+
He,
|
|
711
710
|
{
|
|
712
|
-
ref:
|
|
713
|
-
...x ? { onTouchStart: (
|
|
714
|
-
var
|
|
715
|
-
|
|
716
|
-
}, onTouchMove: (
|
|
717
|
-
var
|
|
718
|
-
|
|
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 ||
|
|
721
|
-
const
|
|
722
|
-
|
|
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__ */
|
|
726
|
-
|
|
727
|
-
|
|
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
|
-
|
|
734
|
+
q(n) && /* @__PURE__ */ t("div", { className: "title__text", children: n })
|
|
736
735
|
] }) }),
|
|
737
736
|
/* @__PURE__ */ t(
|
|
738
|
-
|
|
737
|
+
Ge,
|
|
739
738
|
{
|
|
740
739
|
numOfColumns: o,
|
|
741
|
-
numOfColumnsForMobile:
|
|
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:
|
|
749
|
+
children: N
|
|
751
750
|
},
|
|
752
|
-
`scrollable-section__content-${
|
|
751
|
+
`scrollable-section__content-${l}`
|
|
753
752
|
),
|
|
754
|
-
|
|
753
|
+
m && y > u && !x && /* @__PURE__ */ g("div", { className: "scrollable-section__navigation", children: [
|
|
755
754
|
/* @__PURE__ */ t(
|
|
756
|
-
|
|
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:
|
|
762
|
+
disabled: l === 0,
|
|
764
763
|
onClick: I
|
|
765
764
|
}
|
|
766
765
|
),
|
|
767
766
|
/* @__PURE__ */ t(
|
|
768
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
|
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
|
-
`,
|
|
808
|
+
`, xe = M(
|
|
810
809
|
({
|
|
811
810
|
sectionName: e,
|
|
812
811
|
imageUrl: n,
|
|
813
812
|
maxHeight: o = "16.25rem",
|
|
814
|
-
className:
|
|
815
|
-
handleClick:
|
|
813
|
+
className: i = "",
|
|
814
|
+
handleClick: m = () => {
|
|
816
815
|
}
|
|
817
816
|
}) => /* @__PURE__ */ t(
|
|
818
|
-
|
|
817
|
+
Ye,
|
|
819
818
|
{
|
|
820
819
|
maxHeight: o,
|
|
821
|
-
onClick:
|
|
822
|
-
className: `itemless-banner ${
|
|
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
|
-
|
|
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
|
|
833
|
+
const Ze = Ie(fe), cr = M(
|
|
835
834
|
({
|
|
836
835
|
sellerType: e = "Shop",
|
|
837
836
|
items: n = [],
|
|
838
837
|
title: o,
|
|
839
|
-
icon:
|
|
840
|
-
isLoading:
|
|
841
|
-
onSelectCard:
|
|
838
|
+
icon: i,
|
|
839
|
+
isLoading: m,
|
|
840
|
+
onSelectCard: d = () => {
|
|
842
841
|
},
|
|
843
|
-
onSelectShop:
|
|
842
|
+
onSelectShop: c = () => {
|
|
844
843
|
},
|
|
845
|
-
getImage:
|
|
844
|
+
getImage: l = () => {
|
|
846
845
|
},
|
|
847
|
-
campaignSingleText:
|
|
848
|
-
upcomingCampaignText:
|
|
849
|
-
salesCampaignTypes:
|
|
846
|
+
campaignSingleText: h,
|
|
847
|
+
upcomingCampaignText: u,
|
|
848
|
+
salesCampaignTypes: C = [],
|
|
850
849
|
startsInPrefixTextPlural: b,
|
|
851
|
-
startsinSuffixTextPlural:
|
|
852
|
-
startsInPrefixTextSingular:
|
|
853
|
-
startsinSuffixTextSingular:
|
|
850
|
+
startsinSuffixTextPlural: T,
|
|
851
|
+
startsInPrefixTextSingular: $,
|
|
852
|
+
startsinSuffixTextSingular: _,
|
|
854
853
|
endsInPrefixTextPlural: x,
|
|
855
|
-
endsinSuffixTextPlural:
|
|
854
|
+
endsinSuffixTextPlural: k,
|
|
856
855
|
endsInPrefixTextSingular: y,
|
|
857
|
-
endsinSuffixTextSingular:
|
|
856
|
+
endsinSuffixTextSingular: N,
|
|
858
857
|
numOfSlides: w = 2,
|
|
859
858
|
numOfSlidesForMobile: I = 1,
|
|
860
|
-
showNavigation:
|
|
859
|
+
showNavigation: E = !0,
|
|
861
860
|
numberOfListingsTextSingular: j,
|
|
862
|
-
numberOfListingsTextPlural:
|
|
863
|
-
itemlessImageUrl:
|
|
864
|
-
itemlessLink:
|
|
861
|
+
numberOfListingsTextPlural: R,
|
|
862
|
+
itemlessImageUrl: s,
|
|
863
|
+
itemlessLink: p,
|
|
865
864
|
handleItemlessLink: B = () => {
|
|
866
865
|
}
|
|
867
|
-
},
|
|
868
|
-
const
|
|
869
|
-
let
|
|
870
|
-
|
|
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:
|
|
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: () =>
|
|
889
|
-
onSelectShop: () =>
|
|
890
|
-
campaignSingleText:
|
|
891
|
-
upcomingCampaignText:
|
|
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:
|
|
892
|
+
salesCampaignTypes: C,
|
|
894
893
|
startsInPrefixTextPlural: b,
|
|
895
|
-
startsinSuffixTextPlural:
|
|
896
|
-
startsInPrefixTextSingular:
|
|
897
|
-
startsinSuffixTextSingular:
|
|
894
|
+
startsinSuffixTextPlural: T,
|
|
895
|
+
startsInPrefixTextSingular: $,
|
|
896
|
+
startsinSuffixTextSingular: _,
|
|
898
897
|
endsInPrefixTextPlural: x,
|
|
899
|
-
endsinSuffixTextPlural:
|
|
898
|
+
endsinSuffixTextPlural: k,
|
|
900
899
|
endsInPrefixTextSingular: y,
|
|
901
|
-
endsinSuffixTextSingular:
|
|
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:
|
|
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 && !
|
|
910
|
-
...
|
|
908
|
+
return (n == null ? void 0 : n.length) < 2 && !F ? [
|
|
909
|
+
...W,
|
|
911
910
|
/* @__PURE__ */ t(
|
|
912
|
-
|
|
911
|
+
xe,
|
|
913
912
|
{
|
|
914
|
-
imageUrl:
|
|
913
|
+
imageUrl: s,
|
|
915
914
|
className: "campaign-item",
|
|
916
915
|
handleClick: B
|
|
917
916
|
}
|
|
918
917
|
)
|
|
919
|
-
] :
|
|
918
|
+
] : W;
|
|
920
919
|
}, [n]);
|
|
921
920
|
return /* @__PURE__ */ t(
|
|
922
|
-
|
|
921
|
+
Xe,
|
|
923
922
|
{
|
|
924
|
-
isLoading:
|
|
925
|
-
itemsCount:
|
|
923
|
+
isLoading: m,
|
|
924
|
+
itemsCount: F ? 1 : 2,
|
|
926
925
|
keyPrefix: "sales-camp",
|
|
927
926
|
children: /* @__PURE__ */ t(
|
|
928
|
-
|
|
927
|
+
pe,
|
|
929
928
|
{
|
|
930
|
-
icon:
|
|
929
|
+
icon: i,
|
|
931
930
|
title: o,
|
|
932
931
|
numOfSlides: w,
|
|
933
932
|
numOfSlidesForMobile: I,
|
|
934
|
-
showNavigation:
|
|
935
|
-
children:
|
|
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
|
-
|
|
942
|
+
cr as default
|
|
944
943
|
};
|