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