mimir-ui-kit 1.43.6 → 1.43.8
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.
@@ -60,6 +60,10 @@ export type TProps = {
|
|
60
60
|
* Класс, применяемый к карточке.
|
61
61
|
*/
|
62
62
|
cardClassName?: string;
|
63
|
+
/**
|
64
|
+
* Колбэк, вызываемый при клике на стрелку.
|
65
|
+
*/
|
66
|
+
onArrowClick?: () => void;
|
63
67
|
};
|
64
68
|
export declare const CardTrail: import('react').ForwardRefExoticComponent<TProps & {
|
65
69
|
children?: import('react').ReactNode | undefined;
|
@@ -1,67 +1,68 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import { forwardRef as
|
4
|
-
import { DEFAULT_SPACE_BETWEEN as
|
5
|
-
import { hasHorizontalScroll as
|
6
|
-
import { useMergeRefs as
|
7
|
-
import { useThrottledCallback as
|
8
|
-
import { MergedButton as
|
9
|
-
import '../../assets/CardTrail.css';const
|
1
|
+
import { jsxs as L, jsx as u } from "react/jsx-runtime";
|
2
|
+
import { c as n } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as G, useRef as _, useState as g, useEffect as J, Children as K } from "react";
|
4
|
+
import { DEFAULT_SPACE_BETWEEN as Q, DEFAULT_SCROLL_STEP as Z, DEFAULT_DIVIDED as rr, DEFAULT_CARD_INDEX as tr } from "./constants.js";
|
5
|
+
import { hasHorizontalScroll as p, getCSSVariableNumericValue as z, isScrollAtEdge as W } from "./utils.js";
|
6
|
+
import { useMergeRefs as er } from "../../hooks/useMergeRefs/useMergeRefs.js";
|
7
|
+
import { useThrottledCallback as ar } from "../../hooks/useThrottledCallback/index.js";
|
8
|
+
import { MergedButton as ir } from "../MergedButton/MergedButton.js";
|
9
|
+
import '../../assets/CardTrail.css';const cr = "_pointer_1wzbr_50", i = {
|
10
10
|
"card-trail": "_card-trail_1wzbr_3",
|
11
11
|
"card-trail-header": "_card-trail-header_1wzbr_7",
|
12
12
|
"card-trail-header-title": "_card-trail-header-title_1wzbr_15",
|
13
13
|
"card-trail-header-merged-button": "_card-trail-header-merged-button_1wzbr_29",
|
14
14
|
"card-trail-list": "_card-trail-list_1wzbr_32",
|
15
15
|
"card-trail-list-item": "_card-trail-list-item_1wzbr_46",
|
16
|
-
pointer:
|
16
|
+
pointer: cr
|
17
17
|
};
|
18
|
-
let
|
19
|
-
const
|
18
|
+
let w = {};
|
19
|
+
const fr = G((R, I) => {
|
20
20
|
const {
|
21
|
-
cardClassName:
|
22
|
-
cardTrailClassName:
|
23
|
-
cardTrailHeaderClassName:
|
24
|
-
cardTrailListClassName:
|
25
|
-
cardTrailMergedButtonClassName:
|
26
|
-
children:
|
27
|
-
title:
|
28
|
-
spaceBetween:
|
29
|
-
scrollStep:
|
30
|
-
dividedCardWidth:
|
31
|
-
currentCardIndex:
|
21
|
+
cardClassName: A,
|
22
|
+
cardTrailClassName: y,
|
23
|
+
cardTrailHeaderClassName: M,
|
24
|
+
cardTrailListClassName: V,
|
25
|
+
cardTrailMergedButtonClassName: k,
|
26
|
+
children: b,
|
27
|
+
title: h,
|
28
|
+
spaceBetween: s = Q,
|
29
|
+
scrollStep: C = Z,
|
30
|
+
dividedCardWidth: x = rr,
|
31
|
+
currentCardIndex: m = tr,
|
32
32
|
mergedButtonProps: c,
|
33
|
-
scrollToCard:
|
34
|
-
needButtons:
|
35
|
-
padding:
|
36
|
-
|
33
|
+
scrollToCard: B = !1,
|
34
|
+
needButtons: N = !0,
|
35
|
+
padding: S = 0,
|
36
|
+
onArrowClick: l
|
37
|
+
} = R, r = _(null), E = _(!0), d = _(null), [o, U] = g({
|
37
38
|
leftButton: !0,
|
38
39
|
rightButton: !1
|
39
|
-
}), [
|
40
|
-
() =>
|
41
|
-
),
|
42
|
-
var
|
43
|
-
if (
|
44
|
-
|
45
|
-
const
|
46
|
-
|
47
|
-
|
40
|
+
}), [F, H] = g(0), [T, v] = g(
|
41
|
+
() => p(r == null ? void 0 : r.current)
|
42
|
+
), O = er(r, I), $ = ar(() => {
|
43
|
+
var D;
|
44
|
+
if (E.current) {
|
45
|
+
E.current = !1;
|
46
|
+
const f = r.current, X = ((D = f == null ? void 0 : f.children[m]) == null ? void 0 : D.clientWidth) ?? 0, Y = z(S);
|
47
|
+
H(
|
48
|
+
X / x + Y + s
|
48
49
|
);
|
49
50
|
}
|
50
|
-
const t =
|
51
|
-
|
51
|
+
const t = z(S);
|
52
|
+
w = {
|
52
53
|
paddingLeft: t,
|
53
54
|
paddingRight: t,
|
54
55
|
marginLeft: -t,
|
55
56
|
marginRight: -t
|
56
57
|
};
|
57
|
-
const e = !
|
58
|
-
|
58
|
+
const e = !W(r.current, "left"), a = !W(r.current, "right");
|
59
|
+
U({
|
59
60
|
leftButton: !e,
|
60
61
|
rightButton: !a
|
61
62
|
});
|
62
|
-
}, 300),
|
63
|
+
}, 300), j = (t) => () => {
|
63
64
|
var a;
|
64
|
-
if (!
|
65
|
+
if (!B)
|
65
66
|
return;
|
66
67
|
const e = (a = r == null ? void 0 : r.current) == null ? void 0 : a.querySelector(
|
67
68
|
`[data-active-card='${t}']`
|
@@ -71,55 +72,55 @@ const mr = Y((W, A) => {
|
|
71
72
|
block: "nearest",
|
72
73
|
inline: "center"
|
73
74
|
}));
|
74
|
-
},
|
75
|
+
}, q = () => {
|
75
76
|
var a;
|
76
|
-
if (!r.current ||
|
77
|
-
const t = r.current, e = ((a = t.children[
|
77
|
+
if (l == null || l(), !r.current || o.leftButton) return;
|
78
|
+
const t = r.current, e = ((a = t.children[m]) == null ? void 0 : a.clientWidth) ?? 0;
|
78
79
|
t.scrollBy({
|
79
|
-
left: -(e +
|
80
|
+
left: -(e + s) * C,
|
80
81
|
behavior: "smooth"
|
81
82
|
});
|
82
|
-
},
|
83
|
+
}, P = () => {
|
83
84
|
var a;
|
84
|
-
if (!r.current ||
|
85
|
-
const t = r.current, e = ((a = t.children[
|
85
|
+
if (l == null || l(), !r.current || o.rightButton) return;
|
86
|
+
const t = r.current, e = ((a = t.children[m]) == null ? void 0 : a.clientWidth) ?? 0;
|
86
87
|
t.scrollBy({
|
87
|
-
left: (e +
|
88
|
+
left: (e + s) * C,
|
88
89
|
behavior: "smooth"
|
89
90
|
});
|
90
91
|
};
|
91
|
-
return
|
92
|
+
return J(() => {
|
92
93
|
const t = r.current;
|
93
94
|
if (t)
|
94
|
-
return
|
95
|
-
|
96
|
-
}),
|
97
|
-
|
95
|
+
return d.current = new ResizeObserver(() => {
|
96
|
+
v(p(r == null ? void 0 : r.current));
|
97
|
+
}), d.current.observe(t), v(p(r == null ? void 0 : r.current)), () => {
|
98
|
+
d.current && d.current.disconnect();
|
98
99
|
};
|
99
|
-
}, [
|
100
|
-
(
|
100
|
+
}, [b]), /* @__PURE__ */ L("section", { className: n(i["card-trail"], y), children: [
|
101
|
+
(h || T && N) && /* @__PURE__ */ L(
|
101
102
|
"header",
|
102
103
|
{
|
103
|
-
className:
|
104
|
+
className: n(
|
104
105
|
i["card-trail-header"],
|
105
|
-
|
106
|
+
M
|
106
107
|
),
|
107
108
|
children: [
|
108
|
-
|
109
|
-
|
110
|
-
|
109
|
+
h && /* @__PURE__ */ u("h3", { className: i["card-trail-header-title"], children: h }),
|
110
|
+
T && N && /* @__PURE__ */ u(
|
111
|
+
ir,
|
111
112
|
{
|
112
|
-
buttonsWrapperClassName:
|
113
|
+
buttonsWrapperClassName: n(
|
113
114
|
i["card-trail-header-merged-button"],
|
114
|
-
|
115
|
+
k
|
115
116
|
),
|
116
117
|
buttons: [
|
117
118
|
{
|
118
119
|
isIconButton: !0,
|
119
120
|
iconName: "ArrowLeft16px",
|
120
121
|
variant: "gray",
|
121
|
-
onClick:
|
122
|
-
disabled:
|
122
|
+
onClick: q,
|
123
|
+
disabled: o.leftButton,
|
123
124
|
size: "s",
|
124
125
|
...c == null ? void 0 : c.leftButton
|
125
126
|
},
|
@@ -127,9 +128,9 @@ const mr = Y((W, A) => {
|
|
127
128
|
isIconButton: !0,
|
128
129
|
iconName: "ArrowRight16px",
|
129
130
|
variant: "gray",
|
130
|
-
onClick:
|
131
|
+
onClick: P,
|
131
132
|
size: "s",
|
132
|
-
disabled:
|
133
|
+
disabled: o.rightButton,
|
133
134
|
...c == null ? void 0 : c.rightButton
|
134
135
|
}
|
135
136
|
]
|
@@ -138,27 +139,27 @@ const mr = Y((W, A) => {
|
|
138
139
|
]
|
139
140
|
}
|
140
141
|
),
|
141
|
-
/* @__PURE__ */
|
142
|
+
/* @__PURE__ */ u(
|
142
143
|
"ul",
|
143
144
|
{
|
144
|
-
onScroll:
|
145
|
+
onScroll: $,
|
145
146
|
style: {
|
146
|
-
gap:
|
147
|
-
scrollPadding: `0 ${
|
148
|
-
...
|
147
|
+
gap: s,
|
148
|
+
scrollPadding: `0 ${F}px`,
|
149
|
+
...w
|
149
150
|
},
|
150
|
-
className:
|
151
|
-
ref:
|
152
|
-
children:
|
151
|
+
className: n(i["card-trail-list"], V),
|
152
|
+
ref: O,
|
153
|
+
children: K.map(b, (t, e) => /* @__PURE__ */ u(
|
153
154
|
"li",
|
154
155
|
{
|
155
|
-
onClick:
|
156
|
+
onClick: j(e),
|
156
157
|
"data-active-card": e,
|
157
158
|
"data-testid": `card-trail-item-${e}`,
|
158
|
-
className:
|
159
|
+
className: n(
|
159
160
|
i["card-trail-list-item"],
|
160
|
-
{ [i.pointer]:
|
161
|
-
|
161
|
+
{ [i.pointer]: B },
|
162
|
+
A
|
162
163
|
),
|
163
164
|
children: t
|
164
165
|
}
|
@@ -168,5 +169,5 @@ const mr = Y((W, A) => {
|
|
168
169
|
] });
|
169
170
|
});
|
170
171
|
export {
|
171
|
-
|
172
|
+
fr as CardTrail
|
172
173
|
};
|
@@ -53,7 +53,7 @@ type TProps = {
|
|
53
53
|
/**
|
54
54
|
* Функция, которая будет вызвана при клике на слайд.
|
55
55
|
*/
|
56
|
-
onSlideClick?:
|
56
|
+
onSlideClick?: (slide: TPromoSlide) => void;
|
57
57
|
};
|
58
58
|
export declare const PromoSlider: ({ slides, onSlideClick, delay, spaceBetween, imageClassName, slideClassName, swiperClassName, contentClassName }: TProps) => import("react/jsx-runtime").JSX.Element;
|
59
59
|
export {};
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { jsxs as Y, jsx as
|
2
|
-
import { c as
|
1
|
+
import { jsxs as Y, jsx as k, Fragment as F } from "react/jsx-runtime";
|
2
|
+
import { c as H } from "../../index-DIxK0V-G.js";
|
3
3
|
import { useState as j } from "react";
|
4
|
-
import { g as R, b as G, e as U, c as $, n as B, d as
|
4
|
+
import { g as R, b as G, e as U, c as $, n as B, d as S, S as q, A as Z, a as J } from "../../swiper-react-BvAw14a4.js";
|
5
5
|
import { Chip as Q } from "../Chip/Chip.js";
|
6
6
|
import { AppImage as ee } from "../Image/Image.js";
|
7
7
|
import '../../assets/PromoSlider.css';function te(P) {
|
8
8
|
let {
|
9
9
|
swiper: e,
|
10
|
-
extendParams:
|
10
|
+
extendParams: L,
|
11
11
|
on: T,
|
12
12
|
emit: x
|
13
13
|
} = P;
|
14
14
|
const p = R(), v = G();
|
15
15
|
e.keyboard = {
|
16
16
|
enabled: !1
|
17
|
-
},
|
17
|
+
}, L({
|
18
18
|
keyboard: {
|
19
19
|
enabled: !1,
|
20
20
|
onlyInViewport: !0,
|
@@ -28,12 +28,12 @@ import '../../assets/PromoSlider.css';function te(P) {
|
|
28
28
|
} = e;
|
29
29
|
let o = n;
|
30
30
|
o.originalEvent && (o = o.originalEvent);
|
31
|
-
const g = o.keyCode || o.charCode,
|
31
|
+
const g = o.keyCode || o.charCode, C = e.params.keyboard.pageUpDown, b = C && g === 33, _ = C && g === 34, y = g === 37, M = g === 39, t = g === 38, s = g === 40;
|
32
32
|
if (!e.allowSlideNext && (e.isHorizontal() && M || e.isVertical() && s || _) || !e.allowSlidePrev && (e.isHorizontal() && y || e.isVertical() && t || b))
|
33
33
|
return !1;
|
34
34
|
if (!(o.shiftKey || o.altKey || o.ctrlKey || o.metaKey) && !(p.activeElement && p.activeElement.nodeName && (p.activeElement.nodeName.toLowerCase() === "input" || p.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
35
35
|
if (e.params.keyboard.onlyInViewport && (b || _ || y || M || t || s)) {
|
36
|
-
let
|
36
|
+
let A = !1;
|
37
37
|
if (U(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && U(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
38
38
|
return;
|
39
39
|
const w = e.el, m = w.clientWidth, d = w.clientHeight, a = v.innerWidth, f = v.innerHeight, l = $(w);
|
@@ -43,10 +43,10 @@ import '../../assets/PromoSlider.css';function te(P) {
|
|
43
43
|
const c = D[r];
|
44
44
|
if (c[0] >= 0 && c[0] <= a && c[1] >= 0 && c[1] <= f) {
|
45
45
|
if (c[0] === 0 && c[1] === 0) continue;
|
46
|
-
|
46
|
+
A = !0;
|
47
47
|
}
|
48
48
|
}
|
49
|
-
if (!
|
49
|
+
if (!A) return;
|
50
50
|
}
|
51
51
|
e.isHorizontal() ? ((b || _ || y || M) && (o.preventDefault ? o.preventDefault() : o.returnValue = !1), ((_ || M) && !u || (b || y) && u) && e.slideNext(), ((b || y) && !u || (_ || M) && u) && e.slidePrev()) : ((b || _ || t || s) && (o.preventDefault ? o.preventDefault() : o.returnValue = !1), (_ || s) && e.slideNext(), (b || t) && e.slidePrev()), x("keyPress", g);
|
52
52
|
}
|
@@ -69,12 +69,12 @@ import '../../assets/PromoSlider.css';function te(P) {
|
|
69
69
|
function ne(P) {
|
70
70
|
let {
|
71
71
|
swiper: e,
|
72
|
-
extendParams:
|
72
|
+
extendParams: L,
|
73
73
|
on: T,
|
74
74
|
emit: x
|
75
75
|
} = P;
|
76
76
|
const p = G();
|
77
|
-
|
77
|
+
L({
|
78
78
|
mousewheel: {
|
79
79
|
enabled: !1,
|
80
80
|
releaseOnEdges: !1,
|
@@ -89,7 +89,7 @@ function ne(P) {
|
|
89
89
|
}), e.mousewheel = {
|
90
90
|
enabled: !1
|
91
91
|
};
|
92
|
-
let v, I =
|
92
|
+
let v, I = S(), h;
|
93
93
|
const i = [];
|
94
94
|
function n(t) {
|
95
95
|
let m = 0, d = 0, a = 0, f = 0;
|
@@ -107,9 +107,9 @@ function ne(P) {
|
|
107
107
|
e.enabled && (e.mouseEntered = !1);
|
108
108
|
}
|
109
109
|
function g(t) {
|
110
|
-
return e.params.mousewheel.thresholdDelta && t.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime &&
|
110
|
+
return e.params.mousewheel.thresholdDelta && t.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && S() - I < e.params.mousewheel.thresholdTime ? !1 : t.delta >= 6 && S() - I < 60 ? !0 : (t.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), x("scroll", t.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), x("scroll", t.raw)), I = new p.Date().getTime(), !1);
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function C(t) {
|
113
113
|
const s = e.params.mousewheel;
|
114
114
|
if (t.direction < 0) {
|
115
115
|
if (e.isEnd && !e.params.loop && s.releaseOnEdges)
|
@@ -119,7 +119,7 @@ function ne(P) {
|
|
119
119
|
return !1;
|
120
120
|
}
|
121
121
|
function b(t) {
|
122
|
-
let s = t,
|
122
|
+
let s = t, A = !0;
|
123
123
|
if (!e.enabled || t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`)) return;
|
124
124
|
const w = e.params.mousewheel;
|
125
125
|
e.params.cssMode && s.preventDefault();
|
@@ -141,28 +141,28 @@ function ne(P) {
|
|
141
141
|
if (a === 0) return !0;
|
142
142
|
w.invert && (a = -a);
|
143
143
|
let D = e.getTranslate() + a * w.sensitivity;
|
144
|
-
if (D >= e.minTranslate() && (D = e.minTranslate()), D <= e.maxTranslate() && (D = e.maxTranslate()),
|
144
|
+
if (D >= e.minTranslate() && (D = e.minTranslate()), D <= e.maxTranslate() && (D = e.maxTranslate()), A = e.params.loop ? !0 : !(D === e.minTranslate() || D === e.maxTranslate()), A && e.params.nested && s.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
145
145
|
const r = {
|
146
|
-
time:
|
146
|
+
time: S(),
|
147
147
|
delta: Math.abs(a),
|
148
148
|
direction: Math.sign(a),
|
149
149
|
raw: t
|
150
150
|
};
|
151
151
|
i.length >= 2 && i.shift();
|
152
152
|
const c = i.length ? i[i.length - 1] : void 0;
|
153
|
-
if (i.push(r), c ? (r.direction !== c.direction || r.delta > c.delta || r.time > c.time + 150) && g(r) : g(r),
|
153
|
+
if (i.push(r), c ? (r.direction !== c.direction || r.delta > c.delta || r.time > c.time + 150) && g(r) : g(r), C(r))
|
154
154
|
return !0;
|
155
155
|
} else {
|
156
156
|
const r = {
|
157
|
-
time:
|
157
|
+
time: S(),
|
158
158
|
delta: Math.abs(a),
|
159
159
|
direction: Math.sign(a)
|
160
160
|
}, c = h && r.time < h.time + 500 && r.delta <= h.delta && r.direction === h.direction;
|
161
161
|
if (!c) {
|
162
162
|
h = void 0;
|
163
|
-
let
|
163
|
+
let N = e.getTranslate() + a * w.sensitivity;
|
164
164
|
const W = e.isBeginning, K = e.isEnd;
|
165
|
-
if (
|
165
|
+
if (N >= e.minTranslate() && (N = e.minTranslate()), N <= e.maxTranslate() && (N = e.maxTranslate()), e.setTransition(0), e.setTranslate(N), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!W && e.isBeginning || !K && e.isEnd) && e.updateSlidesClasses(), e.params.loop && e.loopFix({
|
166
166
|
direction: r.direction < 0 ? "next" : "prev",
|
167
167
|
byMousewheel: !0
|
168
168
|
}), e.params.freeMode.sticky) {
|
@@ -180,7 +180,7 @@ function ne(P) {
|
|
180
180
|
h = r, i.splice(0), e.slideToClosest(e.params.speed, !0, void 0, 0.5);
|
181
181
|
}, 500));
|
182
182
|
}
|
183
|
-
if (c || x("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), w.releaseOnEdges && (
|
183
|
+
if (c || x("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), w.releaseOnEdges && (N === e.minTranslate() || N === e.maxTranslate()))
|
184
184
|
return !0;
|
185
185
|
}
|
186
186
|
}
|
@@ -217,12 +217,12 @@ const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie
|
|
217
217
|
"bullet-s": "_bullet-s_f3z07_48",
|
218
218
|
"bullet-xs": "_bullet-xs_f3z07_49"
|
219
219
|
}, V = 5, fe = 5e3, ue = 8, de = (P, e) => {
|
220
|
-
const
|
220
|
+
const L = e % V, T = Math.abs(P - L), x = 0, p = 1;
|
221
221
|
return T === x ? E["bullet-active"] : T === p ? E["bullet-s"] : E["bullet-xs"];
|
222
222
|
}, be = ({
|
223
223
|
slides: P,
|
224
224
|
onSlideClick: e,
|
225
|
-
delay:
|
225
|
+
delay: L = fe,
|
226
226
|
spaceBetween: T = ue,
|
227
227
|
imageClassName: x,
|
228
228
|
slideClassName: p,
|
@@ -243,24 +243,24 @@ const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie
|
|
243
243
|
enabled: !0
|
244
244
|
},
|
245
245
|
autoplay: {
|
246
|
-
delay:
|
246
|
+
delay: L,
|
247
247
|
disableOnInteraction: !1,
|
248
248
|
pauseOnMouseEnter: !0
|
249
249
|
},
|
250
|
-
className:
|
250
|
+
className: H(E.swiper, v),
|
251
251
|
children: [
|
252
252
|
P.map((n) => {
|
253
253
|
if (!n) return null;
|
254
|
-
const u = n != null && n.imageUrl ? /* @__PURE__ */
|
254
|
+
const u = n != null && n.imageUrl ? /* @__PURE__ */ k(
|
255
255
|
ee,
|
256
256
|
{
|
257
|
-
className:
|
257
|
+
className: H(E.image, x),
|
258
258
|
src: n.imageUrl,
|
259
259
|
desktopImage: n.imageDesktop,
|
260
260
|
mobileImage: n.imageMobile,
|
261
261
|
alt: n.title
|
262
262
|
}
|
263
|
-
) : null, o = /* @__PURE__ */
|
263
|
+
) : null, o = /* @__PURE__ */ k(
|
264
264
|
"a",
|
265
265
|
{
|
266
266
|
className: E.link,
|
@@ -270,35 +270,35 @@ const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie
|
|
270
270
|
children: u
|
271
271
|
}
|
272
272
|
), g = () => n.url ? o : u;
|
273
|
-
return /* @__PURE__ */
|
273
|
+
return /* @__PURE__ */ k(
|
274
274
|
J,
|
275
275
|
{
|
276
|
-
onClick: e,
|
277
|
-
className:
|
276
|
+
onClick: () => e == null ? void 0 : e(n),
|
277
|
+
className: H(E.slide, p),
|
278
278
|
children: /* @__PURE__ */ Y(F, { children: [
|
279
|
-
n.isPromotion && /* @__PURE__ */
|
279
|
+
n.isPromotion && /* @__PURE__ */ k(
|
280
280
|
Q,
|
281
281
|
{
|
282
282
|
...n.promotionProps,
|
283
|
-
className:
|
283
|
+
className: H(
|
284
284
|
n.promotionProps.className,
|
285
285
|
E.chip
|
286
286
|
)
|
287
287
|
}
|
288
288
|
),
|
289
289
|
g(),
|
290
|
-
(n == null ? void 0 : n.content) && /* @__PURE__ */
|
290
|
+
(n == null ? void 0 : n.content) && /* @__PURE__ */ k("div", { className: H(E.content, I), children: n == null ? void 0 : n.content })
|
291
291
|
] })
|
292
292
|
},
|
293
293
|
n.id
|
294
294
|
);
|
295
295
|
}),
|
296
|
-
/* @__PURE__ */
|
296
|
+
/* @__PURE__ */ k("div", { className: E["custom-pagination"], children: Array.from({ length: V }).map((n, u) => /* @__PURE__ */ k(
|
297
297
|
"button",
|
298
298
|
{
|
299
299
|
tabIndex: u,
|
300
300
|
type: "button",
|
301
|
-
className:
|
301
|
+
className: H(E.bullet, de(u, h))
|
302
302
|
},
|
303
303
|
u
|
304
304
|
)) })
|