@lanaco/lnc-react-ui 4.0.39 → 4.0.40
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/BannerSectionBasic.cjs +9 -9
- package/dist/BannerSectionBasic.js +20 -20
- package/dist/BannerSectionCarousel.cjs +13 -5
- package/dist/BannerSectionCarousel.js +29 -21
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +6 -6
- package/dist/BannerSectionSimple.cjs +4 -4
- package/dist/BannerSectionSimple.js +41 -38
- package/dist/BannerSectionWithList.cjs +4 -4
- package/dist/BannerSectionWithList.js +17 -17
- package/dist/BannerSectionWithListImage.cjs +5 -5
- package/dist/BannerSectionWithListImage.js +41 -38
- package/dist/BlogsSectionDetailed.cjs +10 -10
- package/dist/BlogsSectionDetailed.js +32 -33
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +20 -20
- package/dist/BlogsSectionSimpleCentered.cjs +6 -6
- package/dist/BlogsSectionSimpleCentered.js +9 -9
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +65 -64
- package/dist/BrandHitsSection.cjs +12 -7
- package/dist/BrandHitsSection.js +10 -5
- package/dist/CalorieCalculatorSection.cjs +7 -8
- package/dist/CalorieCalculatorSection.js +31 -32
- package/dist/CustomLoanMapSection.cjs +2 -2
- package/dist/CustomLoanMapSection.js +13 -13
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
- package/dist/GeneralWithTagsCardsSection.cjs +18 -6
- package/dist/GeneralWithTagsCardsSection.js +44 -31
- package/dist/GiftCardsSection.cjs +9 -5
- package/dist/GiftCardsSection.js +21 -17
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +21 -1
- package/dist/MasonryGeneralCardsSection.js +20 -0
- package/dist/OverlayGeneralCardsSection.cjs +52 -96
- package/dist/OverlayGeneralCardsSection.js +116 -165
- package/dist/ProductsWithBannerSection.cjs +5 -5
- package/dist/ProductsWithBannerSection.js +26 -26
- package/dist/SalesCampaignsSection.cjs +17 -17
- package/dist/SalesCampaignsSection.js +81 -81
- package/dist/ShopCardsSection.cjs +19 -9
- package/dist/ShopCardsSection.js +54 -40
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
- package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
- package/dist/index-Dn5tPLgP.cjs +95 -0
- package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
- package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
- package/package.json +1 -1
- package/dist/index-Q_i-aqsF.cjs +0 -95
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p, Fragment as G } from "react/jsx-runtime";
|
|
2
|
-
import { createElement as ae, useState as
|
|
3
|
-
import { n as
|
|
4
|
-
import { a as
|
|
2
|
+
import { createElement as ae, useState as P, useEffect as j, forwardRef as V, useRef as Q, useImperativeHandle as ne, Suspense as se, memo as le, useMemo as ce } from "react";
|
|
3
|
+
import { n as f } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { a as z, l as X, m as ee } from "./utils-DtRLzzTZ.js";
|
|
5
5
|
import { M as T } from "./consts-C1uHV4xc.js";
|
|
6
6
|
import { m as de } from "./motion-Ckekul_K.js";
|
|
7
7
|
import { P as i } from "./index-S5Cd7WrG.js";
|
|
@@ -9,16 +9,16 @@ import ge from "./Icon.js";
|
|
|
9
9
|
import he from "./Badge.js";
|
|
10
10
|
import { u as M } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
11
11
|
import { u as re } from "./useDetectMobile-BC6EGaBc.js";
|
|
12
|
-
import
|
|
12
|
+
import fe from "./FlexBox.js";
|
|
13
13
|
import { I as Y } from "./index-wy-PXQR9.js";
|
|
14
14
|
import U from "./IconButton.js";
|
|
15
|
-
const
|
|
15
|
+
const me = f.div`
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
display: flex;
|
|
18
18
|
gap: 1rem;
|
|
19
19
|
padding: 1.25rem;
|
|
20
|
-
border-radius:
|
|
21
|
-
border: 1px solid var(--gray-
|
|
20
|
+
border-radius: 20px;
|
|
21
|
+
border: 1px solid var(--gray-95008, #14161a14);
|
|
22
22
|
|
|
23
23
|
@media (max-width: ${T + "px"}) {
|
|
24
24
|
flex-direction: column;
|
|
@@ -27,8 +27,8 @@ const fe = m.div`
|
|
|
27
27
|
border: none;
|
|
28
28
|
border-radius: 0;
|
|
29
29
|
}
|
|
30
|
-
`, pe =
|
|
31
|
-
border-radius: ${(e) =>
|
|
30
|
+
`, pe = f.div`
|
|
31
|
+
border-radius: ${(e) => z(e.theme, "edged")};
|
|
32
32
|
height: 15rem;
|
|
33
33
|
width: 15rem;
|
|
34
34
|
min-width: 15rem;
|
|
@@ -56,7 +56,7 @@ const fe = m.div`
|
|
|
56
56
|
max-width: 100dvh;
|
|
57
57
|
height: 23.438rem;
|
|
58
58
|
}
|
|
59
|
-
`, ue =
|
|
59
|
+
`, ue = f.div`
|
|
60
60
|
flex: 1;
|
|
61
61
|
display: flex;
|
|
62
62
|
flex-direction: column;
|
|
@@ -137,7 +137,7 @@ const fe = m.div`
|
|
|
137
137
|
${o ? "" : "flex-wrap: nowrap;"}
|
|
138
138
|
${e ? "align-items: center;" : ""}
|
|
139
139
|
${l ? "justify-content: center;" : ""}
|
|
140
|
-
`, be =
|
|
140
|
+
`, be = f(de.div)`
|
|
141
141
|
text-decoration: none;
|
|
142
142
|
${(e) => e.hasPermission === !0 && "cursor: pointer"};
|
|
143
143
|
|
|
@@ -161,7 +161,7 @@ const fe = m.div`
|
|
|
161
161
|
font-weight: 500;
|
|
162
162
|
font-size: 0.875rem;
|
|
163
163
|
line-height: 1.25rem;
|
|
164
|
-
border-radius: ${(e) =>
|
|
164
|
+
border-radius: ${(e) => z(e.theme, "slight")};
|
|
165
165
|
transition: all 0.25s ease;
|
|
166
166
|
|
|
167
167
|
& .logo-wrapper {
|
|
@@ -211,15 +211,15 @@ const fe = m.div`
|
|
|
211
211
|
background-color: var(--gray-95080, #14161acc);
|
|
212
212
|
color: var(--gray-600, #676e79);
|
|
213
213
|
}
|
|
214
|
-
`,
|
|
214
|
+
`, xe = f.div`
|
|
215
215
|
position: absolute;
|
|
216
216
|
top: 0.5rem;
|
|
217
217
|
${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
218
218
|
display: flex;
|
|
219
219
|
gap: 0.25rem;
|
|
220
|
-
`,
|
|
221
|
-
border-radius: ${(e) =>
|
|
222
|
-
background-color: ${(e) =>
|
|
220
|
+
`, ve = (e) => `var(--${e}-700)`, ye = f.div`
|
|
221
|
+
border-radius: ${(e) => z(e.theme, e.borderRadius || "slight")};
|
|
222
|
+
background-color: ${(e) => ve(e == null ? void 0 : e.color)};
|
|
223
223
|
color: white;
|
|
224
224
|
height: 1.5rem;
|
|
225
225
|
min-width: 1.5rem;
|
|
@@ -247,11 +247,11 @@ const fe = m.div`
|
|
|
247
247
|
disabled: s,
|
|
248
248
|
onSelect: d = () => {
|
|
249
249
|
},
|
|
250
|
-
isActive:
|
|
251
|
-
className:
|
|
250
|
+
isActive: v,
|
|
251
|
+
className: x,
|
|
252
252
|
// new
|
|
253
|
-
themeData:
|
|
254
|
-
} = e,
|
|
253
|
+
themeData: m
|
|
254
|
+
} = e, C = {
|
|
255
255
|
theme: M(),
|
|
256
256
|
color: w,
|
|
257
257
|
size: b,
|
|
@@ -264,13 +264,13 @@ const fe = m.div`
|
|
|
264
264
|
onClick: (r) => {
|
|
265
265
|
r.stopPropagation(), l === !0 && (d == null || d());
|
|
266
266
|
},
|
|
267
|
-
...
|
|
267
|
+
...C,
|
|
268
268
|
key: n,
|
|
269
269
|
animate: {
|
|
270
270
|
y: 0,
|
|
271
271
|
opacity: 1
|
|
272
272
|
},
|
|
273
|
-
className: `profile-item ${
|
|
273
|
+
className: `profile-item ${x}`,
|
|
274
274
|
exit: {
|
|
275
275
|
opacity: 0
|
|
276
276
|
},
|
|
@@ -279,8 +279,8 @@ const fe = m.div`
|
|
|
279
279
|
y: -10,
|
|
280
280
|
opacity: 0
|
|
281
281
|
},
|
|
282
|
-
isActive:
|
|
283
|
-
themeColor: (
|
|
282
|
+
isActive: v,
|
|
283
|
+
themeColor: (m == null ? void 0 : m.code) || "transparent"
|
|
284
284
|
},
|
|
285
285
|
/* @__PURE__ */ t("div", { className: "logo-wrapper", children: u }),
|
|
286
286
|
/* @__PURE__ */ t("div", { className: "name", children: n }),
|
|
@@ -325,12 +325,12 @@ const J = (e, o) => {
|
|
|
325
325
|
status: D,
|
|
326
326
|
startDate: s,
|
|
327
327
|
endDate: d,
|
|
328
|
-
salesPackages:
|
|
329
|
-
shopName:
|
|
330
|
-
shopImage:
|
|
328
|
+
salesPackages: v,
|
|
329
|
+
shopName: x,
|
|
330
|
+
shopImage: m,
|
|
331
331
|
onSelectCard: g = () => {
|
|
332
332
|
},
|
|
333
|
-
onSelectShop:
|
|
333
|
+
onSelectShop: C = () => {
|
|
334
334
|
},
|
|
335
335
|
campaignSingleText: r,
|
|
336
336
|
salesCampaignTypes: $ = [],
|
|
@@ -350,7 +350,7 @@ const J = (e, o) => {
|
|
|
350
350
|
/* @__PURE__ */ new Date()
|
|
351
351
|
);
|
|
352
352
|
return /* @__PURE__ */ p(
|
|
353
|
-
|
|
353
|
+
me,
|
|
354
354
|
{
|
|
355
355
|
theme: o,
|
|
356
356
|
onClick: g,
|
|
@@ -358,17 +358,17 @@ const J = (e, o) => {
|
|
|
358
358
|
children: [
|
|
359
359
|
/* @__PURE__ */ p(pe, { theme: o, onClick: () => b == null ? void 0 : b(), children: [
|
|
360
360
|
/* @__PURE__ */ t("img", { src: w }),
|
|
361
|
-
/* @__PURE__ */ t(
|
|
362
|
-
var
|
|
361
|
+
/* @__PURE__ */ t(xe, { children: v == null ? void 0 : v.map((I, A) => {
|
|
362
|
+
var E, L;
|
|
363
363
|
return /* @__PURE__ */ t(
|
|
364
364
|
ye,
|
|
365
365
|
{
|
|
366
|
-
color: (
|
|
366
|
+
color: (E = $ == null ? void 0 : $.find((_) => _.value === I)) == null ? void 0 : E.color,
|
|
367
367
|
theme: o,
|
|
368
368
|
children: /* @__PURE__ */ t(
|
|
369
369
|
ge,
|
|
370
370
|
{
|
|
371
|
-
icon: (L = $ == null ? void 0 : $.find((
|
|
371
|
+
icon: (L = $ == null ? void 0 : $.find((_) => _.value === I)) == null ? void 0 : L.icon
|
|
372
372
|
}
|
|
373
373
|
)
|
|
374
374
|
},
|
|
@@ -399,16 +399,16 @@ const J = (e, o) => {
|
|
|
399
399
|
/* @__PURE__ */ t(
|
|
400
400
|
"img",
|
|
401
401
|
{
|
|
402
|
-
src:
|
|
403
|
-
className: `${
|
|
402
|
+
src: m,
|
|
403
|
+
className: `${m ? "" : "no-image"}`
|
|
404
404
|
}
|
|
405
405
|
)
|
|
406
406
|
),
|
|
407
407
|
themeData: H,
|
|
408
408
|
isActive: !0,
|
|
409
409
|
isUser: !1,
|
|
410
|
-
name:
|
|
411
|
-
onClick: () =>
|
|
410
|
+
name: x,
|
|
411
|
+
onClick: () => C(a)
|
|
412
412
|
}
|
|
413
413
|
)
|
|
414
414
|
] })
|
|
@@ -422,7 +422,7 @@ oe.propTypes = {
|
|
|
422
422
|
dropdown: i.any,
|
|
423
423
|
color: i.string
|
|
424
424
|
};
|
|
425
|
-
const $e =
|
|
425
|
+
const $e = f.div`
|
|
426
426
|
display: flex;
|
|
427
427
|
flex-direction: column;
|
|
428
428
|
gap: 1.5rem;
|
|
@@ -456,7 +456,7 @@ const $e = m.div`
|
|
|
456
456
|
display: flex;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
`, De =
|
|
459
|
+
`, De = f.div`
|
|
460
460
|
display: flex;
|
|
461
461
|
align-items: center;
|
|
462
462
|
|
|
@@ -477,7 +477,7 @@ const $e = m.div`
|
|
|
477
477
|
display: none;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
`,
|
|
480
|
+
`, ke = f.div`
|
|
481
481
|
position: relative;
|
|
482
482
|
padding: ${(e) => e.padding};
|
|
483
483
|
|
|
@@ -555,8 +555,8 @@ const $e = m.div`
|
|
|
555
555
|
right: 0;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
`,
|
|
559
|
-
const [l, a] =
|
|
558
|
+
`, Ce = (e, o) => {
|
|
559
|
+
const [l, a] = P({
|
|
560
560
|
trigger: null,
|
|
561
561
|
direction: null
|
|
562
562
|
}), u = (n) => n.touches || n.originalEvent.touches;
|
|
@@ -570,14 +570,14 @@ const $e = m.div`
|
|
|
570
570
|
}, D = (s) => {
|
|
571
571
|
if (!c || !w)
|
|
572
572
|
return;
|
|
573
|
-
const d = s.touches[0].clientX,
|
|
574
|
-
Math.abs(
|
|
573
|
+
const d = s.touches[0].clientX, v = s.touches[0].clientY, x = c - d, m = w - v;
|
|
574
|
+
Math.abs(x) > Math.abs(m) ? x > 0 ? a((g) => ({
|
|
575
575
|
trigger: !g.trigger,
|
|
576
576
|
direction: F.LEFT
|
|
577
577
|
})) : a((g) => ({
|
|
578
578
|
trigger: !g.trigger,
|
|
579
579
|
direction: F.RIGHT
|
|
580
|
-
})) :
|
|
580
|
+
})) : m > 0 ? a((g) => ({
|
|
581
581
|
trigger: !g.trigger,
|
|
582
582
|
direction: F.UP
|
|
583
583
|
})) : a((g) => ({
|
|
@@ -609,30 +609,30 @@ const $e = m.div`
|
|
|
609
609
|
rightAlignArrows: D = !1,
|
|
610
610
|
padding: s = "0",
|
|
611
611
|
showTimesBtn: d,
|
|
612
|
-
noArrows:
|
|
613
|
-
onShowEnd:
|
|
614
|
-
arrowsZIndex:
|
|
612
|
+
noArrows: v,
|
|
613
|
+
onShowEnd: x,
|
|
614
|
+
arrowsZIndex: m,
|
|
615
615
|
...g
|
|
616
|
-
},
|
|
617
|
-
const r = re(), $ = M(), [S, B] =
|
|
616
|
+
}, C) => {
|
|
617
|
+
const r = re(), $ = M(), [S, B] = P(!1), [N, R] = P(!1), [H, W] = P(!0), h = Q(), y = Ce(h);
|
|
618
618
|
j(() => {
|
|
619
619
|
(y == null ? void 0 : y.direction) === F.RIGHT && N !== !0 ? A() : (y == null ? void 0 : y.direction) === F.LEFT && S !== !0 && I();
|
|
620
620
|
}, [y]);
|
|
621
621
|
const I = () => {
|
|
622
|
-
var
|
|
623
|
-
(
|
|
622
|
+
var k;
|
|
623
|
+
(k = h.current) == null || k.scrollBy(a, 0);
|
|
624
624
|
}, A = () => {
|
|
625
|
-
var
|
|
626
|
-
(
|
|
627
|
-
}, [
|
|
625
|
+
var k;
|
|
626
|
+
(k = h.current) == null || k.scrollBy(-a, 0);
|
|
627
|
+
}, [E, L] = P(!1);
|
|
628
628
|
j(() => {
|
|
629
|
-
var
|
|
629
|
+
var k, Z;
|
|
630
630
|
L(
|
|
631
|
-
((
|
|
631
|
+
((k = h == null ? void 0 : h.current) == null ? void 0 : k.scrollWidth) > ((Z = h == null ? void 0 : h.current) == null ? void 0 : Z.clientWidth)
|
|
632
632
|
);
|
|
633
633
|
}, [c]), ne(w, () => ({
|
|
634
634
|
scrollToEnd() {
|
|
635
|
-
|
|
635
|
+
_();
|
|
636
636
|
},
|
|
637
637
|
scrollLeft() {
|
|
638
638
|
A();
|
|
@@ -641,10 +641,10 @@ const $e = m.div`
|
|
|
641
641
|
I();
|
|
642
642
|
}
|
|
643
643
|
}));
|
|
644
|
-
const
|
|
644
|
+
const _ = () => {
|
|
645
645
|
h.current.scrollLeft = h.current.scrollWidth;
|
|
646
646
|
};
|
|
647
|
-
return /* @__PURE__ */ p($e, { arrowsZIndex:
|
|
647
|
+
return /* @__PURE__ */ p($e, { arrowsZIndex: m, children: [
|
|
648
648
|
/* @__PURE__ */ p(De, { children: [
|
|
649
649
|
/* @__PURE__ */ t("div", { children: e }),
|
|
650
650
|
/* @__PURE__ */ p("div", { className: "btns-group", children: [
|
|
@@ -699,19 +699,19 @@ const $e = m.div`
|
|
|
699
699
|
}
|
|
700
700
|
),
|
|
701
701
|
/* @__PURE__ */ t(
|
|
702
|
-
|
|
702
|
+
ke,
|
|
703
703
|
{
|
|
704
|
-
ref:
|
|
704
|
+
ref: C,
|
|
705
705
|
arrowsVisibleOnHover: b,
|
|
706
|
-
hasOverflow:
|
|
707
|
-
noArrows:
|
|
706
|
+
hasOverflow: E,
|
|
707
|
+
noArrows: v,
|
|
708
708
|
padding: s,
|
|
709
709
|
rightAlignArrows: D,
|
|
710
710
|
showTimesBtn: d,
|
|
711
711
|
theme: $,
|
|
712
712
|
...g,
|
|
713
713
|
children: /* @__PURE__ */ p(
|
|
714
|
-
|
|
714
|
+
fe,
|
|
715
715
|
{
|
|
716
716
|
ref: h,
|
|
717
717
|
className: "scrollable-container",
|
|
@@ -740,11 +740,11 @@ const $e = m.div`
|
|
|
740
740
|
S === !0 && B(!1), W(!0);
|
|
741
741
|
},
|
|
742
742
|
onIsVisible: () => {
|
|
743
|
-
S === !1 && B(!0), W(!1),
|
|
743
|
+
S === !1 && B(!0), W(!1), x == null || x();
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
),
|
|
747
|
-
H &&
|
|
747
|
+
H && E && /* @__PURE__ */ t("div", { className: "gradient" })
|
|
748
748
|
]
|
|
749
749
|
}
|
|
750
750
|
)
|
|
@@ -765,7 +765,7 @@ ie.propTypes = {
|
|
|
765
765
|
rightAlignArrows: i.bool,
|
|
766
766
|
padding: i.string
|
|
767
767
|
};
|
|
768
|
-
const Se =
|
|
768
|
+
const Se = f.div`
|
|
769
769
|
display: flex;
|
|
770
770
|
flex-direction: column;
|
|
771
771
|
gap: 1.5rem;
|
|
@@ -795,19 +795,19 @@ const Se = m.div`
|
|
|
795
795
|
margin-right: 0;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
`, O =
|
|
798
|
+
`, O = f.div`
|
|
799
799
|
width: ${(e) => e.width || "100%"};
|
|
800
800
|
height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
|
|
801
801
|
background-color: var(--gray-200, #dddfe4);
|
|
802
802
|
|
|
803
803
|
${ee("-90deg")}
|
|
804
|
-
`, Ne =
|
|
804
|
+
`, Ne = f.div`
|
|
805
805
|
display: flex;
|
|
806
806
|
flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
|
|
807
807
|
gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
|
|
808
808
|
width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
|
|
809
|
-
`, K =
|
|
810
|
-
border-radius: ${(e) =>
|
|
809
|
+
`, K = f.div`
|
|
810
|
+
border-radius: ${(e) => z(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
|
|
811
811
|
background: var(--gray-200, #dddfe4);
|
|
812
812
|
position: relative;
|
|
813
813
|
max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
|
|
@@ -817,9 +817,9 @@ const Se = m.div`
|
|
|
817
817
|
flex-shrink: 0;
|
|
818
818
|
|
|
819
819
|
${ee()}
|
|
820
|
-
`, Ie =
|
|
820
|
+
`, Ie = f.div`
|
|
821
821
|
background: var(--white, #fff);
|
|
822
|
-
border-radius:
|
|
822
|
+
border-radius: ${(e) => z(e.theme, "edged")};
|
|
823
823
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
824
824
|
border: 1px solid var(--gray-95012, #14161a1f);
|
|
825
825
|
|
|
@@ -904,9 +904,9 @@ const Se = m.div`
|
|
|
904
904
|
startsInPrefixTextPlural: D,
|
|
905
905
|
startsinSuffixTextPlural: s,
|
|
906
906
|
startsInPrefixTextSingular: d,
|
|
907
|
-
startsinSuffixTextSingular:
|
|
908
|
-
},
|
|
909
|
-
const
|
|
907
|
+
startsinSuffixTextSingular: v
|
|
908
|
+
}, x) => {
|
|
909
|
+
const m = Q(), g = re(), C = ce(() => o == null ? void 0 : o.map((r, $) => /* @__PURE__ */ t(
|
|
910
910
|
Ee,
|
|
911
911
|
{
|
|
912
912
|
className: "campaign-item",
|
|
@@ -928,17 +928,17 @@ const Se = m.div`
|
|
|
928
928
|
startsInPrefixTextPlural: D,
|
|
929
929
|
startsinSuffixTextPlural: s,
|
|
930
930
|
startsInPrefixTextSingular: d,
|
|
931
|
-
startsinSuffixTextSingular:
|
|
931
|
+
startsinSuffixTextSingular: v,
|
|
932
932
|
themeData: r == null ? void 0 : r.themeData
|
|
933
933
|
},
|
|
934
934
|
`campaign__item__${$}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
|
|
935
935
|
)), [o]);
|
|
936
|
-
return /* @__PURE__ */ t(G, { children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(Se, { ref:
|
|
936
|
+
return /* @__PURE__ */ t(G, { children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(Se, { ref: x, className: "row-section-scroll", children: /* @__PURE__ */ t(
|
|
937
937
|
ie,
|
|
938
938
|
{
|
|
939
939
|
arrowsVisibleOnHover: !1,
|
|
940
940
|
columnGap: "0",
|
|
941
|
-
methodsRef:
|
|
941
|
+
methodsRef: m,
|
|
942
942
|
mobileHoverScrollButtons: !0,
|
|
943
943
|
noArrows: !0,
|
|
944
944
|
padding: "0.25rem 0",
|
|
@@ -955,7 +955,7 @@ const Se = m.div`
|
|
|
955
955
|
isLoading: a,
|
|
956
956
|
itemsCount: 2,
|
|
957
957
|
keyPrefix: "sales-camp",
|
|
958
|
-
children:
|
|
958
|
+
children: C
|
|
959
959
|
}
|
|
960
960
|
)
|
|
961
961
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),g=require("react"),f=require("./Button.cjs"),v=require("./Icon.cjs"),l=require("./utils-NZLCh-J5.cjs"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./consts-CtNoHdBj.cjs"),j=h.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
5
|
border-radius: 1.25rem;
|
|
6
6
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
7
7
|
background: var(--Lanaco-Gray-white, #fff);
|
|
8
|
+
width: 100%;
|
|
8
9
|
|
|
9
10
|
/* drop-shadow-sm */
|
|
10
11
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
font-weight: 500;
|
|
43
44
|
line-height: 1.5rem;
|
|
44
45
|
letter-spacing: -0.0112rem;
|
|
45
|
-
${
|
|
46
|
+
${l.truncateTextInRows(2)}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
& .wrapper__subtitle {
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
font-weight: 400;
|
|
54
55
|
line-height: 1.25rem;
|
|
55
56
|
letter-spacing: -0.0056rem;
|
|
56
|
-
${
|
|
57
|
+
${l.truncateTextInRows(2)}
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
& .wrapper__badges {
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
`,
|
|
112
|
+
`,u=h.newStyled.div`
|
|
112
113
|
display: flex;
|
|
113
114
|
flex-direction: column;
|
|
114
115
|
align-items: center;
|
|
@@ -134,7 +135,7 @@
|
|
|
134
135
|
width: 4rem;
|
|
135
136
|
height: 4rem;
|
|
136
137
|
border-radius: 999px;
|
|
137
|
-
background-color: ${
|
|
138
|
+
background-color: ${l.linearGradientAnimation("-90deg")};
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
|
|
@@ -146,12 +147,12 @@
|
|
|
146
147
|
width: 100%;
|
|
147
148
|
|
|
148
149
|
& .wrapper__info-item {
|
|
149
|
-
background-color: ${
|
|
150
|
+
background-color: ${l.linearGradientAnimation("-90deg")};
|
|
150
151
|
height: 1rem;
|
|
151
152
|
width: 100%;
|
|
152
153
|
}
|
|
153
154
|
}
|
|
154
|
-
`,
|
|
155
|
+
`,b=g.forwardRef(({image:a,imageComponent:p,title:s,subtitle:c,badges:x,rating:m,reviewCount:t,products:n,onSelectCard:_=()=>{}},w)=>e.jsxs(j,{onClick:_,children:[e.jsxs("div",{className:"wrapper__content",children:[l.isDefined(p)?p:e.jsx("img",{src:a,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__title",children:s}),e.jsx("div",{className:"wrapper__subtitle",children:c}),x&&e.jsx("div",{className:"wrapper__badges"}),m&&t&&e.jsxs("div",{className:"wrapper__rating",children:[e.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((i,o)=>e.jsx(v,{icon:i<m?" mng-lnc-star--filled":" mng-lnc-star",className:"wrapper__star"},`shop-card-rating-star__${o+1}`))}),e.jsxs("div",{className:"wrapper__review-count",children:["(",t==null?void 0:t.toLocaleString(),")"]})]})]})]}),e.jsx("div",{className:"wrapper__products",children:n&&(n==null?void 0:n.map((i,o)=>e.jsx(g.Fragment,{children:e.jsx("div",{className:"wrapper__product",onClick:()=>{var r;return(r=i==null?void 0:i.onSelectProduct)==null?void 0:r.call(i,i==null?void 0:i.uuid)},children:l.isDefined(i==null?void 0:i.imageComponent)?i==null?void 0:i.imageComponent:e.jsx("img",{src:i==null?void 0:i.image,className:"product__image"})})},o)))})]})),N=g.forwardRef(({},a)=>e.jsx(u,{children:e.jsxs("div",{className:"wrapper__content",children:[e.jsx("div",{className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"})]})]})})),k=h.newStyled.div`
|
|
155
156
|
display: flex;
|
|
156
157
|
flex-direction: column;
|
|
157
158
|
align-items: flex-start;
|
|
@@ -175,6 +176,15 @@
|
|
|
175
176
|
font-weight: 600;
|
|
176
177
|
line-height: 2rem;
|
|
177
178
|
letter-spacing: -0.47px;
|
|
179
|
+
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: 0.5rem;
|
|
183
|
+
|
|
184
|
+
& i {
|
|
185
|
+
font-size: 1.5rem;
|
|
186
|
+
color: var(--primary-500, #f59e0b);
|
|
187
|
+
}
|
|
178
188
|
}
|
|
179
189
|
|
|
180
190
|
& .title__action {
|
|
@@ -210,7 +220,7 @@
|
|
|
210
220
|
width: 100%;
|
|
211
221
|
}
|
|
212
222
|
|
|
213
|
-
@media (max-width: ${
|
|
223
|
+
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
214
224
|
& .wrapper__heading {
|
|
215
225
|
& .wrapper__title {
|
|
216
226
|
& .title__action {
|
|
@@ -231,4 +241,4 @@
|
|
|
231
241
|
gap: 1rem;
|
|
232
242
|
}
|
|
233
243
|
}
|
|
234
|
-
`,$=
|
|
244
|
+
`,$=g.forwardRef(({title:a,subtitle:p,items:s,limit:c=4,limitForMobile:x=2,buttonText:m="Show More",onSelectCard:t=()=>{},onButtonAction:n=()=>{},icon:_},w)=>{var o;const i=r=>{t==null||t(r==null?void 0:r.uuid)};return e.jsxs(k,{ref:w,limitCards:c,limitCardsForMobile:x,children:[e.jsxs("div",{className:"wrapper__heading",children:[e.jsxs("div",{className:"wrapper__title",children:[a&&e.jsxs("div",{className:"title__text",children:[l.isDefinedNotEmptyString(_)&&e.jsx("i",{className:_}),e.jsx("span",{children:a})]}),n&&e.jsx(f,{text:m,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:n})]}),p&&e.jsx("div",{className:"wrapper__subtitle",children:p})]}),e.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((r,d)=>e.jsx(b,{uuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,subtitle:r==null?void 0:r.subtitle,image:r==null?void 0:r.image,rating:r==null?void 0:r.rating,reviewCount:r==null?void 0:r.reviewCount,products:r==null?void 0:r.products,imageComponent:r==null?void 0:r.imageComponent,onSelectCard:()=>i==null?void 0:i(r)},`shop-card__${d+1}`)):(o=Array.from("1234"))==null?void 0:o.map((r,d)=>e.jsx(N,{},`shop-card-skeleton__${d+1}`))})]})});module.exports=$;
|