mimir-ui-kit 1.41.3 → 1.41.5
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/{Input-DAmc_HxO.js → Input-BU_6U1CW.js} +63 -63
- package/dist/assets/CardTrail.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/Dropdown.css +1 -1
- package/dist/assets/Image.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/MergedButton.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/PromoSlider.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/ScrollBar.css +1 -0
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Timer.css +1 -1
- package/dist/assets/stories.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/components/CardTrail/CardTrail.d.ts +4 -0
- package/dist/components/CardTrail/CardTrail.js +75 -66
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Drawer/Drawer.js +74 -74
- package/dist/components/Dropdown/Dropdown.js +121 -121
- package/dist/components/Image/Image.js +28 -33
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/MergedButton/MergedButton.d.ts +4 -4
- package/dist/components/MergedButton/MergedButton.js +35 -27
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/MultiSelectSearch/utils.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +28 -28
- package/dist/components/Pagination/Pagination.js +28 -28
- package/dist/components/PromoSlider/PromoSlider.d.ts +1 -5
- package/dist/components/PromoSlider/PromoSlider.js +190 -200
- package/dist/components/RadioGroup/RadioGroup.js +79 -79
- package/dist/components/ScrollBar/ScrollBar.d.ts +17 -0
- package/dist/components/ScrollBar/ScrollBar.js +22 -0
- package/dist/components/ScrollBar/constants.d.ts +8 -0
- package/dist/components/ScrollBar/constants.js +5 -0
- package/dist/components/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.js +40 -40
- package/dist/components/Table/ColumnOrderSettings.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableBody.js +1 -1
- package/dist/components/Table/TableCard.js +1 -1
- package/dist/components/Table/TableCardsView.js +1 -1
- package/dist/components/Table/TableFilters.js +1 -1
- package/dist/components/Table/TableHeader.js +1 -1
- package/dist/components/Table/TableRow.js +1 -1
- package/dist/components/Table/TableScrollButtons.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/Timer/Timer.js +6 -6
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stories.module-DBGkpJ-O.js +29 -0
- package/dist/styles.module-9m98aUhp.js +36 -0
- package/package.json +6 -2
- package/src/assets/styles/mixins/animations.scss +3 -0
- package/src/assets/styles/mixins/index.scss +3 -0
- package/src/assets/styles/mixins/media.scss +21 -0
- package/src/assets/styles/mixins/scrollbar.scss +43 -0
- package/dist/stories.module-fud786VB.js +0 -29
- package/dist/styles.module--QBQYoA9.js +0 -36
@@ -1,80 +1,80 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
1
|
+
import { jsxs as Y, jsx as L, Fragment as K } from "react/jsx-runtime";
|
2
|
+
import { c as A } from "../../index-DIxK0V-G.js";
|
3
3
|
import { useState as j } from "react";
|
4
|
-
import { g as R, b as
|
4
|
+
import { g as R, b as G, e as U, c as $, n as B, d as C, 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
|
-
import '../../assets/PromoSlider.css';function te(
|
7
|
+
import '../../assets/PromoSlider.css';function te(P) {
|
8
8
|
let {
|
9
9
|
swiper: e,
|
10
|
-
extendParams:
|
11
|
-
on:
|
10
|
+
extendParams: S,
|
11
|
+
on: w,
|
12
12
|
emit: _
|
13
|
-
} =
|
14
|
-
const
|
13
|
+
} = P;
|
14
|
+
const c = R(), b = G();
|
15
15
|
e.keyboard = {
|
16
16
|
enabled: !1
|
17
|
-
},
|
17
|
+
}, S({
|
18
18
|
keyboard: {
|
19
19
|
enabled: !1,
|
20
20
|
onlyInViewport: !0,
|
21
21
|
pageUpDown: !0
|
22
22
|
}
|
23
23
|
});
|
24
|
-
function I(
|
24
|
+
function I(E) {
|
25
25
|
if (!e.enabled) return;
|
26
26
|
const {
|
27
|
-
rtlTranslate:
|
27
|
+
rtlTranslate: x
|
28
28
|
} = e;
|
29
|
-
let
|
30
|
-
|
31
|
-
const
|
32
|
-
if (!e.allowSlideNext && (e.isHorizontal() && M || e.isVertical() && s ||
|
29
|
+
let l = E;
|
30
|
+
l.originalEvent && (l = l.originalEvent);
|
31
|
+
const T = l.keyCode || l.charCode, H = e.params.keyboard.pageUpDown, h = H && T === 33, v = H && T === 34, y = T === 37, M = T === 39, n = T === 38, s = T === 40;
|
32
|
+
if (!e.allowSlideNext && (e.isHorizontal() && M || e.isVertical() && s || v) || !e.allowSlidePrev && (e.isHorizontal() && y || e.isVertical() && n || h))
|
33
33
|
return !1;
|
34
|
-
if (!(
|
35
|
-
if (e.params.keyboard.onlyInViewport && (
|
36
|
-
let
|
37
|
-
if (
|
34
|
+
if (!(l.shiftKey || l.altKey || l.ctrlKey || l.metaKey) && !(c.activeElement && c.activeElement.nodeName && (c.activeElement.nodeName.toLowerCase() === "input" || c.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
35
|
+
if (e.params.keyboard.onlyInViewport && (h || v || y || M || n || s)) {
|
36
|
+
let N = !1;
|
37
|
+
if (U(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && U(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
38
38
|
return;
|
39
|
-
const
|
40
|
-
|
41
|
-
const D = [[
|
39
|
+
const p = e.el, d = p.clientWidth, u = p.clientHeight, a = b.innerWidth, o = b.innerHeight, i = $(p);
|
40
|
+
x && (i.left -= p.scrollLeft);
|
41
|
+
const D = [[i.left, i.top], [i.left + d, i.top], [i.left, i.top + u], [i.left + d, i.top + u]];
|
42
42
|
for (let r = 0; r < D.length; r += 1) {
|
43
|
-
const
|
44
|
-
if (
|
45
|
-
if (
|
46
|
-
|
43
|
+
const f = D[r];
|
44
|
+
if (f[0] >= 0 && f[0] <= a && f[1] >= 0 && f[1] <= o) {
|
45
|
+
if (f[0] === 0 && f[1] === 0) continue;
|
46
|
+
N = !0;
|
47
47
|
}
|
48
48
|
}
|
49
|
-
if (!
|
49
|
+
if (!N) return;
|
50
50
|
}
|
51
|
-
e.isHorizontal() ? ((
|
51
|
+
e.isHorizontal() ? ((h || v || y || M) && (l.preventDefault ? l.preventDefault() : l.returnValue = !1), ((v || M) && !x || (h || y) && x) && e.slideNext(), ((h || y) && !x || (v || M) && x) && e.slidePrev()) : ((h || v || n || s) && (l.preventDefault ? l.preventDefault() : l.returnValue = !1), (v || s) && e.slideNext(), (h || n) && e.slidePrev()), _("keyPress", T);
|
52
52
|
}
|
53
53
|
}
|
54
|
-
function
|
55
|
-
e.keyboard.enabled || (
|
54
|
+
function m() {
|
55
|
+
e.keyboard.enabled || (c.addEventListener("keydown", I), e.keyboard.enabled = !0);
|
56
56
|
}
|
57
|
-
function
|
58
|
-
e.keyboard.enabled && (
|
57
|
+
function t() {
|
58
|
+
e.keyboard.enabled && (c.removeEventListener("keydown", I), e.keyboard.enabled = !1);
|
59
59
|
}
|
60
|
-
|
61
|
-
e.params.keyboard.enabled &&
|
62
|
-
}),
|
63
|
-
e.keyboard.enabled &&
|
60
|
+
w("init", () => {
|
61
|
+
e.params.keyboard.enabled && m();
|
62
|
+
}), w("destroy", () => {
|
63
|
+
e.keyboard.enabled && t();
|
64
64
|
}), Object.assign(e.keyboard, {
|
65
|
-
enable:
|
66
|
-
disable:
|
65
|
+
enable: m,
|
66
|
+
disable: t
|
67
67
|
});
|
68
68
|
}
|
69
|
-
function ne(
|
69
|
+
function ne(P) {
|
70
70
|
let {
|
71
71
|
swiper: e,
|
72
|
-
extendParams:
|
73
|
-
on:
|
72
|
+
extendParams: S,
|
73
|
+
on: w,
|
74
74
|
emit: _
|
75
|
-
} =
|
76
|
-
const
|
77
|
-
|
75
|
+
} = P;
|
76
|
+
const c = G();
|
77
|
+
S({
|
78
78
|
mousewheel: {
|
79
79
|
enabled: !1,
|
80
80
|
releaseOnEdges: !1,
|
@@ -89,232 +89,222 @@ function ne(S) {
|
|
89
89
|
}), e.mousewheel = {
|
90
90
|
enabled: !1
|
91
91
|
};
|
92
|
-
let
|
93
|
-
const
|
94
|
-
function n
|
95
|
-
let
|
96
|
-
return "detail" in
|
97
|
-
spinX:
|
98
|
-
spinY:
|
92
|
+
let b, I = C(), m;
|
93
|
+
const t = [];
|
94
|
+
function E(n) {
|
95
|
+
let d = 0, u = 0, a = 0, o = 0;
|
96
|
+
return "detail" in n && (u = n.detail), "wheelDelta" in n && (u = -n.wheelDelta / 120), "wheelDeltaY" in n && (u = -n.wheelDeltaY / 120), "wheelDeltaX" in n && (d = -n.wheelDeltaX / 120), "axis" in n && n.axis === n.HORIZONTAL_AXIS && (d = u, u = 0), a = d * 10, o = u * 10, "deltaY" in n && (o = n.deltaY), "deltaX" in n && (a = n.deltaX), n.shiftKey && !a && (a = o, o = 0), (a || o) && n.deltaMode && (n.deltaMode === 1 ? (a *= 40, o *= 40) : (a *= 800, o *= 800)), a && !d && (d = a < 1 ? -1 : 1), o && !u && (u = o < 1 ? -1 : 1), {
|
97
|
+
spinX: d,
|
98
|
+
spinY: u,
|
99
99
|
pixelX: a,
|
100
|
-
pixelY:
|
100
|
+
pixelY: o
|
101
101
|
};
|
102
102
|
}
|
103
|
-
function
|
103
|
+
function x() {
|
104
104
|
e.enabled && (e.mouseEntered = !0);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function l() {
|
107
107
|
e.enabled && (e.mouseEntered = !1);
|
108
108
|
}
|
109
|
-
function
|
110
|
-
return e.params.mousewheel.thresholdDelta &&
|
109
|
+
function T(n) {
|
110
|
+
return e.params.mousewheel.thresholdDelta && n.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && C() - I < e.params.mousewheel.thresholdTime ? !1 : n.delta >= 6 && C() - I < 60 ? !0 : (n.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), _("scroll", n.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), _("scroll", n.raw)), I = new c.Date().getTime(), !1);
|
111
111
|
}
|
112
|
-
function H(
|
112
|
+
function H(n) {
|
113
113
|
const s = e.params.mousewheel;
|
114
|
-
if (
|
114
|
+
if (n.direction < 0) {
|
115
115
|
if (e.isEnd && !e.params.loop && s.releaseOnEdges)
|
116
116
|
return !0;
|
117
117
|
} else if (e.isBeginning && !e.params.loop && s.releaseOnEdges)
|
118
118
|
return !0;
|
119
119
|
return !1;
|
120
120
|
}
|
121
|
-
function
|
122
|
-
let s =
|
123
|
-
if (!e.enabled ||
|
124
|
-
const
|
121
|
+
function h(n) {
|
122
|
+
let s = n, N = !0;
|
123
|
+
if (!e.enabled || n.target.closest(`.${e.params.mousewheel.noMousewheelClass}`)) return;
|
124
|
+
const p = e.params.mousewheel;
|
125
125
|
e.params.cssMode && s.preventDefault();
|
126
|
-
let
|
127
|
-
e.params.mousewheel.eventsTarget !== "container" && (
|
128
|
-
const
|
129
|
-
if (!e.mouseEntered && !
|
126
|
+
let d = e.el;
|
127
|
+
e.params.mousewheel.eventsTarget !== "container" && (d = document.querySelector(e.params.mousewheel.eventsTarget));
|
128
|
+
const u = d && d.contains(s.target);
|
129
|
+
if (!e.mouseEntered && !u && !p.releaseOnEdges) return !0;
|
130
130
|
s.originalEvent && (s = s.originalEvent);
|
131
131
|
let a = 0;
|
132
|
-
const
|
133
|
-
if (
|
132
|
+
const o = e.rtlTranslate ? -1 : 1, i = E(s);
|
133
|
+
if (p.forceToAxis)
|
134
134
|
if (e.isHorizontal())
|
135
|
-
if (Math.abs(
|
135
|
+
if (Math.abs(i.pixelX) > Math.abs(i.pixelY)) a = -i.pixelX * o;
|
136
136
|
else return !0;
|
137
|
-
else if (Math.abs(
|
137
|
+
else if (Math.abs(i.pixelY) > Math.abs(i.pixelX)) a = -i.pixelY;
|
138
138
|
else return !0;
|
139
139
|
else
|
140
|
-
a = Math.abs(
|
140
|
+
a = Math.abs(i.pixelX) > Math.abs(i.pixelY) ? -i.pixelX * o : -i.pixelY;
|
141
141
|
if (a === 0) return !0;
|
142
|
-
|
143
|
-
let D = e.getTranslate() + a *
|
144
|
-
if (D >= e.minTranslate() && (D = e.minTranslate()), D <= e.maxTranslate() && (D = e.maxTranslate()),
|
142
|
+
p.invert && (a = -a);
|
143
|
+
let D = e.getTranslate() + a * p.sensitivity;
|
144
|
+
if (D >= e.minTranslate() && (D = e.minTranslate()), D <= e.maxTranslate() && (D = e.maxTranslate()), N = e.params.loop ? !0 : !(D === e.minTranslate() || D === e.maxTranslate()), N && e.params.nested && s.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
145
145
|
const r = {
|
146
146
|
time: C(),
|
147
147
|
delta: Math.abs(a),
|
148
148
|
direction: Math.sign(a),
|
149
|
-
raw:
|
149
|
+
raw: n
|
150
150
|
};
|
151
|
-
|
152
|
-
const
|
153
|
-
if (
|
151
|
+
t.length >= 2 && t.shift();
|
152
|
+
const f = t.length ? t[t.length - 1] : void 0;
|
153
|
+
if (t.push(r), f ? (r.direction !== f.direction || r.delta > f.delta || r.time > f.time + 150) && T(r) : T(r), H(r))
|
154
154
|
return !0;
|
155
155
|
} else {
|
156
156
|
const r = {
|
157
157
|
time: C(),
|
158
158
|
delta: Math.abs(a),
|
159
159
|
direction: Math.sign(a)
|
160
|
-
},
|
161
|
-
if (!
|
162
|
-
|
163
|
-
let
|
164
|
-
const
|
165
|
-
if (
|
160
|
+
}, f = m && r.time < m.time + 500 && r.delta <= m.delta && r.direction === m.direction;
|
161
|
+
if (!f) {
|
162
|
+
m = void 0;
|
163
|
+
let k = e.getTranslate() + a * p.sensitivity;
|
164
|
+
const W = e.isBeginning, F = e.isEnd;
|
165
|
+
if (k >= e.minTranslate() && (k = e.minTranslate()), k <= e.maxTranslate() && (k = e.maxTranslate()), e.setTransition(0), e.setTranslate(k), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!W && e.isBeginning || !F && 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) {
|
169
|
-
clearTimeout(
|
170
|
-
const X =
|
171
|
-
if (
|
172
|
-
|
173
|
-
else if (
|
174
|
-
const
|
175
|
-
|
176
|
-
e.slideToClosest(e.params.speed, !0, void 0,
|
169
|
+
clearTimeout(b), b = void 0, t.length >= 15 && t.shift();
|
170
|
+
const X = t.length ? t[t.length - 1] : void 0, z = t[0];
|
171
|
+
if (t.push(r), X && (r.delta > X.delta || r.direction !== X.direction))
|
172
|
+
t.splice(0);
|
173
|
+
else if (t.length >= 15 && r.time - z.time < 500 && z.delta - r.delta >= 1 && r.delta <= 6) {
|
174
|
+
const O = a > 0 ? 0.8 : 0.2;
|
175
|
+
m = r, t.splice(0), b = B(() => {
|
176
|
+
e.slideToClosest(e.params.speed, !0, void 0, O);
|
177
177
|
}, 0);
|
178
178
|
}
|
179
|
-
|
180
|
-
|
179
|
+
b || (b = B(() => {
|
180
|
+
m = r, t.splice(0), e.slideToClosest(e.params.speed, !0, void 0, 0.5);
|
181
181
|
}, 500));
|
182
182
|
}
|
183
|
-
if (
|
183
|
+
if (f || _("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), p.releaseOnEdges && (k === e.minTranslate() || k === e.maxTranslate()))
|
184
184
|
return !0;
|
185
185
|
}
|
186
186
|
}
|
187
187
|
return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1;
|
188
188
|
}
|
189
|
-
function
|
189
|
+
function v(n) {
|
190
190
|
let s = e.el;
|
191
|
-
e.params.mousewheel.eventsTarget !== "container" && (s = document.querySelector(e.params.mousewheel.eventsTarget)), s[
|
191
|
+
e.params.mousewheel.eventsTarget !== "container" && (s = document.querySelector(e.params.mousewheel.eventsTarget)), s[n]("mouseenter", x), s[n]("mouseleave", l), s[n]("wheel", h);
|
192
192
|
}
|
193
|
-
function
|
194
|
-
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel",
|
193
|
+
function y() {
|
194
|
+
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", h), !0) : e.mousewheel.enabled ? !1 : (v("addEventListener"), e.mousewheel.enabled = !0, !0);
|
195
195
|
}
|
196
196
|
function M() {
|
197
|
-
return e.params.cssMode ? (e.wrapperEl.addEventListener(event,
|
197
|
+
return e.params.cssMode ? (e.wrapperEl.addEventListener(event, h), !0) : e.mousewheel.enabled ? (v("removeEventListener"), e.mousewheel.enabled = !1, !0) : !1;
|
198
198
|
}
|
199
|
-
|
200
|
-
!e.params.mousewheel.enabled && e.params.cssMode && M(), e.params.mousewheel.enabled &&
|
201
|
-
}),
|
202
|
-
e.params.cssMode &&
|
199
|
+
w("init", () => {
|
200
|
+
!e.params.mousewheel.enabled && e.params.cssMode && M(), e.params.mousewheel.enabled && y();
|
201
|
+
}), w("destroy", () => {
|
202
|
+
e.params.cssMode && y(), e.mousewheel.enabled && M();
|
203
203
|
}), Object.assign(e.mousewheel, {
|
204
|
-
enable:
|
204
|
+
enable: y,
|
205
205
|
disable: M
|
206
206
|
});
|
207
207
|
}
|
208
|
-
const ae = "
|
209
|
-
"promo-slider-wrapper": "_promo-slider-wrapper_1sy27_2",
|
208
|
+
const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie = "_chip_f3z07_21", le = "_content_f3z07_27", oe = "_bullet_f3z07_46", g = {
|
210
209
|
swiper: ae,
|
211
210
|
slide: se,
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
"bullet-
|
218
|
-
"bullet-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
211
|
+
image: re,
|
212
|
+
chip: ie,
|
213
|
+
content: le,
|
214
|
+
"custom-pagination": "_custom-pagination_f3z07_34",
|
215
|
+
bullet: oe,
|
216
|
+
"bullet-active": "_bullet-active_f3z07_47",
|
217
|
+
"bullet-s": "_bullet-s_f3z07_48",
|
218
|
+
"bullet-xs": "_bullet-xs_f3z07_49"
|
219
|
+
}, V = 5, ue = 5e3, fe = 8, de = (P, e) => {
|
220
|
+
const S = e % V, w = Math.abs(P - S), _ = 0, c = 1;
|
221
|
+
return w === _ ? g["bullet-active"] : w === c ? g["bullet-s"] : g["bullet-xs"];
|
222
|
+
}, be = ({
|
223
|
+
slides: P,
|
224
|
+
delay: e = ue,
|
225
|
+
spaceBetween: S = fe,
|
226
|
+
imageClassName: w,
|
227
227
|
slideClassName: _,
|
228
|
-
swiperClassName:
|
229
|
-
contentClassName:
|
230
|
-
promoSliderWrapperClassName: I
|
228
|
+
swiperClassName: c,
|
229
|
+
contentClassName: b
|
231
230
|
}) => {
|
232
|
-
const [
|
233
|
-
return /* @__PURE__ */
|
234
|
-
|
231
|
+
const [I, m] = j(0);
|
232
|
+
return /* @__PURE__ */ Y(
|
233
|
+
q,
|
235
234
|
{
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
),
|
235
|
+
direction: "horizontal",
|
236
|
+
spaceBetween: S,
|
237
|
+
modules: [Z, te, ne],
|
238
|
+
onSlideChange: (t) => m(t.realIndex),
|
239
|
+
loop: !0,
|
240
|
+
mousewheel: !0,
|
241
|
+
keyboard: {
|
242
|
+
enabled: !0,
|
243
|
+
onlyInViewport: !0
|
244
|
+
},
|
245
|
+
autoplay: {
|
246
|
+
delay: e,
|
247
|
+
disableOnInteraction: !1,
|
248
|
+
pauseOnMouseEnter: !0
|
249
|
+
},
|
250
|
+
className: A(g.swiper, c),
|
240
251
|
children: [
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
252
|
+
P.map((t) => {
|
253
|
+
if (!t) return null;
|
254
|
+
const E = t != null && t.imageUrl ? /* @__PURE__ */ L(
|
255
|
+
ee,
|
256
|
+
{
|
257
|
+
className: A(g.image, w),
|
258
|
+
src: t.imageUrl,
|
259
|
+
desktopImage: t.imageDesktop,
|
260
|
+
mobileImage: t.imageMobile,
|
261
|
+
alt: t.title
|
262
|
+
}
|
263
|
+
) : null, x = /* @__PURE__ */ L(
|
264
|
+
"a",
|
265
|
+
{
|
266
|
+
className: g.link,
|
267
|
+
href: t.url,
|
268
|
+
rel: "noopener noreferrer",
|
269
|
+
target: "_blank",
|
270
|
+
children: E
|
271
|
+
}
|
272
|
+
), l = () => t.url ? x : E;
|
273
|
+
return /* @__PURE__ */ L(
|
274
|
+
J,
|
275
|
+
{
|
276
|
+
className: A(g.slide, _),
|
277
|
+
children: /* @__PURE__ */ Y(K, { children: [
|
278
|
+
t.isPromotion && /* @__PURE__ */ L(
|
279
|
+
Q,
|
280
|
+
{
|
281
|
+
...t.promotionProps,
|
282
|
+
className: A(
|
283
|
+
t.promotionProps.className,
|
284
|
+
g.chip
|
285
|
+
)
|
286
|
+
}
|
287
|
+
),
|
288
|
+
l(),
|
289
|
+
(t == null ? void 0 : t.content) && /* @__PURE__ */ L("div", { className: A(g.content, b), children: t == null ? void 0 : t.content })
|
290
|
+
] })
|
253
291
|
},
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
},
|
259
|
-
className: L(b.swiper, m),
|
260
|
-
children: S.map((n) => {
|
261
|
-
if (!n) return null;
|
262
|
-
const d = n != null && n.imageUrl ? /* @__PURE__ */ P(
|
263
|
-
ee,
|
264
|
-
{
|
265
|
-
className: L(b.image, v),
|
266
|
-
src: n.imageUrl,
|
267
|
-
desktopImage: n.imageDesktop,
|
268
|
-
mobileImage: n.imageMobile,
|
269
|
-
alt: n.title
|
270
|
-
}
|
271
|
-
) : null, o = /* @__PURE__ */ P(
|
272
|
-
"a",
|
273
|
-
{
|
274
|
-
className: b.link,
|
275
|
-
href: n.url,
|
276
|
-
rel: "noopener noreferrer",
|
277
|
-
target: "_blank",
|
278
|
-
children: d
|
279
|
-
}
|
280
|
-
), w = () => n.url ? o : d;
|
281
|
-
return /* @__PURE__ */ P(
|
282
|
-
J,
|
283
|
-
{
|
284
|
-
className: L(b.slide, _),
|
285
|
-
children: /* @__PURE__ */ U(K, { children: [
|
286
|
-
n.isPromotion && /* @__PURE__ */ P(
|
287
|
-
Q,
|
288
|
-
{
|
289
|
-
...n.promotionProps,
|
290
|
-
className: L(
|
291
|
-
n.promotionProps.className,
|
292
|
-
b.chip
|
293
|
-
)
|
294
|
-
}
|
295
|
-
),
|
296
|
-
w(),
|
297
|
-
(n == null ? void 0 : n.content) && /* @__PURE__ */ P("div", { className: L(b.content, T), children: n == null ? void 0 : n.content })
|
298
|
-
] })
|
299
|
-
},
|
300
|
-
n.id
|
301
|
-
);
|
302
|
-
})
|
303
|
-
}
|
304
|
-
),
|
305
|
-
/* @__PURE__ */ P("div", { className: b["custom-pagination"], children: Array.from({ length: W }).map((n, d) => /* @__PURE__ */ P(
|
292
|
+
t.id
|
293
|
+
);
|
294
|
+
}),
|
295
|
+
/* @__PURE__ */ L("div", { className: g["custom-pagination"], children: Array.from({ length: V }).map((t, E) => /* @__PURE__ */ L(
|
306
296
|
"button",
|
307
297
|
{
|
308
298
|
type: "button",
|
309
|
-
autoFocus:
|
310
|
-
className:
|
299
|
+
autoFocus: E === 0,
|
300
|
+
className: A(g.bullet, de(E, I))
|
311
301
|
},
|
312
|
-
|
302
|
+
E
|
313
303
|
)) })
|
314
304
|
]
|
315
305
|
}
|
316
306
|
);
|
317
307
|
};
|
318
308
|
export {
|
319
|
-
|
309
|
+
be as PromoSlider
|
320
310
|
};
|