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