mimir-ui-kit 1.38.13 → 1.38.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,18 @@ type TProps = SwiperProps & {
|
|
50
50
|
* Дополнительные классы для картинок
|
51
51
|
*/
|
52
52
|
imageClassName?: string;
|
53
|
+
/**
|
54
|
+
* Дополнительные классы для навигации
|
55
|
+
*/
|
56
|
+
navigationClassName?: string;
|
57
|
+
/**
|
58
|
+
* Дополнительные классы для нижней панели
|
59
|
+
*/
|
60
|
+
sliderBottomPanelClassName?: string;
|
61
|
+
/**
|
62
|
+
* Дополнительные классы для описания слайдов
|
63
|
+
*/
|
64
|
+
descriptionsClassName?: string;
|
53
65
|
/**
|
54
66
|
* Контент для слайдера.
|
55
67
|
*/
|
@@ -59,5 +71,5 @@ type TProps = SwiperProps & {
|
|
59
71
|
*/
|
60
72
|
images?: TSlideImage[];
|
61
73
|
};
|
62
|
-
export default function Slider({ images, children, onSlideClick, swiperClassName, slideClassName, imageClassName, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
74
|
+
export default function Slider({ images, children, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, sliderBottomPanelClassName, descriptionsClassName, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
63
75
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
1
|
+
import { jsxs as U, jsx as V, Fragment as Je } from "react/jsx-runtime";
|
2
|
+
import { c as W } from "../../index-DIxK0V-G.js";
|
3
3
|
import G, { forwardRef as Te, useState as K, useRef as R, useEffect as he, useLayoutEffect as Qe, createContext as De, useContext as et, useCallback as re, memo as Ge, useMemo as tt } from "react";
|
4
4
|
import { EProgressBarPosition as xe } from "./constants.js";
|
5
5
|
import { AppImage as Ee } from "../Image/Image.js";
|
@@ -249,7 +249,7 @@ function ct(t, e) {
|
|
249
249
|
}
|
250
250
|
return i;
|
251
251
|
}
|
252
|
-
function
|
252
|
+
function q(t, e) {
|
253
253
|
return F().getComputedStyle(t, null).getPropertyValue(e);
|
254
254
|
}
|
255
255
|
function Me(t) {
|
@@ -294,29 +294,29 @@ function ft(t) {
|
|
294
294
|
pauseOnMouseEnter: !1
|
295
295
|
}
|
296
296
|
});
|
297
|
-
let l, o, a = r && r.autoplay ? r.autoplay.delay : 3e3, u = r && r.autoplay ? r.autoplay.delay : 3e3, d, c = (/* @__PURE__ */ new Date()).getTime(), p, f, h, v,
|
297
|
+
let l, o, a = r && r.autoplay ? r.autoplay.delay : 3e3, u = r && r.autoplay ? r.autoplay.delay : 3e3, d, c = (/* @__PURE__ */ new Date()).getTime(), p, f, h, v, T, m, x;
|
298
298
|
function g(L) {
|
299
|
-
!e || e.destroyed || !e.wrapperEl || L.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", g), !(
|
299
|
+
!e || e.destroyed || !e.wrapperEl || L.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", g), !(x || L.detail && L.detail.bySwiperTouchMove) && w());
|
300
300
|
}
|
301
|
-
const
|
301
|
+
const S = () => {
|
302
302
|
if (e.destroyed || !e.autoplay.running) return;
|
303
303
|
e.autoplay.paused ? p = !0 : p && (u = d, p = !1);
|
304
304
|
const L = e.autoplay.paused ? d : c + u - (/* @__PURE__ */ new Date()).getTime();
|
305
305
|
e.autoplay.timeLeft = L, n("autoplayTimeLeft", L, L / a), o = requestAnimationFrame(() => {
|
306
|
-
|
306
|
+
S();
|
307
307
|
});
|
308
|
-
},
|
308
|
+
}, b = () => {
|
309
309
|
let L;
|
310
310
|
return e.virtual && e.params.virtual.enabled ? L = e.slides.filter((z) => z.classList.contains("swiper-slide-active"))[0] : L = e.slides[e.activeIndex], L ? parseInt(L.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
311
311
|
}, I = (L) => {
|
312
312
|
if (e.destroyed || !e.autoplay.running) return;
|
313
|
-
cancelAnimationFrame(o),
|
313
|
+
cancelAnimationFrame(o), S();
|
314
314
|
let _ = typeof L > "u" ? e.params.autoplay.delay : L;
|
315
315
|
a = e.params.autoplay.delay, u = e.params.autoplay.delay;
|
316
|
-
const z =
|
316
|
+
const z = b();
|
317
317
|
!Number.isNaN(z) && z > 0 && typeof L > "u" && (_ = z, a = z, u = z), d = _;
|
318
|
-
const
|
319
|
-
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(
|
318
|
+
const Y = e.params.speed, ee = () => {
|
319
|
+
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(Y, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, Y, !0, !0), n("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(Y, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, Y, !0, !0), n("autoplay")), e.params.cssMode && (c = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
320
320
|
I();
|
321
321
|
})));
|
322
322
|
};
|
@@ -327,33 +327,33 @@ function ft(t) {
|
|
327
327
|
}), _;
|
328
328
|
}, A = () => {
|
329
329
|
c = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, I(), n("autoplayStart");
|
330
|
-
},
|
330
|
+
}, P = () => {
|
331
331
|
e.autoplay.running = !1, clearTimeout(l), cancelAnimationFrame(o), n("autoplayStop");
|
332
|
-
},
|
332
|
+
}, y = (L, _) => {
|
333
333
|
if (e.destroyed || !e.autoplay.running) return;
|
334
334
|
clearTimeout(l), L || (m = !0);
|
335
335
|
const z = () => {
|
336
|
-
n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", g) :
|
336
|
+
n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", g) : w();
|
337
337
|
};
|
338
338
|
if (e.autoplay.paused = !0, _) {
|
339
|
-
|
339
|
+
T && (d = e.params.autoplay.delay), T = !1, z();
|
340
340
|
return;
|
341
341
|
}
|
342
342
|
d = (d || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - c), !(e.isEnd && d < 0 && !e.params.loop) && (d < 0 && (d = 0), z());
|
343
|
-
},
|
343
|
+
}, w = () => {
|
344
344
|
e.isEnd && d < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (c = (/* @__PURE__ */ new Date()).getTime(), m ? (m = !1, I(d)) : I(), e.autoplay.paused = !1, n("autoplayResume"));
|
345
345
|
}, E = () => {
|
346
346
|
if (e.destroyed || !e.autoplay.running) return;
|
347
347
|
const L = j();
|
348
|
-
L.visibilityState === "hidden" && (m = !0,
|
348
|
+
L.visibilityState === "hidden" && (m = !0, y(!0)), L.visibilityState === "visible" && w();
|
349
|
+
}, C = (L) => {
|
350
|
+
L.pointerType === "mouse" && (m = !0, x = !0, !(e.animating || e.autoplay.paused) && y(!0));
|
349
351
|
}, M = (L) => {
|
350
|
-
L.pointerType === "mouse" && (
|
351
|
-
}, P = (L) => {
|
352
|
-
L.pointerType === "mouse" && (y = !1, e.autoplay.paused && S());
|
352
|
+
L.pointerType === "mouse" && (x = !1, e.autoplay.paused && w());
|
353
353
|
}, O = () => {
|
354
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter",
|
354
|
+
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", C), e.el.addEventListener("pointerleave", M));
|
355
355
|
}, D = () => {
|
356
|
-
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter",
|
356
|
+
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", C), e.el.removeEventListener("pointerleave", M));
|
357
357
|
}, $ = () => {
|
358
358
|
j().addEventListener("visibilitychange", E);
|
359
359
|
}, J = () => {
|
@@ -362,21 +362,21 @@ function ft(t) {
|
|
362
362
|
s("init", () => {
|
363
363
|
e.params.autoplay.enabled && (O(), $(), A());
|
364
364
|
}), s("destroy", () => {
|
365
|
-
D(), J(), e.autoplay.running &&
|
365
|
+
D(), J(), e.autoplay.running && P();
|
366
366
|
}), s("_freeModeStaticRelease", () => {
|
367
|
-
(h || m) &&
|
367
|
+
(h || m) && w();
|
368
368
|
}), s("_freeModeNoMomentumRelease", () => {
|
369
|
-
e.params.autoplay.disableOnInteraction ?
|
369
|
+
e.params.autoplay.disableOnInteraction ? P() : y(!0, !0);
|
370
370
|
}), s("beforeTransitionStart", (L, _, z) => {
|
371
|
-
e.destroyed || !e.autoplay.running || (z || !e.params.autoplay.disableOnInteraction ?
|
371
|
+
e.destroyed || !e.autoplay.running || (z || !e.params.autoplay.disableOnInteraction ? y(!0, !0) : P());
|
372
372
|
}), s("sliderFirstMove", () => {
|
373
373
|
if (!(e.destroyed || !e.autoplay.running)) {
|
374
374
|
if (e.params.autoplay.disableOnInteraction) {
|
375
|
-
|
375
|
+
P();
|
376
376
|
return;
|
377
377
|
}
|
378
378
|
f = !0, h = !1, m = !1, v = setTimeout(() => {
|
379
|
-
m = !0, h = !0,
|
379
|
+
m = !0, h = !0, y(!0);
|
380
380
|
}, 200);
|
381
381
|
}
|
382
382
|
}), s("touchEnd", () => {
|
@@ -385,15 +385,15 @@ function ft(t) {
|
|
385
385
|
h = !1, f = !1;
|
386
386
|
return;
|
387
387
|
}
|
388
|
-
h && e.params.cssMode &&
|
388
|
+
h && e.params.cssMode && w(), h = !1, f = !1;
|
389
389
|
}
|
390
390
|
}), s("slideChange", () => {
|
391
|
-
e.destroyed || !e.autoplay.running || (
|
391
|
+
e.destroyed || !e.autoplay.running || (T = !0);
|
392
392
|
}), Object.assign(e.autoplay, {
|
393
393
|
start: A,
|
394
|
-
stop:
|
395
|
-
pause:
|
396
|
-
resume:
|
394
|
+
stop: P,
|
395
|
+
pause: y,
|
396
|
+
resume: w
|
397
397
|
});
|
398
398
|
}
|
399
399
|
let oe;
|
@@ -469,13 +469,13 @@ function vt(t) {
|
|
469
469
|
height: f
|
470
470
|
} = e;
|
471
471
|
let h = p, v = f;
|
472
|
-
c.forEach((
|
472
|
+
c.forEach((T) => {
|
473
473
|
let {
|
474
474
|
contentBoxSize: m,
|
475
|
-
contentRect:
|
475
|
+
contentRect: x,
|
476
476
|
target: g
|
477
|
-
} =
|
478
|
-
g && g !== e.el || (h =
|
477
|
+
} = T;
|
478
|
+
g && g !== e.el || (h = x ? x.width : (m[0] || m).inlineSize, v = x ? x.height : (m[0] || m).blockSize);
|
479
479
|
}), (h !== p || v !== f) && o();
|
480
480
|
});
|
481
481
|
}), r.observe(e.el));
|
@@ -602,7 +602,7 @@ function Tt() {
|
|
602
602
|
const t = this;
|
603
603
|
let e, i;
|
604
604
|
const s = t.el;
|
605
|
-
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(
|
605
|
+
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(q(s, "padding-left") || 0, 10) - parseInt(q(s, "padding-right") || 0, 10), i = i - parseInt(q(s, "padding-top") || 0, 10) - parseInt(q(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
|
606
606
|
width: e,
|
607
607
|
height: i,
|
608
608
|
size: t.isHorizontal() ? e : i
|
@@ -610,8 +610,8 @@ function Tt() {
|
|
610
610
|
}
|
611
611
|
function bt() {
|
612
612
|
const t = this;
|
613
|
-
function e(
|
614
|
-
return parseFloat(
|
613
|
+
function e(w, E) {
|
614
|
+
return parseFloat(w.getPropertyValue(t.getDirectionLabel(E)) || 0);
|
615
615
|
}
|
616
616
|
const i = t.params, {
|
617
617
|
wrapperEl: s,
|
@@ -624,90 +624,90 @@ function bt() {
|
|
624
624
|
const f = [], h = [];
|
625
625
|
let v = i.slidesOffsetBefore;
|
626
626
|
typeof v == "function" && (v = i.slidesOffsetBefore.call(t));
|
627
|
-
let
|
628
|
-
typeof
|
629
|
-
const m = t.snapGrid.length,
|
630
|
-
let g = i.spaceBetween,
|
627
|
+
let T = i.slidesOffsetAfter;
|
628
|
+
typeof T == "function" && (T = i.slidesOffsetAfter.call(t));
|
629
|
+
const m = t.snapGrid.length, x = t.slidesGrid.length;
|
630
|
+
let g = i.spaceBetween, S = -v, b = 0, I = 0;
|
631
631
|
if (typeof r > "u")
|
632
632
|
return;
|
633
|
-
typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, d.forEach((
|
634
|
-
l ?
|
633
|
+
typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, d.forEach((w) => {
|
634
|
+
l ? w.style.marginLeft = "" : w.style.marginRight = "", w.style.marginBottom = "", w.style.marginTop = "";
|
635
635
|
}), i.centeredSlides && i.cssMode && (ie(s, "--swiper-centered-offset-before", ""), ie(s, "--swiper-centered-offset-after", ""));
|
636
636
|
const A = i.grid && i.grid.rows > 1 && t.grid;
|
637
637
|
A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
|
638
|
-
let
|
639
|
-
const
|
640
|
-
for (let
|
641
|
-
|
638
|
+
let P;
|
639
|
+
const y = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((w) => typeof i.breakpoints[w].slidesPerView < "u").length > 0;
|
640
|
+
for (let w = 0; w < c; w += 1) {
|
641
|
+
P = 0;
|
642
642
|
let E;
|
643
|
-
if (d[
|
643
|
+
if (d[w] && (E = d[w]), A && t.grid.updateSlide(w, E, d), !(d[w] && q(E, "display") === "none")) {
|
644
644
|
if (i.slidesPerView === "auto") {
|
645
|
-
|
646
|
-
const
|
647
|
-
if (
|
648
|
-
|
645
|
+
y && (d[w].style[t.getDirectionLabel("width")] = "");
|
646
|
+
const C = getComputedStyle(E), M = E.style.transform, O = E.style.webkitTransform;
|
647
|
+
if (M && (E.style.transform = "none"), O && (E.style.webkitTransform = "none"), i.roundLengths)
|
648
|
+
P = t.isHorizontal() ? Ce(E, "width") : Ce(E, "height");
|
649
649
|
else {
|
650
|
-
const D = e(
|
650
|
+
const D = e(C, "width"), $ = e(C, "padding-left"), J = e(C, "padding-right"), L = e(C, "margin-left"), _ = e(C, "margin-right"), z = C.getPropertyValue("box-sizing");
|
651
651
|
if (z && z === "border-box")
|
652
|
-
|
652
|
+
P = D + L + _;
|
653
653
|
else {
|
654
654
|
const {
|
655
|
-
clientWidth:
|
655
|
+
clientWidth: Y,
|
656
656
|
offsetWidth: ee
|
657
657
|
} = E;
|
658
|
-
|
658
|
+
P = D + $ + J + L + _ + (ee - Y);
|
659
659
|
}
|
660
660
|
}
|
661
|
-
|
661
|
+
M && (E.style.transform = M), O && (E.style.webkitTransform = O), i.roundLengths && (P = Math.floor(P));
|
662
662
|
} else
|
663
|
-
|
664
|
-
d[
|
663
|
+
P = (r - (i.slidesPerView - 1) * g) / i.slidesPerView, i.roundLengths && (P = Math.floor(P)), d[w] && (d[w].style[t.getDirectionLabel("width")] = `${P}px`);
|
664
|
+
d[w] && (d[w].swiperSlideSize = P), h.push(P), i.centeredSlides ? (S = S + P / 2 + b / 2 + g, b === 0 && w !== 0 && (S = S - r / 2 - g), w === 0 && (S = S - r / 2 - g), Math.abs(S) < 1 / 1e3 && (S = 0), i.roundLengths && (S = Math.floor(S)), I % i.slidesPerGroup === 0 && p.push(S), f.push(S)) : (i.roundLengths && (S = Math.floor(S)), (I - Math.min(t.params.slidesPerGroupSkip, I)) % t.params.slidesPerGroup === 0 && p.push(S), f.push(S), S = S + P + g), t.virtualSize += P + g, b = P, I += 1;
|
665
665
|
}
|
666
666
|
}
|
667
|
-
if (t.virtualSize = Math.max(t.virtualSize, r) +
|
668
|
-
const
|
667
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + T, l && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + g}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + g}px`), A && t.grid.updateWrapperSize(P, p), !i.centeredSlides) {
|
668
|
+
const w = [];
|
669
669
|
for (let E = 0; E < p.length; E += 1) {
|
670
|
-
let
|
671
|
-
i.roundLengths && (
|
670
|
+
let C = p[E];
|
671
|
+
i.roundLengths && (C = Math.floor(C)), p[E] <= t.virtualSize - r && w.push(C);
|
672
672
|
}
|
673
|
-
p =
|
673
|
+
p = w, Math.floor(t.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(t.virtualSize - r);
|
674
674
|
}
|
675
675
|
if (a && i.loop) {
|
676
|
-
const
|
676
|
+
const w = h[0] + g;
|
677
677
|
if (i.slidesPerGroup > 1) {
|
678
|
-
const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup),
|
679
|
-
for (let
|
680
|
-
p.push(p[p.length - 1] +
|
678
|
+
const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), C = w * i.slidesPerGroup;
|
679
|
+
for (let M = 0; M < E; M += 1)
|
680
|
+
p.push(p[p.length - 1] + C);
|
681
681
|
}
|
682
682
|
for (let E = 0; E < t.virtual.slidesBefore + t.virtual.slidesAfter; E += 1)
|
683
|
-
i.slidesPerGroup === 1 && p.push(p[p.length - 1] +
|
683
|
+
i.slidesPerGroup === 1 && p.push(p[p.length - 1] + w), f.push(f[f.length - 1] + w), t.virtualSize += w;
|
684
684
|
}
|
685
685
|
if (p.length === 0 && (p = [0]), g !== 0) {
|
686
|
-
const
|
687
|
-
d.filter((E,
|
688
|
-
E.style[
|
686
|
+
const w = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
687
|
+
d.filter((E, C) => !i.cssMode || i.loop ? !0 : C !== d.length - 1).forEach((E) => {
|
688
|
+
E.style[w] = `${g}px`;
|
689
689
|
});
|
690
690
|
}
|
691
691
|
if (i.centeredSlides && i.centeredSlidesBounds) {
|
692
|
-
let
|
693
|
-
h.forEach((
|
694
|
-
|
695
|
-
}),
|
696
|
-
const E =
|
697
|
-
p = p.map((
|
692
|
+
let w = 0;
|
693
|
+
h.forEach((C) => {
|
694
|
+
w += C + (g || 0);
|
695
|
+
}), w -= g;
|
696
|
+
const E = w - r;
|
697
|
+
p = p.map((C) => C <= 0 ? -v : C > E ? E + T : C);
|
698
698
|
}
|
699
699
|
if (i.centerInsufficientSlides) {
|
700
|
-
let
|
701
|
-
h.forEach((
|
702
|
-
|
703
|
-
}),
|
700
|
+
let w = 0;
|
701
|
+
h.forEach((C) => {
|
702
|
+
w += C + (g || 0);
|
703
|
+
}), w -= g;
|
704
704
|
const E = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
|
705
|
-
if (
|
706
|
-
const
|
707
|
-
p.forEach((
|
708
|
-
p[O] =
|
709
|
-
}), f.forEach((
|
710
|
-
f[O] =
|
705
|
+
if (w + E < r) {
|
706
|
+
const C = (r - w - E) / 2;
|
707
|
+
p.forEach((M, O) => {
|
708
|
+
p[O] = M - C;
|
709
|
+
}), f.forEach((M, O) => {
|
710
|
+
f[O] = M + C;
|
711
711
|
});
|
712
712
|
}
|
713
713
|
}
|
@@ -718,12 +718,12 @@ function bt() {
|
|
718
718
|
slidesSizesGrid: h
|
719
719
|
}), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
|
720
720
|
ie(s, "--swiper-centered-offset-before", `${-p[0]}px`), ie(s, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
|
721
|
-
const
|
722
|
-
t.snapGrid = t.snapGrid.map((
|
721
|
+
const w = -t.snapGrid[0], E = -t.slidesGrid[0];
|
722
|
+
t.snapGrid = t.snapGrid.map((C) => C + w), t.slidesGrid = t.slidesGrid.map((C) => C + E);
|
723
723
|
}
|
724
|
-
if (c !== u && t.emit("slidesLengthChange"), p.length !== m && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), f.length !==
|
725
|
-
const
|
726
|
-
c <= i.maxBackfaceHiddenSlides ? E || t.el.classList.add(
|
724
|
+
if (c !== u && t.emit("slidesLengthChange"), p.length !== m && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), f.length !== x && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !a && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
725
|
+
const w = `${i.containerModifierClass}backface-hidden`, E = t.el.classList.contains(w);
|
726
|
+
c <= i.maxBackfaceHiddenSlides ? E || t.el.classList.add(w) : E && t.el.classList.remove(w);
|
727
727
|
}
|
728
728
|
}
|
729
729
|
function yt(t) {
|
@@ -776,8 +776,8 @@ function Et(t) {
|
|
776
776
|
const u = s[a];
|
777
777
|
let d = u.swiperSlideOffset;
|
778
778
|
i.cssMode && i.centeredSlides && (d -= s[0].swiperSlideOffset);
|
779
|
-
const c = (l + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), p = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), f = -(l - d), h = f + e.slidesSizesGrid[a], v = f >= 0 && f <= e.size - e.slidesSizesGrid[a],
|
780
|
-
|
779
|
+
const c = (l + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), p = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - d) / (u.swiperSlideSize + o), f = -(l - d), h = f + e.slidesSizesGrid[a], v = f >= 0 && f <= e.size - e.slidesSizesGrid[a], T = f >= 0 && f < e.size - 1 || h > 1 && h <= e.size || f <= 0 && h >= e.size;
|
780
|
+
T && (e.visibleSlides.push(u), e.visibleSlidesIndexes.push(a)), Ie(u, T, i.slideVisibleClass), Ie(u, v, i.slideFullyVisibleClass), u.progress = n ? -c : c, u.originalProgress = n ? -p : p;
|
781
781
|
}
|
782
782
|
}
|
783
783
|
function Pt(t) {
|
@@ -1112,45 +1112,45 @@ function Rt(t, e, i, s, n) {
|
|
1112
1112
|
return !1;
|
1113
1113
|
typeof e > "u" && (e = r.params.speed);
|
1114
1114
|
const v = Math.min(r.params.slidesPerGroupSkip, l);
|
1115
|
-
let
|
1116
|
-
|
1117
|
-
const m = -a[
|
1115
|
+
let T = v + Math.floor((l - v) / r.params.slidesPerGroup);
|
1116
|
+
T >= a.length && (T = a.length - 1);
|
1117
|
+
const m = -a[T];
|
1118
1118
|
if (o.normalizeSlideIndex)
|
1119
1119
|
for (let g = 0; g < u.length; g += 1) {
|
1120
|
-
const
|
1121
|
-
typeof u[g + 1] < "u" ?
|
1120
|
+
const S = -Math.floor(m * 100), b = Math.floor(u[g] * 100), I = Math.floor(u[g + 1] * 100);
|
1121
|
+
typeof u[g + 1] < "u" ? S >= b && S < I - (I - b) / 2 ? l = g : S >= b && S < I && (l = g + 1) : S >= b && (l = g);
|
1122
1122
|
}
|
1123
1123
|
if (r.initialized && l !== c && (!r.allowSlideNext && (p ? m > r.translate && m > r.minTranslate() : m < r.translate && m < r.minTranslate()) || !r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (c || 0) !== l))
|
1124
1124
|
return !1;
|
1125
1125
|
l !== (d || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(m);
|
1126
|
-
let
|
1127
|
-
if (l > c ?
|
1128
|
-
return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(m),
|
1126
|
+
let x;
|
1127
|
+
if (l > c ? x = "next" : l < c ? x = "prev" : x = "reset", p && -m === r.translate || !p && m === r.translate)
|
1128
|
+
return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(m), x !== "reset" && (r.transitionStart(i, x), r.transitionEnd(i, x)), !1;
|
1129
1129
|
if (o.cssMode) {
|
1130
|
-
const g = r.isHorizontal(),
|
1130
|
+
const g = r.isHorizontal(), S = p ? m : -m;
|
1131
1131
|
if (e === 0) {
|
1132
|
-
const
|
1133
|
-
|
1134
|
-
f[g ? "scrollLeft" : "scrollTop"] =
|
1135
|
-
})) : f[g ? "scrollLeft" : "scrollTop"] =
|
1132
|
+
const b = r.virtual && r.params.virtual.enabled;
|
1133
|
+
b && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), b && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
1134
|
+
f[g ? "scrollLeft" : "scrollTop"] = S;
|
1135
|
+
})) : f[g ? "scrollLeft" : "scrollTop"] = S, b && requestAnimationFrame(() => {
|
1136
1136
|
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
|
1137
1137
|
});
|
1138
1138
|
} else {
|
1139
1139
|
if (!r.support.smoothScroll)
|
1140
1140
|
return Ve({
|
1141
1141
|
swiper: r,
|
1142
|
-
targetPosition:
|
1142
|
+
targetPosition: S,
|
1143
1143
|
side: g ? "left" : "top"
|
1144
1144
|
}), !0;
|
1145
1145
|
f.scrollTo({
|
1146
|
-
[g ? "left" : "top"]:
|
1146
|
+
[g ? "left" : "top"]: S,
|
1147
1147
|
behavior: "smooth"
|
1148
1148
|
});
|
1149
1149
|
}
|
1150
1150
|
return !0;
|
1151
1151
|
}
|
1152
|
-
return r.setTransition(e), r.setTranslate(m), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i,
|
1153
|
-
!r || r.destroyed ||
|
1152
|
+
return r.setTransition(e), r.setTranslate(m), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, x), e === 0 ? r.transitionEnd(i, x) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(S) {
|
1153
|
+
!r || r.destroyed || S.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, x));
|
1154
1154
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
1155
1155
|
}
|
1156
1156
|
function kt(t, e, i, s) {
|
@@ -1245,19 +1245,19 @@ function jt(t, e, i) {
|
|
1245
1245
|
let v = r[h.indexOf(f) - 1];
|
1246
1246
|
if (typeof v > "u" && n.cssMode) {
|
1247
1247
|
let m;
|
1248
|
-
r.forEach((
|
1249
|
-
f >=
|
1248
|
+
r.forEach((x, g) => {
|
1249
|
+
f >= x && (m = g);
|
1250
1250
|
}), typeof m < "u" && (v = r[m > 0 ? m - 1 : m]);
|
1251
1251
|
}
|
1252
|
-
let
|
1253
|
-
if (typeof v < "u" && (
|
1252
|
+
let T = 0;
|
1253
|
+
if (typeof v < "u" && (T = l.indexOf(v), T < 0 && (T = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (T = T - s.slidesPerViewDynamic("previous", !0) + 1, T = Math.max(T, 0))), n.rewind && s.isBeginning) {
|
1254
1254
|
const m = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
|
1255
1255
|
return s.slideTo(m, t, e, i);
|
1256
1256
|
} else if (n.loop && s.activeIndex === 0 && n.cssMode)
|
1257
1257
|
return requestAnimationFrame(() => {
|
1258
|
-
s.slideTo(
|
1258
|
+
s.slideTo(T, t, e, i);
|
1259
1259
|
}), !0;
|
1260
|
-
return s.slideTo(
|
1260
|
+
return s.slideTo(T, t, e, i);
|
1261
1261
|
}
|
1262
1262
|
function Wt(t, e, i) {
|
1263
1263
|
e === void 0 && (e = !0);
|
@@ -1374,65 +1374,65 @@ function Kt(t) {
|
|
1374
1374
|
}
|
1375
1375
|
let v = f.slidesPerView;
|
1376
1376
|
v === "auto" ? v = a.slidesPerViewDynamic() : (v = Math.ceil(parseFloat(f.slidesPerView, 10)), h && v % 2 === 0 && (v = v + 1));
|
1377
|
-
const
|
1378
|
-
let m =
|
1379
|
-
m %
|
1380
|
-
const
|
1381
|
-
u.length < v + m ? ae("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") :
|
1382
|
-
const g = [],
|
1383
|
-
let
|
1384
|
-
typeof r > "u" ? r = a.getSlideIndex(u.filter((
|
1377
|
+
const T = f.slidesPerGroupAuto ? v : f.slidesPerGroup;
|
1378
|
+
let m = T;
|
1379
|
+
m % T !== 0 && (m += T - m % T), m += f.loopAdditionalSlides, a.loopedSlides = m;
|
1380
|
+
const x = a.grid && f.grid && f.grid.rows > 1;
|
1381
|
+
u.length < v + m ? ae("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : x && f.grid.fill === "row" && ae("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
1382
|
+
const g = [], S = [];
|
1383
|
+
let b = a.activeIndex;
|
1384
|
+
typeof r > "u" ? r = a.getSlideIndex(u.filter((M) => M.classList.contains(f.slideActiveClass))[0]) : b = r;
|
1385
1385
|
const I = s === "next" || !s, A = s === "prev" || !s;
|
1386
|
-
let
|
1387
|
-
const
|
1388
|
-
if (
|
1389
|
-
|
1390
|
-
for (let
|
1391
|
-
const O =
|
1392
|
-
if (
|
1393
|
-
const D =
|
1386
|
+
let P = 0, y = 0;
|
1387
|
+
const w = x ? Math.ceil(u.length / f.grid.rows) : u.length, C = (x ? u[r].column : r) + (h && typeof n > "u" ? -v / 2 + 0.5 : 0);
|
1388
|
+
if (C < m) {
|
1389
|
+
P = Math.max(m - C, T);
|
1390
|
+
for (let M = 0; M < m - C; M += 1) {
|
1391
|
+
const O = M - Math.floor(M / w) * w;
|
1392
|
+
if (x) {
|
1393
|
+
const D = w - O - 1;
|
1394
1394
|
for (let $ = u.length - 1; $ >= 0; $ -= 1)
|
1395
1395
|
u[$].column === D && g.push($);
|
1396
1396
|
} else
|
1397
|
-
g.push(
|
1397
|
+
g.push(w - O - 1);
|
1398
1398
|
}
|
1399
|
-
} else if (
|
1400
|
-
|
1401
|
-
for (let
|
1402
|
-
const O =
|
1403
|
-
|
1404
|
-
D.column === O &&
|
1405
|
-
}) :
|
1399
|
+
} else if (C + v > w - m) {
|
1400
|
+
y = Math.max(C - (w - m * 2), T);
|
1401
|
+
for (let M = 0; M < y; M += 1) {
|
1402
|
+
const O = M - Math.floor(M / w) * w;
|
1403
|
+
x ? u.forEach((D, $) => {
|
1404
|
+
D.column === O && S.push($);
|
1405
|
+
}) : S.push(O);
|
1406
1406
|
}
|
1407
1407
|
}
|
1408
1408
|
if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
|
1409
1409
|
a.__preventObserver__ = !1;
|
1410
|
-
}), A && g.forEach((
|
1411
|
-
u[
|
1412
|
-
}), I &&
|
1413
|
-
u[
|
1414
|
-
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() :
|
1415
|
-
a.grid.updateSlide(O,
|
1410
|
+
}), A && g.forEach((M) => {
|
1411
|
+
u[M].swiperLoopMoveDOM = !0, p.prepend(u[M]), u[M].swiperLoopMoveDOM = !1;
|
1412
|
+
}), I && S.forEach((M) => {
|
1413
|
+
u[M].swiperLoopMoveDOM = !0, p.append(u[M]), u[M].swiperLoopMoveDOM = !1;
|
1414
|
+
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : x && (g.length > 0 && A || S.length > 0 && I) && a.slides.forEach((M, O) => {
|
1415
|
+
a.grid.updateSlide(O, M, a.slides);
|
1416
1416
|
}), f.watchSlidesProgress && a.updateSlidesOffset(), i) {
|
1417
1417
|
if (g.length > 0 && A) {
|
1418
1418
|
if (typeof e > "u") {
|
1419
|
-
const
|
1420
|
-
o ? a.setTranslate(a.translate - D) : (a.slideTo(
|
1419
|
+
const M = a.slidesGrid[b], D = a.slidesGrid[b + P] - M;
|
1420
|
+
o ? a.setTranslate(a.translate - D) : (a.slideTo(b + Math.ceil(P), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - D, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - D));
|
1421
1421
|
} else if (n) {
|
1422
|
-
const
|
1423
|
-
a.slideTo(a.activeIndex +
|
1422
|
+
const M = x ? g.length / f.grid.rows : g.length;
|
1423
|
+
a.slideTo(a.activeIndex + M, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
|
1424
1424
|
}
|
1425
|
-
} else if (
|
1425
|
+
} else if (S.length > 0 && I)
|
1426
1426
|
if (typeof e > "u") {
|
1427
|
-
const
|
1428
|
-
o ? a.setTranslate(a.translate - D) : (a.slideTo(
|
1427
|
+
const M = a.slidesGrid[b], D = a.slidesGrid[b - y] - M;
|
1428
|
+
o ? a.setTranslate(a.translate - D) : (a.slideTo(b - y, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - D, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - D));
|
1429
1429
|
} else {
|
1430
|
-
const
|
1431
|
-
a.slideTo(a.activeIndex -
|
1430
|
+
const M = x ? S.length / f.grid.rows : S.length;
|
1431
|
+
a.slideTo(a.activeIndex - M, 0, !1, !0);
|
1432
1432
|
}
|
1433
1433
|
}
|
1434
1434
|
if (a.allowSlidePrev = d, a.allowSlideNext = c, a.controller && a.controller.control && !l) {
|
1435
|
-
const
|
1435
|
+
const M = {
|
1436
1436
|
slideRealIndex: e,
|
1437
1437
|
direction: s,
|
1438
1438
|
setTranslate: n,
|
@@ -1441,11 +1441,11 @@ function Kt(t) {
|
|
1441
1441
|
};
|
1442
1442
|
Array.isArray(a.controller.control) ? a.controller.control.forEach((O) => {
|
1443
1443
|
!O.destroyed && O.params.loop && O.loopFix({
|
1444
|
-
...
|
1444
|
+
...M,
|
1445
1445
|
slideTo: O.params.slidesPerView === f.slidesPerView ? i : !1
|
1446
1446
|
});
|
1447
1447
|
}) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
|
1448
|
-
...
|
1448
|
+
...M,
|
1449
1449
|
slideTo: a.controller.control.params.slidesPerView === f.slidesPerView ? i : !1
|
1450
1450
|
});
|
1451
1451
|
}
|
@@ -1553,8 +1553,8 @@ function si(t) {
|
|
1553
1553
|
}), l.startX = f, l.startY = h, n.touchStartTime = ne(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
1554
1554
|
let v = !0;
|
1555
1555
|
a.matches(n.focusableElements) && (v = !1, a.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== a && i.activeElement.blur();
|
1556
|
-
const
|
1557
|
-
(r.touchStartForcePreventDefault ||
|
1556
|
+
const T = v && e.allowTouchMove && r.touchStartPreventDefault;
|
1557
|
+
(r.touchStartForcePreventDefault || T) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
|
1558
1558
|
}
|
1559
1559
|
function ri(t) {
|
1560
1560
|
const e = j(), i = this, s = i.touchEventsData, {
|
@@ -1619,11 +1619,11 @@ function ri(t) {
|
|
1619
1619
|
i.allowClick = !1, !n.cssMode && a.cancelable && a.preventDefault(), n.touchMoveStopPropagation && !n.nested && a.stopPropagation();
|
1620
1620
|
let h = i.isHorizontal() ? p : f, v = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
1621
1621
|
n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), v = Math.abs(v) * (l ? 1 : -1)), r.diff = h, h *= n.touchRatio, l && (h = -h, v = -v);
|
1622
|
-
const
|
1622
|
+
const T = i.touchesDirection;
|
1623
1623
|
i.swipeDirection = h > 0 ? "prev" : "next", i.touchesDirection = v > 0 ? "prev" : "next";
|
1624
|
-
const m = i.params.loop && !n.cssMode,
|
1624
|
+
const m = i.params.loop && !n.cssMode, x = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
1625
1625
|
if (!s.isMoved) {
|
1626
|
-
if (m &&
|
1626
|
+
if (m && x && i.loopFix({
|
1627
1627
|
direction: i.swipeDirection
|
1628
1628
|
}), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
1629
1629
|
const I = new window.CustomEvent("transitionend", {
|
@@ -1638,7 +1638,7 @@ function ri(t) {
|
|
1638
1638
|
s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", a);
|
1639
1639
|
}
|
1640
1640
|
let g;
|
1641
|
-
if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove &&
|
1641
|
+
if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && T !== i.touchesDirection && m && x && Math.abs(h) >= 1) {
|
1642
1642
|
Object.assign(r, {
|
1643
1643
|
startX: d,
|
1644
1644
|
startY: c,
|
@@ -1649,16 +1649,16 @@ function ri(t) {
|
|
1649
1649
|
return;
|
1650
1650
|
}
|
1651
1651
|
i.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = h + s.startTranslate;
|
1652
|
-
let
|
1653
|
-
if (n.touchReleaseOnEdges && (
|
1652
|
+
let S = !0, b = n.resistanceRatio;
|
1653
|
+
if (n.touchReleaseOnEdges && (b = 0), h > 0 ? (m && x && !g && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] : i.minTranslate()) && i.loopFix({
|
1654
1654
|
direction: "prev",
|
1655
1655
|
setTranslate: !0,
|
1656
1656
|
activeSlideIndex: 0
|
1657
|
-
}), s.currentTranslate > i.minTranslate() && (
|
1657
|
+
}), s.currentTranslate > i.minTranslate() && (S = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + h) ** b))) : h < 0 && (m && x && !g && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] : i.maxTranslate()) && i.loopFix({
|
1658
1658
|
direction: "next",
|
1659
1659
|
setTranslate: !0,
|
1660
1660
|
activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
1661
|
-
}), s.currentTranslate < i.maxTranslate() && (
|
1661
|
+
}), s.currentTranslate < i.maxTranslate() && (S = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - h) ** b))), S && (a.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
|
1662
1662
|
if (Math.abs(h) > n.threshold || s.allowThresholdMove) {
|
1663
1663
|
if (!s.allowThresholdMove) {
|
1664
1664
|
s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
|
@@ -1676,7 +1676,7 @@ function ni(t) {
|
|
1676
1676
|
s.originalEvent && (s = s.originalEvent);
|
1677
1677
|
let n;
|
1678
1678
|
if (s.type === "touchend" || s.type === "touchcancel") {
|
1679
|
-
if (n = [...s.changedTouches].filter((
|
1679
|
+
if (n = [...s.changedTouches].filter((b) => b.identifier === i.touchId)[0], !n || n.identifier !== i.touchId) return;
|
1680
1680
|
} else {
|
1681
1681
|
if (i.touchId !== null || s.pointerId !== i.pointerId) return;
|
1682
1682
|
n = s;
|
@@ -1699,8 +1699,8 @@ function ni(t) {
|
|
1699
1699
|
l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
1700
1700
|
const c = ne(), p = c - i.touchStartTime;
|
1701
1701
|
if (e.allowClick) {
|
1702
|
-
const
|
1703
|
-
e.updateClickedSlide(
|
1702
|
+
const b = s.path || s.composedPath && s.composedPath();
|
1703
|
+
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), p < 300 && c - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
|
1704
1704
|
}
|
1705
1705
|
if (i.lastClickTime = ne(), ge(() => {
|
1706
1706
|
e.destroyed || (e.allowClick = !0);
|
@@ -1719,26 +1719,26 @@ function ni(t) {
|
|
1719
1719
|
return;
|
1720
1720
|
}
|
1721
1721
|
const h = f >= -e.maxTranslate() && !e.params.loop;
|
1722
|
-
let v = 0,
|
1723
|
-
for (let
|
1724
|
-
const I =
|
1725
|
-
typeof u[
|
1726
|
-
}
|
1727
|
-
let m = null,
|
1728
|
-
l.rewind && (e.isBeginning ?
|
1729
|
-
const g = (f - u[v]) /
|
1722
|
+
let v = 0, T = e.slidesSizesGrid[0];
|
1723
|
+
for (let b = 0; b < u.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
1724
|
+
const I = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
1725
|
+
typeof u[b + I] < "u" ? (h || f >= u[b] && f < u[b + I]) && (v = b, T = u[b + I] - u[b]) : (h || f >= u[b]) && (v = b, T = u[u.length - 1] - u[u.length - 2]);
|
1726
|
+
}
|
1727
|
+
let m = null, x = null;
|
1728
|
+
l.rewind && (e.isBeginning ? x = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (m = 0));
|
1729
|
+
const g = (f - u[v]) / T, S = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
1730
1730
|
if (p > l.longSwipesMs) {
|
1731
1731
|
if (!l.longSwipes) {
|
1732
1732
|
e.slideTo(e.activeIndex);
|
1733
1733
|
return;
|
1734
1734
|
}
|
1735
|
-
e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? m : v +
|
1735
|
+
e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? m : v + S) : e.slideTo(v)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(v + S) : x !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(x) : e.slideTo(v));
|
1736
1736
|
} else {
|
1737
1737
|
if (!l.shortSwipes) {
|
1738
1738
|
e.slideTo(e.activeIndex);
|
1739
1739
|
return;
|
1740
1740
|
}
|
1741
|
-
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v +
|
1741
|
+
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v + S) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(m !== null ? m : v + S), e.swipeDirection === "prev" && e.slideTo(x !== null ? x : v));
|
1742
1742
|
}
|
1743
1743
|
}
|
1744
1744
|
function Oe() {
|
@@ -1848,17 +1848,17 @@ function pi() {
|
|
1848
1848
|
const a = (l in r ? r[l] : void 0) || t.originalParams, u = _e(t, s), d = _e(t, a), c = t.params.grabCursor, p = a.grabCursor, f = s.enabled;
|
1849
1849
|
u && !d ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && d && (n.classList.add(`${s.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), c && !p ? t.unsetGrabCursor() : !c && p && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((g) => {
|
1850
1850
|
if (typeof a[g] > "u") return;
|
1851
|
-
const
|
1852
|
-
|
1851
|
+
const S = s[g] && s[g].enabled, b = a[g] && a[g].enabled;
|
1852
|
+
S && !b && t[g].disable(), !S && b && t[g].enable();
|
1853
1853
|
});
|
1854
|
-
const h = a.direction && a.direction !== s.direction, v = s.loop && (a.slidesPerView !== s.slidesPerView || h),
|
1854
|
+
const h = a.direction && a.direction !== s.direction, v = s.loop && (a.slidesPerView !== s.slidesPerView || h), T = s.loop;
|
1855
1855
|
h && i && t.changeDirection(), B(t.params, a);
|
1856
|
-
const m = t.params.enabled,
|
1856
|
+
const m = t.params.enabled, x = t.params.loop;
|
1857
1857
|
Object.assign(t, {
|
1858
1858
|
allowTouchMove: t.params.allowTouchMove,
|
1859
1859
|
allowSlideNext: t.params.allowSlideNext,
|
1860
1860
|
allowSlidePrev: t.params.allowSlidePrev
|
1861
|
-
}), f && !m ? t.disable() : !f && m && t.enable(), t.currentBreakpoint = l, t.emit("_beforeBreakpoint", a), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !
|
1861
|
+
}), f && !m ? t.disable() : !f && m && t.enable(), t.currentBreakpoint = l, t.emit("_beforeBreakpoint", a), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !T && x ? (t.loopCreate(e), t.updateSlides()) : T && !x && t.loopDestroy()), t.emit("breakpoint", a);
|
1862
1862
|
}
|
1863
1863
|
function mi(t, e, i) {
|
1864
1864
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
|
@@ -2363,9 +2363,9 @@ let ye = class k {
|
|
2363
2363
|
hostEl: i.isElement ? s.parentNode.host : s,
|
2364
2364
|
mounted: !0,
|
2365
2365
|
// RTL
|
2366
|
-
rtl: s.dir.toLowerCase() === "rtl" ||
|
2367
|
-
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" ||
|
2368
|
-
wrongRTL:
|
2366
|
+
rtl: s.dir.toLowerCase() === "rtl" || q(s, "direction") === "rtl",
|
2367
|
+
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || q(s, "direction") === "rtl"),
|
2368
|
+
wrongRTL: q(l, "display") === "-webkit-box"
|
2369
2369
|
}), !0;
|
2370
2370
|
}
|
2371
2371
|
init(e) {
|
@@ -2536,13 +2536,13 @@ const ke = [
|
|
2536
2536
|
"zoom",
|
2537
2537
|
"control"
|
2538
2538
|
];
|
2539
|
-
function
|
2539
|
+
function X(t) {
|
2540
2540
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
2541
2541
|
}
|
2542
2542
|
function Z(t, e) {
|
2543
2543
|
const i = ["__proto__", "constructor", "prototype"];
|
2544
2544
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
2545
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
2545
|
+
typeof t[s] > "u" ? t[s] = e[s] : X(e[s]) && X(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : Z(t[s], e[s]) : t[s] = e[s];
|
2546
2546
|
});
|
2547
2547
|
}
|
2548
2548
|
function He(t) {
|
@@ -2575,7 +2575,7 @@ function Ei(t) {
|
|
2575
2575
|
scrollbarEl: o,
|
2576
2576
|
paginationEl: a
|
2577
2577
|
} = t;
|
2578
|
-
const u = n.filter((
|
2578
|
+
const u = n.filter((y) => y !== "children" && y !== "direction" && y !== "wrapperClass"), {
|
2579
2579
|
params: d,
|
2580
2580
|
pagination: c,
|
2581
2581
|
navigation: p,
|
@@ -2583,19 +2583,19 @@ function Ei(t) {
|
|
2583
2583
|
virtual: h,
|
2584
2584
|
thumbs: v
|
2585
2585
|
} = e;
|
2586
|
-
let
|
2587
|
-
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && d.thumbs && !d.thumbs.swiper && (
|
2588
|
-
const
|
2589
|
-
e[
|
2586
|
+
let T, m, x, g, S, b, I, A;
|
2587
|
+
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && d.thumbs && !d.thumbs.swiper && (T = !0), n.includes("controller") && s.controller && s.controller.control && d.controller && !d.controller.control && (m = !0), n.includes("pagination") && s.pagination && (s.pagination.el || a) && (d.pagination || d.pagination === !1) && c && !c.el && (x = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (d.scrollbar || d.scrollbar === !1) && f && !f.el && (g = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (d.navigation || d.navigation === !1) && p && !p.prevEl && !p.nextEl && (S = !0);
|
2588
|
+
const P = (y) => {
|
2589
|
+
e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), d[y].prevEl = void 0, d[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), d[y].el = void 0, e[y].el = void 0));
|
2590
2590
|
};
|
2591
|
-
n.includes("loop") && e.isElement && (d.loop && !s.loop ?
|
2592
|
-
if (
|
2593
|
-
Object.assign(d[
|
2591
|
+
n.includes("loop") && e.isElement && (d.loop && !s.loop ? b = !0 : !d.loop && s.loop ? I = !0 : A = !0), u.forEach((y) => {
|
2592
|
+
if (X(d[y]) && X(s[y]))
|
2593
|
+
Object.assign(d[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && P(y);
|
2594
2594
|
else {
|
2595
|
-
const
|
2596
|
-
(
|
2595
|
+
const w = s[y];
|
2596
|
+
(w === !0 || w === !1) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? w === !1 && P(y) : d[y] = s[y];
|
2597
2597
|
}
|
2598
|
-
}), u.includes("controller") && !m && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && h && d.virtual.enabled ? (h.slides = i, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (i && (h.slides = i), h.update(!0)), n.includes("children") && i && d.loop && (A = !0),
|
2598
|
+
}), u.includes("controller") && !m && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && h && d.virtual.enabled ? (h.slides = i, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (i && (h.slides = i), h.update(!0)), n.includes("children") && i && d.loop && (A = !0), T && v.init() && v.update(!0), m && (e.controller.control = d.controller.control), x && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-pagination"), a.part.add("pagination"), e.el.appendChild(a)), a && (d.pagination.el = a), c.init(), c.render(), c.update()), g && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (d.scrollbar.el = o), f.init(), f.updateSize(), f.setTranslate()), S && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), r.innerHTML = e.hostEl.constructor.nextButtonSvg, r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), r && (d.navigation.nextEl = r), l && (d.navigation.prevEl = l), p.init(), p.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (b || A) && e.loopDestroy(), (I || A) && e.loopCreate(), e.update();
|
2599
2599
|
}
|
2600
2600
|
function Pi(t, e) {
|
2601
2601
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
@@ -2605,7 +2605,7 @@ function Pi(t, e) {
|
|
2605
2605
|
Z(i, Se), i._emitClasses = !0, i.init = !1;
|
2606
2606
|
const r = {}, l = ke.map((a) => a.replace(/_/, "")), o = Object.assign({}, t);
|
2607
2607
|
return Object.keys(o).forEach((a) => {
|
2608
|
-
typeof t[a] > "u" || (l.indexOf(a) >= 0 ?
|
2608
|
+
typeof t[a] > "u" || (l.indexOf(a) >= 0 ? X(t[a]) ? (i[a] = {}, n[a] = {}, Z(i[a], t[a]), Z(n[a], t[a])) : (i[a] = t[a], n[a] = t[a]) : a.search(/on[A-Z]/) === 0 && typeof t[a] == "function" ? e ? s[`${a[2].toLowerCase()}${a.substr(3)}`] = t[a] : i.on[`${a[2].toLowerCase()}${a.substr(3)}`] = t[a] : r[a] = t[a]);
|
2609
2609
|
}), ["navigation", "pagination", "scrollbar"].forEach((a) => {
|
2610
2610
|
i[a] === !0 && (i[a] = {}), i[a] === !1 && delete i[a];
|
2611
2611
|
}), {
|
@@ -2638,7 +2638,7 @@ function Ci(t, e, i, s, n) {
|
|
2638
2638
|
}
|
2639
2639
|
return ke.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
2640
2640
|
if (a in t && a in e)
|
2641
|
-
if (
|
2641
|
+
if (X(t[a]) && X(e[a])) {
|
2642
2642
|
const u = Object.keys(t[a]), d = Object.keys(e[a]);
|
2643
2643
|
u.length !== d.length ? l(a) : (u.forEach((c) => {
|
2644
2644
|
t[a][c] !== e[a][c] && l(a);
|
@@ -2725,39 +2725,39 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), _i = () => e
|
|
2725
2725
|
onSwiper: l,
|
2726
2726
|
...o
|
2727
2727
|
} = t === void 0 ? {} : t, a = !1;
|
2728
|
-
const [u, d] = K("swiper"), [c, p] = K(null), [f, h] = K(!1), v = R(!1),
|
2729
|
-
params:
|
2730
|
-
passedParams:
|
2731
|
-
rest:
|
2728
|
+
const [u, d] = K("swiper"), [c, p] = K(null), [f, h] = K(!1), v = R(!1), T = R(null), m = R(null), x = R(null), g = R(null), S = R(null), b = R(null), I = R(null), A = R(null), {
|
2729
|
+
params: P,
|
2730
|
+
passedParams: y,
|
2731
|
+
rest: w,
|
2732
2732
|
events: E
|
2733
2733
|
} = Pi(o), {
|
2734
|
-
slides:
|
2735
|
-
slots:
|
2734
|
+
slides: C,
|
2735
|
+
slots: M
|
2736
2736
|
} = Li(r), O = () => {
|
2737
2737
|
h(!f);
|
2738
2738
|
};
|
2739
|
-
Object.assign(
|
2739
|
+
Object.assign(P.on, {
|
2740
2740
|
_containerClasses(_, z) {
|
2741
2741
|
d(z);
|
2742
2742
|
}
|
2743
2743
|
});
|
2744
2744
|
const D = () => {
|
2745
|
-
Object.assign(
|
2745
|
+
Object.assign(P.on, E), a = !0;
|
2746
2746
|
const _ = {
|
2747
|
-
...
|
2747
|
+
...P
|
2748
2748
|
};
|
2749
2749
|
if (delete _.wrapperClass, m.current = new ye(_), m.current.virtual && m.current.params.virtual.enabled) {
|
2750
|
-
m.current.virtual.slides =
|
2750
|
+
m.current.virtual.slides = C;
|
2751
2751
|
const z = {
|
2752
2752
|
cache: !1,
|
2753
|
-
slides:
|
2753
|
+
slides: C,
|
2754
2754
|
renderExternal: p,
|
2755
2755
|
renderExternalUpdate: !1
|
2756
2756
|
};
|
2757
2757
|
Z(m.current.params.virtual, z), Z(m.current.originalParams.virtual, z);
|
2758
2758
|
}
|
2759
2759
|
};
|
2760
|
-
|
2760
|
+
T.current || D(), m.current && m.current.on("_beforeBreakpoint", O);
|
2761
2761
|
const $ = () => {
|
2762
2762
|
a || !E || !m.current || Object.keys(E).forEach((_) => {
|
2763
2763
|
m.current.on(_, E[_]);
|
@@ -2772,27 +2772,27 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), _i = () => e
|
|
2772
2772
|
}), he(() => {
|
2773
2773
|
!v.current && m.current && (m.current.emitSlidesClasses(), v.current = !0);
|
2774
2774
|
}), Q(() => {
|
2775
|
-
if (e && (e.current =
|
2775
|
+
if (e && (e.current = T.current), !!T.current)
|
2776
2776
|
return m.current.destroyed && D(), Mi({
|
2777
|
-
el:
|
2778
|
-
nextEl:
|
2779
|
-
prevEl:
|
2777
|
+
el: T.current,
|
2778
|
+
nextEl: S.current,
|
2779
|
+
prevEl: b.current,
|
2780
2780
|
paginationEl: I.current,
|
2781
2781
|
scrollbarEl: A.current,
|
2782
2782
|
swiper: m.current
|
2783
|
-
},
|
2783
|
+
}, P), l && !m.current.destroyed && l(m.current), () => {
|
2784
2784
|
m.current && !m.current.destroyed && m.current.destroy(!0, !1);
|
2785
2785
|
};
|
2786
2786
|
}, []), Q(() => {
|
2787
2787
|
$();
|
2788
|
-
const _ = Ci(
|
2789
|
-
return
|
2788
|
+
const _ = Ci(y, x.current, C, g.current, (z) => z.key);
|
2789
|
+
return x.current = y, g.current = C, _.length && m.current && !m.current.destroyed && Ei({
|
2790
2790
|
swiper: m.current,
|
2791
|
-
slides:
|
2792
|
-
passedParams:
|
2791
|
+
slides: C,
|
2792
|
+
passedParams: y,
|
2793
2793
|
changedParams: _,
|
2794
|
-
nextEl:
|
2795
|
-
prevEl:
|
2794
|
+
nextEl: S.current,
|
2795
|
+
prevEl: b.current,
|
2796
2796
|
scrollbarEl: A.current,
|
2797
2797
|
paginationEl: I.current
|
2798
2798
|
}), () => {
|
@@ -2802,31 +2802,31 @@ const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), _i = () => e
|
|
2802
2802
|
Ii(m.current);
|
2803
2803
|
}, [c]);
|
2804
2804
|
function L() {
|
2805
|
-
return
|
2805
|
+
return P.virtual ? Oi(m.current, C, c) : C.map((_, z) => /* @__PURE__ */ G.cloneElement(_, {
|
2806
2806
|
swiper: m.current,
|
2807
2807
|
swiperSlideIndex: z
|
2808
2808
|
}));
|
2809
2809
|
}
|
2810
2810
|
return /* @__PURE__ */ G.createElement(s, le({
|
2811
|
-
ref:
|
2811
|
+
ref: T,
|
2812
2812
|
className: qe(`${u}${i ? ` ${i}` : ""}`)
|
2813
|
-
},
|
2813
|
+
}, w), /* @__PURE__ */ G.createElement(Ue.Provider, {
|
2814
2814
|
value: m.current
|
2815
|
-
},
|
2816
|
-
className: xi(
|
2817
|
-
},
|
2818
|
-
ref:
|
2815
|
+
}, M["container-start"], /* @__PURE__ */ G.createElement(n, {
|
2816
|
+
className: xi(P.wrapperClass)
|
2817
|
+
}, M["wrapper-start"], L(), M["wrapper-end"]), He(P) && /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement("div", {
|
2818
|
+
ref: b,
|
2819
2819
|
className: "swiper-button-prev"
|
2820
2820
|
}), /* @__PURE__ */ G.createElement("div", {
|
2821
|
-
ref:
|
2821
|
+
ref: S,
|
2822
2822
|
className: "swiper-button-next"
|
2823
|
-
})), We(
|
2823
|
+
})), We(P) && /* @__PURE__ */ G.createElement("div", {
|
2824
2824
|
ref: A,
|
2825
2825
|
className: "swiper-scrollbar"
|
2826
|
-
}), je(
|
2826
|
+
}), je(P) && /* @__PURE__ */ G.createElement("div", {
|
2827
2827
|
ref: I,
|
2828
2828
|
className: "swiper-pagination"
|
2829
|
-
}),
|
2829
|
+
}), M["container-end"]));
|
2830
2830
|
});
|
2831
2831
|
Ke.displayName = "Swiper";
|
2832
2832
|
const Ze = /* @__PURE__ */ Te(function(t, e) {
|
@@ -2842,8 +2842,8 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
|
|
2842
2842
|
...d
|
2843
2843
|
} = t === void 0 ? {} : t;
|
2844
2844
|
const c = R(null), [p, f] = K("swiper-slide"), [h, v] = K(!1);
|
2845
|
-
function
|
2846
|
-
|
2845
|
+
function T(S, b, I) {
|
2846
|
+
b === c.current && f(I);
|
2847
2847
|
}
|
2848
2848
|
Q(() => {
|
2849
2849
|
if (typeof u < "u" && (c.current.swiperSlideIndex = u), e && (e.current = c.current), !(!c.current || !r)) {
|
@@ -2851,8 +2851,8 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
|
|
2851
2851
|
p !== "swiper-slide" && f("swiper-slide");
|
2852
2852
|
return;
|
2853
2853
|
}
|
2854
|
-
return r.on("_slideClass",
|
2855
|
-
r && r.off("_slideClass",
|
2854
|
+
return r.on("_slideClass", T), () => {
|
2855
|
+
r && r.off("_slideClass", T);
|
2856
2856
|
};
|
2857
2857
|
}
|
2858
2858
|
}), Q(() => {
|
@@ -2863,7 +2863,7 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
|
|
2863
2863
|
isVisible: p.indexOf("swiper-slide-visible") >= 0,
|
2864
2864
|
isPrev: p.indexOf("swiper-slide-prev") >= 0,
|
2865
2865
|
isNext: p.indexOf("swiper-slide-next") >= 0
|
2866
|
-
},
|
2866
|
+
}, x = () => typeof s == "function" ? s(m) : s, g = () => {
|
2867
2867
|
v(!0);
|
2868
2868
|
};
|
2869
2869
|
return /* @__PURE__ */ G.createElement(i, le({
|
@@ -2876,11 +2876,11 @@ const Ze = /* @__PURE__ */ Te(function(t, e) {
|
|
2876
2876
|
}, /* @__PURE__ */ G.createElement("div", {
|
2877
2877
|
className: "swiper-zoom-container",
|
2878
2878
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
2879
|
-
},
|
2879
|
+
}, x(), o && !h && /* @__PURE__ */ G.createElement("div", {
|
2880
2880
|
className: "swiper-lazy-preloader"
|
2881
2881
|
}))), !l && /* @__PURE__ */ G.createElement(ze.Provider, {
|
2882
2882
|
value: m
|
2883
|
-
},
|
2883
|
+
}, x(), o && !h && /* @__PURE__ */ G.createElement("div", {
|
2884
2884
|
className: "swiper-lazy-preloader"
|
2885
2885
|
})));
|
2886
2886
|
});
|
@@ -2927,7 +2927,7 @@ const zi = "_swiper_1f4c7_3", Ai = "_slide_1f4c7_9", Di = "_link_1f4c7_16", Gi =
|
|
2927
2927
|
"div",
|
2928
2928
|
{
|
2929
2929
|
"data-testid": "progress-bar-wrapper",
|
2930
|
-
className:
|
2930
|
+
className: W(N.progress, t == null ? void 0 : t.className),
|
2931
2931
|
children: /* @__PURE__ */ V(
|
2932
2932
|
"div",
|
2933
2933
|
{
|
@@ -2946,114 +2946,124 @@ function Ki({
|
|
2946
2946
|
swiperClassName: s,
|
2947
2947
|
slideClassName: n,
|
2948
2948
|
imageClassName: r,
|
2949
|
-
|
2950
|
-
|
2951
|
-
|
2952
|
-
|
2953
|
-
|
2954
|
-
|
2955
|
-
|
2949
|
+
navigationClassName: l,
|
2950
|
+
sliderBottomPanelClassName: o,
|
2951
|
+
descriptionsClassName: a,
|
2952
|
+
progressBarPosition: u = "top",
|
2953
|
+
isFullPaginationWidth: d = !1,
|
2954
|
+
needNavigation: c = !0,
|
2955
|
+
leftDescription: p,
|
2956
|
+
rightDescription: f,
|
2957
|
+
delay: h = ki,
|
2958
|
+
...v
|
2956
2959
|
}) {
|
2957
|
-
const
|
2958
|
-
if (
|
2959
|
-
const
|
2960
|
-
|
2960
|
+
const T = R(null), m = R(null), [x, g] = K(1), S = `0${x}`, b = `0${(t == null ? void 0 : t.length) ?? 0}`, I = re(() => {
|
2961
|
+
if (m.current && c) {
|
2962
|
+
const P = m.current.swiper;
|
2963
|
+
g(P.realIndex + 1);
|
2961
2964
|
}
|
2962
|
-
}, [
|
2963
|
-
(
|
2964
|
-
if (
|
2965
|
-
const
|
2966
|
-
|
2965
|
+
}, [c]), A = re(
|
2966
|
+
(P, y) => {
|
2967
|
+
if (T.current && c) {
|
2968
|
+
const w = P.params.autoplay.delay, E = y / w * 100;
|
2969
|
+
T.current.style.width = `${100 - E}%`;
|
2967
2970
|
}
|
2968
2971
|
},
|
2969
|
-
[
|
2972
|
+
[c]
|
2970
2973
|
);
|
2971
|
-
return /* @__PURE__ */
|
2974
|
+
return /* @__PURE__ */ U(
|
2972
2975
|
Ke,
|
2973
2976
|
{
|
2974
|
-
...
|
2975
|
-
ref:
|
2976
|
-
className:
|
2977
|
+
...v,
|
2978
|
+
ref: m,
|
2979
|
+
className: W(N.swiper, s),
|
2977
2980
|
loop: !0,
|
2978
2981
|
autoplay: {
|
2979
|
-
delay:
|
2982
|
+
delay: h,
|
2980
2983
|
disableOnInteraction: !1
|
2981
2984
|
},
|
2982
2985
|
fadeEffect: {
|
2983
2986
|
crossFade: !0
|
2984
2987
|
},
|
2985
2988
|
modules: [ft],
|
2986
|
-
onAutoplayTimeLeft:
|
2987
|
-
onSlideChange:
|
2989
|
+
onAutoplayTimeLeft: A,
|
2990
|
+
onSlideChange: I,
|
2988
2991
|
children: [
|
2989
|
-
/* @__PURE__ */ V(
|
2990
|
-
|
2991
|
-
|
2992
|
-
|
2993
|
-
|
2994
|
-
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
|
3002
|
-
|
3003
|
-
|
3004
|
-
|
3005
|
-
|
3006
|
-
|
3007
|
-
|
3008
|
-
|
3009
|
-
|
3010
|
-
|
3011
|
-
|
2992
|
+
/* @__PURE__ */ V(
|
2993
|
+
"div",
|
2994
|
+
{
|
2995
|
+
className: W(N.navigation, l),
|
2996
|
+
slot: "container-start",
|
2997
|
+
children: c && /* @__PURE__ */ U(Je, { children: [
|
2998
|
+
/* @__PURE__ */ U(
|
2999
|
+
"div",
|
3000
|
+
{
|
3001
|
+
"data-testid": "pagination",
|
3002
|
+
className: W(N.pagination, {
|
3003
|
+
[N["is-full"]]: d
|
3004
|
+
}),
|
3005
|
+
children: [
|
3006
|
+
/* @__PURE__ */ U("h2", { className: N.slides, children: [
|
3007
|
+
S,
|
3008
|
+
/* @__PURE__ */ V("span", { className: N.separator }),
|
3009
|
+
b
|
3010
|
+
] }),
|
3011
|
+
/* @__PURE__ */ V(Hi, {})
|
3012
|
+
]
|
3013
|
+
}
|
3014
|
+
),
|
3015
|
+
u === xe.TOP && /* @__PURE__ */ V(Ae, { ref: T })
|
3016
|
+
] })
|
3017
|
+
}
|
3018
|
+
),
|
3019
|
+
t == null ? void 0 : t.map((P, y) => {
|
3020
|
+
if (!P) return null;
|
3021
|
+
const w = /* @__PURE__ */ V(
|
3012
3022
|
"a",
|
3013
3023
|
{
|
3014
3024
|
className: N.link,
|
3015
|
-
href:
|
3025
|
+
href: P.url,
|
3016
3026
|
rel: "noopener noreferrer",
|
3017
3027
|
target: "_blank",
|
3018
3028
|
children: /* @__PURE__ */ V(
|
3019
3029
|
Ee,
|
3020
3030
|
{
|
3021
|
-
className:
|
3022
|
-
src:
|
3031
|
+
className: W(N.image, r),
|
3032
|
+
src: P.image
|
3023
3033
|
}
|
3024
3034
|
)
|
3025
3035
|
}
|
3026
|
-
),
|
3036
|
+
), E = () => typeof e == "function" ? e(P) : P.url ? w : /* @__PURE__ */ V(
|
3027
3037
|
Ee,
|
3028
3038
|
{
|
3029
|
-
className:
|
3030
|
-
src:
|
3031
|
-
desktopImage:
|
3032
|
-
mobileImage:
|
3039
|
+
className: W(N.image, r),
|
3040
|
+
src: P.image,
|
3041
|
+
desktopImage: P.imageDesktop,
|
3042
|
+
mobileImage: P.imageMobile
|
3033
3043
|
}
|
3034
3044
|
);
|
3035
3045
|
return /* @__PURE__ */ V(
|
3036
3046
|
Ze,
|
3037
3047
|
{
|
3038
|
-
"data-testid": `slide-${
|
3048
|
+
"data-testid": `slide-${y}`,
|
3039
3049
|
onClick: i,
|
3040
|
-
className:
|
3041
|
-
children:
|
3050
|
+
className: W(N.slide, n),
|
3051
|
+
children: E()
|
3042
3052
|
},
|
3043
|
-
|
3053
|
+
P.id
|
3044
3054
|
);
|
3045
3055
|
}),
|
3046
|
-
|
3056
|
+
u === xe.BOTTOM && /* @__PURE__ */ U("div", { className: o, children: [
|
3047
3057
|
/* @__PURE__ */ V(
|
3048
3058
|
Ae,
|
3049
3059
|
{
|
3050
|
-
ref:
|
3060
|
+
ref: T,
|
3051
3061
|
className: N["progress-bar-bottom"]
|
3052
3062
|
}
|
3053
3063
|
),
|
3054
|
-
/* @__PURE__ */
|
3055
|
-
|
3056
|
-
|
3064
|
+
/* @__PURE__ */ U("div", { className: W(N.descriptions, a), children: [
|
3065
|
+
p && /* @__PURE__ */ V("div", { "data-testid": "slider-left-description", children: p }),
|
3066
|
+
f && /* @__PURE__ */ V("div", { "data-testid": "slider-right-description", children: f })
|
3057
3067
|
] })
|
3058
3068
|
] })
|
3059
3069
|
]
|